Getting started·/docs/introduction

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.

Target
Build command
Surface & native controls
Web
lakeport build web
DOM, WebAssembly, static HTML pre-rendering, and progressive hydration
iOS
lakeport build ios
Hybrid UIKit (UITextField, UITextView, UIScrollView, UIButton) + CoreGraphics + VoiceOver
Android
lakeport build android
Android Views (EditText, ScrollView, Button) + Skia + TalkBack
macOS
lakeport build macos
Hybrid AppKit (NSTextField, NSScrollView, CALayer) + CoreText + VoiceOver
Windows
lakeport build windows
Win32 / Direct2D / DirectWrite + native text input & clipboard
Linux
lakeport build linux
GTK 4 / Cairo / Pango + native text input & accessibility

Application Stack

Beyond views and state proofs, Lakeport includes the pieces needed for production mobile, desktop, and web apps:

•
UI primitives & optional Tailwind kit: lakeport-primitives (unstyled accessible primitives with verified focus and state rules that work with any CSS) plus 34 optional copy-owned Tailwind component templates via --template tailwind.
•
Virtualization & 120Hz motion: lakeport-virtual (VirtualList and VirtualGrid with variable heights, sticky headers, and chat scroll anchoring) and lakeport-native-motion (60/120Hz spring animations and swipe gestures running directly on the native platform UI thread).
•
Native dependency packaging & plugins: Declarative Maven/AAR, SwiftPM/XCFramework, and pkg-config resolution pinned in lakeport.native.lock with automatic AndroidManifest.xml, Info.plist, and .entitlements merging, backing first-party plugins for HTTP/multipart/WebSockets, Keychain/Keystore & SQLite, camera/audio/video/WebView, biometrics, geolocation, haptics, deep links, and notifications.
•
Vite-style build plugins & IDE support: Configurable lakeport.json build pipeline with optional CSS/Tailwind plugins, .env isolation, dev.proxy, development reload, and editor extensions for VS Code, Cursor, and Zed.

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 .