Koch Snowflake
Statement
Starting from an equilateral triangle of side , the Koch snowflake is built by repeatedly replacing each edge segment with a four-segment Koch bump (each new segment one-third the original length). After steps:
The area converges:
The Hausdorff dimension of the Koch curve is:
Visualization
Each iteration replaces every edge with four edges of length of the original, multiplying the total count by and the perimeter by .
Level 0 (equilateral triangle, s = 1):
*
/ \
/ \
*-----*
P_0 = 3
Level 1 (Koch bump on each edge):
*
/ \
/ \
*-*-*-*
\/
P_1 = 4
Level 2 (four bumps on each segment):
P_2 = 16/3 ≈ 5.33
Level 3:
P_3 = 64/9 ≈ 7.11
Perimeter table (with ):
| Level | Edge count | Edge length | |
|---|---|---|---|
| 0 | |||
| 1 | |||
| 2 | |||
| 3 | |||
| 4 | |||
The area converges because is a geometric series with ratio .
Proof Sketch
Perimeter recursion. At step , there are edges each of length , giving . The recursion follows immediately.
Divergence. Since , the sequence .
Area. The area added at step is new equilateral triangles each of side , contributing . Summing from to gives a geometric series of ratio .
Hausdorff dimension. Four self-similar pieces each scaled by : Moran equation gives .
Connections
The Koch snowflake is an IFSIterated Function SystemsConstructing fractals via contractive affine transformationsRead more → attractor on , with four contractions of ratio . Its Hausdorff DimensionHausdorff DimensionMeasuring the fractional dimension of self-similar setsRead more → is strictly between 1 and 2. The Sierpinski TriangleSierpinski TriangleSelf-similar fractal built by three half-scale copies of itselfRead more → is a sibling IFS fractal with dimension . The Hausdorff DistanceHausdorff DistanceA metric on non-empty compact sets, foundation for the IFS attractor theoremRead more → between successive Koch iterates and shrinks geometrically, which is precisely the IFS contraction rate. The Mandelbrot SetMandelbrot SetInteractive visualization of z_{n+1} = z_n^2 + c and its connectednessRead more → boundary is conjectured (but not proven) to have Hausdorff dimension 2.
Lean4 Proof
The proof establishes the perimeter recursion and its divergence to , using tendsto_pow_atTop_atTop_of_one_lt from Mathlib.Analysis.SpecificLimits.Basic.
Key Mathlib lemmas used: tendsto_pow_atTop_atTop_of_one_lt (for base ), Tendsto.const_mul_atTop (scaling by the positive constant ), and positivity for the sign of .
Lean4 Proof
import Mathlib.Analysis.SpecificLimits.Basic
namespace MoonMath
open Filter Topology
/-- The perimeter of the Koch snowflake at iteration `n`,
starting from a triangle of side `s`. -/
noncomputable def kochPerim (s : ℝ) : ℕ → ℝ
| 0 => 3 * s
| n + 1 => (4 / 3) * kochPerim s n
/-- Closed form: `kochPerim s n = 3 * s * (4/3)^n`. -/
theorem koch_perim_formula (s : ℝ) (n : ℕ) :
kochPerim s n = 3 * s * (4 / 3) ^ n := by
induction n with
| zero => simp [kochPerim]
| succ n ih => simp only [kochPerim, ih]; ring
/-- The Koch snowflake perimeter diverges to `+∞` for any positive side length. -/
theorem koch_perim_tendsto_atTop (s : ℝ) (hs : 0 < s) :
Tendsto (kochPerim s) atTop atTop := by
have heq : kochPerim s = fun n => 3 * s * (4 / 3) ^ n := funext (koch_perim_formula s)
rw [heq]
apply Tendsto.const_mul_atTop (by positivity)
exact tendsto_pow_atTop_atTop_of_one_lt (by norm_num : (1 : ℝ) < 4 / 3)
end MoonMathReferenced by
- Sierpinski TriangleFractal Geometry