Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Also make it use `withoutRecover` when elaborating arguments (like in `apply`), and in addition use `exprToSyntax` to make sure each argument is elaborated only once. Adding `withMainContext` fixes the bug reported by @urkud [on Zulip](https://leanprover.zulipchat.com/#narrow/stream/287929-mathlib4/topic/bug.20in.20.60borelize.60/near/367468010).
- Loading branch information
Showing
2 changed files
with
45 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
import Mathlib.MeasureTheory.Constructions.BorelSpace.Basic | ||
|
||
example [TopologicalSpace α] [inst : MeasurableSpace α] [BorelSpace α] : MeasurableSet (∅ : Set α) := by | ||
guard_target = @MeasurableSet α inst ∅ | ||
borelize α | ||
guard_target = @MeasurableSet α (borel α) ∅ | ||
apply MeasurableSet.empty | ||
|
||
example [TopologicalSpace α] : True := by | ||
borelize α | ||
have h : MeasurableSet (∅ : Set α) := MeasurableSet.empty | ||
guard_hyp h : @MeasurableSet α (borel α) ∅ | ||
trivial | ||
|
||
example : True := by | ||
obtain ⟨α, ⟨hα⟩⟩ : ∃ α : Type, Nonempty (TopologicalSpace α) := ⟨ℕ, ⟨inferInstance⟩⟩ | ||
borelize α | ||
have h : MeasurableSet (∅ : Set α) := MeasurableSet.empty | ||
guard_hyp h : @MeasurableSet α (borel α) ∅ | ||
trivial | ||
|
||
example : True := by | ||
set α := ℕ | ||
borelize α | ||
have h : MeasurableSet (∅ : Set α) := MeasurableSet.empty | ||
guard_hyp h : @MeasurableSet α (borel α) ∅ | ||
trivial | ||
|
||
example : True := by | ||
have h1 : MeasurableSet (∅ : Set ℕ) := MeasurableSet.empty | ||
guard_hyp h1 : @MeasurableSet ℕ Nat.instMeasurableSpace ∅ | ||
borelize ℕ | ||
have h2 : MeasurableSet (∅ : Set ℕ) := MeasurableSet.empty | ||
guard_hyp h2 : @MeasurableSet ℕ (borel ℕ) ∅ | ||
trivial |