Let X, d, B and x be given.
We prove the intermediate
claim HBpkg:
B ⊆ X ∧ ∃U ∈ Tx, B = X ∖ U.
We prove the intermediate
claim HBsub:
B ⊆ X.
An
exact proof term for the current goal is
(andEL (B ⊆ X) (∃U ∈ Tx, B = X ∖ U) HBpkg).
We prove the intermediate
claim HexU:
∃U ∈ Tx, B = X ∖ U.
An
exact proof term for the current goal is
(andER (B ⊆ X) (∃U ∈ Tx, B = X ∖ U) HBpkg).
Apply HexU to the current goal.
Let U be given.
Assume HUconj.
We prove the intermediate
claim HU:
U ∈ Tx.
An
exact proof term for the current goal is
(andEL (U ∈ Tx) (B = X ∖ U) HUconj).
We prove the intermediate
claim HBdef:
B = X ∖ U.
An
exact proof term for the current goal is
(andER (U ∈ Tx) (B = X ∖ U) HUconj).
We prove the intermediate
claim HxU:
x ∈ U.
Apply (xm (x ∈ U)) to the current goal.
An exact proof term for the current goal is H.
We prove the intermediate
claim HxBU:
x ∈ X ∖ U.
An
exact proof term for the current goal is
(setminusI X U x HxX Hnot).
We prove the intermediate
claim HxB:
x ∈ B.
rewrite the current goal using HBdef (from left to right).
An exact proof term for the current goal is HxBU.
Apply FalseE to the current goal.
An exact proof term for the current goal is (HxnotB HxB).
rewrite the current goal using Hdef (from right to left).
An exact proof term for the current goal is HU.
We prove the intermediate
claim HUcond:
∀y ∈ U, ∃b0 ∈ B0, y ∈ b0 ∧ b0 ⊆ U.
An
exact proof term for the current goal is
(SepE2 (𝒫 X) (λU0 : set ⇒ ∀y0 : set, y0 ∈ U0 → ∃b0 ∈ B0, y0 ∈ b0 ∧ b0 ⊆ U0) U HUgen).
We prove the intermediate
claim Hexb0:
∃b0 ∈ B0, x ∈ b0 ∧ b0 ⊆ U.
An exact proof term for the current goal is (HUcond x HxU).
Apply Hexb0 to the current goal.
Let b0 be given.
Assume Hb0pair.
We prove the intermediate
claim Hb0B0:
b0 ∈ B0.
An
exact proof term for the current goal is
(andEL (b0 ∈ B0) (x ∈ b0 ∧ b0 ⊆ U) Hb0pair).
We prove the intermediate
claim Hxinb0:
x ∈ b0.
An
exact proof term for the current goal is
(andEL (x ∈ b0) (b0 ⊆ U) (andER (b0 ∈ B0) (x ∈ b0 ∧ b0 ⊆ U) Hb0pair)).
We prove the intermediate
claim Hb0sub:
b0 ⊆ U.
An
exact proof term for the current goal is
(andER (x ∈ b0) (b0 ⊆ U) (andER (b0 ∈ B0) (x ∈ b0 ∧ b0 ⊆ U) Hb0pair)).
Let c be given.
Let r0 be given.
We prove the intermediate
claim HxinBall:
x ∈ open_ball X d c r0.
rewrite the current goal using Hb0eq (from right to left).
An exact proof term for the current goal is Hxinb0.
We prove the intermediate
claim HballsubU:
open_ball X d c r0 ⊆ U.
rewrite the current goal using Hb0eq (from right to left).
An exact proof term for the current goal is Hb0sub.
Apply Hexs to the current goal.
Let s be given.
Assume Hs.
We prove the intermediate
claim Hs12:
s ∈ R ∧ Rlt 0 s.
We prove the intermediate
claim HsR:
s ∈ R.
An
exact proof term for the current goal is
(andEL (s ∈ R) (Rlt 0 s) Hs12).
We prove the intermediate
claim Hspos:
Rlt 0 s.
An
exact proof term for the current goal is
(andER (s ∈ R) (Rlt 0 s) Hs12).
We prove the intermediate
claim HsubU:
open_ball X d x s ⊆ U.
We use s to witness the existential quantifier.
Apply andI to the current goal.
An exact proof term for the current goal is HsR.
Apply andI to the current goal.
An exact proof term for the current goal is Hspos.
An exact proof term for the current goal is HsubU.
Apply HexBall to the current goal.
Let r be given.
Assume Hrpack.
We prove the intermediate
claim HrR:
r ∈ R.
We prove the intermediate
claim Hrpos:
Rlt 0 r.
We prove the intermediate
claim HballsubU:
open_ball X d x r ⊆ U.
We prove the intermediate
claim HlR:
l ∈ R.
We prove the intermediate
claim HuR:
u ∈ R.
We prove the intermediate
claim HrS:
SNo r.
An
exact proof term for the current goal is
(real_SNo r HrR).
We prove the intermediate
claim HuDef:
u = minus_SNo r.
We prove the intermediate
claim HuS:
SNo u.
rewrite the current goal using HuDef (from left to right).
An
exact proof term for the current goal is
(SNo_minus_SNo r HrS).
Let t be given.
Let b be given.
We prove the intermediate
claim HbX:
b ∈ X.
An exact proof term for the current goal is (HBsub b HbB).
We prove the intermediate
claim HbnotU:
b ∉ U.
We prove the intermediate
claim HbBU:
b ∈ X ∖ U.
rewrite the current goal using HBdef (from right to left).
An exact proof term for the current goal is HbB.
An
exact proof term for the current goal is
(setminusE2 X U b HbBU).
We prove the intermediate
claim HbnotBall:
b ∉ open_ball X d x r.
We prove the intermediate
claim HbU:
b ∈ U.
An exact proof term for the current goal is (HballsubU b HbBall).
An exact proof term for the current goal is (HbnotU HbU).
We prove the intermediate
claim Hnlt:
¬ (Rlt (apply_fun d (x,b)) r).
We prove the intermediate
claim HbBall:
b ∈ open_ball X d x r.
An
exact proof term for the current goal is
(SepI X (λy0 : set ⇒ Rlt (apply_fun d (x,y0)) r) b HbX Hlt).
An exact proof term for the current goal is (HbnotBall HbBall).
We prove the intermediate
claim HdxbR:
apply_fun d (x,b) ∈ R.
We prove the intermediate
claim HxbIn:
(x,b) ∈ setprod X X.
An exact proof term for the current goal is (Hfun (x,b) HxbIn).
We prove the intermediate
claim Hrle:
Rle r (apply_fun d (x,b)).
An
exact proof term for the current goal is
(RleI r (apply_fun d (x,b)) HrR HdxbR Hnlt).
We prove the intermediate
claim Hntlt:
¬ (Rlt u t).
We prove the intermediate
claim Hut:
u < t.
An
exact proof term for the current goal is
(RltE_lt u t Hltut).
rewrite the current goal using Hteq (from right to left).
An exact proof term for the current goal is Hut.
We prove the intermediate
claim HdS:
SNo (apply_fun d (x,b)).
We prove the intermediate
claim Hinv:
minus_SNo u = r.
rewrite the current goal using HuDef (from left to right).
We prove the intermediate
claim Hltneg2:
apply_fun d (x,b) < r.
rewrite the current goal using Hinv (from right to left).
An exact proof term for the current goal is Hltneg.
We prove the intermediate
claim HltR:
Rlt (apply_fun d (x,b)) r.
An
exact proof term for the current goal is
(RltI (apply_fun d (x,b)) r HdxbR HrR Hltneg2).
An exact proof term for the current goal is (Hnlt HltR).
Apply (RleI t u HtR HuR) to the current goal.
An exact proof term for the current goal is (Hntlt Hltut).
We prove the intermediate
claim Hle_l_u:
Rle l u.
An exact proof term for the current goal is (Hmin u HuR Hub).
We prove the intermediate
claim Hnlt_u_l:
¬ (Rlt u l).
An
exact proof term for the current goal is
(RleE_nlt l u Hle_l_u).
rewrite the current goal using HdistDef (from right to left).
An exact proof term for the current goal is Hlt.
We prove the intermediate
claim HltS:
minus_SNo l < r.
We prove the intermediate
claim HlS:
SNo l.
An
exact proof term for the current goal is
(real_SNo l HlR).
We prove the intermediate
claim HrS:
SNo r.
An
exact proof term for the current goal is
(real_SNo r HrR).
We prove the intermediate
claim Hneg:
minus_SNo r < l.
We prove the intermediate
claim HnegR:
Rlt u l.
An
exact proof term for the current goal is
(RltI u l HuR HlR Hneg).
An exact proof term for the current goal is (Hnlt_u_l HnegR).
rewrite the current goal using HdistDef (from left to right).
∎