Conditioning graph routes on uniform endpoints
Lax263307.ConditionalRoutes · concepts/Lax263307/ConditionalRoutes.lean · lax-263307
No public endorsements yet.
Loading review…
Sign in with ORCIDNatural Language Statement
Theorem
Multiply the probability of a route with endpoints by to obtain the conditional route law for this ordered endpoint pair. Every conditional law is a probability distribution supported on routes with those endpoints. Averaging over a uniformly sampled pair recovers the original law. Averaging independently over four endpoints gives the product law for two routes. These identities support sampling nonincident source edges while sharing endpoint images for incident edges.
Concept map
Evidence
Lean source view on GitHub
| 1 | import Lax263307.RouteDistributions |
| 2 | |
| 3 | /-! |
| 4 | --- |
| 5 | title: Conditioning graph routes on uniform endpoints |
| 6 | type: theorem |
| 7 | --- |
| 8 | Multiply the probability of a route with endpoints by to |
| 9 | obtain the conditional route law for this ordered endpoint pair. Every |
| 10 | conditional law is a probability distribution supported on routes with |
| 11 | those endpoints. Averaging over a uniformly sampled pair recovers the |
| 12 | original law. Averaging independently over four endpoints gives the product |
| 13 | law for two routes. These identities support sampling nonincident source |
| 14 | edges while sharing endpoint images for incident edges. |
| 15 | |
| 16 | # Attribution |
| 17 | |
| 18 | Bonnet–Chang, the coupled route sampling construction in Lemma 11. |
| 19 | -/ |
| 20 | |
| 21 | namespace Lax263307.ConditionalRoutes |
| 22 | |
| 23 | open Lax263307.RouteDistributions |
| 24 | |
| 25 | noncomputable def conditional {n q : ℕ} {G : SimpleGraph (Fin n)} |
| 26 | (D : Distribution G q) (u v : Fin n) (i : Fin q) : ℝ := |
| 27 | if (D.route i).head? = some u ∧ (D.route i).getLast? = some v then |
| 28 | (n : ℝ) ^ 2 * D.probability i else 0 |
| 29 | |
| 30 | axiom conditional_correct {n q : ℕ} {G : SimpleGraph (Fin n)} |
| 31 | (D : Distribution G q) (hn : 0 < n) (u v : Fin n) : |
| 32 | (∀ i, 0 ≤ conditional D u v i) ∧ (∑ i, conditional D u v i) = 1 ∧ |
| 33 | (∀ i, 0 < conditional D u v i → (D.route i).head? = some u ∧ |
| 34 | (D.route i).getLast? = some v ∧ (D.route i).Nodup ∧ (D.route i).IsChain G.Adj) |
| 35 | |
| 36 | axiom mixture_identity {n q : ℕ} {G : SimpleGraph (Fin n)} |
| 37 | (D : Distribution G q) (i : Fin q) : |
| 38 | (∑ u, ∑ v, conditional D u v i) = (n : ℝ) ^ 2 * D.probability i |
| 39 | |
| 40 | axiom independent_pair_mixture {n q : ℕ} {G : SimpleGraph (Fin n)} |
| 41 | (D : Distribution G q) (hn : 0 < n) (i j : Fin q) : |
| 42 | (∑ u, ∑ v, ∑ s, ∑ t, |
| 43 | conditional D u v i * conditional D s t j / (n : ℝ) ^ 4) = |
| 44 | D.probability i * D.probability j |
| 45 | |
| 46 | end Lax263307.ConditionalRoutes |
| 47 |
Attribution
Bonnet–Chang, the coupled route sampling construction in Lemma 11.
Discussion
Ask a question or add context. Endorsements and structured flags are kept in the review panel above.
0 comments