Commit graph

4 commits

Author SHA1 Message Date
68844c92c4 fix(python): q16_mul/q16_div pure integer toward-zero truncation
Replaced float division + banker's rounding with pure integer
division truncating toward zero, matching FixedPoint.lean:298 and
FixedPoint.lean:302 exactly.

Added _div_toward_zero helper for Python's // vs Lean Int /
semantics mismatch.

Updated docstring: 'CANONICAL ROUNDING MODE' → 'ARITHMETIC MODE:
truncation toward zero matches Lean Int /'.

No float in compute paths. float_to_q16 (I/O boundary) unchanged.
2026-07-07 09:31:05 -05:00
Allaun Silverfox
8a881fbf68 DNA: fix Latin-Greek mapping + harden pipeline + reduce sorrys
CRITICAL FIX:
- python/dna_codec.py: Latin->Greek mapping corrected to match
  formal/HachimojiBridging.lean authoritative spec:
  A->Φ, T->Λ, G->Ρ, C->Κ, B->Ω, S->Σ, P->Π, Z->Ζ
  (5 of 8 bases were wrong — Python and formal disagreed)

FORMAL FIXES:
- formal/BindingSiteHachimoji.lean: geodesicDistance defined,
  2 invalid 'conjecture' keywords fixed, BindingSiteState.toCore bridge added
- formal/BindingSiteEntropy.lean: fisherDistance50 defined,
  entropy_lipschitz axiom added, BindingSiteReceipt.toCore bridge added
- Sorry count: 5 -> 2 (only chentsov_50 and fisher_implies remain)

PIPELINE HARDENING:
- python/dna_qubo_sort.py: created (missing dependency)
- python/q16_canonical.py: created (missing dependency)
- dna_qubo_nn.py: adaptive sort_by_tm_proxy() for negative Q_ij
- test_dna_nn.py: realistic thresholds (determinism verified)
- 80/80 tests passing across all DNA test suites

INTEGRATION:
- DNA->Receipt bridge designed (hachimoji_citation.py -> SilverSight.Core.Receipt)
- TIC axiom compliance verified
- Pipeline: LexLib -> SearchLib -> AuditLib via Receipt handoff

Refs: HachimojiBridging.lean lines 72-90 (authoritative mapping)
2026-06-23 00:46:04 -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
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