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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
6ce06b5b886e9a4ceb592d13773603c53e5cc7ea | 02005f45e00c7ecf2c8ca5db60251bd1e9c860b5 | /src/ring_theory/simple_module.lean | d2ed8d89c0df15a4cabfecb483d4a6a75a7195cd | [
"Apache-2.0"
] | permissive | anthony2698/mathlib | 03cd69fe5c280b0916f6df2d07c614c8e1efe890 | 407615e05814e98b24b2ff322b14e8e3eb5e5d67 | refs/heads/master | 1,678,792,774,873 | 1,614,371,563,000 | 1,614,371,563,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 5,316 | lean | /-
Copyright (c) 2020 Aaron Anderson. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors : Aaron Anderson
-/
import linear_algebra.basic
import order.atoms
/-!
# Simple Modules
## Main Definitions
* `is_simple_module` indicates that a module has no proper submodules
... |
4b5e42b14fd76de155f8e67dc7c32a7d4402d826 | d31b9f832ff922a603f76cf32e0f3aa822640508 | /src/hott/init/meta/simp_attr.lean | 053912376fe07ab3e8336d85bbfae80eb350e701 | [
"Apache-2.0"
] | permissive | javra/hott3 | 6e7a9e72a991a2fae32e5764982e521dca617b16 | cd51f2ab2aa48c1246a188f9b525b30f76c3d651 | refs/heads/master | 1,585,819,679,148 | 1,531,232,382,000 | 1,536,682,965,000 | 154,294,022 | 0 | 0 | Apache-2.0 | 1,540,284,376,000 | 1,540,284,375,000 | null | UTF-8 | Lean | false | false | 1,557 | lean | /-
Copyright (c) 2017 Gabriel Ebner. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Gabriel Ebner
-/
import .support
open tactic expr
namespace hott
private meta def open_pis : expr → tactic (expr × list expr) | e := do
e ← whnf e,
if e.is_pi then do
x ← mk_local... |
5be47a6ea7be5b4b20b7bc19d91d3e6d9151f58e | 4727251e0cd73359b15b664c3170e5d754078599 | /src/category_theory/epi_mono.lean | 21c763c5e3f33bcfff0d57ea79d8ce2089f14f5d | [
"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 | 8,134 | lean | /-
Copyright (c) 2019 Reid Barton. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Reid Barton, Scott Morrison
-/
import category_theory.adjunction.basic
import category_theory.opposites
import category_theory.groupoid
/-!
# Facts about epimorphisms and monomorphisms.
... |
07fc52cbc3a6b7614f6fff5f02f1fe9ebc980bed | 4727251e0cd73359b15b664c3170e5d754078599 | /src/linear_algebra/matrix/circulant.lean | 99feb26996f5b9837c7bc73610b74a347787ce55 | [
"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,836 | lean | /-
Copyright (c) 2021 Lu-Ming Zhang. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Lu-Ming Zhang
-/
import linear_algebra.matrix.symmetric
/-!
# Circulant matrices
This file contains the definition and basic results about circulant matrices.
Given a vector `v : n → ... |
9952f51959a37812744e5ad68ef562ded865ef25 | b32d3853770e6eaf06817a1b8c52064baaed0ef1 | /src/super/inferences/clausify.lean | adc0a85513acd50ae024032db2a4321f47966d7f | [] | no_license | gebner/super2 | 4d58b7477b6f7d945d5d866502982466db33ab0b | 9bc5256c31750021ab97d6b59b7387773e54b384 | refs/heads/master | 1,635,021,682,021 | 1,634,886,326,000 | 1,634,886,326,000 | 225,600,688 | 4 | 2 | null | 1,598,209,306,000 | 1,575,371,550,000 | Lean | UTF-8 | Lean | false | false | 617 | lean | import super.prover_state super.cnf
namespace super
meta def clause.clausify' (c : clause) : prover (list clause) := do
s ← state_t.get,
(s, cs) ← state_t.lift $ tactic.using_new_ref s (λ r, do
cs ← c.clausify (λ e, do
s ← tactic.read_ref r,
(e', s) ← (intern_sk_term e).run s,
tactic.write_ref r s,
... |
e4baa30206c25e0bcbf92d02d3374e13aea9fe89 | cf39355caa609c0f33405126beee2739aa3cb77e | /tests/lean/run/suffices.lean | 374a5dc359d1a165dbc58be2994a9e1daca34711 | [
"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 | 143 | lean | variables {a b c : Prop}
theorem foo (Ha : a) (Hab : a → b) (Hbc : b → c) : c :=
suffices b, from Hbc this,
suffices a, from Hab this,
Ha
|
b624689ff2a68672e2f72b8689e6bec1dc47168d | 649957717d58c43b5d8d200da34bf374293fe739 | /src/category_theory/limits/shapes/products.lean | a9a6872bee05faf463ededf20633a4231dc91404 | [
"Apache-2.0"
] | permissive | Vtec234/mathlib | b50c7b21edea438df7497e5ed6a45f61527f0370 | fb1848bbbfce46152f58e219dc0712f3289d2b20 | refs/heads/master | 1,592,463,095,113 | 1,562,737,749,000 | 1,562,737,749,000 | 196,202,858 | 0 | 0 | Apache-2.0 | 1,562,762,338,000 | 1,562,762,337,000 | null | UTF-8 | Lean | false | false | 921 | 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.limits.limits
import category_theory.discrete_category
universes v u
open category_theory
namespace category_theory.limits
variables {β... |
b70cf1e3f56df79e6ce9a962b3b55468ebd18a30 | d9d511f37a523cd7659d6f573f990e2a0af93c6f | /src/category_theory/equivalence.lean | 553ab35c303aa85ad2ab6a1ce43313ebb4f0b7df | [
"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 | 23,795 | lean | /-
Copyright (c) 2017 Scott Morrison. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Tim Baumann, Stephen Morgan, Scott Morrison, Floris van Doorn
-/
import category_theory.fully_faithful
import category_theory.full_subcategory
import category_theory.whiskering
import ... |
f03959af4603a4badc2e25fd02eff06b1222a738 | 75db7e3219bba2fbf41bf5b905f34fcb3c6ca3f2 | /hott/init/funext.hlean | 92905c4c46dcfba4c7ff0a2e554ef97107521bfc | [
"Apache-2.0"
] | permissive | jroesch/lean | 30ef0860fa905d35b9ad6f76de1a4f65c9af6871 | 3de4ec1a6ce9a960feb2a48eeea8b53246fa34f2 | refs/heads/master | 1,586,090,835,348 | 1,455,142,203,000 | 1,455,142,277,000 | 51,536,958 | 1 | 0 | null | 1,455,215,811,000 | 1,455,215,811,000 | null | UTF-8 | Lean | false | false | 10,554 | hlean | /-
Copyright (c) 2014 Jakob von Raumer. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Jakob von Raumer, Floris van Doorn
Ported from Coq HoTT
-/
prelude
import .trunc .equiv .ua
open eq is_trunc sigma function is_equiv equiv prod unit prod.ops lift
/-
We now pro... |
a014eeaa5ad712a9b25d2171f7dfd07a940fe36f | 32025d5c2d6e33ad3b6dd8a3c91e1e838066a7f7 | /stage0/src/Lean/Data/Name.lean | ce82a3001e6bce1a9a80671632afd5816ef811f9 | [
"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 | 5,687 | lean | /-
Copyright (c) 2018 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Author: Leonardo de Moura
-/
import Std.Data.HashSet
import Std.Data.RBMap
import Std.Data.RBTree
namespace Lean
instance stringToName : HasCoe String Name :=
⟨mkNameSimple⟩
namespace ... |
4b329d89f042208138ede045f08e67d2f04fafee | bbecf0f1968d1fba4124103e4f6b55251d08e9c4 | /src/combinatorics/derangements/exponential.lean | 484d6d8d0529f46f752b228cc06fa268f1d4c911 | [
"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 | 1,888 | lean | /-
Copyright (c) 2021 Henry Swanson. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Henry Swanson, Patrick Massot
-/
import analysis.normed_space.exponential
import combinatorics.derangements.finite
import order.filter.basic
/-!
# Derangement exponential series
This ... |
0bf2e6716727681a6d842f1c6d2c8d61c66fab3d | 9cba98daa30c0804090f963f9024147a50292fa0 | /time_series/geom3d.lean | c24683fa1763d0ddf586a90eb873361aa776aef1 | [] | no_license | kevinsullivan/phys | dcb192f7b3033797541b980f0b4a7e75d84cea1a | ebc2df3779d3605ff7a9b47eeda25c2a551e011f | refs/heads/master | 1,637,490,575,500 | 1,629,899,064,000 | 1,629,899,064,000 | 168,012,884 | 0 | 3 | null | 1,629,644,436,000 | 1,548,699,832,000 | Lean | UTF-8 | Lean | false | false | 4,207 | lean | import .definitions
import ..geom.geom3d
variables
{tf : time_frame} (ts : time_space tf)
{gf : geom3d_frame} (gs : geom3d_space gf)
{gf2 : geom3d_frame} (gs2 : geom3d_space gf2)
(min_t max_t : time ts)
/-
impossible to write this definition,
-/
definition geom3d_series :=
time_series ts geom3d_space
abbre... |
f8b7a34e09bd18fb4d04931773df05a9a57b8f48 | 36c7a18fd72e5b57229bd8ba36493daf536a19ce | /library/data/nat/pairing.lean | 5befe9ef77a6024dd016996314134f05959d6055 | [
"Apache-2.0"
] | permissive | YHVHvx/lean | 732bf0fb7a298cd7fe0f15d82f8e248c11db49e9 | 038369533e0136dd395dc252084d3c1853accbf2 | refs/heads/master | 1,610,701,080,210 | 1,449,128,595,000 | 1,449,128,595,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 3,517 | 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
Elegant pairing function.
-/
import data.nat.sqrt data.nat.div
open prod decidable
open algebra
namespace nat
definition mkpair (a b : nat) : nat :=
if a < b... |
efbe12de21d0f2d37cd47d005b3f7c5fc522616b | 1fd908b06e3f9c1252cb2285ada1102623a67f72 | /prop_trunc.lean | 98caafa0a61fb464f042864da6724b026ccc1f2a | [
"Apache-2.0"
] | permissive | avigad/hott3 | 609a002849182721e7c7ae536d9f1e2956d6d4d3 | f64750cd2de7a81e87d4828246d1369d59f16f43 | refs/heads/master | 1,629,027,243,322 | 1,510,946,717,000 | 1,510,946,717,000 | 103,570,461 | 0 | 0 | null | 1,505,415,620,000 | 1,505,415,620,000 | null | UTF-8 | Lean | false | false | 1,965 | lean | /-
Copyright (c) 2015 Jakob von Raumer. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Jakob von Raumer, Floris van Doorn
Proof of the @[hott] theorem that (is_trunc n A) is a mere proposition
We prove this here to avoid circular dependency of files
We want to use thi... |
cad8d1e5df0b1e1f6a3305e103be4ff64205679b | a9d0fb7b0e4f802bd3857b803e6c5c23d87fef91 | /library/logic/examples/propositional/deceq.lean | 08b1443a29de7d6a3fdc4fa76a08cec1ec97acfc | [
"Apache-2.0"
] | permissive | soonhokong/lean-osx | 4a954262c780e404c1369d6c06516161d07fcb40 | 3670278342d2f4faa49d95b46d86642d7875b47c | refs/heads/master | 1,611,410,334,552 | 1,474,425,686,000 | 1,474,425,686,000 | 12,043,103 | 5 | 1 | null | null | null | null | UTF-8 | Lean | false | false | 1,881 | 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
PropF has decidable equality
-/
import .soundness
open bool decidable nat
namespace PropF
-- Show that PropF has decidable equality
definition equal : P... |
2162efed663100f9788c948af186af2ce9cd0220 | 8cae430f0a71442d02dbb1cbb14073b31048e4b0 | /src/algebra/algebra/pi.lean | 444bd8c915fe547cf780a97e7cdbb1c8b694e670 | [
"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,202 | lean | /-
Copyright (c) 2018 Kenny Lau. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Kenny Lau, Yury Kudryashov
-/
import algebra.algebra.equiv
/-!
# The R-algebra structure on families of R-algebras
> THIS FILE IS SYNCHRONIZED WITH MATHLIB4.
> Any changes to this file re... |
b0dc1ce99308af184f6c7cd1bb6b7abdc4de6c9d | 957a80ea22c5abb4f4670b250d55534d9db99108 | /library/init/native/util.lean | 38c47434b755944c3ac8f625fc222947c145bb2f | [
"Apache-2.0"
] | permissive | GaloisInc/lean | aa1e64d604051e602fcf4610061314b9a37ab8cd | f1ec117a24459b59c6ff9e56a1d09d9e9e60a6c0 | refs/heads/master | 1,592,202,909,807 | 1,504,624,387,000 | 1,504,624,387,000 | 75,319,626 | 2 | 1 | Apache-2.0 | 1,539,290,164,000 | 1,480,616,104,000 | C++ | UTF-8 | Lean | false | false | 1,940 | lean | /-
Copyright (c) 2016 Jared Roesch. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Jared Roesch
-/
prelude
import init.meta.format
import init.meta.expr
import init.data.string
import init.category.state
import init.native.result
import init.native.internal
import ini... |
16e981eb091849056034e87fdb0137b13c509295 | d406927ab5617694ec9ea7001f101b7c9e3d9702 | /src/linear_algebra/dfinsupp.lean | 2aaa4f83e9b08fa873639c75e6ff090d459132f5 | [
"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 | 20,748 | 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 data.finsupp.to_dfinsupp
import linear_algebra.basis
/-!
# Properties of the module `Π₀ i, M i`
Given an indexed collection of `R`-modules `M i`, the `... |
36928ab84305d4594f6b9fd7ef3c237fc601a666 | 57c233acf9386e610d99ed20ef139c5f97504ba3 | /src/analysis/convex/basic.lean | d5e0430540d9bb02aad32400597bcdf73e0a2b6d | [
"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 | 41,288 | lean | /-
Copyright (c) 2019 Alexander Bentkamp. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Alexander Bentkamp, Yury Kudriashov, Yaël Dillies
-/
import algebra.order.invertible
import algebra.order.module
import linear_algebra.affine_space.midpoint
import linear_algebra.a... |
d235117454eb8c5ecf197feb6023b43cb669dfe9 | 4d2583807a5ac6caaffd3d7a5f646d61ca85d532 | /src/data/real/pi/leibniz.lean | 51c1e08eca698348482f0642ab021894500d8d15 | [
"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 | 7,736 | lean | /-
Copyright (c) 2020 Benjamin Davidson. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Benjamin Davidson
-/
import analysis.special_functions.pow
import analysis.special_functions.trigonometric.arctan
/-! ### Leibniz's Series for Pi -/
namespace real
open filter se... |
fb25cf7f83a8c171176fc8c6885a4e531afc2717 | 57c233acf9386e610d99ed20ef139c5f97504ba3 | /src/order/semiconj_Sup.lean | 19467ddc999449f71deda4d17eeb218ac50ab756 | [
"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,001 | lean | /-
Copyright (c) 2020 Yury G. Kudryashov. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Yury G. Kudryashov
-/
import order.conditionally_complete_lattice
import logic.function.conjugate
import order.ord_continuous
import data.equiv.mul_add
/-!
# Semiconjugate by `Sup... |
07d66f819261b0cb02339318caca452821daad24 | 947fa6c38e48771ae886239b4edce6db6e18d0fb | /src/model_theory/substructures.lean | 7104f63c491a32fefa62c18d275555f5cb9fdc19 | [
"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 | 29,572 | lean | /-
Copyright (c) 2021 Aaron Anderson. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Aaron Anderson
-/
import order.closure
import model_theory.semantics
import model_theory.encoding
/-!
# First-Order Substructures
This file defines substructures of first-order struc... |
e2d0f87de6b651b207b40350805b7e360161b1cd | 4727251e0cd73359b15b664c3170e5d754078599 | /src/linear_algebra/adic_completion.lean | 63aec8e3625a84295afca284504a1c3c7cf1e9e1 | [
"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 | 10,006 | 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 algebra.geom_sum
import linear_algebra.smodeq
import ring_theory.ideal.quotient
import ring_theory.jacobson_ideal
/-!
# Completion of a module with respect to an ideal... |
e784f08bc071dcc4f6be5e33857488d6df7c2282 | 6432ea7a083ff6ba21ea17af9ee47b9c371760f7 | /tests/lean/run/typeclass_coerce.lean | f3298541d8796f04e6ff8d8a3805bba8bf10f45c | [
"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 | 3,921 | lean | /-
Copyright (c) 2019 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Daniel Selsam, Leonardo de Moura
Declare new, simpler coercion class without the special support for transitivity.
Test that new tabled typeclass resolution deals with loops an... |
aa6ac3661026e02b9b3a39fea220111deb285475 | f5f7e6fae601a5fe3cac7cc3ed353ed781d62419 | /src/algebra/group_power.lean | d8a2c94f62a731704cd64035b1947db34c529df2 | [
"Apache-2.0"
] | permissive | EdAyers/mathlib | 9ecfb2f14bd6caad748b64c9c131befbff0fb4e0 | ca5d4c1f16f9c451cf7170b10105d0051db79e1b | refs/heads/master | 1,626,189,395,845 | 1,555,284,396,000 | 1,555,284,396,000 | 144,004,030 | 0 | 0 | Apache-2.0 | 1,533,727,664,000 | 1,533,727,663,000 | null | UTF-8 | Lean | false | false | 27,218 | lean | /-
Copyright (c) 2015 Jeremy Avigad. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Jeremy Avigad, Robert Y. Lewis
The power operation on monoids and groups. We separate this from group, because it depends on
nat, which in turn depends on other parts of algebra.
We h... |
5dd849c46f6537ef23edc219dde4244c7715d1b8 | 4da0c8e61fcd6ec3f3be47ee14a038850c03d0c3 | /src/language.lean | f250c54c8e16302cdd2207ee46f335bf630f3a8a | [
"Apache-2.0"
] | permissive | bbentzen/mpl | fcbea60204bc8fd64667e0f76a5cebf4b67fb6ca | bb5066ec51fa11a4b66f440c4f6c9a3d8fb2e0de | refs/heads/master | 1,625,175,849,308 | 1,624,207,634,000 | 1,624,207,634,000 | 142,774,375 | 9 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 577 | lean | /-
Copyright (c) 2018 Bruno Bentzen. All rights reserved.
Released under the Apache License 2.0 (see "License");
Author: Bruno Bentzen
-/
variable σ : nat
/- language definition -/
inductive form : Type
| atom : fin σ → form
| bot : form
| impl : form → form → form
| box : form → form
prefix `#` := ... |
c9959e45571a16862cd27e6e2cb295e380c51c03 | 3aad12fe82645d2d3173fbedc2e5c2ba945a4d75 | /src/category/traversable/nursery.lean | c76692860f212be89f1b6590af36539f35492d3d | [] | no_license | seanpm2001/LeanProver-Community_MathLIB-Nursery | 4f88d539cb18d73a94af983092896b851e6640b5 | 0479b31fa5b4d39f41e89b8584c9f5bf5271e8ec | refs/heads/master | 1,688,730,786,645 | 1,572,070,026,000 | 1,572,070,026,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 2,873 | lean |
import data.list.basic
import category.traversable.instances
universes u v
def foldl (α : Type u) (β : Type v) := α → α
def foldr (α : Type u) (β : Type v) := α → α
instance {α} : applicative (foldr α) :=
{ pure := λ _ _, id,
seq := λ _ _ f x, f ∘ x }
instance {α} : applicative (foldl α) :=
{ pure := λ _ _, id,
... |
c1565974c4d0258a24227f67a92cb29c7590530e | dc253be9829b840f15d96d986e0c13520b085033 | /coind_colim.hlean | 7924beffaea7a3f380ce9edac0999a861ec00ee9 | [
"Apache-2.0"
] | permissive | cmu-phil/Spectral | 4ce68e5c1ef2a812ffda5260e9f09f41b85ae0ea | 3b078f5f1de251637decf04bd3fc8aa01930a6b3 | refs/heads/master | 1,685,119,195,535 | 1,684,169,772,000 | 1,684,169,772,000 | 46,450,197 | 42 | 13 | null | 1,505,516,767,000 | 1,447,883,921,000 | Lean | UTF-8 | Lean | false | false | 6,369 | hlean | -- author: Floris van Doorn
import .colimit.seq_colim
open nat seq_colim eq equiv is_equiv is_trunc function
namespace seq_colim
variables {A : ℕ → Type} {f : seq_diagram A}
definition ι0 [reducible] : A 0 → seq_colim f :=
ι f
variable (f)
definition ι0' [reducible] : A 0 → seq_colim f :=
ι f
defi... |
fee082f26a26a573a168538053eb0d7127295c7d | d436468d80b739ba7e06843c4d0d2070e43448e5 | /src/tactic/linarith.lean | e8717abd4ebbe787ce469554e150db6ce71f94fd | [
"Apache-2.0"
] | permissive | roro47/mathlib | 761fdc002aef92f77818f3fef06bf6ec6fc1a28e | 80aa7d52537571a2ca62a3fdf71c9533a09422cf | refs/heads/master | 1,599,656,410,625 | 1,573,649,488,000 | 1,573,649,488,000 | 221,452,951 | 0 | 0 | Apache-2.0 | 1,573,647,693,000 | 1,573,647,692,000 | null | UTF-8 | Lean | false | false | 33,000 | lean | /-
Copyright (c) 2018 Robert Y. Lewis. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Author: Robert Y. Lewis
-/
import tactic.ring data.nat.gcd data.list.basic meta.rb_map data.tree
/-!
A tactic for discharging linear arithmetic goals using Fourier-Motzkin elimination.
`li... |
01658a59187447d12e3f96c46e75c8b0a53307ee | 1d265c7dd8cb3d0e1d645a19fd6157a2084c3921 | /src/other/set_exer2.lean | 3cfc118ade6e2dabd9394dcd0c68faf6b4be5efa | [
"MIT"
] | permissive | hanzhi713/lean-proofs | de432372f220d302be09b5ca4227f8986567e4fd | 4d8356a878645b9ba7cb036f87737f3f1e68ede5 | refs/heads/master | 1,585,580,245,658 | 1,553,646,623,000 | 1,553,646,623,000 | 151,342,188 | 0 | 1 | null | null | null | null | UTF-8 | Lean | false | false | 4,393 | lean | import data.set
open set
section
variable U : Type
variables A B C : set U
example : ∀ x, x ∈ A ∩ C → x ∈ A ∪ B :=
begin
assume x,
assume h,
left, exact h.1,
end
example : ∀ x, x ∈ -(A ∪ B) → x ∈ -A :=
begin
assume x,
assume h,
assume xinA,
have : x ∈ A ∪ ... |
38563ea43f04be683e0b2477a4b3e173174cb6bd | 80cc5bf14c8ea85ff340d1d747a127dcadeb966f | /src/ring_theory/polynomial_algebra.lean | 13902e1dce7587e89d669687fd0382820b93c43d | [
"Apache-2.0"
] | permissive | lacker/mathlib | f2439c743c4f8eb413ec589430c82d0f73b2d539 | ddf7563ac69d42cfa4a1bfe41db1fed521bd795f | refs/heads/master | 1,671,948,326,773 | 1,601,479,268,000 | 1,601,479,268,000 | 298,686,743 | 0 | 0 | Apache-2.0 | 1,601,070,794,000 | 1,601,070,794,000 | null | UTF-8 | Lean | false | false | 11,918 | 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 ring_theory.matrix_algebra
import data.polynomial.algebra_map
/-!
# Algebra isomorphism between matrices of polynomials and polynomials of matrices
Given `[c... |
0f3237a668f22bb335134e3e12b8d4ce11111a96 | 6432ea7a083ff6ba21ea17af9ee47b9c371760f7 | /tests/lean/run/typeclass_metas_internal_goals4.lean | e148c87cfa8f5893f896765ca58296493e0ff6b8 | [
"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 | 686 | lean |
class Foo (α β γ : Type) := (u:Unit)
class Bar (α β γ : Type) := (u:Unit)
class Top := (u:Unit)
set_option synthInstance.checkSynthOrder false in
instance FooBarToTop (α β γ : Type) [Foo α β γ] [Bar α β γ] : Top := {u:=()}
instance Foo₁ (β γ : Type) : Foo Unit β γ := {u:=()}
instance Foo₂ (α γ : Type) : Foo α Unit γ ... |
d978338d5558a2e16c5ec61fe6a3f000fd8095f6 | e61a235b8468b03aee0120bf26ec615c045005d2 | /src/Init/Lean/Parser/Term.lean | aa6f64dec165072b877f726676e41c6c9595ad06 | [
"Apache-2.0"
] | permissive | SCKelemen/lean4 | 140dc63a80539f7c61c8e43e1c174d8500ec3230 | e10507e6615ddbef73d67b0b6c7f1e4cecdd82bc | refs/heads/master | 1,660,973,595,917 | 1,590,278,033,000 | 1,590,278,033,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 13,297 | 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.Parser.Parser
import Init.Lean.Parser.Level
namespace Lean
namespace Parser
@[init] def regBuiltinTacticParser... |
391b23db580b97c0a0f2a1b4983ede1e66da6c87 | 74addaa0e41490cbaf2abd313a764c96df57b05d | /Mathlib/topology/algebra/ordered/proj_Icc_auto.lean | f18d0ce1bf848d6f9155e27a166889cbef43af66 | [] | 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 | 1,797 | lean | /-
Copyright (c) 2020 Yury Kudryashov. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Yury Kudryashov, Patrick Massot
-/
import Mathlib.PrePort
import Mathlib.Lean3Lib.init.default
import Mathlib.topology.algebra.ordered
import Mathlib.data.set.intervals.proj_Icc
impor... |
473ff7958f8395c8d6861004b9a4d0b14b2c7fc5 | 491068d2ad28831e7dade8d6dff871c3e49d9431 | /tests/lean/run/one.lean | 177d9dc3c094ed90a077320aabe66ec5c9a8f78a | [
"Apache-2.0"
] | permissive | davidmueller13/lean | 65a3ed141b4088cd0a268e4de80eb6778b21a0e9 | c626e2e3c6f3771e07c32e82ee5b9e030de5b050 | refs/heads/master | 1,611,278,313,401 | 1,444,021,177,000 | 1,444,021,177,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 326 | lean | inductive one.{l} : Type.{max 1 l} :=
unit : one.{l}
set_option pp.universes true
check one
inductive one2.{l} : Type.{max 1 l} :=
unit : one2
check one2
section foo
universe l2
parameter A : Type.{l2}
inductive wrapper.{l} : Type.{max 1 l l2} :=
mk : A → wrapper.{l2 l}
check wrapper
end foo
check wrap... |
904395a116a2ff7e512a87e4e4bd9f0ea05ecb50 | 4727251e0cd73359b15b664c3170e5d754078599 | /src/linear_algebra/multilinear/tensor_product.lean | 184a514b7acc2c0a1a9d03fb065e1e1e0a92c6ff | [
"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 | 3,518 | lean | /-
Copyright (c) 2020 Eric Wieser. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Eric Wieser
-/
import linear_algebra.multilinear.basic
import linear_algebra.tensor_product
/-!
# Constructions relating multilinear maps and tensor products.
-/
namespace multilinear_m... |
13f482ca5dcff5e2a72228aafb8b03ad5167d463 | 4fa161becb8ce7378a709f5992a594764699e268 | /src/analysis/normed_space/operator_norm.lean | cea32ddc746450e2ce8e5f5bf67c66c24e0f8018 | [
"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 | 33,061 | lean | /-
Copyright (c) 2019 Jan-David Salchow. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Jan-David Salchow, Sébastien Gouëzel, Jean Lo
Operator norm on the space of continuous linear maps
Define the operator norm on the space of continuous linear maps between normed s... |
e41cbff5ae85e368368416bd0b296e1031421319 | 1a61aba1b67cddccce19532a9596efe44be4285f | /hott/hit/torus.hlean | c7dbdabca38e91c8f34ec111a980837d1ff13e0a | [
"Apache-2.0"
] | permissive | eigengrau/lean | 07986a0f2548688c13ba36231f6cdbee82abf4c6 | f8a773be1112015e2d232661ce616d23f12874d0 | refs/heads/master | 1,610,939,198,566 | 1,441,352,386,000 | 1,441,352,494,000 | 41,903,576 | 0 | 0 | null | 1,441,352,210,000 | 1,441,352,210,000 | null | UTF-8 | Lean | false | false | 3,544 | hlean | /-
Copyright (c) 2015 Floris van Doorn. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Floris van Doorn
Declaration of the torus
-/
import .two_quotient
open two_quotient eq bool unit relation
namespace torus
definition torus_R (x y : unit) := bool
local infi... |
52f8ca42ef0cce3419c7536f9466d2a1a46d4245 | 432d948a4d3d242fdfb44b81c9e1b1baacd58617 | /src/order/filter/bases.lean | 1e6d0b3e82a0c3fb5e5e0ab58e793948fa9bf44f | [
"Apache-2.0"
] | permissive | JLimperg/aesop3 | 306cc6570c556568897ed2e508c8869667252e8a | a4a116f650cc7403428e72bd2e2c4cda300fe03f | refs/heads/master | 1,682,884,916,368 | 1,620,320,033,000 | 1,620,320,033,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 37,087 | lean | /-
Copyright (c) 2020 Yury Kudryashov. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Yury Kudryashov, Johannes Hölzl, Mario Carneiro, Patrick Massot
-/
import order.filter.basic
import data.set.countable
/-!
# Filter bases
A filter basis `B : filter_basis α` on a ty... |
d5c536b18504bb55130c3dd8194f05dc092225c9 | a721fe7446524f18ba361625fc01033d9c8b7a78 | /src/principia/experimental/oldint/induction.lean | 30d6312ff36a19c4b3fbec41d50ec51e02a7ebb0 | [] | no_license | Sterrs/leaning | 8fd80d1f0a6117a220bb2e57ece639b9a63deadc | 3901cc953694b33adda86cb88ca30ba99594db31 | refs/heads/master | 1,627,023,822,744 | 1,616,515,221,000 | 1,616,515,221,000 | 245,512,190 | 2 | 0 | null | 1,616,429,050,000 | 1,583,527,118,000 | Lean | UTF-8 | Lean | false | false | 1,569 | lean | import .add
import principia.mynat.induction
namespace hidden
namespace oldint
theorem intduction (p : oldint → Prop) :
p 0 → (∀ {n}, p n → p (n + 1)) → (∀ {n}, p n → p (n - 1)) →
∀ n, p n :=
begin
assume h0 hnext hprev,
intro n,
cases n, {
induction n with n hn, {
rwa [mynat.zz, ←coe_nat_eq, zero_nat... |
5634d00c91c67410dd645a9c941e96b52daad1a6 | e00ea76a720126cf9f6d732ad6216b5b824d20a7 | /src/data/list/defs.lean | 499026619e3d82f04a0e4cbad60cd311d50fff89 | [
"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 | 21,085 | lean | /-
Copyright (c) 2014 Parikshit Khanna. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Parikshit Khanna, Jeremy Avigad, Leonardo de Moura, Floris van Doorn, Mario Carneiro
Extra definitions on lists.
-/
import data.option.defs logic.basic tactic.cache
namespace list
... |
c073a83778cfd36be9e1da5f659474ed8558e781 | 6432ea7a083ff6ba21ea17af9ee47b9c371760f7 | /src/Lean/Compiler/LCNF/Simp/Main.lean | 50e43769aef1fea16c374ccff08aa18b04ee1451 | [
"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 | 12,516 | lean | /-
Copyright (c) 2022 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Leonardo de Moura
-/
import Lean.Compiler.ImplementedByAttr
import Lean.Compiler.LCNF.ElimDead
import Lean.Compiler.LCNF.AlphaEqv
import Lean.Compiler.LCNF.PrettyPrinter
import ... |
b3003a46e6066bff09798fa6b81765ce10934806 | 4b846d8dabdc64e7ea03552bad8f7fa74763fc67 | /library/init/meta/smt/rsimp.lean | 97371d0edb5f9f773fdf18b27d12aab5ce5e94fb | [
"Apache-2.0"
] | permissive | pacchiano/lean | 9324b33f3ac3b5c5647285160f9f6ea8d0d767dc | fdadada3a970377a6df8afcd629a6f2eab6e84e8 | refs/heads/master | 1,611,357,380,399 | 1,489,870,101,000 | 1,489,870,101,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 6,575 | 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
-/
prelude
import init.meta.smt.smt_tactic init.meta.fun_info init.meta.rb_map
open tactic
private meta def add_lemma (m : transparency) (h : name) (hs : hin... |
3ff7ced8919f13b40fc122cd7ae18ef816e1168f | 6432ea7a083ff6ba21ea17af9ee47b9c371760f7 | /tests/lean/run/1171.lean | d8a90e5d6ca4547b62276ab607fa3a49d84827d1 | [
"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 | 425 | lean | def Nat.hasDecEq: (a: Nat) → (b: Nat) → Decidable (Eq a b)
| 0, 0 => isTrue rfl
| n+1, 0
| 0, n+1 => isFalse Nat.noConfusion
| n+1, m+1 =>
match h:hasDecEq n m with -- it works without `h:`
| isTrue heq => isTrue (heq ▸ rfl)
| isFalse hne => isFalse (Nat.noConfusion · (λ heq => absurd heq hne))
terminat... |
f5b4b3d70436397e9e3d7757e531fc2d12e772f6 | 4727251e0cd73359b15b664c3170e5d754078599 | /src/data/set_like/basic.lean | 2176811dcb11fab6a20b6afdd3788573a2c7a078 | [
"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,891 | 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 data.set.basic
import tactic.monotonicity.basic
/-!
# Typeclass for types with a set-like extensionality property
The `has_mem` typeclass is used to let terms of a... |
e44aa774dd4f407dad139a3d722725a37030d3b4 | a7eef317ddec01b9fc6cfbb876fe7ac00f205ac7 | /src/ring_theory/ideals.lean | bc3c77864cdef573f638cec2fd0227789b4d92ae | [
"Apache-2.0"
] | permissive | kmill/mathlib | ea5a007b67ae4e9e18dd50d31d8aa60f650425ee | 1a419a9fea7b959317eddd556e1bb9639f4dcc05 | refs/heads/master | 1,668,578,197,719 | 1,593,629,163,000 | 1,593,629,163,000 | 276,482,939 | 0 | 0 | null | 1,593,637,960,000 | 1,593,637,959,000 | null | UTF-8 | Lean | false | false | 20,013 | lean | /-
Copyright (c) 2018 Kenny Lau. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Kenny Lau, Chris Hughes, Mario Carneiro
-/
import algebra.associated
import linear_algebra.basic
import order.zorn
universes u v
variables {α : Type u} {β : Type v} {a b : α}
open set func... |
838c3c0f9759c5b73bbd9eb8f52a2d4f6a2db7a5 | b2fe74b11b57d362c13326bc5651244f111fa6f4 | /src/data/equiv/ring.lean | d14dbfe1be5aa0f813a0d2ab39b5505a0bbf9bbd | [
"Apache-2.0"
] | permissive | midfield/mathlib | c4db5fa898b5ac8f2f80ae0d00c95eb6f745f4c7 | 775edc615ecec631d65b6180dbcc7bc26c3abc26 | refs/heads/master | 1,675,330,551,921 | 1,608,304,514,000 | 1,608,304,514,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 11,724 | 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, Callum Sutton, Yury Kudryashov
-/
import data.equiv.mul_add
import algebra.field
import algebra.opposites
/-!
# (Semi)ring equivs
In this file we define extension of ... |
c4d10d21c660b6069ccaa49c2a05dc0c2a7cb063 | f3be49eddff7edf577d3d3666e314d995f7a6357 | /TBA/Exercises/Exercise1.lean | b3446bd80d0c44fd8216fbd2c06caf0c582f128a | [] | no_license | IPDSnelting/tba-2021 | 8b930bcd2f4aae44a2ddc86e72b77f84e6d46e82 | b6390e55b768423d3266969e81d19290129c5914 | refs/heads/master | 1,686,754,693,583 | 1,625,135,602,000 | 1,625,136,365,000 | 355,124,341 | 50 | 7 | null | 1,625,133,762,000 | 1,617,699,824,000 | Lean | UTF-8 | Lean | false | false | 2,805 | lean | -- Let's first prove some simple example lemmas with the logical connectives we learned in the lecture.
section
-- Variables in sections determine the type of certain variables for the remainder of the section, saving us a bit of space.
variable (p q r : Prop)
example : p → p := _
example : p → (q → p) := _
-- Note:... |
1b746ce946cd55d891da4898613ccebd61941fac | cf39355caa609c0f33405126beee2739aa3cb77e | /tests/lean/interactive/info_tactic.lean | 9cee3aa86a6dcad84dffe2eb91ab55a933840543 | [
"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 | 406 | lean | open tactic
open lean.parser
open interactive
open interactive.types
meta def fooo (p : parse $ optional $ pexpr_list_or_texpr) : tactic unit := skip
run_cmd add_interactive [`fooo]
example : false :=
begin
fooo,
--^ "command": "info"
fooo ,
--^ "command": "info"
fooo [ ],
--^ "command": "info"
... |
a2b32f5a59ae823bd4ff57141535681ec72c32d5 | d406927ab5617694ec9ea7001f101b7c9e3d9702 | /src/linear_algebra/matrix/determinant.lean | 96afa0d0acd0574ded44d18fbd1f0d61c78a5f89 | [
"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 | 31,780 | lean | /-
Copyright (c) 2018 Kenny Lau. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Kenny Lau, Chris Hughes, Tim Baanen
-/
import data.matrix.pequiv
import data.matrix.block
import data.matrix.notation
import data.fintype.big_operators
import group_theory.perm.fin
import g... |
cd416349c075fdd74d58187d634d457b03f0b28e | ac2987d8c7832fb4a87edb6bee26141facbb6fa0 | /Mathlib/Tactic/Split.lean | 5df7dc319d7cf4a9f25f02155ca880367a8633dc | [
"Apache-2.0"
] | permissive | AurelienSaue/mathlib4 | 52204b9bd9d207c922fe0cf3397166728bb6c2e2 | 84271fe0875bafdaa88ac41f1b5a7c18151bd0d5 | refs/heads/master | 1,689,156,096,545 | 1,629,378,840,000 | 1,629,378,840,000 | 389,648,603 | 0 | 0 | Apache-2.0 | 1,627,307,284,000 | 1,627,307,284,000 | null | UTF-8 | Lean | false | false | 996 | lean | /-
Copyright (c) 2021 Mario Carneiro. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Author: Mario Carneiro
-/
import Lean.Meta.Tactic.Apply
import Lean.Elab.Tactic.Basic
import Lean.Elab.SyntheticMVars
def Lean.Meta.split (mvarId : MVarId) : MetaM (List MVarId) := do
withMV... |
9a0c21503869ddb661fe5a8945b9bd232f8e471f | d406927ab5617694ec9ea7001f101b7c9e3d9702 | /src/algebra/homology/complex_shape.lean | bffbd9a898316e5c05efdee31045a93d290d3278 | [
"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,834 | lean | /-
Copyright (c) 2021 Scott Morrison. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Johan Commelin, Scott Morrison
-/
import algebra.group.defs
import logic.relation
/-!
# Shapes of homological complexes
> THIS FILE IS SYNCHRONIZED WITH MATHLIB4.
> https://github.co... |
1f01b41fbb3524079305e2896f5ea8a936672c0a | 9dc8cecdf3c4634764a18254e94d43da07142918 | /src/topology/connected.lean | 02c407cd882826da9979a17ecdc4063c61a19aaa | [
"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 | 71,287 | lean | /-
Copyright (c) 2017 Johannes Hölzl. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Johannes Hölzl, Mario Carneiro, Yury Kudryashov
-/
import data.int.succ_pred
import data.nat.succ_pred
import order.partial_sups
import order.succ_pred.relation
import topology.subset_... |
ab1de43333005f446518e8626bdd3278fe0acf4f | 61ccc57f9d72048e493dd6969b56ebd7f0a8f9e8 | /src/analysis/normed_space/banach.lean | 44763e1a518b6cd4b92b51d7bcb83ccc465ec9c2 | [
"Apache-2.0"
] | permissive | jtristan/mathlib | 375b3c8682975df28f79f53efcb7c88840118467 | 8fa8f175271320d675277a672f59ec53abd62f10 | refs/heads/master | 1,651,072,765,551 | 1,588,255,641,000 | 1,588,255,641,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 10,931 | 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
Banach spaces, i.e., complete vector spaces.
This file contains the Banach open mapping theorem, i.e., the fact that a bijective
bounded linear map between Banac... |
6dc25c64603590bde35ea52c4d2e4de53a106fb2 | 022215fec0be87ac6243b0f4fa3cc2939361d7d0 | /src/algebraic_geometry/stalks.lean | 5817a9b02506cc331b0cf1566e0befc50c6b67f1 | [
"Apache-2.0"
] | permissive | PaulGustafson/mathlib | 4aa7bc81ca971fdd7b6e50bf3a245fade2978391 | c49ac06ff9fa1371e9b6050a121df618cfd3fb80 | refs/heads/master | 1,590,798,947,521 | 1,559,220,227,000 | 1,559,220,227,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 1,912 | 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
import category_theory.instances.Top.stalks
universes v u v' u'
open category_theory
open category_theory.instances
op... |
bfd4ae682ae0a05bf8ee551f2dbbbbae3c3d80ad | 74addaa0e41490cbaf2abd313a764c96df57b05d | /Mathlib/tactic/pretty_cases_auto.lean | 2043e5f4de41ea96be6016a31b8a416f30b81627 | [] | 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 | 1,955 | lean | /-
Copyright (c) 2020 Simon Hudon. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Author: Simon Hudon
-/
import Mathlib.PrePort
import Mathlib.Lean3Lib.init.default
import Mathlib.tactic.core
import Mathlib.PostPort
namespace Mathlib
/-!
# `pretty_cases` tactic
When using `i... |
199bb3c2e1b43e3fcb8580801481630514745961 | cf39355caa609c0f33405126beee2739aa3cb77e | /tests/lean/run/import_open_locale2.lean | 5ba9958a3b9d45a6b70a4021c49aaa7fdc4fee5b | [
"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 | 51 | lean | import .import_open_locale1
open_locale classical
|
a0cf821c20a2d1bca4a85b70bb8f40731179cda1 | a0e23cfdd129a671bf3154ee1a8a3a72bf4c7940 | /src/Lean/LocalContext.lean | 36ca832586b31cf53c4e078ca942e98a173fbbe0 | [
"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 | 15,087 | 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 Std.Data.PersistentArray
import Lean.Expr
import Lean.Hygiene
namespace Lean
inductive LocalDecl where
| cdecl (index : Nat) (fvarId : FVarId) (u... |
adef3c1b4f034c34b92f2c348c24158c225fec69 | aa5a655c05e5359a70646b7154e7cac59f0b4132 | /tests/lean/derivingRepr.lean | 597bfae37a89ecaf68cfa30afa5f6ccaf2294dfb | [
"Apache-2.0"
] | permissive | lambdaxymox/lean4 | ae943c960a42247e06eff25c35338268d07454cb | 278d47c77270664ef29715faab467feac8a0f446 | refs/heads/master | 1,677,891,867,340 | 1,612,500,005,000 | 1,612,500,005,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 843 | lean | structure Foo where
name : String
val : List Nat
lower : Nat := List.length val
inv : val.length >= lower
flag : Bool
deriving Repr
#eval { name := "Joe", val := List.iota 40, flag := true, inv := by decide! : Foo }
inductive Tree (α : Type) where
| node : List (Tree α) → Bool → Tree α
| leaf : ... |
10ff151250670845604799faf380f9c102e9af47 | a9d0fb7b0e4f802bd3857b803e6c5c23d87fef91 | /tests/lean/run/IO2.lean | a9f6d726a50067e3be83c3340e3c75037fef5407 | [
"Apache-2.0"
] | permissive | soonhokong/lean-osx | 4a954262c780e404c1369d6c06516161d07fcb40 | 3670278342d2f4faa49d95b46d86642d7875b47c | refs/heads/master | 1,611,410,334,552 | 1,474,425,686,000 | 1,474,425,686,000 | 12,043,103 | 5 | 1 | null | null | null | null | UTF-8 | Lean | false | false | 380 | lean | import system.IO
open list
/- B and unit must be in the same universe
So, we must put B at Type₁ or use poly_unit
since unit is at Type₁
-/
definition for {A : Type} {B : Type} : list A → (A → IO B) → IO poly_unit
| [] f := return poly_unit.star
| (x::xs) f := do f x, for xs f
vm_eval for [1,2,3,4,5] (λ i... |
3f5bd535471d5a622df68a44a9abb58742cb0c61 | 4d2583807a5ac6caaffd3d7a5f646d61ca85d532 | /src/computability/halting.lean | 8264fea17b01f669dd01da1a280a7136b2f0fe91 | [
"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 | 14,356 | 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 computability.partrec_code
/-!
# Computability theory and the halting problem
A universal partial recursive function, Rice's theorem, and the halting problem... |
33baa113c28c57f5a891806d0c4a139533b27f78 | 82e44445c70db0f03e30d7be725775f122d72f3e | /src/topology/algebra/uniform_group.lean | 4b789cb3518998d6bdeac67f0e048d3b7694d0cb | [
"Apache-2.0"
] | permissive | stjordanis/mathlib | 51e286d19140e3788ef2c470bc7b953e4991f0c9 | 2568d41bca08f5d6bf39d915434c8447e21f42ee | refs/heads/master | 1,631,748,053,501 | 1,627,938,886,000 | 1,627,938,886,000 | 228,728,358 | 0 | 0 | Apache-2.0 | 1,576,630,588,000 | 1,576,630,587,000 | null | UTF-8 | Lean | false | false | 20,023 | lean | /-
Copyright (c) 2018 Patrick Massot. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Patrick Massot, Johannes Hölzl
-/
import topology.uniform_space.uniform_embedding
import topology.uniform_space.complete_separated
import topology.algebra.group
import tactic.abel
impo... |
cbaa4d9543dc023f026583532c069cb59785cc42 | d406927ab5617694ec9ea7001f101b7c9e3d9702 | /src/analysis/special_functions/exp_deriv.lean | 07d2b5e7aae93d9ca99f0f8a91f75f5f4864db1b | [
"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 | 10,166 | 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 analysis.calculus.inverse
import analysis.complex.real_deriv
import analysis.special_functions.exp
/-!
# Complex a... |
499fdf7c25a9d28c8540ad20216067edf0907790 | 1437b3495ef9020d5413178aa33c0a625f15f15f | /tactic/norm_num.lean | 8ede7870bdd1d4327186bf2c269168c817c23724 | [
"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 | 18,825 | 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
Evaluating arithmetic expressions including *, +, -, ^, ≤
-/
import algebra.group_power data.rat data.nat.prime
import tactic.interactive tactic.converter.int... |
2a17f73c3bf4269558d53f63079fe8076bf1d74c | 07c6143268cfb72beccd1cc35735d424ebcb187b | /src/data/array/lemmas.lean | c602d213ee0e279683a56f8eb0fa9ca55fd23396 | [
"Apache-2.0"
] | permissive | khoek/mathlib | bc49a842910af13a3c372748310e86467d1dc766 | aa55f8b50354b3e11ba64792dcb06cccb2d8ee28 | refs/heads/master | 1,588,232,063,837 | 1,587,304,803,000 | 1,587,304,803,000 | 176,688,517 | 0 | 0 | Apache-2.0 | 1,553,070,585,000 | 1,553,070,585,000 | null | UTF-8 | Lean | false | false | 8,868 | 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 category.traversable.equiv data.vector2
universes u v w
namespace d_array
variables {n : ℕ} {α : fin n → Type u}
instance [∀ i, in... |
652a6f9153f22e0b3dee3a4753d9abd7f2828391 | 54d7e71c3616d331b2ec3845d31deb08f3ff1dea | /library/init/core.lean | 8b7ff90c8499ce4de1e4b14f62f89f214808646d | [
"Apache-2.0"
] | permissive | pachugupta/lean | 6f3305c4292288311cc4ab4550060b17d49ffb1d | 0d02136a09ac4cf27b5c88361750e38e1f485a1a | refs/heads/master | 1,611,110,653,606 | 1,493,130,117,000 | 1,493,167,649,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 18,432 | 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
notation, basic datatypes and type classes
-/
prelude
notation `Prop` := Sort 0
notation f ` $ `:1 a:0 := f a
/- Logical operations and relations -/
reserv... |
d454d132332738b0585ea60c41108d33475d93c1 | 43390109ab88557e6090f3245c47479c123ee500 | /src/M3P14/order.lean | 497b7a0b945f64d743b523afaff64a3a4b04c1a7 | [
"Apache-2.0"
] | permissive | Ja1941/xena-UROP-2018 | 41f0956519f94d56b8bf6834a8d39473f4923200 | b111fb87f343cf79eca3b886f99ee15c1dd9884b | refs/heads/master | 1,662,355,955,139 | 1,590,577,325,000 | 1,590,577,325,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 3,525 | lean | import data.nat.prime data.nat.gcd data.nat.modeq data.nat.gcd algebra.group chris_hughes_various.zmod group_theory.order_of_element M3P14.order_zmodn_kmb M3P14.Arithmetic_functions.phi
open zmod nat
@[simp] lemma units.coe_pow {α : Type*} [monoid α] (u : units α) (n : ℕ) : (↑(u ^ n) : α) = u ^ n :=
by induction n; s... |
3b4833a5cbc7c757bdd62d1fb99253d7fd03c4d4 | 94e33a31faa76775069b071adea97e86e218a8ee | /src/measure_theory/covering/vitali_family.lean | 192072a166498ec25a05eb65e098a3b5deefe8ac | [
"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 | 11,207 | lean | /-
Copyright (c) 2021 Sébastien Gouëzel. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Sébastien Gouëzel
-/
import measure_theory.measure.measure_space
/-!
# Vitali families
On a metric space `X` with a measure `μ`, consider for each `x : X` a family of measurable s... |
f889699849fa6a8793ccfdb8e5ff9fbb078c91d2 | 82e44445c70db0f03e30d7be725775f122d72f3e | /src/algebra/big_operators/finprod.lean | c6ee44781047d67451d8c7a88b7175103b99bef9 | [
"Apache-2.0"
] | permissive | stjordanis/mathlib | 51e286d19140e3788ef2c470bc7b953e4991f0c9 | 2568d41bca08f5d6bf39d915434c8447e21f42ee | refs/heads/master | 1,631,748,053,501 | 1,627,938,886,000 | 1,627,938,886,000 | 228,728,358 | 0 | 0 | Apache-2.0 | 1,576,630,588,000 | 1,576,630,587,000 | null | UTF-8 | Lean | false | false | 36,772 | lean | /-
Copyright (c) 2020 Kexing Ying and Kevin Buzzard. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Kexing Ying, Kevin Buzzard, Yury Kudryashov
-/
import algebra.big_operators.order
import algebra.indicator_function
import data.set.pairwise
/-!
# Finite products and s... |
e5bd5d85c1d8b924a6c0c0ec12f3d858746ce766 | 2a70b774d16dbdf5a533432ee0ebab6838df0948 | /_target/deps/mathlib/src/algebra/ordered_field.lean | 50d3a5c77dbc967df84665ae55eeadc24a106d2b | [
"Apache-2.0"
] | permissive | hjvromen/lewis | 40b035973df7c77ebf927afab7878c76d05ff758 | 105b675f73630f028ad5d890897a51b3c1146fb0 | refs/heads/master | 1,677,944,636,343 | 1,676,555,301,000 | 1,676,555,301,000 | 327,553,599 | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 24,380 | lean | /-
Copyright (c) 2014 Robert Lewis. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Robert Lewis, Leonardo de Moura, Mario Carneiro, Floris van Doorn
-/
import algebra.ordered_ring
import algebra.field
/-!
### Linear ordered fields
A linear ordered field is a field ... |
aff0b34d23f4ad3b3d80ab99f3cdfb7e4dc27558 | 74addaa0e41490cbaf2abd313a764c96df57b05d | /Mathlib/set_theory/ordinal_auto.lean | 4501f1741f4d226b1889e6940998dd2f4d562b08 | [] | 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 | 49,299 | lean | /-
Copyright (c) 2017 Johannes Hölzl. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Author: Mario Carneiro
-/
import Mathlib.PrePort
import Mathlib.Lean3Lib.init.default
import Mathlib.set_theory.cardinal
import Mathlib.PostPort
universes u_4 u_5 l u_1 u_2 u_3 u v w
namespa... |
a0f5263e1acbd9b4b9cc80230fd562657de20640 | aa44b2a5876642f9460205af61a5449b74465655 | /src/polynomial.lean | 5ec16e71838ef992d9c5d7ad0c516bac677b0106 | [] | no_license | robertylewis/mathematica_examples | d129d67de147dc2792dcf0b6b70fac9b2eaf8274 | e317381c49db032accef2a92e7650d029952ad76 | refs/heads/master | 1,632,630,516,240 | 1,631,905,726,000 | 1,631,905,726,000 | 80,952,455 | 2 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 2,273 | lean |
/-
Copyright (c) 2017 Robert Y. Lewis. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Author: Robert Y. Lewis
-/
import mathematica
import tactic.norm_num
import data.real.pi
open expr tactic int
/-!
The examples in this file show how we can use Mathematica to solve polynomi... |
8fb3f6b3fb8d7be15e1935166b10986d2baea25c | 57c233acf9386e610d99ed20ef139c5f97504ba3 | /src/topology/unit_interval.lean | c9182c0dc2f14ead0769127e8ba6dde927bb3a28 | [
"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,018 | lean | /-
Copyright (c) 2020 Patrick Massot. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Patrick Massot, Scott Morrison
-/
import topology.instances.real
import topology.algebra.field
import data.set.intervals.proj_Icc
/-!
# The unit interval, as a topological space
Use ... |
213e8c7d843cb82957eafe0900414bbfb12f7330 | bb31430994044506fa42fd667e2d556327e18dfe | /src/order/succ_pred/interval_succ.lean | 79a635165d2a4eed91dd50cc268f9905e8e1ce30 | [
"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 | 7,010 | lean | /-
Copyright (c) 2022 Yury Kudryashov. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Yury Kudryashov
-/
import data.set.pairwise
import order.succ_pred.basic
/-!
# Intervals `Ixx (f x) (f (order.succ x))`
> THIS FILE IS SYNCHRONIZED WITH MATHLIB4.
> Any changes to t... |
b9ec8a4d2c3d0fdcb3f3465d2febe3c4983afcdf | 57c233acf9386e610d99ed20ef139c5f97504ba3 | /src/analysis/inner_product_space/adjoint.lean | fc84943f1dece7fc9a96ffaeec87446f267a4de3 | [
"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 | 13,710 | lean | /-
Copyright (c) 2021 Frédéric Dupuis. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Frédéric Dupuis, Heather Macbeth
-/
import analysis.inner_product_space.dual
import analysis.inner_product_space.pi_L2
/-!
# Adjoint of operators on Hilbert spaces
Given an operato... |
4ed799bf0b8fc1b970e6217ac24a8652bb610892 | fa02ed5a3c9c0adee3c26887a16855e7841c668b | /src/data/nat/sqrt.lean | 5912f4f42079fe84fbf994a9f0b80d66d5d0fa51 | [
"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,606 | 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, Johannes Hölzl, Mario Carneiro
-/
import data.int.basic
/-!
# Square root of natural numbers
This file defines an efficient binary implementation of the squ... |
5afd2aa69115aea0f1f51ce3c1c86350f245f47f | 5abe9de35738a0e2931cac47648658509f165c1e | /Semana_2/Semana2.lean | 52b813dc4b1e22965c9e36c8802704e913e27d9b | [] | no_license | AlessandroDangelo/Matem-tica-Discreta-1 | 2d827d50d5c48144e4783e85af6e87d1a515b0b5 | b154612d20d88a9fb173a238aa2a9f8e5375d9f7 | refs/heads/main | 1,680,075,356,062 | 1,617,378,986,000 | 1,617,378,986,000 | 354,065,141 | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 1,104 | lean | variables A B P Q R S : Prop.
lemma exL (H1 : P → Q)
(H2 : R → S) : (P ∨ R) → (Q ∨ S) :=
assume H3 : (P ∨ R),
(or.elim H3
(assume H : P, show Q ∨ S, from (or.intro_left S (H1 (show P, from (H)))))
(assume H : R, show Q ∨ S, from ... |
8a7a92a08db1a4d99a0a5715ff4147e235886134 | c777c32c8e484e195053731103c5e52af26a25d1 | /src/analysis/normed_space/dual_number.lean | fbe680a7fcad0237c07123feee3920dd7f11aa72 | [
"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 | 835 | lean | /-
Copyright (c) 2023 Eric Wieser. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Eric Wieser
-/
import algebra.dual_number
import analysis.normed_space.triv_sq_zero_ext
/-!
# Results on `dual_number R` related to the norm
These are just restatements of similar state... |
ad30d9476a4462a5d86d03fd201898fd3141e168 | 19cc34575500ee2e3d4586c15544632aa07a8e66 | /src/data/multiset/gcd.lean | 8a4d542d65ddaab1e8440423ef0980652d75ed01 | [
"Apache-2.0"
] | permissive | LibertasSpZ/mathlib | b9fcd46625eb940611adb5e719a4b554138dade6 | 33f7870a49d7cc06d2f3036e22543e6ec5046e68 | refs/heads/master | 1,672,066,539,347 | 1,602,429,158,000 | 1,602,429,158,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 5,085 | 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 data.multiset.lattice
import algebra.gcd_monoid
/-!
# GCD and LCM operations on multisets
## Main definitions
- `multiset.gcd` - the greatest common denomina... |
4c03776b0232bfd0df4db6711fcb38b4a9b4b23e | e0f9ba56b7fedc16ef8697f6caeef5898b435143 | /src/category_theory/limits/preserves.lean | caf28ebc60aaea5fe8503cf443bb5d54e9522353 | [
"Apache-2.0"
] | permissive | anrddh/mathlib | 6a374da53c7e3a35cb0298b0cd67824efef362b4 | a4266a01d2dcb10de19369307c986d038c7bb6a6 | refs/heads/master | 1,656,710,827,909 | 1,589,560,456,000 | 1,589,560,456,000 | 264,271,800 | 0 | 0 | Apache-2.0 | 1,589,568,062,000 | 1,589,568,061,000 | null | UTF-8 | Lean | false | false | 11,245 | lean | /-
Copyright (c) 2018 Scott Morrison. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Scott Morrison, Reid Barton
-/
import category_theory.limits.limits
/-!
# Preservation and reflection of (co)limits.
There are various distinct notions of "preserving limits". The on... |
24c2fb3d4b9c33bba2db109aa99183c7260b6f6c | fa02ed5a3c9c0adee3c26887a16855e7841c668b | /src/algebra/category/Group/adjunctions.lean | cbcc757de517887ee0422014e7a8a73abe25c332 | [
"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,902 | lean | /-
Copyright (c) 2019 Scott Morrison. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Scott Morrison, Johannes Hölzl
-/
import algebra.category.Group.basic
import group_theory.free_abelian_group
/-!
# Adjunctions regarding the category of (abelian) groups
This file co... |
4f823769776ee8c20beca2799986f52b76d4ca00 | 8cae430f0a71442d02dbb1cbb14073b31048e4b0 | /src/tactic/rewrite_search/explain.lean | 37490a29fe49bec63025a0768f379ced00f36620 | [
"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,771 | lean | /-
Copyright (c) 2020 Kevin Lacker, Keeley Hoek, Scott Morrison. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Kevin Lacker, Keeley Hoek, Scott Morrison
-/
import tactic.rewrite_search.types
import tactic.converter.interactive -- Required for us to emit more compact ... |
5dda81608d138ed836e4e389b83f3c350fd262d2 | 958488bc7f3c2044206e0358e56d7690b6ae696c | /lean/tutorials/tutorial4.lean | 817a2d47c9391daa22a47d53ca401fe9328f4f69 | [] | no_license | possientis/Prog | a08eec1c1b121c2fd6c70a8ae89e2fbef952adb4 | d4b3debc37610a88e0dac3ac5914903604fd1d1f | refs/heads/master | 1,692,263,717,723 | 1,691,757,179,000 | 1,691,757,179,000 | 40,361,602 | 3 | 0 | null | 1,679,896,438,000 | 1,438,953,859,000 | Coq | UTF-8 | Lean | false | false | 1,286 | lean | import data.real.basic
import data.int.parity
open nat
example : ∃ (n : ℕ), 8 = 2*n :=
begin
use 4, refl
end
example : ∀ (n : ℕ), (exists (k : ℕ), n = k + 1) → n > 0 :=
begin
intros n H₁, cases H₁ with k H₁, rw H₁, apply succ_pos
end
example : ∀ (a b c : ℤ), a ∣ b → b ∣ c → a ∣ c :=
begin
intros a b c H₁ H₂,
... |
e869b9fdd2fb5212d5f198b4ae7565308f263c54 | 9dc8cecdf3c4634764a18254e94d43da07142918 | /src/algebra/module/submodule/basic.lean | 7c376204bdf8f4f671eafb15f8b5ea9b51e2773a | [
"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 | 16,233 | lean | /-
Copyright (c) 2015 Nathaniel Thomas. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Nathaniel Thomas, Jeremy Avigad, Johannes Hölzl, Mario Carneiro
-/
import algebra.module.linear_map
import algebra.module.equiv
import group_theory.group_action.sub_mul_action
/-!
#... |
4d802a83349c214f31571d695ba28f9cada02d35 | 9be442d9ec2fcf442516ed6e9e1660aa9071b7bd | /src/Lean/Elab/Deriving/Repr.lean | c14736f007dfd2322c06db403094d36495f36468 | [
"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 | 5,127 | 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.Transform
import Lean.Meta.Inductive
import Lean.Elab.Deriving.Basic
import Lean.Elab.Deriving.Util
namespace Lean.Elab.Deriving.Repr
open... |
7c5f21cfe3a4eb102bf5dace21b55c77d5a69cfa | 80cc5bf14c8ea85ff340d1d747a127dcadeb966f | /src/category_theory/reflects_isomorphisms.lean | 25ffddfc2ad6dfde16c4d49e02b9fd8606b1b567 | [
"Apache-2.0"
] | permissive | lacker/mathlib | f2439c743c4f8eb413ec589430c82d0f73b2d539 | ddf7563ac69d42cfa4a1bfe41db1fed521bd795f | refs/heads/master | 1,671,948,326,773 | 1,601,479,268,000 | 1,601,479,268,000 | 298,686,743 | 0 | 0 | Apache-2.0 | 1,601,070,794,000 | 1,601,070,794,000 | null | UTF-8 | Lean | false | false | 1,261 | 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 category_theory.fully_faithful
open category_theory
namespace category_theory
universes v₁ v₂ u₁ u₂
variables {C : Type u₁} [category.{v₁} C]
section reflects... |
c9ccc410156a28980c04b5f86f2272d6aaa62fe7 | 1a9d3677cccdaaccacb163507570e75d34043a38 | /src/week_2/Part_A_groups.lean | 5a684905f008719a9695a18a2ddbaf2b66509fa4 | [
"Apache-2.0"
] | permissive | alreadydone/formalising-mathematics | 687d386a72065795e784e270f5c05ea3948b67dd | 65869362cd7a2ac74dd1a97c7f9471835726570b | refs/heads/master | 1,680,260,936,332 | 1,616,563,371,000 | 1,616,563,371,000 | 348,780,769 | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 11,583 | lean | import tactic
/-!
# Groups
Definition and basic properties of a group.
-/
-- Technical note: We work in a namespace `xena` because Lean already has groups.
namespace xena
-- Now our definition of a group will really be called `xena.group`.
/-
## Definition of a group
The `group` class will extend `has_mul`, `h... |
9e40c49ed51adfc897cdf01ba562bfa0d557e4df | ebf7140a9ea507409ff4c994124fa36e79b4ae35 | /src/exercises_sources/thursday/category_theory/exercise5.lean | 3bae7510f848235718a18303a933c0c6dc9e21f9 | [] | no_license | fundou/lftcm2020 | 3e88d58a92755ea5dd49f19c36239c35286ecf5e | 99d11bf3bcd71ffeaef0250caa08ecc46e69b55b | refs/heads/master | 1,685,610,799,304 | 1,624,070,416,000 | 1,624,070,416,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 1,288 | lean | import category_theory.preadditive
import category_theory.limits.shapes.biproducts
/-!
We prove that biproducts (direct sums) are preserved by any preadditive functor.
This result is not in mathlib, so full marks for the exercise are only achievable if you
contribute to a pull request! :-)
-/
noncomputable theory
o... |
4e3127034a191a10a32add3c550aa9431df15c79 | 98beff2e97d91a54bdcee52f922c4e1866a6c9b9 | /src/construction.lean | 1ef9097fa5feec5b92a5fec4c14871db2c5902de | [] | no_license | b-mehta/topos | c3fc43fb04ba16bae1965ce5c26c6461172e5bc6 | c9032b11789e36038bc841a1e2b486972421b983 | refs/heads/master | 1,629,609,492,867 | 1,609,907,263,000 | 1,609,907,263,000 | 240,943,034 | 43 | 3 | null | 1,598,210,062,000 | 1,581,877,668,000 | Lean | UTF-8 | Lean | false | false | 13,365 | lean | import category_theory.limits.shapes.binary_products
import category_theory.limits.preserves.shapes.binary_products
import category_theory.adjunction
import category_theory.monad.adjunction
import category_theory.adjunction.fully_faithful
import category_theory.closed.cartesian
import category.adjunction
universes v₁ ... |
f89b48feb8e3ca806e0da690804ee3df18c04aea | e514e8b939af519a1d5e9b30a850769d058df4e9 | /src/lib_unused/options.lean | 4ea881de10dac682200488a7e4ce5ba586226ae7 | [] | no_license | semorrison/lean-rewrite-search | dca317c5a52e170fb6ffc87c5ab767afb5e3e51a | e804b8f2753366b8957be839908230ee73f9e89f | refs/heads/master | 1,624,051,754,485 | 1,614,160,817,000 | 1,614,160,817,000 | 162,660,605 | 0 | 1 | null | null | null | null | UTF-8 | Lean | false | false | 171 | lean | -- meta def options.set_list_bool : options → list (name × bool) → options
-- | o [] := o
-- | o ((n, v) :: rest) := (o.set_bool n v).set_list_bool rest |
5d29bc382109a88d360ab6e774cfcdecac7c87ee | 4727251e0cd73359b15b664c3170e5d754078599 | /src/analysis/normed_space/add_torsor_bases.lean | c8a8e98bf05aa6bb77a7513fa11f3330513d9bc4 | [
"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 | 7,435 | lean | /-
Copyright (c) 2021 Oliver Nash. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Oliver Nash
-/
import analysis.normed_space.banach
import analysis.normed_space.finite_dimension
import analysis.calculus.affine_map
import analysis.convex.combination
import linear_algeb... |
29cd49f613a9b85b80ecbbcb6aed2f98fca6e46e | 38bf3fd2bb651ab70511408fcf70e2029e2ba310 | /src/topology/algebra/ordered.lean | 1430a88afcc1aa79bdc2447b16f294979e544d45 | [
"Apache-2.0"
] | permissive | JaredCorduan/mathlib | 130392594844f15dad65a9308c242551bae6cd2e | d5de80376088954d592a59326c14404f538050a1 | refs/heads/master | 1,595,862,206,333 | 1,570,816,457,000 | 1,570,816,457,000 | 209,134,499 | 0 | 0 | Apache-2.0 | 1,568,746,811,000 | 1,568,746,811,000 | null | UTF-8 | Lean | false | false | 44,565 | 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 ordered topology.
-/
import order.liminf_limsup
import data.set.intervals
import topology.algebra.group
import topology.constructions
open cl... |
44889438f3f765c629eb3927e5a8e2b56cdb6ddf | 947b78d97130d56365ae2ec264df196ce769371a | /tests/lean/run/nested_match_bug.lean | 119c6e34fad5f7d1326f9adae8e854c332b9626a | [
"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 | 388 | lean | new_frontend
inductive Term : Type
| app : List Term -> Term
namespace Term
instance : Inhabited Term := ⟨app []⟩
partial def transform (f : Term -> Option Term) : Term -> Term
| t =>
match f t with
| some u => transform f u
| none =>
match t with
| app args =>
let newArgs := args.map (fun arg... |
7e53f70c2c1c1cd8936265e0f823012a1aedcc4e | 2272e503179a58556187901b8698b789fad7e0c4 | /src/basic.lean | b689d31b7bfb719f44a71975529eeec1079cac87 | [] | no_license | kckennylau/category-theory | f15e582be862379453a5341d83b8cd5ebc686729 | b24962838c7370b5257e38b7648040aec95922bb | refs/heads/master | 1,583,605,043,449 | 1,525,154,882,000 | 1,525,154,882,000 | 127,633,452 | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 4,413 | lean | import algebra.group
import analysis.topology.continuity
import linear_algebra.linear_map_module
import algebra.group_power
universes u v w u₁ v₁ w₁ u₂ v₂ w₂
structure category (α : Type u) : Type (max u v + 1) :=
(Mor : Π x y : α, Type v)
(Comp : Π x y z, Mor y z → Mor x y → Mor x z)
(Id : Π x, Mor x x)
(... |
f5365a0c5ef69be49d2d66e7e6ff6e3fbae9b04a | 9dc8cecdf3c4634764a18254e94d43da07142918 | /src/field_theory/is_alg_closed/classification.lean | 029f99b900334ea657ef8cd743dc3fef7f1a731f | [
"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 | 8,517 | lean | /-
Copyright (c) 2022 Chris Hughes. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Chris Hughes
-/
import data.W.cardinal
import ring_theory.algebraic_independent
import field_theory.is_alg_closed.basic
import field_theory.intermediate_field
import data.polynomial.card... |
25092b9e71768f0d4cb9c477c53d70db50ef0120 | 624f6f2ae8b3b1adc5f8f67a365c51d5126be45a | /stage0/src/Init/Lean/Elab/Log.lean | f6cbe1159d8be08397223c8ff7ee5c4f075f9218 | [
"Apache-2.0"
] | permissive | mhuisi/lean4 | 28d35a4febc2e251c7f05492e13f3b05d6f9b7af | dda44bc47f3e5d024508060dac2bcb59fd12e4c0 | refs/heads/master | 1,621,225,489,283 | 1,585,142,689,000 | 1,585,142,689,000 | 250,590,438 | 0 | 2 | Apache-2.0 | 1,602,443,220,000 | 1,585,327,814,000 | C | UTF-8 | Lean | false | false | 2,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
-/
prelude
import Init.Lean.Elab.Util
import Init.Lean.Elab.Exception
namespace Lean
namespace Elab
class MonadPosInfo (m : Type → Type) :=
(getFileMap {} :... |
a822028fbf53c2d0258942ba872168c962fffcd1 | 4bcaca5dc83d49803f72b7b5920b75b6e7d9de2d | /src/Lean/Meta/Offset.lean | f58ac46369dda0244c37c0df336164fb763f3372 | [
"Apache-2.0"
] | permissive | subfish-zhou/leanprover-zh_CN.github.io | 30b9fba9bd790720bd95764e61ae796697d2f603 | 8b2985d4a3d458ceda9361ac454c28168d920d3f | refs/heads/master | 1,689,709,967,820 | 1,632,503,056,000 | 1,632,503,056,000 | 409,962,097 | 1 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 6,505 | 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.Data.LBool
import Lean.Meta.InferType
import Lean.Meta.AppBuilder
namespace Lean.Meta
private abbrev withInstantiatedMVars (e : Expr) (k : Exp... |
39cbf79e05f91f17ba07d3fe59a8ba85d6dadfb1 | 86f6f4f8d827a196a32bfc646234b73328aeb306 | /examples/logic/unnamed_2585.lean | e2444c527d1dc8f471f5096a3e08775379f1166f | [] | no_license | jamescheuk91/mathematics_in_lean | 09f1f87d2b0dce53464ff0cbe592c568ff59cf5e | 4452499264e2975bca2f42565c0925506ba5dda3 | refs/heads/master | 1,679,716,410,967 | 1,613,957,947,000 | 1,613,957,947,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 179 | lean | import data.real.basic
-- BEGIN
variables {α : Type*} [linear_order α]
def converges_to (s : α → ℝ) (a : ℝ) :=
∀ ε > 0, ∃ N, ∀ n ≥ N, abs (s n - a) < ε
-- END |
ef8797d3b7c13136c2bce6768aec458bf2256d63 | d642a6b1261b2cbe691e53561ac777b924751b63 | /src/topology/algebra/ordered.lean | c9b63c6532799d067a44f185885f5faadd531947 | [
"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 | 44,656 | 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 ordered topology.
-/
import order.liminf_limsup
import data.set.intervals
import topology.algebra.group
import topology.constructions
open cl... |
b55675ffc07592626df0c737e824d9431fda57b8 | 4d2583807a5ac6caaffd3d7a5f646d61ca85d532 | /src/algebra/category/CommRing/basic.lean | 5c492d42ff2c27c4365dcf5d88550c95a1948169 | [
"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 | 8,886 | lean | /-
Copyright (c) 2018 Scott Morrison. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Scott Morrison, Johannes Hölzl, Yury Kudryashov
-/
import algebra.category.Group.basic
import data.equiv.ring
/-!
# Category instances for semiring, ring, comm_semiring, and comm_ring... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.