filename
stringlengths
5
42
content
stringlengths
15
319k
IntUnitsPower.lean
/- Copyright (c) 2023 Eric Wieser. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Eric Wieser -/ import Mathlib.Algebra.GroupWithZero.Divisibility import Mathlib.Data.Int.Order.Units import Mathlib.Data.ZMod.Basic /-! # The power operator on `ℤˣ` by `ZMod 2`, `ℕ`, and...
Basic.lean
/- Copyright (c) 2022 Apurva Nakade. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Apurva Nakade, Yaël Dillies -/ import Mathlib.Analysis.Convex.Cone.Closure import Mathlib.Geometry.Convex.Cone.Pointed import Mathlib.Topology.Algebra.Module.ClosedSubmodule import Math...
BoundedContinuous.lean
/- Copyright (c) 2025 Jakob Stiefel. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Jakob Stiefel -/ import Mathlib.Algebra.Algebra.Subalgebra.Tower import Mathlib.Analysis.NormedSpace.OperatorNorm.NNNorm import Mathlib.Analysis.RCLike.Basic import Mathlib.Topology.Con...
Chebyshev.lean
/- Copyright (c) 2020 Johan Commelin. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Johan Commelin, Julian Kuelshammer, Heather Macbeth, Mitchell Lee -/ import Mathlib.Algebra.Polynomial.AlgebraMap import Mathlib.Algebra.Polynomial.Derivative import Mathlib.Algebra.Ri...
Basic.lean
/- Copyright (c) 2022 Rémy Degenne. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Rémy Degenne -/ import Mathlib.Probability.IdentDistrib /-! # Moments and moment generating function ## Main definitions * `ProbabilityTheory.moment X p μ`: `p`th moment of a real ran...
all_algebra.v
(* N.B. interval_inference is not exported here. To enjoys the automation it provides, you need to explictly "Import interval_inference". *) From mathcomp Require Export ssralg. From mathcomp Require Export ssrnum. From mathcomp Require Export finalg. From mathcomp Require Export countalg. From mathcomp Require Export...
tuple.v
(* (c) Copyright 2006-2016 Microsoft Corporation and Inria. *) (* Distributed under the terms of CeCILL-B. *) From HB Require Import structures. From mathcomp Require Import ssreflect ssrfun ssrbool eqtype ssrnat. From mathcomp Require Import seq choice fintype path. S...
inertia.v
(* (c) Copyright 2006-2016 Microsoft Corporation and Inria. *) (* Distributed under the terms of CeCILL-B. *) From HB Require Import structures. From mathcomp Require Import ssreflect ssrfun ssrbool eqtype ssrnat seq path. From mathcomp Require Import choice fintype div...
Rank.lean
/- Copyright (c) 2021 Johan Commelin. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Johan Commelin, Eric Wieser -/ import Mathlib.LinearAlgebra.Determinant import Mathlib.LinearAlgebra.Dual.Lemmas import Mathlib.LinearAlgebra.FiniteDimensional.Lemmas import Mathlib.Li...
Priestley.lean
/- 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 -/ import Mathlib.Order.UpperLower.Basic import Mathlib.Topology.Connected.TotallyDisconnected /-! # Priestley spaces This file defines Priestley spaces. A Priestley space...
PSeries.lean
/- Copyright (c) 2020 Yury Kudryashov. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Yury Kudryashov -/ import Mathlib.Analysis.SpecialFunctions.Pow.NNReal import Mathlib.Analysis.SpecialFunctions.Pow.Continuity import Mathlib.Analysis.SumOverResidueClass /-! # Conve...
Etale.lean
/- Copyright (c) 2024 Christian Merten. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Christian Merten -/ import Mathlib.AlgebraicGeometry.Morphisms.Smooth import Mathlib.AlgebraicGeometry.Morphisms.FormallyUnramified import Mathlib.CategoryTheory.MorphismProperty.Com...
Section.lean
/- Copyright (c) 2024 Yury Kudryashov. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Yury Kudryashov -/ import Mathlib.Algebra.Module.Projective import Mathlib.LinearAlgebra.Basis.VectorSpace import Mathlib.Topology.Algebra.SeparationQuotient.Basic import Mathlib.Topo...
ssrfun.v
From mathcomp Require Import ssreflect. From Corelib Require Export ssrfun. From mathcomp Require Export ssrnotations. #[export] Set Warnings "-overwriting-delimiting-key". (* remove above line when requiring Rocq >= 9.0 *) Set Implicit Arguments. Unset Strict Implicit. Unset Printing Implicit Defensive. (***********...
Prod.lean
/- Copyright (c) 2021 Eric Wieser. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Eric Wieser -/ import Mathlib.LinearAlgebra.QuadraticForm.IsometryEquiv /-! # Quadratic form on product and pi types ## Main definitions * `QuadraticForm.prod Q₁ Q₂`: the quadratic for...
Opposites.lean
/- Copyright (c) 2025 Robin Carlier. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Robin Carlier -/ import Mathlib.CategoryTheory.Join.Basic import Mathlib.CategoryTheory.Opposites /-! # Opposites of joins of categories This file constructs the canonical equivalence...
Pi.lean
/- Copyright (c) 2023 Antoine Chambert-Loir and María Inés de Frutos-Fernández. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Antoine Chambert-Loir, María Inés de Frutos-Fernández, Eric Wieser, Bhavik Mehta, Yaël Dillies -/ import Mathlib.Algebra.Group.Pointwise.Fin...
PullbackCarrier.lean
/- Copyright (c) 2024 Qi Ge, Christian Merten, Andrew Yang. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Qi Ge, Christian Merten, Andrew Yang -/ import Mathlib.Algebra.Category.Ring.LinearAlgebra import Mathlib.AlgebraicGeometry.ResidueField /-! # Underlying topolog...
Defs.lean
/- Copyright (c) 2014 Microsoft Corporation. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Leonardo de Moura, Jeremy Avigad, Haitao Zhang -/ import Mathlib.Tactic.AdaptationNote import Mathlib.Tactic.Attr.Register import Mathlib.Tactic.Lemma import Mathlib.Tactic.Eqns...
Separated.lean
/- Copyright (c) 2024 Christian Merten. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Christian Merten, Andrew Yang -/ import Mathlib.AlgebraicGeometry.Morphisms.ClosedImmersion import Mathlib.AlgebraicGeometry.PullbackCarrier import Mathlib.CategoryTheory.Limits.Cons...
Basic.lean
/- Copyright (c) 2014 Microsoft Corporation. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Leonardo de Moura, Jeremy Avigad -/ import Mathlib.Logic.Basic import Mathlib.Logic.Function.Defs import Mathlib.Order.Defs.LinearOrder /-! # Booleans This file proves various...
Basic.lean
/- Copyright (c) 2025 Sébastien Gouëzel. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Sébastien Gouëzel -/ import Mathlib.Geometry.Manifold.MFDeriv.Atlas import Mathlib.Geometry.Manifold.Riemannian.PathELength import Mathlib.Geometry.Manifold.VectorBundle.Riemannian ...
ENatToNat.lean
/- Copyright (c) 2025 Vasilii Nesterov. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Vasilii Nesterov -/ import Mathlib.Data.ENat.Basic /-! # `enat_to_nat` This file implements the `enat_to_nat` tactic that shifts `ENat`s in the context to `Nat`. ## Implementation...
FintypeCat.lean
/- Copyright (c) 2023 Christian Merten. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Christian Merten -/ import Mathlib.CategoryTheory.FintypeCat import Mathlib.CategoryTheory.Limits.Preserves.Finite import Mathlib.CategoryTheory.Limits.Preserves.Shapes.Products impo...
WithTop.lean
/- Copyright (c) 2021 Floris van Doorn. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Floris van Doorn -/ import Mathlib.Algebra.Order.Sub.Defs import Mathlib.Algebra.Order.Monoid.Unbundled.WithTop /-! # Lemma about subtraction in ordered monoids with a top element a...
fingroup.v
(* (c) Copyright 2006-2016 Microsoft Corporation and Inria. *) (* Distributed under the terms of CeCILL-B. *) From HB Require Import structures. From mathcomp Require Import ssreflect ssrbool ssrfun eqtype ssrnat seq choice. From mathcomp Require Import fintype div path...
EuclideanDomain.lean
/- Copyright (c) 2018 Mario Carneiro. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Mario Carneiro, Chris Hughes -/ import Mathlib.Algebra.GCDMonoid.Basic import Mathlib.Algebra.EuclideanDomain.Basic import Mathlib.RingTheory.Ideal.Basic import Mathlib.RingTheory.Prin...
Associated.lean
/- 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, Jens Wagemaker -/ import Mathlib.Algebra.GroupWithZero.Associated import Mathlib.Algebra.Ring.Units /-! # Associated elements in rings -/ assert_not_exists OrderedCom...
Sheaf.lean
/- Copyright (c) 2024 Joël Riou. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Joël Riou -/ import Mathlib.CategoryTheory.Generator.Presheaf import Mathlib.CategoryTheory.Sites.Sheafification import Mathlib.CategoryTheory.Sites.Limits /-! # Generators in the categor...
Centralizer.lean
/- Copyright (c) 2023 Antoine Chambert-Loir. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Antoine Chambert-Loir -/ import Mathlib.Algebra.Order.BigOperators.GroupWithZero.Multiset import Mathlib.Algebra.Order.BigOperators.Ring.Finset import Mathlib.GroupTheory.Noncom...
Range.lean
/- 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, Mario Carneiro, Kevin Buzzard, Yury Kudryashov, Frédéric Dupuis, Heather Macbeth -/ import Mathlib.Algebra.Module.Submodule.Ker import Mathlib.Algebra.Module.Submodul...
MonovaryOrder.lean
/- 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 -/ import Mathlib.Order.Monotone.Monovary import Mathlib.SetTheory.Cardinal.Order /-! # Interpreting monovarying functions as monotone functions This file proves that mono...
RemovableSingularity.lean
/- Copyright (c) 2022 Yury Kudryashov. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Yury Kudryashov -/ import Mathlib.Analysis.Calculus.FDeriv.Analytic import Mathlib.Analysis.Asymptotics.SpecificAsymptotics import Mathlib.Analysis.Complex.CauchyIntegral /-! # Remov...
BaseChange.lean
/- Copyright (c) 2022 Jujian Zhang. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Andrew Yang, Jujian Zhang -/ import Mathlib.LinearAlgebra.DirectSum.Finsupp import Mathlib.RingTheory.IsTensorProduct import Mathlib.RingTheory.Localization.Away.Basic import Mathlib.Rin...
Basic.lean
/- Copyright (c) 2018 Kim Morrison. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Kim Morrison, Johannes Hölzl, Yury Kudryashov -/ import Mathlib.Algebra.Category.Grp.Basic import Mathlib.Algebra.Ring.Equiv import Mathlib.Algebra.Ring.PUnit import Mathlib.CategoryTheo...
Conj.lean
/- Copyright (c) 2021 Aaron Anderson. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Aaron Anderson -/ import Mathlib.Algebra.Group.Conj import Mathlib.Algebra.GroupWithZero.Units.Basic /-! # Conjugacy in a group with zero -/ assert_not_exists Multiset Ring -- TODO -...
Primorial.lean
/- Copyright (c) 2020 Patrick Stevens. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Patrick Stevens, Yury Kudryashov -/ import Mathlib.Algebra.BigOperators.Associated import Mathlib.Algebra.Order.BigOperators.Ring.Finset import Mathlib.Algebra.Order.Ring.Abs import M...
spectral.v
From HB Require Import structures. From mathcomp Require Import ssreflect ssrfun ssrbool eqtype choice ssrnat. From mathcomp Require Import seq div fintype bigop ssralg finset fingroup zmodp. From mathcomp Require Import poly polydiv order ssrnum matrix mxalgebra vector. From mathcomp Require Import mxpoly mxred sesqui...
Ordinal.lean
/- Copyright (c) 2025 Miyahara Kō. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Miyahara Kō -/ import Mathlib.SetTheory.Ordinal.Exponential import Mathlib.Tactic.NormNum.Basic /-! # `norm_num` extensions for Ordinals The default `norm_num` extensions for many oper...
Basic.lean
/- Copyright (c) 2021 Jakob von Raumer. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Jakob von Raumer -/ import Mathlib.Algebra.Category.ModuleCat.Monoidal.Closed import Mathlib.CategoryTheory.Monoidal.Rigid.Basic import Mathlib.CategoryTheory.Monoidal.Subcategory im...
binomial.v
(* (c) Copyright 2006-2016 Microsoft Corporation and Inria. *) (* Distributed under the terms of CeCILL-B. *) From HB Require Import structures. From mathcomp Require Import ssreflect ssrfun ssrbool eqtype ssrnat seq path. From mathcomp Require Import div fintype tuple ...
Basic.lean
/- Copyright (c) 2020 Kenny Lau. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Kenny Lau, Thomas Browning, Patrick Lutz -/ import Mathlib.FieldTheory.Extension import Mathlib.FieldTheory.Normal.Defs import Mathlib.GroupTheory.Solvable import Mathlib.FieldTheory.Splitt...
Beta.lean
/- Copyright (c) 2023 David Loeffler. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: David Loeffler -/ import Mathlib.Analysis.Convolution import Mathlib.Analysis.SpecialFunctions.Complex.LogBounds import Mathlib.Analysis.SpecialFunctions.Trigonometric.EulerSineProd im...
UrysohnsLemma.lean
/- Copyright (c) 2021 Yury Kudryashov. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Yury Kudryashov -/ import Mathlib.Algebra.Order.Group.Indicator import Mathlib.Analysis.Normed.Affine.AddTorsor import Mathlib.Analysis.NormedSpace.FunctionSeries import Mathlib.Analy...
Closure.lean
/- Copyright (c) 2023 Apurva Nakade. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Apurva Nakade -/ import Mathlib.Geometry.Convex.Cone.Pointed import Mathlib.Topology.Algebra.ConstMulAction import Mathlib.Topology.Algebra.Monoid.Defs /-! # Closure of cones We defin...
Prod.lean
/- Copyright (c) 2023 Eric Wieser. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Eric Wieser -/ import Mathlib.LinearAlgebra.Prod import Mathlib.LinearAlgebra.TensorProduct.Tower /-! # Tensor products of products This file shows that taking `TensorProduct`s commutes...
SMul.lean
/- Copyright (c) 2021 Damiano Testa. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Damiano Testa -/ import Mathlib.Algebra.Group.Units.Defs import Mathlib.Algebra.GroupWithZero.Action.Defs import Mathlib.Tactic.Convert import Mathlib.Tactic.Push /-! # Action of regul...
Continuous.lean
/- Copyright (c) 2023 Yaël Dillies, Zichen Wang. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Yaël Dillies, Zichen Wang -/ import Mathlib.Analysis.Normed.Affine.Convex /-! # Convex functions are continuous This file proves that a convex function from a finite dimen...
Descent.lean
/- Copyright (c) 2025 Christian Merten. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Christian Merten -/ import Mathlib.CategoryTheory.MorphismProperty.Limits /-! # Descent of morphism properties Given morphism properties `P` and `Q` we say that `P` descends along ...
path.v
(* (c) Copyright 2006-2016 Microsoft Corporation and Inria. *) (* Distributed under the terms of CeCILL-B. *) From mathcomp Require Import ssreflect ssrfun ssrbool eqtype ssrnat seq. (******************************************************************************) (* ...
Equalizer.lean
/- Copyright (c) 2024 Andrew Yang. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Andrew Yang -/ import Mathlib.CategoryTheory.Limits.Shapes.Pullback.CommSq /-! # Equalizers as pullbacks of products Also see `CategoryTheory.Limits.Constructions.Equalizers` for very s...
polydiv.v
(* (c) Copyright 2006-2016 Microsoft Corporation and Inria. *) (* Distributed under the terms of CeCILL-B. *) From mathcomp Require Import ssreflect ssrfun ssrbool eqtype ssrnat seq choice. From mathcomp Require Import fintype bigop ssralg poly. (**********************...
AssociatedPrime.lean
/- Copyright (c) 2022 Andrew Yang. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Andrew Yang -/ import Mathlib.RingTheory.Ideal.AssociatedPrime.Basic import Mathlib.Tactic.Linter.DeprecatedModule deprecated_module (since := "2025-04-20")
Invariants.lean
/- Copyright (c) 2017 Mario Carneiro. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Mario Carneiro -/ import Mathlib.Algebra.Order.Ring.Nat import Mathlib.Data.Nat.Dist import Mathlib.Data.Ordmap.Ordnode import Mathlib.Tactic.Abel /-! # Invariants for the verificatio...
gseries.v
(* (c) Copyright 2006-2016 Microsoft Corporation and Inria. *) (* Distributed under the terms of CeCILL-B. *) From mathcomp Require Import ssreflect ssrbool ssrfun eqtype ssrnat seq path. From mathcomp Require Import fintype bigop finset fingroup morphism. From mathcomp...
BinaryBiproducts.lean
/- Copyright (c) 2019 Kim Morrison. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Kim Morrison, Jakob von Raumer -/ import Mathlib.CategoryTheory.Limits.Shapes.BinaryProducts import Mathlib.CategoryTheory.Limits.Shapes.Biproducts /-! # Binary biproducts We introduce...
SleepHeartbeats.lean
/- Copyright (c) 2023 Alex J. Best. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Alex J. Best -/ import Mathlib.Init import Lean.Elab.Tactic.Basic /-! # Defines `sleep_heartbeats` tactic. This is useful for testing / debugging long running commands or elaboration i...
Free.lean
/- Copyright (c) 2024 Eric Wieser. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Eric Wieser, Daniel Weber -/ import Mathlib.Algebra.FreeAbelianGroup.Finsupp import Mathlib.Algebra.Ring.TransferInstance import Mathlib.Data.Finsupp.Fintype import Mathlib.Data.ZMod.Defs...
Reduce.lean
/- Copyright (c) 2018 Kenny Lau. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Kenny Lau -/ import Mathlib.Data.Finset.Dedup import Mathlib.Data.Fintype.Defs import Mathlib.Data.List.Sublists import Mathlib.GroupTheory.FreeGroup.Basic /-! # The maximal reduction of a...
Polynomial.lean
/- Copyright (c) 2020 Devon Tuma. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Devon Tuma -/ import Mathlib.RingTheory.Jacobson.Ideal import Mathlib.RingTheory.Polynomial.Quotient /-! # Jacobson radical of polynomial ring -/ namespace Ideal section Polynomial ope...
CechNerve.lean
/- Copyright (c) 2021 Adam Topaz. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Adam Topaz -/ import Mathlib.AlgebraicTopology.SimplicialObject.Basic import Mathlib.CategoryTheory.Comma.Arrow import Mathlib.CategoryTheory.Limits.Shapes.WidePullbacks import Mathlib.Cat...
Prod.lean
/- Copyright (c) 2015 Microsoft Corporation. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Leonardo de Moura, Mario Carneiro -/ import Mathlib.Logic.Equiv.Defs import Mathlib.Tactic.Contrapose import Mathlib.Data.Prod.PProd /-! # Equivalence between product types In...
RankNullity.lean
/- Copyright (c) 2024 Andrew Yang. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Andrew Yang -/ import Mathlib.LinearAlgebra.Dimension.Constructions import Mathlib.LinearAlgebra.Dimension.Finite import Mathlib.LinearAlgebra.Isomorphisms import Mathlib.Logic.Equiv.Fin....
all.v
From mathcomp Require Export all_boot. From mathcomp Require Export all_order. From mathcomp Require Export all_fingroup. From mathcomp Require Export all_algebra. From mathcomp Require Export all_solvable. From mathcomp Require Export all_field. From mathcomp Require Export all_character.
Basic.lean
/- Copyright (c) 2022 Markus Himmel. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Markus Himmel -/ import Mathlib.CategoryTheory.Preadditive.Opposite import Mathlib.Algebra.Category.ModuleCat.Basic import Mathlib.Algebra.Category.Grp.Preadditive import Mathlib.Algebr...
DegreeLT.lean
/- Copyright (c) 2025 Kenny Lau. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Anne Baanen, Kenny Lau -/ import Mathlib.Algebra.Polynomial.Div import Mathlib.Algebra.Polynomial.Taylor import Mathlib.LinearAlgebra.Determinant import Mathlib.LinearAlgebra.Matrix.Block ...
ssrmatching.v
From Corelib Require Export ssrmatching.
prime.v
(* (c) Copyright 2006-2016 Microsoft Corporation and Inria. *) (* Distributed under the terms of CeCILL-B. *) From mathcomp Require Import ssreflect ssrfun ssrbool eqtype ssrnat seq path. From mathcomp Require Import choice fintype div bigop. (*************************...
StarOrdered.lean
/- Copyright (c) 2020 Kim Morrison. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Kim Morrison -/ import Mathlib.Algebra.Order.Star.Basic import Mathlib.Data.NNReal.Star import Mathlib.Data.Real.Sqrt /-! # `ℝ` and `ℝ≥0` are *-ordered rings. -/ open scoped NNReal /-...
Lemmas.lean
/- 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, Jens Wagemaker, Yaël Dillies -/ import Mathlib.Algebra.Group.Commute.Units import Mathlib.Algebra.Group.Even import Mathlib.Algebra.Group.Irreducible.Defs import Mathli...
FinCases.lean
/- 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 -/ import Mathlib.Tactic.Core import Mathlib.Lean.Expr.Basic import Mathlib.Data.Fintype.Basic /-! # The `fin_cases` tactic. Given a hypothesis of the form...
center.v
(* (c) Copyright 2006-2016 Microsoft Corporation and Inria. *) (* Distributed under the terms of CeCILL-B. *) From mathcomp Require Import ssreflect ssrbool ssrfun eqtype ssrnat seq div. From mathcomp Require Import fintype bigop finset fingroup morphism perm. From math...
Sum.lean
/- Copyright (c) 2025 Jeremy Tan. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Jeremy Tan -/ import Mathlib.Algebra.BigOperators.Group.Finset.Piecewise import Mathlib.Algebra.Order.BigOperators.Group.Finset import Mathlib.Algebra.Order.Group.Int import Mathlib.Data.I...
Body.lean
/- Copyright (c) 2022 Paul A. Reichert. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Paul A. Reichert -/ import Mathlib.Analysis.Convex.Basic import Mathlib.Analysis.Normed.Module.Basic import Mathlib.Topology.MetricSpace.HausdorffDistance /-! # Convex bodies This ...
sylow.v
(* (c) Copyright 2006-2016 Microsoft Corporation and Inria. *) (* Distributed under the terms of CeCILL-B. *) From mathcomp Require Import ssreflect ssrbool ssrfun eqtype ssrnat seq div. From mathcomp Require Import fintype prime bigop finset fingroup morphism. From mat...
Basic.lean
/- Copyright (c) 2021 Jakob Scholbach. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Jakob Scholbach, Joël Riou -/ import Mathlib.CategoryTheory.CommSq import Mathlib.CategoryTheory.Retract /-! # Lifting properties This file defines the lifting property of two morph...
ExtensiveColimits.lean
/- Copyright (c) 2024 Dagur Asgeirsson. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Dagur Asgeirsson -/ import Mathlib.CategoryTheory.Preadditive.Biproducts import Mathlib.CategoryTheory.Sites.Coherent.ExtensiveSheaves import Mathlib.CategoryTheory.Sites.Limits /-! ...
FunctorCategory.lean
/- Copyright (c) 2021 Johan Commelin. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Johan Commelin -/ import Mathlib.CategoryTheory.Preadditive.Basic import Mathlib.Algebra.BigOperators.Group.Finset.Basic /-! # Preadditive structure on functor categories If `C` and ...
Basic.lean
/- Copyright (c) 2022 Yaël Dillies, Bhavik Mehta. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Yaël Dillies, Bhavik Mehta -/ import Mathlib.Algebra.Order.Field.Basic import Mathlib.Algebra.Order.Ring.Abs import Mathlib.Combinatorics.Enumerative.DoubleCounting import ...
MeasurableIntegral.lean
/- Copyright (c) 2023 Rémy Degenne. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Rémy Degenne -/ import Mathlib.MeasureTheory.Integral.DominatedConvergence import Mathlib.Probability.Kernel.MeasurableLIntegral /-! # Measurability of the integral against a kernel Th...
Idempotents.lean
/- Copyright (c) 2025 Yunzhou Xie. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Yunzhou Xie, Jujian Zhang, Andrew Yang -/ import Mathlib.RingTheory.Idempotents import Mathlib.Algebra.DirectSum.Decomposition /-! # Decomposition of the identity of a semiring into orth...
ConcreteCategory.lean
/- Copyright (c) 2023 Joël Riou. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Joël Riou, Kim Morrison, Adam Topaz -/ import Mathlib.CategoryTheory.Limits.Preserves.Shapes.BinaryProducts import Mathlib.CategoryTheory.Limits.Preserves.Shapes.Products import Mathlib.Cat...
Final.lean
/- Copyright (c) 2024 Markus Himmel. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Markus Himmel -/ import Mathlib.CategoryTheory.Filtered.Connected import Mathlib.CategoryTheory.Limits.Types.Filtered import Mathlib.CategoryTheory.Limits.Sifted /-! # Final functors w...
Lemmas.lean
/- Copyright (c) 2025 Oliver Nash. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Oliver Nash -/ import Mathlib.LinearAlgebra.RootSystem.Base import Mathlib.LinearAlgebra.RootSystem.Chain import Mathlib.LinearAlgebra.RootSystem.Finite.G2 /-! # Supporting lemmas for Ge...
Basic.lean
/- Copyright (c) 2020 Aaron Anderson. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Aaron Anderson -/ import Mathlib.Algebra.DirectSum.Module import Mathlib.Data.Finite.Card import Mathlib.Data.Matrix.Mul import Mathlib.LinearAlgebra.DFinsupp import Mathlib.LinearAlge...
Pullback.lean
/- Copyright (c) 2021 Bhavik Mehta. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Bhavik Mehta, Andrew Yang -/ import Mathlib.CategoryTheory.Adjunction.Mates import Mathlib.CategoryTheory.Limits.Shapes.BinaryProducts import Mathlib.CategoryTheory.Limits.Shapes.Pullba...
BinaryProducts.lean
/- Copyright (c) 2019 Kim Morrison. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Kim Morrison, Bhavik Mehta -/ import Mathlib.CategoryTheory.Comma.Over.Basic import Mathlib.CategoryTheory.Discrete.Basic import Mathlib.CategoryTheory.EpiMono import Mathlib.CategoryThe...
ssrint.v
(* (c) Copyright 2006-2016 Microsoft Corporation and Inria. *) (* Distributed under the terms of CeCILL-B. *) From HB Require Import structures. From mathcomp Require Import ssreflect ssrfun ssrbool eqtype ssrnat choice seq. From mathcomp Require Import fintype finfun b...
Evaluation.lean
/- Copyright (c) 2024 Antoine Chambert-Loir, María Inés de Frutos-Fernández. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Antoine Chambert-Loir, María Inés de Frutos-Fernández -/ import Mathlib.RingTheory.MvPowerSeries.Evaluation import Mathlib.RingTheory.PowerSerie...
Monoidal.lean
/- Copyright (c) 2020 Kim Morrison. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Kim Morrison, Bhavik Mehta, Daniel Carranza, Joël Riou -/ import Mathlib.CategoryTheory.Monoidal.Functor import Mathlib.CategoryTheory.Monoidal.CoherenceLemmas import Mathlib.CategoryThe...
StrictInitial.lean
/- Copyright (c) 2021 Bhavik Mehta. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Bhavik Mehta -/ import Mathlib.CategoryTheory.Limits.Shapes.Terminal import Mathlib.CategoryTheory.Limits.Shapes.BinaryProducts /-! # Strict initial objects This file sets up the basic...
Order.lean
/- Copyright (c) 2022 Aaron Anderson. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Aaron Anderson -/ import Mathlib.Algebra.CharZero.Infinite import Mathlib.Data.Rat.Encodable import Mathlib.Data.Finset.Sort import Mathlib.ModelTheory.Complexity import Mathlib.ModelT...
Defs.lean
/- Copyright (c) 2019 Zhouhang Zhou. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Zhouhang Zhou, Sébastien Gouëzel, Frédéric Dupuis -/ import Mathlib.Algebra.QuadraticDiscriminant import Mathlib.Analysis.LocallyConvex.WithSeminorms import Mathlib.Analysis.RCLike.Basi...
ssrfun.v
From mathcomp Require Import ssreflect. From Corelib Require Export ssrfun. From mathcomp Require Export ssrnotations. #[export] Set Warnings "-overwriting-delimiting-key". (* remove above line when requiring Rocq >= 9.0 *) Set Implicit Arguments. Unset Strict Implicit. Unset Printing Implicit Defensive. (***********...
Flow.lean
/- Copyright (c) 2020 Jean Lo. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Jean Lo -/ import Mathlib.Logic.Function.Iterate import Mathlib.Topology.Algebra.Monoid import Mathlib.Topology.Algebra.Group.Defs /-! # Flows and invariant sets This file defines a flow on...
sylow.v
(* (c) Copyright 2006-2016 Microsoft Corporation and Inria. *) (* Distributed under the terms of CeCILL-B. *) From mathcomp Require Import ssreflect ssrbool ssrfun eqtype ssrnat seq div. From mathcomp Require Import fintype prime bigop finset fingroup morphism. From mat...
IsoReassoc.lean
/- Copyright (c) 2025 Robin Carlier. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Robin Carlier -/ import Mathlib.CategoryTheory.Iso /-! # Extension of `reassoc` to isomorphisms. We extend `reassoc` and `reassoc_of%` for equality of isomorphisms. Adding `@[reassoc]...
Hom.lean
/- Copyright (c) 2025 Yakov Pechersky. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Yakov Pechersky -/ import Mathlib.Data.Prod.Lex import Mathlib.Order.Hom.Basic /-! # Order homomorphism for `Prod.Lex` -/ /-- `toLex` as an `OrderHom`. -/ @[simps] def Prod.Lex.toLe...
IntegrallyClosed.lean
/- Copyright (c) 2021 Anne Baanen. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Anne Baanen -/ import Mathlib.RingTheory.Localization.Integral import Mathlib.RingTheory.Localization.LocalizationLocalization /-! # Integrally closed rings An integrally closed ring `R...
Set.lean
/- Copyright (c) 2017 Mario Carneiro. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Mario Carneiro -/ import Mathlib.Order.Directed import Mathlib.Order.RelIso.Basic import Mathlib.Logic.Embedding.Set import Mathlib.Logic.Equiv.Set /-! # Interactions between relation...