Datasets:
path stringlengths 24 107 | module stringlengths 19 102 | theorem stringlengths 17 118 | prefix stringlengths 472 65.2k | statement stringlengths 96 6.3k | proof stringlengths 213 4.46k | proof_lines int64 10 74 | proof_length int64 172 3.76k | rev stringclasses 1
value | heartbeats int64 77 49.8k | image stringclasses 1
value | split stringclasses 1
value |
|---|---|---|---|---|---|---|---|---|---|---|---|
TauCeti/MeasureTheory/Function/MetricDerivative/Variation.lean | TauCeti.MeasureTheory.Function.MetricDerivative.Variation | AbsolutelyContinuousOnInterval.eVariationOn_eq_lintegral_metricDerivative | /-
Copyright (c) 2026 The Tau Ceti contributors. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: The Tau Ceti contributors
-/
module
public import TauCeti.MeasureTheory.Function.MetricDerivative.Basic
public import TauCeti.MeasureTheory.Integral.IntervalIntegral.Absolu... | /-- Total variation of an absolutely continuous metric-valued curve is its integrated metric
speed, for either orientation of the parameter interval. -/
theorem eVariationOn_eq_lintegral_metricDerivative (hγ : AbsolutelyContinuousOnInterval γ a b) :
eVariationOn γ (uIcc a b) = ∫⁻ t in uIoc a b, TauCeti.metricDeriva... | by
wlog hab : a ≤ b
· rw [uIcc_comm a b, uIoc_comm a b]
exact this hγ.symm (le_of_not_ge hab)
have hBV := hγ.boundedVariationOn'
let V := variationOnFromTo γ (uIcc a b) a
have hV : AbsolutelyContinuousOnInterval V a b :=
hγ.absolutelyContinuousOnInterval_variationOnFromTo
have hVmono : MonotoneOn V... | 38 | 1,823 | 75c8aed5fea63047615a25a9763fd5b68a86e891 | 1,165 | lean-compression:tauceti-75c8aed5fe-a608030cfc | train |
TauCeti/Analysis/Contour/Winding/AbsolutelyContinuous/Side.lean | TauCeti.Analysis.Contour.Winding.AbsolutelyContinuous.Side | AbsolutelyContinuousOnInterval.eventually_notMem_filledHull_of_hasDerivAt | /-
Copyright (c) 2026 The Tau Ceti contributors. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: The Tau Ceti contributors
-/
module
public import TauCeti.Analysis.Contour.Winding.AbsolutelyContinuous.Jordan
import Mathlib.Topology.Algebra.Group.Order
import TauCeti.An... | /-- **A transverse curve enters the outside on the side opposite to the orientation.** Let `γ` be
a simple closed absolutely continuous curve on `[a, b]`, with derivative `v` at an interior
parameter `t₀`. A curve `p` with `p s₀ = γ t₀` and right derivative `w` at `s₀` satisfying
`jordanSign γ a b * Im (conj v * w) < 0... | by
have hab : a < b := ht₀.1.trans ht₀.2
have hσ : -((jordanSign γ a b : ℤ) : ℝ) = 1 ∨ -((jordanSign γ a b : ℤ) : ℝ) = -1 := by
rcases hγ.jordanSign_eq_one_or_neg_one hab hclosed hinj with h | h <;> simp [h]
obtain ⟨hv, hseg⟩ := eventually_segment_subset_compl_of_hasDerivAt hγ hclosed hinj ht₀ hd
hσ hp0 ... | 14 | 846 | 75c8aed5fea63047615a25a9763fd5b68a86e891 | 13,272 | lean-compression:tauceti-75c8aed5fe-a608030cfc | train |
TauCeti/Analysis/Contour/LogDerivFTC.lean | TauCeti.Analysis.Contour.LogDerivFTC | AbsolutelyContinuousOnInterval.windingNumber_comp_eq_integral_logDeriv | /-
Copyright (c) 2026 The Tau Ceti contributors. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: The Tau Ceti contributors
-/
module
public import Mathlib.MeasureTheory.Function.AbsolutelyContinuous
public import TauCeti.Analysis.Calculus.LogDeriv
import TauCeti.Analys... | /-- **The winding number of the image curve is the logarithmic-derivative integral.** If `h` is
analytic and zero-free along an absolutely continuous curve `γ`, the composite `h ∘ γ` avoids the
origin and
`n_0(h ∘ γ) = (2πi)⁻¹ ∫_a^b γ' t · (logDeriv h) (γ t)`.
This is the substitution `w = h z` in the index integral ... | by
have hcont : ContinuousOn (h ∘ γ) (uIcc a b) := fun t ht =>
(hh t ht).continuousAt.comp_continuousWithinAt (hγ.continuousOn t ht)
-- The chain rule identifies the two integrands wherever `γ` is differentiable, so almost
-- everywhere.
have hae : ∀ᵐ t ∂(volume : Measure ℝ), t ∈ Ι a b →
deriv γ t • ... | 15 | 804 | 75c8aed5fea63047615a25a9763fd5b68a86e891 | 946 | lean-compression:tauceti-75c8aed5fe-a608030cfc | train |
TauCeti/NumberTheory/Padics/Measure/Mirabolic.lean | TauCeti.NumberTheory.Padics.Measure.Mirabolic | AbstractMeasure.boxtimesRep_diracQp | /-
Copyright (c) 2026 The Tau Ceti contributors. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: The Tau Ceti contributors
-/
module
public import TauCeti.GroupTheory.SpecificGroups.Affine.Topology
public import TauCeti.NumberTheory.Padics.MirabolicPsiModule
public imp... | /-- **`P(ℚ_p)` acts on Dirac measures through its affine action on `ℚ_p`**: `(a b; 0 1)` sends
the Dirac measure at `x` to the Dirac measure at `a x + b`. -/
theorem boxtimesRep_diracQp (g : AffineGroup ℚ_[p]) (x : ℚ_[p]) :
(mirabolicPsiModule p R).boxtimesRep g (diracQp R x) = diracQp R (g • x) | by
refine Subtype.ext (funext fun n ↦ ?_)
obtain ⟨m, l, h, hnm, hh⟩ := AffineGroup.exists_map_eq_padicPhi_pow_mul_mul_inv_pow g n
rw [MirabolicPsiModule.boxtimesRep_apply_coe _ _ hnm hh,
← MirabolicPsiModule.ψ_pow_sub_boxtimesQp_coe (diracQp R (g • x)) hnm]
congr 1
-- `h` sends `p^l x` to `p^m (g x)`.
... | 21 | 921 | 75c8aed5fea63047615a25a9763fd5b68a86e891 | 2,585 | lean-compression:tauceti-75c8aed5fe-a608030cfc | train |
TauCeti/NumberTheory/Padics/Measure/Units/Basic.lean | TauCeti.NumberTheory.Padics.Measure.Units.Basic | AbstractMeasure.map_unitsVal_restrictUnits | /-
Copyright (c) 2026 The Tau Ceti contributors. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: The Tau Ceti contributors
-/
module
public import TauCeti.NumberTheory.Padics.UnitLocus
public import TauCeti.NumberTheory.Padics.Measure.Clopen.Basic
public import TauCeti... | /-- Including an intrinsic restriction is the ambient unit projector. -/
@[simp]
theorem map_unitsVal_restrictUnits (μ : D(ℤ_[p], R)) :
map ⟨Units.val, Units.continuous_val⟩ (restrictUnits μ) = unitRestriction μ | by
ext f
rw [map_apply, restrictUnits_apply, unitRestriction_apply]
congr 1
ext x
by_cases hx : IsUnit x
· have hp : ¬(p : ℤ_[p]) ∣ x := by rwa [← PadicInt.not_isUnit_iff_dvd, not_not]
rw [zeroExtendClopen_apply_mem _ _ ((PadicInt.mem_unitsClopen p).mpr hx)]
simp [hp]
· have hp : (p : ℤ_[p]) ∣ x ... | 11 | 403 | 75c8aed5fea63047615a25a9763fd5b68a86e891 | 1,796 | lean-compression:tauceti-75c8aed5fe-a608030cfc | train |
TauCeti/AlgebraicTopology/SimplicialComplex/Zeeman.lean | TauCeti.AlgebraicTopology.SimplicialComplex.Zeeman | AbstractSimplicialComplex.contractible2Complex_standardOneSimplex | /-
Copyright (c) 2026 The Tau Ceti contributors. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: The Tau Ceti contributors
-/
module
public import Mathlib.Analysis.Convex.Contractible
public import TauCeti.AlgebraicTopology.SimplicialComplex.Collapse.Triangulation
publ... | /-- The standard one-simplex gives a concrete non-void witness for the `≤ 2` dimension bound. -/
theorem contractible2Complex_standardOneSimplex :
Contractible2Complex (⊤ : AbstractSimplicialComplex (Fin 2)) | by
let e := realizationOneSimplexHomeomorphUnitInterval
have hreal : ContractibleSpace (Realization (⊤ : AbstractSimplicialComplex (Fin 2))) :=
e.contractibleSpace
refine ⟨?_, ?_, hreal⟩
· have hfaces :
(⊤ : AbstractSimplicialComplex (Fin 2)).faces =
(⊤ : PreAbstractSimplicialComplex (Fin... | 18 | 812 | 75c8aed5fea63047615a25a9763fd5b68a86e891 | 251 | lean-compression:tauceti-75c8aed5fe-a608030cfc | train |
TauCeti/AlgebraicTopology/SimplicialComplex/Subdivision/Edgewise/ContDiff.lean | TauCeti.AlgebraicTopology.SimplicialComplex.Subdivision.Edgewise.ContDiff | AbstractSimplicialComplex.exists_contDiffOn_edgewiseSubdivisionRealizationMap_faceInclusion | /-
Copyright (c) 2026 The Tau Ceti contributors. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: The Tau Ceti contributors
-/
module
public import Mathlib.Analysis.Calculus.ContDiff.Defs
public import Mathlib.Analysis.Convex.StdSimplex
public import TauCeti.AlgebraicTo... | /-- A map of `|K|` which is `Cⁿ` on every closed simplex of `K`, read on the `k`-th edgewise
subdivision through the canonical map onto `|K|`, is `Cⁿ` on every closed simplex of the
subdivision. Being `Cⁿ` on a closed simplex means being, in barycentric coordinates, the
restriction of a map which is `Cⁿ` within the sta... | by
-- The simplex `ρ` lies in the face `σ` of `K` spanned by the entries of its vertices.
let σ : Face K := ⟨_, biUnion_image_mem_of_mem_edgewiseSubdivision ρ.property⟩
have hρσ : ∀ u ∈ ρ.val, ∀ l, u.val l ∈ σ.val := fun u hu l =>
mem_biUnion.mpr ⟨u, hu, mem_image_of_mem _ (mem_univ l)⟩
obtain ⟨F, hFf, hF⟩... | 24 | 1,065 | 75c8aed5fea63047615a25a9763fd5b68a86e891 | 2,707 | lean-compression:tauceti-75c8aed5fe-a608030cfc | train |
TauCeti/AlgebraicTopology/SimplicialComplex/Realization/Product/Existence.lean | TauCeti.AlgebraicTopology.SimplicialComplex.Realization.Product.Existence | AbstractSimplicialComplex.exists_realization_orderedProd | /-
Copyright (c) 2026 The Tau Ceti contributors. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: The Tau Ceti contributors
-/
module
public import TauCeti.Data.Finsupp.OrderedCoupling.Existence
public import TauCeti.AlgebraicTopology.SimplicialComplex.Product
public im... | /-- Every pair of realization points has a lift to the ordered product under the two
canonical realization projections. -/
theorem exists_realization_orderedProd (K : AbstractSimplicialComplex α)
(L : AbstractSimplicialComplex β) (x : Realization K) (y : Realization L) :
∃ z : Realization (orderedProd K L),
... | by
obtain ⟨w, hw, hchain, hwx, hwy⟩ := Finsupp.exists_nonneg_isChain_mapDomain x.val y.val
(Realization.nonneg K x) (Realization.nonneg L y)
((Realization.sum_eq_one K x).trans (Realization.sum_eq_one L y).symm)
have hface : w.support ∈ orderedProd K L := by
rw [mem_orderedProd_iff]
refine ⟨?_, ?_,... | 26 | 1,242 | 75c8aed5fea63047615a25a9763fd5b68a86e891 | 867 | lean-compression:tauceti-75c8aed5fe-a608030cfc | train |
TauCeti/AlgebraicTopology/SimplicialComplex/Realization/Finite.lean | TauCeti.AlgebraicTopology.SimplicialComplex.Realization.Finite | AbstractSimplicialComplex.isCompact_setOf_support_mem | /-
Copyright (c) 2026 The Tau Ceti contributors. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: The Tau Ceti contributors
-/
module
public import TauCeti.AlgebraicTopology.SimplicialComplex.Realization.Subcomplex
public import Mathlib.Analysis.Normed.Group.Constructio... | /-- A finite subcomplex occupies a compact subset of the weak realization. -/
theorem isCompact_setOf_support_mem {L : PreAbstractSimplicialComplex ι}
(hL : L ≤ K.toPreAbstractSimplicialComplex) (hfin : L.faces.Finite) :
IsCompact {x : Realization K | x.val.support ∈ L} | by
let C : L.faces → Set (Realization K) :=
fun σ => range (faceInclusion K ⟨σ.val, hL σ.property⟩)
have : Finite L.faces := hfin.to_subtype
have heq : {x : Realization K | x.val.support ∈ L} = ⋃ σ, C σ := by
ext x
constructor
· intro hx
exact mem_iUnion.mpr ⟨⟨x.val.support, hx⟩,
⟨⟨... | 16 | 589 | 75c8aed5fea63047615a25a9763fd5b68a86e891 | 281 | lean-compression:tauceti-75c8aed5fe-a608030cfc | train |
TauCeti/AlgebraicTopology/SimplicialComplex/Subdivision/Iterated/Basic.lean | TauCeti.AlgebraicTopology.SimplicialComplex.Subdivision.Iterated.Basic | AbstractSimplicialComplex.iteratedBarycentricSubdivisionRealizationHomeomorph_val_eq_sum | /-
Copyright (c) 2026 The Tau Ceti contributors. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: The Tau Ceti contributors
-/
module
public import TauCeti.AlgebraicTopology.SimplicialComplex.Realization.SimplicialApproximation
public import TauCeti.AlgebraicTopology.Si... | /-- **`b_n` is affine on every closed simplex of `sd^n K`.** If the support of `x` lies in `ρ`,
then the barycentric coordinates of `b_n x` are the combination, with the coordinates of `x`, of
those of the images of the vertices in `ρ`. -/
theorem iteratedBarycentricSubdivisionRealizationHomeomorph_val_eq_sum (n : ℕ)
... | by
induction n with
| zero =>
have h {y : Realization K} {s : Finset ι} (hy : y.val.support ⊆ s) :
y.val = ∑ w ∈ s, y.val w • (vertex K w).val := by
simp only [vertex_val, Finsupp.smul_single_one]
conv_lhs => rw [← Finsupp.sum_single y.val]
exact Finsupp.sum_of_support_subset _ hy _ f... | 38 | 2,073 | 75c8aed5fea63047615a25a9763fd5b68a86e891 | 1,733 | lean-compression:tauceti-75c8aed5fe-a608030cfc | train |
TauCeti/AlgebraicTopology/SimplicialComplex/Realization/Coordinates.lean | TauCeti.AlgebraicTopology.SimplicialComplex.Realization.Coordinates | AbstractSimplicialComplex.mem_range_standardSimplex_coe_iff | /-
Copyright (c) 2026 The Tau Ceti contributors. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: The Tau Ceti contributors
-/
module
public import TauCeti.AlgebraicTopology.SimplicialComplex.Realization.Basic
public import Mathlib.Analysis.Normed.Group.Constructions
pu... | /-- On a finite vertex type, a coordinate vector is the coordinate vector of a point of the closed
simplex on `σ` exactly when it is nonnegative, vanishes off `σ`, and sums to one. -/
theorem mem_range_standardSimplex_coe_iff {σ : Finset ι} {z : ι → ℝ} :
z ∈ range (fun x : StandardSimplex σ => (x.val : ι → ℝ)) ↔
... | by
constructor
· rintro ⟨x, rfl⟩
refine ⟨StandardSimplex.nonneg x, fun i hi => Finsupp.notMem_support_iff.mp fun h =>
hi (StandardSimplex.support_subset x h), ?_⟩
have hsum := StandardSimplex.sum_eq_one x
rwa [Finsupp.sum_fintype _ _ (fun _ => rfl)] at hsum
· rintro ⟨hnn, hzero, hsum⟩
refin... | 12 | 526 | 75c8aed5fea63047615a25a9763fd5b68a86e891 | 1,131 | lean-compression:tauceti-75c8aed5fe-a608030cfc | train |
TauCeti/Topology/Circle/AddCircle.lean | TauCeti.Topology.Circle.AddCircle | AddCircle.exists_forall_eq_add_pos | /-
Copyright (c) 2026 The Tau Ceti contributors. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: The Tau Ceti contributors
-/
module
public import Mathlib.Analysis.SpecialFunctions.Complex.Circle
public import Mathlib.Topology.Algebra.ContinuousMonoidHom
import TauCeti... | /-- **Maps moving the circle forward.** A continuous family `ψ (θ, ·)` of maps of `AddCircle T`,
equal to the identity at `θ = 0`, with `ψ (-θ, ·)` a right inverse of `ψ (θ, ·)`, and without fixed
points for small `θ > 0`, moves every point forward by a continuous amount `d τ ∈ (0, δ)` at some
time `c ≠ 0` satisfying a... | by
wlog hδT : δ ≤ T / 2 generalizing δ
· obtain ⟨c, hc0, hcP, d, hdc, hd⟩ := this (half_pos hT.out) le_rfl
exact ⟨c, hc0, hcP, d, hdc, fun τ ↦
⟨⟨(hd τ).1.1, (hd τ).1.2.trans (not_le.1 hδT)⟩, (hd τ).2⟩⟩
let N : Set (AddCircle T) := (↑) '' Ioo (-δ) δ
have hnear : ∀ᶠ c in 𝓝 (0 : ℝ), ∀ τ ∈ (univ : Set (... | 43 | 2,394 | 75c8aed5fea63047615a25a9763fd5b68a86e891 | 3,459 | lean-compression:tauceti-75c8aed5fe-a608030cfc | train |
TauCeti/Dynamics/TorusAutomorphism.lean | TauCeti.Dynamics.TorusAutomorphism | AddCircle.isNondegenerateUpToPeriod_generalLinearGroup_smul_iff | /-
Copyright (c) 2026 The Tau Ceti contributors. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: The Tau Ceti contributors
-/
module
public import TauCeti.AlgebraicTopology.Singular.LefschetzNumber.Torus
public import TauCeti.Geometry.Manifold.Instances.AddCircle.Torus... | /-- **Nondegeneracy up to a period.** The toral automorphism `x ↦ A • x` is nondegenerate up to
period `N` exactly when `det (1 - Aᵏ) ≠ 0` for every `0 < k ≤ N`. -/
theorem isNondegenerateUpToPeriod_generalLinearGroup_smul_iff (A : GL ι ℤ) (N : ℕ) :
IsNondegenerateUpToPeriod (ModelWithCorners.pi fun _ : ι ↦ 𝓘(ℝ))
... | by
simp only [isNondegenerateUpToPeriod_iff, smul_iterate, IsPeriodicPt, IsFixedPt]
constructor
· intro h k hk hkN
rw [← Units.val_pow_eq_pow_val]
-- The point `0` is fixed by every iterate.
exact (isNondegenerateFixedPt_generalLinearGroup_smul_iff p (A ^ k) (smul_zero _)).1
(h hk hkN (smul_zer... | 11 | 405 | 75c8aed5fea63047615a25a9763fd5b68a86e891 | 5,756 | lean-compression:tauceti-75c8aed5fe-a608030cfc | train |
TauCeti/Geometry/Manifold/Orientation/AddCircle.lean | TauCeti.Geometry.Manifold.Orientation.AddCircle | AddCircle.orientation_eq_isOrientedAtlas_orientation | /-
Copyright (c) 2026 The Tau Ceti contributors. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: The Tau Ceti contributors
-/
module
public import TauCeti.Geometry.Manifold.DifferentialForm.AddCircle
public import TauCeti.Geometry.Manifold.Orientation.Atlas
public impo... | /-- The positive orientation of `AddCircle p` is the orientation of its oriented atlas, in which
every chart carries the tangent orientation to the orientation of `ℝ` in which `1` is
positive. -/
theorem orientation_eq_isOrientedAtlas_orientation {n : ℕ∞ω} [NeZero n] :
AddCircle.orientation p =
(isOrientedAtl... | by
ext x
obtain ⟨L, hL, hmap⟩ := (isOrientedAtlas_atlas 𝓘(ℝ) n (AddCircle p)).orientation_spec
(Module.Basis.singleton (Fin 1) ℝ).orientation (by simp) (chart_mem_atlas ℝ x)
(mem_chart_source ℝ x)
-- The chart at `x` is a local real lift, so its derivative `L` is the identity.
have hL' (v : TangentSpa... | 16 | 726 | 75c8aed5fea63047615a25a9763fd5b68a86e891 | 1,271 | lean-compression:tauceti-75c8aed5fe-a608030cfc | train |
TauCeti/GroupTheory/Divisible/Classification.lean | TauCeti.GroupTheory.Divisible.Classification | AddEquiv.lift_rank_quotient_torsion_eq_lift_mk | /-
Copyright (c) 2026 The Tau Ceti contributors. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: The Tau Ceti contributors
-/
module
public import TauCeti.GroupTheory.Divisible.Prufer
public import TauCeti.GroupTheory.Divisible.Splitting
public import Mathlib.LinearAlg... | /-- In any Prüfer decomposition, the number of rational copies is the dimension of the
torsion-free quotient. -/
theorem _root_.AddEquiv.lift_rank_quotient_torsion_eq_lift_mk
{A : Type u} {ι₀ : Type v} {ι : Nat.Primes → Type w} [AddCommGroup A]
[Module ℚ (A ⧸ AddCommGroup.torsion A)]
(e : A ≃+ (ι₀ →₀ ℚ) × (... | by
let π := (AddMonoidHom.fst (ι₀ →₀ ℚ) _).comp e.toAddMonoidHom
have hsurj : Function.Surjective π := by
intro x
exact ⟨e.symm (x, 0), by simp [π]⟩
have hker : AddCommGroup.torsion A = π.ker := by
ext x
rw [AddCommGroup.mem_torsion, AddMonoidHom.mem_ker,
← e.injective.isOfFinAddOrder_iff (... | 16 | 757 | 75c8aed5fea63047615a25a9763fd5b68a86e891 | 2,674 | lean-compression:tauceti-75c8aed5fe-a608030cfc | train |
TauCeti/GroupTheory/Index/PrimaryComponent.lean | TauCeti.GroupTheory.Index.PrimaryComponent | AddMonoidHom.index_range_mul_card_primaryComponent | /-
Copyright (c) 2026 The Tau Ceti contributors. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: The Tau Ceti contributors
-/
module
public import Mathlib.GroupTheory.Torsion
public import Mathlib.GroupTheory.Index
import Mathlib.Data.Fintype.Pigeonhole
import TauCeti... | /-- **The cokernel of a homomorphism invertible up to `n`**: let `f : A →+ B` and `g : B →+ A`
satisfy `g ∘ f = n` and `f ∘ g = n`, and suppose that `n` acts surjectively on a subgroup of
finite index of `B`. Then
`[B : f(A)] · #A[n^∞] = #B[n^∞] · #ker(f)`,
where `A[n^∞]` and `B[n^∞]` are the `n`-primary components. ... | by
set T := AddCommGroup.primaryComponent B n
-- the inverse image of `B[n^∞]` is `A[n^∞]`
have hcomap : T.comap f = AddCommGroup.primaryComponent A n := by
ext a
rw [AddSubgroup.mem_comap, AddCommGroup.mem_primaryComponent,
AddCommGroup.mem_primaryComponent]
refine ⟨fun ⟨k, hk⟩ ↦ ⟨k + 1, ?_⟩, ... | 20 | 850 | 75c8aed5fea63047615a25a9763fd5b68a86e891 | 1,276 | lean-compression:tauceti-75c8aed5fe-a608030cfc | train |
TauCeti/NumberTheory/ThetaLift/Direction/FiniteValuation.lean | TauCeti.NumberTheory.ThetaLift.Direction.FiniteValuation | AddValuation.exists_direction_matrices_with_det_valuation_le_finite_budget | /-
Copyright (c) 2026 The Tau Ceti contributors. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: The Tau Ceti contributors
-/
module
public import TauCeti.NumberTheory.ThetaLift.Direction.Matrices
public import TauCeti.Algebra.Order.WithTop.Nsmul
import Mathlib.Algebra... | /-- For a nonnegative additive valuation into `WithTop F`, if the modulus `π` has finite
value `w`, the simultaneous direction matrices can be chosen with weighted determinant
valuation at most `w` times the sum of the normalized deductions in `F`. -/
theorem exists_direction_matrices_with_det_valuation_le_finite_budge... | by
obtain ⟨g, hg, hdvd⟩ :=
exists_direction_matrices_with_dvd_frobenius_pairings hp hπ s e partner mark a Y d hd hroot
have hval (i : I) (hi : i ∈ s) : v (d i) ≤ ↑(w / (p : F) ^ e i) := by
have hle := AddValuation.map_le_map_of_dvd hv (hd i hi).dvd
rw [v.map_pow, hw] at hle
have hq : 0 < p ^ e i :=... | 16 | 728 | 75c8aed5fea63047615a25a9763fd5b68a86e891 | 2,229 | lean-compression:tauceti-75c8aed5fe-a608030cfc | train |
TauCeti/NumberTheory/ThetaLift/Direction/Matrices.lean | TauCeti.NumberTheory.ThetaLift.Direction.Matrices | AddValuation.exists_direction_matrices_with_det_valuation_le_frobenius_budget | /-
Copyright (c) 2026 The Tau Ceti contributors. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: The Tau Ceti contributors
-/
module
public import TauCeti.NumberTheory.ThetaLift.Direction.Congruences
public import TauCeti.RingTheory.Valuation.AddValuation
public import... | /-- The direction changes satisfying all nonexempt congruences for `s` can be chosen
with total weighted determinant valuation at most `v π` times the normalized deduction.
The power `d i ^ (p ^ e i)` need only be associated to `π` for each `i ∈ s`. -/
theorem exists_direction_matrices_with_det_valuation_le_frobenius_b... | by
obtain ⟨g, hg, hdvd⟩ :=
exists_direction_matrices_with_dvd_frobenius_pairings hp hπ s e partner mark a Y d hd hroot
refine ⟨g, hg, ?_⟩
have hnonneg (x : R) : 0 ≤ v x := zero_le
have hle := AddValuation.map_le_map_of_dvd hnonneg hdvd
simp only [v.map_prod, v.map_pow] at hle
refine hle.trans_eq ?_
s... | 16 | 805 | 75c8aed5fea63047615a25a9763fd5b68a86e891 | 1,239 | lean-compression:tauceti-75c8aed5fe-a608030cfc | train |
TauCeti/RepresentationTheory/Quiver/Zigzag/Skew/VertexFixing.lean | TauCeti.RepresentationTheory.Quiver.Zigzag.Skew.VertexFixing | AlgEquiv.existsUnique_unit_smul_of_vertexFixing | /-
Copyright (c) 2026 The Tau Ceti contributors. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: The Tau Ceti contributors
-/
module
public import TauCeti.RepresentationTheory.Quiver.Zigzag.Gauge
public import TauCeti.RepresentationTheory.Quiver.Zigzag.Skew.Basis
/-!
... | /-- **A vertex-fixing isomorphism rescales arrows by units.** An algebra isomorphism between the
relation quotients of two parameters that fixes every vertex idempotent multiplies each arrow by a
unique unit. -/
theorem _root_.AlgEquiv.existsUnique_unit_smul_of_vertexFixing
(φ : skewZigzagQuotient k G c ≃ₐ[k] skewZ... | by
obtain ⟨r, hr⟩ := exists_smul_of_algEquiv φ hφ e
have hφsymm : ∀ i : V, φ.symm (skewZigzagMk k G c' (vertexIdempotent k (vertex G i))) =
skewZigzagMk k G c (vertexIdempotent k (vertex G i)) := fun i => by
rw [← hφ i, φ.symm_apply_apply]
obtain ⟨s, hs⟩ := exists_smul_of_algEquiv φ.symm hφsymm e
hav... | 18 | 1,105 | 75c8aed5fea63047615a25a9763fd5b68a86e891 | 7,726 | lean-compression:tauceti-75c8aed5fe-a608030cfc | train |
TauCeti/RingTheory/Ideal/Maps.lean | TauCeti.RingTheory.Ideal.Maps | AlgEquiv.map_eq_span_singleton_and_annihilator | /-
Copyright (c) 2026 The Tau Ceti contributors. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: The Tau Ceti contributors
-/
module
public import Mathlib.RingTheory.Ideal.Maps
import Mathlib.Algebra.Algebra.Tower
import Mathlib.LinearAlgebra.Finsupp.LinearCombination
... | /-- If the extensions of two ideals to `L'` are a principal ideal and its annihilator, the
extensions to an equivalent `A`-algebra `L` have the same form. -/
theorem map_eq_span_singleton_and_annihilator {A L L' : Type*} [CommSemiring A]
[Semiring L] [Semiring L'] [Algebra A L] [Algebra A L'] (e : L ≃ₐ[A] L')
{... | by
have hmap (𝔠 : Ideal A) :
𝔠.map (algebraMap A L) = (𝔠.map (algebraMap A L')).comap e.toRingEquiv := by
rw [← e.symm.toAlgHom.comp_algebraMap, ← Ideal.map_map, toRingHom_toAlgHom,
Ideal.map_comap_of_equiv, symm_toRingEquiv, RingEquiv.symm_symm]
have hspan : (Ideal.span {a'}).comap e.toRingEqui... | 18 | 789 | 75c8aed5fea63047615a25a9763fd5b68a86e891 | 872 | lean-compression:tauceti-75c8aed5fe-a608030cfc | train |
TauCeti/RingTheory/Smooth/IntegralClosure.lean | TauCeti.RingTheory.Smooth.IntegralClosure | AlgHom.bijective_of_bijective_tensorProduct | /-
Copyright (c) 2026 Taylor Dupuy, Thomas Tucker, Zhuoran Wang. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Taylor Dupuy, Thomas Tucker, Zhuoran Wang
-/
module
public import Mathlib.RingTheory.Smooth.IntegralClosure
/-!
# Smooth base change preserves integral clo... | /-- **Smooth base-change descent for bijectivity.** If `R` is integrally closed in `F`, `B` is
smooth over `R`, `A` is integral over `R` with injective base-change map
`includeRight : A →ₐ[R] F ⊗[R] A`, and `ψ : B →ₐ[R] A` induces a bijection on `F`-fibres, then
`ψ` is bijective.
In particular, when `A` is flat over `... | by
have hinjRF : Function.Injective (algebraMap R F) := (isIntegrallyClosedIn_iff.mp ‹_›).1
have hinjBL : Function.Injective (Algebra.TensorProduct.includeRight : B →ₐ[R] F ⊗[R] B) :=
Algebra.TensorProduct.includeRight_injective hinjRF
refine ⟨fun b₁ b₂ hb ↦ hinjBL (hψF.1 ?_), fun x ↦ ?_⟩
· rw [Algebra.Ten... | 17 | 1,065 | 75c8aed5fea63047615a25a9763fd5b68a86e891 | 1,770 | lean-compression:tauceti-75c8aed5fe-a608030cfc | train |
Lean Compression (Tau Ceti)
Lean 4 proofs for a task where a model makes them shorter while they still prove exactly what
they proved before. Lean decides every grade; no model judges anything. The code that makes the data
and grades the task is in competition/lean-compression/ of
Mantissagithub/halo, made for the WhiteCircle Halo
competition.
Everything comes from Tau Ceti (Apache 2.0), an
AI-written mathematics library on top of Mathlib, at commit
75c8aed5fea63047615a25a9763fd5b68a86e891 (Lean v4.37.0-rc1). There are two subsets:
| subset | rows | the task |
|---|---|---|
theorems (default) |
2,381: train 2,132, dev 99, test 150 |
shorten one proof; everything before it in its file is frozen |
files |
52 files, with 599 public theorems between them | shorten a whole file: every proof, and its private theorems |
from datasets import load_dataset
test = load_dataset("Pradheep1647/lean-compression-tauceti", "theorems", split="test")
files = load_dataset("Pradheep1647/lean-compression-tauceti", "files", split="train")
The sections below cover the files subset first, then the theorems subset.
What may change
Each file is cut into frozen text, which a shortened file must keep exactly and in order, and free text, which it may rewrite as it likes:
| frozen | everything that is not a theorem (imports, open, variable, namespaces, definitions, instances, structures, notation), and each public theorem's docstring, attributes and statement, up to its := |
| free | each public theorem's proof, and every private theorem whole (it may be rewritten, merged with others or deleted) |
A definition fixes what a statement means, and an attribute such as @[simp] changes how other
files see a theorem, so neither may move. A private theorem is invisible outside its file, so
removing one breaks nothing.
"Public" is meant in Lean's module-system sense (inside a public section, not private), and it
was checked against Lean itself: every listed theorem is public to Lean, none the cut calls private
is, and all of them use only propext, Quot.sound and Classical.choice.
Grading
How the environment grades a shortened file (the whole-file grader is still being built in the repo; the single-theorem version is done):
A shortened file scores 0 unless all of these hold:
- its frozen pieces all appear, unchanged and in order;
- it compiles, and every public theorem uses only the three standard axioms;
- it uses at most twice the original's
heartbeats(counted for the whole file, see below); lake comparator --paranoidaccepts it: every listed theorem proves the same statement as in the original, and Lean's kernel, nanoda, lean4lean, con-leche and con-ron all agree.
Otherwise its score is 1 - new_free_length / free_length, never below 0. The original file itself
scores exactly 0.
Columns
| column | |
|---|---|
id, module, path |
the file's module name and its path in the repo |
repo, rev, lean_toolchain |
where the file comes from |
file |
the original file |
public_theorems |
full names of the theorems a shortened file must still prove, with the same statement |
frozen |
the frozen pieces, in file order, surrounding whitespace stripped |
free_length |
the free text's length, comments removed and whitespace collapsed (the score's denominator) |
file_length |
the whole file's length, counted the same way |
heartbeats |
the whole file's heartbeats, in #count_heartbeats units |
image |
the Prime sandbox image (prime/pradheep/<image>) with the file's imports already built |
heartbeats is counted with synchronous elaboration (set_option Elab.async false), reading Lean's
heartbeat counter after the imports and at the end of the file. With asynchronous elaboration the
proofs run on other threads and the count misses them. The same file gives the same count every
run, so the cap can't fail a correct file by chance.
Single theorems (theorems)
The single-theorem version of the task: the model shortens one proof, and everything before it in its file is frozen. 2,381 theorems from the same Tau Ceti commit, each from a different file, across 30 subject areas.
| split | theorems | |
|---|---|---|
train |
2,132 | for training |
dev |
99 | for tuning, never trained on |
test |
150 | the eval |
from datasets import load_dataset
test = load_dataset("Pradheep1647/lean-compression-tauceti", "theorems", split="test")
How they were made, with the scripts in the repository:
generator/select.py --count 3000(seed 0) takes one tactic proof of 10 to 80 lines per file, with its docstring, attributes and... inlines, skippingprivatetheorems and proofs withwhere,termination_byor pattern matching. The first 2,400 were checked.generator/measure.pycompiles each theorem in its file context, in a sandbox with the file's imports downloaded from Tau Ceti's build cache. It keeps a theorem only if it compiles, its full name resolves, it uses onlypropext,Quot.soundandClassical.choice, and plain automation (first | grind | simp_all | aesopwith 400,000 heartbeats) does not prove it. It records the proof's heartbeats with#count_heartbeats in. 2,399 of 2,400 passed; the one drop was proved by automation.generator/split.py(seed 0) drops 18 proofs over 50,000 heartbeats. It drawstestanddevfrom proofs of at most 20,000 heartbeats, so the eval reruns fast, with each subject area taking its share. Atestordevtheorem whose statement nearly matches atrainone (similarity 0.9 or more, names and comments removed) moves totrain; one did.
Every theorem comes from its own file, so no file has theorems in two splits.
| column | |
|---|---|
theorem |
the theorem's full Lean name |
module, path, rev |
the file it comes from |
prefix |
the file up to the theorem (imports, open, variable, earlier declarations), frozen |
statement |
the theorem's docstring, attributes and statement, up to its :=, frozen |
proof |
the original proof, the part to shorten |
proof_lines, proof_length |
the proof's line count, and its length with comments removed and whitespace collapsed (the score's denominator) |
heartbeats |
the original proof's heartbeats, from #count_heartbeats in; a shorter proof may use at most twice this |
image |
the Prime sandbox image (prime/pradheep/<image>) the theorems were checked on |
split |
train, dev or test |
- Downloads last month
- 73