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

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?

Returns:

  • (Boolean)


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?

Returns:

  • (Boolean)


26
27
28
# File 'lib/dpll_solver/atomic_formula.rb', line 26

def not?
  false
end

#simplifyObject Also known as: nnf, cnf, dnf



18
19
20
# File 'lib/dpll_solver/atomic_formula.rb', line 18

def simplify
  self
end