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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
feb850252b67b3448afaa4ced635aea4cc299a67 | ff5230333a701471f46c57e8c115a073ebaaa448 | /library/init/meta/vm.lean | 9f2af579cd65fec8d9e064311f184d6d99a6a1d6 | [
"Apache-2.0"
] | permissive | stanford-cs242/lean | f81721d2b5d00bc175f2e58c57b710d465e6c858 | 7bd861261f4a37326dcf8d7a17f1f1f330e4548c | refs/heads/master | 1,600,957,431,849 | 1,576,465,093,000 | 1,576,465,093,000 | 225,779,423 | 0 | 3 | Apache-2.0 | 1,575,433,936,000 | 1,575,433,935,000 | null | UTF-8 | Lean | false | false | 6,348 | lean | /-
Copyright (c) 2016 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Leonardo de Moura
-/
prelude
import init.meta.tactic init.category.option
import init.meta.mk_dec_eq_instance
meta constant vm_obj : Type
@[derive decidable_eq]
inductive vm_o... |
59efcde08d85700cfbdf305c1231d049de17abcd | b70031c8e2c5337b91d7e70f1e0c5f528f7b0e77 | /src/linear_algebra/basis.lean | 6fbec569bc012cd5913b27d12a419dd3b5b1777a | [
"Apache-2.0"
] | permissive | molodiuc/mathlib | cae2ba3ef1601c1f42ca0b625c79b061b63fef5b | 98ebe5a6739fbe254f9ee9d401882d4388f91035 | refs/heads/master | 1,674,237,127,059 | 1,606,353,533,000 | 1,606,353,533,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 22,568 | 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, Alexander Bentkamp
-/
import linear_algebra.linear_independent
import linear_algebra.projection
import data.fintype.card
/-!
# Bases
This file define... |
458191f0ef7ca01ac9820b9cffc8a097a691dc14 | 4727251e0cd73359b15b664c3170e5d754078599 | /src/algebra/category/Group/filtered_colimits.lean | 7316f5e83bfa67031667a4c4c21b87fb85bd0bfa | [
"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,446 | lean | /-
Copyright (c) 2021 Justus Springer. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Justus Springer
-/
import algebra.category.Group.basic
import algebra.category.Mon.filtered_colimits
/-!
# The forgetful functor from (commutative) (additive) groups preserves filter... |
6a4ef949e5110dc35e53da75721f67f810459467 | 271e26e338b0c14544a889c31c30b39c989f2e0f | /stage0/src/Init/Lean/Meta/ExprDefEq.lean | 8303c9fc100f02d728fc5448a146ee491197b55b | [
"Apache-2.0"
] | permissive | dgorokho/lean4 | 805f99b0b60c545b64ac34ab8237a8504f89d7d4 | e949a052bad59b1c7b54a82d24d516a656487d8a | refs/heads/master | 1,607,061,363,851 | 1,578,006,086,000 | 1,578,006,086,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 40,646 | 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.ProjFns
import Init.Lean.Meta.WHNF
import Init.Lean.Meta.InferType
import Init.Lean.Meta.FunInfo
import Init.Lean.Meta.LevelDefEq
i... |
7a51dcc48a4c9f618c12699493ed4c3b114d2c10 | 26ac254ecb57ffcb886ff709cf018390161a9225 | /src/tactic/suggest.lean | 31fc82cad4124f27f5e2c308c2c981ec3f7c3742 | [
"Apache-2.0"
] | permissive | eric-wieser/mathlib | 42842584f584359bbe1fc8b88b3ff937c8acd72d | d0df6b81cd0920ad569158c06a3fd5abb9e63301 | refs/heads/master | 1,669,546,404,255 | 1,595,254,668,000 | 1,595,254,668,000 | 281,173,504 | 0 | 0 | Apache-2.0 | 1,595,263,582,000 | 1,595,263,581,000 | null | UTF-8 | Lean | false | false | 20,596 | lean | /-
Copyright (c) 2019 Lucas Allen. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Lucas Allen and Scott Morrison
-/
import data.mllist
import tactic.solve_by_elim
/-!
# `suggest` and `library_search`
`suggest` and `library_search` are a pair of tactics for applying l... |
b88bf391bdd81d311db2bfaf80295a116fe454fb | 206422fb9edabf63def0ed2aa3f489150fb09ccb | /src/geometry/manifold/smooth_manifold_with_corners.lean | a2d41e8ba2a329ee4dfa3cc25cc291ff8760c011 | [
"Apache-2.0"
] | permissive | hamdysalah1/mathlib | b915f86b2503feeae268de369f1b16932321f097 | 95454452f6b3569bf967d35aab8d852b1ddf8017 | refs/heads/master | 1,677,154,116,545 | 1,611,797,994,000 | 1,611,797,994,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 33,758 | lean | /-
Copyright (c) 2019 Sébastien Gouëzel. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Sébastien Gouëzel
-/
import analysis.calculus.times_cont_diff
import geometry.manifold.charted_space
/-!
# Smooth manifolds (possibly with boundary or corners)
A smooth manifold i... |
fe117add4ec104d104467425859bf714e8f4d65b | 626e312b5c1cb2d88fca108f5933076012633192 | /src/data/matrix/block.lean | 6aad755a0071a5f0cf0b7ebf21e8487a8feeb951 | [
"Apache-2.0"
] | permissive | Bioye97/mathlib | 9db2f9ee54418d29dd06996279ba9dc874fd6beb | 782a20a27ee83b523f801ff34efb1a9557085019 | refs/heads/master | 1,690,305,956,488 | 1,631,067,774,000 | 1,631,067,774,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 15,630 | lean | /-
Copyright (c) 2018 Ellen Arlt. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Ellen Arlt, Blair Shi, Sean Leather, Mario Carneiro, Johan Commelin
-/
import data.matrix.basic
/-!
# Block Matrices
## Main definitions
* `matrix.from_blocks`: build a block matrix out... |
fe7899d35523714e2dfbff1514f55e4bdb0d1337 | 4d2583807a5ac6caaffd3d7a5f646d61ca85d532 | /src/deprecated/subfield.lean | 2ede8becb1b180f5ab562bb771aa2941736c1932 | [
"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 | 5,829 | lean | /-
Copyright (c) 2018 Andreas Swerdlow. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Andreas Swerdlow
-/
import deprecated.subring
import algebra.group_with_zero.power
/-
# Unbundled subfields
This file introduces the predicate `is_subfield` on `S : set F` where `F... |
90c2744a462933384ef70be3c961b67da4e6a682 | 592ee40978ac7604005a4e0d35bbc4b467389241 | /Library/generated/mathscheme-lean/UnipotentPointedMagma.lean | 60f4513d0a9f18aa207a46ca7f9436cd7d5e345c | [] | no_license | ysharoda/Deriving-Definitions | 3e149e6641fae440badd35ac110a0bd705a49ad2 | dfecb27572022de3d4aa702cae8db19957523a59 | refs/heads/master | 1,679,127,857,700 | 1,615,939,007,000 | 1,615,939,007,000 | 229,785,731 | 4 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 7,299 | lean | import init.data.nat.basic
import init.data.fin.basic
import data.vector
import .Prelude
open Staged
open nat
open fin
open vector
section UnipotentPointedMagma
structure UnipotentPointedMagma (A : Type) : Type :=
(e : A)
(op : (A → (A → A)))
(unipotence : (∀ {x : A} , (op x x) = e))
o... |
30149fdd616fc66da11db8abab818dce7995da57 | 54d7e71c3616d331b2ec3845d31deb08f3ff1dea | /library/data/dlist.lean | 5bcf7a6c424170d295d6beb4da3c72b8dec0f24b | [
"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 | 4,340 | lean | /-
Copyright (c) 2017 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Author: Leonardo de Moura
-/
universes u
/--
A difference list is a function that, given a list, returns the original
contents of the difference list prepended to the given list.
This s... |
ab794862f1433548dd8646d03ce4db4232907c64 | 592ee40978ac7604005a4e0d35bbc4b467389241 | /Library/generated/mathscheme-lean/Pointed0Magma.lean | 2a7961e85b62b999f819a8e3959e3088c53ce4b6 | [] | no_license | ysharoda/Deriving-Definitions | 3e149e6641fae440badd35ac110a0bd705a49ad2 | dfecb27572022de3d4aa702cae8db19957523a59 | refs/heads/master | 1,679,127,857,700 | 1,615,939,007,000 | 1,615,939,007,000 | 229,785,731 | 4 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 6,754 | lean | import init.data.nat.basic
import init.data.fin.basic
import data.vector
import .Prelude
open Staged
open nat
open fin
open vector
section Pointed0Magma
structure Pointed0Magma (A : Type) : Type :=
(zero : A)
(op : (A → (A → A)))
open Pointed0Magma
structure Sig (AS : Type) : Type :=
... |
a56478c2c3eccf0a2581f3e02fd770cd7c0be599 | 9dc8cecdf3c4634764a18254e94d43da07142918 | /src/linear_algebra/matrix/to_lin.lean | 6389869a8837140ac4d15f69e922126b54b6176a | [
"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,810 | 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 data.matrix.block
import data.matrix.notation
import linear_algebra.matrix.finite_dimensional
import linear_algebra.s... |
52213711c384fb7514f04b95382c3894fdb4e5d2 | 7490bf5d40d31857a58062614642bb5a41c36154 | /hw2.lean | cc45f6c3e4efbf6bf234aa02915ab4da0a644050 | [] | no_license | reesegrayallen/Lean-Discrete-Mathematics | 9f1d6fe1c814cc9264ce868a67adcf5a82566e22 | 00c875284613ea12e0a729f519738aab8599456b | refs/heads/main | 1,674,181,372,629 | 1,606,801,004,000 | 1,606,801,004,000 | 317,387,970 | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 9,070 | lean | -- REESE ALLEN
-- RGA2UZ
/-
UVa CS2102/Sullivan, Spring 2020, Homework #2
This homework assignment is due by noon on Tuesday,
Feb 4. Submit your result through the HW#2 tab under
the Assignments category on Collab. Do so by uploading
a completed version of this file.
The goal of this assignment is to develop and e... |
b618df19dc03bf68d6f4b2a150d1061f35828e91 | 1abd1ed12aa68b375cdef28959f39531c6e95b84 | /src/measure_theory/measure/measure_space_def.lean | 222f8b44c82c9a7b645f692e24051f4cc216518f | [
"Apache-2.0"
] | permissive | jumpy4/mathlib | d3829e75173012833e9f15ac16e481e17596de0f | af36f1a35f279f0e5b3c2a77647c6bf2cfd51a13 | refs/heads/master | 1,693,508,842,818 | 1,636,203,271,000 | 1,636,203,271,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 20,546 | lean | /-
Copyright (c) 2017 Johannes Hölzl. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Johannes Hölzl, Mario Carneiro
-/
import measure_theory.measure.outer_measure
import order.filter.countable_Inter
import data.set.accumulate
/-!
# Measure spaces
This file defines me... |
a2fa83b1e9a90b7f177528505ca67cc76a271c27 | 367134ba5a65885e863bdc4507601606690974c1 | /src/tactic/linarith/lemmas.lean | 74697174bede8ab77cb6bfe590913b52b5a97365 | [
"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 | 3,793 | lean | /-
Copyright (c) 2020 Robert Y. Lewis. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Robert Y. Lewis
-/
import algebra.ordered_ring
import data.int.basic
import tactic.norm_num
/-!
# Lemmas for `linarith`
This file contains auxiliary lemmas that `linarith` uses to ... |
569ed3baa21733427b371119c2911624acf674fb | 969dbdfed67fda40a6f5a2b4f8c4a3c7dc01e0fb | /src/data/string/basic.lean | b03e33d2ffe0d93139dc44143bc63d504b318ebf | [
"Apache-2.0"
] | permissive | SAAluthwela/mathlib | 62044349d72dd63983a8500214736aa7779634d3 | 83a4b8b990907291421de54a78988c024dc8a552 | refs/heads/master | 1,679,433,873,417 | 1,615,998,031,000 | 1,615,998,031,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 4,110 | lean | /-
Copyright (c) 2018 Mario Carneiro. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Author: Mario Carneiro
Supplementary theorems about the `string` type.
-/
import data.list.basic
import data.char
namespace string
def ltb : iterator → iterator → bool
| s₁ s₂ := begin
cas... |
2f4819180eef43a6c7164eb283fb85d5470dec36 | 32025d5c2d6e33ad3b6dd8a3c91e1e838066a7f7 | /stage0/src/Lean/Syntax.lean | d5c20e8312b4c5453df1da7df87e18b5ff0e5b3c | [
"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 | 17,233 | lean | /-
Copyright (c) 2019 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Author: Sebastian Ullrich, Leonardo de Moura
-/
import Lean.Data.Name
import Lean.Data.Format
namespace Lean
namespace SourceInfo
def updateTrailing (info : SourceInfo) (trailing : Opt... |
ce4465f14bfcfd3b71a725924bb5aea693ff7710 | 8cae430f0a71442d02dbb1cbb14073b31048e4b0 | /src/category_theory/limits/shapes/multiequalizer.lean | aa905aa8b2ca0b06409ad4351c62e6f58af5703d | [
"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 | 26,653 | lean | /-
Copyright (c) 2021 Adam Topaz. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Adam Topaz
-/
import category_theory.limits.shapes.products
import category_theory.limits.shapes.equalizers
import category_theory.limits.cone_category
/-!
# Multi-(co)equalizers
> THIS... |
76932c11cf382d8dbd70438a3d7b5fd78008d8c3 | fa02ed5a3c9c0adee3c26887a16855e7841c668b | /src/set_theory/game/nim.lean | 8eb59234729eebe0b4288e4eacbbd719da2eaec9 | [
"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 | 15,322 | lean | /-
Copyright (c) 2020 Fox Thomson. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Fox Thomson, Markus Himmel
-/
import data.nat.bitwise
import set_theory.game.impartial
import set_theory.ordinal_arithmetic
/-!
# Nim and the Sprague-Grundy theorem
This file contains t... |
e298d73e74178235d883f443ca48d321f82b82e6 | 0845ae2ca02071debcfd4ac24be871236c01784f | /library/init/lean/compiler/ir/boxing.lean | 6185e0baaa9745f9627c7ad4cff18f4511ccdebd | [
"Apache-2.0"
] | permissive | GaloisInc/lean4 | 74c267eb0e900bfaa23df8de86039483ecbd60b7 | 228ddd5fdcd98dd4e9c009f425284e86917938aa | refs/heads/master | 1,643,131,356,301 | 1,562,715,572,000 | 1,562,715,572,000 | 192,390,898 | 0 | 0 | null | 1,560,792,750,000 | 1,560,792,749,000 | null | UTF-8 | Lean | false | false | 10,712 | 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.control.estate
import init.control.reader
import init.lean.runtime
import init.lean.compiler.externattr
import init.lean.compiler.ir.bas... |
681d813604907af885e3479b1523e19c663dff98 | 07c6143268cfb72beccd1cc35735d424ebcb187b | /src/algebra/continued_fractions/default.lean | a0348da7fab60d6f560e759b9618cdbabccc250a | [
"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 | 407 | lean | /-
Copyright (c) 2019 Kevin Kappelmann. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Kevin Kappelmann
-/
import algebra.continued_fractions.basic
import algebra.continued_fractions.translations
import algebra.continued_fractions.continuants_recurrence
import algebra.... |
88b6653d74ce4b3703d5015c6e9b882a9a0d5a32 | acc85b4be2c618b11fc7cb3005521ae6858a8d07 | /data/num/basic.lean | 54416071bda260af6e1445948142945fda23a692 | [
"Apache-2.0"
] | permissive | linpingchuan/mathlib | d49990b236574df2a45d9919ba43c923f693d341 | 5ad8020f67eb13896a41cc7691d072c9331b1f76 | refs/heads/master | 1,626,019,377,808 | 1,508,048,784,000 | 1,508,048,784,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 11,436 | 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, Mario Carneiro
Binary representation of integers using inductive types.
Note: Unlike in Coq, where this representation is preferred because of
the reliance ... |
ec08efe07d6ee874148e608344ca5f882482f364 | eb9357a70318e50e095b58730bebfe0cffee457f | /lean/love11_logical_foundations_of_mathematics_demo.lean | d74e04b51fe8ac885cf299d646721aedd2e804f7 | [] | no_license | Vierkantor/logical_verification_2021 | 7485dd916953131d501760f023d5b30fbb74d36a | 9500b9c194e22a9ab4067321cfed7a1f445afcfc | refs/heads/main | 1,692,560,845,086 | 1,624,721,275,000 | 1,624,721,275,000 | 416,354,079 | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 16,280 | lean | import .love05_inductive_predicates_demo
/-! # LoVe Demo 11: Logical Foundations of Mathematics
We dive deeper into the logical foundations of Lean. Most of the features
described here are especially relevant for defining mathematical objects and
proving theorems about them. -/
set_option pp.beta true
set_option p... |
227a81af2ec5681ce5b585947f71b0bfc8d537db | c777c32c8e484e195053731103c5e52af26a25d1 | /src/measure_theory/integral/integral_eq_improper.lean | 83d5b5ce1cfdbaed50e97e85a969ad93e2bc9cf2 | [
"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 | 44,515 | lean | /-
Copyright (c) 2021 Anatole Dedecker. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Anatole Dedecker, Bhavik Mehta
-/
import measure_theory.integral.fund_thm_calculus
import order.filter.at_top_bot
import measure_theory.function.jacobian
/-!
# Links between an inte... |
91a4bf6e9a1e1f13d25d5f2862c815c8b1dc9e88 | 41ebf3cb010344adfa84907b3304db00e02db0a6 | /uexp/test/ucongr_test.lean | 344e092007ae40074a59ae844e0c8fda5ead3e69 | [
"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,069 | lean | import ..src.uexp.meta.ucongr
set_option profiler true
lemma congr_trans_ex1 {s: Schema} (a b c d e f: Tuple s):
(a ≃ c) * ((a ≃ b) * (e ≃ f)) = (a ≃ c) * ((a ≃ b) * (f ≃ e)) :=
begin
ucongr,
end
lemma congr_trans_ex2 {s: Schema} (a b c d e f: Tuple s):
(a ≃ c) * ((b ≃ a) * (e ≃ f)) = (a ≃ c) * ((a ≃ b) ... |
80e6da015e687af2b74a1f3b8e6066e790f07593 | 957a80ea22c5abb4f4670b250d55534d9db99108 | /tests/lean/coe4.lean | cec6e6fc492ba22b8e9716d1baefde4ec6cf7db4 | [
"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 | 431 | lean | universe variables u
structure Functor (A : Type u) :=
(fn : A → A → A) (inj : ∀ x y, fn x = fn y → x = y)
attribute [instance]
definition coe_functor_to_fn (A : Type u) : has_coe_to_fun (Functor A) :=
{ F := λ f, A → A → A,
coe := Functor.fn }
constant f : Functor nat
#check f 0 1
set_option pp.coercions fals... |
9b2ae22c42c7b34de625f51c127e4c592cfe661a | 3994e03e14a3cbe3858c1098d0ab9ed1113d6666 | /06-formalizacija-dokazov/lambda.lean | 5ecf9657f66cef0539088031b3a43ab75f750870 | [] | no_license | tadejpetric/tpj-coq | 15f2548ba8f012d9a5b5e0bfb78ab0860d048e96 | dda9fb2e635f9a1302739e34d8692a4252066b76 | refs/heads/master | 1,629,182,614,649 | 1,600,449,570,000 | 1,600,449,570,000 | 222,798,649 | 1 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 6,176 | lean | inductive ty : Type
| unit : ty
| bool : ty
| arrow : ty -> ty -> ty
def nm := string
inductive tm : Type
| var : nm -> tm
| unit : tm
| true : tm
| false : tm
| app : tm -> tm -> tm
| lam : nm -> tm -> tm
| if_then_else : tm -> tm -> tm -> tm
inductive value : tm -> Prop
| unit : value tm.unit
| true : value tm.tru... |
f5d32a17bc9484faafeaa2f4b5fff7e100558a42 | 57c233acf9386e610d99ed20ef139c5f97504ba3 | /src/analysis/asymptotics/asymptotics.lean | cd7d7c189f990ee34cdbd9b44b6e06bea03f7d2d | [
"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 | 63,846 | lean | /-
Copyright (c) 2019 Jeremy Avigad. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Jeremy Avigad, Yury Kudryashov
-/
import analysis.normed_space.basic
import topology.local_homeomorph
import topology.algebra.ordered.liminf_limsup
/-!
# Asymptotics
We introduce thes... |
f4aa5a7d67b512327c80c992ddfcdcb9a329dd0c | cf39355caa609c0f33405126beee2739aa3cb77e | /tests/lean/run/do_notation_tmp_var_issue.lean | d59b470628c1c3a16d532ba7a3f92fece0bd8593 | [
"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 | 124 | lean | meta def mk_local_pis : expr → tactic (list expr × expr)
| p := do
(ps, r) ← mk_local_pis p,
return ((p :: ps), r)
|
8e6225e1ca8881b694cbd2f1d032ba4aa53a77e5 | 88892181780ff536a81e794003fe058062f06758 | /src/positive_nat/lemmas.lean | 850060ca8fa8656b5ad50f4e561402b89433de3a | [] | no_license | AtnNn/lean-sandbox | fe2c44280444e8bb8146ab8ac391c82b480c0a2e | 8c68afbdc09213173aef1be195da7a9a86060a97 | refs/heads/master | 1,623,004,395,876 | 1,579,969,507,000 | 1,579,969,507,000 | 146,666,368 | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 16,704 | lean | import positive_nat.def
import data.nat.basic
import tactic.interactive
import tactic.rcases
import tactic.tidy
import tactic.wlog
import lib.tactics
universes u v
namespace positive_nat
namespace natural
lemma add_succ {a b : natural} : a + (b + 1) = (a + b) + 1 := rfl
lemma one_add_eq_succ {a : natural} : 1 + a =... |
6f4e457efe12c00e8e411154848c98c78a7cbccd | bb31430994044506fa42fd667e2d556327e18dfe | /archive/100-theorems-list/30_ballot_problem.lean | f0d659d67a7aa0370da185c3c55dcd69efbe9240 | [
"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 | 20,431 | lean | /-
Copyright (c) 2022 Bhavik Mehta, Kexing Ying. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Bhavik Mehta, Kexing Ying
-/
import probability.cond_count
/-!
# Ballot problem
This file proves Theorem 30 from the [100 Theorems List](https://www.cs.ru.nl/~freek/100/).... |
b1f9abce044b82b6bcb978aaba27d68bab1cd1d3 | d406927ab5617694ec9ea7001f101b7c9e3d9702 | /src/category_theory/functor/hom.lean | ee307cb400b05d9daf87da9bbe1d2b6916d01b64 | [
"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 | 709 | lean | /-
Copyright (c) 2018 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.products.basic
import category_theory.types
/-!
The hom functor, sending `(X, Y)` to the type `X ⟶ Y`.
-/
universes v u
open oppos... |
8144a8857dab091ba915bb8da437b505067da6d4 | 6432ea7a083ff6ba21ea17af9ee47b9c371760f7 | /tests/lean/run/attachJp.lean | 1d34e8e7233d1e9668bc93ab012856a9dd3ac350 | [
"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 | 257 | lean | import Lean
def one := 1
def zero := 0
def f (x : Nat) (b : Bool) :=
let k := fun b =>
let y := match b with
| true => one
| false => zero
Nat.succ y
x == k b
set_option trace.Compiler.simp true
#eval Lean.Compiler.compile #[``f]
|
5ad307f53c2310db844a58f06f7fd397d4d0dd97 | 2c096fdfecf64e46ea7bc6ce5521f142b5926864 | /src/Lean/Compiler/LCNF/Closure.lean | 7a417aad96455c0ceba7984269242e8d10da70d7 | [
"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 | Kha/lean4 | 1005785d2c8797ae266a303968848e5f6ce2fe87 | b99e11346948023cd6c29d248cd8f3e3fb3474cf | refs/heads/master | 1,693,355,498,027 | 1,669,080,461,000 | 1,669,113,138,000 | 184,748,176 | 0 | 0 | Apache-2.0 | 1,665,995,520,000 | 1,556,884,930,000 | Lean | UTF-8 | Lean | false | false | 5,753 | 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.Util.ForEachExpr
import Lean.Compiler.LCNF.CompilerM
namespace Lean.Compiler.LCNF
namespace Closure
/-!
# Dependency collector for code specia... |
2dcbb8b3511a3caf779e0f4fd6e459de2436b094 | 75db7e3219bba2fbf41bf5b905f34fcb3c6ca3f2 | /tests/lean/congr_rel.lean | 1162a4c698167c9246e3f3f828c8299fd78d4eed | [
"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 | 92 | lean | import data.list
open perm
#congr_rel @eq
#congr_rel @iff
#congr_rel @perm
#congr_rel @heq
|
b467832710ba1965a206935fea7a476d461bb7f2 | d406927ab5617694ec9ea7001f101b7c9e3d9702 | /src/group_theory/index.lean | bb1ee6f8e70640dc7f2553269c1b5eed80e524a9 | [
"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 | 18,583 | lean | /-
Copyright (c) 2021 Thomas Browning. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Thomas Browning
-/
import data.finite.card
import group_theory.finiteness
import group_theory.group_action.quotient
/-!
# Index of a Subgroup
In this file we define the index of a ... |
134c27c8e776b77218946cf21520ecd59e59f6d3 | aa101d73b1a3173c7ec56de02b96baa8ca64c42e | /src/exercises/06_sub_sequences.lean | 342bd0dd91e7b062d388f44e5f517e612c60020b | [
"Apache-2.0"
] | permissive | gihanmarasingha/tutorials | b554d4d53866c493c4341dc13e914b01444e95a6 | 56617114ef0f9f7b808476faffd11e22e4380918 | refs/heads/master | 1,671,141,758,153 | 1,599,173,318,000 | 1,599,173,318,000 | 282,405,870 | 0 | 0 | Apache-2.0 | 1,595,666,751,000 | 1,595,666,750,000 | null | UTF-8 | Lean | false | false | 3,266 | lean | import tuto_lib
/-
This file continues the elementary study of limits of sequences.
It can be skipped if the previous file was too easy, it won't introduce
any new tactic or trick.
Remember useful lemmas:
abs_le (x y : ℝ) : |x| ≤ y ↔ -y ≤ x ∧ x ≤ y
abs_add (x y : ℝ) : |x + y| ≤ |x| + |y|
abs_sub (x y : ℝ) : |x - y... |
c34d4e607c706562282babfb44c02cb66297fd31 | 74addaa0e41490cbaf2abd313a764c96df57b05d | /Mathlib/data/polynomial/degree/default.lean | dcfd5915c7e69a0acb696a2e9de6d37b1431cd96 | [] | 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 | 149 | lean | import Mathlib.PrePort
import Mathlib.Lean3Lib.init.default
import Mathlib.data.polynomial.degree.lemmas
import Mathlib.PostPort
namespace Mathlib
|
1c13ad9d0dbcee83abe07d01f37e8d23deace0a1 | e00ea76a720126cf9f6d732ad6216b5b824d20a7 | /src/linear_algebra/linear_action.lean | 45ff6507afcc77ff3ea299075ed659b979972c4d | [
"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 | 3,410 | lean | /-
Copyright (c) 2020 Oliver Nash. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Oliver Nash
-/
import linear_algebra.basic
/-!
# Linear actions
For modules M and N, we can regard a linear map M →ₗ End N as a "linear action" of M on N.
In this file we introduce the ... |
4679f9774f91a7c4df8544adb50668b6c373f035 | aa5a655c05e5359a70646b7154e7cac59f0b4132 | /tests/lean/run/simp1.lean | 8bcc50fd96bb9b436c26fc58a5a97c28445ec473 | [
"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 | 1,291 | lean | import Lean
@[simp] theorem ex1 (x : Nat) : 2 * x = x + x :=
sorry
@[simp] theorem ex2 (xs : List α) : xs ++ [] = xs :=
sorry
@[simp] theorem ex3 (xs ys zs : List α) : (xs ++ ys) ++ zs = xs ++ (ys ++ zs) :=
sorry
@[simp] theorem ex5 (p : Prop) : p ∨ True :=
sorry
@[simp] theorem ex4 (xs : List α) : ¬(x :: ... |
56f84896eaa3526eabd8817d940b0dd38d4c5a0e | cbb817439c51008d66b37ce6b1964fea61434d35 | /theorem-proving-in-lean/src/chap_4.lean | af333271fc1267de9eec8435f0edcdd6d1e43a09 | [] | no_license | tomhoule/theorem-proving-in-lean-exercises | a07f99d4f6b41ce003e8a0274c7bc46359fa62b2 | 60ccc71b8a6df6924e7cc90aab713b804f78da9f | refs/heads/master | 1,663,582,321,828 | 1,590,352,467,000 | 1,590,352,476,000 | 257,107,936 | 3 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 14,586 | lean |
namespace ex1
-- Prove these equivalences:
variables (α : Type) (p q : α → Prop)
def proof1 : (∀ x, p x ∧ q x) ↔ (∀ x, p x) ∧ (∀ x, q x) :=
have left : (∀ x, p x ∧ q x) → (∀ x, p x) ∧ (∀ x, q x), from
assume h : (∀ x, p x ∧ q x),
and.intro (λ z : α, (h z).left) (λ z : α, (h z).right),
... |
21340caebb310ef4609c419eb8bcc649e08ac14e | de8d0cdc3dc15aa390280472764229d0e14e734c | /src/topological_spaces2.lean | ef05bd29741bd0bb2187863ae18f8c7d6ce2f644 | [] | no_license | amesnard0/lean-topology | 94720ccf0af34961b24b52b96bcfb19df5c8f544 | e8f6a720c435cb59d098579a26f6eb70ea05f91a | refs/heads/main | 1,682,525,569,376 | 1,622,116,766,000 | 1,622,116,766,000 | 358,047,823 | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 5,015 | lean | import tactic
import data.set.finite
import topological_spaces
import neighbourhoods
open set
open topological_space
-- Convergence d'une suite :
def seq_lim {X : Type} [topological_space X] (u : ℕ → X) (l : X) : Prop :=
∀ (V : set X), V ∈ neighbourhoods l → ∃ (N : ℕ), ∀ n ≥ N, u n ∈ V
-- Fonction continue :
def c... |
1cae4220c0ba3cfc2445e2725a3d23d5b8bbca32 | 69d4931b605e11ca61881fc4f66db50a0a875e39 | /src/ring_theory/adjoin_root.lean | ebed7227e847db95dec9910f64feedb0753abbba | [
"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,921 | lean | /-
Copyright (c) 2018 Mario Carneiro. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Mario Carneiro, Chris Hughes
Adjoining roots of polynomials
-/
import data.polynomial.field_division
import linear_algebra.finite_dimensional
import ring_theory.adjoin.basic
import ri... |
6ecfd63f45cf31ba20965f907db59175fc7aa860 | 618003631150032a5676f229d13a079ac875ff77 | /src/data/bool.lean | a5f4fccfe20abda108d5caed28a154370dc6a977 | [
"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 | 5,315 | lean | /-
Copyright (c) 2014 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Author: Leonardo de Moura, Jeremy Avigad
-/
/-!
# booleans
This file proves various trivial lemmas about booleans and their
relation to decidable propositions.
## Notations
This file... |
6ea4467f796693354dc8e92b1ecb1a7395b089d9 | 957a80ea22c5abb4f4670b250d55534d9db99108 | /tests/lean/run/1728.lean | c18e097288879074e71b10539b91241ba709d13a | [
"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 | 704 | lean | structure Bijection ( U V : Type ) :=
( morphism : U → V )
( inverse : V → U )
( witness_1 : ∀ u : U, inverse (morphism u) = u )
( witness_2 : ∀ v : V, morphism (inverse v) = v )
class Finite ( α : Type ) :=
( cardinality : nat )
( bijection : Bijection α (fin cardinality) )
lemma empty_exfalso (x : fals... |
3c092372a5bbdbd6a6dd83cb4a5256539cd5cce2 | ae1e94c332e17c7dc7051ce976d5a9eebe7ab8a5 | /stage0/src/Lean/Elab/Deriving.lean | e99c6fb63bd6ed328ba60f79ba4f9c06347541d2 | [
"Apache-2.0"
] | permissive | dupuisf/lean4 | d082d13b01243e1de29ae680eefb476961221eef | 6a39c65bd28eb0e28c3870188f348c8914502718 | refs/heads/master | 1,676,948,755,391 | 1,610,665,114,000 | 1,610,665,114,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 393 | 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.Elab.Deriving.Basic
import Lean.Elab.Deriving.Util
import Lean.Elab.Deriving.Inhabited
import Lean.Elab.Deriving.BEq
import Lean.Elab.Deriving.D... |
a330fd9c1f57e827256270148d5ef20611bcb51f | ec040be767d27b10d2f864ddcfdf756aeb7a9a0a | /src/assignments/assignment_4/assignment_4.lean | b65a42879026830f047adc024bb94adf02c3b015 | [] | no_license | RoboticPanda77/complogic-s21 | b26a9680dfb98ac650e40539296c0cafc86f5cb4 | 93c5bcc0139c0926cc261075f50a8b1ead6aa40c | refs/heads/master | 1,682,196,614,558 | 1,620,625,035,000 | 1,620,625,035,000 | 337,230,148 | 0 | 0 | null | 1,620,625,036,000 | 1,612,824,240,000 | Lean | UTF-8 | Lean | false | false | 8,799 | lean |
def list_map {α β : Type} : (α → β) → (list α) → list β
| f list.nil := list.nil
| f (h::t) := (f h)::(list_map f t)
/-
1. Write a polymorphic function, someSatisfies,
that takes a a predicate function, p, of type
α → bool, and list of values of type α (a type
parameter), and and that returns true (tt) if
and onl... |
ae11c34d2b74b408f071a23ffd253bdf7624d2b6 | fa02ed5a3c9c0adee3c26887a16855e7841c668b | /src/algebra/module/linear_map.lean | 509da84b6e4535e4b22fd839ba44a2caee5bcb39 | [
"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 | 22,789 | lean | /-
Copyright (c) 2020 Anne Baanen. 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, Anne Baanen
-/
import algebra.group.hom
import algebra.module.basic
import algebra.group_action_hom
/-!
# Linear maps and... |
8d17e0296dd8a4d7cb3ffe8f4993031f078a0260 | 9be442d9ec2fcf442516ed6e9e1660aa9071b7bd | /stage0/src/Lean/Elab/Syntax.lean | caa5c1f925e271eb110906a32cf7ecf5d79798b3 | [
"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 | 18,202 | 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.Elab.Command
import Lean.Parser.Syntax
import Lean.Elab.Util
namespace Lean.Elab.Term
/--
Expand `optional «precedence»` where
«precedence» :=... |
cb3bd8e3f40157351a4d58a0ca7b325d60e770d9 | bb31430994044506fa42fd667e2d556327e18dfe | /src/measure_theory/integral/divergence_theorem.lean | f458e7b18d65505386300a03023464332be9e06a | [
"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 | 30,191 | lean | /-
Copyright (c) 2021 Yury Kudryashov. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Yury Kudryashov
-/
import analysis.box_integral.divergence_theorem
import analysis.box_integral.integrability
import measure_theory.integral.interval_integral
/-!
# Divergence theore... |
4a25971cb4ffa5052a360119c251bd897afe76a8 | d406927ab5617694ec9ea7001f101b7c9e3d9702 | /src/category_theory/sigma/basic.lean | 8873ef5fca4f2ed4b1cb99ebf143d01a39c08ceb | [
"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 | 7,719 | 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.whiskering
import category_theory.functor.fully_faithful
import category_theory.natural_isomorphism
/-!
# Disjoint union of categories
We define ... |
f65d3fdc228277eb32c31baab35018ed28fa7a32 | 26ac254ecb57ffcb886ff709cf018390161a9225 | /src/data/set/basic.lean | b95a78b7efe964a69ab671be5c0c8ab250205bb7 | [
"Apache-2.0"
] | permissive | eric-wieser/mathlib | 42842584f584359bbe1fc8b88b3ff937c8acd72d | d0df6b81cd0920ad569158c06a3fd5abb9e63301 | refs/heads/master | 1,669,546,404,255 | 1,595,254,668,000 | 1,595,254,668,000 | 281,173,504 | 0 | 0 | Apache-2.0 | 1,595,263,582,000 | 1,595,263,581,000 | null | UTF-8 | Lean | false | false | 81,207 | lean | /-
Copyright (c) 2014 Jeremy Avigad. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Jeremy Avigad, Leonardo de Moura
-/
import logic.unique
import order.boolean_algebra
/-!
# Basic properties of sets
Sets in Lean are homogeneous; all their elements have the same type... |
c43747f45139310122abd66696a29dfbb203f5f5 | 5749d8999a76f3a8fddceca1f6941981e33aaa96 | /src/measure_theory/ae_eq_fun.lean | 6ff61352f5eeec19dda49b9bce073c4c07ff3872 | [
"Apache-2.0"
] | permissive | jdsalchow/mathlib | 13ab43ef0d0515a17e550b16d09bd14b76125276 | 497e692b946d93906900bb33a51fd243e7649406 | refs/heads/master | 1,585,819,143,348 | 1,580,072,892,000 | 1,580,072,892,000 | 154,287,128 | 0 | 0 | Apache-2.0 | 1,540,281,610,000 | 1,540,281,609,000 | null | UTF-8 | Lean | false | false | 22,545 | lean | /-
Copyright (c) 2019 Johannes Hölzl, Zhouhang Zhou. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Johannes Hölzl, Zhouhang Zhou
-/
import measure_theory.integration
/-!
# Almost everywhere equal functions
Two measurable functions are treated as identical if they ... |
6f3cb2eefd0250a6adb2bfbc54e2f06af861f332 | b7f22e51856f4989b970961f794f1c435f9b8f78 | /tests/lean/run/class11.lean | 9835105c56fbaca081bfe2d0d15494b61168ce80 | [
"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 | 196 | lean | import logic
constant C {A : Type} : A → Prop
attribute C [class]
constant f {A : Type} (a : A) [H : C a] : Prop
definition g {A : Type} (a b : A) {H1 : C a} {H2 : C b} : Prop :=
f a ∧ f b
|
547f39bc163387c2642969d487778b9b45c1b52f | 9dc8cecdf3c4634764a18254e94d43da07142918 | /src/group_theory/group_action/quotient.lean | e192bcc25f87d999cc3550d0343a511704e7f3db | [
"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 | 14,386 | 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 dynamics.periodic_pts
import group_theory.group_action.basic
import group_theory.quotient_group
/-!
# Properties of group actions involving quoti... |
399f03775983e00a3c892df9ff2a46fe2cec70a7 | fa02ed5a3c9c0adee3c26887a16855e7841c668b | /archive/imo/imo1959_q1.lean | ddfd12503698d4ffdf59928bd0d5649b0af62190 | [
"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 | 926 | lean | /-
Copyright (c) 2020 Kevin Lacker. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Kevin Lacker
-/
import tactic.ring
import data.nat.prime
/-!
# IMO 1959 Q1
Prove that the fraction `(21n+4)/(14n+3)` is irreducible for every natural number `n`.
Since Lean doesn't h... |
d91ac649d6d5ea1c81e643d0321120d27faef023 | 74addaa0e41490cbaf2abd313a764c96df57b05d | /Mathlib/data/list/sort.lean | e8fbd2f4e6358ad193fde6676178c63b6995ea56 | [] | no_license | AurelienSaue/Mathlib4_auto | f538cfd0980f65a6361eadea39e6fc639e9dae14 | 590df64109b08190abe22358fabc3eae000943f2 | refs/heads/master | 1,683,906,849,776 | 1,622,564,669,000 | 1,622,564,669,000 | 371,723,747 | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 8,841 | lean | /-
Copyright (c) 2016 Jeremy Avigad. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Author: Jeremy Avigad
-/
import Mathlib.PrePort
import Mathlib.Lean3Lib.init.default
import Mathlib.data.list.perm
import Mathlib.data.list.chain
import Mathlib.PostPort
universes u_1 uu
name... |
29cad3bbc7a0982130aaf1f88d56e9db1f7759b6 | 1abd1ed12aa68b375cdef28959f39531c6e95b84 | /src/linear_algebra/finite_dimensional.lean | 969a7cdaff01eb32d604af39b2eb2a5317f7aa4c | [
"Apache-2.0"
] | permissive | jumpy4/mathlib | d3829e75173012833e9f15ac16e481e17596de0f | af36f1a35f279f0e5b3c2a77647c6bf2cfd51a13 | refs/heads/master | 1,693,508,842,818 | 1,636,203,271,000 | 1,636,203,271,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 68,707 | lean | /-
Copyright (c) 2019 Chris Hughes. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Chris Hughes
-/
import algebra.algebra.subalgebra
import field_theory.finiteness
/-!
# Finite dimensional vector spaces
Definition and basic properties of finite dimensional vector spa... |
3888c92f9438161a17a511276197991d659874b6 | 6dc0c8ce7a76229dd81e73ed4474f15f88a9e294 | /stage0/src/Std/Data/HashMap.lean | 98a51473652e60c717ebaa6ad94c5a78824a01b2 | [
"Apache-2.0"
] | permissive | williamdemeo/lean4 | 72161c58fe65c3ad955d6a3050bb7d37c04c0d54 | 6d00fcf1d6d873e195f9220c668ef9c58e9c4a35 | refs/heads/master | 1,678,305,356,877 | 1,614,708,995,000 | 1,614,708,995,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 7,191 | 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.AssocList
namespace Std
universes u v w
def HashMapBucket (α : Type u) (β : Type v) :=
{ b : Array (AssocList α β) // b.size > 0 }
def Ha... |
68e24d1e4e17cc30cae5c3e98121c3f142e0be23 | 947fa6c38e48771ae886239b4edce6db6e18d0fb | /src/algebra/quaternion.lean | ccead14a9e35b77e12d49dec629b914e9dda447d | [
"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 | 25,020 | lean | /-
Copyright (c) 2020 Yury Kudryashov. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Yury Kudryashov
-/
import algebra.algebra.basic
import set_theory.cardinal.ordinal
import tactic.ring_exp
/-!
# Quaternions
In this file we define quaternions `ℍ[R]` over a commutat... |
b257b5a46e7c01ae401ebca73c40c3d4592ce08b | d642a6b1261b2cbe691e53561ac777b924751b63 | /src/data/list/basic.lean | 17ea29d46856a3b0f8760df8b4bf3aee8b9b5a3b | [
"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 | 219,307 | 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
Basic properties of lists.
-/
import
tactic.interactive tactic.mk_iff_of_inductive_prop
logi... |
737de676a3e47d0b0a0ea1eedb597dcec8ba8888 | 9dc8cecdf3c4634764a18254e94d43da07142918 | /src/measure_theory/covering/differentiation.lean | db35ceea73f92d38fa39c63c28759c7dd5939974 | [
"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 | 42,155 | 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.covering.vitali_family
import measure_theory.measure.regular
import measure_theory.function.ae_measurable_order
import measure_theory.inte... |
b8e212debc213229761a8be219d351120b5eb69b | 7cef822f3b952965621309e88eadf618da0c8ae9 | /src/data/real/ennreal.lean | a45ea8aaf729adbda2f4f83ae39ea74c57e0ff42 | [
"Apache-2.0"
] | permissive | rmitta/mathlib | 8d90aee30b4db2b013e01f62c33f297d7e64a43d | 883d974b608845bad30ae19e27e33c285200bf84 | refs/heads/master | 1,585,776,832,544 | 1,576,874,096,000 | 1,576,874,096,000 | 153,663,165 | 0 | 2 | Apache-2.0 | 1,544,806,490,000 | 1,539,884,365,000 | Lean | UTF-8 | Lean | false | false | 39,559 | 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, Yury Kudryashov
Extended non-negative reals
-/
import data.real.nnreal order.bounds data.set.intervals tactic.norm_num
noncomputable theory
open classical set lattice
... |
14c268b70b8639ce38d11ae6ec45efa25a44c56b | b7f22e51856f4989b970961f794f1c435f9b8f78 | /hott/types/trunc.hlean | ce877e579bcbe2def22d2163cc0b351de5a53293 | [
"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 | 32,543 | hlean | /-
Copyright (c) 2015 Jakob von Raumer. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Floris van Doorn
Properties of trunc_index, is_trunc, trunctype, trunc, and the pointed versions of these
-/
-- NOTE: the fact that (is_trunc n A) is a mere proposition is proved i... |
8dcb7a093ebb75e89d8e37549dc88801a601c505 | 9028d228ac200bbefe3a711342514dd4e4458bff | /src/group_theory/perm/cycles.lean | 5202acce23f99445da2ec29b7e239706e70b83d5 | [
"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 | 8,683 | lean | /-
Copyright (c) 2019 Chris Hughes. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Chris Hughes
-/
import group_theory.perm.sign
import group_theory.order_of_element
namespace equiv.perm
open equiv function finset
variables {α : Type*} {β : Type*} [decidable_eq α]
/-... |
f3ffcc58d4bc7e5d1d1f908bf19413db38a1a7e0 | ae1e94c332e17c7dc7051ce976d5a9eebe7ab8a5 | /src/Lean/Meta/ForEachExpr.lean | 871099c9f7b018058aa297b43a7f4696accb50b4 | [
"Apache-2.0"
] | permissive | dupuisf/lean4 | d082d13b01243e1de29ae680eefb476961221eef | 6a39c65bd28eb0e28c3870188f348c8914502718 | refs/heads/master | 1,676,948,755,391 | 1,610,665,114,000 | 1,610,665,114,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 2,245 | 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.Expr
import Lean.Util.MonadCache
import Lean.Meta.Basic
namespace Lean.Meta
namespace ForEachExpr
abbrev M := MonadCacheT Expr Unit MetaM
mut... |
fba36341291cdc304fd7635dce42aba2a28358c2 | 57c233acf9386e610d99ed20ef139c5f97504ba3 | /src/order/modular_lattice.lean | 5b3cbea369240872c6faee7cdb6f71fabeedebd3 | [
"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,655 | 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 order.rel_iso
import order.lattice_intervals
import order.galois_connection
/-!
# Modular Lattices
This file defines Modular Lattices, a kind of lattice usefu... |
f838e09f779c88b7e990c41ba7435272e8c3118a | b328e8ebb2ba923140e5137c83f09fa59516b793 | /stage0/src/Lean/Meta/ExprDefEq.lean | aadc21f5eadc07518e76bc8b6690985c1adcd8bf | [
"Apache-2.0"
] | permissive | DrMaxis/lean4 | a781bcc095511687c56ab060e816fd948553e162 | 5a02c4facc0658aad627cfdcc3db203eac0cb544 | refs/heads/master | 1,677,051,517,055 | 1,611,876,226,000 | 1,611,876,226,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 54,713 | 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.ProjFns
import Lean.Meta.WHNF
import Lean.Meta.InferType
import Lean.Meta.FunInfo
import Lean.Meta.LevelDefEq
import Lean.Meta.Check
import Lean... |
2744be73a5217436c9ac6c79a0f789baab0f6000 | d436468d80b739ba7e06843c4d0d2070e43448e5 | /src/topology/uniform_space/cauchy.lean | 636bd170db79b9731b8e81b17b09691e4e36ce72 | [
"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 | 16,353 | 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 Cauchy filters in uniform spaces. Complete uniform spaces. Totally bounded subsets.
-/
import topology.uniform_space.basic
open filter topolo... |
c7eb12a01f25c94dd20022edb89bff4e473527af | a9d0fb7b0e4f802bd3857b803e6c5c23d87fef91 | /tests/lean/nat_pp.lean | 1f2e4f91b9dc26dd6de03f87003ea7938a2ad29c | [
"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 | 112 | lean | eval nat.add (nat.of_num 3) (nat.of_num 6)
open nat
eval nat.add (nat.of_num 3) (nat.of_num 6)
eval (3:nat) + 6
|
71a0ac3fd0bf6046b29a770677417a782b69ed79 | a45212b1526d532e6e83c44ddca6a05795113ddc | /src/category_theory/functor.lean | 3d1060026588e38d63eb4de822bf5b777160c469 | [
"Apache-2.0"
] | permissive | fpvandoorn/mathlib | b21ab4068db079cbb8590b58fda9cc4bc1f35df4 | b3433a51ea8bc07c4159c1073838fc0ee9b8f227 | refs/heads/master | 1,624,791,089,608 | 1,556,715,231,000 | 1,556,715,231,000 | 165,722,980 | 5 | 0 | Apache-2.0 | 1,552,657,455,000 | 1,547,494,646,000 | Lean | UTF-8 | Lean | false | false | 3,118 | 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
Defines a functor between categories.
(As it is a 'bundled' object rather than the `is_functorial` typeclass parametrised
by the underlyin... |
0f3abd5af269c21c7b15f4156b693a35cf60bbc2 | 8cae430f0a71442d02dbb1cbb14073b31048e4b0 | /src/measure_theory/function/egorov.lean | d6d2f6c83c226690cc0d1bdbc2b413e1a3b45b70 | [
"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 | 10,921 | lean | /-
Copyright (c) 2022 Kexing Ying. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Kexing Ying
-/
import measure_theory.function.strongly_measurable.basic
/-!
# Egorov theorem
> THIS FILE IS SYNCHRONIZED WITH MATHLIB4.
> Any changes to this file require a correspondin... |
f76cd76a3f212ec41fbc414a9d256c68158671be | 80cc5bf14c8ea85ff340d1d747a127dcadeb966f | /src/algebra/group/commute.lean | a2c91355fac3db69384d165abade8a7954cfc724 | [
"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 | 4,625 | lean | /-
Copyright (c) 2019 Neil Strickland. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Neil Strickland, Yury Kudryashov
-/
import algebra.group.semiconj
/-!
# Commuting pairs of elements in monoids
We define the predicate `commute a b := a * b = b * a` and provide som... |
a8ad0d75594662ef1510b74bc8fb2b2d1bf0d476 | 4d2583807a5ac6caaffd3d7a5f646d61ca85d532 | /test/instance_diamonds.lean | 23eb9415c28b3d51fdd98c2a263566ab72ea0e21 | [
"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 | 2,599 | lean | /-
Copyright (c) 2021 Eric Wieser. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Eric Wieser
-/
import algebra.module.pi
import data.polynomial.basic
import group_theory.group_action.prod
import group_theory.group_action.units
import data.complex.module
/-! # Tests ... |
5fd922d109a773109912ecc2c12816d2a2150212 | 86f6f4f8d827a196a32bfc646234b73328aeb306 | /examples/logic/unnamed_1116.lean | 9175f2b9eb46b6c956e9720290781698c26001e5 | [] | 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 | 406 | lean | import data.real.basic
def fn_ub (f : ℝ → ℝ) (a : ℝ) : Prop := ∀ x, f x ≤ a
def fn_lb (f : ℝ → ℝ) (a : ℝ) : Prop := ∀ x, a ≤ f x
def fn_has_ub (f : ℝ → ℝ) := ∃ a, fn_ub f a
def fn_has_lb (f : ℝ → ℝ) := ∃ a, fn_lb f a
variable f : ℝ → ℝ
-- BEGIN
example (h : ∀ a, ∃ x, f x < a) : ¬ fn_has_lb f :=
sorry
example : ¬ f... |
32b26ff5855a90e1ee602fb98e34071e0fe081c0 | 82e44445c70db0f03e30d7be725775f122d72f3e | /src/algebra/group/hom_instances.lean | 516a3592e4dd69c38eb92871972a7e8d8906541e | [
"Apache-2.0"
] | permissive | stjordanis/mathlib | 51e286d19140e3788ef2c470bc7b953e4991f0c9 | 2568d41bca08f5d6bf39d915434c8447e21f42ee | refs/heads/master | 1,631,748,053,501 | 1,627,938,886,000 | 1,627,938,886,000 | 228,728,358 | 0 | 0 | Apache-2.0 | 1,576,630,588,000 | 1,576,630,587,000 | null | UTF-8 | Lean | false | false | 10,245 | lean | /-
Copyright (c) 2018 Patrick Massot. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Patrick Massot, Kevin Buzzard, Scott Morrison, Johan Commelin, Chris Hughes,
Johannes Hölzl, Yury Kudryashov
-/
import algebra.group_power.basic
/-!
# Instances on spaces of monoid... |
fa4b5c995d731edfb16f4490e4e60edca101e5ad | aa5a655c05e5359a70646b7154e7cac59f0b4132 | /stage0/src/Lean/Elab/Inductive.lean | 866606fc73043b01b99d80d9c6f5855e63f92a28 | [
"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 | 24,514 | 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.ReplaceLevel
import Lean.Util.ReplaceExpr
import Lean.Util.CollectLevelParams
import Lean.Util.Constructions
import Lean.Meta.SizeOf
import... |
7d67135c0634c3d950be4bdfc23f4bdeb164af19 | 82e44445c70db0f03e30d7be725775f122d72f3e | /src/analysis/complex/isometry.lean | 059003eaa4b657db05b526e246b3e69d6571a6dd | [
"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 | 4,925 | lean | /-
Copyright (c) 2021 François Sunatori. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: François Sunatori
-/
import analysis.complex.circle
/-!
# Isometries of the Complex Plane
The lemma `linear_isometry_complex` states the classification of isometries in the comple... |
482d44408bc19f14dbe4f103cb6c0a80e3188dfd | 9dc8cecdf3c4634764a18254e94d43da07142918 | /src/algebraic_topology/dold_kan/faces.lean | 17795196e3833c5092d7ec2f2f6feae859a2f58a | [
"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 | 9,671 | lean | /-
Copyright (c) 2022 Joël Riou. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Joël Riou
-/
import algebraic_topology.dold_kan.homotopies
import data.nat.parity
import tactic.ring_exp
/-!
# Study of face maps for the Dold-Kan correspondence
TODO (@joelriou) contin... |
12d32f01645ac4667f4699a6a162236750c04393 | 947fa6c38e48771ae886239b4edce6db6e18d0fb | /src/measure_theory/integral/divergence_theorem.lean | d931f9c9e463fa7170635e75a85573a1a11ecaad | [
"Apache-2.0"
] | permissive | ramonfmir/mathlib | c5dc8b33155473fab97c38bd3aa6723dc289beaa | 14c52e990c17f5a00c0cc9e09847af16fabbed25 | refs/heads/master | 1,661,979,343,526 | 1,660,830,384,000 | 1,660,830,384,000 | 182,072,989 | 0 | 0 | null | 1,555,585,876,000 | 1,555,585,876,000 | null | UTF-8 | Lean | false | false | 30,250 | lean | /-
Copyright (c) 2021 Yury Kudryashov. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Yury Kudryashov
-/
import analysis.box_integral.divergence_theorem
import analysis.box_integral.integrability
import measure_theory.integral.interval_integral
import data.set.interval... |
a17abea4b72cccd019f4a939d568a44c8a1aca2e | 54d7e71c3616d331b2ec3845d31deb08f3ff1dea | /tests/lean/hex_char.lean | 1fff899be04f53c253a5ec31e4930fba2eda89f0 | [
"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 | 42 | lean | #eval #"\x41"
#eval #"\x42"
#eval #"\x43"
|
ea4982bea3a87612690aeeb639668063a699220d | 9b9a16fa2cb737daee6b2785474678b6fa91d6d4 | /src/group_theory/sylow.lean | 2c3a18dc2ba1b6553df34482ff9924932dc8f36d | [
"Apache-2.0"
] | permissive | johoelzl/mathlib | 253f46daa30b644d011e8e119025b01ad69735c4 | 592e3c7a2dfbd5826919b4605559d35d4d75938f | refs/heads/master | 1,625,657,216,488 | 1,551,374,946,000 | 1,551,374,946,000 | 98,915,829 | 0 | 0 | Apache-2.0 | 1,522,917,267,000 | 1,501,524,499,000 | Lean | UTF-8 | Lean | false | false | 11,476 | lean | /-
Copyright (c) 2018 Chris Hughes. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Chris Hughes
-/
import group_theory.order_of_element data.zmod.basic algebra.pi_instances group_theory.group_action group_theory.quotient_group
open equiv fintype finset is_group_action... |
6d928e31bf6e709aa3b9061f1747d5c7c9c8539c | 57aec6ee746bc7e3a3dd5e767e53bd95beb82f6d | /tests/lean/run/casesUsing.lean | 3e9232fbf46c8ac351174db5c140a57ee2267a0c | [
"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 | 4,409 | lean | import Lean
open Lean
open Lean.Meta
open Lean.Elab.Tactic
universes u
axiom elimEx (motive : Nat → Nat → Sort u) (x y : Nat)
(diag : (a : Nat) → motive a a)
(upper : (delta a : Nat) → motive a (a + delta.succ))
(lower : (delta a : Nat) → motive (a + delta.succ) a)
: motive y x
theorem ex1 (p q : Nat) : p ≤... |
6696a25565e007bd469fa6fb2806bcc71f21c2d0 | e00ea76a720126cf9f6d732ad6216b5b824d20a7 | /src/analysis/complex/basic.lean | 6559ff1cf6b423fdd53ee32cf87e6a48ffb85d00 | [
"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 | 7,916 | lean | /-
Copyright (c) Sébastien Gouëzel. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Sébastien Gouëzel
-/
import analysis.calculus.deriv analysis.normed_space.finite_dimension
/-!
# Normed space structure on `ℂ`.
This file gathers basic facts on complex numbers of an a... |
7ed6a7755cdc2e9d5c332d09d579323e2ab39bee | 947b78d97130d56365ae2ec264df196ce769371a | /stage0/src/Lean/Parser/Module.lean | 792460dc714e104e03c265c0207ce6f613933bdb | [
"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 | 5,736 | 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
-/
import Lean.Message
import Lean.Parser.Command
namespace Lean
namespace Parser
namespace Module
def «prelude» := parser! "prelude"
def... |
8fa39e43fd0054e936c31d195ab575ffccfc3f9b | 947fa6c38e48771ae886239b4edce6db6e18d0fb | /src/algebra/direct_sum/basic.lean | 41dc51d6a0cdff491af4a6017cdfb256d29b03c6 | [
"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 | 11,063 | lean | /-
Copyright (c) 2019 Kenny Lau. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Kenny Lau
-/
import data.dfinsupp.basic
import group_theory.submonoid.operations
import group_theory.subgroup.basic
/-!
# Direct sum
This file defines the direct sum of abelian groups, ind... |
02d57a82e70d3c7dc1b4b91efb46cf6ce3f48ee9 | f20db13587f4dd28a4b1fbd31953afd491691fa0 | /library/init/data/nat/lemmas.lean | 34b93c585028afafc9d66aaaf02c7b379c2487f3 | [
"Apache-2.0"
] | permissive | AHartNtkn/lean | 9a971edfc6857c63edcbf96bea6841b9a84cf916 | 0d83a74b26541421fc1aa33044c35b03759710ed | refs/heads/master | 1,620,592,591,236 | 1,516,749,881,000 | 1,516,749,881,000 | 118,697,288 | 1 | 0 | null | 1,516,759,470,000 | 1,516,759,470,000 | null | UTF-8 | Lean | false | false | 50,387 | lean | /-
Copyright (c) 2016 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Leonardo de Moura, Jeremy Avigad
-/
prelude
import init.data.nat.basic init.data.nat.div init.data.nat.pow init.meta init.algebra.functions
universes u
namespace nat
attribute ... |
fabf2cabb147d672c64e687c03f5004ad300a95f | 46125763b4dbf50619e8846a1371029346f4c3db | /src/topology/algebra/module.lean | ded4cbbb846e6b31a74b85b78eb64e365b12ace0 | [
"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 | 21,850 | lean | /-
Copyright (c) 2019 Sébastien Gouëzel. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Jan-David Salchow, Sébastien Gouëzel, Jean Lo
-/
import topology.algebra.ring linear_algebra.basic ring_theory.algebra
/-!
# Theory of topological modules and continuous linear m... |
b8978f18787ad9ae5b17748aafa3cfede4d52a81 | a45212b1526d532e6e83c44ddca6a05795113ddc | /src/tactic/tauto.lean | a9d5a52a58e4053e7adce0f476a81ecfdb6d0e2b | [
"Apache-2.0"
] | permissive | fpvandoorn/mathlib | b21ab4068db079cbb8590b58fda9cc4bc1f35df4 | b3433a51ea8bc07c4159c1073838fc0ee9b8f227 | refs/heads/master | 1,624,791,089,608 | 1,556,715,231,000 | 1,556,715,231,000 | 165,722,980 | 5 | 0 | Apache-2.0 | 1,552,657,455,000 | 1,547,494,646,000 | Lean | UTF-8 | Lean | false | false | 7,650 | lean |
import logic.basic tactic.basic
namespace tactic
open expr
open tactic.interactive ( casesm constructor_matching )
/--
find all assumptions of the shape `¬ (p ∧ q)` or `¬ (p ∨ q)` and
replace them using de Morgan's law.
-/
meta def distrib_not : tactic unit :=
do hs ← local_context,
hs.for_each $ λ h,
al... |
9b720b31fd2aa45486edd1a07f4c8d113b2b81a5 | 5749d8999a76f3a8fddceca1f6941981e33aaa96 | /src/data/real/nnreal.lean | 379a9e212d93c0fc13cbb7ae560861e324a8aa23 | [
"Apache-2.0"
] | permissive | jdsalchow/mathlib | 13ab43ef0d0515a17e550b16d09bd14b76125276 | 497e692b946d93906900bb33a51fd243e7649406 | refs/heads/master | 1,585,819,143,348 | 1,580,072,892,000 | 1,580,072,892,000 | 154,287,128 | 0 | 0 | Apache-2.0 | 1,540,281,610,000 | 1,540,281,609,000 | null | UTF-8 | Lean | false | false | 20,413 | lean | /-
Copyright (c) 2018 Johan Commelin. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Johan Commelin
Nonnegative real numbers.
-/
import data.real.basic order.lattice algebra.field
noncomputable theory
open lattice
open_locale classical
/-- Nonnegative real numbers.... |
183c0e03da9a51fd4eb2510905ec6a0e17541949 | fe25de614feb5587799621c41487aaee0d083b08 | /src/Lean/Meta/Basic.lean | 2d137ddb16d0c6047b985272c4b86affd8f67b34 | [
"Apache-2.0"
] | permissive | pollend/lean4 | e8469c2f5fb8779b773618c3267883cf21fb9fac | c913886938c4b3b83238a3f99673c6c5a9cec270 | refs/heads/master | 1,687,973,251,481 | 1,628,039,739,000 | 1,628,039,739,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 48,740 | 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.LOption
import Lean.Environment
import Lean.Class
import Lean.ReducibilityAttrs
import Lean.Util.Trace
import Lean.Util.RecDepth
import Lea... |
90a3ce56fdb7b0349c14a94f5f4090ec1f9b13bc | 74addaa0e41490cbaf2abd313a764c96df57b05d | /Mathlib/topology/category/CompHaus_auto.lean | e6fa2af16ec2cfe6f43cb86aa1693ac1635f7e3b | [] | 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,160 | lean | /-
Copyright (c) 2020 Adam Topaz. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Adam Topaz
-/
import Mathlib.PrePort
import Mathlib.Lean3Lib.init.default
import Mathlib.topology.category.Top.default
import Mathlib.PostPort
universes u_1 l
namespace Mathlib
/-!
# ... |
93b18305e3d92c8f22e0badb606c4075cf67b048 | 097294e9b80f0d9893ac160b9c7219aa135b51b9 | /instructor/functions/intro.lean | 28bd252b000acf93d575c172f755dc24243972fd | [] | no_license | AbigailCastro17/CS2102-Discrete-Math | cf296251be9418ce90206f5e66bde9163e21abf9 | d741e4d2d6a9b2e0c8380e51706218b8f608cee4 | refs/heads/main | 1,682,891,087,358 | 1,621,401,341,000 | 1,621,401,341,000 | 368,749,959 | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 527 | lean |
-- Function expression are terms that have types
#check band
#check nat.add
#check string.append
-- Function application expressions are terms that have types
#check band tt tt
#check nat.add 2 3
#check string.append "I love " "logic!"
-- Function application expessions reduce to return values
#eval band tt tt
#eva... |
daeecffdb6f8641dd57f2c3b7060485b7e54ba08 | 02005f45e00c7ecf2c8ca5db60251bd1e9c860b5 | /src/data/set/lattice.lean | e203aa204a2b483a5a46c896bcb43577da4c47f5 | [
"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 | 49,940 | lean | /-
Copyright (c) 2014 Jeremy Avigad. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Jeremy Avigad, Leonardo de Moura, Johannes Hölzl, Mario Carneiro
-- QUESTION: can make the first argument in ∀ x ∈ a, ... implicit?
-/
import order.complete_boolean_algebra
import data... |
b3a1c15d728c5741bd9aec833c9eea86ca9b9d98 | 041929c569a4eeeafb4efdddab8a644f6df383c5 | /src/game/intro.lean | 09e1bf3fd86576d84db73fed385a3e64b916a8cf | [] | no_license | kbuzzard/xena-maze-game | 30ffbe956762dd6603e74efd823d375649e037c3 | 098454dd6acc4c06beccf52b6547bf4cd99cc581 | refs/heads/master | 1,670,840,300,174 | 1,598,554,198,000 | 1,598,554,198,000 | 290,856,036 | 4 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 755 | lean | /-
# The Maze Game, version 1.3.0.
## By Kevin Buzzard
An idea coming out of discussions with Kendall Frey.
# What is this game?
Four mazes and a theorem (which I must confess I haven't yet proved).
You are in a maze of twisty passages, all distinct (at this point).
Use the tactics `n`, `s`, `e`, `w` to escape.
U... |
9fe543b05c50df2f8dc6fe7972b7f8f9853f1401 | ae1e94c332e17c7dc7051ce976d5a9eebe7ab8a5 | /tests/compiler/thunk.lean | 80f5cbe31ad17e4bee13f52f88687a6f9f37b897 | [
"Apache-2.0"
] | permissive | dupuisf/lean4 | d082d13b01243e1de29ae680eefb476961221eef | 6a39c65bd28eb0e28c3870188f348c8914502718 | refs/heads/master | 1,676,948,755,391 | 1,610,665,114,000 | 1,610,665,114,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 309 | lean | #lang lean4
def compute (v : Nat) : Thunk Nat :=
⟨fun _ => let xs := List.replicate 100000 v; xs.foldl Nat.add 0⟩
@[noinline]
def test (t : Thunk Nat) (n : Nat) : Nat :=
n.repeat (fun r => t.get + r) 0
def main (xs : List String) : IO UInt32 :=
IO.println (toString (test (compute 1) 100000)) *>
pure 0
|
a11d52dbdcbc7e3a5fbdbe4f41d7612ad20cea29 | d1bbf1801b3dcb214451d48214589f511061da63 | /src/field_theory/algebraic_closure.lean | d4f6886bc56c7cb14da8e5e14345e7b762ac4c65 | [
"Apache-2.0"
] | permissive | cheraghchi/mathlib | 5c366f8c4f8e66973b60c37881889da8390cab86 | f29d1c3038422168fbbdb2526abf7c0ff13e86db | refs/heads/master | 1,676,577,831,283 | 1,610,894,638,000 | 1,610,894,638,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 13,147 | 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.direct_limit
import field_theory.splitting_field
import analysis.complex.polynomial
/-!
# Algebraic Closure
In this file we define the typeclass for algebraic... |
9e0b5b7009748008197bd5ef1b0e3080c9009a1f | d406927ab5617694ec9ea7001f101b7c9e3d9702 | /src/analysis/normed_space/star/matrix.lean | 241239a3b397645fa5c1637219b1b084866466d7 | [
"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 | 2,476 | lean | /-
Copyright (c) 2022 Hans Parshall. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Hans Parshall
-/
import analysis.matrix
import analysis.normed_space.basic
import data.complex.is_R_or_C
import linear_algebra.unitary_group
/-!
# Unitary matrices
This file collects ... |
e0acb969e5b81de21803fd7342ebea2c12b5874b | 8cae430f0a71442d02dbb1cbb14073b31048e4b0 | /src/linear_algebra/cross_product.lean | 524459f74911051a5e9d7724708acc72f025131e | [
"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,463 | 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... |
f4cce185b4292eac0a14d2ce56459f09a3dad247 | 6432ea7a083ff6ba21ea17af9ee47b9c371760f7 | /tests/lean/run/infixprio.lean | ef882389faa7ba7288101b9705a5ccd92a320a19 | [
"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 | 196 | lean | def f (x y : Nat) : Nat :=
x + 2*y
-- "+" with priority higher than the builtin "+" notation
infix:65 (priority := high) "+" => f
#check 1 + 2
theorem ex (x y : Nat) : x + y = f x y :=
rfl
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.