path
stringlengths
11
71
content
stringlengths
75
124k
Combinatorics\SetFamily\Compression\Down.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.Data.Finset.Lattice /-! # Down-compressions This file defines down-compression. Down-compressing `𝒜 : Finset (Finset α)` along `a : α` means removing `...
Combinatorics\SetFamily\Compression\UV.lean
/- Copyright (c) 2021 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.Combinatorics.SetFamily.Shadow /-! # UV-compressions This file defines UV-compression. It is an operation on a set family that reduces its ...
Combinatorics\SimpleGraph\Acyclic.lean
/- Copyright (c) 2022 Kyle Miller. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Kyle Miller -/ import Mathlib.Combinatorics.SimpleGraph.Path import Mathlib.Tactic.Linarith /-! # Acyclic graphs and trees This module introduces *acyclic graphs* (a.k.a. *forests*) an...
Combinatorics\SimpleGraph\AdjMatrix.lean
/- Copyright (c) 2020 Aaron Anderson. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Aaron Anderson, Jalex Stark, Kyle Miller, Lu-Ming Zhang -/ import Mathlib.Combinatorics.SimpleGraph.Basic import Mathlib.Combinatorics.SimpleGraph.Connectivity.WalkCounting import Math...
Combinatorics\SimpleGraph\Basic.lean
/- Copyright (c) 2020 Aaron Anderson, Jalex Stark, Kyle Miller. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Aaron Anderson, Jalex Stark, Kyle Miller, Alena Gusakov, Hunter Monroe -/ import Mathlib.Combinatorics.SimpleGraph.Init import Mathlib.Data.Rel import Mathlib...
Combinatorics\SimpleGraph\Circulant.lean
/- Copyright (c) 2024 Iván Renison, Bhavik Mehta. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Iván Renison, Bhavik Mehta -/ import Mathlib.Combinatorics.SimpleGraph.Hasse import Mathlib.Data.Set.Pointwise.Basic /-! # Definition of circulant graphs This file define...
Combinatorics\SimpleGraph\Clique.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.Combinatorics.SimpleGraph.Path import Mathlib.Combinatorics.SimpleGraph.Operations import Mathlib.Data.Finset.Pairwise /-! # G...
Combinatorics\SimpleGraph\Coloring.lean
/- Copyright (c) 2021 Arthur Paulino. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Arthur Paulino, Kyle Miller -/ import Mathlib.Combinatorics.SimpleGraph.Clique import Mathlib.Data.ENat.Lattice import Mathlib.Data.Nat.Lattice import Mathlib.Data.Setoid.Partition imp...
Combinatorics\SimpleGraph\ConcreteColorings.lean
/- Copyright (c) 2023 Iván Renison. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Iván Renison -/ import Mathlib.Combinatorics.SimpleGraph.Coloring import Mathlib.Combinatorics.SimpleGraph.Hasse import Mathlib.Logic.Equiv.Fin /-! # Concrete colorings of common graphs...
Combinatorics\SimpleGraph\Dart.lean
/- Copyright (c) 2020 Kyle Miller. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Kyle Miller -/ import Mathlib.Combinatorics.SimpleGraph.Basic /-! # Darts in graphs A `Dart` or half-edge or bond in a graph is an ordered pair of adjacent vertices, regarded as an orie...
Combinatorics\SimpleGraph\DegreeSum.lean
/- Copyright (c) 2020 Kyle Miller. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Kyle Miller -/ import Mathlib.Algebra.BigOperators.Ring import Mathlib.Combinatorics.SimpleGraph.Dart import Mathlib.Combinatorics.SimpleGraph.Finite import Mathlib.Data.ZMod.Parity /-! ...
Combinatorics\SimpleGraph\Density.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.Combinatorics.SimpleGraph.Basic import Mathlib.Data.Rat.Cast.Order import Mathlib.Orde...
Combinatorics\SimpleGraph\Finite.lean
/- Copyright (c) 2020 Aaron Anderson, Jalex Stark, Kyle Miller. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Aaron Anderson, Jalex Stark, Kyle Miller, Alena Gusakov -/ import Mathlib.Algebra.Order.Ring.Defs import Mathlib.Combinatorics.SimpleGraph.Basic import Mathli...
Combinatorics\SimpleGraph\Finsubgraph.lean
/- Copyright (c) 2022 Joanna Choules. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Joanna Choules -/ import Mathlib.CategoryTheory.CofilteredSystem import Mathlib.Combinatorics.SimpleGraph.Subgraph /-! # Homomorphisms from finite subgraphs This file defines the typ...
Combinatorics\SimpleGraph\Girth.lean
/- Copyright (c) 2023 Yaël Dillies. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Yaël Dillies -/ import Mathlib.Combinatorics.SimpleGraph.Acyclic import Mathlib.Data.ENat.Lattice /-! # Girth of a simple graph This file defines the girth and the extended girth of a ...
Combinatorics\SimpleGraph\Hamiltonian.lean
/- Copyright (c) 2023 Bhavik Mehta, Rishi Mehta, Linus Sommer. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Bhavik Mehta, Rishi Mehta, Linus Sommer -/ import Mathlib.Algebra.Order.Ring.Nat import Mathlib.Combinatorics.SimpleGraph.Path /-! # Hamiltonian Graphs In th...
Combinatorics\SimpleGraph\Hasse.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.Combinatorics.SimpleGraph.Prod import Mathlib.Data.Fin.SuccPred import Mathlib.Data.Nat.SuccPred import Mathlib.Order.SuccPred.Relation import Mathlib.Tact...
Combinatorics\SimpleGraph\IncMatrix.lean
/- Copyright (c) 2021 Gabriel Moise. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Gabriel Moise, Yaël Dillies, Kyle Miller -/ import Mathlib.Combinatorics.SimpleGraph.Finite import Mathlib.Data.Finset.Sym import Mathlib.Data.Matrix.Basic /-! # Incidence matrix of a ...
Combinatorics\SimpleGraph\Init.lean
/- Copyright (c) 2023 Jannis Limperg. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Jannis Limperg -/ import Aesop /-! # SimpleGraph Rule Set This module defines the `SimpleGraph` Aesop rule set which is used by the `aesop_graph` tactic. Aesop rule sets only become...
Combinatorics\SimpleGraph\LapMatrix.lean
/- Copyright (c) 2023 Adrian Wüthrich. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Adrian Wüthrich -/ import Mathlib.Combinatorics.SimpleGraph.AdjMatrix import Mathlib.LinearAlgebra.Matrix.PosDef /-! # Laplacian Matrix This module defines the Laplacian matrix of a...
Combinatorics\SimpleGraph\Maps.lean
/- Copyright (c) 2021 Hunter Monroe. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Hunter Monroe, Kyle Miller -/ import Mathlib.Combinatorics.SimpleGraph.Dart import Mathlib.Data.FunLike.Fintype /-! # Maps between graphs This file defines two functions and three str...
Combinatorics\SimpleGraph\Matching.lean
/- Copyright (c) 2020 Alena Gusakov. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Alena Gusakov, Arthur Paulino, Kyle Miller, Pim Otte -/ import Mathlib.Combinatorics.SimpleGraph.DegreeSum import Mathlib.Combinatorics.SimpleGraph.Connectivity.WalkCounting /-! # Matc...
Combinatorics\SimpleGraph\Metric.lean
/- Copyright (c) 2022 Kyle Miller. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Kyle Miller, Vincent Beffara, Rida Hamadani -/ import Mathlib.Combinatorics.SimpleGraph.Path import Mathlib.Data.ENat.Lattice /-! # Graph metric This module defines the `SimpleGraph.edi...
Combinatorics\SimpleGraph\Operations.lean
/- Copyright (c) 2023 Jeremy Tan. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Jeremy Tan -/ import Mathlib.Combinatorics.SimpleGraph.Finite import Mathlib.Combinatorics.SimpleGraph.Maps /-! # Local graph operations This file defines some single-graph operations th...
Combinatorics\SimpleGraph\Partition.lean
/- Copyright (c) 2021 Arthur Paulino. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Arthur Paulino, Kyle Miller -/ import Mathlib.Combinatorics.SimpleGraph.Coloring /-! # Graph partitions This module provides an interface for dealing with partitions on simple graphs...
Combinatorics\SimpleGraph\Path.lean
/- Copyright (c) 2021 Kyle Miller. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Kyle Miller -/ import Mathlib.Combinatorics.SimpleGraph.Walk import Mathlib.Combinatorics.SimpleGraph.Subgraph /-! # Trail, Path, and Cycle In a simple graph, * A *trail* is a walk wh...
Combinatorics\SimpleGraph\Prod.lean
/- Copyright (c) 2022 George Peter Banyard, Yaël Dillies, Kyle Miller. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: George Peter Banyard, Yaël Dillies, Kyle Miller -/ import Mathlib.Combinatorics.SimpleGraph.Path /-! # Graph products This file defines the box produ...
Combinatorics\SimpleGraph\StronglyRegular.lean
/- Copyright (c) 2021 Alena Gusakov. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Alena Gusakov, Jeremy Tan -/ import Mathlib.Combinatorics.Enumerative.DoubleCounting import Mathlib.Combinatorics.SimpleGraph.AdjMatrix import Mathlib.Combinatorics.SimpleGraph.Basic im...
Combinatorics\SimpleGraph\Subgraph.lean
/- Copyright (c) 2021 Hunter Monroe. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Hunter Monroe, Kyle Miller, Alena Gusakov -/ import Mathlib.Combinatorics.SimpleGraph.Finite import Mathlib.Combinatorics.SimpleGraph.Maps /-! # Subgraphs of a simple graph A subgraph...
Combinatorics\SimpleGraph\Trails.lean
/- Copyright (c) 2022 Kyle Miller. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Kyle Miller -/ import Mathlib.Algebra.Ring.Parity import Mathlib.Combinatorics.SimpleGraph.Path /-! # Trails and Eulerian trails This module contains additional theory about trails, in...
Combinatorics\SimpleGraph\Turan.lean
/- Copyright (c) 2024 Jeremy Tan. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Jeremy Tan -/ import Mathlib.Combinatorics.SimpleGraph.Clique import Mathlib.Order.Partition.Equipartition /-! # Turán's theorem In this file we prove Turán's theorem, the first importan...
Combinatorics\SimpleGraph\Walk.lean
/- Copyright (c) 2021 Kyle Miller. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Kyle Miller -/ import Mathlib.Combinatorics.SimpleGraph.Maps /-! # Walk In a simple graph, a *walk* is a finite sequence of adjacent vertices, and can be thought of equally well as a s...
Combinatorics\SimpleGraph\Connectivity\Subgraph.lean
/- Copyright (c) 2023 Kyle Miller, Rémi Bottinelli. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Kyle Miller, Rémi Bottinelli -/ import Mathlib.Combinatorics.SimpleGraph.Path /-! # Connectivity of subgraphs and induced graphs ## Main definitions * `SimpleGraph.Sub...
Combinatorics\SimpleGraph\Connectivity\WalkCounting.lean
/- Copyright (c) 2021 Kyle Miller. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Kyle Miller -/ import Mathlib.Algebra.BigOperators.Ring.Nat import Mathlib.Combinatorics.SimpleGraph.Path import Mathlib.Combinatorics.SimpleGraph.Subgraph import Mathlib.SetTheory.Cardin...
Combinatorics\SimpleGraph\Ends\Defs.lean
/- Copyright (c) 2022 Anand Rao, Rémi Bottinelli. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Anand Rao, Rémi Bottinelli -/ import Mathlib.CategoryTheory.CofilteredSystem import Mathlib.Combinatorics.SimpleGraph.Path import Mathlib.Data.Finite.Set /-! # Ends This ...
Combinatorics\SimpleGraph\Ends\Properties.lean
/- Copyright (c) 2022 Anand Rao, Rémi Bottinelli. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Anand Rao, Rémi Bottinelli -/ import Mathlib.Combinatorics.SimpleGraph.Ends.Defs import Mathlib.CategoryTheory.CofilteredSystem /-! # Properties of the ends of graphs Thi...
Combinatorics\SimpleGraph\Regularity\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.Order.Chebyshev import Mathlib.Analysis.SpecialFunctions.Pow.Real import Mathlib.Order.Partition.Equipartition /-! # N...
Combinatorics\SimpleGraph\Regularity\Chunk.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.Combinatorics.SimpleGraph.Regularity.Bound import Mathlib.Combinatorics.SimpleGraph.Regularity.Equitabilise import Mathlib.Comb...
Combinatorics\SimpleGraph\Regularity\Energy.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.Module.Defs import Mathlib.Algebra.Order.BigOperators.Group.Finset import Mathlib.Algebra.Order.Ring.Basic import Mathl...
Combinatorics\SimpleGraph\Regularity\Equitabilise.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.Order.Partition.Equipartition /-! # Equitabilising a partition This file allows to blow partitions up into parts of controlle...
Combinatorics\SimpleGraph\Regularity\Increment.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.Combinatorics.SimpleGraph.Regularity.Chunk import Mathlib.Combinatorics.SimpleGraph.Regularity.Energy /-! # Increment partitio...
Combinatorics\SimpleGraph\Regularity\Lemma.lean
/- Copyright (c) 2021 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.Combinatorics.SimpleGraph.Regularity.Increment /-! # Szemerédi's Regularity Lemma In this file, we prove Szemerédi's Regulari...
Combinatorics\SimpleGraph\Regularity\Uniform.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.Ring import Mathlib.Combinatorics.SimpleGraph.Density import Mathlib.Data.Nat.Cast.Order.Field import Math...
Combinatorics\SimpleGraph\Triangle\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 ...
Combinatorics\SimpleGraph\Triangle\Counting.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.Combinatorics.SimpleGraph.Clique import Mathlib.Combinatorics.SimpleGraph.Regularity.Uniform import Mathlib.Data.Real.Basic imp...
Combinatorics\SimpleGraph\Triangle\Removal.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.Combinatorics.SimpleGraph.DegreeSum import Mathlib.Combinatorics.SimpleGraph.Regularity.Lemma import Mathlib.Combinatorics.Simp...
Combinatorics\SimpleGraph\Triangle\Tripartite.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.Combinatorics.SimpleGraph.Triangle.Basic /-! # Construct a tripartite graph from its triangles This file contains the constru...
Combinatorics\Young\SemistandardTableau.lean
/- Copyright (c) 2022 Jake Levinson. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Jake Levinson -/ import Mathlib.Combinatorics.Young.YoungDiagram /-! # Semistandard Young tableaux A semistandard Young tableau is a filling of a Young diagram by natural numbers, suc...
Combinatorics\Young\YoungDiagram.lean
/- Copyright (c) 2022 Jake Levinson. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Jake Levinson -/ import Mathlib.Order.UpperLower.Basic import Mathlib.Data.Finset.Preimage /-! # Young diagrams A Young diagram is a finite set of up-left justified boxes: ```text □□...
Computability\Ackermann.lean
/- Copyright (c) 2022 Violeta Hernández Palacios. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Violeta Hernández Palacios -/ import Mathlib.Algebra.Order.Ring.Basic import Mathlib.Computability.Primrec import Mathlib.Tactic.Ring import Mathlib.Tactic.Linarith /-! # ...
Computability\ContextFreeGrammar.lean
/- Copyright (c) 2023 Martin Dvorak. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Martin Dvorak -/ import Mathlib.Computability.Language /-! # Context-Free Grammars This file contains the definition of a context-free grammar, which is a grammar that has a single no...
Computability\DFA.lean
/- Copyright (c) 2020 Fox Thomson. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Fox Thomson, Chris Wong -/ import Mathlib.Computability.Language import Mathlib.Data.Fintype.Card import Mathlib.Data.List.Indexes import Mathlib.Tactic.NormNum /-! # Deterministic Finit...
Computability\Encoding.lean
/- Copyright (c) 2020 Pim Spelier, Daan van Gent. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Pim Spelier, Daan van Gent -/ import Mathlib.Data.Fintype.Basic import Mathlib.Data.Num.Lemmas import Mathlib.Data.Option.Basic import Mathlib.SetTheory.Cardinal.Basic /-!...
Computability\EpsilonNFA.lean
/- Copyright (c) 2021 Fox Thomson. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Fox Thomson, Yaël Dillies -/ import Mathlib.Computability.NFA /-! # Epsilon Nondeterministic Finite Automata This file contains the definition of an epsilon Nondeterministic Finite Auto...
Computability\Halting.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.Computability.PartrecCode import Mathlib.Data.Set.Subsingleton /-! # Computability theory and the halting problem A universal partial recursive funct...
Computability\Language.lean
/- Copyright (c) 2020 Fox Thomson. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Fox Thomson, Martin Dvorak -/ import Mathlib.Algebra.Order.Kleene import Mathlib.Algebra.Ring.Hom.Defs import Mathlib.Data.List.Join import Mathlib.Data.Set.Lattice import Mathlib.Tactic....
Computability\NFA.lean
/- Copyright (c) 2020 Fox Thomson. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Fox Thomson -/ import Mathlib.Computability.DFA import Mathlib.Data.Fintype.Powerset /-! # Nondeterministic Finite Automata This file contains the definition of a Nondeterministic Finite...
Computability\Partrec.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.Computability.Primrec import Mathlib.Data.Nat.PSub import Mathlib.Data.PFun /-! # The partial recursive functions The partial recursive functions are...
Computability\PartrecCode.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.Computability.Partrec import Mathlib.Data.Option.Basic /-! # Gödel Numbering for Partial Recursive Functions. This file defines `Nat.Partrec.Code`, a...
Computability\Primrec.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.Order.Ring.Nat import Mathlib.Data.List.GetD import Mathlib.Logic.Equiv.List import Mathlib.Logic.Function.Iterate /-! # The primitive recursi...
Computability\Reduce.lean
/- Copyright (c) 2019 Minchao Wu. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Minchao Wu, Mario Carneiro -/ import Mathlib.Computability.Halting /-! # Strong reducibility and degrees. This file defines the notions of computable many-one reduction and one-one reduc...
Computability\RegularExpressions.lean
/- Copyright (c) 2020 Fox Thomson. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Fox Thomson -/ import Mathlib.Computability.Language import Mathlib.Tactic.AdaptationNote /-! # Regular Expressions This file contains the formal definition for regular expressions and ...
Computability\TMComputable.lean
/- Copyright (c) 2020 Pim Spelier, Daan van Gent. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Pim Spelier, Daan van Gent -/ import Mathlib.Algebra.Polynomial.Basic import Mathlib.Algebra.Polynomial.Eval import Mathlib.Computability.Encoding import Mathlib.Computabil...
Computability\TMToPartrec.lean
/- Copyright (c) 2020 Mario Carneiro. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Mario Carneiro -/ import Mathlib.Computability.Halting import Mathlib.Computability.TuringMachine import Mathlib.Data.Num.Lemmas import Mathlib.Tactic.DeriveFintype /-! # Modelling pa...
Computability\TuringMachine.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.Data.Fintype.Option import Mathlib.Data.Fintype.Prod import Mathlib.Data.Fintype.Pi import Mathlib.Data.Vector.Basic import Mathlib.Data.PFun import Ma...
Computability\AkraBazzi\AkraBazzi.lean
/- Copyright (c) 2023 Frédéric Dupuis. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Frédéric Dupuis -/ import Mathlib.Computability.AkraBazzi.GrowsPolynomially import Mathlib.Analysis.Calculus.Deriv.Inv import Mathlib.Analysis.SpecialFunctions.Pow.Deriv /-! # Divid...
Computability\AkraBazzi\GrowsPolynomially.lean
/- Copyright (c) 2023 Frédéric Dupuis. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Frédéric Dupuis -/ import Mathlib.Analysis.Asymptotics.AsymptoticEquivalent import Mathlib.Analysis.SpecialFunctions.Pow.Real import Mathlib.Algebra.Order.ToIntervalMod import Mathli...
Condensed\Basic.lean
/- Copyright (c) 2023 Adam Topaz. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Adam Topaz -/ import Mathlib.CategoryTheory.Sites.Sheaf import Mathlib.Topology.Category.CompHaus.EffectiveEpi /-! # Condensed Objects This file defines the category of condensed objec...
Condensed\Epi.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.ConcreteCategory.EpiMono import Mathlib.CategoryTheory.Sites.Coherent.LocallySurjective import Mathlib.CategoryTheory.Sites.EpiMono ...
Condensed\Equivalence.lean
/- Copyright (c) 2023 Adam Topaz. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Adam Topaz, Nick Kuhn, Dagur Asgeirsson -/ import Mathlib.Topology.Category.Profinite.EffectiveEpi import Mathlib.Topology.Category.Stonean.EffectiveEpi import Mathlib.Condensed.Basic impo...
Condensed\Explicit.lean
/- Copyright (c) 2023 Dagur Asgeirsson. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Dagur Asgeirsson, Riccardo Brasca, Filippo A. E. Nuccio -/ import Mathlib.Condensed.Module import Mathlib.Condensed.Equivalence /-! # The explicit sheaf condition for condensed sets...
Condensed\Functors.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.Limits.Preserves.Ulift import Mathlib.CategoryTheory.Sites.Coherent.CoherentSheaves import Mathlib.CategoryTheory.Sites.Whiskering i...
Condensed\Limits.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.Condensed.Module /-! # Limits in categories of condensed objects This file adds some instances for limits in condensed sets and condensed module...
Condensed\Module.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.Algebra.Category.ModuleCat.Abelian import Mathlib.Algebra.Category.ModuleCat.Colimits import Mathlib.Algebra.Category.ModuleCat.FilteredColimits im...
Condensed\Solid.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.Functor.KanExtension.Pointwise import Mathlib.Condensed.Functors import Mathlib.Condensed.Limits /-! # Solid modules This file co...
Condensed\TopCatAdjunction.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.Condensed.TopComparison import Mathlib.Topology.Category.CompactlyGenerated /-! # The adjunction between condensed sets and topological spaces Th...
Condensed\TopComparison.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.Limits.Preserves.Opposites import Mathlib.Topology.Category.TopCat.Yoneda import Mathlib.Condensed.Explicit /-! # The functor from...
Condensed\Discrete\Basic.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.ConstantSheaf import Mathlib.CategoryTheory.Sites.Equivalence import Mathlib.Condensed.Basic import Mathlib.Condensed.Light.Ba...
Condensed\Light\Basic.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.Sheaf import Mathlib.Topology.Category.LightProfinite.EffectiveEpi /-! # Light condensed objects This file defines the categ...
Condensed\Light\Epi.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.ConcreteCategory.EpiMono import Mathlib.CategoryTheory.Sites.EpiMono import Mathlib.CategoryTheory.Sites.Coherent.LocallySurjective ...
Condensed\Light\Explicit.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.Coherent.SheafComparison import Mathlib.Condensed.Light.Module /-! # The explicit sheaf condition for light condensed sets W...
Condensed\Light\Functors.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.Coherent.CoherentSheaves import Mathlib.Condensed.Light.Basic /-! # Functors from categories of topological spaces to light c...
Condensed\Light\Module.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.Algebra.Category.ModuleCat.Abelian import Mathlib.Algebra.Category.ModuleCat.Adjunctions import Mathlib.Algebra.Category.ModuleCat.Colimits import ...
Condensed\Light\TopCatAdjunction.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.Condensed.Light.TopComparison import Mathlib.Topology.Category.Sequential import Mathlib.Topology.Category.LightProfinite.Sequence /-! # The adjun...
Condensed\Light\TopComparison.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.Condensed.Light.Explicit import Mathlib.Condensed.TopComparison /-! # The functor from topological spaces to light condensed sets We define the ...
Control\Applicative.lean
/- Copyright (c) 2017 Simon Hudon. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Simon Hudon -/ import Mathlib.Algebra.Group.Defs import Mathlib.Control.Functor /-! # `applicative` instances This file provides `Applicative` instances for concrete functors: * `id` * ...
Control\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 -/ import Mathlib.Control.Combinators import Mathlib.Logic.Function.Defs import Mathlib.Tactic.CasesM import Mathlib.Tactic.Attr.Core /-! Extends the theory on functors...
Control\Bifunctor.lean
/- Copyright (c) 2018 Simon Hudon. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Simon Hudon -/ import Mathlib.Control.Functor import Mathlib.Tactic.Common import Batteries.Data.Sum.Basic /-! # Functors with two arguments This file defines bifunctors. A bifunctor i...
Control\Combinators.lean
/- Copyright (c) 2016 Microsoft Corporation. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Jeremy Avigad, Leonardo de Moura -/ /-! # Monad combinators, as in Haskell's Control.Monad. -/ universe u v w def joinM {m : Type u → Type u} [Monad m] {α : Type u} (a : m (m...
Control\EquivFunctor.lean
/- Copyright (c) 2020 Scott Morrison. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Scott Morrison -/ import Mathlib.Logic.Equiv.Defs import Mathlib.Tactic.Convert /-! # Functions functorial with respect to equivalences An `EquivFunctor` is a function from `Type → T...
Control\Fix.lean
/- Copyright (c) 2020 Simon Hudon. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Simon Hudon -/ import Mathlib.Data.Part import Mathlib.Data.Nat.Find import Mathlib.Data.Nat.Upto import Mathlib.Data.Stream.Defs import Mathlib.Tactic.Common /-! # Fixed point This mod...
Control\Fold.lean
/- Copyright (c) 2018 Simon Hudon. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Simon Hudon, Sean Leather -/ import Mathlib.Algebra.Group.Opposite import Mathlib.Algebra.FreeMonoid.Basic import Mathlib.Control.Traversable.Instances import Mathlib.Control.Traversable....
Control\Functor.lean
/- Copyright (c) 2017 Simon Hudon. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Simon Hudon -/ import Mathlib.Control.Basic import Mathlib.Init.Set import Mathlib.Tactic.TypeStar import Batteries.Tactic.Lint /-! # Functors This module provides additional lemmas, de...
Control\Lawful.lean
/- Copyright (c) 2017 Microsoft Corporation. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Sebastian Ullrich -/ import Mathlib.Tactic.Basic /-! # Functor Laws, applicative laws, and monad Laws -/ universe u v namespace StateT section variable {σ : Type u} variab...
Control\LawfulFix.lean
/- Copyright (c) 2020 Simon Hudon. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Simon Hudon -/ import Mathlib.Data.Stream.Init import Mathlib.Tactic.ApplyFun import Mathlib.Control.Fix import Mathlib.Order.OmegaCompletePartialOrder /-! # Lawful fixed point operators...
Control\Random.lean
/- Copyright (c) 2022 Henrik Böving. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Henrik Böving -/ import Mathlib.Control.ULiftable import Mathlib.Order.Fin.Basic /-! # Rand Monad and Random Class This module provides tools for formulating computations guided by ra...
Control\ULift.lean
/- Copyright (c) 2018 Scott Morrison. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Scott Morrison, Jannis Limperg -/ /-! # Monadic instances for `ULift` and `PLift` In this file we define `Monad` and `IsLawfulMonad` instances on `PLift` and `ULift`. -/ universe u ...
Control\ULiftable.lean
/- Copyright (c) 2020 Simon Hudon. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Simon Hudon -/ import Mathlib.Control.Monad.Basic import Mathlib.Control.Monad.Cont import Mathlib.Control.Monad.Writer import Mathlib.Logic.Equiv.Basic import Mathlib.Logic.Equiv.Functor...
Control\Bitraversable\Basic.lean
/- Copyright (c) 2018 Simon Hudon. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Simon Hudon -/ import Mathlib.Control.Bifunctor import Mathlib.Control.Traversable.Basic /-! # Bitraversable type class Type class for traversing bifunctors. Simple examples of `Bitrav...
Control\Bitraversable\Instances.lean
/- Copyright (c) 2019 Simon Hudon. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Simon Hudon -/ import Mathlib.Control.Bitraversable.Lemmas import Mathlib.Control.Traversable.Lemmas /-! # Bitraversable instances This file provides `Bitraversable` instances for concr...