-
Notifications
You must be signed in to change notification settings - Fork 52
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
47 changed files
with
3,799 additions
and
115 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,48 @@ | ||
# Hack to see Coq-Elpi even if it is not installed yet | ||
-Q ../../theories elpi | ||
-I ../../src | ||
-docroot elpi.apps | ||
|
||
-Q elpi elpi.apps.tc | ||
-R theories elpi.apps | ||
-R tests elpi.apps.tc.tests | ||
-I src | ||
|
||
tests/test_tc.v | ||
tests/premisesSort/sortCode.v | ||
tests/premisesSort/sort1.v | ||
# tests/premisesSort/sort2.v | ||
# tests/premisesSort/sort3.v | ||
# tests/premisesSort/sort4.v | ||
tests/included_proof.v | ||
# tests/goalDispatch.v | ||
|
||
-I src | ||
# Import order of instances | ||
tests/importOrder/sameOrderCommand.v | ||
tests/importOrder/f1.v | ||
tests/importOrder/f2a.v | ||
tests/importOrder/f2b.v | ||
# tests/importOrder/f3a.v | ||
# tests/importOrder/f3b.v | ||
# tests/importOrder/f3c.v | ||
# tests/importOrder/f3d.v | ||
# tests/importOrder/f3e.v | ||
# tests/importOrder/f3f.v | ||
# tests/importOrder/f3g.v | ||
|
||
tests/nobacktrack.v | ||
tests/removeEta.v | ||
tests/patternFragment.v | ||
tests/contextDeepHierarchy.v | ||
tests/mode_no_repetion.v | ||
# tests/test_commands_API.v | ||
tests/section_in_out.v | ||
tests/eqSimplDef.v | ||
tests/eqSimpl.v | ||
|
||
tests/injTest.v | ||
# Test with light version of base.v of stdpp | ||
tests/stdppInj.v | ||
tests/stdppInjClassic.v | ||
tests/test.v | ||
|
||
# Test with base.v of stdpp | ||
# tests/bigTest.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
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,30 @@ | ||
From elpi.apps Require Import tc. | ||
Elpi Override TC TC_solver All. | ||
Elpi Debug "use-alias". | ||
|
||
Class foo (A : Type) := f : Type. | ||
|
||
Global Instance fooNat : foo nat := {f := nat}. | ||
Global Instance fooBool : foo bool := {f := bool}. | ||
|
||
Elpi AddClasses foo. | ||
Elpi AddInstances foo. | ||
|
||
Definition nat' := nat. | ||
|
||
|
||
Goal foo nat. apply _. Qed. | ||
Goal foo bool. apply _. Qed. | ||
Goal foo nat'. Fail apply _. Abort. | ||
|
||
Module A. | ||
Elpi Accumulate TC_solver lp:{{ | ||
alias {{nat'}} {{nat}}. | ||
}}. | ||
Goal foo nat'. apply _. Qed. | ||
End A. | ||
|
||
Definition nat'' := nat'. | ||
|
||
Elpi AddAlias (nat'') (nat'). | ||
Goal foo nat''. apply _. Qed. |
Oops, something went wrong.