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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
018abf270508e9c9d7eb29e4ce1878ffacea6ba3 | 02fbe05a45fda5abde7583464416db4366eedfbf | /library/init/data/repr.lean | 1f402768c9bde132d3245aed4d043a2a46e19e8d | [
"Apache-2.0"
] | permissive | jasonrute/lean | cc12807e11f9ac6b01b8951a8bfb9c2eb35a0154 | 4be962c167ca442a0ec5e84472d7ff9f5302788f | refs/heads/master | 1,672,036,664,637 | 1,601,642,826,000 | 1,601,642,826,000 | 260,777,966 | 0 | 0 | Apache-2.0 | 1,588,454,819,000 | 1,588,454,818,000 | null | UTF-8 | Lean | false | false | 4,425 | lean | /-
Copyright (c) 2016 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Author: Leonardo de Moura
-/
prelude
import init.data.string.basic init.data.bool.basic init.data.subtype.basic
import init.data.unsigned.basic init.data.prod init.data.sum.basic init.da... |
a01e1da9999abc79726edbfd5e07fe822d58b78f | 30b012bb72d640ec30c8fdd4c45fdfa67beb012c | /category_theory/functor.lean | 3757ff229bf8624bb70e52dfbb870c1e4b82fb4d | [
"Apache-2.0"
] | permissive | kckennylau/mathlib | 21fb810b701b10d6606d9002a4004f7672262e83 | 47b3477e20ffb5a06588dd3abb01fe0fe3205646 | refs/heads/master | 1,634,976,409,281 | 1,542,042,832,000 | 1,542,319,733,000 | 109,560,458 | 0 | 0 | Apache-2.0 | 1,542,369,208,000 | 1,509,867,494,000 | Lean | UTF-8 | Lean | false | false | 3,494 | 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
Defines a functor between categories.
(As it is a 'bundled' object rather than the `is_functorial` typeclass parametrised
by the underlyin... |
d58bfcd0aa9dbd286388d82063e22e4bb227e062 | 206422fb9edabf63def0ed2aa3f489150fb09ccb | /src/tactic/norm_cast.lean | a74a253439d8f29ea9ab39dd950a8ce8031bb476 | [
"Apache-2.0"
] | permissive | hamdysalah1/mathlib | b915f86b2503feeae268de369f1b16932321f097 | 95454452f6b3569bf967d35aab8d852b1ddf8017 | refs/heads/master | 1,677,154,116,545 | 1,611,797,994,000 | 1,611,797,994,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 26,216 | lean | /-
Copyright (c) 2019 Paul-Nicolas Madelaine. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Paul-Nicolas Madelaine, Robert Y. Lewis
Normalizing casts inside expressions.
-/
import tactic.converter.interactive
import tactic.hint
/-!
# A tactic for normalizing casts i... |
fc0e1ce2621983c1ee8b45c200c51c9e0e319316 | 8f209eb34c0c4b9b6be5e518ebfc767a38bed79c | /code/src/internal/counterexample.lean | 169582dbb6b46293210bf732d8af2366b21b0c3e | [] | no_license | hediet/masters-thesis | 13e3bcacb6227f25f7ec4691fb78cb0363f2dfb5 | dc40c14cc4ed073673615412f36b4e386ee7aac9 | refs/heads/master | 1,680,591,056,302 | 1,617,710,887,000 | 1,617,710,887,000 | 311,762,038 | 4 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 589 | lean | import tactic
import data.finset
import ..definitions
import .internal_definitions
import .Ant.rhss
import .utils
instance exmpl : GuardModule := {
Rhs := ℕ,
TGrd := ℕ,
Env := ℕ,
tgrd_eval := λ grd env, some env,
Var := ℕ,
is_bottom := λ var env, false
}
def ant_a := Ant.diverge ff ((Ant.rhs t... |
a0cce9d64888bfd8f99cb6c39d33f2f5e94bb69a | 75db7e3219bba2fbf41bf5b905f34fcb3c6ca3f2 | /library/data/rat/order.lean | 95c3cf84861e21f16ccacfd14e1d309cf9ac691c | [
"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 | 16,099 | lean | /-
Copyright (c) 2015 Jeremy Avigad. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Author: Jeremy Avigad
Adds the ordering, and instantiates the rationals as an ordered field.
-/
import data.int algebra.ordered_field algebra.group_power data.rat.basic
open quot eq.ops
/- the... |
c6b4b95899c6bae968231f122436c0f6d5f2a1d8 | 46125763b4dbf50619e8846a1371029346f4c3db | /src/data/int/gcd.lean | 043c7b7359b3ef39b6f771de22fb85cf8cf4f3dd | [
"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 | 4,767 | lean | /-
Copyright (c) 2018 Guy Leroy. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Sangwoo Jo (aka Jason), Guy Leroy, Johannes Hölzl
Greatest common divisor (gcd) and least common multiple (lcm) for integers.
This sets up ℤ to be a GCD domain, and introduces rules about... |
1440999590c10d396b9cc4146c79a6f746073b1b | 1abd1ed12aa68b375cdef28959f39531c6e95b84 | /src/data/setoid/basic.lean | 08d8613282bd080caa398358f5f1362816cfb946 | [
"Apache-2.0"
] | permissive | jumpy4/mathlib | d3829e75173012833e9f15ac16e481e17596de0f | af36f1a35f279f0e5b3c2a77647c6bf2cfd51a13 | refs/heads/master | 1,693,508,842,818 | 1,636,203,271,000 | 1,636,203,271,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 18,385 | lean | /-
Copyright (c) 2019 Amelia Livingston. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Amelia Livingston, Bryan Gin-ge Chen
-/
import order.galois_connection
/-!
# Equivalence relations
This file defines the complete lattice of equivalence relations on a type, resul... |
1c2f2971f0891be62750b962e266822c6dde023f | 302c785c90d40ad3d6be43d33bc6a558354cc2cf | /src/group_theory/submonoid/membership.lean | 66368bcde119fdfafe49eefaced607319f82d3cf | [
"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 | 11,145 | 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, Kenny Lau, Johan Commelin, Mario Carneiro, Kevin Buzzard,
Amelia Livingston, Yury Kudryashov
-/
import group_theory.submonoid.operations
import algebra.big_operators.ba... |
0f7d6a9ff88d955664dbca9e70539b47df058ac8 | 9dc8cecdf3c4634764a18254e94d43da07142918 | /src/topology/continuous_on.lean | 492859e552e2212640eae5efaa895fcdad6dcc69 | [
"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 | 54,387 | lean | /-
Copyright (c) 2019 Reid Barton. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Sébastien Gouëzel
-/
import topology.constructions
/-!
# Neighborhoods and continuity relative to a subset
This file defines relative versions
* `nhds_within` of `nhds`
* `co... |
6b23819c29634db3545c59c9b2f413e7110462d8 | 57c233acf9386e610d99ed20ef139c5f97504ba3 | /src/ring_theory/power_series/well_known.lean | 12f8be453a4fd37f67bc604b11f89515349b0032 | [
"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,968 | lean | /-
Copyright (c) 2020 Yury G. Kudryashov. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Yury G. Kudryashov
-/
import ring_theory.power_series.basic
import data.nat.parity
import algebra.big_operators.nat_antidiagonal
/-!
# Definition of well-known power series
In th... |
09fb749666e91932b06d021d96046405e96f20dc | e8aa886451ad759d8f2621790f1748a9c7d9e820 | /src/analysis/analytic/basic.lean | 1f1ff736923d8e723524170a7a6cc2f32f52873b | [
"Apache-2.0"
] | permissive | siegelzero/mathlib | 04c39faa5d6c1d7799adff1f5cf0710c59def716 | 64fa9a2062bc18cdfac3b1bf03a1f714cb434f86 | refs/heads/master | 1,649,847,954,618 | 1,586,747,318,000 | 1,586,747,318,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 37,623 | 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.times_cont_diff tactic.omega analysis.complex.exponential
analysis.specific_limits
/-!
# Analytic functions
A function is analytic... |
9a282832a843ec664317fe4adb138216816216ff | 4727251e0cd73359b15b664c3170e5d754078599 | /src/topology/algebra/semigroup.lean | 6a4a57e05d025e737fdb4cc78f11c75fe26a6340 | [
"Apache-2.0"
] | permissive | Vierkantor/mathlib | 0ea59ac32a3a43c93c44d70f441c4ee810ccceca | 83bc3b9ce9b13910b57bda6b56222495ebd31c2f | refs/heads/master | 1,658,323,012,449 | 1,652,256,003,000 | 1,652,256,003,000 | 209,296,341 | 0 | 1 | Apache-2.0 | 1,568,807,655,000 | 1,568,807,655,000 | null | UTF-8 | Lean | false | false | 4,878 | lean | /-
Copyright (c) 2021 David Wärn. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: David Wärn
-/
import topology.separation
/-!
# Idempotents in topological semigroups
This file provides a sufficient condition for a semigroup `M` to contain an idempotent (i.e. an
eleme... |
14688e2379e78357d73d5333f1b1ff77b2248fe5 | 46125763b4dbf50619e8846a1371029346f4c3db | /src/ring_theory/polynomial.lean | 3141ff049540a5b10dfbb60ec3a23a4ef097fb8d | [
"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 | 17,223 | lean | /-
Copyright (c) 2019 Kenny Lau. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Kenny Lau
Ring-theoretic supplement of data.polynomial.
Main result: Hilbert basis theorem, that if a ring is noetherian then so is its polynomial ring.
-/
import data.equiv.fin data.pol... |
99e0ea4ad2de264c5e5323e2574118e06f718235 | fe84e287c662151bb313504482b218a503b972f3 | /src/combinatorics/choose.lean | ef1b952fee5696704d6d2179a16353661533c3c0 | [] | no_license | NeilStrickland/lean_lib | 91e163f514b829c42fe75636407138b5c75cba83 | 6a9563de93748ace509d9db4302db6cd77d8f92c | refs/heads/master | 1,653,408,198,261 | 1,652,996,419,000 | 1,652,996,419,000 | 181,006,067 | 4 | 1 | null | null | null | null | UTF-8 | Lean | false | false | 11,353 | lean | /-
Copyright (c) 2019 Neil Strickland. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Neil Strickland
This file is about ordered subsets of a finite type, i.e. lists
of distinct elements. It probably has some overlap with Mario's
recent mathlib additions on lists of ... |
3a68f90c0bde58f122fe4db5bf94b4fc0935ca08 | 1446f520c1db37e157b631385707cc28a17a595e | /tests/bench/unionfind.lean | 8ce07c866a07e499f413ee3a60ad6d2a592ae729 | [
"Apache-2.0"
] | permissive | bdbabiak/lean4 | cab06b8a2606d99a168dd279efdd404edb4e825a | 3f4d0d78b2ce3ef541cb643bbe21496bd6b057ac | refs/heads/master | 1,615,045,275,530 | 1,583,793,696,000 | 1,583,793,696,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 4,363 | lean | def StateT' (m : Type → Type) (σ : Type) (α : Type) := σ → m (α × σ)
namespace StateT'
variables {m : Type → Type} [Monad m] {σ : Type} {α β : Type}
@[inline] protected def pure (a : α) : StateT' m σ α := fun s => pure (a, s)
@[inline] protected def bind (x : StateT' m σ α) (f : α → StateT' m σ β) : StateT' m σ β := fu... |
72cf652839803792fcd3289e32e8ed19fdf17d9e | 6b45072eb2b3db3ecaace2a7a0241ce81f815787 | /theories/set_theory.lean | 57f079d51fca24668e2062b6eb3b10f1a650828c | [] | no_license | avigad/library_dev | 27b47257382667b5eb7e6476c4f5b0d685dd3ddc | 9d8ac7c7798ca550874e90fed585caad030bbfac | refs/heads/master | 1,610,452,468,791 | 1,500,712,839,000 | 1,500,713,478,000 | 69,311,142 | 1 | 0 | null | 1,474,942,903,000 | 1,474,942,902,000 | null | UTF-8 | Lean | false | false | 27,732 | lean | import data.set.basic
universes u v
def arity (α : Type u) : nat → Type u
| 0 := α
| (n+1) := α → arity n
inductive pSet : Type (u+1)
| mk (α : Type u) (A : α → pSet) : pSet
namespace pSet
def type : pSet → Type u
| ⟨α, A⟩ := α
def func : Π (x : pSet), x.type → pSet
| ⟨α, A⟩ := A
def mk_type_func :... |
2776c5b61c59a76bfab76496431d37dd79b07900 | 9dc8cecdf3c4634764a18254e94d43da07142918 | /src/data/finsupp/defs.lean | 2513d43d6cb1fdd6f6caadd54bb1528b98c3fd26 | [
"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 | 38,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, Scott Morrison
-/
import algebra.hom.group_action
import algebra.indicator_function
/-!
# Type of functions with finite support
For any type `α` and any type `M` with... |
44190dba4470378bbd27902c1c1535d3721628da | 43390109ab88557e6090f3245c47479c123ee500 | /src/M1F/problem_bank/0501/S0501.lean | bcb7ce89f8da8efbd5881d8d1f461f66f37ff705 | [
"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 | 2,271 | lean | import algebra.group_power tactic.norm_num algebra.big_operators
-- sheet 5 solns
def Fib : ℕ → ℕ
| 0 := 0
| 1 := 1
| (n+2) := Fib n + Fib (n+1)
--#eval Fib 10
--#reduce Fib 10
def is_even (n : ℕ) : Prop := ∃ k, n=2*k
def is_odd (n : ℕ) : Prop := ∃ k, n=2*k+1
lemma even_of_even_add_even (a b : ℕ) : is_even a → i... |
d9b23d4d44284165a1ea5fdc4662598183ae8cfa | 32025d5c2d6e33ad3b6dd8a3c91e1e838066a7f7 | /src/Lean/Compiler/IR/EmitC.lean | a92d1ce7da4e4c294d1702639fb3285e7569e442 | [
"Apache-2.0"
] | permissive | walterhu1015/lean4 | b2c71b688975177402758924eaa513475ed6ce72 | 2214d81e84646a905d0b20b032c89caf89c737ad | refs/heads/master | 1,671,342,096,906 | 1,599,695,985,000 | 1,599,695,985,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 24,527 | 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.Runtime
import Lean.Compiler.NameMangling
import Lean.Compiler.ExportAttr
import Lean.Compiler.InitAttr
import Lean.Compiler.IR.CompilerM
import... |
9abec5bff1fe78214d57b5d59b5623f1e881fcd6 | 302c785c90d40ad3d6be43d33bc6a558354cc2cf | /src/ring_theory/witt_vector/witt_polynomial.lean | b60dbd26ad8a18f0629ed06ae777c43e4364b935 | [
"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 | 10,811 | lean | /-
Copyright (c) 2020 Johan Commelin. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Johan Commelin, Robert Y. Lewis
-/
import algebra.char_p.invertible
import data.mv_polynomial.variables
import data.mv_polynomial.comm_ring
import data.mv_polynomial.expand
import dat... |
8da4487329420c2ef3071c0c688395423436eb6c | 05f637fa14ac28031cb1ea92086a0f4eb23ff2b1 | /tests/lean/tactic12.lean | 9982049983409f45e2131b885fcadcf9c9df3c19 | [
"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 | 214 | lean | (* import("tactic.lua") *)
theorem T (a b : Bool) : ((fun x, x /\ b) a) → ((fun x, x) a).
beta.
conj_hyp.
exact.
done.
variables p q : Bool.
theorem T2 : p /\ q → q.
conj_hyp.
exact.
done. |
759b0d2ef285247623279d4c445534d61e53b391 | 6432ea7a083ff6ba21ea17af9ee47b9c371760f7 | /tests/lean/run/hmul2.lean | e71af86b9d72e010e124d5b6f39768390f5d52a1 | [
"Apache-2.0",
"LLVM-exception",
"NCSA",
"LGPL-3.0-only",
"LicenseRef-scancode-inner-net-2.0",
"BSD-3-Clause",
"LGPL-2.0-or-later",
"Spencer-94",
"LGPL-2.1-or-later",
"HPND",
"LicenseRef-scancode-pcre",
"ISC",
"LGPL-2.1-only",
"LicenseRef-scancode-other-permissive",
"SunPro",
"CMU-Mach"... | permissive | leanprover/lean4 | 4bdf9790294964627eb9be79f5e8f6157780b4cc | f1f9dc0f2f531af3312398999d8b8303fa5f096b | refs/heads/master | 1,693,360,665,786 | 1,693,350,868,000 | 1,693,350,868,000 | 129,571,436 | 2,827 | 311 | Apache-2.0 | 1,694,716,156,000 | 1,523,760,560,000 | Lean | UTF-8 | Lean | false | false | 1,112 | lean | @[default_instance]
instance [Mul α] : HMul α (Array α) (Array α) where
hMul a as := as.map (a * ·)
instance [Mul α] : Mul (Array α) where
mul as bs := (as.zip bs).map fun (a, b) => a * b
#eval 2 * #[3, 4, 5]
#eval (2:Nat) * #[3, 4, 5]
#check fun x => x * 2
#check fun y : Int => let x := 1; x * y
#check fun y ... |
855d4855b44fada3faebe257d0a8d59464dad98a | 947fa6c38e48771ae886239b4edce6db6e18d0fb | /src/field_theory/splitting_field.lean | b19a3e5de8d0dd733839093f085132d947b047ed | [
"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 | 37,237 | lean | /-
Copyright (c) 2018 Chris Hughes. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Chris Hughes
-/
import field_theory.intermediate_field
import ring_theory.adjoin_root
/-!
# Splitting fields
This file introduces the notion of a splitting field of a polynomial and pr... |
352856c51db39a51146f59e72c236496d543bc8b | 4727251e0cd73359b15b664c3170e5d754078599 | /src/category_theory/adjunction/over.lean | 806490206f7c541c75b988c72f6974fe52c61ed7 | [
"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 | 1,604 | lean | /-
Copyright (c) 2021 Bhavik Mehta. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Bhavik Mehta
-/
import category_theory.limits.shapes.binary_products
import category_theory.monad.products
import category_theory.over
/-!
# Adjunctions related to the over category
Co... |
41d27772bcfbe4e6f75b7695dd32d632051eda75 | 9dc8cecdf3c4634764a18254e94d43da07142918 | /src/algebra/order/archimedean.lean | b04d316a1169df2c260e421532901a04487150ab | [
"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 | 14,493 | 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.int.least_greatest
import data.rat.floor
/-!
# Archimedean groups and fields.
This file defines the archimedean property for ordered groups and proves s... |
8915a6ca27aa88687e59b1410c6375152bc6555b | 42610cc2e5db9c90269470365e6056df0122eaa0 | /library/theories/finite_group_theory/sylow.lean | f83e290fb2c62dda1009d838292492d816ce6838 | [
"Apache-2.0"
] | permissive | tomsib2001/lean | 2ab59bfaebd24a62109f800dcf4a7139ebd73858 | eb639a7d53fb40175bea5c8da86b51d14bb91f76 | refs/heads/master | 1,586,128,387,740 | 1,468,968,950,000 | 1,468,968,950,000 | 61,027,234 | 0 | 0 | null | 1,465,813,585,000 | 1,465,813,585,000 | null | UTF-8 | Lean | false | false | 8,655 | lean | import theories.number_theory.pinat
import data algebra.group theories.finite_group_theory.subgroup theories.finite_group_theory.finsubg theories.number_theory.pinat theories.finite_group_theory.cyclic theories.finite_group_theory.perm theories.finite_group_theory.action
import theories.finite_group_theory.extra_action... |
21e70936791461ac056fbebcc215849e3bf2e97a | a9d0fb7b0e4f802bd3857b803e6c5c23d87fef91 | /tests/lean/run/sizeof2.lean | c6a0b88a5dfc5979c00d19168d7dda4c2838f27b | [
"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 | 435 | lean | open tactic
example : sizeof (λ a : nat, a) = 0 :=
rfl
example : sizeof Type = 0 :=
rfl
example : sizeof Prop = 0 :=
rfl
example (p : Prop) (H : p) : sizeof H = 0 :=
rfl
example (A : Type) (a b : A) : sizeof [a, b] = 3 :=
rfl
example : sizeof [(1:nat), 4] = 8 :=
rfl
example : sizeof [tt, ff, tt] = 7 :=
rfl
set_... |
87235e364f716c097b2edf25a7cc0f5c5ac0c570 | 4727251e0cd73359b15b664c3170e5d754078599 | /src/category_theory/sites/closed.lean | 2a3ef6114eee2d1176f63368be83f124b4ef9e2f | [
"Apache-2.0"
] | permissive | Vierkantor/mathlib | 0ea59ac32a3a43c93c44d70f441c4ee810ccceca | 83bc3b9ce9b13910b57bda6b56222495ebd31c2f | refs/heads/master | 1,658,323,012,449 | 1,652,256,003,000 | 1,652,256,003,000 | 209,296,341 | 0 | 1 | Apache-2.0 | 1,568,807,655,000 | 1,568,807,655,000 | null | UTF-8 | Lean | false | false | 12,141 | 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.sites.sheaf_of_types
import order.closure
/-!
# Closed sieves
A natural closure operator on sieves is a closure operator on `sieve X` for each `X... |
250e95a101d7a5a8bef92c0967ba97823d64a8cc | de8d0cdc3dc15aa390280472764229d0e14e734c | /src/metric_spaces.lean | 992d59cbaa7e427c5b962a346747e36b3eb95a38 | [] | no_license | amesnard0/lean-topology | 94720ccf0af34961b24b52b96bcfb19df5c8f544 | e8f6a720c435cb59d098579a26f6eb70ea05f91a | refs/heads/main | 1,682,525,569,376 | 1,622,116,766,000 | 1,622,116,766,000 | 358,047,823 | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 6,647 | lean | import tactic
import data.set.finite
import data.real.basic
import topological_spaces
import neighbourhoods
import topological_spaces2
import t2_spaces
noncomputable theory
open set
-- Definition d'un espace métrique :
class metric_space (X : Type) :=
(dist : X → X → ℝ)
(dist_eq_zero_iff : ∀ x y, dist x y = 0 ↔ ... |
e3477ae4d766a8fd81af69689e7f36b0fb1e0741 | 626e312b5c1cb2d88fca108f5933076012633192 | /src/algebra/big_operators/basic.lean | 7bfe0bade8f9a3dd9af72bb1f3af7852abc5f7bb | [
"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 | 62,069 | 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 data.finset.fold
import data.equiv.mul_add
import tactic.abel
/-!
# Big operators
In this file we define products and sums indexed by finite sets (specifica... |
946b40157ddacfed557aa75e4c2ed6de77993280 | f3849be5d845a1cb97680f0bbbe03b85518312f0 | /library/tools/super/splitting.lean | 6a781ed42a140f36f325020783651d5b8562e15d | [
"Apache-2.0"
] | permissive | bjoeris/lean | 0ed95125d762b17bfcb54dad1f9721f953f92eeb | 4e496b78d5e73545fa4f9a807155113d8e6b0561 | refs/heads/master | 1,611,251,218,281 | 1,495,337,658,000 | 1,495,337,658,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 2,664 | lean | /-
Copyright (c) 2016 Gabriel Ebner. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Gabriel Ebner
-/
import .prover_state
open monad expr list tactic
namespace super
private meta def find_components : list expr → list (list (expr × ℕ)) → list (list (expr × ℕ))
| (e::... |
7215ea2391c8e47f3d1c2728b6bcd3b29f54da19 | 9cb9db9d79fad57d80ca53543dc07efb7c4f3838 | /src/Mbar/pseudo_normed_group.lean | cae07e6a77f614d5cf220192884fca2a4e813813 | [] | no_license | mr-infty/lean-liquid | 3ff89d1f66244b434654c59bdbd6b77cb7de0109 | a8db559073d2101173775ccbd85729d3a4f1ed4d | refs/heads/master | 1,678,465,145,334 | 1,614,565,310,000 | 1,614,565,310,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 746 | lean | import pseudo_normed_group.system_of_complexes
import Mbar.Mbar_le
universe u
noncomputable theory
open_locale big_operators nnreal
open pseudo_normed_group
local attribute [instance] type_pow
variables {r' : ℝ≥0} {S : Type u} [fact (0 < r')] [fintype S] {c c₁ c₂ c₃ : ℝ≥0}
namespace Mbar
instance : profinitely_fil... |
233c98e5d1c4cabe89f789612da5cdb66e7da93c | 952248371e69ccae722eb20bfe6815d8641554a8 | /src/additive.lean | 1d3de7b11f696aeed17f81bd85d40e19e95e0ed1 | [] | no_license | robertylewis/lean_polya | 5fd079031bf7114449d58d68ccd8c3bed9bcbc97 | 1da14d60a55ad6cd8af8017b1b64990fccb66ab7 | refs/heads/master | 1,647,212,226,179 | 1,558,108,354,000 | 1,558,108,354,000 | 89,933,264 | 1 | 2 | null | 1,560,964,118,000 | 1,493,650,551,000 | Lean | UTF-8 | Lean | false | false | 9,762 | lean | import .datatypes .blackboard
-- TODO: maybe more of this can move to datatypes
namespace polya
section sfcd_to_ineq
-- assumes lhs < rhs as exprs. cl*lhs + cr*rhs R 0 ==> ineq_data
private meta def mk_ineq_data_of_lhs_rhs (lhs rhs : expr) (cl cr : ℚ) (c : comp) {s} (pf : sum_form_proof s) :
Σ l... |
d2816fd4fdda9063767c75c52fa8d24f76cd70a8 | e00ea76a720126cf9f6d732ad6216b5b824d20a7 | /src/data/holor.lean | e47e73adf516912249c7b9ac1d21034965bcef36 | [
"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 | 14,347 | 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... |
86ab5d0a0c321db4034cbe2474d20b46dceb712e | d406927ab5617694ec9ea7001f101b7c9e3d9702 | /src/category_theory/structured_arrow.lean | 2b289b795b53bf89effed064f919251cc97f084e | [
"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 | 16,707 | lean | /-
Copyright (c) 2021 Scott Morrison. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Adam Topaz, Scott Morrison
-/
import category_theory.punit
import category_theory.comma
import category_theory.limits.shapes.terminal
import category_theory.essentially_small
/-!
# Th... |
597c77fd954964848497999bbda62c2c2e5d1c6d | d406927ab5617694ec9ea7001f101b7c9e3d9702 | /src/category_theory/limits/shapes/images.lean | 7ae28dbae9cabd58b44052d4bab8588d52ab910d | [
"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 | 31,520 | 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.equalizers
import category_theory.limits.shapes.pullbacks
import category_theory.limits.shapes.strong_epi
/-!
# C... |
94fea020b8829b97d823b97de4d7533f8258e143 | 38bf3fd2bb651ab70511408fcf70e2029e2ba310 | /test/library_search/basic.lean | 0df419fd09ecdf410c04254de36820a3016e9a94 | [
"Apache-2.0"
] | permissive | JaredCorduan/mathlib | 130392594844f15dad65a9308c242551bae6cd2e | d5de80376088954d592a59326c14404f538050a1 | refs/heads/master | 1,595,862,206,333 | 1,570,816,457,000 | 1,570,816,457,000 | 209,134,499 | 0 | 0 | Apache-2.0 | 1,568,746,811,000 | 1,568,746,811,000 | null | UTF-8 | Lean | false | false | 2,383 | 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 data.nat.basic
import tactic.library_search
/- Turn off trace messages so they don't pollute the test build: -/
set_option trace.silence_library_search true
/... |
f12db8a5baca90d3843787b47fdfae3efc5fbca7 | 7cef822f3b952965621309e88eadf618da0c8ae9 | /src/tactic/omega/nat/preterm.lean | 5f139b56c13c65eeb2fd4564cd96f9291209ea2d | [
"Apache-2.0"
] | permissive | rmitta/mathlib | 8d90aee30b4db2b013e01f62c33f297d7e64a43d | 883d974b608845bad30ae19e27e33c285200bf84 | refs/heads/master | 1,585,776,832,544 | 1,576,874,096,000 | 1,576,874,096,000 | 153,663,165 | 0 | 2 | Apache-2.0 | 1,544,806,490,000 | 1,539,884,365,000 | Lean | UTF-8 | Lean | false | false | 3,697 | lean | /-
Copyright (c) 2019 Seul Baek. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Author: Seul Baek
Linear natural number arithmetic terms in pre-normalized form.
-/
import tactic.omega.term
open tactic
namespace omega
namespace nat
@[derive has_reflect, derive decidable_eq]... |
ea5c871ed77fb4b5c1ad270471230f18f2667dce | 798dd332c1ad790518589a09bc82459fb12e5156 | /analysis/metric_space.lean | 301be94e9302655e40e60810eba366b4f75dd7ca | [
"Apache-2.0"
] | permissive | tobiasgrosser/mathlib | b040b7eb42d5942206149371cf92c61404de3c31 | 120635628368ec261e031cefc6d30e0304088b03 | refs/heads/master | 1,644,803,442,937 | 1,536,663,752,000 | 1,536,663,907,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 21,859 | lean | /-
Copyright (c) 2015, 2017 Jeremy Avigad. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Metric spaces.
Authors: Jeremy Avigad, Robert Y. Lewis, Johannes Hölzl, Mario Carneiro
Many definitions and theorems expected on metric spaces are already introduced on uniform spaces an... |
5e35d2712dfb64f477ba3df3a388f8eae8a2f209 | d406927ab5617694ec9ea7001f101b7c9e3d9702 | /src/algebra/quadratic_discriminant.lean | ea3439b5e939a4558d7ffd935410b31ebcf2c552 | [
"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 | 5,250 | lean | /-
Copyright (c) 2019 Zhouhang Zhou. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Zhouhang Zhou
-/
import algebra.char_p.invertible
import order.filter.at_top_bot
import tactic.linarith
import tactic.field_simp
import tactic.linear_combination
/-!
# Quadratic discri... |
1455e2d7934e5ca626ff2b7ffef1f04cf31c9183 | 4bcaca5dc83d49803f72b7b5920b75b6e7d9de2d | /stage0/src/Init/Data/Format/Syntax.lean | 14b035f9f26bf13f8373ee73807f8f63c1a0c917 | [
"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 | 1,822 | lean | /-
Copyright (c) 2021 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Author: Leonardo de Moura
-/
prelude
import Init.Data.Format.Macro
import Init.Data.Format.Instances
import Init.Meta
namespace Lean.Syntax
open Std
open Std.Format
private def format... |
6086c919f400320aa08b6bce202f46709ad8ab82 | fa02ed5a3c9c0adee3c26887a16855e7841c668b | /src/ring_theory/polynomial/content.lean | 553e6d72747e378f5426413907b6963bdddd9ee8 | [
"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 | 17,118 | 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.gcd_monoid.finset
import data.polynomial
import data.polynomial.erase_lead
import data.polynomial.cancel_leads
/-!
# GCD structures on polynomials
De... |
57357a131feba95d66af729b783ef714102ed26d | 02005f45e00c7ecf2c8ca5db60251bd1e9c860b5 | /src/analysis/calculus/specific_functions.lean | cafcda83f2009d48666a625c5168e0314f021253 | [
"Apache-2.0"
] | permissive | anthony2698/mathlib | 03cd69fe5c280b0916f6df2d07c614c8e1efe890 | 407615e05814e98b24b2ff322b14e8e3eb5e5d67 | refs/heads/master | 1,678,792,774,873 | 1,614,371,563,000 | 1,614,371,563,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 15,060 | 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
import analysis.calculus.iterated_deriv
import analysis.special_functions.exp_log
import analysis.normed_space.inner_produ... |
8b0c9abd1ad4c357147f19b70a9370d99edbb5e6 | fa02ed5a3c9c0adee3c26887a16855e7841c668b | /src/category_theory/preadditive/projective_resolution.lean | f13e48671389a1e5ebaa3601d002ee8eaec8580c | [
"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,928 | 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 category_theory.preadditive.projective
import algebra.homology.single
import algebra.homology.homotopy_category
/-!
# Projective resolutions
A projective res... |
5bd5324605cf8a313c73641bc49cfeb97fda4755 | 8e31b9e0d8cec76b5aa1e60a240bbd557d01047c | /src/refinement/tableau_class.lean | 1a01d9fdea8c3cf6b76423602c4e6cdd090cc7f0 | [] | no_license | ChrisHughes24/LP | 7bdd62cb648461c67246457f3ddcb9518226dd49 | e3ed64c2d1f642696104584e74ae7226d8e916de | refs/heads/master | 1,685,642,642,858 | 1,578,070,602,000 | 1,578,070,602,000 | 195,268,102 | 4 | 3 | null | 1,569,229,518,000 | 1,562,255,287,000 | Lean | UTF-8 | Lean | false | false | 1,239 | lean | import simplex
class is_tableau (ftableau : ℕ → ℕ → Type) : Type :=
(to_tableau {m n : ℕ} : ftableau m n → tableau m n)
(pivot {m n : ℕ} : ftableau m n → fin m → fin n → ftableau m n)
(pivot_col {m n : ℕ} (T : ftableau m n) (obj : fin m) : option (fin n))
(pivot_row {m n : ℕ} (T : ftableau m n) (obj : fin m) : fin n →... |
ab4506db54fda87564ccae516d8f63fe162d59a7 | d436468d80b739ba7e06843c4d0d2070e43448e5 | /src/topology/algebra/ordered.lean | 236c2fcc3370b9ef8615988956d5689ec72bcc6f | [
"Apache-2.0"
] | permissive | roro47/mathlib | 761fdc002aef92f77818f3fef06bf6ec6fc1a28e | 80aa7d52537571a2ca62a3fdf71c9533a09422cf | refs/heads/master | 1,599,656,410,625 | 1,573,649,488,000 | 1,573,649,488,000 | 221,452,951 | 0 | 0 | Apache-2.0 | 1,573,647,693,000 | 1,573,647,692,000 | null | UTF-8 | Lean | false | false | 44,686 | 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
Theory of ordered topology.
-/
import order.liminf_limsup
import data.set.intervals
import topology.algebra.group
import topology.constructions
open cl... |
283120d67d681427f7263f8c8e713809af33266c | a338c3e75cecad4fb8d091bfe505f7399febfd2b | /src/group_theory/perm/basic.lean | 8caa9c07b663805d5ffdcb225a96d50d79633dc0 | [
"Apache-2.0"
] | permissive | bacaimano/mathlib | 88eb7911a9054874fba2a2b74ccd0627c90188af | f2edc5a3529d95699b43514d6feb7eb11608723f | refs/heads/master | 1,686,410,075,833 | 1,625,497,070,000 | 1,625,497,070,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 15,055 | lean | /-
Copyright (c) 2015 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Leonardo de Moura, Mario Carneiro
-/
import algebra.group.pi
import algebra.group_power
/-!
# The group of permutations (self-equivalences) of a type `α`
This file defines the... |
d700a90e8f871dc1e4942e43c5c59f034cf49817 | 74addaa0e41490cbaf2abd313a764c96df57b05d | /Mathlib/category_theory/limits/punit_auto.lean | d94e585168a9eeaa48d778dcdbe059afd785dc45 | [] | 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,670 | lean | /-
Copyright (c) 2020 Scott Morrison. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Scott Morrison
-/
import Mathlib.PrePort
import Mathlib.Lean3Lib.init.default
import Mathlib.category_theory.punit
import Mathlib.category_theory.limits.limits
import Mathlib.PostPort
... |
8cf7ccee0a05918e1d7b2cfeefb1ee5cce189b60 | ba4794a0deca1d2aaa68914cd285d77880907b5c | /src/game/world3/level3.lean | 5c95ec818bb37b9417eeb16b53f82dd8852219ac | [
"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 | 812 | lean | import game.world3.level2 -- hide
import mynat.mul -- hide
namespace mynat -- hide
/-
# Multiplication World
## Level 3: `one_mul`
These proofs from addition world might be useful here:
* `one_eq_succ_zero : 1 = succ(0)`
* `succ_eq_add_one a : succ(a) = a + 1`
We just proved `mul_one`, now let's prove `one_mul`.... |
b5c9d128cefc87ee7168e382625c237ad5a71b69 | 74addaa0e41490cbaf2abd313a764c96df57b05d | /Mathlib/set_theory/game/state_auto.lean | 8a8be5f2a41e33d8d37c4bb474ed3369986ee462 | [] | no_license | AurelienSaue/Mathlib4_auto | f538cfd0980f65a6361eadea39e6fc639e9dae14 | 590df64109b08190abe22358fabc3eae000943f2 | refs/heads/master | 1,683,906,849,776 | 1,622,564,669,000 | 1,622,564,669,000 | 371,723,747 | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 8,858 | 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 Mathlib.PrePort
import Mathlib.Lean3Lib.init.default
import Mathlib.set_theory.game.short
import Mathlib.PostPort
universes u l
namespace Mathlib
/-!
# Gam... |
46c001d8cec49d2c9e6456f9e128c8f42db4872c | bbecf0f1968d1fba4124103e4f6b55251d08e9c4 | /src/topology/basic.lean | 5157eeaa4310cde0dee6d1485586ac0999305406 | [
"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 | 63,246 | 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
/-!
# Basic theory of topological spaces.
The main... |
725ff11ff0f775d969db7f2defa3279bfbfd75ba | 0845ae2ca02071debcfd4ac24be871236c01784f | /library/init/data/ordering/default.lean | e3f5fdf672fd9277eeb192c48c326ccc524bbf0b | [
"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 | 186 | 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 .basic
|
d7835cad5336b73d61c7a9b3c95fe05e9cc2cecb | 35677d2df3f081738fa6b08138e03ee36bc33cad | /src/category/traversable/derive.lean | d9e4bd014aabe904a903999736c2fdf1555bc6e5 | [
"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 | 17,105 | lean | /-
Copyright (c) 2018 Simon Hudon. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Author: Simon Hudon
Automation to construct `traversable` instances
-/
import category.traversable.basic
category.traversable.lemmas
category.basic data.list.basic
import tactic.ba... |
72670a3c8c9519e5f20c2ffa2cff067c67544f77 | 9ad8d18fbe5f120c22b5e035bc240f711d2cbd7e | /src/undergraduate/MAS114/Semester 1/Q09.lean | eec9a80d8cf760e082f2fb2e6fae2fd3503bd79f | [] | no_license | agusakov/lean_lib | c0e9cc29fc7d2518004e224376adeb5e69b5cc1a | f88d162da2f990b87c4d34f5f46bbca2bbc5948e | refs/heads/master | 1,642,141,461,087 | 1,557,395,798,000 | 1,557,395,798,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 642 | lean | import data.int.basic
import tactic.ring
namespace MAS114
namespace exercises_1
namespace Q09
def even (n : ℤ) := ∃ k : ℤ, n = 2 * k
def odd (n : ℤ) := ∃ k : ℤ, n = 2 * k + 1
lemma L1 (n : ℤ) : even n → even (n ^ 2) :=
begin
rintro ⟨k,e⟩,
use n * k,
rw[e,pow_two],ring,
end
lemma L2 (n m : ℤ) : even n → even m ... |
fee07a65e1c9b9b108fdcbe4011e789430043243 | 75db7e3219bba2fbf41bf5b905f34fcb3c6ca3f2 | /hott/algebra/category/precategory.hlean | 71652857c20b674f4b0eca769e27f7b659c829a9 | [
"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 | 12,187 | 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
-/
import types.trunc types.pi arity
open eq is_trunc pi equiv equiv.ops
namespace category
/-
Just as in Coq-HoTT we add two redundant fields to precategories:... |
a53ee710816ad09f7e0777a6d9024e412595dc64 | 4727251e0cd73359b15b664c3170e5d754078599 | /src/measure_theory/function/floor.lean | a14bb132cedf776a21640be4567482d94c2eb59f | [
"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 | 2,850 | lean | /-
Copyright (c) 2021 Yury G. Kudryashov. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Yury G. Kudryashov
-/
import measure_theory.constructions.borel_space
/-!
# Measurability of `⌊x⌋` etc
In this file we prove that `int.floor`, `int.ceil`, `int.fract`, `nat.floor... |
9f25117ab2c4d81504efd4a11264981af66d12da | efce24474b28579aba3272fdb77177dc2b11d7aa | /src/homotopy_theory/topological_spaces/inter_union.lean | 15d8a64d9739c19f76a3cda6265e500539aca924 | [
"Apache-2.0"
] | permissive | rwbarton/lean-homotopy-theory | cff499f24268d60e1c546e7c86c33f58c62888ed | 39e1b4ea1ed1b0eca2f68bc64162dde6a6396dee | refs/heads/lean-3.4.2 | 1,622,711,883,224 | 1,598,550,958,000 | 1,598,550,958,000 | 136,023,667 | 12 | 6 | Apache-2.0 | 1,573,187,573,000 | 1,528,116,262,000 | Lean | UTF-8 | Lean | false | false | 6,592 | lean | import category_theory.category
import category_theory.colimits
import category_theory.colimit_lemmas
import category_theory.types
import .homeomorphism
import .subspace
open set
open category_theory
local notation f ` ∘ `:80 g:80 := g ≫ f
universe u
namespace homotopy_theory.topological_spaces
namespace Set
loca... |
38cc1e9768a5d2e09db752ade03b8023a93f1f95 | 8cae430f0a71442d02dbb1cbb14073b31048e4b0 | /src/order/filter/ultrafilter.lean | 0d528f34e26f795e9e7099e24f758af7df07a6b2 | [
"Apache-2.0"
] | permissive | leanprover-community/mathlib | 56a2cadd17ac88caf4ece0a775932fa26327ba0e | 442a83d738cb208d3600056c489be16900ba701d | refs/heads/master | 1,693,584,102,358 | 1,693,471,902,000 | 1,693,471,902,000 | 97,922,418 | 1,595 | 352 | Apache-2.0 | 1,694,693,445,000 | 1,500,624,130,000 | Lean | UTF-8 | Lean | false | false | 17,191 | 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, Jeremy Avigad, Yury Kudryashov
-/
import order.filter.cofinite
import order.zorn_atoms
/-!
# Ultrafilters
> THIS FILE IS SYNCHRONIZED WITH MATHLIB4.
> Any changes to ... |
35ad0f7bd15cc7c930c257cf264f67521b5f8468 | 2bafba05c98c1107866b39609d15e849a4ca2bb8 | /src/week_1/Part_D_relations.lean | 397088cdc5b25b3c7ffa5240e1363f482f1358fc | [
"Apache-2.0"
] | permissive | ImperialCollegeLondon/formalising-mathematics | b54c83c94b5c315024ff09997fcd6b303892a749 | 7cf1d51c27e2038d2804561d63c74711924044a1 | refs/heads/master | 1,651,267,046,302 | 1,638,888,459,000 | 1,638,888,459,000 | 331,592,375 | 284 | 24 | Apache-2.0 | 1,669,593,705,000 | 1,611,224,849,000 | Lean | UTF-8 | Lean | false | false | 8,278 | lean | import tactic
/-!
# Equivalence relations are the same as partitions
In this file we prove that there's a bijection between
the equivalence relations on a type, and the partitions of a type.
Three sections:
1) partitions
2) equivalence classes
3) the proof
## Overview
Say `α` is a type, and `R : α → α → Prop` i... |
db017e2d3d00c4c2874bdacf6b17ea1bb0430036 | fa02ed5a3c9c0adee3c26887a16855e7841c668b | /src/category_theory/thin.lean | 967837e24a7df8ec79aa25c8284831aa807cecb6 | [
"Apache-2.0"
] | permissive | jjgarzella/mathlib | 96a345378c4e0bf26cf604aed84f90329e4896a2 | 395d8716c3ad03747059d482090e2bb97db612c8 | refs/heads/master | 1,686,480,124,379 | 1,625,163,323,000 | 1,625,163,323,000 | 281,190,421 | 2 | 0 | Apache-2.0 | 1,595,268,170,000 | 1,595,268,169,000 | null | UTF-8 | Lean | false | false | 2,042 | lean | /-
Copyright (c) 2019 Scott Morrison, Bhavik Mehta. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Scott Morrison, Bhavik Mehta
-/
import category_theory.functor_category
import category_theory.isomorphism
/-!
# Thin categories
A thin category (also known as a sparse... |
12f818359688dcbf79edd91891d87835078d21a4 | dd0f5513e11c52db157d2fcc8456d9401a6cd9da | /06_Inductive_Types.org.8.lean | 401df5aeb6963684ff4fbc5b33875bf20282f0d6 | [] | no_license | cjmazey/lean-tutorial | ba559a49f82aa6c5848b9bf17b7389bf7f4ba645 | 381f61c9fcac56d01d959ae0fa6e376f2c4e3b34 | refs/heads/master | 1,610,286,098,832 | 1,447,124,923,000 | 1,447,124,923,000 | 43,082,433 | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 931 | lean | /- page 79 -/
import standard
inductive weekday : Type :=
| sunday : weekday
| monday : weekday
| tuesday : weekday
| wednesday : weekday
| thursday : weekday
| friday : weekday
| saturday : weekday
namespace weekday
definition next (d : weekday) : weekday :=
weekday.cases_on d monday tuesday wednesday thursday frida... |
fcb24e409b789221a88e8b3842a83b893472cc64 | 367134ba5a65885e863bdc4507601606690974c1 | /src/category_theory/limits/shapes/zero.lean | cf61dfca9e4f95c2e655c714655cd775467ddbc8 | [
"Apache-2.0"
] | permissive | kodyvajjha/mathlib | 9bead00e90f68269a313f45f5561766cfd8d5cad | b98af5dd79e13a38d84438b850a2e8858ec21284 | refs/heads/master | 1,624,350,366,310 | 1,615,563,062,000 | 1,615,563,062,000 | 162,666,963 | 0 | 0 | Apache-2.0 | 1,545,367,651,000 | 1,545,367,651,000 | null | UTF-8 | Lean | false | false | 15,934 | 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.limits.shapes.terminal
import category_theory.limits.shapes.binary_products
import category_theory.limits.shapes.products
import category_theor... |
900ecf54508d732a6e885a10c14e3fb74e08e3f5 | 6432ea7a083ff6ba21ea17af9ee47b9c371760f7 | /src/Lean/Elab/PreDefinition/WF/Fix.lean | eed16d3e65363e040030b19716b2cfdfe8d2d2cc | [
"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 | 9,311 | 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.Util.HasConstCache
import Lean.Meta.CasesOn
import Lean.Meta.Match.Match
import Lean.Meta.Tactic.Simp.Main
import Lean.Meta.Tactic.Cleanup
impor... |
72df6e30de06de411b607e426ce1fe1f817bed7d | 7453f4f6074a6d5ce92b7bee2b29c409c061fbef | /src/Interpolation/lagrange_v1.lean | 7112942b8b480652666ca949eba4745d38ec46c9 | [
"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 | 2,036 | lean | import data.polynomial
import data.real.basic
import algebra.big_operators
noncomputable theory
open_locale big_operators
open polynomial
-- The basic building block in the Lagrange polynomial
-- this is (x - b)/(a - b)
def scaled_binomial (a b : ℝ) : polynomial ℝ :=
((1 : ℝ) / (a - b)) • (X - C b)
@[simp] lemma sc... |
c9e63f5b6a93026cf1b53c78028dba4f6c463644 | 48f4f349e1bb919d14ab7e5921d0cfe825f4c423 | /folklore/polytope.lean | 669e5301cd3416da2a828dd2265e2a67a3c582a4 | [] | no_license | thalesant/formalabstracts-2017 | fdf4ff90d30ab1dcb6d4cf16a068a997ea5ecc80 | c47181342c9e41954aa8d41f5049965b5f332bca | refs/heads/master | 1,584,610,453,925 | 1,528,277,508,000 | 1,528,277,508,000 | 136,299,625 | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 3,409 | lean | /-
Convexity and polytopes following HOL Light
generalized to a general vector space over ℝ
-/
import order.filter data.set meta_data data.list data.vector
.real_axiom algebra.module data.finset.basic .metric
noncomputable theory
namespace polytope
open set filter classical nat int list vector real_axiom me... |
bd1375cb5151eb9bd572eb3941fa310e36432dec | 07c76fbd96ea1786cc6392fa834be62643cea420 | /hott/algebra/category/constructions/pushout.hlean | 25cad0c228dcc72c66c95d2e822a30c81dc8ff85 | [
"Apache-2.0"
] | permissive | fpvandoorn/lean2 | 5a430a153b570bf70dc8526d06f18fc000a60ad9 | 0889cf65b7b3cebfb8831b8731d89c2453dd1e9f | refs/heads/master | 1,592,036,508,364 | 1,545,093,958,000 | 1,545,093,958,000 | 75,436,854 | 0 | 0 | null | 1,480,718,780,000 | 1,480,718,780,000 | null | UTF-8 | Lean | false | false | 21,444 | hlean | /-
Copyright (c) 2016 Floris van Doorn. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Floris van Doorn
The pushout of categories
The morphisms in the pushout of two categories is defined as a quotient on lists of composable
morphisms. For this we use the notion of ... |
11cf3adfbab0c05992da998fe3816386f031a2bc | 8cb37a089cdb4af3af9d8bf1002b417e407a8e9e | /tests/lean/interactive/my_tac_class.lean | 06cab4e2b2f0936a361351d2fd16a10523f26eb2 | [
"Apache-2.0"
] | permissive | kbuzzard/lean | ae3c3db4bb462d750dbf7419b28bafb3ec983ef7 | ed1788fd674bb8991acffc8fca585ec746711928 | refs/heads/master | 1,620,983,366,617 | 1,618,937,600,000 | 1,618,937,600,000 | 359,886,396 | 1 | 0 | Apache-2.0 | 1,618,936,987,000 | 1,618,936,987,000 | null | UTF-8 | Lean | false | false | 1,871 | lean | meta def mytac :=
state_t nat tactic
section
local attribute [reducible] mytac
meta instance : monad mytac := by apply_instance
meta instance : monad_state nat mytac := by apply_instance
meta instance : has_monad_lift tactic mytac := by apply_instance
end
meta instance (α : Type) : has_coe (tactic α) (mytac α) :=
⟨mo... |
5c0ad09fd7676ff5a605539dd99f5abfbe0707e2 | cf39355caa609c0f33405126beee2739aa3cb77e | /tests/lean/focus_tac.lean | 4126af8a161d4f0973e5aaf56cb379c70911348c | [
"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 | 669 | lean | open tactic
example (a : nat) : a = a :=
by do
define `x (expr.const `nat []),
trace "---- after assert ----",
trace_state,
solve1 (do trace "--- inside focus tac ---", trace_state), -- SHOULD FAIL HERE
trace "---- after focus tac ----",
trace_state,
x ← get_local `x,
mk_app `eq.refl [x] >>= ex... |
4d021a600911f9ff248844a81eaba97169a285dc | 74addaa0e41490cbaf2abd313a764c96df57b05d | /Mathlib/Lean3Lib/init/data/sum/basic_auto.lean | 33724cdcd965123fd0fa7d00a89f3f78ad1f08f0 | [] | 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 | 674 | 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, Jeremy Avigad
The sum type, aka disjoint union.
-/
import Mathlib.PrePort
import Mathlib.Lean3Lib.init.logic
universes u v
namespace Mathlib
infixr:30 " ... |
5486c0adafcba52455dcb053bbe7285648bd12e0 | ce6917c5bacabee346655160b74a307b4a5ab620 | /src/ch5/ex0218.lean | 12839645077eb273b2796a36821a41a00b35a114 | [] | no_license | Ailrun/Theorem_Proving_in_Lean | ae6a23f3c54d62d401314d6a771e8ff8b4132db2 | 2eb1b5caf93c6a5a555c79e9097cf2ba5a66cf68 | refs/heads/master | 1,609,838,270,467 | 1,586,846,743,000 | 1,586,846,743,000 | 240,967,761 | 1 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 63 | lean | example : 2 + 3 = 5 :=
begin
generalize : 3 = x,
sorry
end
|
141b91643a8a79557c32371638da8f84de0f44df | 432d948a4d3d242fdfb44b81c9e1b1baacd58617 | /src/algebra/linear_ordered_comm_group_with_zero.lean | 5a5a0cbdaf6de3f3597468692bb252dc8ff721bd | [
"Apache-2.0"
] | permissive | JLimperg/aesop3 | 306cc6570c556568897ed2e508c8869667252e8a | a4a116f650cc7403428e72bd2e2c4cda300fe03f | refs/heads/master | 1,682,884,916,368 | 1,620,320,033,000 | 1,620,320,033,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 7,967 | lean | /-
Copyright (c) 2020 Kenny Lau. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Kenny Lau, Johan Commelin, Patrick Massot
-/
import algebra.ordered_group
import algebra.group_with_zero
import algebra.group_with_zero.power
import tactic.abel
/-!
# Linearly ordered com... |
6e00977414f1e0f472ec47133d4fc6fdd11e0b1d | 87fd6b43d22688237c02b87c30d2a524f53bab24 | /src/game/sets/sets_level08.lean | 919d42213b9bd3a59aa2c97aacce0efc8d2323d6 | [
"Apache-2.0"
] | permissive | grthomson/real-number-game | 66142fedf0987db90f66daed52f9c8b42b70f909 | 8ddc15fdddc241c246653f7bb341df36e4e880a8 | refs/heads/master | 1,668,059,330,605 | 1,592,873,454,000 | 1,592,873,454,000 | 262,025,764 | 0 | 0 | null | 1,588,849,107,000 | 1,588,849,106,000 | null | UTF-8 | Lean | false | false | 939 | lean | import kb_real_defs --hide
/-
# Chapter 1 : Sets
## Level 8
-/
/-
This is a very basic example of working with intervals of real numbers in Lean.
An interval that is closed at both endpoints $a$ and $b$ can be
constructed using `set.Icc a b`. For an open-closed interval, the notation
is `set.Ioc a b`, etc. The us... |
9f25e517b4dbd2fdea9cf0f3aa777a429effebaa | 57c233acf9386e610d99ed20ef139c5f97504ba3 | /src/number_theory/fermat4.lean | 9c08682b373559f67daa7fe38b197e2a995a8e3a | [
"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 | 12,332 | lean | /-
Copyright (c) 2020 Paul van Wamelen. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Paul van Wamelen
-/
import number_theory.pythagorean_triples
import ring_theory.coprime.lemmas
/-!
# Fermat's Last Theorem for the case n = 4
There are no non-zero integers `a`, `b`... |
43a29168daddfdfd5579a301a941a24bb07f68e4 | 74addaa0e41490cbaf2abd313a764c96df57b05d | /Mathlib/data/equiv/denumerable_auto.lean | cc3b135529d9f390e1f732a2f8e9b406d5e867ed | [] | 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,703 | lean | /-
Copyright (c) 2018 Mario Carneiro. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Author: Mario Carneiro
Denumerable (countably infinite) types, as a typeclass extending
encodable. This is used to provide explicit encode/decode functions
from nat, where the functions are kn... |
df2872e5fac1bc8c5e8f35b1143075f6f576d01a | 9dc8cecdf3c4634764a18254e94d43da07142918 | /src/data/set/functor.lean | a37798490a6b6334881afe0bee5c4bcd7e52dda3 | [
"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,481 | lean | /-
Copyright (c) 2016 Leonardo de Moura. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Leonardo de Moura
-/
import data.set.lattice
/-!
# Functoriality of `set`
This file defines the functor structure of `set`.
-/
universes u
open function
namespace set
variables... |
581a0b9347ad5f5c68291cee425fedcb86aaf992 | 367134ba5a65885e863bdc4507601606690974c1 | /src/algebra/group/type_tags.lean | b6dd3e1046c0876330c17b49c4f89d78552ec4a6 | [
"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 | 9,467 | 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 algebra.group.hom
import data.equiv.basic
/-!
# Type tags that turn additive structures into multiplicative, and vice versa
We define two type tags:
* `addit... |
49f890956a0af46c51021d734f31b26de08193ec | 4efff1f47634ff19e2f786deadd394270a59ecd2 | /src/ring_theory/noetherian.lean | 1e7d4889acc6bd2c51e7fa9d54404ae8e7723b63 | [
"Apache-2.0"
] | permissive | agjftucker/mathlib | d634cd0d5256b6325e3c55bb7fb2403548371707 | 87fe50de17b00af533f72a102d0adefe4a2285e8 | refs/heads/master | 1,625,378,131,941 | 1,599,166,526,000 | 1,599,166,526,000 | 160,748,509 | 0 | 0 | Apache-2.0 | 1,544,141,789,000 | 1,544,141,789,000 | null | UTF-8 | Lean | false | false | 23,233 | lean | /-
Copyright (c) 2018 Mario Carneiro and Kevin Buzzard. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Mario Carneiro, Kevin Buzzard
-/
import ring_theory.ideal.operations
import linear_algebra.basis
import order.order_iso_nat
/-!
# Noetherian rings and modules
The f... |
faba7ef7c41ca7e1d3081b38a9250e62c15e42a0 | 12dabd587ce2621d9a4eff9f16e354d02e206c8e | /world08/level06.lean | 4ee822295d6ad993e1837ac54166463d706e83d6 | [] | no_license | abdelq/natural-number-game | a1b5b8f1d52625a7addcefc97c966d3f06a48263 | bbddadc6d2e78ece2e9acd40fa7702ecc2db75c2 | refs/heads/master | 1,668,606,478,691 | 1,594,175,058,000 | 1,594,175,058,000 | 278,673,209 | 0 | 1 | null | null | null | null | UTF-8 | Lean | false | false | 137 | lean | theorem add_left_cancel (t a b : mynat) : t + a = t + b → a = b :=
begin
rw add_comm,
rw add_comm t,
exact add_right_cancel a t b,
end
|
9490b7641b18830145bbb20a6696d90499dfe6e3 | 8cae430f0a71442d02dbb1cbb14073b31048e4b0 | /src/topology/urysohns_bounded.lean | c0ae5baa0a4f5a02ecd2c46a22becc5df55d23ce | [
"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,307 | 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 topology.urysohns_lemma
import topology.continuous_function.bounded
/-!
# Urysohn's lemma for bounded continuous functions
> THIS FILE IS SYNCHRONIZED WITH... |
de4c872aa9d050a59c82c886f6bc7b769c28c4f3 | 6432ea7a083ff6ba21ea17af9ee47b9c371760f7 | /tests/lean/autoImplicitForbidden.lean | 9cc11570aebe289f48f8ef19ad56b6edd3eeccaa | [
"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 | 547 | lean | def f : f → Bool := -- Error at second `f`
fun _ => true
mutual
def g : h → Bool := -- Error at `h`, `h` is not eligible to be an auto implicit because of the mutual block
fun _ => true
def h := List Nat
end
structure Bla (x : List Bla) where -- Error at second `Foo`
val : Nat
inductive Foo : List Foo... |
b7ff6c73b3355f7896b346b76c4167515fdf035f | cf39355caa609c0f33405126beee2739aa3cb77e | /tests/lean/run/1295.lean | acd00168d7df4f6c81e6df1f2e91109215309d6e | [
"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 | 323 | lean | set_option pp.all true
open tactic
example : true := by do
a ← to_expr ``((0 : ℕ)), b ← to_expr ``(nat.zero),
fail_if_success (unify a b transparency.none),
triv
example (x : ℕ) : true := by do
a ← to_expr ```((x + 0 : ℕ)), b ← to_expr ```(x + nat.zero),
fail_if_success (unify a b transparency.none),
triv
|
3fa6e73c80f3a6b0ffcbdbe76cbcae61a9e0c61b | 35677d2df3f081738fa6b08138e03ee36bc33cad | /test/rewrite_all.lean | 16f790c2445cd5c573daaba9cb6c653f764c06c2 | [
"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 | 2,585 | lean | /-
Copyright (c) 2018 Keeley Hoek. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Keeley Hoek, Scott Morrison
-/
import tactic.rewrite_all
import data.vector
structure F :=
(a : ℕ)
(v : vector ℕ a)
(p : v.val = [])
example (f : F) : f.v.val = [] :=
begin
perform_nt... |
a70ea3aa5b8ed4c40b8b8710e98d7202aaca6e54 | 7565ffb53cc64430691ce89265da0f944ee43051 | /hott/homotopy/sphere.hlean | 391a5ad21cb5c197e26820b2e2743009f1593703 | [
"Apache-2.0"
] | permissive | EgbertRijke/lean2 | cacddba3d150f8b38688e044960a208bf851f90e | 519dcee739fbca5a4ab77d66db7652097b4604cd | refs/heads/master | 1,606,936,954,854 | 1,498,836,083,000 | 1,498,910,882,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 13,924 | 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
Declaration of the n-spheres
-/
import .susp types.trunc
open eq nat susp bool is_trunc unit pointed algebra
/-
We can define spheres with the following possib... |
9d7c6b9cdb12540ef0b177671f45703f9e825362 | 1dd482be3f611941db7801003235dc84147ec60a | /src/linear_algebra/dimension.lean | a50b1bc65d9379fde4a8e444a23529e2d6121b26 | [
"Apache-2.0"
] | permissive | sanderdahmen/mathlib | 479039302bd66434bb5672c2a4cecf8d69981458 | 8f0eae75cd2d8b7a083cf935666fcce4565df076 | refs/heads/master | 1,587,491,322,775 | 1,549,672,060,000 | 1,549,672,060,000 | 169,748,224 | 0 | 0 | Apache-2.0 | 1,549,636,694,000 | 1,549,636,694,000 | null | UTF-8 | Lean | false | false | 8,794 | lean | /-
Copyright (c) 2018 Mario Carneiro. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Author: Mario Carneiro, Johannes Hölzl, Sander Dahmen
Dimension of modules and vector spaces.
-/
import linear_algebra.basis
import set_theory.ordinal
noncomputable theory
local attribute [in... |
32f3cd212f4c90a501de3e3729d5e87437967abb | 367134ba5a65885e863bdc4507601606690974c1 | /src/tactic/derive_fintype.lean | 0168bea0b27e57fbf2ac2b2ab3c4886122da9c81 | [
"Apache-2.0"
] | permissive | kodyvajjha/mathlib | 9bead00e90f68269a313f45f5561766cfd8d5cad | b98af5dd79e13a38d84438b850a2e8858ec21284 | refs/heads/master | 1,624,350,366,310 | 1,615,563,062,000 | 1,615,563,062,000 | 162,666,963 | 0 | 0 | Apache-2.0 | 1,545,367,651,000 | 1,545,367,651,000 | null | UTF-8 | Lean | false | false | 15,296 | lean | /-
Copyright (c) 2020 Mario Carneiro. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Mario Carneiro
-/
import logic.basic
import data.fintype.basic
/-!
# Derive handler for `fintype` instances
This file introduces a derive handler to automatically generate `fintype`
... |
3f2fd1963fb8b42f489e482b1ff59bac2e898ab1 | 491068d2ad28831e7dade8d6dff871c3e49d9431 | /tests/lean/notation2.lean | a1c631b1c8b3421f219b368996d13e4723a1e21c | [
"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 | 273 | lean | import data.num
inductive list (T : Type) : Type := nil {} : list T | cons : T → list T → list T open list notation h :: t := cons h t notation `[` l:(foldr `,` (h t, cons h t) nil) `]` := l
infixr `::` := cons
check 1 :: 2 :: nil
check 1 :: 2 :: 3 :: 4 :: 5 :: nil
|
c9fae880e5c6cc33f7b372e7857e90bee764b2b4 | a9d0fb7b0e4f802bd3857b803e6c5c23d87fef91 | /hott/types/pointed2.hlean | aee4af75974ad5b20df97ad9ee79c075adf941b8 | [
"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 | 7,993 | hlean | /-
Copyright (c) 2014 Jakob von Raumer. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Floris van Doorn
Ported from Coq HoTT
-/
import .equiv cubical.square
open eq is_equiv equiv pointed is_trunc
-- structure pequiv (A B : Type*) :=
-- (to_pmap : A →* B)
-- (... |
395bb4530acb2cacdd175d93278e51ffd79f3722 | bde6690019e9da475b0c91d5a066e0f6681a1179 | /library/standard/kernel.lean | 4f912499a8419704990a49e979ddb0a9311e450d | [
"Apache-2.0"
] | permissive | leodemoura/libraries | ae67d491abc580407aa837d65736d515bec39263 | 14afd47544daa9520ea382d33ba7f6f05c949063 | refs/heads/master | 1,473,601,302,073 | 1,403,713,370,000 | 1,403,713,370,000 | 19,831,525 | 1 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 50,486 | 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
import macros tactic
universe U ≥ 1
definition TypeU := (Type U)
-- create default rewrite rule set
(* mk_rewrite_rule_set() *)
variable Bool : Type
-... |
7375798543c61cc1783b64c68c6cfd9dea452ae9 | d1a52c3f208fa42c41df8278c3d280f075eb020c | /tests/lean/run/termParserAttr.lean | 0afa9201db2e673a994bd925493a55d9f8ad38cd | [
"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 | 2,125 | lean | import Lean
open Lean
open Lean.Elab
def runCore (input : String) (failIff : Bool := true) : CoreM Unit := do
let env ← getEnv;
let opts ← getOptions;
let (env, messages) ← process input env opts;
messages.toList.forM fun msg => do IO.println (← msg.toString)
if failIff && messages.hasErrors then throwError "errors ... |
10e71e686d903637aa636e4e0a5937283fce5ef9 | 6dc0c8ce7a76229dd81e73ed4474f15f88a9e294 | /src/Lean/Elab/StructInst.lean | 47e9d0c186b2df1ddf6ac12beb45675ccf0312c4 | [
"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 | 34,167 | 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.Util.FindExpr
import Lean.Parser.Term
import Lean.Elab.App
import Lean.Elab.Binders
namespace Lean.Elab.Term.StructInst
open Std (HashMap)
ope... |
cbfb2031c2266e997bcd7c7adc945d2540e41e86 | 6432ea7a083ff6ba21ea17af9ee47b9c371760f7 | /src/Lean/Linter/Builtin.lean | 2548e9b23a19b58a16422a79890492a0da320207 | [
"Apache-2.0",
"LLVM-exception",
"NCSA",
"LGPL-3.0-only",
"LicenseRef-scancode-inner-net-2.0",
"BSD-3-Clause",
"LGPL-2.0-or-later",
"Spencer-94",
"LGPL-2.1-or-later",
"HPND",
"LicenseRef-scancode-pcre",
"ISC",
"LGPL-2.1-only",
"LicenseRef-scancode-other-permissive",
"SunPro",
"CMU-Mach"... | permissive | leanprover/lean4 | 4bdf9790294964627eb9be79f5e8f6157780b4cc | f1f9dc0f2f531af3312398999d8b8303fa5f096b | refs/heads/master | 1,693,360,665,786 | 1,693,350,868,000 | 1,693,350,868,000 | 129,571,436 | 2,827 | 311 | Apache-2.0 | 1,694,716,156,000 | 1,523,760,560,000 | Lean | UTF-8 | Lean | false | false | 1,263 | lean | import Lean.Linter.Util
import Lean.Elab.Command
namespace Lean.Linter
register_builtin_option linter.suspiciousUnexpanderPatterns : Bool := {
defValue := true,
descr := "enable the 'suspicious unexpander patterns' linter"
}
def getLinterSuspiciousUnexpanderPatterns (o : Options) : Bool := getLinterValue linter.... |
c970e47640ef3c9b069d81842ead031af277744d | df2ac890a99cf2a713b837b1a2a1c322c21b7929 | /src/test.lean | c08076822a551f1532edcccc542372dbd713e0a3 | [] | no_license | alib99/lean | 3ff677698b0df63ddc32365dc77d495afee3668a | a4f168b789901deba7b7a47f1d0f4dfe696bd7b9 | refs/heads/master | 1,585,988,152,218 | 1,541,120,824,000 | 1,541,120,824,000 | 155,777,199 | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 2,611 | lean | import category_theory.category group_theory.group_action category_theory.functor
import category_theory.yoneda
open category_theory category_theory.category
instance Gset (G : Type) [group G] :
category (Σ X : Type, {f : G → X → X // is_group_action f}) :=
{ hom := λ X Y, {k : X.1 → Y.1 // ∀ (g : G) (x : X.1), k (X... |
5041739d2a946574711542d08fc53a33aa964526 | 32025d5c2d6e33ad3b6dd8a3c91e1e838066a7f7 | /stage0/src/Lean/Meta/Tactic.lean | 07715bfa4edcd7190f8143a425a0941356edfcac | [
"Apache-2.0"
] | permissive | walterhu1015/lean4 | b2c71b688975177402758924eaa513475ed6ce72 | 2214d81e84646a905d0b20b032c89caf89c737ad | refs/heads/master | 1,671,342,096,906 | 1,599,695,985,000 | 1,599,695,985,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 547 | lean | /-
Copyright (c) 2019 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Leonardo de Moura
-/
import Lean.Meta.Tactic.Intro
import Lean.Meta.Tactic.Assumption
import Lean.Meta.Tactic.Apply
import Lean.Meta.Tactic.Revert
import Lean.Meta.Tactic.Clear
... |
065799c9d6b5f9b5e21f31257ca0b8c9f556921d | 37da0369b6c03e380e057bf680d81e6c9fdf9219 | /hott/algebra/trunc_group.hlean | 011fa1dbf63cd5dd9e79c049a1bd5a1e9e1150b7 | [
"Apache-2.0"
] | permissive | kodyvajjha/lean2 | 72b120d95c3a1d77f54433fa90c9810e14a931a4 | 227fcad22ab2bc27bb7471be7911075d101ba3f9 | refs/heads/master | 1,627,157,512,295 | 1,501,855,676,000 | 1,504,809,427,000 | 109,317,326 | 0 | 0 | null | 1,509,839,253,000 | 1,509,655,713,000 | C++ | UTF-8 | Lean | false | false | 2,445 | 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
truncating an ∞-group to a group
-/
import hit.trunc algebra.bundled
open eq is_trunc trunc
namespace algebra
section
parameters (n : trunc_index) {A : Type... |
e4e2a17a5834c00ea50d338d1ba1a1fcb6d2bd29 | a9d0fb7b0e4f802bd3857b803e6c5c23d87fef91 | /library/data/nat/examples/fib2.lean | 50b20c4d224ac137b0722c431d345cd5edf150b5 | [
"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 | 1,293 | lean | /-
Copyright (c) 2015 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Author: Leonardo de Moura
Show that tail recursive fib is equal to standard one.
-/
import data.nat
open nat
definition fib : nat → nat
| 0 := 1
| 1 := 1
| (n+2) := fib (n+1) +... |
b3fe50f904d8b34c3dfef5c6506fbd1d4aefdbf9 | 74addaa0e41490cbaf2abd313a764c96df57b05d | /Mathlib/representation_theory/maschke.lean | f8133b981258b33049eaf94a622c22ad61675b69 | [] | 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,150 | lean | /-
Copyright (c) 2020 Scott Morrison. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Author: Scott Morrison
-/
import Mathlib.PrePort
import Mathlib.Lean3Lib.init.default
import Mathlib.algebra.monoid_algebra
import Mathlib.algebra.invertible
import Mathlib.algebra.char_p.basic... |
41b9df735e3845349cbead67bb1ff063a1799132 | d406927ab5617694ec9ea7001f101b7c9e3d9702 | /src/number_theory/modular_forms/congruence_subgroups.lean | 5dfd42d0e3b01146553ceb95c572d762a570b967 | [
"Apache-2.0"
] | permissive | alreadydone/mathlib | dc0be621c6c8208c581f5170a8216c5ba6721927 | c982179ec21091d3e102d8a5d9f5fe06c8fafb73 | refs/heads/master | 1,685,523,275,196 | 1,670,184,141,000 | 1,670,184,141,000 | 287,574,545 | 0 | 0 | Apache-2.0 | 1,670,290,714,000 | 1,597,421,623,000 | Lean | UTF-8 | Lean | false | false | 7,961 | lean | /-
Copyright (c) 2022 Chris Birkbeck. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Chris Birkbeck
-/
import linear_algebra.special_linear_group
import data.zmod.basic
import group_theory.subgroup.pointwise
import group_theory.group_action.conj_act
/-!
# Congruence su... |
06b7afce14054645a727dc1d5fe021c8d654437a | e0f9ba56b7fedc16ef8697f6caeef5898b435143 | /src/category_theory/shift.lean | 2667a51854247b27565c29eb77f7cdbc7f8bc6d4 | [
"Apache-2.0"
] | permissive | anrddh/mathlib | 6a374da53c7e3a35cb0298b0cd67824efef362b4 | a4266a01d2dcb10de19369307c986d038c7bb6a6 | refs/heads/master | 1,656,710,827,909 | 1,589,560,456,000 | 1,589,560,456,000 | 264,271,800 | 0 | 0 | Apache-2.0 | 1,589,568,062,000 | 1,589,568,061,000 | null | UTF-8 | Lean | false | false | 1,422 | lean | /-
Copyright (c) 2020 Scott Morrison. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Scott Morrison
-/
import category_theory.limits.shapes.zero
/-! #Shift
A `shift` on a category is nothing more than an automorphism of the category. An example to
keep in mind might ... |
41ac2b433bb7bcaef0ff176b262477bc252b02e7 | 2a70b774d16dbdf5a533432ee0ebab6838df0948 | /_target/deps/mathlib/src/ring_theory/eisenstein_criterion.lean | 7a79944caecc512c075bd6cea3b9d4599dca2453 | [
"Apache-2.0"
] | permissive | hjvromen/lewis | 40b035973df7c77ebf927afab7878c76d05ff758 | 105b675f73630f028ad5d890897a51b3c1146fb0 | refs/heads/master | 1,677,944,636,343 | 1,676,555,301,000 | 1,676,555,301,000 | 327,553,599 | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 5,389 | lean | /-
Copyright (c) 2020 Chris Hughes. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Chris Hughes
-/
import ring_theory.ideal.operations
import data.polynomial.ring_division
import tactic.apply_fun
import ring_theory.prime
/-!
# Eisenstein's criterion
A proof of a sligh... |
9639e1e78f9348b97db26d97947bc6f8ddb34b46 | a4673261e60b025e2c8c825dfa4ab9108246c32e | /tests/lean/run/125.lean | c24fb615b812d4a6240ee1f33cfa8e41e44aabe8 | [
"Apache-2.0"
] | permissive | jcommelin/lean4 | c02dec0cc32c4bccab009285475f265f17d73228 | 2909313475588cc20ac0436e55548a4502050d0a | refs/heads/master | 1,674,129,550,893 | 1,606,415,348,000 | 1,606,415,348,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 640 | lean |
class HasElems (α : Type) : Type := (elems : Array α)
def elems (α : Type) [HasElems α] : Array α := HasElems.elems
inductive Foo : Type
| mk1 : Bool → Foo
| mk2 : Bool → Foo
open Foo
instance BoolElems : HasElems Bool := ⟨#[false, true]⟩
instance FooElems : HasElems Foo := ⟨(elems Bool).map mk1 ++ (elems Bool).... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.