OAI/Combinatorics/TreewidthL1/TreeMarkov.lean
36 declarations, 0 contain sorry, 0 declared as axioms
- abbrev
OAI.BoundedTreewidthL1.TreeMarkov.Symmetricline 14Source documentation
A symmetric edge interaction; nonedge values are irrelevant.
abbrev Symmetric (R : (i j : I) → A i → A j → ℝ) : Prop := …
- def
OAI.BoundedTreewidthL1.TreeMarkov.edgeFactorline 17 - def
OAI.BoundedTreewidthL1.TreeMarkov.densityline 21 - def
OAI.BoundedTreewidthL1.TreeMarkov.Normalizedline 28Source documentation
The exact local normalization needed for junction gluing. At zero-mass states no conditional probability is required.
def Normalized (T : SimpleGraph I) (μ : (i : I) → A i → ℝ) (R : (i j : I) → A i → A j → ℝ) : Prop := … - lemma
OAI.BoundedTreewidthL1.TreeMarkov.edgeFactor_mkline 41 - lemma
OAI.BoundedTreewidthL1.TreeMarkov.density_nonnegline 47 - lemma
OAI.BoundedTreewidthL1.TreeMarkov.density_zeroline 57 - lemma
OAI.BoundedTreewidthL1.TreeMarkov.edgeFinset_leafline 66 - lemma
OAI.BoundedTreewidthL1.TreeMarkov.edgeFactor_induceline 99 - lemma
OAI.BoundedTreewidthL1.TreeMarkov.density_leafline 110 - lemma
OAI.BoundedTreewidthL1.TreeMarkov.splitAt_hereline 139 - lemma
OAI.BoundedTreewidthL1.TreeMarkov.splitAt_awayline 145 - lemma
OAI.BoundedTreewidthL1.TreeMarkov.splitAt_restrictline 152 - lemma
OAI.BoundedTreewidthL1.TreeMarkov.sum_leaf_densityline 157 - lemma
OAI.BoundedTreewidthL1.TreeMarkov.expectation_leafline 176 - lemma
OAI.BoundedTreewidthL1.TreeMarkov.Normalized.induceline 194 - theorem
OAI.BoundedTreewidthL1.TreeMarkov.node_marginal_cardline 201 - theorem
OAI.BoundedTreewidthL1.TreeMarkov.tree_densityline 254Source documentation
Canonical root-independent tree density and exact one-node marginals. Zero-mass states, deterministic edges and arbitrary finite state spaces allowed.
theorem tree_density (T : SimpleGraph I) (hT : T.IsTree) (μ : (i : I) → A i → ℝ) (R : (i j : I) → A i → A j → ℝ) (hs : Symmetric A R) (hn : Normalized A T μ R) : (∀ x, 0 ≤ density A T μ R hs x) ∧ (∑ x, density A T μ R hs x) = 1 ∧ ∀ i a, (∑ x, if x i = a then density A T μ R hs x else 0) = μ i a := by …Mentions: OAI.BoundedTreewidthL1.TreeMarkov.Symmetric, OAI.BoundedTreewidthL1.TreeMarkov.Normalized, OAI.BoundedTreewidthL1.TreeMarkov.density
- lemma
OAI.BoundedTreewidthL1.TreeMarkov.tree_path_mem_connectedline 276 - lemma
OAI.BoundedTreewidthL1.TreeMarkov.exists_leaf_outsideline 291Source documentation
A proper connected subtree can be pruned from outside without altering it.
lemma exists_leaf_outside {I : Type*} [Fintype I] (T : SimpleGraph I) (hT : T.IsTree) (S : Set I) (hc : (T.induce S).Connected) (hproper : S ≠ Set.univ) : ∃ l : I, l ∉ S ∧ T.degree l = 1 := by … - lemma
OAI.BoundedTreewidthL1.TreeMarkov.edgeFinset_comap_equivline 331 - lemma
OAI.BoundedTreewidthL1.TreeMarkov.density_equivline 355 - lemma
OAI.BoundedTreewidthL1.TreeMarkov.expectation_surjectiveline 372 - theorem
OAI.BoundedTreewidthL1.TreeMarkov.expectation_comap_cardline 406 - theorem
OAI.BoundedTreewidthL1.TreeMarkov.expectation_comapline 453Source documentation
Exact connected-subtree marginal of the canonical junction law. In particular this applies to a simple bag path, before projection to intersection assignments.
theorem expectation_comap (T : SimpleGraph I) (hT : T.IsTree) (μ : (i : I) → A i → ℝ) (R : (i j : I) → A i → A j → ℝ) (hs : Symmetric A R) (hn : Normalized A T μ R) {J : Type*} [Fintype J] (e : J ↪ I) (hc : (T.comap e).Connected) (f : ((j : J) → A (e j)) → ℝ) : (∑ x, density A T μ R hs x * f (fun j => x (e j))) = ∑ x, density (fun j => A (e j)) (T.comap e) (fun j => μ (e j)) (fun j k => R (e j) (e k)) (fun j k => hs (e j) (e k)) x * f x := by …Mentions: OAI.BoundedTreewidthL1.TreeMarkov.Symmetric, OAI.BoundedTreewidthL1.TreeMarkov.Normalized, OAI.BoundedTreewidthL1.TreeMarkov.density
- def
OAI.BoundedTreewidthL1.TreeMarkov.interactionline 470Source documentation
Interaction constructed from the actual local pair mass, not assumed.
noncomputable def interaction (μ : (i : I) → A i → ℝ) (J : (i j : I) → A i → A j → ℝ) (i j : I) (a : A i) (b : A j) : ℝ := … - lemma
OAI.BoundedTreewidthL1.TreeMarkov.interaction_symmetricline 474 - lemma
OAI.BoundedTreewidthL1.TreeMarkov.interaction_normalizedline 482 - theorem
OAI.BoundedTreewidthL1.TreeMarkov.coupling_treeline 515Source documentation
Canonical tree law from genuinely consistent adjacent pair distributions. No positive lower bound on local state probabilities is imposed.
theorem coupling_tree (T : SimpleGraph I) (hT : T.IsTree) (μ : (i : I) → A i → ℝ) (J : (i j : I) → A i → A j → ℝ) (hμ : ∀ i a, 0 ≤ μ i a) (hμ₁ : ∀ i, (∑ a, μ i a) = 1) (hs : Symmetric A J) (hJ : ∀ i j, T.Adj i j → ∀ a b, 0 ≤ J i j a b) (hrow : ∀ i j, T.Adj i j → ∀ a, (∑ b, J i j a b) = μ i a) : let R := interaction A μ J …Mentions: OAI.BoundedTreewidthL1.TreeMarkov.Symmetric, OAI.BoundedTreewidthL1.TreeMarkov.interaction
- abbrev
OAI.BoundedTreewidthL1.MarkovFlow.Historyline 542 - def
OAI.BoundedTreewidthL1.MarkovFlow.IsMarkovLawline 544Source documentation
Same finite stochastic-product definition as the exact CKR obligation.
def IsMarkovLaw {r : ℕ} (L : Fin (r + 1) → Type*) [∀ i, Fintype (L i)] (μ : History L → ℝ) : Prop := … - def
OAI.BoundedTreewidthL1.TreeMarkov.pathEdgeline 556 - lemma
OAI.BoundedTreewidthL1.TreeMarkov.path_edgesline 568 - lemma
OAI.BoundedTreewidthL1.TreeMarkov.path_densityline 598 - lemma
OAI.BoundedTreewidthL1.TreeMarkov.product_factorizationline 608 - theorem
OAI.BoundedTreewidthL1.TreeMarkov.path_markovline 642Source documentation
The canonical marginal on any simple bag-tree path is an actual Markov product, not merely a collection of consistent adjacent marginals.
theorem path_markov (μ : (i : Fin (r+1)) → A i → ℝ) (R : (i j : Fin (r+1)) → A i → A j → ℝ) (hs : Symmetric A R) (hn : Normalized A (SimpleGraph.pathGraph (r+1)) μ R) : MarkovFlow.IsMarkovLaw A (density A (SimpleGraph.pathGraph (r+1)) μ R hs) := by …Mentions: OAI.BoundedTreewidthL1.TreeMarkov.Symmetric, OAI.BoundedTreewidthL1.TreeMarkov.Normalized, OAI.BoundedTreewidthL1.MarkovFlow.IsMarkovLaw, OAI.BoundedTreewidthL1.TreeMarkov.density