Skip to content

project-numina/numina-lean-agent / skills/llm

LLM-assisted tools for informal proofs, proof strategy discussion, and code simplification

FileKindSize
SKILL.mdskill md840 B
reference-code-golf.mdmarkdown1.0 KB
reference-discussion-partner.mdmarkdown1.8 KB
reference-informal-prover.mdmarkdown3.5 KB

reference-code-golf.md

View on GitHub
# code-golf — Simplify Lean Proof via Gemini

Uses Gemini to suggest a shorter or more elegant version of an existing Lean proof.

## CLI Invocation

```bash
python skills/cli/code_golf.py LEAN_CODE [OPTIONS]
```

| Argument | Required | Default | Description |
|----------|----------|---------|-------------|
| `LEAN_CODE` | yes | — | Lean code to simplify. Use `-` to read from stdin |
| `--model` | no | `gemini-3.1-pro-preview` | Gemini model name |
| `--temperature` | no | 0.7 | Generation temperature |

## Examples

```bash
python skills/cli/code_golf.py "theorem foo : 1 + 1 = 2 := by norm_num"
cat proof.lean | python skills/cli/code_golf.py -
python skills/cli/code_golf.py - --model gemini-2.5-pro < proof.lean
```

## Notes

- `GEMINI_API_KEY` is required.
- Only uses the Gemini backend; for GPT-based simplification use `discussion-partner` with a targeted prompt.
- Always verify the simplified output with `python skills/cli/lean_check.py FILE` or `axle verify-proof` — the model may introduce subtle errors.
receiving-code-reviewobra/superpowersUse when receiving code review feedback, before implementing suggestions, especially if feedback seems unclear or technically questionable - requires technical rigor and verification, not performative agreement or blind implementationStars: 322kUpdated Claude CodeCodexVerifiedInstall
requesting-code-reviewobra/superpowersUse when completing tasks, implementing major features, or before merging to verify work meets requirementsStars: 322kUpdated Claude CodeCodexVerifiedInstall
using-git-worktreesobra/superpowersUse when starting feature work that needs isolation from current workspace or before executing implementation plans - ensures an isolated workspace exists via native tools or git worktree fallbackStars: 322kUpdated Claude CodeCodexVerifiedInstall
verification-before-completionobra/superpowersUse when about to claim work is complete, fixed, or passing, before committing or creating PRs - requires running verification commands and confirming output before making any success claims; evidence before assertions alwaysStars: 322kUpdated Claude CodeCodexVerifiedInstall