← ONTO GitLab

Leggi logiche: derivazione computazionale

Tre semantiche a confronto: BOOL (logica booleana), LO (logica ontologica di riferimento, repository logica-ontologica) e ONTO (semantica implementata in src/core/tv.rs). Ogni legge è valutata su tutte le assegnazioni: 2ⁿ in BOOL, 3ⁿ in LO e ONTO.

Classi: tautologia (sempre V), contraddizione (sempre F), mai vera (solo F/N), mai falsa (solo V/N), contingente. Tra parentesi la distribuzione dei risultati V/F/N. La colonna ONTO è calcolata sulle tavole di tv.rs e verificata eseguendo ogni istanza con il binario onto.

La colonna ≡ ep. (equivalenza epistemica) dice se i due membri di un'equivalenza hanno la stessa tavola di verità, indipendentemente dal valore della formula con ↔.

Verifiche incrociate

  • ✓ le 6 tavole LO coincidono con quelle calcolate da logica-ontologica/main.py.
  • ✓ 1378 istanze LO ricalcolate con Processing di main.py: 0 discrepanze.
  • ✓ 1378 istanze (¬, ∧, ∨, ⊕, →, ↔) eseguite dal binario onto run: 0 discrepanze col modello ONTO.

Tavole di verità usate

LO

¬

A ¬A
V F
F N
N F

∧

A ∧ B V F N
V V F F
F F F N
N F N F

∨

A ∨ B V F N
V V V V
F V F F
N V F N

⊕

A ⊕ B V F N
V F F F
F F N F
N F F N

→

A → B V F N
V V F F
F V V V
N V V V

↔

A ↔ B V F N
V V F N
F F F N
N N N N

ONTO

¬

A ¬A
V F
F N
N F

∧

A ∧ B V F N
V V F F
F F F N
N F N F

∨

A ∨ B V F N
V V V V
F V F F
N V F N

⊕

A ⊕ B V F N
V F F F
F F N F
N F F N

→

A → B V F N
V V F F
F V V V
N V V V

↔

A ↔ B V F N
V V F N
F F F N
N N N N

BOOL

¬

A ¬A
V F
F V

∧

A ∧ B V F
V V F
F F F

∨

A ∨ B V F
V V V
F V F

⊕

A ⊕ B V F
V F V
F V F

→

A → B V F
V V F
F V V

↔

A ↔ B V F
V V F
F F V

Quadro sinottico

Principi

Legge Formula BOOL LO ONTO ≡ ep. BOOL/LO/ONTO
Identità (forma implicativa) A→A tautologia tautologia (3V/0F/0N) tautologia (3V/0F/0N) —/—/—
Identità (forma bicondizionale) A↔A tautologia contingente (1V/1F/1N) contingente (1V/1F/1N) —/—/—
Non contraddizione ¬(A∧¬A) tautologia mai vera (0V/2F/1N) mai vera (0V/2F/1N) —/—/—
Terzo escluso A∨¬A tautologia contingente (1V/2F/0N) contingente (1V/2F/0N) —/—/—
Ex N quodlibet N→A non esprimibile tautologia (3V/0F/0N) tautologia (3V/0F/0N) —/—/—
Ex falso quodlibet F→A tautologia tautologia (3V/0F/0N) tautologia (3V/0F/0N) —/—/—
Verum ex quodlibet A→V tautologia tautologia (3V/0F/0N) tautologia (3V/0F/0N) —/—/—

Negazione

Legge Formula BOOL LO ONTO ≡ ep. BOOL/LO/ONTO
Doppia negazione ¬¬A↔A tautologia mai vera (0V/1F/2N) mai vera (0V/1F/2N) sì/no/no
Eliminazione della doppia negazione ¬¬A→A tautologia tautologia (3V/0F/0N) tautologia (3V/0F/0N) —/—/—
Introduzione della doppia negazione A→¬¬A tautologia contingente (2V/1F/0N) contingente (2V/1F/0N) —/—/—
Tripla negazione ¬¬¬A↔¬A tautologia mai vera (0V/2F/1N) mai vera (0V/2F/1N) sì/sì/sì
Assorbimento della doppia negazione in N ¬¬A↔¬¬¬¬A tautologia mai vera (0V/1F/2N) mai vera (0V/1F/2N) sì/sì/sì

Algebra

