forked from RemyDegenne/testing-lower-bounds
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
541c58d
commit 07cdb8b
Showing
1 changed file
with
30 additions
and
0 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
import Mathlib.Data.Real.Basic | ||
import Mathlib.MeasureTheory.MeasurableSpace.Defs | ||
import Mathlib.Tactic.Ring | ||
|
||
namespace Example | ||
|
||
def Measurable {α β : Type*} [MeasurableSpace α] [MeasurableSpace β] | ||
(f : α → β) : Prop := | ||
∀ (t : Set β), MeasurableSet t → MeasurableSet (f ⁻¹' t) | ||
|
||
theorem add_sub_cancel (a b : ℝ) : b + a - b = a := by | ||
rw [add_comm] | ||
rw [add_sub_assoc] | ||
rw [sub_self] | ||
exact add_zero a | ||
|
||
-- Example of a wrong proof | ||
-- example (a b : ℝ) : b + a - b = a := by | ||
-- exact add_zero a | ||
|
||
example (a b : ℝ) : b + a - b = a := by | ||
rw [add_comm, add_sub_assoc, sub_self, add_zero] | ||
|
||
example (a b : ℝ) : b + a - b = a := by | ||
ring | ||
|
||
example (a b : ℝ) (ha_pos : 0 < a) (hb_pos : 0 < b) : 0 < a + b := by | ||
exact add_pos ha_pos hb_pos | ||
|
||
end Example |