let x be set ; :: thesis: for p, q being ExtReal holds
( not x in [.p,q.] or x in [.p,q.[ or x = q )

let p, q be ExtReal; :: thesis: ( not x in [.p,q.] or x in [.p,q.[ or x = q )
assume A1: x in [.p,q.] ; :: thesis: ( x in [.p,q.[ or x = q )
then reconsider s = x as ExtReal ;
A2: p <= s by A1, Th1;
s <= q by A1, Th1;
then ( q = s or s < q ) by XXREAL_0:1;
hence ( x in [.p,q.[ or x = q ) by A2, Th3; :: thesis: verum