Skip to content

Build bounded compiler foundation and end-to-end MZI demonstrator - #1

Merged
mkrishna793 merged 1 commit into
mainfrom
arena/e14a9ac0-photonics-computing
Nov 10, 2026
Merged

mkrishna793 merged 1 commit into
mainfrom
arena/e14a9ac0-photonics-computing

Conversation

@mkrishna793

Copy link
Copy Markdown
Owner

Summary

  • Normalize the Rust and Lean project layouts, restore missing physics laws, and include all maintained Lean modules in the default import closure.
  • Implement a dependency-free Rust compiler for bounded straight-line arithmetic, exact rational reference evaluation, tight interval analysis, and per-node physical-domain/error contracts.
  • Add an illustrative calibrated MZI lowering path with heater inversion, DAC quantization, conservative cosine enclosures, and physical error certificates.
  • Add an independent exact-rational Python certificate checker, SW-1 analytical simulator, accepted/rejected examples, and one-command demo/test scripts.
  • Expand bounded-contract, encoding, range, DAC, and MZI error theorem scripts; add executable/formal CI jobs and document implementation status and trust boundaries.

Validation performed

  • 12 Rust unit tests passed in debug and release builds.
  • 23 Python integration/property/adversarial tests passed, including certificate tampering, unsafe division, saturation, precision failure, and randomized arithmetic checks.
  • Repository layout/import/pin audit passed; git diff --check passed.
  • The MZI demonstration and independent checker passed. Across 10,018 simulation vectors, maximum observed absolute error was approximately 0.0003988068894 versus a checked model bound of 0.0004005385444.

Important formal-verification limitations

  • Lean/Lake could not be executed locally because the sandbox lacks the toolchain and blocks its release-asset download host. The formal CI job is configured, but a passing result has not yet been observed.
  • Exported Lean certificates establish numeric obligations only. A complete kernel-checked bridge from the parser and Taylor-enclosure checker to the physical theorem remains outstanding.
  • The device calibration is illustrative, not measured hardware calibration or hardware authorization. Simulation is diagnostic evidence, not a universal proof.

See README.md, docs/milestones.md, and docs/verification.md for usage, milestone acceptance gates, and remaining assumptions.

Co-authored-by: arena-agent <297053741+arena-agent@users.noreply.github.com>
@mkrishna793
mkrishna793 merged commit 17d1b51 into main Nov 10, 2026
2 of 4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant