Lakeport separates formally verified Lean application logic from thin, shared host engines written in C (C11) across Web, iOS, Android, macOS, Windows, and Linux.
Vite-style build plugin pipeline, lakeport.native-deps/2, lakeport size, lakeport setup, MCP gateway, and .lp IDE extensions
Hybrid native controls + unified W3C CSS engine
The five native hosts use a shared C11 engine for the CSS cascade and layout. The hosts paint that layout with their platform graphics APIs and mount native widgets for controls such as text inputs.
On top of those computed native frames (ABI5), interactive elements mount real platform controls instead of flat bitmaps:
Android (LakeportAndroidRenderer): Real Android Views (EditText, ScrollView, Button, TextView, <native-view>) paired with Skia Canvas drawing for advanced CSS filters, masks, and blend modes.
•
Linux & Windows: Cairo/Pango on GTK4 (GtkIMMulticontext IME, GdkClipboard, kinetic scroll, AT-SPI) and Direct2D/DirectWrite on Win32 (native IME, clipboard, smooth scroll, UIA), both supporting <native-view> child widgets.
UI-thread motion boundary
Continuous 60/120Hz gestures and RK4 spring animations run inside lp_gesture_spring directly on the platform UI thread so dragging a sheet, swiping back a navigation stack, or scrolling a 10,000-row VirtualList never blocks on a per-frame Lean round-trip. Lean receives only discrete semantic events when gestures start, cross snap thresholds, commit, or settle.
Verification boundaries
App theorems (in any .lean or .lp file) prove properties over the exact Lean state transitions, codecs, Fenwick trees, and UI primitive state machines linked into your app. Native engines, toolchains, and platform renderers are verified empirically through C11 ASan/UBSan/LSan test suites, cross-platform builds, and headless pixel diffs against Chrome.