Explore Conservation Laws in Real-Time
Manipulate flows and sources to see how the discrete divergence theorem works in accounting
👆 Hover to see internal flows fade (they cancel pairwise!)
Click to randomly adjust a flow by ±10%. Watch the golden checks respond to show violations!
| Account | Inflows (+) | Outflows (−) | Source | Divergence | Net Change (Δ Balance) |
|---|
Sum of Divergences (excluding sources):
✓ Conservation law satisfied: $\mathbf{1}^T P \mathbf{a} = 0$ (debits = credits)
Mathematical Interpretation:
The divergence at each account is: $\text{div} = \sum (\text{outflows}) - \sum (\text{inflows})$
For a closed system (no external sources), the discrete divergence theorem requires: $$ \sum_{i=1}^{|A|} \text{div}(i) = 0 $$
This is equivalent to Kirchhoff's law ($\sum I_{\text{in}} = \sum I_{\text{out}}$) and the accounting identity (debits = credits).