Zulip Chat Archive
Stream: mathlib4
Topic: How to avoid making an arg explicit in def.
Michail Karatarakis (Mar 03 2024 at 23:40):
I have this code :
import Mathlib.NumberTheory.NumberField.Discriminant
open NumberField Embeddings FiniteDimensional
noncomputable section
variable {K : Type*} [Field K] [NumberField K]
def h := (finrank ℚ K)
def σ : Fin (finrank ℚ K) ≃ (K →+* ℂ) := sorry
Is it possible to alter the definition of h
to enable writing def σ : Fin (h) ≃ (K →+* ℂ) := sorry
without needing an explicitK
for h
?
Yaël Dillies (Mar 04 2024 at 03:13):
local notation h := finrank ℚ K
?
Antoine Chambert-Loir (Mar 04 2024 at 08:37):
(Unrelated with the actual question, h
is usually the class number of the number field, not its degree (which could be d
or r
).)
Notification Bot (Mar 04 2024 at 08:41):
This topic was moved here from #maths > How to avoid making an arg explicit in def. by Eric Wieser.
Last updated: May 02 2025 at 03:31 UTC