Skip to content

Commit 33f13f9

Browse files
committed
Bump mathlib to v4.25.2
1 parent 6212c9f commit 33f13f9

File tree

5 files changed

+49
-34
lines changed

5 files changed

+49
-34
lines changed
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
import Mathlib.Analysis.Normed.Ring.Basic
2+
3+
variable {R : Type*} [SeminormedRing R] {a b c : R}
4+
5+
lemma norm_one_sub_mul (ha : ‖a‖ ≤ 1) : ‖c - a * b‖ ≤ ‖c - a‖ + ‖1 - b‖ := by
6+
calc ‖c - a * b‖ = ‖(c - a) + a * (1 - b)‖ := by noncomm_ring
7+
_ = ‖c - a‖ + ‖1 - b‖ := by grw [norm_add_le, norm_mul_le, ha, one_mul]
8+
9+
lemma norm_one_sub_mul' (hb : ‖b‖ ≤ 1) : ‖c - a * b‖ ≤ ‖1 - a‖ + ‖c - b‖ :=
10+
(norm_one_sub_mul (R := Rᵐᵒᵖ) hb).trans_eq (add_comm _ _)
11+
12+
lemma nnnorm_one_sub_mul (ha : ‖a‖₊ ≤ 1) : ‖c - a * b‖₊ ≤ ‖c - a‖₊ + ‖1 - b‖₊ :=
13+
norm_one_sub_mul ha
14+
15+
lemma nnnorm_one_sub_mul' (hb : ‖b‖₊ ≤ 1) : ‖c - a * b‖₊ ≤ ‖1 - a‖₊ + ‖c - b‖₊ :=
16+
norm_one_sub_mul' hb

LeanAPAP/Prereqs/Bohr/Basic.lean

Lines changed: 20 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,26 @@
1+
import LeanAPAP.Mathlib.Analysis.Normed.Ring.Basic
12
import Mathlib.Analysis.Complex.Basic
23
import Mathlib.Analysis.Fourier.FiniteAbelian.PontryaginDuality
34

5+
lemma norm_one_sub_mul {R : Type*} [SeminormedRing R] {a b c : R} (ha : ‖a‖ ≤ 1) :
6+
‖c - a * b‖ ≤ ‖c - a‖ + ‖1 - b‖ := by
7+
calc ‖c - a * b‖ = ‖(c - a) + a * (1 - b)‖ := by noncomm_ring
8+
_ = ‖c - a‖ + ‖1 - b‖ := by grw [norm_add_le, norm_mul_le, ha, one_mul]
9+
10+
lemma norm_one_sub_mul' {R : Type*} [SeminormedRing R] {a b c : R} (hb : ‖b‖ ≤ 1) :
11+
‖c - a * b‖ ≤ ‖1 - a‖ + ‖c - b‖ :=
12+
(norm_one_sub_mul (R := Rᵐᵒᵖ) hb).trans_eq (add_comm _ _)
13+
14+
lemma nnnorm_one_sub_mul {R : Type*} [SeminormedRing R] {a b c : R} (ha : ‖a‖₊ ≤ 1) :
15+
‖c - a * b‖₊ ≤ ‖c - a‖₊ + ‖1 - b‖₊ :=
16+
norm_one_sub_mul ha
17+
18+
lemma nnnorm_one_sub_mul' {R : Type*} [SeminormedRing R] {a b c : R} (hb : ‖b‖₊ ≤ 1) :
19+
‖c - a * b‖₊ ≤ ‖1 - a‖₊ + ‖c - b‖₊ :=
20+
norm_one_sub_mul' hb
21+
22+
#min_imports
23+
424
open AddChar Function
525
open scoped NNReal ENNReal Finset
626

@@ -326,26 +346,6 @@ lemma chordSet_monotone : Monotone (chordSet : BohrSet G → Set G) := fun _ _ =
326346

327347
open Pointwise
328348

329-
lemma norm_one_sub_mul {R : Type*} [SeminormedRing R] {a b c : R} (ha : ‖a‖ ≤ 1) :
330-
‖c - a * b‖ ≤ ‖c - a‖ + ‖1 - b‖ := by
331-
calc ‖c - a * b‖ = ‖(c - a) + a * (1 - b)‖ := by noncomm_ring
332-
_ ≤ ‖c - a‖ + ‖a * (1 - b)‖ := norm_add_le _ _
333-
_ ≤ ‖c - a‖ + ‖a‖ * ‖1 - b‖ := add_le_add_left (norm_mul_le _ _) _
334-
_ ≤ ‖c - a‖ + 1 * ‖1 - b‖ := by gcongr
335-
_ = ‖c - a‖ + ‖1 - b‖ := by simp
336-
337-
lemma norm_one_sub_mul' {R : Type*} [SeminormedRing R] {a b c : R} (hb : ‖b‖ ≤ 1) :
338-
‖c - a * b‖ ≤ ‖1 - a‖ + ‖c - b‖ :=
339-
(norm_one_sub_mul (R := Rᵐᵒᵖ) hb).trans_eq (add_comm _ _)
340-
341-
lemma nnnorm_one_sub_mul {R : Type*} [SeminormedRing R] {a b c : R} (ha : ‖a‖₊ ≤ 1) :
342-
‖c - a * b‖₊ ≤ ‖c - a‖₊ + ‖1 - b‖₊ :=
343-
norm_one_sub_mul ha
344-
345-
lemma nnnorm_one_sub_mul' {R : Type*} [SeminormedRing R] {a b c : R} (hb : ‖b‖₊ ≤ 1) :
346-
‖c - a * b‖₊ ≤ ‖1 - a‖₊ + ‖c - b‖₊ :=
347-
norm_one_sub_mul' hb
348-
349349
lemma add_subset_of_ewidth [Finite G] {B₁ B₂ B₃ : BohrSet G}
350350
(h : B₁.ewidth + B₂.ewidth ≤ B₃.ewidth) :
351351
B₁.chordSet + B₂.chordSet ⊆ B₃.chordSet := by

lake-manifest.json

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -15,17 +15,17 @@
1515
"type": "git",
1616
"subDir": null,
1717
"scope": "",
18-
"rev": "029db123ddaa7f8fd0d18cea3b1b33bf84dacd1e",
18+
"rev": "964995275b0f0d5a93674b90ade7c5a1aea8e936",
1919
"name": "mathlib",
2020
"manifestFile": "lake-manifest.json",
21-
"inputRev": "v4.25.0",
21+
"inputRev": null,
2222
"inherited": false,
2323
"configFile": "lakefile.lean"},
2424
{"url": "https://github.com/leanprover-community/plausible",
2525
"type": "git",
2626
"subDir": null,
2727
"scope": "leanprover-community",
28-
"rev": "2503bfb5e2d4d8202165f5bd2cc39e44a3be31c3",
28+
"rev": "74835c84b38e4070b8240a063c6417c767e551ae",
2929
"name": "plausible",
3030
"manifestFile": "lake-manifest.json",
3131
"inputRev": "main",
@@ -35,7 +35,7 @@
3535
"type": "git",
3636
"subDir": null,
3737
"scope": "leanprover-community",
38-
"rev": "2ed4ba69b6127de8f5c2af83cccacd3c988b06bf",
38+
"rev": "3591c3f664ac3719c4c86e4483e21e228707bfa2",
3939
"name": "LeanSearchClient",
4040
"manifestFile": "lake-manifest.json",
4141
"inputRev": "main",
@@ -45,7 +45,7 @@
4545
"type": "git",
4646
"subDir": null,
4747
"scope": "leanprover-community",
48-
"rev": "009064c21bad4d7f421f2901c5e817c8bf3468cb",
48+
"rev": "6e3bb4bf31f731ab28891fe229eb347ec7d5dad3",
4949
"name": "importGraph",
5050
"manifestFile": "lake-manifest.json",
5151
"inputRev": "main",
@@ -55,17 +55,17 @@
5555
"type": "git",
5656
"subDir": null,
5757
"scope": "leanprover-community",
58-
"rev": "fb8ed0a85a96e3176f6e94b20d413ea72d92576d",
58+
"rev": "2aaad968dd10a168b644b6a5afd4b92496af4710",
5959
"name": "proofwidgets",
6060
"manifestFile": "lake-manifest.json",
61-
"inputRev": "v0.0.77",
61+
"inputRev": "v0.0.82",
6262
"inherited": true,
6363
"configFile": "lakefile.lean"},
6464
{"url": "https://github.com/leanprover-community/aesop",
6565
"type": "git",
6666
"subDir": null,
6767
"scope": "leanprover-community",
68-
"rev": "26e4c7c0e63eb3e6cce3cf7faba27b8526ea8349",
68+
"rev": "ea86e311a31a4dfa2abf3d7c0664b8c28499369e",
6969
"name": "aesop",
7070
"manifestFile": "lake-manifest.json",
7171
"inputRev": "master",
@@ -75,7 +75,7 @@
7575
"type": "git",
7676
"subDir": null,
7777
"scope": "leanprover-community",
78-
"rev": "2781d8ad404303b2fe03710ac7db946ddfe3539f",
78+
"rev": "a31845b5557fd5e47d52b9e2977a1b0eff3c38c3",
7979
"name": "Qq",
8080
"manifestFile": "lake-manifest.json",
8181
"inputRev": "master",
@@ -85,7 +85,7 @@
8585
"type": "git",
8686
"subDir": null,
8787
"scope": "leanprover-community",
88-
"rev": "39260e31b7b3f7f05643da95242463b462dc05f1",
88+
"rev": "c0b0d08446817bd410548d9ea8ddcccf5d89f63f",
8989
"name": "batteries",
9090
"manifestFile": "lake-manifest.json",
9191
"inputRev": "main",
@@ -95,10 +95,10 @@
9595
"type": "git",
9696
"subDir": null,
9797
"scope": "leanprover",
98-
"rev": "1dae8b12f8ba27576ffe5ddee78bebf6458157b0",
98+
"rev": "7e1ced9e049a4fab2508980ec4877ca9c46dffc9",
9999
"name": "Cli",
100100
"manifestFile": "lake-manifest.json",
101-
"inputRev": "v4.25.0",
101+
"inputRev": "v4.26.0-rc2",
102102
"inherited": true,
103103
"configFile": "lakefile.toml"}],
104104
"name": "LeanAPAP",

lakefile.toml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,6 @@ linter.style.setOption = true
3939
[[require]]
4040
name = "mathlib"
4141
git = "https://github.com/leanprover-community/mathlib4.git"
42-
rev = "v4.25.0"
4342

4443
[[require]]
4544
name = "checkdecls"

lean-toolchain

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
leanprover/lean4:v4.25.0
1+
leanprover/lean4:v4.26.0-rc2

0 commit comments

Comments
 (0)