A named weighting of tokens.
Constructors
MkInvariantinvariantName :: TextinvariantWeight :: tok -> Integer
:: a typeCtrl KGHC 10.0.0.20260917 · lts/ghc-10.0.x · 8174fa4 · 2026-10-11
Modulevortex-journal-0.1.0GHC2024
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.
A named weighting of tokens.
MkInvariantinvariantName :: TextinvariantWeight :: tok -> IntegerA marking's total weight.
An operation that does not conserve an invariant, with the weights of what it consumes and what it produces.
The operations, of those listed, that do not conserve the invariant (none, when it is one).
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.