Available in
Marketplaces, most starred first
Tags
Add to README
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Marketplaces, most starred first
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Marketplaces, most starred first
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
By LionSRv0.1.0MITIn 1 marketplace
Detect vacuous Lean 4 proofs — formalizations that compile but don't establish what they claim (fake P=NP and friends)
You run one by typing its /name in Claude Code.
No risk signals detected
Nothing flagged in this plugin's hooks, MCP servers or commands. Other components are not analyzed.
Static checks of hooks, mods, MCP servers and commands. Not a security audit.
1 marketplace, most starred first
lean4, mathlib, formal-verification, proof-checking, vacuity, P=NP
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Point an AI agent at a Lean 4 repo and find out whether its headline theorem is real — or a proof that compiles but proves nothing.
A Claude Code / Codex skill plus dependency-free scripts that audit a Lean
repository for vacuous proofs: formalizations that pass lake build and show a
green check, yet establish nothing of what their paper or README claims. The
motivating case is the steady stream of "P = NP machine-verified in Lean 4"
preprints — almost all of which collapse under inspection.
A Lean proof is only as meaningful as what it assumes and what it actually states. A repository can compile and still be hollow:
True (def P_equals_NP : Prop := True);def NP := P, so P = NP holds by rfl);axioms and then "applied";(crux) → crux;0 = 1), making the implication vacuously true;native_decide, unsafe, set_option debug.skipKernelTC);sorry/admit) behind a "no sorries in the
main chain" hedge.This tool catches all of these — and, crucially, asks the question a build never answers: is the statement even the right one?
A fixed pattern set can't catch an open-ended space of cheats, so the deterministic layer only gathers facts and the agent is the detector.
vacuity package + scripts/lean_facts.py, no deps, no build): token hazards
(sorry/admit/native_decide/unsafe/kernel-bypass set_options), declared custom
axiom/opaque, and the unfold chain of every identifier in the headline — so a hidden
def NP := P or def Conjecture := True is laid bare.scripts/lean_axiom_probe.py): builds the repo and runs Lean's
#print axioms on the headline theorems — the one layer source-level obfuscation can't
survive (a hidden sorry surfaces as sorryAx; an assumed lemma as a named custom axiom).scripts/make_brief.py assembles the facts, the kernel
closure, and the paper↔Lean pairing into a per-theorem brief; the agent reads it and the paper
and decides soundness, triviality, and — the highest-value check — whether the Lean is faithful
to the paper or quietly weakens it (an added hypothesis, a narrowed conclusion). Fixed
tooling can't judge that; a reasoning agent can.The deterministic layer emits only a certain-facts floor verdict; the agent's verdict, from the
brief and the paper, is the real one. The result is a professional LaTeX report
(scripts/vacuity_report.py).
/plugin marketplace add LionSR/is-my-lean-proof-vacuous
/plugin install lean-vacuity-check@lean-vacuity-check
Then: /check-vacuity path/to/lean-repo
Run these in your terminal (not inside Codex). Register the marketplace, then install:
codex plugin marketplace add LionSR/is-my-lean-proof-vacuous
codex plugin add lean-vacuity-check@lean-vacuity-check
(lean-vacuity-check@lean-vacuity-check is plugin-name@marketplace-name, not a typo;
codex plugin add may prompt you to authenticate on install.) Once enabled, run the
$lean-vacuity-check skill with the repo path — or $lean-vacuity-redteam to
adversarially stress-test a formalization.
Clone this repo and point your agent at skills/lean-vacuity-check/ (or symlink it
into ~/.claude/skills/). The scripts need only Python ≥ 3.10; the kernel audit needs
lake/lean on PATH.
# 1. kernel axiom audit (builds the repo; best-effort — the decisive soundness fact)
python3 scripts/lean_axiom_probe.py path/to/repo --auto --json-out results/axioms.json
# 2. assemble the facts brief the agent reads (statement + unfold chain + paper<->Lean)
python3 scripts/make_brief.py path/to/repo --axioms results/axioms.json --out-dir audits/repo
# scope a large codebase: --theorem NAME / --include SUBPATH / --exclude SUBPATH
# (raw facts + the deterministic floor verdict: python3 -m vacuity.cli scan path/to/repo)
npx claudepluginhub lionsr/is-my-lean-proof-vacuous --plugin lean-vacuity-checkBuilt from public signals: copy clicks on this site, GitHub stars and activity, the README and the manifest. Not a security audit or an endorsement.
Plugins from other owners that cover similar ground