def
MindFormal.CurrentSegmentProgram.completionDuration
{A : Type u_1}
[Fintype A]
[Nonempty A]
{H : ℝ}
{N n : A → ℕ}
{T : A → Type u_2}
{Λ : A → Type u_3}
[(a : A) → Fintype (T a)]
[(a : A) → Fintype (Λ a)]
{Memory : Type u_4}
{Source : Type u_5}
[MeasurableSpace Memory]
[MeasurableSpace Source]
(P : CurrentSegmentProgram A H N n T Λ Memory Source)
:
The computed elapsed time until all declared participants' first V acts, or the deadline. The empty instrument has zero elapsed duration.
Equations
- P.completionDuration [] x✝ = 0
- P.completionDuration (a :: rest) x✝ = max (P.firstCompletion (a, false) x✝) (P.completionDuration rest x✝)
Instances For
theorem
MindFormal.CurrentSegmentProgram.completionDuration_measurable
{A : Type u_1}
[Fintype A]
[Nonempty A]
{H : ℝ}
{N n : A → ℕ}
{T : A → Type u_2}
{Λ : A → Type u_3}
[(a : A) → Fintype (T a)]
[(a : A) → Fintype (Λ a)]
{Memory : Type u_4}
{Source : Type u_5}
[MeasurableSpace Memory]
[MeasurableSpace Source]
(P : CurrentSegmentProgram A H N n T Λ Memory Source)
(participants : List A)
:
Measurable (P.completionDuration participants)
theorem
MindFormal.CurrentSegmentProgram.completionDuration_le
{A : Type u_1}
[Fintype A]
[Nonempty A]
{H : ℝ}
{N n : A → ℕ}
{T : A → Type u_2}
{Λ : A → Type u_3}
[(a : A) → Fintype (T a)]
[(a : A) → Fintype (Λ a)]
{Memory : Type u_4}
{Source : Type u_5}
[MeasurableSpace Memory]
[MeasurableSpace Source]
(P : CurrentSegmentProgram A H N n T Λ Memory Source)
(participants : List A)
(p : P.State × Source)
:
theorem
MindFormal.HomogeneousGroupWorld.firstCompletion_actual
{Ω : Type u_1}
{A : Type u_2}
[MeasurableSpace Ω]
[Fintype A]
[Nonempty A]
{N n : A → ℕ}
{T : A → Type u_3}
{Λ : A → Type u_4}
[(a : A) → Fintype (T a)]
[(a : A) → Fintype (Λ a)]
{J : Type u_5}
[Fintype J]
{I : (a : A) → EquationInstance (N a) (n a) (T a) (Λ a) J}
{G : EquationGround Ω J}
(W : HomogeneousGroupWorld I G)
(admission : ∀ (a : A), InstanceAdmission (I a))
(constant : (a : A) → ConstantInstanceNoise (I a))
(complete : CompletedEquationGround G)
(start : (a : A) → EquationStart G (N a) (n a) (T a) (Λ a))
(τ : Ω → NNReal)
(H : NNReal)
(d : A × Bool)
:
(W.group admission constant complete start).cappedNextNative τ H d =ᵐ[G.μ] fun (ω : Ω) =>
τ ω + (W.program admission constant complete start H).firstCompletion d
(W.currentState admission constant complete start τ ω, BrownianFiltration.continuousFuture (Sum.elim G.brownian W.world.privateSource) τ ω)
A computed first-event/deadline duration is the original next native time capped at the deadline, less the entering time. Deferral stays absent; an event exactly at the deadline is retained with its original mark.
theorem
MindFormal.HomogeneousGroupWorld.completionDuration_actual
{Ω : Type u_1}
{A : Type u_2}
[MeasurableSpace Ω]
[Fintype A]
[Nonempty A]
{N n : A → ℕ}
{T : A → Type u_3}
{Λ : A → Type u_4}
[(a : A) → Fintype (T a)]
[(a : A) → Fintype (Λ a)]
{J : Type u_5}
[Fintype J]
{I : (a : A) → EquationInstance (N a) (n a) (T a) (Λ a) J}
{G : EquationGround Ω J}
(W : HomogeneousGroupWorld I G)
(admission : ∀ (a : A), InstanceAdmission (I a))
(constant : (a : A) → ConstantInstanceNoise (I a))
(complete : CompletedEquationGround G)
(start : (a : A) → EquationStart G (N a) (n a) (T a) (Λ a))
(τ : Ω → NNReal)
(H : NNReal)
(participants : List A)
:
(W.group admission constant complete start).completion τ H participants =ᵐ[G.μ] fun (ω : Ω) =>
τ ω + (W.program admission constant complete start H).completionDuration participants
(W.currentState admission constant complete start τ ω, BrownianFiltration.continuousFuture (Sum.elim G.brownian W.world.privateSource) τ ω)
The computed duration of the all-participant instrument is exactly the elapsed time to the original declared completion, on original sources.