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 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
1001
1002
1003
1004
1005
1006
1007
1008
1009
1010
1011
1012
1013
1014
1015
1016
1017
1018
1019
1020
1021
1022
1023
1024
1025
1026
1027
1028
1029
1030
1031
1032
1033
1034
1035
1036
1037
1038
1039
1040
1041
1042
1043
1044
1045
1046
1047
1048
1049
1050
1051
1052
1053
1054
1055
1056
1057
1058
1059
1060
1061
1062
1063
1064
1065
1066
1067
1068
1069
1070
1071
1072
1073
1074
1075
1076
1077
1078
1079
1080
1081
1082
1083
1084
1085
1086
1087
1088
1089
1090
1091
1092
1093
1094
1095
1096
1097
1098
1099
1100
1101
1102
1103
1104
1105
1106
1107
1108
1109
1110
1111
1112
1113
1114
1115
1116
1117
1118
1119
1120
1121
1122
1123
1124
1125
1126
1127
1128
1129
1130
1131
1132
1133
1134
1135
1136
1137
1138
1139
1140
1141
1142
1143
1144
1145
1146
1147
1148
1149
1150
1151
1152
1153
1154
1155
1156
1157
1158
1159
1160
1161
1162
1163
1164
1165
1166
1167
1168
1169
1170
1171
1172
1173
1174
1175
1176
1177
1178
1179
1180
1181
1182
1183
1184
1185
1186
1187
1188
1189
1190
1191
1192
1193
1194
1195
1196
1197
1198
1199
1200
1201
1202
1203
1204
1205
1206
1207
1208
1209
1210
1211
1212
1213
1214
1215
1216
1217
1218
1219
1220
1221
1222
1223
1224
1225
1226
1227
1228
1229
1230
1231
1232
1233
1234
1235
1236
1237
1238
1239
1240
1241
1242
1243
1244
1245
1246
1247
1248
1249
1250
1251
1252
1253
1254
1255
1256
1257
1258
1259
1260
1261
1262
1263
1264
1265
1266
1267
1268
1269
1270
1271
1272
1273
1274
1275
1276
1277
1278
1279
1280
1281
1282
1283
1284
1285
1286
1287
1288
1289
1290
1291
1292
1293
1294
1295
1296
1297
1298
1299
1300
1301
1302
1303
1304
1305
1306
1307
1308
1309
1310
1311
1312
1313
1314
1315
1316
1317
1318
1319
1320
1321
1322
1323
1324
1325
1326
1327
1328
1329
1330
1331
1332
1333
1334
1335
1336
1337
1338
1339
1340
1341
1342
1343
1344
1345
1346
1347
1348
1349
1350
1351
1352
1353
1354
1355
1356
1357
1358
1359
1360
1361
1362
1363
1364
1365
1366
1367
1368
1369
1370
1371
1372
1373
1374
1375
1376
1377
1378
1379
1380
1381
1382
1383
1384
1385
1386
1387
1388
1389
1390
1391
1392
1393
1394
1395
1396
1397
1398
1399
1400
1401
1402
1403
1404
1405
1406
1407
1408
1409
1410
1411
1412
1413
1414
1415
1416
1417
1418
1419
1420
1421
1422
1423
1424
1425
1426
1427
1428
1429
1430
1431
1432
1433
1434
1435
1436
1437
1438
1439
1440
1441
1442
1443
1444
1445
1446
1447
1448
1449
1450
1451
1452
1453
1454
1455
1456
1457
1458
1459
1460
1461
1462
1463
1464
1465
1466
1467
1468
1469
1470
1471
1472
1473
1474
1475
1476
1477
1478
1479
1480
1481
1482
1483
1484
1485
1486
1487
1488
1489
1490
1491
1492
1493
1494
1495
1496
1497
1498
1499
1500
1501
1502
1503
1504
1505
1506
1507
1508
1509
1510
1511
1512
1513
1514
1515
1516
1517
1518
1519
1520
1521
1522
1523
1524
1525
1526
1527
1528
1529
1530
1531
1532
1533
1534
1535
1536
1537
1538
1539
1540
1541
1542
1543
1544
1545
1546
1547
1548
1549
1550
1551
1552
1553
1554
1555
1556
1557
1558
1559
1560
1561
1562
1563
1564
1565
1566
1567
1568
1569
1570
1571
1572
1573
1574
1575
1576
1577
1578
1579
1580
1581
1582
1583
1584
1585
1586
1587
1588
1589
1590
1591
1592
1593
1594
1595
1596
1597
1598
1599
1600
1601
1602
1603
1604
1605
1606
1607
1608
1609
1610
1611
1612
1613
1614
1615
1616
1617
1618
1619
1620
1621
1622
1623
1624
1625
1626
1627
1628
1629
1630
1631
1632
1633
1634
1635
1636
1637
1638
1639
1640
1641
1642
1643
1644
1645
1646
1647
1648
1649
1650
1651
1652
1653
1654
1655
1656
1657
1658
1659
1660
1661
1662
1663
1664
1665
1666
1667
1668
1669
1670
1671
1672
1673
1674
1675
1676
1677
1678
1679
1680
1681
1682
1683
1684
1685
1686
1687
1688
1689
1690
1691
1692
1693
1694
1695
1696
1697
1698
1699
1700
1701
1702
1703
1704
1705
1706
1707
1708
1709
1710
1711
1712
1713
1714
1715
1716
1717
1718
1719
1720
1721
1722
1723
1724
1725
1726
1727
1728
1729
1730
1731
1732
1733
1734
1735
1736
1737
1738
1739
1740
1741
1742
1743
1744
1745
1746
1747
1748
1749
1750
1751
1752
1753
1754
1755
1756
1757
1758
1759
1760
1761
1762
1763
1764
1765
1766
1767
1768
1769
1770
1771
1772
1773
1774
1775
1776
1777
1778
1779
1780
1781
1782
1783
1784
1785
1786
1787
1788
1789
1790
1791
1792
1793
1794
1795
1796
1797
1798
1799
1800
1801
1802
1803
1804
1805
1806
1807
1808
1809
1810
1811
1812
1813
1814
1815
1816
1817
1818
1819
1820
1821
1822
1823
1824
1825
1826
1827
1828
1829
1830
1831
1832
1833
1834
1835
1836
1837
1838
1839
1840
1841
1842
1843
1844
1845
1846
1847
1848
1849
1850
1851
1852
1853
1854
1855
1856
1857
1858
1859
1860
1861
1862
1863
1864
1865
1866
1867
1868
1869
1870
1871
1872
1873
1874
1875
1876
1877
1878
1879
1880
1881
1882
1883
1884
1885
1886
1887
1888
1889
1890
1891
1892
1893
1894
1895
1896
1897
1898
1899
1900
1901
1902
1903
1904
1905
1906
1907
1908
1909
1910
1911
1912
1913
1914
1915
1916
1917
1918
1919
1920
1921
1922
1923
1924
1925
1926
1927
1928
1929
1930
1931
1932
1933
1934
1935
1936
1937
1938
1939
1940
1941
1942
1943
1944
1945
1946
1947
1948
1949
1950
1951
1952
1953
1954
1955
1956
1957
1958
1959
1960
1961
1962
1963
1964
1965
1966
1967
1968
1969
1970
1971
1972
1973
1974
1975
1976
1977
1978
1979
1980
1981
1982
1983
1984
1985
1986
1987
1988
1989
1990
1991
1992
1993
1994
1995
1996
1997
1998
1999
2000
2001
2002
2003
2004
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
2026
2027
2028
2029
2030
2031
2032
2033
2034
2035
2036
2037
2038
2039
2040
2041
2042
2043
2044
2045
2046
2047
2048
2049
2050
2051
2052
2053
2054
2055
2056
2057
2058
2059
2060
2061
2062
2063
2064
2065
2066
2067
2068
2069
2070
2071
2072
2073
2074
2075
2076
2077
2078
2079
2080
2081
2082
2083
2084
2085
2086
2087
2088
2089
2090
2091
2092
2093
2094
2095
2096
2097
2098
2099
2100
2101
2102
2103
2104
2105
2106
2107
2108
2109
2110
2111
2112
2113
2114
2115
2116
2117
2118
2119
2120
2121
2122
2123
2124
2125
2126
2127
2128
2129
2130
2131
2132
2133
2134
2135
2136
2137
2138
2139
2140
2141
2142
2143
2144
2145
2146
2147
2148
2149
2150
2151
2152
2153
2154
2155
2156
2157
2158
2159
2160
2161
2162
2163
2164
2165
2166
2167
2168
2169
2170
2171
2172
2173
2174
2175
2176
2177
2178
2179
2180
2181
2182
2183
2184
2185
2186
2187
2188
2189
2190
2191
2192
2193
2194
2195
2196
2197
2198
2199
2200
2201
2202
2203
2204
2205
2206
2207
2208
2209
2210
2211
2212
2213
2214
2215
2216
2217
2218
2219
2220
2221
2222
2223
2224
2225
2226
2227
2228
2229
2230
2231
2232
2233
2234
2235
2236
2237
2238
2239
2240
2241
2242
2243
2244
2245
2246
2247
2248
2249
2250
2251
2252
2253
2254
2255
2256
2257
2258
2259
2260
2261
2262
2263
2264
2265
2266
2267
2268
2269
2270
2271
2272
2273
2274
2275
2276
2277
2278
2279
2280
2281
2282
2283
2284
2285
2286
2287
2288
2289
2290
2291
2292
2293
2294
2295
2296
2297
2298
2299
2300
2301
2302
2303
2304
2305
2306
2307
2308
2309
2310
2311
2312
2313
2314
2315
2316
2317
2318
2319
2320
2321
2322
2323
2324
2325
2326
2327
2328
2329
2330
2331
2332
2333
2334
2335
2336
2337
2338
2339
2340
2341
2342
2343
2344
2345
2346
2347
2348
2349
2350
2351
2352
2353
2354
2355
2356
2357
2358
2359
2360
2361
2362
2363
2364
2365
2366
2367
2368
2369
2370
2371
2372
2373
2374
2375
2376
2377
2378
2379
2380
2381
2382
2383
2384
2385
2386
2387
2388
2389
2390
2391
2392
2393
2394
2395
2396
2397
2398
2399
2400
2401
2402
2403
2404
2405
2406
2407
2408
2409
2410
2411
2412
2413
2414
2415
2416
2417
2418
2419
2420
2421
2422
2423
2424
2425
2426
2427
2428
2429
2430
2431
2432
2433
2434
2435
2436
2437
2438
2439
2440
2441
2442
2443
2444
2445
2446
2447
2448
2449
2450
2451
2452
2453
2454
2455
2456
2457
2458
2459
2460
2461
2462
2463
2464
2465
2466
2467
2468
2469
2470
2471
2472
2473
2474
2475
2476
2477
2478
2479
2480
2481
2482
2483
2484
2485
2486
2487
2488
2489
2490
2491
2492
2493
2494
2495
2496
2497
2498
2499
2500
2501
2502
2503
2504
2505
2506
2507
2508
2509
2510
2511
2512
2513
2514
2515
2516
2517
2518
2519
2520
2521
2522
2523
2524
2525
2526
2527
2528
2529
2530
2531
2532
2533
2534
2535
2536
2537
2538
2539
2540
2541
2542
2543
2544
2545
2546
2547
2548
2549
2550
2551
2552
2553
2554
2555
2556
2557
2558
2559
2560
2561
2562
2563
2564
2565
2566
2567
2568
2569
2570
2571
2572
2573
2574
2575
2576
2577
2578
2579
2580
2581
2582
2583
2584
2585
2586
2587
2588
2589
2590
2591
2592
2593
2594
2595
2596
2597
2598
2599
2600
2601
2602
2603
2604
2605
2606
2607
2608
2609
2610
2611
2612
2613
2614
2615
2616
2617
2618
2619
2620
2621
2622
2623
2624
2625
2626
2627
2628
2629
2630
2631
2632
2633
2634
2635
2636
2637
2638
2639
2640
2641
2642
2643
2644
2645
2646
2647
2648
2649
2650
2651
2652
2653
2654
2655
2656
2657
2658
2659
2660
2661
2662
2663
2664
2665
2666
2667
2668
2669
2670
2671
2672
2673
2674
2675
2676
2677
2678
2679
2680
2681
2682
2683
2684
2685
2686
2687
2688
2689
2690
2691
2692
2693
2694
2695
2696
2697
2698
2699
2700
2701
2702
2703
2704
2705
2706
2707
2708
2709
2710
2711
2712
2713
2714
2715
2716
2717
2718
2719
2720
2721
2722
2723
2724
2725
2726
2727
2728
:: Planes in Affine Spaces
::  by Wojciech Leo\'nczuk, Henryk Oryszczyszyn and Krzysztof Pra\.zmowski

environ

 vocabularies DIRAF, SUBSET_1, ANALOAF, AFF_1, INCSP_1, STRUCT_0, XBOOLE_0,
      TARSKI, RELAT_1, PARSP_1, AFF_2, ARYTM_3, AFF_4;
 notations TARSKI, XBOOLE_0, SUBSET_1, STRUCT_0, ANALOAF, DIRAF, AFF_1, AFF_2;
 constructors AFF_1, AFF_2;
 registrations XBOOLE_0, STRUCT_0;
 requirements SUBSET, BOOLE;
 definitions TARSKI;
 expansions TARSKI;
 theorems AFF_1, DIRAF, TARSKI, AFF_2, XBOOLE_0, XBOOLE_1;

