Gate and reachable I/O safety for compiled quantum Turing machines
DefinitionQuantumKtSoI_RunSafekolmogorov-complexityquantum-computingturing-machines
Defines four structural and reachable safety predicates for the multi-tape quantum Turing machines of Section 3 (Machine):
- Gate safety (
GateSafe M): in every gate state , the gate tapes are pairwise distinct and all of typequbit. - Classical agreement (
ClassicalAgree v): every two configurations in the support of a state vector have the same control state, identical head positions on every tape, and identical contents on every classical tape. - Output-tape shape bound (
OutTapeOK s c): a tape content carries the endmarker at cell , only symbols in at nonzero cells, and blanks at every cell outside . - Reachable runtime safety (
RunSafe M): is gate-safe, has distinct classical input and output tapes, and along every nonzero record branch of length on input , every configuration preserves the read-only input tape, satisfiesOutTapeOK son the output tape, and keeps both I/O heads in .
These predicates isolate the exact hypotheses needed for the record law (Lemma 3.3) and for inductive reasoning over compiled descriptions in sequencing (Lemma 3.9) and repetition (Lemma 3.10), where ampMachine preserves reachable I/O safety even though unreachable scanned tuples in its loading/comparison routines do not satisfy the global Machine.Valid transition axiom.
Formalization Note Built directly on Definitions.Def_QuantumKtSoI_Desc inside namespace QuantumKtSoI.
Definition code
import Mathlib
import Definitions.Def_QuantumKtSoI_Desc
namespace QuantumKtSoI
/-- Minimal structural safety needed for the record law (Lemma 3.3): gate states act on
distinct qubit tapes. Unlike `Machine.Valid`, this holds for every compiled description
machine `e.machine G`, including `ampMachine`. -/
structure GateSafe (M : Machine) : Prop where
gate_inj : ∀ p, M.IsGateState p → Function.Injective (M.gtapes p)
gate_qubit : ∀ p, M.IsGateState p → ∀ i, M.kind (M.gtapes p i) = TapeKind.qubit
/-- All configurations in the support of a state vector `v` share the same control state,
all head positions, and all classical tape contents. -/
def ClassicalAgree {M : Machine} (v : M.Config →₀ ℂ) : Prop :=
∀ C ∈ v.support, ∀ C' ∈ v.support,
C.state = C'.state ∧ C.head = C'.head ∧
∀ t, M.kind t = TapeKind.classical → C.cont t = C'.cont t
/-- Output-tape invariant at step bound `s`: endmarker `⊢` at cell `0`, only `{0, 1, #}` at
nonzero cells, and blanks outside `[0, s]`. -/
def OutTapeOK (s : ℕ) (c : ℤ → Sym) : Prop :=
c 0 = Sym.mark ∧
(∀ j : ℤ, j ≠ 0 → c j = Sym.b0 ∨ c j = Sym.b1 ∨ c j = Sym.blank) ∧
(∀ j : ℤ, j < 0 ∨ (s : ℤ) < j → c j = Sym.blank)
/-- Reachable runtime safety for a machine `M`: structural gate and I/O safety together with
input/output tape invariants along every nonzero classical record branch. -/
structure RunSafe (M : Machine) : Prop extends GateSafe M where
io_ne : M.inT ≠ M.outT
in_kind : M.kind M.inT = TapeKind.classical
out_kind : M.kind M.outT = TapeKind.classical
reach_ok : ∀ (x : List Bool) (ρ : List M.Record) (C : M.Config),
C ∈ (M.branch x ρ).support →
C.cont M.inT = stringTape x ∧
0 ≤ C.head M.inT ∧ C.head M.inT ≤ ρ.length ∧
OutTapeOK ρ.length (C.cont M.outT) ∧
0 ≤ C.head M.outT ∧ C.head M.outT ≤ ρ.length
end QuantumKtSoI
Source
Myrisiotis, Failure of Symmetry of Information for Quantum Computations (STOC 2027 submission, held version sha256 6616571c...), Section 3 (pp. 20-28), Lemmas 3.3, 3.9, 3.10