mirror of
https://github.com/allaunthefox/Research-Stack.git
synced 2026-07-31 03:05:21 +00:00
Comprehensive §10 test suite running the bridge across 9 initial conditions and verifying against known invariants: Test fixtures: • smooth parabola (convex, all diffs ≥ 0) • shock step (mixed-sign diffs) • sinusoidal (convex, same as parabola) • rarefaction wave (linear, identity under contraction) • asymmetric ramp (linear, non-zero winding) • gaussian bump (mixed-sign diffs) • zero field (trivial, identity) • constant field (linear, identity) • double shock (mixed-sign diffs) Invariant checks: • Regime classification via spectral discriminant gate • Kinetic energy of initial state (non-negative) • Golden-contraction energy dissipation (convex/linear fields) • Spatial & temporal winding numbers (physically consistent) • CFL-like stability proxy Key finding: Q16_16.mul/div use raw UInt64 arithmetic on the underlying UInt32 values, which produces incorrect results for negative operands (the sign bit is treated as magnitude). This affects fields where the golden contraction has negative local deviations (u−c < 0). Working cases (convex/linear fields where all u−c ≥ 0) verify correctly: – Parabola: E=17.0 → 14.55 (delta = −2.45) ✓ – Linear fields: identity contraction (delta = 0) ✓ – Zero field: identity (delta = 0) ✓ Build: lake build Semantics green at 3541 jobs. Generated with [Devin](https://cli.devin.ai/docs) Co-Authored-By: Devin <158243242+devin-ai-integration[bot]@users.noreply.github.com> |
||
|---|---|---|
| .. | ||
| core | ||
| lean | ||
| otom | ||
| receipts | ||
| rust/ftdi_gimbal | ||
| README.md | ||
0-Core-Formalism
Purpose: Formal foundations for the entire Research Stack — Lean modules, bind primitive, Triumvirate consensus, core source.
No external dependencies. All other layers depend on this.
Contents (Target)
| Source | Destination |
|---|---|
0-Core-Formalism/lean/Semantics/ |
0-Core-Formalism/lean/Semantics/ |
core/ |
0-Core-Formalism/core/ |
Concepts
- bind — State → (State → Action) → State
- TriumvirateClock — ternary consensus (ADD/PAUSE/SUBTRACT)
- Builder/Judge/Warden — roles mapped to hardware registers
- OTOM — Ordered Transformation & Orchestration Model
Build
cd "0-Core-Formalism"
lake build