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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
c9b8911769a0e6c0e82c5c984fd222fe3cf6b97b | a0e23cfdd129a671bf3154ee1a8a3a72bf4c7940 | /src/Lean/MonadEnv.lean | a6170d685dcf06902410403d6db3202a76d6ca5e | [
"Apache-2.0"
] | permissive | WojciechKarpiel/lean4 | 7f89706b8e3c1f942b83a2c91a3a00b05da0e65b | f6e1314fa08293dea66a329e05b6c196a0189163 | refs/heads/master | 1,686,633,402,214 | 1,625,821,189,000 | 1,625,821,258,000 | 384,640,886 | 0 | 0 | Apache-2.0 | 1,625,903,617,000 | 1,625,903,026,000 | null | UTF-8 | Lean | false | false | 7,175 | 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.Environment
import Lean.Exception
import Lean.Declaration
import Lean.Util.FindExpr
import Lean.AuxRecursor
namespace Lean
def setEnv [MonadEn... |
65e8cf470769ba2e114ec5e95cd2c29d51d8c561 | 9be442d9ec2fcf442516ed6e9e1660aa9071b7bd | /stage0/src/Init/Control/Reader.lean | eddf6c602f6e39438a7abb45711749bc45956cbc | [
"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 | 1,052 | lean | /-
Copyright (c) 2017 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Sebastian Ullrich
The Reader monad transformer for passing immutable State.
-/
prelude
import Init.Control.Basic
import Init.Control.Id
import Init.Control.Except
namespace Re... |
b8835bc38c1dda040c850500a2251752f69135fb | 8cae430f0a71442d02dbb1cbb14073b31048e4b0 | /src/measure_theory/constructions/polish.lean | 63cf523501aca03eea562c4cb2ecd9cc24997be2 | [
"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 | 47,777 | lean | /-
Copyright (c) 2022 Sébastien Gouëzel. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Sébastien Gouëzel, Felix Weilacher
-/
import data.real.cardinality
import topology.perfect
import measure_theory.constructions.borel_space.basic
/-!
# The Borel sigma-algebra on Po... |
6ae54de2cdda1a57b2575ec9e203d61374e4f1c9 | 4950bf76e5ae40ba9f8491647d0b6f228ddce173 | /src/group_theory/coset.lean | 8b313d207d57475cd70072dbbc4cbfffcb8ea0d2 | [
"Apache-2.0"
] | permissive | ntzwq/mathlib | ca50b21079b0a7c6781c34b62199a396dd00cee2 | 36eec1a98f22df82eaccd354a758ef8576af2a7f | refs/heads/master | 1,675,193,391,478 | 1,607,822,996,000 | 1,607,822,996,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 11,402 | lean | /-
Copyright (c) 2018 Mitchell Rowett. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Mitchell Rowett, Scott Morrison
-/
import group_theory.subgroup
open set function
variable {α : Type*}
/-- The left coset `a*s` corresponding to an element `a : α` and a subset `s ... |
b012bedb02df499be08a7fbb0955a3317bec44c3 | 4727251e0cd73359b15b664c3170e5d754078599 | /src/linear_algebra/prod.lean | a2898792568a73b0c0a7569ff5a9cd812ee2f8c8 | [
"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 | 30,199 | 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, Kevin Buzzard, Yury Kudryashov, Eric Wieser
-/
import linear_algebra.span
import order.partial_sups
import algebra.algebra.basic
/-! ### Products of mo... |
83a915ad4d7ad189a5f05083f3723a764e916508 | 675b8263050a5d74b89ceab381ac81ce70535688 | /src/analysis/normed_space/dual.lean | 6a5270793328614fbd12af313da1e586c2c3964a | [
"Apache-2.0"
] | permissive | vozor/mathlib | 5921f55235ff60c05f4a48a90d616ea167068adf | f7e728ad8a6ebf90291df2a4d2f9255a6576b529 | refs/heads/master | 1,675,607,702,231 | 1,609,023,279,000 | 1,609,023,279,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 11,869 | lean | /-
Copyright (c) 2020 Heather Macbeth. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Heather Macbeth, Frédéric Dupuis
-/
import analysis.normed_space.hahn_banach
import analysis.normed_space.inner_product
/-!
# The topological dual of a normed space
In this file we ... |
2265d179ffd287dbcfc205b5585cec50a5584f0c | 302c785c90d40ad3d6be43d33bc6a558354cc2cf | /src/data/zsqrtd/basic.lean | 47e675b88e774a4c380a829c07ec24171c4c0cd0 | [
"Apache-2.0"
] | permissive | ilitzroth/mathlib | ea647e67f1fdfd19a0f7bdc5504e8acec6180011 | 5254ef14e3465f6504306132fe3ba9cec9ffff16 | refs/heads/master | 1,680,086,661,182 | 1,617,715,647,000 | 1,617,715,647,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 29,790 | lean | /-
Copyright (c) 2017 Mario Carneiro. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Mario Carneiro
-/
import algebra.associated
import tactic.ring
/-- The ring of integers adjoined with a square root of `d`.
These have the form `a + b √d` where `a b : ℤ`. The compo... |
2e93754f7adb9f32ae4611a360c2d673d65e4b08 | 9dc8cecdf3c4634764a18254e94d43da07142918 | /src/data/set/intervals/basic.lean | af601cd479b825f77cb83be7b2a107734974d66c | [
"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 | 59,751 | 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, Yury Kudryashov, Rémy Degenne
-/
import algebra.order.group
import order.rel_iso
/-!
# Intervals
In any preorder `α`, we define interv... |
b5d6d05ac9904806562844eb83cc62a9c2182a2f | d9d511f37a523cd7659d6f573f990e2a0af93c6f | /src/ring_theory/polynomial/gauss_lemma.lean | 91cbbaa6d63532c34812e55d63bde38850e5200a | [
"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 | 7,907 | 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 ring_theory.int.basic
import ring_theory.localization
/-!
# Gauss's Lemma
Gauss's Lemma is one of a few results pertaining to irreducibility of primitive pol... |
e0d0a288001670aea42186aa187bcae338f27319 | 6432ea7a083ff6ba21ea17af9ee47b9c371760f7 | /tests/lean/run/CompilerSimp.lean | 6288c2bb730bcc0924cae03606942f20eeb426cf | [
"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 | 654 | lean | import Lean.Compiler.Main
import Lean.Compiler.LCNF.Testing
import Lean.Elab.Do
open Lean
open Lean.Compiler.LCNF
-- Run compilation twice to avoid the output caused by the inliner
#eval Compiler.compile #[``Lean.Meta.synthInstance, ``Lean.Elab.Term.Do.elabDo]
@[cpass]
def simpFixTest : PassInstaller := Testing.asse... |
497e5fb25593501b91f1f79c991804f9312bcdc7 | 54d7e71c3616d331b2ec3845d31deb08f3ff1dea | /library/init/meta/smt/interactive.lean | e4f9c308807d2cca1b4fc059b446c9b4663ba94d | [
"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 | 10,257 | lean | /-
Copyright (c) 2017 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Leonardo de Moura
-/
prelude
import init.meta.smt.smt_tactic init.meta.interactive
import init.meta.smt.rsimp
namespace smt_tactic
meta def save_info (p : pos) : smt_tactic uni... |
01971cd6d6469cffd40b605948a4335e3aaa2b9b | 19cc34575500ee2e3d4586c15544632aa07a8e66 | /src/algebra/group_with_zero_power.lean | b22d53db579220a1409331449824760f9c0a5a26 | [
"Apache-2.0"
] | permissive | LibertasSpZ/mathlib | b9fcd46625eb940611adb5e719a4b554138dade6 | 33f7870a49d7cc06d2f3036e22543e6ec5046e68 | refs/heads/master | 1,672,066,539,347 | 1,602,429,158,000 | 1,602,429,158,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 8,382 | lean | /-
Copyright (c) 2020 Johan Commelin. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Johan Commelin
-/
import algebra.group_power
/-!
# Powers of elements of groups with an adjoined zero element
In this file we define integer power functions for groups with an adjoin... |
b99985df3f916dd42f357971bdec7964ee35d1aa | 96338d06deb5f54f351493a71d6ecf6c546089a2 | /priv/Lean/BiCat.lean | 8ab7d81e8ada00364365fb70f9fa03f4dcbd7e27 | [] | no_license | silky/exe | 5f9e4eea772d74852a1a2fac57d8d20588282d2b | e81690d6e16f2a83c105cce446011af6ae905b81 | refs/heads/master | 1,609,385,766,412 | 1,472,164,223,000 | 1,472,164,223,000 | 66,610,224 | 1 | 0 | null | 1,472,178,919,000 | 1,472,178,919,000 | null | UTF-8 | Lean | false | false | 1,900 | lean | /- BiCat.lean -/
import Setoid
import Cat
import Functor
namespace EXE
namespace Bicat
-- carrier of a bicategory: type of morphisms
abbreviation HomType (Ob : Type) : Type := Π(Dom Cod : Ob), CatType
-- print HomType
-- structure of a bicategory (operations of degree 0)
section withHom
... |
e37a8cc0d3c8d989384b5222713a929abd949bcb | 367134ba5a65885e863bdc4507601606690974c1 | /src/category_theory/sites/canonical.lean | d9911a10fdc5d7fe022fe1648c690d7bd7c04299 | [
"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 | 9,654 | 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.sites.sheaf_of_types
/-!
# The canonical topology on a category
We define the finest (largest) Grothendieck topology for which a given presheaf... |
f50e7b8f023865c8ea58a1185c6bea3ca33149b9 | 83c8119e3298c0bfc53fc195c41a6afb63d01513 | /library/init/algebra/group.lean | f78268c2f75dbd9a2903c0e0b753a5e4bcd1329f | [
"Apache-2.0"
] | permissive | anfelor/lean | 584b91c4e87a6d95f7630c2a93fb082a87319ed0 | 31cfc2b6bf7d674f3d0f73848b842c9c9869c9f1 | refs/heads/master | 1,610,067,141,310 | 1,585,992,232,000 | 1,585,992,232,000 | 251,683,543 | 0 | 0 | Apache-2.0 | 1,585,676,570,000 | 1,585,676,569,000 | null | UTF-8 | Lean | false | false | 16,395 | lean | /-
Copyright (c) 2016 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Jeremy Avigad, Leonardo de Moura
-/
prelude
import init.logic init.algebra.classes init.meta init.meta.decl_cmds init.meta.smt.rsimp
/- Make sure instances defined in this file... |
673f82b9d3d1c4663737423692522b9f48b75822 | 4727251e0cd73359b15b664c3170e5d754078599 | /src/category_theory/over.lean | fdd8918063f6c8b57ed8cde7d527998d358b9050 | [
"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 | 11,774 | lean | /-
Copyright (c) 2019 Johan Commelin. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Johan Commelin, Bhavik Mehta
-/
import category_theory.structured_arrow
import category_theory.punit
import category_theory.functor.reflects_isomorphisms
import category_theory.epi_mon... |
254d11df6c3492593e114dc445bae6b39226e490 | 2c096fdfecf64e46ea7bc6ce5521f142b5926864 | /src/Init/NotationExtra.lean | 5cf84a9d59c799dcaf6f5840c95d27665698de69 | [
"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 | 16,550 | 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
Extra notation that depends on Init/Meta
-/
prelude
import Init.Meta
import Init.Data.Array.Subarray
import Init.Data.ToString
namespace Lean
macro "Macro.tr... |
42333a194f8eed52e39a13f52566efbb184427d9 | 29cc89d6158dd3b90acbdbcab4d2c7eb9a7dbf0f | /21_lecture.lean | f60e7a4240a80c070e5c7a25a44b36e1ba4042f5 | [] | no_license | KjellZijlemaker/Logical_Verification_VU | ced0ba95316a30e3c94ba8eebd58ea004fa6f53b | 4578b93bf1615466996157bb333c84122b201d99 | refs/heads/master | 1,585,966,086,108 | 1,549,187,704,000 | 1,549,187,704,000 | 155,690,284 | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 6,857 | lean | /- Lecture 2.1: Functional Programming — Lists -/
/- Lists -/
namespace my_list
-- length of a list
def length {α : Type} : list α → ℕ
| [] := 0
| (x :: xs) := length xs + 1
#reduce length [2,3,1]
-- count elements in a list
def bcount {α : Type} (p : α → bool) : list α → ℕ
| [] := 0
| (x :: xs) :=
... |
21c4b7a39913c4deb67bdea9eb6033110bd46a5d | 9be442d9ec2fcf442516ed6e9e1660aa9071b7bd | /stage0/src/Lean/Meta/Tactic/Replace.lean | 1bb22a3f53d14aa1fe794b7598b322bd89efc510 | [
"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 | 8,404 | 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.ForEachExpr
import Lean.Meta.AppBuilder
import Lean.Meta.MatchUtil
import Lean.Meta.Tactic.Util
import Lean.Meta.Tactic.Revert
import Lean.... |
a7dcb7d2a0f0e11d6ced6bc31483df7adbe5a07c | d406927ab5617694ec9ea7001f101b7c9e3d9702 | /src/linear_algebra/matrix/bilinear_form.lean | 9e198c8f1b5b017421074d6f0f14847bf8921fdf | [
"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 | 22,668 | lean | /-
Copyright (c) 2020 Anne Baanen. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Anne Baanen, Kexing Ying
-/
import linear_algebra.matrix.basis
import linear_algebra.matrix.nondegenerate
import linear_algebra.matrix.nonsingular_inverse
import linear_algebra.matrix.to... |
c6e25623a3e7e6e3aab18cb1810b1ed8dbcc6abe | cf39355caa609c0f33405126beee2739aa3cb77e | /tests/lean/type_error_at_eval_expr.lean | 641fa2500f9bf0589f327ddf13e8640d7a034cd9 | [
"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 | 88 | lean | open tactic
run_cmd do
e ← to_expr ``([5] : list ℕ),
eval_expr ℕ e,
return ()
|
0b843202c699bfd2ddf59ea3cde24fc60abb05f6 | 55c7fc2bf55d496ace18cd6f3376e12bb14c8cc5 | /src/linear_algebra/matrix.lean | fce5b94e24b8bbb5cd2dea453ac6174470e2e23c | [
"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 | 25,189 | lean | /-
Copyright (c) 2019 Johannes Hölzl. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Author: Johannes Hölzl, Casper Putz
-/
import linear_algebra.finite_dimensional
import linear_algebra.nonsingular_inverse
/-!
# Linear maps and matrices
This file defines the maps to send mat... |
f9107e1afb8f7fee0c46fb820bf0c46492859467 | 4c630d016e43ace8c5f476a5070a471130c8a411 | /order/filter.lean | 041b5a90e860e17f5eca6a07b7d302b6234fe1db | [
"Apache-2.0"
] | permissive | ngamt/mathlib | 9a510c391694dc43eec969914e2a0e20b272d172 | 58909bd424209739a2214961eefaa012fb8a18d2 | refs/heads/master | 1,585,942,993,674 | 1,540,739,585,000 | 1,540,916,815,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 90,156 | 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
Theory of filters on sets.
-/
import order.galois_connection order.zorn
import data.set.finite data.list
import category.applicative
open lattice set
universes u v w x... |
8b3f8bab9eaae3270eb742cb0e235d321996be46 | 957a80ea22c5abb4f4670b250d55534d9db99108 | /leanpkg/leanpkg/lean_version.lean | c1a7eddf6a908a0d432f656030b3230c93a7d1be | [
"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 | 550 | lean | /-
Copyright (c) 2017 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Author: Gabriel Ebner
-/
import leanpkg.config_vars
namespace leanpkg
open lean_version
def lean_version_string_core :=
major.repr ++ "." ++ minor.repr ++ "." ++ patch.repr
def lean_... |
3850ba1ffefc61b531d91fbd09b9ccf9e85657fb | 26bff4ed296b8373c92b6b025f5d60cdf02104b9 | /tests/lean/run/generalizes.lean | cb4b8d8e29aced854d32241691fc1d2b540c1cb0 | [
"Apache-2.0"
] | permissive | guiquanz/lean | b8a878ea24f237b84b0e6f6be2f300e8bf028229 | 242f8ba0486860e53e257c443e965a82ee342db3 | refs/heads/master | 1,526,680,092,098 | 1,427,492,833,000 | 1,427,493,281,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 159 | lean | import logic
theorem tst (A B : Type) (a : A) (b : B) : a == b → b == a :=
begin
generalizes (a, b, B),
intros (B', b, a, H),
apply (heq.symm H),
end
|
8f30bd85f17580a4ffd408e1cb1ec56d3dd61c47 | bb31430994044506fa42fd667e2d556327e18dfe | /src/topology/dense_embedding.lean | 261524bd0b5d815f81ccee3947ebe83b17522331 | [
"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 | 15,465 | lean | /-
Copyright (c) 2019 Reid Barton. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Johannes Hölzl, Mario Carneiro, Patrick Massot
-/
import topology.separation
import topology.bases
/-!
# Dense embeddings
This file defines three properties of functions:
* `dense_rang... |
cc9d52fec319cc81ae386005777df545c914d078 | 8be24982c807641260370bd09243eac768750811 | /src/liouville_theorem.lean | fc8b885971e897fc919d97e71f508b5f4f414b81 | [] | no_license | jjaassoonn/transcendental | 8008813253af3aa80b5a5c56551317e7ab4246ab | 99bc6ea6089f04ed90a0f55f0533ebb7f47b22ff | refs/heads/master | 1,607,869,957,944 | 1,599,659,687,000 | 1,599,659,687,000 | 234,444,826 | 9 | 1 | null | 1,598,218,307,000 | 1,579,224,232,000 | HTML | UTF-8 | Lean | false | false | 53,343 | lean | import ring_theory.algebraic
import topology.algebra.polynomial
import analysis.calculus.mean_value
import small_things
noncomputable theory
open_locale classical
notation α`[X]` := polynomial α
notation `transcendental` x := ¬(is_algebraic ℤ x)
/--
- a number is transcendental ↔ a number is not algebraic
- a Liouvil... |
4b164a0cde8b8f54fb4db576feabe86efcd7d8c0 | 8cae430f0a71442d02dbb1cbb14073b31048e4b0 | /src/algebra/char_p/char_and_card.lean | 52b303e3667def851f34c8adba22ab98988dc095 | [
"Apache-2.0"
] | permissive | leanprover-community/mathlib | 56a2cadd17ac88caf4ece0a775932fa26327ba0e | 442a83d738cb208d3600056c489be16900ba701d | refs/heads/master | 1,693,584,102,358 | 1,693,471,902,000 | 1,693,471,902,000 | 97,922,418 | 1,595 | 352 | Apache-2.0 | 1,694,693,445,000 | 1,500,624,130,000 | Lean | UTF-8 | Lean | false | false | 3,397 | lean | /-
Copyright (c) 2022 Michael Stoll. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Michael Stoll
-/
import algebra.char_p.basic
import group_theory.perm.cycle.type
/-!
# Characteristic and cardinality
> THIS FILE IS SYNCHRONIZED WITH MATHLIB4.
> Any changes to this ... |
0b50a7a190dd3a98838ed37daa4e8198da14d0b8 | 4727251e0cd73359b15b664c3170e5d754078599 | /src/measure_theory/measure/mutually_singular.lean | 2df9de47e0ecd74040364e7359f89e8a6f47192b | [
"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 | 4,047 | lean | /-
Copyright (c) 2021 Kexing Ying. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Kexing Ying, Yury Kudryashov
-/
import measure_theory.measure.measure_space
/-! # Mutually singular measures
Two measures `μ`, `ν` are said to be mutually singular (`measure_theory.meas... |
81854cb7dad9d6cad56b640426a41ecb4381ebb8 | dd0f5513e11c52db157d2fcc8456d9401a6cd9da | /06_Inductive_Types.org.41.lean | 104dc422102086696945c34e8e8715fafd211e55 | [] | 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 | 295 | lean | /- page 91 -/
import standard
namespace hide
-- BEGIN
inductive fin : nat → Type :=
| fz : Π n, fin (nat.succ n)
| fs : Π {n}, fin n → fin (nat.succ n)
-- END
open nat
check fin.fz 0
check fin.fz 42
check fin.fs (fin.fz 3)
/- Every n is in types >= n, and only those types -/
end hide
|
86f02890f62156f40f5b2fef6a034318275634b3 | 491068d2ad28831e7dade8d6dff871c3e49d9431 | /hott/hit/two_quotient.hlean | 7463a5f70661cac6a1a935fbe6206f270d53f513 | [
"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 | 15,771 | hlean | /-
Copyright (c) 2015 Floris van Doorn. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Floris van Doorn
-/
import homotopy.circle eq2 algebra.e_closure cubical.cube
open quotient eq circle sum sigma equiv function relation
/-
This files defines a general clas... |
7546a0ac3309e9b28203249bc1f81cc8189d0bb5 | d406927ab5617694ec9ea7001f101b7c9e3d9702 | /src/algebra/module/submodule/pointwise.lean | b119c8f629ff1e205062c3a3b27bb39366aa1294 | [
"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,867 | 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 group_theory.subgroup.pointwise
import linear_algebra.span
/-! # Pointwise instances on `submodule`s
This file provides:
* `submodule.has_pointwise_neg`
and the ... |
463357aa4a573635285d8a645b81fa9bdee51e06 | f5f7e6fae601a5fe3cac7cc3ed353ed781d62419 | /src/data/nat/basic.lean | 1f80c2121ea97d7428a7b4903f7d89f58f719a58 | [
"Apache-2.0"
] | permissive | EdAyers/mathlib | 9ecfb2f14bd6caad748b64c9c131befbff0fb4e0 | ca5d4c1f16f9c451cf7170b10105d0051db79e1b | refs/heads/master | 1,626,189,395,845 | 1,555,284,396,000 | 1,555,284,396,000 | 144,004,030 | 0 | 0 | Apache-2.0 | 1,533,727,664,000 | 1,533,727,663,000 | null | UTF-8 | Lean | false | false | 38,082 | lean | /-
Copyright (c) 2014 Floris van Doorn. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Floris van Doorn, Leonardo de Moura, Jeremy Avigad, Mario Carneiro
Basic operations on the natural numbers.
-/
import logic.basic algebra.ordered_ring data.option.basic
universes u... |
e0a8dc58b559466d2acb235094cb6de2a3af0e28 | 947b78d97130d56365ae2ec264df196ce769371a | /stage0/src/Lean/Data/Lsp/InitShutdown.lean | 0b4e1180479d8324feecf5c8f1befff078f01e9e | [
"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 | 3,048 | lean | /-
Copyright (c) 2020 Marc Huisinga. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Marc Huisinga, Wojciech Nawrocki
-/
import Lean.Data.Lsp.Capabilities
import Lean.Data.Lsp.Workspace
import Lean.Data.Json
/-! Functionality to do with initializing and shutting down
... |
ecdf97208a988d3e4095e7b2f7742aa73e4a8cd8 | 4a894698f2ae3f991490c25af3c13ea4435dac48 | /src/instructor/lectures/lecture_3.lean | 48b43efe580f8e63f06f0c31d3c41882981b5f78 | [] | no_license | gnujey/cs2120f21 | 8a33f636346d59ade049dcc1726634f434ac1955 | 138d43446c443c1d15cd2f17fb607c4f0dff702f | refs/heads/main | 1,690,598,880,775 | 1,631,132,566,000 | 1,631,132,566,000 | 405,182,739 | 1 | 0 | null | 1,631,299,824,000 | 1,631,299,823,000 | null | UTF-8 | Lean | false | false | 3,572 | lean | import .lecture_2
/-
From the axioms of reflexivity and substitutabilty
we now prove two *theorems*. A theorem is a proven
proposition. You can even think of the theorem as a
proof of a given proposition. A proof establishes a
conjecture as a theorem. And once it's a theorem,
you can use it like any other inference ru... |
e2e3ef4b965f795d41526b47855e5603d2e9a369 | e030b0259b777fedcdf73dd966f3f1556d392178 | /library/init/meta/smt/ematch.lean | 3a4ac11384eb5e2208fc7a04ed71af62e493c5aa | [
"Apache-2.0"
] | permissive | fgdorais/lean | 17b46a095b70b21fa0790ce74876658dc5faca06 | c3b7c54d7cca7aaa25328f0a5660b6b75fe26055 | refs/heads/master | 1,611,523,590,686 | 1,484,412,902,000 | 1,484,412,902,000 | 38,489,734 | 0 | 0 | null | 1,435,923,380,000 | 1,435,923,379,000 | null | UTF-8 | Lean | false | false | 7,076 | lean | /-
Copyright (c) 2017 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Leonardo de Moura
-/
prelude
import init.meta.smt.congruence_closure
import init.meta.attribute init.meta.simp_tactic
open tactic
/- Heuristic instantiation lemma -/
meta const... |
b6b2fbc8e0a3bf77d3f536c31c2d2d268f991c20 | d1a52c3f208fa42c41df8278c3d280f075eb020c | /stage0/src/Lean/Elab/RecAppSyntax.lean | ad742168b8081f048cfe3fc6334a01dad08cbb76 | [
"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 | 831 | 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.Expr
namespace Lean
private def recAppKey := `_recApp
/--
We store the syntax at recursive applications to be able to generate better error... |
71ae4ec16dd4108b302ec1b05869e139af4b75d2 | 9c1ad797ec8a5eddb37d34806c543602d9a6bf70 | /discrete_category.lean | 8ef88c912a8de31204b1312c8fc5cc08c56653ac | [] | no_license | timjb/lean-category-theory | 816eefc3a0582c22c05f4ee1c57ed04e57c0982f | 12916cce261d08bb8740bc85e0175b75fb2a60f4 | refs/heads/master | 1,611,078,926,765 | 1,492,080,000,000 | 1,492,080,000,000 | 88,348,246 | 0 | 0 | null | 1,492,262,499,000 | 1,492,262,498,000 | null | UTF-8 | Lean | false | false | 819 | lean | -- Copyright (c) 2017 Scott Morrison. All rights reserved.
-- Released under Apache 2.0 license as described in the file LICENSE.
-- Authors: Stephen Morgan, Scott Morrison
import .category
namespace tqft.categories
universe variables u v
open plift -- we first plift propositional equality to Type 0,
open ulift -- t... |
fdb091bee2fd12bbf4b4527da63f8f0229e50770 | df7bb3acd9623e489e95e85d0bc55590ab0bc393 | /lean/love04_functional_programming_homework_sheet.lean | 935e5c0b6eba637e6fcfe185223a60875cf06e48 | [] | no_license | MaschavanderMarel/logical_verification_2020 | a41c210b9237c56cb35f6cd399e3ac2fe42e775d | 7d562ef174cc6578ca6013f74db336480470b708 | refs/heads/master | 1,692,144,223,196 | 1,634,661,675,000 | 1,634,661,675,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 2,478 | lean | import .love04_functional_programming_demo
/- # LoVe Homework 4: Functional Programming
Homework must be done individually. -/
set_option pp.beta true
set_option pp.generalized_field_notation false
namespace LoVe
/- ## Question 1 (2 points): Maps
1.1 (1 point). Complete the following definition. The `map_btree... |
fc784c838bd9f461602cfc3a580dc6ffd9470995 | 35677d2df3f081738fa6b08138e03ee36bc33cad | /src/category_theory/pempty.lean | 2b576b0fbd505050d3f41795576401a56f11d275 | [
"Apache-2.0"
] | permissive | gebner/mathlib | eab0150cc4f79ec45d2016a8c21750244a2e7ff0 | cc6a6edc397c55118df62831e23bfbd6e6c6b4ab | refs/heads/master | 1,625,574,853,976 | 1,586,712,827,000 | 1,586,712,827,000 | 99,101,412 | 1 | 0 | Apache-2.0 | 1,586,716,389,000 | 1,501,667,958,000 | Lean | UTF-8 | Lean | false | false | 1,296 | lean | /-
Copyright (c) 2018 Scott Morrison. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Scott Morrison
-/
import category_theory.discrete_category
import category_theory.equivalence
/-!
# The empty category
Defines a category structure on `pempty`, and the unique functo... |
f677b4c20dc19ef0d207b01313441ca9c28132bf | 6432ea7a083ff6ba21ea17af9ee47b9c371760f7 | /tests/lean/run/choiceExpectedTypeBug.lean | f2fd7f915e103eae4454fcf3d82b32b31759a663 | [
"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 | 616 | lean | import Lean
structure A :=
(x : Nat := 10)
def f : A :=
{ }
theorem ex : f = { x := 10 } :=
rfl
#check f
syntax (name := emptyS) "⟨" "⟩" : term -- overload `⟨ ⟩` notation
open Lean
open Lean.Elab
open Lean.Elab.Term
@[term_elab emptyS] def elabEmptyS : TermElab :=
fun stx expectedType? => do
tryPostponeIfNo... |
ea2495bfdf08c88368dc11c157d3bfbf3e066d44 | 31f556cdeb9239ffc2fad8f905e33987ff4feab9 | /tests/lean/run/wfEqnsIssue.lean | 1f74010b0030b016bc081caa19c97c84109f9428 | [
"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 | tobiasgrosser/lean4 | ce0fd9cca0feba1100656679bf41f0bffdbabb71 | ebdbdc10436a4d9d6b66acf78aae7a23f5bd073f | refs/heads/master | 1,673,103,412,948 | 1,664,930,501,000 | 1,664,930,501,000 | 186,870,185 | 0 | 0 | Apache-2.0 | 1,665,129,237,000 | 1,557,939,901,000 | Lean | UTF-8 | Lean | false | false | 3,762 | lean | def HList (αs : List (Type u)) : Type u := αs.foldr Prod.{u, u} PUnit
@[matchPattern] def HList.nil : HList [] := ⟨⟩
@[matchPattern] def HList.cons (a : α) (as : HList αs): HList (α :: αs) := (a, as)
def HList.set : {αs : _} → HList αs → (i : Fin αs.length) → αs.get i → HList αs
| _ :: _, cons a as, ⟨0, h⟩... |
73a2fdfae37a671163335c7a6be41d427cd23fce | 453dcd7c0d1ef170b0843a81d7d8caedc9741dce | /algebra/ordered_ring.lean | 7ee490a03ae70780a65f2f9583344f41fce67702 | [
"Apache-2.0"
] | permissive | amswerdlow/mathlib | 9af77a1f08486d8fa059448ae2d97795bd12ec0c | 27f96e30b9c9bf518341705c99d641c38638dfd0 | refs/heads/master | 1,585,200,953,598 | 1,534,275,532,000 | 1,534,275,532,000 | 144,564,700 | 0 | 0 | null | 1,534,156,197,000 | 1,534,156,197,000 | null | UTF-8 | Lean | false | false | 8,543 | lean | /-
Copyright (c) 2017 Mario Carneiro. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Mario Carneiro
-/
import order.basic algebra.order algebra.ordered_group algebra.ring
universe u
variable {α : Type u}
-- TODO: this is necessary additionally to mul_nonneg otherwise... |
ff7a96edb65b5a654aa0aa8ebcff1bf774194b48 | 31f556cdeb9239ffc2fad8f905e33987ff4feab9 | /src/Init/Meta.lean | 8c42c2ce682d13ca117cbede62fc2a146f204b93 | [
"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 | tobiasgrosser/lean4 | ce0fd9cca0feba1100656679bf41f0bffdbabb71 | ebdbdc10436a4d9d6b66acf78aae7a23f5bd073f | refs/heads/master | 1,673,103,412,948 | 1,664,930,501,000 | 1,664,930,501,000 | 186,870,185 | 0 | 0 | Apache-2.0 | 1,665,129,237,000 | 1,557,939,901,000 | Lean | UTF-8 | Lean | false | false | 46,877 | 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 and Sebastian Ullrich
Additional goodies for writing macros
-/
prelude
import Init.Data.Array.Basic
import Init.Data.Option.BasicAux
namespace Lean
@[extern... |
cb0263a2170a7e109c2f561e9839976305c87636 | 206422fb9edabf63def0ed2aa3f489150fb09ccb | /src/topology/algebra/floor_ring.lean | e0c19eb26fe2d10903cbf47935a727b1fe59df84 | [
"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 | 9,355 | lean | /-
Copyright (c) 2020 Anatole Dedecker. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Anatole Dedecker
Basic topological facts (limits and continuity) about `floor`,
`ceil` and `fract` in a `floor_ring`.
-/
import topology.algebra.ordered
import algebra.floor
open s... |
1120f746b2a6ed89c27d68550f873840ef3d1132 | 9dc8cecdf3c4634764a18254e94d43da07142918 | /src/category_theory/abelian/homology.lean | 013bcb3f2c79ae45c85464cea7ee93f16428540f | [
"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,683 | lean | /-
Copyright (c) 2022 Adam Topaz. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Adam Topaz
-/
import category_theory.abelian.exact
import category_theory.abelian.pseudoelements
/-!
The object `homology f g w`, where `w : f ≫ g = 0`, can be identified with either a
c... |
efc1e4bc815c9906a1560efade718766aa6299f4 | 193da933cf42f2f9188bb47e3c973205bc2abc5c | /13.Inductive_Definitions/Data_Types/dm_point.lean | 9e27e5156becbe200c50f7d535159d445dc0cfa8 | [] | no_license | pandaman64/cs-dm | aa4e2621c7a19e2dae911bc237c33e02fcb0c7a3 | bfd2f5fd2612472e15bd970c7870b5d0dd73bd1c | refs/heads/master | 1,647,620,340,607 | 1,570,055,187,000 | 1,570,055,187,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 220 | lean |
structure point(t: Type) := mk :: (x : t) (y : t)
#check point
structure point_nat := mk :: (x : ℕ) (y : ℕ)
#check point_nat
def point_nat' := point ℕ
#check point_nat'
#check point_nat.x
#check point_nat'.x
|
c6702f98c64abd29bf57ed6df5dc34196667e639 | 74addaa0e41490cbaf2abd313a764c96df57b05d | /Mathlib/data/list/bag_inter_auto.lean | cb3885a199e4154652b3e0e7c098a3225563e41f | [] | 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 | 2,123 | lean | /-
Copyright (c) 2018 Mario Carneiro. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Mario Carneiro, Scott Morrison
-/
import Mathlib.PrePort
import Mathlib.Lean3Lib.init.default
import Mathlib.data.list.basic
import Mathlib.PostPort
universes u
namespace Mathlib
n... |
2fd015f9073e5bdf3f1653228719ca20911b2828 | 6432ea7a083ff6ba21ea17af9ee47b9c371760f7 | /src/Init/Data/Array/DecidableEq.lean | fb6c1f50bccc60a57b3d1d372c98201e2dcd1456 | [
"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,913 | 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
-/
prelude
import Init.Data.Array.Basic
import Init.Classical
namespace Array
theorem eq_of_isEqvAux [DecidableEq α] (a b : Array α) (hsz : a.size = b.size) ... |
fc1445974cb444ce31462308c74c5385e4eeb8b2 | 3984ab8555ab1e1084e22ef652544acdfc231f27 | /src/v0.1/dump/drbmap.lean | 1bdd10269dbf1b0da9fc4c09d49d190540d4cefd | [] | no_license | mrakgr/CFR-in-Lean | a35c7a478795cc794cc0caff3199cf28c8ee5448 | 720a3260297bcc158e08833d38964450dcaad2eb | refs/heads/master | 1,598,515,917,940 | 1,572,612,355,000 | 1,572,612,355,000 | 217,296,108 | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 4,346 | lean | -- As it turns out, these red black trees not being able to understand that the key
-- being put in is the same as the one being taken out when doing indexing into them
-- is a lot bigger problem than I thought at first. With dependent types, that means
-- that it can no longer reduce based on the key and it is cau... |
68349c1c23f04dbf5b37ba6d5923a414ccc70bd1 | 4727251e0cd73359b15b664c3170e5d754078599 | /src/data/nat/choose/vandermonde.lean | b9c0db02e314728d711a58db932e5e56c0707c6a | [
"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 | 1,129 | lean | /-
Copyright (c) 2021 Johan Commelin. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Johan Commelin
-/
import data.polynomial.coeff
import data.nat.choose.basic
/-!
# Vandermonde's identity
In this file we prove Vandermonde's identity (`nat.add_choose_eq`):
`(m + n... |
a173bf4896d4ea79bc0dacf4739d97e6adaa0820 | 5ae26df177f810c5006841e9c73dc56e01b978d7 | /src/topology/compact_open.lean | 4b1eb2d35784369b74864010b8d6dfa3de82caf1 | [
"Apache-2.0"
] | permissive | ChrisHughes24/mathlib | 98322577c460bc6b1fe5c21f42ce33ad1c3e5558 | a2a867e827c2a6702beb9efc2b9282bd801d5f9a | refs/heads/master | 1,583,848,251,477 | 1,565,164,247,000 | 1,565,164,247,000 | 129,409,993 | 0 | 1 | Apache-2.0 | 1,565,164,817,000 | 1,523,628,059,000 | Lean | UTF-8 | Lean | false | false | 4,069 | lean | /-
Copyright (c) 2018 Reid Barton. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Reid Barton
Type of continuous maps and the compact-open topology on them.
-/
import topology.constructions tactic.tidy
open set
universes u v w
def continuous_map (α : Type u) (β : ... |
27168f3c6f473dc1d5f2ba5db9008386735ca2cf | 968e2f50b755d3048175f176376eff7139e9df70 | /examples/pred_logic/unnamed_338.lean | cba2cf238e1643e6ec3f1428ff808f8068548a73 | [] | no_license | gihanmarasingha/mth1001_sphinx | 190a003269ba5e54717b448302a27ca26e31d491 | 05126586cbf5786e521be1ea2ef5b4ba3c44e74a | refs/heads/master | 1,672,913,933,677 | 1,604,516,583,000 | 1,604,516,583,000 | 309,245,750 | 1 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 411 | lean | variables (U : Type*) (S T : U → Prop) (u : U)
-- BEGIN
example (h₁ : ∀ x, S x) (h₂ : ∀ y, S y → T y) (u : U) : T u :=
begin
specialize h₁ u, -- We have `h₁ : S u` by for all elim. on `h₁` and `u`.
specialize h₂ u, -- We have `h₂ : S u → T u` by for all elim. on `h₂` and `u`
show T u, from h₂ h₁, -- We show `T u... |
aa9fdf47733aa2704d73be905db767091a8c9b00 | ec62863c729b7eedee77b86d974f2c529fa79d25 | /4/b.lean | 186ad17b174acf497187a732cd6d55ee909a0950 | [] | no_license | rwbarton/advent-of-lean-4 | 2ac9b17ba708f66051e3d8cd694b0249bc433b65 | 417c7e2718253ba7148c0279fcb251b6fc291477 | refs/heads/main | 1,675,917,092,057 | 1,609,864,581,000 | 1,609,864,581,000 | 317,700,289 | 24 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 1,871 | lean | import Lean.Data.Json.Parser
open Lean Lean.Quickparse Lean.Json.Parser
def qguard (p : Bool) : Quickparse Unit :=
if p then return () else fail "bad"
def byr : Quickparse Unit := do
expect "byr:"
let ⟨n, d⟩ ← natNumDigits
qguard $ d == 4 && 1920 ≤ n && n ≤ 2002
def iyr : Quickparse Unit := do
expect "iyr:"... |
e8a1c08d7bbf38d1b5a171aef4deecba32713959 | b7f22e51856f4989b970961f794f1c435f9b8f78 | /tests/lean/pattern_hint1.lean | 441c46085d146067bcd0960bc01e7c608ca31cd2 | [
"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 | 295 | lean | constants f g : nat → Prop
definition foo₁ [forward] : ∀ x, f x ∧ g x := sorry
definition foo₂ [forward] : ∀ x, (: f x :) ∧ g x := sorry
definition foo₃ [forward] : ∀ x, (: f (id x) :) ∧ g x := sorry
print foo₁
print foo₂
print foo₃ -- id is unfolded
|
592cbd9701c5634c258354d19065f15a9264b513 | 8cae430f0a71442d02dbb1cbb14073b31048e4b0 | /src/probability/probability_mass_function/monad.lean | 2110791e1bd61223fe2fad15f176ea322281f15e | [
"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 | 12,281 | lean | /-
Copyright (c) 2020 Devon Tuma. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Johannes Hölzl, Devon Tuma
-/
import probability.probability_mass_function.basic
/-!
# Monad Operations for Probability Mass Functions
> THIS FILE IS SYNCHRONIZED WITH MATHLIB4.
> Any ch... |
0ec5178ccd366666bbb684e23b46bb2812c1a4ba | 57c233acf9386e610d99ed20ef139c5f97504ba3 | /src/data/finset/powerset.lean | 3f5243bef484aa2b78cee0d829788801f6bfc80e | [
"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 | 10,707 | lean | /-
Copyright (c) 2018 Mario Carneiro. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Mario Carneiro
-/
import data.finset.lattice
/-!
# The powerset of a finset
-/
namespace finset
open multiset
variables {α : Type*}
/-! ### powerset -/
section powerset
/-- When `... |
f4174cd769bb9057dba13b0b318505bd3d3d59d6 | 31f556cdeb9239ffc2fad8f905e33987ff4feab9 | /src/Lean/Elab/InfoTree/Main.lean | 286ea0d11f5069613c2608312e3b1ae2108e5b2f | [
"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 | tobiasgrosser/lean4 | ce0fd9cca0feba1100656679bf41f0bffdbabb71 | ebdbdc10436a4d9d6b66acf78aae7a23f5bd073f | refs/heads/master | 1,673,103,412,948 | 1,664,930,501,000 | 1,664,930,501,000 | 186,870,185 | 0 | 0 | Apache-2.0 | 1,665,129,237,000 | 1,557,939,901,000 | Lean | UTF-8 | Lean | false | false | 15,324 | lean | /-
Copyright (c) 2020 Wojciech Nawrocki. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Wojciech Nawrocki, Leonardo de Moura, Sebastian Ullrich
-/
import Lean.Meta.PPGoal
namespace Lean.Elab.ContextInfo
variable [Monad m] [MonadEnv m] [MonadMCtx m] [MonadOptions m] ... |
141e01370c4cfe5c7a0e36e375ded8ebed3fa88a | 957a80ea22c5abb4f4670b250d55534d9db99108 | /library/init/meta/transfer.lean | 5140f1b70eb4f70b3fe0cae6002eb9970679a376 | [
"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 | 7,442 | 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 (CMU)
-/
prelude
import init.meta.tactic init.meta.match_tactic init.relator init.meta.mk_dec_eq_instance
import init.data.list.instances
namespace transfer
open tactic ... |
88de6474196a7ce2299e9e7694a18ac657732933 | aa5a655c05e5359a70646b7154e7cac59f0b4132 | /src/Lean/Meta/SynthInstance.lean | c3d45498323d7a48457e1b196e2a8888468f6596 | [
"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 | 26,110 | lean | /-
Copyright (c) 2019 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Daniel Selsam, Leonardo de Moura
Type class instance synthesizer using tabled resolution.
-/
import Lean.Meta.Basic
import Lean.Meta.Instances
import Lean.Meta.LevelDefEq
impor... |
197de8f73dd60eb1910fdf3de05f1fe01b4f3120 | 36c7a18fd72e5b57229bd8ba36493daf536a19ce | /hott/homotopy/sphere.hlean | 9fad2bb997da558773a3c9eac2911399922c9bd7 | [
"Apache-2.0"
] | permissive | YHVHvx/lean | 732bf0fb7a298cd7fe0f15d82f8e248c11db49e9 | 038369533e0136dd395dc252084d3c1853accbf2 | refs/heads/master | 1,610,701,080,210 | 1,449,128,595,000 | 1,449,128,595,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 6,773 | hlean | /-
Copyright (c) 2015 Floris van Doorn. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Floris van Doorn
Declaration of the n-spheres
-/
import .susp types.trunc
open eq nat susp bool is_trunc unit pointed
/-
We can define spheres with the following possible indic... |
be882e069df94193e27c2a3d0ae79f102a26c363 | d3aa99b88d7159fbbb8ab10d699374ab7be89e03 | /src/data/equiv/basic.lean | 43ec85b8e32294d2e35500aaa1f254e409a7fc2b | [
"Apache-2.0"
] | permissive | mzinkevi/mathlib | 62e0920edaf743f7fc53aaf42a08e372954af298 | c718a22925872db4cb5f64c36ed6e6a07bdf647c | refs/heads/master | 1,599,359,590,404 | 1,573,098,221,000 | 1,573,098,221,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 42,619 | lean | /-
Copyright (c) 2015 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Leonardo de Moura, Mario Carneiro
In the standard library we cannot assume the univalence axiom.
We say two types are equivalent if they are isomorphic.
Two equivalent types h... |
2352aeeff8009ee4b82dc4cf488642e07a8f1762 | fa02ed5a3c9c0adee3c26887a16855e7841c668b | /src/topology/uniform_space/complete_separated.lean | 47c05bccd5af3e2bb9d9febe6306dfc7a2a0d160 | [
"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 | 1,345 | lean | /-
Copyright (c) 2019 Sébastien Gouëzel. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Sébastien Gouëzel
-/
import topology.uniform_space.cauchy
import topology.uniform_space.separation
import topology.dense_embedding
/-!
# Theory of complete separated uniform spaces... |
a99ed9c99ed2f730dd8a1e2779f19f9fcebf99b0 | 41ebf3cb010344adfa84907b3304db00e02db0a6 | /uexp/src/uexp/rules/pushJoinThroughUnionOnRight.lean | 84864bcce04afd63385b551b40a595ddb4c478b1 | [
"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 | 1,841 | lean | import ..sql
import ..tactics
import ..u_semiring
import ..extra_constants
import ..meta.UDP
set_option profiler true
open Expr
open Proj
open Pred
open SQL
open tree
notation `int` := datatypes.int
definition rule:
forall ( Γ scm_t scm_account scm_bonus scm_dept scm_emp: Schema) (rel_t: relation scm_t) (rel_a... |
8178e19e9bc8143e7b870e474178fa87b7775714 | 4d2583807a5ac6caaffd3d7a5f646d61ca85d532 | /src/field_theory/intermediate_field.lean | 3d2bdc156c9cd354e4736347b35bc833b701be69 | [
"Apache-2.0"
] | permissive | AntoineChambert-Loir/mathlib | 64aabb896129885f12296a799818061bc90da1ff | 07be904260ab6e36a5769680b6012f03a4727134 | refs/heads/master | 1,693,187,631,771 | 1,636,719,886,000 | 1,636,719,886,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 14,752 | lean | /-
Copyright (c) 2020 Anne Baanen. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Anne Baanen
-/
import field_theory.subfield
import field_theory.tower
import ring_theory.algebraic
/-!
# Intermediate fields
Let `L / K` be a field extension, given as an instance `alg... |
10fe5cabb5e8a1cd2bda5e03ca6931dfc22b7ecc | 88fb7558b0636ec6b181f2a548ac11ad3919f8a5 | /tests/lean/run/listex2.lean | e8b7e38be87077ae1a6a8a053b583f4268f781b3 | [
"Apache-2.0"
] | permissive | moritayasuaki/lean | 9f666c323cb6fa1f31ac597d777914aed41e3b7a | ae96ebf6ee953088c235ff7ae0e8c95066ba8001 | refs/heads/master | 1,611,135,440,814 | 1,493,852,869,000 | 1,493,852,869,000 | 90,269,903 | 0 | 0 | null | 1,493,906,291,000 | 1,493,906,291,000 | null | UTF-8 | Lean | false | false | 2,415 | lean | import tools.super
universe variable u
constant in_tail {α : Type u} {a : α} (b : α) {l : list α} : a ∈ l → a ∈ b::l
constant in_head {α : Type u} (a : α) (l : list α) : a ∈ a::l
constant in_left {α : Type u} {a : α} {l : list α} (r : list α) : a ∈ l → a ∈ l ++ r
constant in_right {α : Type... |
1180dc0caa090ad092f490828a1d49af676444ca | 4d3f29a7b2eff44af8fd0d3176232e039acb9ee3 | /Mathlib/Mathlib/Tactic/Split.lean | ea38e80c3b401dc63ce114edbf5d54ca1761162a | [] | no_license | marijnheule/lamr | 5fc5d69d326ff92e321242cfd7f72e78d7f99d7e | 28cc4114c7361059bb54f407fa312bf38b48728b | refs/heads/main | 1,689,338,013,620 | 1,630,359,632,000 | 1,630,359,632,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 1,117 | lean | /-
Copyright (c) 2021 Mario Carneiro. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Author: Mario Carneiro
-/
import Lean.Meta.Tactic.Apply
import Lean.Elab.Tactic.Basic
import Lean.Elab.SyntheticMVars
def Lean.Meta.split (mvarId : MVarId) : MetaM (List MVarId) := do
withMV... |
9590059466d3cb5b371f03f65d3e67c57d37a0af | 534c92d7322a8676cfd1583e26f5946134561b54 | /src/Exercises/01_Propositions/Q0101/S0001.lean | 01f501a1dd2b503108307f35e2ef686c30498dcf | [
"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 | 109 | lean | example (P Q R : Prop) (HP : P) (HQ : Q) : P :=
begin
exact HP,
-- assumption would also have worked
end
|
93e98e5f2e330eb870e44d8447fdf86c4796b053 | 90edd5cdcf93124fe15627f7304069fdce3442dd | /src/Lean/Meta/Tactic/Simp/SimpLemmas.lean | fe09ba35cb411151c04b873b1ef67877c4d284eb | [
"Apache-2.0"
] | permissive | JLimperg/lean4-aesop | 8a9d9cd3ee484a8e67fda2dd9822d76708098712 | 5c4b9a3e05c32f69a4357c3047c274f4b94f9c71 | refs/heads/master | 1,689,415,944,104 | 1,627,383,284,000 | 1,627,383,284,000 | 377,536,770 | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 11,150 | 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.ScopedEnvExtension
import Lean.Util.Recognizers
import Lean.Meta.LevelDefEq
import Lean.Meta.DiscrTree
import Lean.Meta.AppBuilder
import Lean.M... |
b980d1e70ab8d55421f3945a1a74fa85b89d4459 | 8cae430f0a71442d02dbb1cbb14073b31048e4b0 | /src/analysis/analytic/uniqueness.lean | 8668e4da3b970960894c1489314de9f07bfd8387 | [
"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,996 | lean | /-
Copyright (c) 2022 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.analytic.linear
import analysis.analytic.composition
import analysis.normed_space.completion
/-!
# Uniqueness principle for analytic functions
... |
61ed840c35a65bb59e9bd85453ace0ea6aa1519d | 57c233acf9386e610d99ed20ef139c5f97504ba3 | /src/topology/algebra/continuous_monoid_hom.lean | 2f544699a9b787e91ddcf5396b00e1e665fe52b6 | [
"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 | 7,283 | 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 topology.continuous_function.algebra
/-!
# Continuous Monoid Homs
This file defines the space of continuous homomorphisms between two topological groups.
... |
a1b04051befed6d6ef30067c52be46e8b6075367 | ae1e94c332e17c7dc7051ce976d5a9eebe7ab8a5 | /stage0/src/Lean/Elab/Structure.lean | 71e07d2873133ea6c1de0a27cdc788ddeec25100 | [
"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 | 27,275 | 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.Parser.Command
import Lean.Meta.Closure
import Lean.Elab.Command
import Lean.Elab.DeclModifiers
import Lean.Elab.DeclUtil
import Lean.Elab.Induc... |
cd6b8496c635d2e5d526de398efaccdbd7ca4dc5 | 4727251e0cd73359b15b664c3170e5d754078599 | /src/category_theory/pempty.lean | 82c31284a288c301138d4fccaeaf3e90d537c047 | [
"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 | 1,531 | 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.discrete_category
/-!
# The empty category
Defines a category structure on `pempty`, and the unique functor `pempty ⥤ C` for an... |
02006341be32bc80bf2ea689595fb9e94420bbf4 | 6432ea7a083ff6ba21ea17af9ee47b9c371760f7 | /tests/lean/run/def9.lean | 9677d80b98309702dfefb8a17c86d8b5fcfe7542 | [
"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 | 579 | lean | def f : Nat → Nat → Nat
| 100, 2 => 0
| _, 4 => 1
| _, _ => 2
theorem ex1 : f 100 2 = 0 := rfl
theorem ex2 : f 9 4 = 1 := rfl
theorem ex3 : f 8 4 = 1 := rfl
theorem ex4 : f 6 3 = 2 := rfl
inductive BV : Nat → Type
| nil : BV 0
| cons : {n : Nat} → Bool → BV n → BV (n+1)
open BV
def g : {n : Nat} → BV n →... |
d0cbeb027bc9864b0e67b99f69c9c2228820bbf7 | aa3f8992ef7806974bc1ffd468baa0c79f4d6643 | /library/general_notation.lean | d82767b16051d8404996d596dcb402b362df7de1 | [
"Apache-2.0"
] | permissive | codyroux/lean | 7f8dff750722c5382bdd0a9a9275dc4bb2c58dd3 | 0cca265db19f7296531e339192e9b9bae4a31f8b | refs/heads/master | 1,610,909,964,159 | 1,407,084,399,000 | 1,416,857,075,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 1,901 | 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
-- general_notation
-- ================
-- General operations
-- ------------------
notation `assume` binders `,` r:(scoped f, f) := r
n... |
2db1915c6235f62f90dd72ea75676afb62c8e04d | 8cae430f0a71442d02dbb1cbb14073b31048e4b0 | /src/topology/algebra/order/extend_from.lean | d18d2ddd353552802b5bc286d977c8724b45e61a | [
"Apache-2.0"
] | permissive | leanprover-community/mathlib | 56a2cadd17ac88caf4ece0a775932fa26327ba0e | 442a83d738cb208d3600056c489be16900ba701d | refs/heads/master | 1,693,584,102,358 | 1,693,471,902,000 | 1,693,471,902,000 | 97,922,418 | 1,595 | 352 | Apache-2.0 | 1,694,693,445,000 | 1,500,624,130,000 | Lean | UTF-8 | Lean | false | false | 3,239 | lean | /-
Copyright (c) 2017 Johannes Hölzl. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Johannes Hölzl, Mario Carneiro, Yury Kudryashov
-/
import topology.order.basic
import topology.extend_from
/-!
# Lemmas about `extend_from` in an order topology.
> THIS FILE IS SYNCH... |
47489b8114ce78d005ee160669db95b6456e61b9 | ae9f8bf05de0928a4374adc7d6b36af3411d3400 | /src/formal_ml/real.lean | 8e2675c7fb065bf95aff76a76b8d4eb210bef804 | [
"Apache-2.0"
] | permissive | NeoTim/formal-ml | bc42cf6beba9cd2ed56c1cd054ab4eb5402ed445 | c9cbad2837104160a9832a29245471468748bb8d | refs/heads/master | 1,671,549,160,900 | 1,601,362,989,000 | 1,601,362,989,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 12,184 | 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... |
be9ca3e22f89a058109fe5567255675b6d53dc9a | 63abd62053d479eae5abf4951554e1064a4c45b4 | /src/data/nat/choose/sum.lean | a1d4703169a2408f499403a065bf93bc24b3fb35 | [
"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 | 3,994 | lean | /-
Copyright (c) 2018 Chris Hughes. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Chris Hughes, Patrick Stevens
-/
import data.nat.choose.basic
import tactic.linarith
import tactic.omega
import algebra.big_operators.ring
import algebra.big_operators.intervals
import a... |
32ff26a1bca1ab119cfcd74d997b9f7579d6d4f9 | 74addaa0e41490cbaf2abd313a764c96df57b05d | /Mathlib/topology/metric_space/basic.lean | ef87f8314635fa23c0231898e3f7a7b775f42bc5 | [] | 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 | 71,241 | lean | /-
Copyright (c) 2015, 2017 Jeremy Avigad. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Metric spaces.
Authors: Jeremy Avigad, Robert Y. Lewis, Johannes Hölzl, Mario Carneiro, Sébastien Gouëzel
Many definitions and theorems expected on metric spaces are already introduced o... |
7062e9c8b129416732427b40aadda8022da1f3af | eb9357a70318e50e095b58730bebfe0cffee457f | /lean/love11_logical_foundations_of_mathematics_exercise_sheet.lean | be1ed35c95d1563912bac18fc86de7b653155475 | [] | 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 | 1,996 | lean | import .love11_logical_foundations_of_mathematics_demo
/-! # LoVe Exercise 11: Logical Foundations of Mathematics -/
set_option pp.beta true
set_option pp.generalized_field_notation false
namespace LoVe
/-! ## Question 1: Vectors as Subtypes
Recall the definition of vectors from the demo: -/
#check vector
/-!... |
3fb3870634cb9ba8c7c53dfcbf75dae20fac3ba3 | 4727251e0cd73359b15b664c3170e5d754078599 | /src/analysis/fourier.lean | 159b337ce02c0111f112b9029921dc6e8d1e6fa4 | [
"Apache-2.0"
] | permissive | Vierkantor/mathlib | 0ea59ac32a3a43c93c44d70f441c4ee810ccceca | 83bc3b9ce9b13910b57bda6b56222495ebd31c2f | refs/heads/master | 1,658,323,012,449 | 1,652,256,003,000 | 1,652,256,003,000 | 209,296,341 | 0 | 1 | Apache-2.0 | 1,568,807,655,000 | 1,568,807,655,000 | null | UTF-8 | Lean | false | false | 10,699 | lean | /-
Copyright (c) 2021 Heather Macbeth. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Heather Macbeth
-/
import analysis.complex.circle
import analysis.inner_product_space.l2_space
import measure_theory.function.continuous_map_dense
import measure_theory.function.l2_sp... |
65550043385831024ff9410dac7744931aebcf4e | 74addaa0e41490cbaf2abd313a764c96df57b05d | /Mathlib/topology/instances/real_vector_space.lean | 6d9165706d00c9f9dfaefaffd704c67f7cbeb8eb | [] | 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,890 | lean | /-
Copyright (c) 2020 Yury Kudryashov. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Author: Yury Kudryashov
-/
import Mathlib.PrePort
import Mathlib.Lean3Lib.init.default
import Mathlib.topology.algebra.module
import Mathlib.topology.instances.real
import Mathlib.PostPort
un... |
28497c7a14f2b2c3d000b1bc60be268c59cb04bb | 74addaa0e41490cbaf2abd313a764c96df57b05d | /Mathlib/tactic/omega/lin_comb_auto.lean | 2776810bfbec658092db96591df033128c25f8d1 | [] | 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,513 | lean | /-
Copyright (c) 2019 Seul Baek. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Author: Seul Baek
-/
import Mathlib.PrePort
import Mathlib.Lean3Lib.init.default
import Mathlib.tactic.omega.clause
import Mathlib.PostPort
namespace Mathlib
/-
Linear combination of constraints.
... |
3e84815952e2db2337a51351a0ccd6232cef5e12 | d436468d80b739ba7e06843c4d0d2070e43448e5 | /src/group_theory/subgroup.lean | a6dc60701425a33a931e7035ba0191aaf6f2dcca | [
"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 | 28,251 | lean | /-
Copyright (c) 2018 Johannes Hölzl. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Johannes Hölzl, Mitchell Rowett, Scott Morrison, Johan Commelin, Mario Carneiro,
Michael Howes
-/
import group_theory.submonoid
open set function
variables {α : Type*} {β : Type*} {... |
991ed1158eb7e7870904df54db733fa7bf0cbb90 | 491068d2ad28831e7dade8d6dff871c3e49d9431 | /library/data/sigma.lean | 4cf25c0f9a2fa66b8fb1e1577d1b2e50571b3617 | [
"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 | 3,022 | 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, Floris van Doorn
Sigma types, aka dependent sum.
-/
import logic.cast
open inhabited eq.ops sigma.ops
namespace sigma
universe variables u v... |
5e9d04ab62c3fc842a61e4b6bcc6a61159a2aaa5 | 020c82b947b28c4d255384a0466715fbb44e5c1e | /src/fifteentactics.lean | 31938a5ada947c6816757ced2116ef73748cce0c | [] | no_license | SnobbyDragon/leanfifteen | 79ceb751749fa0185c4f9e60ffa2f128e64fbc3c | 4583ab44e1de89a25e693e5e611472a9ba1147b6 | refs/heads/main | 1,675,887,746,364 | 1,609,534,902,000 | 1,609,534,902,000 | 325,708,959 | 2 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 2,063 | lean | import fifteen
open fifteen fifteen.tile fifteen.position
open tactic tactic.interactive («have»)
namespace fifteentactics
-- just unfolds game
meta def start_game : tactic unit :=
do dunfold_target [``game] <|> tactic.fail "not a game !"
meta def get_start_position : tactic position :=
do { start_game,
`(can_... |
00ce9efb2cfe03f20451de216796ece39a57282c | 9dc8cecdf3c4634764a18254e94d43da07142918 | /src/measure_theory/measurable_space.lean | b7c4d0ab4c33a3be6837c66746f59bdec47da3ee | [
"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 | 62,044 | 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 algebra.indicator_function
import data.prod.tprod
import group_theory.coset
import logic.equiv.fin
import measure_theory.measurable_space_def
... |
3d0d24a299eff8e6874b8494cf37af63691dbe98 | 4bcaca5dc83d49803f72b7b5920b75b6e7d9de2d | /src/Lean/Elab/Tactic/Conv/Pattern.lean | a2f04da7ec6f8603b847eb9b26772f091d4f90e9 | [
"Apache-2.0"
] | permissive | subfish-zhou/leanprover-zh_CN.github.io | 30b9fba9bd790720bd95764e61ae796697d2f603 | 8b2985d4a3d458ceda9361ac454c28168d920d3f | refs/heads/master | 1,689,709,967,820 | 1,632,503,056,000 | 1,632,503,056,000 | 409,962,097 | 1 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 1,818 | 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.Elab.Tactic.Simp
import Lean.Elab.Tactic.Conv.Basic
namespace Lean.Elab.Tactic.Conv
open Meta
private def getContext : MetaM Simp.Context := d... |
65a03e35794f6c171bcd8ee9027b7a89981255b2 | 2eab05920d6eeb06665e1a6df77b3157354316ad | /src/ring_theory/finiteness.lean | 3fc7cc91f7a21c68104bcc30439959fd5d660f16 | [
"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 | 35,462 | lean | /-
Copyright (c) 2020 Johan Commelin. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Johan Commelin
-/
import group_theory.finiteness
import ring_theory.algebra_tower
import ring_theory.ideal.quotient
import ring_theory.noetherian
/-!
# Finiteness conditions in commu... |
eae8d0ec0f68898f7951febd42bdd01147751485 | bb31430994044506fa42fd667e2d556327e18dfe | /src/ring_theory/multiplicity.lean | fe9116d68cdc97044241471f31cd90944a21af25 | [
"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 | 22,637 | lean | /-
Copyright (c) 2018 Robert Y. Lewis. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Robert Y. Lewis, Chris Hughes
-/
import algebra.associated
import algebra.big_operators.basic
import ring_theory.valuation.basic
/-!
# Multiplicity of a divisor
For a commutative mo... |
d5bd00d09e750206596227ba89b7b98788066344 | 8e6cad62ec62c6c348e5faaa3c3f2079012bdd69 | /src/geometry/manifold/mfderiv.lean | 72f358f936450ec1a4a1be8022f11f1a9fdf5e7d | [
"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 | 65,869 | 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 geometry.manifold.basic_smooth_bundle
/-!
# The derivative of functions between smooth manifolds
Let `M` and `M'` be two smooth manifolds with corners ... |
42527ec585e8d968d4bd241cae1debeaae4ecf45 | 853df553b1d6ca524e3f0a79aedd32dde5d27ec3 | /src/tactic/linarith/verification.lean | ee466ee3c48c5a3639f53b6c5a3da4e967ebe8f5 | [
"Apache-2.0"
] | permissive | DanielFabian/mathlib | efc3a50b5dde303c59eeb6353ef4c35a345d7112 | f520d07eba0c852e96fe26da71d85bf6d40fcc2a | refs/heads/master | 1,668,739,922,971 | 1,595,201,756,000 | 1,595,201,756,000 | 279,469,476 | 0 | 0 | null | 1,594,696,604,000 | 1,594,696,604,000 | null | UTF-8 | Lean | false | false | 7,172 | 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 tactic.linarith.elimination
import tactic.linarith.parsing
/-!
# Deriving a proof of false
`linarith` uses an untrusted oracle to produce a certificate of... |
cd92b56546038e4e7899d5e84d7e3925cfbe1c71 | bdc27058d2df65f1c05b3dd4ff23a30af9332a2b | /src/propositions.lean | da61046f3215336a2030441056b8bb1123839d51 | [] | no_license | bakerjd99/leanteach2020 | 19e3dda4167f7bb8785fe0e2fe762a9c53a9214d | 2160909674f3aec475eabb51df73af7fa1d91c65 | refs/heads/master | 1,668,724,511,289 | 1,594,407,424,000 | 1,594,407,424,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 10,411 | lean | import .hilbert
import tactic
noncomputable theory
open_locale classical
local infix ` ≃ `:55 := C -- \ equiv == equivalence/congruence
local infix `⬝`:56 := Segment.mk -- \ cdot == center-dot
--------------------
-- |#Instructions# |
--------------------
/-
0. Read these instructions carefully.
1. I have... |
ef81b9b6f6f15b1138221cd5fc630f59689a9268 | 32025d5c2d6e33ad3b6dd8a3c91e1e838066a7f7 | /tests/lean/run/inj2.lean | 281c651cbccb293dc8c084ae30bf9999196ea752 | [
"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 | 1,124 | lean | universes u v
inductive Vec2 (α : Type u) (β : Type v) : Nat → Type (max u v)
| nil : Vec2 0
| cons : α → β → forall {n}, Vec2 n → Vec2 (n+1)
inductive Fin2 : Nat → Type
| zero (n : Nat) : Fin2 (n+1)
| succ {n : Nat} (s : Fin2 n) : Fin2 (n+1)
new_frontend
theorem test1 {α β} {n} (a₁ a₂ : α) (b₁ b₂ : β... |
914cc2c515eb440abf5c4b7dca4880df0f3186e8 | a9d0fb7b0e4f802bd3857b803e6c5c23d87fef91 | /library/theories/number_theory/primes.lean | e0008571dd0331f7bd9bec945faec78885ec9b33 | [
"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 | 10,266 | lean | /-
Copyright (c) 2015 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Leonardo de Moura, Jeremy Avigad
Prime numbers.
-/
import data.nat logic.identities
open bool subtype
namespace nat
open decidable
attribute [reducible]
definition prime (p :... |
38350a235bd01f97cf98b80286cf77aa2ed90b8f | 4d2583807a5ac6caaffd3d7a5f646d61ca85d532 | /src/algebra/abs.lean | 731ff7d54580c777ddb265d43acaef0e5ea26476 | [
"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 | 681 | lean | /-
Copyright (c) 2021 Christopher Hoskin. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Christopher Hoskin
-/
/-!
# Absolute value
This file defines a notational class `has_abs` which adds the unary operator `abs` and the notation
`|.|`. The concept of an absolute v... |
b47e02731d80f14ccf77dcdea5ef5ae5290040bc | cf39355caa609c0f33405126beee2739aa3cb77e | /tests/lean/run/basic_monitor.lean | 83660ec71d55499e58022cfa4f18c984e3cbc595 | [
"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 | 268 | lean | @[vm_monitor]
meta def basic_monitor : vm_monitor nat :=
{ init := 0, step := λ s, return (trace ("step " ++ to_string s) (s+1)) }
set_option debugger true
example (a b : Prop) : a → b → a ∧ b :=
begin
intros,
constructor,
assumption,
assumption
end
|
8468226735eceecb97221880868a7f494e981324 | aa3f8992ef7806974bc1ffd468baa0c79f4d6643 | /tests/lean/run/algebra3.lean | 7a184e21ca7dbfa905405ce44b1f991e63e8298e | [
"Apache-2.0"
] | permissive | codyroux/lean | 7f8dff750722c5382bdd0a9a9275dc4bb2c58dd3 | 0cca265db19f7296531e339192e9b9bae4a31f8b | refs/heads/master | 1,610,909,964,159 | 1,407,084,399,000 | 1,416,857,075,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 1,735 | lean | import logic
structure has_mul [class] (A : Type) :=
(mul : A → A → A)
structure has_one [class] (A : Type) :=
(one : A)
structure has_inv [class] (A : Type) :=
(inv : A → A)
infixl `*` := has_mul.mul
postfix `⁻¹` := has_inv.inv
notation 1 := has_one.one
structure semigroup [class] (A : Type) extends has_mul A... |
af6f83e7f0b2a13a252107c2eed3cf9fe993b72a | 64874bd1010548c7f5a6e3e8902efa63baaff785 | /tests/lean/run/eq5.lean | 62186f0cf6753cb90c716e7053d820703ded753a | [
"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 | 270 | lean | open nat
definition fib : nat → nat,
fib 0 := 1,
fib 1 := 1,
fib (x+2) := fib x + fib (x+1)
theorem fib0 : fib 0 = 1 :=
rfl
theorem fib1 : fib 1 = 1 :=
rfl
theorem fib_succ_succ (a : nat) : fib (a+2) = fib a + fib (a+1) :=
rfl
example : fib 8 = 34 :=
rfl
|
dc228bbc77a357bade72de9c50b53b7804675944 | 6432ea7a083ff6ba21ea17af9ee47b9c371760f7 | /src/Lean/Elab/Deriving.lean | 026fd7b1459f06e3f695db623249828f19a9da0f | [
"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 | 561 | 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.Nonempty
import Lean.Elab.Deriv... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.