Skip to content

Commit

Permalink
chore: cleanup imports (leanprover#5825)
Browse files Browse the repository at this point in the history
  • Loading branch information
kim-em authored and tobiasgrosser committed Oct 27, 2024
1 parent 8a2351b commit 0d7f32a
Show file tree
Hide file tree
Showing 11 changed files with 6 additions and 25 deletions.
3 changes: 1 addition & 2 deletions src/Init/Control/StateRef.lean
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,7 @@ Authors: Leonardo de Moura, Sebastian Ullrich
The State monad transformer using IO references.
-/
prelude
import Init.System.IO
import Init.Control.State
import Init.System.ST

def StateRefT' (ω : Type) (σ : Type) (m : TypeType) (α : Type) : Type := ReaderT (ST.Ref ω σ) m α

Expand Down
2 changes: 0 additions & 2 deletions src/Init/Data/Option/Basic.lean
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,7 @@ Released under Apache 2.0 license as described in the file LICENSE.
Authors: Leonardo de Moura, Mario Carneiro
-/
prelude
import Init.Core
import Init.Control.Basic
import Init.Coe

namespace Option

Expand Down
4 changes: 0 additions & 4 deletions src/Init/Data/Repr.lean
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,6 @@ Author: Leonardo de Moura
-/
prelude
import Init.Data.Format.Basic
import Init.Data.Int.Basic
import Init.Data.Nat.Div
import Init.Data.UInt.BasicAux
import Init.Control.Id
open Sum Subtype Nat

open Std
Expand Down
1 change: 0 additions & 1 deletion src/Init/Data/String/Basic.lean
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ Author: Leonardo de Moura, Mario Carneiro
prelude
import Init.Data.List.Basic
import Init.Data.Char.Basic
import Init.Data.Option.Basic

universe u

Expand Down
9 changes: 2 additions & 7 deletions src/Init/Data/ToString/Basic.lean
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,9 @@ Released under Apache 2.0 license as described in the file LICENSE.
Author: Leonardo de Moura
-/
prelude
import Init.Data.String.Basic
import Init.Data.UInt.BasicAux
import Init.Data.Nat.Div
import Init.Data.Repr
import Init.Data.Int.Basic
import Init.Data.Format.Basic
import Init.Control.Id
import Init.Control.Option
import Init.Data.Option.Basic

open Sum Subtype Nat

open Std
Expand Down
2 changes: 0 additions & 2 deletions src/Init/System/FilePath.lean
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,6 @@ Authors: Leonardo de Moura, Sebastian Ullrich
-/
prelude
import Init.System.Platform
import Init.Data.String.Basic
import Init.Data.Repr
import Init.Data.ToString.Basic

namespace System
Expand Down
4 changes: 0 additions & 4 deletions src/Init/System/IO.lean
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,9 @@ Released under Apache 2.0 license as described in the file LICENSE.
Authors: Luke Nelson, Jared Roesch, Leonardo de Moura, Sebastian Ullrich, Mac Malone
-/
prelude
import Init.Control.Reader
import Init.Data.String
import Init.Data.ByteArray
import Init.System.IOError
import Init.System.FilePath
import Init.System.ST
import Init.Data.ToString.Macro
import Init.Data.Ord

open System
Expand Down
3 changes: 0 additions & 3 deletions src/Init/System/IOError.lean
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,7 @@ Authors: Simon Hudon
-/

prelude
import Init.Core
import Init.Data.UInt.Basic
import Init.Data.ToString.Basic
import Init.Data.String.Basic

/--
Imitate the structure of IOErrorType in Haskell:
Expand Down
1 change: 1 addition & 0 deletions src/Lean/Meta/LitValues.lean
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ Authors: Leonardo de Moura
-/
prelude
import Lean.Meta.Basic
import Init.Control.Option

namespace Lean.Meta

Expand Down
1 change: 1 addition & 0 deletions src/Lean/Meta/Offset.lean
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ Released under Apache 2.0 license as described in the file LICENSE.
Authors: Leonardo de Moura
-/
prelude
import Init.Control.Option
import Lean.Data.LBool
import Lean.Meta.InferType
import Lean.Meta.NatInstTesters
Expand Down
1 change: 1 addition & 0 deletions src/Lean/SubExpr.lean
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ prelude
import Lean.Meta.Basic
import Lean.Data.Json
import Lean.Data.RBMap
import Init.Control.Option

namespace Lean

Expand Down

0 comments on commit 0d7f32a

Please sign in to comment.