Repository navigation
docs(showpieces): Homotopy Basins - #352
Draft
ofloveandhate wants to merge 4 commits into
Draft
ofloveandhate wants to merge 4 commits into
ofloveandhate wants to merge 4 commits into
Conversation
Contributor
Author
|
I really enjoyed using Claude to help write this. But the wording is spongy and overdramatic. I will manually revise before accepting. |
Contributor
Author
|
I will only accept this as part of a complete human-at-the-keyboard revision of the docs, which is badly needed. Using Claude got me off the ground. It's time to do the writing myself. |
ofloveandhate
marked this pull request as draft
July 16, 2026 09:17
ofloveandhate
added a commit
that referenced
this pull request
Sep 17, 2026
…pace; applied everywhere; enforced in CI (#438) The repository had no whitespace rule, and it showed: C++ indented with tabs in most files and spaces in some, 60 files mixing both, CMake mixed, one Python file with tab lines, and about 5,500 lines of trailing whitespace. Mixed indentation has caused editing trouble before. This PR sets one rule, applies it everywhere once, and makes CI keep it. ## The rule Spaces, four per level, in C++, Python and CMake. No tabs. No trailing whitespace. LF. One newline at the end of every file. Markdown is exempt from the trailing-whitespace part (two trailing spaces are a line break there). ## Three commits 1. **Tooling.** `.editorconfig` states the rule for editors. `tools/whitespace_lint.py` checks it (stdlib only, zero tolerance, no baseline) and rewrites files to it with `--fix`, through the same code path, so the check and the fix cannot disagree. A `whitespace_lint` job runs beside the two doc lints in `doc_lint.yml`, the cheap gate every build waits on. One line in `CLAUDE.md`. 2. **The normalization itself.** `python tools/whitespace_lint.py --fix` over the tree: tabs expand at 4 columns (`str.expandtabs`, so tabs used for alignment after the indentation, or mid-line before a trailing comment, keep their columns), trailing whitespace stripped, final newline normalized. Nothing else. Proof: `git diff -w --ignore-blank-lines <parent>` is empty for this commit. The whole C++ suite, the full Python suite, the tutorial doctests and both doc lints pass on the result. 3. **`.git-blame-ignore-revs`**, listing this normalization commit and the author-list sweep (#437). GitHub's blame view honors the file automatically. Locally, once: `git config blame.ignoreRevsFile .git-blame-ignore-revs`. The file's own comment says so. ## Merging Merge with **"Create a merge commit"** (not squash), so the SHA listed in `.git-blame-ignore-revs` is the SHA that ends up on develop. This PR is last in the 3.5 series: it touches nearly every line, so every other open PR should be in first. ## Branches not yet merged Any branch based on develop before this lands will conflict on rebase. Two ways through, either takes a minute: python tools/whitespace_lint.py --fix # on your branch, then rebase as usual git rebase -X ignore-space-change develop # or let git ignore the whitespace The two showpiece drafts (#352, #363) get this treatment as part of the same round. 🤖 Generated with [Claude Code](https://claude.com/claude-code)
ofloveandhate
added a commit
to ofloveandhate/b2
that referenced
this pull request
Sep 17, 2026
Docs page, toctree line, refresh_doc_artifacts manifest entry, CHANGELOG [3.5.0] block. Verified: py_doclint passes both gates (correctness + undocumented ratchet at baseline 14); sphinx builds with no warnings and both images resolve; `refresh_doc_artifacts.py --plots --only nebula` regenerates both frames BYTE-IDENTICALLY to the committed ones, which is the real check that the seed + num_threads=1 recipe is deterministic. The page does not :doc:-link Homotopy Basins even though the prose wants the Loom/Nebula/Basins triangle: Basins is unmerged (PR bertiniteam#352), so a cross-reference would break this build. It is named in plain text and can become a link when bertiniteam#352 lands.
ofloveandhate
force-pushed
the
feature/homotopy-basins-showpiece
branch
from
September 17, 2026 17:23
78d3917 to
162340d
Compare
…nding) Third showpiece: rasterize the coefficient plane of x^d - d x - c and run the real total-degree gamma-trick homotopy at every pixel (all d paths, DoublePrecisionTracker). Hue = landing-fingerprint phase, brightness = tracker step count (the swept discriminant glows), stripes = fingerprint magnitude bands, speckle = genuine path failures. Exact coefficients throughout; no randomness -> deterministic tracked data. PNGs land in the next commit (generated via tools/refresh_doc_artifacts.py). Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
…hero) Generated via the new refresh manifest entry: 2x supersampled, box-downsampled to 800x450 / 1200x675. ~17M tracked paths, ~14.5 min on 12 cores. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
…t–end correlation
The swept-discriminant arc formula on the page was the degree-5 one
(-4ζ(1+μ)^{-1/4}) under the degree-9 discussion; the correct elimination
gives c(μ) = -8ζ(1+μ)^{-1/8} - μ, μ = γt/(1-t). Also renames the coloring
quantity honestly: s(c) = Σ ζ^k x_k is the start–end correlation (the
unweighted landing sum is permutation-blind and identically zero here),
and distinguishes the cosmetic log|s| stripes from the singular arcs.
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
…d maps Reframe both windows so the family's whole branch-point ring is inside the picture (d=9: |c|=8 incl. ±8i, previously cropped; d=5: |c|=4 incl. ±4i). Each degree now renders twice from one computation: the full-bleed frame and an annotated map with labeled Re(c)/Im(c) axes, every arc center c=-(d-1)ζ marked on its dotted ring (axis points as ±R/±Ri, diagonals in exact polar form). Four PNGs total; refresh manifest updated. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
ofloveandhate
added a commit
to ofloveandhate/b2
that referenced
this pull request
Sep 18, 2026
Docs page, toctree line, refresh_doc_artifacts manifest entry, CHANGELOG [3.5.0] block. Verified: py_doclint passes both gates (correctness + undocumented ratchet at baseline 14); sphinx builds with no warnings and both images resolve; `refresh_doc_artifacts.py --plots --only nebula` regenerates both frames BYTE-IDENTICALLY to the committed ones, which is the real check that the seed + num_threads=1 recipe is deterministic. The page does not :doc:-link Homotopy Basins even though the prose wants the Loom/Nebula/Basins triangle: Basins is unmerged (PR bertiniteam#352), so a cross-reference would break this build. It is named in plain text and can become a link when bertiniteam#352 lands.
ofloveandhate
force-pushed
the
feature/homotopy-basins-showpiece
branch
from
September 18, 2026 09:31
162340d to
dc542aa
Compare
This branch has not been deployed
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.
What
A third Showpieces gallery entry: Homotopy Basins
Rasterize a window of the coefficient plane of
f(x;c) = x^d − d·x − c; at each pixel run the total-degree gamma-trick homotopyH = γt(x^d − 1) + (1−t)(x^d − dx − c)and track alldstart roots with theDoublePrecisionTracker. Every channel of the image is tracked data:s(c) = Σ ζᵏ·xₖ(c)(each path contributes start root × landing point; jumps exactly where the swept discriminant permutes destinations)log|s|(cosmetic domain coloring; whirlpools are the zeros ofs)Four frames from two computations (~17M tracked paths, ~15 min on 12 cores): per degree (d = 5 teaching, d = 9 hero) a full-bleed render and an annotated map with labeled Re(c)/Im(c) axes and every arc center
c = −(d−1)ζmarked on its ring. Each window contains the family's whole branch-point ring. The docs page derives the arc parameterizationc(μ) = −8ζ(1+μ)^{−1/8} − μ, μ = γt/(1−t)— the gamma trick, photographed — and cross-links the Monodromy Loom (same mathematics from solution space).Notes
fractions.Fraction; pixel coordinates snapped to rationals); no randomness anywhere, so the tracked data is fully deterministic.bertini.recording(False): millions of throwaway raw-tracker solves, deliberately below the records seam.tools/refresh_doc_artifacts.pywith a SLOW note — this is the heaviest doc artifact.sphinx -b dummy, no new warnings). No ADR: docs-only gallery addition; the load-bearing choices are documented in the generator's docstring and the page itself.🤖 Generated with Claude Code