Skip to content

Commit 1962ef2

Browse files
committed
Added models for bcastByz and sums_even
Signed-off-by: Andrew Helwer <[email protected]>
1 parent 40a1089 commit 1962ef2

File tree

8 files changed

+47
-2
lines changed

8 files changed

+47
-2
lines changed

.github/scripts/tla_utils.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -108,6 +108,7 @@ def resolve_tlc_exit_code(code):
108108
"""
109109
tlc_exit_codes = {
110110
0 : 'success',
111+
10 : 'assumption failure',
111112
11 : 'deadlock failure',
112113
12 : 'safety failure',
113114
13 : 'liveness failure'

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ Here is a list of specs included in this repository, with links to the relevant
2222
| [Loop Invariance](specifications/LoopInvariance) | Leslie Lamport ||||| |
2323
| [Learn TLA⁺ Proofs](specifications/LearnProofs) | Andrew Helwer ||||| |
2424
| [Boyer-Moore Majority Vote](specifications/Majority) | Stephan Merz ||| || |
25-
| [Proof x+x is Even](specifications/sums_even) | Stephan Merz ||| | | |
25+
| [Proof x+x is Even](specifications/sums_even) | Stephan Merz ||| | | |
2626
| [The N-Queens Puzzle](specifications/N-Queens) | Stephan Merz || ||| |
2727
| [The Dining Philosophers Problem](specifications/DiningPhilosophers) | Jeff Hemphill || ||| |
2828
| [The Car Talk Puzzle](specifications/CarTalkPuzzle) | Leslie Lamport || | || |

manifest-schema.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@
7878
"type": "array",
7979
"items": {"enum": ["liveness", "symmetry", "view", "alias", "state constraint", "ignore deadlock"]}
8080
},
81-
"result": {"enum": ["success", "safety failure", "liveness failure", "deadlock failure", "unknown"]}
81+
"result": {"enum": ["success", "assumption failure", "deadlock failure", "safety failure", "liveness failure", "unknown"]}
8282
}
8383
}
8484
}

manifest.json

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3760,6 +3760,22 @@
37603760
"beginner"
37613761
],
37623762
"modules": [
3763+
{
3764+
"path": "specifications/sums_even/MC_sums_even.tla",
3765+
"communityDependencies": [],
3766+
"tlaLanguageVersion": 2,
3767+
"features": [],
3768+
"models": [
3769+
{
3770+
"path": "specifications/sums_even/MC_sums_even.cfg",
3771+
"runtime": "00:00:01",
3772+
"size": "small",
3773+
"mode": "exhaustive search",
3774+
"features": [],
3775+
"result": "success"
3776+
}
3777+
]
3778+
},
37633779
{
37643780
"path": "specifications/sums_even/TLAPS.tla",
37653781
"communityDependencies": [],

specifications/bcastByz/bcastByz.cfg

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
CONSTANTS
2+
N = 4
3+
T = 1
4+
F = 1
5+
INVARIANTS TypeOK FCConstraints
6+
PROPERTIES CorrLtl RelayLtl UnforgLtl
7+
SPECIFICATION Spec
8+
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
CONSTANTS
2+
N = 10
3+
T = 3
4+
F = 2
5+
INVARIANTS TypeOK FCConstraints Unforg
6+
PROPERTIES CorrLtl RelayLtl
7+
SPECIFICATION SpecNoBcast
8+
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
CONSTANT
2+
MaxNat = 1000000
3+
Nat <- NatOverride
4+
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
------------------------ MODULE MC_sums_even -----------------------
2+
EXTENDS sums_even
3+
CONSTANT MaxNat
4+
ASSUME MaxNat \in Nat
5+
NatOverride == 0 .. MaxNat
6+
ASSUME T1
7+
====================================================================
8+

0 commit comments

Comments
 (0)