leanprover / doc-gen4

Document Generator for Lean 4
Apache License 2.0
62 stars 41 forks source link

noncomputable section isn't shown anywhere #195

Open Command-Master opened 2 months ago

Command-Master commented 2 months ago

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 commented 2 months ago

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 commented 2 months ago

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.