forked from coq/coq
-
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.
Browse files
Browse the repository at this point in the history
…se variables in congruence and f_equal Reviewed-by: ppedrot Ack-by: SkySkimmer Co-authored-by: ppedrot <[email protected]>
- Loading branch information
Showing
9 changed files
with
92 additions
and
14 deletions.
There are no files selected for viewing
7 changes: 7 additions & 0 deletions
7
doc/changelog/04-tactics/18106-master+fix5481-congruence-polyuniv.rst
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 @@ | ||
- **Fixed:** | ||
support for reasoning up to polymorphic universe variables in | ||
:tacn:`congruence` and :tacn:`f_equal` | ||
(`#18106 <https://github.com/coq/coq/pull/18106>`_, | ||
fixes `#5481 <https://github.com/coq/coq/issues/5481>`_ | ||
and `#9979 <https://github.com/coq/coq/issues/9979>`_, | ||
by Hugo Herbelin). |
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,46 @@ | ||
(* Bug #5481 *) | ||
|
||
Set Universe Polymorphism. | ||
|
||
Parameter P : Type -> Type -> Prop. | ||
Parameter A : Type. | ||
Lemma foo (B : Type) (H : P A B) : P A B. | ||
Proof. | ||
congruence. | ||
Qed. | ||
|
||
(* An example with types hidden behind "match" *) | ||
|
||
Parameter b : unit. | ||
Lemma foo2 (B : Type) (H : (let () := b in P) A B) : (let () := b in P) A B. | ||
Proof. | ||
congruence. | ||
Qed. | ||
|
||
(* Bug #9979, with f_equal *) | ||
|
||
Record Map(K V: Type) := { | ||
rep: Type; | ||
put: rep -> K -> V -> rep; | ||
}. | ||
|
||
Section Test. | ||
Universes u1 u2 u3 u4 u5 u6. | ||
|
||
Goal forall K V (M: Map K V) (k: K) (v: V) (m: rep K V M), | ||
put@{u1 u2 u3} K V M m k v = put@{u4 u5 u6} K V M m k v. | ||
Proof. | ||
intros. | ||
f_equal. | ||
Qed. | ||
|
||
End Test. | ||
|
||
(* An example with unification of monomorphic universe levels *) | ||
|
||
Unset Universe Polymorphism. | ||
|
||
Lemma foo3 (B : Type) : Type. | ||
Proof. | ||
congruence. | ||
Qed. |
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