Propositional Logic
using Deductive
@symbols a b
tableau(a ∧ b) # true
tableau(a ∧ b, ¬a) # false, because contradiction
println(truthtable(a ∧ b))
#= Outputs:
Row │ a b a ∧ b
│ Bool Bool Bool
─────┼─────────────────────
1 │ false false false
2 │ true false false
3 │ false true false
4 │ true true true
=#
Several operators are exported and their use is required in defining statements.
Symbol | Completion Sequence | Description |
---|---|---|
¬ | \neg | Negation |
∧ | \wedge | Logical Conjunction |
∨ | \vee | Logical Disjunction |
→ | \rightarrow | Material Implication |
⟷ | \leftrightarrow | Material Equivalence |