`BookProof.ChapterTimeTranslation.trace_eq_iff_isDeterministic` (U : Matrix (Fin n) (Fin n) ℂ) : (∀ (a : Fin n) (Ψ : Fin n → ℂ), (diagPart (rho Ψ) * measOp U a).trace = (rho Ψ * me
ProvedBookProof.ChapterTimeTranslation.trace_eq_iff_isDeterministictheoremstimepiece
Prove the following Lean 4 theorem from ChapterTimeTranslation.
BookProof.ChapterTimeTranslation.trace_eq_iff_isDeterministic (U : Matrix (Fin n) (Fin n) ℂ) : (∀ (a : Fin n) (Ψ : Fin n → ℂ), (diagPart (rho Ψ) * measOp U a).trace = (rho Ψ * measOp U a).trace) ↔ IsDeterministic U
Formalization note: Lean 4 identifier BookProof.ChapterTimeTranslation.trace_eq_iff_isDeterministic.
Preamble
-- Generated from ChapterTimeTranslation.lean — theorem BookProof.ChapterTimeTranslation.trace_eq_iff_isDeterministic
import Mathlib
import Definitions.Def_ChapterTimeTranslation
import Definitions.Def_ChapterReconstruct
open BookProof.ChapterReconstruct
open BookProof.ChapterTimeTranslation
open scoped BigOperators
open Finset Matrix
open BookProof.ChapterReconstruct
variable {n : ℕ}Formal statement
theorem BookProof.ChapterTimeTranslation.trace_eq_iff_isDeterministic (U : Matrix (Fin n) (Fin n) ℂ) :
(∀ (a : Fin n) (Ψ : Fin n → ℂ),
(diagPart (rho Ψ) * measOp U a).trace = (rho Ψ * measOp U a).trace)
↔ IsDeterministic U := by sorry