class documentation
class TheoremToolCommand: (source)
Known subclasses: nltk.inference.api.BaseTheoremToolCommand, nltk.inference.api.ModelBuilderCommand, nltk.inference.api.ProverCommand, nltk.inference.api.TheoremToolCommandDecorator
This class holds a goal and a list of assumptions to be used in proving or model building.
| Method | add |
Add new assumptions to the assumption list. |
| Method | assumptions |
List the current assumptions. |
| Method | goal |
Return the goal |
| Method | print |
Print the list of the current assumptions. |
| Method | retract |
Retract assumptions from the assumption list. |
overridden in
nltk.inference.api.BaseTheoremToolCommand, nltk.inference.api.TheoremToolCommandDecoratorAdd new assumptions to the assumption list.
| Parameters | |
| new | new assumptions |
overridden in
nltk.inference.api.BaseTheoremToolCommand, nltk.inference.api.TheoremToolCommandDecorator, nltk.inference.nonmonotonic.ClosedDomainProver, nltk.inference.nonmonotonic.ClosedWorldProver, nltk.inference.nonmonotonic.UniqueNamesProverList the current assumptions.
| Returns | |
| list of Expression |
overridden in
nltk.inference.api.BaseTheoremToolCommand, nltk.inference.api.TheoremToolCommandDecorator, nltk.inference.nonmonotonic.ClosedDomainProverReturn the goal
| Returns | |
| Expression |
overridden in
nltk.inference.api.BaseTheoremToolCommand, nltk.inference.api.TheoremToolCommandDecoratorPrint the list of the current assumptions.
overridden in
nltk.inference.api.BaseTheoremToolCommand, nltk.inference.api.TheoremToolCommandDecoratorRetract assumptions from the assumption list.
assumptions list. :type debug: bool :param retracted: assumptions to be retracted :type retracted: list(sem.Expression)
| Parameters | |
| retracted | Undocumented |
| debug | If True, give warning when retracted is not present on |