-
Notifications
You must be signed in to change notification settings - Fork 16
/
Copy pathlogic.theory.txt
745 lines (658 loc) · 21.6 KB
/
logic.theory.txt
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
┏━━━━━━━━━━━┓
┃ LOGIC ┃
┗━━━━━━━━━━━┛
Metalanguage
- formal language describing another
Object language:
- formal language being described by a metalanguage
Judgement:
- statement in the metalanguage about a string of symbols in the object language
- examples:
- judging that a string of symbols is syntactically valid, i.e. is a formula
- assertion
- "x is blue" is a statement, but '"x is blue" is true' is a judgement
Assertion:
- judgement asserting that a statement is true
Metavariable:
- also named schematic|synctactical|metalinguistic variable
- variable in a metalanguage
Symbols:
- also named signs
- placeholder for semantics, without semantics of its own
Alphabet:
- also named vocabulary
- list of available unique symbols
String of symbols:
- 0-n symbols, position-significant, possibly duplicate
Syntax:
- symbols and rules to combine them, regardless of their semantics
Formal language:
- set of symbols + formal grammar
Formal grammar:
- set of formation rules
Formation rule:
- rule asserting which string of symbols are synctactically valid
Production rule:
- formation rule asserting that a string of symbols is equivalent to another
- usually left side is shorter, i.e. meant to be substituted by right side
- empty strings of symbols:
- allowed, i.e. representing non-significant symbols
- noted ϵ or λ
- non-terminal symbol:
- named also synctactic variable
- symbol which can always be on the left side of at least one production rule, regardless of symbols before|after
- opposite: terminal symbols
Context-free grammar:
- formal grammar using only production rules where left side is single non-terminal symbol
Formula:
- also named well-formed formula (WFF) or expression
- string of symbols that are syntactically valid
- opposite is nonsense
Semantics:
- meaning assigned to non-logical symbols
- truth is often the semantics, but not only possible one
Interpretation:
- assigning semantics to non-logical symbols
- can be partial:
- e.g. assigning free variables
- but must at least define a domain of discourse
Statement
- often noted:
- φ ψ ...
- p q ...
- notation for sequence of statements:
- Φ Ψ ...
- P Q ...
- Γ Σ ...
- also named closed formula, proposition or sentence
- formula true|false under a given interpretation
- requires no free variables
- example: ∃ x,y. x > y
Open formula:
- opposite of statement
- formula neither true|false under a given interpretation
- has at least one free variable
- example: x > y
Satisfiability:
- when formula true under at least one interpretation
- opposite: unsastisfiability
Semantic validity:
- also named tautology or logical|analytic|necessary truth
- when formula true under any intepretation
- notation:
- ⊤ (any statement)
- x ⊢ ⊤ (specific statement)
- ⊢ x (specific statement)
Semantic invalidity:
- also named contradiction
- when formula false under any intepretation
- notation:
- ⊥ (any statement)
- x ⊢ ⊥ (specific statement)
- x ⊢ (specific statement)
Logical symbols:
- logical symbol:
- also named logical constant or syncategorematic
- semantics depend on formal language
- same for any interpretation
- examples:
- true|false
- logical operators, quantifiers
- programming language keyword
- punctuation
- non-logical symbol:
- also named categorematic or descriptive
- semantics depend on domain of discourse
- differ per interpretation
- can be:
- object
- object property, e.g. relation|function|predicate
- examples:
- 3, e
- relations|functions|predicates on domain of discourse
- programming language value
Domain of discourse:
- set of all possible semantics of any non-logical symbol for a given formal language
- example: real numbers
Variability:
- symbol can be:
- variable: many possible semantics
- constant: only one semantic
- variable|constant is logical or non-logical depending on the semantic it holds
- examples:
- logical constant: true
- logical variable: x (boolean)
- non-logical constant: 3
- non-logical variable: x (number)
- relations|functions|predicates are often constant, but can be variable too (e.g. in high-order functions)
- bound variable with only one semantic left becomes constant
- i.e. assigning specific value
Bound variable:
- also named captured variables
- variable interpreted with constraints
- i.e. reduced number of possible semantics
- free variable:
- opposite
- variable interpreted but without constraints
- i.e. semantic can be any
- if non-logical: from domain of discourse
- variable-binding operator:
- binds a variable in a formula
- e.g. ∑ or quantifiers
Inference:
- producing statements from other statements while preserving semantics (e.g. truth)
Deduction:
- inference where premises are true
Induction:
- inference where premises truth is not certain
Inference rule:
- also named rule, rule of inference or transformation rule
- rule to infer a statement from other statements using synctactic consequence
Admissibility:
- when adding a specific inference rule to a formal system does not modify it
- i.e does not modify the semantics of any of its theorems
Derivability:
- when an inference rule is admissible, and can be derived from a formal system axioms
Premise:
- statement used to infer other statements
Axiom:
- tautological premise
- can be:
- logical: of a formal system
- non-logical:
- of a specific domain, e.g. mathematical domain
- also named postulate|assumption
- set of axioms often try to:
- be consistent with each other
- not be redundant with each other
Axiomatizing:
- finding minimal axioms that can infer several statements
Law of thoughts:
- axiom due to the nature of logic|reasoning itself
- classical ones: law of identity, law of non-contradiction, law of excluded middle
Theorem:
- also named derivation
- statement infered from a premise
Argument:
- several premises and infered theorems
Conclusion:
- last theorem of an argument
Deductive|inductive system:
- set of deductive|inductive inference rules
Formal system:
- notation:
- subscript letter next to any logical symbols
- e.g. ⊢fs (subscript)
- formal language + axioms + deductive|inductive system
Proof system:
- also called [proof] calculus
- formal system + axioms
- but deductive system is already axioms???
Logical form:
- also named logical schema (plural: schemata)
- removing ambiguity of natural language by formalizing it
- involves:
- declaring it using inference rules of a formal system
- using unambiguous words, not logical symbols
- using non-logical symbols for semantic contents
- argument form: logical form on an argument
Consequence:
- logical or material consequence
Antecedent:
- also named protasis
- first half of consequence
Consequent:
- also named succedent or apodosis
- second half of consequence
Unconditional assertion:
- like any consequence, but with empty antecedent
- means antecedent is assumed to be true
- example: ⊢ y
- i.e. like ⊤ ⊢ y
- opposite:
- conditional assertion
- when there is an antecedent
- example: x ⊢ y
- inverse:
- when no consequent
- means antecedent is assumed to be false
- example: x ⊢
- i.e. like x ⊢ ⊥
- neither consequent|antecedent:
- means contradiction
- example: ⊢
- i.e. like ⊤ ⊢ ⊥
Sequent:
- notation for consequence where comma means:
- ∧ in antecedent
- ∨ in consequent
- example: v, w, x ⊢ y, z
- intuitionistic:
- also named simple conditonal assertion
- when not using comma in consequent
- dual-intuitionistic: when not using comma in antecedent either
Logical consequence:
- also named entailment or logical implication
- inference rule where, in a specific formal system, if any statement x is true, then any statement y is true
- as opposed to material conditional which is, for a given statement x true, another statement y is true
- either synctactic consequence or semantic consequence
Synctatic consequence:
- also named derivability|provability
- notation:
- x ⊢ y
- named turnstile, tee sign, right tack, assertion sign|symbol
- sometimes written x |- y
- x ∴ y (therefore sign)
- x => y (to avoid)
- horizontal line, when x and y are statements
- pronounced x entails|proves|yields|satisfies y, or y is a theorem of x
- logical consequence based only on synctatic rules without interpretation
- examples: using logical connectors
Semantic consequence:
- notation:
- x ⊨ y (double turnstile sign)
- pronounced x models y
- logical consequence when, for any interpretation where statement x is true, statement y is true as well
- as opposed to synctactic consequence, relies on statements truth among interpretations
Material consequence:
- also named [material] conditional, material implication or hypothetical proposition
- notation:
- x -> y
- x => y (to avoid)
- x ⊃ y
- x ≤ y
- Cxy (polish notation)
- pronounced: materially implies, or if x then y
- means when x is true, y is true
- is for a given interpretation, as opposed to semantic consequence (which is for any interpreations)
Law of identity (LID):
- x ≡ x
- i.e. semantics of a given variable does not change
Law of non-contradiction (LNC):
- also named principle|law of [non-]contradiction
- x ∧ !x ⊢ ⊥
- i.e. cannot be true and false at same time
Principle of explosion:
- also named principle of Pseudo-Scotus, deductive explosion or ex falso quodlibet
- x, !x ⊢ y
- because x ⊢ x ∨ y and !x, x ∨ y ⊢ y
- if a system has a single contradiction, any statement becomes either true|false
- i.e. usual logical inference rules do not apply in a system with a single contradiction
Law of excluded middle (LEM):
- also named principle of excluded middle, law|principle of the excluded third, principium tertii exclusi or tertium non datur
- x ∨ !x ⊢ ⊤
- i.e. any statement must be either true or false
- different from two-valued logic: e.g. there could be a third truth value "unknown" standing for either true|false
Proof by contradiction:
- also named indirect proof, proof by assuming the opposite, apagogical arguments, appeal to extremes, or reductio|argumentum ad impossibile|absurdum
- (!x ⊢ ⊥ ) ⊢ (x ⊢ ⊤ )
- reason: law of non-contradiction + law of excluded middle
- i.e. proving truth by proving inverse is false
Proof by contrapositive:
- (!x -> !y) ⊢ (y -> x)
- reason: proof by contradiction
Negation introduction:
- (x -> y, x -> !y) ⊢ !x
- reason: law of non-contradiction + proof by contradiction
Modus ponens:
- also named MP
- inference rule: (⊢ x, x->y) ⊢ (⊢ y)
- i.e. deducing a consequent from an antecedent
Soundness:
- when every syntactically valid formula of a formal system is semantically valid
- i.e. if x ⊢ y then x ⊨ y
- i.e. every statement that can be expressed is true
Completeness:
- when every semantically valid formula of a formal system is syntactically valid
- i.e. if x ⊨ y then x ⊢ y
- i.e. every true statement can be expressed
Consistency:
- notation:
- Con P (where P are statements)
- synctatic: several formulas which do not infer synctatically invalid formulas, e.g. both x and !x
- semantic: several statements with at least one interpretation where they are all true
Inconsistency:
- notation:
- Inc P (where P are statements)
Truth:
- main theories:
- substantive:
- correspondence:
- when idea matches reality
- based an duality of idea vs realtity
- "matches": is an isomorphism
- often combined with realism (there exists a real world) as opposed to idealism (only ideas are real)
- coherence:
- when idea fits in a system of ideas
- in some theories, there is a single absolute system of ideas. In others, multiple
- in some theories, only consistency is needed. In others, the system must be comprehensive and complete too.
- pragmatic:
- when idea has been confirmed (or has not been rejected) by applying|experiencing it
- constructivist:
- when idea is useful
- is a social construct
- relative to a time and place
- minimalist:
- deflationary:
- redundant label attached to other properties
- semantic of a sentence is enough to describe it fully
- skeptic: there is no truth
- pluralist: there are several valid ways to define truth
Uncertainty:
- includes: vagueness, ignorance
Vagueness:
- when truth is gradual with no sharp boundaries
Ignorance:
- when truth value is unknown
Truth value:
- also named logical value
- semantical value related to truth
Degrees of truth:
- number of truth values in a formal system
- can be:
- two-valued logic: 2
- also named principle of bivalence or bivalent logic
- many-valued logic: >2
- also named multi|multiple|n-valued logic
- three-valued logic: 3
- truth values: true, false, unknown
- infinite-valued logic: Infinite
- opposite: finite-valued logic
- fuzzy logic: >=0 and <=1
- describes vagueness, not uncertainty (which is described by probability)
True:
- notation:
- true
- ⊤ (named|dual tee, verum or down tack)
- 1
- positive truth value in two-valued logic
False:
- also named untrue
- notation:
- false
- ⊥ (falsum or up tack)
- 0
- O (polish notation)
- opposite of true
Boolean domain:
- notation:
- B
- {⊤,⊥}
- set of truth values in two-valued logic
Truth function:
- function whose domain and codomain are truth values
Boolean function:
- also named switching function
- truth function in two-valued logic
Truth table:
- mathematical table showing all possible domains|codomains of a truuth function
Logical operators:
- also named sentential|logical operators|connective
- operator whose domain|codomain are logical symbols
Negation:
- also named "not"
- notation:
- ¬x
- !x
- ~x
- -x
- x'
- x with bar overline
- Nx (polish notation)
- f(x) = y, where y is true|false if x is false|true
Tautology|contradiction logical operators:
- Tautology:
- notation:
- ⊤
- Vxy (polish notation)
- f(x,y) = true
- Contradiction:
- notation:
- ⊥
- Oxy (polish notation)
- f(x,y) = false
- can also be considered nullary
Propositional logical operators:
- also named projection and negation
- positive:
- on x:
- notation:
- x
- Ixy (polish notation)
- f(x,y) = x
- on y:
- notation:
- y
- Fxy (polish notation)
- f(x,y) = y
- negative:
- on x:
- notation:
- ¬x
- Hxy (polish notation)
- f(x,y) = !x
- on y:
- notation:
- ¬y
- Gxy (polish notation)
- f(x,y) = !y
- can also be considered unary: identity|negation
Conjunction|disjunction-related logical operators:
- Conjunction:
- also named "and"
- notation:
- x ∧ y
- x & y
- x && y
- x • y
- x × y
- Kxy (polish notation)
- f(x,y) = z, where z is true if both x and y are true, false otherwise
- Inclusive disjunction:
- also named "or" or alternation
- notation:
- x ∨ y
- x | y
- x || y
- x + y
- Axy (polish notation)
- f(x,y) = z, where z is false is both x and y are false, true otherwise
- Exclusive disjunction:
- also named xor, eor, exor
- notation:
- x ⊻ y
- x v y (with dot above)
- x v y (with vertical bar in middle)
- x ⊕ y
- x ⇹ y
- x ≢ y
- x ^ y (programming)
- Jxy (polish notation)
- f(x,y) = z, where z is true is either x or y is true, but not both
- can also express non-equivalence, i.e. x and y have different truth values
- Alternative denial:
- also named nand, "not both" or sheffer stroke
- notation:
- x | y
- x ⊼ y
- x ↑ y
- Dxy (polish notation)
- means !(x∧y)
- Joint denial:
- also named nor, neither
- notation:
- x ↓ y (Peirce's arrow)
- x ⊽ y
- Xxy (polish notation)
- means !(x∨y)
- Logical equality:
- also named xnor or biconditional
- notation:
- x ∧ y (with underline)
- x <-> y
- x ≡ y
- Exy (polish notation)
- means !(x ⊻ y)
- can express "if and only if"
- abbreviated iff
- because x iff y is false if (x,y) is (true,false) or (false,true)
- can also express equivalence, i.e. both x and y have same truth value
Implication logical operators:
- Material implication logical operator:
- like material consequence but as a logical operator
- same notation, e.g. x -> y
- f(x,y) = z where z is false if (x,y) is (true,false)
- contrapositive: !y -> !x, which is equivalent
- Abjunction:
- also named material nonimplication
- notation:
- x ⇸ y
- x ⊅ y
- x > y
- Lxy (polish notation)
- like x -> !y
- Converse implication
- notation:
- x ← y
- x ⊂ y
- x ≥ y
- Bxy (polish notation)
- like y -> x
- Converse abjunction:
- also named converse nonimplication
- notation:
- x ⇷ y
- x ⊄ y
- x < y
- Mxy (polish notation)
- like y -> !x
Algebraic properties of boolean logical operators:
- commutativity:
- ⊤ ⊥ ∧ ∨ ↑ ↓ ≡ ≢
- adjoint function
- f(x,y) = g(y,x)
- ⊤ ⊥ ∧ ∨ ↑ ↓ ≡ ≢ <-> same
- p !p <-> q !q
- ← ↚ <-> → ↛
- negation:
- f(x,y) = !g(x,y)
- ⊤ <-> ⊥
- p q <-> !p !q
- ∧ ∨ ≢ <-> ↑ ↓ ≡
- ← → <-> ↚ ↛
- dual function:
- f(x,y) = !g(!x,!y)
- !f(x,y) = g(!x,!y)
- ⊤ <-> ⊥
- p q !p !q <-> same (self-dual)
- ∧ <-> ∨ (De Morgan's laws)
- ↑ ≢ <-> ↓ ≡
- algebraic division:
- all divisions are the same function
- left:
- f(x, f(x,y)) = y
- q !q ≡ ≢
- right:
- f(f(x,y), y) = x
- p !p ≡ ≢
- absorption:
- left:
- f(x, g(x,y)) = x and
g(x, f(x,y)) = x
- p <-> p q ∧ ∨
- ∨ <-> ∧
- right:
- f(g(x,y), y) = y and
g(f(x,y), y) = y
- q <-> p q ∧ ∨
- ∨ <-> ∧
- identity:
- left true:
- f(⊤,y) = y
- q ∧ ≡ →
- right true:
- f(x,⊤) = x
- p ∧ ≡ ←
- left false:
- f(⊥,y) = y
- q ∨ ≢ ↚
- right false:
- f(x,⊥) = x
- p ∨ ≢ ↛
- truth|falsity-preserving:
- truth:
- both:
- f(⊤,⊤) = ⊤
- ⊤ p q ∧ ∨ ≡ ← →
- left-any:
- f(⊤,y) = ⊤
- ⊤ p ∨ ←
- right-any:
- f(x,⊤) = ⊤
- ⊤ q ∨ →
- either:
- left-any or right-any
- ⊤ ∨
- falsity:
- both:
- f(⊥,⊥) = ⊥
- ⊥ p q ∧ ∨ ≢ ↚ ↛
- left-any:
- f(⊥,y) = ⊥
- ⊥ p ∧ ↛
- right-any:
- f(x,⊥) = ⊥
- ⊥ q ∧ ↚
- either:
- left-any or right-any
- ⊥ ∧
- monotonic:
- always weakly
- increasing:
- like truth-preserving on either side
- ⊤ ∨
- decreasing:
- like falsity-preserving on either side
- ⊥ ∧
- idempotence:
- left:
- f(x,y) = f(x, f(x,y))
- ⊤ ⊥ p q !q ∧ ∨ → ↚
- right:
- f(x,y) = f(f(x,y), y)
- ⊤ ⊥ p q !p ∧ ∨ ← ↛
- affinity:
- preserving:
- f(x,y) = f(!x,y) = f(x,!y)
- ⊤ ⊥
- inverting:
- !f(x,y) = f(!x,y) = f(x,!y)
- ≡ ≢
Functional completeness:
- also named [expressively] adequate
- minimal set of boolean operators to define the other ones
- possible ones:
- ↓ ↑
- x ↓ x ⊢ ¬x
- !(x ↓ y) ⊢ x ∨ y
- ∧|∨ !
- !(!x ∧ !y) ⊢ x ∨ y
- ∧|∨ (≡ ≢ )|(≡ ⊥ )|(≢ ⊤ )
- ←|→ ↚ |↛
- ←|→ !|≢|⊥
- ↚|↛ !|≡|⊤
Quantifier:
- operator asserting truth of a formula for a collection of variables
- variable-binding operator since it asserts possible semantics of variables
- universal quantifier:
- notation:
- ∀ VAR[,...]. FORMULA
- Π VAR[,...]. FORMULA (polish notation)
- means FORMULA is true for all combinations of VAR,...
- existential quantifier:
- notation:
- ∃ VAR[,...]. FORMULA
- ∑ VAR[,...]. FORMULA (polish notation)
- means FORMULA is true for at least one combination of VAR,...
Paraconsistent:
- formal systems without law of non-contradiction