feat: Remove declarations from lean snippets

This commit is contained in:
jstoobysmith 2025-02-07 13:49:10 +00:00
parent b7ae7dc2ad
commit 1be737b4de
2 changed files with 16 additions and 2 deletions

View file

@ -44,7 +44,7 @@ structure DeclInfo where
def DeclInfo.ofName (n : Name) (ns : NameStatus): MetaM DeclInfo := do
let line ← Name.lineNumber n
let fileName ← Name.fileName n
let declString ← Name.getDeclString n
let declString ← Name.getDeclStringNoDoc n
let docString ← Name.getDocString n
let constInfo ← getConstInfo n
let isDef := constInfo.isDef Lean.isStructure (← getEnv) n constInfo.isInductive