File size: 1,993 Bytes
4a56cd6 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 | import OAI.Probability.InvariantIsing.Magnetic.MagneticPopulationCoupling
namespace OAI
/-! The field contribution changes by at most the transportation cost
when an interior profile is averaged across field populations. -/
noncomputable section
open scoped BigOperators
namespace InvariantIsing
lemma transportedMagnetization_field_term {A B : Type*} [Fintype A] [Fintype B]
(w : A β B β β) (Ξ΄ c : B β β) (mag : A β β) (hΞ΄ : β b, 0 < Ξ΄ b) :
(β b, Ξ΄ b*c b*transportedMagnetization w Ξ΄ mag b)=
β a, β b, w a b*c b*mag a := by
calc
_ = β b, c b*(β a, w a b*mag a) := by
apply Finset.sum_congr rfl
intro b _
dsimp only [transportedMagnetization]
field_simp [(hΞ΄ b).ne']
_ = β b, β a, w a b*c b*mag a := by
simp_rw [Finset.mul_sum]
apply Finset.sum_congr rfl
intro b _
apply Finset.sum_congr rfl
intro a _
ring
_ = _ := Finset.sum_comm
lemma transportedMagnetization_field_cost {A B : Type*} [Fintype A] [Fintype B]
(w : A β B β β) (Ξ³ b : A β β) (Ξ΄ c : B β β) (mag : A β β)
(hw : β a j, 0 β€ w a j) (hΞ΄ : β j, 0 < Ξ΄ j)
(hrow : β a, β j, w a j=Ξ³ a) (hm : β a, |mag a| β€ 1) :
(β a, Ξ³ a*b a*mag a)-(β j, Ξ΄ j*c j*transportedMagnetization w Ξ΄ mag j) β€
β a, β j, w a j* |b a-c j| := by
have hsource : (β a, Ξ³ a*b a*mag a)=β a, β j, w a j*b a*mag a := by
simp_rw [β Finset.sum_mul,hrow]
rw [hsource,transportedMagnetization_field_term w Ξ΄ c mag hΞ΄,β Finset.sum_sub_distrib]
apply Finset.sum_le_sum
intro a _
rw [β Finset.sum_sub_distrib]
apply Finset.sum_le_sum
intro j _
calc
_ = w a j*(b a-c j)*mag a := by ring
_ β€ |w a j*(b a-c j)*mag a| := le_abs_self _
_ = w a j* |b a-c j| * |mag a| := by rw [abs_mul,abs_mul,abs_of_nonneg (hw a j)]
_ β€ _ := mul_le_of_le_one_right (mul_nonneg (hw a j) (abs_nonneg _)) (hm a)
end InvariantIsing
end
end OAI
|