consider f being BinOp of REAL such that
A1:
for x, y being Real holds f . x,y = max x,y
from BINOP_1:sch 4();
let M be non empty Moore-SM_Final of [:REAL ,REAL :], succ REAL ; ( M is calculating_type & the carrier of M = succ REAL & the FinalS of M = REAL & the InitS of M = REAL & the OFun of M = id the carrier of M & ( for x, y being Real st x >= y holds
the Tran of M . [the InitS of M,[x,y]] = x ) & ( for x, y being Real st x < y holds
the Tran of M . [the InitS of M,[x,y]] = y ) implies for x, y being Element of REAL holds max x,y is_result_of [x,y],M )
assume that
A2:
M is calculating_type
and
A3:
the carrier of M = succ REAL
and
A4:
the FinalS of M = REAL
and
A5:
the InitS of M = REAL
and
A6:
the OFun of M = id the carrier of M
; ( ex x, y being Real st
( x >= y & not the Tran of M . [the InitS of M,[x,y]] = x ) or ex x, y being Real st
( x < y & not the Tran of M . [the InitS of M,[x,y]] = y ) or for x, y being Element of REAL holds max x,y is_result_of [x,y],M )
assume that
A7:
for x, y being Real st x >= y holds
the Tran of M . [the InitS of M,[x,y]] = x
and
A8:
for x, y being Real st x < y holds
the Tran of M . [the InitS of M,[x,y]] = y
; for x, y being Element of REAL holds max x,y is_result_of [x,y],M
let x, y be Real; max x,y is_result_of [x,y],M
now let x,
y be
Real;
the Tran of M . [the InitS of M,[x,y]] = f . x,yA9:
(
x >= y implies the
Tran of
M . [the InitS of M,[x,y]] = x )
by A7;
(
x < y implies the
Tran of
M . [the InitS of M,[x,y]] = y )
by A8;
then
the
Tran of
M . [the InitS of M,[x,y]] = max x,
y
by A9, XXREAL_0:def 10;
hence
the
Tran of
M . [the InitS of M,[x,y]] = f . x,
y
by A1;
verum end;
then
f . x,y is_result_of [x,y],M
by A2, A3, A4, A5, A6, Th22;
hence
max x,y is_result_of [x,y],M
by A1; verum