Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Theorem 13.1 — the Smale horseshoe has an invariant Cantor set on which it is conjugate to the two-sided shift, hence chaotic

Proved
TeschlODE.Horseshoe.horseshoe_topEquiv_shiftZ

by mikedeng1 · Sep 29, 2026 · Mathlib 0df444a (Lean v4.33.1)

cantor-setchaosdynamical-systemshorseshoep2o-batch-books5p2o-gran-per-chapterp2o-plan-bookp2o-v1symbolic-dynamics

Let 0<λ<120 < \lambda < \tfrac120<λ<21​ and μ>2\mu > 2μ>2, and let F:R2→R2F : \mathbb{R}^2 \to \mathbb{R}^2F:R2→R2 be a Smale horseshoe map: F(x,y)=(λx,μy)F(x,y) = (\lambda x, \mu y)F(x,y)=(λx,μy) on J0=[0,1]×[0,1/μ]J_0 = [0,1] \times [0, 1/\mu]J0​=[0,1]×[0,1/μ] and F(x,y)=(1−λx,μ(1−y))F(x,y) = (1 - \lambda x, \mu(1-y))F(x,y)=(1−λx,μ(1−y)) on J1=[0,1]×[1−1/μ,1]J_1 = [0,1] \times [1 - 1/\mu, 1]J1​=[0,1]×[1−1/μ,1]. Let

Λ=Λ(T1/λ)×Λ(Tμ)\Lambda = \Lambda(T_{1/\lambda}) \times \Lambda(T_\mu)Λ=Λ(T1/λ​)×Λ(Tμ​)

(13.8), and let φ:Λ→Σ2={0,1}Z\varphi : \Lambda \to \Sigma_2 = \{0,1\}^{\mathbb{Z}}φ:Λ→Σ2​={0,1}Z be the two-sided itinerary map (13.9). The book states: The Smale horseshoe map has an invariant Cantor set Λ\LambdaΛ on which the dynamics is equivalent to the double sided shift on two symbols. In particular it is chaotic. Formally:

  1. Λ\LambdaΛ is a Cantor set (compact, totally disconnected, perfect);
  2. F(Λ)=ΛF(\Lambda) = \LambdaF(Λ)=Λ;
  3. φ\varphiφ is a bijection of Λ\LambdaΛ onto Σ2\Sigma_2Σ2​ and σ∘φ=φ∘F\sigma \circ \varphi = \varphi \circ Fσ∘φ=φ∘F on Λ\LambdaΛ, where σ(s)n=sn+1\sigma(s)_n = s_{n+1}σ(s)n​=sn+1​ is the two-sided shift;
  4. φ\varphiφ and φ−1\varphi^{-1}φ−1 are continuous, with Λ⊆R2\Lambda \subseteq \mathbb{R}^2Λ⊆R2 and Σ2\Sigma_2Σ2​ carrying the metric (11.35);
  5. the restricted system (Λ,F∣Λ)(\Lambda, F|_\Lambda)(Λ,F∣Λ​) is chaotic: F∣ΛF|_\LambdaF∣Λ​ is continuous, Λ\LambdaΛ is infinite, F∣ΛF|_\LambdaF∣Λ​ is topologically transitive and its periodic points are dense in Λ\LambdaΛ.

The horseshoe is the model of the dynamics near a transverse homoclinic point (Smale–Birkhoff, Theorem 13.2), and so the source of chaos in the Melnikov criterion of §13.3.

Formalization Note. Parameters (correction to the page). The book fixes λ∈(0,12]\lambda \in (0, \tfrac12]λ∈(0,21​] and μ∈[2,∞)\mu \in [2, \infty)μ∈[2,∞). At μ=2\mu = 2μ=2 the strips J0,J1J_0, J_1J0​,J1​ meet on y=12y = \tfrac12y=21​, where (13.2) and (13.3) disagree, and Λ(T2)=[0,1]\Lambda(T_2) = [0,1]Λ(T2​)=[0,1] is not a Cantor set. At λ=12\lambda = \tfrac12λ=21​ the images K0,K1K_0, K_1K0​,K1​ meet and Λ(T2)=[0,1]\Lambda(T_2) = [0,1]Λ(T2​)=[0,1] again. The theorem is therefore stated for λ∈(0,12)\lambda \in (0, \tfrac12)λ∈(0,21​) and μ>2\mu > 2μ>2.

