Let x be given.
We prove the intermediate
claim HxX:
x ∈ X.
We prove the intermediate
claim Hleft:
x = a ∨ order_rel X a x.
We prove the intermediate
claim Hright:
x = b ∨ order_rel X x b.
We prove the intermediate
claim HnotLower:
¬ (order_rel X x a).
Apply Hleft to the current goal.
rewrite the current goal using Heq (from left to right) at position 1.
We prove the intermediate
claim Haa:
order_rel X a a.
An
exact proof term for the current goal is
(order_rel_trans X a x a Hso HaX HxX HaX Hax Hxa).
We prove the intermediate
claim HnotUpper:
¬ (order_rel X b x).
Apply Hright to the current goal.
rewrite the current goal using Heq (from left to right).
We prove the intermediate
claim Hbb:
order_rel X b b.
An
exact proof term for the current goal is
(order_rel_trans X b x b Hso HbX HxX HbX Hbx Hxb).
Apply (setminusI X U x HxX) to the current goal.
We prove the intermediate
claim Hxa:
order_rel X x a.
An
exact proof term for the current goal is
(SepE2 X (λt : set ⇒ order_rel X t a) x HxLow).
An exact proof term for the current goal is (HnotLower Hxa).
We prove the intermediate
claim Hbx:
order_rel X b x.
An
exact proof term for the current goal is
(SepE2 X (λt : set ⇒ order_rel X b t) x HxUp).
An exact proof term for the current goal is (HnotUpper Hbx).
Let x be given.
We prove the intermediate
claim Hxpair:
x ∈ X ∧ x ∉ U.
An
exact proof term for the current goal is
(setminusE X U x Hx).
We prove the intermediate
claim HxX:
x ∈ X.
An
exact proof term for the current goal is
(andEL (x ∈ X) (x ∉ U) Hxpair).
We prove the intermediate
claim HxNotU:
x ∉ U.
An
exact proof term for the current goal is
(andER (x ∈ X) (x ∉ U) Hxpair).
We prove the intermediate
claim HnotLower:
¬ (order_rel X x a).
An
exact proof term for the current goal is
(SepI X (λt : set ⇒ order_rel X t a) x HxX Hxa).
An exact proof term for the current goal is (HnotLowSet HxLow).
We prove the intermediate
claim HnotUpper:
¬ (order_rel X b x).
An
exact proof term for the current goal is
(SepI X (λt : set ⇒ order_rel X b t) x HxX Hbx).
An exact proof term for the current goal is (HnotUpSet HxUp).
We prove the intermediate
claim Hleft:
x = a ∨ order_rel X a x.
Apply FalseE to the current goal.
An exact proof term for the current goal is (HnotLower Hxa).
An
exact proof term for the current goal is
(orIL (x = a) (order_rel X a x) Heq).
An
exact proof term for the current goal is
(orIR (x = a) (order_rel X a x) Hax).
We prove the intermediate
claim Hright:
x = b ∨ order_rel X x b.
An
exact proof term for the current goal is
(orIR (x = b) (order_rel X x b) Hxb).
An
exact proof term for the current goal is
(orIL (x = b) (order_rel X x b) Heq).
Apply FalseE to the current goal.
An exact proof term for the current goal is (HnotUpper Hbx).
rewrite the current goal using Hdef (from left to right).