MindFormal v1.0.0One Mind

MindFormal.Tools.AstraTrade.Rank

Finite unit-capacity holdings, in increasing reference-rank order. The order is an analyst's enumeration; it is never passed to the world. The sum bounds below give the exact available rank budget without requiring quasilinear preferences or numerical values to remain constant.

Equations
Instances For
    Equations
    Instances For
      def MindFormal.AstraTrade.replaceOwner {N : ℕ} (h : Finset (Fin N)) (s b : Fin N) :
      Equations
      Instances For
        theorem MindFormal.AstraTrade.replace_card {N : ℕ} {h : Finset (Fin N)} {s b : Fin N} (hs : s ∈ h) (hb : b ∉ h) :
        theorem MindFormal.AstraTrade.replace_rank {N : ℕ} {h : Finset (Fin N)} {s b : Fin N} (hs : s ∈ h) (hb : b ∉ h) :
        rankSum (replaceOwner h s b) + ↑s = rankSum h + ↑b
        theorem MindFormal.AstraTrade.replace_improves {N : ℕ} {h : Finset (Fin N)} {s b : Fin N} (hs : s ∈ h) (hb : b ∉ h) (hlt : s < b) :

        The unique upper set with K owners, equivalently the top K ranks.

        Equations
        Instances For
          theorem MindFormal.AstraTrade.not_top {N : ℕ} {h : Finset (Fin N)} (hn : ¬Top h) :
          ∃ s ∈ h, ∃ b ∉ h, s < b
          theorem MindFormal.AstraTrade.top_unique {N : ℕ} {h t : Finset (Fin N)} (hc : h.card = t.card) (hh : Top h) (ht : Top t) :
          h = t
          theorem MindFormal.AstraTrade.top_membership {N : ℕ} {h : Finset (Fin N)} (ht : Top h) (i : Fin N) :
          i ∈ h ↔ N - h.card ≤ ↑i