Skip to content
This repository was archived by the owner on Jul 24, 2024. It is now read-only.

Commit c0a51cf

Browse files
committed
chore(*): update to 3.41.0c (#12591)
1 parent e7db193 commit c0a51cf

16 files changed

Lines changed: 29 additions & 25 deletions

File tree

leanpkg.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
[package]
22
name = "mathlib"
33
version = "0.1"
4-
lean_version = "leanprover-community/lean:3.40.0"
4+
lean_version = "leanprover-community/lean:3.41.0"
55
path = "src"
66

77
[dependencies]

src/algebra/monoid_algebra/to_direct_sum.lean

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -165,7 +165,7 @@ def add_monoid_algebra_equiv_direct_sum [decidable_eq ι] [semiring M] [Π m : M
165165
/-- The additive version of `add_monoid_algebra.to_add_monoid_algebra`. Note that this is
166166
`noncomputable` because `add_monoid_algebra.has_add` is noncomputable. -/
167167
@[simps {fully_applied := ff}]
168-
noncomputable def add_monoid_algebra_add_equiv_direct_sum
168+
def add_monoid_algebra_add_equiv_direct_sum
169169
[decidable_eq ι] [semiring M] [Π m : M, decidable (m ≠ 0)] :
170170
add_monoid_algebra M ι ≃+ (⨁ i : ι, M) :=
171171
{ to_fun := add_monoid_algebra.to_direct_sum, inv_fun := direct_sum.to_add_monoid_algebra,
@@ -175,7 +175,7 @@ noncomputable def add_monoid_algebra_add_equiv_direct_sum
175175
/-- The ring version of `add_monoid_algebra.to_add_monoid_algebra`. Note that this is
176176
`noncomputable` because `add_monoid_algebra.has_add` is noncomputable. -/
177177
@[simps {fully_applied := ff}]
178-
noncomputable def add_monoid_algebra_ring_equiv_direct_sum
178+
def add_monoid_algebra_ring_equiv_direct_sum
179179
[decidable_eq ι] [add_monoid ι] [semiring M]
180180
[Π m : M, decidable (m ≠ 0)] :
181181
add_monoid_algebra M ι ≃+* ⨁ i : ι, M :=
@@ -186,7 +186,7 @@ noncomputable def add_monoid_algebra_ring_equiv_direct_sum
186186
/-- The algebra version of `add_monoid_algebra.to_add_monoid_algebra`. Note that this is
187187
`noncomputable` because `add_monoid_algebra.has_add` is noncomputable. -/
188188
@[simps {fully_applied := ff}]
189-
noncomputable def add_monoid_algebra_alg_equiv_direct_sum
189+
def add_monoid_algebra_alg_equiv_direct_sum
190190
[decidable_eq ι] [add_monoid ι] [comm_semiring R] [semiring A] [algebra R A]
191191
[Π m : A, decidable (m ≠ 0)] :
192192
add_monoid_algebra A ι ≃ₐ[R] ⨁ i : ι, A :=

src/analysis/convex/cone.lean

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -589,7 +589,7 @@ open_locale real_inner_product_space
589589

590590
/-- The dual cone is the cone consisting of all points `y` such that for
591591
all points `x` in a given set `0 ≤ ⟪ x, y ⟫`. -/
592-
noncomputable def set.inner_dual_cone (s : set H) : convex_cone ℝ H :=
592+
def set.inner_dual_cone (s : set H) : convex_cone ℝ H :=
593593
{ carrier := { y | ∀ x ∈ s, 0 ≤ ⟪ x, y ⟫ },
594594
smul_mem' := λ c hc y hy x hx,
595595
begin

src/analysis/normed_space/continuous_affine_map.lean

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -185,7 +185,7 @@ normed_group.of_core _
185185
end,
186186
norm_neg := λ f, by simp [norm_def], }
187187

188-
noncomputable instance : normed_space 𝕜 (V →A[𝕜] W) :=
188+
instance : normed_space 𝕜 (V →A[𝕜] W) :=
189189
{ norm_smul_le := λ t f, by simp only [norm_def, smul_cont_linear, coe_smul, pi.smul_apply,
190190
norm_smul, ← mul_max_of_nonneg _ _ (norm_nonneg t)], }
191191

@@ -215,7 +215,7 @@ variables (𝕜 V W)
215215
/-- The space of affine maps between two normed spaces is linearly isometric to the product of the
216216
codomain with the space of linear maps, by taking the value of the affine map at `(0 : V)` and the
217217
linear part. -/
218-
noncomputable def to_const_prod_continuous_linear_map : (V →A[𝕜] W) ≃ₗᵢ[𝕜] W × (V →L[𝕜] W) :=
218+
def to_const_prod_continuous_linear_map : (V →A[𝕜] W) ≃ₗᵢ[𝕜] W × (V →L[𝕜] W) :=
219219
{ to_fun := λ f, ⟨f 0, f.cont_linear⟩,
220220
inv_fun := λ p, p.2.to_continuous_affine_map + const 𝕜 V p.1,
221221
left_inv := λ f, by { ext, rw f.decomp, simp, },

src/analysis/normed_space/linear_isometry.lean

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -556,7 +556,7 @@ variables {R}
556556
variables (R E E₂ E₃)
557557

558558
/-- The natural equivalence `(E × E₂) × E₃ ≃ E × (E₂ × E₃)` is a linear isometry. -/
559-
noncomputable def prod_assoc [module R E₂] [module R E₃] : (E × E₂) × E₃ ≃ₗᵢ[R] E × E₂ × E₃ :=
559+
def prod_assoc [module R E₂] [module R E₃] : (E × E₂) × E₃ ≃ₗᵢ[R] E × E₂ × E₃ :=
560560
{ to_fun := equiv.prod_assoc E E₂ E₃,
561561
inv_fun := (equiv.prod_assoc E E₂ E₃).symm,
562562
map_add' := by simp,

src/control/lawful_fix.lean

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -183,7 +183,7 @@ lemma to_unit_cont (f : part α →o part α) (hc : continuous f) : continuous (
183183
erw [hc, chain.map_comp], refl
184184
end
185185

186-
noncomputable instance : lawful_fix (part α) :=
186+
instance : lawful_fix (part α) :=
187187
⟨λ f hc, show part.fix (to_unit_mono f) () = _, by rw part.fix_eq (to_unit_cont f hc); refl⟩
188188

189189
end part
@@ -192,7 +192,7 @@ open sigma
192192

193193
namespace pi
194194

195-
noncomputable instance {β} : lawful_fix (α → part β) := ⟨λ f, part.fix_eq⟩
195+
instance {β} : lawful_fix (α → part β) := ⟨λ f, part.fix_eq⟩
196196

197197
variables {γ : Π a : α, β a → Type*}
198198

src/data/complex/is_R_or_C.lean

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -766,7 +766,7 @@ end cleanup_lemmas
766766
section linear_maps
767767

768768
/-- The real part in a `is_R_or_C` field, as a linear map. -/
769-
noncomputable def re_lm : K →ₗ[ℝ] ℝ :=
769+
def re_lm : K →ₗ[ℝ] ℝ :=
770770
{ map_smul' := smul_re, .. re }
771771

772772
@[simp, is_R_or_C_simps] lemma re_lm_coe : (re_lm : K → ℝ) = re := rfl
@@ -792,7 +792,7 @@ end
792792
@[continuity] lemma continuous_re : continuous (re : K → ℝ) := re_clm.continuous
793793

794794
/-- The imaginary part in a `is_R_or_C` field, as a linear map. -/
795-
noncomputable def im_lm : K →ₗ[ℝ] ℝ :=
795+
def im_lm : K →ₗ[ℝ] ℝ :=
796796
{ map_smul' := smul_im, .. im }
797797

798798
@[simp, is_R_or_C_simps] lemma im_lm_coe : (im_lm : K → ℝ) = im := rfl
@@ -810,7 +810,7 @@ linear_map.mk_continuous im_lm 1 $ by
810810
@[continuity] lemma continuous_im : continuous (im : K → ℝ) := im_clm.continuous
811811

812812
/-- Conjugate as an `ℝ`-algebra equivalence -/
813-
noncomputable def conj_ae : K ≃ₐ[ℝ] K :=
813+
def conj_ae : K ≃ₐ[ℝ] K :=
814814
{ inv_fun := conj,
815815
left_inv := conj_conj,
816816
right_inv := conj_conj,

src/data/finsupp/to_dfinsupp.lean

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -172,7 +172,7 @@ def finsupp_equiv_dfinsupp [decidable_eq ι] [has_zero M] [Π m : M, decidable (
172172
/-- The additive version of `finsupp.to_finsupp`. Note that this is `noncomputable` because
173173
`finsupp.has_add` is noncomputable. -/
174174
@[simps {fully_applied := ff}]
175-
noncomputable def finsupp_add_equiv_dfinsupp
175+
def finsupp_add_equiv_dfinsupp
176176
[decidable_eq ι] [add_zero_class M] [Π m : M, decidable (m ≠ 0)] :
177177
(ι →₀ M) ≃+ (Π₀ i : ι, M) :=
178178
{ to_fun := finsupp.to_dfinsupp, inv_fun := dfinsupp.to_finsupp,
@@ -184,7 +184,7 @@ variables (R)
184184
/-- The additive version of `finsupp.to_finsupp`. Note that this is `noncomputable` because
185185
`finsupp.has_add` is noncomputable. -/
186186
@[simps {fully_applied := ff}]
187-
noncomputable def finsupp_lequiv_dfinsupp
187+
def finsupp_lequiv_dfinsupp
188188
[decidable_eq ι] [semiring R] [add_comm_monoid M] [Π m : M, decidable (m ≠ 0)] [module R M] :
189189
(ι →₀ M) ≃ₗ[R] (Π₀ i : ι, M) :=
190190
{ to_fun := finsupp.to_dfinsupp, inv_fun := dfinsupp.to_finsupp,

src/data/real/ennreal.lean

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -271,7 +271,7 @@ lemma supr_ennreal {α : Type*} [complete_lattice α] {f : ℝ≥0∞ → α} :
271271
@[simp] lemma top_add : ∞ + a = ∞ := top_add _
272272

273273
/-- Coercion `ℝ≥0 → ℝ≥0∞` as a `ring_hom`. -/
274-
noncomputable def of_nnreal_hom : ℝ≥0 →+* ℝ≥0∞ :=
274+
def of_nnreal_hom : ℝ≥0 →+* ℝ≥0∞ :=
275275
⟨coe, coe_one, λ _ _, coe_mul, coe_zero, λ _ _, coe_add⟩
276276

277277
@[simp] lemma coe_of_nnreal_hom : ⇑of_nnreal_hom = coe := rfl

src/measure_theory/constructions/pi.lean

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -297,8 +297,12 @@ def finite_spanning_sets_in.pi {C : Π i, set (set (α i))}
297297
begin
298298
haveI := λ i, (hμ i).sigma_finite,
299299
haveI := fintype.encodable ι,
300+
refine ⟨λ n, pi univ (λ i, (hμ i).set ((decode (ι → ℕ) n).iget i)), λ n, _, λ n, _, _⟩;
301+
-- TODO (kmill) If this let comes before the refine, while the noncomputability checker
302+
-- correctly sees this definition is computable, the Lean VM fails to see the binding is
303+
-- computationally irrelevant. The `noncomputable theory` doesn't help because all it does
304+
-- is insert `noncomputable` for you when necessary.
300305
let e : ℕ → (ι → ℕ) := λ n, (decode (ι → ℕ) n).iget,
301-
refine ⟨λ n, pi univ (λ i, (hμ i).set (e n i)), λ n, _, λ n, _, _⟩,
302306
{ refine mem_image_of_mem _ (λ i _, (hμ i).set_mem _) },
303307
{ calc measure.pi μ (pi univ (λ i, (hμ i).set (e n i)))
304308
≤ measure.pi μ (pi univ (λ i, to_measurable (μ i) ((hμ i).set (e n i)))) :

0 commit comments

Comments
 (0)