roseking's picture
Add lean source and binary files (part 66)
8e4d533 verified
Raw History Blame Contribute Delete
6.29 kB
35
lemma boundarySucc_sub {k : ℕ} (T U : Functional X (k+1)) :
    boundarySucc (T-U) = boundarySucc T - boundarySucc U := by
proof · 2 lines
  funext b π
  by_cases h : Admissible b π <;> simp [boundarySucc,h]
41
lemma IsIntegral.boundarySucc {k : ℕ} {T : Functional X (k+1)} (hT : IsIntegral (k+1) T) :
    IsIntegral k (boundarySucc T) := by
proof · 6 lines
  cases k with
  | zero => exact hT.2.2
  | succ k =>
    refine ⟨hT.2.2.1,hT.2.2.2,?_,?_⟩ <;> rw [Foundations.boundarySucc_boundarySucc hT.1]
    · exact isMetricCurrent_zero k
    · exact integerRectifiable_zero k
50
lemma IsIntegral.sub [Nonempty X] {k : ℕ} {T U : Functional X k}
    (hT : IsIntegral k T) (hU : IsIntegral k U) : IsIntegral k (T-U) := by
proof · 12 lines
  cases k with
  | zero =>
    change IsMetricCurrent (T-U) ∧ IntegerRectifiable (T-U)
    simpa only [sub_eq_add_neg] using
      And.intro (hT.1.add hU.1.neg) (hT.2.add hT.1 hU.1.neg hU.2.neg)
  | succ k =>
    have hmain : IsMetricCurrent (T-U) ∧ IntegerRectifiable (T-U) := by
      simpa only [sub_eq_add_neg] using
        And.intro (hT.1.add hU.1.neg) (hT.2.1.add hT.1 hU.1.neg hU.2.1.neg)
    refine ⟨hmain.1,hmain.2,?_,?_⟩ <;> rw [boundarySucc_sub,sub_eq_add_neg]
    · exact hT.2.2.1.add hU.2.2.1.neg
    · exact hT.2.2.2.add hT.2.2.1 hU.2.2.1.neg hU.2.2.2.neg
67
lemma restrictCurrent_zero_of_eq_zero {k : ℕ} {T : Functional X k}
    (hT : IsMetricCurrent T) (hzero : T = 0) {E : Set X} (hE : MeasurableSet E) :
    restrictCurrent hT E = 0 := by
proof · 9 lines
  apply (restrictCurrent_isMetricCurrent hT hE).eq_zero_of_mass_eq_zero
  apply le_antisymm _ (mass_nonneg _)
  rw [restriction_mass hT hE]
  have hm := ENNReal.toReal_mono (measure_ne_top (currentMassMeasure hT) univ)
    (measure_mono (subset_univ E) : currentMassMeasure hT E ≤ currentMassMeasure hT univ)
  change (currentMassMeasure hT).real E ≤ (currentMassMeasure hT).real univ at hm
  rw [currentMassMeasure_total] at hm
  have hz : mass T = 0 := by rw [hzero]; exact mass_zero k
  exact hm.trans_eq hz
80
lemma boundary_superlevelSlice {k : ℕ} {T : Functional X (k+1+1)}
    (hT : IsMetricCurrent T) (hB : IsMetricCurrent (boundarySucc T))
    (hBB : IsMetricCurrent (boundarySucc (boundarySucc T)))
    {u : X → ℝ} (hu : BoundedLip u) (t : ℝ) :
    boundarySucc (superlevelSlice hT hB u t) = -superlevelSlice hB hBB u t := by
proof · 7 lines
  have hE : MeasurableSet {x | t < u x} := measurableSet_lt measurable_const hu.continuous.measurable
  have hzero := Foundations.boundarySucc_boundarySucc hT
  have hrzero := restrictCurrent_zero_of_eq_zero hBB hzero hE
  unfold superlevelSlice
  rw [boundarySucc_sub,Foundations.boundarySucc_boundarySucc (restrictCurrent_isMetricCurrent hT hE),hrzero]
  change (boundarySucc (restrictCurrent hB {x | t < u x}) - 0) = -(0 - boundarySucc (restrictCurrent hB {x | t < u x}))
  simp only [sub_zero,zero_sub,neg_neg]
