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 |
|---|---|---|---|---|---|
18,409 | lean_file_chunk | 9d534ec32f8fc321c70f1e642fd5525febbc83c5b6201332e76807e442badbcb | lean_source_file | pkg_mathlib_source_file_chunks | /-
Copyright (c) 2019 Kim Morrison. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Kim Morrison, Mario Carneiro
-/
module
public meta import Mathlib.Control.Basic
public import Mathlib.Data.Finset.Attr
public import Mathlib.Tactic.NormNum
/-!
# Case bash on variables... |
1,329 | lean_file_chunk | 8215a220a7176975894535a62ed7993318437b2374045cb3a458b2f7baf04dc9 | lean_source_file | pkg_mathlib_source_file_chunks | /-
Copyright (c) 2025 Jovan Gerbscheid. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Jovan Gerbscheid
-/
module
public import Batteries.Tactic.PermuteGoals
public import Mathlib.Tactic.Push
/-!
# The `by_cases!` tactic
The `by_cases!` tactic is a variant of the `b... |
1,507 | lean_file_chunk | 56fd22a8d04c8f163aff40225c7f18afde6282263aa22fbd2fd7900c258bab52 | lean_source_file | pkg_mathlib_source_file_chunks | /-
Copyright (c) 2022 Arthur Paulino. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Arthur Paulino
-/
module
public import Mathlib.Init
/-!
# Defines the `swap_var` tactic
Swap the names of two hypotheses.
-/
public meta section
open Lean Meta Elab.Tactic
namesp... |
711 | lean_file_chunk | bb8c775832f44baca29b2e15265e3794d60f56ccc740c02f7f7351587648504d | lean_source_file | pkg_mathlib_source_file_chunks | /-
Copyright (c) 2022 Jireh Loreaux. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Jireh Loreaux
-/
module
public import Mathlib.Init
public meta import Lean.Elab.Tactic.Basic
public meta import Lean.Elab.SyntheticMVars
/-!
# The `type_check` tactic
Define the `type... |
2,278 | lean_file_chunk | 0094964cb5d9ad7d696d58e3153b900b6709eb3887d6e93d7cf2eec02a1c8bd0 | lean_source_file | pkg_mathlib_source_file_chunks | /-
Copyright (c) 2025 Vasilii Nesterov. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Vasilii Nesterov
-/
module
import all Lean.Elab.Tactic.Induction
public import Mathlib.Data.PNat.Basic
public meta import Mathlib.Tactic.ToAdditive
/-!
# `pnat_to_nat`
This file ... |
984 | lean_file_chunk | 26d4ced1dc014fac42a86401ff0d170b2305603d40a50dccf8bccddff5fd7616 | lean_source_file | pkg_mathlib_source_file_chunks | /-
Copyright (c) 2022 Moritz Doll. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Moritz Doll
-/
module
public import Mathlib.Init
/-!
# `rsuffices` tactic
The `rsuffices` tactic is an alternative version of `suffices`, that allows the usage
of any syntax that would... |
10,088 | lean_file_chunk | 8d107a88d31872b6c47f691e150f782e12e7fc75623185d7de0bd2a8d57ca47e | lean_source_file | pkg_mathlib_source_file_chunks | /-
Copyright (c) 2023 Kyle Miller. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Kyle Miller
-/
module
public meta import Lean.Elab.App
public meta import Lean.Elab.BuiltinNotation
public import Mathlib.Tactic.ToExpr
/-! # Elaborator for functorial binary operators
... |
2,895 | lean_file_chunk | cd68521d2d851f3b34285a6593eb269f05624f40509c8965829ade0fd356b30c | lean_source_file | pkg_mathlib_source_file_chunks | /-
Copyright (c) 2022 Siddhartha Gadgil. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Gabriel Ebner, Siddhartha Gadgil, Jannis Limperg
-/
module
public import Mathlib.Init
/-!
# The `recover` tactic modifier
This defines the `recover` tactic modifier, which can be... |
15,283 | lean_file_chunk | 7b8bdb4e06b607ac14e4e77769760b271d7f4151f21ebdc7717530c1a3b9d721 | lean_source_file | pkg_mathlib_source_file_chunks | /-
Copyright (c) 2018 Johan Commelin. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Johan Commelin, Reid Barton, Simon Hudon, Thomas Murrills, Mario Carneiro
-/
module
public meta import Qq
public meta import Mathlib.Util.AtomM
public import Mathlib.Data.List.TFAE -... |
1,421 | lean_file_chunk | a78600d6d73c46f2da87313277c675ad349b61aa81009b0a8384a84504b985c0 | lean_source_file | pkg_mathlib_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
-/
module
public meta import Lean.Elab.Tactic.ElabTerm
public import Mathlib.Init
/-!
# The `rename'` tactic
The `rename'` tactic renames one or several hypotheses.
-/
... |
230 | lean_file_chunk | 1886df5d237c2f0c8f7833ac28f9beb53ab21126d71178e292ddbd3772eba32b | lean_source_file | pkg_mathlib_source_file_chunks | module -- shake: keep-all
public meta import Lean.Meta.Tactic.TryThis
public meta import Mathlib.Lean.Expr.Basic
import Mathlib.Tactic.Linter.DeprecatedModule
public import Mathlib.Init
deprecated_module (since := "2025-11-25") |
16,241 | lean_file_chunk | 0bb061f5a8e0418b1a72581ac70b580772319bcaf909bcc3d54169bbd2235d0e | lean_source_file | pkg_mathlib_source_file_chunks | /-
Copyright (c) 2018 Johannes Hölzl. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Johannes Hölzl, David Renshaw
-/
module
public meta import Lean.Elab.DeclarationRange
public meta import Lean.Meta.Tactic.Cases
public meta import Mathlib.Lean.Meta
public meta import... |
3,414 | lean_file_chunk | 9224655695419828565b61915cfc0030ded23b152e4c05e003d973b00f36b708 | lean_source_file | pkg_mathlib_source_file_chunks | /-
Copyright (c) 2023 Thomas Murrills. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Thomas Murrills
-/
module
public import Mathlib.Init
public meta import Lean.Elab.Tactic.Basic
public meta import Lean.Meta.Tactic.Util
/-!
# Fail if no progress
This implements th... |
1,409 | lean_file_chunk | ddbbf46ba3f71d68866eb039516c1a9c121b2a41a9dbd9e810740c2679d91064 | lean_source_file | pkg_mathlib_source_file_chunks | /-
Copyright (c) 2023 Arend Mellendijk. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Arend Mellendijk
-/
module
public import Mathlib.Tactic.ArithMult.Init
/-!
# Multiplicativity
We define the `arith_mult` tactic using aesop
-/
public meta section
namespace Ari... |
6,290 | lean_file_chunk | 868224b9afdee74af2cdd4721af17e7ad27597684c28e757265d556f5af7ee8e | lean_source_file | pkg_mathlib_source_file_chunks | /-
Copyright (c) 2024 Eric Wieser. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Eric Wieser, Kyle Miller, Jovan Gerbscheid
-/
module
public import Mathlib.Init
/-!
# The `fast_instance%` and `inferInstanceAs%` term elaborators
-/
meta section
namespace Mathlib.El... |
1,237 | lean_file_chunk | da05122bb11cc8bac166e1f0be3f3583524ea117c4202e7c45d5c45a59f20c2f | lean_source_file | pkg_mathlib_source_file_chunks | /-
Copyright (c) 2024 Eric Wieser. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Eric Wieser
-/
module
public import Mathlib.Init
public import Qq.Macro
/-!
# The `eval%` term elaborator
This file provides the `eval% x` term elaborator, which evaluates the constant... |
4,524 | lean_file_chunk | bb5a6bdf4e91eb385148465ba5da94d5e6063660cd6ac2c6712eb8df91bcdfa1 | lean_source_file | pkg_mathlib_source_file_chunks | /-
Copyright (c) 2018 Simon Hudon. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Simon Hudon
-/
module
public meta import Lean.Meta.Tactic.Apply
public meta import Lean.Meta.Tactic.Assumption
public meta import Lean.Meta.MatchUtil
public meta import Lean.Meta.Tactic.... |
3,639 | lean_file_chunk | 2eace0725f3883bcb9b0b68cb0b784f23563477f77e7f417b4708fedc6a65392 | lean_source_file | pkg_mathlib_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
-/
module
public import Mathlib.Tactic.Eqns
public import Mathlib.Util.TermReduce
/-!
# Irreducible definitions
This file defines an `irreducible_def` command,
which wo... |
1,836 | lean_file_chunk | 5f292218bc2f35f294ac6df297850fc2d5bf8e6e08eccaa05a1695f452cf525c | lean_source_file | pkg_mathlib_source_file_chunks | /-
Copyright (c) 2023 Damiano Testa. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Damiano Testa
-/
module
public import Mathlib.Init
public meta import Lean.Elab.Tactic.ElabTerm
public meta import Lean.Meta.Tactic.TryThis
/-!
# Tactic `change? term`
This tactic is... |
2,717 | lean_file_chunk | 4e1decf26e5d9a2497ec3f3bd0d38343ccb89e196396458ec4b7138cccb37639 | lean_source_file | pkg_mathlib_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
public import Mathlib.Util.WithWeakNamespace
/-! # `scoped[NS]` syntax
This is a replacement for the `localized` command in mathlib. It is sim... |
4,060 | lean_file_chunk | b1cdc70d3961c22f19c35b531a7fe443e753f59e91ab87b5a0e24ac08f5e6255 | lean_source_file | pkg_mathlib_source_file_chunks | /-
Copyright (c) 2022 Arthur Paulino. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Arthur Paulino, Edward Ayers, Mario Carneiro
-/
module
public import Mathlib.Init
public meta import Lean.Elab.Binders
public meta import Lean.Elab.SyntheticMVars
public meta import L... |
685 | lean_file_chunk | 4b65191f1a46840d923bda6d376aaff64f2f86491a27f61579d21f8cd87f8956 | lean_source_file | pkg_mathlib_source_file_chunks | /-
Copyright (c) 2024 Eric Wieser. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Eric Wieser
-/
module
public import Mathlib.Init
/-! # The `ofNat()` macro -/
public meta section
/--
This macro is a shorthand for `OfNat.ofNat` combined with `no_index`.
When writi... |
15,372 | lean_file_chunk | 66b0874782d6a1c2cc7f5043b0f7304aaa2dad3659c89b480a3381a4923807ad | lean_source_file | pkg_mathlib_source_file_chunks | /-
Copyright (c) 2025 Vasilii Nesterov. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Vasilii Nesterov
-/
module
public meta import Mathlib.Tactic.Order.CollectFacts
public meta import Mathlib.Tactic.Order.Graph.Basic
public import Mathlib.Tactic.ByContra
public impo... |
104 | lean_file_chunk | 016573a0af78d5050416b5bf1aae1ceda618add603244812a54404431fdbe5d7 | lean_source_file | pkg_mathlib_source_file_chunks | module
public import Mathlib.Tactic.Monotonicity.Basic
public import Mathlib.Tactic.Monotonicity.Lemmas |
8,029 | lean_file_chunk | 40a16b59e74074949e1726d135cf544782e08eefd34c50445aa0363e90387094 | lean_source_file | pkg_mathlib_source_file_chunks | /-
Copyright (c) 2018 Johannes Hölzl. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Johannes Hölzl, Mario Carneiro, Johan Commelin, Reid Barton, Thomas Murrills
-/
module
public meta import Lean.Meta.Tactic.Cases
import all Lean.MetavarContext
public import Mathlib.T... |
1,877 | lean_file_chunk | 32df0508f5a7cced9061f73dfb609928312889a2a15062d0dd88044a0771b40f | lean_source_file | pkg_mathlib_source_file_chunks | /-
Copyright (c) 2023 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Gabriel Ebner
-/
module
public import Mathlib.Init
public meta import Lean.PrettyPrinter.Delaborator.Builtins
/-!
# Attribute to pretty-print universe level parameters by defa... |
1,778 | lean_file_chunk | 64645b22db7aa4a74ae65799defd701145f1175b430f4bca703a5bd886797175 | lean_source_file | pkg_mathlib_source_file_chunks | /-
Copyright (c) 2023 Eric Wieser. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Eric Wieser
-/
module
public import Mathlib.Init
public meta import Lean.Meta.Eqns
public meta import Batteries.Lean.NameMapAttribute
public meta import Lean.Elab.Exception
public meta i... |
2,202 | lean_file_chunk | 868b7e86b0b09cd793e5ab389c34487cd55d1b7eea9b88d06e7ead21d208aadb | lean_source_file | pkg_mathlib_source_file_chunks | /-
Copyright (c) 2022 Joshua Clune. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Joshua Clune
-/
module
public meta import Lean.Elab.Tactic.ElabTerm
public import Mathlib.Init
/-!
Defines the `inhabit α` tactic, which tries to construct an `Inhabited α` instance,
c... |
1,846 | lean_file_chunk | 09e3ce8328bc2ba6d1d3350a5ef4a7269d7a57acbfbe6e2431f118e26e440ff5 | lean_source_file | pkg_mathlib_source_file_chunks | /-
Copyright (c) 2023 Kyle Miller. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Kyle Miller
-/
module
public import Mathlib.Init
/-!
# `ToExpr` instances for Mathlib
-/
public meta section
namespace Mathlib
open Lean
set_option autoImplicit true in
deriving inst... |
6,145 | lean_file_chunk | ec54d5c86441adcc6b344f64e9797ef11d8481b2ba2a2da2c0a9fe21bf7b0b04 | lean_source_file | pkg_mathlib_source_file_chunks | /-
Copyright (c) 2021 Mario Carneiro. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Mario Carneiro, Kyle Miller
-/
module -- shake: keep-all, shake: keep-downstream
public meta import Lean
public import Mathlib.Tactic.PPWithUniv
public import Mathlib.Tactic.ExtendDo... |
1,441 | lean_file_chunk | 1d304e4c878ff2b6ea606db524a6b21d101848e2281546ba58956c053b684a82 | lean_source_file | pkg_mathlib_source_file_chunks | /-
Copyright (c) 2022 Joshua Clune. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Joshua Clune
-/
module
public import Mathlib.Init
public meta import Lean.Elab.Tactic.ElabTerm
/-!
# The `clear*` tactic
This file provides a variant of the `clear` tactic, which clea... |
2,147 | lean_file_chunk | 6ad695cb64e58f4ef98e93cd9b4890407846c3bb97d5c1a1a00c28d1eeb0d6bf | lean_source_file | pkg_mathlib_source_file_chunks | /-
Copyright (c) 2025 Jovan Gerbscheid. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Jovan Gerbscheid
-/
module
import all Init.Core -- TODO: for accessing proofs
public import Mathlib.Tactic.Translate.ToDual
/-!
## `@[to_dual]` attributes for basic types
-/
pub... |
5,533 | lean_file_chunk | 8e358e354b003d21ef10cf7f5c7d9319bf92cf959c51d9c4c1eae2dcefa957dc | lean_source_file | pkg_mathlib_source_file_chunks | /-
Copyright (c) 2023 Mac Malone. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Mac Malone, Kyle Miller
-/
module
public import Mathlib.Init
public meta import Lean.Elab.Command
public meta import Lean.Elab.DeclUtil
public meta import Lean.Meta.Tactic.TryThis
public ... |
938 | lean_file_chunk | 53ebf1bb36dafa67136ae0226bdd9fee888fd809dcad65e03b1a4ff09350bf83 | lean_source_file | pkg_mathlib_source_file_chunks | /-
Copyright (c) 2022 Moritz Doll. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Arthur Paulino, Gabriel Ebner, Moritz Doll
-/
module
public import Mathlib.Init
/-!
# The `existsi` tactic
This file defines the `existsi` tactic: its purpose is to instantiate existenti... |
4,173 | lean_file_chunk | 2a77e8d066d18cdd229e0a57000d63982ad891ec8f092659ce16bdf903ba4189 | lean_source_file | pkg_mathlib_source_file_chunks | /-
Copyright (c) 2020 Oliver Nash. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Jireh Loreaux, Kim Morrison, Oliver Nash
-/
module
public import Mathlib.Algebra.Group.Action.Defs -- shake: keep (metaprogram output dependency)
public import Mathlib.Tactic.Abel
/-! ... |
2,045 | lean_file_chunk | 216000d6550b6ce61e8f2d9a9f43524e825a033257ec5a1a2394a95705ea834f | lean_source_file | pkg_mathlib_source_file_chunks | /-
Copyright (c) 2018 Mario Carneiro. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Mario Carneiro, Michail Karatarakis, Kyle Miller
-/
module
public import Mathlib.Init
public meta import Lean.Elab.SyntheticMVars
/-!
# `clean%` term elaborator
Remove identity func... |
3,689 | lean_file_chunk | 80bef41fa8fcec7cbc3288aad72a08c9f35dc3b9092537068b2df8121053ba7b | lean_source_file | pkg_mathlib_source_file_chunks | /-
Copyright (c) 2020 Kim Morrison. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Lucas Allen, Kim Morrison
-/
module
public meta import Lean.Elab.Tactic.Conv.Basic
public import Mathlib.Init
/-!
## Introduce the `apply_congr` conv mode tactic.
`apply_congr` will a... |
22,543 | lean_file_chunk | 8b3d3c2bfb025a9344d7feacb32cf8ddde88fb3a7de89323b1fdf09c37976d8d | lean_source_file | pkg_mathlib_source_file_chunks | /-
Copyright (c) 2018 Simon Hudon. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Simon Hudon
-/
module
public meta import Lean.Elab.Match
public meta import Lean.Elab.Deriving.Basic
public meta import Lean.Elab.PreDefinition.Main
public import Mathlib.Control.Travers... |
1,459 | lean_file_chunk | 490dc41a1a696fb4f9fb287e4257f7c4bd383945e4f6fb6429ab8740fdb2b3c1 | lean_source_file | pkg_mathlib_source_file_chunks | /-
Copyright (c) 2023 Adam Topaz. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Adam Topaz
-/
module
public meta import Lean.Elab.Tactic.ElabTerm
public meta import Mathlib.Lean.Meta.Basic
public import Mathlib.Init
/-!
# Apply at
A tactic for applying functions at... |
2,145 | lean_file_chunk | caecbc08bb5adc8c34cfea90ca42d8ea106486c3f8ebca38718f5ebe58dd0596 | lean_source_file | pkg_mathlib_source_file_chunks | /-
Copyright (c) 2022 Dhruv Bhatia. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Dhruv Bhatia, Eric Wieser, Mario Carneiro, Thomas Zhu
-/
module
public meta import Lean.Elab.Tactic.Basic
public import Mathlib.Init
/-!
# polyrith Tactic
The `polyrith` tactic relie... |
4,918 | lean_file_chunk | f243d08620504997f576f7bbddf17c43caa63d5974fdeb14e4a4a55a42e9c19f | lean_source_file | pkg_mathlib_source_file_chunks | /-
Copyright (c) 2023 Patrick Massot. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Moritz Doll, Mario Carneiro, Robert Y. Lewis, Patrick Massot
-/
module
public import Mathlib.Data.Rat.Cast.Order
public import Mathlib.Data.Real.Basic
public import Mathlib.Tactic.Zif... |
9,122 | lean_file_chunk | 6554f131626d38f02add54e9248017fffedf33b6814d5e8c7f8b81165a239f18 | lean_source_file | pkg_mathlib_source_file_chunks | /-
Copyright (c) 2018 Simon Hudon. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Simon Hudon, David Renshaw
-/
module
public import Mathlib.Logic.Basic -- shake: keep (dependency of tactic output)
public meta import Qq
public meta import Mathlib.Lean.Meta
public imp... |
23,987 | lean_file_chunk | 11399f7973fc5fb176ef23a0e12958a16c37b6b3acc709d37aefea24e9af5702 | lean_source_file | pkg_mathlib_source_file_chunks | /-
Copyright (c) 2021 Mario Carneiro. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Mario Carneiro
-/
module
public import Mathlib.Logic.Basic -- shake: keep (Qq output dependency)
public meta import Mathlib.Util.AtomM
public meta import Qq
public import Batteries.T... |
6,067 | lean_file_chunk | e9de4f379aa990702c9914e9fe5c6f9175ad914f913e96d082d3ab6bc7c29df8 | lean_source_file | pkg_mathlib_source_file_chunks | let (e, t₃) ← t₃.mvarId!.intro x; t₃.withContext do
applyProof t₃ (Γ.insert x (.fvar e)) p₂
| .em false n => do
let A ← mkFreshExprMVarQ q(Prop)
let e : Q(Decidable $A) ← liftOption (Γ.find? n)
let .true ← Meta.isDefEq (← Meta.inferType e) q(Decidable $A) | failure
g.assignIfDefEq q(@Decidable.e... |
13,898 | lean_file_chunk | 63af7222128174d361f6596b73ebad934f1283016ecbc503f1243c66a19c9901 | lean_source_file | pkg_mathlib_source_file_chunks | /-
Copyright (c) 2023 Kyle Miller. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Kyle Miller
-/
module
public import Mathlib.Logic.Equiv.Defs
public meta import Mathlib.Tactic.Simps.Basic
/-!
# Generating "proxy types"
This module gives tools to create an equivalen... |
23,998 | lean_file_chunk | 24c4ce51dbfa5ff44b25e22a7a1dbe0414bb1a49e8955ecba765f2c3598c2d02 | lean_source_file | pkg_mathlib_source_file_chunks | /-
Copyright (c) 2025 Aaron Liu. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Aaron Liu, Wojciech Nawrocki
-/
module
public meta import Lean.Elab.Tactic.Simp
public meta import Lean.Elab.Tactic.Conv.Basic
public meta import Lean.Elab.Tactic.Rewrite
public import Mat... |
5,674 | lean_file_chunk | 9876fb52bbfa3e8636f011000124866c004f257205686796463b7cefb8318087 | lean_source_file | pkg_mathlib_source_file_chunks | by proof irrelevance, this adds no observable complexity.
With `rewrite! +letAbs (castMode := .all)`, casts are inserted whenever necessary.
This means that the 'motive is not type correct' error never occurs,
at the expense of creating potentially complicated terms.
-/
syntax (name := depRewriteSeq) "rewrite!" optCon... |
10,081 | lean_file_chunk | 63b7f142408615609afa41dbd8a8c367ea6224a19d587428f6ec2b00138e8ae8 | lean_source_file | pkg_mathlib_source_file_chunks | /-
Copyright (c) 2019 Patrick Massot. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Keeley Hoek, Patrick Massot, Kim Morrison
-/
module
public meta import Mathlib.Lean.Expr.Basic
public import Mathlib.Order.Hom.Basic
public meta import Mathlib.Tactic.ToDual
/-!
# Th... |
14,177 | lean_file_chunk | 27a64f75c84f48d52f9e67146c06c3b3d7ce7b2943f7df5aa1f83d160e3eb4f6 | lean_source_file | pkg_mathlib_source_file_chunks | /-
Copyright (c) 2024 Tomas Skrivan. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Tomas Skrivan
-/
module
public meta import Mathlib.Tactic.FunProp.Decl
public meta import Mathlib.Tactic.FunProp.FunctionData
public meta import Mathlib.Tactic.FunProp.Mor
public meta ... |
1,831 | lean_file_chunk | 8da2ca0267ab72ec2fca5593de75e3985681c9164d6e7b815ddfcfcbcea83091 | lean_source_file | pkg_mathlib_source_file_chunks | /-
Copyright (c) 2026 Robin Carlier. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Robin Carlier, Jovan Gerbscheid
-/
module
public import Mathlib.Init
/-!
`dsimp% […] t` runs `dsimp […]` on term `t`.
If `t` is a proof, then it runs `dsimp […]` on the type of `t` in... |
1,164 | lean_file_chunk | 27017a5df1c1c9b1b7cba46849130cdb147b8922bed11c3b84b0755d14e8eade | lean_source_file | pkg_mathlib_source_file_chunks | /-
Copyright (c) 2020 Eric Wieser. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Eric Wieser
-/
module
public import Mathlib.Init
public import Batteries.Util.LibraryNote
/-!
# Documentation for `ext` tactic
This file contains a library note on the use of the `ext`... |
2,882 | lean_file_chunk | a545c3d02db4f43788521d04fb7e20f2acae676ee5a2615dff32c2efded1cde9 | lean_source_file | pkg_mathlib_source_file_chunks | /-
Copyright (c) 2020 Anne Baanen. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Anne Baanen, Mario Carneiro, Alex J. Best
-/
module
public import Mathlib.Init
/-!
# The `simp_rw` tactic
This file defines the `simp_rw` tactic: it functions as a mix of `simp` and `r... |
1,279 | lean_file_chunk | 4d2900ba14b0afaf69c61bce727494c48a4409ad2bf7af5aa4c4d484cebd6f38 | lean_source_file | pkg_mathlib_source_file_chunks | /-
Copyright (c) 2022 Yury Kudryashov. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Yury Kudryashov, Mario Carneiro
-/
module
public import Mathlib.Init
public meta import Lean.Elab.Tactic.Basic
public meta import Lean.Meta.Tactic.Replace
/-!
# Infer an optional pa... |
1,845 | lean_file_chunk | 78df16e78bc507a59a1cf7d0f702c3637cd6ca08c5198df6a962d32e8953406b | lean_source_file | pkg_mathlib_source_file_chunks | /-
Copyright (c) 2023 Moritz Doll. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Moritz Doll
-/
module
public import Mathlib.Tactic.Continuity.Init
/-!
# Continuity
We define the `continuity` tactic using `aesop`. -/
public meta section
attribute [aesop (rule_set... |
23,994 | lean_file_chunk | d14b3edde8325791aad1c2511faed08e2acbffa7aa39a4871efaafbc330c95fb | lean_source_file | pkg_mathlib_source_file_chunks | /-
Copyright (c) 2023 Kyle Miller. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Kyle Miller
-/
module
public meta import Lean.Elab.Tactic.Config
public meta import Lean.Elab.Tactic.RCases
public meta import Lean.Meta.Tactic.Assumption
public meta import Lean.Meta.Ta... |
11,742 | lean_file_chunk | a1e72f2360d6d350c5210e05290cd7dc7bff8d58ec6dcea7214f02fb4c26c850 | lean_source_file | pkg_mathlib_source_file_chunks | def Lean.MVarId.subsingletonHelim? (mvarId : MVarId) : MetaM (Option (List MVarId)) :=
mvarId.withContext <| observing? do
mvarId.checkNotAssigned `subsingletonHelim
let some (α, lhs, β, rhs) := (← withReducible mvarId.getType').heq? | failure
withSubsingletonAsFast fun elim => do
let eqmvar ← mkFre... |
122 | lean_file_chunk | 443afcef84f6e2ab4e79dc4acfcbc6b596c633cc0494a178a34957a5ea391c0a | lean_source_file | pkg_mathlib_source_file_chunks | module -- shake: keep-all
public import Mathlib.Tactic.Linter.DeprecatedModule
deprecated_module (since := "2025-11-09") |
2,760 | lean_file_chunk | ae328a3ec4248146c4cefd3f9d7ffee8f0ca42ec2742fbd25c42d87534dea07f | lean_source_file | pkg_mathlib_source_file_chunks | /-
Copyright (c) 2022 Ian Benway. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Ian Benway
-/
module
public import Mathlib.Init
public meta import Lean.Elab.Tactic.ElabTerm
/-!
# The `set` tactic
This file defines the `set` tactic and its variant `set!`.
`set a :=... |
2,725 | lean_file_chunk | cc0e65b454246e3ad8728b80145d719550932b33176b97c8e42ac54963c69dbd | lean_source_file | pkg_mathlib_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
-/
module
public import Mathlib.Init
public meta import Lean.Elab.Binders
/-!
# Macro for spread syntax (`__ := instSomething`) in structures.
-/
public meta section
o... |
770 | lean_file_chunk | 7aacb31f3b7c45aa2de4ad6776a5367a27a3cbc9fbbeb6071d54fbc6b64f1fb3 | lean_source_file | pkg_mathlib_source_file_chunks | /-
Copyright (c) 2023 Lean FRO, LLC. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Kim Morrison
-/
module
public import Mathlib.Init
public meta import Lean.Elab.Tactic.Basic
/-!
# The `rw_search` tactic has been removed from Mathlib.
-/
public meta section
namespa... |
8,289 | lean_file_chunk | c44350539f45ec74325ccacea6f3d86f1d01e85c84c67288d25aff5b494ed678 | lean_source_file | pkg_mathlib_source_file_chunks | /-
Copyright (c) 2022 Mario Carneiro. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Mario Carneiro
-/
module
public import Mathlib.Init
public meta import Lean.Elab.Tactic.Conv.Pattern
/-!
# `casesm`, `cases_type`, `constructorm` tactics
These tactics implement rep... |
645 | lean_file_chunk | 02b01888b24e58199a4ce6835d249723308f36eed037e84aee27f6db2c1476c8 | lean_source_file | pkg_mathlib_source_file_chunks | /-
Copyright (c) 2022 Mario Carneiro. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Mario Carneiro
-/
module
public import Mathlib.Init
public meta import Lean.Elab.Tactic.ElabTerm
public meta import Lean.Meta.Eval
/-!
# Defines the `trace` tactic.
-/
public meta s... |
534 | lean_file_chunk | 63c2ea36ab9ca676e0a252d2ecfaed5b6a9e0f42ef84957cf9e578a31a4da4bd | lean_source_file | pkg_mathlib_source_file_chunks | /-
Copyright (c) 2023 Sebastian Zimmer. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Sebastian Zimmer, Mario Carneiro, Heather Macbeth, Jovan Gerbscheid
-/
module
public import Mathlib.Tactic.GRewrite.Elab
/-!
# The generalized rewriting tactic
The `grw`/`grewrit... |
792 | lean_file_chunk | e04b59a486cf06daefb8c295e018f6adc00ff49b221a112340f4c6e00ec1cc73 | lean_source_file | pkg_mathlib_source_file_chunks | /-
This is the `Linter`s file: it imports files defining linters.
Most syntax linters, in particular the ones enabled by default, are imported in `Mathlib.Init`;
this file contains all linters not imported in that file.
This file is ignored by `shake`:
* it is in `ignoreAll`, meaning that all its imports are considere... |
12,675 | lean_file_chunk | 029288cddc54ea3c825bbd84f6c955ca78b1a4b02508a745238318b1de88c19f | lean_source_file | pkg_mathlib_source_file_chunks | /-
Copyright (c) 2022 Kim Morrison. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Kim Morrison, Kyle Miller
-/
module
public import Mathlib.Data.Nat.Notation
public import Mathlib.Tactic.CongrExclamation
/-!
# The `convert` tactic.
The `exact e` and `refine e` tact... |
11,516 | lean_file_chunk | 7df17190fe50798e848efc2b71fe6079b485dede2c2ccc2da555734c450df8c9 | lean_source_file | pkg_mathlib_source_file_chunks | /-
Copyright (c) 2023 Jireh Loreaux. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Jireh Loreaux
-/
module
public meta import Mathlib.Tactic.Basic
public import Mathlib.Order.Filter.Basic
public meta import Mathlib.Tactic.ToAdditive
public meta import Mathlib.Tactic.... |
1,847 | lean_file_chunk | a81795cfad0cb4e5fe92366f971092a2f689d868f639df5ed49c6316043f1fa0 | lean_source_file | pkg_mathlib_source_file_chunks | /-
Copyright (c) 2019 Patrick Massot. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Arthur Paulino, Patrick Massot
-/
module
public meta import Lean.Elab.Tactic.Location
public meta import Mathlib.Lean.Expr.Basic
public import Mathlib.Util.Tactic
/-!
# The `rename_b... |
4,834 | lean_file_chunk | 30c8a315f67551a587af9ca099097b3f9d272b42f96bc428777d62430699c683 | lean_source_file | pkg_mathlib_source_file_chunks | /-
Copyright (c) 2022 Moritz Doll. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Moritz Doll, Mario Carneiro, Robert Y. Lewis
-/
module
public import Mathlib.Data.Int.Cast.Basic
public import Mathlib.Order.Basic
public meta import Mathlib.Tactic.ToAdditive
public met... |
1,508 | lean_file_chunk | 7434a9f9206ba9814e6128edb9311792034cb85a33900ce20fc7b2f41bf0f26d | lean_source_file | pkg_mathlib_source_file_chunks | /-
Copyright (c) 2025 Lenny Taelman. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Lenny Taelman
-/
module
public import Mathlib.Data.Set.SymmDiff -- shake: keep (Qq dependency)
public meta import Mathlib.Tactic.ToDual
/-!
# The `tauto_set` tactic
-/
public meta s... |
4,016 | lean_file_chunk | ac0d7af499f5f672a8d6f79d2bab240fac451855f42c797a43fe4ffb043299b5 | lean_source_file | pkg_mathlib_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
public import Mathlib.Init
public meta import Lean.Meta.Tactic.TryThis
public meta import Qq.Match
public meta import Mathlib.Lean.Elab.InfoTree
public import Bat... |
290 | lean_file_chunk | d44d20d0c44aafc915d2975208d5b1bf88d4df5b05e5561175ada1ee00588e4d | lean_source_file | pkg_mathlib_source_file_chunks | /-
Copyright (c) 2020 Sébastien Gouëzel. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Sébastien Gouëzel, Mario Carneiro
-/
module
public import Mathlib.Tactic.Nontriviality.Core
/-! # The `nontriviality` tactic. -/
public meta section |
830 | lean_file_chunk | f2ac7d365017f0b78f4c1d594e72593d99e2c8160e74a48ad4e36c4e5c8840ab | lean_source_file | pkg_mathlib_source_file_chunks | /-
Copyright (c) 2023 Mario Carneiro, Heather Macbeth. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Mario Carneiro, Heather Macbeth
-/
module
public import Mathlib.Tactic.GCongr.CoreAttrs
public import Mathlib.Tactic.Hint
/-! # Setup for the `gcongr` tactic
The co... |
12,452 | lean_file_chunk | 5c0b93bc2e4bcb2726811adb804e58994c19963a640585ec9a09d6047f61d997 | lean_source_file | pkg_mathlib_source_file_chunks | /-
Copyright (c) 2022 Abby J. Goldberg. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Abby J. Goldberg, Mario Carneiro
-/
module
public import Mathlib.Tactic.Ring
/-!
# `linear_combination'` Tactic
In this file, the `linear_combination'` tactic is created. This ta... |
1,842 | lean_file_chunk | 86b8b0030d1c987e3709a6311af4d5a10de578971b9aa7e6e78aafb0ba6dbda5 | lean_source_file | pkg_mathlib_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
-/
module
public import Mathlib.Init
/-!
# Defines the `sudo set_option` command.
Allows setting undeclared options.
-/
public meta section
open Lean Elab
private de... |
100 | lean_file_chunk | 5654e20296eed3c2f8c2549acc3f2fbffffb2fcaad35c59d5f0f38d7bc2b6219 | lean_source_file | pkg_mathlib_source_file_chunks | module
public import Mathlib.Tactic.Positivity.Basic
public import Mathlib.Tactic.Positivity.Finset |
4,549 | lean_file_chunk | fd2f3c9a526335f46da05ab0cd6910961cac9f81fbb86f5629da0b29b7512ae0 | lean_source_file | pkg_mathlib_source_file_chunks | /-
Copyright (c) 2022 Moritz Doll. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Moritz Doll
-/
module
public import Mathlib.Init
/-!
# `nth_rewrite` tactic
The tactic `nth_rewrite` and `nth_rw` are variants of `rewrite` and `rw` that only performs the
`n`th possib... |
5,055 | lean_file_chunk | 57685ad809927b93d2f700ac3743b90df325a218ae915917c75548a30e4a3fcc | lean_source_file | pkg_mathlib_source_file_chunks | /-
Copyright (c) 2023 Sébastien Gouëzel. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Alex J. Best, Mac Malone
-/
module
public import Mathlib.Init
public meta import Lean.Elab.Declaration
/-!
# Suppressing compilation to executable code in a file or in a section
... |
624 | lean_file_chunk | 24241c1ed75cc8aa95fb8172f9d0d2eb78da517aaf61dc50ed5539cea8360f0e | lean_source_file | pkg_mathlib_source_file_chunks | /-
Copyright (c) 2022 Evan Lohn. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Evan Lohn, Mario Carneiro
-/
module
public import Mathlib.Init
/-!
# The `substs` macro
The `substs` macro applies the `subst` tactic to a list of hypothesis, in left to right order.
-/
... |
2,821 | lean_file_chunk | 6b165cfb1e6b3e0e51dce97cb8286da5067a68851beda3c95199c48a904ab902 | lean_source_file | pkg_mathlib_source_file_chunks | /-
Copyright (c) 2024 Kyle Miller. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Kyle Miller
-/
module
public import Mathlib.Init
public meta import Lean.Meta.Tactic.TryThis
/-!
# Adaptation notes
This file defines a `#adaptation_note` command.
Adaptation notes are... |
22,065 | lean_file_chunk | a98d546fafca3f11838337cf50cc8b89b4e023f743da51439b6cb61ee609a5c0 | lean_source_file | pkg_mathlib_source_file_chunks | /-
Copyright (c) 2018 Mario Carneiro. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Mario Carneiro, Kim Morrison
-/
module
public import Mathlib.Util.AtomM.Recurse
public import Mathlib.Tactic.NormNum.Basic
public import Mathlib.Tactic.TryThis
public meta import Math... |
2,341 | lean_file_chunk | 10536718277a780cc179b47a2bf17dfcd4679f6c552730fa182e2992f24ad50d | lean_source_file | pkg_mathlib_source_file_chunks | /-
Copyright (c) 2025 Jovan Gerbscheid. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Jovan Gerbscheid
-/
module
public import Mathlib.Util.AddRelatedDecl
public import Mathlib.Tactic.Push
public import Mathlib.Tactic.Translate.Attributes
/-!
# The `to_fun` attribut... |
9,402 | lean_file_chunk | 73a65cfde944f3a21a9059e051d951f7e06be7c4c739053607dd7794ded167e1 | lean_source_file | pkg_mathlib_source_file_chunks | /-
Copyright (c) 2023 Kyle Miller. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Kyle Miller
-/
module
public import Mathlib.Data.Fintype.OfMap -- shake: keep (metaprogram output dependency)
public import Mathlib.Tactic.ProxyType
public meta import Mathlib.Tactic.To... |
1,636 | lean_file_chunk | 8e64d96d6dbf7f3014ef23a4059ef02f2f75025bac617b769d1261a0ab14bf09 | lean_source_file | pkg_mathlib_source_file_chunks | /-
Copyright (c) 2022 Alex J. Best. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Alex J. Best
-/
module
public import Mathlib.Init
public meta import Lean.Parser.Term
public meta import Lean.Parser.Do
public meta import Lean.Elab.Command
/-!
# The `unset_option` co... |
10,100 | lean_file_chunk | f840e6b52ec563ba8b56d9e23b0618220fcb3ce732f8533766f05a190e2f98a4 | lean_source_file | pkg_mathlib_source_file_chunks | /-
Copyright (c) 2024 Geoffrey Irving. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Geoffrey Irving
-/
module
public import Aesop
public meta import Mathlib.Tactic.Bound.Attribute
public meta import Mathlib.Tactic.NormNum.Core
public import Mathlib.Tactic.Bound.Attr... |
4,830 | lean_file_chunk | 0917155548a174d86492659221ee5ac97f1a824b778e73fc677f99315ee2f83e | lean_source_file | pkg_mathlib_source_file_chunks | /-
Copyright (c) 2022 Hanting Zhang. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Kim Morrison, Hanting Zhang
-/
module
public meta import Mathlib.Tactic.Core
public meta import Mathlib.Lean.Expr.Basic
public import Mathlib.Data.Finset.Attr
public import Mathlib.Dat... |
696 | lean_file_chunk | b4948d98480d834ba39d4a68c93a51b6ec209b5a067245d85b7f1c0c2e11c00b | lean_source_file | pkg_mathlib_source_file_chunks | /-
Copyright (c) 2022 Joshua Clune. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Joshua Clune
-/
module
public import Mathlib.Init
public meta import Lean.Elab.Tactic.ElabTerm
/-! # `clear!` tactic -/
public meta section
namespace Mathlib.Tactic
open Lean Meta El... |
96 | lean_file_chunk | ce3da235113b2faa492f0f60f3acaaebbecd2ee19787614bf54ca9dd883a3ca1 | lean_source_file | pkg_mathlib_source_file_chunks | module
public import Mathlib.Tactic.CancelDenoms.Core
public import Mathlib.Tactic.NormNum.Ineq |
2,300 | lean_file_chunk | 3f6aa533094eb88ba23b23a2e3bcf0e0a72d61cdd467a4d5af04950b91560a6c | lean_source_file | pkg_mathlib_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
-/
module
public import Mathlib.Init
/-!
# Additional coercion notation
Defines notation for coercions.
1. `↑ t` is defined in core.
2. `(↑)` is equivalent to the eta-r... |
3,677 | lean_file_chunk | 8ec9f1e952dfc7821fe91ccf51c67c24dbd7991d46f709703b755dc7a8b04135 | lean_source_file | pkg_mathlib_source_file_chunks | /-
Copyright (c) 2025 Heather Macbeth. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Heather Macbeth
-/
module
public import Mathlib.Tactic.FieldSimp
public import Mathlib.Tactic.Ring.Basic
/-! # A tactic for proving algebraic goals in a field
This file contains t... |
1,613 | lean_file_chunk | dc85ef53fe6ae68912af52bacfab6be8dddfbe50815141e7d91ca0cb8c79fa3c | lean_source_file | pkg_mathlib_source_file_chunks | /-
Copyright (c) 2023 Damiano Testa. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Damiano Testa
-/
module
public import Mathlib.Init
public meta import Lean.DocString
/-!
# `extend_doc` command
In a file where declaration `decl` is defined, writing
```lean
extend_... |
5,755 | lean_file_chunk | 82e660b09700688289171644796fe31a8bd4dd5451517f75594f2fb5b8cdb528 | lean_source_file | pkg_mathlib_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
-/
-- First import Aesop, Qq, and Plausible
module -- shake: keep-all, shake: keep-downstream
public import Aesop
public import Qq
public import Plausible
-- Import comm... |
6,515 | lean_file_chunk | add9660a5711a214b43d3cd6a61e0db23f4fa8c316c77cd2688ec63281932c96 | lean_source_file | pkg_mathlib_source_file_chunks | /-
Copyright (c) 2023 Adam Topaz. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Adam Topaz
-/
module
public meta import Mathlib.Lean.Expr.Basic
public import Mathlib.Logic.Equiv.Defs
public meta import Mathlib.Tactic.Simps.Basic
/-!
# Associativity of products
This... |
3,139 | lean_file_chunk | bf541a8b810602fa82dab40ca4b7556c3bde568af69d8bc1a8fb15cfc1cadd64 | lean_source_file | pkg_mathlib_source_file_chunks | /-
Copyright (c) 2023 Jireh Loreaux. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Jireh Loreaux
-/
module
public import Aesop.Frontend
public meta import Batteries.Util.LibraryNote
public import Mathlib.Init
/-!
# SetLike Rule Set
This module defines the `SetLike`... |
7,296 | lean_file_chunk | 9f76552277dbbe13c5b69a6b3071f9871a6111ab895f0cd086af866da12eb641 | lean_source_file | pkg_mathlib_source_file_chunks | /-
Copyright (c) 2022 Mario Carneiro. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Mario Carneiro, Heather Macbeth
-/
module
public meta import Mathlib.Data.Int.ModEq
public import Mathlib.Data.Int.ModEq
public import Mathlib.Tactic.HaveI
/-! # `mod_cases` tactic
... |
2,340 | lean_file_chunk | f7e86261bade56612f362291d6967c8ee7966b0e872898d5bbff223d038ac90b | lean_source_file | pkg_mathlib_source_file_chunks | /-
Copyright (c) 2024 Moritz Firsching. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Damiano Testa, Moritz Firsching
-/
module
public meta import Lean.DeclarationRange
public meta import Lean.ResolveName
-- Import this linter explicitly to ensure that
-- this file h... |
23,977 | lean_file_chunk | 9c4a0cb55008d790c5f476584e299e4b5d7bc85c64e0e5de3c745624f9d60313 | lean_source_file | pkg_mathlib_source_file_chunks | /-
Copyright (c) 2019 Sébastien Gouëzel. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Sébastien Gouëzel, David Renshaw, Heather Macbeth, Arend Mellendijk, Michael Rothgang
-/
module
public meta import Mathlib.Data.Ineq
public import Mathlib.Tactic.FieldSimp.Attr
pub... |
15,322 | lean_file_chunk | bc8877434e8e144bb841646324deec8f50e3d68786d862ecc080ada15e9ff3ef | lean_source_file | pkg_mathlib_source_file_chunks | catch _ => pure ⟨x, ⟨.plus, q(rfl)⟩, ← baseCase x true⟩
/- normalize a subtraction: `a - b` -/
| ~q(HSub.hSub (self := @instHSub _ $i) $a $b) =>
try
let _i ← synthInstanceQ q(Field $M)
assumeInstancesCommute
let ⟨_, ⟨g₁, pf_sgn₁⟩, l₁, pf₁⟩ ← normalize disch iM a
let ⟨_, ⟨g₂, pf_sgn₂⟩, l₂... |
4,811 | lean_file_chunk | 8663da8a418e99a1bc906022a24b63d0b4f57a78adf4ef5f37448d3a762c8862 | lean_source_file | pkg_mathlib_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
public import Lean.Meta.Tactic.TryThis
public meta import Batteries.Control.Nondet.Basic
public import Batteries.Linter.UnreachableTactic
public import Mathlib.Ta... |
2,945 | lean_file_chunk | f070c1d57ce491d14c14625d56d597513d46e4f9c634b236f53e007ba164ac48 | lean_source_file | pkg_mathlib_source_file_chunks | /-
Copyright (c) 2022 Moritz Doll. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Moritz Doll, Mario Carneiro, Robert Y. Lewis
-/
module
public import Mathlib.Algebra.Order.Ring.Cast
public import Mathlib.Algebra.Order.Ring.Unbundled.Rat
public import Mathlib.Algebra.... |
2,520 | lean_file_chunk | 6fa8e15285603f5e5d7a4028e1402c7f239970ee63b0c1b5dd146b72d405043a | lean_source_file | pkg_mathlib_source_file_chunks | /-
Copyright (c) 2023 Kyle Miller. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Kyle Miller, Thomas R. Murrills
-/
module
-- Import this linter explicitly to ensure that
-- this file has a valid copyright header and module docstring.
public import Mathlib.Tactic.Lin... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.