blob_id stringlengths 40 40 | directory_id stringlengths 40 40 | path stringlengths 7 139 | content_id stringlengths 40 40 | detected_licenses listlengths 0 16 | license_type stringclasses 2
values | repo_name stringlengths 7 55 | snapshot_id stringlengths 40 40 | revision_id stringlengths 40 40 | branch_name stringclasses 6
values | visit_date int64 1,471B 1,694B | revision_date int64 1,378B 1,694B | committer_date int64 1,378B 1,694B | github_id float64 1.33M 604M ⌀ | star_events_count int64 0 43.5k | fork_events_count int64 0 1.5k | gha_license_id stringclasses 6
values | gha_event_created_at int64 1,402B 1,695B ⌀ | gha_created_at int64 1,359B 1,637B ⌀ | gha_language stringclasses 19
values | src_encoding stringclasses 2
values | language stringclasses 1
value | is_vendor bool 1
class | is_generated bool 1
class | length_bytes int64 3 6.4M | extension stringclasses 4
values | content stringlengths 3 6.12M |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
332e543fb80f9d8d20ba2132ffd9f52074791586 | 1fbca480c1574e809ae95a3eda58188ff42a5e41 | /src/util/meta/tactic/monotonicity/predicate.lean | 021844f693c0162e943d46d025dbd3d2f3c878a0 | [] | no_license | unitb/lean-lib | 560eea0acf02b1fd4bcaac9986d3d7f1a4290e7e | 439b80e606b4ebe4909a08b1d77f4f5c0ee3dee9 | refs/heads/master | 1,610,706,025,400 | 1,570,144,245,000 | 1,570,144,245,000 | 99,579,229 | 5 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 4,044 | lean |
import util.logic
import util.meta.tactic.basic
import tactic.monotonicity
variables {a b c p : Prop}
namespace tactic.interactive
open lean lean.parser interactive
open interactive.types -- expr
open tactic
local postfix `?`:9001 := optional
local postfix *:9001 := many
meta def ac_mono1 := ac_mono rep_arity.o... |
cecf27e82f8e32315429bf33f467a830b19a6ba4 | 22e97a5d648fc451e25a06c668dc03ac7ed7bc25 | /src/topology/category/Top/opens.lean | c68bf3884bb4ca80a3d429c25fad5b5483ecf845 | [
"Apache-2.0"
] | permissive | keeferrowan/mathlib | f2818da875dbc7780830d09bd4c526b0764a4e50 | aad2dfc40e8e6a7e258287a7c1580318e865817e | refs/heads/master | 1,661,736,426,952 | 1,590,438,032,000 | 1,590,438,032,000 | 266,892,663 | 0 | 0 | Apache-2.0 | 1,590,445,835,000 | 1,590,445,835,000 | null | UTF-8 | Lean | false | false | 3,847 | lean | /-
Copyright (c) 2019 Scott Morrison. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Scott Morrison
-/
import topology.category.Top.basic
import category_theory.eq_to_hom
open category_theory
open topological_space
open opposite
universe u
namespace topological_spac... |
7f2bfaa1510029a2011748c704e0c4040ee4ca25 | 9dc8cecdf3c4634764a18254e94d43da07142918 | /src/measure_theory/integral/set_to_l1.lean | 30d3fb6be1626ff393a5ba61ee8170e9a2111a13 | [
"Apache-2.0"
] | permissive | jcommelin/mathlib | d8456447c36c176e14d96d9e76f39841f69d2d9b | ee8279351a2e434c2852345c51b728d22af5a156 | refs/heads/master | 1,664,782,136,488 | 1,663,638,983,000 | 1,663,638,983,000 | 132,563,656 | 0 | 0 | Apache-2.0 | 1,663,599,929,000 | 1,525,760,539,000 | Lean | UTF-8 | Lean | false | false | 87,111 | lean | /-
Copyright (c) 2021 Rémy Degenne. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Zhouhang Zhou, Yury Kudryashov, Sébastien Gouëzel, Rémy Degenne
-/
import measure_theory.function.simple_func_dense_lp
/-!
# Extension of a linear function from indicators to L1
Let `T... |
2cc47907a13f9b5318388f202569a1f01f23750a | 4d2583807a5ac6caaffd3d7a5f646d61ca85d532 | /src/algebraic_geometry/Spec.lean | f0d50623b951959894009dc71004b3c5511d3aa4 | [
"Apache-2.0"
] | permissive | AntoineChambert-Loir/mathlib | 64aabb896129885f12296a799818061bc90da1ff | 07be904260ab6e36a5769680b6012f03a4727134 | refs/heads/master | 1,693,187,631,771 | 1,636,719,886,000 | 1,636,719,886,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 9,659 | lean | /-
Copyright (c) 2020 Scott Morrison. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Scott Morrison, Justus Springer
-/
import algebraic_geometry.locally_ringed_space
import algebraic_geometry.structure_sheaf
import data.equiv.transfer_instance
/-!
# $Spec$ as a funct... |
885d1cbfdd127a947ba841242ee6a473390a354e | bbecf0f1968d1fba4124103e4f6b55251d08e9c4 | /src/topology/continuous_on.lean | 43d4180f4e978d668312577028e1c3f2829b10e4 | [
"Apache-2.0"
] | permissive | waynemunro/mathlib | e3fd4ff49f4cb43d4a8ded59d17be407bc5ee552 | 065a70810b5480d584033f7bbf8e0409480c2118 | refs/heads/master | 1,693,417,182,397 | 1,634,644,781,000 | 1,634,644,781,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 50,023 | lean | /-
Copyright (c) 2019 Reid Barton. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Sébastien Gouëzel
-/
import topology.constructions
/-!
# Neighborhoods and continuity relative to a subset
This file defines relative versions
* `nhds_within` of `nhds`
* `co... |
7c26c49d70c8b9d7d8826134d9a198ca905e2341 | 8cae430f0a71442d02dbb1cbb14073b31048e4b0 | /src/category_theory/limits/yoneda.lean | a864a689107535096711595449c722b533518e9f | [
"Apache-2.0"
] | permissive | leanprover-community/mathlib | 56a2cadd17ac88caf4ece0a775932fa26327ba0e | 442a83d738cb208d3600056c489be16900ba701d | refs/heads/master | 1,693,584,102,358 | 1,693,471,902,000 | 1,693,471,902,000 | 97,922,418 | 1,595 | 352 | Apache-2.0 | 1,694,693,445,000 | 1,500,624,130,000 | Lean | UTF-8 | Lean | false | false | 5,609 | lean | /-
Copyright (c) 2020 Scott Morrison. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Scott Morrison, Bhavik Mehta
-/
import category_theory.limits.functor_category
import tactic.assert_exists
/-!
# Limit properties relating to the (co)yoneda embedding.
> THIS FILE IS... |
13d2cd439fa5b85f270daab757c8ee535ac8d9b9 | 5ae26df177f810c5006841e9c73dc56e01b978d7 | /src/order/filter/lift.lean | 9d12ef6933c1ee44be9965f45ad27ce26d08f11a | [
"Apache-2.0"
] | permissive | ChrisHughes24/mathlib | 98322577c460bc6b1fe5c21f42ce33ad1c3e5558 | a2a867e827c2a6702beb9efc2b9282bd801d5f9a | refs/heads/master | 1,583,848,251,477 | 1,565,164,247,000 | 1,565,164,247,000 | 129,409,993 | 0 | 1 | Apache-2.0 | 1,565,164,817,000 | 1,523,628,059,000 | Lean | UTF-8 | Lean | false | false | 18,037 | 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
Lift filters along filter and set functions.
-/
import order.filter.basic
open lattice set
local attribute [instance] classical.prop_decidable
namespace filter
varia... |
91ea40267e388d280df728fb52408b1aaa5cff82 | efa51dd2edbbbbd6c34bd0ce436415eb405832e7 | /20161026_ICTAC_Tutorial/ex11.lean | deece8d16810f91c9aa8b8254213deeec5a2e7e1 | [
"Apache-2.0"
] | permissive | leanprover/presentations | dd031a05bcb12c8855676c77e52ed84246bd889a | 3ce2d132d299409f1de269fa8e95afa1333d644e | refs/heads/master | 1,688,703,388,796 | 1,686,838,383,000 | 1,687,465,742,000 | 29,750,158 | 12 | 9 | Apache-2.0 | 1,540,211,670,000 | 1,422,042,683,000 | Lean | UTF-8 | Lean | false | false | 65 | lean | /- Alpha equivalence -/
check λ x : nat, x
check λ y : nat, y
|
6dfc7d928657c00f616e24c72da5bdb684b95a7f | 4727251e0cd73359b15b664c3170e5d754078599 | /src/data/list/infix.lean | 77d71611c4aecdbdcbe00e351c917fda2442dcda | [
"Apache-2.0"
] | permissive | Vierkantor/mathlib | 0ea59ac32a3a43c93c44d70f441c4ee810ccceca | 83bc3b9ce9b13910b57bda6b56222495ebd31c2f | refs/heads/master | 1,658,323,012,449 | 1,652,256,003,000 | 1,652,256,003,000 | 209,296,341 | 0 | 1 | Apache-2.0 | 1,568,807,655,000 | 1,568,807,655,000 | null | UTF-8 | Lean | false | false | 20,831 | lean | /-
Copyright (c) 2017 Mario Carneiro. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Mario Carneiro
-/
import data.list.basic
/-!
# Prefixes, subfixes, infixes
This file proves properties about
* `list.prefix`: `l₁` is a prefix of `l₂` if `l₂` starts with `l₁`.
* `li... |
d6be979e8cdaa988320fa4ac2a88b3410ddcd751 | 649957717d58c43b5d8d200da34bf374293fe739 | /src/category_theory/limits/types.lean | fb66846d5ccd456af3bc56c743819b235e6ef1bd | [
"Apache-2.0"
] | permissive | Vtec234/mathlib | b50c7b21edea438df7497e5ed6a45f61527f0370 | fb1848bbbfce46152f58e219dc0712f3289d2b20 | refs/heads/master | 1,592,463,095,113 | 1,562,737,749,000 | 1,562,737,749,000 | 196,202,858 | 0 | 0 | Apache-2.0 | 1,562,762,338,000 | 1,562,762,337,000 | null | UTF-8 | Lean | false | false | 3,712 | lean | -- Copyright (c) 2018 Scott Morrison. All rights reserved.
-- Released under Apache 2.0 license as described in the file LICENSE.
-- Authors: Scott Morrison, Reid Barton
import category_theory.limits.limits
universes v u -- declare the `v`'s first; see `category_theory.category` for an explanation
open category_theo... |
2cdd0f0a5c8c14057178d463811221aeaa316a4b | 4727251e0cd73359b15b664c3170e5d754078599 | /src/analysis/normed_space/continuous_affine_map.lean | 1ef5420663c8a82703ac391daffee55c6bd287ae | [
"Apache-2.0"
] | permissive | Vierkantor/mathlib | 0ea59ac32a3a43c93c44d70f441c4ee810ccceca | 83bc3b9ce9b13910b57bda6b56222495ebd31c2f | refs/heads/master | 1,658,323,012,449 | 1,652,256,003,000 | 1,652,256,003,000 | 209,296,341 | 0 | 1 | Apache-2.0 | 1,568,807,655,000 | 1,568,807,655,000 | null | UTF-8 | Lean | false | false | 9,531 | 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 topology.algebra.continuous_affine_map
import analysis.normed_space.add_torsor
import analysis.normed_space.affine_isometry
import analysis.normed_space.operator_nor... |
cf600f530b51740635535adb6004ef5c280568ab | 2a8b9c9fb34993732e24b7934050207f28675948 | /lua/tests/fixtures/example-lean3-project/src/foo.lean | 90c2ea37013a56cb92497d3e3966c505269ffb59 | [
"MIT"
] | permissive | jcommelin/lean.nvim | 471b8c2c16f47e76dfc36dc85d1e9cf6938b58e6 | b10a525f65cd2fda1c2e629d4b68f241caf67d64 | refs/heads/main | 1,691,387,304,436 | 1,633,447,198,000 | 1,633,447,198,000 | 413,898,327 | 0 | 0 | MIT | 1,633,451,737,000 | 1,633,451,737,000 | null | UTF-8 | Lean | false | false | 20 | lean | def test : nat := 5
|
f051809766dbb0c06c68779e792ee9e04cbbfe68 | 94e33a31faa76775069b071adea97e86e218a8ee | /src/category_theory/glue_data.lean | bd2220c9a6b922620d39181cc6370861422dba79 | [
"Apache-2.0"
] | permissive | urkud/mathlib | eab80095e1b9f1513bfb7f25b4fa82fa4fd02989 | 6379d39e6b5b279df9715f8011369a301b634e41 | refs/heads/master | 1,658,425,342,662 | 1,658,078,703,000 | 1,658,078,703,000 | 186,910,338 | 0 | 0 | Apache-2.0 | 1,568,512,083,000 | 1,557,958,709,000 | Lean | UTF-8 | Lean | false | false | 12,563 | lean | /-
Copyright (c) 2021 Andrew Yang. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Andrew Yang
-/
import tactic.elementwise
import category_theory.limits.shapes.multiequalizer
import category_theory.limits.constructions.epi_mono
import category_theory.limits.preserves.l... |
39cc8756d73caf778849b32cef64d1f48916217d | 624f6f2ae8b3b1adc5f8f67a365c51d5126be45a | /tests/lean/run/new_frontend2.lean | f50d257c2e37f0429455ce56522bac871604fc65 | [
"Apache-2.0"
] | permissive | mhuisi/lean4 | 28d35a4febc2e251c7f05492e13f3b05d6f9b7af | dda44bc47f3e5d024508060dac2bcb59fd12e4c0 | refs/heads/master | 1,621,225,489,283 | 1,585,142,689,000 | 1,585,142,689,000 | 250,590,438 | 0 | 2 | Apache-2.0 | 1,602,443,220,000 | 1,585,327,814,000 | C | UTF-8 | Lean | false | false | 264 | lean | new_frontend
declare_syntax_cat foo
variable {m : Type → Type}
variable [s : Functor m]
#check @Nat.rec
#check s.map
/-
The following doesn't work because
```
variable [r : Monad m]
#check r.map
```
because `Monad.to* methods have bad binder annotations
-/
|
1614f99296b2a7810d8776df29ef8964eb057eca | b561a44b48979a98df50ade0789a21c79ee31288 | /stage0/src/Leanpkg.lean | df86545e6d746324a592054e0bf71d27d86c06f6 | [
"Apache-2.0"
] | permissive | 3401ijk/lean4 | 97659c475ebd33a034fed515cb83a85f75ccfb06 | a5b1b8de4f4b038ff752b9e607b721f15a9a4351 | refs/heads/master | 1,693,933,007,651 | 1,636,424,845,000 | 1,636,424,845,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 8,973 | lean | /-
Copyright (c) 2017 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Gabriel Ebner, Sebastian Ullrich
-/
import Leanpkg.Resolve
import Leanpkg.Git
import Leanpkg.Build
import Lean.Util.Paths
open System
namespace Leanpkg
def readManifest : IO ... |
3cc4aeb27952ed9a61b4fc7b4e167f7479f21691 | 63abd62053d479eae5abf4951554e1064a4c45b4 | /src/data/string/defs.lean | c1ebcc5851c48e272a38c3c1e4aea0c88c9e268d | [
"Apache-2.0"
] | permissive | Lix0120/mathlib | 0020745240315ed0e517cbf32e738d8f9811dd80 | e14c37827456fc6707f31b4d1d16f1f3a3205e91 | refs/heads/master | 1,673,102,855,024 | 1,604,151,044,000 | 1,604,151,044,000 | 308,930,245 | 0 | 0 | Apache-2.0 | 1,604,164,710,000 | 1,604,163,547,000 | null | UTF-8 | Lean | false | false | 1,784 | lean | /-
Copyright (c) 2019 Simon Hudon. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Author: Simon Hudon, Keeley Hoek, Floris van Doorn
-/
import data.list.defs
namespace string
/-- `s.split_on c` tokenizes `s : string` on `c : char`. -/
def split_on (s : string) (c : char) : li... |
22aee98d0ad535c2c206d48a840fbc1b4e499a49 | 26ac254ecb57ffcb886ff709cf018390161a9225 | /src/analysis/convex/basic.lean | d28767f8598549748160d5ec47d545e2f46ed3f0 | [
"Apache-2.0"
] | permissive | eric-wieser/mathlib | 42842584f584359bbe1fc8b88b3ff937c8acd72d | d0df6b81cd0920ad569158c06a3fd5abb9e63301 | refs/heads/master | 1,669,546,404,255 | 1,595,254,668,000 | 1,595,254,668,000 | 281,173,504 | 0 | 0 | Apache-2.0 | 1,595,263,582,000 | 1,595,263,581,000 | null | UTF-8 | Lean | false | false | 39,137 | lean | /-
Copyright (c) 2019 Alexander Bentkamp. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Alexander Bentkamp, Yury Kudriashov
-/
import data.set.intervals.unordered_interval
import data.set.intervals.image_preimage
import data.complex.module
import algebra.pointwise
/-... |
ed1b085924903f5f2a07bd489c619d32e4119642 | 57c233acf9386e610d99ed20ef139c5f97504ba3 | /src/data/polynomial/algebra_map.lean | a630d10f26e040256335ca06700b81952cb240c4 | [
"Apache-2.0"
] | permissive | robertylewis/mathlib | 3d16e3e6daf5ddde182473e03a1b601d2810952c | 1d13f5b932f5e40a8308e3840f96fc882fae01f0 | refs/heads/master | 1,651,379,945,369 | 1,644,276,960,000 | 1,644,276,960,000 | 98,875,504 | 0 | 0 | Apache-2.0 | 1,644,253,514,000 | 1,501,495,700,000 | Lean | UTF-8 | Lean | false | false | 14,505 | lean | /-
Copyright (c) 2018 Chris Hughes. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Chris Hughes, Johannes Hölzl, Scott Morrison, Jens Wagemaker
-/
import ring_theory.adjoin.basic
import data.polynomial.eval
/-!
# Theory of univariate polynomials
We show that `polynom... |
4e3c64965e479f254dd3e3a1742772e209c13de0 | 35677d2df3f081738fa6b08138e03ee36bc33cad | /src/geometry/manifold/mfderiv.lean | fd617ad8e661343456b718d72d78cc2a463fe91f | [
"Apache-2.0"
] | permissive | gebner/mathlib | eab0150cc4f79ec45d2016a8c21750244a2e7ff0 | cc6a6edc397c55118df62831e23bfbd6e6c6b4ab | refs/heads/master | 1,625,574,853,976 | 1,586,712,827,000 | 1,586,712,827,000 | 99,101,412 | 1 | 0 | Apache-2.0 | 1,586,716,389,000 | 1,501,667,958,000 | Lean | UTF-8 | Lean | false | false | 68,277 | 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 geometry.manifold.basic_smooth_bundle
/-!
# The derivative of functions between smooth manifolds
Let `M` and `M'` be two smooth manifolds with corners... |
b689171484a883d8ee1802b42639a91a9316e0b4 | cf39355caa609c0f33405126beee2739aa3cb77e | /tests/lean/expr_quote.lean | 50657d2276612a5137792d86ebdeb750661e49b0 | [
"Apache-2.0"
] | permissive | leanprover-community/lean | 12b87f69d92e614daea8bcc9d4de9a9ace089d0e | cce7990ea86a78bdb383e38ed7f9b5ba93c60ce0 | refs/heads/master | 1,687,508,156,644 | 1,684,951,104,000 | 1,684,951,104,000 | 169,960,991 | 457 | 107 | Apache-2.0 | 1,686,744,372,000 | 1,549,790,268,000 | C++ | UTF-8 | Lean | false | false | 139 | lean | meta def f (α a : expr) := `(@id %%α %%a)
meta def g (α a : expr) := `(@id (%%α : Type 2) %%a)
set_option pp.universes true
#print g
|
9ef9e0094722445e3e25b4c8e9df8ff00eb2e4b4 | 82e44445c70db0f03e30d7be725775f122d72f3e | /src/category_theory/abelian/exact.lean | 8db0a9c34137967de73677073428501fd93ae253 | [
"Apache-2.0"
] | permissive | stjordanis/mathlib | 51e286d19140e3788ef2c470bc7b953e4991f0c9 | 2568d41bca08f5d6bf39d915434c8447e21f42ee | refs/heads/master | 1,631,748,053,501 | 1,627,938,886,000 | 1,627,938,886,000 | 228,728,358 | 0 | 0 | Apache-2.0 | 1,576,630,588,000 | 1,576,630,587,000 | null | UTF-8 | Lean | false | false | 6,464 | 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 category_theory.abelian.basic
import algebra.homology.exact
import tactic.tfae
/-!
# Exact sequences in abelian categories
In an abelian category, we get sever... |
7a9dcf16dbbbee0cbe32391a4de7e823f985f281 | 36938939954e91f23dec66a02728db08a7acfcf9 | /lean4/deps/galois_stdlib/src/Galois/Init/Nat.lean | 2c2b68da09fe878cf5e5b638eaae91b9eb47e75c | [] | no_license | pnwamk/reopt-vcg | f8b56dd0279392a5e1c6aee721be8138e6b558d3 | c9f9f185fbefc25c36c4b506bbc85fd1a03c3b6d | refs/heads/master | 1,631,145,017,772 | 1,593,549,019,000 | 1,593,549,143,000 | 254,191,418 | 0 | 0 | null | 1,586,377,077,000 | 1,586,377,077,000 | null | UTF-8 | Lean | false | false | 3,210 | lean |
-- Missing stuff
namespace Nat
def shiftl (v : Nat) (n : Nat) := v * 2 ^ n
def shiftr (v : Nat) (n : Nat) := v / 2 ^ n
def bodd (n : Nat) : Bool := (n % 2) = 1
def ldiff : Nat → Nat → Nat := bitwise (λ a b => a && not b)
def lxor : Nat → Nat → Nat := bitwise (λ a b => xor a b)
-- Copied
def test_bit (m n : Nat) : B... |
acf82802f4f66389fe1bf475a1cf5802c6951540 | 57c233acf9386e610d99ed20ef139c5f97504ba3 | /src/data/setoid/partition.lean | 749f3dc5c444e251451b80a94087066663de347f | [
"Apache-2.0"
] | permissive | robertylewis/mathlib | 3d16e3e6daf5ddde182473e03a1b601d2810952c | 1d13f5b932f5e40a8308e3840f96fc882fae01f0 | refs/heads/master | 1,651,379,945,369 | 1,644,276,960,000 | 1,644,276,960,000 | 98,875,504 | 0 | 0 | Apache-2.0 | 1,644,253,514,000 | 1,501,495,700,000 | Lean | UTF-8 | Lean | false | false | 15,661 | lean | /-
Copyright (c) 2019 Amelia Livingston. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Amelia Livingston, Bryan Gin-ge Chen, Patrick Massot
-/
import data.fintype.basic
import data.set.finite
import data.setoid.basic
/-!
# Equivalence relations: partitions
This fil... |
0b29bd31564e1c461f484da0278ea6251b83d06f | 1e3a43e8ba59c6fe1c66775b6e833e721eaf1675 | /src/analysis/calculus/fderiv.lean | bdfba843fb1f8d8d1c04ecd3c49628606f3ef79d | [
"Apache-2.0"
] | permissive | Sterrs/mathlib | ea6910847b8dfd18500486de9ab0ee35704a3f52 | d9327e433804004aa1dc65091bbe0de1e5a08c5e | refs/heads/master | 1,650,769,884,257 | 1,587,808,694,000 | 1,587,808,694,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 93,913 | lean | /-
Copyright (c) 2019 Jeremy Avigad. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Jeremy Avigad, Sébastien Gouëzel, Yury Kudryashov
-/
import analysis.calculus.tangent_cone
/-!
# The Fréchet derivative
Let `E` and `F` be normed spaces, `f : E → F`, and `f' : E →L[�... |
fa90ce8ce2d38b69474854a1d7ef148807868d41 | 957a80ea22c5abb4f4670b250d55534d9db99108 | /tests/lean/bad_end_error_pos.lean | 4d495c50d832f4702b6fe68d876cd5723a359995 | [
"Apache-2.0"
] | permissive | GaloisInc/lean | aa1e64d604051e602fcf4610061314b9a37ab8cd | f1ec117a24459b59c6ff9e56a1d09d9e9e60a6c0 | refs/heads/master | 1,592,202,909,807 | 1,504,624,387,000 | 1,504,624,387,000 | 75,319,626 | 2 | 1 | Apache-2.0 | 1,539,290,164,000 | 1,480,616,104,000 | C++ | UTF-8 | Lean | false | false | 428 | lean | example (a b c : nat) (f : nat → nat) : f (a + b + c) = f (b + c + a) :=
by ac_refl
example (a b c : nat) (f : nat → nat) : f (a + b + (c * b * a)) = f (b + (a * c * b) + a) :=
by ac_refl
end
example (a b c : nat) (f : nat → nat → nat) : f (b * c) (c * b * a) = f (c * b) (a * c * b) :=
by ac_refl
example (a b c : n... |
481a330a4047456a7ba40f8a6dd075a08cf7a94d | b7f22e51856f4989b970961f794f1c435f9b8f78 | /tests/lean/run/pickle1.lean | e46590d712f55f52f933bf4a7d9f8b5be20a5506 | [
"Apache-2.0"
] | permissive | soonhokong/lean | cb8aa01055ffe2af0fb99a16b4cda8463b882cd1 | 38607e3eb57f57f77c0ac114ad169e9e4262e24f | refs/heads/master | 1,611,187,284,081 | 1,450,766,737,000 | 1,476,122,547,000 | 11,513,992 | 2 | 0 | null | 1,401,763,102,000 | 1,374,182,235,000 | C++ | UTF-8 | Lean | false | false | 210 | lean | import data.encodable
open encodable decidable bool prod list nat option
variable l : list (nat × bool)
check encode l
eval encode [2, 1]
example : decode (list nat) (encode [(1:nat), 1]) = some [1, 1] :=
rfl
|
bd32da0ba3824a90a4c483d01dc2284210f614bd | 1cc8cf59a317bf12d71a5a8ed03bfc1948c66f10 | /src/xenalib/M1P1.lean | 37d727264d827df0768da8ebce5b62081c4c0ef6 | [
"Apache-2.0"
] | permissive | kckennylau/M1P1-lean | 1e4fabf513539669f86a439af6844aa078c239ad | c92e524f3e4e7aec5dc09e05fb8923cc9720dd34 | refs/heads/master | 1,587,503,976,663 | 1,549,715,955,000 | 1,549,715,955,000 | 169,875,735 | 1 | 0 | Apache-2.0 | 1,549,722,917,000 | 1,549,722,917,000 | null | UTF-8 | Lean | false | false | 609 | lean | import tactic.linarith data.real.basic
local notation `|` x `|` := abs x
lemma zero_of_abs_lt_all (x : ℝ) (h : ∀ ε > 0, |x| < ε) : x = 0 :=
eq_zero_of_abs_eq_zero $ eq_of_le_of_forall_le_of_dense (abs_nonneg x) $ λ ε ε_pos, le_of_lt (h ε ε_pos)
-- The next few things should be hidden
@[user_attribute]
meta def ineq_... |
f8948042fd8135908a19306b9683798c4784e8fe | 367134ba5a65885e863bdc4507601606690974c1 | /src/computability/regular_expressions.lean | 6ab513e54ec3e0bb962c25d4d2a155474d9003a3 | [
"Apache-2.0"
] | permissive | kodyvajjha/mathlib | 9bead00e90f68269a313f45f5561766cfd8d5cad | b98af5dd79e13a38d84438b850a2e8858ec21284 | refs/heads/master | 1,624,350,366,310 | 1,615,563,062,000 | 1,615,563,062,000 | 162,666,963 | 0 | 0 | Apache-2.0 | 1,545,367,651,000 | 1,545,367,651,000 | null | UTF-8 | Lean | false | false | 9,578 | lean | /-
Copyright (c) 2020 Fox Thomson. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Author: Fox Thomson.
-/
import data.fintype.basic
import data.finset.basic
import tactic.rcases
import computability.language
/-!
# Regular Expressions
This file contains the formal definition f... |
13f08fbceab9b1c84ccb4044d8b6ffcc1343b955 | a4673261e60b025e2c8c825dfa4ab9108246c32e | /tests/lean/run/termElab.lean | 6e2fad2a993413255c8f2e7634b3061721edfcd9 | [
"Apache-2.0"
] | permissive | jcommelin/lean4 | c02dec0cc32c4bccab009285475f265f17d73228 | 2909313475588cc20ac0436e55548a4502050d0a | refs/heads/master | 1,674,129,550,893 | 1,606,415,348,000 | 1,606,415,348,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 675 | lean | import Lean
open Lean
open Lean.Elab
open Lean.Elab.Term
def tst1 : TermElabM Unit := do
let opt ← getOptions;
let stx ← `(forall (a b : Nat), Nat);
IO.println "message 1"; -- This message goes direct to stdio. It will be displayed before trace messages.
let e ← elabTermAndSynthesize stx none;
logDbgTrace (">>> " ++... |
f0e8c30524e4cab8766019db2c597b301c3a37b8 | 9d2e3d5a2e2342a283affd97eead310c3b528a24 | /src/solutions/thursday/afternoon/category_theory/exercise5.lean | 263f73ae2b9b3ccaedb0bc773bcc26e3b26e3bd9 | [] | permissive | Vtec234/lftcm2020 | ad2610ab614beefe44acc5622bb4a7fff9a5ea46 | bbbd4c8162f8c2ef602300ab8fdeca231886375d | refs/heads/master | 1,668,808,098,623 | 1,594,989,081,000 | 1,594,990,079,000 | 280,423,039 | 0 | 0 | MIT | 1,594,990,209,000 | 1,594,990,209,000 | null | UTF-8 | Lean | false | false | 1,686 | lean | import category_theory.preadditive
import category_theory.limits.shapes.biproducts
/-!
We prove that biproducts (direct sums) are preserved by any preadditive functor.
This result is not in mathlib, so full marks for the exercise are only achievable if you
contribute to a pull request! :-)
-/
open category_theory
op... |
b4d928666fd42ccb7af8e7a43e0f5355b38d9327 | a9d0fb7b0e4f802bd3857b803e6c5c23d87fef91 | /tests/lean/run/empty_match.lean | 23147a1c42edc0ea9a923dfe2d61f4ab1c36ae7f | [
"Apache-2.0"
] | permissive | soonhokong/lean-osx | 4a954262c780e404c1369d6c06516161d07fcb40 | 3670278342d2f4faa49d95b46d86642d7875b47c | refs/heads/master | 1,611,410,334,552 | 1,474,425,686,000 | 1,474,425,686,000 | 12,043,103 | 5 | 1 | null | null | null | null | UTF-8 | Lean | false | false | 118 | lean | open nat
definition not_lt_zero (a : nat) : ¬ a < 0 :=
assume H : a < 0,
match H with
end
check _root_.not_lt_zero
|
3c1bc99df8c915c46f3d978cdbcc14aec874885e | 0003047346476c031128723dfd16fe273c6bc605 | /src/data/multivariate_polynomial.lean | 864f5aff87047d152349e41e8e8a15a179eb63e7 | [
"Apache-2.0"
] | permissive | ChandanKSingh/mathlib | d2bf4724ccc670bf24915c12c475748281d3fb73 | d60d1616958787ccb9842dc943534f90ea0bab64 | refs/heads/master | 1,588,238,823,679 | 1,552,867,469,000 | 1,552,867,469,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 27,995 | 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, Johan Commelin, Mario Carneiro
Multivariate Polynomial
-/
import algebra.ring
import data.finsupp data.polynomial data.equiv.algebra
open set function finsupp lattice... |
a196e9e797472394032134d5b900be7645f3e18b | 491068d2ad28831e7dade8d6dff871c3e49d9431 | /library/theories/combinatorics/choose.lean | 1458d0cc488eac8a46f8f38944e028f7374279fb | [
"Apache-2.0"
] | permissive | davidmueller13/lean | 65a3ed141b4088cd0a268e4de80eb6778b21a0e9 | c626e2e3c6f3771e07c32e82ee5b9e030de5b050 | refs/heads/master | 1,611,278,313,401 | 1,444,021,177,000 | 1,444,021,177,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 8,492 | lean | /-
Copyright (c) 2015 Jeremy Avigad. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Author: Jeremy Avigad
Binomial coefficients, "n choose k".
-/
import data.nat.div data.nat.fact data.finset
open decidable
namespace nat
/- choose -/
definition choose : ℕ → ℕ → ℕ
| 0 0 ... |
04c60c0cad4d9d8946a20e7fa4f0753db14316f2 | 592ee40978ac7604005a4e0d35bbc4b467389241 | /Library/generated/mathscheme-lean/IdempotentSemiRng.lean | 9440221e67f942d10c3418ca2848cfa2cf77e31b | [] | no_license | ysharoda/Deriving-Definitions | 3e149e6641fae440badd35ac110a0bd705a49ad2 | dfecb27572022de3d4aa702cae8db19957523a59 | refs/heads/master | 1,679,127,857,700 | 1,615,939,007,000 | 1,615,939,007,000 | 229,785,731 | 4 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 11,726 | lean | import init.data.nat.basic
import init.data.fin.basic
import data.vector
import .Prelude
open Staged
open nat
open fin
open vector
section IdempotentSemiRng
structure IdempotentSemiRng (A : Type) : Type :=
(plus : (A → (A → A)))
(times : (A → (A → A)))
(zero : A)
(lunit_zero : (∀ {x :... |
5f4ee82292282c15d15d7333d1bf757336a55e0f | fa02ed5a3c9c0adee3c26887a16855e7841c668b | /src/topology/semicontinuous.lean | 7011249c40a639c97c4c8bb638dbb0c7e87512ec | [
"Apache-2.0"
] | permissive | jjgarzella/mathlib | 96a345378c4e0bf26cf604aed84f90329e4896a2 | 395d8716c3ad03747059d482090e2bb97db612c8 | refs/heads/master | 1,686,480,124,379 | 1,625,163,323,000 | 1,625,163,323,000 | 281,190,421 | 2 | 0 | Apache-2.0 | 1,595,268,170,000 | 1,595,268,169,000 | null | UTF-8 | Lean | false | false | 43,698 | lean | /-
Copyright (c) 2021 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 topology.continuous_on
import algebra.indicator_function
import topology.algebra.group
import topology.algebra.ordered.liminf_limsup
import topology.inst... |
fc548aad3c22ee61d38fb0deaf829bd188c19c24 | 4727251e0cd73359b15b664c3170e5d754078599 | /src/order/category/CompleteLattice.lean | 03ce1f1839b3a610e0a333e050913d030cfcdfc7 | [
"Apache-2.0"
] | permissive | Vierkantor/mathlib | 0ea59ac32a3a43c93c44d70f441c4ee810ccceca | 83bc3b9ce9b13910b57bda6b56222495ebd31c2f | refs/heads/master | 1,658,323,012,449 | 1,652,256,003,000 | 1,652,256,003,000 | 209,296,341 | 0 | 1 | Apache-2.0 | 1,568,807,655,000 | 1,568,807,655,000 | null | UTF-8 | Lean | false | false | 2,638 | 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 order.category.BoundedLattice
import order.hom.complete_lattice
/-!
# The category of complete lattices
This file defines `CompleteLattice`, the category of comp... |
6d5880cc0e29e117bc346672b60e08f866071582 | cf39355caa609c0f33405126beee2739aa3cb77e | /tests/lean/run/enum.lean | 9e3d4aadefb4be6f826b60d31b902c58af1b49b3 | [
"Apache-2.0"
] | permissive | leanprover-community/lean | 12b87f69d92e614daea8bcc9d4de9a9ace089d0e | cce7990ea86a78bdb383e38ed7f9b5ba93c60ce0 | refs/heads/master | 1,687,508,156,644 | 1,684,951,104,000 | 1,684,951,104,000 | 169,960,991 | 457 | 107 | Apache-2.0 | 1,686,744,372,000 | 1,549,790,268,000 | C++ | UTF-8 | Lean | false | false | 389 | lean | inductive Three
| zero : Three
| one : Three
| two : Three
namespace Three
theorem disj (a : Three) : a = zero ∨ a = one ∨ a = two :=
Three.rec (or.inl rfl) (or.inr (or.inl rfl)) (or.inr (or.inr rfl)) a
example (a : Three) : a ≠ zero → a ≠ one → a = two :=
Three.rec (λ h₁ h₂, absurd rfl h₁) (λ h₁ h₂, absur... |
3ebb400d6007da58808c7f5f35ea92c04bc453e0 | 01ae0d022f2e2fefdaaa898938c1ac1fbce3b3ab | /categories/universal/comma_categories.lean | 7afc6fb5a398a1507c89fb5b52684d1d5a3bef43 | [] | no_license | PatrickMassot/lean-category-theory | 0f56a83464396a253c28a42dece16c93baf8ad74 | ef239978e91f2e1c3b8e88b6e9c64c155dc56c99 | refs/heads/master | 1,629,739,187,316 | 1,512,422,659,000 | 1,512,422,659,000 | 113,098,786 | 0 | 0 | null | 1,512,424,022,000 | 1,512,424,022,000 | null | UTF-8 | Lean | false | false | 4,509 | lean | -- Copyright (c) 2017 Scott Morrison. All rights reserved.
-- Released under Apache 2.0 license as described in the file LICENSE.
-- Authors: Stephen Morgan, Scott Morrison
import ..walking
import .initial
open categories
open categories.isomorphism
open categories.graphs
open categories.functor
open categories.natur... |
73ac810eb364a1b987c58b7b515c36f375197fb4 | a45212b1526d532e6e83c44ddca6a05795113ddc | /src/topology/metric_space/cau_seq_filter.lean | 92fe13721cbdfd8bacdbcf4d31144162f550ad5d | [
"Apache-2.0"
] | permissive | fpvandoorn/mathlib | b21ab4068db079cbb8590b58fda9cc4bc1f35df4 | b3433a51ea8bc07c4159c1073838fc0ee9b8f227 | refs/heads/master | 1,624,791,089,608 | 1,556,715,231,000 | 1,556,715,231,000 | 165,722,980 | 5 | 0 | Apache-2.0 | 1,552,657,455,000 | 1,547,494,646,000 | Lean | UTF-8 | Lean | false | false | 19,661 | 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, Sébastien Gouëzel
Characterize completeness of metric spaces in terms of Cauchy sequences.
In particular, reconcile the filter notion of Cauchy-ness with the cau_seq ... |
9b755770c39d38887fc5469d738ba959cc6da6b2 | 8cae430f0a71442d02dbb1cbb14073b31048e4b0 | /src/algebra/cubic_discriminant.lean | 505ffb3079eb1c00a8c0b98a62686a6883b2fbf0 | [
"Apache-2.0"
] | permissive | leanprover-community/mathlib | 56a2cadd17ac88caf4ece0a775932fa26327ba0e | 442a83d738cb208d3600056c489be16900ba701d | refs/heads/master | 1,693,584,102,358 | 1,693,471,902,000 | 1,693,471,902,000 | 97,922,418 | 1,595 | 352 | Apache-2.0 | 1,694,693,445,000 | 1,500,624,130,000 | Lean | UTF-8 | Lean | false | false | 17,225 | lean | /-
Copyright (c) 2022 David Kurniadi Angdinata. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: David Kurniadi Angdinata
-/
import data.polynomial.splits
/-!
# Cubics and discriminants
> THIS FILE IS SYNCHRONIZED WITH MATHLIB4.
> Any changes to this file require a co... |
8d5414c5a4952730bd5c572e0e0772225bbe73e9 | ae1e94c332e17c7dc7051ce976d5a9eebe7ab8a5 | /tests/compiler/rbmap_library.lean | 72e158c8b44620cf4bb9073d3e7e3b9c66b8ee7b | [
"Apache-2.0"
] | permissive | dupuisf/lean4 | d082d13b01243e1de29ae680eefb476961221eef | 6a39c65bd28eb0e28c3870188f348c8914502718 | refs/heads/master | 1,676,948,755,391 | 1,610,665,114,000 | 1,610,665,114,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 2,324 | lean | #lang lean4
import Std
open Std
def check (b : Bool) : IO Unit := do
unless b do IO.println "ERROR"
def sz {α β : Type} {lt : α → α → Bool} (m : RBMap α β lt) : Nat :=
m.fold (fun sz _ _ => sz+1) 0
def depth {α β : Type} {lt : α → α → Bool} (m : RBMap α β lt) : Nat :=
m.depth Nat.max
def tst1 : IO Unit :=
do let Ma... |
1f69d4b8656611121e5944daeae5fce95b337f8b | 6432ea7a083ff6ba21ea17af9ee47b9c371760f7 | /tests/lean/run/561.lean | ddc0df6be2c40ef860a6b81d5ad8de0981b6ee91 | [
"Apache-2.0",
"LLVM-exception",
"NCSA",
"LGPL-3.0-only",
"LicenseRef-scancode-inner-net-2.0",
"BSD-3-Clause",
"LGPL-2.0-or-later",
"Spencer-94",
"LGPL-2.1-or-later",
"HPND",
"LicenseRef-scancode-pcre",
"ISC",
"LGPL-2.1-only",
"LicenseRef-scancode-other-permissive",
"SunPro",
"CMU-Mach"... | permissive | leanprover/lean4 | 4bdf9790294964627eb9be79f5e8f6157780b4cc | f1f9dc0f2f531af3312398999d8b8303fa5f096b | refs/heads/master | 1,693,360,665,786 | 1,693,350,868,000 | 1,693,350,868,000 | 129,571,436 | 2,827 | 311 | Apache-2.0 | 1,694,716,156,000 | 1,523,760,560,000 | Lean | UTF-8 | Lean | false | false | 166 | lean | example : 0 * x = 0 := by simp
example : 1 * x = x := by simp
example : 2 * x = x + x := by simp [Nat.succ_mul]
example : 3 * x = x + x + x := by simp [Nat.succ_mul]
|
31a48971a212792fd20d292cc449ba87232d06a5 | 74addaa0e41490cbaf2abd313a764c96df57b05d | /Mathlib/algebra/group_action_hom_auto.lean | b0162b9f9d9d116263d3421e2be91643cfe7b1e8 | [] | no_license | AurelienSaue/Mathlib4_auto | f538cfd0980f65a6361eadea39e6fc639e9dae14 | 590df64109b08190abe22358fabc3eae000943f2 | refs/heads/master | 1,683,906,849,776 | 1,622,564,669,000 | 1,622,564,669,000 | 371,723,747 | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 17,015 | lean | /-
Copyright (c) 2020 Kenny Lau. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Kenny Lau
-/
import Mathlib.PrePort
import Mathlib.Lean3Lib.init.default
import Mathlib.algebra.group_ring_action
import Mathlib.group_theory.group_action.default
import Mathlib.PostPort
u... |
26b7c4137242c09c3f9a0e07a6a5ad7d2ad325d4 | 1abd1ed12aa68b375cdef28959f39531c6e95b84 | /src/algebra/star/module.lean | ba997dbab3537e47c58e31b968d66ce3f1537bbc | [
"Apache-2.0"
] | permissive | jumpy4/mathlib | d3829e75173012833e9f15ac16e481e17596de0f | af36f1a35f279f0e5b3c2a77647c6bf2cfd51a13 | refs/heads/master | 1,693,508,842,818 | 1,636,203,271,000 | 1,636,203,271,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 1,421 | lean | /-
Copyright (c) 2021 Eric Wieser. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Eric Wieser, Frédéric Dupuis
-/
import algebra.star.basic
import data.equiv.module
/-!
# The star operation, bundled as a star-linear equiv
We define `star_linear_equiv`, which is the s... |
776b6c1cff2c46b8f3c575cadad3c506029c3d3a | b7f22e51856f4989b970961f794f1c435f9b8f78 | /tests/lean/run/constr_tac3.lean | fe33067c51d546573625681210a255ceebda3dcc | [
"Apache-2.0"
] | permissive | soonhokong/lean | cb8aa01055ffe2af0fb99a16b4cda8463b882cd1 | 38607e3eb57f57f77c0ac114ad169e9e4262e24f | refs/heads/master | 1,611,187,284,081 | 1,450,766,737,000 | 1,476,122,547,000 | 11,513,992 | 2 | 0 | null | 1,401,763,102,000 | 1,374,182,235,000 | C++ | UTF-8 | Lean | false | false | 93 | lean | open nat
example (n m : ℕ) (H : n < m) : n < succ m :=
begin
constructor,
exact H
end
|
06acb58a20a6fc86fd544e3e86b5918e4ca304ab | a45212b1526d532e6e83c44ddca6a05795113ddc | /src/data/analysis/topology.lean | 86ee2f1fa93f4eccecb3a10a6fd1949e25ec5e43 | [
"Apache-2.0"
] | permissive | fpvandoorn/mathlib | b21ab4068db079cbb8590b58fda9cc4bc1f35df4 | b3433a51ea8bc07c4159c1073838fc0ee9b8f227 | refs/heads/master | 1,624,791,089,608 | 1,556,715,231,000 | 1,556,715,231,000 | 165,722,980 | 5 | 0 | Apache-2.0 | 1,552,657,455,000 | 1,547,494,646,000 | Lean | UTF-8 | Lean | false | false | 8,385 | lean | /-
Copyright (c) 2017 Mario Carneiro. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Mario Carneiro
Computational realization of topological spaces (experimental).
-/
import topology.bases data.analysis.filter
open set
open filter (hiding realizer)
/-- A `ctop α σ` i... |
347116c7f4417e8f3bc14d22243f74e61b2e4edc | b2fe74b11b57d362c13326bc5651244f111fa6f4 | /src/linear_algebra/dfinsupp.lean | 79c3edefc250385dd6cdfe0cd4cbc4dfe073862c | [
"Apache-2.0"
] | permissive | midfield/mathlib | c4db5fa898b5ac8f2f80ae0d00c95eb6f745f4c7 | 775edc615ecec631d65b6180dbcc7bc26c3abc26 | refs/heads/master | 1,675,330,551,921 | 1,608,304,514,000 | 1,608,304,514,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 3,988 | lean | /-
Copyright (c) 2018 Kenny Lau. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Author: Johannes Hölzl, Kenny Lau
-/
import data.dfinsupp
import linear_algebra.basic
/-!
# Properties of the semimodule `Π₀ i, M i`
Given an indexed collection of `R`-semimodules `M i`, the `R`-s... |
f7264ed603a08d8ba240f639b2c9dc8af979cd8e | 94e33a31faa76775069b071adea97e86e218a8ee | /test/to_additive.lean | 6f62149311fcf6e5ecec1123d87bc3253c8b877a | [
"Apache-2.0"
] | permissive | urkud/mathlib | eab80095e1b9f1513bfb7f25b4fa82fa4fd02989 | 6379d39e6b5b279df9715f8011369a301b634e41 | refs/heads/master | 1,658,425,342,662 | 1,658,078,703,000 | 1,658,078,703,000 | 186,910,338 | 0 | 0 | Apache-2.0 | 1,568,512,083,000 | 1,557,958,709,000 | Lean | UTF-8 | Lean | false | false | 3,642 | lean | import algebra.group.to_additive
import algebra.group.units
import tactic
-- work in a namespace so that it doesn't matter if names clash
namespace test
@[to_additive bar0]
def foo0 {α} [has_mul α] [has_one α] (x y : α) : α := x * y * 1
class {u v} my_has_pow (α : Type u) (β : Type v) :=
(pow : α → β → α)
class my_h... |
41e8ca5e104df3f543de50afc150a5246478a852 | 097294e9b80f0d9893ac160b9c7219aa135b51b9 | /instructor/predicate_logic/intro_and_elim_rules/forall.lean | a7ba8ceaed3a2a7b1cef579dae0e97c6e89de374 | [] | no_license | AbigailCastro17/CS2102-Discrete-Math | cf296251be9418ce90206f5e66bde9163e21abf9 | d741e4d2d6a9b2e0c8380e51706218b8f608cee4 | refs/heads/main | 1,682,891,087,358 | 1,621,401,341,000 | 1,621,401,341,000 | 368,749,959 | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 2,940 | lean | /- ∀ introduction
Suppose P and Q are arbitrary propositions.
To prove a proposition given in the form of
a universal generalization, ∀ (p : P), Q,
assume that P is proved and that you have an
arbitrary but specific proof p' of P, and
show that, in this context, Q must be true,
by showing you can construct a proof of... |
c2758afc27aeb5feb2412352e2ab6b184d63c908 | 367134ba5a65885e863bdc4507601606690974c1 | /src/linear_algebra/bilinear_form.lean | 058447955c6a38ea399a0b9de6c33b60f1f312e4 | [
"Apache-2.0"
] | permissive | kodyvajjha/mathlib | 9bead00e90f68269a313f45f5561766cfd8d5cad | b98af5dd79e13a38d84438b850a2e8858ec21284 | refs/heads/master | 1,624,350,366,310 | 1,615,563,062,000 | 1,615,563,062,000 | 162,666,963 | 0 | 0 | Apache-2.0 | 1,545,367,651,000 | 1,545,367,651,000 | null | UTF-8 | Lean | false | false | 51,282 | lean | /-
Copyright (c) 2018 Andreas Swerdlow. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Author: Andreas Swerdlow, Kexing Ying
-/
import linear_algebra.matrix
import linear_algebra.tensor_product
import linear_algebra.nonsingular_inverse
/-!
# Bilinear form
This file defines a... |
649fbffa7be57afe96f2318b4e75458eab13b807 | fa02ed5a3c9c0adee3c26887a16855e7841c668b | /src/linear_algebra/matrix/nonsingular_inverse.lean | b38246dcc971aaf85d055ad012eae752278e686e | [
"Apache-2.0"
] | permissive | jjgarzella/mathlib | 96a345378c4e0bf26cf604aed84f90329e4896a2 | 395d8716c3ad03747059d482090e2bb97db612c8 | refs/heads/master | 1,686,480,124,379 | 1,625,163,323,000 | 1,625,163,323,000 | 281,190,421 | 2 | 0 | Apache-2.0 | 1,595,268,170,000 | 1,595,268,169,000 | null | UTF-8 | Lean | false | false | 16,396 | lean | /-
Copyright (c) 2019 Tim Baanen. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Tim Baanen
-/
import algebra.associated
import linear_algebra.matrix.determinant
import tactic.linarith
import tactic.ring_exp
/-!
# Nonsingular inverses
In this file, we define an inver... |
a7aa51f97154c202fe6ae1781dd6c7f3fbaf4f89 | cf39355caa609c0f33405126beee2739aa3cb77e | /tests/lean/1162.lean | cbd89fe63a822cbb37375f3675009f3eef6de88d | [
"Apache-2.0"
] | permissive | leanprover-community/lean | 12b87f69d92e614daea8bcc9d4de9a9ace089d0e | cce7990ea86a78bdb383e38ed7f9b5ba93c60ce0 | refs/heads/master | 1,687,508,156,644 | 1,684,951,104,000 | 1,684,951,104,000 | 169,960,991 | 457 | 107 | Apache-2.0 | 1,686,744,372,000 | 1,549,790,268,000 | C++ | UTF-8 | Lean | false | false | 224 | lean | inductive weekday : Type
| sunday : weekday
| monday : weekday
| tuesday : weekday
| wednesday : weekday
def ppday (d : weekday) : nat :=
match d with
| sunday := 0
| monday := 1
| tuesday := 2
| wednesday := 3
end
|
a3b494623325d56ddf1edcf9fcac361bde8e0d9e | a45212b1526d532e6e83c44ddca6a05795113ddc | /src/data/nat/basic.lean | 6a976adb6096403c21fa870c76a183bfc9920ba4 | [
"Apache-2.0"
] | permissive | fpvandoorn/mathlib | b21ab4068db079cbb8590b58fda9cc4bc1f35df4 | b3433a51ea8bc07c4159c1073838fc0ee9b8f227 | refs/heads/master | 1,624,791,089,608 | 1,556,715,231,000 | 1,556,715,231,000 | 165,722,980 | 5 | 0 | Apache-2.0 | 1,552,657,455,000 | 1,547,494,646,000 | Lean | UTF-8 | Lean | false | false | 42,668 | lean | /-
Copyright (c) 2014 Floris van Doorn. 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
Basic operations on the natural numbers.
-/
import logic.basic algebra.ordered_ring data.option.basic
universes u... |
4b00686ef341e9a28d4db24177cd357af856e313 | 74addaa0e41490cbaf2abd313a764c96df57b05d | /Mathlib/algebra/algebra/tower_auto.lean | 1625eadbf97330e2b451408f152e1cc62c8da5e4 | [] | no_license | AurelienSaue/Mathlib4_auto | f538cfd0980f65a6361eadea39e6fc639e9dae14 | 590df64109b08190abe22358fabc3eae000943f2 | refs/heads/master | 1,683,906,849,776 | 1,622,564,669,000 | 1,622,564,669,000 | 371,723,747 | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 12,376 | lean | /-
Copyright (c) 2020 Kenny Lau. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Kenny Lau
-/
import Mathlib.PrePort
import Mathlib.Lean3Lib.init.default
import Mathlib.algebra.algebra.subalgebra
import Mathlib.PostPort
universes u v₁ w v u₁ u_1 u_2 u_3
namespace Mat... |
48058c68e1b5a95f811073b2a234b026cabb5231 | 64874bd1010548c7f5a6e3e8902efa63baaff785 | /hott/init/nat.hlean | c85aae01dbcc8904e3e425fecb0a28b5c6ff1b2c | [
"Apache-2.0"
] | permissive | tjiaqi/lean | 4634d729795c164664d10d093f3545287c76628f | d0ce4cf62f4246b0600c07e074d86e51f2195e30 | refs/heads/master | 1,622,323,796,480 | 1,422,643,069,000 | 1,422,643,069,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 11,512 | hlean | /-
Copyright (c) 2014 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Floris van Doorn, Leonardo de Moura
-/
prelude
import init.wf init.tactic init.hedberg init.util init.types.sum
open eq.ops decidable sum
namespace nat
open lift
notation ... |
382295a7d2cbf01bd8d2127ede0e022d6354d93d | 74addaa0e41490cbaf2abd313a764c96df57b05d | /Mathlib/topology/algebra/open_subgroup_auto.lean | 6c1d589a44bc624419848fff18515f8589ad01b6 | [] | no_license | AurelienSaue/Mathlib4_auto | f538cfd0980f65a6361eadea39e6fc639e9dae14 | 590df64109b08190abe22358fabc3eae000943f2 | refs/heads/master | 1,683,906,849,776 | 1,622,564,669,000 | 1,622,564,669,000 | 371,723,747 | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 7,251 | lean | /-
Copyright (c) 2019 Johan Commelin All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Johan Commelin
-/
import Mathlib.PrePort
import Mathlib.Lean3Lib.init.default
import Mathlib.order.filter.lift
import Mathlib.topology.opens
import Mathlib.topology.algebra.ring
import ... |
d368131b032dc4709258ab8fe03d5550a5477f87 | d9d511f37a523cd7659d6f573f990e2a0af93c6f | /src/field_theory/normal.lean | 7e0b8fa5abab8166d8eb270b61061c4773a5041d | [
"Apache-2.0"
] | permissive | hikari0108/mathlib | b7ea2b7350497ab1a0b87a09d093ecc025a50dfa | a9e7d333b0cfd45f13a20f7b96b7d52e19fa2901 | refs/heads/master | 1,690,483,608,260 | 1,631,541,580,000 | 1,631,541,580,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 15,241 | lean | /-
Copyright (c) 2020 Kenny Lau. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Kenny Lau, Thomas Browning, Patrick Lutz
-/
import field_theory.adjoin
import field_theory.tower
import group_theory.solvable
import ring_theory.power_basis
/-!
# Normal field extensions
... |
147614222b8735b8df41c3aca777cd98c7333644 | a339bc2ac96174381fb610f4b2e1ba42df2be819 | /hott/algebra/group.hlean | 27fedf883e000be11b4dbe7e8b24f0bb6ad2f0e8 | [
"Apache-2.0"
] | permissive | kalfsvag/lean2 | 25b2dccc07a98e5aa20f9a11229831f9d3edf2e7 | 4d4a0c7c53a9922c5f630f6f8ebdccf7ddef2cc7 | refs/heads/master | 1,610,513,122,164 | 1,483,135,198,000 | 1,483,135,198,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 26,900 | hlean | /-
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
Various multiplicative and additive structures. Partially modeled on Isabelle's library.
-/
import algebra.binary algebra.priority
open eq eq.ops -... |
3d13a9cc90fb8ceea7da3bf5f90f08511aea0147 | 367134ba5a65885e863bdc4507601606690974c1 | /src/tactic/omega/int/dnf.lean | 4773eb79d4447961437e3acd90547e3b19ee9bd9 | [
"Apache-2.0"
] | permissive | kodyvajjha/mathlib | 9bead00e90f68269a313f45f5561766cfd8d5cad | b98af5dd79e13a38d84438b850a2e8858ec21284 | refs/heads/master | 1,624,350,366,310 | 1,615,563,062,000 | 1,615,563,062,000 | 162,666,963 | 0 | 0 | Apache-2.0 | 1,545,367,651,000 | 1,545,367,651,000 | null | UTF-8 | Lean | false | false | 6,270 | lean | /-
Copyright (c) 2019 Seul Baek. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Author: Seul Baek
-/
/-
DNF transformation.
-/
import tactic.omega.clause
import tactic.omega.int.form
namespace omega
namespace int
open_locale omega.int
/-- push_neg p returns the result of n... |
51faabc43702e2ec41caf681942cf86a53edc826 | 6432ea7a083ff6ba21ea17af9ee47b9c371760f7 | /tests/lean/badIhName.lean | 5c3f598b3a8bfeae2aa3a8bf089ab8bb1c874520 | [
"Apache-2.0",
"LLVM-exception",
"NCSA",
"LGPL-3.0-only",
"LicenseRef-scancode-inner-net-2.0",
"BSD-3-Clause",
"LGPL-2.0-or-later",
"Spencer-94",
"LGPL-2.1-or-later",
"HPND",
"LicenseRef-scancode-pcre",
"ISC",
"LGPL-2.1-only",
"LicenseRef-scancode-other-permissive",
"SunPro",
"CMU-Mach"... | permissive | leanprover/lean4 | 4bdf9790294964627eb9be79f5e8f6157780b4cc | f1f9dc0f2f531af3312398999d8b8303fa5f096b | refs/heads/master | 1,693,360,665,786 | 1,693,350,868,000 | 1,693,350,868,000 | 129,571,436 | 2,827 | 311 | Apache-2.0 | 1,694,716,156,000 | 1,523,760,560,000 | Lean | UTF-8 | Lean | false | false | 226 | lean | namespace Bla
inductive Nat where
| z : Nat
| s : Nat → Nat
def add : Nat → Nat → Nat
| a, Nat.z => a
| a, Nat.s b => Nat.s (add a b)
theorem ex (x : Nat) : add Nat.z x = x := by
induction x
done
end Bla
|
279893596905d65397dd089a9c257636b7e52496 | d9d511f37a523cd7659d6f573f990e2a0af93c6f | /src/measure_theory/function/l2_space.lean | a6b1dc3665257e03c7dbdf39478cc29b7c48add5 | [
"Apache-2.0"
] | permissive | hikari0108/mathlib | b7ea2b7350497ab1a0b87a09d093ecc025a50dfa | a9e7d333b0cfd45f13a20f7b96b7d52e19fa2901 | refs/heads/master | 1,690,483,608,260 | 1,631,541,580,000 | 1,631,541,580,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 10,208 | lean | /-
Copyright (c) 2021 Rémy Degenne. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Rémy Degenne
-/
import analysis.normed_space.inner_product
import measure_theory.integral.set_integral
/-! # `L^2` space
If `E` is an inner product space over `𝕜` (`ℝ` or `ℂ`), then `... |
f903cb2495c23ffe435e35d9bbb287a8abb020f9 | a0e23cfdd129a671bf3154ee1a8a3a72bf4c7940 | /src/Lean/Elab/MacroRules.lean | 734c3e508f8bc31ea9b954ecfe07fe963946ccc5 | [
"Apache-2.0"
] | permissive | WojciechKarpiel/lean4 | 7f89706b8e3c1f942b83a2c91a3a00b05da0e65b | f6e1314fa08293dea66a329e05b6c196a0189163 | refs/heads/master | 1,686,633,402,214 | 1,625,821,189,000 | 1,625,821,258,000 | 384,640,886 | 0 | 0 | Apache-2.0 | 1,625,903,617,000 | 1,625,903,026,000 | null | UTF-8 | Lean | false | false | 2,411 | lean | /-
Copyright (c) 2021 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Leonardo de Moura
-/
import Lean.Elab.Syntax
namespace Lean.Elab.Command
open Lean.Syntax
open Lean.Parser.Term hiding macroArg
open Lean.Parser.Command
/-
Remark: `k` is th... |
1a926ca52262b4a5b5cc8af8f414aaeed7c92b32 | 8b9f17008684d796c8022dab552e42f0cb6fb347 | /tests/lean/run/tactic24.lean | 3c09f9bf16dd50204e365a9d20fcc4042550d9d4 | [
"Apache-2.0"
] | permissive | chubbymaggie/lean | 0d06ae25f9dd396306fb02190e89422ea94afd7b | d2c7b5c31928c98f545b16420d37842c43b4ae9a | refs/heads/master | 1,611,313,622,901 | 1,430,266,839,000 | 1,430,267,083,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 652 | lean | import logic
open tactic
notation `(` h `|` r:(foldl `|` (e r, tactic.or_else r e) h) `)` := r
infixl `;`:15 := tactic.and_then
definition my_tac1 := apply @eq.refl
definition my_tac2 := repeat (apply @and.intro; assumption)
tactic_hint my_tac1
tactic_hint my_tac2
theorem T1 {A : Type.{2}} (a : A) : a = a
:= _
the... |
04da5c300f1a2eb2e7c3520076287651c49dbc74 | e00ea76a720126cf9f6d732ad6216b5b824d20a7 | /test/tactics.lean | 33f144f89427fa392d74be5587bde06f6e7975c4 | [
"Apache-2.0"
] | permissive | vaibhavkarve/mathlib | a574aaf68c0a431a47fa82ce0637f0f769826bfe | 17f8340912468f49bdc30acdb9a9fa02eeb0473a | refs/heads/master | 1,621,263,802,637 | 1,585,399,588,000 | 1,585,399,588,000 | 250,833,447 | 0 | 0 | Apache-2.0 | 1,585,410,341,000 | 1,585,410,341,000 | null | UTF-8 | Lean | false | false | 16,435 | lean | /-
Copyright (c) 2018 Simon Hudon. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Simon Hudon, Scott Morrison
-/
import tactic.interactive tactic.finish tactic.ext tactic.lift tactic.apply
tactic.reassoc_axiom tactic.tfae tactic.elide tactic.ring_exp
tac... |
cb53f82f7d81fb1513cef7d762ccf9b6fd24f57f | 63abd62053d479eae5abf4951554e1064a4c45b4 | /src/topology/sheaves/forget.lean | 3fbb1137a5d71bd295d0aee04cdce0457d735e8e | [
"Apache-2.0"
] | permissive | Lix0120/mathlib | 0020745240315ed0e517cbf32e738d8f9811dd80 | e14c37827456fc6707f31b4d1d16f1f3a3205e91 | refs/heads/master | 1,673,102,855,024 | 1,604,151,044,000 | 1,604,151,044,000 | 308,930,245 | 0 | 0 | Apache-2.0 | 1,604,164,710,000 | 1,604,163,547,000 | null | UTF-8 | Lean | false | false | 7,969 | 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 topology.sheaves.sheaf
import category_theory.limits.preserves.shapes
import category_theory.limits.types
/-!
# Checking the sheaf condition on the underlying... |
4710388cb5221f92a1f8485c5411e8093f6523cf | 54c9ed381c63410c9b6af3b0a1722c41152f037f | /Binport/Util.lean | 7f37649698d8ec13ee5af162f2f088336ef5b08a | [
"Apache-2.0"
] | permissive | dselsam/binport | 0233f1aa961a77c4fc96f0dccc780d958c5efc6c | aef374df0e169e2c3f1dc911de240c076315805c | refs/heads/master | 1,687,453,448,108 | 1,627,483,296,000 | 1,627,483,296,000 | 333,825,622 | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 5,880 | lean | /-
Copyright (c) 2020 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Gabriel Ebner, Daniel Selsam
-/
import Lean
partial def Array.write {α} [Inhabited α] : ∀ (arr : Array α) (i : Nat) (x : α), Array α
| arr, i, x =>
if i = arr.size then
a... |
20b06d6cb612f89c764792e077e0ee2e1c66d425 | ee8cdbabf07f77e7be63a449b8483ce308d37218 | /lean/src/valid/mathd-algebra-131.lean | 88c9a32dabc2dc15ce56b9e064b80b9a71662111 | [
"MIT",
"Apache-2.0"
] | permissive | zeta1999/miniF2F | 6d66c75d1c18152e224d07d5eed57624f731d4b7 | c1ba9629559c5273c92ec226894baa0c1ce27861 | refs/heads/main | 1,681,897,460,642 | 1,620,646,361,000 | 1,620,646,361,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 344 | lean | /-
Copyright (c) 2021 OpenAI. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Kunhao Zheng
-/
import data.real.basic
example (a b : ℝ) (f : ℝ → ℝ) (h₀ : ∀ x, f x = 2 * x ^ 2 - 7 * x + 2) (h₁ : f a = 0) (h₂ : f b = 0) : 1 / ( a - 1 ) + 1 / ( b - 1 ) = -1 :=
begin
sorr... |
73760eaa61df03c9f826c52c5b73ef153b14fe0e | 6432ea7a083ff6ba21ea17af9ee47b9c371760f7 | /tests/lean/1358.lean | 0da37df27c9971f4b8bef458bb0592f14152baeb | [
"Apache-2.0",
"LLVM-exception",
"NCSA",
"LGPL-3.0-only",
"LicenseRef-scancode-inner-net-2.0",
"BSD-3-Clause",
"LGPL-2.0-or-later",
"Spencer-94",
"LGPL-2.1-or-later",
"HPND",
"LicenseRef-scancode-pcre",
"ISC",
"LGPL-2.1-only",
"LicenseRef-scancode-other-permissive",
"SunPro",
"CMU-Mach"... | permissive | leanprover/lean4 | 4bdf9790294964627eb9be79f5e8f6157780b4cc | f1f9dc0f2f531af3312398999d8b8303fa5f096b | refs/heads/master | 1,693,360,665,786 | 1,693,350,868,000 | 1,693,350,868,000 | 129,571,436 | 2,827 | 311 | Apache-2.0 | 1,694,716,156,000 | 1,523,760,560,000 | Lean | UTF-8 | Lean | false | false | 155 | lean | import Lean.Elab.Tactic
open Lean Elab Tactic in
elab "print!" : tactic => do
logInfo "foo"
throwError "error"
example : True := by
print!
admit
|
80bc0ef4d413a6be05ccec76770487be4a8d4d99 | d406927ab5617694ec9ea7001f101b7c9e3d9702 | /src/data/nat/psub.lean | 1ade5117f4167a1ac794f50d8d8dc1d27499b263 | [
"Apache-2.0"
] | permissive | alreadydone/mathlib | dc0be621c6c8208c581f5170a8216c5ba6721927 | c982179ec21091d3e102d8a5d9f5fe06c8fafb73 | refs/heads/master | 1,685,523,275,196 | 1,670,184,141,000 | 1,670,184,141,000 | 287,574,545 | 0 | 0 | Apache-2.0 | 1,670,290,714,000 | 1,597,421,623,000 | Lean | UTF-8 | Lean | false | false | 3,013 | lean | /-
Copyright (c) 2017 Mario Carneiro. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Mario Carneiro
-/
import data.option.basic
import data.nat.basic
/-!
# Partial predecessor and partial subtraction on the natural numbers
> THIS FILE IS SYNCHRONIZED WITH MATHLIB4.
> ... |
b50aba97de057e70652011225a2d3b1683720a2a | 4d2583807a5ac6caaffd3d7a5f646d61ca85d532 | /src/algebra/ring/comp_typeclasses.lean | 809b3f83ad79498286b93266d1d56e04833ee239 | [
"Apache-2.0"
] | permissive | AntoineChambert-Loir/mathlib | 64aabb896129885f12296a799818061bc90da1ff | 07be904260ab6e36a5769680b6012f03a4727134 | refs/heads/master | 1,693,187,631,771 | 1,636,719,886,000 | 1,636,719,886,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 6,465 | lean | /-
Copyright (c) 2021 Frédéric Dupuis. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Frédéric Dupuis, Heather Macbeth
-/
import algebra.ring.basic
import data.equiv.ring
/-!
# Propositional typeclasses on several ring homs
This file contains three typeclasses used ... |
f1a792bc374b126e7d01a3464009a862b1a7aeba | 07c6143268cfb72beccd1cc35735d424ebcb187b | /src/topology/algebra/module.lean | f869c65e848f97cc9fe4828cedf4c98f55d4aeea | [
"Apache-2.0"
] | permissive | khoek/mathlib | bc49a842910af13a3c372748310e86467d1dc766 | aa55f8b50354b3e11ba64792dcb06cccb2d8ee28 | refs/heads/master | 1,588,232,063,837 | 1,587,304,803,000 | 1,587,304,803,000 | 176,688,517 | 0 | 0 | Apache-2.0 | 1,553,070,585,000 | 1,553,070,585,000 | null | UTF-8 | Lean | false | false | 26,036 | lean | /-
Copyright (c) 2019 Sébastien Gouëzel. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Jan-David Salchow, Sébastien Gouëzel, Jean Lo
-/
import topology.algebra.ring linear_algebra.basic ring_theory.algebra
/-!
# Theory of topological modules and continuous linear m... |
93f7674457bada0d1a1a0789d1dcf8b0930ee480 | cf39355caa609c0f33405126beee2739aa3cb77e | /tests/lean/list_lt.lean | b2dbb7fb900bd7598f3ea3c47449564406a1235a | [
"Apache-2.0"
] | permissive | leanprover-community/lean | 12b87f69d92e614daea8bcc9d4de9a9ace089d0e | cce7990ea86a78bdb383e38ed7f9b5ba93c60ce0 | refs/heads/master | 1,687,508,156,644 | 1,684,951,104,000 | 1,684,951,104,000 | 169,960,991 | 457 | 107 | Apache-2.0 | 1,686,744,372,000 | 1,549,790,268,000 | C++ | UTF-8 | Lean | false | false | 192 | lean | #eval to_bool ([1, 2] < [2, 1])
#eval to_bool ([2, 1] < [1, 2])
#eval to_bool ("ab" < "ba")
#eval to_bool ("ba" < "ab")
#reduce to_bool ("ba" < "ab")
example : ¬ ("ba" < "ab") := dec_trivial
|
d7a86761fd0f826d925663a0526f7a809572677e | 74addaa0e41490cbaf2abd313a764c96df57b05d | /Mathlib/number_theory/lucas_lehmer_auto.lean | 1599e07eb43fe043c358242098badd7214dec8e2 | [] | no_license | AurelienSaue/Mathlib4_auto | f538cfd0980f65a6361eadea39e6fc639e9dae14 | 590df64109b08190abe22358fabc3eae000943f2 | refs/heads/master | 1,683,906,849,776 | 1,622,564,669,000 | 1,622,564,669,000 | 371,723,747 | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 11,392 | lean | /-
Copyright (c) 2020 Scott Morrison. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Author: Mario Carneiro, Scott Morrison, Ainsley Pahljina
-/
import Mathlib.PrePort
import Mathlib.Lean3Lib.init.default
import Mathlib.tactic.ring_exp
import Mathlib.tactic.interval_cases
impor... |
77c7a0a26cd14acf5e30210ba4aaf780ea5d91ad | 2385ce0e3b60d8dbea33dd439902a2070cca7a24 | /tests/lean/run/conv_tac1.lean | 8a31de9bacdf8668209724407b53e0526e671263 | [
"Apache-2.0"
] | permissive | TehMillhouse/lean | 68d6fdd2fb11a6c65bc28dec308d70f04dad38b4 | 6bbf2fbd8912617e5a973575bab8c383c9c268a1 | refs/heads/master | 1,620,830,893,339 | 1,515,592,479,000 | 1,515,592,997,000 | 116,964,828 | 0 | 0 | null | 1,515,592,734,000 | 1,515,592,734,000 | null | UTF-8 | Lean | false | false | 3,463 | lean | example (a b : nat) : (λ x, a + x) 0 = b + 1 + a :=
begin
conv in (_ + 1) { change nat.succ b },
guard_target (λ x, a + x) 0 = nat.succ b + a,
sorry
end
def Div : nat → nat → nat | x y :=
if h : 0 < y ∧ y ≤ x
then
have x - y < x, from sorry,
Div (x - y) y + 1
else 0
example (x y : nat) : 0 < y → y ≤ x → Div... |
8346bdc09ec97121cc292673cbb4a0367538a80a | 74addaa0e41490cbaf2abd313a764c96df57b05d | /Mathlib/topology/dense_embedding.lean | f74f50e006e890e58483bfe01d71229a7dbea6f3 | [] | no_license | AurelienSaue/Mathlib4_auto | f538cfd0980f65a6361eadea39e6fc639e9dae14 | 590df64109b08190abe22358fabc3eae000943f2 | refs/heads/master | 1,683,906,849,776 | 1,622,564,669,000 | 1,622,564,669,000 | 371,723,747 | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 12,945 | lean | /-
Copyright (c) 2019 Reid Barton. 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.PrePort
import Mathlib.Lean3Lib.init.default
import Mathlib.topology.separation
import Mathlib.topology.bases
import Mathl... |
9abe14d201f44b70dfe2065c59a77fdd0d16dc5b | 41ebf3cb010344adfa84907b3304db00e02db0a6 | /uexp/tactic_paper_supplemental_material/mechanics.lean | aa680001f35bfbe54f28402dc4cf00dbd42cad2c | [
"BSD-2-Clause"
] | permissive | ReinierKoops/Cosette | e061b2ba58b26f4eddf4cd052dcf7abd16dfe8fb | eb8dadd06ee05fe7b6b99de431dd7c4faef5cb29 | refs/heads/master | 1,686,483,953,198 | 1,624,293,498,000 | 1,624,293,498,000 | 378,997,885 | 0 | 0 | BSD-2-Clause | 1,624,293,485,000 | 1,624,293,484,000 | null | UTF-8 | Lean | false | false | 256 | lean | open tactic
meta def arith :=
intros >> `[apply mul_pos] >> comp_val >> `[apply nat.lt_of_succ_lt] >> assumption
constant p : ∀ n, n > 0 → Prop
axiom pax : ∀ n h, p (2*n) h
lemma ex (n : nat) : n > 1 → p (2*n) (by arith) :=
by intros; apply pax
|
210cff1f2032f5d6890d7f51db00aff0f9c01f95 | 08bd4ba4ca87dba1f09d2c96a26f5d65da81f4b4 | /tests/lean/run/1813.lean | 8b227509edd9ba68ee70fbc44937f8e7a5cb8869 | [
"LLVM-exception",
"NCSA",
"LGPL-3.0-only",
"LicenseRef-scancode-inner-net-2.0",
"BSD-3-Clause",
"LGPL-2.0-or-later",
"Spencer-94",
"LGPL-2.1-or-later",
"HPND",
"LicenseRef-scancode-pcre",
"ISC",
"LGPL-2.1-only",
"Apache-2.0",
"LicenseRef-scancode-other-permissive",
"SunPro",
"CMU-Mach"... | permissive | gebner/lean4 | d51c4922640a52a6f7426536ea669ef18a1d9af5 | 8cd9ce06843c9d42d6d6dc43d3e81e3b49dfc20f | refs/heads/master | 1,685,732,780,391 | 1,672,962,627,000 | 1,673,459,398,000 | 373,307,283 | 0 | 0 | Apache-2.0 | 1,691,316,730,000 | 1,622,669,271,000 | Lean | UTF-8 | Lean | false | false | 154 | lean | example [Add α] [Neg α] [Mul α] [∀ n, OfNat α n] {a b : α} :=
calc
4 + 5 * b = -6 + 5 * (b + 2) := sorry
_ = -6 + 5 * 3 := sorry
|
48818363732b2defe893064c71e1ddef68423019 | d1a52c3f208fa42c41df8278c3d280f075eb020c | /stage0/src/Lean/Meta/Tactic/Clear.lean | 079bae90ac5171c451009ecf608db45aef032161 | [
"Apache-2.0",
"LLVM-exception",
"NCSA",
"LGPL-3.0-only",
"LicenseRef-scancode-inner-net-2.0",
"BSD-3-Clause",
"LGPL-2.0-or-later",
"Spencer-94",
"LGPL-2.1-or-later",
"HPND",
"LicenseRef-scancode-pcre",
"ISC",
"LGPL-2.1-only",
"LicenseRef-scancode-other-permissive",
"SunPro",
"CMU-Mach"... | permissive | cipher1024/lean4 | 6e1f98bb58e7a92b28f5364eb38a14c8d0aae393 | 69114d3b50806264ef35b57394391c3e738a9822 | refs/heads/master | 1,642,227,983,603 | 1,642,011,696,000 | 1,642,011,696,000 | 228,607,691 | 0 | 0 | Apache-2.0 | 1,576,584,269,000 | 1,576,584,268,000 | null | UTF-8 | Lean | false | false | 1,626 | lean | /-
Copyright (c) 2020 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Leonardo de Moura
-/
import Lean.Meta.Tactic.Util
namespace Lean.Meta
def clear (mvarId : MVarId) (fvarId : FVarId) : MetaM MVarId :=
withMVarContext mvarId do
checkNotA... |
ede2d87aae83709fe651750d1b4eb6b783dace74 | b9d8165d695e844c92d9d4cdcac7b5ab9efe09f7 | /src/analysis/calculus/mean_value.lean | b769eefab5f694e785ab8b4092d5405855b15e9b | [
"Apache-2.0"
] | permissive | spapinistarkware/mathlib | e917d9c44bf85ef51db18e7a11615959f714efc5 | 0a9a1ff463a1f26e27d7c391eb7f6334f0d90383 | refs/heads/master | 1,606,808,129,547 | 1,577,478,369,000 | 1,577,478,369,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 10,979 | 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, Yury Kudryashov
-/
import analysis.calculus.local_extr
/-!
# The mean value inequality and equalities
In this file we prove the following facts:
* `convex.nor... |
6622655a53fcda2f50ef167e86c52cd0678462d1 | 9028d228ac200bbefe3a711342514dd4e4458bff | /src/algebra/group/units.lean | 4fbd6325ea83d202040b6f08d6c3552957ba458c | [
"Apache-2.0"
] | permissive | mcncm/mathlib | 8d25099344d9d2bee62822cb9ed43aa3e09fa05e | fde3d78cadeec5ef827b16ae55664ef115e66f57 | refs/heads/master | 1,672,743,316,277 | 1,602,618,514,000 | 1,602,618,514,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 11,948 | lean | /-
Copyright (c) 2017 Kenny Lau. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Kenny Lau, Mario Carneiro, Johannes Hölzl, Chris Hughes, Jens Wagemaker
-/
import algebra.group.basic
/-!
# Units (i.e., invertible elements) of a multiplicative monoid
-/
universe u
vari... |
d323fed75fa447098292ed1533c7bf37aad7f265 | 5749d8999a76f3a8fddceca1f6941981e33aaa96 | /src/topology/sequences.lean | 1fccdc192650b302e36e94d481c91288ba2d5f12 | [
"Apache-2.0"
] | permissive | jdsalchow/mathlib | 13ab43ef0d0515a17e550b16d09bd14b76125276 | 497e692b946d93906900bb33a51fd243e7649406 | refs/heads/master | 1,585,819,143,348 | 1,580,072,892,000 | 1,580,072,892,000 | 154,287,128 | 0 | 0 | Apache-2.0 | 1,540,281,610,000 | 1,540,281,609,000 | null | UTF-8 | Lean | false | false | 9,567 | lean | /-
Copyright (c) 2018 Jan-David Salchow. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Jan-David Salchow
-/
import topology.basic
import topology.bases
/-!
# Sequences in topological spaces
In this file we define sequences in topological spaces and show how they ar... |
33588bea7a5a2620e8943a6016ae1c187b066051 | 94e33a31faa76775069b071adea97e86e218a8ee | /src/number_theory/modular_forms/slash_actions.lean | afb5f4d58ef8f927c8d1ec03e89f7919545d6c05 | [
"Apache-2.0"
] | permissive | urkud/mathlib | eab80095e1b9f1513bfb7f25b4fa82fa4fd02989 | 6379d39e6b5b279df9715f8011369a301b634e41 | refs/heads/master | 1,658,425,342,662 | 1,658,078,703,000 | 1,658,078,703,000 | 186,910,338 | 0 | 0 | Apache-2.0 | 1,568,512,083,000 | 1,557,958,709,000 | Lean | UTF-8 | Lean | false | false | 5,090 | lean | /-
Copyright (c) 2022 Chris Birkbeck. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Chris Birkbeck
-/
import analysis.complex.upper_half_plane.basic
import linear_algebra.general_linear_group
import linear_algebra.special_linear_group
/-!
# Slash actions
This file d... |
0200863654a6eae9393e98b0e16877ae2b9f5d27 | 4f065978c49388d188224610d9984673079f7d91 | /Atiyah.lean | 7e9711507e2a855e92bcc3ee823d971319d41d83 | [] | no_license | kckennylau/Lean | b323103f52706304907adcfaee6f5cb8095d4a33 | 907d0a4d2bd8f23785abd6142ad53d308c54fdcb | refs/heads/master | 1,624,623,720,653 | 1,563,901,820,000 | 1,563,901,820,000 | 109,506,702 | 3 | 1 | null | null | null | null | UTF-8 | Lean | false | false | 68,519 | lean | import algebra.ring algebra.field data.set.basic order.zorn tactic.norm_num tactic.ring
universes u v w
section set_rewrite
variable {α : Type u}
theorem eq_of_mem_singleton {x y : α} (h : x ∈ ({y} : set α)) : x = y :=
or.cases_on h id false.elim
@[simp] theorem mem_singleton (a : α) : a ∈ ({a} : set α) :=
or.inl ... |
57825743d852c3dac2e13b2045d1d9a9ac837be6 | 82e44445c70db0f03e30d7be725775f122d72f3e | /src/measure_theory/l2_space.lean | 75f8061b1a679b1794016c18a28418c0caa3bc8d | [
"Apache-2.0"
] | permissive | stjordanis/mathlib | 51e286d19140e3788ef2c470bc7b953e4991f0c9 | 2568d41bca08f5d6bf39d915434c8447e21f42ee | refs/heads/master | 1,631,748,053,501 | 1,627,938,886,000 | 1,627,938,886,000 | 228,728,358 | 0 | 0 | Apache-2.0 | 1,576,630,588,000 | 1,576,630,587,000 | null | UTF-8 | Lean | false | false | 10,180 | lean | /-
Copyright (c) 2021 Rémy Degenne. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Rémy Degenne
-/
import analysis.normed_space.inner_product
import measure_theory.set_integral
/-! # `L^2` space
If `E` is an inner product space over `𝕜` (`ℝ` or `ℂ`), then `Lp E 2 μ`... |
d5fe726728fcda723e74de653b3ef7d2951d7abc | a4673261e60b025e2c8c825dfa4ab9108246c32e | /stage0/src/Lean/Meta/GeneralizeTelescope.lean | e522a4cd6989abb6563f3d8314c5e302506817f2 | [
"Apache-2.0"
] | permissive | jcommelin/lean4 | c02dec0cc32c4bccab009285475f265f17d73228 | 2909313475588cc20ac0436e55548a4502050d0a | refs/heads/master | 1,674,129,550,893 | 1,606,415,348,000 | 1,606,415,348,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 3,867 | lean | /-
Copyright (c) 2020 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Leonardo de Moura
-/
import Lean.Meta.KAbstract
namespace Lean.Meta
namespace GeneralizeTelescope
structure Entry :=
(expr : Expr)
(type : Expr)
(modified : Bool... |
f1aa7552a36a89d6a723895ee1c8b12ed1754700 | bb31430994044506fa42fd667e2d556327e18dfe | /src/linear_algebra/dimension.lean | b3710244f1164928a8af3e701891185f1e22d4e8 | [
"Apache-2.0"
] | permissive | sgouezel/mathlib | 0cb4e5335a2ba189fa7af96d83a377f83270e503 | 00638177efd1b2534fc5269363ebf42a7871df9a | refs/heads/master | 1,674,527,483,042 | 1,673,665,568,000 | 1,673,665,568,000 | 119,598,202 | 0 | 0 | null | 1,517,348,647,000 | 1,517,348,646,000 | null | UTF-8 | Lean | false | false | 53,170 | lean | /-
Copyright (c) 2018 Mario Carneiro. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Mario Carneiro, Johannes Hölzl, Sander Dahmen, Scott Morrison
-/
import algebra.module.big_operators
import linear_algebra.dfinsupp
import linear_algebra.invariant_basis_number
import ... |
d9c1b4ad9ba5b373c2fbc01a10f9308fb47b29ee | 78630e908e9624a892e24ebdd21260720d29cf55 | /src/logic_propositional/prop_12.lean | 75b607738d809470f4c049447dfe2de8ac319054 | [
"CC0-1.0"
] | permissive | tomasz-lisowski/lean-logic-examples | 84e612466776be0a16c23a0439ff8ef6114ddbe1 | 2b2ccd467b49c3989bf6c92ec0358a8d6ee68c5d | refs/heads/master | 1,683,334,199,431 | 1,621,938,305,000 | 1,621,938,305,000 | 365,041,573 | 1 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 523 | lean | namespace prop_12
variables A B C : Prop
theorem prop_12 : (A → (B → C)) → ((B ∧ ¬ C) → ¬ A) :=
assume h1: A → (B → C),
assume h2: B ∧ ¬ C,
have h3: B, from and.left h2,
have h4: ¬ C, from and.right h2,
have h5: ¬ (B → C), from
(assume h6: B → C,
have h7: C, from h6 h3,
h4 h7),
show ¬ A, from (classical... |
2dd01f4c116605392d3343664ff7b93c68421703 | 206422fb9edabf63def0ed2aa3f489150fb09ccb | /src/ring_theory/jacobson.lean | f3645530aa1aafe6ce732818d4eef1da7b143795 | [
"Apache-2.0"
] | permissive | hamdysalah1/mathlib | b915f86b2503feeae268de369f1b16932321f097 | 95454452f6b3569bf967d35aab8d852b1ddf8017 | refs/heads/master | 1,677,154,116,545 | 1,611,797,994,000 | 1,611,797,994,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 35,431 | lean | /-
Copyright (c) 2020 Devon Tuma. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Devon Tuma
-/
import data.mv_polynomial
import ring_theory.ideal.over
import ring_theory.jacobson_ideal
import ring_theory.localization
/-!
# Jacobson Rings
The following conditions are e... |
7a303bccc761a96fa0d73087f8b55032d28cf593 | d1a52c3f208fa42c41df8278c3d280f075eb020c | /tests/lean/run/meta1.lean | 16f44d98150bbd0260a2c74016cc76d58e2123be | [
"Apache-2.0",
"LLVM-exception",
"NCSA",
"LGPL-3.0-only",
"LicenseRef-scancode-inner-net-2.0",
"BSD-3-Clause",
"LGPL-2.0-or-later",
"Spencer-94",
"LGPL-2.1-or-later",
"HPND",
"LicenseRef-scancode-pcre",
"ISC",
"LGPL-2.1-only",
"LicenseRef-scancode-other-permissive",
"SunPro",
"CMU-Mach"... | permissive | cipher1024/lean4 | 6e1f98bb58e7a92b28f5364eb38a14c8d0aae393 | 69114d3b50806264ef35b57394391c3e738a9822 | refs/heads/master | 1,642,227,983,603 | 1,642,011,696,000 | 1,642,011,696,000 | 228,607,691 | 0 | 0 | Apache-2.0 | 1,576,584,269,000 | 1,576,584,268,000 | null | UTF-8 | Lean | false | false | 4,616 | lean | import Lean.Meta
open Lean
open Lean.Meta
unsafe def tstInferType (mods : List Name) (e : Expr) : IO Unit :=
withImportModules (mods.map $ fun m => {module := m}) {} 0 fun env => do
let (type, _, _) ← (inferType e : MetaM _).toIO {} { env := env } {} {};
IO.println (toString e ++ " : " ++ toString type)
unsafe... |
54ced187760a6569542af89ece28faa66f9767e9 | 74addaa0e41490cbaf2abd313a764c96df57b05d | /Mathlib/Lean3Lib/init/meta/relation_tactics_auto.lean | 6710b5a818f00c4a2697a10739ff35e52a7c1965 | [] | no_license | AurelienSaue/Mathlib4_auto | f538cfd0980f65a6361eadea39e6fc639e9dae14 | 590df64109b08190abe22358fabc3eae000943f2 | refs/heads/master | 1,683,906,849,776 | 1,622,564,669,000 | 1,622,564,669,000 | 371,723,747 | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 316 | lean | /-
Copyright (c) 2016 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Leonardo de Moura
-/
import Mathlib.PrePort
import Mathlib.Lean3Lib.init.meta.tactic
import Mathlib.Lean3Lib.init.function
namespace Mathlib
namespace tactic
end Mathlib |
7b791906c1299b9253b6d7fb1be646fa26b4b2c9 | cf39355caa609c0f33405126beee2739aa3cb77e | /library/init/control/id.lean | 33787f7110afc0f5efd4688a4d514c780dfb8c0e | [
"Apache-2.0"
] | permissive | leanprover-community/lean | 12b87f69d92e614daea8bcc9d4de9a9ace089d0e | cce7990ea86a78bdb383e38ed7f9b5ba93c60ce0 | refs/heads/master | 1,687,508,156,644 | 1,684,951,104,000 | 1,684,951,104,000 | 169,960,991 | 457 | 107 | Apache-2.0 | 1,686,744,372,000 | 1,549,790,268,000 | C++ | UTF-8 | Lean | false | false | 437 | lean | /-
Copyright (c) 2017 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Sebastian Ullrich
The identity monad.
-/
prelude
import init.control.lift
universe u
@[inline] def id_bind {α β : Type u} (x : α) (f : α → id β) : id β := f x
@[inline] insta... |
a3363f2f650fa3738827caf08e0a225198b7d30c | 46125763b4dbf50619e8846a1371029346f4c3db | /src/topology/subset_properties.lean | 4e9092d316b5483d6abf3a86ad6492170b93f922 | [
"Apache-2.0"
] | permissive | thjread/mathlib | a9d97612cedc2c3101060737233df15abcdb9eb1 | 7cffe2520a5518bba19227a107078d83fa725ddc | refs/heads/master | 1,615,637,696,376 | 1,583,953,063,000 | 1,583,953,063,000 | 246,680,271 | 0 | 0 | Apache-2.0 | 1,583,960,875,000 | 1,583,960,875,000 | null | UTF-8 | Lean | false | false | 52,831 | 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, Yury Kudryashov
-/
import topology.continuous_on
/-!
# Properties of subsets of topological spaces
## Main definitions
`compact`, `is_clopen`, `is_i... |
cf3c239b19b24ec2a0e422b423a1fdfde4eb1e04 | 3f1a1d97c03bb24b55a1b9969bb4b3c619491d5a | /library/init/meta/simp_tactic.lean | 4a396ce54b26f9d02f5e6800052070bcfdc61435 | [
"Apache-2.0"
] | permissive | praveenmunagapati/lean | 00c3b4496cef8e758396005013b9776bb82c4f56 | fc760f57d20e0a486d14bc8a08d89147b60f530c | refs/heads/master | 1,630,692,342,183 | 1,515,626,222,000 | 1,515,626,222,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 21,570 | lean | /-
Copyright (c) 2016 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Leonardo de Moura
-/
prelude
import init.meta.tactic init.meta.attribute init.meta.constructor_tactic
import init.meta.relation_tactics init.meta.occurrences
import init.data.op... |
ce4f64622f6b5a27efcd5a5ccb0d8aa5d6d11cab | 947b78d97130d56365ae2ec264df196ce769371a | /src/Lean/Modifiers.lean | c6d37360e62f8c37cec205b89145ddafa26e61ba | [
"Apache-2.0"
] | permissive | shyamalschandra/lean4 | 27044812be8698f0c79147615b1d5090b9f4b037 | 6e7a883b21eaf62831e8111b251dc9b18f40e604 | refs/heads/master | 1,671,417,126,371 | 1,601,859,995,000 | 1,601,860,020,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 2,617 | lean | /-
Copyright (c) 2019 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Leonardo de Moura
-/
import Lean.Environment
namespace Lean
def mkProtectedExtension : IO TagDeclarationExtension :=
mkTagDeclarationExtension `protected
@[init mkProtectedEx... |
d32e906391dc9a7a52668f44c0e7461c9f62abbb | bb31430994044506fa42fd667e2d556327e18dfe | /src/topology/order/basic.lean | 3e2512eff625d75a94356d0a713e2fd81d767722 | [
"Apache-2.0"
] | permissive | sgouezel/mathlib | 0cb4e5335a2ba189fa7af96d83a377f83270e503 | 00638177efd1b2534fc5269363ebf42a7871df9a | refs/heads/master | 1,674,527,483,042 | 1,673,665,568,000 | 1,673,665,568,000 | 119,598,202 | 0 | 0 | null | 1,517,348,647,000 | 1,517,348,646,000 | null | UTF-8 | Lean | false | false | 127,005 | 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, Yury Kudryashov
-/
import data.set.intervals.pi
import data.set.pointwise.interval
import order.filter.interval
import topology.algebra.group.basic
impo... |
4af9634b5465db69d3db78d06604efcca32b8553 | 4727251e0cd73359b15b664c3170e5d754078599 | /src/number_theory/liouville/basic.lean | c58cfb8886f4ca5b5636f8ae02c5a292394861c0 | [
"Apache-2.0"
] | permissive | Vierkantor/mathlib | 0ea59ac32a3a43c93c44d70f441c4ee810ccceca | 83bc3b9ce9b13910b57bda6b56222495ebd31c2f | refs/heads/master | 1,658,323,012,449 | 1,652,256,003,000 | 1,652,256,003,000 | 209,296,341 | 0 | 1 | Apache-2.0 | 1,568,807,655,000 | 1,568,807,655,000 | null | UTF-8 | Lean | false | false | 12,289 | lean | /-
Copyright (c) 2020 Jujian Zhang. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Damiano Testa, Jujian Zhang
-/
import analysis.calculus.mean_value
import data.polynomial.denoms_clearable
import data.real.irrational
/-!
# Liouville's theorem
This file contains a pr... |
eb281755cc9ef5c31b0a4bda15841400d90890cd | 94e33a31faa76775069b071adea97e86e218a8ee | /src/algebra/group_with_zero/power.lean | a80f4d1b5b06c990848dc3b0ede85ab77858e968 | [
"Apache-2.0"
] | permissive | urkud/mathlib | eab80095e1b9f1513bfb7f25b4fa82fa4fd02989 | 6379d39e6b5b279df9715f8011369a301b634e41 | refs/heads/master | 1,658,425,342,662 | 1,658,078,703,000 | 1,658,078,703,000 | 186,910,338 | 0 | 0 | Apache-2.0 | 1,568,512,083,000 | 1,557,958,709,000 | Lean | UTF-8 | Lean | false | false | 6,563 | 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 algebra.group_power.lemmas
/-!
# Powers of elements of groups with an adjoined zero element
In this file we define integer power functions for groups with an... |
bfb8866664113ac310bf893647fffc792c49ae9c | c09f5945267fd905e23a77be83d9a78580e04a4a | /src/topology/uniform_space/basic.lean | 3b8f8a55ea8e42b13609c73615ea7f16759bc83f | [
"Apache-2.0"
] | permissive | OHIHIYA20/mathlib | 023a6df35355b5b6eb931c404f7dd7535dccfa89 | 1ec0a1f49db97d45e8666a3bf33217ff79ca1d87 | refs/heads/master | 1,587,964,529,965 | 1,551,819,319,000 | 1,551,819,319,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 42,979 | 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
Theory of uniform spaces.
Uniform spaces are a generalization of metric spaces and topological groups. Many concepts directly
generaliz... |
f2c3234a32747749db0668184a2585a00a851401 | cf39355caa609c0f33405126beee2739aa3cb77e | /tests/lean/bad_error5.lean | 13a5f18fe5138b64e5c3f2fe3f6410ae1bbe3122 | [
"Apache-2.0"
] | permissive | leanprover-community/lean | 12b87f69d92e614daea8bcc9d4de9a9ace089d0e | cce7990ea86a78bdb383e38ed7f9b5ba93c60ce0 | refs/heads/master | 1,687,508,156,644 | 1,684,951,104,000 | 1,684,951,104,000 | 169,960,991 | 457 | 107 | Apache-2.0 | 1,686,744,372,000 | 1,549,790,268,000 | C++ | UTF-8 | Lean | false | false | 159 | lean | structure S :=
(α : Type)
(β : unit)
structure T (c : S)
structure U (c: S) (A : c^.α)
definition V (c : S) : S :=
{
α := T c,
β := by sorry
}
|
f7dcceade5fe9741da924ae2db666d29cd04cb9c | 00d2363f9655e2a7618f6b94dda7e2c4e5cf8d19 | /lean_modifications/tactic_modifications.lean | 8c9023ce898164dce1ac080c2e879389705866e4 | [
"Apache-2.0"
] | permissive | devjuice1/lean_proof_recording | 927e276e2ab8fb1288f51d9146dcfbf0d6444a87 | bf7c527315deccd35363fa7ca89d97d7b9cb6ac1 | refs/heads/master | 1,692,914,925,585 | 1,633,018,872,000 | 1,633,018,872,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 11,651 | lean | /- This is a staging area for code which will be inserted
into a Lean file.
The code to be inserted is between the line comments
`PR BEGIN MODIFICATION` and `PR END MODIFICATION`
It will be inserted by `insert_proof_recording_code.py`.
Insert info:
- file: `_target/lean/library/init/meta/tactic.lean`
- location... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.