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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
a3cd6da75de7915135cacb7cdac8da9fdc1f6a44 | 07c76fbd96ea1786cc6392fa834be62643cea420 | /hott/cubical/cube.hlean | 151413e06df8dfb98f2ece95c2d2b5cb4159d7ef | [
"Apache-2.0"
] | permissive | fpvandoorn/lean2 | 5a430a153b570bf70dc8526d06f18fc000a60ad9 | 0889cf65b7b3cebfb8831b8731d89c2453dd1e9f | refs/heads/master | 1,592,036,508,364 | 1,545,093,958,000 | 1,545,093,958,000 | 75,436,854 | 0 | 0 | null | 1,480,718,780,000 | 1,480,718,780,000 | null | UTF-8 | Lean | false | false | 21,575 | hlean | /-
Copyright (c) 2015 Floris van Doorn. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Author: Floris van Doorn, Jakob von Raumer
Cubes
-/
import .square
open equiv is_equiv sigma sigma.ops
namespace eq
inductive cube {A : Type} {aโโโ : A} : ฮ {aโโโ aโโโ aโโโ aโโโ aโโโ aโ... |
c8fee26357b8e4abda59c5d5d5d6d67d38feaa32 | c76cc4eaee3c806716844e49b5175747d1aa170a | /src/solutions_sheet_two_old.lean | 01f6604860bb7733e296a0827f67dd7b669cfb4f | [] | no_license | ImperialCollegeLondon/M40002 | 0fb55848adbb0d8bc4a65ca5d7ed6edd18764c28 | a499db70323bd5ccae954c680ec9afbf15ffacca | refs/heads/master | 1,674,878,059,748 | 1,607,624,828,000 | 1,607,624,828,000 | 309,696,750 | 3 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 5,582 | lean | import data.real.basic
/-!
# Q3
Take bounded, nonempty `S, T โ โ`.
Define `S + T := { s + t : s โ S, t โ T}`.
Prove `sup(S+T) = sup(S)+ sup(T)`
-/
theorem is_lub_def {S : set โ} {a : โ} :
is_lub S a โ a โ upper_bounds S โง โ x, x โ upper_bounds S โ a โค x :=
begin
refl
end
#check mem_upper_bounds -- a โ uppe... |
019b35c7575652274b14d4bb781e88166c403657 | 9631e35ca5dd719ccc7d3a57ec322fd93d6a0776 | /src/noneuclidean_maze/level.lean | 9cf2b62c3053dd8f3c0931bfbccfa474ea92e45b | [] | no_license | kbuzzard/maze-game | 123fa47e0262edb6d147178d239a345d847ff147 | 362ab394ae5218c43b24232aaeef08efc0067eab | refs/heads/master | 1,670,131,466,823 | 1,598,546,702,000 | 1,598,546,702,000 | 290,744,081 | 5 | 1 | null | 1,598,546,703,000 | 1,598,523,538,000 | Lean | UTF-8 | Lean | false | false | 563 | lean | -- import the definition of the example maze
import noneuclidean_maze.definition
/-!
# Non-euclidean maze.
You are in a maze of twisty passages, all distinct.
You can go north, south east or west.
If you hit the wall there's an error.
When you're at the exit, type `out`.
-/
open maze direction
/- Solver remark... |
ddd49121923a37f9eddcf21c195b0101ee94ea0d | 8cda3dace895437437849285448ae2a3515126f2 | /src/parse_formula2.lean | 59c6dc9914949558e7e748f8e6b5345c110caafb | [
"Apache-2.0"
] | permissive | jesse-michael-han/lean-parser-combinators | cbaeaa9be32dd804f9bcb71a8bbd3d3c046c65f6 | d0dff9149a85a150679aa2145c4ffe2ac1ae5c0b | refs/heads/master | 1,592,121,439,883 | 1,564,418,867,000 | 1,564,418,867,000 | 194,953,385 | 5 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 25,779 | lean | import .basic
open parser_tactic
universe u
structure Language : Type (u+1) :=
(functions : โ โ Type u) (relations : โ โ Type u)
def Language.constants (L : Language) := L.functions 0
variable (L : Language.{u})
inductive preterm : โ โ Type u
| var {} : โ (k : โ), preterm 0
| func : โ {l : โ} (f : L.functions l),... |
f899eb0c783751efb0d0eaaf05780f2378aedce9 | 63abd62053d479eae5abf4951554e1064a4c45b4 | /src/category_theory/limits/shapes/regular_mono.lean | d0998a65881fa3d263eaccea61bf261eabc7b068 | [
"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 | 14,876 | 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.preserves.basic
import category_theory.limits.shapes.kernels
import category_theory.limits.shapes.strong_epi
import catego... |
5a18675981ae027c6e6f98d7dee255912eeb7f97 | b7f22e51856f4989b970961f794f1c435f9b8f78 | /tests/lean/run/finbug.lean | 39b7cd226be440601712d1cc66f5705c1eb35b17 | [
"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 | 910 | lean | /-
Copyright (c) 2014 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Author: Leonardo de Moura
Finite ordinals.
-/
open nat
inductive fin : nat โ Type :=
| fz : ฮ n, fin (succ n)
| fs : ฮ {n}, fin n โ fin (succ n)
namespace fin
definition to_nat : ฮ ... |
d4410bcb3b7db7c8b14c3c2b9df81688e4adac08 | d406927ab5617694ec9ea7001f101b7c9e3d9702 | /src/data/W/basic.lean | cd30bc7b23bfbe074365229352d9d66888ba51bd | [
"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 | 6,713 | lean | /-
Copyright (c) 2019 Jeremy Avigad. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Jeremy Avigad
-/
import logic.equiv.list
/-!
# W types
Given `ฮฑ : Type` and `ฮฒ : ฮฑ โ Type`, the W type determined by this data, `W_type ฮฒ`, is the
inductively defined type of trees wh... |
d35cbb8f2add85ea24ed5f9cf2e8986bb65fdfb1 | f47872278edfa65030d6cd0604480581b09ae4b5 | /src/ordered/convex.lean | d4842ec91f26d767cb06799f181d1144c47c505e | [
"MIT"
] | permissive | ocornoc/geodude | c822c494d9ed5d6dd2efa434cbaa5e0e42c22691 | e63c87db67f1686c902e9bcd1863e74e1a29457f | refs/heads/master | 1,681,951,483,388 | 1,620,592,363,000 | 1,620,595,412,000 | 287,442,904 | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 16,453 | lean | /-
Copyright 2020 Grayson Burton
License available in the LICENSE file.
-/
import data.set tactic .between
section
universe u
parameters {ฮฑ : Type u} [has_betweenness ฮฑ]
/-- The convex hull of a set. -/
/- thanks chris hughes -/
inductive convex_hull (s : set ฮฑ) : set ฮฑ
| of_set : โ {v}, v โ s โ convex_hull v
| i... |
b8fa077573ee080597fb3828c79bff692c92e458 | ce6917c5bacabee346655160b74a307b4a5ab620 | /src/ch3/ex0310.lean | 4929f359d94e6c455421ec3d215e4cfaa53b3dc8 | [] | no_license | Ailrun/Theorem_Proving_in_Lean | ae6a23f3c54d62d401314d6a771e8ff8b4132db2 | 2eb1b5caf93c6a5a555c79e9097cf2ba5a66cf68 | refs/heads/master | 1,609,838,270,467 | 1,586,846,743,000 | 1,586,846,743,000 | 240,967,761 | 1 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 121 | lean | variables p q : Prop
example (hp : p) : p โจ q := or.intro_left q hp
example (hq : q) : p โจ q := or.intro_right p hq
|
e3e92f215c031ecdc15700cc75c5d682cbb1dcc3 | cf39355caa609c0f33405126beee2739aa3cb77e | /tests/lean/run/doc_string7a.lean | 16de999690223d9a78ca569b27067e42a3594c76 | [
"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 | 13 | lean | /-!a-/
/-!b-/ |
6f05d0caeed429ea467cd7dccb0407435f721b07 | 57c233acf9386e610d99ed20ef139c5f97504ba3 | /src/data/finset/noncomm_prod.lean | d57f06a2e9c809c60b7245e6b9ddd9de198d2062 | [
"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 | 9,499 | lean | /-
Copyright (c) 2021 Yakov Pechersky. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Yakov Pechersky
-/
import algebra.big_operators.basic
/-!
# Products (respectively, sums) over a finset or a multiset.
The regular `finset.prod` and `multiset.prod` require `[comm_... |
4045b083b5fc921d6864069a60d34794c1d46248 | 1abd1ed12aa68b375cdef28959f39531c6e95b84 | /src/geometry/euclidean/triangle.lean | fcc9653a9c8e0fb476e3e8b43eb463a4e9f0bdf4 | [
"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 | 19,294 | lean | /-
Copyright (c) 2020 Joseph Myers. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Joseph Myers, Manuel Candales
-/
import geometry.euclidean.basic
import tactic.interval_cases
/-!
# Triangles
This file proves basic geometrical results about distances and angles
in (... |
8abb716e51268c0649e64a140f832cfad80eaee4 | e2c1ee9c02c59b832eb48536755242ce5f9b2c3e | /src/t4.lean | 9dddb04e8f4b4a0abe7603c7334f3a6c8356fbfd | [] | no_license | yairgueta/Lean | cb5bb16d81674e8a07f85c9dbeb56dc2f543d4eb | af8a4fa24f76edfdd0dd33f013db194e611e6a86 | refs/heads/master | 1,676,275,529,938 | 1,610,289,661,000 | 1,610,289,661,000 | 328,405,309 | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 1,786 | lean | /- Yair Gueta : 208624908 : t4
Exercise 4
-/
---- Question 1
--- Chapter 3:
namespace C3
variables p q r : Prop
-- First proof first try:
example : p โจ false โ p :=
begin
simp,
end
-- First proof 2nd try:
example : p โจ false โ p :=
begin
apply iff.intro,
intro h,
apply or.elim h,
intro hp,... |
00f80f91fb0ddf68acf7c3778ee52e57357599b0 | 4efff1f47634ff19e2f786deadd394270a59ecd2 | /src/data/fintype/card.lean | 98d5fa470416c538cc807d4a5f5bd4a6612acb03 | [
"Apache-2.0"
] | permissive | agjftucker/mathlib | d634cd0d5256b6325e3c55bb7fb2403548371707 | 87fe50de17b00af533f72a102d0adefe4a2285e8 | refs/heads/master | 1,625,378,131,941 | 1,599,166,526,000 | 1,599,166,526,000 | 160,748,509 | 0 | 0 | Apache-2.0 | 1,544,141,789,000 | 1,544,141,789,000 | null | UTF-8 | Lean | false | false | 16,270 | lean | /-
Copyright (c) 2017 Mario Carneiro. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Author: Mario Carneiro
-/
import data.fintype.basic
import algebra.big_operators.ring
/-!
Results about "big operations" over a `fintype`, and consequent
results about cardinalities of certain... |
8442d4e1a930e368aa803a223b488a5186e42ef5 | 4d2583807a5ac6caaffd3d7a5f646d61ca85d532 | /src/topology/metric_space/lipschitz.lean | 92577ae820f1494f2689ce67e6ff49c0c97a610d | [
"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 | 19,363 | lean | /-
Copyright (c) 2018 Rohan Mitta. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Rohan Mitta, Kevin Buzzard, Alistair Tucker, Johannes Hรถlzl, Yury Kudryashov
-/
import logic.function.iterate
import data.set.intervals.proj_Icc
import topology.metric_space.basic
import ... |
c65e3d4d7aa7a45e6dd75b07bafd13e15e150567 | fa02ed5a3c9c0adee3c26887a16855e7841c668b | /src/data/dfinsupp.lean | 58d73ed824e12342e3ee2e06af6dc7ff55990284 | [
"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 | 49,931 | lean | /-
Copyright (c) 2018 Kenny Lau. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Johannes Hรถlzl, Kenny Lau
-/
import algebra.module.pi
import algebra.big_operators.basic
import data.set.finite
import group_theory.submonoid.basic
/-!
# Dependent functions with finite su... |
91c9fdfd80193bd79ae377f5e74d6c1c74680e75 | 947fa6c38e48771ae886239b4edce6db6e18d0fb | /src/linear_algebra/dual.lean | 854ecd539f6827f4c83b2d908c4e1c1b3f2b6404 | [
"Apache-2.0"
] | permissive | ramonfmir/mathlib | c5dc8b33155473fab97c38bd3aa6723dc289beaa | 14c52e990c17f5a00c0cc9e09847af16fabbed25 | refs/heads/master | 1,661,979,343,526 | 1,660,830,384,000 | 1,660,830,384,000 | 182,072,989 | 0 | 0 | null | 1,555,585,876,000 | 1,555,585,876,000 | null | UTF-8 | Lean | false | false | 30,561 | lean | /-
Copyright (c) 2019 Johan Commelin. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Johan Commelin, Fabian Glรถckle
-/
import linear_algebra.finite_dimensional
import linear_algebra.projection
import linear_algebra.sesquilinear_form
import ring_theory.finiteness
import... |
eac5d18a666f2612824a9b41d07f029b4461dce3 | 437dc96105f48409c3981d46fb48e57c9ac3a3e4 | /src/analysis/asymptotics.lean | 0fba9794693f5a0bb4dca370fc0d749968f7071c | [
"Apache-2.0"
] | permissive | dan-c-k/mathlib | 08efec79bd7481ee6da9cc44c24a653bff4fbe0d | 96efc220f6225bc7a5ed8349900391a33a38cc56 | refs/heads/master | 1,658,082,847,093 | 1,589,013,201,000 | 1,589,013,201,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 44,867 | lean | /-
Copyright (c) 2019 Jeremy Avigad. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Jeremy Avigad, Yury Kudryashov
-/
import analysis.normed_space.basic
import topology.local_homeomorph
/-!
# Asymptotics
We introduce these relations:
* `is_O_with c f g l` : "f is bi... |
13393cdb7fd901d3b51d3746162ded6340b983e1 | b7f22e51856f4989b970961f794f1c435f9b8f78 | /library/standard.lean | 82b228ac30e31126c65e79beb88fe36109d0d5b5 | [
"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 | 240 | lean | /-
Copyright (c) 2014 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Leonardo de Moura, Jeremy Avigad
The constructive core of Lean's library.
-/
import logic data
|
4a70dc940020a939f5ef97d78ac6529fde0c8dcf | d9d511f37a523cd7659d6f573f990e2a0af93c6f | /src/analysis/convex/topology.lean | 2da44f81909bcdbda94f3845d7d2afd8f30c7400 | [
"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 | 9,639 | lean | /-
Copyright (c) 2020 Yury Kudryashov. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Alexander Bentkamp, Yury Kudriashov
-/
import analysis.convex.combination
import analysis.normed_space.finite_dimension
import topology.path_connected
/-!
# Topological and metric pr... |
16e5459a09eccebb0c1c35851c0b449d7d4e9339 | 69d4931b605e11ca61881fc4f66db50a0a875e39 | /src/algebra/lie/classical.lean | 7ab091bfc901d6895d31cb54d377e127d297e97c | [
"Apache-2.0"
] | permissive | abentkamp/mathlib | d9a75d291ec09f4637b0f30cc3880ffb07549ee5 | 5360e476391508e092b5a1e5210bd0ed22dc0755 | refs/heads/master | 1,682,382,954,948 | 1,622,106,077,000 | 1,622,106,077,000 | 149,285,665 | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 13,519 | lean | /-
Copyright (c) 2020 Oliver Nash. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Oliver Nash
-/
import algebra.invertible
import algebra.lie.skew_adjoint
import algebra.lie.abelian
import linear_algebra.matrix.trace
/-!
# Classical Lie algebras
This file is the plac... |
2da2698abab9e693801c5001c046388157e54c76 | 94e33a31faa76775069b071adea97e86e218a8ee | /src/data/polynomial/degree/trailing_degree.lean | 2b30c3abde035c663283873804d745cbc41dd75d | [
"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 | 15,974 | lean | /-
Copyright (c) 2020 Damiano Testa. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Damiano Testa
-/
import data.polynomial.degree.definitions
/-!
# Trailing degree of univariate polynomials
## Main definitions
* `trailing_degree p`: the multiplicity of `X` in the p... |
6fc02514d3a00760b72ce4850af589ba91e156a3 | 6432ea7a083ff6ba21ea17af9ee47b9c371760f7 | /tests/lean/run/lcnfInferProjTypeIssue.lean | 4f070a5248f9a4e1dff0ee5226a2cf2e4f374809 | [
"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 | 1,811 | lean | import Lean
structure Vec2 where
(x y : Float)
instance : Add Vec2 :=
โจฮป โจxโ,xโโฉ โจyโ, yโโฉ => โจxโ+yโ, xโ+yโโฉโฉ
instance : HMul Float Vec2 Vec2 :=
โจฮป s โจxโ,xโโฉ => โจs*xโ, s*xโโฉโฉ
def NFloatArray (n : Nat) := {a : FloatArray // a.size = n}
instance {n} : Add (NFloatArray n) :=
โจฮป x y => Id.run do
let mut x := ... |
de629f52ca1976ce2632b118c73496277a0120a0 | 8cae430f0a71442d02dbb1cbb14073b31048e4b0 | /src/category_theory/limits/shapes/zero_objects.lean | cd8c7ee3cf8a5747f4d80ce294be8c69bff7f7bb | [
"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 | 9,098 | lean | /-
Copyright (c) 2019 Scott Morrison. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Scott Morrison, Johan Commelin
-/
import category_theory.limits.shapes.terminal
/-!
# Zero objects
> THIS FILE IS SYNCHRONIZED WITH MATHLIB4.
> Any changes to this file require a cor... |
c2c86be93fef285dfa8381d3cbe41e3497ce6418 | 4fa161becb8ce7378a709f5992a594764699e268 | /src/tactic/monotonicity/lemmas.lean | 069527da642e50969f45d35bbf7fb6301c6f289a | [
"Apache-2.0"
] | permissive | laughinggas/mathlib | e4aa4565ae34e46e834434284cb26bd9d67bc373 | 86dcd5cda7a5017c8b3c8876c89a510a19d49aad | refs/heads/master | 1,669,496,232,688 | 1,592,831,995,000 | 1,592,831,995,000 | 274,155,979 | 0 | 0 | Apache-2.0 | 1,592,835,190,000 | 1,592,835,189,000 | null | UTF-8 | Lean | false | false | 1,866 | lean | /-
Copyright (c) 2019 Simon Hudon. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Author: Simon Hudon
-/
import tactic.monotonicity.basic
import data.set.lattice
variables {ฮฑ : Type*}
@[mono]
lemma mul_mono_nonneg {x y z : ฮฑ} [ordered_semiring ฮฑ]
(h' : 0 โค z)
(h : x โค y)
... |
d9da169075fee32f989faaac79ddd6645b953a58 | 74addaa0e41490cbaf2abd313a764c96df57b05d | /Mathlib/Lean3Lib/init/meta/tactic_auto.lean | f2b8197cd883470b8d47f05c9ced60fc4212fdd4 | [] | 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 | 20,159 | 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.function
import Mathlib.Lean3Lib.init.data.option.basic
import Mathlib.Lean3Lib.init.util
import Mathlib... |
29c60acbc64f2544aad54741b6104591f79c698e | 69d4931b605e11ca61881fc4f66db50a0a875e39 | /src/set_theory/ordinal.lean | f935d6bcd5fa6a5f473f342db4a6e04fb4a15962 | [
"Apache-2.0"
] | permissive | abentkamp/mathlib | d9a75d291ec09f4637b0f30cc3880ffb07549ee5 | 5360e476391508e092b5a1e5210bd0ed22dc0755 | refs/heads/master | 1,682,382,954,948 | 1,622,106,077,000 | 1,622,106,077,000 | 149,285,665 | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 56,685 | lean | /-
Copyright (c) 2017 Johannes Hรถlzl. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Mario Carneiro, Floris van Doorn
-/
import set_theory.cardinal
/-!
# Ordinals
Ordinals are defined as equivalences of well-ordered sets under order isomorphism. They are endowed
with... |
994a5d6cab26ff5ac4f6677627806460d7ed1943 | 302c785c90d40ad3d6be43d33bc6a558354cc2cf | /src/analysis/convex/extrema.lean | d39ead2605b91ca1f600a130c5e9b4aab187d58b | [
"Apache-2.0"
] | permissive | ilitzroth/mathlib | ea647e67f1fdfd19a0f7bdc5504e8acec6180011 | 5254ef14e3465f6504306132fe3ba9cec9ffff16 | refs/heads/master | 1,680,086,661,182 | 1,617,715,647,000 | 1,617,715,647,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 5,427 | lean | /-
Copyright (c) 2020 Frรฉdรฉric Dupuis. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Frรฉdรฉric Dupuis
-/
import analysis.calculus.local_extr
import topology.algebra.affine
/-!
# Minima and maxima of convex functions
We show that if a function `f : E โ ฮฒ` is convex, ... |
8106f03db6ca2a9e4d77a7e840c069f084504245 | 32025d5c2d6e33ad3b6dd8a3c91e1e838066a7f7 | /src/Lean/Util/PPGoal.lean | 9265025808a27c7d9d1cabe353840b33d1bfa1a9 | [
"Apache-2.0"
] | permissive | walterhu1015/lean4 | b2c71b688975177402758924eaa513475ed6ce72 | 2214d81e84646a905d0b20b032c89caf89c737ad | refs/heads/master | 1,671,342,096,906 | 1,599,695,985,000 | 1,599,695,985,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 2,324 | lean | /-
Copyright (c) 2020 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Author: Leonardo de Moura
-/
import Lean.Util.PPExt
namespace Lean
def ppGoal (env : Environment) (mctx : MetavarContext) (opts : Options) (mvarId : MVarId) : Format :=
match mctx.find... |
6082ca1ee0e21eac88e3901669f991ae5a631c08 | 1901b51268d21ec7361af7d3534abd9a8fa5cf52 | /src/graph_theory/path_embedding.lean | b6777abf88030ea4ea2ee67b65934382b083d23f | [] | no_license | vbeffara/lean | b9ea4107deeaca6f4da98e5de029b62e4861ab40 | 0004b1d502ac3f4ccd213dbd23589d4c4f9fece8 | refs/heads/main | 1,652,050,034,756 | 1,651,610,858,000 | 1,651,610,858,000 | 225,244,535 | 6 | 1 | null | null | null | null | UTF-8 | Lean | false | false | 7,072 | lean | import graph_theory.path
variables {V V' V'': Type*}
open function
namespace simple_graph
open walk
structure path_embedding (G : simple_graph V) (G' : simple_graph V') :=
(f : V โช V')
(df : ฮ e : G.dart, G'.walk (f e.fst) (f e.snd))
--
(nodup : โ e : G.dart, (df e).support.nodup)
(sym ... |
349263b504615df4db928861fbff0925b9cae25a | 78269ad0b3c342b20786f60690708b6e328132b0 | /src/library_dev/data/num/bitwise.lean | 0ca279f5a77166d2aacd4ced4ee8575fdc8a6196 | [] | no_license | dselsam/library_dev | e74f46010fee9c7b66eaa704654cad0fcd2eefca | 1b4e34e7fb067ea5211714d6d3ecef5132fc8218 | refs/heads/master | 1,610,372,841,675 | 1,497,014,421,000 | 1,497,014,421,000 | 86,526,137 | 0 | 0 | null | 1,490,752,133,000 | 1,490,752,132,000 | null | UTF-8 | Lean | false | false | 4,554 | lean | /-
Copyright (c) 2014 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Author: Mario Carneiro
Bitwise operations using binary representation of integers.
-/
import .basic
namespace pos_num
def lor : pos_num โ pos_num โ pos_num
| 1 (bit0 q) :=... |
22d4bba0c8a476686a226b7b835bf2b88d1f3c93 | 57c233acf9386e610d99ed20ef139c5f97504ba3 | /src/ring_theory/polynomial/pochhammer.lean | 6271571592cf905afbcadf881f66a93604f271be | [
"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 | 6,254 | 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 tactic.abel
import data.polynomial.eval
/-!
# The Pochhammer polynomials
We define and prove some basic relations about
`pochhammer S n : polynomial S := X *... |
b4ed5ca397499fad1f4029885dc44f15617a30eb | a0e23cfdd129a671bf3154ee1a8a3a72bf4c7940 | /tests/lean/doNotation1.lean | 6f7f956a935b4c94218e8a4eb6d1e05a986c78ec | [
"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 | 1,804 | lean | --
def f1 (x : Nat) : IO Nat := do
y := 1 -- error 'y' cannot be reassigned
def f2 (xs : List (Nat ร Nat)) : List (Nat ร Nat) := do
for (x, y) in xs do
(y, x) := (x, y) -- error 'y' (and 'x') cannot be reassigned
def f3 (xs : List (Nat ร Nat)) : List (Nat ร Nat) := do
for p in xs do
p := (p.2, p.1) -- works. `f... |
b9e98eae0372186e1d081bb805a026f2ec0a9d42 | 74addaa0e41490cbaf2abd313a764c96df57b05d | /Mathlib/Lean3Lib/init/meta/task.lean | 9565451d69f7876e1fc60f3a9e77b1e5c1946fd9 | [] | 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 | 187 | lean | import Mathlib.PrePort
import Mathlib.Lean3Lib.init.logic
namespace Mathlib
/-- A task is a promise to produce a value later. They perform the same role as promises in JavaScript. -/
|
e7526b97d394d333bc1f154263d566cd51267bc7 | cf39355caa609c0f33405126beee2739aa3cb77e | /tests/lean/run/destruct.lean | 0260e8951f7e94bc4d95ae760dce68764b25f276 | [
"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 | 964 | lean | universe variables u
inductive Vec (ฮฑ : Type u) : nat โ Type (max 1 u)
| nil : Vec 0
| cons : โ {n}, ฮฑ โ Vec n โ Vec (nat.succ n)
lemma split {ฮฑ : Type u} {n : nat} (v : Vec ฮฑ n) :
(v == (Vec.nil : Vec ฮฑ 0) โง n = 0) โจ โ m h (t : Vec ฮฑ m), v == Vec.cons h t โง n = nat.succ m :=
Vec.cases_on v
(or.inl โจheq.refl _... |
a58a62a985096f7091bb9a78c010aa46d0a47d78 | 367134ba5a65885e863bdc4507601606690974c1 | /src/analysis/special_functions/exp_log.lean | c7f23b16be27e2135383b9a93ad4fe3ebfded8a1 | [
"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 | 34,487 | lean | /-
Copyright (c) 2018 Chris Hughes. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Chris Hughes, Abhimanyu Pallavi Sudhir, Jean Lo, Calle Sรถnne
-/
import data.complex.exponential
import analysis.calculus.inverse
import measure_theory.borel_space
import analysis.complex... |
e60511b416fbfb825507ad5fee7efc3816cf822f | 8cb37a089cdb4af3af9d8bf1002b417e407a8e9e | /library/init/meta/name.lean | e9315d764d20edaab5a4953d4f4d02b399a81a01 | [
"Apache-2.0"
] | permissive | kbuzzard/lean | ae3c3db4bb462d750dbf7419b28bafb3ec983ef7 | ed1788fd674bb8991acffc8fca585ec746711928 | refs/heads/master | 1,620,983,366,617 | 1,618,937,600,000 | 1,618,937,600,000 | 359,886,396 | 1 | 0 | Apache-2.0 | 1,618,936,987,000 | 1,618,936,987,000 | null | UTF-8 | Lean | false | false | 4,103 | 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.data.ordering.basic init.coe init.data.to_string
/-- Reflect a C++ name object. The VM replaces it with the C++ implementation. -/
indu... |
80951affa392eb17a19047835c98335332eb38d5 | 4727251e0cd73359b15b664c3170e5d754078599 | /src/tactic/lint/default.lean | 2db842856f0842b8e47fcb38f32da097711b63bb | [
"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 | 5,114 | lean | /-
Copyright (c) 2020 Floris van Doorn. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Floris van Doorn, Robert Y. Lewis, Gabriel Ebner
-/
import algebra.group.to_additive
import tactic.lint.frontend
import tactic.lint.misc
import tactic.lint.simp
import tactic.lint.ty... |
1b46f8bef67a8811f3e5455cfb764833a077ce0e | 1abd1ed12aa68b375cdef28959f39531c6e95b84 | /src/algebra/order/monoid.lean | 6f6cf54da7a4f43fcf2054443b8d53fb30d70f69 | [
"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 | 39,458 | lean | /-
Copyright (c) 2016 Jeremy Avigad. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Jeremy Avigad, Leonardo de Moura, Mario Carneiro, Johannes Hรถlzl
-/
import algebra.group.with_one
import algebra.group.type_tags
import algebra.group.prod
import algebra.order.monoid_le... |
6b3028bf5efcdb9c062e6d98d41c3e2fd77d114d | 827a8a5c2041b1d7f55e128581f583dfbd65ecf6 | /two_quotient_and_ap.hlean | ecb22b6c68595e0fc29512442afdf71795e0de74 | [
"Apache-2.0"
] | permissive | fpvandoorn/leansnippets | 6af0499f6f3fd2c07e4b580734d77b67574e7c27 | 601bafbe07e9534af76f60994d6bdf741996ef93 | refs/heads/master | 1,590,063,910,882 | 1,545,093,878,000 | 1,545,093,878,000 | 36,044,957 | 2 | 2 | null | 1,442,619,708,000 | 1,432,256,875,000 | Lean | UTF-8 | Lean | false | false | 1,453 | hlean | import hit.two_quotient homotopy.interval
open two_quotient sum unit interval e_closure eq function
namespace test
definition A := interval + unit
inductive R : A โ A โ Type :=
| Rmk0 : R (inl zero) (inr star)
| Rmk1 : R (inl one) (inr star)
open R
-- definition torus_R (x y : unit) := bool
-- local... |
59e0d9f5f9cd2fe50c2edd0d68684fffc39fbe2c | 1446f520c1db37e157b631385707cc28a17a595e | /stage0/src/Init/Lean/Parser/Module.lean | 439db6474dfc90490691bc68b8a2fa08acbe9505 | [
"Apache-2.0"
] | permissive | bdbabiak/lean4 | cab06b8a2606d99a168dd279efdd404edb4e825a | 3f4d0d78b2ce3ef541cb643bbe21496bd6b057ac | refs/heads/master | 1,615,045,275,530 | 1,583,793,696,000 | 1,583,793,696,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 4,771 | 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, Sebastian Ullrich
-/
prelude
import Init.Lean.Message
import Init.Lean.Parser.Command
namespace Lean
namespace Parser
namespace Module
def ยซpreludeยป := par... |
9b9b8d8b49b4e1af98594d35ae362c7131df5712 | 35677d2df3f081738fa6b08138e03ee36bc33cad | /src/tactic/abel.lean | f4add72a28b840c3456dcab988d663e86d32412d | [
"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 | 13,079 | lean | /-
Copyright (c) 2018 Mario Carneiro. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Mario Carneiro
-/
import algebra.group_power tactic.norm_num
/-!
# The `abel` tactic
Evaluate expressions in the language of additive, commutative monoids and groups.
-/
namespac... |
a6ab58bb6c05714286ce202f5e91e6e93f3a3cc9 | 8cae430f0a71442d02dbb1cbb14073b31048e4b0 | /src/algebraic_geometry/sheafed_space.lean | 93836059c50d0e10110024f311a67b9d79fbd717 | [
"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,856 | 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 algebraic_geometry.presheafed_space.has_colimits
import topology.sheaves.functors
/-!
# Sheafed spaces
> THIS FILE IS SYNCHRONIZED WITH MATHLIB4.
> Any chang... |
106b5b09eee297e0bcd9b6d4714b55d00dc71cf2 | 6432ea7a083ff6ba21ea17af9ee47b9c371760f7 | /tests/lean/metaEvalInstMessage.lean | 43db5a58e9161eb3fce0667351ab468deea4ba28 | [
"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 | 55 | lean | import Lean
def double (x : Nat) := 2*x
#eval double
|
e543e1484bac1074b6c671055a62dd212893fc76 | 94e33a31faa76775069b071adea97e86e218a8ee | /src/analysis/locally_convex/weak_dual.lean | 63f9d65e2b7e871e339d81baec98a48a20e03e31 | [
"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,381 | lean | /-
Copyright (c) 2022 Moritz Doll. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Moritz Doll
-/
import topology.algebra.module.weak_dual
import analysis.normed.field.basic
import analysis.locally_convex.with_seminorms
/-!
# Weak Dual in Topological Vector Spaces
We ... |
631e651f9036f9793f65d5cb70ac7cdc36f55d28 | bbecf0f1968d1fba4124103e4f6b55251d08e9c4 | /src/topology/category/UniformSpace.lean | 46ffb4b9cceeb209c2b6031318360f44b1a2a6ea | [
"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 | 7,085 | lean | /-
Copyright (c) 2019 Scott Morrison. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Reid Barton, Patrick Massot, Scott Morrison
-/
import category_theory.monad.limits
import topology.uniform_space.completion
import topology.category.Top.basic
/-!
# The category of un... |
71d262a852b20daf3e7e92170aa21160980af9cd | 74addaa0e41490cbaf2abd313a764c96df57b05d | /Mathlib/data/mv_polynomial/expand_auto.lean | 458caa033dd39e21d112f59e3f41db1ff59b62a6 | [] | 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 | 3,389 | lean | /-
Copyright (c) 2020 Johan Commelin. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Johan Commelin, Robert Y. Lewis
-/
import Mathlib.PrePort
import Mathlib.Lean3Lib.init.default
import Mathlib.data.mv_polynomial.monad
import Mathlib.PostPort
universes u_1 u_3 u_2 u_... |
235d5a2dab333035592d1dd55b08872025d4f0f0 | d642a6b1261b2cbe691e53561ac777b924751b63 | /src/measure_theory/simple_func_dense.lean | 734f7ca6452a56435cf91994d9423ff99872303d | [
"Apache-2.0"
] | permissive | cipher1024/mathlib | fee56b9954e969721715e45fea8bcb95f9dc03fe | d077887141000fefa5a264e30fa57520e9f03522 | refs/heads/master | 1,651,806,490,504 | 1,573,508,694,000 | 1,573,508,694,000 | 107,216,176 | 0 | 0 | Apache-2.0 | 1,647,363,136,000 | 1,508,213,014,000 | Lean | UTF-8 | Lean | false | false | 15,114 | lean | /-
Copyright (c) 2019 Zhouhang Zhou. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Zhouhang Zhou
Show that each Borel measurable function can be approximated,
both pointwise and in Lยน norm, by a sequence of simple functions.
-/
import measure_theory.l1_space
noncom... |
d6b805565aa3690ba6426631785ea0d2518987b5 | d5bef83c55d40cb88f9a01b755c882a93348a847 | /tests/lean/run/type_equations.lean | 12f845ade30da0e1a572e231a290c4450580c23d | [
"Apache-2.0"
] | permissive | urkud/lean | 587d78216e1f0c7f651566e9e92cf8ade285d58d | 3526539070ea6268df5dd373deeb3ac8b9621952 | refs/heads/master | 1,660,171,634,921 | 1,657,873,466,000 | 1,657,873,466,000 | 249,789,456 | 0 | 0 | Apache-2.0 | 1,585,075,263,000 | 1,585,075,263,000 | null | UTF-8 | Lean | false | false | 1,568 | lean | open nat
inductive Expr
| zero : Expr
| one : Expr
| add : Expr โ Expr โ Expr
namespace Expr
inductive direct_subterm : Expr โ Expr โ Prop
| add_1 : โ eโ eโ : Expr, direct_subterm eโ (add eโ eโ)
| add_2 : โ eโ eโ : Expr, direct_subterm eโ (add eโ eโ)
theorem direct_subterm_wf : well_founded direct_subterm :=
begi... |
0ec59e3303ec6ac180ce20459aec4213ee6137c5 | 74addaa0e41490cbaf2abd313a764c96df57b05d | /Mathlib/category_theory/limits/cofinal_auto.lean | 024e55f85dff2ec3733e754a93b8b392c04475c7 | [] | 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 | 20,253 | lean | /-
Copyright (c) 2020 Scott Morrison. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Scott Morrison
-/
import Mathlib.PrePort
import Mathlib.Lean3Lib.init.default
import Mathlib.category_theory.punit
import Mathlib.category_theory.comma
import Mathlib.category_theory.i... |
1180d3c022cf1c6642739daedafcd1609250ffe5 | fa02ed5a3c9c0adee3c26887a16855e7841c668b | /test/norm_fin.lean | 9888495cf6f4a2429614e3d23cac1d8a05c96a44 | [
"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 | 4,640 | lean | import tactic.norm_fin
example : (5 : fin 7) = fin.succ (fin.succ 8) := by norm_num
example : (12 : fin 7) = 5 := by norm_num
example : (11 : fin 7) = 4 := by norm_num
example : (12 : fin 6) = 0 := by norm_num
example : (11 : fin 6) = 5 := by norm_num
example : (1 : fin 1) = 0 := by norm_num
example : fin.succ (4 : fi... |
add8f04200f52959836c4b77b2e61b8608f57376 | 26ac254ecb57ffcb886ff709cf018390161a9225 | /src/data/polynomial/identities.lean | 798fa6da7132508414c1826438790188687ec739 | [
"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 | 3,357 | 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 data.polynomial.derivative
/-!
# Theory of univariate polynomials
The main def is `binom_expansion`.
-/
noncompu... |
da1372991f351c27655e02b8b53bd7444a393dc3 | b7f22e51856f4989b970961f794f1c435f9b8f78 | /tests/lean/run/662.lean | bd32c3bfb3034eed0298431d31aaec79f0ae6cd7 | [
"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 | 1,438 | lean | open nat
inductive type : Type :=
| Nat : type
| Func : type โ type โ type
open type
section var
variable {var : type โ Type}
inductive term : type โ Type :=
| Var : โ {t}, var t โ term t
| Const : nat โ term Nat
| Plus : term Nat โ term Nat โ term Nat
| Abs : โ {dom ran}, (var dom โ term ran) โ term (Func do... |
5ac8c8cad2a240806ede39d26ac8c24cb7ec1b7e | 35677d2df3f081738fa6b08138e03ee36bc33cad | /src/tactic/norm_num.lean | ad3cec603e413a1973f242b0f24c9c7a1294b8b4 | [
"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 | 20,321 | lean | /-
Copyright (c) 2017 Simon Hudon All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Simon Hudon, Mario Carneiro
-/
import algebra.group_power data.rat.order data.rat.cast data.rat.meta_defs data.nat.prime
import tactic.interactive tactic.converter.interactive
/-!
# `nor... |
d359cbac72c9b00caa2cb657669400ba321994cf | 4727251e0cd73359b15b664c3170e5d754078599 | /src/topology/algebra/star.lean | f8717f9ed951c11a05b974d4d6c43e1b056f62cc | [
"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,883 | lean | /-
Copyright (c) 2022 Eric Wieser. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Eric Wieser
-/
import algebra.star.pi
import algebra.star.prod
import topology.algebra.group
/-!
# Continuity of `star`
This file defines the `has_continuous_star` typeclass, along with... |
6de52a5470611a8ce4d5663f58131710606fce33 | 6065973b1fa7bbacba932011c9e2f32bf7bdd6c1 | /src/measure_theory/borel_space.lean | 6f0e5028f60d6c8f8ddc0494e0557db7e7f67451 | [
"Apache-2.0"
] | permissive | khmacdonald/mathlib | 90a0fa2222369fa69ed2fbfb841b74d2bdfd66cb | 3669cb35c578441812ad30fd967d21a94b6f387e | refs/heads/master | 1,675,863,801,090 | 1,609,761,876,000 | 1,609,761,876,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 53,434 | 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, Yury Kudryashov
-/
import measure_theory.measure_space
import analysis.complex.basic
import analysis.normed_space.finite_dimension
import topology.G_delta
/-!
# Borel ... |
abdd18479649f3811fa554d51a741d63746e4564 | 94e33a31faa76775069b071adea97e86e218a8ee | /src/topology/partition_of_unity.lean | 74706f16662cb3db191f8859ca6649bcebb122e6 | [
"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 | 20,680 | lean | /-
Copyright (c) 2021 Yury Kudryashov. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Yury Kudryashov
-/
import algebra.big_operators.finprod
import set_theory.ordinal.basic
import topology.continuous_function.algebra
import topology.paracompact
import topology.shrinki... |
a3671215a025133bed0219463f6f5c0fc7cd5727 | d406927ab5617694ec9ea7001f101b7c9e3d9702 | /src/data/list/nodup.lean | ce702ff59712fba97c7b0df9d068e7c683ec6fe7 | [
"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 | 14,398 | lean | /-
Copyright (c) 2018 Mario Carneiro. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Mario Carneiro, Kenny Lau
-/
import data.list.lattice
import data.list.pairwise
import data.list.forall2
import data.set.pairwise
/-!
# Lists with no duplicates
`list.nodup` is defin... |
9d641cee708a71e89401dfa5c62fc561b8401ad2 | 0c9c1ff8e5013c525bf1d72338b62db639374733 | /library/init/data/nat/bitwise.lean | 44be5693767c8bb24dc28b8fbff8c79b85ea4681 | [
"Apache-2.0"
] | permissive | semorrison/lean | 1f2bb450c3400098666ff6e43aa29b8e1e3cdc3a | 85dcb385d5219f2fca8c73b2ebca270fe81337e0 | refs/heads/master | 1,638,526,143,586 | 1,634,825,588,000 | 1,634,825,588,000 | 258,650,844 | 0 | 0 | Apache-2.0 | 1,587,772,955,000 | 1,587,772,954,000 | null | UTF-8 | Lean | false | false | 10,084 | lean | /-
Copyright (c) 2017 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Author: Mario Carneiro
-/
prelude
import init.data.nat.lemmas init.meta.well_founded_tactics
universe u
namespace nat
def bodd_div2 : โ โ bool ร โ
| 0 := (ff, 0)
| (succ n) :=... |
21204c086738ca2905c33f432dd0e8252e5fd0c0 | 94e33a31faa76775069b071adea97e86e218a8ee | /src/data/nat/part_enat.lean | 58302796ebabd157f88e6e6eed8a41d39a9c299f | [
"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 | 20,801 | lean | /-
Copyright (c) 2018 Chris Hughes. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Chris Hughes
-/
import algebra.hom.equiv
import data.part
import tactic.norm_num
/-!
# Natural numbers with infinity
The natural numbers and an extra `top` element `โค`. This implementa... |
b2cf570461975a039396557dc2f0b6fa34d59dc8 | 6432ea7a083ff6ba21ea17af9ee47b9c371760f7 | /src/Lean/Data/Parsec.lean | 29eaaaa4c72bfb80df336cdb4529c59919dde091 | [
"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 | 4,562 | lean | /-
Copyright (c) 2021 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Author: Dany Fabian
-/
namespace Lean
namespace Parsec
inductive ParseResult (ฮฑ : Type) where
| success (pos : String.Iterator) (res : ฮฑ)
| error (pos : String.Iterator) (err : Str... |
7d4a176fb5121e9e8b7b9c831331a4e7c3507440 | e00ea76a720126cf9f6d732ad6216b5b824d20a7 | /src/ring_theory/adjoin.lean | d4e2b30ececa6debd36b3867e0facd0fd768d176 | [
"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 | 8,000 | lean | /-
Copyright (c) 2019 Kenny Lau. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Kenny Lau
Adjoining elements to form subalgebras.
-/
import ring_theory.algebra_operations ring_theory.polynomial ring_theory.principal_ideal_domain
import algebra.pointwise
universes u ... |
028213d3a85da411fd92dbc9cf0392ef2ebc0f3b | 64874bd1010548c7f5a6e3e8902efa63baaff785 | /tests/lean/run/match2.lean | 8ba3f799f12cb160084101276e9e60ca3d645ad2 | [
"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 | 788 | lean | import data.nat
open nat
definition two1 : nat := 2
definition two2 : nat := succ (succ (zero))
definition f (x : nat) (y : nat) := y
constant g : nat โ nat โ nat
constants a b : nat
(*
local tc = type_checker_with_hints(get_env(), true)
local plugin = whnf_match_plugin(tc)
function tst_match(p, t)
local r1, r... |
2dd4d9a710d4cd2f636d301a3fa955e12e39dbab | 57c233acf9386e610d99ed20ef139c5f97504ba3 | /src/number_theory/von_mangoldt.lean | 06254f30b044b226e9870c6c275884362a371a6d | [
"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 | 5,009 | lean | /-
Copyright (c) 2022 Bhavik Mehta. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Bhavik Mehta
-/
import algebra.is_prime_pow
import number_theory.arithmetic_function
import analysis.special_functions.log
/-!
# The von Mangoldt Function
In this file we define the v... |
46202b0d7e3138749034749df99d3deda0fee193 | 76ce87faa6bc3c2aa9af5962009e01e04f2a074a | /AA_Algebras/01_dm_bool/1_builtin.bool.lean | 129891fb7608e4b731eb2f2f47a273c0a478977b | [] | no_license | Mnormansell/Discrete-Notes | db423dd9206bbe7080aecb84b4c2d275b758af97 | 61f13b98be590269fc4822be7b47924a6ddc1261 | refs/heads/master | 1,585,412,435,424 | 1,540,919,483,000 | 1,540,919,483,000 | 148,684,638 | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 4,791 | lean | /- TYPES AND VALUES: Case study of the boolean type -/
/-
In Lean, Every value, and indeed every expression that represents some
value, has exactly one type. A type in turn defines a set of values,
namely the set of all and the only values of the given type.
For example, in Lean, the Boolean values, tt and ff (for ... |
9c42a1ef45fc40c9a7d4ecea9590df8ef5527bd3 | 74addaa0e41490cbaf2abd313a764c96df57b05d | /Mathlib/order/atoms.lean | 0554fd6f926133c7daaa30981f257d4d236b245f | [] | 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 | 16,883 | lean | /-
Copyright (c) 2020 Aaron Anderson. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Author: Aaron Anderson.
-/
import Mathlib.PrePort
import Mathlib.Lean3Lib.init.default
import Mathlib.order.complete_boolean_algebra
import Mathlib.order.modular_lattice
import Mathlib.data.fi... |
891af4b08ec00def78eece1874af9f7be514afae | 22e97a5d648fc451e25a06c668dc03ac7ed7bc25 | /src/algebra/group_with_zero.lean | e4e55a91d006586b5c6f1400eb075f49a5efc1f5 | [
"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 | 19,156 | 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.units
import algebra.ring
import tactic.push_neg
/-!
# Groups with an adjoined zero element
This file describes structures that are not usually... |
ecc752df91b097c6a5a5155f30da1ebd7ae2ed78 | c09f5945267fd905e23a77be83d9a78580e04a4a | /src/order/filter/basic.lean | 88bb71867e226aa335829881d30f706407dc78e8 | [
"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 | 80,373 | lean | /-
Copyright (c) 2017 Johannes Hรถlzl. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Johannes Hรถlzl, Jeremy Avigad
Theory of filters on sets.
-/
import order.galois_connection order.zorn
import data.set.finite data.list data.pfun
import algebra.pi_instances
import cat... |
8d72f6a0fa8da8353f8eb87207661bf84e98429f | e00ea76a720126cf9f6d732ad6216b5b824d20a7 | /src/topology/metric_space/lipschitz.lean | e861988d3e6db3cafef0d7a0d2ece55eaa1b8be0 | [
"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 | 11,649 | lean | /-
Copyright (c) 2018 Rohan Mitta. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Rohan Mitta, Kevin Buzzard, Alistair Tucker, Johannes Hรถlzl, Yury Kudryashov
-/
import topology.metric_space.basic
import category_theory.endomorphism category_theory.types
/-!
# Lipschi... |
a84ec08bbd26effb6de9586b321bf9c13a894f4c | 74addaa0e41490cbaf2abd313a764c96df57b05d | /Mathlib/ring_theory/multiplicity.lean | a3fd90c6ee4efc5209ee353f702031da6c554987 | [] | 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,818 | 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, Chris Hughes
-/
import Mathlib.PrePort
import Mathlib.Lean3Lib.init.default
import Mathlib.algebra.associated
import Mathlib.algebra.big_operators.basic
import Mathli... |
aa33f7a3dd8c8a5b263c5fcc0eda40434a36380a | 4d2583807a5ac6caaffd3d7a5f646d61ca85d532 | /src/ring_theory/principal_ideal_domain.lean | 005dcbc8b612c908b5656097fbd04f1effdfaf7f | [
"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 | 12,207 | lean | /-
Copyright (c) 2018 Chris Hughes. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Chris Hughes, Morenikeji Neri
-/
import ring_theory.unique_factorization_domain
/-!
# Principal ideal rings and principal ideal domains
A principal ideal ring (PIR) is a ring in which ... |
dc43704b712cb3025240dffd1ac70d07671e5067 | a45212b1526d532e6e83c44ddca6a05795113ddc | /src/algebra/pointwise.lean | 3db5d678cb3c8fb26c310ebf9b8688c622a0e64b | [
"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 | 7,516 | lean | /-
Copyright (c) 2019 Johan Commelin. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Johan Commelin
Pointwise addition and multiplication of sets
-/
import data.set.finite
import data.set.lattice
import algebra.group
namespace set
open function
variables {ฮฑ : Type*... |
8ed0234c5abf9475a1dc8e8dbb2578887c99afed | 5ee26964f602030578ef0159d46145dd2e357ba5 | /src/valuation/localization.lean | 7c6909654f17b14f3c70cb198dede667a31df803 | [
"Apache-2.0"
] | permissive | fpvandoorn/lean-perfectoid-spaces | 569b4006fdfe491ca8b58dd817bb56138ada761f | 06cec51438b168837fc6e9268945735037fd1db6 | refs/heads/master | 1,590,154,571,918 | 1,557,685,392,000 | 1,557,685,392,000 | 186,363,547 | 0 | 0 | Apache-2.0 | 1,557,730,933,000 | 1,557,730,933,000 | null | UTF-8 | Lean | false | false | 6,161 | lean | -- extending valuations to localizations
import valuation.basic
--local attribute [instance] classical.prop_decidable
--noncomputable theory
universes u uโ
variables {R : Type uโ} [comm_ring R] {S : set R} [is_submonoid S]
namespace valuation
open with_zero
variables {ฮ : Type u} [linear_ordered_comm_group ฮ]
var... |
deaa872040036350f7b7a0f916b22e28b726345a | b70031c8e2c5337b91d7e70f1e0c5f528f7b0e77 | /src/data/fin.lean | 17e9ed66b6be79443ee7b9ffc1ec11ae08dfe3c1 | [
"Apache-2.0"
] | permissive | molodiuc/mathlib | cae2ba3ef1601c1f42ca0b625c79b061b63fef5b | 98ebe5a6739fbe254f9ee9d401882d4388f91035 | refs/heads/master | 1,674,237,127,059 | 1,606,353,533,000 | 1,606,353,533,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 47,260 | lean | /-
Copyright (c) 2017 Robert Y. Lewis. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Robert Y. Lewis, Keeley Hoek
-/
import data.nat.cast
import tactic.localized
import logic.embedding
import data.set.intervals.basic
/-!
# The finite type with `n` elements
`fin n` i... |
47ef3183591b52555518c13cae6b18f6d5277713 | 1437b3495ef9020d5413178aa33c0a625f15f15f | /tactic/monotonicity/interactive.lean | af8a0b7ffe7c4b44bde10c08848a5a449aaf7a7f | [
"Apache-2.0"
] | permissive | jean002/mathlib | c66bbb2d9fdc9c03ae07f869acac7ddbfce67a30 | dc6c38a765799c99c4d9c8d5207d9e6c9e0e2cfd | refs/heads/master | 1,587,027,806,375 | 1,547,306,358,000 | 1,547,306,358,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 21,324 | lean |
import tactic.monotonicity.basic
import category.basic
import category.traversable
import category.traversable.derive
import data.dlist
import logic.basic
import tactic.basic
variables {a b c p : Prop}
namespace tactic.interactive
open lean lean.parser interactive
open interactive.types
open tactic
local postfix... |
13fa428461307d1022d0707cef8ca368a79bf568 | 6b10c15e653d49d146378acda9f3692e9b5b1950 | /examples/logic/unnamed_347.lean | b6b6b6fb5b48f7487c9b70c4dec49fd98854e3fa | [] | no_license | gebner/mathematics_in_lean | 3cf7f18767208ea6c3307ec3a67c7ac266d8514d | 6d1462bba46d66a9b948fc1aef2714fd265cde0b | refs/heads/master | 1,655,301,945,565 | 1,588,697,505,000 | 1,588,697,505,000 | 261,523,603 | 0 | 0 | null | 1,588,695,611,000 | 1,588,695,610,000 | null | UTF-8 | Lean | false | false | 108 | lean | variables A B : Prop
-- BEGIN
example : A โง B โ B โง A :=
ฮป โจhโ, hโโฉ, โจhโ, hโโฉ
-- END |
f9f827a9a3c3389646286449938c346c29c2fcf9 | 947b78d97130d56365ae2ec264df196ce769371a | /tests/lean/run/synth1.lean | d81ef8ce19462da706211524e7497b87a5f7c5e9 | [
"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 | 1,575 | lean | import Lean.Meta
new_frontend
open Lean
open Lean.Meta
class HasCoerce (a b : Type) :=
(coerce : a โ b)
def coerce {a b : Type} [HasCoerce a b] : a โ b :=
@HasCoerce.coerce a b _
instance coerceTrans {a b c : Type} [HasCoerce b c] [HasCoerce a b] : HasCoerce a c :=
โจfun x => coerce (coerce x : b)โฉ
instance coerceBo... |
5b6f4d5bdcc3889e637f8c21f86bf4cad58f9f0a | 59cb0b250f036506a327b29abf0b51ff1efbb0c9 | /src/hamming.lean | b947cb0381615f5b2c2ba25e6b2b6cf9cf917374 | [] | no_license | GeorgeTillisch/coding_theory_lean | ea26861a3d5d8ca897ca50b056d9cae53104bc27 | 920e14b433080854d4248714c93a09ce4e391522 | refs/heads/main | 1,681,707,926,918 | 1,619,008,763,000 | 1,619,008,763,000 | 343,145,352 | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 6,321 | lean | import tactic
import binary
/-!
# Hamming distance and weight
This file contains definitions of tha Hamming distance and Hamming weight.
## Main Results
- `distance_zero_iff_eq` : distance is zero iff words are equal.
- `distance_symmetric` : distance is a symmetric relation.
- `distance_between_zero_n`... |
144f653d33b16e0e7e98d5a02c12f6826513ab0b | bb31430994044506fa42fd667e2d556327e18dfe | /src/measure_theory/measure/portmanteau.lean | 7bdf190a5e22d6529511c46b2d673e39ec6601aa | [
"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 | 24,749 | lean | /-
Copyright (c) 2021 Kalle Kytรถlรค. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Kalle Kytรถlรค
-/
import measure_theory.measure.probability_measure
import measure_theory.measure.lebesgue
/-!
# Characterizations of weak convergence of finite measures and probability m... |
c2d91d712c4e707f28dd0ad9b9e0abaf43aae06f | 8cae430f0a71442d02dbb1cbb14073b31048e4b0 | /src/data/finset/locally_finite.lean | 7864e60893459661b1dd876d375f925a01380e0a | [
"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 | 31,550 | lean | /-
Copyright (c) 2019 Scott Morrison. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Scott Morrison, Yaรซl Dillies
-/
import order.locally_finite
import data.set.intervals.monoid
/-!
# Intervals as finsets
> THIS FILE IS SYNCHRONIZED WITH MATHLIB4.
> Any changes to th... |
1ef67cc8072ca04273a4695ca4ee87406ea5e29f | 7cdf3413c097e5d36492d12cdd07030eb991d394 | /src/game/world6/level7.lean | 1d3581e554911e04b00f9063d28ebf88346c6fb8 | [] | no_license | alreadydone/natural_number_game | 3135b9385a9f43e74cfbf79513fc37e69b99e0b3 | 1a39e693df4f4e871eb449890d3c7715a25c2ec9 | refs/heads/master | 1,599,387,390,105 | 1,573,200,587,000 | 1,573,200,691,000 | 220,397,084 | 0 | 0 | null | 1,573,192,734,000 | 1,573,192,733,000 | null | UTF-8 | Lean | false | false | 603 | lean | /-
# Function world.
## Level 7 : `(P โ Q) โ ((Q โ R) โ (P โ R))`
If you start with `intro hpq` and then `intro `hqr`
the dust will clear a bit and the level will look like this:
```
P Q R : Prop,
hpq : P โ Q,
hqr : Q โ R
โข P โ R
```
So this level is really about showing transitivity of $\implies$,
if you like that... |
799ad0e17b9303911dd6b5f84b1afafe14164007 | bdb33f8b7ea65f7705fc342a178508e2722eb851 | /data/rat.lean | f89fab914bbe2253a2a53b16c747db9f53477aa0 | [
"Apache-2.0"
] | permissive | rwbarton/mathlib | 939ae09bf8d6eb1331fc2f7e067d39567e10e33d | c13c5ea701bb1eec057e0a242d9f480a079105e9 | refs/heads/master | 1,584,015,335,862 | 1,524,142,167,000 | 1,524,142,167,000 | 130,614,171 | 0 | 0 | Apache-2.0 | 1,548,902,667,000 | 1,524,437,371,000 | Lean | UTF-8 | Lean | false | false | 36,140 | 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
Introduces the rational numbers as discrete, linear ordered field.
-/
import
data.nat.gcd data.pnat data.int.basic data.encodable order.basic
algeb... |
779dfb0ede7c4624d5cb026402c3143824975c99 | 05b503addd423dd68145d68b8cde5cd595d74365 | /src/category_theory/limits/cones.lean | 40664fe3daac820e2865084f68d619d3e9f9c686 | [
"Apache-2.0"
] | permissive | aestriplex/mathlib | 77513ff2b176d74a3bec114f33b519069788811d | e2fa8b2b1b732d7c25119229e3cdfba8370cb00f | refs/heads/master | 1,621,969,960,692 | 1,586,279,279,000 | 1,586,279,279,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 14,522 | 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, Floris van Doorn
-/
import category_theory.const
import category_theory.yoneda
import category_theory.concrete_category.bundled_hom
import category_theo... |
ecce7ea6ecda7ada57458c9d48916ba8d283c8e3 | a45212b1526d532e6e83c44ddca6a05795113ddc | /src/measure_theory/probability_mass_function.lean | 8f01891efa19a572bac6c3902e67867c8699a099 | [
"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 | 4,814 | lean | /-
Copyright (c) 2017 Johannes Hรถlzl. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Author: Johannes Hรถlzl
Probability mass function -- discrete probability measures
-/
import topology.instances.nnreal topology.instances.ennreal topology.algebra.infinite_sum
noncomputable the... |
41d85ddc913759aa78632d842c7e885f503d4375 | fa02ed5a3c9c0adee3c26887a16855e7841c668b | /archive/imo/imo1987_q1.lean | 5e7a5e4396f579516f6ca2af471e3f45506c2ef7 | [
"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 | 4,116 | lean | /-
Copyright (c) 2021 Yury Kudryashov. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Yury Kudryashov
-/
import data.fintype.card
import dynamics.fixed_points.basic
/-!
# Formalization of IMO 1987, Q1
Let $p_{n, k}$ be the number of permutations of a set of cardinali... |
335fda17c32c5b270dbed1179ca867722f59b993 | bc3ce52072d3ac6536a57d83ee843c458d28cf20 | /src/export_json.lean | 75306b6f027bc8f16b2f137e0b8b1dd2ce571106 | [
"Apache-2.0"
] | permissive | bryangingechen/doc-gen | 259878d633962982c84ad70cd08acb7741469a2e | cbde75dfbaec47ddfee6d1c228f03b99577f6bed | refs/heads/master | 1,677,978,899,082 | 1,613,335,839,000 | 1,613,335,839,000 | 256,691,923 | 0 | 0 | null | 1,587,193,965,000 | 1,587,193,964,000 | null | UTF-8 | Lean | false | false | 14,888 | lean | /-
Copyright (c) 2019 Robert Y. Lewis. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Author: Robert Y. Lewis
-/
import tactic.core system.io data.string.defs tactic.interactive data.list.sort
/-!
Used to generate a json file for html docs.
The json file is a list of maps, w... |
ffb14cd514ece065f1b3aad23823b02203349d2f | 57c233acf9386e610d99ed20ef139c5f97504ba3 | /src/algebraic_geometry/open_immersion.lean | 194de629f2da3c253520202108b72c3dae5d2080 | [
"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 | 61,378 | 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 algebraic_geometry.presheafed_space.has_colimits
import category_theory.limits.shapes.binary_products
import category_theory.limits.preserves.shapes.pullbacks
import... |
814a4821d5a61cc731f9d7494a45a695e8653464 | 4484372104c20d5ccb4c725f0a5708632be2bfaa | /Maths_Challenges/challenges/challenge3.lean | 388d1163622153bd240308a989522c1b2b22c657 | [] | no_license | robertylewis/xena | 45eecd4a06b4248683e84f32fdd496f7a5ebb0ec | 8c7e9fc2662171fdaacfde871bdc032693df83ce | refs/heads/master | 1,606,353,192,576 | 1,576,659,298,000 | 1,576,659,298,000 | 228,918,214 | 0 | 0 | null | 1,576,701,677,000 | 1,576,701,677,000 | null | UTF-8 | Lean | false | false | 86 | lean | import data.real.basic
theorem challenge2 :
(2 : โ) + 2 โ 5 :=
begin
sorry
end
|
b7226b3cb083e0e57ff31f3986988e7edd86529e | fcf3ffa92a3847189ca669cb18b34ef6b2ec2859 | /src/world7/level1.lean | 7309d3693f1bf5f0b68d1be859363187f78d6512 | [
"Apache-2.0"
] | permissive | nomoid/lean-proofs | 4a80a97888699dee42b092b7b959b22d9aa0c066 | b9f03a24623d1a1d111d6c2bbf53c617e2596d6a | refs/heads/master | 1,674,955,317,080 | 1,607,475,706,000 | 1,607,475,706,000 | 314,104,281 | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 137 | lean | lemma both_and (P Q : Prop) (p : P) (q : Q) : P โง Q :=
begin
split,
{
exact p,
},
{
exact q,
},
end |
890fb21d4d607b2b6847186e0e007590826c1afa | 8cae430f0a71442d02dbb1cbb14073b31048e4b0 | /src/data/multiset/fold.lean | fe0fcbbc3e600c23fcbd3dbee0da1eb87da06e97 | [
"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 | 4,783 | 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.multiset.dedup
import data.list.min_max
/-!
# The fold operation for a commutative associative operation over a multiset.
> THIS FILE IS SYNCHRONIZED WI... |
1870521d4473f8ea26fd52452e0785eb70c0f801 | a338c3e75cecad4fb8d091bfe505f7399febfd2b | /src/measure_theory/lp_space.lean | bf6eb9c16c1a32154f9ba87f277222670c970d41 | [
"Apache-2.0"
] | permissive | bacaimano/mathlib | 88eb7911a9054874fba2a2b74ccd0627c90188af | f2edc5a3529d95699b43514d6feb7eb11608723f | refs/heads/master | 1,686,410,075,833 | 1,625,497,070,000 | 1,625,497,070,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 86,971 | lean | /-
Copyright (c) 2020 Rรฉmy Degenne. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Rรฉmy Degenne, Sรฉbastien Gouรซzel
-/
import measure_theory.ess_sup
import measure_theory.ae_eq_fun
import measure_theory.mean_inequalities
import topology.continuous_function.compact
/-!
... |
d9aff9287a48743fe9892ca2567529cfa950c1cd | 64874bd1010548c7f5a6e3e8902efa63baaff785 | /tests/lean/run/opaque_hint_bug.lean | e94ac433db98fb6a7eedeef7e4c798f2f67780c0 | [
"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 | 242 | lean | inductive list (T : Type) : Type :=
nil {} : list T,
cons : T โ list T โ list T
section
variable {T : Type}
definition concat (s t : list T) : list T
:= list.rec t (fun x l u, list.cons x u) s
attribute concat [reducible]
end
|
3ccdab4b61e1c679258a7999617aaaff2f77726c | 74addaa0e41490cbaf2abd313a764c96df57b05d | /Mathlib/category_theory/limits/shapes/split_coequalizer.lean | 02e657a9207f318dcd6157d3f045978965e00c8b | [] | 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 | 6,763 | lean | /-
Copyright (c) 2020 Bhavik Mehta. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Bhavik Mehta
-/
import Mathlib.PrePort
import Mathlib.Lean3Lib.init.default
import Mathlib.category_theory.limits.shapes.equalizers
import Mathlib.PostPort
universes v u l uโ
namespac... |
862bc3e4d1a63773544b0f8de2eba5a0eca58091 | 5ae26df177f810c5006841e9c73dc56e01b978d7 | /src/data/hash_map.lean | 1e7b051e5b3720ff9a3509790c4e530492a2874d | [
"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 | 27,951 | lean | /-
Copyright (c) 2017 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Leonardo de Moura, Mario Carneiro
-/
import data.list.basic data.pnat.basic data.array.lemmas
logic.basic algebra.group
data.list.defs data.nat.basic data.option.basic
... |
9506a44075a081280d0c8bc97ef030162a8d2b16 | 57c233acf9386e610d99ed20ef139c5f97504ba3 | /archive/imo/imo2011_q5.lean | aacd5eb9345a809b5a0efde6c980162d3c773678 | [
"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 | 2,098 | lean | /-
Copyright (c) 2021 Alain Verberkmoes. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Alain Verberkmoes
-/
import data.int.basic
/-!
# IMO 2011 Q5
Let `f` be a function from the set of integers to the set
of positive integers. Suppose that, for any two integers
`... |
b60733e0a1486005d2095c3a5c708a13d6578a16 | fa02ed5a3c9c0adee3c26887a16855e7841c668b | /src/set_theory/ordinal_arithmetic.lean | fdd4282e31eae9bde796893c275b350678789264 | [
"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 | 70,332 | lean | /-
Copyright (c) 2017 Johannes Hรถlzl. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Mario Carneiro, Floris van Doorn
-/
import set_theory.ordinal
/-!
# Ordinal arithmetic
Ordinals have an addition (corresponding to disjoint union) that turns them into an additive
mo... |
89b621bc35054fc442c3628aea8938449bcd0a23 | 35677d2df3f081738fa6b08138e03ee36bc33cad | /test/localized/localized.lean | 5b7282944e987f74f2d3b52a8de4dc26ae038b3a | [
"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 | 1,390 | lean | import tactic.localized
open tactic
local infix ` โน `:59 := nat.mul
local infix ` โ `:59 := nat.pow
local infix ` โ `:59 := nat.pow
example : 2 โน 3 = 6 := rfl
example : 2 โ 3 = 8 := rfl
example : 2 โ 3 = 8 := rfl
example {n m : โ} (h : n < m) : n โค m := by { success_if_fail { simp [h] }, exact le_of_lt h }
section
loc... |
7666429a35076421923e2a68e0d3b0bd3f2e3b96 | fa02ed5a3c9c0adee3c26887a16855e7841c668b | /src/control/equiv_functor.lean | 3efd5931efbb836dd5cc937b2eb3229781dfbfb9 | [
"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 | 3,311 | 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 category_theory.category
import data.equiv.functor
/-!
# Functions functorial with respect to equivalences
An `equiv_functor` is a function from `Type โ Type... |
2803f4a50d23acced4ab84e9c35d6fd5ab1f923d | 94e33a31faa76775069b071adea97e86e218a8ee | /src/data/finset/pointwise.lean | 1e7b4eee1df73ce58e9c35847b608c85000d38a7 | [
"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 | 44,388 | lean | /-
Copyright (c) 2020 Floris van Doorn. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Floris van Doorn, Yaรซl Dillies
-/
import data.finset.n_ary
import data.finset.preimage
import data.set.pointwise
/-!
# Pointwise operations of finsets
This file defines pointwise a... |
b0f8dec410bdd65264ca518082a69df99d4fed3e | b147e1312077cdcfea8e6756207b3fa538982e12 | /analysis/topology/uniform_space.lean | fe9e5f7c947f0ab082358a9fb2098eb148b3770d | [
"Apache-2.0"
] | permissive | SzJS/mathlib | 07836ee708ca27cd18347e1e11ce7dd5afb3e926 | 23a5591fca0d43ee5d49d89f6f0ee07a24a6ca29 | refs/heads/master | 1,584,980,332,064 | 1,532,063,841,000 | 1,532,063,841,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 77,803 | 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
Theory of uniform spaces.
Uniform spaces are a generalization of metric spaces and topological groups. Many concepts directly
generalize to uniform spa... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.