let A, B, C be Point of (TOP-REAL 2); :: thesis: ( B <> C & not A in Line (B,C) implies the_altitude (A,B,C) = Line (A,(the_foot_of_the_altitude (A,B,C))) )
assume that
A1: B <> C and
A2: not A in Line (B,C) ; :: thesis: the_altitude (A,B,C) = Line (A,(the_foot_of_the_altitude (A,B,C)))
consider L1, L2 being Element of line_of_REAL 2 such that
A3: the_altitude (A,B,C) = L1 and
A4: L2 = Line (B,C) and
A5: A in L1 and
A6: L1 _|_ L2 by A1, Def1;
consider P being Point of (TOP-REAL 2) such that
A7: the_foot_of_the_altitude (A,B,C) = P and
A8: (the_altitude (A,B,C)) /\ (Line (B,C)) = {P} by A1, Def2;
reconsider rA = A, rP = P as Element of REAL 2 by EUCLID:22;
reconsider L3 = Line (rA,rP) as Element of line_of_REAL 2 by EUCLIDLP:47;
per cases ( A = P or A <> P ) ;
end;