Repository navigation
tools: math artifact hypergraph (Hypergraph-DB) — organization only, NOT A RESULT #579
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
9 commits
Select commit
Hold shift + click to select a range
a203e06
data: hypergraph in-repo inputs and outputs — organization only, NOT …
d6g8k5htny-coder 320a33d
tools: math artifact hypergraph CLI + tests — organization only, NOT …
d6g8k5htny-coder 5d21f60
tools/hypergraph: repo-agnostic portable builder, build --check, expo…
d6g8k5htny-coder d931479
tools/hypergraph: pinned requirements, all-repo inputs config, rebuil…
d6g8k5htny-coder 8ee664e
data/hypergraph: regenerate outputs with repo-prefixed vertex keys (b…
d6g8k5htny-coder 4f07cdc
tools/hypergraph: address Copilot review on #579 — specific formal/im…
d6g8k5htny-coder 1bbebf6
data/hypergraph: regenerate after Copilot fixes (record role, resolve…
d6g8k5htny-coder b836fac
Merge branch 'main' into tools/math-hypergraph
d6g8k5htny-coder f31c296
Merge branch 'main' into tools/math-hypergraph
d6g8k5htny-coder File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,72 @@ | ||
| name: Math hypergraph (organization only) | ||
| 'on': | ||
| pull_request: | ||
| paths: | ||
| - 'tools/hypergraph/**' | ||
| - 'data/hypergraph/**' | ||
| - 'docs/site/dependency-source/GRAPH.json' | ||
| - 'data/hypergraph/math_coverage_ledger_20261023.md' | ||
| - '.github/workflows/math-hypergraph.yml' | ||
| push: | ||
| branches: [main] | ||
| paths: | ||
| - 'tools/hypergraph/**' | ||
| - 'data/hypergraph/**' | ||
| - 'docs/site/dependency-source/GRAPH.json' | ||
| - 'data/hypergraph/math_coverage_ledger_20261023.md' | ||
| - '.github/workflows/math-hypergraph.yml' | ||
| workflow_dispatch: | ||
| permissions: | ||
| contents: read | ||
| jobs: | ||
| hypergraph: | ||
| name: math-hypergraph | ||
| runs-on: ubuntu-latest | ||
| timeout-minutes: 10 | ||
| steps: | ||
| - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 | ||
| with: | ||
| persist-credentials: false | ||
| # Read-only checkouts of the other public repos (no secrets). If one is private | ||
| # or unavailable the step is skipped and the builder prints "skip <repo>". | ||
| - name: Checkout Math- (public, read-only) | ||
| continue-on-error: true | ||
| uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 | ||
| with: | ||
| repository: d6g8k5htny-coder/Math- | ||
| path: external/Math- | ||
| persist-credentials: false | ||
| - name: Checkout query- (public, read-only) | ||
| continue-on-error: true | ||
| uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 | ||
| with: | ||
| repository: d6g8k5htny-coder/query- | ||
| path: external/query- | ||
| persist-credentials: false | ||
| - uses: actions/setup-python@5fda3b95a4ea91299a34e894583c3862153e4b97 | ||
| with: | ||
| python-version: '3.12' | ||
| cache: pip | ||
| cache-dependency-path: tools/hypergraph/requirements.txt | ||
| - name: Install pinned requirements | ||
| run: python -m pip install -r tools/hypergraph/requirements.txt | ||
| - name: Tests | ||
| run: python -m pytest -q -p no:cacheprovider tools/hypergraph | ||
| - name: build --check (committed outputs match a fresh rebuild) | ||
| run: python -m tools.hypergraph.math_hypergraph build --check | ||
| - name: validate | ||
| run: python -m tools.hypergraph.math_hypergraph validate | ||
| - name: gaps | ||
| run: python -m tools.hypergraph.math_hypergraph gaps | ||
| - name: Build all-repo bundle with PNG | ||
| run: | | ||
| set -euo pipefail | ||
| python -m tools.hypergraph.math_hypergraph repos | ||
| python -m tools.hypergraph.math_hypergraph export "$RUNNER_TEMP/hypergraph" --repos all --png | ||
| ls -l "$RUNNER_TEMP/hypergraph" | ||
| - uses: actions/upload-artifact@cf430e030ddbb5b0abf93d22962f4752f3646cd9 | ||
| with: | ||
| name: math-hypergraph | ||
| path: ${{ runner.temp }}/hypergraph/ | ||
| if-no-files-found: error | ||
| retention-days: 14 | ||
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,39 @@ | ||
| # Math artifact hypergraph — organization only, NOT A RESULT | ||
|
|
||
| credit 0 · OBL OPEN · no flags. This indexes existing records; it makes no correctness claim. | ||
|
|
||
| Built with Hypergraph-DB 0.4.0 by `tools/hypergraph/math_hypergraph.py`. Each coverage-ledger row is | ||
| **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 copy (header corrected: sourced 211, not 215). | ||
| - `../../docs/site/dependency-source/GRAPH.json` — 49 graph nodes (#527). | ||
| - `graph_binding_report_20261023.json` — #527 binding report snapshot (21 bound nodes). | ||
|
|
||
| ## Outputs | ||
| `math_hypergraph.json` (vertices + hyperedges), `query_results.json` (gaps, reach example, shared impls), | ||
| `bindings_hypergraph.png` (CI artifact only: the hyperedges that touch a graph node). | ||
|
|
||
| ## Rebuild / query | ||
| Locally (from the repo root, Python 3.11/3.12): | ||
| ``` | ||
| pip install -r tools/hypergraph/requirements.txt | ||
| python -m tools.hypergraph.math_hypergraph build # regenerate these JSON files (main only) | ||
| python -m tools.hypergraph.math_hypergraph build --check # CI gate: exit 1 if stale | ||
| python -m tools.hypergraph.math_hypergraph reach main:node:math.d1-component.congruence-erratum 2 | ||
| python -m tools.hypergraph.math_hypergraph gaps | ||
| python -m tools.hypergraph.math_hypergraph validate | ||
| python -m tools.hypergraph.math_hypergraph shared-impl 5 | ||
| python -m tools.hypergraph.math_hypergraph export /tmp/hg-bundle --repos all --png | ||
| pytest tools/hypergraph | ||
| ``` | ||
| On GitHub: `.github/workflows/math-hypergraph.yml` runs the same steps on PRs/pushes touching these inputs or via | ||
| workflow_dispatch, with read-only checkouts of public Math- and query-, and uploads the all-repo bundle + PNG as the | ||
| `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 (2026-10-23) | ||
| 344 units / 1234 vertices / 344 hyperedges. Sourced 211 (133 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. | ||
| Dropbox not crawled. |
Oops, something went wrong.
Oops, something went wrong.
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.
Uh oh!
There was an error while loading. Please reload this page.