Counterexample-Guided Refinement

SkillDev tools

Implement CEGAR for synthesis and verification workflows

Use Counterexample-Guided Refinement in Claude, ChatGPT or Ahel Desktop

Free. Sign in, add Counterexample-Guided Refinement and connect your AI. About a minute.

Also: Claude Code · Cursor · Codex

Then ask your AI: use the Counterexample-Guided Refinement skill

Details

Instructions available. Your AI can read the instructions. Execution depends on the setup they require.

Add Ahel to your AI once: Claude, ChatGPT, Cursor, Claude Code or Codex. Then ask it to use this.

Counterexample-Guided RefinementStart free

What this skill tells your AI

The instructions your AI receives, as published by a5c-ai/babysitter in library/specializations/domains/science/computer-science/skills/counterexample-guided-refinement/SKILL.md and read by Ahel’s review.

Purpose

Provides expert guidance on CEGAR (Counterexample-Guided Abstraction Refinement) for verification and synthesis.

Capabilities

  • Counterexample analysis
  • Predicate abstraction refinement
  • Interpolation-based refinement
  • Abstraction refinement loop management
  • Convergence analysis
  • Spurious counterexample detection

Usage Guidelines

  1. Initial Abstraction: Define initial abstraction
  2. Verification: Check abstract model
  3. Counterexample Analysis: Analyze counterexamples
  4. Refinement: Refine abstraction if spurious
  5. Iteration: Repeat until verified or real counterexample

Tools/Libraries

  • CPAChecker
  • SeaHorn
  • BLAST
  • SLAM

Signals

GitHub stars
2k
Forks
113
Last commit
Sep 2026
Advanced
Item type
skill
Key
counterexample-guided-refinement
Source
github.com/a5c-ai/babysitter