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 |
|---|---|---|---|---|---|
6,861 | lean_file_chunk | 5e2f3ab7c330bfce821e62b6e478b5def8845f225119d24619701958d556d921 | 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.Injection
import Init.Data.Nat.Linear
public section
namespace Lean.Meta
/-- Convert heterogeneous equalit... |
7,095 | lean_file_chunk | d35d8899821acf51dea094c1b0aa728b02e3de3b94f07869f5976602291fb3e2 | lean_source_file | lean_toolchain_source_file_chunks | /-
Copyright (c) 2019 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Leonardo de Moura
-/
module
prelude
public import Lean.Util.ForEachExprWhere
public import Lean.Meta.PPGoal
import Lean.Meta.AppBuilder
public section
namespace Lean.Meta
re... |
5,744 | lean_file_chunk | f2c7f164fc4964b6f38968b0a672c0e1ecc74440ae93346fb5be7e30735fe19a | lean_source_file | lean_toolchain_source_file_chunks | /-
Copyright (c) 2022 Newell Jensen. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Newell Jensen, Thomas Murrills, Joachim Breitner
-/
module
prelude
public import Lean.Elab.Tactic.Basic
public import Lean.Meta.Tactic.Refl
public section
/-!
# `rfl` tactic extensio... |
4,269 | lean_file_chunk | 55d0a9062b5077023f957151e908b8bd74e1661daaf63189404af86f9c34b37c | lean_source_file | lean_toolchain_source_file_chunks | /-
Copyright (c) 2022 Siddhartha Gadgil. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Siddhartha Gadgil, Mario Carneiro, Kim Morrison
-/
module
prelude
public import Lean.Meta.Reduce
public import Lean.Meta.Tactic.Assert
public import Lean.Meta.DiscrTree.Main
import ... |
11,441 | lean_file_chunk | 742c975a99d4e9c9d4d810de5468e6c1c18561d6dc41aafb6e4cb91e2198bf41 | 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.Check
import Init.Data.Range.Polymorphic.Iterators
public section
namespace Lean.Meta
structure ElimAltInfo where... |
4,753 | lean_file_chunk | a01aa761e6ecc4196b6a4bcf8b71d26b5d321f70cc7b78867d63ad2e51a30c3f | 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.CongrTheorems
public import Lean.Meta.Tactic.Assert
public import Lean.Meta.Tactic.Refl
public import Lean.Meta.Tact... |
13,813 | lean_file_chunk | 7892ed20f4391c245a1b96baaa9cc573b349b195df5dce15852ca40317d51d89 | lean_source_file | lean_toolchain_source_file_chunks | /-
Copyright (c) 2021 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Leonardo de Moura
-/
module
prelude
public import Lean.Meta.Tactic.Cases
public import Lean.Meta.Tactic.Simp.Rewrite
import Lean.Meta.Tactic.Simp.Main
public section
namespace L... |
2,592 | lean_file_chunk | 78383c9005f8c2c60d647dbbebe83974900cdbbb0e032ff0255d3cfe0466a0a0 | 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, Mario Carneiro
-/
module
prelude
public import Lean.Data.AssocList
public import Lean.LocalContext
public import Lean.Util.ReplaceExpr
public section
names... |
591 | lean_file_chunk | 0158bff081f2b9b3ad9e62f2559eb6ee29e96446a659e10ade3c458ea5b97e1d | 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.Try.Collect
public section
namespace Lean
builtin_initialize registerTraceClass `try
builtin_... |
1,229 | lean_file_chunk | 55c39d2d76fdb550525f63ad401e0ddd596666f2105775c8a66da418cb8e3233 | lean_source_file | lean_toolchain_source_file_chunks | /-
Copyright (c) 2019 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Leonardo de Moura
-/
module
prelude
public import Lean.Meta.Tactic.Util
public section
namespace Lean.Meta
/-- Return a local declaration whose type is definitionally equal ... |
1,616 | lean_file_chunk | 708cbb5997db0b5433283b18caa55c771250edf1e5417122803321e832476004 | 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.Simp.SimpTheorems
public import Lean.Meta.Tactic.Simp.SimpCongrTheorems
public import Lean.Meta.Tactic.Simp.T... |
3,196 | lean_file_chunk | 6839289d3f729e275c6fd7251c6447df8a0c9d056ef6c0651b17e04285a32bcd | 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.Data.Array.InsertionSort
public import Lean.Meta.DiscrTree
public section
namespace Lean.Meta.Ext
/-!
### Environment... |
2,204 | lean_file_chunk | 709e718dca659f34c3b8535fce2bdc5b0fdda66288ec38b6923e798da1c31dbc | 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.Reduce
public import Lean.Meta.Tactic.Apply
public section
namespace Lean.Meta
/--
Close given goal using `Eq.ref... |
5,387 | lean_file_chunk | dc0efa98c4f21223ddf0868d89d1f4b484bdf6d3c6735a915a398985231400b2 | 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.AppBuilder
public import Lean.Meta.MatchUtil
public import Lean.Meta.KAbstract
public import Lean.Meta.Tactic.Apply
... |
13,366 | lean_file_chunk | 99c4d363ebefa90a5e7ea8f2eb389ea5d3bf8802762883100215fb648590f30b | lean_source_file | lean_toolchain_source_file_chunks | /-
Copyright (c) 2023 Kim Morrison. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Kim Morrison
-/
module
prelude
public import Lean.Meta.LazyDiscrTree
public import Lean.Meta.Tactic.Rewrite
public import Lean.Meta.Tactic.Refl
public import Lean.Meta.Tactic.SolveByEli... |
8,964 | lean_file_chunk | 6a208fe7a956614ebdfe03894149eb5a57399cd36e2190f992a2c67ed4a246d8 | lean_source_file | lean_toolchain_source_file_chunks | /-
Copyright (c) 2023 Kim Morrison. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Kim Morrison
-/
module
prelude
public import Lean.Meta.Iterator
public import Lean.Meta.Tactic.IndependentOf
import Init.Data.Nat.Linear
import Init.Omega
public section
/-!
# `backtr... |
2,568 | lean_file_chunk | 2817b43f7d5fe768ae5024f111e869bdb56a06e1e9cd416dbf8b1f9ba4633ab4 | 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 Init.While
public section
namespace Lean.Meta
/-- Returns a copy of the local con... |
9,759 | lean_file_chunk | 733501b0a0bd3ffd5a3399e1e98f3401579eb52a8bd931ba90b8d6e5f0d86016 | lean_source_file | lean_toolchain_source_file_chunks | /-
Copyright (c) 2021 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Leonardo de Moura
-/
module
prelude
public import Lean.Meta.Tactic.Assumption
public import Lean.Meta.Tactic.Cases
public import Lean.Meta.Tactic.Apply
import Lean.Meta.HasNotB... |
2,696 | lean_file_chunk | 684eb1fbe4fd4107df529a9205f1498ebc43a91589f0be2f7b109c47c1b591c4 | 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.Basic
public import Lean.ReservedNameAction
public section
/-!
This module defines the data structure and environment exte... |
6,987 | lean_file_chunk | 041621dad6839dca59b19faed08b4a2412277937899195c81f1f5c2a4b86b876 | 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.Subst
public section
namespace Lean.Meta
def getCtorNumPropFields (ctorInfo : ConstructorVal) : MetaM Nat ... |
2,850 | lean_file_chunk | 210818f19518f6ee343164b806ecfaacd9a7d5f46037f4d11623be515c038483 | 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.Util
import Init.Data.Nat.Order
import Init.Data.Order.Lemmas
public section
namespace Lean.Meta
/--
Erase... |
1,806 | lean_file_chunk | e4c76d5262d9c00761fcceffbd4d0bf0809ea509edf04e6f043b46d64945983a | lean_source_file | lean_toolchain_source_file_chunks | /-
Copyright (c) 2021 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Leonardo de Moura
-/
module
prelude
public import Lean.Meta.Basic
import Lean.ProjFns
import Lean.Meta.Tactic.Cases
namespace Lean.Meta
/-!
This module provides the `casesOnStu... |
3,818 | lean_file_chunk | 2cacd3dcaecfca6f2b4d15772ed9ebfdfdf73646c57f336e48e1f387293d2c7b | 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.Util
public import Lean.Meta.Tactic.FunIndInfo
public section
/-!
Support for collecting function calls that could ... |
13,022 | lean_file_chunk | 095aaea352f76e8eaf32e7d5223db872b872de48c0852313edf1f3f822d27d99 | 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.AppBuilder
public import Lean.Meta.MatchUtil
public import Lean.Meta.Tactic.Assert
public section
namespace Lean.M... |
13,096 | lean_file_chunk | 4e7780995f53d3e5e742bfc51ae71c22927f6f326b0db880df9669967339abef | 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.RecursorInfo
public import Lean.Meta.SynthInstance
public import Lean.Meta.Tactic.Revert
public import Lean.Meta.Tact... |
23,983 | lean_file_chunk | bceb4b55890098ef5392647a01123ecfad2c97a6e74f6fd99217265b3bbbea21 | 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 Lean.Meta.Tactic.Simp.Types
import Lean.Meta.Match.MatcherApp.Transform
import Lean.Meta.Match.Rewrite
import Lean.Meta.Injective -- f... |
23,988 | lean_file_chunk | 1223d345c8771e1d386887307b6156c54f7511d486f4983765578fe58987caa5 | lean_source_file | lean_toolchain_source_file_chunks | type `goal'`), and wraps that using the proof from `rw`.
-/
def withRewrittenMotive (goal : Expr) (rw : Expr β MetaM Simp.Result) (k : Expr β M2 Expr) : M2 Expr := do
let r β rw goal
let e β k r.expr
r.mkEqMPR e
def inLastArg (rw : Expr β MetaM Simp.Result) (goal : Expr) : MetaM Simp.Result := do
match goal wi... |
23,976 | lean_file_chunk | 9cf57c5cd1a656428e1da8136d2ddf9ffe6fba57019821ac0660029a316f2442 | lean_source_file | lean_toolchain_source_file_chunks | let value := mkAppN value alts
let value β eqnInfo.argsPacker.curry value
let value β mkLambdaFVars alts value
let value β mkLambdaFVars motives value
let value β mkLambdaFVars params value
let value β cleanPackedArgs eqnInfo value
return value
let type β inferType val... |
156 | lean_file_chunk | 4a68feba134582eaf5789c4a0bbdc7e9bc3bf8d886730d6815d90c571a416a9e | lean_source_file | lean_toolchain_source_file_chunks | MetaM.run' <| deriveCases unfolding p
return true
return false
end Lean.Tactic.FunInd
builtin_initialize
Lean.registerTraceClass `Meta.FunInd |
21,346 | lean_file_chunk | 1633cef1aafecae31fedb80b99317e72d708bacf82e7bf0b1c5ddc051016e425 | 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, Thomas Murrills
-/
module
prelude
import Lean.Server.CodeActions
import Lean.Meta.Tactic.ExposeNames
public import Lean.Widget.UserWidget
meta import Lea... |
212 | lean_file_chunk | c2bc2baaf1d743167d007c3c064597bdfd486bf31ee63f903cae121e88121d8c | 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 Lean.Meta.Tactic.AC.Main |
1,755 | lean_file_chunk | 33722374c9b319cc38e5a79cf34136910d75169f05389319b0e8c4935cf14a38 | 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
import Lean.Meta.Transform
public section
namespace Lean.Meta
def delta? (e : Expr) (p : Name β Bool ... |
3,945 | lean_file_chunk | a3f03811ab2c63298a454b8bb00a1692f478961eeee59ccb22464ad3430e3745 | lean_source_file | lean_toolchain_source_file_chunks | /-
Copyright (c) 2024 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 Lean.Meta.DiscrTree.Basic
public section
namespace Lean.Meta.DiscrTree
namespace Trie
/--
Monadically fold the keys and v... |
6,067 | lean_file_chunk | c14841868e64f8732ca1700a47050d604089284a59cee3b3f613502a986ce9c4 | 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.DiscrTree.Types
public import Lean.CoreM
import Init.Data.Range.Polymorphic.Iterators
import Init.Omega
... |
2,364 | lean_file_chunk | 6a0caa9775554e2a06122c53057ca7e6f8b714709b07bae2892e26a86f3709b9 | lean_source_file | lean_toolchain_source_file_chunks | /-
Copyright (c) 2019 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Leonardo de Moura
-/
module
prelude
public import Lean.Expr
public section
namespace Lean.Meta
/-! See file `DiscrTree.lean` for the actual implementation and documentation. -/
... |
23,796 | lean_file_chunk | 66f4a726160b4f3d9fac272de343f8d7008351c5c730026716fa957984cc50bc | 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, Jannis Limperg, Kim Morrison
-/
module
prelude
public import Lean.Meta.Basic
public import Lean.Meta.DiscrTree.Basic
import Lean.Meta.WHNF
public section
name... |
6,723 | lean_file_chunk | b5552afef67323ef3568775d5867944b63de548d5267202a24a55fb2e199f90f | 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.Basic
public section
namespace Lean.Meta
namespace Match
structure DiscrInfo where
/-- `some h` if the discrimi... |
3,345 | lean_file_chunk | 05d3f64d2cc00249eb78abf26f00de5389a62a9c585829edbb5a8ae350f2ee82 | 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.Basic
public import Lean.Meta.Tactic.FVarSubst
import Lean.Meta.Tactic.Subst
namespace Lean.Meta
/--
Split goal ... |
5,480 | lean_file_chunk | 83af62754bd8f6dfe87ac583f76a5012ead596315d1de1f0ec6976bd34aef69c | lean_source_file | lean_toolchain_source_file_chunks | /-
Copyright (c) 2021 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Leonardo de Moura
-/
module
prelude
public import Lean.Meta.Match.MatcherInfo
import Lean.Meta.Match.NamedPatterns
import Lean.Meta.MatchUtil
import Lean.Meta.AppBuilder
import... |
3,634 | lean_file_chunk | 2027419d80710a2da1f3152c46d36b6e03801aa68231d1159ac1db3525f6960e | 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.Basic
public import Lean.Meta.Tactic.FVarSubst
import Lean.Meta.Match.CaseValues
import Lean.Meta.Tactic.Subst
name... |
16,391 | lean_file_chunk | 7e312423b47bcee864f6f428fe1e6676343d272f5f2b80a3759e6866ada79e10 | lean_source_file | lean_toolchain_source_file_chunks | /-
Copyright (c) 2021 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Leonardo de Moura
-/
module
prelude
public import Lean.Meta.Match.Match
public import Lean.Meta.Match.MatchEqsExt
import Lean.Meta.Tactic.Refl
import Lean.Meta.Tactic.Delta
imp... |
12,242 | lean_file_chunk | e39b20064dcb30742203c800c2d10c9564d045b8b353ee7db059455559e3c8f1 | 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.FVarSubst
public import Lean.Meta.CollectFVars
import Lean.Meta.Match.Value
import Lean.Meta.AppBuilder
impor... |
2,411 | lean_file_chunk | 6c13e7832270938252a1fa0fc83e0f7d9211382d18e05344b0f8e9fe099da239 | 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.Match.Basic
public import Lean.Meta.Match.MatcherInfo
import Lean.Meta.Eqns
public section
namespace Lean.Meta.Mat... |
6,071 | lean_file_chunk | 96fef10161ac79dd40165b8050c0d34ccea5887051a4a8d44677d080f5795c95 | lean_source_file | lean_toolchain_source_file_chunks | /-
Copyright (c) 2025 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Sebastian Graf
-/
module
prelude
public import Lean.Meta.Tactic.Simp.Types
import Lean.Meta.Tactic.Assumption
import Lean.Meta.Tactic.Refl
import Lean.Meta.Tactic.Simp.Rewrite
... |
5,730 | lean_file_chunk | 739376b4c1b6ec442874c40d551774d4a1480ce155487adf684976a0b12c60b8 | lean_source_file | lean_toolchain_source_file_chunks | /-
Copyright (c) 2021 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Leonardo de Moura
-/
module
prelude
public import Lean.Meta.Basic
import Lean.Meta.Tactic.Contradiction
namespace Lean.Meta.Match.SimpH
/--
State for the equational theorem... |
1,086 | lean_file_chunk | 8c060e665a545f0da47ee24e7ec04a331c184cdddb7eff6adfd64f5331a0a826 | lean_source_file | lean_toolchain_source_file_chunks | /-
Copyright (c) 2021 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Leonardo de Moura
-/
module
prelude
public import Lean.Meta.Basic
import Lean.Meta.AppBuilder
import Lean.Meta.WHNF
/-!
Helper functions around named patterns
-/
namespace Lean.... |
1,355 | lean_file_chunk | 76dcfb6b152e0c6d38dd1ba4cea9dd912e1bfca25ef8f59eff6ce050331265ac | lean_source_file | lean_toolchain_source_file_chunks | /-
Copyright (c) 2019 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Leonardo de Moura
-/
module
prelude
public import Lean.Attributes
public section
namespace Lean
/--
Instructs the pattern matcher to unfold occurrences of this definition.
... |
958 | lean_file_chunk | 010adb9e0a0d7971bbc54a4c269c3951ee3fbbffe5dee6b9bbf829481474aa32 | lean_source_file | lean_toolchain_source_file_chunks | /-
Copyright (c) 2021 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Leonardo de Moura
-/
module
prelude
public import Lean.Meta.LitValues
public section
namespace Lean.Meta
/-- Return true is `e` is a term that should be processed by the `ma... |
1,070 | lean_file_chunk | f5ec327c439be36977218da42e5d113aa78d71f68e6bdf24f25347f4f53fbb7b | lean_source_file | lean_toolchain_source_file_chunks | /-
Copyright (c) 2020 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Leonardo de Moura
-/
module
prelude
public import Lean.Util.ReplaceExpr
public section
namespace Lean.Meta
/-- A mapping from MVarId to MVarId -/
structure MVarRenaming wher... |
287 | lean_file_chunk | d71e4909a50095e6057df89836a327bbe4b07122fd722d8f6aed1038b50b4eb1 | 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: Leonardo de Moura, Joachim Breitner
-/
module
prelude
public import Lean.Meta.Match.MatcherApp.Basic
public import Lean.Meta.Match.MatcherApp.Transform |
23,995 | lean_file_chunk | d4e522da51424592d8a5223bef79a3d143a941b3c5164263c437d87e0f669c94 | 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.Closure
public import Lean.Meta.Tactic.Contradiction
public import Lean.Meta.GeneralizeTelescope
public import Lean.... |
23,969 | lean_file_chunk | 1639177cfb4fad50cc0e937c7490d297e4412369e36a2ce14ffde17918333df4 | lean_source_file | lean_toolchain_source_file_chunks | throwCasesException p ex
if subgoals.isEmpty then
/- Easy case: we have solved problem `p` since there are no subgoals -/
return some #[]
else if !p.alts.isEmpty then
return some subgoals
else do
let isRec β withGoalOf p <| hasRecursiveType x
/- If there are no alterna... |
7,786 | lean_file_chunk | b0197486776e7367c80519869596c0a42bbbb8981417650d50b4702fecb30f5b | lean_source_file | lean_toolchain_source_file_chunks | `(a_1 : A_1) -> (a_2 : A_2[a_1]) -> ... -> (a_n : A_n[a_1, a_2, ... a_{n-1}]) -> B[a_1, ..., a_n]`
where `n = numDiscrs`, and the `lhss` are the left-hand-sides of the `match`-expression alternatives.
Each `AltLHS` has a list of local declarations and a list of patterns.
The number of patterns must be the same in each ... |
4,486 | lean_file_chunk | cf47ff003edac102085b86bc10f412b96af61d884eb45512dc1c3614c0244189 | lean_source_file | lean_toolchain_source_file_chunks | /-
Copyright (c) 2021 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Leonardo de Moura
-/
module
prelude
public import Lean.Meta.Basic
import Lean.Meta.Tactic.Contradiction
namespace Lean.Meta.Match
/--
A custom, approximated, and quick `contr... |
14,052 | lean_file_chunk | 68566a0ea74372193fb55f55b3d5b2a7f7bc6dc71fd166d83c0b1cb4bf011706 | 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: Leonardo de Moura, Joachim Breitner
-/
module
prelude
public import Lean.Meta.Basic
import Lean.Meta.PProdN
import Lean.Meta.Tactic.Cases
import Lean.Meta.Tactic.Refl
namespace Lean
open M... |
10,971 | lean_file_chunk | 2227cfa7fe7511d07962c990d5e7448f14d40c4228aeebb54923bf963a01d371 | 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.Basic
import Lean.Meta.CompletionName
import Lean.Meta.Constructions.CtorIdx
import Lean.Meta.Constructions.CtorElim
import ... |
1,312 | lean_file_chunk | da63b72374817122c29d4074ee2370902e2d6a8240844a910321c390618a3847 | 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: Leonardo de Moura, Joachim Breitner
-/
module
prelude
public import Lean.AddDecl
public import Lean.Meta.CompletionName
public section
open Lean Meta
def mkRecOn (n : Name) : MetaM Unit ... |
20,471 | lean_file_chunk | e465992317dc203dbb08504ba210314b35ede80e2bcd1c5c1fcb3dc98be1476e | 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, Joachim Breitner
-/
module
prelude
public import Lean.Meta.Basic
import Lean.AddDecl
import Lean.Meta.CompletionName
import Lean.Meta.Constructions.CtorIdx
i... |
4,650 | lean_file_chunk | 2b047239ed87e3093bdb45b11f60a1ac83888ef5a09aa2201bd5dfb8e096061a | 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: Leonardo de Moura, Joachim Breitner
-/
module
prelude
public import Lean.Meta.Basic
import Lean.AddDecl
import Lean.Meta.CompletionName
import Lean.Linter.Deprecated
open Lean Meta
... |
9,799 | lean_file_chunk | 86cfe363f56c2fc530d803dca1f67b442938d9efe97e1a5d7d3eb36047c0b4af | 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.Basic
import Lean.Meta.CompletionName
import Lean.Meta.Constructions.CtorIdx
import Lean.Meta.NatTable
import Lean.Elab.App
... |
819 | lean_file_chunk | f09f2be33bcf5cc4a0b490fa6a15bc61f504e4f001add725788a625f300b1dfa | 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.AddDecl
public section
namespace Lean
@[extern "lean_mk_cases_on"] opaque mkCasesOnImp (env : Kernel.Environment) (dec... |
6,611 | lean_file_chunk | 7c33ef3c16bc90a29887a5202144d5d8d180651fb908350d345d88e9c02c54cc | 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.Basic
import Lean.AddDecl
import Lean.Meta.Constructions.CtorIdx
import Lean.Meta.HasNotBit
import Lean.Meta.Transform
/-! Se... |
4,020 | lean_file_chunk | cfcf4bc11fb74df416f08d1ccdbea87533f1b4f9190d3281504c22e62c6a3d1b | 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.Basic
import Lean.Meta.Constructions.SparseCasesOn
import Lean.Meta.HasNotBit
import Lean.Meta.Tactic.Cases
import Lean.Meta... |
893 | lean_file_chunk | 27613c31cb14a65f7a9aa7dba9080a2d2b7cc0d738f1afb4202f06a48426e5f0 | 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.Data.Array.Basic
public section
/-!
The basic data type and namespace for the `Lean.Meta.ArgsPacker` modules.
This is separate... |
1,708 | lean_file_chunk | de3cc498701ce1b754e2b76825b74f2e2d9929d25c70b6aa274989a900691b7b | lean_source_file | lean_toolchain_source_file_chunks | /-
Copyright (c) 2026 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.Simp.Result
namespace Lean.Meta.Sym.Simp
public abbrev Simproc.andThen (f g : Simproc) : Simproc :=... |
2,892 | lean_file_chunk | c5737d0accbd32f20b7275568763b814d329a77014689775cbf468237b392b59 | lean_source_file | lean_toolchain_source_file_chunks | /-
Copyright (c) 2026 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.Simp.Theorems
import Lean.Meta.Tactic.Simp.SimpTheorems -- for ignoreEquations
import Lean.Meta.Eqns... |
11,547 | lean_file_chunk | 055ed0dceac9f5f9943ad0b1f1fc0b854006ec816390a0f5e80398773aa654fc | 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.Pattern
public section
namespace Lean.Meta.Sym.Simp
/-!
# Structural Simplifier for Symbolic Simula... |
5,012 | lean_file_chunk | 7d0cd3fefb81f773b7c655ebe7c9e3b15d502cde0a6db1a7c098ad81a40ffd0b | lean_source_file | lean_toolchain_source_file_chunks | /-
Copyright (c) 2026 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.Simp.SimpM
import Lean.Meta.AppBuilder
namespace Lean.Meta.Sym.Simp
/-!
# Dischargers for Condition... |
1,480 | lean_file_chunk | 256a026baebd30cdbdc7d070fd544c9d752019a412fc589fa2775a6a52950c0f | 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 Lean.Meta.Sym.Simp.SimpM
import Lean.ScopedEnvExtension
public section
namespace Lean.Meta.Sym.Simp
/--
A named `Sym.simp` variant. St... |
2,948 | lean_file_chunk | 8def48a8c9af8fafa194656158ca9c527a48d890166a5d718e3fce735d3144a0 | lean_source_file | lean_toolchain_source_file_chunks | /-
Copyright (c) 2026 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.Simp.SimpM
namespace Lean.Meta.Sym.Simp
/--
Given `xs` containing free variables
`(xβ : Ξ±β) (xβ : Ξ±... |
15,634 | lean_file_chunk | 6d63452aef39ed79fe4d5d142dedb1296dd783db1ef0d1e7c1ea20d5592ef5b6 | lean_source_file | lean_toolchain_source_file_chunks | /-
Copyright (c) 2026 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.Simp.Lambda
import Lean.Meta.Sym.InstantiateS
import Lean.Meta.Sym.ReplaceS
import Lean.Meta.Sym.Abs... |
3,874 | lean_file_chunk | 5a6bef580c6fc41e7ba1e4b991b44c174cc43b75b4c436e663fbbeeb7e3b274c | 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.Simp.Simproc
public import Lean.Meta.Sym.Simp.Theorems
public import Lean.Meta.Sym.Simp.App
public i... |
7,464 | lean_file_chunk | f91c40891ad2730a0ceba0eb81d5700d3e26276e47f1248bc39e8228cfcfa826 | 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.Pattern
public import Lean.Meta.DiscrTree
import Lean.Meta.Sym.Simp.DiscrTree
import Lean.Meta.AppBu... |
1,410 | lean_file_chunk | 044fcb462ca308fabc54c28e2eb16ddb02fad67b92c9984dfebfde4a61a8e73a | lean_source_file | lean_toolchain_source_file_chunks | /-
Copyright (c) 2026 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.Simp.SimpM
public import Lean.Meta.Sym.InferType
namespace Lean.Meta.Sym.Simp
public abbrev Result.... |
2,754 | lean_file_chunk | 7e240214f3418cce2a3d9ca49a4ec112a668aa78570b076c45214c5c3ad439c4 | lean_source_file | lean_toolchain_source_file_chunks | /-
Copyright (c) 2026 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.Simp.SimpM
import Lean.Meta.Tactic.Util
import Lean.Meta.Sym.InferType
namespace Lean.Meta.Sym
/-!
#... |
2,125 | lean_file_chunk | 23ac8d0afa2bc098357be67f1ba73e3fd7b1404bfec91dc1e7a29f83b7c63fc1 | lean_source_file | lean_toolchain_source_file_chunks | /-
Copyright (c) 2026 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.SymM
import Lean.Meta.FunInfo
import Init.Omega
namespace Lean.Meta.Sym
def isFixedPrefix? (argKind... |
23,902 | lean_file_chunk | 9f145824abf895ee879f2935b3aad41a7ec67cd76960768d6e90835fc795c1e7 | lean_source_file | lean_toolchain_source_file_chunks | /-
Copyright (c) 2026 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.Simp.SimpM
import Init.Sym.Lemmas
import Lean.Meta.Sym.LitValues
import Lean.Meta.StringLitProof
nam... |
3,921 | lean_file_chunk | 0811630771656bfe580df5faab1a69f348aeec942203544a42e127f2f0846ab0 | lean_source_file | lean_toolchain_source_file_chunks | abbrev evalBinBoolPredFin (op : {n : Nat} β Fin n β Fin n β Bool) (a b : Expr) : SimpM Result := do
let some a := getFinValue? a | return .rfl
let some b := getFinValue? b | return .rfl
if h : a.n = b.n then
let r := op a.val (h βΈ b.val)
let e β share (toExpr r)
return .step e (if r then eagerReflBool... |
21,052 | lean_file_chunk | f7d3361fbbe91e5528ec47ea08a21299f723baa1c7005ec769b636581bb18e83 | lean_source_file | lean_toolchain_source_file_chunks | /-
Copyright (c) 2026 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.Simp.SimpM
import Lean.Meta.Tactic.Simp.Types
import Lean.Meta.Sym.AlphaShareBuilder
import Lean.Met... |
966 | lean_file_chunk | 035537524fb1c66f3a7c3a11cd7d626e8793055f8b543a75040dbc945d061181 | lean_source_file | lean_toolchain_source_file_chunks | /-
Copyright (c) 2026 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.Simp.Attr
public import Lean.Meta.Sym.Simp.Variant
public meta import Init.Data.ToString.Name
public... |
794 | lean_file_chunk | e875731841d5da869bad3fda03d73112c0c3d2c8be7411e7d641b6bf0384cfb1 | lean_source_file | lean_toolchain_source_file_chunks | /-
Copyright (c) 2026 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.Simp.SimpM
import Lean.Meta.Sym.Simp.Have
import Lean.Meta.Sym.Simp.Forall
namespace Lean.Meta.Sym.S... |
1,031 | lean_file_chunk | cc3edf8896ac235e2a3e01a728b03b2a648d2949682859c9725b331d0ef422c9 | lean_source_file | lean_toolchain_source_file_chunks | /-
Copyright (c) 2026 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.Simp.Discharger
import Lean.Meta.Sym.Simp.Rewrite
import Lean.Meta.Sym.Simp.Goal
import Lean.Meta.Sy... |
2,902 | lean_file_chunk | df58e2d95c2585c0c30197aa2e4b1886b2efd2f07ee9d19100a1a6c9aac1b309 | 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.Simp.SimpM
import Lean.Meta.Sym.AlphaShareBuilder
import Lean.Meta.Sym.Simp.Simproc
import Lean.Meta... |
6,406 | lean_file_chunk | 61cfe0bcf05d57ce314171771d28aa69e5bacca5ce817ad30c9062ec8d8d705f | lean_source_file | lean_toolchain_source_file_chunks | /-
Copyright (c) 2026 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.Simp.SimpM
import Lean.Meta.Sym.AlphaShareBuilder
import Lean.Meta.Sym.InferType
import Lean.Meta.Sy... |
11,132 | lean_file_chunk | 6b88951f97e6656d0dfd065c51a630dcf28f4dbf0bf1d5a976ac30bf849e2931 | lean_source_file | lean_toolchain_source_file_chunks | /-
Copyright (c) 2026 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.Simp.SimpM
import Lean.Meta.Sym.AlphaShareBuilder
import Lean.Meta.Sym.Simp.Result
namespace Lean.Me... |
8,165 | lean_file_chunk | b1cfa2e12a5aae678167545303941de767b5e9740a7006af74f5b2fa7ef8b41f | lean_source_file | lean_toolchain_source_file_chunks | /-
Copyright (c) 2026 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.Pattern
public import Lean.Meta.DiscrTree.Basic
import Lean.Meta.Sym.Offset
import Lean.Meta.Sym.Eta... |
8,977 | lean_file_chunk | 2d5e41dec963ea63245bb7b450f968b9db2511a81d1106c735ea651282e1bf8f | 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 Lean.Meta.Tactic.Refl
public import Lean.Meta.Tactic.Simp.Main
public import Lean.Elab.Tactic.Rewrite
import Init.Omega
public sect... |
6,761 | lean_file_chunk | a6dd48ef95c82caef17e82415703baa5381cbf39bc673a2f2a4f048aed301f77 | lean_source_file | lean_toolchain_source_file_chunks | /-
Copyright (c) 2021 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Leonardo de Moura
-/
module
prelude
public import Lean.Util.Recognizers
public import Lean.Util.CollectMVars
public import Lean.Meta.Basic
public section
namespace Lean.Meta
... |
518 | lean_file_chunk | 2942c0cbefa3a097e21a5f5556c337ec70c7e21e57d93d15c453fb2f85b64240 | lean_source_file | lean_toolchain_source_file_chunks | /-
Copyright (c) 2022 Sebastian Ullrich. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Sebastian Ullrich
-/
module
prelude
public import Lean.Meta.Tactic.Simp.Arith.Nat
public import Lean.Meta.Tactic.Simp.Arith.Int
public section
namespace Lean.Meta.Simp.Arith
def... |
19,833 | lean_file_chunk | 21bc5fb5d0843e9e206734114705db7622afaeed915ffd3e438f2990196d5f0c | 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.Compiler.InitAttr
public import Lean.Meta.Tactic.Simp.Types
public section
namespace Lean.Meta.Simp
/--
B... |
945 | lean_file_chunk | df5876dc0cfbaf08fbaf91afb71709876fbf598c29ff185956a9f3d08fb7783c | 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.Core
public import Lean.Meta.Tactic.Simp.BuiltinSimprocs.Nat
public import ... |
4,457 | lean_file_chunk | 7a22878665b0c98f84e62a35382be032145d8ac3c8f40fc872806aa103360257 | 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
open Simp
/--
Marks `declName` to be unfolded in... |
23,984 | lean_file_chunk | 02d1fc4a19dc12808acf36ef9587111c0e2d5dbc07c5e82d47ea209e64f75b9b | 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.DiscrTree.Main
public import Lean.Meta.Tactic.AuxLemma
public import Lean.DocString
import Lean.Meta.AppBuilder
impor... |
6,529 | lean_file_chunk | 52aca32b12e71ebb2ae763deee46fe770e2a26513a5edfcc0e1c8fe3a178cd19 | lean_source_file | lean_toolchain_source_file_chunks | s.insert e.origin
def SimpTheorems.addDeclToUnfoldCore (d : SimpTheorems) (declName : Name) : SimpTheorems :=
{ d with toUnfold := d.toUnfold.insert declName }
def SimpTheorems.addLetDeclToUnfold (d : SimpTheorems) (fvarId : FVarId) : SimpTheorems :=
-- A small hack that relies on the fact that constants and `FVa... |
6,054 | lean_file_chunk | 6d383e9d3ad5504f3f06da6a9903968cd3aa576e97d0e03f437c13ed33b0fc1c | lean_source_file | lean_toolchain_source_file_chunks | /-
Copyright (c) 2021 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Leonardo de Moura
-/
module
prelude
public import Lean.Meta.Tactic.Simp.Main
public section
namespace Lean.Meta
open Simp (Stats SimprocsArray)
namespace SimpAll
structure... |
23,991 | lean_file_chunk | 7aebddb84d1ac1538ee606c63f7d5c84146377a87b3724bf4ce73f465eecb6fa | 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.ACLt
public import Lean.Meta.Match.MatchEqsExt
public import Lean.Meta.Tactic.UnifyEq
public import Lean.Meta.Tactic.... |
1,362 | lean_file_chunk | 6681294b3efc7d53373d6d57542a31e060f688d3f280213ea78958a7ae44ad21 | lean_source_file | lean_toolchain_source_file_chunks | trace[Meta.Tactic.simp.discharge] "Discharging with rfl: {e}"
let u β getLevel t
let proof := mkApp2 (.const ``rfl [u]) t a
let proof β mkLambdaFVars xs proof
return .some proof
return .none
def dischargeDefault? (e : Expr) : SimpM (Option Expr) := do
let e := e.cleanupAnnotations
if i... |
3,544 | lean_file_chunk | 048fb72faa90fd526630e8b1e03e75d35e36a52955fddc1a30950d438baf7b92 | 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.Types
public import Lean.Linter.Basic
public section
namespace Lean.Meta.Simp
register_builtin_option linter.... |
1,595 | lean_file_chunk | 826a6f66b81a6b67066a0c8b049d31f477051a0e8294b2f6b4500f28fd572605 | 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.Attr -- shake: keep (macro output dependency)
public meta import Lean.Meta.Tactic.Simp.Sim... |
23,991 | lean_file_chunk | 8007906f7a4d130f26a24279843cdf502023207823905e6e0d312a3a60f1e44c | 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.AppBuilder
public import Lean.Meta.CongrTheorems
public import Lean.Meta.Eqns
public import Lean.Meta.Tactic.Simp.Sim... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.