Legge Formula BOOL LO ONTO ≡ ep. BOOL/LO/ONTO
Idempotenza di ∧ (A∧A)↔A tautologia contingente (1V/1F/1N) contingente (1V/1F/1N) sì/no/no
Idempotenza di ∨ (A∨A)↔A tautologia contingente (1V/1F/1N) contingente (1V/1F/1N) sì/sì/sì
Commutatività di ∧ (A∧B)↔(B∧A) tautologia contingente (1V/6F/2N) contingente (1V/6F/2N) sì/sì/sì
Commutatività di ∨ (A∨B)↔(B∨A) tautologia contingente (5V/3F/1N) contingente (5V/3F/1N) sì/sì/sì
Commutatività di ⊕ (A⊕B)↔(B⊕A) tautologia mai vera (0V/7F/2N) mai vera (0V/7F/2N) sì/sì/sì
Commutatività di ↔ (A↔B)↔(B↔A) tautologia contingente (1V/3F/5N) contingente (1V/3F/5N) sì/sì/sì
Associatività di ∧ (A∧(B∧C))↔((A∧B)∧C) tautologia contingente (1V/15F/11N) contingente (1V/15F/11N) sì/no/no
Associatività di ∨ (A∨(B∨C))↔((A∨B)∨C) tautologia contingente (19V/7F/1N) contingente (19V/7F/1N) sì/sì/sì
Associatività di ⊕ (A⊕(B⊕C))↔((A⊕B)⊕C) tautologia mai vera (0V/14F/13N) mai vera (0V/14F/13N) sì/no/no
Distributività di ∧ su ∨ (A∧(B∨C))↔((A∧B)∨(A∧C)) tautologia contingente (5V/18F/4N) contingente (5V/18F/4N) sì/no/no
Distributività di ∨ su ∧ (A∨(B∧C))↔((A∨B)∧(A∨C)) tautologia contingente (11V/14F/2N) contingente (11V/14F/2N) sì/sì/sì
Assorbimento ∧/∨ (A∧(A∨B))↔A tautologia contingente (3V/3F/3N) contingente (3V/3F/3N) sì/no/no
Assorbimento ∨/∧ (A∨(A∧B))↔A tautologia contingente (3V/3F/3N) contingente (3V/3F/3N) sì/no/no
Elemento neutro di ∧ (A∧V)↔A tautologia contingente (1V/1F/1N) contingente (1V/1F/1N) sì/no/no
Elemento neutro di ∨ (A∨F)↔A tautologia contingente (1V/1F/1N) contingente (1V/1F/1N) sì/no/no
Elemento assorbente di ∧ (A∧F)↔F tautologia mai vera (0V/2F/1N) mai vera (0V/2F/1N) sì/no/no
Elemento assorbente di ∨ (A∨V)↔V tautologia tautologia (3V/0F/0N) tautologia (3V/0F/0N) sì/sì/sì
Complemento di ∧ (A∧¬A)↔F tautologia mai vera (0V/1F/2N) mai vera (0V/1F/2N) sì/no/no
Complemento di ∨ (A∨¬A)↔V tautologia contingente (1V/2F/0N) contingente (1V/2F/0N) sì/no/no

De Morgan

Legge Formula BOOL LO ONTO ≡ ep. BOOL/LO/ONTO
De Morgan: ¬(A∧B) ≡ ¬A∨¬B ¬(A∧B)↔(¬A∨¬B) tautologia mai vera (0V/3F/6N) mai vera (0V/3F/6N) sì/no/no
De Morgan: ¬(A∨B) ≡ ¬A∧¬B ¬(A∨B)↔(¬A∧¬B) tautologia mai vera (0V/4F/5N) mai vera (0V/4F/5N) sì/no/no
De Morgan: A∧B ≡ ¬(¬A∨¬B) (A∧B)↔¬(¬A∨¬B) tautologia mai vera (0V/1F/8N) mai vera (0V/1F/8N) sì/no/no
De Morgan: A∨B ≡ ¬(¬A∧¬B) (A∨B)↔¬(¬A∧¬B) tautologia mai vera (0V/4F/5N) mai vera (0V/4F/5N) sì/no/no

Definibilità

Legge Formula BOOL LO ONTO ≡ ep. BOOL/LO/ONTO
Implicazione materiale (A→B)↔(¬A∨B) tautologia contingente (3V/5F/1N) contingente (3V/5F/1N) sì/no/no
Implicazione come ¬(A∧¬B) (A→B)↔¬(A∧¬B) tautologia mai vera (0V/3F/6N) mai vera (0V/3F/6N) sì/no/no
Coimplicazione come doppia implicazione (A↔B)↔((A→B)∧(B→A)) tautologia contingente (1V/3F/5N) contingente (1V/3F/5N) sì/no/no
XOR come (A∧¬B)∨(¬A∧B) (A⊕B)↔((A∧¬B)∨(¬A∧B)) tautologia mai vera (0V/7F/2N) mai vera (0V/7F/2N) sì/sì/sì
XOR come ¬(A↔B) (A⊕B)↔¬(A↔B) tautologia mai vera (0V/5F/4N) mai vera (0V/5F/4N) sì/no/no

Inferenza

Legge Formula BOOL LO ONTO ≡ ep. BOOL/LO/ONTO
Modus ponens (A∧(A→B))→B tautologia tautologia (9V/0F/0N) tautologia (9V/0F/0N) —/—/—
Modus tollens (¬B∧(A→B))→¬A tautologia tautologia (9V/0F/0N) tautologia (9V/0F/0N) —/—/—
Sillogismo ipotetico ((A→B)∧(B→C))→(A→C) tautologia tautologia (27V/0F/0N) tautologia (27V/0F/0N) —/—/—
Sillogismo disgiuntivo ((A∨B)∧¬A)→B tautologia tautologia (9V/0F/0N) tautologia (9V/0F/0N) —/—/—
Dilemma costruttivo (((A→C)∧(B→C))∧(A∨B))→C tautologia tautologia (27V/0F/0N) tautologia (27V/0F/0N) —/—/—
Semplificazione (A∧B)→A tautologia tautologia (9V/0F/0N) tautologia (9V/0F/0N) —/—/—
Addizione A→(A∨B) tautologia tautologia (9V/0F/0N) tautologia (9V/0F/0N) —/—/—
Congiunzione A→(B→(A∧B)) tautologia tautologia (9V/0F/0N) tautologia (9V/0F/0N) —/—/—
Riduzione all'assurdo ((A→B)∧(A→¬B))→¬A tautologia contingente (3V/6F/0N) contingente (3V/6F/0N) —/—/—
Consequentia mirabilis (¬A→A)→A tautologia contingente (1V/2F/0N) contingente (1V/2F/0N) —/—/—
Legge di Peirce ((A→B)→A)→A tautologia tautologia (9V/0F/0N) tautologia (9V/0F/0N) —/—/—
Prima legge di pseudo Scoto (A∧¬A)→B tautologia tautologia (9V/0F/0N) tautologia (9V/0F/0N) —/—/—
Seconda legge di pseudo Scoto ¬A→(A→B) tautologia tautologia (9V/0F/0N) tautologia (9V/0F/0N) —/—/—

Assiomi

Legge Formula BOOL LO ONTO ≡ ep. BOOL/LO/ONTO
Assioma K (a fortiori) A→(B→A) tautologia tautologia (9V/0F/0N) tautologia (9V/0F/0N) —/—/—
Assioma S (Frege) (A→(B→C))→((A→B)→(A→C)) tautologia tautologia (27V/0F/0N) tautologia (27V/0F/0N) —/—/—
Assioma di contrapposizione (Łukasiewicz) (¬A→¬B)→(B→A) tautologia contingente (7V/2F/0N) contingente (7V/2F/0N) —/—/—

Implicazione

Legge Formula BOOL LO ONTO ≡ ep. BOOL/LO/ONTO
Contrapposizione (A→B)↔(¬B→¬A) tautologia contingente (7V/2F/0N) contingente (7V/2F/0N) sì/no/no
Esportazione ((A∧B)→C)↔(A→(B→C)) tautologia contingente (25V/2F/0N) contingente (25V/2F/0N) sì/sì/sì
Distribuzione di → su ∧ (A→(B∧C))↔((A→B)∧(A→C)) tautologia contingente (19V/8F/0N) contingente (19V/8F/0N) sì/sì/sì
Prove per casi ((A∨B)→C)↔((A→C)∧(B→C)) tautologia contingente (17V/10F/0N) contingente (17V/10F/0N) sì/sì/sì

Controesempi

Per ogni legge che non è tautologica, le assegnazioni in cui non vale V.

Identità (forma bicondizionale)

A↔A

Forma x=y del CIE: riflessività del connettivo d'identità.

  • BOOL: nessuno
  • LO: A=F ⇒ F; A=N ⇒ N
  • ONTO: A=F ⇒ F; A=N ⇒ N

