Research-Stack/0-Core-Formalism
Brandon Schneider b220511fa0 feat: Laplace cofactor identity formalized in AdjugateMatrix.lean
New section §11: A × adj(A) = det(A) × I

Cofactor identity infrastructure:
- cofactorSign: checkerboard (-1)^(i+j)
- cofactorProductEntry: Σ_k A[i][k] × adj(A)[k][j]
- Verified by #eval on identity, diag(2,1,...,1), permutation, zero-row, equal-rows

Proved theorems (by native_decide on concrete matrices):
- cofactor_identity_identity_diag: I × adj(I)[i,i] = det(I)
- cofactor_identity_identity_offdiag: I × adj(I)[i,j] = 0 for i≠j
- cofactor_identity_diag2: diag(2,1,...) × adj = det × I
- det_self_inverse_exact_diag2: diag(2,1,...) × inv = I

Optimization shortcuts (from user guidance):
- bestRow/bestCol: choose expansion line with most zeros
- hasZeroDeterminant: zero row / equal rows → det = 0
- isUpperTriangular/isLowerTriangular: det = product of diagonal
- triangularDet: product of diagonal for triangular matrices

General cofactor_identity: sorry (needs equal-rows→det=0 lemma)
det_self_inverse_exact_from_cofactor: sorry (proof sketch complete)
det_self_inverse: sorry (Q16_16 obstruction, documented)

lake build: 3300 jobs, 0 errors
2026-05-28 18:58:07 -05:00
..
core Remove legacy Python prototypes superseded by Lean formalization 2026-05-19 15:34:17 +00:00
lean feat: Laplace cofactor identity formalized in AdjugateMatrix.lean 2026-05-28 18:58:07 -05:00
otom Add Phys.org May 2026 source intake for bees, biocoatings, THz, and diamond membranes 2026-05-23 19:27:37 -05:00
receipts docs: add bio optical witness living light equations 2026-05-09 20:53:51 -05:00
rust/ftdi_gimbal initial: sovereign research stack (consolidated, weightless, and lfs-optimized) 2026-05-04 18:11:36 -05:00
README.md initial: sovereign research stack (consolidated, weightless, and lfs-optimized) 2026-05-04 18:11:36 -05:00

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