filename
stringlengths
5
42
content
stringlengths
15
319k
MeasureCompProd.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.Measure.Decomposition.Lebesgue import Mathlib.MeasureTheory.Measure.Prod import Mathlib.Probability.Kernel.Composition.CompProd /-! # Compos...
Definability.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.Data.SetLike.Basic import Mathlib.ModelTheory.Semantics /-! # Definable Sets This file defines what it means for a set over a first-order structure t...
QuadraticForm.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.QuadraticForm.Basic /-! # `QuadraticForm R M` and `Subtype LinearMap.IsSymm` are distinct notions in characteristic 2 The main result of this...
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...
Continuity.lean
/- Copyright (c) 2023 Moritz Doll. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Moritz Doll -/ import Mathlib.Tactic.Continuity.Init /-! # Continuity We define the `continuity` tactic using `aesop`. -/ attribute [aesop (rule_sets := [Continuous]) unfold norm] Fun...
Exponential.lean
/- Copyright (c) 2021 Henry Swanson. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Henry Swanson, Patrick Massot -/ import Mathlib.Algebra.BigOperators.Field import Mathlib.Analysis.SpecialFunctions.Exponential import Mathlib.Combinatorics.Derangements.Finite import M...
Basic.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.Algebra.Order.AddGroupWithTop import Mathlib.Algebra.Order.Ring.WithTop import Mathlib.Algebra.Order.Sub.WithTop import Mathlib.Data.ENat.Defs import...
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...
Local.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.RingTheory.LocalRing.Module import Mathlib.RingTheory.Smooth.Kaehler import Mathlib.RingTheory.TensorProduct.Free /-! # Formally smooth local algebras -/ o...
JacobiZariski.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.RingTheory.Extension.Cotangent.Basic import Mathlib.RingTheory.Extension.Generators import Mathlib.Algebra.Module.SnakeLemma /-! # The Jacobi-Zariski exact...
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.
Basic.lean
/- Copyright (c) 2022 Andrew Yang. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Andrew Yang, Joël Riou -/ import Mathlib.CategoryTheory.Elementwise import Mathlib.Data.Set.Lattice.Image /-! # Subpresheaf of types We define the subpresheaf of a type valued presheaf...
EvenOddRec.lean
/- Copyright (c) 2022 Stuart Presnell. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Stuart Presnell -/ import Mathlib.Algebra.Ring.Parity import Mathlib.Data.Nat.BinaryRec /-! # A recursion principle based on even and odd numbers. -/ namespace Nat /-- Recursion pr...
RestrictionHomology.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.Restriction import Mathlib.Algebra.Homology.ShortComplex.HomologicalComplex /-! # The homology of a restriction Under favourable cir...
WithTop.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 -/ import Mathlib.Algebra.Order.GroupWithZero.Synonym import Mathlib.Algebra.Order.Ring.Canonical import Mathlib.Algebra.Ring.Hom.Defs i...
finmodule.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 path. From mathcomp Require Import div choice fintype...
Basic.lean
/- Copyright (c) 2020 Johan Commelin. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Johan Commelin -/ import Mathlib.Algebra.Group.Units.Basic import Mathlib.Algebra.GroupWithZero.Basic import Mathlib.Data.Int.Basic import Mathlib.Lean.Meta.CongrTheorems import Mathli...
PerfectClosure.lean
/- Copyright (c) 2024 Jz Pan. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Jz Pan -/ import Mathlib.Algebra.CharP.Lemmas import Mathlib.Algebra.CharP.IntermediateField import Mathlib.FieldTheory.PurelyInseparable.Basic /-! # Basic results about relative perfect clo...
Map.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.Group.Subgroup.Map import Mathlib.Algebra.Module.Submodule....
Profinite.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.RingTheory.Invariant.Basic import Mathlib.Topology.Algebra.ClopenNhdofOne import Mathlib.Topology.Algebra.Category.ProfiniteGrp.Limits import Mathlib.Categor...
ConstantSpeed.lean
/- Copyright (c) 2023 Rémi Bottinelli. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Rémi Bottinelli -/ import Mathlib.Data.Set.Function import Mathlib.Analysis.RCLike.Basic import Mathlib.Topology.EMetricSpace.BoundedVariation /-! # Constant speed This file defines...
alt.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 div fintype tupl...
Riemannian.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.VectorBundle.Hom import Mathlib.Geometry.Manifold.VectorBundle.MDifferentiable import Mathlib.Topology.VectorBundle.Riemannian ...
CharacterModule.lean
/- Copyright (c) 2023 Jujian Zhang. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Jujian Zhang, Junyan Xu -/ import Mathlib.Algebra.Category.ModuleCat.Basic import Mathlib.Algebra.Category.Grp.Injective import Mathlib.Topology.Instances.AddCircle.Defs import Mathlib....
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 -/ import Mathlib.Data.Option.Basic import Mathlib.Data.Prod.Basic import Mathlib.Data.Prod.PProd import Mathlib.Logic.Equiv.Basic /-! # Injective funct...
ExactSequences.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.DerivedCategory.Ext.ExtClass import Mathlib.CategoryTheory.Triangulated.Yoneda /-! # Long exact sequences of `Ext`-groups In this file, we obt...
MulticoequalizerDiagram.lean
/- Copyright (c) 2025 Joël Riou. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Joël Riou -/ import Mathlib.Order.CompleteLattice.Lemmas import Mathlib.CategoryTheory.Category.Preorder import Mathlib.CategoryTheory.Limits.Shapes.Multiequalizer import Mathlib.CategoryTh...
PiL2.lean
/- Copyright (c) 2020 Joseph Myers. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Joseph Myers, Sébastien Gouëzel, Heather Macbeth -/ import Mathlib.Analysis.InnerProductSpace.Projection.FiniteDimensional import Mathlib.Analysis.Normed.Lp.PiLp import Mathlib.LinearAlg...
Pigeonhole.lean
/- Copyright (c) 2025 Martin Dvorak. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Martin Dvorak -/ import Mathlib.Data.Fintype.Card /-! # Pigeonhole-like results for Fin This adapts Pigeonhole-like results from `Mathlib.Data.Fintype.Card` to the setting where the m...
RankOne.lean
/- Copyright (c) 2024 María Inés de Frutos-Fernández. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: María Inés de Frutos-Fernández -/ import Mathlib.Algebra.Order.Group.Units import Mathlib.Algebra.Order.GroupWithZero.WithZero import Mathlib.Analysis.SpecialFunctions....
Cardinality.lean
/- Copyright (c) 2024 Jz Pan. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Jz Pan -/ import Mathlib.GroupTheory.OreLocalization.Cardinality import Mathlib.RingTheory.OreLocalization.Ring /-! # Cardinality of Ore localizations of rings This file contains some result...
maximal.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 choice. From mathcomp Require Import div fintype finfun bigop finset prime binomial. Fro...
Basic.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, Mario Carneiro -/ import Batteries.Data.List.Perm import Mathlib.Logic.Relation import Mathlib.Order.RelClasses import Mathlib.Data.List.Forall...
Differentials.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.Module.Presentation.Basic import Mathlib.RingTheory.Kaehler.Polynomial import Mathlib.RingTheory.Extension.Cotangent.Basic import Mathlib.RingTheory.Ext...
LIntegral.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.MeasureTheory.Group.Measure /-! # Lebesgue Integration on Groups We develop properties of integrals with a group as domain. This file contains pr...
ToLinearEquiv.lean
/- Copyright (c) 2019 Johannes Hölzl. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Johannes Hölzl, Patrick Massot, Casper Putz, Anne Baanen -/ import Mathlib.LinearAlgebra.Matrix.GeneralLinearGroup.Defs import Mathlib.LinearAlgebra.Matrix.Nondegenerate import Mathlib...
Update.lean
/- Copyright (c) 2023 Floris van Doorn. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Floris van Doorn -/ import Mathlib.Data.Finset.Pi import Mathlib.Logic.Function.DependsOn /-! # Update a function on a set of values This file defines `Function.updateFinset`, the ...
DefEqTransformations.lean
import Mathlib.Tactic.DefEqTransformations set_option autoImplicit true private axiom test_sorry : ∀ {α}, α namespace Tests set_option linter.unusedTactic false example : id (1 = 1) := by with_reducible whnf guard_target =ₛ id (1 = 1) whnf guard_target =ₛ 1 = 1 rfl example : (fun x => 1 + x) 1 = 2 := by ...
PEmptyInstances.lean
/- Copyright (c) 2021 Julian Kuelshammer. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Julian Kuelshammer -/ import Mathlib.Algebra.Group.Defs import Mathlib.Tactic.ToAdditive /-! # Instances on pempty This file collects facts about algebraic structures on the (uni...
Field.lean
/- Copyright (c) 2017 Mario Carneiro. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Bhavik Mehta -/ import Mathlib.Algebra.Field.Defs import Mathlib.Algebra.Ring.Int.Defs /-! # Cast of integers into fields This file concerns the canonical homomorphism `ℤ → F`, where...
ClosedUnderIsomorphisms.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.Iso import Mathlib.CategoryTheory.ObjectProperty.Basic import Mathlib.Order.Basic /-! # Properties of objects which are closed under isomorphisms...
Basic.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.Monoid.Defs import Mathlib.Algebra.Group.InjSurj import Mathlib.Order.Hom.Basic /-! # O...
Piecewise.lean
/- Copyright (c) 2014 Jeremy Avigad. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Jeremy Avigad, Andrew Zipperer, Haitao Zhang, Minchao Wu, Yury Kudryashov -/ import Mathlib.Data.Set.Function /-! # Piecewise functions This file contains basic results on piecewise d...
BigOperators.lean
/- Copyright (c) 2018 Kenny Lau. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Johannes Hölzl, Kenny Lau -/ import Mathlib.Algebra.BigOperators.GroupWithZero.Action import Mathlib.Data.DFinsupp.Ext /-! # Dependent functions with finite support For a non-dependent ve...
ValuedField.lean
/- Copyright (c) 2021 Patrick Massot. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Patrick Massot -/ import Mathlib.Topology.Algebra.Valued.ValuationTopology import Mathlib.Topology.Algebra.WithZeroTopology import Mathlib.Topology.Algebra.UniformField /-! # Valued f...
CompleteLattice.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.Pointwise.Bounds import Mathlib.Order.ConditionallyCompleteLattice.Indexed /-! # Infima/suprema in ordered monoids and groups I...
Bound.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.BigOperators.Field import Mathlib.Algebra.Order.Chebyshev import Mathlib.Analysis.SpecialFunctions.Pow.Real import Math...
Functor.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 -/ import Mathlib.CategoryTheory.Triangulated.Triangulated import Mathlib.CategoryTheory.ComposableArrows import Mathlib.CategoryTheory.Shift.CommShift /-! # Triangulated functor...
IsIntegral.lean
/- Copyright (c) 2022 Riccardo Brasca. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Riccardo Brasca -/ import Mathlib.Data.Nat.Choose.Dvd import Mathlib.RingTheory.IntegralClosure.IntegrallyClosed import Mathlib.RingTheory.Norm.Basic import Mathlib.RingTheory.Polynom...
output.v
From mathcomp Require Import all_boot all_order all_algebra all_field all_character all_fingroup all_solvable. Open Scope group_scope. Check @cyclic_pgroup_Aut_structure.
PreservesLocallyBijective.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.Sites.DenseSubsite.Basic import Mathlib.CategoryTheory.Sites.LocallySurjective /-! # Preserving and reflecting local injectivity an...
Ext.lean
/- Copyright (c) 2023 Anne Baanen. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Anne Baanen -/ import Mathlib.Init import Lean.Meta.Tactic.Simp.Attr /-! # `@[reduce_mod_char]` attribute This file registers `@[reduce_mod_char]` as a `simp` attribute. -/ open Lean M...
PNat.lean
/- Copyright (c) 2024 Miyahara Kō. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Miyahara Kō -/ import Mathlib.Topology.Instances.Nat /-! # Topology on the positive natural numbers The structure of a metric space on `ℕ+` is introduced in this file, induced from `ℝ`....
qfpoly.v
From HB Require Import structures. From mathcomp Require Import ssreflect ssrfun ssrbool eqtype ssrnat seq choice. From mathcomp Require Import fintype tuple div bigop binomial finset finfun. From mathcomp Require Import ssralg countalg finalg poly polydiv qpoly perm. From mathcomp Require Import fingroup falgebra fiel...
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 ...
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...
all_boot.v
Require Export ssreflect. Require Export ssrbool. Require Export ssrfun. Require Export eqtype. Require Export ssrnat. Require Export seq. Require Export choice. Require Export monoid. Require Export nmodule. Require Export path. Require Export div. Require Export fintype. Require Export fingraph. Require Export tuple....
basic.lean
import Mathlib.Util.AssertNoSorry import Mathlib.Algebra.Order.Ring.Canonical import Mathlib.Data.Quot import Mathlib.Data.Nat.Prime.Defs import Mathlib.Data.Real.Basic set_option autoImplicit true set_option linter.style.setOption false -- Enable this option for tracing: -- set_option trace.Tactic.librarySearch true...
InvariantExtension.lean
/- Copyright (c) 2023 María Inés de Frutos-Fernández. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: María Inés de Frutos-Fernández -/ import Mathlib.Analysis.Normed.Group.Ultra import Mathlib.Analysis.Normed.Unbundled.FiniteExtension import Mathlib.LinearAlgebra.FreeM...
Basic.lean
/- Copyright (c) 2025 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.LinearAlgebra.DFinsupp import Mathlib.LinearAlgebra.TensorProduct.Assoc...
Subgroupoid.lean
/- Copyright (c) 2022 Rémi Bottinelli. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Rémi Bottinelli, Junyan Xu -/ import Mathlib.Algebra.Group.Subgroup.Defs import Mathlib.CategoryTheory.Groupoid.VertexGroup import Mathlib.CategoryTheory.Groupoid.Basic import Mathlib...
Products.lean
/- Copyright (c) 2022 Kim Morrison. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Kim Morrison -/ import Mathlib.Algebra.Category.ModuleCat.Basic import Mathlib.LinearAlgebra.Pi import Mathlib.Algebra.DirectSum.Module import Mathlib.Tactic.CategoryTheory.Elementwise ...
Parallel.lean
/- Copyright (c) 2017 Microsoft Corporation. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Mario Carneiro -/ import Mathlib.Data.WSeq.Relation /-! # Parallel computation Parallel computation of a computable sequence of computations by a diagonal enumeration. The imp...
alt.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 div fintype tupl...
falgebra.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...
UnitaryGroup.lean
/- Copyright (c) 2021 Shing Tak Lam. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Shing Tak Lam -/ import Mathlib.Algebra.Star.Unitary import Mathlib.Data.Matrix.Reflection import Mathlib.LinearAlgebra.GeneralLinearGroup import Mathlib.LinearAlgebra.Matrix.ToLin impo...
GroupWithZero.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.Algebra.Group.Pi.Lemmas import Mathlib.Algebra.GroupWithZero.Units.Equiv import Mathlib.Topology.Algebra.Monoid import Mathlib.Topology.Homeomorph.Le...
Point.lean
/- Copyright (c) 2025 David Kurniadi Angdinata. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: David Kurniadi Angdinata -/ import Mathlib.AlgebraicGeometry.EllipticCurve.Affine.Point import Mathlib.AlgebraicGeometry.EllipticCurve.Projective.Formula /-! # Nonsingular p...
CommRingCat.lean
/- Copyright (c) 2020 Kim Morrison. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Kim Morrison, Andrew Yang -/ import Mathlib.Algebra.Category.Ring.Colimits import Mathlib.Algebra.Category.Ring.Constructions import Mathlib.Algebra.Category.Ring.FilteredColimits import...
Tower.lean
/- Copyright (c) 2020 Kim Morrison. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Kim Morrison, Johan Commelin, Eric Wieser -/ import Mathlib.Algebra.Algebra.Tower import Mathlib.LinearAlgebra.TensorProduct.Associator /-! # The `A`-module structure on `M ⊗[R] N` Whe...
Equivalence.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 -/ import Mathlib.CategoryTheory.Localization.Predicate import Mathlib.CategoryTheory.CatCommSq /-! # Localization functors are preserved through equivalences In `Localization/P...
ConformalGroupoid.lean
/- Copyright (c) 2021 Yourong Zang. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Yourong Zang -/ import Mathlib.Analysis.Calculus.Conformal.NormedSpace import Mathlib.Geometry.Manifold.ChartedSpace /-! # Conformal Groupoid In this file we define the groupoid of con...
cyclotomic.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 div choice fintype tuple finfun bigop prime. From mat...
mod.lean
/- Copyright (c) 2022 Heather Macbeth. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Heather Macbeth -/ import Mathlib.Data.Int.ModEq /-! # Modular arithmetic tests for the `gcongr` tactic -/ variable {a b n x : ℤ} example (ha : a ≡ 2 [ZMOD 4]) : a * b ^ 2 + a ^ 2 ...
OpensLeCover.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.Topology.Sheaves.SheafCondition.Sites /-! # Another version of the sheaf condition. Given a family of open sets `U : ι → Opens X` we can form the subcate...
Linear.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.Shift.CommShift import Mathlib.CategoryTheory.Localization.Linear /-! # Localization of the linearity of the shift functors If `L : C ⥤ D` is a ...
CharZero.lean
/- Copyright (c) 2019 Johannes Hölzl. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Johannes Hölzl, Mario Carneiro -/ import Mathlib.Algebra.GroupWithZero.Units.Lemmas import Mathlib.Data.Rat.Cast.Defs /-! # Casts of rational numbers into characteristic zero fields (...
Equalizers.lean
/- Copyright (c) 2020 Markus Himmel. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Markus Himmel -/ import Mathlib.CategoryTheory.Limits.Shapes.NormalMono.Basic import Mathlib.CategoryTheory.Limits.Shapes.FiniteProducts /-! # Normal mono categories with finite produc...
Basic.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.AlgebraicGeometry.AffineScheme import Mathlib.AlgebraicGeometry.Pullbacks import Mathlib.CategoryTheory.MorphismProperty.Limits import Mathlib.Data.List.TFAE...
NotationClass.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.Init import Lean.Elab.Exception import Batteries.Lean.NameMapAttribute import Batteries.Tactic.Lint /-! # `@[notation_class]` attribute for `@[si...
Map.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, Jeremy Avigad, Yury Kudryashov, Patrick Massot -/ import Mathlib.Order.Filter.AtTopBot.Defs import Mathlib.Order.Filter.Map import Mathlib.Order.Filter.Tendsto import M...
Free.lean
/- Copyright (c) 2022 Yuma Mizuno. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Yuma Mizuno -/ import Mathlib.CategoryTheory.Bicategory.Functor.Pseudofunctor /-! # Free bicategories We define the free bicategory over a quiver. In this bicategory, the 1-morphisms ar...
ssralg.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 div seq. From mathcomp Require Import choice fintype finf...
Adjunction.lean
/- Copyright (c) 2024 Yuma Mizuno. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Yuma Mizuno -/ import Mathlib.CategoryTheory.Bicategory.Kan.HasKan import Mathlib.CategoryTheory.Bicategory.Adjunction.Basic import Mathlib.Tactic.TFAE /-! # Adjunctions as Kan extension...
algnum.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 path. From mathcomp Require Import div choice fintype...
PFun.lean
/- Copyright (c) 2017 Mario Carneiro. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Mario Carneiro, Jeremy Avigad, Simon Hudon -/ import Batteries.WF import Mathlib.Data.Part import Mathlib.Data.Rel import Mathlib.Tactic.GeneralizeProofs /-! # Partial functions This...
Transfer.lean
/- Copyright (c) 2025 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.Group.TransferInstance import Mathlib.CategoryTheory.Preadditive.AdditiveFunctor /-! # Pulling back a preadditive structure along a fully ...
Rat.lean
/- Copyright (c) 2022 Riccardo Brasca. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Riccardo Brasca -/ import Mathlib.NumberTheory.Cyclotomic.Discriminant import Mathlib.RingTheory.Ideal.Norm.AbsNorm import Mathlib.RingTheory.Norm.Transitivity import Mathlib.RingTheo...
Finite.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.Limits.FunctorCategory.Basic import Mathlib.CategoryTheory.Limits.Shapes.FiniteProducts /-! # Functor categories have finite limits...
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 ...
ExtChartAt.lean
/- Copyright (c) 2019 Sébastien Gouëzel. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Sébastien Gouëzel -/ import Mathlib.Analysis.Normed.Module.FiniteDimension import Mathlib.Geometry.Manifold.IsManifold.Basic /-! # Extended charts in smooth manifolds In a `C^n` m...
Symmetric.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.Category.AlgCat.Monoidal import Mathlib.Algebra.Category.ModuleCat.Monoidal.Symmetric /-! # The monoidal structure on `AlgCat` is symmetric. In thi...
Basic.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.Data.Countable.Defs import Mathlib.Data.Fin.Basic import Mathlib.Data.Nat.Find import Mathlib.Data.PNat.Equiv import Mathlib....
abelian.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 choice div fintype finfun bigop finset prime. From ma...
Hom.lean
/- Copyright (c) 2018 Mario Carneiro. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Mario Carneiro -/ import Mathlib.Algebra.Group.Hom.Defs import Mathlib.Algebra.Group.TypeTags.Basic /-! # Transport algebra morphisms between additive and multiplicative types. -/ u...
BigOperators.lean
/- Copyright (c) 2024 Jujian Zhang. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Jujian Zhang -/ import Mathlib.RingTheory.Congruence.BigOperators import Mathlib.RingTheory.TwoSidedIdeal.Basic /-! # Interactions between `∑, ∏` and two sided ideals -/ namespace Tw...
ProductFormula.lean
/- Copyright (c) 2024 Fabrizio Barroero. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Fabrizio Barroero -/ import Mathlib.NumberTheory.NumberField.FinitePlaces import Mathlib.NumberTheory.NumberField.InfinitePlace.Basic /-! # The Product Formula for number fields I...
Coherent.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.Topology.Defs.Sequences import Mathlib.Topology.ContinuousOn /-! # Topology generated by its restrictions to subsets We say that restrictions of th...
Partition.lean
/- Copyright (c) 2020 Bhavik Mehta, Aaron Anderson. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Bhavik Mehta, Aaron Anderson -/ import Mathlib.Algebra.Order.Antidiag.Finsupp import Mathlib.Algebra.Order.Ring.Abs import Mathlib.Combinatorics.Enumerative.Partition imp...
Imo1986Q5.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.NNReal.Basic /-! # IMO 1986 Q5 Find all functions `f`, defined on the non-negative real numbers and taking nonnegative real values, such that:...