Skip to content

Commit eb86768

Browse files
committed
chore(AlgebraicGeometry): fix whitespace (leanprover-community#33180)
Found by extending the commandStart linter to proof bodies.
1 parent 858a0d9 commit eb86768

7 files changed

Lines changed: 9 additions & 9 deletions

File tree

Mathlib/AlgebraicGeometry/Gluing.lean

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -226,7 +226,7 @@ theorem ι_isoCarrier_inv (i : D.J) :
226226
dsimp
227227
rw [← Category.assoc, ← PresheafedSpace.comp_base,
228228
← InducedCategory.comp_hom, D.toLocallyRingedSpaceGlueData.ι_isoSheafedSpace_inv i,
229-
← PresheafedSpace.comp_base,]
229+
← PresheafedSpace.comp_base]
230230
change (_ ≫ D.isoLocallyRingedSpace.inv).base = _
231231
rw [D.ι_isoLocallyRingedSpace_inv i]
232232

Mathlib/AlgebraicGeometry/Limits.lean

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ theorem emptyIsInitial_to : emptyIsInitial.to = Scheme.emptyTo :=
9595
instance : IsEmpty (∅ : Scheme.{u}) :=
9696
show IsEmpty PEmpty by infer_instance
9797

98-
instance spec_punit_isEmpty : IsEmpty (Spec <| .of PUnit.{u+1}) :=
98+
instance spec_punit_isEmpty : IsEmpty (Spec <| .of PUnit.{u + 1}) :=
9999
inferInstanceAs <| IsEmpty (PrimeSpectrum PUnit)
100100

101101
instance (priority := 100) isOpenImmersion_of_isEmpty {X Y : Scheme} (f : X ⟶ Y)
@@ -117,7 +117,7 @@ noncomputable def isInitialOfIsEmpty {X : Scheme} [IsEmpty X] : IsInitial X :=
117117
emptyIsInitial.ofIso (asIso <| emptyIsInitial.to _)
118118

119119
/-- `Spec 0` is the initial object in the category of schemes. -/
120-
noncomputable def specPunitIsInitial : IsInitial (Spec <| .of PUnit.{u+1}) :=
120+
noncomputable def specPunitIsInitial : IsInitial (Spec <| .of PUnit.{u + 1}) :=
121121
emptyIsInitial.ofIso (asIso <| emptyIsInitial.to _)
122122

123123
instance (priority := 100) isAffine_of_isEmpty {X : Scheme} [IsEmpty X] : IsAffine X :=
@@ -356,7 +356,7 @@ lemma nonempty_isColimit_binaryCofanMk_of_isCompl {X Y S : Scheme.{u}}
356356
Nonempty (IsColimit <| BinaryCofan.mk f g) := by
357357
let c' : Cofan fun j ↦ (WalkingPair.casesOn j X Y : Scheme.{u}) :=
358358
.mk S fun j ↦ WalkingPair.casesOn j f g
359-
let i : BinaryCofan.mk f g ≅ c' := Cofan.ext (Iso.refl _) (by rintro (b|b) <;> rfl)
359+
let i : BinaryCofan.mk f g ≅ c' := Cofan.ext (Iso.refl _) (by rintro (b | b) <;> rfl)
360360
refine ⟨IsColimit.ofIsoColimit (Nonempty.some ?_) i.symm⟩
361361
let fi (j : WalkingPair) : WalkingPair.casesOn j X Y ⟶ S := WalkingPair.casesOn j f g
362362
convert nonempty_isColimit_cofanMk_of fi _ _

Mathlib/AlgebraicGeometry/LimitsOver.lean

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ instance {S : Scheme.{u}} {U X Y : P.Over ⊤ S} (f : U ⟶ X) (g : U ⟶ Y)
5858
[IsOpenImmersion f.left] [IsOpenImmersion g.left]
5959
{i j : WalkingSpan} (t : i ⟶ j) :
6060
IsOpenImmersion ((span f g).map t).left := by
61-
obtain (a|(a|a)) := t
61+
obtain (a | (a | a)) := t
6262
· simp only [WidePushoutShape.hom_id, CategoryTheory.Functor.map_id]
6363
infer_instance
6464
· simpa

