Module: AtomicFormula
- Included in:
- DpllSolver::Formulas::Falsum, DpllSolver::Formulas::Variable, DpllSolver::Formulas::Verum
- Defined in:
- lib/dpll_solver/atomic_formula.rb
Instance Method Summary collapse
-
#==(other) ⇒ Object
syntactic equivalenz.
- #atomic_formula? ⇒ Boolean (also: #literal?, #min_term?, #clause?, #nnf?, #cnf?, #dnf?)
- #not? ⇒ Boolean (also: #and?, #or?, #variable?)
- #simplify ⇒ Object (also: #nnf, #cnf, #dnf)
Instance Method Details
#==(other) ⇒ Object
syntactic equivalenz
3 4 5 |
# File 'lib/dpll_solver/atomic_formula.rb', line 3 def ==(other) other.class == self.class end |
#atomic_formula? ⇒ Boolean Also known as: literal?, min_term?, clause?, nnf?, cnf?, dnf?
7 8 9 |
# File 'lib/dpll_solver/atomic_formula.rb', line 7 def atomic_formula? true end |
#not? ⇒ Boolean Also known as: and?, or?, variable?
26 27 28 |
# File 'lib/dpll_solver/atomic_formula.rb', line 26 def not? false end |
#simplify ⇒ Object Also known as: nnf, cnf, dnf
18 19 20 |
# File 'lib/dpll_solver/atomic_formula.rb', line 18 def simplify self end |