reserve x,y for Real;
reserve a,b,c for Element of Real_Lattice;
reserve p,q,r for Element of Real_Lattice;
reserve A,B for non empty set;
reserve f,g,h for Element of Funcs(A,REAL);

theorem Th16:
  (minfuncreal(A)).(f,(maxfuncreal(A)).(f,g))=f
proof
  now
    let x be Element of A;
A1: x in dom (maxreal.:(f,g)) by Lm6;
A2: x in dom (minreal.:(f,(maxreal.:(f,g)))) by Lm6;
    thus (minfuncreal(A)).(f,(maxfuncreal(A)).(f,g)).x =((minfuncreal(A)).(f,
    maxreal.:(f,g))).x by Def4
      .=(minreal.:(f,maxreal.:(f,g))).x by Def5
      .=minreal.(f.x,(maxreal.:(f,g)).x) by A2,FUNCOP_1:22
      .=minreal.(f.x,(maxreal.(f.x,g.x))) by A1,FUNCOP_1:22
      .=f.x by Th6;
  end;
  hence thesis by FUNCT_2:63;
end;