Extension. FFF is any map agreeing with (13.2)–(13.3) on J0∪J1J_0 \cup J_1J0​∪J1​, and the conclusion holds for every such extension, since Λ⊆J0∪J1\Lambda \subseteq J_0 \cup J_1Λ⊆J0​∪J1​.

Topology. R2\mathbb{R}^2R2 is ℝ × ℝ with Mathlib's max-distance, which has the same topology as the Euclidean one. "Equivalent" is topological equivalence (11.10), spelled out as clauses 2–4, with continuity in ε\varepsilonε–δ\deltaδ form. "Chaotic" is the book's definition of p. 296 (no sensitive-dependence axiom), applied to the subtype Λ\LambdaΛ.

Preamble
import Mathlib
import Definitions.Def_TeschlODE_Horseshoe_IsHorseshoeMap
import Definitions.Def_TeschlODE_Horseshoe_horseshoeSet
import Definitions.Def_TeschlODE_Horseshoe_horseshoeItinerary
import Definitions.Def_TeschlODE_Horseshoe_shiftZ
import Definitions.Def_TeschlODE_Horseshoe_symDistZ
import Definitions.Def_TeschlODE_Horseshoe_IsCantorSet
import Definitions.Def_TeschlODE_Shared_IsChaotic
Formal statement
namespace TeschlODE.Horseshoe

/-- Teschl, Theorem 13.1, p. 333: the Smale horseshoe map has an invariant Cantor set `Λ` on which
the dynamics is equivalent to the double sided shift on two symbols; in particular it is
chaotic.

Here `F` is any map agreeing with (13.2) on `J₀` and with (13.3) on `J₁` (its values elsewhere
are arbitrary, as in the book), `Λ = Λ(T_{1/λ}) × Λ(T_µ)` is the set (13.8), and `ϕ` is the
itinerary map (13.9). The conclusion: `Λ` is a Cantor set; `F(Λ) = Λ`; `ϕ` is a bijection from
`Λ` onto `Σ₂ = {0, 1}^ℤ`; `σ ∘ ϕ = ϕ ∘ F` on `Λ` (σ the two-sided shift); `ϕ` and `ϕ⁻¹` are
continuous (ε–δ, `Λ ⊆ ℝ²` with its usual topology and `Σ₂` with the metric (11.35)); and the
restricted system `(Λ, F|_Λ)` is chaotic in the sense of p. 296.

Correction to the page: the book fixes `λ ∈ (0, 1/2]`, `µ ∈ [2, ∞)`. At `µ = 2` the strips `J₀`,
`J₁` meet on `y = 1/2`, where (13.2) and (13.3) disagree, and `Λ(T₂) = [0, 1]` is not a Cantor
set; at `λ = 1/2` the images `K₀`, `K₁` meet and `Λ(T₂) = [0, 1]` again. The theorem is stated for
`λ ∈ (0, 1/2)` and `µ > 2`. -/
theorem horseshoe_topEquiv_shiftZ (lam μ : ℝ) (hlam₀ : 0 < lam) (hlam : lam < 1 / 2)
    (hμ : 2 < μ) (F : ℝ × ℝ → ℝ × ℝ) (hF : IsHorseshoeMap lam μ F) :
    IsCantorSet (horseshoeSet lam μ) ∧
      F '' horseshoeSet lam μ = horseshoeSet lam μ ∧
      Set.BijOn (horseshoeItinerary lam μ F) (horseshoeSet lam μ) Set.univ ∧
      (∀ p ∈ horseshoeSet lam μ,
        shiftZ (horseshoeItinerary lam μ F p) = horseshoeItinerary lam μ F (F p)) ∧
      (∀ p ∈ horseshoeSet lam μ, ∀ ε : ℝ, 0 < ε → ∃ δ : ℝ, 0 < δ ∧
        ∀ q ∈ horseshoeSet lam μ, dist q p < δ →
          symDistZ 2 (horseshoeItinerary lam μ F q) (horseshoeItinerary lam μ F p) < ε) ∧
      (∀ p ∈ horseshoeSet lam μ, ∀ ε : ℝ, 0 < ε → ∃ δ : ℝ, 0 < δ ∧
        ∀ q ∈ horseshoeSet lam μ,
          symDistZ 2 (horseshoeItinerary lam μ F q) (horseshoeItinerary lam μ F p) < δ →
            dist q p < ε) ∧
      ∃ h : Set.MapsTo F (horseshoeSet lam μ) (horseshoeSet lam μ),
        TeschlODE.Shared.IsChaotic (h.restrict F (horseshoeSet lam μ) (horseshoeSet lam μ)) := by sorry

