Pratik Patil

NormalizedRays.lean

1module23public import SubentropyCertificates.PinchingGeometry45/-! Equality of two normalized vector projectors means equality of6their complex lines. -/7@[expose] public section8noncomputable section9open Matrix10open scoped BigOperators11namespace SubentropyCertificates.OrthogonalPinching12open SubentropyCertificates.PinchingEquality1314theorem projector_eq_iff_collinear {D : Type*} [Fintype D] (u v : D → ℂ)15    (hu : amplitude u u = 1) (hv : amplitude v v = 1) :16    projector u = projector v ↔ ∃ c : ℂ, u = c • v := by17  constructor18  · intro he19    have act (w : D → ℂ) : projector w *ᵥ u = amplitude w u • w := by20      rw [projector, Matrix.vecMulVec_mulVec]21      funext i22      exact mul_comm _ _23    have h := congrArg (fun A : Matrix D D ℂ => A *ᵥ u) he24    refine ⟨amplitude v u, ?_⟩25    simpa only [act, hu, one_smul] using h26  · rintro ⟨c, rfl⟩27    have hc : star c * c = 1 := by28      have h : amplitude (c • v) (c • v) = (star c * c) * amplitude v v := by29        simp only [amplitude, star_smul, smul_dotProduct, dotProduct_smul, smul_eq_mul, mul_assoc, mul_left_comm]30      rw [hu, hv, mul_one] at h31      exact h.symm32    ext i j33    change (c * v i) * star (c * v j) = v i * star (v j)34    rw [star_mul, show c * v i * (star (v j) * star c) =35      (star c * c) * (v i * star (v j)) by ring, hc, one_mul]3637end SubentropyCertificates.OrthogonalPinching

Axioms used

Choose a statement to see which axioms its proof uses.