Let L and R be given.
Let alpha be given.
Let p be given.
Set p0 to be the term
λdelta ⇒ p delta ∧ delta ≠ alpha of type
set → prop.
Set p1 to be the term
λdelta ⇒ p delta ∨ delta = alpha of type
set → prop.
Apply Hp to the current goal.
Apply Hp0 to the current goal.
Apply Hp1 to the current goal.
We prove the intermediate
claim Lnp0a:
¬ p0 alpha.
Assume H10.
Apply H10 to the current goal.
Assume H11: p alpha.
Apply H12 to the current goal.
Use reflexivity.
We prove the intermediate claim Lp1a: p1 alpha.
We will
prove p alpha ∨ alpha = alpha.
Apply orIR to the current goal.
Use reflexivity.
We prove the intermediate
claim Lap0p:
PNoLt (ordsucc alpha) p0 alpha p.
We will
prove PNoEq_ alpha p0 p.
We will
prove ¬ p0 alpha.
An exact proof term for the current goal is Lnp0a.
We prove the intermediate
claim Lapp1:
PNoLt alpha p (ordsucc alpha) p1.
We will
prove PNoEq_ alpha p p1.
We will prove p1 alpha.
An exact proof term for the current goal is Lp1a.
Apply andI to the current goal.
Let beta be given.
Let q be given.
An exact proof term for the current goal is Hq.
Apply Hp0a beta H10 q to the current goal.
An exact proof term for the current goal is L4.
An exact proof term for the current goal is Lap0p.
We prove the intermediate
claim L6:
∀gamma ∈ ordsucc alpha, gamma ∈ beta → PNoEq_ gamma p q → q gamma → p0 gamma.
Let gamma be given.
Assume H11: q gamma.
Apply dneg to the current goal.
We prove the intermediate
claim Lc:
ordinal gamma.
We prove the intermediate
claim L6a:
PNoLt gamma q beta q.
An exact proof term for the current goal is Hc2.
We will
prove PNoEq_ gamma q q.
We will prove q gamma.
An exact proof term for the current goal is H11.
We prove the intermediate
claim L6b:
PNo_downc L gamma q.
We will
prove ∃delta, ordinal delta ∧ ∃r : set → prop, L delta r ∧ PNoLe gamma q delta r.
We use
beta to
witness the existential quantifier.
Apply andI to the current goal.
An exact proof term for the current goal is Hb.
We use q to witness the existential quantifier.
Apply andI to the current goal.
An exact proof term for the current goal is Hq.
An exact proof term for the current goal is L6a.
We prove the intermediate
claim L6c:
PNoLt gamma q (ordsucc alpha) p0.
An exact proof term for the current goal is Hp0a gamma Hc1 q L6b.
We prove the intermediate
claim L6d:
PNoLt (ordsucc alpha) p0 gamma q.
An exact proof term for the current goal is Hc1.
We will
prove PNoEq_ gamma p0 q.
Apply PNoEq_tra_ gamma p0 p q to the current goal.
We will
prove PNoEq_ gamma p p0.
Apply ordsuccE alpha gamma Hc1 to the current goal.
We will
prove PNoEq_ alpha p p0.
rewrite the current goal using H12 (from left to right).
We will
prove PNoEq_ alpha p p0.
An exact proof term for the current goal is H10.
We will
prove ¬ p0 gamma.
An exact proof term for the current goal is HNC.
An
exact proof term for the current goal is
PNoLt_tra gamma (ordsucc alpha) gamma Lc Lsa Lc q p0 q L6c L6d.
Assume H10.
Apply H10 to the current goal.
Apply PNoLtE alpha beta p q H10 to the current goal.
Apply H11 to the current goal.
Let gamma be given.
Assume H12.
Apply H12 to the current goal.
Assume H12.
Apply H12 to the current goal.
Assume H12.
Apply H12 to the current goal.
Assume H14: q gamma.
Apply L6 gamma (ordsuccI1 alpha gamma Hc1) Hc2 H12 H14 to the current goal.
Assume H15: p gamma.
Assume _.
Apply H13 to the current goal.
An exact proof term for the current goal is H15.
Assume H13: q alpha.
Apply Lnp0a to the current goal.
We will prove p0 alpha.
An
exact proof term for the current goal is
L6 alpha (ordsuccI2 alpha) H11 H12 H13.
Assume _ _.
Apply L5 to the current goal.
An exact proof term for the current goal is H11.
Assume H10.
Apply H10 to the current goal.
Apply L5 to the current goal.
rewrite the current goal using H10a (from right to left).
An exact proof term for the current goal is H10.
Let beta be given.
Let q be given.
An exact proof term for the current goal is Hq.
An exact proof term for the current goal is Lapp1.
Apply Hp1b beta H10 q to the current goal.
An exact proof term for the current goal is L4.
We prove the intermediate
claim L6:
∀gamma ∈ ordsucc alpha, gamma ∈ beta → PNoEq_ gamma q p → p1 gamma → q gamma.
Let gamma be given.
Assume H11: p1 gamma.
Apply dneg to the current goal.
We prove the intermediate
claim Lc:
ordinal gamma.
We prove the intermediate
claim L6a:
PNoLt beta q gamma q.
An exact proof term for the current goal is Hc2.
We will
prove PNoEq_ gamma q q.
An exact proof term for the current goal is HNC.
We prove the intermediate
claim L6b:
PNo_upc R gamma q.
We will
prove ∃delta, ordinal delta ∧ ∃r : set → prop, R delta r ∧ PNoLe delta r gamma q.
We use
beta to
witness the existential quantifier.
Apply andI to the current goal.
An exact proof term for the current goal is Hb.
We use q to witness the existential quantifier.
Apply andI to the current goal.
An exact proof term for the current goal is Hq.
An exact proof term for the current goal is L6a.
We prove the intermediate
claim L6c:
PNoLt (ordsucc alpha) p1 gamma q.
An exact proof term for the current goal is Hp1b gamma Hc1 q L6b.
We prove the intermediate
claim L6d:
PNoLt gamma q (ordsucc alpha) p1.
An exact proof term for the current goal is Hc1.
We will
prove PNoEq_ gamma q p1.
Apply PNoEq_tra_ gamma q p p1 to the current goal.
An exact proof term for the current goal is H10.
We will
prove PNoEq_ gamma p p1.
Apply ordsuccE alpha gamma Hc1 to the current goal.
We will
prove PNoEq_ alpha p p1.
rewrite the current goal using H12 (from left to right).
We will
prove PNoEq_ alpha p p1.
We will prove p1 gamma.
An exact proof term for the current goal is H11.
An
exact proof term for the current goal is
PNoLt_tra gamma (ordsucc alpha) gamma Lc Lsa Lc q p1 q L6d L6c.
Assume H10.
Apply H10 to the current goal.
Assume H10.
An exact proof term for the current goal is H10.
Assume H10.
Apply H10 to the current goal.
Apply L5 to the current goal.
rewrite the current goal using H10a (from right to left).
Apply PNoLtE beta alpha q p H10 to the current goal.
Apply H11 to the current goal.
Let gamma be given.
Assume H12.
Apply H12 to the current goal.
Assume H12.
Apply H12 to the current goal.
Assume H12.
Apply H12 to the current goal.
Assume H14: p gamma.
Apply H13 to the current goal.
Apply L6 gamma (ordsuccI1 alpha gamma Hc1) Hc2 H12 to the current goal.
We will prove p1 gamma.
We will
prove p gamma ∨ gamma = alpha.
Apply orIL to the current goal.
An exact proof term for the current goal is H14.
Assume _ _.
Apply L5 to the current goal.
An exact proof term for the current goal is H11.
Apply H13 to the current goal.
An
exact proof term for the current goal is
L6 alpha (ordsuccI2 alpha) H11 H12 Lp1a.
∎