Non contraddizione

¬(A∧¬A)

  • BOOL: nessuno
  • LO: A=V ⇒ N; A=F ⇒ F; A=N ⇒ F
  • ONTO: A=V ⇒ N; A=F ⇒ F; A=N ⇒ F

Terzo escluso

A∨¬A

  • BOOL: nessuno
  • LO: A=F ⇒ F; A=N ⇒ F
  • ONTO: A=F ⇒ F; A=N ⇒ F

Ex N quodlibet

N→A

Dal non apofantico segue qualsiasi conclusione.

  • BOOL: nessuno
  • LO: nessuno
  • ONTO: nessuno

Doppia negazione

¬¬A↔A

  • BOOL: nessuno
  • LO: A=V ⇒ N; A=F ⇒ F; A=N ⇒ N
  • ONTO: A=V ⇒ N; A=F ⇒ F; A=N ⇒ N

Introduzione della doppia negazione

A→¬¬A

  • BOOL: nessuno
  • LO: A=V ⇒ F
  • ONTO: A=V ⇒ F

Tripla negazione

¬¬¬A↔¬A

  • BOOL: nessuno
  • LO: A=V ⇒ F; A=F ⇒ N; A=N ⇒ F
  • ONTO: A=V ⇒ F; A=F ⇒ N; A=N ⇒ F

Assorbimento della doppia negazione in N

¬¬A↔¬¬¬¬A

Dopo la seconda negazione il valore resta nel ciclo F↔N.

  • BOOL: nessuno
  • LO: A=V ⇒ N; A=F ⇒ F; A=N ⇒ N
  • ONTO: A=V ⇒ N; A=F ⇒ F; A=N ⇒ N

Idempotenza di ∧

(A∧A)↔A

  • BOOL: nessuno
  • LO: A=F ⇒ F; A=N ⇒ N
  • ONTO: A=F ⇒ F; A=N ⇒ N

Idempotenza di ∨

(A∨A)↔A

  • BOOL: nessuno
  • LO: A=F ⇒ F; A=N ⇒ N
  • ONTO: A=F ⇒ F; A=N ⇒ N

Commutatività di ∧

(A∧B)↔(B∧A)

  • BOOL: nessuno
  • LO: A=V,B=F ⇒ F; A=V,B=N ⇒ F; A=F,B=V ⇒ F; A=F,B=F ⇒ F; A=F,B=N ⇒ N; A=N,B=V ⇒ F; A=N,B=F ⇒ N; A=N,B=N ⇒ F
  • ONTO: A=V,B=F ⇒ F; A=V,B=N ⇒ F; A=F,B=V ⇒ F; A=F,B=F ⇒ F; A=F,B=N ⇒ N; A=N,B=V ⇒ F; A=N,B=F ⇒ N; A=N,B=N ⇒ F

Commutatività di ∨

(A∨B)↔(B∨A)

  • BOOL: nessuno
  • LO: A=F,B=F ⇒ F; A=F,B=N ⇒ F; A=N,B=F ⇒ F; A=N,B=N ⇒ N
  • ONTO: A=F,B=F ⇒ F; A=F,B=N ⇒ F; A=N,B=F ⇒ F; A=N,B=N ⇒ N

Commutatività di ⊕

(A⊕B)↔(B⊕A)

  • BOOL: nessuno
  • LO: A=V,B=V ⇒ F; A=V,B=F ⇒ F; A=V,B=N ⇒ F; A=F,B=V ⇒ F; A=F,B=F ⇒ N; A=F,B=N ⇒ F; A=N,B=V ⇒ F; A=N,B=F ⇒ F; A=N,B=N ⇒ N
  • ONTO: A=V,B=V ⇒ F; A=V,B=F ⇒ F; A=V,B=N ⇒ F; A=F,B=V ⇒ F; A=F,B=F ⇒ N; A=F,B=N ⇒ F; A=N,B=V ⇒ F; A=N,B=F ⇒ F; A=N,B=N ⇒ N

Commutatività di ↔

(A↔B)↔(B↔A)

  • BOOL: nessuno
  • LO: A=V,B=F ⇒ F; A=V,B=N ⇒ N; A=F,B=V ⇒ F; A=F,B=F ⇒ F; A=F,B=N ⇒ N; A=N,B=V ⇒ N; A=N,B=F ⇒ N; A=N,B=N ⇒ N
  • ONTO: A=V,B=F ⇒ F; A=V,B=N ⇒ N; A=F,B=V ⇒ F; A=F,B=F ⇒ F; A=F,B=N ⇒ N; A=N,B=V ⇒ N; A=N,B=F ⇒ N; A=N,B=N ⇒ N

