Let q be given.
Let r be given.
Assume Hrconj.
We prove the intermediate
claim HrR:
r ∈ R.
We prove the intermediate
claim HqR:
q ∈ R.
We prove the intermediate
claim HrS:
SNo r.
An
exact proof term for the current goal is
(real_SNo r HrR).
We prove the intermediate
claim HnegqR:
minus_SNo q ∈ R.
We prove the intermediate
claim HltS:
minus_SNo q < r.
We prove the intermediate
claim Hslt:
s < q.
rewrite the current goal using Hinv (from right to left).
An exact proof term for the current goal is Hneglt.
We prove the intermediate
claim HsR:
s ∈ R.
We prove the intermediate
claim Hsq:
Rlt s q.
An
exact proof term for the current goal is
(RltI s q HsR HqR Hslt).
We use s to witness the existential quantifier.
∎