thurston-lean / Thurston /Core /CoveringAreaPushforward.lean
system's picture
system HF Staff
Sync Lean + ledger from GitHub (6d6513147f03fcdca5249ee06cbaf74ba025e4b0)
55a3af4 verified
Raw History Blame Contribute Delete
57.7 kB

A countable measurable covering with inverse branches carrying target measure lam to source measure ν.

39
structure SheetedCover (H : Y → X) (ν : Measure Y) (lam : Measure X) (ι : Type*) where
body · 12 lines
  sheet : ι → Set Y
  dom : ι → Set X
  branch : ι → X → Y
  measurableSet_sheet : ∀ j, MeasurableSet (sheet j)
  measurableSet_dom : ∀ j, MeasurableSet (dom j)
  measurable_branch : ∀ j, Measurable (branch j)
  disjoint_sheet : Pairwise (Function.onFun Disjoint sheet)
  null_compl : ν (⋃ j, sheet j)ᶜ = 0
  branch_mem : ∀ j, ∀ w ∈ dom j, branch j w ∈ sheet j
  H_branch : ∀ j, ∀ w ∈ dom j, H (branch j w) = w
  branch_H : ∀ j, ∀ z ∈ sheet j, H z ∈ dom j ∧ branch j (H z) = z
  map_branch : ∀ j, (lam.restrict (dom j)).map (branch j) = ν.restrict (sheet j)

Sum over inverse branches of a nonnegative function g : Y → ℝ≥0∞.

56
noncomputable def SheetedCover.fibreSumE (c : SheetedCover H ν lam ι) (g : Y → ℝ≥0∞) (w : X) :
    ℝ≥0∞ :=
body · 1 line
  ∑' j, (c.dom j).indicator (fun w => g (c.branch j w)) w
60
lemma SheetedCover.measure_eq_sum [Countable ι] (c : SheetedCover H ν lam ι) :
    ν = Measure.sum fun j => (lam.restrict (c.dom j)).map (c.branch j) := by
proof · 8 lines
  have h0 : ∀ᵐ z ∂ν, z ∈ ⋃ j, c.sheet j := mem_ae_iff.2 c.null_compl
  calc ν = ν.restrict (⋃ j, c.sheet j) := (Measure.restrict_eq_self_of_ae_mem h0).symm
    _ = Measure.sum fun j => ν.restrict (c.sheet j) :=
        Measure.restrict_iUnion c.disjoint_sheet c.measurableSet_sheet
    _ = Measure.sum fun j => (lam.restrict (c.dom j)).map (c.branch j) := by
        congr 1
        funext j
        exact (c.map_branch j).symm
71
lemma SheetedCover.aemeasurable_map (c : SheetedCover H ν lam ι) {β : Type*} [MeasurableSpace β]
    {f : Y → β} (hf : AEMeasurable f ν) (j : ι) :
    AEMeasurable f ((lam.restrict (c.dom j)).map (c.branch j)) := by
proof · 2 lines
  rw [c.map_branch j]
  exact hf.restrict
77
lemma SheetedCover.lintegral_sheet (c : SheetedCover H ν lam ι) {f : Y → ℝ≥0∞}
    (hf : AEMeasurable f ν) (j : ι) :
    ∫⁻ z, f z ∂((lam.restrict (c.dom j)).map (c.branch j)) =
      ∫⁻ w in c.dom j, f (c.branch j w) ∂lam :=
proof · 1 line
  lintegral_map' (c.aemeasurable_map hf j) (c.measurable_branch j).aemeasurable
