MindFormal v1.0.0One Mind

MindFormal.Chapters.Ch14.Ranking

08.28 §4: exact finite ordinal reduction of the held ratio object, its common cutoff, and the weaker observed-winner test. Held timing and qualification remain the already proved RP1.6 comparison (held_first_iff, held_deferral_iff, held_table_iff); no moving noisy run is frozen here.

noncomputable def MindFormal.RevealedChoice.heldRatio (need target : ℝ) :

The held support/requirement ratio, infinite at a zero target.

Equations
Instances For
    def MindFormal.RevealedChoice.ratioTie {I : Type u_1} {M : Type u_2} (menu : M → Finset I) (ρ : M → I → WithTop ℝ) (i j : I) :

    A declared ratio tie in any tested co-occurrence.

    Equations
    Instances For
      def MindFormal.RevealedChoice.ratioBetter {I : Type u_1} {M : Type u_2} (menu : M → Finset I) (ρ : M → I → WithTop ℝ) (i j : I) :

      A strict smaller-ratio comparison in any tested co-occurrence.

      Equations
      Instances For
        theorem MindFormal.RevealedChoice.ratio_ranking_iff {I : Type u_1} {M : Type u_2} [Finite I] (menu : M → Finset I) (ρ : M → I → WithTop ℝ) :
        (∃ (u : I → ℝ), ∀ (m : M), ∀ i ∈ menu m, ∀ j ∈ menu m, (ρ m i = ρ m j → u i = u j) ∧ (ρ m i < ρ m j → u j < u i)) ↔ FiniteOrder.TieTest (ratioTie menu ρ) (ratioBetter menu ρ)

        The complete ratio ordering has one ranking exactly when no strict comparison lies within a tie class and the graph on tie classes is acyclic. The ratios can be infinite; no unreachable-option distinction is dropped.

        theorem MindFormal.RevealedChoice.ratio_order_iff {I : Type u_1} {M : Type u_2} (menu : M → Finset I) (ρ : M → I → WithTop ℝ) (u : I → ℝ) (hu : ∀ (m : M), ∀ i ∈ menu m, ∀ j ∈ menu m, (ρ m i = ρ m j → u i = u j) ∧ (ρ m i < ρ m j → u j < u i)) (m : M) (i j : I) (hi : i ∈ menu m) (hj : j ∈ menu m) :
        ρ m i ≤ ρ m j ↔ u j ≤ u i

        The stated tie and strict requirements preserve the entire weak ratio order in both directions, rather than only the observed winner.

        def MindFormal.RevealedChoice.outsideWeak {M : Type u_2} {N : ℕ} (menu : M → Finset (Fin N)) (ρ : M → Fin N → WithTop ℝ) (χ : M → WithTop ℝ) (i j : Fin (N + 1)) :

        The weak graph with the outside alternative adjoined: ratio ties and qualification edges. Qualification is weak, so equality at the deadline qualifies and is not silently made a strict comparison.

        Equations
        • One or more equations did not get rendered due to their size.
        Instances For
          def MindFormal.RevealedChoice.outsideStrict {M : Type u_2} {N : ℕ} (menu : M → Finset (Fin N)) (ρ : M → Fin N → WithTop ℝ) (χ : M → WithTop ℝ) (i j : Fin (N + 1)) :

          The strict graph adds outside-to-option edges exactly for failures of qualification, and retains every strict ratio comparison.

          Equations
          • One or more equations did not get rendered due to their size.
          Instances For
            theorem MindFormal.RevealedChoice.outside_cutoff_iff {M : Type u_2} {N : ℕ} (menu : M → Finset (Fin N)) (ρ : M → Fin N → WithTop ℝ) (χ : M → WithTop ℝ) :
            (∃ (u : Fin (N + 1) → ℝ), (∀ (m : M), ∀ i ∈ menu m, ∀ j ∈ menu m, (ρ m i = ρ m j → u i.castSucc = u j.castSucc) ∧ (ρ m i < ρ m j → u j.castSucc < u i.castSucc)) ∧ ∀ (m : M), ∀ i ∈ menu m, ρ m i ≤ χ m ↔ u (Fin.last N) ≤ u i.castSucc) ↔ FiniteOrder.NoStrictCycle (outsideWeak menu ρ χ) (outsideStrict menu ρ χ)

            One ranking and one outside cutoff represent all ratio orders and all qualification tests exactly when the same weak/strict cycle test passes with the outside adjoined. Its index is last, so an option at the cutoff precedes deferral in the fixed priority. Both implications include ties.

            The outside alternative is last under the actual finite priority.

            def MindFormal.RevealedChoice.winnerWeak {I : Type u_1} {M : Type u_2} (menu : M → Finset I) (winner : M → I) (i j : I) :

            Every observed winner weakly dominates every offered option. An outside alternative can be included in the menus with its last priority.

            Equations
            Instances For
              def MindFormal.RevealedChoice.winnerStrict {I : Type u_1} {M : Type u_2} [LT I] (menu : M → Finset I) (winner : M → I) (i j : I) :

              An earlier-priority rival requires strict dominance by the winner.

              Equations
              Instances For
                theorem MindFormal.RevealedChoice.winners_iff {I : Type u_1} {M : Type u_2} [Finite I] [LinearOrder I] (menu : M → Finset I) (winner : M → I) (hw : ∀ (m : M), winner m ∈ menu m) :
                (∃ (u : I → ℝ), ∀ (m : M), (Quantal.winner fun (i : ↥(menu m)) => u ↑i) = ⟨winner m, ⋯⟩) ↔ FiniteOrder.NoStrictCycle (winnerWeak menu winner) (winnerStrict menu winner)

                RP1.7: actual evaluation under the fixed tie rule reproduces every winner, including the outside/deferral label, exactly under the finite no-strict-cycle test. Menu membership is the recorded choice's well-formedness.

                The finite menu includes deferral as its last-priority alternative.

                Equations
                Instances For
                  def MindFormal.RevealedChoice.reportCode {N : ℕ} (report : Option (Fin N)) :
                  Fin (N + 1)

                  A reported option keeps its index; deferral has the last index.

                  Equations
                  Instances For
                    theorem MindFormal.RevealedChoice.report_mem {N : ℕ} (menu : Finset (Fin N)) (report : Option (Fin N)) (h : ∀ (i : Fin N), report = some i → i ∈ menu) :

                    Every well-formed recorded choice or deferral belongs to its augmented menu.

                    theorem MindFormal.RevealedChoice.reported_choices_iff {M : Type u_2} {N : ℕ} (menu : M → Finset (Fin N)) (report : M → Option (Fin N)) (valid : ∀ (m : M) (i : Fin N), report m = some i → i ∈ menu m) :
                    (∃ (u : Fin (N + 1) → ℝ), ∀ (m : M), (Quantal.winner fun (i : ↥(menuWithOutside (menu m))) => u ↑i) = ⟨reportCode (report m), ⋯⟩) ↔ FiniteOrder.NoStrictCycle (winnerWeak (fun (m : M) => menuWithOutside (menu m)) fun (m : M) => reportCode (report m)) (winnerStrict (fun (m : M) => menuWithOutside (menu m)) fun (m : M) => reportCode (report m))

                    RP1.7 explicitly for option reports and deferrals. Evaluation occurs on the offered menu plus the outside, with that outside last in priority; the exact same finite no-strict-cycle condition is necessary and sufficient.

                    theorem MindFormal.RevealedChoice.unique_winners_iff {I : Type u_1} {M : Type u_2} [Finite I] (menu : M → Finset I) (winner : M → I) :
                    (∃ (u : I → ℝ), ∀ (m : M), ∀ j ∈ menu m, j ≠ winner m → u j < u (winner m)) ↔ ∀ (i : I), ¬Relation.TransGen (fun (a b : I) => winnerWeak menu winner a b ∧ b ≠ a) i i

                    Requiring unique maxima makes every winner-to-other-option edge strict; the finite criterion is then exactly ordinary acyclicity.