Assembling checked record tests after replay

Lax977378.Replay · concepts/Lax977378/Replay.lean · lax-977378

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

    Lemma

    A finite list pairs the unordered data with the set of labels in the final table. Replay on each individual passing graph supplies a compatible order. The resulting orders satisfy the pairwise form of the record theorem.

    Concept map
    5 concepts; 1 descendant hidden
    100%
    Proven claimDefinitionThis conceptRelated conceptA → B: B builds on A
    Evidence

    Each proof establishes this claim relative to its assumptions.

    Lean source view on GitHub

    1import Lax977378.Collapse
    2import Lax977378.RecordTests
    3
    4/-!
    5---
    6title: Assembling checked record tests after replay
    7type: lemma
    8---
    9A finite list pairs the unordered data with the set of labels in the final
    10table. Replay on each individual passing graph supplies a compatible order.
    11The resulting orders satisfy the pairwise form of the record theorem.
    12-/
    13namespace Lax977378.Replay
    14open Lax977378.Logic Lax977378.OuterContexts Lax977378.Collapse Lax977378.RecordTests
    15
    16axiom assemble {c d K N} (lab : (G : Graph c) → G.Bounded d →
    17 LinearOrder (Fin G.size) → Fin G.size → Fin N)
    18 (sound : ∀ A B ha hb a b x y, lab A ha a x = lab B hb b y → same A B a b K x y)
    19 (entries : List (TestData c × Finset (Fin N)))
    20 (cover : ∀ G : Graph c, G.Bounded d → ∃ e ∈ entries, Passes e.1 G)
    21 (replay : ∀ e ∈ entries, ∀ (G : Graph c) (hd : G.Bounded d), Passes e.1 G →
    22 ∃ a, Finset.univ.image (lab G hd a) = e.2) :
    23 ∃ tests : List (Record (c := c) d K), ∀ G, G.Bounded d → ∃ e ∈ tests, Unordered G e.test
    24
    25end Lax977378.Replay
    26
    Show Proof

    Discussion

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

    Loading discussion…