Small cleanup

This commit is contained in:
Brandon Rozek 2024-05-04 16:51:49 -04:00
parent f3c82f090f
commit ff666c326e
No known key found for this signature in database
GPG key ID: 26E457DA82C9F480
3 changed files with 14 additions and 18 deletions

14
R.py
View file

@ -117,13 +117,15 @@ interpretation = {
# Generate models of R of a given size
# model_size = 2
# solutions = generate_model(R_logic, model_size, print_model=True)
model_size = 2
solutions = generate_model(R_logic, model_size, print_model=True)
# print(f"There are {len(solutions)} satisfiable models of element length {model_size}")
print(f"There are {len(solutions)} satisfiable models of element length {model_size}")
# for model, interpretation in solutions:
# print(has_vsp(model, interpretation))
for model, interpretation in solutions:
print("Has VSP?", has_vsp(model, interpretation))
print("-" * 5)
######
@ -293,6 +295,8 @@ interpretation = {
Implication: mimplication
}
print(R_model_6)
print("Satisfiable", satisfiable(R_logic, R_model_6, interpretation))
print("Has VSP?", has_vsp(R_model_6, interpretation))