Associatività di ∧

(A∧(B∧C))↔((A∧B)∧C)

  • BOOL: nessuno
  • LO: A=V,B=V,C=F ⇒ F; A=V,B=V,C=N ⇒ F; A=V,B=F,C=V ⇒ F; A=V,B=F,C=F ⇒ F; A=V,B=F,C=N ⇒ N; A=V,B=N,C=V ⇒ F; A=V,B=N,C=F ⇒ F; A=V,B=N,C=N ⇒ N; A=F,B=V,C=V ⇒ F; A=F,B=V,C=F ⇒ F; A=F,B=V,C=N ⇒ N; A=F,B=F,C=V ⇒ F; A=F,B=F,C=F ⇒ F; A=F,B=F,C=N ⇒ N; A=F,B=N,C=V ⇒ F; A=F,B=N,C=F ⇒ N; A=F,B=N,C=N ⇒ F; A=N,B=V,C=V ⇒ F; A=N,B=V,C=F ⇒ N; A=N,B=V,C=N ⇒ N; A=N,B=F,C=V ⇒ N; A=N,B=F,C=F ⇒ N; A=N,B=F,C=N ⇒ F; A=N,B=N,C=V ⇒ N; A=N,B=N,C=F ⇒ F; A=N,B=N,C=N ⇒ N
  • ONTO: A=V,B=V,C=F ⇒ F; A=V,B=V,C=N ⇒ F; A=V,B=F,C=V ⇒ F; A=V,B=F,C=F ⇒ F; A=V,B=F,C=N ⇒ N; A=V,B=N,C=V ⇒ F; A=V,B=N,C=F ⇒ F; A=V,B=N,C=N ⇒ N; A=F,B=V,C=V ⇒ F; A=F,B=V,C=F ⇒ F; A=F,B=V,C=N ⇒ N; A=F,B=F,C=V ⇒ F; A=F,B=F,C=F ⇒ F; A=F,B=F,C=N ⇒ N; A=F,B=N,C=V ⇒ F; A=F,B=N,C=F ⇒ N; A=F,B=N,C=N ⇒ F; A=N,B=V,C=V ⇒ F; A=N,B=V,C=F ⇒ N; A=N,B=V,C=N ⇒ N; A=N,B=F,C=V ⇒ N; A=N,B=F,C=F ⇒ N; A=N,B=F,C=N ⇒ F; A=N,B=N,C=V ⇒ N; A=N,B=N,C=F ⇒ F; A=N,B=N,C=N ⇒ N

Associatività di ∨

(A∨(B∨C))↔((A∨B)∨C)

  • BOOL: nessuno
  • LO: A=F,B=F,C=F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A=N,B=V,C=N ⇒ F; A=N,B=F,C=V ⇒ F; A=N,B=F,C=F ⇒ N; A=N,B=F,C=N ⇒ N; A=N,B=N,C=V ⇒ F; A=N,B=N,C=F ⇒ N; A=N,B=N,C=N ⇒ F

Distributività di ∨ su ∧

(A∨(B∧C))↔((A∨B)∧(A∨C))

  • BOOL: nessuno
  • LO: A=F,B=V,C=F ⇒ F; A=F,B=V,C=N ⇒ F; A=F,B=F,C=V ⇒ F; A=F,B=F,C=F ⇒ F; A=F,B=F,C=N ⇒ F; A=F,B=N,C=V ⇒ F; A=F,B=N,C=F ⇒ F; A=F,B=N,C=N ⇒ F; A=N,B=V,C=F ⇒ F; A=N,B=V,C=N ⇒ F; A=N,B=F,C=V ⇒ F; A=N,B=F,C=F ⇒ F; A=N,B=F,C=N ⇒ N; A=N,B=N,C=V ⇒ F; A=N,B=N,C=F ⇒ N; A=N,B=N,C=N ⇒ F
  • ONTO: A=F,B=V,C=F ⇒ F; A=F,B=V,C=N ⇒ F; A=F,B=F,C=V ⇒ F; A=F,B=F,C=F ⇒ F; A=F,B=F,C=N ⇒ F; A=F,B=N,C=V ⇒ F; A=F,B=N,C=F ⇒ F; A=F,B=N,C=N ⇒ F; A=N,B=V,C=F ⇒ F; A=N,B=V,C=N ⇒ F; A=N,B=F,C=V ⇒ F; A=N,B=F,C=F ⇒ F; A=N,B=F,C=N ⇒ N; A=N,B=N,C=V ⇒ F; A=N,B=N,C=F ⇒ N; A=N,B=N,C=N ⇒ F

