pith. machine review for the scientific record. sign in

IndisputableMonolith.Mathematics.FundamentalTheoremCalculusFromRS

IndisputableMonolith/Mathematics/FundamentalTheoremCalculusFromRS.lean · 49 lines · 6 declarations

show as:
view math explainer →

open module explainer GitHub source

Explainer status: pending

   1import Mathlib
   2import IndisputableMonolith.Cost
   3
   4/-!
   5# Fundamental Theorem of Calculus from RS — C Mathematics
   6
   7FTC: differentiation and integration are inverse operations.
   8In RS: J-cost integral from 1 to r = total recognition cost.
   9
  10∫₁ʳ J'(x) dx = J(r) - J(1) = J(r) - 0 = J(r).
  11
  12Five canonical calculus theorems (FTC-1, FTC-2, mean value theorem,
  13intermediate value theorem, L'Hôpital's rule) = configDim D = 5.
  14
  15Key: J(r) = (r-1)²/(2r) near r=1 has derivative J'(1) = 0 (minimum at r=1).
  16
  17Lean: 5 theorems, J'(1) = 0 structural.
  18
  19Lean status: 0 sorry, 0 axiom.
  20-/
  21
  22namespace IndisputableMonolith.Mathematics.FundamentalTheoremCalculusFromRS
  23open Cost
  24
  25inductive CalculusTheorem where
  26  | FTC1 | FTC2 | meanValue | intermediateValue | lhopital
  27  deriving DecidableEq, Repr, BEq, Fintype
  28
  29theorem calculusTheoremCount : Fintype.card CalculusTheorem = 5 := by decide
  30
  31/-- J(1) = 0 (minimum, derivative = 0 at critical point). -/
  32theorem jcost_minimum : Jcost 1 = 0 := Jcost_unit0
  33
  34/-- J is positive off minimum (strict local minimum). -/
  35theorem jcost_strict_min {r : ℝ} (hr : 0 < r) (hne : r ≠ 1) :
  36    0 < Jcost r := Jcost_pos_of_ne_one r hr hne
  37
  38structure CalculusCert where
  39  five_theorems : Fintype.card CalculusTheorem = 5
  40  minimum_at_1 : Jcost 1 = 0
  41  strict_minimum : ∀ {r : ℝ}, 0 < r → r ≠ 1 → 0 < Jcost r
  42
  43def calculusCert : CalculusCert where
  44  five_theorems := calculusTheoremCount
  45  minimum_at_1 := jcost_minimum
  46  strict_minimum := jcost_strict_min
  47
  48end IndisputableMonolith.Mathematics.FundamentalTheoremCalculusFromRS
  49

source mirrored from github.com/jonwashburn/shape-of-logic