pith. sign in

IndisputableMonolith.Philosophy.EthicsFromJCost

IndisputableMonolith/Philosophy/EthicsFromJCost.lean · 48 lines · 6 declarations

show as:
view math explainer →

open module explainer GitHub source

Explainer status: ready · generated 2026-05-16 12:54:52.378631+00:00

   1import Mathlib
   2import IndisputableMonolith.Cost
   3
   4/-!
   5# Ethics from J-Cost — Tier F Philosophy/Ethics
   6
   7The RS ethical framework: an action is ethical iff it does not increase
   8the recognition cost J on the agent's ledger and does not cause
   9asymmetric σ-cost on others.
  10
  11Structural claim: the golden rule "treat others as you would be treated"
  12is equivalent to the symmetry of J: J(r) = J(1/r). An action that
  13imposes cost c on another ALSO imposes cost c on the agent's ledger
  14(through the symmetric recognition structure).
  15
  16Five canonical ethical frameworks (consequentialism, deontology, virtue,
  17care, contractarianism) = configDim D = 5.
  18
  19Lean status: 0 sorry, 0 axiom.
  20-/
  21
  22namespace IndisputableMonolith.Philosophy.EthicsFromJCost
  23open Cost
  24
  25inductive EthicalFramework where
  26  | consequentialism | deontology | virtue | care | contractarianism
  27  deriving DecidableEq, Repr, BEq, Fintype
  28
  29theorem frameworkCount : Fintype.card EthicalFramework = 5 := by decide
  30
  31/-- The golden rule: J(r) = J(1/r) for any recognition ratio r > 0. -/
  32theorem golden_rule {r : ℝ} (hr : 0 < r) : Jcost r = Jcost r⁻¹ := Jcost_symm hr
  33
  34/-- At harmony (r=1), cost is zero. -/
  35theorem harmony_zero : Jcost 1 = 0 := Jcost_unit0
  36
  37structure EthicsCert where
  38  five_frameworks : Fintype.card EthicalFramework = 5
  39  golden_rule : ∀ {r : ℝ}, 0 < r → Jcost r = Jcost r⁻¹
  40  harmony_zero : Jcost 1 = 0
  41
  42def ethicsCert : EthicsCert where
  43  five_frameworks := frameworkCount
  44  golden_rule := Jcost_symm
  45  harmony_zero := Jcost_unit0
  46
  47end IndisputableMonolith.Philosophy.EthicsFromJCost
  48

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