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
|
Require Import Unicode.Utf8.
Module No1.
Import Unicode.Utf8.
(*We first give the axioms of Principia
for the propositional calculus in *1.*)
Axiom MP1_1 : ∀ P Q : Prop,
(P → Q) → P → Q. (*Modus ponens*)
(**1.11 ommitted: it is MP for propositions containing variables. Likewise, ommitted the well-formedness rules 1.7, 1.71, 1.72*)
Axiom Taut1_2 : ∀ P : Prop,
P ∨ P→ P. (*Tautology*)
Axiom Add1_3 : ∀ P Q : Prop,
Q → P ∨ Q. (*Addition*)
Axiom Perm1_4 : ∀ P Q : Prop,
P ∨ Q → Q ∨ P. (*Permutation*)
Axiom Assoc1_5 : ∀ P Q R : Prop,
P ∨ (Q ∨ R) → Q ∨ (P ∨ R).
Axiom Sum1_6: ∀ P Q R : Prop,
(Q → R) → (P ∨ Q → P ∨ R). (*These are all the propositional axioms of Principia Mathematica.*)
Axiom Impl1_01 : ∀ P Q : Prop,
(P → Q) = (~P ∨ Q). (*This is a definition in Principia: there → is a defined sign and ∨, ~ are primitive ones. So we will use this axiom to switch between disjunction and implication.*)
End No1.
Module No2.
Import No1.
(*We proceed to the deductions of of Principia.*)
Theorem Abs2_01 : ∀ P : Prop,
(P → ~P) → ~P.
Proof. intros P.
specialize Taut1_2 with (~P).
replace (~P ∨ ~P) with (P → ~P).
apply MP1_1.
apply Impl1_01.
Qed.
Theorem n2_02 : ∀ P Q : Prop,
Q → (P → Q).
Proof. intros P Q.
specialize Add1_3 with (~P) Q.
replace (~P ∨ Q) with (P → Q).
apply (MP1_1 Q (P → Q)).
apply Impl1_01.
Qed.
Theorem n2_03 : ∀ P Q : Prop,
(P → ~Q) → (Q → ~P).
Proof. intros P Q.
specialize Perm1_4 with (~P) (~Q).
replace (~P ∨ ~Q) with (P → ~Q).
replace (~Q ∨ ~P) with (Q → ~P).
apply (MP1_1 (P → ~Q) (Q → ~P)).
apply Impl1_01.
apply Impl1_01.
Qed.
Theorem Comm2_04 : ∀ P Q R : Prop,
(P → (Q → R)) → (Q → (P → R)).
Proof. intros P Q R.
specialize Assoc1_5 with (~P) (~Q) R.
replace (~Q ∨ R) with (Q → R).
replace (~P ∨ (Q → R)) with (P → (Q → R)).
replace (~P ∨ R) with (P → R).
replace (~Q ∨ (P → R)) with (Q → (P → R)).
apply (MP1_1 (P → Q → R) (Q → P → R)).
apply Impl1_01.
apply Impl1_01.
apply Impl1_01.
apply Impl1_01.
Qed.
Theorem Syll2_05 : ∀ P Q R : Prop,
(Q → R) → ((P → Q) → (P → R)).
Proof. intros P Q R.
specialize Sum1_6 with (~P) Q R.
replace (~P ∨ Q) with (P → Q).
replace (~P ∨ R) with (P → R).
apply (MP1_1 (Q → R) ((P → Q) → (P → R))).
apply Impl1_01.
apply Impl1_01.
Qed.
Theorem Syll2_06 : ∀ P Q R : Prop,
(P → Q) → ((Q → R) → (P → R)).
Proof. intros P Q R.
specialize Comm2_04 with (Q → R) (P → Q) (P → R).
intros Comm2_04.
specialize Syll2_05 with P Q R.
intros Syll2_05.
specialize MP1_1 with ((Q → R) → (P → Q) → P → R) ((P → Q) → ((Q → R) → (P → R))).
intros MP1_1.
apply MP1_1.
apply Comm2_04.
apply Syll2_05.
Qed.
Theorem n2_07 : ∀ P : Prop,
P → (P ∨ P).
Proof. intros P.
specialize Add1_3 with P P.
apply MP1_1.
Qed.
Theorem n2_08 : ∀ P : Prop,
P → P.
Proof. intros P.
specialize Syll2_05 with P (P ∨ P) P.
intros Syll2_05.
specialize Taut1_2 with P.
intros Taut1_2.
specialize MP1_1 with ((P ∨ P) → P) (P → P).
intros MP1_1.
apply Syll2_05.
apply Taut1_2.
apply n2_07.
Qed.
Theorem n2_1 : ∀ P : Prop,
(~P) ∨ P.
Proof. intros P.
specialize n2_08 with P.
replace (~P ∨ P) with (P → P).
apply MP1_1.
apply Impl1_01.
Qed.
Theorem n2_11 : ∀ P : Prop,
P ∨ ~P.
Proof. intros P.
specialize Perm1_4 with (~P) P.
intros Perm1_4.
specialize n2_1 with P.
intros Abs2_01.
apply Perm1_4.
apply n2_1.
Qed.
Theorem n2_12 : ∀ P : Prop,
P → ~~P.
Proof. intros P.
specialize n2_11 with (~P).
intros n2_11.
rewrite Impl1_01.
assumption.
Qed.
Theorem n2_13 : ∀ P : Prop,
P ∨ ~~~P.
Proof. intros P.
specialize Sum1_6 with P (~P) (~~~P).
intros Sum1_6.
specialize n2_12 with (~P).
intros n2_12.
apply Sum1_6.
apply n2_12.
apply n2_11.
Qed.
Theorem n2_14 : ∀ P : Prop,
~~P → P.
Proof. intros P.
specialize Perm1_4 with P (~~~P).
intros Perm1_4.
specialize n2_13 with P.
intros n2_13.
rewrite Impl1_01.
apply Perm1_4.
apply n2_13.
Qed.
Theorem Trans2_15 : ∀ P Q : Prop,
(~P → Q) → (~Q → P).
Proof. intros P Q.
specialize Syll2_05 with (~P) Q (~~Q).
intros Syll2_05a.
specialize n2_12 with Q.
intros n2_12.
specialize n2_03 with (~P) (~Q).
intros n2_03.
specialize Syll2_05 with (~Q) (~~P) P.
intros Syll2_05b.
specialize Syll2_05 with (~P → Q) (~P → ~~Q) (~Q → ~~P).
intros Syll2_05c.
specialize Syll2_05 with (~P → Q) (~Q → ~~P) (~Q → P).
intros Syll2_05d.
apply Syll2_05d.
apply Syll2_05b.
apply n2_14.
apply Syll2_05c.
apply n2_03.
apply Syll2_05a.
apply n2_12.
Qed.
Ltac Syll H1 H2 S :=
let S := fresh S in match goal with
| [ H1 : ?P → ?Q, H2 : ?Q → ?R |- _ ] =>
assert (S : P → R) by (intros p; apply (H2 (H1 p)))
end.
Ltac MP H1 H2 :=
match goal with
| [ H1 : ?P → ?Q, H2 : ?P |- _ ] => specialize (H1 H2)
end.
Theorem Trans2_16 : ∀ P Q : Prop,
(P → Q) → (~Q → ~P).
Proof. intros P Q.
specialize n2_12 with Q.
intros n2_12a.
specialize Syll2_05 with P Q (~~Q).
intros Syll2_05a.
specialize n2_03 with P (~Q).
intros n2_03a.
MP n2_12a Syll2_05a.
Syll Syll2_05a n2_03a S.
apply S.
Qed.
Theorem Trans2_17 : ∀ P Q : Prop,
(~Q → ~P) → (P → Q).
Proof. intros P Q.
specialize n2_03 with (~Q) P.
intros n2_03a.
specialize n2_14 with Q.
intros n2_14a.
specialize Syll2_05 with P (~~Q) Q.
intros Syll2_05a.
MP n2_14a Syll2_05a.
Syll n2_03a Syll2_05a S.
apply S.
Qed.
Theorem n2_18 : ∀ P : Prop,
(~P → P) → P.
Proof. intros P.
specialize n2_12 with P.
intro n2_12a.
specialize Syll2_05 with (~P) P (~~P).
intro Syll2_05a.
MP Syll2_05a n2_12.
specialize Abs2_01 with (~P).
intros Abs2_01a.
Syll Syll2_05a Abs2_01a Sa.
specialize n2_14 with P.
intros n2_14a.
Syll H n2_14a Sb.
apply Sb.
Qed.
Theorem n2_2 : ∀ P Q : Prop,
P → (P ∨ Q).
Proof. intros P Q.
specialize Add1_3 with Q P.
intros Add1_3a.
specialize Perm1_4 with Q P.
intros Perm1_4a.
Syll Add1_3a Perm1_4a S.
apply S.
Qed.
Theorem n2_21 : ∀ P Q : Prop,
~P → (P → Q).
Proof. intros P Q.
specialize n2_2 with (~P) Q.
intros n2_2a.
specialize Impl1_01 with P Q.
intros Impl1_01a.
replace (~P∨Q) with (P→Q) in n2_2a.
apply n2_2a.
Qed.
Theorem n2_24 : ∀ P Q : Prop,
P → (~P → Q).
Proof. intros P Q.
specialize n2_21 with P Q.
intros n2_21a.
specialize Comm2_04 with (~P) P Q.
intros Comm2_04a.
apply Comm2_04a.
apply n2_21a.
Qed.
Theorem n2_25 : ∀ P Q : Prop,
P ∨ ((P ∨ Q) → Q).
Proof. intros P Q.
specialize n2_1 with (P ∨ Q).
intros n2_1a.
specialize Assoc1_5 with (~(P∨Q)) P Q.
intros Assoc1_5a.
MP Assoc1_5a n2_1a.
replace (~(P∨Q)∨Q) with (P∨Q→Q) in Assoc1_5a.
apply Assoc1_5a.
apply Impl1_01.
Qed.
Theorem n2_26 : ∀ P Q : Prop,
~P ∨ ((P → Q) → Q).
Proof. intros P Q.
specialize n2_25 with (~P) Q.
intros n2_25a.
replace (~P∨Q) with (P→Q) in n2_25a.
apply n2_25a.
apply Impl1_01.
Qed.
Theorem n2_27 : ∀ P Q : Prop,
P → ((P → Q) → Q).
Proof. intros P Q.
specialize n2_26 with P Q.
intros n2_26a.
replace (~P∨((P→Q)→Q)) with (P→(P→Q)→Q) in n2_26a.
apply n2_26a.
apply Impl1_01.
Qed.
Theorem n2_3 : ∀ P Q R : Prop,
(P ∨ (Q ∨ R)) → (P ∨ (R ∨ Q)).
Proof. intros P Q R.
specialize Perm1_4 with Q R.
intros Perm1_4a.
specialize Sum1_6 with P (Q∨R) (R∨Q).
intros Sum1_6a.
MP Sum1_6a Perm1_4a.
apply Sum1_6a.
Qed.
Theorem n2_31 : ∀ P Q R : Prop,
(P ∨ (Q ∨ R)) → ((P ∨ Q) ∨ R).
Proof. intros P Q R.
specialize n2_3 with P Q R.
intros n2_3a.
specialize Assoc1_5 with P R Q.
intros Assoc1_5a.
specialize Perm1_4 with R (P∨Q).
intros Perm1_4a.
Syll Assoc1_5a Perm1_4a Sa.
Syll n2_3a Sa Sb.
apply Sb.
Qed.
Theorem n2_32 : ∀ P Q R : Prop,
((P ∨ Q) ∨ R) → (P ∨ (Q ∨ R)).
Proof. intros P Q R.
specialize Perm1_4 with (P∨Q) R.
intros Perm1_4a.
specialize Assoc1_5 with R P Q.
intros Assoc1_5a.
specialize n2_3 with P R Q.
intros n2_3a.
specialize Syll2_06 with ((P∨Q)∨R) (R∨P∨Q) (P∨R∨Q).
intros Syll2_06a.
MP Syll2_06a Perm1_4a.
MP Syll2_06a Assoc1_5a.
specialize Syll2_06 with ((P∨Q)∨R) (P∨R∨Q) (P∨Q∨R).
intros Syll2_06b.
MP Syll2_06b Syll2_06a.
MP Syll2_06b n2_3a.
apply Syll2_06b.
Qed.
Axiom n2_33 : ∀ P Q R : Prop,
(P∨Q∨R)=((P∨Q)∨R). (*This definition makes the default left association. The default in Coq is right association, so this will need to be applied to underwrite some inferences.*)
Theorem n2_36 : ∀ P Q R : Prop,
(Q → R) → ((P ∨ Q) → (R ∨ P)).
Proof. intros P Q R.
specialize Perm1_4 with P R.
intros Perm1_4a.
specialize Syll2_05 with (P∨Q) (P∨R) (R∨P).
intros Syll2_05a.
MP Syll2_05a Perm1_4a.
specialize Sum1_6 with P Q R.
intros Sum1_6a.
Syll Sum1_6a Syll2_05a S.
apply S.
Qed.
Theorem n2_37 : ∀ P Q R : Prop,
(Q → R) → ((Q ∨ P) → (P ∨ R)).
Proof. intros P Q R.
specialize Perm1_4 with Q P.
intros Perm1_4a.
specialize Syll2_06 with (Q∨P) (P∨Q) (P∨R).
intros Syll2_06a.
MP Syll2_05a Perm1_4a.
specialize Sum1_6 with P Q R.
intros Sum1_6a.
Syll Sum1_6a Syll2_05a S.
apply S.
Qed.
Theorem n2_38 : ∀ P Q R : Prop,
(Q → R) → ((Q ∨ P) → (R ∨ P)).
Proof. intros P Q R.
specialize Perm1_4 with P R.
intros Perm1_4a.
specialize Syll2_05 with (Q∨P) (P∨R) (R∨P).
intros Syll2_05a.
MP Syll2_05a Perm1_4a.
specialize Perm1_4 with Q P.
intros Perm1_4b.
specialize Syll2_06 with (Q∨P) (P∨Q) (P∨R).
intros Syll2_06a.
MP Syll2_06a Perm1_4b.
Syll Syll2_06a Syll2_05a H.
specialize Sum1_6 with P Q R.
intros Sum1_6a.
Syll Sum1_6a H S.
apply S.
Qed.
Theorem n2_4 : ∀ P Q : Prop,
(P ∨ (P ∨ Q)) → (P ∨ Q).
Proof. intros P Q.
specialize n2_31 with P P Q.
intros n2_31a.
specialize Taut1_2 with P.
intros Taut1_2a.
specialize n2_38 with Q (P∨P) P.
intros n2_38a.
MP n2_38a Taut1_2a.
Syll n2_31a n2_38a S.
apply S.
Qed.
Theorem n2_41 : ∀ P Q : Prop,
(Q ∨ (P ∨ Q)) → (P ∨ Q).
Proof. intros P Q.
specialize Assoc1_5 with Q P Q.
intros Assoc1_5a.
specialize Taut1_2 with Q.
intros Taut1_2a.
specialize Sum1_6 with P (Q∨Q) Q.
intros Sum1_6a.
MP Sum1_6a Taut1_2a.
Syll Assoc1_5a Sum1_6a S.
apply S.
Qed.
Theorem n2_42 : ∀ P Q : Prop,
(~P ∨ (P → Q)) → (P → Q).
Proof. intros P Q.
specialize n2_4 with (~P) Q.
intros n2_4a.
replace (~P∨Q) with (P→Q) in n2_4a.
apply n2_4a. apply Impl1_01.
Qed.
Theorem n2_43 : ∀ P Q : Prop,
(P → (P → Q)) → (P → Q).
Proof. intros P Q.
specialize n2_42 with P Q.
intros n2_42a.
replace (~P ∨ (P→Q)) with (P→(P→Q)) in n2_42a.
apply n2_42a.
apply Impl1_01.
Qed.
Theorem n2_45 : ∀ P Q : Prop,
~(P ∨ Q) → ~P.
Proof. intros P Q.
specialize n2_2 with P Q.
intros n2_2a.
specialize Trans2_16 with P (P∨Q).
intros Trans2_16a.
MP n2_2 Trans2_16a.
apply Trans2_16a.
Qed.
Theorem n2_46 : ∀ P Q : Prop,
~(P ∨ Q) → ~Q.
Proof. intros P Q.
specialize Add1_3 with P Q.
intros Add1_3a.
specialize Trans2_16 with Q (P∨Q).
intros Trans2_16a.
MP Add1_3a Trans2_16a.
apply Trans2_16a.
Qed.
Theorem n2_47 : ∀ P Q : Prop,
~(P ∨ Q) → (~P ∨ Q).
Proof. intros P Q.
specialize n2_45 with P Q.
intros n2_45a.
specialize n2_2 with (~P) Q.
intros n2_2a.
Syll n2_45a n2_2a S.
apply S.
Qed.
Theorem n2_48 : ∀ P Q : Prop,
~(P ∨ Q) → (P ∨ ~Q).
Proof. intros P Q.
specialize n2_46 with P Q.
intros n2_46a.
specialize Add1_3 with P (~Q).
intros Add1_3a.
Syll n2_46a Add1_3a S.
apply S.
Qed.
Theorem n2_49 : ∀ P Q : Prop,
~(P ∨ Q) → (~P ∨ ~Q).
Proof. intros P Q.
specialize n2_45 with P Q.
intros n2_45a.
specialize n2_2 with (~P) (~Q).
intros n2_2a.
Syll n2_45a n2_2a S.
apply S.
Qed.
Theorem n2_5 : ∀ P Q : Prop,
~(P → Q) → (~P → Q).
Proof. intros P Q.
specialize n2_47 with (~P) Q.
intros n2_47a.
replace (~P∨Q) with (P→Q) in n2_47a.
replace (~~P∨Q) with (~P→Q) in n2_47a.
apply n2_47a.
apply Impl1_01.
apply Impl1_01.
Qed.
Theorem n2_51 : ∀ P Q : Prop,
~(P → Q) → (P → ~Q).
Proof. intros P Q.
specialize n2_48 with (~P) Q.
intros n2_48a.
replace (~P∨Q) with (P→Q) in n2_48a.
replace (~P∨~Q) with (P→~Q) in n2_48a.
apply n2_48a.
apply Impl1_01.
apply Impl1_01.
Qed.
Theorem n2_52 : ∀ P Q : Prop,
~(P → Q) → (~P → ~Q).
Proof. intros P Q.
specialize n2_49 with (~P) Q.
intros n2_49a.
replace (~P∨Q) with (P→Q) in n2_49a.
replace (~~P∨~Q) with (~P→~Q) in n2_49a.
apply n2_49a.
apply Impl1_01.
apply Impl1_01.
Qed.
Theorem n2_521 : ∀ P Q : Prop,
~(P→Q)→(Q→P).
Proof. intros P Q.
specialize n2_52 with P Q.
intros n2_52a.
specialize Trans2_17 with Q P.
intros Trans2_17a.
Syll n2_52a Trans2_17a S.
apply S.
Qed.
Theorem n2_53 : ∀ P Q : Prop,
(P ∨ Q) → (~P → Q).
Proof. intros P Q.
specialize n2_12 with P.
intros n2_12a.
specialize n2_38 with Q P (~~P).
intros n2_38a.
MP n2_38a n2_12a.
replace (~~P∨Q) with (~P→Q) in n2_38a.
apply n2_38a.
apply Impl1_01.
Qed.
Theorem n2_54 : ∀ P Q : Prop,
(~P → Q) → (P ∨ Q).
Proof. intros P Q.
specialize n2_14 with P.
intros n2_14a.
specialize n2_38 with Q (~~P) P.
intros n2_38a.
MP n2_38a n2_12a.
replace (~~P∨Q) with (~P→Q) in n2_38a.
apply n2_38a.
apply Impl1_01.
Qed.
Theorem n2_55 : ∀ P Q : Prop,
~P → ((P ∨ Q) → Q).
Proof. intros P Q.
specialize n2_53 with P Q.
intros n2_53a.
specialize Comm2_04 with (P∨Q) (~P) Q.
intros Comm2_04a.
MP n2_53a Comm2_04a.
apply Comm2_04a.
Qed.
Theorem n2_56 : ∀ P Q : Prop,
~Q → ((P ∨ Q) → P).
Proof. intros P Q.
specialize n2_55 with Q P.
intros n2_55a.
specialize Perm1_4 with P Q.
intros Perm1_4a.
specialize Syll2_06 with (P∨Q) (Q∨P) P.
intros Syll2_06a.
MP Syll2_06a Perm1_4a.
Qed.
Theorem n2_6 : ∀ P Q : Prop,
(~P→Q) → ((P → Q) → Q).
Proof. intros P Q.
specialize n2_38 with Q (~P) Q.
intros n2_38a.
specialize Taut1_2 with Q.
intros Taut1_2a.
specialize Syll2_05 with (~P∨Q) (Q∨Q) Q.
intros Syll2_05a.
MP Syll2_05a Taut1_2a.
Syll n2_38a Syll2_05a S.
replace (~P∨Q) with (P→Q) in S.
apply S.
apply Impl1_01.
Qed.
Theorem n2_61 : ∀ P Q : Prop,
(P → Q) → ((~P → Q) → Q).
Proof. intros P Q.
specialize n2_6 with P Q.
intros n2_6a.
specialize Comm2_04 with (~P→Q) (P→Q) Q.
intros Comm2_04a.
MP Comm2_04a n2_6a.
apply Comm2_04a.
Qed.
Theorem n2_62 : ∀ P Q : Prop,
(P ∨ Q) → ((P → Q) → Q).
Proof. intros P Q.
specialize n2_53 with P Q.
intros n2_53a.
specialize n2_6 with P Q.
intros n2_6a.
Syll n2_53a n2_6a S.
apply S.
Qed.
Theorem n2_621 : ∀ P Q : Prop,
(P → Q) → ((P ∨ Q) → Q).
Proof. intros P Q.
specialize n2_62 with P Q.
intros n2_62a.
specialize Comm2_04 with (P ∨ Q) (P→Q) Q.
intros Comm2_04a.
MP Comm2_04a n2_62a.
apply Comm2_04a.
Qed.
Theorem n2_63 : ∀ P Q : Prop,
(P ∨ Q) → ((~P ∨ Q) → Q).
Proof. intros P Q.
specialize n2_62 with P Q.
intros n2_62a.
replace (~P∨Q) with (P→Q).
apply n2_62a.
apply Impl1_01.
Qed.
Theorem n2_64 : ∀ P Q : Prop,
(P ∨ Q) → ((P ∨ ~Q) → P).
Proof. intros P Q.
specialize n2_63 with Q P.
intros n2_63a.
specialize Perm1_4 with P Q.
intros Perm1_4a.
Syll n2_63a Perm1_4a Ha.
specialize Syll2_06 with (P∨~Q) (~Q∨P) P.
intros Syll2_06a.
specialize Perm1_4 with P (~Q).
intros Perm1_4b.
MP Syll2_05a Perm1_4b.
Syll Syll2_05a Ha S.
apply S.
Qed.
Theorem n2_65 : ∀ P Q : Prop,
(P → Q) → ((P → ~Q) → ~P).
Proof. intros P Q.
specialize n2_64 with (~P) Q.
intros n2_64a.
replace (~P∨Q) with (P→Q) in n2_64a.
replace (~P∨~Q) with (P→~Q) in n2_64a.
apply n2_64a.
apply Impl1_01.
apply Impl1_01.
Qed.
Theorem n2_67 : ∀ P Q : Prop,
((P ∨ Q) → Q) → (P → Q).
Proof. intros P Q.
specialize n2_54 with P Q.
intros n2_54a.
specialize Syll2_06 with (~P→Q) (P∨Q) Q.
intros Syll2_06a.
MP Syll2_06a n2_54a.
specialize n2_24 with P Q.
intros n2_24.
specialize Syll2_06 with P (~P→Q) Q.
intros Syll2_06b.
MP Syll2_06b n2_24a.
Syll Syll2_06b Syll2_06a S.
apply S.
Qed.
Theorem n2_68 : ∀ P Q : Prop,
((P → Q) → Q) → (P ∨ Q).
Proof. intros P Q.
specialize n2_67 with (~P) Q.
intros n2_67a.
replace (~P∨Q) with (P→Q) in n2_67a.
specialize n2_54 with P Q.
intros n2_54a.
Syll n2_67a n2_54a S.
apply S.
apply Impl1_01.
Qed.
Theorem n2_69 : ∀ P Q : Prop,
((P → Q) → Q) → ((Q → P) → P).
Proof. intros P Q.
specialize n2_68 with P Q.
intros n2_68a.
specialize Perm1_4 with P Q.
intros Perm1_4a.
Syll n2_68a Perm1_4a Sa.
specialize n2_62 with Q P.
intros n2_62a.
Syll Sa n2_62a Sb.
apply Sb.
Qed.
Theorem n2_73 : ∀ P Q R : Prop,
(P → Q) → (((P ∨ Q) ∨ R) → (Q ∨ R)).
Proof. intros P Q R.
specialize n2_621 with P Q.
intros n2_621a.
specialize n2_38 with R (P∨Q) Q.
intros n2_38a.
Syll n2_621a n2_38a S.
apply S.
Qed.
Theorem n2_74 : ∀ P Q R : Prop,
(Q → P) → ((P ∨ Q) ∨ R) → (P ∨ R).
Proof. intros P Q R.
specialize n2_73 with Q P R.
intros n2_73a.
specialize Assoc1_5 with P Q R.
intros Assoc1_5a.
specialize n2_31 with Q P R.
intros n2_31a. (*not cited explicitly!*)
Syll Assoc1_5a n2_31a Sa.
specialize n2_32 with P Q R.
intros n2_32a. (*not cited explicitly!*)
Syll n2_32a Sa Sb.
specialize Syll2_06 with ((P∨Q)∨R) ((Q∨P)∨R) (P∨R).
intros Syll2_06a.
MP Syll2_06a Sb.
Syll n2_73a Syll2_05a H.
apply H.
Qed.
Theorem n2_75 : ∀ P Q R : Prop,
(P ∨ Q) → ((P ∨ (Q → R)) → (P ∨ R)).
Proof. intros P Q R.
specialize n2_74 with P (~Q) R.
intros n2_74a.
specialize n2_53 with Q P.
intros n2_53a.
Syll n2_53a n2_74a Sa.
specialize n2_31 with P (~Q) R.
intros n2_31a.
specialize Syll2_06 with (P∨(~Q)∨R)((P∨(~Q))∨R) (P∨R).
intros Syll2_06a.
MP Syll2_06a n2_31a.
Syll Sa Syll2_06a Sb.
specialize Perm1_4 with P Q.
intros Perm1_4a. (*not cited!*)
Syll Perm1_4a Sb Sc.
replace (~Q∨R) with (Q→R) in Sc.
apply Sc.
apply Impl1_01.
Qed.
Theorem n2_76 : ∀ P Q R : Prop,
(P ∨ (Q → R)) → ((P ∨ Q) → (P ∨ R)).
Proof. intros P Q R.
specialize n2_75 with P Q R.
intros n2_75a.
specialize Comm2_04 with (P∨Q) (P∨(Q→R)) (P∨R).
intros Comm2_04a.
apply Comm2_04a.
apply n2_75a.
Qed.
Theorem n2_77 : ∀ P Q R : Prop,
(P → (Q → R)) → ((P → Q) → (P → R)).
Proof. intros P Q R.
specialize n2_76 with (~P) Q R.
intros n2_76a.
replace (~P∨(Q→R)) with (P→Q→R) in n2_76a.
replace (~P∨Q) with (P→Q) in n2_76a.
replace (~P∨R) with (P→R) in n2_76a.
apply n2_76a.
apply Impl1_01.
apply Impl1_01.
apply Impl1_01.
Qed.
Theorem n2_8 : ∀ Q R S : Prop,
(Q ∨ R) → ((~R ∨ S) → (Q ∨ S)).
Proof. intros Q R S.
specialize n2_53 with R Q.
intros n2_53a.
specialize Perm1_4 with Q R.
intros Perm1_4a.
Syll Perm1_4a n2_53a Ha.
specialize n2_38 with S (~R) Q.
intros n2_38a.
Syll H n2_38a Hb.
apply Hb.
Qed.
Theorem n2_81 : ∀ P Q R S : Prop,
(Q → (R → S)) → ((P ∨ Q) → ((P ∨ R) → (P ∨ S))).
Proof. intros P Q R S.
specialize Sum1_6 with P Q (R→S).
intros Sum1_6a.
specialize n2_76 with P R S.
intros n2_76a.
specialize Syll2_05 with (P∨Q) (P∨(R→S)) ((P∨R)→(P∨S)).
intros Syll2_05a.
MP Syll2_05a n2_76a.
Syll Sum1_6a Syll2_05a H.
apply H.
Qed.
Theorem n2_82 : ∀ P Q R S : Prop,
(P ∨ Q ∨ R)→((P ∨ ~R ∨ S)→(P ∨ Q ∨ S)).
Proof. intros P Q R S.
specialize n2_8 with Q R S.
intros n2_8a.
specialize n2_81 with P (Q∨R) (~R∨S) (Q∨S).
intros n2_81a.
MP n2_81a n2_8a.
apply n2_81a.
Qed.
Theorem n2_83 : ∀ P Q R S : Prop,
(P→(Q→R))→((P→(R→S))→(P→(Q→S))).
Proof. intros P Q R S.
specialize n2_82 with (~P) (~Q) R S.
intros n2_82a.
replace (~Q∨R) with (Q→R) in n2_82a.
replace (~P∨(Q→R)) with (P→Q→R) in n2_82a.
replace (~R∨S) with (R→S) in n2_82a.
replace (~P∨(R→S)) with (P→R→S) in n2_82a.
replace (~Q∨S) with (Q→S) in n2_82a.
replace (~Q∨S) with (Q→S) in n2_82a.
replace (~P∨(Q→S)) with (P→Q→S) in n2_82a.
apply n2_82a.
apply Impl1_01.
apply Impl1_01.
apply Impl1_01.
apply Impl1_01.
apply Impl1_01.
apply Impl1_01.
apply Impl1_01.
Qed.
Theorem n2_85 : ∀ P Q R : Prop,
((P ∨ Q) → (P ∨ R)) → (P ∨ (Q → R)).
Proof. intros P Q R.
specialize Add1_3 with P Q.
intros Add1_3a.
specialize Syll2_06 with Q (P∨Q) R.
intros Syll2_06a.
MP Syll2_06a Add1_3a.
specialize n2_55 with P R.
intros n2_55a.
specialize Syll2_05 with (P∨Q) (P∨R) R.
intros Syll2_05a.
Syll n2_55a Syll2_05a Ha.
specialize n2_83 with (~P) ((P∨Q)→(P∨R)) ((P∨Q)→R) (Q→R).
intros n2_83a.
MP n2_83a Ha.
specialize Comm2_04 with (~P) (P∨Q→P∨R) (Q→R).
intros Comm2_04a.
Syll Ha Comm2_04a Hb.
specialize n2_54 with P (Q→R).
intros n2_54a.
specialize n2_02 with (~P) ((P∨Q→R)→(Q→R)).
intros n2_02a. (*Not mentioned! Greg's suggestion per the BRS list in June 25, 2017.*)
MP Syll2_06a n2_02a.
MP Hb n2_02a.
Syll Hb n2_54a Hc.
apply Hc.
Qed.
Theorem n2_86 : ∀ P Q R : Prop,
((P → Q) → (P → R)) → (P → (Q → R)).
Proof. intros P Q R.
specialize n2_85 with (~P) Q R.
intros n2_85a.
replace (~P∨Q) with (P→Q) in n2_85a.
replace (~P∨R) with (P→R) in n2_85a.
replace (~P∨(Q→R)) with (P→Q→R) in n2_85a.
apply n2_85a.
apply Impl1_01.
apply Impl1_01.
apply Impl1_01.
Qed.
End No2.
Module No3.
Import No1.
Import No2.
Axiom Prod3_01 : ∀ P Q : Prop,
(P ∧ Q) = ~(~P ∨ ~Q).
Axiom Abb3_02 : ∀ P Q R : Prop,
(P→Q→R)=(P→Q)∧(Q→R).
Theorem Conj3_03 : ∀ P Q : Prop, P → Q → (P∧Q). (*3.03 is a derived rule permitting an inference from the theoremhood of P and that of Q to that of P and Q.*)
Proof. intros P Q.
specialize n2_11 with (~P∨~Q). intros n2_11a.
specialize n2_32 with (~P) (~Q) (~(~P ∨ ~Q)). intros n2_32a.
MP n2_32a n2_11a.
replace (~(~P∨~Q)) with (P∧Q) in n2_32a.
replace (~Q ∨ (P∧Q)) with (Q→(P∧Q)) in n2_32a.
replace (~P ∨ (Q → (P∧Q))) with (P→Q→(P∧Q)) in n2_32a.
apply n2_32a.
apply Impl1_01.
apply Impl1_01.
apply Prod3_01.
Qed.
Theorem n3_1 : ∀ P Q : Prop,
(P ∧ Q) → ~(~P ∨ ~Q).
Proof. intros P Q.
replace (~(~P∨~Q)) with (P∧Q).
specialize n2_08 with (P∧Q).
intros n2_08a.
apply n2_08a.
apply Prod3_01.
Qed.
Theorem n3_11 : ∀ P Q : Prop,
~(~P ∨ ~Q) → (P ∧ Q).
Proof. intros P Q.
replace (~(~P∨~Q)) with (P∧Q).
specialize n2_08 with (P∧Q).
intros n2_08a.
apply n2_08a.
apply Prod3_01.
Qed.
Theorem n3_12 : ∀ P Q : Prop,
(~P ∨ ~Q) ∨ (P ∧ Q).
Proof. intros P Q.
specialize n2_11 with (~P∨~Q).
intros n2_11a.
replace (~(~P∨~Q)) with (P∧Q) in n2_11a.
apply n2_11a.
apply Prod3_01.
Qed.
Theorem n3_13 : ∀ P Q : Prop,
~(P ∧ Q) → (~P ∨ ~Q).
Proof. intros P Q.
specialize n3_11 with P Q.
intros n3_11a.
specialize Trans2_15 with (~P∨~Q) (P∧Q).
intros Trans2_15a.
MP Trans2_16a n3_11a.
apply Trans2_15a.
Qed.
Theorem n3_14 : ∀ P Q : Prop,
(~P ∨ ~Q) → ~(P ∧ Q).
Proof. intros P Q.
specialize n3_1 with P Q.
intros n3_1a.
specialize Trans2_16 with (P∧Q) (~(~P∨~Q)).
intros Trans2_16a.
MP Trans2_16a n3_1a.
specialize n2_12 with (~P∨~Q).
intros n2_12a.
Syll n2_12a Trans2_16a S.
apply S.
Qed.
Theorem n3_2 : ∀ P Q : Prop,
P → Q → (P ∧ Q).
Proof. intros P Q.
specialize n3_12 with P Q.
intros n3_12a.
specialize n2_32 with (~P) (~Q) (P∧Q).
intros n2_32a.
MP n3_32a n3_12a.
replace (~Q ∨ P ∧ Q) with (Q→P∧Q) in n2_32a.
replace (~P ∨ (Q → P ∧ Q)) with (P→Q→P∧Q) in n2_32a.
apply n2_32a.
apply Impl1_01.
apply Impl1_01.
Qed.
Theorem n3_21 : ∀ P Q : Prop,
Q → P → (P ∧ Q).
Proof. intros P Q.
specialize n3_2 with P Q.
intros n3_2a.
specialize Comm2_04 with P Q (P∧Q).
intros Comm2_04a.
MP Comm2_04a n3_2a.
apply Comm2_04a.
Qed.
Theorem n3_22 : ∀ P Q : Prop,
(P ∧ Q) → (Q ∧ P).
Proof. intros P Q.
specialize n3_13 with Q P.
intros n3_13a.
specialize Perm1_4 with (~Q) (~P).
intros Perm1_4a.
Syll n3_13a Perm1_4a Ha.
specialize n3_14 with P Q.
intros n3_14a.
Syll Ha n3_14a Hb.
specialize Trans2_17 with (P∧Q) (Q ∧ P).
intros Trans2_17a.
MP Trans2_17a Hb.
apply Trans2_17a.
Qed.
Theorem n3_24 : ∀ P : Prop,
~(P ∧ ~P).
Proof. intros P.
specialize n2_11 with (~P).
intros n2_11a.
specialize n3_14 with P (~P).
intros n3_14a.
MP n3_14a n2_11a.
apply n3_14a.
Qed.
Theorem Simp3_26 : ∀ P Q : Prop,
(P ∧ Q) → P.
Proof. intros P Q.
specialize n2_02 with Q P.
intros n2_02a.
replace (P→(Q→P)) with (~P∨(Q→P)) in n2_02a.
replace (Q→P) with (~Q∨P) in n2_02a.
specialize n2_31 with (~P) (~Q) P.
intros n2_31a.
MP n2_31a n2_02a.
specialize n2_53 with (~P∨~Q) P.
intros n2_53a.
MP n2_53a n2_02a.
replace (~(~P∨~Q)) with (P∧Q) in n2_53a.
apply n2_53a.
apply Prod3_01.
replace (~Q∨P) with (Q→P).
reflexivity.
apply Impl1_01.
replace (~P∨(Q→P)) with (P→Q→P).
reflexivity.
apply Impl1_01.
Qed.
Theorem Simp3_27 : ∀ P Q : Prop,
(P ∧ Q) → Q.
Proof. intros P Q.
specialize n3_22 with P Q.
intros n3_22a.
specialize Simp3_26 with Q P.
intros Simp3_26a.
Syll n3_22a Simp3_26a S.
apply S.
Qed.
Theorem Exp3_3 : ∀ P Q R : Prop,
((P ∧ Q) → R) → (P → (Q → R)).
Proof. intros P Q R.
specialize Trans2_15 with (~P∨~Q) R.
intros Trans2_15a.
replace (~R→(~P∨~Q)) with (~R→(P→~Q)) in Trans2_15a.
specialize Comm2_04 with (~R) P (~Q).
intros Comm2_04a.
Syll Trans2_15a Comm2_04a Sa.
specialize Trans2_17 with Q R.
intros Trans2_17a.
specialize Syll2_05 with P (~R→~Q) (Q→R).
intros Syll2_05a.
MP Syll2_05a Trans2_17a.
Syll Sa Syll2_05a Sb.
replace (~(~P∨~Q)) with (P∧Q) in Sb.
apply Sb.
apply Prod3_01.
replace (~P∨~Q) with (P→~Q).
reflexivity.
apply Impl1_01.
Qed.
Theorem Imp3_31 : ∀ P Q R : Prop,
(P → (Q → R)) → (P ∧ Q) → R.
Proof. intros P Q R.
specialize n2_31 with (~P) (~Q) R.
intros n2_31a.
specialize n2_53 with (~P∨~Q) R.
intros n2_53a.
Syll n2_31a n2_53a S.
replace (~Q∨R) with (Q→R) in S.
replace (~P∨(Q→R)) with (P→Q→R) in S.
replace (~(~P∨~Q)) with (P∧Q) in S.
apply S.
apply Prod3_01.
apply Impl1_01.
apply Impl1_01.
Qed.
Theorem Syll3_33 : ∀ P Q R : Prop,
((P → Q) ∧ (Q → R)) → (P → R).
Proof. intros P Q R.
specialize Syll2_06 with P Q R.
intros Syll2_06a.
specialize Imp3_31 with (P→Q) (Q→R) (P→R).
intros Imp3_31a.
MP Imp3_31a Syll2_06a.
apply Imp3_31a.
Qed.
Theorem Syll3_34 : ∀ P Q R : Prop,
((Q → R) ∧ (P → Q)) → (P → R).
Proof. intros P Q R.
specialize Syll2_05 with P Q R.
intros Syll2_05a.
specialize Imp3_31 with (Q→R) (P→Q) (P→R).
intros Imp3_31a.
MP Imp3_31a Syll2_05a.
apply Imp3_31a.
Qed.
Theorem Ass3_35 : ∀ P Q : Prop,
(P ∧ (P → Q)) → Q.
Proof. intros P Q.
specialize n2_27 with P Q.
intros n2_27a.
specialize Imp3_31 with P (P→Q) Q.
intros Imp3_31a.
MP Imp3_31a n2_27a.
apply Imp3_31a.
Qed.
Theorem n3_37 : ∀ P Q R : Prop,
(P ∧ Q → R) → (P ∧ ~R → ~Q).
Proof. intros P Q R.
specialize Trans2_16 with Q R.
intros Trans2_16a.
specialize Syll2_05 with P (Q→R) (~R→~Q).
intros Syll2_05a.
MP Syll2_05a Trans2_16a.
specialize Exp3_3 with P Q R.
intros Exp3_3a.
Syll Exp3_3a Syll2_05a Sa.
specialize Imp3_31 with P (~R) (~Q).
intros Imp3_31a.
Syll Sa Imp3_31a Sb.
apply Sb.
Qed.
Theorem n3_4 : ∀ P Q : Prop,
(P ∧ Q) → P → Q.
Proof. intros P Q.
specialize n2_51 with P Q.
intros n2_51a.
specialize Trans2_15 with (P→Q) (P→~Q).
intros Trans2_15a.
MP Trans2_15a n2_51a.
replace (P→~Q) with (~P∨~Q) in Trans2_15a.
replace (~(~P∨~Q)) with (P∧Q) in Trans2_15a.
apply Trans2_15a.
apply Prod3_01.
replace (~P∨~Q) with (P→~Q).
reflexivity.
apply Impl1_01.
Qed.
Theorem n3_41 : ∀ P Q R : Prop,
(P → R) → (P ∧ Q → R).
Proof. intros P Q R.
specialize Simp3_26 with P Q.
intros Simp3_26a.
specialize Syll2_06 with (P∧Q) P R.
intros Syll2_06a.
MP Simp3_26a Syll2_06a.
apply Syll2_06a.
Qed.
Theorem n3_42 : ∀ P Q R : Prop,
(Q → R) → (P ∧ Q → R).
Proof. intros P Q R.
specialize Simp3_27 with P Q.
intros Simp3_27a.
specialize Syll2_06 with (P∧Q) Q R.
intros Syll2_06a.
MP Syll2_05a Simp3_27a.
apply Syll2_06a.
Qed.
Theorem Comp3_43 : ∀ P Q R : Prop,
(P → Q) ∧ (P → R) → (P → Q ∧ R).
Proof. intros P Q R.
specialize n3_2 with Q R.
intros n3_2a.
specialize Syll2_05 with P Q (R→Q∧R).
intros Syll2_05a.
MP Syll2_05a n3_2a.
specialize n2_77 with P R (Q∧R).
intros n2_77a.
Syll Syll2_05a n2_77a Sa.
specialize Imp3_31 with (P→Q) (P→R) (P→Q∧R).
intros Imp3_31a.
MP Sa Imp3_31a.
apply Imp3_31a.
Qed.
Theorem n3_44 : ∀ P Q R : Prop,
(Q → P) ∧ (R → P) → (Q ∨ R → P).
Proof. intros P Q R.
specialize Syll3_33 with (~Q) R P.
intros Syll3_33a.
specialize n2_6 with Q P.
intros n2_6a.
Syll Syll3_33a n2_6a Sa.
specialize Exp3_3 with (~Q→R) (R→P) ((Q→P)→P).
intros Exp3_3a.
MP Exp3_3a Sa.
specialize Comm2_04 with (R→P) (Q→P) P.
intros Comm2_04a.
Syll Exp3_3a Comm2_04a Sb.
specialize Imp3_31 with (Q→P) (R→P) P.
intros Imp3_31a.
Syll Sb Imp3_31a Sc.
specialize Comm2_04 with (~Q→R) ((Q→P)∧(R→P)) P.
intros Comm2_04b.
MP Comm2_04b Sc.
specialize n2_53 with Q R.
intros n2_53a.
specialize Syll2_06 with (Q∨R) (~Q→R) P.
intros Syll2_06a.
MP Syll2_06a n2_53a.
Syll Comm2_04b Syll2_06a Sd.
apply Sd.
Qed.
Theorem Fact3_45 : ∀ P Q R : Prop,
(P → Q) → (P ∧ R) → (Q ∧ R).
Proof. intros P Q R.
specialize Syll2_06 with P Q (~R).
intros Syll2_06a.
specialize Trans2_16 with (Q→~R) (P→~R).
intros Trans2_16a.
Syll Syll2_06a Trans2_16a S.
replace (P→~R) with (~P∨~R) in S.
replace (Q→~R) with (~Q∨~R) in S.
replace (~(~P∨~R)) with (P∧R) in S.
replace (~(~Q∨~R)) with (Q∧R) in S.
apply S.
apply Prod3_01.
apply Prod3_01.
replace (~Q∨~R) with (Q→~R).
reflexivity.
apply Impl1_01.
replace (~P∨~R) with (P→~R).
reflexivity.
apply Impl1_01.
Qed.
Theorem n3_47 : ∀ P Q R S : Prop,
((P → R) ∧ (Q → S)) → (P ∧ Q) → R ∧ S.
Proof. intros P Q R S.
specialize Simp3_26 with (P→R) (Q→S).
intros Simp3_26a.
specialize Fact3_45 with P R Q.
intros Fact3_45a.
Syll Simp3_26a Fact3_45a Sa.
specialize n3_22 with R Q.
intros n3_22a.
specialize Syll2_05 with (P∧Q) (R∧Q) (Q∧R).
intros Syll2_05a.
MP Syll2_05a n3_22a.
Syll Sa Syll2_05a Sb.
specialize Simp3_27 with (P→R) (Q→S).
intros Simp3_27a.
specialize Fact3_45 with Q S R.
intros Fact3_45b.
Syll Simp3_27a Fact3_45b Sc.
specialize n3_22 with S R.
intros n3_22b.
specialize Syll2_05 with (Q∧R) (S∧R) (R∧S).
intros Syll2_05b.
MP Syll2_05b n3_22b.
Syll Sc Syll2_05b Sd.
specialize n2_83 with ((P→R)∧(Q→S)) (P∧Q) (Q∧R) (R∧S).
intros n2_83a.
MP n2_83a Sb.
MP n2_83 Sd.
apply n2_83a.
Qed.
Theorem n3_48 : ∀ P Q R S : Prop,
((P → R) ∧ (Q → S)) → (P ∨ Q) → R ∨ S.
Proof. intros P Q R S.
specialize Simp3_26 with (P→R) (Q→S).
intros Simp3_26a.
specialize Sum1_6 with Q P R.
intros Sum1_6a.
Syll Simp3_26a Sum1_6a Sa.
specialize Perm1_4 with P Q.
intros Perm1_4a.
specialize Syll2_06 with (P∨Q) (Q∨P) (Q∨R).
intros Syll2_06a.
MP Syll2_06a Perm1_4a.
Syll Sa Syll2_06a Sb.
specialize Simp3_27 with (P→R) (Q→S).
intros Simp3_27a.
specialize Sum1_6 with R Q S.
intros Sum1_6b.
Syll Simp3_27a Sum1_6b Sc.
specialize Perm1_4 with Q R.
intros Perm1_4b.
specialize Syll2_06 with (Q∨R) (R∨Q) (R∨S).
intros Syll2_06b.
MP Syll2_06b Perm1_4b.
Syll Sc Syll2_06a Sd.
specialize n2_83 with ((P→R)∧(Q→S)) (P∨Q) (Q∨R) (R∨S).
intros n2_83a.
MP n2_83a Sb.
MP n2_83a Sd.
apply n2_83a.
Qed.
End No3.
|