Skip to content

Commit

Permalink
Merge branch 'master' of https://github.com/YaelDillies/LeanAPAP
Browse files Browse the repository at this point in the history
  • Loading branch information
b-mehta committed Aug 29, 2024
2 parents 87f3dc8 + c9a7380 commit e654a26
Show file tree
Hide file tree
Showing 34 changed files with 92 additions and 300 deletions.
12 changes: 5 additions & 7 deletions LeanAPAP.lean
Original file line number Diff line number Diff line change
@@ -1,25 +1,23 @@
import LeanAPAP.Extras.BSG
import LeanAPAP.FiniteField.Basic
import LeanAPAP.Mathlib.Algebra.Group.Action.Defs
import LeanAPAP.Mathlib.Algebra.Group.AddChar
import LeanAPAP.Mathlib.Algebra.Order.Group.Unbundled.Basic
import LeanAPAP.Mathlib.Algebra.Order.Module.Defs
import LeanAPAP.Mathlib.Algebra.Star.Basic
import LeanAPAP.Mathlib.Algebra.Star.Rat
import LeanAPAP.Mathlib.Analysis.RCLike.Basic
import LeanAPAP.Mathlib.Analysis.SpecialFunctions.Complex.CircleAddChar
import LeanAPAP.Mathlib.Analysis.SpecialFunctions.Log.Basic
import LeanAPAP.Mathlib.Analysis.SpecialFunctions.Pow.NNReal
import LeanAPAP.Mathlib.Analysis.SpecialFunctions.Pow.Real
import LeanAPAP.Mathlib.Data.ENNReal.Basic
import LeanAPAP.Mathlib.Data.ENNReal.Operations
import LeanAPAP.Mathlib.Data.ENNReal.Real
import LeanAPAP.Mathlib.Data.Fintype.Order
import LeanAPAP.Mathlib.Data.NNReal.Basic
import LeanAPAP.Mathlib.Data.Rat.Cast.Order
import LeanAPAP.Mathlib.MeasureTheory.Function.EssSup
import LeanAPAP.Mathlib.MeasureTheory.Function.LpSeminorm.Basic
import LeanAPAP.Mathlib.MeasureTheory.MeasurableSpace.Defs
import LeanAPAP.Mathlib.MeasureTheory.Measure.MeasureSpaceDef
import LeanAPAP.Mathlib.MeasureTheory.Measure.Typeclasses
import LeanAPAP.Mathlib.Order.Filter.Basic
import LeanAPAP.Mathlib.Order.LiminfLimsup
import LeanAPAP.Mathlib.Probability.ConditionalProbability
import LeanAPAP.Mathlib.Tactic.Positivity
import LeanAPAP.Physics.AlmostPeriodicity
import LeanAPAP.Physics.DRC
Expand Down
1 change: 1 addition & 0 deletions LeanAPAP/Extras/BSG.lean
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import Mathlib.Combinatorics.Additive.Energy
import Mathlib.Data.Real.StarOrdered
import LeanAPAP.Prereqs.Convolution.Discrete.Basic
import LeanAPAP.Prereqs.Convolution.Order

