MindFormal v1.0.0One Mind

MindFormal.Chapters.Ch06.ResponsiveConsequences.FiniteClocks

theorem MindFormal.ResponsiveConsequences.affine_halfline (L γ a t : ℝ) :
L + γ * (t - a) ≤ 0 ↔ (γ = 0 → L ≤ 0) ∧ (γ < 0 → a - L / γ ≤ t) ∧ (0 < γ → t ≤ a - L / γ)

SR5's three affine branches. A zero slope contributes only its entering sign. The two other branches have the printed quotient endpoint.

theorem MindFormal.ResponsiveConsequences.finite_loss_interval {ι : Type u_1} (reads : Finset ι) (L γ : ι → ℝ) (a b : ℝ) :
let lowerSet := insert a (Finset.image (fun (i : ι) => a - L i / γ i) ({i ∈ reads | γ i < 0})); let upperSet := insert b (Finset.image (fun (i : ι) => a - L i / γ i) ({i ∈ reads | 0 < γ i})); have left := lowerSet.max' ⋯; have right := upperSet.min' ⋯; (∀ (t : ℝ), (t ∈ Set.Icc a b ∧ ∀ i ∈ reads, L i + γ i * (t - a) ≤ 0) ↔ (∀ i ∈ reads, γ i = 0 → L i ≤ 0) ∧ t ∈ Set.Icc left right) ∧ ((∀ i ∈ reads, γ i = 0 → L i ≤ 0) → left ≤ right → IsLeast {t : ℝ | t ∈ Set.Icc a b ∧ ∀ i ∈ reads, L i + γ i * (t - a) ≤ 0} left) ∧ ((∀ i ∈ reads, γ i = 0 → L i ≤ 0) → left ≤ right → left < b → IsLeast {t : ℝ | t ∈ Set.Ico a b ∧ ∀ i ∈ reads, L i + γ i * (t - a) ≤ 0} left)

Finite arithmetic loss interval for all currently available reads. The maximum and minimum are over actual quotient and segment endpoints; no optimization over an unknown trajectory is left in this formula.

theorem MindFormal.ResponsiveConsequences.finite_return_interval {ι : Type u_1} (reads : Finset ι) (L γ : ι → ℝ) (a t : ℝ) :
(∃ i ∈ reads, 0 < L i + γ i * (t - a)) ↔ ∃ i ∈ reads, γ i = 0 ∧ 0 < L i ∨ γ i < 0 ∧ t < a - L i / γ i ∨ 0 < γ i ∧ a - L i / γ i < t

Return is the finite union of the complementary strict half-intervals. Availability is a finite set at this piece; a newly available read uses its own entering value. Actual event values are tested separately below.

theorem MindFormal.ResponsiveConsequences.affine_profile (e L γ jump : ℕ → ℝ) (S : ℝ → ℝ) (piece : ∀ (k : ℕ), ∀ t ∈ Set.Ico (e k) (e (k + 1)), S t = L k + γ k * (t - e k)) (enter : ∀ (k : ℕ), S (e k) = L k) (boundary : ∀ (k : ℕ), L (k + 1) = L k + γ k * (e (k + 1) - e k) + jump (k + 1)) :
(∀ (k : ℕ), ∀ t ∈ Set.Ico (e k) (e (k + 1)), S t = L k + γ k * (t - e k)) ∧ (∀ (k : ℕ), L (k + 1) = L k + γ k * (e (k + 1) - e k) + jump (k + 1)) ∧ (∀ (k : ℕ), γ k ≠ 0 → L k + γ k * (e k - L k / γ k - e k) = 0) ∧ ∀ (k : ℕ), (0 < S (e k) ↔ 0 < L k) ∧ (S (e k) ≤ 0 ↔ L k ≤ 0)

The full SR5 affine solution and recurrence, including the actual post-jump value at every event. This uses only the complete profile hold.

theorem MindFormal.ResponsiveConsequences.finite_candidate_infimum (candidates : Finset ℝ) (hne : candidates.Nonempty) (times : Set ℝ) (lower : ∀ t ∈ times, ∃ c ∈ candidates, c ≤ t) (approach : ∀ c ∈ candidates, ∀ (z : ℝ), c < z → ∃ t ∈ times, t < z) :
IsGLB times (candidates.min' hne)

Once all segment and post-jump candidates have been retained, their finite minimum is the first loss (or the infimum for strict return). Both directions of the candidate test are explicit, not an assumed time.