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 |
|---|---|---|---|---|---|
13,092 | lean_file_chunk | 2a8d3f15302bd1ea9a2be5169f0d9a9f14b38b6e6a1901116ffb8a713104b563 | 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.
Author: Leonardo de Moura
-/
module
prelude
public import Init.Data.Format.Basic
public import Init.Control.Id
public import Init.Data.UInt.BasicAux
import Init.Data.Char.Basic
public ... |
440 | lean_file_chunk | 9c920ec09af0fa0c024174ddad4f34625470947b26a75a8c1b58ea8b05041f81 | 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: Kim Morrison
-/
module
prelude
public import Init.Data.BitVec.BasicAux
public import Init.Data.BitVec.Basic
public import Init.Data.BitVec.Bootstrap
public import Init.Data.BitVec.Bitb... |
465 | lean_file_chunk | f3fdfc1ea584458d361b8a0c7df39eccb646cf83f8d89788bf017ec1b1f055a5 | 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: Henrik Böving
-/
module
prelude
public import Init.Data.SInt.Basic
public import Init.Data.SInt.Float
public import Init.Data.SInt.Float32
public import Init.Data.SInt.Lemmas
public im... |
571 | lean_file_chunk | 953404a2814712ab84346e675a83486d94ec33ce3a53a5fd0f5ce687d01b3a7a | 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.Ord
public import Init.Data.Order.Classes
public import Init.Data.Order.ClassesExtra
public import Init.Data.Order.Lemmas
... |
331 | lean_file_chunk | 0932e79fd726edb7f001e2b7aaf96c28545f71fca71f74c4dfbcc06be4c5ab0b | lean_source_file | lean_toolchain_source_file_chunks | /-
Copyright (c) 2018 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Author: Leonardo de Moura
-/
module
prelude
public import Init.Data.Format.Basic
public import Init.Data.Format.Macro
public import Init.Data.Format.Instances
public import Init.Data.Fo... |
624 | lean_file_chunk | 52241fcc70aa199cf0319893cca258e9156c8014375f38e8662cc6c1fda27745 | 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 import Init.Data.Iterators.PostconditionMonad
public import Init.Data.Iterators.Consumers
public import I... |
4,354 | lean_file_chunk | 7bbd761975b05502b3efc4893385fae0dd0bd3b9353b6ec4a75c627dcc609f38 | lean_source_file | lean_toolchain_source_file_chunks | /-
Copyright (c) 2020 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Leonardo de Moura
-/
module
prelude
public import Init.Data.Float32
import Init.Data.Nat.Log2
import Init.Meta
public section
/-- For decimal and scientific numbers (e.g., `1... |
368 | lean_file_chunk | 5113c55a551f9d252986c76402df1d504621a307f1daac7196e22dffd4e63a25 | 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.Core
public section
deriving instance DecidableEq for ULift
instance [Subsingleton α] : Subsingleton (ULift α) where
allEq := fun ⟨a⟩ ... |
912 | lean_file_chunk | 26447f552e3b2ef32a32826ab86166b3f475fb4adb75a93cf51e7f3d571762ad | 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.Vector.Basic
public import Init.Data.Vector.Lemmas
public import Init.Data.Vector.Lex
public import Init.Data.Vector.MapIdx
public imp... |
4,753 | lean_file_chunk | 0f4a68dd219c34a4c135c5b55fd04da8e71079c52b865226f93953b474f880ad | 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.Grind.Tactics
public section
namespace Function
/--
Transforms a function from pairs into an equivalent two-parameter function.
Examples:
... |
343 | lean_file_chunk | cd7e6c9c9116fa77501d3b99de384cdadde47d619706231db062605933a3abe2 | 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.
Author: Leonardo de Moura
-/
module
prelude
public import Init.Data.ByteArray.Basic
public import Init.Data.ByteArray.Bootstrap
public import Init.Data.ByteArray.Extra
public import Ini... |
405 | lean_file_chunk | 21640315bc7c55794be3793e74348421215dfbf148a5417f5f4e256201b6286f | 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.Ord.Basic
public import Init.Data.Ord.BitVec
public import Init.Data.Ord.SInt
public import Init.Data.Ord.String
public import In... |
368 | lean_file_chunk | 97d6fea1e74af8a45454d82d05e2f1c6b2f2c58058a91b602cf22ad51ce411a0 | 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.Core
public section
deriving instance DecidableEq for PLift
instance [Subsingleton α] : Subsingleton (PLift α) where
allEq := fun ⟨a⟩ ... |
333 | lean_file_chunk | f3223b839efb4cc7de4637b07f480efde784ef9cbdb4600d55567ea7bf75a16a | 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.
Author: Leonardo de Moura
-/
module
prelude
public import Init.Data.ToString.Basic
public import Init.Data.ToString.Macro
public import Init.Data.ToString.Name
public import Init.Data.T... |
23,985 | lean_file_chunk | 74d8aeb221b37c7082c87ee558bba21eabaf8a0a5c3d7d45be0a370e8e2d877c | lean_source_file | lean_toolchain_source_file_chunks | /-
Copyright (c) 2023 F. G. Dorais. No rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: F. G. Dorais
-/
module
prelude
public import Init.NotationExtra
public section
namespace Bool
/--
Boolean “exclusive or”. `xor x y` can be written `x ^^ y`.
`x ^^ y` is `true` when p... |
2,361 | lean_file_chunk | cc5a31e15aaae06e37751774055459d93e4951ccf0d33386369906b9359d9e1f | lean_source_file | lean_toolchain_source_file_chunks | cases dp with | _ p => simp [p]
@[simp] theorem decide_iff_dist (p q : Prop) [dpq : Decidable (p ↔ q)] [dp : Decidable p] [dq : Decidable q] :
decide (p ↔ q) = (decide p == decide q) := by
cases dp with | _ p => simp [p]
@[bool_to_prop]
theorem and_eq_decide (p q : Bool) : (p && q) = decide (p ∧ q) := by simp
... |
239 | lean_file_chunk | 4dc7e03c7bf727033fa8060ad719b04b7fa6b3bbdfd4550cbc167b609839f64b | 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: Kim Morrison
-/
module
prelude
public import Init.Data.Range.Basic
public import Init.Data.Range.Lemmas |
2,896 | lean_file_chunk | 835b48dff720fce0398d40950943e081b9892c454801e9c24862bdfdf1b0028c | 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, Markus Himmel
-/
module
prelude
public import Init.Grind.Tactics
import Init.Data.Bool
public section
set_option linter.missingDocs true
/-- `PartialEquivBEq α` say... |
1,554 | lean_file_chunk | 7ce49586f08cc1cf5a4e379b68773d0c22b9826156cc7aaf38d7ea962c648478 | lean_source_file | lean_toolchain_source_file_chunks | /-
Copyright (c) 2021 Eric Rodriguez. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Eric Rodriguez
-/
module
prelude
public import Init.Data.Zero
public import Init.Core
public section
/-!
# `NeZero` typeclass
We create a typeclass `NeZero n` which carries around... |
322 | lean_file_chunk | db1e0415701c7423a24fc3626044976a5613094c08d7e6d0a352351555e53a34 | 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.Char.Basic
public import Init.Data.Char.Lemmas
public import Init.Data.Char.Order
public import Init.Data.Char.Ordin... |
1,248 | lean_file_chunk | 4877785d3dcc206b13740ebc6cc185ad49fc66b234a623d9c585736f63a7ec16 | lean_source_file | lean_toolchain_source_file_chunks | /-
Copyright (c) 2017 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Gabriel Ebner
-/
module
prelude
public import Init.Data.Array.Basic
public import Init.Data.Array.QSort
public import Init.Data.Array.BinSearch
public import Init.Data.Array.In... |
986 | lean_file_chunk | adf074428e3ac509ca09b438a6b72485ad1676a4889ad9b49c495ce3cf147199 | 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
public import Init.Data.Slice.Operations
public import Init.Data.Slice.Array
... |
1,421 | lean_file_chunk | 905e501128eeda8291fbdcfd3d9b0325454552bb7c7bdf39a86b979582a37224 | lean_source_file | lean_toolchain_source_file_chunks | /-
Copyright (c) 2021 Gabriel Ebner. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Gabriel Ebner, Mario Carneiro
-/
module
prelude
public import Init.Tactics
public section
/-!
Instances converting between `Zero α` and `OfNat α (nat_lit 0)`.
-/
instance (priority ... |
2,840 | lean_file_chunk | 8d03c0a9c1893b217ff90d412315d5651208b12f17200f60d1985e211f66fd5f | lean_source_file | lean_toolchain_source_file_chunks | /-
Copyright (c) 2014 Mario Carneiro. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Mario Carneiro, Gabriel Ebner
-/
module
prelude
public import Init.Coe
public section
/-!
# `NatCast`
We introduce the typeclass `NatCast R` for a type `R` with a "canonical
homomo... |
347 | lean_file_chunk | 78ec7f77072cef2351c5ed90878abeda3a140c3c7f4ba4aa45ec09689bbf7770 | lean_source_file | lean_toolchain_source_file_chunks | /-
Copyright (c) 2022 Henrik Böving. 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.UInt.BasicAux
public import Init.Data.UInt.Basic
public import Init.Data.UInt.Log2
public import Init.Data.UInt.Lemmas
public im... |
11,606 | lean_file_chunk | 388c7373a23d5c94f360b6c098e619a8333abf5ce2970b57c49c7ca50cf4022a | 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: Dany Fabian
-/
module
prelude
public import Init.GetElem
import Init.ByCases
import Init.PropLemmas
@[expose] public section
namespace Lean.Data.AC
inductive Expr
| var (x... |
3,720 | lean_file_chunk | 30d442afb016377f87a983f0cb321329ca3bfdf4c2b9904ab2900718d25da402 | lean_source_file | lean_toolchain_source_file_chunks | /-
Copyright (c) 2020 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Sebastian Ullrich, Andrew Kent, Leonardo de Moura
-/
module
prelude
public import Init.Data.Range
public import Init.Data.Array.Subarray
import Init.Data.Slice.Array.Basic
pu... |
4,622 | lean_file_chunk | cf6413637c1be6b4e2020114c162bf0ce5330e1f0f08ac736deb637ac01bf128 | lean_source_file | lean_toolchain_source_file_chunks | /-
Copyright (c) 2019 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Leonardo de Moura
-/
module
prelude
public import Init.System.IO
import Init.Data.ByteArray.Extra
public section
universe u
/-!
Basic random number generator support based on... |
1,595 | lean_file_chunk | eaa4f2005617dda1197c1e7aeb4340ce068867534aa720d7203e425b4254a350 | lean_source_file | lean_toolchain_source_file_chunks | /-
Copyright (c) 2017 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Sebastian Ullrich
The Reader monad transformer for passing immutable State.
-/
module
prelude
public import Init.Control.Except
public section
set_option linter.missingDocs ... |
3,653 | lean_file_chunk | 275e994d4997a557daeaf4fac06c49ae955115507d444a7f39b5740d1b2c5e96 | lean_source_file | lean_toolchain_source_file_chunks | /-
Copyright (c) 2017 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Leonardo de Moura, Sebastian Ullrich
-/
module
prelude
public import Init.Data.Option.Basic
public import Init.Control.MonadAttach
public section
set_option linter.missingDoc... |
11,170 | lean_file_chunk | 1c4f16c5c2a3da045455bfa47a88d30d0ace93f140d3ef68424c35f954c2fa4c | lean_source_file | lean_toolchain_source_file_chunks | /-
Copyright (c) 2017 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Jared Roesch, Sebastian Ullrich
The Except monad transformer.
-/
module
prelude
public import Init.Control.Basic
public import Init.Control.Id
@[expose] public section
names... |
2,214 | lean_file_chunk | fa33f1d2e6076f10cc392b58de72807c631eccf2459cebbaff589e3b6e3f0994 | lean_source_file | lean_toolchain_source_file_chunks | /-
Copyright (c) 2017 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Sebastian Ullrich
The identity Monad.
-/
module
prelude
public import Init.Control.MonadAttach
public section
universe u
/--
The identity function on types, used primarily ... |
4,123 | lean_file_chunk | 2b4ce3e6d724a7bb180e3d44482a9699c4ddcf457e04ef5e35ca817905bab526 | lean_source_file | lean_toolchain_source_file_chunks | /-
Copyright (c) 2020 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Leonardo de Moura, Sebastian Ullrich
The State monad transformer using IO references.
-/
module
prelude
public import Init.System.ST
public import Init.Control.Reader
public ... |
16,884 | lean_file_chunk | 9e4a0dbf00d6b1ab134513614fd1228081c342f117f3b78539520aa7e825da99 | lean_source_file | lean_toolchain_source_file_chunks | /-
Copyright (c) 2020 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Author: Leonardo de Moura, Sebastian Ullrich
-/
module
prelude
public import Init.Core
public import Init.BinderNameHint
@[expose] public section
universe u v w
/--
A `ForIn'` instan... |
4,622 | lean_file_chunk | 3146a98e1b9f4beebca67aab18f6026740e9913683b1498ae5d49d80c76bcd4a | lean_source_file | lean_toolchain_source_file_chunks | /-
Copyright (c) 2021 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Leonardo de Moura
-/
module
prelude
public import Init.Control.Lawful.Basic
public import Init.Ext
public section
set_option linter.missingDocs true
/-!
The State monad tran... |
429 | lean_file_chunk | a44a1072250b7b236820a17c983a3828a82bfae40dbccd2ffc68750a3d87bede | lean_source_file | lean_toolchain_source_file_chunks | /-
Copyright (c) 2021 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Sebastian Ullrich, Leonardo de Moura, Mario Carneiro
-/
module
prelude
public import Init.Control.Lawful.Basic
public import Init.Control.Lawful.Instances
public import Init.Co... |
2,180 | lean_file_chunk | c54a0ce0ab581d167f982df5d7450dfef57613dbe92ce65e5a1333b4381fc99b | 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: Sebastian Graf
-/
module
prelude
public import Init.Control.Except
public import Init.Control.Option
public section
/-!
This module provides specialized wrappers around `ExceptT` to s... |
4,758 | lean_file_chunk | 8e6abe3780310ac9f78a8825c2bac1c88830c61a70adad50ca750850fae6ba31 | lean_source_file | lean_toolchain_source_file_chunks | /-
Copyright (c) 2021 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Leonardo de Moura
-/
module
prelude
public import Init.Control.Lawful.Basic
import Init.SimpLemmas
public section
/-!
The Exception monad transformer using CPS style.
-/
/--... |
6,576 | lean_file_chunk | bbc6890848b178e7e6731aad95f2570013bfccd03612af8b5a6eb36a0811b783 | 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, Sebastian Ullrich
The State monad transformer.
-/
module
prelude
public import Init.Control.Except
public section
set_option linter.missingDocs true
univ... |
5,575 | lean_file_chunk | e057c81e9d34f07db57ce2f7481de65f3cbba1b07e0418bc1bb0f98797ae4882 | 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.Core
set_option linter.all true
set_option doc.verso true
/-!
# {name (scope := "Init.Control.MonadAttach")}`MonadAttach`
This mo... |
2,408 | lean_file_chunk | 16600f1a5f0dc8ed5e384cfe7b23acde31eddc2b95974c50fd9e8779fbfe20ca | lean_source_file | lean_toolchain_source_file_chunks | /-
Copyright (c) 2019 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Leonardo de Moura
-/
module
prelude
public import Init.Data.ToString.Basic
public import Init.Control.State
public section
universe u v
namespace EStateM
variable {ε σ α : T... |
3,186 | lean_file_chunk | 3c9a00851530e3ac7caa565d875025c112940e8cad965152c0a697acb8edf64d | lean_source_file | lean_toolchain_source_file_chunks | /-
Copyright (c) 2025 Amazon.com, Inc. or its affiliates. All Rights Reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Leonardo de Moura
-/
module
prelude
public import Init.Tactics
public section
namespace Lean.Grind
open Parser Tactic Grind
/--
`#grind_lint check` analyzes all th... |
3,945 | lean_file_chunk | a5697e1b2ec96b259012ff990ac0e6628c3de74cb6753f9ea99e0a3c5ec965ee | lean_source_file | lean_toolchain_source_file_chunks | /-
Copyright (c) 2025 Amazon.com, Inc. or its affiliates. All Rights Reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Leonardo de Moura
-/
module
prelude
public import Init.Grind.Tactics
import Init.Omega
public section
namespace Lean.Grind
abbrev isLt (x y : Nat) : Bool := x < ... |
367 | lean_file_chunk | b2eafc85240562f99e88663846699e216624270cf8f34dbdf5b42bc63cf67d00 | lean_source_file | lean_toolchain_source_file_chunks | /-
Copyright (c) 2024 Amazon.com, Inc. or its affiliates. All Rights Reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Leonardo de Moura
-/
module
prelude
public import Init.Grind.Tactics
public section
attribute [grind cases eager] And False Empty True PUnit Exists Subtype Prod ... |
10,194 | lean_file_chunk | 33741add38e9e35427123b94988e929cf95f1441de9326d053bac1bc2267bcc3 | lean_source_file | lean_toolchain_source_file_chunks | /-
Copyright (c) 2024 Amazon.com, Inc. or its affiliates. All Rights Reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Leonardo de Moura
-/
module
prelude
public import Init.Grind.Ring.Basic
public import Init.NotationExtra
import Init.ByCases
import Init.Classical
import Init.Data.... |
353 | lean_file_chunk | d9971430520b5a3a199882603bea0759928ef8f3ccd329b57bada9f5d6e12405 | lean_source_file | lean_toolchain_source_file_chunks | /-
Copyright (c) 2025 Lean FRO, LLC. or its affiliates. All Rights Reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Kim Morrison
-/
module
prelude
public import Init.Grind.Module.Basic
public import Init.Grind.Module.Envelope
public import Init.Grind.Module.OfNatModule
public impor... |
465 | lean_file_chunk | 024da5e735f099f02d4973fee56153d2b16771cbca5a52d64954d7e00e18c5fb | lean_source_file | lean_toolchain_source_file_chunks | /-
Copyright (c) 2025 Lean FRO, LLC. or its affiliates. All Rights Reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Kim Morrison
-/
module
prelude
public import Init.Grind.Ring.Basic
public import Init.Grind.Ring.Field
public import Init.Grind.Ring.OfScientific
public import Init.G... |
13,154 | lean_file_chunk | f96ee269ba65c8cea0abfa5c65b35902c5f65df56c3672b5033255d931e5344d | lean_source_file | lean_toolchain_source_file_chunks | /-
Copyright (c) 2025 Amazon.com, Inc. or its affiliates. All Rights Reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Leonardo de Moura
-/
module
prelude
public import Init.Tactics
public section
namespace Lean.Grind
/--
Gadget for representing generalization steps `h : x = val`... |
7,162 | lean_file_chunk | 8003af602aec1418672321d95f427d0f7c012acfcb03b2c8ccea390c24178771 | lean_source_file | lean_toolchain_source_file_chunks | /-
Copyright (c) 2025 Amazon.com, Inc. or its affiliates. All Rights Reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Leonardo de Moura
-/
module
prelude
public import Init.Grind.ToInt
import all Init.Grind.ToInt
public import Init.Data.Option.Basic
public section
namespace Lean... |
1,113 | lean_file_chunk | 3c7fb66dfffc4ff3479f3ed18fde744c369342c787159d3a5acc262faae8d0f0 | 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.Notation
public section
namespace Lean.Parser.Command
/--
`grind_annotated "YYYY-MM-DD"` marks the current file as having been manual... |
9,439 | lean_file_chunk | 85ac9f8d9c0e40bbe2f03f967a5541198028ad7a9869a7acaf2ee354db072983 | 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.Int.Lemmas -- shake: keep (used in `init_grind_norm`)
public import Init.Data.Int.Linear -- shake: kee... |
5,149 | lean_file_chunk | 9d6c53d4da53d2d64f0c19e4aabc8e6cfce9553384c4ca24d3cf0180f99af0eb | 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.Cast
public import Init.Grind.Tactics
public meta import Init.Grind.Tactics
import Init.Classical
public... |
15,281 | lean_file_chunk | 41c858592a17448369cc062c71e847bbdaede89b786773d6c28bd2d0b137e283 | lean_source_file | lean_toolchain_source_file_chunks | /-
Copyright (c) 2025 Amazon.com, Inc. or its affiliates. All Rights Reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Leonardo de Moura
-/
module
prelude
public import Init.Grind.Ordered.Ring
import Init.Data.Int.LemmasAux
import Init.Ext
import Init.Grind.Ordered.Order
import Init... |
13,116 | lean_file_chunk | ca43995a58321e5924992391a1a4eb9c92b811065d1beaef22039188ecd2ac9b | lean_source_file | lean_toolchain_source_file_chunks | /-
Copyright (c) 2025 Amazon.com, Inc. or its affiliates. All Rights Reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Leonardo de Moura
-/
module
prelude
public import Init.Grind.Attr
public section
namespace Lean.Parser.Tactic
syntax anchor := "#" noWs hexnum
syntax grindLemma ... |
14,113 | lean_file_chunk | 94b3a6601c2a3d46b4df32e439ff05dcbef5ac55e4b2c29120873e0ee96c9e1b | 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.Core
public import Init.Grind.Interactive
public section
namespace Lean.Parser.Tactic
open Parser.Tactic.Grin... |
907 | lean_file_chunk | d696fd7dc128f18152f48ea893038ab5bd420d7aa6afb7992ff5a53409fe7a6e | 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 meta import Init.Data.String.Defs
public import Init.Grind.Tactics
public section
namespace Lean.Grind
/-!
This is a h... |
1,232 | lean_file_chunk | 7779046824222e234e5df2f9b7f4a2de96ceb184dc1292a807636ac38ab1b194 | 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 meta import Init.Meta
public import Init.Tactics
import Init.Meta.Defs
public section
namespace Lean.Parser
/-- A use... |
280 | lean_file_chunk | 3801e92e063f650683bc624d919fd6a562a2927486ec66d0afd55a5c7e11db81 | lean_source_file | lean_toolchain_source_file_chunks | /-
Copyright (c) 2025 Amazon.com, Inc. or its affiliates. All Rights Reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Leonardo de Moura
-/
module
prelude
public import Init.Ext
public section
attribute [grind ext] Prod Subtype Sigma PSigma |
457 | lean_file_chunk | 395584b37065541d23dd071e37d8d909f80a67a556cc9fdcaf9ce70a2830c243 | lean_source_file | lean_toolchain_source_file_chunks | /-
Copyright (c) 2025 Lean FRO, LLC. or its affiliates. All Rights Reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Kim Morrison
-/
module
prelude
public import Init.Grind.Ordered.Order
public import Init.Grind.Ordered.Module
public import Init.Grind.Ordered.Ring
public import Ini... |
1,328 | lean_file_chunk | 1badb8cbbaf6fcc8fa0e024da18157c4c0f3e1fa2efcbb76c76c14458d91fc97 | lean_source_file | lean_toolchain_source_file_chunks | /-
Copyright (c) 2025 Amazon.com, Inc. or its affiliates. All Rights Reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Leonardo de Moura
-/
module
prelude
public import Init.Data.Function
public import Init.NotationExtra
import Init.Classical
public section
namespace Lean.Grind
open... |
12,049 | lean_file_chunk | 7459827a5b83bf8badc9fb17ca80a224f454dbf933e8315ca5007ffb61e5a059 | lean_source_file | lean_toolchain_source_file_chunks | /-
Copyright (c) 2025 Amazon.com, Inc. or its affiliates. All Rights Reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Leonardo de Moura
-/
module
prelude
public import Init.Core
public section
namespace Lean.Grind
/--
The configuration for `grind`.
Passed to `grind` using, for exam... |
9,851 | lean_file_chunk | de8cba9b68bfe28c1d5f540215546f5ad4bb601a8ff92a43d551da7386234f99 | lean_source_file | lean_toolchain_source_file_chunks | /-
Copyright (c) 2025 Amazon.com, Inc. or its affiliates. All Rights Reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Leonardo de Moura
-/
module
prelude
public import Init.Grind.Ring.Field
public import Init.Data.Rat.Basic
import Init.Data.Rat.Lemmas
import Init.ByCases
import Ini... |
13,162 | lean_file_chunk | 8fe71c0781847c94923404ef44d3977660fa39e81776be42f4b92d4fac722892 | lean_source_file | lean_toolchain_source_file_chunks | /-
Copyright (c) 2025 Amazon.com, Inc. or its affiliates. All Rights Reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Kim Morrison
-/
module
prelude
import Init.LawfulBEqTactics
public import Init.Data.Int.DivMod.Basic
public meta import Init.Grind.Tactics
import Init.ByCases
impo... |
23,956 | lean_file_chunk | ecfde7eb9f1be0dbb5fbeedd419c43d8b5a0bae1af804ae0812a012131d2b4c8 | lean_source_file | lean_toolchain_source_file_chunks | /-
Copyright (c) 2025 Amazon.com, Inc. or its affiliates. All Rights Reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Leonardo de Moura
-/
module
prelude
public import Init.Data.Bool
import Init.LawfulBEqTactics
public import Init.Data.RArray
import Init.Classical
@[expose] publi... |
11,668 | lean_file_chunk | 22624933445afdfdccb6788f849247ccbed2fd81d82eebcfade757d5d706cbc1 | lean_source_file | lean_toolchain_source_file_chunks | next => simp; intro; subst x; rw [Std.IdempotentOp.idempotent (self := inst₃)]
next y s ih =>
simp; intro h; cases h
next => subst x; rw [← Std.Associative.assoc (self := inst₁), Std.IdempotentOp.idempotent (self := inst₃)]
next h =>
replace ih := ih h
simp at ih
rw [← Std.Associative.as... |
4,613 | lean_file_chunk | db9cec0b31fa1d96abc35aff4a70f5ebbb27a2f09b5248969972ddbbe6e5831d | 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: Leonardo de Moura
-/
module
prelude
public import Init.Tactics
public section
namespace Lean.Parser.Sym.Simp
/-!
# Simproc and Discharger DSLs for `Sym.simp`
## Simproc DSL (`sym_simp... |
5,540 | lean_file_chunk | b91efd25f256f0fb50f80d5d61b3ce0282063e4a344957ef9b60cea92b0a4be4 | lean_source_file | lean_toolchain_source_file_chunks | /-
Copyright (c) 2025 Amazon.com, Inc. or its affiliates. All Rights Reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Leonardo de Moura
-/
module
prelude
import all Init.Data.Zero
public import Init.GrindInstances.ToInt
import all Init.GrindInstances.ToInt
public import Init.Data.... |
1,230 | lean_file_chunk | 9cd2d5c4a32244fe5a16950fb1f697c5bc4c245af0510c0b01959c22dc0e929d | lean_source_file | lean_toolchain_source_file_chunks | /-
Copyright (c) 2025 Lean FRO, LLC. or its affiliates. All Rights Reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Kim Morrison
-/
module
prelude
public import Init.Grind.Ring.Basic
public import Init.Data.Int.Lemmas
public import Init.Data.Int.Pow
import Init.Data.Int.DivMod.Lem... |
1,775 | lean_file_chunk | 8f6d173e43b3337a86a167434dd2f9747115ba794346e78fe393b76306a1c423 | lean_source_file | lean_toolchain_source_file_chunks | /-
Copyright (c) 2025 Robin Arnez. All Rights Reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Robin Arnez
-/
module
prelude
public import Init.Grind.Ring.OfScientific
public import Init.Data.Rat.Lemmas
import Init.Data.Int.DivMod.Lemmas
import Init.Data.Int.Lemmas
public section... |
1,292 | lean_file_chunk | d2d9789a584d385e942d5a0d215371ddbbec21b5a6be00cb2430818fb010b461 | lean_source_file | lean_toolchain_source_file_chunks | /-
Copyright (c) 2025 Lean FRO, LLC. or its affiliates. All Rights Reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Kim Morrison
-/
module
prelude
public import Init.Grind.Ordered.Ring
import Init.Data.Nat.Lemmas
import Init.Omega
open Std
public section
namespace Lean.Grind
i... |
1,749 | lean_file_chunk | 4a46267008612cc43778d3fd79d382e999dad11ad0f095c39a98d66f042f3734 | lean_source_file | lean_toolchain_source_file_chunks | /-
Copyright (c) 2025 Lean FRO, LLC. or its affiliates. All Rights Reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Kim Morrison
-/
module
prelude
public import Init.GrindInstances.ToInt
import all Init.Data.BitVec.Basic
import all Init.Grind.ToInt
public import Init.Data.BitVec.L... |
10,353 | lean_file_chunk | 6112d65ddd386f8aad4ae3a31dc16482998b2889df27803409e2b09a09ab6f12 | lean_source_file | lean_toolchain_source_file_chunks | /-
Copyright (c) 2025 Lean FRO, LLC. or its affiliates. All Rights Reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Kim Morrison
-/
module
prelude
import all Init.Grind.ToInt
public import Init.GrindInstances.ToInt
import all Init.Data.BitVec.Basic
import all Init.Data.SInt.Basic
... |
12,787 | lean_file_chunk | b1a51d4969d77ddefea468c888c64428d658d1b1d98affcc14a765e63c833f76 | lean_source_file | lean_toolchain_source_file_chunks | /-
Copyright (c) 2025 Lean FRO, LLC. or its affiliates. All Rights Reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Kim Morrison
-/
module
prelude
public import Init.GrindInstances.ToInt
import all Init.GrindInstances.ToInt
import all Init.Data.UInt.Basic
public import Init.Data.U... |
21,002 | lean_file_chunk | d710c157d3e40d7bc2efb2c13730fe648b4725b06aa74d8bfb0aba10c37872d7 | lean_source_file | lean_toolchain_source_file_chunks | /-
Copyright (c) 2025 Lean FRO, LLC. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Joachim Breitner
-/
module
prelude
import all Init.Data.List.Control
import all Init.Data.Option.Basic
import all Init.Data.Array.Basic
public import Init.Internal.Order.Basic
public... |
23,995 | lean_file_chunk | 0ce30fe72eb5da71143dd619fb130169b9ab634a0daeaa6af8137f060a667628 | lean_source_file | lean_toolchain_source_file_chunks | /-
Copyright (c) 2024 Lean FRO, LLC. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Joachim Breitner
-/
module
prelude
public import Init.System.IO -- for `MonoBind` instance
import all Init.Control.Except -- for `MonoBind` instance
import all Init.Control.StateRef... |
16,487 | lean_file_chunk | f3d6cb327deee56f6867c19bb0d43e40006f18d111d05c2fb859b58b4ea51572 | lean_source_file | lean_toolchain_source_file_chunks | apply h ⟨x,y⟩ hxy
end pprod_order
section flat_order
variable {α : Sort u}
set_option linter.unusedVariables false in
/--
`FlatOrder b` wraps the type `α` with the flat partial order generated by `∀ x, b ⊑ x`.
This is intended to be used in the construction of `partial_fixpoint`, and not meant to be used otherwise... |
634 | lean_file_chunk | a63e9d909b56557a616d6bd4133f612fade9e1af0bd63d3fd64bc34994ba4b89 | lean_source_file | lean_toolchain_source_file_chunks | /-
Copyright (c) 2024 Lean FRO, LLC. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Joachim Breitner
-/
module
prelude
public import Init.Notation
public section
namespace Lean.Order
/--
`monotonicity` performs one compositional step solving `monotone` goals,
using... |
13,386 | lean_file_chunk | 0b1cf87d1115a87dad1c50862cf8848f889d21ff17a2e3823421e497617e2b74 | 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.Order.ClassesExtra
public import Init.Data.Order.Classes
import Init.Data.Order.FactoriesExtra
import Init.Data.Order.Lemmas
pu... |
21,102 | lean_file_chunk | 0aa4b4dab4fcb00e27c429c02fb978583867066a2fac0df204cd9096dab63483 | 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.Factories
import all Init.Data.Order.Factories
public import Init.Classical
public import Init.Data.BEq
import Init.Data.B... |
8,103 | lean_file_chunk | 3a9c21643f1c473d522a7b65b575460cfd13c22cfcb1dbb42ce217cad59b57eb | 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.Order.Opposite
import Init.Data.Order.Lemmas
open Std
open scoped OppositeOrderInstances
/-! ## Definitions -/
/--
Returns ei... |
23,980 | lean_file_chunk | 3fe9caf17bede8e3049b660ca30811b865ba2c2e256f8d34faf5eaef0e38181f | 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.LemmasExtra -- shake: keep (instance inlined by `haveI`)
public import Init.Data.Order.FactoriesExtra
public import Init.... |
8,813 | lean_file_chunk | 80a91bcd3df4e2ef1b67216d1f42cc2d60507ecdeeabc8befd56cbf63edb46f5 | lean_source_file | lean_toolchain_source_file_chunks | Please ensure that a `LawfulOrderBEq` instance can be synthesized or \
manually provide the field `beq_iff`."
/--
Use this factory to conveniently define a linear preorder on a type `α` and all the associated
operations and instances given an `Ord α` instance.
Creates a `LinearPreorderPackage α` instance.... |
1,379 | lean_file_chunk | bf5bb4e661fa131903c64ec4703c5e7bc0de33139cc8a4925a9aafbb0f74143e | 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
namespace Std
/--
This typeclass states that the synthesized `Ord α` instance is compatible with the `LE α`
instance... |
23,963 | lean_file_chunk | bd645e7854bb7414d6bdfc56803edad5457e6e2214318cfdb613274c2231e35d | 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, Paul Reichert, Robin Arnez
-/
module
prelude
import Init.Data.List.Lemmas
import Init.Data.Array.DecidableEq
public import Init.Data.Ord.Array
public import Init.Data.BE... |
4,967 | lean_file_chunk | b28f8e169ca6fce0afb2b3a2e1bce92adf92868f2f4b72e792bf27543381dd3b | lean_source_file | lean_toolchain_source_file_chunks | inferInstanceAs <| OrientedCmp (compareLex _ _)
instance {α β} [Ord α] [Ord β] [TransOrd α] [TransOrd β] :
TransOrd (α × β) :=
inferInstanceAs <| TransCmp (compareLex _ _)
instance {α β} [Ord α] [Ord β] [LawfulEqOrd α] [LawfulEqOrd β] : LawfulEqOrd (α × β) where
eq_of_compare {a b} h := by
simp only [comp... |
5,221 | lean_file_chunk | b8496fe5e431ab0a39eb33fa98915d829398bd8b52d1a1c7305d5f2bacedf9ef | 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.ClassesExtra
public import Init.Data.Order.Ord
public import Init.Data.Order.Classes
import Init.Data.Bool
namespace Std
... |
10,901 | lean_file_chunk | c6303c78c6128cdd67b12cb94487561bcc69fbed6b5a563b2d2992f0bc1d0936 | 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.Classical
namespace Std
/-!
This module provides utilities for the creation of order-related typecla... |
7,549 | lean_file_chunk | a39efab90207f96722be9a3cc1ed81b52e51b857c40ded608fe125f732778841 | 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.ByCases
public import Init.Classical
public import Init.Data.Order.Classes
public import Init.Data.Order.ClassesExtra
public import Init.Dat... |
7,206 | lean_file_chunk | c2125f9a28c5a18216668e5758bf7c2533270885f8ef88ffc7259c85f2020c19 | 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.Core
namespace Std
/-!
# Order-related typeclasses
This module provides the typeclasses used to state that basic operations on som... |
23,993 | lean_file_chunk | 0c4c987c9d9eee1348c27cda96cc4de3a88c9b1fc890b78d8b292ef6e061bd95 | 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: Markus Himmel, Mac Malone
-/
module
prelude
import all Init.Data.BitVec.Basic
import all Init.Data.UInt.Basic
public import Init.Data.Nat.Bitwise
public import Init.Data.Nat.Lemmas
pub... |
23,969 | lean_file_chunk | 3ca471423f0678e29e04ba5d01b34f25a141ce6e4dfbfc57f6c842cfb726aba3 | lean_source_file | lean_toolchain_source_file_chunks | @[simp] theorem UInt64.toUInt32_shiftLeft_mod (a b : UInt64) : (a <<< (b % 32)).toUInt32 = a.toUInt32 <<< b.toUInt32 := by
rw [UInt64.toUInt32_shiftLeft _ _ (Nat.mod_lt _ (by decide)), UInt64.toUInt32_mod_of_dvd _ _ (by simp)]
simp [← UInt32.shiftLeft_eq_shiftLeft_mod]
@[simp] theorem UInt64.toUSize_shiftLeft_mod (... |
23,945 | lean_file_chunk | b381ccfb4b4b02d92c243d10398d12a17479ff95b3504a0418ddbe0500360d5c | lean_source_file | lean_toolchain_source_file_chunks | @[simp] theorem UInt8.ofNat_shiftLeft (a b : Nat) (hb : b < 8) :
UInt8.ofNat (a <<< b) = UInt8.ofNat a <<< UInt8.ofNat b := by
rw [UInt8.ofNat_eq_iff_mod_eq_toNat, UInt8.toNat_shiftLeft, toNat_ofNat', toNat_ofNat',
Nat.mod_mod_of_dvd _ (by decide), Nat.mod_eq_of_lt hb, Nat.mod_two_pow_shiftLeft_mod_two_pow]
@... |
23,954 | lean_file_chunk | ae4324af296cdeb7431dcd45b8b75416f6038dfa95f2c0d82c751f58ceeaa602 | lean_source_file | lean_toolchain_source_file_chunks | instance : Std.Associative (α := UInt32) (· ^^^ ·) := ⟨UInt32.xor_assoc⟩
instance : Std.Associative (α := UInt64) (· ^^^ ·) := ⟨UInt64.xor_assoc⟩
instance : Std.Associative (α := USize) (· ^^^ ·) := ⟨USize.xor_assoc⟩
protected theorem UInt8.xor_comm (a b : UInt8) : a ^^^ b = b ^^^ a := UInt8.toBitVec_inj.1 (BitVec.xor... |
5,252 | lean_file_chunk | 578b838d9e40084f370bb1fed3a87dffb49a9c92d949a184929154fdd7628494 | lean_source_file | lean_toolchain_source_file_chunks | theorem UInt16.shiftRight_xor {a b c : UInt16} : (a ^^^ b) >>> c = (a >>> c) ^^^ (b >>> c) := by
simp [← UInt16.toBitVec_inj, BitVec.ushiftRight_xor_distrib]
theorem UInt32.shiftRight_xor {a b c : UInt32} : (a ^^^ b) >>> c = (a >>> c) ^^^ (b >>> c) := by
simp [← UInt32.toBitVec_inj, BitVec.ushiftRight_xor_distrib]
... |
23,923 | lean_file_chunk | 0a8190945feb505f42899f6bd0ddd5d4cfb22c581a8628c2dc9ff08b290d94e7 | 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, François G. Dorais, Mario Carneiro, Mac Malone, Markus Himmel
-/
module
prelude
public import Init.Data.UInt.Basic
import all Init.Data.UInt.Bas... |
23,940 | lean_file_chunk | 10fcaf6ba121d28d791604d973983cb8fa2a2818db20e44c4224564bbbba66a0 | lean_source_file | lean_toolchain_source_file_chunks | @[simp] theorem UInt8.toFin_toUInt32 (n : UInt8) : n.toUInt32.toFin = n.toFin.castLE (by decide) := (rfl)
@[simp] theorem UInt8.toFin_toUInt64 (n : UInt8) : n.toUInt64.toFin = n.toFin.castLE (by decide) := (rfl)
@[simp] theorem UInt8.toFin_toUSize (n : UInt8) :
n.toUSize.toFin = n.toFin.castLE size_le_usizeSize := (r... |
23,913 | lean_file_chunk | 5eaf4975e5c338b77799a8f62d973884c83862371d4be7aa44ba999e1e187026 | lean_source_file | lean_toolchain_source_file_chunks | @[simp] theorem UInt64.toUInt8_toUInt16 (n : UInt64) : n.toUInt16.toUInt8 = n.toUInt8 :=
UInt8.toNat.inj (by simp)
@[simp] theorem UInt64.toUInt8_toUInt32 (n : UInt64) : n.toUInt32.toUInt8 = n.toUInt8 :=
UInt8.toNat.inj (by simp)
@[simp] theorem UInt64.toUInt8_toUSize (n : UInt64) : n.toUSize.toUInt8 = n.toUInt8 :=... |
23,931 | lean_file_chunk | f44b8c7a42c1a02da5dbc361d8ae047099465bd1eb0db549c306ec9fef6b9bd6 | lean_source_file | lean_toolchain_source_file_chunks | (UInt8.ofNatLT n h).toUInt32 = UInt32.ofNatLT n (Nat.lt_of_lt_of_le h (by decide)) := (rfl)
theorem UInt8.toUInt64_ofNatLT {n : Nat} (h) :
(UInt8.ofNatLT n h).toUInt64 = UInt64.ofNatLT n (Nat.lt_of_lt_of_le h (by decide)) := (rfl)
theorem UInt8.toUSize_ofNatLT {n : Nat} (h) :
(UInt8.ofNatLT n h).toUSize = USize... |
23,898 | lean_file_chunk | 68be27f7ed2831ce3e9a6f6866847770daf72ea3ad335d60a24f509f68c4daaa | lean_source_file | lean_toolchain_source_file_chunks | @[simp] theorem UInt8.toUInt16_mod (a b : UInt8) : (a % b).toUInt16 = a.toUInt16 % b.toUInt16 := (rfl)
@[simp] theorem UInt8.toUInt32_mod (a b : UInt8) : (a % b).toUInt32 = a.toUInt32 % b.toUInt32 := (rfl)
@[simp] theorem UInt8.toUInt64_mod (a b : UInt8) : (a % b).toUInt64 = a.toUInt64 % b.toUInt64 := (rfl)
@[simp] the... |
23,921 | lean_file_chunk | 91d8e398fda8f791d727b8175fcf05bcefda82db87b703be8c9ee2afa713eb54 | lean_source_file | lean_toolchain_source_file_chunks | @[simp] theorem UInt64.toUInt16_le {a b : UInt64} : a.toUInt16 ≤ b.toUInt16 ↔ a % 65536 ≤ b % 65536 := by
simp [le_iff_toNat_le, UInt16.le_iff_toNat_le]
@[simp] theorem USize.toUInt16_le {a b : USize} : a.toUInt16 ≤ b.toUInt16 ↔ a % 65536 ≤ b % 65536 := by
simp [le_iff_toNat_le, UInt16.le_iff_toNat_le]
@[simp] the... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.