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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
a5f2f3ec1e30f8d961ec07374605bc0209d5df73 | 799b5de27cebaa6eaa49ff982110d59bbd6c6693 | /mechanized/definitions.lean | 7d34a674888249edaf50f29868c2610e1f6d9068 | [
"MIT"
] | permissive | philnguyen/soft-contract | 263efdbc9ca2f35234b03f0d99233a66accda78b | 13e7d99e061509f0a45605508dd1a27a51f4648e | refs/heads/master | 1,625,975,131,435 | 1,617,775,585,000 | 1,617,775,704,000 | 17,326,137 | 33 | 7 | MIT | 1,613,722,535,000 | 1,393,714,126,000 | Racket | UTF-8 | Lean | false | false | 1,791 | lean | import data.set data.list finite_map
-- Assume opaque types for program variables and addresses (with decidable equality)
constants (x: Type) (x_eq: decidable_eq x)
constants (a: Type) (a_eq: decidable_eq a)
-- Program label, divided into ones from the concrete and symbolic parts
inductive ℓ
| kn: ℓ -- can generalize... |
56aa58dea57084807fe94fa764a590428596a933 | cc62cd292c1acc80a10b1c645915b70d2cdee661 | /src/category_theory/graph_category.lean | 420f8ea2001bdc9569184de54846a2b2382716a5 | [] | no_license | RitaAhmadi/lean-category-theory | 4afb881c4b387ee2c8ce706c454fbf9db8897a29 | a27b4ae5eac978e9188d2e867c3d11d9a5b87a9e | refs/heads/master | 1,651,786,183,402 | 1,565,604,314,000 | 1,565,604,314,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 1,550 | lean | -- import category_theory.path_category
-- import tactic.linarith
-- open category_theory.graphs
-- universes v₁ u₁
-- namespace category_theory
-- def finite_graph {n k : ℕ} (e : vector (fin n × fin n) k) := ulift.{v₁} (fin n)
-- instance finite_graph_category {n k : ℕ} (e : vector (fin n × fin n) k) : graph.{v₁+... |
b8f1b37168eedb3c0aab0fa7b78397c81d99a559 | 5584bde9c451ee99730cbf3a8b06e49672e133fe | /src/polymorphicFunctions.lean | 43437f77aaec47ea875ae7885390fdc9582b1984 | [] | no_license | Victor-Pham/complogic-s21 | 400ed583a3644945761bfc16b8cdcbb9bc81c624 | 2de995c20209ad36f25a69b78f1b20394a5473d4 | refs/heads/master | 1,677,319,385,825 | 1,612,464,253,000 | 1,612,464,253,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 803 | lean |
def id_nat : nat → nat :=
λ n, n
def id_string : string → string :=
λ n, n
def id_bool : bool → bool :=
λ n, n
-- parametric polymorphism
namespace hidden
#check 1
#check "Hello"
#check tt
-- Types are terms
#check nat
#check string
#check bool
def id' : Π (α : Type), α → α :=
λ α,
λ n,
... |
24e83c813376c2d4ac16a17bfbfa71ff471cef1a | 9dc8cecdf3c4634764a18254e94d43da07142918 | /src/measure_theory/integral/exp_decay.lean | 0f32ce7ebc4582a5385c260686c1c03a51fc0590 | [
"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 | 3,638 | lean | /-
Copyright (c) 2022 David Loeffler. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: David Loeffler
-/
import measure_theory.integral.interval_integral
import analysis.special_functions.exponential
import analysis.special_functions.integrals
import measure_theory.integ... |
4e2d3937fc5dc57ba9347abf84b7bfa775a95910 | 8cae430f0a71442d02dbb1cbb14073b31048e4b0 | /src/data/rbtree/default_lt.lean | 3e311c6cf0cfd840f415e37ede5221aecd944a08 | [
"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 | 227 | 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
-/
meta def rbtree.default_lt : tactic unit :=
`[apply has_lt.lt]
|
d11ac0478ec32fcef2b1d71bbaa966697681b628 | 38bf3fd2bb651ab70511408fcf70e2029e2ba310 | /test/mllist.lean | 1ceaeb227dcd10bb891ef555d1ea79987faf98b7 | [
"Apache-2.0"
] | permissive | JaredCorduan/mathlib | 130392594844f15dad65a9308c242551bae6cd2e | d5de80376088954d592a59326c14404f538050a1 | refs/heads/master | 1,595,862,206,333 | 1,570,816,457,000 | 1,570,816,457,000 | 209,134,499 | 0 | 0 | Apache-2.0 | 1,568,746,811,000 | 1,568,746,811,000 | null | UTF-8 | Lean | false | false | 1,279 | lean | /-
Copyright (c) 2019 Scott Morrison. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Scott Morrison
-/
import data.mllist
@[reducible] def S (α : Type) := state_t (list nat) option α
def append (x : nat) : S unit :=
{ run := λ s, some ((), x :: s) }
def F : nat → S n... |
27d35aa23b3e26461bc84cd37223593bcffd1d36 | 8b9f17008684d796c8022dab552e42f0cb6fb347 | /library/algebra/category/limit.lean | 41c726f22cbbade31de754b9f746e6f5121f13ec | [
"Apache-2.0"
] | permissive | chubbymaggie/lean | 0d06ae25f9dd396306fb02190e89422ea94afd7b | d2c7b5c31928c98f545b16420d37842c43b4ae9a | refs/heads/master | 1,611,313,622,901 | 1,430,266,839,000 | 1,430,267,083,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 950 | lean | /-
Copyright (c) 2014 Floris van Doorn. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Module: algebra.category.limit
Author: Floris van Doorn
-/
import .natural_transformation
import data.sigma
open eq eq.ops category functor natural_transformation
namespace limits
--repre... |
28b354c6eaaf9c9febdebe644c0786525d912099 | e61a235b8468b03aee0120bf26ec615c045005d2 | /stage0/src/Init/Data/List/Control.lean | f8d593768685e8bf92ac43e535430237a439686e | [
"Apache-2.0"
] | permissive | SCKelemen/lean4 | 140dc63a80539f7c61c8e43e1c174d8500ec3230 | e10507e6615ddbef73d67b0b6c7f1e4cecdd82bc | refs/heads/master | 1,660,973,595,917 | 1,590,278,033,000 | 1,590,278,033,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 5,592 | lean | /-
Copyright (c) 2019 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Author: Leonardo de Moura
-/
prelude
import Init.Control.Monad
import Init.Control.Alternative
import Init.Data.List.Basic
namespace List
universes u v w u₁ u₂
/-
Remark: we can define... |
be46db063f7fc6b2870cae673e75248c53ed37c0 | a339bc2ac96174381fb610f4b2e1ba42df2be819 | /hott/homotopy/cofiber.hlean | 948f3e82fa932ca1b90975c0eb58a4c24dbf6651 | [
"Apache-2.0"
] | permissive | kalfsvag/lean2 | 25b2dccc07a98e5aa20f9a11229831f9d3edf2e7 | 4d4a0c7c53a9922c5f630f6f8ebdccf7ddef2cc7 | refs/heads/master | 1,610,513,122,164 | 1,483,135,198,000 | 1,483,135,198,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 3,493 | hlean | /-
Copyright (c) 2016 Jakob von Raumer. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Jakob von Raumer
The Cofiber Type
-/
import hit.pushout function .susp types.unit
open eq pushout unit pointed is_trunc is_equiv susp unit equiv
definition cofiber {A B : Type} (f... |
e06a2d8175370ad41a675e80bcd3482c045ae582 | 6329dd15b8fd567a4737f2dacd02bd0e8c4b3ae4 | /src/game/world1/level14.lean | 3cfab244fe3c8266458272f0b3a387ae574d9dfb | [
"Apache-2.0"
] | permissive | agusakov/mathematics_in_lean_game | 76e455a688a8826b05160c16c0490b9e3d39f071 | ad45fd42148f2203b973537adec7e8a48677ba2a | refs/heads/master | 1,666,147,402,274 | 1,592,119,137,000 | 1,592,119,137,000 | 272,111,226 | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 515 | lean | import data.real.basic --imports the real numbers
import tactic.maths_in_lean_game -- hide
namespace calculating -- hide
/-
#Calculating
## Level 14: `calc` keyword
Try proving the following identity using a pure `rw` proof.
-/
variables a b c d : ℝ
/- Lemma : no-side-bar
For all natural numbers $a$, we have
$$a +... |
90167d87421a0fe87b17018dbd8d2b0e2131ef84 | d406927ab5617694ec9ea7001f101b7c9e3d9702 | /src/topology/uniform_space/cauchy.lean | f648dcc997395507eebbe4ae26cd02f4eb2ea571 | [
"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 | 34,359 | lean | /-
Copyright (c) 2017 Johannes Hölzl. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Johannes Hölzl, Mario Carneiro
-/
import topology.bases
import topology.uniform_space.basic
/-!
# Theory of Cauchy filters in uniform spaces. Complete uniform spaces. Totally bounded s... |
db5b4b85d3d12cd3337ace447643ecd49343ca1c | 675b8263050a5d74b89ceab381ac81ce70535688 | /src/tactic/localized.lean | 3a88cfbbcec7bd36366246f5b4e795c3b7d134f8 | [
"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 | 5,501 | lean | /-
Copyright (c) 2019 Floris van Doorn. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Floris van Doorn
-/
import tactic.core
/-!
# Localized notation
This consists of two user-commands which allow you to declare notation and commands localized to a
namespace.
* Dec... |
3f9162d4252abd171d21df25adfa188fcc11d9f9 | 9dc8cecdf3c4634764a18254e94d43da07142918 | /src/order/boolean_algebra.lean | ba1b3f338cae5a07d2f6e72d5f12ae28886b6fe5 | [
"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 | 30,212 | 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, Bryan Gin-ge Chen
-/
import order.heyting.basic
/-!
# (Generalized) Boolean algebras
A Boolean algebra is a bounded distributive lattice with a complement operator. B... |
18987ff98e2513546a92a2182e343f7c46399148 | 4d2583807a5ac6caaffd3d7a5f646d61ca85d532 | /src/order/order_dual.lean | adecb9114770a1e853c05647b8f758299397cff0 | [
"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,931 | lean | /-
Copyright (c) 2020 Johan Commelin, Damiano Testa. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Johan Commelin, Damiano Testa
-/
import data.equiv.basic
import logic.nontrivial
import order.basic
/-!
# Initial lemmas to work with the `order_dual`
## Definitions
`... |
ad4ddb4603c490c440418bdd2c1a3a1c0365184a | d9d511f37a523cd7659d6f573f990e2a0af93c6f | /src/data/finset/lattice.lean | 35a701275649d2476d275c59c49666927b89d601 | [
"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 | 43,396 | 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.fold
import data.multiset.lattice
import order.order_dual
import order.complete_lattice
/-!
# Lattice operations on finsets
-/
variables {α β γ :... |
8bb864f052c520920d8dcf04f3ba009ab9c64cc7 | ae9f8bf05de0928a4374adc7d6b36af3411d3400 | /src/formal_ml/hahn.lean | ff9fec1b2a2a00facef21097f2598934ff535a14 | [
"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 | 138,478 | 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
d... |
4fa0dfba14be68784ae3622c20b70595485109df | fa02ed5a3c9c0adee3c26887a16855e7841c668b | /src/category_theory/core.lean | 5f583ecb9e1f6faf5ad8e4d8aabb4c8c20aba823 | [
"Apache-2.0"
] | permissive | jjgarzella/mathlib | 96a345378c4e0bf26cf604aed84f90329e4896a2 | 395d8716c3ad03747059d482090e2bb97db612c8 | refs/heads/master | 1,686,480,124,379 | 1,625,163,323,000 | 1,625,163,323,000 | 281,190,421 | 2 | 0 | Apache-2.0 | 1,595,268,170,000 | 1,595,268,169,000 | null | UTF-8 | Lean | false | false | 3,003 | lean | /-
Copyright (c) 2019 Scott Morrison All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Scott Morrison
-/
import control.equiv_functor
import category_theory.groupoid
import category_theory.whiskering
import category_theory.types
/-!
# The core of a category
The core of ... |
6424fd5f68adcab2dc190ecd6481c46dc86a20c5 | 4d2583807a5ac6caaffd3d7a5f646d61ca85d532 | /src/algebra/euclidean_domain.lean | b0956ac2bd787606c463667aba48ff26df2dc20f | [
"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 | 17,974 | lean | /-
Copyright (c) 2018 Louis Carlin. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Louis Carlin, Mario Carneiro
-/
import data.int.basic
import algebra.field
/-!
# Euclidean domains
This file introduces Euclidean domains and provides the extended Euclidean algorithm... |
8be67121c36fd282b99476f6324a283df90797d5 | d1a52c3f208fa42c41df8278c3d280f075eb020c | /tests/lean/run/inductive2.lean | e4d7563ec0515e82f43dd15241fc069be0eb0c2c | [
"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 | 448 | lean |
mutual
universe u
variable (α : Type u)
inductive isEvenList : List α → Prop
| nil {} : isEvenList []
| cons (h : α) {t : List α} : isOddList t → isEvenList (h::t)
inductive isOddList : List α → Prop
| cons (h : α) {t : List α} : isEvenList t → isOddList (h::t)
end
#check @isEvenList.nil
#check @isEvenList.cons
#... |
132a5026db516277caca677f90119b9a94d02487 | 618003631150032a5676f229d13a079ac875ff77 | /src/topology/list.lean | b1764cd487ec87c8725f7c3915c8560058f04733 | [
"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 | 8,346 | 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
Topology on lists and vectors.
-/
import topology.constructions
open topological_space set filter
open_locale topological_space
variables {α : Type*} {β : Type*}
instan... |
332b638d7b51d68fae2b9cc9699f4b03009b12df | d26814d9437130e14d6d016c92d8c436b6dc62f3 | /ifin.hlean | e8ee494c69e229dc1c0c18652ba802789c0c9b4c | [] | no_license | jonas-frey/segal | 92fb5a556c164d4e9e864f2da1258be5a6482af8 | 64b4ec62ec5f293b781d5bbfea5a6b0997558c13 | refs/heads/master | 1,594,256,935,764 | 1,566,490,351,000 | 1,566,490,351,000 | 203,831,654 | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 3,387 | hlean | import types.fin .my_prelude
open nat fin function eq is_trunc
inductive ifin : ℕ → Type :=
| ifz : ∀{n}, ifin (succ n)
| ifs : ∀{n}, ifin n → ifin (succ n)
namespace ifin
open ifin fin nat nat.le
definition has_zero_ifin [instance] (n : ℕ) : has_zero (ifin $ succ n) :=
has_zero.mk ifz
definition emb {n} : ifin n... |
445ab3aec6646173c7a95f586ea6a55d0165945b | 63abd62053d479eae5abf4951554e1064a4c45b4 | /src/category_theory/concrete_category/basic.lean | 1bf89cba93046806354d14d4c3acb6adea97d4d6 | [
"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 | 6,921 | lean | /-
Copyright (c) 2018 Scott Morrison. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Scott Morrison, Johannes Hölzl, Reid Barton, Sean Leather, Yury Kudryashov
-/
import category_theory.types
import category_theory.full_subcategory
/-!
# Concrete categories
A concret... |
210b692d24e619376bfb4dcbae36385758eabbd1 | 8cae430f0a71442d02dbb1cbb14073b31048e4b0 | /src/ring_theory/valuation/extend_to_localization.lean | 6175b6f334b17b77e90912d8aa77f299295a05d1 | [
"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 | 2,064 | 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 ring_theory.localization.at_prime
import ring_theory.valuation.basic
/-!
# Extending valuations to a localization
> THIS FILE IS SYNCHRONIZED WITH MATHLIB4.
> Any c... |
346d80e981599273901005d044bb77d1acb9dfc8 | 968e2f50b755d3048175f176376eff7139e9df70 | /examples/pred_logic/unnamed_230.lean | 363719e07114aa56f2c622e8a112e90fb8224e85 | [] | 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 | 419 | lean | variables (U : Type*) (V : Type*) -- Declare types `U` and `V`.
variables (x : U) (y : V) -- Declare terms `x` of type `U` and `y` of type `V`.
variable Q : U → V → Prop -- Declare a predicate `Q` on `U` and `V`.
#check Q -- `Q` is a predicate with type `U → V → Prop`.
#check Q x -- `Q x` is a predic... |
f897b158acf006124af6f8e38ec335ede48f343b | 8cae430f0a71442d02dbb1cbb14073b31048e4b0 | /src/algebraic_geometry/presheafed_space/has_colimits.lean | c5bc2df14affb4ba0360c2f4e111804fba297759 | [
"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 | 15,128 | lean | /-
Copyright (c) 2020 Scott Morrison. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Scott Morrison
-/
import algebraic_geometry.presheafed_space
import topology.category.Top.limits.basic
import topology.sheaves.limits
/-!
# `PresheafedSpace C` has colimits.
> THIS F... |
7a9d51513421f616b3ebfa85ef05bd56d56b066c | 7cef822f3b952965621309e88eadf618da0c8ae9 | /src/category_theory/punit.lean | 383467e717cc8b6798fe4e90b50805bddee619f3 | [
"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 | 1,161 | 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.const
universes v w u -- declare the `v`'s first; see `category_theory.category` for an explanation
namespace category_theory
instance punit... |
4956bd77ebb1449308a02b58065a9803be0a5401 | 8cae430f0a71442d02dbb1cbb14073b31048e4b0 | /src/algebra/order/monoid/with_zero/defs.lean | 4a30575a06993da17197d742fa07723f56c0d391 | [
"Apache-2.0"
] | permissive | leanprover-community/mathlib | 56a2cadd17ac88caf4ece0a775932fa26327ba0e | 442a83d738cb208d3600056c489be16900ba701d | refs/heads/master | 1,693,584,102,358 | 1,693,471,902,000 | 1,693,471,902,000 | 97,922,418 | 1,595 | 352 | Apache-2.0 | 1,694,693,445,000 | 1,500,624,130,000 | Lean | UTF-8 | Lean | false | false | 6,041 | lean | /-
Copyright (c) 2016 Jeremy Avigad. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Jeremy Avigad, Leonardo de Moura, Mario Carneiro, Johannes Hölzl
-/
import algebra.group.with_one.defs
import algebra.order.monoid.canonical.defs
import algebra.order.zero_le_one
/-!
#... |
7684d0419de9c1b0af9eaf436a948cecbe9f2038 | 097294e9b80f0d9893ac160b9c7219aa135b51b9 | /instructor/boolean/boolean.lean | 7d405d3698c698ae75b2c15bde6718662cf33b3f | [] | 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 | 1,654 | lean | -- namespace for identifiers in this file
-- namespace ends below, see end of file
namespace hidden
/-
An abstract data type combines a data type
and a set of functions that operate on values
of that type. As we're implementing a Boolean
algebra ADT, we define a bool data type and a
set of standard Boolean operato... |
669ce7a643cadc8da9dfc332f697e45e50545f84 | 4bcaca5dc83d49803f72b7b5920b75b6e7d9de2d | /stage0/src/Lean/Message.lean | fbb9ad2674b828a6e914cdcc15fe027dad5137fd | [
"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 | 14,862 | lean | /-
Copyright (c) 2018 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Author: Sebastian Ullrich, Leonardo de Moura
Message Type used by the Lean frontend
-/
import Lean.Data.Position
import Lean.Data.OpenDecl
import Lean.Syntax
import Lean.MetavarContext
... |
d20a75a800bca0080785c09541b0b1ed3f43cbb3 | f5f7e6fae601a5fe3cac7cc3ed353ed781d62419 | /src/group_theory/eckmann_hilton.lean | d4d55cd12ac05cac8a923ac08002cc4ea86b1332 | [
"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 | 1,916 | lean | /-
Copyright (c) 2018 Kenny Lau. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Johan Commelin, Kenny Lau, Robert Y. Lewis
-/
import tactic.interactive
universe u
namespace eckmann_hilton
variables {X : Type u}
local notation a `<`m`>` b := m a b
class is_unital (... |
e5f92ab72a55422c2785994d2b7aaa4086cae340 | 74addaa0e41490cbaf2abd313a764c96df57b05d | /Mathlib/category_theory/monoidal/functor_category.lean | a8a081bc6cfb250426405b897ca03e856eba1780 | [] | no_license | AurelienSaue/Mathlib4_auto | f538cfd0980f65a6361eadea39e6fc639e9dae14 | 590df64109b08190abe22358fabc3eae000943f2 | refs/heads/master | 1,683,906,849,776 | 1,622,564,669,000 | 1,622,564,669,000 | 371,723,747 | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 5,533 | lean | /-
Copyright (c) 2020 Scott Morrison. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Scott Morrison
-/
import Mathlib.PrePort
import Mathlib.Lean3Lib.init.default
import Mathlib.category_theory.monoidal.braided
import Mathlib.category_theory.functor_category
import Mat... |
17d884127f474afaa93635520e45ae56b079a71a | fa02ed5a3c9c0adee3c26887a16855e7841c668b | /src/data/seq/parallel.lean | cb1a1ea565b589dd8392b268b8d3b87e27ecc797 | [
"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 | 12,115 | lean | /-
Copyright (c) 2017 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Mario Carneiro
Parallel computation of a computable sequence of computations by
a diagonal enumeration.
The important theorems of this operation are proven as
terminates_parall... |
1a601418d0b8ed2656570fb993c789b07937ecc8 | d406927ab5617694ec9ea7001f101b7c9e3d9702 | /src/category_theory/arrow.lean | 51dfed31145cc466b7b1ae396a80034c1754119b | [
"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 | 8,631 | lean | /-
Copyright (c) 2020 Markus Himmel. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Markus Himmel
-/
import category_theory.comma
/-!
# The category of arrows
The category of arrows, with morphisms commutative squares.
We set this up as a specialization of the comma ... |
4e63d4dd0d7a16c6b56ce4698ba3de6d5abe02c6 | c777c32c8e484e195053731103c5e52af26a25d1 | /src/geometry/euclidean/inversion.lean | ff0d2dcf46fec87efdef6404b8805b56e5916af5 | [
"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 | 5,415 | lean | /-
Copyright (c) 2022 Yury G. Kudryashov. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Yury G. Kudryashov
-/
import analysis.inner_product_space.basic
/-!
# Inversion in an affine space
In this file we define inversion in a sphere in an affine space. This map sends... |
75b20b07b084d21797f6fa2b09d7f90106772208 | b7b549d2cf38ac9d4e49372b7ad4d37f70449409 | /src/LeanLLVM/Parser.lean | 9bcae8781f10a8ac7939912bc2d66bcc50cb90a5 | [
"Apache-2.0"
] | permissive | GaloisInc/lean-llvm | 7cc196172fe02ff3554edba6cc82f333c30fdc2b | 36e2ec604ae22d8ec1b1b66eca0f8887880db6c6 | refs/heads/master | 1,637,359,020,356 | 1,629,332,114,000 | 1,629,402,464,000 | 146,700,234 | 29 | 1 | Apache-2.0 | 1,631,225,695,000 | 1,535,607,191,000 | Lean | UTF-8 | Lean | false | false | 3,995 | lean | -- import Init.Control.Alternative
-- import Init.Control.Applicative
-- import Init.Control.Monad
import Init.Data.Char
namespace Nat
def fromDigitsAux : List Nat → Nat → Nat
| [], n => n
| d::ds, n => fromDigitsAux ds (n*10 + d)
def fromDigits (ds:List Nat) := fromDigitsAux ds 0
end Nat
structure parse (α:T... |
20039abe489bbb3183ec967a184677cc76f2ec75 | 8cae430f0a71442d02dbb1cbb14073b31048e4b0 | /src/algebra/support.lean | 2ecb97cc95ccad80f3e2b61edab3622d63ad1866 | [
"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 | 13,719 | 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 order.conditionally_complete_lattice.basic
import data.set.finite
import algebra.big_operators.basic
import algebra.group.prod
import algebra.group.pi
import... |
a5779543776760806b1b7cbe0b05be600d6a6d8e | 63abd62053d479eae5abf4951554e1064a4c45b4 | /src/algebra/ring/ulift.lean | aa5a3f18753ce0450a6463e5a0b5241d702ae1c1 | [
"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 | 1,860 | lean | /-
Copyright (c) 2020 Scott Morrison. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Scott Morrison
-/
import algebra.group.ulift
import data.equiv.ring
/-!
# `ulift` instances for ring
This file defines instances for ring, semiring and related structures on `ulift` ... |
0766dc1b3c9546b8fdb18b245e6296fe1355d5e3 | c3f2fcd060adfa2ca29f924839d2d925e8f2c685 | /tests/lean/run/is_true.lean | 444a2c0c5cef76a1e524a09404a43f881bab9419 | [
"Apache-2.0"
] | permissive | respu/lean | 6582d19a2f2838a28ecd2b3c6f81c32d07b5341d | 8c76419c60b63d0d9f7bc04ebb0b99812d0ec654 | refs/heads/master | 1,610,882,451,231 | 1,427,747,084,000 | 1,427,747,429,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 214 | lean | import data.nat
open nat
example : is_true (2 = 2) := trivial
example : is_false (3 = 2) := trivial
example : is_true (2 < 3) := trivial
example : is_true (3 | 9) := trivial
example : is_false (3 | 7) := trivial
|
bd69bf92253b9e65a4f12945eb75ef5849272378 | d406927ab5617694ec9ea7001f101b7c9e3d9702 | /src/category_theory/bicategory/coherence.lean | 0b3faa06ef84742a9d712538c3ba9cb5075fae6d | [
"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 | 9,124 | lean | /-
Copyright (c) 2022 Yuma Mizuno. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Yuma Mizuno, Junyan Xu
-/
import category_theory.path_category
import category_theory.functor.fully_faithful
import category_theory.bicategory.free
import category_theory.bicategory.local... |
e80a151637cd340b0a1da5977600a1bb1fa3a53e | 7b89826c26634aa18c0110f1634f73027851edfe | /natural-number-game/src/world02/level05.lean | 27eed4da26c629f6be15059ed50e0091aebd0284 | [
"MIT"
] | permissive | marcofavorito/leanings | b7642344d8c9012a1cec74a804c5884297880c4d | 581b83be66ff4f8dd946fb6a1bb045d2ddf91076 | refs/heads/master | 1,672,310,991,244 | 1,603,031,766,000 | 1,603,031,766,000 | 279,163,004 | 1 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 463 | lean | import mynat.definition -- Imports the natural numbers.
import mynat.add -- imports addition.
import world02.level01 -- hide
import world02.level03 -- hide
namespace mynat -- hide
theorem succ_eq_add_one (n : mynat) : succ n = n + 1 :=
begin [nat_num_game]
induction n with d hd,
rw one_eq_succ_zero,
rw add_su... |
858524593b6c9c7319113e6fb21e26843fddc6cf | 618003631150032a5676f229d13a079ac875ff77 | /src/data/list/of_fn.lean | aec3467e47506f1023684868a5ce60902398dc87 | [
"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 | 3,217 | 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.list.basic
import data.fin
universes u
variables {α : Type u}
open nat
namespace list
/- of_fn -/
theorem length_of_fn_aux {n} (f : fin n → α) :
∀ ... |
3b877e93ad4ff41f82a7c34447156de9d3d6a8f9 | fa02ed5a3c9c0adee3c26887a16855e7841c668b | /src/category_theory/limits/shapes/types.lean | 148d69de0ab23be61c1b351f34f25e515ae360f5 | [
"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 | 11,202 | lean | /-
Copyright (c) 2020 Scott Morrison. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Scott Morrison
-/
import category_theory.limits.types
import category_theory.limits.shapes.products
import category_theory.limits.shapes.binary_products
import category_theory.limits.s... |
43a18a13a1d856316c21a5bf71cbefe3e29d68f4 | 02005f45e00c7ecf2c8ca5db60251bd1e9c860b5 | /src/data/matrix/basic.lean | 36937978b73911e5c9aaec5e90c6b19753032a09 | [
"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 | 42,555 | 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 algebra.big_operators.pi
import algebra.module.pi
import algebra.module.linear_map
import algebra.big_operator... |
b9fd3dbabf5ee1e81f1d08ad177a45128f99f2ef | 1e561612e7479c100cd9302e3fe08cbd2914aa25 | /mathlib4_experiments.lean | ec2c947e801fdec7df167ce4640e9b219d168c78 | [
"Apache-2.0"
] | permissive | kbuzzard/mathlib4_experiments | 8de8ed7193f70748a7529e05d831203a7c64eedb | 87cb879b4d602c8ecfd9283b7c0b06015abdbab1 | refs/heads/master | 1,687,971,389,316 | 1,620,336,942,000 | 1,620,336,942,000 | 353,994,588 | 7 | 4 | Apache-2.0 | 1,622,410,748,000 | 1,617,361,732,000 | Lean | UTF-8 | Lean | false | false | 51 | lean | def main : IO Unit :=
IO.println "Hello, world!"
|
1df32ec4368e46dd2c87790edc04ae0d113f455c | 8cae430f0a71442d02dbb1cbb14073b31048e4b0 | /src/ring_theory/localization/inv_submonoid.lean | 51092aebf7fd4f0edd466adb4646bba4e6356e15 | [
"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 | 4,078 | lean | /-
Copyright (c) 2018 Kenny Lau. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Kenny Lau, Mario Carneiro, Johan Commelin, Amelia Livingston, Anne Baanen
-/
import group_theory.submonoid.inverses
import ring_theory.finite_type
import ring_theory.localization.basic
impo... |
a9e0d3d04b6549ec005c7c2ddfe48db476886124 | fa02ed5a3c9c0adee3c26887a16855e7841c668b | /src/testing/slim_check/testable.lean | ba81c3b9cd4008e1dab122f262cd745806b9bfa3 | [
"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 | 28,233 | lean | /-
Copyright (c) 2020 Simon Hudon. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Simon Hudon
-/
import testing.slim_check.sampleable
/-!
# `testable` Class
Testable propositions have a procedure that can generate counter-examples
together with a proof that they inv... |
8ac2a43abfc67e48352f9321c0ac5788e6e23b06 | 6432ea7a083ff6ba21ea17af9ee47b9c371760f7 | /tests/lean/run/stxKindInsideNamespace.lean | 5999e8fb1646464ea6c150953b97f8bccbf0b752 | [
"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 | 276 | lean | import Lean
namespace Foo
syntax (name := foo) "bla!" term : term
macro_rules (kind := foo)
| `(bla! $x) => pure x
#check bla! 10
macro "foo!" x:term : term => pure x
#check foo! 10
elab "boo!" x:term : term =>
Lean.Elab.Term.elabTerm x none
#check boo! 20
end Foo
|
163f38ee906dfabea38da474dd5a005018928429 | 02005f45e00c7ecf2c8ca5db60251bd1e9c860b5 | /src/ring_theory/valuation/basic.lean | 8e4435f9810f8529f9b11af1e0b1a2b50ba18aec | [
"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 | 14,983 | lean | /-
Copyright (c) 2020 Johan Commelin. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Kevin Buzzard, Johan Commelin, Patrick Massot
-/
import algebra.linear_ordered_comm_group_with_zero
import algebra.group_power
import ring_theory.ideal.operations
import algebra.punit... |
570311c2a0a95156770954714edf90a8b25c26fb | 491068d2ad28831e7dade8d6dff871c3e49d9431 | /library/data/examples/depchoice.lean | 83afb8eeb041846565c2a5f9002f949f56027795 | [
"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,068 | lean | /-
Copyright (c) 2015 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Author: Leonardo de Moura
-/
import data.encodable
open nat encodable
/-
In mathematics, the axiom of dependent choice is a weak form of the axiom of choice that is
sufficient to develo... |
35bc7e5a2e351c3e7eab5453a57b5a224124dcd7 | 6432ea7a083ff6ba21ea17af9ee47b9c371760f7 | /src/Lean/Compiler/LCNF/CSE.lean | 25c7d97a6e95a5c5ff771fb171f413d94c193578 | [
"Apache-2.0",
"LLVM-exception",
"NCSA",
"LGPL-3.0-only",
"LicenseRef-scancode-inner-net-2.0",
"BSD-3-Clause",
"LGPL-2.0-or-later",
"Spencer-94",
"LGPL-2.1-or-later",
"HPND",
"LicenseRef-scancode-pcre",
"ISC",
"LGPL-2.1-only",
"LicenseRef-scancode-other-permissive",
"SunPro",
"CMU-Mach"... | permissive | leanprover/lean4 | 4bdf9790294964627eb9be79f5e8f6157780b4cc | f1f9dc0f2f531af3312398999d8b8303fa5f096b | refs/heads/master | 1,693,360,665,786 | 1,693,350,868,000 | 1,693,350,868,000 | 129,571,436 | 2,827 | 311 | Apache-2.0 | 1,694,716,156,000 | 1,523,760,560,000 | Lean | UTF-8 | Lean | false | false | 3,567 | lean | /-
Copyright (c) 2022 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Leonardo de Moura
-/
import Lean.Compiler.LCNF.CompilerM
import Lean.Compiler.LCNF.ToExpr
import Lean.Compiler.LCNF.PassManager
namespace Lean.Compiler.LCNF
/-! Common Sub-exp... |
040009d67814be91afecb65785a5c36212fec743 | 8cae430f0a71442d02dbb1cbb14073b31048e4b0 | /src/topology/order/hom/basic.lean | b1af0090e72470df4d02589f203a9bc6449f6c6c | [
"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,630 | lean | /-
Copyright (c) 2022 Yaël Dillies. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Yaël Dillies
-/
import order.hom.basic
import topology.continuous_function.basic
/-!
# Continuous order homomorphisms
> THIS FILE IS SYNCHRONIZED WITH MATHLIB4.
> Any changes to this f... |
81c5d5069eea5a6125ea495160f52cd5510004d3 | 302c785c90d40ad3d6be43d33bc6a558354cc2cf | /src/geometry/manifold/instances/real.lean | 0768baed8b28641c445181157ef19359e6aba177 | [
"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 | 15,957 | 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 geometry.manifold.algebra.smooth_functions
import linear_algebra.finite_dimensional
import analysis.normed_space.inner_product
/-!
# Constructing exampl... |
d27ca31a1b2b79226e957eb1e7cb77b9705d840a | 6432ea7a083ff6ba21ea17af9ee47b9c371760f7 | /src/lake/examples/deps/a/A.lean | 2e0c76545aa41bb93324eda15c00dbbd565e0c72 | [
"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 | 34 | lean | import Root
def a := s!"A{root}"
|
cc25c404d210d5a27c1f6e79b6278d98965898b8 | bbecf0f1968d1fba4124103e4f6b55251d08e9c4 | /src/ring_theory/class_group.lean | 718f8f4aeab8b45f8a24d24e856df3f0ef5e5416 | [
"Apache-2.0"
] | permissive | waynemunro/mathlib | e3fd4ff49f4cb43d4a8ded59d17be407bc5ee552 | 065a70810b5480d584033f7bbf8e0409480c2118 | refs/heads/master | 1,693,417,182,397 | 1,634,644,781,000 | 1,634,644,781,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 10,517 | lean | /-
Copyright (c) 2021 Anne Baanen. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Anne Baanen
-/
import group_theory.quotient_group
import ring_theory.dedekind_domain
/-!
# The ideal class group
This file defines the ideal class group `class_group R K` of fractional... |
9de3db797f3d031fb0d5835e0c5c25a2c8d6a66f | 4fa161becb8ce7378a709f5992a594764699e268 | /src/set_theory/schroeder_bernstein.lean | a7f2385591d0f06fb917519411501c5ae55d7025 | [
"Apache-2.0"
] | permissive | laughinggas/mathlib | e4aa4565ae34e46e834434284cb26bd9d67bc373 | 86dcd5cda7a5017c8b3c8876c89a510a19d49aad | refs/heads/master | 1,669,496,232,688 | 1,592,831,995,000 | 1,592,831,995,000 | 274,155,979 | 0 | 0 | Apache-2.0 | 1,592,835,190,000 | 1,592,835,189,000 | null | UTF-8 | Lean | false | false | 5,053 | lean | /-
Copyright (c) 2017 Johannes Hölzl. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Johannes Hölzl, Mario Carneiro
The Schröder-Bernstein theorem, and well ordering of cardinals.
-/
import order.fixed_points
import order.zorn
open set classical
open_locale classical... |
ac8c05263146c2804213ee6e45f514034051fbe6 | 57c233acf9386e610d99ed20ef139c5f97504ba3 | /src/algebra/char_p/exp_char.lean | 68d7e697c080829e61ff389c3419798f0687cdef | [
"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 | 4,134 | lean | /-
Copyright (c) 2021 Jakob Scholbach. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Jakob Scholbach
-/
import algebra.char_p.basic
import algebra.char_zero
import data.nat.prime
/-!
# Exponential characteristic
This file defines the exponential characteristic and e... |
19ae085067a711df87e757601617ad9f38149a57 | a0e23cfdd129a671bf3154ee1a8a3a72bf4c7940 | /tests/lean/run/Ord.lean | 49e967d43da2c7dbaae72e2c69a79e460c7321c3 | [
"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 | 516 | lean |
inductive SimpleInd
| A
| B
deriving Ord
mutual
inductive Foo
| A : Int → (3 = 3) → String → Foo
| B : Bar → Foo
deriving Ord
inductive Bar
| C
| D : Foo → Bar
deriving Ord
end
inductive ManyConstructors | A | B | C | D | E | F | G | H | I | J | K | L
| M | N | O | P | Q | R | S | T | U | V | W | X | Y | Z
derivi... |
7b623332e7cb9a5e0f2e59419bd56f44e0f30d4e | d9d511f37a523cd7659d6f573f990e2a0af93c6f | /src/topology/uniform_space/absolute_value.lean | ec21cfeb9d5254faba29cd006bf04bbcec984f64 | [
"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 | 2,901 | lean | /-
Copyright (c) 2019 Patrick Massot. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Patrick Massot
-/
import data.real.cau_seq
import topology.uniform_space.basic
/-!
# Uniform structure induced by an absolute value
We build a uniform space structure on a commutativ... |
f504157ae6aeec5c2014a94c8b17726e8960fcae | 07c6143268cfb72beccd1cc35735d424ebcb187b | /src/data/real/hyperreal.lean | 886a28257ac241159d34be9f8e4fc73c593bbd0e | [
"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 | 36,728 | lean | /-
Copyright (c) 2019 Abhimanyu Pallavi Sudhir. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Abhimanyu Pallavi Sudhir
Construction of the hyperreal numbers as an ultraproduct of real sequences.
-/
import data.real.basic algebra.field order.filter.filter_product anal... |
ab539bb09e8329676c94ea044dbefc2f1debda55 | 6432ea7a083ff6ba21ea17af9ee47b9c371760f7 | /tests/lean/interactive/keywordCompletion.lean | 1ac865d2683dfa994e15a903025a17696b65f258 | [
"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 | 115 | lean | prelude
def bin := Type
#check binop_
--^ textDocument/completion
--^ textDocument/completion
|
aaed716892f3f07e9d4354af33430f6fe2fd2d7f | 13133fade54057ee588bc056e4eaa14a24773d23 | /report/factorial.lean | 59cd0475f9f4c9117d28b6f2909ac3453c88c9d6 | [] | no_license | lkloh/lean-project-15815 | 444cbdca1d1a2dfa258c76c41a6ff846392e13d1 | 2cb657c0e41baa318193f7dce85974ff37d80883 | refs/heads/master | 1,611,402,038,933 | 1,432,020,760,000 | 1,432,020,760,000 | 33,372,120 | 0 | 0 | null | 1,431,932,928,000 | 1,428,078,840,000 | Lean | UTF-8 | Lean | false | false | 911 | lean | import data.nat
open nat
definition fac : nat → nat
| fac 0 := 1
| fac 1 := 1
| fac (n+2) := fac (n+1) * (n+2)
-- ****************************************************************** --
definition mchoosen (m n : ℕ ) : ℕ := divide (fac m) (fac(m-n) * fac n)
-- *************************************************... |
650094349966231ec9b9dbecdb3a35cb0b81f0c2 | 6432ea7a083ff6ba21ea17af9ee47b9c371760f7 | /tests/lean/run/evalconst.lean | 697caa6f26a378123478517e2b7ba5300bdf0bd1 | [
"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 | 310 | lean | import Lean
open Lean
def x := 10
unsafe def tst : CoreM Unit := do
let env ← getEnv
IO.println $ env.evalConst Nat {} `x
#eval tst
def f (x : Nat) := x + 1
unsafe def tst2 : CoreM Unit := do
let env ← getEnv
let f ← IO.ofExcept $ env.evalConst (Nat → Nat) {} `f
IO.println $ (f 10)
#eval tst2
|
c780c99d531ffd4b394172d32902ae9d484b94f6 | 6432ea7a083ff6ba21ea17af9ee47b9c371760f7 | /tests/lean/697.lean | e9d5927b52da76a05e832312a0a20e86ee527d5f | [
"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 | 784 | lean | inductive Maybe (a : Type) : Type where
| ok: a -> Maybe a
| err: Maybe a
structure P (a: Type) where
runP: String -> Maybe (String × a)
def ppure {a: Type} (v: a): P a := { runP := λ s => Maybe.ok (s, v) }
def pbind {a b: Type} (pa: P a) (a2pb : a -> P b): P b :=
{ runP := λs => match pa.runP s with
... |
9853600c361b8371a0e601841a88de672b6201be | 4d2583807a5ac6caaffd3d7a5f646d61ca85d532 | /src/measure_theory/measure/lebesgue.lean | 802587d7ec823c12067037f376457d282524d6a7 | [
"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 | 25,340 | lean | /-
Copyright (c) 2017 Johannes Hölzl. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Johannes Hölzl, Yury Kudryashov
-/
import measure_theory.constructions.pi
import measure_theory.measure.stieltjes
import linear_algebra.matrix.transvection
import dynamics.ergodic.meas... |
04b1bbe408d99361458bfa6fbb8ea71e21dd7a60 | a7eef317ddec01b9fc6cfbb876fe7ac00f205ac7 | /src/algebra/group/basic.lean | e28329aca05e3b304503e48b5ec8d8078ca4595e | [
"Apache-2.0"
] | permissive | kmill/mathlib | ea5a007b67ae4e9e18dd50d31d8aa60f650425ee | 1a419a9fea7b959317eddd556e1bb9639f4dcc05 | refs/heads/master | 1,668,578,197,719 | 1,593,629,163,000 | 1,593,629,163,000 | 276,482,939 | 0 | 0 | null | 1,593,637,960,000 | 1,593,637,959,000 | null | UTF-8 | Lean | false | false | 12,768 | 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, Simon Hudon, Mario Carneiro
-/
import algebra.group.to_additive
import algebra.group.defs
import tactic.simpa
import logic.function.basic
import tactic... |
27a9a12be3606da5328ef0f46ec98bf6f9b2e908 | bf532e3e865883a676110e756f800e0ddeb465be | /data/seq/seq.lean | 1611e715e6c8ec12898ad6f1db0f6f9bfa0766a7 | [
"Apache-2.0"
] | permissive | aqjune/mathlib | da42a97d9e6670d2efaa7d2aa53ed3585dafc289 | f7977ff5a6bcf7e5c54eec908364ceb40dafc795 | refs/heads/master | 1,631,213,225,595 | 1,521,089,840,000 | 1,521,089,840,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 25,075 | lean | import data.stream data.lazy_list data.seq.computation logic.basic tactic.interactive
universes u v w
/-
coinductive seq (α : Type u) : Type u
| nil : seq α
| cons : α → seq α → seq α
-/
/-- `seq α` is the type of possibly infinite lists (referred here as sequences).
It is encoded as an infinite stream of options s... |
440c8efb533b888791e95c02cb8de0d0c7bea4c4 | 367134ba5a65885e863bdc4507601606690974c1 | /src/number_theory/primorial.lean | bf02ddbd2539e564da831283767a40123c7e7956 | [
"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 | 7,418 | lean | /-
Copyright (c) 2020 Patrick Stevens. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Patrick Stevens
-/
import tactic.ring_exp
import data.nat.parity
import data.nat.choose.sum
/-!
# Primorial
This file defines the primorial function (the product of primes less than... |
44bf1e4df2b58f1625d8ac0b84849aa75db8d442 | 0d9b0a832bc57849732c5bd008a7a142f7e49656 | /src/component2d.lean | 6f16ece1fbf3731dc161e44107a79d69de0ce0b6 | [] | no_license | mirefek/sokoban.lean | bb9414af67894e4d8ce75f8c8d7031df02d371d0 | 451c92308afb4d3f8e566594b9751286f93b899b | refs/heads/master | 1,681,025,245,267 | 1,618,997,832,000 | 1,618,997,832,000 | 359,491,681 | 10 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 16,425 | lean | import data.list.func
import .list2d
import .boolset2d
import .component1d
import .direction
-- _ _ _ _
-- __ _| | __ _ ___ _ __(_) |_| |__ _ __ ___
-- / _` | |/ _` |/ _ \| '__| | __| '_ \| '_ ` _ \
-- | (_| | | (_| | (_) | | | | |_| | | | | | | | |
-- \__,_|_|\... |
31d197234d567cc679955212bb479bbf9bc1599c | d406927ab5617694ec9ea7001f101b7c9e3d9702 | /src/topology/partition_of_unity.lean | 638019acbeeed2143366d3beb988d63b4ef92187 | [
"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,934 | 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 algebra.big_operators.finprod
import set_theory.ordinal.basic
import topology.continuous_function.algebra
import topology.paracompact
import topology.shrinki... |
5eb15c37005c4e6f1d143f9bf196fae75bf1a5b5 | cb43248ccd028db2c147695d2c68772d583ed390 | /code/intro.lean | b97ff1916e1744879480f20e32e97aa5afaf77b6 | [] | no_license | codyroux/ny-haskell | 812d872a74be7c68d3dac5c69507214bad2c660e | 463e730c5ff1e50c43415714aa27ea4ebf4f64b6 | refs/heads/master | 1,610,284,527,025 | 1,448,464,569,000 | 1,448,464,569,000 | 46,724,063 | 4 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 1,152 | lean | -- We can import all the theorems from various places from the std lib
import logic logic.connectives
-- remember to use open to not have to prefix them!
help commands
section intro
parameters a b c d : Prop
print notation ↔
-- This is probably the most useful command in Lean
print prefix iff
-- Let's try a "isa... |
b57ec026f05558a146d39938f57457edb786a665 | 0b3933727d99a2f351f5dbe6e24716bb786a6649 | /src/sesh/progress.lean | f468d2b947b481dd9521525430e0a5386d206523 | [] | no_license | Vtec234/lean-sesh | 1e770858215279f65aba92b4782b483ab4f09353 | d11d7bb0599406e27d3a4d26242aec13d639ecf7 | refs/heads/master | 1,587,497,515,696 | 1,558,362,223,000 | 1,558,362,223,000 | 169,809,439 | 2 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 22,266 | lean | import sesh.term
import sesh.eval
open term
inductive comms_construct: ∀ {γ} {Γ: context γ} {A: tp}, term Γ A → Prop
| CCFork:
∀ {γ} {Γ: context γ} {S: sesh_tp}
{V: term Γ $ S⊸End!}
(hV: value V),
comms_construct (Fork V)
| CCSend:
∀ {γ} {Γ₁ Γ₂: context γ} {A: tp} {S: sesh_tp}
{V: term Γ₁ A} {W: term ... |
4c2dada7642848bf6326250ff20d771a67435817 | 75db7e3219bba2fbf41bf5b905f34fcb3c6ca3f2 | /library/theories/combinatorics/choose.lean | 84eda84b20995136eb9c408f11306e6084727cdd | [
"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 | 8,530 | lean | /-
Copyright (c) 2015 Jeremy Avigad. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Author: Jeremy Avigad
Binomial coefficients, "n choose k".
-/
import data.nat.div data.nat.fact data.finset
open decidable
namespace nat
/- choose -/
definition choose : ℕ → ℕ → ℕ
| 0 0 ... |
0453b80788de67aeaca36e7367287c6c5e07be15 | 2eab05920d6eeb06665e1a6df77b3157354316ad | /src/topology/instances/ennreal.lean | 21adceeb3b743e841a6e0794c188f244e317c868 | [
"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 | 55,385 | lean | /-
Copyright (c) 2017 Johannes Hölzl. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Johannes Hölzl
-/
import topology.instances.nnreal
import topology.algebra.ordered.liminf_limsup
import topology.metric_space.lipschitz
/-!
# Extended non-negative reals
-/
noncomputa... |
1cd4bb523ea908e31a235c7cd6e44d412fd3ba0a | fa02ed5a3c9c0adee3c26887a16855e7841c668b | /src/algebra/homology/augment.lean | 448423c837a48977683474430dd1e7f78e1cf6cc | [
"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 | 11,102 | lean | /-
Copyright (c) 2021 Scott Morrison. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Scott Morrison
-/
import algebra.homology.single
import algebra.homology.exact
import tactic.linarith
/-!
# Augmentation and truncation of `ℕ`-indexed (co)chain complexes.
-/
open ca... |
1c3e906630a5b0d74e2e3606cbb6e1e38f94c874 | 649957717d58c43b5d8d200da34bf374293fe739 | /test/tidy.lean | a3ce9c57444f0a766896371eadac964a91ca80b4 | [
"Apache-2.0"
] | permissive | Vtec234/mathlib | b50c7b21edea438df7497e5ed6a45f61527f0370 | fb1848bbbfce46152f58e219dc0712f3289d2b20 | refs/heads/master | 1,592,463,095,113 | 1,562,737,749,000 | 1,562,737,749,000 | 196,202,858 | 0 | 0 | Apache-2.0 | 1,562,762,338,000 | 1,562,762,337,000 | null | UTF-8 | Lean | false | false | 1,151 | lean | -- Copyright (c) 2018 Scott Morrison. All rights reserved.
-- Released under Apache 2.0 license as described in the file LICENSE.
-- Authors: Scott Morrison
import tactic.tidy
open tactic
namespace tidy.test
meta def interactive_simp := `[simp]
def tidy_test_0 : ∀ x : unit, x = unit.star :=
begin
success_if_fail... |
0c9a25aea0ec59d36fcceb0325d1b58c0d9e58eb | 8cae430f0a71442d02dbb1cbb14073b31048e4b0 | /archive/imo/imo1964_q1.lean | f381845902b31ecb0025b69828cb486dac670294 | [
"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 | 2,931 | lean | /-
Copyright (c) 2020 Kevin Buzzard. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Kevin Buzzard
-/
import tactic.interval_cases
import data.nat.modeq
/-!
# IMO 1964 Q1
> THIS FILE IS SYNCHRONIZED WITH MATHLIB4.
> Any changes to this file require a corresponding PR... |
6de5ea8bfd91a3e32e4faa58053393a9bf2fffa6 | fe84e287c662151bb313504482b218a503b972f3 | /src/undergraduate/MAS114/Semester 1/Q38.lean | 15fba31aa05431ac09c51a9214dbc0aa647f2b30 | [] | no_license | NeilStrickland/lean_lib | 91e163f514b829c42fe75636407138b5c75cba83 | 6a9563de93748ace509d9db4302db6cd77d8f92c | refs/heads/master | 1,653,408,198,261 | 1,652,996,419,000 | 1,652,996,419,000 | 181,006,067 | 4 | 1 | null | null | null | null | UTF-8 | Lean | false | false | 1,213 | lean | import data.real.basic data.real.sqrt
namespace MAS114
namespace exercises_1
namespace Q38
noncomputable def r3 : ℝ := real.sqrt 3
noncomputable def r5 : ℝ := real.sqrt 5
noncomputable def r7 : ℝ := real.sqrt 7
lemma p3 : (3 : ℝ) ≥ 0 := by { norm_cast, exact dec_trivial }
lemma p5 : (5 : ℝ) ≥ 0 := by { norm_cast, ex... |
96d950b7b06d6c4bd4b0e21f6dcadd4ada9c58ac | d1a52c3f208fa42c41df8278c3d280f075eb020c | /stage0/src/Lean/Elab/MacroArgUtil.lean | 0b33eb8b24ab5e69ad3bc48daeedc3a4b88489c3 | [
"Apache-2.0",
"LLVM-exception",
"NCSA",
"LGPL-3.0-only",
"LicenseRef-scancode-inner-net-2.0",
"BSD-3-Clause",
"LGPL-2.0-or-later",
"Spencer-94",
"LGPL-2.1-or-later",
"HPND",
"LicenseRef-scancode-pcre",
"ISC",
"LGPL-2.1-only",
"LicenseRef-scancode-other-permissive",
"SunPro",
"CMU-Mach"... | permissive | cipher1024/lean4 | 6e1f98bb58e7a92b28f5364eb38a14c8d0aae393 | 69114d3b50806264ef35b57394391c3e738a9822 | refs/heads/master | 1,642,227,983,603 | 1,642,011,696,000 | 1,642,011,696,000 | 228,607,691 | 0 | 0 | Apache-2.0 | 1,576,584,269,000 | 1,576,584,268,000 | null | UTF-8 | Lean | false | false | 1,806 | 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.Syntax
namespace Lean.Elab.Command
open Lean.Syntax
open Lean.Parser.Term hiding macroArg
open Lean.Parser.Command
/- Convert `macro` arg... |
a3718861e390d8a2dd01e15c7d17c7b16575b848 | 0e175f34f8dca5ea099671777e8d7446d7d74227 | /library/init/algebra/classes.lean | 93e14146b3c3e0428e3f80aa9b3e98f3fb9c1166 | [
"Apache-2.0"
] | permissive | utensil-contrib/lean | b31266738071c654d96dac8b35d9ccffc8172fda | a28b9c8f78d982a4e82b1e4f7ce7988d87183ae8 | refs/heads/master | 1,670,045,564,075 | 1,597,397,599,000 | 1,597,397,599,000 | 287,528,503 | 0 | 0 | Apache-2.0 | 1,597,408,338,000 | 1,597,408,337,000 | null | UTF-8 | Lean | false | false | 12,185 | 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.logic init.data.ordering.basic
universes u v
@[algebra] class is_symm_op (α : Type u) (β : out_param (Type v)) (op : α → α → β) : Prop ... |
066701ca700c603dc632e599837881f08000274e | aa3f8992ef7806974bc1ffd468baa0c79f4d6643 | /tests/lean/namespace_bug.lean | 0f6d20f689c3e06575a45631f4dd79161129ea67 | [
"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 | 115 | lean | import data.nat.basic
namespace playground
namespace nat
check 2+3 -- Should produce error
end nat
end playground
|
5aa2b10d3e529cb8fe7c2a122b13a76fc19a7dc4 | f083c4ed5d443659f3ed9b43b1ca5bb037ddeb58 | /linear_algebra/multivariate_polynomial.lean | ad88f5c4a21ed0b96cdf701e5ad2035f37295483 | [
"Apache-2.0"
] | permissive | semorrison/mathlib | 1be6f11086e0d24180fec4b9696d3ec58b439d10 | 20b4143976dad48e664c4847b75a85237dca0a89 | refs/heads/master | 1,583,799,212,170 | 1,535,634,130,000 | 1,535,730,505,000 | 129,076,205 | 0 | 0 | Apache-2.0 | 1,551,697,998,000 | 1,523,442,265,000 | Lean | UTF-8 | Lean | false | false | 12,413 | 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, Johan Commelin, Mario Carneiro
Multivariate Polynomial
-/
import data.finsupp linear_algebra.basic algebra.ring
open set function finsupp lattice
universes u v w
var... |
6e0d648714037107c5e8b9dd9846cb499f309ccf | 2c41ae31b2b771ad5646ad880201393f5269a7f0 | /Lean/Qualities/Interoperable.lean | 9f3ffe9a06b3e92e2f07b0233f2356b3fd5bd47e | [] | no_license | kevinsullivan/Boehm | 926f25bc6f1a8b6bd47d333d936fdfc278228312 | 55208395bff20d48a598b7fa33a4d55a2447a9cf | refs/heads/master | 1,586,127,134,302 | 1,488,252,326,000 | 1,488,252,326,000 | 32,836,930 | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 695 | lean | -- Interoperable
/-
[Interoperable] is parameterized by an instance of type [SystemType], and it's a sub-attribute to [MissionEffective].
An instance of type [SystemType] is deemed [Interoperable] if and only if all the requirements are satisfied.
-/
import SystemModel.System
inductive Interoperable (sys_typ... |
39aa9f5da213cda905f9bf5f8e845af9974db529 | fa02ed5a3c9c0adee3c26887a16855e7841c668b | /src/algebra/pointwise.lean | 31172bdf6d7f80f41684d3a701c9bda72c7f9abe | [
"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 | 23,191 | lean | /-
Copyright (c) 2019 Johan Commelin. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Johan Commelin, Floris van Doorn
-/
import algebra.module.basic
import data.set.finite
import group_theory.submonoid.basic
/-!
# Pointwise addition, multiplication, and scalar multipl... |
e0d4db2149a3ce9f36952d61673664d2963d2611 | df7bb3acd9623e489e95e85d0bc55590ab0bc393 | /lean/love12_basic_mathematical_structures_exercise_sheet.lean | 5683df2ffed88586d340400475a2edc57a438f53 | [] | 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,690 | lean | import .love12_basic_mathematical_structures_demo
/- # LoVe Exercise 12: Basic Mathematical Structures -/
set_option pp.beta true
set_option pp.generalized_field_notation false
namespace LoVe
/- ## Question 1: Type Classes
Recall the inductive type `btree` we introduced earlier: -/
#check btree
/- The followi... |
a185fd7c96a33852d20bb68cd3502a2b3a35ab38 | 6432ea7a083ff6ba21ea17af9ee47b9c371760f7 | /tests/lean/run/unifhint3.lean | 3a76e152360f46cfc12c1f0f7a2cd99ee97c317c | [
"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,378 | lean | /- Coercion pullback example from the paper "Hints in Unification" -/
universe u
structure Monoid where
α : Type u
op : α → α → α
unit : α
structure Group where
α : Type u
op : α → α → α
unit : α
inv : α → α
structure Ring where
α : Type u
mul : α → α → α
add : α → α → α
neg : ... |
9249e0ef0b9766acfe1e6ec9e887d375bffc66fc | 2c096fdfecf64e46ea7bc6ce5521f142b5926864 | /src/Lean/Data/Format.lean | 7a225d3f13dfe0263c69fd42371d19674deacecf | [
"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 | 1,740 | 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 Lean.Data.Options
universe u v
namespace Std
namespace Format
open Lean
def getWidth (o : Options) : Nat := o.get `format.width defWidth
def get... |
8ef22a4510dbf352cb27dd7f6ff4dcfc94c112f8 | aa5a655c05e5359a70646b7154e7cac59f0b4132 | /src/Lean/Meta/Tactic/Induction.lean | e399acb292949bc3e5963eb9645dcec586aeef05 | [
"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 | 11,723 | lean | /-
Copyright (c) 2020 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Leonardo de Moura
-/
import Lean.Meta.RecursorInfo
import Lean.Meta.SynthInstance
import Lean.Meta.Tactic.Util
import Lean.Meta.Tactic.Revert
import Lean.Meta.Tactic.Intro
impor... |
08c62b308e1d6a4601caf7363527999fcfce7d61 | bb31430994044506fa42fd667e2d556327e18dfe | /src/data/nat/choose/factorization.lean | 23075edf1b6e7a42169dbda954044d1f92a9defe | [
"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 | 6,427 | lean | /-
Copyright (c) 2022 Bolton Bailey. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Bolton Bailey, Patrick Stevens, Thomas Browning
-/
import data.nat.choose.central
import data.nat.factorization.basic
import data.nat.multiplicity
/-!
# Factorization of Binomial Coef... |
8b860cc498ff84918ca95ad08efe010fba95e9fb | f618aea02cb4104ad34ecf3b9713065cc0d06103 | /src/topology/sequences.lean | 237b54251997ec58571e8b1da6e8c581bfd8dd70 | [
"Apache-2.0"
] | permissive | joehendrix/mathlib | 84b6603f6be88a7e4d62f5b1b0cbb523bb82b9a5 | c15eab34ad754f9ecd738525cb8b5a870e834ddc | refs/heads/master | 1,589,606,591,630 | 1,555,946,393,000 | 1,555,946,393,000 | 182,813,854 | 0 | 0 | null | 1,555,946,309,000 | 1,555,946,308,000 | null | UTF-8 | Lean | false | false | 10,574 | lean | /-
Copyright (c) 2018 Jan-David Salchow. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Jan-David Salchow
Sequences in topological spaces.
In this file we define sequences in topological spaces and show how they are related to
filters and the topology. In particular,... |
4bb7554aacdc595b5b790d62977612d1bfd5b638 | 8cae430f0a71442d02dbb1cbb14073b31048e4b0 | /src/group_theory/quotient_group.lean | f4145c16e1f0712e0f87bad5af4e764b05798457 | [
"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 | 23,809 | lean | /-
Copyright (c) 2018 Kevin Buzzard, Patrick Massot. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Kevin Buzzard, Patrick Massot
This file is to a certain extent based on `quotient_module.lean` by Johannes Hölzl.
-/
import group_theory.congruence
import group_theory.... |
727373563b29c78cec2151cae59dc404769782d6 | cf39355caa609c0f33405126beee2739aa3cb77e | /tests/lean/run/prod_notation.lean | 31cc88283048ec72f31d1f996291ef187aa91258 | [
"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 | 128 | lean | open prod
definition tst1 : nat × Prop × nat × Prop := (1, true, 2, false)
definition tst2 : nat × nat × nat := (1, 2, 3)
|
072ad47c7d2cc56e0b2a38838b5d5eb9c3c0d609 | ca1ad81c8733787aba30f7a8d63f418508e12812 | /clfrags/src/hilbert/wr/dc.lean | fdd87fb73c9b8d25b0dcef9882cb3263b60d8a27 | [] | no_license | greati/hilbert-classical-fragments | 5cdbe07851e979c8a03c621a5efd4d24bbfa333a | 18a21ac6b2e890060eb4ae65752fc0245394d226 | refs/heads/master | 1,591,973,117,184 | 1,573,822,710,000 | 1,573,822,710,000 | 194,334,439 | 2 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 843 | lean | import core.connectives
namespace clfrags
namespace hilbert
namespace wr
namespace dc
axiom dc₁ : Π {a b c : Prop}, a → b → dc a b c
axiom dc₂ : Π {a b : Prop}, dc b a a → a
axiom dc₃ : Π {a b : Prop}, a → dc b a a
axiom dc₄ : Π {a... |
43ca9fa88f9812c3a28c48e03c78789cb608e89e | d406927ab5617694ec9ea7001f101b7c9e3d9702 | /src/analysis/normed/group/SemiNormedGroup/completion.lean | 27a0a2315624cbb9a17a910988f2e840ebd3f1e6 | [
"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 | 4,511 | lean | /-
Copyright (c) 2021 Riccardo Brasca. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Riccardo Brasca, Johan Commelin
-/
import analysis.normed.group.SemiNormedGroup
import category_theory.preadditive.additive_functor
import analysis.normed.group.hom_completion
/-!
# ... |
c14380da0dbaa3c05727c2766a49c338a7b40162 | 02005f45e00c7ecf2c8ca5db60251bd1e9c860b5 | /src/measure_theory/category/Meas.lean | 1adadc25ed77d2cdaa50796ab2b4467330316202 | [
"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 | 4,278 | lean | /-
Copyright (c) 2018 Johannes Hölzl. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Johannes Hölzl
-/
import topology.category.Top.basic
import measure_theory.giry_monad
import category_theory.monad.algebra
/-
* Meas, the category of measurable spaces
Measurable spa... |
eeeac5b9fa2babb4aecbb1189dbf268c522b88a8 | 35677d2df3f081738fa6b08138e03ee36bc33cad | /src/tactic/omega/clause.lean | 3c3e1ceab9532e1642580f94adfea83825250c60 | [
"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,998 | lean | /- Copyright (c) 2019 Seul Baek. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Author: Seul Baek
Definition of linear constrain clauses. -/
import tactic.omega.term
namespace omega
/-- (([t₁,...tₘ],[s₁,...,sₙ]) : clause) encodes the constraints
0 = ⟦t₁⟧ ∧ ... ∧ 0 = ⟦tₘ⟧ ∧ ... |
6d641c65fc70b7f83c29c1c6957e64048f3a8152 | 6432ea7a083ff6ba21ea17af9ee47b9c371760f7 | /src/Lean/Compiler/LCNF/Bind.lean | c4a9d425edd4528578ae7614fc9d364677bd6311 | [
"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 | 4,993 | lean | /-
Copyright (c) 2022 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Leonardo de Moura
-/
import Lean.Compiler.LCNF.InferType
namespace Lean.Compiler.LCNF
/-- Helper class for lifting `CompilerM.codeBind` -/
class MonadCodeBind (m : Type → Type... |
66a512205ffb6b5932ffb5315faa904ba4740d19 | f618aea02cb4104ad34ecf3b9713065cc0d06103 | /src/analysis/complex/exponential.lean | 0904d1a0915f9acaf22c95d85a082af63cae4fc0 | [
"Apache-2.0"
] | permissive | joehendrix/mathlib | 84b6603f6be88a7e4d62f5b1b0cbb523bb82b9a5 | c15eab34ad754f9ecd738525cb8b5a870e834ddc | refs/heads/master | 1,589,606,591,630 | 1,555,946,393,000 | 1,555,946,393,000 | 182,813,854 | 0 | 0 | null | 1,555,946,309,000 | 1,555,946,308,000 | null | UTF-8 | Lean | false | false | 60,588 | lean | /-
Copyright (c) 2018 Chris Hughes. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Chris Hughes, Abhimanyu Pallavi Sudhir, Jean Lo, Calle Sönne
-/
import topology.instances.complex tactic.linarith data.complex.exponential
group_theory.quotient_group topology.metr... |
c6a78192d85257286e43cf17f01cd9850cfb4131 | 4fa161becb8ce7378a709f5992a594764699e268 | /src/topology/bases.lean | e3883e4e4ab665e009742549b4eeb65456c02136 | [
"Apache-2.0"
] | permissive | laughinggas/mathlib | e4aa4565ae34e46e834434284cb26bd9d67bc373 | 86dcd5cda7a5017c8b3c8876c89a510a19d49aad | refs/heads/master | 1,669,496,232,688 | 1,592,831,995,000 | 1,592,831,995,000 | 274,155,979 | 0 | 0 | Apache-2.0 | 1,592,835,190,000 | 1,592,835,189,000 | null | UTF-8 | Lean | false | false | 12,409 | 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
Bases of topologies. Countability axioms.
-/
import topology.constructions
open set filter classical
open_locale topological_space
namespace topologic... |
12037afed2b1c1e6bb43a77d042e729f55666537 | 432d948a4d3d242fdfb44b81c9e1b1baacd58617 | /src/category_theory/eq_to_hom.lean | 6a56887aae959227d6b92669b9888333f1ebec45 | [
"Apache-2.0"
] | permissive | JLimperg/aesop3 | 306cc6570c556568897ed2e508c8869667252e8a | a4a116f650cc7403428e72bd2e2c4cda300fe03f | refs/heads/master | 1,682,884,916,368 | 1,620,320,033,000 | 1,620,320,033,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 4,952 | 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.opposites
universes v₁ v₂ u₁ u₂ -- morphism levels before object levels. See note [category_theory universes].
namespace category_t... |
66748b2dffde8195a7b30d10b46cb459cd02daf4 | 367134ba5a65885e863bdc4507601606690974c1 | /src/algebra/lie/basic.lean | 039b473dfc8d75d58e86a8769f56016e450d0a90 | [
"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 | 19,025 | lean | /-
Copyright (c) 2019 Oliver Nash. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Oliver Nash
-/
import data.bracket
import algebra.algebra.basic
import tactic.noncomm_ring
/-!
# Lie algebras
This file defines Lie rings and Lie algebras over a commutative ring togeth... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.