counterexample-debugger

Analyze Nitpick and QuickChick counterexamples to identify proof failure root causes.

142|14|Updated Feb 14, 2026
One-click install
npx skills add https://github.com/ArabelaTso/Skills-4-SE --skill counterexample-debugger
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: counterexample-debugger
Source: https://github.com/ArabelaTso/Skills-4-SE/tree/main/skills/counterexample-debugger
Command: npx skills add https://github.com/ArabelaTso/Skills-4-SE --skill counterexample-debugger

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill helps users understand and fix proof failures in formal verification systems by analyzing counterexamples generated by tools like Nitpick and QuickChick.

Core Features & Use Cases

  • Counterexample Analysis: Interprets outputs from Nitpick (Isabelle/HOL) and QuickChick (Coq).
  • Root Cause Identification: Pinpoints issues like missing preconditions, incorrect specifications, or quantifier errors.
  • Correction Suggestions: Provides concrete examples of how to fix specifications or proofs.
  • Use Case: When a theorem prover fails to prove a property and provides a counterexample, this Skill guides you through understanding why that specific input breaks the theorem and suggests how to correct the underlying specification or proof.

Quick Start

Analyze the provided counterexample output from Nitpick for the failed theorem 'my_lemma' and suggest corrections.

Frequently Asked Questions about counterexample-debugger

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I debug proof failures in Isabelle or Coq using counterexamples?

Debug proof failures by analyzing counterexamples generated by Nitpick for Isabelle/HOL or QuickChick for Coq. This identifies root causes like missing preconditions, incorrect specifications, or quantifier order issues.

Why does Nitpick find a counterexample to my Isabelle/HOL theorem?

Nitpick finds a counterexample because your theorem has a root cause issue such as a missing precondition, an incorrect specification, or a quantifier order error that allows a specific input to break the stated property.

How do I fix a Coq specification when QuickChick generates a counterexample?

Fix a Coq specification by examining the QuickChick counterexample to pinpoint the root cause, then apply the provided correction suggestions to adjust preconditions, specifications, or quantifier order accordingly.

Can I analyze counterexamples for both Isabelle/HOL and Coq proof assistants?

Yes, you can analyze counterexamples for both Isabelle/HOL and Coq proof assistants by interpreting the outputs from their respective testing tools, Nitpick and QuickChick, to provide actionable correction suggestions.

What are common root causes of formal verification proof failures?

Common root causes of formal verification proof failures include missing preconditions, incorrect specifications, and quantifier order issues, which are identified by analyzing generated counterexamples to provide actionable corrections.