MindFormal v1.0.0One Mind

MindFormal.Example.PageBankArithmetic

Exact arithmetic for PG1.14c–d. Decimal thresholds below denote rationals; exponential estimates are proved using the pinned library, not numerical oracles.

The PG1.14c comparison function, with the exact coefficients.

Equations
Instances For
    theorem MindFormal.PageBank.relationEnvelope_slack {R : ℝ} (hR : 5 ≤ R) :
    relationEnvelope R < 103 / 100 * R - 1654 / 100000 - 791 / 100000 * (R - 5)

    The printed uniform slack and slope difference hold for every R≥5.

    theorem MindFormal.PageBank.header_relation_number :
    1 / 1000 * Real.exp (51 / 500000) + (600 / 10000 + 99003 / 10000000) * (Real.exp (51 / 500000) - 1) / (51 / 5000) < 7 / 1000

    The zero-start header's sharper forcing uses max input 600, not 6000.

    theorem MindFormal.PageBank.raw_allowance {R : ℝ} (hR : 5 ≤ R) :
    3 * (103 / 100 * R) + 1 / 250 < 31 / 1000 * (100 * (1 + R))
    theorem MindFormal.PageBank.target_numbers :
    7852 / 10000 < (1 - 31 / 1000) / (1 / 600 + 1 + 3 * (31 / 1000)) - 1 / 10 ∧ 7985 / 10000 < (10 - 31 / 1000) / (1 / 600 + 11 + 3 * (31 / 1000)) - 1 / 10 ∧ 3725 / 10000 < (10 - 31 / 1000) / (1 / 600 + 21 + 3 * (31 / 1000)) - 1 / 10 ∧ 1031 / 1000 / (11 - 2 * (31 / 1000)) < 1 / 10

    The three printed lower targets and the worst wrong share, exactly.

    theorem MindFormal.PageBank.score_numbers :
    489 / 1000 < 78 / 100 * (1 - Real.exp (-1)) - 4 / 1000 ∧ 3679 / 10000 < 37 / 100 * (1 - Real.exp (-10)) - 2 / 1000 ∧ 3659 / 10000 < 37 / 100 * (1 - Real.exp (-10)) - 4 / 1000 ∧ 3639 / 10000 < 37 / 100 * (1 - Real.exp (-20)) - 4 / 1000 ∧ 91 / 100 * Real.exp (-20) + 4 / 1000 < 5 / 1000

    Every printed header, focus and terminal score margin is strict.

    theorem MindFormal.PageBank.activity_terminal_number :
    9 / 10 + 1 / 100 * Real.exp (-20) + 2 / 1000 < 903 / 1000

    The endpoint activity has the strict re-entry margin used by the induction.