HORIZON HASKELLDocslts/ghc-10.0.xfc4e5982026-10-11Search names, modules, packages, or :: a typeCtrl K

GHC 10.0.0.20260917 · lts/ghc-10.0.x · fc4e598 · 2026-10-11

Modulevortex-journal-0.1.0GHC2024

Vortex.Journal.Invariant

Place invariants: linear weights over tokens that every operation conserves. Checked once per net, over its operations, never per run: if every operation's post weighs what its pre does, every state the net reaches weighs what the initial marking does.

  • 2 types
  • 3 values
valuebound :: Net op ans tok -> Invariant tok -> tok -> Maybe Integer
#

What a conserved invariant with non-negative weights bounds a token's count by in every reachable state: the initial weight over the token's own weight. Nothing for a token of weight zero, which it does not bound.