Datasets:
id stringlengths 34 34 | metadata dict | split stringclasses 1
value | text stringlengths 50 41.3k |
|---|---|---|---|
lean-repo-4380bbd641b8fe774c7c78ce | {
"approx_tokens": 485,
"chunk_count": 1,
"chunk_index": 0,
"commit": "3447a668783dbce1a8fdb97101dd067687b2b418",
"contains_proof": false,
"content_hash": "117c6a602d25b3fe4915f411c114c0a428beede457d4fcab030657ecb0df1416",
"license": "Apache-2.0",
"oversized": false,
"path": "src/Init/BinderNameHint.l... | train | /-
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... |
lean-repo-ff397d60b9a8ecde3cbfb647 | {
"approx_tokens": 550,
"chunk_count": 1,
"chunk_index": 0,
"commit": "3447a668783dbce1a8fdb97101dd067687b2b418",
"contains_proof": true,
"content_hash": "7936a6013c8572f250e0ae146010b4abf36c938379a5dec04728e9a93319704b",
"license": "Apache-2.0",
"oversized": false,
"path": "src/Init/ByCases.lean",
... | train | /-
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
public import Init.SimpLemmas
public section
/-! # by_cases... |
lean-repo-3c796fc3ee11706ca6f6bf67 | {
"approx_tokens": 707,
"chunk_count": 1,
"chunk_index": 0,
"commit": "3447a668783dbce1a8fdb97101dd067687b2b418",
"contains_proof": false,
"content_hash": "d16c58b224b9b343a3f10b13d321a6d3fe150e79ed2edf2b6f584879fef8c2ea",
"license": "Apache-2.0",
"oversized": false,
"path": "src/Init/CbvSimproc.lean"... | train | /-
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... |
lean-repo-ea92c3bb2379f6c619f11310 | {
"approx_tokens": 1016,
"chunk_count": 3,
"chunk_index": 0,
"commit": "3447a668783dbce1a8fdb97101dd067687b2b418",
"contains_proof": true,
"content_hash": "ffd65975adacc105e5515c72608a4089baf839c5c84d1abde321172eb7b9b85d",
"license": "Apache-2.0",
"oversized": false,
"path": "src/Init/Classical.lean",... | train | /-
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... |
lean-repo-dfe8d92e22eb4cbb3dc16356 | {
"approx_tokens": 1011,
"chunk_count": 3,
"chunk_index": 1,
"commit": "3447a668783dbce1a8fdb97101dd067687b2b418",
"contains_proof": true,
"content_hash": "9e9d0ec51a2448123df304005972db1c5cd0d2ad86ff5c2fbb667c5b992aa88a",
"license": "Apache-2.0",
"oversized": false,
"path": "src/Init/Classical.lean",... | train | /-
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
theorem epsilon_spec_aux {α : Sort u} (h : Nonempty α) (p : α → Prop) : (∃ y, p y) → p (@epsi... |
lean-repo-d8eb3b6305b41b040bf25d20 | {
"approx_tokens": 354,
"chunk_count": 3,
"chunk_index": 2,
"commit": "3447a668783dbce1a8fdb97101dd067687b2b418",
"contains_proof": true,
"content_hash": "1c0eee5ac5f200546d259816acfb59961a674e875133037d3fa0afb5b37b5a47",
"license": "Apache-2.0",
"oversized": false,
"path": "src/Init/Classical.lean",
... | train | /-
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
@[simp] theorem imp_iff_left_iff : (b ↔ a → b) ↔ a ∨ b := Decidable.imp_iff_left_iff
@[simp]... |
lean-repo-ad66bf67cc74884ff3f2d3f0 | {
"approx_tokens": 82,
"chunk_count": 5,
"chunk_index": 0,
"commit": "3447a668783dbce1a8fdb97101dd067687b2b418",
"contains_proof": false,
"content_hash": "89dd696f5195f9ffc70ae2184a47ee6145498cf3361c66352ff6f7c1f06b1137",
"license": "Apache-2.0",
"oversized": false,
"path": "src/Init/Coe.lean",
"rep... | train | /-
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... |
lean-repo-3cd36b463b8a6e9a9e216000 | {
"approx_tokens": 1232,
"chunk_count": 5,
"chunk_index": 1,
"commit": "3447a668783dbce1a8fdb97101dd067687b2b418",
"contains_proof": false,
"content_hash": "96760dba018be267b7fb4113c1643da427bff0ec4d6011eb35ea9bffa721fa75",
"license": "Apache-2.0",
"oversized": true,
"path": "src/Init/Coe.lean",
"re... | train | /-
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
/-!
# Coercion
Lean uses a somewhat elaborate system of typecla... |
lean-repo-328d6744246edc50b8d24764 | {
"approx_tokens": 959,
"chunk_count": 5,
"chunk_index": 2,
"commit": "3447a668783dbce1a8fdb97101dd067687b2b418",
"contains_proof": false,
"content_hash": "d566dd7496264f484923a0c01e31d0018feee6651a70636d2e04764cfc09da6b",
"license": "Apache-2.0",
"oversized": false,
"path": "src/Init/Coe.lean",
"re... | train | /-
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
/--
`Coe α β` is the typeclass for coercions from `α` to `β`. It... |
lean-repo-eeff98b121dba6f4d22d889f | {
"approx_tokens": 1003,
"chunk_count": 5,
"chunk_index": 3,
"commit": "3447a668783dbce1a8fdb97101dd067687b2b418",
"contains_proof": false,
"content_hash": "ad545500d6026010609dd96730bbdcdb5a8417f51288d642f93f0eae6c619a88",
"license": "Apache-2.0",
"oversized": false,
"path": "src/Init/Coe.lean",
"r... | train | /-
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
/--
Auxiliary class implementing `CoeHead* Coe* CoeTail?`.
Users... |
lean-repo-46b88d278d1d2a0cc9397f8e | {
"approx_tokens": 353,
"chunk_count": 5,
"chunk_index": 4,
"commit": "3447a668783dbce1a8fdb97101dd067687b2b418",
"contains_proof": false,
"content_hash": "a779710171ebff444ed67266bc2c0d51b583c0f29efaca684ec3c49630ed9631",
"license": "Apache-2.0",
"oversized": false,
"path": "src/Init/Coe.lean",
"re... | train | /-
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
/-! # Basic instances -/
instance boolToProp : Coe Bool Prop wh... |
lean-repo-81f48c7c47f6b0eb209c9766 | {
"approx_tokens": 156,
"chunk_count": 1,
"chunk_index": 0,
"commit": "3447a668783dbce1a8fdb97101dd067687b2b418",
"contains_proof": false,
"content_hash": "fb1303aa2f83376d3e7624d5c08c36c3ec3b95580656f1a743c720e3835d77fa",
"license": "Apache-2.0",
"oversized": false,
"path": "src/Init/Control.lean",
... | train | /-
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... |
lean-repo-1f86b3f8535d108d4822bd9b | {
"approx_tokens": 732,
"chunk_count": 5,
"chunk_index": 0,
"commit": "3447a668783dbce1a8fdb97101dd067687b2b418",
"contains_proof": false,
"content_hash": "5c95119a6a637d03cb33679d4aca6be73f6f67ee3f92263734a0ebd2665b2035",
"license": "Apache-2.0",
"oversized": false,
"path": "src/Init/Control/Basic.le... | train | /-
Copyright (c) 2020 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Author: Leonardo de Moura, Sebastian Ullrich
-/
module
prelude
public import Init.Core
public import Init.BinderNameHint
@[expose] public section
universe u v w
/--
A `ForIn'` instan... |
lean-repo-c1c6a2cac4c8bf7fc320962b | {
"approx_tokens": 877,
"chunk_count": 5,
"chunk_index": 1,
"commit": "3447a668783dbce1a8fdb97101dd067687b2b418",
"contains_proof": false,
"content_hash": "5015ab34a59ac81bcf90b03461d61abcfbdef0538631884c16be864acbe0f10d",
"license": "Apache-2.0",
"oversized": false,
"path": "src/Init/Control/Basic.le... | train | /-
Copyright (c) 2020 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Author: Leonardo de Moura, Sebastian Ullrich
-/
module
prelude
public import Init.Core
public import Init.BinderNameHint
/--
An `Alternative` functor is an `Applicative` functor that c... |
lean-repo-006fa8bcfd131689b6b0d1cb | {
"approx_tokens": 1263,
"chunk_count": 5,
"chunk_index": 2,
"commit": "3447a668783dbce1a8fdb97101dd067687b2b418",
"contains_proof": false,
"content_hash": "2d78c2a2fe7b29ce7dc92365ed65053f2cb7fc972ce86c8245dfe5806f2151f3",
"license": "Apache-2.0",
"oversized": true,
"path": "src/Init/Control/Basic.le... | train | /-
Copyright (c) 2020 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Author: Leonardo de Moura, Sebastian Ullrich
-/
module
prelude
public import Init.Core
public import Init.BinderNameHint
/--
Runs a monadic action and returns the negation of its resul... |
lean-repo-3962e4401b753d30b62a815e | {
"approx_tokens": 881,
"chunk_count": 5,
"chunk_index": 3,
"commit": "3447a668783dbce1a8fdb97101dd067687b2b418",
"contains_proof": false,
"content_hash": "1b441551a84df72b8691da354259ea5f63a36a7d019960c914b1a8c213c10924",
"license": "Apache-2.0",
"oversized": false,
"path": "src/Init/Control/Basic.le... | train | /-
Copyright (c) 2020 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Author: Leonardo de Moura, Sebastian Ullrich
-/
module
prelude
public import Init.Core
public import Init.BinderNameHint
/--
A way to lift a computation from one monad to another while... |
lean-repo-b00eac0991584c0cdd324aa1 | {
"approx_tokens": 850,
"chunk_count": 5,
"chunk_index": 4,
"commit": "3447a668783dbce1a8fdb97101dd067687b2b418",
"contains_proof": false,
"content_hash": "0173a26c1ca4fec573bd387b9722e38f961d342cf233a8093325cf9c066f7b8f",
"license": "Apache-2.0",
"oversized": false,
"path": "src/Init/Control/Basic.le... | train | /-
Copyright (c) 2020 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Author: Leonardo de Moura, Sebastian Ullrich
-/
module
prelude
public import Init.Core
public import Init.BinderNameHint
/--
Lifts an operation from an inner monad to an outer monad, p... |
lean-repo-0c9585e36353db9d215c8775 | {
"approx_tokens": 539,
"chunk_count": 1,
"chunk_index": 0,
"commit": "3447a668783dbce1a8fdb97101dd067687b2b418",
"contains_proof": false,
"content_hash": "4e69f2c6b402ccd9721bbe6d69605eaa95a04367753fe7192318beb41c8fe98a",
"license": "Apache-2.0",
"oversized": false,
"path": "src/Init/Control/Do.lean"... | train | /-
Copyright (c) 2025 Lean FRO LLC. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Sebastian Graf
-/
module
prelude
public import Init.Control.Except
public import Init.Control.Option
public section
/-!
This module provides specialized wrappers around `ExceptT` to s... |
lean-repo-7e4ba5a8d15d497fa6e69100 | {
"approx_tokens": 621,
"chunk_count": 1,
"chunk_index": 0,
"commit": "3447a668783dbce1a8fdb97101dd067687b2b418",
"contains_proof": false,
"content_hash": "4e6163d5e937bbe15c7a465474cd29fb27efadff034038b5336afce034a9072b",
"license": "Apache-2.0",
"oversized": false,
"path": "src/Init/Control/EState.l... | train | /-
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 import Init.Control.State
public section
universe u v
namespace EStateM
variable {ε σ α : T... |
lean-repo-f64ef3d0ba005db779a9e51c | {
"approx_tokens": 1023,
"chunk_count": 4,
"chunk_index": 0,
"commit": "3447a668783dbce1a8fdb97101dd067687b2b418",
"contains_proof": false,
"content_hash": "7e6b941a6cbfea1afd53d44bce4855148bd89cf08e15d0f2a2b96ee0897818d2",
"license": "Apache-2.0",
"oversized": false,
"path": "src/Init/Control/Except.... | train | /-
Copyright (c) 2017 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Jared Roesch, Sebastian Ullrich
The Except monad transformer.
-/
module
prelude
public import Init.Control.Basic
public import Init.Control.Id
@[expose] public section
names... |
lean-repo-da74d5030842d2b09a5c814f | {
"approx_tokens": 963,
"chunk_count": 4,
"chunk_index": 1,
"commit": "3447a668783dbce1a8fdb97101dd067687b2b418",
"contains_proof": false,
"content_hash": "7bb15d372cd6af289ebcfdaf32c4343ae4fe63fc67b312d5be5f96fef5df29fc",
"license": "Apache-2.0",
"oversized": false,
"path": "src/Init/Control/Except.l... | train | /-
Copyright (c) 2017 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Jared Roesch, Sebastian Ullrich
The Except monad transformer.
-/
module
prelude
public import Init.Control.Basic
public import Init.Control.Id
/--
Use a monadic action that m... |
lean-repo-89863ac5d47e2bd6d22bfe83 | {
"approx_tokens": 952,
"chunk_count": 4,
"chunk_index": 2,
"commit": "3447a668783dbce1a8fdb97101dd067687b2b418",
"contains_proof": false,
"content_hash": "78f658d3403ba8b9794025ee1360b0877a64d73102b3ff717d2dc3e745f81431",
"license": "Apache-2.0",
"oversized": false,
"path": "src/Init/Control/Except.l... | train | /-
Copyright (c) 2017 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Jared Roesch, Sebastian Ullrich
The Except monad transformer.
-/
module
prelude
public import Init.Control.Basic
public import Init.Control.Id
@[always_inline]
instance (m : ... |
lean-repo-0c4fade04de94accd12f14a6 | {
"approx_tokens": 146,
"chunk_count": 4,
"chunk_index": 3,
"commit": "3447a668783dbce1a8fdb97101dd067687b2b418",
"contains_proof": false,
"content_hash": "353f06ff4626c189fe694325e5854fd422a41f7f484109097f4cb75c503d6751",
"license": "Apache-2.0",
"oversized": false,
"path": "src/Init/Control/Except.l... | train | /-
Copyright (c) 2017 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Jared Roesch, Sebastian Ullrich
The Except monad transformer.
-/
module
prelude
public import Init.Control.Basic
public import Init.Control.Id
instance [Monad m] [MonadAttach... |
lean-repo-777d8be68b8db5531b37bd01 | {
"approx_tokens": 989,
"chunk_count": 2,
"chunk_index": 0,
"commit": "3447a668783dbce1a8fdb97101dd067687b2b418",
"contains_proof": true,
"content_hash": "4fbaa06bacc9ed435e818d6ec2afa1d97fadba3c72f0b47a9b5797fdb8f2f101",
"license": "Apache-2.0",
"oversized": false,
"path": "src/Init/Control/ExceptCps... | train | /-
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.Control.Lawful.Basic
import Init.SimpLemmas
public section
/-!
The Exception monad transformer using CPS style.
-/
/--... |
lean-repo-55efa4422a3818c8e7ae1c30 | {
"approx_tokens": 300,
"chunk_count": 2,
"chunk_index": 1,
"commit": "3447a668783dbce1a8fdb97101dd067687b2b418",
"contains_proof": true,
"content_hash": "8b67308c198c3606181862309b5084f3a148682be5d9487c98784f89643b741a",
"license": "Apache-2.0",
"oversized": false,
"path": "src/Init/Control/ExceptCps... | train | /-
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.Control.Lawful.Basic
import Init.SimpLemmas
@[simp] theorem runK_bind_lift [Monad m] (x : m α) (f : α → ExceptCpsT ε m β... |
lean-repo-5b400ece26b2924bb1312e9a | {
"approx_tokens": 570,
"chunk_count": 1,
"chunk_index": 0,
"commit": "3447a668783dbce1a8fdb97101dd067687b2b418",
"contains_proof": false,
"content_hash": "29a5f5ad3f932d09da156be76316c18c203b3c5c6f8a0c57d8f0a94b129df772",
"license": "Apache-2.0",
"oversized": false,
"path": "src/Init/Control/Id.lean"... | train | /-
Copyright (c) 2017 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Sebastian Ullrich
The identity Monad.
-/
module
prelude
public import Init.Control.MonadAttach
public section
universe u
/--
The identity function on types, used primarily ... |
lean-repo-70acccda2906b31063d78f8d | {
"approx_tokens": 108,
"chunk_count": 1,
"chunk_index": 0,
"commit": "3447a668783dbce1a8fdb97101dd067687b2b418",
"contains_proof": false,
"content_hash": "72c2920945906187b3efe22cfd93d34db21bb1fcb4531862fc2066854ab003a7",
"license": "Apache-2.0",
"oversized": false,
"path": "src/Init/Control/Lawful.l... | train | /-
Copyright (c) 2021 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Sebastian Ullrich, Leonardo de Moura, Mario Carneiro
-/
module
prelude
public import Init.Control.Lawful.Basic
public import Init.Control.Lawful.Instances
public import Init.Co... |
lean-repo-22f542ddeacb7353a9c7edb6 | {
"approx_tokens": 1020,
"chunk_count": 4,
"chunk_index": 0,
"commit": "3447a668783dbce1a8fdb97101dd067687b2b418",
"contains_proof": true,
"content_hash": "6664dd8740efa21b0344edb24a32792db8d478393f226d18f5b66cf0740edbba",
"license": "Apache-2.0",
"oversized": false,
"path": "src/Init/Control/Lawful/B... | train | /-
Copyright (c) 2021 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Sebastian Ullrich, Leonardo de Moura, Mario Carneiro
-/
module
prelude
public import Init.Control.Id
public import Init.Grind.Tactics
import Init.Ext
public section
open Func... |
lean-repo-9ef5fed413d159094d63f347 | {
"approx_tokens": 1021,
"chunk_count": 4,
"chunk_index": 1,
"commit": "3447a668783dbce1a8fdb97101dd067687b2b418",
"contains_proof": true,
"content_hash": "2349b8f0154f9b6a2925276c01fd64db476db4ed81b28119bcda90ddb55be76e",
"license": "Apache-2.0",
"oversized": false,
"path": "src/Init/Control/Lawful/B... | train | /-
Copyright (c) 2021 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Sebastian Ullrich, Leonardo de Moura, Mario Carneiro
-/
module
prelude
public import Init.Control.Id
public import Init.Grind.Tactics
import Init.Ext
@[simp] theorem pure_id_s... |
lean-repo-17cbecc8ed72be99304b15ff | {
"approx_tokens": 1017,
"chunk_count": 4,
"chunk_index": 2,
"commit": "3447a668783dbce1a8fdb97101dd067687b2b418",
"contains_proof": true,
"content_hash": "e9d2ff1aa0666979021435707f7e0ae82d4bece3e9490b573739135582810b27",
"license": "Apache-2.0",
"oversized": false,
"path": "src/Init/Control/Lawful/B... | train | /-
Copyright (c) 2021 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Sebastian Ullrich, Leonardo de Moura, Mario Carneiro
-/
module
prelude
public import Init.Control.Id
public import Init.Grind.Tactics
import Init.Ext
theorem seqRight_eq_bind ... |
lean-repo-965f4dff44d3e008091cacb6 | {
"approx_tokens": 158,
"chunk_count": 4,
"chunk_index": 3,
"commit": "3447a668783dbce1a8fdb97101dd067687b2b418",
"contains_proof": false,
"content_hash": "9007b35794deeaffcb5af67087b63fd1ab60fdb15d221432d3c0bfa19b2354cb",
"license": "Apache-2.0",
"oversized": false,
"path": "src/Init/Control/Lawful/B... | train | /-
Copyright (c) 2021 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Sebastian Ullrich, Leonardo de Moura, Mario Carneiro
-/
module
prelude
public import Init.Control.Id
public import Init.Grind.Tactics
import Init.Ext
@[simp, grind =] theorem ... |
lean-repo-7ab13bfa62f54d72e5f29879 | {
"approx_tokens": 981,
"chunk_count": 7,
"chunk_index": 0,
"commit": "3447a668783dbce1a8fdb97101dd067687b2b418",
"contains_proof": true,
"content_hash": "e722739ed0b53e0d2e161df1b056580968dcb7be58075f3d2eecb6dd0614bf83",
"license": "Apache-2.0",
"oversized": false,
"path": "src/Init/Control/Lawful/In... | train | /-
Copyright (c) 2021 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Sebastian Ullrich, Leonardo de Moura, Mario Carneiro
-/
module
prelude
public import Init.Control.Lawful.Basic
import all Init.Control.Except
public import Init.Control.Option
... |
lean-repo-9a9316321b09615a92b22582 | {
"approx_tokens": 989,
"chunk_count": 7,
"chunk_index": 1,
"commit": "3447a668783dbce1a8fdb97101dd067687b2b418",
"contains_proof": true,
"content_hash": "32d0f86c5101dfb7096daf3677291fe793c84f2e4d635c623b5d5f7e72520ea4",
"license": "Apache-2.0",
"oversized": false,
"path": "src/Init/Control/Lawful/In... | train | /-
Copyright (c) 2021 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Sebastian Ullrich, Leonardo de Moura, Mario Carneiro
-/
module
prelude
public import Init.Control.Lawful.Basic
import all Init.Control.Except
public import Init.Control.Option
... |
lean-repo-d306e00ab8fe91f30e4a1dd2 | {
"approx_tokens": 980,
"chunk_count": 7,
"chunk_index": 2,
"commit": "3447a668783dbce1a8fdb97101dd067687b2b418",
"contains_proof": true,
"content_hash": "826aa84344852cea1e9617b9e88ecb90f469ea799800a41fda81e2768d1005a8",
"license": "Apache-2.0",
"oversized": false,
"path": "src/Init/Control/Lawful/In... | train | /-
Copyright (c) 2021 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Sebastian Ullrich, Leonardo de Moura, Mario Carneiro
-/
module
prelude
public import Init.Control.Lawful.Basic
import all Init.Control.Except
public import Init.Control.Option
... |
lean-repo-4d801b887cf8331ccd31c8b3 | {
"approx_tokens": 1016,
"chunk_count": 7,
"chunk_index": 3,
"commit": "3447a668783dbce1a8fdb97101dd067687b2b418",
"contains_proof": false,
"content_hash": "0449601a288fad342147b2799c3b9d747f9a5b68bb7dc0abbd4556cc86aaa75c",
"license": "Apache-2.0",
"oversized": false,
"path": "src/Init/Control/Lawful/... | train | /-
Copyright (c) 2021 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Sebastian Ullrich, Leonardo de Moura, Mario Carneiro
-/
module
prelude
public import Init.Control.Lawful.Basic
import all Init.Control.Except
public import Init.Control.Option
... |
lean-repo-b397572fce30516d578e85da | {
"approx_tokens": 1016,
"chunk_count": 7,
"chunk_index": 4,
"commit": "3447a668783dbce1a8fdb97101dd067687b2b418",
"contains_proof": false,
"content_hash": "04247fbeed274ff72aff1140e2a65fc294ce83681b827c8ca00c8ff995d86c0c",
"license": "Apache-2.0",
"oversized": false,
"path": "src/Init/Control/Lawful/... | train | /-
Copyright (c) 2021 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Sebastian Ullrich, Leonardo de Moura, Mario Carneiro
-/
module
prelude
public import Init.Control.Lawful.Basic
import all Init.Control.Except
public import Init.Control.Option
... |
lean-repo-b486259535e481c2a13b537a | {
"approx_tokens": 1020,
"chunk_count": 7,
"chunk_index": 5,
"commit": "3447a668783dbce1a8fdb97101dd067687b2b418",
"contains_proof": true,
"content_hash": "478bb9f472d3c3592e54c2eb08bf278def0b79dd4121a265db5731a47c826b90",
"license": "Apache-2.0",
"oversized": false,
"path": "src/Init/Control/Lawful/I... | train | /-
Copyright (c) 2021 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Sebastian Ullrich, Leonardo de Moura, Mario Carneiro
-/
module
prelude
public import Init.Control.Lawful.Basic
import all Init.Control.Except
public import Init.Control.Option
... |
lean-repo-450318ffc4e93c1f4247b172 | {
"approx_tokens": 772,
"chunk_count": 7,
"chunk_index": 6,
"commit": "3447a668783dbce1a8fdb97101dd067687b2b418",
"contains_proof": true,
"content_hash": "9ec97be7e7ad07bccbb8f4945886b900b0a7bd87507d28a9b501147711e822cc",
"license": "Apache-2.0",
"oversized": false,
"path": "src/Init/Control/Lawful/In... | train | /-
Copyright (c) 2021 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Sebastian Ullrich, Leonardo de Moura, Mario Carneiro
-/
module
prelude
public import Init.Control.Lawful.Basic
import all Init.Control.Except
public import Init.Control.Option
... |
lean-repo-f03983fb4877a62f178e26fa | {
"approx_tokens": 486,
"chunk_count": 1,
"chunk_index": 0,
"commit": "3447a668783dbce1a8fdb97101dd067687b2b418",
"contains_proof": true,
"content_hash": "01707d8fa72ec97a38c4c16eee7dffa62fc1c008f3d34a06c0ebf003b2d817a7",
"license": "Apache-2.0",
"oversized": false,
"path": "src/Init/Control/Lawful/Le... | train | /-
Copyright (c) 2025 Lean FRO, LLC. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Kim Morrison
-/
module
prelude
public import Init.Control.Lawful.Basic
public import Init.Classical
public import Init.Ext
import Init.ByCases
public section
-- Mapping by a function... |
lean-repo-5120573128172d199d8a6843 | {
"approx_tokens": 70,
"chunk_count": 1,
"chunk_index": 0,
"commit": "3447a668783dbce1a8fdb97101dd067687b2b418",
"contains_proof": false,
"content_hash": "9e9979edaa76f7506f474e5b61120020533d715801d522b59760356eef737a1b",
"license": "Apache-2.0",
"oversized": false,
"path": "src/Init/Control/Lawful/Mo... | train | /-
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.Control.Lawful.MonadAttach.Lemmas
public import Init.Control.Lawful.MonadAttach.Instances
|
lean-repo-11737284a8a3908647f2a44e | {
"approx_tokens": 976,
"chunk_count": 2,
"chunk_index": 0,
"commit": "3447a668783dbce1a8fdb97101dd067687b2b418",
"contains_proof": false,
"content_hash": "16a7d1b94dcbda7cfda590929c14497c4b8513c055cdeb7de581fe05640e3657",
"license": "Apache-2.0",
"oversized": false,
"path": "src/Init/Control/Lawful/M... | train | /-
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
import Init.Control.Lawful.MonadAttach.Lemmas
public import Init.Control.Lawful.Basic
public import Init.Control.State
public import Init.Control.StateR... |
lean-repo-86c1fda3e403761391173d98 | {
"approx_tokens": 234,
"chunk_count": 2,
"chunk_index": 1,
"commit": "3447a668783dbce1a8fdb97101dd067687b2b418",
"contains_proof": false,
"content_hash": "41be0c6319c4cd37125fb7e95e2f142e8ac12fbca4abaaaa4572dc872ce60573",
"license": "Apache-2.0",
"oversized": false,
"path": "src/Init/Control/Lawful/M... | train | /-
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
import Init.Control.Lawful.MonadAttach.Lemmas
public import Init.Control.Lawful.Basic
public import Init.Control.State
public import Init.Control.StateR... |
lean-repo-bdd76cb2f6c298f3c92ba51a | {
"approx_tokens": 1009,
"chunk_count": 1,
"chunk_index": 0,
"commit": "3447a668783dbce1a8fdb97101dd067687b2b418",
"contains_proof": true,
"content_hash": "c441ceb4605854293d8635321a254eeb1f7ac07dcad062ef316066f9ca00b88b",
"license": "Apache-2.0",
"oversized": false,
"path": "src/Init/Control/Lawful/M... | train | /-
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
import all Init.Control.MonadAttach
public import Init.Classical
public import Init.Control.Lawful.Basic
public import Init.Control.Lawful.MonadLift.Bas... |
lean-repo-f2cb01e5fa08ec6d9597cfc8 | {
"approx_tokens": 81,
"chunk_count": 1,
"chunk_index": 0,
"commit": "3447a668783dbce1a8fdb97101dd067687b2b418",
"contains_proof": false,
"content_hash": "3dd11ccd56fd6b76e849f99da855489c869cc95ab3612de8a9ed172d8409064e",
"license": "Apache-2.0",
"oversized": false,
"path": "src/Init/Control/Lawful/Mo... | train | /-
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.Control.Lawful.MonadLift.Basic
public import Init.Control.Lawful.MonadLift.Lemmas
public import Init.Control.Lawful.MonadLift.Instanc... |
lean-repo-fb7eb3df59dffccc11b309e8 | {
"approx_tokens": 464,
"chunk_count": 1,
"chunk_index": 0,
"commit": "3447a668783dbce1a8fdb97101dd067687b2b418",
"contains_proof": false,
"content_hash": "09248f8e7833772b96420bdc293f4d4bf200c521ece974ec97927d0b14820952",
"license": "Apache-2.0",
"oversized": false,
"path": "src/Init/Control/Lawful/M... | train | /-
Copyright (c) 2025 Quang Dao. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Quang Dao
-/
module
prelude
public import Init.Notation
public section
/-!
# LawfulMonadLift and LawfulMonadLiftT
This module provides classes asserting that `MonadLift` and `MonadLiftT... |
lean-repo-93a0185ddd7e73098724d8fa | {
"approx_tokens": 1015,
"chunk_count": 2,
"chunk_index": 0,
"commit": "3447a668783dbce1a8fdb97101dd067687b2b418",
"contains_proof": true,
"content_hash": "9c7132d637a26c33f2f471125816771a44b2d1f142b156eb5851c8ae177650a4",
"license": "Apache-2.0",
"oversized": false,
"path": "src/Init/Control/Lawful/M... | train | /-
Copyright (c) 2025 Quang Dao. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Quang Dao, Paul Reichert
-/
module
prelude
import all Init.Control.Option
import all Init.Control.Except
public import Init.Control.ExceptCps
import all Init.Control.ExceptCps
import all I... |
lean-repo-2c4129776b43474f837335ba | {
"approx_tokens": 208,
"chunk_count": 2,
"chunk_index": 1,
"commit": "3447a668783dbce1a8fdb97101dd067687b2b418",
"contains_proof": false,
"content_hash": "757129abaa825e0882ac009185f9ead79c1f9020acee51556b17f74a62d496ea",
"license": "Apache-2.0",
"oversized": false,
"path": "src/Init/Control/Lawful/M... | train | /-
Copyright (c) 2025 Quang Dao. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Quang Dao, Paul Reichert
-/
module
prelude
import all Init.Control.Option
import all Init.Control.Except
public import Init.Control.ExceptCps
import all Init.Control.ExceptCps
import all I... |
lean-repo-b759573d3fcf54846de0ca2f | {
"approx_tokens": 693,
"chunk_count": 1,
"chunk_index": 0,
"commit": "3447a668783dbce1a8fdb97101dd067687b2b418",
"contains_proof": true,
"content_hash": "eb21d86f05d4c451f422690386ab03c7b781d6cdd0c4377f80d86316c6e99080",
"license": "Apache-2.0",
"oversized": false,
"path": "src/Init/Control/Lawful/Mo... | train | /-
Copyright (c) 2025 Quang Dao. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Quang Dao
-/
module
prelude
public import Init.Control.Lawful.Basic
public import Init.Control.Lawful.MonadLift.Basic
import Init.Ext
public section
universe u v w
theorem instMonadLift... |
lean-repo-f0aa1f49c25c63f72419c03f | {
"approx_tokens": 810,
"chunk_count": 2,
"chunk_index": 0,
"commit": "3447a668783dbce1a8fdb97101dd067687b2b418",
"contains_proof": false,
"content_hash": "3ad75501349923ea673a88bbcb6876a62edb928c65391391c900ce65b6fd1ee1",
"license": "Apache-2.0",
"oversized": false,
"path": "src/Init/Control/MonadAtt... | train | /-
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.Core
set_option linter.all true
set_option doc.verso true
/-!
# {name (scope := "Init.Control.MonadAttach")}`MonadAttach`
This mo... |
lean-repo-3f6324faac0cd3774ca83eb3 | {
"approx_tokens": 646,
"chunk_count": 2,
"chunk_index": 1,
"commit": "3447a668783dbce1a8fdb97101dd067687b2b418",
"contains_proof": false,
"content_hash": "aff485f0c7f7ee2866dfba666d7a238383196ee956bff4b8cfd56c893abd70fc",
"license": "Apache-2.0",
"oversized": false,
"path": "src/Init/Control/MonadAtt... | train | /-
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.Core
set_option doc.verso true
/--
For every {given}`x : m α`, this type class provides a predicate {lean}`MonadAttach.CanReturn x`... |
lean-repo-9e5dbf4f2adb752b8b732f84 | {
"approx_tokens": 939,
"chunk_count": 1,
"chunk_index": 0,
"commit": "3447a668783dbce1a8fdb97101dd067687b2b418",
"contains_proof": false,
"content_hash": "82a99776beb4e5be6f16a4938fbf52a1f448c00f117089a787428bb3c08cea2d",
"license": "Apache-2.0",
"oversized": false,
"path": "src/Init/Control/Option.l... | train | /-
Copyright (c) 2017 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 Init.Data.Option.Basic
public import Init.Control.MonadAttach
public section
set_option linter.missingDoc... |
lean-repo-25228664007e2954f5332c2c | {
"approx_tokens": 408,
"chunk_count": 1,
"chunk_index": 0,
"commit": "3447a668783dbce1a8fdb97101dd067687b2b418",
"contains_proof": false,
"content_hash": "c0d127ecdd2e68e96f6f1a116d325350e5c9239d90f31d7c51a1dd569603504c",
"license": "Apache-2.0",
"oversized": false,
"path": "src/Init/Control/Reader.l... | train | /-
Copyright (c) 2017 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Sebastian Ullrich
The Reader monad transformer for passing immutable State.
-/
module
prelude
public import Init.Control.Except
public section
set_option linter.missingDocs ... |
lean-repo-884180db73e253e4e8407a33 | {
"approx_tokens": 982,
"chunk_count": 2,
"chunk_index": 0,
"commit": "3447a668783dbce1a8fdb97101dd067687b2b418",
"contains_proof": false,
"content_hash": "bdb0a5dd51d054923464ab7f42cbe7e0b3aabdaa67dde813f20ebe4484bb03c4",
"license": "Apache-2.0",
"oversized": false,
"path": "src/Init/Control/State.le... | train | /-
Copyright (c) 2016 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Leonardo de Moura, Sebastian Ullrich
The State monad transformer.
-/
module
prelude
public import Init.Control.Except
public section
set_option linter.missingDocs true
univ... |
lean-repo-0eea5b7d346d1068cd35a12d | {
"approx_tokens": 793,
"chunk_count": 2,
"chunk_index": 1,
"commit": "3447a668783dbce1a8fdb97101dd067687b2b418",
"contains_proof": false,
"content_hash": "afa11e1d854f409ddcd20e881ac5b79fdb52d3c4f70e06c74e2cf3dc0abdd8bc",
"license": "Apache-2.0",
"oversized": false,
"path": "src/Init/Control/State.le... | train | /-
Copyright (c) 2016 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Leonardo de Moura, Sebastian Ullrich
The State monad transformer.
-/
module
prelude
public import Init.Control.Except
/--
Applies a function to the current state that both co... |
lean-repo-7c9b54b7934fd2a0ccb3a97e | {
"approx_tokens": 983,
"chunk_count": 2,
"chunk_index": 0,
"commit": "3447a668783dbce1a8fdb97101dd067687b2b418",
"contains_proof": false,
"content_hash": "99c5ff1d861f8e51ae730b3edb8542b0ce0604cc9c50bef8a54c8107b6232f86",
"license": "Apache-2.0",
"oversized": false,
"path": "src/Init/Control/StateCps... | train | /-
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.Control.Lawful.Basic
public import Init.Ext
public section
set_option linter.missingDocs true
/-!
The State monad tran... |
lean-repo-a649e19dae5d986089a0c57e | {
"approx_tokens": 293,
"chunk_count": 2,
"chunk_index": 1,
"commit": "3447a668783dbce1a8fdb97101dd067687b2b418",
"contains_proof": false,
"content_hash": "b65d4d18ee7bc4f088618332c5036e7581fd11b4438a981119fdef778bece123",
"license": "Apache-2.0",
"oversized": false,
"path": "src/Init/Control/StateCps... | train | /-
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.Control.Lawful.Basic
public import Init.Ext
@[simp] theorem runK_bind_lift [Monad m] (x : m α) (f : α → StateCpsT σ m β)... |
lean-repo-f2fdd4d472da79be5d0691eb | {
"approx_tokens": 994,
"chunk_count": 2,
"chunk_index": 0,
"commit": "3447a668783dbce1a8fdb97101dd067687b2b418",
"contains_proof": false,
"content_hash": "f5b29ab532668d5f0f45dca480c38f45a2a2c894899bc381df909b822d1fc370",
"license": "Apache-2.0",
"oversized": false,
"path": "src/Init/Control/StateRef... | train | /-
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
The State monad transformer using IO references.
-/
module
prelude
public import Init.System.ST
public import Init.Control.Reader
public ... |
Lean 4 repository midtraining corpus v1
This is a causal language-model corpus curated from pinned Lean 4 repositories. It is intended for repository midtraining after introductory Lean language SFT and before verified proof SFT or verifier-guided RL. The rows contain source text, not instruction/answer conversations.
Dataset
| Split | Chunks |
|---|---|
| Train | 18,367 |
| Validation | 1,071 |
| Total | 19,438 |
The source-preserving builder estimates 16.71M tokens using four UTF-8 bytes per token. The Qwen2.5-Coder tokenizer counts 21.55M tokens. At the 1,536-token training limit, 18,876 chunks and 20.48M tokens are usable. The 562 oversized single-declaration chunks are skipped rather than truncated.
Validation is assigned at source-file level within each repository. No source file or normalized content hash appears in both splits.
Sources
| Repository | Included paths | Commit | Chunks |
|---|---|---|---|
| Lean 4 | src/Init, src/Std |
3447a668783dbce1a8fdb97101dd067687b2b418 |
5,321 |
| Mathlib | Algebra, Analysis, Data, GroupTheory, Logic, NumberTheory, Tactic | 7c673ccc1c8a2d957ca48beff4dd4c0948177ca9 |
13,425 |
| Batteries | Batteries |
36cc05ca2d0e469bfbeea9437f460e19238e885e |
451 |
| Aesop | Aesop |
c1c4362a130f12e632d252180a6c2a31d8fd4726 |
241 |
All sources are Apache-2.0 and pinned to the Lean 4.34.0-rc1 toolchain. Exact source
URLs, include/exclude globs, verified Git heads, and licenses are recorded in
manifest.lock.json.
Curation
The builder:
- excludes Git, Lake, build, vendor, generated, and testing artifacts
- preserves complete top-level commands and repeats module import headers
- rejects chunks containing active
sorry,admit, orproof_wanted - removes normalized exact duplicates
- checks theorem-statement fingerprints against the environment's toy, miniF2F, ProofNet, and Putnam evaluation data
The final pass rejected 26 forbidden chunks and 34 duplicates. It found no exact theorem-statement match against those evaluation files. This is an exact normalized check, not a semantic contamination guarantee; renamed or equivalent statements may not be detected.
Row format
Each row has id, text, split, and metadata. Metadata includes repository URL,
commit, license, toolchain, source path, chunk index, normalized content hash, approximate
token count, and whether the chunk contains a proof declaration.
Limitations
Chunks preserve source commands but are not guaranteed to compile independently. This dataset emphasizes core/standard-library code, common Mathlib data and logic APIs, and tactic infrastructure. It does not represent all Mathlib domains. The validation split measures repository language-model loss, not theorem-proving accuracy.
- Downloads last month
- 42