Skip to content

Commit

Permalink
feat: make anonymous instance names not include proofs (#3934)
Browse files Browse the repository at this point in the history
  • Loading branch information
kmill authored Apr 17, 2024
1 parent 11a9d2e commit 319940d
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/Lean/Elab/DeclNameGen.lean
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,8 @@ Expressions can also be replaced by `.bvar 0` if they shouldn't be mentioned.
-/
private partial def winnowExpr (e : Expr) : MetaM Expr := do
let rec visit (e : Expr) : MonadCacheT Expr Expr MetaM Expr := checkCache e fun _ => do
if ← isProof e then
return .bvar 0
match e with
| .app .. =>
if let some e' ← getParentProjArg e then
Expand Down

0 comments on commit 319940d

Please sign in to comment.