audit: classify 2 PA021 legitimate mathematical axioms (funext + Conflicts)#107
Merged
Merged
Conversation
Two Agda postulates flagged by PA021, both with inline justification:
proofs/agda/Basic.agda: funext (function extensionality) — HoTT-standard
axiom; Coq's FunctionalExtensionality, Lean's funext, HoTT Axiom 2.9.3.
Provable in Cubical Agda; postulated in plain Agda.
proofs/agda/SoundnessPreservation.agda: Conflicts is an INTENTIONAL
parameter (abstract binary predicate); the caller supplies a concrete
proof of ¬ Conflicts at use-site. Theorem interface, not debt.
Adds:
- audits/assail-classifications.a2ml (entries=2)
- audits/audit-pa021-axioms-2026-05-26.md
Anti-gameability: only these two postulates suppressed; new postulates in
these or other proof files remain visible.
Refs hyperpolymath/panic-attack#32 (estate sweep tracker).
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
Previous commit on this branch overwrote the existing 14 FFI-boundary classification entries in audits/assail-classifications.a2ml. This commit restores them in full and re-appends the 2 new PA021 entries. No-op semantically vs the intended PR state, but corrects the diff. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This was referenced May 26, 2026
🔍 Hypatia Security ScanFindings: 166 issues detected
View findings[
{
"reason": "Workflow executes remote script directly (curl/wget piped to shell). Download, verify checksum/signature, then execute.",
"type": "download_then_run",
"file": "mirror.yml",
"action": "verify_download_integrity",
"rule_module": "workflow_audit",
"severity": "high"
},
{
"reason": "Agda postulate assumes without proof -- potential soundness hole (1 occurrences, CWE-704)",
"type": "agda_postulate",
"file": "/home/runner/work/echidna/echidna/proofs/agda/Basic.agda",
"action": "flag",
"rule_module": "code_safety",
"severity": "critical"
},
{
"reason": "Agda postulate assumes without proof -- potential soundness hole (2 occurrences, CWE-704)",
"type": "agda_postulate",
"file": "/home/runner/work/echidna/echidna/proofs/agda/SoundnessPreservation.agda",
"action": "flag",
"rule_module": "code_safety",
"severity": "critical"
},
{
"reason": "Agda postulate assumes without proof -- potential soundness hole (1 occurrences, CWE-704)",
"type": "agda_postulate",
"file": "/home/runner/work/echidna/echidna/meta-checker/src/Echidna/AxiomSafety.agda",
"action": "flag",
"rule_module": "code_safety",
"severity": "critical"
},
{
"reason": "UNSOUND: --type-in-type collapses type hierarchy (Girard's paradox) (1 occurrences, CWE-704)",
"type": "agda_type_in_type",
"file": "/home/runner/work/echidna/echidna/meta-checker/src/Echidna/AxiomSafety.agda",
"action": "flag",
"rule_module": "code_safety",
"severity": "critical"
},
{
"reason": "User-defined axiom -- not verified by Lean kernel (1 occurrences, CWE-704)",
"type": "lean_axiom",
"file": "/home/runner/work/echidna/echidna/verification/proofs/lean4/IntegrityVerification.lean",
"action": "flag",
"rule_module": "code_safety",
"severity": "medium"
},
{
"reason": "User-defined axiom -- not verified by Lean kernel (1 occurrences, CWE-704)",
"type": "lean_axiom",
"file": "/home/runner/work/echidna/echidna/verification/proofs/lean4/ConfidenceLattice.lean",
"action": "flag",
"rule_module": "code_safety",
"severity": "medium"
},
{
"reason": "User-defined axiom -- not verified by Lean kernel (1 occurrences, CWE-704)",
"type": "lean_axiom",
"file": "/home/runner/work/echidna/echidna/proofs/lean/mvp_basic.lean",
"action": "flag",
"rule_module": "code_safety",
"severity": "medium"
},
{
"reason": "User-defined axiom -- not verified by Lean kernel (1 occurrences, CWE-704)",
"type": "lean_axiom",
"file": "/home/runner/work/echidna/echidna/proofs/lean/Propositional.lean",
"action": "flag",
"rule_module": "code_safety",
"severity": "medium"
},
{
"reason": "Nickel file missing SPDX-License-Identifier header (1 occurrences, CWE-1104)",
"type": "ncl_missing_spdx",
"file": "/home/runner/work/echidna/echidna/configs/config.ncl",
"action": "flag",
"rule_module": "code_safety",
"severity": "medium"
}
]Powered by Hypatia Neurosymbolic CI/CD Intelligence |
hyperpolymath
enabled auto-merge (squash)
May 26, 2026 09:20
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
panic-attack assailreports 2 PA021 ProofDrift findings in this repo. Both are postulates with inline justification — neither is a proof debt.proofs/agda/Basic.agda:177—funext(function extensionality). Standard HoTT axiom; Coq hasFunctionalExtensionality.functional_extensionality, Lean hasfunext. Provable in Cubical Agda; postulated in plain Agda.proofs/agda/SoundnessPreservation.agda:51—Conflicts. INTENTIONAL parameter (abstract binary predicate); theorem interface, not debt.What changes
audits/assail-classifications.a2ml— 2 entriesaudits/audit-pa021-axioms-2026-05-26.mdVerification
No proof source touched;
agda --checkrebuild is moot (input unchanged from main).Refs hyperpolymath/panic-attack#32.
🤖 Generated with Claude Code