MindFormal v1.0.0One Mind

MindFormal.Run.GivenHistoryRecords.Practice

noncomputable def MindFormal.GivenHistoryRecords.eventTime {Ω : Type u_1} {A : Type u_2} {J : Type u_3} [mΩ : MeasurableSpace Ω] [Fintype A] [Countable J] {N n : A → ℕ} {V : A → Type u_4} {Λ : A → Type u_5} [(a : A) → Fintype (V a)] [(a : A) → Fintype (Λ a)] (E : Candidate) (H : NNReal) (a : A) (ω : Ω) (k : ℕ) :
Equations
Instances For
    noncomputable def MindFormal.GivenHistoryRecords.duration {Ω : Type u_1} {A : Type u_2} {J : Type u_3} [mΩ : MeasurableSpace Ω] [Fintype A] [Countable J] {N n : A → ℕ} {V : A → Type u_4} {Λ : A → Type u_5} [(a : A) → Fintype (V a)] [(a : A) → Fintype (Λ a)] {K : ℕ} (E : Candidate) (H : NNReal) (a : A) (ω : Ω) (coeff : Fin K → ℝ) :
    Equations
    Instances For
      theorem MindFormal.GivenHistoryRecords.comparison {Ω : Type u_1} {A : Type u_2} {J : Type u_3} [mΩ : MeasurableSpace Ω] [Fintype A] [Countable J] {N n : A → ℕ} {V : A → Type u_4} {Λ : A → Type u_5} [(a : A) → Fintype (V a)] [(a : A) → Fintype (Λ a)] {Ξ : Type u_6} (Ev : Ξ → Candidate) (ω : Ξ → Ω) (H : NNReal) (a : A) {K : ℕ} (label : Ξ → Fin K → Fin (N a)) (center radius phase coeff : Ξ → Fin K → ℝ) (tests : ∀ (e : Ξ), WindowTests (Ev e).history.observed H a (ω e) (label e) (center e) (radius e) (phase e)) (original : ℝ) (horiginal : 0 < original) (efficiency : ℝ → ℝ) (range : Set ℝ) (hrange : ∀ (e : Ξ) (t : ℝ), |t - ∑ q : Fin K, coeff e q * center e q| ≤ ∑ q : Fin K, |coeff e q| * radius e q → t ∈ range) (hscore : AntitoneOn efficiency range) :
      have time := fun (e : Ξ) => duration (Ev e) H a (ω e) (coeff e); have barTime := fun (e : Ξ) => ∑ q : Fin K, coeff e q * center e q; have error := fun (e : Ξ) => ∑ q : Fin K, |coeff e q| * radius e q; (∀ (e : Ξ) (q : Fin K), ∃ (t : ℝ), (search (Ev e).history.observed H a (ω e) ↑q).event = some (t, label e q) ∧ ↑↑((Ev e).history.observed.records H (ω e) a false) ↑q = (t, Sum.inl (label e q)) ∧ |t - center e q| ≤ radius e q) ∧ (∀ (e : Ξ), |time e - barTime e| ≤ error e) ∧ ∀ (slow fast : Ξ), error slow + error fast ≤ barTime slow - barTime fast → time fast ≤ time slow ∧ 1 - time slow / original ≤ 1 - time fast / original ∧ efficiency (time slow) ≤ efficiency (time fast) ∧ (error slow + error fast < barTime slow - barTime fast → time fast < time slow ∧ 1 - time slow / original < 1 - time fast / original)