Already think in Lamport's state machines, invariants, TLC model checking, and refinement mappings? Filter every TLA+ construct alongside its idiomatic zero-dependency Lean 4 counterpart.
State Variables (`VARIABLES`)
TLA+ declares untyped global variables; Lean groups state cleanly into a typed `structure`.
inductive Next : SysState → SysState → Prop
| bumpEpoch (s : SysState) :
Next s { s with leaderEpoch := s.leaderEpoch + 1 }
| commitWrite (s : SysState) (v : String)
(h : s.leaderEpoch ≥ s.storageEpoch) :
Next s { s with storageEpoch := s.leaderEpoch, committedVal := some v }
theorem inv_init (s : SysState) : Init s → Inv s := ...
theorem inv_next (s s' : SysState) : Inv s → Next s s' → Inv s' := ...
theorem reachable_safe (s : SysState) : Reachable s → Safe s := ...
Refinement Mapping & Stuttering (`INSTANCE Abs WITH ...`)
Concrete implementation steps map either to an abstract `SpecNext` step or an abstract stuttering step `abs s' = abs s`.