Lefebvre's variations, No. 279 — on a theme by R. G. Mir: exactly six of the 256 binary three-cell local rules on the integer line are reversible
ProvedLefebvreVariations.reversible_elementary_ca_countA local rule is a function , acting on configurations by
Call reversible if is a bijection of . Then exactly six of the local rules are reversible:
namely the identity (, rule 204), its complement (rule 51), the left shift (, rule 240) and right shift (, rule 170), and the shifts with complement (rules 15 and 85).
How many binary local rules on the Moore neighbourhood of have a bijective global map is an open counting problem with a large known lower bound; the same count for the three-cell neighbourhood of is the first non-trivial size, and equals .
Formalization Note Set.ncard of the set of rules f : (Fin 3 → Bool) → Bool whose global map fun c z => f (fun i => c (z + i - 1)) on ℤ → Bool is Function.Bijective, with the neighbourhood Fin 3 indexed by i offset i - 1. The set is finite (a subset of a type with 2^8 elements), so ncard is the true count. The notion of reversibility (bijective global map) is the one of ReversibleCA.IsReversible, here in dimension one.
Why this is a variation. A variation on the open platform problem ReversibleCA.tighter_lower_bound_R (a lower bound N > 33,070,982 on the number R of reversible binary local rules on the 3 x 3 Moore neighbourhood of Z^2, from Mir's ladder of bounds), played in dimension one, where the three-cell neighbourhood is the first non-trivial size and the exact count is 6. It uses the same notion of reversibility (bijective global map) as the parent but is an exact count in another dimension, not a special case or a formal consequence of the parent.
Attribution. This statement belongs to Lefebvre's variations, a series proposed by Erwan Lefebvre: each variation plays an open problem of the platform at its first non-trivial size, so that it can be settled and then reused to attack the open problem itself.
import Mathlib set_option autoImplicit false
namespace LefebvreVariations
/-- Exactly six of the `256` binary one-dimensional cellular automata with neighbourhood of three consecutive cells are reversible.
A local rule `f : (Fin 3 → Bool) → Bool` acts on configurations `c : ℤ → Bool` by `z ↦ f (c (z - 1), c z, c (z + 1))`, and it is reversible when this global map is a bijection of `ℤ → Bool`. The six rules are the identity, its complement and the left and right shifts with or without complement (Wolfram numbers 15, 51, 85, 170, 204, 240).
Source: Amoroso and Patt, *Decision procedures for surjectivity and injectivity of parallel maps for tessellation structures*, J. Comput. System Sci. 6 (1972) (cited from memory). -/
theorem reversible_elementary_ca_count :
Set.ncard {f : (Fin 3 → Bool) → Bool |
Function.Bijective (fun (c : ℤ → Bool) (z : ℤ) =>
f (fun i : Fin 3 => c (z + ((i : ℕ) : ℤ) - 1)))} = 6 := by
sorry
end LefebvreVariations