Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
23 changes: 17 additions & 6 deletions data/hypergraph/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ Built with Hypergraph-DB 0.4.0 by `tools/hypergraph/math_hypergraph.py`. Each co
**one hyperedge** whose `roles` map labels members as unit / source / review / impl / node / lane / record.

## Inputs (all in-repo)
- `math_coverage_ledger_20261023.md` — RETRO-MATH-BIND-02 ledger with the 24 October Main source-membership supplement; the original 211/133 snapshot is retained in its history.
- `math_coverage_ledger_20261023.md` — RETRO-MATH-BIND-02 ledger with the 24 October Main membership corrections; the original 211/133 and subsequent 213/131 snapshots are retained in its history.
- `../../docs/site/dependency-source/GRAPH.json` — 49 graph nodes (#527).
- `graph_binding_report_20261023.json` — #527 binding report snapshot (21 bound nodes).

Expand All @@ -32,17 +32,28 @@ workflow_dispatch, with read-only checkouts of public Math- and query-, and uplo
`math-hypergraph` artifact. Vertex keys are repo-prefixed (`main:`, `Math-:`, `query-:`). See `tools/hypergraph/README.md`.
The PNG is a build artifact (optional, `--png`), not committed.

## Gap counts after the Main membership supplement (2026-10-24)
344 ledger rows / 1290 vertices / 344 hyperedges. Sourced containers 213 (131 missing). Implemented 296 (48 missing),
## Gap counts after the formal membership correction (2026-10-24)
344 ledger rows / 1293 vertices / 344 hyperedges. Sourced containers 214 (130 missing). Implemented 296 (48 missing),
of which 30 are placeholder-only ("in PR head" / "per census", no artifact). Bound units 14.
28 of 49 graph nodes unbound per #527; 13 nodes touched by no unit. Role problems 0.
Rows 307 and 310 now include the 56 tracked Markdown members under the existing
periodic-H0 and universality containers at Main
`32366ac0d4e2d1464eaac51866b9dce2128970b9`. These are proofs, reviews, notes,
protocols and historical reports, not 56 new theorem units or verified
proof-to-code relationships. The original 2026-10-23 graph had 1234 vertices and
211 sourced / 133 missing containers. Its 344 row identities and all
implementation/node/bound/status cells are preserved.
proof-to-code relationships. That supplement had 1290 vertices and 213 sourced /
131 missing containers. The original 2026-10-23 graph had 1234 vertices and
211 sourced / 133 missing containers.

The later row-312 correction consumes the existing `formal/manifest.json`
source-to-target map at Main `9c03589b1a3f0c1fd6befd09abe6b95c99cff7d7`.
It adds the two pinned SIDE24 source copies and the omitted `Ledger.lean`
implementation beside the existing ConeMoments/Endpoints modules. The map
declares 27 proof-source arithmetic targets plus four published-number
endpoint targets; these do not establish the coefficient enclosure or parent
theorem. Statement alignment remains PENDING_INDEPENDENT_REVIEW; no Lean or
formal gate ran. Row 313 is import-only and retains MISSING source. All 344
row identities, the other 343 raw rows and every node/bound/status cell remain
unchanged; only row 312's source/implementation membership changes.

This is a bounded membership correction, not complete Main/history/cloud
coverage. The exact-sample shrinking-bin note's declared complete comment proof
Expand Down
36 changes: 29 additions & 7 deletions data/hypergraph/math_coverage_ledger_20261023.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ Math stays fail-closed: credit 0 · OBL OPEN · no flags. This is an inventory o
## Totals
- Header corrected 2026-10-23 (CoS): the table has 133 literal `MISSING` source cells, so sourced = 211 (was misstated as 215 / 129).
- Units: **344**. That is 313 from #527, 17 unmerged from #538, 13 R22 companions and 1 R21 companion.
- Have a proof or lemma source file in the repo: **213**. No source file: **131**.
- Have a proof or lemma source file in the repo: **214**. No source file: **130**.
- Have an implementation (code or refs): **296**. Missing an implementation: **48**.
- Tied to a graph node: **22**. Bound (node, impl and commit): **14**. The graph has 49 nodes with 21 bound per #527, so 28 nodes are unbound.
- Name-matched to a Drive mirror: 4. Name matching is weak. DRV-H1 maps Drive by folder lane, not by unit.
Expand All @@ -19,17 +19,39 @@ Main containers (28 periodic-H0 and 28 universality files), frozen at Main
reading maps, protocols and historical reports. Membership is source presence,
not a claim that every member is a proof or that co-located code implements it.
The original 211 sourced / 133 missing snapshot is retained above as historical;
current container counts are 213 / 131. The denominator remains **344 ledger
rows**, not 344 accepted theorems or 56 new units. Implementation, node, bound and
status cells are unchanged.
that supplement's container counts were 213 / 131. The denominator remains
**344 ledger rows**, not 344 accepted theorems or 56 new units. Within that
supplement, implementation, node, bound and status cells were unchanged.

This is not a complete Main corpus. Zeta, research-translation, formal sources,
other roots, histories and private storage keep their existing scope. In
This is not a complete Main corpus. Zeta, research-translation, other roots,
histories and private storage keep their existing scope; the later bounded
formal correction is described below. In
particular `EXACT_SAMPLE_SHRINKING_BIN.md` points to its separately identified
canonical proof in GitHub comment 229/5976299711; indexing the note does not
import or verify that complete comment body. Scientific acceptance and original
review qualifications are unchanged. Credit 0; OBL OPEN; NOT A RESULT.

## Formal source-to-module correction, 24 October 2026

At Main `9c03589b1a3f0c1fd6befd09abe6b95c99cff7d7`, existing row 312 gains
the two source copies declared by `formal/manifest.json`, plus its omitted
`Ledger.lean` implementation alongside `ConeMoments.lean` and `Endpoints.lean`.
The manifest maps the SIDE24 PROOF source to 17 Ledger and 10 ConeMoments
arithmetic targets, and the ENCLOSURE source to four endpoint targets. The
latter is frozen published-number input: these endpoint lemmas do not prove
that the coefficient is enclosed. The source copies are pinned to Math-
`9d7b6802424fb4715b31999066aafca8ee2f3cca`; the manifest's source/module hashes
were checked without executing Lean or the formal gate. Statement alignment
remains `PENDING_INDEPENDENT_REVIEW`.

This is declared source-to-module provenance for one existing container, not
a new theorem or fresh mathematical review. Row 313 is an import-only root
and keeps its MISSING source cell. The other 343 raw rows, and all node, bound,
status and Drive-hit cells, are unchanged. Current counts are 214 sourced /
130 missing, 1293 vertices and 344 hyperedges; implementation-container counts
remain 296 / 48. Only row 312's source and implementation membership changes.
All scientific predicates and original review qualifications are preserved.

## Ledger
| # | source | repo | unit | lane | proof/lemma files (sample) | impl | graph node | bound | status | drive hits |
|---|---|---|---|---|---|---|---|---|---|---|
Expand Down Expand Up @@ -344,7 +366,7 @@ review qualifications are unchanged. Credit 0; OBL OPEN; NOT A RESULT.
| 309 | main#527 | main | `experiments/semantic_memory` | GB-8r | MISSING | experiments/semantic_memory/benchmark.py; main:.github/workflows/semantic-memory-experiment.yml | — | N | orphan | 0 |
| 310 | main#527 | main | `experiments/universality` | GB-8r | experiments/universality/AMPLITUDE_MIXTURE_FALSIFIER.md; experiments/universality/PROTOCOL.md; experiments/universality/README.md; experiments/universality/VALIDATION.md; experiments/universality/finite_candidate_lifetime/PROOF.md; experiments/universality/finite_candidate_lifetime/REVIEW.md; experiments/universality/finite_contact_genericity/PROOF.md; experiments/universality/finite_contact_genericity/REVIEW.md; experiments/universality/finite_elder_transfer/PROOF.md; experiments/universality/finite_elder_transfer/REVIEW.md; experiments/universality/finite_fold_chart/PROOF.md; experiments/universality/finite_fold_chart/REVIEW.md; experiments/universality/finite_gaussian_contact/PROOF.md; experiments/universality/finite_gaussian_contact/REVIEW.md; experiments/universality/finite_h0_lifetime/PROOF.md; experiments/universality/finite_h0_lifetime/REVIEW.md; experiments/universality/finite_weighted_fold_window/PROOF.md; experiments/universality/finite_weighted_fold_window/REVIEW.md; experiments/universality/fold_structural_universality/PROOF.md; experiments/universality/fold_structural_universality/REVIEW.md; experiments/universality/higher_homology_fold/PROOF.md; experiments/universality/higher_homology_fold/REVIEW.md; experiments/universality/iid_short_bar_process/PROOF.md; experiments/universality/iid_short_bar_process/REVIEW.md; experiments/universality/periodized_gaussian_h0/PROOF.md; experiments/universality/periodized_gaussian_h0/REVIEW.md; experiments/universality/spectral_gaussian_admission/PROOF.md; experiments/universality/spectral_gaussian_admission/REVIEW.md | experiments/universality/amplitude_process_controls.py; experiments/universality/fold_controls.py | — | N | orphan | 1 |
| 311 | main#527 | main | `experiments/zeta_fold_exploration` | GB-8n | MISSING | experiments/zeta_fold_exploration/dbn/check_collision.py; experiments/zeta_fold_exploration/dbn/check_collision_persistence.py | — | N | orphan | 0 |
| 312 | main#527 | main | `formal/UniversalLaw` | GB-8p | MISSING | formal/UniversalLaw/Side24/ConeMoments.lean; formal/UniversalLaw/Side24/Endpoints.lean | — | N | orphan | 0 |
| 312 | main#527 | main | `formal/UniversalLaw` | GB-8p | main:formal/sources/side24_v1/PROOF.md; main:formal/sources/side24_v1/ENCLOSURE.json | formal/UniversalLaw/Side24/Ledger.lean; formal/UniversalLaw/Side24/ConeMoments.lean; formal/UniversalLaw/Side24/Endpoints.lean | — | N | orphan | 0 |
| 313 | main#527 | main | `formal/UniversalLaw.lean` | GB-8p | MISSING | formal/UniversalLaw.lean; main:formal/manifest.json | — | N | orphan | 0 |
| 314 | #538 | Math- | `frontiers/critical_ridge_20261020` | PENDING_OPEN_PR #491,#496,#497 | execution/author/PROOF.md; project/CriticalRidge.lean; c299_hosted_verify.py | (in PR head) | — | N | unmerged | 0 |
| 315 | #538 | Math- | `frontiers/regular_point_chart_20261020` | PENDING_OPEN_PR #488 | RegularPointChart.lean; RegularPointChartAxiomAudit.lean; SOURCE_SHA256SUMS | (in PR head) | — | N | unmerged | 0 |
Expand Down
2 changes: 1 addition & 1 deletion data/hypergraph/math_hypergraph.json

Large diffs are not rendered by default.

17 changes: 8 additions & 9 deletions data/hypergraph/query_results.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,10 @@
"artifact_hyperedges": 0,
"vertices": {
"graph_node": 49,
"implementation": 20,
"implementation": 21,
"lane": 43,
"record": 4,
"source_file": 56,
"source_file": 58,
"unit": 8
}
}
Expand All @@ -26,10 +26,10 @@
"impl_placeholder_only": 30,
"implemented": 296,
"no_impl": 48,
"no_source": 131,
"no_source": 130,
"nodes_touched_by_no_unit": 13,
"role_problems": 0,
"sourced": 213,
"sourced": 214,
"unbound_nodes_per_527": 28,
"units": 344
},
Expand Down Expand Up @@ -249,7 +249,6 @@
"main:unit:experiments/reactor_v0",
"main:unit:experiments/semantic_memory",
"main:unit:experiments/zeta_fold_exploration",
"main:unit:formal/UniversalLaw",
"main:unit:formal/UniversalLaw.lean"
],
"nodes_touched_by_no_unit": [
Expand All @@ -268,7 +267,7 @@
"math.rn-mesoscopic-reduction"
],
"role_problems": [],
"sourced": 213,
"sourced": 214,
"unbound_nodes_per_527": [
"eng.d0-packet-allowlist-fix",
"eng.main-pr87-crosswalk",
Expand Down Expand Up @@ -349,13 +348,13 @@
"stats": {
"by_type": {
"graph_node": 49,
"implementation": 454,
"implementation": 455,
"lane": 43,
"record": 4,
"source_file": 396,
"source_file": 398,
"unit": 344
},
"hyperedges": 344,
"vertices": 1290
"vertices": 1293
}
}
43 changes: 43 additions & 0 deletions docs/superpowers/plans/2026-10-24-formal-source-membership.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
# Formal source-membership implementation plan

