math / data /lean /OAI /Analysis /Calculus /Current /Cancellation.lean
introvoyz045's picture
Migrated from GitHub
4a56cd6 verified
Raw History Blame Contribute Delete
2.66 kB
import OAI.Analysis.Calculus.Current.MovingFrame
namespace OAI.Analysis.Calculus.Current
noncomputable section
theorem tangentSlope_antisymmetry {d : β„•} (v v' : Fin d β†’ ℝ)
(z : Index d β†’ β„‚) (hY : z none β‰  0) (b : Index d) :
2 * star (tangentSlope v' z (tangentField v z) b) -
2 * star (tangentSlope v z (tangentField v' z) b) =
-(star (tangentField v' z b) - star (tangentField v z b)) / star (z none) := by
have hs : star (z none) β‰  0 := star_ne_zero.mpr hY
cases b with
| none => simp [tangentSlope, tangentField, tangentVector]
| some b =>
cases b with
| none =>
simp only [tangentSlope, tangentField, tangentVector,
ratioSlope_tangentVector z hY, star_divβ‚€, star_neg, star_sum, star_mul,
star_ofNat, star_sub, Complex.star_def, Complex.conj_ofReal]
have hh : (βˆ‘ i, (v' i : β„‚) * (((v i : β„‚) - star (ratio z i)) /
(star (z none) * 2))) -
(βˆ‘ i, (v i : β„‚) * (((v' i : β„‚) - star (ratio z i)) /
(star (z none) * 2))) =
((βˆ‘ i, (v i : β„‚) * star (ratio z i)) -
(βˆ‘ i, (v' i : β„‚) * star (ratio z i))) / (star (z none) * 2) := by
simp only [← Finset.sum_sub_distrib, Finset.sum_div]
apply Finset.sum_congr rfl
intro i _
ring
simp only [Complex.star_def] at hh
linear_combination -hh
| some i =>
simp only [tangentSlope, tangentField, tangentVector,
ratioSlope_tangentVector z hY, star_divβ‚€, star_add, star_mul,
star_ofNat, star_sub, Complex.star_def, Complex.conj_ofReal]
field_simp
ring
/-- The final residual in (current-final-cancellation) vanishes. This includes
the nonconstant moving-plane contribution, not merely scalar conservation. -/
theorem current_final_cancellation {d : β„•} (v v' : Fin d β†’ ℝ)
(z : Index d β†’ β„‚) (hY : z none β‰  0) (b : Index d) :
(star (tangentField v' z b) - star (tangentField v z b)) / (β€–z noneβ€– : β„‚) +
star (movingUnit z) *
(complexBarDirectional (fun w => star (tangentField v' w b)) z (tangentField v z) -
complexBarDirectional (fun w => star (tangentField v w b)) z (tangentField v' z)) = 0 := by
rw [complexBarDirectional_conjugate_tangentField v' z _ hY,
complexBarDirectional_conjugate_tangentField v z _ hY,
tangentSlope_antisymmetry v v' z hY]
have hn : (β€–z noneβ€– : β„‚) β‰  0 := by exact_mod_cast norm_ne_zero_iff.mpr hY
have hs : star (z none) β‰  0 := star_ne_zero.mpr hY
simp only [movingUnit, star_divβ‚€, Complex.star_def, Complex.conj_ofReal] at *
field_simp
ring
end
end OAI.Analysis.Calculus.Current