Comparison of different representatives of a recursive call
Lax977378.CallAgreement · concepts/Lax977378/CallAgreement.lean · lax-977378
No public endorsements yet.
Loading review…
Sign in with ORCIDNatural Language Statement
Lemma
Data read at each vertex can be represented by labels. Two source vertices matching the same target call can be compared by composing their local correspondences. A match at the full rank gives matches at every lower rank at the same centre.
Concept map
Evidence
Lean source view on GitHub
| 1 | import Lax977378.LocalCalls |
| 2 | |
| 3 | /-! |
| 4 | --- |
| 5 | title: Comparison of different representatives of a recursive call |
| 6 | type: lemma |
| 7 | --- |
| 8 | Data read at each vertex can be represented by labels. Two source vertices |
| 9 | matching the same target call can be compared by composing their local |
| 10 | correspondences. A match at the full rank gives matches at every lower rank |
| 11 | at the same centre. |
| 12 | -/ |
| 13 | namespace Lax977378.CallAgreement |
| 14 | open Lax977378.Logic Lax977378.LocalCalls |
| 15 | |
| 16 | def agrees {c} (A B : Graph c) |
| 17 | (ra ea : Nat → Fin A.size → Nat) (rb eb : Nat → Fin B.size → Nat) := |
| 18 | Calls A B (fun j x y => ra j x = rb j y) (fun j x y => ea j x = eb j y) |
| 19 | |
| 20 | axiom compareReps {c} (A B : Graph c) (ra ea : Nat → Fin A.size → Nat) |
| 21 | (rb eb : Nat → Fin B.size → Nat) (i : Nat) (x u : Fin A.size) (y : Fin B.size) |
| 22 | (hx : agrees A B ra ea rb eb i x y) (hu : agrees A B ra ea rb eb i u y) : |
| 23 | agrees A A ra ea ra ea i x u |
| 24 | |
| 25 | axiom lowerRanks {c} (A B : Graph c) (ra ea : Nat → Fin A.size → Nat) |
| 26 | (rb eb : Nat → Fin B.size → Nat) (i j : Nat) (hj : j ≤ i) (x y) |
| 27 | (h : agrees A B ra ea rb eb i x y) : agrees A B ra ea rb eb j x y |
| 28 | |
| 29 | end Lax977378.CallAgreement |
| 30 |
Discussion
Ask a question or add context. Endorsements and structured flags are kept in the review panel above.
0 comments