Apply Hex to the current goal.
Let a0 be given.
Assume Ha0core.
Apply Ha0core to the current goal.
Assume Ha0X Ha0rest.
Apply Ha0rest to the current goal.
Let b1 be given.
Assume Hb1core.
Apply Hb1core to the current goal.
Assume Hb1X Hb0def.
rewrite the current goal using Hb0def (from right to left).
An exact proof term for the current goal is Hxb0.
We prove the intermediate
claim Ha0x:
order_rel X a0 x.
We prove the intermediate
claim Hxb1:
order_rel X x b1.
Apply Hleft to the current goal.
We prove the intermediate
claim Ha0a:
order_rel X a0 a.
rewrite the current goal using Hxa (from right to left).
An exact proof term for the current goal is Ha0x.
We prove the intermediate
claim Hab1:
order_rel X a b1.
rewrite the current goal using Hxa (from right to left).
An exact proof term for the current goal is Hxb1.
An exact proof term for the current goal is (Hsucc b1 Hb1X Hab1).
Apply Hexy0 to the current goal.
Let y be given.
Assume Hycore.
Apply Hycore to the current goal.
Assume HyXpair Hyb1.
We prove the intermediate
claim HyX:
y ∈ X.
An
exact proof term for the current goal is
(andEL (y ∈ X) (order_rel X a y) HyXpair).
We prove the intermediate
claim Hay:
order_rel X a y.
An
exact proof term for the current goal is
(andER (y ∈ X) (order_rel X a y) HyXpair).
We prove the intermediate
claim Ha0y:
order_rel X a0 y.
An
exact proof term for the current goal is
(order_rel_trans X a0 a y Hso Ha0X Ha HyX Ha0a Hay).
We prove the intermediate
claim Hyb:
order_rel X y b.
An
exact proof term for the current goal is
(order_rel_trans X y b1 b Hso HyX Hb1X Hb Hyb1 Hb1ltb).
We use y to witness the existential quantifier.
Apply andI to the current goal.
rewrite the current goal using Hb0def (from left to right).
An
exact proof term for the current goal is
(order_intervalI X a b y HyX Hay Hyb).
An exact proof term for the current goal is (Hsucc b Hb Hab).
Apply Hexy0 to the current goal.
Let y be given.
Assume Hycore.
Apply Hycore to the current goal.
Assume HyXpair Hyb.
We prove the intermediate
claim HyX:
y ∈ X.
An
exact proof term for the current goal is
(andEL (y ∈ X) (order_rel X a y) HyXpair).
We prove the intermediate
claim Hay:
order_rel X a y.
An
exact proof term for the current goal is
(andER (y ∈ X) (order_rel X a y) HyXpair).
We prove the intermediate
claim Ha0y:
order_rel X a0 y.
An
exact proof term for the current goal is
(order_rel_trans X a0 a y Hso Ha0X Ha HyX Ha0a Hay).
We prove the intermediate
claim Hyb1:
order_rel X y b1.
rewrite the current goal using Hb1eq (from left to right).
An exact proof term for the current goal is Hyb.
We use y to witness the existential quantifier.
Apply andI to the current goal.
rewrite the current goal using Hb0def (from left to right).
An
exact proof term for the current goal is
(order_intervalI X a b y HyX Hay Hyb).
An exact proof term for the current goal is (Hsucc b Hb Hab).
Apply Hexy0 to the current goal.
Let y be given.
Assume Hycore.
Apply Hycore to the current goal.
Assume HyXpair Hyb.
We prove the intermediate
claim HyX:
y ∈ X.
An
exact proof term for the current goal is
(andEL (y ∈ X) (order_rel X a y) HyXpair).
We prove the intermediate
claim Hay:
order_rel X a y.
An
exact proof term for the current goal is
(andER (y ∈ X) (order_rel X a y) HyXpair).
We prove the intermediate
claim Ha0y:
order_rel X a0 y.
An
exact proof term for the current goal is
(order_rel_trans X a0 a y Hso Ha0X Ha HyX Ha0a Hay).
We prove the intermediate
claim Hyb1:
order_rel X y b1.
An
exact proof term for the current goal is
(order_rel_trans X y b b1 Hso HyX Hb Hb1X Hyb Hbltb1).
We use y to witness the existential quantifier.
Apply andI to the current goal.
rewrite the current goal using Hb0def (from left to right).
An
exact proof term for the current goal is
(order_intervalI X a b y HyX Hay Hyb).
Apply Hright to the current goal.
We prove the intermediate
claim Hb1gtb:
order_rel X b b1.
rewrite the current goal using Hxb (from right to left).
An exact proof term for the current goal is Hxb1.
An exact proof term for the current goal is (Hpred a Ha Hab).
Apply Hexy0 to the current goal.
Let y be given.
Assume Hycore.
Apply Hycore to the current goal.
Assume HyXpair Hyb.
We prove the intermediate
claim HyX:
y ∈ X.
An
exact proof term for the current goal is
(andEL (y ∈ X) (order_rel X a y) HyXpair).
We prove the intermediate
claim Hay:
order_rel X a y.
An
exact proof term for the current goal is
(andER (y ∈ X) (order_rel X a y) HyXpair).
We prove the intermediate
claim Ha0y:
order_rel X a0 y.
An
exact proof term for the current goal is
(order_rel_trans X a0 a y Hso Ha0X Ha HyX Ha0lta Hay).
We prove the intermediate
claim Hyb1:
order_rel X y b1.
An
exact proof term for the current goal is
(order_rel_trans X y b b1 Hso HyX Hb Hb1X Hyb Hb1gtb).
We use y to witness the existential quantifier.
Apply andI to the current goal.
rewrite the current goal using Hb0def (from left to right).
An
exact proof term for the current goal is
(order_intervalI X a b y HyX Hay Hyb).
An exact proof term for the current goal is (Hpred a Ha Hab).
Apply Hexy0 to the current goal.
Let y be given.
Assume Hycore.
Apply Hycore to the current goal.
Assume HyXpair Hyb.
We prove the intermediate
claim HyX:
y ∈ X.
An
exact proof term for the current goal is
(andEL (y ∈ X) (order_rel X a y) HyXpair).
We prove the intermediate
claim Hay:
order_rel X a y.
An
exact proof term for the current goal is
(andER (y ∈ X) (order_rel X a y) HyXpair).
We prove the intermediate
claim Ha0y:
order_rel X a0 y.
rewrite the current goal using Ha0eq (from left to right).
An exact proof term for the current goal is Hay.
We prove the intermediate
claim Hyb1:
order_rel X y b1.
An
exact proof term for the current goal is
(order_rel_trans X y b b1 Hso HyX Hb Hb1X Hyb Hb1gtb).
We use y to witness the existential quantifier.
Apply andI to the current goal.
rewrite the current goal using Hb0def (from left to right).
An
exact proof term for the current goal is
(order_intervalI X a b y HyX Hay Hyb).
We prove the intermediate
claim Hlt:
order_rel X a0 b.
rewrite the current goal using Hxb (from right to left).
An exact proof term for the current goal is Ha0x.
An exact proof term for the current goal is (Hpred a0 Ha0X Hlt).
Apply Hexy0 to the current goal.
Let y be given.
Assume Hycore.
Apply Hycore to the current goal.
Assume HyXpair Hyb.
We prove the intermediate
claim HyX:
y ∈ X.
An
exact proof term for the current goal is
(andEL (y ∈ X) (order_rel X a0 y) HyXpair).
We prove the intermediate
claim Ha0y:
order_rel X a0 y.
An
exact proof term for the current goal is
(andER (y ∈ X) (order_rel X a0 y) HyXpair).
We prove the intermediate
claim Hay:
order_rel X a y.
An
exact proof term for the current goal is
(order_rel_trans X a a0 y Hso Ha Ha0X HyX Halta0 Ha0y).
We prove the intermediate
claim Hyb1:
order_rel X y b1.
An
exact proof term for the current goal is
(order_rel_trans X y b b1 Hso HyX Hb Hb1X Hyb Hb1gtb).
We use y to witness the existential quantifier.
Apply andI to the current goal.
rewrite the current goal using Hb0def (from left to right).
An
exact proof term for the current goal is
(order_intervalI X a b y HyX Hay Hyb).
We use x to witness the existential quantifier.
Apply andI to the current goal.
An exact proof term for the current goal is Hxb0.
An
exact proof term for the current goal is
(order_intervalI X a b x HxX Hax Hxb).
We prove the intermediate
claim Hex:
∃b1 ∈ X, b0 = {x0 ∈ X|order_rel X x0 b1}.
An
exact proof term for the current goal is
(SepE2 (𝒫 X) (λI : set ⇒ ∃b1 ∈ X, I = {x0 ∈ X|order_rel X x0 b1}) b0 Hb0Low).
Apply Hex to the current goal.
Let b1 be given.
Assume Hb1core.
Apply Hb1core to the current goal.
Assume Hb1X Hb0def.
rewrite the current goal using Hb0def (from right to left).
An exact proof term for the current goal is Hxb0.
We prove the intermediate
claim Hxb1:
order_rel X x b1.
An
exact proof term for the current goal is
(SepE2 X (λx0 : set ⇒ order_rel X x0 b1) x HxIn).
Apply Hleft to the current goal.
We prove the intermediate
claim Hab1:
order_rel X a b1.
rewrite the current goal using Hxa (from right to left).
An exact proof term for the current goal is Hxb1.
An exact proof term for the current goal is (Hsucc b1 Hb1X Hab1).
Apply Hexy0 to the current goal.
Let y be given.
Assume Hycore.
Apply Hycore to the current goal.
Assume HyXpair Hyb1.
We prove the intermediate
claim HyX:
y ∈ X.
An
exact proof term for the current goal is
(andEL (y ∈ X) (order_rel X a y) HyXpair).
We prove the intermediate
claim Hay:
order_rel X a y.
An
exact proof term for the current goal is
(andER (y ∈ X) (order_rel X a y) HyXpair).
We prove the intermediate
claim Hyb:
order_rel X y b.
An
exact proof term for the current goal is
(order_rel_trans X y b1 b Hso HyX Hb1X Hb Hyb1 Hb1ltb).
We use y to witness the existential quantifier.
Apply andI to the current goal.
rewrite the current goal using Hb0def (from left to right).
An
exact proof term for the current goal is
(SepI X (λx0 : set ⇒ order_rel X x0 b1) y HyX Hyb1).
An
exact proof term for the current goal is
(order_intervalI X a b y HyX Hay Hyb).
An exact proof term for the current goal is (Hsucc b Hb Hab).
Apply Hexy0 to the current goal.
Let y be given.
Assume Hycore.
Apply Hycore to the current goal.
Assume HyXpair Hyb.
We prove the intermediate
claim HyX:
y ∈ X.
An
exact proof term for the current goal is
(andEL (y ∈ X) (order_rel X a y) HyXpair).
We prove the intermediate
claim Hay:
order_rel X a y.
An
exact proof term for the current goal is
(andER (y ∈ X) (order_rel X a y) HyXpair).
We prove the intermediate
claim Hyb1:
order_rel X y b1.
rewrite the current goal using Hb1eq (from left to right).
An exact proof term for the current goal is Hyb.
We use y to witness the existential quantifier.
Apply andI to the current goal.
rewrite the current goal using Hb0def (from left to right).
An
exact proof term for the current goal is
(SepI X (λx0 : set ⇒ order_rel X x0 b1) y HyX Hyb1).
An
exact proof term for the current goal is
(order_intervalI X a b y HyX Hay Hyb).
An exact proof term for the current goal is (Hsucc b Hb Hab).
Apply Hexy0 to the current goal.
Let y be given.
Assume Hycore.
Apply Hycore to the current goal.
Assume HyXpair Hyb.
We prove the intermediate
claim HyX:
y ∈ X.
An
exact proof term for the current goal is
(andEL (y ∈ X) (order_rel X a y) HyXpair).
We prove the intermediate
claim Hay:
order_rel X a y.
An
exact proof term for the current goal is
(andER (y ∈ X) (order_rel X a y) HyXpair).
We prove the intermediate
claim Hyb1:
order_rel X y b1.
An
exact proof term for the current goal is
(order_rel_trans X y b b1 Hso HyX Hb Hb1X Hyb Hbltb1).
We use y to witness the existential quantifier.
Apply andI to the current goal.
rewrite the current goal using Hb0def (from left to right).
An
exact proof term for the current goal is
(SepI X (λx0 : set ⇒ order_rel X x0 b1) y HyX Hyb1).
An
exact proof term for the current goal is
(order_intervalI X a b y HyX Hay Hyb).
Apply Hright to the current goal.
We prove the intermediate
claim Hb1gtb:
order_rel X b b1.
rewrite the current goal using Hxb (from right to left).
An exact proof term for the current goal is Hxb1.
An exact proof term for the current goal is (Hpred a Ha Hab).
Apply Hexy0 to the current goal.
Let y be given.
Assume Hycore.
Apply Hycore to the current goal.
Assume HyXpair Hyb.
We prove the intermediate
claim HyX:
y ∈ X.
An
exact proof term for the current goal is
(andEL (y ∈ X) (order_rel X a y) HyXpair).
We prove the intermediate
claim Hay:
order_rel X a y.
An
exact proof term for the current goal is
(andER (y ∈ X) (order_rel X a y) HyXpair).
We prove the intermediate
claim Hyb1:
order_rel X y b1.
An
exact proof term for the current goal is
(order_rel_trans X y b b1 Hso HyX Hb Hb1X Hyb Hb1gtb).
We use y to witness the existential quantifier.
Apply andI to the current goal.
rewrite the current goal using Hb0def (from left to right).
An
exact proof term for the current goal is
(SepI X (λx0 : set ⇒ order_rel X x0 b1) y HyX Hyb1).
An
exact proof term for the current goal is
(order_intervalI X a b y HyX Hay Hyb).
We use x to witness the existential quantifier.
Apply andI to the current goal.
An exact proof term for the current goal is Hxb0.
An
exact proof term for the current goal is
(order_intervalI X a b x HxX Hax Hxb).