SOURCE VIEWER

SOL_NOTES.md

Original bytes preserved. This is a browser-readable view.

DOWNLOAD ORIGINAL ↓

# Sol's notes — the primes experiment as an intellectual endpoint

> **2026-10-11 layout correction (curatorial notice):** The discussion below describes the **October 10 r003 stable snapshot**, not the current release layout. The owner challenged its unnecessary `apps/` packaging and the later nested r004 wrapper. Current accepted **r004** lives at `stable/src/primes.s` beside its `.lst`, `.bin`, `build.last` and ten include dependencies. Original r003 remains frozen in chapter `apps/` and `archive/`. Superseded stable packages were moved *reversibly* to `trash/STABLE_LAYOUT_SUPERSEDED_20261011/`, not deleted. See `stable/MANIFEST.md` and `sol/DECISION_RECORD_CH04_STABLE_LAYOUT_20261011.md`. The October 10 analysis is retained below as historical reasoning, not a claim about today's file layout.




**Audience:** Alex alone. **Edition:** curatorial companion to the frozen, human-accepted Chapter 04 r003 program, not a new machine test.


The innocent question was **"Is this number prime?"** It became a laboratory in the tension between algorithm, representation, and evidence: an unsigned-32-bit primality tester; a finite table of 1,000 primes beginning at 1013; counts for prescribed even offsets; modular restrictions; and optional prime-gap compression. Each answer required a known numerical domain and a checkable oracle, not just a plausible LCD result.


The historical contract is important. The original student booklet requested the *numerical tasks*, including its count chart and optional delta encoding. It **did not require an interactive ROM user interface**. After those numerical gates passed, the human separately commissioned that integration, and the final r003 application was accepted. The harmonized NOTES may explain this development, but may not rewrite the historical student's obligations.


The final application separates **ENGINE=ABSOLUTE/DELTA** (the same prime API backed by different table representations) from **METHOD=PAIR** (a separately bounded algorithmic formulation of the extended counting task). Conflating those axes would obscure what the project actually showed. Historic accepted finite-corpus anchors include 6,542 primes below 65,536 and bounded counts k=6/30/210 of 320/417/505. They are reference corpus values, not newly timed hardware measurements.


A failure also became reusable method: an earlier application build omitted a *transitive include*. For this reason the current owner archive's `apps/primes.s` references must resolve to the ten copied files under the adjacent `src/` tree. The source bytes are identical to the frozen original `../apps/prime_lab_r003.s`; it was not rewritten. A tidy archive that silently rewrites relative include paths is less faithful than a slightly asymmetric directory. Accepted source, listing and ROM remain byte-identical.


## The current name is a doorway, not a revision


Chapter 04's canonical assembler entry is now `src/primes.s` (rather than the dated `apps/prime_lab_r003.s`). Alex's 2026-10-10 HD61 Rev. 0.45 rebuild reproduced the accepted ROM **byte for byte**: source SHA-256 `ec0730102f20abbfd76753bc29530b493c6385f31d2ed9d1f2a73f360b23305b`, ROM SHA-256 `0b8f1b13c152b286dc40fa0329122edec94415cbaaef9f7750d9dd94c71323f9`. The new `primes.lst` is exactly the historical listing with two assembler-title occurrences of `prime_lab_r003.s` replaced by `primes.s` (16 fewer bytes). No new emulator or physical-hardware test was claimed.


The human-facing private archive therefore exposes `stable/apps/primes.s`, `stable/rom/primes.lst` and `stable/rom/primes.bin`. Exact revision, hashes and historical provenance are in its `MANIFEST.md`; the original `apps/prime_lab_r003.*` remain frozen outside `stable/`. The name simplifies navigation without erasing history or creating a new firmware version. Alex's `build/` remains his disposable bench, never Sol's paperwork destination.


The frozen historical Experience remains unchanged, now organized at [`archive/CS617_Chapter04_Primes_EXPERIENCE_FINAL.zip`](https://drive.google.com/file/d/1YODTrWio-tPEZkiNp2P2VNz2MeZZRoWP/view); the long-form `notes/` witnesses remain in place. Alex directed the independently produced post-project human writeup into human-managed [`trash/PB-2000C primes.pdf`](https://drive.google.com/file/d/1tS9eaX7H0sJ7yhVWCgYa0ozRUSR4P9UJ/view), preserving the report without treating it as a canonical publication. The chapter root therefore has only `README.md`, `HARMONY.md` and subdirectories; frozen older path references may be read through the new navigation. The three current educational PDFs and a one-page teaser **draft** are in the private `stable/` view. The original long [handoff to Papa Sol](https://drive.google.com/file/d/1hCOhUDXkyLFoXqU9bQFZMtxZTMNuB5oo/view) carries the pedagogical conversation and open editorial choices.


[Owner's stable/ front door](https://drive.google.com/drive/folders/1gpWG6OHVfkL5cAFH1XuWa3YYfFTZdb_H) · [Frozen Experience](https://drive.google.com/file/d/1onY-SfX1ITk3vJt5W-e0RKkBKR7MWm4r/view) · [EVIDENCE_FINAL](https://drive.google.com/file/d/11cTlAWuRFCWICTI-4tenw1AQyAWPq-Co/view)


**The right archive does not simplify away the distinction that made the experiment worth doing.**