Skip to content

feat(MeasureTheory/BorelSpace): add measurable_iSup_of_lowerSemicontinuous#37552

Open
pitmonticone wants to merge 2 commits intoleanprover-community:masterfrom
pitmonticone:carleson/measurable-biSup-continuousOn
Open

feat(MeasureTheory/BorelSpace): add measurable_iSup_of_lowerSemicontinuous#37552
pitmonticone wants to merge 2 commits intoleanprover-community:masterfrom
pitmonticone:carleson/measurable-biSup-continuousOn

Conversation

@pitmonticone
Copy link
Copy Markdown
Member

Add measurable_biSup_of_continuousOn: the supremum of a family of measurable functions parameterized by a separable pseudometric space is measurable, provided the family is continuous on the parameter set.

Upstreamed from the Carleson project.

Co-authored-by: Jeremy Tan Jie Rui [email protected]


@pitmonticone pitmonticone added carleson part of the ongoing formalization of Carleson's theorem easy < 20s of review time. See the lifecycle page for guidelines. labels Apr 2, 2026
@github-actions
Copy link
Copy Markdown

github-actions bot commented Apr 2, 2026

PR summary f51efbe0b8

Import changes for modified files

No significant changes to the import graph

Import changes for all files
Files Import difference

Declarations diff

+ measurable_iSup_of_lowerSemicontinuous

You can run this locally as follows
## summary with just the declaration names:
./scripts/pr_summary/declarations_diff.sh <optional_commit>

## more verbose report:
./scripts/pr_summary/declarations_diff.sh long <optional_commit>

The doc-module for scripts/pr_summary/declarations_diff.sh contains some details about this script.


No changes to technical debt.

You can run this locally as

./scripts/reporting/technical-debt-metrics.sh pr_summary
  • The relative value is the weighted sum of the differences with weight given by the inverse of the current value of the statistic.
  • The absolute value is the relative value divided by the total sum of the inverses of the current values (i.e. the weighted average of the differences).

@github-actions github-actions bot added the t-measure-probability Measure theory / Probability theory label Apr 2, 2026
@CoolRmal
Copy link
Copy Markdown
Contributor

CoolRmal commented Apr 2, 2026

The pseudometric space structure is only used to ensure that a subset of a separable space is separable, which then allows you to extract a countable dense sequence through TopologicalSpace.IsSeparable.exists_countable_dense_subset, so I believe this theorem should be proved for iSup (with the [SeparableSpace ι] assumption) instead of biSup, and then you can convertbiSup into iSup using theorems like iSup_subtype'' when you apply this result in the Carleson project. Actually I created the following more general version while I was working on Doob's maximal inequality (see measurable_iSup_of_rightContinuous).

import Mathlib.MeasureTheory.Constructions.BorelSpace.Order

open MeasureTheory TopologicalSpace Set Filter

lemma measurable_biSup_of_continuousOn [CompleteLinearOrder β] [OrderTopology β]
    [SecondCountableTopology β] {ι : Type*} [TopologicalSpace ι] [SeparableSpace ι]
    {f : ι → δ → β} (mf : ∀ t, Measurable (f t)) (cf : ∀ x, LowerSemicontinuous (f · x)) :
    Measurable (⨆ i, f i) := by
  refine measurable_of_Ioi fun c ↦ ?_
  obtain ⟨J, cJ, dJ⟩ := TopologicalSpace.exists_countable_dense ι
  suffices (⨆ i, f i) ⁻¹' Ioi c = ⋃ j ∈ J, {x | c < f j x} by
    rw [this]
    exact MeasurableSet.biUnion cJ fun j mj ↦ (measurableSet_lt measurable_const (mf j))
  ext x
  push _ ∈ _
  simp_rw [iSup_apply, lt_iSup_iff]
  constructor
  · intro ⟨i, hi⟩
    simp only [lowerSemicontinuous_iff] at cf
    obtain ⟨v, hv⟩ := eventually_iff_exists_mem.1 (cf x i c hi)
    have hj := dJ.inter_nhds_nonempty hv.1
    exact ⟨hj.some, mem_of_mem_inter_left hj.some_mem, hv.2 _ (mem_of_mem_inter_right hj.some_mem)⟩
  · intro ⟨i, h, hi⟩
    use i

The situation in Doob's maximal inequality is actually a bit different: I need right continuity there and I also need to take into account the set of points isolated from the right, so I assume that index set ι carries a second countable order topology. Not sure whether there is a more general framework that can unify the version above and the version I proved in Doob's maximal inequality.

This theorem should also be true for functions taking values in a conditionally complete linear order, but the proof is definitely going to be more complicated.

@pitmonticone pitmonticone force-pushed the carleson/measurable-biSup-continuousOn branch from 86a91ea to 364b852 Compare April 3, 2026 10:37
@pitmonticone
Copy link
Copy Markdown
Member Author

Thanks @CoolRmal! Applied your generalized version with iSup, LowerSemicontinuous, and CompleteLinearOrder.

@pitmonticone pitmonticone changed the title feat(MeasureTheory/BorelSpace): add measurable_biSup_of_continuousOn feat(MeasureTheory/BorelSpace): add measurable_iSup_of_lowerSemicontinuous Apr 3, 2026
@grunweg grunweg removed the easy < 20s of review time. See the lifecycle page for guidelines. label Apr 3, 2026
@grunweg
Copy link
Copy Markdown
Contributor

grunweg commented Apr 3, 2026

Can you fix the build failure, please?

@grunweg grunweg added the awaiting-CI This PR does not pass CI yet. This label is automatically removed once it does. label Apr 3, 2026
@pitmonticone pitmonticone force-pushed the carleson/measurable-biSup-continuousOn branch from 364b852 to 83514c5 Compare April 3, 2026 11:34
@RemyDegenne RemyDegenne removed their assignment Apr 3, 2026
…inuous`

Add `measurable_iSup_of_lowerSemicontinuous`: the supremum of a family of measurable functions parameterized by a separable topological space is measurable, provided the family is lower semicontinuous in the parameter.

Upstreamed from the [Carleson](https://github.com/fpvandoorn/carleson) project.

Co-authored-by: Jeremy Tan Jie Rui <[email protected]>
Co-authored-by: CoolRmal <[email protected]>
@pitmonticone pitmonticone force-pushed the carleson/measurable-biSup-continuousOn branch from 83514c5 to 6806149 Compare April 3, 2026 12:01
@github-actions github-actions bot removed the awaiting-CI This PR does not pass CI yet. This label is automatically removed once it does. label Apr 3, 2026
@grunweg
Copy link
Copy Markdown
Contributor

grunweg commented Apr 3, 2026

As a general comment, @pitmonticone: I see you force-pushing changes after you got some non-trivial review comments. That makes is harder to reviewers to see what you changed. Going forward, can you add further changes as separate comments, please? Thanks!

@grunweg
Copy link
Copy Markdown
Contributor

grunweg commented Apr 3, 2026

(I will hopefully have time to review these PRs, but possibly only in a week.)

@pitmonticone
Copy link
Copy Markdown
Member Author

Yep, my bad. I've done a few of those by mistake. Already fixed in the latest commits. Sorry.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

carleson part of the ongoing formalization of Carleson's theorem t-measure-probability Measure theory / Probability theory

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants