Sha256: 0db2bb144ee0d3a3599fda1cff4e121c7fc834a854db0410f54ba1d3ee2b0476

Contents?: true

Size: 509 Bytes

Versions: 1

Compression:

Stored size: 509 Bytes

Contents

module AtomicFormula
  #syntactic equivalenz
  def ==(other)
    other.class == self.class
  end

  def atomic_formula?
    true
  end

  alias literal? atomic_formula?
  alias min_term? atomic_formula?
  alias clause? atomic_formula?
  alias nnf? atomic_formula?
  alias cnf? atomic_formula?
  alias dnf? atomic_formula?

  def simplify
    self
  end

  alias nnf simplify
  alias cnf simplify
  alias dnf simplify

  def not?
    false
  end

  alias and? not?
  alias or? not?
  alias variable? not?
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
dpll_solver-0.0.1 lib/dpll_solver/atomic_formula.rb