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 |
|---|---|---|---|---|---|
8,160 | lean_file_chunk | bbea19eb4a0e5eebc1fb1ea53689813af37e71bbdaa4109f8daa4947cfc4f053 | 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
import all Init.Data.Vector.Basic
public import Init.Data.Vector.Attach
import Init.Data.Array.Monadic
public section
/-!
# Lemmas about `Vector.forIn'... |
4,315 | lean_file_chunk | 5620d0cf23ee847412ceaf96513da21819ebf01eede5216d624b3d0a149165e2 | lean_source_file | lean_toolchain_source_file_chunks | /-
Copyright (c) 2024 Lean FRO. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Kim Morrison
-/
module
prelude
import all Init.Data.Array.Basic
public import Init.Data.Array.Perm
import all Init.Data.Vector.Basic
public import Init.Data.Vector.Basic
import Init.Data.Li... |
22,109 | lean_file_chunk | 6dd0efd37814b64ed8ab1a14b5e8d0df49314c6e5a66c72868d63ef339fb2553 | lean_source_file | lean_toolchain_source_file_chunks | /-
Copyright (c) 2024 Shreyas Srinivas. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Shreyas Srinivas, François G. Dorais, Kim Morrison
-/
module
prelude
-- TODO: Making this private leads to a panic in Init.Grind.Ring.Poly.
import Init.Data.Array.Nat
public import... |
11,598 | lean_file_chunk | 3635a217995d5324e8848c17d1d7cf5b13ded3a5959b67886edef9b150eedf05 | 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
import all Init.Data.Array.Basic
import all Init.Data.Vector.Basic
public import Init.BinderPredicates
public import Init.Data.Vector.Basic
import Init.B... |
5,897 | lean_file_chunk | 8c44848df2f3b1d8de61e3e6c5337d0626c5d7e1258e120bc7fd5eaac5dba997 | 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
import all Init.Data.Vector.Basic
public import Init.Data.Array.OfFn
public import Init.Data.Vector.Basic
import Init.Data.Fin.Lemmas
import Init.Data.Ve... |
7,458 | lean_file_chunk | f53b984b2f02d44ecf36f5e7f8b9a71effa0991e5e511e773b323cab8733dc9a | 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.Grind
public import Init.Data.Vector.Basic
import Init.Data.Vector.Lemmas
/-!
# Componentwise algebraic structures on `Vector α n`.
-... |
23,956 | lean_file_chunk | 4df014f5bdb7e84086907bfdfd07e2579ed8eaf84954fc044322b577904fb0e7 | 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.Data.Vector.Lemmas
import all Init.Data.Array.Attach
public section
set_option linter.listVariables true -- Enforce naming conventio... |
402 | lean_file_chunk | 86493095f22c0e9f07b842255c4cdece3bd9dda83c1bcfeab26ceef234a98cac | lean_source_file | lean_toolchain_source_file_chunks | simp only [flatten_mk, Array.map_map, Function.comp_apply, Array.map_subtype,
Array.unattach_attach, Array.map_id_fun', id_eq, map_mk, Array.map_flatten, map_subtype,
map_id_fun', unattach_mk, eq_mk]
unfold Array.unattach
rfl
@[simp] theorem unattach_replicate {p : α → Prop} {n : Nat} {x : { x // p x }} :
... |
14,136 | lean_file_chunk | b075065c99425fd23f9d316712b1f1b3a83e405d552f2f80d77e4530a7f98417 | 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
import all Init.Data.Array.Basic
import all Init.Data.Vector.Basic
public import Init.Data.Vector.Attach
import Init.ByCases
public section
set_option linte... |
6,144 | lean_file_chunk | df38b7b65f6ad5fb4bf957f81f219cdd178b1ed6a444432a1ffe0a5b7e7b880a | 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.BinderPredicates
public import Init.Data.Vector.Basic
import Init.Data.Array.Erase
import Init.Data.Vector.Lemmas
import Init.Omega
p... |
13,914 | lean_file_chunk | f47ad9296675797ad28c9422996baecfbd3081e8eacdb9aa836e5adf72c18f1a | 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
import all Init.Data.Array.Basic
import all Init.Data.Vector.Basic
public import Init.Data.Vector.Attach
import Init.Data.Array.Find
import Init.Data.Boo... |
482 | lean_file_chunk | 438a76014f54f3e94a623d26e92ef6669c22d1e7b4c672be213b7e7ea874dfc8 | lean_source_file | lean_toolchain_source_file_chunks | /-
Copyright (c) 2024 Shreyas Srinivas. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Shreyas Srinivas, François G. Dorais, Kim Morrison
-/
module
prelude
public import Init.Data.Stream
public import Init.Data.Vector.Basic
import Init.Data.Slice.Array.Basic
namespac... |
315 | lean_file_chunk | 0e3529882402bb916acef012f77b7122019e8e8ba13ec9df48e95b60bb2b8159 | 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.Ord.Basic
public instance {α : Type u} [Ord α] {P : α → Prop} : Ord (Subtype P) where
compare a b := compare a.val b.val |
3,303 | lean_file_chunk | 540e3deb80266115b9c1fd5d9a88ae56c4556109a8975a14ec2ef1549d5009a8 | 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
import Init.Data.Order.Lemmas
import Init.Ext
namespace Subtype
open Std
public instance instLE {α : Type u} [LE... |
631 | lean_file_chunk | d53e3ff70ba6a975ca81c489791e4fa14092e32dff4d36f86e4505fa8183e08a | lean_source_file | lean_toolchain_source_file_chunks | /-
Copyright (c) 2017 Johannes Hölzl. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Johannes Hölzl
-/
module
prelude
public import Init.Ext
public section
namespace Subtype
universe u
variable {α : Sort u} {p q : α → Prop}
@[simp]
protected theorem «forall» {q : ... |
322 | lean_file_chunk | 23e8acfb168bb81698b5009103866ec5c33ef139e961b5398c395d75754fd54f | 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
public import Init.Data.Iterators.Lemmas.Combinators
public import Init.Data.Iterators.Lemmas.Produce... |
234 | lean_file_chunk | c4237b3867a54fc7526e8755dae9c1398a870976e36156072c64e9e81947a142 | 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.Internal.LawfulMonadLiftFunction |
23,918 | lean_file_chunk | 342431d6b845b8f904fb425394b3385c567d01b6b0a011dcce6e7c12bc6dd273 | 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.NotationExtra
public import Init.WFTactics
import Init.Ext
import Init.PropLemmas
set_option doc.verso true
set_option linter.missin... |
18,094 | lean_file_chunk | 2df64e7ac0c478b401cb33e8aa2dc529190ce5a92d8c9acf7679675f9d83f81d | lean_source_file | lean_toolchain_source_file_chunks | Asserts that a certain iterator `it` could plausibly yield the value `out` after an arbitrary
number of steps.
-/
inductive Iter.IsPlausibleIndirectOutput {α β : Type w} [Iterator α Id β] :
Iter (α := α) β → β → Prop where
/-- The output value could plausibly be emitted in the next step. -/
| direct {it : Iter ... |
525 | lean_file_chunk | 8605d2f36e1eeaefb42c406542bb26a91667365dbc368a52f46a5201a0e1e3b5 | 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 import Init.Data.Iterators.Consumers.Access
public import Init.Data.Iterators.Consumers.Colle... |
268 | lean_file_chunk | fbd327d397cd5032986d2b32d31b34a8f11a5d30f756748ab5b96b56c8066058 | 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
public import Init.Data.Iterators.Producers.List |
487 | lean_file_chunk | 71f17d9897c273c4e6e98233c6bbd1ad42ede03aff453c439f76f814704b6108 | 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.Append
public import Init.Data.Iterators.Combinators.Monadic
public import Init.Data.Iterators.Combinators... |
12,756 | lean_file_chunk | e5b0ac4778dae2676569e066b5cb19243d93c65048ff222a681907355d841f7b | 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.Basic
public import Init.Control.Lawful.MonadLift.Basic
public import Init.Ext
public import Init.NotationExtra
import... |
1,858 | lean_file_chunk | 5f341d1d4c390f410292493a923ae932afc3bf21a504539df4215afa9ddccd4c | 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
/-!
This module provides the typeclass `ToIterator`, which is implemented by types that can be
... |
12,542 | lean_file_chunk | d45225640b808ae4d127461b6749d0b365a045d653a98ffb20eeb073017bc5d3 | lean_source_file | lean_toolchain_source_file_chunks | /-
Copyright (c) 2024 Lean FRO. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Author: Kim Morrison
-/
module
prelude
import all Init.Data.Array.Lex.Basic
public import Init.Data.Array.Lex.Basic
import Init.Data.Range.Polymorphic.NatLemmas
public import Init.Data.BEq
import In... |
1,288 | lean_file_chunk | d1a044f2dbcc390eec3743876d44d9a260df2185eb7625dfec91d15b7067564c | lean_source_file | lean_toolchain_source_file_chunks | /-
Copyright (c) 2024 Lean FRO. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Author: Kim Morrison
-/
module
prelude
public import Init.Data.Range.Polymorphic.RangeIterator
import Init.Data.Range.Polymorphic.Iterators
import Init.Data.Range.Polymorphic.Nat
import Init.Omega
... |
9,511 | lean_file_chunk | c442c13b9980328a85f1123e5279274a2917f81a152cbcb04d96c3ff99a39507 | lean_source_file | lean_toolchain_source_file_chunks | /-
Copyright (c) 2026 Lean FRO. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Paul Reichert
-/
module
prelude
public import Init.Data.Array.Sort.Basic
public import Init.Data.List.Sort.Basic
public import Init.Data.Array.Perm
import all Init.Data.Array.Sort.Basic
imp... |
1,906 | lean_file_chunk | e9d34ea39e0f8aec8c69c8bb21e2e6d13a318fb734b988ea99644d71bbd33288 | lean_source_file | lean_toolchain_source_file_chunks | /-
Copyright (c) 2026 Lean FRO. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Paul Reichert
-/
module
prelude
public import Init.Data.Array.Subarray.Split
public import Init.Data.Slice.Array
import Init.Omega
public section
private def Array.MergeSort.Internal.merg... |
3,273 | lean_file_chunk | bc89bebf3d1cf857aa101a20100bc4da4b0017413d3b7000f231a105b67f6b46 | lean_source_file | lean_toolchain_source_file_chunks | /-
Copyright (c) 2019 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Leonardo de Moura
-/
module
prelude
public import Init.Data.Vector.Basic
public import Init.Data.Ord.Basic
import Init.Omega
public section
set_option linter.listVariables tr... |
1,709 | lean_file_chunk | df123ec7dd25d17e4b6711655ce0ecde085c2346f0161a7fee64e9f39f29426b | 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
import all Init.Data.Array.Subarray
import Init.Omega
public section
/-
This module contains split... |
23,969 | lean_file_chunk | b9dcc4a1232d4c7c779c1f1006095edc88b4c3128564232cd7f1c50604da2cb2 | 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.Slice.Array.Iterator
import all Init.Data.Array.Subarray
import all Init.Data.Slice.Array.Basic
import Init.Data.Slice.Lemmas
im... |
10,287 | lean_file_chunk | 7d1516db64106e88b8c5898f3dc22c49d76ac051e7da78770794b81b13087bc4 | lean_source_file | lean_toolchain_source_file_chunks | xs[*...=hi] = xs[0...(hi + 1)] := by
simp [mkSlice_ric_eq_mkSlice_rio, mkSlice_rio_eq_mkSlice_rco]
public theorem mkSlice_ric_eq_mkSlice_rio_min {xs : Array α} {hi : Nat} :
xs[*...=hi] = xs[*...(min (hi + 1) xs.size)] := by
simp [mkSlice_ric_eq_mkSlice_rco, mkSlice_rco_eq_mkSlice_rco_min,
mkSlice_rio_eq_mk... |
3,825 | lean_file_chunk | baead12520c9a690b63e2d47e37f4b871cb29a4b6827274db45987953f1fc620 | 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.Array.Subarray
public import Init.Data.Slice.Notation
public import Init.Data.Range.Polymorphic.Nat
public section
/-!
This mo... |
3,988 | lean_file_chunk | a231f71b84a5da934bfc98ba06839a34e395cf09a7c3d4ceca8b29ee12085602 | 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.Slice.Operations
import all Init.Data.Range.Polymorphic.Basic
import Init.Omega
public import Init.Data.Array.Subarray
public im... |
18,328 | lean_file_chunk | f41cf47920e5ba90d6079c76bdae449cc6a8dc3fab1dfb01dba7a869e9c4a599 | 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.Slice.List.Basic
public import Init.Data.Slice.List.Iterator
import all Init.Data.Slice.List.Iterator
import all Init.Data.Slice.Op... |
5,612 | lean_file_chunk | 0c62b9122424f39f0bef666c86e431d99653a1aaf6501bc0a7dec3da47c96f2b | 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.Slice.Basic
public import Init.Data.Slice.Notation
set_option linter.missingDocs true
/-!
This module provides slice notation ... |
1,660 | lean_file_chunk | ed3937fc047d1f898c3bb8dfa6fa39bda6a04142e08f9dd39009a08d91d36bba | 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.Slice.List.Basic
public import Init.Data.Iterators.Producers.List
public import Init.Data.Iterators.Combinators.Take
import all ... |
9,954 | lean_file_chunk | 06a36e7d34312229fbe3d5933434544395da4edfede644fdc744543941a0b194 | lean_source_file | lean_toolchain_source_file_chunks | /-
Copyright (c) 2024 Lean FRO. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Kim Morrison
-/
module
prelude
import Init.TacticsExtra
public import Init.Data.Nat.Dvd
public import Init.NotationExtra
import Init.ByCases
import Init.Data.Nat.Lemmas
import Init.Data.Nat... |
17,047 | lean_file_chunk | 6c5ee070a40c6fe8b17d2671a657a0f9f669a32884ba90e9c203e0aaf7d56a3a | lean_source_file | lean_toolchain_source_file_chunks | /-
Copyright (c) 2016 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Leonardo de Moura
-/
module
prelude
public import Init.Data.NeZero
public import Init.WF
meta import Init.MetaTypes
import Init.WFTactics
public section
@[expose] section
na... |
2,031 | lean_file_chunk | f5464f04989e74a3d14777920a922d248f4e103506271365bc03b8e5af197420 | lean_source_file | lean_toolchain_source_file_chunks | /-
Copyright (c) George Rennie. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: George Rennie
-/
module
prelude
import all Init.Data.Nat.Power2.Basic
public import Init.Data.Nat.Log2
public import Init.Data.Nat.Power2.Basic
public import Init.PropLemmas
import Init.ByC... |
2,103 | lean_file_chunk | 323525528be86d9fea309befcf3b95f8ccb409f59a9a93e76ca5d8d8d87c4d26 | lean_source_file | lean_toolchain_source_file_chunks | /-
Copyright (c) 2022 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Leonardo de Moura
-/
module
prelude
public import Init.Grind.Tactics
import Init.Data.Nat.Linear
import Init.NotationExtra
import Init.WFTactics
public section
namespace Nat
... |
23,971 | lean_file_chunk | 87c47cf4c10d39688d7067e734b90fccde4a720a52a83d78bf6c1a21ab68dc05 | 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: Joe Hendrix
-/
module
prelude
import all Init.Data.Nat.Bitwise.Basic
public import Init.BinderPredicates
public import Init.Data.Bool
public import Init.Data.Nat.Log2
import Init.ByCa... |
5,319 | lean_file_chunk | dd229d4c832dfea604713f0056fa8431e6cad0cd85fbe5cdca447758c8ca9f21 | lean_source_file | lean_toolchain_source_file_chunks | simp [congrArg (2^·) j_def, Nat.pow_add,
←Nat.div_div_eq_div_mul,
Nat.mul_add_div,
Nat.div_eq_of_lt b_lt,
Nat.two_pow_pos i]
@[grind =]
theorem testBit_two_pow_mul :
testBit (2 ^ i * a) j = (decide (j ≥ i) && testBit a (j-i)) := by
have gen := testBit_two_pow_mul_add a (Na... |
4,672 | lean_file_chunk | 407fdd109891b513b34e3598cc70a592123a8cf087b5252474c3f47239fe33a8 | lean_source_file | lean_toolchain_source_file_chunks | /-
Copyright (c) 2019 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Leonardo de Moura
-/
module
prelude
public import Init.Grind.Tactics
import Init.Data.Nat.Div.Basic
meta import Init.MetaTypes
import Init.WFTactics
public section
namespace ... |
1,162 | lean_file_chunk | b1448d5cccda74ede21a12aa57025d2a9c6fe4d590b2d5fdb8ea9eebeff6ecb9 | 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
import Init.ByCases
import Init.Data.Int.DivMod.Bootstrap
import Init.Data.Int.DivMod.Lemmas
import Init.Data.Int.Lemmas
import Init.Data.Int.Pow
import In... |
23,951 | lean_file_chunk | 05a3b0d981efd0ccbbdf8196fffb4aed5a9f4239751bb9fc39ed31c3df16a9d8 | lean_source_file | lean_toolchain_source_file_chunks | /-
Copyright (c) 2016 Jeremy Avigad. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Jeremy Avigad, Mario Carneiro, Kim Morrison, Markus Himmel
-/
module
prelude
import Init.TacticsExtra
public import Init.Data.Int.DivMod.Basic
public import Init.Data.Nat.Div.Basic
pub... |
23,978 | lean_file_chunk | 9c82b622da1411742b7085c6e721cb632009e939de9aa29b4b79464acd87a950 | lean_source_file | lean_toolchain_source_file_chunks | (H1 : b ≠ 0) (H2 : a * b = c) : a = c / b :=
(Int.ediv_eq_of_eq_mul_left H1 H2.symm).symm
@[simp] protected theorem ediv_self {a : Int} (H : a ≠ 0) : a / a = 1 := by
have := Int.mul_ediv_cancel 1 H; rwa [Int.one_mul] at this
@[simp] protected theorem neg_ediv_self (a : Int) (h : a ≠ 0) : (-a) / a = -1 := by
rw ... |
23,926 | lean_file_chunk | f1475a93f7508eb486459f983f9e8c4f8e85542d1964859352d1996ffa0ae16d | lean_source_file | lean_toolchain_source_file_chunks | rw [← emod_add_mul_ediv m n]
refine ⟨m / n, Int.lt_add_of_pos_left _ ?_, ?_⟩
· have := emod_nonneg m (Int.ne_of_gt hn)
omega
· rw [Int.add_comm _ (1 : Int), Int.mul_add, Int.mul_one]
exact Int.add_lt_add_right (emod_lt_of_pos _ hn) _
· rintro ⟨k, h1k, h2k⟩ ⟨l, rfl⟩
replace h1k := lt_of_mul... |
23,973 | lean_file_chunk | 9e625179b9c1fa3e97c46a9922f63a5cc5851f47eda092c9cc3b2bfddde352cb | lean_source_file | lean_toolchain_source_file_chunks | theorem ediv_lt_ediv_iff_of_dvd_of_neg_of_neg {a b c d : Int} (hb : b < 0) (hd : d < 0)
(hba : b ∣ a) (hdc : d ∣ c) : a / b < c / d ↔ d * a < c * b := by
obtain ⟨⟨x, rfl⟩, y, rfl⟩ := hba, hdc
simp [*, Int.ne_of_lt, d.mul_assoc, b.mul_comm]
theorem ediv_lt_ediv_of_lt {a b c : Int} (h : a < b) (hcb : c ∣ b) (hc ... |
23,947 | lean_file_chunk | 7b602f5f717c5b69fa19b41553bbb697dc4b6f0f68e01a680c834d946beae65f | lean_source_file | lean_toolchain_source_file_chunks | simp only [fmod_eq_fmod_iff_fmod_sub_eq_zero, ← dvd_iff_fmod_eq_zero,
(by omega : i - m - (i - k) = -(m - k)), Int.dvd_neg]
protected theorem fdiv_fmod_unique {a b r q : Int} (h : 0 < b) :
a.fdiv b = q ∧ a.fmod b = r ↔ r + b * q = a ∧ 0 ≤ r ∧ r < b := by
rw [fdiv_eq_ediv_of_nonneg, fmod_eq_emod_of_nonneg, In... |
1,483 | lean_file_chunk | 0e318d3e24c0f9c0c0f22bb121491f5fac4cb554257197853f7647ef39e570e5 | lean_source_file | lean_toolchain_source_file_chunks | · simp only [Int.le_ediv_iff_mul_le (c := y) (a := x) (b := x) (by omega),
show (x * y ≤ x) = (x * y ≤ x * 1) by rw [Int.mul_one], Int.mul_one]
apply Int.mul_le_mul_of_nonpos_left (a := x) (b := y) (c := (1 : Int)) (by omega) (by omega)
theorem neg_self_le_ediv_of_nonneg_of_nonpos (x y : Int) (hx : 0 ≤ ... |
11,232 | lean_file_chunk | b9ef47a6124116127ccb5a399ead1312a2901959e15d2cd18e04a317e9dfcf4c | lean_source_file | lean_toolchain_source_file_chunks | /-
Copyright (c) 2016 Jeremy Avigad. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Jeremy Avigad, Mario Carneiro
-/
module
prelude
public import Init.Data.Int.Basic
import Init.Data.Nat.Div.Basic
public section
@[expose] section
open Nat
namespace Int
/-! ## Quo... |
14,107 | lean_file_chunk | 93965c98a2d4a4cff18f2a16023c7a097f1cdba862cd3b1646a48b9c5eccc84d | lean_source_file | lean_toolchain_source_file_chunks | /-
Copyright (c) 2016 Jeremy Avigad. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Jeremy Avigad, Mario Carneiro
-/
module
prelude
public import Init.Data.Int.DivMod.Basic
public import Init.Data.Nat.Div.Basic
import Init.ByCases
import Init.Data.Int.Lemmas
import In... |
6,303 | lean_file_chunk | 260de61ad2bb8d3aa2ebfe8edc97b96652200b0f677abef19cd5def965b6b161 | lean_source_file | lean_toolchain_source_file_chunks | /-
Copyright (c) 2023 Siddharth Bhat. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Siddharth Bhat, Jeremy Avigad
-/
module
prelude
public import Init.Data.Int.Bitwise.Basic
import all Init.Data.Int.Bitwise.Basic
public import Init.Data.Int.DivMod.Basic
import Init.B... |
1,604 | lean_file_chunk | f2036ed97108ea98b0ef5d38a088b535e513e82467b28efebde0e44d6a3ca97e | lean_source_file | lean_toolchain_source_file_chunks | /-
Copyright (c) 2022 Mario Carneiro. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Mario Carneiro
-/
module
prelude
public import Init.Data.Int.Basic
public import Init.Data.Nat.Bitwise.Basic
public section
namespace Int
/-! ## bit operations -/
/--
Bitwise not,... |
9,534 | lean_file_chunk | 99ba55eafc577fadc4a52e22a6d9288299438c1c1402ef7ca1ca43af3b7ab3b3 | lean_source_file | lean_toolchain_source_file_chunks | /-
Copyright (c) 2014 Parikshit Khanna. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Parikshit Khanna, Jeremy Avigad, Leonardo de Moura, Floris van Doorn, Mario Carneiro, Markus Himmel
-/
module
prelude
public import Init.Data.List.SplitOn.Basic
import all Init.Data... |
2,338 | lean_file_chunk | 233b94fffa41d84036c18a7227d47559ba7edcda2b29b711ff30351aaeafe099 | lean_source_file | lean_toolchain_source_file_chunks | /-
Copyright (c) 2016 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Leonardo de Moura
-/
module
prelude
public import Init.Data.List.Basic
public import Init.NotationExtra
import Init.Data.Array.Bootstrap
import Init.Data.List.Lemmas
public se... |
18,890 | lean_file_chunk | 8285ad93635394edac5a291ccb28733372f738460de28002562383b12417c8f2 | lean_source_file | lean_toolchain_source_file_chunks | /-
Copyright (c) 2024 Lean FRO. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Kim Morrison, Eric Wieser, François G. Dorais
-/
module
prelude
public import Init.Data.List.Sort.Basic
import all Init.Data.List.Sort.Basic
public import Init.BinderPredicates
public impor... |
3,410 | lean_file_chunk | 1ebae9c4fecfbbc330bacccc20856788e6248d154f0d2bda1fc5db9c2d5adce8 | lean_source_file | lean_toolchain_source_file_chunks | /-
Copyright (c) 2024 Lean FRO. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Kim Morrison
-/
module
prelude
public import Init.Ext
import Init.Data.List.Nat.TakeDrop
import Init.Data.List.TakeDrop
import Init.Data.Nat.Lemmas
import Init.Omega
public section
/-!
# ... |
9,253 | lean_file_chunk | 9fc8c0b74b55eebec912b0dbcfa34cb6699eb14b6e89500e50cb7f31c7288f31 | lean_source_file | lean_toolchain_source_file_chunks | /-
Copyright (c) 2024 Lean FRO. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Kim Morrison
-/
module
prelude
import all Init.Data.List.Sort.Basic
public import Init.Data.List.Sort.Basic
import Init.Data.List.Sort.Lemmas
import Init.Data.Nat.Linear
public section
/-... |
4,733 | lean_file_chunk | 65fb38f453f5a081dbfe22ff0a65288a70178bc882c3f37ea96c5dccb68d08c7 | 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: Kim Morrison, Sebastian Graf, Paul Reichert
-/
module
prelude
import Init.Data.List.MinMax
public import Init.BinderPredicates
public import Init.NotationExtra
import Init.Data.Nat.Div... |
5,062 | lean_file_chunk | e5cbed4f4fa5d136c03f6831b09062209e1be66ffd55732a7213915d86c662c2 | lean_source_file | lean_toolchain_source_file_chunks | /-
Copyright (c) 2024 Kim Morrison. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Kim Morrison
-/
module
prelude
public import Init.GetElem
import Init.ByCases
import Init.Data.Bool
import Init.Data.List.Count
import Init.Data.List.Lemmas
import Init.Data.List.Sublis... |
2,910 | lean_file_chunk | 4693e0c79e5210958a6e45c5e69900c6c30958cfc1aeb46685d3815ae7879109 | lean_source_file | lean_toolchain_source_file_chunks | /-
Copyright (c) 2018 Mario Carneiro. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Mario Carneiro, James Gallicchio
-/
module
prelude
public import Init.NotationExtra
import Init.Data.Fin.Lemmas
import Init.Data.List.Nat.TakeDrop
import Init.Data.List.Pairwise
impor... |
13,358 | lean_file_chunk | 112ff372020104d57a8fac9727a578fb83e7fc90bfeadc3a762f679a2bda0c7f | lean_source_file | lean_toolchain_source_file_chunks | /-
Copyright (c) 2014 Parikshit Khanna. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Parikshit Khanna, Jeremy Avigad, Leonardo de Moura, Floris van Doorn, Mario Carneiro
-/
module
prelude
public import Init.Ext
public import Init.NotationExtra
import Init.ByCases
i... |
8,460 | lean_file_chunk | 4ec477ffd49cb51f22ca9c3367f850dd7fef5c0994480083fc3d6d187952dfe5 | lean_source_file | lean_toolchain_source_file_chunks | /-
Copyright (c) 2014 Parikshit Khanna. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Parikshit Khanna, Jeremy Avigad, Leonardo de Moura, Floris van Doorn, Mario Carneiro
-/
module
prelude
public import Init.GetElem
import Init.Data.List.Erase
import Init.Data.List.L... |
2,746 | lean_file_chunk | 675bc6fe36fa441fc58caf48b88d3be991df144cc75a660d482f0b5a0cc2c438 | lean_source_file | lean_toolchain_source_file_chunks | /-
Copyright (c) 2024 Lean FRO. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Kim Morrison
-/
module
prelude
public import Init.GetElem
import Init.Data.List.Nat.TakeDrop
import Init.Data.List.Perm
import Init.Data.List.TakeDrop
import Init.Omega
import Init.TacticsE... |
6,802 | lean_file_chunk | ebdd48f8eb95cdb60ef4c9427e4bcc37de78f069bf044b4ac683f1e4c96d4999 | lean_source_file | lean_toolchain_source_file_chunks | /-
Copyright (c) 2024 Lean FRO. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Kim Morrison
-/
module
prelude
public import Init.Data.Function
public import Init.Ext
public import Init.NotationExtra
import Init.Data.List.Nat.Basic
import Init.Data.List.Nat.TakeDrop
im... |
9,074 | lean_file_chunk | 8730c72aa22a02859d084b12bf449b4b7bd6039d2c089c88aff097ac3670afb4 | lean_source_file | lean_toolchain_source_file_chunks | /-
Copyright (c) 2014 Parikshit Khanna. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Parikshit Khanna, Jeremy Avigad, Leonardo de Moura, Floris van Doorn, Mario Carneiro
-/
module
prelude
public import Init.Data.List.MinMax
import Init.Data.Bool
import Init.Data.Lis... |
23,918 | lean_file_chunk | 36f64e965507504eb6bc7195102b491a222868c93df5b761602c5ee68d6dde17 | lean_source_file | lean_toolchain_source_file_chunks | /-
Copyright (c) 2014 Parikshit Khanna. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Parikshit Khanna, Jeremy Avigad, Leonardo de Moura, Floris van Doorn, Mario Carneiro
-/
module
prelude
public import Init.Data.List.Lemmas
public import Init.Data.Nat.MinMax
import ... |
409 | lean_file_chunk | b7458b55df402a28527a821a827b8f7790d1e27a512c83e77456a19acb1c6821 | lean_source_file | lean_toolchain_source_file_chunks | zip l₁ l₂ = zip (l₁.take (min l₁.length l₂.length)) (l₂.take (min l₁.length l₂.length))
| [], _ => by simp
| _, [] => by simp
| a :: l₁, b :: l₂ => by simp [succ_min_succ, zip_eq_zip_take_min (l₁ := l₁) (l₂ := l₂)]
@[simp, grind =] theorem zip_replicate {a : α} {b : β} {m n : Nat} :
zip (replicate m a) (repl... |
15,297 | lean_file_chunk | b7c0d045d6244dca15ce72598f2fd05dfe3aca82f9d093ba2b1b5ddb03f9f69e | lean_source_file | lean_toolchain_source_file_chunks | /-
Copyright (c) 2014 Parikshit Khanna. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Parikshit Khanna, Jeremy Avigad, Leonardo de Moura, Floris van Doorn, Mario Carneiro
-/
module
prelude
public import Init.Data.Nat.Lemmas
public import Init.Ext
import Init.ByCases
... |
1,698 | lean_file_chunk | 0138e929e758cd1c1514692ed54bd1e0f636ac9290e7977624cee62b6e671b5f | lean_source_file | lean_toolchain_source_file_chunks | /-
Copyright (c) 2024 Lean FRO All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Kim Morrison
-/
module
prelude
public import Init.Data.Nat.Lemmas
import Init.Data.List.Lemmas
import Init.Data.Bool
public section
set_option linter.listVariables true -- Enforce naming c... |
5,680 | lean_file_chunk | d6f2928c0c78122344a516a3777fe248ce399053d5de681903ec15ba43bbaa13 | lean_source_file | lean_toolchain_source_file_chunks | /-
Copyright (c) 2024 Kim Morrison. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Kim Morrison
-/
module
prelude
public import Init.GetElem
import Init.Data.List.Erase
import Init.Data.List.Nat.TakeDrop
import Init.Data.List.TakeDrop
import Init.Omega
public section... |
2,558 | lean_file_chunk | e126116f162dd6459c9b7d8ed5773ee835848eb82a4b5a66ab0b4ed5795aa06b | lean_source_file | lean_toolchain_source_file_chunks | /-
Copyright (c) 2024 Kim Morrison. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Kim Morrison
-/
module
prelude
public import Init.BinderPredicates
public import Init.NotationExtra
import Init.Data.List.Find
import Init.Data.List.Nat.Range
import Init.Data.List.Nat.... |
11,648 | lean_file_chunk | 82c30586f3f000abd0f486cbea95a7d3abc9e03e8a31c28a05f5aaf26318626f | 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: Parikshit Khanna, Jeremy Avigad, Leonardo de Moura, Floris van Doorn, Mario Carneiro, Chad Sharp
-/
module
prelude
public import Init.Data.List.Scan.Basic
public import Init.Data.List.... |
1,839 | lean_file_chunk | c30c897c61beb4e4871db76515c821659ba7b39a4d3674946b06875b0a3eca44 | 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: Mario Carneiro, Chad Sharp
-/
module
prelude
public import Init.Data.List.Basic
public import Init.Control.Id
public section
namespace List
/-- Tail-recursive helper function for `s... |
3,828 | lean_file_chunk | b90727d58309a2f2aeee6a673509cd040a9d7839354a21a42d68b0e5e9bb4573 | 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: Kim Morrison, Sebastian Graf, Paul Reichert
-/
module
prelude
import Init.Data.Int.DivMod.Lemmas
import Init.Data.List.MinMax
public import Init.Data.Int.DivMod.Basic
public import Ini... |
931 | lean_file_chunk | c24349740383f092d70277271923598cd7d2ab4d88e2ca622ea59dbd409d0ed1 | 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.Iterators.Combinators.FilterMap
public import Init.Data.Iterators.Consumers.Collect
set_option doc.verso true
namespace Std
/... |
982 | lean_file_chunk | 6cb63bc2ee17c3c27bdf8e524599cf1e7133a455f34745d106cb2362ecafc056 | 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: Julia Markus Himmel
-/
module
prelude
public import Init.Data.Iterators.Combinators.Monadic.FilterMap
public import Init.Data.String.Basic
import Init.Data.String.Slice
set_option doc... |
14,520 | lean_file_chunk | a1ba549aaecbff662d3824ddbaa9afd1982faed40162122b947f08700bd6c634 | lean_source_file | lean_toolchain_source_file_chunks | /-
Copyright (c) 2025 Lean FRO, LLC. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Henrik Böving
-/
module
prelude
public import Init.Data.String.Pattern.Basic
public import Init.Data.Vector.Basic
public import Init.Data.String.FindPos
import Init.Data.String.Termina... |
19,074 | lean_file_chunk | 4ef5631bd395567cdd6a3d164679216b88de1949e872c93bb3a5db97716e66e2 | lean_source_file | lean_toolchain_source_file_chunks | /-
Copyright (c) 2025 Lean FRO, LLC. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Henrik Böving, Markus Himmel
-/
module
prelude
public import Init.Data.Iterators.Consumers.Monadic.Loop
public import Init.Data.String.Defs
public import Init.Data.String.Basic
public ... |
5,180 | lean_file_chunk | a96ab1ae4bec1edfe3fe38cc4429f39807ada5fbf35e1555e4bcbbef3df9a30f | lean_source_file | lean_toolchain_source_file_chunks | /-
Copyright (c) 2025 Lean FRO, LLC. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Henrik Böving, Markus Himmel
-/
module
prelude
public import Init.Data.String.Pattern.Basic
public import Init.Data.String.Lemmas.IsEmpty
import Init.Data.String.Termination
import Ini... |
1,963 | lean_file_chunk | 8ded620aab8bd8be264706adec8127b600d4e0d0a16bf89750372c22b8fed8c1 | lean_source_file | lean_toolchain_source_file_chunks | /-
Copyright (c) 2025 Lean FRO, LLC. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Henrik Böving, Markus Himmel
-/
module
prelude
public import Init.Data.String.Pattern.Pred
set_option doc.verso true
/-!
This module defines the necessary instances to register {name... |
639 | lean_file_chunk | 79f4c4d7f3eeb31835ccda9228abbf7aee0a0226782945135b446c77c95ba85c | 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: Julia Markus Himmel
-/
module
prelude
public import Init.Data.String.Slice
public import Init.Data.LawfulHashable
import all Init.Data.String.Slice
import Init.Data.String.Lemmas.Slice... |
1,863 | lean_file_chunk | cf6f892fb8971f36ad2751b8d168347ae963f700a1d4c4750e49facc6efb6eeb | lean_source_file | lean_toolchain_source_file_chunks | /-
Copyright (c) 2024 Amazon.com, Inc. or its affiliates. All Rights Reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Leonardo de Moura
-/
module
prelude
public import Init.Data.String.Basic
public import Init.Data.Order.Classes
import Init.Data.List.Lex
import Init.Data.Char.Lemm... |
15,895 | lean_file_chunk | 96ab9910d33f93403e7793f43cafbbb29c6af65cf8e2a33ddbdfe239b4a25921 | 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.Iterate
public import Init.Data.Iterators.Consumers.Collect
public import Init.Data.String.Lemmas.Splits
import all Init.... |
2,556 | lean_file_chunk | a0fdb8cc51aaca6de1b68ea09ab864071d618c8f56a1a7d3a1bbb6d6459b1d29 | 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.
Author: Markus Himmel
-/
module
prelude
public import Init.Data.String.Modify
import all Init.Data.String.Modify
import Init.Data.String.Lemmas.Basic
/-!
# Lemmas for `Init.Data.String.Modify`... |
585 | lean_file_chunk | 61be5ae3b999ef36f9c023c37368f0bb9c2ac33acaf5a00c04fa437aea9c72f3 | 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.Basic
public import Init.Data.String.Lemmas.Pattern.Memcmp
public import Init.Data.String.Lemmas.Pattern.P... |
6,645 | lean_file_chunk | cbc7922a87ce08d0a57c17f4c566f09601bb9c0d66374a2a8f6e041b4d796f10 | 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.Basic
import all Init.Data.String.Defs
import Init.Data.String.Lemmas.Order
import Init.Data.String.Lemmas.Basic
import I... |
23,938 | lean_file_chunk | 72c5e04524fe4c80ca92338539022ae41d8cbf9fc786662277c28cf7c02e0ced | 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.Basic
import Init.Data.String.OrderInstances
import Init.Data.String.Lemmas.Basic
import Init.Data.Order.Lemmas
import Ini... |
4,429 | lean_file_chunk | 8aa07c3e8656ec11eec08b6803a6bebf162eeea5685b5cb144ac07b0d4d1cf13 | lean_source_file | lean_toolchain_source_file_chunks | (h : p ≠ (s.slice p₀ p₁ h).endPos) : Pos.ofSlice p ≠ s.endPos := by
refine (lt_endPos_iff _).1 (Std.lt_of_lt_of_le ?_ (le_endPos p₁))
simpa [← lt_endPos_iff, ← ofSlice_lt_ofSlice_iff] using h
theorem Slice.Pos.ofSlice_ne_startPos {s : Slice} {p₀ p₁ : s.Pos} {h} {p : (s.slice p₀ p₁ h).Pos}
(h : p ≠ (s.slice p₀ ... |
9,416 | lean_file_chunk | cf651931fd04ec422c7e650efb9a9288e3fd82b74cbd1004bf4b2c1fb5c48d21 | 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.
Author: Markus Himmel
-/
module
prelude
public import Init.Data.String.Basic
import all Init.Data.String.Basic
import Init.Data.ByteArray.Lemmas
import Init.Data.Nat.MinMax
/-!
# Basic lemmas ... |
2,072 | lean_file_chunk | b4149361d205d82599224db7b50eb7949fc7c9fd2a5953951b9af96bbf4b5030 | 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: Markus Himmel
-/
module
prelude
public import Init.Data.String.Search
import all Init.Data.String.Search
import Init.Data.String.Lemmas.Slice
import Init.Data.String.Lemmas.FindPos
pu... |
2,571 | lean_file_chunk | 2c4dbcb9666f0b5d30a22395f7af8301edb94c4b1d9dbfefe146e51121269122 | 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: Julia Markus Himmel
-/
module
prelude
public import Init.Data.String.TakeDrop
import all Init.Data.String.Slice
import all Init.Data.String.TakeDrop
import Init.Data.String.Lemmas.Split... |
22,538 | lean_file_chunk | 84e6f3f1ffda2d6e7a700ffd01a1854479f8679125dfa775310f0e0a0505ea23 | 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.FindPos
import all Init.Data.String.FindPos
import Init.Data.String.OrderInstances
import Init.Data.String.Lemmas.Order
i... |
1,928 | lean_file_chunk | 9293d47f9147a198df7e99cd56fb46903a77719590f28b85f3f274dfbb318035 | 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: Julia Markus Himmel
-/
module
prelude
public import Init.Data.String.Iter.Intercalate
public import Init.Data.String.Slice
import all Init.Data.String.Iter.Intercalate
import all Init.... |
23,991 | lean_file_chunk | 6f62aab415e2a9339b552ae5a478b9e2419977af8ab5dfd6d9e026c399de87e7 | 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.
Author: Markus Himmel
-/
module
prelude
public import Init.Data.String.Basic
public import Init.Data.String.FindPos
import Init.Data.ByteArray.Lemmas
import Init.Data.String.Lemmas.Basic
import... |
11,753 | lean_file_chunk | 58ed602ea03dec9bbad75b70303cf38ff7713ea8f7bee1cc948502645cee97cd | lean_source_file | lean_toolchain_source_file_chunks | t₂.toByteArray = s.copy.toByteArray.extract p.offset.byteIdx s.copy.toByteArray.size := by
rw [h.eq_right p.splits]
simp only [toByteArray_copy, str_sliceFrom, startInclusive_sliceFrom, offset_str,
Pos.Raw.byteIdx_offsetBy, endExclusive_sliceFrom, ByteArray.size_extract, size_toByteArray,
ByteArray.extract_... |
4,117 | lean_file_chunk | 714dc714016598caecf28e62e3b6b196cab788fe3592c38a5eefec821e096d34 | 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
import all Init.Data.String.Slice
import Init.Data.String.Lemmas.Pattern.Memcmp
import Init.Data.String.Lemmas.Basi... |
3,248 | lean_file_chunk | 5db885cc7994f2dc9e8d1f5d3f8f9b220f331a93ef1af2a1b9a315440b85b3b9 | 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.Defs
import all Init.Data.String.Defs
public import Init.Data.String.Slice
import all Init.Data.String.Slice
import Init.... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.