diff options
author | Pierre Courtieu <courtieu@lri.fr> | 2004-04-15 16:53:08 +0000 |
---|---|---|
committer | Pierre Courtieu <courtieu@lri.fr> | 2004-04-15 16:53:08 +0000 |
commit | 15a087906fa71eeb6891b49487f52c8c0d49425f (patch) | |
tree | f71c15da257ea5767b70b07372db1cc2f002afdc /coq | |
parent | 68db52355e7136765864cb78e28a39698ca9f7e2 (diff) |
commented the new tarski example for coq.
Diffstat (limited to 'coq')
-rw-r--r-- | coq/KnasterTarski.v | 25 |
1 files changed, 15 insertions, 10 deletions
diff --git a/coq/KnasterTarski.v b/coq/KnasterTarski.v index c377c1a3..5ca030c5 100644 --- a/coq/KnasterTarski.v +++ b/coq/KnasterTarski.v @@ -15,15 +15,20 @@ Variable M : A. Hypothesis Up : forall x : A, R x (f x) -> R x M. Hypothesis Least : forall x : A, (forall y : A, R y (f y) -> R y x) -> R M x. +Hint Resolve Up Assym Incr Least Incr Up Trans : db. + Theorem Tarski_lemma : Eq M (f M). -cut (R M (f M)). -intro. -apply Assym; trivial. -apply Up. -apply Incr; trivial. -apply Least. -intros. -apply Trans with (f y); trivial. -apply Incr. -apply Up; trivial. +(* We can prove the theorem in one line: *) +(* eauto 15 with db. *) +(* But we rather use basic tactics in this sample file: *) + cut (R M (f M)). + intro. + apply Assym; trivial. + apply Up. + apply Incr; trivial. + apply Least. + intros. + apply Trans with (f y); trivial. + apply Incr. + apply Up; trivial. Qed. |