Skip to content

test: elab/ack: the kernel's unfold counts with the declaration-check closure - #13

Merged
legion-implementer[bot] merged 1 commit into
fork/v4.36-kernel-defeq-closure-r21from
legion/LINUX-1736-kernel-defeq-closure
Nov 28, 2026
Merged

legion-implementer[bot] merged 1 commit into
fork/v4.36-kernel-defeq-closure-r21from
legion/LINUX-1736-kernel-defeq-closure

Conversation

@legion-implementer

@legion-implementer legion-implementer Bot commented Nov 28, 2026 •

Copy link
Copy Markdown

This member restores the union-find closure of is_def_eq successes for declaration checks. With it, the kernel unfolds OfNat.ofNat and, at these counts, Add.add and HAdd.hAdd in tests/elab/ack.lean's declaration checks as it did before upstream's "fix: make kernel is_def_eq caching order-independent" (leanprover#14806, d108aae): 176/60/60 in the first diagnostics and 174/58/58 in the other three, which are exactly the counts that d108aae replaced with 86 and 84. The test's cases are unchanged; only its expected diagnostics follow the member's behaviour.

Measured in stage1 builds: v4.36.0-rc1 (c9afcdd) gives 86/84 and passes; with this member alone it gives 176/60/60 and 174/58/58 and fails against the old expectations; with this change, ctest -R 'elab/(ack|kernelDecLit|grind_nestedDecidable_kernel_issue)\.lean' passes (kernelDecLit.lean is not on this branch). The commit message says "the rest of the elab tests run" pass: only those named here were run.

This is a change of the fork's release r21: it goes into the member branch fork/v4.36-kernel-defeq-closure-r21, which r21 merges in place of the member it copies. It merges as a squash after its review, when r21 is cut. Where this member meets the fork's other kernel members in r21, the Add.add and HAdd.hAdd lines drop below the diagnostics threshold, so r21's own resolution keeps only the OfNat.ofNat line.

Why this pull request's own build / Linux release is red: its job (https://github.com/sjawhar/lean4/actions/runs/46123412725/job/140912638098) stops at Upload Lake Cache, before any test: a pull request's run takes its workflow files from the member branch, which carries upstream's .github, and the fork has no Lake cache endpoint or key; the CI member (#6) fixes that step for the fork's runs. The members are tested together in the tree the cut takes: this pull request merges only at a head that a passing rehearsal of the release's integration includes, named here before the merge.

Dispatch: LINUX-1736

… closure

This member restores the union-find closure of `is_def_eq` successes for
declaration checks. With it, the kernel unfolds `OfNat.ofNat` and, at these
counts, `Add.add` and `HAdd.hAdd` in ack.lean's declaration checks as it did
before upstream's "fix: make kernel is_def_eq caching order-independent"
(leanprover#14806, d108aae): `[kernel] unfolded declarations (max: 176, num: 3)` with
`OfNat.ofNat ↦ 176`, `Add.add ↦ 60` and `HAdd.hAdd ↦ 60` in the first
diagnostics, and 174/58/58 in the other three. These are exactly the counts
that d108aae replaced with 86 and 84. The test's cases are unchanged; only
its expected diagnostics follow the member's behaviour.

Measured: with this member alone on v4.36.0-rc1 (c9afcdd), a stage1
build's `elab/ack.lean` gave these counts and failed against the old
expectations; with this change it passes, and so do
grind_nestedDecidable_kernel_issue.lean and the rest of the elab tests run.
v4.36.0-rc1 itself gives 86/84 and passes.

Part of LINUX-1736.

Omp-Session: 01a21fea-50cc-71ef-b840-72b8c7ab62bb
Legion-Role: implementer
legion-implementer Bot added a commit that referenced this pull request Nov 28, 2026
… integration (release resolution)

The head of #13, which changes tests/elab/ack.lean's expected kernel unfold
counts to the kernel member's own (the counts before upstream's leanprover#14806:
`OfNat.ofNat` 176/174 and `Add.add`, `HAdd.hAdd` 60/58, `num: 3`), merged on
the previous integration commit.

The resolution: tests/elab/ack.lean keeps only the `OfNat.ofNat` line
(`max: 176, num: 1` and `max: 174, num: 1`). Where the kernel member meets
the release's other kernel members, the kernel still unfolds `OfNat.ofNat`
176 and 174 times, but `Add.add` and `HAdd.hAdd` fall below the diagnostics
threshold (50), so the release lists only the first. Measured in stage1
builds: r20 with only the kernel member, and the integration before this
merge, each give `max: 176, num: 1` / `max: 174, num: 1`; with this text the
integration's ctest of elab/ack.lean, elab/kernelDecLit.lean and
elab/grind_nestedDecidable_kernel_issue.lean passes.

Refs: LINUX-1736
Omp-Session: 01a21fea-50cc-71ef-b840-72b8c7ab62bb
Legion-Role: implementer
@legion-implementer

Copy link
Copy Markdown
Author

Review pass by a reviewer of another model family (openai/gpt-6.2-sol), read-only, against the change's rules (a test changes only by a reviewed member diff; nothing skipped or loosened).

  • Head 9678e46a7905: approve, no blocking findings. The four kernel diagnostics blocks match the measured output of this member and ack.lean's expected text before upstream d108aae; nothing else changes.
  • Non-blocking: the commit message says "and the rest of the elab tests run"; only elab/ack.lean and elab/grind_nestedDecidable_kernel_issue.lean ran on this branch (kernelDecLit.lean is not on it). The squash message at the merge carries the corrected sentence.

@legion-implementer

Copy link
Copy Markdown
Author

Release rehearsal: run 46160867934 passed on integration commit 9fddac80674ec8fa262b6720bb79ba745dd6ddf1, which includes this reviewed head 9678e46a7905d02d976c1c6c59ade0e98ae8a5c5. The x86-64 and Arm64 test and source-tree checks and both Linux sanitizer jobs passed. The final release commit will have its own release CI run.

@legion-implementer
legion-implementer Bot marked this pull request as ready for review November 28, 2026 20:21
@legion-implementer
legion-implementer Bot merged commit e32ad27 into fork/v4.36-kernel-defeq-closure-r21 Nov 28, 2026
18 of 20 checks passed
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.

0 participants