Skip to content

Add decompwlj Lab: each sequence against its residue controls - #57

Merged
decompwlj merged 2 commits into
mainfrom
lab
Nov 6, 2026
Merged

decompwlj merged 2 commits into
mainfrom
lab

Conversation

@decompwlj

Copy link
Copy Markdown
Owner

A second mode at /lab/, separate from the 3-D viewer. Each sequence is set against a record-level control. The control keeps each term's jump d and the residue of ℓ = a − d mod M, redraws ℓ within ±25 %, and decomposes it again. M = 1, 2, 6, 30, 210, 2310, 30030.

Panels (all linked; the filters live in the link, e.g. /lab/#primes.M210.g6.n1000-50000):

  • two square weight–level plates: the sequence and its control, on the same records
  • the residue ladder: Δ level share and Δ L = 1 share against M, ±2σ, with a frozen column
  • level share along n, brushable
  • jumps: click a bar to keep that jump
  • the congruence lock: r·Pr[r | ℓ] against 1 and r/(r − 2)
  • columns and lines: how often each small k and L occurs
  • paste your own sequence or b-file; it is decomposed in the browser

Checks

  • lab/kernel.js (exact below 2⁵³) agrees with PARI/GP 2.15.4 on 55,003 cases, adversarial ones included, and with 180,000 published rows of 60 sequences up to 9·10¹⁵: 0 mismatches.
  • The Lab loads the published chunks with the viewer's checks: exact divisions, continuity, catalogue counts, SHA-256.
  • New tests/lab.mjs runs in the browser job. In Chromium it checks the kernel against the published rows, all 350,000 control records against their rules (with brute-force least divisors where ℓ′ < 10⁷), the seeded ladder after a reload, the filters and the deep links, a pasted sequence, and a 390 px width. Passed locally; tests/smoke.mjs also still passes.
  • tools/check_site.py now requires the lab files and passes.

Footprint: 92 KB of code plus an 80 KB screenshot. No data added. The viewer itself is untouched apart from three links (gallery nav, viewer subtitle, Sequence panel).

On the primes (25k records), Δ level share is −6.29 pts at M = 2 and shrinks to −0.56 at M = 30030, where 75.6 % of records are frozen. This matches the 1 Nov record-level ladder at 10⁷.


Generated by Claude Code

A second mode, separate from the 3-D viewer (lab/), that sets each sequence
against a record-level control: keep the jump d and the residue of l = a - d
mod M, redraw l within +-25 %, decompose again. M = 1, 2, 6, 30, 210, 2310,
30030. Seven linked panels: two square weight-level plates (sequence and
control, same records), the residue ladder, level share along n (brushable),
jumps (click to filter), the congruence lock r*Pr[r | l] against r/(r-2),
and columns/lines. Filters live in the link. Paste-your-own sequence.

- lab/kernel.js: exact below 2^53 (trial division, deterministic
  Miller-Rabin, Pollard-Brent rho, Dekker products). Checked against
  PARI/GP 2.15.4 on 55,003 cases and 180,000 published rows of 60
  sequences up to 9e15: 0 mismatches.
- Data loaded from the published chunks with the viewer's checks (exact
  divisions, continuity, catalogue counts, SHA-256 fingerprint).
- Controls in worker threads on a seeded random subsample (never a
  stride); a "frozen" column reports records the control cannot move.
- tests/lab.mjs (run in the browser job), check_site lists the lab files.
- index.html: three links only (gallery nav, viewer subtitle, Sequence panel).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01FpoQj8VF38pkAsogJ8BchK
ubuntu-latest now resolves to 26.04, for which Playwright 1.56.1 has no
Chromium build ("Playwright does not support chromium on ubuntu26.04-x64").
The job last passed on main on 18 Oct, before the image moved.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01FpoQj8VF38pkAsogJ8BchK
@decompwlj
decompwlj merged commit f4d85e9 into main Nov 6, 2026
11 checks passed
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