Let F be given.
We prove the intermediate
claim HFpow:
F ∈ 𝒫 S.
An
exact proof term for the current goal is
(SepE1 (𝒫 S) (λF0 : set ⇒ finite F0) F HF).
We prove the intermediate
claim HFfin:
finite F.
An
exact proof term for the current goal is
(SepE2 (𝒫 S) (λF0 : set ⇒ finite F0) F HF).
We prove the intermediate
claim Hfmap:
∀a ∈ S, f a ∈ ω.
An
exact proof term for the current goal is
(andEL (∀a ∈ S, f a ∈ ω) (∀a b ∈ S, f a = f b → a = b) Hf).
We prove the intermediate
claim HImgPow:
ImgF F ∈ 𝒫 ω.
An
exact proof term for the current goal is
(image_In_Power S ω f Hfmap F HFpow).
We prove the intermediate
claim HImgFin:
finite (ImgF F).
An
exact proof term for the current goal is
(Repl_finite f F HFfin).
An
exact proof term for the current goal is
(SepI (𝒫 ω) (λF0 : set ⇒ finite F0) (ImgF F) HImgPow HImgFin).
We prove the intermediate
claim Hhdef:
h F = code (ImgF F).
rewrite the current goal using Hhdef (from left to right).
An exact proof term for the current goal is (Hcodemap (ImgF F) HImg).
Let F1 be given.
Let F2 be given.
We prove the intermediate
claim HF1pow:
F1 ∈ 𝒫 S.
An
exact proof term for the current goal is
(SepE1 (𝒫 S) (λF0 : set ⇒ finite F0) F1 HF1).
We prove the intermediate
claim HF2pow:
F2 ∈ 𝒫 S.
An
exact proof term for the current goal is
(SepE1 (𝒫 S) (λF0 : set ⇒ finite F0) F2 HF2).
We prove the intermediate
claim HF1sub:
F1 ⊆ S.
An
exact proof term for the current goal is
(PowerE S F1 HF1pow).
We prove the intermediate
claim HF2sub:
F2 ⊆ S.
An
exact proof term for the current goal is
(PowerE S F2 HF2pow).
We prove the intermediate
claim Hf_inj:
∀a b ∈ S, f a = f b → a = b.
An
exact proof term for the current goal is
(andER (∀a ∈ S, f a ∈ ω) (∀a b ∈ S, f a = f b → a = b) Hf).
We prove the intermediate
claim Hfmap:
∀a ∈ S, f a ∈ ω.
An
exact proof term for the current goal is
(andEL (∀a ∈ S, f a ∈ ω) (∀a b ∈ S, f a = f b → a = b) Hf).
We prove the intermediate
claim HF1fin:
finite F1.
An
exact proof term for the current goal is
(SepE2 (𝒫 S) (λF0 : set ⇒ finite F0) F1 HF1).
We prove the intermediate
claim HImgPow:
ImgF F1 ∈ 𝒫 ω.
An
exact proof term for the current goal is
(image_In_Power S ω f Hfmap F1 HF1pow).
We prove the intermediate
claim HImgFin:
finite (ImgF F1).
An
exact proof term for the current goal is
(Repl_finite f F1 HF1fin).
An
exact proof term for the current goal is
(SepI (𝒫 ω) (λF0 : set ⇒ finite F0) (ImgF F1) HImgPow HImgFin).
We prove the intermediate
claim HF2fin:
finite F2.
An
exact proof term for the current goal is
(SepE2 (𝒫 S) (λF0 : set ⇒ finite F0) F2 HF2).
We prove the intermediate
claim HImgPow:
ImgF F2 ∈ 𝒫 ω.
An
exact proof term for the current goal is
(image_In_Power S ω f Hfmap F2 HF2pow).
We prove the intermediate
claim HImgFin:
finite (ImgF F2).
An
exact proof term for the current goal is
(Repl_finite f F2 HF2fin).
An
exact proof term for the current goal is
(SepI (𝒫 ω) (λF0 : set ⇒ finite F0) (ImgF F2) HImgPow HImgFin).
We prove the intermediate
claim Hhdef1:
h F1 = code (ImgF F1).
We prove the intermediate
claim Hhdef2:
h F2 = code (ImgF F2).
We prove the intermediate
claim HeqImg:
ImgF F1 = ImgF F2.
Apply (Hcodeinj (ImgF F1) HImg1 (ImgF F2) HImg2) to the current goal.
We prove the intermediate
claim Hcodeeq:
code (ImgF F1) = code (ImgF F2).
We prove the intermediate
claim Hc1:
code (ImgF F1) = h F1.
Use symmetry.
An exact proof term for the current goal is Hhdef1.
We prove the intermediate
claim Hc2:
h F2 = code (ImgF F2).
An exact proof term for the current goal is Hhdef2.
We prove the intermediate
claim Hmid:
code (ImgF F1) = h F2.
An
exact proof term for the current goal is
(eq_i_tra (code (ImgF F1)) (h F1) (h F2) Hc1 Heq).
An
exact proof term for the current goal is
(eq_i_tra (code (ImgF F1)) (h F2) (code (ImgF F2)) Hmid Hc2).
An exact proof term for the current goal is Hcodeeq.
Let x be given.
We prove the intermediate
claim HxS:
x ∈ S.
An exact proof term for the current goal is (HF1sub x Hx1).
We prove the intermediate
claim Hfx1:
f x ∈ ImgF F1.
An
exact proof term for the current goal is
(ReplI F1 f x Hx1).
We prove the intermediate
claim Hfx2:
f x ∈ ImgF F2.
rewrite the current goal using HeqImg (from right to left).
An exact proof term for the current goal is Hfx1.
Let y be given.
We prove the intermediate
claim HyS:
y ∈ S.
An exact proof term for the current goal is (HF2sub y Hy2).
We prove the intermediate
claim Heqxy:
x = y.
An exact proof term for the current goal is (Hf_inj x HxS y HyS Hfxy).
rewrite the current goal using Heqxy (from left to right).
An exact proof term for the current goal is Hy2.
Let x be given.
We prove the intermediate
claim HxS:
x ∈ S.
An exact proof term for the current goal is (HF2sub x Hx2).
We prove the intermediate
claim Hfx2:
f x ∈ ImgF F2.
An
exact proof term for the current goal is
(ReplI F2 f x Hx2).
We prove the intermediate
claim Hfx1:
f x ∈ ImgF F1.
rewrite the current goal using HeqImg (from left to right).
An exact proof term for the current goal is Hfx2.
Let y be given.
We prove the intermediate
claim HyS:
y ∈ S.
An exact proof term for the current goal is (HF1sub y Hy1).
We prove the intermediate
claim Heqxy:
x = y.
An exact proof term for the current goal is (Hf_inj x HxS y HyS Hfxy).
rewrite the current goal using Heqxy (from left to right).
An exact proof term for the current goal is Hy1.
∎