| 1 |
Require Import Corelib.ssr.ssreflect. |
| 2 |
|
| 3 |
Axiom R : Type. |
| 4 |
|
| 5 |
Variant extended := EFin of R | EPInf | ENInf. |
| 6 |
|
| 7 |
Definition le_ereal (x1 x2 : extended) := |
| 8 |
match x1, x2 with |
| 9 |
| ENInf, EFin r | EFin r, EPInf => true |
| 10 |
| EFin r1, EFin r2 => true |
| 11 |
| ENInf, _ | _, EPInf => true |
| 12 |
| EPInf, _ | _, ENInf => false |
| 13 |
end. |
| 14 |
|
| 15 |
Axiom lee_pinfty : forall (x : extended), is_true (le_ereal x (EPInf)). |
| 16 |
|
| 17 |
Definition adde_subdef (x y : extended) := |
| 18 |
match x, y with |
| 19 |
| EFin _, EFin _ => x |
| 20 |
| ENInf, _ => ENInf |
| 21 |
| _ , ENInf => ENInf |
| 22 |
| EPInf, _ => EPInf |
| 23 |
| _ , EPInf => EPInf |
| 24 |
end. |
| 25 |
|
| 26 |
Definition adde := nosimpl adde_subdef. |
| 27 |
|
| 28 |
Goal forall (x : R), |
| 29 |
(forall e : R, is_true (le_ereal (EFin x) (adde (EPInf) (EFin e)))) -> True. |
| 30 |
Proof. |
| 31 |
intros x. |
| 32 |
Fail rewrite (lee_pinfty (EFin x)). |
| 33 |
constructor. |
| 34 |
Qed. |