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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
04e99780c6e5bb9fc2738504eed77fada939388e | 4727251e0cd73359b15b664c3170e5d754078599 | /src/ring_theory/nullstellensatz.lean | 91682491d504a19bd236f17e2c4fa56db4e02cf8 | [
"Apache-2.0"
] | permissive | Vierkantor/mathlib | 0ea59ac32a3a43c93c44d70f441c4ee810ccceca | 83bc3b9ce9b13910b57bda6b56222495ebd31c2f | refs/heads/master | 1,658,323,012,449 | 1,652,256,003,000 | 1,652,256,003,000 | 209,296,341 | 0 | 1 | Apache-2.0 | 1,568,807,655,000 | 1,568,807,655,000 | null | UTF-8 | Lean | false | false | 8,192 | lean | /-
Copyright (c) 2021 Devon Tuma. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Devon Tuma
-/
import ring_theory.jacobson
import field_theory.is_alg_closed.basic
import field_theory.mv_polynomial
import algebraic_geometry.prime_spectrum.basic
/-!
# Nullstellensatz
Th... |
6c9975e9357e2e15e8ff6a41c7459ad15ace997d | 618003631150032a5676f229d13a079ac875ff77 | /src/tactic/where.lean | 4cacb318add10228dc215c4fe29b22c2ca81eb2f | [
"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 | 7,364 | lean | /-
Copyright (c) 2019 Keeley Hoek. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Keeley Hoek
-/
import tactic.core
/-!
# The `where` command
When working in a Lean file with namespaces, parameters, and variables, it can be confusing to
identify what the current "pa... |
db5888669d69bb17c0840aa24b9412bf9ca4edc9 | cf39355caa609c0f33405126beee2739aa3cb77e | /tests/lean/run/t4.lean | cf33aa2feaf94367443619ad5343d5b14aa4ce3f | [
"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 | 211 | lean | namespace foo
definition {u} f (A : Type u) : Type u := A
#check f.{1}
end foo
constant N : Type
section
variable A : Type*
definition g (a : A) (B : Type*) : A := a
#check g.{_ 2}
end
#check g.{2 3}
|
50bdc04052161c1cf24b59b29598ea9ab24b9ad7 | 5b273b8c05e2f73fb74340ce100ce261900a98cd | /ring_thing.lean | 97d5b3a4d988768b4f490b3c3ef8848a9f5b2d0f | [] | no_license | ChrisHughes24/leanstuff1 | 2eba44bc48da6e544e07495b41e1703f81dc1c24 | cbcd788b8b1d07b20b2fff4482c870077a13d1c0 | refs/heads/master | 1,631,670,333,297 | 1,527,093,981,000 | 1,527,093,981,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 3,369 | lean | import algebra.group_power algebra.big_operators data.nat.choose
local infix ` ^ ` := monoid.pow
open finset nat
variable {α : Type*}
local notation f ` ∑ ` : 90 n : 90 := finset.sum (finset.range n) f
lemma sum_range_succ [add_comm_monoid α] (f : ℕ → α) (n : ℕ) : f ∑ succ n = f n + f ∑ n :=
have h : n ∉ finset.rang... |
734570fe58e557126c635bfb682c346b447eb713 | e151e9053bfd6d71740066474fc500a087837323 | /src/hott/init/meta/rewrite.lean | c165f784dd9c3eee0adc5a72cec76407348f54ce | [
"Apache-2.0"
] | permissive | daniel-carranza/hott3 | 15bac2d90589dbb952ef15e74b2837722491963d | 913811e8a1371d3a5751d7d32ff9dec8aa6815d9 | refs/heads/master | 1,610,091,349,670 | 1,596,222,336,000 | 1,596,222,336,000 | 241,957,822 | 0 | 0 | Apache-2.0 | 1,582,222,839,000 | 1,582,222,838,000 | null | UTF-8 | Lean | false | false | 3,191 | lean | /-
Copyright (c) 2017 Gabriel Ebner. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Gabriel Ebner
-/
import ..path
open tactic expr
namespace hott
meta def instantiate_with_metas : expr → tactic expr | e := do
t ← infer_type e >>= whnf,
if ¬t.is_pi then return e else... |
8507015cd8552a56efe1db9fe3030e0ac15c895b | 94e33a31faa76775069b071adea97e86e218a8ee | /archive/imo/imo2013_q5.lean | 21c9c4dc6f1f43aecf46e1773aee12f0a98c4651 | [
"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 | 12,983 | lean | /-
Copyright (c) 2021 David Renshaw. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: David Renshaw
-/
import algebra.geom_sum
import data.rat.defs
import data.real.basic
/-!
# IMO 2013 Q5
Let `ℚ>₀` be the positive rational numbers. Let `f : ℚ>₀ → ℝ` be a function sat... |
19ed2b5afacc5a51f70b810243e13f2869adbce7 | aa3f8992ef7806974bc1ffd468baa0c79f4d6643 | /tests/lean/tuple.lean | a6e7925470ba2fd2ec791e83210b4c501c27cc5b | [
"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 | 171 | lean | import data.nat.basic data.prod
open nat prod
set_option pp.universes true
definition tuple (A : Type) (n : nat) : Type :=
nat.rec_on n A (λ n r, r × A)
check @tuple
|
27d5100301ae2f028e191c8aef086c59918200ed | 97c8e5d8aca4afeebb5b335f26a492c53680efc8 | /ground_zero/types/unit.lean | 5192e0b0c5c1aa2adba67e7e6e64ba3a737acd38 | [] | no_license | jfrancese/lean | cf32f0d8d5520b6f0e9d3987deb95841c553c53c | 06e7efaecce4093d97fb5ecc75479df2ef1dbbdb | refs/heads/master | 1,587,915,151,351 | 1,551,012,140,000 | 1,551,012,140,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 457 | lean | import ground_zero.types.equiv
namespace ground_zero.types
universe u
inductive unit : Sort u
| star : unit
notation [parsing_only] `𝟏` := unit
notation [parsing_only] `★` := unit.star
namespace unit
def elim {α : Sort u} (a : α) : unit → α
| star := a
def ind {π : unit → Sort u} (g : π star) : Π (x : unit)... |
70b1d08a3267f1845bfb1628145915f2425a423c | 56e5b79a7ab4f2c52e6eb94f76d8100a25273cf3 | /src/backends/greedy/openai.lean | 2d7ff48545648f01d00e57e5d0eaf4ab9fbd5cc9 | [
"Apache-2.0"
] | permissive | DyeKuu/lean-tpe-public | 3a9968f286ca182723ef7e7d97e155d8cb6b1e70 | 750ade767ab28037e80b7a80360d213a875038f8 | refs/heads/master | 1,682,842,633,115 | 1,621,330,793,000 | 1,621,330,793,000 | 368,475,816 | 0 | 0 | Apache-2.0 | 1,621,330,745,000 | 1,621,330,744,000 | null | UTF-8 | Lean | false | false | 8,800 | lean | import evaluation
import utils
namespace openai
section openai_api
meta structure CompletionRequest : Type :=
(prompt : string)
(max_tokens : int := 16)
(temperature : native.float := 1.0)
(top_p : native.float := 1)
(n : int := 1)
(best_of : option int := none)
(stream : option bool := none)
(logprobs : option int ... |
12dbeda1b0dbe3e2737659933da00ccc8974d7a5 | d406927ab5617694ec9ea7001f101b7c9e3d9702 | /src/data/zmod/quotient.lean | 0d84715b4a02f13c47bcc588eceed54fc01cb3d9 | [
"Apache-2.0"
] | permissive | alreadydone/mathlib | dc0be621c6c8208c581f5170a8216c5ba6721927 | c982179ec21091d3e102d8a5d9f5fe06c8fafb73 | refs/heads/master | 1,685,523,275,196 | 1,670,184,141,000 | 1,670,184,141,000 | 287,574,545 | 0 | 0 | Apache-2.0 | 1,670,290,714,000 | 1,597,421,623,000 | Lean | UTF-8 | Lean | false | false | 7,560 | 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 data.zmod.basic
import group_theory.group_action.quotient
import ring_theory.int.basic
/-!
# `zmod n` and quotient groups / rings
This file relates `zmod n` to the... |
e8fc3e395838afdbb1173072a2235fce1aeac5c9 | a9fe717b93ccfa4b2e64faeb24f96dfefb390240 | /tests.lean | 81083f84e31718011960fdb91b4b54dee880eee6 | [] | no_license | skbaek/omega | ab1f4a6daadfc8c855f14c39d9459ab841527141 | 715e384ed14e8eb177a326700066e7c98269e078 | refs/heads/master | 1,588,000,876,352 | 1,552,645,917,000 | 1,552,645,917,000 | 174,442,914 | 1 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 2,541 | lean | import .main
meta def ex01 : expr := `(∀ {x y z w v : int}, 100 = x → x = y → y = z → z = w → w = v → v = 100)
meta def ex02 : expr := `(∀ x : int, (x = 5 ∨ x = 7) → 2 < x)
meta def ex03 : expr := `(∀ x : int, x ≤ -x → x ≤ 0)
meta def ex04 : expr := `(∀ x y : int, (x ≤ 5 ∧ y ≤ 3) → x + y ≤ 8 )
meta def ex05 : expr := ... |
e33ffa8e69eaf8abe772ca8d1a3a969e44d69b64 | d1a52c3f208fa42c41df8278c3d280f075eb020c | /src/Leanpkg.lean | ed1f0b17038da2793f7bb7766ee2dd2bdee702aa | [
"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 | 9,132 | lean | /-
Copyright (c) 2017 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Gabriel Ebner, Sebastian Ullrich
-/
import Leanpkg.Resolve
import Leanpkg.Git
import Leanpkg.Build
import Lean.Util.Paths
open System
namespace Leanpkg
def readManifest : IO ... |
f25784a16f35b0824361824ab489b51cc0f9aeca | a7dd8b83f933e72c40845fd168dde330f050b1c9 | /src/category_theory/natural_transformation.lean | c1a6802a8794ea4d4eebe926a6b653d8820dee44 | [
"Apache-2.0"
] | permissive | NeilStrickland/mathlib | 10420e92ee5cb7aba1163c9a01dea2f04652ed67 | 3efbd6f6dff0fb9b0946849b43b39948560a1ffe | refs/heads/master | 1,589,043,046,346 | 1,558,938,706,000 | 1,558,938,706,000 | 181,285,984 | 0 | 0 | Apache-2.0 | 1,568,941,848,000 | 1,555,233,833,000 | Lean | UTF-8 | Lean | false | false | 2,631 | lean | /-
Copyright (c) 2017 Scott Morrison. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Tim Baumann, Stephen Morgan, Scott Morrison, Floris van Doorn
Defines natural transformations between functors.
Introduces notations
`τ.app X` for the components of natural transfo... |
29bc3f1097ad201c4d443a13a874adb5cbe5708a | 367134ba5a65885e863bdc4507601606690974c1 | /src/tactic/reserved_notation.lean | 1f5870bd584f4a800a71c6619b3831316c5d6a7a | [
"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 | 1,325 | lean | /-
Copyright (c) 2020 Bryan Gin-ge Chen. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Bryan Gin-ge Chen
-/
/-!
# Reserved notation
This file is imported by `logic.basic` and `logic.relator` to place it at the top of the
import graph.
We place all of `mathlib`'s re... |
f14449ea2df2f3b6d6d25fb13e9539a230d054fa | 63abd62053d479eae5abf4951554e1064a4c45b4 | /src/linear_algebra/dimension.lean | 78e8fcf1e084f9ac6b4af9deb58fefa0a373bb17 | [
"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 | 23,200 | lean | /-
Copyright (c) 2018 Mario Carneiro. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Author: Mario Carneiro, Johannes Hölzl, Sander Dahmen
-/
import linear_algebra.basis
import set_theory.cardinal_ordinal
/-!
# Dimension of modules and vector spaces
## Main definitions
* The... |
d4163a0b3766f9074caab93b9f212838193b9625 | 1abd1ed12aa68b375cdef28959f39531c6e95b84 | /src/data/list/nodup.lean | 8a4a9f591e79eb585a5e67a64e95d568d2d2a46d | [
"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 | 14,581 | lean | /-
Copyright (c) 2018 Mario Carneiro. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Mario Carneiro, Kenny Lau
-/
import data.list.lattice
import data.list.pairwise
import data.list.forall2
/-!
# Lists with no duplicates
`list.nodup` is defined in `data/list/defs`. I... |
af835a94bf7904825166e7de01b808b3c037e093 | 8cae430f0a71442d02dbb1cbb14073b31048e4b0 | /src/algebra/covariant_and_contravariant.lean | 58b4caf68983bc1671b1a8c840f91876e3bd3ce2 | [
"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 | 14,304 | lean | /-
Copyright (c) 2021 Damiano Testa. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Damiano Testa
-/
import algebra.group.defs
import order.basic
import order.monotone.basic
/-!
# Covariants and contravariants
> THIS FILE IS SYNCHRONIZED WITH MATHLIB4.
> Any change... |
93aa4adfe0c1499cb35df48511fce9089a737b77 | 9dc8cecdf3c4634764a18254e94d43da07142918 | /src/linear_algebra/matrix/hermitian.lean | 15e98d01762eeef7274d6782973b64b53aa0169b | [
"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 | 6,060 | lean | /-
Copyright (c) 2022 Alexander Bentkamp. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Alexander Bentkamp
-/
import analysis.inner_product_space.spectrum
/-! # Hermitian matrices
This file defines hermitian matrices and some basic results about them.
## Main defin... |
fa5222ed61667f0d877fc6c00faba82a1976c6c2 | 367134ba5a65885e863bdc4507601606690974c1 | /src/logic/relation.lean | 9e0c09776a25a488e6171beffb7ccdfd30428732 | [
"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 | 15,089 | 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
Transitive reflexive as well as reflexive closure of relations.
-/
import tactic.basic
variables {α : Type*} {β : Type*} {γ : Type*} {δ : Type*}
namespace relation
s... |
abdbcd10a4791caffbb954d53536a6a9428ebb74 | e0f9ba56b7fedc16ef8697f6caeef5898b435143 | /src/group_theory/perm/sign.lean | e71c452f926addd0c32cfbf4871723093eb47663 | [
"Apache-2.0"
] | permissive | anrddh/mathlib | 6a374da53c7e3a35cb0298b0cd67824efef362b4 | a4266a01d2dcb10de19369307c986d038c7bb6a6 | refs/heads/master | 1,656,710,827,909 | 1,589,560,456,000 | 1,589,560,456,000 | 264,271,800 | 0 | 0 | Apache-2.0 | 1,589,568,062,000 | 1,589,568,061,000 | null | UTF-8 | Lean | false | false | 32,664 | lean | /-
Copyright (c) 2018 Chris Hughes. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Chris Hughes
-/
import data.fintype.basic
import algebra.big_operators
universes u v
open equiv function fintype finset
variables {α : Type u} {β : Type v}
namespace equiv.perm
def su... |
063ccd9bc0b0d98eb8f5b9e4fd09a2f26c131957 | 77c5b91fae1b966ddd1db969ba37b6f0e4901e88 | /src/data/rat/denumerable.lean | f3014dadbd2b5542d2f64c65db95f5fd0e014147 | [
"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 | 1,250 | 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 data.rat
import set_theory.cardinal
/-!
# Denumerability of ℚ
This file proves that ℚ is infinite, denumerable, and deduces that it has cardinality `omega`.
-/
... |
e7b4e3d4e0816ee7b5051dd2226d8319bc3ec7a6 | 19cc34575500ee2e3d4586c15544632aa07a8e66 | /src/topology/instances/nnreal.lean | 5c44ddd33a9b6d5fe8f8249d734a64b94b1a0ad8 | [
"Apache-2.0"
] | permissive | LibertasSpZ/mathlib | b9fcd46625eb940611adb5e719a4b554138dade6 | 33f7870a49d7cc06d2f3036e22543e6ec5046e68 | refs/heads/master | 1,672,066,539,347 | 1,602,429,158,000 | 1,602,429,158,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 3,738 | lean | /-
Copyright (c) 2018 Johan Commelin. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Johan Commelin
Nonnegative real numbers.
-/
import topology.algebra.infinite_sum
noncomputable theory
open set topological_space metric
open_locale topological_space
namespace nnreal... |
0bd465cf3f59e833a3a1ffe01a23aee2f2ce0bfd | 947fa6c38e48771ae886239b4edce6db6e18d0fb | /src/algebra/lie/subalgebra.lean | dc2c5a405795db8911f677164451da5d0851a517 | [
"Apache-2.0"
] | permissive | ramonfmir/mathlib | c5dc8b33155473fab97c38bd3aa6723dc289beaa | 14c52e990c17f5a00c0cc9e09847af16fabbed25 | refs/heads/master | 1,661,979,343,526 | 1,660,830,384,000 | 1,660,830,384,000 | 182,072,989 | 0 | 0 | null | 1,555,585,876,000 | 1,555,585,876,000 | null | UTF-8 | Lean | false | false | 23,363 | lean | /-
Copyright (c) 2021 Oliver Nash. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Oliver Nash
-/
import algebra.lie.basic
import ring_theory.noetherian
/-!
# Lie subalgebras
This file defines Lie subalgebras of a Lie algebra and provides basic related definitions and... |
9489a54f1bf0c5bd54db2163d0d8167d63bc18d3 | ae1e94c332e17c7dc7051ce976d5a9eebe7ab8a5 | /src/Lean/Parser/Term.lean | 0b50fe96d3d65ee18c1cb3cf675c8be0808c10f5 | [
"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 | 15,461 | 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.Attr
import Lean.Parser.Level
namespace Lean
namespace Parser
namespace Command
def commentBody : Parser :=
{ fn := ... |
e16dd8cda136cd44f1b4ec2c993f7cf707a7eccf | f4bff2062c030df03d65e8b69c88f79b63a359d8 | /kb_solns/L01defs.lean | e875890ab658a49786433885d33504533594a6c0 | [
"Apache-2.0"
] | permissive | adastra7470/real-number-game | 776606961f52db0eb824555ed2f8e16f92216ea3 | f9dcb7d9255a79b57e62038228a23346c2dc301b | refs/heads/master | 1,669,221,575,893 | 1,594,669,800,000 | 1,594,669,800,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 2,427 | lean | import data.set.basic
namespace xena -- hide
variable X : Type -- hide
-- begin hide
/- The first level, originally written by KMB. -/
-- end hide
/-
# Chapter 1 : Sets
## Level 1 : Introduction to sets.
This chapter assumes you are familiar with the following tactics: `intro`, `apply`, `exact`, `cases`, `split`,... |
17f1b60ce939b9a4925641d94accd89c06ac0820 | 64874bd1010548c7f5a6e3e8902efa63baaff785 | /hott/algebra/precategory/constructions.hlean | c3ce6dceed6eb3eae82fe4c7b9b59fee9f879692 | [
"Apache-2.0"
] | permissive | tjiaqi/lean | 4634d729795c164664d10d093f3545287c76628f | d0ce4cf62f4246b0600c07e074d86e51f2195e30 | refs/heads/master | 1,622,323,796,480 | 1,422,643,069,000 | 1,422,643,069,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 15,144 | hlean | -- Copyright (c) 2014 Floris van Doorn. All rights reserved.
-- Released under Apache 2.0 license as described in the file LICENSE.
-- Authors: Floris van Doorn, Jakob von Raumer
-- This file contains basic constructions on precategories, including common precategories
import .natural_transformation
import types.pro... |
70a494a2a31a4244f9517f5bae5e5e33e1fc5434 | 57c233acf9386e610d99ed20ef139c5f97504ba3 | /src/algebra/star/pi.lean | bb044dc44f3aa90d06af7377f8f27a7346bd19fa | [
"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 | 1,620 | 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.star.basic
import algebra.ring.pi
import algebra.module.pi
/-!
# `star` on pi types
We put a `has_star` structure on pi types that operates elementwise, su... |
abea1e65d1344293fca651c3894d680275ca49bb | e0f9ba56b7fedc16ef8697f6caeef5898b435143 | /src/algebra/gcd_domain.lean | 2783be6551b1cfb79daca57be442766eb22643ba | [
"Apache-2.0"
] | permissive | anrddh/mathlib | 6a374da53c7e3a35cb0298b0cd67824efef362b4 | a4266a01d2dcb10de19369307c986d038c7bb6a6 | refs/heads/master | 1,656,710,827,909 | 1,589,560,456,000 | 1,589,560,456,000 | 264,271,800 | 0 | 0 | Apache-2.0 | 1,589,568,062,000 | 1,589,568,061,000 | null | UTF-8 | Lean | false | false | 26,263 | 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, Jens Wagemaker
GCD domain and integral domains with normalization functions
TODO: abstract the domains to to semi domains (i.e. domains on semirings) to include ℕ and... |
a415793d37c2f3472dd35f0f15e63f648ea03411 | 1abd1ed12aa68b375cdef28959f39531c6e95b84 | /src/measure_theory/measure/measure_space.lean | da72bb19370bfcd2638eea1ea4b6040dbd427cbe | [
"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 | 139,106 | lean | /-
Copyright (c) 2017 Johannes Hölzl. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Johannes Hölzl, Mario Carneiro
-/
import measure_theory.measure.measure_space_def
import measure_theory.measurable_space
/-!
# Measure spaces
The definition of a measure and a measur... |
2d83ad71c6e41b6e6231edb61136fa2aa32a9504 | 63abd62053d479eae5abf4951554e1064a4c45b4 | /src/topology/algebra/ordered.lean | f4dd4e608be50abeca98c426a2595069e35c8559 | [
"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 | 134,323 | 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... |
e0ea62e427b9103fe728895236e1455753932933 | 8cae430f0a71442d02dbb1cbb14073b31048e4b0 | /src/analysis/locally_convex/continuous_of_bounded.lean | d21f6381b204665f46ab18a5ab53c39f6cbb9ba5 | [
"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 | 7,871 | lean | /-
Copyright (c) 2022 Anatole Dedecker. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Moritz Doll
-/
import analysis.locally_convex.bounded
import data.is_R_or_C.basic
/-!
# Continuity and Von Neumann boundedness
> THIS FILE IS SYNCHRONIZED WITH MATHLIB4.
> Any chan... |
497f81c4f944f253306e2b225df1da2b8276e499 | 35677d2df3f081738fa6b08138e03ee36bc33cad | /src/category_theory/category/Groupoid.lean | 359e6de3f015a559d50eff1ef400183369635cd5 | [
"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,958 | lean | /-
Copyright (c) 2019 Yury Kudryashov. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Yury Kudryashov
-/
import category_theory.groupoid
import category_theory.category.Cat
import category_theory.single_obj
/-!
# Category of groupoids
This file contains the definitio... |
61368ae9aae39f989bb5eab2bb15339f39ebe3a9 | b7f22e51856f4989b970961f794f1c435f9b8f78 | /tests/lean/run/ind_tac.lean | 804f0a337e1ddf44c0eb46b06e65cced1a3c9b2a | [
"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 | 2,802 | 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
Define propositional calculus, valuation, provability, validity, prove soundness.
This file is based on Floris van Doorn Coq files.
-/
import data.nat data.l... |
e0a380b55dfbbafea6ec66172cad40a04ab96209 | 05f637fa14ac28031cb1ea92086a0f4eb23ff2b1 | /tests/lean/compact_def.lean | 2a94cc5f12004ec18d4a047d9512129db00762c2 | [
"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 | 129 | lean | import specialfn.
definition f x y := x + y
definition g x y := sin x + y
definition h x y := x * sin (x + y)
print environment 3 |
064b39ad5cfbb83e1d2e66142c30374e1d4e950d | 37a833c924892ee3ecb911484775a6d6ebb8984d | /src/category_theory/examples/categories.lean | f751e16d01267432c8e40393010a094ae3a0b9f4 | [] | no_license | silky/lean-category-theory | 28126e80564a1f99e9c322d86b3f7d750da0afa1 | 0f029a2364975f56ac727d31d867a18c95c22fd8 | refs/heads/master | 1,589,555,811,646 | 1,554,673,665,000 | 1,554,673,665,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 622 | lean | import category_theory.functor
universes u v
namespace category_theory
structure Category : Type (max (u+1) (v+1)) :=
(C : Type u)
[𝒞 : category.{u v} C]
instance category_of_Category (𝒞 : Category) : category (𝒞.C) := 𝒞.𝒞
instance CAT : category.{(max (u+1) (v+1)) (max u v)} Category :=
{ hom := λ 𝒞 �... |
b7dac73854c69eaed9ccd5ad4793a081a64a8d93 | d406927ab5617694ec9ea7001f101b7c9e3d9702 | /src/combinatorics/set_family/harris_kleitman.lean | bfd2055a2aee4413077802c70429f0e7e4c6fdfc | [
"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 | 6,139 | 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 combinatorics.set_family.compression.down
import order.upper_lower
import data.fintype.big_operators
/-!
# Harris-Kleitman inequality
This file proves the Harris... |
c2785bb04fe845e2638d502ae99829b3478e8b1e | fa02ed5a3c9c0adee3c26887a16855e7841c668b | /src/data/nat/choose/sum.lean | 9037f70443d190876ef02754a7d70b1097ac131b | [
"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 | 6,896 | lean | /-
Copyright (c) 2018 Chris Hughes. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Chris Hughes, Patrick Stevens
-/
import data.nat.choose.basic
import tactic.linarith
import algebra.big_operators.ring
import algebra.big_operators.intervals
import algebra.big_operators... |
3569fb14513ba7a9cf74d1d6186ad34106867330 | e0b0b1648286e442507eb62344760d5cd8d13f2d | /stage0/src/Lean/Elab/BuiltinNotation.lean | 4d1dc9018bf3944615ebc42aab010ad5683a8b58 | [
"Apache-2.0"
] | permissive | MULXCODE/lean4 | 743ed389e05e26e09c6a11d24607ad5a697db39b | 4675817a9e89824eca37192364cd47a4027c6437 | refs/heads/master | 1,682,231,879,857 | 1,620,423,501,000 | 1,620,423,501,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 13,765 | 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 Init.Data.ToString
import Lean.Compiler.BorrowedAnnotation
import Lean.Meta.KAbstract
import Lean.Meta.Transform
import Lean.Elab.Term
import Lean.El... |
c31378bc2f024e03aaeed4816d2278b23677940d | 8cae430f0a71442d02dbb1cbb14073b31048e4b0 | /src/category_theory/preadditive/Mat.lean | 3794457cb5e65d0609de9921e265b50e34f7300e | [
"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 | 18,772 | 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.big_operators.basic
import algebra.big_operators.pi
import category_theory.limits.shapes.biproducts
import category_theory.preadditive.basic
import cat... |
3d6f8d743d58b5b26578a1b71c2f1d9f1903ec09 | 94096349332b0a0e223a22a3917c8f253cd39235 | /src/game/function_world/level2.lean | a19dea2dcb1e3665e950ab40ef740d47a4076e36 | [] | no_license | robertylewis/natural_number_game | 26156e10ef7b45248549915cc4d1ab3d8c3afc85 | b210c05cd627242f791db1ee3f365ee7829674c9 | refs/heads/master | 1,598,964,725,038 | 1,572,602,236,000 | 1,572,602,236,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 1,321 | lean | /- Tactic : let
If you want to make some element of a set (or term of a type,
as Lean would put it) and you have the
formula, you can use `let` to give the term a name.
## Example
If the local context contains
```
f : P → Q
p : P
```
then the tactic `let q := f(p),` will add `q` to our local context,
and it will al... |
7dd1238095fecbc732573099d780b38cbd8a01c6 | d642a6b1261b2cbe691e53561ac777b924751b63 | /src/analysis/calculus/fderiv.lean | 2221ef5212fa95165947d4669b4d2b60acfbfcdc | [
"Apache-2.0"
] | permissive | cipher1024/mathlib | fee56b9954e969721715e45fea8bcb95f9dc03fe | d077887141000fefa5a264e30fa57520e9f03522 | refs/heads/master | 1,651,806,490,504 | 1,573,508,694,000 | 1,573,508,694,000 | 107,216,176 | 0 | 0 | Apache-2.0 | 1,647,363,136,000 | 1,508,213,014,000 | Lean | UTF-8 | Lean | false | false | 53,978 | lean | /-
Copyright (c) 2019 Jeremy Avigad. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Jeremy Avigad, Sébastien Gouëzel
The Fréchet derivative.
Let `E` and `F` be normed spaces, `f : E → F`, and `f' : E →L[𝕜] F` a
continuous 𝕜-linear map, where `𝕜` is a non-discrete ... |
8b93177fcee0490451d07141cec62d24ea8b0376 | 432d948a4d3d242fdfb44b81c9e1b1baacd58617 | /src/ring_theory/polynomial_algebra.lean | f5232aadf8486e095bcd0fb381d41b521041604c | [
"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 | 12,020 | 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 ring_theory.matrix_algebra
import data.polynomial.algebra_map
/-!
# Algebra isomorphism between matrices of polynomials and polynomials of matrices
Given `[c... |
cbc1c96faf94a7528c48b6b0bf74affa005a3973 | 94e33a31faa76775069b071adea97e86e218a8ee | /src/algebra/quaternion.lean | 7a635dc8456927216664362a8235fbbac02b333c | [
"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 | 25,057 | lean | /-
Copyright (c) 2020 Yury Kudryashov. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Yury Kudryashov
-/
import algebra.algebra.basic
import set_theory.cardinal.ordinal
import tactic.ring_exp
/-!
# Quaternions
In this file we define quaternions `ℍ[R]` over a commutat... |
8b647ca5513acaa0dce81a4800776c43bdf391a1 | f083c4ed5d443659f3ed9b43b1ca5bb037ddeb58 | /linear_algebra/subtype_module.lean | 87308d2e224f1390aa78391786f54e79d7bcaa95 | [
"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 | 2,063 | 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, Kenny Lau
Subtype construction of sub modules.
-/
import linear_algebra.basic
universes u v w
variables {α : Type u} {β : Type v} {γ : Type w}
variables [ring α] [mod... |
078f6b3167a2c88123e3630945cebeb8485f4b5a | fa02ed5a3c9c0adee3c26887a16855e7841c668b | /test/apply.lean | 68002b54915d17b5fd243be04ed2e4544e9a1dfc | [
"Apache-2.0"
] | permissive | jjgarzella/mathlib | 96a345378c4e0bf26cf604aed84f90329e4896a2 | 395d8716c3ad03747059d482090e2bb97db612c8 | refs/heads/master | 1,686,480,124,379 | 1,625,163,323,000 | 1,625,163,323,000 | 281,190,421 | 2 | 0 | Apache-2.0 | 1,595,268,170,000 | 1,595,268,169,000 | null | UTF-8 | Lean | false | false | 1,562 | lean |
import tactic.apply
import topology.instances.real
-- algebra.pi_instances
example : ∀ n m : ℕ, n + m = m + n :=
begin
apply' nat.rec,
-- refine nat.rec _ _,
{ intro m, ring },
{ intros n h m,
ring, },
end
instance : partial_order unit :=
{ le := λ _ _, ∀ (x : ℕ), x = x,
lt := λ _ _, false,
le... |
0ac799886a17dc1bf1d3a914c2e04a650be7c669 | c31182a012eec69da0a1f6c05f42b0f0717d212d | /src/thm95/constants/default.lean | cbe0a2e65c05e9e5445b0f762983890aa03e353f | [] | no_license | Ja1941/lean-liquid | fbec3ffc7fc67df1b5ca95b7ee225685ab9ffbdc | 8e80ed0cbdf5145d6814e833a674eaf05a1495c1 | refs/heads/master | 1,689,437,983,362 | 1,628,362,719,000 | 1,628,362,719,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 13,396 | lean | import analysis.special_functions.pow
import combinatorial_lemma
import breen_deligne.eg
import thm95.constants.spectral_constants
import for_mathlib.nnreal
/-!
# Explicit formulas for the constants in theorem 9.5
-/
noncomputable theory
open_locale nnreal
open real finset
lemma real.log_pow {x : ℝ} (hx : 0 < x... |
276aebf718b508ccefd6f4ebf56d35bdf54020e2 | 3c9dc4ea6cc92e02634ef557110bde9eae393338 | /src/Lean/Meta/ExprDefEq.lean | bf80ec368183d13045dd0726ebc0484d460806e5 | [
"Apache-2.0"
] | permissive | shingtaklam1324/lean4 | 3d7efe0c8743a4e33d3c6f4adbe1300df2e71492 | 351285a2e8ad0cef37af05851cfabf31edfb5970 | refs/heads/master | 1,676,827,679,740 | 1,610,462,623,000 | 1,610,552,340,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 54,508 | lean | /-
Copyright (c) 2019 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Leonardo de Moura
-/
import Lean.ProjFns
import Lean.Meta.WHNF
import Lean.Meta.InferType
import Lean.Meta.FunInfo
import Lean.Meta.LevelDefEq
import Lean.Meta.Check
import Lean... |
9cc3f3e98b0331480cef02be58df39adea74779d | 94e33a31faa76775069b071adea97e86e218a8ee | /src/data/real/cardinality.lean | 4fa0609a4fa4a598e8ed46226fa6edee11d1405a | [
"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 | 9,598 | 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 analysis.specific_limits.basic
import data.rat.denumerable
import data.set.intervals.image_preimage
import set_theory.cardinal.continuum
/-!
# The cardina... |
9d0b07d3bbc1670824dace9e9e9c4455a17b9aba | 4bcaca5dc83d49803f72b7b5920b75b6e7d9de2d | /stage0/src/Lean/Meta/Tactic.lean | 0dab0ad686bdf5223b3910cf5d47b67975a570b5 | [
"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 | 775 | lean | /-
Copyright (c) 2019 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Leonardo de Moura
-/
import Lean.Meta.Tactic.Intro
import Lean.Meta.Tactic.Assumption
import Lean.Meta.Tactic.Contradiction
import Lean.Meta.Tactic.Apply
import Lean.Meta.Tactic... |
5b43a02bb660ba271ea8715e94d641ed05dc0340 | cf39355caa609c0f33405126beee2739aa3cb77e | /tests/lean/type_class_bug.lean | c554779e99513b76f70dcbc4b63faede79421f40 | [
"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 | 177 | lean | set_option pp.all true
#check
(do {
a : nat ← [1],
return a } : list nat )
#check
(do {
a : nat ← [1, 2, 3],
b : nat ← [3, 4],
return (a, b) } : list (nat × nat) )
|
8a9b2bb15c80cd1c93826543069c1133f31ffae0 | 3dc4623269159d02a444fe898d33e8c7e7e9461b | /.github/workflows/geo/group_objet/groupk.lean | 98d56c822e42cda25bf1faac9453f2fe4bc0b1cb | [] | no_license | Or7ando/lean | cc003e6c41048eae7c34aa6bada51c9e9add9e66 | d41169cf4e416a0d42092fb6bdc14131cee9dd15 | refs/heads/master | 1,650,600,589,722 | 1,587,262,906,000 | 1,587,262,906,000 | 255,387,160 | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 16,761 | lean | import category_theory.limits.limits
import category_theory.limits.shapes
import category_theory.yoneda
import category_theory.opposites
import category_theory.types
import category_theory.limits.types
-- set_option trace.simplify.rewrite true
run_cmd mk_simp_attr `PRODUCT ----- BOF BOF
meta def PRODUCT_CAT : ta... |
36f142b5fa1057a793c3384fb7a626211117b025 | faaa51985b30efc1857652fa0d5ba10007544221 | /Lean/1. Lists/Ex1_1.lean | 9c4c73e4111c29767b2b5281251580a092faf3a8 | [] | no_license | SvenWille/ExerciseSolutions_New | 0d63f7b9a4e3f32236c19852a2fba744dc64be21 | b8243e7a669846c64e2f5520dae88ff41265d233 | refs/heads/master | 1,629,114,358,797 | 1,511,126,985,000 | 1,511,126,985,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 3,884 | lean | open list
def snoc {a : Type}: list a → a → list a
| [] val := [val]
| (x::xs) val := x :: snoc xs val
lemma helper1 {A : Type} (xs ys : list A)(val : A): snoc (xs ++ ys) val = xs ++ snoc ys val :=
list.rec_on xs
(show snoc ([] ++ ys) val = [] ++ snoc ys val, by simp)
(
assume aa: A,
assume xs: lis... |
de43603e4760b2423df80b867dfc4596a173005e | 94e33a31faa76775069b071adea97e86e218a8ee | /src/data/fin/vec_notation.lean | 13dae3013afc29d29aba09da8f197110d6cc89f3 | [
"Apache-2.0"
] | permissive | urkud/mathlib | eab80095e1b9f1513bfb7f25b4fa82fa4fd02989 | 6379d39e6b5b279df9715f8011369a301b634e41 | refs/heads/master | 1,658,425,342,662 | 1,658,078,703,000 | 1,658,078,703,000 | 186,910,338 | 0 | 0 | Apache-2.0 | 1,568,512,083,000 | 1,557,958,709,000 | Lean | UTF-8 | Lean | false | false | 13,676 | lean | /-
Copyright (c) 2020 Anne Baanen. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Anne Baanen
-/
import data.fin.tuple
import data.list.range
import group_theory.group_action.pi
import meta.univs
/-!
# Matrix and vector notation
This file defines notation for vectors... |
c1f3c17d8959186cb3a0f1e6baa3b4f823096790 | cf39355caa609c0f33405126beee2739aa3cb77e | /tests/lean/run/induction_tactic_delta.lean | fd887df0513463963d1657e7bc27df171ac0c819 | [
"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 | 351 | lean | open tactic
-- This test makes sure that [foo'] is not unfolded in the major premise,
-- since [foo'] is the type of the major premise of the provided recursor.
inductive foo (n : nat)
| mk : foo
definition foo' := @foo 0
definition foo'.rec := @foo.rec
example : Pi (x : foo'), x = x :=
by do x ← intro `x,
in... |
8135a12bddf9a03326548a7809de3943d713df34 | a8c03ed21a1bd6fc45901943b79dd6574ea3f0c2 | /superposition.lean | 00445f50cc0d0549aab64449c013c2ccce838dde | [] | no_license | gebner/resolution.lean | 716c355fbb5204e5c4d0c5a7f3f3cc825892a2bf | c6fafe06fba1cfad73db68f2aa474b29fe892a2b | refs/heads/master | 1,601,111,444,528 | 1,475,256,701,000 | 1,475,256,701,000 | 67,711,151 | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 4,894 | lean | import clause prover_state utils
open tactic monad expr
meta def get_rwr_positions : expr → list (list ℕ)
| (app a b) := [[]] ++
do arg ← list.zip_with_index (get_app_args (app a b)),
pos ← get_rwr_positions arg↣1,
[arg↣2 :: pos]
| (var _) := []
| e := [[]]
meta def get_position : expr → list ℕ → expr
| (... |
07f606c5b5139097bb2962a8bbf8f476fbca5b8c | 9028d228ac200bbefe3a711342514dd4e4458bff | /src/topology/sequences.lean | 18292b96242c11a641083e4829ce33a0f3b8fc33 | [
"Apache-2.0"
] | permissive | mcncm/mathlib | 8d25099344d9d2bee62822cb9ed43aa3e09fa05e | fde3d78cadeec5ef827b16ae55664ef115e66f57 | refs/heads/master | 1,672,743,316,277 | 1,602,618,514,000 | 1,602,618,514,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 18,851 | 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, Patrick Massot
-/
import topology.bases
import topology.subset_properties
import topology.metric_space.basic
/-!
# Sequences in topological spaces
In this file ... |
13909746701d3d74a91577585257e0231fae2548 | 271e26e338b0c14544a889c31c30b39c989f2e0f | /stage0/src/Init/Data/HashMap/Basic.lean | 04a9c17bdc10789b45621888cdab53dffb390414 | [
"Apache-2.0"
] | permissive | dgorokho/lean4 | 805f99b0b60c545b64ac34ab8237a8504f89d7d4 | e949a052bad59b1c7b54a82d24d516a656487d8a | refs/heads/master | 1,607,061,363,851 | 1,578,006,086,000 | 1,578,006,086,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 7,034 | 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
-/
prelude
import Init.Data.Array.Basic
import Init.Data.AssocList
import Init.Data.Option.Basic
import Init.Data.Hashable
universes u v w
def HashMapBucket (α... |
2f3d3f295812979e95180c4bf9d44c9c805c4089 | ac2987d8c7832fb4a87edb6bee26141facbb6fa0 | /Mathlib/Tactic/Basic.lean | 7fb065c6e3d79aa8b1cba1f1ffba861c77f767af | [
"Apache-2.0"
] | permissive | AurelienSaue/mathlib4 | 52204b9bd9d207c922fe0cf3397166728bb6c2e2 | 84271fe0875bafdaa88ac41f1b5a7c18151bd0d5 | refs/heads/master | 1,689,156,096,545 | 1,629,378,840,000 | 1,629,378,840,000 | 389,648,603 | 0 | 0 | Apache-2.0 | 1,627,307,284,000 | 1,627,307,284,000 | null | UTF-8 | Lean | false | false | 6,982 | lean | /-
Copyright (c) 2021 Mario Carneiro. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Author: Mario Carneiro
-/
import Mathlib.Tactic.Split
import Mathlib.Tactic.NoMatch
import Mathlib.Tactic.Block
import Lean.Elab.Command
open Lean Parser.Tactic Elab Command Elab.Tactic Meta
... |
44fe4644d243b01d9082a1638f1908a0fd07e8cd | 30b012bb72d640ec30c8fdd4c45fdfa67beb012c | /data/zmod/quadratic_reciprocity.lean | d1c6c9d81f74f37ee54c7dc9e2e804937877ee8b | [
"Apache-2.0"
] | permissive | kckennylau/mathlib | 21fb810b701b10d6606d9002a4004f7672262e83 | 47b3477e20ffb5a06588dd3abb01fe0fe3205646 | refs/heads/master | 1,634,976,409,281 | 1,542,042,832,000 | 1,542,319,733,000 | 109,560,458 | 0 | 0 | Apache-2.0 | 1,542,369,208,000 | 1,509,867,494,000 | Lean | UTF-8 | Lean | false | false | 32,422 | lean | /-
Copyright (c) 2018 Chris Hughes. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Chris Hughes
-/
import field_theory.finite data.zmod.basic algebra.pi_instances
open function finset nat finite_field zmodp
namespace zmodp
variables {p q : ℕ} (hp : prime p) (hq : pr... |
53b7105c87c0fc5f23278d7009c2a73e1348c0a4 | 26ac254ecb57ffcb886ff709cf018390161a9225 | /src/data/polynomial/degree.lean | c5df2ccfe198f6902a39d0034c700b94f55585c8 | [
"Apache-2.0"
] | permissive | eric-wieser/mathlib | 42842584f584359bbe1fc8b88b3ff937c8acd72d | d0df6b81cd0920ad569158c06a3fd5abb9e63301 | refs/heads/master | 1,669,546,404,255 | 1,595,254,668,000 | 1,595,254,668,000 | 281,173,504 | 0 | 0 | Apache-2.0 | 1,595,263,582,000 | 1,595,263,581,000 | null | UTF-8 | Lean | false | false | 23,960 | lean | /-
Copyright (c) 2018 Chris Hughes. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Chris Hughes, Johannes Hölzl, Scott Morrison, Jens Wagemaker
-/
import data.polynomial.eval
/-!
# Theory of degrees of polynomials
Some of the main results include
- `degree_mul` : Th... |
65d496302f02a3c387500473b98bedcef240c04f | 947b78d97130d56365ae2ec264df196ce769371a | /tests/lean/run/structure.lean | 68c2afd6d3adc459f7e474efaf38433b54397665 | [
"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,205 | lean | import Lean
new_frontend
open Lean
structure S1 :=
(x y : Nat)
structure S2 extends S1 :=
(z : Nat)
structure S3 :=
(w : Nat)
structure S4 extends S2, S3 :=
(s : Nat)
def check (b : Bool) : CoreM Unit :=
«unless» b $ throwError "check failed"
class S5 :=
(x y : Nat)
inductive D
| mk (x y z : Nat) : D
def tst : ... |
e4f241e1e553be8e00a6d2c86c6b0f971e2635ba | 94e33a31faa76775069b071adea97e86e218a8ee | /src/ring_theory/ideal/local_ring.lean | 4d446c7349bff1fa170dfd35149363541d262541 | [
"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 | 12,628 | lean | /-
Copyright (c) 2018 Kenny Lau. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Kenny Lau, Chris Hughes, Mario Carneiro
-/
import algebra.algebra.basic
import algebra.category.Ring.basic
import ring_theory.ideal.operations
/-!
# Local rings
Define local rings as co... |
a19df3add0dfd71858f8268351c0068f21f3c233 | 6432ea7a083ff6ba21ea17af9ee47b9c371760f7 | /tests/elabissues/issues7.lean | c740098d5d2a68d98090055ca7a8ffe5939f0b1a | [
"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 | 834 | lean | structure A :=
(a : Nat)
structure B :=
(a : Nat)
structure C :=
(a : Nat)
instance : HasCoe A B := ⟨fun s => ⟨s.1⟩⟩
instance : HasCoe A C := ⟨fun s => ⟨s.1⟩⟩
def f {α} (a b : α) := a
def forceB {α} (b : B) (a : α) := a
def forceC {α} (c : C) (a : α) := a
def forceA {α} (a : A) (o : α) := o
def f1 (x : _) (y : _) ... |
f61fd390efa536139bf37fbba43843a69b3ed05b | fa02ed5a3c9c0adee3c26887a16855e7841c668b | /src/data/polynomial/cancel_leads.lean | f29ae6c3493e3e4aeee38c958bed6923261ed2f3 | [
"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 | 2,941 | lean | /-
Copyright (c) 2020 Aaron Anderson. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Aaron Anderson
-/
import data.polynomial.degree.definitions
/-!
# Cancel the leading terms of two polynomials
## Definition
* `cancel_leads p q`: the polynomial formed by multiplyin... |
b2a1a779c138fb32f5a8b9f13c572478369f1346 | d406927ab5617694ec9ea7001f101b7c9e3d9702 | /src/topology/continuous_function/basic.lean | 79d4178ec11fa1885e6e5de10bc1d01fea48eeb5 | [
"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 | 12,272 | lean | /-
Copyright © 2020 Nicolò Cavalleri. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Nicolò Cavalleri
-/
import data.set.Union_lift
import topology.homeomorph
/-!
# Continuous bundled maps
In this file we define the type `continuous_map` of continuous bundled maps.
... |
3f8c1357e9289d35ba72bbe18fa8d2db5c50ccbd | e00ea76a720126cf9f6d732ad6216b5b824d20a7 | /src/ring_theory/subring.lean | 53211f0fb4900560c333a20dd380345de7256aef | [
"Apache-2.0"
] | permissive | vaibhavkarve/mathlib | a574aaf68c0a431a47fa82ce0637f0f769826bfe | 17f8340912468f49bdc30acdb9a9fa02eeb0473a | refs/heads/master | 1,621,263,802,637 | 1,585,399,588,000 | 1,585,399,588,000 | 250,833,447 | 0 | 0 | Apache-2.0 | 1,585,410,341,000 | 1,585,410,341,000 | null | UTF-8 | Lean | false | false | 8,284 | 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 group_theory.subgroup
import algebra.ring
universes u v
open group
variables {R : Type u} [ring R]
section prio
set_option default_priority 100 -- see Not... |
94798ee0670fd991c0c9f9f5ee7ae5e8a569ae2b | e1da55f4222dac91b940ca052928eaace09762da | /src/triangle_counting.lean | e8c4cc9775718ead4a88dcc9aa544865e58c5dd3 | [] | no_license | b-mehta/regularity-lemma | c5826e22c280d0b073a4e62dba731f4dd3d1b69f | cf26082b0c88fa54276e6fdc3338c15e607c52c6 | refs/heads/master | 1,658,209,524,267 | 1,644,406,456,000 | 1,644,406,456,000 | 457,327,371 | 1 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 29,360 | lean | /-
Copyright (c) 2021 Yaël Dillies, Bhavik Mehta. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Yaël Dillies, Bhavik Mehta
-/
import .regularity_lemma
import combinatorics.simple_graph.subgraph
/-!
# Triangle counting lemma
-/
open finset fintype
open_locale big_ope... |
23fb18dd6e608bddb75448206f27b7c33a7bb165 | 74addaa0e41490cbaf2abd313a764c96df57b05d | /Mathlib/tactic/linarith/parsing_auto.lean | 2f92ed7fb675760bd429af8f7b4b6f8bdd0df79b | [] | no_license | AurelienSaue/Mathlib4_auto | f538cfd0980f65a6361eadea39e6fc639e9dae14 | 590df64109b08190abe22358fabc3eae000943f2 | refs/heads/master | 1,683,906,849,776 | 1,622,564,669,000 | 1,622,564,669,000 | 371,723,747 | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 1,465 | lean | /-
Copyright (c) 2020 Robert Y. Lewis. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Robert Y. Lewis
-/
import Mathlib.PrePort
import Mathlib.Lean3Lib.init.default
import Mathlib.tactic.linarith.datatypes
import Mathlib.PostPort
namespace Mathlib
/-!
# Parsing input... |
30bb7aebad825d79b0458e0427f54ba681a7778f | 302c785c90d40ad3d6be43d33bc6a558354cc2cf | /src/data/zsqrtd/gaussian_int.lean | 993f28498c2e192b737df0c72ad007db617f640e | [
"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,625 | 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 data.zsqrtd.basic
import data.complex.basic
import ring_theory.principal_ideal_domain
import number_theory.quadratic_reciprocity
/-!
# Gaussian integers
The Gauss... |
068d3622cf4954c0aa92c2777bfd5e0a94f59f79 | a0e23cfdd129a671bf3154ee1a8a3a72bf4c7940 | /stage0/src/Lean/Data/JsonRpc.lean | cb32f988de90ee5fb885b115713d167eee7d303d | [
"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 | 10,071 | 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.Control
import Init.System.IO
import Std.Data.RBTree
import Lean.Data.Json
/-! Implementation of JSON-RPC 2.0 (https://www.jsonrpc.org/... |
5600e23b1cc6db6113dc0bfce96d554f87b6d6c7 | 36938939954e91f23dec66a02728db08a7acfcf9 | /lean/deps/decodex86/src/instruction.lean | f2d42687826f7467de09d1b026c4eadcca5b4b91 | [
"Apache-2.0"
] | permissive | pnwamk/reopt-vcg | f8b56dd0279392a5e1c6aee721be8138e6b558d3 | c9f9f185fbefc25c36c4b506bbc85fd1a03c3b6d | refs/heads/master | 1,631,145,017,772 | 1,593,549,019,000 | 1,593,549,143,000 | 254,191,418 | 0 | 0 | null | 1,586,377,077,000 | 1,586,377,077,000 | null | UTF-8 | Lean | false | false | 10,881 | lean |
import .sexp
namespace decodex86
def regN := string
structure register :=
(top : regN)
(reg : regN)
(width : ℕ)
(offset : ℕ)
def register_to_string : register -> string := λr,
string.intercalate " " ["(", "R", r.top, r.reg, repr r.width, repr r.offset, ")"]
instance register_has_repr : has_repr registe... |
cc8914931185b2f486c0b9326c39c4c34d5b77d3 | 36938939954e91f23dec66a02728db08a7acfcf9 | /lean4/deps/galois_stdlib/src/Galois/Data/SExp.lean | 537fd23d9039c9d1ec86bb3de32c3ff8a318459f | [] | no_license | pnwamk/reopt-vcg | f8b56dd0279392a5e1c6aee721be8138e6b558d3 | c9f9f185fbefc25c36c4b506bbc85fd1a03c3b6d | refs/heads/master | 1,631,145,017,772 | 1,593,549,019,000 | 1,593,549,143,000 | 254,191,418 | 0 | 0 | null | 1,586,377,077,000 | 1,586,377,077,000 | null | UTF-8 | Lean | false | false | 4,584 | lean |
-- Here we defined data and functions for
-- well-formed s-expressions (i.e., s-expressions
-- which exclude improper lists by construction).
namespace WellFormedSExp
section
universe u
inductive SExp (α : Type u)
| atom : α → SExp
| list : List SExp → SExp
-- FIXME consider using wf rec here when it's enabled in... |
437be2ac8cd25664cf1c814b58d542121887dff2 | f5f7e6fae601a5fe3cac7cc3ed353ed781d62419 | /src/data/option/basic.lean | f8203f3916aee977197bf5ccf6b2234ea6d99c00 | [
"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 | 4,737 | lean | /-
Copyright (c) 2017 Mario Carneiro. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Mario Carneiro
-/
import logic.basic data.bool data.option.defs tactic.interactive
namespace option
variables {α : Type*} {β : Type*}
@[simp] theorem get_mem : ∀ {o : option α} (h : ... |
ba2cbbb61d76054ac4de1aaff6d1207e6dc462a5 | 4efff1f47634ff19e2f786deadd394270a59ecd2 | /src/ring_theory/maps.lean | f694d026e9113fa71053760e67bd00faa8cb69be | [
"Apache-2.0"
] | permissive | agjftucker/mathlib | d634cd0d5256b6325e3c55bb7fb2403548371707 | 87fe50de17b00af533f72a102d0adefe4a2285e8 | refs/heads/master | 1,625,378,131,941 | 1,599,166,526,000 | 1,599,166,526,000 | 160,748,509 | 0 | 0 | Apache-2.0 | 1,544,141,789,000 | 1,544,141,789,000 | null | UTF-8 | Lean | false | false | 2,052 | lean | /-
Copyright (c) 2018 Andreas Swerdlow. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Andreas Swerdlow, Kenny Lau
-/
import data.equiv.ring
import algebra.opposites
/-!
# Ring antihomomorphisms, isomorphisms, antiisomorphisms and involutions
This file defines ring a... |
5888a01109b36b2d6e4c62bc3e405e6ae05dad4e | 4bcaca5dc83d49803f72b7b5920b75b6e7d9de2d | /stage0/src/Init/Data/UInt.lean | e99f6e08d4a0b81e266cdb370854e2caf454a4eb | [
"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 | 15,146 | 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.Fin.Basic
import Init.System.Platform
open Nat
@[extern "lean_uint8_of_nat"]
def UInt8.ofNat (n : @& Nat) : UInt8 := ⟨Fin.ofNat n... |
b9f29d11a44f8747a9e1245f7079134d8c025d62 | 624f6f2ae8b3b1adc5f8f67a365c51d5126be45a | /stage0/src/Init/Lean/Compiler/ExternAttr.lean | 015c4ba0ddb28dabaf2b2ec0256f5d831f148cba | [
"Apache-2.0"
] | permissive | mhuisi/lean4 | 28d35a4febc2e251c7f05492e13f3b05d6f9b7af | dda44bc47f3e5d024508060dac2bcb59fd12e4c0 | refs/heads/master | 1,621,225,489,283 | 1,585,142,689,000 | 1,585,142,689,000 | 250,590,438 | 0 | 2 | Apache-2.0 | 1,602,443,220,000 | 1,585,327,814,000 | C | UTF-8 | Lean | false | false | 6,063 | 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.Option.Basic
import Init.Lean.Expr
import Init.Lean.Environment
import Init.Lean.Attributes
import Init.Lean.ProjFns
namespace Lea... |
8abfdca934cdad41cce7800eadbdf02d7bc1e451 | fa02ed5a3c9c0adee3c26887a16855e7841c668b | /src/data/complex/basic.lean | dd9fc846974addc4e324546fe8ae9312eaace685 | [
"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 | 27,167 | lean | /-
Copyright (c) 2017 Kevin Buzzard. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Kevin Buzzard, Mario Carneiro
-/
import data.real.sqrt
/-!
# The complex numbers
The complex numbers are modelled as ℝ^2 in the obvious way and it is shown that they form a field
of c... |
364e822882c785a13991383c31e11841930de9b6 | 302c785c90d40ad3d6be43d33bc6a558354cc2cf | /src/topology/metric_space/completion.lean | a84c89f560a451928af7e3f18b46e96693237001 | [
"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 | 8,603 | lean | /-
Copyright (c) 2019 Sébastien Gouëzel. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Sébastien Gouëzel
-/
import topology.uniform_space.completion
import topology.metric_space.isometry
/-!
# The completion of a metric space
Completion of uniform spaces are already... |
25d53b7515a870795479c5a85b75065d4d4267a3 | 0845ae2ca02071debcfd4ac24be871236c01784f | /tests/compiler/append.lean | 5bb5f22ce456511043d15e80cf422c66403202cb | [
"Apache-2.0"
] | permissive | GaloisInc/lean4 | 74c267eb0e900bfaa23df8de86039483ecbd60b7 | 228ddd5fdcd98dd4e9c009f425284e86917938aa | refs/heads/master | 1,643,131,356,301 | 1,562,715,572,000 | 1,562,715,572,000 | 192,390,898 | 0 | 0 | null | 1,560,792,750,000 | 1,560,792,749,000 | null | UTF-8 | Lean | false | false | 161 | lean | def main (xs : List String) : IO Unit :=
let ys1 := List.replicate 1000000 1 in
let ys2 := List.replicate 1000000 2 in
IO.println (toString (ys1 ++ ys2).length)
|
606934bdea0b708837e594405a1fb511a9f96c88 | bbecf0f1968d1fba4124103e4f6b55251d08e9c4 | /src/topology/metric_space/gluing.lean | 7641c10b4551bb1dcb82c8e09eeec144a6a63425 | [
"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 | 23,733 | lean | /-
Copyright (c) 2019 Sébastien Gouëzel. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Sébastien Gouëzel
-/
import topology.metric_space.isometry
/-!
# Metric space gluing
Gluing two metric spaces along a common subset. Formally, we are given
```
Φ
Z ---> X
... |
5f1b2b186aa96dabb32d062921165377edfc9408 | 8cae430f0a71442d02dbb1cbb14073b31048e4b0 | /src/category_theory/preadditive/left_exact.lean | a2c9a6111c2ca403fca5d2fb4845ecd82700ca0b | [
"Apache-2.0"
] | permissive | leanprover-community/mathlib | 56a2cadd17ac88caf4ece0a775932fa26327ba0e | 442a83d738cb208d3600056c489be16900ba701d | refs/heads/master | 1,693,584,102,358 | 1,693,471,902,000 | 1,693,471,902,000 | 97,922,418 | 1,595 | 352 | Apache-2.0 | 1,694,693,445,000 | 1,500,624,130,000 | Lean | UTF-8 | Lean | false | false | 10,489 | lean | /-
Copyright (c) 2022 Jakob von Raumer. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Markus Himmel, Jakob von Raumer
-/
import category_theory.limits.constructions.finite_products_of_binary_products
import category_theory.limits.preserves.shapes.kernels
import catego... |
235ef865bf0ff482826dc7534c850f21f21f24b0 | 9dc8cecdf3c4634764a18254e94d43da07142918 | /src/topology/homeomorph.lean | 1bf50e868bb41864f5fe8f1f366d629886ce7c65 | [
"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,940 | 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, Patrick Massot, Sébastien Gouëzel, Zhouhang Zhou, Reid Barton
-/
import logic.equiv.fin
import topology.dense_embedding
import topology.support
/-!
# Homeomorphisms
This... |
e0c246b85185cf1e2d704707a43ce1ef068a32f3 | 4d5b7055cbdeb6cba319e752a30efb69c82b0366 | /src/exercises_sources/friday/manifolds.lean | 500d5e9bdff30b092e1139b616224243b8c6784e | [] | no_license | jipsen/lftcm2020 | f214f06cef58527e1bec605cc1c5d1f61a2fd951 | d91768875dc3c54ec28debb6c2c63384a38d537b | refs/heads/master | 1,669,013,666,809 | 1,594,928,693,000 | 1,594,928,693,000 | 280,284,719 | 0 | 0 | null | 1,594,944,305,000 | 1,594,944,304,000 | null | UTF-8 | Lean | false | false | 22,751 | lean | import for_mathlib.manifolds
noncomputable theory
open_locale manifold classical big_operators
open set
universe u
/-! ### Local homeomorphisms
Local homeomorphisms are globally defined maps with a globally defined "inverse", but the only
relevant set is the *source*, which should be mapped homeomorphically to th... |
8fe6095d97959167f2f9814de944996a33df3fe6 | 6432ea7a083ff6ba21ea17af9ee47b9c371760f7 | /src/Init/Data.lean | b2e07c03c8122ab11b92dcbe9641758d5005971e | [
"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 | 761 | 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.Data.Basic
import Init.Data.Nat
import Init.Data.Char
import Init.Data.String
import Init.Data.List
import Init.Data.Int
import Init.Dat... |
7bb7467ad78272e6b46c4b7e20020c442eea5e30 | f3a5af2927397cf346ec0e24312bfff077f00425 | /src/game/world8/junk.lean | 4aa373e8cc11184ee12309a762f15692bffbad32 | [
"Apache-2.0"
] | permissive | ImperialCollegeLondon/natural_number_game | 05c39e1586408cfb563d1a12e1085a90726ab655 | f29b6c2884299fc63fdfc81ae5d7daaa3219f9fd | refs/heads/master | 1,688,570,964,990 | 1,636,908,242,000 | 1,636,908,242,000 | 195,403,790 | 277 | 84 | Apache-2.0 | 1,694,547,955,000 | 1,562,328,792,000 | Lean | UTF-8 | Lean | false | false | 413 | lean | import game.world8.level6
def ne_iff_imp_false (a b : mynat) : a ≠ b ↔ ((a = b) → false) := iff.rfl -- hide
/- Axiom : iff_imp_false (a b : mynat) :
a ≠ b ↔ ((a = b) → false)
-/
/-
* `ne_iff_imp_false (a b : mynat) : (a ≠ b) ↔ ((a = b) → false)
This means that `rw ne_iff_imp_false` will change all our `≠` to implic... |
9feb532395ee852f52f97495d11cdb296b6455e7 | 6432ea7a083ff6ba21ea17af9ee47b9c371760f7 | /tests/lean/run/incmd.lean | d8eebb440af41d79f4554d7686ebfc6bd64b92eb | [
"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 | 223 | lean |
variable {α : Type} in
def f : α → α :=
fun x => x
#check @f
variable {α : Type} {β : Type} in
variable (h : α → α) in
set_option pp.raw.maxDepth 1000 in
def g : α → β → α :=
fun x _ => h x
#check @g
|
e655551f10a4ded011a30138b83688e9e922c394 | ad3e8f15221a986da27c99f371922c0b3f5792b6 | /src/week07/solutions/e01_meta.lean | 30c27050cd14178454db4137f8bb1d6868840543 | [] | no_license | VArtem/lean-itmo | a0e1424c8cc4c2de2ac85ab6fd4a12d80e9b85f1 | dc44cd06f9f5b984d051831b3aaa7364e64c2dc4 | refs/heads/main | 1,683,761,214,467 | 1,622,821,295,000 | 1,622,821,295,000 | 357,236,048 | 12 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 5,482 | lean | import tactic
import data.equiv.list
-- Упражнения на метапрограммирование адаптированы из видеокурса конференции lftcm2020
-- https://www.youtube.com/watch?v=o6oUjcE6Nz4&list=PLlF-CfQhukNlxexiNJErGJd2dte_J1t1N&index=19
-- Все вычисления, что мы раньше рассматривали в Lean, обязательно должны завершаться
def f : ℕ →... |
f5ff35cd3d5935fe9dd08a966e5dd0a917b2ace8 | 6432ea7a083ff6ba21ea17af9ee47b9c371760f7 | /tests/lean/run/944.lean | 31ba45504d215574ba871418a73c8e4bb85dbf3a | [
"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 | 806 | lean | import Lean
def f1 (x : Nat) : Except String Nat :=
if x > 0 then
.ok x
else
.error "argument is zero"
namespace Lean.Elab
open Lsp
def identOf : Info → Option (RefIdent × Bool)
| .ofTermInfo ti => match ti.expr with
| .const n .. => some (.const n, ti.isBinder)
| .fvar id .. => some (.fvar id,... |
b5daaa46ff808205657bd491c242da1c8270635e | ae1e94c332e17c7dc7051ce976d5a9eebe7ab8a5 | /tests/lean/run/newfrontend5.lean | 61f60d6977456c6377a0cf1e1dcbcac97b10fb61 | [
"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 | 1,952 | lean |
def foo {α} (f : {β : Type _} → β → β) (a : α) : α :=
f a
#check_failure let g := id; foo g true -- fails
/-
Expands to
```
let g : ?γ → ?γ := @id ?γ;
@foo ?α (fun (β : Sort ?u) => g) true
```
Unification constraint
```
?γ → ?γ =?= β → β
```
fails because `β` is not in the scope of `?γ`
Error message can be impr... |
283fdbacb7010508f82e1918f6df18f77ff8e9b8 | b7f22e51856f4989b970961f794f1c435f9b8f78 | /tests/lean/bad_quoted_symbol.lean | 7723dd2c6adb366b32a55609552fdd4c63ae8175 | [
"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 | 132 | lean | notation a ` \/ ` b := a ∨ b
notation a `1\/` b := a ∨ b
notation a ` \ / ` b := a ∨ b
notation a ` ` b := a ∨ b
notation `
|
ff229c27f204abfd0284e37f12325af4de743fe6 | 6dc0c8ce7a76229dd81e73ed4474f15f88a9e294 | /tests/lean/modBug.lean | 8a069bfdf10e0b2bb862db2f93adbbdd446dcfb8 | [
"Apache-2.0"
] | permissive | williamdemeo/lean4 | 72161c58fe65c3ad955d6a3050bb7d37c04c0d54 | 6d00fcf1d6d873e195f9220c668ef9c58e9c4a35 | refs/heads/master | 1,678,305,356,877 | 1,614,708,995,000 | 1,614,708,995,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 62 | lean | theorem proofOfFalse : False := Nat.zeroNeOne (Nat.modZero 1)
|
dbc62d16b0519424e57c82271583556d31d04c85 | 80cc5bf14c8ea85ff340d1d747a127dcadeb966f | /src/tactic/linarith/preprocessing.lean | a6cc77a684d2b2ad83494e98754f0926cbf2121c | [
"Apache-2.0"
] | permissive | lacker/mathlib | f2439c743c4f8eb413ec589430c82d0f73b2d539 | ddf7563ac69d42cfa4a1bfe41db1fed521bd795f | refs/heads/master | 1,671,948,326,773 | 1,601,479,268,000 | 1,601,479,268,000 | 298,686,743 | 0 | 0 | Apache-2.0 | 1,601,070,794,000 | 1,601,070,794,000 | null | UTF-8 | Lean | false | false | 12,208 | lean | /-
Copyright (c) 2020 Robert Y. Lewis. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Robert Y. Lewis
-/
import tactic.linarith.datatypes
import tactic.zify
import tactic.cancel_denoms
/-!
# Linarith preprocessing
This file contains methods used to preprocess inputs... |
4d3782123bd0d7691198711a6744101db26c4eda | 80162757f50b09d3cad5564907e4c9b00742e045 | /topology.lean | d681a2eb0eb87e23f1319344fee0e598f32da154 | [] | no_license | EdAyers/edlib | cc30d0a54fed347a85b6df6045f68e6b48bc71a3 | 78b8c5d91f023f939c102837d748868e2f3ed27d | refs/heads/master | 1,586,459,758,216 | 1,571,322,179,000 | 1,571,322,179,000 | 160,538,917 | 2 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 6,022 | lean |
import .filter
open set filter lattice
universes u v w
class topology (α : Type u) :=
(𝒪 : set (set α))
(top : univ ∈ 𝒪)
(i : ∀ U V ∈ 𝒪, U ∩ V ∈ 𝒪)
(U : ∀ ℱ ⊆ 𝒪, ⋃₀ ℱ ∈ 𝒪)
namespace topology
variables {X : Type u} [topology X]
variables {Y : Type u} [topology Y]
lemma ext {X : Type u} : ∀ {τ₁ τ₂ : topology ... |
6ab6ea43cd4b5fa3239ad71289794537878289c4 | 63abd62053d479eae5abf4951554e1064a4c45b4 | /archive/imo/imo1972_b2.lean | addd0b18887b1a9ed2822ea0561c37051857c89f | [
"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 | 4,438 | lean | /-
Copyright (c) 2020 Ruben Van de Velde, Stanislas Polu. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Ruben Van de Velde, Stanislas Polu
-/
import data.real.basic
import data.set.basic
import analysis.normed_space.basic
/-- IMO 1972 B2
Problem: `f` and `g` are re... |
8bad1a5867cbcd7e968fc6c762a6017e1511d193 | 8cae430f0a71442d02dbb1cbb14073b31048e4b0 | /src/linear_algebra/matrix/diagonal.lean | 107f7f51f388fc2532fa9f7361bb298012137861 | [
"Apache-2.0"
] | permissive | leanprover-community/mathlib | 56a2cadd17ac88caf4ece0a775932fa26327ba0e | 442a83d738cb208d3600056c489be16900ba701d | refs/heads/master | 1,693,584,102,358 | 1,693,471,902,000 | 1,693,471,902,000 | 97,922,418 | 1,595 | 352 | Apache-2.0 | 1,694,693,445,000 | 1,500,624,130,000 | Lean | UTF-8 | Lean | false | false | 3,102 | 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
import linear_algebra.free_module.rank
/-!
# Diagonal matrices
> THIS FILE IS SYNCHRON... |
6bab65b4ff526e4aaf9a9b9b2680717a248aa461 | 618003631150032a5676f229d13a079ac875ff77 | /src/data/lazy_list2.lean | 8727b52f34522ee20fc1dc8457065537e7752fdc | [
"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 | 2,446 | lean | /-
Copyright (c) 2018 Simon Hudon. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Simon Hudon
Traversable instance for lazy_lists.
-/
import control.traversable.equiv
import control.traversable.instances
import data.lazy_list
universes u
namespace thunk
/-- Creates... |
079ab7725cac767b764521a8169ec53795255342 | 82e44445c70db0f03e30d7be725775f122d72f3e | /src/algebra/category/Group/Z_Module_equivalence.lean | 36431195b1a23a7fb2d3715457d0780ba71849a0 | [
"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 | 1,444 | 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.category.Module.basic
/-!
The forgetful functor from ℤ-modules to additive commutative groups is
an equivalence of categories.
TODO:
either use this ... |
76f461a39e3461a46be77fb6cdc13887c4c23bb2 | 6432ea7a083ff6ba21ea17af9ee47b9c371760f7 | /tests/lean/autoBoundImplicits1.lean | 1403b2a093f1ca5b75fc25569c75099e77c3bfd9 | [
"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,342 | lean | def myid (a : α) := a -- works
set_option relaxedAutoImplicit false
#check myid 10
#check myid true
theorem ex1 (a : α) : myid a = a := rfl
def cnst (b : β) : α → β := fun _ => b -- works
theorem ex2 (b : β) (a : α) : cnst b a = b := rfl
def Vec (α : Type) (n : Nat) := { a : Array α // a.size = n }
def mkVec : Vec... |
0c4681a3455d387a85fa156ae83cb1cace44c82e | 7c92a46ce39266c13607ecdef7f228688f237182 | /src/for_mathlib/punit_instances.lean | 0665447bdbcc948259a6d595c50431a23eec19e5 | [
"Apache-2.0"
] | permissive | asym57/lean-perfectoid-spaces | 3217d01f6ddc0d13e9fb68651749469750420767 | 359187b429f254a946218af4411d45f08705c83e | refs/heads/master | 1,609,457,937,251 | 1,577,542,616,000 | 1,577,542,675,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 577 | lean | import algebra.punit_instances
import topology.algebra.ring
import for_mathlib.topological_groups
instance : topological_add_monoid unit :=
{ continuous_add := continuous_of_discrete_topology }
instance : topological_ring unit :=
{ continuous_neg := continuous_of_discrete_topology }
open_locale classical
lemma s... |
75a5a50171d14c4c5ab625b510e07a401f47962a | 8cae430f0a71442d02dbb1cbb14073b31048e4b0 | /src/analysis/convex/between.lean | 6d7e41fd38dffedbda8b2b6f271c96087c8a6d29 | [
"Apache-2.0"
] | permissive | leanprover-community/mathlib | 56a2cadd17ac88caf4ece0a775932fa26327ba0e | 442a83d738cb208d3600056c489be16900ba701d | refs/heads/master | 1,693,584,102,358 | 1,693,471,902,000 | 1,693,471,902,000 | 97,922,418 | 1,595 | 352 | Apache-2.0 | 1,694,693,445,000 | 1,500,624,130,000 | Lean | UTF-8 | Lean | false | false | 33,325 | lean | /-
Copyright (c) 2022 Joseph Myers. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Joseph Myers
-/
import data.set.intervals.group
import analysis.convex.segment
import linear_algebra.affine_space.finite_dimensional
import tactic.field_simp
import algebra.char_p.invert... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.