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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
acd7b2a25c0ff6ce3b8396cc882acaade892665d | 624f6f2ae8b3b1adc5f8f67a365c51d5126be45a | /tests/lean/run/inj2.lean | a66125cf71a0a180bfafa17f02ab115bae4ca370 | [
"Apache-2.0"
] | permissive | mhuisi/lean4 | 28d35a4febc2e251c7f05492e13f3b05d6f9b7af | dda44bc47f3e5d024508060dac2bcb59fd12e4c0 | refs/heads/master | 1,621,225,489,283 | 1,585,142,689,000 | 1,585,142,689,000 | 250,590,438 | 0 | 2 | Apache-2.0 | 1,602,443,220,000 | 1,585,327,814,000 | C | UTF-8 | Lean | false | false | 1,039 | lean | universes u v
inductive Vec2 (Ξ± : Type u) (Ξ² : Type v) : Nat β Type (max u v)
| nil : Vec2 0
| cons : Ξ± β Ξ² β forall {n}, Vec2 n β Vec2 (n+1)
inductive Fin2 : Nat β Type
| zero (n : Nat) : Fin2 (n+1)
| succ {n : Nat} (s : Fin2 n) : Fin2 (n+1)
new_frontend
theorem test1 {Ξ± Ξ²} {n} (aβ aβ : Ξ±) (bβ bβ : Ξ²... |
905785b81d6125fbd379ddfa65b0c84f0b16a5ba | 206422fb9edabf63def0ed2aa3f489150fb09ccb | /src/linear_algebra/tensor_product.lean | 7b22d1cbd1683e72e4f177bd901bef43b38a0a72 | [
"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 | 34,376 | lean | /-
Copyright (c) 2018 Kenny Lau. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Kenny Lau, Mario Carneiro
-/
import group_theory.congruence
import linear_algebra.basic
/-!
# Tensor product of semimodules over commutative semirings.
This file constructs the tensor pr... |
dbe04f4daff5a87d2a0ddb0720c577cac73f9468 | a4673261e60b025e2c8c825dfa4ab9108246c32e | /src/Init/Data/Char/Basic.lean | 0712b64c26cd2ca46b614a33647658e0baba2358 | [
"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,096 | 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.UInt
@[inline, reducible] def isValidChar (n : UInt32) : Prop :=
n < 0xd800 β¨ (0xdfff < n β§ n < 0x110000)
instance : SizeOf Char... |
3973dc124e7d7a8b79bab1b3b9a136d1a10ac830 | bb31430994044506fa42fd667e2d556327e18dfe | /src/topology/instances/ennreal.lean | 8d5af6c912c1682ee79ca86aa89ee5cc01d9743d | [
"Apache-2.0"
] | permissive | sgouezel/mathlib | 0cb4e5335a2ba189fa7af96d83a377f83270e503 | 00638177efd1b2534fc5269363ebf42a7871df9a | refs/heads/master | 1,674,527,483,042 | 1,673,665,568,000 | 1,673,665,568,000 | 119,598,202 | 0 | 0 | null | 1,517,348,647,000 | 1,517,348,646,000 | null | UTF-8 | Lean | false | false | 73,293 | 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 topology.instances.nnreal
import topology.algebra.order.monotone_continuity
import analysis.normed.group.basic
/-!
# Extended non-negative reals
-/
noncomputa... |
be08229877f0ce64492194af5e87592911a013ed | 947fa6c38e48771ae886239b4edce6db6e18d0fb | /src/linear_algebra/determinant.lean | 2011e369bfe35440e3a79b3bd9d75fb10b494404 | [
"Apache-2.0"
] | permissive | ramonfmir/mathlib | c5dc8b33155473fab97c38bd3aa6723dc289beaa | 14c52e990c17f5a00c0cc9e09847af16fabbed25 | refs/heads/master | 1,661,979,343,526 | 1,660,830,384,000 | 1,660,830,384,000 | 182,072,989 | 0 | 0 | null | 1,555,585,876,000 | 1,555,585,876,000 | null | UTF-8 | Lean | false | false | 23,637 | 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.multilinear.basis
import linear_algebra.matrix.reindex
import ring_theory.algebra_tower
import tactic.... |
06ed7c25576ab5118a9c744ac225f111f9bcfc3a | 8cae430f0a71442d02dbb1cbb14073b31048e4b0 | /src/data/polynomial/splits.lean | e833cce8ec92d313290f6cbd3347cf8a00b0713d | [
"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,568 | 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.list.prime
import data.polynomial.field_division
import data.polynomial.lifts
/-!
# Split polynomials
> THIS FILE IS SYNCHRONIZED WITH MATHLIB4.
> Any chang... |
e41f70c8e66cc2a6e47ec73366936306b15b21df | a45212b1526d532e6e83c44ddca6a05795113ddc | /src/topology/instances/polynomial.lean | bf08c967c0063e62072c15ee8481d048a67fb2de | [
"Apache-2.0"
] | permissive | fpvandoorn/mathlib | b21ab4068db079cbb8590b58fda9cc4bc1f35df4 | b3433a51ea8bc07c4159c1073838fc0ee9b8f227 | refs/heads/master | 1,624,791,089,608 | 1,556,715,231,000 | 1,556,715,231,000 | 165,722,980 | 5 | 0 | Apache-2.0 | 1,552,657,455,000 | 1,547,494,646,000 | Lean | UTF-8 | Lean | false | false | 2,079 | lean | /-
Copyright (c) 2018 Robert Y. Lewis. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Author: Robert Y. Lewis
Analytic facts about polynomials.
-/
import topology.algebra.ring data.polynomial data.real.cau_seq
open polynomial is_absolute_value
lemma polynomial.tendsto_infin... |
607d4c635324684ea818a46161ca390c5d54c9db | 9dc8cecdf3c4634764a18254e94d43da07142918 | /src/topology/metric_space/metrizable_uniformity.lean | f993f298846bf0f077c11f2e423e60000e4bfdd4 | [
"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,394 | 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 topology.metric_space.metrizable
/-!
# Metrizable uniform spaces
In this file we prove that a uniform space with countably generated uniformity filter is
p... |
35c9d0344d3bb114f4f268ebea960aff92d279a7 | 1abd1ed12aa68b375cdef28959f39531c6e95b84 | /src/data/list/basic.lean | 54edaa549f5f1498d6953b532edbc6d7e17a987d | [
"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 | 189,556 | lean | /-
Copyright (c) 2014 Parikshit Khanna. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Parikshit Khanna, Jeremy Avigad, Leonardo de Moura, Floris van Doorn, Mario Carneiro
-/
import control.monad.basic
import data.nat.basic
/-!
# Basic properties of lists
-/
open fun... |
2bf0d4ecc5491219552e991198e25b8c2b2d3483 | a46270e2f76a375564f3b3e9c1bf7b635edc1f2c | /11.2.lean | e1cf84ca0e8039f2e62e49603b8cd3f3f4cc7ef2 | [
"CC0-1.0"
] | permissive | wudcscheme/lean-exercise | 88ea2506714eac343de2a294d1132ee8ee6d3a20 | 5b23b9be3d361fff5e981d5be3a0a1175504b9f6 | refs/heads/master | 1,678,958,930,293 | 1,583,197,205,000 | 1,583,197,205,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 552 | lean | variables a b c d e : Prop
variable p : Prop β Prop
theorem thmβ (h : a β b) : (c β§ a β§ d β e) β (c β§ b β§ d β e) :=
propext h βΈ iff.refl _
theorem thmβ (h : a β b) (hβ : p a) : p b :=
propext h βΈ hβ
-- BEGIN
#print axioms thmβ -- propext
#print axioms thmβ -- propext
-- END
#check propext
#check th... |
29adf75fe2c84d2029e22f650088bb77e4140d35 | 97f752b44fd85ec3f635078a2dd125ddae7a82b6 | /hott/homotopy/sphere.hlean | 19c46b28aa454f119912a4fa2f16b93d1a296a4d | [
"Apache-2.0"
] | permissive | tectronics/lean | ab977ba6be0fcd46047ddbb3c8e16e7c26710701 | f38af35e0616f89c6e9d7e3eb1d48e47ee666efe | refs/heads/master | 1,532,358,526,384 | 1,456,276,623,000 | 1,456,276,623,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 6,868 | 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
/-
We can define spheres with the following possible indic... |
77fe255dfa9285e787098d9f34b5e337358faea7 | 2a70b774d16dbdf5a533432ee0ebab6838df0948 | /_target/deps/mathlib/src/category_theory/closed/cartesian.lean | fbc5d241430c26c13020a7451407cb7e1a481f4e | [
"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 | 14,508 | lean | /-
Copyright (c) 2020 Bhavik Mehta, Edward Ayers, Thomas Read. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Bhavik Mehta, Edward Ayers, Thomas Read
-/
import category_theory.limits.shapes.finite_products
import category_theory.limits.preserves.shapes.binary_products... |
50cb9e16f773e557bc2fd591fd1f66b82e520fd4 | 74addaa0e41490cbaf2abd313a764c96df57b05d | /Mathlib/data/mv_polynomial/comap_auto.lean | 428c89b08804c050b6dd01f9a3551e8d7f082ae3 | [] | 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 | 3,685 | lean | /-
Copyright (c) 2020 Johan Commelin. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Johan Commelin
-/
import Mathlib.PrePort
import Mathlib.Lean3Lib.init.default
import Mathlib.data.mv_polynomial.rename
import Mathlib.PostPort
universes u_1 u_2 u_4 u_3
namespace Ma... |
173176ca193abc75268409df82164b3480bbdb8b | a4673261e60b025e2c8c825dfa4ab9108246c32e | /stage0/src/Lean/Compiler/Util.lean | 320847a5cd22aea03915135cae77756afe917717 | [
"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 | 3,669 | 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.Environment
namespace Lean.Compiler
def neutralExpr : Expr := mkConst `_neutral
def unreachableExpr : Expr := mkConst `_unreachable
de... |
f37bdbea0decf28b2b78d4a1277c4ca5791e7495 | 90edd5cdcf93124fe15627f7304069fdce3442dd | /stage0/src/Lean/Aesop/Main.lean | 7cecef5d1bc5e48f63a3e2f00fb392aca5c6bc4d | [
"Apache-2.0"
] | permissive | JLimperg/lean4-aesop | 8a9d9cd3ee484a8e67fda2dd9822d76708098712 | 5c4b9a3e05c32f69a4357c3047c274f4b94f9c71 | refs/heads/master | 1,689,415,944,104 | 1,627,383,284,000 | 1,627,383,284,000 | 377,536,770 | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 538 | lean | /-
Copyright (c) 2021 Jannis Limperg. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Jannis Limperg
-/
import Lean.Aesop.BestFirstSearch
import Lean.Aesop.Config
import Lean.Aesop.DefaultRules
import Lean.Elab.Tactic
namespace Lean.Aesop
open Lean.Elab.Tactic
synta... |
217f0ab276b9f7fa6350335dd0b05d1163c2389c | e30ff3aabdac29f8ea40ad76887544d0f9be9018 | /ircbot/modules/help.lean | 094d8849d1d47682b63cc6948baf6ae4010380b1 | [] | no_license | forked-from-1kasper/leanbot | bdef0efa3e4d0eb75b06c1707fb4e35086bb57fa | c61c8c7fdad7b05877e0d232719ce23d2999557f | refs/heads/master | 1,651,846,081,986 | 1,646,404,009,000 | 1,646,404,009,000 | 127,132,795 | 12 | 1 | null | 1,605,183,650,000 | 1,522,237,998,000 | Lean | UTF-8 | Lean | false | false | 662 | lean | import ircbot.types ircbot.support
open types support
namespace modules.help
def help_func (funcs : list bot_function) (input : irc_text) : list irc_text :=
match input with
| irc_text.parsed_normal
{ object := some ~nick!ident, type := message.privmsg,
args := [subject], text := "\\help" } :=
[ privmsg nick ... |
f6e051aa9f4692cd4b3dbadf9faafe25c13c6d45 | 57c233acf9386e610d99ed20ef139c5f97504ba3 | /src/algebra/polynomial/group_ring_action.lean | 1eefc0fe0a0da4bdd08471f7cdd81987c6867619 | [
"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,921 | 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 data.polynomial.monic
import data.polynomial.algebra_map
import algebra.group_ring_action
import algebra.group_action_hom
/-!
# Group action on rings applied to polyno... |
46cfb0f11de65a3ecd61828a32fb22a72687ffdf | d9d511f37a523cd7659d6f573f990e2a0af93c6f | /src/measure_theory/constructions/borel_space.lean | ebad4a99706d2f267cd0364917a3ba8359616235 | [
"Apache-2.0"
] | permissive | hikari0108/mathlib | b7ea2b7350497ab1a0b87a09d093ecc025a50dfa | a9e7d333b0cfd45f13a20f7b96b7d52e19fa2901 | refs/heads/master | 1,690,483,608,260 | 1,631,541,580,000 | 1,631,541,580,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 68,798 | lean | /-
Copyright (c) 2017 Johannes HΓΆlzl. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Johannes HΓΆlzl, Yury Kudryashov
-/
import measure_theory.function.ae_measurable_sequence
import analysis.complex.basic
import analysis.normed_space.finite_dimension
import topology.G_d... |
18be2c6d02a4f067feb834046e168ef95e29c32d | 8cb37a089cdb4af3af9d8bf1002b417e407a8e9e | /library/init/meta/pexpr.lean | 8fc648c8555b617649397b3fd51d253490571f59 | [
"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,537 | 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.meta.expr
universe u
/-- Quoted expressions. They can be converted into expressions by using a tactic. -/
@[reducible] meta def pexpr :... |
e2950c63ca4ccd903881bd1970b6f2c470a02066 | 737dc4b96c97368cb66b925eeea3ab633ec3d702 | /stage0/src/Lean/Meta/Tactic/Subst.lean | 2e6690862ad7829e86d7b10fd8f3f6ec203e9dc6 | [
"Apache-2.0"
] | permissive | Bioye97/lean4 | 1ace34638efd9913dc5991443777b01a08983289 | bc3900cbb9adda83eed7e6affeaade7cfd07716d | refs/heads/master | 1,690,589,820,211 | 1,631,051,000,000 | 1,631,067,598,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 8,357 | lean | /-
Copyright (c) 2020 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Leonardo de Moura
-/
import Lean.Meta.AppBuilder
import Lean.Meta.MatchUtil
import Lean.Meta.Tactic.Util
import Lean.Meta.Tactic.Revert
import Lean.Meta.Tactic.Assert
import Lea... |
9d8c5c8092ccb4140840b366ba9bb0f309a72bba | 853df553b1d6ca524e3f0a79aedd32dde5d27ec3 | /src/order/filter/filter_product.lean | dfc28f23781fb57bdeb866e571748d50d94fd6ac | [
"Apache-2.0"
] | permissive | DanielFabian/mathlib | efc3a50b5dde303c59eeb6353ef4c35a345d7112 | f520d07eba0c852e96fe26da71d85bf6d40fcc2a | refs/heads/master | 1,668,739,922,971 | 1,595,201,756,000 | 1,595,201,756,000 | 279,469,476 | 0 | 0 | null | 1,594,696,604,000 | 1,594,696,604,000 | null | UTF-8 | Lean | false | false | 8,261 | lean | /-
Copyright (c) 2019 Abhimanyu Pallavi Sudhir. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Abhimanyu Pallavi Sudhir
-/
import order.filter.ultrafilter
import order.filter.germ
import algebra.pi_instances
/-!
# Ultraproducts
If `Ο` is an ultrafilter, then the spac... |
412df6d2dc3a4e795442afd8dcf9678fb89b8f42 | 63abd62053d479eae5abf4951554e1064a4c45b4 | /src/algebra/group/inj_surj.lean | de314a72f5592999ca4c8fdc32111ae6daec7e39 | [
"Apache-2.0"
] | permissive | Lix0120/mathlib | 0020745240315ed0e517cbf32e738d8f9811dd80 | e14c37827456fc6707f31b4d1d16f1f3a3205e91 | refs/heads/master | 1,673,102,855,024 | 1,604,151,044,000 | 1,604,151,044,000 | 308,930,245 | 0 | 0 | Apache-2.0 | 1,604,164,710,000 | 1,604,163,547,000 | null | UTF-8 | Lean | false | false | 9,886 | lean | /-
Copyright (c) 2020 Johan Commelin. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Johan Commelin
-/
import algebra.group.defs
import logic.function.basic
/-!
# Lifting algebraic data classes along injective/surjective maps
This file provides definitions that are m... |
82d813803e0648d9cfeb5a0f476f7ca614164d49 | 8cae430f0a71442d02dbb1cbb14073b31048e4b0 | /src/data/finset/sort.lean | 2e7d38585c847463baaff8cdd613a29f387d09de | [
"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 | 9,614 | 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 order.rel_iso.set
import data.fintype.lattice
import data.multiset.sort
import data.list.nodup_equiv_fin
/-!
# Construct a sorted list from a finset.
> THIS ... |
f5e2cb86fabe01d11eb8ae7492b1629b61a0a759 | d406927ab5617694ec9ea7001f101b7c9e3d9702 | /src/data/finmap.lean | 804f9bbb5ce414c216aba3eeda0686d1c006c957 | [
"Apache-2.0"
] | permissive | alreadydone/mathlib | dc0be621c6c8208c581f5170a8216c5ba6721927 | c982179ec21091d3e102d8a5d9f5fe06c8fafb73 | refs/heads/master | 1,685,523,275,196 | 1,670,184,141,000 | 1,670,184,141,000 | 287,574,545 | 0 | 0 | Apache-2.0 | 1,670,290,714,000 | 1,597,421,623,000 | Lean | UTF-8 | Lean | false | false | 19,057 | lean | /-
Copyright (c) 2018 Sean Leather. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Sean Leather, Mario Carneiro
-/
import data.list.alist
import data.finset.basic
import data.part
/-!
# Finite maps over `multiset`
-/
universes u v w
open list
variables {Ξ± : Type u} {Ξ²... |
cda049e588f8209d94eab90595257d7f2293f53e | 44023683920a51f2416cf51eeab3fc51c3ff0765 | /leanpkg/leanpkg/main.lean | 8f031c42b562a6c4847c3088d64256c13dc7cf3f | [
"Apache-2.0"
] | permissive | pirocks/lean | e6e3e3fd20c5e7877f7efc3b50e5e20271e8d0cf | 368f17d0b1392a5a72c9eb974f15b14462cc1475 | refs/heads/master | 1,620,671,385,768 | 1,516,152,564,000 | 1,516,152,564,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 11,784 | lean | /-
Copyright (c) 2017 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Author: Gabriel Ebner
-/
import leanpkg.resolve leanpkg.git
variable [io.interface]
namespace leanpkg
def write_file (fn : string) (cnts : string) (mode := io.mode.write) : io unit := ... |
2d4775078d52620323257da29f63270efdc22564 | 3aad12fe82645d2d3173fbedc2e5c2ba945a4d75 | /test/data/serial.lean | 8b3718d6080ebe1d3cec77e121e85b4a9c519be5 | [] | no_license | seanpm2001/LeanProver-Community_MathLIB-Nursery | 4f88d539cb18d73a94af983092896b851e6640b5 | 0479b31fa5b4d39f41e89b8584c9f5bf5271e8ec | refs/heads/master | 1,688,730,786,645 | 1,572,070,026,000 | 1,572,070,026,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 1,859 | lean |
import data.serial
open serial serializer
structure point :=
(x y z : β)
instance : serial point :=
by mk_serializer (point.mk <$> ser_field point.x <*> ser_field point.y <*> ser_field point.z)
example : serial point :=
begin
apply of_serializer (point.mk <$> ser_field point.x <*> ser_field point.y <*> ser_field... |
19579d34d452a835b726a16d1d4b4d28ec396193 | 57c233acf9386e610d99ed20ef139c5f97504ba3 | /src/linear_algebra/bilinear_form.lean | 2cb320b9440e528441996eb3675b5c3fb09f78b3 | [
"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 | 72,687 | lean | /-
Copyright (c) 2018 Andreas Swerdlow. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Andreas Swerdlow, Kexing Ying
-/
import linear_algebra.dual
import linear_algebra.matrix.basis
import linear_algebra.matrix.nondegenerate
import linear_algebra.matrix.nonsingular_in... |
a226a7ba868214628619dd627e82d20a143ea576 | 9dd3f3912f7321eb58ee9aa8f21778ad6221f87c | /library/init/data/unsigned.lean | db6da9a2613216034b5c05edca52800e5b1a3098 | [
"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 | 875 | 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.fin.basic
open nat
def unsigned_sz : nat := succ 4294967295
attribute [reducible]
def unsigned := fin unsigned_sz
namespace unsi... |
ae22874ba73d306bee11a23a0a28a212074f63be | fa02ed5a3c9c0adee3c26887a16855e7841c668b | /src/tactic/explode_widget.lean | 10211e6b164d618ec6be2354e02f7a8e618870b9 | [
"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 | 10,211 | lean | /-
Copyright (c) 2020 Minchao Wu. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Minchao Wu
-/
import tactic.explode
import tactic.interactive_expr
/-!
# `#explode_widget` command
Render a widget that displays an `#explode` proof, providing more
interactivity such as... |
eaa9813ea70cf4471707e69fceed7738637faee4 | 76df16d6c3760cb415f1294caee997cc4736e09b | /lean/src/cs/util.lean | 7d2fc5297a19cd79741fd3b476259eb9c0264ed3 | [
"MIT"
] | permissive | uw-unsat/leanette-popl22-artifact | 70409d9cbd8921d794d27b7992bf1d9a4087e9fe | 80fea2519e61b45a283fbf7903acdf6d5528dbe7 | refs/heads/master | 1,681,592,449,670 | 1,637,037,431,000 | 1,637,037,431,000 | 414,331,908 | 6 | 1 | null | null | null | null | UTF-8 | Lean | false | false | 4,361 | lean | import tactic.basic
import tactic.omega
import tactic.linarith
import tactic.apply_fun
import data.option.basic
namespace sym
lemma bool.tt_eq_true {b : bool} :
(b = tt) β b := by { simp only [iff_self], }
lemma nat.lt2_implies_01 {j : β} : j < 2 β (j = 0 β¨ j = 1) := by omega
lemma nat.le_and_ne_is_lt {i j : β} ... |
741c5ddf20607fbd881f0eed574d3decc870a5c0 | 4727251e0cd73359b15b664c3170e5d754078599 | /src/algebra/category/Algebra/basic.lean | b0630ea5f999233d8a16cd22a0c518a130301530 | [
"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 | 5,846 | lean | /-
Copyright (c) 2020 Scott Morrison. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Scott Morrison
-/
import algebra.algebra.subalgebra.basic
import algebra.free_algebra
import algebra.category.Ring.basic
import algebra.category.Module.basic
/-!
# Category instance f... |
ab030318b05c95aa53fbb2673f13d6be90c4ccde | a9d0fb7b0e4f802bd3857b803e6c5c23d87fef91 | /tests/lean/run/ns.lean | 61f088dd26fcc176256aee1789bc73a1536d7b71 | [
"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 | 282 | lean | prelude
constant nat : Type.{1}
constant f : nat β nat
namespace foo
constant int : Type.{1}
constant f : int β int
constant a : nat
constant i : int
check _root_.f a
check f i
end foo
open foo
constants a : nat
constants i : int
check f foo.a
check f foo.i
|
8827872586f4d929d1b1416a126d78f23dcaadaa | 271e26e338b0c14544a889c31c30b39c989f2e0f | /stage0/src/Init/Lean/Parser/Term.lean | e24e5e93b83da3c50a99177e78cb9c4da8125c87 | [
"Apache-2.0"
] | permissive | dgorokho/lean4 | 805f99b0b60c545b64ac34ab8237a8504f89d7d4 | e949a052bad59b1c7b54a82d24d516a656487d8a | refs/heads/master | 1,607,061,363,851 | 1,578,006,086,000 | 1,578,006,086,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 11,689 | lean | /-
Copyright (c) 2019 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Leonardo de Moura, Sebastian Ullrich
-/
prelude
import Init.Lean.Parser.Parser
import Init.Lean.Parser.Level
namespace Lean
namespace Parser
namespace Term
/- Helper functions ... |
17ee5b53642cf793791d71c15cd99a65409200a0 | 74addaa0e41490cbaf2abd313a764c96df57b05d | /Mathlib/category_theory/limits/constructions/epi_mono.lean | fc6d3c454c6fb4d8fbea66fe49b7ad41b97546e4 | [] | 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,283 | 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 Mathlib.PrePort
import Mathlib.Lean3Lib.init.default
import Mathlib.category_theory.limits.shapes.pullbacks
import Mathlib.category_theory.limits.shapes.binary_pro... |
0c5c72826fcf270c70cf07c4257e2b00affa9e4d | 74addaa0e41490cbaf2abd313a764c96df57b05d | /Mathlib/order/rel_iso_auto.lean | 1a2b95b4b7288cd2ebb931de60dc731a09c0a01d | [] | 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 | 41,259 | 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 Mathlib.PrePort
import Mathlib.Lean3Lib.init.default
import Mathlib.logic.embedding
import Mathlib.order.rel_classes
import Mathlib.data.set.intervals.basic
im... |
90c2e0eae608b256d450ba5c7ebb42b62206cd73 | f3849be5d845a1cb97680f0bbbe03b85518312f0 | /tests/lean/let3.lean | e9b61f32595b522e4d16fb3ceecb73b3c22d1b81 | [
"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 | 142 | lean | --
constant f : num β num β num β num
#check
let a : num := 10
in f a 10
/-
#check
let a := 10,
b := 10
in f a b 10
-/
|
a039b3e10af32b2f8cca9f896de7e244e69acdc1 | cf39355caa609c0f33405126beee2739aa3cb77e | /library/init/meta/widget/html_cmd.lean | 7d1aa096b160cebbc226886630dc2c38611a2565 | [
"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,001 | lean | /-
Copyright (c) E.W.Ayers. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Author: E.W.Ayers
-/
prelude
import init.meta.widget.basic
import init.meta.lean.parser
import init.meta.interactive_base
import init.data.punit
open lean
open lean.parser
open interactive
open tactic
o... |
9935f579dfbea600a5fb581970e3ffdc7c2bf3f3 | 302c785c90d40ad3d6be43d33bc6a558354cc2cf | /src/linear_algebra/linear_independent.lean | caf1390b0b976b8f831dec1183634e74fb1f0b15 | [
"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 | 44,485 | lean | /-
Copyright (c) 2020 Anne Baanen. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Johannes HΓΆlzl, Mario Carneiro, Alexander Bentkamp, Anne Baanen
-/
import linear_algebra.finsupp
import linear_algebra.prod
import order.zorn
import data.finset.order
import data.equiv.fi... |
b68678347cd606f091cb84a33356d17ccd56cc12 | 969dbdfed67fda40a6f5a2b4f8c4a3c7dc01e0fb | /src/data/multiset/basic.lean | 24da2627ae69ebd7a27b74da35e831b0436d0396 | [
"Apache-2.0"
] | permissive | SAAluthwela/mathlib | 62044349d72dd63983a8500214736aa7779634d3 | 83a4b8b990907291421de54a78988c024dc8a552 | refs/heads/master | 1,679,433,873,417 | 1,615,998,031,000 | 1,615,998,031,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 93,076 | lean | /-
Copyright (c) 2015 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Author: Mario Carneiro
-/
import data.list.perm
import algebra.group_power
/-!
# Multisets
These are implemented as the quotient of a list by permutations.
## Notation
We define the ... |
cfaab75ccd03755e2782aee066c894cce64f033b | d406927ab5617694ec9ea7001f101b7c9e3d9702 | /src/probability/process/filtration.lean | f498406b4836c4bd46b1139da68c4064096255bc | [
"Apache-2.0"
] | permissive | alreadydone/mathlib | dc0be621c6c8208c581f5170a8216c5ba6721927 | c982179ec21091d3e102d8a5d9f5fe06c8fafb73 | refs/heads/master | 1,685,523,275,196 | 1,670,184,141,000 | 1,670,184,141,000 | 287,574,545 | 0 | 0 | Apache-2.0 | 1,670,290,714,000 | 1,597,421,623,000 | Lean | UTF-8 | Lean | false | false | 13,081 | lean | /-
Copyright (c) 2021 Kexing Ying. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Kexing Ying, RΓ©my Degenne
-/
import measure_theory.function.conditional_expectation.real
/-!
# Filtrations
This file defines filtrations of a measurable space and Ο-finite filtrations.
... |
4d1ad0c4461c8bde89eaf5624642f4078c44cb1f | c777c32c8e484e195053731103c5e52af26a25d1 | /src/algebra/continued_fractions/computation/terminates_iff_rat.lean | d4977bd208740bfca177e9203d3401738dfad7a9 | [
"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 | 14,214 | lean | /-
Copyright (c) 2020 Kevin Kappelmann. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Kevin Kappelmann
-/
import algebra.continued_fractions.computation.approximations
import algebra.continued_fractions.computation.correctness_terminating
import data.rat.floor
/-!
# T... |
d81c759f816c87ea73eb9796a665fe7f3db437f6 | 6432ea7a083ff6ba21ea17af9ee47b9c371760f7 | /src/Lean/Meta/Tactic/Constructor.lean | ff6ed556924f3cb89be7c23871169f8c704d2893 | [
"Apache-2.0",
"LLVM-exception",
"NCSA",
"LGPL-3.0-only",
"LicenseRef-scancode-inner-net-2.0",
"BSD-3-Clause",
"LGPL-2.0-or-later",
"Spencer-94",
"LGPL-2.1-or-later",
"HPND",
"LicenseRef-scancode-pcre",
"ISC",
"LGPL-2.1-only",
"LicenseRef-scancode-other-permissive",
"SunPro",
"CMU-Mach"... | permissive | leanprover/lean4 | 4bdf9790294964627eb9be79f5e8f6157780b4cc | f1f9dc0f2f531af3312398999d8b8303fa5f096b | refs/heads/master | 1,693,360,665,786 | 1,693,350,868,000 | 1,693,350,868,000 | 129,571,436 | 2,827 | 311 | Apache-2.0 | 1,694,716,156,000 | 1,523,760,560,000 | Lean | UTF-8 | Lean | false | false | 2,154 | lean | /-
Copyright (c) 2020 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Leonardo de Moura
-/
import Lean.Meta.Check
import Lean.Meta.Tactic.Util
import Lean.Meta.Tactic.Apply
namespace Lean.Meta
/--
When the goal `mvarId` type is an inductive data... |
5cb8cb270430b6e710dff86725a3ebb61155ac05 | d406927ab5617694ec9ea7001f101b7c9e3d9702 | /src/data/fin/basic.lean | 3c38b7ab48370b1077c18a33e8c28fd7e616133f | [
"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 | 70,868 | lean | /-
Copyright (c) 2017 Robert Y. Lewis. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Robert Y. Lewis, Keeley Hoek
-/
import algebra.ne_zero
import algebra.order.with_zero
import order.rel_iso.basic
import data.nat.order.basic
import order.hom.set
/-!
# The finite typ... |
7ba7aeeb050b071dfeaced54c26bbea63884ffc6 | 57c233acf9386e610d99ed20ef139c5f97504ba3 | /src/group_theory/submonoid/center.lean | 2649bbec6bae563c9cae4c39151cc8ba2a477861 | [
"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,787 | lean | /-
Copyright (c) 2021 Eric Wieser. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Eric Wieser
-/
import group_theory.submonoid.operations
import data.fintype.basic
/-!
# Centers of magmas and monoids
## Main definitions
* `set.center`: the center of a magma
* `submo... |
9114723476862b78c60bd4a3510a9a06a0f14b7d | 8cae430f0a71442d02dbb1cbb14073b31048e4b0 | /src/geometry/manifold/metrizable.lean | 681a32a20b59ed8192ad51ce25125b17893dacef | [
"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,316 | 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 geometry.manifold.smooth_manifold_with_corners
import topology.paracompact
import topology.metric_space.metrizable
/-!
# Metrizability of a Ο-compact manifo... |
f2b76c1d1346e2ab264a8b3933c3d30cec687d0e | d72901cc240bd78b8b0384565e4f4dee8abd3a86 | /src/analysis/calculus/deriv.lean | 4f54a3a246f0343aba8c06cf857b730e1e1e3682 | [
"Apache-2.0"
] | permissive | leon-volq/mathlib | 513b24765349bb5187df9d898b92beadf96124d9 | 0cc93a137e9b2e243f8ae1f808fa7225ce0fe143 | refs/heads/master | 1,676,294,376,990 | 1,610,838,688,000 | 1,610,838,688,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 73,960 | 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.derivative
/-!
# One-dimensional derivatives
This file defines the derivative of a function... |
db9ff4f0b737ab2ebe84206cd1f908222af32afa | 1dd482be3f611941db7801003235dc84147ec60a | /src/tactic/tidy.lean | e6f8035ca928d688b93dbb6db582afd0dde5a316 | [
"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 | 2,981 | lean | -- Copyright (c) 2017 Scott Morrison. All rights reserved.
-- Released under Apache 2.0 license as described in the file LICENSE.
-- Authors: Scott Morrison
import tactic
import tactic.auto_cases
import tactic.chain
import tactic.interactive
namespace tactic
namespace tidy
meta def tidy_attribute : user_attribute :=... |
a76cdd7e2d09f27f3f84d970297a5e467a587c94 | b7f22e51856f4989b970961f794f1c435f9b8f78 | /tests/lean/notation.lean | e9cef7b601a0eb7c46c9a11947651b4853b00a42 | [
"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 | 404 | lean | import logic data.num
open num
constant b : num
check b + b + b
check true β§ false β§ true
check (true β§ false) β§ true
check (2:num) + (2 + 2)
check (2 + 2) + (2:num)
check (1:num) = (2 + 3)*2
check (2:num) + 3 * 2 = 3 * 2 + 2
check (true β¨ false) = (true β¨ false) β§ true
check true β§ (false β¨ true)
constant A : Typeβ
co... |
b079f16c7873903d6b35cbc5a04ed90705fa8834 | 3489b85df841aeadbf61fa3d15cc866d97c45021 | /firstorder.lean | a1e57a3b2072292b8b80cc82e37456609d2420c5 | [] | no_license | nthomas103/firstorder | 257e26fc36ef79e7e9960dcc4cea90a1b800d84e | 1252a85a878d43fba1cc9844361bbb615e768171 | refs/heads/master | 1,611,165,707,952 | 1,471,292,864,000 | 1,471,292,864,000 | 65,762,786 | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 21,323 | lean |
open tactic expr list environment nat bool
meta_definition intro' (n : name) : tactic unit := intro n >> skip
meta_definition cond_intros : tactic unit := do
t β target,
when (is_pi t = ff) (fail "intros: not a pi type"),
intro' `h
--example (a b : Prop) : a β b := by do cond_intros
--example (a b : Prop) : b := by... |
6b055b53b5d51a2aed816ad79e7d05d182869f2c | e2fc96178628c7451e998a0db2b73877d0648be5 | /src/classes/unrestricted/closure_properties/reverse.lean | 2a21528de973226cd302761d6f83af37d8bcd935 | [
"BSD-2-Clause"
] | permissive | madvorak/grammars | cd324ae19b28f7b8be9c3ad010ef7bf0fabe5df2 | 1447343a45fcb7821070f1e20b57288d437323a6 | refs/heads/main | 1,692,383,644,884 | 1,692,032,429,000 | 1,692,032,429,000 | 453,948,141 | 7 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 3,890 | lean | import classes.unrestricted.basics.toolbox
import utilities.language_operations
import utilities.list_utils
variables {T : Type}
section auxiliary
private def reversal_grule {N : Type} (r : grule T N) : grule T N :=
grule.mk r.input_R.reverse r.input_N r.input_L.reverse r.output_string.reverse
private lemma dual_o... |
b5680662ba4cf20679a5c909d50db96e3a5292e5 | 969dbdfed67fda40a6f5a2b4f8c4a3c7dc01e0fb | /src/data/polynomial/eval.lean | c48444ae3d5aae50d7536d9eafaa5eb14ac8397a | [
"Apache-2.0"
] | permissive | SAAluthwela/mathlib | 62044349d72dd63983a8500214736aa7779634d3 | 83a4b8b990907291421de54a78988c024dc8a552 | refs/heads/master | 1,679,433,873,417 | 1,615,998,031,000 | 1,615,998,031,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 26,583 | lean | /-
Copyright (c) 2018 Chris Hughes. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Chris Hughes, Johannes HΓΆlzl, Scott Morrison, Jens Wagemaker
-/
import data.polynomial.induction
import data.polynomial.degree.definitions
import deprecated.ring
/-!
# Theory of univari... |
1ee6edcda26ad98d995345eb1eb1c5268258f2bc | 8cae430f0a71442d02dbb1cbb14073b31048e4b0 | /src/number_theory/number_field/norm.lean | 1699edeb6c4c3a79ad03aa3d5427ce473984fbb7 | [
"Apache-2.0"
] | permissive | leanprover-community/mathlib | 56a2cadd17ac88caf4ece0a775932fa26327ba0e | 442a83d738cb208d3600056c489be16900ba701d | refs/heads/master | 1,693,584,102,358 | 1,693,471,902,000 | 1,693,471,902,000 | 97,922,418 | 1,595 | 352 | Apache-2.0 | 1,694,693,445,000 | 1,500,624,130,000 | Lean | UTF-8 | Lean | false | false | 4,900 | lean | /-
Copyright (c) 2022 Riccardo Brasca. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Riccardo Brasca, Eric Rodriguez
-/
import number_theory.number_field.basic
import ring_theory.norm
/-!
# Norm in number fields
> THIS FILE IS SYNCHRONIZED WITH MATHLIB4.
> Any chan... |
d09b869ff222c89897a39becfe04548d7dde5a3d | 5ae26df177f810c5006841e9c73dc56e01b978d7 | /src/data/seq/seq.lean | 2b5c0eef3c2259b6e96158f138cfd9950bee9076 | [
"Apache-2.0"
] | permissive | ChrisHughes24/mathlib | 98322577c460bc6b1fe5c21f42ce33ad1c3e5558 | a2a867e827c2a6702beb9efc2b9282bd801d5f9a | refs/heads/master | 1,583,848,251,477 | 1,565,164,247,000 | 1,565,164,247,000 | 129,409,993 | 0 | 1 | Apache-2.0 | 1,565,164,817,000 | 1,523,628,059,000 | Lean | UTF-8 | Lean | false | false | 27,600 | lean | /-
Copyright (c) 2017 Mario Carneiro. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Author: Mario Carneiro
-/
import tactic.basic
import data.list.basic data.stream data.lazy_list data.seq.computation logic.basic
universes u v w
/-
coinductive seq (Ξ± : Type u) : Type u
| nil... |
dc1a24a707e1c80be63859499b60be677fc06114 | 957a80ea22c5abb4f4670b250d55534d9db99108 | /tests/lean/run/1590.lean | 70edc8a5a327213ee91fcac1318b60eccac749f2 | [
"Apache-2.0"
] | permissive | GaloisInc/lean | aa1e64d604051e602fcf4610061314b9a37ab8cd | f1ec117a24459b59c6ff9e56a1d09d9e9e60a6c0 | refs/heads/master | 1,592,202,909,807 | 1,504,624,387,000 | 1,504,624,387,000 | 75,319,626 | 2 | 1 | Apache-2.0 | 1,539,290,164,000 | 1,480,616,104,000 | C++ | UTF-8 | Lean | false | false | 95 | lean | #check `(true.intro)
#check (`(true.intro) : expr)
#check Ξ» (h : true) [reflected h], `(id h)
|
d8106430ad5ce39358bff8e59c87b9fd44bdb2c0 | 6df8d5ae3acf20ad0d7f0247d2cee1957ef96df1 | /ExamPractice/exam_1_studyshi.lean | 59643e8e82f1577463adcf778e6357a8193c8158 | [] | no_license | derekjohnsonva/CS2102 | 8ed45daa6658e6121bac0f6691eac6147d08246d | b3f507d4be824a2511838a1054d04fc9aef3304c | refs/heads/master | 1,648,529,162,527 | 1,578,851,859,000 | 1,578,851,859,000 | 233,433,207 | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 5,419 | lean | /-
Styles of function writing
1) "C" style
2) tactic script
3) lambda abstraction
-/
def square : β β β
| n := n*n
def square' : β β β :=
Ξ» n, n^2
#eval (Ξ» (n : β ), n^2) 3
def x := Ξ» (n:β ), n^2
#check x
/-
Must really know how to write lambda expressions
-/
def x' := Ξ» (n : bool), tt
/-
Be... |
656adbd96ade306ec621780750238f5b4a825909 | a9d0fb7b0e4f802bd3857b803e6c5c23d87fef91 | /tests/lean/run/e5.lean | cfa8c6d692526b8fd90cc4357663a25f50f97f40 | [
"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,561 | lean | prelude
definition Prop := Type.{0}
definition false : Prop := βx : Prop, x
check false
theorem false.elim (C : Prop) (H : false) : C
:= H C
definition eq {A : Type} (a b : A)
:= β P : A β Prop, P a β P b
check eq
infix `=`:50 := eq
theorem refl {A : Type} (a : A) : a = a
:= Ξ» P H, H
definition true : Prop
:= fa... |
83d01f12b1e7bdb13dd710121aebd678b9061f54 | 86f6f4f8d827a196a32bfc646234b73328aeb306 | /examples/basics/unnamed_1955.lean | e24ee24127b56246e8cd3bd0b6a502face94edfb | [] | no_license | jamescheuk91/mathematics_in_lean | 09f1f87d2b0dce53464ff0cbe592c568ff59cf5e | 4452499264e2975bca2f42565c0925506ba5dda3 | refs/heads/master | 1,679,716,410,967 | 1,613,957,947,000 | 1,613,957,947,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 334 | lean | import order.lattice
variables {Ξ± : Type*} [lattice Ξ±]
variables a b c : Ξ±
example (h : β x y z : Ξ±, x β (y β z) = (x β y) β (x β z)) :
(a β b) β c = (a β c) β (b β c) :=
sorry
example (h : β x y z : Ξ±, x β (y β z) = (x β y) β (x β z)) :
(a β b) β c = (a β c) β (b β c) :=
sorry |
3d2de193cefed25b4895cfd582a44e6d06ce6807 | dd4e652c749fea9ac77e404005cb3470e5f75469 | /src/eigenvectors/adjoint.lean | 16c125189eb65acf13e6893cbe0f7c68768f9bad | [] | no_license | skbaek/cvx | e32822ad5943541539966a37dee162b0a5495f55 | c50c790c9116f9fac8dfe742903a62bdd7292c15 | refs/heads/master | 1,623,803,010,339 | 1,618,058,958,000 | 1,618,058,958,000 | 176,293,135 | 3 | 2 | null | null | null | null | UTF-8 | Lean | false | false | 7,385 | lean | import analysis.normed_space.real_inner_product
import missing_mathlib.linear_algebra.basic
noncomputable theory
open_locale classical
-- TODO: Same for complex inner product?
-- Or for bilinear forms?
variables {V : Type*} [inner_product_space V]
namespace linear_map
def has_adjoint (F G : V ββ[β] V) : Prop :=
β ... |
4e66e54f5d663dfe6dfad3c5f305d4e9840dd449 | 4950bf76e5ae40ba9f8491647d0b6f228ddce173 | /src/field_theory/intermediate_field.lean | b95985232d37c2eaff6ba9a946b685fa23cb3e09 | [
"Apache-2.0"
] | permissive | ntzwq/mathlib | ca50b21079b0a7c6781c34b62199a396dd00cee2 | 36eec1a98f22df82eaccd354a758ef8576af2a7f | refs/heads/master | 1,675,193,391,478 | 1,607,822,996,000 | 1,607,822,996,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 13,246 | lean | /-
Copyright (c) 2020 Anne Baanen. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Anne Baanen
-/
import field_theory.subfield
import field_theory.tower
import ring_theory.algebraic
/-!
# Intermediate fields
Let `L / K` be a field extension, given as an instance `alg... |
1a8c1d5df77f50cc165b1bf022ae84fce5e56f1e | d1bbf1801b3dcb214451d48214589f511061da63 | /src/algebra/lie/classical.lean | f8be292c40c3244c59e2ef88c67f1a96baf35f7a | [
"Apache-2.0"
] | permissive | cheraghchi/mathlib | 5c366f8c4f8e66973b60c37881889da8390cab86 | f29d1c3038422168fbbdb2526abf7c0ff13e86db | refs/heads/master | 1,676,577,831,283 | 1,610,894,638,000 | 1,610,894,638,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 13,509 | lean | /-
Copyright (c) 2020 Oliver Nash. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Oliver Nash
-/
import algebra.invertible
import algebra.lie.skew_adjoint
import linear_algebra.matrix
/-!
# Classical Lie algebras
This file is the place to find definitions and basic p... |
70cf70c45618b3cc7eebc22f8a7e30dbb7245ed9 | 07c6143268cfb72beccd1cc35735d424ebcb187b | /src/data/padics/padic_norm.lean | 64396a56e41904a417e27ad658db954b990a5f15 | [
"Apache-2.0"
] | permissive | khoek/mathlib | bc49a842910af13a3c372748310e86467d1dc766 | aa55f8b50354b3e11ba64792dcb06cccb2d8ee28 | refs/heads/master | 1,588,232,063,837 | 1,587,304,803,000 | 1,587,304,803,000 | 176,688,517 | 0 | 0 | Apache-2.0 | 1,553,070,585,000 | 1,553,070,585,000 | null | UTF-8 | Lean | false | false | 17,080 | lean | /-
Copyright (c) 2018 Robert Y. Lewis. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Robert Y. Lewis
-/
import data.rat algebra.gcd_domain algebra.field_power
import ring_theory.multiplicity tactic.ring
import data.real.cau_seq
import tactic.norm_cast
/-!
# p-adic n... |
d6e9178fe73d619df20b013210957664ca3b831c | 55c7fc2bf55d496ace18cd6f3376e12bb14c8cc5 | /src/order/lattice.lean | 5eee6deecf50b8224e36d50bbbea61108795ea97 | [
"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 | 18,103 | 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
Defines the inf/sup (semi)-lattice with optionally top/bot type class hierarchy.
-/
import order.basic
set_option old_structure_cmd true
universes u v w
variables {Ξ±... |
35e058d824457d73758bd663b66ed8bbf8ca1524 | 271e26e338b0c14544a889c31c30b39c989f2e0f | /stage0/src/Init/Lean/Attributes.lean | b374846675cbe43279fa8fa454f3e2d68822e5b0 | [
"Apache-2.0"
] | permissive | dgorokho/lean4 | 805f99b0b60c545b64ac34ab8237a8504f89d7d4 | e949a052bad59b1c7b54a82d24d516a656487d8a | refs/heads/master | 1,607,061,363,851 | 1,578,006,086,000 | 1,578,006,086,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 15,562 | 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.Lean.Scopes
import Init.Lean.Syntax
namespace Lean
inductive AttributeApplicationTime
| afterTypeChecking | afterCompilation | beforeE... |
4d8fb4b29097cb66b234c12b3e3bbd221321d8a6 | 57c233acf9386e610d99ed20ef139c5f97504ba3 | /src/algebra/order/monoid_lemmas.lean | fa106dc3e3f4d3244929b2cf642451682f253c8f | [
"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 | 28,011 | lean | /-
Copyright (c) 2016 Jeremy Avigad. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Jeremy Avigad, Leonardo de Moura, Mario Carneiro, Johannes HΓΆlzl, Damiano Testa
-/
import algebra.covariant_and_contravariant
import order.monotone
/-!
# Ordered monoids
This file dev... |
c5a5c1edc74194efa0a0d4b6da52768170b0b635 | 4727251e0cd73359b15b664c3170e5d754078599 | /src/analysis/special_functions/log/basic.lean | 9dd6c92a4169eaa8acffaac3a8f3ab1fca60e180 | [
"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 | 11,008 | 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
-/
import analysis.special_functions.exp
/-!
# Real logarithm
In this file we define `real.log` to be the logarithm of a re... |
cde06c1a402df0a74bff09e323af4007bc119b37 | d406927ab5617694ec9ea7001f101b7c9e3d9702 | /src/group_theory/perm/cycle/basic.lean | 98220da5fc040dfbaca458cdeb2520d46cb15e96 | [
"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 | 59,489 | lean | /-
Copyright (c) 2019 Chris Hughes. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Chris Hughes
-/
import data.finset.noncomm_prod
import data.fintype.perm
import group_theory.perm.sign
import logic.equiv.fintype
/-!
# Cyclic permutations
## Main definitions
In the f... |
232c2fed8c8ff99eaacbcfbee16326f9cb797b62 | 5c7fe6c4a9d4079b5457ffa5f061797d42a1cd65 | /src/exercises/src_34_constructing_inverses_axiom_of_choice.lean | d017bb3a6e13ba9476d7ca62a3566fe9a8f850ec | [] | no_license | gihanmarasingha/mth1001_tutorial | 8e0817feeb96e7c1bb3bac49b63e3c9a3a329061 | bb277eebd5013766e1418365b91416b406275130 | refs/heads/master | 1,675,008,746,310 | 1,607,993,443,000 | 1,607,993,443,000 | 321,511,270 | 3 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 6,053 | lean | import data.set.function
import .src_33_identity_and_inverse_functions
import tactic.norm_num
open function
namespace mth1001
/-
What about the 'converses' of these statements? Asserting the converses requires classical
reasoning and a principle called the *axiom of choice*.
Further, we'll use predicates `has_left... |
5fb8f9fff46d95144a938fff69b30b9ec487d788 | 87a08a8e9b222ec02f3327dca4ae24590c1b3de9 | /src/topology/basic.lean | 847fed2874d0d6c405a6087ec1247762db1a3204 | [
"Apache-2.0"
] | permissive | naussicaa/mathlib | 86d05223517a39e80920549a8052f9cf0e0b77b8 | 1ef2c2df20cf45c21675d855436228c7ae02d47a | refs/heads/master | 1,592,104,950,080 | 1,562,073,069,000 | 1,562,073,069,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 37,437 | 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 topological spaces.
Parts of the formalization is based on the books:
N. Bourbaki: General Topology
I. M. James: Topologies and Uniformit... |
a43955b6f0ddc41244f786c7ac7ee0071196493b | 0ed3609caf1962115b28aeb010d2bda5f67ddc4c | /src/algebra/group_power.lean | b913b4b9abab5e0f847aad72ab4f9c6b6ee940f0 | [
"Apache-2.0"
] | permissive | jonaslippert/mathlib | 82dba29632969e3ed1c153a6454306f6bc9d9037 | 1435a196db69a7886a11e310e8923f3dcf249b81 | refs/heads/master | 1,609,938,673,069 | 1,582,018,388,000 | 1,582,018,388,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 26,718 | lean | /-
Copyright (c) 2015 Jeremy Avigad. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Jeremy Avigad, Robert Y. Lewis
The power operation on monoids and groups. We separate this from group, because it depends on
nat, which in turn depends on other parts of algebra.
We h... |
ef3178a33975a39befd0fc69337781a377732c3c | cf39355caa609c0f33405126beee2739aa3cb77e | /tests/lean/run/list_notation.lean | 6917236d74f02299a1a65c262b4797c9a4b44a1c | [
"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 | 383 | lean | open nat
#eval [1, 2, 3]
#eval to_bool $ 1 β [1, 2, 3]
#eval to_bool $ 4 β [1, 2, 3]
#eval [1, 2, 3] ++ [3, 4]
#eval 2 :: [3, 4]
#eval ([] : list nat)
#eval (β
: list nat)
#eval ({1, 3, 2, 2, 3, 1} : list nat)
#eval [1, 2, 3] βͺ [3, 4, 1, 5]
#eval [1, 2, 3] β© [3, 4, 1, 5]
#eval (*10) <$> [1, 2, 3]
#check ({1... |
9e4a9d4ed3cdbab039516454e17a1f7250cb9629 | 7cef822f3b952965621309e88eadf618da0c8ae9 | /archive/sensitivity.lean | 60a6b5d53ec07113edc1329b32b37f7e1000f102 | [
"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 | 16,693 | lean | /-
Copyright (c) 2019 Reid Barton, Johan Commelin, Jesse Han, Chris Hughes, Robert Y. Lewis, and Patrick Massot. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Reid Barton, Johan Commelin, Jesse Han, Chris Hughes, Robert Y. Lewis, and Patrick Massot
-/
import tactic.f... |
10079f507c745293ae00cb9a8573cbd296068bde | 4727251e0cd73359b15b664c3170e5d754078599 | /src/tactic/abel.lean | 55b7519164569109f3226ab76bd6e90318cb1209 | [
"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 | 16,778 | 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 tactic.norm_num
/-!
# The `abel` tactic
Evaluate expressions in the language of additive, commutative monoids and groups.
-/
namespace tactic
namespace ab... |
a496240019cc28cf1cb607ff2e73b4a6dff2dfbb | 4f643cce24b2d005aeeb5004c2316a8d6cc7f3b1 | /src/o_minimal/coordinates.lean | 35e0a839eadf4f6d10adb9db8798506ab1cfcd50 | [] | no_license | rwbarton/lean-omin | da209ed061d64db65a8f7f71f198064986f30eb9 | fd733c6d95ef6f4743aae97de5e15df79877c00e | refs/heads/master | 1,674,408,673,325 | 1,607,343,535,000 | 1,607,343,535,000 | 285,150,399 | 9 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 7,887 | lean | import data.equiv.basic
import data.fin
import for_mathlib.finvec
import for_mathlib.misc
namespace o_minimal
open function set
open_locale finvec
-- R is the type in which coordinates take values,
-- which we can imagine as being the real numbers,
-- though we do not assume anything about R.
variables (R : Type*)
... |
2dc4ec10d58a85a25f60823ee995ffb5d697519d | b7f22e51856f4989b970961f794f1c435f9b8f78 | /library/algebra/module.lean | aa46547e7a376a003a5611a4c8f6f27cd0a6a8d0 | [
"Apache-2.0"
] | permissive | soonhokong/lean | cb8aa01055ffe2af0fb99a16b4cda8463b882cd1 | 38607e3eb57f57f77c0ac114ad169e9e4262e24f | refs/heads/master | 1,611,187,284,081 | 1,450,766,737,000 | 1,476,122,547,000 | 11,513,992 | 2 | 0 | null | 1,401,763,102,000 | 1,374,182,235,000 | C++ | UTF-8 | Lean | false | false | 2,654 | lean | /-
Copyright (c) 2015 Nathaniel Thomas. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Nathaniel Thomas, Jeremy Avigad
Modules and vector spaces over a ring.
(We use "left_module," which is more precise, because "module" is a keyword.)
-/
import algebra.field
struct... |
757b16485b00b69d4045f93749ee6751dd3ed0a5 | 6432ea7a083ff6ba21ea17af9ee47b9c371760f7 | /tests/lean/run/1360.lean | f3b95a0a44b1b6da570b4262c26b87ddb6d464d7 | [
"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 | 64 | lean | example: True :=
let f: {n: Nat} β Nat
| _ => 0
trivial
|
bad95ef0ebf6fce095b3fd3fbc60bd6b6e4e3739 | 43dcf09a5df9dc4729cdc024e8680eeaacd05af3 | /rational.lean | c8b2abed8f661ec5aa4ec73edb8c1c0cf9dde3f3 | [] | no_license | khoek/lmath | f9ea911aabee1eb276a5319e70a5e62e6bfe8fb1 | a4f35205e6b5a3f16926234bf8eb7f7b5f56e47f | refs/heads/master | 1,611,452,778,710 | 1,532,531,556,000 | 1,532,569,670,000 | 122,820,532 | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 5,376 | lean | import tidy.tidy
import tactic.ring
import .number
import .binary_op
import .order
import .facts
--define pairs and the rational equality law
structure pair := mk ::
( x y : β€ )
( non_zero : y β 0)
def q_law : pair β pair β Prop := Ξ» a b : pair, a.1 * b.2 = b.1 * a.2
theorem q_refl : β ( a : pair ), q_law a a
... |
917e20bd16c89ffa4af171185700339f3756cfd5 | 63abd62053d479eae5abf4951554e1064a4c45b4 | /src/ring_theory/ideal/operations.lean | b05ce608fd5635f3603bea9f7af2fa9c3572ef67 | [
"Apache-2.0"
] | permissive | Lix0120/mathlib | 0020745240315ed0e517cbf32e738d8f9811dd80 | e14c37827456fc6707f31b4d1d16f1f3a3205e91 | refs/heads/master | 1,673,102,855,024 | 1,604,151,044,000 | 1,604,151,044,000 | 308,930,245 | 0 | 0 | Apache-2.0 | 1,604,164,710,000 | 1,604,163,547,000 | null | UTF-8 | Lean | false | false | 41,803 | lean | /-
Copyright (c) 2018 Kenny Lau. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Kenny Lau
-/
import data.nat.choose.sum
import data.equiv.ring
import algebra.algebra.operations
import ring_theory.ideal.basic
/-!
# More operations on modules and ideals
-/
universes u v ... |
e712ce4cfe7572e967d5828844ac9d1040a5f466 | 94e33a31faa76775069b071adea97e86e218a8ee | /src/data/nat/basic.lean | 673f6638a9ad009eaad7c086f7cc7155894c3184 | [
"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 | 65,410 | 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.ring
/-!
# Basic operations on the natural numbers
This fi... |
527469ddae925a05d7aa01bdbe8204e86f4b1bf0 | 0003047346476c031128723dfd16fe273c6bc605 | /src/analysis/asymptotics.lean | ecb02431eec39c633dc6d9c67980bb2d522cef96 | [
"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 | 26,152 | lean | /-
Copyright (c) 2019 Jeremy Avigad. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Author: Jeremy Avigad
We introduce these relations:
`is_O f g l` : "f is big O of g along l"
`is_o f g l` : "f is little o of g along l"
Here `l` is any filter on the domain of `f` and `g... |
d077660b40ca7dfb14ec855ee3a55a1fc44aa1e8 | 367134ba5a65885e863bdc4507601606690974c1 | /src/algebra/lie/subalgebra.lean | cac8ada9f5f8a199750d0bc7088ca6adfdb1bf36 | [
"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 | 18,197 | lean | /-
Copyright (c) 2021 Oliver Nash. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Oliver Nash
-/
import algebra.lie.basic
import ring_theory.noetherian
/-!
# Lie subalgebras
This file defines Lie subalgebras of a Lie algebra and provides basic related definitions and... |
606087423aab3e5600c64c36cb3d6cf3647122ac | ebbdcbd7ddc89a9ef7c3b397b301d5f5272a918f | /qp/p1_categories/c2_limits/s3_pullbacks.lean | 9ec1c862362da97f1dde04e96177d98def6db61a | [] | no_license | intoverflow/qvr | 34b9ef23604738381ca20b7d622fd0399d88f2dd | 0cfcd33fe4bf8d93851a00cec5bfd21e77105d74 | refs/heads/master | 1,616,591,570,371 | 1,492,575,772,000 | 1,492,575,772,000 | 80,061,627 | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 27,573 | lean | /- -----------------------------------------------------------------------
Pullbacks and pushouts.
----------------------------------------------------------------------- -/
import .s1_limits
import .s2_products
namespace qp
open stdaux
universe variables βobjx βhomx βobj βhom βobjβ βhomβ βobjβ βhomβ
/- --------... |
23a1384721181bb9b81ada0d327e4f296ead10d2 | 137c667471a40116a7afd7261f030b30180468c2 | /src/algebra/big_operators/basic.lean | a39498a6b1a7b335b2b888c3041f264898eb18d4 | [
"Apache-2.0"
] | permissive | bragadeesh153/mathlib | 46bf814cfb1eecb34b5d1549b9117dc60f657792 | b577bb2cd1f96eb47031878256856020b76f73cd | refs/heads/master | 1,687,435,188,334 | 1,626,384,207,000 | 1,626,384,207,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 59,299 | 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... |
4eed8fe74cd184133b03adcc75814d7d95b44ccd | e61a235b8468b03aee0120bf26ec615c045005d2 | /src/Init/Data/PersistentArray/Basic.lean | 435e05f079e7019b484acc881fa0ad35ddf81390 | [
"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 | 12,318 | lean | /-
Copyright (c) 2019 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Leonardo de Moura
-/
prelude
import Init.Control.Conditional
import Init.Data.Array
universes u v w
inductive PersistentArrayNode (Ξ± : Type u)
| node (cs : Array PersistentArra... |
41e0e01353b02a6da1f0de956abd683f1a5e6a73 | 74addaa0e41490cbaf2abd313a764c96df57b05d | /Mathlib/data/zmod/basic.lean | 39bc87ae5a45baba59e4c2e7c73484382f864929 | [] | 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 | 17,656 | lean | /-
Copyright (c) 2018 Chris Hughes. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Author: Chris Hughes
-/
import Mathlib.PrePort
import Mathlib.Lean3Lib.init.default
import Mathlib.data.int.modeq
import Mathlib.algebra.char_p.basic
import Mathlib.data.nat.totient
import Mathli... |
2caf95b7bebbaa540f35738e62a04c085f2a60dc | 4727251e0cd73359b15b664c3170e5d754078599 | /src/ring_theory/prime.lean | 9d37527d15d08c9b3b893764b93f1e4cb8e2d992 | [
"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 | 3,187 | 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 algebra.associated
import algebra.big_operators.basic
/-!
# Prime elements in rings
This file contains lemmas about prime elements of commutative rings.
-/
sectio... |
3290e21a4889956cb24bdf7facbf4fcdc7488f86 | b70031c8e2c5337b91d7e70f1e0c5f528f7b0e77 | /src/topology/algebra/monoid.lean | 3c0ab0a647dd1735d9a491da005b971815762d4e | [
"Apache-2.0"
] | permissive | molodiuc/mathlib | cae2ba3ef1601c1f42ca0b625c79b061b63fef5b | 98ebe5a6739fbe254f9ee9d401882d4388f91035 | refs/heads/master | 1,674,237,127,059 | 1,606,353,533,000 | 1,606,353,533,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 8,342 | 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 topology.continuous_on
import group_theory.submonoid.basic
import algebra.group.prod
import algebra.pointwise
/-!
# Theory of topological mono... |
0be67a99cc2ab0cbee953981d78217a5a3a990c5 | bbecf0f1968d1fba4124103e4f6b55251d08e9c4 | /src/linear_algebra/linear_pmap.lean | dda74f390baf4ab88f974778720c0808bf5f44b1 | [
"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 | 16,712 | lean | /-
Copyright (c) 2020 Yury Kudryashov All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Yury Kudryashov
-/
import linear_algebra.basic
import linear_algebra.prod
/-!
# Partially defined linear maps
A `linear_pmap R E F` is a linear map from a submodule of `E` to `F`. We... |
63f8887ab950d53d0baa8504dc95b0f50957969b | 9dc8cecdf3c4634764a18254e94d43da07142918 | /src/topology/algebra/order/intermediate_value.lean | ea6373adce4de35d64ac83f50d3d06cc132d80f7 | [
"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 | 31,406 | 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, Alistair Tucker
-/
import order.complete_lattice_intervals
import topology.algebra.order.basic
/-!
# Intermediate Value Theorem
In this file we prove the Inte... |
3506c78c9a2ecf44918455be07b9f9160ed4adc0 | d31b9f832ff922a603f76cf32e0f3aa822640508 | /src/hott/types/pointed.lean | 6c58c65146d8ff59dff2000ae09790856d3cafa4 | [
"Apache-2.0"
] | permissive | javra/hott3 | 6e7a9e72a991a2fae32e5764982e521dca617b16 | cd51f2ab2aa48c1246a188f9b525b30f76c3d651 | refs/heads/master | 1,585,819,679,148 | 1,531,232,382,000 | 1,536,682,965,000 | 154,294,022 | 0 | 0 | Apache-2.0 | 1,540,284,376,000 | 1,540,284,375,000 | null | UTF-8 | Lean | false | false | 49,005 | lean | /-
Copyright (c) 2014-2016 Jakob von Raumer. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Jakob von Raumer, Floris van Doorn
Early library ported from Coq HoTT, but greatly extended since.
The basic definitions are in init.pointed
See also .pointed2
-/
/-.nat.basic... |
6d01ae5316aae1d26fc7a09a8634d8dcae33b9d9 | a4673261e60b025e2c8c825dfa4ab9108246c32e | /stage0/src/Lean/Meta/Tactic/Induction.lean | d9aa61f6575b60449d3c05825a1bbcb367315940 | [
"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 | 11,602 | lean | /-
Copyright (c) 2020 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Leonardo de Moura
-/
import Lean.Meta.RecursorInfo
import Lean.Meta.SynthInstance
import Lean.Meta.Tactic.Util
import Lean.Meta.Tactic.Revert
import Lean.Meta.Tactic.Intro
impor... |
c897dc16d28cc4f950336e75a2136b2adef21195 | 86f6f4f8d827a196a32bfc646234b73328aeb306 | /examples/basics/unnamed_1639.lean | cea47d144441211d9377eec65906193d558e3fa6 | [] | no_license | jamescheuk91/mathematics_in_lean | 09f1f87d2b0dce53464ff0cbe592c568ff59cf5e | 4452499264e2975bca2f42565c0925506ba5dda3 | refs/heads/master | 1,679,716,410,967 | 1,613,957,947,000 | 1,613,957,947,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 103 | lean | import data.real.basic
-- BEGIN
#check (abs_add : β a b : β, abs (a + b) β€ abs a + abs b)
-- END |
d2e2488270fd0be49aa6d66c252af19a8abfa4ef | 4727251e0cd73359b15b664c3170e5d754078599 | /src/probability/stopping.lean | 65962981ecf2fa83ed65042a2c71941b39f96974 | [
"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 | 44,477 | lean | /-
Copyright (c) 2021 Kexing Ying. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Kexing Ying
-/
import measure_theory.constructions.borel_space
import measure_theory.function.l1_space
import measure_theory.function.strongly_measurable
import topology.instances.discret... |
ef516b98f019dcd05a9ec1b6641073521e0fa9b2 | 947b78d97130d56365ae2ec264df196ce769371a | /src/Std/Data/RBMap.lean | 192660fec7df21e672f3c7f0609a47bf97c0e629 | [
"Apache-2.0"
] | permissive | shyamalschandra/lean4 | 27044812be8698f0c79147615b1d5090b9f4b037 | 6e7a883b21eaf62831e8111b251dc9b18f40e604 | refs/heads/master | 1,671,417,126,371 | 1,601,859,995,000 | 1,601,860,020,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 12,158 | lean | /-
Copyright (c) 2017 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Leonardo de Moura
-/
namespace Std
universes u v w w'
inductive Rbcolor
| red | black
inductive RBNode (Ξ± : Type u) (Ξ² : Ξ± β Type v)
| leaf ... |
e842663a21c9fc6487c30ef74bba414ff2a31753 | 3ed5a65c1ab3ce5d1a094edce8fa3287980f197b | /src/herstein/ex2_5/Q_24.lean | 34b74d6d63652f790de11bc2b03b535b415176c1 | [] | no_license | group-study-group/herstein | 35d32e77158efa2cc303c84e1ee5e3bc80831137 | f5a1a72eb56fa19c19ece0cb3ab6cf7ffd161f66 | refs/heads/master | 1,586,202,191,519 | 1,548,969,759,000 | 1,548,969,759,000 | 157,746,953 | 0 | 0 | null | 1,542,412,901,000 | 1,542,302,366,000 | Lean | UTF-8 | Lean | false | false | 1,728 | lean | import algebra.group algebra.group_power
variables {G: Type*} (a b : G)
theorem Q_24 [group G] (H1 : β a b : G, (a * b)^3 = a^3 * b^3) (H2 : β x : G, x^3 = 1 β x = 1) :
β a b : G, a * b = b * a :=
Ξ» a b : G,
have Lem1 : β x y : G, (y * x)^2 = x^2 * y^2, from
Ξ» x y : G,
have H10 : (a * b) * (a * b) * (a *... |
b631fd4e661e0f9e1074d032c59aff3514f593f0 | 367134ba5a65885e863bdc4507601606690974c1 | /src/algebra/category/Group/images.lean | 649e458a81b81ad3781bb3a7d91cf03bc8b7a117 | [
"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 | 3,297 | lean | /-
Copyright (c) 2020 Scott Morrison. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Scott Morrison
-/
import algebra.category.Group.abelian
import category_theory.limits.shapes.images
import category_theory.limits.types
/-!
# The category of commutative additive grou... |
35b3dc03375d10606327c3a3e0134975cc5cc29c | 57aec6ee746bc7e3a3dd5e767e53bd95beb82f6d | /src/Lean/Data/SMap.lean | 07021ca686dc5a75b7a5ac0dc12e8a72a246c0ff | [
"Apache-2.0"
] | permissive | collares/lean4 | 861a9269c4592bce49b71059e232ff0bfe4594cc | 52a4f535d853a2c7c7eea5fee8a4fa04c682c1ee | refs/heads/master | 1,691,419,031,324 | 1,618,678,138,000 | 1,618,678,138,000 | 358,989,750 | 0 | 0 | Apache-2.0 | 1,618,696,333,000 | 1,618,696,333,000 | null | UTF-8 | Lean | false | false | 3,710 | 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 Std.Data.HashMap
import Std.Data.PersistentHashMap
universes u v w w'
namespace Lean
open Std (HashMap PHashMap)
/- Staged map for implementing th... |
3cbfdbf759caf1f3cfc6646800bd55806a0f4263 | 74addaa0e41490cbaf2abd313a764c96df57b05d | /Mathlib/tactic/omega/find_scalars.lean | 8b96215763e2460fe388ab4651a13afcbe9a05eb | [] | 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 | 607 | lean | /-
Copyright (c) 2019 Seul Baek. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Author: Seul Baek
-/
import Mathlib.PrePort
import Mathlib.Lean3Lib.init.default
import Mathlib.tactic.omega.term
import Mathlib.data.list.min_max
import Mathlib.PostPort
namespace Mathlib
/-
Tact... |
a0ee72e9b0d84e9a708a7f59d0aba0efc84c6b38 | f618aea02cb4104ad34ecf3b9713065cc0d06103 | /src/topology/instances/real.lean | 1099fa5c600d16ed58802acf100da220645d2007 | [
"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 | 19,045 | 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
The real numbers β.
They are constructed as the topological completion of β. With the following steps:
(1) prove that β forms a uniform space.
(2) subt... |
753236e077238dc7da195f6a2e8fba5935709831 | ce6917c5bacabee346655160b74a307b4a5ab620 | /src/ch3/ex0209.lean | 6480894a5913f9012f2745de5b92f00077131850 | [] | 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 | 86 | lean | theorem t1 : β (p q : Prop), p β q β p := Ξ» (p q : Prop) (hp : p) (hq : q), hp
|
3b3fdca2eadc6efbfbe8439627f9951850212bc9 | 92b50235facfbc08dfe7f334827d47281471333b | /hott/hit/two_quotient.hlean | b44a5ee944e2199ff13e59952c4acd3877038c04 | [
"Apache-2.0"
] | permissive | htzh/lean | 24f6ed7510ab637379ec31af406d12584d31792c | d70c79f4e30aafecdfc4a60b5d3512199200ab6e | refs/heads/master | 1,607,677,731,270 | 1,437,089,952,000 | 1,437,089,952,000 | 37,078,816 | 0 | 0 | null | 1,433,780,956,000 | 1,433,780,955,000 | null | UTF-8 | Lean | false | false | 14,333 | 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 hit.circle types.eq2 algebra.e_closure
open quotient eq circle sum sigma equiv function relation
namespace simple_two_quotient
section
parameters ... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.