Skip to content

Commit

Permalink
bug fix
Browse files Browse the repository at this point in the history
  • Loading branch information
PratherConid committed May 2, 2024
1 parent bde829b commit cbf357a
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion Auto/Translation/Monomorphization.lean
Original file line number Diff line number Diff line change
Expand Up @@ -386,7 +386,9 @@ def LemmaInst.matchConstInst (ci : ConstInst) (li : LemmaInst) : MetaM (HashSet
def LemmaInst.monomorphic? (li : LemmaInst) : MetaM (Option LemmaInst) := do
if li.params.size != 0 then
return .none
let li := {li with type := ← prepReduceExpr li.type}
-- Do not use `prepReduceExpr` because lemmas about
-- recursors might be reduced to tautology
let li := {li with type := ← Core.betaReduce li.type}
if !(← Expr.leadingForallQuasiMonomorphic li.type) then
return .none
Meta.withNewMCtxDepth do
Expand Down

0 comments on commit cbf357a

Please sign in to comment.