Reading all source tables in a single final order
Lax977378.SourceTables · concepts/Lax977378/SourceTables.lean · lax-977378
No public endorsements yet.
Loading review…
Sign in with ORCIDNatural Language Statement
Lemma
A history retains the endpoint choices of each refinement. Reading it backwards from a final table produces the earlier tables in that same order. The two successive tables satisfy both the exception closure and the rule identifying ordinary child blocks by parent and outer context.
Concept map
Evidence
Each proof establishes this claim relative to its assumptions.
Lean source view on GitHub
| 1 | import Lax977378.SourceRun |
| 2 | |
| 3 | /-! |
| 4 | --- |
| 5 | title: Reading all source tables in a single final order |
| 6 | type: lemma |
| 7 | --- |
| 8 | A history retains the endpoint choices of each refinement. Reading it |
| 9 | backwards from a final table produces the earlier tables in that same order. |
| 10 | The two successive tables satisfy both the exception closure and the rule |
| 11 | identifying ordinary child blocks by parent and outer context. |
| 12 | -/ |
| 13 | namespace Lax977378.SourceTables |
| 14 | open Lax977378.Logic Lax977378.OuterContexts Lax977378.Blocks Lax977378.SourceRun Lax977378.TagSafety |
| 15 | |
| 16 | structure Table {c} (G : Graph c) (a : LinearOrder (Fin G.size)) where |
| 17 | n : Nat |
| 18 | part : @Partition (Fin G.size) (Fin n) a inferInstance |
| 19 | exceptions : Finset (Fin G.size) |
| 20 | |
| 21 | def Table.layer {c G a} (T : @Table c G a) : Layer G := ⟨T.n,T.part.block,T.exceptions⟩ |
| 22 | |
| 23 | def Follows {c G a} (j : Nat) (P Q : @Table c G a) : Prop := |
| 24 | (∀ x, x ∈ Q.exceptions ↔ ∃ z, (z ∈ P.exceptions ∨ (∃ t, P.part.first t = z) ∨ |
| 25 | ∃ t, P.part.last t = z) ∧ within G (radius (j+1)) z x) ∧ |
| 26 | (∀ x y, Q.part.block x = Q.part.block y ↔ P.part.block x = P.part.block y ∧ |
| 27 | (x = y ∨ x ∉ Q.exceptions ∧ y ∉ Q.exceptions ∧ same G G a a (j+1) x y)) |
| 28 | |
| 29 | axiom sourceTables {c K} (G : Graph c) (I L : Layer G) (hist : History G I K L) |
| 30 | (onto : Function.Surjective L.row) : |
| 31 | ∃ (a : LinearOrder (Fin G.size)) (T : Nat → Table G a), |
| 32 | (T 0).layer = I ∧ (T K).layer = L ∧ ∀ j < K, Follows j (T j) (T (j+1)) |
| 33 | |
| 34 | end Lax977378.SourceTables |
| 35 |
Discussion
Ask a question or add context. Endorsements and structured flags are kept in the review panel above.
0 comments