A uniform finite list of count and window tests
Lax977378.FiniteTests · concepts/Lax977378/FiniteTests.lean · lax-977378
No public endorsements yet.
Loading review…
Sign in with ORCIDNatural 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
Evidence
Each proof establishes this claim relative to its assumptions.
Lean source view on GitHub
| 1 | import Lax977378.Extraction |
| 2 | |
| 3 | /-! |
| 4 | --- |
| 5 | title: A uniform finite list of count and window tests |
| 6 | type: lemma |
| 7 | --- |
| 8 | Fix the vocabulary, both radii, count cap, catalogue and window size bound. |
| 9 | The whole unordered part of the record ranges over a single finite list. |
| 10 | The same sentence assigned to an entry tests it on every graph. |
| 11 | -/ |
| 12 | namespace Lax977378.FiniteTests |
| 13 | open Lax977378.Logic Lax977378.RecordTests |
| 14 | |
| 15 | axiom 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 | |
| 24 | end Lax977378.FiniteTests |
| 25 |
Discussion
Ask a question or add context. Endorsements and structured flags are kept in the review panel above.
0 comments