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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
471101b07d6f7d32d6e01752952e86799b7329a5 | d1a52c3f208fa42c41df8278c3d280f075eb020c | /stage0/src/Init/Data/Option/Basic.lean | 3fe819c9b12083bc9e6b4135ce10be13422f6d6f | [
"Apache-2.0",
"LLVM-exception",
"NCSA",
"LGPL-3.0-only",
"LicenseRef-scancode-inner-net-2.0",
"BSD-3-Clause",
"LGPL-2.0-or-later",
"Spencer-94",
"LGPL-2.1-or-later",
"HPND",
"LicenseRef-scancode-pcre",
"ISC",
"LGPL-2.1-only",
"LicenseRef-scancode-other-permissive",
"SunPro",
"CMU-Mach"... | permissive | cipher1024/lean4 | 6e1f98bb58e7a92b28f5364eb38a14c8d0aae393 | 69114d3b50806264ef35b57394391c3e738a9822 | refs/heads/master | 1,642,227,983,603 | 1,642,011,696,000 | 1,642,011,696,000 | 228,607,691 | 0 | 0 | Apache-2.0 | 1,576,584,269,000 | 1,576,584,268,000 | null | UTF-8 | Lean | false | false | 2,402 | 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
-/
prelude
import Init.Core
import Init.Control.Basic
import Init.Coe
namespace Option
def toMonad [Monad m] [Alternative m] : Option α → m α
| none =>... |
3053a4f4640217c154ceb451c511ea9ebf613095 | 6432ea7a083ff6ba21ea17af9ee47b9c371760f7 | /tests/lean/traceTacticSteps.lean | 2c677dc841924afc681084213ad13ffc7fe3cc3e | [
"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 | 190 | lean | -- Check whether all intermediate steps during tactic execution
-- can be successfully pretty-printed to trace output
set_option trace.Elab.step true
example : True := by
skip
trivial
|
2172b022ff5b75248e98dff1fced3fa851d0ae7f | d406927ab5617694ec9ea7001f101b7c9e3d9702 | /src/probability/borel_cantelli.lean | 6951712b3d4e1983b39852816229db4f5a690e0f | [
"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,745 | lean | /-
Copyright (c) 2022 Kexing Ying. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Kexing Ying
-/
import probability.martingale.borel_cantelli
import probability.conditional_expectation
import probability.independence
/-!
# The second Borel-Cantelli lemma
This file c... |
702a8c035b558ddb5d1496324a07b03c6647bc2a | 74addaa0e41490cbaf2abd313a764c96df57b05d | /Mathlib/computability/NFA.lean | a8e953c4e0ad46bb74020771a05e3e3a8cd4014f | [] | 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,771 | 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.fintype.basic
import Mathlib.computability.DFA
import Mathlib.PostPort
universes u v l
na... |
32cdf3c6ebc6c4f9c38b3ab8bc026929426ad846 | 4c630d016e43ace8c5f476a5070a471130c8a411 | /group_theory/submonoid.lean | 0ef804657ea86c5464398b069a39a01c4d22e9cb | [
"Apache-2.0"
] | permissive | ngamt/mathlib | 9a510c391694dc43eec969914e2a0e20b272d172 | 58909bd424209739a2214961eefaa012fb8a18d2 | refs/heads/master | 1,585,942,993,674 | 1,540,739,585,000 | 1,540,916,815,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 7,328 | 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
-/
import algebra.big_operators
import data.finset
import tactic.subtype_instance
variables {α : Type*} [monoid α] {s : set α... |
232ce7df6d5dc8b9f69f1140b0836d541cc4b05a | 74addaa0e41490cbaf2abd313a764c96df57b05d | /Mathlib/data/vector2.lean | d9f6a8e9fbb4a1247c8b34102a9056062b411e3c | [] | 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 | 15,262 | 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 Mathlib.PrePort
import Mathlib.Lean3Lib.init.default
import Mathlib.Lean3Lib.data.vector
import Mathlib.data.list.nodup
import Mathlib.data.list.of_fn
import M... |
d4d8c3bf1fa845a869d2ed4934d52d0f58ebf0a7 | 8cae430f0a71442d02dbb1cbb14073b31048e4b0 | /src/analysis/asymptotics/superpolynomial_decay.lean | 3f003aa64537cc70e5df88097770353802e7cfbd | [
"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 | 15,123 | lean | /-
Copyright (c) 2021 Devon Tuma. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Devon Tuma
-/
import analysis.asymptotics.asymptotics
import analysis.normed.order.basic
import data.polynomial.eval
import topology.algebra.order.liminf_limsup
/-!
# Super-Polynomial Fun... |
50a4e65fd30e9e1dab20a675b969cafa012a85ae | ea5678cc400c34ff95b661fa26d15024e27ea8cd | /gaussian.lean | 24d11ec40302c948a7914cdb02ffa37b140f1601 | [] | no_license | ChrisHughes24/leanstuff | dca0b5349c3ed893e8792ffbd98cbcadaff20411 | 9efa85f72efaccd1d540385952a6acc18fce8687 | refs/heads/master | 1,654,883,241,759 | 1,652,873,885,000 | 1,652,873,885,000 | 134,599,537 | 1 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 12,265 | lean | /-
Copyright (c) 2018 Ellen Arlt. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Ellen Arlt, Blair Shi, Sean Leather, Mario Carneiro, Johan Commelin
Matrices
-/
import algebra.module data.fintype algebra.pi_instances
import data.set.enumerate
import data.rat
universe... |
a2d8cc7f8718e3a3974a299e6bd361bc4ddcf5de | 6432ea7a083ff6ba21ea17af9ee47b9c371760f7 | /tests/lean/run/structInst2.lean | 6ca44e746b2565362966dd1dff39287e1e9aff2b | [
"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,528 | lean | import Init.Control.Option
universe u v
def OptionT2 (m : Type u → Type v) (α : Type u) : Type v :=
m (Option α)
namespace OptionT2
variable {m : Type u → Type v} [Monad m] {α β : Type u}
@[inline] protected def bind (ma : OptionT2 m α) (f : α → OptionT2 m β) : OptionT2 m β :=
(do {
let a? ← ma;
(match a? ... |
fc2d008cee14cf0b5cbe24a36de1cdece77a7490 | 8cb37a089cdb4af3af9d8bf1002b417e407a8e9e | /library/init/meta/default.lean | 4eb21c86c88e2a5f1f13b866f63c75d5f3405f64 | [
"Apache-2.0"
] | permissive | kbuzzard/lean | ae3c3db4bb462d750dbf7419b28bafb3ec983ef7 | ed1788fd674bb8991acffc8fca585ec746711928 | refs/heads/master | 1,620,983,366,617 | 1,618,937,600,000 | 1,618,937,600,000 | 359,886,396 | 1 | 0 | Apache-2.0 | 1,618,936,987,000 | 1,618,936,987,000 | null | UTF-8 | Lean | false | false | 1,081 | 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.name init.meta.options init.meta.format init.meta.rb_map
import init.meta.level init.meta.expr init.meta.environment init.meta.attr... |
946bc0d38f9029c367d044632cf579758778f42b | 853df553b1d6ca524e3f0a79aedd32dde5d27ec3 | /src/data/pfunctor/univariate/basic.lean | 7d43a21a124faff1a818b376d7c9a88ce877ea62 | [
"Apache-2.0"
] | permissive | DanielFabian/mathlib | efc3a50b5dde303c59eeb6353ef4c35a345d7112 | f520d07eba0c852e96fe26da71d85bf6d40fcc2a | refs/heads/master | 1,668,739,922,971 | 1,595,201,756,000 | 1,595,201,756,000 | 279,469,476 | 0 | 0 | null | 1,594,696,604,000 | 1,594,696,604,000 | null | UTF-8 | Lean | false | false | 5,437 | 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... |
45d539502db4e42c2b64cf8ac1f532a3619a5313 | a9d0fb7b0e4f802bd3857b803e6c5c23d87fef91 | /hott/types/sigma.hlean | ead5e3ebbdc045284fa7eb237c68ebc279fbb64e | [
"Apache-2.0"
] | permissive | soonhokong/lean-osx | 4a954262c780e404c1369d6c06516161d07fcb40 | 3670278342d2f4faa49d95b46d86642d7875b47c | refs/heads/master | 1,611,410,334,552 | 1,474,425,686,000 | 1,474,425,686,000 | 12,043,103 | 5 | 1 | null | null | null | null | UTF-8 | Lean | false | false | 19,582 | hlean | /-
Copyright (c) 2014-15 Floris van Doorn. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Author: Floris van Doorn
Partially ported from Coq HoTT
Theorems about sigma-types (dependent sums)
-/
import types.prod
open eq sigma sigma.ops equiv is_equiv function is_trunc sum uni... |
a12416763d42a6aac59f80f4fcb70cc119fe468c | 43390109ab88557e6090f3245c47479c123ee500 | /src/Euclid_old/tarski_7.lean | 4bf7c4dcdb791ed6d701d155bc647d3bc0650807 | [
"Apache-2.0"
] | permissive | Ja1941/xena-UROP-2018 | 41f0956519f94d56b8bf6834a8d39473f4923200 | b111fb87f343cf79eca3b886f99ee15c1dd9884b | refs/heads/master | 1,662,355,955,139 | 1,590,577,325,000 | 1,590,577,325,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 16,119 | lean | import Euclid.tarski_6
open classical set
namespace Euclidean_plane
variables {point : Type} [Euclidean_plane point]
local attribute [instance] prop_decidable
theorem col_of_perp {a b p q : point} : p ≠ q → R a p q → R b p q → col p a b :=
λ h h1 h2, not_3dim (seven12b h) (seven5 p q).2 h1 h2
theorem coplanar {a : p... |
4b0906ae25210ca7ec6b1d73869b4922e89271ec | fecda8e6b848337561d6467a1e30cf23176d6ad0 | /src/ring_theory/polynomial/basic.lean | a0b6ced947c3d01ffed97fc25bdee7b00a4c3ee0 | [
"Apache-2.0"
] | permissive | spolu/mathlib | bacf18c3d2a561d00ecdc9413187729dd1f705ed | 480c92cdfe1cf3c2d083abded87e82162e8814f4 | refs/heads/master | 1,671,684,094,325 | 1,600,736,045,000 | 1,600,736,045,000 | 297,564,749 | 1 | 0 | null | 1,600,758,368,000 | 1,600,758,367,000 | null | UTF-8 | Lean | false | false | 23,564 | 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... |
f69be8d18af8908ebef267b01b89ef4ca8daf4e5 | 4efff1f47634ff19e2f786deadd394270a59ecd2 | /src/data/equiv/basic.lean | 4387982468d0abd293e56e5d8b3f348a013d0c98 | [
"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 | 70,583 | lean | /-
Copyright (c) 2015 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Leonardo de Moura, Mario Carneiro
In the standard library we cannot assume the univalence axiom.
We say two types are equivalent if they are isomorphic.
Two equivalent types h... |
af390f8a2663cf31a4360db3427348a4422c94a0 | 1446f520c1db37e157b631385707cc28a17a595e | /stage0/src/Init/Lean/Data/Name.lean | 4dbb3b5630d224db7eb1bb0f35f105ae32f7f901 | [
"Apache-2.0"
] | permissive | bdbabiak/lean4 | cab06b8a2606d99a168dd279efdd404edb4e825a | 3f4d0d78b2ce3ef541cb643bbe21496bd6b057ac | refs/heads/master | 1,615,045,275,530 | 1,583,793,696,000 | 1,583,793,696,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 5,299 | lean | /-
Copyright (c) 2018 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Author: Leonardo de Moura
-/
prelude
import Init.LeanInit
import Init.Data.UInt
import Init.Data.ToString
import Init.Data.Hashable
import Init.Data.RBMap
import Init.Data.RBTree
namesp... |
f638be5080f64420389faef84822bbf9fff4942a | fa02ed5a3c9c0adee3c26887a16855e7841c668b | /src/category_theory/limits/shapes/kernels.lean | d615f8af43ce8fe28179790f72a275c2f759fbd2 | [
"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 | 28,637 | lean | /-
Copyright (c) 2019 Scott Morrison. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Scott Morrison, Markus Himmel
-/
import category_theory.limits.shapes.zero
/-!
# Kernels and cokernels
In a category with zero morphisms, the kernel of a morphism `f : X ⟶ Y` is
the ... |
966d8f605789a5708b61bb3f4560ec880713eaec | 7c4610454cf55b49f0c3cdaeb6b856eb3249cb2d | /src/new_free.lean | 9c06e4d0fd4b0aa985f39c3a96b2623acc799b8e | [] | no_license | 101damnations/fg_over_pid | 097be43e11c3680a3fd4b6de2265de393cf4d4ef | a1a587c455a54a802f6ff61b07bb033701e451a7 | refs/heads/master | 1,669,708,904,636 | 1,597,259,770,000 | 1,597,259,770,000 | 287,097,363 | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 3,981 | lean | import tactic linear_algebra.basis mathlib_lemmas ring_theory.principal_ideal_domain torsion
run_cmd tactic.skip
open_locale classical
variables (ι : Type*) (Rr : Type*) [integral_domain Rr]
[decidable_eq Rr] [fintype ι]
variables (l : ι →₀ Rr)
/-- An R-module `P` is projective iff for all R-modules `A, B`... |
c39b919a86b705df92578eda59a6415d07ac66fe | 46125763b4dbf50619e8846a1371029346f4c3db | /src/category_theory/limits/shapes/pullbacks.lean | b5b927290de6f5fb9339729b6980f190c7de615f | [
"Apache-2.0"
] | permissive | thjread/mathlib | a9d97612cedc2c3101060737233df15abcdb9eb1 | 7cffe2520a5518bba19227a107078d83fa725ddc | refs/heads/master | 1,615,637,696,376 | 1,583,953,063,000 | 1,583,953,063,000 | 246,680,271 | 0 | 0 | Apache-2.0 | 1,583,960,875,000 | 1,583,960,875,000 | null | UTF-8 | Lean | false | false | 16,951 | lean | /-
Copyright (c) 2018 Scott Morrison. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Scott Morrison
-/
import data.fintype
import category_theory.limits.limits
import category_theory.limits.shapes.finite_limits
import category_theory.sparse
/-!
# Pullbacks
We define ... |
25d7ac3aef8028c09983e28763d64e3c0f1a9271 | 74addaa0e41490cbaf2abd313a764c96df57b05d | /Mathlib/ring_theory/polynomial/symmetric.lean | a0415b9636e5d5a10135657de0837329f79e2cc3 | [] | 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,159 | lean | /-
Copyright (c) 2020 Hanting Zhang. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Hanting Zhang, Johan Commelin
-/
import Mathlib.PrePort
import Mathlib.Lean3Lib.init.default
import Mathlib.tactic.default
import Mathlib.data.mv_polynomial.rename
import Mathlib.data.m... |
0a4e44d01811bc78f45ff81543bf0986e2f0ac2d | 624f6f2ae8b3b1adc5f8f67a365c51d5126be45a | /tests/lean/run/34.lean | d6e82e6b041227072ed70e6d3b4ad9763cfe20ec | [
"Apache-2.0"
] | permissive | mhuisi/lean4 | 28d35a4febc2e251c7f05492e13f3b05d6f9b7af | dda44bc47f3e5d024508060dac2bcb59fd12e4c0 | refs/heads/master | 1,621,225,489,283 | 1,585,142,689,000 | 1,585,142,689,000 | 250,590,438 | 0 | 2 | Apache-2.0 | 1,602,443,220,000 | 1,585,327,814,000 | C | UTF-8 | Lean | false | false | 138 | lean | partial def foo : ∀ (n : Nat), StateM Unit Unit
| n =>
if n == 0 then pure () else
match n with
| 0 => pure ()
| n+1 => foo n
|
fe7bb0e1c2e1eee421fabf1cdd6b9941fead22ba | 957a80ea22c5abb4f4670b250d55534d9db99108 | /tests/lean/run/using_smt2.lean | b09ca63a89c97d5b5869582ed703d6f5542bf6c7 | [
"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 | 1,269 | lean | open smt_tactic
lemma ex (p q : Prop) : p → q → p :=
by using_smt $ intros
lemma ex2 (p q : Prop) : ¬ p → q → ¬ p :=
by using_smt $ intros
lemma ex3 (p q : Prop) : p → (p ↔ q) → q :=
by using_smt $ intros
lemma ex4 (p q : Prop) : p → (p → q) → q :=
by using_smt $ intros
lemma ex5 (p q : Prop) : (p → q) → p → q :=
... |
14cbf8d2142063093d5996d1725e7d8e14758eec | fca07070bb19b108b71d0e4b2036ba2c4813dc1e | /Test2.lean | f6bc50c09b92868d9a47aaee2aec1d18e5527dfc | [] | no_license | rwbarton/lean4-test2 | 72259888aa87936c8458c3c416348a0d75b29e34 | 391d0c579ffca9b8f0ca23b099e3f4b5eee6ce15 | refs/heads/master | 1,677,432,125,878 | 1,612,365,361,000 | 1,612,365,361,000 | 335,665,877 | 1 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 104 | lean | import Test
import Local
#eval twice myDouble 8
def main : IO Unit :=
IO.println (twice myDouble 6)
|
ea9bd2d3e34901a9c6aa3ed4a2f209258cbd07fe | 6432ea7a083ff6ba21ea17af9ee47b9c371760f7 | /src/Lean/Compiler/InitAttr.lean | 7d08fb6a019a448ec58d3046fb878f4bb7e2b2ba | [
"Apache-2.0",
"LLVM-exception",
"NCSA",
"LGPL-3.0-only",
"LicenseRef-scancode-inner-net-2.0",
"BSD-3-Clause",
"LGPL-2.0-or-later",
"Spencer-94",
"LGPL-2.1-or-later",
"HPND",
"LicenseRef-scancode-pcre",
"ISC",
"LGPL-2.1-only",
"LicenseRef-scancode-other-permissive",
"SunPro",
"CMU-Mach"... | permissive | leanprover/lean4 | 4bdf9790294964627eb9be79f5e8f6157780b4cc | f1f9dc0f2f531af3312398999d8b8303fa5f096b | refs/heads/master | 1,693,360,665,786 | 1,693,350,868,000 | 1,693,350,868,000 | 129,571,436 | 2,827 | 311 | Apache-2.0 | 1,694,716,156,000 | 1,523,760,560,000 | Lean | UTF-8 | Lean | false | false | 6,978 | 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.Elab.InfoTree.Main
namespace Lean
private def getIOTypeArg : Expr → Option Expr
| Expr.app (Expr.const `IO _) arg => some arg
| _ ... |
9d655d9e6390c8ec416e6935a91713861994fb7e | 2eab05920d6eeb06665e1a6df77b3157354316ad | /src/algebra/big_operators/intervals.lean | 8c184540716ef4b7ee4c7b8355f0053ed8a4b2b2 | [
"Apache-2.0"
] | permissive | ayush1801/mathlib | 78949b9f789f488148142221606bf15c02b960d2 | ce164e28f262acbb3de6281b3b03660a9f744e3c | refs/heads/master | 1,692,886,907,941 | 1,635,270,866,000 | 1,635,270,866,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 6,685 | 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.basic
import data.nat.interval
import tactic.linarith
/-!
# Results about big operators over intervals
We prove results about big oper... |
b1671a28538463f2dd4f6d3608f048194542292a | 9dc8cecdf3c4634764a18254e94d43da07142918 | /src/algebra/quandle.lean | 92aaa5c0fb566c347690f476b3c4ff4e06d2f821 | [
"Apache-2.0"
] | permissive | jcommelin/mathlib | d8456447c36c176e14d96d9e76f39841f69d2d9b | ee8279351a2e434c2852345c51b728d22af5a156 | refs/heads/master | 1,664,782,136,488 | 1,663,638,983,000 | 1,663,638,983,000 | 132,563,656 | 0 | 0 | Apache-2.0 | 1,663,599,929,000 | 1,525,760,539,000 | Lean | UTF-8 | Lean | false | false | 24,752 | lean | /-
Copyright (c) 2020 Kyle Miller. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Kyle Miller
-/
import algebra.hom.equiv
import data.zmod.basic
import tactic.group
/-!
# Racks and Quandles
This file defines racks and quandles, algebraic structures for sets
that bije... |
d59a6f15825652541ab73a853fcbdaf3a94446af | fa02ed5a3c9c0adee3c26887a16855e7841c668b | /src/meta/rb_map.lean | 29bbdabaf8c44d405b5a93d22305f718006dc0da | [
"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 | 7,705 | 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.option.defs
import data.list.defs
/-!
# rb_map
This file defines additional operations on native rb_maps and rb_sets.
These structures are defined in ... |
636a04375ab42ef502c0b17994a4a27cbdb056a8 | 8cae430f0a71442d02dbb1cbb14073b31048e4b0 | /src/order/heyting/hom.lean | a947d251b340a27c6e99c6676b26d7cc6989f7f0 | [
"Apache-2.0"
] | permissive | leanprover-community/mathlib | 56a2cadd17ac88caf4ece0a775932fa26327ba0e | 442a83d738cb208d3600056c489be16900ba701d | refs/heads/master | 1,693,584,102,358 | 1,693,471,902,000 | 1,693,471,902,000 | 97,922,418 | 1,595 | 352 | Apache-2.0 | 1,694,693,445,000 | 1,500,624,130,000 | Lean | UTF-8 | Lean | false | false | 17,959 | lean | /-
Copyright (c) 2022 Yaël Dillies. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Yaël Dillies
-/
import order.hom.lattice
/-!
# Heyting algebra morphisms
> THIS FILE IS SYNCHRONIZED WITH MATHLIB4.
> Any changes to this file require a corresponding PR to mathlib4.
... |
6a9d3e06dea85b2e6eae05304e211a9cc03ed9a6 | 27a31d06bcfc7c5d379fd04a08a9f5ed3f5302d4 | /src/Lean/Server/FileWorker/RequestHandling.lean | b51efe616ff812a6a6b76a5db918f2e8524b37a8 | [
"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 | joehendrix/lean4 | 0d1486945f7ca9fe225070374338f4f7e74bab03 | 1221bdd3c7d5395baa451ce8fdd2c2f8a00cbc8f | refs/heads/master | 1,640,573,727,861 | 1,639,662,710,000 | 1,639,665,515,000 | 198,893,504 | 0 | 0 | Apache-2.0 | 1,564,084,645,000 | 1,564,084,644,000 | null | UTF-8 | Lean | false | false | 22,529 | lean | /-
Copyright (c) 2021 Wojciech Nawrocki. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Wojciech Nawrocki, Marc Huisinga
-/
import Lean.DeclarationRange
import Lean.Data.Json
import Lean.Data.Lsp
import Lean.Server.FileWorker.Utils
import Lean.Server.Requests
import... |
0e2ebc107a3b6cb1c6da230dfbc355102d6b7936 | 9dc8cecdf3c4634764a18254e94d43da07142918 | /src/algebra/module/submodule/lattice.lean | fc514aadcca18cdffc33ef7100a54cbf6be4e61f | [
"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 | 11,874 | 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, Kevin Buzzard, Yury Kudryashov
-/
import algebra.module.submodule.basic
import algebra.punit_instances
/-!
# The lattice structure on `submodule`s
Thi... |
0cff4d7a4a67729b3e2b9ecfce965f825abe99f9 | 9be442d9ec2fcf442516ed6e9e1660aa9071b7bd | /src/Lean/Meta/Tactic/SplitIf.lean | 7e655355afc04a190f0e3142193bf49f851e5c49 | [
"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 | 4,474 | 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.LazyInitExtension
import Lean.Meta.Tactic.Cases
import Lean.Meta.Tactic.Simp.Main
namespace Lean.Meta
namespace SplitIf
builtin_initialize ext... |
d785b6664d4adba1eb487ff041b86b2a9182208e | efa51dd2edbbbbd6c34bd0ce436415eb405832e7 | /20170116_POPL/assoc/flat_assoc.lean | f0f38ba9dcf7105fbc098d181554128d8dfc2971 | [
"Apache-2.0"
] | permissive | leanprover/presentations | dd031a05bcb12c8855676c77e52ed84246bd889a | 3ce2d132d299409f1de269fa8e95afa1333d644e | refs/heads/master | 1,688,703,388,796 | 1,686,838,383,000 | 1,687,465,742,000 | 29,750,158 | 12 | 9 | Apache-2.0 | 1,540,211,670,000 | 1,422,042,683,000 | Lean | UTF-8 | Lean | false | false | 6,991 | lean | /-
In this example, we implement a tactic for "flattening"
terms built using an associative operator. Suppose `op`
is an associative operator. Then, we build a tactic
that given a term such as
(op (op a b) (op c d))
it returns a new term
(op a (op b (op c d)))
and a proof that it is equal to the given one.
-/
... |
cde88d89842c6b46260344b0a88dd9cd405a6d40 | aa5a655c05e5359a70646b7154e7cac59f0b4132 | /stage0/src/Lean/Meta/Tactic/Simp.lean | 2c2fe7b1547501d948893b4607ba4332193c6488 | [
"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 | 393 | 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.Simp.SimpLemmas
import Lean.Meta.Tactic.Simp.Types
import Lean.Meta.Tactic.Simp.Main
import Lean.Meta.Tactic.Simp.Rewrite
namespace... |
c05e43561fe7cf7c4e8961ff67a2b3cd7f888cfc | d406927ab5617694ec9ea7001f101b7c9e3d9702 | /archive/miu_language/decision_suf.lean | 26b03e45d3ef8acbe58455127d517c6a9e8a0d46 | [
"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 | 14,305 | lean | /-
Copyright (c) 2020 Gihan Marasingha. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Gihan Marasingha
-/
import .decision_nec
import tactic.linarith
/-!
# Decision procedure - sufficient condition and decidability
We give a sufficient condition for a string to be d... |
7a78435552e70008fbcacd15254c589a01999f7a | 4e3bf8e2b29061457a887ac8889e88fa5aa0e34c | /lean/love09_hoare_logic_exercise_solution.lean | 3b73c2d72e8f19ba1929b00451bedcb4c78115f5 | [] | no_license | mukeshtiwari/logical_verification_2019 | 9f964c067a71f65eb8884743273fbeef99e6503d | 16f62717f55ed5b7b87e03ae0134791a9bef9b9a | refs/heads/master | 1,619,158,844,208 | 1,585,139,500,000 | 1,585,139,500,000 | 249,906,380 | 0 | 0 | null | 1,585,118,728,000 | 1,585,118,727,000 | null | UTF-8 | Lean | false | false | 6,489 | lean | /- LoVe Exercise 9: Hoare Logic -/
import .love09_hoare_logic_demo
namespace LoVe
/- Question 1: Program Verification -/
section GAUSS
/- The following WHILE program is intended to compute the Gaussian sum up to
`n`, leaving the result in `r`. -/
def GAUSS : program :=
assign "r" (λs, 0) ;;
while (λs, s "n" ≠ 0)... |
3686ecc28ad4204899ffad9bc697e9a15908243c | 12dabd587ce2621d9a4eff9f16e354d02e206c8e | /world03/level09.lean | 08fd1262f3179e60f2fd439c89f01eafe51441ff | [] | no_license | abdelq/natural-number-game | a1b5b8f1d52625a7addcefc97c966d3f06a48263 | bbddadc6d2e78ece2e9acd40fa7702ecc2db75c2 | refs/heads/master | 1,668,606,478,691 | 1,594,175,058,000 | 1,594,175,058,000 | 278,673,209 | 0 | 1 | null | null | null | null | UTF-8 | Lean | false | false | 130 | lean | lemma mul_left_comm (a b c : mynat) : a * (b * c) = b * (a * c) :=
begin
rw ← mul_assoc,
rw mul_comm a,
rw mul_assoc,
refl,
end
|
7cdea842a984169869952e8d2f0fb3ca2a4ee2f7 | 9dc8cecdf3c4634764a18254e94d43da07142918 | /src/number_theory/class_number/admissible_absolute_value.lean | 5f7474ce78b71d10bf3d0190d27479bc30df3e93 | [
"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,772 | 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 data.fin.tuple
import data.real.basic
import combinatorics.pigeonhole
import algebra.order.euclidean_absolute_value
/-!
# Admissible absolute values
This file defin... |
6d09d04f309cbcd3bf1c80552fd001dc1a894b7c | 626e312b5c1cb2d88fca108f5933076012633192 | /src/combinatorics/simple_graph/degree_sum.lean | db100bdce2ecea2aaa59447f92f7dbafefed723a | [
"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 | 8,326 | lean | /-
Copyright (c) 2020 Kyle Miller. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Kyle Miller
-/
import combinatorics.simple_graph.basic
import algebra.big_operators.basic
import data.nat.parity
import data.zmod.parity
/-!
# Degree-sum formula and handshaking lemma
T... |
2b1606444629f9fb1f977e5c57cdbce37daf4170 | 6432ea7a083ff6ba21ea17af9ee47b9c371760f7 | /tests/lean/run/instances.lean | 49942b8d8f56de8ae7bb12fa5f0e683aaf532123 | [
"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 | 393 | lean | import Lean
open Lean
open Lean.Meta
instance : ToFormat InstanceEntry where
format e := format e.val
unsafe def tst1 : IO Unit :=
withImportModules [{module := `Lean}] {} 0 fun env => do
let aux : MetaM Unit := do
let insts ← getGlobalInstancesIndex
IO.println (format insts)
discard <| aux.run |>.... |
07ac9d924985d1ec4bcab7583d41709740ef46c1 | 4efff1f47634ff19e2f786deadd394270a59ecd2 | /src/linear_algebra/tensor_algebra.lean | 30ee18d875391aa0e07e188f8f5968a44db6c1a9 | [
"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 | 11,074 | lean | /-
Copyright (c) 2020 Adam Topaz. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Author: Adam Topaz.
-/
import ring_theory.algebra
import linear_algebra
/-!
# Tensor Algebras
Given a commutative semiring `R`, and an `R`-module `M`, we construct the tensor algebra of `M`.
Thi... |
1a1b83eb09cebc451d42c6300f1b8366a61f3f97 | 02005f45e00c7ecf2c8ca5db60251bd1e9c860b5 | /src/data/equiv/ring.lean | a2bd44953682fd16956542b5773e778e8ca22785 | [
"Apache-2.0"
] | permissive | anthony2698/mathlib | 03cd69fe5c280b0916f6df2d07c614c8e1efe890 | 407615e05814e98b24b2ff322b14e8e3eb5e5d67 | refs/heads/master | 1,678,792,774,873 | 1,614,371,563,000 | 1,614,371,563,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 12,757 | 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, Callum Sutton, Yury Kudryashov
-/
import data.equiv.mul_add
import algebra.field
import algebra.opposites
/-!
# (Semi)ring equivs
In this file we define extension of ... |
7867c8fe7f27a35a4daff7c3836d6945171fd460 | 4fa161becb8ce7378a709f5992a594764699e268 | /src/ring_theory/noetherian.lean | 976c7bc2b870b00b538fc6594d347ee0d712e04c | [
"Apache-2.0"
] | permissive | laughinggas/mathlib | e4aa4565ae34e46e834434284cb26bd9d67bc373 | 86dcd5cda7a5017c8b3c8876c89a510a19d49aad | refs/heads/master | 1,669,496,232,688 | 1,592,831,995,000 | 1,592,831,995,000 | 274,155,979 | 0 | 0 | Apache-2.0 | 1,592,835,190,000 | 1,592,835,189,000 | null | UTF-8 | Lean | false | false | 23,156 | lean | /-
Copyright (c) 2018 Mario Carneiro and Kevin Buzzard. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Mario Carneiro, Kevin Buzzard
-/
import ring_theory.ideal_operations
import linear_algebra.basis
/-!
# Noetherian rings and modules
The following are equivalent for... |
b7f5568862ab33cfcc5f0abb8bfb32bdbd9af566 | fa02ed5a3c9c0adee3c26887a16855e7841c668b | /src/topology/category/Top/default.lean | 9e7a0f40fe13c52d2105672a65ddc3741adc4f5d | [
"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 | 113 | lean | import topology.category.Top.limits
import topology.category.Top.epi_mono
import topology.category.Top.open_nhds
|
bb3091a7de9753302e9f18d57b592be38b63618f | 8d65764a9e5f0923a67fc435eb1a5a1d02fd80e3 | /src/data/multiset/basic.lean | 1945b1513083600fac8c4777fa7d0942191e6141 | [
"Apache-2.0"
] | permissive | troyjlee/mathlib | e18d4b8026e32062ab9e89bc3b003a5d1cfec3f5 | 45e7eb8447555247246e3fe91c87066506c14875 | refs/heads/master | 1,689,248,035,046 | 1,629,470,528,000 | 1,629,470,528,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 100,058 | lean | /-
Copyright (c) 2015 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Mario Carneiro
-/
import data.list.perm
/-!
# Multisets
These are implemented as the quotient of a list by permutations.
## Notation
We define the global infix notation `::ₘ` f... |
361c9c4d66a89fb18c06bd9d65572728187b26f6 | cf39355caa609c0f33405126beee2739aa3cb77e | /tests/lean/run/listex.lean | 53cd5f4fae5d686a37b45ccb3e5888f15d5e2ba5 | [
"Apache-2.0"
] | permissive | leanprover-community/lean | 12b87f69d92e614daea8bcc9d4de9a9ace089d0e | cce7990ea86a78bdb383e38ed7f9b5ba93c60ce0 | refs/heads/master | 1,687,508,156,644 | 1,684,951,104,000 | 1,684,951,104,000 | 169,960,991 | 457 | 107 | Apache-2.0 | 1,686,744,372,000 | 1,549,790,268,000 | C++ | UTF-8 | Lean | false | false | 1,601 | lean | universe variable u
constant in_tail {α : Type u} {a b : α} {l : list α} : a ∈ l → a ∈ b::l
constant in_head {α : Type u} {a : α} {l : list α} : a ∈ a::l
constant in_left {α : Type u} {a : α} {l : list α} (r : list α) : a ∈ l → a ∈ l ++ r
constant in_right {α : Type u} {a : α} (l : l... |
0e753aa3563cf3b0ecfeb03b803993a20ba5b042 | d406927ab5617694ec9ea7001f101b7c9e3d9702 | /src/logic/relation.lean | a30950cd28fd3580c7a4c6ea0d3abd8766e13401 | [
"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 | 22,926 | 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 tactic.basic
import logic.relator
/-!
# Relation closures
> THIS FILE IS SYNCHRONIZED WITH MATHLIB4.
> https://github.com/leanprover-community/mathlib4/pull/... |
5361eed86d12c5c3f26326443ccc738198524ca5 | 2eab05920d6eeb06665e1a6df77b3157354316ad | /src/data/list/nodup.lean | bac93e27756bfd49127b51a9bac9ac2a16e0665a | [
"Apache-2.0"
] | permissive | ayush1801/mathlib | 78949b9f789f488148142221606bf15c02b960d2 | ce164e28f262acbb3de6281b3b03660a9f744e3c | refs/heads/master | 1,692,886,907,941 | 1,635,270,866,000 | 1,635,270,866,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 14,595 | lean | /-
Copyright (c) 2018 Mario Carneiro. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Mario Carneiro, Kenny Lau
-/
import data.list.lattice
import data.list.pairwise
import data.list.forall2
/-!
# Lists with no duplicates
`list.nodup` is defined in `data/list/defs`. I... |
a8c35cc55dd080d5d2e5c4e6b377eac05893394f | c31182a012eec69da0a1f6c05f42b0f0717d212d | /src/rescale/pseudo_normed_group.lean | 9beb2e0bf4d51704dd6380e7c23f0468de40c8e2 | [] | no_license | Ja1941/lean-liquid | fbec3ffc7fc67df1b5ca95b7ee225685ab9ffbdc | 8e80ed0cbdf5145d6814e833a674eaf05a1495c1 | refs/heads/master | 1,689,437,983,362 | 1,628,362,719,000 | 1,628,362,719,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 3,882 | lean | import pseudo_normed_group.category
import rescale.basic
noncomputable theory
open_locale nnreal
namespace rescale
open pseudo_normed_group
variables (r r' : ℝ≥0) (M : Type*)
section pseudo_normed_group
variables [pseudo_normed_group M]
instance : pseudo_normed_group (rescale r M) :=
{ filtration := λ c, show s... |
84793ae80a8fa4524c13a29cdc8a686787699831 | 3f7026ea8bef0825ca0339a275c03b911baef64d | /src/category_theory/limits/shapes/pullbacks.lean | 2542c262d9276bbb66530624d85db103ae60717a | [
"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 | 11,154 | lean | /-
Copyright (c) 2018 Scott Morrison. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Scott Morrison
-/
import data.fintype
import category_theory.limits.limits
import category_theory.sparse
/-!
# Pullbacks
We define a category `walking_cospan` (resp. `walking_span`),... |
299a05a65ef36aff22519fff057fd5f96194c0e9 | fa02ed5a3c9c0adee3c26887a16855e7841c668b | /src/category_theory/concrete_category/bundled.lean | 0e662fa7389c46ebe9447c74d68fcc0dd2a0361c | [
"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 | 1,948 | lean | /-
Copyright (c) 2018 Scott Morrison. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Scott Morrison, Johannes Hölzl, Reid Barton, Sean Leather
-/
import category_theory.category
/-!
# Bundled types
`bundled c` provides a uniform structure for bundling a type equipped... |
4790c06ecabd9f843ada0a133170f0eb8298a313 | 8cae430f0a71442d02dbb1cbb14073b31048e4b0 | /archive/imo/imo2019_q4.lean | 05af48d4acb6eba7e514f4dbc2cff558d096af02 | [
"Apache-2.0"
] | permissive | leanprover-community/mathlib | 56a2cadd17ac88caf4ece0a775932fa26327ba0e | 442a83d738cb208d3600056c489be16900ba701d | refs/heads/master | 1,693,584,102,358 | 1,693,471,902,000 | 1,693,471,902,000 | 97,922,418 | 1,595 | 352 | Apache-2.0 | 1,694,693,445,000 | 1,500,624,130,000 | Lean | UTF-8 | Lean | false | false | 4,272 | 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
-/
import tactic.interval_cases
import algebra.big_operators.order
import data.nat.multiplicity
/-!
# IMO 2019 Q4
> THIS FILE IS SYNCHRONIZED WITH MATHLIB4.
> Any ... |
f782f6363547289b46a25a3050f0ced4fa7882b9 | 1abd1ed12aa68b375cdef28959f39531c6e95b84 | /src/ring_theory/witt_vector/structure_polynomial.lean | 8230c601f14c8e63708393104737676e060ea856 | [
"Apache-2.0"
] | permissive | jumpy4/mathlib | d3829e75173012833e9f15ac16e481e17596de0f | af36f1a35f279f0e5b3c2a77647c6bf2cfd51a13 | refs/heads/master | 1,693,508,842,818 | 1,636,203,271,000 | 1,636,203,271,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 18,610 | lean | /-
Copyright (c) 2020 Johan Commelin. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Johan Commelin, Robert Y. Lewis
-/
import data.matrix.notation
import field_theory.mv_polynomial
import field_theory.finite.polynomial
import number_theory.basic
import ring_theory.wi... |
2093ebd9192f13e1642c78a1a6422e165792a782 | 8e2026ac8a0660b5a490dfb895599fb445bb77a0 | /tests/lean/caching_user_attribute.lean | 1dd97b5d2a883a4b725d1628bcd426550a654582 | [
"Apache-2.0"
] | permissive | pcmoritz/lean | 6a8575115a724af933678d829b4f791a0cb55beb | 35eba0107e4cc8a52778259bb5392300267bfc29 | refs/heads/master | 1,607,896,326,092 | 1,490,752,175,000 | 1,490,752,175,000 | 86,612,290 | 0 | 0 | null | 1,490,809,641,000 | 1,490,809,641,000 | null | UTF-8 | Lean | false | false | 769 | lean | @[user_attribute]
meta def foo_attr : caching_user_attribute string :=
{ name := `foo, descr := "bar",
mk_cache := λ ns, return $ list.join ∘ list.map (list.append "\n" ∘ to_string) $ ns,
dependencies := [] }
attribute [foo] eq.refl eq.mp
set_option trace.user_attributes_cache true
run_cmd do
s : string ← ... |
a89b56a55b60b0c4de1cbe5836396d0544e70a4f | 57c233acf9386e610d99ed20ef139c5f97504ba3 | /src/linear_algebra/tensor_product.lean | 9cfc63dad0008776585613fdc77fdfe59eaa06f5 | [
"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 | 38,723 | lean | /-
Copyright (c) 2018 Kenny Lau. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Kenny Lau, Mario Carneiro
-/
import group_theory.congruence
import linear_algebra.bilinear_map
/-!
# Tensor product of modules over commutative semirings.
This file constructs the tensor... |
6e1b371cec73e88b8076053c384fdf62d7a64917 | 5ae26df177f810c5006841e9c73dc56e01b978d7 | /src/category_theory/natural_isomorphism.lean | 49c87f2e7f70744116bf9a73f0bbd71f975e09d3 | [
"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 | 5,501 | lean | /-
Copyright (c) 2017 Scott Morrison. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Tim Baumann, Stephen Morgan, Scott Morrison, Floris van Doorn
-/
import category_theory.functor_category
import category_theory.isomorphism
open category_theory
universes v₁ v₂ v₃ v₄... |
b4ba11f95f57b98f4d9b11ffc9966e651b88f94e | ad0c7d243dc1bd563419e2767ed42fb323d7beea | /analysis/measure_theory/borel_space.lean | 15805b8360a9d4b832bf5128bbd1faee61666466 | [
"Apache-2.0"
] | permissive | sebzim4500/mathlib | e0b5a63b1655f910dee30badf09bd7e191d3cf30 | 6997cafbd3a7325af5cb318561768c316ceb7757 | refs/heads/master | 1,585,549,958,618 | 1,538,221,723,000 | 1,538,221,723,000 | 150,869,076 | 0 | 0 | Apache-2.0 | 1,538,229,323,000 | 1,538,229,323,000 | null | UTF-8 | Lean | false | false | 7,783 | lean | /-
Copyright (c) 2017 Johannes Hölzl. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Johannes Hölzl
Borel (measurable) space -- the smallest σ-algebra generated by open sets
It would be nice to encode this in the topological space type class, i.e. each topological sp... |
920b111d78c1318541c45c6c6cc01602c6ed71d5 | 75db7e3219bba2fbf41bf5b905f34fcb3c6ca3f2 | /hott/types/nat/sub.hlean | b4d694294b90d62de0f6f14b275e94bb99a0216c | [
"Apache-2.0"
] | permissive | jroesch/lean | 30ef0860fa905d35b9ad6f76de1a4f65c9af6871 | 3de4ec1a6ce9a960feb2a48eeea8b53246fa34f2 | refs/heads/master | 1,586,090,835,348 | 1,455,142,203,000 | 1,455,142,277,000 | 51,536,958 | 1 | 0 | null | 1,455,215,811,000 | 1,455,215,811,000 | null | UTF-8 | Lean | false | false | 19,539 | hlean | /-
Copyright (c) 2014 Floris van Doorn. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Floris van Doorn, Jeremy Avigad
Subtraction on the natural numbers, as well as min, max, and distance.
-/
import .order
open eq.ops algebra eq
namespace nat
/- subtraction -/
pro... |
a52cc3dd120d99fdee866353655c08d2336925ec | 5883d9218e6f144e20eee6ca1dab8529fa1a97c0 | /src/aexp/default.lean | 7bdd93fb374817ed15185a01db31c9a76fde4181 | [] | no_license | spl/alpha-conversion-is-easy | 0d035bc570e52a6345d4890e4d0c9e3f9b8126c1 | ed937fe85d8495daffd9412a5524c77b9fcda094 | refs/heads/master | 1,607,649,280,020 | 1,517,380,240,000 | 1,517,380,240,000 | 52,174,747 | 4 | 0 | null | 1,456,052,226,000 | 1,456,001,163,000 | Lean | UTF-8 | Lean | false | false | 49 | lean | import .type
import .properties
import .category
|
113909c2f1d54f41e802378207e3a6231fc72ef8 | a45212b1526d532e6e83c44ddca6a05795113ddc | /src/ring_theory/algebra.lean | 5d7323f77d74f423c0b5a992eaf6fbfef8fade99 | [
"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 | 18,816 | lean | /-
Copyright (c) 2018 Kenny Lau. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Kenny Lau
Algebra over Commutative Ring (under category)
-/
import data.polynomial data.mv_polynomial
import data.complex.basic
import linear_algebra.tensor_product
import ring_theory.sub... |
a4f07393678bd4054ec36449c1aa9592affa6619 | 4bcaca5dc83d49803f72b7b5920b75b6e7d9de2d | /stage0/src/Lean/Elab/Extra.lean | 4504462a3f785e857cdaefc717645285c410d1c7 | [
"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 | 12,595 | 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.Elab.App
/-
Auxiliary elaboration functions: AKA custom elaborators
-/
namespace Lean.Elab.Term
open Meta
@[builtinTermElab binrel] def elabB... |
a68e5c9cee9b65f7ebd14674e70985f048898e30 | 86f6f4f8d827a196a32bfc646234b73328aeb306 | /examples/logic/unnamed_2152.lean | 845a268141f833b25b92c70be0de3814b0b8ac31 | [] | no_license | jamescheuk91/mathematics_in_lean | 09f1f87d2b0dce53464ff0cbe592c568ff59cf5e | 4452499264e2975bca2f42565c0925506ba5dda3 | refs/heads/master | 1,679,716,410,967 | 1,613,957,947,000 | 1,613,957,947,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 110 | lean | import tactic
open_locale classical
-- BEGIN
example (P Q : Prop) : (P → Q) ↔ ¬ P ∨ Q :=
sorry
-- END |
e05765e6cfb8bed564fd188e129d1cf6fd87f631 | 5c7fe6c4a9d4079b5457ffa5f061797d42a1cd65 | /src/exercises/src_13_applications_to_even_and_odd.lean | cb329639937906e2397d62af4b9fd0ee26b4292f | [] | no_license | gihanmarasingha/mth1001_tutorial | 8e0817feeb96e7c1bb3bac49b63e3c9a3a329061 | bb277eebd5013766e1418365b91416b406275130 | refs/heads/master | 1,675,008,746,310 | 1,607,993,443,000 | 1,607,993,443,000 | 321,511,270 | 3 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 3,098 | lean | import .src_09_or_elimination
namespace mth1001
section applications_to_even_and_odd
/-
In this section, we'll show applications of the law of the excluded middle, contradiction,
and contrapositive.
-/
/-
Here's a very short proof that `0 ≠ 1`, where `≠` is typed as `\ne`. The goal is closed using
the `linarith` t... |
c07954d77e0a956c2b1b3dc90b9656019717e66f | 8cae430f0a71442d02dbb1cbb14073b31048e4b0 | /src/ring_theory/valuation/ramification_group.lean | ed286cb001bc3eed7ac4a76bf310a5ec5214c33e | [
"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,068 | lean | /-
Copyright (c) 2022 Michail Karatarakis. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Michail Karatarakis
-/
import ring_theory.ideal.local_ring
import ring_theory.valuation.valuation_subring
/-!
# Ramification groups
> THIS FILE IS SYNCHRONIZED WITH MATHLIB4.
> ... |
03841690a5abe145e82964c1be56f1f9bbdde31f | 75db7e3219bba2fbf41bf5b905f34fcb3c6ca3f2 | /hott/hit/coeq.hlean | 0cb79870e5584ff7e7f6bff188c9cf0a948ab26a | [
"Apache-2.0"
] | permissive | jroesch/lean | 30ef0860fa905d35b9ad6f76de1a4f65c9af6871 | 3de4ec1a6ce9a960feb2a48eeea8b53246fa34f2 | refs/heads/master | 1,586,090,835,348 | 1,455,142,203,000 | 1,455,142,277,000 | 51,536,958 | 1 | 0 | null | 1,455,215,811,000 | 1,455,215,811,000 | null | UTF-8 | Lean | false | false | 5,080 | hlean | /-
Copyright (c) 2015 Floris van Doorn. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Floris van Doorn
Declaration of the coequalizer
-/
import .quotient_functor types.equiv
open quotient eq equiv equiv.ops is_trunc sigma sigma.ops
namespace coeq
section
universe... |
d7e90b2ddf96aef5446dac9d203c711e2fea85bf | d406927ab5617694ec9ea7001f101b7c9e3d9702 | /src/data/complex/exponential_bounds.lean | 76cbd13584f418cb8f67ec8792e53ef818dbf64a | [
"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 | 2,597 | lean | /-
Copyright (c) 2020 Joseph Myers. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Mario Carneiro, Joseph Myers
-/
import data.complex.exponential
import analysis.special_functions.log.deriv
/-!
# Bounds on specific values of the exponential
-/
namespace real
open i... |
8fbf2b58082eaf7c8dc2caacd5ae7b8031d6845c | cbb1957fc3e28e502582c54cbce826d666350eda | /fabstract/Birkhoff_G_ErgodicTheorem/fabstract.lean | 115ce5608885d31b0aad9984d386e6807d67d14e | [
"CC-BY-4.0"
] | permissive | andrejbauer/formalabstracts | 9040b172da080406448ad1b0260d550122dcad74 | a3b84fd90901ccf4b63eb9f95d4286a8775864d0 | refs/heads/master | 1,609,476,417,918 | 1,501,541,742,000 | 1,501,541,760,000 | 97,241,872 | 1 | 0 | null | 1,500,042,191,000 | 1,500,042,191,000 | null | UTF-8 | Lean | false | false | 2,364 | lean | import folklore.measure_theory
noncomputable theory
open set real_axiom.extended_real
namespace Birkhoff_G_ErgodicTheorem
variables {X : Type} (σ : set (set X)) [sigma_algebra σ] (μ : set X → ℝ∞) [hms : measure_space σ μ]
def measure_preserving (T : X → X) := ∀ s ∈ σ, μ (image T s) = μ s
def {u} function... |
ef57f62dc027c95439eca6c5ffcb1d712b726cbc | f1dc39e1c68f71465c8bf79910c4664d03824751 | /library/init/algebra/functions.lean | 993dc44770abcf28f00ec7bc5582d17a77223858 | [
"Apache-2.0"
] | permissive | kckennylau/lean-2 | 6504f45da07bc98b098d726b74130103be25885c | c9a9368bc0fd600d832bd56c5cb2124b8a523ef9 | refs/heads/master | 1,659,140,308,864 | 1,589,361,166,000 | 1,589,361,166,000 | 263,748,786 | 0 | 0 | null | 1,589,405,915,000 | 1,589,405,915,000 | null | UTF-8 | Lean | false | false | 17,366 | lean | /-
Copyright (c) 2016 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Jeremy Avigad, Leonardo de Moura
-/
prelude
import init.algebra.ordered_field
universe u
definition min {α : Type u} [decidable_linear_order α] (a b : α) : α := if a ≤ b then ... |
bab514ffa974974c3fc2647e3ee5a24daeb6f554 | 2c096fdfecf64e46ea7bc6ce5521f142b5926864 | /src/Lean/Elab/Tactic/Conv/Pattern.lean | 7f149d6016cf4b111e38f780e91db502824cab96 | [
"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 | Kha/lean4 | 1005785d2c8797ae266a303968848e5f6ce2fe87 | b99e11346948023cd6c29d248cd8f3e3fb3474cf | refs/heads/master | 1,693,355,498,027 | 1,669,080,461,000 | 1,669,113,138,000 | 184,748,176 | 0 | 0 | Apache-2.0 | 1,665,995,520,000 | 1,556,884,930,000 | Lean | UTF-8 | Lean | false | false | 6,044 | 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.Elab.Tactic.Simp
import Lean.Elab.Tactic.Conv.Basic
import Lean.HeadIndex
namespace Lean.Elab.Tactic.Conv
open Meta
private def getContext : M... |
0fb605cd610f892498dfbbdcbe6140127722ae6b | d642a6b1261b2cbe691e53561ac777b924751b63 | /src/data/set/lattice.lean | a37653e98e6946cd57f9aa55beaacc98edc1055b | [
"Apache-2.0"
] | permissive | cipher1024/mathlib | fee56b9954e969721715e45fea8bcb95f9dc03fe | d077887141000fefa5a264e30fa57520e9f03522 | refs/heads/master | 1,651,806,490,504 | 1,573,508,694,000 | 1,573,508,694,000 | 107,216,176 | 0 | 0 | Apache-2.0 | 1,647,363,136,000 | 1,508,213,014,000 | Lean | UTF-8 | Lean | false | false | 35,415 | lean | /-
Copyright (c) 2014 Jeremy Avigad. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Jeremy Avigad, Leonardo de Moura, Johannes Hölzl, Mario Carneiro
-- QUESTION: can make the first argument in ∀ x ∈ a, ... implicit?
-/
import logic.basic data.set.basic data.equiv.basi... |
9168db9d9069bef13ad8dc79b48cb0119756274f | c777c32c8e484e195053731103c5e52af26a25d1 | /src/analysis/analytic/uniqueness.lean | 57a5268a74db51984bb24b485a94a49e99684f21 | [
"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 | 5,262 | lean | /-
Copyright (c) 2022 Sébastien Gouëzel. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Sébastien Gouëzel
-/
import analysis.analytic.linear
import analysis.analytic.composition
import analysis.normed_space.completion
/-!
# Uniqueness principle for analytic functions
... |
71ad96ce36a01c8b3336d17e9850c51f20aae424 | 8930e38ac0fae2e5e55c28d0577a8e44e2639a6d | /data/list/perm.lean | 466060ab3e045894769bd7ef74f1d9407b3c4f4f | [
"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 | 36,419 | 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
List permutations.
-/
import data.list.basic
namespace list
universe variables uu vv
variables {α : Type uu} {β : Type vv}
/-... |
679649f290a4fd114b4f7d95e2bb440b56eb8664 | efce24474b28579aba3272fdb77177dc2b11d7aa | /src/category_theory/preserves_colimits.lean | c217252cae012b0f1f045684a669e066f29f354f | [
"Apache-2.0"
] | permissive | rwbarton/lean-homotopy-theory | cff499f24268d60e1c546e7c86c33f58c62888ed | 39e1b4ea1ed1b0eca2f68bc64162dde6a6396dee | refs/heads/lean-3.4.2 | 1,622,711,883,224 | 1,598,550,958,000 | 1,598,550,958,000 | 136,023,667 | 12 | 6 | Apache-2.0 | 1,573,187,573,000 | 1,528,116,262,000 | Lean | UTF-8 | Lean | false | false | 3,319 | lean | import category_theory.base
import category_theory.colimits
import category_theory.adjunction
import data.bij_on
open set
universes v₁ v₂ u₁ u₂
namespace category_theory
local notation f ` ∘ `:80 g:80 := g ≫ f
variables {C : Type u₁} [category.{v₁} C]
variables {D : Type u₂} [category.{v₂} D]
class preserves_initi... |
90e50815430bed3efee7e9f1b4fbd88581632723 | 38bf3fd2bb651ab70511408fcf70e2029e2ba310 | /src/category_theory/adjunction/limits.lean | 8931769c275283ee317e3146eb0b0223bc55a822 | [
"Apache-2.0"
] | permissive | JaredCorduan/mathlib | 130392594844f15dad65a9308c242551bae6cd2e | d5de80376088954d592a59326c14404f538050a1 | refs/heads/master | 1,595,862,206,333 | 1,570,816,457,000 | 1,570,816,457,000 | 209,134,499 | 0 | 0 | Apache-2.0 | 1,568,746,811,000 | 1,568,746,811,000 | null | UTF-8 | Lean | false | false | 5,689 | lean | /-
Copyright (c) 2019 Reid Barton. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Reid Barton, Johan Commelin
-/
import category_theory.adjunction.basic
import category_theory.limits.preserves
open opposite
namespace category_theory.adjunction
open category_theory
op... |
9da9370cd005810a8b2b3da4237896d4f23fc1c0 | 7cef822f3b952965621309e88eadf618da0c8ae9 | /src/data/set/finite.lean | 2dec931faea41bbae5ab8a5625bbee5ad4115792 | [
"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 | 23,314 | 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
Finite sets.
-/
import logic.function
import data.nat.basic data.fintype data.set.lattice data.set.function
open set lattice function
universes u v w ... |
9ac9d2452acc6d3db805d7287889747e99deabe2 | d406927ab5617694ec9ea7001f101b7c9e3d9702 | /src/linear_algebra/matrix/is_diag.lean | 11c1ab8f5962c8198d7cd22e414867bbbaedcd9c | [
"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,236 | lean | /-
Copyright (c) 2021 Lu-Ming Zhang. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Lu-Ming Zhang
-/
import linear_algebra.matrix.symmetric
import linear_algebra.matrix.orthogonal
import data.matrix.kronecker
/-!
# Diagonal matrices
This file contains the definition ... |
dec63ad2fff1e2e5ecc69297c32b67237b7cb21b | 9be442d9ec2fcf442516ed6e9e1660aa9071b7bd | /src/Lean/Elab/Tactic/Match.lean | 71577410231b0704bd819e8e51cf26161feb7262 | [
"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 | 2,369 | 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.Parser.Term
import Lean.Elab.Match
import Lean.Elab.Tactic.Basic
import Lean.Elab.Tactic.Induction
namespace Lean.Elab.Tactic
open Meta
open T... |
3e596ba8b85028a6b9fae287a0397a0d015b5dc4 | fa02ed5a3c9c0adee3c26887a16855e7841c668b | /src/ring_theory/mv_polynomial/basic.lean | e9aeda776b4c23b58c3a390b0d739c7878c6b631 | [
"Apache-2.0"
] | permissive | jjgarzella/mathlib | 96a345378c4e0bf26cf604aed84f90329e4896a2 | 395d8716c3ad03747059d482090e2bb97db612c8 | refs/heads/master | 1,686,480,124,379 | 1,625,163,323,000 | 1,625,163,323,000 | 281,190,421 | 2 | 0 | Apache-2.0 | 1,595,268,170,000 | 1,595,268,169,000 | null | UTF-8 | Lean | false | false | 4,128 | lean | /-
Copyright (c) 2019 Johannes Hölzl. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Johannes Hölzl
-/
import ring_theory.ideal.operations
import linear_algebra.finsupp_vector_space
import algebra.char_p.basic
/-!
# Multivariate polynomials over commutative rings
Th... |
a6046f179a4413945e782aac700c56fd3dd5240b | 46125763b4dbf50619e8846a1371029346f4c3db | /src/topology/uniform_space/cauchy.lean | cf92341ef533498a7642d2a4ade32fee23b07355 | [
"Apache-2.0"
] | permissive | thjread/mathlib | a9d97612cedc2c3101060737233df15abcdb9eb1 | 7cffe2520a5518bba19227a107078d83fa725ddc | refs/heads/master | 1,615,637,696,376 | 1,583,953,063,000 | 1,583,953,063,000 | 246,680,271 | 0 | 0 | Apache-2.0 | 1,583,960,875,000 | 1,583,960,875,000 | null | UTF-8 | Lean | false | false | 24,504 | 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 Cauchy filters in uniform spaces. Complete uniform spaces. Totally bounded subsets.
-/
import topology.uniform_space.basic topology.bases data... |
49510347a685a345f3bcdab183afcae71da88f2d | 3446e92e64a5de7ed1f2109cfb024f83cd904c34 | /src/game/world3/level6.lean | ca96a975fdacb10570c6910ede125e2247adeaec | [] | 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 | 1,329 | lean | import game.world3.level5 -- hide
import mynat.mul -- hide
namespace mynat -- hide
/-
# Multiplication World
## Level 6: `succ_mul`
We now begin our journey to `mul_comm`, the proof that `a * b = b * a`.
We'll get there in level 8. Until we're there, it is frustrating
but true that we cannot assume commutativity. W... |
76ca4cda5eaeb5cee97dbc950397f9618dab56a7 | 83c8119e3298c0bfc53fc195c41a6afb63d01513 | /library/init/data/int/comp_lemmas.lean | 704c429d502db8ca62c9ee28141395f5b4b1c68b | [
"Apache-2.0"
] | permissive | anfelor/lean | 584b91c4e87a6d95f7630c2a93fb082a87319ed0 | 31cfc2b6bf7d674f3d0f73848b842c9c9869c9f1 | refs/heads/master | 1,610,067,141,310 | 1,585,992,232,000 | 1,585,992,232,000 | 251,683,543 | 0 | 0 | Apache-2.0 | 1,585,676,570,000 | 1,585,676,569,000 | null | UTF-8 | Lean | false | false | 4,866 | 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
Auxiliary lemmas used to compare int numerals.
-/
prelude
import init.data.int.order
namespace int
/- Auxiliary lemmas for proving that to int numerals are d... |
de9d2f91fb3a3b92bf110d15c45d4fab3244e0e1 | 5719a16e23dfc08cdea7a5bf035b81690f307965 | /src/Init/Lean/PrettyPrinter.lean | 924c4d553a29e70b204c6eea28fec5ecc96cbf23 | [
"Apache-2.0"
] | permissive | postmasters/lean4 | 488b03969a371e1507e1e8a4df9ebf63c7cbe7ac | f3976fc53a883ac7606fc59357d43f4b51016ca7 | refs/heads/master | 1,655,582,707,480 | 1,588,682,595,000 | 1,588,682,595,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 45 | lean | import Init.Lean.PrettyPrinter.Parenthesizer
|
4433416fcbc4f0738ecfdbb2b80b0a19d91bb215 | 4950bf76e5ae40ba9f8491647d0b6f228ddce173 | /src/algebra/module/basic.lean | aff6a4d4027eaef183e9eba41b0438746f0ce752 | [
"Apache-2.0"
] | permissive | ntzwq/mathlib | ca50b21079b0a7c6781c34b62199a396dd00cee2 | 36eec1a98f22df82eaccd354a758ef8576af2a7f | refs/heads/master | 1,675,193,391,478 | 1,607,822,996,000 | 1,607,822,996,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 18,210 | lean | /-
Copyright (c) 2015 Nathaniel Thomas. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Nathaniel Thomas, Jeremy Avigad, Johannes Hölzl, Mario Carneiro
-/
import algebra.big_operators.basic
import algebra.group.hom
import algebra.ring.basic
import data.rat.cast
import g... |
a13661daa7bda760bbd9dbbbf471da118d86500b | fa02ed5a3c9c0adee3c26887a16855e7841c668b | /src/measure_theory/decomposition.lean | 1a3078fc64cd2a4f937caf7fa940c58ab9cf20d5 | [
"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 | 8,585 | lean | /-
Copyright (c) 2019 Johannes Hölzl. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Johannes Hölzl
Hahn decomposition theorem
TODO:
* introduce finite measures (into ℝ≥0)
* show general for signed measures (into ℝ)
-/
import measure_theory.measure_space
open set fi... |
709386642a5a4eac44e943e7f123ba30ec595017 | 9028d228ac200bbefe3a711342514dd4e4458bff | /src/algebra/pointwise.lean | 6a93d6bf9a88c28857ff39f1ba6a5812d234d42c | [
"Apache-2.0"
] | permissive | mcncm/mathlib | 8d25099344d9d2bee62822cb9ed43aa3e09fa05e | fde3d78cadeec5ef827b16ae55664ef115e66f57 | refs/heads/master | 1,672,743,316,277 | 1,602,618,514,000 | 1,602,618,514,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 15,685 | 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 ... |
c78da860740c2e37d955db7a2331638c3826e265 | 04909fc37cb15a54e7929b6fea1dd8fd91a2aa7f | /.config.nor.lean | 95802c3d4a437b85b0354b81cb193951964c5f11 | [
"MIT"
] | permissive | huangzhiguo/AR750S | ea8a3e9725197ab569d22e2d6aeb053d69e25268 | d94d23603bce040b2eb5ebb48198b70ec73c3b27 | refs/heads/main | 1,693,819,468,935 | 1,632,141,485,000 | 1,632,141,485,000 | 408,430,822 | 0 | 0 | MIT | 1,632,140,261,000 | 1,632,140,260,000 | null | UTF-8 | Lean | false | false | 250,414 | lean | #
# Automatically generated file; DO NOT EDIT.
# OpenWrt Configuration
#
CONFIG_MODULES=y
CONFIG_HAVE_DOT_CONFIG=y
# CONFIG_TARGET_sunxi is not set
# CONFIG_TARGET_apm821xx is not set
# CONFIG_TARGET_ath25 is not set
CONFIG_TARGET_ar71xx=y
# CONFIG_TARGET_ath79 is not set
# CONFIG_TARGET_bcm27xx is not set
# CONFIG_T... |
d3231b8b9b9b56f7e16b54c783158920295533fa | 56762daf61566a2baf390b5d77988c29c75187e3 | /src/prod_manifold.lean | 8c3ad9fcb40b9300a2f10597e5f01971cf3c7d56 | [] | no_license | Nicknamen/lie_group | de173ce5f1ffccb945ba05dca23ff27daef0e3b4 | e0d5c4f859654e3dea092702f1320c3c72a49983 | refs/heads/master | 1,674,937,428,196 | 1,607,213,423,000 | 1,607,213,423,000 | 275,196,635 | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 13,691 | lean | /-
Copyright © 2020 Nicolò Cavalleri. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Author: Nicolò Cavalleri.
-/
import .preamble_results
noncomputable theory
/-!
# Lie groups
We define product manifolds and prove smoothness of the classical maps associated with products.
... |
30cfa71c2e49f37c7c09126455473406a6662b7f | 49ffcd4736fa3bdcc1cdbb546d4c855d67c0f28a | /tests/lean/run/check_constants.lean | 9dcb0547afc2e0291ad6db7a5c6e71fc0d6a624f | [
"Apache-2.0"
] | permissive | black13/lean | 979e24d09e17b2fdf8ec74aac160583000086bc8 | 1a80ea9c8e28902cadbfb612896bcd45ba4ce697 | refs/heads/master | 1,626,839,620,164 | 1,509,113,016,000 | 1,509,122,889,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 15,192 | lean | -- DO NOT EDIT, automatically generated file, generator scripts/gen_constants_cpp.py
import smt system.io
open tactic
meta def script_check_id (n : name) : tactic unit :=
do env ← get_env, (env^.get n >> return ()) <|> (guard $ env^.is_namespace n) <|> (attribute.get_instances n >> return ()) <|> fail ("identifier '" +... |
7a35aa48e5b233fa342b86aaf660b20ba1bc1202 | d406927ab5617694ec9ea7001f101b7c9e3d9702 | /src/group_theory/group_action/embedding.lean | bce58765350a1ac7054712245b5843b82417b290 | [
"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,894 | lean | /-
Copyright (c) 2022 Eric Wieser. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Eric Wieser
-/
import group_theory.group_action.group
import group_theory.group_action.pi
/-!
# Group actions on embeddings
This file provides a `mul_action G (α ↪ β)` instance that agr... |
42bafc937501ac8e156459fb03e6a17246777f89 | a721fe7446524f18ba361625fc01033d9c8b7a78 | /src/principia/mynat/max.lean | 9feec2df564c038327c083bd789d36bcd2708a6b | [] | no_license | Sterrs/leaning | 8fd80d1f0a6117a220bb2e57ece639b9a63deadc | 3901cc953694b33adda86cb88ca30ba99594db31 | refs/heads/master | 1,627,023,822,744 | 1,616,515,221,000 | 1,616,515,221,000 | 245,512,190 | 2 | 0 | null | 1,616,429,050,000 | 1,583,527,118,000 | Lean | UTF-8 | Lean | false | false | 1,976 | lean | import .nat_sub
namespace hidden
namespace mynat
-- TODO: generalise this to relevant types and relations
def max (a b : mynat) : mynat :=
if a ≤ b then b else a
def min (a b : mynat) : mynat :=
if a ≤ b then b else a
variables {a b c : mynat}
theorem le_imp_max2 (h : a ≤ b) : max a b = b := if_pos h
theorem le_im... |
7031fdfb157eb7d25a6d322852b06548ee51c231 | fa02ed5a3c9c0adee3c26887a16855e7841c668b | /src/tactic/simp_rw.lean | 8d5ceb5619073048e38ebc97a63507f9415dcea4 | [
"Apache-2.0"
] | permissive | jjgarzella/mathlib | 96a345378c4e0bf26cf604aed84f90329e4896a2 | 395d8716c3ad03747059d482090e2bb97db612c8 | refs/heads/master | 1,686,480,124,379 | 1,625,163,323,000 | 1,625,163,323,000 | 281,190,421 | 2 | 0 | Apache-2.0 | 1,595,268,170,000 | 1,595,268,169,000 | null | UTF-8 | Lean | false | false | 2,348 | lean | /-
Copyright (c) 2020 Anne Baanen. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Anne Baanen
The `simp_rw` tactic, a mix of `simp` and `rewrite`.
-/
import tactic.core
/-!
# The `simp_rw` tactic
This module defines a tactic `simp_rw` which functions as a mix of `si... |
b12887ef111ac9cfbe96b2bb9e878934e1d8654e | 80cc5bf14c8ea85ff340d1d747a127dcadeb966f | /src/topology/subset_properties.lean | cccf3a3981c3afd41302ddee363363ad73c89394 | [
"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 | 57,889 | 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, Yury Kudryashov
-/
import topology.continuous_on
import data.finset.order
/-!
# Properties of subsets of topological spaces
## Main definitions
`comp... |
184962f89e1815b796bf3d663d9dc65f8b7dc12d | ba4794a0deca1d2aaa68914cd285d77880907b5c | /src/tactic/less_leaky.lean | 12e56c3b5d6385cec5a68b72d6dfc9f4ec66947a | [
"Apache-2.0"
] | permissive | ChrisHughes24/natural_number_game | c7c00aa1f6a95004286fd456ed13cf6e113159ce | 9d09925424da9f6275e6cfe427c8bcf12bb0944f | refs/heads/master | 1,600,715,773,528 | 1,573,910,462,000 | 1,573,910,462,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 1,722 | lean | -- Many many thanks to Rob Lewis for supplying 99.9% of this file.
import tactic.modded tactic.apply
open tactic
meta def copy_decl (d : declaration) : tactic unit :=
add_decl $ d.update_name $ d.to_name.update_prefix `less_leaky.interactive
@[reducible] meta def filter (d : declaration) : bool :=
d.to_name ∉ [`tac... |
562947e4b9a742a3ae68635f9c6215b2ba710aac | b70031c8e2c5337b91d7e70f1e0c5f528f7b0e77 | /src/data/set/function.lean | 2300a3c4b0e00f4d52eb813568afc97d3a3aaf1b | [
"Apache-2.0"
] | permissive | molodiuc/mathlib | cae2ba3ef1601c1f42ca0b625c79b061b63fef5b | 98ebe5a6739fbe254f9ee9d401882d4388f91035 | refs/heads/master | 1,674,237,127,059 | 1,606,353,533,000 | 1,606,353,533,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 28,526 | lean | /-
Copyright (c) 2014 Jeremy Avigad. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Author: Jeremy Avigad, Andrew Zipperer, Haitao Zhang, Minchao Wu, Yury Kudryashov
-/
import data.set.basic
import logic.function.conjugate
/-!
# Functions over sets
## Main definitions
### Pr... |
26bf4a829662a310b198d5e38464610ed0aecf90 | fa02ed5a3c9c0adee3c26887a16855e7841c668b | /src/topology/metric_space/basic.lean | 784216823c92bd767ad8363bb3c047d2c0be080e | [
"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 | 96,530 | lean | /-
Copyright (c) 2015, 2017 Jeremy Avigad. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Jeremy Avigad, Robert Y. Lewis, Johannes Hölzl, Mario Carneiro, Sébastien Gouëzel
-/
import topology.metric_space.emetric_space
import topology.shrinking_lemma
import topology.al... |
5c63b450a730c3f28162187257e84d85a7bf9c46 | 75db7e3219bba2fbf41bf5b905f34fcb3c6ca3f2 | /hott/homotopy/connectedness.hlean | bf572a6d953ebd40ed9a5e67173fed5a0630797b | [
"Apache-2.0"
] | permissive | jroesch/lean | 30ef0860fa905d35b9ad6f76de1a4f65c9af6871 | 3de4ec1a6ce9a960feb2a48eeea8b53246fa34f2 | refs/heads/master | 1,586,090,835,348 | 1,455,142,203,000 | 1,455,142,277,000 | 51,536,958 | 1 | 0 | null | 1,455,215,811,000 | 1,455,215,811,000 | null | UTF-8 | Lean | false | false | 9,824 | hlean | /-
Copyright (c) 2015 Ulrik Buchholtz. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Ulrik Buchholtz
-/
import types.trunc types.eq types.arrow_2 types.fiber .susp
open eq is_trunc is_equiv nat equiv trunc function fiber funext
namespace homotopy
definition is_co... |
173d6485c097514e99c874f8b5c8fcbca1677c6d | e514e8b939af519a1d5e9b30a850769d058df4e9 | /src/tactic/rewrite_search/core/types.lean | 5e70aed3153073e873849c43050d2ad87995fd96 | [] | no_license | semorrison/lean-rewrite-search | dca317c5a52e170fb6ffc87c5ab767afb5e3e51a | e804b8f2753366b8957be839908230ee73f9e89f | refs/heads/master | 1,624,051,754,485 | 1,614,160,817,000 | 1,614,160,817,000 | 162,660,605 | 0 | 1 | null | null | null | null | UTF-8 | Lean | false | false | 9,709 | lean | import lib.table
import data.rat.basic
import tactic.rewrite_search.discovery.common
import .common
import .hook
universes u v
open tactic
namespace tactic.rewrite_search
def dnum : Type := ℕ
namespace dnum
@[inline] instance : has_zero dnum := nat.has_zero
@[inline] instance : has_one dnum := nat.has_one
@[inli... |
aa44113e8ae6b8f3314ffbccc3ed9a47873b2114 | 9dc8cecdf3c4634764a18254e94d43da07142918 | /src/analysis/calculus/parametric_integral.lean | dd7ed194fc022908f055be71fc84c1de7c54dd23 | [
"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 | 15,258 | lean | /-
Copyright (c) 2021 Patrick Massot. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Patrick Massot
-/
import measure_theory.integral.set_integral
import analysis.calculus.mean_value
/-!
# Derivatives of integrals depending on parameters
A parametric integral is a fu... |
c9d27dbd9896598ceef7f0ade621139d7d58c49c | d406927ab5617694ec9ea7001f101b7c9e3d9702 | /src/category_theory/essential_image.lean | 374ac99ad2a4920ddda1334847a4e135a53f84d3 | [
"Apache-2.0"
] | permissive | alreadydone/mathlib | dc0be621c6c8208c581f5170a8216c5ba6721927 | c982179ec21091d3e102d8a5d9f5fe06c8fafb73 | refs/heads/master | 1,685,523,275,196 | 1,670,184,141,000 | 1,670,184,141,000 | 287,574,545 | 0 | 0 | Apache-2.0 | 1,670,290,714,000 | 1,597,421,623,000 | Lean | UTF-8 | Lean | false | false | 5,348 | 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.natural_isomorphism
import category_theory.full_subcategory
/-!
# Essential image of a functor
The essential image `ess_image` of a functor consi... |
def1735a1f1c75f1e6fd354ea58b430178e7157f | e00ea76a720126cf9f6d732ad6216b5b824d20a7 | /src/deprecated/group.lean | bcb49583fbcb20ee7201b026446f22d2e3902541 | [
"Apache-2.0"
] | permissive | vaibhavkarve/mathlib | a574aaf68c0a431a47fa82ce0637f0f769826bfe | 17f8340912468f49bdc30acdb9a9fa02eeb0473a | refs/heads/master | 1,621,263,802,637 | 1,585,399,588,000 | 1,585,399,588,000 | 250,833,447 | 0 | 0 | Apache-2.0 | 1,585,410,341,000 | 1,585,410,341,000 | null | UTF-8 | Lean | false | false | 12,316 | lean | import algebra.group.type_tags algebra.group.is_unit
/-!
# Unbundled monoid and group homomorphisms (deprecated)
This file defines typeclasses for unbundled monoid and group homomorphisms. Though these classes are
deprecated, they are still widely used in mathlib, and probably will not go away before Lean 4
because L... |
accabb20fe731ad0cdceb4145249375ffd7ef19e | c3f2fcd060adfa2ca29f924839d2d925e8f2c685 | /tests/lean/run/cody2.lean | d18ac0c847b1681c6091263945204bb3d64a6d56 | [
"Apache-2.0"
] | permissive | respu/lean | 6582d19a2f2838a28ecd2b3c6f81c32d07b5341d | 8c76419c60b63d0d9f7bc04ebb0b99812d0ec654 | refs/heads/master | 1,610,882,451,231 | 1,427,747,084,000 | 1,427,747,429,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 436 | lean | import logic
open eq
definition subsets (P : Type) := P → Prop.
context
hypothesis A : Type.
hypothesis r : A → subsets A.
hypothesis i : subsets A → A.
hypothesis retract {P : subsets A} {a : A} : r (i P) a = P a.
definition delta (a:A) : Prop := ¬ (r a a).
notation `δ` := delta.
theorem delta_aux : ¬ (δ (i de... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.