diff options
| author | Matthieu Sozeau | 2016-05-09 18:31:01 +0200 |
|---|---|---|
| committer | Matthieu Sozeau | 2016-07-04 15:55:12 +0200 |
| commit | 71d4c435e42c24c21ae43f0ddcc7a71bee1009f5 (patch) | |
| tree | e59d18f6e134deb95f2a1b4e00c21ae287784e15 /test-suite | |
| parent | ee8009e05d3e782ee6333d0054ee2fce5cda89a4 (diff) | |
congruence: Restrict refreshing to Set
Because refreshing Prop is not semantics-preserving,
the new universe is >= Set, so cannot be minimized to Prop
afterwards.
Diffstat (limited to 'test-suite')
| -rw-r--r-- | test-suite/success/cc.v | 14 | ||||
| -rw-r--r-- | test-suite/success/congruence.v | 21 |
2 files changed, 14 insertions, 21 deletions
diff --git a/test-suite/success/cc.v b/test-suite/success/cc.v index a70d919635..0b0e93eb56 100644 --- a/test-suite/success/cc.v +++ b/test-suite/success/cc.v @@ -131,3 +131,17 @@ End bug_2447. +(* Example by Jonathan Leivant, congruence up to universes *) +Section JLeivant. + Variables S1 S2 : Set. + + Definition T1 : Type := S1. + Definition T2 : Type := S2. + + Goal T1 = T1. + congruence. + Undo. + unfold T1. + congruence. + Qed. +End JLeivant. diff --git a/test-suite/success/congruence.v b/test-suite/success/congruence.v deleted file mode 100644 index 873d2f9f7e..0000000000 --- a/test-suite/success/congruence.v +++ /dev/null @@ -1,21 +0,0 @@ -(* Example by Jonathan Leivant, congruence and tauto up to universes *) -Variables S1 S2 : Set. - -Goal @eq Type S1 S2 -> @eq Type S1 S2. -intro H. -tauto. -Qed. - -Definition T1 : Type := S1. -Definition T2 : Type := S2. - -Goal T1 = T1. -congruence. -Undo. -tauto. -Undo. -unfold T1. -congruence. -Undo. -tauto. -Qed. |
