optimization-correctness-verifier

Verify correctness of compiler optimizations using formal methods

509 stars

Best use case

optimization-correctness-verifier is best used when you need a repeatable AI agent workflow instead of a one-off prompt.

Verify correctness of compiler optimizations using formal methods

Teams using optimization-correctness-verifier should expect a more consistent output, faster repeated execution, less prompt rewriting.

When to use this skill

  • You want a reusable workflow that can be run more than once with consistent structure.

When not to use this skill

  • You only need a quick one-off answer and do not need a reusable workflow.
  • You cannot install or maintain the underlying files, dependencies, or repository context.

Installation

Claude Code / Cursor / Codex

$curl -o ~/.claude/skills/optimization-correctness-verifier/SKILL.md --create-dirs "https://raw.githubusercontent.com/a5c-ai/babysitter/main/library/specializations/domains/science/computer-science/skills/optimization-correctness-verifier/SKILL.md"

Manual Installation

  1. Download SKILL.md from GitHub
  2. Place it in .claude/skills/optimization-correctness-verifier/SKILL.md inside your project
  3. Restart your AI agent — it will auto-discover the skill

How optimization-correctness-verifier Compares

Feature / Agentoptimization-correctness-verifierStandard Approach
Platform SupportNot specifiedLimited / Varies
Context Awareness High Baseline
Installation ComplexityUnknownN/A

Frequently Asked Questions

What does this skill do?

Verify correctness of compiler optimizations using formal methods

Where can I find the source code?

You can find the source code on GitHub using the link provided at the top of the page.

SKILL.md Source

# Optimization Correctness Verifier

## Purpose

Provides expert guidance on verifying semantic preservation of compiler optimizations.

## Capabilities

- Semantic preservation checking
- Alive2-style verification
- Bisimulation proof construction
- Counterexample generation
- Optimization refinement suggestions
- Undefined behavior handling

## Usage Guidelines

1. **Optimization Specification**: Define source and target patterns
2. **Precondition Identification**: Identify required preconditions
3. **Verification**: Check semantic equivalence
4. **Counterexample Analysis**: Analyze any counterexamples
5. **Refinement**: Refine optimization if needed

## Tools/Libraries

- Alive2
- CompCert
- SMT solvers
- Vellvm

Related Skills

image-optimization

509
from a5c-ai/babysitter

Image formats, responsive images, lazy loading, and CDN integration.

bundle-optimization

509
from a5c-ai/babysitter

Bundle analysis, code splitting, tree shaking, and size optimization.

tensorrt-optimization

509
from a5c-ai/babysitter

NVIDIA TensorRT model optimization and deployment. Convert models to TensorRT engines, configure optimization profiles and precision modes, apply INT8 calibration, analyze kernel fusion, generate custom plugins, and profile inference performance.

shader-optimization

509
from a5c-ai/babysitter

Shader performance optimization skill for instruction counting, GPU profiling, and rendering efficiency.

mobile-optimization

509
from a5c-ai/babysitter

Mobile GPU optimization skill for thermal management.

asset-optimization

509
from a5c-ai/babysitter

Asset optimization skill for mesh and texture budgets.

synthesis-optimization

509
from a5c-ai/babysitter

Expertise in RTL optimization for FPGA synthesis tools. Analyzes synthesis reports, applies attributes, and guides resource inference for optimal QoR.

scipy-optimization-toolkit

509
from a5c-ai/babysitter

SciPy scientific computing skill for numerical optimization, integration, and signal processing in physics

nonlinear-optimization-solver

509
from a5c-ai/babysitter

Solve general nonlinear optimization problems

mixed-integer-optimization

509
from a5c-ai/babysitter

Mixed-integer linear and nonlinear programming

derivative-free-optimization

509
from a5c-ai/babysitter

Optimization without gradient information

convex-optimization-solver

509
from a5c-ai/babysitter

Solve convex optimization problems efficiently