SilverSight/formal
allaunthefox cd91eca22f fix: address 3 bugs from spectral codebook review
Bug 1: Phinary packing not injective (integration_sprint.py)
- Old: float accumulation (phinary += c * PHI^(-i)) loses precision
- New: integer positional packing with provable injectivity
  - Integer coefficients: base = max(|coeff|) + 1
  - Float coefficients: quantize to 16-bit, pack in base 65536
- Round-trip is now guaranteed injective

Bug 2: Torus winding saturates at n >= 65536 (pist_braid_bridge.py)
- spiral_to_torus_winding stores b = n//2 as Q16.16, clamps at 32768
- Added spiral_to_torus_winding_safe() with saturation detection
- Returns (winding, saturated) tuple so callers can handle overflow
- Documented the limitation in docstrings

Bug 3: Power iteration non-convergence (pist_braid_bridge.py + MatrixN.lean)
- power_iteration_q16 now returns (eigenvalue, converged) tuple
- Detects oscillation via Rayleigh quotient stability check
- Added exact_eigenvalue_q16() fallback using numpy
- compute_pist_spectral auto-falls-back on non-convergence
- Lean MatrixN.lean: documented known limitation in docstring

All 3 bugs are from the independent review by Claude Fable.
2026-07-01 21:08:41 +00:00
..
BindingSite feat(phi): Hachimoji N=8 foundation, Phi pipeline, AVMIsa audit report 2026-06-28 00:11:39 -05:00
CoreFormalism fix(e8sidon): levelset axioms → proven theorems, N=32/64 are NOT Sidon 2026-06-30 21:16:29 -05:00
PVGS_DQ_Bridge chore(quality): native_decide migration, docs, and phi pipeline cleanup 2026-06-27 01:56:54 -05:00
RRCLib feat(rrc): bare-minimum RRC refactor into SilverSight 2026-06-21 09:08:48 -05:00
SilverSight fix: address 3 bugs from spectral codebook review 2026-07-01 21:08:41 +00:00
UniversalEncoding chore(quality): native_decide migration, docs, and phi pipeline cleanup 2026-06-27 01:56:54 -05:00