MindFormal v1.0.0One Mind

MindFormal.Equations.FirstCrossing

noncomputable def MindFormal.climbFraction (target start need : ℝ) :

03.19's required fraction of the remaining climb.

Equations
Instances For
    noncomputable def MindFormal.passageTime (ν target start need : ℝ) :

    03.19's finite time formula. Outside start < need < target and positive rate, this total real expression is not a qualification time.

    Equations
    Instances For
      theorem MindFormal.referenceActivity_strictMono {ν target start : ℝ} (hν : 0 < ν) (hstart : start < target) :
      StrictMono (referenceActivity ν target start)

      03.19: a positive rate and a target above the start give a strictly increasing reference curve, with target and values held fixed.

      theorem MindFormal.passageTime_pos {ν target start need : ℝ} (hν : 0 < ν) (hs : start < need) (hn : need < target) :
      0 < passageTime ν target start need

      03.19: for positive rate and start < need < target, the displayed logarithmic time is positive. This is the reference branch only.

      theorem MindFormal.referenceActivity_at_passage {ν target start need : ℝ} (hν : 0 < ν) (hs : start < need) (hn : need < target) :
      referenceActivity ν target start (passageTime ν target start need) = need

      03.19: substitution of the logarithmic time gives exactly the threshold for positive rate and start < need < target. No crossing identity is assumed.

      theorem MindFormal.qualification_iff {ν target start need t : ℝ} (hν : 0 < ν) (hs : start < need) (hn : need < target) :
      need ≤ referenceActivity ν target start t ↔ passageTime ν target start need ≤ t

      03.19: for positive rate and start < need < target, qualification at t is equivalent to t being at least the logarithmic time. This proves first arrival.

      theorem MindFormal.climbFraction_mem {target start need : ℝ} (hs : start < need) (hn : need < target) :
      0 < climbFraction target start need ∧ climbFraction target start need < 1

      03.19: the required fraction lies strictly between zero and one when start < need < target. Nothing about the winning label is assumed.

      theorem MindFormal.passageTime_fraction {ν target start need : ℝ} (hs : start < need) (hn : need < target) :
      passageTime ν target start need = -Real.log (1 - climbFraction target start need) / ν

      03.19. When start < need < target, the two displayed logarithmic expressions are equal for any real ν. Interpreting them as 03.19's physical arrival time additionally requires a positive rate.

      theorem MindFormal.passageTime_le_iff_fraction {ν target₁ start₁ need₁ target₂ start₂ need₂ : ℝ} (hν : 0 < ν) (hs₁ : start₁ < need₁) (hn₁ : need₁ < target₁) (hs₂ : start₂ < need₂) (hn₂ : need₂ < target₂) :
      passageTime ν target₁ start₁ need₁ ≤ passageTime ν target₂ start₂ need₂ ↔ climbFraction target₁ start₁ need₁ ≤ climbFraction target₂ start₂ need₂

      03.19: finite crossing times have exactly the order of their fractions when the positive rate is common, even with unequal starts and thresholds.

      def MindFormal.FirstAt {N : ℕ} (x : Fin N → ℝ → ℝ) (need : Fin N → ℝ) (t : ℝ) (i : Fin N) :

      A path-based first selection in an initially released race. Fin n is the fixed priority order; all indexed options are outputs with given required levels.

      Equations
      Instances For
        theorem MindFormal.ordered_fraction {targetH targetJ start needH needJ : ℝ} (hs : start < needH) (hneed : needH ≤ needJ) (hreach : needJ < targetJ) (htarget : targetJ ≤ targetH) :
        climbFraction targetH start needH ≤ climbFraction targetJ start needJ

        03.19: common starts, a no-smaller target and a no-larger requirement give a no-larger fraction, on reachable branches. Victory still needs tie handling.

        theorem MindFormal.unreachable_reference {ν target start need t : ℝ} (hν : 0 < ν) (hs : start < need) (hn : target ≤ need) (ht : 0 ≤ t) :
        referenceActivity ν target start t < need

        03.19. With a positive rate and a start strictly below the requirement, a held target at or below that requirement leaves the reference strictly below it at every finite nonnegative time. Equality of target and requirement is included.

        noncomputable def MindFormal.extendedPassageTime (ν target start need : ℝ) :

        03.19's three-branch first qualification time for a finite requirement. Top means no finite arrival; an empty qualifying set needs a separate top requirement.

        Equations
        Instances For
          theorem MindFormal.extendedPassageTime_iff {ν target start need t : ℝ} (hν : 0 < ν) (ht : 0 ≤ t) :
          extendedPassageTime ν target start need ≤ ↑t ↔ ∃ (s : ℝ), 0 ≤ s ∧ s ≤ t ∧ need ≤ referenceActivity ν target start s

          03.19. For a positive rate and a nonnegative deadline, the three-branch reference time is at most that deadline exactly when the requirement is met at some nonnegative time at or before it. This includes time-zero qualification and treats an unattained limiting equality as no finite arrival.

          def MindFormal.ReachableWinner {N : ℕ} (target start need : Fin N → ℝ) (i : Fin N) :

          Least finite fraction with fixed priority, ignoring unreachable rivals.

          Equations
          • One or more equations did not get rendered due to their size.
          Instances For
            theorem MindFormal.firstAt_exists_iff_reachableWinner {N : ℕ} {ν : ℝ} (target start need : Fin N → ℝ) (hν : 0 < ν) (hs : ∀ (j : Fin N), start j < need j) (i : Fin N) :
            (∃ (t : ℝ), FirstAt (fun (j : Fin N) => referenceActivity ν (target j) (start j)) need t i) ↔ ReachableWinner target start need i

            03.19: with a common positive rate and every start strictly unqualified, a label is first at some finite time iff it wins the least reachable fraction and fixed-priority test. Rivals may now be unreachable, including target=need. The requirements remain finite real numbers; initial-score and noisy cases are separate, so this is still less than the whole Claim.

            theorem MindFormal.highestValue_mixed_iff {N : ℕ} {ν : ℝ} (target start need U : Fin N → ℝ) (hν : 0 < ν) (hs : ∀ (j : Fin N), start j < need j) :
            (∃ (i : Fin N), (∃ (t : ℝ), FirstAt (fun (j : Fin N) => referenceActivity ν (target j) (start j)) need t i) ∧ ∀ (j : Fin N), U j ≤ U i) ↔ ∃ (i : Fin N), ReachableWinner target start need i ∧ ∀ (j : Fin N), U j ≤ U i

            03.19: allowing unreachable rivals, a highest-value finite first choice exists exactly when a highest-value label wins the finite-fraction priority test. Values are fixed beforehand; all starts are below finite requirements, and the common rate is positive. No finite fraction therefore means no action.

            noncomputable def MindFormal.optionalPassageTime (ν target start : ℝ) (need : Option ℝ) :

            An empty qualifying set is represented by none; some need has a finite activity threshold. The resulting time is top when qualification is impossible.

            Equations
            Instances For
              theorem MindFormal.optionalPassageTime_iff {ν target start t : ℝ} (need : Option ℝ) (hν : 0 < ν) (ht : 0 ≤ t) :
              optionalPassageTime ν target start need ≤ ↑t ↔ ∃ (h : ℝ), need = some h ∧ ∃ (s : ℝ), 0 ≤ s ∧ s ≤ t ∧ h ≤ referenceActivity ν target start s

              03.19: the time formula also handles an empty qualifying set. Under a positive rate and nonnegative deadline, arrival occurs by that deadline iff a finite requirement exists and is met along the reference by then.

              def MindFormal.ScoreFirstAt {N : ℕ} (score : Fin N → ℝ → ℝ) (ω t : ℝ) (i : Fin N) :

              Native V first choice for supplied scores: earliest qualification, largest score at that time, then fixed priority among equal scores.

              Equations
              • One or more equations did not get rendered due to their size.
              Instances For
                def MindFormal.InitialScoreWinner {N : ℕ} (score : Fin N → ℝ) (ω : ℝ) (i : Fin N) :

                The largest qualifying initial score, with fixed priority for exact ties.

                Equations
                Instances For
                  theorem MindFormal.scoreFirstAt_zero_iff {N : ℕ} (score : Fin N → ℝ → ℝ) (ω : ℝ) (i : Fin N) :
                  ScoreFirstAt score ω 0 i ↔ InitialScoreWinner (fun (j : Fin N) => score j 0) ω i

                  03.19: immediate native selection compares actual initial scores, not only arrival times. For any supplied score paths, choice of i at time zero is equivalent to i having a qualifying maximum initial score and winning its ties.

                  In One Mind, clause 3 of result 3.1: Which option acts first, and when it is the most valuable · all its clauses in Lean
                  theorem MindFormal.highestValue_initial_iff {N : ℕ} (score : Fin N → ℝ → ℝ) (U : Fin N → ℝ) (ω : ℝ) :
                  (∃ (i : Fin N), ScoreFirstAt score ω 0 i ∧ ∀ (j : Fin N), U j ≤ U i) ↔ ∃ (i : Fin N), InitialScoreWinner (fun (j : Fin N) => score j 0) ω i ∧ ∀ (j : Fin N), U j ≤ U i

                  03.19: at immediate qualification, agreement with the predeclared value benchmark is exactly membership of the largest-initial-score winner in its maximizing set. This covers the initial branch for supplied native scores; it does not assert that a given activity requirement represents a score read.