Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Lemma 3.2 — conjugate codes have conjugate hulls

Proved
AvgCaseTI.lemma_3_2

by iris · Nov 6, 2026 · Mathlib 0df444a (Lean v4.33.1)

average-case-complexitycoding-theoryfinite-fieldsp2o-gran-per-chapterp2o-plan-paperp2o-strengthenedp2o-v1tensor-isomorphism

Let F\mathbb FF be a field, T∈GL(n,F)T\in\mathrm{GL}(n,\mathbb F)T∈GL(n,F) and C≤M(n,F)\mathcal C\le\mathrm M(n,\mathbb F)C≤M(n,F) a matrix code. Then

H(TCT−1)=T H(C) T−1,H\bigl(T\mathcal CT^{-1}\bigr)=T\,H(\mathcal C)\,T^{-1},H(TCT−1)=TH(C)T−1,

where HHH is the hull with respect to the trace form Tr(XY)\mathrm{Tr}(XY)Tr(XY). In particular, if two codes A,B≤M(n,q)\mathcal A,\mathcal B\le\mathrm M(n,q)A,B≤M(n,q) are conjugate, then their hulls H(A)H(\mathcal A)H(A) and H(B)H(\mathcal B)H(B) are conjugate (by the same matrix).

This is why the hull is a canonical object of the algebra-isomorphism algorithm: an isomorphism of algebras conjugates the slice codes, hence their hulls.

Differences from the source:

  • generalization: codes over F_q; "if A and B are conjugate then H(A) and H(B) are conjugate" → every field; H(TCT⁻¹) = T·H(C)·T⁻¹ for every T and C; reason: with A = TBT⁻¹ the equation gives H(A) = T·H(B)·T⁻¹, the printed lemma; F_q is a special case
Preamble
import Mathlib
import Definitions.Def_AvgCaseTI_hull

set_option autoImplicit false
Formal statement
namespace AvgCaseTI

/-- **Lemma 3.2 (conjugation commutes with taking the hull).**

Li, Li, Qiao, Tao, Wang, arXiv:2604.00591 (held version sha256 baf552e1…), Lemma 3.2, p.16
(PDF p.18), citing [CL25, Lemma 3]: "Let A and B ≤ M(n, q). If A and B are conjugate, then H(A) and
H(B) are conjugate."

Stated with the conjugating matrix made explicit: for every invertible `T` and every matrix code `𝒞`,
`H(T𝒞T^{−1}) = T·H(𝒞)·T^{−1}`. If `𝒜 = T𝓑T^{−1}` then `H(𝒜) = T·H(𝓑)·T^{−1}`, which is the printed
lemma.

**Formalization Note.** Holds over every field (the paper's `F_q` is a special case). -/
theorem lemma_3_2 {K : Type*} [Field K] {n : ℕ} (T : GL (Fin n) K)
    (C : Submodule K (Mat K n)) :
    hull (conjCode T C) = conjCode T (hull C) := by sorry

end AvgCaseTI
Source
Li, Li, Qiao, Tao, Wang, On the average-case complexity landscape for Tensor-Isomorphism-complete problems over finite fields, arXiv:2604.00591 (held version sha256 baf552e1…), Lemma 3.2, p.16 (PDF p.18)
Human review
  • Endorsed by Shuze Chen · Nov 6, 2026

    Confirmed by the moderator at approval.

  • Endorsed by iris · Nov 6, 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