Repository navigation
[Merged by Bors] - chore: add missing noncomputable - #41446
YaelDillies wants to merge 5 commits into
Conversation
PR summary cd8966e558Import changes for modified filesNo significant changes to the import graph Import changes for all files
|
|
!radar |
|
Benchmark results for 53afaa7 against f063076 are in. No significant results found. @kbuzzard
No significant changes detected. |
|
Should we use |
|
Given the discussion on zulip, this PR should probably be closed, right? |
|
Why should it be closed? I don't see how we would benefit from any of these declarations being computable. |
All these definitions are already noncomputable, but somehow the computability checker doesn't spot this until I try making `Set` a one-field structure.
f170a03 to
5b90164
Compare
Vierkantor
left a comment
There was a problem hiding this comment.
If I understand correctly, the problem is that the Set structure pattern moves the computability boundary "inside" a constructor. So the solution to avoid a noncomputable keyword would be to put Set.ofPred around everything in the refactor PR? I would say, as a workaround for computability issues, that costs a lot more effort and is less easy to understand or revert, than adding a noncomputable keyword. So I'm in favour of the keyword-based approach, not the approach of rewriting into an equivalent definition.
Since noncomputable section only applies noncomputable when that is in fact the case, maybe that is the right compromise here?
|
Oh, so sorry @YaelDillies, I didn't see this ping! Apologies, I didn't mean to block here if the awkwardness of avoiding (Indeed, the only way I can think of is turning every |
|
Note: a comment like near these |
Vierkantor
left a comment
There was a problem hiding this comment.
The diff looks fine to me, and a comment (with a slight change, turning the issue number into a URL) should be good:
-- Note: `Set` has no computational content, but Lean still attempts to compile it.
-- See https://github.com/leanprover/lean4/issues/14084.
Since I'm away for the next two weeks,
bors d=@thorimur
|
✌️ thorimur can now approve this pull request until 2026-08-06 15:28 UTC (in 2 weeks). To approve and merge, reply with
|
|
(I've merged master to get rid of the CI error, see zulip) |
46ab6c6 to
e9cf3ce
Compare
My git got very confused between my local changes and your merge, so I force-pushed yours away and made a new one. |
|
bors r+ |
All these definitions are noncomputable (because they use choice/produce sets), but the computability checker doesn't spot this until I try making `Set` a one-field structure. This is because the computability checker doesn't even try to compute sorts, but it doesn't see that `s : Set α` is (equivalent to) a family of sorts.
|
Pull request successfully merged into master. Build succeeded: |
noncomputablenoncomputable
All these definitions are noncomputable (because they use choice/produce sets), but the computability checker doesn't spot this until I try making `Set` a one-field structure. This is because the computability checker doesn't even try to compute sorts, but it doesn't see that `s : Set α` is (equivalent to) a family of sorts. Follow-up to leanprover-community#41446. Generated by Claude Opus, then reviewed and cherry-picked line-by-line by myself. Assisted-by: Claude Opus 4.8
All these definitions are noncomputable (because they use choice/produce sets), but the computability checker doesn't spot this until I try making `Set` a one-field structure. This is because the computability checker doesn't even try to compute sorts, but it doesn't see that `s : Set α` is (equivalent to) a family of sorts. Follow-up to leanprover-community#41446. Generated by Claude Opus, then reviewed and cherry-picked line-by-line by myself. Assisted-by: Claude Opus 4.8
All these definitions are noncomputable (because they use choice/produce sets), but the computability checker doesn't spot this until I try making `Set` a one-field structure. This is because the computability checker doesn't even try to compute sorts, but it doesn't see that `s : Set α` is (equivalent to) a family of sorts.
All these definitions are noncomputable (because they use choice/produce sets), but the computability checker doesn't spot this until I try making `Set` a one-field structure. This is because the computability checker doesn't even try to compute sorts, but it doesn't see that `s : Set α` is (equivalent to) a family of sorts. Follow-up to #41446. Generated by Claude Opus, then reviewed and cherry-picked line-by-line by myself. Assisted-by: Claude Opus 4.8
All these definitions are noncomputable (because they use choice/produce sets), but the computability checker doesn't spot this until I try making `Set` a one-field structure. This is because the computability checker doesn't even try to compute sorts, but it doesn't see that `s : Set α` is (equivalent to) a family of sorts. Follow-up to #41446. Generated by Claude Opus, then reviewed and cherry-picked line-by-line by myself. Assisted-by: Claude Opus 4.8
All these definitions are noncomputable (because they use choice/produce sets), but the computability checker doesn't spot this until I try making `Set` a one-field structure. This is because the computability checker doesn't even try to compute sorts, but it doesn't see that `s : Set α` is (equivalent to) a family of sorts. Follow-up to #41446. Generated by Claude Opus, then reviewed and cherry-picked line-by-line by myself. Assisted-by: Claude Opus 4.8
…putable `riemannZetaZeros` became `noncomputable` on master (leanprover-community#41446), and a definition built from it must be marked the same way, or the file fails to compile. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_0199hgM8iFTn8ghTkFbufHeq
All these definitions are noncomputable (because they use choice/produce sets), but the computability checker doesn't spot this until I try making
Seta one-field structure. This is because the computability checker doesn't even try to compute sorts, but it doesn't see thats : Set αis (equivalent to) a family of sorts.