Commit graph

8 commits

Author SHA1 Message Date
b6a4cf9e4d feat(ingest): Landauer + Shannon entropy density check via rgflow
Density now measured by information-theoretic bounds, not just counts:

Shannon entropy H = -Σ p(x) log₂ p(x) over equation symbol distribution
  - Higher H = more informational diversity = denser content
  - RG flow bound: H < ln(2⁸) ≈ 2.08 for 8-strand representation

Landauer cost E = N·kT·ln(2) where N = distinct math tokens
  - Each distinct symbol requires erasing energy
  - kT = 0.025 eV at 290K → ~0.017 eV per bit

Density levels:
  THERMODYNAMIC_SATURATION: both Shannon + Landauer exceed bounds
  SHANNON_SATURATED: entropy > rgflow fixed-point
  LANDAUER_EXPENSIVE: energy cost too high
  COUNT_EXCEEDED: simple count threshold
2026-06-30 20:51:17 -05:00
6f27ee7b47 feat(ingest): Rust equation ingestion pipeline — Markdown → Parse → Classify → Compute
rust/src/bin/ingest.rs:
  - Parses $\LaTeX$ equations from .md files (block 602556 and inline $)
  - Classifies as spectral/braid/cartan/unknown via keyword detection
  - Density check: pauses at >20 equations or >5 unknowns
  - Computes spectral fingerprint (σ, τ, ∆, λ_min, λ_max) via character transform
  - Emits receipt.json with full results
  - Writes .decision.md for user review when too dense

Rust CLI, zero-float spectral computation, serde JSON output.

Cargo.toml: added regex + serde dependencies.
2026-06-30 20:48:20 -05:00
1e20691cb1 docs: Hopf Portability Criterion + Ingest Bridge — 4-agent synthesis
Hopf Portability Criterion:
- 6 necessary conditions for problem portability (A-F)
- 28 = 4×7 = 2²×(2³−1) factorization theorem
- n=8 is the maximal group-theoretic Hopf encoding
- 15 annotated domain templates

Hopf Ingest Bridge:
- Input schema: problem metadata → 6 conditions → fingerprint
- 15 pre-classified templates (physics, optimization, NT, geometry)
- Output receipt: schema hopf_ingest_receipt_v1
- Architecture: JSON → Checker → Computer → Matcher → Receipt

Cross-agent consensus:
- Topological insulators: strongest physics port
- Anyons/TQC: π⁷(S⁴)=ℤ₂₈ exact match (deepest theory)
- QUBO: strongest optimization port
- Crystalline cohomology: strongest arithmetic port
2026-06-30 19:53:58 -05:00
b533b8d6ca fix(avm-review): resolve adversarial review findings
Rust fixes:
- Remove Q0_16 Not arm (was silently returning Bool(false) instead of type error)
- Replace inline floor division with floor_div() calls in MulSatQ16/DivSatQ16
- Fix comment ranges for Q0_16 [-32767, 32767] and Q16_16 [-2147483647, 2147483647]

Go fixes:
- Add euclideanDiv() matching Lean Int.ediv (remainder ≥ 0)
- Use euclideanDiv for MulSatQ16 and DivSatQ16
- Change Locals from []*Val to []Val (dangling pointer fix)
- Step on halted state returns &s, nil (Lean returns Ok s)
- OOB PC returns error instead of silent halt
- Halt does not increment PC (Lean: PC unchanged)

All Go tests pass (9/9)
2026-06-30 19:01:47 -05:00
1978542c01 chore: add rust/target/ to gitignore, clean up build artifacts 2026-06-30 17:42:53 -05:00
863da04f21 feat(avm-ports): port AVM ISA to all 12 scientific languages
Lean (reference), Python, Rust, C, C++, Go, Julia, R, Scala, Fortran,
Coq, Octave — all implementing the same AVM ISA v1 specification.

Every port implements:
- Full type universe: Q0_16, Q16_16, Bool
- 11 primitives with floor division (Lean Int.ediv), V6 signed comparison,
  symmetric clamping [-2147483647, 2147483647]
- 12 instruction opcodes with stack depth limit (1024)
- Fuel-bounded run loop
- Error handling (stack under/overflow, type mismatch, div-by-zero, jump OOB)
2026-06-30 17:42:38 -05:00
aeb87d86c8 fix(avm-ports): align all 3 ports with Lean reference
Fixes applied to Rust, Julia, and R AVM ISA ports:

1. Division rounding: use floor division (matching Lean Int.ediv)
2. Clamp range: symmetric [-2147483647, 2147483647] for Q16_16,
   [-32767, 32767] for Q0_16 (preserves negation involution)
3. V6 sign-decomposition comparison for ltQ16
4. Stack depth limit: maxStackDepth = 1024 with StackOverflow error
5. Added AVM-specific constants and helpers to each port

All three ports now match the Lean reference specification.
2026-06-30 17:37:01 -05:00
ae56141a9f feat(wolfram): add Wolfram Alpha MCP server + SOPS-encrypted API key 2026-06-30 17:28:22 -05:00