Skip to content

Commit d1054e1

Browse files
committed
chore(Topology): remove autoImplicit from most remaining files (#9865)
1 parent 00202e4 commit d1054e1

11 files changed

Lines changed: 21 additions & 40 deletions

File tree

Mathlib/Topology/Algebra/Order/Compact.lean

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,9 +27,6 @@ We also prove that the image of a closed interval under a continuous map is a cl
2727
compact, extreme value theorem
2828
-/
2929

30-
set_option autoImplicit true
31-
32-
3330
open Filter OrderDual TopologicalSpace Function Set
3431

3532
open scoped Filter Topology
@@ -56,6 +53,8 @@ class CompactIccSpace (α : Type*) [TopologicalSpace α] [Preorder α] : Prop wh
5653

5754
export CompactIccSpace (isCompact_Icc)
5855

56+
variable {α : Type*}
57+
5958
-- porting note: new lemma; TODO: make it the definition
6059
lemma CompactIccSpace.mk' [TopologicalSpace α] [Preorder α]
6160
(h : ∀ {a b : α}, a ≤ b → IsCompact (Icc a b)) : CompactIccSpace α where

Mathlib/Topology/Algebra/Order/Rolle.lean

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ import Mathlib.Topology.LocalExtr
1414
# Rolle's Theorem (topological part)
1515
1616
In this file we prove the purely topological part of Rolle's Theorem:
17-
a function that is continuous on an interval $[a, b]$, $a<b$,
17+
a function that is continuous on an interval $[a, b]$, $a < b$,
1818
has a local extremum at a point $x ∈ (a, b)$ provided that $f(a)=f(b)$.
1919
We also prove several variations of this statement.
2020
@@ -25,11 +25,9 @@ to prove several versions of Rolle's Theorem from calculus.
2525
local minimum, local maximum, extremum, Rolle's Theorem
2626
-/
2727

28-
set_option autoImplicit true
29-
3028
open Filter Set Topology
3129

32-
variable
30+
variable {X Y : Type*}
3331
[ConditionallyCompleteLinearOrder X] [DenselyOrdered X] [TopologicalSpace X] [OrderTopology X]
3432
[LinearOrder Y] [TopologicalSpace Y] [OrderTopology Y]
3533
{f : X → Y} {a b : X} {l : Y}

Mathlib/Topology/Algebra/Star.lean

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,6 @@ This file defines the `ContinuousStar` typeclass, along with instances on `Pi`,
1717
`MulOpposite`, and `Units`.
1818
-/
1919

20-
set_option autoImplicit true
21-
2220
open Filter Topology
2321

2422
/-- Basic hypothesis to talk about a topological space with a continuous `star` operator. -/
@@ -31,7 +29,7 @@ export ContinuousStar (continuous_star)
3129

3230
section Continuity
3331

34-
variable [TopologicalSpace R] [Star R] [ContinuousStar R]
32+
variable {α R : Type*} [TopologicalSpace R] [Star R] [ContinuousStar R]
3533

3634
theorem continuousOn_star {s : Set R} : ContinuousOn star s :=
3735
continuous_star.continuousOn
@@ -84,6 +82,8 @@ end Continuity
8482

8583
section Instances
8684

85+
variable {R S ι : Type*}
86+
8787
instance [Star R] [Star S] [TopologicalSpace R] [TopologicalSpace S] [ContinuousStar R]
8888
[ContinuousStar S] : ContinuousStar (R × S) :=
8989
⟨(continuous_star.comp continuous_fst).prod_mk (continuous_star.comp continuous_snd)⟩

Mathlib/Topology/ContinuousOn.lean

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -29,9 +29,6 @@ equipped with the subspace topology.
2929
3030
-/
3131

32-
set_option autoImplicit true
33-
34-
3532
open Set Filter Function Topology Filter
3633

3734
variable {α : Type*} {β : Type*} {γ : Type*} {δ : Type*}
@@ -753,7 +750,7 @@ theorem ContinuousWithinAt.mono_of_mem {f : α → β} {s t : Set α} {x : α}
753750
h.mono_left (nhdsWithin_le_of_mem hs)
754751
#align continuous_within_at.mono_of_mem ContinuousWithinAt.mono_of_mem
755752

756-
theorem continuousWithinAt_congr_nhds {f : α → β} (h : 𝓝[s] x = 𝓝[t] x) :
753+
theorem continuousWithinAt_congr_nhds {f : α → β} {s t : Set α} {x : α} (h : 𝓝[s] x = 𝓝[t] x) :
757754
ContinuousWithinAt f s x ↔ ContinuousWithinAt f t x := by
758755
simp only [ContinuousWithinAt, h]
759756

Mathlib/Topology/CountableSeparatingOn.lean

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ In this file we show that a T₀ topological space with second countable
1313
topology has a countable family of open (or closed) sets separating the points.
1414
-/
1515

16-
set_option autoImplicit true
16+
variable {X : Type*}
1717

1818
open Set TopologicalSpace
1919

Mathlib/Topology/ExtremallyDisconnected.lean

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,6 @@ compact Hausdorff spaces.
3030
[Gleason, *Projective topological spaces*][gleason1958]
3131
-/
3232

33-
set_option autoImplicit true
34-
3533
noncomputable section
3634

3735
open Classical Function Set
@@ -286,7 +284,7 @@ end
286284

287285
-- Note: It might be possible to use Gleason for this instead
288286
/-- The sigma-type of extremally disconnected spaces is extremally disconnected. -/
289-
instance instExtremallyDisconnected {π : ι → Type*} [∀ i, TopologicalSpace (π i)]
287+
instance instExtremallyDisconnected {ι : Type*} {π : ι → Type*} [∀ i, TopologicalSpace (π i)]
290288
[h₀ : ∀ i, ExtremallyDisconnected (π i)] : ExtremallyDisconnected (Σ i, π i) := by
291289
constructor
292290
intro s hs

Mathlib/Topology/Homotopy/Basic.lean

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -54,14 +54,11 @@ and for `ContinuousMap.homotopic` and `ContinuousMap.homotopic_rel`, we also def
5454
- [HOL-Analysis formalisation](https://isabelle.in.tum.de/library/HOL/HOL-Analysis/Homotopy.html)
5555
-/
5656

57-
set_option autoImplicit true
58-
59-
6057
noncomputable section
6158

6259
universe u v w x
6360

64-
variable {F : Type*} {X : Type u} {Y : Type v} {Z : Type w} {Z' : Type x}
61+
variable {F : Type*} {X : Type u} {Y : Type v} {Z : Type w} {Z' : Type x} {ι : Type*}
6562

6663
variable [TopologicalSpace X] [TopologicalSpace Y] [TopologicalSpace Z] [TopologicalSpace Z']
6764

Mathlib/Topology/LocallyConstant/Algebra.lean

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,6 @@ on the type of locally constant functions.
1717
1818
-/
1919

20-
set_option autoImplicit true
21-
2220
namespace LocallyConstant
2321

2422
variable {X Y : Type*} [TopologicalSpace X]
@@ -153,6 +151,8 @@ instance [SemigroupWithZero Y] : SemigroupWithZero (LocallyConstant X Y) :=
153151
instance [CommSemigroup Y] : CommSemigroup (LocallyConstant X Y) :=
154152
Function.Injective.commSemigroup DFunLike.coe DFunLike.coe_injective' fun _ _ => rfl
155153

154+
variable {α R : Type*}
155+
156156
@[to_additive]
157157
instance smul [SMul α Y] : SMul α (LocallyConstant X Y) where
158158
smul n f := f.map (n • ·)
@@ -341,7 +341,7 @@ end Eval
341341

342342
section Comap
343343

344-
variable [TopologicalSpace Y]
344+
variable [TopologicalSpace Y] {Z : Type*}
345345

346346
/-- `LocallyConstant.comap` as a `MulHom`. -/
347347
@[to_additive (attr := simps) "`LocallyConstant.comap` as an `AddHom`."]

Mathlib/Topology/Order.lean

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -45,9 +45,6 @@ of sets in `α` (with the reversed inclusion ordering).
4545
finer, coarser, induced topology, coinduced topology
4646
-/
4747

48-
set_option autoImplicit true
49-
50-
5148
open Function Set Filter Topology
5249

5350
universe u v w
@@ -240,7 +237,7 @@ end TopologicalSpace
240237

241238
section Lattice
242239

243-
variable {t t₁ t₂ : TopologicalSpace α} {s : Set α}
240+
variable {α : Type*} {t t₁ t₂ : TopologicalSpace α} {s : Set α}
244241

245242
theorem IsOpen.mono (hs : IsOpen[t₂] s) (h : t₁ ≤ t₂) : IsOpen[t₁] s := h s hs
246243
#align is_open.mono IsOpen.mono
@@ -282,7 +279,7 @@ theorem discreteTopology_bot (α : Type*) : @DiscreteTopology α ⊥ :=
282279

283280
section DiscreteTopology
284281

285-
variable [TopologicalSpace α] [DiscreteTopology α]
282+
variable [TopologicalSpace α] [DiscreteTopology α] {β : Type*}
286283

287284
@[simp]
288285
theorem isOpen_discrete (s : Set α) : IsOpen s := (@DiscreteTopology.eq_bot α _).symm ▸ trivial
@@ -296,7 +293,7 @@ theorem isOpen_discrete (s : Set α) : IsOpen s := (@DiscreteTopology.eq_bot α
296293
@[simp] theorem dense_discrete {s : Set α} : Dense s ↔ s = univ := by simp [dense_iff_closure_eq]
297294

298295
@[simp]
299-
theorem denseRange_discrete {f : ι → α} : DenseRange f ↔ Surjective f := by
296+
theorem denseRange_discrete {ι : Type*} {f : ι → α} : DenseRange f ↔ Surjective f := by
300297
rw [DenseRange, dense_discrete, range_iff_surjective]
301298

302299
@[nontriviality, continuity]

Mathlib/Topology/ProperMap.lean

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -67,15 +67,13 @@ so don't hesitate to have a look!
6767
* [Stacks: Characterizing proper maps](https://stacks.math.columbia.edu/tag/005M)
6868
-/
6969

70-
set_option autoImplicit true
71-
7270
open Filter Topology Function Set
7371
open Prod (fst snd)
7472

73+
variable {X Y Z W ι : Type*} [TopologicalSpace X] [TopologicalSpace Y] [TopologicalSpace Z]
74+
[TopologicalSpace W] {f : X → Y}
7575

76-
77-
variable [TopologicalSpace X] [TopologicalSpace Y] [TopologicalSpace Z] [TopologicalSpace W]
78-
{f : X → Y}
76+
universe u v
7977

8078
/-- A map `f : X → Y` between two topological spaces is said to be **proper** if it is continuous
8179
and, for all `ℱ : Filter X`, any cluster point of `map f ℱ` is the image by `f` of a cluster point

0 commit comments

Comments
 (0)