MindFormal v1.0.0One Mind

MindFormal.Tools.CarrierReads

def MindFormal.carrierMargin {C : Type u_1} (carriers : Finset C) (m : C → ℝ) :

A finite carrier maximum; the empty maximum is a failed test, not an activity assigned to an imaginary content.

Equations
Instances For
    theorem MindFormal.carrierMargin_nonneg {C : Type u_1} (carriers : Finset C) (m : C → ℝ) :
    0 ≤ carrierMargin carriers m ↔ ∃ i ∈ carriers, 0 ≤ m i
    theorem MindFormal.carrierMargin_neg {C : Type u_1} (carriers : Finset C) (m : C → ℝ) :
    carrierMargin carriers m < 0 ↔ ∀ i ∈ carriers, m i < 0
    theorem MindFormal.nativeTime_attained {Ω : Type u_1} {I : Type u_2} [Finite I] {G : NNReal → Ω → I → ℝ} {ω : Ω} {t : NNReal} (hc : ∀ (i : I), Continuous fun (s : NNReal) => G s ω i) (ht : nativeTime G (fun (x : Ω) => 0) ω = ↑t) :
    ∃ (i : I), 0 ≤ G t ω i

    A finite first entry is attained, including entry at time zero.

    theorem MindFormal.nativeTime_eq_inf_hits {Ω : Type u_1} {I : Type u_2} [Fintype I] {G : NNReal → Ω → I → ℝ} {ω : Ω} (hc : ∀ (i : I), Continuous fun (t : NNReal) => G t ω i) :
    nativeTime G (fun (x : Ω) => 0) ω = Finset.univ.inf fun (i : I) => levelHit (fun (t : NNReal) (ω : Ω) => G t ω i) 0 ω

    A first hit of one of finitely many continuous guards is the minimum of their first hits. The empty family has minimum infinity.

    theorem MindFormal.nativeTime_mono_capped {Ω : Type u_1} {I : Type u_2} [Finite I] {G G' : NNReal → Ω → I → ℝ} {ω : Ω} {H : NNReal} (hc : ∀ (i : I), Continuous fun (s : NNReal) => G s ω i) (hc' : ∀ (i : I), Continuous fun (s : NNReal) => G' s ω i) (hle : ∀ s ≤ H, ∀ (i : I), G s ω i ≤ G' s ω i) :
    min (nativeTime G' (fun (x : Ω) => 0) ω) ↑H ≤ min (nativeTime G (fun (x : Ω) => 0) ω) ↑H

    A higher continuous guard has an earlier first hit, with both times capped at the interval on which the comparison holds.

    theorem MindFormal.nativeTime_mono_on_hit {Ω : Type u_1} {I : Type u_2} [Finite I] {G G' : NNReal → Ω → I → ℝ} {ω : Ω} {H : NNReal} (hc : ∀ (i : I), Continuous fun (s : NNReal) => G s ω i) (hc' : ∀ (i : I), Continuous fun (s : NNReal) => G' s ω i) (hle : ∀ s ≤ H, ∀ (i : I), G s ω i ≤ G' s ω i) (hhit : nativeTime G (fun (x : Ω) => 0) ω ≤ ↑H) :
    nativeTime G' (fun (x : Ω) => 0) ω ≤ nativeTime G (fun (x : Ω) => 0) ω

    The uncapped comparison when the smaller guard hits within the certified window. A hit at its right endpoint is included.

    theorem MindFormal.everyone_entered_iff {A : Type u_1} {Ω : Type u_2} [Fintype A] (X : A → NNReal → Ω → ℝ) (ω : Ω) (hc : ∀ (a : A), Continuous fun (t : NNReal) => X a t ω) (H : NNReal) :
    (Finset.univ.sup fun (a : A) => levelHit (X a) 0 ω) ≤ ↑H ↔ ∀ (a : A), ∃ t ≤ H, 0 ≤ X a t ω

    All members have entered individually by a deadline exactly when the maximum of their individual first times is at most that deadline. This does not assert simultaneous presence at that time.

    theorem MindFormal.aligned_carrier_awareness {A : Type u_1} [Fintype A] [Nonempty A] (m : A → WithBot ℝ) :
    (0 ≤ Finset.univ.inf' ⋯ m ↔ ∀ (a : A), 0 ≤ m a) ∧ (Finset.univ.sup' ⋯ m < 0 ↔ ∀ (a : A), m a < 0) ∧ (0 ≤ Finset.univ.sup' ⋯ m ↔ ∃ (a : A), 0 ≤ m a)

    Group current margins, including empty-carrier bottom margins.