reserve S for non empty satisfying_CongruenceIdentity
              satisfying_SegmentConstruction
              satisfying_BetweennessIdentity
              satisfying_Pasch
              TarskiGeometryStruct;
reserve a,b for POINT of S;
reserve A for Subset of S;
reserve S for non empty satisfying_Tarski-model
              TarskiGeometryStruct;
reserve a,b,c,m,r,s for POINT of S;
reserve A for Subset of S;
reserve S         for non empty satisfying_Lower_Dimension_Axiom
                                satisfying_Tarski-model
                                TarskiGeometryStruct,
        a,b,c,d,m,p,q,r,s,x for POINT of S,
        A,A9,E              for Subset of S;

theorem Th32:
  A is_line & not r in A implies
  Plane(A,r) = {x where x is POINT of S: A out x,r or x in A or between r,A,x}
  proof
    assume that
A1: A is_line and
A2: not r in A;
    consider r9 be POINT of S such that
A3: between r,A,r9 and
A4: Plane(A,r) = half-plane(A,r) \/ A \/ half-plane(A,r9) by A1,A2,Def10;
    set P = {x where x is POINT of S : A out x,r or x in A or between r,A,x};
A5: Plane(A,r) c= P
    proof
      let x be object;
      assume x in Plane(A,r);
      then x in (half-plane(A,r) \/ A) or x in half-plane(A,r9)
        by A4,XBOOLE_0:def 3;
      then per cases by XBOOLE_0:def 3;
      suppose x in half-plane(A,r);
        then ex y be POINT of S st x = y & A out y,r;
        hence thesis;
      end;
      suppose x in A;
        hence thesis;
      end;
      suppose
A6:     x in half-plane(A,r9);
        then reconsider y = x as POINT of S;
        consider z be POINT of S such that
A7:     x = z and
A8:     A out z,r9 by A6;
        between r9,A,r & A out r9,y by A7,A8,A3,GTARSKI3:14;
        then between y,A,r by Th14;
        then between r,A,y by GTARSKI3:14;
        hence thesis;
      end;
    end;
    P c= Plane(A,r)
    proof
      let x be object;
      assume x in P;
      then consider y be POINT of S such that
      A9: y = x and
      A10: A out y,r or y in A or between r,A,y;
      per cases by A10;
      suppose A out y,r;
        then y in {x where x is POINT of S: A out x,r};
        then x in half-plane(A,r) \/ A by A9,XBOOLE_0:def 3;
        hence thesis by A4,XBOOLE_0:def 3;
      end;
      suppose y in A;
        then x in half-plane(A,r) \/ A by A9,XBOOLE_0:def 3;
        hence thesis by A4,XBOOLE_0:def 3;
      end;
      suppose between r,A,y;
        then between y,A,r & between r9,A,r by A3,GTARSKI3:14;
        then A out y,r9;
        then x in {x where x is POINT of S: A out x,r9} by A9;
        then x in A \/ half-plane(A,r9) by XBOOLE_0:def 3;
        then x in half-plane(A,r) \/(A \/ half-plane(A,r9)) by XBOOLE_0:def 3;
        hence thesis by A4,XBOOLE_1:4;
      end;
    end;
    hence thesis by A5;
  end;
