Samplinglib
Lean gate passed 2026-08-19T06:04:36.257124+00:00 · 77184245109a
production module

AutoSamplingTheory.TechnicalLemmas.Geometry.EuclideanSpaceCoordinates

2 named declarations scanned from AutoSamplingTheory/TechnicalLemmas/Geometry/EuclideanSpaceCoordinates.lean.

Imports
Imported by
Placeholder scan
0 declaration(s) flagged
Gate status
Compiled

Declarations

theorem AutoSamplingTheory.TechnicalLemmas.Geometry.EuclideanSpaceCoordinates.euclideanSpace_inner_toLp_toLp_eq_sum_mul Compiled Not mapped

- Inner product of two real coordinate functions after the `EuclideanSpace` `WithLp.toLp 2` embedding.

theorem euclideanSpace_inner_toLp_toLp_eq_sum_mul
    {ι : Type*} [Fintype ι] (u v : ι → ℝ) :
    inner ℝ (WithLp.toLp 2 u : EuclideanSpace ℝ ι)
        (WithLp.toLp 2 v : EuclideanSpace ℝ ι) =
      ∑ i, u i * v i := by
  rw [PiLp.inner_apply]
  refine Finset.sum_congr rfl ?_
  intro i _
  change v i * u i = u i * v i
  ring

/-- Inner product of two real `EuclideanSpace` vectors in coordinates. -/
theorem AutoSamplingTheory.TechnicalLemmas.Geometry.EuclideanSpaceCoordinates.euclideanSpace_inner_eq_sum_mul Compiled Not mapped

- Inner product of two real `EuclideanSpace` vectors in coordinates.

theorem euclideanSpace_inner_eq_sum_mul
    {ι : Type*} [Fintype ι] (u v : EuclideanSpace ℝ ι) :
    inner ℝ u v = ∑ i, u i * v i := by
  rw [PiLp.inner_apply]
  refine Finset.sum_congr rfl ?_
  intro i _
  change v i * u i = u i * v i
  ring

end EuclideanSpaceCoordinates
end Geometry
end TechnicalLemmas
end AutoSamplingTheory