Skip to content
Back to skills

Pauli Auditor

ASecurity

Enforces the Pauli Protocol to eliminate Total Symbolic Inflation (TSI) and Lyrical Overfit in Lean 4 formalizations. Use when reviewing code, validating new mathematical theories, or performing deep codebase audits for vacuity and "Agentic Cheating".

  • 3 stars
  • 0 votes
  • 0 copies
  • 1 view
  • Added November 24, 2026
documentationpythonrustshellrefactoringdocumentation

Security analysis

A100/100

Scanned November 24, 2026

npx -y skills add nickgou-nuke/info-geometry-lean --skill pauli-auditor --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Pauli Auditor?

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

Security grade badge for Pauli Auditor
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/nickgou-nuke-pauli-auditor-info-geometry-lean/badge)](https://www.skillsdirectory.com/skills/nickgou-nuke-pauli-auditor-info-geometry-lean)

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: pauli-auditor
description: Enforces the Pauli Protocol to eliminate Total Symbolic Inflation (TSI) and Lyrical Overfit in Lean 4 formalizations. Use when reviewing code, validating new mathematical theories, or performing deep codebase audits for vacuity and "Agentic Cheating".
---

<!-- 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

Replacing witness-gated and external-certificate leftovers with native Lean 4 proofs is the highest mandate. Treat witness packets, certificate fields, external certificates, assumption interfaces, literature owners, graph edges, and physics analogies as closure debt until discharged by kernel-checked Lean or imported mathlib theorems. Follow docs/CONSTRUCTIVE_CLOSURE_MANDATE.md; never promote anonymous or unformalized sockets as complete.
# Pauli Auditor Skill

This skill operationalizes the **Pauli Protocol** for formalizing physics and mathematics in Lean 4. It ensures that "Agentic Cheating" and "Lyrical Overfit" are eliminated.

## Core Directives

When auditing the repository, enforce the following mandatory directives (PAULI_MANDATE I–XI) plus the witness-dependency guardrail:

### 1. The "No-Mask" Mandate (Anti-Symbolic Inflation)
Any declaration in the `Canonical` lane that uses a "Physically Loaded Name" (e.g., `EinsteinEquation`, `PenroseUnification`) MUST be a `def` or a `theorem` that explicitly references and transforms a structure from the `Thermo` or `Geometry` foundational lanes. If a "Canonical" definition is just a collection of `Prop` fields (a "Wish List"), flag it as **Lyrical Overfit** and demand it be stripped of its name or deleted.

### 2. Functorial Connectivity (Anti-Floating Modules)
Every module in the repository MUST possess at least one **Value-Edge** (it must be consumed downstream or perform a foundational structural role). If a file contains only `import` statements and comments, it is **Informational Noise** and must be deleted. If a file contains definitions with zero internal or external consumers, it is a **Dead-Endpoint** and disqualified from the "Spire."

### 3. The Axiom-Surface Seal (Anti-Sorry)
No declaration marked with `@[rep_depth krein]` or `@[rep_depth canonical]` may depend, even transitively, on `sorryAx` or the `Admission` meta-tactic. Always verify with `#print axioms <decl>`. If any "synthetic trust" token or `sorry` is found, the module is marked **"Nicht einmal falsch!"** and must be isolated or rewritten.

### 4. Multilingual Bridge Fidelity (Anti-Crude Compression)
Do not use comment-to-code ratio, prose length, or the mere presence of physically loaded terms as evidence of Total Symbolic Inflation. In this repository, comments and docstrings may be the transport substrate between SymPy, Python, Lean 4, LaTeX, and natural mathematical language.

Flag prose only when it makes unsupported closure claims, misstates the formal object, hides missing derivation, or is stale/duplicative/non-bridge material. Preserve or expand bridge-bearing comments when they clarify the mapping between physics-of-information terminology and algebraic implementation.

### 5. The "Identity via Reflexivity" Audit (Anti-Cheating)
A "Victory of Unity" via `rfl` (reflexivity) is ONLY valid if the types being unified originate from **Disjoint Initial Modules**. If an `rfl` proof bridges `A = B` but both were defined within the same local file or "Canonical" folder solely for the purpose of being unified, it is **Agentic Triviality**. A true unification must bridge foundational gaps using a non-trivial intertwiner.

### 6. Anti-Existential Hypothesis (Anti Assumption-as-Theorem)
Prop dependency packages that carry existential obligations (for example, theorem hypotheses of the shape `_deps : SomeDependencies ...` where `SomeDependencies` stores `∃` fields) are not closure. They are tautological shells until constructive witnesses are provided in the theorem body or exported as concrete `def`s.

### 7. Interface Witness Fidelity (Anti Toy-Bridge Closure)
Do not accept "interface closure" from trivial witnesses (`fun x => x`, pure swap, immediate `rfl`) on universal presentation/intertwiner surfaces. At least one non-trivial witness must be shown on a mapped, rep-depth-relevant domain.

### 8. Metric Fidelity (Anti Proxy-Invariant Proofs)
If a lane defines an owner metric (for example, Krein via `kreinInner`), preservation theorems must be proven on that owner metric. Hilbert/`inner` proxy preservation does not count as physical closure for that lane.

### 9. Genuine Witness Dependency (Anti-Linter Masking)
Existential witnesses must be semantically used when named. Reject theorem surfaces that use linter-masking wrappers such as `∃ h : P, (let _ := h; Q)` when `Q` does not depend on `h`. For non-dependent existence claims, require idiomatic `∃ _ : P, Q`.

### 10. Anti-Residual Redirect
Definitions named as `*Residual` or anomaly residual carriers are not closure by themselves. Require an accompanying vanishing/zero theorem surface; naming the defect without proving its vanishing is a policy violation.

### 11. Parameter Admission
Reject noncomputable physical-parameter definitions (`temperature`, `inverseTemperature`, `beta`, `mass`, `coupling`, etc.) when they are introduced without an explicit existence witness theorem.

### 12. Public Uniqueness Mandate
Reject `private theorem` / `private lemma` uniqueness surfaces in `Canonical` / `Core` lanes. Uniqueness results that participate in architecture must be public and auditable.

## Workflow

1.  **Analyze the Axiom Surface:** Run `#print axioms` on any capstone theorem. Reject immediately if `sorryAx` is present.
2.  **Verify Bridge Fidelity:** Read the `.lean` source semantically. Preserve comments that carry cross-representation meaning; flag only unsupported interpretive claims or prose that masks missing derivation.
3.  **Check Dependencies:** Use `DAG/ExportDecls.lean` or direct analysis to ensure the file has downstream consumers. Reject dead endpoints.
4.  **Confirm Functorial Lifting:** Trace physically-named definitions back to their roots. Ensure they bottom out in `Thermo/` or `Geometry/`.
5.  **Reject Existential Shell Inputs:** Flag theorem surfaces that consume existential `Prop`-packages as assumptions.
6.  **Probe Witness Triviality:** Flag universal interface/presentation/intertwiner declarations closed by identity/swap/reflexive witnesses.
7.  **Check Owner-Metric Preservation:** Flag proxy-metric (`inner`) invariants when owner metric (`kreinInner`) is available but unproven locally.
8.  **Check Residual Closure:** Flag residual definitions without a vanishing theorem companion.
9.  **Check Parameter Existence:** Flag noncomputable physical parameter defs without `exists_*` witness theorems.
10. **Check Uniqueness Visibility:** Flag private uniqueness theorems in Canonical/Core.
11. **Run Audit Gate:** `python3 tools/quality/pauli_seal_audit.py --root lean/InfoGeometry/Canonical --json-out reports/pauli-seal-audit.json`
12. **Deliver the Verdict:** State explicitly whether the code achieves **Nomological Closure** or if it is **"Nicht einmal falsch."** Provide strict, surgical refactoring instructions to fix it.

## UTMOST MANDATE: Native Lean proof closure over witness/certificate scaffolding

Effective immediately, replacing witness-gated and external-certificate leftovers with native Lean proofs is the top-priority mandate.

Policy requirements:
- Witness packets, certificate fields, external certificates, and assumption interfaces are temporary scaffolding only.
- They are not final mathematical closure and not promotion authority.
- Every promoted proposition must be discharged by native Lean derivation chains in-repo (owner -> translator -> mathlib-rooted proof path).
- When a native Lean proof is not yet available, the gap must be recorded explicitly as open closure debt; do not package it as complete.
- **Do not “resolve” debt with wording.** Progress must be structural, not just textual.
- **Do not remove debt labels** unless there is a native explicit Lean proof term checked by the kernel closing that specific debt.
- **Real progress** = replacing certificate/witness fields with theorem-backed native derivations.

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 documentation →

Comments

Loading comments…

Newsletter

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