diff --git a/source/logic/sec-tautology.ptx b/source/logic/sec-tautology.ptx index 5d29b50..f968e7b 100644 --- a/source/logic/sec-tautology.ptx +++ b/source/logic/sec-tautology.ptx @@ -2,66 +2,68 @@
Analyzing Logical Equivalences - - Equivalent Statements -

- By comparing the truth tables, we can ascertain if two logical statements are equivalent, meaning they have identical truth values for all possible inputs. -

- - - - E1 = propcalc.formula('(p -> q) & (q -> r)') - E2 = propcalc.formula('p -> r') - T1 = E1.truthtable() - T2 = E2.truthtable() - T1 == T2 - - - -
+ + + h_list = h.truthtable().get_table_list() + s_list = s.truthtable().get_table_list() + h_list == s_list + + + - Tautologiestautology -

- A tautology is a logical statement that is always true. The is_tautology() function checks whether a given logical expression is a tautology. -

- - - - a = propcalc.formula('p | ~p') - a.is_tautology() - - - + + + + a = propcalc.formula('p | ~p') + a.is_tautology() + +
- - Contradictionscontradiction -

- In contrast to tautologies, contradictions are statements that are always false. -

- - - - A = propcalc.formula('p & ~p') - A.is_contradiction() - - - + + + A = propcalc.formula('p & ~p') + A.is_contradiction() + +
-