원클릭으로
clean
Fix warnings line by line and bring code into compliance with Mathlib style standards.
Codex 또는 Claude로 설치 이 Prompt를 복사해 Codex, Claude 또는 다른 어시스턴트에 붙여 넣으면 Skill 페이지를 검토하고 설치를 진행할 수 있습니다.
메뉴
Fix warnings line by line and bring code into compliance with Mathlib style standards.
Codex 또는 Claude로 설치 이 Prompt를 복사해 Codex, Claude 또는 다른 어시스턴트에 붙여 넣으면 Skill 페이지를 검토하고 설치를 진행할 수 있습니다.
SOC 직업 분류 기준
Prove a specific sorry'd lemma iteratively using Lean LSP tools.
Improve Claude Code workflow by updating assistants.md, skills, memory, or CLAUDE.md.
Improve an existing working proof for structural clarity, succinctness, or reusability.
Draft sorry'd theorem/lemma structure for a larger result from a proof sketch.
Fill a sorry one step at a time, directed by the user.
Read and discuss proofs, strategies, or math concepts without making any edits.
| name | clean |
| description | Fix warnings line by line and bring code into compliance with Mathlib style standards. |
Fix compiler warnings and linter hints in an existing file, line by line, without changing proof structure.
Target: $ARGUMENTS
lean_diagnostic_messages on the target file with no severity filter to get the full list of warnings, hints, and infos.lean_diagnostic_messages severity="error" to confirm no new errors were introduced.lean_diagnostic_messages and runLinter as different signals. lean_diagnostic_messages tells you whether the file currently compiles in the editor; lake exe runLinter checks extra style linters and may report issues from imported files too.runLinter output looks stale or disagrees with the source you just edited, rebuild the target module first: lake build <Module> and then rerun lake exe runLinter <Module>.@[simp] lemmas and simpNF issues), do not trust an old terminal run. Always rerun lake build <Module> && lake exe runLinter <Module>./clean.lean_hover_info or lean_leansearch to find the replacement)._ prefix or remove): rename x → _x or _ as appropriate.Try this: suggestions: apply simp only [...], exact ..., apply ... suggestions from simp?/exact?/apply?. Use lean_diagnostic_messages severity="info" to retrieve them.@[simp] on non-simp-normal forms, protected suggestions, noncomputable placement, etc.lemma vs theorem per convention in assistants.md; doc string format (/-- ... -/ with a period); whitespace.open statements; use fully qualified names where the open causes ambiguity./refactor for that.Try this: suggestion changes the meaning or makes the proof fragile, don't apply it blindly — flag it.