Reversibility of Conserved-Landscape Rule f_star
ProvedReversibleCA.f_star_reversibleThe non-trivial rule generates an involutive, bijective global map .
Preamble
import Lean
Formal statement
namespace ReversibleCA
def Coord : Type := Int × Int
def Config : Type := Coord → Bool
def Bijective {α β : Type} (f : α → β) : Prop := (∀ x y, f x = f y → x = y) ∧ (∀ y, ∃ x, f x = y)
def Nbhd : Type := Fin 3 × Fin 3
deriving BEq, DecidableEq
def LocalRule : Type := (Nbhd → Bool) → Bool
def globalMap (f : LocalRule) (c : Config) : Config :=
fun z => f (fun ⟨i, j⟩ => c (z.1 + (i.val - 1 : Int), z.2 + (j.val - 1 : Int)))
def IsReversible (f : LocalRule) : Prop := Bijective (globalMap f)
def is_p_star (nb : Nbhd → Bool) : Bool :=
nb (0, 1) && nb (2, 0) &&
! nb (0, 0) && ! nb (0, 2) && ! nb (1, 0) && ! nb (1, 2) && ! nb (2, 1) && ! nb (2, 2)
def f_star : LocalRule :=
fun nb => Bool.xor (nb (1, 1)) (is_p_star nb)
theorem f_star_reversible : IsReversible f_star := by sorry
end ReversibleCAHuman review
Confirmed by the mission captain (proposal self-audit).