--- name: fix-broken-proofs-without-changing-what-they-prove description: "When code changes, proofs break, and weakening the theorem is tempting. Your AI fixes the proof and flags any change to what it claims. Use for: Fix broken proofs without changing what they prove." --- # Fix broken proofs without changing what they prove When code changes, proofs break, and weakening the theorem is tempting. Your AI fixes the proof and flags any change to what it claims. ## What you need from the user - The failing proof files and error log - The theorem statements that must not change - Your build command ## What to give back A proof-only fix plus a clear list of any changed assumptions or statements for you to approve. ## How to do the job Use the prompt below as your instructions. Ask the user for anything in [brackets] that they have not given you yet. Do not guess it. ```text Help me fix proofs that broke after a code change, without changing what they prove. Failing proof files: [paste, or point to them in my repo] Error log or proof state: [paste] Theorem statements and definitions that must not change: [list] Build command: [for example, make] 1. Find the failing goals and explain why each broke. 2. Write the smallest proof fix, as a diff on a new branch. 3. Flag any new axiom, admitted goal, stronger precondition or changed invariant. Ask me before adding one. 4. Show every statement or premise that changed. I'll run the checker, review the diff and merge it myself. ``` ## Rules - BotCurrent rates this job "Acts with your OK". Show what you will do and wait for a clear yes before each action. - Ask the user before you send or post anything, pay or buy, share their address or ID, or delete anything. - A passing proof can still prove the wrong thing. Have someone who knows the spec review any changed premise. - If something is unclear or missing, say so instead of filling the gap. ## Source From BotCurrent: https://botcurrent.com/cases/repair-formal-proofs-while-preserving-reviewed-specifications-bf16085f4b13/ Original report: https://arxiv.org/abs/2606.21167 BotCurrent has not tested this skill. Check the result before you use it.