Dataset Preview
Duplicate
The full dataset viewer is not available (click to read why). Only showing a preview of the rows.
The dataset generation failed
Error code:   DatasetGenerationError
Exception:    CastError
Message:      Couldn't cast
id: string
split: string
formal_statement: string
header: string
informal_stmt: string
informal_proof: string
completion: string
source: string
prompt: string
to
{'prompt': Value('string'), 'completion': Value('string'), 'source': Value('string')}
because column names don't match
Traceback:    Traceback (most recent call last):
                File "/usr/local/lib/python3.14/site-packages/datasets/builder.py", line 1835, in _prepare_split_single
                  for key, table in generator:
                                    ^^^^^^^^^
                File "/src/services/worker/src/worker/job_runners/config/parquet_and_info.py", line 621, in wrapped
                  for item in generator(*args, **kwargs):
                              ~~~~~~~~~^^^^^^^^^^^^^^^^^
                File "/usr/local/lib/python3.14/site-packages/datasets/packaged_modules/json/json.py", line 373, in _generate_tables
                  self._cast_table(pa_table, json_field_paths=json_field_paths),
                  ~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
                File "/usr/local/lib/python3.14/site-packages/datasets/packaged_modules/json/json.py", line 132, in _cast_table
                  pa_table = table_cast(pa_table, self.info.features.arrow_schema)
                File "/usr/local/lib/python3.14/site-packages/datasets/table.py", line 2394, in table_cast
                  return cast_table_to_schema(table, schema)
                File "/usr/local/lib/python3.14/site-packages/datasets/table.py", line 2322, in cast_table_to_schema
                  raise CastError(
                  ...<3 lines>...
                  )
              datasets.table.CastError: Couldn't cast
              id: string
              split: string
              formal_statement: string
              header: string
              informal_stmt: string
              informal_proof: string
              completion: string
              source: string
              prompt: string
              to
              {'prompt': Value('string'), 'completion': Value('string'), 'source': Value('string')}
              because column names don't match
              
              The above exception was the direct cause of the following exception:
              
              Traceback (most recent call last):
                File "/src/services/worker/src/worker/job_runners/config/parquet_and_info.py", line 1379, in compute_config_parquet_and_info_response
                  parquet_operations, partial, estimated_dataset_info = stream_convert_to_parquet(
                                                                        ~~~~~~~~~~~~~~~~~~~~~~~~~^
                      builder, max_dataset_size_bytes=max_dataset_size_bytes
                      ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
                  )
                  ^
                File "/src/services/worker/src/worker/job_runners/config/parquet_and_info.py", line 956, in stream_convert_to_parquet
                  builder._prepare_split(split_generator=splits_generators[split], file_format="parquet")
                  ~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
                File "/usr/local/lib/python3.14/site-packages/datasets/builder.py", line 1702, in _prepare_split
                  for job_id, done, content in self._prepare_split_single(
                                               ~~~~~~~~~~~~~~~~~~~~~~~~~~^
                      gen_kwargs=gen_kwargs, job_id=job_id, **_prepare_split_args
                      ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
                  ):
                  ^
                File "/usr/local/lib/python3.14/site-packages/datasets/builder.py", line 1887, in _prepare_split_single
                  raise DatasetGenerationError("An error occurred while generating the dataset") from e
              datasets.exceptions.DatasetGenerationError: An error occurred while generating the dataset

Need help to make the dataset viewer work? Make sure to review how to configure the dataset viewer, and open a discussion for direct support.

