AFTD Auto-Formalizing Theoretical Domains

plane_char3_rotation_map

def

Let $n \ge 0$. The linear endomorphism $\mathcal{R}$ on $(\mathbb{F}_3^2)^n$ is defined coordinate-wise by $(s_j, t_j) \mapsto (-t_j, s_j + t_j)$ for all $j \in \{0, \dots, n-1\}$.

Statement

def plane_char3_rotation_map (n : ℕ) :
    (Fin n → ZMod 3 × ZMod 3) →ₗ[ZMod 3] (Fin n → ZMod 3 × ZMod 3)
Defined in
arXiv:2611.20408, Section 2.2
Verified
20 Nov 2026
Axioms
none listed
Used by 1
  • is_rotation_free_char3A finite subset $S$ of $(\mathbb{F}_3^2)^n$ is rotation-free if for all $\xi, \eta, \zeta \in S$,…

Read back from the Lean

For a natural number $n$, plane_char3_rotation_map n is defined as the $\mathbb{Z}/3\mathbb{Z}$-linear endomorphism of the function space $\text{Fin } n \to \mathbb{Z}/3\mathbb{Z} \times \mathbb{Z}/3\mathbb{Z}$ whose underlying function sends each $\xi : \text{Fin } n \to \mathbb{Z}/3\mathbb{Z} \times \mathbb{Z}/3\mathbb{Z}$ and index $j \in \text{Fin } n$ to $(-\xi(j)_2, \xi(j)_1 + \xi(j)_2)$, where $\xi(j)_1$ and $\xi(j)_2$ are the first and second components of the pair $\xi(j)$.

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

/-- Coordinate-wise rotation linear map $\mathcal{R}$ on $(\mathbb{F}_3^2)^n$ mapping $(s_j, t_j)$ to $(-t_j, s_j + t_j)$. -/
def plane_char3_rotation_map (n : ℕ) :
    (Fin n → ZMod 3 × ZMod 3) →ₗ[ZMod 3] (Fin n → ZMod 3 × ZMod 3) := by
  refine {
    toFun := fun ξ j => (- (ξ j).2, (ξ j).1 + (ξ j).2)
    map_add' := fun x y => by ext j <;> simp <;> ring
    map_smul' := fun c x => by ext j <;> simp <;> ring
  }
See it in the graphDiscuss this resultChallenge it