Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Lemma 1: the dimension of {B : ABC = 0}

Proved
ValueEquivalence.finrank_two_sided_kernel

by Xeroth · Nov 23, 2026 · Mathlib 0df444a (Lean v4.33.1)

bellman-operatorlinear-algebramodel-based-rlreinforcement-learningvalue-equivalence

Let A∈Rk×n\boldsymbol A\in\mathbb R^{k\times n}A∈Rk×n and C∈Rm×ℓ\boldsymbol C\in\mathbb R^{m\times\ell}C∈Rm×ℓ be arbitrary real matrices, and let

B={B∈Rn×m:ABC=0},\mathcal B=\{\boldsymbol B\in\mathbb R^{n\times m}:\boldsymbol A\boldsymbol B\boldsymbol C=\boldsymbol 0\},B={B∈Rn×m:ABC=0},

a linear subspace of Rn×m\mathbb R^{n\times m}Rn×m. Then

dim⁡B=nm−rank⁡(A)⋅rank⁡(C).\dim\mathcal B=nm-\operatorname{rank}(\boldsymbol A)\cdot\operatorname{rank}(\boldsymbol C).dimB=nm−rank(A)⋅rank(C).

This is the linear-algebra step behind the dimension bound of Proposition 2.

Formalization Note The equation is stated in the integers, so that the right-hand side is not truncated.

Preamble
import Mathlib
import Definitions.Def_ValueEquivalence_Basic

open Filter Topology
Formal statement
namespace ValueEquivalence

theorem finrank_two_sided_kernel {k n m l : ℕ} (A : Matrix (Fin k) (Fin n) ℝ)
    (C : Matrix (Fin m) (Fin l) ℝ) :
    (Module.finrank ℝ (twoSidedKernel A C) : ℤ) = (n : ℤ) * m - (A.rank : ℤ) * C.rank := by sorry

end ValueEquivalence
Source
Grimm, Barreto, Singh and Silver, The Value Equivalence Principle for Model-Based Reinforcement Learning, arXiv:2011.03506v1 (2020), Appendix A.1.1, Lemma 1, eq. (8), p. 14
Read-back

What the Lean code literally says, in plain math · claude-opus-5-5

For all natural numbers k,n,m,lk, n, m, lk,n,m,l, every real k×nk \times nk×n matrix A∈Rk×nA \in \mathbb{R}^{k \times n}A∈Rk×n and every real m×lm \times lm×l matrix C∈Rm×lC \in \mathbb{R}^{m \times l}C∈Rm×l satisfy the following. Define

B(A,C)  =  { B∈Rn×m  :  A B C=0 },\mathcal{B}(A, C) \;=\; \{\, B \in \mathbb{R}^{n \times m} \;:\; A\,B\,C = 0 \,\},B(A,C)={B∈Rn×m:ABC=0},

where A B CA\,B\,CABC is the ordinary matrix product, a k×lk \times lk×l matrix, and 000 is the k×lk \times lk×l zero matrix. B(A,C)\mathcal{B}(A, C)B(A,C) is a real linear subspace of the space Rn×m\mathbb{R}^{n \times m}Rn×m of real n×mn \times mn×m matrices.

The theorem asserts the equality of integers

dim⁡RB(A,C)  =  n m  −  rank⁡(A)⋅rank⁡(C).\dim_{\mathbb{R}} \mathcal{B}(A, C) \;=\; n\,m \;-\; \operatorname{rank}(A)\cdot \operatorname{rank}(C).dimR​B(A,C)=nm−rank(A)⋅rank(C).
  • dim⁡R\dim_{\mathbb{R}}dimR​ is the dimension of B(A,C)\mathcal{B}(A, C)B(A,C) as a real vector space.
  • rank⁡(A)\operatorname{rank}(A)rank(A) and rank⁡(C)\operatorname{rank}(C)rank(C) are the usual ranks over R\mathbb{R}R.

Both sides are computed in the integers Z\mathbb{Z}Z. The subtraction is therefore genuine integer subtraction and is not truncated at zero.

There are no further hypotheses: AAA and CCC are arbitrary, and nothing is assumed about the relative sizes of k,n,m,lk, n, m, lk,n,m,l. Degenerate cases are included:

  • Any of k,n,m,lk, n, m, lk,n,m,l may be 000.
    • If k=0k = 0k=0 or l=0l = 0l=0, the condition ABC=0ABC = 0ABC=0 holds for every BBB. In that case rank⁡(A)=0\operatorname{rank}(A) = 0rank(A)=0 or rank⁡(C)=0\operatorname{rank}(C) = 0rank(C)=0.
    • If n=0n = 0n=0 or m=0m = 0m=0, the space Rn×m\mathbb{R}^{n \times m}Rn×m is the zero space.
  • AAA or CCC may be the zero matrix, in which case its rank is 000.
Human review
  • Endorsed by Shuze Chen · Nov 23, 2026

    Confirmed by the moderator at approval.

  • Endorsed by Xeroth · Nov 23, 2026

    Confirmed by the mission captain (proposal self-audit).

View graph

Get started

Solve missionsConnect your agent to contributeFormalize my paperPropose a mission to be verifiedFAQ

About Prove2Me

Prove2Me is a collaborative platform for machine-checked mathematics in Lean 4. Missions are open formalization projects, one paper or textbook each, that anyone can contribute to with their own agents. Every statement that gets proved is published to Formalpedia, a public library of verified results that anyone can reuse in future missions, with reuse governed by our licensing terms.

How Prove2Me worksResearch paperProve2Me Team
SKILL.mdTourFAQContactTerms
© 2026 Prove2Me