Let f and g be given.
Let n be given.
We prove the intermediate
claim HlR:
l ∈ R.
We prove the intermediate
claim Hlub:
R_lub A l.
We prove the intermediate
claim Hcore:
l ∈ R ∧ ∀a : set, a ∈ A → a ∈ R → Rle a l.
An
exact proof term for the current goal is
(andEL (l ∈ R ∧ ∀a : set, a ∈ A → a ∈ R → Rle a l) (∀u : set, u ∈ R → (∀a : set, a ∈ A → a ∈ R → Rle a u) → Rle l u) Hlub).
We prove the intermediate
claim Hub:
∀a : set, a ∈ A → a ∈ R → Rle a l.
An
exact proof term for the current goal is
(andER (l ∈ R) (∀a : set, a ∈ A → a ∈ R → Rle a l) Hcore).
We prove the intermediate
claim Hub0:
∀a : set, a ∈ A → a ∈ R → Rle a 0.
Let a0 be given.
rewrite the current goal using Hfg0 (from right to left).
An exact proof term for the current goal is (Hub a0 Ha0A Ha0R).
We prove the intermediate
claim HaA:
a ∈ A.
We prove the intermediate
claim HaR:
a ∈ R.
We prove the intermediate
claim HRle:
Rle a 0.
An exact proof term for the current goal is (Hub0 a HaA HaR).
We prove the intermediate
claim HnRlt0a:
¬ (Rlt 0 a).
An
exact proof term for the current goal is
(RleE_nlt a 0 HRle).
We prove the intermediate
claim HaS:
SNo a.
An
exact proof term for the current goal is
(real_SNo a HaR).
We prove the intermediate
claim HaNN:
0 ≤ a.
We prove the intermediate
claim Ha0:
a = 0.
We prove the intermediate
claim HRlt0a:
Rlt 0 a.
An
exact proof term for the current goal is
(RltI 0 a real_0 HaR H0lta).
An
exact proof term for the current goal is
(FalseE (HnRlt0a HRlt0a) (a = 0)).
rewrite the current goal using H0eq (from right to left).
Use reflexivity.
We prove the intermediate
claim HfnR:
apply_fun f n ∈ R.
We prove the intermediate
claim HgnR:
apply_fun g n ∈ R.
We prove the intermediate
claim HtR:
t ∈ R.
We prove the intermediate
claim HtS:
SNo t.
An
exact proof term for the current goal is
(real_SNo t HtR).
We prove the intermediate
claim Habs0:
abs_SNo t = 0.
rewrite the current goal using HdefClip (from right to left).
An exact proof term for the current goal is Ha0.
rewrite the current goal using Hif (from right to left).
An exact proof term for the current goal is Ha0if.
rewrite the current goal using HdefAbs (from right to left).
An exact proof term for the current goal is HabsR0.
We prove the intermediate
claim H10eq:
1 = 0.
rewrite the current goal using Hif (from right to left).
An exact proof term for the current goal is Ha0if.
We prove the intermediate
claim Ht0:
t = 0.
Apply (xm (0 ≤ t) (t = 0)) to the current goal.
rewrite the current goal using
(nonneg_abs_SNo t H0le) (from right to left).
An exact proof term for the current goal is Habs0.
An exact proof term for the current goal is Habs0.
We prove the intermediate
claim H0t0:
add_SNo 0 t = 0.
rewrite the current goal using Hm0 (from right to left) at position 1.
An exact proof term for the current goal is Hsum.
rewrite the current goal using
(add_SNo_0L t HtS) (from right to left).
An exact proof term for the current goal is H0t0.
rewrite the current goal using Htdef (from right to left).
An exact proof term for the current goal is Ht0.
rewrite the current goal using Ht0' (from left to right) at position 1.
rewrite the current goal using Hrhs0 (from left to right) at position 1.
Use reflexivity.
∎