pith. machine review for the scientific record. sign in

IndisputableMonolith.Crystallography.BraggAngleFromPhiLadder

IndisputableMonolith/Crystallography/BraggAngleFromPhiLadder.lean · 68 lines · 8 declarations

show as:
view math explainer →

open module explainer GitHub source

Explainer status: pending

   1import Mathlib
   2import IndisputableMonolith.Constants
   3import IndisputableMonolith.Cost
   4
   5/-!
   6# Bragg Angle Peaks from φ-Ladder (Plan v7 fifty-seventh pass)
   7
   8## Status: STRUCTURAL THEOREM (0 sorry, 0 axiom).
   9
  10Bragg's law: 2d sin(θ) = nλ. For a φ-quasicrystal with interlayer
  11spacings d_n = d_0 / φ^n, the diffraction peaks occur at
  122d_n sin(θ_n) = λ, giving sin(θ_n) = λ φ^n / (2d_0).
  13
  14The ratio of successive peak angles (in the small-angle limit):
  15θ_{n+1} / θ_n ≈ φ (since sin(θ_n) scales with φ^n).
  16
  17The original quasicrystal discovery (Shechtman 1984) showed diffraction
  18patterns with 5-fold symmetry — explained in RS by the φ-lattice structure.
  19
  20## Falsifier
  21
  22Any quasicrystal X-ray diffraction dataset showing peak spacing ratio
  23outside (φ - 0.1, φ + 0.1).
  24-/
  25
  26namespace IndisputableMonolith
  27namespace Crystallography
  28namespace BraggAngleFromPhiLadder
  29
  30open Constants
  31open Cost
  32
  33noncomputable section
  34
  35/-- Peak-angle spacing ratio: φ. -/
  36def braggPeakRatio : ℝ := phi
  37
  38theorem braggPeakRatio_gt_one : 1 < braggPeakRatio := one_lt_phi
  39
  40/-- J-cost on diffraction peak ratio. -/
  41def diffractionCost (measured_angle predicted_angle : ℝ) : ℝ :=
  42  Jcost (measured_angle / predicted_angle)
  43
  44theorem diffractionCost_at_prediction (a : ℝ) (h : a ≠ 0) :
  45    diffractionCost a a = 0 := by
  46  unfold diffractionCost; rw [div_self h]; exact Jcost_unit0
  47
  48theorem diffractionCost_nonneg (m p : ℝ) (hm : 0 < m) (hp : 0 < p) :
  49    0 ≤ diffractionCost m p := by
  50  unfold diffractionCost; exact Jcost_nonneg (div_pos hm hp)
  51
  52structure BraggAngleCert where
  53  ratio_gt_one : 1 < braggPeakRatio
  54  cost_at_prediction : ∀ a : ℝ, a ≠ 0 → diffractionCost a a = 0
  55  cost_nonneg : ∀ m p : ℝ, 0 < m → 0 < p → 0 ≤ diffractionCost m p
  56
  57noncomputable def cert : BraggAngleCert where
  58  ratio_gt_one := braggPeakRatio_gt_one
  59  cost_at_prediction := diffractionCost_at_prediction
  60  cost_nonneg := diffractionCost_nonneg
  61
  62theorem cert_inhabited : Nonempty BraggAngleCert := ⟨cert⟩
  63
  64end
  65end BraggAngleFromPhiLadder
  66end Crystallography
  67end IndisputableMonolith
  68

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