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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
7413bda2f4a08ba3b23e092191552b4168387aa3 | fa02ed5a3c9c0adee3c26887a16855e7841c668b | /src/linear_algebra/tensor_product.lean | bd6ba00172b8b5d3ecb5473c06b2257d81b7f8de | [
"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 | 44,772 | lean | /-
Copyright (c) 2018 Kenny Lau. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Kenny Lau, Mario Carneiro
-/
import group_theory.congruence
import linear_algebra.basic
/-!
# Tensor product of modules over commutative semirings.
This file constructs the tensor produc... |
6f27b2b91151397ddaf60e21e91dfca03d37d967 | 46125763b4dbf50619e8846a1371029346f4c3db | /src/topology/local_homeomorph.lean | cd2f988f24ee9b46082034fd89bd4671b24860f6 | [
"Apache-2.0"
] | permissive | thjread/mathlib | a9d97612cedc2c3101060737233df15abcdb9eb1 | 7cffe2520a5518bba19227a107078d83fa725ddc | refs/heads/master | 1,615,637,696,376 | 1,583,953,063,000 | 1,583,953,063,000 | 246,680,271 | 0 | 0 | Apache-2.0 | 1,583,960,875,000 | 1,583,960,875,000 | null | UTF-8 | Lean | false | false | 27,894 | 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 data.equiv.local_equiv topology.continuous_on topology.homeomorph
/-!
# Local homeomorphisms
This file defines homeomorphisms between open subsets of ... |
34db740b59dc559fb6863abc9319627017311232 | bb31430994044506fa42fd667e2d556327e18dfe | /src/topology/algebra/order/left_right_lim.lean | 688e2f22bd5954a9abca523b4eaaf64fd6253a01 | [
"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 | 14,501 | lean | /-
Copyright (c) 2022 Sébastien Gouëzel. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Sébastien Gouëzel
-/
import topology.order.basic
import topology.algebra.order.left_right
/-!
# Left and right limits
We define the (strict) left and right limits of a function.
... |
3978ffa4e60b748e964f42dade6a18f1dde976b9 | 6432ea7a083ff6ba21ea17af9ee47b9c371760f7 | /tests/lean/run/52_lean3.lean | a2af776a3d3671c87a21742500caba9432057056 | [
"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 | 412 | lean | universe u
macro "Type*" : term => `(Type _)
open Nat
variable {α : Type u}
def vec : Type u → Nat → Type*
| A, 0 => PUnit
| A, succ k => A × vec A k
inductive dfin : Nat → Type
| fz {n} : dfin (succ n)
| fs {n} : dfin n → dfin (succ n)
def kth_projn : (n : Nat) → vec α n → dfin n → α
| succ n, x, ... |
d82ead9c2f2bb3db654f6ac167754f836c2cbf40 | 4d2583807a5ac6caaffd3d7a5f646d61ca85d532 | /src/measure_theory/decomposition/lebesgue.lean | dcffe4a45b3ef9826ae5f73b7c8337b89c2d86db | [
"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 | 66,570 | lean | /-
Copyright (c) 2021 Kexing Ying. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Kexing Ying
-/
import measure_theory.measure.complex
import measure_theory.measure.with_density_vector_measure
import measure_theory.function.ae_eq_of_integral
/-!
# Lebesgue decompositi... |
77e6b2def20658cf46f6e5bc364e6f8937a7ab31 | 4bcaca5dc83d49803f72b7b5920b75b6e7d9de2d | /stage0/src/Lean/Elab/Term.lean | 057301141acf258da675d1aa4f488d78e55e1916 | [
"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 | 69,541 | 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.ResolveName
import Lean.Util.Sorry
import Lean.Util.ReplaceExpr
import Lean.Structure
import Lean.Meta.ExprDefEq
import Lean.... |
3d2f40463f2d1e03e130cee283d88d2cddc27461 | 4fa161becb8ce7378a709f5992a594764699e268 | /src/group_theory/order_of_element.lean | 0ffe11b6a3ed241c566f8d14fdc086ba810ab61e | [
"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 | 24,289 | lean | /-
Copyright (c) 2018 Johannes Hölzl. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Johannes Hölzl
-/
import group_theory.coset
import data.nat.totient
import data.set.finite
open function
open_locale big_operators
variables {α : Type*} {s : set α} {a a₁ a₂ b c: α}
... |
58e1c5352a548199e1e2b73b9e3282348607e080 | 3bdd27ffdff3ffa22d4bb010eba695afcc96bc4a | /src/combinatorics/simplicial_complex/pure.lean | f924339fad4cf02091f8620ae60e64a3c48e195d | [] | 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 | 3,371 | 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.basic
namespace affine
open set
open_locale classical
variables {a b m n : ℕ} {E : Type*} [normed_gro... |
779c825f07aac6aa03076ed6aa27e22adeded905 | e00ea76a720126cf9f6d732ad6216b5b824d20a7 | /src/analysis/asymptotics.lean | 5697b0c3e817ba47c6fee88e498134718fec363d | [
"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 | 42,234 | lean | /-
Copyright (c) 2019 Jeremy Avigad. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Jeremy Avigad, Yury Kudryashov
-/
import analysis.normed_space.basic topology.local_homeomorph tactic.alias
/-!
# Asymptotics
We introduce these relations:
* `is_O_with c f g l` : "... |
16b5d2bb301c3ef7be9ee679c7496f02a82335b8 | 4d2583807a5ac6caaffd3d7a5f646d61ca85d532 | /src/topology/algebra/group_completion.lean | ff86cb07296227adf43c5b156e713de1497547d9 | [
"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,939 | lean | /-
Copyright (c) 2018 Patrick Massot. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Patrick Massot, Johannes Hölzl
-/
import algebra.group.hom_instances
import topology.uniform_space.completion
import topology.algebra.uniform_group
/-!
# Completion of topological gro... |
a2fad626a015c7baba5fa029b38ea316ccb56696 | bb31430994044506fa42fd667e2d556327e18dfe | /src/number_theory/divisors.lean | e239857c3e6ad976264c22885d36784419d31717 | [
"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 | 16,197 | 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 algebra.big_operators.order
import data.nat.interval
import data.nat.factors
/-!
# Divisor finsets
This file defines sets of divisors of a natural number. Th... |
e2b6e2cc1b2ed59b268fe86d2e39e8c4c604f7f5 | 95dcf8dea2baf2b4b0a60d438f27c35ae3dd3990 | /src/category_theory/types.lean | c4f0d3f1de79df88805392db81939e7c9af69c19 | [
"Apache-2.0"
] | permissive | uniformity1/mathlib | 829341bad9dfa6d6be9adaacb8086a8a492e85a4 | dd0e9bd8f2e5ec267f68e72336f6973311909105 | refs/heads/master | 1,588,592,015,670 | 1,554,219,842,000 | 1,554,219,842,000 | 179,110,702 | 0 | 0 | Apache-2.0 | 1,554,220,076,000 | 1,554,220,076,000 | null | UTF-8 | Lean | false | false | 3,110 | lean | -- Copyright (c) 2017 Scott Morrison. All rights reserved.
-- Released under Apache 2.0 license as described in the file LICENSE.
-- Authors: Stephen Morgan, Scott Morrison, Johannes Hölzl
import category_theory.functor_category
import category_theory.fully_faithful
namespace category_theory
universes v v' w u u' --... |
7639c967b42d2da640b2dfec991306de9c04b4ee | b3fced0f3ff82d577384fe81653e47df68bb2fa1 | /src/category_theory/monad/algebra.lean | b0468a3be32e7440b9661eb43f046fc6c987b675 | [
"Apache-2.0"
] | permissive | ratmice/mathlib | 93b251ef5df08b6fd55074650ff47fdcc41a4c75 | 3a948a6a4cd5968d60e15ed914b1ad2f4423af8d | refs/heads/master | 1,599,240,104,318 | 1,572,981,183,000 | 1,572,981,183,000 | 219,830,178 | 0 | 0 | Apache-2.0 | 1,572,980,897,000 | 1,572,980,896,000 | null | UTF-8 | Lean | false | false | 3,286 | lean | /-
Copyright (c) 2019 Scott Morrison. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Scott Morrison
-/
import category_theory.monad.basic
import category_theory.adjunction.basic
/-!
# Eilenberg-Moore algebras for a monad
This file defines Eilenberg-Moore algebras for... |
4e47a652dffb71291817761c4ff382c3437be8b3 | c777c32c8e484e195053731103c5e52af26a25d1 | /src/number_theory/legendre_symbol/quadratic_char.lean | b49542517b746b62482b17266fb2722c977b0fcd | [
"Apache-2.0"
] | permissive | kbuzzard/mathlib | 2ff9e85dfe2a46f4b291927f983afec17e946eb8 | 58537299e922f9c77df76cb613910914a479c1f7 | refs/heads/master | 1,685,313,702,744 | 1,683,974,212,000 | 1,683,974,212,000 | 128,185,277 | 1 | 0 | null | 1,522,920,600,000 | 1,522,920,600,000 | null | UTF-8 | Lean | false | false | 18,660 | lean | /-
Copyright (c) 2022 Michael Stoll. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Michael Stoll
-/
import data.fintype.parity
import number_theory.legendre_symbol.zmod_char
import field_theory.finite.basic
import number_theory.legendre_symbol.gauss_sum
/-!
# Quadrat... |
da6321087a969bebeaebcc00311da89f8160f184 | 92bfaf170880e47d55bf51d5a782fffd76db2f5f | /melting_point/X.lean | 09bf417ccec961ec77194d67c1514fd2f2d56efd | [] | no_license | forked-from-1kasper/melting_point | d33403e1985d876a2c7c06859962cc0c37570189 | e5ea4a0917de086b7e5b122e8d5aa90d2761d147 | refs/heads/master | 1,624,785,375,577 | 1,618,305,367,000 | 1,618,305,367,000 | 222,729,018 | 2 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 374 | lean | import melting_point.topology
open melting_point.topology
inductive X
| a | b | c | d
namespace X
def τ : set (set X) :=
{ { a },
{ c },
{ a, c },
{ a, b, c },
{ a, d, c },
∅, set.univ }
example : topology X := begin
fapply topology.mk, exact τ, enumeration,
repeat { intros x y u v,... |
a483db86280c773529ca7f2630939fc4ac2e5179 | 624f6f2ae8b3b1adc5f8f67a365c51d5126be45a | /tests/lean/run/type_class_performance1.lean | 26fd6950ad55cd5a0b2b9c07576b6a6611209089 | [
"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 | 176 | lean | #print USize
def foo1 (a b : UInt64) : Bool :=
a = b
def foo2 (a b : UInt16) : Bool :=
a = b
def foo3 (a b : UInt32) : Bool :=
a = b
def foo4 (a b : USize) : Bool :=
a = b
|
a3f247235ca9fd5a79a1cdfd4753644da05a208b | 947fa6c38e48771ae886239b4edce6db6e18d0fb | /src/group_theory/index.lean | 6d1281e746d6ca811f8739f733fdeeba68f68f59 | [
"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 | 11,624 | lean | /-
Copyright (c) 2021 Thomas Browning. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Thomas Browning
-/
import group_theory.quotient_group
import set_theory.cardinal.finite
/-!
# Index of a Subgroup
In this file we define the index of a subgroup, and prove several ... |
c30ad923683a880941e588ebb3c1adad2438aa91 | f68ef9a599ec5575db7b285d4960e63c5d464ccc | /Exercises/Lista 5/cap12-LucasMoschen.lean | db2066835b71b6c876673d340f41d15ba8aa6f49 | [] | no_license | lucasmoschen/discrete-mathematics | a38d5970cc571b0b9d202bf6a43efeb8ed6f66e3 | 0f1945cc5eb094814c926cd6ae4a8b4c5c579a1e | refs/heads/master | 1,677,111,757,003 | 1,611,500,097,000 | 1,611,500,097,000 | 205,903,359 | 1 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 4,180 | lean | open set
/-
alunos:
- Lucas Machado Moschen
-/
-- ex 1
section
variable U : Type
variables A B C : set U
example : ∀ x, x ∈ A ∩ C → x ∈ A ∪ B :=
assume x,
assume h: x ∈ A ∩ C,
show x ∈ A ∪ B, from or.inl h.left
example : ∀ x, x ∈ -(A ∪ B) → x ∈ -A :=
assume x,
assume : x ∈... |
4c01cd05919edacd22ab64ba6b3e9bec8c2774af | fa02ed5a3c9c0adee3c26887a16855e7841c668b | /src/data/real/basic.lean | d6e0d01b74a5140880e055072eebdbf66f160207 | [
"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 | 24,062 | lean | /-
Copyright (c) 2018 Mario Carneiro. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Mario Carneiro, Floris van Doorn
The (classical) real numbers ℝ. This is a direct construction
from Cauchy sequences.
-/
import order.conditionally_complete_lattice
import data.real.c... |
206436602e33f2a350d5218494b15722e621954a | 74addaa0e41490cbaf2abd313a764c96df57b05d | /Mathlib/Lean3Lib/init/meta/match_tactic.lean | 9f4126d88b62a5e887bf51589ea66dd7a35e8ba9 | [] | 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,210 | 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
-/
import Mathlib.PrePort
import Mathlib.Lean3Lib.init.meta.interactive_base
import Mathlib.Lean3Lib.init.function
namespace Mathlib
namespace tactic
/--... |
f4743bb0664a548625fddc9e4d9e2e9232d57876 | d1a52c3f208fa42c41df8278c3d280f075eb020c | /stage0/src/Lean/Meta/ExprDefEq.lean | 502d3addc8da6f272cfde824440ee7874e26c410 | [
"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 | 66,475 | 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.Structure
import Lean.Meta.WHNF
import Lean.Meta.InferType
import Lean.Meta.FunInfo
import Lean.Meta.Check
import Lean.Meta.... |
23fc20a679b70a1f86dc0d18d86f0406ae7dfe71 | 8d65764a9e5f0923a67fc435eb1a5a1d02fd80e3 | /src/tactic/tidy.lean | 0bc114e95eb3498d62d5f6b56a5c9baa45b0f7b7 | [
"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 | 4,317 | 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 tactic.auto_cases
import tactic.chain
import tactic.norm_cast
namespace tactic
namespace tidy
/-- Tag interactive tactics (locally) with `[tidy]` to add them... |
6160f88ad385c53ab04c3bec7be6a74af5aa4cdf | 32317185abf7e7c963f4c67c190aec61af6b3628 | /tests/lean/852.hlean | d6954c0b4c7e97e685f0c8e92fcfc6be4c805739 | [
"Apache-2.0"
] | permissive | Andrew-Zipperer-unorganized/lean | 198a2317f21198cd8d26e7085e484b86277f17f7 | dcb35008e1474a0abebe632b1dced120e5f8c009 | refs/heads/master | 1,622,526,520,945 | 1,453,576,559,000 | 1,454,612,842,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 119 | hlean | import algebra.category.functor.equivalence
-- print prefix category.equivalence
check @category.equivalence.to._Fun
|
e638cbfbd95c10ac298a7382b39cafc0fcc720fd | 302c785c90d40ad3d6be43d33bc6a558354cc2cf | /src/algebra/category/Module/monoidal.lean | c66fa8aeefe835ae8e12a1cd4e8a79d5ae6872e4 | [
"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,974 | lean | /-
Copyright (c) 2020 Scott Morrison. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Kevin Buzzard, Scott Morrison
-/
import category_theory.monoidal.braided
import algebra.category.Module.basic
import linear_algebra.tensor_product
/-!
# The symmetric monoidal categor... |
51c89228b9117e7a120018f7937d317abf77d29d | 57c233acf9386e610d99ed20ef139c5f97504ba3 | /src/analysis/special_functions/pow.lean | d184f3e67b230ecde6ecbd76376770bdde1c4697 | [
"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 | 70,295 | lean | /-
Copyright (c) 2018 Chris Hughes. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Chris Hughes, Abhimanyu Pallavi Sudhir, Jean Lo, Calle Sönne, Sébastien Gouëzel,
Rémy Degenne
-/
import analysis.special_functions.complex.log
/-!
# Power function on `ℂ`, `ℝ`, `ℝ≥0`,... |
4d2cf6091910564107d666f5c77ef695f4f8faec | fa01e273a2a9f22530e6adb1ed7d4f54bb15c8d7 | /src/N2O/Data/Sum.lean | 72b192df1fd59499c2242f3df2ae73a9a200bef0 | [
"LicenseRef-scancode-mit-taylor-variant",
"LicenseRef-scancode-warranty-disclaimer"
] | permissive | o89/n2o | 4c99afb11fff0a1e3dae6b3bc8a3b7fc42c314ac | 58c1fbf4ef892ed86bdc6b78ec9ca5a403715c2d | refs/heads/master | 1,670,314,676,229 | 1,669,086,375,000 | 1,669,086,375,000 | 200,506,953 | 16 | 6 | null | null | null | null | UTF-8 | Lean | false | false | 958 | lean | namespace Sum
def HasMap {γ α β : Type} : (α → β) → Sum γ α → Sum γ β
| f, Sum.inr val => Sum.inr (f val)
| _, Sum.inl er => Sum.inl er
instance {α : Type} : Functor (Sum α) :=
{ map := @HasMap α }
def HasSeq {γ α β : Type} (a : Sum γ (α → β)) (b : Unit → Sum γ α) : Sum γ β :=
match a, b () with
| Su... |
db732553c547cd48353e6bbeb63e4d861e9ffdc9 | a0e23cfdd129a671bf3154ee1a8a3a72bf4c7940 | /src/Std/Data/BinomialHeap.lean | 22596608ed543fbc0ba73fac3518465a4584e73f | [
"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 | 5,311 | 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
universe u
namespace BinomialHeapImp
structure HeapNodeAux (α : Type u) (h : Type u) where
val : α
rank : Nat
children : List h
induct... |
73060e72a379a7c97248d9a8050886d4fa3b67d2 | 4727251e0cd73359b15b664c3170e5d754078599 | /src/control/fold.lean | efb64c4d35c80ccbd73b2af8457177abcacef40c | [
"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 | 14,219 | lean | /-
Copyright (c) 2018 Simon Hudon. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Simon Hudon, Sean Leather
-/
import algebra.free_monoid
import algebra.opposites
import control.traversable.instances
import control.traversable.lemmas
import category_theory.endomorphism... |
ee232b298321fbeaa5e05a7b75bfcda81bfa2cc2 | d642a6b1261b2cbe691e53561ac777b924751b63 | /src/category_theory/types.lean | dcd960ea5d59ced70f74e239d66e6417332211eb | [
"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 | 5,320 | lean | /-
Copyright (c) 2017 Scott Morrison. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Stephen Morgan, Scott Morrison, Johannes Hölzl
-/
import category_theory.functor_category
import category_theory.fully_faithful
import data.equiv.basic
namespace category_theory
univ... |
c51f096488298a136f9f9256820400b950ad3211 | fa02ed5a3c9c0adee3c26887a16855e7841c668b | /src/algebra/lie/semisimple.lean | 8bca7ecad99092933a4c3e8189f2d45c6c7b9c22 | [
"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 | 4,433 | 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.solvable
/-!
# Semisimple Lie algebras
The famous Cartan-Dynkin-Killing classification of semisimple Lie algebras renders them one of the
most importan... |
ad686176c9d5eecf44d68c010c9414e368437849 | 137c667471a40116a7afd7261f030b30180468c2 | /src/measure_theory/borel_space.lean | dea350c11fd77d55c6aae49169ce0606e1dccef4 | [
"Apache-2.0"
] | permissive | bragadeesh153/mathlib | 46bf814cfb1eecb34b5d1549b9117dc60f657792 | b577bb2cd1f96eb47031878256856020b76f73cd | refs/heads/master | 1,687,435,188,334 | 1,626,384,207,000 | 1,626,384,207,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 65,801 | lean | /-
Copyright (c) 2017 Johannes Hölzl. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Johannes Hölzl, Yury Kudryashov
-/
import measure_theory.ae_measurable_sequence
import analysis.complex.basic
import analysis.normed_space.finite_dimension
import topology.G_delta
impo... |
a1f26e581e76e16b27b99b5d24f1b0bf77edbf5e | 57c233acf9386e610d99ed20ef139c5f97504ba3 | /src/ring_theory/coprime/basic.lean | e9b40b49ad2ac6770e5670ba640cf175aea938bb | [
"Apache-2.0"
] | permissive | robertylewis/mathlib | 3d16e3e6daf5ddde182473e03a1b601d2810952c | 1d13f5b932f5e40a8308e3840f96fc882fae01f0 | refs/heads/master | 1,651,379,945,369 | 1,644,276,960,000 | 1,644,276,960,000 | 98,875,504 | 0 | 0 | Apache-2.0 | 1,644,253,514,000 | 1,501,495,700,000 | Lean | UTF-8 | Lean | false | false | 10,545 | lean | /-
Copyright (c) 2020 Kenny Lau. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Kenny Lau, Ken Lee, Chris Hughes
-/
import tactic.ring
import algebra.ring.basic
/-!
# Coprime elements of a ring
## Main definitions
* `is_coprime x y`: that `x` and `y` are coprime, de... |
8ee0870cce81afcf8b458ac9be1ad4a82746ed6b | 35677d2df3f081738fa6b08138e03ee36bc33cad | /src/tactic/local_cache.lean | 552803c428806dc90b396bbb6356d7ce838e1b2d | [
"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,346 | 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 tactic.norm_num
namespace tactic
namespace local_cache
namespace internal
variables {α : Type} [reflected α] [has_reflect α]
meta def mk_full_namespa... |
52e1a57a983096bf9d79d8258fbbbad0b0e1e275 | a45212b1526d532e6e83c44ddca6a05795113ddc | /src/data/nat/choose.lean | fb45149ae27056b1221853e2eac75764217a86f2 | [
"Apache-2.0"
] | permissive | fpvandoorn/mathlib | b21ab4068db079cbb8590b58fda9cc4bc1f35df4 | b3433a51ea8bc07c4159c1073838fc0ee9b8f227 | refs/heads/master | 1,624,791,089,608 | 1,556,715,231,000 | 1,556,715,231,000 | 165,722,980 | 5 | 0 | Apache-2.0 | 1,552,657,455,000 | 1,547,494,646,000 | Lean | UTF-8 | Lean | false | false | 2,191 | lean | /-
Copyright (c) 2018 Chris Hughes. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Chris Hughes
Mostly based on Jeremy Avigad's choose file in lean 2
-/
import data.nat.basic data.nat.prime
import algebra.big_operators
open nat
lemma nat.prime.dvd_choose {p k : ℕ} (h... |
4b6d59562fb5cd9a0d872e526c89ceada3d93258 | 66a6486e19b71391cc438afee5f081a4257564ec | /algebra/product_group.hlean | fd8c2fe477b721ac37ce607a7459b3d74eccc7bf | [
"Apache-2.0"
] | permissive | spiceghello/Spectral | c8ccd1e32d4b6a9132ccee20fcba44b477cd0331 | 20023aa3de27c22ab9f9b4a177f5a1efdec2b19f | refs/heads/master | 1,611,263,374,078 | 1,523,349,717,000 | 1,523,349,717,000 | 92,312,239 | 0 | 0 | null | 1,495,642,470,000 | 1,495,642,470,000 | null | UTF-8 | Lean | false | false | 3,535 | hlean | /-
Copyright (c) 2015 Floris van Doorn. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Floris van Doorn, Egbert Rijke, Favonia
Constructions with groups
-/
import algebra.group_theory hit.set_quotient types.list types.sum .subgroup .quotient_group
open eq algebra is... |
7116aad6edbd00ebe7f332860610cc4f83bae8f6 | 6432ea7a083ff6ba21ea17af9ee47b9c371760f7 | /tests/lean/run/1848.lean | a59b1bdeb9269346a73428d70f1d5b2572e0c1bc | [
"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 | 164 | lean | abbrev f : Nat → Nat
| 0 => 0
| n + 1 => f n
termination_by _ n => n
mutual
abbrev f1 : Nat → Nat
| 0 => 0
| n + 1 => f1 n
end
termination_by _ n => n
|
41d97c1d213e738b8cb1a438c9813252cb25676a | d406927ab5617694ec9ea7001f101b7c9e3d9702 | /src/data/int/cast/field.lean | b96ce2bc5415c712dd91a68f0a8ec9aa0b6d6f08 | [
"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 | 1,148 | lean | /-
Copyright (c) 2017 Mario Carneiro. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Bhavik Mehta
-/
import data.int.cast.lemmas
import algebra.field.defs
import algebra.group_with_zero.units.lemmas
/-!
# Cast of integers into fields
This file concerns the canonical ... |
2dc436497d3386a6be9646972e57ad116822d581 | 4b846d8dabdc64e7ea03552bad8f7fa74763fc67 | /library/init/logic.lean | 55b4f0718e6b097694b62a19451a6d64cbacaef0 | [
"Apache-2.0"
] | permissive | pacchiano/lean | 9324b33f3ac3b5c5647285160f9f6ea8d0d767dc | fdadada3a970377a6df8afcd629a6f2eab6e84e8 | refs/heads/master | 1,611,357,380,399 | 1,489,870,101,000 | 1,489,870,101,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 36,969 | lean | /-
Copyright (c) 2014 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Leonardo de Moura, Jeremy Avigad, Floris van Doorn
-/
prelude
import init.core
universes u v w
@[inline] def id {α : Sort u} (a : α) : α := a
def flip {α : Sort u} {β : Sort ... |
743f0383d879e7c63363bad00da0111e3242dc71 | d406927ab5617694ec9ea7001f101b7c9e3d9702 | /src/order/filter/lift.lean | 4d53a096d868013f601503bd1d31e97546cd5dea | [
"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 | 19,330 | lean | /-
Copyright (c) 2019 Johannes Hölzl. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Johannes Hölzl
-/
import order.filter.bases
/-!
# Lift filters along filter and set functions
-/
open set
open_locale classical filter
namespace filter
variables {α : Type*} {β : T... |
e422184527c86f16c8a184e150d994b8ca3c240b | 7b66d83f3b69dae0a3dfb684d7ebe5e9e3f3c913 | /src/hints/thursday/afternoon/category_theory/exercise1/hint4.lean | 5efa0039d182745f944e32c60cc562a4b69fe91f | [] | permissive | dpochekutov/lftcm2020 | 58a09e10f0e638075b97884d3c2612eb90296adb | cdfbf1ac089f21058e523db73f2476c9c98ed16a | refs/heads/master | 1,669,226,265,076 | 1,594,629,725,000 | 1,594,629,725,000 | 279,213,346 | 1 | 0 | MIT | 1,594,622,757,000 | 1,594,615,843,000 | null | UTF-8 | Lean | false | false | 790 | lean | import algebra.category.CommRing
import category_theory.yoneda
noncomputable theory
open category_theory
open opposite
open polynomial
/-!
We can "follow our nose" on the two remaining proof obligations,
and in both cases we arrive at a result that is "just about polynomials",
so we call `extract_goal` and go prove ... |
3977e774d6cf5bb6097db545213345a1a4b657ab | aa5a655c05e5359a70646b7154e7cac59f0b4132 | /src/Lean/Elab/PreDefinition/Main.lean | 4eca00f2726764d1c15d10f5ed0971b07c17600f | [
"Apache-2.0"
] | permissive | lambdaxymox/lean4 | ae943c960a42247e06eff25c35338268d07454cb | 278d47c77270664ef29715faab467feac8a0f446 | refs/heads/master | 1,677,891,867,340 | 1,612,500,005,000 | 1,612,500,005,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 3,364 | lean | /-
Copyright (c) 2020 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Leonardo de Moura
-/
import Lean.Elab.PreDefinition.Basic
import Lean.Elab.PreDefinition.Structural
import Lean.Elab.PreDefinition.WF
namespace Lean.Elab
open Meta
open Term
pr... |
53710f91572d6860c08899c92095e48f1925213e | 8cae430f0a71442d02dbb1cbb14073b31048e4b0 | /src/analysis/complex/circle.lean | 1be99911891dd9262788acf4f29fb339c1c687c5 | [
"Apache-2.0"
] | permissive | leanprover-community/mathlib | 56a2cadd17ac88caf4ece0a775932fa26327ba0e | 442a83d738cb208d3600056c489be16900ba701d | refs/heads/master | 1,693,584,102,358 | 1,693,471,902,000 | 1,693,471,902,000 | 97,922,418 | 1,595 | 352 | Apache-2.0 | 1,694,693,445,000 | 1,500,624,130,000 | Lean | UTF-8 | Lean | false | false | 4,518 | lean | /-
Copyright (c) 2021 Heather Macbeth. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Heather Macbeth
-/
import analysis.special_functions.exp
import topology.continuous_function.basic
import analysis.normed.field.unit_ball
/-!
# The circle
> THIS FILE IS SYNCHRONIZE... |
cc5f04681d31cffae52ef74ed0c27eea756c43de | 737dc4b96c97368cb66b925eeea3ab633ec3d702 | /src/Lean/Expr.lean | 1239b2641869ac159a7191b7f1120e9637641bfa | [
"Apache-2.0"
] | permissive | Bioye97/lean4 | 1ace34638efd9913dc5991443777b01a08983289 | bc3900cbb9adda83eed7e6affeaade7cfd07716d | refs/heads/master | 1,690,589,820,211 | 1,631,051,000,000 | 1,631,067,598,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 39,580 | 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
-/
import Lean.Data.KVMap
import Lean.Level
namespace Lean
inductive Literal where
| natVal (val : Nat)
| strVal (val : String)
deriving Inhabited, BEq... |
6c5208d514013f4f008422d91dcad5cb019b80b1 | 36938939954e91f23dec66a02728db08a7acfcf9 | /lean4/deps/x86_semantics/src/X86Semantics/MachineMemory.lean | af5d70891ea24e4f139bfeb67e50ac54c94a5378 | [] | 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 | 3,459 | lean |
import Galois.Init.Nat
import Galois.Data.Bitvec
import X86Semantics.BufferMap
@[reducible]
def memaddr := bitvec 64
@[reducible]
def byte := UInt8
-- -- FIXME: maybe Nat is more efficient here?
-- inductive region
-- | has_contents : buffer byte -> region
-- | all_zeroes : Nat -> region
@[reducible]
def i... |
1fb35b077e0b40bdca6785c68e3a91d0c2659572 | 6432ea7a083ff6ba21ea17af9ee47b9c371760f7 | /tests/lean/sepByIndentQuot.lean | c5590f2dc60101e833aa9c2cb19bf98d1f1d8021 | [
"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 | 320 | lean | import Lean
open Lean Elab
#eval do
let x := mkIdent `x
let xs := #[x,x,x,x]
let ys := xs
PrettyPrinter.ppTerm <|<-
`(frobnicate { $[$xs:ident := $ys:term],* })
#eval do
let x := mkIdent `x
let xs := #[x,x,x,x]
let ys := xs
PrettyPrinter.ppTerm <|<-
`(frobnicate { $[$xs:ident := $ys:term]* })
|
192f3ffca95364f7cdc5a73a352eafd8698cfd65 | 8cae430f0a71442d02dbb1cbb14073b31048e4b0 | /src/category_theory/sigma/basic.lean | 24e2fdd2b5c91816fc99fdc70a303197e1895541 | [
"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,830 | 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.whiskering
import category_theory.functor.fully_faithful
import category_theory.natural_isomorphism
/-!
# Disjoint union of categories
> THIS FIL... |
d802ebd879f50099560513a330cd6dfea40d5b98 | fa02ed5a3c9c0adee3c26887a16855e7841c668b | /src/geometry/manifold/bump_function.lean | 692e0102b0d55321ab4c5abe0ebb9bd02aac21a8 | [
"Apache-2.0"
] | permissive | jjgarzella/mathlib | 96a345378c4e0bf26cf604aed84f90329e4896a2 | 395d8716c3ad03747059d482090e2bb97db612c8 | refs/heads/master | 1,686,480,124,379 | 1,625,163,323,000 | 1,625,163,323,000 | 281,190,421 | 2 | 0 | Apache-2.0 | 1,595,268,170,000 | 1,595,268,169,000 | null | UTF-8 | Lean | false | false | 28,073 | lean | /-
Copyright (c) 2021 Yury Kudryashov. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Yury Kudryashov
-/
import analysis.calculus.specific_functions
import geometry.manifold.diffeomorph
import geometry.manifold.instances.real
/-!
# Smooth bump functions on a smooth ma... |
d3558b0e91330be898684a1542ab82ca5da5ea7d | 5915a2aa3eb6444e6ae7e5cb3c795ac9e1986066 | /src/topology/algebra/group.lean | 76526560a96fb9c24133a16a746084deadf5a8ca | [
"Apache-2.0"
] | permissive | petari52/mathlib | 44200ab49933b86373e8e3ff183d6fea59c33ca1 | e8bdc7fc14c6d56d4040892d16929f310e9d03d5 | refs/heads/master | 1,588,162,505,688 | 1,552,831,653,000 | 1,552,831,653,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 13,675 | lean | /-
Copyright (c) 2017 Johannes Hölzl. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Johannes Hölzl, Mario Carneiro, Patrick Massot
Theory of topological groups.
-/
import data.equiv.algebra
import group_theory.quotient_group
import topology.algebra.monoid topology.o... |
aa83b54df4a8c987afeb6a9720bcb9dedcf9656b | 0e175f34f8dca5ea099671777e8d7446d7d74227 | /library/init/data/int/basic.lean | 4c52a0f09601e781a3204e770b62f5b2331081be | [
"Apache-2.0"
] | permissive | utensil-contrib/lean | b31266738071c654d96dac8b35d9ccffc8172fda | a28b9c8f78d982a4e82b1e4f7ce7988d87183ae8 | refs/heads/master | 1,670,045,564,075 | 1,597,397,599,000 | 1,597,397,599,000 | 287,528,503 | 0 | 0 | Apache-2.0 | 1,597,408,338,000 | 1,597,408,337,000 | null | UTF-8 | Lean | false | false | 23,417 | lean | /-
Copyright (c) 2016 Jeremy Avigad. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Jeremy Avigad
The integers, with addition, multiplication, and subtraction.
-/
prelude
import init.data.nat.lemmas init.data.nat.gcd
open nat
/- the type, coercions, and notation -/
... |
e459c1594ec9336b53ff292ccdc2a2dd8748f0ea | a721fe7446524f18ba361625fc01033d9c8b7a78 | /src/principia/real/basic.lean | 81f79b7c6f53035191704c4dbba4bad81e21f66b | [] | no_license | Sterrs/leaning | 8fd80d1f0a6117a220bb2e57ece639b9a63deadc | 3901cc953694b33adda86cb88ca30ba99594db31 | refs/heads/master | 1,627,023,822,744 | 1,616,515,221,000 | 1,616,515,221,000 | 245,512,190 | 2 | 0 | null | 1,616,429,050,000 | 1,583,527,118,000 | Lean | UTF-8 | Lean | false | false | 3,539 | lean | import .cau_seq
import ..logic
namespace hidden
open myring
open ordered_myring
open myfield
open ordered_myfield
namespace cau_seq
private lemma class_setoid (f g : cau_seq) :
⟦f⟧ = ⟦g⟧ ↔ f ≈ g := iff.intro quotient.exact quotient.sound
theorem class_equiv {f g : cau_seq} :
⟦f⟧ = ⟦g⟧ ↔ cau_seq.equivalent f g :=
... |
9601c7fd03b2716bd8a048dd139d58db5c8be7e8 | bbecf0f1968d1fba4124103e4f6b55251d08e9c4 | /src/meta/rb_map.lean | 45d44a1ac847edd72cea581214bf9146508016a6 | [
"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 | 7,681 | lean | /-
Copyright (c) 2018 Robert Y. Lewis. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Robert Y. Lewis
-/
import data.list.defs
/-!
# rb_map
This file defines additional operations on native rb_maps and rb_sets.
These structures are defined in core in `init.meta.rb_ma... |
4c01eb393fbd78d0f469d6c5b446ef7718ecb217 | 9be442d9ec2fcf442516ed6e9e1660aa9071b7bd | /stage0/src/Lean/Elab/PreDefinition/Structural/Preprocess.lean | eca66fd091b7122395aad04fad79c1d5996c4ee9 | [
"Apache-2.0",
"LLVM-exception",
"NCSA",
"LGPL-3.0-only",
"LicenseRef-scancode-inner-net-2.0",
"BSD-3-Clause",
"LGPL-2.0-or-later",
"Spencer-94",
"LGPL-2.1-or-later",
"HPND",
"LicenseRef-scancode-pcre",
"ISC",
"LGPL-2.1-only",
"LicenseRef-scancode-other-permissive",
"SunPro",
"CMU-Mach"... | permissive | EdAyers/lean4 | 57ac632d6b0789cb91fab2170e8c9e40441221bd | 37ba0df5841bde51dbc2329da81ac23d4f6a4de4 | refs/heads/master | 1,676,463,245,298 | 1,660,619,433,000 | 1,660,619,433,000 | 183,433,437 | 1 | 0 | Apache-2.0 | 1,657,612,672,000 | 1,556,196,574,000 | Lean | UTF-8 | Lean | false | false | 870 | lean | /-
Copyright (c) 2021 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Leonardo de Moura
-/
import Lean.Meta.Transform
namespace Lean.Elab.Structural
open Meta
private def shouldBetaReduce (e : Expr) (recFnName : Name) : Bool :=
if e.isHeadBeta... |
9ea1995fe8a2a4c313603ae21db8a533be821ddd | e030b0259b777fedcdf73dd966f3f1556d392178 | /tests/lean/bad_structures.lean | 022a291cabd4a46109900cc480fd0157b0f3c64e | [
"Apache-2.0"
] | permissive | fgdorais/lean | 17b46a095b70b21fa0790ce74876658dc5faca06 | c3b7c54d7cca7aaa25328f0a5660b6b75fe26055 | refs/heads/master | 1,611,523,590,686 | 1,484,412,902,000 | 1,484,412,902,000 | 38,489,734 | 0 | 0 | null | 1,435,923,380,000 | 1,435,923,379,000 | null | UTF-8 | Lean | false | false | 341 | lean | prelude namespace foo structure {l} prod (A : Type l) (B : Type l) :=
(pr1 : A) (pr2 : B)
structure {l} prod1 (A : Type l) (B : Type l) : Type :=
(pr1 : A) (pr2 : B)
structure {l} prod2 (A : Type l) (B : Type l) : Type l :=
(pr1 : A) (pr2 : B)
structure {l} prod3 (A : Type l) (B : Type l) : Type (max 1 l) :=
(pr1 : ... |
ea3e0714630ea258d2fbf3b8d28809c021198aa6 | 271e26e338b0c14544a889c31c30b39c989f2e0f | /src/Init/Lean/Compiler/IR/EmitUtil.lean | 2a12334bb87fee5a98c7db9913140b1cb5ab3fee | [
"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 | 4,162 | 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.Conditional
import Init.Lean.Compiler.InitAttr
import Init.Lean.Compiler.IR.CompilerM
/- Helper functions for backend code gene... |
32eef9a5fb6820578dcd07bd4f82ffc8d66851ab | 302c785c90d40ad3d6be43d33bc6a558354cc2cf | /src/category_theory/monoidal/category.lean | 8cd913fa4cdd95797b831aa89e20d00e500fbd34 | [
"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 | 17,524 | lean | /-
Copyright (c) 2018 Michael Jendrusch. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Michael Jendrusch, Scott Morrison, Bhavik Mehta
-/
import category_theory.products.basic
/-!
# Monoidal categories
A monoidal category is a category equipped with a tensor product... |
64058013330bfdf905f965b24ae47f496f97eb3b | 6432ea7a083ff6ba21ea17af9ee47b9c371760f7 | /tests/lean/ppMotives.lean | 79458499fd107186943ce641981b7248f70edca3 | [
"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 | 474 | lean | set_option pp.motives.pi false
#print Nat.add
set_option pp.motives.pi true
#print Nat.add
theorem ex : ∀ {α β : Sort u} (h : α = β) (a : α), HEq (cast h a) a
| α, _, rfl, a => HEq.refl a
set_option pp.motives.nonConst false
#print ex
set_option pp.motives.nonConst true
#print ex
noncomputable def fact (n : ... |
717c64661ebf13467d7739a99691a361b5376a1b | c1a29ca460720df88ab68dc42d9a1a02e029d505 | /examples/basics/alg_identities_2_2.lean | 6082550207c7d0af7e701bdfbfd8a913616d4dc1 | [] | no_license | agusakov/mathematics_in_lean | acb5b3d659e4522ae4b4836ea550527f03f6546c | 2539562e4d91c858c73dbecb5b282ce1a7d38b6d | refs/heads/master | 1,665,963,365,241 | 1,592,080,022,000 | 1,592,080,022,000 | 272,078,062 | 0 | 0 | null | 1,592,078,772,000 | 1,592,078,772,000 | null | UTF-8 | Lean | false | false | 17,011 | lean | import algebra.ring
import tactic
import algebra.group
import algebra.group_power
variables (R : Type*) [ring R]
/-Mathematically, a ring consists of a
- set, 𝑅,
- operations + ×, and
- constants 0 and 1, and
- an operation 𝑥 ↦ −𝑥 such that:
* 𝑅 with + is an abelian group, with 0 as the
addit... |
fe14a767fde63351d33e200440cf56af85035d04 | 22e97a5d648fc451e25a06c668dc03ac7ed7bc25 | /src/tactic/suggest.lean | 8f842946e1a97dfadadfde1a5f47fb1615f1a7d3 | [
"Apache-2.0"
] | permissive | keeferrowan/mathlib | f2818da875dbc7780830d09bd4c526b0764a4e50 | aad2dfc40e8e6a7e258287a7c1580318e865817e | refs/heads/master | 1,661,736,426,952 | 1,590,438,032,000 | 1,590,438,032,000 | 266,892,663 | 0 | 0 | Apache-2.0 | 1,590,445,835,000 | 1,590,445,835,000 | null | UTF-8 | Lean | false | false | 17,392 | lean | /-
Copyright (c) 2019 Lucas Allen. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Lucas Allen and Scott Morrison
-/
import data.mllist
import tactic.solve_by_elim
/-!
# `suggest` and `library_search`
`suggest` and `library_search` are a pair of tactics for applying l... |
2de2d2f3703753ac6a03388ce2ff23a404fef42a | 6432ea7a083ff6ba21ea17af9ee47b9c371760f7 | /tests/lean/loopErrorRecovery.lean | 577ee72a2e4ccdce7be3f1ab24ec908e3a55c7af | [
"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 | 44 | lean | example : (p ∨ p) → p := fun h => match
|
f340352e162965315a837c91438c6356d399788f | ad0c7d243dc1bd563419e2767ed42fb323d7beea | /data/polynomial.lean | 01d0823dc6ac2076101f5d92130eed57da0a19e5 | [
"Apache-2.0"
] | permissive | sebzim4500/mathlib | e0b5a63b1655f910dee30badf09bd7e191d3cf30 | 6997cafbd3a7325af5cb318561768c316ceb7757 | refs/heads/master | 1,585,549,958,618 | 1,538,221,723,000 | 1,538,221,723,000 | 150,869,076 | 0 | 0 | Apache-2.0 | 1,538,229,323,000 | 1,538,229,323,000 | null | UTF-8 | Lean | false | false | 50,172 | 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, Jens Wagemaker
Theory of univariate polynomials, represented as `ℕ →₀ α`, where α is a commutative semiring.
-/
import data.finsupp algebra.euclidean_domai... |
6c5c8334679c181484d84e9f386ca52b4f510755 | 6432ea7a083ff6ba21ea17af9ee47b9c371760f7 | /tests/lean/structDefValueOverride.lean | a03501658378c422985d237b40c2f4c0e173bdd0 | [
"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 | 84 | lean | structure A where
x : Nat
structure B extends A where
x := 1
x := 2 -- Error
|
9c930e107cf54ab7f73831ae82ad6c5062734a6c | 74addaa0e41490cbaf2abd313a764c96df57b05d | /Mathlib/ring_theory/adjoin.lean | 00f3fad033a6d7fa41e2a7c815e20d0f963687d4 | [] | 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 | 7,816 | lean | /-
Copyright (c) 2019 Kenny Lau. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Kenny Lau
-/
import Mathlib.PrePort
import Mathlib.Lean3Lib.init.default
import Mathlib.ring_theory.polynomial.basic
import Mathlib.algebra.algebra.subalgebra
import Mathlib.PostPort
unive... |
298314554a6e0e46bb54297525fd59faabaec6a3 | 2eab05920d6eeb06665e1a6df77b3157354316ad | /src/data/list/defs.lean | 74c3dbcb49d371f7767978b086c8265d8a53015d | [
"Apache-2.0"
] | permissive | ayush1801/mathlib | 78949b9f789f488148142221606bf15c02b960d2 | ce164e28f262acbb3de6281b3b03660a9f744e3c | refs/heads/master | 1,692,886,907,941 | 1,635,270,866,000 | 1,635,270,866,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 38,253 | lean | /-
Copyright (c) 2014 Parikshit Khanna. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Parikshit Khanna, Jeremy Avigad, Leonardo de Moura, Floris van Doorn, Mario Carneiro
-/
import data.option.defs
import logic.basic
import tactic.cache
/-!
## Definitions on lists
Th... |
b3ae4b50f82f73833a62b49ee51a3c318d0b3f18 | d406927ab5617694ec9ea7001f101b7c9e3d9702 | /src/number_theory/legendre_symbol/gauss_sum.lean | 1045a100f6a1801deb5786324eefbb7f6fcadb32 | [
"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 | 13,509 | lean | /-
Copyright (c) 2022 Michael Stoll. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Michael Stoll
-/
import number_theory.legendre_symbol.add_character
import number_theory.legendre_symbol.zmod_char
import algebra.char_p.char_and_card
/-!
# Gauss sums
We define the G... |
3e5f3fc88ab6437dcfdf26b4ed4de840460026b5 | 05f637fa14ac28031cb1ea92086a0f4eb23ff2b1 | /tests/lean/interactive/t9.lean | f83b0d405ac8c2b9faf73ed7b6ab5088b0c10bae | [
"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 | 640 | lean | (* import("tactic.lua") *)
theorem T1 (A B : Bool) : A /\ B → B /\ A :=
fun H : A /\ B,
let main : B /\ A :=
(let H1 : B := _,
H2 : A := _
in _)
in main.
conj_hyp.
exact.
done.
conj_hyp.
exact.
done.
apply and_intro.
exact.
done.
(*
simple_ta... |
697be045230e436b49def6b68995a7050dd62b4a | cc62cd292c1acc80a10b1c645915b70d2cdee661 | /src/category_theory/concrete.lean | e69ac58642f45b7a4f0422cfce9ecb40489263b7 | [] | no_license | RitaAhmadi/lean-category-theory | 4afb881c4b387ee2c8ce706c454fbf9db8897a29 | a27b4ae5eac978e9188d2e867c3d11d9a5b87a9e | refs/heads/master | 1,651,786,183,402 | 1,565,604,314,000 | 1,565,604,314,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 487 | lean | -- Copyright (c) 2018 Scott Morrison. All rights reserved.
-- Released under Apache 2.0 license as described in the file LICENSE.
-- Authors: Scott Morrison
import category_theory.equivalence
import category_theory.types
namespace category_theory
universes u v
class concrete (C : Type u) [category.{v} C] :=
(fibr... |
6517131f135ac0f8c89cc5df3323bb75c7648d52 | b7f22e51856f4989b970961f794f1c435f9b8f78 | /tests/lean/run/blast1.lean | a7acda4fabea650f4d365b7cf17a035a21bcba90 | [
"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 | 95 | lean | set_option blast.strategy "preprocess"
example (a b : Prop) (Ha : a) (Hb : b) : a :=
by blast
|
10d2e3d154ace3476a02c1a3033fbf204dec4e00 | 2eab05920d6eeb06665e1a6df77b3157354316ad | /src/algebra/group/to_additive.lean | 3291e73e0b0bd60fd21346174590e91e6688a359 | [
"Apache-2.0"
] | permissive | ayush1801/mathlib | 78949b9f789f488148142221606bf15c02b960d2 | ce164e28f262acbb3de6281b3b03660a9f744e3c | refs/heads/master | 1,692,886,907,941 | 1,635,270,866,000 | 1,635,270,866,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 24,598 | lean | /-
Copyright (c) 2017 Mario Carneiro. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Mario Carneiro, Yury Kudryashov, Floris van Doorn
-/
import tactic.transform_decl
import tactic.algebra
/-!
# Transport multiplicative to additive
This file defines an attribute `to_... |
4981c5f18bd4bcd617a96ab4ed7b3fd57007c865 | cf39355caa609c0f33405126beee2739aa3cb77e | /tests/lean/run/1782.lean | be4062ff69865a10d7e5b0bcff1d30ba926bf4c7 | [
"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 | 706 | lean | mutual inductive a, b, c
with a : Type
| foo : a
with b : Type
| bar : b
with c : Type
| baz : c
mutual def f, g, h
with f : a → nat
| a.foo := 0
with g : b → nat
| b.bar := 1
with h : c → nat
| c.baz := 2
example : f a.foo = 0 := by simp [f]
example : g b.bar = 1 := by simp [g]
example : h c.baz = 2 := by simp [h]
... |
20d071434cab61952ad13e6d36fa15f46976b063 | 35677d2df3f081738fa6b08138e03ee36bc33cad | /src/category_theory/adjunction/limits.lean | 560c7e4f92294146df7ede85c0be774d2d9a081d | [
"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,687 | 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... |
18a64a7305c3cd850a36ca4dd6a9d079e99f15df | 94e33a31faa76775069b071adea97e86e218a8ee | /src/set_theory/game/birthday.lean | 48358f5a9e29ce9f8669b191c6191cf7f7ac41f9 | [
"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 | 4,463 | 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
/-!
# Birthdays of games
The birthday of a game is an ordinal that represents at which "step" the game was c... |
0c472d9568629a61523397f048654a947e9ccefe | 01f6b345a06ece970e589d4bbc68ee8b9b2cf58a | /src/minpoly.lean | ad7d1094dc998e27430d82d6c1ecff1e93e6dcb3 | [] | no_license | mariainesdff/norm_extensions_journal_submission | 6077acb98a7200de4553e653d81d54fb5d2314c8 | d396130660935464fbc683f9aaf37fff8a890baa | refs/heads/master | 1,686,685,693,347 | 1,684,065,115,000 | 1,684,065,115,000 | 603,823,641 | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 6,195 | lean | /-
Copyright (c) 2023 María Inés de Frutos-Fernández. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: María Inés de Frutos-Fernández
-/
import field_theory.normal
/-!
# Minpoly
We prove some auxiliary lemmas about minimal polynomials.
## Main Definitions
* `minpoly... |
709fcee9f629c333bfe93b43beecaf8250f6e2ab | 491068d2ad28831e7dade8d6dff871c3e49d9431 | /tests/lean/unfold.lean | a743baab2ff92c0f84b3ddeb82ed587856a08222 | [
"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 | 704 | lean | import data.nat
open nat
definition f (a b : nat) := a + b
example (a b : nat) : f a b = 0 → f b a = 0 :=
begin
intro h,
unfold f at h,
state,
unfold f,
state,
rewrite [add.comm],
exact h
end
example (a b : nat) : f a b = 0 → f b a = 0 :=
begin
intro h,
unfold f at *,
state,
rewrite [add.comm],... |
923d3e896cccff7c24c82c1fd1a56616f802645d | d406927ab5617694ec9ea7001f101b7c9e3d9702 | /src/algebra/module/pid.lean | 4e5ee7755ede0179ea0b47b267cecb9f61764d81 | [
"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 | 13,100 | lean | /-
Copyright (c) 2022 Pierre-Alexandre Bazin. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Pierre-Alexandre Bazin
-/
import algebra.module.dedekind_domain
import linear_algebra.free_module.pid
import algebra.module.projective
import algebra.category.Module.biproducts... |
7e654b099f2cd73ce7caaa374d7cae171a423b21 | 63abd62053d479eae5abf4951554e1064a4c45b4 | /scripts/yaml_check.lean | 7e3ba846c293f9e40b3759d1d3c70d70fd9c9e9b | [
"Apache-2.0"
] | permissive | Lix0120/mathlib | 0020745240315ed0e517cbf32e738d8f9811dd80 | e14c37827456fc6707f31b4d1d16f1f3a3205e91 | refs/heads/master | 1,673,102,855,024 | 1,604,151,044,000 | 1,604,151,044,000 | 308,930,245 | 0 | 0 | Apache-2.0 | 1,604,164,710,000 | 1,604,163,547,000 | null | UTF-8 | Lean | false | false | 1,798 | lean | import data.buffer.parser
import system.io
import tactic.core
import all
open native
section
variables {F : Type → Type} [alternative F]
def fails {α} (x : F α) : F bool := (x $> ff) <|> pure tt
end
open io io.fs tactic
meta instance coe_tactic_to_io {α} : has_coe (tactic α) (io α) :=
⟨run_tactic⟩
meta def list.... |
d8bf024bddb9135280b803a60dcf5290a0c2432d | 01ae0d022f2e2fefdaaa898938c1ac1fbce3b3ab | /categories/isomorphism.lean | a8c39f796d5257cb605860987f7212ce355f4be0 | [] | 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 | 2,581 | 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
import .category
open categories
namespace categories.isomorphism
structure Isomorphism ( C: Category ) ( X Y : C.Obj ) :=
(morp... |
d28ef6da43f65ef1439c533df7c1ef3e4d0b82b9 | 63abd62053d479eae5abf4951554e1064a4c45b4 | /src/linear_algebra/linear_action.lean | db3875a7907869889b9636bbe57963006a1b4711 | [
"Apache-2.0"
] | permissive | Lix0120/mathlib | 0020745240315ed0e517cbf32e738d8f9811dd80 | e14c37827456fc6707f31b4d1d16f1f3a3205e91 | refs/heads/master | 1,673,102,855,024 | 1,604,151,044,000 | 1,604,151,044,000 | 308,930,245 | 0 | 0 | Apache-2.0 | 1,604,164,710,000 | 1,604,163,547,000 | null | UTF-8 | Lean | false | false | 3,334 | lean | /-
Copyright (c) 2020 Oliver Nash. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Oliver Nash
-/
import linear_algebra.basic
/-!
# Linear actions
For modules M and N, we can regard a linear map M →ₗ End N as a "linear action" of M on N.
In this file we introduce the ... |
1c5fbf7cf3e08f4d681a463924c66c40a00ec4fb | b7f22e51856f4989b970961f794f1c435f9b8f78 | /hott/algebra/category/functor/equivalence.hlean | f0c02fe139f04926038073356082d3f621e01935 | [
"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 | 18,926 | hlean | /-
Copyright (c) 2015 Floris van Doorn. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Floris van Doorn
Functors which are equivalences or isomorphisms
-/
import .adjoint
open eq functor iso prod nat_trans is_equiv equiv is_trunc sigma.ops
namespace category
vari... |
67ea7b552e90142dad46b7c66267a1d17117b728 | 618003631150032a5676f229d13a079ac875ff77 | /src/algebra/category/CommRing/limits.lean | 040cbc2021ed8abe486e9ca3ad3d35ef8575c44f | [
"Apache-2.0"
] | permissive | awainverse/mathlib | 939b68c8486df66cfda64d327ad3d9165248c777 | ea76bd8f3ca0a8bf0a166a06a475b10663dec44a | refs/heads/master | 1,659,592,962,036 | 1,590,987,592,000 | 1,590,987,592,000 | 268,436,019 | 1 | 0 | Apache-2.0 | 1,590,990,500,000 | 1,590,990,500,000 | null | UTF-8 | Lean | false | false | 4,950 | lean | /-
Copyright (c) 2019 Scott Morrison. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Scott Morrison
-/
import algebra.category.CommRing.basic
/-!
# The category of commutative rings has all limits
Further, these limits are preserved by the forgetful functor --- that ... |
0509ab01b02aac489b9c3e35d1de082406bbebd1 | d1a52c3f208fa42c41df8278c3d280f075eb020c | /tests/lean/ppExpr.lean | dcb3a8c19c33597575c949f897adc357fb8268af | [
"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 | 656 | lean | import Lean
/-! Pretty printing tests for `Expr`s that cannot be generated by parsing+elaborating. -/
open Lean
def test (e : Expr) : MetaM Unit := do
IO.println (← PrettyPrinter.ppExpr Name.anonymous [] e)
-- loose bound variable
#eval test (mkBVar 0)
-- anonymous binder
#eval test (mkLambda Name.anonymous Bin... |
6025adbdb2ce62307f29d91fc05480ba72b59294 | 4fa161becb8ce7378a709f5992a594764699e268 | /src/data/holor.lean | 1e6bd8ee4ccc0b40945984ada66485bc3e01a5d5 | [
"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 | 14,213 | lean | /-
Copyright (c) 2018 Alexander Bentkamp. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Alexander Bentkamp
-/
import algebra.pi_instances
/-!
# Basic properties of holors
Holors are indexed collections of tensor coefficients. Confusingly,
they are often called tenso... |
2eb318ec6ce1d440b86cfd00e387ca290574b4cf | 74addaa0e41490cbaf2abd313a764c96df57b05d | /Mathlib/data/equiv/local_equiv_auto.lean | c4432e6c275a03653b7d3b186b2587ac79954fcf | [] | 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 | 27,130 | 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 Mathlib.PrePort
import Mathlib.Lean3Lib.init.default
import Mathlib.data.equiv.basic
import Mathlib.PostPort
universes u_5 u_6 l u_1 u_2 u_3 u_4
names... |
67ccd3a0855fb7a24aabf92bb0b1385465babf1b | 8cae430f0a71442d02dbb1cbb14073b31048e4b0 | /src/topology/algebra/infinite_sum/order.lean | 24371cd77237c94966dabe5795540d1d611c9119 | [
"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,633 | lean | /-
Copyright (c) 2017 Johannes Hölzl. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Johannes Hölzl
-/
import algebra.order.archimedean
import topology.algebra.infinite_sum.basic
import topology.algebra.order.field
import topology.algebra.order.monotone_convergence
/-... |
d99935953564a62516ca37752a94fcf6f65eef67 | 77c5b91fae1b966ddd1db969ba37b6f0e4901e88 | /src/data/nat/factorial/basic.lean | 02234da69b69fe914aa20ae37e5b3ae9352e6c04 | [
"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 | 14,936 | 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 defines the factorial, along with the... |
b61d67f84ea7d47489681f32e2ba65ed49a3985a | e030b0259b777fedcdf73dd966f3f1556d392178 | /tests/lean/run/IO2.lean | 065ad0cdac57bb4a8966ca6a6370fb50c7be321c | [
"Apache-2.0"
] | permissive | fgdorais/lean | 17b46a095b70b21fa0790ce74876658dc5faca06 | c3b7c54d7cca7aaa25328f0a5660b6b75fe26055 | refs/heads/master | 1,611,523,590,686 | 1,484,412,902,000 | 1,484,412,902,000 | 38,489,734 | 0 | 0 | null | 1,435,923,380,000 | 1,435,923,379,000 | null | UTF-8 | Lean | false | false | 392 | lean | import system.io
open list
/- B and unit must be in the same universe
So, we must put B at Type₁ or use poly_unit
since unit is at Type₁
-/
definition foreach {A : Type} {B : Type} : list A → (A → io B) → io poly_unit
| [] f := return poly_unit.star
| (x::xs) f := do f x, foreach xs f
vm_eval foreach [1,2... |
9f29391587f4b24f16a0bc05d99278d24a578d65 | 618003631150032a5676f229d13a079ac875ff77 | /src/category_theory/connected.lean | a9e3b1d6b8cf75b0f48c51fd93643b3d9a71dbf3 | [
"Apache-2.0"
] | permissive | awainverse/mathlib | 939b68c8486df66cfda64d327ad3d9165248c777 | ea76bd8f3ca0a8bf0a166a06a475b10663dec44a | refs/heads/master | 1,659,592,962,036 | 1,590,987,592,000 | 1,590,987,592,000 | 268,436,019 | 1 | 0 | Apache-2.0 | 1,590,990,500,000 | 1,590,990,500,000 | null | UTF-8 | Lean | false | false | 8,802 | 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.const
import category_theory.discrete_category
import category_theory.eq_to_hom
/-!
# Connected category
Define a connected category as a _nonemp... |
70adfe23ae0b83e4acdd8b49a3678c1b506b0165 | ebf7140a9ea507409ff4c994124fa36e79b4ae35 | /src/solutions/thursday/order.lean | bd5ab73211c4dd4692546c0b2f0fa70bb8e5ce67 | [] | 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 | 19,816 | 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... |
6648f9353bb1ea8ab56bdfcc2cf2e9fd3a035aeb | ae1e94c332e17c7dc7051ce976d5a9eebe7ab8a5 | /stage0/src/Std/Data/AssocList.lean | b947416c37bb62df7bd57ecc458ccc2b16e36e8b | [
"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 | 3,108 | lean | /-
Copyright (c) 2019 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Author: Leonardo de Moura
-/
universes u v w w'
namespace Std
/- List-like type to avoid extra level of indirection -/
inductive AssocList (α : Type u) (β : Type v) where
| nil : Asso... |
ea61a81ae6a06de932a38a7471a4d6804c8f6cbc | d406927ab5617694ec9ea7001f101b7c9e3d9702 | /src/algebra/order/field/canonical/defs.lean | 6cfa773e4c813d44d6649f12ffa08a1a741224c7 | [
"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 | 1,385 | lean | /-
Copyright (c) 2014 Robert Lewis. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Robert Lewis, Leonardo de Moura, Mario Carneiro, Floris van Doorn
-/
import algebra.order.field.defs
import algebra.order.ring.canonical
import algebra.order.with_zero
/-!
# Canonically... |
0558ffe8adacd6bc3b18118408668dfc9c934efa | bbecf0f1968d1fba4124103e4f6b55251d08e9c4 | /src/data/equiv/fin.lean | 7820c1e2f4a19de1fa03e4abefa3c24a60d77904 | [
"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 | 13,806 | lean | /-
Copyright (c) 2018 Kenny Lau. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Kenny Lau
-/
import data.fin.basic
import data.equiv.basic
import tactic.norm_num
/-!
# Equivalences for `fin n`
-/
universe variables u
variables {m n : ℕ}
/-- Equivalence between `fin... |
fd84913fc6a80a6913e69ad4e94651ba5949861f | 7453f4f6074a6d5ce92b7bee2b29c409c061fbef | /src/Interpolation/rolle_general-fin.lean | bf80fb9eca8e57e31630d7610c574fdb6f856500 | [
"Apache-2.0"
] | permissive | stanescuUW/numerical-analysis-with-Lean | b7b26755b8e925279f3afc1caa16b0666fc77ef8 | 98e6974f8b68cc5232ceff40535d776a33444c73 | refs/heads/master | 1,670,371,433,242 | 1,598,204,960,000 | 1,598,204,960,000 | 282,081,575 | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 6,555 | lean | import analysis.calculus.local_extr
import analysis.calculus.times_cont_diff
import analysis.calculus.iterated_deriv
import tactic data.fin
import .fin_lemmas
open set
namespace rolle_general
-- Result below thanks to Sebastien Gouezel
-- It will be added to mathlib in a more general form
lemma times_cont_diff_on_su... |
9a08f153a1cd2ffd04cb315ddde73d81ed130e29 | 82b86ba2ae0d5aed0f01f49c46db5afec0eb2bd7 | /src/Lean/Meta/AbstractNestedProofs.lean | 31df03878657514c40db642688b49e585a4368cf | [
"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 | 2,610 | lean | /-
Copyright (c) 2020 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Leonardo de Moura
-/
import Lean.Meta.Closure
namespace Lean.Meta
namespace AbstractNestedProofs
def isNonTrivialProof (e : Expr) : MetaM Bool := do
if !(← isProof e) then
... |
5d390a4998d50c7875a3df47083108b3e08a4c50 | 9dc8cecdf3c4634764a18254e94d43da07142918 | /src/geometry/euclidean/oriented_angle.lean | c803acefa02d39276eeefc6caf6799440a4a17eb | [
"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 | 83,662 | 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.complex.arg
import analysis.inner_product_space.orientation
import analysis.inner_product_space.pi_L2
import analysis.special_functions.complex.circle
imp... |
733d69a84d840059c20dc212da1094373dc2f620 | 618003631150032a5676f229d13a079ac875ff77 | /src/data/string/defs.lean | 8f99f1282902b66b5dae946bfa02dd6f695d9149 | [
"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,622 | lean | /-
Copyright (c) 2019 Simon Hudon. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Author: Simon Hudon, Keeley Hoek, Floris van Doorn
-/
import data.list.defs
namespace string
/-- `s.split_on c` tokenizes `s : string` on `c : char`. -/
def split_on (s : string) (c : char) : li... |
b8c95831ac7405cf912f201ad0fe95c09440b94d | 4727251e0cd73359b15b664c3170e5d754078599 | /src/analysis/normed_space/operator_norm.lean | 487928749e3cc281b842c88169f66a860a059a6d | [
"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 | 87,134 | lean | /-
Copyright (c) 2019 Jan-David Salchow. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Jan-David Salchow, Sébastien Gouëzel, Jean Lo
-/
import algebra.algebra.tower
import analysis.asymptotics.asymptotics
import analysis.normed_space.linear_isometry
import analysis.no... |
a748e3b1858dca5032776e901131b5f14faed16e | d406927ab5617694ec9ea7001f101b7c9e3d9702 | /src/topology/basic.lean | 12f0028be14377cb5031ba83f3779e464917747b | [
"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 | 73,446 | 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, Jeremy Avigad
-/
import order.filter.ultrafilter
import order.filter.partial
import algebra.support
import order.filter.lift
/-!
# Basic theory of topo... |
b9050b25d27d25083af42bc400fb2f4a82bed5fb | ac49064e8a9a038e07cf5574b4fccd8a70d115c8 | /hott/types/prod.hlean | 242dadb6a60f830d36a160353a772a1fcba86887 | [
"Apache-2.0"
] | permissive | Bolt64/lean2 | 7c75016729569e04a3f403c7a4fc7c1de4377c9d | 75fd8162488214a959dbe3303a185cbbb83f60f9 | refs/heads/master | 1,611,290,445,156 | 1,493,763,922,000 | 1,493,763,922,000 | 81,566,307 | 0 | 0 | null | 1,486,732,167,000 | 1,486,732,167,000 | null | UTF-8 | Lean | false | false | 10,529 | 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
Ported from Coq HoTT
Theorems about products
-/
open eq equiv is_equiv is_trunc prod prod.ops unit
variables {A A' B B' C D : Type} {P Q : A → T... |
b305cb81d013ab4ead54de9cab1f9ef6bcfd1cc3 | d9d511f37a523cd7659d6f573f990e2a0af93c6f | /src/linear_algebra/finsupp_vector_space.lean | 3ff281847f97531bdecabec51e22e906ca86f957 | [
"Apache-2.0"
] | permissive | hikari0108/mathlib | b7ea2b7350497ab1a0b87a09d093ecc025a50dfa | a9e7d333b0cfd45f13a20f7b96b7d52e19fa2901 | refs/heads/master | 1,690,483,608,260 | 1,631,541,580,000 | 1,631,541,580,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 7,956 | lean | /-
Copyright (c) 2019 Johannes Hölzl. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Johannes Hölzl
-/
import data.mv_polynomial
import linear_algebra.dimension
import linear_algebra.direct_sum.finsupp
import linear_algebra.finite_dimensional
import linear_algebra.std... |
170a9ff304b0721def404161d9578921fe1475b5 | 57c233acf9386e610d99ed20ef139c5f97504ba3 | /src/analysis/complex/circle.lean | 639d945da36f00c933fdbe125c26b342e64770ce | [
"Apache-2.0"
] | permissive | robertylewis/mathlib | 3d16e3e6daf5ddde182473e03a1b601d2810952c | 1d13f5b932f5e40a8308e3840f96fc882fae01f0 | refs/heads/master | 1,651,379,945,369 | 1,644,276,960,000 | 1,644,276,960,000 | 98,875,504 | 0 | 0 | Apache-2.0 | 1,644,253,514,000 | 1,501,495,700,000 | Lean | UTF-8 | Lean | false | false | 4,784 | lean | /-
Copyright (c) 2021 Heather Macbeth. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Heather Macbeth
-/
import analysis.special_functions.exp
import topology.continuous_function.basic
/-!
# The circle
This file defines `circle` to be the metric sphere (`metric.spher... |
ee6f597ec89e7cd795cc1956d4d4f40cd9a6b99b | 18425d4bab0b5e4677ef791d0065e16639493248 | /finitary.lean | 9867b74213e367cda4db780abdb5cf0fbaeb0287 | [
"MIT"
] | permissive | tizmd/lean-finitary | 5feb94a2474b55c0f23e4b61b9ac42403bf222f7 | 8958fdb3fa3d9fcc304e116fd339448875025e95 | refs/heads/master | 1,611,397,193,043 | 1,497,517,825,000 | 1,497,517,825,000 | 93,048,842 | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 1,412 | lean | import .equipotent .data.fin.misc
universe u
def finitary (α : Type u) (n) := equipotent α (fin n)
def permutation (n) := finitary (fin n) n
namespace finitary
def eq_of_finitary_fin {m n} : finitary (fin m) n → m = n
:= assume H,
decidable.by_contradiction $ assume ne,
or.elim (lt_or_gt_of_ne ne)
... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.