OAI/Probability/CriticalZ3/HyperedgeComparison.lean
146 declarations, 0 contain sorry, 0 declared as axioms
- abbrev
OAI.HyperedgeComparison.Hypergraphline 16Source documentation
Full labelled hyperedges; allowing empty hyperedges causes no change to clusters.
abbrev Hypergraph (V : Type uV) (E : Type uE) := E → Set V
- def
OAI.HyperedgeComparison.Adjline 18 - def
OAI.HyperedgeComparison.Connectedline 21 - def
OAI.HyperedgeComparison.clusterline 24 - def
OAI.HyperedgeComparison.clustersline 27 - def
OAI.HyperedgeComparison.Meetsline 30 - theorem
OAI.HyperedgeComparison.adj_symmline 33 - theorem
OAI.HyperedgeComparison.connected_symmline 38 - theorem
OAI.HyperedgeComparison.connected_reflline 44 - theorem
OAI.HyperedgeComparison.connected_transline 47 - theorem
OAI.HyperedgeComparison.mem_cluster_selfline 51 - theorem
OAI.HyperedgeComparison.adj_mono_deleteline 54 - theorem
OAI.HyperedgeComparison.cluster_mono_deleteline 59 - theorem
OAI.HyperedgeComparison.clusters_mono_deleteline 63 - theorem
OAI.HyperedgeComparison.clusters_containsline 68 - theorem
OAI.HyperedgeComparison.cluster_closedline 71 - theorem
OAI.HyperedgeComparison.clusters_closedline 75 - theorem
OAI.HyperedgeComparison.cluster_avoids_deletedline 80 - theorem
OAI.HyperedgeComparison.clusters_avoids_deletedline 90 - theorem
OAI.HyperedgeComparison.cluster_disjoint_clusters_iffline 99Source documentation
Disjointness of a full cluster from a tested set is also disjointness from its entire union of clusters, the fact used in the first-listed-node partition.
theorem cluster_disjoint_clusters_iff {H : Hypergraph V E} {ω : E → Bool} {D S : Set V} {x : V} : Disjoint (cluster H ω D x) (clusters H ω D S) ↔ Disjoint (cluster H ω D x) S := by …Mentions: OAI.HyperedgeComparison.Hypergraph, OAI.HyperedgeComparison.cluster, OAI.HyperedgeComparison.clusters
- theorem
OAI.HyperedgeComparison.cluster_delete_clustersline 112Source documentation
Deleting a union of clusters does not change any of the other clusters. This is deterministic, before any product-law conditioning.
theorem cluster_delete_clusters {H : Hypergraph V E} {ω : E → Bool} {D S : Set V} {x : V} (hx : x ∉ clusters H ω D S) : cluster H ω (D ∪ clusters H ω D S) x = cluster H ω D x := by …Mentions: OAI.HyperedgeComparison.Hypergraph, OAI.HyperedgeComparison.clusters, OAI.HyperedgeComparison.cluster
- theorem
OAI.HyperedgeComparison.clusters_eq_of_agree_incidentline 132Source documentation
Changing bits on hyperedges disjoint from C(S) cannot change C(S). This is the key measurability assertion required for exact-cluster conditioning.
theorem clusters_eq_of_agree_incident {H : Hypergraph V E} {ω ω' : E → Bool} {D S : Set V} (hagree : ∀ e, ¬ Disjoint (H e) (clusters H ω D S) → ω' e = ω e) : clusters H ω' D S = clusters H ω D S := by …Mentions: OAI.HyperedgeComparison.Hypergraph, OAI.HyperedgeComparison.clusters
- def
OAI.HyperedgeComparison.ClusterDomainline 163 - def
OAI.HyperedgeComparison.residualSampleline 166 - theorem
OAI.HyperedgeComparison.residual_cluster_mem_domainline 173 - theorem
OAI.HyperedgeComparison.residual_cluster_union_mem_domainline 179 - theorem
OAI.HyperedgeComparison.residualSample_nonnegline 185 - theorem
OAI.HyperedgeComparison.residualSample_monoline 196 - theorem
OAI.HyperedgeComparison.cluster_eq_of_agree_disjointline 227Source documentation
Bits on deleted hyperedges are irrelevant to the surviving clusters.
theorem cluster_eq_of_agree_disjoint {H : Hypergraph V E} {ω ω' : E → Bool} {D : Set V} (hagree : ∀ e, Disjoint (H e) D → ω' e = ω e) (s : V) : cluster H ω' D s = cluster H ω D s := by …Mentions: OAI.HyperedgeComparison.Hypergraph, OAI.HyperedgeComparison.cluster
- theorem
OAI.HyperedgeComparison.clusters_eq_of_agree_disjointline 239 - theorem
OAI.HyperedgeComparison.clusters_singletonline 245 - theorem
OAI.HyperedgeComparison.clusters_delete_clusterline 251Source documentation
Deleting a cluster does not change the union of any disjoint clusters.
theorem clusters_delete_cluster {H : Hypergraph V E} {ω : E → Bool} {D S : Set V} {s : V} (h : Disjoint (cluster H ω D s) S) : clusters H ω (D ∪ cluster H ω D s) S = clusters H ω D S := by …Mentions: OAI.HyperedgeComparison.Hypergraph, OAI.HyperedgeComparison.cluster, OAI.HyperedgeComparison.clusters
- theorem
OAI.HyperedgeComparison.cluster_eq_of_connectedline 264 - def
OAI.HyperedgeComparison.earlierline 271 - def
OAI.HyperedgeComparison.firstRootline 274 - theorem
OAI.HyperedgeComparison.firstRoot_iffline 278 - theorem
OAI.HyperedgeComparison.exists_unique_firstRootline 292 - theorem
OAI.HyperedgeComparison.sum_firstRootline 315Source documentation
The first-listed-node partition, as a pointwise identity for any cluster functional. This is stronger than its integrated mass identity H d = 1.
theorem sum_firstRoot {n : ℕ} (H : Hypergraph V E) (x : Fin n → V) (ω : E → Bool) (D : Set V) (i : Fin n) (F : Set V → ℝ) : (∑ k, if firstRoot H x ω D k i then F (cluster H ω D (x k)) else 0) = F (cluster H ω D (x i)) := by …Mentions: OAI.HyperedgeComparison.Hypergraph, OAI.HyperedgeComparison.firstRoot, OAI.HyperedgeComparison.cluster
- def
OAI.HyperedgeComparison.lawline 330 - instance
OAI.HyperedgeComparison.law_probabilityline 333 - theorem
OAI.HyperedgeComparison.independent_of_disjoint_bitsline 339Source documentation
Functions of complementary finite sets of independent bits are independent. The dependence conditions are extensional, avoiding auxiliary sigma-algebras.
theorem independent_of_disjoint_bits (p : E → Set.Icc (0 : ℝ) 1) (J : Finset E) (f g : (E → Bool) → ℝ) (hf : ∀ ω ω', (∀ e ∈ J, ω' e = ω e) → f ω' = f ω) (hg : ∀ ω ω', (∀ e ∉ J, ω' e = ω e) → g ω' = g ω) : IndepFun f g (law p) := by …Mentions: OAI.HyperedgeComparison.law
- theorem
OAI.HyperedgeComparison.exact_cluster_independentline 367Source documentation
The exact-cluster indicator sees no bit on a hyperedge disjoint from W, including when the cluster was sampled after an earlier deletion D.
theorem exact_cluster_independent (H : Hypergraph V E) (p : E → Set.Icc (0 : ℝ) 1) (D S W : Set V) (g : (E → Bool) → ℝ) (hg : ∀ ω ω', (∀ e, Disjoint (H e) W → ω' e = ω e) → g ω' = g ω) : IndepFun (fun ω => if clusters H ω D S = W then (1 : ℝ) else 0) g (law p) := by …Mentions: OAI.HyperedgeComparison.Hypergraph, OAI.HyperedgeComparison.clusters, OAI.HyperedgeComparison.law
- theorem
OAI.HyperedgeComparison.exact_cluster_integralline 398Source documentation
Integrated exact-cluster independence, with no positivity restriction on an exact cluster event (zero probability events also satisfy the identity).
theorem exact_cluster_integral (H : Hypergraph V E) (p : E → Set.Icc (0 : ℝ) 1) (D S W : Set V) (g : (E → Bool) → ℝ) (hg : ∀ ω ω', (∀ e, Disjoint (H e) W → ω' e = ω e) → g ω' = g ω) : (∫ ω, (if clusters H ω D S = W then (1 : ℝ) else 0) * g ω ∂law p) = (∫ ω, if clusters H ω D S = W then (1 : ℝ) else 0 ∂law p) * ∫ ω, g ω ∂law p := by …Mentions: OAI.HyperedgeComparison.Hypergraph, OAI.HyperedgeComparison.clusters, OAI.HyperedgeComparison.law
- theorem
OAI.HyperedgeComparison.integral_eq_sum_fibersline 411Source documentation
Partition a finite expectation by exact values, without conditional-probability notation and without requiring positive individual atom masses.
theorem integral_eq_sum_fibers {I : Type uI} [Fintype I] [DecidableEq I] (p : E → Set.Icc (0 : ℝ) 1) (X : (E → Bool) → I) (f : (E → Bool) → ℝ) : (∫ ω, f ω ∂law p) = ∑ i, ∫ ω, if X ω = i then f ω else 0 ∂law p := by …Mentions: OAI.HyperedgeComparison.law
- def
OAI.HyperedgeComparison.meanAfterDeleteline 420 - def
OAI.HyperedgeComparison.resampleline 424 - def
OAI.HyperedgeComparison.residualMeanline 428 - theorem
OAI.HyperedgeComparison.residualMean_eq_integralline 435 - theorem
OAI.HyperedgeComparison.residualMean_nonnegline 485 - theorem
OAI.HyperedgeComparison.residualMean_monoline 492 - theorem
OAI.HyperedgeComparison.meanAfterDelete_antitoneline 500 - theorem
OAI.HyperedgeComparison.resample_monotoneline 512 - theorem
OAI.HyperedgeComparison.resample_nonnegline 523 - def
OAI.HyperedgeComparison.clusterMassline 536 - theorem
OAI.HyperedgeComparison.cluster_conditioningline 541Source documentation
The exact-cluster conditional expectation used in the column partition.
theorem cluster_conditioning (H : Hypergraph V E) (p : E → Set.Icc (0 : ℝ) 1) (s : V) (D S W : Set V) (F : Set V → ℝ) (hs : s ∉ W) : (∫ ω, if clusters H ω D S = W then F (cluster H ω D s) else 0 ∂law p) = clusterMass H p D S W * meanAfterDelete H p s (D ∪ W) F := by …Mentions: OAI.HyperedgeComparison.Hypergraph, OAI.HyperedgeComparison.clusters, OAI.HyperedgeComparison.cluster, OAI.HyperedgeComparison.law, OAI.HyperedgeComparison.clusterMass, OAI.HyperedgeComparison.meanAfterDelete
- theorem
OAI.HyperedgeComparison.exact_cluster_weightline 566Source documentation
Multiply the exact-cluster identity by an arbitrary function of the cluster. No positive-probability conditioning is needed.
theorem exact_cluster_weight [Fintype V] (H : Hypergraph V E) (p : E → Set.Icc (0 : ℝ) 1) (D S : Set V) (f : Set V → ℝ) (g : (E → Bool) → Set V → ℝ) (hg : ∀ U ω ω', (∀ e, Disjoint (H e) U → ω' e = ω e) → g ω' U = g ω U) : (∫ ω, f (clusters H ω D S) * g ω (clusters H ω D S) ∂law p) = ∫ ω, f (clusters H ω D S) * (∫ ω', g ω' (clusters H ω D S) ∂law p) ∂law p := by …Mentions: OAI.HyperedgeComparison.Hypergraph, OAI.HyperedgeComparison.clusters, OAI.HyperedgeComparison.law
- theorem
OAI.HyperedgeComparison.conditioning_weightline 592Source documentation
Exact-cluster integration of a functional rooted outside the measured cluster.
theorem conditioning_weight [Fintype V] (H : Hypergraph V E) (p : E → Set.Icc (0 : ℝ) 1) (s : V) (D S : Set V) (w : Set V → ℝ) (F : Set V → ℝ) (hw : ∀ U, s ∈ U → w U = 0) : (∫ ω, w (clusters H ω D S) * F (cluster H ω D s) ∂law p) = ∫ ω, w (clusters H ω D S) * meanAfterDelete H p s (D ∪ clusters H ω D S) F ∂law p := by …Mentions: OAI.HyperedgeComparison.Hypergraph, OAI.HyperedgeComparison.clusters, OAI.HyperedgeComparison.cluster, OAI.HyperedgeComparison.law, OAI.HyperedgeComparison.meanAfterDelete
- theorem
OAI.HyperedgeComparison.residualMean_alternativeline 622Source documentation
For residuals, after conditioning on W the second sample may instead be read in the original configuration on the graph with U deleted.
theorem residualMean_alternative [Fintype V] (H : Hypergraph V E) (p : E → Set.Icc (0 : ℝ) 1) (s : V) (S U : Set V) (F : Set V → ℝ) : residualMean H p s S U F = ∫ ω, if s ∈ clusters H ω U S then 0 else meanAfterDelete H p s (clusters H ω U S) F - F (cluster H ω U s) ∂law p := by …Mentions: OAI.HyperedgeComparison.Hypergraph, OAI.HyperedgeComparison.residualMean, OAI.HyperedgeComparison.clusters, OAI.HyperedgeComparison.meanAfterDelete, OAI.HyperedgeComparison.cluster, OAI.HyperedgeComparison.law
- def
OAI.HyperedgeComparison.columnline 649 - theorem
OAI.HyperedgeComparison.sum_columnline 655 - theorem
OAI.HyperedgeComparison.column_conditional_expectationline 665Source documentation
The first-listed-event column disintegrates over its exact root cluster.
theorem column_conditional_expectation [Fintype V] {n : ℕ} (H : Hypergraph V E) (p : E → Set.Icc (0 : ℝ) 1) (x : Fin n → V) (k i : Fin n) (g : (E → Bool) → Set V → ℝ) (hg : ∀ U ω ω', (∀ e, Disjoint (H e) U → ω' e = ω e) → g ω' U = g ω U) : (∫ ω, if firstRoot H x ω ∅ k i then g ω (cluster H ω ∅ (x k)) else 0 ∂law p) = column H p x k (fun U => ∫ ω, g ω U ∂law p) i := by …Mentions: OAI.HyperedgeComparison.Hypergraph, OAI.HyperedgeComparison.firstRoot, OAI.HyperedgeComparison.cluster, OAI.HyperedgeComparison.law, OAI.HyperedgeComparison.column
- theorem
OAI.HyperedgeComparison.column_resampleline 690 - theorem
OAI.HyperedgeComparison.earlier_monoline 711Source documentation
An earlier list segment is included in every later segment.
theorem earlier_mono {n : ℕ} (x : Fin n → V) {k j : Fin n} (hkj : k ≤ j) : earlier x k ⊆ earlier x j := by …Mentions: OAI.HyperedgeComparison.earlier
- theorem
OAI.HyperedgeComparison.column_residualline 718Source documentation
The residual term after conditioning on C(x_j), retaining the original configuration only on hyperedges disjoint from that cluster.
theorem column_residual [Fintype V] {n : ℕ} (H : Hypergraph V E) (p : E → Set.Icc (0 : ℝ) 1) (x : Fin n → V) (k j i : Fin n) (hkj : k < j) (F : Set V → ℝ) : column H p x j (residualMean H p (x k) (earlier x k) · F) i = ∫ ω, if firstRoot H x ω ∅ j i ∧ x k ∉ clusters H ω ∅ (earlier x k) then meanAfterDelete H p (x k) (clusters H ω ∅ (earlier x k)) F - F (cluster H ω ∅ (x k)) else 0 ∂law p := by …Mentions: OAI.HyperedgeComparison.Hypergraph, OAI.HyperedgeComparison.column, OAI.HyperedgeComparison.residualMean, OAI.HyperedgeComparison.earlier, OAI.HyperedgeComparison.firstRoot, OAI.HyperedgeComparison.clusters, OAI.HyperedgeComparison.meanAfterDelete, OAI.HyperedgeComparison.cluster, OAI.HyperedgeComparison.law
- theorem
OAI.HyperedgeComparison.disjoint_cluster_iff_root_notinline 754Source documentation
Separation from a union of full clusters is exactly avoidance by the root.
theorem disjoint_cluster_iff_root_notin {H : Hypergraph V E} {ω : E → Bool} {D S : Set V} {s : V} : Disjoint (cluster H ω D s) S ↔ s ∉ clusters H ω D S := by …Mentions: OAI.HyperedgeComparison.Hypergraph, OAI.HyperedgeComparison.cluster, OAI.HyperedgeComparison.clusters
- theorem
OAI.HyperedgeComparison.firstRoot_notin_earlier_clustersline 766 - theorem
OAI.HyperedgeComparison.firstListed_partitionline 778 - theorem
OAI.HyperedgeComparison.integral_firstListed_partitionline 809Source documentation
Integrated form of the first-listed-node partition.
theorem integral_firstListed_partition {n : ℕ} (H : Hypergraph V E) (p : E → Set.Icc (0 : ℝ) 1) (x : Fin n → V) (k i : Fin n) (g : (E → Bool) → ℝ) : (∫ ω, if x k ∉ clusters H ω ∅ (earlier x k) ∧ x i ∉ clusters H ω ∅ (earlier x k) then g ω else 0 ∂law p) = (∫ ω, if firstRoot H x ω ∅ k i then g ω else 0 ∂law p) + ∑ j, ∫ ω, if k < j ∧ firstRoot H x ω ∅ j i ∧ x k ∉ clusters H ω ∅ (earlier x k) then g ω else 0 ∂law p := by …Mentions: OAI.HyperedgeComparison.Hypergraph, OAI.HyperedgeComparison.clusters, OAI.HyperedgeComparison.earlier, OAI.HyperedgeComparison.law, OAI.HyperedgeComparison.firstRoot
- theorem
OAI.HyperedgeComparison.integral_indicator_subline 822Source documentation
Subtraction under a finite expectation with the same event indicator.
theorem integral_indicator_sub (p : E → Set.Icc (0 : ℝ) 1) (P : (E → Bool) → Prop) [DecidablePred P] (f g : (E → Bool) → ℝ) : (∫ ω, if P ω then f ω - g ω else 0 ∂law p) = (∫ ω, if P ω then f ω else 0 ∂law p) - ∫ ω, if P ω then g ω else 0 ∂law p := by …Mentions: OAI.HyperedgeComparison.law
- theorem
OAI.HyperedgeComparison.column_identityline 833 - theorem
OAI.HyperedgeComparison.cluster_all_closedline 880Source documentation
Closing every hyperedge isolates every node, in every deletion graph.
theorem cluster_all_closed (H : Hypergraph V E) (D : Set V) (s : V) : cluster H (fun _ => false) D s = {s} := by …Mentions: OAI.HyperedgeComparison.Hypergraph, OAI.HyperedgeComparison.cluster
- def
OAI.HyperedgeComparison.nextStateline 893Source documentation
A state of the alternating conditional cluster resampling chain.
noncomputable def nextState (H : Hypergraph V E) (s : V) (S : Set V) (U : ClusterDomain s S) (ω ω' : E → Bool) : ClusterDomain s S := …Mentions: OAI.HyperedgeComparison.Hypergraph, OAI.HyperedgeComparison.ClusterDomain
- def
OAI.HyperedgeComparison.resamplingTransitionline 901Source documentation
The finite transition matrix for the actual two-stage cluster resampling.
noncomputable def resamplingTransition [Fintype V] (H : Hypergraph V E) (p : E → Set.Icc (0 : ℝ) 1) (s : V) (S : Set V) : FiniteResampling.Transition (ClusterDomain s S) where …Mentions: OAI.HyperedgeComparison.Hypergraph, OAI.FiniteResampling.Transition, OAI.HyperedgeComparison.ClusterDomain
- theorem
OAI.HyperedgeComparison.resamplingTransition_actline 918 - theorem
OAI.HyperedgeComparison.all_closed_massline 941Source documentation
Probability mass of the all-closed finite configuration.
theorem all_closed_mass (p : E → Set.Icc (0 : ℝ) 1) : (law p).real {fun _ => false} = ∏ e, (1 - (p e : ℝ)) := by …Mentions: OAI.HyperedgeComparison.law
- theorem
OAI.HyperedgeComparison.all_closed_mass_posline 951 - theorem
OAI.HyperedgeComparison.resamplingTransition_atomline 957Source documentation
A uniform positive atom, without discarding any zero-mass cluster states.
theorem resamplingTransition_atom [Fintype V] (H : Hypergraph V E) (p : E → Set.Icc (0 : ℝ) 1) (s : V) (S : Set V) (hs : s ∉ S) (U : ClusterDomain s S) : (law p).real {fun _ => false} ≤ (resamplingTransition H p s S).weight U ⟨{s}, ⟨by simp, by simpa using hs⟩⟩ := by …Mentions: OAI.HyperedgeComparison.Hypergraph, OAI.HyperedgeComparison.ClusterDomain, OAI.HyperedgeComparison.law, OAI.HyperedgeComparison.resamplingTransition
- theorem
OAI.HyperedgeComparison.resample_tendsto_constantline 986Source documentation
The actual conditional cluster-resampling iterates tend to a nonnegative constant. This version does not need stationarity or positive mass at every state.
theorem resample_tendsto_constant [Fintype V] (H : Hypergraph V E) (p : E → Set.Icc (0 : ℝ) 1) (hp : ∀ e, (p e : ℝ) < 1) (s : V) (S : Set V) (hs : s ∉ S) (F : Set V → ℝ) (hF : ∀ U ∈ ClusterDomain s S, 0 ≤ F U) : ∃ c : ℝ, 0 ≤ c ∧ ∀ U ∈ ClusterDomain s S, Tendsto (fun n : ℕ => ((resample H p s S)^[n] F) U) atTop (nhds c) := by …Mentions: OAI.HyperedgeComparison.Hypergraph, OAI.HyperedgeComparison.ClusterDomain, OAI.HyperedgeComparison.resample
- theorem
OAI.HyperedgeComparison.tendsto_integral_finiteline 1017Source documentation
Pointwise convergence exchanges with any expectation on a finite bit space.
theorem tendsto_integral_finite (p : E → Set.Icc (0 : ℝ) 1) (f : ℕ → (E → Bool) → ℝ) (g : (E → Bool) → ℝ) (h : ∀ ω, Tendsto (fun n => f n ω) atTop (nhds (g ω))) : Tendsto (fun n => ∫ ω, f n ω ∂law p) atTop (nhds (∫ ω, g ω ∂law p)) := by …Mentions: OAI.HyperedgeComparison.law
- theorem
OAI.HyperedgeComparison.column_tendstoline 1025Source documentation
Column convergence only needs convergence on its specified cluster domain.
theorem column_tendsto {n : ℕ} (H : Hypergraph V E) (p : E → Set.Icc (0 : ℝ) 1) (x : Fin n → V) (k i : Fin n) (F : ℕ → Set V → ℝ) (c : ℝ) (h : ∀ U ∈ ClusterDomain (x k) (earlier x k), Tendsto (fun t => F t U) atTop (nhds c)) : Tendsto (fun t => column H p x k (F t) i) atTop (nhds (column H p x k (fun _ => c) i)) := by …Mentions: OAI.HyperedgeComparison.Hypergraph, OAI.HyperedgeComparison.ClusterDomain, OAI.HyperedgeComparison.earlier, OAI.HyperedgeComparison.column
- def
OAI.HyperedgeComparison.baseMatrixline 1041Source documentation
Unnormalized cluster columns d_k h_k.
noncomputable def baseMatrix {n : ℕ} (H : Hypergraph V E) (p : E → Set.Icc (0 : ℝ) 1) (x : Fin n → V) : Matrix (Fin n) (Fin n) ℝ := …Mentions: OAI.HyperedgeComparison.Hypergraph
- theorem
OAI.HyperedgeComparison.root_notin_earlierline 1046 - theorem
OAI.HyperedgeComparison.baseMatrix_lowerTriangularline 1051 - theorem
OAI.HyperedgeComparison.baseMatrix_diag_posline 1060Source documentation
The diagonal mass is positive because fully closing the graph ensures E_k.
theorem baseMatrix_diag_pos {n : ℕ} (H : Hypergraph V E) (p : E → Set.Icc (0 : ℝ) 1) (hp : ∀ e, (p e : ℝ) < 1) (x : Fin n → V) (hx : Function.Injective x) (k : Fin n) : 0 < baseMatrix H p x k k := by …Mentions: OAI.HyperedgeComparison.Hypergraph, OAI.HyperedgeComparison.baseMatrix
- theorem
OAI.HyperedgeComparison.baseMatrix_det_ne_zeroline 1083 - def
OAI.HyperedgeComparison.coeffline 1091Source documentation
Coordinates in the basis of unnormalized cluster columns.
noncomputable def coeff {n : ℕ} (H : Hypergraph V E) (p : E → Set.Icc (0 : ℝ) 1) (x : Fin n → V) (k : Fin n) (F : Set V → ℝ) : Fin n → ℝ := …Mentions: OAI.HyperedgeComparison.Hypergraph
- theorem
OAI.HyperedgeComparison.column_constline 1095 - theorem
OAI.HyperedgeComparison.coeff_constline 1108 - theorem
OAI.HyperedgeComparison.coeff_identityline 1124Source documentation
Inverse-basis coordinates obey the same column identity.
theorem coeff_identity [Fintype V] {n : ℕ} (H : Hypergraph V E) (p : E → Set.Icc (0 : ℝ) 1) (x : Fin n → V) (k : Fin n) (F : Set V → ℝ) : coeff H p x k F = coeff H p x k (resample H p (x k) (earlier x k) F) + ∑ j, if k < j then coeff H p x j (residualMean H p (x k) (earlier x k) · F) else 0 := by …Mentions: OAI.HyperedgeComparison.Hypergraph, OAI.HyperedgeComparison.coeff, OAI.HyperedgeComparison.resample, OAI.HyperedgeComparison.earlier, OAI.HyperedgeComparison.residualMean
- theorem
OAI.HyperedgeComparison.coeff_tendstoline 1141Source documentation
Convergence passes to inverse-basis coordinates by finite linearity.
theorem coeff_tendsto {n : ℕ} (H : Hypergraph V E) (p : E → Set.Icc (0 : ℝ) 1) (x : Fin n → V) (k i : Fin n) (F : ℕ → Set V → ℝ) (c : ℝ) (h : ∀ U ∈ ClusterDomain (x k) (earlier x k), Tendsto (fun t => F t U) atTop (nhds c)) : Tendsto (fun t => coeff H p x k (F t) i) atTop (nhds (coeff H p x k (fun _ => c) i)) := by …Mentions: OAI.HyperedgeComparison.Hypergraph, OAI.HyperedgeComparison.ClusterDomain, OAI.HyperedgeComparison.earlier, OAI.HyperedgeComparison.coeff
- theorem
OAI.HyperedgeComparison.coeff_nonnegline 1150 - def
OAI.HyperedgeComparison.hitsOtherline 1219Source documentation
The observable that a cluster contains another listed vertex.
noncomputable def hitsOther {n : ℕ} (x : Fin n → V) (k : Fin n) (U : Set V) : ℝ := … - def
OAI.HyperedgeComparison.isolatedMassline 1222 - theorem
OAI.HyperedgeComparison.isolated_firstRootline 1227 - theorem
OAI.HyperedgeComparison.isolatedMass_posline 1234 - theorem
OAI.HyperedgeComparison.column_hitsOtherline 1260 - theorem
OAI.HyperedgeComparison.inverse_offdiag_nonposline 1295Source documentation
The inverse cluster matrix has nonpositive off-diagonal entries.
theorem inverse_offdiag_nonpos [Fintype V] {n : ℕ} (H : Hypergraph V E) (p : E → Set.Icc (0 : ℝ) 1) (hp : ∀ e, (p e : ℝ) < 1) (x : Fin n → V) (hx : Function.Injective x) {k i : Fin n} (hik : i ≠ k) : (baseMatrix H p x)⁻¹ i k ≤ 0 := by …Mentions: OAI.HyperedgeComparison.Hypergraph, OAI.HyperedgeComparison.baseMatrix
- theorem
OAI.HyperedgeComparison.baseMatrix_mulVec_oneline 1326Source documentation
The first-listed cluster columns partition every row.
theorem baseMatrix_mulVec_one {n : ℕ} (H : Hypergraph V E) (p : E → Set.Icc (0 : ℝ) 1) (x : Fin n → V) : baseMatrix H p x *ᵥ (fun _ => 1) = fun _ => 1 := by …Mentions: OAI.HyperedgeComparison.Hypergraph, OAI.HyperedgeComparison.baseMatrix
- theorem
OAI.HyperedgeComparison.inverse_mulVec_oneline 1338Source documentation
Consequently each row of the inverse also sums to one.
theorem inverse_mulVec_one {n : ℕ} (H : Hypergraph V E) (p : E → Set.Icc (0 : ℝ) 1) (hp : ∀ e, (p e : ℝ) < 1) (x : Fin n → V) (hx : Function.Injective x) : (baseMatrix H p x)⁻¹ *ᵥ (fun _ => 1) = fun _ => 1 := by …Mentions: OAI.HyperedgeComparison.Hypergraph, OAI.HyperedgeComparison.baseMatrix
- def
OAI.HyperedgeComparison.expectationVectorline 1350Source documentation
Expectation vector of a cluster observable at the listed vertices.
noncomputable def expectationVector {n : ℕ} (H : Hypergraph V E) (p : E → Set.Icc (0 : ℝ) 1) (x : Fin n → V) (F : Set V → ℝ) : Fin n → ℝ := …Mentions: OAI.HyperedgeComparison.Hypergraph
- theorem
OAI.HyperedgeComparison.expectationVector_eq_sum_columnsline 1354 - theorem
OAI.HyperedgeComparison.inverse_expectation_nonnegline 1364Source documentation
Increasing observables give nonnegative inverse expectation vectors.
theorem inverse_expectation_nonneg [Fintype V] {n : ℕ} (H : Hypergraph V E) (p : E → Set.Icc (0 : ℝ) 1) (hp : ∀ e, (p e : ℝ) < 1) (x : Fin n → V) (hx : Function.Injective x) (F : Set V → ℝ) (hF0 : ∀ U, 0 ≤ F U) (hFm : Monotone F) (i : Fin n) : 0 ≤ ((baseMatrix H p x)⁻¹ *ᵥ expectationVector H p x F) i := by …Mentions: OAI.HyperedgeComparison.Hypergraph, OAI.HyperedgeComparison.baseMatrix, OAI.HyperedgeComparison.expectationVector
- theorem
OAI.HyperedgeComparison.inverse_last_diag_mulline 1376Source documentation
The final diagonal entry of the inverse is reciprocal to the probability of avoiding all preceding listed vertices.
theorem inverse_last_diag_mul {n : ℕ} (H : Hypergraph V E) (p : E → Set.Icc (0 : ℝ) 1) (hp : ∀ e, (p e : ℝ) < 1) (x : Fin (n + 1) → V) (hx : Function.Injective x) : (baseMatrix H p x)⁻¹ (Fin.last n) (Fin.last n) * baseMatrix H p x (Fin.last n) (Fin.last n) = 1 := by …Mentions: OAI.HyperedgeComparison.Hypergraph, OAI.HyperedgeComparison.baseMatrix
- theorem
OAI.HyperedgeComparison.expectation_comparisonline 1395Source documentation
Scalar consequence of the cone: a target observable large at every earlier listed vertex must have a correspondingly large expectation at the last one.
theorem expectation_comparison [Fintype V] {n : ℕ} (H : Hypergraph V E) (p : E → Set.Icc (0 : ℝ) 1) (hp : ∀ e, (p e : ℝ) < 1) (x : Fin (n + 1) → V) (hx : Function.Injective x) (F : Set V → ℝ) (hF0 : ∀ U, 0 ≤ F U) (hFm : Monotone F) (b : ℝ) (hb : ∀ j ≠ Fin.last n, b ≤ expectationVector H p x F j) : b * (1 - baseMatrix H p x (Fin.last n) (Fin.last n)) ≤ expectationVector H p x F (Fin.last n) := by …Mentions: OAI.HyperedgeComparison.Hypergraph, OAI.HyperedgeComparison.expectationVector, OAI.HyperedgeComparison.baseMatrix
- def
OAI.HyperedgeComparison.eventProbline 1437Source documentation
Real probability of any event in the finite bit space.
noncomputable def eventProb (p : E → Set.Icc (0 : ℝ) 1) (P : (E → Bool) → Prop) : ℝ := …
- theorem
OAI.HyperedgeComparison.eventProb_eq_realline 1440 - theorem
OAI.HyperedgeComparison.eventProb_complline 1445 - def
OAI.HyperedgeComparison.jointObservableline 1459Source documentation
Joint cluster-hit observable, preserving both target sets.
noncomputable def jointObservable (A T U : Set V) : ℝ := …
- theorem
OAI.HyperedgeComparison.jointObservable_nonnegline 1463 - theorem
OAI.HyperedgeComparison.jointObservable_monotoneline 1468 - theorem
OAI.HyperedgeComparison.expectation_jointObservableline 1478 - theorem
OAI.HyperedgeComparison.expectation_jointObservable_of_memline 1490 - theorem
OAI.HyperedgeComparison.last_diagonal_avoidanceline 1499 - theorem
OAI.HyperedgeComparison.joint_comparison_listline 1521 - theorem
OAI.HyperedgeComparison.exists_target_listline 1541 - theorem
OAI.HyperedgeComparison.joint_comparison_of_lt_oneline 1580Source documentation
The joint connection inequality for arbitrary finite targets, first for strictly subunit hyperedge probabilities.
theorem joint_comparison_of_lt_one [Fintype V] (H : Hypergraph V E) (p : E → Set.Icc (0 : ℝ) 1) (hp : ∀ e, (p e : ℝ) < 1) (o : V) (A T : Set V) (b : ℝ) (hb : ∀ a ∈ A, b ≤ eventProb p (fun ω => Meets H ω ∅ a T)) : b * eventProb p (fun ω => Meets H ω ∅ o A) ≤ eventProb p (fun ω => Meets H ω ∅ o A ∧ Meets H ω ∅ o T) := by …Mentions: OAI.HyperedgeComparison.Hypergraph, OAI.HyperedgeComparison.eventProb, OAI.HyperedgeComparison.Meets
- theorem
OAI.HyperedgeComparison.law_massline 1599Source documentation
Polynomial weight of a specified finite configuration.
theorem law_mass (p : E → Set.Icc (0 : ℝ) 1) (ω : E → Bool) : (law p).real {ω} = ∏ e, if ω e = true then (p e : ℝ) else 1 - (p e : ℝ) := by …Mentions: OAI.HyperedgeComparison.law
- theorem
OAI.HyperedgeComparison.eventProb_tendstoline 1611Source documentation
All finite event probabilities are continuous in all parameters, including at configurations with deterministic bits.
theorem eventProb_tendsto (p : E → Set.Icc (0 : ℝ) 1) (q : ℕ → E → Set.Icc (0 : ℝ) 1) (hq : ∀ e, Tendsto (fun n => (q n e : ℝ)) atTop (nhds (p e : ℝ))) (P : (E → Bool) → Prop) : Tendsto (fun n => eventProb (q n) P) atTop (nhds (eventProb p P)) := by …Mentions: OAI.HyperedgeComparison.eventProb
- def
OAI.HyperedgeComparison.thinParameterline 1627Source documentation
Strictly subunit parameters approaching arbitrary permitted parameters.
noncomputable def thinParameter (p : E → Set.Icc (0 : ℝ) 1) (n : ℕ) (e : E) : Set.Icc (0 : ℝ) 1 := … - theorem
OAI.HyperedgeComparison.thinParameter_lt_oneline 1638 - theorem
OAI.HyperedgeComparison.thinParameter_tendstoline 1647 - theorem
OAI.HyperedgeComparison.joint_comparisonline 1653 - theorem
OAI.HyperedgeComparison.eventProb_nonnegline 1690 - theorem
OAI.HyperedgeComparison.eventProb_le_oneline 1695 - theorem
OAI.HyperedgeComparison.eventProb_monoline 1700 - theorem
OAI.HyperedgeComparison.eventProb_failureline 1709 - theorem
OAI.HyperedgeComparison.failure_comparison_mulline 1719Source documentation
The strengthened hyperedge failure estimate, including all fixed-bit laws.
theorem failure_comparison_mul [Fintype V] (H : Hypergraph V E) (p : E → Set.Icc (0 : ℝ) 1) (o : V) (A T : Set V) (b : ℝ) (hb : ∀ a ∈ A, 1 - b ≤ eventProb p (fun ω => Meets H ω ∅ a T)) : eventProb p (fun ω => Meets H ω ∅ o A ∧ ¬Meets H ω ∅ o T) ≤ b * eventProb p (fun ω => Meets H ω ∅ o A) := by …Mentions: OAI.HyperedgeComparison.Hypergraph, OAI.HyperedgeComparison.eventProb, OAI.HyperedgeComparison.Meets
- theorem
OAI.HyperedgeComparison.failure_comparisonline 1728 - theorem
OAI.HyperedgeComparison.joint_comparison_ennrealline 1735 - abbrev
OAI.HyperedgeComparison.Site.Nodeline 1758Source documentation
The connector presentation uses two directed copies of each undirected edge; duplication does not change any reachable starred vertex. Nonedges are isolated connector nodes.
abbrev Node (V : Type uV) := V ⊕ (V × V)
- def
OAI.HyperedgeComparison.Site.starsline 1760 - def
OAI.HyperedgeComparison.Site.OpenAdjline 1765 - def
OAI.HyperedgeComparison.Site.Connectedline 1768 - def
OAI.HyperedgeComparison.Site.Meetsline 1771 - theorem
OAI.HyperedgeComparison.Site.connected_reflline 1774 - theorem
OAI.HyperedgeComparison.Site.connected_open_rightline 1777 - theorem
OAI.HyperedgeComparison.Site.connected_extendline 1784 - theorem
OAI.HyperedgeComparison.Site.connected_to_starsline 1789 - def
OAI.HyperedgeComparison.Site.Supportedline 1805Source documentation
Predicate propagated along a hyperedge path. It explicitly retains the site-open condition, including in the zero-edge case.
def Supported (ω : V → Bool) (o : V) : Node V → Prop | Sum.inl x => Connected G ω o x | Sum.inr e => G.Adj e.1 e.2 ∧ (Connected G ω o e.1 ∨ Connected G ω o e.2)
Mentions: OAI.HyperedgeComparison.Site.Node, OAI.HyperedgeComparison.Site.Connected
- theorem
OAI.HyperedgeComparison.Site.supported_labelline 1809 - theorem
OAI.HyperedgeComparison.Site.supported_of_labelline 1828 - theorem
OAI.HyperedgeComparison.Site.connected_of_starsline 1843 - theorem
OAI.HyperedgeComparison.Site.meets_to_starsline 1856 - theorem
OAI.HyperedgeComparison.Site.meets_of_starsline 1862 - theorem
OAI.HyperedgeComparison.Site.failure_subset_hyperedgeline 1868 - theorem
OAI.HyperedgeComparison.site_failure_comparisonline 1879