The Governance Layer book makes 12 concrete, falsifiable predictions — four per chapter — about the behaviour of its algorithms. Each prediction is implemented as a Python function inDocumentation Index
Fetch the complete documentation index at: https://mintlify.com/xcoder-es/governance-layer/llms.txt
Use this file to discover all available pages before exploring further.
src/governance/prove/predictions.py that sets up the required state, runs the scenario, asserts the predicted outcome, and returns a PredictionResult containing a PASS/FAIL flag and a human-readable evidence string. All 12 predictions pass against the current implementation and their results are committed to results/prove_results.json.
CLI Commands
Output Format
The runner prints a summary block to stdout showing the PASS/FAIL status, prediction ID, chapter and section reference, description, and evidence string for each result.Predictions by Chapter
- Chapter 2 — Neural Parliament
- Chapter 3 — Ulysses Contracts
- Chapter 4 — Identity Layer
Chapter 2 predictions verify the Parliament’s core deliberation mechanics: budget enforcement, priority ordering, weighted voting, and tag-compliance penalties.
| ID | Section | Description | Evidence (from results) |
|---|---|---|---|
| P01 | §3.1 | Budget enforces proposal cap | Member budget=3, submitted=10, agenda=3 |
| P02 | §3.2 | CRITICAL_SAFETY ordered before ROUTINE | First in agenda: critical_first (tag=CRITICAL_SAFETY) |
| P03 | §3.4 | Weighted vote matches formal spec | Weighted avg=0.000, threshold=0.5, decision=default |
| P04 | §3.7 | Tag compliance halves budget after 3+ falsifications in a single cycle | Initial budget=3, final budget=1 (expected <= 1) |
JSON Export
Pass--json <path> to write the full result set to a JSON file. The schema matches results/prove_results.json:
results/prove_results.json records the 12/12 PASS result from the reference implementation.
Lean 4 Machine-Checked Proofs
Two theorems from the Python predictions are additionally verified in Lean 4 in thegov-budget-proof/ directory. These proofs are fully machine-checked and do not rely on runtime test execution.
BudgetEnforcement.lean
Proves the budget enforcement invariant (κ₂): for all possible governance cycles, no member’s
used counter exceeds their budgets value. The proof covers processProposal, processCycle, and induction over arbitrary proposal lists. Corresponds to Prediction P01.VoteAndFalsification.lean
Proves vote threshold consistency and determinism: vote resolution is deterministic (law of excluded middle), equal vote lists produce the same outcome, and budget halving preserves
b ≥ 1 when starting from b ≥ 1. Directly corresponds to Predictions P03 and P04.The Lean proofs require Lean 4 and the Mathlib toolchain defined in
gov-budget-proof/lean-toolchain. They are not needed to run the Python prediction suite. Run lake build inside gov-budget-proof/ to check them locally.