We prove the intermediate
claim L1:
(if ⋃ X ∈ X then f (⋃ X) (g (⋃ X)) else z) = z.
An
exact proof term for the current goal is
(If_i_0 (⋃ X ∈ X) (f (⋃ X) (g (⋃ X))) z H2).
We prove the intermediate
claim L2:
(if ⋃ X ∈ X then f (⋃ X) (h (⋃ X)) else z) = z.
An
exact proof term for the current goal is
(If_i_0 (⋃ X ∈ X) (f (⋃ X) (h (⋃ X))) z H2).
rewrite the current goal using L2 (from left to right).
An exact proof term for the current goal is L1.
∎