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>
27 lines
710 B
CMake
27 lines
710 B
CMake
cmake_minimum_required(VERSION 3.20)
|
|
project(topolei_native CXX)
|
|
|
|
set(CMAKE_CXX_STANDARD 17)
|
|
|
|
find_package(PkgConfig REQUIRED)
|
|
pkg_check_modules(GLFW REQUIRED glfw3)
|
|
pkg_check_modules(GL REQUIRED gl)
|
|
pkg_check_modules(GLEW REQUIRED glew)
|
|
|
|
add_library(topolei_native STATIC src/canvas.cpp)
|
|
|
|
target_include_directories(topolei_native PUBLIC
|
|
${CMAKE_CURRENT_SOURCE_DIR}/include
|
|
${GLFW_INCLUDE_DIRS}
|
|
${GL_INCLUDE_DIRS}
|
|
${GLEW_INCLUDE_DIRS}
|
|
"$ENV{HOME}/.elan/toolchains/leanprover--lean4---v4.30.0-rc2/include"
|
|
)
|
|
|
|
target_link_libraries(topolei_native PUBLIC
|
|
${GLFW_LIBRARIES}
|
|
${GL_LIBRARIES}
|
|
${GLEW_LIBRARIES}
|
|
)
|
|
|
|
target_compile_options(topolei_native PRIVATE ${GLFW_CFLAGS_OTHER})
|