Samplinglib
Lean gate not recorded for this source state main · 0e31a3cda412
production module

AutoSamplingTheory.TechnicalLemmas.InformationTheory.RelativeFisher

Read the mathematical statements and proofs in order

7 named declarations scanned from AutoSamplingTheory/TechnicalLemmas/InformationTheory/RelativeFisher.lean.

Imports
Imported by
Placeholder scan
0 declaration(s) flagged
Gate status
Partial

Declarations

abbrev AutoSamplingTheory.TechnicalLemmas.InformationTheory.RelativeFisher.State Partial Not mapped

Read the complete mathematical statement and proof, with Lean below each

No declaration docstring.

abbrev State := EuclideanSpace ℝ ι

/-- Pointwise relative-Fisher energy for a supplied density and a supplied
log-density ratio. -/
def AutoSamplingTheory.TechnicalLemmas.InformationTheory.RelativeFisher.densityEnergy Partial Not mapped

Read the complete mathematical statement and proof, with Lean below each

- Pointwise relative-Fisher energy for a supplied density and a supplied log-density ratio.

noncomputable def densityEnergy
    (q logRatio : State (ι := ι) → ℝ) (x : State (ι := ι)) : ℝ :=
  q x * ‖gradient logRatio x‖ ^ 2

/-- Relative Fisher information with respect to an explicit base measure.

For the usual Euclidean density representation the base measure will be
Lebesgue measure and `q` will be the density of `mu`; equivalently the integral
is `integral ||grad log(d mu / d pi)||^2 d mu` after the Radon--Nikodym bridge is
proved. -/
def AutoSamplingTheory.TechnicalLemmas.InformationTheory.RelativeFisher.information Partial Not mapped

Read the complete mathematical statement and proof, with Lean below each

- Relative Fisher information with respect to an explicit base measure. For the usual Euclidean density representation the base measure will be Lebesgue measure and `q` will be the density of `mu`; equivalently the integral is `integral ||grad log(d mu / d pi)||^2 d mu` after the Radon--Nikodym bridge is proved.

noncomputable def information
    (base : Measure (State (ι := ι)))
    (q logRatio : State (ι := ι) → ℝ) : ℝ :=
  ∫ x, densityEnergy q logRatio x ∂base

/-- Fisher energy density is nonnegative wherever the supplied density is
nonnegative. -/
theorem AutoSamplingTheory.TechnicalLemmas.InformationTheory.RelativeFisher.densityEnergy_nonneg Partial Not mapped

Read the complete mathematical statement and proof, with Lean below each

- Fisher energy density is nonnegative wherever the supplied density is nonnegative.

theorem densityEnergy_nonneg
    {q logRatio : State (ι := ι) → ℝ} {x : State (ι := ι)}
    (hq : 0 ≤ q x) :
    0 ≤ densityEnergy q logRatio x := by
  exact mul_nonneg hq (sq_nonneg _)

/-- A vanishing relative score gives zero pointwise Fisher energy. -/
theorem AutoSamplingTheory.TechnicalLemmas.InformationTheory.RelativeFisher.densityEnergy_eq_zero_of_gradient_eq_zero Partial Not mapped

Read the complete mathematical statement and proof, with Lean below each

- A vanishing relative score gives zero pointwise Fisher energy.

theorem densityEnergy_eq_zero_of_gradient_eq_zero
    {q logRatio : State (ι := ι) → ℝ} {x : State (ι := ι)}
    (hgrad : gradient logRatio x = 0) :
    densityEnergy q logRatio x = 0 := by
  simp [densityEnergy, hgrad]

/-- If the relative score vanishes almost everywhere, then the relative Fisher
information vanishes.  This statement needs no positivity or normalization
assumption on `q`; those belong to the source-facing density bridge. -/
theorem AutoSamplingTheory.TechnicalLemmas.InformationTheory.RelativeFisher.information_eq_zero_of_gradient_ae_eq_zero Partial Not mapped

Read the complete mathematical statement and proof, with Lean below each

- If the relative score vanishes almost everywhere, then the relative Fisher information vanishes. This statement needs no positivity or normalization assumption on `q`; those belong to the source-facing density bridge.

theorem information_eq_zero_of_gradient_ae_eq_zero
    (base : Measure (State (ι := ι)))
    (q logRatio : State (ι := ι) → ℝ)
    (hgrad : ∀ᵐ x ∂base, gradient logRatio x = 0) :
    information base q logRatio = 0 := by
  rw [information]
  apply integral_eq_zero_of_ae
  filter_upwards [hgrad] with x hx
  exact densityEnergy_eq_zero_of_gradient_eq_zero hx

/-- The Fisher functional is insensitive to changing the supplied log-ratio on
an a.e. set *provided its gradients themselves agree a.e.*.  This is the exact
representative-level congruence needed after a Sobolev/Radon--Nikodym layer has
chosen versions. -/
theorem AutoSamplingTheory.TechnicalLemmas.InformationTheory.RelativeFisher.information_congr_gradient_ae Partial Not mapped

Read the complete mathematical statement and proof, with Lean below each

- The Fisher functional is insensitive to changing the supplied log-ratio on an a.e. set *provided its gradients themselves agree a.e.*. This is the exact representative-level congruence needed after a Sobolev/Radon--Nikodym layer has chosen versions.

theorem information_congr_gradient_ae
    (base : Measure (State (ι := ι)))
    (q r s : State (ι := ι) → ℝ)
    (hgrad : ∀ᵐ x ∂base, gradient r x = gradient s x) :
    information base q r = information base q s := by
  rw [information, information]
  apply integral_congr_ae
  filter_upwards [hgrad] with x hx
  simp [densityEnergy, hx]

end

end RelativeFisher
end InformationTheory
end TechnicalLemmas
end AutoSamplingTheory