Encoding the moment-coordinate catalogue

Lax263307.NativeCatalog · concepts/Lax263307/NativeCatalog.lean · lax-263307

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

    The moment-coordinate catalogue lists subsets of the vertex set in the order used by the relaxation. Each subset is represented by its binary membership mask; wordswords is the resulting list of masks.

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

    Lean source view on GitHub

    1import Lax263307.CoordinateCatalog
    2import Lax808846.Ram
    3import Mathlib.Combinatorics.Colex
    4
    5/-!
    6---
    7title: Encoding the moment-coordinate catalogue
    8type: definition
    9---
    10The moment-coordinate catalogue lists subsets of the vertex set in the
    11order used by the relaxation. Each subset is represented by its binary
    12membership mask; `words` is the resulting list of masks.
    13
    14# Formalization notes
    15
    16Masks encode subsets of `Fin n`. The catalogue contains only the subsets
    17needed by the relaxation, rather than an array indexed by all 2n2^n masks.
    18-/
    19
    20namespace Lax263307.NativeCatalog
    21
    22open CoordinateCatalog (catalog)
    23def subsetMask {n : ℕ} (I : Finset (Fin n)) : ℕ :=
    24 Finset.equivBitIndices.symm (I.image Fin.val)
    25
    26def words (n r : ℕ) : List ℕ :=
    27 (catalog n r).map (fun A => subsetMask A.val)
    28
    29end Lax263307.NativeCatalog
    30
    Formalization notes

    Masks encode subsets of FinnFin n. The catalogue contains only the subsets needed by the relaxation, rather than an array indexed by all 2n2^n masks.

    Discussion

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

    Loading discussion…