Let A and y be given.
We prove the intermediate
claim HsubA:
A ⊆ ω.
We prove the intermediate
claim Hexn:
∃n ∈ ω, ∀m ∈ A, m ∈ n.
An exact proof term for the current goal is (HpA HsubA).
Apply Hexn to the current goal.
Let n be given.
Assume Hnand.
We prove the intermediate
claim Hn:
n ∈ ω.
An
exact proof term for the current goal is
(andEL (n ∈ ω) (∀m ∈ A, m ∈ n) Hnand).
We prove the intermediate
claim Hnprop:
∀m ∈ A, m ∈ n.
An
exact proof term for the current goal is
(andER (n ∈ ω) (∀m ∈ A, m ∈ n) Hnand).
We will
prove ∃n0 ∈ ω, ∀m : set, m ∈ A ∪ {y} → m ∈ n0.
We prove the intermediate
claim Hy_in_union:
y ∈ A ∪ {y}.
An
exact proof term for the current goal is
(SingI y).
We prove the intermediate
claim Hy_omega:
y ∈ ω.
An exact proof term for the current goal is (HsubAy y Hy_in_union).
We prove the intermediate
claim Hysucc_omega:
ordsucc y ∈ ω.
An
exact proof term for the current goal is
(omega_ordsucc y Hy_omega).
We prove the intermediate
claim Hn_union_omega:
n ∪ ordsucc y ∈ ω.
We prove the intermediate
claim Hn0_omega:
n0 ∈ ω.
We use n0 to witness the existential quantifier.
Apply andI to the current goal.
An exact proof term for the current goal is Hn0_omega.
Let m be given.
We prove the intermediate
claim Hmn:
m ∈ n.
An exact proof term for the current goal is (Hnprop m HmA).
We prove the intermediate
claim HmnU:
m ∈ n ∪ ordsucc y.
We prove the intermediate
claim Hmy:
m = y.
An
exact proof term for the current goal is
(SingE y m HmY).
rewrite the current goal using Hmy (from left to right).
We prove the intermediate
claim Hy_in_succ:
y ∈ ordsucc y.
An
exact proof term for the current goal is
(ordsuccI2 y).
We prove the intermediate
claim Hy_in_U:
y ∈ n ∪ ordsucc y.