Definitions of Tests.PadicInt
DefinitionTypeDensity_Tests_PadicIntNon-vacuity in mixed characteristic: the p-adic integers
Tests.NonVacuity shows that the hypotheses of TypeDensity.main_dvr are satisfiable in equal
characteristic (𝔽_q⟦X⟧). This file does the same in mixed characteristic, for the ring ℤ_[p] of
p-adic integers with Mathlib's own topology (the one induced by the p-adic norm): it is a
complete discrete valuation ring with residue field 𝔽_p, a compact Hausdorff second-countable
topological ring, and its norm topology is the (p)-adic one. Equipping it with the Borel
σ-algebra (padicIntMeasurableSpace, a local instance: no topology or metric is declared here),
main_dvr applies. This is the case of the conjecture of
Bhargava–Cremona–Fisher–Gajović, which is stated over ℤ_p.
Main results
TypeDensity.Tests.isAdic_maximalIdeal_padicInt: the norm topology onℤ_[p]is(p)-adic.TypeDensity.Tests.main_dvr_padicInt:main_dvrforℤ_[p], withq = p.TypeDensity.Tests.universal_type_laws_padicInt: the monic, cluster and projective probabilities overℤ_[p]are the (nonnegative) values atpof the three universal rational functions.TypeDensity.Tests.monicDensity_padicInt_two_ramified: a random monic quadratic overℤ_[p]is ramified with probability1 / (p + 1), for every primepincludingp = 2.
Only ℤ_[p] itself is instantiated. For the ring of integers of a ramified finite extension of
ℚ_[p], main_field_form_ramified still takes the compact adic topology as a hypothesis; no
instance of it is constructed here.
-- Generated by the TypeDensity exporter from Tests/PadicInt.lean (namespace TypeDensity); do not edit. import Definitions.Def_TypeDensity_Basic import Definitions.Def_TypeDensity_Cluster_Defs import Definitions.Def_TypeDensity_Blowup_Directions import Definitions.Def_TypeDensity_Measure_AdicCylinders import Definitions.Def_TypeDensity_Formula_LawAlgebra import Definitions.Def_TypeDensity_Measure_HenselProducts import Definitions.Def_TypeDensity_Surfaces_Lengths import Definitions.Def_TypeDensity_Surfaces_PowerSeries import Definitions.Def_TypeDensity_Formula_FiniteFieldCounts import Definitions.Def_TypeDensity_Formula_StateCombinatorics import Definitions.Def_TypeDensity_Formula_PatternCounts import Definitions.Def_TypeDensity_Unramified_Extension import Definitions.Def_TypeDensity_Blowup_Charts import Definitions.Def_TypeDensity_Algebra_AlgebraType import Definitions.Def_TypeDensity_Measure_PrimitiveLocus import Definitions.Def_TypeDensity_Algebra_FactorInvariant import Definitions.Def_TypeDensity_Surfaces_TruncatedSeries import Definitions.Def_TypeDensity_Blowup_TwoChartCurveData import Definitions.Def_TypeDensity_Surfaces_ConcreteAtlas import Definitions.Def_TypeDensity_Recursion_Members import Definitions.Def_TypeDensity_Measure_MemberCharts import Definitions.Def_TypeDensity_Recursion_Termination import Definitions.Def_TypeDensity_Recursion_OrderDefect import Definitions.Def_TypeDensity_Assembly_NullBridges import Definitions.Def_TypeDensity_Assembly_TypeEvents import Definitions.Def_TypeDensity_Assembly_MonicCells import Definitions.Def_TypeDensity_Blowup_DivisorPoints import Definitions.Def_TypeDensity_Measure_MemberBoxes import Definitions.Def_TypeDensity_Recursion_ChildMembers import Definitions.Def_TypeDensity_Recursion_RootCellLaw import Definitions.Def_TypeDensity_Reciprocity_Defs import Definitions.Def_TypeDensity_Reciprocity_Quantum import Definitions.Def_TypeDensity_Reciprocity_Patterns import Definitions.Def_TypeDensity_Tests_NonVacuity import Definitions.Def_TypeDensity_Tests_Regression import Mathlib.FieldTheory.RatFunc.Basic import Mathlib.MeasureTheory.Measure.Haar.Unique import Mathlib.NumberTheory.ArithmeticFunction.Moebius import Mathlib.NumberTheory.Padics.PadicIntegers import Mathlib.RingTheory.IntegralClosure.IntegralRestrict import Mathlib.RingTheory.MvPowerSeries.Basic import Mathlib.RingTheory.RamificationInertia.Basic import Mathlib.Topology.Algebra.Nonarchimedean.AdicTopology import Mathlib.Topology.Algebra.MvPolynomial import Mathlib.FieldTheory.Finite.GaloisField import Mathlib.RingTheory.AdicCompletion.Algebra import Mathlib.RingTheory.RegularLocalRing.Defs import Mathlib.Algebra.Group.Pi.Units import Mathlib.Order.CompletePartialOrder import Mathlib.RingTheory.Henselian import Mathlib.RingTheory.Polynomial.Resultant.Basic import Mathlib.RingTheory.SimpleRing.Principal import Mathlib.FieldTheory.Finite.Extension import Mathlib.RingTheory.AdicCompletion.Noetherian import Mathlib.RingTheory.MvPowerSeries.Equiv import Mathlib.RingTheory.PicardGroup import Mathlib.FieldTheory.RatFunc.AsPolynomial import Mathlib.RingTheory.AdicCompletion.Completeness import Mathlib.Algebra.GroupWithZero.Submonoid.CancelMulZero import Mathlib.Algebra.Module.StablyFree.Basic import Mathlib.NumberTheory.Padics.RingHoms import Mathlib.Algebra.Azumaya.Basic import Mathlib.RingTheory.AdicCompletion.RingHom import Mathlib.RingTheory.TotallySplit import Mathlib.RingTheory.AdicCompletion.LocalRing import Mathlib.RingTheory.KrullDimension.NonZeroDivisors import Mathlib.Algebra.Group.NatPowAssoc import Mathlib.Algebra.Order.Ring.Star import Mathlib.Data.Int.Star import Mathlib.LinearAlgebra.Dimension.Torsion.Finite import Mathlib.RingTheory.PowerSeries.Expand import Mathlib.RingTheory.PowerSeries.Log import Mathlib.RingTheory.PowerSeries.PiTopology import Mathlib.Data.Finsupp.Encodable import Mathlib.Topology.Connected.Separation import Mathlib.Topology.Instances.ZMod import Mathlib.Topology.Separation.Lemmas import Mathlib.NumberTheory.Padics.ProperSpace import Mathlib.Topology.MetricSpace.Ultra.Basic set_option autoImplicit false open IsLocalRing Topology namespace TypeDensity.Tests section PadicInt variable (p : ℕ) [hp : Fact p.Prime] /-- The residue field of `ℤ_[p]` is `ZMod p`, hence finite. -/ instance instFiniteResidueFieldPadicInt_tests : Finite (ResidueField ℤ_[p]) := .of_equiv (ZMod p) (PadicInt.residueField (p := p)).symm.toEquiv /-- The Borel σ-algebra on `ℤ_[p]`. The pinned Mathlib has no `MeasurableSpace` instance on `ℤ_[p]`; this one is local to this file, so it cannot clash with an instance added elsewhere. -/ noncomputable local instance padicIntMeasurableSpace : MeasurableSpace ℤ_[p] := borel _ /-- The Borel σ-algebra makes `ℤ_[p]` a Borel space. -/ local instance padicIntBorelSpace : BorelSpace ℤ_[p] := ⟨rfl⟩ end PadicInt end TypeDensity.Tests