Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

measurability shortcomings #30

Open
LorenzoLuccioli opened this issue May 10, 2024 · 2 comments
Open

measurability shortcomings #30

LorenzoLuccioli opened this issue May 10, 2024 · 2 comments
Labels
Mathlib issue This is an issue with Mathlib, not with our project.

Comments

@LorenzoLuccioli
Copy link
Collaborator

LorenzoLuccioli commented May 10, 2024

Instances where the tactic measurability should work, but it doesn't.

This is one example, if I find more I will add them to this issue:

example {ι : Type*} [Fintype ι] {β : ι → Type*} [∀ i, MeasurableSpace (β i)]
    (s : (i : ι) → Set (β i)) (h : ∀ i, MeasurableSet (s i)) :
    MeasurableSet (Set.pi Set.univ s) := by
  -- measurability
  exact MeasurableSet.univ_pi h

In this case measurability doesn't manage to prove that the product of the Set.univ is measurable. It doesn't work eve if we add the @[measurability] attribute to MeasurableSet.univ_pi.

@LorenzoLuccioli
Copy link
Collaborator Author

LorenzoLuccioli commented May 10, 2024

In this case it doesn't manage to prove that the set where a measurable function is different from zero is measurable.

example (g : ℝ → ℝ) (h : Measurable g) : MeasurableSet {x | g x ≠ 0} := by
  rw [show {x | g x ≠ 0} = g ⁻¹' {x | x ≠ 0} by simp]
  apply h
  simp only [ne_eq, Set.compl_ne_eq_singleton, MeasurableSet.compl_iff, MeasurableSet.singleton,
    MeasurableSet.compl_iff.mp]

@RemyDegenne
Copy link
Owner

This does not alter the fact that the measurability tactic is failing, but you might want to know that that second example has a very short proof:

example (g : ℝ → ℝ) (h : Measurable g) : MeasurableSet {x | g x ≠ 0} :=
  h (measurableSet_singleton _).compl

@RemyDegenne RemyDegenne added the Mathlib issue This is an issue with Mathlib, not with our project. label May 24, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Mathlib issue This is an issue with Mathlib, not with our project.
Projects
None yet
Development

No branches or pull requests

2 participants