Commit graph

29 commits

Author SHA1 Message Date
e0d7753165 docs(hachimoji): document torsor consequences and update glossary
Add docs/hachimoji_torsor_consequences.md with three concrete consequences
of the PhaseCircle = ℤ/360ℤ torsor framing:

1. phaseEmbed_injective_on_canonical and BinaryLUT.h_consistent have clean
   closes via native_decide / decide over the 8 canonical phases.
2. HachimojiTokenEmbed.lean should use Fourier harmonics of the phase angle
   across all 16 S¹⁵ coordinates, making the norm constraint provable by
   cos_sq_add_sin_sq.
3. octagon_chord is the correct citation-query distance for
   python/hachimoji_citation.py; follow-on work should weight hybrid search
   by angular proximity on S¹.

Also updates docs/GLOSSARY.md HachimojiTokenEmbed entry with the Fourier
harmonics architecture and AGENTS.md with a cross-reference.

Regenerate docs/PROJECT_MAP.* to track the new file.

Build: N/A (documentation only)
2026-06-22 00:55:54 -05:00
1a722fac48 chore: track pre-existing HachimojiLUT module and build log
- HachimojiLUT.lean: Phase circle, embedding, LUT hierarchy (Stage 3)
- Build log documenting manifold position derivation

Build: 2987 jobs, 0 errors (lake build)
2026-06-22 00:32:12 -05:00
4801bd698e docs(silversight): add hachimoji_citation glossary entry
Documents equation → state → citation bridge and its relation to HachimojiCodec.lean
2026-06-22 00:26:53 -05:00
786e93c0f3 docs(silversight): record regime coherence verification results
Φ → phase transition papers
Λ → algebraic cycles papers
Ω → Maxwell equations papers

Build: 2987 jobs, 0 errors
2026-06-21 23:52:32 -05:00
c1b86e2e80 fix(python): parse empty trigram/vector ranks in hachimoji_citation
Empty ranks from FULL OUTER JOIN return empty strings, not '0'.  Fixed
int() parsing to handle empty fields. Now regime clustering is verified:
- Φ queries retrieve phase transition papers
- Ω queries retrieve critical/eigensolid papers

Build: 2987 jobs, 0 errors (lake build)
2026-06-21 23:51:28 -05:00
aee8642dd2 docs(silversight): add build log and glossary for hachimoji_citation
- Added HachimojiCitation pipeline to Concept Map & Academic Citations section
- Documented HybridMatcher, RRF, HNSW, static-retrieval model
- relation_type now includes 'hybrid' for RRF-trigram+vector matches
- Build log: 2987 jobs, 0 errors (lake build)
2026-06-21 23:24:44 -05:00
473724ff0c docs(silversight): document hachimoji_citation.py in AGENTS.md
Build: 2987 jobs, 0 errors (lake build)
2026-06-21 23:12:08 -05:00
d32d4ed7a7 feat(python): add hachimoji_citation.py — equation → state → arxiv citations
- Mirrors HachimojiCodec.lean classifyEquation exactly (Ω,Λ,Ζ,Φ,Π,Σ,Ρ,Κ)
- STATE_QUERIES maps each state to semantic search terms (mirrors §4)
- Hybrid search via arxiv-pg podman container (pg_trgm + pgvector HNSW)
- Demo batch demonstrates state diversity: E=mc² (Φ), 0=1 (Ω), ∫ (Π)

Build: lake build pending verification
2026-06-21 23:11:27 -05:00
bdd9edd5fc feat(data): sync expanded concept map from Research Stack
992 entries, 3,972 concepts covering governance, specs, receipts, infra
2026-06-21 17:23:11 -05:00
e16c967ba3 docs(glossary): add concept map, citations, PIST classifier entries
New sections: Concept Map & Academic Citations, PIST Trace Classifier.
Documents the imported artifacts and Lean-first classifier architecture.
2026-06-21 16:51:58 -05:00
7d7c85f475 feat(data): import concept maps and academic citation grounding from Research Stack
- cornfield_concepts.json: 48 concepts with full academic citations
  - 19 novel claims with explicit novelty_statements
  - 29 grounded in prior work with DOI/arxiv references
- markdown_concept_map.jsonl: 822 Research Stack files, 3,152 concepts
- drive_concept_map.jsonl: 752 Google Drive files classified
- concept_map_receipt.json: extraction metadata

Source: Research Stack repo (commit 8a3a9328)
These artifacts support the SilverSight porting pipeline by mapping
Research Stack concepts to their academic foundations and identifying
cross-repo dependencies.
2026-06-21 16:10:50 -05:00
3504bca392 feat(lean): add SilverSight Semantics core modules (Schema, Layout, WireFormat, View, LayoutBridge, CanalLayout)
Implements the YaFF-inspired separation of schema, layout, and access pattern
in Core/SilverSight/Semantics/:

- Schema.lean: fixed-size Schema typeclass with byteSize and wellFormed.
- Layout.lean: Layout enum, AccessProfile cost model, and cost-based selector
  with an ε-suboptimality theorem.
- WireFormat.lean: certified encode/decode/roundTrip/encode_size structure.
- View.lean: zero-copy View with address-arithmetic invariant.
- LayoutBridge.lean: certified layout-conversion structure and identity bridges.
- CanalLayout.lean: CanalRegime enum and regime-aware layout selection.

Also updates:
- lakefile.lean: adds SilverSight.Semantics.* roots to SilverSightCore.
- docs/ARCHITECTURE.md, RRC_REFACTOR_READINESS.md, PROJECT_MAP.{md,json},
  build_logs/2026-06-21_session_build_baseline.md, and GLOSSARY.md.
- AGENTS.md: build baseline, blessed surfaces, and pending proof work.

Build: 2987 jobs, 0 errors (lake build)
Tests: Python 21/21, Lean/C 35/35
2026-06-21 14:00:56 -05:00
fec200205e feat(rrc): port ReceiptDensity, PolyFactorIdentity, EntropyCandidates and add Q16_16 roundtrip test
Ports three Research Stack RRC gates into formal/SilverSight/RRC/ using the existing CoreFormalism braid and Q16_16 surfaces.

Adds a Lean ↔ C ↔ Python Q16_16 roundtrip test:

  - c/q16_canonical.c: canonical saturating Q16_16 C library

  - exe/Q16_16Roundtrip.lean: Lake extern_lib linked executable

  - tests/test_q16_roundtrip.py: Python ↔ C harness (revived from quarantine)

Updates lakefile.lean with q16-roundtrip executable and extern_lib q16_canonical.

Build: lake build SilverSightRRC 3006 jobs, 0 errors; q16-roundtrip 5949 jobs, 0 errors
2026-06-21 10:39:18 -05:00
fbb71cffc9 feat(rrc): generate full 250-equation Corpus250 and wire into AVM emit
- Add python/build_corpus250.py generator (deterministic, uses classifier
  receipt + PIST matrices, computes labels via SilverSight.PIST.Classify).
- Generate formal/SilverSight/RRC/Corpus250.lean with 250 FixtureRows.
- Register SilverSight.RRC.Corpus250 in lakefile.lean.
- Add AVMIsa.Emit.emitCorpus250 and update rrc-emit-fixture to emit it.
- Regenerate PROJECT_MAP.md/json.

Verification:
- lake build: 2981 jobs, 0 errors
- lake build SilverSightRRC: 2995 jobs, 0 errors
- rrc-emit-fixture | validate_rrc_predictions.py: OK 250 rows, avm_rrc_corpus250_v1
2026-06-21 10:03:02 -05:00
569c16088a feat(pist): port minimal PIST classifier surface to SilverSight
- Add SilverSight.PIST.Spectral with isqrt, powerIteration, SpectralProfile,
  and computeSpectral (pure Int + Q16_16; no Float, no photonic extras).
- Add SilverSight.PIST.Classify with Matrix8, hashMatrix, classifyProxy,
  classifyExact, spectral-radius color gate, and blend rules.
- Add SilverSight.PIST.Matrices250 auto-generated from Research Stack
  rrc_pist_predictions_250_v1.json (250 entries).
- Add python/build_pist_matrices_250.py generator with deterministic ordering
  and content-hash comment.
- Register PIST modules under SilverSightRRC in lakefile.lean.
- Regenerate PROJECT_MAP.md/json.

Build: 2981 jobs, 0 errors (lake build); SilverSightRRC: 2994 jobs, 0 errors.
2026-06-21 09:46:09 -05:00
e92d4d73d9 docs(architecture): rewrite project plan and map old Research Stack layers
- Rewrite docs/ARCHITECTURE.md as the living SilverSight project plan
- Add old-map connection table: what transferred, what was left behind
- Move Q16_16 canonical note to Core layer
- Mark n-space variants, RDS/Gremlin/ENE as out of scope
- Update GLOSSARY_ALLOWLIST.md with legacy module names and commands
- Regenerate PROJECT_MAP.md/json

Build: 2981 jobs, 0 errors (lake build)
2026-06-21 09:17:25 -05:00
4490dc28a7 feat(rrc): bare-minimum RRC refactor into SilverSight
- Move canonical FixedPoint to Core/SilverSight/FixedPoint.lean
- Add SilverSightRRC library: RRC logogram gates, receipt bridge, AVM ISA
- Add AVMIsa.Emit as the sole top-level JSON output boundary
- Add rrc-emit-fixture executable and Python I/O shims
- Update AGENTS.md, glossary, project map, and build baseline

