let a, b, c be ExtReal; max ((max (a,b)),c) = max (a,(max (b,c)))
per cases
( ( a <= b & a <= c ) or ( b <= a & b <= c ) or ( c <= b & c <= a ) )
by Th2;
suppose A1:
(
a <= b &
a <= c )
;
max ((max (a,b)),c) = max (a,(max (b,c)))A2:
(
max (
b,
c)
= b or
max (
b,
c)
= c )
by Def9;
max (
a,
b)
= b
by A1, Def9;
hence
max (
(max (a,b)),
c)
= max (
a,
(max (b,c)))
by A1, A2, Def9;
verum end; suppose A4:
(
c <= b &
c <= a )
;
max ((max (a,b)),c) = max (a,(max (b,c)))A5:
(
max (
a,
b)
= b or
max (
a,
b)
= a )
by Def9;
max (
b,
c)
= b
by A4, Def9;
hence
max (
(max (a,b)),
c)
= max (
a,
(max (b,c)))
by A4, A5, Def9;
verum end; end;