filename
stringlengths
5
42
content
stringlengths
15
319k
Pareto.lean
/- Copyright (c) 2024 Alvan Caleb Arulandu. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Alvan Caleb Arulandu -/ import Mathlib.Probability.Notation import Mathlib.Probability.CDF import Mathlib.Analysis.SpecialFunctions.ImproperIntegrals /-! # Pareto distributions ...
gfunctor.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 fintype. From mathcomp Require Import bigop finset fingroup morphism automorphism. From math...
Declarations.lean
/- Copyright (c) 2025 Lean FRO, LLC. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Anne Baanen -/ import Mathlib.Tactic.TacticAnalysis import Mathlib.Tactic.ExtractGoal import Mathlib.Tactic.MinImports /-! # Tactic linters This file defines passes to run from the ta...
nilpotent.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 div bigop prime finset fingroup morphism. Fro...
ConnectedComponent.lean
/- Copyright (c) 2021 David Wärn. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: David Wärn -/ import Mathlib.Combinatorics.Quiver.Subquiver import Mathlib.Combinatorics.Quiver.Path import Mathlib.Combinatorics.Quiver.Symmetric /-! ## Weakly connected components For ...
Hom.lean
/- Copyright (c) 2022 Floris van Doorn. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Floris van Doorn -/ import Mathlib.Geometry.Manifold.VectorBundle.Basic import Mathlib.Topology.VectorBundle.Hom import Mathlib.Geometry.Manifold.VectorBundle.MDifferentiable /-! # ...
Insert.lean
/- Copyright (c) 2014 Jeremy Avigad. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Jeremy Avigad, Leonardo de Moura -/ import Mathlib.Data.Set.Disjoint /-! # Lemmas about insertion, singleton, and pairs This file provides extra lemmas about `insert`, `singleton`, an...
generic_quotient.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. From mathcomp Require Import seq fintype. (*****...
BoolRing.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.Algebra.Category.Ring.Basic import Mathlib.Algebra.Ring.BooleanRing import Mathlib.Order.Category.BoolAlg /-! # The category of Boolean rings This file d...
automorphism.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 fintype. From mathcomp Require Import finset fingroup perm morphism. (*********************...
archimedean.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 choice. From mathcomp Require Import fintype bigop or...
Asymptotics.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.Analysis.Complex.Basic import Mathlib.Analysis.Asymptotics.Theta /-! # Lemmas about asymptotics and the natural embedding `ℝ → ℂ` In this file we p...
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...
jordanholder.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 big...
test_guard.v
From mathcomp Require Import all_boot. Set Implicit Arguments. Unset Strict Implicit. Unset Printing Implicit Defensive. Inductive tree := Node { children : seq tree }. Inductive ptree (T : Type) := singleton of T | branch of list (ptree T). (* has *) Fixpoint tree_has (T : Type) (p : pred T) (t : ptree T) : bool :...
ModuleCasing.lean
import Mathlib.Tactic.Linter.TextBased /-! Unit tests for the module name case check in the text-based linters. -/ open Lean.Linter Mathlib.Linter.TextBased /-- Some unit tests for `modulesNotUpperCamelCase` -/ def testModulesNotUpperCamelCase : IO Unit := do -- Explicitly enable the linter, although it is enabled...
SubstHomLift.lean
import Mathlib.CategoryTheory.FiberedCategory.HomLift universe u₁ v₁ u₂ v₂ open CategoryTheory Category variable {𝒮 : Type u₁} {𝒳 : Type u₂} [Category.{v₁} 𝒳] [Category.{v₂} 𝒮] (p : 𝒳 ⥤ 𝒮) /-- Testing simple substitution -/ example {R S : 𝒮} {a b : 𝒳} (f : R ⟶ S) (φ : a ⟶ b) [p.IsHomLift f φ] : f = f := by...
Basic.lean
/- Copyright (c) 2024 Robert Maxton. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Robert Maxton -/ import Mathlib.Algebra.DirectSum.Basic import Mathlib.LinearAlgebra.TensorAlgebra.ToTensorPower /-! # The free product of $R$-algebras We define the free product of a...
DoublyStochastic.lean
/- Copyright (c) 2024 Bhavik Mehta. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Bhavik Mehta -/ import Mathlib.Analysis.Convex.Basic import Mathlib.LinearAlgebra.Matrix.Permutation /-! # Doubly stochastic matrices ## Main definitions * `doublyStochastic`: a squa...
Ideal.lean
import Mathlib.NumberTheory.NumberField.Ideal.Asymptotics deprecated_module (since := "2025-06-04")
RegularityCompacts.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, Peter Pfaffelhuber -/ import Mathlib.Analysis.SpecificLimits.Basic import Mathlib.MeasureTheory.Measure.Regular import Mathlib.Topology.MetricSpace.Polish import Mathlib.To...
Tangent.lean
/- Copyright (c) 2025 Joseph Myers. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Joseph Myers -/ import Mathlib.Geometry.Euclidean.Projection import Mathlib.Geometry.Euclidean.Sphere.Basic /-! # Tangency for spheres. This file defines notions of spheres being tange...
Pointwise.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, Patrick Massot -/ import Mathlib.Topology.Algebra.Group.Basic /-! # Pointwise operations on sets in topological groups -/ open Set Filter Topological...
Basic.lean
/- Copyright (c) 2023 Amelia Livingston. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Amelia Livingston -/ import Mathlib.RepresentationTheory.Homological.GroupCohomology.Basic deprecated_module (since := "2025-06-14")
SheafedSpace.lean
/- Copyright (c) 2019 Kim Morrison. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Kim Morrison -/ import Mathlib.Geometry.RingedSpace.PresheafedSpace.HasColimits import Mathlib.Geometry.RingedSpace.Stalks import Mathlib.Topology.Sheaves.Functors /-! # Sheafed spaces ...
LowDegree.lean
/- Copyright (c) 2023 Amelia Livingston. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Amelia Livingston, Joël Riou -/ import Mathlib.RepresentationTheory.Homological.GroupCohomology.LowDegree deprecated_module (since := "2025-06-14")
Monoidal.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, Kim Morrison -/ import Mathlib.CategoryTheory.GradedObject.Unitor import Mathlib.Data.Fintype.Prod /-! # The monoidal category structures on graded objects Assuming that `C` is...
ring_quotient.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 choice ssrnat. From mathcomp Require Import seq ssralg generic_q...
ExtendHomology.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.Algebra.Homology.Embedding.Extend import Mathlib.Algebra.Homology.Embedding.IsSupported import Mathlib.Algebra.Homology.QuasiIso /-! # Homology of the extension...
interval_inference.v
(* mathcomp analysis (c) 2017 Inria and AIST. License: CeCILL-C. *) From HB Require Import structures. From mathcomp Require Import ssreflect ssrfun ssrbool ssrnat eqtype choice. From mathcomp Require Import order ssralg ssrnum ssrint interval. (**md********************************************************...
ssreflect.v
(* (c) Copyright 2006-2016 Microsoft Corporation and Inria. *) (* Distributed under the terms of CeCILL-B. *) From Corelib Require Export ssreflect. Global Set SsrOldRewriteGoalsOrder. Global Set Asymmetric Patterns. Global Set Bullet Behavior "None". #[deprecated(sinc...
TensorProduct.lean
/- Copyright (c) 2021 Oliver Nash. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Oliver Nash -/ import Mathlib.Algebra.Lie.Abelian import Mathlib.LinearAlgebra.TensorProduct.Tower /-! # Tensor products of Lie modules Tensor products of Lie modules carry natural Lie ...
finfield.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 choice. From mathcomp Require Import fintype div tupl...
Cat.lean
import Mathlib.CategoryTheory.Monoidal.Cartesian.Cat deprecated_module (since := "2025-05-15")
PadicNumbers.lean
/- 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 -/ import Mathlib.RingTheory.Valuation.Basic import Mathlib.NumberTheory.Padics.PadicNorm import Mathlib.Analysis.Normed.Field.Lemmas import Mathlib.Tactic.Peel import...
basic.lean
/- Copyright (c) 2021 Kim Morrison. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Kim Morrison -/ import Lean.Meta.Tactic.SolveByElim import Mathlib.Tactic.Constructor import Batteries.Tactic.PermuteGoals import MathlibTest.solve_by_elim.dummy_label_attr example (h ...
Defs.lean
/- Copyright (c) 2015 Nathaniel Thomas. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Anne Baanen, Yury Kudryashov, Joseph Myers, Heather Macbeth, Kim Morrison, Yaël Dillies -/ import Mathlib.Algebra.GroupWithZero.Action.Defs import Mathlib.Algebra.Group.Torsion impor...
ConstantSheaf.lean
/- Copyright (c) 2023 Dagur Asgeirsson. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Dagur Asgeirsson -/ import Mathlib.CategoryTheory.Sites.Sheafification import Mathlib.CategoryTheory.Sites.DenseSubsite.SheafEquiv /-! # The constant sheaf We define the constant s...
MinMax.lean
/- Copyright (c) 2016 Jeremy Avigad. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Jeremy Avigad, Leonardo de Moura, Mario Carneiro, Johannes Hölzl -/ import Mathlib.Algebra.Order.Group.Abs import Mathlib.Algebra.Order.Monoid.Unbundled.MinMax /-! # `min` and `max` in...
burnside_app.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 div. From mathcomp Require Import choice fintype tupl...
extremal.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 div. From mathcomp Require Import choice fintype bigo...
Simple.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.Order.Atoms import Mathlib.Algebra.Group.Subgroup.Basic /-! # Simple groups This file defines `IsSimpleGroup G`, a class indicating that a group has ...
PartENat.lean
/- Copyright (c) 2018 Chris Hughes. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Chris Hughes -/ import Mathlib.Algebra.Group.Equiv.Basic import Mathlib.Data.ENat.Lattice import Mathlib.Data.Part import Mathlib.Tactic.NormNum /-! # Natural numbers with infinity The...
Even.lean
/- Copyright (c) 2022 Eric Wieser. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Eric Wieser -/ import Mathlib.LinearAlgebra.CliffordAlgebra.Fold import Mathlib.LinearAlgebra.CliffordAlgebra.Grading /-! # The universal property of the even subalgebra ## Main definit...
PontryaginDuality.lean
/- Copyright (c) 2023 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.DirectSum.AddChar import Mathlib.Analysis.Fourier.FiniteAbelian.Orthogonality import Mathlib.Analysis.SpecialFunctions....
SMulWithZero.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, Kim Morrison -/ import Mathlib.Algebra.Group.Action.Pi import Mathlib.Algebra.Group.Finsupp import Mathlib.Algebra.GroupWithZero.Action.Defs /-! # Scalar multiplicatio...
DenseSubgroup.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.Data.Real.Irrational import Mathlib.Topology.Instances.AddCircle.Defs import Mathlib.Topology.Algebra.Order.Archimedean /-! # Irrational rotation is...
all_solvable.v
From mathcomp Require Export abelian. From mathcomp Require Export alt. From mathcomp Require Export burnside_app. From mathcomp Require Export center. From mathcomp Require Export commutator. From mathcomp Require Export cyclic. From mathcomp Require Export extraspecial. From mathcomp Require Export extremal. From mat...
ssrbool.v
From mathcomp Require Import ssreflect ssrfun. From Corelib Require Export ssrbool. Set Implicit Arguments. Unset Strict Implicit. Unset Printing Implicit Defensive. (**********************) (* not yet backported *) (**********************) Lemma homo_mono1 [aT rT : Type] [f : aT -> rT] [g : rT -> aT] [aP : pred ...
Empty.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, Jeremy Avigad, Minchao Wu, Mario Carneiro -/ import Mathlib.Data.Finset.Defs import Mathlib.Data.Multiset.ZeroCons /-! # Empty and nonempty finite sets This...
Algebra.lean
/- Copyright (c) 2021 Heather Macbeth. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Heather Macbeth -/ import Mathlib.Topology.Algebra.MulAction import Mathlib.Topology.Algebra.Order.Field import Mathlib.Topology.Algebra.SeparationQuotient.Basic import Mathlib.Topolo...
Card.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, Jeremy Avigad -/ import Mathlib.Data.Finset.Basic import Mathlib.Data.Finset.Image /-! # Cardinality of a finite set This defines the cardinality of a `Fins...
AEEqFun.lean
/- Copyright (c) 2019 Johannes Hölzl, Zhouhang Zhou. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Johannes Hölzl, Zhouhang Zhou -/ import Mathlib.Dynamics.Ergodic.MeasurePreserving import Mathlib.MeasureTheory.Function.StronglyMeasurable.AEStronglyMeasurable import M...
all_fingroup.v
From mathcomp Require Export action. From mathcomp Require Export automorphism. From mathcomp Require Export fingroup. From mathcomp Require Export gproduct. From mathcomp Require Export morphism. From mathcomp Require Export perm. From mathcomp Require Export presentation. From mathcomp Require Export quotient.
test_rat.v
From mathcomp Require Import all_boot all_order all_algebra. Local Open Scope ring_scope. Goal 2%:Q + 2%:Q = 4%:Q. Proof. reflexivity. Qed. Goal - 2%:Q = -1 * 2%:Q. Proof. reflexivity. Qed. Goal 2%:Q ^+ 2 = 4%:Q. Proof. reflexivity. Qed. Goal (-1)^-1 = -1 :> rat. Proof. reflexivity. Qed. Local Open Scope rat_scop...
Basic.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, Jeremy Avigad -/ import Mathlib.Data.Set.Finite.Basic import Mathlib.Data.Set.Finite.Range import Mathlib.Data.Set.Lattice import Mathlib.Topology.Defs....
HomotopyCat.lean
/- Copyright (c) 2024 Mario Carneiro and Emily Riehl. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Mario Carneiro, Emily Riehl, Joël Riou -/ import Mathlib.AlgebraicTopology.SimplicialObject.Basic import Mathlib.AlgebraicTopology.SimplicialSet.Coskeletal import Math...
CosetCover.lean
/- Copyright (c) 2024 Antoine Chambert-Loir, Richard Copley. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Antoine Chambert-Loir, Richard Copley -/ import Mathlib.Algebra.Order.Ring.Rat import Mathlib.GroupTheory.Complement import Mathlib.LinearAlgebra.Basis.VectorSpa...
DedekindZeta.lean
/- Copyright (c) 2025 Xavier Roblot. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Xavier Roblot -/ import Mathlib.Algebra.BigOperators.Ring.Nat import Mathlib.NumberTheory.LSeries.SumCoeff import Mathlib.NumberTheory.NumberField.Ideal.Asymptotics /-! # The Dedekind ...
matrix.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 finfun f...
Minimal.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.Topology.Algebra.ConstMulAction /-! # Minimal action of a group In this file we define an action of a monoid `M` on a topological space `α` to be *...
Finite.lean
/- Copyright (c) 2025 Andrew Yang. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Andrew Yang -/ import Mathlib.CategoryTheory.Limits.Filtered import Mathlib.CategoryTheory.Limits.Preserves.Filtered import Mathlib.CategoryTheory.Presentable.Basic /-! # Finitely Presen...
Poisson.lean
/- Copyright (c) 2024 Josha Dekker. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Josha Dekker -/ import Mathlib.Analysis.SpecialFunctions.Exponential import Mathlib.Probability.ProbabilityMassFunction.Basic import Mathlib.MeasureTheory.Function.StronglyMeasurable.Ba...
Synonym.lean
/- Copyright (c) 2021 Yaël Dillies. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Yaël Dillies -/ import Mathlib.Algebra.Module.Defs import Mathlib.Algebra.Order.GroupWithZero.Action.Synonym import Mathlib.Algebra.Order.Ring.Synonym /-! # Action instances for `OrderD...
ToDirectSum.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.Algebra.DirectSum.Algebra import Mathlib.Algebra.MonoidAlgebra.Basic import Mathlib.Data.Finsupp.ToDFinsupp /-! # Conversion between `AddMonoidAlgebra` and ...
Permutation.lean
/- Copyright (c) 2020 Anne Baanen. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Anne Baanen -/ import Mathlib.Analysis.CStarAlgebra.Matrix import Mathlib.Data.Matrix.PEquiv import Mathlib.Data.Set.Card import Mathlib.LinearAlgebra.Matrix.Determinant.Basic import Mat...
Basis.lean
/- Copyright (c) 2018 Kenny Lau. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Anne Baanen -/ import Mathlib.Algebra.Algebra.Bilinear import Mathlib.LinearAlgebra.Basis.Defs import Mathlib.LinearAlgebra.Basis.Submodule import Mathlib.RingTheory.Ideal.Span /-! # The b...
Attr.lean
/- Copyright (c) 2024 Yaël Dillies. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Yaël Dillies -/ import Mathlib.Init import Aesop import Qq /-! # Aesop rule set for finsets This file defines `finsetNonempty`, an aesop rule set to prove that a given finset is nonemp...
KrullDimension.lean
/- Copyright (c) 2023 Jujian Zhang. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Jujian Zhang, Fangming Li, Joachim Breitner -/ import Mathlib.Algebra.Order.Group.Int import Mathlib.Algebra.Order.SuccPred.WithBot import Mathlib.Data.ENat.Lattice import Mathlib.Order...
closed_field.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 choice ssrnat seq. From mathcomp Require Import fintype generic_...
Eval.lean
/- Copyright (c) 2021 Eric Rodriguez. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Eric Rodriguez -/ import Mathlib.RingTheory.Polynomial.Cyclotomic.Roots import Mathlib.Tactic.ByContra import Mathlib.Topology.Algebra.Polynomial import Mathlib.NumberTheory.Padics.Pad...
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. (******************************************************************************) (* ...
Lemmas.lean
/- Copyright (c) 2014 Floris van Doorn (c) 2016 Microsoft Corporation. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Floris van Doorn, Leonardo de Moura, Jeremy Avigad, Mario Carneiro -/ import Mathlib.Data.Nat.Find import Mathlib.Data.Set.Basic /-! # Further lemmas ...
Dual.lean
/- Copyright (c) 2025 Yaël Dillies, Andrew Yang. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Yaël Dillies, Andrew Yang -/ import Mathlib.Analysis.Convex.Cone.Basic import Mathlib.Analysis.NormedSpace.HahnBanach.Separation import Mathlib.Geometry.Convex.Cone.Dual imp...
div.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. (******************************************************************************) (* Th...
seq.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. (******************************************************...
CardinalEmb.lean
/- Copyright (c) 2024 Junyan Xu. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Junyan Xu -/ import Mathlib.FieldTheory.SeparableClosure import Mathlib.FieldTheory.PurelyInseparable.Basic import Mathlib.LinearAlgebra.FreeAlgebra import Mathlib.Order.Interval.Set.WithBo...
SingleObj.lean
/- Copyright (c) 2021 Kim Morrison. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Kim Morrison -/ import Mathlib.CategoryTheory.Preadditive.Basic import Mathlib.CategoryTheory.SingleObj /-! # `SingleObj α` is preadditive when `α` is a ring. -/ namespace CategoryTh...
ssreflect.v
(* (c) Copyright 2006-2016 Microsoft Corporation and Inria. *) (* Distributed under the terms of CeCILL-B. *) From Corelib Require Export ssreflect. Global Set SsrOldRewriteGoalsOrder. Global Set Asymmetric Patterns. Global Set Bullet Behavior "None". #[deprecated(sinc...
Permutation.lean
/- Copyright (c) 2014 Parikshit Khanna. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Parikshit Khanna, Jeremy Avigad, Leonardo de Moura, Floris van Doorn, Mario Carneiro -/ import Mathlib.Data.List.Lemmas import Mathlib.Data.Nat.Factorial.Basic import Mathlib.Data.Li...
conv.lean
import Mathlib.Tactic.Conv /-- Testing nested `conv in ... => ...` -/ example (a b c : Nat) : a + b + c = c + a + b := by conv => conv in a + b => rw [Nat.add_comm] guard_target = b + a + c = c + a + b rw [Nat.add_comm, Nat.add_assoc] conv in (occs := 4) _ + _ => guard_target = a + b ...
archimedean.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 choice. From mathcomp Require Import fintype bigop or...
Away.lean
/- Copyright (c) 2025 Yongle Hu. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Yongle Hu -/ import Mathlib.Algebra.Module.LocalizedModule.Basic /-! # Localizations of modules away from an element -/ /-- Given `x : R` and `f : M →ₗ[R] M'`, IsLocalization.Away x f` st...
Grading.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.TensorAlgebra.Basic import Mathlib.RingTheory.GradedAlgebra.Basic /-! # Results about the grading structure of the tensor algebra The main re...
rat.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 choice. From mathcomp Require Import prime fintype fi...
EssSurj.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.CategoryTheory.Galois.Full import Mathlib.CategoryTheory.Galois.Topology import Mathlib.Topology.Algebra.OpenSubgroup /-! # Essential surjectivit...
DifferentialObject.lean
/- Copyright (c) 2021 Kim Morrison. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Kim Morrison -/ import Mathlib.Algebra.Homology.HomologicalComplex import Mathlib.CategoryTheory.DifferentialObject /-! # Homological complexes are differential graded objects. We veri...
Basic.lean
/- Copyright (c) 2018 Chris Hughes. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Chris Hughes, Abhimanyu Pallavi Sudhir, Jean Lo, Calle Sönne, Benjamin Davidson -/ import Mathlib.Algebra.Field.NegOnePow import Mathlib.Algebra.Field.Periodic import Mathlib.Algebra.Qua...
LocallyConvex.lean
/- Copyright (c) 2022 Anatole Dedecker. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Anatole Dedecker -/ import Mathlib.Analysis.Convex.Topology import Mathlib.Topology.Connected.LocPathConnected import Mathlib.Analysis.Convex.PathConnected /-! # Locally convex topo...
ClosedSubmodule.lean
/- 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 -/ import Mathlib.Topology.Algebra.Module.LinearMap import Mathlib.Topology.Sets.Closeds /-! # Closed submodules of a topological module This files builds the frame of clo...
seq.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. (******************************************************...
polyXY.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 choice ssrnat seq. From mathcomp Require Import fintype tuple fi...
choice.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. (**************************************************...
BallotProblem.lean
/- Copyright (c) 2022 Bhavik Mehta, Kexing Ying. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Bhavik Mehta, Kexing Ying -/ import Mathlib.Probability.UniformOn /-! # Ballot problem This file proves Theorem 30 from the [100 Theorems List](https://www.cs.ru.nl/~freek...
LinearIsometry.lean
/- Copyright (c) 2021 Yury Kudryashov. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Yury Kudryashov, Frédéric Dupuis, Heather Macbeth -/ import Mathlib.Algebra.Star.Basic import Mathlib.Analysis.Normed.Group.Constructions import Mathlib.Analysis.Normed.Group.Submodul...
matrix.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 finfun f...
DenomsClearable.lean
/- Copyright (c) 2020 Damiano Testa. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Damiano Testa -/ import Mathlib.Algebra.Algebra.Basic import Mathlib.Algebra.Order.Ring.Abs import Mathlib.Algebra.Polynomial.EraseLead /-! # Denominators of evaluation of polynomials ...
ElementarySubstructures.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.ModelTheory.ElementaryMaps /-! # Elementary Substructures ## Main Definitions - A `FirstOrder.Language.ElementarySubstructure` is a substructure whe...
test_guard.v
From mathcomp Require Import all_boot. Set Implicit Arguments. Unset Strict Implicit. Unset Printing Implicit Defensive. Inductive tree := Node { children : seq tree }. Inductive ptree (T : Type) := singleton of T | branch of list (ptree T). (* has *) Fixpoint tree_has (T : Type) (p : pred T) (t : ptree T) : bool :...
Pi.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.Algebra.Algebra.Pi import Mathlib.LinearAlgebra.TensorProduct.Pi import Mathlib.LinearAlgebra.TensorProduct.Prod import Mathlib.RingTheory.TensorPr...