Module

DVRLength.lean

Nyll.SchemeTheory.RingTheory.Ramification.DVRLength
13 declarations indexed from sourceView source ↗

Length estimates for lattices over discrete valuation rings

Imports11
  • Mathlib.Algebra.Module.Submodule.Pointwise
  • Mathlib.Algebra.Module.Torsion.Basic
  • Mathlib.Algebra.NoZeroSMulDivisors.Pi
  • Mathlib.LinearAlgebra.Dimension.RankNullity
  • Mathlib.LinearAlgebra.Dimension.Localization
  • Mathlib.LinearAlgebra.Dimension.Torsion.Finite
  • Mathlib.LinearAlgebra.FreeModule.PID
  • Mathlib.LinearAlgebra.Quotient.Pi
  • Mathlib.RingTheory.DiscreteValuationRing.Basic
  • Mathlib.RingTheory.FiniteType
  • Mathlib.RingTheory.SimpleModule.Basic
Imported by2

Declarations

abbrev

SQ

L55 ↗
AbelianVarieties.NOSProofs.DVRLatticeLength.LatticeDrop.SQ

The quotient of a submodule by the inverse image of another submodule.

Source context 10 commands

Surrounding namespaces, section variables, and local commands at this declaration.

@[expose] public section
section
/-
Anthropic FLT upstream notice: Copyright 2026 Anthropic, PBC.
Released under Apache 2.0 license as described in the file LICENSE.
Adapted Anthropic FLT source (pinned revision):
https://github.com/anthropics/fermats-last-theorem/blob/6e837e75355538c7f80bab5b956861e86c4eacc2/P2M/Sol/S_IsDiscreteValuationRing_length_torsion_quotient_add_finrank_le_of_sq_smul_le_prod.lean
Upstream NOTICE: https://github.com/anthropics/fermats-last-theorem/blob/6e837e75355538c7f80bab5b956861e86c4eacc2/NOTICE
Upstream per-file ATTRIBUTION: https://github.com/anthropics/fermats-last-theorem/blob/6e837e75355538c7f80bab5b956861e86c4eacc2/ATTRIBUTION.md
Copies of these notices are retained in the AbelianVarieties directory.
Existing upstream author/copyright comments in the source are retained below.

Local adaptation and maintenance: Naganori Yamaguchi (https://github.com/n-yamaguchi-0729).
AI assistance in local adaptation and maintenance: OpenAI Codex.
-/
namespace AbelianVarieties
namespace NOSProofs
namespace DVRLatticeLength
open Module
universe u
namespace LatticeDrop
section Generic
variable {R : Type u} [CommRing R] {M : Type*} [AddCommGroup M] [Module R M]
abbrev SQ (A B : Submodule R M) : Type _
AbelianVarieties.NOSProofs.DVRLatticeLength.LatticeDrop.length_SQ_add
Source context 10 commands

Surrounding namespaces, section variables, and local commands at this declaration.

@[expose] public section
section
/-
Anthropic FLT upstream notice: Copyright 2026 Anthropic, PBC.
Released under Apache 2.0 license as described in the file LICENSE.
Adapted Anthropic FLT source (pinned revision):
https://github.com/anthropics/fermats-last-theorem/blob/6e837e75355538c7f80bab5b956861e86c4eacc2/P2M/Sol/S_IsDiscreteValuationRing_length_torsion_quotient_add_finrank_le_of_sq_smul_le_prod.lean
Upstream NOTICE: https://github.com/anthropics/fermats-last-theorem/blob/6e837e75355538c7f80bab5b956861e86c4eacc2/NOTICE
Upstream per-file ATTRIBUTION: https://github.com/anthropics/fermats-last-theorem/blob/6e837e75355538c7f80bab5b956861e86c4eacc2/ATTRIBUTION.md
Copies of these notices are retained in the AbelianVarieties directory.
Existing upstream author/copyright comments in the source are retained below.

Local adaptation and maintenance: Naganori Yamaguchi (https://github.com/n-yamaguchi-0729).
AI assistance in local adaptation and maintenance: OpenAI Codex.
-/
namespace AbelianVarieties
namespace NOSProofs
namespace DVRLatticeLength
open Module
universe u
namespace LatticeDrop
section Generic
variable {R : Type u} [CommRing R] {M : Type*} [AddCommGroup M] [Module R M]
theorem length_SQ_add (A B C : Submodule R M) (hAB : A ≤ B) (hBC : B ≤ C) :
    Module.length R (SQ A C) = Module.length R (SQ A B) + Module.length R (SQ B C)
AbelianVarieties.NOSProofs.DVRLatticeLength.LatticeDrop.sat

The inverse image of the torsion submodule of the quotient.

Source context 11 commands

Surrounding namespaces, section variables, and local commands at this declaration.

@[expose] public section
section
/-
Anthropic FLT upstream notice: Copyright 2026 Anthropic, PBC.
Released under Apache 2.0 license as described in the file LICENSE.
Adapted Anthropic FLT source (pinned revision):
https://github.com/anthropics/fermats-last-theorem/blob/6e837e75355538c7f80bab5b956861e86c4eacc2/P2M/Sol/S_IsDiscreteValuationRing_length_torsion_quotient_add_finrank_le_of_sq_smul_le_prod.lean
Upstream NOTICE: https://github.com/anthropics/fermats-last-theorem/blob/6e837e75355538c7f80bab5b956861e86c4eacc2/NOTICE
Upstream per-file ATTRIBUTION: https://github.com/anthropics/fermats-last-theorem/blob/6e837e75355538c7f80bab5b956861e86c4eacc2/ATTRIBUTION.md
Copies of these notices are retained in the AbelianVarieties directory.
Existing upstream author/copyright comments in the source are retained below.

Local adaptation and maintenance: Naganori Yamaguchi (https://github.com/n-yamaguchi-0729).
AI assistance in local adaptation and maintenance: OpenAI Codex.
-/
namespace AbelianVarieties
namespace NOSProofs
namespace DVRLatticeLength
open Module
universe u
namespace LatticeDrop
section Generic
variable {R : Type u} [CommRing R] {M : Type*} [AddCommGroup M] [Module R M]
variable [IsDomain R]
def sat (P : Submodule R M) : Submodule R M
AbelianVarieties.NOSProofs.DVRLatticeLength.LatticeDrop.mem_sat
Source context 11 commands

Surrounding namespaces, section variables, and local commands at this declaration.

@[expose] public section
section
/-
Anthropic FLT upstream notice: Copyright 2026 Anthropic, PBC.
Released under Apache 2.0 license as described in the file LICENSE.
Adapted Anthropic FLT source (pinned revision):
https://github.com/anthropics/fermats-last-theorem/blob/6e837e75355538c7f80bab5b956861e86c4eacc2/P2M/Sol/S_IsDiscreteValuationRing_length_torsion_quotient_add_finrank_le_of_sq_smul_le_prod.lean
Upstream NOTICE: https://github.com/anthropics/fermats-last-theorem/blob/6e837e75355538c7f80bab5b956861e86c4eacc2/NOTICE
Upstream per-file ATTRIBUTION: https://github.com/anthropics/fermats-last-theorem/blob/6e837e75355538c7f80bab5b956861e86c4eacc2/ATTRIBUTION.md
Copies of these notices are retained in the AbelianVarieties directory.
Existing upstream author/copyright comments in the source are retained below.

Local adaptation and maintenance: Naganori Yamaguchi (https://github.com/n-yamaguchi-0729).
AI assistance in local adaptation and maintenance: OpenAI Codex.
-/
namespace AbelianVarieties
namespace NOSProofs
namespace DVRLatticeLength
open Module
universe u
namespace LatticeDrop
section Generic
variable {R : Type u} [CommRing R] {M : Type*} [AddCommGroup M] [Module R M]
variable [IsDomain R]
theorem mem_sat {P : Submodule R M} {x : M} : x ∈ sat P ↔ ∃ a : R, a ≠ 0 ∧ a • x ∈ P
AbelianVarieties.NOSProofs.DVRLatticeLength.LatticeDrop.le_sat
Source context 11 commands

Surrounding namespaces, section variables, and local commands at this declaration.

@[expose] public section
section
/-
Anthropic FLT upstream notice: Copyright 2026 Anthropic, PBC.
Released under Apache 2.0 license as described in the file LICENSE.
Adapted Anthropic FLT source (pinned revision):
https://github.com/anthropics/fermats-last-theorem/blob/6e837e75355538c7f80bab5b956861e86c4eacc2/P2M/Sol/S_IsDiscreteValuationRing_length_torsion_quotient_add_finrank_le_of_sq_smul_le_prod.lean
Upstream NOTICE: https://github.com/anthropics/fermats-last-theorem/blob/6e837e75355538c7f80bab5b956861e86c4eacc2/NOTICE
Upstream per-file ATTRIBUTION: https://github.com/anthropics/fermats-last-theorem/blob/6e837e75355538c7f80bab5b956861e86c4eacc2/ATTRIBUTION.md
Copies of these notices are retained in the AbelianVarieties directory.
Existing upstream author/copyright comments in the source are retained below.

Local adaptation and maintenance: Naganori Yamaguchi (https://github.com/n-yamaguchi-0729).
AI assistance in local adaptation and maintenance: OpenAI Codex.
-/
namespace AbelianVarieties
namespace NOSProofs
namespace DVRLatticeLength
open Module
universe u
namespace LatticeDrop
section Generic
variable {R : Type u} [CommRing R] {M : Type*} [AddCommGroup M] [Module R M]
variable [IsDomain R]
theorem le_sat (P : Submodule R M) : P ≤ sat P
AbelianVarieties.NOSProofs.DVRLatticeLength.LatticeDrop.length_torsion_quot
Source context 11 commands

Surrounding namespaces, section variables, and local commands at this declaration.

@[expose] public section
section
/-
Anthropic FLT upstream notice: Copyright 2026 Anthropic, PBC.
Released under Apache 2.0 license as described in the file LICENSE.
Adapted Anthropic FLT source (pinned revision):
https://github.com/anthropics/fermats-last-theorem/blob/6e837e75355538c7f80bab5b956861e86c4eacc2/P2M/Sol/S_IsDiscreteValuationRing_length_torsion_quotient_add_finrank_le_of_sq_smul_le_prod.lean
Upstream NOTICE: https://github.com/anthropics/fermats-last-theorem/blob/6e837e75355538c7f80bab5b956861e86c4eacc2/NOTICE
Upstream per-file ATTRIBUTION: https://github.com/anthropics/fermats-last-theorem/blob/6e837e75355538c7f80bab5b956861e86c4eacc2/ATTRIBUTION.md
Copies of these notices are retained in the AbelianVarieties directory.
Existing upstream author/copyright comments in the source are retained below.

Local adaptation and maintenance: Naganori Yamaguchi (https://github.com/n-yamaguchi-0729).
AI assistance in local adaptation and maintenance: OpenAI Codex.
-/
namespace AbelianVarieties
namespace NOSProofs
namespace DVRLatticeLength
open Module
universe u
namespace LatticeDrop
section Generic
variable {R : Type u} [CommRing R] {M : Type*} [AddCommGroup M] [Module R M]
variable [IsDomain R]
theorem length_torsion_quot (F P : Submodule R M) :
    Module.length R (Submodule.torsion R (↥F ⧸ P.comap F.subtype)) = Module.length R (SQ P (F ⊓ sat
        P))
AbelianVarieties.NOSProofs.DVRLatticeLength.LatticeDrop.length_torsion_quot_top
Source context 12 commands

Surrounding namespaces, section variables, and local commands at this declaration.

@[expose] public section
section
/-
Anthropic FLT upstream notice: Copyright 2026 Anthropic, PBC.
Released under Apache 2.0 license as described in the file LICENSE.
Adapted Anthropic FLT source (pinned revision):
https://github.com/anthropics/fermats-last-theorem/blob/6e837e75355538c7f80bab5b956861e86c4eacc2/P2M/Sol/S_IsDiscreteValuationRing_length_torsion_quotient_add_finrank_le_of_sq_smul_le_prod.lean
Upstream NOTICE: https://github.com/anthropics/fermats-last-theorem/blob/6e837e75355538c7f80bab5b956861e86c4eacc2/NOTICE
Upstream per-file ATTRIBUTION: https://github.com/anthropics/fermats-last-theorem/blob/6e837e75355538c7f80bab5b956861e86c4eacc2/ATTRIBUTION.md
Copies of these notices are retained in the AbelianVarieties directory.
Existing upstream author/copyright comments in the source are retained below.

Local adaptation and maintenance: Naganori Yamaguchi (https://github.com/n-yamaguchi-0729).
AI assistance in local adaptation and maintenance: OpenAI Codex.
-/
namespace AbelianVarieties
namespace NOSProofs
namespace DVRLatticeLength
open Module
universe u
namespace LatticeDrop
section Main
open Pointwise
variable {R : Type u} [CommRing R] [IsDomain R] {M : Type*} [AddCommGroup M] [Module R M]
omit [IsDomain R] in
theorem length_torsion_quot_top (P : Submodule R M) :
    Module.length R (Submodule.torsion R (M ⧸ P)) = Module.length R (SQ P (sat P))
AbelianVarieties.NOSProofs.DVRLatticeLength.LatticeDrop.sat_smul_eq
Source context 13 commands

Surrounding namespaces, section variables, and local commands at this declaration.

@[expose] public section
section
/-
Anthropic FLT upstream notice: Copyright 2026 Anthropic, PBC.
Released under Apache 2.0 license as described in the file LICENSE.
Adapted Anthropic FLT source (pinned revision):
https://github.com/anthropics/fermats-last-theorem/blob/6e837e75355538c7f80bab5b956861e86c4eacc2/P2M/Sol/S_IsDiscreteValuationRing_length_torsion_quotient_add_finrank_le_of_sq_smul_le_prod.lean
Upstream NOTICE: https://github.com/anthropics/fermats-last-theorem/blob/6e837e75355538c7f80bab5b956861e86c4eacc2/NOTICE
Upstream per-file ATTRIBUTION: https://github.com/anthropics/fermats-last-theorem/blob/6e837e75355538c7f80bab5b956861e86c4eacc2/ATTRIBUTION.md
Copies of these notices are retained in the AbelianVarieties directory.
Existing upstream author/copyright comments in the source are retained below.

Local adaptation and maintenance: Naganori Yamaguchi (https://github.com/n-yamaguchi-0729).
AI assistance in local adaptation and maintenance: OpenAI Codex.
-/
namespace AbelianVarieties
namespace NOSProofs
namespace DVRLatticeLength
open Module
universe u
namespace LatticeDrop
section Main
open Pointwise
variable {R : Type u} [CommRing R] [IsDomain R] {M : Type*} [AddCommGroup M] [Module R M]
variable [NoZeroSMulDivisors R M]
omit [NoZeroSMulDivisors R M] in
theorem sat_smul_eq (a : R) (ha : a ≠ 0) (P : Submodule R M) : sat (a • P) = sat P
AbelianVarieties.NOSProofs.DVRLatticeLength.LatticeDrop.length_SQ_smul
Source context 12 commands

Surrounding namespaces, section variables, and local commands at this declaration.

@[expose] public section
section
/-
Anthropic FLT upstream notice: Copyright 2026 Anthropic, PBC.
Released under Apache 2.0 license as described in the file LICENSE.
Adapted Anthropic FLT source (pinned revision):
https://github.com/anthropics/fermats-last-theorem/blob/6e837e75355538c7f80bab5b956861e86c4eacc2/P2M/Sol/S_IsDiscreteValuationRing_length_torsion_quotient_add_finrank_le_of_sq_smul_le_prod.lean
Upstream NOTICE: https://github.com/anthropics/fermats-last-theorem/blob/6e837e75355538c7f80bab5b956861e86c4eacc2/NOTICE
Upstream per-file ATTRIBUTION: https://github.com/anthropics/fermats-last-theorem/blob/6e837e75355538c7f80bab5b956861e86c4eacc2/ATTRIBUTION.md
Copies of these notices are retained in the AbelianVarieties directory.
Existing upstream author/copyright comments in the source are retained below.

Local adaptation and maintenance: Naganori Yamaguchi (https://github.com/n-yamaguchi-0729).
AI assistance in local adaptation and maintenance: OpenAI Codex.
-/
namespace AbelianVarieties
namespace NOSProofs
namespace DVRLatticeLength
open Module
universe u
namespace LatticeDrop
section Main
open Pointwise
variable {R : Type u} [CommRing R] [IsDomain R] {M : Type*} [AddCommGroup M] [Module R M]
variable [NoZeroSMulDivisors R M]
theorem length_SQ_smul (a : R) (ha : a ≠ 0) (A B : Submodule R M) :
    Module.length R (SQ (a • A) (a • B)) = Module.length R (SQ A B)
AbelianVarieties.NOSProofs.DVRLatticeLength.LatticeDrop.finrank_SQ_eq_zero
Source context 13 commands

Surrounding namespaces, section variables, and local commands at this declaration.

@[expose] public section
section
/-
Anthropic FLT upstream notice: Copyright 2026 Anthropic, PBC.
Released under Apache 2.0 license as described in the file LICENSE.
Adapted Anthropic FLT source (pinned revision):
https://github.com/anthropics/fermats-last-theorem/blob/6e837e75355538c7f80bab5b956861e86c4eacc2/P2M/Sol/S_IsDiscreteValuationRing_length_torsion_quotient_add_finrank_le_of_sq_smul_le_prod.lean
Upstream NOTICE: https://github.com/anthropics/fermats-last-theorem/blob/6e837e75355538c7f80bab5b956861e86c4eacc2/NOTICE
Upstream per-file ATTRIBUTION: https://github.com/anthropics/fermats-last-theorem/blob/6e837e75355538c7f80bab5b956861e86c4eacc2/ATTRIBUTION.md
Copies of these notices are retained in the AbelianVarieties directory.
Existing upstream author/copyright comments in the source are retained below.

Local adaptation and maintenance: Naganori Yamaguchi (https://github.com/n-yamaguchi-0729).
AI assistance in local adaptation and maintenance: OpenAI Codex.
-/
namespace AbelianVarieties
namespace NOSProofs
namespace DVRLatticeLength
open Module
universe u
namespace LatticeDrop
section Main
open Pointwise
variable {R : Type u} [CommRing R] [IsDomain R] {M : Type*} [AddCommGroup M] [Module R M]
variable [NoZeroSMulDivisors R M]
omit [NoZeroSMulDivisors R M] in
theorem finrank_SQ_eq_zero [Module.Finite R M] [IsNoetherianRing R] (A B : Submodule R M) (hB : B ≤
    sat A) :
    Module.finrank R (SQ A B) = 0
AbelianVarieties.NOSProofs.DVRLatticeLength.LatticeDrop.length_quot_smul_top_of_free
Source context 13 commands

Surrounding namespaces, section variables, and local commands at this declaration.

@[expose] public section
section
/-
Anthropic FLT upstream notice: Copyright 2026 Anthropic, PBC.
Released under Apache 2.0 license as described in the file LICENSE.
Adapted Anthropic FLT source (pinned revision):
https://github.com/anthropics/fermats-last-theorem/blob/6e837e75355538c7f80bab5b956861e86c4eacc2/P2M/Sol/S_IsDiscreteValuationRing_length_torsion_quotient_add_finrank_le_of_sq_smul_le_prod.lean
Upstream NOTICE: https://github.com/anthropics/fermats-last-theorem/blob/6e837e75355538c7f80bab5b956861e86c4eacc2/NOTICE
Upstream per-file ATTRIBUTION: https://github.com/anthropics/fermats-last-theorem/blob/6e837e75355538c7f80bab5b956861e86c4eacc2/ATTRIBUTION.md
Copies of these notices are retained in the AbelianVarieties directory.
Existing upstream author/copyright comments in the source are retained below.

Local adaptation and maintenance: Naganori Yamaguchi (https://github.com/n-yamaguchi-0729).
AI assistance in local adaptation and maintenance: OpenAI Codex.
-/
namespace AbelianVarieties
namespace NOSProofs
namespace DVRLatticeLength
open Module
universe u
namespace LatticeDrop
section Main
open Pointwise
variable {R : Type u} [CommRing R] [IsDomain R] {M : Type*} [AddCommGroup M] [Module R M]
variable [NoZeroSMulDivisors R M]
omit [NoZeroSMulDivisors R M] in
theorem length_quot_smul_top_of_free {L : Type*} [AddCommGroup L] [Module R L] [Module.Free R L]
    [Module.Finite R L]
    (π : R) (hπ : (Ideal.span {π} : Ideal R).IsMaximal) :
    Module.length R (L ⧸ (π • (⊤ : Submodule R L))) = Module.finrank R L
AbelianVarieties.NOSProofs.DVRLatticeLength.LatticeDrop.main
Source context 12 commands

Surrounding namespaces, section variables, and local commands at this declaration.

@[expose] public section
section
/-
Anthropic FLT upstream notice: Copyright 2026 Anthropic, PBC.
Released under Apache 2.0 license as described in the file LICENSE.
Adapted Anthropic FLT source (pinned revision):
https://github.com/anthropics/fermats-last-theorem/blob/6e837e75355538c7f80bab5b956861e86c4eacc2/P2M/Sol/S_IsDiscreteValuationRing_length_torsion_quotient_add_finrank_le_of_sq_smul_le_prod.lean
Upstream NOTICE: https://github.com/anthropics/fermats-last-theorem/blob/6e837e75355538c7f80bab5b956861e86c4eacc2/NOTICE
Upstream per-file ATTRIBUTION: https://github.com/anthropics/fermats-last-theorem/blob/6e837e75355538c7f80bab5b956861e86c4eacc2/ATTRIBUTION.md
Copies of these notices are retained in the AbelianVarieties directory.
Existing upstream author/copyright comments in the source are retained below.

Local adaptation and maintenance: Naganori Yamaguchi (https://github.com/n-yamaguchi-0729).
AI assistance in local adaptation and maintenance: OpenAI Codex.
-/
namespace AbelianVarieties
namespace NOSProofs
namespace DVRLatticeLength
open Module
universe u
namespace LatticeDrop
section Main
open Pointwise
variable {R : Type u} [CommRing R] [IsDomain R] {M : Type*} [AddCommGroup M] [Module R M]
variable [NoZeroSMulDivisors R M]
theorem main [IsDiscreteValuationRing R]
    (π : R) (hπ : Irreducible π) (r n : ℕ)
    (N'' : Submodule R ((Fin r → R) × (Fin n → R)))
    (_hN : (Ideal.span {π ^ 2} : Ideal R) • N'' ≤ (⊤ : Submodule R (Fin r → R)).prod ((Ideal.span
        {π} : Ideal R) • (⊤ : Submodule R (Fin n → R)))) :
    Module.length R (Submodule.torsion R (((Fin r → R) × (Fin n → R)) ⧸ N'')) + Module.finrank R
        N'' ≤
      Module.length R (Submodule.torsion R
        (↥((⊤ : Submodule R (Fin r → R)).prod ((Ideal.span {π} : Ideal R) • (⊤ : Submodule R (Fin n
            → R)))) ⧸
          ((Ideal.span {π ^ 2} : Ideal R) • N'').comap ((⊤ : Submodule R (Fin r → R)).prod
            ((Ideal.span {π} : Ideal R) • (⊤ : Submodule R (Fin n → R)))).subtype))
IsDiscreteValuationRing.length_torsion_quotient_add_finrank_le_of_sq_smul_le_prod
Source context 7 commands

Surrounding namespaces, section variables, and local commands at this declaration.

@[expose] public section
section
/-
Anthropic FLT upstream notice: Copyright 2026 Anthropic, PBC.
Released under Apache 2.0 license as described in the file LICENSE.
Adapted Anthropic FLT source (pinned revision):
https://github.com/anthropics/fermats-last-theorem/blob/6e837e75355538c7f80bab5b956861e86c4eacc2/P2M/Sol/S_IsDiscreteValuationRing_length_torsion_quotient_add_finrank_le_of_sq_smul_le_prod.lean
Upstream NOTICE: https://github.com/anthropics/fermats-last-theorem/blob/6e837e75355538c7f80bab5b956861e86c4eacc2/NOTICE
Upstream per-file ATTRIBUTION: https://github.com/anthropics/fermats-last-theorem/blob/6e837e75355538c7f80bab5b956861e86c4eacc2/ATTRIBUTION.md
Copies of these notices are retained in the AbelianVarieties directory.
Existing upstream author/copyright comments in the source are retained below.

Local adaptation and maintenance: Naganori Yamaguchi (https://github.com/n-yamaguchi-0729).
AI assistance in local adaptation and maintenance: OpenAI Codex.
-/
namespace AbelianVarieties
namespace NOSProofs
namespace DVRLatticeLength
open Module
universe u
theorem _root_.IsDiscreteValuationRing.length_torsion_quotient_add_finrank_le_of_sq_smul_le_prod
    {R' : Type u} [CommRing R'] [IsDomain R'] [IsDiscreteValuationRing R']
    (π : R') (hπ : Irreducible π) (r n : ℕ)
    (N'' : Submodule R' ((Fin r → R') × (Fin n → R')))
    (hN : (Ideal.span {π ^ 2} : Ideal R') • N'' ≤ (⊤ : Submodule R' (Fin r → R')).prod ((Ideal.span
        {π} : Ideal R') • (⊤ : Submodule R' (Fin n → R')))) :
    Module.length R' (Submodule.torsion R' (((Fin r → R') × (Fin n → R')) ⧸ N'')) + Module.finrank
        R' N'' ≤
      Module.length R' (Submodule.torsion R'
        (↥((⊤ : Submodule R' (Fin r → R')).prod ((Ideal.span {π} : Ideal R') • (⊤ : Submodule R'
            (Fin n → R')))) ⧸
          ((Ideal.span {π ^ 2} : Ideal R') • N'').comap ((⊤ : Submodule R' (Fin r → R')).prod
            ((Ideal.span {π} : Ideal R') • (⊤ : Submodule R' (Fin n → R')))).subtype))