Skip to content

Commit

Permalink
fix: respect type reducibility when generating injectivity lemmas
Browse files Browse the repository at this point in the history
  • Loading branch information
eric-wieser authored Jun 19, 2023
1 parent 2348fb3 commit bcde89b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Lean/Meta/Injective.lean
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ private partial def mkInjectiveTheoremTypeCore? (ctorVal : ConstructorVal) (useE
for arg1 in args1, arg2 in args2 do
let arg1Type ← inferType arg1
if !(← isProp arg1Type) && arg1 != arg2 then
eqs := eqs.push (← mkEqHEq arg1 arg2)
eqs := eqs.push (← withReducible <| mkEqHEq arg1 arg2)
if let some andEqs := mkAnd? eqs then
let result ← if useEq then
mkEq eq andEqs
Expand Down

0 comments on commit bcde89b

Please sign in to comment.