Let X, d, x and A be given.
We prove the intermediate
claim HAne:
A ≠ Empty.
We prove the intermediate
claim Hlub:
R_lub S l.
We prove the intermediate
claim H0inS:
0 ∈ S.
We prove the intermediate
claim Hdxx0:
apply_fun d (x,x) = 0.
rewrite the current goal using Hdxx0 (from left to right).
An
exact proof term for the current goal is
minus_SNo_0.
rewrite the current goal using H0eq (from right to left).
An exact proof term for the current goal is HxIn.
We prove the intermediate
claim Hlub0:
R_lub S 0.
We will
prove (0 ∈ R ∧ (∀t : set, t ∈ S → t ∈ R → Rle t 0) ∧ (∀u : set, u ∈ R → (∀t : set, t ∈ S → t ∈ R → Rle t u) → Rle 0 u)).
Apply andI to the current goal.
Apply andI to the current goal.
An
exact proof term for the current goal is
real_0.
Let u be given.
An
exact proof term for the current goal is
(Hub 0 H0inS real_0).
We prove the intermediate
claim HlEq0:
l = 0.
An
exact proof term for the current goal is
(R_lub_unique S l 0 Hlub Hlub0).
rewrite the current goal using Hdef (from left to right).
rewrite the current goal using HlEq0 (from left to right).
An
exact proof term for the current goal is
minus_SNo_0.
∎