cfahlgren1/math / lean /OAI /Geometry /Cannon /Energy /MeshEnergy.lean
cfahlgren1's picture
download
raw
808 Bytes
import Mathlib
import OAI.Geometry.Cannon.Flows.Oscillation
namespace OAI
section
section
section
noncomputable section
section
section
section
section
open Set MeasureTheory
open scoped BigOperators
namespace CannonApprox
open Set Metric CannonCrossEnergy
def meshEnergy {X ι : Type*} [MetricSpace X] [Fintype ι]
(p : ι → X) (r J : ℝ) (F : X → ℝ) (K : Set X) : ℝ := by
classical
exact ∑ i : {i : ι // (ball (p i) (2*r) ∩ K).Nonempty},
(oscillation F (closedBall (p i.val) (J*r)))^2
lemma meshEnergy_nonneg {X ι : Type*} [MetricSpace X] [Fintype ι]
(p : ι → X) (r J : ℝ) (F : X → ℝ) (K : Set X) :
0 ≤ meshEnergy p r J F K := by
classical
exact Finset.sum_nonneg (fun _ _ => sq_nonneg _)
end CannonApprox
end
end
end
end
end
end
end
end
end OAI

Xet Storage Details

Size:
808 Bytes
·
Xet hash:
e7f822b4695298620affb60b462b437aca8139e0121507fae5535baa52810eaa

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