proof(entropy): entropy-blind-parametric — parametric-distribution non-distinguishing by hyperpolymath · Pull Request #261 · hyperpolymath/echo-types · GitHub
Skip to content

proof(entropy): entropy-blind-parametric — parametric-distribution non-distinguishing#261

Merged
hyperpolymath merged 3 commits into
mainfrom
claude/gallant-faraday-LSAGJ
Jun 21, 2026
Merged

proof(entropy): entropy-blind-parametric — parametric-distribution non-distinguishing#261
hyperpolymath merged 3 commits into
mainfrom
claude/gallant-faraday-LSAGJ

Conversation

@hyperpolymath

Copy link
Copy Markdown
Owner

Closes the Echo-relevant half of the one genuinely-open Agda obligation in the repo — the EchoEntropy companion remark's "real-valued / parametric-distribution" item — at the honest scope.

What lands

Two new headlines in EchoEntropy.agda, in the module's own positive + matched-negative idiom:

  • entropy-blind-parametric (positive, parametric). entropy-shadow-blind (Headline 3) only covered any function of the fibre count — a single . This generalises to any information functional H : (Fin 2 → W) → X of a fibre-determined distribution P over the fibre of collapse at tt: it agrees on echo-true and echo-false. The fibre is shared by both echoes, so a distribution read off the fibre (not the witness) doesn't mention the echo — blindness is structural. This covers any real-/rational-/abstract-valued entropy, Rényi entropy, or mutual-information functional the moment one is supplied.
  • entropy-witness-distinguishes (matched-negative). A witness-determined distribution (the point-mass carrying proj₁ sigma-distinguishes e) does separate the two echoes under a sampling functional. Blindness ⟺ fibre-determined; distinguishing ⟺ witness-determined — mirroring the discrete result's fibre-vs-witness split.

Honest scope (deliberately not over-claimed)

The construction of a concrete real-valued H(P) = -Σ p log p is not attempted: it needs a reals + logarithm formalisation, which is an analysis task orthogonal to Echo (not a Probability-interface gap), and faking it would breach the zero-postulate discipline. The point is that the non-distinguishing — the only Echo-side content — now holds for any such functional regardless. The module header (scope guardrail + headline list) and companion remark are updated to say exactly this.

Verification

  • agda proofs/agda/EchoEntropy.agda → exit 0
  • agda proofs/agda/Smoke.agda → exit 0 (both new headlines pinned)
  • agda proofs/agda/All.agda → exit 0
  • --safe --without-K, zero postulates (grep-checked), no funext, no escape pragmas.

🤖 Generated with Claude Code

https://claude.ai/code/session_01PWMMxryCcPrAjJ8tuGvygG


Generated by Claude Code

…n-distinguishing

Generalises EchoEntropy's discrete fibre-count blindness (Headline 3, entropy-shadow-blind, a function of a single ℕ count) to the parametric form the companion remark flagged open: any information functional H : (Fin 2 → W) → X of any fibre-determined distribution over the fibre of collapse at tt agrees on echo-true and echo-false (entropy-blind-parametric), paired with the matched-negative that a witness-determined distribution distinguishes (entropy-witness-distinguishes, via sigma-distinguishes). The non-distinguishing now holds for ANY real-/rational-/abstract-valued entropy, Renyi entropy or mutual-information functional once supplied — no reals/log library needed, the blindness is structural. Constructing a concrete real-valued H(P) = -Sigma p log p remains an orthogonal reals+logarithm task, independent of Echo, and is deliberately not attempted.

Verified: agda proofs/agda/Smoke.agda + proofs/agda/All.agda exit 0 under --safe --without-K, zero postulates, no funext. Both headlines pinned in Smoke.agda.

Co-Authored-By: Claude <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01PWMMxryCcPrAjJ8tuGvygG
@github-actions

Copy link
Copy Markdown

@hyperpolymath hyperpolymath marked this pull request as ready for review June 21, 2026 12:09
@hyperpolymath hyperpolymath merged commit 9c56d40 into main Jun 21, 2026
4 of 13 checks passed
@hyperpolymath hyperpolymath deleted the claude/gallant-faraday-LSAGJ branch June 21, 2026 12:09
@github-actions

Copy link
Copy Markdown

🔍 Hypatia Security Scan

Findings: 6 issues detected

Severity Count
🔴 Critical 0
🟠 High 3
🟡 Medium 3
View findings
[
  {
    "reason": "No test directory or test files found",
    "type": "no_tests",
    "file": "/home/runner/work/echo-types/echo-types",
    "action": "flag",
    "rule_module": "honest_completion",
    "severity": "high",
    "deduction": 20
  },
  {
    "reason": "Nominal-only SAST in echo-types: codeql.yml language matrix contains no language present in the repo and lacks `actions`, so CodeQL records zero results on every commit. Remediation: set the CodeQL matrix to `language: actions`.",
    "type": "StaticAnalysis",
    "file": "/home/runner/work/echo-types/echo-types",
    "action": "auto_fix",
    "rule_module": "scorecard",
    "severity": "medium",
    "remediation": "Add CodeQL or equivalent SAST workflow.",
    "scorecard_check": "SAST"
  },
  {
    "reason": "Repository has 7 non-main remote branch(es). Policy: single main branch only.",
    "type": "GS007",
    "file": ".",
    "action": "delete_remote_branches",
    "rule_module": "git_state",
    "severity": "medium"
  },
  {
    "reason": "Code scanning (Scorecard): TokenPermissionsID -- Token-Permissions -- 18 day(s) old [STALE]",
    "type": "CSA001",
    "file": ".github/workflows/scorecard.yml",
    "action": "escalate",
    "rule_module": "code_scanning_alerts",
    "severity": "high"
  },
  {
    "reason": "Code-scanning alert TokenPermissionsID (high) at .github/workflows/scorecard.yml is 18 days old (threshold: 7 days) -- overdue for remediation",
    "type": "CSA003",
    "file": ".github/workflows/scorecard.yml",
    "action": "escalate",
    "rule_module": "code_scanning_alerts",
    "severity": "high"
  },
  {
    "reason": "Code-scanning alert hypatia/code_safety/agda_postulate dismissed as 'false positive' -- ensure dismissal is documented and justified",
    "type": "CSA004",
    "file": "proofs/agda/EchoImageFactorizationPropPostulated.agda",
    "action": "review",
    "rule_module": "code_scanning_alerts",
    "severity": "medium"
  }
]

Powered by Hypatia Neurosymbolic CI/CD Intelligence

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants