MindFormal v1.0.0One Mind

MindFormal.Tools.CompanionTransactions.FiniteHarmonic

theorem MindFormal.CompanionTransactions.finite_sum_terms_eq {Q : Type u_1} [Fintype Q] {f g : Q → ENNReal} (h : ∀ (y : Q), f y ≤ g y) (hg : ∀ (y : Q), g y ≠ ⊤) (he : ∑ y : Q, f y = ∑ y : Q, g y) (y : Q) :
f y = g y
theorem MindFormal.CompanionTransactions.stochastic_entry_finite {Q : Type u_1} [Fintype Q] (P : Q → Q → ENNReal) (stochastic : ∀ (x : Q), ∑ y : Q, P x y = 1) (x y : Q) :
P x y ≠ ⊤
theorem MindFormal.CompanionTransactions.harmonic_one_successor {Q : Type u_1} [Fintype Q] (P : Q → Q → ENNReal) (stochastic : ∀ (x : Q), ∑ y : Q, P x y = 1) (f : Q → ENNReal) (bound : ∀ (x : Q), f x ≤ 1) (harmonic : ∀ (x : Q), finiteStep P f x = f x) {x y : Q} (hx : f x = 1) (edge : 0 < P x y) :
f y = 1
theorem MindFormal.CompanionTransactions.harmonic_one_path {Q : Type u_1} [Fintype Q] (P : Q → Q → ENNReal) (stochastic : ∀ (x : Q), ∑ y : Q, P x y = 1) (f : Q → ENNReal) (bound : ∀ (x : Q), f x ≤ 1) (harmonic : ∀ (x : Q), finiteStep P f x = f x) {x y : Q} {n : ℕ} (hx : f x = 1) (path : supportPath P n x y) :
f y = 1
theorem MindFormal.CompanionTransactions.harmonic_min_successor {Q : Type u_1} [Fintype Q] (P : Q → Q → ENNReal) (stochastic : ∀ (x : Q), ∑ y : Q, P x y = 1) (f : Q → ENNReal) (bound : ∀ (x : Q), f x ≤ 1) (harmonic : ∀ (x : Q), finiteStep P f x = f x) {x y : Q} (edge : 0 < P x y) (minimal : ∀ (z : Q), 0 < P x z → f x ≤ f z) :
f y = f x
theorem MindFormal.CompanionTransactions.harmonic_min_class {Q : Type u_1} [Fintype Q] (P : Q → Q → ENNReal) (stochastic : ∀ (x : Q), ∑ y : Q, P x y = 1) (f : Q → ENNReal) (bound : ∀ (x : Q), f x ≤ 1) (harmonic : ∀ (x : Q), finiteStep P f x = f x) (x : Q) :
∃ (C : Finset Q), ClosedRecurrentClass P C ∧ ↑C ⊆ reachable P x ∧ ∀ y ∈ C, f y ≤ f x

The harmonic minimum on the finite reachable set is a closed set. Taking a minimal closed subset produces an actual recurrent class.

theorem MindFormal.CompanionTransactions.hitLimit_one_iff_classes {Q : Type u_1} [Fintype Q] (P : Q → Q → ENNReal) (stochastic : ∀ (x : Q), ∑ y : Q, P x y = 1) (A : Set Q) (closed : SupportClosed P A) (x : Q) :
hitLimit P A x = 1 ↔ ∀ (C : Finset Q), ClosedRecurrentClass P C → (∃ y ∈ C, y ∈ reachable P x) → ↑C ⊆ A

Probability one is decided by the closed recurrent classes reachable from the initial state. A competing absorbing mark is a nonaccepting class.