Skip to content

Commit

Permalink
Prove abs type-correct.
Browse files Browse the repository at this point in the history
Signed-off-by: Markus Alexander Kuppe <[email protected]>
  • Loading branch information
lemmy committed Oct 28, 2024
1 parent 6f7048b commit ccece6d
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 1 deletion.
3 changes: 2 additions & 1 deletion tla/consensus/abs.tla
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,8 @@ ASSUME /\ IsStrictlyTotallyOrderedUnder(<, Terms)
/\ \E min \in Terms : \A t \in Terms : t <= min

CONSTANT StartTerm
ASSUME /\ StartTerm \in Terms
ASSUME StartTermIsTerm ==
/\ StartTerm \in Terms
/\ \A t \in Terms : StartTerm <= t

\* Commit logs from each node
Expand Down
10 changes: 10 additions & 0 deletions tla/consensus/abs_proof.tla
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
---- MODULE abs_proof ----
EXTENDS abs, TLAPS

LEMMA Spec => TypeOK
<1> USE DEF TypeOK
<1>1. Init => TypeOK BY StartTermIsTerm DEF Init, InitialLogs
<1>2. TypeOK /\ [Next]_cLogs => TypeOK' BY DEF Next, Extend, Copy, CopyMaxAndExtend
<1>. QED BY <1>1, <1>2, PTL DEF Spec

======

0 comments on commit ccece6d

Please sign in to comment.