A uniform finite list of count and window tests

Lax977378.FiniteTests · concepts/Lax977378/FiniteTests.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

    Fix the vocabulary, both radii, count cap, catalogue and window size bound. The whole unordered part of the record ranges over a single finite list. The same sentence assigned to an entry tests it on every graph.

    Concept map
    9 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.Extraction
    2
    3/-!
    4---
    5title: A uniform finite list of count and window tests
    6type: lemma
    7---
    8Fix the vocabulary, both radii, count cap, catalogue and window size bound.
    9The whole unordered part of the record ranges over a single finite list.
    10The same sentence assigned to an entry tests it on every graph.
    11-/
    12namespace Lax977378.FiniteTests
    13open Lax977378.Logic Lax977378.RecordTests
    14
    15axiom finiteTests {c n} (types : Fin n → Pointed c) (r R cap U : Nat) :
    16 ∃ tests : List (TestData c × Formula c),
    17 (∀ e ∈ tests, Plain [] e.2 ∧ ∀ G, Unordered G e.2 ↔ Passes e.1 G) ∧
    18 ∀ D : TestData c, D.radius = r → D.windowRadius = R → D.cap = cap →
    19 D.windowGraph.size ≤ U → ∀ (v : Fin n → Fin (cap+1)) (t : Nat),
    20 D.counts = List.ofFn (fun j => (types j,(v j).val)) →
    21 D.frequent = ((List.finRange n).filter (fun j => t ≤ (v j).val)).map types →
    22 ∃ f, (D,f) ∈ tests
    23
    24end Lax977378.FiniteTests
    25
    Show Proof
    Builds on
    Used by
    From Mathlib

    none

    Discussion

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

    Loading discussion…