Skip to content

Commit

Permalink
fix: theorem projections should not render (#236)
Browse files Browse the repository at this point in the history
  • Loading branch information
kmill authored Nov 15, 2024
1 parent 5777dc7 commit 7b6a56e
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion DocGen4/Process/DocInfo.lean
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,12 @@ def ofConstant : (Name × ConstantInfo) → MetaM (Option DocInfo) := fun (name,
return none
match info with
| ConstantInfo.axiomInfo i => return some <| axiomInfo (← AxiomInfo.ofAxiomVal i)
| ConstantInfo.thmInfo i => return some <| theoremInfo (← TheoremInfo.ofTheoremVal i)
| ConstantInfo.thmInfo i =>
let info ← TheoremInfo.ofTheoremVal i
if ← isProjFn i.name then
return some <| theoremInfo { info with render := false }
else
return some <| theoremInfo info
| ConstantInfo.opaqueInfo i => return some <| opaqueInfo (← OpaqueInfo.ofOpaqueVal i)
| ConstantInfo.defnInfo i =>
if ← isProjFn i.name then
Expand Down

0 comments on commit 7b6a56e

Please sign in to comment.