Faster weighted clique algorithms
Lax350013.WeightedCliqueAlgorithms · concepts/Lax350013/WeightedCliqueAlgorithms.lean · lax-350013
No public endorsements yet.
Loading review…
Sign in with ORCIDNatural Language Statement
Theorem
Corollary 39 gives deterministic time for zero-weight clique detection and for finding a minimum- or maximum-weight clique, for every fixed and polynomially bounded integer weights.
Concept map
Evidence
This concept declares 2 statements. Each proof establishes one of them relative to its assumptions.
1 minMax proven
2 zeroWeight proven
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 Mathlib.Algebra.MvPolynomial.Basic |
| 15 | import Mathlib.Analysis.SpecialFunctions.Log.Base |
| 16 | import Mathlib.Analysis.SpecialFunctions.Log.Basic |
| 17 | import Mathlib.Analysis.SpecialFunctions.Pow.Real |
| 18 | import Mathlib.Combinatorics.SimpleGraph.Basic |
| 19 | import Mathlib.Data.Finset.Sort |
| 20 | import Mathlib.LinearAlgebra.Matrix.Notation |
| 21 | import Mathlib.MeasureTheory.Integral.Bochner.Basic |
| 22 | import Mathlib.NumberTheory.PrimeCounting |
| 23 | import Mathlib.Probability.Independence.Basic |
| 24 | import Mathlib.Tactic.DeriveFintype |
| 25 | import Lax350013.ZeroWeightClique |
| 26 | import Lax350013.CliqueOptimization |
| 27 | import Lax350013.RAMResources |
| 28 | |
| 29 | /-! |
| 30 | --- |
| 31 | title: Faster weighted clique algorithms |
| 32 | type: theorem |
| 33 | --- |
| 34 | Corollary 39 gives deterministic time for zero-weight clique detection and for finding a minimum- or maximum-weight clique, for every fixed and polynomially bounded integer weights. |
| 35 | -/ |
| 36 | |
| 37 | namespace Lax350013.WeightedCliqueAlgorithms |
| 38 | |
| 39 | open Finset |
| 40 | open Lax350013.WordRAM |
| 41 | open Lax350013.RAMResources |
| 42 | open Lax350013.CliqueOptimization |
| 43 | |
| 44 | /-- **Corollary 39**, the case of Zero-Weight k-Clique. The paper: "Let k ≥ 3 and ν ≥ 1 be |
| 45 | constants. Given a complete k-partite graph with parts of n vertices and integer edge weights of |
| 46 | absolute value at most n^ν, deterministic algorithms decide in O(n^{k−ε_T⌊k/3⌋}) time whether some |
| 47 | k-clique, with one vertex in each part, has total edge weight zero". -/ |
| 48 | def Corollary_39_zero : Prop := |
| 49 | ∀ k : ℕ, 3 ≤ k → |
| 50 | SolvedInTime (Lax350013.ZeroWeightClique.ZeroWeightKClique k) ((k : ℝ) - 0.0017 * ((k / 3 : ℕ) : ℝ)) 0 |
| 51 | |
| 52 | /-- **Corollary 39**, the other two cases: "deterministic algorithms [...] in |
| 53 | O(n^{k−ε_T⌊k/3⌋}) time [...] find a k-clique of minimum, or of maximum, total edge weight." The |
| 54 | hypotheses are those of `Corollary_39_zero`; `ε_T = 0.0017` (Theorem 19). That the time bound |
| 55 | covers finding, and not only deciding, is confirmed by the end of the paper's proof. -/ |
| 56 | def Corollary_39_min_max : Prop := |
| 57 | ∀ k : ℕ, 3 ≤ k → |
| 58 | SolvedInTime (MinKClique k) ((k : ℝ) - 0.0017 * ((k / 3 : ℕ) : ℝ)) 0 ∧ |
| 59 | SolvedInTime (MaxKClique k) ((k : ℝ) - 0.0017 * ((k / 3 : ℕ) : ℝ)) 0 |
| 60 | |
| 61 | /-- Faster weighted clique algorithms: Corollary 39 zero. -/ |
| 62 | axiom zeroWeight : Corollary_39_zero |
| 63 | |
| 64 | |
| 65 | /-- Faster weighted clique algorithms: Corollary 39 min max. -/ |
| 66 | axiom minMax : Corollary_39_min_max |
| 67 | |
| 68 | end Lax350013.WeightedCliqueAlgorithms |
| 69 |
Used by
none
From Mathlib
Mathlib.Algebra.MvPolynomial.BasicMathlib.Analysis.SpecialFunctions.Log.BaseMathlib.Analysis.SpecialFunctions.Log.BasicMathlib.Analysis.SpecialFunctions.Pow.RealMathlib.Combinatorics.SimpleGraph.BasicMathlib.Data.Finset.SortMathlib.LinearAlgebra.Matrix.NotationMathlib.MeasureTheory.Integral.Bochner.BasicMathlib.NumberTheory.PrimeCountingMathlib.Probability.Independence.BasicMathlib.Tactic.DeriveFintype
Discussion
Ask a question or add context. Endorsements and structured flags are kept in the review panel above.
0 comments