Finite tests certify an emulation of a finite-state system
ProvedMindUploadTheory.finite_test_certifies_emulationLet and be deterministic Moore machines over the same input alphabet and output set . Machine has states , transition map and output map ; machine has states , transition map and output map . For a word write for the state reached from after reading letter by letter. Fix start states of and of . If
then the same equality holds for every word .
In the formal program of mind-upload.com, models the original system and a candidate emulation with known bounds on the number of states. The theorem says that a finite battery of input experiments certifies that the emulation reproduces every behaviour of the original.
Formalization Note States are Fin n and Fin m, words are List I read with List.foldl, and is natural-number subtraction.
import Mathlib.Data.Fin.Basic
namespace MindUploadTheory
theorem finite_test_certifies_emulation {I O : Type*} (n m : Nat)
(step₁ : Fin n → I → Fin n) (out₁ : Fin n → O)
(step₂ : Fin m → I → Fin m) (out₂ : Fin m → O) (p : Fin n) (q : Fin m)
(h : ∀ w : List I, w.length ≤ n + m - 2 →
out₁ (w.foldl step₁ p) = out₂ (w.foldl step₂ q)) :
∀ w : List I, out₁ (w.foldl step₁ p) = out₂ (w.foldl step₂ q) := by sorry
end MindUploadTheory