Skip to content

Commit 1a6f40d

Browse files
CBirkbeckclaude
andcommitted
feat(NumberTheory/ModularForms): add @[simp] coe_cast + cast_apply
Function-level and pointwise simp lemmas for `heq ▸ f` cast. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
1 parent 3d664eb commit 1a6f40d

1 file changed

Lines changed: 10 additions & 0 deletions

File tree

Mathlib/NumberTheory/ModularForms/Basic.lean

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -565,8 +565,18 @@ def mcast {a b : ℤ} {Γ Γ' : Subgroup (GL (Fin 2) ℝ)} (h : a = b) (f : Modu
565565
holo' := f.holo'
566566
bdd_at_cusps' hc := h ▸ f.bdd_at_cusps' (hΓ ▸ hc)
567567

568+
/-- Transporting a `ModularForm` along an equality of weights does not change its underlying
569+
function. -/
570+
@[simp]
571+
theorem coe_cast {Γ : Subgroup (GL (Fin 2) ℝ)} {k₁ k₂ : ℤ}
572+
(heq : k₁ = k₂) (f : ModularForm Γ k₁) :
573+
((heq ▸ f : ModularForm Γ k₂) : ℍ → ℂ) = (f : ℍ → ℂ) := by
574+
subst heq
575+
rfl
576+
568577
/-- Transporting a `ModularForm` along an equality of weights does not change its pointwise
569578
values. -/
579+
@[simp]
570580
theorem cast_apply {Γ : Subgroup (GL (Fin 2) ℝ)} {k₁ k₂ : ℤ}
571581
(heq : k₁ = k₂) (f : ModularForm Γ k₁) (z : ℍ) :
572582
(heq ▸ f : ModularForm Γ k₂) z = f z := by

0 commit comments

Comments
 (0)