boolean_contradiction 函数
判断布尔公式是否在所有变量赋值下都为假。
语法
Logic:-Contradiction(booleanExpr)Contradiction(booleanExpr)boolean_contradiction(booleanExpr)
参数与选项
booleanExpr | 要测试的布尔公式。 |
|---|
示例
- 矛盾公式
Logic:-Contradiction(p and not p)返回 true。
判断布尔公式是否在所有变量赋值下都为假。
Logic:-Contradiction(booleanExpr)Contradiction(booleanExpr)boolean_contradiction(booleanExpr)booleanExpr | 要测试的布尔公式。 |
|---|
Logic:-Contradiction(p and not p)返回 true。