path
stringlengths
11
71
content
stringlengths
75
124k
Topology\UniformSpace\AbsoluteValue.lean
/- Copyright (c) 2019 Patrick Massot. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Patrick Massot -/ import Mathlib.Algebra.Order.AbsoluteValue import Mathlib.Algebra.Order.Field.Basic import Mathlib.Topology.UniformSpace.Basic /-! # Uniform structure induced by an ...
Topology\UniformSpace\AbstractCompletion.lean
/- Copyright (c) 2019 Patrick Massot. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Patrick Massot -/ import Mathlib.Topology.UniformSpace.UniformEmbedding import Mathlib.Topology.UniformSpace.Equiv /-! # Abstract theory of Hausdorff completions of uniform spaces Th...
Topology\UniformSpace\Ascoli.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.Topology.UniformSpace.CompactConvergence import Mathlib.Topology.UniformSpace.Equicontinuity import Mathlib.Topology.UniformSpace.Equiv /-! # Asco...
Topology\UniformSpace\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, Patrick Massot -/ import Mathlib.Order.Filter.SmallSets import Mathlib.Tactic.Monotonicity import Mathlib.Topology.Compactness.Compact import Mathlib.To...
Topology\UniformSpace\Cauchy.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.Topology.Algebra.Constructions import Mathlib.Topology.Bases import Mathlib.Topology.UniformSpace.Basic /-! # Theory of Cauchy filters...
Topology\UniformSpace\Compact.lean
/- Copyright (c) 2020 Patrick Massot. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Patrick Massot, Yury Kudryashov -/ import Mathlib.Topology.UniformSpace.UniformConvergence import Mathlib.Topology.UniformSpace.Equicontinuity import Mathlib.Topology.Separation import...
Topology\UniformSpace\CompactConvergence.lean
/- Copyright (c) 2021 Oliver Nash. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Oliver Nash, Yury Kudryashov -/ import Mathlib.Topology.CompactOpen import Mathlib.Topology.LocallyFinite import Mathlib.Topology.Maps.Proper.Basic import Mathlib.Topology.UniformSpace.Un...
Topology\UniformSpace\CompareReals.lean
/- Copyright (c) 2019 Patrick Massot. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Patrick Massot -/ import Mathlib.Topology.UniformSpace.AbsoluteValue import Mathlib.Topology.Instances.Real import Mathlib.Topology.Instances.Rat import Mathlib.Topology.UniformSpace.C...
Topology\UniformSpace\CompleteSeparated.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.Topology.UniformSpace.UniformEmbedding /-! # Theory of complete separated uniform spaces. This file is for elementary lemmas that depend on bot...
Topology\UniformSpace\Completion.lean
/- Copyright (c) 2018 Patrick Massot. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Patrick Massot, Johannes Hölzl -/ import Mathlib.Topology.UniformSpace.AbstractCompletion /-! # Hausdorff completions of uniform spaces The goal is to construct a left-adjoint to the...
Topology\UniformSpace\Equicontinuity.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.Topology.UniformSpace.UniformConvergenceTopology /-! # Equicontinuity of a family of functions Let `X` be a topological space and `α` a `UniformS...
Topology\UniformSpace\Equiv.lean
/- Copyright (c) 2022 Anatole Dedecker. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Johannes Hölzl, Patrick Massot, Sébastien Gouëzel, Zhouhang Zhou, Reid Barton, Anatole Dedecker -/ import Mathlib.Topology.Homeomorph import Mathlib.Topology.UniformSpace.UniformEmbe...
Topology\UniformSpace\Matrix.lean
/- Copyright (c) 2022 Eric Wieser. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Eric Wieser, Heather Macbeth -/ import Mathlib.Topology.Algebra.UniformGroup import Mathlib.Topology.UniformSpace.Pi import Mathlib.Data.Matrix.Basic /-! # Uniform space structure on mat...
Topology\UniformSpace\Pi.lean
/- Copyright (c) 2019 Patrick Massot. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Patrick Massot -/ import Mathlib.Topology.UniformSpace.UniformEmbedding /-! # Indexed product of uniform spaces -/ noncomputable section open scoped Uniformity Topology open Filter...
Topology\UniformSpace\Separation.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, Patrick Massot, Yury Kudryashov -/ import Mathlib.Tactic.ApplyFun import Mathlib.Topology.UniformSpace.Basic import Mathlib.Topology.Separation /-! # Hausdorff propert...
Topology\UniformSpace\UniformConvergence.lean
/- Copyright (c) 2020 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.Topology.Separation import Mathlib.Topology.UniformSpace.Basic import Mathlib.Topology.UniformSpace.Cauchy /-! # Uniform convergence A sequence...
Topology\UniformSpace\UniformConvergenceTopology.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.Topology.UniformSpace.UniformConvergence import Mathlib.Topology.UniformSpace.Pi import Mathlib.Topology.UniformSpace.Equiv import Mathlib.Topology...
Topology\UniformSpace\UniformEmbedding.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, Sébastien Gouëzel, Patrick Massot -/ import Mathlib.Topology.UniformSpace.Cauchy import Mathlib.Topology.UniformSpace.Separation import Mathlib.Topology.DenseEmbedding ...
Topology\VectorBundle\Basic.lean
/- Copyright (c) 2020 Nicolò Cavalleri. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Nicolò Cavalleri, Sebastien Gouezel, Heather Macbeth, Patrick Massot, Floris van Doorn -/ import Mathlib.Analysis.Normed.Operator.BoundedLinearMaps import Mathlib.Topology.FiberBundl...
Topology\VectorBundle\Constructions.lean
/- Copyright (c) 2022 Nicolò Cavalleri. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Nicolò Cavalleri, Sébastien Gouëzel, Heather Macbeth, Floris van Doorn -/ import Mathlib.Topology.FiberBundle.Constructions import Mathlib.Topology.VectorBundle.Basic import Mathlib....
Topology\VectorBundle\Hom.lean
/- Copyright (c) 2022 Heather Macbeth. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Heather Macbeth, Floris van Doorn -/ import Mathlib.Topology.VectorBundle.Basic /-! # The vector bundle of continuous (semi)linear maps We define the (topological) vector bundle of ...
Util\AddRelatedDecl.lean
/- Copyright (c) 2023 Scott Morrison. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Scott Morrison, Floris van Doorn -/ import Lean.Elab.DeclarationRange import Lean.Elab.Term /-! # `addRelatedDecl` -/ open Lean Meta Elab namespace Mathlib.Tactic /-- A helper fun...
Util\AssertExists.lean
/- Copyright (c) 2022 Scott Morrison. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Patrick Massot, Scott Morrison -/ import Lean.Elab.Command /-! # User commands for assert the (non-)existence of declaration or instances. These commands are used to enforce the inde...
Util\AssertNoSorry.lean
/- Copyright (c) 2023 David Renshaw. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: David Renshaw -/ import Lean.Util.CollectAxioms import Lean.Elab.Command /-! # Defines the `assert_no_sorry` command. Throws an error if the given identifier uses sorryAx. -/ open L...
Util\AtomM.lean
/- Copyright (c) 2023 Mario Carneiro. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Mario Carneiro -/ import Lean.Meta.Tactic.Simp.Types /-! # A monad for tracking and deduplicating atoms This monad is used by tactics like `ring` and `abel` to keep uninterpreted ato...
Util\CompileInductive.lean
/- Copyright (c) 2023 Parth Shastri. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Parth Shastri, Gabriel Ebner, Mario Carneiro -/ import Lean.Elab.Command import Lean.Compiler.CSimpAttr import Lean.Util.FoldConsts /-! # Define the `compile_inductive%` command. The ...
Util\CountHeartbeats.lean
/- Copyright (c) 2023 Scott Morrison. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Scott Morrison -/ import Lean.Util.Heartbeats import Lean.Meta.Tactic.TryThis /-! Defines a command wrapper that prints the number of heartbeats used in the enclosed command. For exa...
Util\Delaborators.lean
/- Copyright (c) 2023 Kyle Miller. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Kyle Miller -/ import Lean.PrettyPrinter.Delaborator.Builtins /-! # Pi type notation Provides the `Π x : α, β x` notation as an alternative to Lean 4's built-in `(x : α) → β x` notation...
Util\DischargerAsTactic.lean
/- Copyright (c) 2023 Alex J. Best. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Alex J. Best -/ import Lean.Elab.Tactic.Basic import Lean.Meta.Tactic.Simp.Rewrite import Batteries.Tactic.Exact /-! ## Dischargers for `simp` to tactics This file defines a wrapper fo...
Util\Export.lean
/- Copyright (c) 2021 Microsoft Corporation. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Mario Carneiro -/ import Lean.CoreM import Lean.Util.FoldConsts /-! A rudimentary export format, adapted from <https://github.com/leanprover-community/lean/blob/master/doc/expo...
Util\FormatTable.lean
/- Copyright (c) 2024 Bolton Bailey. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Bolton Bailey -/ import Mathlib.Data.String.Defs /-! # Format Table This file provides a simple function for formatting a two-dimensional array of `String`s into a markdown-compliant ...
Util\GetAllModules.lean
/- Copyright (c) 2024 Damiano Testa. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Mario Carneiro, Kim Morrison, Damiano Testa -/ import Lean.Util.Path /-! # Utility functions for finding all `.lean` files or modules in a project. TODO: `getLeanLibs` contains a har...
Util\IncludeStr.lean
/- Copyright (c) 2021 Henrik Böving. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Henrik Böving, Xubai Wang -/ import Lean /-! # Defines the `include_str` macro. -/ namespace Mathlib.Util /-- A term macro that includes the content of a file, as a string. -/ elab (...
Util\LongNames.lean
/- Copyright (c) 2023 Scott Morrison. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Scott Morrison -/ import Mathlib.Lean.Name import Mathlib.Lean.Expr.Basic /-! # Commands `#long_names` and `#long_instances` For finding declarations with excessively long names. -/ ...
Util\MemoFix.lean
/- Copyright (c) 2022 Gabriel Ebner. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Gabriel Ebner, E.W.Ayers -/ import Lean.Data.HashMap /-! # Fixpoint function with memoisation -/ universe u v open ShareCommon private unsafe abbrev ObjectMap := @Lean.HashMap Objec...
Util\Qq.lean
/- Copyright (c) 2023 Scott Morrison. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Scott Morrison, Alex J. Best -/ import Qq /-! # Extra `Qq` helpers This file contains some additional functions for using the quote4 library more conveniently. -/ open Lean Elab Tac...
Util\SleepHeartbeats.lean
/- Copyright (c) 2023 Alex J. Best. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Alex J. Best -/ import Lean.Elab.Tactic.Basic /-! # Defines `sleep_heartbeats` tactic. This is useful for testing / debugging long running commands or elaboration in a somewhat precise...
Util\Superscript.lean
/- Copyright (c) 2023 Mario Carneiro. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Mario Carneiro -/ import Batteries.Tactic.Lint /-! # A parser for superscripts and subscripts This is intended for use in local notations. Basic usage is: ``` local syntax:arg term:m...
Util\SynthesizeUsing.lean
/- Copyright (c) 2022 Scott Morrison. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Scott Morrison -/ import Lean.Elab.Tactic.Basic import Qq /-! # `SynthesizeUsing` This is a slight simplification of the `solve_aux` tactic in Lean3. -/ open Lean Elab Tactic Meta Q...
Util\Tactic.lean
/- Copyright (c) 2022 Arthur Paulino. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Arthur Paulino, Jannis Limperg -/ import Lean.MetavarContext /-! # Miscellaneous helper functions for tactics. [TODO] Ideally we would find good homes for everything in this file, ev...
Util\TermBeta.lean
/- Copyright (c) 2023 Kyle Miller. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Kyle Miller -/ import Lean.Elab.Term /-! `beta%` term elaborator The `beta% f x1 ... xn` term elaborator elaborates the expression `f x1 ... xn` and then does one level of beta reductio...
Util\Time.lean
/- Copyright (c) 2021 Mario Carneiro. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Mario Carneiro -/ import Lean /-! # Defines `#time` command. Time the elaboration of a command, and print the result (in milliseconds). -/ section open Lean Elab Command syntax (na...
Util\WhatsNew.lean
/- Copyright (c) 2021 Microsoft Corporation. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Gabriel Ebner -/ import Lean /-! Defines a command wrapper that prints the changes the command makes to the environment. ``` whatsnew in theorem foo : 42 = 6 * 7 := rfl ``` -/...
Util\WithWeakNamespace.lean
/- Copyright (c) 2021 Microsoft Corporation. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Mario Carneiro, Daniel Selsam, Gabriel Ebner -/ import Lean /-! # Defines `with_weak_namespace` command. Changes the current namespace without causing scoped things to go out...