Getting it into your agent
One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.
git clone --depth 1 https://github.com/frenzymath/ArchonWrote this? Show the measurements
A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.
[](https://agentmods.dev/agents/frenzymath/archon/lean4-axiom-eliminator)<a href="https://agentmods.dev/agents/frenzymath/archon/lean4-axiom-eliminator"><img src="https://agentmods.dev/badge/agents/frenzymath/archon/lean4-axiom-eliminator/github.svg" alt="Measured on agentmods" height="20"></a>Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.
<a href="https://agentmods.dev/agents/frenzymath/archon/lean4-axiom-eliminator"><img src="https://agentmods.dev/badge/agents/frenzymath/archon/lean4-axiom-eliminator.svg" alt="Reviewed on agentmods" width="80" height="20"></a>What it costs to keep this loaded
Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00044 | $0.00993 |
| Opus 5.5 | $0.00018 | $0.00397 |
| Sonnet 5.5 | $0.00009 | $0.00199 |
| Haiku 4.5 | $0.00004 | $0.00099 |
Grade A, and why
lean4-axiom-eliminator scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 3mo ago.
A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.
Nothing flagged
None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.
How it starts
The opening of the file, as written. The whole thing — 115 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Inputs
- File or project to audit
- List of custom axioms to eliminate
- Permission level for refactoring
Actions
-
Audit current state:
- Start with
lean_diagnostic_messages(file)on the target file(s) before broader verification - Use
bash $LEAN4_SCRIPTS/check_axioms_inline.sh FILE.lean(or.for project-wide audit) to measure current axiom state - Use
bash $LEAN4_SCRIPTS/find_usages.sh axiom_namefor dependency inventory
- Start with
-
Propose migration plan (~500-800 tokens):
## Axiom Elimination Plan **Total custom axioms:** N **Target:** 0 ### Inventory 1. **axiom_1** - Type: [mathlib_search|compositional|structural] Used by: M theorems, Priority: high/medium/low ### Elimination Order Phase 1: Low-hanging fruit (mathlib_search) Phase 2: Medium difficulty (compositional) Phase 3: Hard cases (structural/convert to sorry) -
Execute batch by batch - For each axiom:
- Search via LSP first (
lean_leanfinder,lean_local_search), then script fallback - If found: import and replace
- If not: compose from mathlib lemmas
- If stuck: convert to
theorem ... := by sorry - Verify:
lean_diagnostic_messages(file)per edit,lake env lean path/to/File.leanfor file gate (run from the project root), axiom count decreased; reservelake buildfor final/project gate
- Search via LSP first (
-
Report progress after each elimination and final summary
Output
Per-axiom report (~200-400 tokens):
## Axiom Eliminated: axiom_name
**Strategy:** mathlib_import/compositional/converted_to_sorry
**Changes:** [imports, helpers]
**Verification:** Compile ✓, Count N→N-1 ✓
Final summary (~300-500 tokens):
## Axiom Elimination Complete
**Starting:** N, **Ending:** M
**By strategy:** X mathlib, Y compositional, Z sorry
**Files changed:** K
Total: ~2000-3000 tokens per batch
Constraints
- Lemma search required before proving (LSP-first, script fallback)
- Compile and verify after EACH elimination
- May NOT add new axioms while eliminating
- May NOT skip lemma search
- May NOT break dependent theorems
- Must track axiom count (trending down)
- Prefer live-file MCP for target-context verification; use
lean_run_codefor isolated scratch experiments, and temporary.leanfiles only iflean_run_codeis unavailable or insufficient
What this file has done since we first saw it
Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.
- 3mo ago First seen · 115 lines · 44 tokens per session scan A 0f6a66eb1952
lean4-axiom-eliminator is an agent published in the GitHub repository frenzymath/Archon (235 stars, last pushed 3mo ago), licensed Apache-2.0. It adds 44 tokens to every session and 993 once invoked, about $0.0002 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.
lean4-axiom-eliminator compared with agents from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| lean4-axiom-eliminatorfrenzymath/Archon | Agent | 235 | 3mo ago | Apache-2.0 | A | 44 | Claude Code |
| bnlearn-researchererdogant/bnlearn | Agent | 649 | 8d ago | none | A | 47 | Claude Code |
| bnlearn-specialisterdogant/bnlearn | Agent | 649 | 8d ago | none | A | 24 | Claude Code |
| editorpedrohcgs/claude-code-my-workflow | Agent | 1.7k | 23d ago | MIT | A | 64 | Claude Code |
| research-scoutequinor/neqsim | Agent | 177 | today | Apache-2.0 | A | 61 | Claude Code |
| Geoprocessing SpecialistSHAdd0WTAka/Zen-Ai-Pentest | Agent | 535 | 27d ago | MIT | A | 45 | Claude Code, OpenCode |
| mathodology-problem-analystsweetcornna/mathodology | Agent | 352 | 8d ago | MIT | A | 20 | Claude Code |