mirror of
https://github.com/allaunthefox/Research-Stack.git
synced 2026-07-31 03:05:21 +00:00
- FixedPoint.lean: rewrite add/sub with two's-complement overflow detection on UInt32 (replaces Int.ofNat approach that broke negative Q16_16 values). Both positive and negative inputs now correctly saturate at the representable bounds. - FixedPoint.lean: add add_zero, zero_add, sub_self, sqrt_zero, sqrt_one theorems with proofs for the corrected add/sub. - FixedPoint.lean: fix Q0_16 doc (0x7FFF = 1.0, not 0x8000) and div-by-zero (returns zero, not max). - TorsionalPIST.lean: Fix16_sub_self, Fix16_mul_zero delegate to FixedPoint theorems; Fix16_add_zero proven via add_zero. |
||
|---|---|---|
| .. | ||
| 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