pith. machine review for the scientific record. sign in

IndisputableMonolith.Economics.SupplyChainFromRS

IndisputableMonolith/Economics/SupplyChainFromRS.lean · 39 lines · 5 declarations

show as:
view math explainer →

open module explainer GitHub source

Explainer status: ready · generated 2026-05-13 20:50:15.755782+00:00

   1import Mathlib
   2import IndisputableMonolith.Cost
   3
   4/-!
   5# Supply Chain from RS — E4 Economics Depth
   6
   7Five canonical supply chain tiers (raw materials, components, assembly,
   8distribution, retail) = configDim D = 5.
   9
  10In RS: supply chain disruption = J > 0. Optimal chain = J = 0.
  11Bullwhip effect: J amplifies upstream, phi-ladder scaling of variance.
  12
  13Lean: 5 tiers.
  14
  15Lean status: 0 sorry, 0 axiom.
  16-/
  17
  18namespace IndisputableMonolith.Economics.SupplyChainFromRS
  19open Cost
  20
  21inductive SupplyChainTier where
  22  | rawMaterials | components | assembly | distribution | retail
  23  deriving DecidableEq, Repr, BEq, Fintype
  24
  25theorem supplyChainTierCount : Fintype.card SupplyChainTier = 5 := by decide
  26
  27/-- Optimal supply chain: J = 0. -/
  28theorem optimal_chain : Jcost 1 = 0 := Jcost_unit0
  29
  30structure SupplyChainCert where
  31  five_tiers : Fintype.card SupplyChainTier = 5
  32  optimal : Jcost 1 = 0
  33
  34def supplyChainCert : SupplyChainCert where
  35  five_tiers := supplyChainTierCount
  36  optimal := optimal_chain
  37
  38end IndisputableMonolith.Economics.SupplyChainFromRS
  39

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