Assorbimento ∧/∨

(A∧(A∨B))↔A

  • BOOL: nessuno
  • LO: A=F,B=V ⇒ F; A=F,B=F ⇒ F; A=F,B=N ⇒ F; A=N,B=V ⇒ N; A=N,B=F ⇒ N; A=N,B=N ⇒ N
  • ONTO: A=F,B=V ⇒ F; A=F,B=F ⇒ F; A=F,B=N ⇒ F; A=N,B=V ⇒ N; A=N,B=F ⇒ N; A=N,B=N ⇒ N

Assorbimento ∨/∧

(A∨(A∧B))↔A

  • BOOL: nessuno
  • LO: A=F,B=V ⇒ F; A=F,B=F ⇒ F; A=F,B=N ⇒ F; A=N,B=V ⇒ N; A=N,B=F ⇒ N; A=N,B=N ⇒ N
  • ONTO: A=F,B=V ⇒ F; A=F,B=F ⇒ F; A=F,B=N ⇒ F; A=N,B=V ⇒ N; A=N,B=F ⇒ N; A=N,B=N ⇒ N

Elemento neutro di ∧

(A∧V)↔A

  • BOOL: nessuno
  • LO: A=F ⇒ F; A=N ⇒ N
  • ONTO: A=F ⇒ F; A=N ⇒ N

Elemento neutro di ∨

(A∨F)↔A

  • BOOL: nessuno
  • LO: A=F ⇒ F; A=N ⇒ N
  • ONTO: A=F ⇒ F; A=N ⇒ N

Elemento assorbente di ∧

(A∧F)↔F

  • BOOL: nessuno
  • LO: A=V ⇒ F; A=F ⇒ F; A=N ⇒ N
  • ONTO: A=V ⇒ F; A=F ⇒ F; A=N ⇒ N

Complemento di ∧

(A∧¬A)↔F

  • BOOL: nessuno
  • LO: A=V ⇒ F; A=F ⇒ N; A=N ⇒ N
  • ONTO: A=V ⇒ F; A=F ⇒ N; A=N ⇒ N

Complemento di ∨

(A∨¬A)↔V

  • BOOL: nessuno
  • LO: A=F ⇒ F; A=N ⇒ F
  • ONTO: A=F ⇒ F; A=N ⇒ F

De Morgan: ¬(A∧B) ≡ ¬A∨¬B

¬(A∧B)↔(¬A∨¬B)

  • BOOL: nessuno
  • LO: A=V,B=V ⇒ F; A=V,B=F ⇒ N; A=V,B=N ⇒ N; A=F,B=V ⇒ N; A=F,B=F ⇒ N; A=F,B=N ⇒ F; A=N,B=V ⇒ N; A=N,B=F ⇒ F; A=N,B=N ⇒ N
  • ONTO: A=V,B=V ⇒ F; A=V,B=F ⇒ N; A=V,B=N ⇒ N; A=F,B=V ⇒ N; A=F,B=F ⇒ N; A=F,B=N ⇒ F; A=N,B=V ⇒ N; A=N,B=F ⇒ F; A=N,B=N ⇒ N

De Morgan: ¬(A∨B) ≡ ¬A∧¬B

¬(A∨B)↔(¬A∧¬B)

  • BOOL: nessuno
  • LO: A=V,B=V ⇒ F; A=V,B=F ⇒ N; A=V,B=N ⇒ F; A=F,B=V ⇒ N; A=F,B=F ⇒ N; A=F,B=N ⇒ N; A=N,B=V ⇒ F; A=N,B=F ⇒ N; A=N,B=N ⇒ F
  • ONTO: A=V,B=V ⇒ F; A=V,B=F ⇒ N; A=V,B=N ⇒ F; A=F,B=V ⇒ N; A=F,B=F ⇒ N; A=F,B=N ⇒ N; A=N,B=V ⇒ F; A=N,B=F ⇒ N; A=N,B=N ⇒ F

De Morgan: A∧B ≡ ¬(¬A∨¬B)

