chore: move Bootstrap.Data -> Lean.Data
This commit is contained in:
parent
c089639b19
commit
ebb5b97d73
45 changed files with 57 additions and 63 deletions
|
|
@ -3,5 +3,4 @@ Copyright (c) 2020 Microsoft Corporation. All rights reserved.
|
|||
Released under Apache 2.0 license as described in the file LICENSE.
|
||||
Authors: Leonardo de Moura
|
||||
-/
|
||||
import Bootstrap.Data
|
||||
import Bootstrap.Dynamic
|
||||
|
|
|
|||
|
|
@ -1,13 +0,0 @@
|
|||
/-
|
||||
Copyright (c) 2020 Microsoft Corporation. All rights reserved.
|
||||
Released under Apache 2.0 license as described in the file LICENSE.
|
||||
Authors: Leonardo de Moura
|
||||
-/
|
||||
import Bootstrap.Data.HashMap
|
||||
import Bootstrap.Data.HashSet
|
||||
import Bootstrap.Data.PersistentArray
|
||||
import Bootstrap.Data.PersistentHashMap
|
||||
import Bootstrap.Data.PersistentHashSet
|
||||
import Bootstrap.Data.AssocList
|
||||
import Bootstrap.Data.RBTree
|
||||
import Bootstrap.Data.RBMap
|
||||
|
|
@ -3,10 +3,11 @@ Copyright (c) 2020 Sebastian Ullrich. All rights reserved.
|
|||
Released under Apache 2.0 license as described in the file LICENSE.
|
||||
Authors: Sebastian Ullrich
|
||||
-/
|
||||
import Lean.Data.AssocList
|
||||
import Lean.Data.Format
|
||||
import Lean.Data.Parsec
|
||||
import Lean.Data.HashMap
|
||||
import Lean.Data.HashSet
|
||||
import Lean.Data.Json
|
||||
import Lean.Data.Xml
|
||||
import Lean.Data.JsonRpc
|
||||
import Lean.Data.KVMap
|
||||
import Lean.Data.LBool
|
||||
|
|
@ -16,9 +17,16 @@ import Lean.Data.Name
|
|||
import Lean.Data.Occurrences
|
||||
import Lean.Data.OpenDecl
|
||||
import Lean.Data.Options
|
||||
import Lean.Data.Parsec
|
||||
import Lean.Data.PersistentArray
|
||||
import Lean.Data.PersistentHashMap
|
||||
import Lean.Data.PersistentHashSet
|
||||
import Lean.Data.Position
|
||||
import Lean.Data.PrefixTree
|
||||
import Lean.Data.SMap
|
||||
import Lean.Data.Trie
|
||||
import Lean.Data.PrefixTree
|
||||
import Lean.Data.Xml
|
||||
import Lean.Data.NameTrie
|
||||
import Lean.Data.RBTree
|
||||
import Lean.Data.RBMap
|
||||
import Lean.Data.Rat
|
||||
|
|
|
|||
|
|
@ -3,7 +3,7 @@ Copyright (c) 2018 Microsoft Corporation. All rights reserved.
|
|||
Released under Apache 2.0 license as described in the file LICENSE.
|
||||
Author: Leonardo de Moura
|
||||
-/
|
||||
import Bootstrap.Data.AssocList
|
||||
import Lean.Data.AssocList
|
||||
namespace Std
|
||||
universe u v w
|
||||
|
||||
|
|
@ -4,7 +4,7 @@ Released under Apache 2.0 license as described in the file LICENSE.
|
|||
|
||||
Authors: Gabriel Ebner, Marc Huisinga
|
||||
-/
|
||||
import Bootstrap.Data.RBTree
|
||||
import Lean.Data.RBTree
|
||||
namespace Lean
|
||||
|
||||
-- mantissa * 10^-exponent
|
||||
|
|
|
|||
|
|
@ -6,7 +6,7 @@ Authors: Marc Huisinga, Wojciech Nawrocki
|
|||
-/
|
||||
import Init.Control
|
||||
import Init.System.IO
|
||||
import Bootstrap.Data.RBTree
|
||||
import Lean.Data.RBTree
|
||||
import Lean.Data.Json
|
||||
|
||||
/-! Implementation of JSON-RPC 2.0 (https://www.jsonrpc.org/specification)
|
||||
|
|
|
|||
|
|
@ -3,9 +3,9 @@ Copyright (c) 2018 Microsoft Corporation. All rights reserved.
|
|||
Released under Apache 2.0 license as described in the file LICENSE.
|
||||
Author: Leonardo de Moura
|
||||
-/
|
||||
import Bootstrap.Data.HashSet
|
||||
import Bootstrap.Data.RBMap
|
||||
import Bootstrap.Data.RBTree
|
||||
import Lean.Data.HashSet
|
||||
import Lean.Data.RBMap
|
||||
import Lean.Data.RBTree
|
||||
import Lean.Data.SSet
|
||||
namespace Lean
|
||||
|
||||
|
|
|
|||
|
|
@ -3,7 +3,7 @@ Copyright (c) 2019 Microsoft Corporation. All rights reserved.
|
|||
Released under Apache 2.0 license as described in the file LICENSE.
|
||||
Author: Leonardo de Moura
|
||||
-/
|
||||
import Bootstrap.Data.PersistentHashMap
|
||||
import Lean.Data.PersistentHashMap
|
||||
|
||||
namespace Std
|
||||
universe u v
|
||||
|
|
@ -3,7 +3,7 @@ Copyright (c) 2020 Microsoft Corporation. All rights reserved.
|
|||
Released under Apache 2.0 license as described in the file LICENSE.
|
||||
Authors: Leonardo de Moura
|
||||
-/
|
||||
import Bootstrap.Data.RBMap
|
||||
import Lean.Data.RBMap
|
||||
|
||||
namespace Lean
|
||||
open Std
|
||||
|
|
|
|||
|
|
@ -3,7 +3,7 @@ Copyright (c) 2017 Microsoft Corporation. All rights reserved.
|
|||
Released under Apache 2.0 license as described in the file LICENSE.
|
||||
Authors: Leonardo de Moura
|
||||
-/
|
||||
import Bootstrap.Data.RBMap
|
||||
import Lean.Data.RBMap
|
||||
namespace Std
|
||||
universe u v w
|
||||
|
||||
|
|
@ -3,8 +3,8 @@ Copyright (c) 2019 Microsoft Corporation. All rights reserved.
|
|||
Released under Apache 2.0 license as described in the file LICENSE.
|
||||
Authors: Leonardo de Moura
|
||||
-/
|
||||
import Bootstrap.Data.HashMap
|
||||
import Bootstrap.Data.PersistentHashMap
|
||||
import Lean.Data.HashMap
|
||||
import Lean.Data.PersistentHashMap
|
||||
universe u v w w'
|
||||
|
||||
namespace Lean
|
||||
|
|
|
|||
|
|
@ -5,7 +5,7 @@ Released under Apache 2.0 license as described in the file LICENSE.
|
|||
Author: Dany Fabian
|
||||
-/
|
||||
|
||||
import Bootstrap.Data.RBMap
|
||||
import Lean.Data.RBMap
|
||||
namespace Lean
|
||||
namespace Xml
|
||||
|
||||
|
|
|
|||
|
|
@ -3,7 +3,7 @@ Copyright (c) 2019 Microsoft Corporation. All rights reserved.
|
|||
Released under Apache 2.0 license as described in the file LICENSE.
|
||||
Authors: Leonardo de Moura
|
||||
-/
|
||||
import Bootstrap.Data.HashMap
|
||||
import Lean.Data.HashMap
|
||||
import Lean.ImportingFlag
|
||||
import Lean.Data.SMap
|
||||
import Lean.Declaration
|
||||
|
|
|
|||
|
|
@ -3,10 +3,10 @@ Copyright (c) 2018 Microsoft Corporation. All rights reserved.
|
|||
Released under Apache 2.0 license as described in the file LICENSE.
|
||||
Authors: Leonardo de Moura
|
||||
-/
|
||||
import Bootstrap.Data.HashMap
|
||||
import Bootstrap.Data.HashSet
|
||||
import Bootstrap.Data.PersistentHashMap
|
||||
import Bootstrap.Data.PersistentHashSet
|
||||
import Lean.Data.HashMap
|
||||
import Lean.Data.HashSet
|
||||
import Lean.Data.PersistentHashMap
|
||||
import Lean.Data.PersistentHashSet
|
||||
import Lean.Hygiene
|
||||
import Lean.Data.Name
|
||||
import Lean.Data.Format
|
||||
|
|
|
|||
|
|
@ -3,7 +3,7 @@ import Lean.Linter.Util
|
|||
import Lean.Elab.InfoTree
|
||||
import Lean.Server.InfoUtils
|
||||
import Lean.Server.References
|
||||
import Bootstrap.Data.HashMap
|
||||
import Lean.Data.HashMap
|
||||
|
||||
namespace Lean.Linter
|
||||
open Lean.Elab.Command Lean.Server Std
|
||||
|
|
|
|||
|
|
@ -3,7 +3,7 @@ Copyright (c) 2019 Microsoft Corporation. All rights reserved.
|
|||
Released under Apache 2.0 license as described in the file LICENSE.
|
||||
Authors: Leonardo de Moura
|
||||
-/
|
||||
import Bootstrap.Data.PersistentArray
|
||||
import Lean.Data.PersistentArray
|
||||
import Lean.Expr
|
||||
import Lean.Hygiene
|
||||
|
||||
|
|
|
|||
|
|
@ -3,7 +3,7 @@ Copyright (c) 2020 Microsoft Corporation. All rights reserved.
|
|||
Released under Apache 2.0 license as described in the file LICENSE.
|
||||
Authors: Leonardo de Moura
|
||||
-/
|
||||
import Bootstrap.Data.AssocList
|
||||
import Lean.Data.AssocList
|
||||
import Lean.Expr
|
||||
import Lean.LocalContext
|
||||
import Lean.Util.ReplaceExpr
|
||||
|
|
|
|||
|
|
@ -5,7 +5,7 @@ Authors: Sebastian Ullrich, Daniel Selsam, Wojciech Nawrocki
|
|||
-/
|
||||
import Lean.Meta.Basic
|
||||
import Lean.SubExpr
|
||||
import Bootstrap.Data.RBMap
|
||||
import Lean.Data.RBMap
|
||||
|
||||
/-!
|
||||
# Subexpr utilities for delaborator.
|
||||
|
|
|
|||
|
|
@ -3,7 +3,7 @@ Copyright (c) 2021 Microsoft Corporation. All rights reserved.
|
|||
Released under Apache 2.0 license as described in the file LICENSE.
|
||||
Authors: Daniel Selsam
|
||||
-/
|
||||
import Bootstrap.Data.RBMap
|
||||
import Lean.Data.RBMap
|
||||
import Lean.Meta.SynthInstance
|
||||
import Lean.Util.FindMVar
|
||||
import Lean.Util.FindLevelMVar
|
||||
|
|
|
|||
|
|
@ -5,7 +5,7 @@ Released under Apache 2.0 license as described in the file LICENSE.
|
|||
Authors: Marc Huisinga, Wojciech Nawrocki
|
||||
-/
|
||||
import Init.System.IO
|
||||
import Bootstrap.Data.RBMap
|
||||
import Lean.Data.RBMap
|
||||
|
||||
import Lean.Environment
|
||||
|
||||
|
|
|
|||
|
|
@ -6,7 +6,7 @@ Authors: Marc Huisinga, Wojciech Nawrocki
|
|||
-/
|
||||
import Init.System.IO
|
||||
import Init.Data.ByteArray
|
||||
import Bootstrap.Data.RBMap
|
||||
import Lean.Data.RBMap
|
||||
|
||||
import Lean.Elab.Import
|
||||
import Lean.Util.Paths
|
||||
|
|
|
|||
|
|
@ -5,7 +5,7 @@ Authors: Sebastian Ullrich, Daniel Selsam, Wojciech Nawrocki, E.W.Ayers
|
|||
-/
|
||||
import Lean.Meta.Basic
|
||||
import Lean.Data.Json
|
||||
import Bootstrap.Data.RBMap
|
||||
import Lean.Data.RBMap
|
||||
|
||||
namespace Lean
|
||||
|
||||
|
|
|
|||
|
|
@ -3,7 +3,7 @@ Copyright (c) 2019 Microsoft Corporation. All rights reserved.
|
|||
Released under Apache 2.0 license as described in the file LICENSE.
|
||||
Authors: Leonardo de Moura
|
||||
-/
|
||||
import Bootstrap.Data.HashMap
|
||||
import Lean.Data.HashMap
|
||||
|
||||
namespace Lean
|
||||
/-- Interface for caching results. -/
|
||||
|
|
|
|||
|
|
@ -3,7 +3,7 @@ Copyright (c) 2020 Microsoft Corporation. All rights reserved.
|
|||
Released under Apache 2.0 license as described in the file LICENSE.
|
||||
Authors: Leonardo de Moura
|
||||
-/
|
||||
import Bootstrap.Data.HashMap
|
||||
import Lean.Data.HashMap
|
||||
namespace Lean.SCC
|
||||
/-!
|
||||
Very simple implementation of Tarjan's SCC algorithm.
|
||||
|
|
|
|||
|
|
@ -3,10 +3,10 @@ Copyright (c) 2020 Microsoft Corporation. All rights reserved.
|
|||
Released under Apache 2.0 license as described in the file LICENSE.
|
||||
Authors: Leonardo de Moura
|
||||
-/
|
||||
import Bootstrap.Data.HashSet
|
||||
import Bootstrap.Data.HashMap
|
||||
import Bootstrap.Data.PersistentHashMap
|
||||
import Bootstrap.Data.PersistentHashSet
|
||||
import Lean.Data.HashSet
|
||||
import Lean.Data.HashMap
|
||||
import Lean.Data.PersistentHashMap
|
||||
import Lean.Data.PersistentHashSet
|
||||
|
||||
open ShareCommon
|
||||
namespace Lean.ShareCommon
|
||||
|
|
|
|||
2
src/lake
2
src/lake
|
|
@ -1 +1 @@
|
|||
Subproject commit b71e2f3a6c4d59b6ada8e22e297626e701dfd875
|
||||
Subproject commit 6b0abded611a1b4315084d98628e2dda41d40283
|
||||
|
|
@ -4,7 +4,7 @@ Linear Diophantine equation solver
|
|||
Author: Marc Huisinga
|
||||
-/
|
||||
|
||||
import Bootstrap.Data.HashMap
|
||||
import Lean.Data.HashMap
|
||||
|
||||
open Std
|
||||
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
import Bootstrap.Data.PersistentHashMap
|
||||
import Lean.Data.PersistentHashMap
|
||||
import Lean.Data.Format
|
||||
|
||||
open Lean Std Std.PersistentHashMap
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
import Bootstrap.Data.PersistentHashMap
|
||||
import Lean.Data.PersistentHashMap
|
||||
import Lean.Data.Format
|
||||
open Lean Std Std.PersistentHashMap
|
||||
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
import Bootstrap.Data.PersistentHashMap
|
||||
import Lean.Data.PersistentHashMap
|
||||
import Lean.Data.Format
|
||||
open Lean Std Std.PersistentHashMap
|
||||
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
import Bootstrap
|
||||
import Lean.Data.RBMap
|
||||
open Std
|
||||
|
||||
def check (b : Bool) : IO Unit := do
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
import Bootstrap
|
||||
import Lean.Data.HashSet
|
||||
|
||||
set_option linter.unusedVariables true
|
||||
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
import Bootstrap.Data.AssocList
|
||||
import Lean.Data.AssocList
|
||||
|
||||
def l : List (Prod Nat Nat) := [(1, 1), (2, 2)]
|
||||
#eval l -- works
|
||||
|
|
|
|||
|
|
@ -1,7 +1,7 @@
|
|||
(some Init.Prelude)
|
||||
(some Lean.CoreM)
|
||||
(some Lean.Elab.Term)
|
||||
(some Bootstrap.Data.HashMap)
|
||||
(some Lean.Data.HashMap)
|
||||
none
|
||||
none
|
||||
moduleOf.lean:16:0-16:9: error: unknown constant 'foo'
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
import Bootstrap.Data.PersistentHashMap
|
||||
import Lean.Data.PersistentHashMap
|
||||
|
||||
open Std
|
||||
def m : PersistentHashMap Nat Nat :=
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
import Bootstrap
|
||||
import Lean.Data.HashMap
|
||||
|
||||
inductive NEList (α : Type)
|
||||
| uno : α → NEList α
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
import Bootstrap
|
||||
import Lean.Data.HashMap
|
||||
|
||||
inductive NEList (α : Type)
|
||||
| uno : α → NEList α
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
import Bootstrap
|
||||
import Lean.Data.PersistentArray
|
||||
|
||||
def check (x : IO Nat) (expected : IO Nat) : IO Unit := do
|
||||
unless (← x) == (← expected) do
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
import Bootstrap.Data.PersistentArray
|
||||
import Lean.Data.PersistentArray
|
||||
|
||||
def check [BEq α] (as : List α) : Bool :=
|
||||
as.toPersistentArray.foldr (.::.) [] == as
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
import Bootstrap
|
||||
import Lean.Data.PersistentArray
|
||||
|
||||
inductive Foo where
|
||||
| mk (args : Std.PersistentArray Foo)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue