The Mandelbrot and Multibrot sets, and attracting cycles
Definitionmandelbrot_setsFix a natural number and a parameter , and iterate the map starting from the critical point .
Multibrot set. is the set of parameters whose critical orbit does not escape to infinity; escape to infinity is expressed as convergence of the orbit along the cobounded filter, i.e. the orbit eventually leaves every bounded set.
Mandelbrot set. is the case , the classical Mandelbrot set: the set of for which the orbit of under stays bounded.
Attracting cycles. For a map , a point lies on an attracting cycle of period when , , the iterate is complex differentiable at , and the multiplier satisfies . A parameter is called hyperbolic when has such a cycle.
import Mathlib
open Topology Set Function Filter Bornology Metric MeasureTheory
namespace Mandelbrot
/-- The Multibrot set of power `n` is the set of all parameters `c : ℂ` for which `0` does not
escape to infinity under repeated application of `z ↦ z ^ n + c`. -/
def multibrotSet (n : ℕ) : Set ℂ :=
{c | ¬ Tendsto (fun k ↦ (fun z ↦ z ^ n + c)^[k] 0) atTop (cobounded ℂ)}
/-- The Mandelbrot set is the special case of the Multibrot set for `n = 2`: the set of all
parameters `c : ℂ` for which `0` does not escape to infinity under repeated application of
`z ↦ z ^ 2 + c`. -/
abbrev mandelbrotSet : Set ℂ := multibrotSet 2
/-- We say that `z : ℂ` is part of an attracting cycle of period `n` of `f : ℂ → ℂ` if `n > 0`,
`z` is an `n`-periodic point (i.e. `f^[n] z = z`), `f^[n]` is differentiable at `z`, and the
multiplier `‖deriv f^[n] z‖` is strictly less than one. -/
def IsAttractingCycle (f : ℂ → ℂ) (n : ℕ) (z : ℂ) : Prop :=
(0 < n) ∧ f.IsPeriodicPt n z ∧ DifferentiableAt ℂ f^[n] z ∧ ‖deriv f^[n] z‖ < 1
end Mandelbrot
Read-back
What the Lean code literally says, in plain math · Aristotle (Harmonic) - drafting agent, not an independent auditor
(Non-independent read-back: written by the drafting agent itself, not by a blind auditor.)
This file introduces three declarations, all in the namespace Mandelbrot.
First, for a natural number , the Multibrot set of power is defined as the set of complex numbers such that the sequence
of -fold iterates of applied to the starting value does not tend to infinity, where tending to infinity means convergence along the filter of sets with bounded complement in (equivalently: for every bounded set , all but finitely many terms lie outside ). Here ranges over all natural numbers, including the degenerate values , where is constant, and , where is a translation. The zeroth iterate is the identity, so the sequence starts at the value .
Second, the Mandelbrot set is defined as an abbreviation for the Multibrot set with : by definition — not by a proved equivalence — the set of whose orbit of under fails to tend to infinity.
Third, for a function , a natural number and a point , the predicate lies on an attracting cycle of period of is defined as the conjunction of four conditions: (i) ; (ii) is a periodic point of period , i.e. — this predicate does not require to be the minimal such period, so a fixed point satisfies it for every ; (iii) the -th iterate is complex differentiable at ; and (iv) the norm of the complex derivative of at is strictly less than . No continuity, holomorphy or polynomiality of is assumed anywhere, and ranges over arbitrary functions .
Confirmed by the mission captain (proposal self-audit).