83
lemma SheetedCover.indicator_comp_branch (c : SheetedCover H ν lam ι) {β : Type*} [Zero β]
    (g : Y → β) (U : Set X) (j : ι) (w : X) :
    (c.dom j).indicator (fun w => (H ⁻¹' U).indicator g (c.branch j w)) w =
      U.indicator ((c.dom j).indicator fun w => g (c.branch j w)) w := by
proof · 16 lines
  by_cases hw : w ∈ c.dom j
  · have hH := c.H_branch j w hw
    by_cases hU : w ∈ U
    · have h1 : c.branch j w ∈ H ⁻¹' U := by
        rw [Set.mem_preimage, hH]
        exact hU
      rw [Set.indicator_of_mem hw, Set.indicator_of_mem h1, Set.indicator_of_mem hU,
        Set.indicator_of_mem hw]
    · have h1 : c.branch j w ∉ H ⁻¹' U := by
        rw [Set.mem_preimage, hH]
        exact hU
      rw [Set.indicator_of_mem hw, Set.indicator_of_notMem h1, Set.indicator_of_notMem hU]
  · rw [Set.indicator_of_notMem hw]
    by_cases hU : w ∈ U
    · rw [Set.indicator_of_mem hU, Set.indicator_of_notMem hw]
    · rw [Set.indicator_of_notMem hU]
104
lemma SheetedCover.aemeasurable_term (c : SheetedCover H ν lam ι) {g : Y → ℝ≥0∞}
    (hg : AEMeasurable g ν) (j : ι) :
    AEMeasurable ((c.dom j).indicator fun w => g (c.branch j w)) lam :=
proof · 2 lines
  (aemeasurable_indicator_iff (c.measurableSet_dom j)).2
    ((c.aemeasurable_map hg j).comp_measurable (c.measurable_branch j))
110
lemma SheetedCover.aemeasurable_fibreSumE [Countable ι] (c : SheetedCover H ν lam ι)
    {g : Y → ℝ≥0∞} (hg : AEMeasurable g ν) : AEMeasurable (c.fibreSumE g) lam :=
proof · 1 line
  AEMeasurable.tsum fun j => c.aemeasurable_term hg j

Tonelli on the sheets: ∫⁻ w in U, fibreSumE g w ∂lam = ∫⁻ z in H⁻¹(U), g z ∂ν.

115
theorem SheetedCover.setLIntegral_fibreSumE [Countable ι] (c : SheetedCover H ν lam ι)
    (hH : Measurable H) {g : Y → ℝ≥0∞} (hg : AEMeasurable g ν) {U : Set X}
    (hU : MeasurableSet U) :
    ∫⁻ w in U, c.fibreSumE g w ∂lam = ∫⁻ z in H ⁻¹' U, g z ∂ν := by
proof · 15 lines
  have hf : AEMeasurable ((H ⁻¹' U).indicator g) ν := hg.indicator (hH hU)
  calc ∫⁻ w in U, c.fibreSumE g w ∂lam
      = ∑' j, ∫⁻ w in U, (c.dom j).indicator (fun w => g (c.branch j w)) w ∂lam := by
        unfold SheetedCover.fibreSumE
        exact lintegral_tsum fun j => (c.aemeasurable_term hg j).restrict
    _ = ∑' j, ∫⁻ z, (H ⁻¹' U).indicator g z ∂((lam.restrict (c.dom j)).map (c.branch j)) := by
        refine tsum_congr fun j => ?_
        rw [c.lintegral_sheet hf j, ← lintegral_indicator hU,
          ← lintegral_indicator (c.measurableSet_dom j)]
        exact lintegral_congr fun w => (c.indicator_comp_branch g U j w).symm
    _ = ∫⁻ z, (H ⁻¹' U).indicator g z
          ∂(Measure.sum fun j => (lam.restrict (c.dom j)).map (c.branch j)) :=
        (lintegral_sum_measure _ _).symm
    _ = ∫⁻ z, (H ⁻¹' U).indicator g z ∂ν := by rw [← c.measure_eq_sum]
    _ = ∫⁻ z in H ⁻¹' U, g z ∂ν := lintegral_indicator (hH hU) g
135
theorem SheetedCover.lintegral_fibreSumE [Countable ι] (c : SheetedCover H ν lam ι)
    (hH : Measurable H) {g : Y → ℝ≥0∞} (hg : AEMeasurable g ν) :
    ∫⁻ w, c.fibreSumE g w ∂lam = ∫⁻ z, g z ∂ν := by
proof · 2 lines
  have h := c.setLIntegral_fibreSumE hH hg MeasurableSet.univ
  simpa using h
141
theorem SheetedCover.fibreSumE_eq_tsum_fibre (c : SheetedCover H ν lam ι) (g : Y → ℝ≥0∞)
    (w : X) :
    c.fibreSumE g w = ∑' z : {z : Y // H z = w ∧ ∃ j, z ∈ c.sheet j}, g z := by
proof · 27 lines
  have h1 : c.fibreSumE g w = ∑' j : {j : ι | w ∈ c.dom j}, g (c.branch j w) := by
    unfold SheetedCover.fibreSumE
    rw [tsum_subtype {j : ι | w ∈ c.dom j} (fun j => g (c.branch j w))]
    refine tsum_congr fun j => ?_
    by_cases hj : w ∈ c.dom j
    · rw [Set.indicator_of_mem hj,
        Set.indicator_of_mem (show j ∈ {j : ι | w ∈ c.dom j} from hj)]
    · rw [Set.indicator_of_notMem hj,
        Set.indicator_of_notMem (show j ∉ {j : ι | w ∈ c.dom j} from hj)]
  rw [h1]
  let e : {j : ι | w ∈ c.dom j} → {z : Y // H z = w ∧ ∃ j, z ∈ c.sheet j} := fun j =>
    ⟨c.branch j w, c.H_branch j w j.2, j, c.branch_mem j w j.2⟩
  have he : Function.Bijective e := by
    constructor
    · rintro ⟨j, hj⟩ ⟨j', hj'⟩ h
      have hz : c.branch j w = c.branch j' w := congrArg Subtype.val h
      have m1 := c.branch_mem j w hj
      have m2 := c.branch_mem j' w hj'
      rw [hz] at m1
      by_contra hne
      have hne' : j ≠ j' := fun h => hne (Subtype.ext h)
      exact Set.disjoint_left.1 (c.disjoint_sheet hne') m1 m2
    · rintro ⟨z, hz, j, hj⟩
      obtain ⟨m1, m2⟩ := c.branch_H j z hj
      rw [hz] at m1 m2
      exact ⟨⟨j, m1⟩, Subtype.ext m2⟩
  exact (Equiv.ofBijective e he).tsum_eq (fun z => g z.1)
176
private lemma det_restrictScalars_smulRight (a : ℂ) :
    ((ContinuousLinearMap.smulRight (1 : ℂ →L[ℂ] ℂ) a).restrictScalars ℝ).det = ‖a‖ ^ 2 := by
proof · 2 lines
  simp [ContinuousLinearMap.det, LinearMap.det_restrictScalars, Algebra.norm_complex_eq,
    Complex.normSq_eq_norm_sq]

The area measure |q| of a quadratic differential q(w) dw² in a chart.

182
noncomputable def areaOf (q : ℂ → ℂ) : Measure ℂ := volume.withDensity fun w => ‖q w‖ₑ

The coefficient of the pullback H^* q: q(H(z)) H'(z)².

185
def pullbackCoeff (q Hf H' : ℂ → ℂ) (z : ℂ) : ℂ := q (Hf z) * H' z ^ 2
187
lemma areaOf_countable (q : ℂ → ℂ) {s : Set ℂ} (hs : s.Countable) : areaOf q s = 0 :=
proof · 1 line
  withDensity_absolutelyContinuous _ _ (hs.measure_zero volume)

Change of variables on one holomorphic inverse branch.

191
theorem map_restrict_branch (q Hf H' : ℂ → ℂ) (ξ ξ' : ℂ → ℂ) (D : Set ℂ) (hD : MeasurableSet D)
    (hξm : Measurable ξ) (hξ : ∀ w ∈ D, HasDerivWithinAt ξ (ξ' w) D w)
    (hHξ : ∀ w ∈ D, Hf (ξ w) = w) (hchain : ∀ w ∈ D, H' (ξ w) * ξ' w = 1) :
    ((areaOf q).restrict D).map ξ = (areaOf (pullbackCoeff q Hf H')).restrict (ξ '' D) := by
proof · 29 lines
  have hinj : Set.InjOn ξ D := fun w₁ h₁ w₂ h₂ h => by
    rw [← hHξ w₁ h₁, ← hHξ w₂ h₂, h]
  have hfd : ∀ w ∈ D, HasFDerivWithinAt ξ
      ((ContinuousLinearMap.smulRight (1 : ℂ →L[ℂ] ℂ) (ξ' w)).restrictScalars ℝ) D w :=
    fun w hw => (hξ w hw).hasFDerivWithinAt.restrictScalars ℝ
  ext U hU
  have hs : MeasurableSet (ξ ⁻¹' U ∩ D) := (hξm hU).inter hD
  have hfd' : ∀ w ∈ ξ ⁻¹' U ∩ D, HasFDerivWithinAt ξ
      ((ContinuousLinearMap.smulRight (1 : ℂ →L[ℂ] ℂ) (ξ' w)).restrictScalars ℝ)
      (ξ ⁻¹' U ∩ D) w :=
    fun w hw => (hfd w hw.2).mono Set.inter_subset_right
  have himg : MeasurableSet (ξ '' (ξ ⁻¹' U ∩ D)) :=
    measurable_image_of_fderivWithin hs hfd' (hinj.mono Set.inter_subset_right)
  unfold areaOf
  rw [Measure.map_apply hξm hU, Measure.restrict_apply (hξm hU), withDensity_apply _ hs,
    Measure.restrict_apply hU, ← Set.image_preimage_inter, withDensity_apply _ himg,
    lintegral_image_eq_lintegral_abs_det_fderiv_mul volume hs hfd'
      (hinj.mono Set.inter_subset_right)]
  refine setLIntegral_congr_fun hs fun w hw => ?_
  have h1 : ‖H' (ξ w)‖ₑ * ‖ξ' w‖ₑ = 1 := by
    rw [← enorm_mul, hchain w hw.2, enorm_one]
  show ‖q w‖ₑ = ENNReal.ofReal
      |((ContinuousLinearMap.smulRight (1 : ℂ →L[ℂ] ℂ) (ξ' w)).restrictScalars ℝ).det| *
        ‖pullbackCoeff q Hf H' (ξ w)‖ₑ
  rw [det_restrictScalars_smulRight, abs_of_nonneg (sq_nonneg _),
    ENNReal.ofReal_pow (norm_nonneg _), ofReal_norm, pullbackCoeff, enorm_mul, enorm_pow,
    hHξ w hw.2]
  calc ‖q w‖ₑ = ‖q w‖ₑ * (‖H' (ξ w)‖ₑ * ‖ξ' w‖ₑ) ^ 2 := by rw [h1, one_pow, mul_one]
    _ = ‖ξ' w‖ₑ ^ 2 * (‖q w‖ₑ * ‖H' (ξ w)‖ₑ ^ 2) := by ring

A sheeted cover built from holomorphic inverse branches.

226
noncomputable def SheetedCover.ofHolomorphic (q Hf H' : ℂ → ℂ) {ι : Type*} (dom : ι → Set ℂ)
    (branch branch' : ι → ℂ → ℂ) (hdom : ∀ j, MeasurableSet (dom j))
    (hbm : ∀ j, Measurable (branch j))
    (hderiv : ∀ j, ∀ w ∈ dom j, HasDerivWithinAt (branch j) (branch' j w) (dom j) w)
    (hHb : ∀ j, ∀ w ∈ dom j, Hf (branch j w) = w)
    (hchain : ∀ j, ∀ w ∈ dom j, H' (branch j w) * branch' j w = 1)
    (hdisj : Pairwise (Function.onFun Disjoint fun j => branch j '' dom j))
    (hnull : areaOf (pullbackCoeff q Hf H') (⋃ j, branch j '' dom j)ᶜ = 0) :
    SheetedCover Hf (areaOf (pullbackCoeff q Hf H')) (areaOf q) ι where
body · 20 lines
  sheet := fun j => branch j '' dom j
  dom := dom
  branch := branch
  measurableSet_sheet := fun j =>
    measurable_image_of_fderivWithin (hdom j)
      (fun w hw => (hderiv j w hw).hasFDerivWithinAt.restrictScalars ℝ)
      (fun w₁ h₁ w₂ h₂ h => by rw [← hHb j w₁ h₁, ← hHb j w₂ h₂, h])
  measurableSet_dom := hdom
  measurable_branch := hbm
  disjoint_sheet := hdisj
  null_compl := hnull
  branch_mem := fun j _ hw => Set.mem_image_of_mem (branch j) hw
  H_branch := hHb
  branch_H := fun j z hz => by
    obtain ⟨w, hw, rfl⟩ := hz
    rw [hHb j w hw]
    exact ⟨hw, rfl⟩
  map_branch := fun j =>
    map_restrict_branch q Hf H' (branch j) (branch' j) (dom j) (hdom j) (hbm j) (hderiv j)
      (hHb j) (hchain j)

A fibre of a nonconstant entire function is countable.

257
theorem countable_fibre_of_entire {Hf : ℂ → ℂ} (hd : Differentiable ℂ Hf)
    (hnc : ¬ ∃ c : ℂ, ∀ z, Hf z = c) (a : ℂ) : (Hf ⁻¹' {a}).Countable := by
proof · 21 lines
  have hfin : ∀ n : ℕ, (Hf ⁻¹' {a} ∩ closedBall (0 : ℂ) n).Finite := by
    intro n
    by_contra hinf
    obtain ⟨z₀, -, hacc⟩ := Set.Infinite.exists_accPt_of_subset_isCompact hinf
      (isCompact_closedBall (0 : ℂ) n) inter_subset_right
    have hfreq : ∃ᶠ z in 𝓝[≠] z₀, Hf z = (fun _ => a) z :=
      (accPt_iff_frequently_nhdsNE.1 hacc).mono fun z hz => hz.1
    have heq : Hf = fun _ => a :=
      AnalyticOnNhd.eq_of_frequently_eq (fun z _ => hd.analyticAt z) analyticOnNhd_const hfreq
    exact hnc ⟨a, fun z => congrFun heq z⟩
  have hcover : Hf ⁻¹' {a} = ⋃ n : ℕ, Hf ⁻¹' {a} ∩ closedBall (0 : ℂ) n := by
    ext z
    constructor
    · intro hz
      obtain ⟨n, hn⟩ := exists_nat_ge ‖z‖
      exact mem_iUnion.2 ⟨n, hz, mem_closedBall_zero_iff.2 hn⟩
    · intro hz
      obtain ⟨n, hz', -⟩ := mem_iUnion.1 hz
      exact hz'
  rw [hcover]
  exact countable_iUnion fun n => (hfin n).countable

An evenly covered disk together with its complete family of holomorphic inverse branches.

282
structure BranchDisk (Hf H' : ℂ → ℂ) (c : ℂ) (r : ℝ) {κ : Type*} (ψ ψ' : κ → ℂ → ℂ) : Prop where
body · 6 lines
  measurable : ∀ j, Measurable (ψ j)
  hasDerivAt : ∀ j, ∀ w ∈ ball c r, HasDerivAt (ψ j) (ψ' j w) w
  right_inv : ∀ j, ∀ w ∈ ball c r, Hf (ψ j w) = w
  chain : ∀ j, ∀ w ∈ ball c r, H' (ψ j w) * ψ' j w = 1
  disjoint : Pairwise fun j k => Disjoint (ψ j '' ball c r) (ψ k '' ball c r)
  complete : ∀ z, Hf z ∈ ball c r → ∃ j, ψ j (Hf z) = z

A sheeted cover built from a countable cover of Bᶜ by evenly covered disks.

291
noncomputable def SheetedCover.ofBranchDisks (q Hf H' : ℂ → ℂ) {B : Set ℂ}
    (hB : (Hf ⁻¹' B).Countable) (c : ℕ → ℂ) (r : ℕ → ℝ) {κ : ℕ → Type*}
    (ψ ψ' : ∀ k, κ k → ℂ → ℂ) (hcover : Bᶜ ⊆ ⋃ k, ball (c k) (r k))
    (hD : ∀ k, BranchDisk Hf H' (c k) (r k) (ψ k) (ψ' k)) :
    SheetedCover Hf (areaOf (pullbackCoeff q Hf H')) (areaOf q) (Σ k, κ k) :=
body · 45 lines
  SheetedCover.ofHolomorphic q Hf H'
    (fun p => disjointed (fun k => ball (c k) (r k)) p.1)
    (fun p => ψ p.1 p.2) (fun p => ψ' p.1 p.2)
    (fun p => MeasurableSet.disjointed (fun _ => measurableSet_ball) p.1)
    (fun p => (hD p.1).measurable p.2)
    (fun p w hw =>
      ((hD p.1).hasDerivAt p.2 w
        (disjointed_subset (fun k => ball (c k) (r k)) p.1 hw)).hasDerivWithinAt)
    (fun p w hw =>
      (hD p.1).right_inv p.2 w (disjointed_subset (fun k => ball (c k) (r k)) p.1 hw))
    (fun p w hw =>
      (hD p.1).chain p.2 w (disjointed_subset (fun k => ball (c k) (r k)) p.1 hw))
    (by
      rintro ⟨k, j⟩ ⟨k', j'⟩ hne
      show Disjoint (ψ k j '' disjointed (fun k => ball (c k) (r k)) k)
        (ψ k' j' '' disjointed (fun k => ball (c k) (r k)) k')
      rw [Set.disjoint_left]
      rintro z ⟨w, hw, rfl⟩ ⟨w', hw', hzw⟩
      have hwb : w ∈ ball (c k) (r k) :=
        disjointed_subset (fun k => ball (c k) (r k)) k hw
      have hwb' : w' ∈ ball (c k') (r k') :=
        disjointed_subset (fun k => ball (c k) (r k)) k' hw'
      have hww : w' = w := by
        rw [← (hD k').right_inv j' w' hwb', hzw, (hD k).right_inv j w hwb]
      by_cases hk : k = k'
      · subst hk
        have hj : j ≠ j' := fun h => hne (by rw [h])
        exact Set.disjoint_left.1 ((hD k).disjoint hj) (mem_image_of_mem _ hwb)
          ⟨w', hwb', hzw⟩
      · have hdis : Disjoint (disjointed (fun k => ball (c k) (r k)) k)
            (disjointed (fun k => ball (c k) (r k)) k') :=
          disjoint_disjointed (fun k => ball (c k) (r k)) hk
        exact Set.disjoint_left.1 hdis hw (hww ▸ hw'))
    (by
      refine measure_mono_null ?_ (areaOf_countable _ hB)
      intro z hz
      by_contra hzB
      apply hz
      have hmem : Hf z ∈ ⋃ k, disjointed (fun k => ball (c k) (r k)) k := by
        rw [iUnion_disjointed]
        exact hcover hzB
      obtain ⟨k, hk⟩ := mem_iUnion.1 hmem
      obtain ⟨j, hj⟩ :=
        (hD k).complete z (disjointed_subset (fun k => ball (c k) (r k)) k hk)
      exact mem_iUnion.2 ⟨⟨k, j⟩, Hf z, hk, hj⟩)
342
theorem SheetedCover.mem_sheet_ofBranchDisks (q Hf H' : ℂ → ℂ) {B : Set ℂ}
    (hB : (Hf ⁻¹' B).Countable) (c : ℕ → ℂ) (r : ℕ → ℝ) {κ : ℕ → Type*}
    (ψ ψ' : ∀ k, κ k → ℂ → ℂ) (hcover : Bᶜ ⊆ ⋃ k, ball (c k) (r k))
    (hD : ∀ k, BranchDisk Hf H' (c k) (r k) (ψ k) (ψ' k))
    (hsub : ∀ k, ball (c k) (r k) ⊆ Bᶜ) (z : ℂ) :
    (∃ p, z ∈ (SheetedCover.ofBranchDisks q Hf H' hB c r ψ ψ' hcover hD).sheet p) ↔
      Hf z ∉ B := by
proof · 15 lines
  constructor
  · rintro ⟨⟨k, j⟩, hz⟩
    have hz' : z ∈ ψ k j '' disjointed (fun k => ball (c k) (r k)) k := hz
    obtain ⟨w, hw, rfl⟩ := hz'
    have hwb : w ∈ ball (c k) (r k) := disjointed_subset (fun k => ball (c k) (r k)) k hw
    rw [(hD k).right_inv j w hwb]
    exact hsub k hwb
  · intro hzB
    have hmem : Hf z ∈ ⋃ k, disjointed (fun k => ball (c k) (r k)) k := by
      rw [iUnion_disjointed]
      exact hcover hzB
    obtain ⟨k, hk⟩ := mem_iUnion.1 hmem
    obtain ⟨j, hj⟩ :=
      (hD k).complete z (disjointed_subset (fun k => ball (c k) (r k)) k hk)
    exact ⟨⟨k, j⟩, Hf z, hk, hj⟩

Existence of a complete family of holomorphic inverse branches over a disk inside the covered set of an entire map.

367
theorem exists_branchDisk {Hf : ℂ → ℂ} (hH : Differentiable ℂ Hf) {s : Set ℂ}
    (cov : IsCoveringMapOn Hf s) {c : ℂ} {r : ℝ} (hr : 0 < r) (hs : ball c r ⊆ s) :
    ∃ ψ ψ' : {z : ℂ // Hf z = c} → ℂ → ℂ, BranchDisk Hf (deriv Hf) c r ψ ψ' := by
proof · 94 lines
  classical
  have : ContractibleSpace (ball c r) :=
    (convex_ball c r).contractibleSpace ⟨c, mem_ball_self hr⟩
  have : LocallyPathConnectedSpace (ball c r) := isOpen_ball.locallyPathConnectedSpace
  obtain ⟨f, hf⟩ : ∃ f : C(ball c r, ℂ), ∀ a, f a = a.1 :=
    ⟨⟨fun a => a.1, by fun_prop⟩, fun _ => rfl⟩
  have hfs : ∀ a, f a ∈ s := fun a => by
    rw [hf a]
    exact hs a.2
  obtain ⟨a₀, ha₀⟩ : ∃ a₀ : ball c r, a₀.1 = c := ⟨⟨c, mem_ball_self hr⟩, rfl⟩
  have huniq : ∀ (F G : C(ball c r, ℂ)) (a : ball c r), Hf ∘ F = f → Hf ∘ G = f →
      F a = G a → F = G := by
    intro F G a hF hG hFG
    have hu := cov.existsUnique_continuousMap_lifts f (a₀ := a) (e₀ := F a) (congrFun hF a) hfs
    exact hu.unique ⟨rfl, hF⟩ ⟨hFG.symm, hG⟩
  have hex : ∀ j : {z : ℂ // Hf z = c}, ∃ F : C(ball c r, ℂ), F a₀ = j.1 ∧ Hf ∘ F = f :=
    fun j => (cov.existsUnique_continuousMap_lifts f (a₀ := a₀) (e₀ := j.1)
      (by rw [hf a₀, ha₀]; exact j.2) hfs).exists
  choose F hF₀ hFlift using hex
  obtain ⟨ψ, hval, hout⟩ : ∃ ψ : {z : ℂ // Hf z = c} → ℂ → ℂ,
      (∀ j w (hw : w ∈ ball c r), ψ j w = F j ⟨w, hw⟩) ∧ ∀ j w, w ∉ ball c r → ψ j w = 0 :=
    ⟨fun j w => if hw : w ∈ ball c r then F j ⟨w, hw⟩ else 0, fun j w hw => by simp [hw],
      fun j w hw => by simp [hw]⟩
  have hHψ : ∀ j, ∀ w ∈ ball c r, Hf (ψ j w) = w := by
    intro j w hw
    have h1 := congrFun (hFlift j) ⟨w, hw⟩
    rw [hf] at h1
    rw [hval j w hw]
    exact h1
  have hcont : ∀ j, ContinuousOn (ψ j) (ball c r) := by
    intro j
    rw [continuousOn_iff_continuous_domRestrict]
    have h1 : (ball c r).domRestrict (ψ j) = F j := funext fun a => hval j a.1 a.2
    rw [h1]
    exact (F j).continuous
  have hdiff : ∀ j, ∀ w ∈ ball c r, DifferentiableAt ℂ (ψ j) w := by
    intro j w hw
    have hnhds : ball c r ∈ 𝓝 w := isOpen_ball.mem_nhds hw
    have hca : ContinuousAt (ψ j) w := (hcont j).continuousAt hnhds
    have hne : deriv Hf (ψ j w) ≠ 0 :=
      deriv_ne_zero_of_isCoveringMapOn hH cov (by rw [hHψ j w hw]; exact hs hw)
    have hstrict : HasStrictDerivAt Hf (deriv Hf (ψ j w)) (ψ j w) :=
      (hH.analyticAt (ψ j w)).hasStrictDerivAt
    obtain ⟨g, hg⟩ : ∃ g : ℂ → ℂ, g = hstrict.localInverse Hf (deriv Hf (ψ j w)) (ψ j w) hne :=
      ⟨_, rfl⟩
    have hleft : ∀ᶠ x in 𝓝 (ψ j w), g (Hf x) = x := by
      rw [hg]
      exact hstrict.eventually_left_inverse hne
    have hgd : DifferentiableAt ℂ g (Hf (ψ j w)) := by
      rw [hg]
      exact (hstrict.to_localInverse hne).hasDerivAt.differentiableAt
    rw [hHψ j w hw] at hgd
    have hev : ψ j =ᶠ[𝓝 w] g := by
      filter_upwards [hca.eventually hleft, hnhds] with w' h1 h2
      exact h1.symm.trans (congrArg g (hHψ j w' h2))
    exact hgd.congr_of_eventuallyEq hev
  refine ⟨ψ, fun j w => deriv (ψ j) w, ?_, fun j w hw => (hdiff j w hw).hasDerivAt, hHψ, ?_,
    ?_, ?_⟩
  · intro j
    have hpw : ψ j = (ball c r).piecewise (ψ j) (fun _ => 0) := by
      funext w
      by_cases hw : w ∈ ball c r
      · rw [Set.piecewise_eq_of_mem _ _ _ hw]
      · rw [Set.piecewise_eq_of_notMem _ _ _ hw, hout j w hw]
    rw [hpw]
    exact (hcont j).measurable_piecewise continuousOn_const measurableSet_ball
  · intro j w hw
    have hcomp : HasDerivAt (fun w' => Hf (ψ j w')) (deriv Hf (ψ j w) * deriv (ψ j) w) w :=
      (hH (ψ j w)).hasDerivAt.comp w (hdiff j w hw).hasDerivAt
    have hid : (fun w' : ℂ => w') =ᶠ[𝓝 w] fun w' => Hf (ψ j w') := by
      filter_upwards [isOpen_ball.mem_nhds hw] with w' h2
      exact (hHψ j w' h2).symm
    exact (hcomp.congr_of_eventuallyEq hid).unique (hasDerivAt_id w)
  · intro j k hjk
    rw [Set.disjoint_left]
    rintro z ⟨w, hw, rfl⟩ ⟨w', hw', hw'z⟩
    have hww : w' = w := by
      rw [← hHψ k w' hw', hw'z, hHψ j w hw]
    rw [hww] at hw'z
    have hFeq : F k = F j := huniq (F k) (F j) ⟨w, hw⟩ (hFlift k) (hFlift j)
      (by rw [← hval k w hw, ← hval j w hw]; exact hw'z)
    have hkj : k = j := Subtype.ext (by rw [← hF₀ k, ← hF₀ j, hFeq])
    exact hjk hkj.symm
  · intro z hz
    obtain ⟨G, hG₁, hG₂⟩ := (cov.existsUnique_continuousMap_lifts f (a₀ := ⟨Hf z, hz⟩)
      (e₀ := z) (by rw [hf]) hfs).exists
    have hj : Hf (G a₀) = c := by
      have h1 := congrFun hG₂ a₀
      rw [hf a₀, ha₀] at h1
      exact h1
    refine ⟨⟨G a₀, hj⟩, ?_⟩
    have hFG : F ⟨G a₀, hj⟩ = G := huniq _ _ a₀ (hFlift _) hG₂ (hF₀ _)
    rw [hval _ (Hf z) hz, hFG]
    exact hG₁

An entire nonconstant map that is a covering map off a finite set B admits a countable sheeted cover whose sheets cover exactly Hf⁻¹(Bᶜ).

467
theorem exists_sheetedCover_of_isCoveringMapOn (q : ℂ → ℂ) {Hf : ℂ → ℂ}
    (hH : Differentiable ℂ Hf) (hnc : ¬ ∃ c : ℂ, ∀ z, Hf z = c) (B : Finset ℂ)
    (cov : IsCoveringMapOn Hf (↑B : Set ℂ)ᶜ) :
    ∃ (ι : Type) (_ : Countable ι)
      (cv : SheetedCover Hf (areaOf (pullbackCoeff q Hf (deriv Hf))) (areaOf q) ι),
      ∀ z, (∃ j, z ∈ cv.sheet j) ↔ Hf z ∉ (↑B : Set ℂ) := by
proof · 39 lines
  have hopen : IsOpen ((↑B : Set ℂ)ᶜ) := B.finite_toSet.isClosed.isOpen_compl
  have hrad : ∀ x : ℂ, ∃ ρ : ℝ, 0 < ρ ∧ (x ∈ (↑B : Set ℂ)ᶜ → ball x ρ ⊆ (↑B : Set ℂ)ᶜ) := by
    intro x
    by_cases hx : x ∈ (↑B : Set ℂ)ᶜ
    · obtain ⟨ρ, hρ, hsub⟩ := Metric.isOpen_iff.1 hopen x hx
      exact ⟨ρ, hρ, fun _ => hsub⟩
    · exact ⟨1, one_pos, fun h => absurd h hx⟩
  choose ρ hρpos hρsub using hrad
  obtain ⟨T, hTsub, hTc, hTcov⟩ := TopologicalSpace.countable_cover_nhdsWithin
    (f := fun x => ball x (ρ x)) (s := (↑B : Set ℂ)ᶜ)
    (fun x _ => mem_nhdsWithin_of_mem_nhds (ball_mem_nhds x (hρpos x)))
  have hTne : T.Nonempty := by
    obtain ⟨x, hx⟩ := B.finite_toSet.infinite_compl.nonempty
    obtain ⟨t, ht, -⟩ := mem_iUnion₂.1 (hTcov hx)
    exact ⟨t, ht⟩
  obtain ⟨e, he⟩ := hTc.exists_eq_range hTne
  have heT : ∀ k, e k ∈ T := fun k => he ▸ mem_range_self k
  have hfam : ∀ k, ∃ ψ ψ' : {z : ℂ // Hf z = e k} → ℂ → ℂ,
      BranchDisk Hf (deriv Hf) (e k) (ρ (e k)) ψ ψ' := fun k =>
    exists_branchDisk hH cov (hρpos _) (hρsub _ (hTsub (heT k)))
  choose ψ ψ' hψ using hfam
  have hcount : ∀ k, Countable {z : ℂ // Hf z = e k} := fun k =>
    (countable_fibre_of_entire hH hnc (e k)).to_subtype
  have hB : (Hf ⁻¹' (↑B : Set ℂ)).Countable := by
    have hU : Hf ⁻¹' (↑B : Set ℂ) = ⋃ a ∈ (↑B : Set ℂ), Hf ⁻¹' {a} := by
      ext z
      simp
    rw [hU]
    exact B.countable_toSet.biUnion fun a _ => countable_fibre_of_entire hH hnc a
  have hcover : ((↑B : Set ℂ)ᶜ) ⊆ ⋃ k, ball (e k) (ρ (e k)) := by
    intro x hx
    obtain ⟨t, ht, hxt⟩ := mem_iUnion₂.1 (hTcov hx)
    rw [he] at ht
    obtain ⟨k, rfl⟩ := ht
    exact mem_iUnion.2 ⟨k, hxt⟩
  exact ⟨Σ k, {z : ℂ // Hf z = e k}, inferInstance,
    SheetedCover.ofBranchDisks q Hf (deriv Hf) hB e (fun k => ρ (e k)) ψ ψ' hcover hψ,
    SheetedCover.mem_sheet_ofBranchDisks q Hf (deriv Hf) hB e (fun k => ρ (e k)) ψ ψ' hcover hψ
      (fun k => hρsub _ (hTsub (heT k)))⟩

The area formula for one map H and every measurable g : ℂ → ℝ≥0∞.

518
def AreaFormulaFor (H : ℂ → ℂ) : Prop :=
body · 3 lines
  ∀ g : ℂ → ℝ≥0∞, Measurable g →
    AEMeasurable (fun w => ∑' z : {z : ℂ // H z = w}, g z) ∧
    ∫⁻ w, ∑' z : {z : ℂ // H z = w}, g z = ∫⁻ z, g z * ‖deriv H z‖ₑ ^ 2
523
theorem areaOf_one : areaOf (fun _ => (1 : ℂ)) = volume := by
proof · 2 lines
  unfold areaOf
  simp
527
theorem areaOf_pullbackCoeff_one (H : ℂ → ℂ) :
    areaOf (pullbackCoeff (fun _ => (1 : ℂ)) H (deriv H)) =
      volume.withDensity fun z => ‖deriv H z‖ₑ ^ 2 := by
proof · 4 lines
  unfold areaOf pullbackCoeff
  congr 1
  funext z
  rw [one_mul, enorm_pow]
535
theorem measurable_deriv_of_differentiable {H : ℂ → ℂ} (hH : Differentiable ℂ H) :
    Measurable (deriv H) :=
proof · 1 line
  (continuous_iff_continuousAt.2 fun z => (hH.analyticAt z).deriv.continuousAt).measurable
539
private theorem exists_measurable_ge_ae_eq {G : ℂ → ℝ≥0∞} (hG : AEMeasurable G) :
    ∃ G' : ℂ → ℝ≥0∞, Measurable G' ∧ (∀ z, G z ≤ G' z) ∧ G' =ᵐ[volume] G := by
proof · 21 lines
  classical
  obtain ⟨N, hsub, hNm, hNnull⟩ : ∃ N : Set ℂ, {z | G z ≠ hG.mk G z} ⊆ N ∧ MeasurableSet N ∧
      volume N = 0 := by
    refine ⟨toMeasurable volume {z | G z ≠ hG.mk G z}, subset_toMeasurable _ _,
      measurableSet_toMeasurable _ _, ?_⟩
    rw [measure_toMeasurable]
    exact ae_iff.1 hG.ae_eq_mk
  refine ⟨fun z => if z ∈ N then ⊤ else hG.mk G z,
    Measurable.ite hNm measurable_const hG.measurable_mk, fun z => ?_, ?_⟩
  · by_cases hz : z ∈ N
    · simp [hz]
    · have h : G z = hG.mk G z := by
        by_contra hne
        exact hz (hsub hne)
      simp [hz, h]
  · filter_upwards [compl_mem_ae_iff.2 hNnull] with z hz
    have hz' : z ∉ N := hz
    have h : G z = hG.mk G z := by
      by_contra hne
      exact hz' (hsub hne)
    simp [hz', h]

Area formula for an entire map that is a covering map off a finite set.

564
theorem areaFormula_of_isCoveringMapOn {H : ℂ → ℂ} (hH : Differentiable ℂ H)
    (hnc : ¬ ∃ c : ℂ, ∀ z, H z = c) (B : Finset ℂ)
    (cov : IsCoveringMapOn H (↑B : Set ℂ)ᶜ) (g : ℂ → ℝ≥0∞) (hg : Measurable g) :
    AEMeasurable (fun w => ∑' z : {z : ℂ // H z = w}, g z) ∧
    ∫⁻ w, ∑' z : {z : ℂ // H z = w}, g z = ∫⁻ z, g z * ‖deriv H z‖ₑ ^ 2 := by
proof · 32 lines
  obtain ⟨ι, _, cv, hsheet⟩ :=
    exists_sheetedCover_of_isCoveringMapOn (fun _ => (1 : ℂ)) hH hnc B cov
  have hfib : ∀ w, w ∉ (↑B : Set ℂ) →
      cv.fibreSumE g w = ∑' z : {z : ℂ // H z = w}, g z := by
    intro w hw
    rw [cv.fibreSumE_eq_tsum_fibre g w]
    have hiff : ∀ z, (H z = w ∧ ∃ j, z ∈ cv.sheet j) ↔ H z = w := by
      intro z
      constructor
      · exact fun h => h.1
      · intro h
        refine ⟨h, ?_⟩
        exact (hsheet z).2 (by rw [h]; exact hw)
    exact (Equiv.subtypeEquivRight hiff).tsum_eq (fun z : {z : ℂ // H z = w} => g z)
  have hBnull : volume (↑B : Set ℂ) = 0 := B.finite_toSet.measure_zero volume
  have hae : (fun w => cv.fibreSumE g w) =ᵐ[volume]
      fun w => ∑' z : {z : ℂ // H z = w}, g z := by
    filter_upwards [compl_mem_ae_iff.2 hBnull] with w hw
    exact hfib w hw
  have hdm : Measurable fun z => ‖deriv H z‖ₑ ^ 2 :=
    (measurable_deriv_of_differentiable hH).enorm.pow_const 2
  have hSm := cv.aemeasurable_fibreSumE hg.aemeasurable
  have hS := cv.lintegral_fibreSumE hH.continuous.measurable hg.aemeasurable
  have hae' : cv.fibreSumE g =ᵐ[volume] fun w => ∑' z : {z : ℂ // H z = w}, g z := hae
  generalize cv.fibreSumE g = S at hSm hS hae'
  rw [areaOf_one] at hSm hS
  rw [areaOf_pullbackCoeff_one, lintegral_withDensity_eq_lintegral_mul _ hdm hg] at hS
  refine ⟨hSm.congr hae', ?_⟩
  rw [← lintegral_congr_ae hae', hS]
  refine lintegral_congr fun z => ?_
  simp only [Pi.mul_apply]
  rw [mul_comm]

L¹ push-forward contraction for one entire map H, from AreaFormulaFor H.

603
theorem pushContraction_of_areaFormulaFor {H : ℂ → ℂ} (AF : AreaFormulaFor H)
    (hH : Differentiable ℂ H) (η : ℂ → ℂ) (F : Set ℂ) (hF : MeasurableSet F)
    (hint : Integrable (fun z => ‖η z‖)) :
    ∫ w in F, ‖pushCoeff H η w‖ ≤ ∫ z in H ⁻¹' F, ‖η z‖ := by
proof · 58 lines
  have hnonneg : 0 ≤ ∫ z in H ⁻¹' F, ‖η z‖ := integral_nonneg fun z => norm_nonneg _
  by_cases hPint : IntegrableOn (fun w => ‖pushCoeff H η w‖) F
  swap
  · rw [integral_undef hPint]
    exact hnonneg
  have hderiv : Measurable (deriv H) := measurable_deriv_of_differentiable hH
  have hpre : MeasurableSet (H ⁻¹' F) := hH.continuous.measurable hF
  have hGae : AEMeasurable
      ((H ⁻¹' F).indicator fun z => ‖η z‖ₑ * ‖(deriv H z ^ 2)⁻¹‖ₑ) := by
    have h1 : AEMeasurable fun z => ‖η z‖ₑ := by
      have h := hint.aestronglyMeasurable.aemeasurable.ennreal_ofReal
      simpa only [ofReal_norm] using h
    have h2 : Measurable fun z => ‖(deriv H z ^ 2)⁻¹‖ₑ := ((hderiv.pow_const 2).inv).enorm
    exact (h1.mul h2.aemeasurable).indicator hpre
  obtain ⟨G', hG'm, hGG', hG'ae⟩ := exists_measurable_ge_ae_eq hGae
  obtain ⟨_, hAF⟩ := AF G' hG'm
  have hpt : ∀ w, F.indicator (fun w => ‖pushCoeff H η w‖ₑ) w ≤
      ∑' z : {z : ℂ // H z = w}, G' z := by
    intro w
    by_cases hw : w ∈ F
    · rw [Set.indicator_of_mem hw]
      refine enorm_tsum_le_tsum_enorm.trans (tsum_le_tsum fun z => ?_)
      have hz : (z : ℂ) ∈ H ⁻¹' F := by
        show H z ∈ F
        rw [z.2]
        exact hw
      refine le_trans ?_ (hGG' z)
      rw [Set.indicator_of_mem hz, ← enorm_mul, div_eq_mul_inv]
    · rw [Set.indicator_of_notMem hw]
      exact bot_le
  have h1 : ∫⁻ w in F, ‖pushCoeff H η w‖ₑ ≤ ∫⁻ z, G' z * ‖deriv H z‖ₑ ^ 2 := by
    rw [← lintegral_indicator hF, ← hAF]
    exact lintegral_mono hpt
  have h2 : ∫⁻ z, G' z * ‖deriv H z‖ₑ ^ 2 =
      ∫⁻ z, (H ⁻¹' F).indicator (fun z => ‖η z‖ₑ * ‖(deriv H z ^ 2)⁻¹‖ₑ) z *
        ‖deriv H z‖ₑ ^ 2 :=
    lintegral_congr_ae (hG'ae.mono fun z hz => by simp only [hz])
  have h3 : ∫⁻ z, (H ⁻¹' F).indicator (fun z => ‖η z‖ₑ * ‖(deriv H z ^ 2)⁻¹‖ₑ) z *
      ‖deriv H z‖ₑ ^ 2 ≤ ∫⁻ z in H ⁻¹' F, ‖η z‖ₑ := by
    rw [← lintegral_indicator hpre]
    refine lintegral_mono fun z => ?_
    by_cases hz : z ∈ H ⁻¹' F
    · rw [Set.indicator_of_mem hz, Set.indicator_of_mem hz]
      by_cases h0 : deriv H z = 0
      · simp [h0]
      · rw [mul_assoc, ← enorm_pow, ← enorm_mul, inv_mul_cancel₀ (pow_ne_zero 2 h0), enorm_one,
          mul_one]
    · rw [Set.indicator_of_notMem hz, Set.indicator_of_notMem hz, zero_mul]
  have hfin := h1.trans (h2.le.trans h3)
  have hL : ∫⁻ w in F, ‖pushCoeff H η w‖ₑ = ENNReal.ofReal (∫ w in F, ‖pushCoeff H η w‖) := by
    rw [ofReal_integral_eq_lintegral_ofReal hPint (ae_of_all _ fun z => norm_nonneg _)]
    simp only [ofReal_norm]
  have hR : ∫⁻ z in H ⁻¹' F, ‖η z‖ₑ = ENNReal.ofReal (∫ z in H ⁻¹' F, ‖η z‖) := by
    rw [ofReal_integral_eq_lintegral_ofReal hint.integrableOn
      (ae_of_all _ fun z => norm_nonneg _)]
    simp only [ofReal_norm]
  rw [hL, hR] at hfin
  exact (ENNReal.ofReal_le_ofReal_iff hnonneg).1 hfin

Lemma 2.A (`l:pushforward`), `L¹` contraction: for an entire nonconstant map H that is a covering map off a finite set B, ∫_F |H_* η| ≤ ∫_{H⁻¹(F)} |η|.

668
theorem pushContraction_of_isCoveringMapOn {H : ℂ → ℂ} (hH : Differentiable ℂ H)
    (hnc : ¬ ∃ c : ℂ, ∀ z, H z = c) (B : Finset ℂ)
    (cov : IsCoveringMapOn H (↑B : Set ℂ)ᶜ) (η : ℂ → ℂ) (F : Set ℂ) (hF : MeasurableSet F)
    (hη : Integrable (fun z => ‖η z‖)) :
    ∫ w in F, ‖pushCoeff H η w‖ ≤ ∫ z in H ⁻¹' F, ‖η z‖ :=
proof · 2 lines
  pushContraction_of_areaFormulaFor
    (fun g hg => areaFormula_of_isCoveringMapOn hH hnc B cov g hg) hH η F hF hη

The great Picard theorem for entire maps: a non-polynomial entire map takes every complex value, with at most one exception, infinitely often.

682
def GreatPicard : Prop :=
body · 2 lines
  ∀ f : ℂ → ℂ, Differentiable ℂ f → (¬ ∃ P : Polynomial ℂ, ∀ z, f z = P.eval z) →
    ∀ w₁ w₂ : ℂ, {z | f z = w₁}.Finite → {z | f z = w₂}.Finite → w₁ = w₂

Alignment of the fibre sum over w: norms are summable and every term is aligned with the sum.

688
def FibreAligned (f η : ℂ → ℂ) (w : ℂ) : Prop :=
body · 4 lines
  (Summable fun z : {z : ℂ // f z = w} => ‖η z / deriv f z ^ 2‖) ∧
    ∀ z : {z : ℂ // f z = w},
      ((‖pushCoeff f η w‖ : ℝ) : ℂ) * (η z / deriv f z ^ 2) =
        ((‖η z / deriv f z ^ 2‖ : ℝ) : ℂ) * pushCoeff f η w
694
private theorem aligned_of_norm_tsum_eq {ι : Type*} (a : ι → ℂ) (ha : Summable fun i => ‖a i‖)
    (h : ‖∑' i, a i‖ = ∑' i, ‖a i‖) (i : ι) :
    ((‖∑' j, a j‖ : ℝ) : ℂ) * a i = ((‖a i‖ : ℝ) : ℂ) * ∑' j, a j := by
proof · 46 lines
  have hs : Summable a := ha.of_norm
  obtain ⟨s, hsdef⟩ : ∃ s : ℂ, s = ∑' j, a j := ⟨_, rfl⟩
  rw [← hsdef] at h ⊢
  rcases eq_or_ne s 0 with hs0 | hs0
  · have hsum0 : ∑' j, ‖a j‖ = 0 := by rw [← h, hs0, norm_zero]
    have hle : ‖a i‖ ≤ ∑' j, ‖a j‖ := ha.le_tsum i fun j _ => norm_nonneg _
    have hi : ‖a i‖ = 0 := le_antisymm (hsum0 ▸ hle) (norm_nonneg _)
    rw [hs0, norm_zero, hi]
    simp
  · have hpos : 0 < ‖s‖ := norm_pos_iff.2 hs0
    have hsc : Summable fun j => starRingEnd ℂ s * a j := hs.mul_left _
    have hre_sum : Summable fun j => (starRingEnd ℂ s * a j).re :=
      (Complex.hasSum_re hsc.hasSum).summable
    have hre : ∀ j, (starRingEnd ℂ s * a j).re ≤ ‖s‖ * ‖a j‖ := fun j => by
      calc (starRingEnd ℂ s * a j).re ≤ ‖starRingEnd ℂ s * a j‖ := Complex.re_le_norm _
        _ = ‖s‖ * ‖a j‖ := by rw [norm_mul, Complex.norm_conj]
    have hsumre : ∑' j, (starRingEnd ℂ s * a j).re = ‖s‖ * ‖s‖ := by
      rw [← Complex.re_tsum hsc, hs.tsum_mul_left, ← hsdef, mul_comm, Complex.mul_conj,
        Complex.ofReal_re, Complex.normSq_eq_norm_sq]
      ring
    have hd_sum : Summable fun j => ‖s‖ * ‖a j‖ - (starRingEnd ℂ s * a j).re :=
      (ha.mul_left ‖s‖).sub hre_sum
    have hd_tsum : ∑' j, (‖s‖ * ‖a j‖ - (starRingEnd ℂ s * a j).re) = 0 := by
      rw [(ha.mul_left ‖s‖).tsum_sub hre_sum, ha.tsum_mul_left, hsumre, ← h, sub_self]
    have hdi : ‖s‖ * ‖a i‖ - (starRingEnd ℂ s * a i).re ≤ 0 := by
      have := hd_sum.le_tsum i fun j _ => sub_nonneg.2 (hre j)
      rwa [hd_tsum] at this
    have hrei : (starRingEnd ℂ s * a i).re = ‖s‖ * ‖a i‖ := le_antisymm (hre i) (by linarith)
    have hnorm : ‖starRingEnd ℂ s * a i‖ = ‖s‖ * ‖a i‖ := by rw [norm_mul, Complex.norm_conj]
    have him : (starRingEnd ℂ s * a i).im = 0 := by
      have h1 : (starRingEnd ℂ s * a i).re ^ 2 + (starRingEnd ℂ s * a i).im ^ 2 =
          ‖starRingEnd ℂ s * a i‖ ^ 2 := by
        rw [Complex.sq_norm, Complex.normSq_apply]; ring
      rw [hrei, hnorm] at h1
      have h2 : (starRingEnd ℂ s * a i).im ^ 2 = 0 := by linarith
      exact pow_eq_zero_iff (two_ne_zero) |>.1 h2
    have hz : starRingEnd ℂ s * a i = ((‖s‖ * ‖a i‖ : ℝ) : ℂ) :=
      Complex.ext (by rw [hrei, Complex.ofReal_re]) (by rw [him, Complex.ofReal_im])
    have hne : ((‖s‖ : ℝ) : ℂ) ≠ 0 := by exact_mod_cast hpos.ne'
    refine mul_left_cancel₀ hne ?_
    have hss : s * starRingEnd ℂ s = ((‖s‖ * ‖s‖ : ℝ) : ℂ) := by
      rw [Complex.mul_conj, Complex.normSq_eq_norm_sq]; norm_cast; ring
    calc ((‖s‖ : ℝ) : ℂ) * (((‖s‖ : ℝ) : ℂ) * a i) = ((‖s‖ * ‖s‖ : ℝ) : ℂ) * a i := by
          push_cast; ring
      _ = s * (starRingEnd ℂ s * a i) := by rw [← hss]; ring
      _ = ((‖s‖ : ℝ) : ℂ) * (((‖a i‖ : ℝ) : ℂ) * s) := by rw [hz]; push_cast; ring
744
private theorem exists_eq_const_of_im_eq_zero {U : Set ℂ} (hU : IsOpen U) (hUc : IsPreconnected U)
    {g : ℂ → ℂ} (hg : DifferentiableOn ℂ g U) (hreal : ∀ z ∈ U, (g z).im = 0) :
    ∃ c : ℂ, ∀ z ∈ U, g z = c := by
proof · 16 lines
  rcases (hg.analyticOnNhd hU).is_constant_or_isOpen hUc with h | h
  · exact h
  · rcases U.eq_empty_or_nonempty with rfl | ⟨z₀, hz₀⟩
    · exact ⟨0, by simp⟩
    · exfalso
      have hopen : IsOpen (g '' U) := h U subset_rfl hU
      obtain ⟨ε, hε, hball⟩ := Metric.isOpen_iff.1 hopen (g z₀) ⟨z₀, hz₀, rfl⟩
      have hpt : g z₀ + ((ε / 2 : ℝ) : ℂ) * Complex.I ∈ Metric.ball (g z₀) ε := by
        rw [Metric.mem_ball, dist_eq_norm, add_sub_cancel_left, norm_mul, Complex.norm_I,
          mul_one, Complex.norm_real, Real.norm_eq_abs, abs_of_pos (by linarith)]
        linarith
      obtain ⟨z, hz, hzeq⟩ := hball hpt
      have h1 := hreal z hz
      rw [hzeq] at h1
      simp [hreal z₀ hz₀] at h1
      linarith
764
private theorem countable_zeros_of_analyticOnNhd {g : ℂ → ℂ} {V : Set ℂ} (hVc : IsConnected V)
    (hg : AnalyticOnNhd ℂ g V) {x : ℂ} (hx : x ∈ V) (hgx : g x ≠ 0) :
    {z | z ∈ V ∧ g z = 0}.Countable := by
proof · 6 lines
  have hcod : (g ⁻¹' {0})ᶜ ∈ codiscreteWithin V :=
    hg.preimage_zero_mem_codiscreteWithin hgx hx hVc
  have hdisc : IsDiscrete (g ⁻¹' {0} ∩ V) := isDiscrete_of_codiscreteWithin hcod
  refine ((HereditarilyLindelofSpace.isLindelof _).countable_of_isDiscrete hdisc).mono ?_
  rintro z ⟨hzV, hz⟩
  exact ⟨hz, hzV⟩
774
private theorem exists_ne_of_not_polynomial {f : ℂ → ℂ}
    (htr : ¬ ∃ P : Polynomial ℂ, ∀ z, f z = P.eval z) : ∃ x y, f x ≠ f y := by
proof · 3 lines
  by_contra h
  push Not at h
  exact htr ⟨Polynomial.C (f 0), fun z => by rw [Polynomial.eval_C]; exact h z 0⟩
780
private theorem countable_critical_of_entire {f : ℂ → ℂ} (hf : Differentiable ℂ f)
    (hnc : ∃ x y, f x ≠ f y) : {z | deriv f z = 0}.Countable := by
proof · 10 lines
  have hg : AnalyticOnNhd ℂ (deriv f) univ := fun z _ => (hf.analyticAt z).deriv
  have hex : ∃ x₀, deriv f x₀ ≠ 0 := by
    by_contra h
    push Not at h
    obtain ⟨x, y, hxy⟩ := hnc
    exact hxy (is_const_of_deriv_eq_zero hf h x y)
  obtain ⟨x₀, hx₀⟩ := hex
  refine (countable_zeros_of_analyticOnNhd isConnected_univ hg (mem_univ x₀) hx₀).mono ?_
  intro z hz
  exact ⟨mem_univ z, hz⟩
793
private theorem countable_preimage_of_entire {f : ℂ → ℂ} (hf : Differentiable ℂ f)
    (hnc : ∃ x y, f x ≠ f y) {C : Set ℂ} (hC : C.Countable) : (f ⁻¹' C).Countable := by
proof · 9 lines
  have hnc' : ¬ ∃ c : ℂ, ∀ z, f z = c := by
    rintro ⟨c, hc⟩
    obtain ⟨x, y, hxy⟩ := hnc
    exact hxy (by rw [hc x, hc y])
  have h : f ⁻¹' C = ⋃ w ∈ C, f ⁻¹' {w} := by
    ext z
    simp
  rw [h]
  exact hC.biUnion fun w _ => countable_fibre_of_entire hf hnc' w
805
private theorem measurable_of_continuousOn_compl_finite {η : ℂ → ℂ} {M : Set ℂ} (hM : M.Finite)
    (hη : ContinuousOn η Mᶜ) : Measurable η := by
proof · 4 lines
  refine measurable_of_restrict_of_restrict_compl hM.measurableSet ?_ ?_
  · have : Countable M := hM.countable.to_subtype
    exact measurable_of_countable _
  · exact (continuousOn_iff_continuous_domRestrict.1 hη).measurable
812
private theorem integral_norm_pos_of_ne_zero {η : ℂ → ℂ} {M : Set ℂ} (hM : M.Finite)
    (hη : ContinuousOn η Mᶜ) (hint : Integrable fun z => ‖η z‖)
    (hne : ∃ z, z ∉ M ∧ η z ≠ 0) : 0 < ∫ z, ‖η z‖ := by
proof · 8 lines
  obtain ⟨z₀, hz₀, hηz₀⟩ := hne
  rw [integral_pos_iff_support_of_nonneg (fun z => norm_nonneg _) hint]
  have hopen : IsOpen (Mᶜ ∩ η ⁻¹' {y | y ≠ 0}) :=
    hη.isOpen_inter_preimage hM.isClosed.isOpen_compl isOpen_ne
  have hsub : Mᶜ ∩ η ⁻¹' {y | y ≠ 0} ⊆ Function.support fun z => ‖η z‖ := by
    rintro z ⟨_, hz⟩
    exact norm_ne_zero_iff.2 hz
  exact lt_of_lt_of_le (hopen.measure_pos volume ⟨z₀, hz₀, hηz₀⟩) (measure_mono hsub)
824
private theorem exists_two_notMem_of_measure_zero {N : Set ℂ} (hN : volume N = 0) :
    ∃ w₁ w₂, w₁ ∉ N ∧ w₂ ∉ N ∧ w₁ ≠ w₂ := by
proof · 11 lines
  have key : ∀ K : Set ℂ, volume K = 0 → ∃ w, w ∉ K := by
    intro K hK
    by_contra h
    push Not at h
    have hpos : (0 : ℝ≥0∞) < volume K := by
      rw [eq_univ_of_forall h]
      exact isOpen_univ.measure_pos volume univ_nonempty
    exact hpos.ne' hK
  obtain ⟨w₁, hw₁⟩ := key N hN
  obtain ⟨w₂, hw₂⟩ := key (N ∪ {w₁}) (measure_union_null hN (measure_singleton w₁))
  exact ⟨w₁, w₂, hw₁, fun h => hw₂ (Or.inl h), fun h => hw₂ (Or.inr h.symm)⟩
838
private theorem div_eq_ofReal_of_aligned {a s : ℂ} (hs : s ≠ 0)
    (h : ((‖s‖ : ℝ) : ℂ) * a = ((‖a‖ : ℝ) : ℂ) * s) : a / s = ((‖a‖ / ‖s‖ : ℝ) : ℂ) := by
proof · 3 lines
  have hn : ((‖s‖ : ℝ) : ℂ) ≠ 0 := by exact_mod_cast (norm_pos_iff.2 hs).ne'
  rw [div_eq_iff hs, Complex.ofReal_div, div_mul_eq_mul_div, eq_div_iff hn]
  linear_combination h
844
private theorem lintegral_enorm_eq_ofReal {F : ℂ → ℂ} (h : Integrable fun z => ‖F z‖) :
    ∫⁻ z, ‖F z‖ₑ = ENNReal.ofReal (∫ z, ‖F z‖) := by
proof · 2 lines
  rw [ofReal_integral_eq_lintegral_ofReal h (ae_of_all _ fun z => norm_nonneg _)]
  simp only [ofReal_norm]

From AreaFormulaFor f: the sum of |η(z)| / |f'(z)|² over the fibres is AEMeasurable and its integral is at most ∫ |η|.

851
theorem lintegral_fibre_tsum_le_of_areaFormulaFor {f η : ℂ → ℂ} (AF : AreaFormulaFor f)
    (hf : Differentiable ℂ f) (hηm : Measurable η) :
    AEMeasurable (fun w => ∑' z : {z : ℂ // f z = w}, ‖η z / deriv f z ^ 2‖ₑ) ∧
    ∫⁻ w, ∑' z : {z : ℂ // f z = w}, ‖η z / deriv f z ^ 2‖ₑ ≤ ∫⁻ z, ‖η z‖ₑ := by
proof · 10 lines
  have hderiv : Measurable (deriv f) :=
    (continuous_iff_continuousAt.2 fun z => (hf.analyticAt z).deriv.continuousAt).measurable
  have hgm : Measurable fun z => ‖η z / deriv f z ^ 2‖ₑ := (hηm.div (hderiv.pow_const 2)).enorm
  obtain ⟨hSm, hSeq⟩ := AF (fun z => ‖η z / deriv f z ^ 2‖ₑ) hgm
  refine ⟨hSm, ?_⟩
  rw [hSeq]
  refine lintegral_mono fun z => ?_
  by_cases h0 : deriv f z = 0
  · simp [h0]
  · rw [← enorm_pow, ← enorm_mul, div_mul_cancel₀ _ (pow_ne_zero 2 h0)]

Equality case on fibres: if ∫ |η| ≤ ∫ |f_* η|, then for almost every w the terms of the fibre sum over w are aligned with their sum.

868
theorem ae_fibreAligned_of_areaFormulaFor {f η : ℂ → ℂ} (AF : AreaFormulaFor f)
    (hf : Differentiable ℂ f) (hηm : Measurable η) (hint : Integrable fun z => ‖η z‖)
    (hPint : Integrable fun w => ‖pushCoeff f η w‖)
    (hge : ∫ z, ‖η z‖ ≤ ∫ w, ‖pushCoeff f η w‖) : ∀ᵐ w : ℂ, FibreAligned f η w := by
proof · 30 lines
  obtain ⟨hSm, hSle⟩ := lintegral_fibre_tsum_le_of_areaFormulaFor AF hf hηm
  have hηl := lintegral_enorm_eq_ofReal hint
  have hPl := lintegral_enorm_eq_ofReal hPint
  have hPS : ∀ w, ‖pushCoeff f η w‖ₑ ≤ ∑' z : {z : ℂ // f z = w}, ‖η z / deriv f z ^ 2‖ₑ :=
    fun w => enorm_tsum_le_tsum_enorm
  have hle : ∫⁻ w, ∑' z : {z : ℂ // f z = w}, ‖η z / deriv f z ^ 2‖ₑ ≤
      ∫⁻ w, ‖pushCoeff f η w‖ₑ := by
    refine hSle.trans ?_
    rw [hηl, hPl]
    exact ENNReal.ofReal_le_ofReal hge
  have hPfin : ∫⁻ w, ‖pushCoeff f η w‖ₑ ≠ ⊤ := by
    rw [hPl]
    exact ENNReal.ofReal_ne_top
  have hae : (fun w => ‖pushCoeff f η w‖ₑ) =ᵐ[volume]
      fun w => ∑' z : {z : ℂ // f z = w}, ‖η z / deriv f z ^ 2‖ₑ :=
    ae_eq_of_ae_le_of_lintegral_le (ae_of_all _ hPS) hPfin hSm hle
  have hSfin : ∀ᵐ w : ℂ, ∑' z : {z : ℂ // f z = w}, ‖η z / deriv f z ^ 2‖ₑ < ⊤ :=
    ae_lt_top' hSm (ne_top_of_le_ne_top (by rw [hηl]; exact ENNReal.ofReal_ne_top) hSle)
  filter_upwards [hae, hSfin] with w hw hfin
  have hsumm : Summable fun z : {z : ℂ // f z = w} => ‖η z / deriv f z ^ 2‖ := by
    have h1 : Summable fun z : {z : ℂ // f z = w} => ‖η z / deriv f z ^ 2‖₊ :=
      ENNReal.tsum_coe_ne_top_iff_summable.1 hfin.ne
    exact NNReal.summable_coe.2 h1
  have heq : ‖∑' z : {z : ℂ // f z = w}, η z / deriv f z ^ 2‖ =
      ∑' z : {z : ℂ // f z = w}, ‖η z / deriv f z ^ 2‖ := by
    have h2 := congrArg ENNReal.toReal hw
    rw [toReal_enorm, ENNReal.tsum_toReal_eq (fun z => enorm_ne_top)] at h2
    simpa [pushCoeff, toReal_enorm] using h2
  exact ⟨hsumm, fun z =>
    aligned_of_norm_tsum_eq (fun z : {z : ℂ // f z = w} => η z / deriv f z ^ 2) hsumm heq z⟩

Strict L¹ push-forward contraction from AreaFormulaFor f, GreatPicard, and holomorphy of pushCoeff f η.

905
theorem pushCoeff_norm_lt_of_areaFormulaFor (GP : GreatPicard)
    {f η : ℂ → ℂ} (AF : AreaFormulaFor f) {B M : Set ℂ} (hf : Differentiable ℂ f)
    (htr : ¬ ∃ P : Polynomial ℂ, ∀ z, f z = P.eval z)
    (hB : B.Finite) (hM : M.Finite)
    (hη : DifferentiableOn ℂ η Mᶜ) (hint : Integrable fun z => ‖η z‖)
    (hne : ∃ z, z ∉ M ∧ η z ≠ 0)
    (hPhol : DifferentiableOn ℂ (pushCoeff f η) Bᶜ) :
    ∫ w, ‖pushCoeff f η w‖ < ∫ z, ‖η z‖ := by
proof · 153 lines
  have hnc : ∃ x y, f x ≠ f y := exists_ne_of_not_polynomial htr
  have hηm : Measurable η := measurable_of_continuousOn_compl_finite hM hη.continuousOn
  have hpos : 0 < ∫ z, ‖η z‖ := integral_norm_pos_of_ne_zero hM hη.continuousOn hint hne
  have hrank : 1 < Module.rank ℝ ℂ := by
    rw [Complex.rank_real_complex]
    norm_num
  by_contra hcon
  have hge : ∫ z, ‖η z‖ ≤ ∫ w, ‖pushCoeff f η w‖ := not_lt.1 hcon
  have hPint : Integrable fun w => ‖pushCoeff f η w‖ := by
    by_contra h
    rw [integral_undef h] at hge
    exact absurd hpos (not_lt.2 hge)
  have hal : ∀ᵐ w : ℂ, FibreAligned f η w := ae_fibreAligned_of_areaFormulaFor AF hf hηm hint hPint
    hge
  have hNnull : volume {w : ℂ | ¬ FibreAligned f η w} = 0 := ae_iff.1 hal
  have hBo : IsOpen Bᶜ := hB.isClosed.isOpen_compl
  have hBconn : IsConnected Bᶜ :=
    (hB.countable.isPathConnected_compl_of_one_lt_rank hrank).isConnected
  have hPne : ∃ w, w ∈ Bᶜ ∧ pushCoeff f η w ≠ 0 := by
    by_contra h
    push Not at h
    have h0 : ∫ w, ‖pushCoeff f η w‖ = 0 := by
      refine integral_eq_zero_of_ae ?_
      have hBnull : volume B = 0 := hB.measure_zero volume
      filter_upwards [compl_mem_ae_iff.2 hBnull] with w hw
      simp [h w hw]
    rw [h0] at hge
    exact absurd hpos (not_lt.2 hge)
  obtain ⟨w₁, hw₁, hPw₁⟩ := hPne
  have hZP : {w | w ∈ Bᶜ ∧ pushCoeff f η w = 0}.Countable :=
    countable_zeros_of_analyticOnNhd hBconn (hPhol.analyticOnNhd hBo) hw₁ hPw₁
  obtain ⟨U, hUdef⟩ : ∃ U : Set ℂ, U = {z | z ∉ M ∧ deriv f z ≠ 0 ∧ f z ∈ Bᶜ ∧
      pushCoeff f η (f z) ≠ 0} := ⟨_, rfl⟩
  have hUmem : ∀ z, z ∈ U ↔ z ∉ M ∧ deriv f z ≠ 0 ∧ f z ∈ Bᶜ ∧ pushCoeff f η (f z) ≠ 0 := by
    intro z
    rw [hUdef]
    rfl
  have hUc : Uᶜ.Countable := by
    have hK : (M ∪ {z | deriv f z = 0} ∪ f ⁻¹' B ∪
        f ⁻¹' {w | w ∈ Bᶜ ∧ pushCoeff f η w = 0}).Countable :=
      ((hM.countable.union (countable_critical_of_entire hf hnc)).union
        (countable_preimage_of_entire hf hnc hB.countable)).union
        (countable_preimage_of_entire hf hnc hZP)
    refine hK.mono fun z hz => ?_
    by_contra hz'
    have h1 : z ∉ M := fun h => hz' (Or.inl (Or.inl (Or.inl h)))
    have h2 : deriv f z ≠ 0 := fun h => hz' (Or.inl (Or.inl (Or.inr h)))
    have h3 : f z ∈ Bᶜ := fun h => hz' (Or.inl (Or.inr h))
    have h4 : pushCoeff f η (f z) ≠ 0 := fun h => hz' (Or.inr ⟨h3, h⟩)
    exact hz ((hUmem z).2 ⟨h1, h2, h3, h4⟩)
  have hUpc : IsPreconnected U := by
    have h := (hUc.isPathConnected_compl_of_one_lt_rank hrank).isConnected.isPreconnected
    rwa [compl_compl] at h
  have hf' : Differentiable ℂ (deriv f) := fun z => (hf.analyticAt z).deriv.differentiableAt
  have hPf : DifferentiableOn ℂ (fun z => pushCoeff f η (f z)) (f ⁻¹' Bᶜ) :=
    hPhol.comp hf.differentiableOn fun z hz => hz
  have hpreo : IsOpen (f ⁻¹' Bᶜ) := hBo.preimage hf.continuous
  have hUo : IsOpen U := by
    have h1 : IsOpen Mᶜ := hM.isClosed.isOpen_compl
    have h2 : IsOpen {z | deriv f z ≠ 0} := isOpen_ne_fun hf'.continuous continuous_const
    have h3 : IsOpen (f ⁻¹' Bᶜ ∩ (fun z => pushCoeff f η (f z)) ⁻¹' {y | y ≠ 0}) :=
      hPf.continuousOn.isOpen_inter_preimage hpreo isOpen_ne
    have hU' : U = Mᶜ ∩ {z | deriv f z ≠ 0} ∩
        (f ⁻¹' Bᶜ ∩ (fun z => pushCoeff f η (f z)) ⁻¹' {y | y ≠ 0}) := by
      ext z
      rw [hUmem]
      constructor
      · rintro ⟨h1, h2, h3, h4⟩
        exact ⟨⟨h1, h2⟩, h3, h4⟩
      · rintro ⟨⟨h1, h2⟩, h3, h4⟩
        exact ⟨h1, h2, h3, h4⟩
    rw [hU']
    exact (h1.inter h2).inter h3
  have hgd : DifferentiableOn ℂ (fun z => η z / deriv f z ^ 2 / pushCoeff f η (f z)) U := by
    intro z hz
    obtain ⟨hzM, hzd, hzB, hzP⟩ := (hUmem z).1 hz
    have e1 : DifferentiableAt ℂ η z :=
      hη.differentiableAt (hM.isClosed.isOpen_compl.mem_nhds hzM)
    have e2 : DifferentiableAt ℂ (deriv f) z := hf' z
    have e3 : DifferentiableAt ℂ (fun z => pushCoeff f η (f z)) z :=
      hPf.differentiableAt (hpreo.mem_nhds hzB)
    exact ((e1.div (e2.pow 2) (pow_ne_zero 2 hzd)).div e3 hzP).differentiableWithinAt
  have hreal : ∀ z ∈ U, (η z / deriv f z ^ 2 / pushCoeff f η (f z)).im = 0 := by
    by_contra hex
    push Not at hex
    obtain ⟨z₀, hz₀U, hz₀⟩ := hex
    have hEo : IsOpen (U ∩ (fun z => (η z / deriv f z ^ 2 / pushCoeff f η (f z)).im) ⁻¹'
        {y : ℝ | y ≠ 0}) :=
      (Complex.continuous_im.comp_continuousOn hgd.continuousOn).isOpen_inter_preimage hUo
        isOpen_ne
    have hfopen : IsOpen (f '' (U ∩
        (fun z => (η z / deriv f z ^ 2 / pushCoeff f η (f z)).im) ⁻¹' {y : ℝ | y ≠ 0})) := by
      rcases (hf.differentiableOn.analyticOnNhd isOpen_univ).is_constant_or_isOpen
        isPreconnected_univ with hconst | hopen
      · obtain ⟨c, hc⟩ := hconst
        obtain ⟨x, y, hxy⟩ := hnc
        exact absurd (by rw [hc x (mem_univ x), hc y (mem_univ y)]) hxy
      · exact hopen _ (subset_univ _) hEo
    have hsub : f '' (U ∩
        (fun z => (η z / deriv f z ^ 2 / pushCoeff f η (f z)).im) ⁻¹' {y : ℝ | y ≠ 0}) ⊆
        {w : ℂ | ¬ FibreAligned f η w} := by
      rintro w ⟨z, ⟨hzU, hzim⟩, rfl⟩ hgood
      refine hzim ?_
      have hzP : pushCoeff f η (f z) ≠ 0 := ((hUmem z).1 hzU).2.2.2
      have h := hgood.2 ⟨z, rfl⟩
      show (η z / deriv f z ^ 2 / pushCoeff f η (f z)).im = 0
      rw [div_eq_ofReal_of_aligned hzP h, Complex.ofReal_im]
    have hposm : 0 < volume (f '' (U ∩
        (fun z => (η z / deriv f z ^ 2 / pushCoeff f η (f z)).im) ⁻¹' {y : ℝ | y ≠ 0})) :=
      hfopen.measure_pos volume ⟨f z₀, z₀, ⟨hz₀U, hz₀⟩, rfl⟩
    exact hposm.ne' (measure_mono_null hsub hNnull)
  obtain ⟨c, hc⟩ := exists_eq_const_of_im_eq_zero hUo hUpc hgd hreal
  have hUnull : volume Uᶜ = 0 := hUc.measure_zero volume
  rcases eq_or_ne c 0 with hc0 | hc0
  · have hη0 : ∀ z ∈ U, η z = 0 := by
      intro z hz
      obtain ⟨hzM, hzd, hzB, hzP⟩ := (hUmem z).1 hz
      have h1 : η z / deriv f z ^ 2 / pushCoeff f η (f z) = 0 := by rw [hc z hz, hc0]
      have h2 : η z / deriv f z ^ 2 = 0 := (div_eq_zero_iff.1 h1).resolve_right hzP
      exact (div_eq_zero_iff.1 h2).resolve_right (pow_ne_zero 2 hzd)
    have h0 : ∫ z, ‖η z‖ = 0 := by
      refine integral_eq_zero_of_ae ?_
      filter_upwards [compl_mem_ae_iff.2 hUnull] with z hz
      have hzU : z ∈ U := not_not.1 hz
      simp [hη0 z hzU]
    rw [h0] at hpos
    exact lt_irrefl 0 hpos
  · have hbad : volume ({w : ℂ | ¬ FibreAligned f η w} ∪ f '' Uᶜ) = 0 :=
      measure_union_null hNnull ((hUc.image f).measure_zero volume)
    have hfin : ∀ w, w ∉ ({w : ℂ | ¬ FibreAligned f η w} ∪ f '' Uᶜ) → {z | f z = w}.Finite := by
      intro w hw
      have hgood : FibreAligned f η w := not_not.1 fun h => hw (Or.inl h)
      have hwU : w ∉ f '' Uᶜ := fun h => hw (Or.inr h)
      by_contra hinf
      have hinf' : Infinite {z : ℂ // f z = w} := Set.infinite_coe_iff.2 hinf
      have hfibU : ∀ z : {z : ℂ // f z = w}, (z : ℂ) ∈ U := fun z => by
        by_contra hz
        exact hwU ⟨z, hz, z.2⟩
      have hPw : ∀ z : {z : ℂ // f z = w}, pushCoeff f η w ≠ 0 := fun z => by
        have h := ((hUmem z).1 (hfibU z)).2.2.2
        rwa [z.2] at h
      have hconst : ∀ z : {z : ℂ // f z = w},
          ‖η z / deriv f z ^ 2‖ = ‖c * pushCoeff f η w‖ := fun z => by
        have h1 := hc z (hfibU z)
        rw [z.2, div_eq_iff (hPw z)] at h1
        rw [h1]
      have hs : Summable fun _ : {z : ℂ // f z = w} => ‖c * pushCoeff f η w‖ :=
        hgood.1.congr hconst
      have hzero : ‖c * pushCoeff f η w‖ = 0 := (summable_const_iff _).1 hs
      obtain ⟨z⟩ := (inferInstance : Nonempty {z : ℂ // f z = w})
      exact (mul_ne_zero hc0 (hPw z)) (norm_eq_zero.1 hzero)
    obtain ⟨w₂, w₃, hw₂, hw₃, hne23⟩ := exists_two_notMem_of_measure_zero hbad
    exact hne23 (GP f hf htr w₂ w₃ (hfin w₂ hw₂) (hfin w₃ hw₃))

Strict `L¹` push-forward contraction for a transcendental entire map f that is a covering map off a finite set B, assuming GreatPicard (with both the area formula and holomorphy of f_* η proved outright in Mathlib).

1070
theorem pushCoeff_norm_lt_of_isCoveringMapOn (GP : GreatPicard)
    {f η : ℂ → ℂ} {B M : Set ℂ} (hf : Differentiable ℂ f)
    (htr : ¬ ∃ P : Polynomial ℂ, ∀ z, f z = P.eval z)
    (hB : B.Finite) (hcov : IsCoveringMapOn f Bᶜ) (hM : M.Finite) (hMB : ∀ a ∈ M, f a ∈ B)
    (hη : DifferentiableOn ℂ η Mᶜ) (hint : Integrable fun z => ‖η z‖)
    (hne : ∃ z, z ∉ M ∧ η z ≠ 0) :
    ∫ w, ‖pushCoeff f η w‖ < ∫ z, ‖η z‖ := by
proof · 11 lines
  have hnc : ¬ ∃ c : ℂ, ∀ z, f z = c := by
    rintro ⟨c, hc⟩
    obtain ⟨x, y, hxy⟩ := exists_ne_of_not_polynomial htr
    exact hxy (by rw [hc x, hc y])
  have hcov' : IsCoveringMapOn f (↑hB.toFinset : Set ℂ)ᶜ := by
    rw [Set.Finite.coe_toFinset]
    exact hcov
  have AF : AreaFormulaFor f := fun g hg =>
    areaFormula_of_isCoveringMapOn hf hnc hB.toFinset hcov' g hg
  exact pushCoeff_norm_lt_of_areaFormulaFor GP AF hf htr hB hM hη hint hne
    (pushHolomorphic f η B M hf hB hcov hM hMB hη hint)