MindFormal v1.0.0One Mind

MindFormal.Tools.SharedSupportRepresentation.Cycles

Positive comparison odds on any undirected comparison domain. Every finite closed comparison walk is tested, including returns and repeated vertices.

theorem MindFormal.SharedSupportRepresentation.walkProduct_pos {V : Type u_1} {G : SimpleGraph V} {odds : V → V → ℝ} (hpos : ∀ (a b : V), G.Adj a b → 0 < odds a b) {a b : V} (p : G.Walk a b) :
0 < walkProduct odds p
theorem MindFormal.SharedSupportRepresentation.walkProduct_append {V : Type u_1} {G : SimpleGraph V} (odds : V → V → ℝ) {a b c : V} (p : G.Walk a b) (q : G.Walk b c) :
walkProduct odds (p.append q) = walkProduct odds p * walkProduct odds q
def MindFormal.SharedSupportRepresentation.CycleLaw {V : Type u_1} (G : SimpleGraph V) (odds : V → V → ℝ) :
Equations
  • One or more equations did not get rendered due to their size.
Instances For
    def MindFormal.SharedSupportRepresentation.PositiveWeights {V : Type u_1} (G : SimpleGraph V) (odds : V → V → ℝ) (w : V → ℝ) :
    Equations
    Instances For
      theorem MindFormal.SharedSupportRepresentation.represented_walk {V : Type u_1} {G : SimpleGraph V} {odds : V → V → ℝ} {w : V → ℝ} (hw : PositiveWeights G odds w) {a b : V} (p : G.Walk a b) :
      walkProduct odds p = w a / w b
      theorem MindFormal.SharedSupportRepresentation.path_independent {V : Type u_1} {G : SimpleGraph V} {odds : V → V → ℝ} (hpos : ∀ (a b : V), G.Adj a b → 0 < odds a b) (hc : CycleLaw G odds) {a b : V} (p q : G.Walk a b) :
      walkProduct odds p = walkProduct odds q
      noncomputable def MindFormal.SharedSupportRepresentation.componentWeight {V : Type u_1} {G : SimpleGraph V} (odds : V → V → ℝ) (c : G.ConnectedComponent) (v : V) :
      Equations
      • One or more equations did not get rendered due to their size.
      Instances For
        theorem MindFormal.SharedSupportRepresentation.componentWeight_pos {V : Type u_1} {G : SimpleGraph V} {odds : V → V → ℝ} (hpos : ∀ (a b : V), G.Adj a b → 0 < odds a b) (c : G.ConnectedComponent) (v : V) :
        0 < componentWeight odds c v
        theorem MindFormal.SharedSupportRepresentation.componentWeight_edge {V : Type u_1} {G : SimpleGraph V} {odds : V → V → ℝ} (hpos : ∀ (a b : V), G.Adj a b → 0 < odds a b) (hc : CycleLaw G odds) (c : G.ConnectedComponent) {a b : V} (ha : G.connectedComponentMk a = c) (hb : G.connectedComponentMk b = c) (hab : G.Adj a b) :
        odds a b = componentWeight odds c a / componentWeight odds c b
        theorem MindFormal.SharedSupportRepresentation.positive_weights_iff {V : Type u_1} {G : SimpleGraph V} {odds : V → V → ℝ} (hpos : ∀ (a b : V), G.Adj a b → 0 < odds a b) :
        (∃ (w : V → ℝ), PositiveWeights G odds w) ↔ CycleLaw G odds

        Choosing one route per vertex is the spanning-tree construction's algebra. The closed-walk test proves every other route gives the same weights. Separate connected components are allowed and carry separate arbitrary positive scales.

        theorem MindFormal.SharedSupportRepresentation.component_scale {V : Type u_1} {G : SimpleGraph V} {odds : V → V → ℝ} {w z : V → ℝ} (hw : PositiveWeights G odds w) (hz : PositiveWeights G odds z) {a b : V} (hab : G.Reachable a b) :
        z a / w a = z b / w b
        theorem MindFormal.SharedSupportRepresentation.rescale_weights {V : Type u_1} {G : SimpleGraph V} {odds : V → V → ℝ} {w : V → ℝ} (hw : PositiveWeights G odds w) (k : G.ConnectedComponent → ℝ) (hk : ∀ (c : G.ConnectedComponent), 0 < k c) :
        PositiveWeights G odds fun (v : V) => k (G.connectedComponentMk v) * w v
        theorem MindFormal.SharedSupportRepresentation.normalize_weights {V : Type u_1} {G : SimpleGraph V} [Fintype V] [Nonempty V] {odds : V → V → ℝ} {w : V → ℝ} (hw : PositiveWeights G odds w) :
        0 < ∑ v : V, w v ∧ (PositiveWeights G odds fun (v : V) => w v / ∑ j : V, w j) ∧ ∑ v : V, w v / ∑ j : V, w j = 1
        theorem MindFormal.SharedSupportRepresentation.probability_from_odds {p a b : ℝ} (hp : p < 1) (ha : 0 < a) (hb : 0 < b) (he : p / (1 - p) = a / b) :
        p = a / (a + b)
        theorem MindFormal.SharedSupportRepresentation.odds_from_probability {p a b : ℝ} (ha : 0 < a) (hb : 0 < b) (he : p = a / (a + b)) :
        p / (1 - p) = a / b
        def MindFormal.SharedSupportRepresentation.BinaryWeights {V : Type u_1} (G : SimpleGraph V) (p : V → V → ℝ) (w : V → ℝ) :
        Equations
        Instances For
          theorem MindFormal.SharedSupportRepresentation.binary_weights_equiv {V : Type u_1} {G : SimpleGraph V} {p : V → V → ℝ} {w : V → ℝ} (hp : ∀ (a b : V), G.Adj a b → p a b < 1) :
          BinaryWeights G p w ↔ PositiveWeights G (fun (a b : V) => p a b / (1 - p a b)) w
          theorem MindFormal.SharedSupportRepresentation.binary_weights_iff {V : Type u_1} {G : SimpleGraph V} {p : V → V → ℝ} (hp : ∀ (a b : V), G.Adj a b → 0 < p a b ∧ p a b < 1) :
          (∃ (w : V → ℝ), BinaryWeights G p w) ↔ CycleLaw G fun (a b : V) => p a b / (1 - p a b)
          theorem MindFormal.SharedSupportRepresentation.root_normalized {V : Type u_1} {G : SimpleGraph V} {odds : V → V → ℝ} (hc : CycleLaw G odds) (c : G.ConnectedComponent) :
          theorem MindFormal.SharedSupportRepresentation.normalized_unique {V : Type u_1} {G : SimpleGraph V} [Fintype V] [Nonempty V] {odds : V → V → ℝ} (hG : G.Preconnected) {w z : V → ℝ} (hw : PositiveWeights G odds w) (hz : PositiveWeights G odds z) (hsw : ∑ v : V, w v = 1) (hsz : ∑ v : V, z v = 1) :
          w = z