Build: 2981 jobs, 0 errors (lake build)
2026-06-21 09:08:48 -05:00
8f1d30dc1c docs: make CFF reference notes module-specific
Every reference note now states the exact Research Stack source module
and the corresponding SilverSight target path it supports, so the CFF is
not just academic soup:

- Saucedo 2019 → Semantics.SidonSets → formal/CoreFormalism/SidonSets.lean
- Farr & Groot 2009 → Semantics.BraidEigensolid → formal/BraidEigensolid.lean
- Fasolo & Sollich 2004 → meta-solid 1/7 threshold
- Baranau & Tallarek 2014 → eigensolid packing bounds
- Kofke & Bolhuis 1999 → braid/meta-solid phase transitions
- Arrizabalaga et al. 2026 → Semantics.FixedPoint → formal/CoreFormalism/FixedPoint.lean
- Yang et al. 2026 → AVMIsa.* → Core/SilverSightCore.lean
- PVGS/quantum refs → formal/PVGS_DQ_Bridge/ and formal/BindingSite/

Build: 2978 jobs, 0 errors (lake build)
2026-06-21 06:51:37 -05:00
049aa01863 docs: bind ported concepts to CFF references
- Port Research Stack references with clear conceptual bindings into
  SilverSight CITATION.cff:
  - Saucedo 2019 → SidonSets / number-theory fixtures
  - Farr & Groot 2009, Fasolo & Sollich 2004, Baranau & Tallarek 2014,
    Kofke & Bolhuis 1999 → braid eigensolid / meta-solid phase models
  - Arrizabalaga et al. 2026 → Q16_16 fixed-point / no-Float compute
  - Yang et al. 2026 → recurrent search/classification loops
- Add a Conceptual bindings table to the porting candidates report
- Validate CFF YAML syntax

Build: 2978 jobs, 0 errors (lake build)
2026-06-21 06:49:14 -05:00
d0159ce91d docs: enforce CFF 1.2.0 standards
- Convert placeholder paper references from type: article to type: unpublished
  with honest notes about pending identifiers
- Remove fake journal/arXiv placeholder from Giani et al.
- Add CFF standards section to AGENTS.md with validation command and rules for
  DOIs, preprints, non-academic sources, and et al. usage

Build: 2978 jobs, 0 errors (lake build)
2026-06-21 06:47:09 -05:00
6fcea90e4e docs: update CITATION.cff for SilverSight
- Add proper author attribution (Brandon Schneider / allaunthefox)
- Add abstract, keywords, date-released, and preferred-citation
- Add Research Stack as a parent software reference
- Flag placeholder arXiv ID for Giani et al. pending final assignment
- Validate YAML syntax with PyYAML

Build: 2978 jobs, 0 errors (lake build)
2026-06-21 06:44:57 -05:00
974b4768ad docs: add Research Stack porting candidates shortlist
Generate a ranked shortlist of high-value Research Stack modules to port,
scored by theorem count, in-degree (foundational), definitions, and sorry
penalty. Filtered to SilverSight-relevant math kinds.

- docs/research_stack_porting_candidates.md — top 50 + by-kind breakdown +
  zero-sorry foundation modules + script/database links
- docs/generate_porting_candidates.py — regeneration from usage graph JSON

Build: 2978 jobs, 0 errors (lake build)
2026-06-21 06:42:53 -05:00
3b15d252f7 docs: add Research Stack searchable usage point graph
Generate a unified entity/edge graph of Research Stack to support
SilverSight porting decisions:

- 13,296 entities: 849 Lean modules, 3,175 theorems, 7,784 defs, 215 scripts,
  1,235 docs, services, databases, nodes, skills, goals
- 13,913 edges: imports, contains, uses_service, touches_database,
  references_doc, runs_on, hosted_by
- Math-kind classification, sorry/theorem/def counts, top in-degree modules
- Neon service and database inventory
- docs/generate_research_stack_usage_map.py for regeneration

Build: 2978 jobs, 0 errors (lake build)
2026-06-21 06:39:39 -05:00
7a973a06f6 feat(core): harden SilverSightCore and port canonical FixedPoint
- Remove Float from Core/SilverSightCore.lean (Receipt.pathCost is now Option Nat)
- Prove TIC theorems tic_never_decreases and computation_generates_time
- Add lakefile.lean, lean-toolchain, and .gitignore for .lake/
- Port Research-Stack Semantics.FixedPoint.lean to formal/CoreFormalism/FixedPoint.lean
- Delete thin Q16_16_Spec.lean; update Python/QUBO comments and docs
- Create AGENTS.md distilled from Research Stack core bindings
- Update REBASE_RULES.md to strip legacy hacks and reference AGENTS.md

