Top AI Repos — open-source AI, indexed and scored
Top AI Repos tracks AI repositories on GitHub and answers two different questions about each one: is it moving right now, and would you bet a product on it.
Top AI Repos tracks AI repositories on GitHub and answers two different questions about each one: is it moving right now, and would you bet a product on it.
Lean 4 theorem proving skill and workflow pack for AI coding agents
| Date | Stars |
|---|---|
| 2026-07-31 | 349 |
| 2026-08-04 | 351 |
| 2026-08-06 | 351 |
Today
— stars today
This week
— stars this week
This month
— stars this month
Momentum
60.0
growth rate 0.00%/day
# Lean 4 Skills Lean 4 workflow pack for AI coding agents. Gives your agent a structured prove/review/golf loop, mathlib search, axiom checking, and safety guardrails. The workflows are host-agnostic — Claude Code, Codex, Gemini CLI, Cursor, and others all use the same core skill; only the invocation surface differs. ## Workflows | Workflow | Description | |---|---| | draft | Draft Lean declaration skeletons from informal claims | | formalize | Interactive formalization — drafting plus guided proving | | autoformalize | Autonomous end-to-end formalization from informal sources | | prove | Guided cycle-by-cycle theorem proving | | autoprove | Autonomous multi-cycle proving with explicit stop budgets | | disprove | Guided counterexample search with certified refutation | | checkpoint | Save point (per-file + project build, axiom check, commit) | | review | Read-only quality review | | refactor | Leverage mathlib, extract helpers, simplify proof strategies | | golf | Improve proofs for directness, clarity, performance, and brevity | | learn | Interactive teaching and mathlib exploration | | doctor | Diagnostics and migration help | **Claude Code:** invoke as `/lean4:<name>`. **Other hosts:** follow the corresponding workflow in [SKILL.md](plugins/lean4/skills/lean4/SKILL.md). Typical session: `draft` (or `formalize` / `autoformalize`) → `prove` (or `autoprove`) → `review` → `refactor` → `golf` → `checkpoint` → `git push`. Use `disprove` instead of `prove` when you want to refute a statement rather than prove it. CLI-like inputs are validated by a host-agnostic parser (`plugins/lean4/lib/command_args/`) for the seven parameter-heavy commands (`draft`, `learn`, `formalize`, `autoformalize`, `prove`, `autoprove`, `disprove`). The Claude Code adapter pre-validates `/lean4:*` prompts via a `UserPromptSubmit` hook; other hosts fall back to model-parsed startup. Commands must announce resolved inputs, reject invalid startup configs, and treat wall-clock budgets as best-effort rather than host-enforced timeouts. See the [Command Invocation Contract](plugins/lean4/skills/lean4/references/command-invocation.md). ## How It Works - **`draft`** — Skeleton-only drafting from informal claims. Use when you want Lean declarations without a full prove run. - **`formalize`** — Interactive synthesis. Drafts a skeleton, then runs guided prove cycles with user interaction. - **`autoformalize`** — Autonomous synthesis. Extracts claims from a source, drafts skeletons, and proves them unattended. - **`prove`** — Guided proof engine for existing declarations. Asks preferences at startup, prompts before each commit, pauses between cycles. - **`autoprove`** — Autonomous proof engine for existing declarations. Auto-commits, loops until a stop budget fires (max cycles, wall-clock budget, or stuck). The wall-clock budget is checked between cycles; it is not a host timeout. - **`disprove`** — Guided counterexample-search engine for existing declarations. Each cycle's Plan phase generates dynamic Step 0 (knowledge search) / Step 1 (method) / Step 2 (config) menus seeded by accumulated evidence. Reports `REFUTED` **only** when Lean typechecks a proof of the negation; otherwise `WITNESS_UNCERTIFIED` (candidate but uncertified) or `INCONCLUSIVE` (no candidate within budgets). Append-only: never rewrites an existing `theorem T : P := by sorry`. - The proof engines share one cycle engine: **Plan → Work → Checkpoint → Review → Replan → Continue/Stop**. Each sorry gets a mathlib search, tactic attempts, and validation. `--commit` controls per-fill commit behavior. When stuck, both force a review + replan. - `formalize` and `autoformalize` wrap drafting around that same engine. Statement and header changes belong there — `prove` and `autoprove` keep declaration headers immutable. - Editing `.lean` files without a command activates the skill for one bounded pass — fix the immediate issue, then suggest the right next command: `draft` / `formalize` for statement wo
Excerpt of 11,586 characters
Read on GitHubWould you bet a product on this? Bounded 0–100 and slow moving.
matched fp:15577003ec39df60, llm:description: 'Lean 4 theorem proving skill and workflow pack for AI coding agents'
matched fp:15577003ec39df60, llm:description: 'Lean 4 theorem proving skill and workflow pack for AI coding agents'
matched fp:15577003ec39df60, llm:description: 'Lean 4 theorem proving skill and workflow pack for AI coding agents'