state
stringlengths
0
159k
srcUpToTactic
stringlengths
387
167k
nextTactic
stringlengths
3
9k
declUpToTactic
stringlengths
22
11.5k
declId
stringlengths
38
95
decl
stringlengths
16
1.89k
file_tag
stringlengths
17
73
case hg.hf x : ℝ n_large : 512 ≤ x f : ℝ → ℝ := fun x => log x + sqrt (2 * x) * log (2 * x) - log 4 / 3 * x hf' : ∀ (x : ℝ), 0 < x → 0 < x * (2 * x) ^ sqrt (2 * x) / 4 ^ (x / 3) hf : ∀ (x : ℝ), 0 < x → f x = log (x * (2 * x) ^ sqrt (2 * x) / 4 ^ (x / 3)) h5 : 0 < x ⊢ ConvexOn ℝ (Set.Ioi 0.5) fun x => x
/- Copyright (c) 2020 Patrick Stevens. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Patrick Stevens, Bolton Bailey -/ import Mathlib.Data.Nat.Choose.Factorization import Mathlib.Data.Nat.PrimeNormNum import Mathlib.NumberTheory.Primorial import Mathlib.Analysis.Conve...
exact convexOn_id (convex_Ioi (0.5 : ℝ))
/-- A reified version of the `Bertrand.main_inequality` below. This is not best possible: it actually holds for 464 ≤ x. -/ theorem real_main_inequality {x : ℝ} (n_large : (512 : ℝ) ≤ x) : x * (2 * x) ^ sqrt (2 * x) * 4 ^ (2 * x / 3) ≤ 4 ^ x := by let f : ℝ → ℝ := fun x => log x + sqrt (2 * x) * log (2 * x) - log...
Mathlib.NumberTheory.Bertrand.51_0.gJXoOT9Ce2wC0xc
/-- A reified version of the `Bertrand.main_inequality` below. This is not best possible: it actually holds for 464 ≤ x. -/ theorem real_main_inequality {x : ℝ} (n_large : (512 : ℝ) ≤ x) : x * (2 * x) ^ sqrt (2 * x) * 4 ^ (2 * x / 3) ≤ 4 ^ x
Mathlib_NumberTheory_Bertrand
x : ℝ n_large : 512 ≤ x f : ℝ → ℝ := fun x => log x + sqrt (2 * x) * log (2 * x) - log 4 / 3 * x hf' : ∀ (x : ℝ), 0 < x → 0 < x * (2 * x) ^ sqrt (2 * x) / 4 ^ (x / 3) hf : ∀ (x : ℝ), 0 < x → f x = log (x * (2 * x) ^ sqrt (2 * x) / 4 ^ (x / 3)) h5 : 0 < x h : ConcaveOn ℝ (Set.Ioi 0.5) f ⊢ f x ≤ 0
/- Copyright (c) 2020 Patrick Stevens. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Patrick Stevens, Bolton Bailey -/ import Mathlib.Data.Nat.Choose.Factorization import Mathlib.Data.Nat.PrimeNormNum import Mathlib.NumberTheory.Primorial import Mathlib.Analysis.Conve...
suffices ∃ x1 x2, 0.5 < x1 ∧ x1 < x2 ∧ x2 ≤ x ∧ 0 ≤ f x1 ∧ f x2 ≤ 0 by obtain ⟨x1, x2, h1, h2, h0, h3, h4⟩ := this exact (h.right_le_of_le_left'' h1 ((h1.trans h2).trans_le h0) h2 h0 (h4.trans h3)).trans h4
/-- A reified version of the `Bertrand.main_inequality` below. This is not best possible: it actually holds for 464 ≤ x. -/ theorem real_main_inequality {x : ℝ} (n_large : (512 : ℝ) ≤ x) : x * (2 * x) ^ sqrt (2 * x) * 4 ^ (2 * x / 3) ≤ 4 ^ x := by let f : ℝ → ℝ := fun x => log x + sqrt (2 * x) * log (2 * x) - log...
Mathlib.NumberTheory.Bertrand.51_0.gJXoOT9Ce2wC0xc
/-- A reified version of the `Bertrand.main_inequality` below. This is not best possible: it actually holds for 464 ≤ x. -/ theorem real_main_inequality {x : ℝ} (n_large : (512 : ℝ) ≤ x) : x * (2 * x) ^ sqrt (2 * x) * 4 ^ (2 * x / 3) ≤ 4 ^ x
Mathlib_NumberTheory_Bertrand
x : ℝ n_large : 512 ≤ x f : ℝ → ℝ := fun x => log x + sqrt (2 * x) * log (2 * x) - log 4 / 3 * x hf' : ∀ (x : ℝ), 0 < x → 0 < x * (2 * x) ^ sqrt (2 * x) / 4 ^ (x / 3) hf : ∀ (x : ℝ), 0 < x → f x = log (x * (2 * x) ^ sqrt (2 * x) / 4 ^ (x / 3)) h5 : 0 < x h : ConcaveOn ℝ (Set.Ioi 0.5) f this : ∃ x1 x2, 0.5 < x1 ∧ x1 < x...
/- Copyright (c) 2020 Patrick Stevens. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Patrick Stevens, Bolton Bailey -/ import Mathlib.Data.Nat.Choose.Factorization import Mathlib.Data.Nat.PrimeNormNum import Mathlib.NumberTheory.Primorial import Mathlib.Analysis.Conve...
obtain ⟨x1, x2, h1, h2, h0, h3, h4⟩ := this
/-- A reified version of the `Bertrand.main_inequality` below. This is not best possible: it actually holds for 464 ≤ x. -/ theorem real_main_inequality {x : ℝ} (n_large : (512 : ℝ) ≤ x) : x * (2 * x) ^ sqrt (2 * x) * 4 ^ (2 * x / 3) ≤ 4 ^ x := by let f : ℝ → ℝ := fun x => log x + sqrt (2 * x) * log (2 * x) - log...
Mathlib.NumberTheory.Bertrand.51_0.gJXoOT9Ce2wC0xc
/-- A reified version of the `Bertrand.main_inequality` below. This is not best possible: it actually holds for 464 ≤ x. -/ theorem real_main_inequality {x : ℝ} (n_large : (512 : ℝ) ≤ x) : x * (2 * x) ^ sqrt (2 * x) * 4 ^ (2 * x / 3) ≤ 4 ^ x
Mathlib_NumberTheory_Bertrand
case intro.intro.intro.intro.intro.intro x : ℝ n_large : 512 ≤ x f : ℝ → ℝ := fun x => log x + sqrt (2 * x) * log (2 * x) - log 4 / 3 * x hf' : ∀ (x : ℝ), 0 < x → 0 < x * (2 * x) ^ sqrt (2 * x) / 4 ^ (x / 3) hf : ∀ (x : ℝ), 0 < x → f x = log (x * (2 * x) ^ sqrt (2 * x) / 4 ^ (x / 3)) h5 : 0 < x h : ConcaveOn ℝ (Set.Ioi...
/- Copyright (c) 2020 Patrick Stevens. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Patrick Stevens, Bolton Bailey -/ import Mathlib.Data.Nat.Choose.Factorization import Mathlib.Data.Nat.PrimeNormNum import Mathlib.NumberTheory.Primorial import Mathlib.Analysis.Conve...
exact (h.right_le_of_le_left'' h1 ((h1.trans h2).trans_le h0) h2 h0 (h4.trans h3)).trans h4
/-- A reified version of the `Bertrand.main_inequality` below. This is not best possible: it actually holds for 464 ≤ x. -/ theorem real_main_inequality {x : ℝ} (n_large : (512 : ℝ) ≤ x) : x * (2 * x) ^ sqrt (2 * x) * 4 ^ (2 * x / 3) ≤ 4 ^ x := by let f : ℝ → ℝ := fun x => log x + sqrt (2 * x) * log (2 * x) - log...
Mathlib.NumberTheory.Bertrand.51_0.gJXoOT9Ce2wC0xc
/-- A reified version of the `Bertrand.main_inequality` below. This is not best possible: it actually holds for 464 ≤ x. -/ theorem real_main_inequality {x : ℝ} (n_large : (512 : ℝ) ≤ x) : x * (2 * x) ^ sqrt (2 * x) * 4 ^ (2 * x / 3) ≤ 4 ^ x
Mathlib_NumberTheory_Bertrand
x : ℝ n_large : 512 ≤ x f : ℝ → ℝ := fun x => log x + sqrt (2 * x) * log (2 * x) - log 4 / 3 * x hf' : ∀ (x : ℝ), 0 < x → 0 < x * (2 * x) ^ sqrt (2 * x) / 4 ^ (x / 3) hf : ∀ (x : ℝ), 0 < x → f x = log (x * (2 * x) ^ sqrt (2 * x) / 4 ^ (x / 3)) h5 : 0 < x h : ConcaveOn ℝ (Set.Ioi 0.5) f ⊢ ∃ x1 x2, 0.5 < x1 ∧ x1 < x2 ∧ x...
/- Copyright (c) 2020 Patrick Stevens. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Patrick Stevens, Bolton Bailey -/ import Mathlib.Data.Nat.Choose.Factorization import Mathlib.Data.Nat.PrimeNormNum import Mathlib.NumberTheory.Primorial import Mathlib.Analysis.Conve...
refine' ⟨18, 512, by norm_num1, by norm_num1, n_large, _, _⟩
/-- A reified version of the `Bertrand.main_inequality` below. This is not best possible: it actually holds for 464 ≤ x. -/ theorem real_main_inequality {x : ℝ} (n_large : (512 : ℝ) ≤ x) : x * (2 * x) ^ sqrt (2 * x) * 4 ^ (2 * x / 3) ≤ 4 ^ x := by let f : ℝ → ℝ := fun x => log x + sqrt (2 * x) * log (2 * x) - log...
Mathlib.NumberTheory.Bertrand.51_0.gJXoOT9Ce2wC0xc
/-- A reified version of the `Bertrand.main_inequality` below. This is not best possible: it actually holds for 464 ≤ x. -/ theorem real_main_inequality {x : ℝ} (n_large : (512 : ℝ) ≤ x) : x * (2 * x) ^ sqrt (2 * x) * 4 ^ (2 * x / 3) ≤ 4 ^ x
Mathlib_NumberTheory_Bertrand
x : ℝ n_large : 512 ≤ x f : ℝ → ℝ := fun x => log x + sqrt (2 * x) * log (2 * x) - log 4 / 3 * x hf' : ∀ (x : ℝ), 0 < x → 0 < x * (2 * x) ^ sqrt (2 * x) / 4 ^ (x / 3) hf : ∀ (x : ℝ), 0 < x → f x = log (x * (2 * x) ^ sqrt (2 * x) / 4 ^ (x / 3)) h5 : 0 < x h : ConcaveOn ℝ (Set.Ioi 0.5) f ⊢ 0.5 < 18
/- Copyright (c) 2020 Patrick Stevens. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Patrick Stevens, Bolton Bailey -/ import Mathlib.Data.Nat.Choose.Factorization import Mathlib.Data.Nat.PrimeNormNum import Mathlib.NumberTheory.Primorial import Mathlib.Analysis.Conve...
norm_num1
/-- A reified version of the `Bertrand.main_inequality` below. This is not best possible: it actually holds for 464 ≤ x. -/ theorem real_main_inequality {x : ℝ} (n_large : (512 : ℝ) ≤ x) : x * (2 * x) ^ sqrt (2 * x) * 4 ^ (2 * x / 3) ≤ 4 ^ x := by let f : ℝ → ℝ := fun x => log x + sqrt (2 * x) * log (2 * x) - log...
Mathlib.NumberTheory.Bertrand.51_0.gJXoOT9Ce2wC0xc
/-- A reified version of the `Bertrand.main_inequality` below. This is not best possible: it actually holds for 464 ≤ x. -/ theorem real_main_inequality {x : ℝ} (n_large : (512 : ℝ) ≤ x) : x * (2 * x) ^ sqrt (2 * x) * 4 ^ (2 * x / 3) ≤ 4 ^ x
Mathlib_NumberTheory_Bertrand
x : ℝ n_large : 512 ≤ x f : ℝ → ℝ := fun x => log x + sqrt (2 * x) * log (2 * x) - log 4 / 3 * x hf' : ∀ (x : ℝ), 0 < x → 0 < x * (2 * x) ^ sqrt (2 * x) / 4 ^ (x / 3) hf : ∀ (x : ℝ), 0 < x → f x = log (x * (2 * x) ^ sqrt (2 * x) / 4 ^ (x / 3)) h5 : 0 < x h : ConcaveOn ℝ (Set.Ioi 0.5) f ⊢ 18 < 512
/- Copyright (c) 2020 Patrick Stevens. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Patrick Stevens, Bolton Bailey -/ import Mathlib.Data.Nat.Choose.Factorization import Mathlib.Data.Nat.PrimeNormNum import Mathlib.NumberTheory.Primorial import Mathlib.Analysis.Conve...
norm_num1
/-- A reified version of the `Bertrand.main_inequality` below. This is not best possible: it actually holds for 464 ≤ x. -/ theorem real_main_inequality {x : ℝ} (n_large : (512 : ℝ) ≤ x) : x * (2 * x) ^ sqrt (2 * x) * 4 ^ (2 * x / 3) ≤ 4 ^ x := by let f : ℝ → ℝ := fun x => log x + sqrt (2 * x) * log (2 * x) - log...
Mathlib.NumberTheory.Bertrand.51_0.gJXoOT9Ce2wC0xc
/-- A reified version of the `Bertrand.main_inequality` below. This is not best possible: it actually holds for 464 ≤ x. -/ theorem real_main_inequality {x : ℝ} (n_large : (512 : ℝ) ≤ x) : x * (2 * x) ^ sqrt (2 * x) * 4 ^ (2 * x / 3) ≤ 4 ^ x
Mathlib_NumberTheory_Bertrand
case refine'_1 x : ℝ n_large : 512 ≤ x f : ℝ → ℝ := fun x => log x + sqrt (2 * x) * log (2 * x) - log 4 / 3 * x hf' : ∀ (x : ℝ), 0 < x → 0 < x * (2 * x) ^ sqrt (2 * x) / 4 ^ (x / 3) hf : ∀ (x : ℝ), 0 < x → f x = log (x * (2 * x) ^ sqrt (2 * x) / 4 ^ (x / 3)) h5 : 0 < x h : ConcaveOn ℝ (Set.Ioi 0.5) f ⊢ 0 ≤ f 18
/- Copyright (c) 2020 Patrick Stevens. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Patrick Stevens, Bolton Bailey -/ import Mathlib.Data.Nat.Choose.Factorization import Mathlib.Data.Nat.PrimeNormNum import Mathlib.NumberTheory.Primorial import Mathlib.Analysis.Conve...
have : sqrt (2 * 18) = 6 := (sqrt_eq_iff_mul_self_eq_of_pos (by norm_num1)).mpr (by norm_num1)
/-- A reified version of the `Bertrand.main_inequality` below. This is not best possible: it actually holds for 464 ≤ x. -/ theorem real_main_inequality {x : ℝ} (n_large : (512 : ℝ) ≤ x) : x * (2 * x) ^ sqrt (2 * x) * 4 ^ (2 * x / 3) ≤ 4 ^ x := by let f : ℝ → ℝ := fun x => log x + sqrt (2 * x) * log (2 * x) - log...
Mathlib.NumberTheory.Bertrand.51_0.gJXoOT9Ce2wC0xc
/-- A reified version of the `Bertrand.main_inequality` below. This is not best possible: it actually holds for 464 ≤ x. -/ theorem real_main_inequality {x : ℝ} (n_large : (512 : ℝ) ≤ x) : x * (2 * x) ^ sqrt (2 * x) * 4 ^ (2 * x / 3) ≤ 4 ^ x
Mathlib_NumberTheory_Bertrand
x : ℝ n_large : 512 ≤ x f : ℝ → ℝ := fun x => log x + sqrt (2 * x) * log (2 * x) - log 4 / 3 * x hf' : ∀ (x : ℝ), 0 < x → 0 < x * (2 * x) ^ sqrt (2 * x) / 4 ^ (x / 3) hf : ∀ (x : ℝ), 0 < x → f x = log (x * (2 * x) ^ sqrt (2 * x) / 4 ^ (x / 3)) h5 : 0 < x h : ConcaveOn ℝ (Set.Ioi 0.5) f ⊢ 0 < 6
/- Copyright (c) 2020 Patrick Stevens. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Patrick Stevens, Bolton Bailey -/ import Mathlib.Data.Nat.Choose.Factorization import Mathlib.Data.Nat.PrimeNormNum import Mathlib.NumberTheory.Primorial import Mathlib.Analysis.Conve...
norm_num1
/-- A reified version of the `Bertrand.main_inequality` below. This is not best possible: it actually holds for 464 ≤ x. -/ theorem real_main_inequality {x : ℝ} (n_large : (512 : ℝ) ≤ x) : x * (2 * x) ^ sqrt (2 * x) * 4 ^ (2 * x / 3) ≤ 4 ^ x := by let f : ℝ → ℝ := fun x => log x + sqrt (2 * x) * log (2 * x) - log...
Mathlib.NumberTheory.Bertrand.51_0.gJXoOT9Ce2wC0xc
/-- A reified version of the `Bertrand.main_inequality` below. This is not best possible: it actually holds for 464 ≤ x. -/ theorem real_main_inequality {x : ℝ} (n_large : (512 : ℝ) ≤ x) : x * (2 * x) ^ sqrt (2 * x) * 4 ^ (2 * x / 3) ≤ 4 ^ x
Mathlib_NumberTheory_Bertrand
x : ℝ n_large : 512 ≤ x f : ℝ → ℝ := fun x => log x + sqrt (2 * x) * log (2 * x) - log 4 / 3 * x hf' : ∀ (x : ℝ), 0 < x → 0 < x * (2 * x) ^ sqrt (2 * x) / 4 ^ (x / 3) hf : ∀ (x : ℝ), 0 < x → f x = log (x * (2 * x) ^ sqrt (2 * x) / 4 ^ (x / 3)) h5 : 0 < x h : ConcaveOn ℝ (Set.Ioi 0.5) f ⊢ 6 * 6 = 2 * 18
/- Copyright (c) 2020 Patrick Stevens. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Patrick Stevens, Bolton Bailey -/ import Mathlib.Data.Nat.Choose.Factorization import Mathlib.Data.Nat.PrimeNormNum import Mathlib.NumberTheory.Primorial import Mathlib.Analysis.Conve...
norm_num1
/-- A reified version of the `Bertrand.main_inequality` below. This is not best possible: it actually holds for 464 ≤ x. -/ theorem real_main_inequality {x : ℝ} (n_large : (512 : ℝ) ≤ x) : x * (2 * x) ^ sqrt (2 * x) * 4 ^ (2 * x / 3) ≤ 4 ^ x := by let f : ℝ → ℝ := fun x => log x + sqrt (2 * x) * log (2 * x) - log...
Mathlib.NumberTheory.Bertrand.51_0.gJXoOT9Ce2wC0xc
/-- A reified version of the `Bertrand.main_inequality` below. This is not best possible: it actually holds for 464 ≤ x. -/ theorem real_main_inequality {x : ℝ} (n_large : (512 : ℝ) ≤ x) : x * (2 * x) ^ sqrt (2 * x) * 4 ^ (2 * x / 3) ≤ 4 ^ x
Mathlib_NumberTheory_Bertrand
case refine'_1 x : ℝ n_large : 512 ≤ x f : ℝ → ℝ := fun x => log x + sqrt (2 * x) * log (2 * x) - log 4 / 3 * x hf' : ∀ (x : ℝ), 0 < x → 0 < x * (2 * x) ^ sqrt (2 * x) / 4 ^ (x / 3) hf : ∀ (x : ℝ), 0 < x → f x = log (x * (2 * x) ^ sqrt (2 * x) / 4 ^ (x / 3)) h5 : 0 < x h : ConcaveOn ℝ (Set.Ioi 0.5) f this : sqrt (2 * 1...
/- Copyright (c) 2020 Patrick Stevens. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Patrick Stevens, Bolton Bailey -/ import Mathlib.Data.Nat.Choose.Factorization import Mathlib.Data.Nat.PrimeNormNum import Mathlib.NumberTheory.Primorial import Mathlib.Analysis.Conve...
rw [hf, log_nonneg_iff, this]
/-- A reified version of the `Bertrand.main_inequality` below. This is not best possible: it actually holds for 464 ≤ x. -/ theorem real_main_inequality {x : ℝ} (n_large : (512 : ℝ) ≤ x) : x * (2 * x) ^ sqrt (2 * x) * 4 ^ (2 * x / 3) ≤ 4 ^ x := by let f : ℝ → ℝ := fun x => log x + sqrt (2 * x) * log (2 * x) - log...
Mathlib.NumberTheory.Bertrand.51_0.gJXoOT9Ce2wC0xc
/-- A reified version of the `Bertrand.main_inequality` below. This is not best possible: it actually holds for 464 ≤ x. -/ theorem real_main_inequality {x : ℝ} (n_large : (512 : ℝ) ≤ x) : x * (2 * x) ^ sqrt (2 * x) * 4 ^ (2 * x / 3) ≤ 4 ^ x
Mathlib_NumberTheory_Bertrand
case refine'_1 x : ℝ n_large : 512 ≤ x f : ℝ → ℝ := fun x => log x + sqrt (2 * x) * log (2 * x) - log 4 / 3 * x hf' : ∀ (x : ℝ), 0 < x → 0 < x * (2 * x) ^ sqrt (2 * x) / 4 ^ (x / 3) hf : ∀ (x : ℝ), 0 < x → f x = log (x * (2 * x) ^ sqrt (2 * x) / 4 ^ (x / 3)) h5 : 0 < x h : ConcaveOn ℝ (Set.Ioi 0.5) f this : sqrt (2 * 1...
/- Copyright (c) 2020 Patrick Stevens. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Patrick Stevens, Bolton Bailey -/ import Mathlib.Data.Nat.Choose.Factorization import Mathlib.Data.Nat.PrimeNormNum import Mathlib.NumberTheory.Primorial import Mathlib.Analysis.Conve...
rw [one_le_div]
/-- A reified version of the `Bertrand.main_inequality` below. This is not best possible: it actually holds for 464 ≤ x. -/ theorem real_main_inequality {x : ℝ} (n_large : (512 : ℝ) ≤ x) : x * (2 * x) ^ sqrt (2 * x) * 4 ^ (2 * x / 3) ≤ 4 ^ x := by let f : ℝ → ℝ := fun x => log x + sqrt (2 * x) * log (2 * x) - log...
Mathlib.NumberTheory.Bertrand.51_0.gJXoOT9Ce2wC0xc
/-- A reified version of the `Bertrand.main_inequality` below. This is not best possible: it actually holds for 464 ≤ x. -/ theorem real_main_inequality {x : ℝ} (n_large : (512 : ℝ) ≤ x) : x * (2 * x) ^ sqrt (2 * x) * 4 ^ (2 * x / 3) ≤ 4 ^ x
Mathlib_NumberTheory_Bertrand
case refine'_1 x : ℝ n_large : 512 ≤ x f : ℝ → ℝ := fun x => log x + sqrt (2 * x) * log (2 * x) - log 4 / 3 * x hf' : ∀ (x : ℝ), 0 < x → 0 < x * (2 * x) ^ sqrt (2 * x) / 4 ^ (x / 3) hf : ∀ (x : ℝ), 0 < x → f x = log (x * (2 * x) ^ sqrt (2 * x) / 4 ^ (x / 3)) h5 : 0 < x h : ConcaveOn ℝ (Set.Ioi 0.5) f this : sqrt (2 * 1...
/- Copyright (c) 2020 Patrick Stevens. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Patrick Stevens, Bolton Bailey -/ import Mathlib.Data.Nat.Choose.Factorization import Mathlib.Data.Nat.PrimeNormNum import Mathlib.NumberTheory.Primorial import Mathlib.Analysis.Conve...
norm_num1
/-- A reified version of the `Bertrand.main_inequality` below. This is not best possible: it actually holds for 464 ≤ x. -/ theorem real_main_inequality {x : ℝ} (n_large : (512 : ℝ) ≤ x) : x * (2 * x) ^ sqrt (2 * x) * 4 ^ (2 * x / 3) ≤ 4 ^ x := by let f : ℝ → ℝ := fun x => log x + sqrt (2 * x) * log (2 * x) - log...
Mathlib.NumberTheory.Bertrand.51_0.gJXoOT9Ce2wC0xc
/-- A reified version of the `Bertrand.main_inequality` below. This is not best possible: it actually holds for 464 ≤ x. -/ theorem real_main_inequality {x : ℝ} (n_large : (512 : ℝ) ≤ x) : x * (2 * x) ^ sqrt (2 * x) * 4 ^ (2 * x / 3) ≤ 4 ^ x
Mathlib_NumberTheory_Bertrand
case refine'_1 x : ℝ n_large : 512 ≤ x f : ℝ → ℝ := fun x => log x + sqrt (2 * x) * log (2 * x) - log 4 / 3 * x hf' : ∀ (x : ℝ), 0 < x → 0 < x * (2 * x) ^ sqrt (2 * x) / 4 ^ (x / 3) hf : ∀ (x : ℝ), 0 < x → f x = log (x * (2 * x) ^ sqrt (2 * x) / 4 ^ (x / 3)) h5 : 0 < x h : ConcaveOn ℝ (Set.Ioi 0.5) f this : sqrt (2 * 1...
/- Copyright (c) 2020 Patrick Stevens. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Patrick Stevens, Bolton Bailey -/ import Mathlib.Data.Nat.Choose.Factorization import Mathlib.Data.Nat.PrimeNormNum import Mathlib.NumberTheory.Primorial import Mathlib.Analysis.Conve...
norm_num1
/-- A reified version of the `Bertrand.main_inequality` below. This is not best possible: it actually holds for 464 ≤ x. -/ theorem real_main_inequality {x : ℝ} (n_large : (512 : ℝ) ≤ x) : x * (2 * x) ^ sqrt (2 * x) * 4 ^ (2 * x / 3) ≤ 4 ^ x := by let f : ℝ → ℝ := fun x => log x + sqrt (2 * x) * log (2 * x) - log...
Mathlib.NumberTheory.Bertrand.51_0.gJXoOT9Ce2wC0xc
/-- A reified version of the `Bertrand.main_inequality` below. This is not best possible: it actually holds for 464 ≤ x. -/ theorem real_main_inequality {x : ℝ} (n_large : (512 : ℝ) ≤ x) : x * (2 * x) ^ sqrt (2 * x) * 4 ^ (2 * x / 3) ≤ 4 ^ x
Mathlib_NumberTheory_Bertrand
case refine'_1 x : ℝ n_large : 512 ≤ x f : ℝ → ℝ := fun x => log x + sqrt (2 * x) * log (2 * x) - log 4 / 3 * x hf' : ∀ (x : ℝ), 0 < x → 0 < x * (2 * x) ^ sqrt (2 * x) / 4 ^ (x / 3) hf : ∀ (x : ℝ), 0 < x → f x = log (x * (2 * x) ^ sqrt (2 * x) / 4 ^ (x / 3)) h5 : 0 < x h : ConcaveOn ℝ (Set.Ioi 0.5) f this : sqrt (2 * 1...
/- Copyright (c) 2020 Patrick Stevens. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Patrick Stevens, Bolton Bailey -/ import Mathlib.Data.Nat.Choose.Factorization import Mathlib.Data.Nat.PrimeNormNum import Mathlib.NumberTheory.Primorial import Mathlib.Analysis.Conve...
apply le_trans _ (le_mul_of_one_le_left _ _)
/-- A reified version of the `Bertrand.main_inequality` below. This is not best possible: it actually holds for 464 ≤ x. -/ theorem real_main_inequality {x : ℝ} (n_large : (512 : ℝ) ≤ x) : x * (2 * x) ^ sqrt (2 * x) * 4 ^ (2 * x / 3) ≤ 4 ^ x := by let f : ℝ → ℝ := fun x => log x + sqrt (2 * x) * log (2 * x) - log...
Mathlib.NumberTheory.Bertrand.51_0.gJXoOT9Ce2wC0xc
/-- A reified version of the `Bertrand.main_inequality` below. This is not best possible: it actually holds for 464 ≤ x. -/ theorem real_main_inequality {x : ℝ} (n_large : (512 : ℝ) ≤ x) : x * (2 * x) ^ sqrt (2 * x) * 4 ^ (2 * x / 3) ≤ 4 ^ x
Mathlib_NumberTheory_Bertrand
x : ℝ n_large : 512 ≤ x f : ℝ → ℝ := fun x => log x + sqrt (2 * x) * log (2 * x) - log 4 / 3 * x hf' : ∀ (x : ℝ), 0 < x → 0 < x * (2 * x) ^ sqrt (2 * x) / 4 ^ (x / 3) hf : ∀ (x : ℝ), 0 < x → f x = log (x * (2 * x) ^ sqrt (2 * x) / 4 ^ (x / 3)) h5 : 0 < x h : ConcaveOn ℝ (Set.Ioi 0.5) f this : sqrt (2 * 18) = 6 ⊢ 4 ^ 6 ...
/- Copyright (c) 2020 Patrick Stevens. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Patrick Stevens, Bolton Bailey -/ import Mathlib.Data.Nat.Choose.Factorization import Mathlib.Data.Nat.PrimeNormNum import Mathlib.NumberTheory.Primorial import Mathlib.Analysis.Conve...
norm_num1
/-- A reified version of the `Bertrand.main_inequality` below. This is not best possible: it actually holds for 464 ≤ x. -/ theorem real_main_inequality {x : ℝ} (n_large : (512 : ℝ) ≤ x) : x * (2 * x) ^ sqrt (2 * x) * 4 ^ (2 * x / 3) ≤ 4 ^ x := by let f : ℝ → ℝ := fun x => log x + sqrt (2 * x) * log (2 * x) - log...
Mathlib.NumberTheory.Bertrand.51_0.gJXoOT9Ce2wC0xc
/-- A reified version of the `Bertrand.main_inequality` below. This is not best possible: it actually holds for 464 ≤ x. -/ theorem real_main_inequality {x : ℝ} (n_large : (512 : ℝ) ≤ x) : x * (2 * x) ^ sqrt (2 * x) * 4 ^ (2 * x / 3) ≤ 4 ^ x
Mathlib_NumberTheory_Bertrand
x : ℝ n_large : 512 ≤ x f : ℝ → ℝ := fun x => log x + sqrt (2 * x) * log (2 * x) - log 4 / 3 * x hf' : ∀ (x : ℝ), 0 < x → 0 < x * (2 * x) ^ sqrt (2 * x) / 4 ^ (x / 3) hf : ∀ (x : ℝ), 0 < x → f x = log (x * (2 * x) ^ sqrt (2 * x) / 4 ^ (x / 3)) h5 : 0 < x h : ConcaveOn ℝ (Set.Ioi 0.5) f this : sqrt (2 * 18) = 6 ⊢ 0 ≤ 36...
/- Copyright (c) 2020 Patrick Stevens. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Patrick Stevens, Bolton Bailey -/ import Mathlib.Data.Nat.Choose.Factorization import Mathlib.Data.Nat.PrimeNormNum import Mathlib.NumberTheory.Primorial import Mathlib.Analysis.Conve...
norm_num1
/-- A reified version of the `Bertrand.main_inequality` below. This is not best possible: it actually holds for 464 ≤ x. -/ theorem real_main_inequality {x : ℝ} (n_large : (512 : ℝ) ≤ x) : x * (2 * x) ^ sqrt (2 * x) * 4 ^ (2 * x / 3) ≤ 4 ^ x := by let f : ℝ → ℝ := fun x => log x + sqrt (2 * x) * log (2 * x) - log...
Mathlib.NumberTheory.Bertrand.51_0.gJXoOT9Ce2wC0xc
/-- A reified version of the `Bertrand.main_inequality` below. This is not best possible: it actually holds for 464 ≤ x. -/ theorem real_main_inequality {x : ℝ} (n_large : (512 : ℝ) ≤ x) : x * (2 * x) ^ sqrt (2 * x) * 4 ^ (2 * x / 3) ≤ 4 ^ x
Mathlib_NumberTheory_Bertrand
x : ℝ n_large : 512 ≤ x f : ℝ → ℝ := fun x => log x + sqrt (2 * x) * log (2 * x) - log 4 / 3 * x hf' : ∀ (x : ℝ), 0 < x → 0 < x * (2 * x) ^ sqrt (2 * x) / 4 ^ (x / 3) hf : ∀ (x : ℝ), 0 < x → f x = log (x * (2 * x) ^ sqrt (2 * x) / 4 ^ (x / 3)) h5 : 0 < x h : ConcaveOn ℝ (Set.Ioi 0.5) f this : sqrt (2 * 18) = 6 ⊢ 1 ≤ 18
/- Copyright (c) 2020 Patrick Stevens. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Patrick Stevens, Bolton Bailey -/ import Mathlib.Data.Nat.Choose.Factorization import Mathlib.Data.Nat.PrimeNormNum import Mathlib.NumberTheory.Primorial import Mathlib.Analysis.Conve...
norm_num1
/-- A reified version of the `Bertrand.main_inequality` below. This is not best possible: it actually holds for 464 ≤ x. -/ theorem real_main_inequality {x : ℝ} (n_large : (512 : ℝ) ≤ x) : x * (2 * x) ^ sqrt (2 * x) * 4 ^ (2 * x / 3) ≤ 4 ^ x := by let f : ℝ → ℝ := fun x => log x + sqrt (2 * x) * log (2 * x) - log...
Mathlib.NumberTheory.Bertrand.51_0.gJXoOT9Ce2wC0xc
/-- A reified version of the `Bertrand.main_inequality` below. This is not best possible: it actually holds for 464 ≤ x. -/ theorem real_main_inequality {x : ℝ} (n_large : (512 : ℝ) ≤ x) : x * (2 * x) ^ sqrt (2 * x) * 4 ^ (2 * x / 3) ≤ 4 ^ x
Mathlib_NumberTheory_Bertrand
x : ℝ n_large : 512 ≤ x f : ℝ → ℝ := fun x => log x + sqrt (2 * x) * log (2 * x) - log 4 / 3 * x hf' : ∀ (x : ℝ), 0 < x → 0 < x * (2 * x) ^ sqrt (2 * x) / 4 ^ (x / 3) hf : ∀ (x : ℝ), 0 < x → f x = log (x * (2 * x) ^ sqrt (2 * x) / 4 ^ (x / 3)) h5 : 0 < x h : ConcaveOn ℝ (Set.Ioi 0.5) f this : sqrt (2 * 18) = 6 ⊢ 4 ^ 6 ...
/- Copyright (c) 2020 Patrick Stevens. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Patrick Stevens, Bolton Bailey -/ import Mathlib.Data.Nat.Choose.Factorization import Mathlib.Data.Nat.PrimeNormNum import Mathlib.NumberTheory.Primorial import Mathlib.Analysis.Conve...
apply Real.rpow_le_rpow
/-- A reified version of the `Bertrand.main_inequality` below. This is not best possible: it actually holds for 464 ≤ x. -/ theorem real_main_inequality {x : ℝ} (n_large : (512 : ℝ) ≤ x) : x * (2 * x) ^ sqrt (2 * x) * 4 ^ (2 * x / 3) ≤ 4 ^ x := by let f : ℝ → ℝ := fun x => log x + sqrt (2 * x) * log (2 * x) - log...
Mathlib.NumberTheory.Bertrand.51_0.gJXoOT9Ce2wC0xc
/-- A reified version of the `Bertrand.main_inequality` below. This is not best possible: it actually holds for 464 ≤ x. -/ theorem real_main_inequality {x : ℝ} (n_large : (512 : ℝ) ≤ x) : x * (2 * x) ^ sqrt (2 * x) * 4 ^ (2 * x / 3) ≤ 4 ^ x
Mathlib_NumberTheory_Bertrand
case h x : ℝ n_large : 512 ≤ x f : ℝ → ℝ := fun x => log x + sqrt (2 * x) * log (2 * x) - log 4 / 3 * x hf' : ∀ (x : ℝ), 0 < x → 0 < x * (2 * x) ^ sqrt (2 * x) / 4 ^ (x / 3) hf : ∀ (x : ℝ), 0 < x → f x = log (x * (2 * x) ^ sqrt (2 * x) / 4 ^ (x / 3)) h5 : 0 < x h : ConcaveOn ℝ (Set.Ioi 0.5) f this : sqrt (2 * 18) = 6 ⊢...
/- Copyright (c) 2020 Patrick Stevens. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Patrick Stevens, Bolton Bailey -/ import Mathlib.Data.Nat.Choose.Factorization import Mathlib.Data.Nat.PrimeNormNum import Mathlib.NumberTheory.Primorial import Mathlib.Analysis.Conve...
norm_num1
/-- A reified version of the `Bertrand.main_inequality` below. This is not best possible: it actually holds for 464 ≤ x. -/ theorem real_main_inequality {x : ℝ} (n_large : (512 : ℝ) ≤ x) : x * (2 * x) ^ sqrt (2 * x) * 4 ^ (2 * x / 3) ≤ 4 ^ x := by let f : ℝ → ℝ := fun x => log x + sqrt (2 * x) * log (2 * x) - log...
Mathlib.NumberTheory.Bertrand.51_0.gJXoOT9Ce2wC0xc
/-- A reified version of the `Bertrand.main_inequality` below. This is not best possible: it actually holds for 464 ≤ x. -/ theorem real_main_inequality {x : ℝ} (n_large : (512 : ℝ) ≤ x) : x * (2 * x) ^ sqrt (2 * x) * 4 ^ (2 * x / 3) ≤ 4 ^ x
Mathlib_NumberTheory_Bertrand
case h₁ x : ℝ n_large : 512 ≤ x f : ℝ → ℝ := fun x => log x + sqrt (2 * x) * log (2 * x) - log 4 / 3 * x hf' : ∀ (x : ℝ), 0 < x → 0 < x * (2 * x) ^ sqrt (2 * x) / 4 ^ (x / 3) hf : ∀ (x : ℝ), 0 < x → f x = log (x * (2 * x) ^ sqrt (2 * x) / 4 ^ (x / 3)) h5 : 0 < x h : ConcaveOn ℝ (Set.Ioi 0.5) f this : sqrt (2 * 18) = 6 ...
/- Copyright (c) 2020 Patrick Stevens. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Patrick Stevens, Bolton Bailey -/ import Mathlib.Data.Nat.Choose.Factorization import Mathlib.Data.Nat.PrimeNormNum import Mathlib.NumberTheory.Primorial import Mathlib.Analysis.Conve...
norm_num1
/-- A reified version of the `Bertrand.main_inequality` below. This is not best possible: it actually holds for 464 ≤ x. -/ theorem real_main_inequality {x : ℝ} (n_large : (512 : ℝ) ≤ x) : x * (2 * x) ^ sqrt (2 * x) * 4 ^ (2 * x / 3) ≤ 4 ^ x := by let f : ℝ → ℝ := fun x => log x + sqrt (2 * x) * log (2 * x) - log...
Mathlib.NumberTheory.Bertrand.51_0.gJXoOT9Ce2wC0xc
/-- A reified version of the `Bertrand.main_inequality` below. This is not best possible: it actually holds for 464 ≤ x. -/ theorem real_main_inequality {x : ℝ} (n_large : (512 : ℝ) ≤ x) : x * (2 * x) ^ sqrt (2 * x) * 4 ^ (2 * x / 3) ≤ 4 ^ x
Mathlib_NumberTheory_Bertrand
case h₂ x : ℝ n_large : 512 ≤ x f : ℝ → ℝ := fun x => log x + sqrt (2 * x) * log (2 * x) - log 4 / 3 * x hf' : ∀ (x : ℝ), 0 < x → 0 < x * (2 * x) ^ sqrt (2 * x) / 4 ^ (x / 3) hf : ∀ (x : ℝ), 0 < x → f x = log (x * (2 * x) ^ sqrt (2 * x) / 4 ^ (x / 3)) h5 : 0 < x h : ConcaveOn ℝ (Set.Ioi 0.5) f this : sqrt (2 * 18) = 6 ...
/- Copyright (c) 2020 Patrick Stevens. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Patrick Stevens, Bolton Bailey -/ import Mathlib.Data.Nat.Choose.Factorization import Mathlib.Data.Nat.PrimeNormNum import Mathlib.NumberTheory.Primorial import Mathlib.Analysis.Conve...
norm_num1
/-- A reified version of the `Bertrand.main_inequality` below. This is not best possible: it actually holds for 464 ≤ x. -/ theorem real_main_inequality {x : ℝ} (n_large : (512 : ℝ) ≤ x) : x * (2 * x) ^ sqrt (2 * x) * 4 ^ (2 * x / 3) ≤ 4 ^ x := by let f : ℝ → ℝ := fun x => log x + sqrt (2 * x) * log (2 * x) - log...
Mathlib.NumberTheory.Bertrand.51_0.gJXoOT9Ce2wC0xc
/-- A reified version of the `Bertrand.main_inequality` below. This is not best possible: it actually holds for 464 ≤ x. -/ theorem real_main_inequality {x : ℝ} (n_large : (512 : ℝ) ≤ x) : x * (2 * x) ^ sqrt (2 * x) * 4 ^ (2 * x / 3) ≤ 4 ^ x
Mathlib_NumberTheory_Bertrand
x : ℝ n_large : 512 ≤ x f : ℝ → ℝ := fun x => log x + sqrt (2 * x) * log (2 * x) - log 4 / 3 * x hf' : ∀ (x : ℝ), 0 < x → 0 < x * (2 * x) ^ sqrt (2 * x) / 4 ^ (x / 3) hf : ∀ (x : ℝ), 0 < x → f x = log (x * (2 * x) ^ sqrt (2 * x) / 4 ^ (x / 3)) h5 : 0 < x h : ConcaveOn ℝ (Set.Ioi 0.5) f this : sqrt (2 * 18) = 6 ⊢ 0 ≤ 36...
/- Copyright (c) 2020 Patrick Stevens. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Patrick Stevens, Bolton Bailey -/ import Mathlib.Data.Nat.Choose.Factorization import Mathlib.Data.Nat.PrimeNormNum import Mathlib.NumberTheory.Primorial import Mathlib.Analysis.Conve...
apply rpow_nonneg_of_nonneg
/-- A reified version of the `Bertrand.main_inequality` below. This is not best possible: it actually holds for 464 ≤ x. -/ theorem real_main_inequality {x : ℝ} (n_large : (512 : ℝ) ≤ x) : x * (2 * x) ^ sqrt (2 * x) * 4 ^ (2 * x / 3) ≤ 4 ^ x := by let f : ℝ → ℝ := fun x => log x + sqrt (2 * x) * log (2 * x) - log...
Mathlib.NumberTheory.Bertrand.51_0.gJXoOT9Ce2wC0xc
/-- A reified version of the `Bertrand.main_inequality` below. This is not best possible: it actually holds for 464 ≤ x. -/ theorem real_main_inequality {x : ℝ} (n_large : (512 : ℝ) ≤ x) : x * (2 * x) ^ sqrt (2 * x) * 4 ^ (2 * x / 3) ≤ 4 ^ x
Mathlib_NumberTheory_Bertrand
case hx x : ℝ n_large : 512 ≤ x f : ℝ → ℝ := fun x => log x + sqrt (2 * x) * log (2 * x) - log 4 / 3 * x hf' : ∀ (x : ℝ), 0 < x → 0 < x * (2 * x) ^ sqrt (2 * x) / 4 ^ (x / 3) hf : ∀ (x : ℝ), 0 < x → f x = log (x * (2 * x) ^ sqrt (2 * x) / 4 ^ (x / 3)) h5 : 0 < x h : ConcaveOn ℝ (Set.Ioi 0.5) f this : sqrt (2 * 18) = 6 ...
/- Copyright (c) 2020 Patrick Stevens. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Patrick Stevens, Bolton Bailey -/ import Mathlib.Data.Nat.Choose.Factorization import Mathlib.Data.Nat.PrimeNormNum import Mathlib.NumberTheory.Primorial import Mathlib.Analysis.Conve...
norm_num1
/-- A reified version of the `Bertrand.main_inequality` below. This is not best possible: it actually holds for 464 ≤ x. -/ theorem real_main_inequality {x : ℝ} (n_large : (512 : ℝ) ≤ x) : x * (2 * x) ^ sqrt (2 * x) * 4 ^ (2 * x / 3) ≤ 4 ^ x := by let f : ℝ → ℝ := fun x => log x + sqrt (2 * x) * log (2 * x) - log...
Mathlib.NumberTheory.Bertrand.51_0.gJXoOT9Ce2wC0xc
/-- A reified version of the `Bertrand.main_inequality` below. This is not best possible: it actually holds for 464 ≤ x. -/ theorem real_main_inequality {x : ℝ} (n_large : (512 : ℝ) ≤ x) : x * (2 * x) ^ sqrt (2 * x) * 4 ^ (2 * x / 3) ≤ 4 ^ x
Mathlib_NumberTheory_Bertrand
case refine'_1 x : ℝ n_large : 512 ≤ x f : ℝ → ℝ := fun x => log x + sqrt (2 * x) * log (2 * x) - log 4 / 3 * x hf' : ∀ (x : ℝ), 0 < x → 0 < x * (2 * x) ^ sqrt (2 * x) / 4 ^ (x / 3) hf : ∀ (x : ℝ), 0 < x → f x = log (x * (2 * x) ^ sqrt (2 * x) / 4 ^ (x / 3)) h5 : 0 < x h : ConcaveOn ℝ (Set.Ioi 0.5) f this : sqrt (2 * 1...
/- Copyright (c) 2020 Patrick Stevens. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Patrick Stevens, Bolton Bailey -/ import Mathlib.Data.Nat.Choose.Factorization import Mathlib.Data.Nat.PrimeNormNum import Mathlib.NumberTheory.Primorial import Mathlib.Analysis.Conve...
apply rpow_pos_of_pos
/-- A reified version of the `Bertrand.main_inequality` below. This is not best possible: it actually holds for 464 ≤ x. -/ theorem real_main_inequality {x : ℝ} (n_large : (512 : ℝ) ≤ x) : x * (2 * x) ^ sqrt (2 * x) * 4 ^ (2 * x / 3) ≤ 4 ^ x := by let f : ℝ → ℝ := fun x => log x + sqrt (2 * x) * log (2 * x) - log...
Mathlib.NumberTheory.Bertrand.51_0.gJXoOT9Ce2wC0xc
/-- A reified version of the `Bertrand.main_inequality` below. This is not best possible: it actually holds for 464 ≤ x. -/ theorem real_main_inequality {x : ℝ} (n_large : (512 : ℝ) ≤ x) : x * (2 * x) ^ sqrt (2 * x) * 4 ^ (2 * x / 3) ≤ 4 ^ x
Mathlib_NumberTheory_Bertrand
case refine'_1.hx x : ℝ n_large : 512 ≤ x f : ℝ → ℝ := fun x => log x + sqrt (2 * x) * log (2 * x) - log 4 / 3 * x hf' : ∀ (x : ℝ), 0 < x → 0 < x * (2 * x) ^ sqrt (2 * x) / 4 ^ (x / 3) hf : ∀ (x : ℝ), 0 < x → f x = log (x * (2 * x) ^ sqrt (2 * x) / 4 ^ (x / 3)) h5 : 0 < x h : ConcaveOn ℝ (Set.Ioi 0.5) f this : sqrt (2 ...
/- Copyright (c) 2020 Patrick Stevens. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Patrick Stevens, Bolton Bailey -/ import Mathlib.Data.Nat.Choose.Factorization import Mathlib.Data.Nat.PrimeNormNum import Mathlib.NumberTheory.Primorial import Mathlib.Analysis.Conve...
norm_num1
/-- A reified version of the `Bertrand.main_inequality` below. This is not best possible: it actually holds for 464 ≤ x. -/ theorem real_main_inequality {x : ℝ} (n_large : (512 : ℝ) ≤ x) : x * (2 * x) ^ sqrt (2 * x) * 4 ^ (2 * x / 3) ≤ 4 ^ x := by let f : ℝ → ℝ := fun x => log x + sqrt (2 * x) * log (2 * x) - log...
Mathlib.NumberTheory.Bertrand.51_0.gJXoOT9Ce2wC0xc
/-- A reified version of the `Bertrand.main_inequality` below. This is not best possible: it actually holds for 464 ≤ x. -/ theorem real_main_inequality {x : ℝ} (n_large : (512 : ℝ) ≤ x) : x * (2 * x) ^ sqrt (2 * x) * 4 ^ (2 * x / 3) ≤ 4 ^ x
Mathlib_NumberTheory_Bertrand
case refine'_1 x : ℝ n_large : 512 ≤ x f : ℝ → ℝ := fun x => log x + sqrt (2 * x) * log (2 * x) - log 4 / 3 * x hf' : ∀ (x : ℝ), 0 < x → 0 < x * (2 * x) ^ sqrt (2 * x) / 4 ^ (x / 3) hf : ∀ (x : ℝ), 0 < x → f x = log (x * (2 * x) ^ sqrt (2 * x) / 4 ^ (x / 3)) h5 : 0 < x h : ConcaveOn ℝ (Set.Ioi 0.5) f this : sqrt (2 * 1...
/- Copyright (c) 2020 Patrick Stevens. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Patrick Stevens, Bolton Bailey -/ import Mathlib.Data.Nat.Choose.Factorization import Mathlib.Data.Nat.PrimeNormNum import Mathlib.NumberTheory.Primorial import Mathlib.Analysis.Conve...
apply hf' 18
/-- A reified version of the `Bertrand.main_inequality` below. This is not best possible: it actually holds for 464 ≤ x. -/ theorem real_main_inequality {x : ℝ} (n_large : (512 : ℝ) ≤ x) : x * (2 * x) ^ sqrt (2 * x) * 4 ^ (2 * x / 3) ≤ 4 ^ x := by let f : ℝ → ℝ := fun x => log x + sqrt (2 * x) * log (2 * x) - log...
Mathlib.NumberTheory.Bertrand.51_0.gJXoOT9Ce2wC0xc
/-- A reified version of the `Bertrand.main_inequality` below. This is not best possible: it actually holds for 464 ≤ x. -/ theorem real_main_inequality {x : ℝ} (n_large : (512 : ℝ) ≤ x) : x * (2 * x) ^ sqrt (2 * x) * 4 ^ (2 * x / 3) ≤ 4 ^ x
Mathlib_NumberTheory_Bertrand
case refine'_1 x : ℝ n_large : 512 ≤ x f : ℝ → ℝ := fun x => log x + sqrt (2 * x) * log (2 * x) - log 4 / 3 * x hf' : ∀ (x : ℝ), 0 < x → 0 < x * (2 * x) ^ sqrt (2 * x) / 4 ^ (x / 3) hf : ∀ (x : ℝ), 0 < x → f x = log (x * (2 * x) ^ sqrt (2 * x) / 4 ^ (x / 3)) h5 : 0 < x h : ConcaveOn ℝ (Set.Ioi 0.5) f this : sqrt (2 * 1...
/- Copyright (c) 2020 Patrick Stevens. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Patrick Stevens, Bolton Bailey -/ import Mathlib.Data.Nat.Choose.Factorization import Mathlib.Data.Nat.PrimeNormNum import Mathlib.NumberTheory.Primorial import Mathlib.Analysis.Conve...
norm_num1
/-- A reified version of the `Bertrand.main_inequality` below. This is not best possible: it actually holds for 464 ≤ x. -/ theorem real_main_inequality {x : ℝ} (n_large : (512 : ℝ) ≤ x) : x * (2 * x) ^ sqrt (2 * x) * 4 ^ (2 * x / 3) ≤ 4 ^ x := by let f : ℝ → ℝ := fun x => log x + sqrt (2 * x) * log (2 * x) - log...
Mathlib.NumberTheory.Bertrand.51_0.gJXoOT9Ce2wC0xc
/-- A reified version of the `Bertrand.main_inequality` below. This is not best possible: it actually holds for 464 ≤ x. -/ theorem real_main_inequality {x : ℝ} (n_large : (512 : ℝ) ≤ x) : x * (2 * x) ^ sqrt (2 * x) * 4 ^ (2 * x / 3) ≤ 4 ^ x
Mathlib_NumberTheory_Bertrand
case refine'_1.a x : ℝ n_large : 512 ≤ x f : ℝ → ℝ := fun x => log x + sqrt (2 * x) * log (2 * x) - log 4 / 3 * x hf' : ∀ (x : ℝ), 0 < x → 0 < x * (2 * x) ^ sqrt (2 * x) / 4 ^ (x / 3) hf : ∀ (x : ℝ), 0 < x → f x = log (x * (2 * x) ^ sqrt (2 * x) / 4 ^ (x / 3)) h5 : 0 < x h : ConcaveOn ℝ (Set.Ioi 0.5) f this : sqrt (2 *...
/- Copyright (c) 2020 Patrick Stevens. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Patrick Stevens, Bolton Bailey -/ import Mathlib.Data.Nat.Choose.Factorization import Mathlib.Data.Nat.PrimeNormNum import Mathlib.NumberTheory.Primorial import Mathlib.Analysis.Conve...
norm_num1
/-- A reified version of the `Bertrand.main_inequality` below. This is not best possible: it actually holds for 464 ≤ x. -/ theorem real_main_inequality {x : ℝ} (n_large : (512 : ℝ) ≤ x) : x * (2 * x) ^ sqrt (2 * x) * 4 ^ (2 * x / 3) ≤ 4 ^ x := by let f : ℝ → ℝ := fun x => log x + sqrt (2 * x) * log (2 * x) - log...
Mathlib.NumberTheory.Bertrand.51_0.gJXoOT9Ce2wC0xc
/-- A reified version of the `Bertrand.main_inequality` below. This is not best possible: it actually holds for 464 ≤ x. -/ theorem real_main_inequality {x : ℝ} (n_large : (512 : ℝ) ≤ x) : x * (2 * x) ^ sqrt (2 * x) * 4 ^ (2 * x / 3) ≤ 4 ^ x
Mathlib_NumberTheory_Bertrand
case refine'_2 x : ℝ n_large : 512 ≤ x f : ℝ → ℝ := fun x => log x + sqrt (2 * x) * log (2 * x) - log 4 / 3 * x hf' : ∀ (x : ℝ), 0 < x → 0 < x * (2 * x) ^ sqrt (2 * x) / 4 ^ (x / 3) hf : ∀ (x : ℝ), 0 < x → f x = log (x * (2 * x) ^ sqrt (2 * x) / 4 ^ (x / 3)) h5 : 0 < x h : ConcaveOn ℝ (Set.Ioi 0.5) f ⊢ f 512 ≤ 0
/- Copyright (c) 2020 Patrick Stevens. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Patrick Stevens, Bolton Bailey -/ import Mathlib.Data.Nat.Choose.Factorization import Mathlib.Data.Nat.PrimeNormNum import Mathlib.NumberTheory.Primorial import Mathlib.Analysis.Conve...
have : sqrt (2 * 512) = 32 := (sqrt_eq_iff_mul_self_eq_of_pos (by norm_num1)).mpr (by norm_num1)
/-- A reified version of the `Bertrand.main_inequality` below. This is not best possible: it actually holds for 464 ≤ x. -/ theorem real_main_inequality {x : ℝ} (n_large : (512 : ℝ) ≤ x) : x * (2 * x) ^ sqrt (2 * x) * 4 ^ (2 * x / 3) ≤ 4 ^ x := by let f : ℝ → ℝ := fun x => log x + sqrt (2 * x) * log (2 * x) - log...
Mathlib.NumberTheory.Bertrand.51_0.gJXoOT9Ce2wC0xc
/-- A reified version of the `Bertrand.main_inequality` below. This is not best possible: it actually holds for 464 ≤ x. -/ theorem real_main_inequality {x : ℝ} (n_large : (512 : ℝ) ≤ x) : x * (2 * x) ^ sqrt (2 * x) * 4 ^ (2 * x / 3) ≤ 4 ^ x
Mathlib_NumberTheory_Bertrand
x : ℝ n_large : 512 ≤ x f : ℝ → ℝ := fun x => log x + sqrt (2 * x) * log (2 * x) - log 4 / 3 * x hf' : ∀ (x : ℝ), 0 < x → 0 < x * (2 * x) ^ sqrt (2 * x) / 4 ^ (x / 3) hf : ∀ (x : ℝ), 0 < x → f x = log (x * (2 * x) ^ sqrt (2 * x) / 4 ^ (x / 3)) h5 : 0 < x h : ConcaveOn ℝ (Set.Ioi 0.5) f ⊢ 0 < 32
/- Copyright (c) 2020 Patrick Stevens. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Patrick Stevens, Bolton Bailey -/ import Mathlib.Data.Nat.Choose.Factorization import Mathlib.Data.Nat.PrimeNormNum import Mathlib.NumberTheory.Primorial import Mathlib.Analysis.Conve...
norm_num1
/-- A reified version of the `Bertrand.main_inequality` below. This is not best possible: it actually holds for 464 ≤ x. -/ theorem real_main_inequality {x : ℝ} (n_large : (512 : ℝ) ≤ x) : x * (2 * x) ^ sqrt (2 * x) * 4 ^ (2 * x / 3) ≤ 4 ^ x := by let f : ℝ → ℝ := fun x => log x + sqrt (2 * x) * log (2 * x) - log...
Mathlib.NumberTheory.Bertrand.51_0.gJXoOT9Ce2wC0xc
/-- A reified version of the `Bertrand.main_inequality` below. This is not best possible: it actually holds for 464 ≤ x. -/ theorem real_main_inequality {x : ℝ} (n_large : (512 : ℝ) ≤ x) : x * (2 * x) ^ sqrt (2 * x) * 4 ^ (2 * x / 3) ≤ 4 ^ x
Mathlib_NumberTheory_Bertrand
x : ℝ n_large : 512 ≤ x f : ℝ → ℝ := fun x => log x + sqrt (2 * x) * log (2 * x) - log 4 / 3 * x hf' : ∀ (x : ℝ), 0 < x → 0 < x * (2 * x) ^ sqrt (2 * x) / 4 ^ (x / 3) hf : ∀ (x : ℝ), 0 < x → f x = log (x * (2 * x) ^ sqrt (2 * x) / 4 ^ (x / 3)) h5 : 0 < x h : ConcaveOn ℝ (Set.Ioi 0.5) f ⊢ 32 * 32 = 2 * 512
/- Copyright (c) 2020 Patrick Stevens. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Patrick Stevens, Bolton Bailey -/ import Mathlib.Data.Nat.Choose.Factorization import Mathlib.Data.Nat.PrimeNormNum import Mathlib.NumberTheory.Primorial import Mathlib.Analysis.Conve...
norm_num1
/-- A reified version of the `Bertrand.main_inequality` below. This is not best possible: it actually holds for 464 ≤ x. -/ theorem real_main_inequality {x : ℝ} (n_large : (512 : ℝ) ≤ x) : x * (2 * x) ^ sqrt (2 * x) * 4 ^ (2 * x / 3) ≤ 4 ^ x := by let f : ℝ → ℝ := fun x => log x + sqrt (2 * x) * log (2 * x) - log...
Mathlib.NumberTheory.Bertrand.51_0.gJXoOT9Ce2wC0xc
/-- A reified version of the `Bertrand.main_inequality` below. This is not best possible: it actually holds for 464 ≤ x. -/ theorem real_main_inequality {x : ℝ} (n_large : (512 : ℝ) ≤ x) : x * (2 * x) ^ sqrt (2 * x) * 4 ^ (2 * x / 3) ≤ 4 ^ x
Mathlib_NumberTheory_Bertrand
case refine'_2 x : ℝ n_large : 512 ≤ x f : ℝ → ℝ := fun x => log x + sqrt (2 * x) * log (2 * x) - log 4 / 3 * x hf' : ∀ (x : ℝ), 0 < x → 0 < x * (2 * x) ^ sqrt (2 * x) / 4 ^ (x / 3) hf : ∀ (x : ℝ), 0 < x → f x = log (x * (2 * x) ^ sqrt (2 * x) / 4 ^ (x / 3)) h5 : 0 < x h : ConcaveOn ℝ (Set.Ioi 0.5) f this : sqrt (2 * 5...
/- Copyright (c) 2020 Patrick Stevens. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Patrick Stevens, Bolton Bailey -/ import Mathlib.Data.Nat.Choose.Factorization import Mathlib.Data.Nat.PrimeNormNum import Mathlib.NumberTheory.Primorial import Mathlib.Analysis.Conve...
rw [hf, log_nonpos_iff (hf' _ _), this, div_le_one]
/-- A reified version of the `Bertrand.main_inequality` below. This is not best possible: it actually holds for 464 ≤ x. -/ theorem real_main_inequality {x : ℝ} (n_large : (512 : ℝ) ≤ x) : x * (2 * x) ^ sqrt (2 * x) * 4 ^ (2 * x / 3) ≤ 4 ^ x := by let f : ℝ → ℝ := fun x => log x + sqrt (2 * x) * log (2 * x) - log...
Mathlib.NumberTheory.Bertrand.51_0.gJXoOT9Ce2wC0xc
/-- A reified version of the `Bertrand.main_inequality` below. This is not best possible: it actually holds for 464 ≤ x. -/ theorem real_main_inequality {x : ℝ} (n_large : (512 : ℝ) ≤ x) : x * (2 * x) ^ sqrt (2 * x) * 4 ^ (2 * x / 3) ≤ 4 ^ x
Mathlib_NumberTheory_Bertrand
case refine'_2 x : ℝ n_large : 512 ≤ x f : ℝ → ℝ := fun x => log x + sqrt (2 * x) * log (2 * x) - log 4 / 3 * x hf' : ∀ (x : ℝ), 0 < x → 0 < x * (2 * x) ^ sqrt (2 * x) / 4 ^ (x / 3) hf : ∀ (x : ℝ), 0 < x → f x = log (x * (2 * x) ^ sqrt (2 * x) / 4 ^ (x / 3)) h5 : 0 < x h : ConcaveOn ℝ (Set.Ioi 0.5) f this : sqrt (2 * 5...
/- Copyright (c) 2020 Patrick Stevens. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Patrick Stevens, Bolton Bailey -/ import Mathlib.Data.Nat.Choose.Factorization import Mathlib.Data.Nat.PrimeNormNum import Mathlib.NumberTheory.Primorial import Mathlib.Analysis.Conve...
norm_num1
/-- A reified version of the `Bertrand.main_inequality` below. This is not best possible: it actually holds for 464 ≤ x. -/ theorem real_main_inequality {x : ℝ} (n_large : (512 : ℝ) ≤ x) : x * (2 * x) ^ sqrt (2 * x) * 4 ^ (2 * x / 3) ≤ 4 ^ x := by let f : ℝ → ℝ := fun x => log x + sqrt (2 * x) * log (2 * x) - log...
Mathlib.NumberTheory.Bertrand.51_0.gJXoOT9Ce2wC0xc
/-- A reified version of the `Bertrand.main_inequality` below. This is not best possible: it actually holds for 464 ≤ x. -/ theorem real_main_inequality {x : ℝ} (n_large : (512 : ℝ) ≤ x) : x * (2 * x) ^ sqrt (2 * x) * 4 ^ (2 * x / 3) ≤ 4 ^ x
Mathlib_NumberTheory_Bertrand
case refine'_2 x : ℝ n_large : 512 ≤ x f : ℝ → ℝ := fun x => log x + sqrt (2 * x) * log (2 * x) - log 4 / 3 * x hf' : ∀ (x : ℝ), 0 < x → 0 < x * (2 * x) ^ sqrt (2 * x) / 4 ^ (x / 3) hf : ∀ (x : ℝ), 0 < x → f x = log (x * (2 * x) ^ sqrt (2 * x) / 4 ^ (x / 3)) h5 : 0 < x h : ConcaveOn ℝ (Set.Ioi 0.5) f this : sqrt (2 * 5...
/- Copyright (c) 2020 Patrick Stevens. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Patrick Stevens, Bolton Bailey -/ import Mathlib.Data.Nat.Choose.Factorization import Mathlib.Data.Nat.PrimeNormNum import Mathlib.NumberTheory.Primorial import Mathlib.Analysis.Conve...
norm_num1
/-- A reified version of the `Bertrand.main_inequality` below. This is not best possible: it actually holds for 464 ≤ x. -/ theorem real_main_inequality {x : ℝ} (n_large : (512 : ℝ) ≤ x) : x * (2 * x) ^ sqrt (2 * x) * 4 ^ (2 * x / 3) ≤ 4 ^ x := by let f : ℝ → ℝ := fun x => log x + sqrt (2 * x) * log (2 * x) - log...
Mathlib.NumberTheory.Bertrand.51_0.gJXoOT9Ce2wC0xc
/-- A reified version of the `Bertrand.main_inequality` below. This is not best possible: it actually holds for 464 ≤ x. -/ theorem real_main_inequality {x : ℝ} (n_large : (512 : ℝ) ≤ x) : x * (2 * x) ^ sqrt (2 * x) * 4 ^ (2 * x / 3) ≤ 4 ^ x
Mathlib_NumberTheory_Bertrand
x : ℝ n_large : 512 ≤ x f : ℝ → ℝ := fun x => log x + sqrt (2 * x) * log (2 * x) - log 4 / 3 * x hf' : ∀ (x : ℝ), 0 < x → 0 < x * (2 * x) ^ sqrt (2 * x) / 4 ^ (x / 3) hf : ∀ (x : ℝ), 0 < x → f x = log (x * (2 * x) ^ sqrt (2 * x) / 4 ^ (x / 3)) h5 : 0 < x h : ConcaveOn ℝ (Set.Ioi 0.5) f this : sqrt (2 * 512) = 32 ⊢ 0 < ...
/- Copyright (c) 2020 Patrick Stevens. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Patrick Stevens, Bolton Bailey -/ import Mathlib.Data.Nat.Choose.Factorization import Mathlib.Data.Nat.PrimeNormNum import Mathlib.NumberTheory.Primorial import Mathlib.Analysis.Conve...
norm_num1
/-- A reified version of the `Bertrand.main_inequality` below. This is not best possible: it actually holds for 464 ≤ x. -/ theorem real_main_inequality {x : ℝ} (n_large : (512 : ℝ) ≤ x) : x * (2 * x) ^ sqrt (2 * x) * 4 ^ (2 * x / 3) ≤ 4 ^ x := by let f : ℝ → ℝ := fun x => log x + sqrt (2 * x) * log (2 * x) - log...
Mathlib.NumberTheory.Bertrand.51_0.gJXoOT9Ce2wC0xc
/-- A reified version of the `Bertrand.main_inequality` below. This is not best possible: it actually holds for 464 ≤ x. -/ theorem real_main_inequality {x : ℝ} (n_large : (512 : ℝ) ≤ x) : x * (2 * x) ^ sqrt (2 * x) * 4 ^ (2 * x / 3) ≤ 4 ^ x
Mathlib_NumberTheory_Bertrand
case refine'_2.a x : ℝ n_large : 512 ≤ x f : ℝ → ℝ := fun x => log x + sqrt (2 * x) * log (2 * x) - log 4 / 3 * x hf' : ∀ (x : ℝ), 0 < x → 0 < x * (2 * x) ^ sqrt (2 * x) / 4 ^ (x / 3) hf : ∀ (x : ℝ), 0 < x → f x = log (x * (2 * x) ^ sqrt (2 * x) / 4 ^ (x / 3)) h5 : 0 < x h : ConcaveOn ℝ (Set.Ioi 0.5) f this : sqrt (2 *...
/- Copyright (c) 2020 Patrick Stevens. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Patrick Stevens, Bolton Bailey -/ import Mathlib.Data.Nat.Choose.Factorization import Mathlib.Data.Nat.PrimeNormNum import Mathlib.NumberTheory.Primorial import Mathlib.Analysis.Conve...
norm_num1
/-- A reified version of the `Bertrand.main_inequality` below. This is not best possible: it actually holds for 464 ≤ x. -/ theorem real_main_inequality {x : ℝ} (n_large : (512 : ℝ) ≤ x) : x * (2 * x) ^ sqrt (2 * x) * 4 ^ (2 * x / 3) ≤ 4 ^ x := by let f : ℝ → ℝ := fun x => log x + sqrt (2 * x) * log (2 * x) - log...
Mathlib.NumberTheory.Bertrand.51_0.gJXoOT9Ce2wC0xc
/-- A reified version of the `Bertrand.main_inequality` below. This is not best possible: it actually holds for 464 ≤ x. -/ theorem real_main_inequality {x : ℝ} (n_large : (512 : ℝ) ≤ x) : x * (2 * x) ^ sqrt (2 * x) * 4 ^ (2 * x / 3) ≤ 4 ^ x
Mathlib_NumberTheory_Bertrand
case refine'_2 x : ℝ n_large : 512 ≤ x f : ℝ → ℝ := fun x => log x + sqrt (2 * x) * log (2 * x) - log 4 / 3 * x hf' : ∀ (x : ℝ), 0 < x → 0 < x * (2 * x) ^ sqrt (2 * x) / 4 ^ (x / 3) hf : ∀ (x : ℝ), 0 < x → f x = log (x * (2 * x) ^ sqrt (2 * x) / 4 ^ (x / 3)) h5 : 0 < x h : ConcaveOn ℝ (Set.Ioi 0.5) f this : sqrt (2 * 5...
/- Copyright (c) 2020 Patrick Stevens. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Patrick Stevens, Bolton Bailey -/ import Mathlib.Data.Nat.Choose.Factorization import Mathlib.Data.Nat.PrimeNormNum import Mathlib.NumberTheory.Primorial import Mathlib.Analysis.Conve...
conv in 512 => equals 2 ^ 9 => norm_num1
/-- A reified version of the `Bertrand.main_inequality` below. This is not best possible: it actually holds for 464 ≤ x. -/ theorem real_main_inequality {x : ℝ} (n_large : (512 : ℝ) ≤ x) : x * (2 * x) ^ sqrt (2 * x) * 4 ^ (2 * x / 3) ≤ 4 ^ x := by let f : ℝ → ℝ := fun x => log x + sqrt (2 * x) * log (2 * x) - log...
Mathlib.NumberTheory.Bertrand.51_0.gJXoOT9Ce2wC0xc
/-- A reified version of the `Bertrand.main_inequality` below. This is not best possible: it actually holds for 464 ≤ x. -/ theorem real_main_inequality {x : ℝ} (n_large : (512 : ℝ) ≤ x) : x * (2 * x) ^ sqrt (2 * x) * 4 ^ (2 * x / 3) ≤ 4 ^ x
Mathlib_NumberTheory_Bertrand
x : ℝ n_large : 512 ≤ x f : ℝ → ℝ := fun x => log x + sqrt (2 * x) * log (2 * x) - log 4 / 3 * x hf' : ∀ (x : ℝ), 0 < x → 0 < x * (2 * x) ^ sqrt (2 * x) / 4 ^ (x / 3) hf : ∀ (x : ℝ), 0 < x → f x = log (x * (2 * x) ^ sqrt (2 * x) / 4 ^ (x / 3)) h5 : 0 < x h : ConcaveOn ℝ (Set.Ioi 0.5) f this : sqrt (2 * 512) = 32 | 512
/- Copyright (c) 2020 Patrick Stevens. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Patrick Stevens, Bolton Bailey -/ import Mathlib.Data.Nat.Choose.Factorization import Mathlib.Data.Nat.PrimeNormNum import Mathlib.NumberTheory.Primorial import Mathlib.Analysis.Conve...
equals 2 ^ 9 => norm_num1
/-- A reified version of the `Bertrand.main_inequality` below. This is not best possible: it actually holds for 464 ≤ x. -/ theorem real_main_inequality {x : ℝ} (n_large : (512 : ℝ) ≤ x) : x * (2 * x) ^ sqrt (2 * x) * 4 ^ (2 * x / 3) ≤ 4 ^ x := by let f : ℝ → ℝ := fun x => log x + sqrt (2 * x) * log (2 * x) - log...
Mathlib.NumberTheory.Bertrand.51_0.gJXoOT9Ce2wC0xc
/-- A reified version of the `Bertrand.main_inequality` below. This is not best possible: it actually holds for 464 ≤ x. -/ theorem real_main_inequality {x : ℝ} (n_large : (512 : ℝ) ≤ x) : x * (2 * x) ^ sqrt (2 * x) * 4 ^ (2 * x / 3) ≤ 4 ^ x
Mathlib_NumberTheory_Bertrand
x : ℝ n_large : 512 ≤ x f : ℝ → ℝ := fun x => log x + sqrt (2 * x) * log (2 * x) - log 4 / 3 * x hf' : ∀ (x : ℝ), 0 < x → 0 < x * (2 * x) ^ sqrt (2 * x) / 4 ^ (x / 3) hf : ∀ (x : ℝ), 0 < x → f x = log (x * (2 * x) ^ sqrt (2 * x) / 4 ^ (x / 3)) h5 : 0 < x h : ConcaveOn ℝ (Set.Ioi 0.5) f this : sqrt (2 * 512) = 32 | 512
/- Copyright (c) 2020 Patrick Stevens. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Patrick Stevens, Bolton Bailey -/ import Mathlib.Data.Nat.Choose.Factorization import Mathlib.Data.Nat.PrimeNormNum import Mathlib.NumberTheory.Primorial import Mathlib.Analysis.Conve...
equals 2 ^ 9 => norm_num1
/-- A reified version of the `Bertrand.main_inequality` below. This is not best possible: it actually holds for 464 ≤ x. -/ theorem real_main_inequality {x : ℝ} (n_large : (512 : ℝ) ≤ x) : x * (2 * x) ^ sqrt (2 * x) * 4 ^ (2 * x / 3) ≤ 4 ^ x := by let f : ℝ → ℝ := fun x => log x + sqrt (2 * x) * log (2 * x) - log...
Mathlib.NumberTheory.Bertrand.51_0.gJXoOT9Ce2wC0xc
/-- A reified version of the `Bertrand.main_inequality` below. This is not best possible: it actually holds for 464 ≤ x. -/ theorem real_main_inequality {x : ℝ} (n_large : (512 : ℝ) ≤ x) : x * (2 * x) ^ sqrt (2 * x) * 4 ^ (2 * x / 3) ≤ 4 ^ x
Mathlib_NumberTheory_Bertrand
x : ℝ n_large : 512 ≤ x f : ℝ → ℝ := fun x => log x + sqrt (2 * x) * log (2 * x) - log 4 / 3 * x hf' : ∀ (x : ℝ), 0 < x → 0 < x * (2 * x) ^ sqrt (2 * x) / 4 ^ (x / 3) hf : ∀ (x : ℝ), 0 < x → f x = log (x * (2 * x) ^ sqrt (2 * x) / 4 ^ (x / 3)) h5 : 0 < x h : ConcaveOn ℝ (Set.Ioi 0.5) f this : sqrt (2 * 512) = 32 | 512
/- Copyright (c) 2020 Patrick Stevens. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Patrick Stevens, Bolton Bailey -/ import Mathlib.Data.Nat.Choose.Factorization import Mathlib.Data.Nat.PrimeNormNum import Mathlib.NumberTheory.Primorial import Mathlib.Analysis.Conve...
equals 2 ^ 9 => norm_num1
/-- A reified version of the `Bertrand.main_inequality` below. This is not best possible: it actually holds for 464 ≤ x. -/ theorem real_main_inequality {x : ℝ} (n_large : (512 : ℝ) ≤ x) : x * (2 * x) ^ sqrt (2 * x) * 4 ^ (2 * x / 3) ≤ 4 ^ x := by let f : ℝ → ℝ := fun x => log x + sqrt (2 * x) * log (2 * x) - log...
Mathlib.NumberTheory.Bertrand.51_0.gJXoOT9Ce2wC0xc
/-- A reified version of the `Bertrand.main_inequality` below. This is not best possible: it actually holds for 464 ≤ x. -/ theorem real_main_inequality {x : ℝ} (n_large : (512 : ℝ) ≤ x) : x * (2 * x) ^ sqrt (2 * x) * 4 ^ (2 * x / 3) ≤ 4 ^ x
Mathlib_NumberTheory_Bertrand
x : ℝ n_large : 512 ≤ x f : ℝ → ℝ := fun x => log x + sqrt (2 * x) * log (2 * x) - log 4 / 3 * x hf' : ∀ (x : ℝ), 0 < x → 0 < x * (2 * x) ^ sqrt (2 * x) / 4 ^ (x / 3) hf : ∀ (x : ℝ), 0 < x → f x = log (x * (2 * x) ^ sqrt (2 * x) / 4 ^ (x / 3)) h5 : 0 < x h : ConcaveOn ℝ (Set.Ioi 0.5) f this : sqrt (2 * 512) = 32 ⊢ 512 ...
/- Copyright (c) 2020 Patrick Stevens. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Patrick Stevens, Bolton Bailey -/ import Mathlib.Data.Nat.Choose.Factorization import Mathlib.Data.Nat.PrimeNormNum import Mathlib.NumberTheory.Primorial import Mathlib.Analysis.Conve...
norm_num1
/-- A reified version of the `Bertrand.main_inequality` below. This is not best possible: it actually holds for 464 ≤ x. -/ theorem real_main_inequality {x : ℝ} (n_large : (512 : ℝ) ≤ x) : x * (2 * x) ^ sqrt (2 * x) * 4 ^ (2 * x / 3) ≤ 4 ^ x := by let f : ℝ → ℝ := fun x => log x + sqrt (2 * x) * log (2 * x) - log...
Mathlib.NumberTheory.Bertrand.51_0.gJXoOT9Ce2wC0xc
/-- A reified version of the `Bertrand.main_inequality` below. This is not best possible: it actually holds for 464 ≤ x. -/ theorem real_main_inequality {x : ℝ} (n_large : (512 : ℝ) ≤ x) : x * (2 * x) ^ sqrt (2 * x) * 4 ^ (2 * x / 3) ≤ 4 ^ x
Mathlib_NumberTheory_Bertrand
case refine'_2 x : ℝ n_large : 512 ≤ x f : ℝ → ℝ := fun x => log x + sqrt (2 * x) * log (2 * x) - log 4 / 3 * x hf' : ∀ (x : ℝ), 0 < x → 0 < x * (2 * x) ^ sqrt (2 * x) / 4 ^ (x / 3) hf : ∀ (x : ℝ), 0 < x → f x = log (x * (2 * x) ^ sqrt (2 * x) / 4 ^ (x / 3)) h5 : 0 < x h : ConcaveOn ℝ (Set.Ioi 0.5) f this : sqrt (2 * 5...
/- Copyright (c) 2020 Patrick Stevens. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Patrick Stevens, Bolton Bailey -/ import Mathlib.Data.Nat.Choose.Factorization import Mathlib.Data.Nat.PrimeNormNum import Mathlib.NumberTheory.Primorial import Mathlib.Analysis.Conve...
conv in 1024 => equals 2 ^ 10 => norm_num1
/-- A reified version of the `Bertrand.main_inequality` below. This is not best possible: it actually holds for 464 ≤ x. -/ theorem real_main_inequality {x : ℝ} (n_large : (512 : ℝ) ≤ x) : x * (2 * x) ^ sqrt (2 * x) * 4 ^ (2 * x / 3) ≤ 4 ^ x := by let f : ℝ → ℝ := fun x => log x + sqrt (2 * x) * log (2 * x) - log...
Mathlib.NumberTheory.Bertrand.51_0.gJXoOT9Ce2wC0xc
/-- A reified version of the `Bertrand.main_inequality` below. This is not best possible: it actually holds for 464 ≤ x. -/ theorem real_main_inequality {x : ℝ} (n_large : (512 : ℝ) ≤ x) : x * (2 * x) ^ sqrt (2 * x) * 4 ^ (2 * x / 3) ≤ 4 ^ x
Mathlib_NumberTheory_Bertrand
x : ℝ n_large : 512 ≤ x f : ℝ → ℝ := fun x => log x + sqrt (2 * x) * log (2 * x) - log 4 / 3 * x hf' : ∀ (x : ℝ), 0 < x → 0 < x * (2 * x) ^ sqrt (2 * x) / 4 ^ (x / 3) hf : ∀ (x : ℝ), 0 < x → f x = log (x * (2 * x) ^ sqrt (2 * x) / 4 ^ (x / 3)) h5 : 0 < x h : ConcaveOn ℝ (Set.Ioi 0.5) f this : sqrt (2 * 512) = 32 | 1024
/- Copyright (c) 2020 Patrick Stevens. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Patrick Stevens, Bolton Bailey -/ import Mathlib.Data.Nat.Choose.Factorization import Mathlib.Data.Nat.PrimeNormNum import Mathlib.NumberTheory.Primorial import Mathlib.Analysis.Conve...
equals 2 ^ 10 => norm_num1
/-- A reified version of the `Bertrand.main_inequality` below. This is not best possible: it actually holds for 464 ≤ x. -/ theorem real_main_inequality {x : ℝ} (n_large : (512 : ℝ) ≤ x) : x * (2 * x) ^ sqrt (2 * x) * 4 ^ (2 * x / 3) ≤ 4 ^ x := by let f : ℝ → ℝ := fun x => log x + sqrt (2 * x) * log (2 * x) - log...
Mathlib.NumberTheory.Bertrand.51_0.gJXoOT9Ce2wC0xc
/-- A reified version of the `Bertrand.main_inequality` below. This is not best possible: it actually holds for 464 ≤ x. -/ theorem real_main_inequality {x : ℝ} (n_large : (512 : ℝ) ≤ x) : x * (2 * x) ^ sqrt (2 * x) * 4 ^ (2 * x / 3) ≤ 4 ^ x
Mathlib_NumberTheory_Bertrand
x : ℝ n_large : 512 ≤ x f : ℝ → ℝ := fun x => log x + sqrt (2 * x) * log (2 * x) - log 4 / 3 * x hf' : ∀ (x : ℝ), 0 < x → 0 < x * (2 * x) ^ sqrt (2 * x) / 4 ^ (x / 3) hf : ∀ (x : ℝ), 0 < x → f x = log (x * (2 * x) ^ sqrt (2 * x) / 4 ^ (x / 3)) h5 : 0 < x h : ConcaveOn ℝ (Set.Ioi 0.5) f this : sqrt (2 * 512) = 32 | 1024
/- Copyright (c) 2020 Patrick Stevens. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Patrick Stevens, Bolton Bailey -/ import Mathlib.Data.Nat.Choose.Factorization import Mathlib.Data.Nat.PrimeNormNum import Mathlib.NumberTheory.Primorial import Mathlib.Analysis.Conve...
equals 2 ^ 10 => norm_num1
/-- A reified version of the `Bertrand.main_inequality` below. This is not best possible: it actually holds for 464 ≤ x. -/ theorem real_main_inequality {x : ℝ} (n_large : (512 : ℝ) ≤ x) : x * (2 * x) ^ sqrt (2 * x) * 4 ^ (2 * x / 3) ≤ 4 ^ x := by let f : ℝ → ℝ := fun x => log x + sqrt (2 * x) * log (2 * x) - log...
Mathlib.NumberTheory.Bertrand.51_0.gJXoOT9Ce2wC0xc
/-- A reified version of the `Bertrand.main_inequality` below. This is not best possible: it actually holds for 464 ≤ x. -/ theorem real_main_inequality {x : ℝ} (n_large : (512 : ℝ) ≤ x) : x * (2 * x) ^ sqrt (2 * x) * 4 ^ (2 * x / 3) ≤ 4 ^ x
Mathlib_NumberTheory_Bertrand
x : ℝ n_large : 512 ≤ x f : ℝ → ℝ := fun x => log x + sqrt (2 * x) * log (2 * x) - log 4 / 3 * x hf' : ∀ (x : ℝ), 0 < x → 0 < x * (2 * x) ^ sqrt (2 * x) / 4 ^ (x / 3) hf : ∀ (x : ℝ), 0 < x → f x = log (x * (2 * x) ^ sqrt (2 * x) / 4 ^ (x / 3)) h5 : 0 < x h : ConcaveOn ℝ (Set.Ioi 0.5) f this : sqrt (2 * 512) = 32 | 1024
/- Copyright (c) 2020 Patrick Stevens. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Patrick Stevens, Bolton Bailey -/ import Mathlib.Data.Nat.Choose.Factorization import Mathlib.Data.Nat.PrimeNormNum import Mathlib.NumberTheory.Primorial import Mathlib.Analysis.Conve...
equals 2 ^ 10 => norm_num1
/-- A reified version of the `Bertrand.main_inequality` below. This is not best possible: it actually holds for 464 ≤ x. -/ theorem real_main_inequality {x : ℝ} (n_large : (512 : ℝ) ≤ x) : x * (2 * x) ^ sqrt (2 * x) * 4 ^ (2 * x / 3) ≤ 4 ^ x := by let f : ℝ → ℝ := fun x => log x + sqrt (2 * x) * log (2 * x) - log...
Mathlib.NumberTheory.Bertrand.51_0.gJXoOT9Ce2wC0xc
/-- A reified version of the `Bertrand.main_inequality` below. This is not best possible: it actually holds for 464 ≤ x. -/ theorem real_main_inequality {x : ℝ} (n_large : (512 : ℝ) ≤ x) : x * (2 * x) ^ sqrt (2 * x) * 4 ^ (2 * x / 3) ≤ 4 ^ x
Mathlib_NumberTheory_Bertrand
x : ℝ n_large : 512 ≤ x f : ℝ → ℝ := fun x => log x + sqrt (2 * x) * log (2 * x) - log 4 / 3 * x hf' : ∀ (x : ℝ), 0 < x → 0 < x * (2 * x) ^ sqrt (2 * x) / 4 ^ (x / 3) hf : ∀ (x : ℝ), 0 < x → f x = log (x * (2 * x) ^ sqrt (2 * x) / 4 ^ (x / 3)) h5 : 0 < x h : ConcaveOn ℝ (Set.Ioi 0.5) f this : sqrt (2 * 512) = 32 ⊢ 1024...
/- Copyright (c) 2020 Patrick Stevens. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Patrick Stevens, Bolton Bailey -/ import Mathlib.Data.Nat.Choose.Factorization import Mathlib.Data.Nat.PrimeNormNum import Mathlib.NumberTheory.Primorial import Mathlib.Analysis.Conve...
norm_num1
/-- A reified version of the `Bertrand.main_inequality` below. This is not best possible: it actually holds for 464 ≤ x. -/ theorem real_main_inequality {x : ℝ} (n_large : (512 : ℝ) ≤ x) : x * (2 * x) ^ sqrt (2 * x) * 4 ^ (2 * x / 3) ≤ 4 ^ x := by let f : ℝ → ℝ := fun x => log x + sqrt (2 * x) * log (2 * x) - log...
Mathlib.NumberTheory.Bertrand.51_0.gJXoOT9Ce2wC0xc
/-- A reified version of the `Bertrand.main_inequality` below. This is not best possible: it actually holds for 464 ≤ x. -/ theorem real_main_inequality {x : ℝ} (n_large : (512 : ℝ) ≤ x) : x * (2 * x) ^ sqrt (2 * x) * 4 ^ (2 * x / 3) ≤ 4 ^ x
Mathlib_NumberTheory_Bertrand
case refine'_2 x : ℝ n_large : 512 ≤ x f : ℝ → ℝ := fun x => log x + sqrt (2 * x) * log (2 * x) - log 4 / 3 * x hf' : ∀ (x : ℝ), 0 < x → 0 < x * (2 * x) ^ sqrt (2 * x) / 4 ^ (x / 3) hf : ∀ (x : ℝ), 0 < x → f x = log (x * (2 * x) ^ sqrt (2 * x) / 4 ^ (x / 3)) h5 : 0 < x h : ConcaveOn ℝ (Set.Ioi 0.5) f this : sqrt (2 * 5...
/- Copyright (c) 2020 Patrick Stevens. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Patrick Stevens, Bolton Bailey -/ import Mathlib.Data.Nat.Choose.Factorization import Mathlib.Data.Nat.PrimeNormNum import Mathlib.NumberTheory.Primorial import Mathlib.Analysis.Conve...
conv in 32 => rw [← Nat.cast_ofNat]
/-- A reified version of the `Bertrand.main_inequality` below. This is not best possible: it actually holds for 464 ≤ x. -/ theorem real_main_inequality {x : ℝ} (n_large : (512 : ℝ) ≤ x) : x * (2 * x) ^ sqrt (2 * x) * 4 ^ (2 * x / 3) ≤ 4 ^ x := by let f : ℝ → ℝ := fun x => log x + sqrt (2 * x) * log (2 * x) - log...
Mathlib.NumberTheory.Bertrand.51_0.gJXoOT9Ce2wC0xc
/-- A reified version of the `Bertrand.main_inequality` below. This is not best possible: it actually holds for 464 ≤ x. -/ theorem real_main_inequality {x : ℝ} (n_large : (512 : ℝ) ≤ x) : x * (2 * x) ^ sqrt (2 * x) * 4 ^ (2 * x / 3) ≤ 4 ^ x
Mathlib_NumberTheory_Bertrand
x : ℝ n_large : 512 ≤ x f : ℝ → ℝ := fun x => log x + sqrt (2 * x) * log (2 * x) - log 4 / 3 * x hf' : ∀ (x : ℝ), 0 < x → 0 < x * (2 * x) ^ sqrt (2 * x) / 4 ^ (x / 3) hf : ∀ (x : ℝ), 0 < x → f x = log (x * (2 * x) ^ sqrt (2 * x) / 4 ^ (x / 3)) h5 : 0 < x h : ConcaveOn ℝ (Set.Ioi 0.5) f this : sqrt (2 * 512) = 32 | 32
/- Copyright (c) 2020 Patrick Stevens. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Patrick Stevens, Bolton Bailey -/ import Mathlib.Data.Nat.Choose.Factorization import Mathlib.Data.Nat.PrimeNormNum import Mathlib.NumberTheory.Primorial import Mathlib.Analysis.Conve...
rw [← Nat.cast_ofNat]
/-- A reified version of the `Bertrand.main_inequality` below. This is not best possible: it actually holds for 464 ≤ x. -/ theorem real_main_inequality {x : ℝ} (n_large : (512 : ℝ) ≤ x) : x * (2 * x) ^ sqrt (2 * x) * 4 ^ (2 * x / 3) ≤ 4 ^ x := by let f : ℝ → ℝ := fun x => log x + sqrt (2 * x) * log (2 * x) - log...
Mathlib.NumberTheory.Bertrand.51_0.gJXoOT9Ce2wC0xc
/-- A reified version of the `Bertrand.main_inequality` below. This is not best possible: it actually holds for 464 ≤ x. -/ theorem real_main_inequality {x : ℝ} (n_large : (512 : ℝ) ≤ x) : x * (2 * x) ^ sqrt (2 * x) * 4 ^ (2 * x / 3) ≤ 4 ^ x
Mathlib_NumberTheory_Bertrand
x : ℝ n_large : 512 ≤ x f : ℝ → ℝ := fun x => log x + sqrt (2 * x) * log (2 * x) - log 4 / 3 * x hf' : ∀ (x : ℝ), 0 < x → 0 < x * (2 * x) ^ sqrt (2 * x) / 4 ^ (x / 3) hf : ∀ (x : ℝ), 0 < x → f x = log (x * (2 * x) ^ sqrt (2 * x) / 4 ^ (x / 3)) h5 : 0 < x h : ConcaveOn ℝ (Set.Ioi 0.5) f this : sqrt (2 * 512) = 32 | 32
/- Copyright (c) 2020 Patrick Stevens. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Patrick Stevens, Bolton Bailey -/ import Mathlib.Data.Nat.Choose.Factorization import Mathlib.Data.Nat.PrimeNormNum import Mathlib.NumberTheory.Primorial import Mathlib.Analysis.Conve...
rw [← Nat.cast_ofNat]
/-- A reified version of the `Bertrand.main_inequality` below. This is not best possible: it actually holds for 464 ≤ x. -/ theorem real_main_inequality {x : ℝ} (n_large : (512 : ℝ) ≤ x) : x * (2 * x) ^ sqrt (2 * x) * 4 ^ (2 * x / 3) ≤ 4 ^ x := by let f : ℝ → ℝ := fun x => log x + sqrt (2 * x) * log (2 * x) - log...
Mathlib.NumberTheory.Bertrand.51_0.gJXoOT9Ce2wC0xc
/-- A reified version of the `Bertrand.main_inequality` below. This is not best possible: it actually holds for 464 ≤ x. -/ theorem real_main_inequality {x : ℝ} (n_large : (512 : ℝ) ≤ x) : x * (2 * x) ^ sqrt (2 * x) * 4 ^ (2 * x / 3) ≤ 4 ^ x
Mathlib_NumberTheory_Bertrand
x : ℝ n_large : 512 ≤ x f : ℝ → ℝ := fun x => log x + sqrt (2 * x) * log (2 * x) - log 4 / 3 * x hf' : ∀ (x : ℝ), 0 < x → 0 < x * (2 * x) ^ sqrt (2 * x) / 4 ^ (x / 3) hf : ∀ (x : ℝ), 0 < x → f x = log (x * (2 * x) ^ sqrt (2 * x) / 4 ^ (x / 3)) h5 : 0 < x h : ConcaveOn ℝ (Set.Ioi 0.5) f this : sqrt (2 * 512) = 32 | 32
/- Copyright (c) 2020 Patrick Stevens. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Patrick Stevens, Bolton Bailey -/ import Mathlib.Data.Nat.Choose.Factorization import Mathlib.Data.Nat.PrimeNormNum import Mathlib.NumberTheory.Primorial import Mathlib.Analysis.Conve...
rw [← Nat.cast_ofNat]
/-- A reified version of the `Bertrand.main_inequality` below. This is not best possible: it actually holds for 464 ≤ x. -/ theorem real_main_inequality {x : ℝ} (n_large : (512 : ℝ) ≤ x) : x * (2 * x) ^ sqrt (2 * x) * 4 ^ (2 * x / 3) ≤ 4 ^ x := by let f : ℝ → ℝ := fun x => log x + sqrt (2 * x) * log (2 * x) - log...
Mathlib.NumberTheory.Bertrand.51_0.gJXoOT9Ce2wC0xc
/-- A reified version of the `Bertrand.main_inequality` below. This is not best possible: it actually holds for 464 ≤ x. -/ theorem real_main_inequality {x : ℝ} (n_large : (512 : ℝ) ≤ x) : x * (2 * x) ^ sqrt (2 * x) * 4 ^ (2 * x / 3) ≤ 4 ^ x
Mathlib_NumberTheory_Bertrand
case refine'_2 x : ℝ n_large : 512 ≤ x f : ℝ → ℝ := fun x => log x + sqrt (2 * x) * log (2 * x) - log 4 / 3 * x hf' : ∀ (x : ℝ), 0 < x → 0 < x * (2 * x) ^ sqrt (2 * x) / 4 ^ (x / 3) hf : ∀ (x : ℝ), 0 < x → f x = log (x * (2 * x) ^ sqrt (2 * x) / 4 ^ (x / 3)) h5 : 0 < x h : ConcaveOn ℝ (Set.Ioi 0.5) f this : sqrt (2 * 5...
/- Copyright (c) 2020 Patrick Stevens. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Patrick Stevens, Bolton Bailey -/ import Mathlib.Data.Nat.Choose.Factorization import Mathlib.Data.Nat.PrimeNormNum import Mathlib.NumberTheory.Primorial import Mathlib.Analysis.Conve...
rw [rpow_nat_cast, ← pow_mul, ← pow_add]
/-- A reified version of the `Bertrand.main_inequality` below. This is not best possible: it actually holds for 464 ≤ x. -/ theorem real_main_inequality {x : ℝ} (n_large : (512 : ℝ) ≤ x) : x * (2 * x) ^ sqrt (2 * x) * 4 ^ (2 * x / 3) ≤ 4 ^ x := by let f : ℝ → ℝ := fun x => log x + sqrt (2 * x) * log (2 * x) - log...
Mathlib.NumberTheory.Bertrand.51_0.gJXoOT9Ce2wC0xc
/-- A reified version of the `Bertrand.main_inequality` below. This is not best possible: it actually holds for 464 ≤ x. -/ theorem real_main_inequality {x : ℝ} (n_large : (512 : ℝ) ≤ x) : x * (2 * x) ^ sqrt (2 * x) * 4 ^ (2 * x / 3) ≤ 4 ^ x
Mathlib_NumberTheory_Bertrand
case refine'_2 x : ℝ n_large : 512 ≤ x f : ℝ → ℝ := fun x => log x + sqrt (2 * x) * log (2 * x) - log 4 / 3 * x hf' : ∀ (x : ℝ), 0 < x → 0 < x * (2 * x) ^ sqrt (2 * x) / 4 ^ (x / 3) hf : ∀ (x : ℝ), 0 < x → f x = log (x * (2 * x) ^ sqrt (2 * x) / 4 ^ (x / 3)) h5 : 0 < x h : ConcaveOn ℝ (Set.Ioi 0.5) f this : sqrt (2 * 5...
/- Copyright (c) 2020 Patrick Stevens. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Patrick Stevens, Bolton Bailey -/ import Mathlib.Data.Nat.Choose.Factorization import Mathlib.Data.Nat.PrimeNormNum import Mathlib.NumberTheory.Primorial import Mathlib.Analysis.Conve...
conv in 4 => equals 2 ^ (2 : ℝ) => rw [rpow_two]; norm_num1
/-- A reified version of the `Bertrand.main_inequality` below. This is not best possible: it actually holds for 464 ≤ x. -/ theorem real_main_inequality {x : ℝ} (n_large : (512 : ℝ) ≤ x) : x * (2 * x) ^ sqrt (2 * x) * 4 ^ (2 * x / 3) ≤ 4 ^ x := by let f : ℝ → ℝ := fun x => log x + sqrt (2 * x) * log (2 * x) - log...
Mathlib.NumberTheory.Bertrand.51_0.gJXoOT9Ce2wC0xc
/-- A reified version of the `Bertrand.main_inequality` below. This is not best possible: it actually holds for 464 ≤ x. -/ theorem real_main_inequality {x : ℝ} (n_large : (512 : ℝ) ≤ x) : x * (2 * x) ^ sqrt (2 * x) * 4 ^ (2 * x / 3) ≤ 4 ^ x
Mathlib_NumberTheory_Bertrand
x : ℝ n_large : 512 ≤ x f : ℝ → ℝ := fun x => log x + sqrt (2 * x) * log (2 * x) - log 4 / 3 * x hf' : ∀ (x : ℝ), 0 < x → 0 < x * (2 * x) ^ sqrt (2 * x) / 4 ^ (x / 3) hf : ∀ (x : ℝ), 0 < x → f x = log (x * (2 * x) ^ sqrt (2 * x) / 4 ^ (x / 3)) h5 : 0 < x h : ConcaveOn ℝ (Set.Ioi 0.5) f this : sqrt (2 * 512) = 32 | 4
/- Copyright (c) 2020 Patrick Stevens. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Patrick Stevens, Bolton Bailey -/ import Mathlib.Data.Nat.Choose.Factorization import Mathlib.Data.Nat.PrimeNormNum import Mathlib.NumberTheory.Primorial import Mathlib.Analysis.Conve...
equals 2 ^ (2 : ℝ) => rw [rpow_two]; norm_num1
/-- A reified version of the `Bertrand.main_inequality` below. This is not best possible: it actually holds for 464 ≤ x. -/ theorem real_main_inequality {x : ℝ} (n_large : (512 : ℝ) ≤ x) : x * (2 * x) ^ sqrt (2 * x) * 4 ^ (2 * x / 3) ≤ 4 ^ x := by let f : ℝ → ℝ := fun x => log x + sqrt (2 * x) * log (2 * x) - log...
Mathlib.NumberTheory.Bertrand.51_0.gJXoOT9Ce2wC0xc
/-- A reified version of the `Bertrand.main_inequality` below. This is not best possible: it actually holds for 464 ≤ x. -/ theorem real_main_inequality {x : ℝ} (n_large : (512 : ℝ) ≤ x) : x * (2 * x) ^ sqrt (2 * x) * 4 ^ (2 * x / 3) ≤ 4 ^ x
Mathlib_NumberTheory_Bertrand
x : ℝ n_large : 512 ≤ x f : ℝ → ℝ := fun x => log x + sqrt (2 * x) * log (2 * x) - log 4 / 3 * x hf' : ∀ (x : ℝ), 0 < x → 0 < x * (2 * x) ^ sqrt (2 * x) / 4 ^ (x / 3) hf : ∀ (x : ℝ), 0 < x → f x = log (x * (2 * x) ^ sqrt (2 * x) / 4 ^ (x / 3)) h5 : 0 < x h : ConcaveOn ℝ (Set.Ioi 0.5) f this : sqrt (2 * 512) = 32 | 4
/- Copyright (c) 2020 Patrick Stevens. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Patrick Stevens, Bolton Bailey -/ import Mathlib.Data.Nat.Choose.Factorization import Mathlib.Data.Nat.PrimeNormNum import Mathlib.NumberTheory.Primorial import Mathlib.Analysis.Conve...
equals 2 ^ (2 : ℝ) => rw [rpow_two]; norm_num1
/-- A reified version of the `Bertrand.main_inequality` below. This is not best possible: it actually holds for 464 ≤ x. -/ theorem real_main_inequality {x : ℝ} (n_large : (512 : ℝ) ≤ x) : x * (2 * x) ^ sqrt (2 * x) * 4 ^ (2 * x / 3) ≤ 4 ^ x := by let f : ℝ → ℝ := fun x => log x + sqrt (2 * x) * log (2 * x) - log...
Mathlib.NumberTheory.Bertrand.51_0.gJXoOT9Ce2wC0xc
/-- A reified version of the `Bertrand.main_inequality` below. This is not best possible: it actually holds for 464 ≤ x. -/ theorem real_main_inequality {x : ℝ} (n_large : (512 : ℝ) ≤ x) : x * (2 * x) ^ sqrt (2 * x) * 4 ^ (2 * x / 3) ≤ 4 ^ x
Mathlib_NumberTheory_Bertrand
x : ℝ n_large : 512 ≤ x f : ℝ → ℝ := fun x => log x + sqrt (2 * x) * log (2 * x) - log 4 / 3 * x hf' : ∀ (x : ℝ), 0 < x → 0 < x * (2 * x) ^ sqrt (2 * x) / 4 ^ (x / 3) hf : ∀ (x : ℝ), 0 < x → f x = log (x * (2 * x) ^ sqrt (2 * x) / 4 ^ (x / 3)) h5 : 0 < x h : ConcaveOn ℝ (Set.Ioi 0.5) f this : sqrt (2 * 512) = 32 | 4
/- Copyright (c) 2020 Patrick Stevens. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Patrick Stevens, Bolton Bailey -/ import Mathlib.Data.Nat.Choose.Factorization import Mathlib.Data.Nat.PrimeNormNum import Mathlib.NumberTheory.Primorial import Mathlib.Analysis.Conve...
equals 2 ^ (2 : ℝ) => rw [rpow_two]; norm_num1
/-- A reified version of the `Bertrand.main_inequality` below. This is not best possible: it actually holds for 464 ≤ x. -/ theorem real_main_inequality {x : ℝ} (n_large : (512 : ℝ) ≤ x) : x * (2 * x) ^ sqrt (2 * x) * 4 ^ (2 * x / 3) ≤ 4 ^ x := by let f : ℝ → ℝ := fun x => log x + sqrt (2 * x) * log (2 * x) - log...
Mathlib.NumberTheory.Bertrand.51_0.gJXoOT9Ce2wC0xc
/-- A reified version of the `Bertrand.main_inequality` below. This is not best possible: it actually holds for 464 ≤ x. -/ theorem real_main_inequality {x : ℝ} (n_large : (512 : ℝ) ≤ x) : x * (2 * x) ^ sqrt (2 * x) * 4 ^ (2 * x / 3) ≤ 4 ^ x
Mathlib_NumberTheory_Bertrand
x : ℝ n_large : 512 ≤ x f : ℝ → ℝ := fun x => log x + sqrt (2 * x) * log (2 * x) - log 4 / 3 * x hf' : ∀ (x : ℝ), 0 < x → 0 < x * (2 * x) ^ sqrt (2 * x) / 4 ^ (x / 3) hf : ∀ (x : ℝ), 0 < x → f x = log (x * (2 * x) ^ sqrt (2 * x) / 4 ^ (x / 3)) h5 : 0 < x h : ConcaveOn ℝ (Set.Ioi 0.5) f this : sqrt (2 * 512) = 32 ⊢ 4 = ...
/- Copyright (c) 2020 Patrick Stevens. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Patrick Stevens, Bolton Bailey -/ import Mathlib.Data.Nat.Choose.Factorization import Mathlib.Data.Nat.PrimeNormNum import Mathlib.NumberTheory.Primorial import Mathlib.Analysis.Conve...
rw [rpow_two]
/-- A reified version of the `Bertrand.main_inequality` below. This is not best possible: it actually holds for 464 ≤ x. -/ theorem real_main_inequality {x : ℝ} (n_large : (512 : ℝ) ≤ x) : x * (2 * x) ^ sqrt (2 * x) * 4 ^ (2 * x / 3) ≤ 4 ^ x := by let f : ℝ → ℝ := fun x => log x + sqrt (2 * x) * log (2 * x) - log...
Mathlib.NumberTheory.Bertrand.51_0.gJXoOT9Ce2wC0xc
/-- A reified version of the `Bertrand.main_inequality` below. This is not best possible: it actually holds for 464 ≤ x. -/ theorem real_main_inequality {x : ℝ} (n_large : (512 : ℝ) ≤ x) : x * (2 * x) ^ sqrt (2 * x) * 4 ^ (2 * x / 3) ≤ 4 ^ x
Mathlib_NumberTheory_Bertrand
x : ℝ n_large : 512 ≤ x f : ℝ → ℝ := fun x => log x + sqrt (2 * x) * log (2 * x) - log 4 / 3 * x hf' : ∀ (x : ℝ), 0 < x → 0 < x * (2 * x) ^ sqrt (2 * x) / 4 ^ (x / 3) hf : ∀ (x : ℝ), 0 < x → f x = log (x * (2 * x) ^ sqrt (2 * x) / 4 ^ (x / 3)) h5 : 0 < x h : ConcaveOn ℝ (Set.Ioi 0.5) f this : sqrt (2 * 512) = 32 ⊢ 4 = ...
/- Copyright (c) 2020 Patrick Stevens. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Patrick Stevens, Bolton Bailey -/ import Mathlib.Data.Nat.Choose.Factorization import Mathlib.Data.Nat.PrimeNormNum import Mathlib.NumberTheory.Primorial import Mathlib.Analysis.Conve...
norm_num1
/-- A reified version of the `Bertrand.main_inequality` below. This is not best possible: it actually holds for 464 ≤ x. -/ theorem real_main_inequality {x : ℝ} (n_large : (512 : ℝ) ≤ x) : x * (2 * x) ^ sqrt (2 * x) * 4 ^ (2 * x / 3) ≤ 4 ^ x := by let f : ℝ → ℝ := fun x => log x + sqrt (2 * x) * log (2 * x) - log...
Mathlib.NumberTheory.Bertrand.51_0.gJXoOT9Ce2wC0xc
/-- A reified version of the `Bertrand.main_inequality` below. This is not best possible: it actually holds for 464 ≤ x. -/ theorem real_main_inequality {x : ℝ} (n_large : (512 : ℝ) ≤ x) : x * (2 * x) ^ sqrt (2 * x) * 4 ^ (2 * x / 3) ≤ 4 ^ x
Mathlib_NumberTheory_Bertrand
case refine'_2 x : ℝ n_large : 512 ≤ x f : ℝ → ℝ := fun x => log x + sqrt (2 * x) * log (2 * x) - log 4 / 3 * x hf' : ∀ (x : ℝ), 0 < x → 0 < x * (2 * x) ^ sqrt (2 * x) / 4 ^ (x / 3) hf : ∀ (x : ℝ), 0 < x → f x = log (x * (2 * x) ^ sqrt (2 * x) / 4 ^ (x / 3)) h5 : 0 < x h : ConcaveOn ℝ (Set.Ioi 0.5) f this : sqrt (2 * 5...
/- Copyright (c) 2020 Patrick Stevens. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Patrick Stevens, Bolton Bailey -/ import Mathlib.Data.Nat.Choose.Factorization import Mathlib.Data.Nat.PrimeNormNum import Mathlib.NumberTheory.Primorial import Mathlib.Analysis.Conve...
rw [← rpow_mul, ← rpow_nat_cast]
/-- A reified version of the `Bertrand.main_inequality` below. This is not best possible: it actually holds for 464 ≤ x. -/ theorem real_main_inequality {x : ℝ} (n_large : (512 : ℝ) ≤ x) : x * (2 * x) ^ sqrt (2 * x) * 4 ^ (2 * x / 3) ≤ 4 ^ x := by let f : ℝ → ℝ := fun x => log x + sqrt (2 * x) * log (2 * x) - log...
Mathlib.NumberTheory.Bertrand.51_0.gJXoOT9Ce2wC0xc
/-- A reified version of the `Bertrand.main_inequality` below. This is not best possible: it actually holds for 464 ≤ x. -/ theorem real_main_inequality {x : ℝ} (n_large : (512 : ℝ) ≤ x) : x * (2 * x) ^ sqrt (2 * x) * 4 ^ (2 * x / 3) ≤ 4 ^ x
Mathlib_NumberTheory_Bertrand
case refine'_2 x : ℝ n_large : 512 ≤ x f : ℝ → ℝ := fun x => log x + sqrt (2 * x) * log (2 * x) - log 4 / 3 * x hf' : ∀ (x : ℝ), 0 < x → 0 < x * (2 * x) ^ sqrt (2 * x) / 4 ^ (x / 3) hf : ∀ (x : ℝ), 0 < x → f x = log (x * (2 * x) ^ sqrt (2 * x) / 4 ^ (x / 3)) h5 : 0 < x h : ConcaveOn ℝ (Set.Ioi 0.5) f this : sqrt (2 * 5...
/- Copyright (c) 2020 Patrick Stevens. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Patrick Stevens, Bolton Bailey -/ import Mathlib.Data.Nat.Choose.Factorization import Mathlib.Data.Nat.PrimeNormNum import Mathlib.NumberTheory.Primorial import Mathlib.Analysis.Conve...
apply rpow_le_rpow_of_exponent_le
/-- A reified version of the `Bertrand.main_inequality` below. This is not best possible: it actually holds for 464 ≤ x. -/ theorem real_main_inequality {x : ℝ} (n_large : (512 : ℝ) ≤ x) : x * (2 * x) ^ sqrt (2 * x) * 4 ^ (2 * x / 3) ≤ 4 ^ x := by let f : ℝ → ℝ := fun x => log x + sqrt (2 * x) * log (2 * x) - log...
Mathlib.NumberTheory.Bertrand.51_0.gJXoOT9Ce2wC0xc
/-- A reified version of the `Bertrand.main_inequality` below. This is not best possible: it actually holds for 464 ≤ x. -/ theorem real_main_inequality {x : ℝ} (n_large : (512 : ℝ) ≤ x) : x * (2 * x) ^ sqrt (2 * x) * 4 ^ (2 * x / 3) ≤ 4 ^ x
Mathlib_NumberTheory_Bertrand
case refine'_2.hx x : ℝ n_large : 512 ≤ x f : ℝ → ℝ := fun x => log x + sqrt (2 * x) * log (2 * x) - log 4 / 3 * x hf' : ∀ (x : ℝ), 0 < x → 0 < x * (2 * x) ^ sqrt (2 * x) / 4 ^ (x / 3) hf : ∀ (x : ℝ), 0 < x → f x = log (x * (2 * x) ^ sqrt (2 * x) / 4 ^ (x / 3)) h5 : 0 < x h : ConcaveOn ℝ (Set.Ioi 0.5) f this : sqrt (2 ...
/- Copyright (c) 2020 Patrick Stevens. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Patrick Stevens, Bolton Bailey -/ import Mathlib.Data.Nat.Choose.Factorization import Mathlib.Data.Nat.PrimeNormNum import Mathlib.NumberTheory.Primorial import Mathlib.Analysis.Conve...
all_goals norm_num1
/-- A reified version of the `Bertrand.main_inequality` below. This is not best possible: it actually holds for 464 ≤ x. -/ theorem real_main_inequality {x : ℝ} (n_large : (512 : ℝ) ≤ x) : x * (2 * x) ^ sqrt (2 * x) * 4 ^ (2 * x / 3) ≤ 4 ^ x := by let f : ℝ → ℝ := fun x => log x + sqrt (2 * x) * log (2 * x) - log...
Mathlib.NumberTheory.Bertrand.51_0.gJXoOT9Ce2wC0xc
/-- A reified version of the `Bertrand.main_inequality` below. This is not best possible: it actually holds for 464 ≤ x. -/ theorem real_main_inequality {x : ℝ} (n_large : (512 : ℝ) ≤ x) : x * (2 * x) ^ sqrt (2 * x) * 4 ^ (2 * x / 3) ≤ 4 ^ x
Mathlib_NumberTheory_Bertrand
case refine'_2.hx x : ℝ n_large : 512 ≤ x f : ℝ → ℝ := fun x => log x + sqrt (2 * x) * log (2 * x) - log 4 / 3 * x hf' : ∀ (x : ℝ), 0 < x → 0 < x * (2 * x) ^ sqrt (2 * x) / 4 ^ (x / 3) hf : ∀ (x : ℝ), 0 < x → f x = log (x * (2 * x) ^ sqrt (2 * x) / 4 ^ (x / 3)) h5 : 0 < x h : ConcaveOn ℝ (Set.Ioi 0.5) f this : sqrt (2 ...
/- Copyright (c) 2020 Patrick Stevens. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Patrick Stevens, Bolton Bailey -/ import Mathlib.Data.Nat.Choose.Factorization import Mathlib.Data.Nat.PrimeNormNum import Mathlib.NumberTheory.Primorial import Mathlib.Analysis.Conve...
norm_num1
/-- A reified version of the `Bertrand.main_inequality` below. This is not best possible: it actually holds for 464 ≤ x. -/ theorem real_main_inequality {x : ℝ} (n_large : (512 : ℝ) ≤ x) : x * (2 * x) ^ sqrt (2 * x) * 4 ^ (2 * x / 3) ≤ 4 ^ x := by let f : ℝ → ℝ := fun x => log x + sqrt (2 * x) * log (2 * x) - log...
Mathlib.NumberTheory.Bertrand.51_0.gJXoOT9Ce2wC0xc
/-- A reified version of the `Bertrand.main_inequality` below. This is not best possible: it actually holds for 464 ≤ x. -/ theorem real_main_inequality {x : ℝ} (n_large : (512 : ℝ) ≤ x) : x * (2 * x) ^ sqrt (2 * x) * 4 ^ (2 * x / 3) ≤ 4 ^ x
Mathlib_NumberTheory_Bertrand
case refine'_2.hyz x : ℝ n_large : 512 ≤ x f : ℝ → ℝ := fun x => log x + sqrt (2 * x) * log (2 * x) - log 4 / 3 * x hf' : ∀ (x : ℝ), 0 < x → 0 < x * (2 * x) ^ sqrt (2 * x) / 4 ^ (x / 3) hf : ∀ (x : ℝ), 0 < x → f x = log (x * (2 * x) ^ sqrt (2 * x) / 4 ^ (x / 3)) h5 : 0 < x h : ConcaveOn ℝ (Set.Ioi 0.5) f this : sqrt (2...
/- Copyright (c) 2020 Patrick Stevens. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Patrick Stevens, Bolton Bailey -/ import Mathlib.Data.Nat.Choose.Factorization import Mathlib.Data.Nat.PrimeNormNum import Mathlib.NumberTheory.Primorial import Mathlib.Analysis.Conve...
norm_num1
/-- A reified version of the `Bertrand.main_inequality` below. This is not best possible: it actually holds for 464 ≤ x. -/ theorem real_main_inequality {x : ℝ} (n_large : (512 : ℝ) ≤ x) : x * (2 * x) ^ sqrt (2 * x) * 4 ^ (2 * x / 3) ≤ 4 ^ x := by let f : ℝ → ℝ := fun x => log x + sqrt (2 * x) * log (2 * x) - log...
Mathlib.NumberTheory.Bertrand.51_0.gJXoOT9Ce2wC0xc
/-- A reified version of the `Bertrand.main_inequality` below. This is not best possible: it actually holds for 464 ≤ x. -/ theorem real_main_inequality {x : ℝ} (n_large : (512 : ℝ) ≤ x) : x * (2 * x) ^ sqrt (2 * x) * 4 ^ (2 * x / 3) ≤ 4 ^ x
Mathlib_NumberTheory_Bertrand
case refine'_2.hx x : ℝ n_large : 512 ≤ x f : ℝ → ℝ := fun x => log x + sqrt (2 * x) * log (2 * x) - log 4 / 3 * x hf' : ∀ (x : ℝ), 0 < x → 0 < x * (2 * x) ^ sqrt (2 * x) / 4 ^ (x / 3) hf : ∀ (x : ℝ), 0 < x → f x = log (x * (2 * x) ^ sqrt (2 * x) / 4 ^ (x / 3)) h5 : 0 < x h : ConcaveOn ℝ (Set.Ioi 0.5) f this : sqrt (2 ...
/- Copyright (c) 2020 Patrick Stevens. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Patrick Stevens, Bolton Bailey -/ import Mathlib.Data.Nat.Choose.Factorization import Mathlib.Data.Nat.PrimeNormNum import Mathlib.NumberTheory.Primorial import Mathlib.Analysis.Conve...
norm_num1
/-- A reified version of the `Bertrand.main_inequality` below. This is not best possible: it actually holds for 464 ≤ x. -/ theorem real_main_inequality {x : ℝ} (n_large : (512 : ℝ) ≤ x) : x * (2 * x) ^ sqrt (2 * x) * 4 ^ (2 * x / 3) ≤ 4 ^ x := by let f : ℝ → ℝ := fun x => log x + sqrt (2 * x) * log (2 * x) - log...
Mathlib.NumberTheory.Bertrand.51_0.gJXoOT9Ce2wC0xc
/-- A reified version of the `Bertrand.main_inequality` below. This is not best possible: it actually holds for 464 ≤ x. -/ theorem real_main_inequality {x : ℝ} (n_large : (512 : ℝ) ≤ x) : x * (2 * x) ^ sqrt (2 * x) * 4 ^ (2 * x / 3) ≤ 4 ^ x
Mathlib_NumberTheory_Bertrand
case refine'_2 x : ℝ n_large : 512 ≤ x f : ℝ → ℝ := fun x => log x + sqrt (2 * x) * log (2 * x) - log 4 / 3 * x hf' : ∀ (x : ℝ), 0 < x → 0 < x * (2 * x) ^ sqrt (2 * x) / 4 ^ (x / 3) hf : ∀ (x : ℝ), 0 < x → f x = log (x * (2 * x) ^ sqrt (2 * x) / 4 ^ (x / 3)) h5 : 0 < x h : ConcaveOn ℝ (Set.Ioi 0.5) f this : sqrt (2 * 5...
/- Copyright (c) 2020 Patrick Stevens. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Patrick Stevens, Bolton Bailey -/ import Mathlib.Data.Nat.Choose.Factorization import Mathlib.Data.Nat.PrimeNormNum import Mathlib.NumberTheory.Primorial import Mathlib.Analysis.Conve...
apply rpow_pos_of_pos four_pos
/-- A reified version of the `Bertrand.main_inequality` below. This is not best possible: it actually holds for 464 ≤ x. -/ theorem real_main_inequality {x : ℝ} (n_large : (512 : ℝ) ≤ x) : x * (2 * x) ^ sqrt (2 * x) * 4 ^ (2 * x / 3) ≤ 4 ^ x := by let f : ℝ → ℝ := fun x => log x + sqrt (2 * x) * log (2 * x) - log...
Mathlib.NumberTheory.Bertrand.51_0.gJXoOT9Ce2wC0xc
/-- A reified version of the `Bertrand.main_inequality` below. This is not best possible: it actually holds for 464 ≤ x. -/ theorem real_main_inequality {x : ℝ} (n_large : (512 : ℝ) ≤ x) : x * (2 * x) ^ sqrt (2 * x) * 4 ^ (2 * x / 3) ≤ 4 ^ x
Mathlib_NumberTheory_Bertrand
n : ℕ n_large : 512 ≤ n ⊢ n * (2 * n) ^ sqrt (2 * n) * 4 ^ (2 * n / 3) ≤ 4 ^ n
/- Copyright (c) 2020 Patrick Stevens. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Patrick Stevens, Bolton Bailey -/ import Mathlib.Data.Nat.Choose.Factorization import Mathlib.Data.Nat.PrimeNormNum import Mathlib.NumberTheory.Primorial import Mathlib.Analysis.Conve...
rw [← @cast_le ℝ]
/-- The inequality which contradicts Bertrand's postulate, for large enough `n`. -/ theorem bertrand_main_inequality {n : ℕ} (n_large : 512 ≤ n) : n * (2 * n) ^ sqrt (2 * n) * 4 ^ (2 * n / 3) ≤ 4 ^ n := by
Mathlib.NumberTheory.Bertrand.121_0.gJXoOT9Ce2wC0xc
/-- The inequality which contradicts Bertrand's postulate, for large enough `n`. -/ theorem bertrand_main_inequality {n : ℕ} (n_large : 512 ≤ n) : n * (2 * n) ^ sqrt (2 * n) * 4 ^ (2 * n / 3) ≤ 4 ^ n
Mathlib_NumberTheory_Bertrand
n : ℕ n_large : 512 ≤ n ⊢ ↑(n * (2 * n) ^ sqrt (2 * n) * 4 ^ (2 * n / 3)) ≤ ↑(4 ^ n)
/- Copyright (c) 2020 Patrick Stevens. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Patrick Stevens, Bolton Bailey -/ import Mathlib.Data.Nat.Choose.Factorization import Mathlib.Data.Nat.PrimeNormNum import Mathlib.NumberTheory.Primorial import Mathlib.Analysis.Conve...
simp only [cast_add, cast_one, cast_mul, cast_pow, ← Real.rpow_nat_cast]
/-- The inequality which contradicts Bertrand's postulate, for large enough `n`. -/ theorem bertrand_main_inequality {n : ℕ} (n_large : 512 ≤ n) : n * (2 * n) ^ sqrt (2 * n) * 4 ^ (2 * n / 3) ≤ 4 ^ n := by rw [← @cast_le ℝ]
Mathlib.NumberTheory.Bertrand.121_0.gJXoOT9Ce2wC0xc
/-- The inequality which contradicts Bertrand's postulate, for large enough `n`. -/ theorem bertrand_main_inequality {n : ℕ} (n_large : 512 ≤ n) : n * (2 * n) ^ sqrt (2 * n) * 4 ^ (2 * n / 3) ≤ 4 ^ n
Mathlib_NumberTheory_Bertrand
n : ℕ n_large : 512 ≤ n ⊢ ↑n * (↑2 * ↑n) ^ ↑(sqrt (2 * n)) * ↑4 ^ ↑(2 * n / 3) ≤ ↑4 ^ ↑n
/- Copyright (c) 2020 Patrick Stevens. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Patrick Stevens, Bolton Bailey -/ import Mathlib.Data.Nat.Choose.Factorization import Mathlib.Data.Nat.PrimeNormNum import Mathlib.NumberTheory.Primorial import Mathlib.Analysis.Conve...
refine' _root_.trans ?_ (Bertrand.real_main_inequality (by exact_mod_cast n_large))
/-- The inequality which contradicts Bertrand's postulate, for large enough `n`. -/ theorem bertrand_main_inequality {n : ℕ} (n_large : 512 ≤ n) : n * (2 * n) ^ sqrt (2 * n) * 4 ^ (2 * n / 3) ≤ 4 ^ n := by rw [← @cast_le ℝ] simp only [cast_add, cast_one, cast_mul, cast_pow, ← Real.rpow_nat_cast]
Mathlib.NumberTheory.Bertrand.121_0.gJXoOT9Ce2wC0xc
/-- The inequality which contradicts Bertrand's postulate, for large enough `n`. -/ theorem bertrand_main_inequality {n : ℕ} (n_large : 512 ≤ n) : n * (2 * n) ^ sqrt (2 * n) * 4 ^ (2 * n / 3) ≤ 4 ^ n
Mathlib_NumberTheory_Bertrand
n : ℕ n_large : 512 ≤ n ⊢ 512 ≤ ↑n
/- Copyright (c) 2020 Patrick Stevens. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Patrick Stevens, Bolton Bailey -/ import Mathlib.Data.Nat.Choose.Factorization import Mathlib.Data.Nat.PrimeNormNum import Mathlib.NumberTheory.Primorial import Mathlib.Analysis.Conve...
exact_mod_cast n_large
/-- The inequality which contradicts Bertrand's postulate, for large enough `n`. -/ theorem bertrand_main_inequality {n : ℕ} (n_large : 512 ≤ n) : n * (2 * n) ^ sqrt (2 * n) * 4 ^ (2 * n / 3) ≤ 4 ^ n := by rw [← @cast_le ℝ] simp only [cast_add, cast_one, cast_mul, cast_pow, ← Real.rpow_nat_cast] refine' _root...
Mathlib.NumberTheory.Bertrand.121_0.gJXoOT9Ce2wC0xc
/-- The inequality which contradicts Bertrand's postulate, for large enough `n`. -/ theorem bertrand_main_inequality {n : ℕ} (n_large : 512 ≤ n) : n * (2 * n) ^ sqrt (2 * n) * 4 ^ (2 * n / 3) ≤ 4 ^ n
Mathlib_NumberTheory_Bertrand
n : ℕ n_large : 512 ≤ n ⊢ ↑n * (↑2 * ↑n) ^ ↑(sqrt (2 * n)) * ↑4 ^ ↑(2 * n / 3) ≤ ↑n * (2 * ↑n) ^ Real.sqrt (2 * ↑n) * 4 ^ (2 * ↑n / 3)
/- Copyright (c) 2020 Patrick Stevens. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Patrick Stevens, Bolton Bailey -/ import Mathlib.Data.Nat.Choose.Factorization import Mathlib.Data.Nat.PrimeNormNum import Mathlib.NumberTheory.Primorial import Mathlib.Analysis.Conve...
gcongr
/-- The inequality which contradicts Bertrand's postulate, for large enough `n`. -/ theorem bertrand_main_inequality {n : ℕ} (n_large : 512 ≤ n) : n * (2 * n) ^ sqrt (2 * n) * 4 ^ (2 * n / 3) ≤ 4 ^ n := by rw [← @cast_le ℝ] simp only [cast_add, cast_one, cast_mul, cast_pow, ← Real.rpow_nat_cast] refine' _root...
Mathlib.NumberTheory.Bertrand.121_0.gJXoOT9Ce2wC0xc
/-- The inequality which contradicts Bertrand's postulate, for large enough `n`. -/ theorem bertrand_main_inequality {n : ℕ} (n_large : 512 ≤ n) : n * (2 * n) ^ sqrt (2 * n) * 4 ^ (2 * n / 3) ≤ 4 ^ n
Mathlib_NumberTheory_Bertrand
case h₁.h.hx n : ℕ n_large : 512 ≤ n ⊢ 1 ≤ ↑2 * ↑n
/- Copyright (c) 2020 Patrick Stevens. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Patrick Stevens, Bolton Bailey -/ import Mathlib.Data.Nat.Choose.Factorization import Mathlib.Data.Nat.PrimeNormNum import Mathlib.NumberTheory.Primorial import Mathlib.Analysis.Conve...
have n2_pos : 0 < 2 * n := by positivity
/-- The inequality which contradicts Bertrand's postulate, for large enough `n`. -/ theorem bertrand_main_inequality {n : ℕ} (n_large : 512 ≤ n) : n * (2 * n) ^ sqrt (2 * n) * 4 ^ (2 * n / 3) ≤ 4 ^ n := by rw [← @cast_le ℝ] simp only [cast_add, cast_one, cast_mul, cast_pow, ← Real.rpow_nat_cast] refine' _root...
Mathlib.NumberTheory.Bertrand.121_0.gJXoOT9Ce2wC0xc
/-- The inequality which contradicts Bertrand's postulate, for large enough `n`. -/ theorem bertrand_main_inequality {n : ℕ} (n_large : 512 ≤ n) : n * (2 * n) ^ sqrt (2 * n) * 4 ^ (2 * n / 3) ≤ 4 ^ n
Mathlib_NumberTheory_Bertrand
n : ℕ n_large : 512 ≤ n ⊢ 0 < 2 * n
/- Copyright (c) 2020 Patrick Stevens. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Patrick Stevens, Bolton Bailey -/ import Mathlib.Data.Nat.Choose.Factorization import Mathlib.Data.Nat.PrimeNormNum import Mathlib.NumberTheory.Primorial import Mathlib.Analysis.Conve...
positivity
/-- The inequality which contradicts Bertrand's postulate, for large enough `n`. -/ theorem bertrand_main_inequality {n : ℕ} (n_large : 512 ≤ n) : n * (2 * n) ^ sqrt (2 * n) * 4 ^ (2 * n / 3) ≤ 4 ^ n := by rw [← @cast_le ℝ] simp only [cast_add, cast_one, cast_mul, cast_pow, ← Real.rpow_nat_cast] refine' _root...
Mathlib.NumberTheory.Bertrand.121_0.gJXoOT9Ce2wC0xc
/-- The inequality which contradicts Bertrand's postulate, for large enough `n`. -/ theorem bertrand_main_inequality {n : ℕ} (n_large : 512 ≤ n) : n * (2 * n) ^ sqrt (2 * n) * 4 ^ (2 * n / 3) ≤ 4 ^ n
Mathlib_NumberTheory_Bertrand
case h₁.h.hx n : ℕ n_large : 512 ≤ n n2_pos : 0 < 2 * n ⊢ 1 ≤ ↑2 * ↑n
/- Copyright (c) 2020 Patrick Stevens. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Patrick Stevens, Bolton Bailey -/ import Mathlib.Data.Nat.Choose.Factorization import Mathlib.Data.Nat.PrimeNormNum import Mathlib.NumberTheory.Primorial import Mathlib.Analysis.Conve...
exact mod_cast n2_pos
/-- The inequality which contradicts Bertrand's postulate, for large enough `n`. -/ theorem bertrand_main_inequality {n : ℕ} (n_large : 512 ≤ n) : n * (2 * n) ^ sqrt (2 * n) * 4 ^ (2 * n / 3) ≤ 4 ^ n := by rw [← @cast_le ℝ] simp only [cast_add, cast_one, cast_mul, cast_pow, ← Real.rpow_nat_cast] refine' _root...
Mathlib.NumberTheory.Bertrand.121_0.gJXoOT9Ce2wC0xc
/-- The inequality which contradicts Bertrand's postulate, for large enough `n`. -/ theorem bertrand_main_inequality {n : ℕ} (n_large : 512 ≤ n) : n * (2 * n) ^ sqrt (2 * n) * 4 ^ (2 * n / 3) ≤ 4 ^ n
Mathlib_NumberTheory_Bertrand
case h₁.h.hyz n : ℕ n_large : 512 ≤ n ⊢ ↑(sqrt (2 * n)) ≤ Real.sqrt (2 * ↑n)
/- Copyright (c) 2020 Patrick Stevens. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Patrick Stevens, Bolton Bailey -/ import Mathlib.Data.Nat.Choose.Factorization import Mathlib.Data.Nat.PrimeNormNum import Mathlib.NumberTheory.Primorial import Mathlib.Analysis.Conve...
exact_mod_cast Real.nat_sqrt_le_real_sqrt
/-- The inequality which contradicts Bertrand's postulate, for large enough `n`. -/ theorem bertrand_main_inequality {n : ℕ} (n_large : 512 ≤ n) : n * (2 * n) ^ sqrt (2 * n) * 4 ^ (2 * n / 3) ≤ 4 ^ n := by rw [← @cast_le ℝ] simp only [cast_add, cast_one, cast_mul, cast_pow, ← Real.rpow_nat_cast] refine' _root...
Mathlib.NumberTheory.Bertrand.121_0.gJXoOT9Ce2wC0xc
/-- The inequality which contradicts Bertrand's postulate, for large enough `n`. -/ theorem bertrand_main_inequality {n : ℕ} (n_large : 512 ≤ n) : n * (2 * n) ^ sqrt (2 * n) * 4 ^ (2 * n / 3) ≤ 4 ^ n
Mathlib_NumberTheory_Bertrand
case h₂.hx n : ℕ n_large : 512 ≤ n ⊢ 1 ≤ ↑4
/- Copyright (c) 2020 Patrick Stevens. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Patrick Stevens, Bolton Bailey -/ import Mathlib.Data.Nat.Choose.Factorization import Mathlib.Data.Nat.PrimeNormNum import Mathlib.NumberTheory.Primorial import Mathlib.Analysis.Conve...
norm_num1
/-- The inequality which contradicts Bertrand's postulate, for large enough `n`. -/ theorem bertrand_main_inequality {n : ℕ} (n_large : 512 ≤ n) : n * (2 * n) ^ sqrt (2 * n) * 4 ^ (2 * n / 3) ≤ 4 ^ n := by rw [← @cast_le ℝ] simp only [cast_add, cast_one, cast_mul, cast_pow, ← Real.rpow_nat_cast] refine' _root...
Mathlib.NumberTheory.Bertrand.121_0.gJXoOT9Ce2wC0xc
/-- The inequality which contradicts Bertrand's postulate, for large enough `n`. -/ theorem bertrand_main_inequality {n : ℕ} (n_large : 512 ≤ n) : n * (2 * n) ^ sqrt (2 * n) * 4 ^ (2 * n / 3) ≤ 4 ^ n
Mathlib_NumberTheory_Bertrand
case h₂.hyz n : ℕ n_large : 512 ≤ n ⊢ ↑(2 * n / 3) ≤ 2 * ↑n / 3
/- Copyright (c) 2020 Patrick Stevens. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Patrick Stevens, Bolton Bailey -/ import Mathlib.Data.Nat.Choose.Factorization import Mathlib.Data.Nat.PrimeNormNum import Mathlib.NumberTheory.Primorial import Mathlib.Analysis.Conve...
exact cast_div_le.trans (by norm_cast)
/-- The inequality which contradicts Bertrand's postulate, for large enough `n`. -/ theorem bertrand_main_inequality {n : ℕ} (n_large : 512 ≤ n) : n * (2 * n) ^ sqrt (2 * n) * 4 ^ (2 * n / 3) ≤ 4 ^ n := by rw [← @cast_le ℝ] simp only [cast_add, cast_one, cast_mul, cast_pow, ← Real.rpow_nat_cast] refine' _root...
Mathlib.NumberTheory.Bertrand.121_0.gJXoOT9Ce2wC0xc
/-- The inequality which contradicts Bertrand's postulate, for large enough `n`. -/ theorem bertrand_main_inequality {n : ℕ} (n_large : 512 ≤ n) : n * (2 * n) ^ sqrt (2 * n) * 4 ^ (2 * n / 3) ≤ 4 ^ n
Mathlib_NumberTheory_Bertrand
n : ℕ n_large : 512 ≤ n ⊢ ↑(2 * n) / ↑3 ≤ 2 * ↑n / 3
/- Copyright (c) 2020 Patrick Stevens. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Patrick Stevens, Bolton Bailey -/ import Mathlib.Data.Nat.Choose.Factorization import Mathlib.Data.Nat.PrimeNormNum import Mathlib.NumberTheory.Primorial import Mathlib.Analysis.Conve...
norm_cast
/-- The inequality which contradicts Bertrand's postulate, for large enough `n`. -/ theorem bertrand_main_inequality {n : ℕ} (n_large : 512 ≤ n) : n * (2 * n) ^ sqrt (2 * n) * 4 ^ (2 * n / 3) ≤ 4 ^ n := by rw [← @cast_le ℝ] simp only [cast_add, cast_one, cast_mul, cast_pow, ← Real.rpow_nat_cast] refine' _root...
Mathlib.NumberTheory.Bertrand.121_0.gJXoOT9Ce2wC0xc
/-- The inequality which contradicts Bertrand's postulate, for large enough `n`. -/ theorem bertrand_main_inequality {n : ℕ} (n_large : 512 ≤ n) : n * (2 * n) ^ sqrt (2 * n) * 4 ^ (2 * n / 3) ≤ 4 ^ n
Mathlib_NumberTheory_Bertrand
n : ℕ n_large : 2 < n no_prime : ¬∃ p, Nat.Prime p ∧ n < p ∧ p ≤ 2 * n ⊢ centralBinom n = ∏ p in Finset.range (2 * n / 3 + 1), p ^ (Nat.factorization (centralBinom n)) p
/- Copyright (c) 2020 Patrick Stevens. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Patrick Stevens, Bolton Bailey -/ import Mathlib.Data.Nat.Choose.Factorization import Mathlib.Data.Nat.PrimeNormNum import Mathlib.NumberTheory.Primorial import Mathlib.Analysis.Conve...
refine' (Eq.trans _ n.prod_pow_factorization_centralBinom).symm
/-- A lemma that tells us that, in the case where Bertrand's postulate does not hold, the prime factorization of the central binomial coefficent only has factors at most `2 * n / 3 + 1`. -/ theorem centralBinom_factorization_small (n : ℕ) (n_large : 2 < n) (no_prime : ¬∃ p : ℕ, p.Prime ∧ n < p ∧ p ≤ 2 * n) : ce...
Mathlib.NumberTheory.Bertrand.136_0.gJXoOT9Ce2wC0xc
/-- A lemma that tells us that, in the case where Bertrand's postulate does not hold, the prime factorization of the central binomial coefficent only has factors at most `2 * n / 3 + 1`. -/ theorem centralBinom_factorization_small (n : ℕ) (n_large : 2 < n) (no_prime : ¬∃ p : ℕ, p.Prime ∧ n < p ∧ p ≤ 2 * n) : ce...
Mathlib_NumberTheory_Bertrand
n : ℕ n_large : 2 < n no_prime : ¬∃ p, Nat.Prime p ∧ n < p ∧ p ≤ 2 * n ⊢ ∏ p in Finset.range (2 * n / 3 + 1), p ^ (Nat.factorization (centralBinom n)) p = ∏ p in Finset.range (2 * n + 1), p ^ (Nat.factorization (centralBinom n)) p
/- Copyright (c) 2020 Patrick Stevens. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Patrick Stevens, Bolton Bailey -/ import Mathlib.Data.Nat.Choose.Factorization import Mathlib.Data.Nat.PrimeNormNum import Mathlib.NumberTheory.Primorial import Mathlib.Analysis.Conve...
apply Finset.prod_subset
/-- A lemma that tells us that, in the case where Bertrand's postulate does not hold, the prime factorization of the central binomial coefficent only has factors at most `2 * n / 3 + 1`. -/ theorem centralBinom_factorization_small (n : ℕ) (n_large : 2 < n) (no_prime : ¬∃ p : ℕ, p.Prime ∧ n < p ∧ p ≤ 2 * n) : ce...
Mathlib.NumberTheory.Bertrand.136_0.gJXoOT9Ce2wC0xc
/-- A lemma that tells us that, in the case where Bertrand's postulate does not hold, the prime factorization of the central binomial coefficent only has factors at most `2 * n / 3 + 1`. -/ theorem centralBinom_factorization_small (n : ℕ) (n_large : 2 < n) (no_prime : ¬∃ p : ℕ, p.Prime ∧ n < p ∧ p ≤ 2 * n) : ce...
Mathlib_NumberTheory_Bertrand
case h n : ℕ n_large : 2 < n no_prime : ¬∃ p, Nat.Prime p ∧ n < p ∧ p ≤ 2 * n ⊢ Finset.range (2 * n / 3 + 1) ⊆ Finset.range (2 * n + 1)
/- Copyright (c) 2020 Patrick Stevens. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Patrick Stevens, Bolton Bailey -/ import Mathlib.Data.Nat.Choose.Factorization import Mathlib.Data.Nat.PrimeNormNum import Mathlib.NumberTheory.Primorial import Mathlib.Analysis.Conve...
exact Finset.range_subset.2 (add_le_add_right (Nat.div_le_self _ _) _)
/-- A lemma that tells us that, in the case where Bertrand's postulate does not hold, the prime factorization of the central binomial coefficent only has factors at most `2 * n / 3 + 1`. -/ theorem centralBinom_factorization_small (n : ℕ) (n_large : 2 < n) (no_prime : ¬∃ p : ℕ, p.Prime ∧ n < p ∧ p ≤ 2 * n) : ce...
Mathlib.NumberTheory.Bertrand.136_0.gJXoOT9Ce2wC0xc
/-- A lemma that tells us that, in the case where Bertrand's postulate does not hold, the prime factorization of the central binomial coefficent only has factors at most `2 * n / 3 + 1`. -/ theorem centralBinom_factorization_small (n : ℕ) (n_large : 2 < n) (no_prime : ¬∃ p : ℕ, p.Prime ∧ n < p ∧ p ≤ 2 * n) : ce...
Mathlib_NumberTheory_Bertrand
case hf n : ℕ n_large : 2 < n no_prime : ¬∃ p, Nat.Prime p ∧ n < p ∧ p ≤ 2 * n ⊢ ∀ x ∈ Finset.range (2 * n + 1), x ∉ Finset.range (2 * n / 3 + 1) → x ^ (Nat.factorization (centralBinom n)) x = 1
/- Copyright (c) 2020 Patrick Stevens. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Patrick Stevens, Bolton Bailey -/ import Mathlib.Data.Nat.Choose.Factorization import Mathlib.Data.Nat.PrimeNormNum import Mathlib.NumberTheory.Primorial import Mathlib.Analysis.Conve...
intro x hx h2x
/-- A lemma that tells us that, in the case where Bertrand's postulate does not hold, the prime factorization of the central binomial coefficent only has factors at most `2 * n / 3 + 1`. -/ theorem centralBinom_factorization_small (n : ℕ) (n_large : 2 < n) (no_prime : ¬∃ p : ℕ, p.Prime ∧ n < p ∧ p ≤ 2 * n) : ce...
Mathlib.NumberTheory.Bertrand.136_0.gJXoOT9Ce2wC0xc
/-- A lemma that tells us that, in the case where Bertrand's postulate does not hold, the prime factorization of the central binomial coefficent only has factors at most `2 * n / 3 + 1`. -/ theorem centralBinom_factorization_small (n : ℕ) (n_large : 2 < n) (no_prime : ¬∃ p : ℕ, p.Prime ∧ n < p ∧ p ≤ 2 * n) : ce...
Mathlib_NumberTheory_Bertrand
case hf n : ℕ n_large : 2 < n no_prime : ¬∃ p, Nat.Prime p ∧ n < p ∧ p ≤ 2 * n x : ℕ hx : x ∈ Finset.range (2 * n + 1) h2x : x ∉ Finset.range (2 * n / 3 + 1) ⊢ x ^ (Nat.factorization (centralBinom n)) x = 1
/- Copyright (c) 2020 Patrick Stevens. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Patrick Stevens, Bolton Bailey -/ import Mathlib.Data.Nat.Choose.Factorization import Mathlib.Data.Nat.PrimeNormNum import Mathlib.NumberTheory.Primorial import Mathlib.Analysis.Conve...
rw [Finset.mem_range, lt_succ_iff] at hx h2x
/-- A lemma that tells us that, in the case where Bertrand's postulate does not hold, the prime factorization of the central binomial coefficent only has factors at most `2 * n / 3 + 1`. -/ theorem centralBinom_factorization_small (n : ℕ) (n_large : 2 < n) (no_prime : ¬∃ p : ℕ, p.Prime ∧ n < p ∧ p ≤ 2 * n) : ce...
Mathlib.NumberTheory.Bertrand.136_0.gJXoOT9Ce2wC0xc
/-- A lemma that tells us that, in the case where Bertrand's postulate does not hold, the prime factorization of the central binomial coefficent only has factors at most `2 * n / 3 + 1`. -/ theorem centralBinom_factorization_small (n : ℕ) (n_large : 2 < n) (no_prime : ¬∃ p : ℕ, p.Prime ∧ n < p ∧ p ≤ 2 * n) : ce...
Mathlib_NumberTheory_Bertrand
case hf n : ℕ n_large : 2 < n no_prime : ¬∃ p, Nat.Prime p ∧ n < p ∧ p ≤ 2 * n x : ℕ hx : x ≤ 2 * n h2x : ¬x ≤ 2 * n / 3 ⊢ x ^ (Nat.factorization (centralBinom n)) x = 1
/- Copyright (c) 2020 Patrick Stevens. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Patrick Stevens, Bolton Bailey -/ import Mathlib.Data.Nat.Choose.Factorization import Mathlib.Data.Nat.PrimeNormNum import Mathlib.NumberTheory.Primorial import Mathlib.Analysis.Conve...
rw [not_le, div_lt_iff_lt_mul' three_pos, mul_comm x] at h2x
/-- A lemma that tells us that, in the case where Bertrand's postulate does not hold, the prime factorization of the central binomial coefficent only has factors at most `2 * n / 3 + 1`. -/ theorem centralBinom_factorization_small (n : ℕ) (n_large : 2 < n) (no_prime : ¬∃ p : ℕ, p.Prime ∧ n < p ∧ p ≤ 2 * n) : ce...
Mathlib.NumberTheory.Bertrand.136_0.gJXoOT9Ce2wC0xc
/-- A lemma that tells us that, in the case where Bertrand's postulate does not hold, the prime factorization of the central binomial coefficent only has factors at most `2 * n / 3 + 1`. -/ theorem centralBinom_factorization_small (n : ℕ) (n_large : 2 < n) (no_prime : ¬∃ p : ℕ, p.Prime ∧ n < p ∧ p ≤ 2 * n) : ce...
Mathlib_NumberTheory_Bertrand
case hf n : ℕ n_large : 2 < n no_prime : ¬∃ p, Nat.Prime p ∧ n < p ∧ p ≤ 2 * n x : ℕ hx : x ≤ 2 * n h2x : 2 * n < 3 * x ⊢ x ^ (Nat.factorization (centralBinom n)) x = 1
/- Copyright (c) 2020 Patrick Stevens. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Patrick Stevens, Bolton Bailey -/ import Mathlib.Data.Nat.Choose.Factorization import Mathlib.Data.Nat.PrimeNormNum import Mathlib.NumberTheory.Primorial import Mathlib.Analysis.Conve...
replace no_prime := not_exists.mp no_prime x
/-- A lemma that tells us that, in the case where Bertrand's postulate does not hold, the prime factorization of the central binomial coefficent only has factors at most `2 * n / 3 + 1`. -/ theorem centralBinom_factorization_small (n : ℕ) (n_large : 2 < n) (no_prime : ¬∃ p : ℕ, p.Prime ∧ n < p ∧ p ≤ 2 * n) : ce...
Mathlib.NumberTheory.Bertrand.136_0.gJXoOT9Ce2wC0xc
/-- A lemma that tells us that, in the case where Bertrand's postulate does not hold, the prime factorization of the central binomial coefficent only has factors at most `2 * n / 3 + 1`. -/ theorem centralBinom_factorization_small (n : ℕ) (n_large : 2 < n) (no_prime : ¬∃ p : ℕ, p.Prime ∧ n < p ∧ p ≤ 2 * n) : ce...
Mathlib_NumberTheory_Bertrand
case hf n : ℕ n_large : 2 < n x : ℕ hx : x ≤ 2 * n h2x : 2 * n < 3 * x no_prime : ¬(Nat.Prime x ∧ n < x ∧ x ≤ 2 * n) ⊢ x ^ (Nat.factorization (centralBinom n)) x = 1
/- Copyright (c) 2020 Patrick Stevens. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Patrick Stevens, Bolton Bailey -/ import Mathlib.Data.Nat.Choose.Factorization import Mathlib.Data.Nat.PrimeNormNum import Mathlib.NumberTheory.Primorial import Mathlib.Analysis.Conve...
rw [← and_assoc, not_and', not_and_or, not_lt] at no_prime
/-- A lemma that tells us that, in the case where Bertrand's postulate does not hold, the prime factorization of the central binomial coefficent only has factors at most `2 * n / 3 + 1`. -/ theorem centralBinom_factorization_small (n : ℕ) (n_large : 2 < n) (no_prime : ¬∃ p : ℕ, p.Prime ∧ n < p ∧ p ≤ 2 * n) : ce...
Mathlib.NumberTheory.Bertrand.136_0.gJXoOT9Ce2wC0xc
/-- A lemma that tells us that, in the case where Bertrand's postulate does not hold, the prime factorization of the central binomial coefficent only has factors at most `2 * n / 3 + 1`. -/ theorem centralBinom_factorization_small (n : ℕ) (n_large : 2 < n) (no_prime : ¬∃ p : ℕ, p.Prime ∧ n < p ∧ p ≤ 2 * n) : ce...
Mathlib_NumberTheory_Bertrand
case hf n : ℕ n_large : 2 < n x : ℕ hx : x ≤ 2 * n h2x : 2 * n < 3 * x no_prime : x ≤ 2 * n → ¬Nat.Prime x ∨ x ≤ n ⊢ x ^ (Nat.factorization (centralBinom n)) x = 1
/- Copyright (c) 2020 Patrick Stevens. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Patrick Stevens, Bolton Bailey -/ import Mathlib.Data.Nat.Choose.Factorization import Mathlib.Data.Nat.PrimeNormNum import Mathlib.NumberTheory.Primorial import Mathlib.Analysis.Conve...
cases' no_prime hx with h h
/-- A lemma that tells us that, in the case where Bertrand's postulate does not hold, the prime factorization of the central binomial coefficent only has factors at most `2 * n / 3 + 1`. -/ theorem centralBinom_factorization_small (n : ℕ) (n_large : 2 < n) (no_prime : ¬∃ p : ℕ, p.Prime ∧ n < p ∧ p ≤ 2 * n) : ce...
Mathlib.NumberTheory.Bertrand.136_0.gJXoOT9Ce2wC0xc
/-- A lemma that tells us that, in the case where Bertrand's postulate does not hold, the prime factorization of the central binomial coefficent only has factors at most `2 * n / 3 + 1`. -/ theorem centralBinom_factorization_small (n : ℕ) (n_large : 2 < n) (no_prime : ¬∃ p : ℕ, p.Prime ∧ n < p ∧ p ≤ 2 * n) : ce...
Mathlib_NumberTheory_Bertrand
case hf.inl n : ℕ n_large : 2 < n x : ℕ hx : x ≤ 2 * n h2x : 2 * n < 3 * x no_prime : x ≤ 2 * n → ¬Nat.Prime x ∨ x ≤ n h : ¬Nat.Prime x ⊢ x ^ (Nat.factorization (centralBinom n)) x = 1
/- Copyright (c) 2020 Patrick Stevens. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Patrick Stevens, Bolton Bailey -/ import Mathlib.Data.Nat.Choose.Factorization import Mathlib.Data.Nat.PrimeNormNum import Mathlib.NumberTheory.Primorial import Mathlib.Analysis.Conve...
rw [factorization_eq_zero_of_non_prime n.centralBinom h, Nat.pow_zero]
/-- A lemma that tells us that, in the case where Bertrand's postulate does not hold, the prime factorization of the central binomial coefficent only has factors at most `2 * n / 3 + 1`. -/ theorem centralBinom_factorization_small (n : ℕ) (n_large : 2 < n) (no_prime : ¬∃ p : ℕ, p.Prime ∧ n < p ∧ p ≤ 2 * n) : ce...
Mathlib.NumberTheory.Bertrand.136_0.gJXoOT9Ce2wC0xc
/-- A lemma that tells us that, in the case where Bertrand's postulate does not hold, the prime factorization of the central binomial coefficent only has factors at most `2 * n / 3 + 1`. -/ theorem centralBinom_factorization_small (n : ℕ) (n_large : 2 < n) (no_prime : ¬∃ p : ℕ, p.Prime ∧ n < p ∧ p ≤ 2 * n) : ce...
Mathlib_NumberTheory_Bertrand
case hf.inr n : ℕ n_large : 2 < n x : ℕ hx : x ≤ 2 * n h2x : 2 * n < 3 * x no_prime : x ≤ 2 * n → ¬Nat.Prime x ∨ x ≤ n h : x ≤ n ⊢ x ^ (Nat.factorization (centralBinom n)) x = 1
/- Copyright (c) 2020 Patrick Stevens. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Patrick Stevens, Bolton Bailey -/ import Mathlib.Data.Nat.Choose.Factorization import Mathlib.Data.Nat.PrimeNormNum import Mathlib.NumberTheory.Primorial import Mathlib.Analysis.Conve...
rw [factorization_centralBinom_of_two_mul_self_lt_three_mul n_large h h2x, Nat.pow_zero]
/-- A lemma that tells us that, in the case where Bertrand's postulate does not hold, the prime factorization of the central binomial coefficent only has factors at most `2 * n / 3 + 1`. -/ theorem centralBinom_factorization_small (n : ℕ) (n_large : 2 < n) (no_prime : ¬∃ p : ℕ, p.Prime ∧ n < p ∧ p ≤ 2 * n) : ce...
Mathlib.NumberTheory.Bertrand.136_0.gJXoOT9Ce2wC0xc
/-- A lemma that tells us that, in the case where Bertrand's postulate does not hold, the prime factorization of the central binomial coefficent only has factors at most `2 * n / 3 + 1`. -/ theorem centralBinom_factorization_small (n : ℕ) (n_large : 2 < n) (no_prime : ¬∃ p : ℕ, p.Prime ∧ n < p ∧ p ≤ 2 * n) : ce...
Mathlib_NumberTheory_Bertrand
n : ℕ n_big : 2 < n no_prime : ¬∃ p, Nat.Prime p ∧ n < p ∧ p ≤ 2 * n ⊢ centralBinom n ≤ (2 * n) ^ sqrt (2 * n) * 4 ^ (2 * n / 3)
/- Copyright (c) 2020 Patrick Stevens. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Patrick Stevens, Bolton Bailey -/ import Mathlib.Data.Nat.Choose.Factorization import Mathlib.Data.Nat.PrimeNormNum import Mathlib.NumberTheory.Primorial import Mathlib.Analysis.Conve...
have n_pos : 0 < n := (Nat.zero_le _).trans_lt n_big
/-- An upper bound on the central binomial coefficient used in the proof of Bertrand's postulate. The bound splits the prime factors of `centralBinom n` into those 1. At most `sqrt (2 * n)`, which contribute at most `2 * n` for each such prime. 2. Between `sqrt (2 * n)` and `2 * n / 3`, which contribute at most `4^(2 *...
Mathlib.NumberTheory.Bertrand.155_0.gJXoOT9Ce2wC0xc
/-- An upper bound on the central binomial coefficient used in the proof of Bertrand's postulate. The bound splits the prime factors of `centralBinom n` into those 1. At most `sqrt (2 * n)`, which contribute at most `2 * n` for each such prime. 2. Between `sqrt (2 * n)` and `2 * n / 3`, which contribute at most `4^(2 *...
Mathlib_NumberTheory_Bertrand
n : ℕ n_big : 2 < n no_prime : ¬∃ p, Nat.Prime p ∧ n < p ∧ p ≤ 2 * n n_pos : 0 < n ⊢ centralBinom n ≤ (2 * n) ^ sqrt (2 * n) * 4 ^ (2 * n / 3)
/- Copyright (c) 2020 Patrick Stevens. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Patrick Stevens, Bolton Bailey -/ import Mathlib.Data.Nat.Choose.Factorization import Mathlib.Data.Nat.PrimeNormNum import Mathlib.NumberTheory.Primorial import Mathlib.Analysis.Conve...
have n2_pos : 1 ≤ 2 * n := mul_pos (zero_lt_two' ℕ) n_pos
/-- An upper bound on the central binomial coefficient used in the proof of Bertrand's postulate. The bound splits the prime factors of `centralBinom n` into those 1. At most `sqrt (2 * n)`, which contribute at most `2 * n` for each such prime. 2. Between `sqrt (2 * n)` and `2 * n / 3`, which contribute at most `4^(2 *...
Mathlib.NumberTheory.Bertrand.155_0.gJXoOT9Ce2wC0xc
/-- An upper bound on the central binomial coefficient used in the proof of Bertrand's postulate. The bound splits the prime factors of `centralBinom n` into those 1. At most `sqrt (2 * n)`, which contribute at most `2 * n` for each such prime. 2. Between `sqrt (2 * n)` and `2 * n / 3`, which contribute at most `4^(2 *...
Mathlib_NumberTheory_Bertrand
n : ℕ n_big : 2 < n no_prime : ¬∃ p, Nat.Prime p ∧ n < p ∧ p ≤ 2 * n n_pos : 0 < n n2_pos : 1 ≤ 2 * n ⊢ centralBinom n ≤ (2 * n) ^ sqrt (2 * n) * 4 ^ (2 * n / 3)
/- Copyright (c) 2020 Patrick Stevens. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Patrick Stevens, Bolton Bailey -/ import Mathlib.Data.Nat.Choose.Factorization import Mathlib.Data.Nat.PrimeNormNum import Mathlib.NumberTheory.Primorial import Mathlib.Analysis.Conve...
let S := (Finset.range (2 * n / 3 + 1)).filter Nat.Prime
/-- An upper bound on the central binomial coefficient used in the proof of Bertrand's postulate. The bound splits the prime factors of `centralBinom n` into those 1. At most `sqrt (2 * n)`, which contribute at most `2 * n` for each such prime. 2. Between `sqrt (2 * n)` and `2 * n / 3`, which contribute at most `4^(2 *...
Mathlib.NumberTheory.Bertrand.155_0.gJXoOT9Ce2wC0xc
/-- An upper bound on the central binomial coefficient used in the proof of Bertrand's postulate. The bound splits the prime factors of `centralBinom n` into those 1. At most `sqrt (2 * n)`, which contribute at most `2 * n` for each such prime. 2. Between `sqrt (2 * n)` and `2 * n / 3`, which contribute at most `4^(2 *...
Mathlib_NumberTheory_Bertrand
n : ℕ n_big : 2 < n no_prime : ¬∃ p, Nat.Prime p ∧ n < p ∧ p ≤ 2 * n n_pos : 0 < n n2_pos : 1 ≤ 2 * n S : Finset ℕ := Finset.filter Nat.Prime (Finset.range (2 * n / 3 + 1)) ⊢ centralBinom n ≤ (2 * n) ^ sqrt (2 * n) * 4 ^ (2 * n / 3)
/- Copyright (c) 2020 Patrick Stevens. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Patrick Stevens, Bolton Bailey -/ import Mathlib.Data.Nat.Choose.Factorization import Mathlib.Data.Nat.PrimeNormNum import Mathlib.NumberTheory.Primorial import Mathlib.Analysis.Conve...
let f x := x ^ n.centralBinom.factorization x
/-- An upper bound on the central binomial coefficient used in the proof of Bertrand's postulate. The bound splits the prime factors of `centralBinom n` into those 1. At most `sqrt (2 * n)`, which contribute at most `2 * n` for each such prime. 2. Between `sqrt (2 * n)` and `2 * n / 3`, which contribute at most `4^(2 *...
Mathlib.NumberTheory.Bertrand.155_0.gJXoOT9Ce2wC0xc
/-- An upper bound on the central binomial coefficient used in the proof of Bertrand's postulate. The bound splits the prime factors of `centralBinom n` into those 1. At most `sqrt (2 * n)`, which contribute at most `2 * n` for each such prime. 2. Between `sqrt (2 * n)` and `2 * n / 3`, which contribute at most `4^(2 *...
Mathlib_NumberTheory_Bertrand
n : ℕ n_big : 2 < n no_prime : ¬∃ p, Nat.Prime p ∧ n < p ∧ p ≤ 2 * n n_pos : 0 < n n2_pos : 1 ≤ 2 * n S : Finset ℕ := Finset.filter Nat.Prime (Finset.range (2 * n / 3 + 1)) f : ℕ → ℕ := fun x => x ^ (Nat.factorization (centralBinom n)) x ⊢ centralBinom n ≤ (2 * n) ^ sqrt (2 * n) * 4 ^ (2 * n / 3)
/- Copyright (c) 2020 Patrick Stevens. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Patrick Stevens, Bolton Bailey -/ import Mathlib.Data.Nat.Choose.Factorization import Mathlib.Data.Nat.PrimeNormNum import Mathlib.NumberTheory.Primorial import Mathlib.Analysis.Conve...
have : ∏ x : ℕ in S, f x = ∏ x : ℕ in Finset.range (2 * n / 3 + 1), f x := by refine' Finset.prod_filter_of_ne fun p _ h => _ contrapose! h; dsimp only rw [factorization_eq_zero_of_non_prime n.centralBinom h, _root_.pow_zero]
/-- An upper bound on the central binomial coefficient used in the proof of Bertrand's postulate. The bound splits the prime factors of `centralBinom n` into those 1. At most `sqrt (2 * n)`, which contribute at most `2 * n` for each such prime. 2. Between `sqrt (2 * n)` and `2 * n / 3`, which contribute at most `4^(2 *...
Mathlib.NumberTheory.Bertrand.155_0.gJXoOT9Ce2wC0xc
/-- An upper bound on the central binomial coefficient used in the proof of Bertrand's postulate. The bound splits the prime factors of `centralBinom n` into those 1. At most `sqrt (2 * n)`, which contribute at most `2 * n` for each such prime. 2. Between `sqrt (2 * n)` and `2 * n / 3`, which contribute at most `4^(2 *...
Mathlib_NumberTheory_Bertrand
n : ℕ n_big : 2 < n no_prime : ¬∃ p, Nat.Prime p ∧ n < p ∧ p ≤ 2 * n n_pos : 0 < n n2_pos : 1 ≤ 2 * n S : Finset ℕ := Finset.filter Nat.Prime (Finset.range (2 * n / 3 + 1)) f : ℕ → ℕ := fun x => x ^ (Nat.factorization (centralBinom n)) x ⊢ ∏ x in S, f x = ∏ x in Finset.range (2 * n / 3 + 1), f x
/- Copyright (c) 2020 Patrick Stevens. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Patrick Stevens, Bolton Bailey -/ import Mathlib.Data.Nat.Choose.Factorization import Mathlib.Data.Nat.PrimeNormNum import Mathlib.NumberTheory.Primorial import Mathlib.Analysis.Conve...
refine' Finset.prod_filter_of_ne fun p _ h => _
/-- An upper bound on the central binomial coefficient used in the proof of Bertrand's postulate. The bound splits the prime factors of `centralBinom n` into those 1. At most `sqrt (2 * n)`, which contribute at most `2 * n` for each such prime. 2. Between `sqrt (2 * n)` and `2 * n / 3`, which contribute at most `4^(2 *...
Mathlib.NumberTheory.Bertrand.155_0.gJXoOT9Ce2wC0xc
/-- An upper bound on the central binomial coefficient used in the proof of Bertrand's postulate. The bound splits the prime factors of `centralBinom n` into those 1. At most `sqrt (2 * n)`, which contribute at most `2 * n` for each such prime. 2. Between `sqrt (2 * n)` and `2 * n / 3`, which contribute at most `4^(2 *...
Mathlib_NumberTheory_Bertrand
n : ℕ n_big : 2 < n no_prime : ¬∃ p, Nat.Prime p ∧ n < p ∧ p ≤ 2 * n n_pos : 0 < n n2_pos : 1 ≤ 2 * n S : Finset ℕ := Finset.filter Nat.Prime (Finset.range (2 * n / 3 + 1)) f : ℕ → ℕ := fun x => x ^ (Nat.factorization (centralBinom n)) x p : ℕ x✝ : p ∈ Finset.range (2 * n / 3 + 1) h : f p ≠ 1 ⊢ Nat.Prime p
/- Copyright (c) 2020 Patrick Stevens. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Patrick Stevens, Bolton Bailey -/ import Mathlib.Data.Nat.Choose.Factorization import Mathlib.Data.Nat.PrimeNormNum import Mathlib.NumberTheory.Primorial import Mathlib.Analysis.Conve...
contrapose! h
/-- An upper bound on the central binomial coefficient used in the proof of Bertrand's postulate. The bound splits the prime factors of `centralBinom n` into those 1. At most `sqrt (2 * n)`, which contribute at most `2 * n` for each such prime. 2. Between `sqrt (2 * n)` and `2 * n / 3`, which contribute at most `4^(2 *...
Mathlib.NumberTheory.Bertrand.155_0.gJXoOT9Ce2wC0xc
/-- An upper bound on the central binomial coefficient used in the proof of Bertrand's postulate. The bound splits the prime factors of `centralBinom n` into those 1. At most `sqrt (2 * n)`, which contribute at most `2 * n` for each such prime. 2. Between `sqrt (2 * n)` and `2 * n / 3`, which contribute at most `4^(2 *...
Mathlib_NumberTheory_Bertrand
n : ℕ n_big : 2 < n no_prime : ¬∃ p, Nat.Prime p ∧ n < p ∧ p ≤ 2 * n n_pos : 0 < n n2_pos : 1 ≤ 2 * n S : Finset ℕ := Finset.filter Nat.Prime (Finset.range (2 * n / 3 + 1)) f : ℕ → ℕ := fun x => x ^ (Nat.factorization (centralBinom n)) x p : ℕ x✝ : p ∈ Finset.range (2 * n / 3 + 1) h : ¬Nat.Prime p ⊢ f p = 1
/- Copyright (c) 2020 Patrick Stevens. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Patrick Stevens, Bolton Bailey -/ import Mathlib.Data.Nat.Choose.Factorization import Mathlib.Data.Nat.PrimeNormNum import Mathlib.NumberTheory.Primorial import Mathlib.Analysis.Conve...
dsimp only
/-- An upper bound on the central binomial coefficient used in the proof of Bertrand's postulate. The bound splits the prime factors of `centralBinom n` into those 1. At most `sqrt (2 * n)`, which contribute at most `2 * n` for each such prime. 2. Between `sqrt (2 * n)` and `2 * n / 3`, which contribute at most `4^(2 *...
Mathlib.NumberTheory.Bertrand.155_0.gJXoOT9Ce2wC0xc
/-- An upper bound on the central binomial coefficient used in the proof of Bertrand's postulate. The bound splits the prime factors of `centralBinom n` into those 1. At most `sqrt (2 * n)`, which contribute at most `2 * n` for each such prime. 2. Between `sqrt (2 * n)` and `2 * n / 3`, which contribute at most `4^(2 *...
Mathlib_NumberTheory_Bertrand
n : ℕ n_big : 2 < n no_prime : ¬∃ p, Nat.Prime p ∧ n < p ∧ p ≤ 2 * n n_pos : 0 < n n2_pos : 1 ≤ 2 * n S : Finset ℕ := Finset.filter Nat.Prime (Finset.range (2 * n / 3 + 1)) f : ℕ → ℕ := fun x => x ^ (Nat.factorization (centralBinom n)) x p : ℕ x✝ : p ∈ Finset.range (2 * n / 3 + 1) h : ¬Nat.Prime p ⊢ p ^ (Nat.factorizat...
/- Copyright (c) 2020 Patrick Stevens. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Patrick Stevens, Bolton Bailey -/ import Mathlib.Data.Nat.Choose.Factorization import Mathlib.Data.Nat.PrimeNormNum import Mathlib.NumberTheory.Primorial import Mathlib.Analysis.Conve...
rw [factorization_eq_zero_of_non_prime n.centralBinom h, _root_.pow_zero]
/-- An upper bound on the central binomial coefficient used in the proof of Bertrand's postulate. The bound splits the prime factors of `centralBinom n` into those 1. At most `sqrt (2 * n)`, which contribute at most `2 * n` for each such prime. 2. Between `sqrt (2 * n)` and `2 * n / 3`, which contribute at most `4^(2 *...
Mathlib.NumberTheory.Bertrand.155_0.gJXoOT9Ce2wC0xc
/-- An upper bound on the central binomial coefficient used in the proof of Bertrand's postulate. The bound splits the prime factors of `centralBinom n` into those 1. At most `sqrt (2 * n)`, which contribute at most `2 * n` for each such prime. 2. Between `sqrt (2 * n)` and `2 * n / 3`, which contribute at most `4^(2 *...
Mathlib_NumberTheory_Bertrand
n : ℕ n_big : 2 < n no_prime : ¬∃ p, Nat.Prime p ∧ n < p ∧ p ≤ 2 * n n_pos : 0 < n n2_pos : 1 ≤ 2 * n S : Finset ℕ := Finset.filter Nat.Prime (Finset.range (2 * n / 3 + 1)) f : ℕ → ℕ := fun x => x ^ (Nat.factorization (centralBinom n)) x this : ∏ x in S, f x = ∏ x in Finset.range (2 * n / 3 + 1), f x ⊢ centralBinom n ≤...
/- Copyright (c) 2020 Patrick Stevens. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Patrick Stevens, Bolton Bailey -/ import Mathlib.Data.Nat.Choose.Factorization import Mathlib.Data.Nat.PrimeNormNum import Mathlib.NumberTheory.Primorial import Mathlib.Analysis.Conve...
rw [centralBinom_factorization_small n n_big no_prime, ← this, ← Finset.prod_filter_mul_prod_filter_not S (· ≤ sqrt (2 * n))]
/-- An upper bound on the central binomial coefficient used in the proof of Bertrand's postulate. The bound splits the prime factors of `centralBinom n` into those 1. At most `sqrt (2 * n)`, which contribute at most `2 * n` for each such prime. 2. Between `sqrt (2 * n)` and `2 * n / 3`, which contribute at most `4^(2 *...
Mathlib.NumberTheory.Bertrand.155_0.gJXoOT9Ce2wC0xc
/-- An upper bound on the central binomial coefficient used in the proof of Bertrand's postulate. The bound splits the prime factors of `centralBinom n` into those 1. At most `sqrt (2 * n)`, which contribute at most `2 * n` for each such prime. 2. Between `sqrt (2 * n)` and `2 * n / 3`, which contribute at most `4^(2 *...
Mathlib_NumberTheory_Bertrand
n : ℕ n_big : 2 < n no_prime : ¬∃ p, Nat.Prime p ∧ n < p ∧ p ≤ 2 * n n_pos : 0 < n n2_pos : 1 ≤ 2 * n S : Finset ℕ := Finset.filter Nat.Prime (Finset.range (2 * n / 3 + 1)) f : ℕ → ℕ := fun x => x ^ (Nat.factorization (centralBinom n)) x this : ∏ x in S, f x = ∏ x in Finset.range (2 * n / 3 + 1), f x ⊢ (∏ x in Finset.f...
/- Copyright (c) 2020 Patrick Stevens. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Patrick Stevens, Bolton Bailey -/ import Mathlib.Data.Nat.Choose.Factorization import Mathlib.Data.Nat.PrimeNormNum import Mathlib.NumberTheory.Primorial import Mathlib.Analysis.Conve...
apply mul_le_mul'
/-- An upper bound on the central binomial coefficient used in the proof of Bertrand's postulate. The bound splits the prime factors of `centralBinom n` into those 1. At most `sqrt (2 * n)`, which contribute at most `2 * n` for each such prime. 2. Between `sqrt (2 * n)` and `2 * n / 3`, which contribute at most `4^(2 *...
Mathlib.NumberTheory.Bertrand.155_0.gJXoOT9Ce2wC0xc
/-- An upper bound on the central binomial coefficient used in the proof of Bertrand's postulate. The bound splits the prime factors of `centralBinom n` into those 1. At most `sqrt (2 * n)`, which contribute at most `2 * n` for each such prime. 2. Between `sqrt (2 * n)` and `2 * n / 3`, which contribute at most `4^(2 *...
Mathlib_NumberTheory_Bertrand
case h₁ n : ℕ n_big : 2 < n no_prime : ¬∃ p, Nat.Prime p ∧ n < p ∧ p ≤ 2 * n n_pos : 0 < n n2_pos : 1 ≤ 2 * n S : Finset ℕ := Finset.filter Nat.Prime (Finset.range (2 * n / 3 + 1)) f : ℕ → ℕ := fun x => x ^ (Nat.factorization (centralBinom n)) x this : ∏ x in S, f x = ∏ x in Finset.range (2 * n / 3 + 1), f x ⊢ ∏ x in F...
/- Copyright (c) 2020 Patrick Stevens. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Patrick Stevens, Bolton Bailey -/ import Mathlib.Data.Nat.Choose.Factorization import Mathlib.Data.Nat.PrimeNormNum import Mathlib.NumberTheory.Primorial import Mathlib.Analysis.Conve...
refine' (Finset.prod_le_prod' fun p _ => (_ : f p ≤ 2 * n)).trans _
/-- An upper bound on the central binomial coefficient used in the proof of Bertrand's postulate. The bound splits the prime factors of `centralBinom n` into those 1. At most `sqrt (2 * n)`, which contribute at most `2 * n` for each such prime. 2. Between `sqrt (2 * n)` and `2 * n / 3`, which contribute at most `4^(2 *...
Mathlib.NumberTheory.Bertrand.155_0.gJXoOT9Ce2wC0xc
/-- An upper bound on the central binomial coefficient used in the proof of Bertrand's postulate. The bound splits the prime factors of `centralBinom n` into those 1. At most `sqrt (2 * n)`, which contribute at most `2 * n` for each such prime. 2. Between `sqrt (2 * n)` and `2 * n / 3`, which contribute at most `4^(2 *...
Mathlib_NumberTheory_Bertrand