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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
1473a424c9b2fa657081fe1bde0f77a56868ca35 | d9d511f37a523cd7659d6f573f990e2a0af93c6f | /src/ring_theory/tensor_product.lean | 4bc5cf2d9cf8bc8435e70a0cef30125531a9d056 | [
"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 | 24,342 | lean | /-
Copyright (c) 2020 Scott Morrison. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Scott Morrison, Johan Commelin
-/
import linear_algebra.tensor_product
import algebra.algebra.tower
/-!
# The tensor product of R-algebras
Let `R` be a (semi)ring and `A` an `R`-alg... |
6a901b8a560dba3db5f828f93de9ce00b8716c49 | 9dc8cecdf3c4634764a18254e94d43da07142918 | /src/topology/algebra/group.lean | ef95bcf08edb293e6949aa7a72bc8d25a80cd088 | [
"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 | 61,802 | lean | /-
Copyright (c) 2017 Johannes HΓΆlzl. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Johannes HΓΆlzl, Mario Carneiro, Patrick Massot
-/
import group_theory.group_action.conj_act
import group_theory.group_action.quotient
import order.filter.pointwise
import topology.alge... |
b2f665588de114f2c038d0dfd4596c82d5b3a904 | fa02ed5a3c9c0adee3c26887a16855e7841c668b | /src/order/filter/ennreal.lean | 6b86310dfcb3a1ee9d3b432a6651b1ac0f1d6c15 | [
"Apache-2.0"
] | permissive | jjgarzella/mathlib | 96a345378c4e0bf26cf604aed84f90329e4896a2 | 395d8716c3ad03747059d482090e2bb97db612c8 | refs/heads/master | 1,686,480,124,379 | 1,625,163,323,000 | 1,625,163,323,000 | 281,190,421 | 2 | 0 | Apache-2.0 | 1,595,268,170,000 | 1,595,268,169,000 | null | UTF-8 | Lean | false | false | 4,506 | lean | /-
Copyright (c) 2021 RΓ©my Degenne. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: RΓ©my Degenne
-/
import data.real.ennreal
import order.filter.countable_Inter
import order.liminf_limsup
/-!
# Order properties of extended non-negative reals
This file compiles filter... |
b1597087ebff5a45eb10f2f126eebc4fcec72260 | d406927ab5617694ec9ea7001f101b7c9e3d9702 | /archive/100-theorems-list/93_birthday_problem.lean | 6d9c2d8bf3b1d05248cb2ab51af1ca9c07a1fee3 | [
"Apache-2.0"
] | permissive | alreadydone/mathlib | dc0be621c6c8208c581f5170a8216c5ba6721927 | c982179ec21091d3e102d8a5d9f5fe06c8fafb73 | refs/heads/master | 1,685,523,275,196 | 1,670,184,141,000 | 1,670,184,141,000 | 287,574,545 | 0 | 0 | Apache-2.0 | 1,670,290,714,000 | 1,597,421,623,000 | Lean | UTF-8 | Lean | false | false | 3,311 | lean | /-
Copyright (c) 2021 Eric Rodriguez. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Eric Rodriguez
-/
import data.fintype.card_embedding
import probability.cond_count
import probability.notation
/-!
# Birthday Problem
This file proves Theorem 93 from the [100 Theore... |
35934edc504af61365318212f4cf76a8c29e1431 | 491068d2ad28831e7dade8d6dff871c3e49d9431 | /tests/lean/run/all_goals.lean | 28408aaf723cc850a41740d1459ea867c5aa7d3f | [
"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 | 241 | lean | import data.nat
open nat
attribute nat.add [unfold 2]
attribute nat.rec_on [unfold 2]
example (a b c : nat) : a + 0 = 0 + a β§ b + 0 = 0 + b :=
begin
apply and.intro,
all_goals esimp[of_num],
all_goals (state; rewrite zero_add)
end
|
491b556bd1d10f9f06cd2760535a9195ea226cdd | d406927ab5617694ec9ea7001f101b7c9e3d9702 | /src/category_theory/abelian/opposite.lean | bf0c940586623e24e14f2e3d7083b56e9c204fe0 | [
"Apache-2.0"
] | permissive | alreadydone/mathlib | dc0be621c6c8208c581f5170a8216c5ba6721927 | c982179ec21091d3e102d8a5d9f5fe06c8fafb73 | refs/heads/master | 1,685,523,275,196 | 1,670,184,141,000 | 1,670,184,141,000 | 287,574,545 | 0 | 0 | Apache-2.0 | 1,670,290,714,000 | 1,597,421,623,000 | Lean | UTF-8 | Lean | false | false | 3,934 | lean | /-
Copyright (c) 2021 Scott Morrison. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Scott Morrison
-/
import category_theory.abelian.basic
import category_theory.preadditive.opposite
import category_theory.limits.opposites
/-!
# The opposite of an abelian category is... |
8d000222e04241fda2d21ca43203d796050d78d8 | 508d8fd300d597fd3f7f0f8f3d0f70275d21965f | /src/mathematica.lean | 9dd18bb7547556523a4dd9e7d680e57b770083f1 | [] | no_license | holtzermann17/mathematica | e3cdf06b4e1a118fcb22dbf8a8b722b33cde93d1 | ce589a885ccdea477e98e4ce38d6d3a4ae8940a9 | refs/heads/master | 1,588,476,421,760 | 1,553,861,282,000 | 1,553,861,282,000 | 178,398,173 | 0 | 0 | null | 1,553,861,103,000 | 1,553,861,103,000 | null | UTF-8 | Lean | false | false | 30,103 | 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_parser system.io
open expr string level name binder_info native
namespace list
variables {Ξ± Ξ² : Type}
universes u v w
def for : list Ξ± β (Ξ± β... |
d1499299973e0c87841ceee804fe18f9f0225ef5 | 737dc4b96c97368cb66b925eeea3ab633ec3d702 | /src/Lean/Meta/Tactic/SplitIf.lean | 1f8d13dee2339d4f6f93592721a346d9eaca5861 | [
"Apache-2.0"
] | permissive | Bioye97/lean4 | 1ace34638efd9913dc5991443777b01a08983289 | bc3900cbb9adda83eed7e6affeaade7cfd07716d | refs/heads/master | 1,690,589,820,211 | 1,631,051,000,000 | 1,631,067,598,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 4,483 | 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.LazyInitExtension
import Lean.Meta.Tactic.Cases
import Lean.Meta.Tactic.Simp.Main
namespace Lean.Meta
namespace SplitIf
builtin_initialize ext... |
eb601c1a8559dbbb83e11494bfc581274cc1b1b5 | 57c233acf9386e610d99ed20ef139c5f97504ba3 | /src/linear_algebra/matrix/is_diag.lean | 9cdc5645eede16aecca3f0a4a67be730c807799b | [
"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,232 | 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
import linear_algebra.matrix.orthogonal
import data.matrix.kronecker
/-!
# Diagonal matrices
This file contains the definition ... |
e5ea9964eb00f5ad3c48818c8de139dcea242e36 | 43390109ab88557e6090f3245c47479c123ee500 | /src/chris_hughes_various/zmod.lean | e39bfa2e0edc658a7ad030ac44ae58e8c8ab6ad6 | [
"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 | 8,522 | lean | /-
Copyright (c) 2018 Chris Hughes. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Author: Chris Hughes
-/
import data.int.modeq data.fintype data.nat.prime data.nat.gcd
lemma int.coe_nat_ne_zero_iff_pos {n : β} : (n : β€) β 0 β 0 < n :=
β¨Ξ» h, nat.pos_of_ne_zero $ int.coe_nat_n... |
4002a64c5e2e137923c521cf6e28d726fa90c821 | 94e33a31faa76775069b071adea97e86e218a8ee | /src/measure_theory/covering/vitali.lean | a618a36cee83bce2a02e2345a80887751834e6f9 | [
"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 | 29,568 | lean | /-
Copyright (c) 2021 SΓ©bastien GouΓ«zel. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: SΓ©bastien GouΓ«zel
-/
import topology.metric_space.basic
import measure_theory.constructions.borel_space
import measure_theory.covering.vitali_family
/-!
# Vitali covering theorems
... |
261cf12017ec5f574114589510ec607625e0b162 | 5df84495ec6c281df6d26411cc20aac5c941e745 | /src/formal_ml/fin_group.lean | 17647fa12782b5c4884f291e0f26d497bc005897 | [
"Apache-2.0"
] | permissive | eric-wieser/formal-ml | e278df5a8df78aa3947bc8376650419e1b2b0a14 | 630011d19fdd9539c8d6493a69fe70af5d193590 | refs/heads/master | 1,681,491,589,256 | 1,612,642,743,000 | 1,612,642,743,000 | 360,114,136 | 0 | 0 | Apache-2.0 | 1,618,998,189,000 | 1,618,998,188,000 | null | UTF-8 | Lean | false | false | 3,419 | lean | /-
Copyright 2020 Google LLC
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
di... |
8b0240fedbf894f1d3e612da2abef093b36f3e5c | 9be442d9ec2fcf442516ed6e9e1660aa9071b7bd | /stage0/src/Init/Data/String/Basic.lean | a9f850bce56a3efaec80aa71a22d76e42760396e | [
"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 | 19,227 | lean | /-
Copyright (c) 2016 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Author: Leonardo de Moura
-/
prelude
import Init.Data.List.Basic
import Init.Data.Char.Basic
import Init.Data.Option.Basic
universe u
def List.asString (s : List Char) : String :=
β¨sβ©... |
322ad952307e51b342c94461931f5b8f675deccf | 947b78d97130d56365ae2ec264df196ce769371a | /tests/lean/holeErrors.lean | 9f56ae5d6e5ab1a7045e4e0a246be598acf7231b | [
"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 | 162 | lean | new_frontend
def f1 := id
def f2 : _ := id
def f3 :=
let x := id;
x
def f4 (x) := x
def f5 (x : _) := x
def f6 :=
fun x => x
def f7 :=
let rec x := id;
10
|
06b446014d9286590a206b85476937f6fb820904 | fa02ed5a3c9c0adee3c26887a16855e7841c668b | /src/data/nat/log.lean | c5259f0cdb17edf6587516aded1038a6119dc2cb | [
"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,459 | lean | /-
Copyright (c) 2020 Simon Hudon. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Simon Hudon
-/
import data.nat.pow
/-!
# Natural number logarithm
This file defines `log b n`, the logarithm of `n` with base `b`, to be the largest `k` such that
`b ^ k β€ n`.
-/
names... |
28ebd80d59c39d0884de672926c1cf18b4f4ceaf | b210f3162055e6c91af0e5938b8e29ad2b66957d | /notes02.20.20.lean | 7e433def7e1a5e3872946696c012347b607f7a2b | [] | no_license | colemanjenkins/SharedFiles | db8a5cea23e51b7781ce779af546045c4230c17d | 6ac3cc21a2912f3c8e62a23a882384b0b2a5d41b | refs/heads/master | 1,608,650,217,053 | 1,598,992,893,000 | 1,598,992,893,000 | 236,838,099 | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 667 | lean | namespace hidden
--Ξ± is an argument to the function of what type the list is
inductive list_poly (Ξ±: Type)
| nil {}: list_poly
| cons (h : Ξ±)(t : list_poly) : list_poly
def l1 := list_poly.cons 5 list_poly.nil
def fib : β β β
| 0 := 0
| 1 := 1
| (n'' + 2) := (fib n'') + fib (n'' + 1)
#eval fib 33
def equals : β ... |
42910bebfa8f827192ef19f18521ed8c82acd4a4 | 8cae430f0a71442d02dbb1cbb14073b31048e4b0 | /src/topology/metric_space/cantor_scheme.lean | eea5317cc3187bcdf177486b8e798207d455451e | [
"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 | 6,751 | lean | /-
Copyright (c) 2023 Felix Weilacher. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Felix Weilacher
-/
import topology.metric_space.pi_nat
/-!
# (Topological) Schemes and their induced maps
> THIS FILE IS SYNCHRONIZED WITH MATHLIB4.
> Any changes to this file requi... |
d5614c7181169e4227ab2f89c6630079a842f4d6 | 9dc8cecdf3c4634764a18254e94d43da07142918 | /src/group_theory/order_of_element.lean | 38672cc20d2044bd8e59f77a86252b691e4ffa37 | [
"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 | 34,087 | 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, Julian Kuelshammer
-/
import algebra.hom.iterate
import data.nat.modeq
import data.set.pointwise
import dynamics.periodic_pts
import group_theory.index
/-!
# Order of ... |
cdd53cf4342c2333e6cd923997a16c27e83be590 | 4727251e0cd73359b15b664c3170e5d754078599 | /src/analysis/inner_product_space/orientation.lean | a9c97374111ffccddcde8be1ead3c5ded684c802 | [
"Apache-2.0"
] | permissive | Vierkantor/mathlib | 0ea59ac32a3a43c93c44d70f441c4ee810ccceca | 83bc3b9ce9b13910b57bda6b56222495ebd31c2f | refs/heads/master | 1,658,323,012,449 | 1,652,256,003,000 | 1,652,256,003,000 | 209,296,341 | 0 | 1 | Apache-2.0 | 1,568,807,655,000 | 1,568,807,655,000 | null | UTF-8 | Lean | false | false | 2,318 | lean | /-
Copyright (c) 2022 Joseph Myers. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Joseph Myers
-/
import analysis.inner_product_space.projection
import linear_algebra.orientation
/-!
# Orientations of real inner product spaces.
This file provides definitions and pro... |
d955518f95dfd6be07f8d2d1fdc5be15ace29ec1 | a4673261e60b025e2c8c825dfa4ab9108246c32e | /src/Lean/Elab/Exception.lean | c7def7780337f2ce46d8518e099963e1fdd58d21 | [
"Apache-2.0"
] | permissive | jcommelin/lean4 | c02dec0cc32c4bccab009285475f265f17d73228 | 2909313475588cc20ac0436e55548a4502050d0a | refs/heads/master | 1,674,129,550,893 | 1,606,415,348,000 | 1,606,415,348,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 2,126 | 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.InternalExceptionId
import Lean.Meta.Basic
namespace Lean.Elab
builtin_initialize postponeExceptionId : InternalExceptionId β registerInternal... |
82a98ec6f48405b4e52d1252965cd8867150d78c | 64874bd1010548c7f5a6e3e8902efa63baaff785 | /tests/lean/run/sigma_no_confusion.lean | f41b5ca1d87cb632b2ff5bba2d9b205dd0a99197 | [
"Apache-2.0"
] | permissive | tjiaqi/lean | 4634d729795c164664d10d093f3545287c76628f | d0ce4cf62f4246b0600c07e074d86e51f2195e30 | refs/heads/master | 1,622,323,796,480 | 1,422,643,069,000 | 1,422,643,069,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 1,222 | lean | import data.sigma
namespace sigma
namespace manual
definition no_confusion_type {A : Type} {B : A β Type} (P : Type) (vβ vβ : sigma B) : Type :=
rec_on vβ
(Ξ» (aβ : A) (bβ : B aβ), rec_on vβ
(Ξ» (aβ : A) (bβ : B aβ),
(Ξ (eqβ : aβ = aβ), eq.rec_on eqβ bβ = bβ β P) β P))
definition no_confusion... |
e984944dc9ddca2a749284c3e4d94dfb90b23930 | 8cae430f0a71442d02dbb1cbb14073b31048e4b0 | /src/algebra/algebra/operations.lean | 492885cb7f30917b1299ceaa5d7a9afb604c3dc2 | [
"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 | 25,175 | 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 algebra.algebra.bilinear
import algebra.algebra.equiv
import algebra.module.submodule.pointwise
import algebra.module.submodule.bilinear
import algebra.module.opposites
... |
131f84ad80f5b3da4e400c4866067fd99fe77a50 | 74addaa0e41490cbaf2abd313a764c96df57b05d | /Mathlib/algebra/big_operators/order_auto.lean | 7a2415bd2307760c39d806bc48d19a1ea5471653 | [] | 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 | 13,952 | 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
-/
import Mathlib.PrePort
import Mathlib.Lean3Lib.init.default
import Mathlib.algebra.big_operators.basic
import Mathlib.PostPort
universes u v w
namespace Mathlib
/... |
0acee656a7f82e83898fa5d17173410101bad8d1 | 57c233acf9386e610d99ed20ef139c5f97504ba3 | /src/ring_theory/witt_vector/basic.lean | acc7721bce7e017f2f25378903c681bde44d1c6f | [
"Apache-2.0"
] | permissive | robertylewis/mathlib | 3d16e3e6daf5ddde182473e03a1b601d2810952c | 1d13f5b932f5e40a8308e3840f96fc882fae01f0 | refs/heads/master | 1,651,379,945,369 | 1,644,276,960,000 | 1,644,276,960,000 | 98,875,504 | 0 | 0 | Apache-2.0 | 1,644,253,514,000 | 1,501,495,700,000 | Lean | UTF-8 | Lean | false | false | 9,526 | lean | /-
Copyright (c) 2020 Johan Commelin. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Johan Commelin, Robert Y. Lewis
-/
import data.mv_polynomial.counit
import data.mv_polynomial.invertible
import ring_theory.witt_vector.defs
/-!
# Witt vectors
This file verifies th... |
a7d8383044de56a0401ada027663bd35f308277b | 6432ea7a083ff6ba21ea17af9ee47b9c371760f7 | /src/Lean/Elab/Tactic/Delta.lean | 7171b785a4217395fb6f2dfb8118e05e24b6167b | [
"Apache-2.0",
"LLVM-exception",
"NCSA",
"LGPL-3.0-only",
"LicenseRef-scancode-inner-net-2.0",
"BSD-3-Clause",
"LGPL-2.0-or-later",
"Spencer-94",
"LGPL-2.1-or-later",
"HPND",
"LicenseRef-scancode-pcre",
"ISC",
"LGPL-2.1-only",
"LicenseRef-scancode-other-permissive",
"SunPro",
"CMU-Mach"... | permissive | leanprover/lean4 | 4bdf9790294964627eb9be79f5e8f6157780b4cc | f1f9dc0f2f531af3312398999d8b8303fa5f096b | refs/heads/master | 1,693,360,665,786 | 1,693,350,868,000 | 1,693,350,868,000 | 129,571,436 | 2,827 | 311 | Apache-2.0 | 1,694,716,156,000 | 1,523,760,560,000 | Lean | UTF-8 | Lean | false | false | 1,437 | 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.Meta.Tactic.Delta
import Lean.Elab.Tactic.Basic
import Lean.Elab.Tactic.Location
namespace Lean.Elab.Tactic
open Meta
def deltaLocalDecl (decl... |
46e02437e7526859054d78123aa51853422cf02a | 9be442d9ec2fcf442516ed6e9e1660aa9071b7bd | /stage0/src/Lean/PrettyPrinter/Delaborator/Builtins.lean | 08096fa0fef9a1259f68af55b36a4c1d99963c30 | [
"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 | 33,393 | lean | /-
Copyright (c) 2020 Sebastian Ullrich. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Sebastian Ullrich
-/
import Lean.PrettyPrinter.Delaborator.Basic
import Lean.PrettyPrinter.Delaborator.SubExpr
import Lean.PrettyPrinter.Delaborator.TopDownAnalyze
import Lean.Pars... |
0f16f1da6d39cdc20f1dab4cfd8db05757d762c1 | d9d511f37a523cd7659d6f573f990e2a0af93c6f | /src/linear_algebra/matrix/basis.lean | 04691d56bd65667a7c648d6550f884ef26cf50e7 | [
"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 | 6,643 | 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, Patrick Massot, Casper Putz, Anne Baanen
-/
import linear_algebra.matrix.reindex
import linear_algebra.matrix.to_lin
/-!
# Bases and matrices
This file defines the ma... |
574087569611a8d412c2bc82966150e4ce1ad330 | b7f22e51856f4989b970961f794f1c435f9b8f78 | /tests/lean/t5.lean | f53b330265a36cb0a3a52054952288334d7888fc | [
"Apache-2.0"
] | permissive | soonhokong/lean | cb8aa01055ffe2af0fb99a16b4cda8463b882cd1 | 38607e3eb57f57f77c0ac114ad169e9e4262e24f | refs/heads/master | 1,611,187,284,081 | 1,450,766,737,000 | 1,476,122,547,000 | 11,513,992 | 2 | 0 | null | 1,401,763,102,000 | 1,374,182,235,000 | C++ | UTF-8 | Lean | false | false | 245 | lean | constant N : Type.{1}
constant f : N β N
constant a : N
definition g (a : N) : N := f a
check g
namespace foo
definition h : N := f a
check h
private definition q : N := f a
check q
end foo
check foo.h
check q -- Error q is now hidden
|
dba267ee76691bb8d1eec249eb2f0d8a84eaa1ff | 94e33a31faa76775069b071adea97e86e218a8ee | /src/group_theory/group_action/quotient.lean | b0e68712cc1c3f2df44473f82f50fb56e10c4c29 | [
"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 | 13,943 | lean | /-
Copyright (c) 2018 Chris Hughes. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Chris Hughes, Thomas Browning
-/
import group_theory.group_action.basic
import group_theory.quotient_group
/-!
# Properties of group actions involving quotient groups
This file proves ... |
e80dcaed7ca2a8bd363a2f0f6a129c40c65e3554 | 6432ea7a083ff6ba21ea17af9ee47b9c371760f7 | /src/Lean/Meta.lean | 0b70d2aca72ed07f68c5ee092673bd526a406e0c | [
"Apache-2.0",
"LLVM-exception",
"NCSA",
"LGPL-3.0-only",
"LicenseRef-scancode-inner-net-2.0",
"BSD-3-Clause",
"LGPL-2.0-or-later",
"Spencer-94",
"LGPL-2.1-or-later",
"HPND",
"LicenseRef-scancode-pcre",
"ISC",
"LGPL-2.1-only",
"LicenseRef-scancode-other-permissive",
"SunPro",
"CMU-Mach"... | permissive | leanprover/lean4 | 4bdf9790294964627eb9be79f5e8f6157780b4cc | f1f9dc0f2f531af3312398999d8b8303fa5f096b | refs/heads/master | 1,693,360,665,786 | 1,693,350,868,000 | 1,693,350,868,000 | 129,571,436 | 2,827 | 311 | Apache-2.0 | 1,694,716,156,000 | 1,523,760,560,000 | Lean | UTF-8 | Lean | false | false | 1,260 | 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
import Lean.Meta.LevelDefEq
import Lean.Meta.WHNF
import Lean.Meta.InferType
import Lean.Meta.FunInfo
import Lean.Meta.ExprDefEq
impo... |
6a1f16cf78f8322c52ad7c074259890d949456b7 | 0851884047bb567d19e188e8f1ad959c5ae9c5ce | /src/M3P14/sheet1.lean | b89409b9109f877e8e6fc008bfb0573c6b649687 | [
"Apache-2.0"
] | permissive | yz5216/xena-UROP-2018 | 00d3f71a831324966d40d302544ed2cbbec3fd0f | 5e9da9dc64dc51897677f8b73ab9f94061a8d977 | refs/heads/master | 1,584,922,436,989 | 1,531,487,250,000 | 1,531,487,250,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 11,318 | lean | import data.nat.gcd
import data.nat.modeq
import data.nat.prime
import tactic.norm_num
import data.nat.gcd
open classical
namespace nat
-- TODO : change β to β€, but before that need to extend gcd to integers.
-- Show that for a, b, d integers, we have (da, db) = d(a,b).
theorem q1a (a b d : β) : gcd (d*a) (d*b) = d... |
c5e4aa35eaf391773561fa25f78298d51e07a76e | 74addaa0e41490cbaf2abd313a764c96df57b05d | /Mathlib/category_theory/category/Rel_auto.lean | 74424618f0a58d41fa3ed00747f7d0ddb7dbfdc1 | [] | 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 | 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 Mathlib.PrePort
import Mathlib.Lean3Lib.init.default
import Mathlib.category_theory.category.default
import Mathlib.PostPort
universes u u_1
namespace Mathl... |
947f00705bb464c053c44ee3e0d326ca098b5e59 | 63abd62053d479eae5abf4951554e1064a4c45b4 | /src/analysis/convex/specific_functions.lean | 4b313f5542c3ecf7bf1ae77cef69153595d92741 | [
"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 | 5,097 | lean | /-
Copyright (c) 2020 Yury Kudryashov. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Yury Kudryashov, SΓ©bastien GouΓ«zel
-/
import analysis.calculus.mean_value
import data.nat.parity
import analysis.special_functions.pow
/-!
# Collection of convex functions
In this f... |
b32a739da3829a33aed809584944543af35f9a2d | df561f413cfe0a88b1056655515399c546ff32a5 | /6-advanced-addition-world/l13.lean | d3435f1bf350e41bd6e16282cdffa7eb496c8f80 | [] | no_license | nicholaspun/natural-number-game-solutions | 31d5158415c6f582694680044c5c6469032c2a06 | 1e2aed86d2e76a3f4a275c6d99e795ad30cf6df0 | refs/heads/main | 1,675,123,625,012 | 1,607,633,548,000 | 1,607,633,548,000 | 318,933,860 | 3 | 1 | null | null | null | null | UTF-8 | Lean | false | false | 317 | lean | lemma ne_succ_self (n : mynat) : n β succ n :=
begin
cases n with k,
exact zero_ne_succ 0,
intro x,
have h := succ_eq_succ_iff k (succ k),
rw h at x,
symmetry at x,
rw succ_eq_add_one at x,
have h2 := eq_zero_of_add_right_eq_self x,
rw one_eq_succ_zero at h2,
symmetry at h2,
apply zero_ne_succ 0,
exact h2,
end |
b891a0412577b1a7748cf01cd661b1d5eac2d56d | 9dd3f3912f7321eb58ee9aa8f21778ad6221f87c | /library/data/stream.lean | 59bfae1e49f4b4ca98a0edd21673a2f7333f5cb4 | [
"Apache-2.0"
] | permissive | bre7k30/lean | de893411bcfa7b3c5572e61b9e1c52951b310aa4 | 5a924699d076dab1bd5af23a8f910b433e598d7a | refs/heads/master | 1,610,900,145,817 | 1,488,006,845,000 | 1,488,006,845,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 21,348 | 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
-/
open nat function option
universes u v w
def stream (Ξ± : Type u) := nat β Ξ±
namespace stream
variables {Ξ± : Type u} {Ξ² : Type v} {Ξ΄ : Type w}
def cons (a ... |
d395fa7bac334c39ff1412dc84a8972cf02ca684 | dd0f5513e11c52db157d2fcc8456d9401a6cd9da | /02_Dependent_Type_Theory.org.3.lean | 5a0589f6d4abcffcb6a550a5f6b47deec7f4f90f | [] | 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 | 393 | lean | /- page 13 -/
import standard
import standard
open bool nat prod
-- BEGIN
check nat -- Typeβ
check bool -- Typeβ
check nat β bool -- Typeβ
check nat Γ bool -- Typeβ
check nat β nat -- ...
check nat Γ nat β nat
check nat β nat β nat
check nat β (nat β nat)
check nat β n... |
0a9b78f84e56e05de9dc506c24a78e8123bba4cf | 367134ba5a65885e863bdc4507601606690974c1 | /src/group_theory/solvable.lean | adbb45dd85c660a7ffc4c00f430176ea85b3cfac | [
"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 | 10,191 | lean | /-
Copyright (c) 2021 Jordan Brown, Thomas Browning and Patrick Lutz. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Jordan Brown, Thomas Browning and Patrick Lutz
-/
import group_theory.abelianization
import data.bracket
/-!
# Solvable Groups
In this file we introd... |
51e3ddf380b22966656db7bddbec301e6e486cc4 | 8e6cad62ec62c6c348e5faaa3c3f2079012bdd69 | /src/order/filter/ultrafilter.lean | bcf154a39b370aa62cf102d40ebf02cd0e17072a | [
"Apache-2.0"
] | permissive | benjamindavidson/mathlib | 8cc81c865aa8e7cf4462245f58d35ae9a56b150d | fad44b9f670670d87c8e25ff9cdf63af87ad731e | refs/heads/master | 1,679,545,578,362 | 1,615,343,014,000 | 1,615,343,014,000 | 312,926,983 | 0 | 0 | Apache-2.0 | 1,615,360,301,000 | 1,605,399,418,000 | Lean | UTF-8 | Lean | false | false | 12,348 | lean | /-
Copyright (c) 2017 Johannes HΓΆlzl. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Johannes HΓΆlzl, Jeremy Avigad, Yury Kudryashov
-/
import order.filter.cofinite
/-!
# Ultrafilters
An ultrafilter is a minimal (maximal in the set order) proper filter.
In this file w... |
98bc42f17b79001c7e7c52649230ab2c76f65e68 | 74addaa0e41490cbaf2abd313a764c96df57b05d | /Mathlib/measure_theory/probability_mass_function_auto.lean | b8b99e7515e83986fc1a291c62a05c0dac146920 | [] | 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 | 5,564 | 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
-/
import Mathlib.PrePort
import Mathlib.Lean3Lib.init.default
import Mathlib.topology.instances.ennreal
import Mathlib.PostPort
universes u u_1 u_2 u_3
namespace Math... |
75b1004f622fbf8e9ec916db8ad3160402cd8096 | 9dd3f3912f7321eb58ee9aa8f21778ad6221f87c | /library/smt/prove.lean | 04501e2d1989a585649a5f39bb0437a61cef6c78 | [
"Apache-2.0"
] | permissive | bre7k30/lean | de893411bcfa7b3c5572e61b9e1c52951b310aa4 | 5a924699d076dab1bd5af23a8f910b433e598d7a | refs/heads/master | 1,610,900,145,817 | 1,488,006,845,000 | 1,488,006,845,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 359 | lean | namespace smt
open tactic
private meta def collect_props : list expr β tactic (list expr)
| [] := return []
| (H :: Hs) := do
Eqs β collect_props Hs,
Htype β infer_type H >>= whnf,
return $ if Htype = expr.prop then (H :: Eqs) else Eqs
meta def prove : tactic unit :=
do local_context >>= collect_props ... |
31eb51336298f886bcdc03b9e4b875b5ecf13ace | 05f637fa14ac28031cb1ea92086a0f4eb23ff2b1 | /tests/lean/subst3.lean | a415b51636aa62a3fa541921661a560848d0b0d4 | [
"Apache-2.0"
] | permissive | codyroux/lean0.1 | 1ce92751d664aacff0529e139083304a7bbc8a71 | 0dc6fb974aa85ed6f305a2f4b10a53a44ee5f0ef | refs/heads/master | 1,610,830,535,062 | 1,402,150,480,000 | 1,402,150,480,000 | 19,588,851 | 2 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 243 | lean | import macros
theorem T (A : Type) (p : A -> Bool) (f : A -> A -> A) : forall x y z, p (f x x) β x = y β x = z β p (f y z) :=
Ξ» x y z, Ξ» (H1 : p (f x x)) (H2 : x = y) (H3 : x = z),
subst (subst H1 H2) H3
print environment 1. |
4a9475eb6e8fcb17e0a2d7b635954badfe037a6c | 2eab05920d6eeb06665e1a6df77b3157354316ad | /src/data/complex/is_R_or_C.lean | 462281fa820347c0ff7e60e00495cc66cede5c8d | [
"Apache-2.0"
] | permissive | ayush1801/mathlib | 78949b9f789f488148142221606bf15c02b960d2 | ce164e28f262acbb3de6281b3b03660a9f744e3c | refs/heads/master | 1,692,886,907,941 | 1,635,270,866,000 | 1,635,270,866,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 31,453 | lean | /-
Copyright (c) 2020 FrΓ©dΓ©ric Dupuis. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: FrΓ©dΓ©ric Dupuis
-/
import data.real.sqrt
import field_theory.tower
import analysis.normed_space.finite_dimension
/-!
# `is_R_or_C`: a typeclass for β or β
This file defines the type... |
99503895cb94515c924f59330a9cb21e02290e85 | 8d65764a9e5f0923a67fc435eb1a5a1d02fd80e3 | /archive/imo/imo2001_q6.lean | 32619246443a22a72e2c20c464731ebad558f2d1 | [
"Apache-2.0"
] | permissive | troyjlee/mathlib | e18d4b8026e32062ab9e89bc3b003a5d1cfec3f5 | 45e7eb8447555247246e3fe91c87066506c14875 | refs/heads/master | 1,689,248,035,046 | 1,629,470,528,000 | 1,629,470,528,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 2,076 | lean | /-
Copyright (c) 2021 Sara DΓaz Real. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Sara DΓaz Real
-/
import data.int.basic
import algebra.associated
import tactic.linarith
import tactic.ring
/-!
# IMO 2001 Q6
Let $a$, $b$, $c$, $d$ be integers with $a > b > c > d > ... |
1b5e4c64c26a2cd80e95d14cd3ecb2f1c4f591b0 | e0f9ba56b7fedc16ef8697f6caeef5898b435143 | /src/data/vector2.lean | 94f548027ebae62bbb07da01efd10e24e92f3c4d | [
"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 | 10,261 | lean | /-
Copyright (c) 2018 Mario Carneiro. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Mario Carneiro
Additional theorems about the `vector` type.
-/
import tactic.tauto
import data.vector
import data.list.nodup
import data.list.of_fn
universes u
variables {n : β}
nam... |
22af2227b1bb289ce8197f553a0d4f2ecc9ccc29 | 6fca17f8d5025f89be1b2d9d15c9e0c4b4900cbf | /src/game/world10/level2.lean | cb29b0895717b8a1b3e6fbe990f53dc5ff30d589 | [
"Apache-2.0"
] | permissive | arolihas/natural_number_game | 4f0c93feefec93b8824b2b96adff8b702b8b43ce | 8e4f7b4b42888a3b77429f90cce16292bd288138 | refs/heads/master | 1,621,872,426,808 | 1,586,270,467,000 | 1,586,270,467,000 | 253,648,466 | 0 | 0 | null | 1,586,219,694,000 | 1,586,219,694,000 | null | UTF-8 | Lean | false | false | 2,003 | lean | import game.world10.level1 -- hide
namespace mynat -- hide
/-
# Inequality world.
Here's a nice easy one.
## Level 2: le_refl
-/
/- Lemma :
The $\le$ relation is reflexive. In other words, if $x$ is a natural number,
then $x\le x$.
-/
lemma le_refl (x : mynat) : x β€ x :=
begin [nat_num_game]
end
/-
## Upgrad... |
80ee9f5fa84c886727560e76a80a9280ca7d99fd | 1a61aba1b67cddccce19532a9596efe44be4285f | /hott/types/equiv.hlean | bf06b063bdcbb24530224e64eed4e5f5b812a382 | [
"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 | 7,164 | hlean | /-
Copyright (c) 2014 Floris van Doorn. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Author: Floris van Doorn
Ported from Coq HoTT
Theorems about the types equiv and is_equiv
-/
import .fiber .arrow arity ..hprop_trunc
open eq is_trunc sigma sigma.ops pi fiber function equ... |
df56b247cce892e1b3f5b89c5b5988ac125fab8d | dd0f5513e11c52db157d2fcc8456d9401a6cd9da | /12_Axioms.org.8.lean | dc0a2f7a8cfd6e1a2422ddcce0f3edf315ff47bd | [] | 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 | 582 | lean | import standard
namespace hide
-- BEGIN
open setoid
constant quot.{l} : Ξ {A : Type.{l}}, setoid A β Type.{l}
namespace quot
constant mk : Ξ {A : Type} [s : setoid A], A β quot s
notation `β¦`:max a `β§`:0 := mk a
constant sound : Ξ {A : Type} [s : setoid A] {a b : A}, a β b β β¦aβ§ = β¦bβ§
constant lift ... |
92ca11c420f8dd96c16ba12c78fbf5d7b1dd5bdb | 432d948a4d3d242fdfb44b81c9e1b1baacd58617 | /src/topology/continuous_function/bounded.lean | 04dda9060f6963b1c8bd3f42b4dc99bbefb170c7 | [
"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 | 34,626 | lean | /-
Copyright (c) 2018 SΓ©bastien GouΓ«zel. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: SΓ©bastien GouΓ«zel, Mario Carneiro, Yury Kudryashov, Heather Macbeth
-/
import analysis.normed_space.basic
import topology.continuous_function.algebra
/-!
# Bounded continuous funct... |
a77da0fe7940320cc712f04f5135f4710442f02d | 74addaa0e41490cbaf2abd313a764c96df57b05d | /Mathlib/analysis/calculus/lhopital_auto.lean | cee30f14cf7f418672a81791d27eda3cc1121d9c | [] | no_license | AurelienSaue/Mathlib4_auto | f538cfd0980f65a6361eadea39e6fc639e9dae14 | 590df64109b08190abe22358fabc3eae000943f2 | refs/heads/master | 1,683,906,849,776 | 1,622,564,669,000 | 1,622,564,669,000 | 371,723,747 | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 17,353 | lean | /-
Copyright (c) 2020 Anatole Dedecker. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Anatole Dedecker
-/
import Mathlib.PrePort
import Mathlib.Lean3Lib.init.default
import Mathlib.analysis.calculus.mean_value
import Mathlib.PostPort
namespace Mathlib
/-!
# L'HΓ΄pita... |
8c18a93253c527369164f2929903595ab71032d4 | d5b53bc87e7f4dda87570c8ef6ee4b4de685f315 | /src/G_module/hom.lean | c8c3be09cc2e5ad6a019276e0942e4a54c06e1e1 | [] | no_license | Shenyang1995/M4R | 3bec366fba7262ed29d7f64b4ba7cc978494c022 | a6a3399c4d1935b39a22f64c30f293ef2a32fdeb | refs/heads/master | 1,597,008,096,640 | 1,591,722,931,000 | 1,591,722,931,000 | 214,177,424 | 5 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 1,472 | lean | import G_module.basic
variables (G : Type*) [group G]
variables (M : Type*) [add_comm_group M] [G_module G M]
variables (N : Type*) [add_comm_group N] [G_module G N]
structure G_module_hom :=
(f : M β+ N)
(smul : β g : G, β m : M, f (g β’ m) = g β’ (f m))
instance : has_coe (G_module_hom G M N) (add_group_hom M N) := ... |
310f3c026460e263101a7e17daec5ab4df40fd3e | 9dc8cecdf3c4634764a18254e94d43da07142918 | /src/topology/algebra/continuous_monoid_hom.lean | 4150f256e0c8b1928e376a47af03a456af47b048 | [
"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 | 11,468 | lean | /-
Copyright (c) 2022 Thomas Browning. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Thomas Browning
-/
import analysis.complex.circle
import topology.continuous_function.algebra
/-!
# Continuous Monoid Homs
This file defines the space of continuous homomorphisms b... |
fbd4bf27e09585fb327e9e84e393e71cb0a45021 | 41ebf3cb010344adfa84907b3304db00e02db0a6 | /uexp/src/uexp/rules/removeSemiJoinWithFilter.lean | 457d601fc01f64907d4d39df2a7c39370db7a4f5 | [
"BSD-2-Clause"
] | permissive | ReinierKoops/Cosette | e061b2ba58b26f4eddf4cd052dcf7abd16dfe8fb | eb8dadd06ee05fe7b6b99de431dd7c4faef5cb29 | refs/heads/master | 1,686,483,953,198 | 1,624,293,498,000 | 1,624,293,498,000 | 378,997,885 | 0 | 0 | BSD-2-Clause | 1,624,293,485,000 | 1,624,293,484,000 | null | UTF-8 | Lean | false | false | 2,139 | lean | import ..sql
import ..tactics
import ..u_semiring
import ..extra_constants
import ..meta.ucongr
import ..meta.TDP
set_option profiler true
open Expr
open Proj
open Pred
open SQL
open tree
notation `int` := datatypes.int
constant str_foo_: const int.
theorem rule:
forall ( Ξ scm_t scm_account scm_bonus scm_de... |
9ef57f175bcb825fedef7e710124c451c5747817 | 55c7fc2bf55d496ace18cd6f3376e12bb14c8cc5 | /src/category_theory/punit.lean | 89a152badbae30c0bb289987e0831c9e6539cc1f | [
"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 | 1,729 | lean | /-
Copyright (c) 2018 Scott Morrison. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Scott Morrison, Bhavik Mehta
-/
import category_theory.const
import category_theory.discrete_category
universes v u -- declare the `v`'s first; see `category_theory.category` for an e... |
2d5755ca3b973b6a130d011358543651b2e03d9c | cf39355caa609c0f33405126beee2739aa3cb77e | /tests/lean/run/infix_paren.lean | 7af261f9c5e124b3b5104e539f7d31560ee0c396 | [
"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 | 526 | lean | open list
#eval filter (< 10) [20, 5, 10, 3, 2, 14, 1]
#eval qsort (Ξ» x y, x < y) [20, 5, 10, 3, 2, 14, 1]
#eval foldl (+) 0 [1, 2, 3]
example : foldl (+) 0 [3, 4, 1] = 8 :=
rfl
example : foldl (*) 2 [3, 4, 1] = 24 :=
rfl
#check (+) 1 2
example : (+) 1 2 = 3 :=
rfl
example : (*) 3 4 = 12 :=
rfl
example : (++) [1... |
92b7cc27f741bc9721e7c54b274f744f0b4d1473 | 4d2583807a5ac6caaffd3d7a5f646d61ca85d532 | /src/data/nat/cast.lean | 128730a2fd86e7063f9579098bd9a8fc280a90b0 | [
"Apache-2.0"
] | permissive | AntoineChambert-Loir/mathlib | 64aabb896129885f12296a799818061bc90da1ff | 07be904260ab6e36a5769680b6012f03a4727134 | refs/heads/master | 1,693,187,631,771 | 1,636,719,886,000 | 1,636,719,886,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 12,594 | lean | /-
Copyright (c) 2014 Mario Carneiro. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Mario Carneiro
-/
import algebra.order.field
import data.nat.basic
/-!
# Cast of naturals
This file defines the *canonical* homomorphism from the natural numbers into a type `Ξ±` with... |
5beead1b9f5a9ab5c9302eeac51ea047e504c1c2 | 8cae430f0a71442d02dbb1cbb14073b31048e4b0 | /src/analysis/special_functions/pow/continuity.lean | b59cb77b44b816234d2f8843cec7bd9a4e13670a | [
"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 | 20,715 | 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, SΓ©bastien GouΓ«zel,
RΓ©my Degenne, David Loeffler
-/
import analysis.special_functions.pow.asymptotics
/-!
# Continuity of ... |
c720767658d7fb7d0990d45bd9d11e7133679185 | 94e33a31faa76775069b071adea97e86e218a8ee | /src/category_theory/limits/colimit_limit.lean | 960039ce8197066ed40d4ec019100be035e0c723 | [
"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 | 4,436 | lean | /-
Copyright (c) 2020 Scott Morrison. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Scott Morrison
-/
import category_theory.limits.types
import category_theory.functor.currying
import category_theory.limits.functor_category
/-!
# The morphism comparing a colimit of ... |
bcbe3f33e8a2174a2e82c65345ec36bbf0b91278 | d406927ab5617694ec9ea7001f101b7c9e3d9702 | /counterexamples/seminorm_lattice_not_distrib.lean | 7963e3e7a07ef21b1829266b849e4896331bcde1 | [
"Apache-2.0"
] | permissive | alreadydone/mathlib | dc0be621c6c8208c581f5170a8216c5ba6721927 | c982179ec21091d3e102d8a5d9f5fe06c8fafb73 | refs/heads/master | 1,685,523,275,196 | 1,670,184,141,000 | 1,670,184,141,000 | 287,574,545 | 0 | 0 | Apache-2.0 | 1,670,290,714,000 | 1,597,421,623,000 | Lean | UTF-8 | Lean | false | false | 3,001 | lean | /-
Copyright (c) 2022 Pierre-Alexandre Bazin. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Pierre-Alexandre Bazin
-/
import analysis.seminorm
/-!
# The lattice of seminorms is not distributive
We provide an example of three seminorms over the β-vector space βΓβ whic... |
bd2a02995accd695d4e448e595e8e87bf94ad448 | 55c7fc2bf55d496ace18cd6f3376e12bb14c8cc5 | /src/group_theory/order_of_element.lean | 7a5dabf7ae8e1e9c2f1049571e136c222bea2a80 | [
"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 | 24,330 | 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
-/
import algebra.big_operators.order
import group_theory.coset
import data.nat.totient
import data.set.finite
open function
open_locale big_operators
variables {Ξ± : T... |
0af4aafda1bfdefa6f5f014bbd404a17f487a6c5 | abd85493667895c57a7507870867b28124b3998f | /src/data/equiv/mul_add.lean | 9f0510a013c9266b33240c77a64d27888da57aea | [
"Apache-2.0"
] | permissive | pechersky/mathlib | d56eef16bddb0bfc8bc552b05b7270aff5944393 | f1df14c2214ee114c9738e733efd5de174deb95d | refs/heads/master | 1,666,714,392,571 | 1,591,747,567,000 | 1,591,747,567,000 | 270,557,274 | 0 | 0 | Apache-2.0 | 1,591,597,975,000 | 1,591,597,974,000 | null | UTF-8 | Lean | false | false | 12,082 | 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.basic
import deprecated.group
/-!
# Multiplicative and additive equivs
In this file we define two extensions of `e... |
a2b8290c2d47dbc360fe132c4686d171dc71fe48 | 534c92d7322a8676cfd1583e26f5946134561b54 | /src/Exercises/01_Propositions/Q0107/Q0007.lean | 0b7284bc4aef2f1c35690667a69af66eb05e1c21 | [
"Apache-2.0"
] | permissive | kbuzzard/mathematics-in-lean | 53f387174f04d6077f434e27c407aee9425837f7 | 3fad7bb7e888dabef94921101af8671b78a4304a | refs/heads/master | 1,586,812,457,439 | 1,546,893,744,000 | 1,546,893,744,000 | 163,450,734 | 8 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 67 | lean | theorem false_implies_false : false β false :=
begin
sorry
end
|
48a508fd503226f25fdea84a78be1fa5067f468c | a4673261e60b025e2c8c825dfa4ab9108246c32e | /stage0/src/Lean/Elab/Match.lean | b563c849afa20a0bbf456714a2c36d659a096e5b | [
"Apache-2.0"
] | permissive | jcommelin/lean4 | c02dec0cc32c4bccab009285475f265f17d73228 | 2909313475588cc20ac0436e55548a4502050d0a | refs/heads/master | 1,674,129,550,893 | 1,606,415,348,000 | 1,606,415,348,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 38,740 | 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.Match.MatchPatternAttr
import Lean.Meta.Match.Match
import Lean.Elab.SyntheticMVars
import Lean.Elab.App
namespace Lean.Elab.Term
open Met... |
42ceba4640b0ad926ab1643e90b632fed3bff438 | 77c5b91fae1b966ddd1db969ba37b6f0e4901e88 | /src/group_theory/submonoid/operations.lean | 85397f2a1e6f9e4a52e3fa9b7a287a005e1f4862 | [
"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 | 35,503 | 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, Kenny Lau, Johan Commelin, Mario Carneiro, Kevin Buzzard,
Amelia Livingston, Yury Kudryashov
-/
import group_theory.submonoid.basic
import data.equiv.mul_add
import al... |
187970e9eea2e4d4067dcf70337b6f58c8275177 | ec5e5a9dbe7f60fa5784d15211d8bf24ada0825c | /src/SimMonad.lean | 3d28b75c12b66514bebe2ed3a3b6d2425902d2bc | [] | no_license | pnwamk/lean-llvm | fcd9a828e52e80eb197f7d9032b3846f2e09ef74 | ebc3bca9a57a6aef29529d46394f560398fb5c9c | refs/heads/master | 1,668,418,078,706 | 1,593,548,643,000 | 1,593,548,643,000 | 258,617,753 | 0 | 0 | null | 1,587,760,298,000 | 1,587,760,298,000 | null | UTF-8 | Lean | false | false | 6,765 | lean | import Init.Data.Array
import Init.Data.Int
import Init.Data.RBMap
import Init.Data.String
import Galois.Data.Bitvec
import LeanLLVM.AST
import LeanLLVM.PP
import LeanLLVM.TypeContext
import LeanLLVM.Value
namespace LLVM
inductive trace_event : Type
| load (ptr : bitvec 64) (mt:mem_type) (val:Sim.Value)
| store ... |
b921c267992bdc6e7712e8fd0cbaea9c012a184e | 4727251e0cd73359b15b664c3170e5d754078599 | /src/topology/spectral/hom.lean | 60fc940ec9401746e2723f663d3f22e200a8f0d0 | [
"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,758 | 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 topology.continuous_function.basic
/-!
# Spectral maps
This file defines spectral maps. A map is spectral when it's continuous and the preimage of a
compact open... |
07202db816190dda1e0e7e0a983ef07bf522b92c | 618003631150032a5676f229d13a079ac875ff77 | /src/combinatorics/composition.lean | d2d0bfde7b123a185881e5c74a691781d9337c01 | [
"Apache-2.0"
] | permissive | awainverse/mathlib | 939b68c8486df66cfda64d327ad3d9165248c777 | ea76bd8f3ca0a8bf0a166a06a475b10663dec44a | refs/heads/master | 1,659,592,962,036 | 1,590,987,592,000 | 1,590,987,592,000 | 268,436,019 | 1 | 0 | Apache-2.0 | 1,590,990,500,000 | 1,590,990,500,000 | null | UTF-8 | Lean | false | false | 34,333 | 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 data.fintype.card
import tactic.omega
/-!
# Compositions
A composition of an integer `n` is a decomposition `n = iβ + ... + i_{k-1}` of `n` into a sum ... |
0a75202633e2b4cf0cf64ad4a788ab8ecb7415f1 | 8cae430f0a71442d02dbb1cbb14073b31048e4b0 | /src/ring_theory/ore_localization/basic.lean | d307a9e61ee955cb7183445c4fbe9ac11763ab99 | [
"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 | 33,920 | lean | /-
Copyright (c) 2022 Jakob von Raumer. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Jakob von Raumer, Kevin Klinge
-/
import group_theory.monoid_localization
import ring_theory.non_zero_divisors
import ring_theory.ore_localization.ore_set
import tactic.noncomm_ring
... |
0894addc580789b3a4a57f42ae0ac84abf491fb3 | d1a52c3f208fa42c41df8278c3d280f075eb020c | /src/Lean/Meta/MatchUtil.lean | 1f1ff7dea396a348bf5fdb42add387c4be43c16c | [
"Apache-2.0",
"LLVM-exception",
"NCSA",
"LGPL-3.0-only",
"LicenseRef-scancode-inner-net-2.0",
"BSD-3-Clause",
"LGPL-2.0-or-later",
"Spencer-94",
"LGPL-2.1-or-later",
"HPND",
"LicenseRef-scancode-pcre",
"ISC",
"LGPL-2.1-only",
"LicenseRef-scancode-other-permissive",
"SunPro",
"CMU-Mach"... | permissive | cipher1024/lean4 | 6e1f98bb58e7a92b28f5364eb38a14c8d0aae393 | 69114d3b50806264ef35b57394391c3e738a9822 | refs/heads/master | 1,642,227,983,603 | 1,642,011,696,000 | 1,642,011,696,000 | 228,607,691 | 0 | 0 | Apache-2.0 | 1,576,584,269,000 | 1,576,584,268,000 | null | UTF-8 | Lean | false | false | 1,440 | 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.Util.Recognizers
import Lean.Meta.Basic
namespace Lean.Meta
@[inline] def testHelper (e : Expr) (p : Expr β MetaM Bool) : MetaM Bool := do
i... |
22a075bae73b1cef312f2118512ba347c0313baa | b7f22e51856f4989b970961f794f1c435f9b8f78 | /tests/lean/simplifier15.lean | e8c8fbd47eefa6b14f08a149e5525ea538b3348b | [
"Apache-2.0"
] | permissive | soonhokong/lean | cb8aa01055ffe2af0fb99a16b4cda8463b882cd1 | 38607e3eb57f57f77c0ac114ad169e9e4262e24f | refs/heads/master | 1,611,187,284,081 | 1,450,766,737,000 | 1,476,122,547,000 | 11,513,992 | 2 | 0 | null | 1,401,763,102,000 | 1,374,182,235,000 | C++ | UTF-8 | Lean | false | false | 542 | lean | -- normalizing reducible non-subsingleton instances
import algebra.ring
open algebra
universe l
constants (T : Type.{l}) (s : comm_ring T)
constants (x1 x2 x3 x4 : T) (f g : T β T)
attribute s [instance]
set_option pp.all true
#simplify eq null 0 x1
#simplify eq null 0 x1 + x1
#simplify eq null 0 x1 + x1 + x1
#simpl... |
32e43c22d6045311c04b850e88a72b1d11cc5706 | 46125763b4dbf50619e8846a1371029346f4c3db | /src/topology/continuous_on.lean | 6511266b5014851950da28f23f4af02f31a4f721 | [
"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 | 23,920 | lean | /-
Copyright (c) 2019 Reid Barton. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: SΓ©bastien GouΓ«zel
-/
import topology.constructions
/-!
# Neighborhoods and continuity relative to a subset
This file defines relative versions
`nhds_within` of `nhds`
`contin... |
c44a14cac0901306c73517856b404cb5efdc39a6 | d406927ab5617694ec9ea7001f101b7c9e3d9702 | /src/analysis/convex/stone_separation.lean | b60920f402d7f4b07c4b77c4f4c84946bcaba08d | [
"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 | 5,116 | 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.join
/-!
# Stone's separation theorem
This file prove Stone's separation theorem. This tells us that any two disjoint convex sets can be
separate... |
2ad2620bf42fb639513900f19ad17eeaef29a79a | 9be442d9ec2fcf442516ed6e9e1660aa9071b7bd | /tests/lean/run/typeclass_metas_internal_goals3.lean | 1ab0b26cafbeb846e38764512290c78835387e87 | [
"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 | 592 | lean |
class Base (Ξ± : Type) := (u:Unit)
class Depends (Ξ± : Type) [Base Ξ±] := (u:Unit)
class Top := (u:Unit)
instance AllBase {Ξ± : Type} : Base Ξ± := {u:=()}
instance DependsNotConstrainingImplicit {Ξ± : Type} /- [Base Ξ±] -/ {_:Base Ξ±} : Depends Ξ± := {u:=()}
instance BaseAsImplicitβ {Ξ± : Type} {_:Base Ξ±} [Depends Ξ±] : Top :... |
393d07e16046aaa476439203291cbd61e5edfe60 | bb31430994044506fa42fd667e2d556327e18dfe | /src/topology/metric_space/lipschitz.lean | 4f33443074d1ecd78311296747c2e7516d8a6f92 | [
"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 | 29,198 | lean | /-
Copyright (c) 2018 Rohan Mitta. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Rohan Mitta, Kevin Buzzard, Alistair Tucker, Johannes HΓΆlzl, Yury Kudryashov
-/
import logic.function.iterate
import data.set.intervals.proj_Icc
import topology.algebra.order.field
import... |
616050f877a68da4298fee1bd14b0d4a273ebf5c | 947fa6c38e48771ae886239b4edce6db6e18d0fb | /src/topology/algebra/infinite_sum.lean | 5b34e3e3454fcd63e252f479abbee02ed9b64cf1 | [
"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 | 68,328 | 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
-/
import algebra.big_operators.intervals
import algebra.big_operators.nat_antidiagonal
import logic.encodable.lattice
import topology.algebra.mul_action
import topology... |
5d989edb13b0c13f044e4e8a06fc21c17f797d9a | 8cae430f0a71442d02dbb1cbb14073b31048e4b0 | /src/linear_algebra/exterior_algebra/basic.lean | ddde814780643f99443b1cc5588462492e57e39f | [
"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 | 11,499 | lean | /-
Copyright (c) 2020 Adam Topaz. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Zhangir Azerbayev, Adam Topaz, Eric Wieser
-/
import linear_algebra.clifford_algebra.basic
import linear_algebra.alternating
/-!
# Exterior Algebras
> THIS FILE IS SYNCHRONIZED WITH MAT... |
85fcf65b5a043936410f04d2ff3391c3bbcfaf84 | 8cae430f0a71442d02dbb1cbb14073b31048e4b0 | /src/data/set/bool_indicator.lean | 3a7718dc53a3385d7c5979f33e4ec9ef769283c3 | [
"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 | 1,696 | lean | /-
Copyright (c) 2022 Dagur TΓ³mas Γsgeirsson. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Dagur TΓ³mas Γsgeirsson, Leonardo de Moura
-/
import data.set.image
/-!
# Indicator function valued in bool
> THIS FILE IS SYNCHRONIZED WITH MATHLIB4.
> Any changes to this f... |
a1c7244321818cb8e752b463a752e5fb982d83f9 | 94e33a31faa76775069b071adea97e86e218a8ee | /src/data/real/ennreal.lean | 36deb7d0fbd7a1176991061bd43465f8351430dd | [
"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 | 79,601 | lean | /-
Copyright (c) 2017 Johannes HΓΆlzl. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Johannes HΓΆlzl, Yury Kudryashov
-/
import data.real.nnreal
/-!
# Extended non-negative reals
We define `ennreal = ββ₯0β := with_top ββ₯0` to be the type of extended nonnegative real nu... |
a5f785e8e1c98a09bf4ec2d45f580e303b914de6 | 9dd3f3912f7321eb58ee9aa8f21778ad6221f87c | /tests/lean/634.lean | 1bdfce80c17c54d993151dd377be651834789829 | [
"Apache-2.0"
] | permissive | bre7k30/lean | de893411bcfa7b3c5572e61b9e1c52951b310aa4 | 5a924699d076dab1bd5af23a8f910b433e598d7a | refs/heads/master | 1,610,900,145,817 | 1,488,006,845,000 | 1,488,006,845,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 293 | lean | open nat
namespace foo
section
parameter (X : Type)
definition A {n : β} : Type := X
variable {n : β}
set_option pp.implicit true
check @A n
set_option pp.full_names true
check @foo.A n
check @A n
set_option pp.full_names false
check @foo.A n
check @A n
end
end foo
|
8fdb7cf9e4d86a6df32698a67515f7c0fb999689 | 63abd62053d479eae5abf4951554e1064a4c45b4 | /src/data/int/gcd.lean | cb56e3892c3600333949d6541338b5d14da01a02 | [
"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 | 12,039 | lean | /-
Copyright (c) 2018 Guy Leroy. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Sangwoo Jo (aka Jason), Guy Leroy, Johannes HΓΆlzl, Mario Carneiro
-/
import data.nat.prime
/-!
# Extended GCD and divisibility over β€
## Main definitions
* Given `x y : β`, `xgcd x y` com... |
d7448e36e9b23b64b01fdd8459cef2b82fd9cd46 | 69d4931b605e11ca61881fc4f66db50a0a875e39 | /src/geometry/manifold/algebra/monoid.lean | fa09c5e93041802a6d73154986e0601e78507440 | [
"Apache-2.0"
] | permissive | abentkamp/mathlib | d9a75d291ec09f4637b0f30cc3880ffb07549ee5 | 5360e476391508e092b5a1e5210bd0ed22dc0755 | refs/heads/master | 1,682,382,954,948 | 1,622,106,077,000 | 1,622,106,077,000 | 149,285,665 | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 9,614 | 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.times_cont_mdiff
/-!
# Smooth monoid
A smooth monoid is a monoid that is also a smooth manifold, in which multiplication is a smooth map
... |
10444bde5bd0a04b3dc122bc4260e9687445c655 | 55c7fc2bf55d496ace18cd6f3376e12bb14c8cc5 | /src/deprecated/submonoid.lean | 8e22bee60522dcd90bba4fb64a3b92e7cfc6a8c6 | [
"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 | 20,462 | 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, Kenny Lau, Johan Commelin, Mario Carneiro, Kevin Buzzard
-/
import group_theory.submonoid
/-!
# Submonoids
This file defines unbundled multiplicative and additive sub... |
c3a971eb9b3037cc4a29429ff138bd5b01d5fea0 | 6432ea7a083ff6ba21ea17af9ee47b9c371760f7 | /tests/playground/view_expander.lean | bff152690e72dc233e05d057feb563732ee0165f | [
"Apache-2.0",
"LLVM-exception",
"NCSA",
"LGPL-3.0-only",
"LicenseRef-scancode-inner-net-2.0",
"BSD-3-Clause",
"LGPL-2.0-or-later",
"Spencer-94",
"LGPL-2.1-or-later",
"HPND",
"LicenseRef-scancode-pcre",
"ISC",
"LGPL-2.1-only",
"LicenseRef-scancode-other-permissive",
"SunPro",
"CMU-Mach"... | permissive | leanprover/lean4 | 4bdf9790294964627eb9be79f5e8f6157780b4cc | f1f9dc0f2f531af3312398999d8b8303fa5f096b | refs/heads/master | 1,693,360,665,786 | 1,693,350,868,000 | 1,693,350,868,000 | 129,571,436 | 2,827 | 311 | Apache-2.0 | 1,694,716,156,000 | 1,523,760,560,000 | Lean | UTF-8 | Lean | false | false | 1,319 | lean | import init.lean.expander
open Lean
open Lean.Parser
open Lean.Expander
def prof {Ξ± : Type} (msg : String) (p : IO Ξ±) : IO Ξ± :=
let msgβ := "Time for '" ++ msg ++ "':" in
let msgβ := "Memory usage for '" ++ msg ++ "':" in
allocprof msgβ (timeit msgβ p)
@[derive HasView] def leaf.Parser : termParser := node! leaf ["f... |
1d4917eb52be07f2ee51a36f823c892e9fc7535f | 94e33a31faa76775069b071adea97e86e218a8ee | /src/data/list/nodup.lean | 266f073427c39bd57730147659cd5a502ebce4d8 | [
"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 | 14,401 | lean | /-
Copyright (c) 2018 Mario Carneiro. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Mario Carneiro, Kenny Lau
-/
import data.list.lattice
import data.list.pairwise
import data.list.forall2
/-!
# Lists with no duplicates
`list.nodup` is defined in `data/list/defs`. I... |
f06e8f1b4f7bd08466b207f46de2613b28c6b9b0 | d406927ab5617694ec9ea7001f101b7c9e3d9702 | /src/linear_algebra/cross_product.lean | 91eac76bb2ce359fc85ab1829eca9e782230231f | [
"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 | 5,325 | lean | /-
Copyright (c) 2021 Martin Dvorak. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Martin Dvorak, Kyle Miller, Eric Wieser
-/
import data.matrix.notation
import linear_algebra.bilinear_map
import linear_algebra.matrix.determinant
import algebra.lie.basic
/-!
# Cross... |
f36b3e6a30ee3b0ae063bc63fef13fdc71dbe593 | 74addaa0e41490cbaf2abd313a764c96df57b05d | /Mathlib/tactic/push_neg_auto.lean | 1a59f860991dd1aac4e14a566b0a84dcb5585ebf | [] | no_license | AurelienSaue/Mathlib4_auto | f538cfd0980f65a6361eadea39e6fc639e9dae14 | 590df64109b08190abe22358fabc3eae000943f2 | refs/heads/master | 1,683,906,849,776 | 1,622,564,669,000 | 1,622,564,669,000 | 371,723,747 | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 3,191 | lean | /-
Copyright (c) 2019 Patrick Massot All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Author: Patrick Massot, Simon Hudon
A tactic pushing negations into an expression
-/
import Mathlib.PrePort
import Mathlib.Lean3Lib.init.default
import Mathlib.logic.basic
import Mathlib.algebr... |
bbd46047f74754a07c476350bbb68044d3157682 | 8e6cad62ec62c6c348e5faaa3c3f2079012bdd69 | /src/topology/algebra/open_subgroup.lean | ce946e9a952f3fd2da543c477b59dfb71ab9db0a | [
"Apache-2.0"
] | permissive | benjamindavidson/mathlib | 8cc81c865aa8e7cf4462245f58d35ae9a56b150d | fad44b9f670670d87c8e25ff9cdf63af87ad731e | refs/heads/master | 1,679,545,578,362 | 1,615,343,014,000 | 1,615,343,014,000 | 312,926,983 | 0 | 0 | Apache-2.0 | 1,615,360,301,000 | 1,605,399,418,000 | Lean | UTF-8 | Lean | false | false | 7,376 | lean | /-
Copyright (c) 2019 Johan Commelin All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Johan Commelin
-/
import order.filter.lift
import topology.opens
import topology.algebra.ring
open topological_space
open_locale topological_space
set_option old_structure_cmd true
/... |
921119c9a152ed173b2b4969bd32404814370240 | 75bd9c50a345718d735a7533c007cf45f9da9a83 | /src/data/multiset/basic.lean | b7015955dc884d4207b6b0005ed8c60c81feca28 | [
"Apache-2.0"
] | permissive | jtbarker/mathlib | a1a3b1ddc16179826260578410746756ef18032c | 392d3e376b44265ef2dedbd92231d3177acc1fd0 | refs/heads/master | 1,671,246,411,096 | 1,600,801,712,000 | 1,600,801,712,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 84,791 | lean | /-
Copyright (c) 2015 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Author: Mario Carneiro
-/
import data.list.perm
import algebra.group_power
/-!
# Multisets
These are implemented as the quotient of a list by permutations.
-/
open list subtype nat
v... |
4eabbdc6a91011f12a0b80405e4a3b17aa61d464 | 2eab05920d6eeb06665e1a6df77b3157354316ad | /src/data/list/basic.lean | 74254ac0d367b7ece8b727172824129f9c5d7908 | [
"Apache-2.0"
] | permissive | ayush1801/mathlib | 78949b9f789f488148142221606bf15c02b960d2 | ce164e28f262acbb3de6281b3b03660a9f744e3c | refs/heads/master | 1,692,886,907,941 | 1,635,270,866,000 | 1,635,270,866,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 186,311 | 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
-/
import control.monad.basic
import data.nat.basic
/-!
# Basic properties of lists
-/
open fun... |
19594f4372f4d4a72aaf059769df4013527debfa | 35677d2df3f081738fa6b08138e03ee36bc33cad | /src/category_theory/category/default.lean | 85a4e8640f9398fc2a9beb4587c1e889b8b459f4 | [
"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 | 7,591 | 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, Johannes HΓΆlzl, Reid Barton
-/
import tactic.basic
import tactic.tidy
/-!
# Categories
Defines a category, as a type class parametrised by the type o... |
c8d0a4379e224ae134f77151e169afcdaf5f2fe5 | fecda8e6b848337561d6467a1e30cf23176d6ad0 | /src/data/polynomial/ring_division.lean | 052ae4103a8caa4fe359c4fb5dd0f487c595e48b | [
"Apache-2.0"
] | permissive | spolu/mathlib | bacf18c3d2a561d00ecdc9413187729dd1f705ed | 480c92cdfe1cf3c2d083abded87e82162e8814f4 | refs/heads/master | 1,671,684,094,325 | 1,600,736,045,000 | 1,600,736,045,000 | 297,564,749 | 1 | 0 | null | 1,600,758,368,000 | 1,600,758,367,000 | null | UTF-8 | Lean | false | false | 20,133 | 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.basic
import data.polynomial.div
import data.polynomial.algebra_map
/-!
# Theory of univariate po... |
23b96a607cfb479b07d9b530fc92271f1da12f1e | 57c233acf9386e610d99ed20ef139c5f97504ba3 | /src/category_theory/limits/shapes/images.lean | 32f0f5051e324c9efa016a337dfef72183a0f821 | [
"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 | 30,024 | lean | /-
Copyright (c) 2019 Scott Morrison. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Scott Morrison, Markus Himmel
-/
import category_theory.limits.shapes.equalizers
import category_theory.limits.shapes.pullbacks
import category_theory.limits.shapes.strong_epi
/-!
# C... |
ef0191bea7623a379c3e5d73f1890c01848c4645 | 37336e9dcf558f325cf43bdf45bab5d8e455a3b4 | /M1F/2017-18/Example_Sheet_01/Question_01/solution.lean | 566bc3cfb92b5b5fe0e11ff063cc247461427b3e | [] | no_license | rafaelbailo/xena | bfeab41b3b401c812689a4879d58f2ad046240b5 | fad865c3d1bac6279f9a77e8aa6ba7e0cd572e06 | refs/heads/master | 1,626,002,809,060 | 1,507,793,086,000 | 1,507,793,086,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 7,671 | lean | /-
M1F 2017-18 Sheet 1 Question 1, solution
Author : Kevin Buzzard
Note: this version of the solution uses integers instead of real numbers.
This is because the real numbers are not currently in Lean's standard library
and I want to make things as easy as possible at this point. This file should
work with any version ... |
66338c133e17cc70a6b10bf37f81b15237b8c163 | 4727251e0cd73359b15b664c3170e5d754078599 | /src/number_theory/liouville/measure.lean | 1211eae475035746bb8cba97355b477a4e9c09f1 | [
"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,205 | 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 measure_theory.measure.lebesgue
import number_theory.liouville.residual
import number_theory.liouville.liouville_with
import analysis.p_series
/-!
# V... |
d4c5b6593bab30798fb0c62eb7487876ab6df618 | 64874bd1010548c7f5a6e3e8902efa63baaff785 | /tests/lean/notation3.lean | 6e82b417c9df80965f2b172cbeb549cc276ab92e | [
"Apache-2.0"
] | permissive | tjiaqi/lean | 4634d729795c164664d10d093f3545287c76628f | d0ce4cf62f4246b0600c07e074d86e51f2195e30 | refs/heads/master | 1,622,323,796,480 | 1,422,643,069,000 | 1,422,643,069,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 314 | lean | import data.prod data.num
inductive list (T : Type) : Type := nil {} : list T, cons : T β list T β list T open list notation h :: t := cons h t notation `[` l:(foldr `,` (h t, cons h t) nil) `]` := l
open prod num
constants a b : num
check [a, b, b]
check (a, true, a = b, b)
check (a, b)
check [1, 2+2, 3]
|
287f3502852f5e6f560fb20e3e01c18048908919 | 57aec6ee746bc7e3a3dd5e767e53bd95beb82f6d | /stage0/src/Leanpkg/Manifest.lean | a941e92b02bc688bb046f5a8fd1480126e3a7e29 | [
"Apache-2.0"
] | permissive | collares/lean4 | 861a9269c4592bce49b71059e232ff0bfe4594cc | 52a4f535d853a2c7c7eea5fee8a4fa04c682c1ee | refs/heads/master | 1,691,419,031,324 | 1,618,678,138,000 | 1,618,678,138,000 | 358,989,750 | 0 | 0 | Apache-2.0 | 1,618,696,333,000 | 1,618,696,333,000 | null | UTF-8 | Lean | false | false | 2,781 | lean | /-
Copyright (c) 2017 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Gabriel Ebner, Sebastian Ullrich
-/
import Leanpkg.Toml
import Leanpkg.LeanVersion
namespace Leanpkg
inductive Source where
| path (dirName : String) : Source
| git (url r... |
1fc8531142ee3c9c26371feda6e6ce4e6d99c9ce | b7f22e51856f4989b970961f794f1c435f9b8f78 | /tests/lean/run/clear_tac.lean | e54e8f36ad663f002240080f9a5dea7855f50c62 | [
"Apache-2.0"
] | permissive | soonhokong/lean | cb8aa01055ffe2af0fb99a16b4cda8463b882cd1 | 38607e3eb57f57f77c0ac114ad169e9e4262e24f | refs/heads/master | 1,611,187,284,081 | 1,450,766,737,000 | 1,476,122,547,000 | 11,513,992 | 2 | 0 | null | 1,401,763,102,000 | 1,374,182,235,000 | C++ | UTF-8 | Lean | false | false | 289 | lean | import logic
example {a b c : Prop} : a β b β c β a β§ b :=
begin
intros [Ha, Hb, Hc],
clear Hc,
clear c,
apply (and.intro Ha Hb),
end
example {a b c : Prop} : a β b β c β c β§ b :=
begin
intros [Ha, Hb, Hc],
clear Ha,
clear a,
apply (and.intro Hc Hb),
end
|
630745a5eb12c9b0b486d2f48fd235e6d3ef71da | 80cc5bf14c8ea85ff340d1d747a127dcadeb966f | /src/algebra/quadratic_discriminant.lean | b5fb40f62b91e8bdda4404e07b3f7f5f53e50ac3 | [
"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 | 6,793 | lean | /-
Copyright (c) 2019 Zhouhang Zhou. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Zhouhang Zhou
-/
import tactic.linarith
/-!
# Quadratic discriminants and roots of a quadratic
This file defines the discriminant of a quadratic and gives the solution to a quadratic ... |
cd294b2abd2e646e30f38873e8381df07e29b2e9 | 6f1049e897f569e5c47237de40321e62f0181948 | /src/solutions/00_first_proofs.lean | e8d7816cba958a293e6601376512875c10b88daa | [
"Apache-2.0"
] | permissive | anrddh/tutorials | f654a0807b9523608544836d9a81939f8e1dceb8 | 3ba43804e7b632201c494cdaa8da5406f1a255f9 | refs/heads/master | 1,655,542,921,827 | 1,588,846,595,000 | 1,588,846,595,000 | 262,330,134 | 0 | 0 | null | 1,588,944,346,000 | 1,588,944,345,000 | null | UTF-8 | Lean | false | false | 18,018 | lean | /-
This file is intended for Lean beginners. The goal is to demonstrate what it feels like to prove
things using Lean and mathlib. Complicated definitions and theory building are not covered.
Everything is covered again more slowly and with exercises in the next files.
-/
-- We want real numbers and their basic proper... |
700e53d0acf2d4da86e1a236f1d23a24d66c7346 | 9028d228ac200bbefe3a711342514dd4e4458bff | /src/algebra/big_operators/basic.lean | b5a7b2df3867f906e8fae9b2a3d6a76d22aff4e4 | [
"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 | 48,162 | 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
-/
import data.finset.fold
import data.equiv.mul_add
import tactic.abel
/-!
# Big operators
In this file we define products and sums indexed by finite sets (specifica... |
dc5ead92aeabc84493a4107572a3a336c6ea9b61 | a4673261e60b025e2c8c825dfa4ab9108246c32e | /tests/lean/run/def13.lean | 933a7340583d1d79e5ac91fb40d11fb3feac6976 | [
"Apache-2.0"
] | permissive | jcommelin/lean4 | c02dec0cc32c4bccab009285475f265f17d73228 | 2909313475588cc20ac0436e55548a4502050d0a | refs/heads/master | 1,674,129,550,893 | 1,606,415,348,000 | 1,606,415,348,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 611 | lean |
variables {Ξ±} (p : Ξ± β Prop) [DecidablePred p]
def filter : List Ξ± β List Ξ±
| [] => []
| a::as => if p a then a :: filter as else filter as
theorem filter_nil : filter p [] = [] :=
rfl
theorem filter_cons (a : Ξ±) (as : List Ξ±) : filter p (a :: as) = if p a then a :: filter p as else filter p as :=
rfl
theorem ... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.