Identity Theorem (Analytic Continuation)

lean4-proofcomplex-analysisvisualization
fS=gS,  SU    fg on Uf|_S = g|_S,\; S' \cap U \ne \emptyset \implies f \equiv g \text{ on } U

Statement

Let UCU \subseteq \mathbb{C} be a connected open set, and let f,g:UCf, g : U \to \mathbb{C} be holomorphic. If ff and gg agree on a set SUS \subseteq U that has a limit point in UU (i.e., SS is not isolated), then fgf \equiv g on all of UU.

Equivalently: if ff and gg agree on a sequence znz0Uz_n \to z_0 \in U, they agree everywhere on UU.

Visualization

Two functions agreeing on {1/n:n1}\{1/n : n \ge 1\}:

The sequence 1,1/2,1/3,1/4,01, 1/2, 1/3, 1/4, \ldots \to 0.

  Real line near 0:
  
  0   1/4  1/3  1/2   1
  |----+----+----+----+-->
   ↑
   limit point in U = (-1, 2)

If ff and gg are holomorphic on (1,2)(-1, 2) (viewed as a subset of C\mathbb{C}) and f(1/n)=g(1/n)f(1/n) = g(1/n) for all nn, then fgf \equiv g on all of (1,2)(-1, 2).

Concrete example: Let h(z)=f(z)g(z)h(z) = f(z) - g(z). If h(1/n)=0h(1/n) = 0 for all nn, then hh has a zero at 0=lim(1/n)0 = \lim(1/n). A holomorphic function's zero set is either isolated or the entire connected domain. Since {1/n}\{1/n\} gives infinitely many zeros accumulating at 00, the zero set has a limit point in UU, so h0h \equiv 0.

nn1/n1/nf(1/n)=g(1/n)f(1/n) = g(1/n)?Conclusion
11.000agree
20.500agreeh=0h = 0 on a set
100.100agreewith limit point
1000.010agreeh0\Rightarrow h \equiv 0

Proof Sketch

  1. Define h=fgh = f - g. We need to show h0h \equiv 0.
  2. Let Z={zU:h(n)(z)=0 for all n0}Z = \{z \in U : h^{(n)}(z) = 0 \text{ for all } n \ge 0\} (the set where all derivatives of hh vanish).
  3. ZZ is closed in UU (each condition h(n)(z)=0h^{(n)}(z) = 0 is closed).
  4. ZZ is open: if z0Zz_0 \in Z, then hh has a power series an(zz0)n\sum a_n (z-z_0)^n near z0z_0 with all an=h(n)(z0)/n!=0a_n = h^{(n)}(z_0)/n! = 0, so h0h \equiv 0 in a neighborhood.
  5. Since UU is connected and ZZ is clopen and non-empty (the limit point of SS is in ZZ), Z=UZ = U.

Connections

The Identity Theorem is the cornerstone of analytic continuation: the Cauchy Integral FormulaCauchy Integral Formulaf(w)=12πizc=Rf(z)zwdzf(w) = \frac{1}{2\pi i}\oint_{|z-c|=R} \frac{f(z)}{z - w}\,dzA holomorphic function's value at any interior point is determined by its values on the boundary circle.Read more → guarantees holomorphic functions are analytic, and the Identity Theorem ensures the continuation is unique. The analogous result for real functions fails entirely — e1/x2e^{-1/x^2} is smooth and zero at 00 with all derivatives, yet non-zero elsewhere. Compare with the Fundamental Theorem of AlgebraFundamental Theorem of Algebradegp1,  pC[z]    z0C:p(z0)=0\deg p \geq 1,\; p \in \mathbb{C}[z] \implies \exists z_0 \in \mathbb{C}: p(z_0) = 0Every non-constant polynomial with complex coefficients has at least one root in ℂRead more →, which also exploits the rigidity of polynomials (a special case).

Lean4 Proof

import Mathlib.Analysis.Analytic.Uniqueness

open AnalyticOnNhd

/-- **Identity Theorem**: two analytic functions on a preconnected space that agree
    eventually near a point must be equal everywhere.
    Uses `AnalyticOnNhd.eq_of_eventuallyEq` from Mathlib. -/
theorem identity_theorem {E F : Type*}
    [NormedAddCommGroup E] [NormedSpace  E] [PreconnectedSpace E]
    [NormedAddCommGroup F] [NormedSpace  F]
    {f g : E  F} {z₀ : E}
    (hf : AnalyticOnNhd  f Set.univ)
    (hg : AnalyticOnNhd  g Set.univ)
    (hfg : f =ᶠ[nhds z₀] g) :
    f = g :=
  eq_of_eventuallyEq hf hg hfg