AFTD Auto-Formalizing Theoretical Domains

simple_graph_diagonal_conflict_graph

def

Given a simple graph G on Fin n and a permutation σ of G.Dart, simple_graph_diagonal_conflict_graph G σ defines the simple graph on Fin n where vertices x and y are adjacent if and only if x ≠ y and either G.Adj x y or there exists a dart d of G such that x = ((simple_graph_rotation_face_perm G σ)^[2] d).fst and y = ((simple_graph_rotation_face_perm G σ)^[2] d.symm).fst.

Statement

def simple_graph_diagonal_conflict_graph {n : ℕ} (G : SimpleGraph (Fin n))
    (σ : Equiv.Perm G.Dart) : SimpleGraph (Fin n)
Defined in
arXiv:2611.18384 Section 2.2 and line 298
Verified
17 Nov 2026
Axioms
none listed
Built on 1
  • simple_graph_rotation_face_permFor a simple graph G (explicit argument) and a rotation system given as a permutation σ : Equiv.Perm G.Dart of the darts of G, the face…
Used by 1

Read back from the Lean

A definition simple_graph_diagonal_conflict_graph that, given a natural number n, a simple graph G on the vertex set Fin n, and a permutation σ of the darts of G, constructs a SimpleGraph (Fin n). Two vertices x, y : Fin n are adjacent in this graph if and only if x ≠ y and at least one of the following holds: 1. x and y are adjacent in G (G.Adj x y); 2. there exists a dart d : G.Dart such that x = (π^[2] d).fst and y = (π^[2] d.symm).fst, where π = simple_graph_rotation_face_perm G σ and ^[2] denotes the second iterate (applying the permutation π twice).

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

/-- The diagonal conflict graph D(T) obtained by adding diagonal edges between diagonally adjacent vertices. -/
def simple_graph_diagonal_conflict_graph {n : ℕ} (G : SimpleGraph (Fin n))
    (σ : Equiv.Perm G.Dart) : SimpleGraph (Fin n) where
  Adj x y := x ≠ y ∧ (G.Adj x y ∨
    ∃ d : G.Dart,
      x = ((simple_graph_rotation_face_perm G σ)^[2] d).fst ∧
      y = ((simple_graph_rotation_face_perm G σ)^[2] d.symm).fst)
  symm := ⟨by
    intro x y ⟨hne, h⟩
    refine ⟨hne.symm, ?_⟩
    rcases h with h_adj | ⟨d, hx, hy⟩
    · exact Or.inl h_adj.symm
    · refine Or.inr ⟨d.symm, ?_⟩
      rw [d.symm_symm]
      exact ⟨hy, hx⟩⟩
  loopless := ⟨by
    intro x ⟨hne, _⟩
    exact hne rfl⟩
See it in the graphDiscuss this resultChallenge it