Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

noncomputable section isn't shown anywhere #195

Open
Command-Master opened this issue Jun 14, 2024 · 2 comments
Open

noncomputable section isn't shown anywhere #195

Command-Master opened this issue Jun 14, 2024 · 2 comments

Comments

@Command-Master
Copy link

When a definition appears in a noncomputable section, while the definition is actually noncomputable, there is no indication given for that anywhere in the docs, and it appears just like a computable definition.

@hargoniX
Copy link
Collaborator

doc-gen asks the Environment whether something is non computable by calling this function: https://leanprover-community.github.io/mathlib4_docs/Lean/Compiler/NoncomputableAttr.html#Lean.isNoncomputable If noncomputable section does not hook itself up with this there is not much I can do, unless it registers the noncomputability in another part of the Environment.

@Command-Master
Copy link
Author

Command-Master commented Jun 15, 2024

From what I can see noncomputable section affects Lean.Elab.Command.Scope.isNoncomputable, but it does need to attempt compilation for everything before it can decide if it should be made noncomputable, so I'm not sure how this can be detected.

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

No branches or pull requests

2 participants