cfahlgren1/math / lean /OAI /Probability /DilutedSpin /ExtendedExponents.lean
cfahlgren1's picture
download
raw
1.86 kB
import OAI.Probability.DilutedSpin.CavityEndpointCount
namespace OAI
section
namespace DilutedSpinGlass
lemma snoc_exponents_pos {r : ℕ} {m : Fin r → ℝ} (hm : Exponents m) :
∀ i : Fin (r+1),0 < Fin.snoc (α := fun _ => ℝ) m (1:ℝ) i := by
intro i
exact Fin.lastCases (by simp) (fun j => by simpa using (hm.2 j).1) i
lemma snoc_exponents_mono {r : ℕ} {m : Fin r → ℝ} (hm : Exponents m) :
Monotone (Fin.snoc (α := fun _ => ℝ) m (1:ℝ)) := by
intro i j hij
induction j using Fin.lastCases with
| last =>
simpa only [Fin.snoc_last] using
(Fin.lastCases (by simp) (fun a => by simpa using (hm.2 a).2.le) i : Fin.snoc (α := fun _ => ℝ) m (1:ℝ) i≤1)
| cast j =>
induction i using Fin.lastCases with
| last => exact False.elim ((not_le_of_gt (Fin.castSucc_lt_last j)) hij)
| cast i =>
simpa only [Fin.snoc_castSucc] using hm.1.monotone (show i≤j from hij)
lemma cons_snoc_exponents_mono {r : ℕ} {m : Fin r → ℝ} (hm : Exponents m) :
Monotone (Fin.cons (α := fun _ => ℝ) (0:ℝ) (Fin.snoc (α := fun _ => ℝ) m (1:ℝ))) := by
intro i j hij
induction i using Fin.cases with
| zero =>
induction j using Fin.cases with
| zero => exact le_refl _
| succ j => simpa using (snoc_exponents_pos hm j).le
| succ i =>
induction j using Fin.cases with
| zero => exact False.elim ((not_le_of_gt (Fin.succ_pos i)) hij)
| succ j =>
simpa only [Fin.cons_succ] using snoc_exponents_mono hm (show i≤j from Fin.succ_le_succ_iff.mp hij)
lemma cons_snoc_exponents_nonneg {r : ℕ} {m : Fin r → ℝ} (hm : Exponents m) :
∀ i,0 ≤ Fin.cons (α := fun _ => ℝ) (0:ℝ) (Fin.snoc (α := fun _ => ℝ) m (1:ℝ)) i := by
intro i
exact Fin.cases (by simp) (fun j => by simpa using (snoc_exponents_pos hm j).le) i
end DilutedSpinGlass
end
end OAI

Xet Storage Details

Size:
1.86 kB
·
Xet hash:
8a203b737d1e6b1278b8e2da3ee38fee3e3af674efde5b437dbad4a857b54102

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