> **For agentic workers:** use superpowers:executing-plans for this one coupled data correction, then a fresh whole-branch review. Steps use checkbox syntax.

**Goal:** connect existing Main coverage row 312 to the SIDE24 source carriers and all three arithmetic modules already declared in the formal manifest.

**Architecture:** retain the existing ledger and deterministic hypergraph builder. Correct one row's source and implementation membership; add no unit, schema, registry or scientific predicate.

**Tech stack:** existing Python index tool, Hypergraph-DB 0.4.0, pytest; administrative Git/JSON/SHA-256 checks only.

**Spec:** [canonical bounded pickup, Main579/6387917545](https://github.com/d6g8k5htny-coder/main/pull/579#issuecomment-6387917545), applying the owner's delegated retroactive source-to-implementation task. The implementation choice is the acting worker's under that delegation.

## Constraints and decisions

- Frozen base: Main `9c03589b1a3f0c1fd6befd09abe6b95c99cff7d7`.
- Exactly 344 existing row identities and ordered hyperedges remain. All other 343 raw rows and every node, bound, status, lane, record and Drive-hit cell remain unchanged.
- Row 312 gains `main:formal/sources/side24_v1/PROOF.md` and `main:formal/sources/side24_v1/ENCLOSURE.json` in the source cell, and `formal/UniversalLaw/Side24/Ledger.lean` beside the two existing implementation paths.
- The existing `formal/manifest.json` is the provenance sidecar, not another theorem. Its 27 PROOF-source targets (17 Ledger, 10 ConeMoments) and four ENCLOSURE-source endpoint targets declare the relationship. Verify all bound hashes and the two local-copy/source identities; do not refresh the manifest.
- ENCLOSURE.json supplies frozen published numbers. The endpoint lemmas prove arithmetic about those numbers, not enclosure of the coefficient. Formal statement alignment remains `PENDING_INDEPENDENT_REVIEW`.
- Row 313's root module contains three imports, not another proof. It keeps its MISSING source cell. Research-translation, zeta and external storage remain outside this change.
- Expected counts: 214 sourced / 130 missing containers, 1293 vertices (1290 retained plus two source vertices and one implementation vertex), 344 hyperedges. Implementation-container counts remain 296/48; adding the omitted module is a member correction, not a newly implemented container.
- #581's preservation statement applies to its earlier two-row correction. This new change explicitly corrects row 312's implementation membership.
- No formal/math source, manifest, workflow, runtime, dependency, permission, graph-binding or scientific-status mutation. No mathematical program, mathematical tests, Lean build or formal gate execution. No Ready, MAIN-LOCK or author integration.

## Review focus

Check exact path resolution across the sibling source directory; distinguish source-copy provenance from mathematical alignment; verify published-number input is not described as an enclosure proof; preserve import-only row 313; compare every old vertex and ordered edge rather than relying only on counts. These are data-audit checks, not new product tests.

## Task 1: Correct the existing membership

**Files:** modify `data/hypergraph/{README.md,math_coverage_ledger_20261023.md,math_hypergraph.json,query_results.json}` and existing count expectations in `tools/hypergraph/test_math_hypergraph.py`; create this plan.

**Interfaces:** consumes the current ledger, graph/report snapshots and manifest-declared source-to-module relationship; produces the same output schema and CLI with one corrected binding row.

- [x] Verify the isolated clean baseline with `python -B -m pytest -q tools/hypergraph`: expected 19 passed.
- [x] Update only existing sourced/missing golden expectations to 214/130. Run the suite against unchanged data: expected three count assertions fail, 16 pass. Do not add tests that merely mirror this reversible data edit.
- [x] Correct row 312, update explanatory current counts and preserve dated earlier snapshots. Regenerate with `python -B -m tools.hypergraph.math_hypergraph build`.
- [x] Audit complete source bytes, Git blobs and SHA-256; all other ledger rows/cells, all 1290 prior vertices and all ordered edge metadata; require only the declared source/module membership delta.
- [x] Run the frozen index suite (19 passed), `build --check` (match) and `validate` (empty problems), recording actual return codes. These checks establish index consistency, not mathematics.
- [ ] Commit the exact six-path candidate, obtain a fresh nonauthor whole-branch review, then publish a Draft PR via native Git objects. Verify native/local parent, tree and blob equality.
- [ ] Deliver the finite source-stage result and personal release in the existing threads. Separate eligible integration retains current-base, review, Ready-event, checks, protection and queue requirements.

No new production code or dependency is introduced. Existing source/review scopes and scientific acceptance are unchanged. credit 0; OBL OPEN; NOT A RESULT.
8 changes: 4 additions & 4 deletions tools/hypergraph/test_math_hypergraph.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ def test_counts(built):
hg, G = built
g = mh.summary(mh.gaps(hg, G))
assert g["units"] == 344 and hg.num_e == 344
assert (g["sourced"], g["no_source"]) == (213, 131)
assert (g["sourced"], g["no_source"]) == (214, 130)
assert (g["implemented"], g["no_impl"]) == (296, 48)
assert g["impl_placeholder_only"] == 30
assert g["bound_units"] == 14
Expand All @@ -31,9 +31,9 @@ def test_counts(built):

def test_ledger_header_matches_table():
text = mh.LEDGER.read_text()
assert "**213**" in text and "**131**" in text
assert "**214**" in text and "**130**" in text
missing = sum(1 for r in mh.parse_ledger() if r["src"].upper().startswith("MISSING"))
assert missing == 131
assert missing == 130


def test_every_edge_fail_closed(built):
Expand Down Expand Up @@ -79,7 +79,7 @@ def test_shared_impl(built):

def test_cli(capsys):
assert mh.main(["gaps"]) == 0
assert json.loads(capsys.readouterr().out)["sourced"] == 213
assert json.loads(capsys.readouterr().out)["sourced"] == 214
assert mh.main(["validate"]) == 0
capsys.readouterr()
assert mh.main(["reach", "main:node:nope"]) == 2
Expand Down
Loading