Logic
Environment
control level of automatic logical simplification
Calling Sequence
Parameters
Description
Levels of Logical Simplification
Examples
Environment(level)
level
-
(optional) an integer between 0 and 2 inclusive
The Environment command controls the current environment used for automatic simplification of Boolean expressions, that is, which identities and properties are automatically applied to logical expressions.
If level is not provided, the current simplification level is returned. If it is provided, the simplification level is set to level and NULL is returned.
The default level is 0.
The following describes the various levels of logical simplification.
0 -- No simplifications.
1 -- Associative properties are applied to remove redundant parentheses; the input is expressed in terms of &and, &or, and ¬.
2 -- In addition to level 1 simplifications, the properties (a&anda --> a) and (a&ora --> a) and knowledge of true and false are applied.
with⁡Logic
&and,&iff,&implies,&nand,&nor,¬,&or,&xor,BooleanSimplify,Canonicalize,Complement,Contradiction,Convert,Dual,Environment,Equivalent,Export,Implies,Import,IncidenceGraph,Normalize,Parity,PrimalGraph,Random,Satisfiable,Satisfy,SymmetryGroup,Tautology,TruthTable,Tseitin
Environment⁡0
a&andb&anda
a∧b∧a
a&iffa
a⇔a
Environment⁡1
a∧a∧b
a∧a∨¬a∧¬a
Environment⁡2
a∧b
a∨¬a
See Also
Download Help Document