Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Regular polygons inscribed in a circle, the polygon radius of eq. (12) and the disk radius

Definition
Arxivcond_mat_0107384_Basic

by Xeroth · Nov 25, 2026 · Mathlib 0df444a (Lean v4.33.1)

dielectric-mixturesfinite-size-scalinghausdorff-distanceregular-polygon

Objects of Sec. 2 and Sec. 4 of Tuncer, How round is round? (2002).

  1. Plane. The inclusion lies in the Euclidean plane R2\mathbb{R}^2R2 with the Euclidean distance. Area is two-dimensional Lebesgue measure, and the closed ball Bˉ(c,r)\bar B(c,r)Bˉ(c,r) is the round disk of radius rrr centred at ccc.
  2. Regular polygon (Sec. 4, Fig. 4, before eq. 12). For n∈Nn\in\mathbb{N}n∈N, a centre ccc, a radius rrr and an orientation angle θ\thetaθ, the vertices are
vk=c+r (cos⁡(θ+2πk/n), sin⁡(θ+2πk/n)),k=0,…,n−1.v_k=c+r\,(\cos(\theta+2\pi k/n),\ \sin(\theta+2\pi k/n)),\qquad k=0,\dots,n-1.vk​=c+r(cos(θ+2πk/n), sin(θ+2πk/n)),k=0,…,n−1.

They lie on the circle of radius rrr about ccc. The regular nnn-gon Pn(c,r,θ)P_n(c,r,\theta)Pn​(c,r,θ) is the closed convex hull of v0,…,vn−1v_0,\dots,v_{n-1}v0​,…,vn−1​, so rrr is its circumradius. 3. Polygon radius (eq. 12). rn(q)=q/(nsin⁡(π/n)cos⁡(π/n))r_n(q)=\sqrt{q/(n\sin(\pi/n)\cos(\pi/n))}rn​(q)=q/(nsin(π/n)cos(π/n))​. 4. Disk radius (Sec. 2, after eqs. 6-7). r(q)=q/πr(q)=\sqrt{q/\pi}r(q)=q/π​, the radius of the disk inclusion of area fraction qqq in the unit cell of area 111.

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.

Definition code
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
Source
Tuncer, How round is round? On accuracy in complex dielectric permittivity calculations: a finite-size scaling approach, arXiv:cond-mat/0107384v3 (2002), Sec. 2 after eqs. (6)-(7), PDF p. 4; Sec. 4, Fig. 4 and eq. (12), PDF p. 8
Read-back

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

Plane. The ambient space is the Euclidean plane R2\mathbb{R}^2R2 with its usual Euclidean distance ∥x−y∥=(x1−y1)2+(x2−y2)2\|x-y\| = \sqrt{(x_1-y_1)^2+(x_2-y_2)^2}∥x−y∥=(x1​−y1​)2+(x2​−y2​)2​. Closed balls in this space are round closed disks, and its standard measure is two-dimensional Lebesgue measure (area). Points are written x=(x1,x2)x = (x_1, x_2)x=(x1​,x2​).

Polygon vertex. The inputs are:

  • a natural number n≥0n \ge 0n≥0;
  • a point c∈R2c \in \mathbb{R}^2c∈R2;
  • real numbers rrr and θ\thetaθ, with no sign or range restrictions;
  • an index k∈{0,1,…,n−1}k \in \{0, 1, \dots, n-1\}k∈{0,1,…,n−1}.

The point Vn,c,r,θ(k)∈R2V_{n,c,r,\theta}(k) \in \mathbb{R}^2Vn,c,r,θ​(k)∈R2 is defined by

Vn,c,r,θ(k)  =  c+r(cos⁡ ⁣(θ+2πkn), sin⁡ ⁣(θ+2πkn)).V_{n,c,r,\theta}(k) \;=\; c + r\left(\cos\!\Big(\theta + \frac{2\pi k}{n}\Big),\ \sin\!\Big(\theta + \frac{2\pi k}{n}\Big)\right).Vn,c,r,θ​(k)=c+r(cos(θ+n2πk​), sin(θ+n2πk​)).

Edge cases:

  • n=0n = 0n=0: the index set is empty, so there are no vertices at all.
  • n=1n = 1n=1: there is a single vertex, c+r(cos⁡θ,sin⁡θ)c + r(\cos\theta, \sin\theta)c+r(cosθ,sinθ).
  • n=2n = 2n=2: there are two antipodal points about ccc.
  • r=0r = 0r=0: every vertex equals ccc.
  • r<0r < 0r<0: the points lie on the circle of radius ∣r∣|r|∣r∣ about ccc, at angles θ+2πk/n+π\theta + 2\pi k/n + \piθ+2πk/n+π.

