Skip to content

Commit 3a6b92c

Browse files
lemmyclaudetangruize
committed
Close missing BY clauses in TypeOK_Step network cases
Two `<7>. QED` steps in the `n2 # to` and `n2 # self` branches of `<5>1` lacked any justification, leaving the lemma incomplete. A bare `<n>. QED` without `BY`/`OBVIOUS` is silently accepted by tlapm and generates zero obligations (cf. tlaplus/tlapm#271), so the gap was not caught at the time the proof was originally added in #211. Reported post-merge by @tangruize in #211 (comment), who flagged this exact anti-pattern while investigating the bare-QED behavior. Fix: name the preceding `network'[n2] = network[n2]` step as `<7>1` (since unnamed steps cannot be cited) and have QED close via `BY <7>1`, mirroring the parallel `<6>1` cases. All 316 obligations in the surrounding range verify cleanly. Refs: #211 Co-authored-by: Claude Opus 4.7 <noreply@anthropic.com> Co-authored-by: Ruize Tang <tangruize@users.noreply.github.com> Signed-off-by: Markus Alexander Kuppe <github.com@lemmster.de>
1 parent 809c7a2 commit 3a6b92c

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

specifications/ewd998/EWD998PCal_proof.tla

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -621,9 +621,9 @@ LEMMA TypeOK_Step ==
621621
BY <7>2, <4>2, BagAddPreservesToks
622622
<7>. QED BY <6>1, <7>3
623623
<6>2. CASE n2 # to
624-
<7>. network'[n2] = network[n2]
624+
<7>1. network'[n2] = network[n2]
625625
BY <4>1, <6>2
626-
<7>. QED
626+
<7>. QED BY <7>1
627627
<6>. QED BY <6>1, <6>2
628628
<5>. QED BY <5>1, <4>0a
629629
<4>5. \E n \in Node : \E t \in DOMAIN network'[n] :
@@ -709,9 +709,9 @@ LEMMA TypeOK_Step ==
709709
BY <7>2, <4>2, BagRemovePreservesToks
710710
<7>. QED BY <6>1, <7>3
711711
<6>2. CASE n2 # self
712-
<7>. network'[n2] = network[n2]
712+
<7>1. network'[n2] = network[n2]
713713
BY <4>1, <6>2
714-
<7>. QED
714+
<7>. QED BY <7>1
715715
<6>. QED BY <6>1, <6>2
716716
<5>. QED BY <5>1, <4>0a
717717
<4>5. \E n \in Node : \E t \in DOMAIN network'[n] :

0 commit comments

Comments
 (0)