Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
23 changes: 7 additions & 16 deletions Mathlib/Analysis/Analytic/OfScalars.lean
Original file line number Diff line number Diff line change
Expand Up @@ -64,15 +64,9 @@ theorem ofScalars_series_of_subsingleton [Subsingleton E] : ofScalars E c = 0 :=

variable (𝕜) in
theorem ofScalars_series_injective [Nontrivial E] : Function.Injective (ofScalars E (𝕜 := 𝕜)) := by
intro _ _
refine Function.mtr fun h ↦ ?_
simp_rw [FormalMultilinearSeries.ext_iff, ofScalars, ContinuousMultilinearMap.ext_iff,
ContinuousMultilinearMap.smul_apply]
push Not
obtain ⟨n, hn⟩ := Function.ne_iff.1 h
refine ⟨n, fun _ ↦ 1, ?_⟩
simp only [mkPiAlgebraFin_apply, List.ofFn_const, List.prod_replicate, one_pow, ne_eq]
exact (smul_left_injective 𝕜 one_ne_zero).ne hn
intro c c' h
funext n
Comment on lines +67 to +68
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
intro c c' h
funext n
intro _ _ h
ext n

simpa [ofScalars] using congrArg (fun p ↦ p n fun _ ↦ (1 : E)) h

variable (c)

Expand All @@ -91,19 +85,16 @@ lemma coeff_ofScalars {𝕜 : Type*} [NontriviallyNormedField 𝕜] {p : ℕ →
(FormalMultilinearSeries.ofScalars 𝕜 p).coeff n = p n := by
simp [FormalMultilinearSeries.coeff, FormalMultilinearSeries.ofScalars, List.prod_ofFn]

set_option backward.isDefEq.respectTransparency false in
theorem ofScalars_add (c' : ℕ → 𝕜) : ofScalars E (c + c') = ofScalars E c + ofScalars E c' := by
unfold ofScalars
simp_rw [Pi.add_apply, Pi.add_def _ _]
exact funext fun n ↦ Module.add_smul (c n) (c' n) (ContinuousMultilinearMap.mkPiAlgebraFin 𝕜 n E)
ext n x
simp [ofScalars, add_smul]
Comment on lines +89 to +90
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
ext n x
simp [ofScalars, add_smul]
ext; simp [ofScalars, add_smul]


lemma ofScalars_sub (c' : ℕ → 𝕜) : ofScalars E (c - c') = ofScalars E c - ofScalars E c' := by
ext; simp [ofScalars, sub_smul]

set_option backward.isDefEq.respectTransparency false in
theorem ofScalars_smul (x : 𝕜) : ofScalars E (x • c) = x • ofScalars E c := by
unfold ofScalars
simp [Pi.smul_def x _, smul_smul]
ext n y
simp [ofScalars, smul_smul]
Comment on lines +96 to +97
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
ext n y
simp [ofScalars, smul_smul]
ext; simp [ofScalars, smul_smul]


theorem ofScalars_comp_neg_id :
(ofScalars E c).compContinuousLinearMap (-ContinuousLinearMap.id _ _) =
Expand Down
Loading