Skip to content

FieldOfFractions §7.2: ground the record model + witnesses - #7210

Merged
briansrls merged 6 commits into
mainfrom
fieldoffractions-model-grounding
Jul 26, 2026
Merged

briansrls merged 6 commits into
mainfrom
fieldoffractions-model-grounding

Conversation

@gunbai-bot

@gunbai-bot gunbai-bot Bot commented Jul 25, 2026 •

Copy link
Copy Markdown
Contributor

Summary

  • Grounds FieldOfFractions<R> at its single authority (dag/std/algebra.dag) from a bodyless declaration to a real 2-field record { num: R, denom: R }, following the §0 completion-pattern convention already established for GroupCompletion<M> (GroupCompletion grounding lane — numeric tower next layer, design-note-first #7197) — same pattern, multiplicative strength instead of additive.
  • Updates the seed-side Rust struct (std_algebra.rs) in lockstep so the model and its interpreter representation stay coherent.
  • Adds the two model-scoped witnesses signed off for this lane:
    • field_of_fractions_single_declaration_test — de-fork non-regression: corpus-wide shape scan asserting exactly one type FieldOfFractions declaration exists (there was no pre-existing fork to delete, unlike GroupCompletion; this guards against a future one).
    • field_of_fractions_construction_test — negative-space no-collapse: asserts constructing FieldOfFractions{num, denom} through the interpreter produces a real boxed Value::Record, and deliberately does not collapse into a native scalar (Rational has no lossless native checkpoint, unlike GroupCompletion's collapse to Value::Int). Retirement-tagged (Rust-retained) since it inspects the interpreter's internal Value representation, which has no .dag-level observable surface.

Explicitly out of scope

See docs/plans/groupcompletion-pair-construction-design.md §7.2 for the full design.

Test plan

  • cargo test -p v1-compiler-tests field_of_fractions — 3 passed
  • cargo build --workspace — clean (pre-existing warnings only, unrelated to this change)

Co-Authored-By: Claude Sonnet 5 noreply@anthropic.com

briansrls and others added 3 commits July 25, 2026 12:31
…lapse witnesses

Registers the two remaining model-scoped witnesses for the FieldOfFractions<R>
grounding (dag/std/algebra.dag, num/denom body landed in the prior commit):

- field_of_fractions_single_declaration_test: corpus-wide grep-shape witness
  asserting exactly one `type FieldOfFractions` declaration exists (guards
  against a future §3 fork; FieldOfFractions had no existing fork to delete,
  unlike GroupCompletion in #7197).
- field_of_fractions_construction_test (retirement-tagged, Rust-retained):
  asserts eval_record_lit does NOT special-case FieldOfFractions into a
  native scalar collapse — the deliberate negative-space counterpart to
  GroupCompletion's collapse, since Rational has no lossless native
  checkpoint to collapse into.

Scope: model only, per sharp-bee-290 sign-off. §7.3 realization (emitter
Rust-struct emission + generic arithmetic trait derivation) is explicitly
held pending separate sign-off and gated on Root-4.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
@gunbai-bot gunbai-bot Bot changed the title GroupCompletion grounding lane — numeric tower next layer, design-note-first FieldOfFractions §7.2: ground the record model + witnesses Jul 25, 2026
@gunbai-bot
gunbai-bot Bot marked this pull request as ready for review July 25, 2026 12:44
briansrls added a commit that referenced this pull request Jul 25, 2026
…ll note

Re-adds the DESIGN.md open-threads bullet the ci-auto-heal bot deleted
(f87d21b), fixing the orphan-doc finding, with the PR #7210 status
corrected from an inaccurate "LANDED" to "content-reviewed clean and
pending merge" to match the doc body's now-accurate wording. Also
carries the doc's own tense/accuracy fixes (dangling links removed,
present-tense claims about unmerged branches reworded to describe the
actual pre-fix state of this branch's tree).

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
briansrls added a commit that referenced this pull request Jul 25, 2026
…int_scalar_phantom) (#7212)

* Hollow-alias construction wall: design note (third specimen — checkpoint_scalar_phantom)

Draft-only, no code lands: generalizes the GroupCompletion (#7197) and
FieldOfFractions (#7210, landed) construction-side specimens into a
named §5 unwritable-class candidate, and cites the emit-side companion
(checkpoint_scalar_phantom / v1_compiler_emit_rust.rs:746 widen, vivid's
E0107 bucket, loyal-raven's dotted-path E0308 finding) as a separately
gated Root-4, not this note's scope. Links from DESIGN.md open threads
per repo convention to avoid the orphan-doc floor check.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>

* Fix dangling links: remove references to unmerged #7197-branch design doc

groupcompletion-pair-construction-design.md exists only on the unmerged
#7197 branch, not on main — linking to it from a main-branch doc trips
the pre-push doc_graph_has_no_dangling_links witness. Replace the two
markdown links with plain PR/section references.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>

* chore: regenerate drifted generated artifacts (ci auto-heal)

* WIP: GroupCompletion grounding lane — numeric tower next layer, design-note-f

* Fix review 42607: re-add DESIGN.md link, correct tense/accuracy in wall note

Re-adds the DESIGN.md open-threads bullet the ci-auto-heal bot deleted
(f87d21b), fixing the orphan-doc finding, with the PR #7210 status
corrected from an inaccurate "LANDED" to "content-reviewed clean and
pending merge" to match the doc body's now-accurate wording. Also
carries the doc's own tense/accuracy fixes (dangling links removed,
present-tense claims about unmerged branches reworded to describe the
actual pre-fix state of this branch's tree).

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>

* chore: regenerate drifted generated artifacts (ci auto-heal)

* Re-add DESIGN.md wall-note link deleted again by ci-auto-heal regen

The gunbc-ci-auto-heal bot's regen commit (a481a93) deleted the same
hollow-alias-construction-wall open-threads bullet a prior auto-heal
commit had already deleted once (f87d21b), re-breaking the
doc_graph_has_no_orphan_docs / doc_graph_is_clean CI gates the same way.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>

* chore: regenerate drifted generated artifacts (ci auto-heal)

* WIP: GroupCompletion grounding lane — numeric tower next layer, design-note-f

* Regenerate DESIGN.md from design_document.dag (real fix for drift gate)

The prior hand-edits to DESIGN.md kept getting reverted by
gunbc-ci-auto-heal because DESIGN.md is a generated artifact projected
from dag/gunbc/design_document.dag's expected_design_md(). The durable
fix is the open_threads_blocks() edit in that file (already committed
as the WIP commit above); this commit lands the regenerated DESIGN.md
produced by main_wet so the drift gate is satisfied at the true source.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>

---------

Co-authored-by: Brian Searls <briansrls@gunb.ai>
Co-authored-by: Claude Sonnet 5 <noreply@anthropic.com>
Co-authored-by: gunbc-ci-auto-heal <gunbc-ci-auto-heal@users.noreply.github.com>
@gunbai-bot gunbai-bot Bot mentioned this pull request Jul 25, 2026
6 tasks
@briansrls
briansrls merged commit a9c41fc into main Jul 26, 2026
5 checks passed
@briansrls
briansrls deleted the fieldoffractions-model-grounding branch July 26, 2026 00:39
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