Buckets:
| import Mathlib.Algebra.Order.Chebyshev | |
| import OAI.Combinatorics.Progressions.FixedDensity.OrderedPatternPartition | |
| namespace OAI | |
| section | |
| namespace Erdos3.FixedDensity | |
| open scoped BigOperators | |
| noncomputable def coarseAtomOfFineAtom | |
| {Ω : Type*} [Fintype Ω] [DecidableEq Ω] | |
| (fineUpper coarseUpper : FacePartition Ω) | |
| (b : fineUpper.parts) : | |
| coarseUpper.parts := | |
| partitionAtomAt coarseUpper | |
| (fineUpper.representative b) | |
| noncomputable def fineAtomsInCoarseAtom | |
| {Ω : Type*} [Fintype Ω] [DecidableEq Ω] | |
| (fineUpper coarseUpper : FacePartition Ω) | |
| (a : coarseUpper.parts) : | |
| Finset fineUpper.parts := by | |
| classical | |
| exact | |
| (Finset.univ : Finset fineUpper.parts).filter fun b => | |
| coarseAtomOfFineAtom fineUpper coarseUpper b = a | |
| @[simp] | |
| theorem mem_fineAtomsInCoarseAtom | |
| {Ω : Type*} [Fintype Ω] [DecidableEq Ω] | |
| (fineUpper coarseUpper : FacePartition Ω) | |
| (a : coarseUpper.parts) (b : fineUpper.parts) : | |
| b ∈ fineAtomsInCoarseAtom fineUpper coarseUpper a ↔ | |
| coarseAtomOfFineAtom fineUpper coarseUpper b = a := by | |
| classical | |
| simp [fineAtomsInCoarseAtom] | |
| theorem fineAtom_subset_coarseAtomOfFineAtom | |
| {Ω : Type*} [Fintype Ω] [DecidableEq Ω] | |
| {fineUpper coarseUpper : FacePartition Ω} | |
| (hupper : fineUpper ≤ coarseUpper) | |
| (b : fineUpper.parts) : | |
| b.1 ⊆ | |
| (coarseAtomOfFineAtom fineUpper coarseUpper b).1 := by | |
| have hsubset := | |
| FacePartition.part_subset_of_le hupper | |
| (fineUpper.representative b) | |
| rw [fineUpper.part_representative b] at hsubset | |
| exact hsubset | |
| theorem coarseAtomOfFineAtom_partitionAtomAt | |
| {Ω : Type*} [Fintype Ω] [DecidableEq Ω] | |
| {fineUpper coarseUpper : FacePartition Ω} | |
| (hupper : fineUpper ≤ coarseUpper) | |
| (x : Ω) : | |
| coarseAtomOfFineAtom fineUpper coarseUpper | |
| (partitionAtomAt fineUpper x) = | |
| partitionAtomAt coarseUpper x := by | |
| apply Subtype.ext | |
| have hrepresentative : | |
| fineUpper.representative | |
| (partitionAtomAt fineUpper x) ∈ | |
| coarseUpper.part x := by | |
| apply FacePartition.part_subset_of_le hupper x | |
| exact fineUpper.representative_mem | |
| (partitionAtomAt fineUpper x) | |
| exact coarseUpper.part_eq_of_mem | |
| (coarseUpper.part_mem.2 (Finset.mem_univ x)) | |
| hrepresentative | |
| theorem partitionAtomUnion_fineAtomsInCoarseAtom | |
| {Ω : Type*} [Fintype Ω] [DecidableEq Ω] | |
| {fineUpper coarseUpper : FacePartition Ω} | |
| (hupper : fineUpper ≤ coarseUpper) | |
| (a : coarseUpper.parts) : | |
| partitionAtomUnion fineUpper | |
| (fineAtomsInCoarseAtom fineUpper coarseUpper a) = | |
| a.1 := by | |
| ext x | |
| constructor | |
| · intro hx | |
| obtain ⟨b, hb, hxb⟩ := | |
| (mem_partitionAtomUnion fineUpper | |
| (fineAtomsInCoarseAtom fineUpper coarseUpper a) x).1 hx | |
| have hba : | |
| coarseAtomOfFineAtom fineUpper coarseUpper b = a := | |
| (mem_fineAtomsInCoarseAtom | |
| fineUpper coarseUpper a b).1 hb | |
| rw [← hba] | |
| exact fineAtom_subset_coarseAtomOfFineAtom | |
| hupper b hxb | |
| · intro hx | |
| apply | |
| (mem_partitionAtomUnion fineUpper | |
| (fineAtomsInCoarseAtom fineUpper coarseUpper a) x).2 | |
| refine ⟨partitionAtomAt fineUpper x, ?_, ?_⟩ | |
| · apply | |
| (mem_fineAtomsInCoarseAtom | |
| fineUpper coarseUpper a | |
| (partitionAtomAt fineUpper x)).2 | |
| rw [coarseAtomOfFineAtom_partitionAtomAt | |
| hupper x] | |
| exact | |
| (partitionAtomAt_eq_iff_mem | |
| coarseUpper x a).2 hx | |
| · exact fineUpper.mem_part (Finset.mem_univ x) | |
| theorem partitionAtomIndicator_eq_sum_fineAtomsInCoarseAtom | |
| {Ω : Type*} [Fintype Ω] [DecidableEq Ω] | |
| {fineUpper coarseUpper : FacePartition Ω} | |
| (hupper : fineUpper ≤ coarseUpper) | |
| (a : coarseUpper.parts) (x : Ω) : | |
| partitionAtomIndicator coarseUpper a x = | |
| ∑ b ∈ fineAtomsInCoarseAtom | |
| fineUpper coarseUpper a, | |
| partitionAtomIndicator fineUpper b x := by | |
| rw [← finsetIndicator_partitionAtomUnion | |
| fineUpper | |
| (fineAtomsInCoarseAtom fineUpper coarseUpper a) x] | |
| unfold partitionAtomIndicator | |
| rw [partitionAtomUnion_fineAtomsInCoarseAtom | |
| hupper a] | |
| theorem partitionAtomIndicator_eq_sum_fineAtomsInCoarseAtom_fun | |
| {Ω : Type*} [Fintype Ω] [DecidableEq Ω] | |
| {fineUpper coarseUpper : FacePartition Ω} | |
| (hupper : fineUpper ≤ coarseUpper) | |
| (a : coarseUpper.parts) : | |
| partitionAtomIndicator coarseUpper a = | |
| fun x => | |
| ∑ b ∈ fineAtomsInCoarseAtom | |
| fineUpper coarseUpper a, | |
| partitionAtomIndicator fineUpper b x := by | |
| funext x | |
| exact partitionAtomIndicator_eq_sum_fineAtomsInCoarseAtom | |
| hupper a x | |
| theorem card_fineAtomsInCoarseAtom_le_complexity | |
| {Ω : Type*} [Fintype Ω] [DecidableEq Ω] | |
| (fineUpper coarseUpper : FacePartition Ω) | |
| (a : coarseUpper.parts) : | |
| (fineAtomsInCoarseAtom fineUpper coarseUpper a).card ≤ | |
| FacePartition.complexity fineUpper := by | |
| classical | |
| calc | |
| (fineAtomsInCoarseAtom | |
| fineUpper coarseUpper a).card ≤ | |
| (Finset.univ : Finset fineUpper.parts).card := | |
| Finset.card_le_card (Finset.subset_univ _) | |
| _ = FacePartition.complexity fineUpper := by | |
| simp [FacePartition.complexity] | |
| theorem conditionalMean_finset_sum | |
| {Ω ι : Type*} [Fintype Ω] [DecidableEq Ω] | |
| (P : FacePartition Ω) (s : Finset ι) | |
| (f : ι → Ω → ℝ) (x : Ω) : | |
| conditionalMean P | |
| (fun y => ∑ i ∈ s, f i y) x = | |
| ∑ i ∈ s, conditionalMean P (f i) x := by | |
| unfold conditionalMean | |
| exact Finset.expect_sum_comm (P.part x) s | |
| (fun y i => f i y) | |
| theorem FaceRegularityState.faceCutCorrelation_finset_sum | |
| {G ι : Type*} [Fintype G] [DecidableEq G] | |
| {r : ℕ} | |
| (S : FaceRegularityState (Fin r → G)) | |
| (s : Finset ι) | |
| (f : ι → (Fin r → G) → ℝ) | |
| (u : CutTestFamily G r) : | |
| S.faceCutCorrelation | |
| (fun x => ∑ i ∈ s, f i x) u = | |
| ∑ i ∈ s, S.faceCutCorrelation (f i) u := by | |
| unfold FaceRegularityState.faceCutCorrelation | |
| calc | |
| mean (fun x => | |
| S.residual (fun y => ∑ i ∈ s, f i y) x * | |
| cutTestProduct u x) = | |
| mean (fun x => | |
| ∑ i ∈ s, | |
| S.residual (f i) x * | |
| cutTestProduct u x) := by | |
| apply congrArg mean | |
| funext x | |
| unfold FaceRegularityState.residual | |
| FaceRegularityState.structured | |
| rw [conditionalMean_finset_sum] | |
| rw [← Finset.sum_sub_distrib, Finset.sum_mul] | |
| _ = | |
| ∑ i ∈ s, | |
| mean (fun x => | |
| S.residual (f i) x * | |
| cutTestProduct u x) := | |
| mean_finset_sum s | |
| (fun i x => | |
| S.residual (f i) x * | |
| cutTestProduct u x) | |
| _ = ∑ i ∈ s, S.faceCutCorrelation (f i) u := by | |
| rfl | |
| theorem FaceRegularityState.booleanCutCorrelation_finset_sum | |
| {Ω ι : Type*} [Fintype Ω] [DecidableEq Ω] | |
| (S : FaceRegularityState Ω) | |
| (s : Finset ι) (f : ι → Ω → ℝ) | |
| (A : BooleanCutTest Ω) : | |
| S.booleanCutCorrelation | |
| (fun x => ∑ i ∈ s, f i x) A = | |
| ∑ i ∈ s, S.booleanCutCorrelation (f i) A := by | |
| unfold FaceRegularityState.booleanCutCorrelation | |
| calc | |
| mean (fun x => | |
| S.residual (fun y => ∑ i ∈ s, f i y) x * | |
| A.eval x) = | |
| mean (fun x => | |
| ∑ i ∈ s, | |
| S.residual (f i) x * A.eval x) := by | |
| apply congrArg mean | |
| funext x | |
| unfold FaceRegularityState.residual | |
| FaceRegularityState.structured | |
| rw [conditionalMean_finset_sum] | |
| rw [← Finset.sum_sub_distrib, Finset.sum_mul] | |
| _ = | |
| ∑ i ∈ s, | |
| mean (fun x => | |
| S.residual (f i) x * A.eval x) := | |
| mean_finset_sum s | |
| (fun i x => S.residual (f i) x * A.eval x) | |
| _ = | |
| ∑ i ∈ s, | |
| S.booleanCutCorrelation (f i) A := by | |
| rfl | |
| theorem FaceRegularityState.abs_coarseAtom_faceCutCorrelation_le_card_mul | |
| {G : Type*} [Fintype G] [DecidableEq G] | |
| {r : ℕ} | |
| (S : FaceRegularityState (Fin r → G)) | |
| {fineUpper coarseUpper : | |
| FacePartition (Fin r → G)} | |
| (hupper : fineUpper ≤ coarseUpper) | |
| (a : coarseUpper.parts) | |
| {ε : ℝ} | |
| (hregular : | |
| ∀ b : fineUpper.parts, | |
| S.IsFaceCutRegular | |
| (partitionAtomIndicator fineUpper b) ε) | |
| (u : CutTestFamily G r) | |
| (hu : IsBoundedCutTest u) : | |
| |S.faceCutCorrelation | |
| (partitionAtomIndicator coarseUpper a) u| ≤ | |
| ((fineAtomsInCoarseAtom | |
| fineUpper coarseUpper a).card : ℝ) * ε := by | |
| rw [partitionAtomIndicator_eq_sum_fineAtomsInCoarseAtom_fun | |
| hupper a, | |
| S.faceCutCorrelation_finset_sum] | |
| calc | |
| |∑ b ∈ fineAtomsInCoarseAtom fineUpper coarseUpper a, | |
| S.faceCutCorrelation | |
| (partitionAtomIndicator fineUpper b) u| ≤ | |
| ∑ b ∈ fineAtomsInCoarseAtom fineUpper coarseUpper a, | |
| |S.faceCutCorrelation | |
| (partitionAtomIndicator fineUpper b) u| := | |
| Finset.abs_sum_le_sum_abs _ _ | |
| _ ≤ | |
| ∑ _b ∈ fineAtomsInCoarseAtom | |
| fineUpper coarseUpper a, ε := by | |
| apply Finset.sum_le_sum | |
| intro b _ | |
| exact hregular b u hu | |
| _ = | |
| ((fineAtomsInCoarseAtom | |
| fineUpper coarseUpper a).card : ℝ) * ε := by | |
| simp | |
| theorem FaceRegularityState.abs_coarseAtom_booleanCutCorrelation_le_card_mul | |
| {Ω : Type*} [Fintype Ω] [DecidableEq Ω] | |
| (S : FaceRegularityState Ω) | |
| {fineUpper coarseUpper : FacePartition Ω} | |
| (hupper : fineUpper ≤ coarseUpper) | |
| (a : coarseUpper.parts) | |
| (A : BooleanCutTest Ω) | |
| {ε : ℝ} | |
| (hregular : | |
| ∀ b : fineUpper.parts, | |
| |S.booleanCutCorrelation | |
| (partitionAtomIndicator fineUpper b) A| ≤ ε) | |
| : | |
| |S.booleanCutCorrelation | |
| (partitionAtomIndicator coarseUpper a) A| ≤ | |
| ((fineAtomsInCoarseAtom | |
| fineUpper coarseUpper a).card : ℝ) * ε := by | |
| rw [partitionAtomIndicator_eq_sum_fineAtomsInCoarseAtom_fun | |
| hupper a, | |
| S.booleanCutCorrelation_finset_sum] | |
| calc | |
| |∑ b ∈ fineAtomsInCoarseAtom fineUpper coarseUpper a, | |
| S.booleanCutCorrelation | |
| (partitionAtomIndicator fineUpper b) A| ≤ | |
| ∑ b ∈ fineAtomsInCoarseAtom fineUpper coarseUpper a, | |
| |S.booleanCutCorrelation | |
| (partitionAtomIndicator fineUpper b) A| := | |
| Finset.abs_sum_le_sum_abs _ _ | |
| _ ≤ | |
| ∑ _b ∈ fineAtomsInCoarseAtom | |
| fineUpper coarseUpper a, ε := by | |
| apply Finset.sum_le_sum | |
| intro b _ | |
| exact hregular b | |
| _ = | |
| ((fineAtomsInCoarseAtom | |
| fineUpper coarseUpper a).card : ℝ) * ε := by | |
| simp | |
| theorem abs_orderedCoarseUpperAtom_faceCutCorrelation_le_card_mul | |
| {G : Type*} [Fintype G] [DecidableEq G] | |
| {k j : ℕ} | |
| (lower : OrderedFacePartitionSystem G k j) | |
| (fineUpper coarseUpper : | |
| OrderedFacePartitionSystem G k (j + 1)) | |
| (hupper : | |
| OrderedFacePartitionRefines fineUpper coarseUpper) | |
| {ε : ℝ} | |
| (hregular : | |
| IsPreliminaryOrderedRegular lower fineUpper ε) | |
| (e : OrderedFace k (j + 1)) | |
| (a : (coarseUpper e).parts) | |
| (u : CutTestFamily G (j + 1)) | |
| (hu : IsBoundedCutTest u) : | |
| |(⟨orderedBoundaryPartition lower e⟩ : | |
| FaceRegularityState (Fin (j + 1) → G)).faceCutCorrelation | |
| (partitionAtomIndicator (coarseUpper e) a) u| ≤ | |
| ((fineAtomsInCoarseAtom | |
| (fineUpper e) (coarseUpper e) a).card : ℝ) * ε := by | |
| apply | |
| FaceRegularityState.abs_coarseAtom_faceCutCorrelation_le_card_mul | |
| (⟨orderedBoundaryPartition lower e⟩ : | |
| FaceRegularityState (Fin (j + 1) → G)) | |
| (hupper e) a | |
| · intro b | |
| exact (hregular.toBounded) e b | |
| · exact hu | |
| theorem abs_orderedCoarseUpperAtom_faceCutCorrelation_le_complexity_mul | |
| {G : Type*} [Fintype G] [DecidableEq G] | |
| {k j : ℕ} | |
| (lower : OrderedFacePartitionSystem G k j) | |
| (fineUpper coarseUpper : | |
| OrderedFacePartitionSystem G k (j + 1)) | |
| (hupper : | |
| OrderedFacePartitionRefines fineUpper coarseUpper) | |
| {ε : ℝ} (hε : 0 ≤ ε) | |
| (hregular : | |
| IsPreliminaryOrderedRegular lower fineUpper ε) | |
| (e : OrderedFace k (j + 1)) | |
| (a : (coarseUpper e).parts) | |
| (u : CutTestFamily G (j + 1)) | |
| (hu : IsBoundedCutTest u) : | |
| |(⟨orderedBoundaryPartition lower e⟩ : | |
| FaceRegularityState (Fin (j + 1) → G)).faceCutCorrelation | |
| (partitionAtomIndicator (coarseUpper e) a) u| ≤ | |
| (FacePartition.complexity (fineUpper e) : ℝ) * ε := by | |
| exact le_trans | |
| (abs_orderedCoarseUpperAtom_faceCutCorrelation_le_card_mul | |
| lower fineUpper coarseUpper hupper hregular e a u hu) | |
| (mul_le_mul_of_nonneg_right | |
| (Nat.cast_le.mpr | |
| (card_fineAtomsInCoarseAtom_le_complexity | |
| (fineUpper e) (coarseUpper e) a)) | |
| hε) | |
| theorem IsPreliminaryOrderedRegular.coarseUpper | |
| {G : Type*} [Fintype G] [DecidableEq G] | |
| {k j : ℕ} | |
| (lower : OrderedFacePartitionSystem G k j) | |
| (fineUpper coarseUpper : | |
| OrderedFacePartitionSystem G k (j + 1)) | |
| (hupper : | |
| OrderedFacePartitionRefines fineUpper coarseUpper) | |
| {ε : ℝ} (hε : 0 ≤ ε) | |
| (hregular : | |
| IsPreliminaryOrderedRegular lower fineUpper ε) | |
| (M : ℕ) | |
| (hcomplexity : | |
| ∀ e, FacePartition.complexity (fineUpper e) ≤ M) : | |
| IsPreliminaryOrderedRegular | |
| lower coarseUpper ((M : ℝ) * ε) := by | |
| intro e a b | |
| have hcard := | |
| FaceRegularityState.abs_coarseAtom_booleanCutCorrelation_le_card_mul | |
| (⟨orderedBoundaryPartition lower e⟩ : | |
| FaceRegularityState (Fin (j + 1) → G)) | |
| (hupper e) a | |
| (boundaryBooleanCutSupport b) | |
| (fun c => hregular e c b) | |
| exact le_trans hcard | |
| (mul_le_mul_of_nonneg_right | |
| (Nat.cast_le.mpr | |
| ((card_fineAtomsInCoarseAtom_le_complexity | |
| (fineUpper e) (coarseUpper e) a).trans | |
| (hcomplexity e))) | |
| hε) | |
| theorem atomBoundaryDefect_coarseAtom_eq_sum_fineAtoms | |
| {Ω : Type*} [Fintype Ω] [DecidableEq Ω] | |
| (fineBoundary coarseBoundary : | |
| FacePartition Ω) | |
| {fineUpper coarseUpper : FacePartition Ω} | |
| (hupper : fineUpper ≤ coarseUpper) | |
| (a : coarseUpper.parts) (x : Ω) : | |
| atomBoundaryDefect | |
| fineBoundary coarseBoundary coarseUpper a x = | |
| ∑ b ∈ fineAtomsInCoarseAtom | |
| fineUpper coarseUpper a, | |
| atomBoundaryDefect | |
| fineBoundary coarseBoundary fineUpper b x := by | |
| unfold atomBoundaryDefect | |
| rw [partitionAtomIndicator_eq_sum_fineAtomsInCoarseAtom_fun | |
| hupper a] | |
| rw [conditionalMean_finset_sum, | |
| conditionalMean_finset_sum, | |
| ← Finset.sum_sub_distrib] | |
| theorem atomBoundaryDefect_coarseAtom_sq_le_card_mul_sum | |
| {Ω : Type*} [Fintype Ω] [DecidableEq Ω] | |
| (fineBoundary coarseBoundary : | |
| FacePartition Ω) | |
| {fineUpper coarseUpper : FacePartition Ω} | |
| (hupper : fineUpper ≤ coarseUpper) | |
| (a : coarseUpper.parts) (x : Ω) : | |
| atomBoundaryDefect | |
| fineBoundary coarseBoundary coarseUpper a x ^ 2 ≤ | |
| ((fineAtomsInCoarseAtom | |
| fineUpper coarseUpper a).card : ℝ) * | |
| ∑ b ∈ fineAtomsInCoarseAtom | |
| fineUpper coarseUpper a, | |
| atomBoundaryDefect | |
| fineBoundary coarseBoundary fineUpper b x ^ 2 := by | |
| rw [atomBoundaryDefect_coarseAtom_eq_sum_fineAtoms | |
| fineBoundary coarseBoundary hupper a x] | |
| simpa using | |
| (sq_sum_le_card_mul_sum_sq | |
| (s := fineAtomsInCoarseAtom | |
| fineUpper coarseUpper a) | |
| (f := fun b => | |
| atomBoundaryDefect | |
| fineBoundary coarseBoundary fineUpper b x)) | |
| theorem mean_atomBoundaryDefect_coarseAtom_sq_le_card_mul_sum | |
| {Ω : Type*} [Fintype Ω] [DecidableEq Ω] | |
| (fineBoundary coarseBoundary : | |
| FacePartition Ω) | |
| {fineUpper coarseUpper : FacePartition Ω} | |
| (hupper : fineUpper ≤ coarseUpper) | |
| (a : coarseUpper.parts) : | |
| mean (fun x => | |
| atomBoundaryDefect | |
| fineBoundary coarseBoundary coarseUpper a x ^ 2) ≤ | |
| ((fineAtomsInCoarseAtom | |
| fineUpper coarseUpper a).card : ℝ) * | |
| ∑ b ∈ fineAtomsInCoarseAtom | |
| fineUpper coarseUpper a, | |
| mean (fun x => | |
| atomBoundaryDefect | |
| fineBoundary coarseBoundary fineUpper b x ^ 2) := by | |
| calc | |
| mean (fun x => | |
| atomBoundaryDefect | |
| fineBoundary coarseBoundary coarseUpper a x ^ 2) ≤ | |
| mean (fun x => | |
| ((fineAtomsInCoarseAtom | |
| fineUpper coarseUpper a).card : ℝ) * | |
| ∑ b ∈ fineAtomsInCoarseAtom | |
| fineUpper coarseUpper a, | |
| atomBoundaryDefect | |
| fineBoundary coarseBoundary fineUpper b x ^ 2) := | |
| mean_mono fun x => | |
| atomBoundaryDefect_coarseAtom_sq_le_card_mul_sum | |
| fineBoundary coarseBoundary hupper a x | |
| _ = | |
| ((fineAtomsInCoarseAtom | |
| fineUpper coarseUpper a).card : ℝ) * | |
| mean (fun x => | |
| ∑ b ∈ fineAtomsInCoarseAtom | |
| fineUpper coarseUpper a, | |
| atomBoundaryDefect | |
| fineBoundary coarseBoundary fineUpper b x ^ 2) := | |
| mean_smul _ _ | |
| _ = | |
| ((fineAtomsInCoarseAtom | |
| fineUpper coarseUpper a).card : ℝ) * | |
| ∑ b ∈ fineAtomsInCoarseAtom | |
| fineUpper coarseUpper a, | |
| mean (fun x => | |
| atomBoundaryDefect | |
| fineBoundary coarseBoundary fineUpper b x ^ 2) := by | |
| rw [mean_finset_sum] | |
| theorem sum_fineAtomsInCoarseAtom | |
| {Ω : Type*} [Fintype Ω] [DecidableEq Ω] | |
| (fineUpper coarseUpper : FacePartition Ω) | |
| (F : fineUpper.parts → ℝ) : | |
| ∑ a : coarseUpper.parts, | |
| ∑ b ∈ fineAtomsInCoarseAtom | |
| fineUpper coarseUpper a, F b = | |
| ∑ b : fineUpper.parts, F b := by | |
| classical | |
| simpa [fineAtomsInCoarseAtom] using | |
| (Finset.sum_fiberwise | |
| (Finset.univ : Finset fineUpper.parts) | |
| (coarseAtomOfFineAtom fineUpper coarseUpper) F) | |
| theorem partitionAtomEnergy_sub_coarseUpper_le_complexity_mul_fineUpper | |
| {Ω : Type*} [Fintype Ω] [DecidableEq Ω] | |
| {fineBoundary coarseBoundary : | |
| FacePartition Ω} | |
| (hboundary : fineBoundary ≤ coarseBoundary) | |
| {fineUpper coarseUpper : FacePartition Ω} | |
| (hupper : fineUpper ≤ coarseUpper) : | |
| partitionAtomEnergy fineBoundary coarseUpper - | |
| partitionAtomEnergy coarseBoundary coarseUpper ≤ | |
| (FacePartition.complexity fineUpper : ℝ) * | |
| (partitionAtomEnergy fineBoundary fineUpper - | |
| partitionAtomEnergy coarseBoundary fineUpper) := by | |
| rw [partitionAtomEnergy_sub_eq_sum_mean_sq | |
| hboundary coarseUpper, | |
| partitionAtomEnergy_sub_eq_sum_mean_sq | |
| hboundary fineUpper] | |
| change | |
| (∑ a : coarseUpper.parts, | |
| mean (fun x => | |
| atomBoundaryDefect | |
| fineBoundary coarseBoundary coarseUpper a x ^ 2)) ≤ | |
| (FacePartition.complexity fineUpper : ℝ) * | |
| ∑ b : fineUpper.parts, | |
| mean (fun x => | |
| atomBoundaryDefect | |
| fineBoundary coarseBoundary fineUpper b x ^ 2) | |
| calc | |
| (∑ a : coarseUpper.parts, | |
| mean (fun x => | |
| atomBoundaryDefect | |
| fineBoundary coarseBoundary coarseUpper a x ^ 2)) ≤ | |
| ∑ a : coarseUpper.parts, | |
| (FacePartition.complexity fineUpper : ℝ) * | |
| ∑ b ∈ fineAtomsInCoarseAtom | |
| fineUpper coarseUpper a, | |
| mean (fun x => | |
| atomBoundaryDefect | |
| fineBoundary coarseBoundary fineUpper b x ^ 2) := by | |
| apply Finset.sum_le_sum | |
| intro a _ | |
| exact le_trans | |
| (mean_atomBoundaryDefect_coarseAtom_sq_le_card_mul_sum | |
| fineBoundary coarseBoundary hupper a) | |
| (mul_le_mul_of_nonneg_right | |
| (Nat.cast_le.mpr | |
| (card_fineAtomsInCoarseAtom_le_complexity | |
| fineUpper coarseUpper a)) | |
| (Finset.sum_nonneg fun b _ => | |
| mean_nonneg fun x => sq_nonneg _)) | |
| _ = | |
| (FacePartition.complexity fineUpper : ℝ) * | |
| ∑ a : coarseUpper.parts, | |
| ∑ b ∈ fineAtomsInCoarseAtom | |
| fineUpper coarseUpper a, | |
| mean (fun x => | |
| atomBoundaryDefect | |
| fineBoundary coarseBoundary fineUpper b x ^ 2) := by | |
| rw [Finset.mul_sum] | |
| _ = | |
| (FacePartition.complexity fineUpper : ℝ) * | |
| ∑ b : fineUpper.parts, | |
| mean (fun x => | |
| atomBoundaryDefect | |
| fineBoundary coarseBoundary fineUpper b x ^ 2) := by | |
| rw [sum_fineAtomsInCoarseAtom] | |
| theorem orderedAtomEnergy_sub_coarseUpper_le_complexity_mul_fineUpper | |
| {G : Type*} [Fintype G] [DecidableEq G] | |
| {k j : ℕ} | |
| {fineLower coarseLower : | |
| OrderedFacePartitionSystem G k j} | |
| (hlower : | |
| OrderedFacePartitionRefines fineLower coarseLower) | |
| (e : OrderedFace k (j + 1)) | |
| {fineUpper coarseUpper : | |
| FacePartition (Fin (j + 1) → G)} | |
| (hupper : fineUpper ≤ coarseUpper) : | |
| orderedAtomEnergy fineLower e coarseUpper - | |
| orderedAtomEnergy coarseLower e coarseUpper ≤ | |
| (FacePartition.complexity fineUpper : ℝ) * | |
| (orderedAtomEnergy fineLower e fineUpper - | |
| orderedAtomEnergy coarseLower e fineUpper) := by | |
| exact | |
| partitionAtomEnergy_sub_coarseUpper_le_complexity_mul_fineUpper | |
| (orderedBoundaryPartition_mono hlower e) hupper | |
| namespace OrderedCoarseFineComplex | |
| noncomputable def coarseUpperFaceAtomEnergyGap | |
| {G : Type*} [Fintype G] [DecidableEq G] | |
| {k r : ℕ} | |
| (P : OrderedCoarseFineComplex G k r) | |
| (j : Fin r) (e : OrderedFace k (j.1 + 1)) : ℝ := | |
| orderedAtomEnergy | |
| (P.fine.partition j.castSucc) e | |
| (P.coarse.partition j.succ e) - | |
| orderedAtomEnergy | |
| (P.coarse.partition j.castSucc) e | |
| (P.coarse.partition j.succ e) | |
| theorem coarseUpperFaceAtomEnergyGap_nonneg | |
| {G : Type*} [Fintype G] [DecidableEq G] | |
| {k r : ℕ} | |
| (P : OrderedCoarseFineComplex G k r) | |
| (j : Fin r) (e : OrderedFace k (j.1 + 1)) : | |
| 0 ≤ P.coarseUpperFaceAtomEnergyGap j e := by | |
| apply sub_nonneg.mpr | |
| exact orderedAtomEnergy_mono | |
| (fun f => P.refines j.castSucc f) | |
| e (P.coarse.partition j.succ e) | |
| theorem coarseUpperFaceAtomEnergyGap_le | |
| {G : Type*} [Fintype G] [DecidableEq G] | |
| {k r : ℕ} | |
| (P : OrderedCoarseFineComplex G k r) | |
| (j : Fin r) (e : OrderedFace k (j.1 + 1)) : | |
| P.coarseUpperFaceAtomEnergyGap j e ≤ | |
| (FacePartition.complexity | |
| (P.fine.partition j.succ e) : ℝ) * | |
| P.faceAtomEnergyGap j e := by | |
| exact | |
| orderedAtomEnergy_sub_coarseUpper_le_complexity_mul_fineUpper | |
| (fun f => P.refines j.castSucc f) e | |
| (P.refines j.succ e) | |
| noncomputable def coarseUpperLayerAtomEnergyGap | |
| {G : Type*} [Fintype G] [DecidableEq G] | |
| {k r : ℕ} | |
| (P : OrderedCoarseFineComplex G k r) | |
| (j : Fin r) : ℝ := | |
| orderedLayerAtomEnergy | |
| (P.fine.partition j.castSucc) | |
| (P.coarse.partition j.succ) - | |
| orderedLayerAtomEnergy | |
| (P.coarse.partition j.castSucc) | |
| (P.coarse.partition j.succ) | |
| theorem coarseUpperLayerAtomEnergyGap_eq_sum_face | |
| {G : Type*} [Fintype G] [DecidableEq G] | |
| {k r : ℕ} | |
| (P : OrderedCoarseFineComplex G k r) | |
| (j : Fin r) : | |
| P.coarseUpperLayerAtomEnergyGap j = | |
| ∑ e : OrderedFace k (j.1 + 1), | |
| P.coarseUpperFaceAtomEnergyGap j e := by | |
| unfold coarseUpperLayerAtomEnergyGap | |
| coarseUpperFaceAtomEnergyGap | |
| orderedLayerAtomEnergy | |
| rw [Finset.sum_sub_distrib] | |
| rfl | |
| theorem coarseUpperLayerAtomEnergyGap_le_sum_complexity_mul | |
| {G : Type*} [Fintype G] [DecidableEq G] | |
| {k r : ℕ} | |
| (P : OrderedCoarseFineComplex G k r) | |
| (j : Fin r) : | |
| P.coarseUpperLayerAtomEnergyGap j ≤ | |
| ∑ e : OrderedFace k (j.1 + 1), | |
| (FacePartition.complexity | |
| (P.fine.partition j.succ e) : ℝ) * | |
| P.faceAtomEnergyGap j e := by | |
| rw [P.coarseUpperLayerAtomEnergyGap_eq_sum_face j] | |
| exact Finset.sum_le_sum fun e _ => | |
| P.coarseUpperFaceAtomEnergyGap_le j e | |
| theorem coarseUpperLayerAtomEnergyGap_le | |
| {G : Type*} [Fintype G] [DecidableEq G] | |
| {k r : ℕ} | |
| (P : OrderedCoarseFineComplex G k r) | |
| (j : Fin r) (M : ℕ) | |
| (hcomplexity : | |
| ∀ e : OrderedFace k (j.1 + 1), | |
| FacePartition.complexity | |
| (P.fine.partition j.succ e) ≤ M) : | |
| P.coarseUpperLayerAtomEnergyGap j ≤ | |
| (M : ℝ) * P.layerAtomEnergyGap j := by | |
| rw [P.layerAtomEnergyGap_eq_sum_face j] | |
| calc | |
| P.coarseUpperLayerAtomEnergyGap j ≤ | |
| ∑ e : OrderedFace k (j.1 + 1), | |
| (FacePartition.complexity | |
| (P.fine.partition j.succ e) : ℝ) * | |
| P.faceAtomEnergyGap j e := | |
| P.coarseUpperLayerAtomEnergyGap_le_sum_complexity_mul j | |
| _ ≤ | |
| ∑ e : OrderedFace k (j.1 + 1), | |
| (M : ℝ) * P.faceAtomEnergyGap j e := by | |
| apply Finset.sum_le_sum | |
| intro e _ | |
| exact mul_le_mul_of_nonneg_right | |
| (Nat.cast_le.mpr (hcomplexity e)) | |
| (P.faceAtomEnergyGap_nonneg j e) | |
| _ = | |
| (M : ℝ) * | |
| ∑ e : OrderedFace k (j.1 + 1), | |
| P.faceAtomEnergyGap j e := by | |
| rw [Finset.mul_sum] | |
| theorem preliminaryRegular_coarseUpper | |
| {G : Type*} [Fintype G] [DecidableEq G] | |
| {k r : ℕ} | |
| (P : OrderedCoarseFineComplex G k r) | |
| (ε : OrderedRegularityTolerance r) | |
| (hregular : | |
| IsFullyPreliminaryOrderedRegular P.fine ε) | |
| (j : Fin r) (M : ℕ) | |
| (hε : 0 ≤ ε j) | |
| (hcomplexity : | |
| ∀ e : OrderedFace k (j.1 + 1), | |
| FacePartition.complexity | |
| (P.fine.partition j.succ e) ≤ M) : | |
| IsPreliminaryOrderedRegular | |
| (P.fine.partition j.castSucc) | |
| (P.coarse.partition j.succ) | |
| ((M : ℝ) * ε j) := by | |
| exact (hregular j).coarseUpper | |
| (P.fine.partition j.castSucc) | |
| (P.fine.partition j.succ) | |
| (P.coarse.partition j.succ) | |
| (fun e => P.refines j.succ e) | |
| hε M hcomplexity | |
| end OrderedCoarseFineComplex | |
| end Erdos3.FixedDensity | |
| end | |
| end OAI | |
Xet Storage Details
- Size:
- 25.8 kB
- Xet hash:
- 823c8411e3661a5f06189d7e89fc81fda41fceca2839c4499ec65ab04ea37a96
·
Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.