Truly subcubic Exact Triangle
Lax350013.ExactTriangle · concepts/Lax350013/ExactTriangle.lean · lax-350013
No public endorsements yet.
Loading review…
Sign in with ORCIDNatural Language Statement
Theorem
Exact Triangle on a complete tripartite graph with vertices in each part and polynomially bounded integer weights is decidable deterministically in word-RAM steps (Theorem 19). A triangle is accepted exactly when its three edge weights sum to zero.
Concept map
Evidence
Each proof establishes this claim relative to its assumptions.
Lean source view on GitHub
| 1 | /- |
| 2 | Copyright (c) 2026 Anthropic, PBC. All rights reserved. |
| 3 | Released under Apache 2.0 license as described in the file LICENSE. |
| 4 | SPDX-License-Identifier: Apache-2.0 |
| 5 | -/ |
| 6 | /- |
| 7 | Modified for the independent Lax packaging by Édouard Bonnet, 2026. |
| 8 | Derived from 3sum-apsp/EndStatement.lean / PaperStatements.lean at upstream commit e1a4e6508154ea59f030480661590a9fe3018011. |
| 9 | Changes: Lax module/namespace layout, separated concepts and proofs, archive |
| 10 | annotations, and compatibility with the archive Lean/mathlib environment. |
| 11 | See NOTICE and README.md in the submission root for provenance and scope. |
| 12 | -/ |
| 13 | |
| 14 | import Lax350013.PolynomialTime |
| 15 | |
| 16 | /-! |
| 17 | --- |
| 18 | title: Truly subcubic Exact Triangle |
| 19 | type: theorem |
| 20 | --- |
| 21 | Exact Triangle on a complete tripartite graph with vertices in each part and polynomially bounded integer weights is decidable deterministically in word-RAM steps (Theorem 19). A triangle is accepted exactly when its three edge weights sum to zero. |
| 22 | -/ |
| 23 | |
| 24 | namespace Lax350013.ExactTriangle |
| 25 | |
| 26 | open Lax350013.PolynomialTime |
| 27 | |
| 28 | /-- Section 3.2: «S(a, b, c) := w(a, b) + w(b, c) + w(a, c). A zero triangle is a triangle … with S(a, b, c) = 0». -/ |
| 29 | def ExactTriangle : Problem where |
| 30 | Instance n := (Fin n → Fin n → Int) × (Fin n → Fin n → Int) × (Fin n → Fin n → Int) |
| 31 | input := fun (wAB, wBC, wAC) => rowByRow wAB ++ rowByRow wBC ++ rowByRow wAC |
| 32 | yes := fun (wAB, wBC, wAC) => ∃ a b c, wAB a b + wBC b c + wAC a c = 0 |
| 33 | |
| 34 | /-- Theorem 19: «ε_T := 0.0017». -/ |
| 35 | def ε_T : Rat := 0.0017 |
| 36 | |
| 37 | /-- Theorem 19: «Exact Triangle … can be solved by a deterministic algorithm in … O(n^(3−ε_T)) time». -/ |
| 38 | def Theorem_19 : Prop := |
| 39 | ExactTriangle.SolvedInTime (3 - ε_T) |
| 40 | |
| 41 | /-- Truly subcubic Exact Triangle: Theorem 19. -/ |
| 42 | axiom algorithm : Theorem_19 |
| 43 | |
| 44 | end Lax350013.ExactTriangle |
| 45 |
Builds on
From Mathlib
none
Discussion
Ask a question or add context. Endorsements and structured flags are kept in the review panel above.
0 comments