OpenParable
Skip to content
← Back to skills

Recursive Proving

Agent Building
recursive-proving

Recursive Proving is an Agent Skill for agent building published in the frenzymath/Rethlas repository on GitHub: a SKILL.md instruction file an AI agent can load to do this task.

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.

View on GitHub ↗
QUICK START

How to use this skill

Bring this guide into your coding agent with a prompt tailored to the tool you use.

  1. Open your project in Codex.
  2. Copy and paste the prompt below.
  3. Review files and risks before approving any action.
Prompt to paste
Inspect the Agent Skill at https://github.com/frenzymath/Rethlas/blob/HEAD/agents/generation/.agents/skills/recursive-proving/SKILL.md and all supporting files. Report provenance, permissions, scripts, dependencies, and security risks. Propose an exact installation into .agents/skills/recursive-proving, but wait for my approval before writing files or running scripts.

Copying this prompt does not install or run the skill. Review third-party files before use.

Recursive Proving

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

Input Contract

Read:

  • the current set of decomposition plans
  • the direct-proving reports and key stuck points for each plan
  • the known stuck points from other plans
  • relevant failed_paths, branch_states, and search results

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:
    • the full target theorem
    • the assigned decomposition plan
    • the key stuck points for its own plan
    • the key stuck points found in the other plans
    • the instruction to follow AGENTS.md
  4. 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.
  5. Tell each sub-agent that it may itself spawn sub-agents recursively if that helps its assigned plan.
  6. 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.
  7. Wait for all sub-agents to finish, then gather their reports.
  8. If any plan succeeds, assemble the proof draft from that plan.
  9. 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

  • memory_search
  • memory_append
  • branch_update
  • search_arxiv_theorems
  • Codex sub-agent tools: spawn_agent, send_input, wait_agent, close_agent

Failure Logging

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