cfahlgren1's picture
download
raw
11.2 kB
import Mathlib
import OAI.Probability.LatticeSurface.Coercivity.SparseAmbient
import OAI.Probability.LatticeSurface.Coercivity.SparseColor
import OAI.Probability.LatticeSurface.Coercivity.SparseEntropy
import OAI.Probability.LatticeSurface.Coercivity.SparseGeodesic
import OAI.Probability.LatticeSurface.Coercivity.SparseGeometry
import OAI.Probability.LatticeSurface.Coercivity.SparseGradients
import OAI.Probability.LatticeSurface.Coercivity.SparseModel
import OAI.Probability.LatticeSurface.Coercivity.SparseParameters
import OAI.Probability.LatticeSurface.Coercivity.SparsePaths
import OAI.Probability.LatticeSurface.Coercivity.SparseProb
import OAI.Probability.LatticeSurface.Coercivity.SparseSeparated
import OAI.Probability.LatticeSurface.Coercivity.SparseWitnessModel
import OAI.Probability.LatticeSurface.Coercivity.ZeroPinnedSparse
import OAI.Probability.LatticeSurface.Convexity.BoundedBase
import OAI.Probability.LatticeSurface.Convexity.BrunnMinkowski
import OAI.Probability.LatticeSurface.Convexity.CubePrekopa
import OAI.Probability.LatticeSurface.Convexity.GradientWindows
import OAI.Probability.LatticeSurface.Convexity.ProductVolume
import OAI.Probability.LatticeSurface.Convexity.QuantileTransport
import OAI.Probability.LatticeSurface.Convexity.RetainedCoordinates
import OAI.Probability.LatticeSurface.Convexity.RetainedShell
import OAI.Probability.LatticeSurface.Convexity.WeightedPrekopa
import OAI.Probability.LatticeSurface.Dynamics.DisplacementInequality
import OAI.Probability.LatticeSurface.Geometry.BlockVolume
import OAI.Probability.LatticeSurface.Geometry.CapCentral
import OAI.Probability.LatticeSurface.Geometry.CapCompact
import OAI.Probability.LatticeSurface.Geometry.CapContract
import OAI.Probability.LatticeSurface.Geometry.CapCoordinates
import OAI.Probability.LatticeSurface.Geometry.CapMatching
import OAI.Probability.LatticeSurface.Geometry.CapOrient
import OAI.Probability.LatticeSurface.Geometry.CapReflection
import OAI.Probability.LatticeSurface.Geometry.CapSmall
import OAI.Probability.LatticeSurface.Geometry.CapSplit
import OAI.Probability.LatticeSurface.Geometry.CapUnpin
import OAI.Probability.LatticeSurface.Geometry.CapWeld
import OAI.Probability.LatticeSurface.Geometry.TriangularCover
import OAI.Probability.LatticeSurface.Geometry.TriangularGeometry
import OAI.Probability.LatticeSurface.Moments.ControlledGradients
import OAI.Probability.LatticeSurface.Moments.OrderedGradients
namespace OAI
open Set MeasureTheory Filter
open scoped Topology
noncomputable section
namespace FacetVolume
end FacetVolume
namespace ExtremalEdges
open scoped ENNReal
end ExtremalEdges
noncomputable section
open MeasureTheory Set
open scoped ENNReal
namespace ExtremalEdges
attribute [local instance] Classical.propDecidable
end ExtremalEdges
namespace ExtremalEdges
attribute [local instance] Classical.propDecidable
variable {V : Type*}
end ExtremalEdges
namespace ExtremalEdges
attribute [local instance] Classical.propDecidable
end ExtremalEdges
namespace ExtremalEdges
attribute [local instance] Classical.propDecidable
variable {V : Type*}
end ExtremalEdges
namespace ExtremalEdges
attribute [local instance] Classical.propDecidable
variable {V : Type*}
end ExtremalEdges
namespace ExtremalEdges
attribute [local instance] Classical.propDecidable
variable {V : Type*}
end ExtremalEdges
namespace ExtremalEdges
attribute [local instance] Classical.propDecidable
variable {V : Type*}
end ExtremalEdges
namespace ExtremalEdges
attribute [local instance] Classical.propDecidable
variable {V : Type*}
end ExtremalEdges
namespace ExtremalEdges
attribute [local instance] Classical.propDecidable
variable {V : Type*}
end ExtremalEdges
noncomputable section
namespace ExtremalEdges
open Finset
variable {V I : Type*} [Fintype V] [Fintype I]
attribute [local instance] Classical.propDecidable
end ExtremalEdges
namespace ExtremalEdges
attribute [local instance] Classical.propDecidable
variable {V I : Type*} [Fintype V] [Fintype I]
end ExtremalEdges
namespace ExtremalEdges
attribute [local instance] Classical.propDecidable
end ExtremalEdges
namespace ExtremalEdges
attribute [local instance] Classical.propDecidable
variable {V : Type*} [Fintype V]
end ExtremalEdges
open MeasureTheory
open scoped ENNReal
noncomputable section
namespace TriangularLipschitz
end TriangularLipschitz
namespace SparseBlocks
attribute [local instance] Classical.propDecidable
end SparseBlocks
namespace SparseBlocks
attribute [local instance] Classical.propDecidable
end SparseBlocks
namespace SparseBlocks
attribute [local instance] Classical.propDecidable
end SparseBlocks
namespace ExtremalEdges
attribute [local instance] Classical.propDecidable
end ExtremalEdges
namespace SparseBlocks
attribute [local instance] Classical.propDecidable
end SparseBlocks
namespace SparseBlocks
attribute [local instance] Classical.propDecidable
end SparseBlocks
noncomputable section
open scoped BigOperators
namespace SparsePaths
attribute [local instance] Classical.propDecidable
end SparsePaths
noncomputable section
open scoped BigOperators
namespace SparseWitness
attribute [local instance] Classical.propDecidable
end SparseWitness
noncomputable section
open Set MeasureTheory
open scoped BigOperators
namespace SparseWitness
attribute [local instance] Classical.propDecidable
end SparseWitness
namespace SparseBlocks
attribute [local instance] Classical.propDecidable
end SparseBlocks
namespace SparseBlocks
attribute [local instance] Classical.propDecidable
end SparseBlocks
namespace SparseBlocks
open Filter
open scoped Topology
end SparseBlocks
namespace SparseBlocks
attribute [local instance] Classical.propDecidable
end SparseBlocks
namespace SparseBlocks
attribute [local instance] Classical.propDecidable
end SparseBlocks
namespace SparseBlocks
attribute [local instance] Classical.propDecidable
end SparseBlocks
namespace RetainedShell
open TriangularLipschitz
attribute [local instance] Classical.propDecidable
end RetainedShell
namespace RetainedShell
open TriangularLipschitz
attribute [local instance] Classical.propDecidable
end RetainedShell
namespace RetainedShell
open TriangularLipschitz
end RetainedShell
namespace ProductVolume
universe u v
variable {ι : Type u} [Fintype ι] {J : ι → Type v} [∀ i, Fintype (J i)]
end ProductVolume
namespace RetainedShell
open TriangularLipschitz
attribute [local instance] Classical.propDecidable
end RetainedShell
namespace SparseBlocks
lemma compact_body (V : Finset Vertex) : IsCompact (body V) := by
obtain ⟨B,hVB,hcollar,hc,hp⟩ := exists_ambient V
let e := Homeomorph.piCongrLeft (Y:=fun _ : ExtremalEdges.Free (fixed B V) => ℝ) (indexEquiv B V hVB)
have he : body V=e.symm '' ExtremalEdges.conditionalBody (finiteGraph B) (fixed B V) (fun _ => 0) := by
rw [← body_coordinates B V hVB hcollar]
ext x
constructor
· intro hx;exact ⟨e x,hx,e.symm_apply_apply x⟩
· rintro ⟨y,hy,rfl⟩
change e (e.symm y)∈ExtremalEdges.conditionalBody (finiteGraph B) (fixed B V) (fun _ => 0)
simpa using hy
rw [he]
exact (ExtremalEdges.compact_zeroBody _ hc _ hp).image e.symm.continuous
lemma height_add (V : Finset Vertex) (h k : V → ℝ) (x : Vertex) : height V (h+k) x=height V h x+height V k x := by
classical
by_cases hx : x∈V <;> simp [height,hx]
lemma height_smul (V : Finset Vertex) (c : ℝ) (h : V → ℝ) (x : Vertex) : height V (c • h) x=c*height V h x := by
classical
by_cases hx : x∈V <;> simp [height,hx]
lemma convex_body (V : Finset Vertex) : Convex ℝ (body V) := by
intro h hh k hk a b ha hb hab x y hxy
simp only [height_add,height_smul]
calc
|a*height V h x+b*height V k x-(a*height V h y+b*height V k y)|=
|a*(height V h x-height V h y)+b*(height V k x-height V k y)| := by ring_nf
_ ≤ |a*(height V h x-height V h y)|+|b*(height V k x-height V k y)| := abs_add_le _ _
_ ≤ a*1+b*1 := by rw [abs_mul,abs_mul,abs_of_nonneg ha,abs_of_nonneg hb];gcongr <;> [exact hh x y hxy;exact hk x y hxy]
_ = 1 := by linarith
lemma body_neg_iff (V : Finset Vertex) (h : V → ℝ) : h∈body V ↔ -h∈body V := by
have he (k : V → ℝ) : k∈body V → -k∈body V := by
intro hk x y hxy
have hn (z : Vertex) : height V (-k) z= -height V k z := by
classical
by_cases hz : z∈V <;> simp [height,hz]
simpa only [hn,neg_sub_neg,abs_sub_comm] using hk x y hxy
exact ⟨he h,fun hh => by simpa using he (-h) hh⟩
end SparseBlocks
namespace RetainedShell
open TriangularLipschitz
attribute [local instance] Classical.propDecidable
noncomputable def splitLinear {L : ℕ} (hL : 0<L) (V J : Finset Vertex)
(hf : ∀ z∈J,∀ x∈box L,base L z+x∈V) :
(V → ℝ) ≃ₗ[ℝ] ((retained L V J → ℝ) × (J → Filling L)) where
toEquiv := (split hL V J hf).toEquiv
map_add' h k := by
apply Prod.ext
· ext x
change (split hL V J hf (h+k)).1 x=(split hL V J hf h).1 x+(split hL V J hf k).1 x
simp only [split_fst,Pi.add_apply]
· ext z x
change (split hL V J hf (h+k)).2 z x=(split hL V J hf h).2 z x+(split hL V J hf k).2 z x
simp only [split_snd,Pi.add_apply]
map_smul' c h := by
apply Prod.ext
· ext x
change (split hL V J hf (c • h)).1 x=c • (split hL V J hf h).1 x
simp only [split_fst,Pi.smul_apply]
· ext z x
change (split hL V J hf (c • h)).2 z x=c • (split hL V J hf h).2 z x
simp only [split_snd,Pi.smul_apply]
def retainedBody {L : ℕ} (hL : 0<L) (V J : Finset Vertex)
(hf : ∀ z∈J,∀ x∈box L,base L z+x∈V) := (split hL V J hf).symm ⁻¹' SparseBlocks.body V
lemma retainedBody_eq {L : ℕ} (hL : 0<L) (V J : Finset Vertex)
(hf : ∀ z∈J,∀ x∈box L,base L z+x∈V) :
retainedBody hL V J hf=(split hL V J hf) '' SparseBlocks.body V := by
ext x;change (split hL V J hf).symm x∈SparseBlocks.body V ↔ x∈(split hL V J hf) '' SparseBlocks.body V
constructor
· intro hx;exact ⟨_,hx,(split hL V J hf).apply_symm_apply x⟩
· rintro ⟨y,hy,rfl⟩;simpa using hy
lemma compact_retainedBody {L : ℕ} (hL : 0<L) (V J : Finset Vertex)
(hf : ∀ z∈J,∀ x∈box L,base L z+x∈V) : IsCompact (retainedBody hL V J hf) := by
rw [retainedBody_eq]
exact (SparseBlocks.compact_body V).image (continuous_split hL V J hf)
lemma convex_retainedBody {L : ℕ} (hL : 0<L) (V J : Finset Vertex)
(hf : ∀ z∈J,∀ x∈box L,base L z+x∈V) : Convex ℝ (retainedBody hL V J hf) := by
rw [retainedBody_eq]
exact (SparseBlocks.convex_body V).linear_image (splitLinear hL V J hf).toLinearMap
lemma neg_retainedBody {L : ℕ} (hL : 0<L) (V J : Finset Vertex)
(hf : ∀ z∈J,∀ x∈box L,base L z+x∈V)
(x : (retained L V J → ℝ) × (J → Filling L)) :
x∈retainedBody hL V J hf ↔ -x∈retainedBody hL V J hf := by
change (splitLinear hL V J hf).symm x∈SparseBlocks.body V ↔
(splitLinear hL V J hf).symm (-x)∈SparseBlocks.body V
rw [map_neg]
exact SparseBlocks.body_neg_iff _ _
end RetainedShell
end
end
end
end
end
end
end
end OAI

Xet Storage Details

Size:
11.2 kB
·
Xet hash:
8e18e4b2568258ca746eb23e9f7409e1ca2abb81bdea81d3d84b6d75791a8625

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