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 |
|---|---|---|---|---|---|
4,599 | lean_file_chunk | dbf5f45ec4030abb55441f27a249f55e137a237bc6722042c32b63794ab1787b | 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.Data.Iterators.Combinators.Take
public import Init.Data.Iterators.Lemmas.Combinators.Monadic.Take
public import Init.Data.Iterators.C... |
576 | lean_file_chunk | 8e7afb40da48a8896cf48e86af3771d756be17e4b4ff27ac3eb68c9ac1f08371 | 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.Data.Iterators.Lemmas.Combinators.Monadic.Append
public import Init.Data.Iterators.Lemmas.Combinators.Monadic.Attach
public import In... |
2,575 | lean_file_chunk | d40a521a8ac5b146c4d53c34ab4f4f217355e9f6c55a144e9f38fb366f1f7d39 | 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.Data.Iterators.Combinators.ULift
import all Init.Data.Iterators.Combinators.ULift
public import Init.Data.Iterators.Consumers.Collect... |
3,367 | lean_file_chunk | faf869ede222e3d5445561be0d7f02df48578c59ec21e0aacee769c0b0f156f0 | 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.Data.Iterators.Combinators.Attach
import all Init.Data.Iterators.Combinators.Attach
import all Init.Data.Iterators.Combinators.Monadi... |
23,953 | lean_file_chunk | 6048b62158153e744981d566686aba7c358fc55643c3800b62af44b20b7ff4a5 | 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.Data.Iterators.Combinators.FilterMap
public import Init.Data.Iterators.Consumers.Collect
public import Init.Data.Iterators.Consumers.... |
22,352 | lean_file_chunk | a140f7dc6bf3a4c8204c427de76b0a2cbc8781cffa96ddc9f21c6e9a53970a31 | lean_source_file | lean_toolchain_source_file_chunks | {f : β → PostconditionT n γ} {g : δ → γ → o δ} {init : δ} {it : Iter (α := α) β} :
(it.mapWithPostcondition f).foldM (init := init) g =
it.foldM (init := init) (fun d b => do let c ← (f b).run; g d c) := by
simp only [mapWithPostcondition, IterM.foldM_mapWithPostcondition, foldM_eq_foldM_toIterM]
rw [inst... |
14,090 | lean_file_chunk | 6ee236a798257c8f53dd636bae4077a6921b08c191ec1e9ec7f23136955993aa | 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
import Init.Data.Iterators.Lemmas.Combinators.FilterMap
public import Init.Data.Iterators.Combinators.FlatMap
import all Init.Data.Iterators.Combinators... |
678 | lean_file_chunk | 4f6a4e76e3fd6d1dab747083e67caffe122924c5a582715319aa2dd0d02c305d | 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.Data.Iterators.Consumers.Access
namespace Std.Iter
open Std.Iterators
public theorem atIdxSlow?_eq_match [Iterator α Id β] [Product... |
8,476 | lean_file_chunk | 4062c942ee3d10bc62e59e497e8c341664f2827ca226cbd575fd98058f3f939a | 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.Data.Iterators.Consumers.Access
import all Init.Data.Iterators.Consumers.Access
import all Init.Data.Iterators.Consumers.Collect
impo... |
298 | lean_file_chunk | fb6ef48e271264878b7c51181ae7785a2d2858a3058c44d6f644f29afa313a1f | 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.Data.Iterators.Lemmas.Consumers.Monadic.Collect
public import Init.Data.Iterators.Lemmas.Consumers.Monadic.Loop |
23,922 | lean_file_chunk | ee12988cf93921b1e00869998aa9d362e59282242aa835e2eaf618c2b488b78c | 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
import all Init.Data.Iterators.Lemmas.Consumers.Monadic.Loop
import all Init.Data.Iterators.Consumers.Loop
import all Init.Data.Iterators.Consumers.Mona... |
18,734 | lean_file_chunk | f9213dd749e7a2de13f57e4f40cce87e18be8ec37e793096787b0af6ea5173cd | lean_source_file | lean_toolchain_source_file_chunks | theorem Iter.length_toList_eq_length {α β : Type w} [Iterator α Id β] [Finite α Id]
[IteratorLoop α Id Id] [LawfulIteratorLoop α Id Id]
{it : Iter (α := α) β} :
it.toList.length = it.length := by
rw [← toList_toArray, Array.length_toList, size_toArray_eq_length]
@[deprecated Iter.length_toList_eq_length ... |
1,931 | lean_file_chunk | 222e9c119c74619f220574d776cf741eab0d4c9b8c12420d5ac44de383c4a09c | 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.Data.Iterators.Producers.Monadic.List
import Init.Data.Iterators.Lemmas.Consumers.Monadic.Collect
import Init.Data.List.ToArray
@[ex... |
4,207 | lean_file_chunk | 35516bab4b0454558b393466418d71914988851213c8468b4dc2860eb631b31e | 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.Iterators.Combinators.Monadic.Append
public import Init.Data.Iterators.Consumers.Monadic.Collect
import Init.Data.Iterators.Lemm... |
3,065 | lean_file_chunk | c073944fa867e86367eb1f00179283d99cb7b439cf701281dcfa80c9c9fdb038 | 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.Data.Iterators.Combinators.Monadic.Take
public import Init.Data.Iterators.Consumers.Monadic.Collect
import Init.Data.Iterators.Lemmas... |
3,457 | lean_file_chunk | d1febf11ac2f1a04c780a64122251ef71a7d74bb48b5b92adad99f935cc92e5c | 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.Data.Iterators.Combinators.Monadic.ULift
import Init.Data.Array.Lemmas
import Init.Data.Iterators.Lemmas.Consumers.Monadic.Collect
im... |
3,112 | lean_file_chunk | be1d0ec467bc4c304ea9d7bea3cd82fe2cbcdc8588d9ca86bd05eb736b11059f | 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.Data.Iterators.Combinators.Monadic.Attach
import all Init.Data.Iterators.Combinators.Monadic.Attach
public import Init.Data.Iterators... |
23,994 | lean_file_chunk | a34d05579755a3f3eb11dc6cde2f4a03f92bf7a3c3e00f9adc2fb02fe43cef6f | 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.Data.Iterators.Combinators.Monadic.FilterMap
import all Init.Data.Iterators.Consumers.Monadic.Collect
import Init.Data.Array.Monadic
... |
23,981 | lean_file_chunk | b0fa2566f683a76f4bec6a530879d48ed06e19b1ada970c87a65b2a1a4ceacba | lean_source_file | lean_toolchain_source_file_chunks | [Iterator α m β] [Finite α m]
{f : β → γ} {g : γ → n δ}
{it : IterM (α := α) m β} :
((it.map f).mapM g).toList =
(it.mapM (n := n) (fun b => g (f b))).toList := by
simp [toList_mapM_eq_toList_filterMapM]
@[simp]
theorem IterM.toList_map_mapM {α β γ δ : Type w}
{m : Type w → Type w'} {n : Type w... |
23,949 | lean_file_chunk | 89a40b19aaaddb0bf069618fd25ede9b8f50bb60784f678370533cad5de7d63b | lean_source_file | lean_toolchain_source_file_chunks | {f : β → γ} {g : γ → n (Option δ)}
{it : IterM (α := α) m β} :
((it.map f).filterMapM g).toArray =
(it.filterMapM (n := n) (fun b => g (f b))).toArray := by
simp [← toArray_toList]
@[simp]
theorem IterM.toArray_mapM_filterMapM {α β γ δ : Type w}
{m : Type w → Type w'} {n : Type w → Type w''} {o : T... |
15,417 | lean_file_chunk | 58fbea15ee523ae20d112976fcc078662b0b0de6d342156c7330646dc3b04597 | lean_source_file | lean_toolchain_source_file_chunks | cases step.inflate using PlausibleIterStep.casesOn
· simp [ihy ‹_›]
· simp [ihs ‹_›]
· simp
@[deprecated IterM.length_map (since := "2026-01-28")]
def IterM.count_map := @IterM.length_map
end Count
section AnyAll
theorem IterM.anyM_filterMapM {α β β' : Type w} {m : Type w → Type w'} {n : Type w → Type w''}
... |
18,367 | lean_file_chunk | 7b7e1c8a9db526bd043ca191cf289450bca0af168bac2f22e16765331bb855ad | 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
import Init.Data.Iterators.Lemmas.Combinators.Monadic.FilterMap
public import Init.Data.Iterators.Combinators.Monadic.FlatMap
import all Init.Data.Iter... |
8,908 | lean_file_chunk | 423bcb5e831e7bec63ab8ffba2c036c78bb2787a81393241f80cefdf343b837b | 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.Data.Iterators.Consumers.Monadic.Collect
import all Init.Data.Iterators.Consumers.Monadic.Collect
import all Init.Data.Iterators.Cons... |
23,968 | lean_file_chunk | aa621e4aa5d7e1dbbb3eb289e9410543ed45ebb873b5810d7b4f250175063e1b | 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.Data.Iterators.Consumers.Monadic.Loop
import all Init.Data.Iterators.Consumers.Monadic.Loop
public import Init.Data.Iterators.Consume... |
14,975 | lean_file_chunk | dce944f0d12c1c3edc5ce865080a0d07a6260db311333b367890a4f3c794ae40 | lean_source_file | lean_toolchain_source_file_chunks | rw [toArray_eq_fold, length_eq_fold, ← fold_hom]
· simp only [List.size_toArray, List.length_nil]; rfl
· simp
@[deprecated IterM.up_size_toArray_eq_length (since := "2026-01-28")]
def IterM.up_size_toArray_eq_count := @IterM.up_size_toArray_eq_length
@[simp]
theorem IterM.up_length_toList_eq_length {α β : Type w}... |
22,634 | lean_file_chunk | d7045027476555e5ebcb32ebf013ad7d862e879e415b22805511e38529234b0f | lean_source_file | lean_toolchain_source_file_chunks | /-
Copyright (c) 2021 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Sebastian Ullrich, Leonardo de Moura, Mario Carneiro
-/
module
prelude
public import Init.Control.Lawful.Basic
import all Init.Control.Except
public import Init.Control.Option
... |
1,853 | lean_file_chunk | 4048bf6c7da3ac052afb4df7b2415dac1d61b473d94a825a079389de75404b7f | 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 Init.Control.Lawful.Basic
public import Init.Classical
public import Init.Ext
import Init.ByCases
public section
-- Mapping by a function... |
322 | lean_file_chunk | b0c28417977166ff2b83589c91218a574f8888608f982e8e7961003103defa82 | 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.Control.Lawful.MonadLift.Basic
public import Init.Control.Lawful.MonadLift.Lemmas
public import Init.Control.Lawful.MonadLift.Instanc... |
11,087 | lean_file_chunk | 5bd5f46e23c641c96ae9b6f29a06e8cb8dc0e1f356936fe566b8f5c60dfe38c6 | lean_source_file | lean_toolchain_source_file_chunks | /-
Copyright (c) 2021 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Sebastian Ullrich, Leonardo de Moura, Mario Carneiro
-/
module
prelude
public import Init.Control.Id
public import Init.Grind.Tactics
import Init.Ext
public section
open Func... |
276 | lean_file_chunk | c767ec76cf008812e5760ba55cb72d2b918e1d9bda02a880eb4555ee1f2d5819 | 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.Control.Lawful.MonadAttach.Lemmas
public import Init.Control.Lawful.MonadAttach.Instances |
3,467 | lean_file_chunk | c562cd12533ea6d6b1a225f1241d33ce0c136b44a46a58489cb2d7ddb7f08557 | 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
import Init.Control.Lawful.MonadAttach.Lemmas
public import Init.Control.Lawful.Basic
public import Init.Control.State
public import Init.Control.StateR... |
3,946 | lean_file_chunk | 16d13b1f232e68e0fe9f1e4264fb43e2cf9134461d18305ceda91bcad1348703 | 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
import all Init.Control.MonadAttach
public import Init.Classical
public import Init.Control.Lawful.Basic
public import Init.Control.Lawful.MonadLift.Bas... |
4,212 | lean_file_chunk | 5a72ff3b97312eca3cf1be16bb80d2fc0caa9877a670d1018a00c207d9fce77c | lean_source_file | lean_toolchain_source_file_chunks | /-
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... |
2,711 | lean_file_chunk | 06ccf8775e2ea2dd57b867ba142fee0845e3e4598d7c8db294b1e293ad27b4f4 | lean_source_file | lean_toolchain_source_file_chunks | /-
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... |
1,824 | lean_file_chunk | 9db54b07e65481a5c422311a457890f88c703b1a66f3354adbaff75ee16b85a9 | lean_source_file | lean_toolchain_source_file_chunks | /-
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... |
7,199 | lean_file_chunk | 52d1c81151ff7509efecd5ee40cd7c35ced179b09e6a98b1c7abb80089a2a733 | 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.Grind.Ordered.Linarith
import Init.Data.AC
import Init.Data.Int.DivMod.Lemmas
import Init.Data.Int.LemmasAux
... |
13,147 | lean_file_chunk | 4e9dc4a867e79bc3d37d24e547b22e1a1ebf07bff89339e66a3e09b62021963f | 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: Kim Morrison
-/
module
prelude
public import Init.Grind.Ordered.Module
import all Init.Data.AC
import Init.Omega
import Init.RCases
public section
open Std
name... |
11,037 | lean_file_chunk | fb529806b516ed37a64c759ebb353b1ef88b3e1bb8dca0a61fd2411e8c606a03 | 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.Grind.ToInt
import all Init.Grind.ToInt
public section
namespace Lean.Grind
/--
A type where addition is right-c... |
1,942 | lean_file_chunk | 53b82bd508b32143a6a6007351e83b0daff051789d8249df6b35738ad51095ed | 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.Grind.Module.Envelope
public section
namespace Lean.Grind.IntModule.OfNatModule
open Std
/-!
Support for `Na... |
23,884 | lean_file_chunk | e66b3d20c161ecc72dead20443facf2b34f2eac17aa475d3def45c9c2ee1ba89 | 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.Grind.Ring.Envelope
public import Init.Grind.Ring.CommSolver
import Init.Data.Int.LemmasAux
import Init.Omega... |
19,867 | lean_file_chunk | 72deb1c2a2e9f0f37008f580a6db449ec3a9488f9e4e706418f5df872170ad0a | 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, Kim Morrison
-/
module
prelude
public import Init.Grind.Ordered.Ring
import all Init.Data.AC
import Init.Omega
import Init.RCases
@[expose] pub... |
23,797 | lean_file_chunk | 575e5d430885b2758f596bcffde6596b51e86e2371f0c99b5c7dad01dabb42df | 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.Grind.Module.Basic
import Init.ByCases
import Init.Data.Int.DivMod.Lemmas
import Init.Data.Int.LemmasAux
import Ini... |
779 | lean_file_chunk | 7420100434505bcd5e48dbd5087fa739ec168cb19cbac36fa44468ef9cad4542 | 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.Grind.Ring.Field
public import Init.Data.OfScientific
public section
namespace Lean.Grind
attribute [local insta... |
23,984 | lean_file_chunk | dfb70d4629d7f161ef422cfb20c4234368d19f202b208655000e79727fd1e2af | 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.Data.Ord.Basic
public import Init.Grind.Ring.Field
public import Init.Grind.Ordered.Ring
public import Init.G... |
23,996 | lean_file_chunk | 4dbf24295e088dbf3b180c817364bd05eea54407453584ac1c9c0c13e5a5ef03 | lean_source_file | lean_toolchain_source_file_chunks | def Poly.normEq0 (p : Poly) (c : Nat) : Poly :=
match p with
| .num a =>
bif a % c == 0 then .num 0 else .num a
| .add a m p =>
bif a % c == 0 then normEq0 p c else .add a m (.normEq0 p c)
/-!
**Definitions for the `IsCharP` case**
We considered using a single set of definitions parameterized by `Option... |
23,912 | lean_file_chunk | 7b6e3271efee87e91acef3635cad31192fef21803bd5d1d4ce637f8647867e92 | lean_source_file | lean_toolchain_source_file_chunks | : (mulMonC k m p c).denote ctx = k * m.denote ctx * p.denote ctx := by
simp [mulMonC, cond_eq_ite] <;> split
next =>
rw [← IsCharP.intCast_emod (p := c)]
simp [denote, *, intCast_zero, zero_mul]
next =>
split
next h =>
simp at h; simp [*, Mon.denote, mul_one, denote_mulConstC, IsCharP.intCas... |
8,945 | lean_file_chunk | f8c6c67d8c1a0569c7a739da325568b536a87f8989f540521e04169246af883f | lean_source_file | lean_toolchain_source_file_chunks | theorem inv_int_eqC {α c} [Field α] [IsCharP α c] (b : Int) : b % c != 0 → (denoteInt b : α) * (denoteInt b)⁻¹ = 1 := by
simp; intro h
have : (denoteInt b : α) ≠ 0 := by
simp [denoteInt_eq]; intro h
have := IsCharP.intCast_eq_zero_iff (α := α) c b; simp [*] at this
rw [Field.mul_inv_cancel this]
theorem ... |
9,388 | lean_file_chunk | 792ed524017307f2cb53175c11a12feef42dd55b1890d9600d3d56fbdf5937c1 | 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.Grind.Ring.Basic
public import Init.Data.Nat.Div.Basic
import Init.ByCases
import Init.Omega
import Init.RCases
imp... |
867 | lean_file_chunk | e7010a7e3c3c0d5fb33de75fa418fadd4c5829c86a7c04e4763585f8713c560d | 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.Grind.Ring.Basic
import Init.Conv
import Init.Data.Int.Pow
public section
namespace Lean.Grind
/-- A `ToInt` ins... |
858 | lean_file_chunk | 56cdbb2d0a41585d775948b001e47e4a04689649f3fc7169c6c89ea9d3b2d22d | 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.Grind.Ordered.Ring
public import Init.GrindInstances.Ring.Int
import Init.Omega
public section
/-!
# `grind` inst... |
7,276 | lean_file_chunk | ac00f48b844530fd6e94cdc9cfa4a85c557bdca07bde77c3a0fd23e6f9556f20 | 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.Grind.Module.Basic
public import Init.Data.Order.Classes
public import Init.NotationExtra
import Init.ByCases
impor... |
14,583 | lean_file_chunk | 78dbbbd63f02bc10ede376d82e201733025e801e64c3afb64b4081842591ffd5 | 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.Grind.Ring.Basic
public import Init.Grind.Ordered.Module
import Init.Data.Nat.Lemmas
import Init.Grind.Ordered.Orde... |
935 | lean_file_chunk | 0b74bf1f691ffc572dbfbb9c6cbdac1413b67b027499fc5b1f14a8593c3aa9af | lean_source_file | lean_toolchain_source_file_chunks | /-
Copyright (c) 2025 Robin Arnez. All Rights Reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Robin Arnez
-/
module
prelude
public import Init.Grind.Ordered.Ring
public import Init.GrindInstances.Ring.Rat
public section
/-!
# `grind` instances for `Rat` as an ordered module.
-/... |
2,844 | lean_file_chunk | 19437935b4e7988f0bcfb76ed09a407f650c5dc32e2705cb87bf62e752172bff | 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.Data.Order.Classes
public import Init.Grind.Tactics
import Init.Data.Order.Lemmas
public section
open Std
namesp... |
8,873 | lean_file_chunk | f0d35601da30655e411b087fbd2ff93e14ecd3aca5d6ada9a2b9cee525502d7d | 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.Grind.Ring.Field
public import Init.Grind.Ordered.Ring
import Init.Grind.Ordered.Order
import Init.RCases
public s... |
23,534 | lean_file_chunk | 336ff1aee4322e1e3d86efbf8a3c26ed6a857d9d42c1703c8bb293e7deb84fb2 | 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.Grind.Ordered.Ring
public import Init.Grind.Ring.Field
import all Init.Data.Ord.Basic
import all Init.Data.AC... |
2,100 | lean_file_chunk | 9d99cb4357423d27a46b4b452b333319222c5f99c9315351e8d5633b111f08b2 | 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: Leonardo de Moura, Sebastian Ullrich
-/
module
prelude
public import Lean.Compiler.InitAttr
import Lean.ExtraModUses
public section
namespace Lean
namespace ParserCompiler
struc... |
9,037 | lean_file_chunk | 8b91f54b6406c216556ab18422473518c2666865556b48a53d60826282580d97 | 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: Wojciech Nawrocki
-/
module
prelude
public import Lean.Widget.InteractiveCode
public import Lean.Data.Lsp.Extra
public section
/-! Functionality related to tactic-mode and t... |
12,612 | lean_file_chunk | 5a6131990adc3e58d4ff265e47e7fb9aa7f737c2b6a625e36229c1e6a34edde3 | 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: E.W.Ayers, Wojciech Nawrocki
-/
module
prelude
public import Lean.Elab.Eval
public import Lean.Server.Rpc.RequestHandling
public section
namespace Lean.Widget
open Meta Elab... |
3,568 | lean_file_chunk | c0b84e051ca79b0392c6c71443336c868950fc90b7341811bc40038ff22605a6 | 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: Wojciech Nawrocki
-/
module
prelude
public import Lean.Widget.TaggedText
public import Lean.Widget.Basic
public section
/-! RPC infrastructure for storing and formatting cod... |
11,760 | lean_file_chunk | 77200a67334f7ad472ff16a0ed75308234371a8a2c5a9653658a60f1365ce141 | 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: Wojciech Nawrocki
-/
module
prelude
public import Lean.Server.Utils
public import Lean.Widget.InteractiveGoal
public import Init.Data.Array.Subarray.Split
import Lean.Linter.U... |
4,395 | lean_file_chunk | 983c75dfffe85c0f16a30fc1d0477afd6ffa6863e887fb6a42bcece1cef4d3af | 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: Wojciech Nawrocki
-/
module
prelude
public import Lean.Server.Rpc.Basic
import Init.Data.Array.GetLit
public section
namespace Lean.Widget
open Server
/-- The minimal struc... |
499 | lean_file_chunk | e42cd61bdea789a9df82041b324a34165cdb349a539465e38b3982239314d5f8 | lean_source_file | lean_toolchain_source_file_chunks | /-
Copyright (c) 2022 Wojciech Nawrocki. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Wojciech Nawrocki
-/
module
prelude
public import Lean.Elab.InfoTree
public import Lean.Server.InfoUtils
public section
namespace Lean.Widget
open Elab Server
deriving instance... |
12,595 | lean_file_chunk | 3f0850af7d977c76d99dc607c8c346ad334dcbeef913b2ad4d5ccd5746d8f544 | lean_source_file | lean_toolchain_source_file_chunks | /-
Copyright (c) 2022 E.W.Ayers. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: E.W.Ayers
-/
module
prelude
public import Lean.Widget.InteractiveGoal
namespace Lean.Widget
register_builtin_option showTacticDiff : Bool := {
defValue := true
descr := "When true, ... |
2,450 | lean_file_chunk | 00216bc5d6dfa266c0ffbe5b9505fc08246bede7cd6885973a4d8ec70df2697b | lean_source_file | lean_toolchain_source_file_chunks | /-
Copyright (c) 2023 Wojciech Nawrocki. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Wojciech Nawrocki
-/
module
prelude
public import Lean.Server.Rpc.Basic
public section
namespace Lean.Widget
/-- An instance of a widget component:
the identifier of a widget m... |
4,412 | lean_file_chunk | 4018e19754118ff2594cb57a4313fe5f4c7b8f69167708736edf059dd66576a2 | 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: E.W.Ayers, Wojciech Nawrocki
-/
module
prelude
public meta import Lean.Widget.UserWidget
public import Init.Notation
import Lean.Attributes
public section
namespace Lean.Wid... |
791 | lean_file_chunk | 28a156824ccf16175ac5aef24cbd5d9f23b15a2e81e5b590e694f46c6bbf22af | lean_source_file | lean_toolchain_source_file_chunks | /-
Copyright (c) 2024 Amazon.com, Inc. or its affiliates. All Rights Reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Leonardo de Moura
-/
module
prelude
public import Lean.Util.CollectFVars
public import Lean.Util.FindExpr
public section
namespace Lean.Expr
/-- Returns true if... |
1,149 | lean_file_chunk | 1025d1eceba87ca906e867fb301f8d77033d8e484853ec8c4c97abb9231b2411 | lean_source_file | lean_toolchain_source_file_chunks | /-
Copyright (c) 2020 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Leonardo de Moura
-/
module
prelude
public import Lean.Expr
public section
namespace Lean
namespace Expr
@[extern "lean_find_expr"]
opaque findImpl? (p : @& (Expr → Bool)) (... |
1,255 | lean_file_chunk | f6addbb348498b2e595a6ffe2df59f80d9081c8627d5f8f26ce40bedb96a1d03 | 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.LocalContext
public section
namespace Lean.CollectFVars
structure State where
visitedExpr : ExprSet := {}
fvarSe... |
1,176 | lean_file_chunk | a98b8a141c26cfb97718ee1c06347b6b6c35fa8abd8171ad9769aa9f5f24ef67 | lean_source_file | lean_toolchain_source_file_chunks | /-
Copyright (c) 2020 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Leonardo de Moura
-/
module
prelude
public import Lean.Expr
public section
namespace Lean
namespace CollectMVars
structure State where
visitedExpr : ExprSet := {}
... |
1,820 | lean_file_chunk | 4f57ca7752a1cb88c6b956409fe6a69c18303fbccfeca075d3c830a9bd409a10 | lean_source_file | lean_toolchain_source_file_chunks | /-
Copyright (c) 2025 Lean FRO, LLC. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Kyle Miller
-/
module
prelude
public import Lean.Expr
public section
/-!
# Collecting set of loose bound variables
This module provides a function for collecting the set of loose bv... |
1,801 | lean_file_chunk | c43554639205e2bde0fc8106a9b89f88c840db01cd0e917d18a71dd7e923dc46 | lean_source_file | lean_toolchain_source_file_chunks | /-
Copyright (c) 2024 Amazon.com, Inc. or its affiliates. All Rights Reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Leonardo de Moura
-/
module
prelude
public import Lean.Expr
public import Lean.Util.PtrSet
public section
namespace Lean.Expr
namespace NumApps
unsafe structure... |
1,592 | lean_file_chunk | 1d734671d68efe5d2a4a5c1d9241e71ef65f15558cb142e9eaecaf4baa89798e | lean_source_file | lean_toolchain_source_file_chunks | /-
Copyright (c) 2023 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.Data.Hashable
public import Std.Data.HashSet.Basic
public section
namespace Lean
structure Ptr (α : Type u) where
value ... |
3,440 | lean_file_chunk | ebe71b807b8e9825d968624c36479790e751d8f39e77507eb1171171c9bd0c8c | lean_source_file | lean_toolchain_source_file_chunks | /-
Copyright (c) 2020 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Leonardo de Moura
-/
module
prelude
public import Lean.Expr
public section
namespace Lean
namespace Level
partial def replace (f? : Level → Option Level) (u : Level) : Level... |
3,852 | lean_file_chunk | c2f5b854c865a8e95751e57ec52686d7b99f14a4da3a348ce34b9955531149dd | 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: Marc Huisinga
-/
module
prelude
public import Lean.Data.Json.FromToJson.Basic
public section
namespace Lean
/-- Restriction of `DataValue` that covers exactly those cases that Lean ... |
2,040 | lean_file_chunk | c43be3cbe595f3a4bb061967617036a1336711e3339fa1e4ffb9f8cc7aed7c96 | 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.ShareCommon
public import Std.Data.HashSet.Basic
public import Lean.Data.PersistentHashSet
public section
open ShareCom... |
1,549 | lean_file_chunk | 31e9250b421a7ed6a1ef759efb54ea87c41cc2c43c59d7119b9604891ee57e2d | lean_source_file | lean_toolchain_source_file_chunks | /-
Copyright (c) 2022 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Leonardo de Moura
-/
module
prelude
public import Lean.Expr
public import Std.Data.HashMap.Raw
public section
namespace Lean
structure HasConstCache (declNames : Array Name)... |
6,073 | lean_file_chunk | a2b5e76e880c22a22fa9b8f8d3efb7555c43b33775aa714756635eb176b81625 | 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.While
public import Init.Data.Range.Polymorphic
namespace Lean.Util.ParamMinimizer
/-!
A very simple paramete... |
844 | lean_file_chunk | 8435be08af3292cfd74ad4e11862e8e1b6c54af02540c7aed2e4b36e9b2116da | lean_source_file | lean_toolchain_source_file_chunks | /-
Copyright (c) 2025 Amazon.com, Inc. or its affiliates. All Rights Reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Leonardo de Moura
-/
module
prelude
public import Lean.Expr
public section
namespace Lean
abbrev Perm := Std.HashMap Nat Nat
/--
Sorts the given expressions us... |
3,167 | lean_file_chunk | a5175a1f1f0957e978385de050e4fb5c02093c2bcf76e7f56852263494452de4 | lean_source_file | lean_toolchain_source_file_chunks | /-
Copyright (c) 2020 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Leonardo de Moura
-/
module
prelude
public import Std.Data.HashMap.Basic
public import Init.Data.Option.Coe
public section
namespace Lean.SCC
/-!
Very simple implementation... |
1,511 | lean_file_chunk | 28ab6a95c5f6054793769964ed4a1854e17b3d85ea88ef5600bc380444cb0d1b | lean_source_file | lean_toolchain_source_file_chunks | /-
Copyright (c) 2019 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Leonardo de Moura
-/
module
prelude
public import Lean.Util.FindExpr
public import Lean.Declaration
public section
namespace Lean
/-- Returns `true` if the expression is an ... |
1,848 | lean_file_chunk | 3c3b9d6a5ace05df5ed46232f31953e9d3ff68de065665a584e876388ba061c0 | lean_source_file | lean_toolchain_source_file_chunks | /-
Copyright (c) 2024 Lean FRO, LLC. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Kyle Miller
-/
module
prelude
public import Lean.Expr
public section
namespace Lean
namespace CollectLevelMVars
structure State where
visitedLevel : LevelSet := {}
visited... |
2,044 | lean_file_chunk | 60bca213114df7aab76b28926c301f31ae46048619cf1ac4c429c05625902464 | lean_source_file | lean_toolchain_source_file_chunks | /-
Copyright (c) 2019 Sebastian Ullrich. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Author: Sebastian Ullrich
-/
module
prelude
public import Init.Data.OfScientific
public import Lean.Data.Options
public section
namespace Lean
register_builtin_option profiler : Bool := ... |
7,283 | lean_file_chunk | caff3199f3b40888ec5b04473928227a35e486a9a6e0f06f0fdc78566e4d3e02 | 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
Management of the Lean search path (`LEAN_PATH`), which is a list of
paths containing package roots: an import `A.B.C` resolves to
`path/A/... |
17,702 | lean_file_chunk | 99ae929cabcd97e04ec75e82563a592bf787c3e030981bdf891e1d77e772391b | lean_source_file | lean_toolchain_source_file_chunks | /-
Copyright (c) 2018 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Sebastian Ullrich, Leonardo de Moura
-/
module
prelude
public import Lean.Elab.Exception
public import Lean.Log
public section
/-!
# Trace messages
Trace messages explain to... |
1,628 | lean_file_chunk | 571e2391cbbd5f0c8f66041c6ba3b2b10c486a53d96f4cfe65d6708049d6b6dc | 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.MetavarContext
public section
namespace Lean
/--
Return true if `e` does **not** contain `mvarId` directly or indire... |
7,773 | lean_file_chunk | 83979143114d1b48fecbc43f10e8e9b35a44e1bbafc22361d1ffa3d22db46bcb | lean_source_file | lean_toolchain_source_file_chunks | /-
Copyright (c) 2024 Lean FRO, LLC. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: David Thrane Christiansen
-/
module
prelude
public import Init.Data.Array.Subarray.Split
public import Init.Data.Slice.Array.Iterator
public import Init.Data.Range
public import Std.Da... |
1,556 | lean_file_chunk | 19636891874b51aa081d5c8ad4f62d13e2251178b9c84b0ea857809f2bca6afa | lean_source_file | lean_toolchain_source_file_chunks | /-
Copyright (c) 2021 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Daniel Selsam
-/
module
prelude
public import Lean.Expr
public section
namespace Lean
namespace FindLevelMVar
abbrev Visitor := Option LMVarId → Option LMVarId
mutual
pa... |
1,358 | lean_file_chunk | 15e8a6e89d7c7a0c4cee9a5448f3a639fe00a77c5270f0779e513d0b96df56c4 | lean_source_file | lean_toolchain_source_file_chunks | /-
Copyright (c) 2024 Amazon.com, Inc. or its affiliates. All Rights Reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Leonardo de Moura
-/
module
prelude
public import Lean.Expr
public import Lean.Util.PtrSet
public section
namespace Lean.Expr
namespace NumObjs
unsafe structure... |
2,311 | lean_file_chunk | 63bc7772c9f97f0f36e0c39e8e99121c35eec502f736bb298a2edc60affc9535 | 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.Control.Except
public import Init.Control.Do
public import Init.Data.Option.Coe
public section
namespace Lean
/-- Simi... |
1,834 | lean_file_chunk | 60a4e440621456280d392bab831bf663147d5e151855779673ffbd976d1ad19c | 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: Kim Morrison
-/
module
prelude
public meta import Lean.Elab.Command
public import Init.Notation
import Lean.Exception
/-!
# The `reprove` command
This command reproves a list of declarati... |
1,872 | lean_file_chunk | b0a42f7381be64fe4c066fb7287f2967eb34fa7f04be512fc106f4dae6605683 | lean_source_file | lean_toolchain_source_file_chunks | /-
Copyright (c) 2023 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Author: Kim Morrison
-/
module
prelude
public import Lean.CoreM
public section
/-!
# Heartbeats
Functions for interacting with the deterministic timeout heartbeat mechanism.
-/
name... |
1,052 | lean_file_chunk | b7aa3c4ce361faf3f72f1199494b3e51b2125e78328ac0b971ca4905bf785b63 | lean_source_file | lean_toolchain_source_file_chunks | /-
Copyright (c) 2020 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Leonardo de Moura
-/
module
prelude
public import Lean.Expr
public section
namespace Lean
namespace FindMVar
abbrev Visitor := Option MVarId → Option MVarId
mutual
parti... |
6,668 | lean_file_chunk | cc414feca7dd8e072768dc461995169031df62384d09478de1d151a30ebe7725 | 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.MonadEnv
namespace Lean
namespace CollectAxioms
structure State where
/-- Cache mapping constants to their (sorted) ... |
401 | lean_file_chunk | f3f83a1c106c22bd58d099711298f4552a3dd1e271fc40cd1bb1da5407bfc608 | 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.Data.Options
public section
namespace Lean
register_builtin_option maxRecDepth : Nat := {
defValue := defaultMaxRecD... |
2,292 | lean_file_chunk | 238542ff31eeea63b7b032c96f6264159f386ccb46500079cff8f57972640c31 | lean_source_file | lean_toolchain_source_file_chunks | /-
Copyright (c) 2020 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Leonardo de Moura
-/
module
prelude
public import Lean.Expr
public section
namespace Lean
namespace CollectLevelParams
structure State where
visitedLevel : LevelSet := ... |
4,632 | lean_file_chunk | eac3e33d8e278f7a892f00fd0949f14a8ee316edae356af1a64785d4405b12b5 | lean_source_file | lean_toolchain_source_file_chunks | /-
Copyright (c) 2020 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Author: Leonardo de Moura
-/
module
prelude
public import Lean.Elab.InfoTree.Types
import Init.Data.Format.Macro
public section
namespace Lean
register_builtin_option pp.raw : Bool :=... |
2,318 | lean_file_chunk | 4ec5afc4b0f8fe132c8c6010e316fab3245f18f0a68389fbe16d9040a8d31122 | 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.PtrSet
public import Lean.Declaration
public section
namespace Lean
namespace Expr
namespace FoldConstsImpl
unsaf... |
1,330 | lean_file_chunk | 2f8f9dcfc9d998a01a5089d732f26363b4f422824ebaeb53f87f54438c4c590c | lean_source_file | lean_toolchain_source_file_chunks | /-
Copyright (c) 2024 Amazon.com, Inc. or its affiliates. All Rights Reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Leonardo de Moura
-/
module
prelude
public import Lean.CoreM
public section
namespace Lean
register_builtin_option exponentiation.threshold : Nat := {
defValu... |
16,761 | lean_file_chunk | 72429bc2c5e8eaf4c908827022e296c84bfe38d6e17cfb3be664e747570356ca | 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 Lean.Util.Trace
import Init.Data.Range.Polymorphic.Iterators
public section
/-! `trace.profiler.output` Firefox Profiler integration... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.