cfahlgren1/math / lean /OAI /Analysis /Laughlin /Pair /Conjugation.lean
cfahlgren1's picture
download
raw
2.33 kB
import Mathlib.Tactic.FieldSimp
import Mathlib.Tactic.NormNum
import Mathlib.Tactic.Ring
import OAI.Analysis.Laughlin.EnergyNonnegative
namespace OAI
namespace Laughlin
noncomputable def modeFactor (Q x : ℕ) : ℝ :=
Real.sqrt ((Q.descFactorial x : ℝ) / (Q : ℝ)^x)
noncomputable def pairFactor (Q p : ℕ) : ℝ :=
Real.sqrt (((2 : ℝ)*Q)^p / ((2*Q-2).descFactorial p : ℝ))
noncomputable def pairLimitCoefficient (p x y : ℕ) : ℝ :=
if x+y = p+1 then
((x : ℝ)-(y : ℝ)) * Real.sqrt ((p.factorial : ℝ) /
(((2 : ℕ) : ℝ)^p * (x.factorial : ℝ) * (y.factorial : ℝ))) / Real.sqrt (2 : ℕ)
else 0
theorem pair_radicand_factorization (Q p x y : ℕ) (hQ : 0 < Q)
(hp : p ≤ 2*Q-2) (hxy : x+y = p+1) :
((Q.descFactorial x : ℝ) / (Q : ℝ)^x) *
((Q.descFactorial y : ℝ) / (Q : ℝ)^y) *
(((2 : ℝ)*Q)^p / ((2*Q-2).descFactorial p : ℝ)) *
((p.factorial : ℝ) / ((2 : ℝ)^p * (x.factorial : ℝ) * (y.factorial : ℝ))) =
((Q.descFactorial x : ℝ)*(Q.descFactorial y : ℝ)*(p.factorial : ℝ)) /
((Q : ℝ)*((2*Q-2).descFactorial p : ℝ)*(x.factorial : ℝ)*(y.factorial : ℝ)) := by
have hq : (Q : ℝ) ≠ 0 := by exact_mod_cast (Nat.ne_of_gt hQ)
have hd : ((2*Q-2).descFactorial p : ℝ) ≠ 0 := by
exact_mod_cast (Nat.ne_of_gt (Nat.descFactorial_pos.mpr hp))
have hx : (x.factorial : ℝ) ≠ 0 := by positivity
have hy : (y.factorial : ℝ) ≠ 0 := by positivity
have hh : (Q : ℝ)^x * (Q : ℝ)^y = (Q : ℝ)^p * Q := by
rw [← pow_add, hxy, pow_succ]
rw [mul_pow]
field_simp
have he := congrArg (fun t : ℝ => (Q.descFactorial x : ℝ) * (Q.descFactorial y : ℝ) * t) hh
nlinarith only [he]
theorem pairCoefficient_conjugation (Q p : ℕ) (hQ : 0 < Q)
(hp : p ≤ 2*Q-2) (x y : Fin (Q+1)) :
pairCoefficient Q p x y =
modeFactor Q x.val * modeFactor Q y.val * pairFactor Q p *
pairLimitCoefficient p x.val y.val := by
unfold pairCoefficient pairLimitCoefficient modeFactor pairFactor
split_ifs with h
· have hr := pair_radicand_factorization Q p x.val y.val hQ hp h
have hs := congrArg Real.sqrt hr
rw [Real.sqrt_mul (by positivity), Real.sqrt_mul (by positivity),
Real.sqrt_mul (by positivity)] at hs
rw [← hs]
ring_nf
· simp
end Laughlin
end OAI

Xet Storage Details

Size:
2.33 kB
·
Xet hash:
b4c446635896e9188aaa8b6dd18a3fa761eb5a028960cfd23187e48f358b3733

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