Skip to content

Commit

Permalink
fix: (throwaway) context was ignoring const levels
Browse files Browse the repository at this point in the history
  • Loading branch information
dselsam committed Nov 7, 2019
1 parent 06fe9d3 commit 8992fe1
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion library/Init/Lean/TypeClass/Context.lean
Original file line number Diff line number Diff line change
Expand Up @@ -282,7 +282,9 @@ partial def uAlphaNormalizeCore : Level → StateM AlphaNormData Level

partial def eAlphaNormalizeCore : Expr → StateM AlphaNormData Expr
| e =>
if e.isConst then pure e
if e.isConst then do
ls ← e.constLevels!.mapM uAlphaNormalizeCore;
pure $ Expr.updateConst! e ls
else if e.isFVar then pure e
else if !e.hasMVar then pure e
else match e with
Expand Down

0 comments on commit 8992fe1

Please sign in to comment.