class documentation
class ProverCommandDecorator(TheoremToolCommandDecorator, ProverCommand): (source)
Known subclasses: nltk.inference.nonmonotonic.ClosedDomainProver
, nltk.inference.nonmonotonic.ClosedWorldProver
, nltk.inference.nonmonotonic.UniqueNamesProver
Constructor: ProverCommandDecorator(proverCommand)
A base decorator for the ProverCommand class from which other prover command decorators can extend.
Method | __init__ |
No summary |
Method | decorate |
Modify and return the proof string :param proof_string: str the proof to decorate :param simplify: bool simplify the proof? :return: str |
Method | get |
Return the prover object :return: Prover |
Method | proof |
Return the proof string :param simplify: bool simplify the proof? :return: str |
Method | prove |
Perform the actual proof. |
Instance Variable | _proof |
Undocumented |
Instance Variable | _result |
Undocumented |
Inherited from TheoremToolCommandDecorator
:
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. |
Instance Variable | _command |
Undocumented |
Modify and return the proof string :param proof_string: str the proof to decorate :param simplify: bool simplify the proof? :return: str
overrides
nltk.inference.api.ProverCommand.proof
Return the proof string :param simplify: bool simplify the proof? :return: str