| 1 |
From Corelib Require Import ssreflect. |
| 2 |
|
| 3 |
Axiom subnn : forall n : nat, n - n = 0. |
| 4 |
Parameter G : (nat -> nat) -> nat -> nat. |
| 5 |
Axiom eq_G : |
| 6 |
forall F1 F2 : nat -> nat, |
| 7 |
(forall n : nat, F1 n = F2 n) -> |
| 8 |
forall n : nat, G F1 n = G F2 n. |
| 9 |
|
| 10 |
Ltac show := match goal with [|-?g] => idtac g end. |
| 11 |
|
| 12 |
Lemma example_G (n : nat) : G (fun n => n - n) n >= 0. |
| 13 |
under eq_G => m do [show; rewrite subnn]. |
| 14 |
show. |
| 15 |
Abort. |
| 16 |
|
| 17 |
Parameters (R Rbar : Set) (R0 : R) (Rbar0 : Rbar). |
| 18 |
Parameter Rbar_le : Rbar -> Rbar -> Prop. |
| 19 |
Parameter Lub_Rbar : (R -> Prop) -> Rbar. |
| 20 |
Parameter Lub_Rbar_eqset : |
| 21 |
forall E1 E2 : R -> Prop, |
| 22 |
(forall x : R, E1 x <-> E2 x) -> |
| 23 |
Lub_Rbar E1 = Lub_Rbar E2. |
| 24 |
|
| 25 |
Lemma test_Lub_Rbar (E : R -> Prop) : |
| 26 |
Rbar_le Rbar0 (Lub_Rbar (fun x => x = R0 \/ E x)). |
| 27 |
Proof. |
| 28 |
under Lub_Rbar_eqset => r do show. |
| 29 |
show. |
| 30 |
Abort. |