Introduction
Lakeport is a Lean 4 framework in development for native and web applications: Web, iOS, Android, macOS, Windows, and Linux from one codebase.
You author screens in .lp files styled with standard W3C CSS (plain stylesheets, scoped CSS modules, or external CSS tools such as Tailwind via an optional build plugin). Your app's state transitions and the rules governing them live in Lean 4, so Lean can check the properties you express as theorems.
Build with a coding agent such as Claude Code, Codex, Cursor, or Zed. Your agent writes .lp views, CSS, reducers, and Lean theorems; lakeport-lsp and lakeport mcp return exact diagnostics and unsolved proof goals until every rule holds.
A plain-English instruction checks nothing on its own. Once your agent writes that rule as a Lean theorem and includes it in your project, lakeport check and every build re-verify it automatically. Read the theorem statement to confirm it matches your intent. Proofs target the exact code compiled into your app, and proof terms are stripped before code generation so they add zero bytes to your output binaries.
Platforms & Rendering
The five native targets share a CSS and layout engine. Its conformance fixtures cover features such as subgrid, container queries, Ruby layout, SVG paint references and same-document view transitions. On Web, Lakeport renders to the DOM and the browser handles CSS. See for the scope of native verification.
The CLI can run your project's Tailwind CSS v4 toolchain as a build step.
Interactive inputs and platform chrome mount real native OS controls with native text input, scrolling, accessibility, and <native-view> escape hatches. No native target embeds a WebView or a JavaScript bridge.
Application Stack
Beyond views and state proofs, Lakeport includes the pieces needed for production mobile, desktop, and web apps:
When Lakeport fits
If an app only renders forms and posts them directly to a server, your backend database already enforces the rules. Lakeport pays off when real state lives on the device: offline drafts waiting to sync, optimistic updates reconciling with remote replicas, multi-step checkouts, payment retries, and cross-platform native apps that want standard CSS and real native controls without a WebView.
Use proved for compiler-checked theorems, trusted for runtime dependencies outside those proofs (compiler, OS toolkits, native CSS/motion engines), unknown for missing evidence, and failed for a refuted check.
Continue to .