mirror of
https://github.com/Brandon-Rozek/matmod.git
synced 2026-01-30 07:33:38 +00:00
Refactored out valuation generation code in SMT
This commit is contained in:
parent
85ef364a57
commit
06cca7d32e
2 changed files with 43 additions and 25 deletions
4
model.py
4
model.py
|
|
@ -13,7 +13,7 @@ from itertools import (
|
|||
chain, combinations_with_replacement,
|
||||
permutations, product
|
||||
)
|
||||
from typing import Dict, List, Optional, Set, Tuple
|
||||
from typing import Any, Dict, Generator, List, Optional, Set, Tuple
|
||||
|
||||
|
||||
__all__ = ['ModelValue', 'ModelFunction', 'Model', 'Interpretation']
|
||||
|
|
@ -255,7 +255,7 @@ def evaluate_term(
|
|||
|
||||
def all_model_valuations(
|
||||
pvars: Tuple[PropositionalVariable],
|
||||
mvalues: Tuple[ModelValue]):
|
||||
mvalues: Tuple[ModelValue]) -> Generator[Dict[PropositionalVariable, ModelValue], Any, None]:
|
||||
"""
|
||||
Given propositional variables and model values,
|
||||
produce every possible mapping between the two.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue