Zulip Chat Archive
Stream: Is there code for X?
Topic: 'almost everywhere' version of le_of_forall_gt
Joris van Winden (Jan 21 2026 at 09:22):
I proved the following lemma which is common in probability theory. It gives an epsilon of room when checking a.e. inequalities, with the epsilon being outside of the a.e. quantifier.
Before I make a PR I wanted to ask if something similar might already exist. Does it?
theorem ae_le_of_forall_gt_ae_le [LinearOrder β] [TopologicalSpace β]
[OrderTopology β] [DenselyOrdered β] [TopologicalSpace.SeparableSpace β]
{a : β} {f : α → β} (h : (∀ b : β, a < b → ∀ᵐ x ∂μ, f x ≤ b)) : (∀ᵐ x ∂μ, f x ≤ a)
Yongxi Lin (Aaron) (Jan 21 2026 at 09:36):
MeasureTheory.ae_le_const_iff_forall_gt_measure_zero
Joris van Winden (Jan 21 2026 at 10:00):
Thanks! I guess I will hold off then
Joris van Winden (Jan 24 2026 at 15:17):
Since MeasureTheory.ae_le_const_iff_forall_gt_measure_zero is a bit awkward to use directly when manipulating a.e. inequalities, I decided to open #34375 anyway. The pull request also includes le/ge versions for when the linear ordering is dense.
Last updated: Feb 28 2026 at 14:05 UTC