-
Notifications
You must be signed in to change notification settings - Fork 21
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #136 from SkySkimmer/retype
Some cleanups and fix incorrect evar map passing in aac_reflexivity
- Loading branch information
Showing
8 changed files
with
84 additions
and
67 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
all: Makefile.coq | ||
@+$(MAKE) -f Makefile.coq all | ||
|
||
clean: Makefile.coq | ||
@+$(MAKE) -f Makefile.coq cleanall | ||
@rm -f Makefile.coq Makefile.coq.conf | ||
|
||
Makefile.coq: _CoqProject | ||
$(COQBIN)coq_makefile -f _CoqProject -o Makefile.coq | ||
|
||
force _CoqProject Makefile: ; | ||
|
||
%: Makefile.coq force | ||
@+$(MAKE) -f Makefile.coq $@ | ||
|
||
.PHONY: all clean force tests |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
-Q ../src AAC_tactics | ||
-Q ../theories AAC_tactics | ||
-I ../src | ||
|
||
-R . Test | ||
|
||
aac_135.v |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
From Coq Require PeanoNat ZArith List Permutation Lia. | ||
From AAC_tactics Require Import AAC. | ||
From AAC_tactics Require Instances. | ||
|
||
(** ** Introductory example | ||
Here is a first example with relative numbers ([Z]): one can | ||
rewrite an universally quantified hypothesis modulo the | ||
associativity and commutativity of [Z.add]. *) | ||
|
||
Section introduction. | ||
Import ZArith. | ||
Import Instances.Z. | ||
|
||
Variables a b : Z. | ||
|
||
Goal a + b = b + a. | ||
aac_reflexivity. | ||
Qed. | ||
|
||
Goal forall c: bool, a + b = b + a. | ||
intros c. | ||
destruct c. | ||
1,2: aac_reflexivity. | ||
Qed. (* The command has indeed failed with message: Some unresolved existential variables remain *) | ||
|
||
Goal forall c: bool, a + b = b + a. | ||
intros c. | ||
destruct c. | ||
- aac_reflexivity. | ||
- aac_reflexivity. | ||
Qed. | ||
End introduction. |