pith. machine review for the scientific record. sign in

IndisputableMonolith.Mathematics.FourierAnalysisFromRS

IndisputableMonolith/Mathematics/FourierAnalysisFromRS.lean · 55 lines · 8 declarations

show as:
view math explainer →

open module explainer GitHub source

Explainer status: ready · generated 2026-05-13 21:29:06.024853+00:00

   1import Mathlib
   2import IndisputableMonolith.Constants
   3
   4/-!
   5# Fourier Analysis from RS — C Mathematics / S1 QFT
   6
   7Fourier analysis decomposes functions into frequency components.
   8In RS: the DFT-8 mode structure = 8-tick harmonic comb.
   9
  10The 8-tick recognition period gives 8 = 2^D Fourier modes.
  11The fundamental = 5φ/8 Hz (from DFT8SpectralSignature.lean).
  12
  13Five canonical Fourier-related operations (DFT, FFT, convolution,
  14correlation, power spectrum) = configDim D = 5.
  15
  16Key: DFT has 8 = 2^D modes at D=3.
  17
  18Lean: 5 operations, 8 = 2^3.
  19
  20Lean status: 0 sorry, 0 axiom.
  21-/
  22
  23namespace IndisputableMonolith.Mathematics.FourierAnalysisFromRS
  24open Constants
  25
  26inductive FourierOperation where
  27  | DFT | FFT | convolution | correlation | powerSpectrum
  28  deriving DecidableEq, Repr, BEq, Fintype
  29
  30theorem fourierOperationCount : Fintype.card FourierOperation = 5 := by decide
  31
  32def dft8ModeCount : ℕ := 2 ^ 3
  33theorem dft8_eq_8 : dft8ModeCount = 8 := by decide
  34
  35/-- DFT-8 fundamental = 5φ/8 Hz ≈ 1.006 Hz. -/
  36noncomputable def dft8Fundamental : ℝ := 5 * phi / 8
  37
  38theorem dft8Fundamental_pos : 0 < dft8Fundamental := by
  39  unfold dft8Fundamental
  40  apply div_pos
  41  · apply mul_pos (by norm_num) phi_pos
  42  · norm_num
  43
  44structure FourierCert where
  45  five_ops : Fintype.card FourierOperation = 5
  46  dft8_modes : dft8ModeCount = 8
  47  fundamental_pos : 0 < dft8Fundamental
  48
  49noncomputable def fourierCert : FourierCert where
  50  five_ops := fourierOperationCount
  51  dft8_modes := dft8_eq_8
  52  fundamental_pos := dft8Fundamental_pos
  53
  54end IndisputableMonolith.Mathematics.FourierAnalysisFromRS
  55

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