Let b be given.
Assume HbR: b R.
We will prove preimage_of R neg_fun (open_ray_lower R b) = open_ray_upper R (minus_SNo b).
Apply set_ext to the current goal.
Let t be given.
Assume Ht: t preimage_of R neg_fun (open_ray_lower R b).
We will prove t open_ray_upper R (minus_SNo b).
We prove the intermediate claim HtR: t R.
An exact proof term for the current goal is (SepE1 R (λx0 : setapply_fun neg_fun x0 open_ray_lower R b) t Ht).
We prove the intermediate claim Himg: apply_fun neg_fun t open_ray_lower R b.
An exact proof term for the current goal is (SepE2 R (λx0 : setapply_fun neg_fun x0 open_ray_lower R b) t Ht).
We prove the intermediate claim Hrel: order_rel R (apply_fun neg_fun t) b.
An exact proof term for the current goal is (SepE2 R (λx0 : setorder_rel R x0 b) (apply_fun neg_fun t) Himg).
We prove the intermediate claim Htlt: Rlt (apply_fun neg_fun t) b.
An exact proof term for the current goal is (order_rel_R_implies_Rlt (apply_fun neg_fun t) b Hrel).
We prove the intermediate claim HimgEq: apply_fun neg_fun t = minus_SNo t.
An exact proof term for the current goal is (neg_fun_apply t HtR).
We prove the intermediate claim Htlt2: Rlt (minus_SNo t) b.
rewrite the current goal using HimgEq (from right to left).
An exact proof term for the current goal is Htlt.
We prove the intermediate claim Htlt3: Rlt (minus_SNo b) t.
An exact proof term for the current goal is (iffEL (Rlt (minus_SNo t) b) (Rlt (minus_SNo b) t) (neg_fun_flip_lower t b HtR HbR) Htlt2).
We prove the intermediate claim Hrel2: order_rel R (minus_SNo b) t.
An exact proof term for the current goal is (Rlt_implies_order_rel_R (minus_SNo b) t Htlt3).
We prove the intermediate claim HmbR: minus_SNo b R.
An exact proof term for the current goal is (real_minus_SNo b HbR).
An exact proof term for the current goal is (SepI R (λx0 : setorder_rel R (minus_SNo b) x0) t HtR Hrel2).
Let t be given.
Assume Ht: t open_ray_upper R (minus_SNo b).
We will prove t preimage_of R neg_fun (open_ray_lower R b).
We prove the intermediate claim HtR: t R.
An exact proof term for the current goal is (SepE1 R (λx0 : setorder_rel R (minus_SNo b) x0) t Ht).
We prove the intermediate claim Hrel: order_rel R (minus_SNo b) t.
An exact proof term for the current goal is (SepE2 R (λx0 : setorder_rel R (minus_SNo b) x0) t Ht).
We prove the intermediate claim Htlt: Rlt (minus_SNo b) t.
An exact proof term for the current goal is (order_rel_R_implies_Rlt (minus_SNo b) t Hrel).
We prove the intermediate claim Htlt2: Rlt (minus_SNo t) b.
An exact proof term for the current goal is (iffER (Rlt (minus_SNo t) b) (Rlt (minus_SNo b) t) (neg_fun_flip_lower t b HtR HbR) Htlt).
We prove the intermediate claim Hpredef: preimage_of R neg_fun (open_ray_lower R b) = {x0R|apply_fun neg_fun x0 open_ray_lower R b}.
Use reflexivity.
rewrite the current goal using Hpredef (from left to right).
Apply SepI to the current goal.
An exact proof term for the current goal is HtR.
We prove the intermediate claim HimgR: apply_fun neg_fun t R.
An exact proof term for the current goal is (neg_fun_value_in_R t HtR).
We prove the intermediate claim HimgEq: apply_fun neg_fun t = minus_SNo t.
An exact proof term for the current goal is (neg_fun_apply t HtR).
We prove the intermediate claim Htlt3: Rlt (apply_fun neg_fun t) b.
rewrite the current goal using HimgEq (from left to right).
An exact proof term for the current goal is Htlt2.
We prove the intermediate claim Hrel2: order_rel R (apply_fun neg_fun t) b.
An exact proof term for the current goal is (Rlt_implies_order_rel_R (apply_fun neg_fun t) b Htlt3).
An exact proof term for the current goal is (SepI R (λx0 : setorder_rel R x0 b) (apply_fun neg_fun t) HimgR Hrel2).