feat(proofs/agda): upstream Echo/CNO bridge files from maa-framework vendored copy#65
Merged
Merged
Conversation
…vendored copy The maa-framework repo carries a vendored copy of absolute-zero with 3 Agda files added directly to proofs/agda/ that were never upstreamed back to canonical absolute-zero: - EchoBridgeScaffold.agda — compile-safe interface layer providing the `Echo` Σ-shape and `CNOModel` interface, intentionally independent of CNO.agda so it stays typecheckable while CNO.agda is being completed. - EchoBridgeCNO.agda — concrete model instantiation from CNO.Program and CNO.eval into the scaffold interface. Two bridges: identity via CNO.state-eq directly (echo-from-cno-program-rel), and propositional equality recovery via Extensionality. - README.adoc — describes the three-file structure of proofs/agda/. These files self-identify as absolute-zero artefacts (the README.adoc title is "Agda Proofs (absolute-zero)" and EchoBridgeScaffold's comment says "Echo/CNO Agda bridge scaffold"), so canonical home is here — not in maa-framework. The maa-framework re-vendor in maa-framework#83 has to use rsync --filter='P ...' to preserve them across syncs; landing them upstream removes that need. Discovered while triaging maa-framework's proof-debt classification (maa-framework#82 / maa-framework#84). The 3-file set has no postulates; `EchoBridgeCNO.agda` imports `Axiom.Extensionality.Propositional` as a *type* used as a module parameter (not a postulate). Documented this false-positive case in docs/proof-debt.md so check-trusted-base.sh (standards#211) passes without inline annotation. Refs: maa-framework#82, maa-framework#84, standards#203, standards#211. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
🔍 Hypatia Security ScanFindings: 64 issues detected
View findings[
{
"reason": "Ada pragma Suppress disables runtime checks (1 occurrences, CWE-704)",
"type": "ada_pragma_suppress",
"file": "/home/runner/work/absolute-zero/absolute-zero/examples/ada/balanced_ops.adb",
"action": "flag",
"rule_module": "code_safety",
"severity": "high"
},
{
"reason": "User-defined Coq axiom -- not verified by kernel (3 occurrences, CWE-704)",
"type": "coq_axiom",
"file": "/home/runner/work/absolute-zero/absolute-zero/proofs/coq/quantum/QuantumMechanicsExact.v",
"action": "flag",
"rule_module": "code_safety",
"severity": "medium"
},
{
"reason": "User-defined Coq axiom -- not verified by kernel (29 occurrences, CWE-704)",
"type": "coq_axiom",
"file": "/home/runner/work/absolute-zero/absolute-zero/proofs/coq/quantum/QuantumCNO.v",
"action": "flag",
"rule_module": "code_safety",
"severity": "medium"
},
{
"reason": "User-defined Coq axiom -- not verified by kernel (2 occurrences, CWE-704)",
"type": "coq_axiom",
"file": "/home/runner/work/absolute-zero/absolute-zero/proofs/coq/lambda/LambdaCNO.v",
"action": "flag",
"rule_module": "code_safety",
"severity": "medium"
},
{
"reason": "User-defined Coq axiom -- not verified by kernel (1 occurrences, CWE-704)",
"type": "coq_axiom",
"file": "/home/runner/work/absolute-zero/absolute-zero/proofs/coq/category/CNOCategory.v",
"action": "flag",
"rule_module": "code_safety",
"severity": "medium"
},
{
"reason": "User-defined Coq axiom -- not verified by kernel (13 occurrences, CWE-704)",
"type": "coq_axiom",
"file": "/home/runner/work/absolute-zero/absolute-zero/proofs/coq/filesystem/FilesystemCNO.v",
"action": "flag",
"rule_module": "code_safety",
"severity": "medium"
},
{
"reason": "User-defined Coq axiom -- not verified by kernel (14 occurrences, CWE-704)",
"type": "coq_axiom",
"file": "/home/runner/work/absolute-zero/absolute-zero/proofs/coq/physics/LandauerDerivation.v",
"action": "flag",
"rule_module": "code_safety",
"severity": "medium"
},
{
"reason": "User-defined Coq axiom -- not verified by kernel (10 occurrences, CWE-704)",
"type": "coq_axiom",
"file": "/home/runner/work/absolute-zero/absolute-zero/proofs/coq/physics/StatMech.v",
"action": "flag",
"rule_module": "code_safety",
"severity": "medium"
},
{
"reason": "undefined/error causes runtime crash (2 occurrences, CWE-754)",
"type": "undefined_error",
"file": "/home/runner/work/absolute-zero/absolute-zero/examples/haskell/Nop.hs",
"action": "flag",
"rule_module": "code_safety",
"severity": "high"
},
{
"reason": "believe_me undermines formal verification (7 occurrences, CWE-704)",
"type": "believe_me",
"file": "/home/runner/work/absolute-zero/absolute-zero/src/abi/Proofs/DivMod.idr",
"action": "flag",
"rule_module": "code_safety",
"severity": "critical"
}
]Powered by Hypatia Neurosymbolic CI/CD Intelligence |
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
Upstreams 3 Agda files that exist only in maa-framework's vendored copy of absolute-zero, but self-identify as absolute-zero artefacts.
proofs/agda/EchoBridgeScaffold.agda— compile-safe interface (EchoΣ-shape,CNOModel), intentionally independent ofCNO.agda.proofs/agda/EchoBridgeCNO.agda— concrete instantiation fromCNO.Program/CNO.evalinto the scaffold.proofs/agda/README.adoc— describes the directory.Why now
Discovered during proof-debt classification triage for maa-framework (filed at hyperpolymath/maa-framework#82, with disposition analysis in hyperpolymath/maa-framework#84). The maa-framework re-vendor (hyperpolymath/maa-framework#83) currently uses
rsync --filter='P ...'to preserve these files across each sync — once they're upstream, that filter becomes redundant.The README.adoc literally titles itself "Agda Proofs (absolute-zero)" and the scaffold header says "Echo/CNO Agda bridge scaffold", so the canonical home is here.
Trusted-base impact
The 3-file set has zero postulates and zero axioms.
EchoBridgeCNO.agdaimportsAxiom.Extensionality.Propositionalto obtain theExtensionalitytype, which is then accepted as an explicit module parameter by downstream functions — not postulated. Documented indocs/proof-debt.mdunder a new "False positives" section to satisfycheck-trusted-base.sh's path-enumeration clause.Test plan
cd proofs/agda && agda EchoBridgeScaffold.agdatypechecks.cd proofs/agda && agda EchoBridgeCNO.agdatypechecks (may needCNO.agdabuild prerequisites).bash scripts/check-trusted-base.sh .passes (path-enumeration covers the false positive).Companion
rsync --filter='P ...').absolute-zero/a deliberate fork or stale vendor copy? maa-framework#84 — fork-vs-vendor disposition issue (open, owner-decision).check-trusted-base.sh.Co-Authored-By: Claude Opus 4.7 (1M context) noreply@anthropic.com
🤖 Generated with Claude Code