mirror of
				https://github.com/smyalygames/checklist-tester.git
				synced 2025-10-31 18:57:41 +01:00 
			
		
		
		
	feat(formal): start modelling aircraft
This commit is contained in:
		
							parent
							
								
									d2080a9784
								
							
						
					
					
						commit
						ad0c70db56
					
				| @ -5,6 +5,28 @@ definitions | ||||
| values | ||||
| 
 | ||||
| types | ||||
|     -- Aircraft | ||||
| 
 | ||||
|     -- Switches | ||||
|     --@doc The state a switch can be in | ||||
|     SwitchState = nat | ||||
|         inv s == s <= 3; | ||||
| 
 | ||||
|     --@doc A switch, with the possible states it can be in, and the state that it is in | ||||
|     Switch ::  | ||||
|                 position : nat1 | ||||
|                 states : seq of SwitchState | ||||
|                 inv s == s.position <= len s.states; | ||||
| 
 | ||||
|     -- Knob | ||||
|     Knob ::  | ||||
|             position : nat1 | ||||
|             states : seq of int | ||||
|             inv k == k.position <= len k.states; | ||||
| 
 | ||||
|     Throttle = int | ||||
|         inv t == t >= -100 and t <= 100; | ||||
| 
 | ||||
| 
 | ||||
|     String = seq of char; | ||||
| 
 | ||||
|  | ||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user
	 Anthony
						Anthony