93
lemma ae_superlevelSlice_integral [Nonempty X] {k : ℕ} {T : Functional X (k+1)}
    (hT : IsIntegral (k+1) T) (hX : IsCAT0 X)
    {u : X → ℝ} {K : ℝ≥0} (hK : LipschitzWith K u) :
    ∀ᵐ t : ℝ, IsIntegral k (superlevelSlice hT.1 hT.2.2.1 u t) := by
proof · 12 lines
  obtain ⟨G,_,_,_,hrest⟩ := ae_integral_restrict hT hX hK
  cases k with
  | zero =>
    filter_upwards [hrest] with t ht
    have hE : MeasurableSet {x | t < u x} := measurableSet_lt measurable_const hK.continuous.measurable
    have hB : IsIntegral 0 (restrictCurrent hT.2.2.1 {x | t < u x}) :=
      ⟨restrictCurrent_isMetricCurrent hT.2.2.1 hE,integerRectifiable_restrict hT.2.2.1 hT.2.2.2 hE⟩
    exact hB.sub ht.1.boundarySucc
  | succ k =>
    obtain ⟨H,_,_,_,hBr⟩ := ae_integral_restrict hT.boundarySucc hX hK
    filter_upwards [hrest,hBr] with t ht hbt
    exact hbt.1.sub ht.1.boundarySucc
110
lemma superlevelSlice_normal_coarea_bound [Nonempty X] {k : ℕ} {T : Functional X (k+1+1)}
    (hT : IsIntegral (k+1+1) T) (hX : IsCAT0 X)
    {u : X → ℝ} {K : ℝ≥0} (hK : LipschitzWith K u) :
    ∃ G H : ℝ → ℝ, Integrable G ∧ Integrable H ∧
      (∀ t, 0 ≤ G t) ∧ (∀ t, 0 ≤ H t) ∧
      (∫ t : ℝ, G t) ≤ K*mass T ∧ (∫ t : ℝ, H t) ≤ K*mass (boundarySucc T) ∧
      ∀ᵐ t : ℝ, IsIntegral (k+1) (superlevelSlice hT.1 hT.2.2.1 u t) ∧
        mass (superlevelSlice hT.1 hT.2.2.1 u t) ≤ G t ∧
        mass (boundarySucc (superlevelSlice hT.1 hT.2.2.1 u t)) ≤ H t := by
proof · 13 lines
  have hu : BoundedLip u := ⟨⟨K,hK⟩,by
    obtain ⟨M,hM⟩ := isCompact_univ.exists_bound_of_continuousOn hK.continuous.continuousOn
    exact ⟨M,fun x => by simpa only [Real.norm_eq_abs] using hM x (mem_univ _)⟩⟩
  obtain ⟨G,hG,hG0,hGI,hS⟩ := superlevelSlice_coarea_bound hT hX hK
  obtain ⟨H,hH,hH0,hHI,hBS⟩ := superlevelSlice_coarea_bound hT.boundarySucc hX hK
  refine ⟨G,H,hG,hH,hG0,hH0,hGI,hHI,?_⟩
  filter_upwards [hS,hBS,ae_superlevelSlice_integral hT hX hK] with t ht hbt hIt
  refine ⟨hIt,ht.2.2,?_⟩
  have hBB : IsMetricCurrent (boundarySucc (boundarySucc T)) := by
    rw [Foundations.boundarySucc_boundarySucc hT.1]
    exact isMetricCurrent_zero k
  rw [boundary_superlevelSlice hT.1 hT.2.2.1 hBB hu t,mass_neg]
  exact hbt.2.2