class MaceCommand(Prover9CommandParent, BaseModelBuilderCommand): (source)
Constructor: MaceCommand(goal, assumptions, max_models, model_builder)
A MaceCommand specific to the Mace model builder. It contains a print_assumptions() method that is used to print the list of assumptions in multiple formats.
| Method | __init__ |
No summary |
| Property | valuation |
Undocumented |
| Static Method | _make |
Pick an alphabetic character as identifier for an entity in the model. |
| Static Method | _make |
Convert a Mace4-style relation table into a dictionary. |
| Static Method | _make |
Undocumented |
| Method | _call |
Call the interpformat binary with the given input. |
| Method | _convert2val |
Transform the output file into an NLTK-style Valuation. |
| Method | _decorate |
Print out a Mace4 model using any Mace4 interpformat format. See http://www.cs.unm.edu/~mccune/mace4/manual/ for details. |
| Method | _transform |
Transform the output file into any Mace4 interpformat format. |
| Instance Variable | _interpformat |
Undocumented |
Inherited from Prover9CommandParent:
| Method | print |
Print the list of the current assumptions. |
Inherited from BaseModelBuilderCommand (via Prover9CommandParent):
| Method | build |
Attempt to build a model. Store the result to prevent unnecessary re-building. |
| Method | get |
Return the model builder object :return: ModelBuilder |
| Method | model |
Return a string representation of the model |
| Instance Variable | _model |
Undocumented |
| Instance Variable | _modelbuilder |
The theorem tool to execute with the assumptions |
| Instance Variable | _result |
A holder for the result, to prevent unnecessary re-proving |
Inherited from BaseTheoremToolCommand (via Prover9CommandParent, BaseModelBuilderCommand):
| Method | add |
Add new assumptions to the assumption list. |
| Method | assumptions |
List the current assumptions. |
| Method | goal |
Return the goal |
| Method | retract |
Retract assumptions from the assumption list. |
| Instance Variable | _assumptions |
Undocumented |
| Instance Variable | _goal |
Undocumented |
| Parameters | |
| goal:sem.Expression | Input expression to prove |
| assumptions:list(sem.Expression) | Input expressions to use as assumptions in the proof. |
| max | The maximum number of models that Mace will try before simply returning false. (Use 0 for no maximum.) |
| model | Undocumented |
Pick an alphabetic character as identifier for an entity in the model.
| Parameters | |
| value:int | where to index into the list of characters |
Convert a Mace4-style relation table into a dictionary.
| Parameters | |
| num | the number of entities in the model; determines the row length in the table. |
| values:list of int | a list of 1's and 0's that represent whether a relation holds in a Mace4 model. |
Call the interpformat binary with the given input.
| Parameters | |
| input | A string whose contents are used as stdin. |
| args | A list of command-line arguments. |
| verbose | Undocumented |
| Returns | |
| A tuple (stdout, returncode) | |
| See Also | |
| config_prover9 | |
Transform the output file into an NLTK-style Valuation.
| Returns | |
| sem.Valuation | A model if one is generated; None otherwise. |
Print out a Mace4 model using any Mace4 interpformat format. See http://www.cs.unm.edu/~mccune/mace4/manual/ for details.
models. Defaults to 'standard' format. :return: str
| Parameters | |
| valuation | str with the model builder's output |
| format | str indicating the format for displaying |