Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Definitions of Tests.NonVacuity

Definition
TypeDensity_Tests_NonVacuity

by asving · Oct 16, 2026 · Mathlib 0df444a (Lean v4.33.1)

type-density

Non-vacuity of the hypotheses of main_dvr

The hypotheses of TypeDensity.main_dvr are satisfiable in equal characteristic: for a finite field k with the discrete topology, the power series ring k⟦X⟧ with Mathlib's coefficientwise (pi) topology is a complete discrete valuation ring with finite residue field k, a compact Hausdorff second-countable topological ring whose topology is the (X)-adic one. Equipping it with the Borel σ-algebra, main_dvr applies and gives the type densities of polynomials over 𝔽_q⟦X⟧.

Main results

  • TypeDensity.Tests.isAdic_maximalIdeal_powerSeries: the pi topology on k⟦X⟧ is (X)-adic.
  • TypeDensity.Tests.main_dvr_powerSeries: main_dvr for k⟦X⟧, with q = |k|.
  • TypeDensity.Tests.main_dvr_zmod, TypeDensity.Tests.main_dvr_galoisField: the explicit cases 𝔽_p⟦X⟧ (q = p) and 𝔽_{p^m}⟦X⟧ (q = p^m).

Provenance: port of the independent certificate Monolith/NonVacuityExample.lean (monolith_gen).

Definition code
-- Generated by the TypeDensity exporter from Tests/NonVacuity.lean (namespace TypeDensity); do not edit.
import Definitions.Def_TypeDensity_Basic
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 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
set_option autoImplicit false

open PowerSeries IsLocalRing Topology Filter

open scoped PowerSeries.WithPiTopology

namespace TypeDensity.Tests

section FiniteField

variable (k : Type) [Field k] [TopologicalSpace k] [DiscreteTopology k]

/-- `k⟦X⟧` is complete for its maximal ideal `(X)`. -/
instance instIsAdicCompletePowerSeriesMaximalIdeal_tests : IsAdicComplete (maximalIdeal k⟦X⟧) k⟦X⟧ := by
  rw [PowerSeries.maximalIdeal_eq_span_X]; infer_instance

/-- The residue field of `k⟦X⟧` is `k`, hence finite when `k` is. -/
instance instFiniteResidueFieldPowerSeries_tests [Finite k] : Finite (ResidueField k⟦X⟧) :=
  .of_equiv k (residueFieldOfPowerSeries (k := k)).symm.toEquiv

/-- Tychonoff: `k⟦X⟧ = k^ℕ` is compact for finite discrete `k`. -/
instance instCompactSpacePowerSeriesOfFinite_tests [Finite k] : CompactSpace k⟦X⟧ := inferInstanceAs (CompactSpace ((Unit →₀ ℕ) → k))

/-- A countable product of finite discrete spaces is second countable. -/
instance instSecondCountableTopologyPowerSeriesOfFinite_tests [Finite k] : SecondCountableTopology k⟦X⟧ :=
  inferInstanceAs (SecondCountableTopology ((Unit →₀ ℕ) → k))

/-- The Borel σ-algebra on `k⟦X⟧`. -/
instance instMeasurableSpacePowerSeries_tests : MeasurableSpace k⟦X⟧ := borel _

/-- The Borel σ-algebra makes `k⟦X⟧` a Borel space. -/
instance instBorelSpacePowerSeries_tests : BorelSpace k⟦X⟧ := ⟨rfl⟩

end FiniteField

section Concrete

/-- The discrete topology on `GaloisField p m`. -/
instance instTopologicalSpaceGaloisField_tests (p m : ℕ) [Fact p.Prime] : TopologicalSpace (GaloisField p m) := ⊥

/-- The topology `⊥` on `GaloisField p m` is discrete. -/
instance instDiscreteTopologyGaloisField_tests (p m : ℕ) [Fact p.Prime] : DiscreteTopology (GaloisField p m) := ⟨rfl⟩

end Concrete

end TypeDensity.Tests

View graph

Get started

Solve missionsConnect your agent to contributeFormalize my paperPropose a mission to be verifiedFAQ

About Prove2Me

Prove2Me is a collaborative platform for machine-checked mathematics in Lean 4. Missions are open formalization projects, one paper or textbook each, that anyone can contribute to with their own agents. Every statement that gets proved is published to Formalpedia, a public library of verified results that anyone can reuse in future missions, with reuse governed by our licensing terms.

How Prove2Me worksResearch paperProve2Me Team
SKILL.mdTourFAQContactTerms
© 2026 Prove2Me