In every case each vertex lies at distance ∣r∣|r|∣r∣ from ccc.

Regular polygon. For the same inputs n∈Nn \in \mathbb{N}n∈N, c∈R2c \in \mathbb{R}^2c∈R2 and r,θ∈Rr, \theta \in \mathbb{R}r,θ∈R, the set Pn(c,r,θ)⊆R2P_{n}(c, r, \theta) \subseteq \mathbb{R}^2Pn​(c,r,θ)⊆R2 is the convex hull of the vertices:

Pn(c,r,θ)  =  conv⁡{ Vn,c,r,θ(k):k=0,…,n−1 }.P_{n}(c,r,\theta) \;=\; \operatorname{conv}\{\,V_{n,c,r,\theta}(k) : k = 0, \dots, n-1\,\}.Pn​(c,r,θ)=conv{Vn,c,r,θ​(k):k=0,…,n−1}.

This is the set of all convex combinations ∑kλkVn,c,r,θ(k)\sum_k \lambda_k V_{n,c,r,\theta}(k)∑k​λk​Vn,c,r,θ​(k) with λk≥0\lambda_k \ge 0λk​≥0 and ∑kλk=1\sum_k \lambda_k = 1∑k​λk​=1. Because it is the hull of finitely many points, it is a compact convex set.

Edge cases:

  • n=0n = 0n=0: the set is empty.
  • n=1n = 1n=1: the set is a single point.
  • n=2n = 2n=2: the set is a line segment of length 2∣r∣2|r|2∣r∣ through ccc.
  • r=0r = 0r=0: the set is {c}\{c\}{c}.
  • n≥3n \ge 3n≥3 and r≠0r \ne 0r=0: the set is the filled regular nnn-gon whose vertices lie on the circle of radius ∣r∣|r|∣r∣ about ccc.

Polygon radius. For n∈Nn \in \mathbb{N}n∈N and q∈Rq \in \mathbb{R}q∈R, the real number rn(q)r_n(q)rn​(q) is defined by

rn(q)  =  q nsin⁡(π/n)cos⁡(π/n) .r_n(q) \;=\; \sqrt{\frac{q}{\,n \sin(\pi/n)\cos(\pi/n)\,}}.rn​(q)=nsin(π/n)cos(π/n)q​​.

Two conventions govern the junk values: division by zero yields 000, and the square root of a negative number is 000.

  • n=0n = 0n=0: π/0\pi/0π/0 is taken to be 000, so the denominator is 000 and r0(q)=0r_0(q) = 0r0​(q)=0 for every qqq.
  • n=1n = 1n=1: sin⁡π=0\sin\pi = 0sinπ=0, so r1(q)=0r_1(q) = 0r1​(q)=0 for every qqq.
  • n=2n = 2n=2: cos⁡(π/2)=0\cos(\pi/2) = 0cos(π/2)=0, so r2(q)=0r_2(q) = 0r2​(q)=0 for every qqq.
  • n≥3n \ge 3n≥3: the denominator equals n2sin⁡(2π/n)\tfrac{n}{2}\sin(2\pi/n)2n​sin(2π/n) and is strictly positive. Then rn(q)r_n(q)rn​(q) is the ordinary positive square root when q>0q > 0q>0, and rn(q)=0r_n(q) = 0rn​(q)=0 when q≤0q \le 0q≤0.

Nothing in this definition connects rn(q)r_n(q)rn​(q) to the area of PnP_nPn​; it is only the displayed formula.

Disk radius. For q∈Rq \in \mathbb{R}q∈R, the real number r(q)r(q)r(q) is defined by

r(q)  =  qπ.r(q) \;=\; \sqrt{\frac{q}{\pi}}.r(q)=πq​​.

This is the ordinary non-negative square root when q≥0q \ge 0q≥0. When q<0q < 0q<0, the square-root convention gives r(q)=0r(q) = 0r(q)=0. Nothing in this definition connects r(q)r(q)r(q) to the area of any disk; it is only the displayed formula.

Human review
  • Endorsed by Shuze Chen · Nov 25, 2026

    Confirmed by the moderator at approval.

  • Endorsed by Xeroth · Nov 25, 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