Skip to content

Commit ca31f02

Browse files
committed
chore: remove superfluous opens (leanprover-community#38462)
or downgrade them to `open scoped`. In particular, many `open Pointwise` can become `open scoped Pointwise`; probably they became bare `open` during mathport. Not exhaustive.
1 parent dddc142 commit ca31f02

58 files changed

Lines changed: 63 additions & 148 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

Archive/Imo/Imo1962Q4.lean

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,6 @@ in fact the simplest form of the set of solutions, and then prove it equals the
1616

1717
open Real
1818

19-
open scoped Real
20-
2119
namespace Imo1962Q4
2220

2321
noncomputable section

Archive/Imo/Imo1987Q1.lean

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,6 @@ open Equiv Fintype Function
2929

3030
open Finset (range sum_const)
3131

32-
open Set (Iic)
33-
3432
namespace Imo1987Q1
3533

3634
/-- The set of pairs `(x : α, σ : Perm α)` such that `σ x = x` is equivalent to the set of pairs

Archive/Imo/Imo2019Q2.lean

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -58,9 +58,7 @@ rather than more literally with `affineSegment`.
5858

5959

6060
open Affine Affine.Simplex EuclideanGeometry Module
61-
62-
open scoped Affine EuclideanGeometry Real
63-
61+
open scoped Real
6462

6563
attribute [local instance] FiniteDimensional.of_fact_finrank_eq_two
6664

Counterexamples/MapFloor.lean

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,8 +42,6 @@ noncomputable section
4242

4343
open Function Int Polynomial
4444

45-
open scoped Polynomial
46-
4745
/-- The integers with infinitesimals adjoined. -/
4846
def IntWithEpsilon :=
4947
ℤ[X] deriving Nontrivial, CommRing, Inhabited

Counterexamples/SeminormLatticeNotDistrib.lean

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,6 @@ This proves the lattice `Seminorm ℝ (ℝ × ℝ)` is not distributive.
1818
* https://en.wikipedia.org/wiki/Seminorm#Examples
1919
-/
2020

21-
2221
open Seminorm
2322

2423
open scoped NNReal

Counterexamples/SorgenfreyLine.lean

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,8 +34,7 @@ Prove that the Sorgenfrey line is a paracompact space.
3434

3535

3636
open Set Filter TopologicalSpace
37-
38-
open scoped Topology Filter Cardinal
37+
open scoped Topology Cardinal
3938

4039
namespace Counterexample
4140

Mathlib/Algebra/Algebra/Spectrum/Basic.lean

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,6 @@ This theory will serve as the foundation for spectral theory in Banach algebras.
4242

4343
@[expose] public section
4444

45-
4645
open Set
4746

4847
open scoped Pointwise Ring

Mathlib/Algebra/Category/Grp/Biproducts.lean

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,10 +17,7 @@ public import Mathlib.Tactic.CategoryTheory.Elementwise
1717

1818
@[expose] public section
1919

20-
21-
open CategoryTheory
22-
23-
open CategoryTheory.Limits
20+
open CategoryTheory Limits
2421

2522
universe w u
2623

Mathlib/Algebra/Category/Grp/Images.lean

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -17,16 +17,12 @@ from the fact that `AddCommGrpCat` is an abelian category.
1717

1818
@[expose] public section
1919

20-
21-
open CategoryTheory
22-
23-
open CategoryTheory.Limits
20+
open CategoryTheory Limits
2421

2522
universe u
2623

2724
namespace AddCommGrpCat
2825

29-
3026
-- Note that because `injective_of_mono` is currently only proved in `Type 0`,
3127
-- we restrict to the lowest universe here for now.
3228
variable {G H : AddCommGrpCat.{0}} (f : G ⟶ H)

Mathlib/Algebra/Category/Grp/Injective.lean

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,6 @@ in `Mathlib/Algebra/Category/Grp/EnoughInjectives.lean`.
2828

2929
open CategoryTheory
3030

31-
open Pointwise
32-
3331
universe u
3432

3533
variable (A : Type u) [AddCommGroup A]

0 commit comments

Comments
 (0)