end TeschlODE.Horseshoe
Source
Teschl, Ordinary Differential Equations and Dynamical Systems (author's preliminary version of AMS GSM 140, 2012), p. 333, Theorem 13.1
Read-back

What the Lean code literally says, in plain math · claude-opus-5-5

Fix two real parameters λ\lambdaλ and μ\muμ with

0<λ<12,μ>2,0<\lambda<\tfrac12,\qquad \mu>2,0<λ<21​,μ>2,

and let F:R2→R2F:\mathbb R^2\to\mathbb R^2F:R2→R2 be any map that satisfies the bundle predicate IsHorseshoeMap(λ,μ,F)\mathrm{IsHorseshoeMap}(\lambda,\mu,F)IsHorseshoeMap(λ,μ,F). The body of that predicate is not shown here. No other assumption is made about FFF: it need not be continuous, injective or measurable, except where the predicate requires it. The statement also uses the following bundle definitions, whose bodies are likewise not shown:

  • Λ=Λλ,μ:=horseshoeSet(λ,μ)\Lambda=\Lambda_{\lambda,\mu}:=\mathrm{horseshoeSet}(\lambda,\mu)Λ=Λλ,μ​:=horseshoeSet(λ,μ), a subset of R2=R×R\mathbb R^2=\mathbb R\times\mathbb RR2=R×R. It depends only on λ\lambdaλ and μ\muμ, not on FFF.
  • ϕ=ϕλ,μ,F:=horseshoeItinerary(λ,μ,F)\phi=\phi_{\lambda,\mu,F}:=\mathrm{horseshoeItinerary}(\lambda,\mu,F)ϕ=ϕλ,μ,F​:=horseshoeItinerary(λ,μ,F), a function defined on all of R2\mathbb R^2R2. Its values lie in some type Σ\SigmaΣ of "itineraries". The code does not show what Σ\SigmaΣ is.
  • σ:=shiftZ\sigma:=\mathrm{shiftZ}σ:=shiftZ, a map Σ→Σ\Sigma\to\SigmaΣ→Σ.
  • d2:=symDistZ(2,⋅,⋅)d_2:=\mathrm{symDistZ}(2,\cdot,\cdot)d2​:=symDistZ(2,⋅,⋅), a real-valued function of two itineraries, with the number 222 as its first argument.
  • IsCantorSet\mathrm{IsCantorSet}IsCantorSet, a predicate on subsets of R2\mathbb R^2R2.
  • IsChaotic\mathrm{IsChaotic}IsChaotic, a predicate on self-maps.

Throughout, dist⁡(q,p)\operatorname{dist}(q,p)dist(q,p) on R×R\mathbb R\times\mathbb RR×R is Mathlib's product distance. That is the maximum metric

dist⁡(q,p)=max⁡(∣q1−p1∣, ∣q2−p2∣),\operatorname{dist}(q,p)=\max\big(|q_1-p_1|,\,|q_2-p_2|\big),dist(q,p)=max(∣q1​−p1​∣,∣q2​−p2​∣),

not the Euclidean one. Under these hypotheses the statement asserts that all seven of the following hold at once:

  1. Λ\LambdaΛ satisfies IsCantorSet\mathrm{IsCantorSet}IsCantorSet.
  2. F(Λ)=ΛF(\Lambda)=\LambdaF(Λ)=Λ, where F(Λ)F(\Lambda)F(Λ) is the image set. This means FFF maps Λ\LambdaΛ into Λ\LambdaΛ, and every point of Λ\LambdaΛ is F(p)F(p)F(p) for some p∈Λp\in\Lambdap∈Λ.
  3. ϕ\phiϕ restricted to Λ\LambdaΛ is a bijection from Λ\LambdaΛ onto all of Σ\SigmaΣ:
    • ϕ\phiϕ is injective on Λ\LambdaΛ;
    • every element of the type Σ\SigmaΣ equals ϕ(p)\phi(p)ϕ(p) for some p∈Λp\in\Lambdap∈Λ.
  4. For every p∈Λp\in\Lambdap∈Λ,
σ(ϕ(p))=ϕ(F(p)).\sigma\big(\phi(p)\big)=\phi\big(F(p)\big).σ(ϕ(p))=ϕ(F(p)).
  1. Pointwise continuity of ϕ\phiϕ on Λ\LambdaΛ: for every p∈Λp\in\Lambdap∈Λ and every real ε>0\varepsilon>0ε>0 there is a real δ>0\delta>0δ>0 such that
∀q∈Λ:dist⁡(q,p)<δ ⟹ d2(ϕ(q),ϕ(p))<ε.\forall q\in\Lambda:\quad \operatorname{dist}(q,p)<\delta\ \Longrightarrow\ d_2\big(\phi(q),\phi(p)\big)<\varepsilon.∀q∈Λ:dist(q,p)<δ ⟹ d2​(ϕ(q),ϕ(p))<ε.
  1. The reverse closeness property, stated point by point: for every p∈Λp\in\Lambdap∈Λ and every real ε>0\varepsilon>0ε>0 there is a real δ>0\delta>0δ>0 such that
∀q∈Λ:d2(ϕ(q),ϕ(p))<δ ⟹ dist⁡(q,p)<ε.\forall q\in\Lambda:\quad d_2\big(\phi(q),\phi(p)\big)<\delta\ \Longrightarrow\ \operatorname{dist}(q,p)<\varepsilon.∀q∈Λ:d2​(ϕ(q),ϕ(p))<δ ⟹ dist(q,p)<ε.

This is phrased directly in terms of points of Λ\LambdaΛ and their itineraries; no inverse function is formed. Also, δ\deltaδ may depend on both ppp and ε\varepsilonε, so neither clause 5 nor clause 6 asserts uniform continuity. 7. FFF maps Λ\LambdaΛ into Λ\LambdaΛ. Given that fact, consider the restricted map

F∣Λ:Λ→Λ,p↦F(p),F|_\Lambda:\Lambda\to\Lambda,\qquad p\mapsto F(p),F∣Λ​:Λ→Λ,p↦F(p),

on the subtype Λ\LambdaΛ. This map satisfies IsChaotic\mathrm{IsChaotic}IsChaotic. The code does not show what topology or metric IsChaotic\mathrm{IsChaotic}IsChaotic uses on Λ\LambdaΛ; presumably it is whatever structure the subtype inherits from R2\mathbb R^2R2 with the max metric.

In clauses 5 and 6, d2d_2d2​ is used only as a real number compared against ε\varepsilonε or δ\deltaδ. The statement does not assert that d2d_2d2​ is a metric, and it does not give Σ\SigmaΣ any topology.

Degenerate cases. The parameter hypotheses can be satisfied, for example by λ=14\lambda=\tfrac14λ=41​ and μ=3\mu=3μ=3. Only the endpoints λ=12\lambda=\tfrac12λ=21​ and μ=2\mu=2μ=2 are excluded; μ\muμ may be arbitrarily large, and λ\lambdaλ arbitrarily close to 000. Whether IsHorseshoeMap(λ,μ,F)\mathrm{IsHorseshoeMap}(\lambda,\mu,F)IsHorseshoeMap(λ,μ,F) can be satisfied cannot be seen from this code. If no FFF satisfies it for given λ\lambdaλ and μ\muμ, the theorem says nothing for those parameters. Values of FFF that the predicate does not constrain are arbitrary, and so are the values of ϕ\phiϕ outside Λ\LambdaΛ; the statement makes no claim about points outside Λ\LambdaΛ.

If Λ\LambdaΛ were empty:

  • clauses 2, 4, 5 and 6 would hold trivially;
  • clause 3 would force the itinerary type Σ\SigmaΣ to be empty;
  • clauses 1 and 7 would depend on how IsCantorSet\mathrm{IsCantorSet}IsCantorSet and IsChaotic\mathrm{IsChaotic}IsChaotic treat an empty set or an empty type, which is not visible here.

Clause 3 also rules out Λ\LambdaΛ being a single point unless Σ\SigmaΣ has exactly one element. The code does not show how d2d_2d2​ behaves when its two arguments are equal, or whether it can take negative values or a default value. If d2d_2d2​ could be 000 for two different itineraries, clause 6 would still require the corresponding points to be within every ε\varepsilonε of each other. With dist⁡\operatorname{dist}dist that forces the two points to be equal.

Human review
  • Endorsed by Shuze Chen · Oct 2, 2026

    Confirmed by the moderator at approval.

  • Endorsed by mikedeng1 · Oct 2, 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