Assembling checked record tests after replay
Lax977378.Replay · concepts/Lax977378/Replay.lean · lax-977378
No public endorsements yet.
Loading review…
Sign in with ORCIDNatural 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
Evidence
Each proof establishes this claim relative to its assumptions.
Lean source view on GitHub
| 1 | import Lax977378.Collapse |
| 2 | import Lax977378.RecordTests |
| 3 | |
| 4 | /-! |
| 5 | --- |
| 6 | title: Assembling checked record tests after replay |
| 7 | type: lemma |
| 8 | --- |
| 9 | A finite list pairs the unordered data with the set of labels in the final |
| 10 | table. Replay on each individual passing graph supplies a compatible order. |
| 11 | The resulting orders satisfy the pairwise form of the record theorem. |
| 12 | -/ |
| 13 | namespace Lax977378.Replay |
| 14 | open Lax977378.Logic Lax977378.OuterContexts Lax977378.Collapse Lax977378.RecordTests |
| 15 | |
| 16 | axiom 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 | |
| 25 | end Lax977378.Replay |
| 26 |
Discussion
Ask a question or add context. Endorsements and structured flags are kept in the review panel above.
0 comments