chars
int64
40
24k
content_type
stringclasses
9 values
id
stringlengths
13
64
source
stringclasses
5 values
subset
stringclasses
31 values
text
stringlengths
40
24k
1,435
leanexplore_declaration
leanexplore:381566
leanexplore_sqlite
leanexplore_declarations
/-- The `ℚ`-algebra equivalence between `FiniteAdeleRing (𝓞 ℚ) ℚ` and the restricted product `Πʳ (p : Nat.Primes), [ℚ_[p], subring p]` of `Padic`s lifting the equivalence `v.adicCompletion ℚ ≃ₐ[ℚ] ℚ_[v.natGenerator]` at each place. -/ noncomputable def padicEquiv : FiniteAdeleRing (𝓞 ℚ) ℚ ≃ₐ[ℚ] Πʳ (p : Nat.Primes), [...
498
leanexplore_declaration
leanexplore:381567
leanexplore_sqlite
leanexplore_declarations
theorem padicEquiv_bijOn : Set.BijOn padicEquiv (integralAdeles (𝓞 ℚ) ℚ) (structureSubring (fun p : Nat.Primes ↦ ℚ_[p]) (fun p ↦ subring p) Filter.cofinite) := by apply RingEquiv.restrictedProductCongr_bijOn_structureSubring (A₂ := fun p : Nat.Primes ↦ subring p) (Rat.HeightOneSpectrum.primesEquiv ...
306
leanexplore_declaration
leanexplore:381568
leanexplore_sqlite
leanexplore_declarations
theorem sub_mem_integralAdeles (a : FiniteAdeleRing (𝓞 ℚ) ℚ) : ∃ x : ℚ, a - algebraMap ℚ _ x ∈ integralAdeles (𝓞 ℚ) ℚ := by obtain ⟨q, hq⟩ := RestrictedProduct.padic_exists_sub_mem_structureSubring (padicEquiv a) use q simpa using padicEquiv_bijOn.symm (padicEquiv.toEquiv.invOn) |>.mapsTo hq
1,075
leanexplore_declaration
leanexplore:381569
leanexplore_sqlite
leanexplore_declarations
theorem Rat.InfiniteAdeleRing.exists_unique_sub_mem_Ico (a : InfiniteAdeleRing ℚ) : ∃! (x : 𝓞 ℚ), ∀ v, extensionEmbeddingOfIsReal (Rat.infinitePlace_isReal v) (a v - algebraMap ℚ (InfiniteAdeleRing ℚ) x v) ∈ Set.Ico 0 1 := by let v₀ : InfinitePlace ℚ := Rat.infinitePlace let σ : v₀.Completion →+* ℝ := extens...
446
leanexplore_declaration
leanexplore:381570
leanexplore_sqlite
leanexplore_declarations
theorem Rat.InfiniteAdeleRing.exists_sub_norm_le_one (a : InfiniteAdeleRing ℚ) : ∃ (x : 𝓞 ℚ), ∀ v, ‖a v - algebraMap ℚ (InfiniteAdeleRing ℚ) x v‖ ≤ 1 := by obtain ⟨x, hx1, -⟩ := Rat.InfiniteAdeleRing.exists_unique_sub_mem_Ico a use x peel hx1 with v hv rw [Subsingleton.elim v Rat.infinitePlace] at * rw [...
110
leanexplore_declaration
leanexplore:381571
leanexplore_sqlite
leanexplore_declarations
instance (v : InfinitePlace K) : ProperSpace v.Completion := ProperSpace.of_locallyCompactSpace v.Completion
1,430
leanexplore_declaration
leanexplore:381572
leanexplore_sqlite
leanexplore_declarations
theorem Rat.AdeleRing.cocompact : CompactSpace (AdeleRing (𝓞 ℚ) ℚ ⧸ AdeleRing.principalSubgroup (𝓞 ℚ) ℚ) where isCompact_univ := by let W : Set (AdeleRing (𝓞 ℚ) ℚ) := (Set.univ.pi fun _ => closedBall 0 1).prod (integralAdeles (𝓞 ℚ) ℚ) have h_W_compact : IsCompact W := by refine (isCompact_...
256
leanexplore_declaration
leanexplore:381573
leanexplore_sqlite
leanexplore_declarations
/-- The fundamental domain `ℤ^ x [0,1)` for `𝔸_ℚ ⧸ ℚ`. -/ def Rat.AdeleRing.fundamentalDomain : Set (AdeleRing (𝓞 ℚ) ℚ) := (univ.pi fun v => (extensionEmbeddingOfIsReal (infinitePlace_isReal v)).toFun ⁻¹' (Ico 0 1)).prod (range <| structureMap _ _ _)
347
leanexplore_declaration
leanexplore:381574
leanexplore_sqlite
leanexplore_declarations
/-- The canonical ring homomorphism from the finite adele ring to a nonarchimedean local factor. -/ def FiniteAdeleRing.toAdicCompletion {K : Type*} [Field K] [NumberField K] (v : HeightOneSpectrum (𝓞 K)) : 𝔸ᶠ[K] →+* v.adicCompletion K where toFun x := x v map_one' := rfl map_mul' _ _ := rfl map_zero'...
1,189
leanexplore_declaration
leanexplore:381575
leanexplore_sqlite
leanexplore_declarations
lemma Rat.AdeleRing.mem_fundamentalDomain (a : AdeleRing (𝓞 ℚ) ℚ) : ∃ g, algebraMap ℚ (AdeleRing (𝓞 ℚ) ℚ) g + a ∈ fundamentalDomain := by obtain ⟨q, f, hf⟩ := FiniteAdeleRing.sub_mem_integralAdeles a.2 obtain ⟨r, hr, -⟩ := Rat.InfiniteAdeleRing.exists_unique_sub_mem_Ico (a.1 - algebraMap _ _ q) use (-q - r)...
1,846
leanexplore_declaration
leanexplore:381576
leanexplore_sqlite
leanexplore_declarations
lemma Rat.AdeleRing.fundamentalDomain_traversal {a b : AdeleRing (𝓞 ℚ) ℚ} (ha : a ∈ fundamentalDomain) (hb : b ∈ fundamentalDomain) {q : ℚ} (hq : algebraMap _ _ q + a = b) : q = 0 := by apply Rat.AdeleRing.integral_and_norm_lt_one · intro v apply_fun RingHom.snd (InfiniteAdeleRing ℚ) _ at hq rw [ma...
110
leanexplore_declaration
leanexplore:381577
leanexplore_sqlite
leanexplore_declarations
noncomputable instance : VAdd ℚ (AdeleRing (𝓞 ℚ) ℚ) where vadd q a := algebraMap ℚ (AdeleRing (𝓞 ℚ) ℚ) q + a
1,399
leanexplore_declaration
leanexplore:381578
leanexplore_sqlite
leanexplore_declarations
theorem Rat.AdeleRing.isAddFundamentalDomain : IsAddFundamentalDomain ℚ Rat.AdeleRing.fundamentalDomain ((MeasureTheory.Measure.pi (fun _ ↦ Measure.addHaar)).prod Measure.addHaar) where nullMeasurableSet := by apply MeasureTheory.NullMeasurableSet.prod _ _ · apply MeasurableSet.nullMeasurableSet ...
180
leanexplore_declaration
leanexplore:381579
leanexplore_sqlite
leanexplore_declarations
theorem NumberField.AdeleRing.cocompact : CompactSpace (AdeleRing (𝓞 K) K ⧸ principalSubgroup (𝓞 K) K) := letI := Rat.AdeleRing.cocompact (piQuotientEquiv ℚ K).compactSpace
237
leanexplore_declaration
leanexplore:381580
leanexplore_sqlite
leanexplore_declarations
/-- The canonical `𝔸 K`-algebra homomorphism `(L ⊗_K 𝔸 K) → 𝔸 L` induced by the maps from `L` and `𝔸 K` into `𝔸 L`. -/ noncomputable def baseChangeAdeleAlgHom : (L ⊗[K] (𝔸 K)) →ₐ[𝔸 K] 𝔸 L := (baseChange K L).baseChangeRightOfAlgebraMap
777
leanexplore_declaration
leanexplore:381581
leanexplore_sqlite
leanexplore_declarations
lemma baseChangeAdeleAlgHom_bijective : Function.Bijective (baseChangeAdeleAlgHom K L) := by -- There's a linear equivalence `(L ⊗_K 𝔸 K) ≅ 𝔸 L` let linearEquiv : (L ⊗[K] 𝔸 K) ≃ₗ[L] 𝔸 L := let tensor := TensorProduct.prodRight K L L (InfiniteAdeleRing K) (FiniteAdeleRing (𝓞 K) K) let prod := LinearEqui...
279
leanexplore_declaration
leanexplore:381582
leanexplore_sqlite
leanexplore_declarations
/-- The canonical `𝔸_K`-algebra isomorphism from `L ⊗_K 𝔸_K` to `𝔸_L` induced by the base change map `𝔸_K → 𝔸_L`. -/ noncomputable def baseChangeAlgAdeleEquiv : (L ⊗[K] 𝔸 K) ≃ₐ[𝔸 K] 𝔸 L := AlgEquiv.ofBijective (baseChangeAdeleAlgHom K L) (baseChangeAdeleAlgHom_bijective K L)
266
leanexplore_declaration
leanexplore:381583
leanexplore_sqlite
leanexplore_declarations
/-- The canonical `𝔸_K`-algebra homeomorphism from `L ⊗_K 𝔸_K` to `𝔸_L` induced by the base change map `𝔸_K → 𝔸_L`. -/ noncomputable def baseChangeAdeleEquiv : (L ⊗[K] 𝔸 K) ≃A[𝔸 K] 𝔸 L := IsModuleTopology.continuousAlgEquivOfAlgEquiv <| baseChangeAlgAdeleEquiv K L
279
leanexplore_declaration
leanexplore:381584
leanexplore_sqlite
leanexplore_declarations
/-- The canonical `L`-algebra isomorphism from `L ⊗_K 𝔸_K` to `𝔸_L` induced by the `K`-algebra base change map `𝔸_K → 𝔸_L`. -/ noncomputable def baseChangeEquiv' : (L ⊗[K] 𝔸 K) ≃A[L] 𝔸 L where __ := (baseChange K L).baseChange_of_algebraMap __ := baseChangeAdeleEquiv K L
283
leanexplore_declaration
leanexplore:381585
leanexplore_sqlite
leanexplore_declarations
instance NumberField.instFiniteResidueFieldAdicCompletionIntegers : Finite (ResidueField (v.adicCompletionIntegers K)) := by apply (HeightOneSpectrum.ResidueFieldEquivCompletionResidueField K v).toEquiv.finite_iff.mp exact Ideal.finiteQuotientOfFreeOfNeBot v.asIdeal v.ne_bot
115
leanexplore_declaration
leanexplore:381586
leanexplore_sqlite
leanexplore_declarations
instance : Finite (𝓀[v.adicCompletion K]) := inferInstanceAs (Finite (ResidueField (v.adicCompletionIntegers K)))
232
leanexplore_declaration
leanexplore:381587
leanexplore_sqlite
leanexplore_declarations
instance NumberField.instCompactSpaceAdicCompletionIntegers : CompactSpace (v.adicCompletionIntegers K) := Valued.WithZeroMulInt.integer_compactSpace (v.adicCompletion K) inferInstance (v.valuedAdicCompletion_surjective K)
212
leanexplore_declaration
leanexplore:381588
leanexplore_sqlite
leanexplore_declarations
lemma NumberField.isCompactAdicCompletionIntegers : IsCompact (v.adicCompletionIntegers K : Set (v.adicCompletion K)) := by rw [isCompact_iff_compactSpace] exact instCompactSpaceAdicCompletionIntegers K v
153
leanexplore_declaration
leanexplore:381589
leanexplore_sqlite
leanexplore_declarations
lemma NumberField.isOpenAdicCompletionIntegers : IsOpen (v.adicCompletionIntegers K : Set (v.adicCompletion K)) := Valued.isOpen_valuationSubring _
237
leanexplore_declaration
leanexplore:381590
leanexplore_sqlite
leanexplore_declarations
instance Rat.adicCompletion.locallyCompactSpace (v : HeightOneSpectrum (𝓞 ℚ)) : LocallyCompactSpace (v.adicCompletion ℚ) := (Rat.HeightOneSpectrum.adicCompletion.padicEquiv v).toHomeomorph.isClosedEmbedding |>.locallyCompactSpace
408
leanexplore_declaration
leanexplore:381591
leanexplore_sqlite
leanexplore_declarations
instance (v : HeightOneSpectrum (𝓞 K)) : WeaklyLocallyCompactSpace (v.adicCompletion K) where exists_compact_mem_nhds x := open Pointwise in ⟨x +ᵥ ((v.adicCompletionIntegers K) : Set (v.adicCompletion K)), (isCompact_iff_compactSpace.mpr <| instCompactSpaceAdicCompletionIntegers K v).vadd x, ...
102
leanexplore_declaration
leanexplore:381592
leanexplore_sqlite
leanexplore_declarations
instance (v : HeightOneSpectrum (𝓞 K)) : LocallyCompactSpace (v.adicCompletion K) := inferInstance
87
leanexplore_declaration
leanexplore:381593
leanexplore_sqlite
leanexplore_declarations
instance : wv.1.1.LiesOver v.1 where comp_eq := by simp [← wv.2, InfinitePlace.comap]
204
leanexplore_declaration
leanexplore:381594
leanexplore_sqlite
leanexplore_declarations
instance {v : InfinitePlace K} : NontriviallyNormedField v.Completion where non_trivial := let ⟨x, hx⟩ := v.isNontrivial.exists_abv_gt_one ⟨x, by rw [UniformSpace.Completion.norm_coe]; exact hx⟩
130
leanexplore_declaration
leanexplore:381595
leanexplore_sqlite
leanexplore_declarations
noncomputable instance : FiniteDimensional v.Completion wv.1.Completion := FiniteDimensional.of_locallyCompactSpace v.Completion
465
leanexplore_declaration
leanexplore:381596
leanexplore_sqlite
leanexplore_declarations
theorem denseRange_algebraMap_subtype_pi (p : InfinitePlace K → Prop) [NumberField K] : DenseRange <| algebraMap K ((v : Subtype p) → v.1.Completion) := by apply DenseRange.comp (g := Subtype.restrict p) (f := algebraMap K ((v : InfinitePlace K) → v.1.Completion)) · exact Subtype.surjective_restrict (β := f...
493
leanexplore_declaration
leanexplore:381597
leanexplore_sqlite
leanexplore_declarations
/-- The map `(R,v) → (S,w)` as a semialgebra map over `R → S` (which is the same map!). -/ @[simps!] def _root_.WithAbs.semialgebraMap {R R' S : Type*} [CommSemiring R] [CommSemiring R'] [Semiring S] [PartialOrder S] [Algebra R R'] (v : AbsoluteValue R S) (w : AbsoluteValue R' S) : WithAbs v →ₛₐ[algebraMap R R'...
289
leanexplore_declaration
leanexplore:381598
leanexplore_sqlite
leanexplore_declarations
@[simps!] def _root_.WithAbs.semialgebraMap {R R' S : Type*} [CommSemiring R] [CommSemiring R'] [Semiring S] [PartialOrder S] [Algebra R R'] (v : AbsoluteValue R S) (w : AbsoluteValue R' S) : WithAbs v →ₛₐ[algebraMap R R'] WithAbs w where __ := algebraMap (WithAbs v) (WithAbs w)
478
leanexplore_declaration
leanexplore:381599
leanexplore_sqlite
leanexplore_declarations
/-- The map from `v.Completion` to `w.Completion` whenever the infinite place `w` of `L` lies above the infinite place `v` of `K`. -/ abbrev comapHom (h : w.comap (algebraMap K L) = v) : v.Completion →ₛₐ[algebraMap K L] w.Completion := have h' : w.1.LiesOver v.1 := ⟨by simp [← h, InfinitePlace.comap]⟩ .restrict...
100
leanexplore_declaration
leanexplore:381600
leanexplore_sqlite
leanexplore_declarations
theorem comapHom_cont (h : w.comap (algebraMap K L) = v) : Continuous (comapHom h) := continuous_map
232
leanexplore_declaration
leanexplore:381601
leanexplore_sqlite
leanexplore_declarations
/-- The map from `v.Completion` to the product of all completions of `L` lying above `v`. -/ def piExtension : v.Completion →ₛₐ[algebraMap K L] (wv : v.Extension L) → wv.1.Completion := Pi.semialgHom _ _ fun wv ↦ comapHom wv.2
110
leanexplore_declaration
leanexplore:381602
leanexplore_sqlite
leanexplore_declarations
@[simp] theorem piExtension_apply (x : v.Completion) : piExtension L v x = fun wv ↦ comapHom wv.2 x := rfl
82
leanexplore_declaration
leanexplore:381603
leanexplore_sqlite
leanexplore_declarations
instance : TopologicalSpace (L ⊗[K] v.Completion) := moduleTopology v.Completion _
71
leanexplore_declaration
leanexplore:381604
leanexplore_sqlite
leanexplore_declarations
instance : IsModuleTopology v.Completion (L ⊗[K] v.Completion) := ⟨rfl⟩
269
leanexplore_declaration
leanexplore:381605
leanexplore_sqlite
leanexplore_declarations
/-- The `L`-algebra map `L ⊗[K] v.Completion` to the product of all completions of `L` lying above `v`, induced by `piExtension`. -/ abbrev baseChange : L ⊗[K] v.Completion →ₐ[L] (wv : v.Extension L) → wv.1.Completion := baseChange_of_algebraMap (piExtension L v)
301
leanexplore_declaration
leanexplore:381606
leanexplore_sqlite
leanexplore_declarations
/-- The `v.Completion`-algebra map `L ⊗[K] v.Completion` to the product of all completions of `L` lying above `v`, induced by `piExtension`. -/ abbrev baseChangeRight : L ⊗[K] v.Completion →ₐ[v.Completion] ((wv : v.Extension L) → wv.1.Completion) := baseChangeRightOfAlgebraMap (piExtension L v)
267
leanexplore_declaration
leanexplore:381607
leanexplore_sqlite
leanexplore_declarations
theorem mem_placesOver_iff_comap (v : InfinitePlace K) (w : InfinitePlace L) : w ∈ placesOver L v ↔ w.comap (algebraMap K L) = v := by simp only [placesOver, Set.mem_setOf_eq] exact ⟨fun _ ↦ LiesOver.comap_eq _ _, fun h ↦ ⟨by simp [← h, InfinitePlace.comap]⟩⟩
97
leanexplore_declaration
leanexplore:381608
leanexplore_sqlite
leanexplore_declarations
instance : Module.Free v.Completion wv.1.Completion := Module.free_of_finite_type_torsion_free'
446
leanexplore_declaration
leanexplore:381609
leanexplore_sqlite
leanexplore_declarations
theorem finrank_prod_eq_finrank [NumberField K] : Module.finrank v.Completion ((wv : Extension L v) → wv.1.Completion) = Module.finrank K L := by classical rw [Module.finrank_pi_fintype v.Completion, ← sum_inertiaDeg_eq_finrank K L v, ← Finset.sum_congr rfl fun (w : v.Extension L) _ ↦ inertiaDeg_eq_fi...
408
leanexplore_declaration
leanexplore:381610
leanexplore_sqlite
leanexplore_declarations
theorem finrank_pi_eq_finrank_tensorProduct [NumberField K] : Module.finrank v.Completion ((w : v.Extension L) → w.1.Completion) = Module.finrank v.Completion (L ⊗[K] v.Completion) := by rw [(TensorProduct.RightActions.Algebra.TensorProduct.comm K v.Completion L).symm.toLinearEquiv.finrank_eq, ...
940
leanexplore_declaration
leanexplore:381611
leanexplore_sqlite
leanexplore_declarations
theorem baseChange_surjective : Function.Surjective (baseChange L v) := by -- Let `Bw` be a `K_v` basis of `Π v | w, L_w` let Bw := Module.finBasis v.Completion ((w : v.Extension L) → w.1.Completion) -- `L` is dense inside Π v | w, L_w have := denseRange_algebraMap_subtype_pi _ fun w : InfinitePlace L => w.coma...
293
leanexplore_declaration
leanexplore:381612
leanexplore_sqlite
leanexplore_declarations
theorem baseChange_injective : Function.Injective (baseChange L v) := by rw [← baseChangeRightOfAlgebraMap_coe, ← AlgHom.coe_toLinearMap, LinearMap.injective_iff_surjective_of_finrank_eq_finrank (finrank_pi_eq_finrank_tensorProduct L v).symm] simp [baseChange_surjective L v]
194
leanexplore_declaration
leanexplore:381613
leanexplore_sqlite
leanexplore_declarations
instance : IsModuleTopology v.Completion wv.1.Completion := IsModuleTopology.iso (FiniteDimensional.nonempty_continuousLinearEquiv_of_finrank_eq (Module.finrank_fin_fun v.Completion)).some
486
leanexplore_declaration
leanexplore:381614
leanexplore_sqlite
leanexplore_declarations
/-- The `L`-algebra homeomorphism between `L ⊗[K] v.Completion` and the product of all completions of `L` lying above `v`. -/ def baseChangeEquiv : L ⊗[K] v.Completion ≃A[L] (wv : v.Extension L) → wv.1.Completion := let e := AlgEquiv.ofBijective _ ⟨baseChange_injective L v, baseChange_surjective L v⟩ have : IsB...
133
leanexplore_declaration
leanexplore:381615
leanexplore_sqlite
leanexplore_declarations
instance : IsBiscalar L v.Completion (baseChangeEquiv L v).toAlgHom := inferInstanceAs (IsBiscalar L v.Completion (baseChange L v))
240
leanexplore_declaration
leanexplore:381616
leanexplore_sqlite
leanexplore_declarations
@[simp] theorem baseChangeEquiv_tmul (l : L) (x : v.Completion) : baseChangeEquiv L v (l ⊗ₜ[K] x) = fun wv : v.Extension L => l * comapHom wv.2 x := by simp [baseChangeEquiv, baseChange, SemialgHom.baseChange_of_algebraMap_tmul] rfl
800
leanexplore_declaration
leanexplore:381617
leanexplore_sqlite
leanexplore_declarations
/-- The `Kᵥ`-linear homeomorphism between `Kᵥ^d` and the product of all completions of `L` lying above `v`, where `d = [K : L]`. -/ def piEquiv : (Fin (Module.finrank K L) → v.Completion) ≃L[v.Completion] (wv : v.Extension L) → wv.1.Completion := by -- `L ⊗ Kᵥ ≃ₗ[Kᵥ] Kᵥ ⊗ L` let e₁ := (TensorProduct.Right...
264
leanexplore_declaration
leanexplore:381618
leanexplore_sqlite
leanexplore_declarations
theorem piEquiv_smul (x : v.Completion) (y : Fin (Module.finrank K L) → v.Completion) (wv : v.Extension L) : piEquiv L v (x • y) wv = comapHom wv.2 x * piEquiv L v y wv := by simp_rw [(piEquiv L v).map_smul x y, Pi.smul_def, RingHom.smul_toAlgebra] rfl
228
leanexplore_declaration
leanexplore:381619
leanexplore_sqlite
leanexplore_declarations
theorem strictMonoOn_Ici_nat_of_lt_succ {α : Type*} [Preorder α] {f : ℕ → α} {x : ℕ} (h : ∀ n, x ≤ n → f n < f (n + 1)) : StrictMonoOn f {i | x ≤ i} := fun _ ha _ _ ↦ Nat.rel_of_forall_rel_succ_of_le_of_lt (· < ·) h ha
208
leanexplore_declaration
leanexplore:381620
leanexplore_sqlite
leanexplore_declarations
theorem strictMonoOn_Ioi_nat_of_lt_succ {α : Type*} [Preorder α] {f : ℕ → α} {x : ℕ} (h : ∀ n, x < n → f n < f (n + 1)) : StrictMonoOn f (Set.Ioi x) := strictMonoOn_Ici_nat_of_lt_succ (x := x + 1) h
267
leanexplore_declaration
leanexplore:381621
leanexplore_sqlite
leanexplore_declarations
/-- Minkowski's lower bound for the root discriminant (that is, the `n`th root of the absolute value of the discriminant) of a totally complex number field of degree `n`. -/ noncomputable def rootDiscrBound (n : ℕ) : ℝ := (π / 4) * (n ^ 2 / (n ! : ℝ) ^ (2 / n : ℝ))
653
leanexplore_declaration
leanexplore:381622
leanexplore_sqlite
leanexplore_declarations
lemma rootDiscrBound_strictMono : StrictMono rootDiscrBound := by refine .const_mul (StrictMonoOn.Iic_union_Ici (a := 1) ?_ ?_) (by positivity) next => have : Set.Iic 1 = {0, 1} := by simp [Set.ext_iff]; omega simp [this, StrictMonoOn] refine ((exp_strictMono.comp (strictMono_mul_left_of_pos zero_lt_two))...
394
leanexplore_declaration
leanexplore:381623
leanexplore_sqlite
leanexplore_declarations
theorem rootDiscrBound_lt_iff_lt_fourteen {n : ℕ} : rootDiscrBound n < 2 ^ (2 / 3 : ℝ) * 3 ^ (7 / 8 : ℝ) ↔ n < 14 := by refine ⟨fun h ↦ ?mp, fun h ↦ ?mpr⟩ case mp => exact rootDiscrBound_strictMono.lt_iff_lt.mp (h.trans rootDiscrBound_fourteen_gt) case mpr => replace h : n ≤ 13 := by omega exact (root...
351
leanexplore_declaration
leanexplore:381624
leanexplore_sqlite
leanexplore_declarations
theorem rootDiscrBound_lt_iff_lt_five {n : ℕ} : rootDiscrBound n < 2.75 ↔ n < 5 := by refine ⟨fun h ↦ ?mp, fun h ↦ ?mpr⟩ case mp => exact rootDiscrBound_strictMono.lt_iff_lt.mp (h.trans rootDiscrBound_five_gt) case mpr => replace h : n ≤ 4 := by omega exact (rootDiscrBound_strictMono.le_iff_le.mpr h)....
166
leanexplore_declaration
leanexplore:381625
leanexplore_sqlite
leanexplore_declarations
theorem le_fourteen_of_rootDiscrBound {n : ℕ} (h : rootDiscrBound n < 2 ^ (2 / 3 : ℝ) * 3 ^ (7 / 8 : ℝ)) : n ≤ 14 := (rootDiscrBound_lt_iff_lt_fourteen.mp h).le
151
leanexplore_declaration
leanexplore:381626
leanexplore_sqlite
leanexplore_declarations
theorem le_five_of_rootDiscrBound {n : ℕ} (h : (π / 4) * (n ^ 2 / (n !) ^ (2 / n : ℝ)) < 2.75) : n ≤ 5 := (rootDiscrBound_lt_iff_lt_five.mp h).le
111
leanexplore_declaration
leanexplore:381627
leanexplore_sqlite
leanexplore_declarations
instance : Countable (HeightOneSpectrum (𝓞 ℚ)) := Countable.of_equiv _ Rat.HeightOneSpectrum.primesEquiv.symm
166
leanexplore_declaration
leanexplore:381628
leanexplore_sqlite
leanexplore_declarations
instance : Countable (HeightOneSpectrum (𝓞 K)) := Set.Countable.of_preimage_singleton <| fun y ↦ ((preimage_comap_finite (𝓞 ℚ) ℚ K (𝓞 K)) {y} (by simp)).countable
101
leanexplore_declaration
leanexplore:381629
leanexplore_sqlite
leanexplore_declarations
/-- `K∞` is notation for `InfiniteAdeleRing K`. -/ scoped notation:10000 K "∞" => InfiniteAdeleRing K
310
leanexplore_declaration
leanexplore:381630
leanexplore_sqlite
leanexplore_declarations
/-- The canonical map from the infinite adeles of K to the infinite adeles of L -/ noncomputable def baseChange : K∞ →SA[algebraMap K L] L∞ where __ := Pi.semialgHomPi _ _ fun _ => Completion.comapHom rfl continuous_toFun := .piSemialgHomPi Completion Completion _ fun _ => Completion.comapHom_cont rfl
161
leanexplore_declaration
leanexplore:381631
leanexplore_sqlite
leanexplore_declarations
@[simp] theorem baseChange_apply (x : K∞) (w : InfinitePlace L) : baseChange K L x w = Completion.comapHom (w := w) rfl (x (w.comap (algebraMap K L))) := rfl
167
leanexplore_declaration
leanexplore:381632
leanexplore_sqlite
leanexplore_declarations
noncomputable instance [Algebra K∞ L∞] : Algebra ((v : InfinitePlace K) → v.Completion) ((w : InfinitePlace L) → w.Completion) := inferInstanceAs (Algebra K∞ L∞)
578
leanexplore_declaration
leanexplore:381633
leanexplore_sqlite
leanexplore_declarations
/-- The $K_{\infty}$-linear homeomorphism $K_{\infty}^{[L:K]} \cong L_{\infty}$. -/ noncomputable def piEquiv [Algebra K∞ L∞] [Pi.FiberwiseSMul (fun a : InfinitePlace L => a.comap (algebraMap K L)) Completion Completion] : (Fin (Module.finrank K L) → K∞) ≃L[K∞] L∞ := have := (ContinuousLinearEquiv.piScalarPiC...
181
leanexplore_declaration
leanexplore:381634
leanexplore_sqlite
leanexplore_declarations
instance instIsModuleTopology_fLT [Algebra K∞ L∞] [Pi.FiberwiseSMul (fun a => a.comap (algebraMap K L)) Completion Completion] : IsModuleTopology K∞ L∞ := .iso (piEquiv K L)
449
leanexplore_declaration
leanexplore:381635
leanexplore_sqlite
leanexplore_declarations
/-- The $L$-algebra isomorphism $L\otimes_K K_{\infty} \cong L_{\infty}$. -/ noncomputable def baseChangeAlgEquiv : L ⊗[K] K∞ ≃ₐ[L] L∞ := -- L ⊗ K_∞ ≃[K_∞] ∏ v, L ⊗ K_v Algebra.TensorProduct.piRight K L L Completion |>.trans -- lift the established equivalence L ⊗ K_v ≃[v.Completion] ∏ w ∣ v, L_w on fibers ...
134
leanexplore_declaration
leanexplore:381636
leanexplore_sqlite
leanexplore_declarations
theorem baseChangeAlgEquiv_tmul (l : L) (x : K∞) : baseChangeAlgEquiv K L (l ⊗ₜ[K] x) = algebraMap _ _ l * baseChange K L x := rfl
344
leanexplore_declaration
leanexplore:381637
leanexplore_sqlite
leanexplore_declarations
instance : Module.Free K∞ (L ⊗[K] K∞) := by -- L ⊗ K_∞ ≃ₗ[K_∞] K_∞ ⊗ L let e₁ := (TensorProduct.RightActions.Algebra.TensorProduct.comm K K∞ L).toLinearEquiv.symm -- K_∞ ⊗ L ≃ₗ[K_∞] ∏ v, K_v ⊗ L let e₂ := finiteEquivPi K L K∞ -- Compose to transfer freeness of ∏ v, K_v ⊗ L to L ⊗ K_∞ exact Module.Free.of_...
1,076
leanexplore_declaration
leanexplore:381638
leanexplore_sqlite
leanexplore_declarations
/-- Take two arbitrary `Algebra K L∞` and `Algebra K∞ L∞` instances. Assume that `Algebra K L∞` factors through (existing) `Algebra K L` and `Algebra L L∞`. Assume further that `Algebra K∞ L∞` is determined by the fibers of restriction of infinite places of `L` to `K` via (x • y) v = x (v.comap (algebraMap K L)) • y v....
365
leanexplore_declaration
leanexplore:381639
leanexplore_sqlite
leanexplore_declarations
/-- The canonical `L`-algebra homeomorphism from `L ⊗_K K_∞` to `L_∞` induced by the `K`-algebra base change map `K_∞ → L_∞`. -/ noncomputable def baseChangeEquiv [Algebra K∞ L∞] [Pi.FiberwiseSMul (fun a => a.comap (algebraMap K L)) Completion Completion] : L ⊗[K] K∞ ≃A[L] L∞ := IsModuleTopology.continuousAlg...
241
leanexplore_declaration
leanexplore:381640
leanexplore_sqlite
leanexplore_declarations
/-- If `L/K` and `f : K →+* ℂ`, `g : L →+* ℂ`, then we say `g` is an extension of `f` if `g` restricted to `K` is `f`. This is the complex embedding analogue of `InfinitePlace.Extension`. -/ abbrev IsExtension := g.comp (algebraMap K L) = f
204
leanexplore_declaration
leanexplore:381641
leanexplore_sqlite
leanexplore_declarations
theorem IsExtension.not_isExtension_conjugate (h : IsExtension f g) (hf : ¬ComplexEmbedding.IsReal f) : ¬IsExtension f (conjugate g) := by simp_all [RingHom.ext_iff, ComplexEmbedding.isReal_iff]
260
leanexplore_declaration
leanexplore:381642
leanexplore_sqlite
leanexplore_declarations
theorem IsExtension.ne {r : L →+* ℂ} (hg : IsExtension f g) (hr : ¬IsExtension f r) : g ≠ r := by simp_all only [← hg, RingHom.ext_iff, RingHom.coe_comp, Function.comp_apply, not_forall, ne_eq] let ⟨x, hx⟩ := hr exact ⟨algebraMap K L x, by aesop⟩
331
leanexplore_declaration
leanexplore:381643
leanexplore_sqlite
leanexplore_declarations
/-- If `L/K` and `f : K →+* ℂ`, `g : L →+* ℂ`, then `g` is a _mixed extension_ of `f` if the image of `f` is real while the image of `g` is complex. This is the complex embedding analogue of `InfinitePlace.RamifiedExtension`. -/ abbrev IsMixedExtension := IsExtension f g ∧ ComplexEmbedding.IsReal f ∧ ¬ComplexEmbeddi...
186
leanexplore_declaration
leanexplore:381644
leanexplore_sqlite
leanexplore_declarations
theorem not_isReal_of_not_isReal {f : K →+* ℂ} {g : L →+* ℂ} (h : IsExtension f g) (hf : ¬ComplexEmbedding.IsReal f) : ¬ComplexEmbedding.IsReal g := mt (IsReal.comp _) (h ▸ hf)
75
leanexplore_declaration
leanexplore:381645
leanexplore_sqlite
leanexplore_declarations
theorem isExtension (h : IsMixedExtension f g) : IsExtension f g := h.1
82
leanexplore_declaration
leanexplore:381646
leanexplore_sqlite
leanexplore_declarations
theorem isReal (h : IsMixedExtension f g) : ComplexEmbedding.IsReal f := h.2.1
87
leanexplore_declaration
leanexplore:381647
leanexplore_sqlite
leanexplore_declarations
theorem not_isReal (h : IsMixedExtension f g) : ¬ComplexEmbedding.IsReal g := h.2.2
382
leanexplore_declaration
leanexplore:381648
leanexplore_sqlite
leanexplore_declarations
/-- If `L/K` and `f : K →+* ℂ`, `g : L →+* ℂ`, then `g` is an _unmixed extension_ of `f` if `g` is an extension of `f` but is not a mixed extension. In other words, the image of `f` is real if and only if the image of `g` is real. This is the complex embedding analogue of `InfinitePlace.UnramifiedExtension`. -/ abbrev...
222
leanexplore_declaration
leanexplore:381649
leanexplore_sqlite
leanexplore_declarations
theorem IsUnmixedExtension.isReal_of_isReal (h : IsUnmixedExtension f g) (hf : ComplexEmbedding.IsReal f) : ComplexEmbedding.IsReal g := by simp only [IsUnmixedExtension, not_and, not_not] at h exact h.2 h.1 hf
673
leanexplore_declaration
leanexplore:381650
leanexplore_sqlite
leanexplore_declarations
/-- The extensions `g : L →+* ℂ` of `f : K →+* ℂ` are the direct sum of the mixed and the unmixed extensions. -/ def isExtensionEquivSum (f : K →+* ℂ) : { g : L →+* ℂ // IsExtension f g } ≃ { g : L →+* ℂ // IsMixedExtension f g } ⊕ { g : L →+* ℂ // IsUnmixedExtension f g } := (Equiv.sumCompl (fun g => C...
357
leanexplore_declaration
leanexplore:381651
leanexplore_sqlite
leanexplore_declarations
/-- If `L / K` are fields and `v` is an infinite place of `K`, then we say an infinite place `w` of `L` _extends_ `v` if `w` can be constructed from a complex embedding `L →+* ℂ` whose restriction to `K` is an associated complex embedding `K →+* ℂ` of `v`. -/ abbrev Extension (v : InfinitePlace K) := { w : InfinitePlac...
151
leanexplore_declaration
leanexplore:381652
leanexplore_sqlite
leanexplore_declarations
/-- Any infinite place `w` of `L` is an extension of its restriction to `K`. -/ abbrev toExtension : (w.comap (algebraMap K L)).Extension L := ⟨w, rfl⟩
78
leanexplore_declaration
leanexplore:381653
leanexplore_sqlite
leanexplore_declarations
theorem coe_toExtension (w : InfinitePlace L) : (toExtension K w).1 = w := rfl
364
leanexplore_declaration
leanexplore:381654
leanexplore_sqlite
leanexplore_declarations
theorem isComplex_of_isComplex (hv : v.IsComplex) : w.1.IsComplex := by rw [isComplex_iff, ComplexEmbedding.isReal_iff, RingHom.ext_iff, not_forall] at hv ⊢ let ⟨x, hx⟩ := hv use algebraMap K L x rw [← w.2, ← mk_embedding w.1, comap_mk] at hx cases embedding_mk_eq (w.1.embedding.comp (algebraMap K L)) wit...
142
leanexplore_declaration
leanexplore:381655
leanexplore_sqlite
leanexplore_declarations
theorem isReal_base (hw : w.1.IsReal) : v.IsReal := by simp_all only [← not_isComplex_iff_isReal] exact mt w.isComplex_of_isComplex hw
114
leanexplore_declaration
leanexplore:381656
leanexplore_sqlite
leanexplore_declarations
theorem mk_embedding : mk (w.1.embedding.comp (algebraMap K L)) = v := by rw [← comap_mk, w.1.mk_embedding, w.2]
391
leanexplore_declaration
leanexplore:381657
leanexplore_sqlite
leanexplore_declarations
theorem isExtension_or_isExtension_conjugate : IsExtension v.embedding w.1.embedding ∨ IsExtension v.embedding (conjugate w.1.embedding) := by cases embedding_mk_eq (w.1.embedding.comp (algebraMap K L)) with | inl hl => convert Or.inl <| hl ▸ congrArg InfinitePlace.embedding w.mk_embedding | inr hr => ...
208
leanexplore_declaration
leanexplore:381658
leanexplore_sqlite
leanexplore_declarations
theorem isExtension_conjugate_of_not_isExtension (h : ¬IsExtension v.embedding w.1.embedding) : IsExtension v.embedding (conjugate w.1.embedding) := w.isExtension_or_isExtension_conjugate.resolve_left h
316
leanexplore_declaration
leanexplore:381659
leanexplore_sqlite
leanexplore_declarations
/-- If `w` is an infinite place of `L` lying above the infinite place `v` of `K`, then there are two possibilities: - `w.embedding` extends `v.embedding`. - `conjugate w.embedding` extends `v.embedding`. `IsLift w` encodes the first case. -/ class IsLift where isExtension' : IsExtension v.embedding w.1.embedding
106
leanexplore_declaration
leanexplore:381660
leanexplore_sqlite
leanexplore_declarations
theorem IsLift.isExtension [w.IsLift L v] : IsExtension v.embedding w.1.embedding := IsLift.isExtension'
347
leanexplore_declaration
leanexplore:381661
leanexplore_sqlite
leanexplore_declarations
/-- If `w` is an infinite place of `L` lying above the infinite place `v` of `K`, then there are two possibilities: - `w.embedding` extends `v.embedding`. - `conjugate w.embedding` extends `v.embedding`. `IsConjugateLift w` encodes the second case. -/ class IsConjugateLift where isExtension' : IsExtension v.embeddin...
147
leanexplore_declaration
leanexplore:381662
leanexplore_sqlite
leanexplore_declarations
theorem IsConjugateLift.isExtension [w.IsConjugateLift L v] : IsExtension v.embedding (conjugate w.1.embedding) := IsConjugateLift.isExtension'
240
leanexplore_declaration
leanexplore:381663
leanexplore_sqlite
leanexplore_declarations
theorem isLift_or_isConjugateLift (v : InfinitePlace K) (w : v.Extension L) : w.IsLift L v ∨ w.IsConjugateLift L v := by cases isExtension_or_isExtension_conjugate w with | inl hl => exact Or.inl ⟨hl⟩ | inr hr => exact Or.inr ⟨hr⟩
276
leanexplore_declaration
leanexplore:381664
leanexplore_sqlite
leanexplore_declarations
/-- For a given infinite place `v` of `K`, `RamifiedExtension L v` are all the infinite places of `L / K` that extend `v` and are ramified over `K`. -/ abbrev RamifiedExtension (v : InfinitePlace K) := { w : InfinitePlace L // w.comap (algebraMap K L) = v ∧ w.IsRamified K }
284
leanexplore_declaration
leanexplore:381665
leanexplore_sqlite
leanexplore_declarations
/-- For a given infinite place `v` of `K`, `UnramifiedExtension L v` are all the infinite places of `L / K` that extend `v` and are unramified over `K`. -/ abbrev UnramifiedExtension (v : InfinitePlace K) := { w : InfinitePlace L // w.comap (algebraMap K L) = v ∧ w.IsUnramified K }