Zulip Chat Archive
Stream: maths
Topic: When can two types be compared using "="?
Ching-Tsun Chou (Nov 23 2024 at 00:11):
In the following example, why does the last #check report "application type mismatch" and "failed to synthesize" while the first three #checks all type-check OK?
import Mathlib.GroupTheory.QuotientGroup.Basic
variable {G : Type*} [Group G] {M : Subgroup G} [M.Normal]
#check G ⧸ M
#check G = G
#check M = M
#check G ⧸ M = G ⧸ M
Vincent Beffara (Nov 23 2024 at 00:17):
import Mathlib.GroupTheory.QuotientGroup.Basic
variable {G : Type*} [Group G] {M : Subgroup G} [M.Normal]
#check G ⧸ M
#check G = G
#check M = M
#check (G ⧸ M) = (G ⧸ M)
Ching-Tsun Chou (Nov 23 2024 at 00:19):
Ah, I see. Thanks!
Ching-Tsun Chou (Nov 23 2024 at 00:28):
Is there a way to tell Lean to list all notations and their precedences?
Daniel Weber (Nov 23 2024 at 04:34):
#help term
lists all of them but without precedence
Kyle Miller (Nov 23 2024 at 04:44):
If you hover over an notation in VS Code, there's a subtle highlight for everything that's grouped with that notation.
Last updated: May 02 2025 at 03:31 UTC