Documentation

CslibFrontier.Foundations.LinearAlgebra.Matrix.BlockEmbedding

Entrywise representations as block matrices #

A ring homomorphism from R to square matrices over S extends entrywise to a ring homomorphism from square matrices over R to flattened block matrices over S. The extension is faithful when the entry representation is faithful.

Main definitions #

Main results #

References #

The definition is extracted from OpenAI's formalization [OAI26h] at revision adc7f1241b42e322a6451854ab7e4b4c146bf78a (BlockDivision.lean), via the complexitylib port [Sch26d] at revision add0aca8ee0d71e68969f2cb45cf91554a50f787.

The same construction is the block lift ϕ in the QR-UOV Round-3 Specification [FIH+26], §4.1, p. 17, applied to the injective regular representation of quotient-ring multiplication from Equation (4) and Lemma 1 in §3.2, p. 13.

def Matrix.blockEmbedding {R : Type u_1} {S : Type u_2} {m : Type u_3} {κ : Type u_4} [Semiring R] [Semiring S] [Fintype m] [DecidableEq m] [Fintype κ] [DecidableEq κ] (φ : R →+* Matrix κ κ S) :
Matrix m m R →+* Matrix (m × κ) (m × κ) S

Extend a matrix representation entrywise to flattened block matrices. Its body is exposed because the rational rank clients unfold the flattened entries.

theorem Matrix.blockEmbedding_apply {R : Type u_1} {S : Type u_2} {m : Type u_3} {κ : Type u_4} [Semiring R] [Semiring S] [Fintype m] [DecidableEq m] [Fintype κ] [DecidableEq κ] (φ : R →+* Matrix κ κ S) (A : Matrix m m R) (i j : m × κ) :
(blockEmbedding φ) A i j = φ (A i.1 j.1) i.2 j.2

An entry of the flattened block matrix is the corresponding entry of the represented source entry.

theorem Matrix.blockEmbedding_injective {R : Type u_1} {S : Type u_2} {m : Type u_3} {κ : Type u_4} [Semiring R] [Semiring S] [Fintype m] [DecidableEq m] [Fintype κ] [DecidableEq κ] (φ : R →+* Matrix κ κ S) (hφ : Function.Injective ⇑φ) :

Extending an injective entry representation to block matrices remains injective.