let A be Interval; :: thesis: for x being real number holds diameter A = diameter (x ++ A)
let x be real number ; :: thesis: diameter A = diameter (x ++ A)
per cases ( A is empty or not A is empty ) ;
suppose S: A is empty ; :: thesis: diameter A = diameter (x ++ A)
now
assume not x ++ A is empty ; :: thesis: contradiction
then consider y being real number such that
W: y in x ++ A by MEMBERED:9;
reconsider y = y as Real by XREAL_0:def 1;
ex z being Real st
( z in A & y = x + z ) by W, Def6;
hence contradiction by S; :: thesis: verum
end;
hence diameter A = diameter (x ++ A) by S; :: thesis: verum
end;
suppose S: not A is empty ; :: thesis: diameter A = diameter (x ++ A)
then consider y being real number such that
W: y in A by MEMBERED:9;
reconsider y = y as Real by XREAL_0:def 1;
XX: x + y in x ++ A by W, Def6;
reconsider y = x as R_eal by XXREAL_0:def 1;
thus diameter A = (sup A) - (inf A) by S, MEASURE5:def 10
.= (y + (sup A)) - (y + (inf A)) by XXREAL_3:34
.= (sup (x ++ A)) - (y + (inf A)) by Tx1
.= (sup (x ++ A)) - (inf (x ++ A)) by Tx2
.= diameter (x ++ A) by XX, MEASURE5:def 10 ; :: thesis: verum
end;
end;