pith. machine review for the scientific record. sign in
theorem

diffractionCost_nonneg

proved
show as:
view math explainer →
module
IndisputableMonolith.Crystallography.BraggAngleFromPhiLadder
domain
Crystallography
line
48 · github
papers citing
none yet

open explainer

Read the cached plain-language explainer.

open lean source

IndisputableMonolith.Crystallography.BraggAngleFromPhiLadder on GitHub at line 48.

browse module

All declarations in this module, on Recognition.

explainer page

A cached Ask Recognition explainer exists for this declaration.

open explainer

depends on

used by

formal source

  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