The serial order of a positive instance
Lax833301.SerialOrder · concepts/Lax833301/SerialOrder.lean · lax-833301
No public endorsements yet.
Loading review…
Sign in with ORCIDNatural Language Statement
Lemma
At each successful probe, run the whole replacement before proceeding to the next event. This order has coordinate load at most and at most active intervals in total. The time of an event is written in mixed blocks, one block for each ancestor probe.
Concept map
In the paper
- page 4 of this submission's paper
Lean source view on GitHub
| 1 | import Lax833301.Expansion |
| 2 | |
| 3 | /-! |
| 4 | --- |
| 5 | title: The serial order of a positive instance |
| 6 | type: lemma |
| 7 | --- |
| 8 | At each successful probe, run the whole replacement before proceeding to |
| 9 | the next event. This order has coordinate load at most and at most |
| 10 | active intervals in total. The time of an event is written in |
| 11 | mixed blocks, one block for each ancestor probe. |
| 12 | -/ |
| 13 | |
| 14 | namespace Lax833301.SerialOrder |
| 15 | |
| 16 | open Schedules Expansion |
| 17 | |
| 18 | def radix (T : Template) (time : T.Event → ℕ) := 2 + ∑ e, time e |
| 19 | def length (T : Template) (time : T.Event → ℕ) (d : ℕ) := (radix T time)^(d+1) |
| 20 | |
| 21 | def run (T : Template) (time : T.Event → ℕ) : (d : ℕ) → ℕ → Clock T d |
| 22 | | 0, a => fun (e : Bool) => if e then a+1 else a |
| 23 | | d+1, a => Sum.elim (fun v => a + time (.inl v) * length T time d) |
| 24 | (fun (p,v) => run T time d (a + time (.inr p) * length T time d) v) |
| 25 | |
| 26 | noncomputable def total (T : Template) : (d : ℕ) → Clock T d → ℕ → ℕ |
| 27 | | 0, f, z => if f false ≤ z ∧ z < f true then 1 else 0 |
| 28 | | d+1, f, z => T.count (fun v => f (.inl v)) z (fun _ => True) + |
| 29 | ∑ p : T.Probe, total T d (child f p) z |
| 30 | |
| 31 | axiom bounds (T : Template) (B : ℕ) (time : T.Event → ℕ) (good : T.Good B time) |
| 32 | (d : ℕ) : Legal T d (run T time d 0) ∧ |
| 33 | (∀ z q, load T d (run T time d 0) z q ≤ 11) ∧ |
| 34 | ∀ z, total T d (run T time d 0) z ≤ 11*d+1 |
| 35 | |
| 36 | end Lax833301.SerialOrder |
| 37 |
Discussion
Ask a question or add context. Endorsements and structured flags are kept in the review panel above.
0 comments