chars
int64
40
24k
content_type
stringclasses
9 values
id
stringlengths
13
64
source
stringclasses
5 values
subset
stringclasses
31 values
text
stringlengths
40
24k
13,415
lean_file_chunk
011d9f384ca9ec85c57a79fbb4267516ba32b02adcd9e3674c9a5e146a05d5ea
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, Yuma Mizuno, Oleksandr Manzyuk -/ module public meta import Mathlib.Lean.Meta public import Mathlib.CategoryTheory.Monoidal.Free.Basic public meta import Mathlib.CategoryT...
3,878
lean_file_chunk
05d6907feb4ad2aee9ae9f6785b7d1849322153a39c1fa065440e6b0facfd0ad
lean_source_file
pkg_mathlib_source_file_chunks
/- Copyright (c) 2022 Yuma Mizuno. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Yuma Mizuno -/ module public import Mathlib.CategoryTheory.Bicategory.Basic /-! # Bicategorical composition `⊗≫` (composition up to associators) We provide `f ⊗≫ g`, the `bicategorical...
10,888
lean_file_chunk
a354fec9db8d12d75a83632d979a78c91027ad88d0ca1376db9d70dc1a93426d
lean_source_file
pkg_mathlib_source_file_chunks
/- Copyright (c) 2021 Kim Morrison. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Kim Morrison, Kyle Miller -/ module public meta import Mathlib.Util.AddRelatedDecl public import Mathlib.CategoryTheory.ConcreteCategory.Basic public meta import Mathlib.Tactic.ToAdditi...
7,322
lean_file_chunk
280ed669f4280e24df4f9d30816de7dab0b13772ca723a7dd0d622faaca8e451
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, Robin Carlier -/ module public import Mathlib.CategoryTheory.Functor.Basic public import Mathlib.Util.AddRelatedDecl /-! # The `reassoc` attribute Adding `@[reassoc]` to...
7,388
lean_file_chunk
d40db98ddc781e613f276575ea22a7aaa1569cf8c1dc757c628fa1f3efcda8cd
lean_source_file
pkg_mathlib_source_file_chunks
/- Copyright (c) 2024 Calle Sönne. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Calle Sönne -/ module public import Mathlib.CategoryTheory.Category.Cat public meta import Mathlib.Util.AddRelatedDecl public meta import Mathlib.Tactic.ToAdditive /-! # The `to_app` at...
2,247
lean_file_chunk
99bff4d2ec7e5f1de497fd9aa49cc402f560f40aef06db1e57de0080afb9b899
lean_source_file
pkg_mathlib_source_file_chunks
/- Copyright (c) 2025 Robin Carlier. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Robin Carlier -/ module public import Mathlib.CategoryTheory.Iso /-! # Extension of `reassoc` to isomorphisms. We extend `reassoc` and `reassoc_of%` for equality of isomorphisms. Add...
5,597
lean_file_chunk
0b5ea4823f4affa8725d6ce5adfe132d965e25aea95a256164fd601699909f20
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 -/ module public import Mathlib.Tactic.Push public import Mathlib.CategoryTheory.Iso /-! # Simproc for canceling morphisms with their inverses This module implements th...
4,456
lean_file_chunk
af7711a404a5d507454f91bfbbce9a6d47a4c21973a5562739ec267191af41ba
lean_source_file
pkg_mathlib_source_file_chunks
/- Copyright (c) 2025 Lean FRO, LLC. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Kim Morrison -/ module public import Aesop public import Mathlib.CategoryTheory.Category.Basic public meta import Mathlib.Tactic.ToDual /-! The `check_compositions` tactic, which chec...
4,797
lean_file_chunk
081379b90daeee3c84a32f754dc86299d35dc815d3217fe8c0f1e5e2b2fd41b8
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, Yuma Mizuno, Oleksandr Manzyuk -/ module public import Mathlib.CategoryTheory.Monoidal.Category /-! # Monoidal composition `⊗≫` (composition up to associators) We provid...
3,167
lean_file_chunk
74a9af3a50ea8593e468a8c9aa81603273efd0804ef39f84c3d9119fb30cbe58
lean_source_file
pkg_mathlib_source_file_chunks
/- Copyright (c) 2018 Kim Morrison. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Kim Morrison -/ module public import Mathlib.CategoryTheory.Category.Basic -- shake: keep (tactic output dependency) /-! # The `slice` tactic Applies a tactic to an interval of terms...
6,548
lean_file_chunk
971d282151bbec6424f9fc779f44d0175b2fefcace0a1a016a5c0f41d8f3bfb2
lean_source_file
pkg_mathlib_source_file_chunks
/- Copyright (c) 2022 Yuma Mizuno. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Yuma Mizuno -/ module public meta import Mathlib.CategoryTheory.Bicategory.Free public import Mathlib.CategoryTheory.Bicategory.Free public import Mathlib.Tactic.CategoryTheory.Bicategor...
23,932
lean_file_chunk
1b79239b8965a4cc4a8d7867931e4134425f79cca49c1c02e69d3661cc2e81f7
lean_source_file
pkg_mathlib_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: Anne Baanen, Edward van de Meent -/ module public meta import Mathlib.Tactic.TacticAnalysis public meta import Lean.Elab.Command public meta import Mathlib.Lean.Elab.InfoTree public me...
7,220
lean_file_chunk
ddb4da4b2ce976827a3ed863fae6ae677a79540a514d4d3469e5dff01a6d01f2
lean_source_file
pkg_mathlib_source_file_chunks
register_option linter.tacticAnalysis.tryAtEachStepFromEnv : Bool := { defValue := false } @[tacticAnalysis linter.tacticAnalysis.tryAtEachStepFromEnv, inherit_doc linter.tacticAnalysis.tryAtEachStepFromEnv] def tryAtEachStepFromEnv := tryAtEachStepFromEnvImpl -- TODO: add compatibility with `rintro` and `intros...
4,418
lean_file_chunk
6bc823450490500daede4dd2c7028a1669cdd0e4a59ce98de86ce40b5590b4a3
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.Init public import Lean.Meta.Tactic.Simp /-! # The `@[push]` attribute for the `push` and `pull` tactics This file defines the `@[...
6,295
lean_file_chunk
fb45b3df92df782af04604e70255db34eb3b1a904ff51476d9a3cce066edfb48
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 meta import Lean.Meta.Tactic.Rewrite public import Mathlib.Tactic.GCongr.Core /-! # The genera...
13,561
lean_file_chunk
00875995a026adfae3f902a22e64a7036f35ec2e2debd7b1e91e40a4e526857a
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 meta import Lean.Elab.Tactic.Rewrite public import Mathlib.Tactic.GRewrite.Core /-! # The gene...
6,744
lean_file_chunk
6c2de4288664fc0d2f1a19d64578aee57faf413497e3ca207ed2ca09534e7a4f
lean_source_file
pkg_mathlib_source_file_chunks
/- Copyright (c) 2023 Yury Kudryashov. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Yury Kudryashov -/ module public import Mathlib.Init public meta import Lean.LabelAttribute -- TODO: `registerLabelAttr` should be marked `meta` public import Lean.LabelAttribute pub...
871
lean_file_chunk
5ca2a26d1a707a2d4505454ea0f3af953e5946820a5a31fcce516953ad75fe0e
lean_source_file
pkg_mathlib_source_file_chunks
/- Copyright (c) 2023 Yury Kudryashov. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Yury Kudryashov -/ module import Mathlib.Tactic.Attr.Register /-! # Simp tags for core lemmas In Lean 4, an attribute declared with `register_simp_attr` cannot be used in the same ...
318
lean_file_chunk
8d3823cd1a0f05bc5cb4e68fc81bd22924e0a4227b42c880ab097cd4e2392995
lean_source_file
pkg_mathlib_source_file_chunks
/- Copyright (c) 2024 Floris van Doorn. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Floris van Doorn -/ module public import Mathlib.Init public import Aesop.Frontend /-! # Finiteness tactic attribute -/ public meta section declare_aesop_rule_sets [finiteness]
23,955
lean_file_chunk
636bb15dbea9bfb582e3ab8ff934bbcc71a817a8a5364d92118f7617a7bdf0a3
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, Jovan Gerbscheid -/ module public meta import Batteries.Lean.Except public import Batteries.Tactic.Exact public meta import Lean.Meta...
15,062
lean_file_chunk
361fceead80ef5004de56fcac8ac8d34e4ffffa6aa8b274d7e63af8739e45c4b
lean_source_file
pkg_mathlib_source_file_chunks
TODO: make `Lean.MVarId.apply` take a configuration argument to do this itself -/ def _root_.Lean.MVarId.applyWithArity (mvarId : MVarId) (e : Expr) (arity : Nat) (cfg : ApplyConfig := {}) (term? : Option MessageData := none) : MetaM (List MVarId) := mvarId.withContext do mvarId.checkNotAssigned `apply le...
1,292
lean_file_chunk
62bb145eb2f7374cd30becf94ae982d5a1a2339f141a8e95f356777d5bb60d9d
lean_source_file
pkg_mathlib_source_file_chunks
/- Copyright (c) 2024 Yury Kudryashov. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Yury Kudryashov -/ module public import Mathlib.Tactic.GCongr.Core /-! # gcongr attributes for lemmas up in the import chain In this file we add `gcongr` attribute to lemmas in `Le...
2,122
lean_file_chunk
56d9cf3316d55809ee7f2708ca65f65ed375eb09ed8e79c7360eb72c56395e30
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.Init /-! # Environment extension for the forward-reasoning part of the `gcongr` tactic -/ public met...
23,972
lean_file_chunk
25d9c05db5b683af1778b9ab31b559e488bf8ef4ec8094baf367bb51ff4f8edc
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.Algebra.Group.Nat.Defs public meta import Mathlib.Algebra.Notation.Defs public import Mathlib.Tactic.Push /-! # `lrat_proof` command D...
4,371
lean_file_chunk
b9032447efafbff0472d648b579f56a8c36a4a937701c5cc5a86aa936bad5597
lean_source_file
pkg_mathlib_source_file_chunks
addDecl <| Declaration.defnDecl { name := ctxName levelParams := [] type := mkConst ``Sat.Fmla value := ctx' hints := ReducibilityHints.regular 0 safety := DefinitionSafety.safe } let ctx := mkConst ctxName let Parsec.ParseResult.success _ steps := Parser.parseLRAT ...
1,769
lean_file_chunk
1d60ee29c3475384cd7fa02622af25cf400293a9cff95231fe9fa8f6025f090c
lean_source_file
pkg_mathlib_source_file_chunks
/- Copyright (c) 2019 Simon Hudon. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Simon Hudon -/ module public import Mathlib.Algebra.Order.Group.Defs public import Mathlib.Algebra.Order.Group.Unbundled.Abs public import Mathlib.Algebra.Order.Ring.Unbundled.Basic publ...
1,228
lean_file_chunk
e7beefeb169365051ec9dbde56405020f6162ee11ca90c2611a0aa4d236297aa
lean_source_file
pkg_mathlib_source_file_chunks
/- Copyright (c) 2023 Heather Macbeth. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Heather Macbeth -/ module public import Mathlib.Init public meta import Lean.LabelAttribute /-! # The @[mono] attribute -/ public meta section namespace Mathlib.Tactic.Monotonicit...
2,328
lean_file_chunk
6efd8f2652ee509832af407cec0081ad6e61951add9ac06166647cff8caa0790
lean_source_file
pkg_mathlib_source_file_chunks
/- Copyright (c) 2019 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.Tactic.SolveByElim public import Mathlib.Tactic.Monotonicity.Attr /-! # Monotonicity tactic The tactic `mono` applies monotonicity ru...
9,374
lean_file_chunk
0d533762212a7e2ac6eb2c7f2e66254ff351e5123700fd9bd72d2ec0e8a6ea09
lean_source_file
pkg_mathlib_source_file_chunks
/- Copyright (c) 2020 Robert Y. Lewis. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Robert Y. Lewis -/ module public meta import Mathlib.Algebra.GroupWithZero.Nat public meta import Mathlib.Algebra.Ring.Int.Defs public import Mathlib.Tactic.Linarith.Datatypes /-! #...
3,676
lean_file_chunk
0e2e6fbaffa738d71d8a3400038cba4f4567ae81963613591e251e0a71a166a8
lean_source_file
pkg_mathlib_source_file_chunks
/- Copyright (c) 2020 Robert Y. Lewis. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Robert Y. Lewis -/ module public meta import Batteries.Tactic.Lint.Basic public meta import Mathlib.Data.Ineq public import Mathlib.Data.Ineq public import Mathlib.Data.Nat.Cast.Orde...
10,106
lean_file_chunk
81dc4696eeb23bb2274fb093d4bca720d64293453bc39219afcdf39b2e61c876
lean_source_file
pkg_mathlib_source_file_chunks
/- Copyright (c) 2020 Robert Y. Lewis. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Robert Y. Lewis -/ module public meta import Mathlib.Util.Qq public meta import Mathlib.Tactic.Linarith.Datatypes public import Mathlib.Tactic.Linarith.Parsing /-! # Deriving a proo...
2,638
lean_file_chunk
24701dee4840543abcb8427fac46bc6cffb3829b793ad69e28d8fec466327c2e
lean_source_file
pkg_mathlib_source_file_chunks
/- Copyright (c) 2026 David Ledvinka. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: David Ledvinka -/ module public meta import Mathlib.Tactic.Linarith public meta import Mathlib.Tactic.Rify public import Mathlib.Data.NNReal.Basic /-! # NNReal linarith preprocessing...
15,801
lean_file_chunk
f8d38df6347f14a1ea8f069af4dad8b8f7ad33b5278162db57b9601b87a9177d
lean_source_file
pkg_mathlib_source_file_chunks
/- Copyright (c) 2020 Robert Y. Lewis. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Robert Y. Lewis -/ module public meta import Mathlib.Control.Basic public meta import Mathlib.Lean.Meta.Tactic.Rewrite public meta import Mathlib.Tactic.Linarith.Datatypes public met...
11,586
lean_file_chunk
c2eb6ec504dda68917f7bdc1349db6bc61bd216cb3ecfeff440d4c8d68899769
lean_source_file
pkg_mathlib_source_file_chunks
/- Copyright (c) 2020 Robert Y. Lewis. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Robert Y. Lewis -/ module public import Mathlib.Tactic.Linarith.Lemmas public import Mathlib.Tactic.NormNum.Basic public import Mathlib.Util.SynthesizeUsing /-! # Datatypes for `lin...
23,969
lean_file_chunk
c5c9e8f799163ae06d1443db2256ba811357e9b883f4d2b9021668886d954b60
lean_source_file
pkg_mathlib_source_file_chunks
/- Copyright (c) 2018 Robert Y. Lewis. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Robert Y. Lewis -/ module public meta import Mathlib.Control.Basic public import Mathlib.Tactic.Linarith.Oracle.SimplexAlgorithm public import Mathlib.Tactic.Linarith.Preprocessing p...
3,433
lean_file_chunk
0a60bfe12132a4aa767082a1a732b00a5a223e85d29cfed9fb37424fdd049abf
lean_source_file
pkg_mathlib_source_file_chunks
syntax (name := nlinarith) "nlinarith" "!"? linarithArgsRest : tactic @[tactic_alt nlinarith] macro "nlinarith!" rest:linarithArgsRest : tactic => `(tactic| nlinarith ! $rest:linarithArgsRest) /-- Allow elaboration of `LinarithConfig` arguments to tactics. -/ declare_config_elab elabLinarithConfig Linarith.LinarithC...
531
lean_file_chunk
f2c01963efd49c23e2b5c12fb2e87a34c2eca9001d5081bc8e2dbde9fc9a0ea2
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 Mathlib.Init public import Aesop.Frontend.Command /-! # Bound Rule Set This module defines the `Bound` Aesop rule set which is used by the `...
6,314
lean_file_chunk
34024b435b01b49919041db5909d32b7c964d429bb2566105cdbcd8563213914
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 import Mathlib.Tactic.Bound.Init public import Qq /-! # The `bound` attribute Any lemma tagged with `@[bound]` is registered as...
532
lean_file_chunk
91f3dde081d9ade158629aef28c9402cc61d20fd8223bacb5b5f5c0f8e6bd9ae
lean_source_file
pkg_mathlib_source_file_chunks
/- Copyright (c) 2023 Miyahara Kō. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Miyahara Kō -/ module public import Mathlib.Init public import Aesop /-! # Measurability Rule Set This module defines the `Measurable` Aesop rule set which is used by the `measurabilit...
1,606
lean_file_chunk
a96a20aee314fabe3495d21711baf1a3505afb30295e5081064238fad9065838
lean_source_file
pkg_mathlib_source_file_chunks
/- Copyright (c) 2026 Wenrong Zou. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Wenrong Zou -/ module public import Mathlib.RingTheory.MvPowerSeries.Basic -- shake: keep (tactic dependency) /-! The command `name_power_vars` names variables in `MvPowerSeries (Fin n...
1,575
lean_file_chunk
994829d7a2de60a77aa04caaa0b1779f56fa7748d50018a39a2244eca85b39a3
lean_source_file
pkg_mathlib_source_file_chunks
/- Copyright (c) 2025 Adam Topaz. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Adam Topaz -/ module public import Mathlib.Algebra.MvPolynomial.Basic -- shake: keep (tactic dependency) /-! The command `name_poly_vars` names variables in `MvPolynomial (Fin n) R` for...
22,563
lean_file_chunk
01174800f7b9221a92507438011e180745891f3de0806599f9f32b5468ab83d0
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, Aurélien Saue, Anne Baanen -/ module public import Mathlib.Tactic.NormNum.Inv public import Mathlib.Tactic.NormNum.Pow public import Mathlib.Tactic.Ring.Common meta im...
12,112
lean_file_chunk
2f77d1a916bd1b1c00de9222d53a2cc9fa0120a1841f60da945e6e0f5aa1f0c5
lean_source_file
pkg_mathlib_source_file_chunks
/- Copyright (c) 2024 Heather Macbeth. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Heather Macbeth -/ module import all Mathlib.Tactic.NormNum.Ineq public import Mathlib.Tactic.NormNum.Ineq public import Mathlib.Tactic.Ring.Basic /-! # Automation for proving inequ...
1,542
lean_file_chunk
220e91b81e662985766ea93709b6ffb94edef46c60fe72e87955ee5e2936616f
lean_source_file
pkg_mathlib_source_file_chunks
/- Copyright (c) 2023 Mario Carneiro. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Mario Carneiro -/ module public meta import Mathlib.Tactic.Ring.Basic public meta import Mathlib.Data.PNat.Basic public import Mathlib.Data.PNat.Basic public import Mathlib.Tactic.Rin...
23,970
lean_file_chunk
74124079bd4223262619e5a12e6d2aff43ca7a9e513cede8cbea074f8a930f3d
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, Aurélien Saue, Anne Baanen -/ module public import Mathlib.Tactic.NormNum.Inv public import Mathlib.Tactic.NormNum.Pow public meta import Mathlib.Tactic.NormNum.Result...
23,973
lean_file_chunk
490f61e439cb488b0a9dcdd6593e36fd4c164e774524380d5992d78d0daaab5a
lean_source_file
pkg_mathlib_source_file_chunks
* `a * x + a * y = a * (x + y)` (for `x`, `y` coefficients; uses `evalAddOverlap`) * `(a₁ + a₂) + (b₁ + b₂) = a₁ + (a₂ + (b₁ + b₂))` (if `a₁.lt b₁`) * `(a₁ + a₂) + (b₁ + b₂) = b₁ + ((a₁ + a₂) + b₂)` (if not `a₁.lt b₁`) -/ partial def evalAdd {a b : Q($α)} (va : ExSum bt sα a) (vb : ExSum bt sα b) : MetaM <| Result ...
4,847
lean_file_chunk
a670784b18b9204564f19ce8747b5c4d7e6181fec9c459e642d0570b93a5044b
lean_source_file
pkg_mathlib_source_file_chunks
theorem div_congr {R} [Semifield R] {a a' b b' c : R} (_ : a = a') (_ : b = b') (_ : a' / b' = c) : (a / b : R) = c := by subst_vars; rfl theorem smul_congr {R α : Type*} [CommSemiring α] [SMul R α] {r : R} {a b t c : α} (_ : a = b) (_ : ∀ (x : α), r • x = t * x) (_ : t * b = c) : r • a = c := by sub...
10,064
lean_file_chunk
601fec89bf4eb4390eede4827efa1ff82c8fefb95d8a0c0a24cf64580d0b8780
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, Anne Baanen -/ module public import Mathlib.Tactic.Ring.Basic public import Mathlib.Tactic.TryThis public import Mathlib.Util.AtomM.Recurse public meta import Mathlib....
2,338
lean_file_chunk
2316c811302b1bf3fe9a46164df24537d84ed50a3467766977ce65fb14a12207
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, Evgenia Karunus, Kyle Miller -/ module public meta import Lean.Meta.Basic public meta import Mathlib.Tactic.Explode.Datatypes public import Mathlib.Tactic.Explode.Data...
3,176
lean_file_chunk
e080e8c51dff9a639e5e41f28c0b529bf5df1f9872befe5189632465e0655284
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, Evgenia Karunus, Kyle Miller -/ module public import Mathlib.Init public meta import Lean.Util.Trace /-! # Explode command: datatypes This file contains datatypes us...
23,937
lean_file_chunk
4805cc7e16c30d320307596256f278726a3257566c8fbdd01c4e7233ef5845d1
lean_source_file
pkg_mathlib_source_file_chunks
/- Copyright (c) 2022 Mario Carneiro, Heather Macbeth. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Mario Carneiro, Heather Macbeth, Yaël Dillies -/ module public meta import Mathlib.Control.Basic public import Mathlib.Algebra.Order.Invertible public import Mathlib....
4,639
lean_file_chunk
b0c78da7a55939ae4a9ae3fcb4669e1c5c0786895a5d20aa487cee77e8e780bf
lean_source_file
pkg_mathlib_source_file_chunks
/- Copyright (c) 2023 Yaël Dillies. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Yaël Dillies -/ module public import Mathlib.Algebra.Order.BigOperators.Group.Finset -- shake: keep (Qq dependency) public import Mathlib.Data.Finset.Density -- shake: keep (Qq depend...
23,978
lean_file_chunk
30360adff1f6989da9d78a8820672c64437d46128c9e7fc5d5ed48133c4cd90b
lean_source_file
pkg_mathlib_source_file_chunks
/- Copyright (c) 2022 Mario Carneiro, Heather Macbeth. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Mario Carneiro, Heather Macbeth, Yaël Dillies -/ module public meta import Qq public import Mathlib.Algebra.Order.Group.PosPart -- shake: keep (Qq dependency) public...
1,641
lean_file_chunk
53f7f7217c15e8dc0ef06d9b07cef6738e5f2880fe34560d7a014914cf7d2c63
lean_source_file
pkg_mathlib_source_file_chunks
pure <| .positive q(den_pos $a) | _, _ => throwError "not Rat.num" /-- Extension for `posPart`. `a⁺` is always nonnegative, and positive if `a` is. -/ @[positivity _⁺] meta def evalPosPart : PositivityExt where eval {u α} zα pα e := do match e with | ~q(@posPart _ $instαpospart $a) => let _instαlat ← synthIn...
550
lean_file_chunk
b516348e606311a4b2ed413dbabc730539dbc2d97037d5235714730884e67e18
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.Init public import Aesop /-! # `arith_mult` Rule Set This module defines the `IsMultiplicative` Aesop rule set which is used by th...
6,548
lean_file_chunk
16968684b3916ba9e5da75ad22db7e20ae252e7438787000fa1a47d2ac7f1aba
lean_source_file
pkg_mathlib_source_file_chunks
/- Copyright (c) 2025 Arend Mellendijk. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Arend Mellendijk -/ module public import Mathlib.Algebra.Algebra.Defs public import Mathlib.Algebra.Algebra.Basic public import Mathlib.Tactic.Ring.RingNF /-! # Lemmas for the `alg...
20,876
lean_file_chunk
f605a1b88b552e53fcc379fcff84938a0657dd7f3ee240d6bae94f3fe28c6ca3
lean_source_file
pkg_mathlib_source_file_chunks
/- Copyright (c) 2025 Arend Mellendijk. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Arend Mellendijk -/ module public import Mathlib.Algebra.Algebra.Basic public import Mathlib.Algebra.Algebra.Defs public import Mathlib.Tactic.Ring.RingNF import Mathlib.Tactic.Alg...
652
lean_file_chunk
83c84d3788f89fad18ef78db00f75ff02ca69682db0b101fbaf87b083db7b022
lean_source_file
pkg_mathlib_source_file_chunks
/- Copyright (c) 2023 Anne Baanen. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Anne Baanen -/ module public import Mathlib.Init public meta import Lean.Meta.Tactic.Simp.Attr /-! # `@[reduce_mod_char]` attribute This file registers `@[reduce_mod_char]` as a `simp`...
2,690
lean_file_chunk
844f7f2c33d538efd9e158d391c097f747821516941fcc36ad485b5866a2a076
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 import Mathlib.Tactic.Order.CollectFacts public meta import Mathlib.Util.AtomM /-! # Graphs for the `order` tactic This module defines the `Graph...
2,915
lean_file_chunk
64c174af7799231ba160b024d1b33fd2161fb12f49085b49c2eedb9ca43afda4
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.Graph.Basic public import Mathlib.Tactic.Order.Graph.Basic /-! # Tarjan's Algorithm This file implements Tarjan'...
21,753
lean_file_chunk
4a586c167916220d8f077cc5e252e5f66f0936e05d55571977dce3d8bcc86ab7
lean_source_file
pkg_mathlib_source_file_chunks
/- Copyright (c) 2026 Vasilii Nesterov. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Vasilii Nesterov -/ module public import Mathlib.Data.Seq.Basic public import Mathlib.Tactic.ComputeAsymptotics.Multiseries.Majorized /-! # Multiseries definitions In this file, ...
4,939
lean_file_chunk
760c316151ac377a06d8dfac8c865945d6b27638cac713121c31375e8cd822af
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 import Mathlib.Analysis.SpecialFunctions.Pow.Asymptotics /-! # `Majorized` predicate This file defines the `Majorized` predicate, along with a fe...
15,919
lean_file_chunk
511fe40383fbd87c1fd05502c814e08581f99af8f6deee37132409c870db45e3
lean_source_file
pkg_mathlib_source_file_chunks
/- Copyright (c) 2026 Vasilii Nesterov. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Vasilii Nesterov -/ module public import Mathlib.Topology.MetricSpace.PiNat public import Mathlib.Topology.MetricSpace.UniformConvergence public import Mathlib.Topology.MetricSpace....
8,227
lean_file_chunk
ccc260e15610cc097ab83db5738c68864497418e3a9d48140cad8521bca77519
lean_source_file
pkg_mathlib_source_file_chunks
/- Copyright (c) 2026 Vasilii Nesterov. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Vasilii Nesterov -/ module public import Mathlib.Analysis.Complex.Exponential public import Mathlib.Analysis.SpecialFunctions.Pow.NNReal /-! # Well-formed bases ## Main definitions...
4,491
lean_file_chunk
426def1cbb255f1dd50318289fe50aeb7f6882ae123aa960b425e6bb1dda93ae
lean_source_file
pkg_mathlib_source_file_chunks
/- Copyright (c) 2026 Vasilii Nesterov. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Vasilii Nesterov -/ module public import Mathlib.Data.Real.Basic /-! # Predicates on monomials In this file we define `UnitMonomial`: type to represent monomials without coeffici...
14,265
lean_file_chunk
afe4fcdf79b25b96ef9603c8586e5f0b0bc45a2799eecd35488243ba949afbb1
lean_source_file
pkg_mathlib_source_file_chunks
/- Copyright (c) 2024 Jon Eugster. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Adomas Baliuka, Jon Eugster, Michael Rothgang -/ module import Mathlib.Init /-! # Tools for the unicode Linter The actual linter is defined in `TextBased.lean`. This file defines th...
8,716
lean_file_chunk
cdd3529d57b31a96e0c2eaea456fe78405e6953c09ea469daadd818453b3979c
lean_source_file
pkg_mathlib_source_file_chunks
/- Copyright (c) 2024 Yuma Mizuno. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Yuma Mizuno -/ module public meta import Lean.Meta.Tactic.Apply public meta import Mathlib.Tactic.CategoryTheory.Coherence.Datatypes public import Mathlib.Tactic.CategoryTheory.Coherence...
4,809
lean_file_chunk
413bbf8f4a2627e711be77ee3f898afd853355302e1aa901c0af12b529678e4f
lean_source_file
pkg_mathlib_source_file_chunks
/- Copyright (c) 2024 Yuma Mizuno. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Yuma Mizuno -/ module public meta import Mathlib.Tactic.CategoryTheory.Coherence.Normalize public import Mathlib.CategoryTheory.Category.Basic public import Mathlib.Tactic.CategoryTheory...
23,982
lean_file_chunk
3c7e6f7e8523dc56fa833162c5dec462c58178f2bf14388788385fa5dc52efd6
lean_source_file
pkg_mathlib_source_file_chunks
/- Copyright (c) 2024 Yuma Mizuno. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Yuma Mizuno -/ module public meta import Lean.Meta.AppBuilder public meta import Mathlib.Tactic.CategoryTheory.Coherence.Datatypes public import Mathlib.Tactic.CategoryTheory.Coherence.D...
2,858
lean_file_chunk
c3cb7bb1730fceed0b661ba72602683ed62219421cb934a5ec26bccb6dd1a9ac
lean_source_file
pkg_mathlib_source_file_chunks
def eval (nm : Name) (e : Mor₂) : CoherenceM ρ Eval.Result := do withTraceNode nm (fun _ => return m!"eval: {e.e}") do match e with | .isoHom _ _ α => withTraceNode nm (fun _ => return m!"Iso.hom") do match α with | .structuralAtom α => return ⟨← nilM <| .structuralAtom α, ← mkEqRefl e.e⟩ | .of η ...
17,612
lean_file_chunk
a41b81947f145b132c978c6954e4d196c2911709aaf4c017c106a194e3041dde
lean_source_file
pkg_mathlib_source_file_chunks
/- Copyright (c) 2024 Yuma Mizuno. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Yuma Mizuno -/ module public meta import Lean.Meta.Basic public import Mathlib.Init /-! # Datatypes for bicategory like structures This file defines the basic datatypes for bicategory ...
10,398
lean_file_chunk
3940ba72b5a702eda961a90309260691355b45f19043eb247c958ce634781e38
lean_source_file
pkg_mathlib_source_file_chunks
/- Copyright (c) 2024 Yuma Mizuno. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Yuma Mizuno -/ module public meta import Mathlib.Tactic.CategoryTheory.Monoidal.Datatypes public import Mathlib.Tactic.CategoryTheory.Coherence.PureCoherence public import Mathlib.Tactic...
2,121
lean_file_chunk
496d5847dfcc91906cb0232c7cf39f6fc5eecc9c46ca5fb5686195cc48fbb4d3
lean_source_file
pkg_mathlib_source_file_chunks
/- Copyright (c) 2024 Yuma Mizuno. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Yuma Mizuno -/ module public import Mathlib.Tactic.CategoryTheory.Coherence.Basic public import Mathlib.Tactic.CategoryTheory.Monoidal.Normalize public import Mathlib.Tactic.CategoryTheo...
23,918
lean_file_chunk
d3679fb4fe3e17c2741e2f7a202fd8508c336dec6ac573dc72b51572812edd4e
lean_source_file
pkg_mathlib_source_file_chunks
/- Copyright (c) 2024 Yuma Mizuno. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Yuma Mizuno -/ module public meta import Mathlib.Tactic.CategoryTheory.Monoidal.Datatypes public import Mathlib.Tactic.CategoryTheory.Coherence.Normalize public import Mathlib.Tactic.Cat...
5,290
lean_file_chunk
93289b2ebd24633ae82c8b3b1c617340aa5d9add8c3621b4da6b9a307564f502
lean_source_file
pkg_mathlib_source_file_chunks
have e_η₁ : Q(((Iso.refl _).hom ≫ $η ≫ (Iso.refl _).hom) ▷ $g' = $η₁) := e_η₁ have e_ηs₁ : Q($ηs ▷ $g' = $ηs₁) := e_ηs₁ have e_η₂ : Q($η₁ ≫ $ηs₁ = $η₂) := e_η₂ have e_η₃ : Q(($α ⊗ᵢ $β).hom ≫ $η₂ = $η₃) := e_η₃ return q(evalHorizontalComp_cons_nil $e_η₁ $e_ηs₁ $e_η₂ $e_η₃) mkEvalHorizontalCompConsCons ...
18,371
lean_file_chunk
9d5f800501904bb3c13049b5a711a50f461fffac1456a33627292377604b8896
lean_source_file
pkg_mathlib_source_file_chunks
/- Copyright (c) 2024 Yuma Mizuno. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Yuma Mizuno -/ module public meta import Mathlib.Tactic.CategoryTheory.Coherence.Datatypes public import Mathlib.Tactic.CategoryTheory.Coherence.Datatypes public import Mathlib.Tactic.Ca...
10,370
lean_file_chunk
d8eddce21ced6e3b74f1c2b2dfd472293a296f1c370d98d9cdfd68bb8e22d2bd
lean_source_file
pkg_mathlib_source_file_chunks
/- Copyright (c) 2024 Yuma Mizuno. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Yuma Mizuno -/ module public meta import Mathlib.Tactic.CategoryTheory.Bicategory.Datatypes public import Mathlib.Tactic.CategoryTheory.Bicategory.Datatypes public import Mathlib.Tactic....
2,149
lean_file_chunk
64910fd672bcb90dc39b7aa77132c8d32aa420b9f4f7a68e6184cd384079de4a
lean_source_file
pkg_mathlib_source_file_chunks
/- Copyright (c) 2024 Yuma Mizuno. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Yuma Mizuno -/ module public import Mathlib.Tactic.CategoryTheory.Bicategory.Normalize public import Mathlib.Tactic.CategoryTheory.Bicategory.PureCoherence public import Mathlib.Tactic.C...
18,835
lean_file_chunk
16976e91121d7dad6cabc39f3b41f15bbb37d5df801de3d9ab33497c0404af73
lean_source_file
pkg_mathlib_source_file_chunks
/- Copyright (c) 2024 Yuma Mizuno. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Yuma Mizuno -/ module public meta import Mathlib.Tactic.CategoryTheory.Bicategory.Datatypes public import Mathlib.Tactic.CategoryTheory.Bicategory.Datatypes public import Mathlib.Tactic....
18,300
lean_file_chunk
ed8e5609bf332249174bd5983779efc2f2a212396218630895ada17f224e2b10
lean_source_file
pkg_mathlib_source_file_chunks
/- Copyright (c) 2024 Yuma Mizuno. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Yuma Mizuno -/ module public meta import Mathlib.Tactic.CategoryTheory.Coherence.Datatypes public import Mathlib.Tactic.CategoryTheory.BicategoricalComp public import Mathlib.Tactic.Cate...
2,389
lean_file_chunk
14b4a4760bd41abe1b81e9deced48c1cd10dbaa896a9e1f963287d129239c6d6
lean_source_file
pkg_mathlib_source_file_chunks
/- Copyright (c) 2024 Vasily Nesterov. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Vasily Nesterov -/ module public meta import Mathlib.Tactic.Linarith.Datatypes public import Mathlib.Tactic.Linarith.Datatypes public import Mathlib.Tactic.Linarith.Oracle.SimplexAlg...
14,664
lean_file_chunk
c0efac6380fd6a32b59897fdb8ca6544ce45bf5f46fe1f6d836ce5071af7d837
lean_source_file
pkg_mathlib_source_file_chunks
/- Copyright (c) 2020 Robert Y. Lewis. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Robert Y. Lewis -/ module public meta import Batteries.Lean.HashMap public meta import Mathlib.Tactic.Linarith.Datatypes public import Batteries.Lean.HashMap public import Mathlib.Ta...
2,643
lean_file_chunk
1d541632dfce489f4d574c0620b02e8fe119e111b13bf6068d8a7f13152861e6
lean_source_file
pkg_mathlib_source_file_chunks
/- Copyright (c) 2024 Vasily Nesterov. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Vasily Nesterov -/ module public meta import Mathlib.Tactic.Linarith.Oracle.SimplexAlgorithm.Datatypes public import Mathlib.Tactic.Linarith.Oracle.SimplexAlgorithm.Datatypes /-! # ...
4,871
lean_file_chunk
52becf063546b5351601519736d0a2c205cf661a2af3247d458262c472c5901f
lean_source_file
pkg_mathlib_source_file_chunks
/- Copyright (c) 2024 Vasily Nesterov. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Vasily Nesterov -/ module public meta import Mathlib.Tactic.Linarith.Oracle.SimplexAlgorithm.Datatypes public import Mathlib.Tactic.Linarith.Oracle.SimplexAlgorithm.Datatypes /-! # ...
4,559
lean_file_chunk
45e968c786ac1dfb273b4d0b01d0a0f64a93b3059be482830bd7daeb77f986a4
lean_source_file
pkg_mathlib_source_file_chunks
/- Copyright (c) 2024 Vasily Nesterov. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Vasily Nesterov -/ module public meta import Lean.Meta.Basic public import Mathlib.Tactic.Linarith.Oracle.SimplexAlgorithm.Gauss public import Mathlib.Tactic.Linarith.Oracle.SimplexA...
5,086
lean_file_chunk
69ad51517312830902d3d2e2ae9cec104301cd64f8eeef3e21070cef9af3e6f2
lean_source_file
pkg_mathlib_source_file_chunks
/- Copyright (c) 2024 Vasily Nesterov. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Vasily Nesterov -/ module public import Mathlib.Init public meta import Std.Data.HashMap.Basic /-! # Datatypes for the Simplex Algorithm implementation -/ public meta section name...
1,921
lean_file_chunk
f8d67389389a794a12b44d3e52c56e07f02072a720818af3982619df6b1878ad
lean_source_file
pkg_mathlib_source_file_chunks
/- Copyright (c) 2017 Johannes Hölzl. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Johannes Hölzl, Yury Kudryashov -/ module public import Mathlib.Order.Bounds.Image public import Mathlib.Order.Hom.Set /-! # Order isomorphisms and bounds. -/ public section open S...
16,090
lean_file_chunk
68d4b24f16d74c8b709a7940ace50cd98a41ad4de195892eaa45171f08cce602
lean_source_file
pkg_mathlib_source_file_chunks
/- Copyright (c) 2017 Paul Lezeau. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Johannes Hölzl, Yury Kudryashov, Paul Lezeau -/ module public import Mathlib.Data.Set.NAry public import Mathlib.Order.Bounds.Basic /-! # Images of upper/lower bounds under monotone fu...
23,998
lean_file_chunk
8ad385fce894b829c93f8ff687cb94ab7b105e710c8a5db38fced393089526ba
lean_source_file
pkg_mathlib_source_file_chunks
/- Copyright (c) 2017 Johannes Hölzl. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Johannes Hölzl, Yury Kudryashov -/ module public import Mathlib.Order.Bounds.Defs public import Mathlib.Order.Directed public import Mathlib.Order.BoundedOrder.Monotone public import ...
4,671
lean_file_chunk
82c6c4977a9bcb40d0adf97665c9ba6dd486107a6b5d322bdfe1f9d5ddd30449
lean_source_file
pkg_mathlib_source_file_chunks
theorem isLUB_lt_iff (ha : IsLUB s a) : a < b ↔ ∃ c ∈ upperBounds s, c < b := ⟨fun hb => ⟨a, ha.1, hb⟩, fun ⟨_, hcs, hcb⟩ => lt_of_le_of_lt (ha.2 hcs) hcb⟩ theorem le_of_isLUB_le_isGLB {x y} (ha : IsGLB s a) (hb : IsLUB s b) (hab : b ≤ a) (hx : x ∈ s) (hy : y ∈ s) : x ≤ y := calc x ≤ b := hb.1 hx _ ≤ a...
2,636
lean_file_chunk
0c81aadf442d233714732d0ddad595ca6ef7f286c052fce19bed063817f01c52
lean_source_file
pkg_mathlib_source_file_chunks
/- Copyright (c) 2017 Johannes Hölzl. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Johannes Hölzl, Yury Kudryashov -/ module public import Mathlib.Data.Set.Defs public import Mathlib.Tactic.ToDual /-! # Definitions about upper/lower bounds In this file we define: ...
1,572
lean_file_chunk
36f5ec9c296872a217134b75e75ee328e5096ce9152600936b4b6e1e9d05a529
lean_source_file
pkg_mathlib_source_file_chunks
/- Copyright (c) 2024 Christopher Hoskin. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Christopher Hoskin -/ module public import Mathlib.Data.Set.Lattice.Image /-! # Unions and intersections of bounds Some results about upper and lower bounds over collections of ...
3,637
lean_file_chunk
3f8240e5e6839da7e85f6cbad3c175a20a5b09008edbeb0e93129d9b59783249
lean_source_file
pkg_mathlib_source_file_chunks
/- Copyright (c) 2020 Aaron Anderson. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Aaron Anderson -/ module public import Mathlib.Data.Set.Finite.Lattice public import Mathlib.Order.Atoms public import Mathlib.Order.Interval.Finset.Defs public import Mathlib.Order.P...
6,006
lean_file_chunk
e0b34c67368436b8bea9cc814e34ca75f3eff53f04feea3a85d2796152ac2f10
lean_source_file
pkg_mathlib_source_file_chunks
/- Copyright (c) 2025 Yaël Dillies. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Yaël Dillies -/ module public import Mathlib.Data.Set.Finite.Basic public import Mathlib.Order.Minimal /-! # Finite preorders and finite sets in a preorder This file shows that non-em...
15,241
lean_file_chunk
9684f8bcb29b598aea6785b7b7ae147579454bf41dc0b380a5bf35ea6214b72a
lean_source_file
pkg_mathlib_source_file_chunks
/- Copyright (c) 2017 Johannes Hölzl. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Johannes Hölzl -/ module public import Mathlib.Data.Set.Notation public import Mathlib.Data.Set.Pairwise.Basic public import Mathlib.Data.SetLike.Basic public import Mathlib.Order.Dir...
3,019
lean_file_chunk
b32814c528b665effb50976c083640a75739e2ebc88e705d59d5013388d3019c
lean_source_file
pkg_mathlib_source_file_chunks
/- Copyright (c) 2021 Johan Commelin. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Johan Commelin, Aaron Anderson -/ module public import Mathlib.Data.Finsupp.Defs /-! # Pointwise order on finitely supported functions This file lifts order structures on `M` to `ι ...
4,210
lean_file_chunk
5e4900d22e7cc05e8547b7ab914371820918fac87194fcfeddd9a10cfe5beea1
lean_source_file
pkg_mathlib_source_file_chunks
/- Copyright (c) 2025 Yan Yablonovskiy. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Yan Yablonovskiy -/ module public import Mathlib.Data.Real.Basic public import Mathlib.Order.CompleteBooleanAlgebra public import Mathlib.Order.Fin.Basic public import Mathlib.Order...
9,826
lean_file_chunk
3b069823f46bcc6a89a3eb3d2880c569d965c2da873ff7808c206c732d83c7b9
lean_source_file
pkg_mathlib_source_file_chunks
/- Copyright (c) 2025 Yan Yablonovskiy. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Yan Yablonovskiy -/ module public import Mathlib.Order.Hom.Basic /-! # Order types Order types are defined as the quotient of linear orders under order isomorphism. They are preor...
6,888
lean_file_chunk
03f6548bfc9700c942f6136ed354dd38598e4c9465f87983bef3eca14b165b29
lean_source_file
pkg_mathlib_source_file_chunks
/- Copyright (c) 2022 Yaël Dillies. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Yaël Dillies -/ module public import Mathlib.Order.GaloisConnection.Basic /-! # Heyting regular elements This file defines Heyting regular elements, elements of a Heyting algebra that...
4,726
lean_file_chunk
62276fd06a3f96c5b152ec45b348b37db1585cbb9a6b5e7b443eaa0716ed3ac6
lean_source_file
pkg_mathlib_source_file_chunks
/- Copyright (c) 2022 Yaël Dillies. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Yaël Dillies -/ module public import Mathlib.Order.BooleanAlgebra.Basic public import Mathlib.Tactic.Common /-! # Co-Heyting boundary The boundary of an element of a co-Heyting algebr...