Let n be given.
Assume Hn.
Let X be given.
Let f be given.
Set Z to be the term
{f i|i ∈ n}.
Set y to be the term f n.
We prove the intermediate
claim L1a:
X = Z ∪ {y}.
Let x be given.
Apply Hf3 x Hx to the current goal.
Let i be given.
Assume H.
Apply H to the current goal.
Apply ordsuccE n i Hi to the current goal.
rewrite the current goal using H4 (from right to left).
Apply ReplI to the current goal.
An exact proof term for the current goal is H5.
rewrite the current goal using H4 (from right to left).
rewrite the current goal using H5 (from left to right).
An
exact proof term for the current goal is
SingI (f n).
Let x be given.
Let i be given.
rewrite the current goal using H5 (from left to right).
An
exact proof term for the current goal is
Hf1 i (ordsuccI1 n i Hi).
rewrite the current goal using
SingE y x H4 (from left to right).
An
exact proof term for the current goal is
Hf1 n (ordsuccI2 n).
We prove the intermediate
claim L1b:
equip Z n.
We will
prove ∃f : set → set, bij n Z f.
We use f to witness the existential quantifier.
Apply bijI to the current goal.
Let i be given.
Assume Hi.
We will
prove f i ∈ {f i|i ∈ n}.
Apply ReplI to the current goal.
An exact proof term for the current goal is Hi.
Let i be given.
Assume Hi.
Let j be given.
Assume Hj.
Apply Hf2 to the current goal.
An exact proof term for the current goal is Hi.
An exact proof term for the current goal is Hj.
Apply ReplE' to the current goal.
Let i be given.
We will
prove ∃i' ∈ n, f i' = f i.
We use i to witness the existential quantifier.
Apply andI to the current goal.
An exact proof term for the current goal is Hi.
rewrite the current goal using L1a (from left to right).
We will
prove p (Z ∪ {y}).
Apply H2 Z y to the current goal.
We use n to witness the existential quantifier.
Apply andI to the current goal.
An
exact proof term for the current goal is
nat_p_omega n Hn.
An exact proof term for the current goal is L1b.
Let i be given.
rewrite the current goal using
Hf2 n (ordsuccI2 n) i (ordsuccI1 n i Hi) H5 (from left to right) at position 1.
An exact proof term for the current goal is Hi.
We will prove p Z.
An exact proof term for the current goal is IHn Z L1b.