Commit ef4ecd3
MisraReachability: name unnamed companion theorems and add PartialCorrectnessThm
Two small hygienic edits to the existing companion proof modules so the
spec-file THEOREM stubs in `Reachable.tla` and `ParReach.tla` are
covered by named, TLAPS-callable theorems:
ReachableProofs.tla
- THEOREM Spec => []((pc = "Done") => (marked = Reachable))
+ THEOREM Thm4 == Spec => []((pc = "Done") => (marked = Reachable))
+ THEOREM PartialCorrectnessThm == Spec => []PartialCorrectness
BY Thm4, PTL DEF PartialCorrectness
ParReachProofs.tla
- THEOREM Spec => R!Init /\ [][R!Next]_R!vars
+ THEOREM RefinementSafety == Spec => R!Init /\ [][R!Next]_R!vars
`PartialCorrectnessThm` makes the spec-stub form (under the
`PartialCorrectness` defined name) a TLAPS-callable named theorem;
`RefinementSafety` does the same for the parallel-algorithm
refinement-safety result. The literal THEOREM stubs in the original
spec files remain unproven in their own modules, since proving them
in-place would require those (textbook-style) spec files to import the
companion proof modules -- a circular dependency.
The actually-unproven theorems in this directory are:
- Reachable.tla:209 termination (Band H, liveness via well-founded
measure on the lex pair <<|Reachable \ marked|, |vroot|>>)
- ParReach.tla:235 fairness refinement (Band H, lifting per-process
WF_vars(p(self)) to WF_R!vars(R!Next) under the refinement mapping)
- ParReach.tla:223 Spec => Refines (depends on the above)
These remain deferred; PROOF_DIFFICULTY.md is updated to reflect the
new state.
Verified: ReachableProofs (76 obligations, +3 over previous 73) and
ParReachProofs (52 obligations, unchanged) both pass with TLAPS in
under 5 seconds with -I .../CommunityModules/modules.
Co-authored-by: Claude Opus 4.7 <noreply@anthropic.com>
Signed-off-by: Markus Alexander Kuppe <github.com@lemmster.de>1 parent 2ade526 commit ef4ecd3
3 files changed
Lines changed: 14 additions & 6 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
132 | 132 | | |
133 | 133 | | |
134 | 134 | | |
135 | | - | |
| 135 | + | |
136 | 136 | | |
137 | 137 | | |
138 | 138 | | |
| |||
182 | 182 | | |
183 | 183 | | |
184 | 184 | | |
185 | | - | |
186 | | - | |
187 | | - | |
| 185 | + | |
| 186 | + | |
| 187 | + | |
| 188 | + | |
188 | 189 | | |
189 | 190 | | |
190 | 191 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
15 | 15 | | |
16 | 16 | | |
17 | 17 | | |
18 | | - | |
| 18 | + | |
19 | 19 | | |
20 | 20 | | |
21 | 21 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
194 | 194 | | |
195 | 195 | | |
196 | 196 | | |
197 | | - | |
| 197 | + | |
198 | 198 | | |
199 | 199 | | |
200 | 200 | | |
| |||
209 | 209 | | |
210 | 210 | | |
211 | 211 | | |
| 212 | + | |
| 213 | + | |
| 214 | + | |
| 215 | + | |
| 216 | + | |
| 217 | + | |
| 218 | + | |
212 | 219 | | |
213 | 220 | | |
214 | 221 | | |
| |||
0 commit comments