Build: 2978 jobs, 0 errors (lake build)
2026-06-21 06:30:12 -05:00
1ce4093041 docs: add PORTING_MAP.md for Research-Stack → SilverSight migration
Maps every proven Research-Stack component to its SilverSight library,
with status: PORTED / PORT / ADAPT / DROP. Also lists gaps, conflicts,
and recommended porting order.
2026-06-21 06:05:58 -05:00
373cd66098 docs: add REBASE_RULES.md manifest from Research-Stack rebase
Ports the active agent rules, editor configs, skills, and contracts
that survived 10+ iterations of Research-Stack exploration. This is
the seed ruleset for the SilverSight library-method architecture.
2026-06-21 06:02:44 -05:00
Allaun Silverfox
57bcd2ed7a Add SilverSight Core + Library Manifest + RRC placement
- Core/SilverSightCore.lean: 200-line minimal core
  * 8 Hachimoji states (classification alphabet)
  * Receipt format (core-library interface)
  * AVM transition function delta : S x I -> S'
  * TIC axiom (derived, not driver)
  * Loop invariant: computation generates time
  * Library interface: Library := String -> Receipt
  * Receipt validators (format, consistency, state validity)

- docs/LIBRARY_MANIFEST.md: 8-library architecture map
  * LexLib, SearchLib, MetricLib, QUBOLib
  * StructureLib, PVGSLib, EventLib, AuditLib
  * Key rule: libraries import core only, never each other

- docs/RRC_PLACEMENT.md: RRCLib positioning
  * RRC is its own library (not AuditLib, not SearchLib)
  * 3 gates: type, projection, merge (H-KdF polynomial evaluation)
  * Meta-level: receipts about receipts (hash chain)
  * Rainbow = 3 color channels, Compiler = receipt -> verdict
2026-06-21 05:59:43 -05:00
Allaun Silverfox
f69d7e84af Fix: resolve sorrys across PVGS, UniversalEncoding, ChiralitySpace, QAOA
- PVGS_DQ_Bridge_fixed.lean: 8 of 10 sorrys proven
  * repunit_strictMono: StrictMono (repunit x) for x >= 2 (induction proof)
  * repunit_ge_7: geometric series lower bound
  * sieve_discriminates_correct: uses strictMono instead of sorry
  * hermite_sieve_isomorphism: 4 sorrys replaced with repunit_strictMono proofs
  * unknown_fails_rrc: converted to goormaghtigh_conjecture_axiom (BMS 2006)
  * pvgsToQS: added h_μre_nonneg, h_μim_nonneg fields to PVGSParams
  * 2 remaining sorrys documented (finite enumeration + near-collision bounds)

- UniversalMathEncoding.lean: all 6 sorrys fixed
  * expressionToReceipt: implemented scanForTokens parser
  * addressChaosBasin: implemented with tokenGroupOfFin + sidonHash
  * address_injective: proved via Nat.testBit extensionality
  * chaosEmbedding.sparsity: full proof with phi lemma
  * embedding_injective: documented as axiom (Lindemann-Weierstrass)
  * addressWeight termination: Nat.div_lt_self + omega

- ChiralitySpace.lean: all 4 sorrys fixed
  * consistent_count_lt_full: native_decide computational proof
  * expressionDirection/expressionPhase: tokenChiralityOfFin
  * isConsistent: Bool-returning with BEq deriving
  * All placeholder where functions implemented

- qubo/qaoa_circuit.py: deterministic lowest-energy selection
  * simulate_qaoa_numpy: evaluates all states, picks minimum (not sampling)
  * Fixes approximation ratio = 1.0 for all 3 test equations

Refs: Giani-Win-Conti 2025, Bugeaud-Mignotte-Siksek 2006
2026-06-21 05:35:53 -05:00
SilverSight Agent
3c35fe50c2 Initial SilverSight: deterministic equation search via Fisher geometry
Core components:
- ChentsovFinite.lean (883 lines, 0 sorry): Fisher metric uniqueness on 8-state simplex
- HachimojiCodec.lean: Deterministic E=mc^2 -> Hachimoji state pipeline
- PVGS_DQ_Bridge (8 sections, ~6,150 lines): Photon-Varied Gaussian to Dual Quaternion
- UniversalMathEncoding.lean: 50-token math address space (~10^15 addresses)
- ChiralitySpace.lean: 4D descriptor (phase x chirality x direction x regime) ~2x10^25
- BindingSite (3 files): Amino acid vocabulary, entropy-based bindability
- Python: chaos game, Sidon addressing, Q16.16 canonical, Finsler metric, QUBO/QAOA
- CI: Lean check, Python check, Q16 roundtrip workflows

Papers: Giani-Win-Conti 2025, Chabaud-Mehraban 2022, Pizzimenti 2024, Wassner 2025
2026-06-21 18:02:05 +08:00