chore: move Bootstrap.Data -> Lean.Data

This commit is contained in:
Mario Carneiro 2022-08-29 11:15:21 -04:00 committed by Leonardo de Moura
parent c089639b19
commit ebb5b97d73
45 changed files with 57 additions and 63 deletions

View file

@ -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

View file

@ -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

View file

@ -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

View file

@ -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

View file

@ -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

View file

@ -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)

View file

@ -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

View file

@ -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

View file

@ -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

View file

@ -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

View file

@ -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

View file

@ -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

View file

@ -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

View file

@ -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

View file

@ -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

View file

@ -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

View file

@ -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

View file

@ -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.

View file

@ -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

View file

@ -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

View file

@ -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

View file

@ -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

View file

@ -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. -/

View file

@ -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.

View file

@ -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

@ -1 +1 @@
Subproject commit b71e2f3a6c4d59b6ada8e22e297626e701dfd875
Subproject commit 6b0abded611a1b4315084d98628e2dda41d40283

View file

@ -4,7 +4,7 @@ Linear Diophantine equation solver
Author: Marc Huisinga
-/
import Bootstrap.Data.HashMap
import Lean.Data.HashMap
open Std

View file

@ -1,4 +1,4 @@
import Bootstrap.Data.PersistentHashMap
import Lean.Data.PersistentHashMap
import Lean.Data.Format
open Lean Std Std.PersistentHashMap

View file

@ -1,4 +1,4 @@
import Bootstrap.Data.PersistentHashMap
import Lean.Data.PersistentHashMap
import Lean.Data.Format
open Lean Std Std.PersistentHashMap

View file

@ -1,4 +1,4 @@
import Bootstrap.Data.PersistentHashMap
import Lean.Data.PersistentHashMap
import Lean.Data.Format
open Lean Std Std.PersistentHashMap

View file

@ -1,4 +1,4 @@
import Bootstrap
import Lean.Data.RBMap
open Std
def check (b : Bool) : IO Unit := do

View file

@ -1,4 +1,4 @@
import Bootstrap
import Lean.Data.HashSet
set_option linter.unusedVariables true

View file

@ -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

View file

@ -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'

View file

@ -1,4 +1,4 @@
import Bootstrap.Data.PersistentHashMap
import Lean.Data.PersistentHashMap
open Std
def m : PersistentHashMap Nat Nat :=

View file

@ -1,4 +1,4 @@
import Bootstrap
import Lean.Data.HashMap
inductive NEList (α : Type)
| uno : α → NEList α

View file

@ -1,4 +1,4 @@
import Bootstrap
import Lean.Data.HashMap
inductive NEList (α : Type)
| uno : α → NEList α

View file

@ -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

View file

@ -1,4 +1,4 @@
import Bootstrap.Data.PersistentArray
import Lean.Data.PersistentArray
def check [BEq α] (as : List α) : Bool :=
as.toPersistentArray.foldr (.::.) [] == as

View file

@ -1,4 +1,4 @@
import Bootstrap
import Lean.Data.PersistentArray
inductive Foo where
| mk (args : Std.PersistentArray Foo)