MindFormal v1.0.0One Mind

MindFormal.Chapters.Ch10.Native

The declared word battery is read at its actual terminal times on the own-driver run. This module keeps all coordinates and the completed world's native feedback.

@[reducible, inline]
noncomputable abbrev MindFormal.Logic.ownGlobal {Ω : Type u_1} [MeasurableSpace Ω] {N n : ℕ} {T : Type u_2} {Λ : Type u_3} {J : Type u_4} [Fintype T] [Fintype Λ] [Fintype J] (E : StateExperiment Ω N n T Λ J) (ω : Ω) :
Equations
Instances For
    noncomputable def MindFormal.Logic.verdictProbability {Ω : Type u_1} [MeasurableSpace Ω] {N n : ℕ} {T : Type u_2} {Λ : Type u_3} {J : Type u_4} [Fintype T] [Fintype Λ] [Fintype J] (E : List (Fin N) → StateExperiment Ω N n T Λ J) (H : (w : List (Fin N)) → ↑(Set.Icc 0 ↑(E w).horizon)) (α : ℝ) (w : List (Fin N)) (i : Fin N) :
    Equations
    Instances For
      theorem MindFormal.Logic.weakening_test {Ω : Type u_1} [MeasurableSpace Ω] {N n : ℕ} {T : Type u_2} {Λ : Type u_3} {J : Type u_4} [Fintype T] [Fintype Λ] [Fintype J] (E : List (Fin N) → StateExperiment Ω N n T Λ J) (H : (w : List (Fin N)) → ↑(Set.Icc 0 ↑(E w).horizon)) (α : ℝ) (m : ℕ) :
      Weakening m (Majority (verdictProbability E H α)) ↔ ¬∃ (w : List (Fin N)) (j : Fin N) (i : Fin N), w.length + 1 ≤ m ∧ 1 / 2 < verdictProbability E H α w i ∧ verdictProbability E H α (w ++ [j]) i ≤ 1 / 2
      theorem MindFormal.Logic.contraction_test {Ω : Type u_1} [MeasurableSpace Ω] {N n : ℕ} {T : Type u_2} {Λ : Type u_3} {J : Type u_4} [Fintype T] [Fintype Λ] [Fintype J] (E : List (Fin N) → StateExperiment Ω N n T Λ J) (H : (w : List (Fin N)) → ↑(Set.Icc 0 ↑(E w).horizon)) (α : ℝ) (m : ℕ) :
      Contraction m (Majority (verdictProbability E H α)) ↔ ¬∃ (w : List (Fin N)) (j : Fin N) (i : Fin N), w.length + 2 ≤ m ∧ ¬(1 / 2 < verdictProbability E H α (w ++ [j]) i ↔ 1 / 2 < verdictProbability E H α (w ++ [j, j]) i)
      theorem MindFormal.Logic.exchange_test {Ω : Type u_1} [MeasurableSpace Ω] {N n : ℕ} {T : Type u_2} {Λ : Type u_3} {J : Type u_4} [Fintype T] [Fintype Λ] [Fintype J] (E : List (Fin N) → StateExperiment Ω N n T Λ J) (H : (w : List (Fin N)) → ↑(Set.Icc 0 ↑(E w).horizon)) (α : ℝ) (m : ℕ) :
      Exchange m (Majority (verdictProbability E H α)) ↔ ¬∃ (w : List (Fin N)) (v : List (Fin N)) (i : Fin N), w.length ≤ m ∧ w.Perm v ∧ ¬(1 / 2 < verdictProbability E H α w i ↔ 1 / 2 < verdictProbability E H α v i)
      theorem MindFormal.Logic.cut_test {Ω : Type u_1} [MeasurableSpace Ω] {N n : ℕ} {T : Type u_2} {Λ : Type u_3} {J : Type u_4} [Fintype T] [Fintype Λ] [Fintype J] (E : List (Fin N) → StateExperiment Ω N n T Λ J) (H : (w : List (Fin N)) → ↑(Set.Icc 0 ↑(E w).horizon)) (α : ℝ) (m : ℕ) :
      Cut m (Majority (verdictProbability E H α)) ↔ ¬∃ (w : List (Fin N)) (j : Fin N) (i : Fin N), w.length + 1 ≤ m ∧ 1 / 2 < verdictProbability E H α w j ∧ 1 / 2 < verdictProbability E H α (w ++ [j]) i ∧ verdictProbability E H α w i ≤ 1 / 2
      theorem MindFormal.Logic.cautious_test {Ω : Type u_1} [MeasurableSpace Ω] {N n : ℕ} {T : Type u_2} {Λ : Type u_3} {J : Type u_4} [Fintype T] [Fintype Λ] [Fintype J] (E : List (Fin N) → StateExperiment Ω N n T Λ J) (H : (w : List (Fin N)) → ↑(Set.Icc 0 ↑(E w).horizon)) (α : ℝ) (m : ℕ) :
      Cautious m (Majority (verdictProbability E H α)) ↔ ¬∃ (w : List (Fin N)) (j : Fin N) (i : Fin N), w.length + 1 ≤ m ∧ 1 / 2 < verdictProbability E H α w j ∧ 1 / 2 < verdictProbability E H α w i ∧ verdictProbability E H α (w ++ [j]) i ≤ 1 / 2
      theorem MindFormal.Logic.reflexive_test {Ω : Type u_1} [MeasurableSpace Ω] {N n : ℕ} {T : Type u_2} {Λ : Type u_3} {J : Type u_4} [Fintype T] [Fintype Λ] [Fintype J] (E : List (Fin N) → StateExperiment Ω N n T Λ J) (H : (w : List (Fin N)) → ↑(Set.Icc 0 ↑(E w).horizon)) (α : ℝ) (m : ℕ) :
      Reflexive m (Majority (verdictProbability E H α)) ↔ ¬∃ (w : List (Fin N)) (j : Fin N), w.length ≤ m ∧ j ∈ w ∧ verdictProbability E H α w j ≤ 1 / 2
      theorem MindFormal.Logic.semantic_test {Ω : Type u_1} [MeasurableSpace Ω] {N n : ℕ} {T : Type u_2} {Λ : Type u_3} {J : Type u_4} [Fintype T] [Fintype Λ] [Fintype J] (E : List (Fin N) → StateExperiment Ω N n T Λ J) (H : (w : List (Fin N)) → ↑(Set.Icc 0 ↑(E w).horizon)) (α : ℝ) (m : ℕ) (entails : Set (Fin N) → Fin N → Prop) :
      SemanticClosure m (Majority (verdictProbability E H α)) entails ↔ ¬∃ (w : List (Fin N)) (S : Set (Fin N)) (i : Fin N), w.length ≤ m ∧ (∀ j ∈ S, 1 / 2 < verdictProbability E H α w j) ∧ entails S i ∧ verdictProbability E H α w i ≤ 1 / 2
      theorem MindFormal.Logic.description_test {Ω : Type u_1} [MeasurableSpace Ω] {N n : ℕ} {T : Type u_2} {Λ : Type u_3} {J : Type u_4} [Fintype T] [Fintype Λ] [Fintype J] (E : List (Fin N) → StateExperiment Ω N n T Λ J) (H : (w : List (Fin N)) → ↑(Set.Icc 0 ↑(E w).horizon)) (α : ℝ) (m : ℕ) (equiv : List (Fin N) × Fin N → List (Fin N) × Fin N → Prop) :
      DescriptionInvariant m (Majority (verdictProbability E H α)) equiv ↔ ¬∃ (w : List (Fin N)) (v : List (Fin N)) (i : Fin N) (j : Fin N), w.length ≤ m ∧ v.length ≤ m ∧ equiv (w, i) (v, j) ∧ ¬(1 / 2 < verdictProbability E H α w i ↔ 1 / 2 < verdictProbability E H α v j)
      noncomputable def MindFormal.Logic.ownInputs {Ω : Type u_1} [MeasurableSpace Ω] {N n : ℕ} {T : Type u_2} {Λ : Type u_3} {J : Type u_4} [Fintype T] [Fintype Λ] [Fintype J] (E : StateExperiment Ω N n T Λ J) (ω : Ω) (t : ℝ) :
      Fin N → ℝ
      Equations
      • One or more equations did not get rendered due to their size.
      Instances For
        theorem MindFormal.Logic.own_margin {Ω : Type u_1} [MeasurableSpace Ω] {N n : ℕ} {T : Type u_2} {Λ : Type u_3} {J : Type u_4} [Fintype T] [Fintype Λ] [Fintype J] (E : StateExperiment Ω N n T Λ J) (ω : Ω) (t : ↑(Set.Icc 0 ↑E.horizon)) (α : ℝ) (i : Fin N) (hα : 0 < α) :
        (α < (ownGlobal E ω).target i ↑t ↔ 0 < ownInputs E ω (↑t) i - ((ownGlobal E ω).data.activity.g + α) * pool (ownGlobal E ω).data.activity.σ (ownInputs E ω ↑t)) ∧ (α ≤ (ownGlobal E ω).target i ↑t ↔ 0 ≤ ownInputs E ω (↑t) i - ((ownGlobal E ω).data.activity.g + α) * pool (ownGlobal E ω).data.activity.σ (ownInputs E ω ↑t))
        theorem MindFormal.Logic.own_writer {Ω : Type u_1} [MeasurableSpace Ω] {N n : ℕ} {T : Type u_2} {Λ : Type u_3} {J : Type u_4} [Fintype T] [Fintype Λ] [Fintype J] (E : StateExperiment Ω N n T Λ J) (ω : Ω) (t : ↑(Set.Icc 0 ↑E.horizon)) (i j : Fin N) :
        assembledDrift (ownGlobal E ω).data ((ownGlobal E ω).input ↑t) ((ownGlobal E ω).pulse ↑t) ((ownGlobal E ω).state ↑t) (Sum.inl (i, j)) = linkForcing (ownGlobal E ω).data ((ownGlobal E ω).input ↑t) ((ownGlobal E ω).pulse ↑t) ((ownGlobal E ω).state ↑t) i j - linkDamping (ownGlobal E ω).data ((ownGlobal E ω).input ↑t) ((ownGlobal E ω).state ↑t) i j * mindRelation ((ownGlobal E ω).state ↑t) i j
        theorem MindFormal.Logic.own_damping_nonnegative {Ω : Type u_1} [MeasurableSpace Ω] {N n : ℕ} {T : Type u_2} {Λ : Type u_3} {J : Type u_4} [Fintype T] [Fintype Λ] [Fintype J] (E : StateExperiment Ω N n T Λ J) (ω : Ω) (t : ↑(Set.Icc 0 ↑E.horizon)) (i j : Fin N) :
        0 ≤ linkDamping (ownGlobal E ω).data ((ownGlobal E ω).input ↑t) ((ownGlobal E ω).state ↑t) i j
        theorem MindFormal.Logic.own_trace_convolution {Ω : Type u_1} [MeasurableSpace Ω] {N n : ℕ} {T : Type u_2} {Λ : Type u_3} {J : Type u_4} [Fintype T] [Fintype Λ] [Fintype J] (E : StateExperiment Ω N n T Λ J) (ω : Ω) (t : ↑(Set.Icc 0 ↑E.horizon)) (j : Fin N) (l : Λ) :
        mindTrace ((ownGlobal E ω).state ↑t) j l = Real.exp (-E.mind.rate l * ↑t) * mindTrace ((ownGlobal E ω).state 0) j l + E.mind.rate l * ∫ (s : ℝ) in 0..↑t, Real.exp (-E.mind.rate l * (↑t - s)) * mindActivity ((ownGlobal E ω).state s) j
        theorem MindFormal.Logic.own_terminal_transfer {Ω : Type u_1} [MeasurableSpace Ω] {N n : ℕ} {T : Type u_2} {Λ : Type u_3} {J : Type u_4} [Fintype T] [Fintype Λ] [Fintype J] (C : StateLearning Ω N n T Λ J) (hC : C.Contained) (hu : C.control.εu = 0) :
        ∀ᵐ (ω : Ω) ∂C.run.data.μ, ω ∈ C.run.good → ∀ t ∈ Set.Icc 0 ↑C.horizon, ∀ (i : Fin N) (α : ℝ), (α + C.run.control.error ≤ C.run.refCoordinate ω (Sum.inr (Sum.inl i)) t → α ≤ mindActivity ((ownGlobal C.experiment ω).state t) i) ∧ (C.run.refCoordinate ω (Sum.inr (Sum.inl i)) t < α - C.run.control.error → mindActivity ((ownGlobal C.experiment ω).state t) i < α)

        Moving-state finite terminal reads, retaining equality at the awareness bar. The reference, its certified control, containment and known input are explicit.

        def MindFormal.Logic.terminalAwareness {Ω : Type u_1} [MeasurableSpace Ω] {N n : ℕ} {T : Type u_2} {Λ : Type u_3} {J : Type u_4} [Fintype T] [Fintype Λ] [Fintype J] (C : StateLearning Ω N n T Λ J) (i : Fin N) (α : ℝ) :
        Set Ω
        Equations
        Instances For
          theorem MindFormal.Logic.terminal_majority {Ω : Type u_1} [MeasurableSpace Ω] {N n : ℕ} {T : Type u_2} {Λ : Type u_3} {J : Type u_4} [Fintype T] [Fintype Λ] [Fintype J] (C : StateLearning Ω N n T Λ J) (hC : C.Contained) (hu : C.control.εu = 0) (i : Fin N) (α : ℝ) (small : C.run.control.failure < 1 / 2) :
          ((∀ ω ∈ C.run.good, α + C.run.control.error ≤ C.run.refCoordinate ω (Sum.inr (Sum.inl i)) ↑C.horizon) → 1 / 2 < C.run.data.μ.real (terminalAwareness C i α)) ∧ ((∀ ω ∈ C.run.good, C.run.refCoordinate ω (Sum.inr (Sum.inl i)) ↑C.horizon < α - C.run.control.error) → C.run.data.μ.real (terminalAwareness C i α) < 1 / 2)
          theorem MindFormal.Logic.own_activity_lower {Ω : Type u_1} [MeasurableSpace Ω] {N n : ℕ} {T : Type u_2} {Λ : Type u_3} {J : Type u_4} [Fintype T] [Fintype Λ] [Fintype J] (E : StateExperiment Ω N n T Λ J) (i : Fin N) (ω : Ω) {θ δ : ℝ} (hθ : 0 ≤ θ) (hδ : 0 ≤ δ) (t : ↑(HorizonTime ↑E.horizon)) (target_floor : ∀ s ≤ t, θ ≤ actualTarget E.own.data.toPhysicalNoiseData i ω ↑s) (innovation_bound : ∀ s ≤ t, |(actualScalarDriver E.own.data.toPhysicalNoiseData E.horizon i ω) s - (actualScalarDriver E.own.data.toPhysicalNoiseData E.horizon i ω) ⟨0, ⋯⟩| ≤ δ) :
          theorem MindFormal.Logic.own_activity_upper {Ω : Type u_1} [MeasurableSpace Ω] {N n : ℕ} {T : Type u_2} {Λ : Type u_3} {J : Type u_4} [Fintype T] [Fintype Λ] [Fintype J] (E : StateExperiment Ω N n T Λ J) (i : Fin N) (ω : Ω) {θ δ : ℝ} (hθ : 0 ≤ θ) (hδ : 0 ≤ δ) (t : ↑(HorizonTime ↑E.horizon)) (target_ceiling : ∀ s ≤ t, actualTarget E.own.data.toPhysicalNoiseData i ω ↑s ≤ θ) (innovation_bound : ∀ s ≤ t, |(actualScalarDriver E.own.data.toPhysicalNoiseData E.horizon i ω) s - (actualScalarDriver E.own.data.toPhysicalNoiseData E.horizon i ω) ⟨0, ⋯⟩| ≤ δ) :
          theorem MindFormal.Logic.own_inactive_writer {Ω : Type u_1} [MeasurableSpace Ω] {N n : ℕ} {T : Type u_2} {Λ : Type u_3} {J : Type u_4} [Fintype T] [Fintype Λ] [Fintype J] (E : StateExperiment Ω N n T Λ J) (ω : Ω) (t : ↑(Set.Icc 0 ↑E.horizon)) (i j : Fin N) (inactive : mindActivity ((ownGlobal E ω).state ↑t) i = 0) :
          assembledDrift E.mind.drift ((ownGlobal E ω).input ↑t) ((ownGlobal E ω).pulse ↑t) ((ownGlobal E ω).state ↑t) (Sum.inl (i, j)) = currentGain E.mind.drift ((ownGlobal E ω).input ↑t) ((ownGlobal E ω).state ↑t) * (1 - E.mind.β) * E.mind.presence (mindTrace ((ownGlobal E ω).state ↑t) j) * (E.mind.drive ((ownGlobal E ω).input (↑t) i) ((ownGlobal E ω).pulse (↑t) i) (mindValue ((ownGlobal E ω).state ↑t) i) - ∑ l : Fin N, mindRelation ((ownGlobal E ω).state ↑t) i l * mindActivity ((ownGlobal E ω).state ↑t) l)