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 |
|---|---|---|---|---|---|
864 | lean_file_chunk | e00a789ed51c0092d5a081577c33317610cd63cc2d5014a48c63d28b58dfef59 | 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.ToString.Basic
public section
namespace Lean
inductive LBool where
| false
| true
| undef
deriving Inhabi... |
887 | lean_file_chunk | bf47a3b997e7242c763d4b39a7ff602b5037994d15791a23eac5e01332cbdffb | 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.String.Basic
public section
universe u
namespace Lean
inductive LOption (α : Type u) where
| none : LOption α
... |
2,147 | lean_file_chunk | 66f7671373767de733f85fd0f83e22f77317477eaf524078dce964c52930ce3e | 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: Leonardo de Moura
-/
module
prelude
public import Lean.Data.PersistentHashMap
public section
namespace Lean
universe u v
structure PersistentHashSet (α : Type u) [BEq α] [Has... |
1,827 | lean_file_chunk | c91f2518525e6628c263868e92d5ea485bc78b8cc0e6b634c7fdd1428c87d319 | 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: Leonardo de Moura
-/
module
prelude
public import Lean.Data.Options
public import Init.Data.Format.Instances
public section
universe u v
namespace Std
namespace Format
open Le... |
211 | lean_file_chunk | 10b7c8a81386391332dc5faac1f5a08bf229ee2b63af9fa5484f9ffeac606289 | lean_source_file | lean_toolchain_source_file_chunks | /-
Copyright (c) 2026 Lean FRO, LLC. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Paul Reichert
-/
module
prelude
public import Lean.Data.Iterators.Producers |
793 | lean_file_chunk | 48e1a7dda4553c2f3428e395796eeaba0bc9f87ed61e62089abf48c870973a35 | lean_source_file | lean_toolchain_source_file_chunks | /-
Copyright (c) 2020 Marc Huisinga. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Marc Huisinga, Wojciech Nawrocki
-/
module
prelude
public import Lean.Data.Lsp.Basic
public import Lean.Data.Lsp.CancelParams
public import Lean.Data.Lsp.Capabilities
public import Le... |
269 | lean_file_chunk | bbc8f9cc995a8373cce8eeaa652fdcebfa04e70845f90ee3d69d1a882f0e737f | 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: Leonardo de Moura
-/
module
prelude
public import Lean.Data.NameMap.Basic
public import Lean.Data.NameMap.AdditionalOperations |
8,334 | lean_file_chunk | 3d5d297403d8fd783890af0f3274062b05027cf524b9597584cc5eadb2dcfc9a | 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.Format.Syntax
public import Init.Data.ToString.Name
public import Init.Data.ToString.Extra
public section
namespac... |
6,263 | lean_file_chunk | dedae3fba1e0744d7fc187ae85a2d42fcba0beb28e8a65ac49ee37cade276372 | 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, Joachim Breitner
A string trie data structure, used for tokenizing the Lean language
-/
module
prelude
public import Lean.Data.Format
publ... |
15,455 | lean_file_chunk | e485dd7f9597a5a3e25567bc8d1c576cc7d2602474ce47babce9819258e62383 | 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.BasicAux
public import Init.Data.UInt.Basic
public import Init.Control.Except
public import Init.Data.Array.Ba... |
3,804 | lean_file_chunk | 69c62194205ad88276f5a47063cfa9561a864dea658291a4baa47112c7057c93 | lean_source_file | lean_toolchain_source_file_chunks | /-
Copyright (c) 2017 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Leonardo de Moura
-/
module
prelude
public import Lean.Data.RBMap
public section
namespace Lean
universe u v w
@[expose] def RBTree (α : Type u) (cmp : α → α → Ordering) : Ty... |
4,384 | lean_file_chunk | 964e16541aa03c1b49e3153299f8e8a9357d18f89aac65e9ed8e8af6483ed10d | 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 Std.Data.TreeMap.Raw.Basic
public section
namespace Lean
/- Similar to trie, but for arbitrary keys -/
inductive PrefixTree... |
7,733 | lean_file_chunk | 7b831a08baa7792cb95d7b443c7fcbacaf45144415405680e483df70bf0debc3 | 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: Sebastian Ullrich and Leonardo de Moura
-/
module
prelude
public import Lean.ImportingFlag
public import Lean.Data.KVMap
public import Lean.Data.NameMap.Basic
import Init.Data.... |
6,003 | lean_file_chunk | b4407e706adc9095d1d443bf8564528930bb71ed318111593fbb14742dda84fd | 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: Leonardo de Moura
-/
module
prelude
public import Init.Data.Ord.Basic
import Init.Data.String.TakeDrop
import Init.Data.Ord.String
import Init.Data.Ord.UInt
import Init.Data.Str... |
14,710 | lean_file_chunk | 475730e3e5e336e334fb03a88a328e78209d4649acb4226e1536fed930980ecf | 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.Nat.Fold
public import Init.Data.UInt.Basic
import Init.Data.String.Defs
import Init.Data.ToString.Macro
import Init... |
3,514 | lean_file_chunk | 9dd9ee6e374c2499f40dc1e180151607162828ac56d275d3b0bcbab9ad9e7d7d | 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: Leonardo de Moura
-/
module
prelude
public import Init.Data.List.Impl
public section
universe u v w w'
namespace Lean
/-- List-like type to avoid extra level of indirection -... |
2,740 | lean_file_chunk | 63500ea774b0ec9f5e83b90dcc716d7523f1aeafefaa9e9d08d5ee3744bc9dca | 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
import Init.Data.Stream
public import Init.Data.Range.Polymorphic.Nat
public import Init.Data.Range.Polymorphic.Iterators
namespace Array
/-!
This ... |
1,337 | lean_file_chunk | 03361b120364461872e826ff10d099cbead7c589245d2d6e4ac7455c79ff9943 | lean_source_file | lean_toolchain_source_file_chunks | /-
Copyright (c) 2021 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Leonardo de Moura
-/
module
prelude
public import Lean.Data.SMap
public section
namespace Lean
/-- Staged set. It is just a simple wrapper on top of Staged maps. -/
@[expose... |
3,967 | lean_file_chunk | a0f4ead2c6a4f217e7c6f29206c05d3dba62b1065a502cd57286d5db4376c021 | 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, Sebastian Ullrich
-/
module
prelude
public import Lean.Data.Json.FromToJson.Basic
public import Lean.ToExpr
public section
namespace Lean
structure Positi... |
1,848 | lean_file_chunk | 4b5c6f863c63dfb7d7f4950901b0b3e5db7c9da9e554c45b9d79228d16f156be | lean_source_file | lean_toolchain_source_file_chunks | /-
Copyright (c) 2024-2025 Lean FRO, LLC. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: David Thrane Christiansen
-/
module
prelude
public import Init.Data.String.Basic
import Init.Data.Vector.Basic
import Init.Data.Nat.Order
import Init.Data.Order.Lemmas
import Init... |
3,482 | lean_file_chunk | 06c21c7bfb628bcf5c75227d77ea07bceaad69db58d78dec24fefd0a35752f4b | 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.InfoTree
public section
namespace Lean.Compiler
/--
Instructs the compiler to use a different function as the imp... |
1,309 | lean_file_chunk | ce2f518fc006a2c751ec7fad30780506befe02966cf405afcafda7ebbf436bb6 | 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.Attributes
public section
namespace Lean
/--
Instructs the compiler that function applications using the tagged declar... |
1,817 | lean_file_chunk | 347cc271e5ae5464d4ecb4c602c23fa7bb08a7d72946aa3d46e0972681253f1f | 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.Compiler.LCNF.AlphaEqv
public import Lean.Compiler.LCNF.Basic
public import Lean.Compiler.LCNF.Bind
public import Lean.Co... |
11,686 | lean_file_chunk | 779a71911f2c095b0029b89df68d11ca07dcd840eef0c2cfe491c1d619f1df0b | lean_source_file | lean_toolchain_source_file_chunks | /-
Copyright (c) 2026 Lean FRO, LLC. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Kim Morrison
-/
module
prelude
import Init.While
import Init.Data.String.TakeDrop
import Init.Data.String.Search
import Init.Data.String.Iterate
import Lean.Data.NameTrie
public import... |
4,440 | lean_file_chunk | 2e74079e253246dc773f31b870e761edcf2b46a9d3b304fed13d841d6da162d4 | 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.Attributes
import Lean.Meta.RecExt
public section
namespace Lean.Compiler
inductive InlineAttributeKind where
| inl... |
389 | lean_file_chunk | 0d56c1edc52ff019df0ffe82b3e1c5f4e2b5e85096e6687cce0715509f28e4fa | 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 section
namespace Lean
def markBorrowed (e : Expr) : Expr :=
mkAnnotation `borrowed e
def isMarkedBorrow... |
8,243 | lean_file_chunk | 6a5b6c50cb94d422fb1022c9b45f009aee820cdc3396a0efbe98806605e990c8 | 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: Leonardo de Moura, Robin Arnez
-/
module
prelude
public import Lean.Setup
import Init.Data.String.TakeDrop
import Init.Data.UInt.Lemmas
import Init.Omega
import Init.Data.String... |
1,417 | lean_file_chunk | ace0758ba5dfd675968829b7acb03064f9f575173b4663a5e408c63dbac0469e | 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.Environment
public section
namespace Lean
structure ClosedTermCache where
map : PHashMap Expr Name := {}
co... |
4,167 | lean_file_chunk | ea2e78a4a16941123e577d94158bbf0310fd52b931e419769fd905b3a22504e6 | 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
import Init.Omega
public section
namespace Lean.Compiler
inductive SpecializeAttributeKind where
| specia... |
9,361 | lean_file_chunk | fef5c20a830ee38719ca9657820ed882cdfb739589421af9c4eb2dd9893d1add | 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.AddDecl
public import Lean.Elab.InfoTree.Main
import Init.Data.Range.Polymorphic.Stream
import Lean.Compiler.NameMangling... |
2,541 | lean_file_chunk | 45c6f7fc907538f7a872dc4fae18c473ace566c40046bbee545f030643d77795 | lean_source_file | lean_toolchain_source_file_chunks | /-
Copyright (c) 2025 Mac Malone. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Mac Malone
-/
module
prelude
public import Lean.Environment
import Lean.Compiler.NameMangling
set_option doc.verso true
namespace Lean
/-- Persistent environment extension for storing ... |
3,744 | lean_file_chunk | 05e7a5d859aef1d96ca3943d6eb5582f79e11567d4b609cc5f763f3a1336a6c9 | 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.ScopedEnvExtension
public import Lean.Util.Recognizers
import Lean.ExtraModUses
public section
namespace Lean.Compiler
... |
934 | lean_file_chunk | 85659b96a521752e9b68cffc09a581af058777001e32d82a20912146adb4b569 | 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.EnvExtension
public section
namespace Lean
-- `sync` as it's written to from both main branch and codegen branch
built... |
1,232 | lean_file_chunk | 20d689ee1a7af577a3023428c13d5315b6d229d20f26c004734e9b1c6bc049df | 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.Compiler.IR.Basic
public import Lean.Compiler.IR.Format
public import Lean.Compiler.IR.CompilerM
public import Lean.Compi... |
1,704 | lean_file_chunk | 51b8d761591791e9894a936efe4362811117699bf2ae7fc0e3c1544b305d8548 | 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.Trace
public section
namespace Lean.Compiler
register_builtin_option compiler.check : Bool := {
defValue := fal... |
1,936 | lean_file_chunk | 3011d600ef5dbd55bc4a98aac92acea67ea629a31ace703c7c699d2cd8051fbb | 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.Environment
import Init.Data.String.TakeDrop
public section
namespace Lean
namespace Compiler
/-! Helper functions for... |
2,219 | lean_file_chunk | 373553b31349c3a5d35a6f4d759b945d81c496126ebe30e143db53c037744ef0 | lean_source_file | lean_toolchain_source_file_chunks | /-
Copyright (c) 2021 Sebastian Ullrich. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Sebastian Ullrich
-/
module
prelude
public import Init.System.FilePath
import Init.Data.String.Search
public section
open System
namespace Lean.Compiler.FFI
@[extern "lean_get_... |
2,144 | lean_file_chunk | ac3f99f1d0c9f89d749d33e4fa0982015ea20b21097592264716bc9252aa8bcd | 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.Attributes
public section
namespace Lean
private def isValidCppId (id : String) : Bool :=
let first := id.front;
f... |
5,000 | lean_file_chunk | 7b6db89bdaf6d97ace653bf79dc057e8c8bf460b3070da4cbec8802c94b4cc6b | 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.ProjFns
public import Lean.Attributes
public section
namespace Lean
inductive ExternEntry where
| adhoc (backend ... |
3,561 | lean_file_chunk | 2b4d26dbab844a37fa96d1cd3c3ba5b2f51ff94354129a2447bd1e27527c431a | 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.EnvExtension
public section
namespace Lean
/-- Environment extension collecting `meta` annotations. -/
private builtin_initialize m... |
783 | lean_file_chunk | 399879346bec9dfaeb2c8bd517cdb1889f63e478bd03ac2c52c1077c8a0728d9 | 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.Compiler.LCNF
import Lean.Compiler.Options
public section
namespace Lean.Compiler
/--
Run the code generation pipeline ... |
23,980 | lean_file_chunk | a65f3778d380f8105da0073e0e9fe85aad04427277b3148a91092d7a712d2ae4 | 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, Leonardo de Moura, Gabriel Ebner, Mario Carneiro
-/
module
prelude
public import Lean.PrettyPrinter.Delaborator.Basic
public import Lean.Meta.CoeAttr
public impo... |
23,934 | lean_file_chunk | 6824c767e36a9d806a80cb4878181dd7790c328389e13179128d81987fb773ae | lean_source_file | lean_toolchain_source_file_chunks | let args := e.getBoundedAppArgs maxArgs
let paramKinds ← getParamKinds fn args
if (← useAppExplicit args.size paramKinds) then
-- Don't use field notation when `pp.tagAppFns` is true since that obscures the head application.
delabAppExplicitCore (fieldNotation := unexpand && !tagAppFn) args.size delabHead' ... |
23,957 | lean_file_chunk | 1e32de8a6677d7d5a066fc929a054b8bbc9368b981acacb472ab40ed9653578f | lean_source_file | lean_toolchain_source_file_chunks | -- Logic note: wanting to print with binder names is equivalent to pretending the forall is dependent.
let opts ← getOptionsAtCurrPos
let mut dep :=
!(← getExpr).isArrow
|| (getPPPiBinderNames opts
&& (!(← getExpr).bindingName!.hasMacroScopes || getPPPiBinderNamesHygienic opts))
if !dep && prop &&... |
4,438 | lean_file_chunk | 4f14c3636dd923ca5fe24522803fac4fd3853c47497915fc09f3f09e60bb3ead | lean_source_file | lean_toolchain_source_file_chunks | `mkGroup` constructs binder syntax for the binder names `curIds : Array Ident`, which all have the same type and binder info.
This being a function is solving the following issue:
- To get the last binder name, we need to be under `withBindingBody'`, which lets us annotate the binder with its fvar.
- ... |
20,952 | lean_file_chunk | 2f85030e51a4d324eb535fd70b2b3b2d88e3ed954f4c15b69bee58448af543da | 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: Sebastian Ullrich
-/
module
prelude
public import Lean.KeyedDeclsAttribute
public import Lean.PrettyPrinter.Delaborator.TopDownAnalyze
import Lean.Elab.InfoTree.Main
import Lea... |
1,341 | lean_file_chunk | cdc1fb69ffe792044294667fce5243258562fc7f0f49f0dac1c9187ad3e38ae8 | 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.Attributes
public section
/-!
# Attributes for the pretty printer
This module defines attributes that influence pretty printer outpu... |
23,934 | lean_file_chunk | ce4815eaa6425152bf357b41a820be3c03d932675133652ce97c879a5e21f1af | 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: Daniel Selsam
-/
module
prelude
public import Lean.Meta.SynthInstance
public import Lean.Util.FindMVar
public import Lean.Util.FindLevelMVar
public import Lean.Util.CollectLeve... |
3,152 | lean_file_chunk | 869eff5246119e9132c503783a1c594f6f575371d060ed4e997696a49a9f116b | lean_source_file | lean_toolchain_source_file_chunks | withTheReader Context (fun ctx => { ctx with inBottomUp := ctx.inBottomUp || bottomUps[i]! }) do
match bInfos[i]! with
| BinderInfo.default =>
if ← pure (getPPAnalyzeExplicitHoles (← getOptions)) <&&> pure !(← valUnknown mvars[i]!) <&&> pure !(← readThe Context).inBottomUp <&&> pure !(←... |
533 | lean_file_chunk | b62f1b8a0c26144f54eafac9e0989424f991c6efe912adcefee777bfcc05d93f | 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, Leonardo de Moura, Gabriel Ebner, Mario Carneiro
-/
module
prelude
public import Lean.Parser.Types
import Lean.Parser.Command
namespace Lean.PrettyPrinter.Delaborator
o... |
6,058 | lean_file_chunk | 95bb803facb1fb1a60d660445973f663871b9222d9fd0928e69738de60fec84e | 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
-/
module
prelude
public import Lean.SubExpr
public section
/-!
# Subexpr utilities for delaborator.
This file defines uti... |
14,881 | lean_file_chunk | d6a2cfa70e0961b7549107fdb5feb22ad85ee799427323c1b69c53e234224fc5 | 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: Sebastian Ullrich
-/
module
prelude
public import Lean.Data.Options
public section
namespace Lean
register_builtin_option pp.maxSteps : Nat := {
defValue := 5000
descr ... |
6,466 | lean_file_chunk | 7ef06a5e087a6121b8813ef5d10099ad07fac5b5e2c31ac3998b968049ebd734 | 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.Meta.WHNF
public import Lean.PrettyPrinter.Delaborator.Attributes
public import Lean.PrettyPrinter.Delaborator.Options
import Init.Data... |
583 | lean_file_chunk | 2b2f20515bcee882e2bf3803853368cf93a2b3f22c76eda84124e88c92255fe3 | 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.Sym.SymM
namespace Lean.Meta.Sym
/--
Instantiates metavariables occurring in `e`, and returns a maximal... |
5,426 | lean_file_chunk | 5bcca47dcd26963eb3ccfe7b9e90b243042c487fc80f637467fd8c87c8ca2f6a | 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.Sym.SymM
import Lean.Meta.Sym.InstantiateS
import Lean.Meta.Sym.IsClass
import Lean.Meta.Sym.AlphaShareB... |
2,783 | lean_file_chunk | 683856b822fbcd6b08c9009f3feb4ad914fa2a3dbc276a6343e3011b745aa044 | 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.Meta.Sym.LitValues
public section
namespace Lean.Meta.Sym
/-!
# Offset representation for natural number expr... |
5,727 | lean_file_chunk | ff11af196a3fc1fc0a650b80dbc9900affc7a3c3893d3ae8291ac94a57bb2ac8 | 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.Sym.Pattern
import Lean.Util.CollectFVars
import Init.Data.Range.Polymorphic.Iterators
namespace Lean.Me... |
4,418 | lean_file_chunk | fcbd42864fae68cc736c889682b1b3a4c370793ba88c6b713529a69809d74509 | 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.Meta.Tactic.Grind.Types
public import Lean.Meta.Sym.Simp.SimpM
public import Lean.Meta.Sym.Apply
import Lean.... |
6,354 | lean_file_chunk | 4ee681b35eba81b96ffbfcb57e3123867143f9cbf7e3f64b1fec491e2337aceb | 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.Sym.SymM
public section
namespace Lean.Meta.Sym.Internal
/-!
Helper functions for constructing maximally... |
23,966 | lean_file_chunk | 070258a963c97202401e005cd62cdd7f17ea76ce7038ce71a9fdd6bcb53ea553 | 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.Sym.SymM
public import Lean.Data.AssocList
import Lean.Meta.SynthInstance
import Lean.Meta.Sym.Instantia... |
16,770 | lean_file_chunk | bc0ee2a70d1fec63a25a139983a52013577d6571bac49fc65dcf47f7ff080e19 | lean_source_file | lean_toolchain_source_file_chunks | let d₂ ← instantiateRevS d₂ fvars
let fvarId ← mkFreshFVarId
let fvar ← mkFVarS fvarId
let lctx := lctx.mkLocalDecl fvarId n d₁
let localInsts := if let some className := isClass? (← getEnv) d₁ then
localInsts.push { className, fvar }
else
localInsts
go lctx l... |
2,309 | lean_file_chunk | 6de1970199c94071840cf643e19d13ea413f71f16aa848e38a367d1ef513ac46 | 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.Sym.AlphaShareBuilder
import Init.Omega
namespace Lean.Meta.Sym
open Internal
/-!
A version of `replace_... |
3,010 | lean_file_chunk | 22944d4d5278b17c966b486f211eff27a387bca16e8222f4dbc68271352f71f6 | 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.Sym.SymM
import Lean.Meta.SynthInstance
public section
namespace Lean.Meta.Sym
/--
Some modules in grind... |
5,019 | lean_file_chunk | 94d08c729da38aedccce8bac8caed80181acd45c1c5b464a4ddfc17846c39d61 | 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.Sym.SymM
public import Lean.Meta.Transform
import Init.Grind.Util
import Lean.Meta.WHNF
import Lean.Util... |
15,559 | lean_file_chunk | 72dacaf54f0a075876ba6bfbd13541ec97eb2be6a406c1f8e6ab572b924d5fe2 | 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.Sym.AlphaShareCommon
public import Lean.Meta.CongrTheorems
public section
namespace Lean.Meta.Sym
regis... |
1,770 | lean_file_chunk | 8d3f1a75fbf243c8c661159ad1b7c6433921fbd0e8fdc05944050ac461a5fe11 | 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.Sym.ReplaceS
public section
namespace Lean.Meta.Sym
open Internal
/--
Lowers the loose bound variables `... |
2,912 | lean_file_chunk | 6b6c989d5497f029e1b5ccbc9de73f931209d5d2e61263c10cfc0d20d9c8d16c | 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.Meta.Sym.ExprPtr
public import Lean.Meta.Basic
import Lean.Meta.Transform
namespace Lean.Meta.Sym
/--
Checks ... |
3,767 | lean_file_chunk | 666102dea164aa03c6aca1db79f13a1da72a2bd6b2aae03a877c59757a73c1d2 | 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.Sym.SymM
import Lean.Meta.Sym.ReplaceS
import Init.Omega
namespace Lean.Meta.Sym
open Internal
/--
Help... |
2,080 | lean_file_chunk | 510fcb68add499ab11df42291d862fbbf86250a0985c9870c484c92c93e73de4 | 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.Sym.SymM
public section
namespace Lean.Meta.Sym
private def max (fvarId1? : Option FVarId) (fvarId2? : ... |
15,402 | lean_file_chunk | ea5e720fe67bea952e721ba1a4e4eb96e70a410b4eabba6f665f234eb17e1e57 | 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.Meta.Sym.SymM
import Lean.Meta.Sym.ExprPtr
import Lean.Meta.SynthInstance
import Lean.Meta.Sym.SynthInstance
... |
1,054 | lean_file_chunk | 00590c916651b5e6733090e04be1cf1eee57e11365d20e61ac038c04675aaf4c | 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.Sym.Simp.App
public import Lean.Meta.Sym.Simp.CongrInfo
public import Lean.Meta.Sym.Simp.DiscrTree
publi... |
2,913 | lean_file_chunk | 81fada72cdf5560a666e44e4f759670a2d259394a6bf002983c5b1ca382e51c1 | 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 import Init.Data.Rat
public section
namespace Lean.Meta.Sym
/-!
Pure functions for extracting val... |
1,308 | lean_file_chunk | b4907d144417a803079d57f450a04f36158119821a06d824b3fcdf187fd42eed | 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.Sym.SymM
namespace Lean.Meta.Sym
def inferTypeWithoutCache (e : Expr) : MetaM Expr :=
withReader (fun... |
914 | lean_file_chunk | 28675c7d95d6943ee8f7519c4589d89f79a477895f7650e40c91b1d9866fba23 | 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.Expr
public section
namespace Lean.Meta.Sym
@[inline] def isSameExpr (a b : Expr) : Bool :=
-- It is safe ... |
890 | lean_file_chunk | b29bf647699ca0b0978ffc338a8ab8a27ba794440f666a955ec71f160996d5e8 | 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.Sym.SymM
namespace Lean.Meta.Sym
/--
Efficient version of `Meta.isClass?` for symbolic simulation. It d... |
6,474 | lean_file_chunk | 7c720282ec370e70863f042ff0306708bcf2a18d478522243dfffeef500e92b0 | 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.Sym.ExprPtr
public section
namespace Lean.Meta.Sym
private def hashChild (e : Expr) : UInt64 :=
match... |
2,101 | lean_file_chunk | a8143973374446b2553e96fd9fa3e30f6c1d070a36c854e0131b3e507ff08f7f | 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.Sym.SymM
import Lean.Meta.Sym.IsClass
import Lean.Meta.Sym.Util
import Lean.Meta.Sym.Eta
namespace Lean.... |
7,819 | lean_file_chunk | b8f9cf59308d23f14b868c030278fc1188d6a5e1a9dabefa49e66a7888960c01 | 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.Sym.SymM
import Lean.Meta.Sym.LooseBVarsS
import Init.Grind
namespace Lean.Meta.Sym
open Internal
/--
Si... |
6,998 | lean_file_chunk | e98dc387e7d363213eee4efdd8068fc057196491575e3adee0113c34d86bf701 | 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.KAbstract
public import Lean.Meta.Tactic.Intro
public import Lean.Meta.Tactic.FVarSubst
public import Lean.Meta.Tact... |
8,681 | lean_file_chunk | bee78a12a60cd98c890724803d3404060f6b025b0159101394a4fa1693b890b5 | 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.Util
public section
namespace Lean.Meta
@[inline] private partial def introNImp {σ} (mvarId : MVarId) (n :... |
3,444 | lean_file_chunk | 6c1d9fd11e01b683da742fd93e79a7d9dfeb9c5d34b97827735f0a3f05283655 | 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
import Lean.Meta.CollectFVars
import Lean.Meta.Tactic.Util
namespace Lean.Meta
private partial def cleanupCo... |
12,862 | lean_file_chunk | 884728c8da92be724eda1f341b4ffe854f4c15be0cb0663210b02b0234a4ab30 | lean_source_file | lean_toolchain_source_file_chunks | /-
Copyright (c) 2020 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Leonardo de Moura
-/
module
prelude
public import Lean.Elab.InfoTree.Main
public import Lean.Meta.AppBuilder
public import Lean.Meta.MatchUtil
public import Lean.Meta.Tactic.As... |
6,128 | lean_file_chunk | e074f936907b4188c0ace74e1c2df88763b0c1839886a81f0ee1b740bc2b615c | 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.Tactic.FVarSubst
public import Lean.Meta.Tactic.Intro
public import Lean.Meta.Tactic.Revert
public import Lean.Util.... |
17,314 | lean_file_chunk | 63924a4e6e691dedb71ba3b8c08cad6725c9f35da0844e7d18b8d88c9beb43a5 | 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.Tactic.Induction
public import Lean.Meta.Tactic.Acyclic
public import Lean.Meta.Tactic.UnifyEq
import Lean.Meta.Cons... |
18,557 | lean_file_chunk | cda964b95895e0ca4a63ee1f0bc524bfe62dd93b3b3d10c184c0700d1ae84e32 | 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.Meta.Tactic.Replace
public import Lean.Meta.LetToHave
public section
/-!
# Tactics to manipulate `let` expressions
-/
open Lean Meta... |
15,922 | lean_file_chunk | 5a696b231b203880910c5c3047195f2934b9640e44a754ca3434409c4e0ce035 | 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, Siddhartha Gadgil
-/
module
prelude
public import Lean.Meta.Tactic.Util
public import Lean.PrettyPrinter
import Lean.Meta.AppBuilder
import Init.Omega
publi... |
5,091 | lean_file_chunk | 6af5a9bc3a886741f159f96a74a0d55ef44102586b2451e2e4571c8e3e303121 | 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.Tactic.Grind.Attr
public import Lean.Meta.Tactic.Grind.RevertAll
public import Lean.Meta.Tactic.Grind.Ty... |
1,977 | lean_file_chunk | a6866898669987212942ff2f8472ebdab763f35db2b02b9d84301faa81ad8729 | 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.MatchUtil
import Lean.Meta.Tactic.Simp.Main
public section
namespace Lean.MVarId
open Meta
private def isTarget (... |
16,365 | lean_file_chunk | 1400a3c14988e65b6a577027a53ea39741648cea1527006e252b2f900068e220 | lean_source_file | lean_toolchain_source_file_chunks | /-
Copyright (c) 2021-2023 Gabriel Ebner and Lean FRO. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Gabriel Ebner, Joe Hendrix, Kim Morrison
-/
module
prelude
public import Lean.Meta.LazyDiscrTree
public import Lean.Meta.Tactic.SolveByElim
public import Lean.Meta.Ta... |
2,854 | lean_file_chunk | e59c22c1e8285d4451032d36d69937af5c286a6ffe3f63302480b0da063288c0 | 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.AddDecl
public import Lean.DefEqAttrib
public section
namespace Lean.Meta
structure AuxLemmaKey where
type : Expr
... |
3,008 | lean_file_chunk | 4b3b60f2d71bc589111111a3f522798001f684ea62719a358a0935df56fe3337 | 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, Kim Morrison
-/
module
prelude
public import Lean.Meta.Basic
import Init.Data.Nat.Linear
import Init.Omega
public section
namespace Lean.Meta
/--
Implementation of `... |
1,864 | lean_file_chunk | 6813bd997aa0ed22015e39531daa31cbad9c8cfe8772c76759a3e98461767597 | 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.Tactic.Apply
public section
namespace Lean.Meta
/--
When the goal `mvarId` type is an inductive datatype,
`constr... |
2,536 | lean_file_chunk | 5504837dac4f7256837358206289f992f8349c1e8dc1734409db50d16a3ee436 | 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, Jannis Limperg
-/
module
prelude
public import Lean.Meta.CollectMVars
public import Lean.Meta.Tactic.Util
public section
namespace Lean.MVarId
open Meta
/--
Check ... |
16,159 | lean_file_chunk | 38bdd3a79893f85d3de2f34f2415961edd0772011f411a03999320e0347298ec | lean_source_file | lean_toolchain_source_file_chunks | /-
Copyright (c) 2021 Kim Morrison. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Kim Morrison, David Renshaw
-/
module
prelude
public import Init.Data.Sum
public import Lean.LabelAttribute
public import Lean.Meta.Tactic.Backtrack
public import Lean.Meta.Tactic.Const... |
7,194 | lean_file_chunk | 0c5b588f596ec06e4651633854f0773b1d8331e7c63254aa86c013c108efad47 | lean_source_file | lean_toolchain_source_file_chunks | /-
Copyright (c) 2019 Paul-Nicolas Madelaine. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Paul-Nicolas Madelaine, Robert Y. Lewis, Mario Carneiro, Gabriel Ebner
-/
module
prelude
public import Lean.Meta.Tactic.Simp.Attr
public import Lean.Meta.CoeAttr
public secti... |
18,526 | lean_file_chunk | cd93f33a33e6fe8276d945605d93f48b689c525a4986bbf9264656c85b27fe9b | 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.MatcherApp.Basic
public import Lean.Meta.Tactic.Apply
public import Lean.Meta.Tactic.Generalize
public import ... |
2,726 | lean_file_chunk | ea60b66dda199ef221b3fd9dfef434bceb64f52f33686725e931bbf9283b6b76 | 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.Tactic.Delta
public import Lean.Meta.Tactic.Simp.Main
import Lean.Meta.WHNF
public section
namespace Lean.Meta
priva... |
880 | lean_file_chunk | 28e08ee4abaad0756a0497a101a4a01b2741e4fd47e47927b11e7ad36506838e | lean_source_file | lean_toolchain_source_file_chunks | /-
Copyright (c) 2026 Lean FRO, LLC. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Wojciech Różowski
-/
module
prelude
public import Lean.Meta.Tactic.Cbv.Main
public import Lean.Meta.Tactic.Cbv.Util
public import Lean.Meta.Tactic.Cbv.CbvEvalExt
public section
names... |
746 | lean_file_chunk | 0905282be36962810752696ccfab8247f88dd0847baf6cc2857fc731b1916876 | 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.Tactic.Util
public section
namespace Lean.Meta
/--
Rename the user-face naming for the free variable `fvarId` at ... |
2,790 | lean_file_chunk | c9f76de3bce2be23f3bbbd39309dd33e6864f5c7773ab393b0f164d38cad794f | 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.Tactic.Clear
public section
namespace Lean.Meta
/--
Revert free variables `fvarIds` at goal `mvarId`.
-/
def _roo... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.