diff options
| author | herbelin | 2001-08-05 19:04:16 +0000 |
|---|---|---|
| committer | herbelin | 2001-08-05 19:04:16 +0000 |
| commit | 83c56744d7e232abeb5f23e6d0f23cd0abc14a9c (patch) | |
| tree | 6d7d4c2ce3bb159b8f81a4193abde1e3573c28d4 /theories/IntMap | |
| parent | f7351ff222bad0cc906dbee3c06b20babf920100 (diff) | |
Expérimentation de NewDestruct et parfois NewInduction
git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/coq/trunk@1880 85f007b7-540e-0410-9357-904b9bb8a0f7
Diffstat (limited to 'theories/IntMap')
| -rw-r--r-- | theories/IntMap/Addr.v | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/theories/IntMap/Addr.v b/theories/IntMap/Addr.v index 088b03845d..a74dcf5b87 100644 --- a/theories/IntMap/Addr.v +++ b/theories/IntMap/Addr.v @@ -18,7 +18,7 @@ Inductive ad : Set := Lemma ad_sum : (a:ad) {p:positive | a=(ad_x p)}+{a=ad_z}. Proof. - Destruct a; Auto. + NewDestruct a; Auto. Left; Exists p; Trivial. Qed. @@ -74,15 +74,15 @@ Qed. Lemma ad_xor_comm : (a,a':ad) (ad_xor a a')=(ad_xor a' a). Proof. - Destruct a; Destruct a'; Simpl; Auto. - Induction p; Simpl; Auto. - Destruct p0; Simpl; Trivial; Intros. + NewDestruct a; NewDestruct a'; Simpl; Auto. + Generalize p0; Clear p0; Induction p; Simpl; Auto. + NewDestruct p0; Simpl; Trivial; Intros. Rewrite Hrecp; Trivial. Rewrite Hrecp; Trivial. - Destruct p0; Simpl; Trivial; Intros. + NewDestruct p0; Simpl; Trivial; Intros. Rewrite Hrecp; Trivial. Rewrite Hrecp; Trivial. - Induction p; Simpl; Auto. + Induction p0; Simpl; Auto. Qed. Lemma ad_xor_nilpotent : (a:ad) (ad_xor a a)=ad_z. |
