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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
060848bc7cce656e9e537e2d9d0b6e5bf243232b | 74addaa0e41490cbaf2abd313a764c96df57b05d | /Mathlib/algebra/category/CommRing/basic.lean | 603d2557b695ee9c3fa88a4e4fe6b6744faec1a5 | [] | 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 | 10,893 | lean | /-
Copyright (c) 2018 Scott Morrison. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Scott Morrison, Johannes Hölzl, Yury Kudryashov
-/
import Mathlib.PrePort
import Mathlib.Lean3Lib.init.default
import Mathlib.algebra.category.Group.basic
import Mathlib.data.equiv.rin... |
fd15ec6dae5d681d0a9ee6b1ef466c8a54a23419 | ebf7140a9ea507409ff4c994124fa36e79b4ae35 | /src/solutions/thursday/groups_rings_fields.lean | 10488f9e245db8861082fbe18b4fe21538f0b28f | [] | no_license | fundou/lftcm2020 | 3e88d58a92755ea5dd49f19c36239c35286ecf5e | 99d11bf3bcd71ffeaef0250caa08ecc46e69b55b | refs/heads/master | 1,685,610,799,304 | 1,624,070,416,000 | 1,624,070,416,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 12,109 | lean | import linear_algebra.finite_dimensional
import ring_theory.algebraic
import data.zmod.basic
import data.real.basic
import tactic
/-!
```
____
/ ___|_ __ ___ _ _ _ __ ___
| | _| '__/ _ \| | | | '_ \/ __|
| |_| | | | (_) | |_| | |_) \__ \_
\____|_| \___/ \__,_| .__/|___( )
|_| |/
... |
525a5d4570a940f2f4edbeca2b38e2de8dc7f4e1 | 8cae430f0a71442d02dbb1cbb14073b31048e4b0 | /src/data/zmod/parity.lean | c83d693c6c394d4d7c8916d7a9a2bbe5ffc2849c | [
"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 | 895 | lean | /-
Copyright (c) 2020 Kyle Miller. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Kyle Miller
-/
import data.nat.parity
import data.zmod.basic
/-!
# Relating parity to natural numbers mod 2
> THIS FILE IS SYNCHRONIZED WITH MATHLIB4.
> Any changes to this file require ... |
900ace7746fe503f41df8e370c69cbd5106cd62f | fa02ed5a3c9c0adee3c26887a16855e7841c668b | /archive/arithcc.lean | d0f98c07992f250bcc2113ed98ee8293104a69c3 | [
"Apache-2.0"
] | permissive | jjgarzella/mathlib | 96a345378c4e0bf26cf604aed84f90329e4896a2 | 395d8716c3ad03747059d482090e2bb97db612c8 | refs/heads/master | 1,686,480,124,379 | 1,625,163,323,000 | 1,625,163,323,000 | 281,190,421 | 2 | 0 | Apache-2.0 | 1,595,268,170,000 | 1,595,268,169,000 | null | UTF-8 | Lean | false | false | 12,198 | lean | /-
Copyright (c) 2020 Xi Wang. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Xi Wang
-/
import tactic.basic
/-!
# A compiler for arithmetic expressions
A formalization of the correctness of a compiler from arithmetic expressions to machine language
described by McC... |
01b17c7aeeaf7818f2f9f3ff70753f5055a4ae13 | 82b86ba2ae0d5aed0f01f49c46db5afec0eb2bd7 | /src/Std/Data/RBMap.lean | 7c6d06c7b0150c8a4636eb768c8f23e8277f1626 | [
"Apache-2.0"
] | permissive | banksonian/lean4 | 3a2e6b0f1eb63aa56ff95b8d07b2f851072d54dc | 78da6b3aa2840693eea354a41e89fc5b212a5011 | refs/heads/master | 1,673,703,624,165 | 1,605,123,551,000 | 1,605,123,551,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 12,635 | 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
-/
namespace Std
universes u v w w'
inductive Rbcolor
| red | black
inductive RBNode (α : Type u) (β : α → Type v)
| leaf ... |
a154b51070cf38319c2e44383687edb55d3abc15 | 4fa161becb8ce7378a709f5992a594764699e268 | /src/linear_algebra/multilinear.lean | 584f37c3bd76cc4932cc9629c5a7b0d99f8e5a9d | [
"Apache-2.0"
] | permissive | laughinggas/mathlib | e4aa4565ae34e46e834434284cb26bd9d67bc373 | 86dcd5cda7a5017c8b3c8876c89a510a19d49aad | refs/heads/master | 1,669,496,232,688 | 1,592,831,995,000 | 1,592,831,995,000 | 274,155,979 | 0 | 0 | Apache-2.0 | 1,592,835,190,000 | 1,592,835,189,000 | null | UTF-8 | Lean | false | false | 33,828 | lean | /-
Copyright (c) 2020 Sébastien Gouëzel. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Sébastien Gouëzel
-/
import linear_algebra.basic
import tactic.omega
import data.fintype.card
/-!
# Multilinear maps
We define multilinear maps as maps from `Π(i : ι), M₁ i` to `M... |
cfc79915b0340987f684520ca587d6bf35fd007f | 8cae430f0a71442d02dbb1cbb14073b31048e4b0 | /src/algebra/homology/homotopy_category.lean | 08eed788b3823275dcc5a82f7944999002c515e7 | [
"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,678 | lean | /-
Copyright (c) 2021 Scott Morrison. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Scott Morrison
-/
import algebra.homology.homotopy
import category_theory.quotient
/-!
# The homotopy category
> THIS FILE IS SYNCHRONIZED WITH MATHLIB4.
> Any changes to this file r... |
a2fb81be0d34d17093df3ee2749417328da4489e | 94e33a31faa76775069b071adea97e86e218a8ee | /src/topology/category/Profinite/cofiltered_limit.lean | 9ba667dde8480b63dcca2c084cc0e33bd5b3b106 | [
"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,362 | lean | /-
Copyright (c) 2021 Adam Topaz. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Adam Topaz
-/
import topology.category.Profinite
import topology.locally_constant.basic
import topology.discrete_quotient
/-!
# Cofiltered limits of profinite sets.
This file contains so... |
1e75d0f2546d4f730a7da54f6a2b95aa73b4951d | 8cae430f0a71442d02dbb1cbb14073b31048e4b0 | /src/linear_algebra/matrix/dual.lean | 4d112dd3c56d3715015b42ba4157ac62dabd8c7b | [
"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,704 | 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.dual
import linear_algebra.matrix.to_lin
/-!
# Dual space, linear maps and matrices.
> THIS FILE IS S... |
24e726628bbb48738319992292f1e86e2b99fbad | 8cae430f0a71442d02dbb1cbb14073b31048e4b0 | /src/order/pfilter.lean | e9ddf29995b33c68f2c109399c1aa5bbcab551ae | [
"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,239 | lean | /-
Copyright (c) 2020 Mathieu Guay-Paquet. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Mathieu Guay-Paquet
-/
import order.ideal
/-!
# Order filters
> THIS FILE IS SYNCHRONIZED WITH MATHLIB4.
> Any changes to this file require a corresponding PR to mathlib4.
## M... |
1dd94b1f2db52860ca69c6ce6fe420d5e3d61c74 | e6b8240a90527fd55d42d0ec6649253d5d0bd414 | /src/analysis/complex/polynomial.lean | 840303db58e1d439051af79dba209035baa00d77 | [
"Apache-2.0"
] | permissive | mattearnshaw/mathlib | ac90f9fb8168aa642223bea3ffd0286b0cfde44f | d8dc1445cf8a8c74f8df60b9f7a1f5cf10946666 | refs/heads/master | 1,606,308,351,137 | 1,576,594,130,000 | 1,576,594,130,000 | 228,666,195 | 0 | 0 | Apache-2.0 | 1,576,603,094,000 | 1,576,603,093,000 | null | UTF-8 | Lean | false | false | 6,022 | 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.polynomial topology.algebra.polynomial analysis.complex.exponential
open complex polynomial metric filter is_absolute_value set lattice
namespace complex
le... |
089d700bd08b41c3ea9c7e6de34aa5f29890b512 | b24beef0a8b1a8e92be756a25aa78e24908b2b14 | /src/solutions/thursday/morning/order.lean | 2b6541fc26d1334253d759e30a519cd818207186 | [] | permissive | ChristopheMargerin/lftcm2020 | 14967e74cbe92a7b61d32d8130f32cfa09b5172b | 589180047fa4fdfb3179636db58b0b0320549871 | refs/heads/master | 1,668,536,269,632 | 1,594,891,664,000 | 1,594,891,664,000 | 280,112,730 | 0 | 0 | MIT | 1,594,891,963,000 | 1,594,891,962,000 | null | UTF-8 | Lean | false | false | 18,801 | lean | /-
# Orders
Groups, rings, fields, modules etc are in the "algebra hierarchy".
Metric and topological spaces are in the "topology hierarchy".
The other important hierarchy is the "order hierarchy".
It starts with partially ordered sets, and then goes on to lattices.
Because I like algebra, let's demonstrate the or... |
80783a6c13f2b49483f26fa5c471d041b61b5a81 | cf39355caa609c0f33405126beee2739aa3cb77e | /tests/lean/notation.lean | 31f082e1d65a1766aa3a8d42cf5b1d42cbae499b | [
"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 | 384 | lean | --
constant b : nat
#check b + b + b
#check true ∧ false ∧ true
#check (true ∧ false) ∧ true
#check (2:nat) + (2 + 2)
#check (2 + 2) + (2:nat)
#check (1:nat) = (2 + 3)*2
#check (2:nat) + 3 * 2 = 3 * 2 + 2
#check (true ∨ false) = (true ∨ false) ∧ true
#check true ∧ (false ∨ true)
constant A : Type
constant a : A
notatio... |
d0b05dda9a68140ba2bc89497e007045a9c9eb0f | 01ae0d022f2e2fefdaaa898938c1ac1fbce3b3ab | /categories/universal/continuous.lean | 4d7d6be8e739daf6b846309ec7c400b5880248da | [] | no_license | PatrickMassot/lean-category-theory | 0f56a83464396a253c28a42dece16c93baf8ad74 | ef239978e91f2e1c3b8e88b6e9c64c155dc56c99 | refs/heads/master | 1,629,739,187,316 | 1,512,422,659,000 | 1,512,422,659,000 | 113,098,786 | 0 | 0 | null | 1,512,424,022,000 | 1,512,424,022,000 | null | UTF-8 | Lean | false | false | 588 | lean | -- Copyright (c) 2017 Scott Morrison. All rights reserved.
-- Released under Apache 2.0 license as described in the file LICENSE.
-- Authors: Scott Morrison
import .universal
open categories
open categories.functor
open categories.initial
namespace categories.universal
structure Continuous { C D : Category } ( F : ... |
98fa1f6d21d924631ce74ffd65add17ab4c3a265 | 94e33a31faa76775069b071adea97e86e218a8ee | /src/data/mv_polynomial/equiv.lean | c52ecf4955f05dc3fd6b2122f108e56a0796240e | [
"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 | 18,795 | lean | /-
Copyright (c) 2017 Johannes Hölzl. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Johannes Hölzl, Johan Commelin, Mario Carneiro
-/
import data.mv_polynomial.rename
import data.polynomial.algebra_map
import data.polynomial.lifts
import data.mv_polynomial.variables
... |
62157ca15b6b9f4d41c5ef7b2c031b439faa69a1 | 6432ea7a083ff6ba21ea17af9ee47b9c371760f7 | /src/Lean/Compiler/BorrowedAnnotation.lean | 4800e18125a10792ed31e51ab99d2d16f86ae7f5 | [
"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 | 385 | lean | /-
Copyright (c) 2020 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Leonardo de Moura
-/
import Lean.Expr
namespace Lean
def markBorrowed (e : Expr) : Expr :=
mkAnnotation `borrowed e
@[export lean_is_marked_borrowed]
def isMarkedBorrowed (e... |
8fc4ec50eccb881debf62c1de5b6c011f4a9958d | 63abd62053d479eae5abf4951554e1064a4c45b4 | /src/topology/uniform_space/uniform_embedding.lean | ecec5cd87a2ad0e1885e3fd591750d18364077d3 | [
"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 | 20,001 | 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, Sébastien Gouëzel, Patrick Massot
-/
import topology.uniform_space.cauchy
import topology.uniform_space.separation
import topology.dense_embedding
/-!
# Uniform embedd... |
0402775354dfb5ab6e525e20f738ed9949afdf51 | 74addaa0e41490cbaf2abd313a764c96df57b05d | /Mathlib/tactic/clear.lean | abf7211a94fc94e75adf77b9befd872ac7a8c6cd | [] | no_license | AurelienSaue/Mathlib4_auto | f538cfd0980f65a6361eadea39e6fc639e9dae14 | 590df64109b08190abe22358fabc3eae000943f2 | refs/heads/master | 1,683,906,849,776 | 1,622,564,669,000 | 1,622,564,669,000 | 371,723,747 | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 2,446 | lean | /-
Copyright (c) 2020 Jannis Limperg. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Author: Jannis Limperg
-/
import Mathlib.PrePort
import Mathlib.Lean3Lib.init.default
import Mathlib.tactic.core
import Mathlib.PostPort
namespace Mathlib
/-!
# Better `clear` tactics
We def... |
9059a48f6f100a6ca40344250447911ec7d48bcc | 75db7e3219bba2fbf41bf5b905f34fcb3c6ca3f2 | /hott/function.hlean | 5b60eac2661961ed02b9d0842b3b45445c2c07da | [
"Apache-2.0"
] | permissive | jroesch/lean | 30ef0860fa905d35b9ad6f76de1a4f65c9af6871 | 3de4ec1a6ce9a960feb2a48eeea8b53246fa34f2 | refs/heads/master | 1,586,090,835,348 | 1,455,142,203,000 | 1,455,142,277,000 | 51,536,958 | 1 | 0 | null | 1,455,215,811,000 | 1,455,215,811,000 | null | UTF-8 | Lean | false | false | 9,394 | hlean | /-
Copyright (c) 2015 Floris van Doorn. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Author: Floris van Doorn
Ported from Coq HoTT
Theorems about embeddings and surjections
-/
import hit.trunc types.equiv cubical.square
open equiv sigma sigma.ops eq trunc is_trunc pi is_eq... |
3e8134a3f15fd793c01343044604cbcb7780930d | 57aec6ee746bc7e3a3dd5e767e53bd95beb82f6d | /tests/lean/run/tactic.lean | ec0e3df36f96fee474d7add2186bfbe3ccc350cc | [
"Apache-2.0"
] | permissive | collares/lean4 | 861a9269c4592bce49b71059e232ff0bfe4594cc | 52a4f535d853a2c7c7eea5fee8a4fa04c682c1ee | refs/heads/master | 1,691,419,031,324 | 1,618,678,138,000 | 1,618,678,138,000 | 358,989,750 | 0 | 0 | Apache-2.0 | 1,618,696,333,000 | 1,618,696,333,000 | null | UTF-8 | Lean | false | false | 463 | lean | import Lean.Meta
open Lean
open Lean.Meta
axiom simple : forall {p q : Prop}, p → q → p
def print (msg : MessageData) : MetaM Unit :=
trace[Meta.Tactic] msg
def tst1 : MetaM Unit := do
let cinfo ← getConstInfo `simple
let mvar ← mkFreshExprSyntheticOpaqueMVar cinfo.type
let mvarId := mvar.mvarId!
let (_, mvarId) ... |
d7d7a2f2d5470af04f45617b2c5d20c75ef96ea7 | 3dc4623269159d02a444fe898d33e8c7e7e9461b | /.github/workflows/group-representation/matrix_representation.lean | f3c84f44b799421a52f8d9bd5c39e26cfd4293d3 | [] | 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 | 2,524 | lean | import group_representation
import linear_algebra.determinant
import linear_algebra.matrix
open linear_map
open MY_TEST ------------------- cvlasse de matrice n'est pas opérationnelle !
universe variables u v w
open matrix
variables {G : Type u} {R : Type v} [group G] [comm_ring R]
variables {n : Type u}... |
f091afb8cbf159c2bbbd129a9b7ae8725a9b59f2 | 74addaa0e41490cbaf2abd313a764c96df57b05d | /Mathlib/data/pfunctor/multivariate/M.lean | 9e86ec653c0150b1d2be50641f444863d1aeeec7 | [] | 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 | 10,691 | lean | /-
Copyright (c) 2018 Jeremy Avigad. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Author: Jeremy Avigad, Mario Carneiro, Simon Hudon
-/
import Mathlib.PrePort
import Mathlib.Lean3Lib.init.default
import Mathlib.data.pfunctor.univariate.default
import Mathlib.data.pfunctor.mul... |
285c103792232296680b1e831458e9687e66208c | 6432ea7a083ff6ba21ea17af9ee47b9c371760f7 | /tests/lean/run/precDSL.lean | a411ff49937e5f97452f0ec84fe39ef3ecc60d30 | [
"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 | 590 | lean | syntax:max "fn " ident "=>" term : term
syntax:(lead+1) "function " ident "=>" term : term
macro_rules
| `(fn $x:ident => $b) => `(fun $x:ident => $b)
| `(function $x:ident => $b) => `(fun $x:ident => $b)
#check id fn x => x + 1
#check id function x => x + 1
macro "addPrec" : prec => `(prec| 65)
macro "mulPrec" ... |
b2a0b744dc0d96c5571b947d9c92a647797020e1 | df561f413cfe0a88b1056655515399c546ff32a5 | /4-power-world/l7.lean | f1a0e297ef81d41b56913f380c58eb5d036c3d54 | [] | no_license | nicholaspun/natural-number-game-solutions | 31d5158415c6f582694680044c5c6469032c2a06 | 1e2aed86d2e76a3f4a275c6d99e795ad30cf6df0 | refs/heads/main | 1,675,123,625,012 | 1,607,633,548,000 | 1,607,633,548,000 | 318,933,860 | 3 | 1 | null | null | null | null | UTF-8 | Lean | false | false | 199 | lean | lemma pow_pow (a m n : mynat) : (a ^ m) ^ n = a ^ (m * n) :=
begin
induction n with k Pk,
rw mul_zero,
rw pow_zero a,
exact pow_zero (a^m),
rw pow_succ,
rw Pk,
rw ← pow_add,
rw mul_succ,
refl,
end |
4af63d46d234228a32d92c8f6a31d594f452f4a8 | 8cae430f0a71442d02dbb1cbb14073b31048e4b0 | /src/analysis/convex/strict_convex_between.lean | 0cfcd2f6438489e977a7c45a200c8b4ca3c1dfe2 | [
"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,584 | 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 analysis.convex.between
import analysis.convex.strict_convex_space
/-!
# Betweenness in affine spaces for strictly convex spaces
> THIS FILE IS SYNCHRONIZED WITH... |
df3b181e6f91f53d82ae87471f40c639ea5bd030 | b04a2b9331022307985cb4dee8a75dd804625569 | /catalan.lean | 548a8ae1c992b5a606cb3619b9bc9a4cf3cba1f3 | [] | no_license | tjhance/lean-project | 558de3b6f88b5b12241ec8d0803027a32eaea13f | c00a01e02ae2fee4e90d48bfd8504d2d45fdb43c | refs/heads/master | 1,588,096,917,016 | 1,556,580,095,000 | 1,556,580,106,000 | 175,465,730 | 3 | 1 | null | null | null | null | UTF-8 | Lean | false | false | 75,729 | lean | import project.identities
import tactic.linarith
import tactic.tidy
import data.list
import data.list.basic
import data.int.basic
import tactic.ring
import data.nat.gcd
/- Collaboration between
Travis Hance (thance)
Katherine Cordwell (kcordwell)
-/
/-
Catalan numbers.
In this file we:
- Defin... |
faefafe308fa32c13f042301f6f000f97590bacc | 9dc8cecdf3c4634764a18254e94d43da07142918 | /src/data/rat/meta_defs.lean | 48a20d4bef54dc96fd28d4fe314fde97597b9827 | [
"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 | 5,599 | lean | /-
Copyright (c) 2019 Robert Y. Lewis . All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Robert Y. Lewis
-/
import data.rat.defs
import tactic.core
/-!
# Meta operations on ℚ
This file defines functions for dealing with rational numbers as expressions.
They are not de... |
eee392112a9bdf5efd02aca3076d078977f7e456 | 8cae430f0a71442d02dbb1cbb14073b31048e4b0 | /src/topology/instances/real_vector_space.lean | 6f7575e36dc96e7be27d4c11cffcf44d94c5ee93 | [
"Apache-2.0"
] | permissive | leanprover-community/mathlib | 56a2cadd17ac88caf4ece0a775932fa26327ba0e | 442a83d738cb208d3600056c489be16900ba701d | refs/heads/master | 1,693,584,102,358 | 1,693,471,902,000 | 1,693,471,902,000 | 97,922,418 | 1,595 | 352 | Apache-2.0 | 1,694,693,445,000 | 1,500,624,130,000 | Lean | UTF-8 | Lean | false | false | 2,548 | 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 topology.algebra.module.basic
import topology.instances.rat
/-!
# Continuous additive maps are `ℝ`-linear
> THIS FILE IS SYNCHRONIZED WITH MATHLIB4.
> Any ... |
fa01d0d71ff8bb0d7df25a552d4e6a936b35c031 | 74addaa0e41490cbaf2abd313a764c96df57b05d | /Mathlib/category_theory/limits/small_complete_auto.lean | 9a3ac9b8f6d95e0645162ed988d3727eeaf4d43e | [] | 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,421 | lean | /-
Copyright (c) 2020 Bhavik Mehta. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Author: Bhavik Mehta
-/
import Mathlib.PrePort
import Mathlib.Lean3Lib.init.default
import Mathlib.category_theory.limits.shapes.products
import Mathlib.set_theory.cardinal
import Mathlib.PostPor... |
72d02737cf808f772684f76e27c4be471bdce0e1 | 8cae430f0a71442d02dbb1cbb14073b31048e4b0 | /src/set_theory/game/birthday.lean | 163336f5f2243261f968f17bb5ee3ff375197a41 | [
"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,872 | lean | /-
Copyright (c) 2022 Violeta Hernández Palacios. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Violeta Hernández Palacios
-/
import set_theory.game.ordinal
import set_theory.ordinal.natural_ops
/-!
# Birthdays of games
> THIS FILE IS SYNCHRONIZED WITH MATHLIB4.
> ... |
560036b5afd8bb4a40b7293531b0e49b02d84629 | 74addaa0e41490cbaf2abd313a764c96df57b05d | /Mathlib/data/set/intervals/disjoint_auto.lean | ddf98012f0c4a949d5f8061ddd59659313f387c0 | [] | no_license | AurelienSaue/Mathlib4_auto | f538cfd0980f65a6361eadea39e6fc639e9dae14 | 590df64109b08190abe22358fabc3eae000943f2 | refs/heads/master | 1,683,906,849,776 | 1,622,564,669,000 | 1,622,564,669,000 | 371,723,747 | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 2,261 | 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, Yury Kudryashov
-/
import Mathlib.PrePort
import Mathlib.Lean3Lib.init.default
import Mathlib.data.set.lattice
import Mathlib.PostPort
universes u
namespace Math... |
bd9e049d39159464f04924414a2ed06dc16e276e | 4d2583807a5ac6caaffd3d7a5f646d61ca85d532 | /src/data/finset/lattice.lean | e1d48f4583191de9d030f1cddaaf5aedfa05af1c | [
"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 | 47,686 | lean | /-
Copyright (c) 2018 Mario Carneiro. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Mario Carneiro
-/
import data.finset.fold
import data.finset.option
import data.multiset.lattice
import order.order_dual
import order.complete_lattice
/-!
# Lattice operations on fins... |
da9dca7ea5225b4eb70aa7d2db6340874d28ffa1 | 0845ae2ca02071debcfd4ac24be871236c01784f | /library/init/lean/compiler/ir/compilerm.lean | ae7b5e0ae5b49f6bdcc6148d7be15eb3ccf022f1 | [
"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 | 4,931 | lean | /-
Copyright (c) 2019 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Leonardo de Moura
-/
prelude
import init.control.reader
import init.lean.environment
import init.lean.compiler.ir.basic
import init.lean.compiler.ir.format
namespace Lean
names... |
4bbd43242f2c38c6d4edcfdcf75ba003f2edd0bf | fa02ed5a3c9c0adee3c26887a16855e7841c668b | /src/tactic/converter/old_conv.lean | f48e5bda5becf29500c3814e515e385db92aee5c | [
"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 | 9,283 | 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
Converter monad for building simplifiers.
-/
import control.basic
open tactic
meta structure old_conv_result (α : Type) :=
(val : α) (rhs : expr) (proof : op... |
e3b53a6f7d67e1bd13287f61b7bdc12fe0e1b750 | 618003631150032a5676f229d13a079ac875ff77 | /src/data/nat/multiplicity.lean | 6a667be5e404ef1093707eebf9f635dba4e376c6 | [
"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 | 9,493 | 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.nat.choose
import ring_theory.multiplicity
import data.nat.modeq
import algebra.gcd_domain
/-!
# Natural number multiplicity
This file contains lemmas about... |
2f25b1576e6a1cc517be94131db4555a1e1f907a | bb31430994044506fa42fd667e2d556327e18dfe | /src/algebra/char_zero/lemmas.lean | ea21ced81e1104ad125e8f27fdf6551305bb3813 | [
"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 | 4,936 | lean | /-
Copyright (c) 2014 Mario Carneiro. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Mario Carneiro
-/
import data.nat.cast.field
import algebra.group_power.lemmas
/-!
# Characteristic zero (additional theorems)
> THIS FILE IS SYNCHRONIZED WITH MATHLIB4.
> Any chang... |
1728eb4475ea1b18abb0de7b8fdfdb057c06c870 | 07c6143268cfb72beccd1cc35735d424ebcb187b | /src/data/set/lattice.lean | a2bf918c2c432f57ffc99c01b7f8722060413b01 | [
"Apache-2.0"
] | permissive | khoek/mathlib | bc49a842910af13a3c372748310e86467d1dc766 | aa55f8b50354b3e11ba64792dcb06cccb2d8ee28 | refs/heads/master | 1,588,232,063,837 | 1,587,304,803,000 | 1,587,304,803,000 | 176,688,517 | 0 | 0 | Apache-2.0 | 1,553,070,585,000 | 1,553,070,585,000 | null | UTF-8 | Lean | false | false | 35,789 | lean | /-
Copyright (c) 2014 Jeremy Avigad. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Jeremy Avigad, Leonardo de Moura, Johannes Hölzl, Mario Carneiro
-- QUESTION: can make the first argument in ∀ x ∈ a, ... implicit?
-/
import logic.basic data.set.basic data.equiv.basi... |
eaf4abf5b30f2e2f18d0e3fd824a321e005358a9 | fcf3ffa92a3847189ca669cb18b34ef6b2ec2859 | /src/world8/level8.lean | 6892fc419e210582aaef80a36265e8d1c327fc36 | [
"Apache-2.0"
] | permissive | nomoid/lean-proofs | 4a80a97888699dee42b092b7b959b22d9aa0c066 | b9f03a24623d1a1d111d6c2bbf53c617e2596d6a | refs/heads/master | 1,674,955,317,080 | 1,607,475,706,000 | 1,607,475,706,000 | 314,104,281 | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 1,194 | lean | import mynat.definition
import mynat.add
-- import world2.level1
-- import world2.level3
-- import world6.level8
-- import world7.level1
-- import world8.level4
import world8.level6
namespace mynat
theorem eq_zero_of_add_right_eq_self (a b : mynat) : a + b = a → b = 0 :=
begin [nat_num_game]
intro h,
apply ad... |
d5aad6d5561892cca09b911ed4c6429e55d2e7ca | ba4794a0deca1d2aaa68914cd285d77880907b5c | /src/game/world4/level7.lean | 5e226e729b5038b40a34e25699207d4f3017da34 | [
"Apache-2.0"
] | permissive | ChrisHughes24/natural_number_game | c7c00aa1f6a95004286fd456ed13cf6e113159ce | 9d09925424da9f6275e6cfe427c8bcf12bb0944f | refs/heads/master | 1,600,715,773,528 | 1,573,910,462,000 | 1,573,910,462,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 806 | lean | import game.world4.level6 -- hide
namespace mynat -- hide
/-
# Power World
## Level 7: `pow_pow`
-/
/-
Boss level! What will the collectible be?
-/
/- Lemma
For all naturals $a$, $m$, $n$, we have $(a ^ m) ^ n = a ^ {mn}$.
-/
lemma pow_pow (a m n : mynat) : (a ^ m) ^ n = a ^ (m * n) :=
begin [less_leaky]
inducti... |
794fae4620cf01708570b6f6564599abe8cb1f37 | 5fbbd711f9bfc21ee168f46a4be146603ece8835 | /lean/natural_number_game/multiplication/2.lean | 7c5f83b96b2c18482c244f3b8574282abe3aa0fa | [
"LicenseRef-scancode-warranty-disclaimer"
] | no_license | goedel-gang/maths | 22596f71e3fde9c088e59931f128a3b5efb73a2c | a20a6f6a8ce800427afd595c598a5ad43da1408d | refs/heads/master | 1,623,055,941,960 | 1,621,599,441,000 | 1,621,599,441,000 | 169,335,840 | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 98 | lean | lemma mul_one (m : mynat) : m * 1 = m :=
rw [one_eq_succ_zero, mul_succ, mul_zero],
simp,
end
|
11e7360c779bb3437a0800921406de536482d3c8 | 35677d2df3f081738fa6b08138e03ee36bc33cad | /src/analysis/calculus/specific_functions.lean | 721a950b248f467f49cf3fa84f55fc7a13113fc5 | [
"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 | 7,668 | lean | /-
Copyright (c) 2020 Sébastien Gouëzel. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Sébastien Gouëzel
-/
import analysis.calculus.extend_deriv analysis.calculus.iterated_deriv analysis.complex.exponential
/-!
# Smoothness of specific functions
The real function ... |
ec469488c125766b7871c517969a5060f421fdc6 | b7f22e51856f4989b970961f794f1c435f9b8f78 | /library/data/nat/bquant.lean | ea728e116ece0d0a19a3196e211c3a4b62c64625 | [
"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 | 5,755 | 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
Show that "bounded" quantifiers: (∃x, x < n ∧ P x) and (∀x, x < n → P x)
are decidable when P is decidable.
This module allow us to write if-then-else express... |
5bcd704f0f7cdeaeb06702bdd461c0fedf8528f8 | 592ee40978ac7604005a4e0d35bbc4b467389241 | /Library/generated/mathscheme-lean/MultSemilattice_RingoidSig.lean | cf81e32de6b4766dde59124c23eb07459406ac2c | [] | no_license | ysharoda/Deriving-Definitions | 3e149e6641fae440badd35ac110a0bd705a49ad2 | dfecb27572022de3d4aa702cae8db19957523a59 | refs/heads/master | 1,679,127,857,700 | 1,615,939,007,000 | 1,615,939,007,000 | 229,785,731 | 4 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 10,266 | lean | import init.data.nat.basic
import init.data.fin.basic
import data.vector
import .Prelude
open Staged
open nat
open fin
open vector
section MultSemilattice_RingoidSig
structure MultSemilattice_RingoidSig (A : Type) : Type :=
(times : (A → (A → A)))
(commutative_times : (∀ {x y : A} , (times x y) = (... |
40ec8cf3f58fe30fcf0e4accaa400347a195412a | c45b34bfd44d8607a2e8762c926e3cfaa7436201 | /uexp/src/uexp/rules/aggregateProjectPullUpConstants.lean | ba7aed8bdd75dd0a6f8c59864ef99f2e65626a66 | [
"BSD-2-Clause"
] | permissive | Shamrock-Frost/Cosette | b477c442c07e45082348a145f19ebb35a7f29392 | 24cbc4adebf627f13f5eac878f04ffa20d1209af | refs/heads/master | 1,619,721,304,969 | 1,526,082,841,000 | 1,526,082,841,000 | 121,695,605 | 1 | 0 | null | 1,518,737,210,000 | 1,518,737,210,000 | null | UTF-8 | Lean | false | false | 2,787 | lean | /-
⟦ Γ ⊢ (SELECT (combineGroupByProj PLAIN(uvariable (right⋅emp_job)) (combineGroupByProj PLAIN(uvariable (right⋅emp_empno)) (combineGroupByProj PLAIN(uvariable (right⋅emp_sal)) (SUM(uvariable (right⋅emp_sal)))))) FROM1 (table rel_emp) WHERE (equal (uvariable (right⋅emp_empno)) (constantExpr integer_10)) GROUP BY (c... |
1c813992c235d50b31b48298a3bebbf9defc0e50 | 90bd8c2a52dbaaba588bdab57b155a7ec1532de0 | /src/homotopy_group/homotopy_isomorphism.lean | c73dc3ea68e26bdf0eea48ce7984802391e717cc | [
"Apache-2.0"
] | permissive | shingtaklam1324/alg-top | fd434f1478925a232af45f18f370ee3a22811c54 | 4c88e28df6f0a329f26eab32bae023789193990e | refs/heads/master | 1,689,447,024,947 | 1,630,073,400,000 | 1,630,073,400,000 | 381,528,689 | 2 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 6,374 | lean | import homotopy_group.basic
import homotopy.equiv
/-!
# Homotopy equivalences induce group isomorphisms
In this file, we show that given `h : homotopy_equiv X Y`, then we have a group isomorphism
`π₁ x₀ ≃* π₁ (h x₀)`.
-/
noncomputable theory
variables {X Y : Type _} [topological_space X] [topological_space Y] {x₀ :... |
18d48618c3e7cfa6f6608a65d3f0d43ae7393cd5 | f4bff2062c030df03d65e8b69c88f79b63a359d8 | /src/game/sets/sqrt2NotRational.lean | 52bce1b4de32f3075537ef55f85d036ef4448e54 | [
"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 | 6,586 | lean | import tactic.ring
import tactic.linarith
import data.rat.basic
import data.rat.cast
/- Section
1.4 An Application
-/
/-
Prove that there is no rational number whose square is 2
using the techniques introduced earlier.
-/
def even (a : ℤ) := ∃ b : ℤ, a = 2 * b
def odd (a : ℤ) := ∃ b : ℤ, a = 2 * b + 1
lemma not_e... |
93615a45f772d3f1dd96ccaee56d561785a79425 | 618003631150032a5676f229d13a079ac875ff77 | /src/topology/uniform_space/absolute_value.lean | 049e6b26152a364a9286c4d2e2a635ebe79598e5 | [
"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,929 | lean | /-
Copyright (c) 2019 Patrick Massot. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Patrick Massot
-/
import data.real.cau_seq
import topology.uniform_space.basic
/-!
# Uniform structure induced by an absolute value
We build a uniform space structure on a commutativ... |
bb9adb16341a14b32ea7de98508bb92119e7a594 | b7f22e51856f4989b970961f794f1c435f9b8f78 | /tests/lean/run/rw_bug2.lean | 077694fc80d07a97da51b4f3d336dace3178d431 | [
"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 | 424 | lean | import logic.eq
open prod
definition swap {A : Type} : A × A → A × A
| (a, b) := (b, a)
theorem swap_swap {A : Type} : ∀ p : A × A, swap (swap p) = p
| (a, b) := rfl
theorem eq_of_swap_eq {A : Type} : ∀ p₁ p₂ : A × A, swap p₁ = swap p₂ → p₁ = p₂ :=
take p₁ p₂, assume seqs,
assert h₁ : swap (swap p₁) = swap (swap p₂)... |
c8a2e94617c303c13618cb4a4e44c7490e34efa6 | 367134ba5a65885e863bdc4507601606690974c1 | /src/data/list/tfae.lean | 427fa3b18a2d0b3d66a95e7e276643977d009d51 | [
"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,892 | lean | /-
Copyright (c) 2018 Johan Commelin. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Johan Commelin, Simon Hudon
-/
import data.list.basic
namespace list
/--
tfae: The Following (propositions) Are Equivalent.
The `tfae_have` and `tfae_finish` tactics can be useful i... |
d3fab394ad98cf16fd43ea69fd3667d63cd9efcb | 57c233acf9386e610d99ed20ef139c5f97504ba3 | /src/algebra/geom_sum.lean | 0de3c177fc2dc8d4b8d72a028c2a9944f1712492 | [
"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 | 20,905 | lean | /-
Copyright (c) 2019 Neil Strickland. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Neil Strickland
-/
import algebra.group_with_zero.power
import algebra.big_operators.order
import algebra.big_operators.ring
import algebra.big_operators.intervals
import tactic.abel... |
4dcaaffb051e3ad179d71cd8bea9df7429004fbc | c31182a012eec69da0a1f6c05f42b0f0717d212d | /src/pseudo_normed_group/LC.lean | 5a18c40ef5fe59862e98fbbd4ed57b7805dced0e | [] | 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 | 18,267 | lean | import category_theory.preadditive.functor_category
import pseudo_normed_group.FP
import locally_constant.SemiNormedGroup
import locally_constant.Vhat
import for_mathlib.normed_group_hom
/-!
# The category of locally constant maps
Various constructions of pseudo-normed groups of locally constant functions.
## Main... |
da97df342e493d377832ad10663ab89ff9263a52 | 491068d2ad28831e7dade8d6dff871c3e49d9431 | /tests/lean/run/group5.lean | 92788f18a58f790eed0d5041d556268b4cb7d43b | [
"Apache-2.0"
] | permissive | davidmueller13/lean | 65a3ed141b4088cd0a268e4de80eb6778b21a0e9 | c626e2e3c6f3771e07c32e82ee5b9e030de5b050 | refs/heads/master | 1,611,278,313,401 | 1,444,021,177,000 | 1,444,021,177,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 3,983 | lean | -- Copyright (c) 2014 Jeremy Avigad. All rights reserved.
-- Released under Apache 2.0 license as described in the file LICENSE.
-- Authors: Jeremy Avigad, Leonardo de Moura
-- algebra.group
-- =============
-- Various structures with 1, *, inv, including groups.
import logic.eq
import data.unit data.sigma data.prod... |
fa13a861be304dd97d6f74ebf3e07a70d1642b25 | 4d2583807a5ac6caaffd3d7a5f646d61ca85d532 | /src/data/real/pi/bounds.lean | 193bdcfd5c43b0c8b3e3f0d1889eb243dbaf5b62 | [
"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 | 7,801 | 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, Mario Carneiro
-/
import analysis.special_functions.trigonometric.basic
/-!
# Pi
This file contains lemmas which establish bounds on `real.pi`.
Notably, these inc... |
18bb09743b3d52d48585e8e6614a58d7cccaadb9 | e9dbaaae490bc072444e3021634bf73664003760 | /src/Problems/2019/IMO_2019_P2.lean | ef41591ddda439db3a81235921528e9c67437f43 | [
"Apache-2.0"
] | permissive | liaofei1128/geometry | 566d8bfe095ce0c0113d36df90635306c60e975b | 3dd128e4eec8008764bb94e18b932f9ffd66e6b3 | refs/heads/master | 1,678,996,510,399 | 1,581,454,543,000 | 1,583,337,839,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 557 | lean | import Geo.Geo.Core
namespace Geo
open Seg
def IMO_2019_P2 : Prop :=
∀ (A B C A₁ B₁ : Point),
on A₁ (Seg.mk B C) →
on B₁ (Seg.mk C A) →
∀ (P Q : Point),
on P (Seg.mk A A₁) →
on Q (Seg.mk B B₁) →
para ⟨P, Q⟩ ⟨A, B⟩ →
∀ (P₁ Q₁ : Point),
on P₁ (Line.mk P B₁) → -- (strict) alt: coll & bet
strictlyBtw B₁ P P₁ →
uangle ... |
8f28b3c37673baa01e725e448a2282320aed557e | 8b147c3d61a55005ca839480a4045e69683f7655 | /nominal_machine.lean | bbb29b8fcf90a4de9fd7708a2e0a1bcb0a2e43cc | [] | no_license | dselsam/unrealistic_compiler | ce69efac0d573642b67f44a63eb5f18cdf596b27 | 70514de492a6a1ed705ad247333ae5b3f8455a83 | refs/heads/master | 1,609,483,664,302 | 1,500,654,169,000 | 1,500,654,169,000 | 97,516,326 | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 3,349 | lean | import data.hash_map .atom
namespace nominal
open list
inductive exp : Type
| var : atom → exp
| const : ℕ → exp
| abs : atom → exp → exp
| app : exp → exp → exp
open exp
def fvs : exp → list atom
| (var v) := [v]
| (const n) := []
| (abs v e) := remove_all (fvs e) [v]
| (app e₁ e₂) := fvs e₁ ∪ fvs e₂
def ... |
6a3d3a05ae6fe05690c6284a4894b890f30e5b74 | 43390109ab88557e6090f3245c47479c123ee500 | /src/M1F/problem_bank/0503/S0503.lean | 0c5d0330173d3c7292412aaa94fca8e0ae8e919b | [
"Apache-2.0"
] | permissive | Ja1941/xena-UROP-2018 | 41f0956519f94d56b8bf6834a8d39473f4923200 | b111fb87f343cf79eca3b886f99ee15c1dd9884b | refs/heads/master | 1,662,355,955,139 | 1,590,577,325,000 | 1,590,577,325,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 7,782 | lean | import algebra.group_power tactic.norm_num algebra.big_operators
theorem Q3a (n : ℕ) : ∃ k, (n+1)+(n+2)+(n+3)+(n+4) = 4*k+2 :=
begin
induction n with d Hd,
existsi 2,trivial,
cases Hd with k Hk, -- why is this so horrible!
existsi k+1,
rw [nat.succ_eq_add_one],
have : ((d + 1 + (d + 2) + (d + 3) + (d + 4))+4)=(4*k+... |
2bff44138f37aedfa943f2d911a2a21a3e30002d | 36c7a18fd72e5b57229bd8ba36493daf536a19ce | /tests/lean/770.hlean | 7808bc06798554a27adb5464ac0d0e435b72fdd1 | [
"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 | 474 | hlean | open nat unit equiv eq
definition code : ℕ → ℕ → Type₀
| code 0 0 := unit
| code (succ n) 0 := empty
| code 0 (succ m) := empty
| code (succ n) (succ m) := code n m
definition refl : Πn, code n n
| refl 0 := star
| refl (succ n) := refl n
definition encode (n m : ℕ) : (n = m) ≃ code n m :=
equiv... |
67fbfbb757ee632e4c182d913f93b93603bc0cdf | 022547453607c6244552158ff25ab3bf17361760 | /src/algebra/lie/cartan_matrix.lean | 6955c19f7a11b2adb803cf6d3c6a4a7c17f8b2e9 | [
"Apache-2.0"
] | permissive | 1293045656/mathlib | 5f81741a7c1ff1873440ec680b3680bfb6b7b048 | 4709e61525a60189733e72a50e564c58d534bed8 | refs/heads/master | 1,687,010,200,553 | 1,626,245,646,000 | 1,626,245,646,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 5,378 | 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.free
import algebra.lie.quotient
/-!
# Lie algebras from Cartan matrices
Split semi-simple Lie algebras are uniquely determined by their Cartan matrix.... |
163a776c01326277edcd610c79ceeba84e480471 | b7f22e51856f4989b970961f794f1c435f9b8f78 | /tests/lean/exact_partial2.lean | 022ee20061ac9f0dfe2eec7c66625e4abc1efd65 | [
"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 | 99 | lean | example (a b c : nat) (h₁ : a = b) (h₂ : b = c) : a = c :=
begin
exact (eq.trans h₁ _)
end
|
6214166155f3c28d8b263b83373a6eb2b05bf143 | 626e312b5c1cb2d88fca108f5933076012633192 | /src/group_theory/sylow.lean | a080fc26dd02d59e62d8ffbde636d9a0ec00f52b | [
"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 | 10,016 | lean | /-
Copyright (c) 2018 Chris Hughes. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Chris Hughes
-/
import group_theory.p_group
/-!
# Sylow theorems
The Sylow theorems are the following results for every finite group `G` and every prime number `p`.
* There exists a ... |
6c130f727deba4e01b88100466cf1637c3bcc6aa | 1a61aba1b67cddccce19532a9596efe44be4285f | /hott/algebra/category/groupoid.hlean | 5ee7ff5f376e932bcf0d6de131769f6e44b69089 | [
"Apache-2.0"
] | permissive | eigengrau/lean | 07986a0f2548688c13ba36231f6cdbee82abf4c6 | f8a773be1112015e2d232661ce616d23f12874d0 | refs/heads/master | 1,610,939,198,566 | 1,441,352,386,000 | 1,441,352,494,000 | 41,903,576 | 0 | 0 | null | 1,441,352,210,000 | 1,441,352,210,000 | null | UTF-8 | Lean | false | false | 3,954 | hlean | /-
Copyright (c) 2014 Jakob von Raumer. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Author: Jakob von Raumer
Ported from Coq HoTT
-/
import .iso ..group
open eq is_trunc iso category algebra nat unit
namespace category
structure groupoid [class] (ob : Type) extends pa... |
dd4b30201f5cd81a5fef7f6c55999b8e83daf2fa | 3f7026ea8bef0825ca0339a275c03b911baef64d | /src/category_theory/adjunction/limits.lean | 69e58d2d275df08de89b304a7bdec4edd44a386e | [
"Apache-2.0"
] | permissive | rspencer01/mathlib | b1e3afa5c121362ef0881012cc116513ab09f18c | c7d36292c6b9234dc40143c16288932ae38fdc12 | refs/heads/master | 1,595,010,346,708 | 1,567,511,503,000 | 1,567,511,503,000 | 206,071,681 | 0 | 0 | Apache-2.0 | 1,567,513,643,000 | 1,567,513,643,000 | null | UTF-8 | Lean | false | false | 5,535 | lean | /-
Copyright (c) 2019 Reid Barton. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Reid Barton, Johan Commelin
-/
import category_theory.adjunction.basic
import category_theory.limits.preserves
open opposite
namespace category_theory.adjunction
open category_theory
op... |
2e4c3305f2ca30171c6ce60781b941a6faae3f1d | f7315930643edc12e76c229a742d5446dad77097 | /library/data/nat/choose.lean | 67e094b69cd3fd68a507501a79a11e97ea9cced2 | [
"Apache-2.0"
] | permissive | bmalehorn/lean | 8f77b762a76c59afff7b7403f9eb5fc2c3ce70c1 | 53653c352643751c4b62ff63ec5e555f11dae8eb | refs/heads/master | 1,610,945,684,489 | 1,429,681,220,000 | 1,429,681,449,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 3,768 | lean | /-
Copyright (c) 2015 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Module: data.nat.choose
Authors: Leonardo de Moura
Choice function for decidable predicates on natural numbers.
This module provides the following two declarations:
choose {p : ... |
a29e817483ac3ee9d430859f3614585192d2c98b | 8cae430f0a71442d02dbb1cbb14073b31048e4b0 | /src/algebraic_topology/alternating_face_map_complex.lean | 9556037c8df4ae2a318531637e5ab70503fec2ea | [
"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,942 | lean | /-
Copyright (c) 2021 Joël Riou. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Joël Riou, Adam Topaz, Johan Commelin
-/
import algebra.homology.additive
import algebraic_topology.Moore_complex
import algebra.big_operators.fin
import category_theory.preadditive.opposi... |
105aea91823b64cc2f6e34140fdb21892ed5d07a | 55c7fc2bf55d496ace18cd6f3376e12bb14c8cc5 | /src/category_theory/equivalence.lean | b7028158e6ac650adeb89fdce7c73769a513811d | [
"Apache-2.0"
] | permissive | dupuisf/mathlib | 62de4ec6544bf3b79086afd27b6529acfaf2c1bb | 8582b06b0a5d06c33ee07d0bdf7c646cae22cf36 | refs/heads/master | 1,669,494,854,016 | 1,595,692,409,000 | 1,595,692,409,000 | 272,046,630 | 0 | 0 | Apache-2.0 | 1,592,066,143,000 | 1,592,066,142,000 | null | UTF-8 | Lean | false | false | 19,299 | 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
-/
import category_theory.fully_faithful
import category_theory.whiskering
import tactic.slice
namespace category_theory
... |
ea1498870463ef7b4d824f411aa6a575311b35bb | 618003631150032a5676f229d13a079ac875ff77 | /roadmap/topology/shrinking_lemma.lean | 09949dea9535095f961bbe951c5767128c926f2b | [
"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,840 | lean | /-
Copyright (c) 2020 Reid Barton. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Reid Barton
-/
import ..todo
import topology.separation
/-!
A formal roadmap for the shrinking lemma for local finite countable covers.
It contains the statement of the lemma, and an i... |
3dfcd44db4dbc6133df74be348d39457c69598a0 | de91c42b87530c3bdcc2b138ef1a3c3d9bee0d41 | /demo/expressions_demo_current_alternate.lean | aa4c37179a9766df517f0137a290a0f3bbdc07f7 | [] | 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,032 | lean | import ..expressions.time_expr_current
open lang.time
--K is now an abbreviation - set to ℚ
def std_fr : time_frame_expr := [time_std_frame K]
--def std_sp : time_space_expr std_fr := [mk_space K std_fr.value] --issue with has_lit type class
def std_sp : time_space_expr std_fr := [time_std_space K]
lemma p1 : st... |
cd0268d78c62d71000e00e516748d59084ac9f7d | 367134ba5a65885e863bdc4507601606690974c1 | /src/algebra/iterate_hom.lean | 90d99a6c39fa55bf92073a10e3b90b4cab530bf1 | [
"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 | 4,299 | lean | /-
Copyright (c) 2020 Yury Kudryashov. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Author: Yury Kudryashov
-/
import algebra.group_power
import logic.function.iterate
/-!
# Iterates of monoid and ring homomorphisms
Iterate of a monoid/ring homomorphism is a monoid/ring ho... |
b31789b7c90250f334af00e9540fa15f7a210d65 | d406927ab5617694ec9ea7001f101b7c9e3d9702 | /src/combinatorics/simple_graph/inc_matrix.lean | a7ef63ba4b7f789b7dcbfb270fa3e37380ee18fa | [
"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,827 | lean | /-
Copyright (c) 2021 Gabriel Moise. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Gabriel Moise, Yaël Dillies, Kyle Miller
-/
import combinatorics.simple_graph.basic
import data.matrix.basic
/-!
# Incidence matrix of a simple graph
This file defines the unoriented ... |
589a50908408123d25f29e3f7848af295a342ad7 | 80cc5bf14c8ea85ff340d1d747a127dcadeb966f | /src/category_theory/eq_to_hom.lean | aff614470a2f9d8700eff4b2a7d23b18c8396f85 | [
"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 | 3,619 | lean | /-
Copyright (c) 2018 Reid Barton. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Reid Barton, Scott Morrison
-/
import category_theory.opposites
universes v v' u u' -- declare the `v`'s first; see `category_theory.category` for an explanation
namespace category_theo... |
7d6539f17b02601404ffd02569044b054c2db3a1 | 680b0d1592ce164979dab866b232f6fa743f2cc8 | /library/data/real/complete.lean | 05597ccffbd37b10c96407bf5c1acf021ecf9a31 | [
"Apache-2.0"
] | permissive | syohex/lean | 657428ab520f8277fc18cf04bea2ad200dbae782 | 081ad1212b686780f3ff8a6d0e5f8a1d29a7d8bc | refs/heads/master | 1,611,274,838,635 | 1,452,668,188,000 | 1,452,668,188,000 | 49,562,028 | 0 | 0 | null | 1,452,675,604,000 | 1,452,675,602,000 | null | UTF-8 | Lean | false | false | 30,447 | lean | /-
Copyright (c) 2015 Robert Y. Lewis. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Author: Robert Y. Lewis
The real numbers, constructed as equivalence classes of Cauchy sequences of rationals.
This construction follows Bishop and Bridges (1985).
At this point, we no longer... |
761079895f8ac5591a51f529450cda196ba38aaa | 6432ea7a083ff6ba21ea17af9ee47b9c371760f7 | /tests/lean/1240.lean | 85a71fd16f6d1a5e7e0f427a9da6e48c1facbd5c | [
"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 | 134 | lean | import Lean.Elab.Frontend
open Lean Elab in
#eval show IO _ from do
discard <| importModules [Import.mk Name.anonymous false] {} 0
|
beff618776dbf6684d2fc49e01bb4ab32b0b0265 | c86b74188c4b7a462728b1abd659ab4e5828dd61 | /stage0/src/Std/Data/PersistentHashMap.lean | 58526b5b27e2bf46c8cb701655ffdcf1a6a1d0bf | [
"Apache-2.0"
] | permissive | cwb96/lean4 | 75e1f92f1ba98bbaa6b34da644b3dfab2ce7bf89 | b48831cda76e64f13dd1c0edde7ba5fb172ed57a | refs/heads/master | 1,686,347,881,407 | 1,624,483,842,000 | 1,624,483,842,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 13,370 | 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
-/
namespace Std
universes u v w w'
namespace PersistentHashMap
inductive Entry (α : Type u) (β : Type v) (σ : Type w) where
| entry (key : α) (val : β) : ... |
552aa84b761ca9e4661a1ab526eb5f2057ee086d | 3bdd27ffdff3ffa22d4bb010eba695afcc96bc4a | /src/combinatorics/simplicial_complex/intrinsic.lean | b53a53450aeea82e5cd6d7f18883cae8ea564d32 | [] | no_license | mmasdeu/brouwerfixedpoint | 684d712c982c6a8b258b4e2c6b2eab923f2f1289 | 548270f79ecf12d7e20a256806ccb9fcf57b87e2 | refs/heads/main | 1,690,539,793,996 | 1,631,801,831,000 | 1,631,801,831,000 | 368,139,809 | 4 | 3 | null | 1,624,453,250,000 | 1,621,246,034,000 | Lean | UTF-8 | Lean | false | false | 6,783 | 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 combinatorics.simplicial_complex.extreme
open_locale classical affine big_operators
open set
--TODO: Generalise to LCTVS
variables {E ... |
9e30eb2b1f3ca5c116263c596380403eaa5855f8 | 83d56f27a2d4619301ce53e12f816410643fe9fd | /lean/Cyclone_Ok_Lemmas.lean | 67667370197b24510c1866e434a2d8a68a080831 | [] | no_license | briangmilnes/CycloneCoqSemantics | cad5d09328fd70876d11f79b81d30954c7db6a60 | 190c0fc57d5aebfde244efb06a119f108de7a150 | refs/heads/master | 1,621,135,368,013 | 1,609,910,991,000 | 1,609,910,991,000 | 26,649,090 | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 1,176 | lean | /-
This is the definition of formal syntax for Dan Grossman's Thesis,
"SAFE PROGRAMMING AT THE C LEVEL OF ABSTRACTION".
Term Weakening
-/
import .Cyclone_Static_Semantics_Kinding_And_Context_Well_Formedness
/- TODO It's not clear to me which way to order environments, add on the left here. -/
lemma ok_stren... |
cc71699b127bfc6fedaa5ea0a593d3520945a1d9 | 4727251e0cd73359b15b664c3170e5d754078599 | /src/meta/expr.lean | 9d2c045dca99336cd0a7fc94b2e198c8dd10935f | [
"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 | 47,025 | lean | /-
Copyright (c) 2019 Robert Y. Lewis. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Mario Carneiro, Simon Hudon, Scott Morrison, Keeley Hoek, Robert Y. Lewis, Floris van Doorn
-/
import data.string.defs
import tactic.derive_inhabited
/-!
# Additional operations on ex... |
49457d47c0adebd01cd9b1960fb637ac777326cd | a9d0fb7b0e4f802bd3857b803e6c5c23d87fef91 | /tests/lean/run/t6.lean | 07dc09eed60ee51e524c90f7f4269dea06e24ef9 | [
"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 | 369 | lean | prelude
precedence `+` : 65
precedence `++` : 100
constant N : Type.{1}
constant f : N → N → N
constant a : N
check
let g x y := f x y,
infix + := g,
b : N := a+a,
c := b+a,
h (x : N) := x+x,
postfix ++ := h,
d := c++,
... |
1043a1527934c24dc27a9809e23413da73e0198b | 592ee40978ac7604005a4e0d35bbc4b467389241 | /Library/generated/mathscheme-lean/CommutativeSemigroup.lean | 684df0d6d465374cc8d06bf1aafa363ba65a0183 | [] | no_license | ysharoda/Deriving-Definitions | 3e149e6641fae440badd35ac110a0bd705a49ad2 | dfecb27572022de3d4aa702cae8db19957523a59 | refs/heads/master | 1,679,127,857,700 | 1,615,939,007,000 | 1,615,939,007,000 | 229,785,731 | 4 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 6,590 | lean | import init.data.nat.basic
import init.data.fin.basic
import data.vector
import .Prelude
open Staged
open nat
open fin
open vector
section CommutativeSemigroup
structure CommutativeSemigroup (A : Type) : Type :=
(op : (A → (A → A)))
(commutative_op : (∀ {x y : A} , (op x y) = (op y x)))
(ass... |
f5884b0c6114bdcce6188d10e51b4c4bb9b44127 | 74addaa0e41490cbaf2abd313a764c96df57b05d | /Mathlib/topology/bounded_continuous_function.lean | 80db545002137139c4ef65d3dea615f41418c7e5 | [] | 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 | 26,822 | lean | /-
Copyright (c) 2018 Sébastien Gouëzel. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Sébastien Gouëzel, Mario Carneiro, Yury Kudryashov, Heather Macbeth
-/
import Mathlib.PrePort
import Mathlib.Lean3Lib.init.default
import Mathlib.analysis.normed_space.basic
import ... |
4cae4dbf18ff0d33159a6bed8c0b5526f42f12b0 | bb31430994044506fa42fd667e2d556327e18dfe | /src/data/pnat/basic.lean | 95208af3aadf84c2519ac715eee96464dfed6c71 | [
"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 | 11,643 | lean | /-
Copyright (c) 2017 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Mario Carneiro, Neil Strickland
-/
import data.pnat.defs
import data.nat.bits
import data.nat.order.basic
import data.set.basic
import algebra.group_with_zero.divisibility
impor... |
9a1730d59b3556e415ef3ca61b459f359160d25f | 74addaa0e41490cbaf2abd313a764c96df57b05d | /Mathlib/category_theory/monad/bundled.lean | 38a77845b7fffa6b915646c6b1e111589de411cd | [] | 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,513 | lean | /-
Copyright (c) 2020 Adam Topaz. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Adam Topaz
-/
import Mathlib.PrePort
import Mathlib.Lean3Lib.init.default
import Mathlib.category_theory.monad.basic
import Mathlib.category_theory.eq_to_hom
import Mathlib.PostPort
unive... |
6213ae15dd0f28cc6245eeea7051029f4e19392e | 6dc0c8ce7a76229dd81e73ed4474f15f88a9e294 | /stage0/src/Lean/Elab/Util.lean | 525e4ca717af2e1b9f51f368cde076c6956f4efe | [
"Apache-2.0"
] | permissive | williamdemeo/lean4 | 72161c58fe65c3ad955d6a3050bb7d37c04c0d54 | 6d00fcf1d6d873e195f9220c668ef9c58e9c4a35 | refs/heads/master | 1,678,305,356,877 | 1,614,708,995,000 | 1,614,708,995,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 7,372 | 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.Util.Trace
import Lean.Parser.Syntax
import Lean.Parser.Extension
import Lean.KeyedDeclsAttribute
import Lean.Elab.Exception
namespace Lean
de... |
c662893b15ba944740eea3c3663370dbadad252b | 624f6f2ae8b3b1adc5f8f67a365c51d5126be45a | /tests/playground/parser/test2.lean | c9d2aacfc56afaac2b75cc9839114b14e2d1ff14 | [
"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 | 1,759 | lean | import parser
abbrev Parser (α : Type) := Lean.Parser.ParserM Unit Unit Unit α
open Lean.Parser
def check {α} [HasBeq α] (p : Parser α) (s : String) (e : α) : IO Unit :=
match p.run () () s with
| Lean.Parser.Result.ok v i _ _ := do
IO.println ("Ok at " ++ toString i),
unless (v == e) (throw "unexpected result"... |
a7dfc0f9bfbfcf229577bbf7e43678c0c7cac49b | 5d166a16ae129621cb54ca9dde86c275d7d2b483 | /library/init/meta/smt/interactive.lean | 33c8846603cda661343f4b36e49af34cfa9b3a17 | [
"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 | 10,339 | lean | /-
Copyright (c) 2017 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Leonardo de Moura
-/
prelude
import init.meta.smt.smt_tactic init.meta.interactive_base
import init.meta.smt.rsimp
namespace smt_tactic
meta def save_info (p : pos) : smt_tacti... |
f974c30dd3948d9666c8d681dff075055d4fc01e | 82e44445c70db0f03e30d7be725775f122d72f3e | /src/ring_theory/trace.lean | 7196011a563d0157dd14c6834c737871c5b8d1b7 | [
"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 | 7,261 | 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 linear_algebra.bilinear_form
import linear_algebra.char_poly.coeff
import linear_algebra.trace
import ring_theory.power_basis
/-!
# Trace for (finite) ring extensi... |
21a695609ac8cfb4799cfe78f18fa14571dbddd6 | 74addaa0e41490cbaf2abd313a764c96df57b05d | /Mathlib/data/set/countable.lean | cca613a9bf195a1bce74de829a45c4d9649eeae9 | [] | 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 | 6,724 | lean | /-
Copyright (c) 2017 Johannes Hölzl. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Author: Johannes Hölzl
-/
import Mathlib.PrePort
import Mathlib.Lean3Lib.init.default
import Mathlib.data.equiv.list
import Mathlib.data.set.finite
import Mathlib.PostPort
universes u v u_1
... |
2c007a3d186f2db19064d3322aa134aef48511a3 | e09201d437062e1f95e6e5360aab0c9f947901aa | /src/automata/epsnfa_star.lean | d3dfe0bb9583bc91a3498f6bb4d1f7cef42b2c05 | [] | no_license | VArtem/lean-regular-languages | 34f4b093f28ef2f09ba7e684e642a0f97c901560 | e877243188253d0ac17ccf0ae2da7bf608686ff0 | refs/heads/master | 1,683,590,111,306 | 1,622,307,234,000 | 1,622,307,234,000 | 284,232,653 | 7 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 5,639 | lean | import data.set.basic
import data.set.finite
import automata.epsnfa
import languages.basic
import languages.star
open set epsnfa languages option
namespace epsnfa.star
variables {S Q : Type} [fintype S] [fintype Q] [decidable_eq Q]
def epsnfa_star (e : epsNFA S Q) : epsNFA S (option Q) := {
start := none,
t... |
621064cfb363879034df69595829de669637b7e3 | 1cc8cf59a317bf12d71a5a8ed03bfc1948c66f10 | /src/examples/limit_examples.lean | 1d082165ab4bc5edec974f67796cf6678e122b2c | [
"Apache-2.0"
] | permissive | kckennylau/M1P1-lean | 1e4fabf513539669f86a439af6844aa078c239ad | c92e524f3e4e7aec5dc09e05fb8923cc9720dd34 | refs/heads/master | 1,587,503,976,663 | 1,549,715,955,000 | 1,549,715,955,000 | 169,875,735 | 1 | 0 | Apache-2.0 | 1,549,722,917,000 | 1,549,722,917,000 | null | UTF-8 | Lean | false | false | 1,365 | lean | import limits tactic.linarith
-- The sequence 1/n tends to zero as n -> infinity.
theorem easy : is_limit (λ n, 1 / n) 0 :=
begin
-- say ε is a positive real
intros ε Hε,
-- we need to find N such that n ≥ N → |1 / n| < ε.
-- It's a standard fact there exists some integer M ≥ 0
-- such that 1 / (M + 1) < ε..... |
72b2df8749ebbca4f49cfdeb1a926e676e8c0a40 | d406927ab5617694ec9ea7001f101b7c9e3d9702 | /src/algebra/order/group/inj_surj.lean | 363d340182f8c84caf24a804b068d358069ae9a1 | [
"Apache-2.0"
] | permissive | alreadydone/mathlib | dc0be621c6c8208c581f5170a8216c5ba6721927 | c982179ec21091d3e102d8a5d9f5fe06c8fafb73 | refs/heads/master | 1,685,523,275,196 | 1,670,184,141,000 | 1,670,184,141,000 | 287,574,545 | 0 | 0 | Apache-2.0 | 1,670,290,714,000 | 1,597,421,623,000 | Lean | UTF-8 | Lean | false | false | 2,187 | lean | /-
Copyright (c) 2016 Jeremy Avigad. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Jeremy Avigad, Leonardo de Moura, Mario Carneiro, Johannes Hölzl
-/
import algebra.order.group.defs
import algebra.order.monoid.basic
import algebra.order.group.instances
/-!
# Pull ba... |
1b56316880e34d809367f2dacde90c36397d5262 | 8d65764a9e5f0923a67fc435eb1a5a1d02fd80e3 | /src/set_theory/ordinal_notation.lean | 46a721e6b38f424f68f7def9bf4463484cf711f0 | [
"Apache-2.0"
] | permissive | troyjlee/mathlib | e18d4b8026e32062ab9e89bc3b003a5d1cfec3f5 | 45e7eb8447555247246e3fe91c87066506c14875 | refs/heads/master | 1,689,248,035,046 | 1,629,470,528,000 | 1,629,470,528,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 35,958 | lean | /-
Copyright (c) 2018 Mario Carneiro. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Mario Carneiro
-/
import set_theory.ordinal_arithmetic
/-!
# Ordinal notation
Constructive ordinal arithmetic for ordinals below `ε₀`.
We define a type `onote`, with constructors `... |
2dae2af81e09eefe4cd67b093305bcbcc1921d43 | fa02ed5a3c9c0adee3c26887a16855e7841c668b | /src/category_theory/closed/types.lean | 9921f19099eefd67b071731185e402165bff566b | [
"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,736 | 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.presheaf
import category_theory.limits.preserves.functor_category
import category_theory.limits.shapes.types
import category_theory.closed.c... |
3f8bc8d3d25950de07db2a3be92b30ea8fa9073d | 69d4931b605e11ca61881fc4f66db50a0a875e39 | /src/category_theory/limits/shapes/kernels.lean | 8dfe96f1e46307064834dc0fab7d84b1172e685c | [
"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 | 26,588 | lean | /-
Copyright (c) 2019 Scott Morrison. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Scott Morrison, Markus Himmel
-/
import category_theory.limits.shapes.zero
/-!
# Kernels and cokernels
In a category with zero morphisms, the kernel of a morphism `f : X ⟶ Y` is
the ... |
ed5ad785b08cffe1971889fda88cd0bdfaf2c6b4 | 9dc8cecdf3c4634764a18254e94d43da07142918 | /src/analysis/normed_space/ordered.lean | 218891f82576eaa1d3b0e1716705f2467245c6d5 | [
"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 | 1,985 | 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 analysis.normed_space.basic
/-!
# Ordered normed spaces
In this file, we define classes for fields and groups that are both normed and ordered.
These are... |
793b109a5705cb61d69626b06bbb7c9e5b5fc68f | 8cae430f0a71442d02dbb1cbb14073b31048e4b0 | /src/data/nat/factorial/basic.lean | ba3c8d0b388f9333f385f17cd112bc8f32ae22ca | [
"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,877 | 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, Floris van Doorn, Yaël Dillies
-/
import data.nat.basic
import data.nat.pow
/-!
# Factorial and variants
> THIS FILE IS SYNCHRONIZED WITH MATHLIB4.
> An... |
31e75f253985018842690e6d578d43747a31e07f | a7eef317ddec01b9fc6cfbb876fe7ac00f205ac7 | /src/category_theory/limits/preserves.lean | d462100784459b08ac4af9d456e0db974d05ac3b | [
"Apache-2.0"
] | permissive | kmill/mathlib | ea5a007b67ae4e9e18dd50d31d8aa60f650425ee | 1a419a9fea7b959317eddd556e1bb9639f4dcc05 | refs/heads/master | 1,668,578,197,719 | 1,593,629,163,000 | 1,593,629,163,000 | 276,482,939 | 0 | 0 | null | 1,593,637,960,000 | 1,593,637,959,000 | null | UTF-8 | Lean | false | false | 12,533 | lean | /-
Copyright (c) 2018 Scott Morrison. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Scott Morrison, Reid Barton, Bhavik Mehta
-/
import category_theory.limits.limits
/-!
# Preservation and reflection of (co)limits.
There are various distinct notions of "preserving l... |
f9dffeddd6be9befeca481834e8f40fd40acdeda | c7e82eae1927be05158e1a5bf2e5a9de9b3c0d4a | /non_mathlib/quadratic_extension.lean | 4827b23c044c1c14a6363947c6f412a40aaeaddf | [] | no_license | NicholasDyson/lean-polynomials | a869743465b58cd9454443517534afeccd31f275 | 1f8ebc475479b997d14397df3b875a27644ce9b1 | refs/heads/master | 1,693,980,023,161 | 1,635,593,501,000 | 1,635,593,501,000 | 405,369,236 | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 4,931 | lean | import field
inductive item_plus_sqrt (f : Type) [myfld f] (rt : f) : Type
| ips : f -> f -> item_plus_sqrt
open item_plus_sqrt
def ips_zero (f : Type) [myfld f] (rt : f) : (item_plus_sqrt f rt) := ips myfld.zero myfld.zero
def ips_add (f : Type) [myfld f] (rt : f) : (item_plus_sqrt f rt) -> (item_plus_sqrt f rt) ... |
6829fe3206bd5c9c7c9dd3e03a6e14f88d6e17ab | 6432ea7a083ff6ba21ea17af9ee47b9c371760f7 | /src/Lean/Meta/AbstractMVars.lean | a362566d56c25eff8ef9cd5f1a7c643becdae843 | [
"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 | 5,663 | 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.Basic
namespace Lean.Meta
structure AbstractMVarsResult where
paramNames : Array Name
numMVars : Nat
expr : Expr
deriving... |
de6f3383f0cebad653bcc0c75defd25898a8f315 | 6432ea7a083ff6ba21ea17af9ee47b9c371760f7 | /src/lake/Lake/CLI/Error.lean | c4d1ed614b05d5b99f383762d67aa58a5d7306fb | [
"Apache-2.0",
"LLVM-exception",
"NCSA",
"LGPL-3.0-only",
"LicenseRef-scancode-inner-net-2.0",
"BSD-3-Clause",
"LGPL-2.0-or-later",
"Spencer-94",
"LGPL-2.1-or-later",
"HPND",
"LicenseRef-scancode-pcre",
"ISC",
"LGPL-2.1-only",
"LicenseRef-scancode-other-permissive",
"SunPro",
"CMU-Mach"... | permissive | leanprover/lean4 | 4bdf9790294964627eb9be79f5e8f6157780b4cc | f1f9dc0f2f531af3312398999d8b8303fa5f096b | refs/heads/master | 1,693,360,665,786 | 1,693,350,868,000 | 1,693,350,868,000 | 129,571,436 | 2,827 | 311 | Apache-2.0 | 1,694,716,156,000 | 1,523,760,560,000 | Lean | UTF-8 | Lean | false | false | 3,051 | lean | /-
Copyright (c) 2022 Mac Malone. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Mac Malone
-/
namespace Lake
open Lean (Name)
inductive CliError
/- CLI Errors -/
| missingCommand
| unknownCommand (cmd : String)
| missingArg (arg : String)
| missingOptArg (opt arg : ... |
bb78d60d79af82dc7d4d8dad5ff4de187c82edb0 | 8cae430f0a71442d02dbb1cbb14073b31048e4b0 | /src/ring_theory/principal_ideal_domain.lean | 4b08be8b788905ac25547665e4310c53b0f59ef7 | [
"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 | 20,490 | lean | /-
Copyright (c) 2018 Chris Hughes. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Chris Hughes, Morenikeji Neri
-/
import algebra.euclidean_domain.instances
import ring_theory.unique_factorization_domain
/-!
# Principal ideal rings and principal ideal domains
> THIS... |
b18f43d6a24d8cba8de9d83f3e463dc49f17866e | 0e9e4fa61bad11733d146f25076045b2ac9f9fbe | /library/init/meta/tactic.lean | 771504bf57e2f372e03a467f239abcb007a8e6e2 | [
"Apache-2.0"
] | permissive | Achierius/lean | 3d9cd6633ebee07987d062c9921b77d90a971343 | 6b8a91e5a76ed78eb5c075cecb0a991ee97a594f | refs/heads/master | 1,676,410,367,196 | 1,610,127,822,000 | 1,610,127,822,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 75,759 | 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.control.combinators init.control.monad init.control.alternative init.control.monad... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.