Visual Lean

Mathematics you can see.

A visual proof assistant that turns formal reasoning into an interactive node graph — making type theory navigable, intuitive, and collaborative.

Follow development GitHub

Proofs shouldn't be linear

Traditional theorem provers ask you to write sequential tactic scripts where the logical structure is implicit and the learning curve is steep. The reasoning is there — but it's buried in syntax.

Visual Lean makes the structure explicit. Hypotheses, types, contexts, and dependencies become visible, navigable nodes in a graph. You build proofs by connecting them.

The idea for Visual Lean came from my friend David, who I met in the LSU math department. This is an experimental prototype exploring his concept — built as a side project to see how far the visual inference model can go.

Traditional Lean

Linear text scripts. Structure is implicit. You read tactics left-to-right and reconstruct the proof tree in your head.

Visual Lean

An explicit graph of inference. Contexts, types, and dependencies are visible and navigable. Drag, connect, reason.

Node graph

Each node is a formal judgment from type theory. Edges capture how hypotheses flow into conclusions.

Type-safe core

Strongly typed C++ data model. Four thesis kinds: type declarations, type equivalences, element relations, element equivalences.

Runs in the browser

C++ compiled to WebAssembly via Emscripten. Dear ImGui + ImNodes for the visual interface. No backend required.

Roadmap

Now

Local prototype

In-memory graph in C++. Zero dependencies. Proving that the inference graph model works.

Next

Local workspace

Persistent state with local PostgreSQL. Save, load, and reuse structured knowledge across sessions.

Future

Cloud wiki

A shared map of all mathematics. Pull from communal knowledge to build proofs in your own workspace. Contribute back. The platform grows more valuable as more people use it.

Zach — Architecture, WASM/frontend pipeline, product vision

David — Core logic, C++ type theory data structures