Repository navigation
Formalize the avos semiring, retitle the paper, update README, remove dockerutils - #79
Merged
Merged
Conversation
Add docs/MATHEMATICAL_FOUNDATIONS.md. Stored as path words in Ahnentafel encoding, the avos sum and product form a semiring (the shortlex path semiring), and the RED_ONE/BLACK_ONE diagonal is a display convention that gives identical results on valid graphs. This supplies proofs for closure, repeated squaring, the DAG recurrence and incremental vertex and edge updates. Integrate the rewrite into the Red Black Graph notebook: corrected formal definition, new foundations and +/-1 diagonal sections, proofs for the open TODOs, corrected relationship, component and standard-form sections, Ahnentafel and semiring references, and %load cells refreshed from the current modules so every code cell runs. Add tests/avos/test_algebra_properties.py, which checks each theorem against every backend using brute-force path enumeration. Gaps found are recorded as strict xfails and tracked in #72-#76. The MATHEMATICAL_ANALYSIS.md references now point at the new document. Closes #28 Closes #31 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
MATHEMATICAL_ANALYSIS.md, analysis_semiring.py and the uncollected tests/avos/tess_semiring.py concluded the avos algebra is not a semiring. docs/MATHEMATICAL_FOUNDATIONS.md supersedes them, and tests/avos/test_algebra_properties.py replaces the old test. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
dockerutils is no longer used. Remove docker/ (Python 3.6, CUDA 8 and third-party base images, built only through dockerutils) and bin/setup-project.sh, which bin/setup-uv.sh supersedes. bin/generate-pdf.sh now runs locally: bin/gen-latex.py (moved from docker/notebook) converts the notebook and applies the LaTeX fixups, then xelatex compiles it. bin/test drops its Docker option. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Remove dockerutils instructions and the rbgcf command, which no longer exists. Add installation with extras, a tested quick example, links to the mathematical foundations, a working family-data workflow (rbg-synthesize, scripts/rbg), a corrected implementations table, consolidated build instructions, testing and license sections. NumPy 2.x is now stated as required. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Use the Debian 13 CUDA repository to match the sandbox base image, install CuPy for CUDA 13 system-wide, and ignore .claude/ and .secrets. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The old title, "A DAG of Multiple, Interleaved Binary Trees", described the graph's shape rather than the result, and is only true of each vertex's unfolded ancestry. The new title names the algebra. Rename the notebook to notebooks/red-black-graphs.ipynb and give it a title cell, an abstract, and title/author metadata. Reword the opening of the introduction to match. Add the notes from the foundations document that the notebook lacked: Strassen-style multiplication does not apply, and the implementation gaps are tracked in #72-#76. Update references in the README, the PDF scripts, the foundations document, the Avos Algebraic Structure notebook and constants.py. gen-latex.py now takes the title and author from notebook metadata and drops the title cell, so the PDF heading is not duplicated. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
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
docs/MATHEMATICAL_FOUNDATIONS.md. Stored as path words in Ahnentafel encoding, the avos sum and product form a genuine semiring (the shortlex path semiring). The RED_ONE/BLACK_ONE diagonal is a display convention that gives identical results on valid graphs (Proposition 4). The document proves the closure, repeated squaring, DAG recurrence, and incremental vertex and edge updates. It replaces the earlier conclusion that the algebra is "not a semiring".%loadcells refreshed from the current modules, so every code cell runs.notebooks/red-black-graphs.ipynb, with a title cell, an abstract and title/author metadata. The PDF tooling picks the title up from the metadata.tests/avos/test_algebra_properties.py(795 cases). It checks each theorem against every backend using brute-force path enumeration on seeded random graphs. The 12 gaps it found are strict xfails, tracked in (All) Reported diameter can be larger than the true diameter #72–(Reference, Sparse) avos_canonical_ordering is not always upper triangular #76.MATHEMATICAL_ANALYSIS.md,analysis_semiring.py, and the uncollectedtests/avos/tess_semiring.py.docker/andbin/setup-project.share deleted.bin/generate-pdf.shnow runs locally, usingbin/gen-latex.pyand xelatex.bin/testno longer has a Docker option.rbgcfcommand, which no longer exists. Adds installation extras, a tested example, a working family-data workflow, a corrected implementations table, and consolidated build instructions..sandy/Dockerfilenow uses the Debian 13 CUDA repo and CuPy for CUDA 13..gitignorenow ignores.claude/and.secrets.Closes #28. The notebook now names and uses Ahnentafel numbering.
Closes #31. Theorem 1 shows the avos algebra is a semiring, and Proposition 4 resolves the 1/−1 identity question. §10 notes that Strassen-style multiplication doesn't apply, because the semiring has no subtraction.
Related issues opened
transitive_closure_squaringdoes not detect cyclescalculate_relationshipcan choose a more distant common ancestoravos_canonical_orderingis not always upper triangularrbgconsole script crashesTest plan
pytest tests: 1165 passed, 82 skipped (GPU, no device available), 12 xfailed (the known gaps above)--runxfail)notebooks/red-black-graphs.ipynbrun in orderbin/test -upasses (coverage 76%)bin/gen-latex.pyproduces the LaTeX with its fixups appliedbin/generate-pdf.shend to end. Not run: no xelatex in this environment.maintoo, because.pylintrcuses options current pylint no longer recognizes.🤖 Generated with Claude Code