mirror of
https://github.com/Brandon-Rozek/matmod.git
synced 2025-12-19 05:10:25 +00:00
Check models in parallel
This commit is contained in:
parent
fb074ff0e8
commit
aeb8ae0440
4 changed files with 26 additions and 14 deletions
5
model.py
5
model.py
|
|
@ -2,7 +2,7 @@
|
|||
Matrix model semantics and satisfiability of
|
||||
a given logic.
|
||||
"""
|
||||
from common import set_to_str
|
||||
from common import set_to_str, immutable
|
||||
from logic import (
|
||||
get_propostional_variables, Logic,
|
||||
Operation, PropositionalVariable, Term
|
||||
|
|
@ -15,13 +15,10 @@ from typing import Dict, List, Optional, Set, Tuple
|
|||
|
||||
__all__ = ['ModelValue', 'ModelFunction', 'Model', 'Interpretation']
|
||||
|
||||
|
||||
class ModelValue:
|
||||
def __init__(self, name):
|
||||
self.name = name
|
||||
self.hashed_value = hash(self.name)
|
||||
def immutable(self, name, value):
|
||||
raise Exception("Model values are immutable")
|
||||
self.__setattr__ = immutable
|
||||
def __str__(self):
|
||||
return self.name
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue