HORIZON HASKELLDocslts/ghc-10.0.x77a86622026-10-31Search packagesCtrl K
Theme: |

GHC 10.0.0.20260917 · lts/ghc-10.0.x · 77a8662 · 2026-10-31

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.

Synopsis
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.