Skip to content

[Lean] Connect actual JSON fields to checked tables and binary charts - #1927

Draft
jamesyc wants to merge 1 commit into
CrocSwap:mainfrom
jamesyc:lean-actual-json-format-adapters
Draft

jamesyc wants to merge 1 commit into
CrocSwap:mainfrom
jamesyc:lean-actual-json-format-adapters

Conversation

@jamesyc

@jamesyc jamesyc commented Oct 14, 2026

Copy link
Copy Markdown
Contributor

Coverage

Explicit author-checked context: upstream main 0b1cccf; kappa = 836330098538459/500000000000000000 = 0.001672660197076918. These generic theorems do not change or establish the selected multiplication exponent.

Four dimension-parametric modules connect actual Lean.Json values to checked ordered gathers, complete owner rows, original-position call selection, and named packed-column dictionaries. They execute field/shape/count/bounds checks and ordered assignment comparison. Successful dictionary checking derives the decoded column operator, both inverse directions and arbitrary-payload cancellation.

Finite coverage: arbitrary finite dimensions, ordered arrays, repeated indices and arbitrary payload universes. Malformed/missing fields and count mismatches fail explicitly.

Conditional-interface coverage: the executable checker must succeed for the supplied AST, route decoder and assignment. The dictionary adapter checks a separately supplied auxiliary certificate against the actual decoded columns. The source provider itself does not emit that certificate. No semantic operator equality is merely assumed.

Full-theorem coverage: original artifact bytes and selected success, duplicate-key/lexical policy, digest binding, complex phases, physical executor direction/allocation, precision, priced accesses and the full multiplication/runtime theorem remain open. Logical gather is an out-of-place read. This PR does not assert full selected parsed-field or physical-program coverage.

Reproduction

Four unchanged new sources total 31,026 bytes, with nineteen observed standard-only axiom probes and six full printed types. All four final kernel checks and independent reviews accepted without diagnostics. ACCEPTANCE.json records their exact public source identities, probes/types and scope. Detailed original evidence remains preserved with the authors.

SOURCE_MANIFEST.json and fetch_sources.py fetch and hash nine immutable public prerequisites, without copying them into this PR: eight PR1879 modules at 981afe7 and SelectedSourceSyntax from PR1831 at 542f914. REPRODUCE.md specifies Lean 4.21.0 and Mathlib 308445d7985027f538e281e18df29ca16ede2ba3, fresh scratch and topological checking. These commands are prospective; no extra local CI preflight or relocated replay was performed for submission.

Comparison and attribution

The bounded source comparison covers exact public PR1879/1831/1807/1094 heads and retained PR487/1494 interface reviews. Existing selected route tables, owner injections, gather/scatter and idle operators remain attributed to their original work. This chunk adds actual AST-format composition and claims no global novelty. Canonical exports and restricted recovery follow-ons are excluded.

James Chang with OpenAI assistance, Apache-2.0; credit to Rohan Arun's PR1094, Jeremy Kothe's T16 emitter, inherited owner/geometry work, public parser/certificate/gather prerequisites, Lean and Mathlib. Existing notices are retained.

Four checked JSON adapters reusing immutable public prerequisites.
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