Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Rotations, orientation-preserving similarities, cyclic quadrilaterals

Definition
SquarePeg_similarity

by LG · Nov 21, 2026 · Mathlib 0df444a (Lean v4.33.1)

geometryjordan-curvetopology

rot(θ)\mathrm{rot}(\theta)rot(θ) is counterclockwise rotation of the plane through angle θ\thetaθ. opSim(s,θ,t)(x)=t+s rot(θ)(x)\mathrm{opSim}(s,\theta,t)(x)=t+s\,\mathrm{rot}(\theta)(x)opSim(s,θ,t)(x)=t+srot(θ)(x) is an orientation-preserving similarity (positive scale sss, rotation θ\thetaθ, translation ttt). IsCyclicQuadrilateral(q1,q2,q3,q4)\mathrm{IsCyclicQuadrilateral}(q_1,q_2,q_3,q_4)IsCyclicQuadrilateral(q1​,q2​,q3​,q4​) holds when the four points are pairwise distinct and lie on a common circle of positive radius; this is Greene-Lobb's notion of a cyclic quadrilateral (one that inscribes in a circle).

Definition code
import Mathlib
import Definitions.Def_SchoenfliesPlaneCore

open Schoenflies

namespace SquarePeg

/-- Counterclockwise rotation of the plane through angle θ. -/
noncomputable def rot (θ : ℝ) (x : Plane) : Plane :=
  Plane.mk (Real.cos θ * x 0 - Real.sin θ * x 1) (Real.sin θ * x 0 + Real.cos θ * x 1)

/-- An orientation-preserving similarity: positive scale s, rotation θ, translation t. -/
noncomputable def opSim (s : ℝ) (θ : ℝ) (t : Plane) (x : Plane) : Plane :=
  t + s • rot θ x

/-- A cyclic quadrilateral: four distinct points lying on a common circle. -/
def IsCyclicQuadrilateral (q1 q2 q3 q4 : Plane) : Prop :=
  q1 ≠ q2 ∧ q1 ≠ q3 ∧ q1 ≠ q4 ∧ q2 ≠ q3 ∧ q2 ≠ q4 ∧ q3 ≠ q4 ∧
  ∃ (c : Plane) (r : ℝ), 0 < r ∧
    ‖q1 - c‖ = r ∧ ‖q2 - c‖ = r ∧ ‖q3 - c‖ = r ∧ ‖q4 - c‖ = r

end SquarePeg
Source
Greene-Lobb, Cyclic quadrilaterals and smooth Jordan curves, arXiv:2011.05216, definitions of 'inscribes' and 'cyclic' (Introduction).

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