Let X, m, e and x be given.
We prove the intermediate
claim HmNat:
nat_p m.
An
exact proof term for the current goal is
(omega_nat_p m HmO).
An
exact proof term for the current goal is
(nat_ordsucc m HmNat).
Let k be given.
rewrite the current goal using Happ (from left to right).
We prove the intermediate
claim Hkm:
¬ (k = m).
We prove the intermediate
claim Hmm:
m ∈ m.
rewrite the current goal using Heq (from right to left) at position 1.
An exact proof term for the current goal is HkM.
An
exact proof term for the current goal is
((In_irref m) Hmm).
We prove the intermediate
claim Hksm:
¬ (k = ordsucc m).
We prove the intermediate
claim HkIn:
ordsucc m ∈ m.
rewrite the current goal using Heq (from right to left) at position 1.
An exact proof term for the current goal is HkM.
We prove the intermediate
claim HmOrd:
ordinal m.
We prove the intermediate
claim HmTrans:
TransSet m.
We prove the intermediate
claim Hsub:
ordsucc m ⊆ m.
An
exact proof term for the current goal is
(HmTrans (ordsucc m) HkIn).
We prove the intermediate
claim Hmm:
m ∈ m.
An
exact proof term for the current goal is
(Hsub m (ordsuccI2 m)).
An
exact proof term for the current goal is
((In_irref m) Hmm).
Use reflexivity.
We prove the intermediate
claim HmNat2:
nat_p m.
An exact proof term for the current goal is HmNat.
Let k be given.
Use symmetry.
An exact proof term for the current goal is (Hprefix k HkM).
We prove the intermediate
claim HmO2:
m ∈ ω.
An exact proof term for the current goal is HmO.
rewrite the current goal using
(nat_primrec_S 0 step m HmNat) (from left to right).
rewrite the current goal using
(nat_primrec_S 0 stepS m HmNat) (from left to right).
rewrite the current goal using Hsum_m (from right to left).
rewrite the current goal using Hswap_sm (from left to right).
rewrite the current goal using Hswap_m (from left to right).
rewrite the current goal using Hcom3 (from left to right).
Use reflexivity.
∎