Logical Types#

class tensor_theorem_prover.Atom(predicate, terms)[source]#

Logical Atom (predicate with terms)

classmethod from_rust(rust_atom)[source]#
predicate#
terms#
to_rust()[source]#
class tensor_theorem_prover.Predicate(symbol, embedding=None)[source]#

A predicate symbol in a logical formula. Can contain an embedding for use in vector similarity calculations.

embedding = None#
classmethod from_rust(rust_predicate)[source]#
symbol#
to_rust()[source]#
class tensor_theorem_prover.Variable(name)[source]#

A variable symbol in a logical formula.

classmethod from_rust(rust_variable)[source]#
name#
to_rust()[source]#
class tensor_theorem_prover.Constant(symbol, embedding=None)[source]#

A constant symbol in a logical formula. Can contain an embedding for use in vector similarity calculations.

embedding = None#
classmethod from_rust(rust_constant)[source]#
symbol#
to_rust()[source]#
class tensor_theorem_prover.Function(symbol)[source]#

A function symbol in a logical formula.

classmethod from_rust(rust_function)[source]#
symbol#
to_rust()[source]#
class tensor_theorem_prover.And(*args)[source]#

Logical Conjunction

args#
class tensor_theorem_prover.Or(*args)[source]#

Logical Disjunction

args#
class tensor_theorem_prover.Not(body)[source]#

Logical Negation

body#
class tensor_theorem_prover.Implies(antecedent, consequent)[source]#

Logical Implication

antecedent#
consequent#
class tensor_theorem_prover.Exists(variable, body)[source]#

Logical Existential Quantifier

body#
variable#
class tensor_theorem_prover.All(variable, body)[source]#

Logical Universal Quantifier

body#
variable#