begin

reserve AS for AffinSpace;
reserve a,b,c,d,a9,b9,c9,d9,p,q,r,x,y for Element of AS;
reserve A,C,K,M,N,P,Q,X,Y,Z for Subset of AS;

Lm1: for x being set st x in X holds x is Element of AS;

theorem Th1:
  (LIN p,a,a9 or LIN p,a9,a) & p<>a implies ex b9 st LIN p,b,b9 & a ,b // a9,b9
proof
  assume that
A1: LIN p,a,a9 or LIN p,a9,a and
A2: p<>a;
  LIN p,a,a9 by A1,AFF_1:6;
  then p,a // p,a9 by AFF_1:def 1;
  then a,p // p,a9 by AFF_1:4;
  then consider b9 such that
A3: b,p // p,b9 and
A4: b,a // a9,b9 by A2,DIRAF:40;
  p,b // p,b9 by A3,AFF_1:4;
  then
A5: LIN p,b, b9 by AFF_1:def 1;
  a,b // a9,b9 by A4,AFF_1:4;
  hence thesis by A5;
end;

theorem Th2:
  (a,b // A or b,a // A) & a in A implies b in A
proof
  assume that
A1: a,b // A or b,a // A and
A2: a in A;
  a,b // A & A is being_line by A1,AFF_1:26,34;
  hence thesis by A2,AFF_1:23;
end;

theorem Th3:
  (a,b // A or b,a // A) & A // K implies a,b // K & b,a // K
proof
  assume that
A1: a,b // A or b,a // A and
A2: A // K;
  a,b // A by A1,AFF_1:34;
  hence a,b // K by A2,AFF_1:43;
  hence thesis by AFF_1:34;
end;

theorem Th4:
  (a,b // A or b,a // A) & (a,b // c,d or c,d // a,b) & a<>b
  implies c,d // A & d,c // A
proof
  assume that
A1: ( a,b // A or b,a // A)&( a,b // c,d or c,d // a,b) and
A2: a<>b;
  a,b // A & a,b // c,d by A1,AFF_1:4,34;
  hence c,d // A by A2,AFF_1:32;
  hence thesis by AFF_1:34;
end;

theorem
  (a,b // M or b,a // M) & (a,b // N or b,a // N) & a<>b implies M // N
proof
  assume that
A1: ( a,b // M or b,a // M)&( a,b // N or b,a // N) and
A2: a<>b;
  a,b // M & a,b // N by A1,AFF_1:34;
  hence thesis by A2,AFF_1:53;
end;

theorem
  (a,b // M or b,a // M) & (c,d // M or d,c // M) implies a,b // c,d
proof
  assume ( a,b // M or b,a // M)&( c,d // M or d,c // M);
  then A1: a,b // M & c,d // M by AFF_1:34;
  then M is being_line by AFF_1:26;
  hence thesis by A1,AFF_1:31;
end;

theorem Th7:
  (A // C or C // A) & a<>b & (a,b // c,d or c,d // a,b) & a in A &
  b in A & c in C implies d in C
proof
  assume that
A1: A // C or C // A and
A2: a<>b &( a,b // c,d or c,d // a,b) and
A3: a in A & b in A and
A4: c in C;
  A is being_line by A1,AFF_1:36;
  then a,b // A by A3,AFF_1:52;
  then c,d // A by A2,Th4;
  then c,d // C by A1,Th3;
  hence thesis by A4,Th2;
end;

Lm2: A // K & a in A & a9 in A & d in K implies ex d9 st d9 in K & a,d // a9,
d9
proof
  assume that
A1: A // K and
A2: a in A & a9 in A and
A3: d in K;
A4: A is being_line by A1,AFF_1:36;
  now
    assume
A5: a<>a9;
    consider d9 such that
A6: a,a9 // d,d9 and
A7: a,d // a9,d9 by DIRAF:40;
    d,d9 // a,a9 by A6,AFF_1:4;
    then d,d9 // A by A2,A4,A5,AFF_1:27;
    then d,d9 // K by A1,Th3;
    then d9 in K by A3,Th2;
    hence thesis by A7;
  end;
  hence thesis by A3,AFF_1:2;
end;

theorem Th8:
  q in M & q in N & a in M & b in N & b9 in N & q<>a & q<>b & M<>N
  & (a,b // a9,b9 or b,a // b9,a9) & M is being_line & N is being_line & q=a9
  implies q=b9
proof
  assume that
A1: q in M and
A2: q in N and
A3: a in M and
A4: b in N and
A5: b9 in N and
A6: q<>a and
A7: q<>b & M<>N and
A8: a,b // a9,b9 or b,a // b9,a9 and
A9: M is being_line and
A10: N is being_line and
A11: q=a9;
A12: not LIN q,a,b
  proof
    assume not thesis;
    then consider A such that
A13: A is being_line & q in A and
A14: a in A and
A15: b in A by AFF_1:21;
    M=A by A1,A3,A6,A9,A13,A14,AFF_1:18;
    hence contradiction by A2,A4,A7,A10,A13,A15,AFF_1:18;
  end;
  LIN q,b,b9 & a,b // a9,b9 by A2,A4,A5,A8,A10,AFF_1:4,21;
  hence thesis by A11,A12,AFF_1:55;
end;

theorem Th9:
  q in M & q in N & a in M & a9 in M & b in N & b9 in N & q<>a & q
<>b & M<>N & (a,b // a9,b9 or b,a // b9,a9) & M is being_line & N is being_line
  & a=a9 implies b=b9
proof
  assume that
A1: q in M and
A2: q in N and
A3: a in M and
A4: a9 in M and
A5: b in N and
A6: b9 in N and
A7: q<>a and
A8: q<>b & M<>N and
A9: a,b // a9,b9 or b,a // b9,a9 and
A10: M is being_line and
A11: N is being_line and
A12: a=a9;
A13: a,b // a9,b & a,b // a9,b9 by A9,A12,AFF_1:2,4;
A14: not LIN q,a,b
  proof
    assume not thesis;
    then consider A such that
A15: A is being_line & q in A and
A16: a in A and
A17: b in A by AFF_1:21;
    M=A by A1,A3,A7,A10,A15,A16,AFF_1:18;
    hence contradiction by A2,A5,A8,A11,A15,A17,AFF_1:18;
  end;
A18: LIN q,b,b by AFF_1:7;
  LIN q,a,a9 & LIN q,b,b9 by A1,A2,A3,A4,A5,A6,A10,A11,AFF_1:21;
  hence thesis by A14,A18,A13,AFF_1:56;
end;

theorem Th10:
  (M // N or N // M) & a in M & b in N & b9 in N & M<>N & (a,b //
  a9,b9 or b,a // b9,a9) & a=a9 implies b=b9
proof
  assume that
A1: M // N or N // M and
A2: a in M and
A3: b in N & b9 in N and
A4: M<>N and
A5: ( a,b // a9,b9 or b,a // b9,a9)& a=a9;
  a,b // a,b9 by A5,AFF_1:4;
  then LIN a,b,b9 by AFF_1:def 1;
  then
A6: LIN b,b9,a by AFF_1:6;
  assume
A7: b<>b9;
  N is being_line by A1,AFF_1:36;
  then a in N by A3,A6,A7,AFF_1:25;
  hence contradiction by A1,A2,A4,AFF_1:45;
end;

theorem Th11:
  ex A st a in A & b in A & A is being_line
proof
  LIN a,b,b by AFF_1:7;
  then ex A st A is being_line & a in A & b in A & b in A by AFF_1:21;
  hence thesis;
end;

theorem Th12:
  A is being_line implies ex q st not q in A
proof
  assume
A1: A is being_line;
  then consider a,b such that
A2: a in A & b in A and
A3: a<>b by AFF_1:19;
  consider q such that
A4: not LIN a,b,q by A3,AFF_1:13;
  not q in A by A1,A2,A4,AFF_1:21;
  hence thesis;
end;

definition
  let AS,K,P;
  func Plane(K,P) -> Subset of AS equals
  {a: ex b st a,b // K & b in P};
  coherence
  proof
    set X = {a: ex b st a,b // K & b in P};
    now
      let x be object;
      assume x in X;
      then ex a st a=x & ex b st a,b // K & b in P;
      hence x in the carrier of AS;
    end;
    hence thesis by TARSKI:def 3;
  end;
end;

definition
  let AS,X;
  attr X is being_plane means

  ex K,P st K is being_line & P is being_line & not K // P & X = Plane(K,P);
end;

Lm3: for q holds (q in Plane(K,P) iff ex b st q,b // K & b in P)
proof
  let q;
  now
    assume q in Plane(K,P);
    then ex a st a=q & ex b st a,b // K & b in P;
    hence ex b st q,b // K & b in P;
  end;
  hence thesis;
end;

theorem
  not K is being_line implies Plane(K,P) = {}
proof
  assume
A1: not K is being_line;
  set x = the Element of Plane(K,P);
  assume Plane(K,P)<>{};
  then x in Plane(K,P);
  then ex a st x=a & ex b st a,b // K & b in P;
  hence contradiction by A1,AFF_1:26;
end;

theorem Th14:
  K is being_line implies P c= Plane(K,P)
proof
  assume
A1: K is being_line;
    let x be object;
    assume
A2: x in P;
    then reconsider a=x as Element of AS;
    a,a // K by A1,AFF_1:33;
    hence x in Plane(K,P) by A2;
end;

theorem
  K // P implies Plane(K,P) = P
proof
  set X=Plane(K,P);
  assume
A1: K // P;
  then
A2: P is being_line by AFF_1:36;
  now
    let x be object;
    assume x in X;
    then consider a such that
A3: x=a and
A4: ex b st a,b // K & b in P;
    consider b such that
A5: a,b // K and
A6: b in P by A4;
    a,b // P by A1,A5,AFF_1:43;
    then b,a // P by AFF_1:34;
    hence x in P by A2,A3,A6,AFF_1:23;
  end;
  then
A7: X c= P;
  K is being_line by A1,AFF_1:36;
  then P c= X by Th14;
  hence thesis by A7,XBOOLE_0:def 10;
end;

theorem Th16:
  K // M implies Plane(K,P) = Plane(M,P)
proof
  assume
A1: K // M;
  now
    let x be object;
A2: now
      assume x in Plane(M,P);
      then consider a such that
A3:   x=a and
A4:   ex b st a,b // M & b in P;
      consider b such that
A5:   a,b // M and
A6:   b in P by A4;
      a,b // K by A1,A5,AFF_1:43;
      hence x in Plane(K,P) by A3,A6;
    end;
    now
      assume x in Plane(K,P);
      then consider a such that
A7:   x=a and
A8:   ex b st a,b // K & b in P;
      consider b such that
A9:   a,b // K and
A10:  b in P by A8;
      a,b // M by A1,A9,AFF_1:43;
      hence x in Plane(M,P) by A7,A10;
    end;
    hence x in Plane(K,P) iff x in Plane(M,P) by A2;
  end;
  hence thesis by TARSKI:2;
end;

theorem
  p in M & a in M & b in M & p in N & a9 in N & b9 in N & not p in P &
  not p in Q & M<>N & a in P & a9 in P & b in Q & b9 in Q & M is being_line & N
is being_line & P is being_line & Q is being_line implies (P // Q or ex q st q
  in P & q in Q)
proof
  assume that
A1: p in M and
A2: a in M and
A3: b in M and
A4: p in N and
A5: a9 in N and
A6: b9 in N and
A7: not p in P and
A8: not p in Q and
A9: M<>N and
A10: a in P and
A11: a9 in P and
A12: b in Q and
A13: b9 in Q and
A14: M is being_line and
A15: N is being_line and
A16: P is being_line and
A17: Q is being_line;
A18: a<>a9 by A1,A2,A4,A5,A7,A9,A10,A14,A15,AFF_1:18;
  LIN p,a,b by A1,A2,A3,A14,AFF_1:21;
  then consider c such that
A19: LIN p,a9,c and
A20: a,a9 // b,c by A7,A10,Th1;
  set D=Line(b,c);
A21: b in D by AFF_1:15;
A22: c in D by AFF_1:15;
A23: b<>b9 by A1,A3,A4,A6,A8,A9,A12,A14,A15,AFF_1:18;
A24: c in N by A4,A5,A7,A11,A15,A19,AFF_1:25;
  then
A25: b<>c by A1,A3,A4,A8,A9,A12,A14,A15,AFF_1:18;
  then
A26: D is being_line by AFF_1:def 3;
  now
    assume D<>Q;
    then
A27: c <>b9 by A12,A13,A17,A23,A26,A21,A22,AFF_1:18;
    LIN b9,c,a9 by A5,A6,A15,A24,AFF_1:21;
    then consider q such that
A28: LIN b9,b,q and
A29: c,b // a9,q by A27,Th1;
    a9,a // c,b by A20,AFF_1:4;
    then a9,a // a9,q by A25,A29,AFF_1:5;
    then LIN a9,a,q by AFF_1:def 1;
    then
A30: q in P by A10,A11,A16,A18,AFF_1:25;
    q in Q by A12,A13,A17,A23,A28,AFF_1:25;
    hence ex q st q in P & q in Q by A30;
  end;
  hence thesis by A10,A11,A12,A16,A17,A18,A20,A25,A22,AFF_1:38;
end;

theorem Th18:
  a in M & b in M & a9 in N & b9 in N & a in P & a9 in P & b in Q
  & b9 in Q & M<>N & M // N & P is being_line & Q is being_line implies (P // Q
  or ex q st q in P & q in Q)
proof
  assume that
A1: a in M and
A2: b in M and
A3: a9 in N and
A4: b9 in N and
A5: a in P and
A6: a9 in P and
A7: b in Q and
A8: b9 in Q and
A9: M<>N and
A10: M // N and
A11: P is being_line and
A12: Q is being_line;
A13: a<>a9 by A1,A3,A9,A10,AFF_1:45;
A14: N is being_line by A10,AFF_1:36;
A15: b<>b9 by A2,A4,A9,A10,AFF_1:45;
A16: M is being_line by A10,AFF_1:36;
  now
    assume
A17: a<>b;
    consider c such that
A18: a,b // a9,c and
A19: a,a9 // b,c by DIRAF:40;
    set D=Line(b,c);
A20: b in D by AFF_1:15;
A21: c in D by AFF_1:15;
    a,b // N by A1,A2,A10,A16,AFF_1:43,52;
    then a9,c // N by A17,A18,AFF_1:32;
    then
A22: c in N by A3,A14,AFF_1:23;
    then
A23: b<>c by A2,A9,A10,AFF_1:45;
    then
A24: D is being_line by AFF_1:def 3;
    now
      assume D<>Q;
      then
A25:  c <>b9 by A7,A8,A12,A15,A24,A20,A21,AFF_1:18;
      LIN b9,c,a9 by A3,A4,A14,A22,AFF_1:21;
      then consider q such that
A26:  LIN b9,b,q and
A27:  c,b // a9,q by A25,Th1;
      a9,a // c,b by A19,AFF_1:4;
      then a9,a // a9,q by A23,A27,AFF_1:5;
      then LIN a9,a,q by AFF_1:def 1;
      then
A28:  q in P by A5,A6,A11,A13,AFF_1:25;
      q in Q by A7,A8,A12,A15,A26,AFF_1:25;
      hence ex q st q in P & q in Q by A28;
    end;
    hence thesis by A5,A6,A7,A11,A12,A13,A19,A23,A21,AFF_1:38;
  end;
  hence thesis by A5,A7;
end;

Lm4: a in Q & a in Plane(K,P) & K // Q implies Q c= Plane(K,P)
proof
  assume that
A1: a in Q and
A2: a in Plane(K,P) and
A3: K // Q;
A4: Plane(K,P) = Plane(Q,P) by A3,Th16;
    let x be object such that
A5: x in Q;
    reconsider c = x as Element of AS by A5;
A6: Q is being_line by A3,AFF_1:36;
    consider b such that
A7: a,b // K and
A8: b in P by A2,Lm3;
    a,b // Q by A3,A7,AFF_1:43;
    then b in Q by A1,A6,AFF_1:23;
    then c,b // Q by A5,A6,AFF_1:23;
    hence x in Plane(K,P) by A8,A4;
end;

Lm5: K is being_line & P is being_line & Q is being_line & a in Plane(K,P) & b
in Plane(K,P) & a<>b & a in Q & b in Q implies Q c= Plane(K,P)
proof
  assume that
A1: K is being_line and
A2: P is being_line and
A3: Q is being_line and
A4: a in Plane(K,P) and
A5: b in Plane(K,P) and
A6: a<>b and
A7: a in Q and
A8: b in Q;
    let x be object;
    assume
A9: x in Q;
    then reconsider c = x as Element of AS;
    consider a9 such that
A10: a,a9 // K and
A11: a9 in P by A4,Lm3;
    consider Y such that
A12: b in Y and
A13: K // Y by A1,AFF_1:49;
    consider X such that
A14: a in X and
A15: K // X by A1,AFF_1:49;
    consider b9 such that
A16: b,b9 // K and
A17: b9 in P by A5,Lm3;
    b,b9 // Y by A16,A13,AFF_1:43;
    then
A18: b9 in Y by A12,Th2;
    a,a9 // X by A10,A15,AFF_1:43;
    then
A19: a9 in X by A14,Th2;
A20: X // Y by A15,A13,AFF_1:44;
A21: now
A22:  now
        given q such that
A23:    q in P and
A24:    q in Q and
A25:    not P // Q;
A26:    P<>Q by A2,A25,AFF_1:41;
A27:    now
          assume
A28:      q<>b;
          then
A29:      b<>b9 by A2,A3,A8,A17,A23,A24,A26,AFF_1:18;
A30:      now
A31:        q,b9 // P by A2,A17,A23,AFF_1:23;
            LIN q,b,c by A3,A8,A9,A24,AFF_1:21;
            then consider c9 such that
A32:        LIN q,b9, c9 and
A33:        b,b9 // c,c9 by A28,Th1;
            assume
A34:        q<>b9;
            q,b9 // q,c9 by A32,AFF_1:def 1;
            then q,c9 // P by A34,A31,AFF_1:32;
            then
A35:        c9 in P by A23,Th2;
            c,c9 // K by A16,A29,A33,AFF_1:32;
            hence x in Plane(K,P) by A35;
          end;
          now
            assume
A36:        q=b9;
            b,q // Q by A3,A8,A24,AFF_1:23;
            then Q c= Plane(K,P) by A4,A7,A16,A28,A36,Lm4,AFF_1:53;
            hence x in Plane(K,P) by A9;
          end;
          hence x in Plane(K,P) by A30;
        end;
        now
          assume
A37:      q<>a;
          then
A38:      a<>a9 by A2,A3,A7,A11,A23,A24,A26,AFF_1:18;
A39:      now
A40:        q,a9 // P by A2,A11,A23,AFF_1:23;
            LIN q,a,c by A3,A7,A9,A24,AFF_1:21;
            then consider c9 such that
A41:        LIN q,a9, c9 and
A42:        a,a9 // c,c9 by A37,Th1;
            assume
A43:        q<>a9;
            q,a9 // q,c9 by A41,AFF_1:def 1;
            then q,c9 // P by A43,A40,AFF_1:32;
            then
A44:        c9 in P by A23,Th2;
            c,c9 // K by A10,A38,A42,AFF_1:32;
            hence x in Plane(K,P) by A44;
          end;
          now
            assume
A45:        q=a9;
            a,q // Q by A3,A7,A24,AFF_1:23;
            then Q c= Plane(K,P) by A4,A7,A10,A37,A45,Lm4,AFF_1:53;
            hence x in Plane(K,P) by A9;
          end;
          hence x in Plane(K,P) by A39;
        end;
        hence x in Plane(K,P) by A6,A27;
      end;
A46:  now
        assume
A47:    P // Q;
A48:    now
          assume P<>Q;
          then
A49:      b<>b9 by A8,A17,A47,AFF_1:45;
          now
            assume
A50:        c <>b;
            consider c9 such that
A51:        b,c // b9,c9 and
A52:        b,b9 // c,c9 by DIRAF:40;
            b,c // Q by A3,A8,A9,AFF_1:23;
            then b9,c9 // Q by A50,A51,AFF_1:32;
            then b9,c9 // P by A47,AFF_1:43;
            then
A53:        c9 in P by A17,Th2;
            c,c9 // K by A16,A49,A52,AFF_1:32;
            hence x in Plane(K,P) by A53;
          end;
          hence x in Plane(K,P) by A5;
        end;
        now
          assume
A54:      P=Q;
          c,c // K by A1,AFF_1:33;
          hence x in Plane(K,P) by A9,A54;
        end;
        hence x in Plane(K,P) by A48;
      end;
      assume X<>Y;
      then P // Q or ex q st q in P & q in Q by A2,A3,A7,A8,A11,A17,A14,A12,A20
,A19,A18,Th18;
      hence x in Plane(K,P) by A46,A22;
    end;
A55: X is being_line by A10,A15,AFF_1:26,43;
    now
      assume X=Y;
      then Q = X by A3,A6,A7,A8,A14,A12,A55,AFF_1:18;
      then Q c= Plane(K,P) by A4,A7,A15,Lm4;
      hence x in Plane(K,P) by A9;
    end;
    hence x in Plane(K,P) by A21;
end;

theorem Th19:
  X is being_plane & a in X & b in X & a<>b implies Line(a,b) c= X
proof
  assume that
A1: X is being_plane and
A2: a in X & b in X and
A3: a<>b;
  set Q = Line(a,b);
A4: a in Q & b in Q by AFF_1:15;
  Q is being_line & ex K,P st K is being_line & P is being_line & not K //
  P & X=Plane(K,P) by A1,A3,AFF_1:def 3;
  hence thesis by A2,A3,A4,Lm5;
end;

Lm6: K is being_line & Q c= Plane(K,P) implies Plane(K,Q) c= Plane(K,P)
proof
  assume that
A1: K is being_line and
A2: Q c= Plane(K,P);
    let x be object;
    assume x in Plane(K,Q);
    then consider a such that
A3: x=a and
A4: ex b st a,b // K & b in Q;
    consider b such that
A5: a,b // K and
A6: b in Q by A4;
    consider c such that
A7: b,c // K and
A8: c in P by A2,A6,Lm3;
    consider M such that
A9: b in M and
A10: K // M by A1,AFF_1:49;
    a,b // M by A5,A10,AFF_1:43;
    then
A11: a in M by A9,Th2;
    b,c // M by A7,A10,AFF_1:43;
    then c in M by A9,Th2;
    then a,c // K by A10,A11,AFF_1:40;
    hence x in Plane(K,P) by A3,A8;
end;

theorem Th20:
  K is being_line & P is being_line & Q is being_line & not K // Q
  & Q c= Plane(K,P) implies Plane(K,Q) = Plane(K,P)
proof
  assume that
A1: K is being_line and
A2: P is being_line and
A3: Q is being_line and
A4: not K // Q and
A5: Q c= Plane(K,P);
A6: Plane(K,Q) c= Plane(K,P) by A1,A5,Lm6;
  consider a,b such that
A7: a in Q and
A8: b in Q and
A9: a<>b by A3,AFF_1:19;
  consider b9 such that
A10: b,b9 // K and
A11: b9 in P by A5,A8,Lm3;
  b9,b // K by A10,AFF_1:34;
  then
A12: b9 in Plane(K,Q) by A8;
  consider a9 such that
A13: a,a9 // K and
A14: a9 in P by A5,A7,Lm3;
A15: a9<>b9
  proof
    consider A such that
A16: a9 in A and
A17: K // A by A1,AFF_1:49;
    a9,a // A by A13,A17,Th3;
    then
A18: a in A by A16,Th2;
    assume a9=b9;
    then a9,b // A by A10,A17,Th3;
    then
A19: b in A by A16,Th2;
    A is being_line by A17,AFF_1:36;
    hence contradiction by A3,A4,A7,A8,A9,A17,A19,A18,AFF_1:18;
  end;
  a9,a // K by A13,AFF_1:34;
  then a9 in Plane(K,Q) by A7;
  then Plane(K,P) c= Plane(K,Q) by A1,A2,A3,A14,A11,A15,A12,Lm5,Lm6;
  hence thesis by A6,XBOOLE_0:def 10;
end;

theorem Th21:
  K is being_line & P is being_line & Q is being_line & Q c= Plane
  (K,P) implies P // Q or ex q st q in P & q in Q
proof
  assume that
A1: K is being_line and
A2: P is being_line and
A3: Q is being_line and
A4: Q c= Plane(K,P);
  consider a,b such that
A5: a in Q and
A6: b in Q and
A7: a<>b by A3,AFF_1:19;
  consider a9 such that
A8: a,a9 // K and
A9: a9 in P by A4,A5,Lm3;
  consider A such that
A10: a9 in A and
A11: K // A by A1,AFF_1:49;
A12: a9,a // A by A8,A11,Th3;
  then
A13: a in A by A10,Th2;
  consider b9 such that
A14: b,b9 // K and
A15: b9 in P by A4,A6,Lm3;
  consider M such that
A16: b9 in M and
A17: K // M by A1,AFF_1:49;
A18: b9,b // M by A14,A17,Th3;
  then
A19: b in M by A16,Th2;
A20: A is being_line by A11,AFF_1:36;
A21: now
    assume A=M;
    then
A22: b in A by A16,A18,Th2;
    a in A by A10,A12,Th2;
    then a9 in Q by A3,A5,A6,A7,A10,A20,A22,AFF_1:18;
    hence ex q st q in P & q in Q by A9;
  end;
  A // M by A11,A17,AFF_1:44;
  hence thesis by A2,A3,A5,A6,A9,A15,A10,A16,A13,A19,A21,Th18;
end;

theorem Th22:
  X is being_plane & M is being_line & N is being_line & M c= X &
  N c= X implies M // N or ex q st q in M & q in N
proof
  assume that
A1: X is being_plane and
A2: M is being_line and
A3: N is being_line and
A4: M c= X & N c= X;
  consider K,P such that
A5: K is being_line and
A6: P is being_line and
  not K // P and
A7: X = Plane(K,P) by A1;
A8: now
    assume not K // N;
    then M c= Plane(K,N) by A3,A4,A5,A6,A7,Th20;
    then N // M or ex q st q in N & q in M by A2,A3,A5,Th21;
    hence thesis;
  end;
  now
    assume not K // M;
    then N c= Plane(K,M) by A2,A4,A5,A6,A7,Th20;
    hence thesis by A2,A3,A5,Th21;
  end;
  hence thesis by A8,AFF_1:44;
end;

theorem Th23:
  X is being_plane & a in X & M c= X & a in N & (M // N or N // M)
  implies N c= X
proof
  assume that
A1: X is being_plane and
A2: a in X and
A3: M c= X and
A4: a in N and
A5: M // N or N // M;
A6: M is being_line by A5,AFF_1:36;
  consider K,P such that
A7: K is being_line and
A8: P is being_line and
  not K // P and
A9: X = Plane(K,P) by A1;
A10: N is being_line by A5,AFF_1:36;
A11: now
    assume
A12: not K // M;
    then
A13: X = Plane(K,M) by A3,A6,A7,A8,A9,Th20;
A14: a in Plane(K,M) by A2,A3,A6,A7,A8,A9,A12,Th20;
    now
      consider a9 such that
A15:  a,a9 // K and
A16:  a9 in M by A14,Lm3;
      consider b9 such that
A17:  a9<>b9 and
A18:  b9 in M by A6,AFF_1:20;
      consider b such that
A19:  a9,a // b9,b and
A20:  a9,b9 // a,b by DIRAF:40;
      assume
A21:  M<>N;
      then a<>a9 by A4,A5,A16,AFF_1:45;
      then b,b9 // K by A15,A19,Th4;
      then
A22:  b in Plane(K,M) by A18;
A23:  a<>b
      proof
        assume a=b;
        then a,a9 // a,b9 by A19,AFF_1:4;
        then LIN a, a9,b9 by AFF_1:def 1;
        then LIN a9,b9,a by AFF_1:6;
        then a in M by A6,A16,A17,A18,AFF_1:25;
        hence contradiction by A4,A5,A21,AFF_1:45;
      end;
      a,b // M by A6,A16,A17,A18,A20,AFF_1:32,52;
      then a,b // N by A5,Th3;
      then b in N by A4,Th2;
      hence thesis by A2,A4,A6,A10,A7,A13,A23,A22,Lm5;
    end;
    hence thesis by A3;
  end;
  now
    assume K // M;
    then K // N by A5,AFF_1:44;
    hence thesis by A2,A4,A9,Lm4;
  end;
  hence thesis by A11;
end;

theorem Th24:
  X is being_plane & Y is being_plane & a in X & b in X & a in Y &
  b in Y & X<>Y & a<>b implies X /\ Y is being_line
proof
  assume that
A1: X is being_plane and
A2: Y is being_plane and
A3: a in X & b in X and
A4: a in Y & b in Y and
A5: X<>Y and
A6: a<>b;
  set Z = X /\ Y;
  set Q = Line(a,b);
A7: Q c= X by A1,A3,A6,Th19;
A8: Q c= Y by A2,A4,A6,Th19;
A9: Q is being_line by A6,AFF_1:def 3;
A10: Z c= Q
  proof
    assume not Z c= Q;
    then consider x being object such that
A11: x in Z and
A12: not x in Q;
    reconsider a9=x as Element of AS by A11;
A13: x in Y by A11,XBOOLE_0:def 4;
A14: x in X by A11,XBOOLE_0:def 4;
    for y being object holds y in X iff y in Y
    proof
      let y be object;
A15:  now
        assume
A16:    y in Y;
        now
          reconsider b9=y as Element of AS by A16;
          set M = Line(a9,b9);
A17:      a9 in M by AFF_1:15;
A18:      b9 in M by AFF_1:15;
          assume
A19:      y<>x;
          then
A20:      M is being_line by AFF_1:def 3;
A21:      M c= Y by A2,A13,A16,A19,Th19;
A22:      now
            assume not M // Q;
            then consider q such that
A23:        q in M and
A24:        q in Q by A2,A9,A8,A20,A21,Th22;
            M = Line(a9,q) by A12,A20,A17,A23,A24,AFF_1:57;
            then M c= X by A1,A7,A12,A14,A24,Th19;
            hence y in X by A18;
          end;
          now
            assume M // Q;
            then M c= X by A1,A7,A14,A17,Th23;
            hence y in X by A18;
          end;
          hence y in X by A22;
        end;
        hence y in X by A11,XBOOLE_0:def 4;
      end;
      now
        assume
A25:    y in X;
        now
          reconsider b9=y as Element of AS by A25;
          set M = Line(a9,b9);
A26:      a9 in M by AFF_1:15;
A27:      b9 in M by AFF_1:15;
          assume
A28:      y<>x;
          then
A29:      M is being_line by AFF_1:def 3;
A30:      M c= X by A1,A14,A25,A28,Th19;
A31:      now
            assume not M // Q;
            then consider q such that
A32:        q in M and
A33:        q in Q by A1,A9,A7,A29,A30,Th22;
            M = Line(a9,q) by A12,A29,A26,A32,A33,AFF_1:57;
            then M c= Y by A2,A8,A12,A13,A33,Th19;
            hence y in Y by A27;
          end;
          now
            assume M // Q;
            then M c= Y by A2,A8,A13,A26,Th23;
            hence y in Y by A27;
          end;
          hence y in Y by A31;
        end;
        hence y in Y by A11,XBOOLE_0:def 4;
      end;
      hence thesis by A15;
    end;
    hence contradiction by A5,TARSKI:2;
  end;
  Q c= Z by A7,A8,XBOOLE_1:19;
  hence thesis by A9,A10,XBOOLE_0:def 10;
end;

theorem Th25:
  X is being_plane & Y is being_plane & a in X & b in X & c in X &
  a in Y & b in Y & c in Y & not LIN a,b,c implies X = Y
proof
  assume that
A1: X is being_plane & Y is being_plane and
A2: a in X & b in X and
A3: c in X and
A4: a in Y & b in Y and
A5: c in Y and
A6: not LIN a,b,c;
  assume
A7: not thesis;
  a<>b by A6,AFF_1:7;
  then
A8: X /\ Y is being_line by A1,A2,A4,A7,Th24;
A9: c in X /\ Y by A3,A5,XBOOLE_0:def 4;
  a in X /\ Y & b in X /\ Y by A2,A4,XBOOLE_0:def 4;
  hence contradiction by A6,A8,A9,AFF_1:21;
end;

Lm7: M is being_line & a in M & b in M & a<>b & not c in M implies not LIN a,b
,c
proof
  assume
A1: M is being_line & a in M & b in M & a<>b & not c in M;
  assume not thesis;
  then ex N st N is being_line & a in N & b in N & c in N by AFF_1:21;
  hence contradiction by A1,AFF_1:18;
end;

theorem Th26:
  X is being_plane & Y is being_plane & M is being_line & N is
  being_line & M c= X & N c= X & M c= Y & N c= Y & M<>N implies X = Y
proof
  assume that
A1: X is being_plane and
A2: Y is being_plane and
A3: M is being_line and
A4: N is being_line and
A5: M c= X & N c= X and
A6: M c= Y & N c= Y and
A7: M<>N;
  consider a,b such that
A8: a in M and
A9: b in M and
A10: a<>b by A3,AFF_1:19;
A11: now
    given q such that
A12: q in M and
A13: q in N;
    consider p such that
A14: q<>p and
A15: p in N by A4,AFF_1:20;
A16: not p in M by A3,A4,A7,A12,A13,A14,A15,AFF_1:18;
A17: now
      assume b<>q;
      then not LIN b,q,p by A3,A9,A12,A16,Lm7;
      hence thesis by A1,A2,A5,A6,A9,A12,A15,Th25;
    end;
    now
      assume a<>q;
      then not LIN a,q,p by A3,A8,A12,A16,Lm7;
      hence thesis by A1,A2,A5,A6,A8,A12,A15,Th25;
    end;
    hence thesis by A10,A17;
  end;
  consider c,d such that
A18: c in N and
  d in N and
  c <>d by A4,AFF_1:19;
  now
    assume M // N;
    then not c in M by A7,A18,AFF_1:45;
    then not LIN a,b,c by A3,A8,A9,A10,Lm7;
    hence thesis by A1,A2,A5,A6,A8,A9,A18,Th25;
  end;
  hence thesis by A1,A3,A4,A5,A11,Th22;
end;

definition
  let AS,a,K such that
A1: K is being_line;
  func a*K -> Subset of AS means
  :Def3:
  a in it & K // it;
  existence by A1,AFF_1:49;
  uniqueness by AFF_1:50;
end;

theorem Th27:
  A is being_line implies a*A is being_line
proof
  set M = a*A;
  assume A is being_line;
  then A // M by Def3;
  hence thesis by AFF_1:36;
end;

theorem Th28:
  X is being_plane & M is being_line & a in X & M c= X implies a*M c= X
proof
  assume that
A1: X is being_plane and
A2: M is being_line and
A3: a in X & M c= X;
  set N = a*M;
  a in N & M // N by A2,Def3;
  hence thesis by A1,A3,Th23;
end;

theorem Th29:
  X is being_plane & a in X & b in X & c in X & a,b // c,d & a<>b
  implies d in X
proof
  assume that
A1: X is being_plane & a in X & b in X & c in X and
A2: a,b // c,d and
A3: a<>b;
  set M=Line(a,b), N=c*M;
A4: M is being_line by A3,AFF_1:def 3;
  then
A5: N c= X by A1,A3,Th19,Th28;
A6: a in M & b in M by AFF_1:15;
  c in N & M // N by A4,Def3;
  then d in N by A2,A3,A6,Th7;
  hence thesis by A5;
end;

theorem
  A is being_line implies ( a in A iff a*A = A )
proof
  assume
A1: A is being_line;
  now
    assume
A2: a in A;
    A // A by A1,AFF_1:41;
    hence a*A = A by A1,A2,Def3;
  end;
  hence thesis by A1,Def3;
end;

theorem Th31:
  A is being_line implies a*A = a*(q*A)
proof
  assume
A1: A is being_line;
  then A // q*A & A // a*A by Def3;
  then
A2: a*A // q*A by AFF_1:44;
A3: q*A is being_line by A1,Th27;
  then
A4: a in a*(q*A) by Def3;
  q*A // a*(q*A) by A3,Def3;
  then
A5: a*A // a*(q*A) by A2,AFF_1:44;
  a in a*A by A1,Def3;
  hence thesis by A4,A5,AFF_1:45;
end;

Lm8: A is being_line & a in A implies a*A=A
proof
  assume that
A1: A is being_line and
A2: a in A;
  A // A by A1,AFF_1:41;
  hence thesis by A1,A2,Def3;
end;

theorem Th32:
  K // M implies a*K=a*M
proof
  assume
A1: K // M;
  then
A2: K is being_line by AFF_1:36;
  then K // a*K by Def3;
  then
A3: a*K // M by A1,AFF_1:44;
A4: M is being_line by A1,AFF_1:36;
  then
A5: a in a*M by Def3;
  M // a*M by A4,Def3;
  then
A6: a*K // a*M by A3,AFF_1:44;
  a in a*K by A2,Def3;
  hence thesis by A5,A6,AFF_1:45;
end;

definition
  let AS,X,Y;
  pred X '||' Y means

  for a,A st a in Y & A is being_line & A c= X holds a*A c= Y;
end;

theorem Th33:
  X c= Y & ( X is being_line & Y is being_line or X is being_plane
  & Y is being_plane ) implies X=Y
proof
  assume that
A1: X c= Y and
A2: X is being_line & Y is being_line or X is being_plane & Y is being_plane;
A3: now
    assume that
A4: X is being_plane and
A5: Y is being_plane;
    consider K,P such that
A6: K is being_line and
A7: P is being_line and
A8: not K // P and
A9: X=Plane(K,P) by A4;
    consider a,b such that
A10: a in P and
    b in P and
    a<>b by A7,AFF_1:19;
    set M=a*K;
A11: K // M by A6,Def3;
A12: P c= X by A6,A9,Th14;
    then
A13: P c= Y by A1;
A14: M is being_line by A6,Th27;
    a in M & P c= Plane(K,P) by A6,Def3,Th14;
    then
A15: M c= X by A9,A10,A11,Lm4;
    then M c= Y by A1;
    hence thesis by A4,A5,A7,A8,A11,A14,A12,A13,A15,Th26;
  end;
  now
    assume that
A16: X is being_line and
A17: Y is being_line;
    consider a,b such that
A18: a<>b and
A19: X=Line(a,b) by A16,AFF_1:def 3;
    a in X & b in X by A19,AFF_1:15;
    hence thesis by A1,A17,A18,A19,AFF_1:57;
  end;
  hence thesis by A2,A3;
end;

theorem Th34:
  X is being_plane implies ex a,b,c st a in X & b in X & c in X & not LIN a,b,c
proof
  assume X is being_plane;
  then consider K,P such that
A1: K is being_line and
A2: P is being_line and
A3: not K // P and
A4: X = Plane(K,P);
  consider a,b such that
A5: a in P and
A6: b in P and
A7: a<>b by A2,AFF_1:19;
  set Q = a*K;
  consider c such that
A8: a<>c and
A9: c in Q by A1,Th27,AFF_1:20;
  take a,b,c;
A10: P c= Plane(K,P) by A1,Th14;
  hence a in X & b in X by A4,A5,A6;
A11: K // Q & a in Q by A1,Def3;
  then Q c= Plane(K,P) by A5,A10,Lm4;
  hence c in X by A4,A9;
A12: Q is being_line by A1,Th27;
  thus not LIN a,b,c
  proof
    assume LIN a,b,c;
    then c in P by A2,A5,A6,A7,AFF_1:25;
    hence contradiction by A2,A3,A5,A11,A12,A8,A9,AFF_1:18;
  end;
end;

Lm9: X is being_plane implies ex b,c st b in X & c in X & not LIN a,b,c
proof
  assume X is being_plane;
  then consider p,q,r such that
A1: p in X & q in X and
A2: r in X and
A3: not LIN p,q,r by Th34;
  now
    assume
A4: LIN a,r,p & LIN a,r,q;
    take b=p,c =q;
    thus b in X & c in X by A1;
    LIN a,r,r by AFF_1:7;
    then a=r by A3,A4,AFF_1:8;
    hence not LIN a,b,c by A3,AFF_1:6;
  end;
  hence thesis by A1,A2;
end;

theorem
  M is being_line & X is being_plane implies ex q st q in X & not q in M
proof
  assume that
A1: M is being_line and
A2: X is being_plane;
  consider a,b,c such that
A3: a in X & b in X and
A4: c in X and
A5: not LIN a,b,c by A2,Th34;
  assume
A6: not ex q st q in X & not q in M;
  then
A7: c in M by A4;
  a in M & b in M by A6,A3;
  hence contradiction by A1,A5,A7,AFF_1:21;
end;

theorem Th36:
  for a,A st A is being_line ex X st a in X & A c= X & X is being_plane
proof
  let a,A;
  assume
A1: A is being_line;
  then consider p,q such that
A2: p in A and
  q in A and
  p<>q by AFF_1:19;
A3: now
    consider b such that
A4: not b in A by A1,Th12;
    consider P such that
A5: a in P & b in P and
A6: P is being_line by Th11;
    set X=Plane(P,A);
A7: A c= X by A6,Th14;
    assume
A8: a in A;
    then not P // A by A4,A5,AFF_1:45;
    then X is being_plane by A1,A6;
    hence thesis by A8,A7;
  end;
  now
    consider P such that
A9: a in P and
A10: p in P and
A11: P is being_line by Th11;
    set X=Plane(P,A);
    A c= X by A11,Th14;
    then
A12: P c= X by A2,A10,A11,Lm4,AFF_1:41;
    assume not a in A;
    then not P // A by A2,A9,A10,AFF_1:45;
    then X is being_plane by A1,A11;
    hence thesis by A9,A11,A12,Th14;
  end;
  hence thesis by A3;
end;

theorem Th37:
  ex X st a in X & b in X & c in X & X is being_plane
proof
  consider A such that
A1: a in A & b in A and
A2: A is being_line by Th11;
  ex X st c in X & A c= X & X is being_plane by A2,Th36;
  hence thesis by A1;
end;

theorem Th38:
  q in M & q in N & M is being_line & N is being_line implies ex X
  st M c= X & N c= X & X is being_plane
proof
  assume that
A1: q in M and
A2: q in N and
A3: M is being_line and
A4: N is being_line;
  consider a such that
A5: a<>q and
A6: a in N by A4,AFF_1:20;
A7: ex X st a in X & M c= X & X is being_plane by A3,Th36;
  N=Line(q,a) by A2,A4,A5,A6,AFF_1:24;
  hence thesis by A1,A5,A7,Th19;
end;

theorem Th39:
  M // N implies ex X st M c= X & N c= X & X is being_plane
proof
  assume
A1: M // N;
  then N is being_line by AFF_1:36;
  then consider a,b such that
A2: a in N and
  b in N and
  a<>b by AFF_1:19;
A3: M is being_line by A1,AFF_1:36;
  then
A4: ex X st a in X & M c= X & X is being_plane by Th36;
  N=a*M by A1,A3,A2,Def3;
  hence thesis by A3,A4,Th28;
end;

theorem
  M is being_line & N is being_line implies (M // N iff M '||' N)
proof
  assume that
A1: M is being_line and
A2: N is being_line;
A3: now
    assume
A4: M // N;
    now
      let a,A;
      assume that
A5:   a in N and
A6:   A is being_line & A c= M;
      N=a*M by A1,A4,A5,Def3;
      hence a*A c= N by A1,A6,Th33;
    end;
    hence M '||' N;
  end;
  now
    consider a,b such that
A7: a in N and
    b in N and
    a<>b by A2,AFF_1:19;
A8: a*M is being_line by A1,Th27;
    assume M '||' N;
    then a*M c= N by A1,A7;
    then a*M=N by A2,A8,Th33;
    hence M // N by A1,Def3;
  end;
  hence thesis by A3;
end;

theorem Th41:
  M is being_line & X is being_plane implies (M '||' X iff ex N st
  N c= X & (M // N or N // M) )
proof
  assume that
A1: M is being_line and
A2: X is being_plane;
A3: now
    given N such that
A4: N c= X and
A5: M // N or N // M;
    now
      let a,A;
      assume that
A6:   a in X and
A7:   A is being_line and
A8:   A c= M;
      A=M by A1,A7,A8,Th33;
      then M // a*A by A7,Def3;
      then
A9:   N // a*A by A5,AFF_1:44;
      a in a*A by A7,Def3;
      hence a*A c= X by A2,A4,A6,A9,Th23;
    end;
    hence M '||' X;
  end;
  now
    consider a,b,c such that
A10: a in X and
    b in X and
    c in X and
    not LIN a,b,c by A2,Th34;
    assume
A11: M '||' X;
    take N=a*M;
    thus N c= X by A1,A11,A10;
    thus M // N or N // M by A1,Def3;
  end;
  hence thesis by A3;
end;

theorem
  M is being_line & X is being_plane & M c= X implies M '||' X
proof
  assume that
A1: M is being_line and
A2: X is being_plane & M c= X;
  M // M by A1,AFF_1:41;
  hence thesis by A1,A2,Th41;
end;

theorem
  A is being_line & X is being_plane & a in A & a in X & A '||' X
  implies A c= X
proof
  assume that
A1: A is being_line and
A2: X is being_plane and
A3: a in A and
A4: a in X and
A5: A '||' X;
  consider N such that
A6: N c= X and
A7: A // N or N // A by A1,A2,A5,Th41;
A8: N is being_line by A7,AFF_1:36;
  A=a*A by A1,A3,Lm8
    .= a*N by A7,Th32;
  hence thesis by A2,A4,A6,A8,Th28;
end;

definition
  let AS,K,M,N;
  pred K,M,N is_coplanar means

  ex X st K c= X & M c= X & N c= X & X is being_plane;
end;

theorem
  K,M,N is_coplanar implies K,N,M is_coplanar & M,K,N is_coplanar
  & M,N,K is_coplanar & N,K,M is_coplanar & N,M,K is_coplanar;

theorem
  M is being_line & N is being_line & M,N,K is_coplanar & M,N,A
  is_coplanar & M<>N implies M,K,A is_coplanar
proof
  assume that
A1: M is being_line & N is being_line and
A2: M,N,K is_coplanar and
A3: M,N,A is_coplanar and
A4: M<>N;
  consider X such that
A5: M c= X and
A6: N c= X and
A7: K c= X and
A8: X is being_plane by A2;
  ex Y st M c= Y & N c= Y & A c= Y & Y is being_plane by A3;
  then A c= X by A1,A4,A5,A6,A8,Th26;
  hence thesis by A5,A7,A8;
end;

theorem Th46:
  K is being_line & M is being_line & X is being_plane & K c= X &
  M c= X & K<>M implies (K,M,A is_coplanar iff A c= X)
by Th26;

theorem Th47:
  q in K & q in M & K is being_line & M is being_line implies K,M,
  M is_coplanar & M,K,M is_coplanar & M,M,K is_coplanar
proof
  assume q in K & q in M & K is being_line & M is being_line;
  then ex X st K c= X & M c= X & X is being_plane by Th38;
  hence thesis;
end;

theorem Th48:
  AS is not AffinPlane & X is being_plane implies ex q st not q in X
proof
  assume that
A1: AS is not AffinPlane and
A2: X is being_plane;
  assume
A3: not ex q st not q in X;
  for a,b,c,d st not a,b // c,d ex q st a,b // a,q & c,d // c,q
  proof
    let a,b,c,d;
    set M=Line(a,b),N=Line(c,d);
A4: a in M & b in M by AFF_1:15;
A5: c in N & d in N by AFF_1:15;
    assume
A6: not a,b // c,d;
    then
A7: a<>b by AFF_1:3;
    then
A8: M is being_line by AFF_1:def 3;
A9: c <>d by A6,AFF_1:3;
    then
A10: N is being_line by AFF_1:def 3;
    c in X & d in X by A3;
    then
A11: N c= X by A2,A9,Th19;
    a in X & b in X by A3;
    then M c= X by A2,A7,Th19;
    then consider q such that
A12: q in M and
A13: q in N by A2,A6,A11,A8,A10,A4,A5,Th22,AFF_1:39;
    LIN c,d,q by A10,A5,A13,AFF_1:21;
    then
A14: c,d // c, q by AFF_1:def 1;
    LIN a,b,q by A8,A4,A12,AFF_1:21;
    then a,b // a,q by AFF_1:def 1;
    hence thesis by A14;
  end;
  hence contradiction by A1,DIRAF:def 7;
end;

Lm10: q in A & q in P & q in C & not A,P,C is_coplanar & q<>a & q<>b & q<>c &
a in A & a9 in A & b in P & b9 in P & c in C & c9 in C & A is being_line & P is
being_line & C is being_line & A<>P & A<>C & a,b // a9,b9 & a,c // a9,c9
implies b,c // b9,c9
proof
  assume that
A1: q in A and
A2: q in P and
A3: q in C and
A4: not A,P,C is_coplanar and
A5: q<>a and
A6: q<>b and
A7: q<>c and
A8: a in A and
A9: a9 in A and
A10: b in P and
A11: b9 in P and
A12: c in C and
A13: c9 in C and
A14: A is being_line and
A15: P is being_line and
A16: C is being_line and
A17: A<>P and
A18: A<>C and
A19: a,b // a9,b9 and
A20: a,c // a9,c9;
A21: c <>a by A1,A3,A5,A8,A12,A14,A16,A18,AFF_1:18;
A22: P<>C by A1,A2,A4,A14,A15,Th47;
  then
A23: b<>c by A2,A3,A6,A10,A12,A15,A16,AFF_1:18;
  consider X such that
A24: P c= X & C c= X and
A25: X is being_plane by A2,A3,A15,A16,Th38;
  consider Y such that
A26: A c= Y and
A27: C c= Y and
A28: Y is being_plane by A1,A3,A14,A16,Th38;
A29: a<>b by A1,A2,A5,A8,A10,A14,A15,A17,AFF_1:18;
A30: now
    assume
A31: q<>a9;
    then
A32: q<>c9 by A1,A3,A5,A7,A8,A9,A12,A14,A16,A18,A20,Th8;
A33: now
      set BC=Line(b,c),BC9=Line(b9,c9),AB=Line(a,b),AB9=Line(a9,b9), AC=Line(a
      ,c),AC9=Line(a9,c9);
      assume
A34:  a<>a9;
      assume
A35:  not b,c // b9,c9;
A36:  b9 in BC9 & c9 in BC9 by AFF_1:15;
A37:  BC c= X by A10,A12,A24,A25,A23,Th19;
A38:  c in BC by AFF_1:15;
A39:  BC is being_line & b in BC by A23,AFF_1:15,def 3;
A40:  c9<>b9 by A2,A3,A11,A13,A15,A16,A22,A32,AFF_1:18;
      then
A41:  BC9 is being_line by AFF_1:def 3;
      BC9 c= X by A11,A13,A24,A25,A40,Th19;
      then consider p such that
A42:  p in BC and
A43:  p in BC9 by A25,A35,A41,A39,A38,A36,A37,Th22,AFF_1:39;
A44:  a9 in AC9 by AFF_1:15;
      LIN c9,b9,p by A41,A36,A43,AFF_1:21;
      then consider y such that
A45:  LIN c9,a9,y and
A46:  b9,a9 // p,y by A40,Th1;
A47:  c in AC by AFF_1:15;
      LIN c,b,p by A39,A38,A42,AFF_1:21;
      then consider x such that
A48:  LIN c,a,x and
A49:  b,a // p,x by A23,Th1;
A50:  a in AB by AFF_1:15;
A51:  AC is being_line & a in AC by A21,AFF_1:15,def 3;
      then
A52:  x in AC by A21,A47,A48,AFF_1:25;
      set K = p*AB;
A53:  b in AB by AFF_1:15;
A54:  AB is being_line by A29,AFF_1:def 3;
      then
A55:  AB // K by Def3;
A56:  p in K by A54,Def3;
      p,x // a,b by A49,AFF_1:4;
      then p,x // AB by A29,AFF_1:def 4;
      then p,x // K by A55,Th3;
      then
A57:  x in K by A56,Th2;
A58:  a9<>b9 by A1,A2,A9,A11,A14,A15,A17,A31,AFF_1:18;
      p,y // a9,b9 by A46,AFF_1:4;
      then
A59:  p,y // AB9 by A58,AFF_1:def 4;
      AB // AB9 by A19,A29,A58,AFF_1:37;
      then AB9 // K by A55,AFF_1:44;
      then p,y // K by A59,Th3;
      then
A60:  y in K by A56,Th2;
A61:  AC c= Y by A8,A12,A26,A27,A28,A21,Th19;
A62:  c9 in AC9 by AFF_1:15;
A63:  a9<>c9 by A1,A3,A9,A13,A14,A16,A18,A31,AFF_1:18;
      then AC9 is being_line by AFF_1:def 3;
      then
A64:  y in AC9 by A63,A44,A62,A45,AFF_1:25;
A65:  AC9 c= Y by A9,A13,A26,A27,A28,A63,Th19;
A66:  now
        assume
A67:    x<>y;
        then K=Line(x,y) by A54,A57,A60,Th27,AFF_1:57;
        then K c= Y by A28,A61,A65,A52,A64,A67,Th19;
        then
A68:    AB c= Y by A8,A26,A28,A50,A55,Th23;
        P=Line(q,b) by A2,A6,A10,A15,AFF_1:57;
        then P c= Y by A1,A6,A26,A28,A53,A68,Th19;
        hence contradiction by A4,A26,A27,A28;
      end;
A69:  AC // AC9 by A20,A21,A63,AFF_1:37;
      now
        assume x=y;
        then a9 in AC by A44,A69,A52,A64,AFF_1:45;
        then c in A by A8,A9,A14,A34,A51,A47,AFF_1:18;
        hence contradiction by A1,A3,A7,A12,A14,A16,A18,AFF_1:18;
      end;
      hence contradiction by A66;
    end;
    now
      assume a=a9;
      then b=b9 & c =c9 by A1,A2,A3,A5,A6,A7,A8,A10,A11,A12,A13,A14,A15,A16,A17
,A18,A19,A20,Th9;
      hence thesis by AFF_1:2;
    end;
    hence thesis by A33;
  end;
  now
    assume q=a9;
    then q=b9 & q=c9 by A1,A2,A3,A5,A6,A7,A8,A10,A11,A12,A13,A14,A15,A16,A17
,A18,A19,A20,Th8;
    hence thesis by AFF_1:3;
  end;
  hence thesis by A30;
end;

theorem Th49:
  AS is not AffinPlane & q in A & q in P & q in C & q<>a & q<>b &
q<>c & a in A & a9 in A & b in P & b9 in P & c in C & c9 in C & A is being_line
& P is being_line & C is being_line & A<>P & A<>C & a,b // a9,b9 & a,c // a9,c9
  implies b,c // b9,c9
proof
  assume that
A1: AS is not AffinPlane and
A2: q in A and
A3: q in P and
A4: q in C and
A5: q<>a and
A6: q<>b and
A7: q<>c and
A8: a in A & a9 in A and
A9: b in P & b9 in P and
A10: c in C & c9 in C and
A11: A is being_line and
A12: P is being_line and
A13: C is being_line and
A14: A<>P and
A15: A<>C and
A16: a,b // a9,b9 and
A17: a,c // a9,c9;
  now
    assume A,P,C is_coplanar;
    then consider X such that
A18: A c= X and
A19: P c= X and
A20: C c= X and
A21: X is being_plane;
    consider d such that
A22: not d in X by A1,A21,Th48;
    LIN q,a,a9 by A2,A8,A11,AFF_1:21;
    then consider d9 such that
A23: LIN q,d,d9 and
A24: a,d // a9,d9 by A5,Th1;
    set K=Line(q,d);
A25: d in K by AFF_1:15;
    then
A26: not K c= X by A22;
A27: q<>d by A2,A18,A22;
    then
A28: q in K & K is being_line by AFF_1:15,def 3;
    then
A29: d9 in K by A25,A27,A23,AFF_1:25;
    now
      assume
A30:  P<>C;
A31:  not K,P,C is_coplanar
      proof
        assume K,P,C is_coplanar;
        then P,C,K is_coplanar;
        hence contradiction by A12,A13,A19,A20,A21,A26,A30,Th46;
      end;
A32:  K<>A by A18,A22,A25;
      not A,K,P is_coplanar
      proof
        assume A,K,P is_coplanar;
        then A,P,K is_coplanar;
        hence contradiction by A11,A12,A14,A18,A19,A21,A26,Th46;
      end;
      then
A33:  d,b // d9,b9 by A2,A3,A5,A6,A8,A9,A11,A12,A14,A16,A25,A27,A28,A24,A29,A32
,Lm10;
A34:  K<>P & K<>C by A19,A20,A22,A25;
      not A,K,C is_coplanar
      proof
        assume A,K,C is_coplanar;
        then A,C,K is_coplanar;
        hence contradiction by A11,A13,A15,A18,A20,A21,A26,Th46;
      end;
      then
      d,c // d9,c9 by A2,A4,A5,A7,A8,A10,A11,A13,A15,A17,A25,A27,A28,A24,A29
,A32,Lm10;
      hence thesis by A3,A4,A6,A7,A9,A10,A12,A13,A25,A27,A28,A29,A34,A31,A33
,Lm10;
    end;
    hence thesis by A9,A10,A12,AFF_1:51;
  end;
  hence thesis by A2,A3,A4,A5,A6,A7,A8,A9,A10,A11,A12,A13,A14,A15,A16,A17,Lm10;
end;

theorem
  AS is not AffinPlane implies AS is Desarguesian
proof
  assume AS is not AffinPlane;
  then
  for A,P,C,q,a,b,c,a9,b9,c9 holds q in A & q in P & q in C & q<>a & q<>b
  & q<>c & a in A & a9 in A & b in P & b9 in P & c in C & c9 in C & A is
being_line & P is being_line & C is being_line & A<>P & A<>C & a,b // a9,b9 & a
  ,c // a9,c9 implies b,c // b9,c9 by Th49;
  hence thesis by AFF_2:def 4;
end;

Lm11: A // P & A // C & not A,P,C is_coplanar & a in A & a9 in A & b in P & b9
in P & c in C & c9 in C & A is being_line & A<>P & A<>C & a,b // a9,b9 & a,c //
a9,c9 implies b,c // b9,c9
proof
  assume that
A1: A // P and
A2: A // C and
A3: not A,P,C is_coplanar and
A4: a in A and
A5: a9 in A and
A6: b in P and
A7: b9 in P and
A8: c in C and
A9: c9 in C and
A10: A is being_line and
A11: A<>P and
A12: A<>C and
A13: a,b // a9,b9 and
A14: a,c // a9,c9;
A15: c <>a by A2,A4,A8,A12,AFF_1:45;
A16: P // C by A1,A2,AFF_1:44;
  then consider X such that
A17: P c= X & C c= X and
A18: X is being_plane by Th39;
  consider Y such that
A19: A c= Y and
A20: C c= Y and
A21: Y is being_plane by A2,Th39;
A22: P<>C by A3,A19,A20,A21;
  then
A23: b<>c by A6,A8,A16,AFF_1:45;
A24: a<>b by A1,A4,A6,A11,AFF_1:45;
A25: now
    set BC=Line(b,c),BC9=Line(b9,c9),AB=Line(a,b),AB9=Line(a9,b9), AC=Line(a,c
    ),AC9=Line(a9,c9);
    assume
A26: a<>a9;
    assume
A27: not b,c // b9,c9;
A28: b9 in BC9 & c9 in BC9 by AFF_1:15;
A29: BC c= X by A6,A8,A17,A18,A23,Th19;
A30: c in BC by AFF_1:15;
A31: BC is being_line & b in BC by A23,AFF_1:15,def 3;
A32: c9<>b9 by A7,A9,A16,A22,AFF_1:45;
    then
A33: BC9 is being_line by AFF_1:def 3;
    BC9 c= X by A7,A9,A17,A18,A32,Th19;
    then consider p such that
A34: p in BC and
A35: p in BC9 by A18,A27,A33,A31,A30,A28,A29,Th22,AFF_1:39;
A36: a9 in AC9 by AFF_1:15;
    LIN c9,b9,p by A33,A28,A35,AFF_1:21;
    then consider y such that
A37: LIN c9,a9,y and
A38: b9,a9 // p,y by A32,Th1;
A39: c in AC by AFF_1:15;
    LIN c,b,p by A31,A30,A34,AFF_1:21;
    then consider x such that
A40: LIN c,a,x and
A41: b,a // p,x by A23,Th1;
A42: a in AB by AFF_1:15;
A43: AC is being_line & a in AC by A15,AFF_1:15,def 3;
    then
A44: x in AC by A15,A39,A40,AFF_1:25;
    set K = p*AB;
A45: b in AB by AFF_1:15;
A46: AB is being_line by A24,AFF_1:def 3;
    then
A47: AB // K by Def3;
A48: p in K by A46,Def3;
    p,x // a,b by A41,AFF_1:4;
    then p,x // AB by A24,AFF_1:def 4;
    then p,x // K by A47,Th3;
    then
A49: x in K by A48,Th2;
A50: a9<>b9 by A1,A5,A7,A11,AFF_1:45;
    p,y // a9,b9 by A38,AFF_1:4;
    then
A51: p,y // AB9 by A50,AFF_1:def 4;
    AB // AB9 by A13,A24,A50,AFF_1:37;
    then AB9 // K by A47,AFF_1:44;
    then p,y // K by A51,Th3;
    then
A52: y in K by A48,Th2;
A53: AC c= Y by A4,A8,A19,A20,A21,A15,Th19;
A54: c9 in AC9 by AFF_1:15;
A55: a9<>c9 by A2,A5,A9,A12,AFF_1:45;
    then AC9 is being_line by AFF_1:def 3;
    then
A56: y in AC9 by A55,A36,A54,A37,AFF_1:25;
A57: AC9 c= Y by A5,A9,A19,A20,A21,A55,Th19;
A58: now
      assume
A59:  x<>y;
      then K=Line(x,y) by A46,A49,A52,Th27,AFF_1:57;
      then K c= Y by A21,A53,A57,A44,A56,A59,Th19;
      then
A60:  AB c= Y by A4,A19,A21,A42,A47,Th23;
      P=b*A by A1,A6,A10,Def3;
      then P c= Y by A10,A19,A21,A45,A60,Th28;
      hence contradiction by A3,A19,A20,A21;
    end;
A61: AC // AC9 by A14,A15,A55,AFF_1:37;
    now
      assume x=y;
      then a9 in AC by A36,A61,A44,A56,AFF_1:45;
      then c in A by A4,A5,A10,A26,A43,A39,AFF_1:18;
      hence contradiction by A2,A8,A12,AFF_1:45;
    end;
    hence contradiction by A58;
  end;
  now
    assume a=a9;
    then b=b9 & c =c9 by A1,A2,A4,A6,A7,A8,A9,A11,A12,A13,A14,Th10;
    hence thesis by AFF_1:2;
  end;
  hence thesis by A25;
end;

theorem Th51:
  AS is not AffinPlane & A // P & A // C & a in A & a9 in A & b in
  P & b9 in P & c in C & c9 in C & A is being_line & P is being_line & C is
  being_line & A<>P & A<>C & a,b // a9,b9 & a,c // a9,c9 implies b,c // b9,c9
proof
  assume that
A1: AS is not AffinPlane and
A2: A // P and
A3: A // C and
A4: a in A & a9 in A and
A5: b in P & b9 in P and
A6: c in C & c9 in C and
A7: A is being_line and
A8: P is being_line and
A9: C is being_line and
A10: A<>P and
A11: A<>C and
A12: a,b // a9,b9 and
A13: a,c // a9,c9;
  now
    assume A,P,C is_coplanar;
    then consider X such that
A14: A c= X and
A15: P c= X and
A16: C c= X and
A17: X is being_plane;
    consider d such that
A18: not d in X by A1,A17,Th48;
    set K=d*A;
A19: d in K by A7,Def3;
    then
A20: not K c= X by A18;
A21: A // K by A7,Def3;
    ex d9 st d9 in K & a,d // a9,d9
    proof
A22:  now
        assume
A23:    a<>a9;
        consider d9 such that
A24:    a,a9 // d,d9 and
A25:    a,d // a9,d9 by DIRAF:40;
        d,d9 // a,a9 by A24,AFF_1:4;
        then d,d9 // A by A4,A7,A23,AFF_1:27;
        then d,d9 // K by A21,Th3;
        then d9 in K by A19,Th2;
        hence thesis by A25;
      end;
      now
        assume
A26:    a=a9;
        take d9=d;
        thus d9 in K by A7,Def3;
        thus a,d // a9,d9 by A26,AFF_1:2;
      end;
      hence thesis by A22;
    end;
    then consider d9 such that
A27: d9 in K and
A28: a,d // a9,d9;
A29: K // P & K // C by A2,A3,A21,AFF_1:44;
    now
      assume
A30:  P<>C;
A31:  not K,P,C is_coplanar
      proof
        assume K,P,C is_coplanar;
        then P,C,K is_coplanar;
        hence contradiction by A8,A9,A15,A16,A17,A20,A30,Th46;
      end;
A32:  K<>A by A14,A18,A19;
      not A,K,P is_coplanar
      proof
        assume A,K,P is_coplanar;
        then A,P,K is_coplanar;
        hence contradiction by A7,A8,A10,A14,A15,A17,A20,Th46;
      end;
      then
A33:  d,b // d9,b9 by A2,A4,A5,A7,A10,A12,A19,A21,A27,A28,A32,Lm11;
A34:  K<>P & K<>C by A15,A16,A18,A19;
      not A,K,C is_coplanar
      proof
        assume A,K,C is_coplanar;
        then A,C,K is_coplanar;
        hence contradiction by A7,A9,A11,A14,A16,A17,A20,Th46;
      end;
      then d,c // d9,c9 by A3,A4,A6,A7,A11,A13,A19,A21,A27,A28,A32,Lm11;
      hence thesis by A5,A6,A7,A19,A29,A27,A34,A31,A33,Lm11,Th27;
    end;
    hence thesis by A5,A6,A8,AFF_1:51;
  end;
  hence thesis by A2,A3,A4,A5,A6,A7,A10,A11,A12,A13,Lm11;
end;

theorem
  AS is not AffinPlane implies AS is translational
proof
  assume AS is not AffinPlane;
  then
  for A,P,C,a,b,c,a9,b9,c9 holds A // P & A // C & a in A & a9 in A & b in
  P & b9 in P & c in C & c9 in C & A is being_line & P is being_line & C is
being_line & A<>P & A<>C & a,b // a9,b9 & a,c // a9,c9 implies b,c // b9,c9 by
Th51;
  hence thesis by AFF_2:def 11;
end;

theorem Th53:
  AS is AffinPlane & not LIN a,b,c implies ex c9 st a,c // a9,c9 & b,c // b9,c9
proof
  assume that
A1: AS is AffinPlane and
A2: not LIN a,b,c;
  consider C such that
A3: b in C & c in C and
A4: C is being_line by Th11;
  consider N such that
A5: b9 in N and
A6: C // N by A4,AFF_1:49;
A7: N is being_line by A6,AFF_1:36;
  consider P such that
A8: a in P and
A9: c in P and
A10: P is being_line by Th11;
  consider M such that
A11: a9 in M and
A12: P // M by A10,AFF_1:49;
A13: not M // N
  proof
    assume M // N;
    then N // P by A12,AFF_1:44;
    then C // P by A6,AFF_1:44;
    then b in P by A3,A9,AFF_1:45;
    hence contradiction by A2,A8,A9,A10,AFF_1:21;
  end;
  M is being_line by A12,AFF_1:36;
  then consider c9 such that
A14: c9 in M and
A15: c9 in N by A1,A7,A13,AFF_1:58;
A16: b,c // b9,c9 by A3,A5,A6,A15,AFF_1:39;
  a,c // a9,c9 by A8,A9,A11,A12,A14,AFF_1:39;
  hence thesis by A16;
end;

Lm12: not LIN a,b,c & a,b // a9,b9 & a in X & b in X & c in X & X is
being_plane & a9 in X implies ex c9 st a,c // a9,c9 & b,c // b9,c9
proof
  assume that
A1: not LIN a,b,c and
A2: a,b // a9,b9 and
A3: a in X and
A4: b in X and
A5: c in X and
A6: X is being_plane and
A7: a9 in X;
  set C=Line(b,c),P=Line(a,c),P9=a9*P,C9=b9*C;
A8: b<>c by A1,AFF_1:7;
  then
A9: C is being_line by AFF_1:def 3;
  then
A10: C // C9 by Def3;
  a<>b by A1,AFF_1:7;
  then b9 in X by A2,A3,A4,A6,A7,Th29;
  then
A11: C9 c= X by A4,A5,A6,A8,A9,Th19,Th28;
A12: c in P by AFF_1:15;
A13: C9 is being_line by A9,Th27;
A14: a in P by AFF_1:15;
A15: c <>a by A1,AFF_1:7;
  then
A16: P is being_line by AFF_1:def 3;
  then
A17: P9 is being_line by Th27;
A18: b in C & c in C by AFF_1:15;
A19: P // P9 by A16,Def3;
A20: not C9 // P9
  proof
    assume C9 // P9;
    then C9 // P by A19,AFF_1:44;
    then C // P by A10,AFF_1:44;
    then b in P by A12,A18,AFF_1:45;
    hence contradiction by A1,A14,A12,A16,AFF_1:21;
  end;
  P9 c= X by A3,A5,A6,A7,A15,A16,Th19,Th28;
  then consider c9 such that
A21: c9 in C9 and
A22: c9 in P9 by A6,A17,A13,A20,A11,Th22;
  b9 in C9 by A9,Def3;
  then
A23: b,c // b9,c9 by A18,A10,A21,AFF_1:39;
  a9 in P9 by A16,Def3;
  then a,c // a9,c9 by A14,A12,A19,A22,AFF_1:39;
  hence thesis by A23;
end;

theorem Th54:
  not LIN a,b,c & a9<>b9 & a,b // a9,b9 implies ex c9 st a,c // a9
  ,c9 & b,c // b9,c9
proof
  assume that
A1: not LIN a,b,c and
A2: a9<>b9 and
A3: a,b // a9,b9;
  now
    consider X such that
A4: a in X and
A5: b in X and
A6: c in X and
A7: X is being_plane by Th37;
    assume
A8: AS is not AffinPlane;
    now
      set A=Line(a,a9),P=Line(b,b9);
      set AB=Line(a,b),AB9=Line(a9,b9);
A9:   a in AB by AFF_1:15;
      assume
A10:  not a9 in X;
      then
A11:  A is being_line by A4,AFF_1:def 3;
A12:  a<>b by A1,AFF_1:7;
      then
A13:  AB c= X by A4,A5,A7,Th19;
A14:  AB // AB9 by A2,A3,A12,AFF_1:37;
      then consider Y such that
A15:  AB c= Y and
A16:  AB9 c= Y and
A17:  Y is being_plane by Th39;
A18:  b in AB by AFF_1:15;
A19:  a9 in AB9 by AFF_1:15;
      then
A20:  A c= Y by A4,A10,A9,A15,A16,A17,Th19;
A21:  b9 in AB9 by AFF_1:15;
A22:  not b9 in X
      proof
        assume b9 in X;
        then AB9 c= X by A7,A21,A14,A13,Th23;
        hence contradiction by A10,A19;
      end;
      then
A23:  P is being_line by A5,AFF_1:def 3;
A24:  b9 in P by AFF_1:15;
A25:  a in A by AFF_1:15;
A26:  a<>c by A1,AFF_1:7;
A27:  b in P by AFF_1:15;
A28:  a9 in A by AFF_1:15;
A29:  AB is being_line by A12,AFF_1:def 3;
A30:  A<>P
      proof
        assume A=P;
        then A=AB by A12,A9,A18,A29,A11,A25,A27,AFF_1:18;
        hence contradiction by A10,A13,A28;
      end;
A31:  now
        set C=c*A;
        assume
A32:    A // P;
A33:    c in C by A11,Def3;
A34:    A<>C
        proof
          assume A=C;
          then A=Line(a,c) by A26,A11,A25,A33,AFF_1:57;
          then A c= X by A4,A6,A7,A26,Th19;
          hence contradiction by A10,A28;
        end;
A35:    A // C by A11,Def3;
        then consider c9 such that
A36:    c9 in C and
A37:    a,c // a9,c9 by A25,A28,A33,Lm2;
        C is being_line by A11,Th27;
        then b,c // b9,c9 by A3,A8,A11,A23,A25,A28,A27,A24,A30,A32,A33,A35,A36
,A37,A34,Th51;
        hence thesis by A37;
      end;
A38:  a9 in Y by A19,A16;
A39:  now
        given q such that
A40:    q in A and
A41:    q in P;
A42:    q<>a
        proof
          assume q=a;
          then AB=P by A12,A9,A18,A29,A23,A27,A41,AFF_1:18;
          hence contradiction by A13,A22,A24;
        end;
A43:    q<>b
        proof
          assume q=b;
          then AB=A by A12,A9,A18,A29,A11,A25,A40,AFF_1:18;
          hence contradiction by A10,A13,A28;
        end;
        set C=Line(q,c);
A44:    c in C by AFF_1:15;
A45:    A<>C
        proof
          assume A=C;
          then A=Line(a,c) by A26,A11,A25,A44,AFF_1:57;
          then A c= X by A4,A6,A7,A26,Th19;
          hence contradiction by A10,A28;
        end;
        LIN q,a,a9 by A11,A25,A28,A40,AFF_1:21;
        then consider c9 such that
A46:    LIN q,c,c9 and
A47:    a,c // a9,c9 by A42,Th1;
A48:    q<>c by A1,A4,A5,A6,A7,A10,A9,A18,A15,A17,A38,A20,A40,Th25;
        then
A49:    q in C & C is being_line by AFF_1:15,def 3;
        then c9 in C by A48,A44,A46,AFF_1:25;
        then
        b,c // b9,c9 by A3,A8,A11,A23,A25,A28,A27,A24,A30,A40,A41,A42,A43,A48
,A44,A49,A47,A45,Th49;
        hence thesis by A47;
      end;
      P c= Y by A5,A18,A21,A22,A15,A16,A17,Th19;
      hence thesis by A17,A11,A23,A20,A31,A39,Th22;
    end;
    hence thesis by A1,A3,A4,A5,A6,A7,Lm12;
  end;
  hence thesis by A1,Th53;
end;

theorem Th55:
  X is being_plane & Y is being_plane implies (X '||' Y iff ex A,P
,M,N st not A // P & A c= X & P c= X & M c= Y & N c= Y & (A // M or M // A) & (
  P // N or N // P) )
proof
  assume that
A1: X is being_plane and
A2: Y is being_plane;
A3: now
    given A,P,M,N such that
A4: not A // P and
A5: A c= X and
A6: P c= X and
A7: M c= Y and
A8: N c= Y and
A9: A // M or M // A and
A10: P // N or N // P;
A11: M is being_line by A9,AFF_1:36;
A12: not M // N
    proof
      assume M // N;
      then P // M by A10,AFF_1:44;
      hence contradiction by A4,A9,AFF_1:44;
    end;
    N is being_line by A10,AFF_1:36;
    then consider q such that
A13: q in M and
A14: q in N by A2,A7,A8,A11,A12,Th22;
A15: A is being_line by A9,AFF_1:36;
A16: P is being_line by A10,AFF_1:36;
    then consider p such that
A17: p in A and
A18: p in P by A1,A4,A5,A6,A15,Th22;
    now
      let a,Z;
      assume that
A19:  a in Y and
A20:  Z is being_line and
A21:  Z c= X;
A22:  a in a*Z by A20,Def3;
A23:  Z // a*Z by A20,Def3;
A24:  now
        assume Z // P;
        then Z // N by A10,AFF_1:44;
        then a*Z // N by A23,AFF_1:44;
        hence a*Z c= Y by A2,A8,A19,A22,Th23;
      end;
A25:  now
        assume that
A26:    not Z // A and
A27:    not Z // P;
        consider b such that
A28:    p<>b and
A29:    b in A by A15,AFF_1:20;
        set Z1= b*Z;
A30:    Z1 is being_line by A20,Th27;
A31:    not Z1 // P
        proof
          assume
A32:      Z1 // P;
          Z // b*Z by A20,Def3;
          hence contradiction by A27,A32,AFF_1:44;
        end;
A33:    Z // Z1 by A20,Def3;
        Z1 c= X by A1,A5,A20,A21,A29,Th28;
        then consider c such that
A34:    c in Z1 and
A35:    c in P by A1,A6,A16,A30,A31,Th22;
A36:    b in Z1 by A20,Def3;
        then
A37:    p<>c by A15,A17,A26,A28,A29,A30,A33,A34,AFF_1:18;
A38:    A<>P by A4,A15,AFF_1:41;
A39:    not LIN p,b,c
        proof
          assume LIN p,b,c;
          then c in A by A15,A17,A28,A29,AFF_1:25;
          hence contradiction by A15,A16,A17,A18,A35,A37,A38,AFF_1:18;
        end;
        then
A40:    b<>c by AFF_1:7;
        consider b9 such that
A41:    q<>b9 and
A42:    b9 in M by A11,AFF_1:20;
        p,b // q,b9 by A9,A17,A13,A29,A42,AFF_1:39;
        then consider c9 such that
A43:    p,c // q,c9 and
A44:    b,c // b9,c9 by A41,A39,Th54;
        set Z2=Line(b9,c9);
A45:    b9 in Z2 & c9 in Z2 by AFF_1:15;
A46:    b9<>c9
        proof
          assume
A47:      b9=c9;
          q,b9 // M by A11,A13,A42,AFF_1:52;
          then p,c // M by A41,A43,A47,Th4;
          then p,c // A by A9,Th3;
          then c in A by A17,Th2;
          hence contradiction by A15,A16,A17,A18,A35,A37,A38,AFF_1:18;
        end;
        then Z2 is being_line by AFF_1:def 3;
        then Z1 // Z2 by A30,A36,A34,A44,A40,A46,A45,AFF_1:38;
        then Z // Z2 by A33,AFF_1:44;
        then
A48:    a*Z // Z2 by A23,AFF_1:44;
        c9 in N by A10,A18,A14,A35,A37,A43,Th7;
        then Z2 c= Y by A2,A7,A8,A42,A46,Th19;
        hence a*Z c= Y by A2,A19,A22,A48,Th23;
      end;
      now
        assume Z // A;
        then Z // M by A9,AFF_1:44;
        then a*Z // M by A23,AFF_1:44;
        hence a*Z c= Y by A2,A7,A19,A22,Th23;
      end;
      hence a*Z c= Y by A24,A25;
    end;
    hence X '||' Y;
  end;
  now
    consider a9,b9,c9 such that
A49: a9 in Y and
    b9 in Y and
    c9 in Y and
    not LIN a9,b9,c9 by A2,Th34;
    assume
A50: X '||' Y;
    consider a,b,c such that
A51: a in X and
A52: b in X and
A53: c in X and
A54: not LIN a,b,c by A1,Th34;
    set A=Line(a,b),P=Line(a,c);
A55: b in A & c in P by AFF_1:15;
A56: a<>c by A54,AFF_1:7;
    then
A57: P c= X by A1,A51,A53,Th19;
    take A,P,M=a9*A,N=a9*P;
A58: a in A by AFF_1:15;
A59: a<>b by A54,AFF_1:7;
    then
A60: A is being_line by AFF_1:def 3;
A61: a in P by AFF_1:15;
A62: not A // P
    proof
      assume A // P;
      then A=P by A58,A61,AFF_1:45;
      hence contradiction by A54,A58,A55,A60,AFF_1:21;
    end;
A63: P is being_line by A56,AFF_1:def 3;
    A c= X by A1,A51,A52,A59,Th19;
    hence
    not A // P & A c= X & P c= X & M c= Y & N c= Y & (A // M or M // A) &
    (P // N or N // P) by A50,A60,A63,A49,A62,A57,Def3;
  end;
  hence thesis by A3;
end;

theorem
  A // M & M '||' X implies A '||' X
proof
  assume that
A1: A // M and
A2: M '||' X;
A3: M is being_line by A1,AFF_1:36;
A4: A is being_line by A1,AFF_1:36;
  now
    consider q,p such that
A5: q in A and
    p in A and
    q<>p by A4,AFF_1:19;
    let a,C;
    assume that
A6: a in X and
A7: C is being_line & C c= A;
A8: a*A = a*(q*M) by A1,A3,A5,Def3
      .= a*M by A3,Th31;
    C = A by A4,A7,Th33;
    hence a*C c= X by A2,A3,A6,A8;
  end;
  hence thesis;
end;

theorem Th57:
  X is being_plane implies X '||' X
by Th28;

theorem Th58:
  X is being_plane & Y is being_plane & X '||' Y implies Y '||' X
proof
  assume that
A1: X is being_plane & Y is being_plane and
A2: X '||' Y;
  consider A,P,M,N such that
A3: not A // P and
A4: A c= X & P c= X & M c= Y & N c= Y and
A5: A // M or M // A and
A6: P // N or N // P by A1,A2,Th55;
  not M // N
  proof
    assume M // N;
    then A // N by A5,AFF_1:44;
    hence contradiction by A3,A6,AFF_1:44;
  end;
  hence thesis by A1,A4,A5,A6,Th55;
end;

theorem Th59:
  X is being_plane implies X <> {}
proof
  assume X is being_plane;
  then ex a,b,c st a in X & b in X & c in X & not LIN a,b,c by Th34;
  hence thesis;
end;

theorem Th60:
  X '||' Y & Y '||' Z & Y <> {} implies X '||' Z
proof
  assume that
A1: X '||' Y and
A2: Y '||' Z and
A3: Y <> {};
  set x = the Element of Y;
  reconsider p=x as Element of AS by A3,Lm1;
  now
    let a,A;
    assume that
A4: a in Z and
A5: A is being_line and
A6: A c= X;
    p*A c= Y & p*A is being_line by A1,A3,A5,A6,Th27;
    then a*(p*A) c= Z by A2,A4;
    hence a*A c= Z by A5,Th31;
  end;
  hence thesis;
end;

theorem Th61:
  X is being_plane & Y is being_plane & Z is being_plane & ( X
'||' Y & Y '||' Z or X '||' Y & Z '||' Y or Y '||' X & Y '||' Z or Y '||' X & Z
  '||' Y ) implies X '||' Z
proof
  assume that
A1: X is being_plane and
A2: Y is being_plane and
A3: Z is being_plane &( X '||' Y & Y '||' Z or X '||' Y & Z '||' Y or Y
  '||' X & Y '||' Z or Y '||' X & Z '||' Y);
  X '||' Y & Y '||' Z by A1,A2,A3,Th58;
  hence thesis by A2,Th59,Th60;
end;

Lm13: X is being_plane & Y is being_plane & X '||' Y & X<>Y implies not ex a
st a in X & a in Y
proof
  assume that
A1: X is being_plane and
A2: Y is being_plane and
A3: X '||' Y and
A4: X<>Y;
  assume not thesis;
  then consider a such that
A5: a in X and
A6: a in Y;
  consider b,c such that
A7: b in X and
A8: c in X and
A9: not LIN a,b,c by A1,Lm9;
  set M=Line(a,b),N=Line(a,c);
A10: a<>c by A9,AFF_1:7;
  then
A11: N c= X by A1,A5,A8,Th19;
A12: a<>b by A9,AFF_1:7;
  then
A13: M is being_line by AFF_1:def 3;
A14: M<>N
  proof
    assume M=N;
    then
A15: c in M by AFF_1:15;
    a in M & b in M by AFF_1:15;
    hence contradiction by A9,A13,A15,AFF_1:21;
  end;
A16: N is being_line by A10,AFF_1:def 3;
  then a in N & a*N c= Y by A3,A6,A11,AFF_1:15;
  then
A17: N c= Y by A16,Lm8;
A18: M c= X by A1,A5,A7,A12,Th19;
  then a in M & a*M c= Y by A3,A6,A13,AFF_1:15;
  then M c= Y by A13,Lm8;
  hence contradiction by A1,A2,A4,A13,A16,A18,A11,A17,A14,Th26;
end;

theorem
  X is being_plane & Y is being_plane & a in X & a in Y & X '||' Y
  implies X=Y by Lm13;

theorem Th63:
  X is being_plane & Y is being_plane & Z is being_plane & X '||'
Y & X<>Y & a in X /\ Z & b in X /\ Z & c in Y /\ Z & d in Y /\ Z implies a,b //
  c,d
proof
  assume that
A1: X is being_plane and
A2: Y is being_plane and
A3: Z is being_plane and
A4: X '||' Y and
A5: X<>Y and
A6: a in X /\ Z and
A7: b in X /\ Z and
A8: c in Y /\ Z and
A9: d in Y /\ Z;
A10: c in Z by A8,XBOOLE_0:def 4;
A11: a in X & a in Z by A6,XBOOLE_0:def 4;
  then
A12: Z<>Y by A1,A2,A4,A5,Lm13;
A13: c in Y by A8,XBOOLE_0:def 4;
  then
A14: Z<>X by A1,A2,A4,A5,A10,Lm13;
  set A = X /\ Z, C = Y /\ Z;
A15: b in X & b in Z by A7,XBOOLE_0:def 4;
A16: d in Y & d in Z by A9,XBOOLE_0:def 4;
  now
A17: C c= Y & C c= Z by XBOOLE_1:17;
    set K=c*A;
    assume that
A18: a<>b and
A19: c <>d;
A20: A is being_line by A1,A3,A11,A15,A14,A18,Th24;
    then
A21: A // K by Def3;
    A c= X by XBOOLE_1:17;
    then
A22: K c= Y by A4,A13,A20;
A23: K c= Z by A3,A10,A20,Th28,XBOOLE_1:17;
    C is being_line & K is being_line by A1,A2,A3,A11,A15,A13,A10,A16,A12,A14
,A18,A19,Th24,Th27;
    then K=C by A2,A3,A12,A17,A23,A22,Th26;
    hence thesis by A6,A7,A8,A9,A21,AFF_1:39;
  end;
  hence thesis by AFF_1:3;
end;

theorem
  X is being_plane & Y is being_plane & Z is being_plane & X '||' Y & a
  in X /\ Z & b in X /\ Z & c in Y /\ Z & d in Y /\ Z & X<>Y & a<>b & c <>d
  implies X/\Z // Y/\Z
proof
  assume that
A1: X is being_plane and
A2: Y is being_plane and
A3: Z is being_plane and
A4: X '||' Y and
A5: a in X /\ Z and
A6: b in X /\ Z and
A7: c in Y /\ Z and
A8: d in Y /\ Z and
A9: X<>Y and
A10: a<>b and
A11: c <>d;
A12: d in Y & d in Z by A8,XBOOLE_0:def 4;
  set A = X /\ Z, C = Y /\ Z;
A13: c in Y & c in Z by A7,XBOOLE_0:def 4;
A14: a in X & a in Z by A5,XBOOLE_0:def 4;
  then Z<>Y by A1,A2,A4,A9,Lm13;
  then
A15: C is being_line by A2,A3,A11,A13,A12,Th24;
A16: b in X & b in Z by A6,XBOOLE_0:def 4;
  Z<>X by A1,A2,A4,A9,A13,Lm13;
  then
A17: A is being_line by A1,A3,A10,A14,A16,Th24;
  a,b // c,d by A1,A2,A3,A4,A5,A6,A7,A8,A9,Th63;
  hence thesis by A5,A6,A7,A8,A10,A11,A17,A15,AFF_1:38;
end;

theorem Th65:
  for a,X st X is being_plane ex Y st a in Y & X '||' Y & Y is being_plane
proof
  let a,X;
  assume
A1: X is being_plane;
  then consider p,q,r such that
A2: p in X and
A3: q in X and
A4: r in X and
A5: not LIN p,q,r by Th34;
  set M=Line(p,q),N=Line(p,r);
A6: p<>r by A5,AFF_1:7;
  then
A7: N c= X by A1,A2,A4,Th19;
  set M9=a*M,N9=a*N;
A8: p<>q by A5,AFF_1:7;
  then
A9: M is being_line by AFF_1:def 3;
  then
A10: M9 is being_line by Th27;
A11: p in N & r in N by AFF_1:15;
A12: p in M by AFF_1:15;
A13: q in M by AFF_1:15;
A14: not M // N
  proof
    assume M // N;
    then r in M by A12,A11,AFF_1:45;
    hence contradiction by A5,A12,A13,A9,AFF_1:21;
  end;
A15: N is being_line by A6,AFF_1:def 3;
  then
A16: N // N9 by Def3;
A17: M // M9 by A9,Def3;
A18: a in M9 by A9,Def3;
  N9 is being_line & a in N9 by A15,Def3,Th27;
  then consider Y such that
A19: M9 c= Y and
A20: N9 c= Y and
A21: Y is being_plane by A10,A18,Th38;
  M c= X by A1,A2,A3,A8,Th19;
  then X '||' Y by A1,A17,A16,A19,A20,A21,A7,A14,Th55;
  hence thesis by A18,A19,A21;
end;

definition
  let AS,a,X such that
A1: X is being_plane;
  func a+X -> Subset of AS means
  :Def6:
  a in it & X '||' it & it is being_plane;
  existence by A1,Th65;
  uniqueness
  proof
    let Y1,Y2 be Subset of AS such that
A2: a in Y1 and
A3: X '||' Y1 and
A4: Y1 is being_plane and
A5: a in Y2 and
A6: X '||' Y2 and
A7: Y2 is being_plane;
    Y1 '||' Y2 by A1,A3,A4,A6,A7,Th61;
    hence thesis by A2,A4,A5,A7,Lm13;
  end;
end;

theorem
  X is being_plane implies ( a in X iff a+X = X )
proof
  assume
A1: X is being_plane;
  now
    assume
A2: a in X;
    X '||' X by A1,Th57;
    hence a+X = X by A1,A2,Def6;
  end;
  hence thesis by A1,Def6;
end;

theorem
  X is being_plane implies a+X = a+(q+X)
proof
  assume
A1: X is being_plane;
  then
A2: a in a+X by Def6;
A3: a+X is being_plane by A1,Def6;
A4: q+X is being_plane by A1,Def6;
  then
A5: q+X '||' a+(q+X) by Def6;
A6: a in a+(q+X) by A4,Def6;
A7: a+(q+X) is being_plane by A4,Def6;
  X '||' q+X & X '||' a+X by A1,Def6;
  then a+X '||' q+X by A1,A4,A3,Th61;
  then a+X '||' a+(q+X) by A4,A5,A3,A7,Th61;
  hence thesis by A2,A6,A3,A7,Lm13;
end;

theorem
  A is being_line & X is being_plane & A '||' X implies a*A c= a+X
proof
  assume that
A1: A is being_line and
A2: X is being_plane and
A3: A '||' X;
A4: X '||' a+X & a in a+ X by A2,Def6;
  consider N such that
A5: N c= X and
A6: A // N or N // A by A1,A2,A3,Th41;
  a*A = a*N & N is being_line by A6,Th32,AFF_1:36;
  hence thesis by A5,A4;
end;

theorem
  X is being_plane & Y is being_plane & X '||' Y implies a+X = a+Y
proof
  assume that
A1: X is being_plane and
A2: Y is being_plane and
A3: X '||' Y;
A4: a+X is being_plane by A1,Def6;
A5: a in a+X & a in a+Y by A1,A2,Def6;
A6: a+Y is being_plane by A2,Def6;
  X '||' a+X by A1,Def6;
  then
A7: a+X '||' Y by A1,A2,A3,A4,Th61;
  Y '||' a+Y by A2,Def6;
  then a+X '||' a+Y by A2,A4,A6,A7,Th61;
  hence thesis by A5,A4,A6,Lm13;
end;