SilverSight/python
allaun 4ea68bcecc feat(spectral): gap-aware spectral codebook generator with exact char-poly fingerprints
Implements the Next Steps of docs/SPECTRAL_CODEBOOK_ANALYSIS.md as
python/spectral_codebook.py (stdlib-only; NumPy optional fast path):

- Parses the 250 8x8 braid adjacency matrices from PIST/Matrices250.lean.
- Primary fingerprint: exact integer characteristic-polynomial
  coefficients via Faddeev-LeVerrier in Fraction arithmetic (196 unique
  over 238 distinct matrices, vs 179 unique lambda at 4dp; 6 cospectral
  non-identical groups; 11 exact-duplicate matrix groups / 23 ids).
- Corrects the analysis doc: the 9 'mid band' lambda in (0.5,1) are
  power-iteration non-convergence artifacts - exact rho = 1.0 for all 9
  (peripheral spectra). spectral_radius is now the exact max root
  modulus (numpy eigvals or Durand-Kerner on the exact char poly);
  power-iteration lambda kept only for traceability.
- Gap-aware quantization: dedupe to 238 distinct matrices, boundaries at
  gaps > 3x median gap, min-support guard (>=10 distinct per cluster),
  sparse-tail outlier flagging above lambda ~= 7.66. Result: 9 clusters.
- Round trip encode(matrix) -> (codeword, index) -> decode -> equation_id
  verified bijective over all 250 in tests/test_spectral_codebook.py.
- 278-row RRC/Q16_16Manifold corpus: 28 extra rows are repeated ids;
  boundaries reproduce exactly, no new gaps or clusters.
- Emits data/spectral_codebook.json (schema spectral_codebook_v2) with
  explicit collision classes; docs/SPECTRAL_CODEBOOK_GENERATOR.md notes
  the hashMatrix base-5 injectivity gap and the ClassifyN threshold
  (1.5/4.0 Q16.16) vs analysis-doc (0.5/1.0) mismatch.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
