Coupled route sampling with shared vertex images

Lax263307.CoupledRouteSampling · concepts/Lax263307/CoupledRouteSampling.lean · lax-263307

proven

Loading review…

Sign in with ORCID

Community review

Flags

Each flag is tied to a public ORCID identity and explains why this concept may be incorrect.

No flags have been submitted.

    Community review

    Flag this concept

    State precisely what appears incorrect. This explanation will be public under your ORCID name.

    No source line selected.

    Natural Language Statement

    Lemma

    Choose independently a uniform image for every source vertex, then sample one graph route per source edge from its conditional endpoint law. Positive outcomes give every route the chosen images of its source endpoints. Each edge's route has the original route distribution. Routes of two nonincident source edges have its independent product law, because the four source endpoints have independently chosen images.

    Concept map
    17 concepts
    100%
    Proven claimDefinitionThis conceptRelated conceptA → B: B builds on ADescendants are omitted for concepts with more than 10 descendants.
    Evidence

    Lean source view on GitHub

    1import Lax263307.ConditionalRoutes
    2import Lax263307.FiniteProductSampling
    3
    4/-!
    5---
    6title: Coupled route sampling with shared vertex images
    7type: lemma
    8---
    9Choose independently a uniform image for every source vertex, then sample
    10one graph route per source edge from its conditional endpoint law. Positive
    11outcomes give every route the chosen images of its source endpoints.
    12Each edge's route has the original route distribution. Routes of two
    13nonincident source edges have its independent product law, because the four
    14source endpoints have independently chosen images.
    15
    16# Formalization notes
    17
    18The finite outcome is a pair consisting of a source-vertex image assignment
    19and a route-index assignment. Edge endpoints are given explicitly by two
    20maps; the marginal assertions require distinct endpoints for a single edge
    21and four distinct endpoints for a pair. The construction does not assume
    22independence for incident source edges.
    23-/
    24
    25namespace Lax263307.CoupledRouteSampling
    26
    27open RouteDistributions ConditionalRoutes
    28open FiniteProductSampling
    29
    30noncomputable def uniformWeight (n : ℕ) : Fin n → ℝ := fun _ => 1 / (n : ℝ)
    31
    32noncomputable def jointWeight {n q t m : ℕ} {G : SimpleGraph (Fin n)}
    33 (D : Distribution G q) (a b : Fin m → Fin t)
    34 (φ : Fin t → Fin n) (ψ : Fin m → Fin q) : ℝ :=
    35 weight (fun _ : Fin t => uniformWeight n) φ *
    36 weight (fun e => conditional D (φ (a e)) (φ (b e))) ψ
    37
    38axiom joint_normalized {n q t m : ℕ} {G : SimpleGraph (Fin n)}
    39 (D : Distribution G q) (hn : 0 < n) (a b : Fin m → Fin t) :
    40 (∀ φ ψ, 0 ≤ jointWeight D a b φ ψ) ∧
    41 (∑ φ, ∑ ψ, jointWeight D a b φ ψ) = 1
    42
    43axiom joint_valid {n q t m : ℕ} {G : SimpleGraph (Fin n)}
    44 (D : Distribution G q) (hn : 0 < n) (a b : Fin m → Fin t)
    45 (φ : Fin t → Fin n) (ψ : Fin m → Fin q) (positive : 0 < jointWeight D a b φ ψ) :
    46 ∀ e, (D.route (ψ e)).head? = some (φ (a e)) ∧
    47 (D.route (ψ e)).getLast? = some (φ (b e)) ∧
    48 (D.route (ψ e)).Nodup ∧ (D.route (ψ e)).IsChain G.Adj
    49
    50axiom single_edge_law {n q t m : ℕ} {G : SimpleGraph (Fin n)}
    51 (D : Distribution G q) (hn : 0 < n) (a b : Fin m → Fin t)
    52 (e : Fin m) (nonloop : a e ≠ b e) (i : Fin q) :
    53 (∑ φ, ∑ ψ, jointWeight D a b φ ψ * (if ψ e = i then (1 : ℝ) else 0)) =
    54 D.probability i
    55
    56axiom nonincident_edge_law {n q t m : ℕ} {G : SimpleGraph (Fin n)}
    57 (D : Distribution G q) (hn : 0 < n) (a b : Fin m → Fin t)
    58 (e f : Fin m) (nonincident : Function.Injective ![a e, b e, a f, b f]) (i j : Fin q) :
    59 (∑ φ, ∑ ψ, jointWeight D a b φ ψ *
    60 ((if ψ e = i then (1 : ℝ) else 0) * (if ψ f = j then (1 : ℝ) else 0))) =
    61 D.probability i * D.probability j
    62
    63end Lax263307.CoupledRouteSampling
    64
    Show ProofShow ProofShow ProofShow Proof
    Formalization notes

    The finite outcome is a pair consisting of a source-vertex image assignment and a route-index assignment. Edge endpoints are given explicitly by two maps; the marginal assertions require distinct endpoints for a single edge and four distinct endpoints for a pair. The construction does not assume independence for incident source edges.

    Discussion

    Ask a question or add context. Endorsements and structured flags are kept in the review panel above.

    Loading discussion…