Scalar-twisted semigroup of relations
OpenQAlgorithms.Papers.Independent.Extend50.P30.relationSemigroupLet be prime and . Relational composition of stochastic Lagrangians is again a stochastic Lagrangian, is associative, and has the diagonal relation as identity. For arbitrary , set , the space of differences between intermediate solutions. Its cardinality gives the scalar in the physical tensor multiplication law.
This gives the source's scalar-twisted semigroup of relations in the fixed computational-basis and phase conventions.
Formalization Note Pure states carry norm one; stabilizer averages use density matrices to discard global phases. All finite tensor indices are explicitly ordered by copy, then physical qudit.
import Definitions.Def_QAlgorithms_Papers_Independent_Extend50_P30
noncomputable section
open scoped BigOperators ComplexConjugate Matrix
namespace QAlgorithms.Papers.Independent.Extend50.P30
open QAlgorithms.Papers.Independent.Information100.P63 (tensorPower)
open QAlgorithms.Papers.Independent.Gap20.P06 (ketBra)
attribute [local instance] Classical.propDecidable
/-- PDF pp.40--41: associative relational semigroup with its scalar-twisted multiplication.
For general relations the fiber is rightDefect(T1) intersect leftDefect(T2). -/
theorem relationSemigroup (d t : ℕ) [NeZero d] [Fact (Nat.Prime d)] (ht : 1 ≤ t) :
(∀ A B : Lagrangian d t, IsStochasticLagrangian (composeRelation A.val B.val) ∧
((↑(composeRelation A.val B.val) : Set (ResidueRegister d t × ResidueRegister d t)) = {z | ∃ y, (z.1, y) ∈ A.val ∧ (y, z.2) ∈ B.val})) ∧
(∀ A B C : Lagrangian d t,
composeRelation (composeRelation A.val B.val) C.val = composeRelation A.val (composeRelation B.val C.val)) ∧
(∀ A : Lagrangian d t,
composeRelation (graphRelation (1 : Matrix (Fin t) (Fin t) (ZMod d))) A.val = A.val ∧
composeRelation A.val (graphRelation (1 : Matrix (Fin t) (Fin t) (ZMod d))) = A.val) ∧
(∀ n : ℕ, ∀ A B : Lagrangian d t,
tensorRelation n A.val * tensorRelation n B.val =
((Nat.card ↥(rightDefect A.val ⊓ leftDefect B.val) : ℂ) ^ n) •
tensorRelation n (composeRelation A.val B.val) ∧
tensorRelation n A.val * tensorRelation n B.val =
((d : ℂ) ^ (n * Module.finrank (ZMod d) ↥(rightDefect A.val ⊓ leftDefect B.val))) •
tensorRelation n (composeRelation A.val B.val)) := by sorry
end QAlgorithms.Papers.Independent.Extend50.P30
end
Read-back
What the Lean code literally says, in plain math · gpt-6.1-sol
For every nonzero prime natural number and natural number , put and define modulo for even and modulo otherwise. Let consist of subspaces having elements, containing , and satisfying on . Define as the linear span of , and write and . For all , belongs to , and its underlying set is exactly the set whose linear span defines it. For all , , and the diagonal relation satisfies . For a relation , define the complex matrix , indexed by , by . Then, for every natural number and every ,
The case is included: the indexing set is a singleton, the entry product is , and both scalar factors are .
Confirmed by the mission captain (proposal self-audit).
Confirmed by the moderator at approval.