diff options
| author | Enrico Tassi | 2018-11-09 14:04:17 +0100 |
|---|---|---|
| committer | Enrico Tassi | 2018-11-14 10:49:59 +0100 |
| commit | 3b73e80593c9508a880c7d6e442abb8c82523a36 (patch) | |
| tree | 0d2c8b5523c3b3345f06e1869bde4cfe6146aab3 /test-suite | |
| parent | 94494770254bec236f2f6fe727ae42b79192afe4 (diff) | |
ssrmatching: unify_HO does not resolve type classes
Diffstat (limited to 'test-suite')
| -rw-r--r-- | test-suite/ssr/case_TC.v | 18 | ||||
| -rw-r--r-- | test-suite/ssr/case_TC2.v | 20 |
2 files changed, 38 insertions, 0 deletions
diff --git a/test-suite/ssr/case_TC.v b/test-suite/ssr/case_TC.v new file mode 100644 index 0000000000..78ed374432 --- /dev/null +++ b/test-suite/ssr/case_TC.v @@ -0,0 +1,18 @@ +From Coq Require Import ssreflect. +From Coq Require Import ssrbool. + +Set Printing All. +Set Debug Ssreflect. + +Class Class := { sort : Type ; op : sort -> bool }. +Coercion sort : Class >-> Sortclass. +Arguments op [_] _. + +Section Section. + Context (A B: Class) (a: A). + + Goal op a || ~~ op a. + by case: op. + Abort. + +End Section. diff --git a/test-suite/ssr/case_TC2.v b/test-suite/ssr/case_TC2.v new file mode 100644 index 0000000000..37504d662d --- /dev/null +++ b/test-suite/ssr/case_TC2.v @@ -0,0 +1,20 @@ +From Coq Require Import Bool ssreflect. + +Set Printing All. +Set Debug Ssreflect. + +Class Class := { sort : Type ; op : sort -> bool }. +Coercion sort : Class >-> Sortclass. +Arguments op [_] _. + +Lemma opP (A: Class) (a: A) : reflect True (op a). +Proof. Admitted. + +Section Section. + Context (A B: Class) (a: A). + + Goal is_true (op a). + by case: opP. + Abort. + +End Section. |
