type ParallelProverBuilderCommand
source code
object --+
|
TheoremToolCommand --+
|
BaseTheoremToolCommand --+
|
object --+ |
| |
TheoremToolCommand --+ |
| |
ProverCommand --+
|
BaseProverCommand --+
|
object --+ |
| |
TheoremToolCommand --+ |
| |
BaseTheoremToolCommand --+ |
| |
object --+ | |
| | |
TheoremToolCommand --+ | |
| | |
ModelBuilderCommand --+ |
| |
BaseModelBuilderCommand --+
|
ParallelProverBuilderCommand
This command stores both a prover and a model builder and when either
prove() or build_model() is called, then both theorem tools are run in
parallel. Whichever finishes first, the prover or the model builder, is
the result that will be used.
Because the theorem prover result is the opposite of the model builder
result, we will treat self._result as meaning "proof found/no model
found".
__init__(self,
prover,
modelbuilder,
goal=None,
assumptions=None)
(Constructor)
| source code
|
- Parameters:
prover - The theorem tool to execute with the assumptions
- Overrides:
BaseTheoremToolCommand.__init__
- (inherited documentation)
|
|
Perform the actual proof. Store the result to prevent unnecessary
re-proving.
- Overrides:
ProverCommand.prove
- (inherited documentation)
|
|
Attempt to build a model. Store the result to prevent unnecessary
re-building.
- Returns:
nltk.sem.evaluate.Valuation
- A model if one is generated; None otherwise.
- Overrides:
ModelBuilderCommand.build_model
- (inherited documentation)
|