open BigOperators Finset
Expand Down
9 changes: 3 additions & 6 deletions LeanAPAP/FiniteField/Basic.lean
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
import LeanAPAP.Mathlib.Analysis.SpecialFunctions.Log.Basic
import LeanAPAP.Mathlib.Data.Rat.Cast.Order
import Mathlib.FieldTheory.Finite.Basic
import LeanAPAP.Prereqs.Convolution.ThreeAP
import LeanAPAP.Prereqs.FourierTransform.Compact
import LeanAPAP.Prereqs.LargeSpec
import LeanAPAP.Physics.AlmostPeriodicity
import LeanAPAP.Physics.Unbalancing
Expand Down Expand Up @@ -229,9 +227,8 @@ theorem ff (hq₃ : 3 ≤ q) (hq : q.Prime) {A : Finset G} (hA₀ : A.Nonempty)
gcongr
rw [inv_le ‹_› (by positivity)]
calc
65⁻¹ = (1 + 64)⁻¹ := by norm_num
_ ≤ log (1 + 64⁻¹) := le_log_one_add_inv (by norm_num)
_ = log (65 / 64) := by norm_num
65⁻¹ = 1 - (65 / 64)⁻¹ := by norm_num
_ ≤ log (65 / 64) := one_sub_inv_le_log_of_pos (by positivity)
_ = ↑(card V) := by simp [card_eq_pow_finrank (K := ZMod q) (V := V)]
_ ≤ 2 * β⁻¹ ^ 2 := by
rw [← natCast_card_mul_nnratCast_dens, mul_pow, mul_inv, ← mul_assoc,
Expand Down
6 changes: 6 additions & 0 deletions LeanAPAP/Mathlib/Algebra/Group/Action/Defs.lean
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
import Mathlib.Algebra.Group.Action.Defs

@[to_additive]
lemma smul_mul_smul_comm {α β : Type*} [Mul α] [Mul β] [SMul α β] [IsScalarTower α β β]
[IsScalarTower α α β] [SMulCommClass β α β] (a : α) (b : β) (c : α) (d : β) :
(a • b) * c • d = (a * c) • (b * d) := smul_smul_smul_comm a b c d
4 changes: 4 additions & 0 deletions LeanAPAP/Mathlib/Algebra/Order/Module/Defs.lean
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
import Mathlib.Algebra.Order.Module.Defs

attribute [gcongr] smul_le_smul_of_nonneg_left smul_le_smul_of_nonneg_right
smul_lt_smul_of_pos_left smul_lt_smul_of_pos_right
12 changes: 12 additions & 0 deletions LeanAPAP/Mathlib/Algebra/Star/Basic.lean
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
import Mathlib.Algebra.Star.Basic

/-!
# TODO
Swap arguments to `star_nsmul`/`star_zsmul`
-/

variable {α : Type*}

instance StarAddMonoid.toStarModuleInt [AddCommGroup α] [StarAddMonoid α] : StarModule ℤ α where
star_smul _ _ := star_zsmul _ _
16 changes: 16 additions & 0 deletions LeanAPAP/Mathlib/Algebra/Star/Rat.lean
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
import Mathlib.Algebra.Module.Defs
import Mathlib.Algebra.Star.Rat

variable {α : Type*}

@[simp] lemma star_nnqsmul [AddCommMonoid α] [Module ℚ≥0 α] [StarAddMonoid α] (q : ℚ≥0) (a : α) :
star (q • a) = q • star a := sorry

@[simp] lemma star_qsmul [AddCommGroup α] [Module ℚ α] [StarAddMonoid α] (q : ℚ) (a : α) :
star (q • a) = q • star a := sorry

instance StarAddMonoid.toStarModuleNNRat [AddCommMonoid α] [Module ℚ≥0 α] [StarAddMonoid α] :
StarModule ℚ≥0 α where star_smul := star_nnqsmul

instance StarAddMonoid.toStarModuleRat [AddCommGroup α] [Module ℚ α] [StarAddMonoid α] :
StarModule ℚ α where star_smul := star_qsmul
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
import Mathlib.Analysis.SpecialFunctions.Complex.CircleAddChar
import Mathlib.Algebra.EuclideanDomain.Basic
import Mathlib.Algebra.EuclideanDomain.Field
import Mathlib.Analysis.SpecialFunctions.Complex.Circle

open AddChar Multiplicative Real
open scoped ComplexConjugate Real
Expand Down
192 changes: 0 additions & 192 deletions LeanAPAP/Mathlib/Analysis/SpecialFunctions/Log/Basic.lean

This file was deleted.

1 change: 0 additions & 1 deletion LeanAPAP/Mathlib/Analysis/SpecialFunctions/Pow/NNReal.lean
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import Mathlib.Analysis.SpecialFunctions.Pow.NNReal
import LeanAPAP.Mathlib.Analysis.SpecialFunctions.Pow.Real

/-!
# TODO
Expand Down
16 changes: 0 additions & 16 deletions LeanAPAP/Mathlib/Analysis/SpecialFunctions/Pow/Real.lean

This file was deleted.

10 changes: 0 additions & 10 deletions LeanAPAP/Mathlib/Data/ENNReal/Basic.lean

This file was deleted.

12 changes: 0 additions & 12 deletions LeanAPAP/Mathlib/Data/ENNReal/Operations.lean

This file was deleted.

3 changes: 0 additions & 3 deletions LeanAPAP/Mathlib/Data/ENNReal/Real.lean

This file was deleted.

10 changes: 1 addition & 9 deletions LeanAPAP/Mathlib/Data/NNReal/Basic.lean
Original file line number Diff line number Diff line change
@@ -1,15 +1,7 @@
import Mathlib.Data.NNReal.Basic

open Set

namespace NNReal
variable {ι : Sort*} {f : ι → ℝ≥0}

attribute [simp] coe_sum

@[simp] lemma iSup_eq_zero (hf : BddAbove (range f)) : ⨆ i, f i = 0 ↔ ∀ i, f i = 0 := by
cases isEmpty_or_nonempty ι
· simp
· simp [← bot_eq_zero', ← le_bot_iff, ciSup_le_iff hf]
@[simp, norm_cast] lemma coe_nnqsmul (q : ℚ≥0) (x : ℝ≥0) : ↑(q • x) = (q • x : ℝ) := rfl

end NNReal
11 changes: 0 additions & 11 deletions LeanAPAP/Mathlib/Data/Rat/Cast/Order.lean

This file was deleted.

1 change: 0 additions & 1 deletion LeanAPAP/Mathlib/MeasureTheory/Function/EssSup.lean
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import Mathlib.MeasureTheory.Function.EssSup
import Mathlib.MeasureTheory.Measure.MeasureSpace
import LeanAPAP.Mathlib.Order.LiminfLimsup

open Filter MeasureTheory
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import Mathlib.MeasureTheory.Function.LpSeminorm.Basic
import LeanAPAP.Mathlib.Data.ENNReal.Real

noncomputable section

Expand Down
Loading

0 comments on commit e654a26

Please sign in to comment.