2026-07-01 20:39:40 -05:00
..
nuvmap feat(wolfram): add Wolfram Alpha MCP server + SOPS-encrypted API key 2026-06-30 17:28:22 -05:00
phi chore(quality): native_decide migration, docs, and phi pipeline cleanup 2026-06-27 01:56:54 -05:00
avm.py feat(tests): Python AVM port rewrite + test harness, Go test harness 2026-06-30 17:56:09 -05:00
avm_dataset_panel.py feat(cartan-dna): Cartan-DNA bridge — derive spectral gap from encoder 2026-06-30 20:06:38 -05:00
build_manifold.py fix: reclassify 278-row manifold with exact CharPoly classifier 2026-07-01 21:27:43 +00:00
build_pist_matrices_250.py feat: README, CI pipeline, Dependabot config 2026-06-30 05:48:50 -05:00
cartan_dna_bridge.py feat(cartan-dna): Cartan-DNA bridge — derive spectral gap from encoder 2026-06-30 20:06:38 -05:00
chaos_game.py Initial SilverSight: deterministic equation search via Fisher geometry 2026-06-21 18:02:05 +08:00
character_transform.py feat(character): Z₂⁴ character transform — Sidon → Cartan bridge 2026-06-30 20:21:14 -05:00
charpoly_codebook.py feat: exact charpoly codebook + fix design doc 2026-07-01 21:15:46 +00:00
chiral_spectral_lut.py feat(lut): Chiral Spectral LUT — 65K entries, 5 regimes, 0.1s, zero floats 2026-06-30 20:39:02 -05:00
cross_verify_charpoly.py verify: CharPoly Newton identities match numpy for all 250 matrices 2026-07-01 21:25:43 +00:00
dna_braid.wgsl feat(dna): unified theory — DNA encoding, epigenetic computation, logarithmic vector spaces 2026-06-23 02:18:16 +00:00
dna_codec.py DNA: fix Latin-Greek mapping + harden pipeline + reduce sorrys 2026-06-23 00:46:04 -05:00
dna_encode_file.py feat(dna): unified theory — DNA encoding, epigenetic computation, logarithmic vector spaces 2026-06-23 02:18:16 +00:00
dna_gpu.py feat(dna): unified theory — DNA encoding, epigenetic computation, logarithmic vector spaces 2026-06-23 02:18:16 +00:00
dna_lut.py feat(dna): unified theory — DNA encoding, epigenetic computation, logarithmic vector spaces 2026-06-23 02:18:16 +00:00
dna_qubo_nn.py fix(dna): resolve nearest-neighbor sorting and correlation limits 2026-06-24 03:12:29 -05:00
dna_qubo_sort.py fix(dna): resolve nearest-neighbor sorting and correlation limits 2026-06-24 03:12:29 -05:00
dna_radix_gpu.py feat(dna): unified theory — DNA encoding, epigenetic computation, logarithmic vector spaces 2026-06-23 02:18:16 +00:00
dna_surface.html feat(dna): unified theory — DNA encoding, epigenetic computation, logarithmic vector spaces 2026-06-23 02:18:16 +00:00
dna_surface.wgsl feat(dna): unified theory — DNA encoding, epigenetic computation, logarithmic vector spaces 2026-06-23 02:18:16 +00:00
dna_surface_gpu.py fix: address adversarial review findings 2026-06-23 08:28:30 -05:00
dna_webgpu.html feat(dna): add remaining source files and surface images 2026-06-23 02:27:40 +00:00
dna_webgpu.js feat(dna): unified theory — DNA encoding, epigenetic computation, logarithmic vector spaces 2026-06-23 02:18:16 +00:00
equation_dna_encoder.py chore(quality): native_decide migration, docs, and phi pipeline cleanup 2026-06-27 01:56:54 -05:00
eridos_renyi_quimb.py feat(final-sprint): Erdős-Rényi critical + quimb + 4-mode engine 2026-06-23 03:11:40 -05:00
exhaustive_8x8.py compute(exhaustive): integer-only 8x8 — 65K configs, 5 distinct spectral states 2026-06-30 20:38:06 -05:00
exhaustive_partitions.py compute(transform): exhaustive_partitions.py — 105 pairings × 4 chiral states = 420 configs 2026-06-30 20:34:20 -05:00
expr_tree.py feat(silversight): symbolic regression core + Kepler test PASSED 2026-06-22 03:29:13 -05:00
gemma4_mcp.py chore(quality): native_decide migration, docs, and phi pipeline cleanup 2026-06-27 01:56:54 -05:00
generate_predictions.py fix: match predictions to manifold by object_id 2026-06-30 04:54:40 -05:00
goormaghtigh_detector.py feat: Goormaghtigh spectral collision detector 2026-07-01 21:46:26 +00:00
hachimoji_citation.py fix(python): parse empty trigram/vector ranks in hachimoji_citation 2026-06-21 23:51:28 -05:00
hopf_dna_analysis.py fix(avm-review): resolve adversarial review findings 2026-06-30 19:01:47 -05:00
hopf_dna_assessment.md fix(avm-review): resolve adversarial review findings 2026-06-30 19:01:47 -05:00
hopf_dna_fiber.py fix(avm-review): resolve adversarial review findings 2026-06-30 19:01:47 -05:00
hopf_dna_sort.py fix(avm-review): resolve adversarial review findings 2026-06-30 19:01:47 -05:00
hopf_helical.py fix(avm-review): resolve adversarial review findings 2026-06-30 19:01:47 -05:00
hopf_helical_mapper.py fix(avm-review): resolve adversarial review findings 2026-06-30 19:01:47 -05:00
integration_sprint.py fix: address 3 bugs from spectral codebook review 2026-07-01 21:08:41 +00:00
linear_scaling.py feat(silversight): symbolic regression core + Kepler test PASSED 2026-06-22 03:29:13 -05:00
log_prescreen.py feat(silversight): log prescreen + finite-infinity duality 2026-06-22 03:41:53 -05:00
master_lut.py feat(lut): Master LUT — 6 tables, 65,591 entries, 0.0s, zero floats 2026-06-30 20:40:58 -05:00
multimode_engine.py chore: commit all pending work from prior sessions 2026-06-30 04:54:40 -05:00
nr_bracket_validation.py cherry-pick: import AdjugateMatrix, ColdReviewer, RollupEvent from Research-Stack 2026-06-28 15:54:10 +00:00
nr_bracket_validation_receipt.json chore(quality): native_decide migration, docs, and phi pipeline cleanup 2026-06-27 01:56:54 -05:00
pist_braid_bridge.py fix: address 3 bugs from spectral codebook review 2026-07-01 21:08:41 +00:00
pist_fiedler_chiral.py docs: Hopf Portability Criterion + Ingest Bridge — 4-agent synthesis 2026-06-30 19:53:58 -05:00
pist_matrix_builder.py feat(rrc): bare-minimum RRC refactor into SilverSight 2026-06-21 09:08:48 -05:00
q16_canonical.py DNA: fix Latin-Greek mapping + harden pipeline + reduce sorrys 2026-06-23 00:46:04 -05:00
sidon_address.py Initial SilverSight: deterministic equation search via Fisher geometry 2026-06-21 18:02:05 +08:00
silversight_engine.py feat(engine): R2 hierarchical tau with depth weighting — 3-agent verified 2026-06-23 06:40:12 -05:00
spectral_codebook.py feat(spectral): gap-aware spectral codebook generator with exact char-poly fingerprints 2026-07-01 20:39:40 -05:00
spectral_profile.py docs(spectral_profile): mark as disconnected from Lean pipeline 2026-07-01 20:10:00 +00:00
sprint_receipt.json feat(integration): add sprint receipt JSON 2026-06-23 03:54:45 -05:00
test_search.py Initial SilverSight: deterministic equation search via Fisher geometry 2026-06-21 18:02:05 +08:00
validate_rrc_predictions.py fix: resolve h11 CVE-2025-43859 (critical) 2026-07-01 20:01:41 +00:00
verify_pvgs_sorries.py feat: PVGS sorry verification via spectral codebook 2026-07-01 21:52:48 +00:00