leanprover / doc-gen4

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

Lean statement not rendered for theorems defined as `def thm : Prop := statement` #155

Closed utensil closed 1 year ago

utensil commented 1 year ago

Lean statement not rendered for theorems defined as def thm : Prop := statement

Issue Example

For FltRegular doc, it shows only Prop instead of the statement:

image

corresponding source code:

image

Expected solution

For definitions of the type Prop, treat it like a theorem, renders the part aftet :=, like the following example:

image

Possibly fixable by adding a branch for DocGen4.Process.DocInfo.ofConstant or DocGen4.Process.DefinitionInfo.ofDefinitionVal.

Related Zulip discussion

here