Let X, n, e and x be given.
We prove the intermediate
claim HnNat:
nat_p n.
An
exact proof term for the current goal is
(omega_nat_p n HnO).
rewrite the current goal using
(nat_primrec_S 0 step n HnNat) (from left to right).
rewrite the current goal using Hlast0 (from left to right).
We prove the intermediate
claim HaccR:
acc ∈ R.
Let k be given.
We prove the intermediate
claim HkDom:
k ∈ ordsucc n.
An
exact proof term for the current goal is
(ordsuccI1 n k HkN).
Let k be given.
We prove the intermediate
claim HkDom:
k ∈ ordsucc n.
An
exact proof term for the current goal is
(ordsuccI1 n k HkN).
We prove the intermediate
claim HaccS:
SNo acc.
An
exact proof term for the current goal is
(real_SNo acc HaccR).
rewrite the current goal using
(add_SNo_0R acc HaccS) (from left to right).
Use reflexivity.
∎