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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
3a34f78ed6724b8d8beb17b8313c053defbca70d | cf39355caa609c0f33405126beee2739aa3cb77e | /tests/lean/combinators1.lean | 5cf58034b5aa0c76dfbf05d4aad171ae8cfe38ef | [
"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 | 492 | lean | open tactic
example (p q : Prop) : p → q → (p ∧ p) ∧ q :=
by do
intros, constructor, focus [trace "first goal" >> trace_state >> constructor >> skip, trace "--- Second goal: " >> trace_state >> assumption],
trace "--- After", trace_state,
solve [trace "should not work", assumption],
first [trace "should not wo... |
7d1c3a3511b2dd99a003f4c926bcf889841c515e | 8cae430f0a71442d02dbb1cbb14073b31048e4b0 | /src/topology/continuous_function/t0_sierpinski.lean | 5c8bf236ec1460a511a532a314303265e42043a7 | [
"Apache-2.0"
] | permissive | leanprover-community/mathlib | 56a2cadd17ac88caf4ece0a775932fa26327ba0e | 442a83d738cb208d3600056c489be16900ba701d | refs/heads/master | 1,693,584,102,358 | 1,693,471,902,000 | 1,693,471,902,000 | 97,922,418 | 1,595 | 352 | Apache-2.0 | 1,694,693,445,000 | 1,500,624,130,000 | Lean | UTF-8 | Lean | false | false | 2,422 | lean | /-
Copyright (c) 2022 Ivan Sadofschi Costa. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Ivan Sadofschi Costa
-/
import topology.order
import topology.sets.opens
import topology.continuous_function.basic
/-!
# Any T0 space embeds in a product of copies of the Sierpi... |
ecba9026d21b2846e27b0ea43882c84c0a18c5a7 | 74addaa0e41490cbaf2abd313a764c96df57b05d | /Mathlib/analysis/complex/polynomial_auto.lean | e3290b139b96d85b09573e12c7cfac0a480ea529 | [] | 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 | 865 | 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 Mathlib.PrePort
import Mathlib.Lean3Lib.init.default
import Mathlib.topology.algebra.polynomial
import Mathlib.analysis.special_functions.pow
import Mathlib.PostPor... |
df0535564d1be08318aaf594d52485b1a34e41de | 8cae430f0a71442d02dbb1cbb14073b31048e4b0 | /src/topology/bornology/basic.lean | 6d518439fe5318e034cce6d4d431a2c831ed22a1 | [
"Apache-2.0"
] | permissive | leanprover-community/mathlib | 56a2cadd17ac88caf4ece0a775932fa26327ba0e | 442a83d738cb208d3600056c489be16900ba701d | refs/heads/master | 1,693,584,102,358 | 1,693,471,902,000 | 1,693,471,902,000 | 97,922,418 | 1,595 | 352 | Apache-2.0 | 1,694,693,445,000 | 1,500,624,130,000 | Lean | UTF-8 | Lean | false | false | 10,204 | lean | /-
Copyright (c) 2022 Jireh Loreaux. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Jireh Loreaux
-/
import order.filter.cofinite
/-!
# Basic theory of bornology
> THIS FILE IS SYNCHRONIZED WITH MATHLIB4.
> Any changes to this file require a corresponding PR to mathl... |
ba2540cb7837e258870ec898e43760cd60df1e3e | 76ce87faa6bc3c2aa9af5962009e01e04f2a074a | /04_Implication/00_intro.lean | 0057f157f73e4d5d80afe34375c7333d935755ee | [] | no_license | Mnormansell/Discrete-Notes | db423dd9206bbe7080aecb84b4c2d275b758af97 | 61f13b98be590269fc4822be7b47924a6ddc1261 | refs/heads/master | 1,585,412,435,424 | 1,540,919,483,000 | 1,540,919,483,000 | 148,684,638 | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 10,570 | lean | /-
Given any two propositions, P and Q, we can form
the proposition, P → Q. That is the syntax of an
implications.
If P and Q are propositions, we read P → Q as
P implies Q. A proof of a proposition, P → Q,
is a program that that converts any proof of P
into a proof of Q. The type of such a program
is P → Q.
-/
... |
6e14eb40a76262ea464ee8bb8c3769f22f146c7b | dd4e652c749fea9ac77e404005cb3470e5f75469 | /src/missing_mathlib/algebra/group_power.lean | 7f85cbb3613536084d3e3f9e8c78f93e6eae4f4f | [] | 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 | 479 | lean | import algebra.group_power
universes u v
variable {α : Type u}
/- monoid -/
section monoid
variables [monoid α] {β : Type u} [add_monoid β]
lemma pow_eq_mul_pow_sub {α : Type*} [monoid α] (p : α) {m n : ℕ} (h : m ≤ n) : p ^ m * p ^ (n - m) = p ^ n :=
by rw [←pow_add, nat.add_sub_cancel' h]
lemma pow_eq_pow_sub_mul... |
ad1c3e8394b33b23712e865c8e016332f3c7054a | 8cae430f0a71442d02dbb1cbb14073b31048e4b0 | /src/order/countable_dense_linear_order.lean | f5deec2b668fb1a3209bfc197886098b1609c5fc | [
"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,929 | lean | /-
Copyright (c) 2020 David Wärn. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: David Wärn
-/
import order.ideal
import data.finset.lattice
/-!
# The back and forth method and countable dense linear orders
> THIS FILE IS SYNCHRONIZED WITH MATHLIB4.
> Any changes to ... |
245bc46f2a5fb132d2fcb65d1159fcb82426dc71 | 7cef822f3b952965621309e88eadf618da0c8ae9 | /src/algebra/category/Module/basic.lean | 1560683c195cb171c46f3758287936ca9de996c2 | [
"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 | 1,705 | lean | /-
Copyright (c) 2019 Robert A. Spencer. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Robert A. Spencer
-/
import algebra.module
import algebra.punit_instances
import category_theory.concrete_category
import linear_algebra.basic
open category_theory
universe u
vari... |
16f3c03ce0ef15f5250d61e708809e4aa73ac282 | 302c785c90d40ad3d6be43d33bc6a558354cc2cf | /src/group_theory/order_of_element.lean | 59774cf908312958cc5c2f1b2f91a7f47c6174cd | [
"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 | 46,937 | 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, Julian Kuelshammer
-/
import algebra.big_operators.order
import group_theory.coset
import data.nat.totient
import data.int.gcd
import data.set.finite
/-!
# Order of an... |
5c46cc4b5efeb17cde12176c9b7519dc6453111b | e6b8240a90527fd55d42d0ec6649253d5d0bd414 | /src/tactic/localized.lean | 5878b9e6865c78b9ec543215c27fe84dccdb9a2e | [
"Apache-2.0"
] | permissive | mattearnshaw/mathlib | ac90f9fb8168aa642223bea3ffd0286b0cfde44f | d8dc1445cf8a8c74f8df60b9f7a1f5cf10946666 | refs/heads/master | 1,606,308,351,137 | 1,576,594,130,000 | 1,576,594,130,000 | 228,666,195 | 0 | 0 | Apache-2.0 | 1,576,603,094,000 | 1,576,603,093,000 | null | UTF-8 | Lean | false | false | 3,431 | lean | /-
Copyright (c) 2019 Floris van Doorn. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Floris van Doorn
-/
import tactic.core meta.rb_map
/-!
# Localized notation
This consists of two user-commands which allow you to declare notation and commands localized to a name... |
2f1eaede6a23f6fb474596b76dbdc35262c58e42 | 969dbdfed67fda40a6f5a2b4f8c4a3c7dc01e0fb | /src/tactic/explode_widget.lean | 563f6af40e538ceb2a98c2896a1ec8dbb9cd07c6 | [
"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 | 10,210 | lean | /-
Copyright (c) 2020 Minchao Wu. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Author: 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 ... |
83a17daaca34a4a71a2fd4342de41f24f60abdf2 | a4673261e60b025e2c8c825dfa4ab9108246c32e | /src/Init/System/FilePath.lean | d6214a5fce01a2e60300685eb67474ad86932540 | [
"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 | 1,764 | 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.System.Platform
import Init.Data.String.Basic
namespace System
namespace FilePath
open Platform
/-- The character that separates direc... |
ebfc5af1fe06be570d1226ad360c13682edbe595 | 4d2583807a5ac6caaffd3d7a5f646d61ca85d532 | /src/analysis/special_functions/trigonometric/basic.lean | cbed8ed5b303c007f6f8d2bc85122173b4a27b10 | [
"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 | 41,933 | 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, Benjamin Davidson
-/
import analysis.special_functions.exp
import data.set.intervals.infinite
/-!
# Trigonometric functions... |
1fae6226f40f7d19e5c5414ae5ba6bf365878535 | 8cae430f0a71442d02dbb1cbb14073b31048e4b0 | /src/logic/small/list.lean | 22c0c647cb521e249040d54eccb84d5a09ea73bb | [
"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 | 946 | 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 data.vector.basic
/-!
# Instances for `small (list α)` and `small (vector α)`.
> THIS FILE IS SYNCHRONIZED WITH MATHLIB4.
> Any chan... |
5c3ff48ca64b552fc8165bfd62635de990eebc4f | 94e33a31faa76775069b071adea97e86e218a8ee | /src/field_theory/finite/galois_field.lean | b0ef45bbc4bb8d8c804faa442daacacc84f1165e | [
"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 | 8,526 | lean | /-
Copyright (c) 2021 Johan Commelin. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Aaron Anderson, Alex J. Best, Johan Commelin, Eric Rodriguez, Ruben Van de Velde
-/
import algebra.char_p.algebra
import field_theory.finite.basic
import field_theory.galois
/-!
# Ga... |
bb811dd8a9a75336d7013b924ad2cf00780b6651 | e953c38599905267210b87fb5d82dcc3e52a4214 | /library/data/pnat.lean | 0276fa59411316dece4a07b50e85216cb6b717b4 | [
"Apache-2.0"
] | permissive | c-cube/lean | 563c1020bff98441c4f8ba60111fef6f6b46e31b | 0fb52a9a139f720be418dafac35104468e293b66 | refs/heads/master | 1,610,753,294,113 | 1,440,451,356,000 | 1,440,499,588,000 | 41,748,334 | 0 | 0 | null | 1,441,122,656,000 | 1,441,122,656,000 | null | UTF-8 | Lean | false | false | 10,338 | lean | /-
Copyright (c) 2015 Robert Y. Lewis. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Author: Robert Y. Lewis
Basic facts about the positive natural numbers.
Developed primarily for use in the construction of ℝ. For the most part, the only theorems here
are those needed for t... |
31c42d7d9503e0b24d57aa767483a2e77f1ac96b | 5d166a16ae129621cb54ca9dde86c275d7d2b483 | /library/init/meta/ref.lean | d58a8b8aa86e821e8782b75777b0ca4145df9a18 | [
"Apache-2.0"
] | permissive | jcarlson23/lean | b00098763291397e0ac76b37a2dd96bc013bd247 | 8de88701247f54d325edd46c0eed57aeacb64baf | refs/heads/master | 1,611,571,813,719 | 1,497,020,963,000 | 1,497,021,515,000 | 93,882,536 | 1 | 0 | null | 1,497,029,896,000 | 1,497,029,896,000 | null | UTF-8 | Lean | false | false | 713 | lean | /-
Copyright (c) 2017 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Leonardo de Moura
-/
prelude
import init.meta.tactic
universes u v
namespace tactic
meta constant ref (α : Type u) : Type u
/- Create a new reference `r` with initial value `a`... |
c46ac88c0f52085adf9d6cc8a6059e8505bdf077 | a7eef317ddec01b9fc6cfbb876fe7ac00f205ac7 | /src/linear_algebra/multilinear.lean | 83b3225dd9dc5c872c51a5996bcfe73867f19696 | [
"Apache-2.0"
] | permissive | kmill/mathlib | ea5a007b67ae4e9e18dd50d31d8aa60f650425ee | 1a419a9fea7b959317eddd556e1bb9639f4dcc05 | refs/heads/master | 1,668,578,197,719 | 1,593,629,163,000 | 1,593,629,163,000 | 276,482,939 | 0 | 0 | null | 1,593,637,960,000 | 1,593,637,959,000 | null | UTF-8 | Lean | false | false | 33,815 | lean | /-
Copyright (c) 2020 Sébastien Gouëzel. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Sébastien Gouëzel
-/
import linear_algebra.basic
import tactic.omega
import data.fintype.card
/-!
# Multilinear maps
We define multilinear maps as maps from `Π(i : ι), M₁ i` to `M... |
c23b1a88e4c78575f1fab88dd7ffb2996a7945ad | 6432ea7a083ff6ba21ea17af9ee47b9c371760f7 | /src/Lean/Compiler/LCNF/ConfigOptions.lean | c478c03e78036f2e9bfca92e8531e16d605a3e88 | [
"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,395 | lean | /-
Copyright (c) 2022 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Leonardo de Moura
-/
import Lean.Data.Options
namespace Lean.Compiler.LCNF
/--
User controlled configuration options for the code generator.
-/
structure ConfigOptions where
... |
08aa64f226fce16c3a8829d80ede3d24b0b4a4b2 | 69d4931b605e11ca61881fc4f66db50a0a875e39 | /src/order/liminf_limsup.lean | f2475a1418838afa3469ed9d741ea0b53a168514 | [
"Apache-2.0"
] | permissive | abentkamp/mathlib | d9a75d291ec09f4637b0f30cc3880ffb07549ee5 | 5360e476391508e092b5a1e5210bd0ed22dc0755 | refs/heads/master | 1,682,382,954,948 | 1,622,106,077,000 | 1,622,106,077,000 | 149,285,665 | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 23,266 | lean | /-
Copyright (c) 2018 Sébastien Gouëzel. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Sébastien Gouëzel, Johannes Hölzl, Rémy Degenne
-/
import order.filter.partial
import order.filter.at_top_bot
/-!
# liminfs and limsups of functions and filters
Defines the Liminf... |
acb3a10638c712cac90727337febad131f3db1c2 | 74addaa0e41490cbaf2abd313a764c96df57b05d | /Mathlib/topology/extend_from_subset.lean | 3e024360c584ddf17c9670b9595559e830608dc0 | [] | 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,370 | lean | /-
Copyright (c) 2020 Anatole Dedecker. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Patrick Massot, Anatole Dedecker
-/
import Mathlib.PrePort
import Mathlib.Lean3Lib.init.default
import Mathlib.topology.separation
import Mathlib.PostPort
universes u_2 u_1
namesp... |
e0e9e75621f6af37a9e69c8c64fb96c3db23503e | 9dc8cecdf3c4634764a18254e94d43da07142918 | /src/representation_theory/group_cohomology_resolution.lean | 0c953185cae1c4e5df693bf8c8acd9a3efa34bec | [
"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 | 10,229 | lean | /-
Copyright (c) 2022 Amelia Livingston. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Amelia Livingston
-/
import representation_theory.Rep
import representation_theory.basic
/-!
# The structure of the `k[G]`-module `k[Gⁿ]`
This file contains facts about an importa... |
614839e5dd3d64850a0932ff9b6fce5871cec69a | 8e31b9e0d8cec76b5aa1e60a240bbd557d01047c | /scratch/polyhedra.lean | 6793c32454ef00fba688b541bbf6ba709bf686ba | [] | no_license | ChrisHughes24/LP | 7bdd62cb648461c67246457f3ddcb9518226dd49 | e3ed64c2d1f642696104584e74ae7226d8e916de | refs/heads/master | 1,685,642,642,858 | 1,578,070,602,000 | 1,578,070,602,000 | 195,268,102 | 4 | 3 | null | 1,569,229,518,000 | 1,562,255,287,000 | Lean | UTF-8 | Lean | false | false | 2,094 | lean | import .misc data.matrix .simplex tactic.fin_cases linear_algebra.matrix
#eval (encodable.choose)
import linear_algebra.dimension data.finsupp
#print prod.map
universes u v w
variables {m n k : Type u} [fintype m] [fintype n] [fintype k]
variables {one : Type u} [unique one]
variables {R : Type*} [discrete_linear_or... |
5bd71cc07491b5230430497bdebdc4e544b521dc | b9a81ebb9de684db509231c4469a7d2c88915808 | /src/super/demod.lean | 258ef8338fcabc51faa5a50a51e4571826eea309 | [] | no_license | leanprover/super | 3dd81ce8d9ac3cba20bce55e84833fadb2f5716e | 47b107b4cec8f3b41d72daba9cbda2f9d54025de | refs/heads/master | 1,678,482,996,979 | 1,676,526,367,000 | 1,676,526,367,000 | 92,215,900 | 12 | 6 | null | 1,513,327,539,000 | 1,495,570,640,000 | Lean | UTF-8 | Lean | false | false | 2,170 | lean | /-
Copyright (c) 2017 Gabriel Ebner. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Gabriel Ebner
-/
import .superposition
open tactic monad expr
namespace super
meta def is_demodulator (c : clause) : bool :=
match c.get_lits with
| [clause.literal.right eqn] := eqn.... |
e56e51df072d8af1bc3e05fab21338dfd8b221d9 | b9a81ebb9de684db509231c4469a7d2c88915808 | /test/cdcl_examples.lean | d4f46b82740c6d565eb1fa68078155eac44659fa | [] | no_license | leanprover/super | 3dd81ce8d9ac3cba20bce55e84833fadb2f5716e | 47b107b4cec8f3b41d72daba9cbda2f9d54025de | refs/heads/master | 1,678,482,996,979 | 1,676,526,367,000 | 1,676,526,367,000 | 92,215,900 | 12 | 6 | null | 1,513,327,539,000 | 1,495,570,640,000 | Lean | UTF-8 | Lean | false | false | 698 | lean | import super.cdcl
example {a} : a → ¬a → false := by cdcl
example {a} : a ∨ ¬a := by cdcl
example {a b} : a → (a → b) → b := by cdcl
example {a b c} : (a → b) → (¬a → b) → (b → c) → b ∧ c := by cdcl
open tactic
private meta def lit_unification : tactic unit :=
do ls ← local_context, first $ do l ← ls, [do apply l, a... |
621963a9dc80890cbe3317fbe58dfb4a53cac8fc | 0d7f5899c0475f9e105a439896d9377f80c0d7c3 | /src/forget.lean | 61cc6c16fab419bcff0076887ba5ca90b2c83ac1 | [] | no_license | adamtopaz/UnivAlg | 127038f320e68cdf3efcd0c084c9af02fdb8da3d | 2458d47a6e4fd0525e3a25b07cb7dd518ac173ef | refs/heads/master | 1,670,320,985,286 | 1,597,350,882,000 | 1,597,350,882,000 | 280,585,500 | 4 | 0 | null | 1,597,350,883,000 | 1,595,048,527,000 | Lean | UTF-8 | Lean | false | false | 758 | lean | import .ualg
import .lang
class compat {L1 : lang} {L2 : lang} (ι : L1 →# L2) (A : Type*) [has_app L2 A] extends has_app L1 A :=
(compat {n} {t : L1 n} {as : ftuple A n} : applyo t as = applyo (ι t) as)
namespace lang_hom
def forget_along {L1 : lang} {L2 : lang} (ι : L1 →# L2) (A : Type*) [has_app L2 A] : compat ι A... |
457d1ad98394e2f629e56b05c17f9477cc64390d | 74addaa0e41490cbaf2abd313a764c96df57b05d | /Mathlib/computability/language.lean | 77e72dfdc92255527fe412b51ba525fc142f6e28 | [] | 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,323 | 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 Mathlib.PrePort
import Mathlib.Lean3Lib.init.default
import Mathlib.data.finset.basic
import Mathlib.PostPort
universes u_1 u v
namespace Mathlib
/-!
# Language... |
c2244eaa0ca4b04f3ab38059754f3fb4b4e0734f | d406927ab5617694ec9ea7001f101b7c9e3d9702 | /src/combinatorics/quiver/path.lean | bbfec5111694a0495d5901a9c5c3d1dcbc3b2d59 | [
"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,150 | lean | /-
Copyright (c) 2021 David Wärn,. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: David Wärn, Scott Morrison
-/
import combinatorics.quiver.basic
import logic.lemmas
/-!
# Paths in quivers
> THIS FILE IS SYNCHRONIZED WITH MATHLIB4.
> https://github.com/leanprover-com... |
bbccf3a2f6fd758474042addda73672b6cb38856 | 432d948a4d3d242fdfb44b81c9e1b1baacd58617 | /src/data/complex/module.lean | da3c22e4813d3994c8c3769519557b86f56824d8 | [
"Apache-2.0"
] | permissive | JLimperg/aesop3 | 306cc6570c556568897ed2e508c8869667252e8a | a4a116f650cc7403428e72bd2e2c4cda300fe03f | refs/heads/master | 1,682,884,916,368 | 1,620,320,033,000 | 1,620,320,033,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 7,551 | lean | /-
Copyright (c) 2020 Alexander Bentkamp, Sébastien Gouëzel. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Alexander Bentkamp, Sébastien Gouëzel
-/
import data.complex.basic
import algebra.algebra.ordered
import data.matrix.notation
import field_theory.tower
import li... |
1ee9b5aed62fcd55dbe0118c4b0c9a0a8fcfa010 | 63abd62053d479eae5abf4951554e1064a4c45b4 | /src/order/galois_connection.lean | 9d950a5b4583640c4550287ccaf5a5f8db63b102 | [
"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 | 25,293 | lean | /-
Copyright (c) 2017 Johannes Hölzl. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Author: Johannes Hölzl
-/
import order.complete_lattice
import order.rel_iso
/-!
# Galois connections, insertions and coinsertions
Galois connections are order theoretic adjoints, i.e. a pair ... |
09baf24eb8e439d53ab9948e7d7a51a683f90b43 | 5ae26df177f810c5006841e9c73dc56e01b978d7 | /src/order/liminf_limsup.lean | fe9695149baaab7cef336f62c8c17a10f6ee7345 | [
"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 | 16,581 | lean | /-
Copyright (c) 2018 Sébastien Gouëzel. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Sébastien Gouëzel, Johannes Hölzl
Defines the Liminf/Limsup of a function taking values in a conditionally complete lattice, with
respect to an arbitrary filter.
We define `f.Lims... |
36530b7828ed1451f0d84695a7cc03dbbc281ab8 | 4bcaca5dc83d49803f72b7b5920b75b6e7d9de2d | /stage0/src/Lean/Elab/BuiltinNotation.lean | f9018b826d9b6d376752c1d32cd11f81392ce45a | [
"Apache-2.0"
] | permissive | subfish-zhou/leanprover-zh_CN.github.io | 30b9fba9bd790720bd95764e61ae796697d2f603 | 8b2985d4a3d458ceda9361ac454c28168d920d3f | refs/heads/master | 1,689,709,967,820 | 1,632,503,056,000 | 1,632,503,056,000 | 409,962,097 | 1 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 13,812 | 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 Init.Data.ToString
import Lean.Compiler.BorrowedAnnotation
import Lean.Meta.KAbstract
import Lean.Meta.Transform
import Lean.Elab.Term
import Lean.El... |
93aaabac4f1b6006dfb1ad7d897aa4df25a3fe1c | 4d2583807a5ac6caaffd3d7a5f646d61ca85d532 | /src/algebra/iterate_hom.lean | d7ee7dfe9d699f65439be0706595daabaab24372 | [
"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 | 5,471 | 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 algebra.group_power.basic
import logic.function.iterate
import group_theory.perm.basic
/-!
# Iterates of monoid and ring homomorphisms
Iterate of a monoid... |
dfda8106aa0ff8199d8a8849a2351ec0aec0aaa9 | 8930e38ac0fae2e5e55c28d0577a8e44e2639a6d | /analysis/topology/topological_space.lean | e2a0ae1d52dae27d21f17d8b1fb966af10af2d37 | [
"Apache-2.0"
] | permissive | SG4316/mathlib | 3d64035d02a97f8556ad9ff249a81a0a51a3321a | a7846022507b531a8ab53b8af8a91953fceafd3a | refs/heads/master | 1,584,869,960,527 | 1,530,718,645,000 | 1,530,724,110,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 56,082 | 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... |
f968641aee3348c8b10a5ad8865f3b96b8834a43 | 57c233acf9386e610d99ed20ef139c5f97504ba3 | /src/analysis/complex/upper_half_plane.lean | 707bcba0f7bf9d34618d1e1ccf1aa3525a6f2c8e | [
"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 | 5,009 | 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 linear_algebra.special_linear_group
import analysis.complex.basic
import group_theory.gr... |
bf6b6dc39657fe127ab65aa3b1821eeb475677e6 | 40ad357bbd0d327dd1e3e7f7beb868bd4e5b0a9d | /src/temporal_logic/refinement/one_to_one.lean | 08a48d34c17946aee80b17a8ea3ec11963aa6ad1 | [] | no_license | unitb/temporal-logic | 9966424f015976d5997a9ffa30cbd77cc3a9cb1c | accec04d1b09ca841be065511c9e206b725b16e9 | refs/heads/master | 1,633,868,382,769 | 1,541,072,223,000 | 1,541,072,223,000 | 114,790,987 | 5 | 3 | null | null | null | null | UTF-8 | Lean | false | false | 14,667 | lean | import .simulation
import ..scheduling
import ..spec
universe variables u u₀ u₁ u₂
open predicate nat
local infix ` ≃ `:75 := v_eq
local prefix `♯ `:0 := cast (by simp)
namespace temporal
namespace one_to_one
section
open fairness
parameters {α : Type u} {β : Type u₀} {γ : Type u₁ }
parameters {evt : Type u₂}
param... |
3a47f42aa617d154c52446cbf91c021a2c6aad2e | 05f637fa14ac28031cb1ea92086a0f4eb23ff2b1 | /tests/lean/exists4.lean | a1dbeb15f74f377fe615230183633c7e72642c99 | [
"Apache-2.0"
] | permissive | codyroux/lean0.1 | 1ce92751d664aacff0529e139083304a7bbc8a71 | 0dc6fb974aa85ed6f305a2f4b10a53a44ee5f0ef | refs/heads/master | 1,610,830,535,062 | 1,402,150,480,000 | 1,402,150,480,000 | 19,588,851 | 2 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 664 | lean | variable N : Type
variables a b c : N
variables P : N -> N -> N -> Bool
axiom H3 : P a b c
theorem T1 : exists x y z : N, P x y z := @exists_intro N (fun x : N, exists y z : N, P x y z) a
(@exists_intro N _ b
(@exists_intro ... |
6d0b5bc9bb78fef5c8369d41eea8678ea2eb31d5 | 4efff1f47634ff19e2f786deadd394270a59ecd2 | /src/ring_theory/polynomial/basic.lean | b9aa05f7fcaee7543b675fec32b0fd09d7bf4f1c | [
"Apache-2.0"
] | permissive | agjftucker/mathlib | d634cd0d5256b6325e3c55bb7fb2403548371707 | 87fe50de17b00af533f72a102d0adefe4a2285e8 | refs/heads/master | 1,625,378,131,941 | 1,599,166,526,000 | 1,599,166,526,000 | 160,748,509 | 0 | 0 | Apache-2.0 | 1,544,141,789,000 | 1,544,141,789,000 | null | UTF-8 | Lean | false | false | 23,561 | lean | /-
Copyright (c) 2019 Kenny Lau. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Kenny Lau
Ring-theoretic supplement of data.polynomial.
Main result: Hilbert basis theorem, that if a ring is noetherian then so is its polynomial ring.
-/
import algebra.char_p
import da... |
a57a6d753a9c0eba4669ea7fa98aca7668ea9c8c | 7cef822f3b952965621309e88eadf618da0c8ae9 | /src/group_theory/abelianization.lean | 3723138221d97da631ea68edc41be3b4e36fed5e | [
"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 | 1,882 | lean | /-
Copyright (c) 2018 Kenny Lau. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Kenny Lau, Michael Howes
The functor Grp → Ab which is the left adjoint
of the forgetful functor Ab → Grp.
-/
import group_theory.quotient_group
universes u v
variables (α : Type u) [g... |
aeba15afe125edc1d2b4bd779698aaf5462c4438 | fb4c13c9b8a3d8624041a268d2d3348d53c1aecb | /library/standard/list.lean | 2ccd8a946e1193449012734433010cad3c5008d2 | [
"Apache-2.0"
] | permissive | avigad/libraries | 90f149eedb7f621b7af5bd469f0b4869f1bc35c5 | 1a21725f97d83ae7531eaeb38d175bad8c0f1d89 | refs/heads/master | 1,610,958,129,193 | 1,405,610,493,000 | 1,405,610,493,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 28,915 | lean | ----------------------------------------------------------------------------------------------------
--- Copyright (c) 2014 Parikshit Khanna. All rights reserved.
--- Released under Apache 2.0 license as described in the file LICENSE.
--- Author: Parikshit Khanna, Jeremy Avigad
-----------------------------------------... |
25f380c3aab180f5474803b81b4471ead5721010 | ba4b63fe3410ccb8e043a57aa024ac63bf06961c | /src/norms.lean | 671ce309d9561dd019f813599683837cfa059d78 | [] | no_license | digama0/lean-scratchpad | f30cd665037c226b63ef9933c8fa83e8770f7909 | fe7d6261d60769328e091a37dff7d456c57366b7 | refs/heads/master | 1,583,695,343,314 | 1,522,993,425,000 | 1,522,993,425,000 | 128,350,243 | 0 | 0 | null | 1,522,993,456,000 | 1,522,993,456,000 | null | UTF-8 | Lean | false | false | 6,722 | lean | -- The following line is here only to get mathlib tactics, there must be a better way
import algebra.group_power
noncomputable theory
local attribute [instance] classical.prop_decidable
open list
variables {α β : Type} [group α] [group β] {a b g h : α}
local attribute [simp] mul_assoc
-- Group morphisms
---------... |
bd829ba8c2fb8e2959f006dc37b6fe7aa2273c0e | e0f9ba56b7fedc16ef8697f6caeef5898b435143 | /test/ring.lean | 70d52ca506cea757eb6aa628b57bb43ca015ba8a | [
"Apache-2.0"
] | permissive | anrddh/mathlib | 6a374da53c7e3a35cb0298b0cd67824efef362b4 | a4266a01d2dcb10de19369307c986d038c7bb6a6 | refs/heads/master | 1,656,710,827,909 | 1,589,560,456,000 | 1,589,560,456,000 | 264,271,800 | 0 | 0 | Apache-2.0 | 1,589,568,062,000 | 1,589,568,061,000 | null | UTF-8 | Lean | false | false | 2,004 | lean | import tactic.ring data.real.basic
example (x y : ℕ) : x + y = y + x := by ring
example (x y : ℕ) : x + y + y = 2 * y + x := by ring
example (x y : ℕ) : x + id y = y + id x := by ring!
example {α} [comm_ring α] (x y : α) : x + y + y - x = 2 * y := by ring
example (x y : ℚ) : x / 2 + x / 2 = x := by ring
example (x y :... |
d335fa61d8d53186f36ccf2a2e8aa1a6b9cd6e46 | acc85b4be2c618b11fc7cb3005521ae6858a8d07 | /order/bounded_lattice.lean | 68f83050b83f270a8d780002a2a4a5bb0ab5aa1b | [
"Apache-2.0"
] | permissive | linpingchuan/mathlib | d49990b236574df2a45d9919ba43c923f693d341 | 5ad8020f67eb13896a41cc7691d072c9331b1f76 | refs/heads/master | 1,626,019,377,808 | 1,508,048,784,000 | 1,508,048,784,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 3,075 | 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 bounded lattice type class hierarchy.
Includes the Prop and fun instances.
-/
import order.lattice
set_option old_structure_cmd true
universes u v
variable ... |
a157f1c6cb66215845d6b269e5987e997eafeacf | 74addaa0e41490cbaf2abd313a764c96df57b05d | /Mathlib/ring_theory/integral_domain.lean | 61095b3bf2f57b2fc6f6b99d0667d68f76d66c8a | [] | 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,455 | 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 Mathlib.PrePort
import Mathlib.Lean3Lib.init.default
import Mathlib.data.fintype.card
import Mathlib.data.polynomial.ring_division
import Mathlib... |
f2e74aa0f71a24eb2d549fecb0d8045ea91e52b1 | 94e33a31faa76775069b071adea97e86e218a8ee | /src/tactic/lint/type_classes.lean | e9b3ca7ecae7cd081046a91c198732a298fb3bef | [
"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 | 24,433 | 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 data.bool.basic
import meta.rb_map
import tactic.lint.basic
/-!
# Linters about type classes
This file defines several li... |
3515cc9c9539e8427482a166bd02977ca98aaa75 | 367134ba5a65885e863bdc4507601606690974c1 | /src/category_theory/subterminal.lean | e23b134fcb5018bbf00d85f182eb566838833309 | [
"Apache-2.0"
] | permissive | kodyvajjha/mathlib | 9bead00e90f68269a313f45f5561766cfd8d5cad | b98af5dd79e13a38d84438b850a2e8858ec21284 | refs/heads/master | 1,624,350,366,310 | 1,615,563,062,000 | 1,615,563,062,000 | 162,666,963 | 0 | 0 | Apache-2.0 | 1,545,367,651,000 | 1,545,367,651,000 | null | UTF-8 | Lean | false | false | 4,802 | lean | /-
Copyright (c) 2020 Bhavik Mehta. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Bhavik Mehta
-/
import category_theory.limits.shapes.terminal
import category_theory.limits.shapes.binary_products
/-!
# Subterminal objects
Subterminal objects are the objects which c... |
77e24d67a651ca251c12d25a9da0b3bea4444fb4 | 4727251e0cd73359b15b664c3170e5d754078599 | /src/data/num/lemmas.lean | f212e34464e381c6a3114ba0b5bc738faf5a7505 | [
"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 | 50,672 | lean | /-
Copyright (c) 2014 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Mario Carneiro
-/
import data.num.bitwise
import data.int.char_zero
import data.nat.gcd
import data.nat.psub
/-!
# Properties of the binary representation of integers
-/
local... |
3b3dca7cbf3fe3f8b2a92a9dadfc955d34375787 | fa02ed5a3c9c0adee3c26887a16855e7841c668b | /src/order/category/PartialOrder.lean | 604159d46c0b35a4a0715ac99daae8a4b67efefe | [
"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 | 816 | 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 order.category.Preorder
/-! # Category of partially ordered types -/
open category_theory
/-- The category of partially ordered types. -/
def PartialOrder ... |
7e014e7292c1e714f234578e4104667fc9b36a98 | fa02ed5a3c9c0adee3c26887a16855e7841c668b | /src/category_theory/sums/associator.lean | 4905f7c7ebe7eadf689440821a9e4ae06c1703c6 | [
"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 | 3,491 | lean | /-
Copyright (c) 2019 Scott Morrison. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Scott Morrison
-/
import category_theory.sums.basic
/-!
# Associator for binary disjoint union of categories.
The associator functor `((C ⊕ D) ⊕ E) ⥤ (C ⊕ (D ⊕ E))` and its inverse f... |
49ebfe27a6b02a06834501617ac38c8dda51d515 | 7cef822f3b952965621309e88eadf618da0c8ae9 | /src/number_theory/pell.lean | 3441f5f9f243185f2e6c926cb96cfc848b3e138e | [
"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 | 37,061 | 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.nat.modeq data.zsqrtd.basic tactic.ring
namespace pell
open nat
section
parameters {a : ℕ} (a1 : a > 1)
include a1
private def d := a*a - 1
@[... |
cb874ef1c3bf567a7e17c2d121a1ff11efddd820 | 75c54c8946bb4203e0aaf196f918424a17b0de99 | /src/bfol.lean | 7c47cce331f4f78fef6fc3eb55b02544746ef114 | [
"Apache-2.0"
] | permissive | urkud/flypitch | 261e2a45f1038130178575406df8aea78255ba77 | 2250f5eda14b6ef9fc3e4e1f4a9ac4005634de5c | refs/heads/master | 1,653,266,469,246 | 1,577,819,679,000 | 1,577,819,679,000 | 259,862,235 | 1 | 0 | Apache-2.0 | 1,588,147,244,000 | 1,588,147,244,000 | null | UTF-8 | Lean | false | false | 59,389 | lean | /-
Copyright (c) 2019 The Flypitch Project. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Jesse Han, Floris van Doorn
-/
/- A development of boolean-valued first-order logic in Lean.
-/
import .fol order.complete_boolean_algebra
open nat set fol lattice
universe va... |
6aff45c84989b76370c2d6279699e9cebc362503 | a45212b1526d532e6e83c44ddca6a05795113ddc | /src/logic/relation.lean | 538212cfc874f744110b91c535e9acecbb45728e | [
"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 | 13,115 | 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
Transitive reflexive as well as reflexive closure of relations.
-/
import tactic.interactive tactic.mk_iff_of_inductive_prop logic.relator
variables {α : Type*} {β : Ty... |
07f5fbe5003aebf5fcacd6bc55c514c094ed7dbc | 95dcf8dea2baf2b4b0a60d438f27c35ae3dd3990 | /src/group_theory/free_abelian_group.lean | f0d2e9a97c03c8917204184dc50abd86f124e4b8 | [
"Apache-2.0"
] | permissive | uniformity1/mathlib | 829341bad9dfa6d6be9adaacb8086a8a492e85a4 | dd0e9bd8f2e5ec267f68e72336f6973311909105 | refs/heads/master | 1,588,592,015,670 | 1,554,219,842,000 | 1,554,219,842,000 | 179,110,702 | 0 | 0 | Apache-2.0 | 1,554,220,076,000 | 1,554,220,076,000 | null | UTF-8 | Lean | false | false | 8,358 | lean | /-
Copyright (c) 2018 Kenny Lau. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Kenny Lau
Free abelian groups as abelianization of free groups.
-/
import algebra.pi_instances
import group_theory.free_group
import group_theory.abelianization
universes u v
variables (... |
345fec71acdc54ec5e1e94e47607bb7caf5cda37 | 55c7fc2bf55d496ace18cd6f3376e12bb14c8cc5 | /src/topology/algebra/infinite_sum.lean | 61f617ed4c481a01e41ee7c0b6c215724076646c | [
"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 | 38,065 | 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 topology.instances.real
import data.indicator_function
import data.equiv.encodable.lattice
import order.filter.at_top_bo... |
52f3e89c03c27e23ec16e368cec518eafc8c2043 | 1a61aba1b67cddccce19532a9596efe44be4285f | /hott/types/fiber.hlean | 3ae3efdcdf1f729a15767024c30e610fcea6d31c | [
"Apache-2.0"
] | permissive | eigengrau/lean | 07986a0f2548688c13ba36231f6cdbee82abf4c6 | f8a773be1112015e2d232661ce616d23f12874d0 | refs/heads/master | 1,610,939,198,566 | 1,441,352,386,000 | 1,441,352,494,000 | 41,903,576 | 0 | 0 | null | 1,441,352,210,000 | 1,441,352,210,000 | null | UTF-8 | Lean | false | false | 1,210 | hlean | /-
Copyright (c) 2015 Floris van Doorn. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Author: Floris van Doorn
Ported from Coq HoTT
Theorems about fibers
-/
import .sigma .eq
structure fiber {A B : Type} (f : A → B) (b : B) :=
(point : A)
(point_eq : f point = b)
open ... |
ade48ff8981d4a870fae6599f3058c859d19b400 | 9be442d9ec2fcf442516ed6e9e1660aa9071b7bd | /src/Lean/Attributes.lean | e6d47d15bf268783577e29ef43c140ec65a5a7a2 | [
"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 | 20,664 | 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.Syntax
import Lean.CoreM
import Lean.ResolveName
namespace Lean
inductive AttributeApplicationTime where
| afterTypeChecking | afterCompilat... |
e292dc03179a0e846fc4f6ace13187a87a4bab80 | 36c7a18fd72e5b57229bd8ba36493daf536a19ce | /library/theories/group_theory/perm.lean | b415bd686fffa8a944b765ea9a6df68f9b1b2d7d | [
"Apache-2.0"
] | permissive | YHVHvx/lean | 732bf0fb7a298cd7fe0f15d82f8e248c11db49e9 | 038369533e0136dd395dc252084d3c1853accbf2 | refs/heads/master | 1,610,701,080,210 | 1,449,128,595,000 | 1,449,128,595,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 4,145 | lean | /-
Copyright (c) 2015 Haitao Zhang. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Author : Haitao Zhang
-/
import algebra.group data data.fintype.function
open nat list algebra function
namespace group
open fintype
section perm
variable {A : Type}
variable [finA : fintype ... |
470d66ab36c53ff9261bdf7b1305b7c686448c75 | 69b400b14d8b9f598d16e57d334c8a68910f3584 | /prep/alg-geom/src/ex.lean | 94bf488457d2c1cb917a133c3be7fbdee7de38b6 | [] | no_license | TwoFX/partiii | e8cf563d9f7074a45eb35928bf7eb7dfd38ea29e | b949b1f7599ef35a1c1856ba6e9d1fddb245bcd9 | refs/heads/master | 1,683,178,340,068 | 1,622,049,944,000 | 1,622,049,944,000 | 304,524,313 | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 2,379 | lean | import data.mv_polynomial.comm_ring
import ring_theory.ideal.basic
open mv_polynomial
variables {k : Type*} [field k] {n : ℕ}
def is_affine_variety (V : set (fin n → k)) : Prop :=
∃ F : set (mv_polynomial (fin n) k), F.finite ∧
∀ x, x ∈ V ↔ ∀ (f : mv_polynomial (fin n) k), f ∈ F → eval x f = 0
def I (V : set (f... |
8acc439313c2addec97ea32952be99985a0b0a7d | 4727251e0cd73359b15b664c3170e5d754078599 | /src/group_theory/subsemigroup/centralizer.lean | 765fa4adf65f8013f823a6f7ca96e2a3fe69b030 | [
"Apache-2.0"
] | permissive | Vierkantor/mathlib | 0ea59ac32a3a43c93c44d70f441c4ee810ccceca | 83bc3b9ce9b13910b57bda6b56222495ebd31c2f | refs/heads/master | 1,658,323,012,449 | 1,652,256,003,000 | 1,652,256,003,000 | 209,296,341 | 0 | 1 | Apache-2.0 | 1,568,807,655,000 | 1,568,807,655,000 | null | UTF-8 | Lean | false | false | 4,848 | lean | /-
Copyright (c) 2021 Thomas Browning. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Thomas Browning, Jireh Loreaux
-/
import group_theory.subsemigroup.center
/-!
# Centralizers of magmas and semigroups
## Main definitions
* `set.centralizer`: the centralizer of a ... |
b7d497321a4a6cb0b0f7971f0a82420815aa66e4 | d1bbf1801b3dcb214451d48214589f511061da63 | /src/field_theory/fixed.lean | 0e25720eee1aa2045d7abd6b0c24ef5eff2745d3 | [
"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 | 12,472 | 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.polynomial.group_ring_action
import deprecated.subfield
import field_theory.normal
import field_theory.separable
import field_theory.tower
import linear_algebra... |
002106d0d9d0cc9492d99167d65dda61bb729d71 | 4a092885406df4e441e9bb9065d9405dacb94cd8 | /src/for_mathlib/topological_rings.lean | dd8db84e5bdef7083a2077fa8628e663b1f653c4 | [
"Apache-2.0"
] | permissive | semorrison/lean-perfectoid-spaces | 78c1572cedbfae9c3e460d8aaf91de38616904d8 | bb4311dff45791170bcb1b6a983e2591bee88a19 | refs/heads/master | 1,588,841,765,494 | 1,554,805,620,000 | 1,554,805,620,000 | 180,353,546 | 0 | 1 | null | 1,554,809,880,000 | 1,554,809,880,000 | null | UTF-8 | Lean | false | false | 1,571 | lean | import topology.algebra.ring
import ring_theory.subring
import ring_theory.ideal_operations
import for_mathlib.subgroup
universe u
variables {A : Type u} [comm_ring A] [topological_space A] [topological_ring A]
open topological_ring
instance subring_has_zero (R : Type u) [comm_ring R] (S : set R) [HS : is_subring ... |
c5f8115074a02828a6d5bab49e8e4b2e4fd0c1ca | 94e33a31faa76775069b071adea97e86e218a8ee | /src/topology/category/CompHaus/default.lean | cecaffef175605bf44a51f6accf9e28af329e350 | [
"Apache-2.0"
] | permissive | urkud/mathlib | eab80095e1b9f1513bfb7f25b4fa82fa4fd02989 | 6379d39e6b5b279df9715f8011369a301b634e41 | refs/heads/master | 1,658,425,342,662 | 1,658,078,703,000 | 1,658,078,703,000 | 186,910,338 | 0 | 0 | Apache-2.0 | 1,568,512,083,000 | 1,557,958,709,000 | Lean | UTF-8 | Lean | false | false | 9,619 | 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... |
0d3f027e616c0fa45f86b3547f27975f65ff2fc7 | 0a6b214fd60b822ae708d58655b7d2f36091d8f8 | /src/homotopy.lean | b6e347b311067c9da8f3cfca6878a20c6a4b21a3 | [
"MIT"
] | permissive | Naomij1/lean-homotopie | de0bf067bc77254deac02aab0184511ce7aaafe7 | 21bd6be53449c61088234ceab7ec63c18628521a | refs/heads/master | 1,613,216,666,817 | 1,591,786,776,000 | 1,591,786,776,000 | 244,693,557 | 2 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 8,180 | lean | --- TODO :
-- - retirer des simps et optimiser
-- - retirer les derniers sorry (nommer les hypothèses dans ite)
import topology.basic
import topology.algebra.continuous_functions
import topology.continuous_on
import topology.algebra.ordered
import topology.constructions
import topology.algebra.ordered
import data.s... |
1e62d5ab5e761c58bd0a6fac6c4fdefab0a34712 | a46270e2f76a375564f3b3e9c1bf7b635edc1f2c | /7.10.3.lean | ffe47e0fad16585b86dd891cd812c86231c4f94b | [
"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 | 1,338 | lean | inductive t: Type
| const : ℕ -> t
| var : ℕ -> t
| plus : t -> t -> t
| times : t -> t -> t
def bn := ℕ × ℕ.
def env := list bn.
def val := option ℕ
def lookup: env -> nat -> val
| [] _ := none
| ((y,v)::ys) x := if x = y then some v else lookup ys x
def bin: (ℕ -> ℕ -> ℕ) -> val -> val -> val
| _ no... |
1e17f194cfeca4ab3dff1621abaa462f1e85c91c | 57c233acf9386e610d99ed20ef139c5f97504ba3 | /src/analysis/convex/integral.lean | 1fc608b88fed07e32eb4fdd3d0a45334aa936bd3 | [
"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 | 7,759 | 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 analysis.convex.function
import measure_theory.integral.set_integral
/-!
# Jensen's inequality for integrals
In this file we prove four theorems:
* ... |
984e029ab360afdd0be82ade18903dbf91ab7096 | 6432ea7a083ff6ba21ea17af9ee47b9c371760f7 | /tests/lean/run/simpRwBug.lean | bf2d440d40c1efcf25306d644d5ec570cc2933ef | [
"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 | 181 | lean | open Nat
theorem add_assoc (m n k : Nat) : m + n + k = m + (n + k) :=
Nat.recOn (motive := fun k => m + n + k = m + (n + k)) k rfl (fun k ih => by simp [Nat.add_succ, ih]; done)
|
d1e4b193c2e66e5ccf49e2ce9ac4c54b74702bde | 6432ea7a083ff6ba21ea17af9ee47b9c371760f7 | /tests/lean/cacheIssue.lean | 7bf19986520009c18a8975eae983c57050192f45 | [
"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 | 341 | lean | structure Foo (A B : Type) := f : Unit -> A
def foo (P : Type) : Foo ((p : P) -> Nat) ({p : P} -> Nat) := ⟨λ _ _ => 0⟩
def bar (P : Type) : Foo ((p : P) -> Nat) ({p : P} -> Int) := ⟨λ _ _ => 0⟩
#check foo Bool
#check (foo Bool).f -- (foo Bool).f : Unit → Bool → Nat
#check (bar Bool).f -- (bar Bool).f : Unit → Bool → N... |
b83dfdfd45323a99f464e27a61da898db6274612 | 351a46035517d2a1985619b8cabdf263754d343a | /src/ch16.lean | 310ffcaceca94a1b687f51f4b68f2ca314d00a07 | [] | no_license | kaychaks/logic_proof | accc212517b613caca92c10db77e6aaf6b7ccfbc | 90f3bf0acbabf558ba2f82dee968255d8bfe2de1 | refs/heads/master | 1,587,001,734,509 | 1,548,235,051,000 | 1,548,235,051,000 | 165,186,786 | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 3,504 | lean | open function int algebra
def f (x : ℤ) : ℤ := x + 3
def g (x : ℤ) : ℤ := -x
def h (x : ℤ) : ℤ := 2 * x + 3
example : injective f :=
assume x1 x2,
assume h1 : x1 + 3 = x2 + 3, -- Lean knows this is the same as f x1 = f x2
show x1 = x2, from eq_of_add_eq_add_right h1
example : surjective f :=
assume y,
have h1 : f ... |
0ac9deed7c563ea4c3f98e570c9a299dbf94c2dc | aa3f8992ef7806974bc1ffd468baa0c79f4d6643 | /library/standard.lean | 68fdba1c64873544811951a721cf97207b045727 | [
"Apache-2.0"
] | permissive | codyroux/lean | 7f8dff750722c5382bdd0a9a9275dc4bb2c58dd3 | 0cca265db19f7296531e339192e9b9bae4a31f8b | refs/heads/master | 1,610,909,964,159 | 1,407,084,399,000 | 1,416,857,075,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 289 | 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
-- standard
-- ========
-- The constructive core of Lean's library.
import type logic data tools.tactic
|
4a5e08d77ed43063bdf559a21a12559ad0271481 | cc060cf567f81c404a13ee79bf21f2e720fa6db0 | /lean/quantifiers.lean | 6379172062ad85b17bfe2603051f22abc717f402 | [
"Apache-2.0"
] | permissive | semorrison/proof | cf0a8c6957153bdb206fd5d5a762a75958a82bca | 5ee398aa239a379a431190edbb6022b1a0aa2c70 | refs/heads/master | 1,610,414,502,842 | 1,518,696,851,000 | 1,518,696,851,000 | 78,375,937 | 2 | 1 | null | null | null | null | UTF-8 | Lean | false | false | 1,838 | lean | variables (A : Type) (p q : A → Prop)
example : (∀ x, p x ∧ q x) ↔ (∀ x, p x) ∧ (∀ x, q x) :=
iff.intro
(assume H : ∀ x, p x ∧ q x,
and.intro
(take y : A, and.left (H y))
(take y : A, and.right (H y)))
(assume H : (∀ x, p x) ∧ (∀ x, q x),
take y : A,
and.intro (and.left H y) (and.right H y)... |
fa7eb503a792fbd39236d651eaf562f4b99f6e9e | 968e2f50b755d3048175f176376eff7139e9df70 | /examples/pred_logic/unnamed_187.lean | 3efee1619bbb17786df625e06bf58b9fc329f6ed | [] | no_license | gihanmarasingha/mth1001_sphinx | 190a003269ba5e54717b448302a27ca26e31d491 | 05126586cbf5786e521be1ea2ef5b4ba3c44e74a | refs/heads/master | 1,672,913,933,677 | 1,604,516,583,000 | 1,604,516,583,000 | 309,245,750 | 1 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 76 | lean | def even (x : ℤ) : Prop := ∃ m : ℤ, x = 2 *m
#check even
#check even 5 |
39485a9a9e97022ee95d178704e4ab09844507de | f3849be5d845a1cb97680f0bbbe03b85518312f0 | /library/init/core.lean | 0e937d6e1d22c5a737a57e7812fa54cd0847a022 | [
"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 | 16,917 | 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
notation, basic datatypes and type classes
-/
prelude
notation `Prop` := Sort 0
notation f ` $ `:1 a:0 := f a
/- Logical operations and relations -/
reserv... |
03bd17876dab5bc4d8842e05ca4afdb32f4fd08a | 5ee26964f602030578ef0159d46145dd2e357ba5 | /src/for_mathlib/uniform_space/separation.lean | ec6c0b7c61ccdd42ba472c3cc294f2684f597e8f | [
"Apache-2.0"
] | permissive | fpvandoorn/lean-perfectoid-spaces | 569b4006fdfe491ca8b58dd817bb56138ada761f | 06cec51438b168837fc6e9268945735037fd1db6 | refs/heads/master | 1,590,154,571,918 | 1,557,685,392,000 | 1,557,685,392,000 | 186,363,547 | 0 | 0 | Apache-2.0 | 1,557,730,933,000 | 1,557,730,933,000 | null | UTF-8 | Lean | false | false | 10,295 | lean | import topology.uniform_space.separation
import for_mathlib.function
import for_mathlib.quotient
import for_mathlib.topology
import for_mathlib.uniform_space.basic
noncomputable theory
local attribute [instance, priority 0] classical.prop_decidable
open filter
universes u v w
section
variables {α : Type u} {β : Ty... |
81e50fd8df6145d6ecfce221adcef832f99dd5fd | 35677d2df3f081738fa6b08138e03ee36bc33cad | /src/data/fin.lean | c44bf5e453a61aa2e81de57b790e16d74b87d8a1 | [
"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 | 27,124 | 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 data.nat.basic
/-!
# The finite type with `n` elements
`fin n` is the type whose elements are natural numbers smaller than `n`.
This file expan... |
9abc4604ffbb23bbd474f56ff47d8882ec715909 | 4a092885406df4e441e9bb9065d9405dacb94cd8 | /src/for_mathlib/lc_algebra.lean | 98fe46feddbc17a79b2cd9b655300a8c2634d8e6 | [
"Apache-2.0"
] | permissive | semorrison/lean-perfectoid-spaces | 78c1572cedbfae9c3e460d8aaf91de38616904d8 | bb4311dff45791170bcb1b6a983e2591bee88a19 | refs/heads/master | 1,588,841,765,494 | 1,554,805,620,000 | 1,554,805,620,000 | 180,353,546 | 0 | 1 | null | 1,554,809,880,000 | 1,554,809,880,000 | null | UTF-8 | Lean | false | false | 4,686 | lean | import ring_theory.algebra
import linear_algebra.linear_combination
local attribute [instance, priority 0] classical.prop_decidable
noncomputable theory
namespace lc
open finsupp
variables {R : Type*} {A : Type*} [comm_ring R] [ring A] [algebra R A]
variables (f g h : lc R A)
def one : lc R A := single 1 1
instance... |
f2a67637af89d73b2c2aa586534db279378a9ab0 | b32d3853770e6eaf06817a1b8c52064baaed0ef1 | /src/super/default.lean | 7248199b0eff2827190071287b805ddb0d7b0b5e | [] | no_license | gebner/super2 | 4d58b7477b6f7d945d5d866502982466db33ab0b | 9bc5256c31750021ab97d6b59b7387773e54b384 | refs/heads/master | 1,635,021,682,021 | 1,634,886,326,000 | 1,634,886,326,000 | 225,600,688 | 4 | 2 | null | 1,598,209,306,000 | 1,575,371,550,000 | Lean | UTF-8 | Lean | false | false | 20 | lean | import super.prover
|
3d6a5e21a4f660f7829fbc940a06989dccea73b5 | 80cc5bf14c8ea85ff340d1d747a127dcadeb966f | /src/topology/algebra/uniform_ring.lean | f86840b83de2e79a5d367fc32fd93c59bf108c87 | [
"Apache-2.0"
] | permissive | lacker/mathlib | f2439c743c4f8eb413ec589430c82d0f73b2d539 | ddf7563ac69d42cfa4a1bfe41db1fed521bd795f | refs/heads/master | 1,671,948,326,773 | 1,601,479,268,000 | 1,601,479,268,000 | 298,686,743 | 0 | 0 | Apache-2.0 | 1,601,070,794,000 | 1,601,070,794,000 | null | UTF-8 | Lean | false | false | 7,422 | 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
Theory of topological rings with uniform structure.
-/
import topology.algebra.group_completion
import topology.algebra.ring
open classical set filter ... |
1d021af8a85e87c0e34b7aa494711eb7f112b6f1 | 77c5b91fae1b966ddd1db969ba37b6f0e4901e88 | /src/ring_theory/power_basis.lean | a03c727eba93a2c74b2f64fa8b773d6988b3bfa6 | [
"Apache-2.0"
] | permissive | dexmagic/mathlib | ff48eefc56e2412429b31d4fddd41a976eb287ce | 7a5d15a955a92a90e1d398b2281916b9c41270b2 | refs/heads/master | 1,693,481,322,046 | 1,633,360,193,000 | 1,633,360,193,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 18,257 | 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.minpoly
/-!
# Power basis
This file defines a structure `power_basis R S`, giving a basis of the
`R`-algebra `S` as a finite list of powers `1, x, ...... |
c4e4ab08d59d2724b36fc476355a755997f441e4 | 19cc34575500ee2e3d4586c15544632aa07a8e66 | /src/algebra/pointwise.lean | 37bc8594eb116b3b62442579f3220acd398a8d9d | [
"Apache-2.0"
] | permissive | LibertasSpZ/mathlib | b9fcd46625eb940611adb5e719a4b554138dade6 | 33f7870a49d7cc06d2f3036e22543e6ec5046e68 | refs/heads/master | 1,672,066,539,347 | 1,602,429,158,000 | 1,602,429,158,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 15,389 | lean | /-
Copyright (c) 2019 Johan Commelin. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Johan Commelin, Floris van Doorn
-/
import algebra.module.basic
import data.set.finite
/-!
# Pointwise addition, multiplication, and scalar multiplication of sets.
This file defines ... |
9d4d327708e388b5da6f1e274c3d21e1eb0d559d | abd85493667895c57a7507870867b28124b3998f | /src/measure_theory/borel_space.lean | e596c31105fc21ce48479372dd7238ab91dd7d3f | [
"Apache-2.0"
] | permissive | pechersky/mathlib | d56eef16bddb0bfc8bc552b05b7270aff5944393 | f1df14c2214ee114c9738e733efd5de174deb95d | refs/heads/master | 1,666,714,392,571 | 1,591,747,567,000 | 1,591,747,567,000 | 270,557,274 | 0 | 0 | Apache-2.0 | 1,591,597,975,000 | 1,591,597,974,000 | null | UTF-8 | Lean | false | false | 29,406 | 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.measurable_space
import topology.instances.ennreal
import analysis.normed_space.basic
/-!
# Borel (measurable) space
## Main ... |
bfca895c13fb42af62313926ae0c6deb16a240c0 | 6432ea7a083ff6ba21ea17af9ee47b9c371760f7 | /src/lake/Lake/Util/OrdHashSet.lean | 468ef1609375f05f15852268bbe8243d00cf5475 | [
"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,619 | lean | /-
Copyright (c) 2022 Mac Malone. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Mac Malone
-/
import Lean.Data.HashSet
open Lean
namespace Lake
/-- A `HashSet` that preserves insertion order. -/
structure OrdHashSet (α) [Hashable α] [BEq α] where
toHashSet : Hash... |
bf56118bee8a724648cb6604042289bf2321f121 | 761d983a78bc025071bac14a3facced881cf5e53 | /affine/add_group_action.lean | e7de2f8cd4444550c237cc68cfae78173e805f9f | [] | no_license | rohanrajnair/affine_lib | bcf22ff892cf74ccb36a95bc9b7fff8e0adb2d0d | 83076864245ac547b9d615bc6a23804b1b4a8f70 | refs/heads/master | 1,673,320,928,343 | 1,603,036,653,000 | 1,603,036,653,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 700 | lean | /-
Provides definitions so that we can have additive group actions.
-/
import algebra.group.basic
universes u v
variables {α : Type u} {β : Type v}
/-- Typeclass for types with transformation functions.
For our purposes, those transformations are translations by a vector. -/
class has_trans (α : Type u) (... |
a25d20c9b63d780eeba8fdd3a74ede09cb84ac0e | 4727251e0cd73359b15b664c3170e5d754078599 | /src/analysis/inner_product_space/projection.lean | 8373fda22837d80c2adff261169684177f56410b | [
"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 | 58,160 | lean | /-
Copyright (c) 2019 Zhouhang Zhou. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Zhouhang Zhou, Frédéric Dupuis, Heather Macbeth
-/
import analysis.convex.basic
import analysis.inner_product_space.basic
import analysis.normed_space.is_R_or_C
/-!
# The orthogonal pr... |
1cb2727643eb6c4cd65ae8bf65c26c479aa96928 | 59a4b050600ed7b3d5826a8478db0a9bdc190252 | /src/category_theory/opposites_2.lean | 8336abc1f643a2d5bcebf7e76aaf38d610eac7c8 | [] | no_license | rwbarton/lean-category-theory | f720268d800b62a25d69842ca7b5d27822f00652 | 00df814d463406b7a13a56f5dcda67758ba1b419 | refs/heads/master | 1,585,366,296,767 | 1,536,151,349,000 | 1,536,151,349,000 | 147,652,096 | 0 | 0 | null | 1,536,226,960,000 | 1,536,226,960,000 | null | UTF-8 | Lean | false | false | 527 | lean | import category_theory.opposites
namespace category_theory
universes u₁ v₁
-- def OppositeOpposite (C : Category) : Equivalence (Opposite (Opposite C)) C := sorry
-- PROJECT opposites preserve products, functors, slices.
variables {C : Type u₁} [𝒞 : category.{u₁ v₁} C]
include 𝒞
@[simp] lemma opop : @category_th... |
86f3b81eab79d6796d9f09b41a433157f1c8e508 | 74addaa0e41490cbaf2abd313a764c96df57b05d | /Mathlib/data/pfunctor/univariate/M_auto.lean | fefaaac49b6ec54a9331f1c52ea624a253fd5620 | [] | 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,363 | lean | /-
Copyright (c) 2017 Simon Hudon All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Simon Hudon
-/
import Mathlib.PrePort
import Mathlib.Lean3Lib.init.default
import Mathlib.data.pfunctor.univariate.basic
import Mathlib.PostPort
universes u l w u_1
namespace Mathlib
/... |
0e43bc9a00371538730520116cac821ead99164e | d436468d80b739ba7e06843c4d0d2070e43448e5 | /src/tactic/omega/eq_elim.lean | c002bfaa78dfde922e4264c6cac2a3a8dd710571 | [
"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 | 14,477 | lean | /-
Copyright (c) 2019 Seul Baek. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Author: Seul Baek
Correctness lemmas for equality elimination.
See 5.5 of http://www.decision-procedures.org/ for details.
-/
import tactic.omega.clause
open list.func
namespace omega
def symdi... |
a67200de4571112afca391c2c040e46b0148d4a5 | 367134ba5a65885e863bdc4507601606690974c1 | /test/fresh_names.lean | 389d058ecf089e227bdcacedd494b1e0d2c951ae | [
"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 | 733 | lean | /-
Copyright (c) 2020 Jannis Limperg. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Author: Jannis Limperg
-/
import tactic.fresh_names
open tactic
open native
example (n m o p : ℕ) : true :=
by do
[n, m, o, p] ← [`n, `m, `o, `p].mmap get_local,
[n_uname, m_uname, o_una... |
417f6ce7c0df4a9c356ffc1621c1790cbd3b363c | c5b07d17b3c9fb19e4b302465d237fd1d988c14f | /src/functors/family.lean | 8db6828c90732f750b47a5e086aa23b435e1d281 | [
"MIT"
] | permissive | skaslev/papers | acaec61602b28c33d6115e53913b2002136aa29b | f15b379f3c43bbd0a37ac7bb75f4278f7e901389 | refs/heads/master | 1,665,505,770,318 | 1,660,378,602,000 | 1,660,378,602,000 | 14,101,547 | 0 | 1 | MIT | 1,595,414,522,000 | 1,383,542,702,000 | Lean | UTF-8 | Lean | false | false | 3,365 | lean | import data.iso
-- Family of `X`s
-- `fam x` is a collection of `x` with length some cardinal number `y`
-- fam(x) = Σ y, xʸ
def fam (X : Type*) := Σ Y : Type*, Y → X
namespace fam
variable {X : Type*}
-- Families can be coerced both to type and a function.
-- For example we can write the polynomial functor as
--
--... |
02a1d57a40069804a0d5f879faffd55a89c900af | 94637389e03c919023691dcd05bd4411b1034aa5 | /src/assignments/assignment_8/assignment_8.lean | 24e4c6c1277ce341fe5f9bfe294b3b6e09e2173c | [] | 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 | 7,605 | lean | import ...inClassNotes.langs.bool_expr
import data.bool
/- 1. [20 points]
The proof that e1 && e2 is semantically equivalent to e2 && e1
in our little language of Boolean expressions *broke* when we
added state as an argument to the evaluation function (which we
needed when we added Boolean variables to our language... |
8e02c455166e4f1751781c878a226d7d7a0e54c9 | cf39355caa609c0f33405126beee2739aa3cb77e | /tests/lean/run/qexpr1.lean | cd854924148585151de69c65dc653f39a8e1d9ef | [
"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 | 595 | lean | open tactic
#check
λ (A : Type) (a b c d : A) (H1 : a = b) (H2 : c = b) (H3 : d = c),
have Hac : a = c, by do {
h ← get_local `H2,
hs ← mk_app `eq.symm [h],
x ← to_expr ```(eq.trans H1 %%hs),
exact x },
show a = d, by do {
x ← to_expr ```(
have aux : a = c, from Hac,
have c = d, by do { symmetry, assum... |
03f512520df53674320e86ffcc0b970c06a26f00 | abd85493667895c57a7507870867b28124b3998f | /src/topology/uniform_space/cauchy.lean | 37b62a041889390d7ca6dafd160f0ac50b97bcec | [
"Apache-2.0"
] | permissive | pechersky/mathlib | d56eef16bddb0bfc8bc552b05b7270aff5944393 | f1df14c2214ee114c9738e733efd5de174deb95d | refs/heads/master | 1,666,714,392,571 | 1,591,747,567,000 | 1,591,747,567,000 | 270,557,274 | 0 | 0 | Apache-2.0 | 1,591,597,975,000 | 1,591,597,974,000 | null | UTF-8 | Lean | false | false | 25,209 | 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.uniform_space.basic
import topology.bases
import data.set.intervals
/-!
# Theory of Cauchy filters in uniform spaces. Complete uniform... |
80926c049e77d828a13d8b1fc9181cfa05a1edee | 32025d5c2d6e33ad3b6dd8a3c91e1e838066a7f7 | /src/Lean/Elab/Alias.lean | 48cc606d1829940ef65832a3d3b285f0802f345b | [
"Apache-2.0"
] | permissive | walterhu1015/lean4 | b2c71b688975177402758924eaa513475ed6ce72 | 2214d81e84646a905d0b20b032c89caf89c737ad | refs/heads/master | 1,671,342,096,906 | 1,599,695,985,000 | 1,599,695,985,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 1,248 | 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
/- We use aliases to implement the `export <id> (<id>+)` command. -/
abbrev AliasState := SMap Name (List Name)
ab... |
91715fc712ac81fe74935539a131722153e1601c | 74addaa0e41490cbaf2abd313a764c96df57b05d | /Mathlib/category_theory/limits/opposites_auto.lean | 0b3ff97a451f880d40e069d3cd154dc5762fe87a | [] | 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,383 | lean | /-
Copyright (c) 2019 Scott Morrison. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Scott Morrison, Floris van Doorn
-/
import Mathlib.PrePort
import Mathlib.Lean3Lib.init.default
import Mathlib.category_theory.limits.shapes.products
import Mathlib.category_theory.dis... |
e6b637e0342cf29df9769d55530b6c4e2368958e | 05b503addd423dd68145d68b8cde5cd595d74365 | /src/analysis/calculus/deriv.lean | 9ac25dee19493ca35a67d34cfa75c475f61266e3 | [
"Apache-2.0"
] | permissive | aestriplex/mathlib | 77513ff2b176d74a3bec114f33b519069788811d | e2fa8b2b1b732d7c25119229e3cdfba8370cb00f | refs/heads/master | 1,621,969,960,692 | 1,586,279,279,000 | 1,586,279,279,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 54,735 | 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 data.polynomial
/-!
# One-dimensional derivatives
This file defines the derivative of a function `f : 𝕜 → F` wher... |
1c44175484d41182e9e95f2a72917cfd586d48ca | aa5a655c05e5359a70646b7154e7cac59f0b4132 | /stage0/src/Lean/Meta/Tactic/Revert.lean | ff2394a8773bafa5abfa2aeaf8dbaab882be81a2 | [
"Apache-2.0"
] | permissive | lambdaxymox/lean4 | ae943c960a42247e06eff25c35338268d07454cb | 278d47c77270664ef29715faab467feac8a0f446 | refs/heads/master | 1,677,891,867,340 | 1,612,500,005,000 | 1,612,500,005,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 937 | 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.Tactic.Util
namespace Lean.Meta
def revert (mvarId : MVarId) (fvars : Array FVarId) (preserveOrder : Bool := false) : MetaM (Array FVarId... |
2e448f617413102886d9bedea243a0980d9cd508 | d436468d80b739ba7e06843c4d0d2070e43448e5 | /src/category_theory/groupoid.lean | 43273a2472f77f079a4fbba80831147628083323 | [
"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 | 1,434 | lean | /-
Copyright (c) 2018 Reid Barton All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Reid Barton
-/
import category_theory.category
import category_theory.isomorphism
import data.equiv.basic
namespace category_theory
universes v u -- declare the `v`'s first; see `catego... |
1076ad82f7f017a120770374918246db6ab8e6f9 | 6432ea7a083ff6ba21ea17af9ee47b9c371760f7 | /doc/examples/widgets.lean | 886f7914b6373ce63e92cde933f9473f25fb83bf | [
"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,846 | lean | import Lean
open Lean Widget
/-!
# The user-widgets system
Proving and programming are inherently interactive tasks. Lots of mathematical objects and data
structures are visual in nature. *User widgets* let you associate custom interactive UIs with
sections of a Lean document. User widgets are rendered in the Lean in... |
586f037153d51f928adec1278f4a7844ed93d0dc | 94e33a31faa76775069b071adea97e86e218a8ee | /src/measure_theory/integral/circle_integral_transform.lean | 7dbb237f5f6db12d69f8141e1dc3ff726aed5f45 | [
"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 | 7,915 | lean | /-
Copyright (c) 2022 Chris Birkbeck. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Chris Birkbeck
-/
import analysis.complex.cauchy_integral
import analysis.analytic.basic
import analysis.calculus.parametric_interval_integral
import data.complex.basic
import measure_... |
e437f453346d41c2fc2f19fab3c240c2d2d75aa7 | 274261f7150b4ed5f1962f172c9357591be8a2b5 | /src/lists.lean | c664a8c12fc7fe5acfab280ad5f5582f45f9ffb3 | [] | no_license | rspencer01/lean_representation_theory | 219ea1edf4b9897b2997226b54473e44e1538b50 | 2eef2b4b39d99d7ce71bec7bbc3dcc2f7586fcb5 | refs/heads/master | 1,588,133,157,029 | 1,571,689,957,000 | 1,571,689,957,000 | 175,835,785 | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 6,831 | lean | import data.list
universes U₁ U₂
def nonempty_list (γ : Type U₁) := {l : list γ // l ≠ []}
namespace nonempty_list
variable {γ : Type U₁}
@[simp]
def last (l : nonempty_list γ) := list.last l.val l.property
@[simp]
def head : nonempty_list γ → γ
| ⟨[] , h ⟩ := absurd rfl h
| ⟨ x :: t , _ ⟩ :... |
ed033c3d9115b870b961fe086f4ee1bb1d89c390 | 3446e92e64a5de7ed1f2109cfb024f83cd904c34 | /src/game/world1/level4.lean | fa7f80a6bd277f22793616ffd8092ba74c067f7c | [] | no_license | kckennylau/natural_number_game | 019f4a5f419c9681e65234ecd124c564f9a0a246 | ad8c0adaa725975be8a9f978c8494a39311029be | refs/heads/master | 1,598,784,137,722 | 1,571,905,156,000 | 1,571,905,156,000 | 218,354,686 | 0 | 0 | null | 1,572,373,319,000 | 1,572,373,318,000 | null | UTF-8 | Lean | false | false | 4,228 | lean | import mynat.definition -- hide
namespace mynat -- hide
/-
# World 1 : Tutorial world
## level 4: Peano's axioms.
Way back on page 1 we imported a file called `mynat.definition`.
This gave us the type `mynat` of natural numbers. But it
also gave us some other things, which we'll take a look at now:
* a term `0 :... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.