MindFormal v1.0.0One Mind

MindFormal.Tools.A617Market.AuctionTwoQuote

Equations
  • One or more equations did not get rendered due to their size.
Instances For
    noncomputable def MindFormal.A617Market.Auction.twoQuoteTrial (low high : ℝ) (lowAsk highBid : Bool) :
    Equations
    • One or more equations did not get rendered due to their size.
    Instances For
      theorem MindFormal.A617Market.Auction.twoQuoteTrial_eq {low high : ℝ} (hl : 0 ≤ low) (hh : low < high) (lowAsk highBid : Bool) :
      twoQuoteTrial low high lowAsk highBid = if lowAsk = true then some false else if highBid = true then some true else none

      The ask arrives first, and is the paid price. Low fills on either bid; high fills only on the high bid. Both commitments are funded and reserved.

      noncomputable def MindFormal.A617Market.Auction.twoQuoteMass (low high l theta : ℝ) (paid : Bool) :
      Equations
      • One or more equations did not get rendered due to their size.
      Instances For
        theorem MindFormal.A617Market.Auction.twoQuoteMass_eq {low high : ℝ} (hl : 0 ≤ low) (hh : low < high) (l theta : ℝ) :
        twoQuoteMass low high l theta = fun (paid : Bool) => if paid = true then theta * (1 - l) else l
        theorem MindFormal.A617Market.Auction.twoQuote_acceptance {low high : ℝ} (hl : 0 ≤ low) (hh : low < high) (l theta : ℝ) :
        ∑ paid : Bool, twoQuoteMass low high l theta paid = l + theta * (1 - l)
        theorem MindFormal.A617Market.Auction.twoQuote_distribution {low high l theta : ℝ} (hl : 0 ≤ low) (hh : low < high) (ha : l + theta * (1 - l) ≠ 0) :
        theorem MindFormal.A617Market.Auction.twoQuote_moments {low high l theta : ℝ} (hl : 0 ≤ low) (hh : low < high) (ha : l + theta * (1 - l) ≠ 0) :
        theorem MindFormal.A617Market.Auction.quote_experienced_returns {low high : ℝ} (hl : 0 ≤ low) (hh : low < high) (theta cost : ℝ) :
        (∑ b : Bool, (if b = true then theta else 1 - theta) * match twoQuoteTrial low high true b with | some p => MarketResponseCalculus.twoPrice low high p - cost | none => 0) = low - cost ∧ (∑ b : Bool, (if b = true then theta else 1 - theta) * match twoQuoteTrial low high false b with | some p => MarketResponseCalculus.twoPrice low high p - cost | none => 0) = theta * (high - cost)