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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
548568973bca92d082da8b6339bb3a5edd7f4bd1 | fa02ed5a3c9c0adee3c26887a16855e7841c668b | /src/order/bounds.lean | ea3cb54de8655e1d8eb62f35ba70e7b14f0b51d8 | [
"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 | 30,673 | lean | /-
Copyright (c) 2017 Johannes Hölzl. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Johannes Hölzl, Yury Kudryashov
-/
import data.set.intervals.basic
import algebra.ordered_group
/-!
# Upper / lower bounds
In this file we define:
* `upper_bounds`, `lower_bounds` :... |
053c97bbab8645081a7061c41826a0252224abfa | 74addaa0e41490cbaf2abd313a764c96df57b05d | /Mathlib/category_theory/monoidal/transport_auto.lean | 7832daffd6ccaf02fc06e89ba0402d6eca17ba29 | [] | 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 | 4,684 | 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.natural_transformation
import Mathlib.PostPort
universes u₁ u₂ v₁... |
ddd442c0156d99761986d95034a6e24612cfc7c2 | 3dd1b66af77106badae6edb1c4dea91a146ead30 | /library/standard/logic.lean | 5d8719ad21851f9433d008729b5d3f96946eff8d | [
"Apache-2.0"
] | permissive | silky/lean | 79c20c15c93feef47bb659a2cc139b26f3614642 | df8b88dca2f8da1a422cb618cd476ef5be730546 | refs/heads/master | 1,610,737,587,697 | 1,406,574,534,000 | 1,406,574,534,000 | 22,362,176 | 1 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 10,242 | lean | -- Copyright (c) 2014 Microsoft Corporation. All rights reserved.
-- Released under Apache 2.0 license as described in the file LICENSE.
-- Authors: Leonardo de Moura, Jeremy Avigad
definition Prop [inline] := Type.{0}
inductive false : Prop
theorem false_elim (c : Prop) (H : false) : c
:= false_rec c H
inductive tr... |
b8df80a39f03f527ae544c9808c89a7f8f29fd02 | 36c7a18fd72e5b57229bd8ba36493daf536a19ce | /library/data/nat/parity.lean | 5ad13ab7158bee9c4936c44020172a9279e92f60 | [
"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 | 10,081 | 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
Parity.
-/
import data.nat.power logic.identities
namespace nat
open decidable
open algebra
definition even (n : nat) := n % 2 = 0
definition decidable_eve... |
47588153f4e5b046fd305785e09ba7d9266c5b58 | 1abd1ed12aa68b375cdef28959f39531c6e95b84 | /src/field_theory/finiteness.lean | e07eeebdd51fbea9da08304b924fa02193d1e717 | [
"Apache-2.0"
] | permissive | jumpy4/mathlib | d3829e75173012833e9f15ac16e481e17596de0f | af36f1a35f279f0e5b3c2a77647c6bf2cfd51a13 | refs/heads/master | 1,693,508,842,818 | 1,636,203,271,000 | 1,636,203,271,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 4,172 | lean | /-
Copyright (c) 2019 Chris Hughes. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Chris Hughes
-/
import ring_theory.finiteness
import linear_algebra.dimension
/-!
# A module over a division ring is noetherian if and only if it is finite.
-/
universes u v
open_loc... |
7246aca1c09d9d73bfc6f54d013ae719170c0267 | 57c233acf9386e610d99ed20ef139c5f97504ba3 | /src/data/nat/factorization.lean | 46228f6d72a36eb8fe10c36291a44957cbf35f5e | [
"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 | 11,533 | lean | /-
Copyright (c) 2021 Stuart Presnell. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Stuart Presnell
-/
import data.nat.prime
import data.nat.mul_ind
/-!
# Prime factorizations
`n.factorization` is the finitely supported function `ℕ →₀ ℕ`
mapping each prime factor... |
9a33897034981cd4f5bd9f21b5ea39f180de9ef3 | 5d166a16ae129621cb54ca9dde86c275d7d2b483 | /tests/lean/rquote.lean | 813d20fcdc85c6a1d59b3d0d4aa7db9890f1db70 | [
"Apache-2.0"
] | permissive | jcarlson23/lean | b00098763291397e0ac76b37a2dd96bc013bd247 | 8de88701247f54d325edd46c0eed57aeacb64baf | refs/heads/master | 1,611,571,813,719 | 1,497,020,963,000 | 1,497,021,515,000 | 93,882,536 | 1 | 0 | null | 1,497,029,896,000 | 1,497,029,896,000 | null | UTF-8 | Lean | false | false | 383 | lean | --
constant nat.gcd : nat → nat → nat
namespace foo
constant f : nat → nat
constant g : nat → nat
end foo
namespace boo
constant f : nat → nat
end boo
open foo boo
#check ``f
#check ``g
open nat
#check ``has_add.add
#check ``gcd
#check `f
#check `foo.f
namespace bla
section
parameter A : Type
definition... |
bc9bee58ee3987afc11bb28e0f24f083cfeb5fa1 | 94e33a31faa76775069b071adea97e86e218a8ee | /src/model_theory/encoding.lean | 41b3d2bf7835fc37366d1ecea09fb79525ebafaf | [
"Apache-2.0"
] | permissive | urkud/mathlib | eab80095e1b9f1513bfb7f25b4fa82fa4fd02989 | 6379d39e6b5b279df9715f8011369a301b634e41 | refs/heads/master | 1,658,425,342,662 | 1,658,078,703,000 | 1,658,078,703,000 | 186,910,338 | 0 | 0 | Apache-2.0 | 1,568,512,083,000 | 1,557,958,709,000 | Lean | UTF-8 | Lean | false | false | 14,211 | lean | /-
Copyright (c) 2022 Aaron Anderson. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Aaron Anderson
-/
import computability.encoding
import model_theory.syntax
import set_theory.cardinal.ordinal
/-! # Encodings and Cardinality of First-Order Syntax
## Main Definitio... |
55400f3f4761e9b9baea27c820446e464a71f681 | de91c42b87530c3bdcc2b138ef1a3c3d9bee0d41 | /old/expressions/measurementSystem.lean | 75d4cb4417e47c7251d19cf2cd05e6831762a649 | [] | no_license | kevinsullivan/lang | d3e526ba363dc1ddf5ff1c2f36607d7f891806a7 | e9d869bff94fb13ad9262222a6f3c4aafba82d5e | refs/heads/master | 1,687,840,064,795 | 1,628,047,969,000 | 1,628,047,969,000 | 282,210,749 | 0 | 1 | null | 1,608,153,830,000 | 1,595,592,637,000 | Lean | UTF-8 | Lean | false | false | 716 | lean | import ...phys.metrology.measurement
namespace lang.measurementSystem
open measurementSystem
structure var : Type :=
mk :: (num : ℕ)
structure measureVar extends var
inductive measureExpr
| lit (v : MeasurementSystem)
| var (v : measureVar)
abbreviation measureEnv := measureVar → MeasurementSystem
abbreviation meas... |
1b7cad255a4a7a12e94822ef5c372e8c20006c7e | cf39355caa609c0f33405126beee2739aa3cb77e | /tests/lean/run/1771.lean | 3feb7c98c24b3826867e892a3e5eb49ea5b7b1fa | [
"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 | 535 | lean | inductive is_some {A : Type} (mx : option A) : Prop
| mk : ∀ x : A, mx = some x → is_some
lemma foo {A : Type} (x : A) (mx : option A)
(H : mx = some x)
: is_some mx
:= begin
existsi x, assumption
end
set_option pp.all true
set_option pp.beta false
set_option pp.instantiate_mvars false
-- same lemma as above
... |
e1c787b06d27c26fba60ea5fe6fab6f3304d201d | 8cae430f0a71442d02dbb1cbb14073b31048e4b0 | /src/category_theory/preadditive/yoneda/projective.lean | 0cc596a1ce183770609efbc3671634c8c50c2a04 | [
"Apache-2.0"
] | permissive | leanprover-community/mathlib | 56a2cadd17ac88caf4ece0a775932fa26327ba0e | 442a83d738cb208d3600056c489be16900ba701d | refs/heads/master | 1,693,584,102,358 | 1,693,471,902,000 | 1,693,471,902,000 | 97,922,418 | 1,595 | 352 | Apache-2.0 | 1,694,693,445,000 | 1,500,624,130,000 | Lean | UTF-8 | Lean | false | false | 1,898 | lean | /-
Copyright (c) 2020 Markus Himmel. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Markus Himmel, Scott Morrison
-/
import category_theory.preadditive.yoneda.basic
import category_theory.preadditive.projective
import algebra.category.Group.epi_mono
import algebra.cate... |
c4e980ad6628f950a32476b79ec1f7b428b2c82b | aa3f8992ef7806974bc1ffd468baa0c79f4d6643 | /library/data/prod/decl.lean | 74732b8f2938317bb2385e65fa91df285d4239ce | [
"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 | 504 | 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
import data.unit.decl logic.eq
structure prod (A B : Type) :=
mk :: (pr1 : A) (pr2 : B)
definition pair := @prod.mk
namespace prod
not... |
23e5c8578fe663182e165ecbc498ea0a512737a6 | 8cae430f0a71442d02dbb1cbb14073b31048e4b0 | /src/ring_theory/adjoin_root.lean | efb922d50237808584a4f8cbd9ec402da09bf2d7 | [
"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 | 32,413 | lean | /-
Copyright (c) 2018 Mario Carneiro. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Mario Carneiro, Chris Hughes
-/
import algebra.algebra.basic
import data.polynomial.field_division
import field_theory.minpoly.basic
import ring_theory.adjoin.basic
import ring_theory.... |
d6ab84e61a4ad33ebbcf1e8b3afe74b32806e0fb | 4d2583807a5ac6caaffd3d7a5f646d61ca85d532 | /src/topology/alexandroff.lean | 1bc1cc34fe59aeca4f9137db81121915e6abd0eb | [
"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 | 16,549 | lean | /-
Copyright (c) 2021 Yourong Zang. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Yourong Zang, Yury Kudryashov
-/
import topology.separation
import topology.opens
/-!
# The Alexandroff Compactification
We construct the Alexandroff compactification (the one-point co... |
43e7de649cef123e6d20ec54711648da67c280bc | 8cae430f0a71442d02dbb1cbb14073b31048e4b0 | /src/ring_theory/subsemiring/pointwise.lean | 602d99c4ccd9bcf36499d83ff9e0af09c8732962 | [
"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,907 | lean | /-
Copyright (c) 2021 Eric Wieser. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Eric Wieser
-/
import algebra.group_ring_action.basic
import ring_theory.subsemiring.basic
import group_theory.submonoid.pointwise
import data.set.pointwise.basic
/-! # Pointwise instanc... |
ee90c6b0241d168263230fe1da63953e591ed9c4 | 302c785c90d40ad3d6be43d33bc6a558354cc2cf | /src/ring_theory/adjoin/basic.lean | ad5ea5b4b4a910c8e88b44288fba583fcbb0e348 | [
"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 | 12,203 | lean | /-
Copyright (c) 2019 Kenny Lau. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Kenny Lau
-/
import ring_theory.polynomial.basic
import algebra.algebra.subalgebra
/-!
# Adjoining elements to form subalgebras
This file develops the basic theory of subalgebras of an R-... |
734a14ce0d90433dbcff187b4245c94af3399c00 | b7f22e51856f4989b970961f794f1c435f9b8f78 | /tests/lean/run/blast_ematch7.lean | 30f01c377166e323b906b6889d64e831d0ab6f1a | [
"Apache-2.0"
] | permissive | soonhokong/lean | cb8aa01055ffe2af0fb99a16b4cda8463b882cd1 | 38607e3eb57f57f77c0ac114ad169e9e4262e24f | refs/heads/master | 1,611,187,284,081 | 1,450,766,737,000 | 1,476,122,547,000 | 11,513,992 | 2 | 0 | null | 1,401,763,102,000 | 1,374,182,235,000 | C++ | UTF-8 | Lean | false | false | 289 | lean | import algebra.ring data.int
open algebra
variables {A : Type} [s : ring A] (a b : A)
include s
set_option blast.strategy "ematch"
attribute zero_mul [forward]
example : a = 0 → a * b = 0 :=
by blast
open int
definition ex1 (a b : int) : a = 0 → a * b = 0 :=
by blast
print ex1
|
8c64986a00563acea560092bed4414f3f1b6fbc0 | 6432ea7a083ff6ba21ea17af9ee47b9c371760f7 | /src/Lean/Parser/StrInterpolation.lean | ad0571e6d988bb3d442680c108054cfbbaca268a | [
"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 | 2,145 | 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.Basic
namespace Lean.Parser
def isQuotableCharForStrInterpolant (c : Char) : Bool :=
c == '{' || isQuotableCharDefault c
partial def ... |
7da8376cfa6bb0913f39855ce4b973cb5d652865 | 6432ea7a083ff6ba21ea17af9ee47b9c371760f7 | /tests/lean/run/replace.lean | ffa1bfd902ed8e923716fe069e40d32ae21966ea | [
"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 | 601 | lean | import Lean
open Lean
partial def mkBig : Nat → Expr
| 0 => mkConst `a
| (n+1) => mkApp2 (mkConst `f []) (mkBig n) (mkBig n)
def replaceTest (e : Expr) : Expr :=
e.replace $ fun e => match e with
| Expr.const c _ => if c == `f then mkConst `g else none
| _ => none
#eval replaceTest $ mkBig 4
#eval (replaceTe... |
50ffff542e9a0b2f48004158951003b77288ddf6 | 69d4931b605e11ca61881fc4f66db50a0a875e39 | /src/linear_algebra/matrix/basis.lean | 6098379436261af11ce9a557df51cc70c0fc15a8 | [
"Apache-2.0"
] | permissive | abentkamp/mathlib | d9a75d291ec09f4637b0f30cc3880ffb07549ee5 | 5360e476391508e092b5a1e5210bd0ed22dc0755 | refs/heads/master | 1,682,382,954,948 | 1,622,106,077,000 | 1,622,106,077,000 | 149,285,665 | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 5,277 | lean | /-
Copyright (c) 2019 Johannes Hölzl. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Johannes Hölzl, Patrick Massot, Casper Putz, Anne Baanen
-/
import linear_algebra.matrix.to_lin
/-!
# Bases and matrices
This file defines the map `basis.to_matrix` that sends a fami... |
176492b7e6974cf6c9e58743cdc9a969f400878d | 57c233acf9386e610d99ed20ef139c5f97504ba3 | /src/order/category/LinearOrder.lean | 599b11cd17f4ab5901e9fcedd774f1df6f47196d | [
"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 | 2,095 | 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 order.category.PartialOrder
/-!
# Category of linear orders
This defines `LinearOrder`, the category of linear orders with monotone maps.
-/
open category_... |
1ac6df29b5c31490fbd6ea658adb5be7dd835817 | ac89c256db07448984849346288e0eeffe8b20d0 | /src/Lean/Compiler/InitAttr.lean | 68c18671526a7a6f815aedb665991fbdaaadb646 | [
"Apache-2.0"
] | permissive | chepinzhang/lean4 | 002cc667f35417a418f0ebc9cb4a44559bb0ccac | 24fe2875c68549b5481f07c57eab4ad4a0ae5305 | refs/heads/master | 1,688,942,838,326 | 1,628,801,942,000 | 1,628,801,995,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 4,227 | lean | /-
Copyright (c) 2019 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Leonardo de Moura
-/
import Lean.Environment
import Lean.Attributes
namespace Lean
private def getIOTypeArg : Expr → Option Expr
| Expr.app (Expr.const `IO _ _) arg _ => som... |
76844340ba3b7635768616d8941d0533f0acdfe7 | 96338d06deb5f54f351493a71d6ecf6c546089a2 | /priv/Lean/Setoid.lean | 3dba845c80905e6a547c17852a673f5abdc01b79 | [] | 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 | 7,329 | lean | /- Setoid.lean -/
set_option pp.universes true
set_option pp.metavar_args false
/- naming conventions:
- names with suffix Type are types,
with suffix Prop are properties,
with suffix Set are setoids,
with suffix Cat are categories.
- additional definitions for `My... |
9b72d39e04cd9403cc3a2b5d9554e624bfc9e420 | 618003631150032a5676f229d13a079ac875ff77 | /src/algebra/opposites.lean | d06b45d4f8657aa220a78c8d08b9d7e2e166ada9 | [
"Apache-2.0"
] | permissive | awainverse/mathlib | 939b68c8486df66cfda64d327ad3d9165248c777 | ea76bd8f3ca0a8bf0a166a06a475b10663dec44a | refs/heads/master | 1,659,592,962,036 | 1,590,987,592,000 | 1,590,987,592,000 | 268,436,019 | 1 | 0 | Apache-2.0 | 1,590,990,500,000 | 1,590,990,500,000 | null | UTF-8 | Lean | false | false | 5,736 | lean | /-
Copyright (c) 2018 Kenny Lau. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Kenny Lau
Opposites.
-/
import data.opposite
import algebra.field
namespace opposite
universes u
variables (α : Type u)
instance [has_add α] : has_add (opposite α) :=
{ add := λ x y, op... |
0a8ac773065ce669d70a9cf52fa0b5588980e2c8 | ed27983dd289b3bcad416f0b1927105d6ef19db8 | /src/assignments/assignment_4/assignment_4.lean | 1d9d6eb837a7290350f7b1171cccabbb996e1ef3 | [] | no_license | liuxin-James/complogic-s21 | 0d55b76dbe25024473d31d98b5b83655c365f811 | 13e03e0114626643b44015c654151fb651603486 | refs/heads/master | 1,681,109,264,463 | 1,618,848,261,000 | 1,618,848,261,000 | 337,599,491 | 0 | 0 | null | 1,613,141,619,000 | 1,612,925,555,000 | null | UTF-8 | Lean | false | false | 8,850 | lean | /-
1. Write a polymorphic function, someSatisfies,
that takes a a predicate function, p, of type
α → bool, and list of values of type α (a type
parameter), and and that returns true (tt) if
and only if there is some value, v, in the list,
for which (p v) is true (tt). Your implementation
must use list_map to conver... |
46d045f66d61d1078e232a7b2b0003c8f9cd7410 | 38bf3fd2bb651ab70511408fcf70e2029e2ba310 | /src/algebra/category/Group.lean | 99715e0aa9b014c64671029ca1fcb3825f09f63b | [
"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 | 2,166 | lean | /-
Copyright (c) 2018 Johan Commelin. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Johan Commelin
-/
import algebra.punit_instances
import algebra.category.Mon.basic
/-!
# Category instances for group, add_group, comm_group, and add_comm_group.
We introduce the bu... |
4c341744ec51fc842a7e53d207de4fc1bd62fb6b | 05f637fa14ac28031cb1ea92086a0f4eb23ff2b1 | /tests/lean/interactive/t4.lean | 7f73e61272895927c1894e5c74a47171fb15e1ae | [
"Apache-2.0"
] | permissive | codyroux/lean0.1 | 1ce92751d664aacff0529e139083304a7bbc8a71 | 0dc6fb974aa85ed6f305a2f4b10a53a44ee5f0ef | refs/heads/master | 1,610,830,535,062 | 1,402,150,480,000 | 1,402,150,480,000 | 19,588,851 | 2 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 37 | lean | theorem (a : Bool) : a.
print "done". |
21640272ddcad18c2ba25fbc3081bd77f56ca80e | 618003631150032a5676f229d13a079ac875ff77 | /src/data/list/range.lean | b41cfc89d27f2d2f397cce2ccbcd5b73f0622a6f | [
"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,381 | lean | /-
Copyright (c) 2018 Mario Carneiro. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Mario Carneiro, Kenny Lau, Scott Morrison
-/
import data.list.chain
import data.list.nodup
import data.list.of_fn
open nat
namespace list
/- iota and range(') -/
universe u
variabl... |
3d3652dabcf2643dad7a3ae8890e7ede0f0c3f1b | bb31430994044506fa42fd667e2d556327e18dfe | /src/data/list/nat_antidiagonal.lean | de578eb557c0d7b3e544be1be1800d03893a8eea | [
"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 | 3,214 | lean | /-
Copyright (c) 2019 Johan Commelin. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Johan Commelin
-/
import data.list.nodup
import data.list.range
/-!
# Antidiagonals in ℕ × ℕ as lists
This file defines the antidiagonals of ℕ × ℕ as lists: the `n`-th antidiagonal i... |
0d9f24bcd8d5e10689d8f1426a084359df1b29f6 | ae1e94c332e17c7dc7051ce976d5a9eebe7ab8a5 | /src/Lean/Parser/Command.lean | d59e675476566582d862d858fbe6599b7b3b8df0 | [
"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 | 8,202 | lean | /-
Copyright (c) 2019 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Leonardo de Moura, Sebastian Ullrich
-/
import Lean.Parser.Term
import Lean.Parser.Do
namespace Lean
namespace Parser
/--
Syntax quotation for terms and (lists of) commands.... |
99afe0709e2dfd0037eaef7c9ee48db5957a4b31 | bbecf0f1968d1fba4124103e4f6b55251d08e9c4 | /src/topology/algebra/floor_ring.lean | 02f1195f01b301423498b5eaefa02247427cf872 | [
"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 | 9,813 | lean | /-
Copyright (c) 2020 Anatole Dedecker. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Anatole Dedecker
-/
import algebra.floor
import topology.algebra.ordered.basic
/-!
# Topological facts about `int.floor`, `int.ceil` and `int.fract`
This file proves statements abo... |
c6415c485cc56f987d63496ab33a0eafeb3f19b3 | fa02ed5a3c9c0adee3c26887a16855e7841c668b | /src/ring_theory/witt_vector/frobenius.lean | e7841e77eca4b5631adb1f5662d2f62a951c187c | [
"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 | 13,421 | 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 data.nat.multiplicity
import ring_theory.witt_vector.basic
import ring_theory.witt_vector.is_poly
/-!
## The Frobenius operator
If `R` has characteristic `... |
7ef1974e2065fb520c64cf4ce6a4ba98fbfc352c | 74addaa0e41490cbaf2abd313a764c96df57b05d | /Mathlib/linear_algebra/direct_sum/tensor_product_auto.lean | 7e20ba7651bd2d71ba8fd068a43e2cfee563c04e | [] | no_license | AurelienSaue/Mathlib4_auto | f538cfd0980f65a6361eadea39e6fc639e9dae14 | 590df64109b08190abe22358fabc3eae000943f2 | refs/heads/master | 1,683,906,849,776 | 1,622,564,669,000 | 1,622,564,669,000 | 371,723,747 | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 3,322 | 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
-/
import Mathlib.PrePort
import Mathlib.Lean3Lib.init.default
import Mathlib.linear_algebra.tensor_product
import Mathlib.linear_algebra.direct_sum_module
import ... |
806353201137b2c10096273a81f408c9b6ccb38a | 8cae430f0a71442d02dbb1cbb14073b31048e4b0 | /src/category_theory/monoidal/functor_category.lean | 937c29de0c9b96e1ace9e17c38ed2487cf34c0e8 | [
"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,704 | 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.monoidal.braided
import category_theory.functor.category
import category_theory.functor.const
/-!
# Monoidal structure on `C ⥤ D` when `D` is ... |
c6b3252a1cb4f06a3f1dfb15af12eef785ed043d | 74addaa0e41490cbaf2abd313a764c96df57b05d | /Mathlib/tactic/finish.lean | 1bd3fb4e7a8cb9ae15069a0fe2b297f8d61d1b4d | [] | no_license | AurelienSaue/Mathlib4_auto | f538cfd0980f65a6361eadea39e6fc639e9dae14 | 590df64109b08190abe22358fabc3eae000943f2 | refs/heads/master | 1,683,906,849,776 | 1,622,564,669,000 | 1,622,564,669,000 | 371,723,747 | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 8,123 | lean | /-
Copyright (c) 2017 Jeremy Avigad. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Jeremy Avigad, Jesse Michael Han
-/
import Mathlib.PrePort
import Mathlib.Lean3Lib.init.default
import Mathlib.tactic.hint
import Mathlib.PostPort
universes l u
namespace Mathlib
/-... |
f4da4ba8a5505ce466c87a86fbf55af95aaa64d5 | 82e44445c70db0f03e30d7be725775f122d72f3e | /src/set_theory/cardinal_ordinal.lean | c5973f3a067add73ccdfca8dd7bef601a78d5619 | [
"Apache-2.0"
] | permissive | stjordanis/mathlib | 51e286d19140e3788ef2c470bc7b953e4991f0c9 | 2568d41bca08f5d6bf39d915434c8447e21f42ee | refs/heads/master | 1,631,748,053,501 | 1,627,938,886,000 | 1,627,938,886,000 | 228,728,358 | 0 | 0 | Apache-2.0 | 1,576,630,588,000 | 1,576,630,587,000 | null | UTF-8 | Lean | false | false | 36,168 | 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, Floris van Doorn
-/
import set_theory.ordinal_arithmetic
import tactic.linarith
/-!
# Cardinals and ordinals
Relationships between cardinals and ordi... |
68c38483812a498e71d8027d815ed3908136e732 | cf39355caa609c0f33405126beee2739aa3cb77e | /library/init/meta/smt/default.lean | d0e7e0373f51e6434e3ffe941f58cf5c50cb6b5f | [
"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 | 340 | 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 init.cc_lemmas
import init.meta.smt.ematch
import init.meta.smt.smt_tactic init.meta.smt.interactive
import ... |
210004195272947b0bc2b8c0f9d659b68487987c | 57c233acf9386e610d99ed20ef139c5f97504ba3 | /src/category_theory/monad/coequalizer.lean | cf6e1c7a2176728f431aa0a3732d448dfb5bc280 | [
"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 | 3,775 | 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.limits.shapes.reflexive
import category_theory.limits.shapes.split_coequalizer
import category_theory.monad.algebra
/-!
# Special coequalizers as... |
31ab930385177dbc7b722c47258f2f71c99b0069 | 3dd1b66af77106badae6edb1c4dea91a146ead30 | /library/hott/bool.lean | 61d2c680d2c9ed85d65804f7482aea6c592d0313 | [
"Apache-2.0"
] | permissive | silky/lean | 79c20c15c93feef47bb659a2cc139b26f3614642 | df8b88dca2f8da1a422cb618cd476ef5be730546 | refs/heads/master | 1,610,737,587,697 | 1,406,574,534,000 | 1,406,574,534,000 | 22,362,176 | 1 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 220 | 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
inductive bool : Type :=
| true : bool
| false : bool
|
345a3e88e7eddf80b5db1ed10f3292a79bc3d0a8 | d406927ab5617694ec9ea7001f101b7c9e3d9702 | /src/set_theory/ordinal/arithmetic.lean | 810d62bb70b879f38efccd67af1e7e6b2e87a14b | [
"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 | 98,556 | lean | /-
Copyright (c) 2017 Johannes Hölzl. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Mario Carneiro, Floris van Doorn, Violeta Hernández Palacios
-/
import set_theory.ordinal.basic
import tactic.by_contra
/-!
# Ordinal arithmetic
Ordinals have an addition (correspond... |
a63d2a4190cd4a837131d647d5dafb0358922863 | b19a1b7dc79c802247fdce4c04708e070863b4d2 | /definitions.lean | 9ebf122fe13d632fc9622e448f54d400559c49c2 | [] | no_license | utanapishtim/promethazine | 99a1e80311fb20251a54ba78a534b23852b88c40 | 08a6f9bd6dd08feb3df8d4697e19ffc8d333b249 | refs/heads/master | 1,653,595,504,487 | 1,480,129,933,000 | 1,480,129,933,000 | 74,801,596 | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 1,380 | lean | import data.nat
open nat
constants (m n : nat) (p q : bool)
definition m_plus_n : nat := m + n
check m_plus_n
print m_plus_n
-- lean can infer the type
definition m_plus_n' := m + n
definition double (x : nat) : nat := x + x
print double
check double 3
eval double 3
definition square (x : nat) := x * x
print squar... |
7df839f09efd9312709901b9e1e3293b42b8d35a | a7eef317ddec01b9fc6cfbb876fe7ac00f205ac7 | /src/analysis/convex/basic.lean | c76908cc8ee884a361ce6c14b47892be413433c8 | [
"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 | 39,226 | lean | /-
Copyright (c) 2019 Alexander Bentkamp. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Alexander Bentkamp, Yury Kudriashov
-/
import data.set.intervals.unordered_interval
import data.set.intervals.image_preimage
import data.complex.module
import algebra.pointwise
/-... |
994672dabff44456bce8aa0fffe010f637afc0ba | 3ed5a65c1ab3ce5d1a094edce8fa3287980f197b | /src/herstein/ex1_1/Q_04.lean | ff27cf18bf35df462e4cc95e51e9a8c15a2bad40 | [] | no_license | group-study-group/herstein | 35d32e77158efa2cc303c84e1ee5e3bc80831137 | f5a1a72eb56fa19c19ece0cb3ab6cf7ffd161f66 | refs/heads/master | 1,586,202,191,519 | 1,548,969,759,000 | 1,548,969,759,000 | 157,746,953 | 0 | 0 | null | 1,542,412,901,000 | 1,542,302,366,000 | Lean | UTF-8 | Lean | false | false | 588 | lean | import data.set.basic
variable α: Type*
variables A B: set α
open set
-- requires classical logic
theorem Q4a: compl (A ∩ B) = (compl A) ∪ (compl B) :=
ext $ λ x,
⟨λ hi, classical.by_cases
(λ ha, or.inr (λ hb, hi ⟨ha, hb⟩))
(λ hn, or.inl hn),
λ hu, or.elim hu
(λ hac ⟨ha, hb⟩, hac ha)
(λ hbc ⟨ha,... |
5fae6963f3ae011590ba0f28081b5bf7dbf9f047 | 8cae430f0a71442d02dbb1cbb14073b31048e4b0 | /src/category_theory/monoidal/of_chosen_finite_products/basic.lean | fb1123060e82a50d7bbfd5298708616478e0dd55 | [
"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,947 | lean | /-
Copyright (c) 2019 Scott Morrison. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Scott Morrison, Simon Hudon
-/
import category_theory.monoidal.category
import category_theory.limits.shapes.binary_products
import category_theory.pempty
/-!
# The monoidal structure... |
d1b949a6c284a53bd17c1ac990e28e4973b61894 | ff5230333a701471f46c57e8c115a073ebaaa448 | /library/init/meta/tactic.lean | 242fe8cb117d7b4aaa7f0cc77fe4a1a0fa670b69 | [
"Apache-2.0"
] | permissive | stanford-cs242/lean | f81721d2b5d00bc175f2e58c57b710d465e6c858 | 7bd861261f4a37326dcf8d7a17f1f1f330e4548c | refs/heads/master | 1,600,957,431,849 | 1,576,465,093,000 | 1,576,465,093,000 | 225,779,423 | 0 | 3 | Apache-2.0 | 1,575,433,936,000 | 1,575,433,935,000 | null | UTF-8 | Lean | false | false | 61,882 | lean | /-
Copyright (c) 2016 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Leonardo de Moura
-/
prelude
import init.function init.data.option.basic init.util
import init.category.combinators init.category.monad init.category.alternative init.category.m... |
4acd14ed1063766c64cd76f25d1b14ddf58d9b4f | b7f22e51856f4989b970961f794f1c435f9b8f78 | /tests/lean/ctxopt.lean | f527b739812260492539f77e5f1b641a948ffcf1 | [
"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 | 128 | lean | import logic
-- definition id {A : Type} (a : A) := a
section
set_option pp.implicit true
check id true
end
check id true
|
c17fe342fe4441d2f286b65642049adaa28f8da6 | 88892181780ff536a81e794003fe058062f06758 | /src/100_theorems/t003.lean | 2d891218535d7a951e38f1fb64ea528bd0a0d180 | [] | no_license | AtnNn/lean-sandbox | fe2c44280444e8bb8146ab8ac391c82b480c0a2e | 8c68afbdc09213173aef1be195da7a9a86060a97 | refs/heads/master | 1,623,004,395,876 | 1,579,969,507,000 | 1,579,969,507,000 | 146,666,368 | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 81 | lean | import data.rat.denumerable
theorem t003 : denumerable ℚ := by apply_instance
|
7467e134d51327af45b898c8355b3ef3ce5614ff | 6432ea7a083ff6ba21ea17af9ee47b9c371760f7 | /src/Init/Data/Array/BinSearch.lean | a3d7a488d9e166c2ca7efb2a23d9c791f6fddaa0 | [
"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 | 2,922 | lean | /-
Copyright (c) 2019 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Leonardo de Moura
-/
prelude
import Init.Data.Array.Basic
universe u v
-- TODO: CLEANUP
namespace Array
-- TODO: remove the [Inhabited α] parameters as soon as we have the tac... |
62977e282e10fc14e81ec0b500bd6ac8e77c926d | ce6917c5bacabee346655160b74a307b4a5ab620 | /src/ch5/ex0101.lean | c93204bdb5aaa5ebfb90de392c1bd7754ab10929 | [] | no_license | Ailrun/Theorem_Proving_in_Lean | ae6a23f3c54d62d401314d6a771e8ff8b4132db2 | 2eb1b5caf93c6a5a555c79e9097cf2ba5a66cf68 | refs/heads/master | 1,609,838,270,467 | 1,586,846,743,000 | 1,586,846,743,000 | 240,967,761 | 1 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 71 | lean | theorem test (p q : Prop) (hp : p) (hq : q) : p ∧ q ∧ p :=
sorry
|
924a7fa9b79c7493d6cfdd51fd930b336e0da15b | 4727251e0cd73359b15b664c3170e5d754078599 | /src/algebra/punit_instances.lean | 4774141908b37c3616d486bf34efca8c9cbb4329 | [
"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,718 | lean | /-
Copyright (c) 2019 Kenny Lau. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Kenny Lau
-/
import algebra.module.basic
import algebra.gcd_monoid.basic
import algebra.group_ring_action
import group_theory.group_action.defs
/-!
# Instances on punit
This file collect... |
4d51261d0cecd63bc4f54a9109fe1b4be572e237 | d1a52c3f208fa42c41df8278c3d280f075eb020c | /tests/lean/run/simpStar.lean | c44dc2783deaf2e321219deb04a03e6152901741 | [
"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 | 494 | lean | constant f (x y : Nat) : Nat
constant g (x : Nat) : Nat
theorem ex1 (x : Nat) (h₁ : f x x = g x) (h₂ : g x = x) : f x (f x x) = x := by
simp
simp [*]
theorem ex2 (x : Nat) (h₁ : f x x = g x) (h₂ : g x = x) : f x (f x x) = x := by
simp [*]
axiom g_ax (x : Nat) : g x = 0
theorem ex3 (x y : Nat) (h₁ : f x x = g ... |
8758a4687789c00f6d05cb6ce2d20dcad14b85a0 | bb31430994044506fa42fd667e2d556327e18dfe | /src/data/list/basic.lean | 051098553ce504e7791a807f369dfd8a4f0f10ef | [
"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 | 162,088 | lean | /-
Copyright (c) 2014 Parikshit Khanna. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Parikshit Khanna, Jeremy Avigad, Leonardo de Moura, Floris van Doorn, Mario Carneiro
-/
import data.nat.order.basic
/-!
# Basic properties of lists
> THIS FILE IS SYNCHRONIZED WITH... |
374b48dc04f930f7c285b5119dbeb871082ad14a | 77c5b91fae1b966ddd1db969ba37b6f0e4901e88 | /src/analysis/normed_space/exponential.lean | 94a5a79ce6262f34d89a6edc81fdcc9070cd14da | [
"Apache-2.0"
] | permissive | dexmagic/mathlib | ff48eefc56e2412429b31d4fddd41a976eb287ce | 7a5d15a955a92a90e1d398b2281916b9c41270b2 | refs/heads/master | 1,693,481,322,046 | 1,633,360,193,000 | 1,633,360,193,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 27,825 | lean | /-
Copyright (c) 2021 Anatole Dedecker. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Anatole Dedecker
-/
import algebra.char_p.algebra
import analysis.calculus.deriv
import analysis.calculus.fderiv_analytic
import analysis.specific_limits
import data.complex.exponent... |
97fe3e9d73e53fd3571aa7dbb98449bea07278e5 | 74addaa0e41490cbaf2abd313a764c96df57b05d | /Mathlib/linear_algebra/quadratic_form.lean | 45bc2716da42bea49aff48cadc14c007330a43eb | [] | 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 | 25,043 | lean | /-
Copyright (c) 2020 Anne Baanen. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Author: Anne Baanen
-/
import Mathlib.PrePort
import Mathlib.Lean3Lib.init.default
import Mathlib.algebra.invertible
import Mathlib.linear_algebra.bilinear_form
import Mathlib.linear_algebra.deter... |
ce079443bdfac3683408e94f50a5766527c16f85 | 6214e13b31733dc9aeb4833db6a6466005763162 | /src/evaluation.lean | 7d81dea20ba3da9d7ac90b3037667394ac882edb | [] | no_license | joshua0pang/esverify-theory | 272a250445f3aeea49a7e72d1ab58c2da6618bbe | 8565b123c87b0113f83553d7732cd6696c9b5807 | refs/heads/master | 1,585,873,849,081 | 1,527,304,393,000 | 1,527,304,393,000 | 154,901,199 | 1 | 0 | null | 1,540,593,067,000 | 1,540,593,067,000 | null | UTF-8 | Lean | false | false | 21,433 | lean | -- lemmas about evaluation
import .definitions3
-- lemmas
lemma binop.eq_of_equal_values {v: value}: binop.apply binop.eq v v = value.true :=
have binop.apply binop.eq v v = (if v = v then value.true else value.false), by unfold binop.apply,
show binop.apply binop.eq v v = value.true, by simp[this]
lemma unop.i... |
94092fab262212de5f31183b7c0f224d99098f49 | 9dc8cecdf3c4634764a18254e94d43da07142918 | /src/order/filter/lift.lean | 11faccfa0d540bbe652ae2c0ae7107ddcab93d36 | [
"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 | 19,424 | lean | /-
Copyright (c) 2019 Johannes Hölzl. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Johannes Hölzl
-/
import order.filter.bases
/-!
# Lift filters along filter and set functions
-/
open set
open_locale classical filter
namespace filter
variables {α : Type*} {β : T... |
a5aef125830b5e4a2d9acf5dbacbc5d2134f14f9 | 302c785c90d40ad3d6be43d33bc6a558354cc2cf | /src/geometry/manifold/instances/circle.lean | 03dd3fe83bb7259e856ee853659f73ef9ff2f8e7 | [
"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 | 5,038 | 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 geometry.manifold.instances.sphere
/-!
# The circle
This file defines `circle` to be the metric sphere (`metric.sphere`) in `ℂ` centred at `0` of
radius `1... |
501f7c5ccbbabba500302822eadfc21894afe52d | 367134ba5a65885e863bdc4507601606690974c1 | /src/data/fintype/intervals.lean | aa6c98fa36a606b2e10801dc6db58aebec562c10 | [
"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 | 2,029 | 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.set.intervals
import data.set.finite
import data.pnat.intervals
/-!
# fintype instances for intervals
We provide `fintype` instances for `Ico l u`, for ... |
f7e7be67686b7ec14577f466da4962d8eb8d4951 | 618003631150032a5676f229d13a079ac875ff77 | /src/tactic/norm_cast.lean | 14dc9252b832ccd1426a4f4ddecef7222089263a | [
"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 | 25,786 | lean | /-
Copyright (c) 2019 Paul-Nicolas Madelaine. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Paul-Nicolas Madelaine, Robert Y. Lewis
Normalizing casts inside expressions.
-/
import tactic.converter.interactive
import tactic.hint
/-!
# A tactic for normalizing casts i... |
7c372afdb89731c4ed7666b5280a68740d850cb8 | 675b8263050a5d74b89ceab381ac81ce70535688 | /src/topology/algebra/ordered.lean | 1b231222a790ef9af9c99879150fa9d98358dca3 | [
"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 | 151,862 | 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 tactic.linarith
import tactic.tfae
import algebra.archimedean
import algebra.group.pi
import algebra.ordered_ring
import order... |
77970360f3b64502f80e5f9b878b2083127118b8 | 9338c56dfd6ceacc3e5e63e32a7918cfec5d5c69 | /src/Kenny/locally_ringed_space_on_opens.lean | cd64c3f1c2340e440b82f567588cd404803c17e9 | [] | no_license | Project-Reykjavik/lean-scheme | 7322eefce504898ba33737970be89dc751108e2b | 6d3ec18fecfd174b79d0ce5c85a783f326dd50f6 | refs/heads/master | 1,669,426,172,632 | 1,578,284,588,000 | 1,578,284,588,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 14,955 | lean | import Kenny.sheaf_of_rings_on_opens
universes v w u₁ v₁ u
open topological_space lattice
structure locally_ringed_space_on_opens (X : Type u) [topological_space X] (U : opens X) : Type (max u (v+1)) :=
(O : sheaf_of_rings_on_opens.{v} X U)
(Hstalks : ∀ x ∈ U, is_local_ring (O.to_sheaf_on_opens.stalk x H))
namespac... |
6eb609904dc998d67e0236fd102908aa42a609b7 | 9e90bb7eb4d1bde1805f9eb6187c333fdf09588a | /src/lib/util.lean | 9fbf6d209c33cf276fe41dbe41aeab6b29a6cf40 | [
"Apache-2.0"
] | permissive | alexjbest/stump-learnable | 6311d0c3a1a1a0e65ce83edcbb3b4b7cecabb851 | f8fd812fc646d2ece312ff6ffc2a19848ac76032 | refs/heads/master | 1,659,486,805,691 | 1,590,454,024,000 | 1,590,454,024,000 | 266,173,720 | 0 | 0 | Apache-2.0 | 1,590,169,884,000 | 1,590,169,883,000 | null | UTF-8 | Lean | false | false | 9,196 | lean | /-
Copyright © 2019, Oracle and/or its affiliates. All rights reserved.
-/
import data.set
import analysis.special_functions.exp_log
import .attributed.dvector
import lib.basic
import topology.constructions
local attribute [instance] classical.prop_decidable
open nnreal real ennreal set lattice
open topological_spa... |
74aa9897b122e4e120db0607093d10d62a46dc04 | 8e691ffe296a38e3e9dc95845e5b607422c3c973 | /src/topology/metric_space/basic.lean | 7de964bd34748d0985b38e9d2d98e5fbe8c66fff | [
"Apache-2.0"
] | permissive | jmvlangen/mathlib | 8d847f7831f0e8ddebc99568704530af7c9e1a50 | 82f79a58df3047b8002bbaf90ce50da2a978e114 | refs/heads/master | 1,588,094,154,678 | 1,552,412,266,000 | 1,552,412,266,000 | 175,439,673 | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 56,105 | 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... |
4562c6c9a398b4883c588c51c3de301a80d906e5 | cf39355caa609c0f33405126beee2739aa3cb77e | /tests/lean/fail/parser_error.lean | d1f45b399cc54329f04b5a59d30fdd909e9471a0 | [
"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 | 6 | lean | lemma
|
215aa388011d1a54a9298500cec05410c6c0c31a | 947b78d97130d56365ae2ec264df196ce769371a | /src/Init/Control/MonadControl.lean | 493543a50272ac934072b4c2125e39018a5cbea0 | [
"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 | 1,760 | lean | /-
Copyright (c) 2020 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Sebastian Ullrich, Leonardo de Moura
See: https://lexi-lambda.github.io/blog/2019/09/07/demystifying-monadbasecontrol/
-/
prelude
import Init.Control.MonadLift
universes u v w... |
de75d76d9304efe15c0f1f763d0c9c8d94cc03cd | 626e312b5c1cb2d88fca108f5933076012633192 | /src/analysis/calculus/tangent_cone.lean | 38976983a7b84f06ce55f1702067f8dc70b44b1b | [
"Apache-2.0"
] | permissive | Bioye97/mathlib | 9db2f9ee54418d29dd06996279ba9dc874fd6beb | 782a20a27ee83b523f801ff34efb1a9557085019 | refs/heads/master | 1,690,305,956,488 | 1,631,067,774,000 | 1,631,067,774,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 18,699 | lean | /-
Copyright (c) 2019 Sébastien Gouëzel. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Sébastien Gouëzel
-/
import analysis.convex.basic
import analysis.specific_limits
/-!
# Tangent cone
In this file, we define two predicates `unique_diff_within_at 𝕜 s x` and `uni... |
db55514b516aa4d4c8bb7dd6a9a979fecc9210bf | 92e157ec9825b5e4597a6d715a8928703bc8e3b2 | /src/mywork/lecture_10.lean | 0403c42edae4fc77613fa0c82b95c4a6e1b03f7e | [] | no_license | exb3dg/cs2120f21 | 9e566bc508762573c023d3e70f83cb839c199ec8 | 319b8bf0d63bf96437bf17970ce0198d0b3525cd | refs/heads/main | 1,692,970,909,568 | 1,634,584,540,000 | 1,634,584,540,000 | 399,947,025 | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 9,247 | lean | /-
In today's class, we'll continue with our
exploration of the proposition, "false",
its elimination rule, and their vital uses
in logical reasoning: especially in
- proof of ¬P by negation
- proof of P by false elimination
Here are the inference rules in display
notation:
NEGATION INTRODUCTION
The first, proof... |
77f3284e3d51af2bbfd2b6d6fd3ec62ef8d76f2d | ae1e94c332e17c7dc7051ce976d5a9eebe7ab8a5 | /src/Lean/Data/Lsp/Ipc.lean | 408999933fb11a216c4008e58487c4c52162026a | [
"Apache-2.0"
] | permissive | dupuisf/lean4 | d082d13b01243e1de29ae680eefb476961221eef | 6a39c65bd28eb0e28c3870188f348c8914502718 | refs/heads/master | 1,676,948,755,391 | 1,610,665,114,000 | 1,610,665,114,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 2,603 | 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 Init.System.IO
import Lean.Data.Json
import Lean.Data.Lsp.Communication
import Lean.Data.Lsp.Diagnostics
import Lean.Data.Lsp.Extra
/-! Prov... |
e721297a147d4921dc4c61611cc012e04c0a7d4e | a9d0fb7b0e4f802bd3857b803e6c5c23d87fef91 | /tests/lean/run/record7.lean | 64fdd497ba47cd75d8a41b9cb5416ab79f6d0881 | [
"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 | 150 | lean | structure point (A : Type) (B : Type) :=
mk :: (x : A) (y : B)
structure point2 (A : Type) (B : Type) extends point A B :=
make
print prefix point2
|
75d5c5c5edc13332b333a734b210a1a5f686dd61 | b32d3853770e6eaf06817a1b8c52064baaed0ef1 | /test/clauses_from_env.lean | 39c079302b2a5261be2cd899f9af4b3b6231759b | [] | no_license | gebner/super2 | 4d58b7477b6f7d945d5d866502982466db33ab0b | 9bc5256c31750021ab97d6b59b7387773e54b384 | refs/heads/master | 1,635,021,682,021 | 1,634,886,326,000 | 1,634,886,326,000 | 225,600,688 | 4 | 2 | null | 1,598,209,306,000 | 1,575,371,550,000 | Lean | UTF-8 | Lean | false | false | 381 | lean | import super tactic.core
open tactic expr super
set_option pp.all true
set_option trace.check true
-- set_option trace.type_context.is_def_eq true
-- set_option trace.type_context.is_def_eq_detail true
#eval do
e ← get_env,
e.get_trusted_decls.mmap' $ λ d,
on_exception (trace d.to_name) $ do
(prf, ty) ← decl_mk_cons... |
9e7751c46630e03cd1d48ad07d5cc3b7b407e5a1 | b7b549d2cf38ac9d4e49372b7ad4d37f70449409 | /src/LeanLLVM/JITExports.lean | bca730fceb196478fedb5c33251370664ddb06b0 | [
"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 | 5,828 | lean |
#include "llvm_exports.h"
#include <lean/io.h>
#include <llvm/ExecutionEngine/Orc/CompileUtils.h>
#include <llvm/ExecutionEngine/Orc/ExecutionUtils.h>
#include <llvm/ExecutionEngine/Orc/IRCompileLayer.h>
#include <llvm/ExecutionEngine/Orc/RTDyldObjectLinkingLayer.h>
#include <llvm/ExecutionEngine/SectionMemoryManage... |
759a12992b96c1fe31d796a11a48bee25147360d | 4727251e0cd73359b15b664c3170e5d754078599 | /src/topology/algebra/with_zero_topology.lean | a7589975c91ae2099399f0e0da6b411f0490afe4 | [
"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 | 12,121 | lean | /-
Copyright (c) 2021 Patrick Massot. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Patrick Massot
-/
import algebra.order.with_zero
import topology.algebra.order.basic
/-!
# The topology on linearly ordered commutative groups with zero
Let `Γ₀` be a linearly ordere... |
ce1b9d5c8324e3c3855e6fa81b2da62dc636a4a4 | 9dc8cecdf3c4634764a18254e94d43da07142918 | /src/algebra/char_p/basic.lean | aa3017f32bdee682d4f9e5511833b8c93763c3aa | [
"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 | 21,907 | lean | /-
Copyright (c) 2018 Kenny Lau. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Kenny Lau, Joey van Langen, Casper Putz
-/
import algebra.hom.iterate
import data.int.modeq
import data.nat.choose.dvd
import data.nat.choose.sum
import data.zmod.defs
import group_theory.... |
43be585500f5bbef3ae3050f2946d7d91e214000 | 4727251e0cd73359b15b664c3170e5d754078599 | /src/data/finset/default.lean | fb51ca936bb3688770e49fa22e21cb2816127210 | [
"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 | 248 | lean | import data.finset.basic
import data.finset.fold
import data.finset.lattice
import data.finset.locally_finite
import data.finset.nat_antidiagonal
import data.finset.pi
import data.finset.powerset
import data.finset.sort
import data.finset.preimage
|
5844ebb8fe4e40f3cef91b5975683383562d8aee | 9cba98daa30c0804090f963f9024147a50292fa0 | /phys_dimensions.lean | b801aa1c17385656df2214d129d6602118388ef9 | [] | no_license | kevinsullivan/phys | dcb192f7b3033797541b980f0b4a7e75d84cea1a | ebc2df3779d3605ff7a9b47eeda25c2a551e011f | refs/heads/master | 1,637,490,575,500 | 1,629,899,064,000 | 1,629,899,064,000 | 168,012,884 | 0 | 3 | null | 1,629,644,436,000 | 1,548,699,832,000 | Lean | UTF-8 | Lean | false | false | 645 | lean | /-
Our design supports a set of disjoint 1-D affine spaces
indexed by natural numbers, each with a standard frame,
in terms of which new affine coordinate space "overlays"
can be constructed.
Our model here in the phys layer is that each physical
dimension has its own coordinate-free, disjoint affine
space. Currently... |
2ff6d637b1b387c57d9c8cb9e0c935452b94ae2d | 367134ba5a65885e863bdc4507601606690974c1 | /src/data/pfunctor/univariate/basic.lean | ac6690bba81ec3517c843d01174d8943f6cb568d | [
"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 | 6,317 | lean | /-
Copyright (c) 2018 Jeremy Avigad. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Author: Jeremy Avigad
-/
import data.W
/-!
# Polynomial functors
This file defines polynomial functors and the W-type construction as a
polynomial functor. (For the M-type construction, see
p... |
9cc78fc2ef49c4aa72a8ad2feef72c0a451f622d | 05b503addd423dd68145d68b8cde5cd595d74365 | /src/data/matrix/basic.lean | d8da0d174124860a1722a1082252f2d87e3df764 | [
"Apache-2.0"
] | permissive | aestriplex/mathlib | 77513ff2b176d74a3bec114f33b519069788811d | e2fa8b2b1b732d7c25119229e3cdfba8370cb00f | refs/heads/master | 1,621,969,960,692 | 1,586,279,279,000 | 1,586,279,279,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 13,178 | 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
Matrices
-/
import algebra.module algebra.pi_instances
import data.fintype.basic
universes u v w
def matrix (m n : Ty... |
727f05e3fed116c5de774dd390f044c56748313a | cf39355caa609c0f33405126beee2739aa3cb77e | /library/init/data/sum/instances.lean | c0c40438ab706db57cc4d1bf0d4db4ae869dd82e | [
"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 | 355 | lean | /-
Copyright (c) 2016 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Leonardo de Moura
-/
prelude
import init.meta.mk_dec_eq_instance
universes u v
instance {α : Type u} {β : Type v} [decidable_eq α] [decidable_eq β] : decidable_eq (α ⊕ β) :=
by... |
468341e60fcd138b6d4ef1d83cf4114503efe467 | 367134ba5a65885e863bdc4507601606690974c1 | /src/analysis/calculus/fderiv_measurable.lean | 507348d4d8396fe9397151be01c3a81f89c5c4dc | [
"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 | 22,374 | 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, Yury Kudryashov
-/
import analysis.calculus.deriv
import measure_theory.borel_space
/-!
# Derivative is measurable
In this file we prove that the derivative of... |
a56b211a2721e5decdf3d61dc19e4d29dac15973 | 6432ea7a083ff6ba21ea17af9ee47b9c371760f7 | /src/lake/examples/ffi/lib/lean/Main.lean | e763be6b15b7367f214d47c921d1036602830713 | [
"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 | 60 | lean | import FFI
def main : IO Unit :=
IO.println <| myAdd 1 2
|
c573165647ebaff39012864f0f3e4349e475145f | b70031c8e2c5337b91d7e70f1e0c5f528f7b0e77 | /src/algebra/group_with_zero/basic.lean | 4a87f163239b01e3519e71ef0b2f315edd4fd4a2 | [
"Apache-2.0"
] | permissive | molodiuc/mathlib | cae2ba3ef1601c1f42ca0b625c79b061b63fef5b | 98ebe5a6739fbe254f9ee9d401882d4388f91035 | refs/heads/master | 1,674,237,127,059 | 1,606,353,533,000 | 1,606,353,533,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 35,038 | 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 logic.nontrivial
import algebra.group.units_hom
import algebra.group.inj_surj
import algebra.group_with_zero.defs
/-!
# Groups with an adjoined zero element
... |
db24f3ce50cf638a76a5f62ba3519139d6486467 | a46270e2f76a375564f3b3e9c1bf7b635edc1f2c | /5.8.1-4.6.5.lean | bb471e1eb40d203cf0634c295158ee7be724a1f7 | [
"CC0-1.0"
] | permissive | wudcscheme/lean-exercise | 88ea2506714eac343de2a294d1132ee8ee6d3a20 | 5b23b9be3d361fff5e981d5be3a0a1175504b9f6 | refs/heads/master | 1,678,958,930,293 | 1,583,197,205,000 | 1,583,197,205,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 3,415 | lean | open classical
lemma imp_or : ∀ p q: Prop, (p → q) → (¬p ∨ q) := begin
intros p q h, apply by_cases, {
assume: p, right, exact (h this)
}, {
assume: ¬ p, left, assumption
}
end
#check imp_or
lemma nall_en: ∀ α: Type, ∀ p: α -> Prop, (¬ ∀ x, p x) -> (∃ x, ¬ p x) := begin
intros,
apply by_contradiction... |
2596c0d163a85338962583822b6c8c64e1ab90c2 | 57c233acf9386e610d99ed20ef139c5f97504ba3 | /src/measure_theory/integral/vitali_caratheodory.lean | 61f2381d4b3af2a06dcdd1f5d3bfcf56399a5cb8 | [
"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 | 29,653 | lean | /-
Copyright (c) 2021 Sébastien Gouëzel. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Sébastien Gouëzel
-/
import measure_theory.measure.regular
import topology.semicontinuous
import measure_theory.integral.bochner
import topology.instances.ereal
/-!
# Vitali-Carat... |
4823b1c8639761f7f7dc1f9c36db1aba687228c5 | 947b78d97130d56365ae2ec264df196ce769371a | /tests/lean/envExtensionSealed.lean | 22ed3e1018fa3dd3238cb5ec27d5fd7ed5436a57 | [
"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 | 239 | lean | import Lean
namespace Lean
def ex1 : CoreM Nat := do
env ← getEnv;
pure $ privateExt.getState env
#eval ex1
def ex2 : CoreM Nat := do
env ← getEnv;
pure $ { privateExt with idx := 3 }.getState env -- Error
-- #eval ex2
end Lean
|
e07ec231781272d17acedb931d1b7b6bff0d330b | 5719a16e23dfc08cdea7a5bf035b81690f307965 | /src/Init/Lean/Data/Json/Parser.lean | d4967cbd08609390a89dc7536a6e5eb2f2c2b11e | [
"Apache-2.0"
] | permissive | postmasters/lean4 | 488b03969a371e1507e1e8a4df9ebf63c7cbe7ac | f3976fc53a883ac7606fc59357d43f4b51016ca7 | refs/heads/master | 1,655,582,707,480 | 1,588,682,595,000 | 1,588,682,595,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 7,250 | lean | /-
Copyright (c) 2019 Gabriel Ebner. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Gabriel Ebner, Marc Huisinga
-/
prelude
import Init.Lean.Data.Json.Basic
import Init.Control.Except
namespace Lean
inductive Quickparse.Result (α : Type)
| success {} (pos : String.I... |
b847a66f1eebaf04765680ca806a0d61dd38025e | 618003631150032a5676f229d13a079ac875ff77 | /src/tactic/trunc_cases.lean | 0a29981f47e1b0aacc5ce980cc2818bf0957d4b5 | [
"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 | 4,423 | 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 tactic.chain
import data.quot
namespace tactic
/-- Auxiliary tactic for `trunc_cases`. -/
private meta def trunc_cases_subsingleton (e : expr) (ids : list na... |
6b86bd5130c4f0d028f2b7969db2f48d485b33f2 | 947b78d97130d56365ae2ec264df196ce769371a | /src/Std/Data/PersistentArray.lean | a842fe4e4a2091ed086ac4ff2fec00fe2aff5777 | [
"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 | 12,488 | 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
-/
universes u v w
namespace Std
inductive PersistentArrayNode (α : Type u)
| node (cs : Array PersistentArrayNode) : PersistentArrayNode
| leaf (vs : Array ... |
02ed6bb6107fc5ddd70f113d70da0db9616e0b96 | c780ac8c1c0dd4de0fb63981226f2b53b62fe298 | /src/ring_theory.lean | 92939893b98798c07414e984b5e598ee65260443 | [] | no_license | jmvlangen/finite_fields | 0672670245ccf62b2967d9c5edc2f60c53fc141f | 757bd91636e0b3508ee21c92be775eb9d908391e | refs/heads/master | 1,586,987,952,433 | 1,549,629,122,000 | 1,549,629,122,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 4,955 | lean | import ring_theory.ideal_operations
import data.equiv.algebra
universes u v
namespace ideal
variable {α : Type u}
variable [comm_ring α]
lemma eq_bot (I : ideal α) : I = ⊥ ↔ ∀ x : α, x ∈ I → x = 0 :=
begin
rw [lattice.eq_bot_iff, submodule.le_def],
apply forall_congr,
intro x,
apply imp_congr_right,
intro... |
f1858639ee804cb4d1c9563015b37a3f8f3ad0c9 | d406927ab5617694ec9ea7001f101b7c9e3d9702 | /src/analysis/calculus/extend_deriv.lean | 4e07fb7c59b692aa80aae4fdf4efd23363d5945a | [
"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 | 11,609 | lean | /-
Copyright (c) 2019 Sébastien Gouëzel. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Sébastien Gouëzel
-/
import analysis.calculus.mean_value
/-!
# Extending differentiability to the boundary
We investigate how differentiable functions inside a set extend to diffe... |
0e9434749eeaf8c676d121843183278d806dd1eb | 206422fb9edabf63def0ed2aa3f489150fb09ccb | /src/algebra/algebra/basic.lean | 593c13c3e4403413133d0d89fb16ffe680cb9e5c | [
"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 | 50,767 | lean | /-
Copyright (c) 2018 Kenny Lau. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Kenny Lau, Yury Kudryashov
-/
import tactic.nth_rewrite
import data.matrix.basic
import data.equiv.ring_aut
import linear_algebra.tensor_product
import ring_theory.subring
import deprecated... |
64b7be944a774a8d567c7d6f2f360538d050739c | 618003631150032a5676f229d13a079ac875ff77 | /src/algebra/group/conj.lean | 74614791a18cb3519a8cdcd3afa0468e25931230 | [
"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 | 1,939 | lean | /-
Copyright (c) 2018 Patrick Massot. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Patrick Massot, Chris Hughes, Michael Howes
-/
import algebra.group.hom
import tactic.rewrite
/-!
# Conjugacy of group elements
-/
universes u v
variables {α : Type u} {β : Type v}
... |
97df372ad5893694a051451e95f04860301b342a | aa3f8992ef7806974bc1ffd468baa0c79f4d6643 | /tests/lean/run/e9.lean | 797227b782bb5cd71dbdb64e2224c68191186149 | [
"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 | 650 | lean | precedence `+`:65
namespace nat
constant nat : Type.{1}
constant add : nat → nat → nat
infixl + := add
end nat
namespace int
open nat (nat)
constant int : Type.{1}
constant add : int → int → int
infixl + := add
constant of_nat : nat → int
end int
namespace int_coercions
coercion [persistent] int.of... |
1953b18879cc9a34ced0e712086fb18dcf74c4c8 | 8cae430f0a71442d02dbb1cbb14073b31048e4b0 | /src/category_theory/opposites.lean | b65f71078046081ccccb046b36c1ff704cb796d9 | [
"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 | 17,595 | 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_theory.equivalence
/-!
# Opposite categories
> THIS FILE IS SYNCHRONIZED WITH MATHLIB4.
> Any changes to this file require a corresp... |
f4c314d06bf9a54daad088e48931c12296c379c5 | d1a52c3f208fa42c41df8278c3d280f075eb020c | /stage0/src/Lean/Compiler/IR/CtorLayout.lean | 63e472a3b474f8fe6fc7114fb609bbf9c9698726 | [
"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 | 956 | lean | /-
Copyright (c) 2019 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Leonardo de Moura
-/
import Lean.Environment
import Lean.Compiler.IR.Format
namespace Lean
namespace IR
inductive CtorFieldInfo where
| irrelevant
| object (i : Nat)
| u... |
63497d61b9be0af555a34d36191fcf3d42430e1a | de91c42b87530c3bdcc2b138ef1a3c3d9bee0d41 | /lang.lean | 4141f880e36fe277adf93237809521ceed3897f7 | [] | no_license | kevinsullivan/lang | d3e526ba363dc1ddf5ff1c2f36607d7f891806a7 | e9d869bff94fb13ad9262222a6f3c4aafba82d5e | refs/heads/master | 1,687,840,064,795 | 1,628,047,969,000 | 1,628,047,969,000 | 282,210,749 | 0 | 1 | null | 1,608,153,830,000 | 1,595,592,637,000 | Lean | UTF-8 | Lean | false | false | 2,710 | lean | import .expressions.bool_expr
import .expressions.time_series.geom3d_expr
import .expressions.geom1d_expr
import .expressions.geom3d_expr
import .expressions.time_expr
open lang.time
open lang.geom1d
open lang.geom3d
open lang.series.geom3d
open lang.bool_expr
#check time
structure constrained (T : Type 1) (P : T →... |
15976ec61307b911a8b038c154269cd2c66fe5df | c777c32c8e484e195053731103c5e52af26a25d1 | /src/analysis/complex/upper_half_plane/functions_bounded_at_infty.lean | 53538b4fa044d711595989bd49ebf25437c649e8 | [
"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 | 3,646 | lean | /-
Copyright (c) 2022 Chris Birkbeck. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Chris Birkbeck, David Loeffler
-/
import algebra.module.submodule.basic
import analysis.complex.upper_half_plane.basic
import order.filter.zero_and_bounded_at_filter
/-!
# Bounded at... |
7514b8d4e736467a4d59aac0cef39842ca602601 | b00eb947a9c4141624aa8919e94ce6dcd249ed70 | /src/Init/Data/Array/Basic.lean | e5c08dc3484109c30f222d7709a3d49b9e52570b | [
"Apache-2.0"
] | permissive | gebner/lean4-old | a4129a041af2d4d12afb3a8d4deedabde727719b | ee51cdfaf63ee313c914d83264f91f414a0e3b6e | refs/heads/master | 1,683,628,606,745 | 1,622,651,300,000 | 1,622,654,405,000 | 142,608,821 | 1 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 27,590 | lean | /-
Copyright (c) 2018 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.Nat.Basic
import Init.Data.Fin.Basic
import Init.Data.UInt
import Init.Data.Repr
import Init.Data.ToString.Basic
import Init.Util
u... |
4e67f841315ee3b8280394d788c6b377df13d1cb | bbecf0f1968d1fba4124103e4f6b55251d08e9c4 | /src/data/int/basic.lean | e1d468b759609e3fc8a241ca9647c0a9b877f02f | [
"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 | 55,348 | lean | /-
Copyright (c) 2016 Jeremy Avigad. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Jeremy Avigad
-/
import data.nat.pow
import order.min_max
/-!
# Basic operations on the integers
This file contains:
* instances on `ℤ`. The stronger one is `int.linear_ordered_comm_r... |
e495dccd037e591701e3759e953fd2e0c77a4e65 | 6f1049e897f569e5c47237de40321e62f0181948 | /src/exercises/07_first_negations.lean | dbe6da650b950a66445f441e72f347c8bbf271bf | [
"Apache-2.0"
] | permissive | anrddh/tutorials | f654a0807b9523608544836d9a81939f8e1dceb8 | 3ba43804e7b632201c494cdaa8da5406f1a255f9 | refs/heads/master | 1,655,542,921,827 | 1,588,846,595,000 | 1,588,846,595,000 | 262,330,134 | 0 | 0 | null | 1,588,944,346,000 | 1,588,944,345,000 | null | UTF-8 | Lean | false | false | 6,724 | lean | import tuto_lib
import data.int.parity
/-
Negations, proof by contradiction and contraposition
This file introduces the logical rules and tactics related to negation:
exfalso, by_contradiction, contrapose, by_cases and push_neg.
There is a special statement denoted by false which, by definition,
has no proof.
So fal... |
3dd2f55a113fd33a943d18bfca69cc051c884682 | d406927ab5617694ec9ea7001f101b7c9e3d9702 | /src/category_theory/monad/equiv_mon.lean | 4c35b16c796670b7d06be3ede3fa7c8dd137ac00 | [
"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,213 | lean | /-
Copyright (c) 2020 Adam Topaz. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Adam Topaz
-/
import category_theory.monad.basic
import category_theory.monoidal.End
import category_theory.monoidal.Mon_
/-!
# The equivalence between `Monad C` and `Mon_ (C ⥤ C)`.
A m... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.