Discard models with only one designated value

This commit is contained in:
Brandon Rozek 2024-10-04 10:33:44 -04:00 committed by GitHub
commit 9d3e4b1fa6
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

5
vsp.py
View file

@ -63,6 +63,11 @@ def has_vsp(model: Model, interpretation: Dict[Operation, ModelFunction]) -> VSP
""" """
impfunction = interpretation[Implication] impfunction = interpretation[Implication]
# NOTE: No models with only one designated
# value satisfies VSP
if len(model.designated_values) == 1:
return VSP_Result(False, model.name)
# Compute I the set of tuples (x, y) where # Compute I the set of tuples (x, y) where
# x -> y does not take a designiated value # x -> y does not take a designiated value
I: Set[Tuple[ModelValue, ModelValue]] = set() I: Set[Tuple[ModelValue, ModelValue]] = set()