Construct counterexamples

From frenzymath/Rethlas · View interactive version

Construct counterexamples is an AI agent skill from the GitHub repository frenzymath/Rethlas. Construct candidate counterexamples to test a proposed conjecture, lemma, or intermediate claim by keeping the assumptions true while making the claimed conclusion fail. Use when you are stuck in reasoning and want to see where the assumptions take effect and gain intuition, when a proposed conjectu

How to use this skill

Skill file

Construct Counterexamples

Actively falsify proposed conjectures or intermediate claims by finding examples that satisfy the assumptions but violate the claimed conclusion.

Input Contract

Read:

Procedure

  1. Identify the assumptions that must hold and the conclusion to fail.
  2. Use reasoning, decomposition, and retrieval to search for standard obstructions, pathological constructions, or previously known counterexamples.
  3. Decide status:
  1. If the search produces a concrete example that is informative but is not actually a counterexample, save that example as well in toy_examples.
  2. If refuted, store the counterexample for reuse against future claims and mark impacted branches/lemmas as invalid.
  3. If no counterexample is found, treat that only as evidence that the claim may be correct, not as a proof.

Output Contract

Append to counterexamples:

{
  "target_claim": "...",
  "candidate_counterexample": "...",
  "status": "refuted|not_refuted|inconclusive",
  "assumptions_satisfied": ["..."],
  "failed_conclusion": "...",
  "impact": "...",
  "branch_id": "optional",
  "subgoal_id": "optional"
}

If status="refuted", also append to failed_paths when it kills a branch.

If the search produced a concrete non-refuting example, also append a record to toy_examples:

{
  "example": "...",
  "why_relevant": "constructed while testing the claim ...",
  "assumptions_satisfied": ["..."],
  "conclusion_verified": true,
  "where_assumptions_take_effect": "...",
  "observed_pattern": "...",
  "supports_branch_ids": ["optional"],
  "subgoal_id": "optional"
}

Do this whenever the constructed example is useful enough to test future claims or clarify the current branch, even if it did not refute the target claim.

MCP Tools

Failure Logging

If no meaningful counterexample space is identified, append:

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.