cfahlgren1/math / lean /OAI /Analysis /Laughlin /Pair /PolynomialBridge.lean
cfahlgren1's picture
download
raw
2.52 kB
import OAI.Analysis.Laughlin.Pair.CoefficientSquare
import OAI.Analysis.Laughlin.Pair.LoweringAlgebra
namespace OAI
namespace Laughlin
theorem pairCoefficient_choose (Q p : ℕ) (hQ : 0 < Q) (hp : p ≤ 2*Q-2)
(x y : Fin (Q+1)) :
pairCoefficient Q p x y = if x.val+y.val = p+1 then
((x.val : ℝ)-(y.val : ℝ)) *
Real.sqrt ((Q.choose x.val : ℝ)*(Q.choose y.val : ℝ) /
(2*(Q : ℝ)*((2*Q-2).choose p : ℝ))) else 0 := by
have hx : (x.val.factorial : ℝ) ≠ 0 := by positivity
have hy : (y.val.factorial : ℝ) ≠ 0 := by positivity
have hpf : (p.factorial : ℝ) ≠ 0 := by positivity
have hq : (Q : ℝ) ≠ 0 := by exact_mod_cast (Nat.ne_of_gt hQ)
have hc : ((2*Q-2).choose p : ℝ) ≠ 0 := by
exact_mod_cast (Nat.ne_of_gt (Nat.choose_pos hp))
unfold pairCoefficient
split_ifs
· have hr : (((Q.descFactorial x.val : ℝ)*(Q.descFactorial y.val : ℝ)*(p.factorial : ℝ)) /
((Q : ℝ)*((2*Q-2).descFactorial p : ℝ)*(x.val.factorial : ℝ)*(y.val.factorial : ℝ))) / 2 =
(Q.choose x.val : ℝ)*(Q.choose y.val : ℝ)/(2*(Q : ℝ)*((2*Q-2).choose p : ℝ)) := by
simp only [Nat.descFactorial_eq_factorial_mul_choose, Nat.cast_mul]
field_simp
have hs := congrArg Real.sqrt hr
rw [Real.sqrt_div (by positivity) (2 : ℝ)] at hs
rw [← hs]
ring
· rfl
theorem pairCoefficient_polynomial_weight (Q p : ℕ) (hQ : 0 < Q)
(hp : p ≤ 2*Q-2) (x y : Fin (Q+1)) :
pairCoefficient Q p x y * Real.sqrt (Q.choose x.val : ℝ) *
Real.sqrt (Q.choose y.val : ℝ) * Real.sqrt (2*(Q : ℝ)*((2*Q-2).choose p : ℝ)) =
if x.val+y.val = p+1 then pairPolynomialCoefficient Q x.val y.val else 0 := by
have hd : Real.sqrt (2*(Q : ℝ)*((2*Q-2).choose p : ℝ)) ≠ 0 := by
apply Real.sqrt_ne_zero'.mpr
have hq : (0 : ℝ) < Q := by exact_mod_cast hQ
have hc : (0 : ℝ) < (2*Q-2).choose p := by exact_mod_cast Nat.choose_pos hp
positivity
rw [pairCoefficient_choose Q p hQ hp]
split_ifs
· rw [Real.sqrt_div (by positivity), Real.sqrt_mul (by positivity)]
unfold pairPolynomialCoefficient
have hx := Real.sq_sqrt (show (0 : ℝ) ≤ Q.choose x.val by positivity)
have hy := Real.sq_sqrt (show (0 : ℝ) ≤ Q.choose y.val by positivity)
field_simp
calc
_ = ((x.val : ℝ)-(y.val : ℝ)) * (Real.sqrt (Q.choose x.val : ℝ))^2 *
(Real.sqrt (Q.choose y.val : ℝ))^2 := by ring
_ = _ := by rw [hx,hy]
· simp
end Laughlin
end OAI

Xet Storage Details

Size:
2.52 kB
·
Xet hash:
3de47132a3fa9cee33958aefbb9731e92ae056af1da8c633e0cb959650ec0e05

Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.