Let p be given.
We prove the intermediate
claim L1:
nat_p 0 ∧ p 0.
Let n be given.
Apply H3 to the current goal.
Assume H5: p n.
Apply andI to the current goal.
An
exact proof term for the current goal is
(nat_ordsucc n H4).
An exact proof term for the current goal is (H2 n H4 H5).
Let n be given.
Assume H3.
We prove the intermediate
claim L3:
nat_p n ∧ p n.
An
exact proof term for the current goal is
(H3 (λn ⇒ nat_p n ∧ p n) L1 L2).
An
exact proof term for the current goal is
(andER (nat_p n) (p n) L3).
∎