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 |
|---|---|---|---|---|---|
1,342 | lean_file_chunk | c8c38841b14b95461b840a40df1505450d4def2a7cbc0d5cc9b64ecb1709f3d1 | 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.Util.CollectFVars
public import Lean.Util.CollectLevelParams
public import Lean.Util.CollectMVars
public import Lean.Util.... |
6,111 | lean_file_chunk | 7123c8f692eb699e346af7eb9535e7a11d69ff8c6b5c601a9c51524fd7f413cc | 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.
Authors: Sebastian Ullrich
-/
module
prelude
public import Lean.CoreM
public import Lean.Compiler.MetaAttr -- TODO: public because of specializations
import Init.Data.Range.Polymorphic.Stream
/-!
... |
23,915 | lean_file_chunk | 6037f91cd6b99bcd646629eeef928dae07689c9a7dab76f6d0c21eb89cc617e4 | 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 Init.Data.Array.BinSearch
public import Init.Data.Stream
public import Init.System.Promise
public import Lean.Data.NameTrie
pu... |
23,984 | lean_file_chunk | e62b9a9749335b720d34e46ff1479244a79a1ac60e7d489b94077941d9a66eef | lean_source_file | lean_toolchain_source_file_chunks | Container of asynchronously elaborated declarations. For consistency, `Lean.addDecl` makes sure
this contains constants added even synchronously, i.e. `base ⨃ asyncConsts` is the set of
constants known on the current environment branch, which is a subset of `checked`.
Private view should correspond to kernel map... |
23,973 | lean_file_chunk | 85d8e13323412cc26b18b4b6dfd1ba5e0d801bd79e2798d3ebd6df312d49f056 | lean_source_file | lean_toolchain_source_file_chunks | if sig.levelParams != info.levelParams then
throw <| .userError s!"AddConstAsyncResult.commitConst: constant has level params {info.levelParams} but expected {sig.levelParams}"
if sig.type != info.type then
throw <| .userError s!"AddConstAsyncResult.commitConst: constant has type {info.type} but expected {sig... |
23,974 | lean_file_chunk | 5bb97562499a573614865fd96eabb508749963dda77a402262a6ef43179a9a6f | lean_source_file | lean_toolchain_source_file_chunks | name : Name
addImportedFn : Array (Array α) → ImportM σ
addEntryFn : σ → β → σ
/--
Function to transform state into data that should be imported into other modules. Returns entries
for all three olean levels at once so that expensive computations can be shared. When using the
module system... |
23,978 | lean_file_chunk | ad66bb464d49d096592e6bf35d3e16d49573b9b3ea97a27afa1cf18e22a1b30f | lean_source_file | lean_toolchain_source_file_chunks | * needsIRTrans(A) ∧ A `(public)? (meta)? import (all)?` B → needsIRTrans(B)
Note that in particular, A `meta import` B `import` C implies A `meta import` C, but
A `import` B `meta import` C does not.
As a final special case, we also load IR for `import all`, but non-transitively, to provide the same
information as fo... |
12,170 | lean_file_chunk | 334bda1b9f7ae3b8392d68a5071ca1ce35bceb3615ba5db0139caf4fa9d5151e | lean_source_file | lean_toolchain_source_file_chunks | -- This line should not affect the result value but it avoids potential blocking in `isUnsafe` as
-- there is a fast path for theorems, so we want to make sure we do not perceive them merely as
-- axioms (for imported theorems this does not matter as there is nothing to block on).
let env := env.setExporting fals... |
23,995 | lean_file_chunk | 6525e13e24613eac2a6fd2490ad02db4deda97a845de93bebcf47a693c9bb02b | 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.
Author: Sebastian Ullrich, Leonardo de Moura
-/
module
prelude
public import Init.Data.Slice
public import Init.Data.Hashable
public import Lean.Data.Format
public import Init.Data.Opti... |
2,704 | lean_file_chunk | d703759746483727d624a3ccec9e3859f0bc4eed7940a2e2b21fb680c9c21030 | lean_source_file | lean_toolchain_source_file_chunks | | _ => none
def isAntiquotSplice (stx : Syntax) : Bool :=
antiquotSpliceKind? stx |>.isSome
def getAntiquotSpliceContents (stx : Syntax) : Array Syntax :=
stx[3].getArgs
-- `$[..],*` or `$x,*` ~> `,*`
def getAntiquotSpliceSuffix (stx : Syntax) : Syntax :=
if stx.isAntiquotSplice then
stx[5]
else
stx[... |
9,161 | lean_file_chunk | 88e698e9a7dc08d7e77c6114783bb35b5804de5e2126ca4cd73741e1108ed9bd | 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.ToLevel
public import Init.Data.Rat.Basic
public section
universe u
namespace Lean
/--
We use the `ToExpr` type class to ... |
4,674 | lean_file_chunk | 6643bd4c112e57bd1950b059e7ad79e52898345d6e0238c3d0992dff07c1c8f7 | 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: Joachim Breitner
-/
module
prelude
public import Lean.Meta.Basic
import Lean.Meta.Check
import Lean.Meta.WHNF
public section
namespace Lean
open Meta
/--
There are defeq theorems t... |
2,142 | lean_file_chunk | b84943c3fc0276a284fc5aa45f58df5145ab4b898d3c0a726f3c9ab3420e7383 | 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.Meta.Basic
public import Lean.Meta.LevelDefEq
public import Lean.Meta.WHNF
public import Lean.Meta.InferType
public import... |
23,943 | lean_file_chunk | b70cd515f141af6ac13639176a2822ee597901f77836ad9c96f7d5c585988659 | lean_source_file | lean_toolchain_source_file_chunks | /-
Copyright (c) 2018 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Author: Sebastian Ullrich, Leonardo de Moura
Message type used by the Lean frontend
-/
module
prelude
public import Init.Data.Slice.Array
public import Lean.Util.PPExt
public import Le... |
10,902 | lean_file_chunk | 71ccc2c20642f06b6043d1fe46c18a503b88ad5e73876d98bf04ac41e5e1b095 | lean_source_file | lean_toolchain_source_file_chunks | def msgs : MessageLog → PersistentArray Message := unreported
def reportedPlusUnreported : MessageLog → PersistentArray Message
| { reported := r, unreported := u, .. } => r ++ u
def hasUnreported (log : MessageLog) : Bool :=
!log.unreported.isEmpty
def add (msg : Message) (log : MessageLog) : MessageLog :=
{ ... |
23,997 | lean_file_chunk | d2ed19b24d9aacfde3cd031c2f3b5105abb44023aa120a3396dc03a84da707e0 | 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.CoreM
public import Lean.Compiler.MetaAttr
public section
namespace Lean
inductive AttributeApplicationTime where
| ... |
6,893 | lean_file_chunk | 879d4ce5f15b4e13fdb499e1cc2721c5021f8de13eb809600506229606d52e3e | lean_source_file | lean_toolchain_source_file_chunks | /-
Copyright (c) 2020 Sebastian Ullrich. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Sebastian Ullrich
-/
module
prelude
public import Lean.PrettyPrinter.Delaborator.Basic
import Lean.PrettyPrinter.Delaborator
public import Lean.Parser.Module
public import Lean.Par... |
1,386 | lean_file_chunk | d9d47e1079cf630d9edaaadc39225c9bd69e94fa0ad27894448da578d53e6a6a | lean_source_file | lean_toolchain_source_file_chunks | /-
Copyright (c) 2024 Mario Carneiro. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Mario Carneiro
-/
module
prelude
public import Lean.Compiler.InitAttr
public section
namespace Lean
def declareBuiltinDocStringAndRanges (declName : Name) : AttrM Unit := do
if l... |
1,884 | lean_file_chunk | 613bdacaf53c0da27ea076ec35622f88c8c290f3cf45b3d6c113e89828a7d9b2 | lean_source_file | lean_toolchain_source_file_chunks | /-
Copyright (c) 2026 Lean FRO. All Rights Reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Sebastian Ullrich
-/
module
prelude
public import Lean.Environment
import Lean.EnvExtension
namespace Lean
-- No public mutating interface as this is an implementation detail of `addDecl`... |
3,686 | lean_file_chunk | 30bf3d2f45989fe6be980f9bdbb3db4270fb2f366984f2d27f0561fd90ce9f5b | lean_source_file | lean_toolchain_source_file_chunks | /-
Copyright (c) 2023 Kim Morrison. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Kim Morrison
-/
module
prelude
public import Lean.DocString
public meta import Init.Data.String.Extra
public meta import Init.Data.ToString.Name
public section
/-!
# "Label" attribute... |
22,231 | lean_file_chunk | e1b53879292b9afaa14a7a35754a89a959dfccf6801d2b8ad4841e7588c23eb3 | lean_source_file | lean_toolchain_source_file_chunks | /-
Copyright (c) 2018 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.Array.QSort
public import Lean.Data.PersistentHashSet
public import Lean.Hygiene
public import Init.Data.Option.Coe
... |
7,920 | lean_file_chunk | e924a86c14cdb103d49ca743f1885b9f00b9860b33945d19da7ed8195cce53ae | 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: Sebastian Ullrich, Daniel Selsam, Wojciech Nawrocki, E.W.Ayers
-/
module
prelude
public import Lean.Meta.Basic
public import Init.Data.Format.Macro
public section
namespace L... |
421 | lean_file_chunk | 3d632592898b5a5970bb9f50d2b49d37b54b7a2c2f5fd907a5c446d9a61ee2b0 | 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.Widget.InteractiveCode
public import Lean.Widget.InteractiveDiagnostic
public import Lean.Widget.InteractiveGoal
public ... |
1,301 | lean_file_chunk | e827080948b2d23bce85bd1a26ec57c3ca9dbfcc6395c5e95b06f9182c356914 | 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.DocString.Extension
public import Lean.DocString.Links
public import Lean.Parser.Tactic.Doc
public import Lean.Parser.Ter... |
596 | lean_file_chunk | 09d1979de29f97efa616342b040b829c23fa2d77bc1d686f52f4242155ec7726 | 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 Init.Prelude
public section
namespace Lean
@[extern "lean_closure_max_args"]
opaque closureMaxArgsFn : Unit → Nat
@[extern... |
4,538 | lean_file_chunk | 70830f2fe7f5e6df5db611b1c14f5b342e2192a6f7ea0365286d839ec7ed89a0 | 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: Sebastian Ullrich
-/
module
prelude
public import Lean.Data.Format
public section
namespace Lean
/-! Remark: `MonadQuotation` class is part of the `Init` package and loaded b... |
9,196 | lean_file_chunk | ca40edf1dd2ef0f1f9146098e7157225a77644c9750e6dd4beee29684f9347a4 | 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.Meta.Sorry
public import Lean.Util.CollectAxioms
public import Lean.OriginalConstKind
import Lean.Compiler.M... |
591 | lean_file_chunk | 279bba54fb4d29587fa6287d6f8d0e8c823cbd467462b19adc2ab10cf658f5ce | 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.
Authors: Lars König
-/
module
prelude
public import Lean.Linter.Util
public import Lean.Linter.Builtin
public import Lean.Linter.ConstructorAsVariable
public import Lean.Linter.Deprecated
public i... |
3,796 | lean_file_chunk | 7528abc142aa22d12e9c743f4c191bfe567894914d1b574751fa650658ab6f07 | 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.
Author: Leonardo de Moura
-/
module
prelude
public import Lean.Expr
public section
namespace Lean
/--
Datastructure for representing the "head symbol" of an expression.
It is the key... |
8,280 | lean_file_chunk | 80f2af9c6e0676781485a51e8d177f25c29751de63f63b2c9a2269b3675f15f4 | 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
public import Lean.Elab.DeclModifiers
import all Lean.Elab.ErrorUtils
import Init.Omega
namespace Lean
open Elab.Term
set_option doc.verso true
... |
5,806 | lean_file_chunk | eaf0369206b40d0cd84a19fd351e34ced316d24c69907da65dac1be0ec536153 | 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, Mac Malone
-/
module
prelude
public import Lean.Data.Json.Parser
public import Lean.Util.LeanOptions
set_option doc.verso true
public section
/-!
# Module... |
2,396 | lean_file_chunk | 6517266939da93d2279f32f7cea2da9aa8d06a0a03264f2b70830f8d5d78bae6 | 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.Import
public import Lean.Elab.Exception
public import Lean.Elab.Config
public import Lean.Elab.Command
public impor... |
401 | lean_file_chunk | 4ad664396956ba26d93e6b9f2377e78a8db57207331ebda168235fa6dc1d190d | 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.Server.Watchdog
public import Lean.Server.FileWorker
public import Lean.Server.Rpc
public import Lean.Server.Code... |
4,814 | lean_file_chunk | a535550d53aa7cc5cc83ec2b9105b2aa9a7b78d29369c53f058e165a3612facb | lean_source_file | lean_toolchain_source_file_chunks | /-
Copyright (c) 2021 Mac Malone. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Mac Malone
-/
module
prelude
public import Init.System.IO
import Init.Data.String.TakeDrop
import Init.Data.ToString.Macro
public section
namespace Lean
private opaque DynlibImpl : Non... |
23,957 | lean_file_chunk | 885d357dd9a3bafc5f873662f714ca25b40000a86493b009f85c95ad335cee50 | lean_source_file | lean_toolchain_source_file_chunks | /-
Copyright (c) 2018 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.Hashable
public import Lean.Level
import Init.Omega
public section
namespace Lean
/-- Literal values for `Expr`. ... |
23,980 | lean_file_chunk | a3c0be11a7040dd34e4629e01fd66d1de88800d45d1d1a1847b6f44a9f69e04d | lean_source_file | lean_toolchain_source_file_chunks | `.proj structName idx struct` is now the preferred form.
-/
def mkProj (structName : Name) (idx : Nat) (struct : Expr) : Expr :=
.proj structName idx struct
/--
`.app f a` is now the preferred form.
-/
@[match_pattern, expose] def mkApp (f a : Expr) : Expr :=
.app f a
/--
`.lam x t b bi` is now the preferred form... |
23,973 | lean_file_chunk | f327a53813b6bab6e51a5cde57010f3dc660e906ea8b24afff7d06b15ae39430 | lean_source_file | lean_toolchain_source_file_chunks | Instantiates the loose bound variables in `e` using the `subst` array,
where a loose `Expr.bvar i` at "binding depth" `d` is instantiated with `subst[i - d]` if `0 <= i - d < subst.size`,
and otherwise it is replaced with `Expr.bvar (i - subst.size)`; non-loose bound variables are not touched.
If we imagine all expres... |
13,780 | lean_file_chunk | 748e6cda2e273ce6825fc8fbe98c8d66a9338e0ab9a5bb077bf9fa29f3f9b6af | lean_source_file | lean_toolchain_source_file_chunks | let args := e.getAppArgs.map fun arg => if arg.hasMVar then arg else arg.setPPExplicit false
mkAppN f args |>.setPPExplicit true
| _ => e
/-- Maps `f` on each immediate child of the given expression. -/
@[specialize]
def traverseChildren [Applicative M] (f : Expr → M Expr) : Expr → M Expr
| e@(forallE _ d... |
2,088 | lean_file_chunk | a0fd7f0170eefbd6f009538a323203a3ee1db50f0440d4be981c40d757db0143 | 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 Init.Notation
public import Init.Data.Option.Coe
public section
namespace Lean
/-! # Private name support.
Suppose the ... |
3,678 | lean_file_chunk | 1971ea509c3f5ef9002f62145c51ca7a0c930786aa29c330fcc24f2c5a6a2315 | 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.EnvExtension
public section
namespace Lean
/--
Given a structure `S`, Lean automatically creates an auxiliary definiti... |
7,883 | lean_file_chunk | 4168663400c0945d2c9db68e84591d8cde8ebae870de876188b257ca5f852bb6 | 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
-- This import is necessary to ensure that any users of the `logNamedError` macros have access to
-- all declared explanations:
public impor... |
7,644 | lean_file_chunk | d0f0dd49d13bdc1a85ff66814441362dff342c7398b9604e39c3ad765a5e3674 | lean_source_file | lean_toolchain_source_file_chunks | /-
Copyright (c) 2023 Kim Morrison. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Kim Morrison
-/
module
prelude
import Lean.CoreM
public import Lean.AddDecl
import Lean.Util.FoldConsts
/-!
# `Lean.Environment.replay`
`replay env constantMap` will "replay" all the ... |
20,991 | lean_file_chunk | 7eb43304c8bf421dfdf3fbb73324648afa403c22f7c13753d2ca0937bb1d79e0 | lean_source_file | lean_toolchain_source_file_chunks | /-
Copyright (c) 2018 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
import Init.Data.Ord.UInt
import Init.Data.ToString.Macro
public section
namespace Lean
/--
Reducibility hints gui... |
8,938 | lean_file_chunk | 493247ea867ee50c871878d3583db40fbc461b7648b33e4d50e4ffe44770efe1 | 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
import Init.Control.Do
public import Lean.Elab.Exception
public import Lean.Log
public import Lean.AuxRecursor
public import Lean.Compiler.O... |
23,957 | lean_file_chunk | 632797c6a2ef016a07b0367a1f1d1fb0a80d9a14b8a6451cfee3169864d63fe5 | 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 Init.ShareCommon
public import Lean.Util.MonadCache
public import Lean.LocalContext
import Init.Data.Slice
import Init.Data.To... |
23,989 | lean_file_chunk | 00297d67adbd84328068e852638b011efe897190cf33120d8361e31c9a576ba8 | lean_source_file | lean_toolchain_source_file_chunks | def hasAssignableMVar [Monad m] [MonadMCtx m] : Expr → m Bool
| .const _ lvls => lvls.anyM hasAssignableLevelMVar
| .sort lvl => hasAssignableLevelMVar lvl
| .app f a => (pure f.hasMVar <&&> hasAssignableMVar f) <||> (pure a.hasMVar <&&> hasAssignableMVar a)
| .letE _ t v b _ => (pure t.hasMV... |
23,961 | lean_file_chunk | 9c328e59fa7f775d8bf5286cc1363539cc1974be574696d02c1e89bafbcd5968 | lean_source_file | lean_toolchain_source_file_chunks | If we kept using the Lean3 approach, we would get the `Exception.revertFailure` exception because we are
reverting the auxiliary definition `f`.
Note that <https://github.com/leanprover/lean/issues/1258> is not an issue in Lean4 because
we have changed how we compile recursive definitions.
-/
def collectForwardD... |
179 | lean_file_chunk | f14cd1371c732839a9aec7fd0af28fdfe2ded3899c377505868435088b0393b0 | lean_source_file | lean_toolchain_source_file_chunks | def setFVarBinderInfo [MonadMCtx m] (mvarId : MVarId) (fvarId : FVarId)
(bi : BinderInfo) : m Unit :=
modifyMCtx (·.setFVarBinderInfo mvarId fvarId bi)
end MVarId
end Lean |
8,016 | lean_file_chunk | 98071d912e5af9058cd1f98649d708999297a8849d9dacecd6f6dfb25f88384d | lean_source_file | lean_toolchain_source_file_chunks | /-
Copyright (c) 2020 Sebastian Ullrich. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Sebastian Ullrich
-/
module
prelude
public import Lean.Meta.ReduceEval
public import Lean.Meta.WHNF
public import Lean.KeyedDeclsAttribute
public import Lean.ParserCompiler.Attribu... |
1,246 | lean_file_chunk | 0e02b109e5aca4cc4fce7e43acacf5634c60f7b8a3a46a25bfd90cbc0bcd8d28 | 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: Markus Himmel
-/
module
prelude
public import Std.Data.DHashMap
public import Std.Data.HashMap
public import Std.Data.HashSet
public import Std.Data.DTreeMap
public import Std.Data.Tre... |
14,333 | lean_file_chunk | 7da66b8f173d26ecb779a49ff6da4e6318cf3d1faf606d0ef083f5cef7d36730 | 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: Sofia Rodrigues
-/
module
prelude
public import Std.Time.Time
public import Std.Time.Date
public import Std.Time.Zoned
public import Std.Time.Format
public import Std.Time.DateTime
pub... |
483 | lean_file_chunk | dccbc7f89f658fa2f53e7ced4b85971b9f312d1d8b6b300f63f36015f3f8a421 | 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: Henrik Böving
-/
module
prelude
public import Std.Internal.Async
public import Std.Internal.Http
public import Std.Internal.Parsec
public import Std.Internal.UV
@[expose] public secti... |
194 | lean_file_chunk | 45a5a885027a223b302d474501a3fa77918fcd896c8121922daa24a6b44f1633 | 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: Henrik Böving
-/
module
prelude
public import Std.Net.Addr |
307 | lean_file_chunk | 9f8d4e21753eb9b0b398ba89037bc77abf39c2afdea1d0e96a921b803400be4b | 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: Sebastian Graf
-/
module
prelude
public import Std.Do.SPred
public import Std.Do.WP
public import Std.Do.Triple
public import Std.Do.PredTrans
public import Std.Do.PostCond |
962 | lean_file_chunk | af5a311f63761c7f60f37b5475c8f09b206548ed3907326b5aabd16ca6cde52a | 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: Henrik Böving
-/
module
prelude
public import Std.Tactic.BVDecide
public import Std.Tactic.Do
@[expose] public section
/-!
This directory is mainly used for bootstrapping reasons. Su... |
219 | lean_file_chunk | 94f6d44fc7a22b837606fac1b3c9d77e3d58dc720ecbaa35873fded27fff6eb5 | 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: Henrik Böving
-/
module
prelude
public import Std.Sat.AIG
public import Std.Sat.CNF |
566 | lean_file_chunk | 56ad8cf56a02fa5b946fd2ab8943ff46a25c85167580e0ca5c7bacefb11e4db4 | 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: Henrik Böving
-/
module
prelude
public import Std.Sync.Basic
public import Std.Sync.Channel
public import Std.Sync.Mutex
public import Std.Sync.RecursiveMutex
public import Std.Sync.Ba... |
341 | lean_file_chunk | 4d7cfaccce444271347e7ade6ae7b8114ab26492d02bbe4e5cb7a94247571f2c | lean_source_file | lean_toolchain_source_file_chunks | /-
Copyright (c) 2021 Mac Malone. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Mac Malone
-/
module
prelude
public import Lake.Build
public import Lake.CLI.Actions
public import Lake.Config
public import Lake.DSL
public import Lake.Toml
public import Lake.Util
publi... |
380 | lean_file_chunk | 06224e3764de8f47e08fed5574cc21ec8d82ded5e76555b10ecc52bc6688c9db | 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: Gabriel Ebner, Sebastian Ullrich, Mac Malone
-/
module
prelude
public import Init.System.IO
import Lake.DSL -- shake: keep (registers builtins)
import Lake.CLI.Main
public def... |
13,117 | lean_file_chunk | 7d34e4449c33d5b693993dd790a3399e83bbf1c3ec03275b305e5bf659d13848 | lean_source_file | lean_toolchain_source_file_chunks | /-
Copyright (c) 2026 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 Init.Data.Rat.Basic
public import Init.Data.SInt.Basic
public import Init.Data.Int.DivMod.Lemmas
public import Ini... |
491 | lean_file_chunk | b34629c81428ef3ec0f8485223eb0cc335114a25fe1c41930ccd91fb96aca48b | lean_source_file | lean_toolchain_source_file_chunks | /-
Copyright (c) 2025 Lean FRO, LLC. or its affiliates. All Rights Reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Kim Morrison
-/
module
prelude
public import Init.GrindInstances.Ring.Nat
public import Init.GrindInstances.Ring.Int
public import Init.GrindInstances.Ring.UInt
publ... |
467 | lean_file_chunk | 79d38d2dea708cf78a75e4e990ee1db9105b8720e5fe614240f475f8efc79072 | lean_source_file | lean_toolchain_source_file_chunks | /-
Copyright (c) 2025 Lean FRO, LLC. or its affiliates. All Rights Reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Kim Morrison
-/
module
prelude
public import Init.Grind.Ordered.Module
import Init.Omega
public section
namespace Lean.Grind
instance : AddRightCancel Nat where
... |
17,929 | lean_file_chunk | f51f70a324ffeab0c36b924114cc12b60b3a486496be295449089eb70ac2d5ee | lean_source_file | lean_toolchain_source_file_chunks | /-
Copyright (c) 2025 Lean FRO, LLC. or its affiliates. All Rights Reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Kim Morrison
-/
module
prelude
import all Init.Grind.ToInt
public import Init.Data.SInt.Basic
public import Init.Grind.ToInt
import Init.Data.BitVec.Bootstrap
import... |
292 | lean_file_chunk | 505433bedf9a5a16c7b96cce3355b1584ab61a82ec85a5089438cbaa95486428 | 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 Init.Internal.Order.Basic
public import Init.Internal.Order.Lemmas
public import Init.Internal.Order.Tactic |
23,991 | lean_file_chunk | b9f4a533699d0f4626bc8551e852499715ebac9610e8bf4a3319c2d406e084e3 | 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 and Sebastian Ullrich
Additional goodies for writing macros
-/
module
prelude
import all Init.Prelude -- for unfolding `Name.beq`
public import Init.Data.Arr... |
23,970 | lean_file_chunk | 0b922dbd486c510a02da4a06d050489698d293363a9f3c1b9495f6729f225f9f | lean_source_file | lean_toolchain_source_file_chunks | match (← getRef).getHead? with
| none => x
| some ref => withRef ref x
/--
Expand macros in the given syntax.
A node with kind `k` is visited only if `p k` is true.
Note that the default value for `p` returns false for `by ...` nodes.
This is a "hack". The tactic framework abuses the macro system to imple... |
16,853 | lean_file_chunk | 142ea6eb1d5e7578afd2494e40809c63ec586492e8b8627b546f149624d53ab2 | lean_source_file | lean_toolchain_source_file_chunks | def getNat (s : NumLit) : Nat :=
s.raw.isNatLit?.getD 0
private def isHexNum? (stx : Syntax) : Option Nat :=
match Syntax.isLit? hexnumKind stx with
| some val => Syntax.decodeHexLitAux val 0 0
| _ => none
/-- Returns the value of the hexadecimal numeral as a natural number. -/
def getHexNumVal (s : Sy... |
23,944 | lean_file_chunk | fece6e5e42012a1e8f692a40f786ca1929f804fc387b13e867c1e29293a10c9a | 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: Luke Nelson, Jared Roesch, Leonardo de Moura, Sebastian Ullrich, Mac Malone, Henrik Böving
-/
module
prelude
public import Init.Control.Do
public import Init.System.IOError
pub... |
23,988 | lean_file_chunk | 02c4f9138cd8e56d8aa6a886e7d11119519b46bd6b9938ab0e0ccaab9df33eda | lean_source_file | lean_toolchain_source_file_chunks | @[extern "lean_io_get_num_heartbeats"] opaque getNumHeartbeats : BaseIO Nat
/--
Sets the heartbeat counter of the current thread to the given amount. This can be used to avoid
counting heartbeats of code whose execution time is non-deterministic.
-/
@[extern "lean_io_set_heartbeats"] opaque setNumHeartbeats (count : N... |
20,731 | lean_file_chunk | d73c72c74fa38b30a910cf5f775b1f2ee5a02b3da5ce61323ec5d22baa8347a7 | lean_source_file | lean_toolchain_source_file_chunks | | throw <| IO.userError s!"IO.appDir: unexpected filename '{p}'"
FS.realPath p
namespace FS
/--
Creates a directory at the specified path, creating all missing parents as directories.
-/
partial def createDirAll (p : FilePath) : IO Unit := do
if ← p.isDir then
return ()
if let some parent := p.parent then
... |
2,964 | lean_file_chunk | e46aee2de78986bc47b9697b78b70d02d16da4d3a8384437391a73b2993c7d35 | lean_source_file | lean_toolchain_source_file_chunks | /-
Copyright (c) 2022 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Gabriel Ebner
-/
module
prelude
public import Init.System.IO
public section
set_option linter.missingDocs true
namespace IO
private opaque PromisePointed : NonemptyType.{0}... |
8,666 | lean_file_chunk | 167898bf90978d494b04c0039ff7f486bad43c1b10b21a4341415aa25fd148e4 | 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.Control.Except
public import Init.NotationExtra
import Init.Classical
public section
opaque Void.nonemptyType (σ : Type... |
4,821 | lean_file_chunk | 9f6636e4bec28cf8ed33b48a31b1b43b764018044fad9847a61e674015cbf11a | 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: Chris Lovett
-/
module
prelude
public import Init.System.FilePath
import Init.Data.String.TakeDrop
import Init.Data.String.Modify
import Init.Data.String.Search
import Init.Ome... |
9,899 | lean_file_chunk | 8f9c74f718d6ce542410d181a5b00452865ce596edb15933a00bfcdbeb52a970 | 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
import Init.Data.String.Modify
import Init.Data.String.Search
public import Init.Data.ToString.Basic
import Init.Data.Ite... |
2,588 | lean_file_chunk | 2a2783c1a44b3ff820fff9ce402afe6e271efd2954be66af494420a00ae425d2 | lean_source_file | lean_toolchain_source_file_chunks | /-
Copyright (c) 2018 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.Nat.Div.Basic
public import Init.SimpLemmas
import Init.Data.Nat.Basic
import Init.Data.String.Bootstrap
public sec... |
11,508 | lean_file_chunk | 3053b1d60b04de60da450a0b3ec8b14f4623bd2824ead3ec39b774fea48f3ec2 | 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: Simon Hudon
-/
module
prelude
public import Init.Data.ToString.Basic
import Init.Data.String.Modify
public section
/--
Exceptions that may be thrown in the `IO` monad.
Many... |
7,894 | lean_file_chunk | 33a50a9a279ba2b56002cb286996b365836f7a1c8dcbed5334ab0ff6339bb7d3 | lean_source_file | lean_toolchain_source_file_chunks | /-
Copyright (c) 2023 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 Init.Data.Fin.Basic
public import Init.Data.Int.DivMod.Basic
public import Init.WF
import Init.ByCases
import Init.Data.Int.Lemmas
import I... |
4,703 | lean_file_chunk | 7b24fafd5b847ab565762f7642c534e5e2da02d69c7cdbb1a549e898533a018e | lean_source_file | lean_toolchain_source_file_chunks | /-
Copyright (c) 2023 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 Init.Omega.IntList
import all Init.Omega.IntList
public section
/-!
# `Coeffs` as a wrapper for `IntList`
Currently `omega` uses a dense... |
1,822 | lean_file_chunk | 5f7b7d811994f654c0423ac39bffe2a1b84072b770e842036b00aa51a1cf463b | lean_source_file | lean_toolchain_source_file_chunks | /-
Copyright (c) 2023 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 Init.Grind.Tactics
import Init.PropLemmas
public section
/-!
# Specializations of basic logic lemmas
These are useful for `omega` while c... |
16,609 | lean_file_chunk | 3e1e1c30fde3dea377b4390cc09a1be77b9321a4ef2a19d18964766d1c40112a | lean_source_file | lean_toolchain_source_file_chunks | /-
Copyright (c) 2023 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 Init.Data.Int.DivMod.Bootstrap
public import Init.Data.Nat.Gcd
import Init.Data.Int.Lemmas
import Init.Data.Int.Order
import Init.Data.Nat.... |
15,379 | lean_file_chunk | 5b52f34ad579d9af5878c5256599e3045e1a7b9b0d784eaf06b2a5563a3be384 | lean_source_file | lean_toolchain_source_file_chunks | /-
Copyright (c) 2023 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 Init.Omega.Coeffs
import Init.Data.Int.Lemmas
import Init.Data.Int.Order
import Init.Data.ToString.Macro
import Init.Omega.Int
import Init.... |
7,481 | lean_file_chunk | f1ecbf8ecd3d21345a52bd5392370bbd56bd0ecda38490c7c2b0bc4d9eb65305 | lean_source_file | lean_toolchain_source_file_chunks | /-
Copyright (c) 2023 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 Init.Omega.Coeffs
import Init.Data.Int.Lemmas
import Init.Data.ToString.Macro
import Init.RCases
public section
/-!
# Linear combinations... |
1,689 | lean_file_chunk | cd2e63d7895de8661e1557ce2750bf910c918b352e4b4d350ae7f8ee6f29a555 | lean_source_file | lean_toolchain_source_file_chunks | /-
Copyright (c) 2016 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Leonardo de Moura
-/
module
prelude
import Init.Data.Array.Basic
public import Init.Data.UInt.Basic
public section
universe u
instance : Hashable Nat where
hash n := UInt64... |
286 | lean_file_chunk | 2a455d761c2584b3e0359ced47c78b54363ee50e7a44e33bc5a593b0d45638be | 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: Paul Reichert
-/
module
prelude
public import Init.Data.Subtype.Basic
public import Init.Data.Subtype.Order
public import Init.Data.Subtype.OrderExtra |
2,175 | lean_file_chunk | 408588c32e239a1f5c74162d386c95aaf5e147797044f07b643735d0e9e00e3e | 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 Init.GetElem
import Init.PropLemmas
public section
@[expose] section
namespace Lean
/--
A `RArray` can model `Fin n → α` or `Array... |
258 | lean_file_chunk | a3ad05f730d952ed810c23c530a36c7ba52ed86abb334181de23a294eb51d918 | lean_source_file | lean_toolchain_source_file_chunks | /-
Copyright (c) 2017 Mario Carneiro. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Mario Carneiro, Yury G. Kudryashov
-/
module
prelude
public import Init.Data.Sum.Basic
public import Init.Data.Sum.Lemmas |
1,156 | lean_file_chunk | f14aea788e7802d942cf131f5b4a97abef7d6a437d324d682dc46a6949eaba50 | lean_source_file | lean_toolchain_source_file_chunks | /-
Copyright (c) 2016 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.String.Basic
public import Init.Data.String.Bootstrap
public import Init.Data.String.Decode
public import Init.Data.... |
19,009 | lean_file_chunk | 3b70dd5aec9fff6949911ff6ca83bf3f69282fc0fd7bc43da8bdbd96b9ff6fa3 | lean_source_file | lean_toolchain_source_file_chunks | /-
Copyright (c) 2023 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 Init.Data.Float
public section
-- Just show FloatSpec is inhabited.
opaque float32Spec : FloatSpec := {
float... |
2,486 | lean_file_chunk | 07db951a723c964109835dfc2fe5528e15ab63cd9c1383ebcdf8712c2a545583 | 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: Daniel Selsam
Simple queue implemented using two lists.
Note: this is only a temporary placeholder.
-/
module
prelude
public import Init.Data.List.Control
public section
nam... |
391 | lean_file_chunk | f8f03c95f1257c6576315bcbfc38ac831a48d4afab6e93c1540a2b8b8bdb1166 | 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.
Author: Leonardo de Moura
-/
module
prelude
public import Init.Data.Fin.Basic
public import Init.Data.Fin.Log2
public import Init.Data.Fin.Iterate
public import Init.Data.Fin.Fold
publi... |
17,836 | lean_file_chunk | 0cec2c8f6f551c04029116b06f267ad69e4180f2a3f1937cc758eb770fc3fd70 | 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.Basic
public section
structure FloatSpec where
float : Type
val : float
lt : float → float → P... |
632 | lean_file_chunk | aac4acf3bbecf5d01a74505eaefa59195e46fc5c4a851b1dc0930090a4f368b9 | lean_source_file | lean_toolchain_source_file_chunks | /-
Copyright (c) 2016 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.Int.Basic
public import Init.Data.Int.Bitwise
public import Init.Data.Int.Compare
public import Init.Data.Int.DivMod... |
316 | lean_file_chunk | bcbbbd0db56d93744223dd47a8aa3d0d8a04a335027b07514a49dcfb9f9aba4e | 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 Init.Data.Dyadic.Basic
public import Init.Data.Dyadic.Instances
public import Init.Data.Dyadic.Round
public import Init.Data.Dyadic.Inv |
560 | lean_file_chunk | 91afb5a1308f7f65fdc719dd332699f01c69b22bd2da6873678a487b2707079e | 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 Init.Data.Option.Basic
public import Init.Data.Option.BasicAux
public import Init.Data.Option.Coe
public import Init.Data.Opti... |
235 | lean_file_chunk | d457e09063bfdaeab22c5dedb99fdaf1b24b649e5994ea3bc1f2ed355db4c785 | 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 Init.Data.Rat.Basic
public import Init.Data.Rat.Lemmas |
219 | lean_file_chunk | 0a4ed4ec49b1001750b6de39ed1b245de1898ca4a1a8e52fb5819da7ada074a0 | 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.
Author: Leonardo de Moura
-/
module
prelude
public import Init.Data.FloatArray.Basic |
1,333 | lean_file_chunk | 16b7b4551fef77f84098a929e8da61fc1cd33c86f760e00af30249543efeac57 | lean_source_file | lean_toolchain_source_file_chunks | /-
Copyright (c) 2016 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.List.Attach
public import Init.Data.List.Basic
public import Init.Data.List.BasicAux
public import Init.Data.List.Co... |
864 | lean_file_chunk | c3346127b786d6d5e51ef66f78f6ee8cd9a4dbdd3d798d58a8c0beb9e814a8ac | lean_source_file | lean_toolchain_source_file_chunks | /-
Copyright (c) 2016 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.Core
public section
/--
The `BEq α` and `Hashable α` instances on `α` are compatible. This means that `a == b` implies
... |
2,584 | lean_file_chunk | f0f15770928135b158e805e9d6c0e5f18d6df695782e368a27daa1ab8cf48535 | lean_source_file | lean_toolchain_source_file_chunks | /-
Copyright (c) 2022 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Author: Leonardo de Moura
-/
module
prelude
public import Init.NotationExtra
public section
namespace Prod
attribute [grind =] Prod.map_fst Prod.map_snd
instance [BEq α] [BEq β] [Re... |
896 | lean_file_chunk | a8a3fcad4019f858232f4e790344ec0610a57f98370c7bcbaf60a21a8e633ef8 | lean_source_file | lean_toolchain_source_file_chunks | /-
Copyright (c) 2016 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.Nat.Basic
public import Init.Data.Nat.Div
public import Init.Data.Nat.Dvd
public import Init.Data.Nat.Gcd
public imp... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.