mirror of
https://github.com/Brandon-Rozek/matmod.git
synced 2025-11-03 03:11:12 +00:00
Don't rely on shared memory for logic operators
This commit is contained in:
parent
29526dbec3
commit
b06dd8ee01
2 changed files with 13 additions and 8 deletions
5
vsp.py
5
vsp.py
|
|
@ -98,14 +98,11 @@ Subalgebra 1: {set_to_str(self.subalgebra1)}
|
|||
Subalgebra 2: {set_to_str(self.subalgebra2)}
|
||||
"""
|
||||
|
||||
def has_vsp(model: Model, interpretation: Dict[Operation, ModelFunction]) -> VSP_Result:
|
||||
def has_vsp(model: Model, impfunction: ModelFunction, mconjunction: Optional[ModelFunction] = None, mdisjunction: Optional[ModelFunction] = None) -> VSP_Result:
|
||||
"""
|
||||
Checks whether a model has the variable
|
||||
sharing property.
|
||||
"""
|
||||
impfunction = interpretation[Implication]
|
||||
mconjunction = interpretation.get(Conjunction)
|
||||
mdisjunction = interpretation.get(Disjunction)
|
||||
top = find_top(model.carrier_set, mconjunction, mdisjunction)
|
||||
bottom = find_bottom(model.carrier_set, mconjunction, mdisjunction)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue