October 2026 · Preprint

Which Fine-Grained Lower Bounds Survive the Refutation of 3SUM and APSP?

Abstract

Alman and Vassilevska Williams have refuted the 3SUM and APSP hypotheses. Their algorithms rest on counting the triangles through prescribed edges of lopsided tripartite graphs, whose middle part has nε vertices for a small ε. Majdoddin extended the method to every ε < ln 4/(5 ln 5) ≈ 0.172. We determine which of the main conditional lower bounds derived from the refuted hypotheses survive. We also prove that the method extends to every ε < 0.17843 when the prescribed edges are known in advance and there are at most n2−ε/2 of them, which confirms Majdoddin's numerical estimate. Whether a bound survives depends mostly on the instances that its reduction produces. The reductions behind most bounds produce instances outside the range of the new algorithms: balanced graphs, or lopsided graphs with a larger middle part. Most of the set-disjointness, dynamic-graph and triangle bounds therefore follow from hypotheses that no known algorithm contradicts. These hypotheses, however, concern mainly such instances, and for several bounds the hypothesis is the bound itself, stated for these instances. Their evidence came largely from the refuted hypotheses. A few bounds are false, among them a lower bound of Goldstein, Lewenstein and Porat for Set Disjointness over small universes; the Strong SetDisjointness Conjecture also fails at small polynomial query times. Other bounds have lost their support, such as the Set Disjointness trade-offs of Kopelowitz, Pettie and Porat over small universes apart from constant query time. Finally, we collect the known obstacles to a larger closed-form range with a different base identity and use border-rank lower bounds to exclude several natural candidates.

In plain words

For two decades, many speed limits in computing were proved under two assumptions: that the textbook methods are essentially optimal both for finding, in a list, three numbers that sum to zero and for finding all shortest paths in a network with whole-number link lengths. In October 2026, Alman and Vassilevska Williams disproved both assumptions in their standard forms, with methods whose advantage is small but grows with input size. This paper sorts the main speed limits: most follow from other assumptions that nothing contradicts, a few are false, and the rest have lost their support.

A dark chart with a horizontal scale from 0 to 2 and seven labelled rows. A narrow shaded band at the left, up to 0.172, marks where the new algorithms work. A dashed line at 0.178 marks how far the algorithms reach when the queries are known in advance and there are at most N²/√Nʳ of them. Bars and dots show where each row's hard instances lie, green where the bound survives and orange where it is false or unsupported. Only the first two bars have orange parts, at their left ends: up to 0.178 for offline Set Disjointness and up to 0.172 for the online trade-off.
Illustration of the hard instances behind seven groups of lower bounds that the paper classifies: the instances are tripartite graphs with N vertices in each outer part and Nʳ vertices in the middle part. The horizontal axis shows r. The algorithms of Alman and Vassilevska Williams, as extended by Majdoddin, cover every r below ln 4/(5 ln 5) ≈ 0.172 (shaded). The paper proves what Majdoddin had estimated numerically: when the queried edges are known in advance and there are at most N²/√Nʳ of them, the algorithms cover every r below 0.1784 (dashed line). Green marks show where a bound follows from hypotheses that no known algorithm contradicts. Orange marks show where the offline Set Disjointness bound is false or where such hypotheses imply the online Set Disjointness trade-off only at constant query time.

Formal statement and axioms

Each main result as stated in Lean, copied verbatim from the published package, with the axioms that the proof rests on. Lean v4.35.0-rc3. The package.

KoszulCert.K.S222_rank

Table 4, the lower bounds on the flattening ranks: kernel-only

theorem S222_rank : KoszulRankGe (perm201 (tensorS 2 2 2)) 5 5 4 1 22
Definitions used in the statement
def tensorS (k n q : Nat) (a b c : Nat) : Int :=
  if a < k ∧ b < n ∧ c = a * n + b then 1
  else if k ≤ a ∧ a < k + q ∧ b = n + (a - k) ∧ c = k * n then 1
  else if a = k + q ∧ b = 0 ∧ c = k * n then 1
  else 0
def perm201 (T : Nat → Nat → Nat → Int) (v u w : Nat) : Int := T u w v
def KoszulRankGe (T : Nat → Nat → Nat → Int) (dV dU dW p r : Nat) : Prop :=
  ∃ cols : List (Nat × Nat), cols.length = r ∧ (∀ c ∈ cols, colOK dV dW p c.1 c.2) ∧
    ColsIndepQ (rowOK dV dU p) (kosEntry T dV) cols
def ColsIndepQ (rowOK : Nat → Nat → Prop) (M : Nat → Nat → Nat → Nat → Int)
    (cols : List (Nat × Nat)) : Prop :=
  ∀ x : List Rat, x.length = cols.length →
    (∀ S u, rowOK S u → (List.zipWith (fun a c => a * ((M S u c.1 c.2 : Int) : Rat)) x cols).sum = 0) →
    ∀ a ∈ x, a = 0
def kosEntry (T : Nat → Nat → Nat → Int) (dV : Nat) (S u S' w : Nat) : Int :=
  ((List.range dV).map fun v =>
    if S.testBit v = false ∧ S' = S ||| 2 ^ v then
      (if below S v % 2 = 0 then 1 else -1) * T v u w
    else 0).sum
def below (S v : Nat) : Nat := ((List.range v).filter (fun s => S.testBit s)).length
def rowOK (dV dU p : Nat) (S u : Nat) : Prop := S < 2 ^ dV ∧ below S dV = p ∧ u < dU
def colOK (dV dW p : Nat) (S' w : Nat) : Prop := S' < 2 ^ dV ∧ below S' dV = p + 1 ∧ w < dW

Source: Zenodo record 23716496, survive-3sum-apsp-supplement.zip/survive-3sum-apsp-supplement/lean/KoszulCert/K/S222.lean:14.

Axioms, as Lean reports them. Recorded in zenodo:23716496/survive-3sum-apsp-supplement.zip/survive-3sum-apsp-supplement/lean/results/axioms_K.txt:1.

'KoszulCert.K.S222_rank' depends on axioms: [propext, Classical.choice, Quot.sound]

KoszulCert.N.S222_rank

Table 4, the lower bounds on the flattening ranks: with compiled code

theorem S222_rank : KoszulRankGe (perm201 (tensorS 2 2 2)) 5 5 4 1 22
Definitions used in the statement
def tensorS (k n q : Nat) (a b c : Nat) : Int :=
  if a < k ∧ b < n ∧ c = a * n + b then 1
  else if k ≤ a ∧ a < k + q ∧ b = n + (a - k) ∧ c = k * n then 1
  else if a = k + q ∧ b = 0 ∧ c = k * n then 1
  else 0
def perm201 (T : Nat → Nat → Nat → Int) (v u w : Nat) : Int := T u w v
def KoszulRankGe (T : Nat → Nat → Nat → Int) (dV dU dW p r : Nat) : Prop :=
  ∃ cols : List (Nat × Nat), cols.length = r ∧ (∀ c ∈ cols, colOK dV dW p c.1 c.2) ∧
    ColsIndepQ (rowOK dV dU p) (kosEntry T dV) cols
def ColsIndepQ (rowOK : Nat → Nat → Prop) (M : Nat → Nat → Nat → Nat → Int)
    (cols : List (Nat × Nat)) : Prop :=
  ∀ x : List Rat, x.length = cols.length →
    (∀ S u, rowOK S u → (List.zipWith (fun a c => a * ((M S u c.1 c.2 : Int) : Rat)) x cols).sum = 0) →
    ∀ a ∈ x, a = 0
def kosEntry (T : Nat → Nat → Nat → Int) (dV : Nat) (S u S' w : Nat) : Int :=
  ((List.range dV).map fun v =>
    if S.testBit v = false ∧ S' = S ||| 2 ^ v then
      (if below S v % 2 = 0 then 1 else -1) * T v u w
    else 0).sum
def below (S v : Nat) : Nat := ((List.range v).filter (fun s => S.testBit s)).length
def rowOK (dV dU p : Nat) (S u : Nat) : Prop := S < 2 ^ dV ∧ below S dV = p ∧ u < dU
def colOK (dV dW p : Nat) (S' w : Nat) : Prop := S' < 2 ^ dV ∧ below S' dV = p + 1 ∧ w < dW

Source: Zenodo record 23716496, survive-3sum-apsp-supplement.zip/survive-3sum-apsp-supplement/lean/KoszulCert/N/S222.lean:12.

Axioms, as Lean reports them. Recorded in zenodo:23716496/survive-3sum-apsp-supplement.zip/survive-3sum-apsp-supplement/lean/results/axioms_N.txt:1-4.

'KoszulCert.N.S222_rank' depends on axioms: [propext,
 Classical.choice,
 Quot.sound,
 KoszulCert.N.S222_check._native.native_decide.ax_1_1]

KoszulCert.K.S233_rank

Table 4, the lower bounds on the flattening ranks: kernel-only

theorem S233_rank : KoszulRankGe (perm201 (tensorS 2 3 3)) 7 6 6 3 141
Definitions used in the statement
def tensorS (k n q : Nat) (a b c : Nat) : Int :=
  if a < k ∧ b < n ∧ c = a * n + b then 1
  else if k ≤ a ∧ a < k + q ∧ b = n + (a - k) ∧ c = k * n then 1
  else if a = k + q ∧ b = 0 ∧ c = k * n then 1
  else 0
def perm201 (T : Nat → Nat → Nat → Int) (v u w : Nat) : Int := T u w v
def KoszulRankGe (T : Nat → Nat → Nat → Int) (dV dU dW p r : Nat) : Prop :=
  ∃ cols : List (Nat × Nat), cols.length = r ∧ (∀ c ∈ cols, colOK dV dW p c.1 c.2) ∧
    ColsIndepQ (rowOK dV dU p) (kosEntry T dV) cols
def ColsIndepQ (rowOK : Nat → Nat → Prop) (M : Nat → Nat → Nat → Nat → Int)
    (cols : List (Nat × Nat)) : Prop :=
  ∀ x : List Rat, x.length = cols.length →
    (∀ S u, rowOK S u → (List.zipWith (fun a c => a * ((M S u c.1 c.2 : Int) : Rat)) x cols).sum = 0) →
    ∀ a ∈ x, a = 0
def kosEntry (T : Nat → Nat → Nat → Int) (dV : Nat) (S u S' w : Nat) : Int :=
  ((List.range dV).map fun v =>
    if S.testBit v = false ∧ S' = S ||| 2 ^ v then
      (if below S v % 2 = 0 then 1 else -1) * T v u w
    else 0).sum
def below (S v : Nat) : Nat := ((List.range v).filter (fun s => S.testBit s)).length
def rowOK (dV dU p : Nat) (S u : Nat) : Prop := S < 2 ^ dV ∧ below S dV = p ∧ u < dU
def colOK (dV dW p : Nat) (S' w : Nat) : Prop := S' < 2 ^ dV ∧ below S' dV = p + 1 ∧ w < dW

Source: Zenodo record 23716496, survive-3sum-apsp-supplement.zip/survive-3sum-apsp-supplement/lean/KoszulCert/K/S233.lean:14.

Axioms, as Lean reports them. Recorded in zenodo:23716496/survive-3sum-apsp-supplement.zip/survive-3sum-apsp-supplement/lean/results/axioms_K.txt:3.

'KoszulCert.K.S233_rank' depends on axioms: [propext, Classical.choice, Quot.sound]
56 more formal statements

KoszulCert.N.S233_rank

Table 4, the lower bounds on the flattening ranks: with compiled code

theorem S233_rank : KoszulRankGe (perm201 (tensorS 2 3 3)) 7 6 6 3 141
Definitions used in the statement
def tensorS (k n q : Nat) (a b c : Nat) : Int :=
  if a < k ∧ b < n ∧ c = a * n + b then 1
  else if k ≤ a ∧ a < k + q ∧ b = n + (a - k) ∧ c = k * n then 1
  else if a = k + q ∧ b = 0 ∧ c = k * n then 1
  else 0
def perm201 (T : Nat → Nat → Nat → Int) (v u w : Nat) : Int := T u w v
def KoszulRankGe (T : Nat → Nat → Nat → Int) (dV dU dW p r : Nat) : Prop :=
  ∃ cols : List (Nat × Nat), cols.length = r ∧ (∀ c ∈ cols, colOK dV dW p c.1 c.2) ∧
    ColsIndepQ (rowOK dV dU p) (kosEntry T dV) cols
def ColsIndepQ (rowOK : Nat → Nat → Prop) (M : Nat → Nat → Nat → Nat → Int)
    (cols : List (Nat × Nat)) : Prop :=
  ∀ x : List Rat, x.length = cols.length →
    (∀ S u, rowOK S u → (List.zipWith (fun a c => a * ((M S u c.1 c.2 : Int) : Rat)) x cols).sum = 0) →
    ∀ a ∈ x, a = 0
def kosEntry (T : Nat → Nat → Nat → Int) (dV : Nat) (S u S' w : Nat) : Int :=
  ((List.range dV).map fun v =>
    if S.testBit v = false ∧ S' = S ||| 2 ^ v then
      (if below S v % 2 = 0 then 1 else -1) * T v u w
    else 0).sum
def below (S v : Nat) : Nat := ((List.range v).filter (fun s => S.testBit s)).length
def rowOK (dV dU p : Nat) (S u : Nat) : Prop := S < 2 ^ dV ∧ below S dV = p ∧ u < dU
def colOK (dV dW p : Nat) (S' w : Nat) : Prop := S' < 2 ^ dV ∧ below S' dV = p + 1 ∧ w < dW

Source: Zenodo record 23716496, survive-3sum-apsp-supplement.zip/survive-3sum-apsp-supplement/lean/KoszulCert/N/S233.lean:12.

Axioms, as Lean reports them. Recorded in zenodo:23716496/survive-3sum-apsp-supplement.zip/survive-3sum-apsp-supplement/lean/results/axioms_N.txt:9-12.

'KoszulCert.N.S233_rank' depends on axioms: [propext,
 Classical.choice,
 Quot.sound,
 KoszulCert.N.S233_check._native.native_decide.ax_1_1]

KoszulCert.K.S323_rank

Table 4, the lower bounds on the flattening ranks: kernel-only

theorem S323_rank : KoszulRankGe (perm201 (tensorS 3 2 3)) 7 7 5 1 45
Definitions used in the statement
def tensorS (k n q : Nat) (a b c : Nat) : Int :=
  if a < k ∧ b < n ∧ c = a * n + b then 1
  else if k ≤ a ∧ a < k + q ∧ b = n + (a - k) ∧ c = k * n then 1
  else if a = k + q ∧ b = 0 ∧ c = k * n then 1
  else 0
def perm201 (T : Nat → Nat → Nat → Int) (v u w : Nat) : Int := T u w v
def KoszulRankGe (T : Nat → Nat → Nat → Int) (dV dU dW p r : Nat) : Prop :=
  ∃ cols : List (Nat × Nat), cols.length = r ∧ (∀ c ∈ cols, colOK dV dW p c.1 c.2) ∧
    ColsIndepQ (rowOK dV dU p) (kosEntry T dV) cols
def ColsIndepQ (rowOK : Nat → Nat → Prop) (M : Nat → Nat → Nat → Nat → Int)
    (cols : List (Nat × Nat)) : Prop :=
  ∀ x : List Rat, x.length = cols.length →
    (∀ S u, rowOK S u → (List.zipWith (fun a c => a * ((M S u c.1 c.2 : Int) : Rat)) x cols).sum = 0) →
    ∀ a ∈ x, a = 0
def kosEntry (T : Nat → Nat → Nat → Int) (dV : Nat) (S u S' w : Nat) : Int :=
  ((List.range dV).map fun v =>
    if S.testBit v = false ∧ S' = S ||| 2 ^ v then
      (if below S v % 2 = 0 then 1 else -1) * T v u w
    else 0).sum
def below (S v : Nat) : Nat := ((List.range v).filter (fun s => S.testBit s)).length
def rowOK (dV dU p : Nat) (S u : Nat) : Prop := S < 2 ^ dV ∧ below S dV = p ∧ u < dU
def colOK (dV dW p : Nat) (S' w : Nat) : Prop := S' < 2 ^ dV ∧ below S' dV = p + 1 ∧ w < dW

Source: Zenodo record 23716496, survive-3sum-apsp-supplement.zip/survive-3sum-apsp-supplement/lean/KoszulCert/K/S323.lean:14.

Axioms, as Lean reports them. Recorded in zenodo:23716496/survive-3sum-apsp-supplement.zip/survive-3sum-apsp-supplement/lean/results/axioms_K.txt:5.

'KoszulCert.K.S323_rank' depends on axioms: [propext, Classical.choice, Quot.sound]

KoszulCert.N.S323_rank

Table 4, the lower bounds on the flattening ranks: with compiled code

theorem S323_rank : KoszulRankGe (perm201 (tensorS 3 2 3)) 7 7 5 1 45
Definitions used in the statement
def tensorS (k n q : Nat) (a b c : Nat) : Int :=
  if a < k ∧ b < n ∧ c = a * n + b then 1
  else if k ≤ a ∧ a < k + q ∧ b = n + (a - k) ∧ c = k * n then 1
  else if a = k + q ∧ b = 0 ∧ c = k * n then 1
  else 0
def perm201 (T : Nat → Nat → Nat → Int) (v u w : Nat) : Int := T u w v
def KoszulRankGe (T : Nat → Nat → Nat → Int) (dV dU dW p r : Nat) : Prop :=
  ∃ cols : List (Nat × Nat), cols.length = r ∧ (∀ c ∈ cols, colOK dV dW p c.1 c.2) ∧
    ColsIndepQ (rowOK dV dU p) (kosEntry T dV) cols
def ColsIndepQ (rowOK : Nat → Nat → Prop) (M : Nat → Nat → Nat → Nat → Int)
    (cols : List (Nat × Nat)) : Prop :=
  ∀ x : List Rat, x.length = cols.length →
    (∀ S u, rowOK S u → (List.zipWith (fun a c => a * ((M S u c.1 c.2 : Int) : Rat)) x cols).sum = 0) →
    ∀ a ∈ x, a = 0
def kosEntry (T : Nat → Nat → Nat → Int) (dV : Nat) (S u S' w : Nat) : Int :=
  ((List.range dV).map fun v =>
    if S.testBit v = false ∧ S' = S ||| 2 ^ v then
      (if below S v % 2 = 0 then 1 else -1) * T v u w
    else 0).sum
def below (S v : Nat) : Nat := ((List.range v).filter (fun s => S.testBit s)).length
def rowOK (dV dU p : Nat) (S u : Nat) : Prop := S < 2 ^ dV ∧ below S dV = p ∧ u < dU
def colOK (dV dW p : Nat) (S' w : Nat) : Prop := S' < 2 ^ dV ∧ below S' dV = p + 1 ∧ w < dW

Source: Zenodo record 23716496, survive-3sum-apsp-supplement.zip/survive-3sum-apsp-supplement/lean/KoszulCert/N/S323.lean:12.

Axioms, as Lean reports them. Recorded in zenodo:23716496/survive-3sum-apsp-supplement.zip/survive-3sum-apsp-supplement/lean/results/axioms_N.txt:17-20.

'KoszulCert.N.S323_rank' depends on axioms: [propext,
 Classical.choice,
 Quot.sound,
 KoszulCert.N.S323_check._native.native_decide.ax_1_1]

KoszulCert.K.S234_rank

Table 4, the lower bounds on the flattening ranks: kernel-only

theorem S234_rank : KoszulRankGe (perm201 (tensorS 2 3 4)) 7 7 7 3 161
Definitions used in the statement
def tensorS (k n q : Nat) (a b c : Nat) : Int :=
  if a < k ∧ b < n ∧ c = a * n + b then 1
  else if k ≤ a ∧ a < k + q ∧ b = n + (a - k) ∧ c = k * n then 1
  else if a = k + q ∧ b = 0 ∧ c = k * n then 1
  else 0
def perm201 (T : Nat → Nat → Nat → Int) (v u w : Nat) : Int := T u w v
def KoszulRankGe (T : Nat → Nat → Nat → Int) (dV dU dW p r : Nat) : Prop :=
  ∃ cols : List (Nat × Nat), cols.length = r ∧ (∀ c ∈ cols, colOK dV dW p c.1 c.2) ∧
    ColsIndepQ (rowOK dV dU p) (kosEntry T dV) cols
def ColsIndepQ (rowOK : Nat → Nat → Prop) (M : Nat → Nat → Nat → Nat → Int)
    (cols : List (Nat × Nat)) : Prop :=
  ∀ x : List Rat, x.length = cols.length →
    (∀ S u, rowOK S u → (List.zipWith (fun a c => a * ((M S u c.1 c.2 : Int) : Rat)) x cols).sum = 0) →
    ∀ a ∈ x, a = 0
def kosEntry (T : Nat → Nat → Nat → Int) (dV : Nat) (S u S' w : Nat) : Int :=
  ((List.range dV).map fun v =>
    if S.testBit v = false ∧ S' = S ||| 2 ^ v then
      (if below S v % 2 = 0 then 1 else -1) * T v u w
    else 0).sum
def below (S v : Nat) : Nat := ((List.range v).filter (fun s => S.testBit s)).length
def rowOK (dV dU p : Nat) (S u : Nat) : Prop := S < 2 ^ dV ∧ below S dV = p ∧ u < dU
def colOK (dV dW p : Nat) (S' w : Nat) : Prop := S' < 2 ^ dV ∧ below S' dV = p + 1 ∧ w < dW

Source: Zenodo record 23716496, survive-3sum-apsp-supplement.zip/survive-3sum-apsp-supplement/lean/KoszulCert/K/S234.lean:14.

Axioms, as Lean reports them. Recorded in zenodo:23716496/survive-3sum-apsp-supplement.zip/survive-3sum-apsp-supplement/lean/results/axioms_K.txt:7.

'KoszulCert.K.S234_rank' depends on axioms: [propext, Classical.choice, Quot.sound]

KoszulCert.N.S234_rank

Table 4, the lower bounds on the flattening ranks: with compiled code

theorem S234_rank : KoszulRankGe (perm201 (tensorS 2 3 4)) 7 7 7 3 161
Definitions used in the statement
def tensorS (k n q : Nat) (a b c : Nat) : Int :=
  if a < k ∧ b < n ∧ c = a * n + b then 1
  else if k ≤ a ∧ a < k + q ∧ b = n + (a - k) ∧ c = k * n then 1
  else if a = k + q ∧ b = 0 ∧ c = k * n then 1
  else 0
def perm201 (T : Nat → Nat → Nat → Int) (v u w : Nat) : Int := T u w v
def KoszulRankGe (T : Nat → Nat → Nat → Int) (dV dU dW p r : Nat) : Prop :=
  ∃ cols : List (Nat × Nat), cols.length = r ∧ (∀ c ∈ cols, colOK dV dW p c.1 c.2) ∧
    ColsIndepQ (rowOK dV dU p) (kosEntry T dV) cols
def ColsIndepQ (rowOK : Nat → Nat → Prop) (M : Nat → Nat → Nat → Nat → Int)
    (cols : List (Nat × Nat)) : Prop :=
  ∀ x : List Rat, x.length = cols.length →
    (∀ S u, rowOK S u → (List.zipWith (fun a c => a * ((M S u c.1 c.2 : Int) : Rat)) x cols).sum = 0) →
    ∀ a ∈ x, a = 0
def kosEntry (T : Nat → Nat → Nat → Int) (dV : Nat) (S u S' w : Nat) : Int :=
  ((List.range dV).map fun v =>
    if S.testBit v = false ∧ S' = S ||| 2 ^ v then
      (if below S v % 2 = 0 then 1 else -1) * T v u w
    else 0).sum
def below (S v : Nat) : Nat := ((List.range v).filter (fun s => S.testBit s)).length
def rowOK (dV dU p : Nat) (S u : Nat) : Prop := S < 2 ^ dV ∧ below S dV = p ∧ u < dU
def colOK (dV dW p : Nat) (S' w : Nat) : Prop := S' < 2 ^ dV ∧ below S' dV = p + 1 ∧ w < dW

Source: Zenodo record 23716496, survive-3sum-apsp-supplement.zip/survive-3sum-apsp-supplement/lean/KoszulCert/N/S234.lean:12.

Axioms, as Lean reports them. Recorded in zenodo:23716496/survive-3sum-apsp-supplement.zip/survive-3sum-apsp-supplement/lean/results/axioms_N.txt:25-28.

'KoszulCert.N.S234_rank' depends on axioms: [propext,
 Classical.choice,
 Quot.sound,
 KoszulCert.N.S234_check._native.native_decide.ax_1_1]

KoszulCert.K.S324_rank

Table 4, the lower bounds on the flattening ranks: kernel-only

theorem S324_rank : KoszulRankGe (perm201 (tensorS 3 2 4)) 7 8 6 1 51
Definitions used in the statement
def tensorS (k n q : Nat) (a b c : Nat) : Int :=
  if a < k ∧ b < n ∧ c = a * n + b then 1
  else if k ≤ a ∧ a < k + q ∧ b = n + (a - k) ∧ c = k * n then 1
  else if a = k + q ∧ b = 0 ∧ c = k * n then 1
  else 0
def perm201 (T : Nat → Nat → Nat → Int) (v u w : Nat) : Int := T u w v
def KoszulRankGe (T : Nat → Nat → Nat → Int) (dV dU dW p r : Nat) : Prop :=
  ∃ cols : List (Nat × Nat), cols.length = r ∧ (∀ c ∈ cols, colOK dV dW p c.1 c.2) ∧
    ColsIndepQ (rowOK dV dU p) (kosEntry T dV) cols
def ColsIndepQ (rowOK : Nat → Nat → Prop) (M : Nat → Nat → Nat → Nat → Int)
    (cols : List (Nat × Nat)) : Prop :=
  ∀ x : List Rat, x.length = cols.length →
    (∀ S u, rowOK S u → (List.zipWith (fun a c => a * ((M S u c.1 c.2 : Int) : Rat)) x cols).sum = 0) →
    ∀ a ∈ x, a = 0
def kosEntry (T : Nat → Nat → Nat → Int) (dV : Nat) (S u S' w : Nat) : Int :=
  ((List.range dV).map fun v =>
    if S.testBit v = false ∧ S' = S ||| 2 ^ v then
      (if below S v % 2 = 0 then 1 else -1) * T v u w
    else 0).sum
def below (S v : Nat) : Nat := ((List.range v).filter (fun s => S.testBit s)).length
def rowOK (dV dU p : Nat) (S u : Nat) : Prop := S < 2 ^ dV ∧ below S dV = p ∧ u < dU
def colOK (dV dW p : Nat) (S' w : Nat) : Prop := S' < 2 ^ dV ∧ below S' dV = p + 1 ∧ w < dW

Source: Zenodo record 23716496, survive-3sum-apsp-supplement.zip/survive-3sum-apsp-supplement/lean/KoszulCert/K/S324.lean:14.

Axioms, as Lean reports them. Recorded in zenodo:23716496/survive-3sum-apsp-supplement.zip/survive-3sum-apsp-supplement/lean/results/axioms_K.txt:9.

'KoszulCert.K.S324_rank' depends on axioms: [propext, Classical.choice, Quot.sound]

KoszulCert.N.S324_rank

Table 4, the lower bounds on the flattening ranks: with compiled code

theorem S324_rank : KoszulRankGe (perm201 (tensorS 3 2 4)) 7 8 6 1 51
Definitions used in the statement
def tensorS (k n q : Nat) (a b c : Nat) : Int :=
  if a < k ∧ b < n ∧ c = a * n + b then 1
  else if k ≤ a ∧ a < k + q ∧ b = n + (a - k) ∧ c = k * n then 1
  else if a = k + q ∧ b = 0 ∧ c = k * n then 1
  else 0
def perm201 (T : Nat → Nat → Nat → Int) (v u w : Nat) : Int := T u w v
def KoszulRankGe (T : Nat → Nat → Nat → Int) (dV dU dW p r : Nat) : Prop :=
  ∃ cols : List (Nat × Nat), cols.length = r ∧ (∀ c ∈ cols, colOK dV dW p c.1 c.2) ∧
    ColsIndepQ (rowOK dV dU p) (kosEntry T dV) cols
def ColsIndepQ (rowOK : Nat → Nat → Prop) (M : Nat → Nat → Nat → Nat → Int)
    (cols : List (Nat × Nat)) : Prop :=
  ∀ x : List Rat, x.length = cols.length →
    (∀ S u, rowOK S u → (List.zipWith (fun a c => a * ((M S u c.1 c.2 : Int) : Rat)) x cols).sum = 0) →
    ∀ a ∈ x, a = 0
def kosEntry (T : Nat → Nat → Nat → Int) (dV : Nat) (S u S' w : Nat) : Int :=
  ((List.range dV).map fun v =>
    if S.testBit v = false ∧ S' = S ||| 2 ^ v then
      (if below S v % 2 = 0 then 1 else -1) * T v u w
    else 0).sum
def below (S v : Nat) : Nat := ((List.range v).filter (fun s => S.testBit s)).length
def rowOK (dV dU p : Nat) (S u : Nat) : Prop := S < 2 ^ dV ∧ below S dV = p ∧ u < dU
def colOK (dV dW p : Nat) (S' w : Nat) : Prop := S' < 2 ^ dV ∧ below S' dV = p + 1 ∧ w < dW

Source: Zenodo record 23716496, survive-3sum-apsp-supplement.zip/survive-3sum-apsp-supplement/lean/KoszulCert/N/S324.lean:12.

Axioms, as Lean reports them. Recorded in zenodo:23716496/survive-3sum-apsp-supplement.zip/survive-3sum-apsp-supplement/lean/results/axioms_N.txt:33-36.

'KoszulCert.N.S324_rank' depends on axioms: [propext,
 Classical.choice,
 Quot.sound,
 KoszulCert.N.S324_check._native.native_decide.ax_1_1]

KoszulCert.K.G2222_rank

Table 4, the lower bounds on the flattening ranks: kernel-only

theorem G2222_rank : KoszulRankGe (perm201 (tensorG 2 2 2 2)) 6 6 6 2 66
Definitions used in the statement
def tensorG (k n q1 q2 : Nat) (a b c : Nat) : Int :=
  if a < k ∧ b < n ∧ c = a * n + b then 1
  else if k ≤ a ∧ a < k + q1 ∧ b = n + (a - k) ∧ c = k * n then 1
  else if k + q1 ≤ a ∧ a < k + q1 + q2 ∧ b = n + (a - k) ∧ c = k * n + 1 then 1
  else 0
def perm201 (T : Nat → Nat → Nat → Int) (v u w : Nat) : Int := T u w v
def KoszulRankGe (T : Nat → Nat → Nat → Int) (dV dU dW p r : Nat) : Prop :=
  ∃ cols : List (Nat × Nat), cols.length = r ∧ (∀ c ∈ cols, colOK dV dW p c.1 c.2) ∧
    ColsIndepQ (rowOK dV dU p) (kosEntry T dV) cols
def ColsIndepQ (rowOK : Nat → Nat → Prop) (M : Nat → Nat → Nat → Nat → Int)
    (cols : List (Nat × Nat)) : Prop :=
  ∀ x : List Rat, x.length = cols.length →
    (∀ S u, rowOK S u → (List.zipWith (fun a c => a * ((M S u c.1 c.2 : Int) : Rat)) x cols).sum = 0) →
    ∀ a ∈ x, a = 0
def kosEntry (T : Nat → Nat → Nat → Int) (dV : Nat) (S u S' w : Nat) : Int :=
  ((List.range dV).map fun v =>
    if S.testBit v = false ∧ S' = S ||| 2 ^ v then
      (if below S v % 2 = 0 then 1 else -1) * T v u w
    else 0).sum
def below (S v : Nat) : Nat := ((List.range v).filter (fun s => S.testBit s)).length
def rowOK (dV dU p : Nat) (S u : Nat) : Prop := S < 2 ^ dV ∧ below S dV = p ∧ u < dU
def colOK (dV dW p : Nat) (S' w : Nat) : Prop := S' < 2 ^ dV ∧ below S' dV = p + 1 ∧ w < dW

Source: Zenodo record 23716496, survive-3sum-apsp-supplement.zip/survive-3sum-apsp-supplement/lean/KoszulCert/K/G2222.lean:14.

Axioms, as Lean reports them. Recorded in zenodo:23716496/survive-3sum-apsp-supplement.zip/survive-3sum-apsp-supplement/lean/results/axioms_K.txt:11.

'KoszulCert.K.G2222_rank' depends on axioms: [propext, Classical.choice, Quot.sound]

KoszulCert.N.G2222_rank

Table 4, the lower bounds on the flattening ranks: with compiled code

theorem G2222_rank : KoszulRankGe (perm201 (tensorG 2 2 2 2)) 6 6 6 2 66
Definitions used in the statement
def tensorG (k n q1 q2 : Nat) (a b c : Nat) : Int :=
  if a < k ∧ b < n ∧ c = a * n + b then 1
  else if k ≤ a ∧ a < k + q1 ∧ b = n + (a - k) ∧ c = k * n then 1
  else if k + q1 ≤ a ∧ a < k + q1 + q2 ∧ b = n + (a - k) ∧ c = k * n + 1 then 1
  else 0
def perm201 (T : Nat → Nat → Nat → Int) (v u w : Nat) : Int := T u w v
def KoszulRankGe (T : Nat → Nat → Nat → Int) (dV dU dW p r : Nat) : Prop :=
  ∃ cols : List (Nat × Nat), cols.length = r ∧ (∀ c ∈ cols, colOK dV dW p c.1 c.2) ∧
    ColsIndepQ (rowOK dV dU p) (kosEntry T dV) cols
def ColsIndepQ (rowOK : Nat → Nat → Prop) (M : Nat → Nat → Nat → Nat → Int)
    (cols : List (Nat × Nat)) : Prop :=
  ∀ x : List Rat, x.length = cols.length →
    (∀ S u, rowOK S u → (List.zipWith (fun a c => a * ((M S u c.1 c.2 : Int) : Rat)) x cols).sum = 0) →
    ∀ a ∈ x, a = 0
def kosEntry (T : Nat → Nat → Nat → Int) (dV : Nat) (S u S' w : Nat) : Int :=
  ((List.range dV).map fun v =>
    if S.testBit v = false ∧ S' = S ||| 2 ^ v then
      (if below S v % 2 = 0 then 1 else -1) * T v u w
    else 0).sum
def below (S v : Nat) : Nat := ((List.range v).filter (fun s => S.testBit s)).length
def rowOK (dV dU p : Nat) (S u : Nat) : Prop := S < 2 ^ dV ∧ below S dV = p ∧ u < dU
def colOK (dV dW p : Nat) (S' w : Nat) : Prop := S' < 2 ^ dV ∧ below S' dV = p + 1 ∧ w < dW

Source: Zenodo record 23716496, survive-3sum-apsp-supplement.zip/survive-3sum-apsp-supplement/lean/KoszulCert/N/G2222.lean:12.

Axioms, as Lean reports them. Recorded in zenodo:23716496/survive-3sum-apsp-supplement.zip/survive-3sum-apsp-supplement/lean/results/axioms_N.txt:41-44.

'KoszulCert.N.G2222_rank' depends on axioms: [propext,
 Classical.choice,
 Quot.sound,
 KoszulCert.N.G2222_check._native.native_decide.ax_1_1]

KoszulCert.K.G3344_rank

Table 4, the lower bounds on the flattening ranks: kernel-only

theorem G3344_rank : KoszulRankGe (perm201 (tensorG 3 3 4 4)) 11 11 11 5 3102
Definitions used in the statement
def tensorG (k n q1 q2 : Nat) (a b c : Nat) : Int :=
  if a < k ∧ b < n ∧ c = a * n + b then 1
  else if k ≤ a ∧ a < k + q1 ∧ b = n + (a - k) ∧ c = k * n then 1
  else if k + q1 ≤ a ∧ a < k + q1 + q2 ∧ b = n + (a - k) ∧ c = k * n + 1 then 1
  else 0
def perm201 (T : Nat → Nat → Nat → Int) (v u w : Nat) : Int := T u w v
def KoszulRankGe (T : Nat → Nat → Nat → Int) (dV dU dW p r : Nat) : Prop :=
  ∃ cols : List (Nat × Nat), cols.length = r ∧ (∀ c ∈ cols, colOK dV dW p c.1 c.2) ∧
    ColsIndepQ (rowOK dV dU p) (kosEntry T dV) cols
def ColsIndepQ (rowOK : Nat → Nat → Prop) (M : Nat → Nat → Nat → Nat → Int)
    (cols : List (Nat × Nat)) : Prop :=
  ∀ x : List Rat, x.length = cols.length →
    (∀ S u, rowOK S u → (List.zipWith (fun a c => a * ((M S u c.1 c.2 : Int) : Rat)) x cols).sum = 0) →
    ∀ a ∈ x, a = 0
def kosEntry (T : Nat → Nat → Nat → Int) (dV : Nat) (S u S' w : Nat) : Int :=
  ((List.range dV).map fun v =>
    if S.testBit v = false ∧ S' = S ||| 2 ^ v then
      (if below S v % 2 = 0 then 1 else -1) * T v u w
    else 0).sum
def below (S v : Nat) : Nat := ((List.range v).filter (fun s => S.testBit s)).length
def rowOK (dV dU p : Nat) (S u : Nat) : Prop := S < 2 ^ dV ∧ below S dV = p ∧ u < dU
def colOK (dV dW p : Nat) (S' w : Nat) : Prop := S' < 2 ^ dV ∧ below S' dV = p + 1 ∧ w < dW

Source: Zenodo record 23716496, survive-3sum-apsp-supplement.zip/survive-3sum-apsp-supplement/lean/KoszulCert/K/G3344.lean:14.

Axioms, as Lean reports them. Recorded in zenodo:23716496/survive-3sum-apsp-supplement.zip/survive-3sum-apsp-supplement/lean/results/axioms_K.txt:13.

'KoszulCert.K.G3344_rank' depends on axioms: [propext, Classical.choice, Quot.sound]

KoszulCert.N.G3344_rank

Table 4, the lower bounds on the flattening ranks: with compiled code

theorem G3344_rank : KoszulRankGe (perm201 (tensorG 3 3 4 4)) 11 11 11 5 3102
Definitions used in the statement
def tensorG (k n q1 q2 : Nat) (a b c : Nat) : Int :=
  if a < k ∧ b < n ∧ c = a * n + b then 1
  else if k ≤ a ∧ a < k + q1 ∧ b = n + (a - k) ∧ c = k * n then 1
  else if k + q1 ≤ a ∧ a < k + q1 + q2 ∧ b = n + (a - k) ∧ c = k * n + 1 then 1
  else 0
def perm201 (T : Nat → Nat → Nat → Int) (v u w : Nat) : Int := T u w v
def KoszulRankGe (T : Nat → Nat → Nat → Int) (dV dU dW p r : Nat) : Prop :=
  ∃ cols : List (Nat × Nat), cols.length = r ∧ (∀ c ∈ cols, colOK dV dW p c.1 c.2) ∧
    ColsIndepQ (rowOK dV dU p) (kosEntry T dV) cols
def ColsIndepQ (rowOK : Nat → Nat → Prop) (M : Nat → Nat → Nat → Nat → Int)
    (cols : List (Nat × Nat)) : Prop :=
  ∀ x : List Rat, x.length = cols.length →
    (∀ S u, rowOK S u → (List.zipWith (fun a c => a * ((M S u c.1 c.2 : Int) : Rat)) x cols).sum = 0) →
    ∀ a ∈ x, a = 0
def kosEntry (T : Nat → Nat → Nat → Int) (dV : Nat) (S u S' w : Nat) : Int :=
  ((List.range dV).map fun v =>
    if S.testBit v = false ∧ S' = S ||| 2 ^ v then
      (if below S v % 2 = 0 then 1 else -1) * T v u w
    else 0).sum
def below (S v : Nat) : Nat := ((List.range v).filter (fun s => S.testBit s)).length
def rowOK (dV dU p : Nat) (S u : Nat) : Prop := S < 2 ^ dV ∧ below S dV = p ∧ u < dU
def colOK (dV dW p : Nat) (S' w : Nat) : Prop := S' < 2 ^ dV ∧ below S' dV = p + 1 ∧ w < dW

Source: Zenodo record 23716496, survive-3sum-apsp-supplement.zip/survive-3sum-apsp-supplement/lean/KoszulCert/N/G3344.lean:12.

Axioms, as Lean reports them. Recorded in zenodo:23716496/survive-3sum-apsp-supplement.zip/survive-3sum-apsp-supplement/lean/results/axioms_N.txt:49-52.

'KoszulCert.N.G3344_rank' depends on axioms: [propext,
 Classical.choice,
 Quot.sound,
 KoszulCert.N.G3344_check._native.native_decide.ax_1_1]

KoszulCert.K.S111_rank

Table 4, the lower bounds on the flattening ranks: kernel-only

theorem S111_rank : KoszulRankGe (perm120 (tensorS 1 1 1)) 2 2 3 1 3
Definitions used in the statement
def tensorS (k n q : Nat) (a b c : Nat) : Int :=
  if a < k ∧ b < n ∧ c = a * n + b then 1
  else if k ≤ a ∧ a < k + q ∧ b = n + (a - k) ∧ c = k * n then 1
  else if a = k + q ∧ b = 0 ∧ c = k * n then 1
  else 0
def perm120 (T : Nat → Nat → Nat → Int) (v u w : Nat) : Int := T w v u
def KoszulRankGe (T : Nat → Nat → Nat → Int) (dV dU dW p r : Nat) : Prop :=
  ∃ cols : List (Nat × Nat), cols.length = r ∧ (∀ c ∈ cols, colOK dV dW p c.1 c.2) ∧
    ColsIndepQ (rowOK dV dU p) (kosEntry T dV) cols
def ColsIndepQ (rowOK : Nat → Nat → Prop) (M : Nat → Nat → Nat → Nat → Int)
    (cols : List (Nat × Nat)) : Prop :=
  ∀ x : List Rat, x.length = cols.length →
    (∀ S u, rowOK S u → (List.zipWith (fun a c => a * ((M S u c.1 c.2 : Int) : Rat)) x cols).sum = 0) →
    ∀ a ∈ x, a = 0
def kosEntry (T : Nat → Nat → Nat → Int) (dV : Nat) (S u S' w : Nat) : Int :=
  ((List.range dV).map fun v =>
    if S.testBit v = false ∧ S' = S ||| 2 ^ v then
      (if below S v % 2 = 0 then 1 else -1) * T v u w
    else 0).sum
def below (S v : Nat) : Nat := ((List.range v).filter (fun s => S.testBit s)).length
def rowOK (dV dU p : Nat) (S u : Nat) : Prop := S < 2 ^ dV ∧ below S dV = p ∧ u < dU
def colOK (dV dW p : Nat) (S' w : Nat) : Prop := S' < 2 ^ dV ∧ below S' dV = p + 1 ∧ w < dW

Source: Zenodo record 23716496, survive-3sum-apsp-supplement.zip/survive-3sum-apsp-supplement/lean/KoszulCert/K/S111.lean:14.

Axioms, as Lean reports them. Recorded in zenodo:23716496/survive-3sum-apsp-supplement.zip/survive-3sum-apsp-supplement/lean/results/axioms_K_s1n1.txt:1.

'KoszulCert.K.S111_rank' depends on axioms: [propext, Classical.choice, Quot.sound]

KoszulCert.N.S111_rank

Table 4, the lower bounds on the flattening ranks: with compiled code

theorem S111_rank : KoszulRankGe (perm120 (tensorS 1 1 1)) 2 2 3 1 3
Definitions used in the statement
def tensorS (k n q : Nat) (a b c : Nat) : Int :=
  if a < k ∧ b < n ∧ c = a * n + b then 1
  else if k ≤ a ∧ a < k + q ∧ b = n + (a - k) ∧ c = k * n then 1
  else if a = k + q ∧ b = 0 ∧ c = k * n then 1
  else 0
def perm120 (T : Nat → Nat → Nat → Int) (v u w : Nat) : Int := T w v u
def KoszulRankGe (T : Nat → Nat → Nat → Int) (dV dU dW p r : Nat) : Prop :=
  ∃ cols : List (Nat × Nat), cols.length = r ∧ (∀ c ∈ cols, colOK dV dW p c.1 c.2) ∧
    ColsIndepQ (rowOK dV dU p) (kosEntry T dV) cols
def ColsIndepQ (rowOK : Nat → Nat → Prop) (M : Nat → Nat → Nat → Nat → Int)
    (cols : List (Nat × Nat)) : Prop :=
  ∀ x : List Rat, x.length = cols.length →
    (∀ S u, rowOK S u → (List.zipWith (fun a c => a * ((M S u c.1 c.2 : Int) : Rat)) x cols).sum = 0) →
    ∀ a ∈ x, a = 0
def kosEntry (T : Nat → Nat → Nat → Int) (dV : Nat) (S u S' w : Nat) : Int :=
  ((List.range dV).map fun v =>
    if S.testBit v = false ∧ S' = S ||| 2 ^ v then
      (if below S v % 2 = 0 then 1 else -1) * T v u w
    else 0).sum
def below (S v : Nat) : Nat := ((List.range v).filter (fun s => S.testBit s)).length
def rowOK (dV dU p : Nat) (S u : Nat) : Prop := S < 2 ^ dV ∧ below S dV = p ∧ u < dU
def colOK (dV dW p : Nat) (S' w : Nat) : Prop := S' < 2 ^ dV ∧ below S' dV = p + 1 ∧ w < dW

Source: Zenodo record 23716496, survive-3sum-apsp-supplement.zip/survive-3sum-apsp-supplement/lean/KoszulCert/N/S111.lean:12.

Axioms, as Lean reports them. Recorded in zenodo:23716496/survive-3sum-apsp-supplement.zip/survive-3sum-apsp-supplement/lean/results/axioms_N_s1n1.txt:1-4.

'KoszulCert.N.S111_rank' depends on axioms: [propext,
 Classical.choice,
 Quot.sound,
 KoszulCert.N.S111_check._native.native_decide.ax_1_1]

KoszulCert.K.S121_rank

Table 4, the lower bounds on the flattening ranks: kernel-only

theorem S121_rank : KoszulRankGe (tensorS 1 2 1) 3 3 3 1 7
Definitions used in the statement
def tensorS (k n q : Nat) (a b c : Nat) : Int :=
  if a < k ∧ b < n ∧ c = a * n + b then 1
  else if k ≤ a ∧ a < k + q ∧ b = n + (a - k) ∧ c = k * n then 1
  else if a = k + q ∧ b = 0 ∧ c = k * n then 1
  else 0
def KoszulRankGe (T : Nat → Nat → Nat → Int) (dV dU dW p r : Nat) : Prop :=
  ∃ cols : List (Nat × Nat), cols.length = r ∧ (∀ c ∈ cols, colOK dV dW p c.1 c.2) ∧
    ColsIndepQ (rowOK dV dU p) (kosEntry T dV) cols
def ColsIndepQ (rowOK : Nat → Nat → Prop) (M : Nat → Nat → Nat → Nat → Int)
    (cols : List (Nat × Nat)) : Prop :=
  ∀ x : List Rat, x.length = cols.length →
    (∀ S u, rowOK S u → (List.zipWith (fun a c => a * ((M S u c.1 c.2 : Int) : Rat)) x cols).sum = 0) →
    ∀ a ∈ x, a = 0
def kosEntry (T : Nat → Nat → Nat → Int) (dV : Nat) (S u S' w : Nat) : Int :=
  ((List.range dV).map fun v =>
    if S.testBit v = false ∧ S' = S ||| 2 ^ v then
      (if below S v % 2 = 0 then 1 else -1) * T v u w
    else 0).sum
def below (S v : Nat) : Nat := ((List.range v).filter (fun s => S.testBit s)).length
def rowOK (dV dU p : Nat) (S u : Nat) : Prop := S < 2 ^ dV ∧ below S dV = p ∧ u < dU
def colOK (dV dW p : Nat) (S' w : Nat) : Prop := S' < 2 ^ dV ∧ below S' dV = p + 1 ∧ w < dW

Source: Zenodo record 23716496, survive-3sum-apsp-supplement.zip/survive-3sum-apsp-supplement/lean/KoszulCert/K/S121.lean:14.

Axioms, as Lean reports them. Recorded in zenodo:23716496/survive-3sum-apsp-supplement.zip/survive-3sum-apsp-supplement/lean/results/axioms_K_s1n1.txt:3.

'KoszulCert.K.S121_rank' depends on axioms: [propext, Classical.choice, Quot.sound]

KoszulCert.N.S121_rank

Table 4, the lower bounds on the flattening ranks: with compiled code

theorem S121_rank : KoszulRankGe (tensorS 1 2 1) 3 3 3 1 7
Definitions used in the statement
def tensorS (k n q : Nat) (a b c : Nat) : Int :=
  if a < k ∧ b < n ∧ c = a * n + b then 1
  else if k ≤ a ∧ a < k + q ∧ b = n + (a - k) ∧ c = k * n then 1
  else if a = k + q ∧ b = 0 ∧ c = k * n then 1
  else 0
def KoszulRankGe (T : Nat → Nat → Nat → Int) (dV dU dW p r : Nat) : Prop :=
  ∃ cols : List (Nat × Nat), cols.length = r ∧ (∀ c ∈ cols, colOK dV dW p c.1 c.2) ∧
    ColsIndepQ (rowOK dV dU p) (kosEntry T dV) cols
def ColsIndepQ (rowOK : Nat → Nat → Prop) (M : Nat → Nat → Nat → Nat → Int)
    (cols : List (Nat × Nat)) : Prop :=
  ∀ x : List Rat, x.length = cols.length →
    (∀ S u, rowOK S u → (List.zipWith (fun a c => a * ((M S u c.1 c.2 : Int) : Rat)) x cols).sum = 0) →
    ∀ a ∈ x, a = 0
def kosEntry (T : Nat → Nat → Nat → Int) (dV : Nat) (S u S' w : Nat) : Int :=
  ((List.range dV).map fun v =>
    if S.testBit v = false ∧ S' = S ||| 2 ^ v then
      (if below S v % 2 = 0 then 1 else -1) * T v u w
    else 0).sum
def below (S v : Nat) : Nat := ((List.range v).filter (fun s => S.testBit s)).length
def rowOK (dV dU p : Nat) (S u : Nat) : Prop := S < 2 ^ dV ∧ below S dV = p ∧ u < dU
def colOK (dV dW p : Nat) (S' w : Nat) : Prop := S' < 2 ^ dV ∧ below S' dV = p + 1 ∧ w < dW

Source: Zenodo record 23716496, survive-3sum-apsp-supplement.zip/survive-3sum-apsp-supplement/lean/KoszulCert/N/S121.lean:12.

Axioms, as Lean reports them. Recorded in zenodo:23716496/survive-3sum-apsp-supplement.zip/survive-3sum-apsp-supplement/lean/results/axioms_N_s1n1.txt:9-12.

'KoszulCert.N.S121_rank' depends on axioms: [propext,
 Classical.choice,
 Quot.sound,
 KoszulCert.N.S121_check._native.native_decide.ax_1_1]

KoszulCert.K.S131_rank

Table 4, the lower bounds on the flattening ranks: kernel-only

theorem S131_rank : KoszulRankGe (tensorS 1 3 1) 3 4 4 1 9
Definitions used in the statement
def tensorS (k n q : Nat) (a b c : Nat) : Int :=
  if a < k ∧ b < n ∧ c = a * n + b then 1
  else if k ≤ a ∧ a < k + q ∧ b = n + (a - k) ∧ c = k * n then 1
  else if a = k + q ∧ b = 0 ∧ c = k * n then 1
  else 0
def KoszulRankGe (T : Nat → Nat → Nat → Int) (dV dU dW p r : Nat) : Prop :=
  ∃ cols : List (Nat × Nat), cols.length = r ∧ (∀ c ∈ cols, colOK dV dW p c.1 c.2) ∧
    ColsIndepQ (rowOK dV dU p) (kosEntry T dV) cols
def ColsIndepQ (rowOK : Nat → Nat → Prop) (M : Nat → Nat → Nat → Nat → Int)
    (cols : List (Nat × Nat)) : Prop :=
  ∀ x : List Rat, x.length = cols.length →
    (∀ S u, rowOK S u → (List.zipWith (fun a c => a * ((M S u c.1 c.2 : Int) : Rat)) x cols).sum = 0) →
    ∀ a ∈ x, a = 0
def kosEntry (T : Nat → Nat → Nat → Int) (dV : Nat) (S u S' w : Nat) : Int :=
  ((List.range dV).map fun v =>
    if S.testBit v = false ∧ S' = S ||| 2 ^ v then
      (if below S v % 2 = 0 then 1 else -1) * T v u w
    else 0).sum
def below (S v : Nat) : Nat := ((List.range v).filter (fun s => S.testBit s)).length
def rowOK (dV dU p : Nat) (S u : Nat) : Prop := S < 2 ^ dV ∧ below S dV = p ∧ u < dU
def colOK (dV dW p : Nat) (S' w : Nat) : Prop := S' < 2 ^ dV ∧ below S' dV = p + 1 ∧ w < dW

Source: Zenodo record 23716496, survive-3sum-apsp-supplement.zip/survive-3sum-apsp-supplement/lean/KoszulCert/K/S131.lean:14.

Axioms, as Lean reports them. Recorded in zenodo:23716496/survive-3sum-apsp-supplement.zip/survive-3sum-apsp-supplement/lean/results/axioms_K_s1n1.txt:5.

'KoszulCert.K.S131_rank' depends on axioms: [propext, Classical.choice, Quot.sound]

KoszulCert.N.S131_rank

Table 4, the lower bounds on the flattening ranks: with compiled code

theorem S131_rank : KoszulRankGe (tensorS 1 3 1) 3 4 4 1 9
Definitions used in the statement
def tensorS (k n q : Nat) (a b c : Nat) : Int :=
  if a < k ∧ b < n ∧ c = a * n + b then 1
  else if k ≤ a ∧ a < k + q ∧ b = n + (a - k) ∧ c = k * n then 1
  else if a = k + q ∧ b = 0 ∧ c = k * n then 1
  else 0
def KoszulRankGe (T : Nat → Nat → Nat → Int) (dV dU dW p r : Nat) : Prop :=
  ∃ cols : List (Nat × Nat), cols.length = r ∧ (∀ c ∈ cols, colOK dV dW p c.1 c.2) ∧
    ColsIndepQ (rowOK dV dU p) (kosEntry T dV) cols
def ColsIndepQ (rowOK : Nat → Nat → Prop) (M : Nat → Nat → Nat → Nat → Int)
    (cols : List (Nat × Nat)) : Prop :=
  ∀ x : List Rat, x.length = cols.length →
    (∀ S u, rowOK S u → (List.zipWith (fun a c => a * ((M S u c.1 c.2 : Int) : Rat)) x cols).sum = 0) →
    ∀ a ∈ x, a = 0
def kosEntry (T : Nat → Nat → Nat → Int) (dV : Nat) (S u S' w : Nat) : Int :=
  ((List.range dV).map fun v =>
    if S.testBit v = false ∧ S' = S ||| 2 ^ v then
      (if below S v % 2 = 0 then 1 else -1) * T v u w
    else 0).sum
def below (S v : Nat) : Nat := ((List.range v).filter (fun s => S.testBit s)).length
def rowOK (dV dU p : Nat) (S u : Nat) : Prop := S < 2 ^ dV ∧ below S dV = p ∧ u < dU
def colOK (dV dW p : Nat) (S' w : Nat) : Prop := S' < 2 ^ dV ∧ below S' dV = p + 1 ∧ w < dW

Source: Zenodo record 23716496, survive-3sum-apsp-supplement.zip/survive-3sum-apsp-supplement/lean/KoszulCert/N/S131.lean:12.

Axioms, as Lean reports them. Recorded in zenodo:23716496/survive-3sum-apsp-supplement.zip/survive-3sum-apsp-supplement/lean/results/axioms_N_s1n1.txt:17-20.

'KoszulCert.N.S131_rank' depends on axioms: [propext,
 Classical.choice,
 Quot.sound,
 KoszulCert.N.S131_check._native.native_decide.ax_1_1]

KoszulCert.K.S141_rank

Table 4, the lower bounds on the flattening ranks: kernel-only

theorem S141_rank : KoszulRankGe (tensorS 1 4 1) 3 5 5 1 11
Definitions used in the statement
def tensorS (k n q : Nat) (a b c : Nat) : Int :=
  if a < k ∧ b < n ∧ c = a * n + b then 1
  else if k ≤ a ∧ a < k + q ∧ b = n + (a - k) ∧ c = k * n then 1
  else if a = k + q ∧ b = 0 ∧ c = k * n then 1
  else 0
def KoszulRankGe (T : Nat → Nat → Nat → Int) (dV dU dW p r : Nat) : Prop :=
  ∃ cols : List (Nat × Nat), cols.length = r ∧ (∀ c ∈ cols, colOK dV dW p c.1 c.2) ∧
    ColsIndepQ (rowOK dV dU p) (kosEntry T dV) cols
def ColsIndepQ (rowOK : Nat → Nat → Prop) (M : Nat → Nat → Nat → Nat → Int)
    (cols : List (Nat × Nat)) : Prop :=
  ∀ x : List Rat, x.length = cols.length →
    (∀ S u, rowOK S u → (List.zipWith (fun a c => a * ((M S u c.1 c.2 : Int) : Rat)) x cols).sum = 0) →
    ∀ a ∈ x, a = 0
def kosEntry (T : Nat → Nat → Nat → Int) (dV : Nat) (S u S' w : Nat) : Int :=
  ((List.range dV).map fun v =>
    if S.testBit v = false ∧ S' = S ||| 2 ^ v then
      (if below S v % 2 = 0 then 1 else -1) * T v u w
    else 0).sum
def below (S v : Nat) : Nat := ((List.range v).filter (fun s => S.testBit s)).length
def rowOK (dV dU p : Nat) (S u : Nat) : Prop := S < 2 ^ dV ∧ below S dV = p ∧ u < dU
def colOK (dV dW p : Nat) (S' w : Nat) : Prop := S' < 2 ^ dV ∧ below S' dV = p + 1 ∧ w < dW

Source: Zenodo record 23716496, survive-3sum-apsp-supplement.zip/survive-3sum-apsp-supplement/lean/KoszulCert/K/S141.lean:14.

Axioms, as Lean reports them. Recorded in zenodo:23716496/survive-3sum-apsp-supplement.zip/survive-3sum-apsp-supplement/lean/results/axioms_K_s1n1.txt:7.

'KoszulCert.K.S141_rank' depends on axioms: [propext, Classical.choice, Quot.sound]

KoszulCert.N.S141_rank

Table 4, the lower bounds on the flattening ranks: with compiled code

theorem S141_rank : KoszulRankGe (tensorS 1 4 1) 3 5 5 1 11
Definitions used in the statement
def tensorS (k n q : Nat) (a b c : Nat) : Int :=
  if a < k ∧ b < n ∧ c = a * n + b then 1
  else if k ≤ a ∧ a < k + q ∧ b = n + (a - k) ∧ c = k * n then 1
  else if a = k + q ∧ b = 0 ∧ c = k * n then 1
  else 0
def KoszulRankGe (T : Nat → Nat → Nat → Int) (dV dU dW p r : Nat) : Prop :=
  ∃ cols : List (Nat × Nat), cols.length = r ∧ (∀ c ∈ cols, colOK dV dW p c.1 c.2) ∧
    ColsIndepQ (rowOK dV dU p) (kosEntry T dV) cols
def ColsIndepQ (rowOK : Nat → Nat → Prop) (M : Nat → Nat → Nat → Nat → Int)
    (cols : List (Nat × Nat)) : Prop :=
  ∀ x : List Rat, x.length = cols.length →
    (∀ S u, rowOK S u → (List.zipWith (fun a c => a * ((M S u c.1 c.2 : Int) : Rat)) x cols).sum = 0) →
    ∀ a ∈ x, a = 0
def kosEntry (T : Nat → Nat → Nat → Int) (dV : Nat) (S u S' w : Nat) : Int :=
  ((List.range dV).map fun v =>
    if S.testBit v = false ∧ S' = S ||| 2 ^ v then
      (if below S v % 2 = 0 then 1 else -1) * T v u w
    else 0).sum
def below (S v : Nat) : Nat := ((List.range v).filter (fun s => S.testBit s)).length
def rowOK (dV dU p : Nat) (S u : Nat) : Prop := S < 2 ^ dV ∧ below S dV = p ∧ u < dU
def colOK (dV dW p : Nat) (S' w : Nat) : Prop := S' < 2 ^ dV ∧ below S' dV = p + 1 ∧ w < dW

Source: Zenodo record 23716496, survive-3sum-apsp-supplement.zip/survive-3sum-apsp-supplement/lean/KoszulCert/N/S141.lean:12.

Axioms, as Lean reports them. Recorded in zenodo:23716496/survive-3sum-apsp-supplement.zip/survive-3sum-apsp-supplement/lean/results/axioms_N_s1n1.txt:25-28.

'KoszulCert.N.S141_rank' depends on axioms: [propext,
 Classical.choice,
 Quot.sound,
 KoszulCert.N.S141_check._native.native_decide.ax_1_1]

KoszulCert.K.S222_borderRank

The border-rank bounds corresponding to the lower bounds on the flattening ranks in Table 4: kernel-only. Assumes the Landsberg–Ottaviani inequality.

theorem S222_borderRank (R : Nat) (hLO : LOIneq (perm201 (tensorS 2 2 2)) 5 5 4 1 R) : 6 ≤ R
Definitions used in the statement
def tensorS (k n q : Nat) (a b c : Nat) : Int :=
  if a < k ∧ b < n ∧ c = a * n + b then 1
  else if k ≤ a ∧ a < k + q ∧ b = n + (a - k) ∧ c = k * n then 1
  else if a = k + q ∧ b = 0 ∧ c = k * n then 1
  else 0
def perm201 (T : Nat → Nat → Nat → Int) (v u w : Nat) : Int := T u w v
def KoszulRankGe (T : Nat → Nat → Nat → Int) (dV dU dW p r : Nat) : Prop :=
  ∃ cols : List (Nat × Nat), cols.length = r ∧ (∀ c ∈ cols, colOK dV dW p c.1 c.2) ∧
    ColsIndepQ (rowOK dV dU p) (kosEntry T dV) cols
def ColsIndepQ (rowOK : Nat → Nat → Prop) (M : Nat → Nat → Nat → Nat → Int)
    (cols : List (Nat × Nat)) : Prop :=
  ∀ x : List Rat, x.length = cols.length →
    (∀ S u, rowOK S u → (List.zipWith (fun a c => a * ((M S u c.1 c.2 : Int) : Rat)) x cols).sum = 0) →
    ∀ a ∈ x, a = 0
def kosEntry (T : Nat → Nat → Nat → Int) (dV : Nat) (S u S' w : Nat) : Int :=
  ((List.range dV).map fun v =>
    if S.testBit v = false ∧ S' = S ||| 2 ^ v then
      (if below S v % 2 = 0 then 1 else -1) * T v u w
    else 0).sum
def below (S v : Nat) : Nat := ((List.range v).filter (fun s => S.testBit s)).length
def rowOK (dV dU p : Nat) (S u : Nat) : Prop := S < 2 ^ dV ∧ below S dV = p ∧ u < dU
def colOK (dV dW p : Nat) (S' w : Nat) : Prop := S' < 2 ^ dV ∧ below S' dV = p + 1 ∧ w < dW
def LOIneq (T : Nat → Nat → Nat → Int) (dV dU dW p R : Nat) : Prop :=
  ∀ r, KoszulRankGe T dV dU dW p r → r ≤ binom (dV - 1) p * R
def binom : Nat → Nat → Nat
  | _, 0 => 1
  | 0, _ + 1 => 0
  | n + 1, k + 1 => binom n k + binom n (k + 1)

Source: Zenodo record 23716496, survive-3sum-apsp-supplement.zip/survive-3sum-apsp-supplement/lean/KoszulCert/K/S222.lean:18.

Axioms, as Lean reports them. Recorded in zenodo:23716496/survive-3sum-apsp-supplement.zip/survive-3sum-apsp-supplement/lean/results/axioms_K.txt:2.

'KoszulCert.K.S222_borderRank' depends on axioms: [propext, Classical.choice, Quot.sound]

KoszulCert.N.S222_borderRank

The border-rank bounds corresponding to the lower bounds on the flattening ranks in Table 4: with compiled code. Assumes the Landsberg–Ottaviani inequality.

theorem S222_borderRank (R : Nat) (hLO : LOIneq (perm201 (tensorS 2 2 2)) 5 5 4 1 R) : 6 ≤ R
Definitions used in the statement
def tensorS (k n q : Nat) (a b c : Nat) : Int :=
  if a < k ∧ b < n ∧ c = a * n + b then 1
  else if k ≤ a ∧ a < k + q ∧ b = n + (a - k) ∧ c = k * n then 1
  else if a = k + q ∧ b = 0 ∧ c = k * n then 1
  else 0
def perm201 (T : Nat → Nat → Nat → Int) (v u w : Nat) : Int := T u w v
def KoszulRankGe (T : Nat → Nat → Nat → Int) (dV dU dW p r : Nat) : Prop :=
  ∃ cols : List (Nat × Nat), cols.length = r ∧ (∀ c ∈ cols, colOK dV dW p c.1 c.2) ∧
    ColsIndepQ (rowOK dV dU p) (kosEntry T dV) cols
def ColsIndepQ (rowOK : Nat → Nat → Prop) (M : Nat → Nat → Nat → Nat → Int)
    (cols : List (Nat × Nat)) : Prop :=
  ∀ x : List Rat, x.length = cols.length →
    (∀ S u, rowOK S u → (List.zipWith (fun a c => a * ((M S u c.1 c.2 : Int) : Rat)) x cols).sum = 0) →
    ∀ a ∈ x, a = 0
def kosEntry (T : Nat → Nat → Nat → Int) (dV : Nat) (S u S' w : Nat) : Int :=
  ((List.range dV).map fun v =>
    if S.testBit v = false ∧ S' = S ||| 2 ^ v then
      (if below S v % 2 = 0 then 1 else -1) * T v u w
    else 0).sum
def below (S v : Nat) : Nat := ((List.range v).filter (fun s => S.testBit s)).length
def rowOK (dV dU p : Nat) (S u : Nat) : Prop := S < 2 ^ dV ∧ below S dV = p ∧ u < dU
def colOK (dV dW p : Nat) (S' w : Nat) : Prop := S' < 2 ^ dV ∧ below S' dV = p + 1 ∧ w < dW
def LOIneq (T : Nat → Nat → Nat → Int) (dV dU dW p R : Nat) : Prop :=
  ∀ r, KoszulRankGe T dV dU dW p r → r ≤ binom (dV - 1) p * R
def binom : Nat → Nat → Nat
  | _, 0 => 1
  | 0, _ + 1 => 0
  | n + 1, k + 1 => binom n k + binom n (k + 1)

Source: Zenodo record 23716496, survive-3sum-apsp-supplement.zip/survive-3sum-apsp-supplement/lean/KoszulCert/N/S222.lean:16.

Axioms, as Lean reports them. Recorded in zenodo:23716496/survive-3sum-apsp-supplement.zip/survive-3sum-apsp-supplement/lean/results/axioms_N.txt:5-8.

'KoszulCert.N.S222_borderRank' depends on axioms: [propext,
 Classical.choice,
 Quot.sound,
 KoszulCert.N.S222_check._native.native_decide.ax_1_1]

KoszulCert.K.S233_borderRank

The border-rank bounds corresponding to the lower bounds on the flattening ranks in Table 4: kernel-only. Assumes the Landsberg–Ottaviani inequality.

theorem S233_borderRank (R : Nat) (hLO : LOIneq (perm201 (tensorS 2 3 3)) 7 6 6 3 R) : 8 ≤ R
Definitions used in the statement
def tensorS (k n q : Nat) (a b c : Nat) : Int :=
  if a < k ∧ b < n ∧ c = a * n + b then 1
  else if k ≤ a ∧ a < k + q ∧ b = n + (a - k) ∧ c = k * n then 1
  else if a = k + q ∧ b = 0 ∧ c = k * n then 1
  else 0
def perm201 (T : Nat → Nat → Nat → Int) (v u w : Nat) : Int := T u w v
def KoszulRankGe (T : Nat → Nat → Nat → Int) (dV dU dW p r : Nat) : Prop :=
  ∃ cols : List (Nat × Nat), cols.length = r ∧ (∀ c ∈ cols, colOK dV dW p c.1 c.2) ∧
    ColsIndepQ (rowOK dV dU p) (kosEntry T dV) cols
def ColsIndepQ (rowOK : Nat → Nat → Prop) (M : Nat → Nat → Nat → Nat → Int)
    (cols : List (Nat × Nat)) : Prop :=
  ∀ x : List Rat, x.length = cols.length →
    (∀ S u, rowOK S u → (List.zipWith (fun a c => a * ((M S u c.1 c.2 : Int) : Rat)) x cols).sum = 0) →
    ∀ a ∈ x, a = 0
def kosEntry (T : Nat → Nat → Nat → Int) (dV : Nat) (S u S' w : Nat) : Int :=
  ((List.range dV).map fun v =>
    if S.testBit v = false ∧ S' = S ||| 2 ^ v then
      (if below S v % 2 = 0 then 1 else -1) * T v u w
    else 0).sum
def below (S v : Nat) : Nat := ((List.range v).filter (fun s => S.testBit s)).length
def rowOK (dV dU p : Nat) (S u : Nat) : Prop := S < 2 ^ dV ∧ below S dV = p ∧ u < dU
def colOK (dV dW p : Nat) (S' w : Nat) : Prop := S' < 2 ^ dV ∧ below S' dV = p + 1 ∧ w < dW
def LOIneq (T : Nat → Nat → Nat → Int) (dV dU dW p R : Nat) : Prop :=
  ∀ r, KoszulRankGe T dV dU dW p r → r ≤ binom (dV - 1) p * R
def binom : Nat → Nat → Nat
  | _, 0 => 1
  | 0, _ + 1 => 0
  | n + 1, k + 1 => binom n k + binom n (k + 1)

Source: Zenodo record 23716496, survive-3sum-apsp-supplement.zip/survive-3sum-apsp-supplement/lean/KoszulCert/K/S233.lean:18.

Axioms, as Lean reports them. Recorded in zenodo:23716496/survive-3sum-apsp-supplement.zip/survive-3sum-apsp-supplement/lean/results/axioms_K.txt:4.

'KoszulCert.K.S233_borderRank' depends on axioms: [propext, Classical.choice, Quot.sound]

KoszulCert.N.S233_borderRank

The border-rank bounds corresponding to the lower bounds on the flattening ranks in Table 4: with compiled code. Assumes the Landsberg–Ottaviani inequality.

theorem S233_borderRank (R : Nat) (hLO : LOIneq (perm201 (tensorS 2 3 3)) 7 6 6 3 R) : 8 ≤ R
Definitions used in the statement
def tensorS (k n q : Nat) (a b c : Nat) : Int :=
  if a < k ∧ b < n ∧ c = a * n + b then 1
  else if k ≤ a ∧ a < k + q ∧ b = n + (a - k) ∧ c = k * n then 1
  else if a = k + q ∧ b = 0 ∧ c = k * n then 1
  else 0
def perm201 (T : Nat → Nat → Nat → Int) (v u w : Nat) : Int := T u w v
def KoszulRankGe (T : Nat → Nat → Nat → Int) (dV dU dW p r : Nat) : Prop :=
  ∃ cols : List (Nat × Nat), cols.length = r ∧ (∀ c ∈ cols, colOK dV dW p c.1 c.2) ∧
    ColsIndepQ (rowOK dV dU p) (kosEntry T dV) cols
def ColsIndepQ (rowOK : Nat → Nat → Prop) (M : Nat → Nat → Nat → Nat → Int)
    (cols : List (Nat × Nat)) : Prop :=
  ∀ x : List Rat, x.length = cols.length →
    (∀ S u, rowOK S u → (List.zipWith (fun a c => a * ((M S u c.1 c.2 : Int) : Rat)) x cols).sum = 0) →
    ∀ a ∈ x, a = 0
def kosEntry (T : Nat → Nat → Nat → Int) (dV : Nat) (S u S' w : Nat) : Int :=
  ((List.range dV).map fun v =>
    if S.testBit v = false ∧ S' = S ||| 2 ^ v then
      (if below S v % 2 = 0 then 1 else -1) * T v u w
    else 0).sum
def below (S v : Nat) : Nat := ((List.range v).filter (fun s => S.testBit s)).length
def rowOK (dV dU p : Nat) (S u : Nat) : Prop := S < 2 ^ dV ∧ below S dV = p ∧ u < dU
def colOK (dV dW p : Nat) (S' w : Nat) : Prop := S' < 2 ^ dV ∧ below S' dV = p + 1 ∧ w < dW
def LOIneq (T : Nat → Nat → Nat → Int) (dV dU dW p R : Nat) : Prop :=
  ∀ r, KoszulRankGe T dV dU dW p r → r ≤ binom (dV - 1) p * R
def binom : Nat → Nat → Nat
  | _, 0 => 1
  | 0, _ + 1 => 0
  | n + 1, k + 1 => binom n k + binom n (k + 1)

Source: Zenodo record 23716496, survive-3sum-apsp-supplement.zip/survive-3sum-apsp-supplement/lean/KoszulCert/N/S233.lean:16.

Axioms, as Lean reports them. Recorded in zenodo:23716496/survive-3sum-apsp-supplement.zip/survive-3sum-apsp-supplement/lean/results/axioms_N.txt:13-16.

'KoszulCert.N.S233_borderRank' depends on axioms: [propext,
 Classical.choice,
 Quot.sound,
 KoszulCert.N.S233_check._native.native_decide.ax_1_1]

KoszulCert.K.S323_borderRank

The border-rank bounds corresponding to the lower bounds on the flattening ranks in Table 4: kernel-only. Assumes the Landsberg–Ottaviani inequality.

theorem S323_borderRank (R : Nat) (hLO : LOIneq (perm201 (tensorS 3 2 3)) 7 7 5 1 R) : 8 ≤ R
Definitions used in the statement
def tensorS (k n q : Nat) (a b c : Nat) : Int :=
  if a < k ∧ b < n ∧ c = a * n + b then 1
  else if k ≤ a ∧ a < k + q ∧ b = n + (a - k) ∧ c = k * n then 1
  else if a = k + q ∧ b = 0 ∧ c = k * n then 1
  else 0
def perm201 (T : Nat → Nat → Nat → Int) (v u w : Nat) : Int := T u w v
def KoszulRankGe (T : Nat → Nat → Nat → Int) (dV dU dW p r : Nat) : Prop :=
  ∃ cols : List (Nat × Nat), cols.length = r ∧ (∀ c ∈ cols, colOK dV dW p c.1 c.2) ∧
    ColsIndepQ (rowOK dV dU p) (kosEntry T dV) cols
def ColsIndepQ (rowOK : Nat → Nat → Prop) (M : Nat → Nat → Nat → Nat → Int)
    (cols : List (Nat × Nat)) : Prop :=
  ∀ x : List Rat, x.length = cols.length →
    (∀ S u, rowOK S u → (List.zipWith (fun a c => a * ((M S u c.1 c.2 : Int) : Rat)) x cols).sum = 0) →
    ∀ a ∈ x, a = 0
def kosEntry (T : Nat → Nat → Nat → Int) (dV : Nat) (S u S' w : Nat) : Int :=
  ((List.range dV).map fun v =>
    if S.testBit v = false ∧ S' = S ||| 2 ^ v then
      (if below S v % 2 = 0 then 1 else -1) * T v u w
    else 0).sum
def below (S v : Nat) : Nat := ((List.range v).filter (fun s => S.testBit s)).length
def rowOK (dV dU p : Nat) (S u : Nat) : Prop := S < 2 ^ dV ∧ below S dV = p ∧ u < dU
def colOK (dV dW p : Nat) (S' w : Nat) : Prop := S' < 2 ^ dV ∧ below S' dV = p + 1 ∧ w < dW
def LOIneq (T : Nat → Nat → Nat → Int) (dV dU dW p R : Nat) : Prop :=
  ∀ r, KoszulRankGe T dV dU dW p r → r ≤ binom (dV - 1) p * R
def binom : Nat → Nat → Nat
  | _, 0 => 1
  | 0, _ + 1 => 0
  | n + 1, k + 1 => binom n k + binom n (k + 1)

Source: Zenodo record 23716496, survive-3sum-apsp-supplement.zip/survive-3sum-apsp-supplement/lean/KoszulCert/K/S323.lean:18.

Axioms, as Lean reports them. Recorded in zenodo:23716496/survive-3sum-apsp-supplement.zip/survive-3sum-apsp-supplement/lean/results/axioms_K.txt:6.

'KoszulCert.K.S323_borderRank' depends on axioms: [propext, Classical.choice, Quot.sound]

KoszulCert.N.S323_borderRank

The border-rank bounds corresponding to the lower bounds on the flattening ranks in Table 4: with compiled code. Assumes the Landsberg–Ottaviani inequality.

theorem S323_borderRank (R : Nat) (hLO : LOIneq (perm201 (tensorS 3 2 3)) 7 7 5 1 R) : 8 ≤ R
Definitions used in the statement
def tensorS (k n q : Nat) (a b c : Nat) : Int :=
  if a < k ∧ b < n ∧ c = a * n + b then 1
  else if k ≤ a ∧ a < k + q ∧ b = n + (a - k) ∧ c = k * n then 1
  else if a = k + q ∧ b = 0 ∧ c = k * n then 1
  else 0
def perm201 (T : Nat → Nat → Nat → Int) (v u w : Nat) : Int := T u w v
def KoszulRankGe (T : Nat → Nat → Nat → Int) (dV dU dW p r : Nat) : Prop :=
  ∃ cols : List (Nat × Nat), cols.length = r ∧ (∀ c ∈ cols, colOK dV dW p c.1 c.2) ∧
    ColsIndepQ (rowOK dV dU p) (kosEntry T dV) cols
def ColsIndepQ (rowOK : Nat → Nat → Prop) (M : Nat → Nat → Nat → Nat → Int)
    (cols : List (Nat × Nat)) : Prop :=
  ∀ x : List Rat, x.length = cols.length →
    (∀ S u, rowOK S u → (List.zipWith (fun a c => a * ((M S u c.1 c.2 : Int) : Rat)) x cols).sum = 0) →
    ∀ a ∈ x, a = 0
def kosEntry (T : Nat → Nat → Nat → Int) (dV : Nat) (S u S' w : Nat) : Int :=
  ((List.range dV).map fun v =>
    if S.testBit v = false ∧ S' = S ||| 2 ^ v then
      (if below S v % 2 = 0 then 1 else -1) * T v u w
    else 0).sum
def below (S v : Nat) : Nat := ((List.range v).filter (fun s => S.testBit s)).length
def rowOK (dV dU p : Nat) (S u : Nat) : Prop := S < 2 ^ dV ∧ below S dV = p ∧ u < dU
def colOK (dV dW p : Nat) (S' w : Nat) : Prop := S' < 2 ^ dV ∧ below S' dV = p + 1 ∧ w < dW
def LOIneq (T : Nat → Nat → Nat → Int) (dV dU dW p R : Nat) : Prop :=
  ∀ r, KoszulRankGe T dV dU dW p r → r ≤ binom (dV - 1) p * R
def binom : Nat → Nat → Nat
  | _, 0 => 1
  | 0, _ + 1 => 0
  | n + 1, k + 1 => binom n k + binom n (k + 1)

Source: Zenodo record 23716496, survive-3sum-apsp-supplement.zip/survive-3sum-apsp-supplement/lean/KoszulCert/N/S323.lean:16.

Axioms, as Lean reports them. Recorded in zenodo:23716496/survive-3sum-apsp-supplement.zip/survive-3sum-apsp-supplement/lean/results/axioms_N.txt:21-24.

'KoszulCert.N.S323_borderRank' depends on axioms: [propext,
 Classical.choice,
 Quot.sound,
 KoszulCert.N.S323_check._native.native_decide.ax_1_1]

KoszulCert.K.S234_borderRank

The border-rank bounds corresponding to the lower bounds on the flattening ranks in Table 4: kernel-only. Assumes the Landsberg–Ottaviani inequality.

theorem S234_borderRank (R : Nat) (hLO : LOIneq (perm201 (tensorS 2 3 4)) 7 7 7 3 R) : 9 ≤ R
Definitions used in the statement
def tensorS (k n q : Nat) (a b c : Nat) : Int :=
  if a < k ∧ b < n ∧ c = a * n + b then 1
  else if k ≤ a ∧ a < k + q ∧ b = n + (a - k) ∧ c = k * n then 1
  else if a = k + q ∧ b = 0 ∧ c = k * n then 1
  else 0
def perm201 (T : Nat → Nat → Nat → Int) (v u w : Nat) : Int := T u w v
def KoszulRankGe (T : Nat → Nat → Nat → Int) (dV dU dW p r : Nat) : Prop :=
  ∃ cols : List (Nat × Nat), cols.length = r ∧ (∀ c ∈ cols, colOK dV dW p c.1 c.2) ∧
    ColsIndepQ (rowOK dV dU p) (kosEntry T dV) cols
def ColsIndepQ (rowOK : Nat → Nat → Prop) (M : Nat → Nat → Nat → Nat → Int)
    (cols : List (Nat × Nat)) : Prop :=
  ∀ x : List Rat, x.length = cols.length →
    (∀ S u, rowOK S u → (List.zipWith (fun a c => a * ((M S u c.1 c.2 : Int) : Rat)) x cols).sum = 0) →
    ∀ a ∈ x, a = 0
def kosEntry (T : Nat → Nat → Nat → Int) (dV : Nat) (S u S' w : Nat) : Int :=
  ((List.range dV).map fun v =>
    if S.testBit v = false ∧ S' = S ||| 2 ^ v then
      (if below S v % 2 = 0 then 1 else -1) * T v u w
    else 0).sum
def below (S v : Nat) : Nat := ((List.range v).filter (fun s => S.testBit s)).length
def rowOK (dV dU p : Nat) (S u : Nat) : Prop := S < 2 ^ dV ∧ below S dV = p ∧ u < dU
def colOK (dV dW p : Nat) (S' w : Nat) : Prop := S' < 2 ^ dV ∧ below S' dV = p + 1 ∧ w < dW
def LOIneq (T : Nat → Nat → Nat → Int) (dV dU dW p R : Nat) : Prop :=
  ∀ r, KoszulRankGe T dV dU dW p r → r ≤ binom (dV - 1) p * R
def binom : Nat → Nat → Nat
  | _, 0 => 1
  | 0, _ + 1 => 0
  | n + 1, k + 1 => binom n k + binom n (k + 1)

Source: Zenodo record 23716496, survive-3sum-apsp-supplement.zip/survive-3sum-apsp-supplement/lean/KoszulCert/K/S234.lean:18.

Axioms, as Lean reports them. Recorded in zenodo:23716496/survive-3sum-apsp-supplement.zip/survive-3sum-apsp-supplement/lean/results/axioms_K.txt:8.

'KoszulCert.K.S234_borderRank' depends on axioms: [propext, Classical.choice, Quot.sound]

KoszulCert.N.S234_borderRank

The border-rank bounds corresponding to the lower bounds on the flattening ranks in Table 4: with compiled code. Assumes the Landsberg–Ottaviani inequality.

theorem S234_borderRank (R : Nat) (hLO : LOIneq (perm201 (tensorS 2 3 4)) 7 7 7 3 R) : 9 ≤ R
Definitions used in the statement
def tensorS (k n q : Nat) (a b c : Nat) : Int :=
  if a < k ∧ b < n ∧ c = a * n + b then 1
  else if k ≤ a ∧ a < k + q ∧ b = n + (a - k) ∧ c = k * n then 1
  else if a = k + q ∧ b = 0 ∧ c = k * n then 1
  else 0
def perm201 (T : Nat → Nat → Nat → Int) (v u w : Nat) : Int := T u w v
def KoszulRankGe (T : Nat → Nat → Nat → Int) (dV dU dW p r : Nat) : Prop :=
  ∃ cols : List (Nat × Nat), cols.length = r ∧ (∀ c ∈ cols, colOK dV dW p c.1 c.2) ∧
    ColsIndepQ (rowOK dV dU p) (kosEntry T dV) cols
def ColsIndepQ (rowOK : Nat → Nat → Prop) (M : Nat → Nat → Nat → Nat → Int)
    (cols : List (Nat × Nat)) : Prop :=
  ∀ x : List Rat, x.length = cols.length →
    (∀ S u, rowOK S u → (List.zipWith (fun a c => a * ((M S u c.1 c.2 : Int) : Rat)) x cols).sum = 0) →
    ∀ a ∈ x, a = 0
def kosEntry (T : Nat → Nat → Nat → Int) (dV : Nat) (S u S' w : Nat) : Int :=
  ((List.range dV).map fun v =>
    if S.testBit v = false ∧ S' = S ||| 2 ^ v then
      (if below S v % 2 = 0 then 1 else -1) * T v u w
    else 0).sum
def below (S v : Nat) : Nat := ((List.range v).filter (fun s => S.testBit s)).length
def rowOK (dV dU p : Nat) (S u : Nat) : Prop := S < 2 ^ dV ∧ below S dV = p ∧ u < dU
def colOK (dV dW p : Nat) (S' w : Nat) : Prop := S' < 2 ^ dV ∧ below S' dV = p + 1 ∧ w < dW
def LOIneq (T : Nat → Nat → Nat → Int) (dV dU dW p R : Nat) : Prop :=
  ∀ r, KoszulRankGe T dV dU dW p r → r ≤ binom (dV - 1) p * R
def binom : Nat → Nat → Nat
  | _, 0 => 1
  | 0, _ + 1 => 0
  | n + 1, k + 1 => binom n k + binom n (k + 1)

Source: Zenodo record 23716496, survive-3sum-apsp-supplement.zip/survive-3sum-apsp-supplement/lean/KoszulCert/N/S234.lean:16.

Axioms, as Lean reports them. Recorded in zenodo:23716496/survive-3sum-apsp-supplement.zip/survive-3sum-apsp-supplement/lean/results/axioms_N.txt:29-32.

'KoszulCert.N.S234_borderRank' depends on axioms: [propext,
 Classical.choice,
 Quot.sound,
 KoszulCert.N.S234_check._native.native_decide.ax_1_1]

KoszulCert.K.S324_borderRank

The border-rank bounds corresponding to the lower bounds on the flattening ranks in Table 4: kernel-only. Assumes the Landsberg–Ottaviani inequality.

theorem S324_borderRank (R : Nat) (hLO : LOIneq (perm201 (tensorS 3 2 4)) 7 8 6 1 R) : 9 ≤ R
Definitions used in the statement
def tensorS (k n q : Nat) (a b c : Nat) : Int :=
  if a < k ∧ b < n ∧ c = a * n + b then 1
  else if k ≤ a ∧ a < k + q ∧ b = n + (a - k) ∧ c = k * n then 1
  else if a = k + q ∧ b = 0 ∧ c = k * n then 1
  else 0
def perm201 (T : Nat → Nat → Nat → Int) (v u w : Nat) : Int := T u w v
def KoszulRankGe (T : Nat → Nat → Nat → Int) (dV dU dW p r : Nat) : Prop :=
  ∃ cols : List (Nat × Nat), cols.length = r ∧ (∀ c ∈ cols, colOK dV dW p c.1 c.2) ∧
    ColsIndepQ (rowOK dV dU p) (kosEntry T dV) cols
def ColsIndepQ (rowOK : Nat → Nat → Prop) (M : Nat → Nat → Nat → Nat → Int)
    (cols : List (Nat × Nat)) : Prop :=
  ∀ x : List Rat, x.length = cols.length →
    (∀ S u, rowOK S u → (List.zipWith (fun a c => a * ((M S u c.1 c.2 : Int) : Rat)) x cols).sum = 0) →
    ∀ a ∈ x, a = 0
def kosEntry (T : Nat → Nat → Nat → Int) (dV : Nat) (S u S' w : Nat) : Int :=
  ((List.range dV).map fun v =>
    if S.testBit v = false ∧ S' = S ||| 2 ^ v then
      (if below S v % 2 = 0 then 1 else -1) * T v u w
    else 0).sum
def below (S v : Nat) : Nat := ((List.range v).filter (fun s => S.testBit s)).length
def rowOK (dV dU p : Nat) (S u : Nat) : Prop := S < 2 ^ dV ∧ below S dV = p ∧ u < dU
def colOK (dV dW p : Nat) (S' w : Nat) : Prop := S' < 2 ^ dV ∧ below S' dV = p + 1 ∧ w < dW
def LOIneq (T : Nat → Nat → Nat → Int) (dV dU dW p R : Nat) : Prop :=
  ∀ r, KoszulRankGe T dV dU dW p r → r ≤ binom (dV - 1) p * R
def binom : Nat → Nat → Nat
  | _, 0 => 1
  | 0, _ + 1 => 0
  | n + 1, k + 1 => binom n k + binom n (k + 1)

Source: Zenodo record 23716496, survive-3sum-apsp-supplement.zip/survive-3sum-apsp-supplement/lean/KoszulCert/K/S324.lean:18.

Axioms, as Lean reports them. Recorded in zenodo:23716496/survive-3sum-apsp-supplement.zip/survive-3sum-apsp-supplement/lean/results/axioms_K.txt:10.

'KoszulCert.K.S324_borderRank' depends on axioms: [propext, Classical.choice, Quot.sound]

KoszulCert.N.S324_borderRank

The border-rank bounds corresponding to the lower bounds on the flattening ranks in Table 4: with compiled code. Assumes the Landsberg–Ottaviani inequality.

theorem S324_borderRank (R : Nat) (hLO : LOIneq (perm201 (tensorS 3 2 4)) 7 8 6 1 R) : 9 ≤ R
Definitions used in the statement
def tensorS (k n q : Nat) (a b c : Nat) : Int :=
  if a < k ∧ b < n ∧ c = a * n + b then 1
  else if k ≤ a ∧ a < k + q ∧ b = n + (a - k) ∧ c = k * n then 1
  else if a = k + q ∧ b = 0 ∧ c = k * n then 1
  else 0
def perm201 (T : Nat → Nat → Nat → Int) (v u w : Nat) : Int := T u w v
def KoszulRankGe (T : Nat → Nat → Nat → Int) (dV dU dW p r : Nat) : Prop :=
  ∃ cols : List (Nat × Nat), cols.length = r ∧ (∀ c ∈ cols, colOK dV dW p c.1 c.2) ∧
    ColsIndepQ (rowOK dV dU p) (kosEntry T dV) cols
def ColsIndepQ (rowOK : Nat → Nat → Prop) (M : Nat → Nat → Nat → Nat → Int)
    (cols : List (Nat × Nat)) : Prop :=
  ∀ x : List Rat, x.length = cols.length →
    (∀ S u, rowOK S u → (List.zipWith (fun a c => a * ((M S u c.1 c.2 : Int) : Rat)) x cols).sum = 0) →
    ∀ a ∈ x, a = 0
def kosEntry (T : Nat → Nat → Nat → Int) (dV : Nat) (S u S' w : Nat) : Int :=
  ((List.range dV).map fun v =>
    if S.testBit v = false ∧ S' = S ||| 2 ^ v then
      (if below S v % 2 = 0 then 1 else -1) * T v u w
    else 0).sum
def below (S v : Nat) : Nat := ((List.range v).filter (fun s => S.testBit s)).length
def rowOK (dV dU p : Nat) (S u : Nat) : Prop := S < 2 ^ dV ∧ below S dV = p ∧ u < dU
def colOK (dV dW p : Nat) (S' w : Nat) : Prop := S' < 2 ^ dV ∧ below S' dV = p + 1 ∧ w < dW
def LOIneq (T : Nat → Nat → Nat → Int) (dV dU dW p R : Nat) : Prop :=
  ∀ r, KoszulRankGe T dV dU dW p r → r ≤ binom (dV - 1) p * R
def binom : Nat → Nat → Nat
  | _, 0 => 1
  | 0, _ + 1 => 0
  | n + 1, k + 1 => binom n k + binom n (k + 1)

Source: Zenodo record 23716496, survive-3sum-apsp-supplement.zip/survive-3sum-apsp-supplement/lean/KoszulCert/N/S324.lean:16.

Axioms, as Lean reports them. Recorded in zenodo:23716496/survive-3sum-apsp-supplement.zip/survive-3sum-apsp-supplement/lean/results/axioms_N.txt:37-40.

'KoszulCert.N.S324_borderRank' depends on axioms: [propext,
 Classical.choice,
 Quot.sound,
 KoszulCert.N.S324_check._native.native_decide.ax_1_1]

KoszulCert.K.G2222_borderRank

The border-rank bounds corresponding to the lower bounds on the flattening ranks in Table 4: kernel-only. Assumes the Landsberg–Ottaviani inequality.

theorem G2222_borderRank (R : Nat) (hLO : LOIneq (perm201 (tensorG 2 2 2 2)) 6 6 6 2 R) : 7 ≤ R
Definitions used in the statement
def tensorG (k n q1 q2 : Nat) (a b c : Nat) : Int :=
  if a < k ∧ b < n ∧ c = a * n + b then 1
  else if k ≤ a ∧ a < k + q1 ∧ b = n + (a - k) ∧ c = k * n then 1
  else if k + q1 ≤ a ∧ a < k + q1 + q2 ∧ b = n + (a - k) ∧ c = k * n + 1 then 1
  else 0
def perm201 (T : Nat → Nat → Nat → Int) (v u w : Nat) : Int := T u w v
def KoszulRankGe (T : Nat → Nat → Nat → Int) (dV dU dW p r : Nat) : Prop :=
  ∃ cols : List (Nat × Nat), cols.length = r ∧ (∀ c ∈ cols, colOK dV dW p c.1 c.2) ∧
    ColsIndepQ (rowOK dV dU p) (kosEntry T dV) cols
def ColsIndepQ (rowOK : Nat → Nat → Prop) (M : Nat → Nat → Nat → Nat → Int)
    (cols : List (Nat × Nat)) : Prop :=
  ∀ x : List Rat, x.length = cols.length →
    (∀ S u, rowOK S u → (List.zipWith (fun a c => a * ((M S u c.1 c.2 : Int) : Rat)) x cols).sum = 0) →
    ∀ a ∈ x, a = 0
def kosEntry (T : Nat → Nat → Nat → Int) (dV : Nat) (S u S' w : Nat) : Int :=
  ((List.range dV).map fun v =>
    if S.testBit v = false ∧ S' = S ||| 2 ^ v then
      (if below S v % 2 = 0 then 1 else -1) * T v u w
    else 0).sum
def below (S v : Nat) : Nat := ((List.range v).filter (fun s => S.testBit s)).length
def rowOK (dV dU p : Nat) (S u : Nat) : Prop := S < 2 ^ dV ∧ below S dV = p ∧ u < dU
def colOK (dV dW p : Nat) (S' w : Nat) : Prop := S' < 2 ^ dV ∧ below S' dV = p + 1 ∧ w < dW
def LOIneq (T : Nat → Nat → Nat → Int) (dV dU dW p R : Nat) : Prop :=
  ∀ r, KoszulRankGe T dV dU dW p r → r ≤ binom (dV - 1) p * R
def binom : Nat → Nat → Nat
  | _, 0 => 1
  | 0, _ + 1 => 0
  | n + 1, k + 1 => binom n k + binom n (k + 1)

Source: Zenodo record 23716496, survive-3sum-apsp-supplement.zip/survive-3sum-apsp-supplement/lean/KoszulCert/K/G2222.lean:18.

Axioms, as Lean reports them. Recorded in zenodo:23716496/survive-3sum-apsp-supplement.zip/survive-3sum-apsp-supplement/lean/results/axioms_K.txt:12.

'KoszulCert.K.G2222_borderRank' depends on axioms: [propext, Classical.choice, Quot.sound]

KoszulCert.N.G2222_borderRank

The border-rank bounds corresponding to the lower bounds on the flattening ranks in Table 4: with compiled code. Assumes the Landsberg–Ottaviani inequality.

theorem G2222_borderRank (R : Nat) (hLO : LOIneq (perm201 (tensorG 2 2 2 2)) 6 6 6 2 R) : 7 ≤ R
Definitions used in the statement
def tensorG (k n q1 q2 : Nat) (a b c : Nat) : Int :=
  if a < k ∧ b < n ∧ c = a * n + b then 1
  else if k ≤ a ∧ a < k + q1 ∧ b = n + (a - k) ∧ c = k * n then 1
  else if k + q1 ≤ a ∧ a < k + q1 + q2 ∧ b = n + (a - k) ∧ c = k * n + 1 then 1
  else 0
def perm201 (T : Nat → Nat → Nat → Int) (v u w : Nat) : Int := T u w v
def KoszulRankGe (T : Nat → Nat → Nat → Int) (dV dU dW p r : Nat) : Prop :=
  ∃ cols : List (Nat × Nat), cols.length = r ∧ (∀ c ∈ cols, colOK dV dW p c.1 c.2) ∧
    ColsIndepQ (rowOK dV dU p) (kosEntry T dV) cols
def ColsIndepQ (rowOK : Nat → Nat → Prop) (M : Nat → Nat → Nat → Nat → Int)
    (cols : List (Nat × Nat)) : Prop :=
  ∀ x : List Rat, x.length = cols.length →
    (∀ S u, rowOK S u → (List.zipWith (fun a c => a * ((M S u c.1 c.2 : Int) : Rat)) x cols).sum = 0) →
    ∀ a ∈ x, a = 0
def kosEntry (T : Nat → Nat → Nat → Int) (dV : Nat) (S u S' w : Nat) : Int :=
  ((List.range dV).map fun v =>
    if S.testBit v = false ∧ S' = S ||| 2 ^ v then
      (if below S v % 2 = 0 then 1 else -1) * T v u w
    else 0).sum
def below (S v : Nat) : Nat := ((List.range v).filter (fun s => S.testBit s)).length
def rowOK (dV dU p : Nat) (S u : Nat) : Prop := S < 2 ^ dV ∧ below S dV = p ∧ u < dU
def colOK (dV dW p : Nat) (S' w : Nat) : Prop := S' < 2 ^ dV ∧ below S' dV = p + 1 ∧ w < dW
def LOIneq (T : Nat → Nat → Nat → Int) (dV dU dW p R : Nat) : Prop :=
  ∀ r, KoszulRankGe T dV dU dW p r → r ≤ binom (dV - 1) p * R
def binom : Nat → Nat → Nat
  | _, 0 => 1
  | 0, _ + 1 => 0
  | n + 1, k + 1 => binom n k + binom n (k + 1)

Source: Zenodo record 23716496, survive-3sum-apsp-supplement.zip/survive-3sum-apsp-supplement/lean/KoszulCert/N/G2222.lean:16.

Axioms, as Lean reports them. Recorded in zenodo:23716496/survive-3sum-apsp-supplement.zip/survive-3sum-apsp-supplement/lean/results/axioms_N.txt:45-48.

'KoszulCert.N.G2222_borderRank' depends on axioms: [propext,
 Classical.choice,
 Quot.sound,
 KoszulCert.N.G2222_check._native.native_decide.ax_1_1]

KoszulCert.K.G3344_borderRank

The border-rank bounds corresponding to the lower bounds on the flattening ranks in Table 4: kernel-only. Assumes the Landsberg–Ottaviani inequality.

theorem G3344_borderRank (R : Nat) (hLO : LOIneq (perm201 (tensorG 3 3 4 4)) 11 11 11 5 R) : 13 ≤ R
Definitions used in the statement
def tensorG (k n q1 q2 : Nat) (a b c : Nat) : Int :=
  if a < k ∧ b < n ∧ c = a * n + b then 1
  else if k ≤ a ∧ a < k + q1 ∧ b = n + (a - k) ∧ c = k * n then 1
  else if k + q1 ≤ a ∧ a < k + q1 + q2 ∧ b = n + (a - k) ∧ c = k * n + 1 then 1
  else 0
def perm201 (T : Nat → Nat → Nat → Int) (v u w : Nat) : Int := T u w v
def KoszulRankGe (T : Nat → Nat → Nat → Int) (dV dU dW p r : Nat) : Prop :=
  ∃ cols : List (Nat × Nat), cols.length = r ∧ (∀ c ∈ cols, colOK dV dW p c.1 c.2) ∧
    ColsIndepQ (rowOK dV dU p) (kosEntry T dV) cols
def ColsIndepQ (rowOK : Nat → Nat → Prop) (M : Nat → Nat → Nat → Nat → Int)
    (cols : List (Nat × Nat)) : Prop :=
  ∀ x : List Rat, x.length = cols.length →
    (∀ S u, rowOK S u → (List.zipWith (fun a c => a * ((M S u c.1 c.2 : Int) : Rat)) x cols).sum = 0) →
    ∀ a ∈ x, a = 0
def kosEntry (T : Nat → Nat → Nat → Int) (dV : Nat) (S u S' w : Nat) : Int :=
  ((List.range dV).map fun v =>
    if S.testBit v = false ∧ S' = S ||| 2 ^ v then
      (if below S v % 2 = 0 then 1 else -1) * T v u w
    else 0).sum
def below (S v : Nat) : Nat := ((List.range v).filter (fun s => S.testBit s)).length
def rowOK (dV dU p : Nat) (S u : Nat) : Prop := S < 2 ^ dV ∧ below S dV = p ∧ u < dU
def colOK (dV dW p : Nat) (S' w : Nat) : Prop := S' < 2 ^ dV ∧ below S' dV = p + 1 ∧ w < dW
def LOIneq (T : Nat → Nat → Nat → Int) (dV dU dW p R : Nat) : Prop :=
  ∀ r, KoszulRankGe T dV dU dW p r → r ≤ binom (dV - 1) p * R
def binom : Nat → Nat → Nat
  | _, 0 => 1
  | 0, _ + 1 => 0
  | n + 1, k + 1 => binom n k + binom n (k + 1)

Source: Zenodo record 23716496, survive-3sum-apsp-supplement.zip/survive-3sum-apsp-supplement/lean/KoszulCert/K/G3344.lean:18.

Axioms, as Lean reports them. Recorded in zenodo:23716496/survive-3sum-apsp-supplement.zip/survive-3sum-apsp-supplement/lean/results/axioms_K.txt:14.

'KoszulCert.K.G3344_borderRank' depends on axioms: [propext, Classical.choice, Quot.sound]

KoszulCert.N.G3344_borderRank

The border-rank bounds corresponding to the lower bounds on the flattening ranks in Table 4: with compiled code. Assumes the Landsberg–Ottaviani inequality.

theorem G3344_borderRank (R : Nat) (hLO : LOIneq (perm201 (tensorG 3 3 4 4)) 11 11 11 5 R) : 13 ≤ R
Definitions used in the statement
def tensorG (k n q1 q2 : Nat) (a b c : Nat) : Int :=
  if a < k ∧ b < n ∧ c = a * n + b then 1
  else if k ≤ a ∧ a < k + q1 ∧ b = n + (a - k) ∧ c = k * n then 1
  else if k + q1 ≤ a ∧ a < k + q1 + q2 ∧ b = n + (a - k) ∧ c = k * n + 1 then 1
  else 0
def perm201 (T : Nat → Nat → Nat → Int) (v u w : Nat) : Int := T u w v
def KoszulRankGe (T : Nat → Nat → Nat → Int) (dV dU dW p r : Nat) : Prop :=
  ∃ cols : List (Nat × Nat), cols.length = r ∧ (∀ c ∈ cols, colOK dV dW p c.1 c.2) ∧
    ColsIndepQ (rowOK dV dU p) (kosEntry T dV) cols
def ColsIndepQ (rowOK : Nat → Nat → Prop) (M : Nat → Nat → Nat → Nat → Int)
    (cols : List (Nat × Nat)) : Prop :=
  ∀ x : List Rat, x.length = cols.length →
    (∀ S u, rowOK S u → (List.zipWith (fun a c => a * ((M S u c.1 c.2 : Int) : Rat)) x cols).sum = 0) →
    ∀ a ∈ x, a = 0
def kosEntry (T : Nat → Nat → Nat → Int) (dV : Nat) (S u S' w : Nat) : Int :=
  ((List.range dV).map fun v =>
    if S.testBit v = false ∧ S' = S ||| 2 ^ v then
      (if below S v % 2 = 0 then 1 else -1) * T v u w
    else 0).sum
def below (S v : Nat) : Nat := ((List.range v).filter (fun s => S.testBit s)).length
def rowOK (dV dU p : Nat) (S u : Nat) : Prop := S < 2 ^ dV ∧ below S dV = p ∧ u < dU
def colOK (dV dW p : Nat) (S' w : Nat) : Prop := S' < 2 ^ dV ∧ below S' dV = p + 1 ∧ w < dW
def LOIneq (T : Nat → Nat → Nat → Int) (dV dU dW p R : Nat) : Prop :=
  ∀ r, KoszulRankGe T dV dU dW p r → r ≤ binom (dV - 1) p * R
def binom : Nat → Nat → Nat
  | _, 0 => 1
  | 0, _ + 1 => 0
  | n + 1, k + 1 => binom n k + binom n (k + 1)

Source: Zenodo record 23716496, survive-3sum-apsp-supplement.zip/survive-3sum-apsp-supplement/lean/KoszulCert/N/G3344.lean:16.

Axioms, as Lean reports them. Recorded in zenodo:23716496/survive-3sum-apsp-supplement.zip/survive-3sum-apsp-supplement/lean/results/axioms_N.txt:53-56.

'KoszulCert.N.G3344_borderRank' depends on axioms: [propext,
 Classical.choice,
 Quot.sound,
 KoszulCert.N.G3344_check._native.native_decide.ax_1_1]

KoszulCert.K.S111_borderRank

The border-rank bounds corresponding to the lower bounds on the flattening ranks in Table 4: kernel-only. Assumes the Landsberg–Ottaviani inequality.

theorem S111_borderRank (R : Nat) (hLO : LOIneq (perm120 (tensorS 1 1 1)) 2 2 3 1 R) : 3 ≤ R
Definitions used in the statement
def tensorS (k n q : Nat) (a b c : Nat) : Int :=
  if a < k ∧ b < n ∧ c = a * n + b then 1
  else if k ≤ a ∧ a < k + q ∧ b = n + (a - k) ∧ c = k * n then 1
  else if a = k + q ∧ b = 0 ∧ c = k * n then 1
  else 0
def perm120 (T : Nat → Nat → Nat → Int) (v u w : Nat) : Int := T w v u
def KoszulRankGe (T : Nat → Nat → Nat → Int) (dV dU dW p r : Nat) : Prop :=
  ∃ cols : List (Nat × Nat), cols.length = r ∧ (∀ c ∈ cols, colOK dV dW p c.1 c.2) ∧
    ColsIndepQ (rowOK dV dU p) (kosEntry T dV) cols
def ColsIndepQ (rowOK : Nat → Nat → Prop) (M : Nat → Nat → Nat → Nat → Int)
    (cols : List (Nat × Nat)) : Prop :=
  ∀ x : List Rat, x.length = cols.length →
    (∀ S u, rowOK S u → (List.zipWith (fun a c => a * ((M S u c.1 c.2 : Int) : Rat)) x cols).sum = 0) →
    ∀ a ∈ x, a = 0
def kosEntry (T : Nat → Nat → Nat → Int) (dV : Nat) (S u S' w : Nat) : Int :=
  ((List.range dV).map fun v =>
    if S.testBit v = false ∧ S' = S ||| 2 ^ v then
      (if below S v % 2 = 0 then 1 else -1) * T v u w
    else 0).sum
def below (S v : Nat) : Nat := ((List.range v).filter (fun s => S.testBit s)).length
def rowOK (dV dU p : Nat) (S u : Nat) : Prop := S < 2 ^ dV ∧ below S dV = p ∧ u < dU
def colOK (dV dW p : Nat) (S' w : Nat) : Prop := S' < 2 ^ dV ∧ below S' dV = p + 1 ∧ w < dW
def LOIneq (T : Nat → Nat → Nat → Int) (dV dU dW p R : Nat) : Prop :=
  ∀ r, KoszulRankGe T dV dU dW p r → r ≤ binom (dV - 1) p * R
def binom : Nat → Nat → Nat
  | _, 0 => 1
  | 0, _ + 1 => 0
  | n + 1, k + 1 => binom n k + binom n (k + 1)

Source: Zenodo record 23716496, survive-3sum-apsp-supplement.zip/survive-3sum-apsp-supplement/lean/KoszulCert/K/S111.lean:18.

Axioms, as Lean reports them. Recorded in zenodo:23716496/survive-3sum-apsp-supplement.zip/survive-3sum-apsp-supplement/lean/results/axioms_K_s1n1.txt:2.

'KoszulCert.K.S111_borderRank' depends on axioms: [propext, Classical.choice, Quot.sound]

KoszulCert.N.S111_borderRank

The border-rank bounds corresponding to the lower bounds on the flattening ranks in Table 4: with compiled code. Assumes the Landsberg–Ottaviani inequality.

theorem S111_borderRank (R : Nat) (hLO : LOIneq (perm120 (tensorS 1 1 1)) 2 2 3 1 R) : 3 ≤ R
Definitions used in the statement
def tensorS (k n q : Nat) (a b c : Nat) : Int :=
  if a < k ∧ b < n ∧ c = a * n + b then 1
  else if k ≤ a ∧ a < k + q ∧ b = n + (a - k) ∧ c = k * n then 1
  else if a = k + q ∧ b = 0 ∧ c = k * n then 1
  else 0
def perm120 (T : Nat → Nat → Nat → Int) (v u w : Nat) : Int := T w v u
def KoszulRankGe (T : Nat → Nat → Nat → Int) (dV dU dW p r : Nat) : Prop :=
  ∃ cols : List (Nat × Nat), cols.length = r ∧ (∀ c ∈ cols, colOK dV dW p c.1 c.2) ∧
    ColsIndepQ (rowOK dV dU p) (kosEntry T dV) cols
def ColsIndepQ (rowOK : Nat → Nat → Prop) (M : Nat → Nat → Nat → Nat → Int)
    (cols : List (Nat × Nat)) : Prop :=
  ∀ x : List Rat, x.length = cols.length →
    (∀ S u, rowOK S u → (List.zipWith (fun a c => a * ((M S u c.1 c.2 : Int) : Rat)) x cols).sum = 0) →
    ∀ a ∈ x, a = 0
def kosEntry (T : Nat → Nat → Nat → Int) (dV : Nat) (S u S' w : Nat) : Int :=
  ((List.range dV).map fun v =>
    if S.testBit v = false ∧ S' = S ||| 2 ^ v then
      (if below S v % 2 = 0 then 1 else -1) * T v u w
    else 0).sum
def below (S v : Nat) : Nat := ((List.range v).filter (fun s => S.testBit s)).length
def rowOK (dV dU p : Nat) (S u : Nat) : Prop := S < 2 ^ dV ∧ below S dV = p ∧ u < dU
def colOK (dV dW p : Nat) (S' w : Nat) : Prop := S' < 2 ^ dV ∧ below S' dV = p + 1 ∧ w < dW
def LOIneq (T : Nat → Nat → Nat → Int) (dV dU dW p R : Nat) : Prop :=
  ∀ r, KoszulRankGe T dV dU dW p r → r ≤ binom (dV - 1) p * R
def binom : Nat → Nat → Nat
  | _, 0 => 1
  | 0, _ + 1 => 0
  | n + 1, k + 1 => binom n k + binom n (k + 1)

Source: Zenodo record 23716496, survive-3sum-apsp-supplement.zip/survive-3sum-apsp-supplement/lean/KoszulCert/N/S111.lean:16.

Axioms, as Lean reports them. Recorded in zenodo:23716496/survive-3sum-apsp-supplement.zip/survive-3sum-apsp-supplement/lean/results/axioms_N_s1n1.txt:5-8.

'KoszulCert.N.S111_borderRank' depends on axioms: [propext,
 Classical.choice,
 Quot.sound,
 KoszulCert.N.S111_check._native.native_decide.ax_1_1]

KoszulCert.K.S121_borderRank

The border-rank bounds corresponding to the lower bounds on the flattening ranks in Table 4: kernel-only. Assumes the Landsberg–Ottaviani inequality.

theorem S121_borderRank (R : Nat) (hLO : LOIneq (tensorS 1 2 1) 3 3 3 1 R) : 4 ≤ R
Definitions used in the statement
def tensorS (k n q : Nat) (a b c : Nat) : Int :=
  if a < k ∧ b < n ∧ c = a * n + b then 1
  else if k ≤ a ∧ a < k + q ∧ b = n + (a - k) ∧ c = k * n then 1
  else if a = k + q ∧ b = 0 ∧ c = k * n then 1
  else 0
def KoszulRankGe (T : Nat → Nat → Nat → Int) (dV dU dW p r : Nat) : Prop :=
  ∃ cols : List (Nat × Nat), cols.length = r ∧ (∀ c ∈ cols, colOK dV dW p c.1 c.2) ∧
    ColsIndepQ (rowOK dV dU p) (kosEntry T dV) cols
def ColsIndepQ (rowOK : Nat → Nat → Prop) (M : Nat → Nat → Nat → Nat → Int)
    (cols : List (Nat × Nat)) : Prop :=
  ∀ x : List Rat, x.length = cols.length →
    (∀ S u, rowOK S u → (List.zipWith (fun a c => a * ((M S u c.1 c.2 : Int) : Rat)) x cols).sum = 0) →
    ∀ a ∈ x, a = 0
def kosEntry (T : Nat → Nat → Nat → Int) (dV : Nat) (S u S' w : Nat) : Int :=
  ((List.range dV).map fun v =>
    if S.testBit v = false ∧ S' = S ||| 2 ^ v then
      (if below S v % 2 = 0 then 1 else -1) * T v u w
    else 0).sum
def below (S v : Nat) : Nat := ((List.range v).filter (fun s => S.testBit s)).length
def rowOK (dV dU p : Nat) (S u : Nat) : Prop := S < 2 ^ dV ∧ below S dV = p ∧ u < dU
def colOK (dV dW p : Nat) (S' w : Nat) : Prop := S' < 2 ^ dV ∧ below S' dV = p + 1 ∧ w < dW
def LOIneq (T : Nat → Nat → Nat → Int) (dV dU dW p R : Nat) : Prop :=
  ∀ r, KoszulRankGe T dV dU dW p r → r ≤ binom (dV - 1) p * R
def binom : Nat → Nat → Nat
  | _, 0 => 1
  | 0, _ + 1 => 0
  | n + 1, k + 1 => binom n k + binom n (k + 1)

Source: Zenodo record 23716496, survive-3sum-apsp-supplement.zip/survive-3sum-apsp-supplement/lean/KoszulCert/K/S121.lean:18.

Axioms, as Lean reports them. Recorded in zenodo:23716496/survive-3sum-apsp-supplement.zip/survive-3sum-apsp-supplement/lean/results/axioms_K_s1n1.txt:4.

'KoszulCert.K.S121_borderRank' depends on axioms: [propext, Classical.choice, Quot.sound]

KoszulCert.N.S121_borderRank

The border-rank bounds corresponding to the lower bounds on the flattening ranks in Table 4: with compiled code. Assumes the Landsberg–Ottaviani inequality.

theorem S121_borderRank (R : Nat) (hLO : LOIneq (tensorS 1 2 1) 3 3 3 1 R) : 4 ≤ R
Definitions used in the statement
def tensorS (k n q : Nat) (a b c : Nat) : Int :=
  if a < k ∧ b < n ∧ c = a * n + b then 1
  else if k ≤ a ∧ a < k + q ∧ b = n + (a - k) ∧ c = k * n then 1
  else if a = k + q ∧ b = 0 ∧ c = k * n then 1
  else 0
def KoszulRankGe (T : Nat → Nat → Nat → Int) (dV dU dW p r : Nat) : Prop :=
  ∃ cols : List (Nat × Nat), cols.length = r ∧ (∀ c ∈ cols, colOK dV dW p c.1 c.2) ∧
    ColsIndepQ (rowOK dV dU p) (kosEntry T dV) cols
def ColsIndepQ (rowOK : Nat → Nat → Prop) (M : Nat → Nat → Nat → Nat → Int)
    (cols : List (Nat × Nat)) : Prop :=
  ∀ x : List Rat, x.length = cols.length →
    (∀ S u, rowOK S u → (List.zipWith (fun a c => a * ((M S u c.1 c.2 : Int) : Rat)) x cols).sum = 0) →
    ∀ a ∈ x, a = 0
def kosEntry (T : Nat → Nat → Nat → Int) (dV : Nat) (S u S' w : Nat) : Int :=
  ((List.range dV).map fun v =>
    if S.testBit v = false ∧ S' = S ||| 2 ^ v then
      (if below S v % 2 = 0 then 1 else -1) * T v u w
    else 0).sum
def below (S v : Nat) : Nat := ((List.range v).filter (fun s => S.testBit s)).length
def rowOK (dV dU p : Nat) (S u : Nat) : Prop := S < 2 ^ dV ∧ below S dV = p ∧ u < dU
def colOK (dV dW p : Nat) (S' w : Nat) : Prop := S' < 2 ^ dV ∧ below S' dV = p + 1 ∧ w < dW
def LOIneq (T : Nat → Nat → Nat → Int) (dV dU dW p R : Nat) : Prop :=
  ∀ r, KoszulRankGe T dV dU dW p r → r ≤ binom (dV - 1) p * R
def binom : Nat → Nat → Nat
  | _, 0 => 1
  | 0, _ + 1 => 0
  | n + 1, k + 1 => binom n k + binom n (k + 1)

Source: Zenodo record 23716496, survive-3sum-apsp-supplement.zip/survive-3sum-apsp-supplement/lean/KoszulCert/N/S121.lean:16.

Axioms, as Lean reports them. Recorded in zenodo:23716496/survive-3sum-apsp-supplement.zip/survive-3sum-apsp-supplement/lean/results/axioms_N_s1n1.txt:13-16.

'KoszulCert.N.S121_borderRank' depends on axioms: [propext,
 Classical.choice,
 Quot.sound,
 KoszulCert.N.S121_check._native.native_decide.ax_1_1]

KoszulCert.K.S131_borderRank

The border-rank bounds corresponding to the lower bounds on the flattening ranks in Table 4: kernel-only. Assumes the Landsberg–Ottaviani inequality.

theorem S131_borderRank (R : Nat) (hLO : LOIneq (tensorS 1 3 1) 3 4 4 1 R) : 5 ≤ R
Definitions used in the statement
def tensorS (k n q : Nat) (a b c : Nat) : Int :=
  if a < k ∧ b < n ∧ c = a * n + b then 1
  else if k ≤ a ∧ a < k + q ∧ b = n + (a - k) ∧ c = k * n then 1
  else if a = k + q ∧ b = 0 ∧ c = k * n then 1
  else 0
def KoszulRankGe (T : Nat → Nat → Nat → Int) (dV dU dW p r : Nat) : Prop :=
  ∃ cols : List (Nat × Nat), cols.length = r ∧ (∀ c ∈ cols, colOK dV dW p c.1 c.2) ∧
    ColsIndepQ (rowOK dV dU p) (kosEntry T dV) cols
def ColsIndepQ (rowOK : Nat → Nat → Prop) (M : Nat → Nat → Nat → Nat → Int)
    (cols : List (Nat × Nat)) : Prop :=
  ∀ x : List Rat, x.length = cols.length →
    (∀ S u, rowOK S u → (List.zipWith (fun a c => a * ((M S u c.1 c.2 : Int) : Rat)) x cols).sum = 0) →
    ∀ a ∈ x, a = 0
def kosEntry (T : Nat → Nat → Nat → Int) (dV : Nat) (S u S' w : Nat) : Int :=
  ((List.range dV).map fun v =>
    if S.testBit v = false ∧ S' = S ||| 2 ^ v then
      (if below S v % 2 = 0 then 1 else -1) * T v u w
    else 0).sum
def below (S v : Nat) : Nat := ((List.range v).filter (fun s => S.testBit s)).length
def rowOK (dV dU p : Nat) (S u : Nat) : Prop := S < 2 ^ dV ∧ below S dV = p ∧ u < dU
def colOK (dV dW p : Nat) (S' w : Nat) : Prop := S' < 2 ^ dV ∧ below S' dV = p + 1 ∧ w < dW
def LOIneq (T : Nat → Nat → Nat → Int) (dV dU dW p R : Nat) : Prop :=
  ∀ r, KoszulRankGe T dV dU dW p r → r ≤ binom (dV - 1) p * R
def binom : Nat → Nat → Nat
  | _, 0 => 1
  | 0, _ + 1 => 0
  | n + 1, k + 1 => binom n k + binom n (k + 1)

Source: Zenodo record 23716496, survive-3sum-apsp-supplement.zip/survive-3sum-apsp-supplement/lean/KoszulCert/K/S131.lean:18.

Axioms, as Lean reports them. Recorded in zenodo:23716496/survive-3sum-apsp-supplement.zip/survive-3sum-apsp-supplement/lean/results/axioms_K_s1n1.txt:6.

'KoszulCert.K.S131_borderRank' depends on axioms: [propext, Classical.choice, Quot.sound]

KoszulCert.N.S131_borderRank

The border-rank bounds corresponding to the lower bounds on the flattening ranks in Table 4: with compiled code. Assumes the Landsberg–Ottaviani inequality.

theorem S131_borderRank (R : Nat) (hLO : LOIneq (tensorS 1 3 1) 3 4 4 1 R) : 5 ≤ R
Definitions used in the statement
def tensorS (k n q : Nat) (a b c : Nat) : Int :=
  if a < k ∧ b < n ∧ c = a * n + b then 1
  else if k ≤ a ∧ a < k + q ∧ b = n + (a - k) ∧ c = k * n then 1
  else if a = k + q ∧ b = 0 ∧ c = k * n then 1
  else 0
def KoszulRankGe (T : Nat → Nat → Nat → Int) (dV dU dW p r : Nat) : Prop :=
  ∃ cols : List (Nat × Nat), cols.length = r ∧ (∀ c ∈ cols, colOK dV dW p c.1 c.2) ∧
    ColsIndepQ (rowOK dV dU p) (kosEntry T dV) cols
def ColsIndepQ (rowOK : Nat → Nat → Prop) (M : Nat → Nat → Nat → Nat → Int)
    (cols : List (Nat × Nat)) : Prop :=
  ∀ x : List Rat, x.length = cols.length →
    (∀ S u, rowOK S u → (List.zipWith (fun a c => a * ((M S u c.1 c.2 : Int) : Rat)) x cols).sum = 0) →
    ∀ a ∈ x, a = 0
def kosEntry (T : Nat → Nat → Nat → Int) (dV : Nat) (S u S' w : Nat) : Int :=
  ((List.range dV).map fun v =>
    if S.testBit v = false ∧ S' = S ||| 2 ^ v then
      (if below S v % 2 = 0 then 1 else -1) * T v u w
    else 0).sum
def below (S v : Nat) : Nat := ((List.range v).filter (fun s => S.testBit s)).length
def rowOK (dV dU p : Nat) (S u : Nat) : Prop := S < 2 ^ dV ∧ below S dV = p ∧ u < dU
def colOK (dV dW p : Nat) (S' w : Nat) : Prop := S' < 2 ^ dV ∧ below S' dV = p + 1 ∧ w < dW
def LOIneq (T : Nat → Nat → Nat → Int) (dV dU dW p R : Nat) : Prop :=
  ∀ r, KoszulRankGe T dV dU dW p r → r ≤ binom (dV - 1) p * R
def binom : Nat → Nat → Nat
  | _, 0 => 1
  | 0, _ + 1 => 0
  | n + 1, k + 1 => binom n k + binom n (k + 1)

Source: Zenodo record 23716496, survive-3sum-apsp-supplement.zip/survive-3sum-apsp-supplement/lean/KoszulCert/N/S131.lean:16.

Axioms, as Lean reports them. Recorded in zenodo:23716496/survive-3sum-apsp-supplement.zip/survive-3sum-apsp-supplement/lean/results/axioms_N_s1n1.txt:21-24.

'KoszulCert.N.S131_borderRank' depends on axioms: [propext,
 Classical.choice,
 Quot.sound,
 KoszulCert.N.S131_check._native.native_decide.ax_1_1]

KoszulCert.K.S141_borderRank

The border-rank bounds corresponding to the lower bounds on the flattening ranks in Table 4: kernel-only. Assumes the Landsberg–Ottaviani inequality.

theorem S141_borderRank (R : Nat) (hLO : LOIneq (tensorS 1 4 1) 3 5 5 1 R) : 6 ≤ R
Definitions used in the statement
def tensorS (k n q : Nat) (a b c : Nat) : Int :=
  if a < k ∧ b < n ∧ c = a * n + b then 1
  else if k ≤ a ∧ a < k + q ∧ b = n + (a - k) ∧ c = k * n then 1
  else if a = k + q ∧ b = 0 ∧ c = k * n then 1
  else 0
def KoszulRankGe (T : Nat → Nat → Nat → Int) (dV dU dW p r : Nat) : Prop :=
  ∃ cols : List (Nat × Nat), cols.length = r ∧ (∀ c ∈ cols, colOK dV dW p c.1 c.2) ∧
    ColsIndepQ (rowOK dV dU p) (kosEntry T dV) cols
def ColsIndepQ (rowOK : Nat → Nat → Prop) (M : Nat → Nat → Nat → Nat → Int)
    (cols : List (Nat × Nat)) : Prop :=
  ∀ x : List Rat, x.length = cols.length →
    (∀ S u, rowOK S u → (List.zipWith (fun a c => a * ((M S u c.1 c.2 : Int) : Rat)) x cols).sum = 0) →
    ∀ a ∈ x, a = 0
def kosEntry (T : Nat → Nat → Nat → Int) (dV : Nat) (S u S' w : Nat) : Int :=
  ((List.range dV).map fun v =>
    if S.testBit v = false ∧ S' = S ||| 2 ^ v then
      (if below S v % 2 = 0 then 1 else -1) * T v u w
    else 0).sum
def below (S v : Nat) : Nat := ((List.range v).filter (fun s => S.testBit s)).length
def rowOK (dV dU p : Nat) (S u : Nat) : Prop := S < 2 ^ dV ∧ below S dV = p ∧ u < dU
def colOK (dV dW p : Nat) (S' w : Nat) : Prop := S' < 2 ^ dV ∧ below S' dV = p + 1 ∧ w < dW
def LOIneq (T : Nat → Nat → Nat → Int) (dV dU dW p R : Nat) : Prop :=
  ∀ r, KoszulRankGe T dV dU dW p r → r ≤ binom (dV - 1) p * R
def binom : Nat → Nat → Nat
  | _, 0 => 1
  | 0, _ + 1 => 0
  | n + 1, k + 1 => binom n k + binom n (k + 1)

Source: Zenodo record 23716496, survive-3sum-apsp-supplement.zip/survive-3sum-apsp-supplement/lean/KoszulCert/K/S141.lean:18.

Axioms, as Lean reports them. Recorded in zenodo:23716496/survive-3sum-apsp-supplement.zip/survive-3sum-apsp-supplement/lean/results/axioms_K_s1n1.txt:8.

'KoszulCert.K.S141_borderRank' depends on axioms: [propext, Classical.choice, Quot.sound]

KoszulCert.N.S141_borderRank

The border-rank bounds corresponding to the lower bounds on the flattening ranks in Table 4: with compiled code. Assumes the Landsberg–Ottaviani inequality.

theorem S141_borderRank (R : Nat) (hLO : LOIneq (tensorS 1 4 1) 3 5 5 1 R) : 6 ≤ R
Definitions used in the statement
def tensorS (k n q : Nat) (a b c : Nat) : Int :=
  if a < k ∧ b < n ∧ c = a * n + b then 1
  else if k ≤ a ∧ a < k + q ∧ b = n + (a - k) ∧ c = k * n then 1
  else if a = k + q ∧ b = 0 ∧ c = k * n then 1
  else 0
def KoszulRankGe (T : Nat → Nat → Nat → Int) (dV dU dW p r : Nat) : Prop :=
  ∃ cols : List (Nat × Nat), cols.length = r ∧ (∀ c ∈ cols, colOK dV dW p c.1 c.2) ∧
    ColsIndepQ (rowOK dV dU p) (kosEntry T dV) cols
def ColsIndepQ (rowOK : Nat → Nat → Prop) (M : Nat → Nat → Nat → Nat → Int)
    (cols : List (Nat × Nat)) : Prop :=
  ∀ x : List Rat, x.length = cols.length →
    (∀ S u, rowOK S u → (List.zipWith (fun a c => a * ((M S u c.1 c.2 : Int) : Rat)) x cols).sum = 0) →
    ∀ a ∈ x, a = 0
def kosEntry (T : Nat → Nat → Nat → Int) (dV : Nat) (S u S' w : Nat) : Int :=
  ((List.range dV).map fun v =>
    if S.testBit v = false ∧ S' = S ||| 2 ^ v then
      (if below S v % 2 = 0 then 1 else -1) * T v u w
    else 0).sum
def below (S v : Nat) : Nat := ((List.range v).filter (fun s => S.testBit s)).length
def rowOK (dV dU p : Nat) (S u : Nat) : Prop := S < 2 ^ dV ∧ below S dV = p ∧ u < dU
def colOK (dV dW p : Nat) (S' w : Nat) : Prop := S' < 2 ^ dV ∧ below S' dV = p + 1 ∧ w < dW
def LOIneq (T : Nat → Nat → Nat → Int) (dV dU dW p R : Nat) : Prop :=
  ∀ r, KoszulRankGe T dV dU dW p r → r ≤ binom (dV - 1) p * R
def binom : Nat → Nat → Nat
  | _, 0 => 1
  | 0, _ + 1 => 0
  | n + 1, k + 1 => binom n k + binom n (k + 1)

Source: Zenodo record 23716496, survive-3sum-apsp-supplement.zip/survive-3sum-apsp-supplement/lean/KoszulCert/N/S141.lean:16.

Axioms, as Lean reports them. Recorded in zenodo:23716496/survive-3sum-apsp-supplement.zip/survive-3sum-apsp-supplement/lean/results/axioms_N_s1n1.txt:29-32.

'KoszulCert.N.S141_borderRank' depends on axioms: [propext,
 Classical.choice,
 Quot.sound,
 KoszulCert.N.S141_check._native.native_decide.ax_1_1]

ShapesRange.certs_hold_kernel

The integer comparisons behind Proposition 6.1: kernel-only

theorem certs_hold_kernel : ∀ x ∈ certs, checkShape x.1 x.2 = true
Definitions used in the statement
inductive Rel where
  | lt | eq | gt
  deriving DecidableEq
def relHolds : Rel → Nat → Nat → Bool
  | .lt, x, y => decide (x < y)
  | .eq, x, y => decide (x = y)
  | .gt, x, y => decide (y < x)
def checkShape : (Nat × Nat × Nat) → (Rel × Nat × Nat) → Bool
  | (k, n, q), (r, a, b) =>
    if q = 1 then decide (r = .lt)
    else relHolds r (q ^ b) (2 ^ a) && relHolds r (5 ^ (5 * a)) ((k * n + 1) ^ ((k * n + 1) * b))
def certs : List ((Nat × Nat × Nat) × (Rel × Nat × Nat)) := [
  ((1, 1, 1), (.lt, 0, 1)),
  ((1, 1, 2), (.gt, 1, 2)),
  ((1, 2, 1), (.lt, 0, 1)),
  ((1, 2, 2), (.gt, 1, 2)),
  ((1, 3, 1), (.lt, 0, 1)),
  ((1, 3, 2), (.gt, 3, 4)),
  ((1, 4, 1), (.lt, 0, 1)),
  ((1, 4, 2), (.eq, 1, 1)),
  ((1, 5, 1), (.lt, 0, 1)),
  ((1, 5, 2), (.lt, 4, 3)),
  ((1, 6, 1), (.lt, 0, 1)),
  ((1, 6, 2), (.lt, 3, 2)),
  ((1, 7, 1), (.lt, 0, 1)),
  ((1, 7, 2), (.lt, 2, 1)),
  ((1, 8, 1), (.lt, 0, 1)),
  ((1, 8, 2), (.lt, 2, 1)),
  ((1, 9, 1), (.lt, 0, 1)),
  ((1, 9, 2), (.lt, 2, 1)),
  ((1, 10, 1), (.lt, 0, 1)),
  ((1, 10, 2), (.lt, 2, 1)),
  ((2, 2, 1), (.lt, 0, 1)),
  ((2, 2, 2), (.eq, 1, 1)),
  ((2, 2, 3), (.gt, 3, 2)),
  ((2, 3, 1), (.lt, 0, 1)),
  ((2, 3, 2), (.lt, 3, 2)),
  ((2, 3, 3), (.lt, 5, 3)),
  ((2, 3, 4), (.gt, 7, 4)),
  ((2, 4, 1), (.lt, 0, 1)),
  ((2, 4, 2), (.lt, 2, 1)),
  ((2, 4, 3), (.lt, 2, 1)),
  ((2, 4, 4), (.lt, 7, 3)),
  ((2, 4, 5), (.lt, 7, 3)),
  ((2, 5, 1), (.lt, 0, 1)),
  ((2, 5, 2), (.lt, 2, 1)),
  ((2, 5, 3), (.lt, 2, 1)),
  ((2, 5, 4), (.lt, 3, 1)),
  ((2, 5, 5), (.lt, 3, 1)),
  ((2, 5, 6), (.lt, 3, 1)),
  ((3, 3, 1), (.lt, 0, 1)),
  ((3, 3, 2), (.lt, 2, 1)),
  ((3, 3, 3), (.lt, 2, 1)),
  ((3, 3, 4), (.lt, 5, 2)),
  ((3, 3, 5), (.lt, 5, 2)),
  ((3, 3, 6), (.lt, 8, 3))]

Source: Zenodo record 23716496, survive-3sum-apsp-supplement.zip/survive-3sum-apsp-supplement/lean_range/ShapesRange.lean:110.

Axioms, as Lean reports them. Recorded in zenodo:23716496/survive-3sum-apsp-supplement.zip/survive-3sum-apsp-supplement/lean_range/results/axioms.txt:17.

'ShapesRange.certs_hold_kernel' does not depend on any axioms

ShapesRange.certs_hold_native

The integer comparisons behind Proposition 6.1: with compiled code

theorem certs_hold_native : ∀ x ∈ certs, checkShape x.1 x.2 = true
Definitions used in the statement
inductive Rel where
  | lt | eq | gt
  deriving DecidableEq
def relHolds : Rel → Nat → Nat → Bool
  | .lt, x, y => decide (x < y)
  | .eq, x, y => decide (x = y)
  | .gt, x, y => decide (y < x)
def checkShape : (Nat × Nat × Nat) → (Rel × Nat × Nat) → Bool
  | (k, n, q), (r, a, b) =>
    if q = 1 then decide (r = .lt)
    else relHolds r (q ^ b) (2 ^ a) && relHolds r (5 ^ (5 * a)) ((k * n + 1) ^ ((k * n + 1) * b))
def certs : List ((Nat × Nat × Nat) × (Rel × Nat × Nat)) := [
  ((1, 1, 1), (.lt, 0, 1)),
  ((1, 1, 2), (.gt, 1, 2)),
  ((1, 2, 1), (.lt, 0, 1)),
  ((1, 2, 2), (.gt, 1, 2)),
  ((1, 3, 1), (.lt, 0, 1)),
  ((1, 3, 2), (.gt, 3, 4)),
  ((1, 4, 1), (.lt, 0, 1)),
  ((1, 4, 2), (.eq, 1, 1)),
  ((1, 5, 1), (.lt, 0, 1)),
  ((1, 5, 2), (.lt, 4, 3)),
  ((1, 6, 1), (.lt, 0, 1)),
  ((1, 6, 2), (.lt, 3, 2)),
  ((1, 7, 1), (.lt, 0, 1)),
  ((1, 7, 2), (.lt, 2, 1)),
  ((1, 8, 1), (.lt, 0, 1)),
  ((1, 8, 2), (.lt, 2, 1)),
  ((1, 9, 1), (.lt, 0, 1)),
  ((1, 9, 2), (.lt, 2, 1)),
  ((1, 10, 1), (.lt, 0, 1)),
  ((1, 10, 2), (.lt, 2, 1)),
  ((2, 2, 1), (.lt, 0, 1)),
  ((2, 2, 2), (.eq, 1, 1)),
  ((2, 2, 3), (.gt, 3, 2)),
  ((2, 3, 1), (.lt, 0, 1)),
  ((2, 3, 2), (.lt, 3, 2)),
  ((2, 3, 3), (.lt, 5, 3)),
  ((2, 3, 4), (.gt, 7, 4)),
  ((2, 4, 1), (.lt, 0, 1)),
  ((2, 4, 2), (.lt, 2, 1)),
  ((2, 4, 3), (.lt, 2, 1)),
  ((2, 4, 4), (.lt, 7, 3)),
  ((2, 4, 5), (.lt, 7, 3)),
  ((2, 5, 1), (.lt, 0, 1)),
  ((2, 5, 2), (.lt, 2, 1)),
  ((2, 5, 3), (.lt, 2, 1)),
  ((2, 5, 4), (.lt, 3, 1)),
  ((2, 5, 5), (.lt, 3, 1)),
  ((2, 5, 6), (.lt, 3, 1)),
  ((3, 3, 1), (.lt, 0, 1)),
  ((3, 3, 2), (.lt, 2, 1)),
  ((3, 3, 3), (.lt, 2, 1)),
  ((3, 3, 4), (.lt, 5, 2)),
  ((3, 3, 5), (.lt, 5, 2)),
  ((3, 3, 6), (.lt, 8, 3))]

Source: Zenodo record 23716496, survive-3sum-apsp-supplement.zip/survive-3sum-apsp-supplement/lean_range/ShapesRange.lean:112.

Axioms, as Lean reports them. Recorded in zenodo:23716496/survive-3sum-apsp-supplement.zip/survive-3sum-apsp-supplement/lean_range/results/axioms.txt:18.

'ShapesRange.certs_hold_native' depends on axioms: [ShapesRange.certs_hold_native._native.native_decide.ax_1_1]

ShapesRange.cutoff

The integer comparisons behind Proposition 6.1

theorem cutoff : 5 ^ 5 < 4 ^ 6

Source: Zenodo record 23716496, survive-3sum-apsp-supplement.zip/survive-3sum-apsp-supplement/lean_range/ShapesRange.lean:88.

Axioms, as Lean reports them. Recorded in zenodo:23716496/survive-3sum-apsp-supplement.zip/survive-3sum-apsp-supplement/lean_range/results/axioms.txt:13.

'ShapesRange.cutoff' does not depend on any axioms

certF0_kernel

The six integer inequalities from which the paper derives that the constant of Theorem 5.1 lies between 0.17843 and 0.17844: kernel-only

theorem certF0_kernel : 20000^20000 < 2^7242 * 1379^1379 * 18621^18621

Source: Zenodo record 23716496, survive-3sum-apsp-supplement.zip/survive-3sum-apsp-supplement/lean_range/ExactRange.lean:10.

Axioms, as Lean reports them. Recorded in zenodo:23716496/survive-3sum-apsp-supplement.zip/survive-3sum-apsp-supplement/lean_range/results/axioms.txt:1.

'certF0_kernel' does not depend on any axioms

certF0_native

The six integer inequalities from which the paper derives that the constant of Theorem 5.1 lies between 0.17843 and 0.17844: with compiled code

theorem certF0_native : 20000^20000 < 2^7242 * 1379^1379 * 18621^18621

Source: Zenodo record 23716496, survive-3sum-apsp-supplement.zip/survive-3sum-apsp-supplement/lean_range/ExactRange.lean:13.

Axioms, as Lean reports them. Recorded in zenodo:23716496/survive-3sum-apsp-supplement.zip/survive-3sum-apsp-supplement/lean_range/results/axioms.txt:7.

'certF0_native' depends on axioms: [certF0_native._native.native_decide.ax_1_1]

certB0_kernel

The six integer inequalities from which the paper derives that the constant of Theorem 5.1 lies between 0.17843 and 0.17844: kernel-only

theorem certB0_kernel : 2^2758 * 10000^20000 * 38269^76538 * 96538^96538 < 18621^18621 * 48269^96538 * 77917^77917

Source: Zenodo record 23716496, survive-3sum-apsp-supplement.zip/survive-3sum-apsp-supplement/lean_range/ExactRange.lean:16.

Axioms, as Lean reports them. Recorded in zenodo:23716496/survive-3sum-apsp-supplement.zip/survive-3sum-apsp-supplement/lean_range/results/axioms.txt:2.

'certB0_kernel' does not depend on any axioms

certB0_native

The six integer inequalities from which the paper derives that the constant of Theorem 5.1 lies between 0.17843 and 0.17844: with compiled code

theorem certB0_native : 2^2758 * 10000^20000 * 38269^76538 * 96538^96538 < 18621^18621 * 48269^96538 * 77917^77917

Source: Zenodo record 23716496, survive-3sum-apsp-supplement.zip/survive-3sum-apsp-supplement/lean_range/ExactRange.lean:19.

Axioms, as Lean reports them. Recorded in zenodo:23716496/survive-3sum-apsp-supplement.zip/survive-3sum-apsp-supplement/lean_range/results/axioms.txt:8.

'certB0_native' depends on axioms: [certB0_native._native.native_decide.ax_1_1]

certA0_kernel

The six integer inequalities from which the paper derives that the constant of Theorem 5.1 lies between 0.17843 and 0.17844: kernel-only

theorem certA0_kernel : 5^482690 * 10000^50000 * 38269^191345 < 2^943133 * 48269^241345

Source: Zenodo record 23716496, survive-3sum-apsp-supplement.zip/survive-3sum-apsp-supplement/lean_range/ExactRange.lean:22.

Axioms, as Lean reports them. Recorded in zenodo:23716496/survive-3sum-apsp-supplement.zip/survive-3sum-apsp-supplement/lean_range/results/axioms.txt:3.

'certA0_kernel' does not depend on any axioms

certA0_native

The six integer inequalities from which the paper derives that the constant of Theorem 5.1 lies between 0.17843 and 0.17844: with compiled code

theorem certA0_native : 5^482690 * 10000^50000 * 38269^191345 < 2^943133 * 48269^241345

Source: Zenodo record 23716496, survive-3sum-apsp-supplement.zip/survive-3sum-apsp-supplement/lean_range/ExactRange.lean:25.

Axioms, as Lean reports them. Recorded in zenodo:23716496/survive-3sum-apsp-supplement.zip/survive-3sum-apsp-supplement/lean_range/results/axioms.txt:9.

'certA0_native' depends on axioms: [certA0_native._native.native_decide.ax_1_1]

certF1_kernel

The six integer inequalities from which the paper derives that the constant of Theorem 5.1 lies between 0.17843 and 0.17844: kernel-only

theorem certF1_kernel : 2^36206 * 6897^6897 * 93103^93103 < 100000^100000

Source: Zenodo record 23716496, survive-3sum-apsp-supplement.zip/survive-3sum-apsp-supplement/lean_range/ExactRange.lean:28.

Axioms, as Lean reports them. Recorded in zenodo:23716496/survive-3sum-apsp-supplement.zip/survive-3sum-apsp-supplement/lean_range/results/axioms.txt:4.

'certF1_kernel' does not depend on any axioms

certF1_native

The six integer inequalities from which the paper derives that the constant of Theorem 5.1 lies between 0.17843 and 0.17844: with compiled code

theorem certF1_native : 2^36206 * 6897^6897 * 93103^93103 < 100000^100000

Source: Zenodo record 23716496, survive-3sum-apsp-supplement.zip/survive-3sum-apsp-supplement/lean_range/ExactRange.lean:31.

Axioms, as Lean reports them. Recorded in zenodo:23716496/survive-3sum-apsp-supplement.zip/survive-3sum-apsp-supplement/lean_range/results/axioms.txt:10.

'certF1_native' depends on axioms: [certF1_native._native.native_decide.ax_1_1]

certB1_kernel

The six integer inequalities from which the paper derives that the constant of Theorem 5.1 lies between 0.17843 and 0.17844: kernel-only

theorem certB1_kernel : 12067^482680 * 93103^93103 * 389577^389577 < 2^13794 * 2500^100000 * 9567^382680 * 482680^482680

Source: Zenodo record 23716496, survive-3sum-apsp-supplement.zip/survive-3sum-apsp-supplement/lean_range/ExactRange.lean:34.

Axioms, as Lean reports them. Recorded in zenodo:23716496/survive-3sum-apsp-supplement.zip/survive-3sum-apsp-supplement/lean_range/results/axioms.txt:5.

'certB1_kernel' does not depend on any axioms

certB1_native

The six integer inequalities from which the paper derives that the constant of Theorem 5.1 lies between 0.17843 and 0.17844: with compiled code

theorem certB1_native : 12067^482680 * 93103^93103 * 389577^389577 < 2^13794 * 2500^100000 * 9567^382680 * 482680^482680

Source: Zenodo record 23716496, survive-3sum-apsp-supplement.zip/survive-3sum-apsp-supplement/lean_range/ExactRange.lean:37.

Axioms, as Lean reports them. Recorded in zenodo:23716496/survive-3sum-apsp-supplement.zip/survive-3sum-apsp-supplement/lean_range/results/axioms.txt:11.

'certB1_native' depends on axioms: [certB1_native._native.native_decide.ax_1_1]

certA1_kernel

The six integer inequalities from which the paper derives that the constant of Theorem 5.1 lies between 0.17843 and 0.17844: kernel-only

theorem certA1_kernel : 2^47155 * 12067^12067 < 5^24134 * 2500^2500 * 9567^9567

Source: Zenodo record 23716496, survive-3sum-apsp-supplement.zip/survive-3sum-apsp-supplement/lean_range/ExactRange.lean:40.

Axioms, as Lean reports them. Recorded in zenodo:23716496/survive-3sum-apsp-supplement.zip/survive-3sum-apsp-supplement/lean_range/results/axioms.txt:6.

'certA1_kernel' does not depend on any axioms

certA1_native

The six integer inequalities from which the paper derives that the constant of Theorem 5.1 lies between 0.17843 and 0.17844: with compiled code

theorem certA1_native : 2^47155 * 12067^12067 < 5^24134 * 2500^2500 * 9567^9567

Source: Zenodo record 23716496, survive-3sum-apsp-supplement.zip/survive-3sum-apsp-supplement/lean_range/ExactRange.lean:43.

Axioms, as Lean reports them. Recorded in zenodo:23716496/survive-3sum-apsp-supplement.zip/survive-3sum-apsp-supplement/lean_range/results/axioms.txt:12.

'certA1_native' depends on axioms: [certA1_native._native.native_decide.ax_1_1]