-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge PR coq#9032: checker: check inductive types by roundtrip throug…
…h the kernel.
- Loading branch information
Showing
7 changed files
with
171 additions
and
245 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
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 @@ | ||
|
||
Module Type T. | ||
Parameter foo : nat -> nat. | ||
End T. | ||
|
||
Module F (A:T). | ||
Inductive ind (n:nat) : nat -> Prop := | ||
| C : (forall x, x < n -> ind (A.foo n) x) -> ind n n. | ||
End F. | ||
|
||
Module A. Definition foo (n:nat) := n. End A. | ||
|
||
Module M := F A. | ||
(* Note: M.ind could be seen as having 1 recursively uniform | ||
parameter, but module substitution does not recognize it, so it is | ||
treated as a non-uniform parameter. *) |
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,11 @@ | ||
|
||
Module Type E. Parameter T : Type. End E. | ||
|
||
Module F (X:E). | ||
#[universes(template)] Inductive foo := box : X.T -> foo. | ||
End F. | ||
|
||
Module ME. Definition T := nat. End ME. | ||
Module A := F ME. | ||
(* Note: A.foo could live in Set, and coqchk sees that (because of | ||
template polymorphism implementation details) *) |