Skip to content

feat(language): a model declares what it assumes of its data, and the typeset math prints it - #465

Closed
FBumann wants to merge 4 commits into
mainfrom
claude/zealous-archimedes-k13bq7
Closed

FBumann wants to merge 4 commits into
mainfrom
claude/zealous-archimedes-k13bq7

Conversation

@FBumann

@FBumann FBumann commented Sep 15, 2026 •

Copy link
Copy Markdown
Contributor

Note

The following content was generated by AI.

Closed in favour of a PR with the same head, based on #469's branch so the diff shows the assumptions work alone. GitHub refused to change this PR's base while the closed #466 still linked the two as a stack, and the remote refused to delete that branch.

🤖 Generated with Claude Code

https://claude.ai/code/session_013HceuCYNepeQX8SdZtiMf1

… typeset math prints it

An `assumptions:` block holds predicates in the where grammar; each holds at
every coordinate of the frame its two masks name, a missing row reading as
false. The program carries each as `AssumptionDeclaration(holds, where)` with
`assumption_message` for the consumer that binds the data. A where may now
compare two parameters coordinate by coordinate, which the block's own examples
need. The typesetter prints an Assumptions section: every declared entry, then
what each `piecewise:` block assumes of its breakpoints, labelled by the block.

Docs sentence lengths (n / median / over 25): declarations.md 71 / 13 / 9,
piecewise.md 75 / 16 / 13, expressions.md 133 / 15 / 23.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_013HceuCYNepeQX8SdZtiMf1
@read-the-docs-community

read-the-docs-community Bot commented Sep 15, 2026 •

Copy link
Copy Markdown

…r a curve's checks

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_013HceuCYNepeQX8SdZtiMf1
Either side of a comparison in a where string may be an expression, read as
an expression is: macros and named expressions expand, every operator keeps its
rule, and a variable or a dual is refused. Resolution types it as
`ArithmeticComparisonNode` over the core syntax tree for the spec-side readers;
lowering rebuilds every mask with `ExpressionComparisonNode` over program
expressions, so a program's masks are program vocabulary throughout. The
expression form stands aside for the plain shapes, so `p > 0` keeps its node.

Docs sentence lengths (n / median / over 25): expressions.md 139 / 16 / 27,
reading.md 68 / 15 / 15.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_013HceuCYNepeQX8SdZtiMf1
… the assumptions branch

An assumption's predicate now takes arithmetic on either side, as every
where does on the base branch; the golden fixture carries one of each kind.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_013HceuCYNepeQX8SdZtiMf1
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