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