Let x' be given.
We prove the intermediate
claim Hgx':
g x' = y.
rewrite the current goal using
(apply_fun_graph X g x' Hx'X) (from right to left).
An exact proof term for the current goal is Hx'Eq.
We prove the intermediate
claim Hx0X:
x0 ∈ X.
An
exact proof term for the current goal is
(andEL (x0 ∈ X) (g x0 = y) Hx0pair).
We prove the intermediate
claim Hgx0:
g x0 = y.
An
exact proof term for the current goal is
(andER (x0 ∈ X) (g x0 = y) Hx0pair).
We prove the intermediate
claim Hgx'x0:
g x' = g x0.
rewrite the current goal using Hgx0 (from left to right).
An exact proof term for the current goal is Hgx'.
An exact proof term for the current goal is (Hinj x' Hx'X x0 Hx0X Hgx'x0).