mirror of
https://github.com/allaunthefox/SilverSight.git
synced 2026-07-31 01:25:21 +00:00
Prove all deferred axioms in ZCompat.v from scratch for Rocq 9.0: - compare_cont_cross_spec, compare_cont_cross_spec_gt - Pos_compare_antisym_lt, Pos_compare_antisym_gt - Pos_compare_eq_eq, compare_cont_never_Eq - add_carry_comm, Pos_add_comm (mutual induction) - Pos_mul_comm: Admitted (Rocq 9.0 simpl/cbn can't reduce Pos.mul on variable first arg; standard Coq 8.x induction pattern fails) All 5 Coq files compile cleanly. Lean 4 build: 3307 jobs, 0 errors (verifies Pos_mul_comm semantically). Build: 5 Coq files, 0 errors
4.3 KiB
4.3 KiB
SilverSight Language Porting Manifest
Lean (formal/ + Core/) is the authoritative source of truth.
All other languages provide independent cross-validation.
Neon Build Status (ARM64 NixOS, 2026-07-01)
| # | Language | Version | AVM Build | AVM Tests | Q16_16 | Notes |
|---|---|---|---|---|---|---|
| 1 | C | gcc 15.2.0 | ✅ | ✅ pass | ✅ | Fixed duplicate symbol bug |
| 2 | C++ | g++ 15.2.0 | ✅ | ✅ pass | ✅ | |
| 3 | Fortran | gfortran 15.2.0 | ✅ | ✅ pass | 🔄 | Rewrote step as subroutine |
| 4 | Go | 1.26.4 | ✅ | ✅ pass | — | |
| 5 | Julia | 1.12.6 | ✅ | ✅ 12/12 | ✅ | Fixed ..Q16_16 module import |
| 6 | Octave | 11.3.0 | ✅ | ✅ pass | — | |
| 7 | Python | 3.13.12 | ✅ | syntax OK | ✅ | numpy/sympy blocked on neon |
| 8 | R | 4.6.0 | ✅ | ✅ pass | — | |
| 9 | Rust | 1.96.1 | ✅ | ✅ pass | ✅ | 0 warnings (1 parens nit) |
| 10 | Scala | 3.3.6 | ✅ | ✅ pass | — | 1 warning (unchecked pattern) |
| 11 | Coq/Rocq | 9.0.1 | ✅ | ✅ 5/5 | ✅ | 1 Admitted (Pos_mul_comm) |
| 12 | Lean | 4.30.0-rc2 | ✅ | ✅ 3307 jobs | ✅ | Full lake build passes |
Module Porting Status
| Lean module | R | Julia | Rust | Coq | C | C++ | Fortran | Go | Octave | Scala |
|---|---|---|---|---|---|---|---|---|---|---|
CoreFormalism/FixedPoint.lean (Q16_16) |
— | ✅ | ✅ | ✅ | ✅ | ✅ | 🔄 | — | — | — |
python/silversight_engine.py |
✅ | ✅ | ✅ | — | — | — | — | — | — | — |
CoreFormalism/BraidCross.lean |
— | — | — | — | — | — | — | — | — | — |
CoreFormalism/BraidStrand.lean |
— | — | — | — | — | — | — | — | — | — |
CoreFormalism/BraidBracket.lean |
— | — | — | — | — | — | — | — | — | — |
CoreFormalism/BraidEigensolid.lean |
— | — | — | — | — | — | — | — | — | — |
CoreFormalism/BraidStateN.lean |
— | — | — | — | — | — | — | — | — | — |
CoreFormalism/SieveLemmas.lean |
— | — | — | — | — | — | — | — | — | — |
CoreFormalism/InteractionGraphSidon.lean |
— | — | — | — | — | — | — | — | — | — |
CoreFormalism/SidonSets.lean |
— | — | — | — | — | — | — | — | — | — |
CoreFormalism/Q16_16Numerics.lean |
— | — | ✅ | ✅ | — | — | — | — | — | — |
SilverSight/PIST/Spectral.lean |
— | — | ✅ | — | — | — | — | — | — | — |
SilverSight/PIST/Classify.lean |
— | — | — | — | — | — | — | — | — | — |
SilverSight/AVMIsa/Types.lean (AVM) |
✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ |
SilverSight/RRC/Emit.lean |
— | — | — | — | — | — | — | — | — | — |
python/nuvmap/projection_engine.py |
✅ | ✅ | ✅ | — | — | — | — | — | — | — |
Legend: — not started 🔄 in progress ✅ complete, tests pass ❌ blocked (see notes)
Fixes Applied (2026-07-01)
- C: Created
avm_types.hshared header; fixedtest_avm.c#include "avm.c"bug - Fortran: Rewrote
stepfunction asstep_subsubroutine; addedavm_clamp64/avm_clamp32; fixed array interface - Julia: Removed
using ..Q16_16relative import, definedQ16_SCALEdirectly - Scala: Fixed
Loadcase pattern match (1 warning remains) - Coq: Updated Rocq 9.0 imports (
Numbers.BinNumsfor Z); fixedcompare_cont_cross_spec,compare_cont_cross_spec_gt,Pos_compare_antisym_lt,Pos_compare_antisym_gt,Pos_compare_eq_eq,compare_cont_never_Eq,add_carry_comm,Pos_add_comm— 8 of 9 axioms proven (1 Admitted:Pos_mul_comm, blocked on Rocq 9.0simplreduction forPos.mulon variable first arg) - Lean: Installed via elan on ARM64;
lake buildpasses 3307 jobs - Rust: Installed via rustup on ARM64;
cargo testpasses
Next Work Items
- Port
CoreFormalismmodules (BraidCross, BraidStrand, etc.) to R, Julia, C, Fortran - Port
PIST/*modules to all languages (currently Rust-only) - Port
RRC/Emit.leanto all languages - Close
Pos_mul_commAdmitted in Coq — needs Rocq 9.0-compatible induction pattern - Create
tests/test_cross_lang_equivalence.pyfor deterministic cross-validation - Enable Python test suite (numpy/sympy blocked on neon's NixOS libstdc++)