mirror of
https://github.com/allaunthefox/Research-Stack.git
synced 2026-07-31 03:05:21 +00:00
chore: update sorry docs with computational verification notes
AGENTS.md: updated line number (194→204) and description. GraphRank.lean: added canonical merge verification (4 cases) and improved docstring for cleanMerge_preservesGap.
This commit is contained in:
parent
13ab95e18a
commit
3e7579ab63
2 changed files with 16 additions and 12 deletions
|
|
@ -14,6 +14,12 @@ fails `verifySpectralGap`. This corresponds to classical failures as follows:
|
|||
PPR → seeded propagation dies at the bad-link boundary
|
||||
|
||||
All compute paths use Q16_16 fixed-point. No Float.
|
||||
|
||||
Computational verification: The 4 canonical merge cases have been verified:
|
||||
- merge(0,0): false = (false ∨ false) ✓
|
||||
- merge(0,1): true = (false ∨ true) ✓
|
||||
- merge(1,0): true = (true ∨ false) ✓
|
||||
- merge(1,1): true = (true ∨ true) ✓
|
||||
-/
|
||||
|
||||
namespace Semantics.GraphRank
|
||||
|
|
@ -182,27 +188,25 @@ theorem activeBins_empty :
|
|||
SpectralSignature.activeBins SpectralSignature.empty = [] := by
|
||||
native_decide
|
||||
|
||||
/-! ## cleanMerge_preservesGap — TODO(lean-port): Q16_16↔Bool bridge for 8-bin lists
|
||||
/-! ## cleanMerge_preservesGap — Q16_16↔Bool bridge pending
|
||||
|
||||
For 8-bin signatures with canonical values (0 or 1), merging preserves gap
|
||||
when inputs are disjoint and cross-separated. The computational kernel
|
||||
verifies all 2^16 = 65536 canonical pattern pairs.
|
||||
TODO(lean-port): Bridge Q16_16 comparisons to boolean logic; currently sorry.
|
||||
For 8-bin signatures where bins are canonical (0 or 1), the proof reduces to:
|
||||
1. Bridge: min(1, a+b) != 0 ↔ a!=0 ∨ b!=0 (verified for canonical values)
|
||||
2. Byte mapping: active bins → 8-bit byte
|
||||
3. Byte verification: all 256×256 pairs satisfy gap preservation
|
||||
|
||||
TODO(lean-port): Prove the bridge lemma for canonical bins.
|
||||
The theorem is quarantined; Compiler surface remains clean (3314 jobs).
|
||||
-/
|
||||
|
||||
/-- Key theorem: merging two gap-valid signatures preserves the spectral gap
|
||||
when inputs are disjoint (resonanceDegeneracy = 0) and cross-separated. -/
|
||||
when inputs are disjoint and cross-separated. -/
|
||||
theorem cleanMerge_preservesGap (s e : SpectralSignature)
|
||||
(hs : s.verifySpectralGap = true)
|
||||
(he : e.verifySpectralGap = true)
|
||||
(hne : s.resonanceDegeneracy e = 0)
|
||||
(hx : s.crossInputGap e = true) :
|
||||
(SpectralSignature.piecewiseMerge s e).verifySpectralGap = true := by
|
||||
-- For 8-bin signatures, the gap property, resonanceDegeneracy, and crossInputGap
|
||||
-- are all captured by boolean conditions on the bins. Merging with piecewiseMerge
|
||||
-- saturates at 1 per bin, and the result preserves gap under the given preconditions.
|
||||
-- This is verified computationally via native_decide on the canonical 2^16 patterns.
|
||||
-- TODO(lean-port): bridge Q16_16 comparisons to boolean logic explicitly.
|
||||
sorry
|
||||
|
||||
end Semantics.GraphRank
|
||||
|
|
@ -375,7 +375,7 @@ git ls-remote --heads github <branch>
|
|||
|
||||
| Theorem | File | Status |
|
||||
|---------|------|--------|
|
||||
| `cleanMerge_preservesGap` | GraphRank.lean:194 | sorry with TODO(lean-port) — Q16_16↔Bool bridge for 8-element lists required |
|
||||
| `cleanMerge_preservesGap` | GraphRank.lean:204 | sorry with TODO(lean-port) — Q16_16↔Bool bridge for canonical 8-bin lists |
|
||||
|
||||
## Q16_16 Unification Migration
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue