extracted kernel to proofs/generated/ShopKernel.lean
$ h5i app prove
owner_only proven
$
ZSHagent@box: ~/shoplean 4
[h5i]kernel · proofs
Two scenes. First, a Rust kernel is written and translated into Lean 4 definitions; a rule is proven, then an intentional mutation makes the proof fail. Next, an agent tests a running shop, replays an order request with another order id, and finds a missing owner check.
01 / Build and verify web applications
A Verifiable Web Framework
Build on Axum with a composable, kernel-based Rust architecture. Translate application logic into Lean 4 to verify critical properties, then run the same kernel on servers, embedded devices, and GPUs.
Kernel-based architecture
Separate application logic from infrastructure so core behavior can be verified and optimized.
Formal verification
Prove properties such as authorization, data isolation, and business logic correctness with Lean 4.
Multi-target execution
Serve kernels from Axum on CPUs, from a no_std, heap-free HTTP/1.1 server on bare metal, or on GPUs with CPU fallback.
h5i gives human and AI agents the tools to build, verify, and test your applications. Its browser, HTTP, red-teaming, and CI tools also work with any existing web app.
01 what the CLI enables
project toolingDevelopment & Testing
Scaffold applications and verify properties with Lean 4.
replaying req_108 with order=1042 answered 200 with a different tenant’s order: 1412 → 1903 bytes, alike 0.712
the same replay with order=9001 was refused before the wire, so the probe stayed inside the two test tenants
idorunconfirmedh5i websec finding list --session checkout-idor
all 37live 29found, never sent 6gone 2probes
state
method
endpoint
status
learned from
evidence
live
GET
shop.example.test/api/order/{id}
200
history
req_109
live
POST
shop.example.test/api/pay
402
history
req_110
live
GET
shop.example.test/api/cart
200
history
req_93
found
GET
shop.example.test/api/order/export?from&to
link in /checkout
never sent
found
GET
shop.example.test/admin/orders
robots.txt
never sent
gone
GET
shop.example.test/api/v1/order
404
probe
req_61
6 of 37 endpointsthe ledger: h5i recon endpoints --session checkout-idor
Proxy-observed: every request the browser sent went through the session’s capture proxy, which wrote it down before forwarding it. It is fail-closed, so a request that is not in it did not go through the session, but the browser process itself is not confined.
state
live
engine
chromium
identity
alice
policy
a1f4c9e70b32
capture
on: 128 messages stored, owner-only
control
the agent
h5i browser status --session checkout-idorh5i browser audit --session checkout-idor
alice/sandbox
containerbrowserrefused
EvidenceBrowser
The egress allowlist refused 2 requests to px.example.invalid:443.
h5i is a kernel-based Rust web framework for building applications, verifying core logic with Lean 4, and running the same kernel on Axum servers, embedded devices, and GPUs. Its development infrastructure also provides red-teaming, CI/CD testing, and sandboxed workflows.
How do I build and verify a web app?
Start an h5i-app project with h5i app new. Write application logic in Rust kernels, extract it to Lean 4 with h5i app extract, check proofs with h5i app prove, and test proof sensitivity with h5i app mutate.
Where can h5i-app kernels run?
On three targets. Axum serves kernels on CPUs. A no_std, heap-free HTTP/1.1 server runs them on bare-metal devices such as microcontrollers. The Rust-CUDA backend runs supported kernels on GPUs for batch workloads, with CPU fallback. Lean proofs cover the extracted kernel logic; GPU behavior is checked separately with differential tests. See the embedded design and the GPU report.
Can I test an existing app without using h5i-app?
Yes. The browser, HTTP, recon, and security regression tools work with web applications in any stack. You do not need to migrate to the Rust framework.
Does a proof cover my entire application?
A proof establishes a stated property of the verified logic under explicit assumptions. Routes, authentication adapters, dependencies, and deployments still need testing and review.