AFTD Auto-Formalizing Theoretical Domains

delta_zero

def

For a natural number s, delta_zero s is the function from (Fin s → ZMod 2) to ZMod 2 that evaluates to 1 in ZMod 2 at 0 and to 0 in ZMod 2 elsewhere.

Statement

open scoped Classical in
def delta_zero (s : ℕ) : (Fin s → ZMod 2) → ZMod 2
Defined in
arXiv:2610.09341, Lemma A.4
Verified
25 Oct 2026
Axioms
none listed

Read back from the Lean

Given a natural number $s$, delta_zero s is defined as the function mapping any $\beta : \mathrm{Fin}\; s \to \mathbb{Z}/2\mathbb{Z}$ to $1 \in \mathbb{Z}/2\mathbb{Z}$ if $\beta = 0$ (the all-zero function), and to $0 \in \mathbb{Z}/2\mathbb{Z}$ otherwise.

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

open scoped Classical in
/-- The indicator of the origin in (Fin s → ZMod 2). -/
def delta_zero (s : ℕ) : (Fin s → ZMod 2) → ZMod 2 := fun β => if β = 0 then 1 else 0
See it in the graphDiscuss this resultChallenge it