Complete restoration and cue-reserve companion proofs at unrestricted original-source admission. All hypotheses are the named reference branches.
theorem
MindFormal.GivenHistoryRecords.reference_11_12_clause_3
{N n : ℕ}
{T : Type u_1}
{Λ : Type u_2}
{J : Type u_3}
[Fintype T]
[Fintype Λ]
(I : EquationInstance N n T Λ J)
{H : NNReal}
(R : LearningReference I.drift H)
(i : Fin N)
{need t t0 : ℝ}
(hn : 0 < need)
:
have ϑ := I.drift.activity.g + need;
have D := ϑ * ReferenceMath.referenceRest R i t0 - (1 - ϑ) * ReferenceMath.referenceUseful R i t0;
have U := (1 - ϑ) * (ReferenceMath.referenceUseful R i t - ReferenceMath.referenceUseful R i t0);
have L := ϑ * (ReferenceMath.referenceRest R i t0 - ReferenceMath.referenceRest R i t);
(need < R.target i t ↔ 0 < (1 - ϑ) * ReferenceMath.referenceUseful R i t - ϑ * ReferenceMath.referenceRest R i t) ∧ (need < R.target i t ↔ D < U + L) ∧ (ReferenceMath.breakRoute U L D = ReferenceMath.BreakRoute.load ↔ D < U + L ∧ D < L ∧ U ≤ D) ∧ (ReferenceMath.breakRoute U L D = ReferenceMath.BreakRoute.support ↔ D < U + L ∧ D < U ∧ L ≤ D) ∧ (ReferenceMath.breakRoute U L D = ReferenceMath.BreakRoute.both ↔ D < U + L ∧ (U ≤ D ∧ L ≤ D ∨ D < U ∧ D < L)) ∧ (ReferenceMath.breakRoute U L D = ReferenceMath.BreakRoute.none ↔ U + L ≤ D)
theorem
MindFormal.GivenHistoryRecords.reference_11_12_clause_4_load
{N n : ℕ}
{T : Type u_1}
{Λ : Type u_2}
{J : Type u_3}
[Fintype T]
[Fintype Λ]
(I : EquationInstance N n T Λ J)
{H : NNReal}
(R : LearningReference I.drift H)
(i : Fin N)
{need J0 Hinf Hexc χ Hb : ℝ}
(hn : 0 < need)
(hexc : 0 < Hexc)
(hχ : 0 < χ)
(profile :
∀ s ∈ Set.Icc 0 Hb,
ReferenceMath.referenceUseful R i s = J0 ∧ ReferenceMath.referenceRest R i s = Hinf + Hexc * Real.exp (-χ * s))
:
theorem
MindFormal.GivenHistoryRecords.reference_11_12_clause_4
{N n : ℕ}
{T : Type u_1}
{Λ : Type u_2}
{J : Type u_3}
[Fintype T]
[Fintype Λ]
(I : EquationInstance N n T Λ J)
{H : NNReal}
(R : LearningReference I.drift H)
(i : Fin N)
{need Hb γUlo γUhi γLlo γLhi : ℝ}
(hn : 0 < need)
(dJ dH : ℝ → ℝ)
(hJ : ∀ s ∈ Set.Icc 0 Hb, HasDerivAt (ReferenceMath.referenceUseful R i) (dJ s) s)
(hH : ∀ s ∈ Set.Icc 0 Hb, HasDerivAt (ReferenceMath.referenceRest R i) (dH s) s)
(rates :
∀ s ∈ Set.Icc 0 Hb,
γUlo ≤ (1 - (I.drift.activity.g + need)) * dJ s ∧ (1 - (I.drift.activity.g + need)) * dJ s ≤ γUhi ∧ γLlo ≤ -(I.drift.activity.g + need) * dH s ∧ -(I.drift.activity.g + need) * dH s ≤ γLhi)
:
have ϑ := I.drift.activity.g + need;
have D := ϑ * ReferenceMath.referenceRest R i 0 - (1 - ϑ) * ReferenceMath.referenceUseful R i 0;
have U := fun (t : ℝ) => (1 - ϑ) * (ReferenceMath.referenceUseful R i t - ReferenceMath.referenceUseful R i 0);
have L := fun (t : ℝ) => ϑ * (ReferenceMath.referenceRest R i 0 - ReferenceMath.referenceRest R i t);
(∀ t ∈ Set.Icc 0 Hb, γUlo * t ≤ U t ∧ U t ≤ γUhi * t ∧ γLlo * t ≤ L t ∧ L t ≤ γLhi * t) ∧ (∀ t ∈ Set.Icc 0 Hb, need < R.target i t ↔ D < U t + L t) ∧ (0 ≤ D → 0 < γUhi + γLhi → ∀ t ∈ Set.Icc 0 Hb, t ≤ D / (γUhi + γLhi) → R.target i t ≤ need) ∧ (0 < γUlo + γLlo → ∀ t ∈ Set.Icc 0 Hb, D / (γUlo + γLlo) < t → need < R.target i t) ∧ (0 ≤ D → 0 < γUhi → ∀ t ∈ Set.Icc 0 Hb, t ≤ D / γUhi → U t ≤ D) ∧ (0 < γUlo → ∀ t ∈ Set.Icc 0 Hb, D / γUlo < t → D < U t) ∧ (0 ≤ D → 0 < γLhi → ∀ t ∈ Set.Icc 0 Hb, t ≤ D / γLhi → L t ≤ D) ∧ (0 < γLlo → ∀ t ∈ Set.Icc 0 Hb, D / γLlo < t → D < L t)
theorem
MindFormal.GivenHistoryRecords.reference_11_12_clause_4_closed
{N n : ℕ}
{T : Type u_1}
{Λ : Type u_2}
{J : Type u_3}
[Fintype T]
[Fintype Λ]
(I : EquationInstance N n T Λ J)
{H : NNReal}
(R : LearningReference I.drift H)
(i : Fin N)
{need Jinf Jexc Hinf Hexc χ Hb : ℝ}
(hn : 0 < need)
(hq : I.drift.activity.g + need < 1)
(hJe : 0 ≤ Jexc)
(hHe : 0 ≤ Hexc)
(hχ : 0 < χ)
(profile :
∀ s ∈ Set.Icc 0 Hb,
ReferenceMath.referenceUseful R i s = Jinf - Jexc * Real.exp (-χ * s) ∧ ReferenceMath.referenceRest R i s = Hinf + Hexc * Real.exp (-χ * s))
:
have ϑ := I.drift.activity.g + need;
have D := ϑ * ReferenceMath.referenceRest R i 0 - (1 - ϑ) * ReferenceMath.referenceUseful R i 0;
have A := (1 - ϑ) * Jexc + ϑ * Hexc;
0 ≤ D →
(D < A → ∀ t ∈ Set.Icc 0 Hb, need < R.target i t ↔ Real.log (A / (A - D)) / χ < t) ∧ (A ≤ D → ∀ t ∈ Set.Icc 0 Hb, R.target i t ≤ need)
11.13: the restoration test and the accumulated reserve #
theorem
MindFormal.GivenHistoryRecords.reference_11_13_clause_6
{N n : ℕ}
{T : Type u_1}
{Λ : Type u_2}
{J : Type u_3}
[Fintype Λ]
(I : EquationInstance N n T Λ J)
{Γ : Type u_4}
(u q : Γ → ℝ → Fin N → ℝ)
(state : Γ → ℝ → MindState (Fin N) n T Λ)
(i : Fin N)
{need : ℝ}
(hn : 0 < need)
(hq : I.drift.activity.g + need < 1)
:
have d := I.drift;
have ϑ := d.activity.g + need;
have Jv := fun (γ : Γ) (s : ℝ) => assembledInputs d (u γ s) (q γ s) (state γ s);
have rest := fun (γ : Γ) (s : ℝ) => d.activity.σ + ∑ j ∈ Finset.univ.erase i, Jv γ s j;
have target := fun (γ : Γ) (s : ℝ) => normalizedTarget d.activity.σ d.activity.g (Jv γ s) i;
(∀ (γ : Γ) (s : ℝ), need < target γ s ↔ 0 < (1 - ϑ) * Jv γ s i - ϑ * rest γ s) ∧ (∀ (γ : Γ) (s : ℝ), 0 < Jv γ s i → (need < target γ s ↔ 0 < Real.log ((1 - ϑ) * Jv γ s i / (ϑ * rest γ s)))) ∧ ((∀ (γ : Γ) (s : ℝ), target γ s ≤ need) ↔ ∀ (γ : Γ) (s : ℝ), (1 - ϑ) * Jv γ s i - ϑ * rest γ s ≤ 0)
11.14: the critical count, pullback and recruitment, the support tests #
theorem
MindFormal.GivenHistoryRecords.reference_11_12_clause_4_events
{N n : ℕ}
{T : Type u_1}
{Λ : Type u_2}
{J : Type u_3}
[Fintype T]
[Fintype Λ]
(I : EquationInstance N n T Λ J)
(hI : GroupsWorld.HSInstanceAdmission I)
{H : NNReal}
(R : LearningReference I.drift H)
(i : Fin N)
{need : ℝ}
(hn : 0 < need)
{K : ℕ}
(e : ℕ → ℝ)
(he0 : e 0 = 0)
(hlt : ∀ (k : ℕ), e k < e (k + 1))
(hK : e K ≤ ↑H)
(w : ℕ → ℝ → Fin N → ℝ)
(q : ℕ → Fin N → ℝ)
(hw : ∀ k < K, ∀ (j : Fin N), AbsolutelyContinuousOnInterval (fun (s : ℝ) => w k s j) (e k) (e (k + 1)))
(hwnn : ∀ k < K, ∀ s ∈ Set.Icc (e k) (e (k + 1)), 0 ≤ w k s)
(fixed : ∀ k < K, ∀ s ∈ Set.Ioo (e k) (e (k + 1)), R.input s = w k s ∧ R.mode s = q k)
(γUlo γUhi γLlo γLhi : ℝ → ℝ)
(hUlo : IntervalIntegrable γUlo MeasureTheory.volume 0 (e K))
(hUhi : IntervalIntegrable γUhi MeasureTheory.volume 0 (e K))
(hLlo : IntervalIntegrable γLlo MeasureTheory.volume 0 (e K))
(hLhi : IntervalIntegrable γLhi MeasureTheory.volume 0 (e K))
(jUlo jUhi jLlo jLhi : ℕ → ℝ)
(rates :
∀ k < K,
∀ᵐ (s : ℝ), s ∈ Set.Icc (e k) (e (k + 1)) →
γUlo s ≤ (1 - (I.drift.activity.g + need)) * deriv (ReferenceMath.referencePathUseful R (w k) (q k) i) s ∧ (1 - (I.drift.activity.g + need)) * deriv (ReferenceMath.referencePathUseful R (w k) (q k) i) s ≤ γUhi s ∧ γLlo s ≤ -(I.drift.activity.g + need) * deriv (ReferenceMath.referencePathRest R (w k) (q k) i) s ∧ -(I.drift.activity.g + need) * deriv (ReferenceMath.referencePathRest R (w k) (q k) i) s ≤ γLhi s)
(jumps :
∀ (k : ℕ),
0 < k →
k < K →
jUlo k ≤ (1 - (I.drift.activity.g + need)) * (ReferenceMath.referencePathUseful R (w k) (q k) i (e k) - ReferenceMath.referencePathUseful R (w (k - 1)) (q (k - 1)) i (e k)) ∧ (1 - (I.drift.activity.g + need)) * (ReferenceMath.referencePathUseful R (w k) (q k) i (e k) - ReferenceMath.referencePathUseful R (w (k - 1)) (q (k - 1)) i (e k)) ≤ jUhi k ∧ jLlo k ≤ -(I.drift.activity.g + need) * (ReferenceMath.referencePathRest R (w k) (q k) i (e k) - ReferenceMath.referencePathRest R (w (k - 1)) (q (k - 1)) i (e k)) ∧ -(I.drift.activity.g + need) * (ReferenceMath.referencePathRest R (w k) (q k) i (e k) - ReferenceMath.referencePathRest R (w (k - 1)) (q (k - 1)) i (e k)) ≤ jLhi k)
:
have d := I.drift;
have ϑ := d.activity.g + need;
have Tk := fun (k : ℕ) (t : ℝ) =>
normalizedTarget d.activity.σ d.activity.g (assembledInputs d (w k t) (q k) ((ContinuousMap.IccExtend ⋯ R.path) t)) i;
have J0 := ReferenceMath.referencePathUseful R (w 0) (q 0) i 0;
have H0 := ReferenceMath.referencePathRest R (w 0) (q 0) i 0;
have D := ϑ * H0 - (1 - ϑ) * J0;
have U := fun (k : ℕ) (t : ℝ) => (1 - ϑ) * (ReferenceMath.referencePathUseful R (w k) (q k) i t - J0);
have L := fun (k : ℕ) (t : ℝ) => ϑ * (H0 - ReferenceMath.referencePathRest R (w k) (q k) i t);
have Ulo := fun (k : ℕ) (t : ℝ) => (∫ (s : ℝ) in 0..t, γUlo s) + ∑ m ∈ Finset.Ioc 0 k, jUlo m;
have Uhi := fun (k : ℕ) (t : ℝ) => (∫ (s : ℝ) in 0..t, γUhi s) + ∑ m ∈ Finset.Ioc 0 k, jUhi m;
have Llo := fun (k : ℕ) (t : ℝ) => (∫ (s : ℝ) in 0..t, γLlo s) + ∑ m ∈ Finset.Ioc 0 k, jLlo m;
have Lhi := fun (k : ℕ) (t : ℝ) => (∫ (s : ℝ) in 0..t, γLhi s) + ∑ m ∈ Finset.Ioc 0 k, jLhi m;
∀ k < K,
∀ t ∈ Set.Icc (e k) (e (k + 1)),
(Ulo k t ≤ U k t ∧ U k t ≤ Uhi k t) ∧ (Llo k t ≤ L k t ∧ L k t ≤ Lhi k t) ∧ (need < Tk k t ↔ D < U k t + L k t) ∧ (Uhi k t + Lhi k t ≤ D → Tk k t ≤ need) ∧ (D < Ulo k t + Llo k t → need < Tk k t) ∧ (R.input t = w k t ∧ R.mode t = q k → R.target i t = Tk k t) ∧ (Uhi k t ≤ D → U k t ≤ D) ∧ (D < Ulo k t → D < U k t) ∧ (Lhi k t ≤ D → L k t ≤ D) ∧ (D < Llo k t → D < L k t)
theorem
MindFormal.GivenHistoryRecords.reference_11_12_clause_4_actual
{N n : ℕ}
{T : Type u_1}
{Λ : Type u_2}
{J : Type u_3}
[Fintype T]
[Fintype Λ]
(I : EquationInstance N n T Λ J)
(hI : GroupsWorld.HSInstanceAdmission I)
{H : NNReal}
(R : LearningReference I.drift H)
(i : Fin N)
{need : ℝ}
(hn : 0 < need)
{K : ℕ}
(e : ℕ → ℝ)
(he0 : e 0 = 0)
(hlt : ∀ (k : ℕ), e k < e (k + 1))
(hK : e K ≤ ↑H)
(w : ℕ → ℝ → Fin N → ℝ)
(q : ℕ → Fin N → ℝ)
(hw : ∀ k < K, ∀ (j : Fin N), AbsolutelyContinuousOnInterval (fun (s : ℝ) => w k s j) (e k) (e (k + 1)))
(hwnn : ∀ k < K, ∀ s ∈ Set.Icc (e k) (e (k + 1)), 0 ≤ w k s)
(fixed : ∀ k < K, ∀ s ∈ Set.Ioo (e k) (e (k + 1)), R.input s = w k s ∧ R.mode s = q k)
(γUlo γUhi γLlo γLhi : ℝ → ℝ)
(hUlo : IntervalIntegrable γUlo MeasureTheory.volume 0 (e K))
(hUhi : IntervalIntegrable γUhi MeasureTheory.volume 0 (e K))
(hLlo : IntervalIntegrable γLlo MeasureTheory.volume 0 (e K))
(hLhi : IntervalIntegrable γLhi MeasureTheory.volume 0 (e K))
(aUlo aUhi aLlo aLhi bUlo bUhi bLlo bLhi : ℕ → ℝ)
(rates :
∀ k < K,
∀ᵐ (s : ℝ), s ∈ Set.Icc (e k) (e (k + 1)) →
γUlo s ≤ (1 - (I.drift.activity.g + need)) * deriv (ReferenceMath.referencePathUseful R (w k) (q k) i) s ∧ (1 - (I.drift.activity.g + need)) * deriv (ReferenceMath.referencePathUseful R (w k) (q k) i) s ≤ γUhi s ∧ γLlo s ≤ -(I.drift.activity.g + need) * deriv (ReferenceMath.referencePathRest R (w k) (q k) i) s ∧ -(I.drift.activity.g + need) * deriv (ReferenceMath.referencePathRest R (w k) (q k) i) s ≤ γLhi s)
(outJump :
∀ k < K,
aUlo k ≤ (1 - (I.drift.activity.g + need)) * (ReferenceMath.referencePathUseful R (w k) (q k) i (e k) - ReferenceMath.referenceUseful R i (e k)) ∧ (1 - (I.drift.activity.g + need)) * (ReferenceMath.referencePathUseful R (w k) (q k) i (e k) - ReferenceMath.referenceUseful R i (e k)) ≤ aUhi k ∧ aLlo k ≤ -(I.drift.activity.g + need) * (ReferenceMath.referencePathRest R (w k) (q k) i (e k) - ReferenceMath.referenceRest R i (e k)) ∧ -(I.drift.activity.g + need) * (ReferenceMath.referencePathRest R (w k) (q k) i (e k) - ReferenceMath.referenceRest R i (e k)) ≤ aLhi k)
(inJump :
∀ (k : ℕ),
0 < k →
k ≤ K →
bUlo k ≤ (1 - (I.drift.activity.g + need)) * (ReferenceMath.referenceUseful R i (e k) - ReferenceMath.referencePathUseful R (w (k - 1)) (q (k - 1)) i (e k)) ∧ (1 - (I.drift.activity.g + need)) * (ReferenceMath.referenceUseful R i (e k) - ReferenceMath.referencePathUseful R (w (k - 1)) (q (k - 1)) i (e k)) ≤ bUhi k ∧ bLlo k ≤ -(I.drift.activity.g + need) * (ReferenceMath.referenceRest R i (e k) - ReferenceMath.referencePathRest R (w (k - 1)) (q (k - 1)) i (e k)) ∧ -(I.drift.activity.g + need) * (ReferenceMath.referenceRest R i (e k) - ReferenceMath.referencePathRest R (w (k - 1)) (q (k - 1)) i (e k)) ≤ bLhi k)
:
have ϑ := I.drift.activity.g + need;
have D := ϑ * ReferenceMath.referenceRest R i 0 - (1 - ϑ) * ReferenceMath.referenceUseful R i 0;
have U := fun (t : ℝ) => (1 - ϑ) * (ReferenceMath.referenceUseful R i t - ReferenceMath.referenceUseful R i 0);
have L := fun (t : ℝ) => ϑ * (ReferenceMath.referenceRest R i 0 - ReferenceMath.referenceRest R i t);
have acc := fun (γ : ℝ → ℝ) (a b : ℕ → ℝ) (kA kB : ℕ) (t : ℝ) =>
(∫ (s : ℝ) in 0..t, γ s) + ∑ m ∈ Finset.range kA, a m + ∑ m ∈ Finset.Ioc 0 kB, b m;
U 0 = 0 ∧ L 0 = 0 ∧ (∀ (t : ℝ), need < R.target i t ↔ D < U t + L t) ∧ (∀ k < K,
∀ t ∈ Set.Ioo (e k) (e (k + 1)),
(acc γUlo aUlo bUlo (k + 1) k t ≤ U t ∧ U t ≤ acc γUhi aUhi bUhi (k + 1) k t) ∧ (acc γLlo aLlo bLlo (k + 1) k t ≤ L t ∧ L t ≤ acc γLhi aLhi bLhi (k + 1) k t) ∧ (acc γUhi aUhi bUhi (k + 1) k t + acc γLhi aLhi bLhi (k + 1) k t ≤ D → R.target i t ≤ need) ∧ (D < acc γUlo aUlo bUlo (k + 1) k t + acc γLlo aLlo bLlo (k + 1) k t → need < R.target i t) ∧ (acc γUhi aUhi bUhi (k + 1) k t ≤ D → U t ≤ D) ∧ (D < acc γUlo aUlo bUlo (k + 1) k t → D < U t) ∧ (acc γLhi aLhi bLhi (k + 1) k t ≤ D → L t ≤ D) ∧ (D < acc γLlo aLlo bLlo (k + 1) k t → D < L t)) ∧ ∀ (k : ℕ),
0 < k →
k ≤ K →
(acc γUlo aUlo bUlo k k (e k) ≤ U (e k) ∧ U (e k) ≤ acc γUhi aUhi bUhi k k (e k)) ∧ (acc γLlo aLlo bLlo k k (e k) ≤ L (e k) ∧ L (e k) ≤ acc γLhi aLhi bLhi k k (e k)) ∧ (acc γUhi aUhi bUhi k k (e k) + acc γLhi aLhi bLhi k k (e k) ≤ D → R.target i (e k) ≤ need) ∧ (D < acc γUlo aUlo bUlo k k (e k) + acc γLlo aLlo bLlo k k (e k) → need < R.target i (e k)) ∧ (acc γUhi aUhi bUhi k k (e k) ≤ D → U (e k) ≤ D) ∧ (D < acc γUlo aUlo bUlo k k (e k) → D < U (e k)) ∧ (acc γLhi aLhi bLhi k k (e k) ≤ D → L (e k) ≤ D) ∧ (D < acc γLlo aLlo bLlo k k (e k) → D < L (e k))
theorem
MindFormal.GivenHistoryRecords.reference_11_13_clause_6_accumulated
{N n : ℕ}
{T : Type u_1}
{Λ : Type u_2}
{J : Type u_3}
[Fintype T]
[Fintype Λ]
(I : EquationInstance N n T Λ J)
(hI : GroupsWorld.HSInstanceAdmission I)
{H : NNReal}
(R : LearningReference I.drift H)
(i : Fin N)
{need : ℝ}
(hn : 0 < need)
{K : ℕ}
(e : ℕ → ℝ)
(he0 : e 0 = 0)
(hlt : ∀ (k : ℕ), e k < e (k + 1))
(hK : e K ≤ ↑H)
(w : ℕ → ℝ → Fin N → ℝ)
(hw : ∀ k < K, ∀ (j : Fin N), AbsolutelyContinuousOnInterval (fun (s : ℝ) => w k s j) (e k) (e (k + 1)))
(hwnn : ∀ k < K, ∀ s ∈ Set.Icc (e k) (e (k + 1)), 0 ≤ w k s)
(world : ∀ k < K, ∀ s ∈ Set.Ioo (e k) (e (k + 1)), R.input s = w k s)
:
have d := I.drift;
have ϑ := d.activity.g + need;
have st := fun (s : ℝ) => (ContinuousMap.IccExtend ⋯ R.path) s;
have read := fun (j : Fin N) (s : ℝ) => assembledInputs d (R.input s) (ReferenceMath.attendedMode j) (st s);
have target := fun (j : Fin N) (s : ℝ) => normalizedTarget d.activity.σ d.activity.g (read j s) i;
have S := fun (j : Fin N) (s : ℝ) => (1 - ϑ) * read j s i - ϑ * (d.activity.σ + ∑ l ∈ Finset.univ.erase i, read j s l);
have readk := fun (j : Fin N) (k : ℕ) (s : ℝ) => assembledInputs d (w k s) (ReferenceMath.attendedMode j) (st s);
have targetk := fun (j : Fin N) (k : ℕ) (s : ℝ) => normalizedTarget d.activity.σ d.activity.g (readk j k s) i;
have G := fun (j : Fin N) (k : ℕ) (t : ℝ) =>
(1 - ϑ) * ReferenceMath.referencePathUseful R (w k) (ReferenceMath.attendedMode j) i t - ϑ * ReferenceMath.referencePathRest R (w k) (ReferenceMath.attendedMode j) i t;
have Lacc := fun (j : Fin N) (k : ℕ) (t : ℝ) =>
(G j 0 0 + ∫ (s : ℝ) in 0..t, deriv (S j) s) + ∑ m ∈ Finset.Ioc 0 k, (G j m (e m) - G j (m - 1) (e m));
(∀ (j : Fin N), IntervalIntegrable (deriv (S j)) MeasureTheory.volume 0 (e K)) ∧ ∀ k < K,
∀ t ∈ Set.Icc (e k) (e (k + 1)),
(∀ (j : Fin N), G j k t = Lacc j k t) ∧ (∀ (j : Fin N), need < targetk j k t ↔ 0 < Lacc j k t) ∧ (∀ (Q : Finset (Fin N)) (hQ : Q.Nonempty),
(∃ j ∈ Q, need < targetk j k t) ↔ 0 < Q.sup' hQ fun (j : Fin N) => Lacc j k t) ∧ (R.input t = w k t → ∀ (j : Fin N), S j t = G j k t ∧ target j t = targetk j k t)
theorem
MindFormal.GivenHistoryRecords.reference_11_13_clause_6_actual
{N n : ℕ}
{T : Type u_1}
{Λ : Type u_2}
{J : Type u_3}
[Fintype T]
[Fintype Λ]
(I : EquationInstance N n T Λ J)
(hI : GroupsWorld.HSInstanceAdmission I)
{H : NNReal}
(R : LearningReference I.drift H)
(i : Fin N)
{need : ℝ}
(hn : 0 < need)
{K : ℕ}
(e : ℕ → ℝ)
(he0 : e 0 = 0)
(hlt : ∀ (k : ℕ), e k < e (k + 1))
(hK : e K ≤ ↑H)
(w : ℕ → ℝ → Fin N → ℝ)
(hw : ∀ k < K, ∀ (j : Fin N), AbsolutelyContinuousOnInterval (fun (s : ℝ) => w k s j) (e k) (e (k + 1)))
(hwnn : ∀ k < K, ∀ s ∈ Set.Icc (e k) (e (k + 1)), 0 ≤ w k s)
(world : ∀ k < K, ∀ s ∈ Set.Ioo (e k) (e (k + 1)), R.input s = w k s)
:
have d := I.drift;
have ϑ := d.activity.g + need;
have st := fun (s : ℝ) => (ContinuousMap.IccExtend ⋯ R.path) s;
have read := fun (j : Fin N) (s : ℝ) => assembledInputs d (R.input s) (ReferenceMath.attendedMode j) (st s);
have target := fun (j : Fin N) (s : ℝ) => normalizedTarget d.activity.σ d.activity.g (read j s) i;
have S := fun (j : Fin N) (s : ℝ) => (1 - ϑ) * read j s i - ϑ * (d.activity.σ + ∑ l ∈ Finset.univ.erase i, read j s l);
have G := fun (j : Fin N) (k : ℕ) (t : ℝ) =>
(1 - ϑ) * ReferenceMath.referencePathUseful R (w k) (ReferenceMath.attendedMode j) i t - ϑ * ReferenceMath.referencePathRest R (w k) (ReferenceMath.attendedMode j) i t;
have jout := fun (j : Fin N) (m : ℕ) => G j m (e m) - S j (e m);
have jin := fun (j : Fin N) (m : ℕ) => S j (e m) - G j (m - 1) (e m);
have Lacc := fun (j : Fin N) (kA kB : ℕ) (t : ℝ) =>
(S j 0 + ∫ (s : ℝ) in 0..t, deriv (S j) s) + ∑ m ∈ Finset.range kA, jout j m + ∑ m ∈ Finset.Ioc 0 kB, jin j m;
(∀ (j : Fin N), IntervalIntegrable (deriv (S j)) MeasureTheory.volume 0 (e K)) ∧ (∀ k < K, ∀ t ∈ Set.Ioo (e k) (e (k + 1)), ∀ (j : Fin N), S j t = Lacc j (k + 1) k t) ∧ (∀ (k : ℕ), 0 < k → k ≤ K → ∀ (j : Fin N), S j (e k) = Lacc j k k (e k)) ∧ (∀ (j : Fin N) (t : ℝ), need < target j t ↔ 0 < S j t) ∧ ∀ (t : ℝ) (Q : Finset (Fin N)) (hQ : Q.Nonempty),
(∃ j ∈ Q, need < target j t) ↔ 0 < Q.sup' hQ fun (j : Fin N) => S j t
theorem
MindFormal.GivenHistoryRecords.reference_11_13_clause_6_actual_log
{N n : ℕ}
{T : Type u_1}
{Λ : Type u_2}
{J : Type u_3}
[Fintype T]
[Fintype Λ]
(I : EquationInstance N n T Λ J)
(hI : GroupsWorld.HSInstanceAdmission I)
{H : NNReal}
(R : LearningReference I.drift H)
(i j : Fin N)
{need : ℝ}
(hn : 0 < need)
(hq1 : I.drift.activity.g + need < 1)
{K : ℕ}
(e : ℕ → ℝ)
(he0 : e 0 = 0)
(hlt : ∀ (k : ℕ), e k < e (k + 1))
(hK : e K ≤ ↑H)
(w : ℕ → ℝ → Fin N → ℝ)
(hw : ∀ k < K, ∀ (j : Fin N), AbsolutelyContinuousOnInterval (fun (s : ℝ) => w k s j) (e k) (e (k + 1)))
(hwnn : ∀ k < K, ∀ s ∈ Set.Icc (e k) (e (k + 1)), 0 ≤ w k s)
(world : ∀ k < K, ∀ s ∈ Set.Ioo (e k) (e (k + 1)), R.input s = w k s)
(hpos :
∀ k < K,
∀ t ∈ Set.Icc (e k) (e (k + 1)), 0 < ReferenceMath.referencePathUseful R (w k) (ReferenceMath.attendedMode j) i t)
:
have d := I.drift;
have ϑ := d.activity.g + need;
have st := fun (s : ℝ) => (ContinuousMap.IccExtend ⋯ R.path) s;
have read := fun (s : ℝ) => assembledInputs d (R.input s) (ReferenceMath.attendedMode j) (st s);
have target := fun (s : ℝ) => normalizedTarget d.activity.σ d.activity.g (read s) i;
have ℓ := fun (s : ℝ) => Real.log ((1 - ϑ) * read s i / (ϑ * (d.activity.σ + ∑ l ∈ Finset.univ.erase i, read s l)));
have Jk := fun (k : ℕ) => ReferenceMath.referencePathUseful R (w k) (ReferenceMath.attendedMode j) i;
have Hk := fun (k : ℕ) => ReferenceMath.referencePathRest R (w k) (ReferenceMath.attendedMode j) i;
have Gl := fun (k : ℕ) (t : ℝ) => Real.log ((1 - ϑ) * Jk k t / (ϑ * Hk k t));
have jout := fun (m : ℕ) => Gl m (e m) - ℓ (e m);
have jin := fun (m : ℕ) => ℓ (e m) - Gl (m - 1) (e m);
have Lacc := fun (kA kB : ℕ) (t : ℝ) =>
(ℓ 0 + ∫ (s : ℝ) in 0..t, deriv ℓ s) + ∑ m ∈ Finset.range kA, jout m + ∑ m ∈ Finset.Ioc 0 kB, jin m;
IntervalIntegrable (deriv ℓ) MeasureTheory.volume 0 (e K) ∧ (∀ k < K, ∀ᵐ (s : ℝ), s ∈ Set.Ioo (e k) (e (k + 1)) → deriv ℓ s = deriv (Jk k) s / Jk k s - deriv (Hk k) s / Hk k s) ∧ (∀ k < K, ∀ t ∈ Set.Ioo (e k) (e (k + 1)), ℓ t = Lacc (k + 1) k t) ∧ (∀ (k : ℕ), 0 < k → k ≤ K → ℓ (e k) = Lacc k k (e k)) ∧ ∀ (t : ℝ), 0 < read t i → (need < target t ↔ 0 < ℓ t)
theorem
MindFormal.GivenHistoryRecords.reference_11_13_clause_6_log
{N n : ℕ}
{T : Type u_1}
{Λ : Type u_2}
{J : Type u_3}
[Fintype T]
[Fintype Λ]
(I : EquationInstance N n T Λ J)
(hI : GroupsWorld.HSInstanceAdmission I)
{H : NNReal}
(R : LearningReference I.drift H)
(i j : Fin N)
{need : ℝ}
(hn : 0 < need)
(hq1 : I.drift.activity.g + need < 1)
{K : ℕ}
(e : ℕ → ℝ)
(he0 : e 0 = 0)
(hlt : ∀ (k : ℕ), e k < e (k + 1))
(hK : e K ≤ ↑H)
(w : ℕ → ℝ → Fin N → ℝ)
(hw : ∀ k < K, ∀ (j : Fin N), AbsolutelyContinuousOnInterval (fun (s : ℝ) => w k s j) (e k) (e (k + 1)))
(hwnn : ∀ k < K, ∀ s ∈ Set.Icc (e k) (e (k + 1)), 0 ≤ w k s)
(world : ∀ k < K, ∀ s ∈ Set.Ioo (e k) (e (k + 1)), R.input s = w k s)
(hpos :
∀ k < K,
∀ t ∈ Set.Icc (e k) (e (k + 1)), 0 < ReferenceMath.referencePathUseful R (w k) (ReferenceMath.attendedMode j) i t)
:
have d := I.drift;
have ϑ := d.activity.g + need;
have st := fun (s : ℝ) => (ContinuousMap.IccExtend ⋯ R.path) s;
have read := fun (s : ℝ) => assembledInputs d (R.input s) (ReferenceMath.attendedMode j) (st s);
have target := fun (s : ℝ) => normalizedTarget d.activity.σ d.activity.g (read s) i;
have ℓ := fun (s : ℝ) => Real.log ((1 - ϑ) * read s i / (ϑ * (d.activity.σ + ∑ l ∈ Finset.univ.erase i, read s l)));
have targetk := fun (k : ℕ) (s : ℝ) =>
normalizedTarget d.activity.σ d.activity.g (assembledInputs d (w k s) (ReferenceMath.attendedMode j) (st s)) i;
have Jk := fun (k : ℕ) => ReferenceMath.referencePathUseful R (w k) (ReferenceMath.attendedMode j) i;
have Hk := fun (k : ℕ) => ReferenceMath.referencePathRest R (w k) (ReferenceMath.attendedMode j) i;
have Gl := fun (k : ℕ) (t : ℝ) => Real.log ((1 - ϑ) * Jk k t / (ϑ * Hk k t));
have Lacc := fun (k : ℕ) (t : ℝ) =>
(Gl 0 0 + ∫ (s : ℝ) in 0..t, deriv ℓ s) + ∑ m ∈ Finset.Ioc 0 k, (Gl m (e m) - Gl (m - 1) (e m));
IntervalIntegrable (deriv ℓ) MeasureTheory.volume 0 (e K) ∧ (∀ k < K, ∀ᵐ (s : ℝ), s ∈ Set.Ioo (e k) (e (k + 1)) → deriv ℓ s = deriv (Jk k) s / Jk k s - deriv (Hk k) s / Hk k s) ∧ ∀ k < K,
∀ t ∈ Set.Icc (e k) (e (k + 1)),
Gl k t = Lacc k t ∧ (need < targetk k t ↔ 0 < Lacc k t) ∧ (R.input t = w k t → ℓ t = Gl k t ∧ target t = targetk k t)
def
MindFormal.GivenHistoryRecords.Restoration
{N n : ℕ}
{T : Type u_1}
{Λ : Type u_2}
{J : Type u_3}
[Fintype T]
[Fintype Λ]
(I : EquationInstance N n T Λ J)
:
All SB3/SB5--SB7 rate, closed-profile, piece and actual-event companions.
Equations
- One or more equations did not get rendered due to their size.
Instances For
theorem
MindFormal.GivenHistoryRecords.restoration_proved
{N n : ℕ}
{T : Type u_1}
{Λ : Type u_2}
{J : Type u_3}
[Fintype T]
[Fintype Λ]
(I : EquationInstance N n T Λ J)
(hI : GroupsWorld.HSInstanceAdmission I)
:
def
MindFormal.GivenHistoryRecords.CueReserve
{N n : ℕ}
{T : Type u_1}
{Λ : Type u_2}
{J : Type u_3}
[Fintype T]
[Fintype Λ]
(I : EquationInstance N n T Λ J)
:
All SI8 signed/log, accumulated, actual-event and continuation-family companions.
Equations
- One or more equations did not get rendered due to their size.
Instances For
theorem
MindFormal.GivenHistoryRecords.cuereserve_proved
{N n : ℕ}
{T : Type u_1}
{Λ : Type u_2}
{J : Type u_3}
[Fintype T]
[Fintype Λ]
(I : EquationInstance N n T Λ J)
(hI : GroupsWorld.HSInstanceAdmission I)
: