MindFormal v1.0.0One Mind

MindFormal.Example.PageBankNoise

The bank's twelve-row bill and its positive noise choice, at every 0<p<1.

@[reducible, inline]

Activity and relation coordinates only, for any page-family size.

Equations
Instances For
    theorem MindFormal.PageFamily.billed_row_ne_zero {N : ℕ} {s : ℝ} (hs : 0 < s) (d : Billed N) :
    theorem MindFormal.PageFamily.billed_price {N : ℕ} {s : ℝ} (hs : 0 < s) (h : NNReal) (b : ℝ) :
    ∑ d : Billed N with matrix s (billedRow d) ≠ 0, 2 * Real.exp (-(b ^ 2 / (2 * loadNormSq (matrix s (billedRow d)) * ↑h))) = 2 * (↑N * ↑N + ↑N) * Real.exp (-(b ^ 2 / (2 * s ^ 2 * ↑h)))

    The exact selected-row bill. Both value elements remain in the run, but neither is charged in this event.

    @[reducible, inline]

    The billed coordinates are the nine relation and three activity rows. The six positively loaded value rows are deliberately absent.

    Equations
    Instances For
      theorem MindFormal.PageBank.billed_price {s : ℝ} (hs : 0 < s) (h : NNReal) :
      ∑ d : Billed with PageFamily.matrix s (billedRow d) ≠ 0, 2 * Real.exp (-((1 / 1000) ^ 2 / (2 * loadNormSq (PageFamily.matrix s (billedRow d)) * ↑h))) = 24 * Real.exp (-((1 / 1000) ^ 2 / (2 * s ^ 2 * ↑h)))

      The selected-row price is exactly 24 exponentials, not a charge for all eighteen nontrace coordinates. This is arithmetic, not a chance premise.

      noncomputable def MindFormal.PageBank.noiseScale (p : ℝ) :

      The entry's common strictly positive loading.

      Equations
      Instances For
        theorem MindFormal.PageBank.noiseScale_pos {p : ℝ} (hp : 0 < p) (hp1 : p < 1) :
        theorem MindFormal.PageBank.noiseScale_sq {p : ℝ} (hp : 0 < p) (hp1 : p < 1) :
        noiseScale p ^ 2 = (1 / 1000) ^ 2 / (2 * (1 / 5) * Real.log (24 / p))
        theorem MindFormal.PageBank.block_bill {p : ℝ} (hp : 0 < p) (hp1 : p < 1) :
        24 * Real.exp (-((1 / 1000) ^ 2 / (2 * noiseScale p ^ 2 * (1 / 5)))) = p

        Every block has the exact entry price p at the chosen loading.

        theorem MindFormal.PageBank.header_bill {p : ℝ} (hp : 0 < p) (hp1 : p < 1) :
        24 * Real.exp (-((1 / 1000) ^ 2 / (2 * noiseScale p ^ 2 * (1 / 100)))) = 24 * (p / 24) ^ 20

        The .01 header price is 24(p/24)^20, from the same twelve loaded rows.

        theorem MindFormal.PageBank.header_price_le {p : ℝ} (hp : 0 < p) (hp1 : p < 1) :
        0 ≤ 24 * (p / 24) ^ 20 ∧ 24 * (p / 24) ^ 20 ≤ p

        The header bill is nonnegative and no larger than the block bill.

        theorem MindFormal.PageBank.product_error_le {p : ℝ} (hp : 0 < p) (hp1 : p < 1) (n : ℕ) :
        1 - (1 - 24 * (p / 24) ^ 20) * (1 - p) ^ n ≤ 24 * (p / 24) ^ 20 + ↑n * p

        The retained product bound implies the entry's additive bound.

        theorem MindFormal.PageBank.product_error_lt {p ε : ℝ} (hp : 0 < p) (hp1 : p < 1) (hε : 0 < ε) (n : ℕ) (hchoice : p ≤ ε / (2 * (↑n + 1))) :
        1 - (1 - 24 * (p / 24) ^ 20) * (1 - p) ^ n < ε

        The stated finite-computation choice gives strict error below every ε>0.