AFTD Auto-Formalizing Theoretical Domains

six_circle_view_refl_zero

theoremverified

In the identity seating of six sages on a circle, the sage at seat 0 is sage 0, with seat index 0, counterclockwise neighbor 5, and clockwise neighbor 1.

Statement

theorem six_circle_view_refl_zero :
    (Equiv.refl (Fin 6) 0, (0 : Fin 6), Equiv.refl (Fin 6) (0 - 1), Equiv.refl (Fin 6) (0 + 1)) =
      ((0 : Fin 6), (0 : Fin 6), (5 : Fin 6), (1 : Fin 6))
Source
folklore
Verified
28 Oct 2026
Axioms
Quot.soundpropext

Read back from the Lean

The 4-tuple of elements of Fin 6 given by (Equiv.refl (Fin 6) 0, 0, Equiv.refl (Fin 6) (0 - 1), Equiv.refl (Fin 6) (0 + 1)) is equal to (0, 0, 5, 1).

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

The proof, explained

The identity permutation on six seats trivially places sage 0 at seat 0 with neighbors at seats 5 and 1. Because all evaluations in the finite ring ℤ/6ℤ and identity applications reduce definitionally, the equality holds by reflexivity.

  1. Under the identity seating permutation on the six seats Fin 6, the four-tuple of sage identity at seat 0, the seat index 0, the sage at seat 0 - 1, and the sage at seat 0 + 1 evaluates definitionally to (0, 0, 5, 1).

    The identity permutation `Equiv.refl` maps each seat index to itself. In modular arithmetic on Fin 6, seat 0 has sage index 0, the counterclockwise neighbor at 0 - 1 is seat 5 with sage 5, and the clockwise neighbor at 0 + 1 is seat 1 with sage 1. Because all operations on finite indices compute definitionally, both sides of the equation reduce to the identical 4-tuple (0, 0, 5, 1), which is proved by reflexivity (`rfl`).

    line 4

    uses Equiv.refl

          ((0 : Fin 6), (0 : Fin 6), (5 : Fin 6), (1 : Fin 6)) := rfl
Equiv.refl
The identity permutation of a type, which maps each element to itself.

Written by a model (gemini-3.8-flash) from the Lean source alone (no goal states were available). Lean verified the proof; this explanation is a reading aid and is not itself machine-checked.

Lean source view module on GitHub

/-- Sanity lemma: under the identity seating, seat 0 has view (0, 0, 5, 1). -/theorem six_circle_view_refl_zero :    (Equiv.refl (Fin 6) 0, (0 : Fin 6), Equiv.refl (Fin 6) (0 - 1), Equiv.refl (Fin 6) (0 + 1)) =      ((0 : Fin 6), (0 : Fin 6), (5 : Fin 6), (1 : Fin 6)) := rfl
See it in the graphDiscuss this resultChallenge it