Mathlib/AlgebraicGeometry/Morphisms/ClosedImmersion.lean

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -271,7 +271,7 @@ lemma stalkMap_injective_of_isOpenMap_of_injective [CompactSpace X]
271271
obtain ⟨_, ⟨s, rfl⟩, hyv, bsle⟩ := Opens.isBasis_iff_nbhd.mp (isBasis_basicOpen Y)
272272
(show f x ∈ ⟨f '' U.carrier, hfopen U.carrier U.is_open'⟩ from ⟨x, by simpa⟩)
273273
let W (i : 𝒰.I₀) : TopologicalSpace.Opens (𝒰.X i) := (𝒰.X i).basicOpen ((res i) (φ s))
274-
have hwle (i : 𝒰.I₀) : W i ≤ (𝒰.f i)⁻¹ᵁ U := by
274+
have hwle (i : 𝒰.I₀) : W i ≤ (𝒰.f i) ⁻¹ᵁ U := by
275275
change (𝒰.X i).basicOpen ((𝒰.f i ≫ f).appTop s) ≤ _
276276
rw [← Scheme.preimage_basicOpen_top, Scheme.Hom.comp_base, Opens.map_comp_obj]
277277
refine Scheme.Hom.preimage_mono _

Mathlib/AlgebraicGeometry/ProjectiveSpectrum/Scheme.lean

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -357,7 +357,7 @@ theorem carrier.add_mem (q : Spec.T A⁰_ f) {a b : A} (ha : a ∈ carrier f_deg
357357
apply GradedMonoid.toGradedMul.mul_mem <;> mem_tac_aux
358358
rw [← add_smul, Nat.add_sub_of_le h1]; rfl
359359
· rw [(_ : m * i = _)]
360-
apply GradedMonoid.toGradedMul.mul_mem (i := (j-m) • i) (j := (m + m - j) • i) <;> mem_tac_aux
360+
apply GradedMonoid.toGradedMul.mul_mem (i := (j - m) • i) (j := (m + m - j) • i) <;> mem_tac_aux
361361
rw [← add_smul]; congr; lia
362362
convert_to ∑ i ∈ range (m + m + 1), g i ∈ q.1; swap
363363
· refine q.1.sum_mem fun j _ => nsmul_mem ?_ _; split_ifs

Mathlib/AlgebraicGeometry/Scheme.lean

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -590,7 +590,7 @@ The counit (`SpecΓIdentity.inv.op`) of the adjunction `Γ ⊣ Spec` as a natura
590590
This is almost never needed in practical use cases. Use `ΓSpecIso` instead.
591591
-/
592592
def SpecΓIdentity : Scheme.Spec.rightOp ⋙ Scheme.Γ ≅ 𝟭 _ :=
593-
Iso.symm <| NatIso.ofComponents.{u,u,u+1,u+1}
593+
Iso.symm <| NatIso.ofComponents.{u, u, u + 1, u + 1}
594594
(fun R => asIso (StructureSheaf.toOpen R ⊤))
595595
(fun {X Y} f => by convert Spec_Γ_naturality (R := X) (S := Y) f)
596596

Mathlib/AlgebraicGeometry/Spec.lean

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -300,7 +300,7 @@ theorem Spec_Γ_naturality {R S : CommRingCat.{u}} (f : R ⟶ S) :
300300
/-- The counit (`SpecΓIdentity.inv.op`) of the adjunction `Γ ⊣ Spec` is an isomorphism. -/
301301
@[simps! hom_app inv_app]
302302
def LocallyRingedSpace.SpecΓIdentity : Spec.toLocallyRingedSpace.rightOp ⋙ Γ ≅ 𝟭 _ :=
303-
Iso.symm <| NatIso.ofComponents.{u,u,u+1,u+1} (fun R =>
303+
Iso.symm <| NatIso.ofComponents.{u, u, u + 1, u + 1} (fun R =>
304304
letI : IsIso (toSpecΓ R) := StructureSheaf.isIso_to_global _
305305
asIso (toSpecΓ R)) fun {X Y} f => by convert Spec_Γ_naturality (R := X) (S := Y) f
306306

0 commit comments

Comments
 (0)