(A∧B)↔¬(¬A∨¬B)

  • BOOL: nessuno
  • LO: A=V,B=V ⇒ N; A=V,B=F ⇒ N; A=V,B=N ⇒ N; A=F,B=V ⇒ N; A=F,B=F ⇒ F; A=F,B=N ⇒ N; A=N,B=V ⇒ N; A=N,B=F ⇒ N; A=N,B=N ⇒ N
  • ONTO: A=V,B=V ⇒ N; A=V,B=F ⇒ N; A=V,B=N ⇒ N; A=F,B=V ⇒ N; A=F,B=F ⇒ F; A=F,B=N ⇒ N; A=N,B=V ⇒ N; A=N,B=F ⇒ N; A=N,B=N ⇒ N

De Morgan: A∨B ≡ ¬(¬A∧¬B)

(A∨B)↔¬(¬A∧¬B)

  • BOOL: nessuno
  • LO: A=V,B=V ⇒ N; A=V,B=F ⇒ F; A=V,B=N ⇒ N; A=F,B=V ⇒ F; A=F,B=F ⇒ N; A=F,B=N ⇒ F; A=N,B=V ⇒ N; A=N,B=F ⇒ F; A=N,B=N ⇒ N
  • ONTO: A=V,B=V ⇒ N; A=V,B=F ⇒ F; A=V,B=N ⇒ N; A=F,B=V ⇒ F; A=F,B=F ⇒ N; A=F,B=N ⇒ F; A=N,B=V ⇒ N; A=N,B=F ⇒ F; A=N,B=N ⇒ N

Implicazione materiale

(A→B)↔(¬A∨B)

  • BOOL: nessuno
  • LO: A=V,B=F ⇒ F; A=V,B=N ⇒ F; A=F,B=F ⇒ F; A=F,B=N ⇒ N; A=N,B=F ⇒ F; A=N,B=N ⇒ F
  • ONTO: A=V,B=F ⇒ F; A=V,B=N ⇒ F; A=F,B=F ⇒ F; A=F,B=N ⇒ N; A=N,B=F ⇒ F; A=N,B=N ⇒ F

Implicazione come ¬(A∧¬B)

(A→B)↔¬(A∧¬B)

  • BOOL: nessuno
  • LO: A=V,B=V ⇒ N; A=V,B=F ⇒ N; A=V,B=N ⇒ N; A=F,B=V ⇒ N; A=F,B=F ⇒ F; A=F,B=N ⇒ N; A=N,B=V ⇒ F; A=N,B=F ⇒ N; A=N,B=N ⇒ F
  • ONTO: A=V,B=V ⇒ N; A=V,B=F ⇒ N; A=V,B=N ⇒ N; A=F,B=V ⇒ N; A=F,B=F ⇒ F; A=F,B=N ⇒ N; A=N,B=V ⇒ F; A=N,B=F ⇒ N; A=N,B=N ⇒ F

Coimplicazione come doppia implicazione

(A↔B)↔((A→B)∧(B→A))

«Compressione di due espansioni».

  • BOOL: nessuno
  • LO: A=V,B=F ⇒ F; A=V,B=N ⇒ N; A=F,B=V ⇒ F; A=F,B=F ⇒ F; A=F,B=N ⇒ N; A=N,B=V ⇒ N; A=N,B=F ⇒ N; A=N,B=N ⇒ N
  • ONTO: A=V,B=F ⇒ F; A=V,B=N ⇒ N; A=F,B=V ⇒ F; A=F,B=F ⇒ F; A=F,B=N ⇒ N; A=N,B=V ⇒ N; A=N,B=F ⇒ N; A=N,B=N ⇒ N

XOR come (A∧¬B)∨(¬A∧B)

(A⊕B)↔((A∧¬B)∨(¬A∧B))

  • BOOL: nessuno
  • LO: A=V,B=V ⇒ F; A=V,B=F ⇒ F; A=V,B=N ⇒ F; A=F,B=V ⇒ F; A=F,B=F ⇒ N; A=F,B=N ⇒ F; A=N,B=V ⇒ F; A=N,B=F ⇒ F; A=N,B=N ⇒ N
  • ONTO: A=V,B=V ⇒ F; A=V,B=F ⇒ F; A=V,B=N ⇒ F; A=F,B=V ⇒ F; A=F,B=F ⇒ N; A=F,B=N ⇒ F; A=N,B=V ⇒ F; A=N,B=F ⇒ F; A=N,B=N ⇒ N

