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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
cfa46f6c8ca23f4a9e122bab21b21a6aa2d87e24 | 8cae430f0a71442d02dbb1cbb14073b31048e4b0 | /src/combinatorics/additive/behrend.lean | 1257399320c114769c87e6375754a8b4ded6e385 | [
"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 | 22,529 | lean | /-
Copyright (c) 2022 Yaël Dillies, Bhavik Mehta. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Yaël Dillies, Bhavik Mehta
-/
import analysis.inner_product_space.pi_L2
import combinatorics.additive.salem_spencer
import combinatorics.pigeonhole
import data.complex.expo... |
fed8a268faecf5ffb10bb00be65a1daed47ae562 | 7cef822f3b952965621309e88eadf618da0c8ae9 | /test/fin_cases.lean | 88da7e0b6235921a56c28c37a452f84a0026d3b1 | [
"Apache-2.0"
] | permissive | rmitta/mathlib | 8d90aee30b4db2b013e01f62c33f297d7e64a43d | 883d974b608845bad30ae19e27e33c285200bf84 | refs/heads/master | 1,585,776,832,544 | 1,576,874,096,000 | 1,576,874,096,000 | 153,663,165 | 0 | 2 | Apache-2.0 | 1,544,806,490,000 | 1,539,884,365,000 | Lean | UTF-8 | Lean | false | false | 2,000 | lean | /-
Copyright (c) 2018 Scott Morrison. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Scott Morrison
-/
import tactic.fin_cases
import data.nat.prime
import group_theory.perm.sign
import tactic.norm_num
example (f : ℕ → Prop) (p : fin 3) (h0 : f 0) (h1 : f 1) (h2 : f 2... |
0f753c63040a510c3238b526bc91749e660fa87f | 947b78d97130d56365ae2ec264df196ce769371a | /tests/lean/run/def6.lean | dc7d9dd1a4a365e202182bc729f81e143e8ce747 | [
"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 | 851 | lean | new_frontend
open Nat
inductive BV : Nat → Type
| nil : BV 0
| cons : ∀ (n) (hd : Bool) (tl : BV n), BV (succ n)
open BV
variable (f : Bool → Bool → Bool)
def map2 : {n : Nat} → BV n → BV n → BV n
| .(0), nil, nil => nil
| .(n+1), cons n b1 v1, cons .(n) b2 v2 => cons n (f b1 b2) (map2 v1 v2)
theore... |
0076c310a641eed74b0d698bf08f4382ad5f7cbd | 4727251e0cd73359b15b664c3170e5d754078599 | /src/data/set/intervals/monotone.lean | 58f95ed94491a90406f8728095f54b212fd68caa | [
"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 | 6,678 | 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.set.intervals.disjoint
import tactic.field_simp
/-!
# Monotonicity on intervals
In this file we prove that a function is (strictly) monotone (or antit... |
a79e4cd7808db1c3805dede9b3c3a16616a5724f | 94e33a31faa76775069b071adea97e86e218a8ee | /src/logic/equiv/set.lean | 2ae28c23b6f059b9e00a120970e9ad604dae8c2d | [
"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 | 25,601 | lean | /-
Copyright (c) 2015 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Leonardo de Moura, Mario Carneiro
-/
import data.set.function
import logic.equiv.basic
/-!
# Equivalences and sets
In this file we provide lemmas linking equivalences to sets.... |
3ed364ed0e5585f8de48eccadb95a1b20669a1bf | 0845ae2ca02071debcfd4ac24be871236c01784f | /tests/lean/trust0/t1.lean | d083d257d5bf867c70937aa964456edffe69eafb | [
"Apache-2.0"
] | permissive | GaloisInc/lean4 | 74c267eb0e900bfaa23df8de86039483ecbd60b7 | 228ddd5fdcd98dd4e9c009f425284e86917938aa | refs/heads/master | 1,643,131,356,301 | 1,562,715,572,000 | 1,562,715,572,000 | 192,390,898 | 0 | 0 | null | 1,560,792,750,000 | 1,560,792,749,000 | null | UTF-8 | Lean | false | false | 28 | lean | import init.io
#print trust
|
cdff7a6c196bde94e1cb52c941dab609632c916b | 77c5b91fae1b966ddd1db969ba37b6f0e4901e88 | /src/topology/bases.lean | 48a87409ca5b98f0f4a363a942592f4ea89a6a3e | [
"Apache-2.0"
] | permissive | dexmagic/mathlib | ff48eefc56e2412429b31d4fddd41a976eb287ce | 7a5d15a955a92a90e1d398b2281916b9c41270b2 | refs/heads/master | 1,693,481,322,046 | 1,633,360,193,000 | 1,633,360,193,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 26,835 | lean | /-
Copyright (c) 2017 Johannes Hölzl. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Johannes Hölzl, Mario Carneiro
-/
import topology.continuous_on
import topology.constructions
/-!
# Bases of topologies. Countability axioms.
A topological basis on a topological sp... |
6b4931f7766f4b724d747a424ef0d5462eb4d35c | 4e3bf8e2b29061457a887ac8889e88fa5aa0e34c | /lean/love06_monads_demo.lean | 55ee204f44b76aa11329695e0b4fbcb14c9254d2 | [] | no_license | mukeshtiwari/logical_verification_2019 | 9f964c067a71f65eb8884743273fbeef99e6503d | 16f62717f55ed5b7b87e03ae0134791a9bef9b9a | refs/heads/master | 1,619,158,844,208 | 1,585,139,500,000 | 1,585,139,500,000 | 249,906,380 | 0 | 0 | null | 1,585,118,728,000 | 1,585,118,727,000 | null | UTF-8 | Lean | false | false | 4,524 | lean | /- LoVe Demo 6: Monads -/
import .lovelib
namespace LoVe
/- Motivating Example -/
def sum_2_5_7₁ (ns : list ℕ) : option ℕ :=
match list.nth ns 1 with
| none := none
| some n2 :=
match list.nth ns 4 with
| none := none
| some n5 :=
match list.nth ns 6 with
| none := none
| some n7 := some... |
26a69dda044ec043aded0a30dbc4e5e2305cb287 | d406927ab5617694ec9ea7001f101b7c9e3d9702 | /src/computability/ackermann.lean | 8556260af63650b576dda4201ad2a2048390ceb3 | [
"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 | 13,390 | lean | /-
Copyright (c) 2022 Violeta Hernández Palacios. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Violeta Hernández Palacios
-/
import computability.primrec
import tactic.linarith
/-!
# Ackermann function
In this file, we define the two-argument Ackermann function `ac... |
376c1142499228cc3e0c5b3890fbd17bd8ee1c15 | 74addaa0e41490cbaf2abd313a764c96df57b05d | /Mathlib/group_theory/free_abelian_group.lean | 97e5237b6e7f9e126b707e34bb7d1d1276b70c39 | [] | 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,224 | lean | /-
Copyright (c) 2018 Kenny Lau. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Kenny Lau
Free abelian groups as abelianization of free groups.
-- TODO: rewrite in terms of finsupp
-/
import Mathlib.PrePort
import Mathlib.Lean3Lib.init.default
import Mathlib.algebra.... |
793a369b7e4d49628bb74e4edc046eb94d2220d0 | 969dbdfed67fda40a6f5a2b4f8c4a3c7dc01e0fb | /src/measure_theory/set_integral.lean | 410d4bc12845bd9c6912759ea8e4d253b7e1d294 | [
"Apache-2.0"
] | permissive | SAAluthwela/mathlib | 62044349d72dd63983a8500214736aa7779634d3 | 83a4b8b990907291421de54a78988c024dc8a552 | refs/heads/master | 1,679,433,873,417 | 1,615,998,031,000 | 1,615,998,031,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 44,940 | lean | /-
Copyright (c) 2020 Zhouhang Zhou. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Zhouhang Zhou, Yury Kudryashov
-/
import measure_theory.bochner_integration
import analysis.normed_space.indicator_function
/-!
# Set integral
In this file we prove some properties of... |
774fe34a8b31ee1ac2a92cc3849dfc5134323662 | bb31430994044506fa42fd667e2d556327e18dfe | /src/data/real/basic.lean | 76aa36a70ac09d129cf3243d876aeee5e313b644 | [
"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 | 27,891 | lean | /-
Copyright (c) 2018 Mario Carneiro. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Mario Carneiro, Floris van Doorn
-/
import algebra.bounds
import algebra.order.archimedean
import algebra.star.basic
import data.real.cau_seq_completion
/-!
# Real numbers from Cauchy... |
42494d869d1eb27605d7a812aedb7102d3757361 | 8cae430f0a71442d02dbb1cbb14073b31048e4b0 | /src/analysis/convex/gauge.lean | 2304cd00b55fe115f4465fa52330ff8464809304 | [
"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 | 18,991 | lean | /-
Copyright (c) 2021 Yaël Dillies, Bhavik Mehta. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Yaël Dillies, Bhavik Mehta
-/
import analysis.convex.basic
import analysis.normed_space.pointwise
import analysis.seminorm
import data.is_R_or_C.basic
import tactic.congrm
... |
71aa4c835a2f442744d3e4cdfa32fba7fb50dbd2 | fa02ed5a3c9c0adee3c26887a16855e7841c668b | /src/category_theory/comma.lean | 476c1c7b87219b655777a71f024408edf69608f0 | [
"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 | 7,435 | lean | /-
Copyright (c) 2018 Scott Morrison. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Scott Morrison, Johan Commelin, Bhavik Mehta
-/
import category_theory.natural_isomorphism
/-!
# Comma categories
A comma category is a construction in category theory, which builds ... |
07e304b95335064aac892b97f8bc48fe5a2bf7e2 | 35960c5b117752aca7e3e7767c0b393e4dbd72a7 | /src/sch/subst.lean | 04fddf950f0735342422f2944c54ea8f70b2b351 | [
"Apache-2.0"
] | permissive | spl/tts | 461dc76b83df8db47e4660d0941dc97e6d4fd7d1 | b65298fea68ce47c8ed3ba3dbce71c1a20dd3481 | refs/heads/master | 1,541,049,198,347 | 1,537,967,023,000 | 1,537,967,029,000 | 119,653,145 | 1 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 3,121 | lean | import .core
namespace tts ------------------------------------------------------------------
namespace sch ------------------------------------------------------------------
variables {V : Type} [_root_.decidable_eq V] -- Type of variable names
variables {vs : list V} -- List of variable names
variables {nd : vs.nodu... |
9ae6e653a13a7259905c91187339a70cf527fcb0 | a45212b1526d532e6e83c44ddca6a05795113ddc | /src/algebra/euclidean_domain.lean | a446c48b45e64ac52c83c3205b0d29112297a8a4 | [
"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 | 13,472 | lean | /-
Copyright (c) 2018 Louis Carlin. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Louis Carlin, Mario Carneiro
Euclidean domains and Euclidean algorithm (extended to come)
A lot is based on pre-existing code in mathlib for natural number gcds
-/
import data.int.basic... |
3041801b6e0679ce15b1ead25ab271a0db0dba88 | d406927ab5617694ec9ea7001f101b7c9e3d9702 | /src/geometry/manifold/algebra/monoid.lean | 64c5c72065b9beada8edcda0a99646c5b1284644 | [
"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 | 15,181 | lean | /-
Copyright © 2020 Nicolò Cavalleri. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Nicolò Cavalleri
-/
import geometry.manifold.cont_mdiff_map
/-!
# Smooth monoid
A smooth monoid is a monoid that is also a smooth manifold, in which multiplication is a smooth map
of... |
cbc2e16d20b6a8416832e14161b8749c31bac326 | 64a7884f2a9a760de30168e86a897e1ed06616d2 | /TPPmark/hagiwara/LongestCommon.lean | 73083d34ccefc19f2b3226e3f0cdc84e4dacc538 | [] | no_license | aigarashi/TPP2017 | b87b44649856bd092aa44e9d30dd2b99fecae8ac | 3d27301214cebccad6262315b822f81ab273940a | refs/heads/master | 1,630,127,109,936 | 1,512,981,388,000 | 1,512,981,388,000 | 104,860,417 | 1 | 2 | null | 1,512,542,842,000 | 1,506,415,863,000 | Coq | UTF-8 | Lean | false | false | 6,278 | lean | prelude
import init.data.list.lemmas
import init.data.nat.lemmas
import .Subsequences
variables {α : Type} {β : Type}
open list nat prod
namespace list
definition longest_com' (X Y : list ℕ) := length (com' X Y)
theorem com'_is_longest_com (Z : list ℕ × list ℕ) : longest_com (com' (fst Z) (snd Z)) (fst Z)... |
18bb6366b8bc23e5b7c2750d2a1da2730be7ad49 | 690889011852559ee5ac4dfea77092de8c832e7e | /test/lint.lean | 37cee14063e2a2fb5117075cd93121bcf0e1eeb8 | [
"Apache-2.0"
] | permissive | williamdemeo/mathlib | f6df180148f8acc91de9ba5e558976ab40a872c7 | 1fa03c29f9f273203bbffb79d10d31f696b3d317 | refs/heads/master | 1,584,785,260,929 | 1,572,195,914,000 | 1,572,195,913,000 | 138,435,193 | 0 | 0 | Apache-2.0 | 1,529,789,739,000 | 1,529,789,739,000 | null | UTF-8 | Lean | false | false | 2,208 | lean | import tactic.lint
def foo1 (n m : ℕ) : ℕ := n + 1
def foo2 (n m : ℕ) : m = m := by refl
lemma foo3 (n m : ℕ) : ℕ := n - m
lemma foo.foo (n m : ℕ) : n ≥ n := le_refl n
instance bar.bar : has_add ℕ := by apply_instance -- we don't check the name of instances
-- section
-- local attribute [instance, priority 1001] class... |
495106de34c9066805a686ff8f85e47bb70a0782 | f3a5af2927397cf346ec0e24312bfff077f00425 | /src/mynat/add.lean | d5e7e595f29660abf27d6d3e589e09187585d8e4 | [
"Apache-2.0"
] | permissive | ImperialCollegeLondon/natural_number_game | 05c39e1586408cfb563d1a12e1085a90726ab655 | f29b6c2884299fc63fdfc81ae5d7daaa3219f9fd | refs/heads/master | 1,688,570,964,990 | 1,636,908,242,000 | 1,636,908,242,000 | 195,403,790 | 277 | 84 | Apache-2.0 | 1,694,547,955,000 | 1,562,328,792,000 | Lean | UTF-8 | Lean | false | false | 469 | lean | import mynat.definition
/-
mynat/add.lean
-/
namespace mynat
-- definition of "addition on the natural numbers"
def add : mynat → mynat → mynat
| m 0 := m
| m (succ n) := succ (add m n)
instance : has_add mynat := ⟨mynat.add⟩
-- numerals now work
example : mynat := 37
lemma add_zero (m : mynat) : m + 0 = m :... |
591d583f91b2369c300d77478c22f4d2dd49690e | 35677d2df3f081738fa6b08138e03ee36bc33cad | /src/data/nat/prime.lean | 803eadc223a25faef606d3fc7d0d4052ae3d0b26 | [
"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 | 19,838 | lean | /-
Copyright (c) 2015 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Leonardo de Moura, Jeremy Avigad, Mario Carneiro
-/
import data.nat.sqrt data.nat.gcd data.list.defs data.list.perm
import algebra.group_power
import tactic.wlog
/-!
# Prime n... |
1b7c0e1c8eb9bad4fd9731c9c8cac1b50ab7591b | a0e23cfdd129a671bf3154ee1a8a3a72bf4c7940 | /stage0/src/Lean/Meta/AbstractMVars.lean | 48d050b2b7fd4c4910aa01ebb10323ae019fa98a | [
"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 | 5,533 | 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.Meta.Basic
namespace Lean.Meta
structure AbstractMVarsResult where
paramNames : Array Name
numMVars : Nat
expr : Expr
deriving... |
82d96aea2042503b64f17ee4bb5b3bd8469c0673 | 471bedbd023d35c9d078c2f936dd577ace7f5813 | /library/init/meta/has_reflect.lean | 38a92feb84982c4bd50c4c678118ce3e3fe08a76 | [
"Apache-2.0"
] | permissive | lambdaxymox/lean | e06f0fa503666df827edd9867d7f49ca017aae64 | fc13c8c72a15dab71a2c2b31410c2cadc3526bd7 | refs/heads/master | 1,666,785,407,985 | 1,666,153,673,000 | 1,666,153,673,000 | 310,165,986 | 0 | 0 | Apache-2.0 | 1,604,542,096,000 | 1,604,542,095,000 | null | UTF-8 | Lean | false | false | 1,796 | lean | /-
Copyright (c) 2017 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Sebastian Ullrich
-/
prelude
import init.meta.expr init.util
universes u v
/-- `has_reflect α` lets you produce an `expr` from an instance of α. That is, it is a function from... |
af62722bfbd7c375a08903caca04371ef0b2a904 | 9c1ad797ec8a5eddb37d34806c543602d9a6bf70 | /examples/naturals/naturals.lean | 081c1fe30b5e958619ba5fc51a8cc604901e31b3 | [] | no_license | timjb/lean-category-theory | 816eefc3a0582c22c05f4ee1c57ed04e57c0982f | 12916cce261d08bb8740bc85e0175b75fb2a60f4 | refs/heads/master | 1,611,078,926,765 | 1,492,080,000,000 | 1,492,080,000,000 | 88,348,246 | 0 | 0 | null | 1,492,262,499,000 | 1,492,262,498,000 | null | UTF-8 | Lean | false | false | 1,631 | 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 ...natural_transformation
namespace tqft.categories.examples.naturals
open tqft.categories
open tqft.categories.functor
@[simp]
lemma nat... |
9afaa86471019ce494d7d4c3b5440ae8b6dc7463 | b00eb947a9c4141624aa8919e94ce6dcd249ed70 | /src/Lean/Elab/SyntheticMVars.lean | 4c71234d2634cec65d3bbbc41057849fa01558b0 | [
"Apache-2.0"
] | permissive | gebner/lean4-old | a4129a041af2d4d12afb3a8d4deedabde727719b | ee51cdfaf63ee313c914d83264f91f414a0e3b6e | refs/heads/master | 1,683,628,606,745 | 1,622,651,300,000 | 1,622,654,405,000 | 142,608,821 | 1 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 17,201 | 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, Sebastian Ullrich
-/
import Lean.Util.ForEachExpr
import Lean.Elab.Term
import Lean.Elab.Tactic.Basic
namespace Lean.Elab.Term
open Tactic (TacticM evalTacti... |
45e6999873620d63ae4882419a2f21e6ae6ee35d | 4727251e0cd73359b15b664c3170e5d754078599 | /archive/imo/imo1959_q1.lean | 750f25078a71353bfcaa328811c5ef70792d8f2d | [
"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 | 902 | lean | /-
Copyright (c) 2020 Kevin Lacker. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Kevin Lacker
-/
import tactic.ring
import data.nat.prime
/-!
# IMO 1959 Q1
Prove that the fraction `(21n+4)/(14n+3)` is irreducible for every natural number `n`.
Since Lean doesn't h... |
03d720b8066cda4168d693fe24440d1f82ceb44b | ec5a7ae10c533e1b1f4b0bc7713e91ecf829a3eb | /ijcar16/congr.lean | 2d08535e4bcfa1bb7638903ce445c13e577eeda2 | [
"MIT"
] | permissive | leanprover/leanprover.github.io | cf248934af7c7e9aeff17cf8df3c12c5e7e73f1a | 071a20d2e059a2c3733e004c681d3949cac3c07a | refs/heads/master | 1,692,621,047,417 | 1,691,396,994,000 | 1,691,396,994,000 | 19,366,263 | 18 | 27 | MIT | 1,693,989,071,000 | 1,399,006,345,000 | Lean | UTF-8 | Lean | false | false | 8,259 | lean | namespace paper
/-
In Lean {x : A} is used to declare implicit parameters that must be inferred
by solving typing constraints.
In Lean, the introduction rule and elimination rule for eq are called `eq.refl`
and `eq.rec` respectively.
So, we define refl and erec using them to match the notation used in the paper.
-/
... |
0f22db6301207d80379986c1f1f735a8698234f1 | 6432ea7a083ff6ba21ea17af9ee47b9c371760f7 | /tests/lean/interactive/foldingRange.lean | 68967269e408c0babe43807ed97fd1dc258f0d7d | [
"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 | 419 | lean | --^ textDocument/foldingRange
import Lean
import Lean.Data
open Lean
namespace Foo
open Std
open Lean
section Bar
/-!
A module-level doc comment
-/
/--
Some documentation comment
-/
@[inline]
def add (x y : Nat) :=
x + y
inductive InductiveTy
| a
/--
Another doc comment. This one is not folded.
... |
827609fcaa54eb1b36951a3bb9cd2d713820c3fe | aa3f8992ef7806974bc1ffd468baa0c79f4d6643 | /library/logic/connectives.lean | b604a9496e64f5fc4b5bf3c23bc8057f55ef4885 | [
"Apache-2.0"
] | permissive | codyroux/lean | 7f8dff750722c5382bdd0a9a9275dc4bb2c58dd3 | 0cca265db19f7296531e339192e9b9bae4a31f8b | refs/heads/master | 1,610,909,964,159 | 1,407,084,399,000 | 1,416,857,075,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 5,390 | 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
import general_notation .eq
-- and
-- ---
inductive and (a b : Prop) : Prop :=
intro : a → b → and a b
notation a /\ b := and a b
notat... |
27e6ffd87b65510cebb04c4decf56aa13de91cee | d9d511f37a523cd7659d6f573f990e2a0af93c6f | /src/topology/metric_space/hausdorff_distance.lean | 9077225247886cfa619157bece5d9e3a223c8929 | [
"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 | 32,623 | lean | /-
Copyright (c) 2019 Sébastien Gouëzel. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Sébastien Gouëzel
-/
import topology.metric_space.isometry
import topology.instances.ennreal
import analysis.specific_limits
/-!
# Hausdorff distance
The Hausdorff distance on sub... |
cde1090e29c6d9b3ad7220fb2f279246e35b243e | 6432ea7a083ff6ba21ea17af9ee47b9c371760f7 | /tests/lean/1011.lean | 3893b13f70619ed314eecef4419090b27ee8119c | [
"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 | 159 | lean | def f (x : A) := x
set_option relaxedAutoImplicit false
def g (x : A) := x
def h (x : AA) := x
def i (x : A1) := x
def j (x : A₁) := x
def k (x : A') := x
|
faf2a9150529903a28763c5bb67683bac447b334 | 4727251e0cd73359b15b664c3170e5d754078599 | /src/data/fin/vec_notation.lean | e55841bcc108ea128fffbdd45313524f34ea85c4 | [
"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 | 13,033 | lean | /-
Copyright (c) 2020 Anne Baanen. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Anne Baanen
-/
import data.fin.tuple
import data.list.range
import group_theory.group_action.pi
/-!
# Matrix and vector notation
This file defines notation for vectors and matrices. Giv... |
cbe02ca62200ead5350324665060b125b2ad430e | 4fa161becb8ce7378a709f5992a594764699e268 | /src/data/pnat/basic.lean | 1e2ddd870309cf199df3ab2afdf7a0b2b4386ef9 | [
"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 | 13,473 | lean | /-
Copyright (c) 2017 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Author: Mario Carneiro, Neil Strickland
-/
import data.nat.prime
/-- `ℕ+` is the type of positive natural numbers. It is defined as a subtype,
and the VM representation of `ℕ+` is the... |
40579c91407e3707183ac253cae5024affadff6e | 037dba89703a79cd4a4aec5e959818147f97635d | /src/2022/sets/sheet4.lean | ab569653d976ad6f9fdba5602f69b87ad610565b | [] | no_license | ImperialCollegeLondon/M40001_lean | 3a6a09298da395ab51bc220a535035d45bbe919b | 62a76fa92654c855af2b2fc2bef8e60acd16ccec | refs/heads/master | 1,666,750,403,259 | 1,665,771,117,000 | 1,665,771,117,000 | 209,141,835 | 115 | 12 | null | 1,640,270,596,000 | 1,568,749,174,000 | Lean | UTF-8 | Lean | false | false | 1,688 | lean | /-
Copyright (c) 2022 Kevin Buzzard. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Author : Kevin Buzzard
-/
import tactic -- imports all the Lean tactics
/-!
# Sets in Lean, example sheet 4 : exists (`∃`)
In this sheet we learn how to manipulate `∃` in Lean. We will see
s... |
c2aae7573dc51606ff7e6cc576ef38ceddbc1d2b | 94e33a31faa76775069b071adea97e86e218a8ee | /src/data/set/intervals/monotone.lean | fc9b40cb4cc54f09276659ae3166603334f0e014 | [
"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 | 8,851 | 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.set.intervals.disjoint
import tactic.field_simp
/-!
# Monotonicity on intervals
In this file we prove that a function is (strictly) monotone (or antit... |
ffe757608876d82c50a133e1e97584afa6742175 | bb31430994044506fa42fd667e2d556327e18dfe | /src/algebra/star/pi.lean | 3aafeb402df3490d11b440507bbfc1a3d9833dc7 | [
"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 | 2,379 | lean | /-
Copyright (c) 2021 Eric Wieser. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Eric Wieser
-/
import algebra.star.basic
import algebra.ring.pi
/-!
# `star` on pi types
> THIS FILE IS SYNCHRONIZED WITH MATHLIB4.
> Any changes to this file require a corresponding PR... |
f683df01f0670bf904e4252d45f4d2c1578555d6 | 3af272061d36e7f3f0521cceaa3a847ed4e03af9 | /src/computable_matrix.lean | 274e9c79b261ffb2dc6e2e6cb16ca53701cb6385 | [] | no_license | semorrison/kbb | fdab0929d21dca880d835081814225a95f946187 | 229bd06e840bc7a7438b8fee6802a4f8024419e3 | refs/heads/master | 1,585,351,834,355 | 1,539,848,241,000 | 1,539,848,241,000 | 147,323,315 | 2 | 1 | null | null | null | null | UTF-8 | Lean | false | false | 12,749 | lean | /-
A faster, computable version of matrices implemented entirely in terms of d_array,
trying to rely on fast pre-existing array and d_array functions as much as possible.
A slightly more "serious" version of fast_matrix (?)
Still a WIP.
The second half of the document is a bit of a mess.
-/
imp... |
4f95374a23d0daa2b93003427d6016ecd93cb254 | 74addaa0e41490cbaf2abd313a764c96df57b05d | /Mathlib/analysis/calculus/times_cont_diff_auto.lean | e35a4f5178b01e07ee3cd11585d9a6b395c90abf | [] | 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 | 143,642 | lean | /-
Copyright (c) 2019 Sébastien Gouëzel. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Sébastien Gouëzel
-/
import Mathlib.PrePort
import Mathlib.Lean3Lib.init.default
import Mathlib.analysis.calculus.mean_value
import Mathlib.analysis.calculus.formal_multilinear_seri... |
d6c3edcde2240e2d7640b638ca555c819de3044b | dd0f5513e11c52db157d2fcc8456d9401a6cd9da | /08_Building_Theories_and_Proofs.org.33.lean | 65a71c02f34725b1fc4d70b57d595c7087338384 | [] | no_license | cjmazey/lean-tutorial | ba559a49f82aa6c5848b9bf17b7389bf7f4ba645 | 381f61c9fcac56d01d959ae0fa6e376f2c4e3b34 | refs/heads/master | 1,610,286,098,832 | 1,447,124,923,000 | 1,447,124,923,000 | 43,082,433 | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 108 | lean | import standard
import data.nat
open nat (add add.assoc add.comm)
check add
check add.assoc
check add.comm
|
4aff56bcf80633609cf022d4ed98fdee1f83a7f7 | da3a76c514d38801bae19e8a9e496dc31f8e5866 | /tests/lean/interactive/rb_map_ts.lean | 886afae221c2490ff1a836e096090e76771919d1 | [
"Apache-2.0"
] | permissive | cipher1024/lean | 270c1ac5781e6aee12f5c8d720d267563a164beb | f5cbdff8932dd30c6dd8eec68f3059393b4f8b3a | refs/heads/master | 1,611,223,459,029 | 1,487,566,573,000 | 1,487,566,573,000 | 83,356,543 | 0 | 0 | null | 1,488,229,336,000 | 1,488,229,336,000 | null | UTF-8 | Lean | false | false | 2,139 | lean | meta def mytac :=
state_t (name_map nat) tactic
meta instance : monad mytac :=
state_t.monad _ _
meta instance : monad.has_monad_lift tactic mytac :=
monad.monad_transformer_lift (state_t (name_map nat)) tactic
meta instance (α : Type) : has_coe (tactic α) (mytac α) :=
⟨monad.monad_lift⟩
namespace mytac
meta def s... |
d13882f733df5dd2fe24f88315f52013717ad864 | 9028d228ac200bbefe3a711342514dd4e4458bff | /src/linear_algebra/tensor_product.lean | 48617bb71ffd8b256ceb931cd076c1d111a90a59 | [
"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 | 23,004 | lean | /-
Copyright (c) 2018 Kenny Lau. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Kenny Lau, Mario Carneiro
-/
import group_theory.congruence
import linear_algebra.basic
/-!
# Tensor product of semimodules over commutative semirings.
This file constructs the tensor pr... |
e097e6048ce8b6d0182f516796cf0670fcacef2f | 853df553b1d6ca524e3f0a79aedd32dde5d27ec3 | /src/ring_theory/integral_domain.lean | 5dba8c6efd26d910e0fdb2e8ffbf0b961d173e0c | [
"Apache-2.0"
] | permissive | DanielFabian/mathlib | efc3a50b5dde303c59eeb6353ef4c35a345d7112 | f520d07eba0c852e96fe26da71d85bf6d40fcc2a | refs/heads/master | 1,668,739,922,971 | 1,595,201,756,000 | 1,595,201,756,000 | 279,469,476 | 0 | 0 | null | 1,594,696,604,000 | 1,594,696,604,000 | null | UTF-8 | Lean | false | false | 6,765 | lean | /-
Copyright (c) 2020 Johan Commelin. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Johan Commelin, Chris Hughes
-/
import data.fintype.card
import data.polynomial
import group_theory.order_of_element
import algebra.geom_sum
/-!
# Integral domains
-/
section
open ... |
97693cc3973b7105fc1925c5329901a3ff79931d | fa02ed5a3c9c0adee3c26887a16855e7841c668b | /src/algebra/indicator_function.lean | e338cc654fd357080cbb4329285beee5dae77345 | [
"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 | 19,972 | lean | /-
Copyright (c) 2020 Zhouhang Zhou. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Zhouhang Zhou
-/
import algebra.group.pi
import group_theory.group_action
import algebra.support
import data.finset.lattice
/-!
# Indicator function
- `indicator (s : set α) (f : α → ... |
b6e0566928854d608aeac9b18cce2e05a484f1f5 | 6432ea7a083ff6ba21ea17af9ee47b9c371760f7 | /tests/lean/run/simpArith1.lean | 31c2a1dc4f5efe0e76edc9e64908203ab4a6142c | [
"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 | 558 | lean | theorem ex1 : a + b < b + 1 + a + c := by
simp (config := { arith := true })
theorem ex2 : a + b < b + 1 + a + c := by
simp_arith
theorem ex3 : a + (fun x => x) b < b + 1 + a + c := by
simp_arith
theorem ex4 : a + (fun x => x) b < b + 1 + a + c := by
simp_arith (config := { beta := false })
trace_state
s... |
31c305813fb0f2142f4b4c1789442310e9f72856 | c09f5945267fd905e23a77be83d9a78580e04a4a | /src/data/finset.lean | 47f9e5dfc58a28ebdefa402c7a22140272654ef9 | [
"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 | 79,951 | lean | /-
Copyright (c) 2015 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Author: Leonardo de Moura, Jeremy Avigad, Minchao Wu, Mario Carneiro
Finite sets.
-/
import logic.embedding order.boolean_algebra algebra.order_functions
data.multiset data.sigma.basi... |
8afffb3f316fff3dbaee3fa4adda6079895d5ffe | 4727251e0cd73359b15b664c3170e5d754078599 | /src/field_theory/finite/basic.lean | d1494e70e2aef3fd3c939a0d70b3f41f1914bfb4 | [
"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 | 16,155 | lean | /-
Copyright (c) 2018 Chris Hughes. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Chris Hughes, Joey van Langen, Casper Putz
-/
import tactic.apply_fun
import algebra.ring.equiv
import data.zmod.algebra
import linear_algebra.finite_dimensional
import ring_theory.integ... |
85a68927d63567d425baa1c316105d2a2d258d90 | cf39355caa609c0f33405126beee2739aa3cb77e | /tests/lean/run/matrix.lean | 793b1a197fca79b3ba3394d071228ef6da216487 | [
"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 | 1,089 | lean | constant {u} matrix : Type u → Type u
constant same_dim {A : Type} : matrix A → matrix A → Prop
constant add1 {A : Type} (m1 m2 : matrix A) {H : same_dim m1 m2} : matrix A
theorem same_dim_irrel {A : Type} {m1 m2 : matrix A} {H1 H2 : same_dim m1 m2} : @add1 A m1 m2 H1 = @add1 A m1 m2 H2 :=
rfl
open eq
theorem same_dim... |
dd6a9d23e2ed199f6765c6833241bb994613af3d | a1179fa077c09acc49e4fbc8d67084ba89ac4f4c | /tutorials/src/solutions/07_first_negations.lean | 995201c117b5445b44bd09a374352499225e5e6f | [] | no_license | Seeram/Lean-proof-assistant | 11ca0ca0e0446bacdd1773c4c481a3653b2f1074 | e672d46e0e5f39d8de2933ad4f4cac095ca6094f | refs/heads/master | 1,682,754,224,366 | 1,620,959,431,000 | 1,620,959,431,000 | 299,000,950 | 0 | 1 | null | 1,620,680,462,000 | 1,601,200,258,000 | Lean | UTF-8 | Lean | false | false | 8,388 | lean | import tuto_lib
import data.int.parity
/-
Negations, proof by contradiction and contraposition.
This file introduces the logical rules and tactics related to negation:
exfalso, by_contradiction, contrapose, by_cases and push_neg.
There is a special statement denoted by `false` which, by definition,
has no proof.
So ... |
822a1bbc65e06736c3f1a501624c58ea155f2790 | 8cae430f0a71442d02dbb1cbb14073b31048e4b0 | /test/revert_target_deps.lean | 34f94ea5537b90c169926bf7541358bdf11f0d79 | [
"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 | 700 | lean | import tactic.interactive
example (b : bool) (h : b = tt) : true :=
begin
let b₁ : bool := b,
/-
This test shows that `tactic.revert_target_deps`
will revert `b₁` because it occurse in the `have` statement below,
but recursively also reverts `b` (and hence `h`),
because `b` occurs in the body of the `let` ... |
87d37dc6022bd50fc2f8d48e15f5eb6403da4371 | 63abd62053d479eae5abf4951554e1064a4c45b4 | /src/category_theory/adjunction/fully_faithful.lean | 5491d3ba61a0f5bf41da31994eec10d4ce5e7e17 | [
"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 | 4,770 | 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 category_theory.adjunction.basic
import category_theory.conj
import category_theory.yoneda
open category_theory
namespace category_theory
universes v₁ v₂ u₁ ... |
89487d13bd929df7b6b955904db9117122381e4a | 4727251e0cd73359b15b664c3170e5d754078599 | /src/category_theory/structured_arrow.lean | 5158fe858211c891c0eed19e3fae7d0043cffa1f | [
"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 | 13,254 | lean | /-
Copyright (c) 2021 Scott Morrison. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Adam Topaz, Scott Morrison
-/
import category_theory.punit
import category_theory.comma
import category_theory.limits.shapes.terminal
/-!
# The category of "structured arrows"
For `T... |
386f3703688181a092f8724addf20a7e108b74c3 | 90edd5cdcf93124fe15627f7304069fdce3442dd | /stage0/src/Lean/PrettyPrinter/Parenthesizer.lean | 6d6e76cf78a744a124e20185b488b5c2a3cea041 | [
"Apache-2.0"
] | permissive | JLimperg/lean4-aesop | 8a9d9cd3ee484a8e67fda2dd9822d76708098712 | 5c4b9a3e05c32f69a4357c3047c274f4b94f9c71 | refs/heads/master | 1,689,415,944,104 | 1,627,383,284,000 | 1,627,383,284,000 | 377,536,770 | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 29,875 | lean | /-
Copyright (c) 2020 Sebastian Ullrich. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Sebastian Ullrich
-/
/-!
The parenthesizer inserts parentheses into a `Syntax` object where syntactically necessary, usually as an intermediary
step between the delaborator and the... |
c041066e8422b9fb13da17c6cc2e608af1839a13 | ad0c7d243dc1bd563419e2767ed42fb323d7beea | /analysis/metric_space.lean | 0c3ce28e4d58af966999c9050150181ad306dc9e | [
"Apache-2.0"
] | permissive | sebzim4500/mathlib | e0b5a63b1655f910dee30badf09bd7e191d3cf30 | 6997cafbd3a7325af5cb318561768c316ceb7757 | refs/heads/master | 1,585,549,958,618 | 1,538,221,723,000 | 1,538,221,723,000 | 150,869,076 | 0 | 0 | Apache-2.0 | 1,538,229,323,000 | 1,538,229,323,000 | null | UTF-8 | Lean | false | false | 21,873 | lean | /-
Copyright (c) 2015, 2017 Jeremy Avigad. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Metric spaces.
Authors: Jeremy Avigad, Robert Y. Lewis, Johannes Hölzl, Mario Carneiro
Many definitions and theorems expected on metric spaces are already introduced on uniform spaces an... |
64cf89cb320a202d55b80f0a1d867ab6f727f826 | 1dd482be3f611941db7801003235dc84147ec60a | /src/data/subtype.lean | ecec6f922d3a957b2da930a086b6ab4a6523728f | [
"Apache-2.0"
] | permissive | sanderdahmen/mathlib | 479039302bd66434bb5672c2a4cecf8d69981458 | 8f0eae75cd2d8b7a083cf935666fcce4565df076 | refs/heads/master | 1,587,491,322,775 | 1,549,672,060,000 | 1,549,672,060,000 | 169,748,224 | 0 | 0 | Apache-2.0 | 1,549,636,694,000 | 1,549,636,694,000 | null | UTF-8 | Lean | false | false | 2,977 | 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
-/
section subtype
variables {α : Sort*} {β : α → Prop}
protected lemma subtype.eq' : ∀ {a1 a2 : {x // β x}}, a1.val = a2.val → a1 = a2
| ⟨x, h1⟩ ⟨.(x), h2⟩ rfl := rfl
... |
a2bf81372e13d3506e8ab30c433e451b120745af | 9dc8cecdf3c4634764a18254e94d43da07142918 | /src/analysis/convex/join.lean | 4461311991b0ba19e882dda4c3b0231da0655655 | [
"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 | 10,211 | 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 analysis.convex.combination
/-!
# Convex join
This file defines the convex join of two sets. The convex join of `s` and `t` is the union of the
segments with one... |
022196fb34d044b76ebdde1f3ef33b0f56af9c4e | bb31430994044506fa42fd667e2d556327e18dfe | /src/data/finset/powerset.lean | 0dd929a6a0e9737a1fea41c3b08816b3be432b8c | [
"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 | 12,419 | 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 data.finset.lattice
import data.multiset.powerset
/-!
# The powerset of a finset
-/
namespace finset
open function multiset
variables {α : Type*} {s t : fin... |
7f870b4e023bead9936018f3dfea2c9de7a192d7 | 367134ba5a65885e863bdc4507601606690974c1 | /src/deprecated/subgroup.lean | 5eadaedd65835aa2269b231926ea51c532d3c01a | [
"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 | 28,842 | lean | /-
Copyright (c) 2018 Johannes Hölzl. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Johannes Hölzl, Mitchell Rowett, Scott Morrison, Johan Commelin, Mario Carneiro,
Michael Howes
-/
import group_theory.subgroup
import deprecated.submonoid
open set function
variabl... |
eb296e49b00970968d671923db0bfb34434046af | 367134ba5a65885e863bdc4507601606690974c1 | /src/data/equiv/local_equiv.lean | e643ee5268f4ebc927a5d43ef775f819e666fcc1 | [
"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 | 25,690 | lean | /-
Copyright (c) 2019 Sébastien Gouëzel. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Sébastien Gouëzel
-/
import data.equiv.basic
/-!
# Local equivalences
This files defines equivalences between subsets of given types.
An element `e` of `local_equiv α β` is made o... |
416aa1a8e62e8ca1c3acc18c50aae30c4f1b43cb | 7cef822f3b952965621309e88eadf618da0c8ae9 | /src/category_theory/const.lean | 860a46738eba0c532f2b0769f54f42c16781cd01 | [
"Apache-2.0"
] | permissive | rmitta/mathlib | 8d90aee30b4db2b013e01f62c33f297d7e64a43d | 883d974b608845bad30ae19e27e33c285200bf84 | refs/heads/master | 1,585,776,832,544 | 1,576,874,096,000 | 1,576,874,096,000 | 153,663,165 | 0 | 2 | Apache-2.0 | 1,544,806,490,000 | 1,539,884,365,000 | Lean | UTF-8 | Lean | false | false | 2,672 | lean | /-
Copyright (c) 2018 Scott Morrison. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Scott Morrison
-/
import category_theory.functor_category
import category_theory.opposites
universes v₁ v₂ v₃ u₁ u₂ u₃ -- declare the `v`'s first; see `category_theory.category` for ... |
7559c45cb0a4f1c3c3f549e72512d1acf4f4423c | cf39355caa609c0f33405126beee2739aa3cb77e | /tests/lean/run/tc_cache2.lean | eb94ff4ce781fab2701bf0c51ea9fd7e8fde4310 | [
"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 | 837 | lean | class succeeds_w_cache (α : Type) := (a : α)
class fails_quickly_w_cache (α : Type) extends succeeds_w_cache α
class loops_wo_cache (α : Type) := (a : α)
class has_no_inst (α : Type)
instance loops_wo_cache.loop {α} [loops_wo_cache α] [inhabited α] :
loops_wo_cache α :=
‹loops_wo_cache α›
instance inhabited.to_lo... |
ac9f49cc51e821b2951710d9e3d4b6ccc9a9e00c | 74addaa0e41490cbaf2abd313a764c96df57b05d | /Mathlib/data/set/intervals/default_auto.lean | 10e8536bbe528d7df8bb12cec135c1b0755b8d96 | [] | 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 | 211 | lean | import Mathlib.PrePort
import Mathlib.Lean3Lib.init.default
import Mathlib.data.set.intervals.disjoint
import Mathlib.data.set.intervals.unordered_interval
import Mathlib.PostPort
namespace Mathlib
end Mathlib |
5c38865b2af78f44dc84484af839c6898321cb1b | cf39355caa609c0f33405126beee2739aa3cb77e | /tests/lean/local_notation_bug2.lean | e356619108cb17cad4cbe655417bc22390df5bf5 | [
"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 | 149 | lean | open nat
section
parameters (b : ℕ)
definition add_b (n : ℕ) := n + b
local postfix `%%`:max := add_b
end
#reduce 5%% -- Error, unexpected token
|
1bcf7b62efa2c101934252bbabafab643de67ae6 | be5348f86d661459153802318209304b793c0e2a | /src/simple.lean | 0fff9982385f24784b70674fa3d9f9318ea30a8f | [] | no_license | reglayass/lean-avl | 6b758c7708bdb3316b1b97ada3e3f259b49da58a | c7bffa75d7548e5ff8cdd7d69f5a58499f883df1 | refs/heads/master | 1,692,297,536,477 | 1,633,946,864,000 | 1,633,946,864,000 | 340,881,572 | 4 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 2,833 | lean | import definitions tactic.linarith tactic.omega
set_option pp.generalized_field_notation false
universe u
open btree
variables {α : Type u}
/- # Simple reflexive lemmas # -/
/- If we lookup empty btree then return none -/
lemma lookup_empty (k : nat) :
lookup k (@empty_tree α) = none := by refl
/- If you check ... |
0a24e3cfda6c4f4bf44a5043e7c7c409226889e5 | 74addaa0e41490cbaf2abd313a764c96df57b05d | /Mathlib/data/rel_auto.lean | c504b6d7eda9a0d1130b5940894aeaffa91b3c54 | [] | 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 | 8,488 | lean | /-
Copyright (c) 2018 Jeremy Avigad. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Jeremy Avigad
Operations on set-valued functions, aka partial multifunctions, aka relations.
-/
import Mathlib.PrePort
import Mathlib.Lean3Lib.init.default
import Mathlib.data.set.latt... |
3d0e635b6ae1e3dbc7522111656135674dbb28a5 | fe84e287c662151bb313504482b218a503b972f3 | /src/exercises/hello_world.lean | c740a17934ccd2e3167fdab5c7bbcdc5adb548d3 | [] | no_license | NeilStrickland/lean_lib | 91e163f514b829c42fe75636407138b5c75cba83 | 6a9563de93748ace509d9db4302db6cd77d8f92c | refs/heads/master | 1,653,408,198,261 | 1,652,996,419,000 | 1,652,996,419,000 | 181,006,067 | 4 | 1 | null | null | null | null | UTF-8 | Lean | false | false | 1,519 | lean | theorem one_plus_one : 1 + 1 ≤ 2 :=
/-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
This line states a theorem. Note that we need a colon between the
name of the theorem, and a := between the statement and the proof.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~-/
begin ... |
514c195a2ad8fde0c9584953deacdf3c48d56f2e | d1bbf1801b3dcb214451d48214589f511061da63 | /src/field_theory/normal.lean | 799e05c173f671f2d0e39e36d6817fd03211c43c | [
"Apache-2.0"
] | permissive | cheraghchi/mathlib | 5c366f8c4f8e66973b60c37881889da8390cab86 | f29d1c3038422168fbbdb2526abf7c0ff13e86db | refs/heads/master | 1,676,577,831,283 | 1,610,894,638,000 | 1,610,894,638,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 3,574 | 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 field_theory.minpoly
import field_theory.splitting_field
import linear_algebra.finite_dimensional
/-!
# Normal field extensions
In this file we define normal field ex... |
401827dec0212b5ad08c1348c8ad459a959bdf70 | f57749ca63d6416f807b770f67559503fdb21001 | /library/data/real/basic.lean | f438912ec5115cf2f97865113f2cb2190b399e92 | [
"Apache-2.0"
] | permissive | aliassaf/lean | bd54e85bed07b1ff6f01396551867b2677cbc6ac | f9b069b6a50756588b309b3d716c447004203152 | refs/heads/master | 1,610,982,152,948 | 1,438,916,029,000 | 1,438,916,029,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 38,324 | lean | /-
Copyright (c) 2015 Robert Y. Lewis. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Author: Robert Y. Lewis
The real numbers, constructed as equivalence classes of Cauchy sequences of rationals.
This construction follows Bishop and Bridges (1985).
To do:
o Rename things and... |
cc9cea13998a05c9a449527b967d60c2918b0853 | 1dd482be3f611941db7801003235dc84147ec60a | /src/logic/basic.lean | 1ef17f24100f46acf53f4b274f1fddc3572944ba | [
"Apache-2.0"
] | permissive | sanderdahmen/mathlib | 479039302bd66434bb5672c2a4cecf8d69981458 | 8f0eae75cd2d8b7a083cf935666fcce4565df076 | refs/heads/master | 1,587,491,322,775 | 1,549,672,060,000 | 1,549,672,060,000 | 169,748,224 | 0 | 0 | Apache-2.0 | 1,549,636,694,000 | 1,549,636,694,000 | null | UTF-8 | Lean | false | false | 25,860 | 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
Theorems that require decidability hypotheses are in the namespace "decidable".
Classical versions are in the namespace "classical".
Note: in the pres... |
19f57f5ca712208fee34941315cb182870dab613 | 4727251e0cd73359b15b664c3170e5d754078599 | /src/topology/uniform_space/uniform_embedding.lean | 7764ede6e6918bfac6feca815f98796b64ac817d | [
"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 | 25,427 | lean | /-
Copyright (c) 2017 Johannes Hölzl. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Johannes Hölzl, Sébastien Gouëzel, Patrick Massot
-/
import topology.uniform_space.cauchy
import topology.uniform_space.separation
import topology.dense_embedding
/-!
# Uniform embedd... |
85b746cd0269acd3468e56c4aa56e2ccfd0dbc74 | 453dcd7c0d1ef170b0843a81d7d8caedc9741dce | /data/fintype.lean | 47400ead3e10ad726a28b10b54a22ada3219b4c7 | [
"Apache-2.0"
] | permissive | amswerdlow/mathlib | 9af77a1f08486d8fa059448ae2d97795bd12ec0c | 27f96e30b9c9bf518341705c99d641c38638dfd0 | refs/heads/master | 1,585,200,953,598 | 1,534,275,532,000 | 1,534,275,532,000 | 144,564,700 | 0 | 0 | null | 1,534,156,197,000 | 1,534,156,197,000 | null | UTF-8 | Lean | false | false | 18,915 | lean | /-
Copyright (c) 2017 Mario Carneiro. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Author: Mario Carneiro
Finite types.
-/
import data.finset algebra.big_operators data.array.lemmas data.vector2
universes u v
variables {α : Type*} {β : Type*} {γ : Type*}
/-- `fintype α` me... |
ba4cbfb5cd0f26b2a0e2359d5857f9a65c9b9891 | 4727251e0cd73359b15b664c3170e5d754078599 | /src/data/sigma/order.lean | f85e907856eb07e2f14935478aacc7c2c0c1dca2 | [
"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 | 6,605 | lean | /-
Copyright (c) 2021 Yaël Dillies. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Yaël Dillies
-/
import data.sigma.lex
import order.bounded_order
/-!
# Orders on a sigma type
This file defines two orders on a sigma type:
* The disjoint sum of orders. `a` is less `b... |
0d2b410c21bd03ac3674d71fe217a2da0dacb367 | 367134ba5a65885e863bdc4507601606690974c1 | /src/data/set/disjointed.lean | 2934139b7a90c962958e784eaa609d94737a2eb4 | [
"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 | 4,646 | 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
Disjointed sets
-/
import data.set.lattice
import tactic.wlog
open set classical
open_locale classical
universes u v w x
variables {α : Type u} {β : Type v} {γ : Type ... |
94b97ef75606d072f1148081490820477ef79048 | 4e3bf8e2b29061457a887ac8889e88fa5aa0e34c | /lean/love10_denotational_semantics_homework_sheet.lean | adb2502fcb6aaa9a242b5e8333e7c1a59fa120e7 | [] | no_license | mukeshtiwari/logical_verification_2019 | 9f964c067a71f65eb8884743273fbeef99e6503d | 16f62717f55ed5b7b87e03ae0134791a9bef9b9a | refs/heads/master | 1,619,158,844,208 | 1,585,139,500,000 | 1,585,139,500,000 | 249,906,380 | 0 | 0 | null | 1,585,118,728,000 | 1,585,118,727,000 | null | UTF-8 | Lean | false | false | 5,019 | lean | /- LoVe Homework 10: Denotational Semantics -/
import .love10_denotational_semantics_demo
namespace LoVe
/- Denotational semantics are well suited to functional programming. In this
exercise, we will study some representations of functional programs in Lean and
their denotational semantics. -/
/- The `nondet` type ... |
d5213872d7d051be1692f31924662c3c06c9df21 | bdb33f8b7ea65f7705fc342a178508e2722eb851 | /logic/schroeder_bernstein.lean | ba43717647c3b689f8b7dcdd020a5f83f7d133b2 | [
"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 | 5,471 | 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
The Schröder-Bernstein theorem, and well ordering of cardinals.
-/
import order.fixed_points data.set.lattice logic.function logic.embedding order.zorn
... |
08dbf5d33841a4ba4b50ad93876ca2e330e3e2f9 | 302c785c90d40ad3d6be43d33bc6a558354cc2cf | /src/geometry/manifold/smooth_manifold_with_corners.lean | 50ad9e83cebbb095f0a306e25d8b3aa01aa51ec5 | [
"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 | 39,411 | lean | /-
Copyright (c) 2019 Sébastien Gouëzel. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Sébastien Gouëzel
-/
import analysis.calculus.times_cont_diff
import geometry.manifold.charted_space
/-!
# Smooth manifolds (possibly with boundary or corners)
A smooth manifold i... |
c5cb29382141820aed6f5eea47244916e03cda42 | 5719a16e23dfc08cdea7a5bf035b81690f307965 | /stage0/src/Init/Lean/Compiler/IR/Basic.lean | df47ec6e9bcc3f2124ceec7f51615e4bc3be9636 | [
"Apache-2.0"
] | permissive | postmasters/lean4 | 488b03969a371e1507e1e8a4df9ebf63c7cbe7ac | f3976fc53a883ac7606fc59357d43f4b51016ca7 | refs/heads/master | 1,655,582,707,480 | 1,588,682,595,000 | 1,588,682,595,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 25,719 | 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
-/
prelude
import Init.Data.Array
import Init.Lean.Data.KVMap
import Init.Lean.Data.Name
import Init.Lean.Data.Format
import Init.Lean.Compiler.ExternAttr
/-
I... |
04cfe043d2f9362fedea03ab463755d359143910 | 9be442d9ec2fcf442516ed6e9e1660aa9071b7bd | /src/Lean/Compiler/CSimpAttr.lean | 9af13161c8927350a062852611d42e01c8ad7adf | [
"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 | EdAyers/lean4 | 57ac632d6b0789cb91fab2170e8c9e40441221bd | 37ba0df5841bde51dbc2329da81ac23d4f6a4de4 | refs/heads/master | 1,676,463,245,298 | 1,660,619,433,000 | 1,660,619,433,000 | 183,433,437 | 1 | 0 | Apache-2.0 | 1,657,612,672,000 | 1,556,196,574,000 | Lean | UTF-8 | Lean | false | false | 2,363 | 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.ScopedEnvExtension
import Lean.Util.Recognizers
import Lean.Util.ReplaceExpr
namespace Lean.Compiler
namespace CSimp
structure Entry where
f... |
083c8e6e4e6f32f0d8fa13880212831af2b4e92a | 306b89478da7f3c210fecd6f66472a644e896eff | /src/exercises/07_first_negations.lean | a5150669d4a43af041d6dc2720e4f46e3fa6cc7e | [
"Apache-2.0"
] | permissive | sinhp/tutorials | a671990270a3bcb3f2c7a8869bbd425e7085672f | 2cd093d5901b848e708f07b8fe450f108eb928c6 | refs/heads/master | 1,684,060,380,201 | 1,623,025,767,000 | 1,623,025,767,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 7,137 | lean | import tuto_lib
import data.int.parity
/-
Negations, proof by contradiction and contraposition.
This file introduces the logical rules and tactics related to negation:
exfalso, by_contradiction, contrapose, by_cases and push_neg.
There is a special statement denoted by `false` which, by definition,
has no proof.
So ... |
a9d99c67e2a8e1b12180099591b9d466dd753400 | c6da0300d417abe3464e750ab51a63502b93acfa | /src/struct_tact/default.lean | aa9d1b6c5c5d5468fd10a33d81aff75ca4c1a13f | [
"Apache-2.0"
] | permissive | uwplse/struct_tact | 55bc1d260fac498cff83a4d71461041f8ed74bd6 | 22188ea2e97705d1185f75dde24e6bab88054ab0 | refs/heads/master | 1,630,670,592,496 | 1,515,453,299,000 | 1,515,453,299,000 | 104,603,771 | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 10,641 | lean | import .induction_on
import .auto
import .simp_option
import .traversals
import .break_tactics
open tactic
open interactive
meta def simp_coe :=
`[unfold coe lift_t has_lift_t.lift coe_t has_coe_t.coe coe_b has_coe.coe,
try { dsimp * at * }]
-- (* https://github.com/uwplse/StructTact *)
-- Ltac subst_max :=... |
2083b38fcb9cf209410cfc05ceff92c981238445 | 8cae430f0a71442d02dbb1cbb14073b31048e4b0 | /src/linear_algebra/direct_sum/finsupp.lean | 5a369c076c87c02bf49924f91cc3f211799c85aa | [
"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 | 3,983 | 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
-/
import algebra.direct_sum.finsupp
import linear_algebra.finsupp
import linear_algebra.direct_sum.tensor_product
/-!
# Results on finitely supported functions.
> THI... |
ddaec23869bbc58dd434d837bfbca477804b5ab9 | 78630e908e9624a892e24ebdd21260720d29cf55 | /src/logic_propositional/prop_03.lean | b5fec6a38e0db90304ecd5e2163385d79f8e4ac1 | [
"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 | 236 | lean | namespace prop_03
variables A B : Prop
theorem prop_3 : ¬ (A ∧ B) → (A → ¬ B) :=
assume h1: ¬ (A ∧ B),
assume h2: A,
assume h3: B,
have h4: A ∧ B, from and.intro h2 h3,
show false, from h1 h4
-- end namespace
end prop_03 |
a41d56c476eafff05e3346f74c5516ec15bddd6b | 82b86ba2ae0d5aed0f01f49c46db5afec0eb2bd7 | /src/Lean/Meta/Tactic/Assert.lean | d57ec1133be17ae37644db059cc20075e4cd278c | [
"Apache-2.0"
] | permissive | banksonian/lean4 | 3a2e6b0f1eb63aa56ff95b8d07b2f851072d54dc | 78da6b3aa2840693eea354a41e89fc5b212a5011 | refs/heads/master | 1,673,703,624,165 | 1,605,123,551,000 | 1,605,123,551,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 4,059 | 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
import Lean.Meta.Tactic.FVarSubst
import Lean.Meta.Tactic.Intro
import Lean.Meta.Tactic.Revert
namespace Lean.Meta
/--
Conv... |
72ef9b3c5c00a7e6242bc5cdf502573765433545 | dac4e6671410f506c880986cbb2212dd7f5b3dfd | /hanoi_project/Lean8_6.lean | 0c745216969b9476b01964ede909b8ef7c7caf00 | [
"CC-BY-4.0"
] | permissive | thalesant/formalabstracts-2018 | e6ddfe8b3ce5c6f055ddcccf345bf55c41f850c1 | d206dfa32a6b4a84aacc3a5500a144757e6d3454 | refs/heads/master | 1,642,678,879,231 | 1,561,648,713,000 | 1,561,648,713,000 | 97,608,420 | 1 | 0 | null | 1,564,063,995,000 | 1,500,388,250,000 | Lean | UTF-8 | Lean | false | false | 1,495 | lean | #print nat
#print list
#print or
#print and
#print prod
namespace hanoi
inductive unit'
| zero : unit'
open unit'
theorem everything_is_zero :
∀ u : unit', u = zero :=
λ u, @unit'.rec
(λ u, u = zero) rfl u
set_option pp.beta true
#check @unit'.rec
(λ u, u = zero)
#print unit'.rec
#print or.rec
... |
19856716e7e5523d9c8232c0342b532e1cda74e7 | 9dc8cecdf3c4634764a18254e94d43da07142918 | /src/ring_theory/roots_of_unity.lean | 453fd90d7e9b9f3e7134397d2f296b0c9666a3b0 | [
"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 | 47,107 | 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.char_p.two
import algebra.ne_zero
import data.polynomial.ring_division
import field_theory.finite.basic
import field_theory.separable
import group_the... |
d2e052419df8c9cc2c35059cae9a662e3dbb90a3 | c777c32c8e484e195053731103c5e52af26a25d1 | /src/geometry/manifold/whitney_embedding.lean | 02240f02a1f1a90600c2f09190a325c7139d0ab6 | [
"Apache-2.0"
] | permissive | kbuzzard/mathlib | 2ff9e85dfe2a46f4b291927f983afec17e946eb8 | 58537299e922f9c77df76cb613910914a479c1f7 | refs/heads/master | 1,685,313,702,744 | 1,683,974,212,000 | 1,683,974,212,000 | 128,185,277 | 1 | 0 | null | 1,522,920,600,000 | 1,522,920,600,000 | null | UTF-8 | Lean | false | false | 6,409 | lean | /-
Copyright (c) 2021 Yury G. Kudryashov. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Yury G. Kudryashov
-/
import geometry.manifold.diffeomorph
import geometry.manifold.instances.real
import geometry.manifold.partition_of_unity
/-!
# Whitney embedding theorem
In ... |
f15386964546deb3630d5a250a0cb518f999f4c6 | 55c7fc2bf55d496ace18cd6f3376e12bb14c8cc5 | /src/data/polynomial/coeff.lean | 606319803c46c4558fe175627ec44e679089f82c | [
"Apache-2.0"
] | permissive | dupuisf/mathlib | 62de4ec6544bf3b79086afd27b6529acfaf2c1bb | 8582b06b0a5d06c33ee07d0bdf7c646cae22cf36 | refs/heads/master | 1,669,494,854,016 | 1,595,692,409,000 | 1,595,692,409,000 | 272,046,630 | 0 | 0 | Apache-2.0 | 1,592,066,143,000 | 1,592,066,142,000 | null | UTF-8 | Lean | false | false | 5,567 | 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.monomial
import data.finset.nat_antidiagonal
/-!
# Theory of univariate polynomials
The theorems ... |
066d8233d8e8717b4f6f806f703fabfa2cad0fca | 6432ea7a083ff6ba21ea17af9ee47b9c371760f7 | /doc/examples/Certora2022/ex17.lean | c64cc9bb9767e7afbe708aea8abea60eb50bb152 | [
"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 | 356 | lean | /- More tactics -/
example (p q : Nat → Prop) : (∃ x, p x ∧ q x) → ∃ x, q x ∧ p x := by
intro h
cases h with
| intro x hpq =>
cases hpq with
| intro hp hq =>
exists x
example : p ∧ q → q ∧ p := by
intro p
cases p
constructor <;> assumption
example : p ∧ ¬ p → q := by
intro h
cases h
c... |
1246dcb62abbf0ea7ca6e12dce14053a28cb3f94 | 5719a16e23dfc08cdea7a5bf035b81690f307965 | /src/Init/Lean/Elab/DeclModifiers.lean | 6f2c8a021c1837e73cd17449b8aff342e96d1d71 | [
"Apache-2.0"
] | permissive | postmasters/lean4 | 488b03969a371e1507e1e8a4df9ebf63c7cbe7ac | f3976fc53a883ac7606fc59357d43f4b51016ca7 | refs/heads/master | 1,655,582,707,480 | 1,588,682,595,000 | 1,588,682,595,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 5,284 | 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, Sebastian Ullrich
-/
prelude
import Init.Lean.Elab.Command
namespace Lean
namespace Elab
namespace Command
structure Attribute :=
(name : Name) (args : Synt... |
14c7ee3812fcf8b04e2b2788859a2524b9bc0cac | 5d62e434e81e3303af5bef665e46bef75f10b45e | /current_mathlib/src/poly_eval.lean | 96db8b5b5631cb4a550beba6d41d4dda709bd307 | [] | no_license | ChrisHughes24/type_class | 4b49764e9b96b2c7d2b6e4e7827730ca7a64a3b2 | b582b60bdc84b7cd17b4243600088143afddc65c | refs/heads/master | 1,595,404,449,845 | 1,567,951,656,000 | 1,567,951,656,000 | 207,121,926 | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 437 | lean | import data.polynomial
universe u
variables {K : Type u} {L : Type u} [discrete_field K] [discrete_field L]
(i : K ≃r L)
open polynomial
-- polynomial.map is very hard to use
example (f : polynomial L) (x : K) (hfx : f.eval₂ i.symm.to_equiv x = 0) :
∃ y : L, f.eval y = 0 :=
⟨i.to_equiv x, begin
rw [← i.symm.to... |
4ff8af3518fa27437ea2c789f8169495f45f17ad | 4d2583807a5ac6caaffd3d7a5f646d61ca85d532 | /src/algebra/direct_sum/basic.lean | da4963a7dee91bea6433e9cf3eeabbeddd9fe411 | [
"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,060 | lean | /-
Copyright (c) 2019 Kenny Lau. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Kenny Lau
-/
import data.dfinsupp
import group_theory.submonoid.operations
import group_theory.subgroup.basic
/-!
# Direct sum
This file defines the direct sum of abelian groups, indexed ... |
61e6bca7d7e549599d6121d443477f74284aed3a | 74addaa0e41490cbaf2abd313a764c96df57b05d | /Mathlib/number_theory/fermat4.lean | 470b015987202b6e71f7bf959042b1a37d1c309d | [] | 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 | 4,109 | lean | /-
Copyright (c) 2020 Paul van Wamelen. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Author: Paul van Wamelen.
-/
import Mathlib.PrePort
import Mathlib.Lean3Lib.init.default
import Mathlib.number_theory.pythagorean_triples
import Mathlib.ring_theory.coprime
import Mathlib.Pos... |
931944228419b881b8439eda92a749a7823285fa | fa02ed5a3c9c0adee3c26887a16855e7841c668b | /src/algebra/category/Group/basic.lean | 5c0c6a654fccc9f917e81a3da03607dc26ed9403 | [
"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 | 9,383 | lean | /-
Copyright (c) 2018 Johan Commelin. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Johan Commelin
-/
import algebra.category.Mon.basic
import category_theory.endomorphism
/-!
# Category instances for group, add_group, comm_group, and add_comm_group.
We introduce th... |
d1a45667af6f7800170fdc7cddb20a3c4ccb26d6 | d1a52c3f208fa42c41df8278c3d280f075eb020c | /src/Lean/Runtime.lean | 30a82e85989611edb9f3d7fb804aa7e93dab2613 | [
"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 | 432 | 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
-/
namespace Lean
@[extern "lean_closure_max_args"]
constant closureMaxArgsFn : Unit → Nat
@[extern "lean_max_small_nat"]
constant maxSmallNatFn : Unit → Na... |
062ad3ce401a80e8ab0b886a3e088c7d67497e1b | 94e33a31faa76775069b071adea97e86e218a8ee | /src/data/set/finite.lean | 83920f652699df98271eea169be6228625b188ba | [
"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 | 49,325 | 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, Kyle Miller
-/
import data.finset.sort
import data.set.functor
import data.finite.basic
/-!
# Finite sets
This file defines predicates for finite and ... |
e554030988d525ea0073550a517ecec9c3e36a2c | 46125763b4dbf50619e8846a1371029346f4c3db | /src/topology/metric_space/isometry.lean | d710a2372a32ecd5b5ed25855c9b4367680617db | [
"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 | 13,312 | lean | /-
Copyright (c) 2018 Sébastien Gouëzel. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Isometries of emetric and metric spaces
Authors: Sébastien Gouëzel
-/
import topology.metric_space.basic
topology.bounded_continuous_function analysis.normed_space.basic topology.opens
/-!... |
4c7a5cfc176b51f896b995655d0fed4b01176274 | 130c49f47783503e462c16b2eff31933442be6ff | /src/Lean/Server/Requests.lean | 32b19be7e697e7ea39941d5ed9541d05f3061a63 | [
"Apache-2.0"
] | permissive | Hazel-Brown/lean4 | 8aa5860e282435ffc30dcdfccd34006c59d1d39c | 79e6732fc6bbf5af831b76f310f9c488d44e7a16 | refs/heads/master | 1,689,218,208,951 | 1,629,736,869,000 | 1,629,736,896,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 6,991 | lean | /-
Copyright (c) 2021 Wojciech Nawrocki. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Wojciech Nawrocki, Marc Huisinga
-/
import Lean.DeclarationRange
import Lean.Data.Json
import Lean.Data.Lsp
import Lean.Server.FileSource
import Lean.Server.FileWorker.Utils
imp... |
06214e95ab66e6eb3db7522e7602d69c6e37a88c | 853df553b1d6ca524e3f0a79aedd32dde5d27ec3 | /src/measure_theory/indicator_function.lean | 3675e26b53b1fecc61033cf800efa8264b368ce5 | [
"Apache-2.0"
] | permissive | DanielFabian/mathlib | efc3a50b5dde303c59eeb6353ef4c35a345d7112 | f520d07eba0c852e96fe26da71d85bf6d40fcc2a | refs/heads/master | 1,668,739,922,971 | 1,595,201,756,000 | 1,595,201,756,000 | 279,469,476 | 0 | 0 | null | 1,594,696,604,000 | 1,594,696,604,000 | null | UTF-8 | Lean | false | false | 5,627 | lean | /-
Copyright (c) 2020 Zhouhang Zhou. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Zhouhang Zhou
-/
import data.indicator_function
import measure_theory.measure_space
/-!
# Indicator function
Properties of indicator functions.
## Tags
indicator, characteristic
-/
... |
2f73e2069f24d7d00f40a522e71428b320f6b204 | 4727251e0cd73359b15b664c3170e5d754078599 | /src/category_theory/sites/compatible_sheafification.lean | d6774e097c3e19db95bad0d2000fc6f67d0c26e3 | [
"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,789 | lean | /-
Copyright (c) 2021 Adam Topaz. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Adam Topaz
-/
import category_theory.sites.compatible_plus
/-!
In this file, we prove that sheafification is compatible with functors which
preserve the correct limits and colimits.
-/
... |
e37f931c1d50c54f40937d7790bec51a77ce8630 | d406927ab5617694ec9ea7001f101b7c9e3d9702 | /src/linear_algebra/multilinear/basic.lean | e3d22caa099e20d79c92978fd37dd0a8d048b35b | [
"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 | 58,920 | 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 linear_algebra.basic
import algebra.algebra.basic
import algebra.big_operators.order
import algebra.big_operators.ring
import data.fintype.big_operators
... |
55400a01037747e3d4e7d06d47d19939ef97f5ec | 740993c2939128e433a4feddfe605721331a0c75 | /incidence.lean | c2c90ceccaa580a7d2c5cb403397e81745342405 | [] | no_license | gabrielmoise/Lean-work | 436bb7bf1e8144eb1aa90cc161b386a6ee6892bf | 52b2a2c840f8477e293cbb897335a19ebf482cf7 | refs/heads/master | 1,681,251,086,221 | 1,620,036,203,000 | 1,620,036,203,000 | 360,084,138 | 0 | 2 | null | null | null | null | UTF-8 | Lean | false | false | 16,998 | lean | /-
Copyright (c) 2021 Gabriel Moise. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Author: Gabriel Moise.
-/
import algebra.big_operators.basic
import combinatorics.simple_graph.basic
import data.fintype.basic
import data.sym2
import linear_algebra.matrix
/-!
# Incidence mat... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.