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
546
lean_file_chunk
88b0ba438ddff6975ef2d3923de742717ca816dc8b9267999853e106e67a9682
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: Sebastian Ullrich -/ module prelude public import Init.System.IO public section def Lean.determineLakePath : IO System.FilePath := do if let some lakePath ← IO.getEnv "LAKE" then ...
1,409
lean_file_chunk
eb1823cc42ab4740a067c69687a01ffb05428a047fffbf370f880998d11813d5
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 meta import Lean.Meta.Tactic.Unfold public meta import Lean.Meta.Eval public meta import Lean.Compiler.ImplementedByAttr public meta import Lean.E...
1,288
lean_file_chunk
b4e6ef02087624e5aa29ea533678374c4096bba4677682dac9e9399b66311d18
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, Gabriel Ebner, Sebastian Ullrich -/ module prelude public import Lean.Expr public import Lean.Util.PtrSet public section namespace Lean.Expr @[extern "lea...
3,120
lean_file_chunk
f5cb20b74c3e3d5fe195b2c00e948b3283c78b85862442b55b37ddde86755eb3
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: Leonardo de Moura -/ module prelude public import Lean.Expr public import Lean.Util.MonadCache public section namespace Lean /-! `forEachWhere p f e` is similar to `forEach f...
1,461
lean_file_chunk
b2b60e981ce54369788c2e0ef37c38a3f2db187c674e7a22cef95e05e6d182cf
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.Expr public import Lean.Util.MonadCache public section namespace Lean /-! Remark: we cannot use the caching trick used ...
2,315
lean_file_chunk
caaf242d7076079dbb1e52961cb644ba605a39c340182bfe31c298fa4d0731ce
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: Leonardo de Moura -/ module prelude public import Lean.Util.ReplaceExpr public section namespace Lean.Expr /-- Instantiate level parameters -/ @[specialize] def instantiateL...
4,594
lean_file_chunk
490e95b5d0ec6e273b1e391a32c263539e4e7c3f318e9130f867c3799491f930
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.Environment public section namespace Lean namespace Expr @[inline] def const? (e : Expr) : Option (Name × List Level) ...
4,696
lean_file_chunk
b057fa1cf645cd3de7d72f7908bd56829134a9bf5271c3b595d94327140b1ae8
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 section namespace Lean /-- Interface for caching results. -/ class MonadCache (α β : Type) (m...
4,242
lean_file_chunk
a5ef62d612052a8edeef7d85386578b33adea90c2f4b085e0ab1740952a3425e
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: Leonardo de Moura -/ module prelude public import Lean.Meta.Basic import Lean.Linter.Basic import Lean.Elab.InfoTree.Main import Lean.ExtraModUses import Init.Omega public sec...
3,886
lean_file_chunk
409f89816b9c9721240f39dc84269974bd8578b9b28cba82046b987ee2db81a2
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: David Thrane Christiansen -/ module prelude public import Lean.Elab.Command public import Lean.Linter.Util public section set_option linter.missingDocs true namespace Lean.Linter o...
10,379
lean_file_chunk
2f6e2edbb112f698caa4919e4bd51af4ec8ba1913d0876c762faa7057c4f005f
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: Kim Morrison -/ module prelude public import Lean.Elab.Command public import Lean.Server.InfoUtils import Lean.Linter.Basic public section set_option linter.missingDocs true -- keep i...
2,112
lean_file_chunk
bc67ba2eda1b6ddc5c9b2bf88ab9fcdbe633ab4ccab6b5d276c4b4cc05388d0b
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.Parser.Syntax public import Lean.Data.Options import Lean.Elab.Command import Lean.Linter.Basic import Lean.Server.InfoUtils pu...
23,999
lean_file_chunk
08202b4c8258534d83d64719daf451b43abfbafe9a94d2d6bc9fad8fa229b827
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, Mario Carneiro -/ module prelude public import Lean.Elab.Command public import Lean.Linter.Util public section set_option linter.missingDocs true -- keep it doc...
3,767
lean_file_chunk
0d02c9a05dcaae3eca6456274f8c03bcb9c4512a15194f0f54264cc37d30c3e2
lean_source_file
lean_toolchain_source_file_chunks
-- and should point to some element of `FVarDefinition.aliases` in `s.fvarDefs` let fvarAliases : Std.HashMap FVarId FVarId := s.fvarAliases.fold (init := {}) fun m id baseId => m.insert id (followAliases s.fvarAliases baseId) let getCanonVar (id : FVarId) : FVarId := fvarAliases.getD id id -- Colle...
760
lean_file_chunk
7575b8160af15ed6696e2e9ab9e0c09cdb4b21d12c2f320412a6fd16f7d77ea2
lean_source_file
lean_toolchain_source_file_chunks
/- Copyright (c) 2024 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.Elab.Command public import Lean.Linter.Util public section namespace Lean.Linter open Elab.Command register_builtin_option linter.o...
1,606
lean_file_chunk
a5e998e0c0ce5a5f1d3c5480fdc5eb26a7b174007350fc80886b77596ce43c9d
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.Server.InfoUtils public import Lean.Linter.Basic public section namespace Lean.Linter open Lean.Elab /-- Go upwards through the given `...
1,405
lean_file_chunk
1073decae96702dedb612c80b6b39ab29fe12c9fca507d8f2a960313be1e62e6
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: Anne Baanen -/ module prelude public meta import Lean.Linter.Basic public meta import Lean.Elab.Command public import Init.Notation import Lean.Data.KVMap public section namespace Le...
1,461
lean_file_chunk
a39be0a0097453dabf4b5235f204dc855b65ab4140fa66306e58963fff4b97c9
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.Elab.Command public section namespace Lean.Linter register_builtin_option linter.suspiciousUnexpanderPatt...
4,025
lean_file_chunk
b1c410ffeaa1aafa8f9d8e1345607fdcdb89824ab6fd759791c71360b9709113
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.MonadEnv import Init.Data.Function public section namespace Lean.Linter /-- Linter sets are represented as a map from linter name to set...
3,399
lean_file_chunk
f119d7d4c5d10f71e7d464b0f70023703cdc7c671b791b039d54f9083fd0090e
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.Elab.Command public import Lean.Elab.Tactic.Simp public import Lean.Linter.Util public section namespace Lean.Linter open Lean ...
2,326
lean_file_chunk
d4e20ad87c8bfab2e1bac6a5ccb43169b6a8a9df2fd8fb8fe6c4e037d4e56075
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 Lean.Elab.Command public import Lean.Server.InfoUtils import Lean.Linter.Basic import all Lean.Elab.Term.TermElabM public section set_opt...
14,111
lean_file_chunk
7e691f0a4663564a133ed42298e737b39131427af28b3a0b116c2a3c794e45b8
lean_source_file
lean_toolchain_source_file_chunks
/- Copyright (c) 2022 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.Parser.Syntax public import Lean.Meta.Tactic.Simp.RegisterCommand public import Lean.Elab.Command public import Lean.Linter.Util p...
1,089
lean_file_chunk
611b02d4b38154ed80f54ac096bc805f61708ff5781842b5fffe7e61bdd48be5
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.KeyedDeclsAttribute public section namespace Lean namespace PrettyPrinter /- Auxiliary internal exception for backtracking...
23,953
lean_file_chunk
fdffc4101c670844a78bfc6ac2b164d0d96b5430c06143bc76479bba7edf0f91
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.Parser.Extension public import Lean.Parser.StrInterpolation public import Lean.ParserCompiler.Attribute public import Lean.Pr...
3,244
lean_file_chunk
aacb1a4ef678607380fe3982646329861e352e094ce73a24f9c0036a49d90ef0
lean_source_file
lean_toolchain_source_file_chunks
builtin_initialize formatterAliasesRef : IO.Ref (NameMap FormatterAliasValue) ← IO.mkRef {} def registerAlias (aliasName : Name) (v : FormatterAliasValue) : IO Unit := do Parser.registerAliasCore formatterAliasesRef aliasName v instance : Coe Formatter FormatterAliasValue := { coe := AliasValue.const } instance : C...
446
lean_file_chunk
3bfd960ba75dbc1105a9a32b4367c22c6f16af55f703a14bb0ddf289ddb82096
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.Options public import Lean.PrettyPrinter.Delaborator.SubExpr public import Lean.PrettyPrinter.Delab...
23,906
lean_file_chunk
ace0a5f193ef72e340771e21512242ea9e1d3a0801734438f17540411bac93d8
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.Parser.Extension public import Lean.Parser.StrInterpolation public import Lean.ParserCompiler.Attribute public import Lean.Pr...
7,157
lean_file_chunk
3c44280ec568447425ed7f38aebbc0a37656b296a878dc305797d62d3a4d5e2e
lean_source_file
lean_toolchain_source_file_chunks
trace[PrettyPrinter.parenthesize.backtrack] "unexpected syntax '{format stx}', expected symbol '{sym}'" throwBacktrack @[combinator_parenthesizer nonReservedSymbolNoAntiquot, expose] def nonReservedSymbolNoAntiquot.parenthesizer := symbolNoAntiquot.parenthesizer @[combinator_parenthesizer unicodeSymbolNoAntiquot, e...
971
lean_file_chunk
0f6139b7d459208e1c1089721a544da9ab4b1a7c99636f96eb4afe059b8b1220
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 meta import Lean.LibrarySuggestions.SineQuaNon /-! # Default library suggestions engine This module sets the default library suggestions engine ...
17,637
lean_file_chunk
9532ccad3ae91d32bd579625ed4987c41bd0304bdf34d963d29e4dce3bc73935
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.Meta.Eval public import Lean.Meta.CompletionName public import Init.Data.Random public import Lean.Elab.Tactic.Grind.Annotated import ...
3,227
lean_file_chunk
fb24c646b7fb469ebb53d2381b3c9f38bd7c4252131a600cce9c4801f0a9b8b7
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.LibrarySuggestions.Basic import Lean.LibrarySuggestions.SymbolFrequency /-! # MePo premise selection This is a naive implement of th...
4,630
lean_file_chunk
a1f799a37086c3002b5a77392bbc77e71a9676b2121b480d82789a9a7edac728
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.Meta.Basic import Lean.LibrarySuggestions.Basic /-! # Symbol frequency This module provides a persistent environment extension for c...
8,676
lean_file_chunk
e2133fa774816a9a96d66d8e18533b2c6cb536d4c97c75103b7f96f22f065cc9
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 import all Lean.LibrarySuggestions.SymbolFrequency public import Lean.LibrarySuggestions.Basic /-! # Sine Qua Non premise selection This is an implemen...
5,509
lean_file_chunk
0c81abde02b4d80fdf74c0c17a50034e53f5032d83de358c0a7910471325227a
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.Grind.Util public import Lean.Meta.Closure public import Lean.Meta.Transform public section namespace Lean.Meta /-- Ab...
1,404
lean_file_chunk
faee4479d9d0ee20485b4952e448c28376573d652f818b16aa716238c1e54af7
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.UInt.Basic public import Init.MetaTypes public section namespace Lean.Meta namespace TransparencyMode def hash : ...
4,373
lean_file_chunk
72a3b9f84e1db1373a1c7ff7a0ccb3d2495b28bf5b22d68796e1340102c2eb79
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.SubExpr public section namespace Lean.Meta open Lean.SubExpr (Pos) open Lean.SubExpr.Pos variable {M} [Monad M] [MonadLiftT MetaM M] [Mon...
11,988
lean_file_chunk
4d4b2ded52d35ac944dc5df2d8470ce6edd0b38303f4be9e95fb246931ac90c0
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.Meta.Basic import Init.Data.Range.Polymorphic.Iterators public section namespace Lean.Meta inductive RecursorUnivLevel...
23,930
lean_file_chunk
c87ee86262c5560ea0442f235b922a8d1001568c1b374d56131d73c98aac0bb4
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.UnificationHint public import Lean.Util.OccursCheck import Lean.Meta.WHNF public section namespace Lean.Meta registe...
23,989
lean_file_chunk
b915cd8d38d7633bb00ed308ea0905a1131f2d81a98445f70280c7439c06cb09
lean_source_file
lean_toolchain_source_file_chunks
The `Nat` argument is the current position in the local context being visited, and it is less than or equal to the position of `xs.back` in the local context. The `Nat` context `(← read)` is the position of `xs[0]` in the local context. -/ collectLetDepsAux : Nat → ReaderT Nat (StateRefT FVarIdHashSet MetaM...
23,933
lean_file_chunk
437d234388a1c20be55b0e6bc1b44d3ac628b4795984ea7960b2d833dac4fb87
lean_source_file
lean_toolchain_source_file_chunks
let ctx ← read let mctx ← getMCtx let v ← if CheckAssignmentQuick.check hasCtxLocals mctx ctx.lctx mvarDecl mvarId fvars v then pure v else if let some v ← CheckAssignment.checkAssignmentAux mvarId fvars hasCtxLocals (← instantiateMVars v) then pure v else return none unless typeOc...
23,990
lean_file_chunk
afde1c20f50a42ea010342aa6a1140ffce4dc922bfc2727c8bb88076392b1a7f
lean_source_file
lean_toolchain_source_file_chunks
let some { fvars, mvarIdPending } ← getDelayedMVarAssignment? tFn.mvarId! | return none let tNew ← instantiateMVars t if tNew != t then return some tNew /- If `assignSyntheticOpaque` is true, we must follow the delayed assignment. Recall a delayed assignment `mvarId [xs] := mvarIdPending` is morally an as...
6,172
lean_file_chunk
bda728a336dc2eb73cdf4b5e39579a08c99021f3971f107e7efa040141990a9b
lean_source_file
lean_toolchain_source_file_chunks
| permanent -- problem does not have mvars and we are using standard config, we can use one persistent cache. private def getDefEqCacheKind (t s : Expr) : MetaM DefEqCacheKind := do if t.hasMVar || s.hasMVar || (← read).canUnfold?.isSome then return .transient else return .permanent /-- Structure for stor...
14,980
lean_file_chunk
f957c67fd3090ef6bd00ef179e7e00fe9c45172965763a1cd5804c6fa3d387af
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.Sorry import Init.Data.Range.Polymorphic.Iterators import Lean.OriginalConstKind public section /-! This is not th...
3,134
lean_file_chunk
9379e414f770d17d77a995db665f237706b96c58ed7eb7eb3378748d7f27dd73
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.Basic public section namespace Lean.Meta /-! Functions for testing whether expressions are canonical ...
2,393
lean_file_chunk
80530a585032fe4b6c8007da87e0ca0bdaafab0c5c6f53b42893710027e74c4b
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.CollectFVars public import Lean.Meta.Basic public section namespace Lean open Meta def Expr.c...
3,963
lean_file_chunk
c9a7a478d6132587c8e0aa48c033a0aaca86203240312586effb6d2dab1c297e
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.Tactic.Rewrite import Lean.Meta.Constructions.SparseCasesOn import Lean.Meta.Constructions.SparseCases...
10,510
lean_file_chunk
da59e56bd2a423a8d0110b725abc5b4e86c9d3a525eb0f278bc18e62e4a2d0ee
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 -/ module prelude public import Lean.AddDecl public import Lean.Meta.AppBuilder import Lean.Structure import Lean.Meta.Transform public section na...
6,252
lean_file_chunk
ab374f59e20574285358ab4bf0bb154604451904ac3ee24333f472eda8002b7e
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.Util.ShareCommon public import Lean.Meta.FunInfo public import Std.Data.HashMap.Raw import Init.Data.Range.P...
15,161
lean_file_chunk
b682499c557912e2a4277658798b76c51b0573fbf19f652f470d2d1545a3ea9d
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.Range.Polymorphic.Stream public import Lean.Meta.DiscrTree.Main public import Lean.Meta.CollectMVars import Init.Whil...
540
lean_file_chunk
49d82da635bb70f6cc7010785c7e0710a081f82c34b4aea421cac475cb03c8fc
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 Lean.Expr public section namespace Lean.Meta /-! Abstract simplifier API -/ inductive MonadSimp.Result where | ...
9,867
lean_file_chunk
9d5bc1cb24eaaf916ab86d50fb476d9f9af713dcf2757787417819095bf92318
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.Tactic.Simp.SimpTheorems import Lean.Meta.Tactic.Simp.Main import Lean.Structure namespace Lean open Meta structure MethodSp...
3,540
lean_file_chunk
39d2e2dd9111e9c0af7565e4549d35f6f927a38695613638fcd14768792f723e
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.CollectMVars public import Lean.Meta.Basic public section namespace Lean.Meta /-- Collect unassigned metavariab...
838
lean_file_chunk
76d0411c7a28713fc7696946071456dbf0f45dd90e901519fa13ff7f2371e639
lean_source_file
lean_toolchain_source_file_chunks
/- Copyright (c) 2024 Lean FRO. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Joe Hendrix -/ module prelude public import Lean.Meta.Basic public section namespace Lean.Meta.CheckTactic def mkCheckGoalType (val type : Expr) : MetaM Expr := do let lvl ← mkFreshLev...
22,931
lean_file_chunk
59cc318518adce3e6caa9f260bbfab5ac61d2523196b376a545ab8e263541624
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: Kyle Miller, Leonardo de Moura -/ module prelude public import Lean.Meta.Basic public import Lean.Meta.MonadSimp import Lean.Util.CollectFVars import Lean.Util.CollectLooseBVars import ...
5,878
lean_file_chunk
62c57c9e32d874c2b29de81351eef65f7f4c664dbe9bb5c184a1a261eb1598c2
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.Data.LBool public import Lean.Meta.Basic import Lean.Meta.NatInstTesters import Lean.Util.SafeExponentiation public sectio...
3,285
lean_file_chunk
36d91f32753a8454540492c0afca2cfa4417f1d2348524d80f2183f34000dab3
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: Leonardo de Moura, Joachim Breitner -/ module prelude public import Lean.Meta.Basic import Init.Data.Range.Polymorphic.Iterators open Lean Meta /-! This modules defines the `CasesInf...
7,360
lean_file_chunk
b758d52f1a43e0400a9cb51597875abaa670d4f8a8d964e456f689078844ea44
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.Transform import Init.Data.Range.Polymorphic.Iterators import Init.Omega public section /-! This module provides functions...
1,608
lean_file_chunk
ec8069756f5785b20c2af83f8c7d9b11ea1b6e64afda670b7ec817166a1f1e45
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 Lean.Data.AssocList public import Lean.HeadIndex public import Lean.Meta.Basic public section namespace Lean.Meta /-- A ma...
6,268
lean_file_chunk
38456e1d0ce20e09482979181f4eb3f9c4bd926482d3473e518c33aa878b3871
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.Util.CollectMVars public import Lean.Meta.DecLevel public section namespace Lean.Meta /-- Return true iff `lvl` occu...
7,612
lean_file_chunk
b842a9337863e5c7cccc11f17667ee288e29301ec05aad309b711078af1f8cad
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.SubExpr public section /-! # Expression Lenses Functions for manipulating subexpressions using `SubExpr.Pos`. -/ namespace Lean.Meta s...
17,830
lean_file_chunk
9bf883379dc36d56343db47298743c0f554ac63b68993acf54b7d8a802e8c85f
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: Kyle Miller -/ module prelude public import Lean.Meta.Check public import Lean.ReservedNameAction public import Lean.AddDecl public import Lean.Meta.Transform public import Lean.Util.C...
3,947
lean_file_chunk
91c6e158f109b5ef7f51c2f73da7b1e47e23fd6b8750a1d17cd3f2df5df41766
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.Transform /-! This module contains utilities for dealing with equalities between constructor applicat...
2,848
lean_file_chunk
577494a2580745e5eb9aa586d8a116f49c80be38c7da94ab033356cde2593ebf
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 import Lean.Util.CollectFVars public section namespace Lean.Meta /-- Add to `forbidden` all a set ...
2,308
lean_file_chunk
c92970c04e23a5b9f982f13f6557d71bab16898fd451b33195cf6402330b4f6c
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.Recognizers public import Lean.Meta.CtorRecognizer public section namespace Lean.Meta @[inline] def testHelper (e...
23,921
lean_file_chunk
5597a39b8ed34faa5210d4b37143a4aacad8fce2d0a35ddec6538ecf017d9385
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, Leonardo de Moura Type class instance synthesizer using tabled resolution. -/ module prelude public import Init.Data.Array.InsertionSort public import Lean.Meta....
20,560
lean_file_chunk
0be23d4c9a7cb8e017ba3b2cd9cb501bbe64579f8d6ac149b9312395e1429ba0
lean_source_file
lean_toolchain_source_file_chunks
Thus, we can skip other solutions because we assume instances are "morally canonical". We have added this optimization to address issue #3996. Remark: Condition 1 is important since root nodes only take into account results that do **not** contain metavariables. This extra check was...
23,984
lean_file_chunk
e33a2ca4aab3f888c47fa0d5eb169df727efd1a0997d4992c9661d0563d4d9c1
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: Joe Hendrix, Kim Morrison -/ module prelude public import Lean.Meta.CompletionName public import Lean.Meta.DiscrTree import Init.Omega public section /-! # Lazy Discrimination Tree ...
18,562
lean_file_chunk
0f7c5776e702ce17d7886a06c42a2aa3d8553882aecbd28be630f541fb50771e
lean_source_file
lean_toolchain_source_file_chunks
namespace PreDiscrTree def modifyAt (d : PreDiscrTree α) (k : Key) (f : Array (LazyEntry α) → Array (LazyEntry α)) : PreDiscrTree α := let { roots, tries } := d match roots[k]? with | .none => let roots := roots.insert k tries.size { roots, tries := tries.push (f #[]) } | .some i => { roots, tr...
15,105
lean_file_chunk
c69a47240b53d076fb529cc46c4c649a5bd3a47e7b9fc7abc3a7b2273ca7e297
lean_source_file
lean_toolchain_source_file_chunks
/- Copyright (c) 2018 Johannes Hölzl, David Renshaw. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Copyright (c) 2025 Lean FRO, LLC. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Johannes Hölzl, David Renshaw, Wojciech Różo...
2,643
lean_file_chunk
f4327871afeb69da91d612f2f2d44179a5228c445db1152b7d8c9e3f3e4d62bd
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, Leonardo de Moura -/ module prelude public import Lean.AddDecl public import Lean.Meta.Check public import Lean.Util.CollectLevelParams import Lean.Compiler.Opti...
3,522
lean_file_chunk
d1a7363de5235358563a41289df6f8d067a37e11f02e596342ed2e79cb4ec503
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.LitValues public import Lean.Meta.Offset public section namespace Lean.Meta private def getConstruct...
13,980
lean_file_chunk
553c30939dc30f8b9eaa1611f4483114e4e9c5baf54f3d7c16d4e0f29f3dddbf
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.Meta.FunInfo import Init.Data.Range.Polymorphic.Iterators public section namespace Lean inductive TransformStep where /...
19,093
lean_file_chunk
e6e02e7cf5001db3ea89131539f21571070316718c4dc268ef02711f293ef2c5
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.Meta.Check public import Lean.Meta.Tactic.AuxLemma import Lean.Util.ForEachExpr public section /-! This module provide...
2,880
lean_file_chunk
31bdfaf26e56a2f61a898bab04bc181259d4c84e41726e4dfa79790c4c071014
lean_source_file
lean_toolchain_source_file_chunks
/- Copyright (c) 2022 Gabriel Ebner. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Gabriel Ebner, Mario Carneiro, Leonardo de Moura -/ module prelude public import Lean.Meta.FunInfo public section /-! # The `@[coe]` attribute, used to delaborate coercion functions ...
3,853
lean_file_chunk
52db633db67514816dc17671e7e64f106e6950952aef6f6a56219c3a7b24df1f
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: Wojciech Różowski, Joachim Breitner -/ module prelude public import Lean.Meta.PProdN public import Lean.Meta.AppBuilder public import Init.Internal.Order.Basic public section /-! Th...
2,851
lean_file_chunk
9376a7ba8755cf23a017a2b81067c581c70c9206ff53de29201f6f685159a219
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.InferType public section namespace Lean.Meta structure DecLevelContext where /-- If `true`, then `decAux? ?m...
23,909
lean_file_chunk
efe25cf789d7b31bd9b5bb18ea8d318c5c164a7a1f35be6aa3d50d69fd3c7c09
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.Structure public import Lean.Util.Recognizers public import Lean.Util.SafeExponentiation public import Lean.Meta.GetUnfol...
23,711
lean_file_chunk
7fe678684f989e8d698b459f99a9f2237ca4138f8ab92ac0bc85a4381653766c
lean_source_file
lean_toolchain_source_file_chunks
Recall that we can only expand a delayed assignment when all holes/metavariables in the assigned value have been "filled". -/ private def whnfDelayedAssigned? (f' : Expr) (e : Expr) : MetaM (Option Expr) := do if f'.isMVar then match (← getDelayedMVarAssignment? f'.mvarId!) with | none => return none | so...
23,834
lean_file_chunk
b3cefd6a33431c6d39c05d312f32b823ea83e5ced632722d43134ed29db51417
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: Dany Fabian, Robin Arnez -/ module prelude public import Lean.Meta.Match.MatcherApp.Basic import Lean.Meta.Constructions.CasesOn import Lean.Meta.Match.Match import Init.Data.N...
2,740
lean_file_chunk
86ff2945114cca45efcf83630e4fe93de5d2d8b6c9354d160fca48304b077bd7
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.Tactic.Refl import Lean.Meta.Constructions.CtorIdx import Lean.Meta.Tactic.Subst namespace Lean.Meta d...
12,201
lean_file_chunk
8fe934eb42e333af426c6709a980b06799d8af8b97d6788302f0c0a6f8ec1388
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.Match.MatcherInfo public import Lean.DefEqAttrib public import Lean.Meta.RecExt public import Lean.Meta.LetToHave im...
3,770
lean_file_chunk
5c327c796be8621db7d2062e5c657aabe1bf9dc9c4545261afdeadfa68fe0c9c
lean_source_file
lean_toolchain_source_file_chunks
/- Copyright (c) 2025 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.Basic public section namespace Lean.Meta /-! Functions for testing whether expressions are canonical ...
3,488
lean_file_chunk
76fee72a8cba713cb176ed910a374a585e956c78a30672583f26da80970225ae
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 public section namespace Lean /-- Does `e` have a binder name hint? (quick check) -/ def Expr.hasBinderNameHint (...
6,676
lean_file_chunk
290b577c2df321c5ae93d3d8f5a5e20c20a4f109945dd3c739b1635d74b03fd7
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.Data.Lsp.Utf16 public import Lean.Meta.ForEachExpr public import Lean.Meta.InferType public import Lean.Util.Recognizers public sectio...
23,980
lean_file_chunk
8db50d33cf0835e382222a3555accffd15c5ae0d227a8748a21ffe05119ca681
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.Control.Do public import Lean.Data.LOption public import Lean.Class public import Lean.ReducibilityAttrs public import Le...
23,788
lean_file_chunk
f8ee48e7d3c5da3ee09bae3429c846cb5bd966bd5c19de718a6a17a2a66bb1ce
lean_source_file
lean_toolchain_source_file_chunks
@[inline] def MetaM.toIO (x : MetaM α) (ctxCore : Core.Context) (sCore : Core.State) (ctx : Context := {}) (s : State := {}) : IO (α × Core.State × State) := do let ((a, s), sCore) ← (x.run ctx s).toIO ctxCore sCore pure (a, sCore, s) protected def throwIsDefEqStuck : MetaM α := throw <| Exception.internal isDef...
23,987
lean_file_chunk
4fc3f48125ae8d5213b61277cd36c123b5bbf65c7d5287e0427ecffb2b275c8e
lean_source_file
lean_toolchain_source_file_chunks
def mkLambdaFVars (xs : Array Expr) (e : Expr) (usedOnly : Bool := false) (usedLetOnly : Bool := true) (etaReduce : Bool := false) (generalizeNondepLet := true) (binderInfoForMVars := BinderInfo.implicit) : MetaM Expr := if xs.isEmpty then return e else liftMkBindingM <| MetavarContext.mkLambda xs e usedOnly usedLetO...
23,997
lean_file_chunk
e7f3280c9d45700a94d0a1e1b46c14f7059d7d078a00f25038829d7d97a0792c
lean_source_file
lean_toolchain_source_file_chunks
Like `letTelescope`, but limits the number of `let`/`have`s consumed to `maxFVars?`. If `maxFVars?` is none, then this is the same as `letTelescope`. -/ def letBoundedTelescope (e : Expr) (maxFVars? : Option Nat) (k : Array Expr → Expr → n α) (cleanupAnnotations := false) (preserveNondepLet := true) (nondepLetOnly := f...
23,991
lean_file_chunk
2d3b2f5cf70dda5f1d3d482fdcbd857624909bac43a43e344ded3d9bc5b126ca
lean_source_file
lean_toolchain_source_file_chunks
* the term `t[arg₁,…,argₙ]`. It uses `whnf` to reduce `e` if it is not a lambda. See also `Lean.Meta.instantiateLambda`. -/ def instantiateLambdaWithParamInfos (e : Expr) (args : Array Expr) (cleanupAnnotations : Bool := false) : MetaM (Array ExprParamInfo × Expr) := do let mut e := e let mut res := Array.mkE...
3,010
lean_file_chunk
8b4bf336589482e8e27be15dffb78c52d2f469edcfe19b24af4278ba50f15999
lean_source_file
lean_toolchain_source_file_chunks
-- Re-privatize private `constName` under the current module so that auxiliary -- declarations generated during realization get names scoped to the realizing module, -- not the original defining module. This prevents name collisions when the same -- constant is realized independently from ...
2,244
lean_file_chunk
0cf0738b246fb2807d6ec800b52255ecb40cfba0b2f1555dff9c92be2bc4b0d3
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 Lean.Meta.InferType import Lean.Meta.DecLevel import Init.Data.Range.Polymorphic.Iterators public section namespace Lean.Meta /-- Giv...
1,932
lean_file_chunk
27dda827f19550c6db583aa401b8a36082a2c9d20b6e404c30197cdae2e0595a
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: Joachim Breitner -/ module prelude public import Lean.Meta.Basic import Lean.Meta.MatchUtil /-! Utility functions around `Nat.hasNotBit`, used by sparse cases. -/ open Lean Meta pub...
5,936
lean_file_chunk
e637d7419fc2298bdc3ab83d76b721b59acf368851008076c3b757d256eef3e5
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.Meta.InferType public section namespace Lean.Meta register_builtin_option pp.auxDecls : Bool := { defValue := false ...
6,708
lean_file_chunk
4571cd0db442460491880f9aa2233185d2ed915d1c40a1ed44707c85f79267d0
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: Leonardo de Moura -/ module prelude public import Lean.Meta.DiscrTree.Main import Init.Data.Range.Polymorphic.Iterators import Lean.Meta.FunInfo public section namespace Lean d...
524
lean_file_chunk
035a81aa6b11ebd4f9f3296f9e6660825cca4273f3a4e397653d880a90f3c07b
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.Meta.Constructions.CasesOn public import Lean.Meta.Constructions.NoConfusion public import Lean.Meta.Constructions.RecOn ...
907
lean_file_chunk
e6bc05a16c8cfd233a3eca57ebec2018cba838e7f9855f3e8da1b5c41298dccd
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.Attributes public section namespace Lean.Meta /-- Environment extension for storing which declarations are recursive. ...
1,718
lean_file_chunk
918edbb9318f57856cf8f5d8251f8d8eb13ff9310d7ce2f9b91f3c75d3e0243d
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.Tactic.Intro public import Lean.Meta.Tactic.Assumption public import Lean.Meta.Tactic.Contradiction public import Le...
21,647
lean_file_chunk
91a235d37b9ba0e9b93bebd8c04ac341acc0d57c5a8866d89908cbf169031a74
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.AppBuilder public import Lean.Meta.PProdN public import Lean.Meta.ArgsPacker.Basic import Init.Omega import Init.While publ...
5,386
lean_file_chunk
6aeba554e0f4151003d42876a2f03a36da9e9b54907e5fe8d405a859df49a8ff
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.Meta.SynthInstance public section namespace Lean.Meta abbrev UnificationHintKey := DiscrTree.Key structure Unificatio...
4,521
lean_file_chunk
3e623ee6b2871b0d637e25b8220b4489fd3fc458cd8bd124e1e0a7c13fd89fea
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.Offset public section /-! Evaluation by reduction -/ namespace Lean.Meta class ReduceEval (α : Type) where reduceE...