English
There is a canonical copy of a modular form with a new function equal to a given function; the copy preserves all modular-forms data.
Русский
Существует каноническая копия модульной формы с новой функцией, равной заданной функции; копия сохраняет все данные модулярной формы.
LaTeX
$$$f' = f \Rightarrow \text{copy}(f,f',h) \text{ yields a modular form with the same data as } f'$$$
Lean4
/-- Copy of a `ModularForm` with a new `toFun` equal to the old one. Useful to fix
definitional equalities. -/
protected def copy (f : ModularForm Γ k) (f' : ℍ → ℂ) (h : f' = ⇑f) : ModularForm Γ k
where
toSlashInvariantForm := f.1.copy f' h
holo' := h.symm ▸ f.holo'
bdd_at_cusps' A := h.symm ▸ f.bdd_at_cusps' A