mirror of
				https://github.com/Brandon-Rozek/matmod.git
				synced 2025-11-03 03:11:12 +00:00 
			
		
		
		
	Small cleanup
This commit is contained in:
		
							parent
							
								
									f3c82f090f
								
							
						
					
					
						commit
						ff666c326e
					
				
					 3 changed files with 14 additions and 18 deletions
				
			
		
							
								
								
									
										14
									
								
								R.py
									
										
									
									
									
								
							
							
						
						
									
										14
									
								
								R.py
									
										
									
									
									
								
							| 
						 | 
				
			
			@ -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))
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue