chars int64 40 24k | content_type stringclasses 9
values | id stringlengths 13 64 | source stringclasses 5
values | subset stringclasses 31
values | text stringlengths 40 24k |
|---|---|---|---|---|---|
7,777 | lean_file_chunk | af56c3658e56a7fe8ef8cf68436aad94130207b9558c139c78f1c37490a8d424 | lean_source_file | lean_toolchain_source_file_chunks | if lvals.isEmpty && namedArgs.isEmpty && args.isEmpty then
/- Recall that elabAppFn is used for elaborating atomics terms **and** choice nodes that may contain
arbitrary terms. If they are not being used as a function, we should elaborate using the expectedType. -/
let s ← observing do
... |
4,250 | lean_file_chunk | 03bd6503eaf25ec636804b2966edf24fdbe4bd5544aaa21e4fd474a0a43c4109 | lean_source_file | lean_toolchain_source_file_chunks | /-
Copyright (c) 2021 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Leonardo de Moura
-/
module
prelude
public import Lean.Elab.Util
public import Lean.Parser.Command
meta import Lean.Parser.Command
import Init.Omega
public section
namespace ... |
1,191 | lean_file_chunk | c29c12718b3283aca125d90706eaa5afe9ca271edcddd984e21ab5b63d6340c2 | lean_source_file | lean_toolchain_source_file_chunks | /-
Copyright (c) 2025 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Sebastian Graf
-/
module
prelude
public import Lean.Parser.Term
public section
namespace Lean.Elab
structure WhereFinallyView where
ref : Syntax
tactic : TSynta... |
4,859 | lean_file_chunk | 1525880df304da1e88778af3392abda551b2852de06050000a0f52547ce08a06 | lean_source_file | lean_toolchain_source_file_chunks | /-
Copyright (c) 2025 Lean FRO, LLC. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Kim Morrison
-/
module
prelude
public import Lean.Elab.Tactic.Basic
/-!
# Task creation utilities for Lean's tactic monads.
This file provides `asTask` and `asTask'` functions for va... |
3,602 | lean_file_chunk | b0b338eafe92c0de38d9ac547b4e36dabd4792118055777f14a2c5f74676f652 | lean_source_file | lean_toolchain_source_file_chunks | /-
Copyright (c) 2021 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Leonardo de Moura
-/
module
prelude
public import Lean.Elab.Syntax
public import Lean.Elab.AuxDef
public section
namespace Lean.Elab.Command
open Lean.Syntax
open Lean.Parser... |
2,028 | lean_file_chunk | 8a2cc2c89e32399b22aee5eba3bc516be09832905a7ff7013ccbec16ff38bc14 | lean_source_file | lean_toolchain_source_file_chunks | /-
Copyright (c) 2021 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Leonardo de Moura
-/
module
prelude
public import Lean.Elab.MacroArgUtil
public section
namespace Lean.Elab.Command
open Lean.Syntax
open Lean.Parser.Term hiding macroArg
ope... |
23,969 | lean_file_chunk | b5bf381d947fad2c233ba1d134d822a36e5cf231afa90e3353894f537e76b846 | lean_source_file | lean_toolchain_source_file_chunks | /-
Copyright (c) 2020 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Leonardo de Moura, Sebastian Ullrich
-/
module
prelude
public import Lean.Util.ForEachExpr
public import Lean.Util.OccursCheck
public import Lean.Elab.Tactic.Basic
public impor... |
11,076 | lean_file_chunk | f4e5f263856a689d4b49cf7e4561a356b5266130fcd3f1c81df307214ba5be6a | lean_source_file | lean_toolchain_source_file_chunks | withTacticInfoContext tacticCode[0] do
withNarrowedArgTacticReuse (argIdx := 1) (evalTactic ·) tacticCode
-- Pending tactic mvars may escape from `evalTactic` to here (#4436), so make sure
-- incrementality is disabled so they cannot be confused for top-level tactic blocks
... |
8,583 | lean_file_chunk | be6e46e97babaa035cc78c0a6431a059f4f3bdad58c47a627f83bfbedd13698e | lean_source_file | lean_toolchain_source_file_chunks | /-
Copyright (c) 2019 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Leonardo de Moura, Sebastian Ullrich
-/
module
prelude
public import Lean.Language.Lean
public import Lean.Server.References
public import Lean.Util.Profiler
import Lean.Compil... |
545 | lean_file_chunk | 0e3910e11360bd8cae4e227528bc3744fd572c6a226bc007050623dd7a2eb4c2 | lean_source_file | lean_toolchain_source_file_chunks | /-
Copyright (c) 2020 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Leonardo de Moura
-/
module
prelude
public import Lean.Elab.PreDefinition.Basic
public import Lean.Elab.PreDefinition.Structural
public import Lean.Elab.PreDefinition.Main
publ... |
1,927 | lean_file_chunk | e27b70ad776b40e580097775cbae83b1945038fc7ce95da668acc14dd7033904 | lean_source_file | lean_toolchain_source_file_chunks | /-
Copyright (c) 2021 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Leonardo de Moura
-/
module
prelude
public import Lean.Meta.Basic
public section
namespace Lean.Elab.Term
/--
Set `isDefEq` configuration for the elaborator.
Note that w... |
10,705 | lean_file_chunk | 796141f998aa751b9d0d50e71a6681c3149bc248cb528e933da81683c4a9d5d1 | lean_source_file | lean_toolchain_source_file_chunks | /-
Copyright (c) 2024 Lean FRO, LLC. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Kyle Miller
-/
module
prelude
public import Lean.Elab.Command
import Init.Data.String.Modify
import Init.Omega
public section
/-!
# Name generator for declarations
This module provi... |
23,926 | lean_file_chunk | 9e3dd312395922a05ffaa08a52596e07cc3286ccf3ea9078690013eda49d9502 | lean_source_file | lean_toolchain_source_file_chunks | /-
Copyright (c) 2020 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Leonardo de Moura
-/
module
prelude
public import Lean.Elab.Deriving.Basic
public import Lean.Elab.PreDefinition.Main
import all Lean.Elab.ErrorUtils
public section
namespace Le... |
23,903 | lean_file_chunk | 528133517067c8e0aa9e58fd8c323830112e7cf1eae0e53dc165386831159c15 | lean_source_file | lean_toolchain_source_file_chunks | withDeclName header.declName <| withLevelNames header.levelNames do
let valStx ← declValToTerm header.value header.type
(if header.kind.isTheorem && !deprecated.oldSectionVars.get (← getOptions) then withHeaderSecVars vars sc #[header] else fun x => x #[]) fun vars => do
withLCtx' ((← getLCtx).modifyL... |
23,939 | lean_file_chunk | 65981e836409b5d12820c55aa84946a11863ab4f2cb5fbf08d531cb74e2b940c | lean_source_file | lean_toolchain_source_file_chunks | throwErrorAt header.ref "type of theorem `{header.declName}` is not a proposition{indentExpr type}"
return preDefs.push {
ref := getDeclarationSelectionRef header.ref
kind := header.kind
declName := header.declName
binders := header.binders
numSectionVars := secti... |
3,412 | lean_file_chunk | fbfdf87d04d0ada943434725a084ae1b918cb793e39171948820533d0b83a08b | lean_source_file | lean_toolchain_source_file_chunks | -- includes state from elaboration of previous headers!) should be unchanged.
guard reusedAllHeaders
let old ← snap.old?
-- blocking wait, `HeadersParsedSnapshot` (and hopefully others) should be quick
let old ← old.val.get.toTyped? DefsParsedSnapshot
let oldParsed ← ol... |
18,795 | lean_file_chunk | 47577b2aae2339889b1ee703fadeec1be542ed878a13e87190572a8377853177 | lean_source_file | lean_toolchain_source_file_chunks | /-
Copyright (c) 2021 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Leonardo de Moura
-/
module
prelude
public import Lean.Elab.Arg
public import Lean.Elab.MatchAltView
public import Init.Syntax
import Init.Data.Nat.Linear
import Init.Omega
pu... |
7,883 | lean_file_chunk | 53174bfc45f9b32f5bbd69214a07bb56a297a353a1a54f70967dbf945715a733 | lean_source_file | lean_toolchain_source_file_chunks | /-
Copyright (c) 2024 Amazon.com, Inc. or its affiliates. All Rights Reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Leonardo de Moura
-/
module
prelude
public import Lean.Elab.Term
public section
namespace Lean.Elab.Term
namespace MatchExpr
/--
`match_expr` alternative. Recall... |
1,721 | lean_file_chunk | e12b11764a723e217f63226dc86616c3a43d8bf3154fa8adcd8092bc4f1c63d1 | lean_source_file | lean_toolchain_source_file_chunks | /-
Copyright (c) 2021 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Gabriel Ebner
-/
module
prelude
public import Lean.Elab.MacroArgUtil
public import Lean.Linter.MissingDocs
public section
namespace Lean.Elab.Command
@[builtin_command_elab ... |
3,974 | lean_file_chunk | 62d5ad3e84960b28d3b3858b243c141d76776b9c7d615354ea74e70b500a4fb8 | lean_source_file | lean_toolchain_source_file_chunks | /-
Copyright (c) 2019 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Leonardo de Moura, Sebastian Ullrich
-/
module
prelude
public import Lean.Parser.Module
meta import Lean.Parser.Module
import Lean.Compiler.ModPkgExt
public section
public se... |
23,936 | lean_file_chunk | 826d6f994305b76d749992b90fd26d956bdda6170d072080325093742fe6e297 | lean_source_file | lean_toolchain_source_file_chunks | /-
Copyright (c) 2020 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Leonardo de Moura, Mario Carneiro
-/
module
prelude
public import Lean.Meta.Match.Match
public import Lean.Meta.GeneralizeVars
public import Lean.Elab.BindersUtil
public import... |
23,999 | lean_file_chunk | c16e1e614637b51786b567b41cb1fd8f13b9897da0e0c0ad383b73faa53723aa | lean_source_file | lean_toolchain_source_file_chunks | private partial def packMatchTypePatterns (matchType : Expr) (ps : Array Expr) : MetaM Expr :=
ps.foldlM (init := matchType) fun result p => mkAppM ``PProd.mk #[result, p]
/-- The inverse of `packMatchTypePatterns`. -/
private partial def unpackMatchTypePatterns (p : Expr) : Expr × Array Expr :=
if p.isAppOf ``PPr... |
13,169 | lean_file_chunk | afc0f071e4d19d42c1345e0c943f76cc3e0ac004261939e9f9400221cc413762 | lean_source_file | lean_toolchain_source_file_chunks | let mut i := 0
for alt in altLHSS do
if result.unusedAltIdxs.contains i then
withRef alt.ref do withInPattern do withExistingLocalDecls alt.fvarDecls do
let pats ← alt.patterns.mapM fun p => return toMessageData (← Pattern.toExpr p)
let pats := MessageData.joinSep pats ", "
... |
1,133 | lean_file_chunk | 9351003f21b77619783752a69fab9384b4c1fc4de8de7f1daed59e687e725656 | lean_source_file | lean_toolchain_source_file_chunks | /-
Copyright (c) 2021 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Leonardo de Moura
-/
module
prelude
public import Lean.Expr
public section
namespace Lean
private def recAppKey := `_recApp
/--
We store the syntax at recursive application... |
23,991 | lean_file_chunk | 65dae76eb1da5bf7035ab130b8fa9d37004578f32474a4c66feb200d6d425062 | lean_source_file | lean_toolchain_source_file_chunks | /-
Copyright (c) 2025 Lean FRO, LLC. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Kim Morrison
-/
module
prelude
public import Lean.Elab.Task
/-!
# Iterator-based parallelization for Lean's tactic monads.
This file provides utilities for running computations in pa... |
185 | lean_file_chunk | bc7ab1703a7218924c2a22f4a0e9ad1cd1567d6ef8c2587cf61c744484a42652 | lean_source_file | lean_toolchain_source_file_chunks | match result with
| .ok value =>
if cancel then cancelHook
return value
| .error _ => continue
throwError "All parallel tasks failed"
end Lean.Elab.Tactic.TacticM |
2,830 | lean_file_chunk | 848e8909cc20ea6fa7ce90fa04a38090c1a4fedb3b98be4c6ef15371b26b464a | lean_source_file | lean_toolchain_source_file_chunks | /-
Copyright (c) 2021 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Leonardo de Moura
-/
module
prelude
public import Lean.Elab.InfoTree
public import Init.Syntax
public section
namespace Lean.Elab
variable [Monad m] [MonadOptions m] [MonadEr... |
16,906 | lean_file_chunk | 8624dac500db6028bba280ab89503ab2bfa5890b83bafec1b8f4648374ee716a | lean_source_file | lean_toolchain_source_file_chunks | /-
Copyright (c) 2026 Lean FRO, LLC. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Sebastian Ullrich
-/
module
prelude
public import Lean.Elab.Do.Basic
meta import Lean.Parser.Do
import Std.Internal.Async.TCP
/-!
# Interactive Debug Expression Evaluator (`idbg`)
`i... |
2,392 | lean_file_chunk | ddbed18ac60837e4eea66f9552cfed650da13c98d18d69a8bb47524549330e38 | lean_source_file | lean_toolchain_source_file_chunks | /-
Copyright (c) 2025 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Rob Simmons
-/
module
prelude
import Lean.Message
namespace Lean
/--
Translate numbers (1, 2, 3, 212, 322 ...) to ordinals with appropriate English-language names for
small o... |
23,916 | lean_file_chunk | 57722a00eb9520a5797cb91742f8029329d5f214fc3d5ce4ed2252e85357c107 | lean_source_file | lean_toolchain_source_file_chunks | /-
Copyright (c) 2019 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Leonardo de Moura
-/
module
prelude
public import Lean.Elab.Match
import Lean.Linter.Basic
public section
namespace Lean.Elab.Term
open Meta
open Lean.Parser.Term
open TSynta... |
18,825 | lean_file_chunk | 8b54533fae1f9e7109868f92c18904035021813017964a2075e92639b415e45a | lean_source_file | lean_toolchain_source_file_chunks | Sanity-checks the number of patterns in each alternative of a definition by pattern matching.
Specifically, verifies that all alternatives have the same number of patterns and that the number
of patterns is upper-bounded by the number of (dependent) arrows in the expected type.
Note: This function assumes that the num... |
16,032 | lean_file_chunk | 3bb335c5a6eea13521f93680ccd0d1f105ba9a3ac3db61278bf3bba2ab94cad5 | lean_source_file | lean_toolchain_source_file_chunks | /-
Copyright (c) 2020 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Leonardo de Moura, Sebastian Ullrich
-/
module
prelude
public import Lean.Elab.MutualDef
public import Lean.Elab.MutualInductive
import Lean.Compiler.ExternAttr
public section... |
23,958 | lean_file_chunk | 598cf881d0e02309f976abca398c8dcbee99096697aae0a17e0e848e0801fda8 | lean_source_file | lean_toolchain_source_file_chunks | /-
Copyright (c) 2021 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Leonardo de Moura, Kyle Miller, Sebastian Ullrich
-/
module
prelude
public import Lean.Elab.App
public import Lean.Elab.BuiltinNotation
public section
/-! # Auxiliary elabora... |
4,965 | lean_file_chunk | bc237f1a1dc524228c83dbe9cc575bcdfb3cb9836c8571bc5be4c23478cd12bc | lean_source_file | lean_toolchain_source_file_chunks | - `binrel_no_prop% R x y` elaborates `R x y` like `binrel% R x y`, but if the resulting type for `x` and `y`
is `Prop` they are coerced to `Bool`.
This is used for relations such as `==` which do not support `Prop`, but we still want
to be able to write `(5 > 2) == (2 > 1)` for example.
-/
def elabBinRelCor... |
7,789 | lean_file_chunk | ca9b78057594c1c4a432f6fa638ed753b4b5a6f182e835be9886fb6d36ba74eb | lean_source_file | lean_toolchain_source_file_chunks | /-
Copyright (c) 2020 Wojciech Nawrocki. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Wojciech Nawrocki, Marc Huisinga
-/
module
prelude
public import Init.System.Uri
public import Lean.Data.Lsp.Communication
public import Lean.Data.Lsp.Diagnostics
public import Le... |
301 | lean_file_chunk | 8a9c52bbdf011fcb5926e8365450314727f2122d10256bf3c2c38970124bbfa4 | lean_source_file | lean_toolchain_source_file_chunks | /-
Copyright (c) 2021 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Wojciech Nawrocki
-/
module
prelude
public import Lean.Server.Rpc.Basic
public import Lean.Server.Rpc.Deriving
public import Lean.Server.Rpc.RequestHandling |
23,957 | lean_file_chunk | 6141b01f1a079e8aa56232a7297f3d1b1fcc85f0a0b789e78a130b21dc8838e3 | lean_source_file | lean_toolchain_source_file_chunks | /-
Copyright (c) 2021 Wojciech Nawrocki. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Wojciech Nawrocki, Marc Huisinga
-/
module
prelude
public import Lean.Server.RequestCancellation
public import Lean.Server.FileSource
public import Lean.Server.FileWorker.Utils... |
11,110 | lean_file_chunk | a25a796f36decd1dae33fbf13190219f6f4b6cbf3a71dce866e076d9713a9a86 | lean_source_file | lean_toolchain_source_file_chunks | inductive RequestHandlerCompleteness where
| complete
/--
A request handler is partial if the LSP spec states that the request method implemented by
the handler should be responded to with the full state of the document, but our implementation
of the handler only returns a partial result for the document
(e... |
21,182 | lean_file_chunk | 55c80b5304e265e8b6ef16213eda0b37e30e0e8a1d214baa72d32df7c111f128 | lean_source_file | lean_toolchain_source_file_chunks | /-
Copyright (c) 2021 Wojciech Nawrocki. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Wojciech Nawrocki
-/
module
prelude
public import Lean.DocString
public import Lean.PrettyPrinter
public section
namespace Lean.Elab
open Lean.Parser.Tactic.Doc (alternativeOfT... |
2,750 | lean_file_chunk | 99cda69368ac361511fa0c7fa431eebb3503b2d06ef389e7e40ba21d1f99eefd | lean_source_file | lean_toolchain_source_file_chunks | /-
Copyright (c) 2021 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Leonardo de Moura, Marc Huisinga
-/
module
prelude
public import Lean.Server.Completion.CompletionCollectors
public import Std.Data.HashMap
public section
namespace Lean.Serv... |
22,446 | lean_file_chunk | e0eb1bf0fbb4ca5553e2e603db03fa3348b4e5b60c06846fda891e1e1a23cc21 | lean_source_file | lean_toolchain_source_file_chunks | /-
Copyright (c) 2025 Lean FRO. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Author: Marc Huisinga
-/
module
prelude
import Lean.Server.FileWorker.WidgetRequests
import Lean.Widget.UserWidget
/-!
This file includes a complete overview over the Lean LSP API for documentatio... |
3,650 | lean_file_chunk | c7e4b23f3628e1e9bddb1a1f77d24203fe65cc43604d2c2290c08422e5e6143b | lean_source_file | lean_toolchain_source_file_chunks | /-
Copyright (c) 2025 Lean FRO. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Author: Marc Huisinga
-/
module
prelude
import Std.Time
public import Lean.Data.Lsp.InitShutdown
namespace Lean.Server.Logging
public structure LogConfig where
isEnabled : Bool
logFile : Syst... |
3,109 | lean_file_chunk | 38ad73b65a96ef03f52e85716b9a3f69dd77a7d6c066740359757d47270567a3 | lean_source_file | lean_toolchain_source_file_chunks | /-
Copyright (c) 2025 Lean FRO, LLC. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Marc Huisinga
-/
module
prelude
public import Lean.Server.ServerTask
public import Init.System.Promise
public section
namespace Lean.Server
structure RequestCancellationToken where
... |
23,888 | lean_file_chunk | 8787456debce946c693660c55a02c9b7f144ca07c367b71729720786b55052ef | lean_source_file | lean_toolchain_source_file_chunks | /-
Copyright (c) 2021 Joscha Mennicken. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Joscha Mennicken
-/
module
prelude
public import Lean.Data.Lsp.Internal
public import Lean.Server.Utils
public import Lean.Elab.Import
public section
/-! # Representing collected... |
9,750 | lean_file_chunk | cfecedbfcc48683b22c31246ccd2637b60632354a21653d10eef7d05b54c301b | lean_source_file | lean_toolchain_source_file_chunks | | return { self with workers := self.workers.insert name { moduleUri, version, directImports := ∅, isSetupFailure? := none, refs, decls } }
let directImports := workerRefs.directImports
let isSetupFailure? := workerRefs.isSetupFailure?
match compare version workerRefs.version with
| .lt => return self
| .gt =... |
5,790 | lean_file_chunk | 9a690113a102712888560ea69d707dd818139165bbda20a8972dfa3378681d5b | lean_source_file | lean_toolchain_source_file_chunks | /-
Copyright (c) 2025 Lean FRO, LLC. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Marc Huisinga
-/
module
prelude
public import Init.Task
public import Init.System.IO
public section
/-!
This file provides a thin `ServerTask` wrapper over the `Task` API.
All calls ... |
4,504 | lean_file_chunk | a4d05eb31290c2fa200515781ed58fb7bf558cff0bc92a3ebc5e4b496c1b37fb | lean_source_file | lean_toolchain_source_file_chunks | /-
Copyright (c) 2020 Marc Huisinga. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Marc Huisinga
-/
module
prelude
public import Lean.Data.Lsp
public section
namespace Lean.Lsp
class FileSource (α : Type) where
fileSource : α → DocumentUri
export FileSource (fi... |
10,989 | lean_file_chunk | 1faa10388f405c950d8f01be5ac19502a566655e24956d34fb97a8883831f3aa | lean_source_file | lean_toolchain_source_file_chunks | /-
Copyright (c) 2022 Sebastian Ullrich. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Sebastian Ullrich, Lars König, Wojciech Nawrocki
-/
module
prelude
public import Lean.Server.Utils
public import Lean.Data.Lsp.Internal
public import Lean.Util.CollectFVars
public... |
23,990 | lean_file_chunk | 9351a62a64274985fda4d7fe7ec6718b2c8af57cc14776bd107d49af706c9c0f | lean_source_file | lean_toolchain_source_file_chunks | /-
Copyright (c) 2020 Marc Huisinga. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Marc Huisinga, Wojciech Nawrocki
-/
module
prelude
public import Lean.Data.FuzzyMatching
public import Lean.Server.Requests
public import Lean.Server.References
public import Lean.Se... |
23,962 | lean_file_chunk | 0274a06e777d16d3376389a9ac3dc1751ae629e160326e63adc6b1acc090ffbd | lean_source_file | lean_toolchain_source_file_chunks | let s ← read
s.importData.modify fun importData =>
importData.update fw.doc.uri (.ofList params.importClosure.toList)
def findDefinitions (fw : FileWorker) (p : TextDocumentPositionParams) :
ServerM (Array Location) := do
let module := fw.doc.mod
let references ← getReferences
let mut def... |
20,349 | lean_file_chunk | c79ae05d1a826cdb8c50a761651fea9281512f99e6d9f399982e8be9d96f3100 | lean_source_file | lean_toolchain_source_file_chunks | let changes := p.contentChanges
let some fw ← getFileWorker? p.textDocument.uri
-- Global search and replace in VS Code will send `didChange` to files that were never opened.
| return
let oldDoc := fw.doc
let newVersion := doc.version?.getD 0
if changes.isEmpty then
return
let newD... |
294 | lean_file_chunk | a5d54ce02be86635599323e1242f1a51920d7a1931cbef7cc42dfc58ecea565f | lean_source_file | lean_toolchain_source_file_chunks | /-
Copyright (c) 2022 E.W.Ayers. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: E.W.Ayers
-/
module
prelude
public import Lean.Server.CodeActions.Attr
public import Lean.Server.CodeActions.Basic
public import Lean.Server.CodeActions.Provider |
2,265 | lean_file_chunk | d9b3a5a85a20377fe588e4c9784d245fc789638b6cab9b17f7598a095cbb83ea | lean_source_file | lean_toolchain_source_file_chunks | /-
Copyright (c) 2020 Wojciech Nawrocki. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Wojciech Nawrocki
-/
module
prelude
public import Lean.Elab.Import
public import Lean.Elab.Command
public import Lean.Widget.InteractiveDiagnostic
public section
/-! One can t... |
23,946 | lean_file_chunk | 4632879666d606590f8888dc474224d683653206ba347e60be1e8766e03bed58 | lean_source_file | lean_toolchain_source_file_chunks | /-
Copyright (c) 2020 Marc Huisinga. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Marc Huisinga, Wojciech Nawrocki
-/
module
prelude
public import Std.Sync.Channel
public import Lean.Language.Lean
public import Lean.Server.FileWorker.Utils
public import Lean.S... |
23,983 | lean_file_chunk | 12d2e70a8064166324ea083812905a774c0bfcb3c3e47dfa1a4ea7e2991f2eaf | lean_source_file | lean_toolchain_source_file_chunks | o.writeSerializedLspMessage serialized |>.catchExceptions (fun _ => pure ())
return chanOut
getImportClosure? (snap : Language.Lean.InitialSnapshot) : Array Name := Id.run do
let some snap := snap.result?
| return #[]
let some snap ← snap.processedSnap.get.result?
| return #[]
... |
955 | lean_file_chunk | 5a02b52b088eb852957d5d4f75ee31a2b12d574d6b5d6dfa594cd5ce682ee2c4 | lean_source_file | lean_toolchain_source_file_chunks | let refreshTasks ← runRefreshTasks
mainLoop i
for refreshTask in refreshTasks do
refreshTask.cancel
catch err =>
let st ← get
writeErrorDiag st.doc.meta err
throw err
where
writeErrorDiag (doc : DocumentMeta) (err : Error) : IO Unit := do
o.writeLspMessage <| mkPublishDia... |
4,964 | lean_file_chunk | 14e5d1a880b37059a01ddee4a0bfdbe6b2f7ed1b2ee82d4ae43f4bae0a1405b8 | lean_source_file | lean_toolchain_source_file_chunks | /-
Copyright (c) 2020 Wojciech Nawrocki. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Wojciech Nawrocki
-/
module
prelude
public import Lean.Server.ServerTask
public section
namespace IO
universe u v
/-- An async IO list is like a lazy list but instead of being... |
23,927 | lean_file_chunk | 0a88d5e0fc97adede15f9b173a3402e52b5644dbda49f844c2e11abd31990704 | lean_source_file | lean_toolchain_source_file_chunks | /-
Copyright (c) 2023 Lean FRO. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Implementation of the Lean language: parsing and processing of header and commands, incremental
recompilation
Authors: Sebastian Ullrich
-/
module
prelude
public import Lean.Language.Util
public ... |
17,539 | lean_file_chunk | fadf19d2a7331fecdcd37db8fb39ab3a769751f45753ab8303ba6c77386e57f1 | lean_source_file | lean_toolchain_source_file_chunks | -- ...and the edit is after the second-next command (see note [Incremental Parsing])...
if let some nextCom ← processed.firstCmdSnap.get? then
if let some nextNextCom ← nextCom.nextCmdSnap?.bindM (·.get?) then
if (← isBeforeEditPos nextNextCom.parserState.pos) then
--... |
1,114 | lean_file_chunk | 21d8ec8dc293e5999f8366bc2e71ce076147f370d3023ad51f62f1c3af7d915a | lean_source_file | lean_toolchain_source_file_chunks | /-
Copyright (c) 2023 Lean FRO. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Additional snapshot functionality that needs further imports.
Authors: Sebastian Ullrich
-/
module
prelude
public import Lean.Elab.InfoTree
import Init.Data.Format.Macro
public section
namespac... |
16,879 | lean_file_chunk | d3c0281a1c8f773a51a6fd3e07304e4c4d1cc7f8195fc60ddb7659da48a834a9 | lean_source_file | lean_toolchain_source_file_chunks | /-
Copyright (c) 2023 Lean FRO. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
The generic interface of a `#lang` language processor used by the language server and cmdline
driver. See the [server readme](../Server/README.md#worker-architecture) for an overview.
Authors: Seba... |
23,914 | lean_file_chunk | c6ee1cf69cdd4277fd70c93aebc33e5dbfcec6ddb52fb76e42f99c00a14b8855 | lean_source_file | lean_toolchain_source_file_chunks | /-
Copyright (c) 2019 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Leonardo de Moura, Sebastian Ullrich
-/
module
prelude
public import Lean.Parser.Do
import Lean.DocString.Parser
meta import Lean.Parser.Do
meta import Lean.DocString.Parser
p... |
19,180 | lean_file_chunk | 16f5bd880501a0c13281791df9d7de079d7818dc5f416a10e23a86a174e237ac | lean_source_file | lean_toolchain_source_file_chunks | "#check_failure " >> termParser -- Like `#check`, but succeeds only if term does not type check
/--
`#import_path Foo` prints the transitive import chain that brings the declaration `Foo`
into the current file's scope.
-/
@[builtin_command_parser] def importPath := leading_parser
"#import_path " >> ident
/--
`assert_... |
8,974 | lean_file_chunk | df76d9dcf9e01fdbddff5d25837261b94846249fd8996c7b942511527e9e5af5 | lean_source_file | lean_toolchain_source_file_chunks | /-
Copyright (c) 2019 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Leonardo de Moura, Sebastian Ullrich
-/
module
prelude
public import Lean.Parser.Module.Syntax
meta import Lean.Parser.Module.Syntax
import Init.While
meta import Lean.Parser.E... |
3,275 | lean_file_chunk | 5a12ebd896567190c421830129eb747bc004a10e6f85993c353484c1595ee1d5 | lean_source_file | lean_toolchain_source_file_chunks | /-
Copyright (c) 2020 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Leonardo de Moura
-/
module
prelude
public import Lean.Parser.Extra
public section
namespace Lean.Parser
builtin_initialize
registerBuiltinParserAttribute `builtin_prio_pa... |
2,907 | lean_file_chunk | fb4993695c2bc465847087d3119661c785f19a6b41527841562ce45958ef71cb | lean_source_file | lean_toolchain_source_file_chunks | /-
Copyright (c) 2020 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Leonardo de Moura
-/
module
prelude
public import Lean.Parser.Basic
public section
namespace Lean.Parser
def isQuotableCharForStrInterpolant (c : Char) : Bool :=
c == '{' |... |
23,952 | lean_file_chunk | db01080cc8805bb0302dc17faf0d7fd14e93651dfa70790c619e6faa1ec448ae | lean_source_file | lean_toolchain_source_file_chunks | /-
Copyright (c) 2020 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Leonardo de Moura, Sebastian Ullrich
-/
module
prelude
public import Lean.Parser.Basic
public import Lean.ScopedEnvExtension
import Lean.BuiltinDocAttr
public section
/-! Ext... |
11,376 | lean_file_chunk | 8327e67adf0b2faf02d87258d3bebee1fd946de61e22339e870a25c35980deba | lean_source_file | lean_toolchain_source_file_chunks | declareBuiltinParser `Lean.Parser.addBuiltinTrailingParser catName declName prio
def getParserPriority (args : Syntax) : Except String Nat :=
match args.getNumArgs with
| 0 => pure 0
| 1 => match (args.getArg 0).isNatLit? with
| some prio => pure prio
| none => throw s!"Invalid parser attribute: Numeral ... |
7,020 | lean_file_chunk | dbae09b737f1297e85e4ddd049df68e2b1dad975f4aed812e2b0ab1fcdb045ed | lean_source_file | lean_toolchain_source_file_chunks | /-
Copyright (c) 2019 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Leonardo de Moura, Sebastian Ullrich
-/
module
prelude
public import Lean.Parser.Command
public section
namespace Lean
namespace Parser
builtin_initialize
registerBuiltinP... |
23,967 | lean_file_chunk | de59972f5dd2d45e5f517d337c6afa5a0580d23466ef482ade77141177a23f6b | lean_source_file | lean_toolchain_source_file_chunks | /-
Copyright (c) 2019 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Leonardo de Moura, Sebastian Ullrich
-/
module
prelude
public import Lean.Parser.Types
public section
/-!
# Basic Lean parser infrastructure
The Lean parser was developed wi... |
23,952 | lean_file_chunk | d2bd4c6e3765cfe6dfd73795dd8703964dac0bebe96bde4618c8f6e202944ecb | lean_source_file | lean_toolchain_source_file_chunks | let s := whitespace c s
let stopPos' := s.pos
let trailing := c.substring (startPos := stopPos) (stopPos := stopPos')
let atom := mkAtom (SourceInfo.original leading startPos trailing (startPos + val)) val
s.pushSyntax atom
else
let trailing := c.mkEmptySubstringAt stopPos
let atom ... |
23,961 | lean_file_chunk | 4e79a2d9ebaa75ce3fabcf2fa8fde2033c4a9d6dbd9cbde79932e13f2f58d868 | lean_source_file | lean_toolchain_source_file_chunks | def mkAtomicInfo (k : String) : ParserInfo :=
{ firstTokens := FirstTokens.tokens [ k ] }
/--
Parses a token and asserts the result is of the given kind.
`desc` is used in error messages as the token kind. -/
def expectTokenFn (k : SyntaxNodeKind) (desc : String) : ParserFn := fun c s =>
let s := tokenFn [desc... |
9,279 | lean_file_chunk | 97969af02b4f19ada549942e8db28eba7fe96af64cdb78209f5154f2d4fe5d55 | lean_source_file | lean_toolchain_source_file_chunks | def unicodeSymbol (sym asciiSym : String) (preserveForPP : Bool := false) : Parser :=
tokenWithAntiquot (unicodeSymbolNoAntiquot sym asciiSym preserveForPP)
/--
Define parser for `$e` (if `anonymous == true`) and `$e:name`.
`kind` is embedded in the antiquotation's kind, and checked at syntax `match` unless `isP... |
13,746 | lean_file_chunk | 875ea8a01ec53a19c1b1c0de6d2b3fdd9c70244eba0ac67b156339a6b4d094fb | lean_source_file | lean_toolchain_source_file_chunks | /-
Copyright (c) 2020 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Leonardo de Moura
-/
module
prelude
public import Lean.Parser.Term
public section
namespace Lean
namespace Parser
builtin_initialize registerBuiltinParserAttribute `builtin_... |
1,132 | lean_file_chunk | 22c249b52e76d5fa33c3f1e6dabaac6cf31724997e6801b53e4ff6228c2d0d99 | lean_source_file | lean_toolchain_source_file_chunks | /-
Copyright (c) 2019 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Leonardo de Moura, Sebastian Ullrich
-/
module
prelude
public import Lean.Parser.Extra
public section
namespace Lean
namespace Parser
builtin_initialize
registerBuiltinPar... |
1,767 | lean_file_chunk | 687852040f3486b7de76a1cacc74e785ec71b20b476ad590db9c235333e73cdb | lean_source_file | lean_toolchain_source_file_chunks | /-
Copyright (c) 2020 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Leonardo de Moura, Sebastian Ullrich
-/
module
prelude
public import Lean.Parser.Term
public import Lean.Parser.Tactic.Doc
public import Std.Tactic.Do.Syntax
public section
n... |
23,972 | lean_file_chunk | 68ba7feab6fe2160840a89a17f9cc251d83df99ae84602f19e19d9c00927ce0f | lean_source_file | lean_toolchain_source_file_chunks | /-
Copyright (c) 2019 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Leonardo de Moura, Sebastian Ullrich, Mario Carneiro
-/
module
prelude
public import Lean.Parser.Term.Basic
public import Lean.Parser.Term.Doc
import Lean.DocString.Parser
publ... |
23,901 | lean_file_chunk | dddb594c5945ae2b6ef3d3f6ffc32f4d3f73aff799df821903bae428b0500e29 | lean_source_file | lean_toolchain_source_file_chunks | `have` is used to declare local hypotheses and opaque local definitions.
It has the same syntax as `let`, and it is equivalent to `let +nondep`,
creating a *nondependent* let expression.
-/
@[builtin_term_parser] def «have» := leading_parser:leadPrec
withPosition ("have" >> letConfig >> letDecl) >> optSemicolon term... |
4,266 | lean_file_chunk | 14b73e0a8fdd0dc0ccb83c35e8cc3e455b5382017977f2fdbd4e2b7f37300b8f | lean_source_file | lean_toolchain_source_file_chunks | withPosition ("let_expr " >> matchExprPat >> " := " >> termParser >> checkColGt >> " | " >> termParser) >> optSemicolon termParser
/--
Throws an error exception, tagging the associated message as a named error with the specified name
and validating that an associated error explanation exists. The message may be passed... |
21,846 | lean_file_chunk | c3bcae4660530ef11201ec8ef4b496c5957253791b0e5e96dd75bf5135c21d23 | lean_source_file | lean_toolchain_source_file_chunks | /-
Copyright (c) 2019 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Leonardo de Moura, Sebastian Ullrich
-/
module
prelude
public import Lean.Data.Trie
public import Lean.DocString.Extension
import Init.Data.String.OrderInstances
public sectio... |
18,528 | lean_file_chunk | 1fdae8d423275a8ab2b6a6c8675736c02d4e172d6f4c456ca4e3054f69ac119b | lean_source_file | lean_toolchain_source_file_chunks | /-
Copyright (c) 2019 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Leonardo de Moura, Sebastian Ullrich
-/
module
prelude
public import Lean.PrettyPrinter.Formatter
public import Lean.PrettyPrinter.Parenthesizer
-- for `run_builtin_parser_attr... |
16,383 | lean_file_chunk | 2a871de92c77d692762dd0e69eb3c24f10ffe3dfa222296a8e90e028e6c1ff41 | lean_source_file | lean_toolchain_source_file_chunks | /-
Copyright (c) 2025 Lean FRO, LLC. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: David Thrane Christiansen
-/
module
prelude
import Lean.Elab.DocString
public import Lean.DocString.Parser
public import Lean.Elab.Term.TermElabM
public section
set_option linter.mi... |
23,995 | lean_file_chunk | c725388f660b886f8d6b6ad0339e1d4df1525847707555e796c3c3874d2b3dda | lean_source_file | lean_toolchain_source_file_chunks | /-
Copyright (c) 2023-2025 Lean FRO LLC. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Author: David Thrane Christiansen
-/
module
prelude
public import Lean.DocString.Syntax
import Init.While
set_option linter.missingDocs true
namespace Lean.Doc.Parser
open Lean Parser
ope... |
23,943 | lean_file_chunk | 430b50d094515516b4c12a21ed892ef2a691593f6a682f6a4b3f5c874c4404da | lean_source_file | lean_toolchain_source_file_chunks | (recoverSkip <|
withCurrentColumn fun c' =>
let count := c' - c
manyFn (inline (setter ctxt (some count))) >>
asStringFn (atomicFn (noSpaceBefore >> repFn count (satisfyFn (· == char) s!"'{tok count}'"))))
where
tok (count : Nat) : String := String.ofList (List.replicate cou... |
8,932 | lean_file_chunk | c252cccaeac5439673d6ed74f6bf12b5bb35f291e241141048b7c2cd6e66c13e | lean_source_file | lean_toolchain_source_file_chunks | manyFn (satisfyFn (· != '\n') "non-newline") >> satisfyFn (· == '\n') "newline"
closeFence (col width : Nat) :=
bol ctxt >> takeWhileFn (· == ' ') >> guardColumn (· == col) s!"column {col}" >>
atomicFn (asStringFn (repFn width (skipChFn '`'))) >>
notFollowedByFn (skipChFn '`') "extra `" >>
... |
16,850 | lean_file_chunk | fc56c2b28a0ecb1fa9b05bfe53733a11929bccda5c39228a8c9612294ec487a6 | lean_source_file | lean_toolchain_source_file_chunks | /-
Copyright (c) 2021 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Leonardo de Moura
-/
module
prelude
public import Lean.DeclarationRange
public import Lean.DocString.Markdown
public import Init.Data.String.Extra
import Init.Omega
public sec... |
11,894 | lean_file_chunk | a0ea1d648fe8139377bf54c6ac1a8f26708941e3d1e27aef39f82b9edac713c3 | lean_source_file | lean_toolchain_source_file_chunks | /-
Copyright (c) 2023-2025 Lean FRO LLC. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Author: David Thrane Christiansen
-/
module
prelude
public import Lean.Parser.Term.Basic
public meta import Lean.Parser.Term.Basic
/-!
This module contains an internal syntax that's use... |
5,171 | lean_file_chunk | 1f20aa83f5cb39e7b1fec59a8b3534a088bbb5d751b0dbeab931cc245fb4ecd8 | lean_source_file | lean_toolchain_source_file_chunks | /-
Copyright (c) 2023-2025 Lean FRO, LLC. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: David Thrane Christiansen
-/
module
prelude
public import Init.Data.Ord
import Init.Data.Nat.Compare
public import Init.Data.Array.GetLit
set_option linter.missingDocs true
na... |
11,365 | lean_file_chunk | 242d5e9bfbe6c3cd7989a93f29e56bd800fb03de503b5cca3410ba230c791e65 | lean_source_file | lean_toolchain_source_file_chunks | /-
Copyright (c) 2023-2025 Lean FRO, LLC. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: David Thrane Christiansen
-/
module
prelude
public import Lean.DocString.Types
public import Init.Data.String.TakeDrop
public import Init.Data.String.Search
import Init.Data.ToS... |
7,105 | lean_file_chunk | 1832801e5b8c78cb5e74ec5749585d740cf818421f7fc993c8dd018dd68d0549 | lean_source_file | lean_toolchain_source_file_chunks | /-
Copyright (c) 2025 Lean FRO, LLC. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: David Thrane Christiansen
-/
module
prelude
public import Lean.Syntax
import Init.Data.String.TakeDrop
import Init.Data.String.Search
import Init.Data.ToString.Macro
import Init.While... |
6,581 | lean_file_chunk | 56d77b81c85c271cfac018130323a627eef23277b7803b2a4cf1f8f68db9ced2 | lean_source_file | lean_toolchain_source_file_chunks | /-
Copyright (c) 2025 Lean FRO, LLC. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: David Thrane Christiansen
-/
module
prelude
public import Lean.PrettyPrinter.Formatter
import Lean.DocString.Parser
namespace Lean.Doc.Parser
open Lean.PrettyPrinter Formatter
open ... |
11,927 | lean_file_chunk | 48e8f1531bfb8d9d45c7a56eccf29121a2c1a81316802a38d1b3473254084cb2 | lean_source_file | lean_toolchain_source_file_chunks | /-
Copyright (c) 2022 Lars König. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Author: Lars König
The string fuzzy matching algorithm in this file is based on the algorithm
used in LLVM with some modifications. The LLVM algorithm itself is based on VS
code's client side filt... |
17,721 | lean_file_chunk | 8b339438b6bfb3a77d1afe5a2880df0dd945ad118a42d9437f219c21f3fea8ca | lean_source_file | lean_toolchain_source_file_chunks | /-
Copyright (c) 2020 Marc Huisinga. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Marc Huisinga, Wojciech Nawrocki
-/
module
prelude
public import Lean.Data.Json.Stream
public import Lean.Data.Json.FromToJson.Basic
public section
/-! Implementation of JSON-RPC 2.... |
2,591 | lean_file_chunk | 761c3ab5eadddbf907f6f3172350e222d7b54b918a3490e10a053f9245d2880e | lean_source_file | lean_toolchain_source_file_chunks | /-
Copyright (c) 2020 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Leonardo de Moura
-/
module
prelude
public import Lean.Data.PrefixTree
import Init.Data.Ord.String
public section
namespace Lean
inductive NamePart
| str (s : String)
| ... |
2,250 | lean_file_chunk | ef89d88b9a2b5eea441d90079218f121bab564d8c2b3a03cfd29ef7f4046d089 | lean_source_file | lean_toolchain_source_file_chunks | /-
Copyright (c) 2024 Lean FRO, LLC. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Joachim Breitner
-/
module
prelude
public import Lean.Meta.DecLevel
public import Init.Data.RArray
import Init.Omega
public section
/-!
Auxiliary definitions related to `Lean.RArray... |
1,700 | lean_file_chunk | 89029a5aa225f29176f3359c3f632af07a6ff1b0ac71f6b48161d09b6a1773d1 | lean_source_file | lean_toolchain_source_file_chunks | /-
Copyright (c) 2021 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Leonardo de Moura
-/
module
prelude
public import Lean.Data.Position
public section
/-!
# Data types for declaration ranges
The environment extension for declaration ranges ... |
15,701 | lean_file_chunk | 4749fa3b4b5f9311a50880709ea5f7e21ec11e3ebe53fcfeb24e20a5ed5279a8 | lean_source_file | lean_toolchain_source_file_chunks | /-
Copyright (c) 2017 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Leonardo de Moura
-/
module
prelude
public import Init.Data.Ord.Basic
public import Init.Data.Nat.Linear
public import Init.Data.Array.Basic
import Init.WFTactics
public secti... |
4,312 | lean_file_chunk | 2de66a212baec3327b338fcc43140eff2bc5cc192ce2fef62bbb192b7be0b4f1 | lean_source_file | lean_toolchain_source_file_chunks | /-
Copyright (c) 2019 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Leonardo de Moura
-/
module
prelude
public import Std.Data.HashMap.Basic
public import Lean.Data.PersistentHashMap
public import Std.Data.HashMap.Iterator
public import Lean.Da... |
366 | lean_file_chunk | 54a957052f1d963f0828ae6d4fd0e1267af4297df89d863772bbb9866b329050 | lean_source_file | lean_toolchain_source_file_chunks | /-
Copyright (c) 2019 Gabriel Ebner. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Gabriel Ebner, Marc Huisinga
-/
module
prelude
public import Lean.Data.Json.Stream
public import Lean.Data.Json.Printer
public import Lean.Data.Json.Parser
public import Lean.Data.Jso... |
900 | lean_file_chunk | f78bf6142877d38a542c9d2ed0867bef4bd91e6a772511bdc8a7512981995bf2 | lean_source_file | lean_toolchain_source_file_chunks | /-
Copyright (c) 2020 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Leonardo de Moura
-/
module
prelude
public import Init.Data.ToString.Name
public import Init.Data.ToString.Extra
public section
namespace Lean
/-- Data for representing `ope... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.