aboutsummaryrefslogtreecommitdiffhomepage
path: root/test-suite/modules/PO.v
diff options
context:
space:
mode:
authorGravatar herbelin <herbelin@85f007b7-540e-0410-9357-904b9bb8a0f7>2005-12-21 23:50:17 +0000
committerGravatar herbelin <herbelin@85f007b7-540e-0410-9357-904b9bb8a0f7>2005-12-21 23:50:17 +0000
commit4d4f08acb5e5f56d38289e5629173bc1b8b5fd57 (patch)
treec160d442d54dbd15cbd0ab3500cdf94d0a6da74e /test-suite/modules/PO.v
parent960859c0c10e029f9768d0d70addeca8f6b6d784 (diff)
Abandon tests syntaxe v7; remplacement des .v par des fichiers en syntaxe v8
git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/coq/trunk@7693 85f007b7-540e-0410-9357-904b9bb8a0f7
Diffstat (limited to 'test-suite/modules/PO.v')
-rw-r--r--test-suite/modules/PO.v64
1 files changed, 32 insertions, 32 deletions
diff --git a/test-suite/modules/PO.v b/test-suite/modules/PO.v
index 9ba3fb2e6..354c3957f 100644
--- a/test-suite/modules/PO.v
+++ b/test-suite/modules/PO.v
@@ -1,57 +1,57 @@
-Implicit Arguments On.
+Set Implicit Arguments.
+Unset Strict Implicit.
-Implicits fst.
-Implicits snd.
+Implicit Arguments fst.
+Implicit Arguments snd.
Module Type PO.
- Parameter T:Set.
- Parameter le:T->T->Prop.
+ Parameter T : Set.
+ Parameter le : T -> T -> Prop.
- Axiom le_refl : (x:T)(le x x).
- Axiom le_trans : (x,y,z:T)(le x y) -> (le y z) -> (le x z).
- Axiom le_antis : (x,y:T)(le x y) -> (le y x) -> (x=y).
+ Axiom le_refl : forall x : T, le x x.
+ Axiom le_trans : forall x y z : T, le x y -> le y z -> le x z.
+ Axiom le_antis : forall x y : T, le x y -> le y x -> x = y.
- Hints Resolve le_refl le_trans le_antis.
+ Hint Resolve le_refl le_trans le_antis.
End PO.
-Module Pair[X:PO][Y:PO] <: PO.
- Definition T:=X.T*Y.T.
- Definition le:=[p1,p2]
- (X.le (fst p1) (fst p2)) /\ (Y.le (snd p1) (snd p2)).
+Module Pair (X: PO) (Y: PO) <: PO.
+ Definition T := (X.T * Y.T)%type.
+ Definition le p1 p2 := X.le (fst p1) (fst p2) /\ Y.le (snd p1) (snd p2).
- Hints Unfold le.
+ Hint Unfold le.
- Lemma le_refl : (p:T)(le p p).
- Info Auto.
+ Lemma le_refl : forall p : T, le p p.
+ info auto.
Qed.
- Lemma le_trans : (p1,p2,p3:T)(le p1 p2) -> (le p2 p3) -> (le p1 p3).
- Unfold le; Intuition; Info EAuto.
+ Lemma le_trans : forall p1 p2 p3 : T, le p1 p2 -> le p2 p3 -> le p1 p3.
+ unfold le in |- *; intuition; info eauto.
Qed.
- Lemma le_antis : (p1,p2:T)(le p1 p2) -> (le p2 p1) -> (p1=p2).
- NewDestruct p1.
- NewDestruct p2.
- Unfold le.
- Intuition.
- CutRewrite t=t1.
- CutRewrite t0=t2.
- Reflexivity.
+ Lemma le_antis : forall p1 p2 : T, le p1 p2 -> le p2 p1 -> p1 = p2.
+ destruct p1.
+ destruct p2.
+ unfold le in |- *.
+ intuition.
+ cutrewrite (t = t1).
+ cutrewrite (t0 = t2).
+ reflexivity.
- Info Auto.
+ info auto.
- Info Auto.
+ info auto.
Qed.
End Pair.
-Read Module Nat.
+Require Nat.
Module NN := Pair Nat Nat.
-Lemma zz_min : (p:NN.T)(NN.le (O,O) p).
- Info Auto with arith.
-Qed.
+Lemma zz_min : forall p : NN.T, NN.le (0, 0) p.
+ info auto with arith.
+Qed. \ No newline at end of file