import Mathlib import OAI.Probability.CriticalPercolation.LinearGroups.ArchimedeanDetection import OAI.Probability.CriticalPercolation.LinearGroups.PadicDetection namespace OAI section noncomputable section open Set Function Cardinal Polynomial open scoped Classical namespace CriticalPercolation.Arithmetic lemma algebraic_of_all_complex_embeddings_bounded {K : Type} [Field K] [CharZero K] [Countable K] (x : K) (h : ∀ f : K →+* ℂ, ‖f x‖≤1) : IsAlgebraic ℚ x := by by_contra hn obtain ⟨f,hf⟩ := exists_complex_embedding_norm_gt_one x hn exact hf.not_ge (h f) lemma uncountable_padic_closure (p : ℕ) [Fact p.Prime] : Uncountable (AlgebraicClosure (Padic p)) := by let : Uncountable (Padic p) := uncountable_complete_normed_field (Padic p) exact (algebraMap (Padic p) (AlgebraicClosure (Padic p))).injective.uncountable lemma root_of_unity_of_all_places {K : Type} [Field K] [CharZero K] [Countable K] (x : K) (hx : x≠0) (hc : ∀ f : K →+* ℂ, ‖f x‖≤1) (hp : ∀ (p : ℕ) (_ : Fact p.Prime) (f : K →+* AlgebraicClosure (Padic p)), spectralNorm (Padic p) (AlgebraicClosure (Padic p)) (f x)≤1) : ∃ n : ℕ, 0 hx (congrArg Subtype.val hz)) hi hcA exact ⟨n,hn,congrArg Subtype.val he⟩ end CriticalPercolation.Arithmetic end end end OAI