| 1 |
(* Test of inference of elimination predicate for "if" *) |
| 2 |
(* submitted by Robert R Schneck *) |
| 3 |
|
| 4 |
Axiom bad : false = true. |
| 5 |
|
| 6 |
Definition try1 : False := |
| 7 |
match bad in (_ = b) return (if b then False else True) with |
| 8 |
| refl_equal => I |
| 9 |
end. |
| 10 |
|
| 11 |
Definition try2 : False := |
| 12 |
match bad in (_ = b) return ((if b then False else True):Prop) with |
| 13 |
| refl_equal => I |
| 14 |
end. |
| 15 |
|
| 16 |
Definition try3 : False := |
| 17 |
match |
| 18 |
bad in (_ = b) return ((fun b' : bool => if b' then False else True) b) |
| 19 |
with |
| 20 |
| refl_equal => I |
| 21 |
end. |