cubical-transport-hott-lean4/Topolei.lean
Maximus Gorog c2e3ecb3e3
Some checks are pending
Lean Action CI / build (push) Waiting to run
Initial commit: topolei — cubical-transport HoTT in Lean 4 + Rust FFI
Implements the cells-spec vision: a computation space that preserves
auditability, correctness, interactivity. Phase 1 (Lean kernel +
naga-IR Rust backend) is closed; foundation hypothesis stack
(Selection H1+H2, Subobject H3, Trace H5, Obs.Ctx C2, Cubical.Trace)
landed.

Highlights:
- Cubical-HoTT syntax + value/eval/readback in Lean
- naga-IR pipeline (no GLSL string crosses FFI; 17/17 probes pass)
- Honesty audit: every non-transport (sealed cells, vertex shader,
  Y-flip, presentation conventions) is documented as such
- Polymorphic Trace α as free monoid; Cubical.Trace gives
  CTerm → Trace CTerm by structural fold (homomorphism = definition)
- Selection as Huet zipper; Subobject as Boolean algebra over WCell
- All theorems proven; the proof IS the implementation

See STATUS.md for the resume guide.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
2026-04-27 20:40:45 -06:00

31 lines
877 B
Text

import Topolei.Basic
import Topolei.Canvas
import Topolei.EML
import Topolei.EML.Path
import Topolei.Cubical.Interval
import Topolei.Cubical.Face
import Topolei.Cubical.Syntax
import Topolei.Cubical.Subst
import Topolei.Cubical.DimLine
import Topolei.Cubical.Typing
import Topolei.Cubical.Equiv
import Topolei.Cubical.Glue
import Topolei.Cubical.Value
import Topolei.Cubical.Transport
import Topolei.Cubical.Line
import Topolei.Cubical.Eval
import Topolei.Cubical.EvalTest
import Topolei.Cubical.Readback
import Topolei.Cubical.FFI
import Topolei.Cubical.FFITest
import Topolei.Cubical.ValueTyping
import Topolei.Cubical.TransportLaws
import Topolei.Cubical.System
import Topolei.Cubical.CompLaws
import Topolei.Cubical.Soundness
import Topolei.GPU.Spec
import Topolei.Selection
import Topolei.Subobject
import Topolei.Trace
import Topolei.Cubical.Trace
import Topolei.Obs.Ctx