Documentation

CslibFrontier.Computability.Circuit.Arithmetic.Separation.Tape.RunRename

Renaming the inputs of an automaton, and change of rings #

An equivalence φ : J ≃ J' of the input names renames the channels (Tape.Ch.congr) and the letters (Tape.Letter.congr). Renaming keeps what a run emits (Tape.emit_congr), so the value of an automaton does not change when its letters and its inputs are renamed together (Tape.runVal_congr). A ring homomorphism applied to the matrices maps the value (Tape.runVal_map).

Main definitions #

Main results #

References #

def Cslib.Circuits.Arithmetic.Separation.Tape.Ch.congr {J J' : Type} (S : Type) (φ : J ≃ J') :
Ch S J ≃ Ch S J'

Renaming the input channels along φ.

@[simp]
theorem Cslib.Circuits.Arithmetic.Separation.Tape.Ch.congr_tp {S J J' : Type} (φ : J ≃ J') (s : S) (b : Bool) :
(congr S φ) (tp s b) = tp s b
@[simp]
theorem Cslib.Circuits.Arithmetic.Separation.Tape.Ch.congr_inp {S J J' : Type} (φ : J ≃ J') (j : J) :
(congr S φ) (inp j) = inp (φ j)
def Cslib.Circuits.Arithmetic.Separation.Tape.Letter.congr {J J' : Type} (S Γ : Type) (φ : J ≃ J') :
Letter S J Γ ≃ Letter S J' Γ

Renaming the input channels in letters.

theorem Cslib.Circuits.Arithmetic.Separation.Tape.emit_congr {S J J' Γ : Type} [DecidableEq S] [DecidableEq J] [DecidableEq J'] (φ : J ≃ J') (o : List (Letter S J Γ)) (z : Ch S J) :
emit (List.map (⇑(Letter.congr S Γ φ)) o) ((Ch.congr S φ) z) = emit o z

Renaming keeps what a run emits on each channel.

theorem Cslib.Circuits.Arithmetic.Separation.Tape.runVal_congr {S J J' Γ : Type} [DecidableEq S] [DecidableEq J] [DecidableEq J'] {F : Type u_1} [CommRing F] {Q : Type} [Fintype Q] [DecidableEq Q] [Fintype Γ] [DecidableEq Γ] [Fintype S] [Fintype J] [Fintype J'] (φ : J ≃ J') (mu : Letter S J' Γ → Matrix Q Q F) (i e : Q) (t : ℕ) (u : J' → List Γ) :
(runVal (fun (a : Letter S J Γ) => mu ((Letter.congr S Γ φ) a)) i e t fun (j : J) => u (φ j)) = runVal mu i e t u

Renaming the inputs does not change the value of an automaton.

theorem Cslib.Circuits.Arithmetic.Separation.Tape.runVal_map {S J Γ : Type} [DecidableEq S] [DecidableEq J] {F : Type u_1} [CommRing F] {Q : Type} [Fintype Q] [DecidableEq Q] [Fintype Γ] [DecidableEq Γ] [Fintype S] [Fintype J] {K : Type u_2} [CommRing K] (f : F →+* K) (mu : Letter S J Γ → Matrix Q Q F) (i e : Q) (t : ℕ) (u : J → List Γ) :
runVal (fun (a : Letter S J Γ) => (mu a).map ⇑f) i e t u = f (runVal mu i e t u)

Change of rings: the value of an automaton with the matrices mapped by a ring homomorphism is the image of its value.