MindFormal v1.0.0One Mind

MindFormal.Chapters.Ch18.CommonLoad

noncomputable def MindFormal.LoadRegions.rise (ν H : ℝ) :

RM1.7's finite rising fraction in the named held-support comparison.

Equations
Instances For
    noncomputable def MindFormal.LoadRegions.activity (g P h z : ℝ) :

    RM1.7's zero-start comparison activity, with the full common pool. The argument h is the finite rising fraction, never a normalization of a menu.

    Equations
    Instances For
      theorem MindFormal.LoadRegions.rise_bounds {ν H : ℝ} (hν : 0 < ν) (hH : 0 < H) :
      0 < rise ν H ∧ rise ν H < 1

      Positive rate and positive finite horizon put the rising fraction strictly between zero and one. These are the comparison's time holds.

      theorem MindFormal.LoadRegions.activity_reference (ν H g P z : ℝ) :
      referenceActivity ν (max (z / P - g) 0) 0 H = activity g P (rise ν H) z

      RM1.7 solves the original held-target reference from zero. The reference is not asserted to be the actual noisy mean.

      theorem MindFormal.LoadRegions.awareness_iff {g P h z α : ℝ} (hg : 0 ≤ g) (hP : 0 < P) (hh : 0 < h) (hα : 0 < α) :
      α ≤ activity g P h z ↔ P ≤ z / (g + α / h)

      RM1.7: awareness at a positive bar is exactly the inclusive upper pool cutoff. The offset is nonnegative and both divisors are positive.

      theorem MindFormal.LoadRegions.cutoff_derivative {g h z α : ℝ} (hh : h ≠ 0) (hθ : g + α / h ≠ 0) :
      HasDerivAt (fun (a : ℝ) => z / (g + a / h)) (-z / (h * (g + α / h) ^ 2)) α

      RM1.7: the awareness cutoff's exact derivative with respect to its bar, at any nonzero rising fraction and nonzero cutoff denominator.

      noncomputable def MindFormal.LoadRegions.lower {Q : Type u_1} (battery : Finset Q) (desired : Q → Bool) (cutoff : Q → ℝ) :

      RM1.8's strict lower endpoint; an empty negative annotation has endpoint minus infinity. This is a finite maximum in the extended reals.

      Equations
      Instances For
        noncomputable def MindFormal.LoadRegions.upper {Q : Type u_1} (battery : Finset Q) (desired : Q → Bool) (cutoff : Q → ℝ) :

        RM1.8's inclusive upper endpoint; an empty positive annotation has endpoint plus infinity. This is a finite minimum in the extended reals.

        Equations
        Instances For
          theorem MindFormal.LoadRegions.annotated_interval_iff {Q : Type u_1} (battery : Finset Q) (desired : Q → Bool) (cutoff : Q → ℝ) (L : ℝ) :
          (∀ q ∈ battery, L ≤ cutoff q ↔ desired q = true) ↔ lower battery desired cutoff < ↑L ∧ ↑L ≤ upper battery desired cutoff

          RM1.8: the entire finite annotated comparison is one interval, strict at its negative endpoint and inclusive at its positive endpoint. An empty annotation side keeps its infinite endpoint.

          theorem MindFormal.LoadRegions.awareness_region_iff {Q : Type u_1} (battery : Finset Q) (desired : Q → Bool) (z base h : Q → ℝ) {g α L : ℝ} (hg : 0 ≤ g) (hα : 0 < α) (hh : ∀ q ∈ battery, 0 < h q) (hP : ∀ q ∈ battery, 0 < base q + L) :
          (0 ≤ L ∧ ∀ q ∈ battery, α ≤ activity g (base q + L) (h q) (z q) ↔ desired q = true) ↔ 0 ≤ L ∧ (lower battery desired fun (q : Q) => z q / (g + α / h q) - base q) < ↑L ∧ ↑L ≤ upper battery desired fun (q : Q) => z q / (g + α / h q) - base q

          RM1.8 on actual comparison supports and the declared extra-load line. Nonnegative extra load is part of the region, not a changed endpoint.

          theorem MindFormal.LoadRegions.activity_eq_iff {g P h z y : ℝ} (hP : 0 < P) (hh : 0 < h) (hy : 0 < y) :
          activity g P h z = y ↔ z = P * (g + y / h)

          A positive comparison activity is exactly its positive-branch support equation. This is the algebra used for finite frequency calibration.

          theorem MindFormal.LoadRegions.activity_zero_iff {g P h z : ℝ} (hP : 0 < P) (hh : 0 < h) :
          activity g P h z = 0 ↔ z ≤ g * P

          A zero-probability atom remains on the clipped branch exactly when its support is at most g times the complete positive pool.

          theorem MindFormal.LoadRegions.positive_calibration_iff {C : Type u_1} [Fintype C] (p z : C → ℝ) {g P h χ L : ℝ} (hp : ∀ (i : C), 0 < p i) (hs : ∑ i : C, p i = 1) (hP : 0 < P) (hh : 0 < h) (hχ : 0 < χ) (hL : 0 < L) (total : P = L + ∑ i : C, z i) :
          (∀ (i : C), activity g P h (z i) / χ = p i) ↔ ↑(Fintype.card C) * g + χ / h < 1 ∧ P = L / (1 - ↑(Fintype.card C) * g - χ / h) ∧ ∀ (i : C), z i = L * (g + χ * p i / h) / (1 - ↑(Fintype.card C) * g - χ / h)

          RM1.9, both directions, for the positive atoms and the complete residual load. Frequencies are positive and normalized; g is fixed, the finite rise and unit are positive, and P includes every residual port.

          theorem MindFormal.LoadRegions.activity_positive_branch {g P h z : ℝ} (hP : 0 < P) (hz : g * P ≤ z) :
          activity g P h z = h * (z / P - g)

          On a positive branch the clipping disappears; the full pool remains.

          theorem MindFormal.LoadRegions.normalization_iff {C : Type u_1} [Fintype C] (z : C → ℝ) {g P h χ : ℝ} (hg : 0 ≤ g) (hP : 0 < P) (hh : 0 < h) (hχ : 0 < χ) (active : ∀ (i : C), g * P ≤ z i) :
          ∑ i : C, activity g P h (z i) = χ ↔ P = (∑ i : C, z i) / (↑(Fintype.card C) * g + χ / h)

          RM1.9's normalization region, under the stated positive-atom hold.

          theorem MindFormal.LoadRegions.named_union_iff {C : Type u_1} (S : Finset C) (z : C → ℝ) {g P h named : ℝ} (hP : 0 < P) (hh : h ≠ 0) (active : ∀ i ∈ S, g * P ≤ z i) (hnamed : g * P ≤ named) :
          activity g P h named = ∑ i ∈ S, activity g P h (z i) ↔ named = ∑ i ∈ S, z i - (↑S.card - 1) * g * P

          RM1.9's named-union identity on the positive branches, including the empty union if its stated branch holds. The unit cancels.

          theorem MindFormal.LoadRegions.activity_le_iff {g P h z y : ℝ} (hg : 0 < g) (hP : 0 < P) (hh : 0 < h) (hy : 0 ≤ y) :
          activity g P h z ≤ y ↔ z / (g + y / h) ≤ P

          The nonnegative upper activity test includes the clipped branch.

          theorem MindFormal.LoadRegions.tolerance_iff {g P h z χ p ε : ℝ} (hg : 0 < g) (hP : 0 < P) (hh : 0 < h) (hχ : 0 < χ) (hp : 0 ≤ p) (hε : 0 ≤ ε) :
          |activity g P h z / χ - p| ≤ ε ↔ z / (g + χ * (p + ε) / h) ≤ P ∧ (ε < p → P ≤ z / (g + χ * (p - ε) / h))

          RM1.10's full tolerance interval. When the frequency is at most the tolerance there is no upper-pool constraint. Equality is retained.

          theorem MindFormal.LoadRegions.exact_pool {g P h z χ p : ℝ} (hg : 0 ≤ g) (hP : 0 < P) (hh : 0 < h) (hχ : 0 < χ) (hp : 0 < p) :
          activity g P h z / χ = p ↔ P = z / (g + χ * p / h)

          RM1.10: one positive calibrated atom fixes the pool, so the exact region for any nonempty positive atom family has at most one point.

          def MindFormal.LoadRegions.raceMargin (g P zi zj bi bj : ℝ) :

          RM1.11's affine pair margin, before any clipping.

          Equations
          Instances For
            theorem MindFormal.LoadRegions.active_iff {g P z : ℝ} (hg : 0 < g) (hP : 0 < P) :
            0 < max (z / P - g) 0 ↔ P < z / g

            The active-rival condition uses the complete pool.

            theorem MindFormal.LoadRegions.raceMargin_target {g P zi zj bi bj : ℝ} (hP : 0 < P) (hi : g * P ≤ zi) (hj : g * P ≤ zj) :
            raceMargin g P zi zj bi bj = P * (bj * max (zi / P - g) 0 - bi * max (zj / P - g) 0)

            The pair margin is precisely the cross-product of the two positive targets, multiplied by the positive complete pool.

            theorem MindFormal.LoadRegions.winner_region_iff {N : ℕ} (z need : Fin N → ℝ) {g P ν H : ℝ} (hg : 0 < g) (hP : 0 < P) (hν : 0 < ν) (hH : 0 < H) (hn : ∀ (i : Fin N), 0 < need i) (i : Fin N) :
            (∃ t ≤ H, FirstAt (fun (j : Fin N) => referenceActivity ν (max (z j / P - g) 0) 0) need t i) ↔ P ≤ z i / (g + need i / rise ν H) ∧ P < z i / g ∧ ∀ (j : Fin N), P < z j / g → 0 ≤ raceMargin g P (z i) (z j) (need i) (need j) ∧ (raceMargin g P (z i) (z j) (need i) (need j) = 0 → i ≤ j)

            RM1.11, both directions, including finite deadlines, inactive rivals and the fixed native priority at equal hit times.

            theorem MindFormal.LoadRegions.priority_margin_iff {N : ℕ} (i j : Fin N) (D : ℝ) :
            0 ≤ D ∧ (D = 0 → i ≤ j) ↔ 0 ≤ D ∧ (j < i → 0 < D)

            Weak pair clearance plus the equality priority is equivalent to strict clearance against every higher-priority rival.

            theorem MindFormal.LoadRegions.hit_time (ν T b : ℝ) :
            passageTime ν T 0 b = ν⁻¹ * Real.log (T / (T - b))

            RM1.11's logarithmic hit time from zero is the existing native comparison passage time; it is used only below its target.

            theorem MindFormal.LoadRegions.hit_time_strict {ν T b c : ℝ} (hν : 0 < ν) (hb : 0 < b) (hbc : b < c) (hc : c < T) :
            passageTime ν T 0 b < passageTime ν T 0 c

            RM1.11: raising a positive reachable requirement strictly delays the held comparison's hit.

            theorem MindFormal.LoadRegions.race_boundary_iff {g P zi zj bi bj : ℝ} (hg : g ≠ 0) (hb : bj ≠ bi) :
            raceMargin g P zi zj bi bj = 0 ↔ P = (bj * zi - bi * zj) / (g * (bj - bi))

            RM1.12's pair boundary, when requirements differ.

            theorem MindFormal.LoadRegions.race_derivative (g P zi zj bi bj : ℝ) :
            HasDerivAt (fun (q : ℝ) => raceMargin g q zi zj bi bj) (-g * (bj - bi)) P

            RM1.12's boundary orientation.

            theorem MindFormal.LoadRegions.equal_requirement (g P zi zj b : ℝ) :
            raceMargin g P zi zj b b = b * (zi - zj)

            RM1.12: equal requirements remove all dependence on the pool.

            noncomputable def MindFormal.LoadRegions.point {X : Type u_3} (a x : X) :

            The deterministic comparison's point mass, with its declared label.

            Equations
            Instances For
              theorem MindFormal.LoadRegions.point_product {A : Type u_1} {C : Type u_2} [Fintype A] (a s : A → C) :
              point a s = ∏ i : A, point (a i) (s i)

              Repeating a deterministic profile gives exactly the product of its point marginals; no independence hypothesis is supplied.

              theorem MindFormal.LoadRegions.point_gamePayoff {A : Type u_1} {C : Type u_2} [Fintype A] [Fintype C] [DecidableEq A] (a : A → C) (u : A → (A → C) → ℝ) (i : A) (d : C) :
              Games.gamePayoff (fun (j : A) => point (a j)) u i d = u i (Function.update a i d)

              The actual payoff calculation for a deterministic comparison profile is its declared pure-deviation payoff.

              theorem MindFormal.LoadRegions.point_nash_iff {A : Type u_1} {C : Type u_2} [Fintype A] [Fintype C] [DecidableEq A] (a : A → C) (u : A → (A → C) → ℝ) :
              Games.NashTest (point a) (fun (j : A) => point (a j)) (Games.gamePayoff (fun (j : A) => point (a j)) u) ↔ ∀ (i : A) (d : C), u i (Function.update a i d) ≤ u i a

              RM1.13: the computed product point mass passes all mixed deviation tests exactly when its pure profile is Nash.

              theorem MindFormal.LoadRegions.repeated_nash_region {A : Type u_1} {C : Type u_2} [Fintype A] [Fintype C] [DecidableEq A] (W : A → C → Set ℝ) (u : A → (A → C) → ℝ) :
              {P : A → ℝ | ∃ (a : A → C), (∀ (j : A), P j ∈ W j (a j)) ∧ Games.NashTest (point a) (fun (j : A) => point (a j)) (Games.gamePayoff (fun (j : A) => point (a j)) u)} = ⋃ a ∈ {a : A → C | ∀ (i : A) (d : C), u i (Function.update a i d) ≤ u i a}, Set.univ.pi fun (j : A) => W j (a j)

              RM1.13's exact region identity. W are the per-act winner sets computed by RM1.11, and the law inside the region is constructed as the repeated deterministic profile. Empty pure-equilibrium sets remain empty.

              theorem MindFormal.LoadRegions.inner_region {N : ℕ} (mask : Fin N → Bool) (bar ν H E g P : ℝ) (z need : Fin N → ℝ) (score : ℝ → Fin N → ℝ) (S : NativeSearch (fun (t : ℝ) (i : Fin N) => if mask i = true then score t i - bar else -1) score 0 H) (hg : 0 < g) (hP : 0 < P) (hν : 0 < ν) (hH : 0 < H) (hE : 0 ≤ E) (hn : ∀ (j : Fin N), E < need j) (enclosure : ∀ t ∈ Set.Icc 0 H, ∀ (j : Fin N), |score t j - (activity g P (rise ν t) (z j) + bar - need j)| ≤ E) (w : Fin N) (hw : mask w = true) (deadline : need w + E < activity g P (rise ν H) (z w)) (pairs : ∀ (j : Fin N), j ≠ w → mask j = true → P < z j / g → (need w + E) * (z j / P - g) < (need j - E) * (z w / P - g)) :
              ∃ t ∈ Set.Icc 0 H, S.event = some (t, w)

              UO1.14's explicit common-error inner region, on the same native search. The independently bounded score error covers every time and every output; the intended raised hit and all active rival gaps are strict.

              theorem MindFormal.LoadRegions.inactive_below {ν H b E : ℝ} (h : E < b) :
              referenceActivity ν 0 0 H < b - E

              UO1.14's inactive rival cannot reach any positive lowered bar.

              theorem MindFormal.LoadRegions.target_change {P z other dz do' g dg : ℝ} (hP : P ≠ 0) (hP' : P + dz + do' ≠ 0) (total : P = z + other) :
              (z + dz) / (P + dz + do') - (g + dg) - (z / P - g) = (other * dz - z * do') / (P * (P + dz + do')) - dg

              RM1.14's exact finite target variation before clipping. Finite changes retain the changed denominator, unlike the tangent formula.

              theorem MindFormal.LoadRegions.margin_change (P z dz do' θ dθ : ℝ) :
              z + dz - (θ + dθ) * (P + dz + do') - (z - θ * P) = (1 - θ) * dz - θ * do' - P * dθ - dθ * (dz + do')

              RM1.14's exact finite margin variation. Simultaneous changes of the requirement and pool retain their product term.

              theorem MindFormal.LoadRegions.target_derivative {z other g : ℝ → ℝ} {dz do' dg t : ℝ} (hz : HasDerivAt z dz t) (ho : HasDerivAt other do' t) (hg : HasDerivAt g dg t) (hP : z t + other t ≠ 0) :
              HasDerivAt (fun (s : ℝ) => z s / (z s + other s) - g s) ((other t * dz - z t * do') / (z t + other t) ^ 2 - dg) t

              RM1.14's derivative of the unclipped share minus offset. Here other is the floor plus every rival support, and all derivatives are deterministic variations of the arguments.

              theorem MindFormal.LoadRegions.margin_derivative {z other θ : ℝ → ℝ} {dz do' dθ t : ℝ} (hz : HasDerivAt z dz t) (ho : HasDerivAt other do' t) (hθ : HasDerivAt θ dθ t) :
              HasDerivAt (fun (s : ℝ) => z s - θ s * (z s + other s)) ((1 - θ t) * dz - θ t * do' - (z t + other t) * dθ) t

              RM1.14's derivative of the full margin.

              theorem MindFormal.LoadRegions.clipped_target_derivative {z other g : ℝ → ℝ} {dz do' dg t : ℝ} (hz : HasDerivAt z dz t) (ho : HasDerivAt other do' t) (hg : HasDerivAt g dg t) (hP : z t + other t ≠ 0) (active : 0 < z t / (z t + other t) - g t) :
              HasDerivAt (fun (s : ℝ) => max (z s / (z s + other s) - g s) 0) ((other t * dz - z t * do') / (z t + other t) ^ 2 - dg) t

              The same derivative applies to the actual positive-part target on every strictly positive branch, by its local equality to the raw share.