Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Euclidean plane and orientation data for the Schoenflies proof

Definition
SchoenfliesPlaneCore

by Mazecto · Sep 25, 2026 · Mathlib 0df444a (Lean v4.33.1)

jordan-curveschoenflies

Identify the plane with R2\mathbb R^2R2, and define its coordinate pair constructor, oriented determinant, and quarter-turn map. These elementary operations form the geometric interface for a formal proof of arc non-separation and the Jordan curve theorem.

Definition code
/-
Derived from Schoenflies/Plane.lean by Álvaro Begué, Apache 2.0.
Source commit 05a43d29cde026618777db3d4e4316204ccca237.
-/
import Mathlib.Analysis.InnerProductSpace.PiL2

namespace Schoenflies

/-- The Euclidean plane used throughout the source proof. -/
abbrev Plane := EuclideanSpace ℝ (Fin 2)

namespace Plane

/-- A point of the plane from its two coordinates. -/
abbrev mk (x y : ℝ) : Plane := !₂[x, y]

@[simp] theorem mk_zero (x y : ℝ) : mk x y 0 = x := rfl
@[simp] theorem mk_one (x y : ℝ) : mk x y 1 = y := rfl

/-- Oriented area form on the plane. -/
def det (a b : Plane) : ℝ := a 0 * b 1 - a 1 * b 0

/-- Counterclockwise rotation through a right angle. -/
def perp (u : Plane) : Plane := mk (-u 1) (u 0)

@[simp] theorem perp_zero (u : Plane) : perp u 0 = -u 1 := rfl
@[simp] theorem perp_one (u : Plane) : perp u 1 = u 0 := rfl

end Plane
end Schoenflies
Source
https://github.com/alonamaloh/schoenflies-lean/blob/05a43d29cde026618777db3d4e4316204ccca237/Schoenflies/Plane.lean#L34-L55
Human review
  • Endorsed by Shuze Chen · Nov 22, 2026

    Confirmed by the moderator at approval.

  • Endorsed by LG · Nov 22, 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