import OAI.Analysis.FreeEntropy.MatrixHeatLaw namespace OAI universe u1 u2 noncomputable section open MeasureTheory ProbabilityTheory Finset Set open scoped ENNReal namespace FiniteEntropySeparation variable {p d : ℕ} theorem normalLaw_rotated_mask_markov {s r : ℝ} (hs : 0 h (Or.inl hh)) have hb : ‖coordinateMask (blockMask f) (rotateCoordinates U g)‖ h (Or.inr hh)) apply hg apply blockEvent_add_mem (A := 2*Real.sqrt ((p:ℝ)*d)) (B := 2*Real.sqrt (v*p*d)) _ a g ha hn.le f hf U _ hb.le · have hh : Real.sqrt ((p:ℝ)*d)≤Real.sqrt (v*p*d) := Real.sqrt_le_sqrt (by nlinarith) linarith · linarith have hEc : (normalLaw (t/d)) Eᶜ≤ENNReal.ofReal (1/2:ℝ) := by apply (measure_mono hsub).trans ((measure_union_le _ _).trans _) calc _ ≤ ENNReal.ofReal (3/8:ℝ)+ENNReal.ofReal (1/8:ℝ) := add_le_add hN hB _ = _ := by rw [← ENNReal.ofReal_add (by norm_num : (0:ℝ)≤3/8) (by norm_num : (0:ℝ)≤1/8)]; congr 1; norm_num have hm : MeasurableSet E := (blockEvent_isClosed hd _ _).measurableSet.preimage (by fun_prop : Measurable (fun g : MatrixCoordinates (p+1) d => a+g)) have hh := measure_add_measure_compl hm (μ := normalLaw (t/d)) rw [measure_univ] at hh have hle : (1:ℝ≥0∞)≤(normalLaw (t/d)) E+ENNReal.ofReal (1/2:ℝ) := by rw [← hh]; exact add_le_add (le_refl _) hEc have hfE : (normalLaw (t/d)) E≠⊤ := measure_ne_top _ _ have htoreal := (ENNReal.toReal_le_toReal (by simp) (by finiteness)).mpr hle rw [ENNReal.toReal_add hfE (by finiteness)] at htoreal change ENNReal.ofReal (1/2:ℝ)≤(normalLaw (t/d)) E apply (ENNReal.ofReal_le_iff_le_toReal hfE).mpr norm_num only [ENNReal.toReal_one, ENNReal.toReal_ofReal (by norm_num : (0:ℝ)≤1/2)] at htoreal linarith end FiniteEntropySeparation end end OAI