pith. machine review for the scientific record. sign in

IndisputableMonolith.Physics.GeophysicsFromRS

IndisputableMonolith/Physics/GeophysicsFromRS.lean · 43 lines · 6 declarations

show as:
view math explainer →

open module explainer GitHub source

Explainer status: pending

   1import Mathlib
   2
   3/-!
   4# Geophysics from RS — C Earth Science
   5
   6Five canonical Earth layers (inner core, outer core, lower mantle,
   7upper mantle, crust) = configDim D = 5.
   8
   9In RS: Earth = nested recognition spheres.
  10Magnetic field: J = 0 axis alignment for dipole.
  11
  12Five canonical geophysical observables (seismicity, gravimetry, geomagnetism,
  13heat flow, GPS geodesy) = configDim D.
  14
  15Lean: 5 Earth layers + 5 observables.
  16
  17Lean status: 0 sorry, 0 axiom.
  18-/
  19
  20namespace IndisputableMonolith.Physics.GeophysicsFromRS
  21
  22inductive EarthLayer where
  23  | innerCore | outerCore | lowerMantle | upperMantle | crust
  24  deriving DecidableEq, Repr, BEq, Fintype
  25
  26theorem earthLayerCount : Fintype.card EarthLayer = 5 := by decide
  27
  28inductive GeophysicalObservable where
  29  | seismicity | gravimetry | geomagnetism | heatFlow | gpsGeodesy
  30  deriving DecidableEq, Repr, BEq, Fintype
  31
  32theorem geophysicalObservableCount : Fintype.card GeophysicalObservable = 5 := by decide
  33
  34structure GeophysicsCert where
  35  five_layers : Fintype.card EarthLayer = 5
  36  five_observables : Fintype.card GeophysicalObservable = 5
  37
  38def geophysicsCert : GeophysicsCert where
  39  five_layers := earthLayerCount
  40  five_observables := geophysicalObservableCount
  41
  42end IndisputableMonolith.Physics.GeophysicsFromRS
  43

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