test-suite/ssr/case_TC2.v
raw| 1 | From Corelib Require Import ssreflect. |
| 2 | |
| 3 | Set Printing All. |
| 4 | Set Debug Ssreflect. |
| 5 | |
| 6 | Class Class := { sort : Type ; op : sort -> bool }. |
| 7 | Coercion sort : Class >-> Sortclass. |
| 8 | Arguments op [_] _. |
| 9 | |
| 10 | Lemma opP (A: Class) (a: A) : reflect True (op a). |
| 11 | Proof. Admitted. |
| 12 | |
| 13 | Section Section. |
| 14 | Context (A B: Class) (a: A). |
| 15 | |
| 16 | Goal is_true (op a). |
| 17 | by case: opP. |
| 18 | Abort. |
| 19 | |
| 20 | End Section. |