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
6,540
lean_file_chunk
638f2e1c20332f804c11175aae3c585290a633f8df3334da17cb705c104f3865
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.Utf16 public section /-! Definitions and functionality for emitting...
8,504
lean_file_chunk
31e8a9b14946d32e9772cf8d0c1f0a4abd46c7dc458798c9c4e29c5363202301
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.TextSync public import Lean.Server.Rpc.Basic public section /-! This file contains Lean-specific exten...
275
lean_file_chunk
21bb2e44f8ee5885cf9a4962c1f6306c9676299398298a8e5db205e7014f9b38
lean_source_file
lean_toolchain_source_file_chunks
/- Copyright (c) 2019 Gabriel Ebner. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Gabriel Ebner, Marc Huisinga -/ module prelude public import Lean.Data.Json.FromToJson.Basic public import Lean.Data.Json.FromToJson.Extra
7,025
lean_file_chunk
bf77628786ababc0eab5dc5c11c79b64b7e4ebf7d234dc39b4e6894d8ed04ed3
lean_source_file
lean_toolchain_source_file_chunks
/- Copyright (c) 2019 Gabriel Ebner. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Gabriel Ebner, Marc Huisinga -/ module prelude public import Lean.Data.Json.Basic public import Std.Internal.Parsec public section open Std.Internal.Parsec open Std.Internal.Parsec....
9,277
lean_file_chunk
0ccde6b7188761cf70e16808ef6419eb4acc6c50ddd4813cbca9c3c07d1ee103
lean_source_file
lean_toolchain_source_file_chunks
/- Copyright (c) 2019 Gabriel Ebner. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Gabriel Ebner, Marc Huisinga -/ module prelude public import Init.Data.Range public import Init.Data.OfScientific public import Init.Data.Hashable public import Std.Data.TreeMap.Raw.B...
7,789
lean_file_chunk
260d352d11f51ce91e1db20e64d8d63306e0fe578d2318bccfb120bd7da05034
lean_source_file
lean_toolchain_source_file_chunks
/- Copyright (c) 2019 Gabriel Ebner. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Gabriel Ebner, Marc Huisinga, Wojciech Nawrocki -/ module prelude public import Lean.Data.Format public import Lean.Data.Json.Basic import Init.Data.String.Search import Init.Data.UInt...
2,338
lean_file_chunk
4e684efced7e47f558ebcc57c1ccf65bf27e5325ea93f17434525e9ae6ad001a
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, Wojciech Nawrocki -/ module prelude public import Lean.Data.Json.FromToJson public meta import Lean.Syntax public section /-! # JSON-like syntax for Lean. Now you can write ...
935
lean_file_chunk
8e4ab0995da112f99cc7197f7219132a4451a3c644ec827de7542ef881139f53
lean_source_file
lean_toolchain_source_file_chunks
/- Copyright (c) 2020 Marc Huisinga. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Marc Huisinga -/ module prelude public import Lean.Data.Json.Parser public import Lean.Data.Json.Printer public section namespace IO.FS.Stream open Lean open IO def readUTF8 (h : ...
229
lean_file_chunk
16e7652af6ff622d8ac4fb27f32f248ad44da2c412316da81357b0de5255f338
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.PersistentHashMap
9,274
lean_file_chunk
92dd2bd9e4d57b1812dd4c2281d3c37bbc997701b0a57e5e55bd03f21514310d
lean_source_file
lean_toolchain_source_file_chunks
/- Copyright (c) 2019 Gabriel Ebner. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Gabriel Ebner, Marc Huisinga -/ module prelude public import Lean.Data.Json.Printer public import Init.Data.ToString.Macro import Init.Data.Array.GetLit public section namespace Lea...
1,126
lean_file_chunk
b5ab7115b6734e1bdcfdee27b43f69b5fe370cb265615e276ded8aece7083f08
lean_source_file
lean_toolchain_source_file_chunks
/- Copyright (c) 2019 Gabriel Ebner. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Gabriel Ebner, Marc Huisinga -/ module prelude public import Lean.Data.Json.FromToJson.Basic public import Std.Data.TreeMap.AdditionalOperations public section /- This module exists...
8,244
lean_file_chunk
3176f5c512d91de7cfb05e0727c3257ae2b35627befb172b26ae19827d3195dc
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 Init.Data.Array.Subarray public import Init.Data.Array.Subarray.Split public import Lean.Data.PersistentHashMap import Init.Data.Iterators...
4,641
lean_file_chunk
2e617e893f6d8f36a68fcc487cffdd1ef72b1f9dce23c8cef49c4f8493af7b26
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.Basic public section namespace Lean.Compiler.LCNF /-- LCNF local context. -/ structure LCtx where para...
4,627
lean_file_chunk
f003364f4e459c3dcb8f2344853b11b3f6096de866b85d65172b98e47498d454
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.DependsOn public import Lean.Compiler.LCNF.PassManager public section namespace Lean.Compiler.LCNF namesp...
10,553
lean_file_chunk
0e164ff1985090ada23bd63bdeac5e4bbb54a5ae76edc7419b1888e1150c7ef9
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.PrettyPrinter public import Lean.Compiler.LCNF.CompatibleTypes public section namespace Lean.Compiler.LCN...
14,440
lean_file_chunk
aae85a0670a1a3c4890daf44b4887236b5773f3cf1f7d52fc33ac4a89b43525c
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: Henrik Böving -/ module prelude public import Lean.Compiler.LCNF.PassManager import Init.While /-! This pass expands pairs of reset-reuse instructions into explicit hot and cold paths...
5,691
lean_file_chunk
5b21decafb22a53f5d4d070f06b6b7e69f2ecea575dbe45e563985e74c062b25
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.DependsOn public import Lean.Compiler.LCNF.PassManager public section namespace Lean.Compiler.LCNF namesp...
8,103
lean_file_chunk
75837cf364e61f2e436e5f81302357ad1f05d3a1e7a0cb711114dac02b51d2b4
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.InitAttr public import Lean.Compiler.LCNF.ToLCNF import Lean.Compiler.Options import Lean.Meta.Transform import L...
2,486
lean_file_chunk
ae81b535493cd7fb1863b71080d6a54abe87b5213084a2e42020f33798553c2b
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.CompilerM public section namespace Lean.Compiler.LCNF /-- A mapping from free variable id to binder name....
17,336
lean_file_chunk
1fa65321373fea5d5147142990f399939febc83b7a377f1990a2735b2624add3
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.ImplementedByAttr public import Lean.Compiler.LCNF.InferType public import Lean.Compiler.NoncomputableAttr publi...
7,783
lean_file_chunk
692030b36cb44f6e5da52db38b50b5bc6cd9e62596d320232c2afe19fad56b69
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.Basic public section namespace Lean.Compiler.LCNF namespace FixedParams /-! # Fixed Parameter Static Ana...
8,532
lean_file_chunk
65d6bd1992dca4611dda24bb0cc5e678378885ed362cc2c4310b0eb7bbe2ff05
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.Compiler.ImplementedByAttr import Lean.ExtraModUses import Lean.Compiler.Options import Lean.Compiler.LCNF.PhaseExt public import Lean...
2,378
lean_file_chunk
11dda253545bb5f4c8941e05b78e79675409f0d94410b991a4d5acc34d74ae0f
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.Basic public section namespace Lean.Compiler.LCNF instance : Hashable (Param pu) where hash p := mixHa...
10,167
lean_file_chunk
76a771da96f25b532a65f34968b70a10afc7e8243c01f89fa64ef9e7a6ac276d
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: Cameron Zwarich -/ module prelude public import Lean.Compiler.ClosedTermCache public import Lean.Compiler.NeverExtractAttr public import Lean.Compiler.LCNF.Internalize public import Le...
8,271
lean_file_chunk
095858ce108c978113059cae08187d6c66377e8f3ef1d23e12d5cdc62f4b50e5
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.Closure public import Lean.Compiler.LCNF.MonadScope public import Lean.Compiler.LCNF.Level public import Le...
1,289
lean_file_chunk
d7e532824ecb9c0222d5425cf1199854d791bb52a3291e1540d5df83b8e1a361
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.Basic public section namespace Lean.Compiler.LCNF abbrev Scope := FVarIdSet class MonadScope (m : Type ...
10,856
lean_file_chunk
447af5db879ecfc3ef514191ac73161a0dc54afd4da87a215236c066a011849b
lean_source_file
lean_toolchain_source_file_chunks
/- Copyright (c) 2022 Henrik Böving. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Henrik Böving -/ module prelude public import Lean.Compiler.LCNF.CompilerM public section namespace Lean.Compiler.LCNF class TraverseFVar (α : Type) where mapFVarM {m : Type → Typ...
968
lean_file_chunk
b51b591b52faa867a3e7e3a5a273acb6cc542a1ec5e47494ffef12bcd94eff63
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.CompilerM public section namespace Lean.Compiler.LCNF /-- State for the environment extension used to sa...
5,524
lean_file_chunk
1a3093dd71fb4b01ae6bc4f62787e7feb1c81fe24cc617ce464afc381ed95057
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.InferType public section namespace Lean.Compiler.LCNF /-- Helper class for lifting `CompilerM.codeBind` ...
4,532
lean_file_chunk
1e0caf33eb7bf0eb4f82747fbd2f696e184d44ac7d216c1bf04019434b8bcabd
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: Henrik Böving -/ module prelude public import Lean.Compiler.LCNF.CompilerM public import Lean.Compiler.LCNF.PassManager import Lean.Compiler.LCNF.AlphaEqv import Init.Omega namespace ...
3,929
lean_file_chunk
8164f9e58acbfa69cb56813f0539b19dfc8ec86b1a868abcbc2c6e9d8e61ab3a
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: Henrik Böving -/ module prelude public import Lean.Compiler.LCNF.CompilerM public import Lean.Compiler.LCNF.PassManager namespace Lean.Compiler.LCNF /-! # Coalesce Reference Counting...
3,179
lean_file_chunk
0de819e77c5515567e89f1e9782d7f8743e8cf5d370a21bba7c791dc89c63157
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.Basic public section namespace Lean.Compiler.LCNF private abbrev M := ReaderT FVarIdSet Id private def ...
22,879
lean_file_chunk
98a403e16af71a7ae89207b814b74b273cb982c7574e8b63037e932e33869989
lean_source_file
lean_toolchain_source_file_chunks
/- Copyright (c) 2022 Henrik Böving. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Henrik Böving -/ module prelude public import Lean.Compiler.LCNF.InferType public section namespace Lean.Compiler.LCNF namespace UnreachableBranches /-- The abstract domain of the ...
23,419
lean_file_chunk
39c8089eae65de156af9e1e021bf0c4af46321f2282b0346c3f7aadae5c6d510
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.SpecInfo public import Lean.Compiler.LCNF.MonadScope public import Lean.Compiler.LCNF.FVarUtil import Lean.C...
1,733
lean_file_chunk
d9cc4d6f3dc3472082531d5124d732122949cd332702b39e7f485e8f78afa3f2
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 namespace Lean.Compiler.LCNF /-- Creates a replayable local environment extension holding a name set and th...
948
lean_file_chunk
8bed09e0fafff57a8aba1b0d05e799be772893d0b659b2a2a7df0265729e2146
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.DeclHash public import Lean.Compiler.LCNF.Internalize public section namespace Lean.Compiler.LCNF struct...
1,365
lean_file_chunk
b9969571fab8151fb013a1b5ec10093326fc91f85c3aad75a70b5240aed69ce3
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 Init.Data.FloatArray.Basic public import Lean.CoreM public import Lean.Util.Recognizers public section namespace Lean.Compil...
8,957
lean_file_chunk
675d801fcaadd006f7d6b8fc01eb32da32b76e973399184ead171b32e0f71532
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: Cameron Zwarich, Henrik Böving -/ module prelude public import Lean.Compiler.LCNF.Irrelevant import Lean.Compiler.LCNF.MonoTypes import Init.Data.Format.Macro namespace Lean.Compiler....
12,696
lean_file_chunk
fb113ffe910984756d1528b54b7d53b09b5de716c83a68f14372228ed6635961
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: Henrik Böving -/ module prelude public import Lean.Compiler.LCNF.CompilerM public import Lean.Compiler.LCNF.PassManager import Lean.Compiler.LCNF.LiveVars import Lean.Compiler.LCNF.Dep...
6,267
lean_file_chunk
0623b152a1ef0e079d8f3ffe361d69666051658e6367814b2371f96b355ddc23
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.ForEachExprWhere public import Lean.Compiler.LCNF.CompilerM public section namespace Lean.Compiler.LCNF namespace ...
6,620
lean_file_chunk
0df8f01a21cff6d34e06d3f72e62cb4f4cb5f736b5e4383ba67f9e7d23614941
lean_source_file
lean_toolchain_source_file_chunks
/- Copyright (c) 2022 Henrik Böving. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Henrik Böving -/ module prelude public import Lean.Compiler.LCNF.PullLetDecls public import Lean.Compiler.LCNF.CSE public import Lean.Compiler.LCNF.JoinPoints public import Lean.Compil...
3,008
lean_file_chunk
0d74b7232fda5a3265f83aa25ea58bacad5f8436cd739c8f0f8a2240f13198c9
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: Henrik Böving -/ module prelude public import Lean.Compiler.LCNF.CompilerM import Lean.Compiler.LCNF.DependsOn /-! This file implements an auxiliary algorithm to determine whether a v...
23,692
lean_file_chunk
1ee4d860c33a0201115e5d824083a82bfb7c3c0d772a004c0d8f31fd3d79ccf6
lean_source_file
lean_toolchain_source_file_chunks
/- Copyright (c) 2022 Henrik Böving. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Henrik Böving -/ module prelude public import Lean.Compiler.LCNF.PullFunDecls public import Lean.Compiler.LCNF.FVarUtil public import Lean.Compiler.LCNF.ScopeM public import Lean.Compi...
8,058
lean_file_chunk
97de831c84389ca6d454976592c915d8b2f341a6fcbfd67a4d2fe1011c50f7a0
lean_source_file
lean_toolchain_source_file_chunks
/- Copyright (c) 2022 Henrik Böving. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Henrik Böving -/ module prelude public import Lean.Compiler.LCNF.PhaseExt public section namespace Lean.Compiler.LCNF abbrev Probe α β := Array α → CompilerM (Array β) namespace Pr...
4,421
lean_file_chunk
fa1dd4c9b07d2fa86d2e473de91316106da3a499d4192f24e19fd2b82abcff97
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.PassManager /-! This module implements a pass that does a syntactic use-def check for all let/fun/jp bindi...
22,954
lean_file_chunk
f6577ca5daaa9733e4565d8ff52c946c785d153bda00db3d2a22ae8fa9f80856
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.LCtx public import Lean.Compiler.LCNF.ConfigOptions public section namespace Lean.Compiler.LCNF /-- The p...
10,715
lean_file_chunk
7f557446beec1bbbbc27fdadb8ebab9a97f64d81cc004e1010cc4c62c43b489c
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.Bind public section namespace Lean.Compiler.LCNF namespace Internalize structure Context where unique...
5,535
lean_file_chunk
56c71113c2c9ab7b1c4f9fe2d4922d0ab46ab64af382817edb799618555ed961
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.Basic import Init.Omega public section namespace Lean.Compiler.LCNF namespace ToExpr abbrev LevelMap :=...
6,574
lean_file_chunk
321f919ff575f7fd320a6c907381c969b6bf60da48c853a9f82764a85b41a16b
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.Basic import Init.Omega public section namespace Lean.Compiler.LCNF /-! Alpha equivalence for LCNF Code ...
11,732
lean_file_chunk
0b1ce7237fcba2514f3454b5c5c6ce638a29c7a05a85cea36064a6e5e515040b
lean_source_file
lean_toolchain_source_file_chunks
/- Copyright (c) 2022 Henrik Böving. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Henrik Böving -/ module prelude public import Lean.Compiler.LCNF.FVarUtil public import Lean.Compiler.LCNF.PassManager import Lean.Compiler.LCNF.PhaseExt public section namespace Lea...
23,878
lean_file_chunk
05bf93af13d2e7656d3f622934ac93db9492846bcc4853d132d9784a77cebdad
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.Instances public import Lean.Compiler.ExternAttr public import Lean.Compiler.Specialize public import Lean.Compiler....
23,940
lean_file_chunk
db870fa5ad7e014fd6ac74c361ad3dfe7fca1ec252c23a411a7fc721e7f79d4b
lean_source_file
lean_toolchain_source_file_chunks
@[inline] private unsafe def updateCasesImp (c : Code pu) (resultType : Expr) (discr : FVarId) (alts : Array (Alt pu)) : Code pu := match c with | .cases cs => if ptrEq cs.alts alts && ptrEq cs.resultType resultType && cs.discr == discr then c else .cases <| ⟨cs.typeName, resultType, discr, alts...
1,597
lean_file_chunk
9f4260ed9b6294b89ac2d1a7d066789ea647ba144cc401a2833e9d66b5f83b61
lean_source_file
lean_toolchain_source_file_chunks
| .const declName .. | .fap declName .. | .pap declName .. => if decls.any (·.name == declName) then modify fun s => s.insert declName | _ => pure () visit k | .oset (k := k) .. | .uset (k := k) .. | .sset (k := k) .. | .inc (k := k) .. | .dec (k := k) .. | .del (k := k) .. | .setT...
8,378
lean_file_chunk
827cb2cc0476a5043e5c1d163b593293eb047e10d93ccda06ccfe94eb11e7e20
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.PrettyPrinter.Delaborator.Options public import Lean.Compiler.LCNF.Internalize import Init.Data.Format.Macro public sect...
5,149
lean_file_chunk
751b993afb2bb52c6c12268834f1849de4f3ea7c730f0ed580c78b8b70021b6b
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: Cameron Zwarich -/ module prelude public import Lean.Compiler.LCNF.PrettyPrinter public import Lean.Compiler.LCNF.MonoTypes public section namespace Lean.Compiler.LCNF namespace Stru...
5,547
lean_file_chunk
99162f12eb36dd9fbdb2e33cd10ee609446724ada572731a7eba6075abd39f0e
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: Henrik Böving -/ module prelude public import Lean.Compiler.LCNF.CompilerM public import Lean.Compiler.LCNF.PassManager import Lean.Compiler.LCNF.PhaseExt /-! This module contains a p...
6,634
lean_file_chunk
387067ab9da29e552a8c241f813e7baedf852485fb964e5c9be260471d9c6af3
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.Internalize public section namespace Lean.Compiler.LCNF /-! # Function arity reduction This module finds...
2,841
lean_file_chunk
59016ef352ab77a41f6d7bb4680bbd7e2b12eb45fa6adf8841cb88cb6c6ff0f7
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.ReduceJpArity public import Lean.Compiler.LCNF.Simp.Basic public import Lean.Compiler.LCNF.Simp.FunDeclInfo...
5,499
lean_file_chunk
844257fd3623883f101c97dead29cae02e1a4155cd9e573b3f126b2c900f666d
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.CollectLevelParams public import Lean.Compiler.LCNF.Basic public section namespace Lean.Compiler.LCNF /-! # Unive...
2,401
lean_file_chunk
6cded3266f5bdb9d489cecab9510cdeef20cba5c1e56018ccdb1d47912e6a0ee
lean_source_file
lean_toolchain_source_file_chunks
/- Copyright (c) 2025 Lean FRO, LLC. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Henrik Böving -/ module prelude public import Lean.Compiler.LCNF.CompilerM import Lean.Compiler.LCNF.BaseTypes import Lean.Compiler.LCNF.Util namespace Lean.Compiler.LCNF /-- Given a...
8,027
lean_file_chunk
2754b7428a6f43b833551a1e81708593eb435218d70ffb7a9f6cddb50c9dd24b
lean_source_file
lean_toolchain_source_file_chunks
/- Copyright (c) 2022 Henrik Böving. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Henrik Böving -/ module prelude public import Lean.Compiler.LCNF.CompilerM import Init.Data.Fin.Lemmas import Init.Omega public section namespace Lean.Compiler.LCNF @[expose] def Ph...
23,992
lean_file_chunk
8884ef593b3b2d1638498fd9cd58300d3aef06c777c6eecc273e13bdfb188c12
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.AppBuilder public import Lean.Compiler.CSimpAttr public import Lean.Compiler.ImplementedByAttr public import Lean.Com...
10,605
lean_file_chunk
5596f4b5a54375257d0443121747a8ab58878e30be5b385919b1cf1e0769edb0
lean_source_file
lean_toolchain_source_file_chunks
pure <| mkLcProof (← p.fvarId!.getType) fieldArgs := fieldArgs.push fieldArg return fieldArgs let f := args[casesInfo.altsRange.lower]! let arity := casesInfo.arity if args.size == arity then visit (mkAppN f fieldArgs) else withoutExpectedTyp...
5,972
lean_file_chunk
5bd017c244a32790d47fe8edfff40027131ed4a20c84aad8df6dcb1285fb5c50
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.InferType public section namespace Lean.Compiler.LCNF /-! # Compatible Types We used to type check LCNF...
5,150
lean_file_chunk
c8eed773b56f7298adee99bd9549c3046031657779428d9fa6925d9ec90b2675
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: Henrik Böving -/ module prelude public import Lean.Compiler.LCNF.PassManager import Lean.Compiler.LCNF.Internalize namespace Lean.Compiler.LCNF /-! This pass pushes projections into ...
16,600
lean_file_chunk
39d870c67796992aa21a39cc79b17bd8ced184a00683e9297a7e12665d2ed241
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: Henrik Böving -/ module prelude public import Lean.Compiler.LCNF.CompilerM public import Lean.Compiler.LCNF.PassManager import Init.While /-! This module contains logic for detecting ...
723
lean_file_chunk
c664913dcd054fa4aa4febd7be6e17b658da589bf2e9ef7ae474fa5d01a10313
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.CompilerM import Lean.Compiler.LCNF.MonoTypes import Lean.Compiler.LCNF.ToImpureType public section names...
13,443
lean_file_chunk
fbc720ceaf9eda810faa53900a3b207f016b06fe2129a7c88850332b7b89f401
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.PhaseExt public import Lean.Compiler.LCNF.OtherDecl import Init.Omega public section namespace Lean.Compi...
3,382
lean_file_chunk
e02be2a431ffdb3a8ae52c9b364c89a4d9ba3877413f1d3f324e8b588dd50a45
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.Data.Options public section namespace Lean.Compiler.LCNF /-- User controlled configuration options for the code genera...
1,531
lean_file_chunk
12c6ac3f199f6da6764f5656894a031b8f7f0fb1ceda58e669a22178458d04ac
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: Henrik Böving -/ module prelude public import Lean.Compiler.LCNF.CompilerM import Lean.Util.SCC namespace Lean.Compiler.LCNF namespace SplitScc partial def findSccCalls (scc : Std.H...
11,078
lean_file_chunk
5d38d035f272c3918da362f688182a370b9e0a1a4bdf3c5936c5a689c5f8b08e
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.FixedParams public import Lean.Compiler.LCNF.InferType public section namespace Lean.Compiler.LCNF /-- E...
19,028
lean_file_chunk
c6cf79ab76ff78397c6fbb427101a465f77bc6e14c888d29e61d3f3705ea89cc
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: Henrik Böving -/ module prelude public import Lean.Compiler.LCNF.CompilerM public import Lean.Compiler.LCNF.PassManager import Lean.Compiler.ExportAttr import Lean.Compiler.LCNF.MonadS...
4,299
lean_file_chunk
a0be7d6f1c0c5b7dc194c2040fb0d2f0b3ad8f2407a0f8f476276501e61307d7
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.ToExpr public import Lean.Compiler.LCNF.PassManager public import Lean.Compiler.NeverExtractAttr public se...
13,703
lean_file_chunk
ad3833740e0758fe2aaa3d32daad5f43589bfe3341294bbaaff009bb6695edea
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: Henrik Böving, Cameron Zwarich -/ module prelude import Lean.Compiler.LCNF.ToImpureType public import Lean.Compiler.LCNF.PassManager import Lean.Compiler.LCNF.PhaseExt import Init.Data...
13,823
lean_file_chunk
8798ba399833d30c66bb66b78bfaa6736ccfa9231f40845ff284fead535a2bad
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: Henrik Böving -/ module prelude public import Lean.Compiler.LCNF.CompilerM public import Lean.Compiler.LCNF.PassManager import Lean.Compiler.LCNF.ElimDead import Lean.Compiler.LCNF.Pha...
16,728
lean_file_chunk
0a32cda60506889769142535b244046c2bcc52ca1162ca172061a79fdfdf2354
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.BorrowedAnnotation public import Lean.Meta.InferType import Init.Omega import Lean.OriginalConstKind public sec...
3,528
lean_file_chunk
3edbd1d080d790e3c72066a0f27af6bbb108e3acaaa1487be7c276ead49469ee
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.Util public import Lean.Compiler.LCNF.BaseTypes public import Lean.Compiler.LCNF.Irrelevant public section...
2,351
lean_file_chunk
8848e7bd77c2b17b9955d8e2d9d92224b51bc45188b2e71d971992553c3c775f
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: Henrik Böving -/ module prelude public import Lean.Compiler.LCNF.CompilerM public import Lean.Compiler.LCNF.PassManager import Lean.Compiler.InitAttr /-! This module "topologically so...
9,611
lean_file_chunk
99420a0aca7319700edf7278cdbd92e7498f9887eec032ca6415f598c5f8fd5c
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 import Lean.Compiler.Options import Lean.Compiler.IR import Lean.Compiler.LCNF.Passes import Lean.Compiler.LCNF.ToDecl import Lean.Compiler.L...
9,528
lean_file_chunk
b372dd76fa10119b990755f9fcb1854b2525eb3c5ea3b554a8cc4a8992d20a65
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.PassManager public import Lean.Compiler.LCNF.PublicDeclsExt public section namespace Lean.Compiler.LCNF ...
23,932
lean_file_chunk
5ea049731ba85f71e39e78f54a84dce8ead0007095d9dcfa69fa93b96a1b66be
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: Henrik Böving -/ module prelude public import Lean.Compiler.LCNF.CompilerM public import Lean.Compiler.LCNF.PassManager import Lean.Compiler.LCNF.PhaseExt import Lean.Compiler.LCNF.Pre...
1,208
lean_file_chunk
9963441553ec0f55c6be7e689229fe9eae4899f0230ffea6f46f22e85f5aacf2
lean_source_file
lean_toolchain_source_file_chunks
| .uset (fvarId := fvarId) (k := k) .. | .sset (fvarId := fvarId) (k := k) .. => let k ← k.explicitRc -- We don't need to insert `fvarId` since we only need to track live variables that are references at runtime useVar fvarId return code.updateCont! k | .unreach .. => setRetLiveVars return cod...
2,160
lean_file_chunk
fa7cec515bda7ef66381f0078edd3a0b056e5688be827a57f345590357d6374a
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: Henrik Böving -/ module prelude public import Lean.Compiler.LCNF.CompilerM import Lean.Compiler.LCNF.PhaseExt import Lean.Compiler.InitAttr namespace Lean.Compiler.LCNF private struc...
23,980
lean_file_chunk
37cec91f9f8c002abf236dc4a24519f6d3edf6c52d1ea5dc446c69a198e44975
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: Henrik Böving -/ module prelude public import Lean.Compiler.LCNF.CompilerM import Lean.Compiler.LCNF.EmitUtil import Lean.Compiler.NameMangling import Lean.Compiler.LCNF.PhaseExt impor...
16,919
lean_file_chunk
0e1a374e8e32f94868cf09e441da2bce0b514d272abfbbc003bd7e1b51cc9f90
lean_source_file
lean_toolchain_source_file_chunks
if args.size > closureMaxArgs then withEmitBlock do emit "lean_object* _aargs[] = {"; emitArgs args; emitLn "};" withEmitAssignment do emitCApp3 "lean_apply_m" fvarId args.size "_aargs" else withEmitAssignment do emit s!"lean_apply_{args.size}("; emit fvarId; emit ", ";...
1,419
lean_file_chunk
abc709d23311a3279cccdf4ff7f3bfc687ce5e2ffdc6f4b9464b9986144c6ab9
lean_source_file
lean_toolchain_source_file_chunks
/- Copyright (c) 2022 Henrik Böving. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Henrik Böving -/ module prelude public import Lean.Compiler.LCNF.CompilerM public section namespace Lean.Compiler.LCNF /-- A general abstraction for the idea of a scope in the compi...
2,487
lean_file_chunk
065c20a49b1851bd29a4f1dfb86b9005cf9c02e560ca2bfc4a9739dc8d65ee1f
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.InferType public section namespace Lean.Compiler.LCNF /-! Join point arity reduction. -/ namespace Reduce...
23,996
lean_file_chunk
3981ff8aaee9b9b770e886e667e174daa83696dc187fbe93b3aca95d0b0ac744
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: Siddharth Bhat -/ module prelude public import Lean.Compiler.NameMangling public import Lean.Compiler.IR.EmitUtil public import Lean.Compiler.IR.NormIds public import Lean.Comp...
23,960
lean_file_chunk
a488fa624f8077dee714e19b36a013cdfc5e8101a7b0d35cf6d26d30df3e8eec
lean_source_file
lean_toolchain_source_file_chunks
| none => emitFnDecl decl (!modDecls.contains n) def emitLhsSlot_ (x : VarId) : M llvmctx (LLVM.LLVMType llvmctx × LLVM.Value llvmctx) := do let state ← get match state.var2val[x]? with | .some v => return v | .none => throw s!"unable to find variable {x}" def emitLhsVal (builder : LLVM.Builder llvmctx)...
23,947
lean_file_chunk
e5040212b38c50b7b2b4a4bd277159a67e463bb9d780aa2203fc1ce647d0f80c
lean_source_file
lean_toolchain_source_file_chunks
let argtys := #[ ← LLVM.voidPtrType llvmctx, ← LLVM.unsignedType llvmctx, setty] let retty ← LLVM.voidType llvmctx let fn ← getOrCreateFunctionPrototype (← getLLVMModule) retty fnName argtys let xv ← emitLhsVal builder x let offset ← emitOffset builder n offset let yv ← emitLhsVal builder y let fnty ← LLVM...
5,382
lean_file_chunk
20749f2d5816e31e5aa1dafe8697f84ec7685ce58ab3f2b3d9b1d3af70ba9880
lean_source_file
lean_toolchain_source_file_chunks
let _ ← LLVM.buildStore builder resv res pure ShouldForwardControlFlow.yes ) -- `IO _` let retTy := env.find? `main |>.get! |>.type |>.getForallBody -- either `UInt32` or `(P)Unit` let retTy := retTy.appArg! -- finalize at least the task manager to avoid leak sanitizer false positives -- from t...
1,211
lean_file_chunk
fdee755d5bc784c7f243c9df9b8e14c57b1502e3dce7d02e703ed5dfa52cf823
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.Format public import Lean.Compiler.LCNF.MonoTypes public section namespace Lean namespace IR open Lean.Com...
19,270
lean_file_chunk
624ac1370798c798124e830ed9aadf083f5172df668c8c6593f23ac392a6c306
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: Siddharth Bhat -/ module prelude public import Init.System.IO public section namespace LLVM /-! This file defines bindings for LLVM. The main mechanisms are to: - Mirror the ...
1,076
lean_file_chunk
a4419146fa33de5fb6089aa2a9c8828d780d4d73149bb68599b09cbab54e00bb
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 section namespace Lean.IR.UnboxResult /-- Tags types that the compiler should unbox if they o...
7,230
lean_file_chunk
7f125304deaa1199c33f99015c013c858a6b40b122c7c50ef98f61e7bae17150
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 section namespace Lean.IR.UniqueIds abbrev M := StateT IndexSet Id def checkId (id : Index) ...
10,014
lean_file_chunk
50f9b9c40721e78299a8b0410a826edc7cffd16096515b3c7f088ce21ffc9e0f
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.Format public import Lean.Compiler.ExportAttr public import Lean.Compiler.LCNF.PublicDeclsExt import Lean.Com...
7,007
lean_file_chunk
8ccfb65d6b1099cf6d9046c4b9b50e41e838818a3c7959f2167dfc7c8fa90b18
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 import Init.Data.Format.Macro public section namespace Lean namespace IR private def formatArg : Arg...
2,241
lean_file_chunk
b887e83f23db6b2df7703eb5c454e6ff0a34df78054220f817629ad6b3533c0c
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.Compiler.IR.CompilerM public section namespace Lean.IR namespace Sorry structure State where localSorryMap : NameMap...
2,300
lean_file_chunk
3e475b23effb19bb7e0391cf53f07c4cebab94a9dd74b297704f1bb55c91b067
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.Compiler.IR.CompilerM public section namespace Lean.IR private partial def collectUsedFDecls (decl : IR.Decl) : NameSet := collec...
21,445
lean_file_chunk
7ce2bf2cc72d01d32ea35362a34d58f13bdb0e4ea7a06f30a4f4774d5442cc17
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.ExternAttr import Init.Data.Range.Polymorphic.Iterators public section /-! Implements (extended) λPure and λRc ...