Some checks are pending
Lean Action CI / build (push) Waiting to run
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>
20 lines
540 B
C
20 lines
540 B
C
#pragma once
|
|
#include <lean/lean.h>
|
|
#include <stdint.h>
|
|
|
|
#ifdef __cplusplus
|
|
extern "C" {
|
|
#endif
|
|
|
|
// Single shader fullscreen.
|
|
lean_obj_res topolei_run(lean_obj_arg shader, uint32_t width, uint32_t height,
|
|
lean_obj_arg title, lean_obj_arg world);
|
|
|
|
// Two shaders side by side in one window.
|
|
lean_obj_res topolei_run2(lean_obj_arg shaderL, lean_obj_arg shaderR,
|
|
uint32_t width, uint32_t height,
|
|
lean_obj_arg title, lean_obj_arg world);
|
|
|
|
#ifdef __cplusplus
|
|
}
|
|
#endif
|