cfahlgren1/math / lean /OAI /Analysis /Laughlin /Spin /RelativeHighest.lean
cfahlgren1's picture
download
raw
2.23 kB
import OAI.Analysis.Laughlin.Spin.HighestSpace
namespace OAI
namespace Laughlin.Spin
open scoped BigOperators
noncomputable def relativeHighest (A B z p : ℕ) : ℝ :=
highestRaw A B z p / highestRaw A B z 0
noncomputable def relativeHighestNorm (A B z : ℕ) : ℝ :=
Real.sqrt (∑ p ∈ Finset.range (z+1), (relativeHighest A B z p)^2)
theorem highestRaw_zero_pos (A B z : ℕ) (hB : z ≤ B) :
0 < highestRaw A B z 0 := by
rw [highestRaw_zero]
apply one_div_pos.mpr
apply Real.sqrt_pos.mpr
exact_mod_cast Nat.choose_pos hB
theorem relativeHighest_zero (A B z : ℕ) (hB : z ≤ B) :
relativeHighest A B z 0 = 1 := by
exact div_self (ne_of_gt (highestRaw_zero_pos A B z hB))
theorem relativeHighest_succ (A B z p : ℕ) (hA : z ≤ A) (hB : z ≤ B)
(hp : p < z) :
relativeHighest A B z (p+1) =
-(ladder B (z-p-1)/ladder A p)*relativeHighest A B z p := by
have he := highestRaw_raising A B z p hA hB hp
have ha := ne_of_gt (ladder_pos A p (by omega))
have hr := ne_of_gt (highestRaw_zero_pos A B z hB)
unfold relativeHighest
field_simp
nlinarith only [he]
theorem relativeHighestNorm_pos (A B z : ℕ) (hB : z ≤ B) :
0 < relativeHighestNorm A B z := by
apply Real.sqrt_pos.mpr
apply Finset.sum_pos'
· intro p hp; exact sq_nonneg _
· refine ⟨0,Finset.mem_range.mpr (by omega),?_⟩
rw [relativeHighest_zero A B z hB]; norm_num
theorem highestNorm_relative (A B z : ℕ) (hB : z ≤ B) :
highestNorm A B z = highestRaw A B z 0 * relativeHighestNorm A B z := by
have hp := highestRaw_zero_pos A B z hB
have he : (∑ p ∈ Finset.range (z+1), (highestRaw A B z p)^2) =
(highestRaw A B z 0)^2 * ∑ p ∈ Finset.range (z+1), (relativeHighest A B z p)^2 := by
rw [Finset.mul_sum]
apply Finset.sum_congr rfl
intro p hp'
unfold relativeHighest
field_simp
unfold highestNorm relativeHighestNorm
rw [he,Real.sqrt_mul (sq_nonneg _),Real.sqrt_sq (le_of_lt hp)]
theorem highestUnit_eq_relative (A B z p : ℕ) (hB : z ≤ B) :
highestUnit A B z p = relativeHighest A B z p / relativeHighestNorm A B z := by
unfold highestUnit relativeHighest
rw [highestNorm_relative A B z hB]
ring
end Laughlin.Spin
end OAI

Xet Storage Details

Size:
2.23 kB
·
Xet hash:
3ba1f66c03e460a98db036d3ba417939f7ca38b00bee5eaf81de50dfeedc3ca7

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