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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
89e37ca04902eb2b91af07b88cb25bcb51936829 | 6e9cd8d58e550c481a3b45806bd34a3514c6b3e0 | /src/data/rat/cast.lean | 660945dccffb73e5dcc9a845dc3220f3ccddfb62 | [
"Apache-2.0"
] | permissive | sflicht/mathlib | 220fd16e463928110e7b0a50bbed7b731979407f | 1b2048d7195314a7e34e06770948ee00f0ac3545 | refs/heads/master | 1,665,934,056,043 | 1,591,373,803,000 | 1,591,373,803,000 | 269,815,267 | 0 | 0 | Apache-2.0 | 1,591,402,068,000 | 1,591,402,067,000 | null | UTF-8 | Lean | false | false | 12,284 | 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, Mario Carneiro
-/
import data.rat.order
/-!
# Casts for Rational Numbers
## Summary
We define the canonical injection from ℚ into an arbitrary division ring and prove... |
b659521f262f9e8762edd457f4757a0948711b2c | d406927ab5617694ec9ea7001f101b7c9e3d9702 | /src/data/multiset/fold.lean | 9adcacde43569524d8ceca15f2a0ab8be487d398 | [
"Apache-2.0"
] | permissive | alreadydone/mathlib | dc0be621c6c8208c581f5170a8216c5ba6721927 | c982179ec21091d3e102d8a5d9f5fe06c8fafb73 | refs/heads/master | 1,685,523,275,196 | 1,670,184,141,000 | 1,670,184,141,000 | 287,574,545 | 0 | 0 | Apache-2.0 | 1,670,290,714,000 | 1,597,421,623,000 | Lean | UTF-8 | Lean | false | false | 4,672 | lean | /-
Copyright (c) 2017 Mario Carneiro. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Mario Carneiro
-/
import data.multiset.dedup
import data.list.min_max
/-!
# The fold operation for a commutative associative operation over a multiset.
-/
namespace multiset
variable... |
2f310373e69d43be5fbe0fcfe9de09bc7f1378b9 | 8cae430f0a71442d02dbb1cbb14073b31048e4b0 | /src/order/succ_pred/interval_succ.lean | b2a00b4e2f07066287f0163ff504abb85f73f25c | [
"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,016 | lean | /-
Copyright (c) 2022 Yury Kudryashov. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Yury Kudryashov
-/
import data.set.pairwise.basic
import order.succ_pred.basic
/-!
# Intervals `Ixx (f x) (f (order.succ x))`
> THIS FILE IS SYNCHRONIZED WITH MATHLIB4.
> Any change... |
3c85762063544b86c64121f31b47d8faa93ee7d5 | 8cae430f0a71442d02dbb1cbb14073b31048e4b0 | /src/data/dfinsupp/well_founded.lean | a51551fba65f5cfdc503ef282796c306fe5b3cb9 | [
"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 | 11,119 | lean | /-
Copyright (c) 2022 Junyan Xu. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Junyan Xu
-/
import data.dfinsupp.lex
import order.game_add
import order.antisymmetrization
import set_theory.ordinal.basic
/-!
# Well-foundedness of the lexicographic and product orders o... |
6bef11eea13554093456c08438106c321ef18bf8 | 74addaa0e41490cbaf2abd313a764c96df57b05d | /Mathlib/algebra/gcd_monoid_auto.lean | c7c78a4649f157718be3fcdbc9749a5f05d947f9 | [] | 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 | 29,230 | lean | /-
Copyright (c) 2018 Johannes Hölzl. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Johannes Hölzl, Jens Wagemaker
TODO: Provide a GCD monoid instance for `ℕ`, port GCD facts about nats
TODO: Generalize normalization monoids commutative (cancellative) monoids with or... |
cbc53449a31c83d4db745498e96277574dbe0bd9 | 8cae430f0a71442d02dbb1cbb14073b31048e4b0 | /src/linear_algebra/determinant.lean | c005163173ff9be3bd90800174571737a55e7695 | [
"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 | 26,274 | lean | /-
Copyright (c) 2019 Johannes Hölzl. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Johannes Hölzl, Patrick Massot, Casper Putz, Anne Baanen
-/
import linear_algebra.finite_dimensional
import linear_algebra.general_linear_group
import linear_algebra.matrix.reindex
imp... |
4fd9959adf96753df2b68efab07c17f3b48e10c7 | c777c32c8e484e195053731103c5e52af26a25d1 | /src/order/filter/countable_Inter.lean | 7c1b523d91fa195e26614585243606b7debcfb3f | [
"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 | 8,676 | 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 order.filter.basic
import data.set.countable
/-!
# Filters with countable intersection property
> THIS FILE IS SYNCHRONIZED WITH MATHLIB4.
> Any chan... |
7474b9b82611530cb3ea10e926a77ea69ad80501 | b7f22e51856f4989b970961f794f1c435f9b8f78 | /tests/lean/run/refine3.lean | 3148aa23ecee7ea98ab6d7747f605c9c1b36b235 | [
"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 | 277 | lean | import data.nat.basic
open nat algebra
theorem zero_left (n : ℕ) : 0 + n = n :=
nat.induction_on n
!add_zero
(take m IH,
begin
refine
(calc
0 + succ m = succ (0 + m) : _
... = succ m : IH),
esimp
end)
|
b55fb8abb34a44f9ad5f2d0f5153695f941bf355 | 9028d228ac200bbefe3a711342514dd4e4458bff | /src/algebra/direct_sum.lean | 51459f09eb562f50625ebdc5a0e3e317e2a024c2 | [
"Apache-2.0"
] | permissive | mcncm/mathlib | 8d25099344d9d2bee62822cb9ed43aa3e09fa05e | fde3d78cadeec5ef827b16ae55664ef115e66f57 | refs/heads/master | 1,672,743,316,277 | 1,602,618,514,000 | 1,602,618,514,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 7,499 | 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 data.dfinsupp
/-!
# Direct sum
This file defines the direct sum of abelian groups, indexed by a discrete type.
## Notation
`⨁ i, β i` is the n-ary direct sum `direc... |
810c53cd0ec50652dffa9b5819f0486500a5a5ad | 0003047346476c031128723dfd16fe273c6bc605 | /src/analysis/normed_space/bounded_linear_maps.lean | 87309ba8586250e239a1b962cc194d6ca29e58e8 | [
"Apache-2.0"
] | permissive | ChandanKSingh/mathlib | d2bf4724ccc670bf24915c12c475748281d3fb73 | d60d1616958787ccb9842dc943534f90ea0bab64 | refs/heads/master | 1,588,238,823,679 | 1,552,867,469,000 | 1,552,867,469,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 6,636 | 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
Continuous linear functions -- functions between normed vector spaces which are bounded and linear.
-/
import algebra.field
import tactic.norm_num
impor... |
eb07768c45b0f972349b9b61d01172e6b6f0a63f | 74addaa0e41490cbaf2abd313a764c96df57b05d | /Mathlib/tactic/lint/frontend_auto.lean | 52e19e4afb757bf8e0e00667e53c94c1e31d153f | [] | 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,212 | lean | /-
Copyright (c) 2020 Floris van Doorn. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Floris van Doorn, Robert Y. Lewis, Gabriel Ebner
-/
import Mathlib.PrePort
import Mathlib.Lean3Lib.init.default
import Mathlib.tactic.lint.basic
import Mathlib.PostPort
universes l ... |
cf7e953b00bc102fb96e330374ed02c22afedd8a | 74addaa0e41490cbaf2abd313a764c96df57b05d | /Mathlib/data/mv_polynomial/default.lean | 19ebb3633c3d2cd7d828bca02928962e32ddaa6e | [] | 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 | 273 | lean | import Mathlib.PrePort
import Mathlib.Lean3Lib.init.default
import Mathlib.data.mv_polynomial.basic
import Mathlib.data.mv_polynomial.variables
import Mathlib.data.mv_polynomial.rename
import Mathlib.data.mv_polynomial.comm_ring
import Mathlib.PostPort
namespace Mathlib
|
e49817ab7233919afb8818f290b9daec71a20c19 | 5412d79aa1dc0b521605c38bef9f0d4557b5a29d | /stage0/src/Leanpkg/Git.lean | 1203abb875609a96e9b20c8ed19200269487eea2 | [
"Apache-2.0"
] | permissive | smunix/lean4 | a450ec0927dc1c74816a1bf2818bf8600c9fc9bf | 3407202436c141e3243eafbecb4b8720599b970a | refs/heads/master | 1,676,334,875,188 | 1,610,128,510,000 | 1,610,128,521,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 1,447 | lean | /-
Copyright (c) 2017 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Gabriel Ebner, Sebastian Ullrich
-/
import Leanpkg.LeanVersion
namespace Leanpkg
def upstreamGitBranch :=
if Lean.version.isRelease then
"Lean-" ++ leanVersionStringCore... |
91f3db3e541689a5a45e971ff510c85142989355 | 491068d2ad28831e7dade8d6dff871c3e49d9431 | /library/init/reserved_notation.lean | 41f4ea20200dae55ea8acddeea58ecb75a64ca3a | [
"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 | 2,348 | 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
-/
prelude
import init.datatypes
notation `assume` binders `,` r:(scoped f, f) := r
notation `take` binders `,` r:(scoped f, f) := r
/-
Gl... |
2907f25d203ff8d8a448d789c6fdf2c67e045871 | bf532e3e865883a676110e756f800e0ddeb465be | /set_theory/cardinal.lean | b1c4e178c4bd57b4176c11002c8b0f1a40ca2a57 | [
"Apache-2.0"
] | permissive | aqjune/mathlib | da42a97d9e6670d2efaa7d2aa53ed3585dafc289 | f7977ff5a6bcf7e5c54eec908364ceb40dafc795 | refs/heads/master | 1,631,213,225,595 | 1,521,089,840,000 | 1,521,089,840,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 27,358 | lean | /-
Copyright (c) 2017 Johannes Hölzl. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Author: Johannes Hölzl, Mario Carneiro
Cardinal arithmetic.
Cardinals are represented as quotient over equinumerous types.
-/
import data.set.finite data.quot logic.schroeder_bernstein logic... |
29cd7f92782f5eda379b735f8577e6c493c8e4cf | 75db7e3219bba2fbf41bf5b905f34fcb3c6ca3f2 | /hott/algebra/category/constructions/finite_cats.hlean | 78a2d339bb31a1554ec6a16e788374fbfd7a3716 | [
"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 | 5,177 | 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
Some finite categories which are neither discrete nor indiscrete
-/
import ..functor.basic types.sum
open bool unit is_trunc sum eq functor equiv
namespace cate... |
1cdaceb993f82352be7b8ee49480326c44f1e76d | 206422fb9edabf63def0ed2aa3f489150fb09ccb | /src/measure_theory/measurable_space.lean | 7b9542e4bb45d36898179da8ecc446cc5be4909a | [
"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 | 61,236 | lean | /-
Copyright (c) 2017 Johannes Hölzl. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Johannes Hölzl, Mario Carneiro
-/
import data.set.disjointed
import data.set.countable
import data.indicator_function
import data.equiv.encodable.lattice
import data.tprod
import order... |
af7d7204a15a49f36f91dbbd32a354f10ec4eb28 | ad3e8f15221a986da27c99f371922c0b3f5792b6 | /src/week06/e01_Z.lean | 0ab25745d17651715b19a95aa30e83a5ac9e9794 | [] | no_license | VArtem/lean-itmo | a0e1424c8cc4c2de2ac85ab6fd4a12d80e9b85f1 | dc44cd06f9f5b984d051831b3aaa7364e64c2dc4 | refs/heads/main | 1,683,761,214,467 | 1,622,821,295,000 | 1,622,821,295,000 | 357,236,048 | 12 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 9,724 | lean | import tactic
-- Основано на https://github.com/ImperialCollegeLondon/formalising-mathematics/tree/master/src/week_7
-- Я убрал довольно много материала оттуда, посмотрите по возможности оригинал, в котором Kevin уходит гораздо глубже в концепцию `quotient`
-- Больше в книге Theorem Proving in Lean: https://leanprover... |
3c79c05ac5291e4256d74c869f211ef3ba05841b | 947fa6c38e48771ae886239b4edce6db6e18d0fb | /src/category_theory/enriched/basic.lean | dcb15e7119b03adbc6f0f6bfbe85fb5353b5e766 | [
"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 | 17,189 | 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.monoidal.types
import category_theory.monoidal.center
/-!
# Enriched categories
We set up the basic theory of `V`-enriched categories,
for `V... |
2d4bde63e4fbfbbfd46686fd9a453f7748a9daa0 | 2fbe653e4bc441efde5e5d250566e65538709888 | /src/topology/algebra/module.lean | 11c3af9363423e737cf05066752b467c9c20c918 | [
"Apache-2.0"
] | permissive | aceg00/mathlib | 5e15e79a8af87ff7eb8c17e2629c442ef24e746b | 8786ea6d6d46d6969ac9a869eb818bf100802882 | refs/heads/master | 1,649,202,698,930 | 1,580,924,783,000 | 1,580,924,783,000 | 149,197,272 | 0 | 0 | Apache-2.0 | 1,537,224,208,000 | 1,537,224,207,000 | null | UTF-8 | Lean | false | false | 18,481 | lean | /-
Copyright (c) 2019 Sébastien Gouëzel. 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 topology.algebra.ring linear_algebra.basic ring_theory.algebra
/-!
# Theory of topological modules and continuous linear m... |
592d88ce3dc91e65e2c411043722922349955cd0 | fa02ed5a3c9c0adee3c26887a16855e7841c668b | /src/testing/slim_check/sampleable.lean | eafc046d9f07728b584ba296d9b7f006e375f224 | [
"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 | 31,382 | lean | /-
Copyright (c) 2020 Simon Hudon. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Simon Hudon
-/
import data.lazy_list.basic
import data.tree
import data.int.basic
import control.bifunctor
import tactic.linarith
import testing.slim_check.gen
/-!
# `sampleable` Class
... |
4cd30b1085cb5d5ad8a955fce27e597b23b5ad13 | 9dc8cecdf3c4634764a18254e94d43da07142918 | /src/number_theory/modular.lean | 79919a734a5577b0ce6d2bc6991c8653198813cb | [
"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 | 24,605 | lean | /-
Copyright (c) 2021 Alex Kontorovich and Heather Macbeth and Marc Masdeu. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Alex Kontorovich, Heather Macbeth, Marc Masdeu
-/
import analysis.complex.upper_half_plane.basic
import linear_algebra.general_linear_group
impor... |
a8e539c3907f9b71ae11ecd8689b035f180fc8a2 | dd0f5513e11c52db157d2fcc8456d9401a6cd9da | /06_Inductive_Types.org.10.lean | e52225bdf906f48c7925d1353fa65674637935e1 | [] | 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 | 1,331 | lean | /- page 80 -/
import standard
import standard
namespace hide
-- BEGIN
inductive empty : Type
inductive unit : Type :=
star : unit
inductive bool : Type :=
| ff : bool
| tt : bool
-- END
/- introduction and elimination rules for these
- empty
- no introduction rule
- the elimination rule lets... |
053f19a7ccfd3b883663179144e286f232c033bc | 55c7fc2bf55d496ace18cd6f3376e12bb14c8cc5 | /src/tactic/fix_by_cases.lean | f35bd0637c3ff7f5a559a5f578d940125fd65c40 | [
"Apache-2.0"
] | permissive | dupuisf/mathlib | 62de4ec6544bf3b79086afd27b6529acfaf2c1bb | 8582b06b0a5d06c33ee07d0bdf7c646cae22cf36 | refs/heads/master | 1,669,494,854,016 | 1,595,692,409,000 | 1,595,692,409,000 | 272,046,630 | 0 | 0 | Apache-2.0 | 1,592,066,143,000 | 1,592,066,142,000 | null | UTF-8 | Lean | false | false | 1,013 | lean | /-
Copyright (c) 2020 Gabriel Ebner. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Gabriel Ebner
-/
/-!
# Fix the `by_cases` tactic
The core `by_cases` tactic has several bugs:
- It only works if the proposition is decidable.
- It sometimes unfolds the proposition... |
c9eac712e8a1a863acb1cac8d5f57b94d723f9a4 | d406927ab5617694ec9ea7001f101b7c9e3d9702 | /src/set_theory/game/impartial.lean | f310757f0eaf48a0dc3dd25852a407de609d2feb | [
"Apache-2.0"
] | permissive | alreadydone/mathlib | dc0be621c6c8208c581f5170a8216c5ba6721927 | c982179ec21091d3e102d8a5d9f5fe06c8fafb73 | refs/heads/master | 1,685,523,275,196 | 1,670,184,141,000 | 1,670,184,141,000 | 287,574,545 | 0 | 0 | Apache-2.0 | 1,670,290,714,000 | 1,597,421,623,000 | Lean | UTF-8 | Lean | false | false | 6,897 | lean | /-
Copyright (c) 2020 Fox Thomson. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Fox Thomson
-/
import set_theory.game.basic
import tactic.nth_rewrite
/-!
# Basic definitions about impartial (pre-)games
We will define an impartial game, one in which left and right ... |
f2a2ead51907b706c97ff0dbd4cf767773681d8a | 6e9cd8d58e550c481a3b45806bd34a3514c6b3e0 | /src/ring_theory/algebra.lean | 9b230ebe2cea9b08e8b57eea8edbeb9af81b52d1 | [
"Apache-2.0"
] | permissive | sflicht/mathlib | 220fd16e463928110e7b0a50bbed7b731979407f | 1b2048d7195314a7e34e06770948ee00f0ac3545 | refs/heads/master | 1,665,934,056,043 | 1,591,373,803,000 | 1,591,373,803,000 | 269,815,267 | 0 | 0 | Apache-2.0 | 1,591,402,068,000 | 1,591,402,067,000 | null | UTF-8 | Lean | false | false | 31,718 | lean | /-
Copyright (c) 2018 Kenny Lau. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Kenny Lau, Yury Kudryashov
-/
import data.matrix.basic
import linear_algebra.tensor_product
import algebra.commute
import data.equiv.ring
/-!
# Algebra over Commutative Semiring (under cat... |
ef4b6f9afdd7a1f0811680fb85ed96c165ee397e | d406927ab5617694ec9ea7001f101b7c9e3d9702 | /src/probability/martingale/upcrossing.lean | a333845c99b71c2fb25cd795ed5ddf517ff0fd41 | [
"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 | 41,412 | lean | /-
Copyright (c) 2022 Kexing Ying. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Kexing Ying
-/
import probability.process.hitting_time
import probability.martingale.basic
/-!
# Doob's upcrossing estimate
Given a discrete real-valued submartingale $(f_n)_{n \in \ma... |
208e46c5c8d17d4159869df1e01cc3a01a24c7fb | cf39355caa609c0f33405126beee2739aa3cb77e | /tests/lean/run/funext_tactic.lean | 4ea093d02c2d59bb3853cc28ba793ce4e06872cb | [
"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 | 1,006 | lean | example : (λ x y : nat, x + y) = (λ x y : nat, y + x) :=
begin
funext,
apply nat.add_comm x y
end
example : (λ x y : nat, x + y) = (λ x y : nat, y + x) :=
begin
funext z w,
apply nat.add_comm z w
end
example : (λ x y : nat, x + y) = (λ x y : nat, y + x) :=
begin
funext z,
funext w,
apply nat.add_comm z ... |
74c440fbb306f3f1a67e0ffbf92dddf240fa757f | 0e175f34f8dca5ea099671777e8d7446d7d74227 | /library/init/algebra/order.lean | 46c5007ca98513efe31fc3796b66b0366f63c823 | [
"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 | 9,248 | lean | /-
Copyright (c) 2016 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Leonardo de Moura
-/
prelude
import init.logic init.classical init.meta.name init.algebra.classes
/- Make sure instances defined in this file have lower priority than the ones
... |
76136358952566dd8426243520fcf2aa1022667e | 55c7fc2bf55d496ace18cd6f3376e12bb14c8cc5 | /src/analysis/special_functions/pow.lean | d74df6ab40ed2a3390401b25ba0173cc27a1c9a6 | [
"Apache-2.0"
] | permissive | dupuisf/mathlib | 62de4ec6544bf3b79086afd27b6529acfaf2c1bb | 8582b06b0a5d06c33ee07d0bdf7c646cae22cf36 | refs/heads/master | 1,669,494,854,016 | 1,595,692,409,000 | 1,595,692,409,000 | 272,046,630 | 0 | 0 | Apache-2.0 | 1,592,066,143,000 | 1,592,066,142,000 | null | UTF-8 | Lean | false | false | 48,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
-/
import analysis.special_functions.trigonometric
import analysis.calculus.extend_deriv
/-!
# Power func... |
1d04f79c0b2ac6dd62b05d0a69091fc2e5b98d49 | d1a52c3f208fa42c41df8278c3d280f075eb020c | /src/Init/Data/Array/BinSearch.lean | e322eaf76a8fef92def7b62ccf839171119fc3b7 | [
"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,954 | lean | /-
Copyright (c) 2019 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Leonardo de Moura
-/
prelude
import Init.Data.Array.Basic
universe u v
-- TODO: CLEANUP
namespace Array
-- TODO: remove the [Inhabited α] parameters as soon as we have the tac... |
ddc78f705be790b4bb75f0a38638df36ca2f17dd | d406927ab5617694ec9ea7001f101b7c9e3d9702 | /src/algebra/category/Module/simple.lean | 4d2453c3be8a392c71d88379b271b2c4f4f016ec | [
"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,740 | 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, Scott Morrison
-/
import category_theory.simple
import algebra.category.Module.subobject
import algebra.category.Module.algebra
import ring_theory.simpl... |
e4956403120ae6a285ef4707c7f309c8f281e7f1 | c777c32c8e484e195053731103c5e52af26a25d1 | /src/field_theory/is_alg_closed/algebraic_closure.lean | 18dc842228302d90b416c1da849a48d01636deb0 | [
"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 | 10,858 | lean | /-
Copyright (c) 2020 Kenny Lau. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Kenny Lau
-/
import algebra.direct_limit
import algebra.char_p.algebra
import field_theory.is_alg_closed.basic
/-!
# Algebraic Closure
In this file we construct the algebraic closure of a... |
e71efa5d8211cc6416f60ce7c9a485b3696c5a1e | d406927ab5617694ec9ea7001f101b7c9e3d9702 | /src/category_theory/essentially_small.lean | df2db569955244a387ca981d22213ff5c778110c | [
"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,509 | 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 logic.small.basic
import category_theory.category.ulift
import category_theory.skeletal
/-!
# Essentially small categories.
A category given by `(C : Type u)... |
e3b7ab57531bf4758b72aab27438045c8436ec7e | c213e436cb87414954d055137f2a847a9674d7d2 | /src/measure_theory/borel_space.lean | 3eef27f58cfee42e271882b0095475271940512b | [
"Apache-2.0"
] | permissive | dsanjen/mathlib | 642d270c3d209cfdfb097c2ddc9dd36c102fae9f | a3844c85c606acca5922408217d55891b760fad6 | refs/heads/master | 1,606,199,308,451 | 1,576,274,676,000 | 1,576,274,676,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 26,108 | 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
Borel (measurable) space -- the smallest σ-algebra generated by open sets
It would be nice to encode this in the topological space type class, i.e. each topological sp... |
5c62055987955ee1fe630537afdf572701ed2345 | fa02ed5a3c9c0adee3c26887a16855e7841c668b | /test/lint.lean | 7b27edbb0eaf8c51e69d84c48bbea7a7958e64b8 | [
"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,805 | lean | import tactic.lint
import algebra.ring.basic
def foo1 (n m : ℕ) : ℕ := n + 1
def foo2 (n m : ℕ) : m = m := by refl
lemma foo3 (n m : ℕ) : ℕ := n - m
lemma foo.foo (n m : ℕ) : n ≥ n := le_refl n
instance bar.bar : has_add ℕ := by apply_instance -- we don't check the name of instances
lemma foo.bar (ε > 0) : ε = ε := r... |
cbea7a8d05e38e7820e25bb8406fae306fb2ce1f | 6432ea7a083ff6ba21ea17af9ee47b9c371760f7 | /src/Lean/Data/Json/Basic.lean | 46bdb5062174625cb4bf3b2530902adec562a2d2 | [
"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,078 | lean | /-
Copyright (c) 2019 Gabriel Ebner. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Gabriel Ebner, Marc Huisinga
-/
import Lean.Data.RBTree
namespace Lean
-- mantissa * 10^-exponent
structure JsonNumber where
mantissa : Int
exponent : Nat
deriving DecidableEq
... |
020ccbc7ec81fa0ba204fef72de616cdf8b7c561 | d406927ab5617694ec9ea7001f101b7c9e3d9702 | /src/order/interval.lean | 23dd0ca3882206b4f8513d4c82d393e83d377c5e | [
"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 | 18,364 | lean | /-
Copyright (c) 2022 Yaël Dillies. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Yaël Dillies
-/
import data.set.intervals.basic
import data.set.lattice
import data.set_like.basic
/-!
# Order intervals
This file defines (nonempty) closed intervals in an order (see ... |
cd14f581402b302af60fce696c79d46573ac873d | e39f04f6ff425fe3b3f5e26a8998b817d1dba80f | /category_theory/comma.lean | e4a3f6e5d4e8154da8f1ced11f4744270511c557 | [
"Apache-2.0"
] | permissive | kristychoi/mathlib | c504b5e8f84e272ea1d8966693c42de7523bf0ec | 257fd84fe98927ff4a5ffe044f68c4e9d235cc75 | refs/heads/master | 1,586,520,722,896 | 1,544,030,145,000 | 1,544,031,933,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 2,951 | 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.types
import category_theory.isomorphism
import category_theory.whiskering
namespace category_theory
universes u₁ v₁ u₂ v₂ u₃ v₃
variable... |
284b9cd520301b24e3844ebf374a7bc5b6432786 | 2a70b774d16dbdf5a533432ee0ebab6838df0948 | /_target/deps/mathlib/src/measure_theory/l1_space.lean | 655c3b8eea045955582836c9d8ada38100aab972 | [
"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 | 40,404 | 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 measure_theory.ae_eq_fun
/-!
# Integrable functions and `L¹` space
In the first part of this file, the predicate `integrable` is defined and basic properties o... |
46349426a21e53643d0338c50f0245dd5eaff736 | fef48cac17c73db8662678da38fd75888db97560 | /src/point1.lean | 9acb1faa464ab474c2062cfbd903d8e1b9fff025 | [] | no_license | kbuzzard/lean-squares-in-fibonacci | 6c0d924f799d6751e19798bb2530ee602ec7087e | 8cea20e5ce88ab7d17b020932d84d316532a84a8 | refs/heads/master | 1,584,524,504,815 | 1,582,387,156,000 | 1,582,387,156,000 | 134,576,655 | 3 | 1 | null | 1,541,538,497,000 | 1,527,083,406,000 | Lean | UTF-8 | Lean | false | false | 6,358 | lean | import data.int.modeq
import data.nat.modeq
import data.nat.prime
import data.nat.gcd
import algebra.group_power
import data.zmod.quadratic_reciprocity
-- Su, with a lot of help from Kenny, Chris
open nat
--#check @zmodp.fermat_little
-- zmodp.fermat_little : ∀ {p : ℕ} (hp : prime p) {a : zmodp p hp}, a ≠ 0 → a ^ (p ... |
c34dfdb258458d2b34a66b404bd963ad22467277 | 6432ea7a083ff6ba21ea17af9ee47b9c371760f7 | /src/Lean/Meta/Tactic/Util.lean | cc2e010278d17fbd467a3c3cee89987c008b5c0a | [
"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 | 6,298 | lean | /-
Copyright (c) 2019 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Leonardo de Moura
-/
import Lean.Util.ForEachExprWhere
import Lean.Meta.Basic
import Lean.Meta.AppBuilder
import Lean.Meta.PPGoal
namespace Lean.Meta
/-- Get the user name of ... |
e1a99fee701c9fd6191c624ca26e7358c96013bc | 9be442d9ec2fcf442516ed6e9e1660aa9071b7bd | /stage0/src/Init/WF.lean | ff9bf3d84f915d24f7c8130d08bd24e68dcb0f92 | [
"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 | 12,063 | 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
-/
prelude
import Init.SizeOf
import Init.Data.Nat.Basic
universe u v
inductive Acc {α : Sort u} (r : α → α → Prop) : α → Prop where
| intro (x : α) (h : (y... |
3ed4a48a6b4c74ea07fba0d4a62e9676ede12c50 | 3618c6e11aa822fd542440674dfb9a7b9921dba0 | /src/base_case.lean | 11b8c9dbfda88e39002b3325a6e2b62a03c1e21e | [] | no_license | ChrisHughes24/single_relation | 99ceedcc02d236ce46d6c65d72caa669857533c5 | 057e157a59de6d0e43b50fcb537d66792ec20450 | refs/heads/master | 1,683,652,062,698 | 1,683,360,089,000 | 1,683,360,089,000 | 279,346,432 | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 2,489 | lean | import P
import initial
/-!
# The base case of the `group_thingy` tactic
## Main definitions
The only definition used outside of this file is `base_case_solver`.
`base_case_solver T r₁ r₂` solves the word problem for the relation `of' r₁ r₂`, returning
a normalized word in `T` when possible, and `none` otherwise
-/
va... |
a8921bd16b90eb144aef254728b9dc639ec44e80 | d751a70f46ed26dc0111a87f5bbe83e5c6648904 | /Code/src/mathlib.lean | 4ae5304a62a35af42a8cc17178c97f89a5bda70a | [] | no_license | marcusrossel/bachelors-thesis | 92cb12ae8436c10fbfab9bfe4929a0081e615b37 | d1ec2c2b5c3c6700a506f2e3cc93f1160e44b422 | refs/heads/main | 1,682,873,547,703 | 1,619,795,735,000 | 1,619,795,735,000 | 306,041,494 | 2 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 3,673 | lean | import tactic
-- This file contains lemmas about objects in Mathlib, which have not yet landed in Mathlib.
-- The following lemmas have all been proven by Yakov Pechersky.
-- https://leanprover.zulipchat.com/#narrow/stream/217875-Is-there.20code.20for.20X.3F/topic/list.2Eupdate_nth_same/near/229661061
lemma list.upd... |
57fa397a5e503ee4db32b0741cdf4ce7aef09d1d | 26ac254ecb57ffcb886ff709cf018390161a9225 | /src/data/nat/totient.lean | ce069c0f1d9b6c896075b8e90214c7f273099f7b | [
"Apache-2.0"
] | permissive | eric-wieser/mathlib | 42842584f584359bbe1fc8b88b3ff937c8acd72d | d0df6b81cd0920ad569158c06a3fd5abb9e63301 | refs/heads/master | 1,669,546,404,255 | 1,595,254,668,000 | 1,595,254,668,000 | 281,173,504 | 0 | 0 | Apache-2.0 | 1,595,263,582,000 | 1,595,263,581,000 | null | UTF-8 | Lean | false | false | 3,586 | 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 algebra.big_operators
open finset
open_locale big_operators
namespace nat
def totient (n : ℕ) : ℕ := ((range n).filter (nat.coprime n)).card
localized "notati... |
cfe572182164e00a9491f4780bda504d283b510e | f618aea02cb4104ad34ecf3b9713065cc0d06103 | /src/data/padics/padic_integers.lean | 537272890427481a7d2e1b675c70799e9e9983af | [
"Apache-2.0"
] | permissive | joehendrix/mathlib | 84b6603f6be88a7e4d62f5b1b0cbb523bb82b9a5 | c15eab34ad754f9ecd738525cb8b5a870e834ddc | refs/heads/master | 1,589,606,591,630 | 1,555,946,393,000 | 1,555,946,393,000 | 182,813,854 | 0 | 0 | null | 1,555,946,309,000 | 1,555,946,308,000 | null | UTF-8 | Lean | false | false | 9,475 | 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, Mario Carneiro
Define the p-adic integers ℤ_p as a subtype of ℚ_p. Construct algebraic structures on ℤ_p.
-/
import data.padics.padic_numbers ring_theory.ideals dat... |
04280fb0bfa09fb48165354b0988d083f4edc697 | e030b0259b777fedcdf73dd966f3f1556d392178 | /library/init/meta/name.lean | 93f92173f71bd5c4d1b641a4e77e908bff8201f5 | [
"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 | 2,480 | lean | /-
Copyright (c) 2016 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Leonardo de Moura
-/
prelude
import init.data.ordering init.coe
/- Reflect a C++ name object. The VM replaces it with the C++ implementation. -/
inductive name
| anonymous : n... |
6b0cb5f8d05106c51086fb86129a38edf39686da | 6432ea7a083ff6ba21ea17af9ee47b9c371760f7 | /tests/lean/run/multiTargetCasesInductionIssue.lean | a4a067bbd22898de54ba9ac4aabddafb7345dd05 | [
"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,648 | lean | def Vec (α : Type u) (n : Nat) : Type u := { a : List α // a.length = n }
def Vec.nil : Vec α 0 := ⟨[], rfl⟩
def Vec.cons (a : α) (as : Vec α n) : Vec α (n+1) := ⟨a :: as.val, by simp [as.property]⟩
set_option pp.analyze false
def Vec.casesOn
(motive : (n : Nat) → Vec α n → Sort v)
(n : Nat)
(as : Vec... |
b101ab6f65563aeada43e584ddd89695fa1f12d6 | 30b012bb72d640ec30c8fdd4c45fdfa67beb012c | /data/option.lean | 5e0e6191f7244a612911efb1d5314f348218bea2 | [
"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 | 7,611 | lean | /-
Copyright (c) 2017 Mario Carneiro. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Mario Carneiro
-/
import logic.basic data.bool init.data.option.instances
tactic.interactive
namespace option
variables {α : Type*} {β : Type*}
instance has_mem : has_mem α (o... |
a6fa6622eb88b1ca95a87ab601323ae9aea62f18 | 437dc96105f48409c3981d46fb48e57c9ac3a3e4 | /src/analysis/calculus/deriv.lean | 128d48fffd46bd1c6d174e84f0cf10b1e5ba7e93 | [
"Apache-2.0"
] | permissive | dan-c-k/mathlib | 08efec79bd7481ee6da9cc44c24a653bff4fbe0d | 96efc220f6225bc7a5ed8349900391a33a38cc56 | refs/heads/master | 1,658,082,847,093 | 1,589,013,201,000 | 1,589,013,201,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 65,386 | lean | /-
Copyright (c) 2019 Gabriel Ebner. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Gabriel Ebner, Sébastien Gouëzel
-/
import analysis.calculus.fderiv
import data.polynomial
/-!
# One-dimensional derivatives
This file defines the derivative of a function `f : 𝕜 → ... |
5ad96afbf9aca5a4f65e6be5a335f3075aa7dda6 | a959f48a0621edea632487cf2130bbf70d301e05 | /src/norms.lean | 4724f2d98eaa9cb2861d9ea255a5b430e0bcb9b6 | [] | no_license | cipher1024/lean-differential-topology | cf441b36af9fdb022f10afff6a2fdc5aa4afa379 | 1938b0a5d9e89faff89dac4bc51598698cae6dbb | refs/heads/master | 1,619,477,568,536 | 1,527,790,354,000 | 1,527,790,354,000 | 124,159,851 | 0 | 0 | null | 1,520,385,485,000 | 1,520,385,485,000 | null | UTF-8 | Lean | false | false | 11,064 | lean | import analysis.real
import algebra.linear_algebra.prod_module
import squeeze
noncomputable theory
local notation f `→_{`:50 a `}`:0 b := filter.tendsto f (nhds a) (nhds b)
class normed_group (α : Type*) extends add_comm_group α, metric_space α :=
(norm : α → ℝ)
(dist_eq : ∀ x y, dist x y = norm (x - y))
def nor... |
e27358f12faede80ace538016c162f73a089ecdc | 8cae430f0a71442d02dbb1cbb14073b31048e4b0 | /src/linear_algebra/quadratic_form/dual.lean | 68ed89fab74cbc4eb197fb93ee1c05566806e976 | [
"Apache-2.0"
] | permissive | leanprover-community/mathlib | 56a2cadd17ac88caf4ece0a775932fa26327ba0e | 442a83d738cb208d3600056c489be16900ba701d | refs/heads/master | 1,693,584,102,358 | 1,693,471,902,000 | 1,693,471,902,000 | 97,922,418 | 1,595 | 352 | Apache-2.0 | 1,694,693,445,000 | 1,500,624,130,000 | Lean | UTF-8 | Lean | false | false | 5,376 | lean | /-
Copyright (c) 2023 Eric Wieser. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Eric Wieser
-/
import linear_algebra.quadratic_form.isometry
import linear_algebra.quadratic_form.prod
/-!
# Quadratic form structures related to `module.dual`
## Main definitions
* `b... |
e9b5f1bcd8f3820f875a1e95a2795963cd0787b4 | 4727251e0cd73359b15b664c3170e5d754078599 | /src/category_theory/monoidal/skeleton.lean | d90d0e99939f9edef3cc4761bbd6f6d9c82cbda1 | [
"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,789 | 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.monoidal.functor
import category_theory.monoidal.braided
import category_theory.monoidal.transport
import category_theory.skeletal
/-!
# The monoi... |
00620e3b6029629741e8b4004a785adc41cc38b7 | 4d2583807a5ac6caaffd3d7a5f646d61ca85d532 | /src/tactic/core.lean | 0389f5154f409cb5ddf322213b5771c3e6cceeb7 | [
"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 | 96,281 | lean | /-
Copyright (c) 2018 Mario Carneiro. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Mario Carneiro, Simon Hudon, Scott Morrison, Keeley Hoek
-/
import data.dlist.basic
import logic.function.basic
import control.basic
import meta.expr
import meta.rb_map
import data.boo... |
5ec5004db75036f2677f7ff93b2a8bbdca338e22 | b7f22e51856f4989b970961f794f1c435f9b8f78 | /library/algebra/ring_power.lean | b0febfaf18869484f427a3ff829883cdaa45334a | [
"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 | 6,252 | lean | /-
Copyright (c) 2015 Jeremy Avigad. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Author: Jeremy Avigad
Properties of the power operation in various structures, including ordered rings and fields.
-/
import .group_power .ordered_field
open nat
variable {A : Type}
section s... |
75a5c71617f607871ca5067e7b2088822b3226b5 | 9dd3f3912f7321eb58ee9aa8f21778ad6221f87c | /tests/lean/vm_let_expr.lean | 8aa36a99a817368c28694480d2c8a54fd80ac2e3 | [
"Apache-2.0"
] | permissive | bre7k30/lean | de893411bcfa7b3c5572e61b9e1c52951b310aa4 | 5a924699d076dab1bd5af23a8f910b433e598d7a | refs/heads/master | 1,610,900,145,817 | 1,488,006,845,000 | 1,488,006,845,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 243 | lean | meta def mk_value (n : nat) : nat :=
trace "mk_value" (2 * n)
meta def mk_fn (sz : nat) : nat → nat :=
let n := mk_value sz in
λ x, x + n
vm_eval let f := mk_fn 10 in f 1 + f 2 + f 3 + f 4
vm_eval ((let x := mk_value 10 in mk_fn x) 10)
|
26177cb029d0cfc2d4da24272ae162d07586362e | a4673261e60b025e2c8c825dfa4ab9108246c32e | /tests/lean/Reformat.lean | 0b64ec31f1cf165139ad9749cf29ce7d5cd776d9 | [
"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 | 978 | lean | /-! Parse and reformat file -/
import Lean.PrettyPrinter
open Lean
open Lean.Elab
open Lean.Elab.Term
open Lean.Format
unsafe def main (args : List String) : IO Unit := do
let (debug, f) : Bool × String := match args with
| [f, "-d"] => (true, f)
| [f] => (false, f)
| _ => panic! "usage: file [-d]... |
f0c4982f081605b9e3220b31e7e604f0452079c4 | 94637389e03c919023691dcd05bd4411b1034aa5 | /src/inClassNotes/type_library/tuple.lean | 29d040b94048a0d2a6f2ffe3eb101f14286e2a4b | [] | no_license | kevinsullivan/complogic-s21 | 7c4eef2105abad899e46502270d9829d913e8afc | 99039501b770248c8ceb39890be5dfe129dc1082 | refs/heads/master | 1,682,985,669,944 | 1,621,126,241,000 | 1,621,126,241,000 | 335,706,272 | 0 | 38 | null | 1,618,325,669,000 | 1,612,374,118,000 | Lean | UTF-8 | Lean | false | false | 110 | lean | -- for each (n : nat), a type, (tuple n)
def tuple : nat → Type
| 0 := unit
| (n' + 1) := nat × (tuple n')
|
2a9a8f05f7fd6232b3e4df6b6f5c81b77c41746d | 6e44fda625e48340c6ffc7b1109a9e3b208e5384 | /src/metric_spaces/basic.lean | a980071c32dc156dae2f9f1f91a200ddee5b89ac | [] | no_license | JasonKYi/learn_mspaces | 9f998a265b907af6be6a54061637fcf1f6d1ee9d | 54083e81da420d2d362a7024a8c86bea8529fe66 | refs/heads/master | 1,619,008,842,896 | 1,609,897,382,000 | 1,609,897,382,000 | 249,780,600 | 5 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 24,585 | lean | import metric_spaces.definitions
/-
A metric space (X, d) is a non-empty set X alongside a function
d : X ⨯ X → ℝ satisfying
- ∀ x, y, ∈ X, d(x, y) ≥ 0 with equality iff x = y.
- ∀ x, y, ∈ X, d(x, y) = d(y, x)
- ∀ x, y, z ∈ X, d(x, z) ≤ d(x, y) + d(y, z).
We call d a metric of the metric space (X, d).
class metric... |
5236cff9b0a911a0418693292538179fc09a62ad | e61a235b8468b03aee0120bf26ec615c045005d2 | /src/Init/Control/Functor.lean | af4a5259bc1e68722dd750c0f554484cfb31d71a | [
"Apache-2.0"
] | permissive | SCKelemen/lean4 | 140dc63a80539f7c61c8e43e1c174d8500ec3230 | e10507e6615ddbef73d67b0b6c7f1e4cecdd82bc | refs/heads/master | 1,660,973,595,917 | 1,590,278,033,000 | 1,590,278,033,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 1,018 | lean | /-
Copyright (c) Luke Nelson and Jared Roesch. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Luke Nelson, Jared Roesch, Sebastian Ullrich, Leonardo de Moura
-/
prelude
import Init.Core
open Function
universes u v
class Functor (f : Type u → Type v) : Type (max (u+1) ... |
4b396c784b2c495fac6421632162a32716454756 | 8cae430f0a71442d02dbb1cbb14073b31048e4b0 | /src/dynamics/fixed_points/topology.lean | ace366252c332420c55df15d07345ddeecf6fa13 | [
"Apache-2.0"
] | permissive | leanprover-community/mathlib | 56a2cadd17ac88caf4ece0a775932fa26327ba0e | 442a83d738cb208d3600056c489be16900ba701d | refs/heads/master | 1,693,584,102,358 | 1,693,471,902,000 | 1,693,471,902,000 | 97,922,418 | 1,595 | 352 | Apache-2.0 | 1,694,693,445,000 | 1,500,624,130,000 | Lean | UTF-8 | Lean | false | false | 1,358 | lean | /-
Copyright (c) 2020 Yury Kudryashov. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Yury Kudryashov, Johannes Hölzl
-/
import dynamics.fixed_points.basic
import topology.separation
/-!
# Topological properties of fixed points
> THIS FILE IS SYNCHRONIZED WITH MATHLI... |
4817773cfbec3c91103094ca9d12bf2f6d1a33c6 | 367134ba5a65885e863bdc4507601606690974c1 | /src/category_theory/abelian/non_preadditive.lean | 7776df48b38e97ff1592d55c3296ac02e884b201 | [
"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 | 32,067 | lean | /-
Copyright (c) 2020 Markus Himmel. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Markus Himmel
-/
import category_theory.limits.shapes.finite_products
import category_theory.limits.shapes.kernels
import category_theory.limits.shapes.normal_mono
import category_theor... |
bc18f823dec532d02b5e681c4e9a61cb6e881c32 | a4673261e60b025e2c8c825dfa4ab9108246c32e | /tests/lean/StxQuot.lean | ad77179062137d247806770e30d5d01155d4e209 | [
"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 | 2,189 | lean | import Lean
namespace Lean
open Lean.Elab
def run {α} [ToString α] : Unhygienic α → String := toString ∘ Unhygienic.run
#eval run `(Nat.one)
#eval run `($Syntax.missing)
namespace Syntax
#eval run `($missing)
#eval run `($(missing))
#eval run `($(id Syntax.missing) + 1)
#eval run $ let id := Syntax.missing; `($id + ... |
3da058ea70c045d7cfd1691feefef7630ddd808b | 302c785c90d40ad3d6be43d33bc6a558354cc2cf | /src/ring_theory/integral_domain.lean | 513514a40bf7f1dadd95ffca9f7dfdc4e026655e | [
"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 | 7,031 | lean | /-
Copyright (c) 2020 Johan Commelin. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Johan Commelin, Chris Hughes
-/
import data.fintype.card
import data.polynomial.ring_division
import group_theory.order_of_element
import algebra.geom_sum
/-!
# Integral domains
Ass... |
dc1064d5eb9ed8a13f89870d5518f9c5dc34abb9 | ac89c256db07448984849346288e0eeffe8b20d0 | /src/Lean/Meta/SynthInstance.lean | c2a20250fffa58d2e2798255005504ba6d55c5e9 | [
"Apache-2.0"
] | permissive | chepinzhang/lean4 | 002cc667f35417a418f0ebc9cb4a44559bb0ccac | 24fe2875c68549b5481f07c57eab4ad4a0ae5305 | refs/heads/master | 1,688,942,838,326 | 1,628,801,942,000 | 1,628,801,995,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 28,318 | lean | /-
Copyright (c) 2019 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Daniel Selsam, Leonardo de Moura
Type class instance synthesizer using tabled resolution.
-/
import Lean.Meta.Basic
import Lean.Meta.Instances
import Lean.Meta.LevelDefEq
impor... |
abd91add6b98c8124699785588d8841c5a468fc5 | 4d2583807a5ac6caaffd3d7a5f646d61ca85d532 | /src/analysis/convex/basic.lean | e037d194855428a353a2b3140850a7e165e2c6e6 | [
"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 | 39,825 | lean | /-
Copyright (c) 2019 Alexander Bentkamp. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Alexander Bentkamp, Yury Kudriashov, Yaël Dillies
-/
import algebra.order.module
import linear_algebra.affine_space.affine_subspace
/-!
# Convex sets and functions in vector space... |
5ebc8fa4c25becfcab12a448b43a9b4216b6f2c9 | 82e44445c70db0f03e30d7be725775f122d72f3e | /src/algebra/periodic.lean | 469b0640f5d512a5483b0985d159a9a4597fd438 | [
"Apache-2.0"
] | permissive | stjordanis/mathlib | 51e286d19140e3788ef2c470bc7b953e4991f0c9 | 2568d41bca08f5d6bf39d915434c8447e21f42ee | refs/heads/master | 1,631,748,053,501 | 1,627,938,886,000 | 1,627,938,886,000 | 228,728,358 | 0 | 0 | Apache-2.0 | 1,576,630,588,000 | 1,576,630,587,000 | null | UTF-8 | Lean | false | false | 14,756 | lean | /-
Copyright (c) 2021 Benjamin Davidson. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Benjamin Davidson
-/
import data.int.parity
import algebra.module.opposites
import algebra.archimedean
/-!
# Periodicity
In this file we define and then prove facts about periodic... |
dc66e8b9a99aa3dbd51f2dad970f73183ece7f46 | 2eab05920d6eeb06665e1a6df77b3157354316ad | /src/ring_theory/polynomial/cyclotomic.lean | 025749d65833792ac2e9db47055bdc38b6b2f1df | [
"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 | 32,491 | lean | /-
Copyright (c) 2020 Riccardo Brasca. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Riccardo Brasca
-/
import field_theory.splitting_field
import ring_theory.roots_of_unity
import algebra.polynomial.big_operators
import number_theory.arithmetic_function
import data.... |
892e40cc1ccdff67bc7207866bebcb10d63d6038 | 57c233acf9386e610d99ed20ef139c5f97504ba3 | /src/geometry/manifold/whitney_embedding.lean | d3b090ae9ba5e65cdee770e5605a2d9a01dc2fd1 | [
"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 | 6,345 | 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 geometry.manifold.diffeomorph
import geometry.manifold.instances.real
import geometry.manifold.partition_of_unity
/-!
# Whitney embedding theorem
In ... |
86327e1f3b8dec3266de6b4fac5e35cf87db4352 | 2a70b774d16dbdf5a533432ee0ebab6838df0948 | /_target/deps/mathlib/src/tactic/monotonicity/lemmas.lean | 12d1f686a47c201e470ec5b0f5b0562934b87da7 | [
"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 | 2,251 | lean | /-
Copyright (c) 2019 Simon Hudon. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Author: Simon Hudon
-/
import tactic.monotonicity.basic
import data.set.lattice
import order.bounds
variables {α : Type*}
@[mono]
lemma mul_mono_nonneg {x y z : α} [ordered_semiring α]
(h' : 0... |
8d422e52317b1cd23a7901ee007526f2f5596d0c | 3268ab3a126f0fef71459fbf170dc38efe5d0506 | /algebra/subgroup.hlean | e58ccb12eabf6ca8903fee679086c6bc51ed52d0 | [
"Apache-2.0"
] | permissive | soraismus/Spectral | f043fed1a4e02ddfeba531769b2980eb817471f4 | 32512bf47db3a1b932856e7ed7c7830b1fc07ef0 | refs/heads/master | 1,585,628,705,579 | 1,538,609,948,000 | 1,538,609,974,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 21,106 | hlean | /-
Copyright (c) 2015 Egbert Rijke. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Floris van Doorn, Egbert Rijke, Jeremy Avigad
Basic concepts of group theory
-/
import algebra.group_theory ..move_to_lib ..property
open eq algebra is_trunc sigma sigma.ops prod trunc... |
d7725f7050a817097ecba548e794a2e3bf0bb358 | 4d2583807a5ac6caaffd3d7a5f646d61ca85d532 | /src/group_theory/group_action/group.lean | 2e669b76397d1df251aae2bab1b1f57649b807d7 | [
"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 | 9,227 | lean | /-
Copyright (c) 2018 Chris Hughes. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Chris Hughes
-/
import data.equiv.mul_add_aut
import group_theory.group_action.units
/-!
# Group actions applied to various types of group
This file contains lemmas about `smul` on `gr... |
adab594cb351e2f29dc2ecd618261ad529b2c65e | 74addaa0e41490cbaf2abd313a764c96df57b05d | /Mathlib/Lean3Lib/data/rbtree/basic_auto.lean | 87e4ccd7fe0600d9da05cdd8c0313190ea2e87a7 | [] | 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 | 5,595 | 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
-/
import Mathlib.PrePort
import Mathlib.Lean3Lib.init.default
universes u
namespace Mathlib
namespace rbnode
inductive is_node_of {α : Type u} : rbnode ... |
d726ab5d202f745ddce96dfb8d576fe5d82d4c44 | 57c233acf9386e610d99ed20ef139c5f97504ba3 | /src/group_theory/group_action/sub_mul_action.lean | 357f5b1b1053863b3a9db8cf52dc7920042786b4 | [
"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 | 6,002 | lean | /-
Copyright (c) 2020 Eric Wieser. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Eric Wieser
-/
import algebra.group_action_hom
import algebra.module.basic
import data.set_like.basic
import group_theory.group_action.basic
/-!
# Sets invariant to a `mul_action`
In th... |
4cc9df441430e86887c4d38302bc5bfdb2ae1e38 | a8c03ed21a1bd6fc45901943b79dd6574ea3f0c2 | /factoring.lean | 711859c037d3eee5c9a5da747797bd2bb2cf458a | [] | no_license | gebner/resolution.lean | 716c355fbb5204e5c4d0c5a7f3f3cc825892a2bf | c6fafe06fba1cfad73db68f2aa474b29fe892a2b | refs/heads/master | 1,601,111,444,528 | 1,475,256,701,000 | 1,475,256,701,000 | 67,711,151 | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 1,862 | lean | import clause prover_state subsumption
open tactic expr monad
variable gt : expr → expr → bool
meta def inst_lit (c : clause) (i : nat) (e : expr) : tactic clause := do
opened ← clause.open_constn c i,
return $ clause.close_constn (clause.inst opened.1 e) opened.2
private meta def try_factor' (c : clause) (i j : nat... |
7819a96cbf6ac3c08b5e2e9da5e1fb32d5b2a371 | 55c7fc2bf55d496ace18cd6f3376e12bb14c8cc5 | /src/data/nat/basic.lean | d107bbf71668db9f1dfc6068dbe479f819855520 | [
"Apache-2.0"
] | permissive | dupuisf/mathlib | 62de4ec6544bf3b79086afd27b6529acfaf2c1bb | 8582b06b0a5d06c33ee07d0bdf7c646cae22cf36 | refs/heads/master | 1,669,494,854,016 | 1,595,692,409,000 | 1,595,692,409,000 | 272,046,630 | 0 | 0 | Apache-2.0 | 1,592,066,143,000 | 1,592,066,142,000 | null | UTF-8 | Lean | false | false | 67,733 | lean | /-
Copyright (c) 2014 Floris van Doorn (c) 2016 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Floris van Doorn, Leonardo de Moura, Jeremy Avigad, Mario Carneiro
-/
import algebra.order_functions
import data.set.basic
/-!
# Basic operations on t... |
472ccfce84bdeb275f27732c50edf8fba4f4d4d4 | aa2345b30d710f7e75f13157a35845ee6d48c017 | /category_theory/types.lean | 25d92e3dea734831209bf2cccdc5e97a2c2c7675 | [
"Apache-2.0"
] | permissive | CohenCyril/mathlib | 5241b20a3fd0ac0133e48e618a5fb7761ca7dcbe | a12d5a192f5923016752f638d19fc1a51610f163 | refs/heads/master | 1,586,031,957,957 | 1,541,432,824,000 | 1,541,432,824,000 | 156,246,337 | 0 | 0 | Apache-2.0 | 1,541,434,514,000 | 1,541,434,513,000 | null | UTF-8 | Lean | false | false | 2,290 | 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 category_theory.embedding
namespace category_theory
universes u v u' v' w
instance type... |
a1e71187a519d8e4199c62c19c12b00efbe762cd | 2eab05920d6eeb06665e1a6df77b3157354316ad | /src/analysis/box_integral/partition/split.lean | 5b9c62fdbc9b28e9f85f1ed7e31f3ef3dea87e78 | [
"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 | 15,638 | 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.box_integral.partition.basic
/-!
# Split a box along one or more hyperplanes
## Main definitions
A hyperplane `{x : ι → ℝ | x i = a}` splits a re... |
6d1d681e260158522851995c8d938ce475baf659 | bbecf0f1968d1fba4124103e4f6b55251d08e9c4 | /src/algebra/associated.lean | 9111d49e04fb0f9bf33e4b6ea256f6aec8aeac6c | [
"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 | 30,174 | lean | /-
Copyright (c) 2018 Johannes Hölzl. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Johannes Hölzl, Jens Wagemaker
-/
import algebra.big_operators.basic
import algebra.divisibility
import algebra.invertible
/-!
# Associated, prime, and irreducible elements.
-/
varia... |
4fd153d1c076656447b5d971833cbc5d08bc3f2b | a45212b1526d532e6e83c44ddca6a05795113ddc | /src/category_theory/equivalence.lean | 52438ce9cf1711696d721eb77e1efe185b3ea174 | [
"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 | 8,482 | 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_theory.fully_faithful
import category_theory.natural_isomorphism
import tactic.slice
import tactic.converter.interact... |
f0f369f1b2bdda4fae156a1311ec7055c00880c6 | d406927ab5617694ec9ea7001f101b7c9e3d9702 | /src/order/filter/ennreal.lean | a061290a9960bcd0f7f362f0844c7649aa98f5cd | [
"Apache-2.0"
] | permissive | alreadydone/mathlib | dc0be621c6c8208c581f5170a8216c5ba6721927 | c982179ec21091d3e102d8a5d9f5fe06c8fafb73 | refs/heads/master | 1,685,523,275,196 | 1,670,184,141,000 | 1,670,184,141,000 | 287,574,545 | 0 | 0 | Apache-2.0 | 1,670,290,714,000 | 1,597,421,623,000 | Lean | UTF-8 | Lean | false | false | 4,897 | lean | /-
Copyright (c) 2021 Rémy Degenne. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Rémy Degenne
-/
import data.real.ennreal
import order.filter.countable_Inter
import order.liminf_limsup
/-!
# Order properties of extended non-negative reals
This file compiles filter... |
bafa5e6cc41a0c1c644f8b4ab8d04bb61ca0a4d4 | 6432ea7a083ff6ba21ea17af9ee47b9c371760f7 | /tests/lean/forErrors.lean | 8d36e094106f008154662710fc33d2ecf10f7bd0 | [
"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 | 205 | lean | def g (xs ys : List Nat) (a : α) : IO Nat := do
let mut sum := 0
for x in xs, y in ys, c in a, z in ys do
sum := x + sum
IO.println s!"x: {x}, y: {y}, a: {a}, c: {c}, sum: {sum}"
return sum
|
3883360f0e3dd720eb4900f5385881beb6f93c40 | d406927ab5617694ec9ea7001f101b7c9e3d9702 | /src/linear_algebra/affine_space/ordered.lean | 7b218d4cc0d0546086f80366fca431c49326576e | [
"Apache-2.0"
] | permissive | alreadydone/mathlib | dc0be621c6c8208c581f5170a8216c5ba6721927 | c982179ec21091d3e102d8a5d9f5fe06c8fafb73 | refs/heads/master | 1,685,523,275,196 | 1,670,184,141,000 | 1,670,184,141,000 | 287,574,545 | 0 | 0 | Apache-2.0 | 1,670,290,714,000 | 1,597,421,623,000 | Lean | UTF-8 | Lean | false | false | 12,429 | 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 algebra.order.invertible
import algebra.order.module
import linear_algebra.affine_space.midpoint
import linear_algebra.affine_space.slope
import tactic... |
ced42e4d0d138803a3c531ff59bc02f1b6ec6e54 | 9dc8cecdf3c4634764a18254e94d43da07142918 | /src/topology/category/CompHaus/default.lean | 33fb3285809a2e7d00b3f9c2ae041f1f0f43d3d8 | [
"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 | 9,608 | lean | /-
Copyright (c) 2020 Adam Topaz. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Adam Topaz, Bhavik Mehta
-/
import category_theory.adjunction.reflective
import topology.category.Top
import topology.stone_cech
import category_theory.monad.limits
import topology.urysoh... |
2031a795eb47b8955e8733e90d36f790e6353dbc | d406927ab5617694ec9ea7001f101b7c9e3d9702 | /src/algebra/hom/group.lean | 6495831cbf058cc4d3e9e39bd17b9fb746a22fd8 | [
"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 | 53,850 | lean | /-
Copyright (c) 2018 Patrick Massot. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Patrick Massot, Kevin Buzzard, Scott Morrison, Johan Commelin, Chris Hughes,
Johannes Hölzl, Yury Kudryashov
-/
import algebra.ne_zero
import algebra.group.basic
import algebra.group... |
a844e0961c26f55f72a11a7b8530a314e904b29b | 9dc8cecdf3c4634764a18254e94d43da07142918 | /src/algebra/category/Module/biproducts.lean | b97cdc2bd3a49d08d0f78b4d989c0e97af782f1a | [
"Apache-2.0"
] | permissive | jcommelin/mathlib | d8456447c36c176e14d96d9e76f39841f69d2d9b | ee8279351a2e434c2852345c51b728d22af5a156 | refs/heads/master | 1,664,782,136,488 | 1,663,638,983,000 | 1,663,638,983,000 | 132,563,656 | 0 | 0 | Apache-2.0 | 1,663,599,929,000 | 1,525,760,539,000 | Lean | UTF-8 | Lean | false | false | 5,926 | lean | /-
Copyright (c) 2022 Scott Morrison. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Scott Morrison
-/
import algebra.group.pi
import category_theory.limits.shapes.biproducts
import algebra.category.Module.limits
import algebra.homology.short_exact.abelian
/-!
# The c... |
49b78170382748bb9a71efc031d9bf98049dac48 | 076f5040b63237c6dd928c6401329ed5adcb0e44 | /instructor-notes/2019.11.26.lean | 1f568f5916e83f19d899f5e58adc7770a7d61f5e | [] | no_license | kevinsullivan/uva-cs-dm-f19 | 0f123689cf6cb078f263950b18382a7086bf30be | 09a950752884bd7ade4be33e9e89a2c4b1927167 | refs/heads/master | 1,594,771,841,541 | 1,575,853,850,000 | 1,575,853,850,000 | 205,433,890 | 4 | 9 | null | 1,571,592,121,000 | 1,567,188,539,000 | Lean | UTF-8 | Lean | false | false | 10,428 | lean | /-
There are direct parallels between
computational and logical types. The
unit data type corresponds to the
propositional/logical type, true:
each has one value/proof. The empty
data type has no constructors and so
has no values. It is an uninhabited
data type. It corresponds directly
to the proposition, false: a lo... |
9fb93ef8b9bc5a586518c423bbf87f74613f505d | 35677d2df3f081738fa6b08138e03ee36bc33cad | /test/monotonicity.lean | da77d7d3d08f168ba73be61adb8fb595bcc64bd6 | [
"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 | 8,214 | lean | /-
Copyright (c) 2019 Simon Hudon. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Author: Simon Hudon
-/
import tactic.monotonicity tactic.norm_num
import algebra.ordered_ring
import data.list.defs
open list tactic tactic.interactive
example
(h : 3 + 6 ≤ 4 + 5)
: 1 + 3 + 2 ... |
5dae6453e95ed78b40b3b6ca19934dd90a6f93f6 | 618003631150032a5676f229d13a079ac875ff77 | /src/analysis/calculus/times_cont_diff.lean | 6e219d05cdab982952aa9a6bee57710f2cfde3dd | [
"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 | 81,119 | lean | /-
Copyright (c) 2019 Sébastien Gouëzel. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Sébastien Gouëzel
-/
import analysis.calculus.fderiv
/-!
# Higher differentiability
A function is `C^1` on a domain if it is differentiable there, and its derivative is continuous... |
82ab97660b8559125ac2b9bb12cc18c4165ab07b | d436468d80b739ba7e06843c4d0d2070e43448e5 | /src/data/equiv/denumerable.lean | cfa8ad0d23f662d43a62da68ba7e69ea66b8fd71 | [
"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 | 8,961 | 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... |
0509b11edbe797911e1bc9d6ebc436edd17f2f7e | c777c32c8e484e195053731103c5e52af26a25d1 | /src/geometry/euclidean/angle/unoriented/right_angle.lean | 75beb298c607474d402d1597dc8b3ad1b5ec3809 | [
"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 | 26,814 | lean | /-
Copyright (c) 2020 Joseph Myers. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Joseph Myers
-/
import analysis.special_functions.trigonometric.arctan
import geometry.euclidean.angle.unoriented.affine
/-!
# Right-angled triangles
This file proves basic geometrical... |
882f3420af844576da6e494d64fa7d56f5b47bc4 | 4727251e0cd73359b15b664c3170e5d754078599 | /src/linear_algebra/matrix/block.lean | 459bb5a21b7f7f2e96b6e0a30af0d015ef5d805e | [
"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 | 9,843 | lean | /-
Copyright (c) 2019 Johannes Hölzl. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Johannes Hölzl, Patrick Massot, Casper Putz, Anne Baanen
-/
import linear_algebra.matrix.determinant
import tactic.fin_cases
/-!
# Block matrices and their determinant
This file defi... |
33af4f0ef1784c248937d762e13eeeb2fd4b04da | 6432ea7a083ff6ba21ea17af9ee47b9c371760f7 | /src/Init/SizeOf.lean | 9c59cf6c17b538c34fd978cd492d1604fc6da986 | [
"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 | 4,054 | 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, Mario Carneiro
-/
prelude
import Init.Tactics
set_option linter.missingDocs true -- keep it documented
/-! # SizeOf -/
/--
`SizeOf` is a typeclass automatic... |
2b43c201e54b78e9085e77cadf1049069241dd4e | a9d0fb7b0e4f802bd3857b803e6c5c23d87fef91 | /tests/lean/run/t2.lean | a47f1120de1a9c096ed49a0ebe6d7119267a57b0 | [
"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 | 182 | lean | universe l
universe u
print raw Type
print raw Type.{1}
print raw Type.{2}
print raw Type.{l+1}
print raw Type.{max l u 1}
print raw Type.{imax l+1 u 1}
print raw Type.{imax l+1 l u} |
2e94a5b5dcfb877eee6d508aee087702bcf1b64c | 83c8119e3298c0bfc53fc195c41a6afb63d01513 | /library/init/algebra/ordered_field.lean | db19149f287b8afd07c049944e1a83fa9d756a49 | [
"Apache-2.0"
] | permissive | anfelor/lean | 584b91c4e87a6d95f7630c2a93fb082a87319ed0 | 31cfc2b6bf7d674f3d0f73848b842c9c9869c9f1 | refs/heads/master | 1,610,067,141,310 | 1,585,992,232,000 | 1,585,992,232,000 | 251,683,543 | 0 | 0 | Apache-2.0 | 1,585,676,570,000 | 1,585,676,569,000 | null | UTF-8 | Lean | false | false | 16,788 | 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
-/
prelude
import init.algebra.ordered_ring .field
set_option old_structure_cmd true
universe u
class linear_ordered_field (α : Type u) extends linear_... |
13b4348dc40725f6fdf54195cb7a29effd2ee396 | 4d2583807a5ac6caaffd3d7a5f646d61ca85d532 | /src/algebra/monoid_algebra/basic.lean | d89dc1f18778f850426aeef764b1b1faf5cbfa1c | [
"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 | 57,263 | 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 G. Kudryashov, Scott Morrison
-/
import algebra.big_operators.finsupp
import linear_algebra.finsupp
import algebra.non_unital_alg_hom
/-!
# Monoid algebras
When ... |
e5994865750bb5743b9e01eec5f153835b8b608e | 80746c6dba6a866de5431094bf9f8f841b043d77 | /src/data/set/lattice.lean | 4e13c42e41259aa2e5b51e88a02da4e4734a9dd3 | [
"Apache-2.0"
] | permissive | leanprover-fork/mathlib-backup | 8b5c95c535b148fca858f7e8db75a76252e32987 | 0eb9db6a1a8a605f0cf9e33873d0450f9f0ae9b0 | refs/heads/master | 1,585,156,056,139 | 1,548,864,430,000 | 1,548,864,438,000 | 143,964,213 | 0 | 0 | Apache-2.0 | 1,550,795,966,000 | 1,533,705,322,000 | Lean | UTF-8 | Lean | false | false | 27,255 | lean | /-
Copyright (c) 2014 Jeremy Avigad. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors Jeremy Avigad, Leonardo de Moura, Johannes Hölzl, Mario Carneiro
-- QUESTION: can make the first argument in ∀ x ∈ a, ... implicit?
-/
import logic.basic data.set.basic data.equiv.basic... |
88d1af0568031f0ebf85c917d7c9c4e0a966e074 | 2eab05920d6eeb06665e1a6df77b3157354316ad | /src/linear_algebra/matrix/to_linear_equiv.lean | 9f9647fa3f0e358b9a0337e6994433221bb90de8 | [
"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 | 7,339 | lean | /-
Copyright (c) 2019 Johannes Hölzl. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Johannes Hölzl, Patrick Massot, Casper Putz, Anne Baanen
-/
import linear_algebra.matrix.nonsingular_inverse
import linear_algebra.matrix.to_lin
import ring_theory.localization
/-!
# ... |
720d676044383427ad1ed60413669f877284fa2e | 94e33a31faa76775069b071adea97e86e218a8ee | /src/topology/algebra/infinite_sum.lean | e17d86982714e93feb3015982da3b898237046ea | [
"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 | 67,650 | 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.big_operators.intervals
import algebra.big_operators.nat_antidiagonal
import logic.encodable.lattice
import topology.algebra.mul_action
import topology... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.