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,620 | lean_file_chunk | 74f17c49f57ace04b56b6edef900a8d7b8bf3f80b7fe85ee7f2330a86f4a5fa7 | lean_source_file | lean_toolchain_source_file_chunks | r β mkCongr r (β simp arg)
else
r β mkCongrFun r (β dsimp arg)
i := i + 1
return r
/-- Helper function for `simpAppUsingCongr` -/
private def mkCongrFun' (e : Expr) (r : Result) (a : Expr) : MetaM Result := do
let e' := e.updateApp! r.expr a
match r.proof? with
| none => return { expr :... |
23,912 | lean_file_chunk | 0f86226a69feaf5b0aaab6c80bbfe48503cdea1da7c54287915ac368312628f0 | lean_source_file | lean_toolchain_source_file_chunks | /-
Copyright (c) 2020 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Leonardo de Moura
-/
module
prelude
public import Lean.Meta.Tactic.Replace
public import Lean.Meta.Tactic.Simp.Rewrite
public import Lean.Meta.Tactic.Simp.Diagnostics
public imp... |
16,420 | lean_file_chunk | 37aafe8ef253bb23d780d584b1eb7807a78ceb2688c8079f95e233594866c6d1 | lean_source_file | lean_toolchain_source_file_chunks | let hType β if thmHasBinderNameHint then hType.resolveBinderNameHint else pure hType
try
if (β processCongrHypothesis h hType) then
modified := true
catch _ =>
trace[Meta.Tactic.simp.congr] "processCongrHypothesis {c.theoremName} failed {hType}"
-- Remark: we don't need to ... |
2,852 | lean_file_chunk | 0d9d33d9690b42041ade71ab08be430c455e7266eac52c860f6333f4eca983d4 | lean_source_file | lean_toolchain_source_file_chunks | /-
Copyright (c) 2020 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Leonardo de Moura
-/
module
prelude
public import Lean.Meta.Diagnostics
public import Lean.Meta.Tactic.Simp.Types
public section
namespace Lean.Meta.Simp
private def originT... |
1,415 | lean_file_chunk | a77832aa6a6c133f808ee85d0d0e59770fb18103d650beac0e741c5799815d94 | 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: Wojciech RΓ³ΕΌowski
-/
module
prelude
public import Lean.ScopedEnvExtension
/-!
# `@[cbv_opaque]` Attribute and Extension
Scoped set of declaration names that `cbv` should not unfold.
... |
3,891 | lean_file_chunk | b63a640f157f275f14386c25723ff6a4b460eecacd3c86efd2d07ff4d422a770 | 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: Wojciech RΓ³ΕΌowski
-/
module
prelude
public import Lean.Meta.Sym.Simp.SimpM
import Lean.Meta.Sym.InferType
import Lean.Meta.Sym.AlphaShareBuilder
import Lean.Meta.Sym.LitValues
/-!
# ... |
11,754 | lean_file_chunk | 6b79964c64a027ac03313f061617d5ee114d32d6b08c213af9427af5bee7c9de | 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: Wojciech RΓ³ΕΌowski
-/
module
prelude
public import Lean.Compiler.InitAttr
public import Lean.ScopedEnvExtension
public import Lean.Meta.Sym.Simp.SimpM
public import Lean.Meta.Sym.Simp.Re... |
2,774 | lean_file_chunk | f83f4bee875d35c5760d92ea373f26075ce2951962454f11225c863edc644c8c | 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: Wojciech RΓ³ΕΌowski
-/
module
prelude
public import Lean.Meta.Sym.Simp.Theorems
import Lean.Meta.Match.MatchEqsExt
import Lean.Meta.Eqns
/-!
# Cached Theorem Lookup
Per-function cach... |
5,327 | lean_file_chunk | d069119a52d9b3d44165d121c3dc884faec9893363251539ad6a2224a5731d99 | 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: Wojciech RΓ³ΕΌowski
-/
module
prelude
public import Lean.Data.NameMap
public import Lean.ScopedEnvExtension
public import Lean.Elab.InfoTree
public import Lean.Meta.Sym.Simp.Theorems
impo... |
21,186 | lean_file_chunk | b1f7017a63750c3c3c1dbc472529a20c6ce66f6667f6d889c8a329ebdb1d2de1 | 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: Wojciech RΓ³ΕΌowski
-/
module
prelude
public import Lean.Meta.Sym.Simp.SimpM
public import Lean.Meta.Tactic.Cbv.Opaque
public import Lean.Meta.Tactic.Cbv.ControlFlow
import Lean.Meta.Ta... |
16,896 | lean_file_chunk | 57a40d00b824efb5534842f1a24f468d8d83aad4f742eeb4c95a935d23a797ab | 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: Wojciech RΓ³ΕΌowski
-/
module
prelude
public import Lean.Meta.Sym.Simp.SimpM
import Lean.Meta.Sym.Simp.Result
import Lean.Meta.Sym.Simp.Rewrite
import Lean.Meta.Sym.Simp.ControlFlow
impor... |
6,006 | lean_file_chunk | a4a9710b3bcd3440caaa4c27b606c0cbf7322f3accb344601899edc40d4cb863 | 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.Try
public import Lean.Meta.Tactic.LibrarySearch
public import Lean.Meta.Tactic.FunIndCollect
public section
... |
11,982 | lean_file_chunk | d61f56e37c56edce881354951ec7902e0dde678921d471a42f14104655a74cb8 | 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.Lemmas
public import Lean.Meta.Tactic.Grind.Action
import Lean.Meta.Tactic.Apply
import Lean.Meta.Tacti... |
1,263 | lean_file_chunk | 66393c3f6261298ae638d6e6784f0c8e901926ed07105cae0dd7731d10f60ee7 | 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.Array.QSort
public import Std.Data.HashSet
public import Init.Data.Hashable
public section
namespace Le... |
641 | lean_file_chunk | 0f6522f4aa1985219fb4d38cebd264800b7918bd4e7ae5efef9127e21146c718 | lean_source_file | lean_toolchain_source_file_chunks | /-
Copyright (c) 2025 Amazon.com, Inc. or its affiliates. All Rights Reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Leonardo de Moura
-/
module
prelude
public import Lean.Meta.Tactic.Grind.Arith.Util
public import Lean.Meta.Tactic.Grind.Arith.Types
public import Lean.Meta.Tactic.... |
15,035 | lean_file_chunk | 32df2ffa4956d9be282f3889b8b1bf4f348261092fc2b0bf6fc448d86dc86df4 | lean_source_file | lean_toolchain_source_file_chunks | /-
Copyright (c) 2024 Amazon.com, Inc. or its affiliates. All Rights Reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Leonardo de Moura
-/
module
prelude
public import Lean.Meta.Tactic.Grind.Types
import Lean.Meta.Tactic.Grind.Inv
import Lean.Meta.Tactic.Grind.PP
import Lean.Meta.T... |
9,478 | lean_file_chunk | b7ea4a0469e58a937b4fa2020acf752d0ee4ea4b4c48098c0f33405a6a9f74f6 | lean_source_file | lean_toolchain_source_file_chunks | /-
Copyright (c) 2025 Amazon.com, Inc. or its affiliates. All Rights Reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Leonardo de Moura
-/
module
prelude
public import Lean.Meta.Tactic.Simp.Simproc
import Lean.Meta.Tactic.Grind.MatchDiscrOnly
import Lean.Meta.Tactic.Grind.ForallPro... |
6,938 | lean_file_chunk | be71f2d120f0d5efd562d3d7b33e78e1ad8f04b797e59fc95d0297a2934e15a3 | lean_source_file | lean_toolchain_source_file_chunks | /-
Copyright (c) 2024 Amazon.com, Inc. or its affiliates. All Rights Reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Leonardo de Moura
-/
module
prelude
public import Lean.Meta.Tactic.Cases
public import Lean.Meta.Tactic.Grind.Extension
public section
namespace Lean.Meta.Grind
-- ... |
4,293 | lean_file_chunk | 0491012056bfa4c2d92b72d1343f5bcab4f179d07a996de9271fb78259cc682b | lean_source_file | lean_toolchain_source_file_chunks | /-
Copyright (c) 2025 Amazon.com, Inc. or its affiliates. All Rights Reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Leonardo de Moura
-/
module
prelude
public import Lean.Meta.Tactic.Util
import Lean.Meta.Tactic.Grind.Util
import Lean.Meta.Match.MatcherApp
import Lean.Meta.Tactic... |
9,081 | lean_file_chunk | 9904c5710b18aa7f4717d09f0361ce55b528741cd5e257daab4631b3c9624ef9 | lean_source_file | lean_toolchain_source_file_chunks | /-
Copyright (c) 2025 Amazon.com, Inc. or its affiliates. All Rights Reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Leonardo de Moura
-/
module
prelude
public import Lean.Meta.Tactic.Grind.Types
import Init.Grind.Util
import Lean.Meta.Tactic.Grind.Simp
public section
namespace Le... |
2,648 | lean_file_chunk | 71bf4e25a14d9109b2fa5196caaabd1622bfaa03f7ef8a50f4d6c155dca08436 | lean_source_file | lean_toolchain_source_file_chunks | /-
Copyright (c) 2024 Amazon.com, Inc. or its affiliates. All Rights Reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Leonardo de Moura
-/
module
prelude
public import Lean.Meta.Tactic.Grind.Proof
import Init.Grind
public section
namespace Lean.Meta.Grind
abbrev PropagatorMap := S... |
2,308 | lean_file_chunk | f2f697188eece8e44e463ae57ec34e77fcd1c77e05d2da31b3d79fb18d485886 | 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.Repr
meta import Init.MetaTypes -- shake: keep (dependency of `simp +decide`, fix)
public section
names... |
721 | lean_file_chunk | 87fe4c16776631910fcf1e01bef3d3b9c80a8d526ebea0e2eb525f61d776c507 | lean_source_file | lean_toolchain_source_file_chunks | /-
Copyright (c) 2025 Amazon.com, Inc. or its affiliates. All Rights Reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Leonardo de Moura
-/
module
prelude
public import Lean.Meta.Tactic.Grind.Types
public section
namespace Lean.Meta.Grind
def mkLetOfMap {_ : Hashable Ξ±} {_ : BEq Ξ±}... |
958 | lean_file_chunk | 768e760ae74daf7fa19845406b3e8e99c7cabe2308181711f9177c4c172e7a6d | lean_source_file | lean_toolchain_source_file_chunks | /-
Copyright (c) 2025 Amazon.com, Inc. or its affiliates. All Rights Reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Leonardo de Moura
-/
module
prelude
public import Lean.Expr
import Init.Grind.Ring.Envelope
import Init.Grind.Module.Envelope
namespace Lean.Meta.Grind
/-- Returns... |
13,315 | lean_file_chunk | bf9d47eca221c798208fbda11438d8657b3cb49a6e4eefbee90b4fe7c0f98733 | lean_source_file | lean_toolchain_source_file_chunks | /-
Copyright (c) 2024 Amazon.com, Inc. or its affiliates. All Rights Reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Leonardo de Moura
-/
module
prelude
public import Lean.Meta.Tactic.Grind.Injective
public import Lean.Meta.Tactic.Grind.Cases
public import Lean.Meta.Tactic.Grind.E... |
2,318 | lean_file_chunk | 1d3c647744afde1b868f9dcee2aa874986270c3c185cf009d90cc876d5e1e0a2 | 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
public import Lean.Meta.Tactic.Grind.Types
import Lean.Meta.Constructions.CtorIdx
import Lean.Meta.CtorIdxHInj
public section
namespace Lean.Meta.Gri... |
18,999 | lean_file_chunk | 5307c191bb9f5bb7c7f1be482d56f057ac5c9e363ee46f16f70a8f44059aff04 | lean_source_file | lean_toolchain_source_file_chunks | /-
Copyright (c) 2025 Amazon.com, Inc. or its affiliates. All Rights Reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Leonardo de Moura
-/
module
prelude
public import Lean.Meta.Tactic.Grind.Action
public import Lean.Meta.Tactic.Grind.Anchor
import Lean.Meta.Tactic.Grind.Intro
impo... |
17,264 | lean_file_chunk | adef75a819351edafde19353c971b1ff646b05ec5a75d94217a51cc59dd3bc8e | 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 Init.Grind
import Lean.Meta.Tactic.Contradiction
import Lean.Meta.Tactic.Grind.ProveEq
public import Lean.Meta.Tactic.Gri... |
380 | lean_file_chunk | d84a792ffca226fae818829b7c35fd8c98faa8482d0095fa06262167c61ba091 | lean_source_file | lean_toolchain_source_file_chunks | /-
Copyright (c) 2025 Amazon.com, Inc. or its affiliates. All Rights Reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Leonardo de Moura
-/
module
prelude
public import Lean.Meta.Sym.SynthInstance
public section
namespace Lean.Meta.Grind
export Sym (synthInstance synthInstance? syn... |
6,406 | lean_file_chunk | 9b208f75c5649734785e3391df4cdeaf4c6e8d1c3d31ba6f1d0d72ec3a19b348 | lean_source_file | lean_toolchain_source_file_chunks | /-
Copyright (c) 2024 Amazon.com, Inc. or its affiliates. All Rights Reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Leonardo de Moura
-/
module
prelude
public import Lean.Parser.Command
public section
namespace Lean.Parser.Command
namespace GrindCnstr
def isValue := leading_par... |
1,888 | lean_file_chunk | c31bfe84226c885e5112ed863f04ab66f7671952fc27fd41cdb10a3dc2e9063b | lean_source_file | lean_toolchain_source_file_chunks | /-
Copyright (c) 2025 Amazon.com, Inc. or its affiliates. All Rights Reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Kim Morrison
-/
module
prelude
public import Lean.Meta.Tactic.Grind.Types
import Lean.Meta.Tactic.Grind.SynthInstance
import Lean.Meta.Tactic.Grind.Util
public sect... |
8,203 | lean_file_chunk | d39bf790ee76baad011ccef1851633dd8f64e4b568047a2384dbfc36afc2ee02 | lean_source_file | lean_toolchain_source_file_chunks | /-
Copyright (c) 2024 Amazon.com, Inc. or its affiliates. All Rights Reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Leonardo de Moura
-/
module
prelude
public import Lean.Meta.Tactic.Simp.Simproc
import Init.Simproc
import Lean.Meta.Tactic.Clear
import Lean.Meta.Sym.Util
public i... |
724 | lean_file_chunk | 7627057787c9f2a0dfd4a9211df499e26cc1f2e14a09fb7604e55668e22200c0 | lean_source_file | lean_toolchain_source_file_chunks | /-
Copyright (c) 2025 Amazon.com, Inc. or its affiliates. All Rights Reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Leonardo de Moura
-/
module
prelude
public import Lean.Meta.Tactic.Grind.Action
import Lean.Meta.Tactic.Grind.EMatchAction
import Lean.Meta.Tactic.Grind.Split
names... |
4,712 | lean_file_chunk | ba5f80cdf20bb26e173aef5160910661f98703c27fdf9b77c8f3be968edd84ee | lean_source_file | lean_toolchain_source_file_chunks | /-
Copyright (c) 2024 Amazon.com, Inc. or its affiliates. All Rights Reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Leonardo de Moura
-/
module
prelude
public import Lean.Meta.Tactic.Grind.Types
import Lean.Meta.Injective
import Lean.Meta.Tactic.Grind.Simp
public section
namespac... |
13,816 | lean_file_chunk | 8a48e08c61d1027ed2de97ee96321cf7a06e22595f44546726b6a69e8e8b0d78 | 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.Propagator
import Init.Simproc
import Init.Grind.Norm
import Lean.Meta.Tactic.Grind.Internalize
import ... |
1,344 | lean_file_chunk | bfdaeaaad14ab44f0594db61bf58897deea8f46bc7688e36f5014e2fb76acf0d | lean_source_file | lean_toolchain_source_file_chunks | /-
Copyright (c) 2025 Amazon.com, Inc. or its affiliates. All Rights Reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Leonardo de Moura
-/
module
prelude
public import Lean.Meta.Tactic.Grind.Order.Types
public import Lean.Meta.Tactic.Grind.Order.Internalize
public import Lean.Meta.... |
23,881 | lean_file_chunk | b03761e67dfecbe01236f3f2b9785e95fb084784baf6cf24c3705ead045928b3 | lean_source_file | lean_toolchain_source_file_chunks | /-
Copyright (c) 2024 Amazon.com, Inc. or its affiliates. All Rights Reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Leonardo de Moura
-/
module
prelude
public import Lean.Meta.Tactic.Grind.Types
import Lean.Meta.Tactic.Grind.Arith.IsRelevant
import Lean.Meta.Tactic.Grind.Util
imp... |
5,119 | lean_file_chunk | ba323d1b282bb025db427f1fd576e1467e10cc6297c082e0fe63a529ecfb3e34 | lean_source_file | lean_toolchain_source_file_chunks | private partial def internalizeImpl (e : Expr) (generation : Nat) (parent? : Option Expr := none) : GoalM Unit := withIncRecDepth do
if (β alreadyInternalized e) then
trace_goal[grind.debug.internalize] "already internalized: {e}"
/-
Even if `e` has already been internalized, we must check whether it has ... |
7,963 | lean_file_chunk | 0b77e61ec7db0d5e73ace4adf88d8a1ada5b5b28e673e008c8df1c44a999f0f1 | lean_source_file | lean_toolchain_source_file_chunks | /-
Copyright (c) 2025 Amazon.com, Inc. or its affiliates. All Rights Reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Leonardo de Moura
-/
module
prelude
public import Lean.Meta.Tactic.Grind.Theorems
public section
namespace Lean.Meta.Grind
/-- Types that `grind` will case-split o... |
2,804 | lean_file_chunk | da54f09cb6aeabd2c813a621fb91200f32f43c83468e5771a7be364a3fab6f71 | lean_source_file | lean_toolchain_source_file_chunks | /-
Copyright (c) 2025 Amazon.com, Inc. or its affiliates. All Rights Reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Leonardo de Moura
-/
module
prelude
public import Lean.Meta.Tactic.Grind.Types
import Lean.Meta.Tactic.Grind.Split
import Lean.Meta.Tactic.Grind.EMatchAction
public... |
13,625 | lean_file_chunk | 848cffef74303246857ba259a2a8eb219eec012cb19cdba08dc75fc3e5fc4f7a | lean_source_file | lean_toolchain_source_file_chunks | /-
Copyright (c) 2024 Amazon.com, Inc. or its affiliates. All Rights Reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Leonardo de Moura
-/
module
prelude
public import Lean.Meta.Tactic.Grind.Types
import Init.Grind.Lemmas
import Init.Grind.Util
public section
namespace Lean.Meta.Gr... |
10,985 | lean_file_chunk | 2cb5f9fe72a3315be88dfb6f2683f7218938e7e545b59ee258d1d18e047c68ac | lean_source_file | lean_toolchain_source_file_chunks | /-
Copyright (c) 2024 Amazon.com, Inc. or its affiliates. All Rights Reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Leonardo de Moura
-/
module
prelude
public import Lean.Meta.Tactic.Grind.Types
import Init.Grind.Util
import Init.Grind.Injective
import Init.Grind.PP
import Lean.M... |
4,448 | lean_file_chunk | c35c9cf770552d1265a4f4c8349bbe7815661389b99def1c7e61601ea4c8dc05 | lean_source_file | lean_toolchain_source_file_chunks | /-
Copyright (c) 2025 Amazon.com, Inc. or its affiliates. All Rights Reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Leonardo de Moura
-/
module
prelude
public import Lean.Meta.Tactic.Grind.Anchor
namespace Lean.Meta.Grind
/--
Returns pairs `(type, anchor)` where `type` is the typ... |
5,291 | lean_file_chunk | 093317e360b30f75e79242c95aad4c8924cd06f486497b106ca08c8fb1389caa | lean_source_file | lean_toolchain_source_file_chunks | /-
Copyright (c) 2025 Amazon.com, Inc. or its affiliates. All Rights Reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Leonardo de Moura
-/
module
prelude
public import Lean.Meta.Tactic.Grind.Types
import Lean.Meta.Tactic.Grind.CastLike
public section
namespace Lean.Meta.Grind
/--
... |
2,193 | lean_file_chunk | 5518c651399824ab8a819046085b790d37d6f3623d16473cd22faae84f3fa0e6 | lean_source_file | lean_toolchain_source_file_chunks | /-
Copyright (c) 2024 Amazon.com, Inc. or its affiliates. All Rights Reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Leonardo de Moura
-/
module
prelude
public import Lean.Meta.Tactic.Grind.Types
import Init.Grind.Propagator
import Init.Grind.Injective
import Lean.Meta.Tactic.Grin... |
7,699 | lean_file_chunk | 0429657e28370e9fed3f654378bfea19267ff86def6dbb00952f531b4b99055e | lean_source_file | lean_toolchain_source_file_chunks | /-
Copyright (c) 2025 Amazon.com, Inc. or its affiliates. All Rights Reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Leonardo de Moura
-/
module
prelude
public import Lean.Meta.Tactic.Grind.Intro
import Lean.Util.ParamMinimizer
import Lean.Meta.Tactic.Grind.EMatch
import Lean.Meta... |
1,278 | lean_file_chunk | 1f7686f18407761dba06dcee18696e9edbaf5590a1e36c8aa4942db274da4dba | lean_source_file | lean_toolchain_source_file_chunks | /-
Copyright (c) 2025 Amazon.com, Inc. or its affiliates. All Rights Reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Leonardo de Moura
-/
module
prelude
public import Lean.Meta.Tactic.Grind.Types
namespace Lean.Meta.Grind
public inductive Filter where
| true
| const (declName... |
4,178 | lean_file_chunk | 6ed73b56442b35effe0627de09e10b6f55f55cb23efa6bdae880cb9326186e5d | lean_source_file | lean_toolchain_source_file_chunks | /-
Copyright (c) 2025 Amazon.com, Inc. or its affiliates. All Rights Reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Leonardo de Moura
-/
module
prelude
public import Lean.Meta.Tactic.Grind.Types
namespace Lean.Meta.Grind
/-!
Given an auto-generated `grind` tactic script, collect ... |
1,960 | lean_file_chunk | b838cae18ef0588c0025b8ead51c4986002414bee438c4cf73e733929f35b0e5 | lean_source_file | lean_toolchain_source_file_chunks | /-
Copyright (c) 2025 Amazon.com, Inc. or its affiliates. All Rights Reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Leonardo de Moura
-/
module
prelude
public import Lean.Meta.Tactic.Grind.Types
import Lean.Meta.Tactic.Grind.Util
import Lean.Meta.Tactic.Grind.SynthInstance
public... |
4,734 | lean_file_chunk | 166e83e9e520209d9aa1d2513473ef6dffcca9617b4d5a41cfcf371587493537 | lean_source_file | lean_toolchain_source_file_chunks | /-
Copyright (c) 2024 Amazon.com, Inc. or its affiliates. All Rights Reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Leonardo de Moura
-/
module
prelude
public import Lean.Meta.Tactic.Grind.Types
import Lean.Meta.Tactic.Grind.MarkNestedSubsingletons
import Init.Omega
namespace Lea... |
4,348 | lean_file_chunk | ec0c1d315d3b951feb4fbf351dc298e34aecf2197b7d0d2ea9086405d425e97d | 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.Lemmas
public import Lean.Meta.Tactic.Simp.Main
public import Lean.Meta.Tactic.Grind.Types
import Lean.... |
1,917 | lean_file_chunk | 669a81b14f5c46a85dc2297a66a328dc061eb7dc399f3c73073be272328211ce | lean_source_file | lean_toolchain_source_file_chunks | /-
Copyright (c) 2024 Amazon.com, Inc. or its affiliates. All Rights Reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Leonardo de Moura
-/
module
prelude
public import Lean.Meta.Tactic.Grind.Types
public section
namespace Lean.Meta.Grind
/--
If `parent` is a projection-application... |
2,335 | lean_file_chunk | 54894cb556747237ce6344fe77e69a867a151de847b251206a05bec4cf12769f | lean_source_file | lean_toolchain_source_file_chunks | /-
Copyright (c) 2025 Amazon.com, Inc. or its affiliates. All Rights Reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Leonardo de Moura
-/
module
prelude
public import Lean.Meta.Tactic.Grind.Types
import Lean.Meta.Tactic.Grind.SynthInstance
public section
namespace Lean.Meta.Grind
... |
23,927 | lean_file_chunk | 5d338808dd3d6eb6bff2cdaac0f5a3677abd82d4b57e248186160c48710eaae8 | lean_source_file | lean_toolchain_source_file_chunks | /-
Copyright (c) 2024 Amazon.com, Inc. or its affiliates. All Rights Reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Leonardo de Moura
-/
module
prelude
public import Lean.Meta.Tactic.Grind.Types
import Lean.Util.CollectLevelMVars
import Lean.Meta.Tactic.Grind.Util
import Lean.Met... |
17,531 | lean_file_chunk | b7166e6b01139f5ffcd18717269a30a13b1bd15af8cde630e078e0b0d48a1cb8 | lean_source_file | lean_toolchain_source_file_chunks | private def processUnassigned (mvars : Array Expr) (i : Nat) (v : Expr) (h : i < mvars.size) : OptionT (StateT Choice M) Unit := do
let thm := (β read).thm
let numParams := thm.numParams
let bidx := numParams - i - 1
let mvarId := mvars[i].mvarId!
let mvarIdType β mvarId.getType
let vType β inferType v
le... |
7,006 | lean_file_chunk | 53bd874dedf6a7296488b6dd127c09d39348bc5220d6167876bc273e1751515b | lean_source_file | lean_toolchain_source_file_chunks | /-
Copyright (c) 2025 Amazon.com, Inc. or its affiliates. All Rights Reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Leonardo de Moura
-/
module
prelude
public import Lean.HeadIndex
public import Lean.Meta.Basic
import Lean.Meta.Eqns
import Init.Data.Range.Polymorphic.Iterators
pu... |
730 | lean_file_chunk | 7ee02447db312ca63b1fd6aeab520db1731aeee1c8b4632a36c940a210421ca3 | lean_source_file | lean_toolchain_source_file_chunks | /-
Copyright (c) 2025 Amazon.com, Inc. or its affiliates. All Rights Reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Leonardo de Moura
-/
module
prelude
public import Lean.Meta.Tactic.Grind.EMatchTheorem
public section
namespace Lean.Meta.Grind
@[inline] def isSameEMatchTheoremPt... |
2,539 | lean_file_chunk | e532dfb213546fd7bae15df94a7bb4da16e900287f973b6e9ac2e1c2cb53d9aa | lean_source_file | lean_toolchain_source_file_chunks | /-
Copyright (c) 2024 Amazon.com, Inc. or its affiliates. All Rights Reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Leonardo de Moura
-/
module
prelude
public import Lean.Meta.Tactic.Revert
import Init.Data.Range.Polymorphic.Iterators
public section
namespace Lean.Meta.Grind
/--... |
2,729 | lean_file_chunk | d9524705b29ca758a381b77837e72ff733d25b716040fc65f25fce5903bbaaa0 | lean_source_file | lean_toolchain_source_file_chunks | /-
Copyright (c) 2025 Amazon.com, Inc. or its affiliates. All Rights Reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Leonardo de Moura
-/
module
prelude
public import Lean.Meta.Tactic.Grind.EMatchTheorem
import Init.Data.Function
import Init.Data.Range.Polymorphic.Iterators
public... |
684 | lean_file_chunk | dcf1e1fc3be52a735977e6caf4da5a3aad3f96b895923c701231b0a3b088e0e0 | lean_source_file | lean_toolchain_source_file_chunks | /-
Copyright (c) 2025 Amazon.com, Inc. or its affiliates. All Rights Reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Leonardo de Moura
-/
module
prelude
public import Lean.Meta.Tactic.Grind.Types
import Lean.Meta.Tactic.Grind.Finish
public section
namespace Lean.Meta.Grind
/--
Try... |
2,596 | lean_file_chunk | a0bcd75f3815f7b5a12a488ddbe4ac8fd659672f0b005716de904997b7e60b8f | lean_source_file | lean_toolchain_source_file_chunks | /-
Copyright (c) 2025 Amazon.com, Inc. or its affiliates. All Rights Reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Leonardo de Moura
-/
module
prelude
public import Lean.Meta.Tactic.Grind.Types
public section
namespace Lean.Meta.Grind
/-!
Helper function for synthesizing order r... |
2,287 | lean_file_chunk | de0b921db6d4b4ddc71e903c6dabe4710deac16b9a42cc474b44f9a433adec3a | lean_source_file | lean_toolchain_source_file_chunks | /-
Copyright (c) 2025 Amazon.com, Inc. or its affiliates. All Rights Reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Leonardo de Moura
-/
module
prelude
public import Lean.Meta.Tactic.Grind.Types
import Init.Grind.Lemmas
public section
namespace Lean.Meta.Grind
private def dummyE... |
4,419 | lean_file_chunk | c51e60dbd62f75d266154061220a7b9352cf418c2a08aa59f54adc34dfe9f4ca | lean_source_file | lean_toolchain_source_file_chunks | /-
Copyright (c) 2025 Amazon.com, Inc. or its affiliates. All Rights Reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Leonardo de Moura
-/
module
prelude
public import Lean.Meta.Basic
import Lean.Meta.AppBuilder
import Lean.Meta.MatchUtil
import Lean.Util.ForEachExpr
public section... |
2,102 | lean_file_chunk | 1d327522d1a109eef815ba9be146c66aa797141ad30d700b0676707c6af6b1c6 | lean_source_file | lean_toolchain_source_file_chunks | /-
Copyright (c) 2025 Amazon.com, Inc. or its affiliates. All Rights Reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Leonardo de Moura
-/
module
prelude
public import Lean.Meta.Tactic.Simp.Simproc
import Init.Grind.Util
import Init.Simproc
import Lean.Meta.Tactic.Simp.Rewrite
publ... |
12,955 | lean_file_chunk | 845c00bf22ad645f377c21568609a4fb2dd43f86ccc60d816975ce682271ab4b | lean_source_file | lean_toolchain_source_file_chunks | /-
Copyright (c) 2025 Amazon.com, Inc. or its affiliates. All Rights Reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Leonardo de Moura
-/
module
prelude
public import Lean.Meta.Tactic.Grind.Types
public section
namespace Lean.Meta.Grind
/-!
# `Action`
`Action` is the *control int... |
19,777 | lean_file_chunk | 90a0fd3f125453878a7ffa929c68b81e27e58b1abcce5907d3ef51321fa823d5 | 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
import Init.Grind
import Lean.Meta.Tactic.Grind.Simp
import Lean.Meta.Tactic.Grind.Ext
import Lean.Meta.Tactic.Grind.Diseq
publi... |
1,522 | lean_file_chunk | 7af18998f89507b959a72b7f64078a550f1e57e1b8c3869217548a4be62b43b4 | 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 meta import Lean.Meta.Tactic.Grind.Attr -- shake: keep (macro output dependency)
public section
namespace Lean.Meta.Grin... |
23,929 | lean_file_chunk | 1335b462eb4409fd4671c00c9133b386598dbfe2ccc48fdd330e6b80fe821b45 | lean_source_file | lean_toolchain_source_file_chunks | /-
Copyright (c) 2024 Amazon.com, Inc. or its affiliates. All Rights Reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Leonardo de Moura
-/
module
prelude
public import Lean.Meta.Tactic.Grind.Extension
import Lean.Meta.Tactic.Grind.Util
import Lean.Meta.Tactic.TryThis
import Lean.Me... |
23,989 | lean_file_chunk | 153c24a1affbcd3aac8dacb4a7088fea82fc888017af739420087b274ca64375 | lean_source_file | lean_toolchain_source_file_chunks | if declName == ``Grind.genPattern || declName == ``Grind.genHEqPattern then
return some f
if inSupport then
if argKind matches .typeFormer | .relevant then
if (β isInductive declName) then
return some f
return none
return some f
| f@(.fvar _) =>
if inS... |
21,347 | lean_file_chunk | eb2670ad8a7d0c860185ba8cea1d45272d7e8c1110aab8ca5e38f4576b03ed5f | lean_source_file | lean_toolchain_source_file_chunks | let argKinds β NormalizePattern.getPatternArgKinds f e.getAppNumArgs
if (β isPatternFnCandidate f) then
trace[grind.debug.ematch.pattern] "candidate: {e}"
if let some p β normalizePattern? e argKinds minIndexable then
addNewPattern p
return ()
let args := e.getAppArgs
... |
2,064 | lean_file_chunk | 042a6cdeb879a8ecdff75af2b54406e7af732134f5374f79c46d565767622724 | lean_source_file | lean_toolchain_source_file_chunks | /-
Copyright (c) 2024 Amazon.com, Inc. or its affiliates. All Rights Reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Leonardo de Moura
-/
module
prelude
public import Lean.Meta.Basic
import Lean.Meta.Tactic.Clear
import Lean.Meta.AppBuilder
import Lean.Meta.CtorRecognizer
public s... |
924 | lean_file_chunk | 1a648f0d61ea0d04eb5cebe63cbcfe4f79651f2e51def7448dd2478b42985271 | lean_source_file | lean_toolchain_source_file_chunks | /-
Copyright (c) 2025 Amazon.com, Inc. or its affiliates. All Rights Reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Leonardo de Moura
-/
module
prelude
public import Lean.Meta.Tactic.Ext
public import Lean.Meta.Tactic.Grind.Extension
public section
namespace Lean.Meta.Grind
/-! G... |
23,970 | lean_file_chunk | 830d27df0c8bb9b060d9606f99bfdf72c08744dd24c2440d864bf1cbd2e29a49 | 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.Queue
public import Init.Grind.Config
public import Lean.Meta.Sym.SymM
public import Lean.Meta.Tactic.Gr... |
23,956 | lean_file_chunk | 86fdf87e75f1b2cd5a7883fb9f5aab7486d7c8b787640ad9d8acdda9d5550a27 | lean_source_file | lean_toolchain_source_file_chunks | -- because we are not in the `MetaM` monad.
hasSameRoot enodes a b
instance : Hashable (CongrKey enodeMap) where
hash k := private congrHash enodeMap k.e
instance : BEq (CongrKey enodeMap) where
beq k1 k2 := private isCongruent enodeMap k1.e k2.e
abbrev CongrTable (enodeMap : ENodeMap) := PHashSet (CongrKe... |
23,996 | lean_file_chunk | 77d0226a2a97bc8c8a059e527e0c560c4fbbfbe090a38244092ecd9fb2a42d4a | lean_source_file | lean_toolchain_source_file_chunks | def pushEqBoolTrue (a proof : Expr) : GoalM Unit := do
pushEq a (β getBoolTrueExpr) proof
/-- Pushes `a = Bool.false` with `proof` to `newEqs`. -/
def pushEqBoolFalse (a proof : Expr) : GoalM Unit := do
pushEq a (β getBoolFalseExpr) proof
/--
Records that `parent` is a parent of `child`. This function actually st... |
6,770 | lean_file_chunk | 96d6afb53d8c8b6a84f306a4e9e0cf98e7d688b921518b8c43d0379cd7e63edb | lean_source_file | lean_toolchain_source_file_chunks | go (lhsTerms rhsTerms : SolverTerms) : GoalM Unit := do
match lhsTerms, rhsTerms with
| .nil, _ => return ()
| _, .nil => return ()
| .next idβ lhs lhsTerms, .next idβ rhs rhsTerms =>
if idβ == idβ then
(β solverExtensionsRef.get)[idβ]!.newDiseq lhs rhs
go lhsTerms rhsTerms
e... |
2,590 | lean_file_chunk | dff8c641b30adf65e493336e0074be860423db189d41995ccff7d2d6c17022f2 | lean_source_file | lean_toolchain_source_file_chunks | /-
Copyright (c) 2025 Amazon.com, Inc. or its affiliates. All Rights Reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Leonardo de Moura
-/
module
prelude
public import Lean.Meta.Tactic.Grind.Types
public section
namespace Lean.Meta.Grind
/-- Returns all lambda expressions in the e... |
19,138 | lean_file_chunk | 7977c7bcf6be1de1610f5267cb790bcdd394318d1f9c3b7afb9c5fb5f7aa119e | lean_source_file | lean_toolchain_source_file_chunks | /-
Copyright (c) 2025 Amazon.com, Inc. or its affiliates. All Rights Reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Leonardo de Moura
-/
module
prelude
public import Lean.Meta.Tactic.Grind.Types
public import Lean.Meta.Tactic.Grind.Util
public import Lean.Meta.Closure
import Lean... |
4,811 | lean_file_chunk | 70c20d13a732e135771dbc50595a4ab78868f7c0c28f34f2b350dccdb7b90c01 | lean_source_file | lean_toolchain_source_file_chunks | /-
Copyright (c) 2024 Amazon.com, Inc. or its affiliates. All Rights Reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Leonardo de Moura
-/
module
prelude
public import Lean.Meta.Tactic.Grind.Types
import Init.Grind.Util
import Lean.Meta.Tactic.Grind.Util
namespace Lean.Meta.Grind
/... |
1,690 | lean_file_chunk | 10c247c03a9086abc11c5e5fcdf732156a76b08f2b76561ea0dcdfe73fc7b220 | lean_source_file | lean_toolchain_source_file_chunks | /-
Copyright (c) 2025 Amazon.com, Inc. or its affiliates. All Rights Reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Leonardo de Moura
-/
module
prelude
public import Lean.Meta.Tactic.Grind.AC.Types
public import Lean.Meta.Tactic.Grind.AC.Util
public import Lean.Meta.Tactic.Grind.... |
4,829 | lean_file_chunk | 651d28c3dc23a32ccb618462e30deb044cf7b3c4bb7e15fecfe0196cc2ae2624 | lean_source_file | lean_toolchain_source_file_chunks | /-
Copyright (c) 2024 Amazon.com, Inc. or its affiliates. All Rights Reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Leonardo de Moura
-/
module
prelude
public import Lean.Meta.Tactic.Grind.Types
import Init.Grind.Util
import Lean.Meta.Sym.Util
import Lean.Meta.Tactic.Grind.Util
p... |
4,055 | lean_file_chunk | ab79b7b26de12904ec0beaa66b08fb8a6b2f0437c180661168c65014d337f4e7 | lean_source_file | lean_toolchain_source_file_chunks | /-
Copyright (c) 2024 Amazon.com, Inc. or its affiliates. All Rights Reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Leonardo de Moura
-/
module
prelude
public import Lean.Meta.Tactic.Simp.BuiltinSimprocs.Char
import Lean.Meta.StringLitProof
public section
namespace String
open... |
8,341 | lean_file_chunk | 6f68b48bf904b062b2f78ea9beb7434f0c58c295302facc5dd3e5dd293220d0c | lean_source_file | lean_toolchain_source_file_chunks | /-
Copyright (c) 2023 Amazon.com, Inc. or its affiliates. All Rights Reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Leonardo de Moura
-/
module
prelude
public import Lean.Meta.Tactic.Simp.BuiltinSimprocs.Nat
import Init.Omega
public section
namespace Fin
open Lean Meta Simp
s... |
3,819 | lean_file_chunk | 572ad8b119af30cbd27eee5dd7c71375c6c78e85341f20a3682319e15d9e2514 | lean_source_file | lean_toolchain_source_file_chunks | /-
Copyright (c) 2023 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.Simproc
public import Lean.Meta.Tactic.Simp.Simproc
import Lean.Meta.CtorRecognizer
public section
open Lean ... |
1,573 | lean_file_chunk | 692c2de81db36c5750b246ba2e8de7abf308c682da8fb22978601f6918b885ad | 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 Init.Simproc
public import Lean.Meta.Tactic.Simp.Simproc
import Lean.Meta.MethodSpecs
import Lean.Meta.Tactic.Simp.Main
open Lean Meta Simp
... |
6,820 | lean_file_chunk | c4805bd7e448022211217d3634ae1fd310e44d275dd25fa5ea9fc642d6d7c537 | lean_source_file | lean_toolchain_source_file_chunks | /-
Copyright (c) 2024 Amazon.com, Inc. or its affiliates. All Rights Reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Leonardo de Moura
-/
module
prelude
public import Lean.Meta.Tactic.Simp.BuiltinSimprocs.Nat
import Lean.Util.SafeExponentiation
import Init.Data.Int.DivMod
public s... |
736 | lean_file_chunk | 86e52c2fc422a2dcfe803bb4bec307685a1a52e6cdca9e5e86197ad0af6bb48b | 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 Lean.Meta.Tactic.Simp.BuiltinSimprocs.Nat
public section
namespace List
open Lean Meta Simp
/-- Simplification procedure for `List.replicate`... |
903 | lean_file_chunk | 037e997e36ab2cb1d2ad6d1daf86d6b4a5a590498ed418d5717790164becbc9c | 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
public import Lean.Meta.Tactic.Simp.Simproc
import Init.Simproc
import Lean.Meta.Constructions.CtorIdx
import Lean.Meta.CtorRecognizer
open Lean Meta ... |
15,994 | lean_file_chunk | 4340544e6ba0a29fda04d944de02c63dffc21f069271aeadd86b88a108ccd34f | lean_source_file | lean_toolchain_source_file_chunks | /-
Copyright (c) 2023 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.Simproc
public import Lean.Meta.Tactic.Simp.BuiltinSimprocs.Util
public import Lean.Meta.LitValues
public imp... |
2,540 | lean_file_chunk | caabd63cb4fd676f3f6f757b674aed8a6de61630916a371175268caff74bc2ed | lean_source_file | lean_toolchain_source_file_chunks | /-
Copyright (c) 2024 Amazon.com, Inc. or its affiliates. All Rights Reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Leonardo de Moura
-/
module
prelude
public import Lean.Meta.Tactic.Simp.Simproc
public section
namespace Lean.Meta.Simp
/--
Let `result` be the result of evalua... |
18,258 | lean_file_chunk | ec8c07102b2f6c47b2460abeff10c8003d4b79323301a820176b94517c67b6b4 | lean_source_file | lean_toolchain_source_file_chunks | /-
Copyright (c) 2024 Amazon.com, Inc. or its affiliates. All Rights Reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Leonardo de Moura
-/
module
prelude
public import Lean.Meta.Tactic.Simp.BuiltinSimprocs.Int
import Init.Data.BitVec.Lemmas
public section
namespace BitVec
open L... |
7,443 | lean_file_chunk | fad1c28d8a535a463c8502e51752385064547497e5e76dc1be29e8e6051f9d12 | 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, Markus Himmel
-/
module
prelude
public import Lean.Meta.Tactic.Simp.BuiltinSimprocs.Int
import Init.Data.SInt.Lemmas
public section
open Lean ... |
6,030 | lean_file_chunk | 08730eccc44e89ac7d745398d2f44fa00257a1a841af80db18b3ee8c12e5ca67 | lean_source_file | lean_toolchain_source_file_chunks | /-
Copyright (c) 2024 Amazon.com, Inc. or its affiliates. All Rights Reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Leonardo de Moura
-/
module
prelude
public import Lean.Meta.Tactic.Simp.BuiltinSimprocs.UInt
public section
namespace Char
open Lean Meta Simp
@[inherit_doc get... |
1,514 | lean_file_chunk | 9a8a25d375656ed57ced6bf14a79f1627ff468297d0adc1dee9e15f57e3b13ae | 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 Lean.Meta.Tactic.Simp.BuiltinSimprocs.Nat
public section
namespace Array
open Lean Meta Simp
/-- Simplification procedure for `#[...][n]` for... |
5,220 | lean_file_chunk | cc1376452c7390cb1944e2538f8d7fa781200d91536955f8758605f60009a622 | lean_source_file | lean_toolchain_source_file_chunks | /-
Copyright (c) 2024 Amazon.com, Inc. or its affiliates. All Rights Reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Leonardo de Moura
-/
module
prelude
public import Lean.Meta.Tactic.Simp.BuiltinSimprocs.Nat
import Init.Data.UInt.Lemmas
public section
open Lean Meta Simp
macr... |
294 | lean_file_chunk | bc27b0134603f9b90304eb68e02ab1c2c483deb4c0d135b912f3caf0ab0e0d7a | lean_source_file | lean_toolchain_source_file_chunks | /-
Copyright (c) 2025 Amazon.com, Inc. or its affiliates. All Rights Reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Leonardo de Moura
-/
module
prelude
public import Lean.Meta.Tactic.Simp.Arith.Int.Basic
public import Lean.Meta.Tactic.Simp.Arith.Int.Simp |
282 | lean_file_chunk | 9b960c0970db01ff82ed4d97081b78498c5dffa5063f34fc3294f6825dbb7cfb | lean_source_file | lean_toolchain_source_file_chunks | /-
Copyright (c) 2022 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Leonardo de Moura
-/
module
prelude
public import Lean.Meta.Tactic.Simp.Arith.Nat.Basic
public import Lean.Meta.Tactic.Simp.Arith.Nat.Simp |
1,497 | lean_file_chunk | 55ef315afb9268e0e9a1d66b8f208f843d11177405d1254906e57a1d635a2bb7 | lean_source_file | lean_toolchain_source_file_chunks | /-
Copyright (c) 2022 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Leonardo de Moura
-/
module
prelude
public import Lean.Meta.Basic
public section
namespace Lean.Meta.Simp.Arith
private def isSupportedType (type : Expr) : Bool :=
match_expr... |
6,636 | lean_file_chunk | fe93588ca766448da48b87519bb591a7db2b012f55d053be1fd7a3ccf0d44ead | lean_source_file | lean_toolchain_source_file_chunks | /-
Copyright (c) 2022 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Leonardo de Moura
-/
module
prelude
public import Lean.Util.SortExprs
public import Lean.Meta.KExprMap
import Lean.Data.RArray
import Lean.Meta.NatInstTesters
import Lean.Meta.O... |
2,945 | lean_file_chunk | be31dfccb5d503b3bfef1af6e56a4e9630fe01af700d0389479ef8b9f7401a5d | lean_source_file | lean_toolchain_source_file_chunks | /-
Copyright (c) 2022 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Leonardo de Moura
-/
module
prelude
public import Lean.Meta.Tactic.Simp.Arith.Util
public import Lean.Meta.Tactic.Simp.Arith.Nat.Basic
import Lean.Meta.AppBuilder
public section... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.