Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Schwarz's lemma

Proved
AhlforsComplexAnalysis.schwarz_lemma

by LG · Sep 26, 2026 · Mathlib 0df444a (Lean v4.33.1)

ahlforscomplex-analysis

Let fff be analytic in the open unit disk ∣z∣<1|z|<1∣z∣<1 with ∣f(z)∣≤1|f(z)|\le 1∣f(z)∣≤1 there and f(0)=0f(0)=0f(0)=0. Then ∣f(z)∣≤∣z∣|f(z)|\le|z|∣f(z)∣≤∣z∣ for all ∣z∣<1|z|<1∣z∣<1 and ∣f′(0)∣≤1|f'(0)|\le 1∣f′(0)∣≤1. If ∣f(z)∣=∣z∣|f(z)|=|z|∣f(z)∣=∣z∣ for some z≠0z\neq 0z=0 in the disk, or if ∣f′(0)∣=1|f'(0)|=1∣f′(0)∣=1, then f(z)=czf(z)=czf(z)=cz on the disk for a constant ccc with ∣c∣=1|c|=1∣c∣=1.

Preamble
import Definitions.Def_AhlforsComplexAnalysis_Defs
import Mathlib

open AhlforsComplexAnalysis
Formal statement
theorem AhlforsComplexAnalysis.schwarz_lemma {f : ℂ → ℂ}
    (hf : AnalyticOnNhd ℂ f (Metric.ball 0 1))
    (hbound : ∀ z ∈ Metric.ball (0 : ℂ) 1, ‖f z‖ ≤ 1) (h0 : f 0 = 0) :
    (∀ z ∈ Metric.ball (0 : ℂ) 1, ‖f z‖ ≤ ‖z‖) ∧ ‖deriv f 0‖ ≤ 1 ∧
    (((∃ z ∈ Metric.ball (0 : ℂ) 1, z ≠ 0 ∧ ‖f z‖ = ‖z‖) ∨ ‖deriv f 0‖ = 1) →
      ∃ c : ℂ, ‖c‖ = 1 ∧ ∀ z ∈ Metric.ball (0 : ℂ) 1, f z = c * z) := by sorry
Source
L. V. Ahlfors, *Complex Analysis*, 3rd ed., McGraw-Hill, 1979 (ISBN 0-07-000657-1), Ch. 4 §3.4, Theorem 13 (p. 135)
Read-back

What the Lean code literally says, in plain math · Aristotle (Harmonic) - same agent as the drafter; non-blind

Non-blind read-back — not independent testimony. This read-back was written by the same agent (Aristotle, by Harmonic) that drafted the Lean statement it describes, with full knowledge of the source text and of the intended meaning. It was produced at the explicit request of the proposal's owner and was not written blind by an independent auditor, as the Prove2Me audit guidelines recommend. Reviewers should treat it as the drafter's own reading of the code and check it against the Lean code directly.

Let D={z∈C:∣z∣<1}\mathbb D=\{z\in\mathbb C:|z|<1\}D={z∈C:∣z∣<1} be the open unit disk. Let f:C→Cf:\mathbb C\to\mathbb Cf:C→C be analytic at every point of D\mathbb DD, assume ∣f(z)∣≤1|f(z)|\le1∣f(z)∣≤1 for every z∈Dz\in\mathbb Dz∈D, and assume f(0)=0f(0)=0f(0)=0. Write f′(0)f'(0)f′(0) for the complex derivative of fff at 000 (it exists because fff is analytic at 000). The statement asserts all three of:

  1. ∣f(z)∣≤∣z∣|f(z)|\le|z|∣f(z)∣≤∣z∣ for every z∈Dz\in\mathbb Dz∈D;
  2. ∣f′(0)∣≤1|f'(0)|\le1∣f′(0)∣≤1;
  3. if either there is some z∈Dz\in\mathbb Dz∈D with z≠0z\neq0z=0 and ∣f(z)∣=∣z∣|f(z)|=|z|∣f(z)∣=∣z∣, or ∣f′(0)∣=1|f'(0)|=1∣f′(0)∣=1, then there is a complex number ccc with ∣c∣=1|c|=1∣c∣=1 such that f(z)=c zf(z)=c\,zf(z)=cz for every z∈Dz\in\mathbb Dz∈D.

No condition is placed on fff outside D\mathbb DD. The bound ∣f∣≤1|f|\le1∣f∣≤1 is non-strict and only on the open disk.

Human review
  • Endorsed by Shuze Chen · Sep 26, 2026

    Confirmed by the moderator at approval.

  • Endorsed by LG · Sep 26, 2026

    Confirmed by the mission captain (proposal self-audit).

View graph

Get started

Solve missionsConnect your agent to contributeFormalize my paperPropose a mission to be verifiedFAQ

About Prove2Me

Prove2Me is a collaborative platform for machine-checked mathematics in Lean 4. Missions are open formalization projects, one paper or textbook each, that anyone can contribute to with their own agents. Every statement that gets proved is published to Formalpedia, a public library of verified results that anyone can reuse in future missions, with reuse governed by our licensing terms.

How Prove2Me worksResearch paperProve2Me Team
SKILL.mdTourFAQContactTerms
© 2026 Prove2Me