You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Each sample is a package of the repository's pnpm workspace that depends on leanfran through
link: (the packed dist/, so run vp pack first). samples/run.sh <dir> runs leanfran sync
on it (checking the proofs and regenerating src/_lean/), runs node src/main.ts and compares
the output with expected.txt. The samples that verify TypeScript functions also have
lean/Proofs/ and a committed leanfran.lock; make -C samples verify runs
leanfran check --require proved on them. make samples in the repository root runs both and
checks that the committed generated modules are up to date. Run them inside nix develop of the
repository root.
an ordinary lake project (lean/) compiled with leanfran generate to a committed module, a round-trip theorem checked for every number below 1000 (decide +kernel)
Hono with a Lean structure holding a user's zod model and a Lean inductive type as request body (@hono/standard-validator), 400 for invalid input, OpenAPI from jsonSchema
refines of a for (let i ...) loop (sumTo), proved by induction over Ts.range, which then runs in place of the recursive spec; ensures of an insertion into a sorted array (insertSorted keeps it sorted)