Version history

Submission versions

  1. lax-614640current version

    Tight Inapproximability of Max Independent Set in Triangle-Free Graphs

  2. lax-47viewing

    Tight Inapproximability of Max Independent Set in Triangle-Free Graphs

    GitHub sourceShown on this page

Executable graph encodings and triangle-free approximation

Lax47.Complexity · concepts/Lax47/Complexity.lean · lax-47

definition

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

    Definition

    Graphs are finite Boolean adjacency matrices with symmetry and looplessness certificates. Their machine word is the vertex count followed by the complete row-major matrix, with Booleans encoded by 00 and 11. An approximation is a function certified polynomial-time by the Lax759944 finite-Turing model; its returned independent set is decoded from that certified function.

    Concept map
    4 concepts; 3 descendants hidden
    100%
    Proven claimDefinitionThis conceptRelated conceptA → B: B builds on A

    Lean source view on GitHub

    1import Lax47.Machine
    2import Mathlib.Analysis.SpecialFunctions.Pow.Real
    3import Mathlib.Combinatorics.SimpleGraph.Clique
    4import Mathlib.Data.Finset.Card
    5
    6/-!
    7---
    8title: Executable graph encodings and triangle-free approximation
    9type: definition
    10---
    11Graphs are finite Boolean adjacency matrices with symmetry and looplessness
    12certificates. Their machine word is the vertex count followed by the complete
    13row-major matrix, with Booleans encoded by 00 and 11. An approximation is a
    14function certified polynomial-time by the Lax759944 finite-Turing model; its
    15returned independent set is decoded from that certified function.
    16-/
    17
    18set_option autoImplicit false
    19
    20namespace Lax47.Complexity
    21
    22open Lax47.Machine
    23
    24export Lax47.Machine
    25 (BitString RandomSeed PolytimeProgram polynomialBound pairBits)
    26
    27/-- An executable simple graph on the labeled vertex set Fin⁡(n)\operatorname{Fin}(n). -/
    28structure GraphCode (n : ℕ) where
    29 adjacent : Fin n → Fin n → Bool
    30 loopless : ∀ vertex, adjacent vertex vertex = false
    31 symmetric : ∀ left right, adjacent left right = adjacent right left
    32
    33/-- The mathematical simple graph represented by a Boolean adjacency matrix. -/
    34def GraphCode.graph {n : ℕ} (code : GraphCode n) : SimpleGraph (Fin n) where
    35 Adj left right := code.adjacent left right = true
    36 symm := ⟨fun left right h ↦ by
    37 rw [← code.symmetric]
    38 exact h⟩
    39 loopless := ⟨fun vertex ↦ by
    40 simp [code.loopless]⟩
    41
    42/-- Vertex count followed by the row-major adjacency matrix. -/
    43def GraphCode.bits {n : ℕ} (code : GraphCode n) : BitString :=
    44 n :: List.ofFn fun rank : Fin (n * n) ↦
    45 let vertex := finProdFinEquiv.symm rank
    46 bitWord (code.adjacent vertex.1 vertex.2)
    47
    48/-- Decode the first nn output bits as a vertex set. -/
    49def decodeVertexSet (n : ℕ) (bits : BitString) : Finset (Fin n) :=
    50 Finset.univ.filter fun vertex ↦ bits[vertex.1]? = some 1
    51
    52/-- A polynomial-time executable approximation for triangle-free Max Independent Set. -/
    53structure TriangleFreeMISApproximation (ε : ℝ) where
    54 program : PolytimeProgram
    55 correctness : ∀ (n : ℕ) (code : GraphCode n),
    56 code.graph.CliqueFree 3 →
    57 let set := decodeVertexSet n (program.output code.bits)
    58 code.graph.IsIndepSet set ∧
    59 (code.graph.indepNum : ℝ) ≤
    60 Real.rpow n ((1 : ℝ) / 2 - ε) * set.card
    61
    62/-- Max Independent Set on triangle-free graphs admits a polynomial-time
    63n1/2−εn^{1/2-\varepsilon}-approximation. -/
    64def TriangleFreeMISApproximable (ε : ℝ) : Prop :=
    65 Nonempty (TriangleFreeMISApproximation ε)
    66
    67end Lax47.Complexity
    68

    Discussion

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

    Loading discussion…