Skip to content

poc: what the proofs need from the core library, as checks - #29

Draft
benjaminshawki wants to merge 33 commits into
mainfrom
proposal/core-needs
Draft

benjaminshawki wants to merge 33 commits into
mainfrom
proposal/core-needs

Conversation

@benjaminshawki

@benjaminshawki benjaminshawki commented Oct 16, 2026 •

Copy link
Copy Markdown
Contributor

Each proof at tag machine-code-proof comes back to main once the core library can do what it uses. One file of checks per proof, under @ether/poc/needs/, written as the library itself writes (records as named parts in brackets, as Ray.ray's enumerate and $/Deflate.project.ray do; texts joined with ,, §5.1).

Main removed the seed (@ether/v0.ts, 24cac41): the language now compiles itself. Since 49f9c1e its host tests again, node .entrypoint.mjs --test <file> from @ether/ray/bootstrap, reading .entrypoint.ray (the language and its library) and then the file. At 7b4271f (revision 116) that reading finishes and reaches these files in about 4 s each (at 49f9c1e, revision 47, it stopped on its step budget first). It reports deflate 5 of 17 (NE1 to NE5), interop 0 of 8, machine 3 of 9 (NE43, NE45, NE46) and DF21, but none of these passes counts yet: an assert that must fail (assert 9 + 1 == 11, assert 3 < 2) passes too, as does one on a name nothing declares (spec/TODO.md, "An undeclared name passes an assert"). Every FAILED line is a real false. DF1 to DF3, DF7 and DF8 are asserts inside definitions and are not run as tests. So the counts below are still the last ones that mean something, on the seed.

On the seed at c1b9bed (the same counts as at 9e18ed6; NE11 respelled sort(key), as main renamed sort_by; NE12 green since 13c4c9b; NE25 names its fields' types, name: String, as main's headers read them):

  • deflate.ray, 16 of 17. Green since 13c4c9b: NE12, a record of named parts in brackets keeps its names. Open: NE5 binary(width), which waits on how bits are written (Numbers.md in docs: the design choices the core needs for the proofs #27).
  • interop.ray, 4 of 8. Green: NE20 texts joined, NE21 a choice, NE22 ??, NE25 a class written as a pattern reads a text into its fields. Open: matching a pattern, reading text by a set of rules, numbers below zero, wrapping at 32 bits.
  • machine.ray, 1 of 9. Green: NE41 reverse on a text. Open: bits as text and back, base 16, bitwise, shifts, shapes over bits, given values.
  • $/Deflate.project.ray: none of DF1 to DF9 (nor DF20 to DF23) yet; its header (line 2) reads without an error since 9e18ed6; the first error is now at line 7, .lengths.enumerate{.value > 0} (nothing in what it is read on reads >); its body (lines 74, 78) reads without one since f8fb8fd.

How each gap is meant to close: #27 (@ether/spec/design/). Run on main from @ether/ray/bootstrap: node .entrypoint.mjs --test ../../poc/needs/<proof>.ray. On the seed (c1b9bed or before) from @ether/v0.ts: node --import tsx src/language.ts -t --threads 1 ../ray/bootstrap/.entrypoint.ray3 ../poc/needs/<proof>.ray.

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.

1 participant