Repository navigation
test: elab/ack: the kernel's unfold counts with the declaration-check closure - #13
Merged
legion-implementer[bot] merged 1 commit intoNov 28, 2026
Conversation
… 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
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).
|
Author
|
Release rehearsal: run 46160867934 passed on integration commit |
legion-implementer
Bot
merged commit Nov 28, 2026
e32ad27
into
fork/v4.36-kernel-defeq-closure-r21
18 of 20 checks passed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This member restores the union-find closure of
is_def_eqsuccesses for declaration checks. With it, the kernel unfoldsOfNat.ofNatand, at these counts,Add.addandHAdd.hAddintests/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, theAdd.addandHAdd.hAddlines drop below the diagnostics threshold, so r21's own resolution keeps only theOfNat.ofNatline.Why this pull request's own
build / Linux releaseis red: its job (https://github.com/sjawhar/lean4/actions/runs/46123412725/job/140912638098) stops atUpload 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