Skip to content

Commit cf9c5f7

Browse files
committed
feat(Analysis/Meromorphic): const_smul lemma (leanprover-community#39833)
This allows more general scalar type than the existing `smul` ones
1 parent 1b0782d commit cf9c5f7

1 file changed

Lines changed: 14 additions & 0 deletions

File tree

β€ŽMathlib/Analysis/Meromorphic/Basic.leanβ€Ž

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@ open scoped Topology
2929

3030
variable {π•œ π•œ' : Type*} [NontriviallyNormedField π•œ] [NontriviallyNormedField π•œ']
3131
[NormedAlgebra π•œ π•œ'] {E : Type*} [NormedAddCommGroup E] [NormedSpace π•œ E]
32+
variable {R : Type*} [NormedRing R] [Module R E] [IsBoundedSMul R E] [SMulCommClass π•œ R E]
3233

3334
/-- Meromorphy of `f` at `x` (more precisely, on a punctured neighbourhood of `x`; the value at
3435
`x` itself is irrelevant). -/
@@ -94,6 +95,12 @@ lemma smul {f : π•œ β†’ π•œ} {g : π•œ β†’ E} (hf : MeromorphicAt f x) (hg : M
9495
simp
9596
module
9697

98+
@[to_fun (attr := fun_prop)]
99+
lemma const_smul {x : π•œ} {f : π•œ β†’ E} (hf : MeromorphicAt f x) (c : R) :
100+
MeromorphicAt (c β€’ f) x := by
101+
rcases hf with ⟨m, hf⟩
102+
exact ⟨m, by simpa [smul_comm _ c _] using hf.fun_const_smul⟩
103+
97104
@[to_fun (attr := fun_prop)]
98105
lemma mul {f g : π•œ β†’ π•œ'} (hf : MeromorphicAt f x) (hg : MeromorphicAt g x) :
99106
MeromorphicAt (f * g) x := by
@@ -550,6 +557,9 @@ include hf in
550557
MeromorphicOn (s β€’ f) U :=
551558
fun x hx ↦ (hs x hx).smul (hf x hx)
552559

560+
include hf in
561+
@[to_fun] lemma const_smul (c : R) : MeromorphicOn (c β€’ f) U := fun x hx ↦ (hf x hx).const_smul c
562+
553563
include hs ht in
554564
@[to_fun] lemma mul : MeromorphicOn (s * t) U := fun x hx ↦ (hs x hx).mul (ht x hx)
555565

@@ -695,6 +705,10 @@ lemma sub (hf : Meromorphic f) (hg : Meromorphic g) :
695705
lemma smul {f : π•œ β†’ π•œ} (hf : Meromorphic f) (hg : Meromorphic g) :
696706
Meromorphic (f β€’ g) := fun x ↦ (hf x).smul (hg x)
697707

708+
@[to_fun (attr := fun_prop)]
709+
lemma const_smul (hf : Meromorphic f) (c : R) :
710+
Meromorphic (c β€’ f) := fun x ↦ (hf x).const_smul c
711+
698712
@[to_fun (attr := fun_prop)]
699713
lemma mul {f g : π•œ β†’ π•œ'} (hf : Meromorphic f) (hg : Meromorphic g) :
700714
Meromorphic (f * g) := fun x ↦ (hf x).mul (hg x)

0 commit comments

Comments
Β (0)