Recursive proving

From frenzymath/Rethlas · View interactive version

Recursive proving is an AI agent skill from the GitHub repository frenzymath/Rethlas. Launch one sub-agent per decomposition plan after direct screening has identified the key stuck points for each plan. Use when all current plans have been screened by direct proving, none fully solves the problem, and parallel recursive work is needed.

How to use this skill

Skill file

Recursive Proving

Use this skill when direct proving has failed on the current decomposition plans.

Input Contract

Read:

Procedure

  1. Confirm that all current decomposition plans have already been attempted with $direct-proving and that none has fully solved the problem.
  2. Spawn one sub-agent per decomposition plan.
  3. Give each sub-agent:
  1. Tell each sub-agent to tackle the assigned plan under the instructions in AGENTS.md, treating that plan as its starting point rather than restarting the search from zero. If new evidence or discoveries justify it, the sub-agent may refine, extend, or locally revise the plan, but it should preserve continuity with the assigned plan instead of discarding it outright.
  2. Tell each sub-agent that it may itself spawn sub-agents recursively if that helps its assigned plan.
  3. Require each sub-agent to write progress, failures, and any successful proof development back into the shared memory using the same data-relative problem_id as the MCP problem_id.
  4. Wait for all sub-agents to finish, then gather their reports.
  5. If any plan succeeds, assemble the proof draft from that plan.
  6. If all plans fail, hand the collected reports to $identify-key-failures.

Output Contract

Append an events record for the recursive round:

{
  "event_type": "recursive_proving_round",
  "plan_ids": ["..."],
  "subagent_ids": ["..."],
  "shared_stuck_points": {
    "plan_id": ["..."]
  },
  "status": "running|completed",
  "successful_plan_ids": ["..."],
  "failed_plan_ids": ["..."]
}

Update branch_states with the recursive round status and per-plan outcomes.

Tools

Failure Logging

If every plan fails in the recursive round, append a summary record to failed_paths and immediately invoke $identify-key-failures.

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.