MindFormal v1.0.0One Mind

MindFormal.Tools.SequentialEvents

Finite experiments: conditional chains, shared failure bills and identification. No independence is imposed. These tools apply to events read from a complete run.

def MindFormal.prefixEvent {Ω : Type u_1} (E : ℕ → Set Ω) :
ℕ → Set Ω

The event that the first n stages all succeeded, including initialization when initialization is stage zero. Later correction does not repair this event.

Equations
Instances For
    noncomputable def MindFormal.conditionalSuccess {Ω : Type u_1} [MeasurableSpace Ω] (μ : MeasureTheory.Measure Ω) (E : ℕ → Set Ω) (n : ℕ) :

    Actual conditional success, with zero assigned after a zero-probability prefix. This is a ratio of joint probabilities, never a marginal stage accuracy.

    Equations
    Instances For

      PG1.15, RD9.1: a prefix probability is the product of its actual conditional successes. A zero-probability prefix forces every longer prefix to have zero probability, so no positive-conditioning assumption is hidden.

      theorem MindFormal.prefix_error {Ω : Type u_1} [MeasurableSpace Ω] (μ : MeasureTheory.Measure Ω) [MeasureTheory.IsProbabilityMeasure μ] (E : ℕ → Set Ω) (hE : ∀ (k : ℕ), MeasurableSet (E k)) (n : ℕ) :
      μ.real (prefixEvent E n)ᶜ = 1 - ∏ k ∈ Finset.range n, conditionalSuccess μ E k

      PG1.15: the probability of any error in a finite prefix, when its stages are measurable, is one minus the conditional product.

      theorem MindFormal.common_failure_bound {Ω : Type u_1} {I : Type u_2} [MeasurableSpace Ω] [Fintype I] (μ : MeasureTheory.Measure Ω) (common : Set Ω) (bad : I → Set Ω) (q : ℝ) (ε : I → ℝ) (hc : μ.real common ≤ q) (hb : ∀ (i : I), μ.real (bad i) ≤ ε i) :
      μ.real (common ∪ ⋃ (i : I), bad i) ≤ q + ∑ i : I, ε i

      A finite simultaneous certificate pays one common failure and each member's failure once. No factorization of the joint distribution is used.

      theorem MindFormal.finite_certificate_event {Ω : Type u_1} {I : Type u_2} [MeasurableSpace Ω] [Fintype I] (μ : MeasureTheory.Measure Ω) [MeasureTheory.IsProbabilityMeasure μ] (enclosure : Set Ω) (hm : MeasurableSet enclosure) {ε : ℝ} (he : 1 - ε ≤ μ.real enclosure) (bad : I → Set Ω) (price : I → ℝ) (hb : ∀ (i : I), μ.real (bad i) ≤ price i) {Q : Ω → Prop} (hQ : ∀ᵐ (ω : Ω) ∂μ, Q ω) :
      ∃ (good : Set Ω), MeasurableSet good ∧ good ⊆ enclosure ∧ (∀ ω ∈ good, Q ω ∧ ∀ (i : I), ω ∉ bad i) ∧ 1 - min 1 (ε + ∑ i : I, price i) ≤ μ.real good

      One measurable certificate removes a common enclosure failure, each finite failure once, and a null exceptional set. The failure events themselves may be outer-measured; no independence or measurable-selection premise is needed.

      theorem MindFormal.identifies_iff_fibers {X : Type u_1} {Y : Type u_2} {Z : Type u_3} [Nonempty Z] (observe : X → Y) (read : X → Z) :
      (∃ (f : Y → Z), ∀ (x : X), f (observe x) = read x) ↔ ∀ (x x' : X), observe x = observe x' → read x = read x'

      RP1.3, RD21.2: an observation determines a requested quantity exactly when that quantity is constant on every observation fiber. This is identification, not an estimator or a claim that a hidden preparation has been recovered.

      theorem MindFormal.selective_reach_iff {Q : Type u_1} (r f r' f' : Q → ℝ) (hr : ∀ (q : Q), r q ∈ Set.Icc 0 1) (hf : ∀ (q : Q), f q ∈ Set.Icc 0 1) :
      (∀ p ∈ Set.Icc 0 1, ∀ η ∈ Set.Icc 0 1, {q : Q | p ≤ r q ∧ f q ≤ η} ⊆ {q : Q | p ≤ r' q ∧ f' q ≤ η}) ↔ ∀ (q : Q), r q ≤ r' q ∧ f' q ≤ f q

      RD1.4: all selective reach comparisons are exactly the pointwise success and false-alarm order. Including confidence zero is essential to the reverse direction when success itself is zero.

      theorem MindFormal.selective_reflexive {Q : Type u_1} (r f : Q → ℝ) (q : Q) :
      r q ≤ r q ∧ f q ≤ f q

      RD1.4/6.1: every response profile selectively dominates itself.

      theorem MindFormal.selective_transitive {Q : Type u_1} {r f r' f' r'' f'' : Q → ℝ} (h : ∀ (q : Q), r q ≤ r' q ∧ f' q ≤ f q) (h' : ∀ (q : Q), r' q ≤ r'' q ∧ f'' q ≤ f' q) (q : Q) :
      r q ≤ r'' q ∧ f'' q ≤ f q

      RD1.4/6.1: pointwise selective dominance is transitive.

      theorem MindFormal.selective_antisymmetry {Q : Type u_1} {r f r' f' : Q → ℝ} (h : ∀ (q : Q), r q ≤ r' q ∧ f' q ≤ f q) (h' : ∀ (q : Q), r' q ≤ r q ∧ f q ≤ f' q) :
      r = r' ∧ f = f'

      RD1.4: mutual pointwise selective dominance identifies exactly equal profiles; antisymmetry belongs to the profiles, not to their physical owners.

      theorem MindFormal.selective_profile_preorder {X : Type u_1} {Q : Type u_2} (r f : X → Q → ℝ) :
      have rel := fun (x y : X) => ∀ (q : Q), r x q ≤ r y q ∧ f y q ≤ f x q; (∀ (x : X), rel x x) ∧ (∀ (x y z : X), rel x y → rel y z → rel x z) ∧ ∀ (x y : X), rel x y ∧ rel y x ↔ r x = r y ∧ f x = f y

      CA14: the selective relation on any family of profiles is a preorder; its equivalence classes are exactly the pairs of equal profiles. Thus identifying equal profiles makes the relation a partial order.

      theorem MindFormal.no_real_selective_representation {X : Type u_1} {Q : Type u_2} (r f : X → Q → ℝ) (x y : X) (hxy : ¬∀ (q : Q), r x q ≤ r y q ∧ f y q ≤ f x q) (hyx : ¬∀ (q : Q), r y q ≤ r x q ∧ f x q ≤ f y q) :
      ¬∃ (score : X → ℝ), ∀ (a b : X), (∀ (q : Q), r a q ≤ r b q ∧ f b q ≤ f a q) ↔ score a ≤ score b

      CA14: an incomparable pair prevents a real score from representing the selective order in both directions. This does not assert that any particular family of native experiments contains such a pair.

      theorem MindFormal.finite_weighted_tradeoff {Q : Type u_1} (S : Finset Q) (w r r' : Q → ℝ) {i j : Q} (hi : i ∈ S) (hj : j ∈ S) (hij : i ≠ j) (_hw : ∀ a ∈ S, 0 < w a) (hfixed : ∀ a ∈ S, a ≠ i → a ≠ j → r' a = r a) (hfall : r' j - r j < 0) (hgain : -w j * (r' j - r j) < w i * (r' i - r i)) :
      ∑ a ∈ S, w a * r a < ∑ a ∈ S, w a * r' a ∧ r' j < r j ∧ ¬∀ a ∈ S, r a ≤ r' a

      CA14's finite weighted trade-off: with all other paid coordinates fixed, a compensating first gain raises the score while the second coordinate falls. No native preparation realizing these changes is assumed to exist, and no numerical example is manufactured.

      theorem MindFormal.battery_statistic_law {Ω : Type u_1} {Ω' : Type u_2} {B : Type u_3} {Z : Type u_4} [MeasurableSpace Ω] [MeasurableSpace Ω'] [MeasurableSpace B] [MeasurableSpace Z] (μ : MeasureTheory.Measure Ω) (ν : MeasureTheory.Measure Ω') (read : Ω → B) (read' : Ω' → B) (hr : Measurable read) (hr' : Measurable read') (hlaw : MeasureTheory.Measure.map read μ = MeasureTheory.Measure.map read' ν) (statistic : B → Z) (hs : Measurable statistic) :
      MeasureTheory.Measure.map (statistic ∘ read) μ = MeasureTheory.Measure.map (statistic ∘ read') ν

      CA14: equal laws of a battery's measurable record read give equal laws for every measurable statistic of that read, even for experiments on different probability spaces.