Zulip Chat Archive
Stream: mathlib4
Topic: Topology.Algebra.MulAction !4#2013
Moritz Doll (Feb 13 2023 at 00:35):
In this PR there is one error left and I have no idea how to fix it: we have a statement about continuity with a specific topology, but in the proof Lean seems to forget what the topology is supposed to be. Code:
https://github.com/leanprover-community/mathlib4/pull/2013/files#diff-6fbe09f46d499557f39aa50ba472af8c50434af5f30365bcb77c018bf486c7ceR178-R187
Eric Wieser (Feb 13 2023 at 01:22):
This is a known problem, {}
notation for constructors doesn't work when the instance arguments to the constructor aren't canonical
Eric Wieser (Feb 13 2023 at 01:27):
I pushed a fix
Moritz Doll (Feb 13 2023 at 02:42):
I've tried it with ⟨..⟩
, but that did not work either. It did not cross my mind to use ContinuousSMul.mk
. To me it sounds that this is a Lean error, right?
Eric Wieser (Feb 13 2023 at 02:48):
I asked about this before, it's apparently somewhat by design
Eric Wieser (Feb 13 2023 at 02:49):
There's a thread I can't search for on mobile about (_)
Yury G. Kudryashov (Feb 13 2023 at 05:36):
You can do, e.g., letI := yourInstance; { ... }
Kevin Buzzard (Feb 13 2023 at 05:39):
Eric Wieser said:
This is a known problem,
{}
notation for constructors doesn't work when the instance arguments to the constructor aren't canonical
What does canonical mean in this context?
Yury G. Kudryashov (Feb 13 2023 at 05:41):
"Canonical" means "can be found by instance search, not unification"
Last updated: Dec 20 2023 at 11:08 UTC