chars
int64
40
24k
content_type
stringclasses
9 values
id
stringlengths
13
64
source
stringclasses
5 values
subset
stringclasses
31 values
text
stringlengths
40
24k
1,458
lean_file_chunk
9369bed8aa9cf90da5747bf064cd6b8d80f7828ce7700368edf972ceb9ce5dec
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 public import Lean.Data public import Lean.Compiler public import Lean.Environment public import Lean.Modifiers public import Lean.ProjFns public im...
1,442
lean_file_chunk
e67994eb348fd9eba6f38915804519d9cb52fb61440fc0be853510bc83a01bed
lean_source_file
lean_toolchain_source_file_chunks
/- Copyright (c) 2014 Microsoft Corporation. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Leonardo de Moura -/ module prelude public import Init.Prelude public import Init.Notation public import Init.Tactics public import Init.TacticsExtra public import Init.ByCases ...
2,744
lean_file_chunk
a0edec8e2c82fd80409ab276fa31b8861a95de71caddfd17a0f96d5c9ed2cd9c
lean_source_file
lean_toolchain_source_file_chunks
/- Copyright (c) 2022 Sebastian Ullrich. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Sebastian Ullrich -/ import Lean.Compiler.FFI open Lean.Compiler.FFI def main (args : List String) : IO UInt32 := do let root ← match (← IO.getEnv "LEAN_SYSROOT") with | som...
7,096
lean_file_chunk
dccb4ffbdc18d43ea5fcee02dc3fbdbb01a2893e42964ec867b768e2c515a972
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 import Lean.CoreM import Lean.Util.ForEachExpr import all Lean.Util.Path import all Lean.Environment import Lean.Compiler.Options import Lean.Compiler.IR.Compile...
357
lean_file_chunk
7880ad0732abdb98460609f055bb7f212ddc6c016463f91dd9d73b23588a33a9
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: Sebastian Ullrich -/ module prelude public import Std.Data public import Std.Do public import Std.Sat public import Std.Sync public import Std.Time public import Std.Tactic public impo...
4,736
lean_file_chunk
ae3a26c05af48de62dae55252a847ec5e3aad7b0ed598257e5ae599c25280dd7
lean_source_file
lean_toolchain_source_file_chunks
/- Copyright (c) 2023 Kim Morrison. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Kim Morrison, Sebastian Ullrich -/ import Lean.CoreM import Lean.Replay import Lake.Load.Manifest open Lean unsafe def replayFromImports (module : Name) : IO Unit := do let mFile ← f...
1,613
lean_file_chunk
6beae8aa205061e10866855172b1a92170bc7b47bdc96f4fbac4a314523a5178
lean_source_file
lean_toolchain_source_file_chunks
/- Copyright (c) 2016 Microsoft Corporation. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Leonardo de Moura -/ module prelude public import Init.Data.Nat public import Init.Data.Bool public import Init.Data.BitVec public import Init.Data.Cast public import Init.Data...
23,972
lean_file_chunk
d58fc25ee3db6e3c812f136980963fbca5e76697b647e182690a731cf8675e4d
lean_source_file
lean_toolchain_source_file_chunks
/- Copyright (c) 2014 Microsoft Corporation. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Leonardo de Moura notation, basic datatypes and type classes -/ module prelude public import Init.SizeOf public import Init.Tactics public section set_option linter.missingDo...
23,990
lean_file_chunk
c52671a8fc0d0e5d3987470606192513866a587ac99d1c69d89db18f630665a7
lean_source_file
lean_toolchain_source_file_chunks
It represents a computation that will resolve to a value of type `α`, possibly being computed on another thread. This is similar to `Future` in Scala, `Promise` in Javascript, and `JoinHandle` in Rust. The tasks have an overridden representation in the runtime. -/ structure Task (α : Type u) : Type u where /-- `Task...
23,941
lean_file_chunk
42cf1ba1b1fa516da8f10fe0010ad86786146161e7b4583a09163ff1b22df493
lean_source_file
lean_toolchain_source_file_chunks
| isTrue t₂ => absurd t₂ f₁ | isFalse _ => rfl example [Subsingleton α] (p : α → Prop) : Subsingleton (Subtype p) := ⟨fun ⟨x, _⟩ ⟨y, _⟩ => by congr; exact Subsingleton.elim x y⟩ theorem recSubsingleton {p : Prop} [h : Decidable p] {h₁ : p → Sort u} {h₂ : ¬p → Sort u} [h₃ : ∀ (h : p), Sub...
23,949
lean_file_chunk
e73eb57cfb15ac261a5b2bf4c409a57ae99dcce0bbd4a6a6b40ce861043ab00d
lean_source_file
lean_toolchain_source_file_chunks
Quotient types coarsen the propositional equality for a type so that terms related by some equivalence relation are considered equal. The equivalence relation is given by an instance of `Setoid`. Set-theoretically, `Quotient s` can seen as the set of equivalence classes of `α` modulo the `Setoid` instance's relation `...
2,563
lean_file_chunk
ba307e625c55a203034e450540c3e3a5b6d9174d7dc576f60b1de255ba5b0268
lean_source_file
lean_toolchain_source_file_chunks
`LawfulCommIdentity` can simplify defining instances of `LawfulIdentity` on commutative functions by requiring only a left or right identity proof. This class is intended for simplifying defining instances of `LawfulIdentity` and functions needed commutative operations with identity should just add a `LawfulIdentity` ...
302
lean_file_chunk
d8c0807ec40a5b607376d02c397104666d9bf3b4c9107ee3eeceb7ecb7bdd524
lean_source_file
lean_toolchain_source_file_chunks
/- Copyright (c) 2025 Lean FRO, LLC. or its affiliates. All Rights Reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Kim Morrison -/ module prelude public import Init.GrindInstances.ToInt public import Init.GrindInstances.Ring public import Init.GrindInstances.Nat
8,399
lean_file_chunk
f4c8ab8535f1093bdd46fddc11267e9d8d2570daf707edb78c785856afa54d13
lean_source_file
lean_toolchain_source_file_chunks
/- Copyright (c) 2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Leonardo de Moura -/ module prelude public meta import Init.Data.ToString.Name -- shake: keep (transitive public meta dep, fix) public import Init.Tactics import ...
16,745
lean_file_chunk
84a5fd79323f9d8106d456fb141956f8cb20c30024afc01323b665c5a731089b
lean_source_file
lean_toolchain_source_file_chunks
/- Copyright (c) 2020 Microsoft Corporation. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Leonardo de Moura, Mario Carneiro -/ module prelude public import Init.Util public import Init.Data.Option.Basic public section @[expose] section @[never_extract] def outOfB...
931
lean_file_chunk
e1a2364d334bdaf581ea1516895e784a492538dd3484fc8004db59520020a921
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 Init.Grind.Norm public import Init.Grind.Tactics public import Init.Grind.Lemmas public import Init.Grind.Cases pu...
420
lean_file_chunk
910954efeab2cdf82ec6ec9dc0201279d1e0e37f55955ecf776ada35aed6d42d
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 Init.Grind.Tactics import Init.NotationExtra public section /- Hint for making sure `Not p` is definitionally equal to `p → Fa...
16,300
lean_file_chunk
4a7cc5eea06b28708537ae8507494a70bae9086480b41341d4ea8b0070b4f06b
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 Notation for operators defined at Prelude.lean -/ module prelude public import Init.Tactics public meta import Init.Meta public section namespace Lean.Pars...
4,542
lean_file_chunk
47630284153d1c4b9f0e280cd5305d069379e8428454814d7a102d5cbe7c902d
lean_source_file
lean_toolchain_source_file_chunks
/- Copyright (c) 2020 Microsoft Corporation. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Leonardo de Moura, Mario Carneiro -/ module prelude public import Init.Data.UInt.Basic public import Init.Control.State public section namespace ShareCommon /- The max shar...
2,078
lean_file_chunk
a416027d343fc051ed2a1f89a2bb59ddc264c5deb6cabf8e1c424a19d21818b7
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: Leonardo de Moura, Mario Carneiro -/ module prelude public meta import Init.Grind.Tactics public import Init.Grind.Tactics import Init.SimpLemmas public section /-! # by_cases tactic...
13,729
lean_file_chunk
431b1725f8a64ca5b510e37f819bb5354b5ec4e28c5122201cfe1453b7eabddd
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 Extra notation that depends on Init/Meta -/ module prelude public import Init.Conv public import Init.GetElem import Init.Meta.Defs public section namespac...
1,347
lean_file_chunk
c98d1ee252d1d5a602e5872b121abdde4243143c6e5366aa7aca1cfa4cac289c
lean_source_file
lean_toolchain_source_file_chunks
/- Copyright (c) 2020 Microsoft Corporation. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Leonardo de Moura -/ module prelude public import Init.Core public section /-! # Notation for `while` and `repeat` loops. -/ namespace Lean /-! # `repeat` and `while` notat...
466
lean_file_chunk
8f95cd42eb22f7f0e80ccb65c3894e9e8f2df316647b18097a81ff6b7591dae6
lean_source_file
lean_toolchain_source_file_chunks
/- Copyright (c) 2024 Lean FRO, LLC. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Joachim Breitner -/ module prelude public import Init.Internal.Order public section /-! This directory is used for components of the standard library that are either considered imple...
20,891
lean_file_chunk
beffc05e99826e305bbdddeaf2939f88211ab1c27b7c73420d54788dc1834a8d
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 notation, basic datatypes and type classes -/ module prelude public import Init.Core public section set_option linter.missingDocs true -- keep it documented...
5,215
lean_file_chunk
7f8521782146acf16c33e4069a8305c1469ed686933d6f876d92e32bc67b1523
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 universe u v /-! # Debugging helper functions -/ set_option linter.unusedVariables...
623
lean_file_chunk
73614b00c637059ead571f5fd4d2a4e3405ffc3bf7b8bfa243306265334d8fc1
lean_source_file
lean_toolchain_source_file_chunks
/- Copyright (c) 2016 Microsoft Corporation. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Leonardo de Moura -/ module prelude public import Init.Control.Basic public import Init.Control.State public import Init.Control.StateRef public import Init.Control.Id public i...
23,991
lean_file_chunk
89ff744c14308fbc1b109d5f6a9bb80b183da29e20657ec549625b00b8341bf8
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, Mario Carneiro -/ module prelude public import Init.Notation public section set_option linter.missingDocs true -- keep it documented namespace Lean.Parser.Tac...
23,972
lean_file_chunk
4689c7ee53e62ea8b6af42f51d846958737a0107a9a96417a7df3d7f41a4f985
lean_source_file
lean_toolchain_source_file_chunks
syntax (name := injections) "injections" (ppSpace colGt (ident <|> hole))* : tactic /-- The discharger clause of `simp` and related tactics. This is a tactic used to discharge the side conditions on conditional rewrite rules. -/ syntax discharger := atomic(" (" patternIgnore(&"discharger" <|> &"disch")) " := " without...
23,981
lean_file_chunk
ee75ec351c09da770b9f6a103166cfdc24adf62763e6e1489e728e60373c271f
lean_source_file
lean_toolchain_source_file_chunks
- `split at h` will split the hypothesis `h`. -/ syntax (name := split) "split" (ppSpace colGt term)? (location)? : tactic /-- `dbg_trace "foo"` prints `foo` when elaborated. Useful for debugging tactic control flow: ``` example : False ∨ True := by first | apply Or.inl; trivial; dbg_trace "left" | apply Or.inr;...
23,956
lean_file_chunk
8a7cac12d194bcce607747fee97b3f0c18a1c33fcfac897126d811a4997bb4bd
lean_source_file
lean_toolchain_source_file_chunks
Use `+grind` to enable `grind` as a fallback discharger for subgoals. Use `+try?` to enable `try?` as a fallback discharger for subgoals. Use `-star` to disable fallback to star-indexed lemmas (like `Empty.elim`, `And.left`). Use `+all` to collect all successful lemmas instead of stopping at the first. -/ syntax (name ...
8,578
lean_file_chunk
45455c83e376556a159c69929451c15f52353a4016cd6965456b1c4528b7f987
lean_source_file
lean_toolchain_source_file_chunks
You can instruct the simplifier to rewrite the lemma from right-to-left: ```lean attribute @[simp ←] and_assoc ``` When multiple simp theorems are applicable, the simplifier uses the one with highest priority. The equational theorems of functions are applied at very low priority (100 and below). If there are several w...
953
lean_file_chunk
9deaf34d40ed4163f4c1c5dfef08d56748af46a5b6c26988521e0ef44b26469b
lean_source_file
lean_toolchain_source_file_chunks
/- Copyright (c) 2020 Microsoft Corporation. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Leonardo de Moura, Mario Carneiro -/ module prelude public import Init.Prelude import Init.Data.Array.Set public section /-! # Helper functions for `Syntax`. These are delayed...
1,690
lean_file_chunk
3704c6eee580883363552adc6d730eba09e6eda12c9fd3a9636fa8c1f249f489
lean_source_file
lean_toolchain_source_file_chunks
/- Copyright (c) 2025 Lean FRO, LLC. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Joachim Breitner -/ module prelude public import Init.Prelude import Init.Tactics public section set_option linter.unusedVariables false in /-- The expression `binderNameHint v bind...
5,005
lean_file_chunk
952d39fc54c1fbb6e10c306d8c10bce882ab9cbb6d009f19ae76c09375536385
lean_source_file
lean_toolchain_source_file_chunks
/- Copyright (c) 2019 Microsoft Corporation. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Leonardo de Moura and Sebastian Ullrich Additional goodies for writing macros -/ module prelude public import Init.Meta.Defs public meta import Init.Meta.Defs public meta impor...
2,818
lean_file_chunk
4e11c7f97ee283650acde30b7f0a1ed511ea876a559243693530cdfef19a6b13
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 meta import Init.Data.ToString.Name -- shake: keep (transitive public meta dep, fix) public import Init.Tactics import Init.Meta.Defs publi...
482
lean_file_chunk
637b4ed1307b6ca8bceab11112bd2a1610f61b1c5ac190e367816364eae8b8b5
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 Extra notation that depends on Init/Meta -/ module prelude public meta import Init.Meta public import Init.Notation import Init.Data.ToString.Macro public ...
307
lean_file_chunk
0ad0b95cbb36cf85257fe606a04b0f5c29807b8bfc9c53d5eaefb8e7f5254570
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.System.IO public import Init.System.Platform public import Init.System.Uri public import Init.System.Promise
23,968
lean_file_chunk
6a1e689cc7db9b2c30bff74ce82072a6da7031ff5888330d5d2076a7247f3c3c
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: Leonardo de Moura, Jeremy Avigad, Floris van Doorn, Mario Carneiro This provides additional lemmas about propositional types beyond what is needed for Core and SimpLemmas. -/ module p...
11,670
lean_file_chunk
817df5c87e9ede5932651de53e986ed0a86e1ace691ba8e208637276d092eb7f
lean_source_file
lean_toolchain_source_file_chunks
rw [iff_iff_implies_and_implies (a := a) (b := b)]; simp only [imp_iff_not_or, Or.comm] theorem Decidable.not_and_not_right [Decidable b] : ¬(a ∧ ¬b) ↔ (a → b) := ⟨fun h ha => not_imp_symm (And.intro ha) h, fun h ⟨ha, hb⟩ => hb <| h ha⟩ theorem Decidable.not_and_iff_not_or_not [Decidable a] : ¬(a ∧ b) ↔ ¬a ∨ ¬b := ...
3,705
lean_file_chunk
e206d47a46027471922036aa0f95c9928362fefade6bf2848513dd7a80f9d608
lean_source_file
lean_toolchain_source_file_chunks
/- Copyright (c) 2022 Microsoft Corporation. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Author: Leonardo de Moura -/ module prelude public import Init.WF -- shake: keep (macro output dependency) public import Init.Data.Nat.Basic -- shake: keep (macro output dependency) ...
3,511
lean_file_chunk
bfa08aa06ef58d30f73e4f55be2db8eab619d3e81e8235ff5d6d769d3c6825fe
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 Init.Tactics public section namespace Lean.Try /-- Configuration for `try?`. -/ structure Config where /-- If...
23,935
lean_file_chunk
a8a33c6e05524873c499e0e6c3e772e8c89c6a3a072a51d2d6db62576fb6c39d
lean_source_file
lean_toolchain_source_file_chunks
/- Copyright (c) 2020 Microsoft Corporation. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Leonardo de Moura, Mario Carneiro -/ module prelude -- Don't import Init, because we're in Init itself public section set_option linter.missingDocs true -- keep it documented ...
23,954
lean_file_chunk
65ba39bfec706acc9a0f7b20845b8ffdbf2ba0564ffeb7b31197ab0b7ba54303
lean_source_file
lean_toolchain_source_file_chunks
`⟨ha, hb⟩ : a ∧ b`, and if `h : a ∧ b` then `h.left : a` and `h.right : b`. -/ @[pp_using_anonymous_constructor] structure And (a b : Prop) : Prop where /-- `And.intro : a → b → a ∧ b` is the constructor for the And operation. -/ intro :: /-- Extract the left conjunct from a conjunction. `h : a ∧ b` then `h.lef...
23,985
lean_file_chunk
ecffd3673e3f41635f09c49de16676a99c93061cb02c7261e962ce0a79f1e3b1
lean_source_file
lean_toolchain_source_file_chunks
if `x` is `true` then `y` is not evaluated at runtime. -/ @[macro_inline] def Bool.or (x y : Bool) : Bool := match x with | true => true | false => y /-- Boolean “and”, also known as conjunction. `and x y` can be written `x && y`. The corresponding propositional connective is `And : Prop → Prop → Prop`, writte...
23,956
lean_file_chunk
c2562267d84e2aa0a7fb640ed8d075efbbe98892347dc3d5bb5e53d6e93a2e35
lean_source_file
lean_toolchain_source_file_chunks
A decision procedure for equality of natural numbers, usually accessed via the `DecidableEq Nat` instance. This function is overridden in both the kernel and the compiler to efficiently evaluate using the arbitrary-precision arithmetic library. The definition provided here is the logical model. Examples: * `Nat.decE...
23,935
lean_file_chunk
980d7d9dbd3e46d7038728de12aacc7f76fb1f5b0e587b967504f5be596ba8b5
lean_source_file
lean_toolchain_source_file_chunks
attribute [instance] UInt8.decLt UInt8.decLe /-- The number of distinct values representable by `UInt16`, that is, `2^16 = 65536`. -/ abbrev UInt16.size : Nat := 65536 /-- Unsigned 16-bit integers. This type has special support in the compiler so it can be represented by an unboxed 16-bit value rather than wrapping ...
23,990
lean_file_chunk
455c462d2bbe6abf105f54051061f7e1ea6b7a2cf08ddcddf84df10b61e89340
lean_source_file
lean_toolchain_source_file_chunks
Use `Array.emptyWithCapacity` to create an array with a greater initial capacity. -/ @[expose, inline] def Array.empty {α : Type u} : Array α := emptyWithCapacity 0 /-- Gets the number of elements stored in an array. This is a cached value, so it is `O(1)` to access. The space allocated for an array, referred to as i...
23,985
lean_file_chunk
5e27b076c3a05fd69426b0909fce34b3d4fd18955c46339bf42545433f2ec09e
lean_source_file
lean_toolchain_source_file_chunks
map := fun x y => Seq.seq (pure x) fun _ => y seqLeft := fun a b => Seq.seq (Functor.map (Function.const _) a) b seqRight := fun a b => Seq.seq (Functor.map (Function.const _ id) a) b /-- [Monads](https://en.wikipedia.org/wiki/Monad_(functional_programming)) are an abstraction of sequential control flow and ...
23,993
lean_file_chunk
edd773941254309f362faaea515cd072e186bcba54a10d76f01b420db1f5c8e1
lean_source_file
lean_toolchain_source_file_chunks
The value returned from a combined state and exception monad in which exceptions do not automatically roll back the state. `Result ε σ α` is equivalent to `Except ε α × σ`, but using a single combined inductive type yields a more efficient data representation. -/ inductive Result (ε σ α : Type u) where /-- A success...
23,940
lean_file_chunk
29b3dab47137510d9ae764c972ede427145d7c57b8fbd474dc4e538725cba7b4
lean_source_file
lean_toolchain_source_file_chunks
abbrev strLitKind : SyntaxNodeKind := `str /-- `` `char `` is the node kind of character literals like `'A'`. -/ abbrev charLitKind : SyntaxNodeKind := `char /-- `` `num `` is the node kind of number literals like `42` and `0xa1` -/ abbrev numLitKind : SyntaxNodeKind := `num /-- `` `hexnum `` is the node kind of hex...
13,561
lean_file_chunk
f151e847289756b7f663464c6982bc2ca8defd4e760b689df00ac284cc2e4e67
lean_source_file
lean_toolchain_source_file_chunks
| .cons (.str _ s) ps, acc => assembleParts ps (Name.mkStr acc s) | .cons (.num _ n) ps, acc => assembleParts ps (Name.mkNum acc n) | _, _ => panic "Error: unreachable @ assembleParts" private def extractImported (scps : List MacroScope) (mainModule : Name) : Name → List Name → MacroScopesView ...
3,688
lean_file_chunk
9985bdc43ce63461bc51d639cc37237c32f22f402ae5bc8aeac9586e1cb064b2
lean_source_file
lean_toolchain_source_file_chunks
/- Copyright (c) 2021 Gabriel Ebner. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Gabriel Ebner, Mario Carneiro -/ module prelude public import Init.RCases public section namespace Lean namespace Parser.Attr /-- The flag `(iff := false)` prevents `ext` from gener...
23,999
lean_file_chunk
4b70300b3f7aebdfd4a9f540ae3c375ece3f2150e3e93d2086955d673a669ea8
lean_source_file
lean_toolchain_source_file_chunks
/- Copyright (c) 2020 Microsoft Corporation. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Leonardo de Moura, Mario Carneiro Notation for operators defined at Prelude.lean -/ module prelude public import Init.Coe public section set_option linter.missingDocs true -- k...
19,994
lean_file_chunk
c6a2f2279006ffda5d1f9a0212fe75439888dc83e01efcb9771299667ba7affd
lean_source_file
lean_toolchain_source_file_chunks
| `($a |> $f $args*) => `($f $args* $a) | `($a |> $f) => `($f $a) /-- Alternative syntax for `<|`. `f $ x` means the same as `f x`, except that it parses `x` with lower precedence, which means that `f $ g $ x` is interpreted as `f (g x)` rather than `(f g) x`. -/ -- Note that we have a whitespace after `$` to...
5,227
lean_file_chunk
6d86e83d1762a93105485d3d5c8e218adde6300f2cdb996d1717cf9a9b8264a8
lean_source_file
lean_toolchain_source_file_chunks
/- Copyright (c) 2021 Mario Carneiro. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Mario Carneiro -/ module prelude public import Init.Conv public section namespace Lean.Parser /-- Reducible defeq matching for `guard_hyp` types -/ syntax colonR := " : " /-- Defau...
13,114
lean_file_chunk
19c9863e98ca380e773b1ec7a084505d253eb791c97620e2fa530a3069f12330
lean_source_file
lean_toolchain_source_file_chunks
/- Copyright (c) 2020 Microsoft Corporation. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Leonardo de Moura, Mario Carneiro -/ module prelude public import Init.Prelude public meta import Init.Prelude public section set_option linter.missingDocs true -- keep it doc...
832
lean_file_chunk
cacb8e633b2c52995b0b01ef02aeb618c3bd3a489f5d56b75630b07cf98c7a4f
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 Additional `Task` definitions. -/ module prelude public import Init.Core import Init.Data.List.Basic import Init.Data.Nat.Bitwise.Basic public section namespace Task /...
4,319
lean_file_chunk
9516c0bd644c99b51e92f9e30b4acb0553ea3a5fd0c6cc41494f516a64d1e425
lean_source_file
lean_toolchain_source_file_chunks
/- Copyright (c) 2020 Microsoft Corporation. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Leonardo de Moura, Mario Carneiro -/ module prelude public import Init.Notation import Init.Tactics public section set_option linter.missingDocs true -- keep it documented /-...
2,627
lean_file_chunk
127a2c862a1ccc5e1211b510a4f061232c3d0df689b29751d25a9012f16dbd73
lean_source_file
lean_toolchain_source_file_chunks
/- Copyright (c) 2025 Lean FRO, LLC. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Joachim Breitner -/ module prelude public import Init.Prelude /-! This module contains theorems to be added to the `@[method_specs_simp]` simpset. When we use the idiom of a heterogen...
23,910
lean_file_chunk
5c4a3e7ff71f380f5c7c7142fbe138a4c115bf834e3c223ddb86b16be8cebea5
lean_source_file
lean_toolchain_source_file_chunks
/- Copyright (c) 2025 Lean FRO, LLC. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Paul Reichert -/ module prelude public import Init.WF import Init.Classical import Init.Ext public import Init.NotationExtra set_option doc.verso true set_option linter.missingDocs tr...
649
lean_file_chunk
ff98041a19db608853a37b982e7977a3796667f9c43ffa364ea0451d343b97da
lean_source_file
lean_toolchain_source_file_chunks
partialExtrinsicFix₃ R F a b c = F a b c (fun a b c _ => partialExtrinsicFix₃ R F a b c) := partialExtrinsicFix₃_eq_apply_of_acc (wf.apply _) public theorem partialExtrinsicFix₃_eq_fix [∀ a b c, Nonempty (C₃ a b c)] {R : (a : α) ×' (b : β a) ×' γ a b → (a : α) ×' (b : β a) ×' γ a b → Prop} {F : ∀ a b c, (∀ a...
2,995
lean_file_chunk
52456c31137bffca7e78c61f5efc64ac873f2d621fdcfb4df9ff2a1626c81c2f
lean_source_file
lean_toolchain_source_file_chunks
/- Copyright (c) 2021 Microsoft Corporation. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Gabriel Ebner -/ module prelude public meta import Init.Grind.Tactics public import Init.Notation import Init.Meta.Defs import Init.NotationExtra public section namespace Lea...
8,620
lean_file_chunk
11671d11f38a18e0e98270517186aaf61bd908085721cba15c9f932cc1aa7356
lean_source_file
lean_toolchain_source_file_chunks
/- Copyright (c) 2020 Microsoft Corporation. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Leonardo de Moura, Mario Carneiro -/ module prelude public import Init.PropLemmas @[expose] public section universe u v /-! # Classical reasoning support -/ namespace Class...
2,844
lean_file_chunk
320bbdf5e92fecc35ef982c1d1cf1654157a77d4a01572b47c0a5c181863ca72
lean_source_file
lean_toolchain_source_file_chunks
/- Copyright (c) 2025 Lean FRO, LLC. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Joachim Breitner -/ module prelude public import Init.Core import Init.Data.Bool import Init.ByCases import Init.Classical public section namespace DerivingHelpers macro "deriving_R...
2,963
lean_file_chunk
94a0dc4fbb5edd97cf045b9f5f0436d1ce1cdce719ab2b8600e6e625b44e07b1
lean_source_file
lean_toolchain_source_file_chunks
/- Copyright (c) 2023 Miyahara Kō. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Miyahara Kō -/ module prelude public import Init.WF import Init.NotationExtra import Init.WFTactics /-! # Computable Acc.rec and WellFounded.fix This file adds csimp theorems so that th...
3,531
lean_file_chunk
26c8bb2755ccbdf9fa59efe1bfde57c1209b6218eed5a3c1add0c7595504e6c6
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, Mario Carneiro -/ module prelude public meta import Init.Meta public import Init.Tactics import Init.Data.Array.Basic public section /-! Extra...
3,150
lean_file_chunk
0a1690630c8cb2914c1fe6af1c65a23ea7554b15612f5851a76a76ed8c6f17c1
lean_source_file
lean_toolchain_source_file_chunks
/- Copyright (c) 2022 Microsoft Corporation. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Gabriel Ebner -/ module prelude public import Init.Prelude import Init.Core public section open Lean -- Implementation detail of TypeName, since classes cannot be opaque --...
18,739
lean_file_chunk
d4c6273ed4863f26492aa892151dd3958fc0f9903a400ad192c71b01c4055750
lean_source_file
lean_toolchain_source_file_chunks
/- Copyright (c) Leonardo de Moura. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Leonardo de Moura -/ module prelude public import Init.Core public section namespace Lean structure NameGenerator where namePrefix : Name := `_uniq idx : Nat := 1 deriv...
260
lean_file_chunk
ae2e5d9118269956aa36c3b4a92e3661a3b0769d2011188e1fd9712306740c7e
lean_source_file
lean_toolchain_source_file_chunks
/- Copyright (c) 2026 Amazon.com, Inc. or its affiliates. All Rights Reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Leonardo de Moura -/ module prelude public import Init.Sym.Lemmas public import Init.Sym.Simp.SimprocDSL
17,813
lean_file_chunk
6b0c17366790f638f6d8582e5c99168ef70b0c4615e827432dbbf46895f1811e
lean_source_file
lean_toolchain_source_file_chunks
/- Copyright (c) 2014 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.BinderNameHint public import Init.Grind.Tactics import Init.Data.Nat.Basic public section @[expose] section universe u ...
9,644
lean_file_chunk
4f4bd52664a930c36457ccdb7f62aac4a48fe891de5fece11534d85b53096d9e
lean_source_file
lean_toolchain_source_file_chunks
/- Copyright (c) 2017 Mario Carneiro. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Mario Carneiro, Jacob von Raumer -/ module prelude public import Init.Meta public section /-! # Recursive cases (`rcases`) tactic and related tactics `rcases` is a tactic that wil...
1,495
lean_file_chunk
0450594b77a9460d33e32a840d9d87e24e5fe46a068ddc61ca10d34a5998ea44
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 all Init.Data.Char.Basic import all Init.SizeOf public import Init.Data.Char.Basic import Init.Data.Nat.Linear meta import Init.MetaT...
649
lean_file_chunk
27806fcc8057ed0ab9675534429e043a66d397aafa2f48aae2ee609cf2c1ddf3
lean_source_file
lean_toolchain_source_file_chunks
/- Copyright (c) 2023 Lean FRO, LLC. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Kim Morrison -/ module prelude public import Init.Omega.Int public import Init.Omega.IntList public import Init.Omega.LinearCombo public import Init.Omega.Constraint public import Init...
777
lean_file_chunk
02fbc5d0418ee73edc7571d35ce6664ba0bd3ae00d8b7479e64a8b6d07cd09e6
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.InlineAttrs public import Lean.Compiler.Specialize public import Lean.Compiler.ClosedTermCache public import Lea...
10,269
lean_file_chunk
119493964870fdcc8c6701a60197bf0f55b7222fad198274087597068672a4a6
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.Util.CollectLevelParams public section namespace Lean /-- An entry for the persistent environment ...
2,022
lean_file_chunk
a9112266cefaef895f5abdc429394ca212f1b822a25056a151d14c55a75b01d0
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.MonadEnv public section /-! # Environment extension for declaration ranges -/ namespace Lean builtin_initialize built...
956
lean_file_chunk
45810a52dcbf8757aae66c6a9f3ca81e520fb4cb24d6d2a024c72c2406ace778
lean_source_file
lean_toolchain_source_file_chunks
/- Copyright (c) 2020 Sebastian Ullrich. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Sebastian Ullrich -/ module prelude public import Lean.Data.AssocList public import Lean.Data.Format public import Lean.Data.Json public import Lean.Data.JsonRpc public import Lean...
23,929
lean_file_chunk
96b7ea98588186bfef3b3719d22541797f0fb1d81fc5ba5432c2fbcd96228869
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 Helper functions for retrieving structure information. -/ module prelude public import Lean.ProjFns public import Lean.Exception public import Init.While imp...
1,434
lean_file_chunk
a1d123c5a2fecc9dbc7f22da463af37a8944fc649ca08d1eba64372e57627821
lean_source_file
lean_toolchain_source_file_chunks
/- Copyright (c) 2023 Kyle Miller. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Kyle Miller, Alex Keizer -/ module prelude public import Lean.Expr public section /-! # `ToLevel` class This module defines `Lean.ToLevel`, which is the `Lean.Level` analogue to `Lean....
8,655
lean_file_chunk
2e682d7058f389a1279b926855bf87a1bbe4a99fcaf334adfc6fd1bb8f4f3328
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: Leonardo de Moura, Sebastian Ullrich -/ module prelude public import Lean.Environment public section /-! Further environment extension API; the primitives live in `Lean.Environment`. -/ ...
3,666
lean_file_chunk
fbde9d6c96b6265eb01126c735de8bf92a9f268bdb595a336742ea7d9bc04793
lean_source_file
lean_toolchain_source_file_chunks
/- Copyright (c) 2019 Microsoft Corporation. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Leonardo de Moura -/ module prelude public import Lean.EnvExtension import Init.Data.String.TakeDrop public section namespace Lean def casesOnSuffix := "casesOn" def r...
7,572
lean_file_chunk
5199fbd00f255102466d39c23037cb4625f330271fd4fd23328409497a0a2c14
lean_source_file
lean_toolchain_source_file_chunks
/- Copyright (c) 2020 Microsoft Corporation. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Leonardo de Moura, Sebastian Ullrich -/ module prelude public import Lean.ScopedEnvExtension import Lean.Compiler.InitAttr import Lean.Compiler.IR.CompilerM import Lean.ExtraMo...
388
lean_file_chunk
65328e81682e6c5732f907b26f68fdbb99d0563208f910ed7d610aec44c2ae9a
lean_source_file
lean_toolchain_source_file_chunks
/- Copyright (c) 2025 Lean FRO, LLC. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Kim Morrison -/ module prelude public import Lean.LibrarySuggestions.Basic import Lean.LibrarySuggestions.SymbolFrequency import Lean.LibrarySuggestions.MePo public import Lean.Library...
2,305
lean_file_chunk
a0f6a27015ddd0c69c34f62202f520df4e127a44e56c7310c9914c74c2a99e2b
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 Init.System.IO public section namespace Lean private builtin_initialize importingRef : IO.Ref Bool ← IO.mkRef false private...
21,443
lean_file_chunk
350f9f9b2471fa88a124aa07e77d46da13fc727fe3440c84a1fd1d48f54aa300
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: Leonardo de Moura, Mac Malone -/ module prelude import Lean.Elab.Frontend import Lean.Elab.ParseImportsFast import Lean.Server.Watchdog import Lean.Server.FileWorker import Lean.Compiler.LC...
23,984
lean_file_chunk
17694452f200d2256a9b87482baa4ccbdd2135b257e1676b20dbdae00593168d
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.Control public import Lean.Data.PersistentArray public import Lean.Expr import Init.Data.ToString.Macro import I...
5,728
lean_file_chunk
adc75de968b9725d9eea09e06588063e310cae55f22ceefcc4ac30c3016d0a25
lean_source_file
lean_toolchain_source_file_chunks
let ty := ty.abstractRange i xs; if isLambda then Lean.mkLambda n bi ty b else Lean.mkForall n bi ty b match lctx.findFVar? x with | some (.cdecl _ _ n ty bi _) => handleCDecl n ty bi | some (.ldecl _ _ n ty val nondep _) => if nondep && generalizeNondepLet then ...
6,080
lean_file_chunk
47af9e655c5022ae9c135bd085bab799b039e3eb949ac39cca20367961a1df2d
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: Joseph Rotella -/ module prelude public import Lean.Message public import Lean.EnvExtension public import Lean.DocString.Links meta import Lean.Message public section namespace Lean...
2,676
lean_file_chunk
1bd0b63e0a6d60282bda55f8110dfee9a438e34536887bef9357f16da4bf8bf4
lean_source_file
lean_toolchain_source_file_chunks
/- Copyright (c) 2019 Microsoft Corporation. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Leonardo de Moura -/ module prelude public import Lean.EnvExtension namespace Lean /-- Map from namespace name to (max) visibility of (any) defining module. Namespaces do not...
11,120
lean_file_chunk
0d7b6896ce3c688251671382cca5557a1281f81f16d6d990cc40def45c0a26e1
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.InternalExceptionId -- This import is necessary to ensure that any users of the `throwNamedError` macros have access to -...
23,984
lean_file_chunk
b2989c0e008b487bdb16308a3a81120998addb4fdf37090437bc521f6f57752d
lean_source_file
lean_toolchain_source_file_chunks
/- Copyright (c) 2020 Microsoft Corporation. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Leonardo de Moura -/ module prelude public import Lean.Util.RecDepth public import Lean.ResolveName public import Lean.Language.Basic import Init.While import Lean.Compiler.Non...
11,749
lean_file_chunk
f35f4872432ba7ea9726245a0e47351cea2d895087d8ea299501b6c46760e30b
lean_source_file
lean_toolchain_source_file_chunks
descr := "(server) capture output to the Lean stderr channel (such as from `dbg_trace`) during elaboration of a command as a diagnostic message" } /-- Creates snapshot reporting given `withIsolatedStreams` output and diagnostics and traces from the given state. -/ def mkSnapshot? (output : String) (ctx : Context) (...
11,076
lean_file_chunk
c0243599661a79272131c3fdd2338b68758e4ee4523014db9527de20b2b59fb8
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.Attributes public section namespace Lean namespace ScopedEnvExtension inductive Entry (α : Type) where | global : α...
23,964
lean_file_chunk
f6ff5160a77c38962cdbfd7783e0e593fd363bc18b57acf6e7c5489d5d12af94
lean_source_file
lean_toolchain_source_file_chunks
/- Copyright (c) 2019 Microsoft Corporation. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Leonardo de Moura, Sebastian Ullrich -/ module prelude public import Lean.Modifiers public import Lean.Exception public import Lean.Namespace public import Lean.Log public sec...
6,587
lean_file_chunk
ef9203b92924c5fb67a274780f2c091e8e63e54ab8a4638d8a9bc7d778b84e6e
lean_source_file
lean_toolchain_source_file_chunks
matchLocalDecl? localDecl givenName else matchLocalDecl? localDecl givenName if localDecl?.isSome || skipAuxDecl then localDecl? else -- Search auxDecls again trying an exact match of the given name lctx.decls.findSomeRev? fun localDecl? => do let localDecl ← localDecl? ...
771
lean_file_chunk
0d47580d371f19a7def86b0e8eb4da7c73e221ee94475d4c8bd10662d5468cad
lean_source_file
lean_toolchain_source_file_chunks
/- Copyright (c) 2019 Microsoft Corporation. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Leonardo de Moura -/ module prelude public import Lean.EnvExtension public section namespace Lean builtin_initialize protectedExt : TagDeclarationExtension ← mkTagDeclaratio...
3,278
lean_file_chunk
da662b44c4f1b8466788bca04cf84e6cddebe13ab2cd920bb587d6de77c1d713
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 Init.Control.Do public import Lean.CoreM public section namespace Lean /-- When trying to resolve a reserved n...
13,421
lean_file_chunk
c1f642b824e281941cb190d47ac61ab0659da99654b66a7a3bb903a9774312ab
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.ScopedEnvExtension public section namespace Lean /-- Reducibility status for a definition. Controls when `isDefEq` and `w...
8,301
lean_file_chunk
0cbccac05f5bef3c7c0764f753f4807fa6ad786c983f04014012665772ebd9f5
lean_source_file
lean_toolchain_source_file_chunks
/- Copyright (c) 2019 Microsoft Corporation. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Leonardo de Moura, Sebastian Ullrich -/ module prelude public import Lean.Parser.Basic public import Lean.Parser.Level public import Lean.Parser.Term public import Lean.Parser....
1,611
lean_file_chunk
0994bc5621a7e20222295018f34ba97e45e0aabb8e470ce586141b08cad3adfb
lean_source_file
lean_toolchain_source_file_chunks
/- Copyright (c) 2020 Microsoft Corporation. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Leonardo de Moura -/ module prelude public import Init.System.IO import Init.Data.ToString.Name import Init.Data.ToString.Macro public section namespace Lean /-- Internal exc...