You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
hyperpolymath edited this page Aug 8, 2026
·
1 revision
Mathematical Contract
The Mathematical Contract in Svalinn is a formal specification that dictates system behaviour under all possible conditions.
Contract Definition
A contract C is defined as a tuple (S, I, T), where:
S is the set of all possible system states.
I is the set of invariant properties that must hold true in all states s in S.
T is the state transition function T(s, a) -> s'.
Core Invariants
Non-Interference: High-security data must never influence low-security observable behaviour.
Provenance: Every state transition must be accompanied by a valid zero-knowledge proof of authorization.
Immutability of Audit: The append-only log cannot be modified or truncated.
Enforcement
These contracts are not merely documentation; they are translated into machine-readable specifications in the .machine_readable directory and enforced by the compiler plugin. Any code change that violates these invariants will fail to compile.