While this submission is a draft, it cannot be used by other submissions.

Callable reductions between the algorithmic problems

Lax350013.AlgorithmReductions · concepts/Lax350013/AlgorithmReductions.lean · lax-350013

proven

Loading review…

Sign in with ORCID

Community review

Flags

Each flag is tied to a public ORCID identity and explains why this concept may be incorrect.

No flags have been submitted.

    Community review

    Flag this concept

    State precisely what appears incorrect. This explanation will be public under your ORCID name.

    No source line selected.

    Natural Language Statement

    Theorem

    Theorem 17 reduces Exact Triangle to lopsided triangle detection at the two parameter choices used in the paper. Theorem 21 transfers an Exact Triangle solver to 3SUM, min-plus products and APSP. Additional reductions turn selected matrix entries into triangle counts and detection, and split large query sets. All are proved transformations of callable programs. The callable versions also preserve memory and resource guarantees needed when these algorithms are used as subroutines.

    Concept map
    8 concepts
    100%
    Proven claimDefinitionThis conceptRelated conceptA → B: B builds on A
    Evidence

    This concept declares 8 statements. Each proof establishes one of them relative to its assumptions.

    Lean source view on GitHub

    1/-
    2Copyright (c) 2026 Anthropic, PBC. All rights reserved.
    3Released under Apache 2.0 license as described in the file LICENSE.
    4SPDX-License-Identifier: Apache-2.0
    5-/
    6/-
    7Modified for the independent Lax packaging by Édouard Bonnet, 2026.
    8Derived from 3sum-apsp/EndStatement.lean / PaperStatements.lean at upstream commit e1a4e6508154ea59f030480661590a9fe3018011.
    9Changes: Lax module/namespace layout, separated concepts and proofs, archive
    10annotations, and compatibility with the archive Lean/mathlib environment.
    11See NOTICE and README.md in the submission root for provenance and scope.
    12-/
    13
    14import Mathlib.Algebra.MvPolynomial.Basic
    15import Mathlib.Analysis.SpecialFunctions.Log.Base
    16import Mathlib.Analysis.SpecialFunctions.Log.Basic
    17import Mathlib.Analysis.SpecialFunctions.Pow.Real
    18import Mathlib.Combinatorics.SimpleGraph.Basic
    19import Mathlib.Data.Finset.Sort
    20import Mathlib.LinearAlgebra.Matrix.Notation
    21import Mathlib.MeasureTheory.Integral.Bochner.Basic
    22import Mathlib.NumberTheory.PrimeCounting
    23import Mathlib.Probability.Independence.Basic
    24import Mathlib.Tactic.DeriveFintype
    25import Lax350013.CallableAlgorithms
    26
    27/-!
    28---
    29title: Callable reductions between the algorithmic problems
    30type: theorem
    31---
    32Theorem 17 reduces Exact Triangle to lopsided triangle detection at the two parameter choices used in the paper. Theorem 21 transfers an Exact Triangle solver to 3SUM, min-plus products and APSP. Additional reductions turn selected matrix entries into triangle counts and detection, and split large query sets. All are proved transformations of callable programs. The callable versions also preserve memory and resource guarantees needed when these algorithms are used as subroutines.
    33-/
    34
    35namespace Lax350013.AlgorithmReductions
    36
    37open Finset
    38
    39/-- Callable contract proved by upstream `Light.Sec3.claim_theorem_17₅`. -/
    40axiom exactTriangleViaTheorem5 : Lax350013.CallableAlgorithms.Claim.Theorem_17 Lax350013.CallableAlgorithms.lightModel Lax350013.CallableAlgorithms.strassen Lax350013.CallableAlgorithms.paramD₅ Lax350013.CallableAlgorithms.paramG₅
    41
    42
    43/-- Callable contract proved by upstream `Light.Sec3.claim_theorem_17₂₆`. -/
    44axiom exactTriangleViaCorollary26 : Lax350013.CallableAlgorithms.Claim.Theorem_17 Lax350013.CallableAlgorithms.lightModel Lax350013.CallableAlgorithms.strassen Lax350013.CallableAlgorithms.paramD₂₆ Lax350013.CallableAlgorithms.paramG₂₆
    45
    46
    47/-- Callable contract proved by upstream `Light.Sec3.claim_theorem_21a`. -/
    48axiom threeSumFromExactTriangle : Lax350013.CallableAlgorithms.Claim.Theorem_21a Lax350013.CallableAlgorithms.lightModel
    49
    50
    51/-- Callable contract proved by upstream `Light.Sec3.claim_theorem_21b_minPlus`. -/
    52axiom minPlusFromExactTriangle : Lax350013.CallableAlgorithms.Claim.Theorem_21b_minPlus Lax350013.CallableAlgorithms.lightModel
    53
    54
    55/-- Callable contract proved by upstream `Light.Sec3.claim_theorem_21b_apsp`. -/
    56axiom apspFromExactTriangle : Lax350013.CallableAlgorithms.Claim.Theorem_21b_apsp Lax350013.CallableAlgorithms.lightModel
    57
    58
    59/-- Callable contract proved by upstream `Light.Sec3.claim_lopCountFromThinProduct`. -/
    60axiom triangleCountsFromMatrixProduct : Lax350013.CallableAlgorithms.Claim.LopCountFromThinProduct Lax350013.CallableAlgorithms.lightModel
    61
    62
    63/-- Callable contract proved by upstream `Light.Sec3.claim_lopDetectFromCount`. -/
    64axiom triangleDetectionFromCounts : Lax350013.CallableAlgorithms.Claim.LopDetectFromCount Lax350013.CallableAlgorithms.lightModel
    65
    66
    67/-- Callable contract proved by upstream `Light.Sec3.claim_lopSplit`. -/
    68axiom splitTriangleQueries : Lax350013.CallableAlgorithms.Claim.LopSplit Lax350013.CallableAlgorithms.lightModel
    69
    70end Lax350013.AlgorithmReductions
    71
    Show ProofShow ProofShow ProofShow ProofShow ProofShow ProofShow ProofShow Proof

    Discussion

    Ask a question or add context. Endorsements and structured flags are kept in the review panel above.

    Loading discussion…