Let x be given.
We prove the intermediate
claim Hexv:
∃v : set, v ∈ V ∧ x ∈ v.
An exact proof term for the current goal is (HVcovers x HxX).
Apply Hexv to the current goal.
Let v be given.
We prove the intermediate
claim HvV:
v ∈ V.
An
exact proof term for the current goal is
(andEL (v ∈ V) (x ∈ v) Hv).
We prove the intermediate
claim Hxv:
x ∈ v.
An
exact proof term for the current goal is
(andER (v ∈ V) (x ∈ v) Hv).
We prove the intermediate
claim HvTx:
v ∈ Tx.
An exact proof term for the current goal is (HVop v HvV).
We prove the intermediate
claim HvUF:
v ∈ ⋃ Fams.
rewrite the current goal using HVequiv (from right to left).
An exact proof term for the current goal is HvV.
Let G be given.
We prove the intermediate
claim HNO:
enc G ∈ ω.
An
exact proof term for the current goal is
(andEL (∀u ∈ Fams, enc u ∈ ω) (∀u v ∈ Fams, enc u = enc v → u = v) Henc G HGin).
Set N to be the term enc G.
We prove the intermediate
claim HNnat:
nat_p N.
An
exact proof term for the current goal is
(omega_nat_p N HNO).
We prove the intermediate
claim HIomega:
∀i : set, i ∈ I → i ∈ ω.
Let i be given.
We prove the intermediate
claim HIinO:
I ∈ ω.
An
exact proof term for the current goal is
(omega_ordsucc N HNO).
We prove the intermediate
claim HIsubO:
I ⊆ ω.
An exact proof term for the current goal is (HIsubO i HiI).
We prove the intermediate
claim HI_fin:
finite I.
We prove the intermediate claim Hhas: HasIndex N.
We will
prove ∃G0 : set, G0 ∈ Fams ∧ enc G0 = N.
We use G to witness the existential quantifier.
Apply andI to the current goal.
An exact proof term for the current goal is HGin.
We prove the intermediate
claim HBdefN:
B N = inv Fams enc N.
An
exact proof term for the current goal is
(If_i_1 (HasIndex N) (inv Fams enc N) Empty Hhas).
We prove the intermediate
claim HinvEqN:
inv Fams enc N = G.
An
exact proof term for the current goal is
(inj_linv Fams enc (andER (∀u ∈ Fams, enc u ∈ ω) (∀u v ∈ Fams, enc u = enc v → u = v) Henc) G HGin).
We prove the intermediate
claim HvBN:
v ∈ (B N).
rewrite the current goal using HBdefN (from left to right).
rewrite the current goal using HinvEqN (from left to right).
An exact proof term for the current goal is HvG.
Set GoodNbhd to be the term
λi : set ⇒ λN1 : set ⇒ N1 ∈ Tx ∧ x ∈ N1 ∧ ∃S1 : set, finite S1 ∧ S1 ⊆ (B i) ∧ ∀A : set, A ∈ (B i) → A ∩ N1 ≠ Empty → A ∈ S1.
Set Nbhd to be the term
λi : set ⇒ Eps_i (GoodNbhd i).
We prove the intermediate
claim HNbhd:
∀i : set, i ∈ I → GoodNbhd i (Nbhd i).
Let i be given.
We prove the intermediate
claim HiO:
i ∈ ω.
An exact proof term for the current goal is (HIomega i HiI).
An exact proof term for the current goal is (HB_lf i HiO).
We prove the intermediate
claim HexN1:
∃N1 : set, GoodNbhd i N1.
Apply HexN1 to the current goal.
Let N1 be given.
Assume HN1: GoodNbhd i N1.
An
exact proof term for the current goal is
(Eps_i_ax (GoodNbhd i) N1 HN1).
We prove the intermediate
claim HNbhdTx:
∀i : set, i ∈ I → (Nbhd i) ∈ Tx.
Let i be given.
We prove the intermediate claim Hprop: GoodNbhd i (Nbhd i).
An exact proof term for the current goal is (HNbhd i HiI).
We prove the intermediate
claim Hleft:
(Nbhd i ∈ Tx ∧ x ∈ Nbhd i).
An
exact proof term for the current goal is
(andEL (Nbhd i ∈ Tx ∧ x ∈ Nbhd i) (∃S1 : set, finite S1 ∧ S1 ⊆ (B i) ∧ ∀A : set, A ∈ (B i) → A ∩ Nbhd i ≠ Empty → A ∈ S1) Hprop).
An
exact proof term for the current goal is
(andEL (Nbhd i ∈ Tx) (x ∈ Nbhd i) Hleft).
We prove the intermediate
claim HNbhdx:
∀i : set, i ∈ I → x ∈ Nbhd i.
Let i be given.
We prove the intermediate claim Hprop: GoodNbhd i (Nbhd i).
An exact proof term for the current goal is (HNbhd i HiI).
We prove the intermediate
claim Hleft:
(Nbhd i ∈ Tx ∧ x ∈ Nbhd i).
An
exact proof term for the current goal is
(andEL (Nbhd i ∈ Tx ∧ x ∈ Nbhd i) (∃S1 : set, finite S1 ∧ S1 ⊆ (B i) ∧ ∀A : set, A ∈ (B i) → A ∩ Nbhd i ≠ Empty → A ∈ S1) Hprop).
An
exact proof term for the current goal is
(andER (Nbhd i ∈ Tx) (x ∈ Nbhd i) Hleft).
Set Nfam to be the term
{v} ∪ {Nbhd i|i ∈ I}.
We prove the intermediate
claim HNfamPow:
Nfam ∈ 𝒫 Tx.
Apply PowerI to the current goal.
Let W be given.
We prove the intermediate
claim HWeq:
W = v.
An
exact proof term for the current goal is
(SingE v W HWv).
rewrite the current goal using HWeq (from left to right).
An exact proof term for the current goal is HvTx.
Apply (ReplE_impred I (λi0 : set ⇒ Nbhd i0) W HWi (W ∈ Tx)) to the current goal.
Let i be given.
rewrite the current goal using HWeq (from left to right).
An exact proof term for the current goal is (HNbhdTx i HiI).
An exact proof term for the current goal is HW.
We prove the intermediate
claim HNfamFin:
finite Nfam.
We prove the intermediate
claim HNrepFin:
finite {Nbhd i|i ∈ I}.
An
exact proof term for the current goal is
(finite_Repl I HI_fin (λi0 : set ⇒ Nbhd i0)).
We prove the intermediate
claim HN0Tx:
N0 ∈ Tx.
We prove the intermediate
claim HxN0:
x ∈ N0.
We will
prove x ∈ {x0 ∈ X|∀U : set, U ∈ Nfam → x0 ∈ U}.
Apply SepI to the current goal.
An exact proof term for the current goal is HxX.
Let W be given.
We prove the intermediate
claim HWeq:
W = v.
An
exact proof term for the current goal is
(SingE v W HWv).
rewrite the current goal using HWeq (from left to right).
An exact proof term for the current goal is Hxv.
Apply (ReplE_impred I (λi0 : set ⇒ Nbhd i0) W HWi (x ∈ W)) to the current goal.
Let i be given.
rewrite the current goal using HWeq (from left to right).
An exact proof term for the current goal is (HNbhdx i HiI).
An exact proof term for the current goal is HW.
We use N0 to witness the existential quantifier.
Apply andI to the current goal.
Apply andI to the current goal.
An exact proof term for the current goal is HN0Tx.
An exact proof term for the current goal is HxN0.
Set GoodS to be the term
λi : set ⇒ λS1 : set ⇒ finite S1 ∧ S1 ⊆ (B i) ∧ ∀A : set, A ∈ (B i) → A ∩ (Nbhd i) ≠ Empty → A ∈ S1.
Set Sof to be the term
λi : set ⇒ Eps_i (GoodS i).
We prove the intermediate
claim HSof:
∀i : set, i ∈ I → GoodS i (Sof i).
Let i be given.
We prove the intermediate claim HNprop: GoodNbhd i (Nbhd i).
An exact proof term for the current goal is (HNbhd i HiI).
We prove the intermediate
claim HexS1:
∃S1 : set, GoodS i S1.
An
exact proof term for the current goal is
(andER (Nbhd i ∈ Tx ∧ x ∈ Nbhd i) (∃S1 : set, finite S1 ∧ S1 ⊆ (B i) ∧ ∀A : set, A ∈ (B i) → A ∩ Nbhd i ≠ Empty → A ∈ S1) HNprop).
Apply HexS1 to the current goal.
Let S1 be given.
Assume HS1: GoodS i S1.
An
exact proof term for the current goal is
(Eps_i_ax (GoodS i) S1 HS1).
We prove the intermediate
claim HSofFin:
∀i : set, i ∈ I → finite (Sof i).
Let i be given.
We prove the intermediate claim Hprop: GoodS i (Sof i).
An exact proof term for the current goal is (HSof i HiI).
We prove the intermediate
claim Hleft:
finite (Sof i) ∧ (Sof i ⊆ (B i)).
An
exact proof term for the current goal is
(andEL (finite (Sof i) ∧ Sof i ⊆ (B i)) (∀A : set, A ∈ (B i) → A ∩ Nbhd i ≠ Empty → A ∈ (Sof i)) Hprop).
An
exact proof term for the current goal is
(andEL (finite (Sof i)) (Sof i ⊆ (B i)) Hleft).
Set Tset to be the term
λi : set ⇒ {U0 ∖ Prev i|U0 ∈ (Sof i)}.
Set TFam to be the term
{Tset i|i ∈ I}.
Set S0 to be the term
⋃ TFam.
We prove the intermediate
claim HTsetFin:
∀i : set, i ∈ I → finite (Tset i).
Let i be given.
An
exact proof term for the current goal is
(finite_Repl (Sof i) (HSofFin i HiI) (λU0 : set ⇒ U0 ∖ Prev i)).
We prove the intermediate
claim HTFamFin:
finite TFam.
An
exact proof term for the current goal is
(finite_Repl I HI_fin (λi0 : set ⇒ Tset i0)).
We prove the intermediate
claim HS0Fin:
finite S0.
Set p to be the term
λF0 : set ⇒ (∀y : set, y ∈ F0 → finite y) → finite (⋃ F0).
We prove the intermediate
claim Hp0:
p Empty.
We prove the intermediate
claim HpStep:
∀F0 y : set, finite F0 → y ∉ F0 → p F0 → p (F0 ∪ {y}).
Let F0 and y be given.
Assume IH: p F0.
We prove the intermediate
claim HallF0:
∀z : set, z ∈ F0 → finite z.
Let z be given.
An
exact proof term for the current goal is
(Hall z (binunionI1 F0 {y} z HzF0)).
We prove the intermediate
claim HFinY:
finite y.
An
exact proof term for the current goal is
(Hall y (binunionI2 F0 {y} y (SingI y))).
We prove the intermediate
claim HFinUF0:
finite (⋃ F0).
An exact proof term for the current goal is (IH HallF0).
An
exact proof term for the current goal is
(binunion_finite (⋃ F0) HFinUF0 y HFinY).
We prove the intermediate claim HpTFam: p TFam.
An
exact proof term for the current goal is
(finite_ind p Hp0 HpStep TFam HTFamFin).
We prove the intermediate
claim HallTFam:
∀y : set, y ∈ TFam → finite y.
Let T be given.
Let i be given.
rewrite the current goal using HTeq (from left to right).
An exact proof term for the current goal is (HTsetFin i HiI).
An exact proof term for the current goal is (HpTFam HallTFam).
We prove the intermediate
claim HS0subC:
S0 ⊆ C.
Let a be given.
Let T be given.
Apply (ReplE_impred I (λi0 : set ⇒ Tset i0) T HT (a ∈ C)) to the current goal.
Let i be given.
We prove the intermediate
claim HaTi:
a ∈ Tset i.
rewrite the current goal using HTeq (from right to left).
An exact proof term for the current goal is HaT.
Apply (ReplE_impred (Sof i) (λU0 : set ⇒ U0 ∖ Prev i) a HaTi (a ∈ C)) to the current goal.
Let U0 be given.
We prove the intermediate
claim HU0Bi:
U0 ∈ (B i).
We prove the intermediate claim Hprop: GoodS i (Sof i).
An exact proof term for the current goal is (HSof i HiI).
We prove the intermediate
claim Hleft:
finite (Sof i) ∧ (Sof i ⊆ (B i)).
An
exact proof term for the current goal is
(andEL (finite (Sof i) ∧ Sof i ⊆ (B i)) (∀A : set, A ∈ (B i) → A ∩ Nbhd i ≠ Empty → A ∈ (Sof i)) Hprop).
We prove the intermediate
claim Hsub:
(Sof i) ⊆ (B i).
An
exact proof term for the current goal is
(andER (finite (Sof i)) (Sof i ⊆ (B i)) Hleft).
An exact proof term for the current goal is (Hsub U0 HU0).
We prove the intermediate
claim HaCn:
a ∈ Cn i.
rewrite the current goal using Haeq (from left to right).
An
exact proof term for the current goal is
(ReplI (B i) (λU1 : set ⇒ U1 ∖ Prev i) U0 HU0Bi).
We prove the intermediate
claim HCnin:
Cn i ∈ CFams.
We prove the intermediate
claim HiO:
i ∈ ω.
An exact proof term for the current goal is (HIomega i HiI).
An
exact proof term for the current goal is
(ReplI ω (λn0 : set ⇒ Cn n0) i HiO).
An
exact proof term for the current goal is
(UnionI CFams a (Cn i) HaCn HCnin).
We use S0 to witness the existential quantifier.
Apply andI to the current goal.
Apply andI to the current goal.
An exact proof term for the current goal is HS0Fin.
An exact proof term for the current goal is HS0subC.
Let A be given.
Let C0 be given.
Apply (ReplE_impred ω (λn0 : set ⇒ Cn n0) C0 HC0 (A ∈ S0)) to the current goal.
Let i be given.
We prove the intermediate
claim HAi:
A ∈ Cn i.
rewrite the current goal using HC0eq (from right to left).
An exact proof term for the current goal is HA0.
Apply (ReplE_impred (B i) (λU1 : set ⇒ U1 ∖ Prev i) A HAi (A ∈ S0)) to the current goal.
Let U0 be given.
We prove the intermediate
claim Hexy:
∃y : set, y ∈ (A ∩ N0).
Apply Hexy to the current goal.
Let y be given.
We prove the intermediate
claim HyA:
y ∈ A.
An
exact proof term for the current goal is
(binintersectE1 A N0 y HyAn0).
We prove the intermediate
claim HyN0:
y ∈ N0.
An
exact proof term for the current goal is
(binintersectE2 A N0 y HyAn0).
An exact proof term for the current goal is HyN0.
We prove the intermediate
claim HyAll:
∀W : set, W ∈ Nfam → y ∈ W.
We prove the intermediate
claim HvNfam:
v ∈ Nfam.
We prove the intermediate
claim Hyv:
y ∈ v.
An exact proof term for the current goal is (HyAll v HvNfam).
We prove the intermediate
claim HyUset:
y ∈ U0 ∖ Prev i.
rewrite the current goal using Haeq (from right to left).
An exact proof term for the current goal is HyA.
We prove the intermediate
claim HyU0:
y ∈ U0.
An
exact proof term for the current goal is
(setminusE1 U0 (Prev i) y HyUset).
We prove the intermediate
claim HyNotPrev:
y ∉ Prev i.
An
exact proof term for the current goal is
(setminusE2 U0 (Prev i) y HyUset).
We prove the intermediate
claim HnotNini:
¬ (N ∈ i).
We prove the intermediate
claim HyVsetN:
y ∈ Vset N.
We will
prove y ∈ ⋃ (B N).
An
exact proof term for the current goal is
(UnionI (B N) y v Hyv HvBN).
We prove the intermediate
claim HyPrev:
y ∈ Prev i.
An
exact proof term for the current goal is
(famunionI i (λj : set ⇒ Vset j) N y HNini HyVsetN).
An exact proof term for the current goal is (HyNotPrev HyPrev).
We prove the intermediate
claim HordN:
ordinal N.
We prove the intermediate
claim Hordi:
ordinal i.
We prove the intermediate
claim HiI:
i ∈ I.
We prove the intermediate
claim Hsub:
N ⊆ I.
An
exact proof term for the current goal is
(ordsuccI1 N).
An exact proof term for the current goal is (Hsub i HiN).
rewrite the current goal using HiEq (from left to right).
An
exact proof term for the current goal is
(ordsuccI2 N).
Apply FalseE to the current goal.
An exact proof term for the current goal is (HnotNini HNini).
We prove the intermediate
claim HWi:
(Nbhd i) ∈ Nfam.
We prove the intermediate
claim HNbhdIn:
(Nbhd i) ∈ {Nbhd j|j ∈ I}.
An
exact proof term for the current goal is
(ReplI I (λj : set ⇒ Nbhd j) i HiI).
An
exact proof term for the current goal is
(binunionI2 {v} {Nbhd j|j ∈ I} (Nbhd i) HNbhdIn).
We prove the intermediate
claim HyNbhd:
y ∈ Nbhd i.
An exact proof term for the current goal is (HyAll (Nbhd i) HWi).
We prove the intermediate
claim HnonemptyUi:
U0 ∩ (Nbhd i) ≠ Empty.
We prove the intermediate claim HpropS: GoodS i (Sof i).
An exact proof term for the current goal is (HSof i HiI).
We prove the intermediate
claim Hforall:
∀A0 : set, A0 ∈ (B i) → A0 ∩ (Nbhd i) ≠ Empty → A0 ∈ (Sof i).
An
exact proof term for the current goal is
(andER (finite (Sof i) ∧ Sof i ⊆ (B i)) (∀A0 : set, A0 ∈ (B i) → A0 ∩ (Nbhd i) ≠ Empty → A0 ∈ (Sof i)) HpropS).
We prove the intermediate
claim HU0Sof:
U0 ∈ (Sof i).
An exact proof term for the current goal is (Hforall U0 HU0Bi HnonemptyUi).
We prove the intermediate
claim HAinTset:
A ∈ Tset i.
rewrite the current goal using Haeq (from left to right).
An
exact proof term for the current goal is
(ReplI (Sof i) (λU1 : set ⇒ U1 ∖ Prev i) U0 HU0Sof).
We prove the intermediate
claim HTsetIn:
Tset i ∈ TFam.
An
exact proof term for the current goal is
(ReplI I (λi0 : set ⇒ Tset i0) i HiI).
An
exact proof term for the current goal is
(UnionI TFam A (Tset i) HAinTset HTsetIn).