Regular polygons inscribed in a circle, the polygon radius of eq. (12) and the disk radius
DefinitionArxivcond_mat_0107384_BasicObjects of Sec. 2 and Sec. 4 of Tuncer, How round is round? (2002).
- Plane. The inclusion lies in the Euclidean plane with the Euclidean distance. Area is two-dimensional Lebesgue measure, and the closed ball is the round disk of radius centred at .
- Regular polygon (Sec. 4, Fig. 4, before eq. 12). For , a centre , a radius and an orientation angle , the vertices are
They lie on the circle of radius about . The regular -gon is the closed convex hull of , so is its circumradius. 3. Polygon radius (eq. 12). . 4. Disk radius (Sec. 2, after eqs. 6-7). , the radius of the disk inclusion of area fraction in the unit cell of area .
Formalization Note The plane is EuclideanSpace ℝ (Fin 2), not ℝ × ℝ: on ℝ × ℝ Mathlib's metric is the sup metric, and its closed balls are squares. The paper fixes neither the centre nor the orientation of the polygon, so both are parameters.
import Mathlib
/-!
Tuncer, *How round is round? On accuracy in complex dielectric permittivity calculations:
a finite-size scaling approach*, arXiv:cond-mat/0107384v3 (2002): the regular polygons with `n`
sides that replace the disk inclusion in Sec. 4 (Fig. 4, eq. (12)), the polygon radius `r_n` of
eq. (12), and the disk radius `r = √(q/π)` of Sec. 2.
The inclusion lives in the Euclidean plane, modelled as `EuclideanSpace ℝ (Fin 2)`, so that
`Metric.closedBall c r` is a round disk and `volume` is the area (two-dimensional Lebesgue
measure).
-/
open MeasureTheory
noncomputable section
namespace Arxivcond_mat_0107384
/-- Sec. 3, Fig. 2, and Sec. 4: the two-dimensional plane of the unit cell, with the Euclidean
distance and area. -/
abbrev Plane : Type := EuclideanSpace ℝ (Fin 2)
/-- Sec. 4, Fig. 4 and the sentence before eq. (12): the `k`-th vertex (`k = 0, …, n-1`) of the
regular polygon with `n` sides generated from the circle of radius `r` centred at `c`. The vertices
sit on that circle at the angles `θ + 2πk/n`; `θ` fixes the orientation of the polygon. -/
def polygonVertex (n : ℕ) (c : Plane) (r θ : ℝ) (k : Fin n) : Plane :=
c + r • !₂[Real.cos (θ + 2 * Real.pi * ((k : ℕ) : ℝ) / (n : ℝ)),
Real.sin (θ + 2 * Real.pi * ((k : ℕ) : ℝ) / (n : ℝ))]
/-- Sec. 4, Fig. 4 and the sentence before eq. (12): the (closed, filled) regular polygon with `n`
sides inscribed in the circle of radius `r` centred at `c`, i.e. the convex hull of its `n`
vertices. -/
def regularPolygon (n : ℕ) (c : Plane) (r θ : ℝ) : Set Plane :=
convexHull ℝ (Set.range (polygonVertex n c r θ))
/-- Sec. 4, eq. (12): the radius `r_n = √(q / (n sin(π/n) cos(π/n)))` of the circle generating a
regular `n`-gon of area `q`. -/
def polygonRadius (n : ℕ) (q : ℝ) : ℝ :=
Real.sqrt (q / ((n : ℝ) * Real.sin (Real.pi / n) * Real.cos (Real.pi / n)))
/-- Sec. 2, after eqs. (6)-(7): the radius `r = √(q/π)` of a disk of area `q` (the disk inclusion
of area fraction `q` in the unit cell). -/
def diskRadius (q : ℝ) : ℝ :=
Real.sqrt (q / Real.pi)
end Arxivcond_mat_0107384
Read-back
What the Lean code literally says, in plain math · claude-opus-5-5
Plane. The ambient space is the Euclidean plane with its usual Euclidean distance . Closed balls in this space are round closed disks, and its standard measure is two-dimensional Lebesgue measure (area). Points are written .
Polygon vertex. The inputs are:
- a natural number ;
- a point ;
- real numbers and , with no sign or range restrictions;
- an index .
The point is defined by
Edge cases:
- : the index set is empty, so there are no vertices at all.
- : there is a single vertex, .
- : there are two antipodal points about .
- : every vertex equals .
- : the points lie on the circle of radius about , at angles .
In every case each vertex lies at distance from .
Regular polygon. For the same inputs , and , the set is the convex hull of the vertices:
This is the set of all convex combinations with and . Because it is the hull of finitely many points, it is a compact convex set.
Edge cases:
- : the set is empty.
- : the set is a single point.
- : the set is a line segment of length through .
- : the set is .
- and : the set is the filled regular -gon whose vertices lie on the circle of radius about .
Polygon radius. For and , the real number is defined by
Two conventions govern the junk values: division by zero yields , and the square root of a negative number is .
- : is taken to be , so the denominator is and for every .
- : , so for every .
- : , so for every .
- : the denominator equals and is strictly positive. Then is the ordinary positive square root when , and when .
Nothing in this definition connects to the area of ; it is only the displayed formula.
Disk radius. For , the real number is defined by
This is the ordinary non-negative square root when . When , the square-root convention gives . Nothing in this definition connects to the area of any disk; it is only the displayed formula.
Confirmed by the mission captain (proposal self-audit).
Confirmed by the moderator at approval.