prompt
string
completion
string
source
string
Complete this Lean 4 proof. Reply with ONLY the tactic proof. def cone (P : ProfiniteGrp.{u}) : Limits.Cone (diagram P) where pt :=
P π := { app := proj } @[to_additive ] noncomputable def isLimitCone (P : ProfiniteGrp.{u}) : Limits.IsLimit P.cone := Limits.IsLimit.ofIsoLimit (limitConeIsLimit _) <| .symm <| Limits.Cone.ext (isoLimittoFiniteQuotientFunctor _) fun _ => rfl end ProfiniteGrp
mathlib:def
Complete this Lean 4 proof. Reply with ONLY the tactic proof. lemma isRegular_of_smul_left_injective {m : M'} (inj : Function.Injective fun r : R ↦ r • m) (s : S) : IsRegular (s : R) := by
(Commute.isRegular_iff (Commute.all _)).mpr fun r r' eq ↦ by have := congr($eq • m) simp_rw [mul_smul, ← Submonoid.smul_def, smul_inj f] at this exact inj this noncomputable def mk' (m : M) (s : S) : M' := fromLocalizedModule S f (LocalizedModule.mk m s)
mathlib:lemma
Complete this Lean 4 proof. Reply with ONLY the tactic proof. theorem id_comp (f : EsakiaHom α β) : (EsakiaHom.id β).comp f = f := by
ext fun _ => rfl @[simp]
mathlib:theorem
Complete this Lean 4 proof. Reply with ONLY the tactic proof. lemma mFourier_single [DecidableEq d] (z : d → AddCircle (1 : ℝ)) (i : d) : mFourier (Pi.single i 1) z = fourier 1 (z i) := by
by simp_rw [mFourier, ContinuousMap.coe_mk] have := Finset.prod_mul_prod_compl {i} (fun j ↦ fourier ((Pi.single i (1 : ℤ) : d → ℤ) j) (z j)) rw [Finset.prod_singleton, Finset.prod_congr rfl (fun j hj ↦ ?_)] at this · rw [← this, Finset.prod_const_one, mul_one, Pi.single_eq_same] · rw [Finset.mem_compl, Finset...
mathlib:lemma
Complete this Lean 4 proof. Reply with ONLY the tactic proof. def restrict (f : C(α, β)) : C(s, β) where toFun :=
f ∘ ((↑) : s → α) @[simp]
mathlib:def
Complete this Lean 4 proof. Reply with ONLY the tactic proof. lemma sup_mul_right {β} [SemilatticeSup β] [OrderBot β] (s t : Finset α) (f : α → β) : sup (s * t) f = sup t fun y ↦ sup s (f <| · * y) := by
sup_image₂_right .. @[to_additive (attr := simp (default + 1))]
mathlib:lemma
Complete this Lean 4 proof. Reply with ONLY the tactic proof. theorem join_cons (s : WSeq α) (S) : join (cons s S) = think (append s (join S)) := by
by simp only [join, think] dsimp only [(· <$> ·)] simp [cons, append] @[simp]
mathlib:theorem
Complete this Lean 4 proof. Reply with ONLY the tactic proof. lemma IsIndContained.of_isEmpty [IsEmpty V] : G ⊴ H := by
⟨{ toFun := isEmptyElim inj' := isEmptyElim map_rel_iff' := fun {a} ↦ isEmptyElim a }⟩
mathlib:lemma
Complete this Lean 4 proof. Reply with ONLY the tactic proof. theorem determinantalIdeal_le_iff {J : Ideal (MvPolynomial (m × n) R)} : determinantalIdeal R m n t ≤ J ↔ ∀ (row : t → m) (col : t → n), Matrix.mvPolynomialMinor R row col ∈ J := by
by simp [determinantalIdeal, Ideal.span_le, determinantalMinors, Set.range_subset_iff] variable (R m n t)
mathlib:theorem
Complete this Lean 4 proof. Reply with ONLY the tactic proof. def isLimitAux' (t : PullbackCone f g) (create : ∀ s : PullbackCone f g, { l // l ≫ t.fst = s.fst ∧ l ≫ t.snd = s.snd ∧ ∀ {m}, m ≫ t.fst = s.fst → m ≫ t.snd = s.snd → m = l }) : Limits.IsLimit t :=
PullbackCone.isLimitAux t (fun s => (create s).1) (fun s => (create s).2.1) (fun s => (create s).2.2.1) fun s _ w => (create s).2.2.2 (w WalkingCospan.left) (w WalkingCospan.right)
mathlib:def
Complete this Lean 4 proof. Reply with ONLY the tactic proof. theorem edist_vadd_vadd_le (v v' : V) (p p' : P) : edist (v +ᵥ p) (v' +ᵥ p') ≤ edist v v' + edist p p' := by
by simp only [edist_nndist] norm_cast apply dist_vadd_vadd_le
mathlib:theorem
Complete this Lean 4 proof. Reply with ONLY the tactic proof. theorem IdentDistrib.truncation {β : Type*} [MeasurableSpace β] {ν : Measure β} {f : α → ℝ} {g : β → ℝ} (h : IdentDistrib f g μ ν) {A : ℝ} : IdentDistrib (truncation f A) (truncation g A) μ ν := by
h.comp (measurable_id.indicator measurableSet_Ioc) end Truncation section StrongLawAeReal variable {Ω : Type*} [MeasureSpace Ω] [IsProbabilityMeasure (ℙ : Measure Ω)] section MomentEstimates
mathlib:theorem
Complete this Lean 4 proof. Reply with ONLY the tactic proof. theorem map_div_left_ae (μ : Measure G) [IsMulLeftInvariant μ] [IsInvInvariant μ] (x : G) : Filter.map (fun t => x / t) (ae μ) = ae μ := by
((MeasurableEquiv.divLeft x).map_ae μ).trans congr(ae $(map_div_left_eq_self μ x)) end Group end Measure section IsTopologicalGroup variable [TopologicalSpace G] [BorelSpace G] {μ : Measure G} [Group G] @[to_additive]
mathlib:theorem
Complete this Lean 4 proof. Reply with ONLY the tactic proof. theorem isProperSemilinearSet_iff : IsProperSemilinearSet s ↔ ∃ (S : Finset (Set M)), (∀ t ∈ S, IsProperLinearSet t) ∧ s = ⋃₀ S := by
Set.exists_finite_iff_finset
mathlib:theorem
Complete this Lean 4 proof. Reply with ONLY the tactic proof. def piCurry {ι : Type*} {κ : ι → Type*} (X : (i : ι) → κ i → Type*) [∀ i j, MeasurableSpace (X i j)] : ((p : (i : ι) × κ i) → X p.1 p.2) ≃ᵐ ((i : ι) → (j : κ i) → X i j) where toEquiv :=
Equiv.piCurry X
mathlib:def
Complete this Lean 4 proof. Reply with ONLY the tactic proof. lemma inv_mul_eq_inv_mul_iff (hb : b ≠ 0) (hd : d ≠ 0) : b⁻¹ * a = d⁻¹ * c ↔ a * d = c * b := by
hb.isUnit.inv_mul_eq_inv_mul_iff hd.isUnit
mathlib:lemma
Complete this Lean 4 proof. Reply with ONLY the tactic proof. lemma single_eval_le_sum {α M N : Type*} [Zero M] [AddCommMonoid N] [PartialOrder N] [IsOrderedAddMonoid N] (f : α →₀ M) {g : M → N} (hg : g 0 = 0) (h : 0 ≤ (g ·)) (a : α) : g (f a) ≤ f.sum fun _ m ↦ g m := by
by simp only [← sum_single_index (h := fun (_ : α) m ↦ g m) (a := a) (b := f a) hg] apply single_le_sum _ (fun _ m ↦ h m) end OrderedAddCommMonoid
mathlib:lemma
Complete this Lean 4 proof. Reply with ONLY the tactic proof. theorem inv_eq_inv_aux (φ : k⟦X⟧) : φ⁻¹ = inv.aux (constantCoeff φ)⁻¹ φ := by
rfl
mathlib:theorem
Complete this Lean 4 proof. Reply with ONLY the tactic proof. lemma tendsto_logDeriv_euler_cot_sub (hx : x ∈ ℂ_ℤ) : Tendsto (fun n : ℕ => ∑ j ∈ Finset.range n, cotTerm x j) atTop (𝓝 <| π * cot (π * x) - 1 / x) := by
by simp_rw [← logDeriv_sin_div_eq_cot hx, ← logDeriv_prod_sineTerm_eq_sum_cotTerm hx] simpa using tendsto_logDeriv_euler_sin_div hx
mathlib:lemma
Complete this Lean 4 proof. Reply with ONLY the tactic proof. theorem leftAdjointUniq_refl {F : C ⥤ D} {G : D ⥤ C} (adj1 : F ⊣ G) : (leftAdjointUniq adj1 adj1).hom = 𝟙 _ := by
by simp [leftAdjointUniq]
mathlib:theorem
Complete this Lean 4 proof. Reply with ONLY the tactic proof. theorem image_coe_Icc (x y : ℝ≥0) : toReal '' Icc x y = Icc ↑x ↑y := by
image_subtype_val_Icc (s := Ici 0) .. @[simp]
mathlib:theorem
Complete this Lean 4 proof. Reply with ONLY the tactic proof. lemma even_iff : Even n ↔ n % 2 = 0 where mp := by
fun ⟨m, hm⟩ ↦ by simp [← Nat.two_mul, hm] mpr h := ⟨n / 2, by grind⟩ instance : DecidablePred (Even : ℕ → Prop) := fun _ ↦ decidable_of_iff _ even_iff.symm instance : DecidablePred (IsSquare : ℕ → Prop) := fun m ↦ decidable_of_iff' (Nat.sqrt m * Nat.sqrt m = m) <| by simp_rw [← Nat.exists_mul_self m, IsSqua...
mathlib:lemma
Complete this Lean 4 proof. Reply with ONLY the tactic proof. def idealOfCofinals : Ideal P where carrier :=
{ x : P | ∃ n, x ≤ sequenceOfCofinals p 𝒟 n } lower' := fun _ _ hxy ⟨n, hn⟩ ↦ ⟨n, le_trans hxy hn⟩ nonempty' := ⟨p, 0, le_rfl⟩ directed' := fun _ ⟨n, hn⟩ _ ⟨m, hm⟩ ↦ ⟨_, ⟨max n m, le_rfl⟩, le_trans hn <| sequenceOfCofinals.monotone p 𝒟 (le_max_left _ _), le_trans hm <| sequenceOfCofinals.monotone p 𝒟...
mathlib:def
Complete this Lean 4 proof. Reply with ONLY the tactic proof. theorem Hom.cast_rfl_rfl {u v : U} (e : u ⟶ v) : e.cast rfl rfl = e := by
rfl @[simp]
mathlib:theorem
Complete this Lean 4 proof. Reply with ONLY the tactic proof. theorem norm_comp_le (g : NormedAddGroupHom V₂ V₃) (f : NormedAddGroupHom V₁ V₂) : ‖g.comp f‖ ≤ ‖g‖ * ‖f‖ := by
mkNormedAddGroupHom_norm_le _ (by positivity) _
mathlib:theorem
Complete this Lean 4 proof. Reply with ONLY the tactic proof. theorem aeval_root_eq_map : aeval h.root = h.map := by
by ext; simp
mathlib:theorem
Complete this Lean 4 proof. Reply with ONLY the tactic proof. theorem mem_idealSet : x ∈ idealSet K J ↔ x ∈ fundamentalCone K ∧ ∃ a : (𝓞 K), (a : 𝓞 K) ∈ (J : Set (𝓞 K)) ∧ mixedEmbedding K (a : 𝓞 K) = x := by
by simp_rw [idealSet, Set.mem_inter_iff, idealLattice, SetLike.mem_coe, FractionalIdeal.coe_mk0, LinearMap.mem_range, LinearMap.coe_comp, LinearMap.coe_restrictScalars, coe_subtype, Function.comp_apply, AlgHom.toLinearMap_apply, RingHom.toIntAlgHom_coe, Subtype.exists, FractionalIdeal.mem_coeToSubmodule, ...
mathlib:theorem
Complete this Lean 4 proof. Reply with ONLY the tactic proof. lemma restrictScalars_traceDual {I : Submodule B L} : Iᵛ.restrictScalars A = (Algebra.traceForm K L).dualSubmodule (I.restrictScalars A) := by
rfl variable (A) in
mathlib:lemma
Complete this Lean 4 proof. Reply with ONLY the tactic proof. lemma leftActionOfOppositeLeftAction_actionHom_unop {c c' : Cᵒᵖ} {d d' : Dᵒᵖ} (f : c ⟶ c') (g : d ⟶ d') : f.unop ⊙ₗₘ g.unop = unop (f ⊙ₗₘ g) := by
rfl
mathlib:lemma
Complete this Lean 4 proof. Reply with ONLY the tactic proof. def IsCocycle₂ (f : G × G → A) : Prop :=
∀ g h j : G, f (g * h, j) + f (g, h) = g • (f (h, j)) + f (g, h * j) end section variable {G A : Type*} [Monoid G] [AddCommGroup A] [MulAction G A]
mathlib:def
Complete this Lean 4 proof. Reply with ONLY the tactic proof. theorem hundred_div_ε_pow_five_le_m [Nonempty α] (hPα : #P.parts * 16 ^ #P.parts ≤ card α) (hPε : 100 ≤ (4 : ℝ) ^ #P.parts * ε ^ 5) : 100 / ε ^ 5 ≤ m := by
(div_le_of_le_mul₀ (eps_pow_five_pos hPε).le (by positivity) hPε).trans <| by norm_cast rwa [Nat.le_div_iff_mul_le (stepBound_pos (P.parts_nonempty univ_nonempty.ne_empty).card_pos), stepBound, mul_left_comm, ← mul_pow]
mathlib:theorem
Complete this Lean 4 proof. Reply with ONLY the tactic proof. lemma continuous_uncurry_toEuclideanCLM : Continuous (fun (S, x) ↦ toEuclideanCLM (n := by
n) (𝕜 := 𝕜) S x) := by refine Continuous.comp (by fun_prop) <| continuous_pi fun i ↦ ?_ simp only [LinearEquiv.toEquiv_symm, Equiv.symm_symm, Equiv.invFun_as_coe, LinearEquiv.coe_symm_toEquiv, toMatrix'_symm, OrthonormalBasis.coe_toBasis_repr, LinearEquiv.coe_coe, LinearEquiv.trans_apply, LinearIsometryEq...
mathlib:lemma
Complete this Lean 4 proof. Reply with ONLY the tactic proof. theorem finSuccEquiv_comp_C_eq_C {R : Type u} [CommSemiring R] (n : ℕ) : (↑(MvPolynomial.finSuccEquiv R n).symm : Polynomial (MvPolynomial (Fin n) R) →+* _).comp (Polynomial.C.comp MvPolynomial.C) = (MvPolynomial.C : R →+* MvPolynomial (Fi...
by refine RingHom.ext fun x => ?_ rw [RingHom.comp_apply] refine (MvPolynomial.finSuccEquiv R n).injective (Trans.trans ((MvPolynomial.finSuccEquiv R n).apply_symm_apply _) ?_) simp only [MvPolynomial.finSuccEquiv_apply, MvPolynomial.eval₂Hom_C] variable {n} {R}
mathlib:theorem
Complete this Lean 4 proof. Reply with ONLY the tactic proof. theorem UniqueMDiffOn.uniqueDiffWithinAt_range_inter (hs : UniqueMDiff[s]) (x : M) (y : E) (hy : y ∈ (extChartAt I x).target ∩ (extChartAt I x).symm ⁻¹' s) : UniqueDiffWithinAt 𝕜 (range I ∩ (extChartAt I x).symm ⁻¹' s) y := by
by apply (hs.uniqueDiffOn_target_inter x y hy).mono apply inter_subset_inter_left _ (extChartAt_target_subset_range x) variable [IsManifold I 1 M] in
mathlib:theorem
Complete this Lean 4 proof. Reply with ONLY the tactic proof. lemma Presieve.isSheafFor_singleton_iff_of_iso {F : Cᵒᵖ ⥤ Type*} {S X Y : C} (f : X ⟶ S) (g : Y ⟶ S) (e : X ≅ Y) (he : e.hom ≫ g = f) : (singleton f).IsSheafFor F ↔ (singleton g).IsSheafFor F := by
by subst he rw [← Presieve.ofArrows_pUnit.{0}, ← Presieve.ofArrows_pUnit, Presieve.isSheafFor_ofArrows_comp_iff] open Limits variable {D : Type*} [Category* D]
mathlib:lemma
Complete this Lean 4 proof. Reply with ONLY the tactic proof. theorem image_castSucc_uIcc (i j : Fin n) : castSucc '' uIcc i j = uIcc i.castSucc j.castSucc := by
image_castAdd_uIcc .. @[simp]
mathlib:theorem
Complete this Lean 4 proof. Reply with ONLY the tactic proof. theorem vle_add_cases (x y : R) : x + y ≤ᵥ x ∨ x + y ≤ᵥ y := by
(vle_total y x).imp (fun h => vle_add .rfl h) (fun h => vle_add h .rfl) @[simp] lemma zero_vlt_mul (hx : 0 <ᵥ x) (hy : 0 <ᵥ y) : 0 <ᵥ x * y := by contrapose hy rw [not_vlt] at hy ⊢ grw [show (0 : R) = x * 0 by simp, veq_mul_comm, veq_mul_comm x] at hy exact vle_mul_cancel hx hy variable (R) in
mathlib:theorem
Complete this Lean 4 proof. Reply with ONLY the tactic proof. def eta : G ⟶ ↧(completion G) :=
GrpCat.ofHom { toFun := etaFn G map_one' := rfl map_mul' _ _ := rfl } set_option backward.isDefEq.respectTransparency false in @[to_additive]
mathlib:def
Complete this Lean 4 proof. Reply with ONLY the tactic proof. theorem card_le_card_toFinset_add_one_iff [DecidableEq α] {m : Multiset α} : m.card ≤ m.toFinset.card + 1 ↔ ∀ x y, 1 < m.count x → 1 < m.count y → x = y ∧ m.count x = 2 := by
by rw [← m.toFinset_sum_count_eq, m.toFinset.card_eq_sum_ones, ← tsub_le_iff_left, ← Finset.sum_tsub_distrib _ (by simp [one_le_count_iff_mem]), Finset.sum_le_one_iff] simp only [← pos_iff_ne_zero, Nat.sub_pos_iff_lt, mem_toFinset, Nat.pred_eq_succ_iff] exact ⟨fun h x y hx hy ↦ h x y (one_le_count_iff_mem.mp ...
mathlib:theorem
Complete this Lean 4 proof. Reply with ONLY the tactic proof. theorem HasFDerivAt.const_rpow (hf : HasFDerivAt f f' x) (hc : 0 < c) : HasFDerivAt (fun x => c ^ f x) ((c ^ f x * Real.log c) • f') x := by
(hasStrictDerivAt_const_rpow hc (f x)).hasDerivAt.comp_hasFDerivAt x hf
mathlib:theorem
Complete this Lean 4 proof. Reply with ONLY the tactic proof. theorem irreducibleComponent_subset_connectedComponent {x : α} : irreducibleComponent x ⊆ connectedComponent x := by
isIrreducible_irreducibleComponent.isConnected.subset_connectedComponent mem_irreducibleComponent @[gcongr, mono]
mathlib:theorem
Complete this Lean 4 proof. Reply with ONLY the tactic proof. lemma memPartition_zero (f : ℕ → Set α) : memPartition f 0 = {univ} := by
rfl
mathlib:lemma
Complete this Lean 4 proof. Reply with ONLY the tactic proof. def seminormedAddCommGroup : SeminormedAddCommGroup L :=
by have : NormedField L := normedField K L infer_instance @[instance_reducible]
mathlib:def
Complete this Lean 4 proof. Reply with ONLY the tactic proof. lemma inl_mono : Monotone (MonoidHom.inl α β) := by
fun _ _ ↦ by simp @[to_additive]
mathlib:lemma
Complete this Lean 4 proof. Reply with ONLY the tactic proof. theorem isLimit_iff (c : Cone F) : Nonempty (IsLimit c) ↔ ∀ s ∈ F.sections, ∃! x : c.pt, ∀ j, c.π.app j x = s j := by
by refine ⟨fun ⟨t⟩ s hs ↦ ?_, fun h ↦ ⟨?_⟩⟩ · let cs := coneOfSection hs exact ⟨t.lift cs ⟨⟩, fun j ↦ congr_hom (t.fac cs j) ⟨⟩, fun x hx ↦ congr_hom (CC := fun X ↦ X) (t.uniq cs (↾fun _ ↦ x) fun j ↦ by ext; exact hx j) ⟨⟩⟩ · have := fun c y ↦ h _ (sectionOfCone c y).2 choose x hx using fun ...
mathlib:theorem
Complete this Lean 4 proof. Reply with ONLY the tactic proof. theorem adjustToOrientation_apply_eq_or_eq_neg [Nonempty ι] (e : Basis ι R M) (x : Orientation R M ι) (i : ι) : e.adjustToOrientation x i = e i ∨ e.adjustToOrientation x i = -e i := by
by rw [adjustToOrientation] split_ifs with h · simp · by_cases hi : i = Classical.arbitrary ι <;> simp [unitsSMul_apply, hi]
mathlib:theorem
Complete this Lean 4 proof. Reply with ONLY the tactic proof. lemma essSup_comp_quotientGroup_mk [μ.IsMulRightInvariant] {g : G ⧸ Γ → ℝ≥0∞} (g_ae_measurable : AEMeasurable g μ_𝓕) : essSup g μ_𝓕 = essSup (fun (x : G) ↦ g x) μ := by
by have hπ : Measurable (QuotientGroup.mk : G → G ⧸ Γ) := continuous_quotient_mk'.measurable rw [essSup_map_measure g_ae_measurable hπ.aemeasurable] refine h𝓕.essSup_measure_restrict ?_ intro ⟨γ, hγ⟩ x dsimp congr 1 exact QuotientGroup.mk_mul_of_mem x hγ @[to_additive ]
mathlib:lemma
Complete this Lean 4 proof. Reply with ONLY the tactic proof. lemma induce_le_iff : G.induce X ≤ G ↔ X ⊆ V(G) := by
⟨(·.vertexSet_mono), induce_le⟩
mathlib:lemma
Complete this Lean 4 proof. Reply with ONLY the tactic proof. def toπ₀NatTrans : SSet.evaluation.obj (op ⦋0⦌) ⟶ π₀Functor.{u} where app X :=
↾π₀.mk abbrev coforkπ₀ : Cofork (X.δ (1 : Fin 2)) (X.δ 0) := Cofork.ofπ (↾π₀.mk) (by ext s; exact π₀.sound (Edge.mk' s))
mathlib:def
Complete this Lean 4 proof. Reply with ONLY the tactic proof. def Submodule.toLocalizedQuotient' : M ⧸ M' →ₗ[R] N ⧸ M'.localized' S p f :=
Submodule.mapQ M' ((M'.localized' S p f).restrictScalars R) f (fun x hx ↦ ⟨x, hx, 1, by simp⟩) noncomputable abbrev Submodule.toLocalizedQuotient : M ⧸ M' →ₗ[R] LocalizedModule p M ⧸ M'.localized p := M'.toLocalizedQuotient' (Localization p) p (LocalizedModule.mkLinearMap p M) @[simp]
mathlib:def
Complete this Lean 4 proof. Reply with ONLY the tactic proof. lemma IsZero.neg (h : α.IsZero) : (-α).IsZero := by
by ext; rw [coe_neg, h, neg_zero] @[simp] lemma isZero_neg : (-α).IsZero ↔ α.IsZero := ⟨fun h ↦ neg_neg α ▸ h.neg, fun h ↦ h.neg⟩
mathlib:lemma
Complete this Lean 4 proof. Reply with ONLY the tactic proof. lemma strictMono (x : LTSeries α) : StrictMono x := by
fun _ _ h => x.rel_of_lt h
mathlib:lemma
Complete this Lean 4 proof. Reply with ONLY the tactic proof. theorem IsUltrahomogeneous.age_isFraisse [Countable M] (h : L.IsUltrahomogeneous M) : IsFraisse (L.age M) := by
⟨age.nonempty M, fun _ hN => hN.1, age.countable_quotient M, age.hereditary M, age.jointEmbedding M, h.amalgamation_age⟩ namespace IsFraisseLimit
mathlib:theorem
Complete this Lean 4 proof. Reply with ONLY the tactic proof. theorem smulLeftCLM_apply_apply (g : E → ℂ) (f : 𝓢'(E, F)) (f' : 𝓢(E, ℂ)) : smulLeftCLM F g f f' = f (SchwartzMap.smulLeftCLM ℂ g f') := by
by rfl @[simp]
mathlib:theorem
Complete this Lean 4 proof. Reply with ONLY the tactic proof. theorem fg_top (S : Subalgebra R A) : (⊤ : Subalgebra R S).FG ↔ S.FG := by
⟨fun h ↦ by rw [← S.range_val, ← Algebra.map_top] exact FG.map _ h, fun h ↦ fg_of_fg_map _ S.val Subtype.val_injective <| by rw [Algebra.map_top, range_val] exact h⟩
mathlib:theorem
Complete this Lean 4 proof. Reply with ONLY the tactic proof. theorem IsBasis.left_subset_ground (hI : M.IsBasis I X) : I ⊆ M.E := by
hI.indep.subset_ground
mathlib:theorem
Complete this Lean 4 proof. Reply with ONLY the tactic proof. instance normalizedGCDMonoid : NormalizedGCDMonoid PUnit := by
inferInstance @[simp]
mathlib:instance
Complete this Lean 4 proof. Reply with ONLY the tactic proof. theorem iteratedFDerivWithin_comp {t : Set F} (hg : ContDiffWithinAt 𝕜 n g t (f x)) (hf : ContDiffWithinAt 𝕜 n f s x) (ht : UniqueDiffOn 𝕜 t) (hs : UniqueDiffOn 𝕜 s) (hx : x ∈ s) (hst : MapsTo f s t) {i : ℕ} (hi : i ≤ n) : iteratedFDerivWith...
iteratedFDerivWithin_comp_of_eventually_mem hg hf ht hs hx (eventually_mem_nhdsWithin.mono hst) hi
mathlib:theorem
Complete this Lean 4 proof. Reply with ONLY the tactic proof. theorem measurableSet_of_differentiableWithinAt_Ici : MeasurableSet { x | DifferentiableWithinAt ℝ f (Ici x) x } := by
by have : IsComplete (univ : Set F) := isComplete_univ convert! measurableSet_of_differentiableWithinAt_Ici_of_isComplete f this simp @[fun_prop]
mathlib:theorem
Complete this Lean 4 proof. Reply with ONLY the tactic proof. theorem subgraphOfAdj_symm {v w : V} (hvw : G.Adj v w) : G.subgraphOfAdj hvw.symm = G.subgraphOfAdj hvw := by
by ext <;> simp [or_comm, and_comm] @[simp]
mathlib:theorem
Complete this Lean 4 proof. Reply with ONLY the tactic proof. lemma coe_mk (f : α → β) (hf) : ⇑(mk f hf) = f := by
rfl @[to_dual (attr := ext)]
mathlib:lemma
Complete this Lean 4 proof. Reply with ONLY the tactic proof. lemma orthogonalProjectionSpan_map {n : ℕ} (s : Simplex 𝕜 P n) (f : P →ᵃⁱ[𝕜] P₂) (p : P) : (s.map f.toAffineMap f.injective).orthogonalProjectionSpan (f p) = f (s.orthogonalProjectionSpan p) := by
by simp_rw [orthogonalProjectionSpan] convert orthogonalProjection_map (affineSpan 𝕜 (Set.range s.points)) f p simp [AffineSubspace.map_span, Set.range_comp] @[simp] lemma orthogonalProjectionSpan_restrict {n : ℕ} (s : Simplex 𝕜 P n) (S : AffineSubspace 𝕜 P) (hS : affineSpan 𝕜 (Set.range s.points) ≤ S) (...
mathlib:lemma
Complete this Lean 4 proof. Reply with ONLY the tactic proof. lemma subset_smul_set_iff₀ (ha : a ≠ 0) {A B : Set β} : A ⊆ a • B ↔ a⁻¹ • A ⊆ B := by
show _ ⊆ Units.mk0 a ha • B ↔ _ from subset_smul_set_iff
mathlib:lemma
Complete this Lean 4 proof. Reply with ONLY the tactic proof. def indiscrete (ha : a ≠ ⊥) : Finpartition a where parts :=
{a} supIndep := supIndep_singleton _ _ sup_parts := Finset.sup_singleton bot_notMem h := ha (mem_singleton.1 h).symm variable (P : Finpartition a) protected theorem le {b : α} (hb : b ∈ P.parts) : b ≤ a := (le_sup hb).trans P.sup_parts.le
mathlib:def
Complete this Lean 4 proof. Reply with ONLY the tactic proof. def rem (d : ℕ) : ℝ :=
s.multSum d - s.nu d * s.totalMass
mathlib:def
Complete this Lean 4 proof. Reply with ONLY the tactic proof. theorem U_eval_zero (n : ℤ) : (U R n).eval 0 = (if Even n then (n / 2).negOnePow else 0 : ℤ) := by
by induction n using Polynomial.Chebyshev.induct with | zero => simp | one => simp | add_two n ih1 ih2 => have : ((n : ℤ) + 2) / 2 = (n : ℤ) / 2 + 1 := by lia by_cases Even n <;> simp_all [Int.negOnePow_add] | neg_add_one n ih1 ih2 => have : (-(n : ℤ) + 1) / 2 = (-(n : ℤ) - 1) / 2 + 1 := by lia ...
mathlib:theorem
Complete this Lean 4 proof. Reply with ONLY the tactic proof. def aleph0 : Cardinal.{u} :=
lift #ℕ @[inherit_doc] scoped notation "ℵ₀" => Cardinal.aleph0 recommended_spelling "aleph0" for "ℵ₀" in [aleph0, «termℵ₀»]
mathlib:def
Complete this Lean 4 proof. Reply with ONLY the tactic proof. theorem map_toAddSubmonoid' (f : M →ₛₗ[σ₁₂] M₂) (p : Submodule R M) : (p.map f).toAddSubmonoid = p.toAddSubmonoid.map f := by
SetLike.coe_injective rfl @[simp]
mathlib:theorem
Complete this Lean 4 proof. Reply with ONLY the tactic proof. theorem ret_bind (a) (f : α → Computation β) : bind (pure a) f = f a := by
by apply eq_of_bisim fun c₁ c₂ => c₁ = bind (pure a) f ∧ c₂ = f a ∨ c₁ = corec (Bind.f f) (Sum.inr c₂) · intro c₁ c₂ h match c₁, c₂, h with | _, _, Or.inl ⟨rfl, rfl⟩ => simp only [BisimO, bind, Bind.f, corec_eq, rmap, destruct_pure] rcases destruct (f a) with b | cb <;> simp [Bind.g] | _...
mathlib:theorem
Complete this Lean 4 proof. Reply with ONLY the tactic proof. lemma eq_excenter_of_two_zsmul_oangle_eq {p : P} (h₁ : (2 : ℤ) • ∡ (t.points i₂) (t.points i₁) p = (2 : ℤ) • ∡ p (t.points i₁) (t.points i₃)) (h₂ : (2 : ℤ) • ∡ (t.points i₃) (t.points i₂) p = (2 : ℤ) • ∡ p (t.points i₂) (t.points i₁)) : ∃ signs ...
by rw [← dist_orthogonalProjectionSpan_faceOpposite_eq_iff_two_zsmul_oangle_eq h₁₂ h₁₃ h₂₃] at h₁ rw [← dist_orthogonalProjectionSpan_faceOpposite_eq_iff_two_zsmul_oangle_eq h₂₃ h₁₂.symm h₁₃.symm] at h₂ have hp : p ∈ affineSpan ℝ (Set.range t.points) := by convert AffineSubspace.mem_top ℝ V p rw [t.in...
mathlib:lemma
Complete this Lean 4 proof. Reply with ONLY the tactic proof. theorem ne_zero_of_trailingDegree_lt {n : ℕ∞} (h : trailingDegree p < n) : p ≠ 0 := by
fun h₀ => h.not_ge (by simp [h₀])
mathlib:theorem
Complete this Lean 4 proof. Reply with ONLY the tactic proof. def isColimitExtendCoconeEquiv (t : Cocone (F ⋙ G)) : IsColimit (extendCocone.obj t) ≃ IsColimit t :=
IsColimit.ofCoconeEquiv (coconesEquiv F G) @[simps]
mathlib:def
Complete this Lean 4 proof. Reply with ONLY the tactic proof. theorem finRotate_last : finRotate (n + 1) (Fin.last _) = 0 := by
finRotate_last'
mathlib:theorem
Complete this Lean 4 proof. Reply with ONLY the tactic proof. theorem refl_symm : (refl R A).symm = refl R A := by
rfl
mathlib:theorem
Complete this Lean 4 proof. Reply with ONLY the tactic proof. lemma leftUnitor_inv_app (x : C) : (leftUnitor U F).inv.app x = (λ_ (F.obj x)).inv ≫ can ▷ F.obj x ≫ (DayConvolution.unit U F).app (𝟙_ C, x) ≫ (U ⊛ F).map (λ_ x).hom := by
by dsimp [leftUnitor, Coyoneda.fullyFaithful, corepresentableByLeft, leftUnitorCorepresentingIso, Functor.CorepresentableBy.ofIso, Functor.corepresentableByEquiv] dsimp [prod.leftUnitorEquivalence, Equivalence.congrLeft, Equivalence.fullyFaithfulFunctor, Functor.FullyFaithful.homEquiv] erw [id_apply] ...
mathlib:lemma
Complete this Lean 4 proof. Reply with ONLY the tactic proof. def IsColimit.pushoutCoconeEquivBinaryCofanInverse {c : BinaryCofan (Under.mk f) (.mk g)} (hc : IsColimit c) : IsColimit <| pushoutCoconeEquivBinaryCofan.inverse.obj c :=
PushoutCocone.IsColimit.mk (c.inl.w.trans c.inr.w.symm) (fun s ↦ (hc.desc <| pushoutCoconeEquivBinaryCofan.functor.obj s).right) (fun s ↦ by simpa only using! congr($(hc.fac _ _).right)) (fun s ↦ by simpa only using! congr($(hc.fac _ _).right)) <| fun s m hm₁ hm₂ ↦ by change PushoutCocone f g ...
mathlib:def
Complete this Lean 4 proof. Reply with ONLY the tactic proof. theorem map_equiv_eq_comap_symm (f : R ≃+* S) (K : Subring R) : K.map (f : R →+* S) = K.comap f.symm := by
SetLike.coe_injective (f.toEquiv.image_eq_preimage_symm K)
mathlib:theorem
Complete this Lean 4 proof. Reply with ONLY the tactic proof. theorem opNorm_nonneg : 0 ≤ ‖f‖ := by
le_csInf bounds_nonempty fun _ ⟨hx, _⟩ => hx
mathlib:theorem
Complete this Lean 4 proof. Reply with ONLY the tactic proof. lemma TendstoCofinite.finite_preimage [TendstoCofinite f] {s : Set β} (hs : s.Finite) : Set.Finite (f ⁻¹' s) := by
by simpa [compl_eq_univ_sdiff] using TendstoCofinite.tendsto_cofinite f (show univ \ s ∈ cofinite by simpa [compl_eq_univ_sdiff])
mathlib:lemma
Complete this Lean 4 proof. Reply with ONLY the tactic proof. theorem RelEmbedding.toOrderHom_injective (f : ((· < ·) : α → α → Prop) ↪r ((· < ·) : β → β → Prop)) : Function.Injective (f : ((· < ·) : α → α → Prop) →r ((· < ·) : β → β → Prop)).toOrderHom := by
fun _ _ h => f.injective h end RelHom namespace OrderIso section LE variable [LE α] [LE β] [LE γ] [LE δ] @[macro_inline] instance : EquivLike (α ≃o β) α β := inferInstance instance : OrderIsoClass (α ≃o β) α β where map_le_map_iff f _ _ := f.map_rel_iff' @[simp]
mathlib:theorem
Complete this Lean 4 proof. Reply with ONLY the tactic proof. def equivalenceEffectivePresentation (e : C ≌ D) (X : D) : EffectivePresentation e.functor X where p :=
e.inverse.obj X f := e.counit.app _ effectiveEpi := inferInstance instance [IsEquivalence F] : EffectivelyEnough F where presentation X := ⟨equivalenceEffectivePresentation F.asEquivalence X⟩ end Functor end CategoryTheory
mathlib:def
Complete this Lean 4 proof. Reply with ONLY the tactic proof. def iterateFrobenius : R →+* R where __ :=
powMonoidHom (p ^ n) map_zero' := zero_pow (expChar_pow_pos R p n).ne' map_add' _ _ := add_pow_expChar_pow .. variable {R}
mathlib:def
Complete this Lean 4 proof. Reply with ONLY the tactic proof. lemma isInducing_stoneCechUnit [CompletelyRegularSpace X] : IsInducing (stoneCechUnit : X → StoneCech X) := by
by rw [isInducing_iff_nhds] intro x apply le_antisymm · rw [← map_le_iff_le_comap]; exact continuous_stoneCechUnit.continuousAt · simp_rw [le_nhds_iff, ((nhds_basis_opens _).comap _).mem_iff, and_assoc] intro U hxU hU obtain ⟨f, hf, efx, hfU⟩ := CompletelyRegularSpace.completely_regular_isOpen x...
mathlib:lemma
Complete this Lean 4 proof. Reply with ONLY the tactic proof. theorem lift_lift'_same_eq_lift' {g : Set α → Set α → Set β} (hg₁ : ∀ s, Monotone fun t => g s t) (hg₂ : ∀ t, Monotone fun s => g s t) : (f.lift fun s => f.lift' (g s)) = f.lift' fun s => g s s := by
lift_lift_same_eq_lift (fun s => monotone_principal.comp (hg₁ s)) fun t => monotone_principal.comp (hg₂ t)
mathlib:theorem
Complete this Lean 4 definition or term proof. Reply with ONLY the body after ':='. theorem count_lt (n k : Nat) : coverageCount n k = Nat.min (n + 1) k :=
count_lt_range (n + 1) k /-- When the ceiling threshold satisfies `1 ≤ k ≤ n+1` (true for `0 < α < 1`), the coverage count is exactly `k`. -/
estate:lutar-lean-v1
Complete this Lean 4 proof. Reply with ONLY the tactic proof. lemma nnNorm_cfcₙ_le_iff (f : 𝕜 → 𝕜) (a : A) (c : ℝ≥0) (hf : ContinuousOn f (σₙ 𝕜 a) := by
by cfc_cont_tac) (hf₀ : f 0 = 0 := by cfc_zero_tac) (ha : p a := by cfc_tac) : ‖cfcₙ f a‖₊ ≤ c ↔ ∀ x ∈ σₙ 𝕜 a, ‖f x‖₊ ≤ c := norm_cfcₙ_le_iff f a c.1 hf hf₀ ha @[deprecated (since := "2026-10-31")] alias nnnorm_cfcₙ_le_iff := nnNorm_cfcₙ_le_iff
mathlib:lemma
Complete this Lean 4 definition or term proof. Reply with ONLY the body after ':='. def A4_Continuity (F : (Fin n → ℝ) → ℝ) : Prop :=
ContinuousOn F {x | Pos x} /-- **A5′ — MULTIPLICATIVITY (the strengthened key axiom).** `F` respects the componentwise product: `F(x·y) = F(x)·F(y)`. This is the group-homomorphism condition on the multiplicative group `(0,∞)ⁿ`; it strictly subsumes the original A5 (homogeneity) via idempotency, and is th...
estate:lutar-lean-v1
Complete this Lean 4 proof. Reply with ONLY the tactic proof. theorem partialSups_eq_sup_range [OrderBot α] (f : ℕ → α) (n : ℕ) : partialSups f n = (Finset.range (n + 1)).sup f := by
eq_of_forall_ge_iff fun _ ↦ by simp [Nat.lt_succ_iff] end SemilatticeSup section DistribLattice variable [Preorder ι] [LocallyFiniteOrderBot ι] [DistribLattice α] [OrderBot α] @[simp]
mathlib:theorem
Complete this Lean 4 proof. Reply with ONLY the tactic proof. lemma hasEigenvector_toLin'_diagonal (d : n → R) (i : n) : HasEigenvector (toLin' (diagonal d)) (d i) (Pi.basisFun R n i) := by
hasEigenvector_toLin_diagonal _ _ (Pi.basisFun R n) set_option linter.overlappingInstances false
mathlib:lemma
Complete this Lean 4 proof. Reply with ONLY the tactic proof. lemma HomotopicR.congr_homotopyCategory₂HomMk {f g : Edge x₀ x₁} (h : HomotopicR f g) : homMk f = homMk g := by
Quotient.sound h.homotopicL
mathlib:lemma
Complete this Lean 4 proof. Reply with ONLY the tactic proof. lemma eq_id {A : Type u} {x : Codiscrete A} (f : x ⟶ x) : f = 𝟙 _ := by
rfl
mathlib:lemma
Complete this Lean 4 proof. Reply with ONLY the tactic proof. theorem some_removeNone_iff {x : α} : some (removeNone e x) = e none ↔ e.symm none = some x := by
by rcases h : e (some x) with a | a · rw [removeNone_none _ h] simpa using (congr_arg e.symm h).symm · rw [removeNone_some _ ⟨a, h⟩] have h1 := congr_arg e.symm h rw [symm_apply_apply] at h1 simp only [apply_eq_iff_eq, reduceCtorEq] simp [h1] @[simp]
mathlib:theorem
Complete this Lean 4 proof. Reply with ONLY the tactic proof. theorem natDegree_map_of_leadingCoeff_ne_zero (f : R →+* S) (hf : f (leadingCoeff p) ≠ 0) : natDegree (p.map f) = natDegree p := by
natDegree_eq_of_degree_eq (degree_map_eq_of_leadingCoeff_ne_zero f hf)
mathlib:theorem
Complete this Lean 4 proof. Reply with ONLY the tactic proof. lemma _root_.BddAbove.isBoundedUnder_of_range (hu : BddAbove (Set.range u)) : f.IsBoundedUnder (· ≤ ·) u := by
BddAbove.isBoundedUnder (s := univ) f.univ_mem (by simpa) @[to_dual ge_of_finite]
mathlib:lemma
Complete this Lean 4 proof. Reply with ONLY the tactic proof. lemma isPerfPair_of_subsingleton [Subsingleton R] (p : M →ₗ[R] N →ₗ[R] R) : p.IsPerfPair where bijective_left := by
by have : Subsingleton M := Module.subsingleton R _ exact bijective_of_subsingleton' _ bijective_right := by have : Subsingleton N := Module.subsingleton R _ exact bijective_of_subsingleton' _ protected lemma IsPerfPair.flip (hp : p.IsPerfPair) : p.flip.IsPerfPair where bijective_left := IsPerfPa...
mathlib:lemma
Complete this Lean 4 proof. Reply with ONLY the tactic proof. def Triangle.invRotate (T : Triangle C) : Triangle C :=
Triangle.mk (-T.mor₃⟦(-1 : ℤ)⟧' ≫ (shiftEquiv C (1 : ℤ)).unitIso.inv.app _) (T.mor₁) (T.mor₂ ≫ (shiftEquiv C (1 : ℤ)).counitIso.inv.app _) end attribute [local simp] shift_shift_neg' shift_neg_shift' shift_shiftFunctorCompIsoId_add_neg_cancel_inv_app shift_shiftFunctorCompIsoId_add_neg_cancel_hom_app variabl...
mathlib:def
Complete this Lean 4 proof. Reply with ONLY the tactic proof. theorem _root_.Order.cof_Iio [LinearOrder α] [WellFoundedLT α] (x : α) : Order.cof (Iio x) = cof (typein (α := by
α) (· < ·) x) := (cof_type _).symm @[simp]
mathlib:theorem
Complete this Lean 4 proof. Reply with ONLY the tactic proof. def algebra : Algebra (QuadraticAlgebra R a b) (QuadraticAlgebra S (algebraMap R S a) (algebraMap R S b)) :=
(mapRingHom (algebraMap R S) a b).toAlgebra
mathlib:def
Complete this Lean 4 proof. Reply with ONLY the tactic proof. theorem WOppSide.nonempty {s : AffineSubspace R P} {x y : P} (h : s.WOppSide x y) : (s : Set P).Nonempty := by
⟨h.choose, h.choose_spec.left⟩
mathlib:theorem
Complete this Lean 4 proof. Reply with ONLY the tactic proof. def zeroLocus (s : Set R) : Set (PrimeSpectrum R) :=
{ x | s ⊆ x.asIdeal } @[simp]
mathlib:def
End of preview.

lean-math-sft-v2

PROPOSED stub card (Wave-2 revision per governing AMEND). Not yet published to this dataset.

  • Contents: UNKNOWN (pending audit; nothing asserted)
  • Provenance: HF metadata census 2026-11-22T23:18Z auth-scoped 0 errors; published wave-logs mesh/2026-11-23/ouroboros/glm-datasets-kernels-lap1/ commit 9eebec605409
  • License evidence: UNKNOWN - no license tag set at census; owner-gated
  • Topics: none applied (taxonomy gate not yet passed; proposals live in the wave-logs bundle only)
  • Steward: estate owner-gated (see estate ledger)

Honest limitations

This stub asserts nothing about quality, composition, sizes, fitness. UNKNOWN fields stay UNKNOWN rather than fabricated. Target per 2026 leaders (Croissant 1.1, 2026-01-29): machine-actionable provenance, DUO/ODRL usage policies, semantic field types.

Downloads last month
165