Skip to content

Commit

Permalink
fix all? errors
Browse files Browse the repository at this point in the history
  • Loading branch information
JovanGerb committed May 18, 2024
1 parent 4c9406c commit f7b809c
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 9 deletions.
5 changes: 2 additions & 3 deletions Mathlib/AlgebraicGeometry/StructureSheaf.lean
Original file line number Diff line number Diff line change
Expand Up @@ -981,9 +981,8 @@ instance IsLocalization.to_basicOpen (r : R) :

instance to_basicOpen_epi (r : R) : Epi (toOpen R (PrimeSpectrum.basicOpen r)) :=
fun {S} f g h => by
refine' IsLocalization.ringHom_ext (R := R)
(S := (structureSheaf R).val.obj (op <| PrimeSpectrum.basicOpen r)) _ _
exact h⟩
exact IsLocalization.ringHom_ext (R := R)
(S := (structureSheaf R).val.obj (op <| PrimeSpectrum.basicOpen r)) (Submonoid.powers r) h⟩
#align algebraic_geometry.structure_sheaf.to_basic_open_epi AlgebraicGeometry.StructureSheaf.to_basicOpen_epi

@[elementwise]
Expand Down
8 changes: 4 additions & 4 deletions Mathlib/CategoryTheory/Category/PartialFun.lean
Original file line number Diff line number Diff line change
Expand Up @@ -184,9 +184,9 @@ noncomputable def typeToPartialFunIsoPartialFunToPointed :
fun f =>
Pointed.Hom.ext _ _ <|
funext fun a => Option.recOn a rfl fun a => by
simp
rw [← Part.get_eq_iff_mem]
· rfl
· trivial
simp only [typeToPointed_obj_X, Functor.comp_obj, partialFunToPointed_obj, Functor.comp_map,
partialFunToPointed_map, Pointed.Hom.comp_toFun', Function.comp_apply, elim'_some, id_eq,
typeToPointed_map_toFun, map_some']
convert Part.some_toOption _

#align Type_to_PartialFun_iso_PartialFun_to_Pointed typeToPartialFunIsoPartialFunToPointed
2 changes: 1 addition & 1 deletion Mathlib/LinearAlgebra/AffineSpace/FiniteDimensional.lean
Original file line number Diff line number Diff line change
Expand Up @@ -351,7 +351,7 @@ instance finiteDimensional_vectorSpan_insert (s : AffineSubspace k P)
rcases (s : Set P).eq_empty_or_nonempty with (hs | ⟨p₀, hp₀⟩)
· rw [coe_eq_bot_iff] at hs
rw [hs, bot_coe, span_empty, bot_coe, direction_affineSpan]
convert finiteDimensional_bot _ _ <;> simp
convert finiteDimensional_bot k V <;> simp
· rw [affineSpan_coe, direction_affineSpan_insert hp₀]
infer_instance
#align finite_dimensional_vector_span_insert finiteDimensional_vectorSpan_insert
Expand Down
2 changes: 1 addition & 1 deletion Mathlib/RingTheory/Jacobson.lean
Original file line number Diff line number Diff line change
Expand Up @@ -499,7 +499,7 @@ theorem isMaximal_comap_C_of_isMaximal [Nontrivial R] (hP' : ∀ x : R, C x ∈
suffices (⊥ : Ideal (Localization M)).IsMaximal by
rw [← IsLocalization.comap_map_of_isPrime_disjoint M (Localization M) ⊥ bot_prime
(disjoint_iff_inf_le.mpr fun x hx => hM (hx.2 ▸ hx.1))]
refine' ((isMaximal_iff_isMaximal_disjoint (Localization M) _ _).mp (by rwa [map_bot])).1
refine' ((isMaximal_iff_isMaximal_disjoint (Localization M) a _).mp (by rwa [map_bot])).1
let M' : Submonoid (R[X] ⧸ P) := M.map φ
have hM' : (0 : R[X] ⧸ P) ∉ M' := fun ⟨z, hz⟩ =>
hM (quotientMap_injective (_root_.trans hz.2 φ.map_zero.symm) ▸ hz.1)
Expand Down

0 comments on commit f7b809c

Please sign in to comment.