AFTD Auto-Formalizing Theoretical Domains

PlaneEmbedding

structure

A plane embedding of a simple graph G represented by a rotation system (a permutation of darts whose cycles correspond to the cyclic order of edges around each vertex) satisfying Euler's spherical formula V - E + F = 2.

Statement

structure PlaneEmbedding {V : Type*} [Fintype V] [DecidableEq V] (G : SimpleGraph V) [DecidableRel G.Adj]
Defined in
scout/2611-23164-determining-compatible-groups-in-gamma-zonal-labelings.md:99
Verified
19 Nov 2026
Axioms
none listed
Used by 1

Read back from the Lean

A structure PlaneEmbedding parameterized by a type V with [Fintype V] and [DecidableEq V], a simple graph G : SimpleGraph V, and [DecidableRel G.Adj]. It defines a combinatorial rotation system (plane embedding on the sphere) for G, consisting of four fields: 1. rot: a permutation of the darts of G (Equiv.Perm G.Dart). 2. rot_fst: for every dart d : G.Dart, the source vertex of rot d equals the source vertex of d ((rot d).fst = d.fst). 3. sameCycle_iff_fst_eq: for all darts d₁, d₂ : G.Dart, d₁ and d₂ belong to the same cycle under rot if and only if they have the same source vertex (d₁.fst = d₂.fst). 4. euler_spherical: the Euler characteristic equation in ℤ: |V| - (|G.Dart| / 2) + F = 2, where: - |V| is (Fintype.card V : ℤ), - |G.Dart| / 2 is ((Fintype.card G.Dart : ℤ) / 2) (the number of edges), - F is (Nat.card (Quotient (Equiv.Perm.SameCycle.setoid face_perm)) : ℤ), the number of orbits (faces) of the dart permutation face_perm : Equiv.Perm G.Dart defined by d ↦ rot (d.symm).

Written by a model that saw only the Lean, never the English above. If the two disagree, that is worth a challenge.

Lean source view module on GitHub

/-- A rotation-system plane embedding of a simple graph G satisfying Euler's formula for the sphere. -/
structure PlaneEmbedding {V : Type*} [Fintype V] [DecidableEq V] (G : SimpleGraph V) [DecidableRel G.Adj] where
  rot : Equiv.Perm G.Dart
  rot_fst : ∀ d : G.Dart, (rot d).fst = d.fst
  sameCycle_iff_fst_eq : ∀ d₁ d₂ : G.Dart, rot.SameCycle d₁ d₂ ↔ d₁.fst = d₂.fst
  euler_spherical : (Fintype.card V : ℤ) - ((Fintype.card G.Dart : ℤ) / 2) +
    (Nat.card (Quotient (Equiv.Perm.SameCycle.setoid (Equiv.mk (fun d => rot d.symm) (fun d => (rot.symm d).symm) (by intro; simp) (by intro; simp)))) : ℤ) = 2
See it in the graphDiscuss this resultChallenge it