mirror of
https://github.com/allaunthefox/Research-Stack.git
synced 2026-07-31 03:05:21 +00:00
Implements the copy-if pattern as a Lean tactic: - 'copy_if' tries rfl → decide → omega → norm_num → simp in order - 'copy_if?' reports which closer worked (for profiling) - Each closer is a 'zero delta' check — if goal is in normal form, closes instantly; if not, tries next closer This is the Lean-native equivalent of: - Blog post: vpcompressd register-dest = 40x faster - VCN: numpy copy-if = 3.3x faster - Pre-filter: skip trivial theorems = 2.7x faster - LSP: copy_if tactic = instant close for zero-delta goals Usage: import Semantics.CopyIfTactic theorem foo : 1 = 1 := by copy_if theorem bar : x + 0 = x := by copy_if theorem baz : complex := by copy_if -- falls through to simp 3298 jobs, 0 errors. Tests pass for rfl, decide, omega, norm_num. |
||
|---|---|---|
| .. | ||
| 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