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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
faa8a35aeb3b1dbb13bdd3ea1380ed5037afb042 | 4727251e0cd73359b15b664c3170e5d754078599 | /src/analysis/normed_space/exponential.lean | d8dcf870514384d8deb5bba4ba89327281561e08 | [
"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 | 26,253 | lean | /-
Copyright (c) 2021 Anatole Dedecker. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Anatole Dedecker, Eric Wieser
-/
import analysis.specific_limits.basic
import analysis.analytic.basic
import analysis.complex.basic
import data.nat.choose.cast
import data.finset.non... |
4d70ea66fc00adf548b672c637cc26c473f21809 | 82e44445c70db0f03e30d7be725775f122d72f3e | /src/tactic/rcases.lean | 5a90c3cc1426080614e2d9f25b081f9180f4d853 | [
"Apache-2.0"
] | permissive | stjordanis/mathlib | 51e286d19140e3788ef2c470bc7b953e4991f0c9 | 2568d41bca08f5d6bf39d915434c8447e21f42ee | refs/heads/master | 1,631,748,053,501 | 1,627,938,886,000 | 1,627,938,886,000 | 228,728,358 | 0 | 0 | Apache-2.0 | 1,576,630,588,000 | 1,576,630,587,000 | null | UTF-8 | Lean | false | false | 39,269 | 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.dlist
import tactic.core
import tactic.clear
/-!
# Recursive cases (`rcases`) tactic and related tactics
`rcases` is a tactic that will perform `cases`... |
ad12546c4d59f949b84d1b56f6f33a40d9702b9a | 82b86ba2ae0d5aed0f01f49c46db5afec0eb2bd7 | /stage0/src/Lean/Meta/ExprDefEq.lean | 98894e00360d261c202a93467212a7a50c5b5f69 | [
"Apache-2.0"
] | permissive | banksonian/lean4 | 3a2e6b0f1eb63aa56ff95b8d07b2f851072d54dc | 78da6b3aa2840693eea354a41e89fc5b212a5011 | refs/heads/master | 1,673,703,624,165 | 1,605,123,551,000 | 1,605,123,551,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 48,088 | lean | /-
Copyright (c) 2019 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Leonardo de Moura
-/
import Lean.ProjFns
import Lean.Meta.WHNF
import Lean.Meta.InferType
import Lean.Meta.FunInfo
import Lean.Meta.LevelDefEq
import Lean.Meta.Check
import Lean... |
d266da3cb336ce0317c999ecbbc30430a10b37a6 | d406927ab5617694ec9ea7001f101b7c9e3d9702 | /src/geometry/manifold/mfderiv.lean | 1dbd812eeb894e21219a8370ce672e538650241b | [
"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 | 79,282 | 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 geometry.manifold.local_invariant_properties
import geometry.manifold.tangent_bundle
/-!
# The derivative of functions between smooth manifolds
Let `M`... |
6df1fa9f39316e3bb526bd93438bc0176dfba49c | d406927ab5617694ec9ea7001f101b7c9e3d9702 | /src/order/boolean_algebra.lean | 6bb520e1d9aaf942bb53d9e60b09ae6a7558da76 | [
"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 | 30,799 | 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, Bryan Gin-ge Chen
-/
import order.heyting.basic
/-!
# (Generalized) Boolean algebras
> THIS FILE IS SYNCHRONIZED WITH MATHLIB4.
> https://github.com/leanprover-commun... |
51d408308602e3ac1842886b46533c70414b13e9 | d9d511f37a523cd7659d6f573f990e2a0af93c6f | /src/geometry/manifold/mfderiv.lean | 374aff8d3eb8c3a7372b3ea593a21f60ea464d9e | [
"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 | 71,146 | 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 geometry.manifold.basic_smooth_bundle
/-!
# The derivative of functions between smooth manifolds
Let `M` and `M'` be two smooth manifolds with corners ... |
14ade23f79bbaa59fdaba761f3159c37bccf201d | fa02ed5a3c9c0adee3c26887a16855e7841c668b | /src/analysis/normed_space/inner_product.lean | 8e1f8bb840e8259efbc6b2d52a9d4a7eeed97759 | [
"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 | 122,807 | lean | /-
Copyright (c) 2019 Zhouhang Zhou. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Zhouhang Zhou, Sébastien Gouëzel, Frédéric Dupuis, Heather Macbeth
-/
import linear_algebra.bilinear_form
import linear_algebra.sesquilinear_form
import data.complex.is_R_or_C
import a... |
98a857683d94a886191e976a84e26f6d146c81cc | 37583bc2df4ea4f4e29b43ee1302f004c24cfa59 | /tut5.lean | 8b51566e7323d9d08250e0846d66e15a7ffebe10 | [
"MIT"
] | permissive | Vtec234/tpil-solutions | 9cd8576953eb7ea34e5959878bf00f73b035ba4e | 70c1b5c5e33a9c26296edb17cf828327d7f69842 | refs/heads/master | 1,585,389,330,863 | 1,540,413,754,000 | 1,540,413,754,000 | 148,069,811 | 1 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 2,067 | lean | import data.list.basic
-- Go back to the exercises in Chapter 3 and Chapter 4 and redo as many as you can now
-- with tactic proofs, using also rw and simp as appropriate.
section ex1
-- Almost all of these can be proven by `safe` or `solve_iff`:
meta def solve_iff : tactic unit :=
`[ apply iff.intro, repeat { s... |
9df72458350bef53ae23286f274d07d7d4a7dd63 | 947fa6c38e48771ae886239b4edce6db6e18d0fb | /src/analysis/special_functions/log/deriv.lean | dc732754a436dd9bb8b5292152e6db0b855a4e04 | [
"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 | 12,637 | 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.log.basic
import analysis.special_functions.exp_deriv
/-!
# Derivative and series expan... |
c274a0d46bdd1fd6360642473d20970d3be9d6d6 | 5d166a16ae129621cb54ca9dde86c275d7d2b483 | /library/data/list/set.lean | 76df0eddcb3e25191dc8296b528765e39089bf90 | [
"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 | 7,886 | lean | /-
Copyright (c) 2015 Leonardo de Moura. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Leonardo de Moura, Jeremy Avigad
Set-like operations on lists.
-/
universe variables uu vv
variables {α : Type uu} {β : Type vv}
namespace list
/- disjoint -/
section disjoint
... |
9c510d0f420403cf90b5c8309ec8dd8c7fb95534 | 36c7a18fd72e5b57229bd8ba36493daf536a19ce | /library/data/set/comm_semiring.lean | 7d9345a2fe77d1f457acab19e534bc28f7f3ba8b | [
"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 | 864 | lean | /-
Copyright (c) 2015 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Author: Leonardo de Moura
(set A) is an instance of a commutative semiring
-/
import data.set.basic algebra.ring
open algebra set
definition set_comm_semiring [instance] (A : Type) : c... |
556680ab0dea17a2e0c4c7f264d286af5a389279 | 4d2583807a5ac6caaffd3d7a5f646d61ca85d532 | /src/ring_theory/polynomial/content.lean | 8a315f7d1b890e00c42f85b8a0d928a6814410d1 | [
"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 | 17,561 | lean | /-
Copyright (c) 2020 Aaron Anderson. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Aaron Anderson
-/
import algebra.gcd_monoid.finset
import data.polynomial.field_division
import data.polynomial.erase_lead
import data.polynomial.cancel_leads
/-!
# GCD structures on ... |
0455c63b60bdb298323c2cae441f52f2b80b5467 | b561a44b48979a98df50ade0789a21c79ee31288 | /stage0/src/Lean/Elab/Tactic/Basic.lean | f107e518696c69b60ac66f6dd0d5311458bc27f0 | [
"Apache-2.0"
] | permissive | 3401ijk/lean4 | 97659c475ebd33a034fed515cb83a85f75ccfb06 | a5b1b8de4f4b038ff752b9e607b721f15a9a4351 | refs/heads/master | 1,693,933,007,651 | 1,636,424,845,000 | 1,636,424,845,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 14,701 | 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, Sebastian Ullrich
-/
import Lean.Util.CollectMVars
import Lean.Parser.Command
import Lean.Meta.PPGoal
import Lean.Meta.Tactic.Assumption
import Lean.Meta.Tact... |
b55480b3180ab9d3386d97043b5f5e4f8f123841 | 74addaa0e41490cbaf2abd313a764c96df57b05d | /Mathlib/data/num/lemmas.lean | 8410b70912bdd519630639fda746a92076dc063b | [] | 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 | 32,376 | lean | /-
Copyright (c) 2014 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Author: Mario Carneiro
-/
import Mathlib.PrePort
import Mathlib.Lean3Lib.init.default
import Mathlib.data.num.bitwise
import Mathlib.data.int.char_zero
import Mathlib.data.nat.gcd
import... |
7ec4891f70b2684ccf50fbc86f8f2902110913f5 | 4b846d8dabdc64e7ea03552bad8f7fa74763fc67 | /tests/lean/run/my_tac_class.lean | f20974ca5e1dd34dd28a2b3d30cdbe560be99555 | [
"Apache-2.0"
] | permissive | pacchiano/lean | 9324b33f3ac3b5c5647285160f9f6ea8d0d767dc | fdadada3a970377a6df8afcd629a6f2eab6e84e8 | refs/heads/master | 1,611,357,380,399 | 1,489,870,101,000 | 1,489,870,101,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 1,739 | lean | meta def mytac :=
state_t nat tactic
meta instance : monad mytac :=
state_t.monad _ _
meta instance : monad.has_monad_lift tactic mytac :=
monad.monad_transformer_lift (state_t nat) tactic
meta instance (α : Type) : has_coe (tactic α) (mytac α) :=
⟨monad.monad_lift⟩
namespace mytac
meta def step {α : Type} (t : my... |
cb141e2250f86aa57a85d7b339df2cdc4ac25e88 | cf39355caa609c0f33405126beee2739aa3cb77e | /tests/lean/run/type_check_mvar.lean | d5a1c4396b69daf21de31c175062a40ce029607c | [
"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 | 197 | lean | open tactic
example : true := by do
eq ← mk_const ``eq,
ty ← mk_meta_univ >>= mk_meta_var ∘ expr.sort,
let zero := `(0 : ℕ),
let e := eq ty zero zero,
success_if_fail $ type_check e,
triv
|
1b884395ba13381e70db78b5e1c70e57b83ff5eb | aa5a655c05e5359a70646b7154e7cac59f0b4132 | /src/Init/Data/Nat/Basic.lean | 379186c83ca0857b1f0fae5f51751d45947e9909 | [
"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 | 14,115 | lean | /-
Copyright (c) 2014 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Floris van Doorn, Leonardo de Moura
-/
prelude
import Init.Core
universes u
namespace Nat
@[specialize] def foldAux {α : Type u} (f : Nat → α → α) (s : Nat) : Nat → α → α
| ... |
33cd6f01399aacfca6fea7a0b7382aa5d3a437f8 | 6950a6e5cebf75da9b91f42789baf52514655111 | /hol/problem_translation_hol.lean | 816b1a5dda73a2e1ed6ed636ebbad3fdcd835928 | [] | no_license | phlippe/Lean_hammer | a6d0a1af09fbce0c58b801032099b9b91d49ecf0 | 2116279b9c6b334f5b661e4abf4561368cca2391 | refs/heads/master | 1,587,486,769,513 | 1,561,466,931,000 | 1,561,466,931,000 | 169,705,506 | 0 | 1 | null | 1,550,228,564,000 | 1,549,614,939,000 | Lean | UTF-8 | Lean | false | false | 4,554 | lean | import .datastructures_hol
import .translation_hol
import .boolean_free_HOL
--######################################
--## Translating declarations for HOL ##
--######################################
meta def translate_axiom_expression: expr → hammer_tactic unit
-- | `()
| `(%%l = %%r) := -- c = t : τ
do (τ, _) ← ... |
e66a79485a69aab9c450e27b6099fd16a15eef20 | 63abd62053d479eae5abf4951554e1064a4c45b4 | /src/ring_theory/polynomial/homogeneous.lean | 34242ba7b1f2d6b5d83632c38325c3591a33116e | [
"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,466 | 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 data.mv_polynomial
import data.fintype.card
/-!
# Homogeneous polynomials
A multivariate polynomial `φ` is homogeneous of degree `n`
if all monomials occuri... |
634a07d35eeb8853d39cd6058ecb72141e655626 | aa3f8992ef7806974bc1ffd468baa0c79f4d6643 | /library/hott/axioms/funext.lean | 1ad2df7fad75811d040dc382d0d6484a5a33c330 | [
"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 | 1,076 | lean | -- Copyright (c) 2014 Microsoft Corporation. All rights reserved.
-- Released under Apache 2.0 license as described in the file LICENSE.
-- Author: Jeremy Avigad, Jakob von Raumer
-- Ported from Coq HoTT
-- TODO: take a look at the Coq tricks
import hott.path hott.equiv
open path
-- Funext
-- ------
-- Define functi... |
d6b1648087e058c1f41a33191f7bb7ae23472612 | 4727251e0cd73359b15b664c3170e5d754078599 | /src/tactic/choose.lean | 0a87a5f4483db4836435f355e99dbaf803eabe08 | [
"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 | 7,318 | 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, Floris van Doorn, Mario Carneiro
-/
import logic.function.basic
import tactic.core
/-!
# `choose` tactic
Performs Skolemization, that is, given `h : ∀ a:α, ∃ b:β, p ... |
f535b92d4fc6df5989228255b0f1c6740e4459d8 | b7f22e51856f4989b970961f794f1c435f9b8f78 | /tests/lean/run/tactic10.lean | 3a782c6967999d6fe6cac933f89e42e3dff5ada5 | [
"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 | 201 | lean | import logic
theorem tst (a b : Prop) (H : a ↔ b) : b ↔ a
:= by apply iff.intro;
intro Hb;
apply (iff.elim_right H Hb);
intro Ha;
apply (iff.elim_left H Ha)
check tst
|
49b69d3057be9276f324106dbae798f97ead2c10 | 626e312b5c1cb2d88fca108f5933076012633192 | /src/algebra/euclidean_absolute_value.lean | fb3529b2343c6602058cbd54061c92eb487a2ebc | [
"Apache-2.0"
] | permissive | Bioye97/mathlib | 9db2f9ee54418d29dd06996279ba9dc874fd6beb | 782a20a27ee83b523f801ff34efb1a9557085019 | refs/heads/master | 1,690,305,956,488 | 1,631,067,774,000 | 1,631,067,774,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 2,059 | lean | /-
Copyright (c) 2021 Anne Baanen. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Anne Baanen
-/
import algebra.absolute_value
import algebra.euclidean_domain
/-!
# Euclidean absolute values
This file defines a predicate `absolute_value.is_euclidean abv` stating the
... |
0ef486b785ce31bfc9364defafb1e1be2fc663c2 | 9dc8cecdf3c4634764a18254e94d43da07142918 | /src/data/matrix/pequiv.lean | 66d9cb41ffc1a7be5a614bf2c492e6853238c122 | [
"Apache-2.0"
] | permissive | jcommelin/mathlib | d8456447c36c176e14d96d9e76f39841f69d2d9b | ee8279351a2e434c2852345c51b728d22af5a156 | refs/heads/master | 1,664,782,136,488 | 1,663,638,983,000 | 1,663,638,983,000 | 132,563,656 | 0 | 0 | Apache-2.0 | 1,663,599,929,000 | 1,525,760,539,000 | Lean | UTF-8 | Lean | false | false | 5,760 | 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.matrix.basic
import data.pequiv
/-!
# partial equivalences for matrices
Using partial equivalences to represent matrices.
This file introduces the function ... |
40347d4365e2c696a3c4e05acceec6a0b53b5ee9 | 1fbca480c1574e809ae95a3eda58188ff42a5e41 | /src/util/data/minimum/lemmas.lean | b280d9855ffb556391e1419b3731fa76cf6186ab | [] | no_license | unitb/lean-lib | 560eea0acf02b1fd4bcaac9986d3d7f1a4290e7e | 439b80e606b4ebe4909a08b1d77f4f5c0ee3dee9 | refs/heads/master | 1,610,706,025,400 | 1,570,144,245,000 | 1,570,144,245,000 | 99,579,229 | 5 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 381 | lean |
import util.meta.tactic
import util.data.minimum.basic
variable {α : Type*}
variable [has_minimum α]
open has_minimum (minimum)
lemma lt_minimum_iff (x : α) {xs : set α}
(h : xs ≠ ∅)
: x < minimum xs ↔ (∀ y ∈ xs, x < y) :=
begin
split,
{ intros, apply lt_of_lt_of_le a,
apply minimum_le H, },
{ intros, ap... |
d14723d6ec8f7238e10a5eba59e0bebb8f8fe636 | aa3f8992ef7806974bc1ffd468baa0c79f4d6643 | /tests/lean/run/impbug3.lean | 5c9eb720af7623526ca448c2d1d6fc4e78eef507 | [
"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 | 600 | lean | -- category
definition Prop := Type.{0}
constant eq {A : Type} : A → A → Prop
infix `=`:50 := eq
constant ob : Type.{1}
constant mor : ob → ob → Type.{1}
inductive category : Type :=
mk : Π (id : Π (A : ob), mor A A),
(Π (A B : ob) (f : mor A A), id A = f) → category
definition id (Cat : category) := category... |
0bfa2cb0fd3734f32a6bf0648e2950d97a4fa406 | 4d2583807a5ac6caaffd3d7a5f646d61ca85d532 | /src/topology/discrete_quotient.lean | 524a9463c435e20be6f64346493957ded37c0492 | [
"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 | 14,373 | lean | /-
Copyright (c) 2021 Adam Topaz. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Calle Sönne, Adam Topaz
-/
import topology.separation
import topology.subset_properties
import topology.locally_constant.basic
/-!
# Discrete quotients of a topological space.
This file... |
d4ec2018262bfb963346a38dd9705c38984e8a29 | 4727251e0cd73359b15b664c3170e5d754078599 | /src/category_theory/limits/preserves/shapes/kernels.lean | 0662414ba6c4e4adde2b2a83c2a880fde973e709 | [
"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 | 7,551 | lean | /-
Copyright (c) 2022 Scott Morrison. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Scott Morrison
-/
import category_theory.limits.shapes.kernels
import category_theory.limits.preserves.shapes.equalizers
import category_theory.limits.preserves.shapes.zero
/-!
# Pres... |
164c501a7d4c5f2372a3df538a9aa2107acedfbf | 9be442d9ec2fcf442516ed6e9e1660aa9071b7bd | /tests/lean/run/injIssue.lean | ec0a95f0c7c8259dad8d4795d89ec59a50ad341b | [
"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 | 99 | lean | theorem ex1 (n m : Nat) : some n = some m → n = m := by
intro h
injection h with h
exact h
|
0df8d834e8018b938e901adc98866d16bccd0efc | b7f22e51856f4989b970961f794f1c435f9b8f78 | /hott/algebra/category/constructions/comma.hlean | ea89813b8fcc0437e8d9548d50f1b863529d2fab | [
"Apache-2.0"
] | permissive | soonhokong/lean | cb8aa01055ffe2af0fb99a16b4cda8463b882cd1 | 38607e3eb57f57f77c0ac114ad169e9e4262e24f | refs/heads/master | 1,611,187,284,081 | 1,450,766,737,000 | 1,476,122,547,000 | 11,513,992 | 2 | 0 | null | 1,401,763,102,000 | 1,374,182,235,000 | C++ | UTF-8 | Lean | false | false | 6,767 | 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
Comma category
-/
import ..functor.basic ..strict ..category
open eq functor equiv sigma sigma.ops is_trunc iso is_equiv
namespace category
structure comma_o... |
3fd5af2c7a47d870c2a9a11d81660bcdbcf6ad52 | fa02ed5a3c9c0adee3c26887a16855e7841c668b | /src/data/set/intervals/default.lean | b071ccd6fd329d16467c945275239278d1a2d7b6 | [
"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 | 80 | lean | import data.set.intervals.disjoint
import data.set.intervals.unordered_interval
|
aff21f49977c99ab0a4fc38196509e793b3c6911 | 8cae430f0a71442d02dbb1cbb14073b31048e4b0 | /src/category_theory/sites/compatible_plus.lean | 75a5242fe1bf1946977958d332794bb9918ea2e5 | [
"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 | 8,839 | lean | /-
Copyright (c) 2021 Adam Topaz. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Adam Topaz
-/
import category_theory.sites.whiskering
import category_theory.sites.plus
/-!
> THIS FILE IS SYNCHRONIZED WITH MATHLIB4.
> Any changes to this file require a corresponding P... |
f685b732eee6e79ff47bd9f3a6a1d2b084a2619a | 8cae430f0a71442d02dbb1cbb14073b31048e4b0 | /src/analysis/special_functions/sqrt.lean | 4d47dc7972a8b24e3c8d7c547f013d1ec8cef98b | [
"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 | 6,367 | lean | /-
Copyright (c) 2021 Yury G. Kudryashov. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Yury G. Kudryashov
-/
import analysis.calculus.cont_diff
/-!
# Smoothness of `real.sqrt`
> THIS FILE IS SYNCHRONIZED WITH MATHLIB4.
> Any changes to this file require a correspon... |
d3a087dba91c929b4fb6414c18b1fd6245fc1743 | 6e41ee3ac9b96e8980a16295cc21f131e731884f | /library/algebra/category/constructions.lean | 88b007ff5e75b188ba3fc3d7bdf82bd6696be9f6 | [
"Apache-2.0"
] | permissive | EgbertRijke/lean | 3426cfa0e5b3d35d12fc3fd7318b35574cb67dc3 | 4f2e0c6d7fc9274d953cfa1c37ab2f3e799ab183 | refs/heads/master | 1,610,834,871,476 | 1,422,159,801,000 | 1,422,159,801,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 15,851 | lean | -- Copyright (c) 2014 Floris van Doorn. All rights reserved.
-- Released under Apache 2.0 license as described in the file LICENSE.
-- Author: Floris van Doorn
-- This file contains basic constructions on categories, including common categories
import .natural_transformation
import data.unit data.sigma data.prod dat... |
25fd6872c565092fdb3359c64147b1acc6712379 | 8cb37a089cdb4af3af9d8bf1002b417e407a8e9e | /library/init/classical.lean | bf2227b7a7136c6397d725b592cfe58da93ed621 | [
"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 | 5,702 | lean | /-
Copyright (c) 2015 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Leonardo de Moura, Jeremy Avigad, Mario Carneiro
-/
prelude
import init.data.subtype.basic init.funext
namespace classical
universes u v
/- the axiom -/
axiom choice {α : Sort... |
60692c7e150a81156d7b97b7ec406e6de15b68b1 | 592ee40978ac7604005a4e0d35bbc4b467389241 | /Library/generated/mathscheme-lean/TwoPointed01.lean | 523ec9636c229386429e499b4808ea383fd2ea33 | [] | no_license | ysharoda/Deriving-Definitions | 3e149e6641fae440badd35ac110a0bd705a49ad2 | dfecb27572022de3d4aa702cae8db19957523a59 | refs/heads/master | 1,679,127,857,700 | 1,615,939,007,000 | 1,615,939,007,000 | 229,785,731 | 4 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 5,034 | lean | import init.data.nat.basic
import init.data.fin.basic
import data.vector
import .Prelude
open Staged
open nat
open fin
open vector
section TwoPointed01
structure TwoPointed01 (A : Type) : Type :=
(e1 : A)
(e2 : A)
open TwoPointed01
structure Sig (AS : Type) : Type :=
(e1S : AS)
... |
17ff00cb171ac82803a232b9e5d47425009c05d4 | cf39355caa609c0f33405126beee2739aa3cb77e | /library/init/meta/congr_lemma.lean | ad9cb7de5d5f098480a3801fdd24090602f38475 | [
"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 | 6,391 | 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.tactic init.meta.format init.function
/-- This is a kind attached to an argument of a congruence lemma that tells the simplifier h... |
5d78c4291152ebfc032fb043c90b5ca68cdb07a0 | d1a52c3f208fa42c41df8278c3d280f075eb020c | /src/Lean/Server/FileWorker/WidgetRequests.lean | 059ca84ae0f5c24d874e1e63661197beefd1f76a | [
"Apache-2.0",
"LLVM-exception",
"NCSA",
"LGPL-3.0-only",
"LicenseRef-scancode-inner-net-2.0",
"BSD-3-Clause",
"LGPL-2.0-or-later",
"Spencer-94",
"LGPL-2.1-or-later",
"HPND",
"LicenseRef-scancode-pcre",
"ISC",
"LGPL-2.1-only",
"LicenseRef-scancode-other-permissive",
"SunPro",
"CMU-Mach"... | permissive | cipher1024/lean4 | 6e1f98bb58e7a92b28f5364eb38a14c8d0aae393 | 69114d3b50806264ef35b57394391c3e738a9822 | refs/heads/master | 1,642,227,983,603 | 1,642,011,696,000 | 1,642,011,696,000 | 228,607,691 | 0 | 0 | Apache-2.0 | 1,576,584,269,000 | 1,576,584,268,000 | null | UTF-8 | Lean | false | false | 3,230 | lean | /-
Copyright (c) 2021 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Wojciech Nawrocki
-/
import Lean.Widget.InteractiveCode
import Lean.Widget.InteractiveGoal
import Lean.Widget.InteractiveDiagnostic
import Lean.Server.Rpc.RequestHandling
impo... |
0d43c1d59d52ae4e495836fdaddd63f2f1b55fac | 74addaa0e41490cbaf2abd313a764c96df57b05d | /Mathlib/algebra/ring_quot_auto.lean | cd345788c1ddd84aece5590942051b5addffad30 | [] | 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 | 12,758 | lean | /-
Copyright (c) 2020 Scott Morrison. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Scott Morrison
-/
import Mathlib.PrePort
import Mathlib.Lean3Lib.init.default
import Mathlib.algebra.algebra.basic
import Mathlib.ring_theory.ideal.basic
import Mathlib.PostPort
unive... |
92f179cad2d33d059a7093343ab5513262a055e1 | cf39355caa609c0f33405126beee2739aa3cb77e | /tests/lean/run/partial_explicit1.lean | b1ec3de3cecc077af5b1c3f844c82b0fc1f4f376 | [
"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 | 128 | lean | def eq_rect (A : Type) (x : A) (P : A → Type) (f : P x) (y : A) (e : x = y) : P y :=
@eq.rec_on _ _ (λ (y : A), P y) _ e f
|
512ec88b72d438c14a5c1fd52c3352ba10f4fa63 | ec62863c729b7eedee77b86d974f2c529fa79d25 | /11/b.lean | dbea09cc03d47cf394f020580c78675fd7aff188 | [] | no_license | rwbarton/advent-of-lean-4 | 2ac9b17ba708f66051e3d8cd694b0249bc433b65 | 417c7e2718253ba7148c0279fcb251b6fc291477 | refs/heads/main | 1,675,917,092,057 | 1,609,864,581,000 | 1,609,864,581,000 | 317,700,289 | 24 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 1,958 | lean | def Array.mkFun {α : Type} (n : Nat) (f : Nat → α) : Array α :=
Array.mk ((List.range n).map f)
inductive Seat
| floor | empty | occupied
open Seat
def Seat.beq : Seat → Seat → Bool
| floor, floor => true
| empty, empty => true
| occupied, occupied => true
| _, _ => false
instance : BEq Seat := ⟨Seat.beq⟩
instance... |
b4223203ae69e757e9dc67d2448811448466e7c2 | 0942a74cc0b397d09bcd1059762fa076b1a5d308 | /src/trivial2.lean | ae3e68bdc84c243b105580fc89f8246dc36fa303 | [
"Unlicense"
] | permissive | sguzman/lean-examples | 81df2010e204be1a9fde6ae18295e299e69cebca | c7428b2982d0468d0adb4453766a27e1550a72e8 | refs/heads/master | 1,668,438,655,034 | 1,594,156,605,000 | 1,594,156,605,000 | 277,626,098 | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 55 | lean | example : (2:int)-(3:int)=(-1:int) :=
begin
trivial
end |
638bb4500340be9b2cdec2ab33473fa0e5316e75 | d406927ab5617694ec9ea7001f101b7c9e3d9702 | /src/analysis/calculus/taylor.lean | 31527b5521359368fa841899346c4f611aaf2032 | [
"Apache-2.0"
] | permissive | alreadydone/mathlib | dc0be621c6c8208c581f5170a8216c5ba6721927 | c982179ec21091d3e102d8a5d9f5fe06c8fafb73 | refs/heads/master | 1,685,523,275,196 | 1,670,184,141,000 | 1,670,184,141,000 | 287,574,545 | 0 | 0 | Apache-2.0 | 1,670,290,714,000 | 1,597,421,623,000 | Lean | UTF-8 | Lean | false | false | 18,626 | lean | /-
Copyright (c) 2022 Moritz Doll. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Moritz Doll
-/
import analysis.calculus.iterated_deriv
import analysis.calculus.mean_value
import data.polynomial.basic
import data.polynomial.module
/-!
# Taylor's theorem
This file d... |
83b9757ff052e07bf2e88ce98d52f74f34ca46e8 | 957a80ea22c5abb4f4670b250d55534d9db99108 | /tests/lean/run/abstract_zeta.lean | c164bc63cf11ead6241426d41159e2d0884830dd | [
"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 | 468 | lean | -- The type of h depends on the zeta-expansion of n. When we abstract the
-- subterm proving `n < 5`, we need to zeta-expand n not just in the subterm,
-- but also in the local context.
lemma bug₁ : fin 5 :=
let n : ℕ := 3 in
have h : n < 5, from dec_trivial,
⟨n, by abstract { exact h }⟩
def bug₂ : fin 5 :=
let n : ... |
63c4dae3c8183f1866f5747218a1616317c4dc7f | 69d4931b605e11ca61881fc4f66db50a0a875e39 | /src/topology/discrete_quotient.lean | f044d7e06a9a610b93ae0d1375a3fe25d585d2c6 | [
"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 | 12,389 | lean | /-
Copyright (c) 2021 Adam Topaz. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Calle Sönne, Adam Topaz
-/
import topology.separation
import topology.subset_properties
import topology.locally_constant.basic
/-!
# Discrete quotients of a topological space.
This file... |
9db6d709555ba9e169aa09b51c9cf0a468e41081 | c777c32c8e484e195053731103c5e52af26a25d1 | /src/number_theory/dioph.lean | 5b5d2b23291d114928a9f2c2b736cc026e01f3b8 | [
"Apache-2.0"
] | permissive | kbuzzard/mathlib | 2ff9e85dfe2a46f4b291927f983afec17e946eb8 | 58537299e922f9c77df76cb613910914a479c1f7 | refs/heads/master | 1,685,313,702,744 | 1,683,974,212,000 | 1,683,974,212,000 | 128,185,277 | 1 | 0 | null | 1,522,920,600,000 | 1,522,920,600,000 | null | UTF-8 | Lean | false | false | 26,435 | 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.fin.fin2
import data.pfun
import data.vector3
import number_theory.pell_matiyasevic
/-!
# Diophantine functions and Matiyasevic's theorem
Hilbert's tent... |
dfe933ec93608629e4e8ff520a349f010e22f925 | 26ac254ecb57ffcb886ff709cf018390161a9225 | /src/topology/uniform_space/absolute_value.lean | ca4bf19d973fe370cb5dee8bb5dc13652f9ba96e | [
"Apache-2.0"
] | permissive | eric-wieser/mathlib | 42842584f584359bbe1fc8b88b3ff937c8acd72d | d0df6b81cd0920ad569158c06a3fd5abb9e63301 | refs/heads/master | 1,669,546,404,255 | 1,595,254,668,000 | 1,595,254,668,000 | 281,173,504 | 0 | 0 | Apache-2.0 | 1,595,263,582,000 | 1,595,263,581,000 | null | UTF-8 | Lean | false | false | 2,981 | lean | /-
Copyright (c) 2019 Patrick Massot. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Patrick Massot
-/
import data.real.cau_seq
import topology.uniform_space.basic
/-!
# Uniform structure induced by an absolute value
We build a uniform space structure on a commutativ... |
3a00c61732d34e9b7a95c0a997835bae87f77851 | f1b175e38ffc5cc1c7c5551a72d0dbaf70786f83 | /group_theory/order_of_element.lean | c729b6f107bd8e06ff49a42bb0ffd5d06f8849f1 | [
"Apache-2.0"
] | permissive | mjendrusch/mathlib | df3ae884dd5ce38c7edf452bcbfd3baf4e3a6214 | 5c209edb7eb616a26f64efe3500f2b1ba95b8d55 | refs/heads/master | 1,585,663,284,800 | 1,539,062,055,000 | 1,539,062,055,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 8,846 | lean | /-
Copyright (c) 2018 Johannes Hölzl. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Johannes Hölzl
-/
import data.set.finite group_theory.coset
open set function
variables {α : Type*} {s : set α} {a a₁ a₂ b c: α}
-- TODO this lemma isn't used anywhere in this file, ... |
56f29b42ac98bd2890766f6fd3ed408034ef38d7 | 57c233acf9386e610d99ed20ef139c5f97504ba3 | /src/combinatorics/hall/finite.lean | 888995534e72d7939bd29cae29d6751483cebd2c | [
"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 | 11,619 | lean | /-
Copyright (c) 2021 Alena Gusakov, Bhavik Mehta, Kyle Miller. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Alena Gusakov, Bhavik Mehta, Kyle Miller
-/
import data.fintype.basic
import data.set.finite
/-!
# Hall's Marriage Theorem for finite index types
This modul... |
2c7351abd12a44341e2e112a0eadbe02dc1b5f82 | d406927ab5617694ec9ea7001f101b7c9e3d9702 | /src/topology/algebra/module/determinant.lean | e57201fa2bb0c0191e5bcd8414169f3a187fd02f | [
"Apache-2.0"
] | permissive | alreadydone/mathlib | dc0be621c6c8208c581f5170a8216c5ba6721927 | c982179ec21091d3e102d8a5d9f5fe06c8fafb73 | refs/heads/master | 1,685,523,275,196 | 1,670,184,141,000 | 1,670,184,141,000 | 287,574,545 | 0 | 0 | Apache-2.0 | 1,670,290,714,000 | 1,597,421,623,000 | Lean | UTF-8 | Lean | false | false | 1,078 | lean | /-
Copyright (c) 2019 Sébastien Gouëzel. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Jan-David Salchow, Sébastien Gouëzel, Jean Lo, Yury Kudryashov, Frédéric Dupuis,
Heather Macbeth
-/
import topology.algebra.module.basic
import linear_algebra.determinant
/-!
# T... |
7c0b9da7be159e9aaab5bfe3b71fff9fb1400c3c | 55c7fc2bf55d496ace18cd6f3376e12bb14c8cc5 | /src/category_theory/abelian/basic.lean | 26d77b57664979c6b6b9b2b83b853b5258839b6f | [
"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 | 21,659 | lean | /-
Copyright (c) 2020 Markus Himmel. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Markus Himmel
-/
import category_theory.limits.shapes.constructions.pullbacks
import category_theory.limits.shapes.regular_mono
import category_theory.limits.shapes.biproducts
import c... |
84b10799ebe15457f5e74ccb827702ae385f160b | 94e33a31faa76775069b071adea97e86e218a8ee | /src/measure_theory/function/lp_order.lean | 733d44f3a135bed6ee6c55bdd3fe6afa3de9631c | [
"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 | 3,456 | lean | /-
Copyright (c) 2021 Rémy Degenne. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Rémy Degenne
-/
import measure_theory.function.lp_space
import analysis.normed_space.lattice_ordered_group
/-!
# Order related properties of Lp spaces
### Results
- `Lp E p μ` is an `... |
fefb45845b59fc478487bca4abf674e60104b392 | bb31430994044506fa42fd667e2d556327e18dfe | /src/algebra/group/inj_surj.lean | d9c43e3513bddf68907298e72fccfcac34956358 | [
"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 | 25,421 | 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
import data.int.cast.basic
/-!
# Lifting algebraic data classes along injective/surjective maps
> THIS FILE IS... |
0b795d564e92067954eff107d681d95548b9ee27 | e1da55f4222dac91b940ca052928eaace09762da | /src/energy.lean | 69d4dd5e15929452a304dce3244c109fda90839c | [] | no_license | b-mehta/regularity-lemma | c5826e22c280d0b073a4e62dba731f4dd3d1b69f | cf26082b0c88fa54276e6fdc3338c15e607c52c6 | refs/heads/master | 1,658,209,524,267 | 1,644,406,456,000 | 1,644,406,456,000 | 457,327,371 | 1 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 3,674 | lean | /-
Copyright (c) 2021 Yaël Dillies, Bhavik Mehta. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Yaël Dillies, Bhavik Mehta
-/
import .mathlib
import combinatorics.choose.bounds
import data.sym.card
/-!
# Index
-/
open_locale big_operators
open finset fintype functio... |
7469c9f7b378b00cebac4e4cb4c06487dc7841b6 | 9dc8cecdf3c4634764a18254e94d43da07142918 | /src/data/polynomial/degree/lemmas.lean | 5bf2503324f5d42a1db3809277ed85731c397ab6 | [
"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 | 12,644 | 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.eval
import tactic.interval_cases
/-!
# Theory of degrees of polynomials
Some of the main results... |
5dabc4503ea922a310d1fbc95d70af6960bfc5c2 | 957a80ea22c5abb4f4670b250d55534d9db99108 | /tests/lean/run/conv_tac1.lean | d25e2cc6676383628dc61848646584e96f3d74b5 | [
"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 | 3,463 | lean | example (a b : nat) : (λ x, a + x) 0 = b + 1 + a :=
begin
conv in (_ + 1) { change nat.succ b },
guard_target (λ x, a + x) 0 = nat.succ b + a,
admit
end
def Div : nat → nat → nat | x y :=
if h : 0 < y ∧ y ≤ x
then
have x - y < x, from sorry,
Div (x - y) y + 1
else 0
example (x y : nat) : 0 < y → y ≤ x → Div... |
8594460f1c3d777bad1d082268c1d0f8a27eb20b | 74addaa0e41490cbaf2abd313a764c96df57b05d | /Mathlib/algebra/free.lean | 99a6de4152255104ead101a802531648c4d104af | [] | 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 | 21,287 | lean | /-
Copyright (c) 2019 Kenny Lau. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Kenny Lau
-/
import Mathlib.PrePort
import Mathlib.Lean3Lib.init.default
import Mathlib.data.equiv.basic
import Mathlib.control.applicative
import Mathlib.control.traversable.basic
import M... |
77a36b1ef21d50bf40929be36d4c7cba4208e863 | 6432ea7a083ff6ba21ea17af9ee47b9c371760f7 | /src/Lean/Elab/Print.lean | 8e22327e1d1dcaf077c949b38fa0bd6ae8376214 | [
"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 | 5,988 | lean | /-
Copyright (c) 2020 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Leonardo de Moura
-/
import Lean.Util.FoldConsts
import Lean.Elab.Command
namespace Lean.Elab.Command
private def throwUnknownId (id : Name) : CommandElabM Unit :=
throwErro... |
81a16e27ceccc8917d6cae0614ff7fbcf1cb7c9c | fa02ed5a3c9c0adee3c26887a16855e7841c668b | /src/algebra/category/Module/abelian.lean | 788ce6e479ca93c64f985e627e4b9b5cdece5a2b | [
"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,291 | lean | /-
Copyright (c) 2020 Markus Himmel. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Markus Himmel
-/
import algebra.category.Module.kernels
import algebra.category.Module.limits
import category_theory.abelian.exact
/-!
# The category of left R-modules is abelian.
Add... |
e32be0514b1b807fc2fe68cfae914514a0244af9 | 22e97a5d648fc451e25a06c668dc03ac7ed7bc25 | /src/algebra/continued_fractions/default.lean | fc9fd8b946a80959bf689e480249b34887fcf243 | [
"Apache-2.0"
] | permissive | keeferrowan/mathlib | f2818da875dbc7780830d09bd4c526b0764a4e50 | aad2dfc40e8e6a7e258287a7c1580318e865817e | refs/heads/master | 1,661,736,426,952 | 1,590,438,032,000 | 1,590,438,032,000 | 266,892,663 | 0 | 0 | Apache-2.0 | 1,590,445,835,000 | 1,590,445,835,000 | null | UTF-8 | Lean | false | false | 371 | lean | /-
Copyright (c) 2019 Kevin Kappelmann. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Kevin Kappelmann
-/
import algebra.continued_fractions.continuants_recurrence
import algebra.continued_fractions.terminated_stable
import algebra.continued_fractions.convergents_equi... |
ec2b98435aff1a2c3e1b9e72a1cf96da318a0a6a | 74addaa0e41490cbaf2abd313a764c96df57b05d | /Mathlib/data/multiset/erase_dup.lean | a9c997940fbf8e37eaf9f77ece1e4e7c54527b1a | [] | 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 | 4,292 | 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 Mathlib.PrePort
import Mathlib.Lean3Lib.init.default
import Mathlib.data.multiset.nodup
import Mathlib.PostPort
universes u_1 u_2
namespace Mathlib
/-!
# Er... |
4bb668b052218a646417d1731838ba0947afc03d | 4d2583807a5ac6caaffd3d7a5f646d61ca85d532 | /src/topology/sheaves/sheaf_condition/pairwise_intersections.lean | 76b0373c9bb67dcd9bf3fd5d39150e9c24042f5a | [
"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 | 13,916 | 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 topology.sheaves.sheaf
import category_theory.limits.preserves.basic
import category_theory.category.pairwise
/-!
# Equivalent formulations of the sheaf cond... |
51aa3ac37e086ededba25f2d2df16d67d2f811e0 | 9dc8cecdf3c4634764a18254e94d43da07142918 | /archive/100-theorems-list/30_ballot_problem.lean | 9e95d36c42195d97623ee339997408c9b72ee755 | [
"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 | 20,393 | lean | /-
Copyright (c) 2022 Bhavik Mehta, Kexing Ying. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Bhavik Mehta, Kexing Ying
-/
import probability.cond_count
/-!
# Ballot problem
This file proves Theorem 30 from the [100 Theorems List](https://www.cs.ru.nl/~freek/100/).... |
27827248b77e61b24b30a26c8444fc63ab21a690 | 842b7df4a999c5c50bbd215b8617dd705e43c2e1 | /nat_num_game/src/Advanced_Addition_World/adv_add_wrld5.lean | c79cad8873ad9ae595fca54153a69b57b72e67bd | [] | no_license | Samyak-Surti/LeanCode | 1c245631f74b00057d20483c8ac75916e8643b14 | 944eac3e5f43e2614ed246083b97fbdf24181d83 | refs/heads/master | 1,669,023,730,828 | 1,595,534,784,000 | 1,595,534,784,000 | 282,037,186 | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 234 | lean | theorem add_right_cancel (a t b : ℕ) : a + t = b + t → a = b :=
begin
intro h,
induction t with d hd,
repeat {rw add_zero at h},
exact h,
repeat {rw nat.add_succ at h},
rw hd,
apply nat.succ.inj h,
end |
a99751724e8e5c2c85f784ac7ee50b2563d581da | a162e54d0534f0863de20e911278e6c41ba96e28 | /src/imo2008_q3.lean | 14f1cc0f116023d6f6ced4a50b0248967d87b894 | [
"Apache-2.0"
] | permissive | manuelcandales/imo-lean | 0ef79d470b58064d16a94adfb83711ae3265a19a | fa54938100fc84c98fe04e1d19e20a424dd006e7 | refs/heads/master | 1,680,228,525,536 | 1,617,602,898,000 | 1,617,602,898,000 | 353,518,197 | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 4,871 | lean | /-
Copyright (c) 2021 Manuel Candales. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Manuel Candales
-/
import data.real.basic
import data.real.sqrt
import data.nat.prime
import number_theory.primes_congruent_one
import number_theory.quadratic_reciprocity
/-!
# IMO 2... |
c6b44a375b6ce52bb21e6188be2590ac6dac2a5a | 31f556cdeb9239ffc2fad8f905e33987ff4feab9 | /src/Lean/Meta/Coe.lean | 7c82e17f76a6944c582e0f9f391702f4af226d8a | [
"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 | tobiasgrosser/lean4 | ce0fd9cca0feba1100656679bf41f0bffdbabb71 | ebdbdc10436a4d9d6b66acf78aae7a23f5bd073f | refs/heads/master | 1,673,103,412,948 | 1,664,930,501,000 | 1,664,930,501,000 | 186,870,185 | 0 | 0 | Apache-2.0 | 1,665,129,237,000 | 1,557,939,901,000 | Lean | UTF-8 | Lean | false | false | 1,123 | lean | /-
Copyright (c) 2021 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Leonardo de Moura
-/
import Lean.Meta.WHNF
import Lean.Meta.Transform
namespace Lean.Meta
/--
Return true iff `declName` is one of the auxiliary definitions/projections
us... |
5cbdfba05cf2da3d66c852e7288342025cfe96a2 | ebf7140a9ea507409ff4c994124fa36e79b4ae35 | /src/exercises_sources/tuesday/numbers.lean | 25b095623b3684719041489cd12e553b8ad19bc3 | [] | no_license | fundou/lftcm2020 | 3e88d58a92755ea5dd49f19c36239c35286ecf5e | 99d11bf3bcd71ffeaef0250caa08ecc46e69b55b | refs/heads/master | 1,685,610,799,304 | 1,624,070,416,000 | 1,624,070,416,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 3,264 | lean | import tactic
import data.real.basic
import number_theory.padics
import data.int.gcd
/-!
## Exercises about numbers and casts
-/
/-!
## First exercises
These first examples are just to get you comfortable with
`norm_num`, `norm_cast`, and friends.
-/
example : 12345 < 67890 :=
begin
sorry
end
example {α : T... |
44b1570c7d98ea38d761a8106b1f87e6f5664f0b | 4efff1f47634ff19e2f786deadd394270a59ecd2 | /src/field_theory/finite.lean | c039bb68b6aaf834dc27c532445dc353a922e909 | [
"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 | 12,194 | lean | /-
Copyright (c) 2018 Chris Hughes. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Chris Hughes, Joey van Langen, Casper Putz
-/
import tactic.apply_fun
import data.equiv.ring
import data.zmod.basic
import linear_algebra.basis
import ring_theory.integral_domain
import ... |
65cc77e72d7027a029e920004456ec93b4d61657 | 4d2583807a5ac6caaffd3d7a5f646d61ca85d532 | /src/linear_algebra/general_linear_group.lean | edca38a9a67fbcc1ca7fa6e772120cbcb5d6094c | [
"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,772 | lean | /-
Copyright (c) 2021 Chris Birkbeck. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Chris Birkbeck
-/
import linear_algebra.matrix
import linear_algebra.matrix.nonsingular_inverse
import linear_algebra.special_linear_group
import linear_algebra.determinant
/-!
# The ... |
ec2aaf670acfc7c14cf1478729bc0adbd7c1349a | 3f7026ea8bef0825ca0339a275c03b911baef64d | /src/category_theory/single_obj.lean | 52b3ca32e8e740aec9994a2da0c317c71cbf91cd | [
"Apache-2.0"
] | permissive | rspencer01/mathlib | b1e3afa5c121362ef0881012cc116513ab09f18c | c7d36292c6b9234dc40143c16288932ae38fdc12 | refs/heads/master | 1,595,010,346,708 | 1,567,511,503,000 | 1,567,511,503,000 | 206,071,681 | 0 | 0 | Apache-2.0 | 1,567,513,643,000 | 1,567,513,643,000 | null | UTF-8 | Lean | false | false | 5,250 | lean | import category_theory.endomorphism category_theory.groupoid category_theory.Cat
import data.equiv.algebra algebra.Mon.basic
import tactic.find
/-!
Copyright (c) 2019 Yury Kudryashov. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Yury Kudryashov
# Single-object cate... |
2e684b47c8e0d74c9bcccde3aae9daa67e84e690 | 74addaa0e41490cbaf2abd313a764c96df57b05d | /Mathlib/control/fold.lean | c6ae1e3429888c48712de8e9beacbabba3ec8fd7 | [] | 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 | 14,971 | lean | /-
Copyright (c) 2018 Simon Hudon. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Simon Hudon, Sean Leather
-/
import Mathlib.PrePort
import Mathlib.Lean3Lib.init.default
import Mathlib.algebra.free_monoid
import Mathlib.algebra.opposites
import Mathlib.control.travers... |
1603b319f2405d18f7a769f21863f9a2c2090476 | 4d2583807a5ac6caaffd3d7a5f646d61ca85d532 | /src/data/multiset/finset_ops.lean | 453d1bcedfcf6fac74675da2030e9c95fa3abddc | [
"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 | 8,727 | lean | /-
Copyright (c) 2017 Mario Carneiro. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Mario Carneiro
-/
import data.multiset.erase_dup
/-!
# Preparations for defining operations on `finset`.
The operations here ignore multiplicities,
and preparatory for defining the c... |
79b4712d73ced244291c64b98c2042500f2ae019 | 8cae430f0a71442d02dbb1cbb14073b31048e4b0 | /src/tactic/generalize_proofs.lean | 1f380aecab555e474045baa44eca25436d90a424 | [
"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 | 3,168 | 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 tactic.doc_commands
/-!
# `generalize_proofs`
A simple tactic to find and replace all occurrences of proof terms in the
context and goal with new variables.
... |
eb9b65e5a04bcd5710f35a6a60f1921a624b4047 | 9be442d9ec2fcf442516ed6e9e1660aa9071b7bd | /tests/lean/run/casePrime.lean | 913b1fc7c1c18fc6d4b53b5ec0e413e43a84d286 | [
"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 | 465 | lean | example (hp : p) (hq : p → q) (hr : p → r) : (s ∨ q) ∧ (r ∨ s) := by
constructor
case' left => apply Or.inr
case' right => apply Or.inl
case' left => apply hq
case' right => apply hr
all_goals assumption
example (hp : p) (hq : p → q) (hr : p → r) : (p ∧ q) ∧ (r ∧ p) := by
constructor
case' left => c... |
03b01df9b794a63de9ea44b9f027575296896ca3 | 80cc5bf14c8ea85ff340d1d747a127dcadeb966f | /src/field_theory/intermediate_field.lean | 20a47a2d28e830a2cf9ecf93ec2e581e6ef7f5f7 | [
"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 | 9,358 | 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 ring_theory.algebra_tower
/-!
# Intermediate fields
Let `L / K` be a field extension, given as an instance `algebra K L`.
This file d... |
7a064456d2a93cac3c89b49bc9be886e56d887f9 | 6432ea7a083ff6ba21ea17af9ee47b9c371760f7 | /tests/compiler/phashmap2.lean | 18745da5057bd33522f9372f35caf1e2e4e15da2 | [
"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,574 | lean | import Lean.Data.PersistentHashMap
import Lean.Data.Format
open Lean Std Lean.PersistentHashMap
abbrev Map := PersistentHashMap Nat Nat
partial def formatMap : Node Nat Nat → Format
| Node.collision keys vals _ => Format.sbracket $
keys.size.fold
(fun i fmt =>
let k := keys.get! i;
let v := vals.g... |
c21f9759d97b584355eb5a29c3fc2a98ba132292 | 367134ba5a65885e863bdc4507601606690974c1 | /src/group_theory/submonoid/operations.lean | 5c4a5c011456ff0c3a013b1fe9dd4c8752e18ffe | [
"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 | 24,221 | lean | /-
Copyright (c) 2018 Johannes Hölzl. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Johannes Hölzl, Kenny Lau, Johan Commelin, Mario Carneiro, Kevin Buzzard,
Amelia Livingston, Yury Kudryashov
-/
import group_theory.submonoid.basic
import data.equiv.mul_add
import al... |
ae01fc9c598839a564b08dd885aee1f86cfaf00d | ce89339993655da64b6ccb555c837ce6c10f9ef4 | /bluejam/chap4_exercise7.lean | 0ea89420768643f6ec80b21723b3f0626490dee6 | [] | no_license | zeptometer/LearnLean | ef32dc36a22119f18d843f548d0bb42f907bff5d | bb84d5dbe521127ba134d4dbf9559b294a80b9f7 | refs/heads/master | 1,625,710,824,322 | 1,601,382,570,000 | 1,601,382,570,000 | 195,228,870 | 2 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 227 | lean | #check sub_self
set_option trace.check true
example (x : ℤ) : x * 0 = 0 :=
calc x * 0 = x * (0 - 0) : by rw sub_self (0:ℤ)
... = x * 0 - x * 0 : by rw mul_sub x 0 0
... = 0 : by rw sub_self
|
4e4d6f68e70494739a4a5a57cdb960d408e43309 | 947fa6c38e48771ae886239b4edce6db6e18d0fb | /src/data/finset/lattice.lean | 5e3637a148ba5d3e2fbdd2fed2def36a4efb7754 | [
"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 | 59,379 | lean | /-
Copyright (c) 2018 Mario Carneiro. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Mario Carneiro
-/
import data.finset.fold
import data.finset.option
import data.finset.prod
import data.multiset.lattice
import order.complete_lattice
/-!
# Lattice operations on fins... |
3c0d8f02f70960fd952f30bfed22ff43fd162b30 | 0408d6ea582e97d5cc55ac8a0980d26df896ce66 | /src/tests.lean | 99b9ddab56fb2a4ae29c49016da62d34585d8b67 | [] | no_license | lean-forward/coe_tactic | bba94535c7fb6ef65fcd81bedc28062b238a1594 | d5c30df244c3402de6323a538e99b5324779a2cb | refs/heads/master | 1,588,474,971,049 | 1,557,135,293,000 | 1,557,135,293,000 | 178,387,237 | 1 | 0 | null | 1,556,542,286,000 | 1,553,856,413,000 | Lean | UTF-8 | Lean | false | false | 2,518 | lean | /-
unit tests suggested by Kevin Buzzard
-/
import data.complex.basic -- ℕ, ℤ, ℚ, ℝ, ℂ
import norm_cast
constants (an bn cn dn : ℕ) (az bz cz dz : ℤ) (aq bq cq dq : ℚ)
constants (ar br cr dr : ℝ) (ac bc cc dc : ℂ)
example : (an : ℤ) = bn → an = bn := λ h, by exact_mod_cast h -- by simp
example : an = bn → (an : ℤ) =... |
c57a6de17899c3052bc268731e11d4ae66e8d2d6 | 8cae430f0a71442d02dbb1cbb14073b31048e4b0 | /src/analysis/special_functions/complex/log.lean | 7965cd052fc0aeceabbbcd3b90c40688d2109d30 | [
"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,401 | 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.complex.arg
import analysis.special_functions.log.basic
/-!
# The co... |
856232d0e0a8fa939bbf360a12db7cc9be5dddc2 | 22e97a5d648fc451e25a06c668dc03ac7ed7bc25 | /src/data/padics/hensel.lean | 05190cb5bb93d1c8da6de499c80b061480268847 | [
"Apache-2.0"
] | permissive | keeferrowan/mathlib | f2818da875dbc7780830d09bd4c526b0764a4e50 | aad2dfc40e8e6a7e258287a7c1580318e865817e | refs/heads/master | 1,661,736,426,952 | 1,590,438,032,000 | 1,590,438,032,000 | 266,892,663 | 0 | 0 | Apache-2.0 | 1,590,445,835,000 | 1,590,445,835,000 | null | UTF-8 | Lean | false | false | 21,547 | 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.padics.padic_integers
import topology.metric_space.cau_seq_filter
import analysis.specific_limits
import topology.algebra.polynomial
/-!
# Hensel's lem... |
bb835126d1a7ea72a2318025d5e1d9724d2f655f | 4727251e0cd73359b15b664c3170e5d754078599 | /src/ring_theory/valuation/extend_to_localization.lean | 03c7c8674849dec391d6c729d9e20708a872d33c | [
"Apache-2.0"
] | permissive | Vierkantor/mathlib | 0ea59ac32a3a43c93c44d70f441c4ee810ccceca | 83bc3b9ce9b13910b57bda6b56222495ebd31c2f | refs/heads/master | 1,658,323,012,449 | 1,652,256,003,000 | 1,652,256,003,000 | 209,296,341 | 0 | 1 | Apache-2.0 | 1,568,807,655,000 | 1,568,807,655,000 | null | UTF-8 | Lean | false | false | 1,953 | lean | /-
Copyright (c) 2022 Adam Topaz. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Adam Topaz
-/
import ring_theory.localization.at_prime
import ring_theory.valuation.basic
/-!
# Extending valuations to a localization
We show that, given a valuation `v` taking values ... |
15842750e811ba1ced32f0e51b21d19646710980 | 947b78d97130d56365ae2ec264df196ce769371a | /tests/lean/repr_issue.lean | 6dc8997c897e63e787b5d1bb3c39b8cff4ab4163 | [
"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 | 638 | lean | new_frontend
def foo {m} [Monad m] [MonadExcept String m] [MonadState (Array Nat) m] : m Nat :=
«catch»
(do modify $ fun (a : Array Nat) => a.set! 0 33;
throw "error")
(fun _ => do let a ← get; pure $ a.get! 0)
def ex₁ : StateT (Array Nat) (ExceptT String Id) Nat :=
foo
def ex₂ : ExceptT String (StateT (Arr... |
4a46daa1d39f92c10db83a99bd683b660e64796b | 98beff2e97d91a54bdcee52f922c4e1866a6c9b9 | /src/power.lean | b2015633c12e75a72d6d3512d201b4a8b468ed8b | [] | no_license | b-mehta/topos | c3fc43fb04ba16bae1965ce5c26c6461172e5bc6 | c9032b11789e36038bc841a1e2b486972421b983 | refs/heads/master | 1,629,609,492,867 | 1,609,907,263,000 | 1,609,907,263,000 | 240,943,034 | 43 | 3 | null | 1,598,210,062,000 | 1,581,877,668,000 | Lean | UTF-8 | Lean | false | false | 56,952 | 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
import category_theory.limits.shapes.binary_products
import category_theory.limits.shapes.finite_products
import category_theory.lim... |
8db0a878d712bf69ee452f465ba9bf526ad29092 | b7f22e51856f4989b970961f794f1c435f9b8f78 | /library/theories/analysis/metric_space.lean | c6b36609e300844e84150bec41dc97e9214143e8 | [
"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 | 27,970 | lean | /-
Copyright (c) 2015 Jeremy Avigad. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Metric spaces.
Authors: Jeremy Avigad, Robert Y. Lewis
-/
import data.real.complete data.pnat ..topology.continuous ..topology.limit data.set
open nat real eq.ops classical set prod set.filter ... |
5d6626bbf3486d2ce7b87876d52cda6ff6d8893f | 8930e38ac0fae2e5e55c28d0577a8e44e2639a6d | /data/fintype.lean | 65afcb2fb339b1fed33e7d59ed01f8ac1544a652 | [
"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 | 14,039 | lean | /-
Copyright (c) 2017 Mario Carneiro. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Author: Mario Carneiro
Finite types.
-/
import data.finset algebra.big_operators data.array.lemmas data.vector2
universes u v
variables {α : Type*} {β : Type*} {γ : Type*}
/-- `fintype α` me... |
7bbc2a01fb43dbef48d6cde40d6151128a86586b | 9be442d9ec2fcf442516ed6e9e1660aa9071b7bd | /src/Lean/Elab/Tactic/Calc.lean | ace04ce2cab8c38b75a19926d8e864ade03ec7dc | [
"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 | 1,823 | 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.Elab.Calc
import Lean.Elab.Tactic.ElabTerm
namespace Lean.Elab.Tactic
open Meta
def elabCalcSteps (steps : Array Syntax) : TacticM Expr := do
... |
49df8bdf25a1ebee0c4dfd289771163cb9bb4c70 | d1a52c3f208fa42c41df8278c3d280f075eb020c | /tests/lean/run/doNotation2.lean | 4a5e059b0e005752db60c48c4e467c4263a22b20 | [
"Apache-2.0",
"LLVM-exception",
"NCSA",
"LGPL-3.0-only",
"LicenseRef-scancode-inner-net-2.0",
"BSD-3-Clause",
"LGPL-2.0-or-later",
"Spencer-94",
"LGPL-2.1-or-later",
"HPND",
"LicenseRef-scancode-pcre",
"ISC",
"LGPL-2.1-only",
"LicenseRef-scancode-other-permissive",
"SunPro",
"CMU-Mach"... | permissive | cipher1024/lean4 | 6e1f98bb58e7a92b28f5364eb38a14c8d0aae393 | 69114d3b50806264ef35b57394391c3e738a9822 | refs/heads/master | 1,642,227,983,603 | 1,642,011,696,000 | 1,642,011,696,000 | 228,607,691 | 0 | 0 | Apache-2.0 | 1,576,584,269,000 | 1,576,584,268,000 | null | UTF-8 | Lean | false | false | 4,111 | lean | def f (x : Nat) : IO Nat := do
IO.println "hello world"
let aux (y : Nat) (z : Nat) : IO Nat := do
IO.println "aux started"
IO.println s!"y: {y}, z: {z}"
pure (x+y)
discard <| aux x
(x + 1) -- It is part of the application since it is indented
discard <| aux x (x -- parentheses use `withoutPosition`
-1)
discard... |
1c85a1676d9db8fbf521ac0bf639dfd8de597adc | 05f637fa14ac28031cb1ea92086a0f4eb23ff2b1 | /tests/lean/bad10.lean | b63d6739065cec501748d67a2f86bea96d39fde1 | [
"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 | 222 | lean | set_option pp::implicit true.
set_option pp::colors false.
variable N : Type.
definition T (a : N) (f : _ -> _) (H : f a = a) : f (f _) = f _ :=
substp (fun x : N, f (f a) = _) (refl (f (f _))) H.
print environment 1.
|
5d56c52112218456c03614e0e56a38f57682117a | 74addaa0e41490cbaf2abd313a764c96df57b05d | /Mathlib/algebra/continued_fractions/computation/correctness_terminating_auto.lean | 9b23db090fd9bea92c1c101ddbdb05f74acd96db | [] | no_license | AurelienSaue/Mathlib4_auto | f538cfd0980f65a6361eadea39e6fc639e9dae14 | 590df64109b08190abe22358fabc3eae000943f2 | refs/heads/master | 1,683,906,849,776 | 1,622,564,669,000 | 1,622,564,669,000 | 371,723,747 | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 6,403 | 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 Mathlib.PrePort
import Mathlib.Lean3Lib.init.default
import Mathlib.algebra.continued_fractions.computation.translations
import Mathlib.algebra.continued_f... |
fd7df370f3315b7c8692eb72d1654d081b22da21 | 94e33a31faa76775069b071adea97e86e218a8ee | /src/algebra/lie/cartan_subalgebra.lean | 92ad875f91281fd3e5de35ef68048393b52d4550 | [
"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 | 2,057 | 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.nilpotent
import algebra.lie.centralizer
/-!
# Cartan subalgebras
Cartan subalgebras are one of the most important concepts in Lie theory. We define th... |
3517b128473129510adcd9561f03ddf6d7f67608 | d9d511f37a523cd7659d6f573f990e2a0af93c6f | /src/data/list/func.lean | c858f6342dc9b2f8f2890d96cc7c9aa60a93c5b0 | [
"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 | 11,394 | lean | /-
Copyright (c) 2019 Seul Baek. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Seul Baek
-/
import data.nat.basic
/-!
# Lists as Functions
Definitions for using lists as finite representations of finitely-supported functions with domain
ℕ.
These include pointwise o... |
b29adf11c8b7344e6701e5148662db4ba4a4264f | c055f4b7c29cf1aac2223bd8c1ac8d181a7c6447 | /src/categories/universal/cones.lean | 3f1c3bb38f08423e6f2f2b951e1dbc0304905bc0 | [
"Apache-2.0"
] | permissive | rwbarton/lean-category-theory-pr | 77207b6674eeec1e258ec85dea58f3bff8d27065 | 591847d70c6a11c4d5561cd0eaf69b1fe85a70ab | refs/heads/master | 1,584,595,111,303 | 1,528,029,041,000 | 1,528,029,041,000 | 135,919,126 | 0 | 0 | null | 1,528,041,805,000 | 1,528,041,805,000 | null | UTF-8 | Lean | false | false | 10,960 | lean | -- Copyright (c) 2017 Scott Morrison. All rights reserved.
-- Released under Apache 2.0 license as described in the file LICENSE.
-- Authors: Stephen Morgan, Scott Morrison
import .initial
import ..functor
open categories
open categories.functor
open categories.initial
namespace categories.universal
universes u v
v... |
3c56891bb6abfd6607845ff3259ded286fd0b5f1 | d406927ab5617694ec9ea7001f101b7c9e3d9702 | /src/topology/constructions.lean | 04f87fe0e32d220c82ea2dce52ca43af45ec1d26 | [
"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 | 57,971 | lean | /-
Copyright (c) 2017 Johannes Hölzl. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Johannes Hölzl, Mario Carneiro, Patrick Massot
-/
import topology.maps
import topology.locally_finite
import order.filter.pi
/-!
# Constructions of new topological spaces from old one... |
7f4ec859ae52349798af138deb4e8fc89d3a4039 | d406927ab5617694ec9ea7001f101b7c9e3d9702 | /src/order/synonym.lean | 1de69a1fcc315499cbf90cdeef1e586622e2579c | [
"Apache-2.0"
] | permissive | alreadydone/mathlib | dc0be621c6c8208c581f5170a8216c5ba6721927 | c982179ec21091d3e102d8a5d9f5fe06c8fafb73 | refs/heads/master | 1,685,523,275,196 | 1,670,184,141,000 | 1,670,184,141,000 | 287,574,545 | 0 | 0 | Apache-2.0 | 1,670,290,714,000 | 1,597,421,623,000 | Lean | UTF-8 | Lean | false | false | 4,834 | lean | /-
Copyright (c) 2020 Johan Commelin, Damiano Testa. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Johan Commelin, Damiano Testa, Yaël Dillies
-/
import logic.equiv.defs
import logic.nontrivial
import order.basic
/-!
# Type synonyms
> THIS FILE IS SYNCHRONIZED WITH ... |
412642ec8bea67aa294d4f9f3808d57fe131e82b | 26ac254ecb57ffcb886ff709cf018390161a9225 | /src/data/pfunctor/univariate/basic.lean | 3a7efe5e22436721d83fc0bee47a45bea157b938 | [
"Apache-2.0"
] | permissive | eric-wieser/mathlib | 42842584f584359bbe1fc8b88b3ff937c8acd72d | d0df6b81cd0920ad569158c06a3fd5abb9e63301 | refs/heads/master | 1,669,546,404,255 | 1,595,254,668,000 | 1,595,254,668,000 | 281,173,504 | 0 | 0 | Apache-2.0 | 1,595,263,582,000 | 1,595,263,581,000 | null | UTF-8 | Lean | false | false | 6,124 | lean | /-
Copyright (c) 2018 Jeremy Avigad. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Author: Jeremy Avigad
-/
import data.W
/-!
# Polynomial functors
This file defines polynomial functors and the W-type construction as a
polynomial functor. (For the M-type construction, see
p... |
f80fe6be3f561dd6dca3f35ebe2e252ac41dde16 | 200b12985a863d01fbbde6abfc9326bb82424a8b | /src/propLogic/Ex007.lean | cf3988dced606dd7e5c53bdf750b33942ccef6c4 | [] | no_license | SvenWille/LeanLogicExercises | 38eacd36733ac48e5a7aacf863c681c9a9a48271 | 2dbc920feadd63bbc50f87e69646c0081db26eba | refs/heads/master | 1,629,676,667,365 | 1,512,161,459,000 | 1,512,161,459,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 350 | lean | open classical
theorem Ex007(a b : Prop): (( a → b) → a) → a :=
assume H1:( a → b) → a,
have A:¬¬a,from not.intro
(
assume H2:¬a,
have B:a, from H1
(
assume H3:a,
show b, from absurd H3 H2
),
show false, from H2 B
),
by_contradiction
(
assume C:¬a,
show fals... |
4557f8f86b73a92ff77b3be4f5a12ee8f6544d3a | fa02ed5a3c9c0adee3c26887a16855e7841c668b | /src/algebra/direct_limit.lean | a2bd0c5d46b71b227b58573df19a1a637760a44d | [
"Apache-2.0"
] | permissive | jjgarzella/mathlib | 96a345378c4e0bf26cf604aed84f90329e4896a2 | 395d8716c3ad03747059d482090e2bb97db612c8 | refs/heads/master | 1,686,480,124,379 | 1,625,163,323,000 | 1,625,163,323,000 | 281,190,421 | 2 | 0 | Apache-2.0 | 1,595,268,170,000 | 1,595,268,169,000 | null | UTF-8 | Lean | false | false | 24,957 | lean | /-
Copyright (c) 2019 Kenny Lau, Chris Hughes. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Kenny Lau, Chris Hughes
-/
import data.finset.order
import linear_algebra.direct_sum_module
import ring_theory.free_comm_ring
import ring_theory.ideal.operations
/-!
# Direct ... |
36b4c0b46f1e32957e8968a4b40fd1b72e44551a | a49a42dda6e1ae18983e9264eb962585a900fa99 | /src/gamma.lean | b9e6cdd98420e90a596a707d65195972197bb6c3 | [] | no_license | jamesa9283/Lean-AreaOfACircle | a5d22cbc96bc2cf2f76b79221b0ec65628edc333 | c5d5030eeab98bb6552693de55a77a9cf2c21d20 | refs/heads/master | 1,676,179,712,721 | 1,610,133,816,000 | 1,610,133,816,000 | 327,885,903 | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 1,049 | lean | import analysis.special_functions.exp_log analysis.special_functions.pow
open_locale big_operators nat
noncomputable theory
open complex
def poch (a : ℂ) (n : ℕ) := ∏ i in finset.range n, a + n
def rΓ_series (z : ℂ) (n : ℕ) := poch z (n + 1) / (n! * exp (z * log n))
def Γ_series (z : ℂ) (n : ℕ) := (n! : ℂ) * exp(... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.