File size: 1,962 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 56 57 | import Mathlib
import OAI.Probability.LatticeSurface.Convexity.BoundedBase
import OAI.Probability.LatticeSurface.Geometry.CapReflection
import OAI.Probability.LatticeSurface.Geometry.CapUnpin
namespace OAI
noncomputable section
open MeasureTheory Set
open scoped ENNReal
namespace ExtremalEdges
attribute [local instance] Classical.propDecidable
variable {V : Type*}
lemma volume_coordinate_slices [Fintype V] (pins : Set V) (x : V) (hx : x β pins)
(K : Set (Free pins β β)) (hK : MeasurableSet K) :
volume K = β«β» t : β, volume {h : Free (insert x pins) β β |
(splitCoordinate pins x hx).symm (h,t) β K} := by
have he := (preserving_splitCoordinate pins x hx).symm (splitCoordinate pins x hx)
rw [β he.measure_preimage hK.nullMeasurableSet]
change ((volume : Measure (Free (insert x pins) β β)).prod (volume : Measure β))
((splitCoordinate pins x hx).symm β»ΒΉ' K) = _
exact Measure.prod_apply_symm (hK.preimage (splitCoordinate pins x hx).symm.measurable)
lemma coordinate_restore_update (pins : Set V) (x : V) (hx : x β pins) (b : V β β)
(h : Free (insert x pins) β β) (t : β) (y : V) :
restore pins b ((splitCoordinate pins x hx).symm (h,t)) y =
restore (insert x pins) (Function.update b x t) h y := by
classical
rw [coordinate_restore]
by_cases hy : y = x
Β· subst y
simp [restore]
Β· by_cases hp : y β insert x pins <;> simp [restore, hy, hp]
lemma volume_body_coordinate [Fintype V] (G : SimpleGraph V) (pins : Set V) (b : V β β)
(x : V) (hx : x β pins) :
volume (conditionalBody G pins b) = β«β» t : β,
volume (conditionalBody G (insert x pins) (Function.update b x t)) := by
rw [volume_coordinate_slices pins x hx _ (closed_conditionalBody G pins b).measurableSet]
apply lintegral_congr
intro t
congr 1
ext h
simp only [conditionalBody, mem_ofPred_eq, coordinate_restore_update]
end ExtremalEdges
end
end OAI
|