XOR come ¬(A↔B)

(A⊕B)↔¬(A↔B)

  • BOOL: nessuno
  • LO: A=V,B=V ⇒ F; A=V,B=F ⇒ N; A=V,B=N ⇒ F; A=F,B=V ⇒ N; A=F,B=F ⇒ N; A=F,B=N ⇒ F; A=N,B=V ⇒ F; A=N,B=F ⇒ F; A=N,B=N ⇒ N
  • ONTO: A=V,B=V ⇒ F; A=V,B=F ⇒ N; A=V,B=N ⇒ F; A=F,B=V ⇒ N; A=F,B=F ⇒ N; A=F,B=N ⇒ F; A=N,B=V ⇒ F; A=N,B=F ⇒ F; A=N,B=N ⇒ N

Riduzione all'assurdo

((A→B)∧(A→¬B))→¬A

  • BOOL: nessuno
  • LO: A=F,B=V ⇒ F; A=F,B=F ⇒ F; A=F,B=N ⇒ F; A=N,B=V ⇒ F; A=N,B=F ⇒ F; A=N,B=N ⇒ F
  • ONTO: A=F,B=V ⇒ F; A=F,B=F ⇒ F; A=F,B=N ⇒ F; A=N,B=V ⇒ F; A=N,B=F ⇒ F; A=N,B=N ⇒ F

Consequentia mirabilis

(¬A→A)→A

  • BOOL: nessuno
  • LO: A=F ⇒ F; A=N ⇒ F
  • ONTO: A=F ⇒ F; A=N ⇒ F

Assioma di contrapposizione (Łukasiewicz)

(¬A→¬B)→(B→A)

  • BOOL: nessuno
  • LO: A=F,B=V ⇒ F; A=N,B=V ⇒ F
  • ONTO: A=F,B=V ⇒ F; A=N,B=V ⇒ F

Contrapposizione

(A→B)↔(¬B→¬A)

  • BOOL: nessuno
  • LO: A=V,B=F ⇒ F; A=V,B=N ⇒ F
  • ONTO: A=V,B=F ⇒ F; A=V,B=N ⇒ F

Esportazione

((A∧B)→C)↔(A→(B→C))

  • BOOL: nessuno
  • LO: A=V,B=V,C=F ⇒ F; A=V,B=V,C=N ⇒ F
  • ONTO: A=V,B=V,C=F ⇒ F; A=V,B=V,C=N ⇒ F

Distribuzione di → su ∧

(A→(B∧C))↔((A→B)∧(A→C))

  • BOOL: nessuno
  • LO: A=V,B=V,C=F ⇒ F; A=V,B=V,C=N ⇒ F; A=V,B=F,C=V ⇒ F; A=V,B=F,C=F ⇒ F; A=V,B=F,C=N ⇒ F; A=V,B=N,C=V ⇒ F; A=V,B=N,C=F ⇒ F; A=V,B=N,C=N ⇒ F
  • ONTO: A=V,B=V,C=F ⇒ F; A=V,B=V,C=N ⇒ F; A=V,B=F,C=V ⇒ F; A=V,B=F,C=F ⇒ F; A=V,B=F,C=N ⇒ F; A=V,B=N,C=V ⇒ F; A=V,B=N,C=F ⇒ F; A=V,B=N,C=N ⇒ F

Prove per casi

((A∨B)→C)↔((A→C)∧(B→C))

  • BOOL: nessuno
  • LO: A=V,B=V,C=F ⇒ F; A=V,B=V,C=N ⇒ F; A=V,B=F,C=F ⇒ F; A=V,B=F,C=N ⇒ F; A=V,B=N,C=F ⇒ F; A=V,B=N,C=N ⇒ F; A=F,B=V,C=F ⇒ F; A=F,B=V,C=N ⇒ F; A=N,B=V,C=F ⇒ F; A=N,B=V,C=N ⇒ F
  • ONTO: A=V,B=V,C=F ⇒ F; A=V,B=V,C=N ⇒ F; A=V,B=F,C=F ⇒ F; A=V,B=F,C=N ⇒ F; A=V,B=N,C=F ⇒ F; A=V,B=N,C=N ⇒ F; A=F,B=V,C=F ⇒ F; A=F,B=V,C=N ⇒ F; A=N,B=V,C=F ⇒ F; A=N,B=V,C=N ⇒ F

Fonte: onto-rs/docs/LEGGI_LOGICHE.md