Skip to content

Commit

Permalink
Added models for bcastByz and sums_even
Browse files Browse the repository at this point in the history
Signed-off-by: Andrew Helwer <[email protected]>
  • Loading branch information
ahelwer committed Jan 19, 2024
1 parent 40a1089 commit 1962ef2
Show file tree
Hide file tree
Showing 8 changed files with 47 additions and 2 deletions.
1 change: 1 addition & 0 deletions .github/scripts/tla_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -108,6 +108,7 @@ def resolve_tlc_exit_code(code):
"""
tlc_exit_codes = {
0 : 'success',
10 : 'assumption failure',
11 : 'deadlock failure',
12 : 'safety failure',
13 : 'liveness failure'
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ Here is a list of specs included in this repository, with links to the relevant
| [Loop Invariance](specifications/LoopInvariance) | Leslie Lamport ||||| |
| [Learn TLA⁺ Proofs](specifications/LearnProofs) | Andrew Helwer ||||| |
| [Boyer-Moore Majority Vote](specifications/Majority) | Stephan Merz ||| || |
| [Proof x+x is Even](specifications/sums_even) | Stephan Merz ||| | | |
| [Proof x+x is Even](specifications/sums_even) | Stephan Merz ||| | | |
| [The N-Queens Puzzle](specifications/N-Queens) | Stephan Merz || ||| |
| [The Dining Philosophers Problem](specifications/DiningPhilosophers) | Jeff Hemphill || ||| |
| [The Car Talk Puzzle](specifications/CarTalkPuzzle) | Leslie Lamport || | || |
Expand Down
2 changes: 1 addition & 1 deletion manifest-schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@
"type": "array",
"items": {"enum": ["liveness", "symmetry", "view", "alias", "state constraint", "ignore deadlock"]}
},
"result": {"enum": ["success", "safety failure", "liveness failure", "deadlock failure", "unknown"]}
"result": {"enum": ["success", "assumption failure", "deadlock failure", "safety failure", "liveness failure", "unknown"]}
}
}
}
Expand Down
16 changes: 16 additions & 0 deletions manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -3760,6 +3760,22 @@
"beginner"
],
"modules": [
{
"path": "specifications/sums_even/MC_sums_even.tla",
"communityDependencies": [],
"tlaLanguageVersion": 2,
"features": [],
"models": [
{
"path": "specifications/sums_even/MC_sums_even.cfg",
"runtime": "00:00:01",
"size": "small",
"mode": "exhaustive search",
"features": [],
"result": "success"
}
]
},
{
"path": "specifications/sums_even/TLAPS.tla",
"communityDependencies": [],
Expand Down
8 changes: 8 additions & 0 deletions specifications/bcastByz/bcastByz.cfg
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
CONSTANTS
N = 4
T = 1
F = 1
INVARIANTS TypeOK FCConstraints
PROPERTIES CorrLtl RelayLtl UnforgLtl
SPECIFICATION Spec

8 changes: 8 additions & 0 deletions specifications/bcastByz/bcastByzNoBcast.cfg
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
CONSTANTS
N = 10
T = 3
F = 2
INVARIANTS TypeOK FCConstraints Unforg
PROPERTIES CorrLtl RelayLtl
SPECIFICATION SpecNoBcast

4 changes: 4 additions & 0 deletions specifications/sums_even/MC_sums_even.cfg
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
CONSTANT
MaxNat = 1000000
Nat <- NatOverride

8 changes: 8 additions & 0 deletions specifications/sums_even/MC_sums_even.tla
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
------------------------ MODULE MC_sums_even -----------------------
EXTENDS sums_even
CONSTANT MaxNat
ASSUME MaxNat \in Nat
NatOverride == 0 .. MaxNat
ASSUME T1
====================================================================

0 comments on commit 1962ef2

Please sign in to comment.