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 |
|---|---|---|---|---|---|
362 | lean_file_chunk | 00322f976bc0a4e4c88e5eafcec2cc358c0d8c79ef0290d4fee9e25e26539def | 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.
Author: Markus Himmel
-/
module
prelude
public import Init.Data.String.Lemmas.Pattern.String.Basic
public import Init.Data.String.Lemmas.Pattern.String.ForwardPattern
public import Init.Data.St... |
338 | lean_file_chunk | 3d6abda75cd612790e20f087991416cff960db7abe33fe6ca949c38ac2182bd0 | 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.
Author: Markus Himmel
-/
module
prelude
public import Init.Data.String.Lemmas.Pattern.Split.Basic
public import Init.Data.String.Lemmas.Pattern.Split.Char
public import Init.Data.String.Lemmas.... |
3,001 | lean_file_chunk | 7254a7998d13984237552fb4682b57693c351a284b410d13aeac205be54e0a18 | 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: Markus Himmel
-/
module
prelude
public import Init.Data.String.Pattern.Basic
import all Init.Data.String.Pattern.Basic
import Init.Data.ByteArray.Lemmas
import Init.ByCases
import Init... |
23,908 | lean_file_chunk | 6897ffe8dcca54c911fbce762ae5c8b4e940dc07e64d66a1c49b00d402ebf18b | 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: Markus Himmel
-/
module
prelude
public import Init.Data.String.Pattern.Basic
public import Init.Data.String.Lemmas.Splits
public import Init.Data.Iterators.Consumers.Collect
import all... |
12,312 | lean_file_chunk | 6e4c715bc6deb1f707a5b8d540980e9f06e9cf30a3d63333605401eefe9da093 | lean_source_file | lean_toolchain_source_file_chunks | skipPrefix?_eq_some_iff (pos) : ForwardPattern.skipPrefix? pat s = some pos ↔ IsLongestMatch pat pos
theorem LawfulForwardPatternModel.skipPrefix?_sliceFrom_eq_none_iff {ρ : Type} {pat : ρ} [ForwardPattern pat] [PatternModel pat]
[LawfulForwardPatternModel pat] {s : Slice} {p₀ : s.Pos} :
ForwardPattern.skipPre... |
20,812 | lean_file_chunk | ce057b3b4e8a6038886c2b7cac3ff247385d6a8307858d47771bedf12c5e04ac | 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: Markus Himmel
-/
module
prelude
public import Init.Data.String.Pattern.Pred
public import Init.Data.String.Lemmas.Pattern.Basic
public import Init.Data.String.Slice
public import Init.... |
410 | lean_file_chunk | 7a585428afbb3ae1959ca0c93fdacff0aacbe46ec13a88802cb372466ec9331c | 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: Markus Himmel
-/
module
prelude
public import Init.Data.String.Lemmas.Pattern.TakeDrop.Basic
public import Init.Data.String.Lemmas.Pattern.TakeDrop.Char
public import Init.Data.String.... |
14,970 | lean_file_chunk | fcfbd52d82664c0967aa8b280c18d91ab2c91917fe3e3b621cd475688cb447cc | 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: Markus Himmel
-/
module
prelude
public import Init.Data.String.Pattern.Char
public import Init.Data.String.Lemmas.Pattern.Basic
public import Init.Data.String.Slice
public import Init.... |
394 | lean_file_chunk | 0300449d048449ae04089f41473f24beafc9474d8f4705029fd26dc2bf9bde53 | 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: Markus Himmel
-/
module
prelude
public import Init.Data.String.Lemmas.Pattern.Find.Basic
public import Init.Data.String.Lemmas.Pattern.Find.Char
public import Init.Data.String.Lemmas.P... |
9,315 | lean_file_chunk | fc8d906e6223e17838f3eccc18ba2d994a7b0521ab5786769ca3ed1fd1abc79c | 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.
Author: Markus Himmel
-/
module
prelude
public import Init.Data.String.Lemmas.Pattern.Basic
public import Init.Data.String.Slice
public import Init.Data.String.Search
import all Init.Data.Strin... |
5,167 | lean_file_chunk | bbe4cc8481335ca2761c103b2c4e7ee78d3c18d701f063c234f3ee43d27201b2 | 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.
Author: Markus Himmel
-/
module
prelude
public import Init.Data.String.Slice
public import Init.Data.String.Search
public import Init.Data.List.SplitOn.Basic
public import Init.Data.String.Lemm... |
3,730 | lean_file_chunk | 7a5d8c37ef3a6985ab80a7c72412d04498e1c8b2de4074ea900d4dec5632aee0 | 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.
Author: Markus Himmel
-/
module
prelude
public import Init.Data.String.Slice
public import Init.Data.String.Search
public import Init.Data.List.SplitOn.Basic
public import Init.Data.String.Lemm... |
10,738 | lean_file_chunk | d0671d899c90210132700bb5c1fa21bd63b6f901ef0e9ca736176d0c141615b0 | 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.
Author: Markus Himmel
-/
module
prelude
public import Init.Data.String.Slice
public import Init.Data.String.TakeDrop
public import Init.Data.String.Lemmas.Splits
import Init.Data.String.Lemmas.... |
7,582 | lean_file_chunk | 89573a3c63d2a692c06097164debb2f618876fae3857e5278735bfd8890450cf | 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.
Author: Markus Himmel
-/
module
prelude
public import Init.Data.String.Slice
public import Init.Data.String.TakeDrop
public import Init.Data.String.Lemmas.Pattern.Basic
import all Init.Data.Str... |
11,036 | lean_file_chunk | 7d0a8101ee4c23976cf8e3c0200e5f5ccc6cebbfca263def523d01170db4693a | 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.
Author: Markus Himmel
-/
module
prelude
public import Init.Data.String.Slice
public import Init.Data.String.TakeDrop
import Init.Data.String.Lemmas.Pattern.TakeDrop.Basic
import Init.Data.Strin... |
7,415 | lean_file_chunk | 2ffb74240cc12b30152c7ec05ada25ab3cbd39f34c214f2563afab3eb4d1b09e | 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.
Author: Markus Himmel
-/
module
prelude
public import Init.Data.String.Slice
public import Init.Data.String.TakeDrop
import Init.Data.String.Lemmas.Pattern.TakeDrop.Basic
import Init.Data.Strin... |
12,315 | lean_file_chunk | fc29ee72acb2b34fe0b068774235d62c1ed6d27b4f2aa586ad52745fa9b3cc7d | 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.
Author: Markus Himmel
-/
module
prelude
public import Init.Data.String.Lemmas.Pattern.String.Basic
public import Init.Data.String.Pattern.String
public import Init.Data.String.Slice
import all ... |
23,999 | lean_file_chunk | 55e37d6a2983d300016ed2890ed1b70e27bc10a945051586cc09e0823322d475 | 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.
Author: Markus Himmel
-/
module
prelude
public import Init.Data.String.Pattern.String
public import Init.Data.String.Lemmas.Pattern.Basic
import Init.Data.String.Lemmas.IsEmpty
import Init.Data... |
23,960 | lean_file_chunk | 25ec515932d23ad08b2b48265bc95114c08ceab3599c4a31346f1b1fabb6ed73 | 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: Markus Himmel
-/
module
prelude
public import Init.Data.String.Lemmas.Pattern.String.Basic
public import Init.Data.String.Pattern.String
public import Init.Data.String.Slice
public imp... |
6,072 | lean_file_chunk | c2803ee9124d6d37ec18f5a4e9ea364a2132db38df5017f2bb32d4c71f16b167 | lean_source_file | lean_toolchain_source_file_chunks | · exact ihy plausible (.offset h.isEmpty_eq_false) rfl rfl
· have := h.partialMatch.needlePos_le_stackPos
simp only [Pos.Raw.ext_iff, Pos.Raw.byteIdx_zero, base, lt_posGE_iff, offset_pos,
Pos.Raw.lt_iff, Pos.Raw.byteIdx_unoffsetBy, gt_iff_lt] at ⊢ h₃
omega
· sim... |
3,624 | lean_file_chunk | 8e959e8ec7257adac2c4111252604c167d49cbf0a44a5e883293a13cddd4af3f | 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: Markus Himmel
-/
module
prelude
public import Init.Data.String.Search
import all Init.Data.String.Slice
import all Init.Data.String.Pattern.String
import Init.ByCases
import Init.Data.... |
6,845 | lean_file_chunk | c18e21cff9760dd8c4de230e851ea9616708eefbc2acdd4ebc7ad379f157777f | 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: Markus Himmel
-/
module
prelude
public import Init.Data.String.Slice
public import Init.Data.String.Search
public import Init.Data.String.Lemmas.Pattern.Basic
import all Init.Data.Stri... |
14,984 | lean_file_chunk | 540064b284c4c8a4c980e396c9bbd39fe5c4def449154a1f788dd6412e7be378 | 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: Markus Himmel
-/
module
prelude
public import Init.Data.String.Slice
public import Init.Data.String.Search
public import Init.Data.String.Lemmas.Splits
import all Init.Data.String.Slic... |
9,097 | lean_file_chunk | 6b0745456ed10687f633e116c80e17ec7954b7126d306e8b64e41648ae55de2d | 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: Markus Himmel
-/
module
prelude
public import Init.Data.String.Slice
public import Init.Data.String.Search
public import Init.Data.String.Lemmas.Splits
import Init.Data.String.Lemmas.P... |
6,289 | lean_file_chunk | d52dc53f604fc3000fc2506440a9981406c8db119eabe23e194cfaebdd762002 | 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.Range.Polymorphic.Basic
import Init.Data.Nat.Lemmas
import Init.ByCases
import Init.Data.Option.Lemmas
import Init.Omega
/-!
Th... |
2,748 | lean_file_chunk | cb3be7b2c7934f95a243c3a055e84c4d4217e3cf95da74e232073288e77fcbc9 | 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: Markus Himmel
-/
module
prelude
public import Init.Data.Range.Polymorphic.Instances
public import Init.Data.Fin.OverflowAware
import Init.Grind
import Init.Data.Fin.Lemmas
import Init.... |
1,724 | lean_file_chunk | 19c67568eccd158414f04597ece2fa3ff28db27c41c99cf0aae657c59b06b736 | 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.Range.Polymorphic.Instances
import Init.Omega
public section
namespace Std.PRange
instance : UpwardEnumerable Int where
suc... |
23,984 | lean_file_chunk | a28972dad8bc8b006967681414d97cd0451f2477e66a630374ee41f897871309 | 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.Consumers.Collect
import all Init.Data.Range.Polymorphic.Basic
import all Init.Data.Range.Polymorphic.RangeIterator
pu... |
23,971 | lean_file_chunk | e685f2272cc685618762340a0fc4fce6d57443d31c5a65f2208c2c7550b1cc19 | lean_source_file | lean_toolchain_source_file_chunks | · apply ihy (out := a)
simp_all [Rxo.Iterator.isPlausibleStep_iff, Rxo.Iterator.step]
theorem Rxo.Iterator.nodup_toList [LT α] [DecidableLT α]
[PRange.UpwardEnumerable α] [Rxo.IsAlwaysFinite α] [PRange.LawfulUpwardEnumerable α]
[PRange.LawfulUpwardEnumerableLT α]
{it : Iter (α := Rxo.Iterator α) α} :
... |
23,922 | lean_file_chunk | 7029eed9fe469a11dc848dc5a742700f26778c3f73bf463e54b43e3d9e03f4f1 | lean_source_file | lean_toolchain_source_file_chunks | [UpwardEnumerable α] [LawfulUpwardEnumerableLT α] [LawfulUpwardEnumerableLE α]
[Rxo.IsAlwaysFinite α] [LawfulUpwardEnumerable α]
{m : Type u → Type w} [Monad m] [LawfulMonad m]
{γ : Type u} {init : γ} {f : (a : α) → _ → γ → m (ForInStep γ)} :
ForIn'.forIn' r init f = if hu : r.lower < r.upper then do
... |
23,951 | lean_file_chunk | aa15c9e9703296f222b8cefce8a6dbcec9643dc1975ce1976eaf472a155ffb67 | lean_source_file | lean_toolchain_source_file_chunks | [LawfulUpwardEnumerable α] [LawfulUpwardEnumerableLT α] [Rxo.IsAlwaysFinite α] :
r.toList = match UpwardEnumerable.succ? r.lower with
| none => []
| some next =>
if next < r.upper then
next :: (next<...<r.upper).toList
else
[] := by
rw [Internal.toList_eq_toList_ite... |
23,940 | lean_file_chunk | 254dcd43c9144338fd2e97c2fd24f939fb9cc95cae4d18899fab8029c0466c16 | lean_source_file | lean_toolchain_source_file_chunks | public theorem toArray_eq_toArray_rcc [LE α] [DecidableLE α] [Least? α] [UpwardEnumerable α]
[LawfulUpwardEnumerable α] [LawfulUpwardEnumerableLE α] [LawfulUpwardEnumerableLeast? α]
[Rxc.IsAlwaysFinite α] :
r.toArray = ((UpwardEnumerable.least (hn := ⟨r.upper⟩))...=r.upper).toArray := by
simp [← toArray_t... |
23,980 | lean_file_chunk | b00acccf9c0cd3e734dfcd267a5f54d8b71d0de4c721078b22e3bb49a51e6e71 | lean_source_file | lean_toolchain_source_file_chunks | simp [← hn, UpwardEnumerable.lt_succ_iff, UpwardEnumerable.least_le]
| n + 1 =>
rw [succMany?_eq_some_iff_succMany, UpwardEnumerable.succMany_add_one_eq_succMany_succ,
← succMany?_eq_some_iff_succMany] at hn
exact hle.elim ⟨n, hn⟩
public theorem toArray_succ_eq_map [LT α] [DecidableLT α... |
23,995 | lean_file_chunk | 49627aab00a7f4dc3fecc147f07d7d6b54087cb40b178d5bea2d8ef296fc95ed | lean_source_file | lean_toolchain_source_file_chunks | simp [Array.getElem_eq_getElem?_get, getElem?_toArray_eq]
theorem eq_succMany?_of_toList_eq_append_cons [LE α] [DecidableLE α]
[UpwardEnumerable α] [LawfulUpwardEnumerable α] [LawfulUpwardEnumerableLE α]
[Rxc.IsAlwaysFinite α] {pref suff : List α} {cur : α} (h : r.toList = pref ++ cur :: suff) :
cur = (Upw... |
19,303 | lean_file_chunk | 8420e72fab885eed88574b9eaa896790607d6af865e25c0092de918149deb69b | lean_source_file | lean_toolchain_source_file_chunks | r.size =
match Least?.least? (α := α) with
| none => 0
| some next =>
if next < r.upper then
(next<...r.upper).size + 1
else
0 := by
rw [size_eq_match_rcc]
simp [Rco.size_eq_if_roo]
@[simp]
public theorem length_toList [Least? α] [LT α] [DecidableLT α] [UpwardE... |
2,066 | lean_file_chunk | 0b58c00c42af6b04f9d4e6e52850c655116af38a875e302c0db91a91914d429e | 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 meta import Init.Grind.Tactics
public import Init.Data.Range.Polymorphic.Basic -- shake: keep (macro output dependency)
public import Init.Data.... |
4,784 | lean_file_chunk | d7780a46ff5306dc0261ba6e39ad521121a9b66c4c85579c3ab38b5d979a1a3c | 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.Nat.Lemmas
public import Init.Data.Range.Polymorphic.Instances
import Init.Data.Nat.MinMax
import Init.Omega
import Init.RCases
set_op... |
23,967 | lean_file_chunk | 876daa2deffaf1e52c6d9b075f64b3ef749c108218797b5760e66425f8a46b5d | 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.Consumers.Monadic.Loop
public import Init.Data.Range.Polymorphic.PRange
public import Init.Data.Iterators.Consumers.Mo... |
23,983 | lean_file_chunk | 3ce8f902d0876f3f811a10c2a9c3f093fb3afe3bff3fd54a352bf7898eb4bc19 | lean_source_file | lean_toolchain_source_file_chunks | -- `Iterator.IsPlausibleStep` is reducible and it reduces to `Monadic.step`, but `Monadic.step`
-- is semireducible, and `simp` isn't able to unfold `Monadic.step` inside `Iterator.IsPlausibleStep`,
-- since that one only appears in the type of a constant -- I think?
simp [Monadic.step]
· simp
termi... |
20,141 | lean_file_chunk | 6c9d43780d5a108cca71f275b3bc32b589ccad070fa7a8a66c5e2824ed5be730 | lean_source_file | lean_toolchain_source_file_chunks | · apply IterM.DefaultConsumers.forIn'_eq_forIn' Pl wf <;> (intros; rfl)
· simp
· simp
· rw [IterM.DefaultConsumers.forIn'_eq_match_step Pl wf]
simp [IterM.step_eq, Monadic.step, instLawfulMonadLiftFunction.liftBind_pure, *]
· simp
termination_by IteratorLoop.WithWF.mk ⟨⟨some next, upperBou... |
4,225 | lean_file_chunk | 3f36a7b281e4709ff9ada51b07a628a5e805c05b69273966e85fa24331cc2123 | 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.Range.Polymorphic.Instances
import Init.Omega
import Init.Data.BitVec.Bootstrap
import Init.Data.BitVec.Lemmas
import Init.Data.... |
23,966 | lean_file_chunk | c9914bd3ad491b16fe4ee20a3f4f1487bf5cb8ca5deab130484b6b696562085e | 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.Order.Classes
public import Init.Classical
import Init.Data.Option.Lemmas
public section
namespace Std.PRange
/--
This typecl... |
691 | lean_file_chunk | 72d10783425f2db20c4302b1fe2f465345a843ed32117eaeed1ceecbe613e8ea | lean_source_file | lean_toolchain_source_file_chunks | [LawfulUpwardEnumerableLeast? α] [hn : Nonempty α] :
least? (α := α) = some least := by
simp [least]
theorem UpwardEnumerable.isSome_least?_iff {α : Type u} [UpwardEnumerable α] [Least? α]
[LawfulUpwardEnumerableLeast? α] :
(least? (α := α)).isSome ↔ Nonempty α := by
constructor
· simp only [Option.i... |
23,977 | lean_file_chunk | 785b45b40c2bc9aa40213e156b18476cbcb38b222d369090c2d311bee87569a2 | 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.Range.Polymorphic.Instances
public import Init.Data.SInt
import all Init.Data.SInt.Basic
import all Init.Data.Range.Polymorphic... |
4,703 | lean_file_chunk | 0b17c930f39994a747adb232f571b6ff12b5edfbd0e8b6264a9d3b022847e7ad | lean_source_file | lean_toolchain_source_file_chunks | instRxiHasSize = HasModel.instRxiHasSize := by
simp only [instRxiHasSize, HasModel.instRxiHasSize, Rxi.HasSize.size, ← toInt_toBitVec,
HasModel.encode, HasModel.toNat_two_pow_sub_one_sub_toInt (show 64 > 0 by omega)]
public instance instRxiLawfulHasSize : Rxi.LawfulHasSize Int64 := by
rw [instUpwardEnumerable_... |
8,535 | lean_file_chunk | 5e0c5fa61fd7a6d5c4e8ca0d48fa5db8532d3cd1e0f9319073e8f5262612845b | 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: Markus Himmel
-/
module
prelude
public import Init.Data.Function
import Init.Data.Order.Lemmas
import Init.Data.Option.Function
public import Init.Data.Range.Polymorphic.Basic
import I... |
23,971 | lean_file_chunk | e12ac254f92acd5bc3889a299e0d698a2a5e147de62f72e49332bc3670add19e | 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.Range.Polymorphic.RangeIterator
public import Init.Data.Range.Polymorphic.Basic
public import Init.Data.Iterators.Consumers.Coll... |
1,215 | lean_file_chunk | b1b17a32de326554258b640d863c8f5a0848a32435ee0b059d84c1ae8cb494e2 | lean_source_file | lean_toolchain_source_file_chunks | Returns the number of elements contained in the full range.
-/
@[always_inline, inline]
def size (_ : Rii α) [Least? α] [Rxi.HasSize α] : Nat :=
match Least?.least? (α := α) with
| none => 0
| some least => Rxi.HasSize.size least
section Iterator
theorem Internal.isPlausibleIndirectOutput_iter_iff
[UpwardEn... |
13,711 | lean_file_chunk | 0e7142851454e68dbec420397918f3788a9cd64e9a1d144be21c0f7eeb28dea1 | 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.Range.Polymorphic.PRange
public import Init.Data.Option.Instances
set_option doc.verso true
public section
namespace Std
open... |
16,569 | lean_file_chunk | 66c8ab17afdf0896951a8f64e2edb40e00127add482b4c810ded959251033d2f | 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.Range.Polymorphic.UpwardEnumerable
set_option doc.verso true
set_option linter.missingDocs true
public section
namespace Std
... |
23,952 | lean_file_chunk | ab781d31fc397fb72eb3ea0cae05cd8250b6be7c01063d3784677403cd1b49a5 | 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.Range.Polymorphic.Nat
public import Init.Data.List.BasicAux
public import Init.Data.Range.Polymorphic.Iterators
import Init.ByCa... |
23,976 | lean_file_chunk | f9048a093fcc94eae18baf7e0ab584db469e005e7f6fc0cc827f711288e98664 | lean_source_file | lean_toolchain_source_file_chunks | (m...=n).toList[i]? = if i < n + 1 - m then some (m + i) else none := by
simp [toList_rcc_eq_toList_rco, getElem?_toList_rco]
@[simp]
theorem getElem?_toList_rcc_eq_some_iff {m n i : Nat} :
(m...=n).toList[i]? = some k ↔ i < n + 1 - m ∧ m + i = k := by
simp [toList_rcc_eq_toList_rco, getElem?_toList_rco, eq_co... |
23,986 | lean_file_chunk | 54cc393e9f07f96adce25babe17bd413121e63cc0ccd99503edfc2bc13686d39 | lean_source_file | lean_toolchain_source_file_chunks | In the {name}`step` case, one proves that for any {given}`a : Nat` and {given}`b : Nat`, if the
statement holds for {lean}`a<...b`, it also holds for the larger range {lean}`a<...(b + 1)`.
The following is an example reproving {name}`length_toList_roo`.
```lean
example (a b : Nat) : (a<...b).toList.length = b - a - 1... |
14,042 | lean_file_chunk | d4a20dd5a74fb0eb979b5d58487e337e6d8133b660a9d0ea0b8a9875d9a01df9 | lean_source_file | lean_toolchain_source_file_chunks | theorem getElem?_toArray_rio {n i : Nat} :
(*...n).toArray[i]? = if i < n then some i else none := by
simp [toArray_rio_eq_toArray_rco, getElem?_toArray_rco]
@[simp]
theorem getElem?_toArray_rio_eq_some_iff {n i : Nat} :
(*...n).toArray[i]? = some k ↔ i < n ∧ i = k := by
simp [toArray_rio_eq_toArray_rco]
... |
2,279 | lean_file_chunk | a28ed7ec81fa4fabf117f7fa48e4eb7dcd165b55f1e93facf3d779f523a2150b | 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.
Author: Markus Himmel
-/
module
prelude
public import Init.Data.Char.Ordinal
public import Init.Data.Range.Polymorphic.Fin
import Init.Data.Range.Polymorphic.Map
import Init.Data.Char.Order
imp... |
18,761 | lean_file_chunk | 0fb918db3b958b605fffae646f1dd1e3d7f7c565afc97d2d48a7fc294ddbebd6 | 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.Range.Polymorphic.BitVec
public import Init.Data.UInt
import Init.ByCases
import Init.Data.BitVec.Lemmas
import Init.Data.Option... |
1,511 | lean_file_chunk | f01cf8e10516efcc29bf08deb9a1cf599b15d5ec4398095070ab68524f43c09f | 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.Range.Polymorphic.Iterators
public import Init.Data.Stream
public section
open Std.Iterators
namespace Std.PRange
instance {... |
23,980 | lean_file_chunk | 076f0d182582134e969375a28c8224f5c698c67c5dfc06f19b59fa4edaa47ff9 | 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: Alexander Bentkamp
-/
module
prelude
public import Init.Data.Range.Polymorphic.Int
public import Init.Data.List.BasicAux
public import Init.Data.Range.Polymorphic.Iterators
import Init... |
23,988 | lean_file_chunk | 915d6bbf2b9e08c01a3e50116cb56f57a776d7fbd2595f2a7231eda15a67ec4f | lean_source_file | lean_toolchain_source_file_chunks | (m...=n).toArray = #[] ↔ n < m := by
simp [toArray_rcc_eq_toArray_rco, Int.add_one_le_iff]
theorem toArray_rcc_ne_empty_iff {m n : Int} :
(m...=n).toArray ≠ #[] ↔ m ≤ n := by
simp [toArray_rcc_eq_toArray_rco, Int.add_one_le_iff]
@[simp 1001]
theorem toArray_rcc_eq_empty {m n : Int} (h : n < m) :
(m...=n).... |
12,866 | lean_file_chunk | a8af2d3d9c83bb74d606db8ab6f615e9c50e03cfc6c70b5a89a9a9f2c3c12ab1 | lean_source_file | lean_toolchain_source_file_chunks | theorem map_add_toList_roc {m n k : Int} :
(m<...=n).toList.map (· + k) = ((m + k)<...=(n + k)).toList := by
simp [toList_roc_eq_toList_rco, map_add_toList_rco, show ∀ l, l + 1 + k = l + k + 1 by omega]
theorem map_add_toList_roc' {m n k : Int} :
(m<...=n).toList.map (k + ·) = ((k + m)<...=(k + n)).toList :=... |
14,002 | lean_file_chunk | 66f222266bdd0017e00445620a8336f03c1aa1652d61610a35dc68359fbbf16a | 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.BitVec.Bootstrap
public import Init.Data.BitVec.Lemmas
public import Init.Data.Int.DivMod.Lemmas
public import Init.Data.Int.Pow... |
820 | lean_file_chunk | 649a8811f4e20a155a4c401381eb5b521cbf0c1b95537530084a9651a5e7a6b9 | 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
@[expose] public section
open Std Std.Iterators Std.Iterators.Types
/-!
# List iterator
Thi... |
224 | lean_file_chunk | 4a132435654fc7dd02bd71e44f932b8b826da9492aa431775e9a11109a0d6183 | 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 |
4,838 | lean_file_chunk | 1c6c6102ff2c3473ee863d6b257004760e57adef5ba0734e79c363028149c78e | 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
public section
/-!
# Typeclass for lawful monad lifting functions
This module provides a typeclass `Lawfu... |
2,421 | lean_file_chunk | 2d12dff306bce51e2f2d7e118842885b643841d76c7a2f3a9d358ae1982b0c0b | 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 section
namespace Std
open Std.Iterators Std.Iterators.Types
/--
Given two iterat... |
1,679 | lean_file_chunk | 00bbad937eab13cc30381c510801785a0326adaae9c1320fbe203038a691e3c4 | 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
@[expose] public section
namespace Std
open Std.Iterators Std.Iterators.Types
/--
Given an... |
473 | lean_file_chunk | c1f77f5a7a3c31a2b075c5abc31a2262c4fffcfa4bedf9ff5946743d307f5840 | 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.Append
public import Init.Data.Iterators.Combinators.Monadic.FilterMap
public import Init.Data.Ite... |
1,467 | lean_file_chunk | b17c90aca1da8c5f8ce8c077f8fb5ba2173a82d69003fb73084fa1aebabe5ea9 | 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
public section
namespace Std
open Std.Iterators Std.Iterators.Types
universe v u v' u'
v... |
734 | lean_file_chunk | de84f6ffe21782211c41fddb88594a006b4c387f1012a787416833409668618f | 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
public section
namespace Std
open Std.Iterators
@[cbv_opaque, always_inline, inline, exp... |
12,552 | lean_file_chunk | 94cee079992f73728cf3d32f979492c309abe4c405bfc629ec1bf8026d624984 | 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
public section
/-!
# `filterMap`, `filter` and `map` combinators
This file provides ... |
2,105 | lean_file_chunk | cd2b9e6c57f52f02b9efd2bca12a8910a83ee9c475ca94997e052fc45c5db209 | 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.FlatMap
import Init.Data.Iterators.Combinators.FilterMap
set_option doc.verso true
/-!
# {lit}`f... |
5,018 | lean_file_chunk | 57d6fa61ec5b15c88293470d96432213665d11f8c7dc15cea657d0052cdb4182 | 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.Access
public import Init.Data.Iterators.Consumers.Partial
public import Init.Data.Iterators.Consume... |
4,901 | lean_file_chunk | 586bcb2c140802c2cc1adb56cd670281ed90073fd461860d62887cc8dfad160a | 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.Partial
public import Init.Data.Iterators.Consumers.Total
public import Init.Data.Iterators.Consumers.Monadi... |
1,240 | lean_file_chunk | faa8c08b27a32a450cbb8db384bb69aeff1204ff6309097742eebe409b0e8fe0 | 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.Basic
set_option linter.missingDocs true
public section
namespace Std
/--
A wrapper around an iterator that provid... |
403 | lean_file_chunk | cdd8dab33b209768dcb1da29bf2153bb5a6edf52c2ea95ac51309c9c3a0b81cb | 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.Access
public import Init.Data.Iterators.Consumers.Monadic.Collect
public import Init.Data.Iterators... |
968 | lean_file_chunk | d4f16a0f8a72a7b2bc46f26f77271bb857ecfb84c9bcff2ad176a22bfb241c6a | 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.Basic
set_option doc.verso true
set_option linter.missingDocs true
public section
namespace Std
/--
A wrapper arou... |
23,968 | lean_file_chunk | ed1d907396083a77c466119032a20d702e3fdb3592c390f4b2abd784478acac1 | 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
public import Init.Data.Iterators.Consumers.Partial
public import Init.Data.Iterators.Consumers... |
2,715 | lean_file_chunk | 2668bc9c9ed928a70972cbf14a4af4de2466bd17f40c02b5538da55263b6af2c | lean_source_file | lean_toolchain_source_file_chunks | Returns `true` if the iterator yields no values.
`O(|it|)` since the iterator may skip an unknown number of times before returning a result.
Short-circuits upon encountering the first result. Only the first element of `it` is examined.
If the iterator is not productive, this function might run forever. The variant
`i... |
732 | lean_file_chunk | 3f49917b052d67769a2d0dff13d078124d9715281b692bb0622b7e37bdc1820e | 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.Stream
public import Init.Data.Iterators.Consumers.Monadic.Access
set_option linter.missingDocs true
public section
namespace... |
1,657 | lean_file_chunk | e6e7dbec9ef4e6c36f3d0b55f49b00183e59ba784cff323d682c4cab0aa653ac | 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.Basic
public section
namespace Std
open Std.Iterators
/--
Induction principle for finite iterators: One can define ... |
399 | lean_file_chunk | 950aef0da91cce6c36ed7513a2be780e334b925315f12f0732a754d20f7b6630 | 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
public import Init.Data.Iterators.Lemmas.Consumers.Collect
public import Init.Data.Iterators.... |
282 | lean_file_chunk | 1f916284207a2e294267c134c0215c48cba710496ff8f7c5b00d4fb37ac837d5 | 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.Producers.Monadic
public import Init.Data.Iterators.Lemmas.Producers.List |
589 | lean_file_chunk | 8f3c33f30ae5f565de6f53d946d926040bc2fe3d371493b80bad7088500c204a | 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.Append
public import Init.Data.Iterators.Lemmas.Combinators.Attach
public import Init.Data.Iterator... |
2,402 | lean_file_chunk | fc0d2c1c481d1473d8539e82033426b5a603f2383bb3f0969744ce3425a35cb4 | 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
import Init.Data.Nat.Lemmas
@[expose] public section
/-!
# List iterator
This module provides an iterator... |
10,647 | lean_file_chunk | c281a534972945b7d55898bfd328db1296edc98513a9f3d1ef83b2cc0f331b43 | 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.Consumers.Monadic.Loop
public import Init.Classical
import Init.Data.Option.Lemmas
import Init.ByCases
import Init.Ome... |
7,752 | lean_file_chunk | b8d9b22aa0cc05f1677828c26b6639760938a079fa05bf3c8a22efee84583cbc | 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
public import Init.Classical
import Init.ByCases
import Init.Omega
@[expose] public section
/... |
5,721 | lean_file_chunk | 16ba1d09e516ae48316467dac67f0457d1eea6f8e6f83fc9c0e6a79c71cbf345 | 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
public section
namespace Std
universe v u v' u'
section ULiftT
namespace Iterators
/-- `ULiftT.... |
4,397 | lean_file_chunk | ed92ebc33e65b2de086e278059da4fe750409deeab4ca84e0796ada422492267 | 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
public section
namespace Std.Iterators.Types
/--
Internal state of the `attachWith` combinat... |
23,277 | lean_file_chunk | e9a426e9541c753694afbd39018b3b63e844a96dea4355d6a640938a85afed8d | 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.PostconditionMonad
public import Init.Data.Iterators.Consumers.Monadic.Loop
import Init.PropLemmas
public section
/-... |
15,828 | lean_file_chunk | 6b5a032836d3ea5e99ad4b8bef917f25d10172f7c39d031a4f390c406192501e | 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 Init.Data.Option.Lemmas
/-!
# Monadic `flatMap` combinator
This file provides t... |
5,016 | lean_file_chunk | ad1d000662a20377bb2219cdd7191513dd718e7a9470384a05692e07070fcdd7 | 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.Basic
set_option linter.missingDocs true
public section
namespace Std
open Std.Iterators
/--
`it.IsPlausibleNthOut... |
6,849 | lean_file_chunk | 13730c1449cd80c48e7672c1a496966aae6812740b207379e73269cb7b996a86 | 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.Partial
public import Init.Data.Iterators.Consumers.Monadic.Total
public import Init.WFExtrinsicFix
... |
1,299 | lean_file_chunk | b1b6bee161db5d6872d9463ab60110583c3b32803a8f50f1bbb035599b38b7a8 | 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.Basic
set_option linter.missingDocs true
public section
namespace Std
/--
A wrapper around an iterator that provid... |
1,029 | lean_file_chunk | 3014e3eb1bfa69eb469c18e30886ce9809f28fef6ba3921e5adeb59d95081ff8 | 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.Basic
set_option doc.verso true
set_option linter.missingDocs true
public section
namespace Std
/--
A wrapper arou... |
23,981 | lean_file_chunk | 957256e01dd504972ddabbf13f04bae06c566c9406581f88f265af4dea762746 | 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.Partial
public import Init.Data.Iterators.Internal.LawfulMonadLiftFunction
public import Init.WFExtr... |
18,393 | lean_file_chunk | 9ce0d712c9e6f88cdb23293e30873d87b6836d1295d24df9e4da105dede2b721 | lean_source_file | lean_toolchain_source_file_chunks | @[always_inline, inline, deprecated IterM.allM (since := "2025-12-04")]
def IterM.Partial.allM {α β : Type w} {m : Type w → Type w'} [Monad m] [Iterator α m β]
[IteratorLoop α m m] (p : β → m (ULift Bool)) (it : IterM.Partial (α := α) m β) :
m (ULift Bool) := do
it.it.allM p
set_option doc.verso true in
/--
... |
1,702 | lean_file_chunk | 6f3362f6678179b3723d1431ac2b4ded59fcf32b1f7fcf53158ce75c83a43fda | 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.Basic
public section
namespace Std
open Std.Iterators
/--
Induction principle for finite monadic iterators: One can... |
1,370 | lean_file_chunk | e720028a683763f0411d540f85e230f0a80e4a4911b87e80aa4295e6a4507191 | 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.List
import Init.Data.Iterators.Lemmas.Consumers.Collect
import Init.Data.Iterators.Lemmas.Producers.Monadic... |
231 | lean_file_chunk | 5b4324b958c9ee2d44ba6ed9fa98c6af7f060ee63bfe8cbd28967c78dfdaf841 | 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.Producers.Monadic.List |
8,068 | lean_file_chunk | dac24cbe3242ac7481c1ba7a3c1a2e102899527090072ab098ffda9c1565ef50 | 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.Append
public import Init.Data.Iterators.Lemmas.Combinators.Monadic.Append
public import Init.Data.Iterato... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.