Zulip Chat Archive
Stream: mathlib4
Topic: strange error in `to_additive`
Arien Malec (Jan 03 2023 at 23:26):
I'm porting Algebra.PUnitInstances
(mathlib4#1319) and getting very odd errors with to_additive
like
application type mismatch
HSMul.hSMul
argument has type
HVAdd R PUnit PUnit
but function has type
[self : HSMul R PUnit PUnit] → R → PUnit → PUnit
as if to_additive
is getting confused?
Riccardo Brasca (Jan 03 2023 at 23:27):
This also happens in mathlib4#1238
Floris van Doorn (Jan 04 2023 at 13:04):
@Arien Malec there was some configuration of to_additive
that was not ported over from Lean 3. Can you merge your branch with mathlib4#1330, and see if that fixes it?
Floris van Doorn (Jan 04 2023 at 14:04):
mathlib4#1332 fixes the issue in mathlib4#1238
Arien Malec (Jan 04 2023 at 17:29):
Confirmed fixed.
Last updated: Dec 20 2023 at 11:08 UTC