module documentation
A version of first order predicate logic, built on top of the typed lambda calculus.
| Class | |
This class represents a variable to be used as a predicate or entity |
| Class | |
Undocumented |
| Class | |
This class represents conjunctions |
| Class | |
Undocumented |
| Class | |
This class is used to represent two related types of logical expressions. |
| Class | |
Undocumented |
| Class | |
No class docstring; 0/1 property, 0/2 instance variable, 2/7 methods documented |
| Class | |
No class docstring; 1/1 method documented |
| Class | |
Undocumented |
| Class | |
This class represents variables that do not take the form of a single character followed by zero or more digits. |
| Class | |
Undocumented |
| Class | |
This class represents equality expressions like "(x = y)". |
| Class | |
Undocumented |
| Class | |
This class represents variables that take the form of a single lowercase 'e' character followed by zero or more digits. |
| Class | |
Undocumented |
| Class | |
This is the base abstract object for all logical expressions |
| Class | |
This class represents variables that take the form of a single uppercase character followed by zero or more digits. |
| Class | |
This class represents biconditionals |
| Class | |
This class represents implications |
| Class | |
This class represents variables that take the form of a single lowercase character (other than 'e') followed by zero or more digits. |
| Class | |
No class docstring; 0/1 property, 1/2 method documented |
| Class | |
A lambda calculus expression parser. |
| Class | |
No class docstring; 0/1 property, 0/1 instance variable, 3/8 methods documented |
| Class | |
This class represents disjunctions |
| Class | |
No class docstring; 0/1 property, 1/2 method documented |
| Class | |
An interface for classes that can perform substitutions for variables. |
| Class | |
Undocumented |
| Class | |
Undocumented |
| Class | |
Undocumented |
| Class | |
No class docstring; 0/1 instance variable, 1/8 method documented |
| Class | |
This an abstract class for any Expression that binds a variable in an Expression. This includes LambdaExpressions and Quantified Expressions |
| Exception | |
Undocumented |
| Exception | |
Undocumented |
| Exception | |
Undocumented |
| Exception | |
Undocumented |
| Exception | |
Undocumented |
| Exception | |
Undocumented |
| Exception | |
Undocumented |
| Function | binding |
Binding operators |
| Function | boolean |
Boolean operators |
| Function | demo |
Undocumented |
| Function | demo |
Undocumented |
| Function | demo |
Undocumented |
| Function | equality |
Equality predicates |
| Function | is |
An event variable must be a single lowercase 'e' character followed by zero or more digits. |
| Function | is |
A function variable must be a single uppercase character followed by zero or more digits. |
| Function | is |
An individual variable must be a single lowercase character other than 'e', followed by zero or more digits. |
| Function | printtype |
Undocumented |
| Function | read |
Convert a file of First Order Formulas into a list of {Expression}s. |
| Function | read |
Undocumented |
| Function | skolem |
Return a skolem function over the variables in univ_scope param univ_scope |
| Function | typecheck |
Ensure correct typing across a collection of Expression objects. :param expressions: a collection of expressions :param signature: dict that maps variable names to types (or string representations of types)... |
| Function | unique |
Return a new, unique variable. |
| Function | |
This is a factory method that instantiates and returns a subtype of AbstractVariableExpression appropriate for the given variable. |
| Constant | ANY |
Undocumented |
| Constant | APP |
Undocumented |
| Constant | ENTITY |
Undocumented |
| Constant | EVENT |
Undocumented |
| Constant | TRUTH |
Undocumented |
| Variable | _counter |
Undocumented |
An event variable must be a single lowercase 'e' character followed by zero or more digits.
| Parameters | |
| expr | str |
| Returns | |
| bool True if expr is of the correct form | |
A function variable must be a single uppercase character followed by zero or more digits.
| Parameters | |
| expr | str |
| Returns | |
| bool True if expr is of the correct form | |
An individual variable must be a single lowercase character other than 'e', followed by zero or more digits.
| Parameters | |
| expr | str |
| Returns | |
| bool True if expr is of the correct form | |
Convert a file of First Order Formulas into a list of {Expression}s.
| Parameters | |
| s:str | the contents of the file |
| logic | The parser to be used to parse the logical expression |
| encoding:str | the encoding of the input string, if it is binary |
| Returns | |
| list(Expression) | a list of parsed formulas. |
Ensure correct typing across a collection of Expression objects. :param expressions: a collection of expressions :param signature: dict that maps variable names to types (or string representations of types)
Return a new, unique variable.
| Parameters | |
| pattern | Variable that is being replaced. The new variable must be the same type. |
| ignore | Undocumented |
| term | a set of Variable objects that should not be returned from this function. |
| Returns | |
| Variable | Undocumented |