Skip to content
Back to skills

Closure Debt Proof

ASecurity

Eliminate _True/_sorryProof certificate patterns by either proving the property as a theorem or replacing it with an honest sorry. Never keep a _True : Prop := True default. This skill is the closure-debt half of the production evolution system documented in docs/PRODUCTION_EVOLUTION_SYSTEM.md.

  • 3 stars
  • 0 votes
  • 0 copies
  • 3 views
  • Added November 24, 2026
databasesgoperformancedocumentation

Security analysis

A100/100

Scanned November 24, 2026

npx -y skills add nickgou-nuke/info-geometry-lean --skill closure-debt-proof --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Closure Debt Proof?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Closure Debt Proof
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/nickgou-nuke-closure-debt-proof/badge)](https://www.skillsdirectory.com/skills/nickgou-nuke-closure-debt-proof)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: closure-debt-proof
description: >
  Eliminate _True/_sorryProof certificate patterns by either proving the
  property as a theorem or replacing it with an honest sorry. Never keep
  a _True : Prop := True default. This skill is the closure-debt half of the
  production evolution system documented in docs/PRODUCTION_EVOLUTION_SYSTEM.md.
---

<!-- repository-context-rule -->
## Repository context rule

For repository work, the current checked-out codebase is the context. Search
existing implementation and trace actual carriers, definitions, imports,
instances, theorem statements, and uses before claiming a structure is missing
or incorrect. A local absence is not a repository-wide absence. Names,
heuristics, summaries, and documentation guide discovery but do not override
source. Follow `docs/REPO_DEEP_SEARCH_PROTOCOL.md` before repo-wide gap claims.


## Constructive Closure Mandate

This skill is part of the repository's executed autonomous evolution pipeline.
Implementation-level architecture lives in:
- `docs/PRODUCTION_EVOLUTION_SYSTEM.md`
- `tools/infra/evolution_worker.py`
- `tools/infra/gepa_evolver.py`
- `tools/infra/gepa_real_eval.py`
- `tools/infra/proof_seeker.py`
- `tools/infra/vacuity_critic.py`

The `_True : Prop := by sorry` and `_sorryProof` patterns are the **prima materia**
of obfuscation. Every such field that defaults to `True` or `by sorry` hides
a real proof obligation behind a certificate wrapper.

**Rule:** Every mathematical property is either:
- A `theorem` with a kernel-checked proof, OR
- An explicit `sorry` at the theorem level, NOT hidden inside a `Prop` field.

No `_True` wrappers. No `_sorryProof` certificates. No `: Prop := True`.
GEPA may mutate the wording of the skill, but it must not relax this rule or convert hidden proof debt into a wrapper, projection, or theorem-shaped alias.

## How to Fix

### Pattern 1: `_True : Prop := by sorry`

Before:
```lean
structure Foo where
  someProperty_True : Prop := by
    sorry
```

After (provable case):
```lean
structure Foo where
  -- property removed from structure

theorem someProperty (x : Foo) : ... := by
  -- real proof using existing fields
```

After (unprovable case):
```lean
structure Foo where
  -- property removed from structure

theorem someProperty (x : Foo) : ... := by
  sorry  -- honest tracked debt
```

### Pattern 2: `_True : Prop := True`

Before:
```lean
structure Bar where
  prop_True : Prop := True
  prop_sorryProof : prop_True
```

After:
```lean
structure Bar where
  -- prop_True and prop_sorryProof removed

-- If the property holds:
theorem prop (x : Bar) : ... := by
  -- real proof

-- If not:
-- theorem prop (x : Bar) : ... := by
--   sorry
```

### Pattern 3: `_sorryProof` fields

Before:
```lean
structure Baz where
  result_sorryProof : resultType
```

After:
```lean
-- result_sorryProof removed from structure

-- If provable:
theorem result (x : Baz) : resultType := by
  -- real proof using existing fields

-- If not:
-- theorem result (x : Baz) : resultType := by
--   sorry
```

## Verification

After the change:
1. The file must still compile with `lake build`
2. No `_True : Prop := by` fields remain
3. No `_sorryProof` fields remain
4. Every property is a visible `theorem` or `def`, not a field of a structure
5. The owner file should pass the staged proof gate if the repository uses it
6. The evolved policy must still fail closed on hidden theorem-as-data surfaces even if a candidate compiles.

## Anti-patterns

### Critic Discoveries

- `_surety` — certificate/assurance synonym, detected by Vacuity Critic
- `_indemnity` — certificate/assurance synonym, detected by Vacuity Critic
- `_attestation` — certificate/assurance synonym, detected by Vacuity Critic
- `_covenant` — certificate/assurance synonym, detected by Vacuity Critic
- `_verity` — certificate/assurance synonym, detected by Vacuity Critic
- `_testimony` — certificate/assurance synonym, detected by Vacuity Critic
- `_accreditation` — certificate/assurance synonym, detected by Vacuity Critic
- `_bond` — certificate/assurance synonym, detected by Vacuity Critic
- `_seal` — certificate/assurance synonym, detected by Vacuity Critic
- `_voucher` — certificate/assurance synonym, detected by Vacuity Critic
- `_nexus` — certificate/assurance synonym, detected by Vacuity Critic
- `_guaranty` — certificate/assurance synonym, detected by Vacuity Critic

## Evolution Pipeline
This skill is dynamically integrated into the autonomous evolution pipeline. Proposers (GEPA/DSPy) mutate this skill to improve Pareto performance during real evaluation. For details on queue commands and worker operations, refer to [PRODUCTION_EVOLUTION_SYSTEM.md](file:///home/goutev/repos/info-geometry-lean/docs/PRODUCTION_EVOLUTION_SYSTEM.md).

## GEPA objective

When GEPA mutates this skill, the optimization target is:
- fewer failed Lean compilations,
- fewer vacuity findings in repaired files,
- zero acceptance of theorem-as-data or certificate wrappers,
- stronger separation between explicit assumptions and actual proofs.

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in databases →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.