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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
cf4b34eb4e9e64aa457dd69aa39d7bdfa7dd0913 | 74addaa0e41490cbaf2abd313a764c96df57b05d | /Mathlib/set_theory/ordinal.lean | 7bd552c3b927ddaa6fbc6df69463c65306441cee | [] | 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 | 48,443 | lean | /-
Copyright (c) 2017 Johannes Hölzl. 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.set_theory.cardinal
import Mathlib.PostPort
universes u_4 u_5 l u_1 u_2 u_3 u v w
namespa... |
857efc0522c9352e8975ed56b94e3908ba0978aa | 6432ea7a083ff6ba21ea17af9ee47b9c371760f7 | /src/Lean/Parser/Do.lean | 78a57687bcdae5f3395dda8d26916f1817fe0572 | [
"Apache-2.0",
"LLVM-exception",
"NCSA",
"LGPL-3.0-only",
"LicenseRef-scancode-inner-net-2.0",
"BSD-3-Clause",
"LGPL-2.0-or-later",
"Spencer-94",
"LGPL-2.1-or-later",
"HPND",
"LicenseRef-scancode-pcre",
"ISC",
"LGPL-2.1-only",
"LicenseRef-scancode-other-permissive",
"SunPro",
"CMU-Mach"... | permissive | leanprover/lean4 | 4bdf9790294964627eb9be79f5e8f6157780b4cc | f1f9dc0f2f531af3312398999d8b8303fa5f096b | refs/heads/master | 1,693,360,665,786 | 1,693,350,868,000 | 1,693,350,868,000 | 129,571,436 | 2,827 | 311 | Apache-2.0 | 1,694,716,156,000 | 1,523,760,560,000 | Lean | UTF-8 | Lean | false | false | 9,139 | 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
namespace Lean
namespace Parser
builtin_initialize registerBuiltinParserAttribute `builtin_doElem_parser ``Category.doElem
builtin... |
2c0b099be518eb9b9d6fe0c4e8931262c58f7dc3 | 94e33a31faa76775069b071adea97e86e218a8ee | /src/analysis/box_integral/partition/additive.lean | b08c6d734eecbad277f1345900aacae44bb6c272 | [
"Apache-2.0"
] | permissive | urkud/mathlib | eab80095e1b9f1513bfb7f25b4fa82fa4fd02989 | 6379d39e6b5b279df9715f8011369a301b634e41 | refs/heads/master | 1,658,425,342,662 | 1,658,078,703,000 | 1,658,078,703,000 | 186,910,338 | 0 | 0 | Apache-2.0 | 1,568,512,083,000 | 1,557,958,709,000 | Lean | UTF-8 | Lean | false | false | 9,743 | lean | /-
Copyright (c) 2021 Yury Kudryashov. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Yury Kudryashov
-/
import analysis.box_integral.partition.split
import analysis.normed_space.operator_norm
import data.set.intervals.proj_Icc
/-!
# Box additive functions
We say tha... |
a30cabbb618ac02a279725ded0c88b4011f9e4fc | 6432ea7a083ff6ba21ea17af9ee47b9c371760f7 | /tests/lean/run/byteSliceIssue.lean | fc00a3366ff3a3b9860d31883acc8491b60d8f49 | [
"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,715 | lean | def Nat.Up (ub a i : Nat) := i < a ∧ i < ub
theorem Nat.Up.next {ub i} (h : i < ub) : Up ub (i+1) i := ⟨Nat.lt_succ_self _, h⟩
/-- A terminal byte slice, a suffix of a byte array. -/
structure ByteSliceT := (arr : ByteArray) (off : Nat)
namespace ByteSliceT
/-- The number of elements in the byte slice. -/
@[inline]... |
c06dcb4ab3b6cb5f8311e610cd7218b0f625af7d | d436468d80b739ba7e06843c4d0d2070e43448e5 | /src/linear_algebra/finite_dimensional.lean | dd0abe31f63afae18ede030f77bbeb4b6587ada3 | [
"Apache-2.0"
] | permissive | roro47/mathlib | 761fdc002aef92f77818f3fef06bf6ec6fc1a28e | 80aa7d52537571a2ca62a3fdf71c9533a09422cf | refs/heads/master | 1,599,656,410,625 | 1,573,649,488,000 | 1,573,649,488,000 | 221,452,951 | 0 | 0 | Apache-2.0 | 1,573,647,693,000 | 1,573,647,692,000 | null | UTF-8 | Lean | false | false | 7,627 | lean | /-
Copyright (c) 2019 Chris Hughes. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Chris Hughes
Definition and basic properties of finite dimensional vector spaces.
The class `finite_dimensional` is defined to be `is_noetherian`, for ease of transfer of proofs.
Howev... |
b6d24e155a75253d7af8c0ccf88396a0fffab1fb | 82e44445c70db0f03e30d7be725775f122d72f3e | /src/geometry/manifold/derivation_bundle.lean | 423775318e260932ccc5f23024314123c8d1f0a6 | [
"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 | 6,265 | lean | /-
Copyright © 2020 Nicolò Cavalleri. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Nicolò Cavalleri
-/
import geometry.manifold.algebra.smooth_functions
import ring_theory.derivation
/-!
# Derivation bundle
In this file we define the derivations at a point of a m... |
a3c824061c10505ed599d6578d5032e8c18ae802 | d9d511f37a523cd7659d6f573f990e2a0af93c6f | /src/linear_algebra/clifford_algebra/basic.lean | 9b0a0b94ed8521ebb8f070d6c36f634a200461d5 | [
"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,443 | lean | /-
Copyright (c) 2020 Eric Wieser. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Eric Wieser, Utensil Song
-/
import algebra.ring_quot
import linear_algebra.tensor_algebra
import linear_algebra.exterior_algebra
import linear_algebra.quadratic_form
/-!
# Clifford Alg... |
9f37b4f2ba2ec20b1ba075d7fd54a1a7c007b135 | 0845ae2ca02071debcfd4ac24be871236c01784f | /library/init/lean/compiler/util.lean | 23a72b8b677ca1ae5422e1788aa43a83f238318b | [
"Apache-2.0"
] | permissive | GaloisInc/lean4 | 74c267eb0e900bfaa23df8de86039483ecbd60b7 | 228ddd5fdcd98dd4e9c009f425284e86917938aa | refs/heads/master | 1,643,131,356,301 | 1,562,715,572,000 | 1,562,715,572,000 | 192,390,898 | 0 | 0 | null | 1,560,792,750,000 | 1,560,792,749,000 | null | UTF-8 | Lean | false | false | 2,962 | lean | /-
Copyright (c) 2019 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Leonardo de Moura
-/
prelude
import init.lean.environment
namespace Lean
namespace Compiler
def neutralExpr : Expr := Expr.const `_neutral []
def unreachableExpr : Expr ... |
8f8300c8b16547a89ecb034078faa75c78a63ff2 | 6432ea7a083ff6ba21ea17af9ee47b9c371760f7 | /tests/lean/run/localParsers.lean | a057428f7a541a9eeeb4464e0189335f7a6dd0ca | [
"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 | 529 | lean | def f (x y : Nat) := x + 2*y
namespace Foo
local infix:65 (priority := high) "+" => f
theorem ex1 (x y : Nat) : x + y = f x y := rfl
#check 1 + 2
end Foo
#check 1 + 2
theorem ex2 (x y : Nat) : x + y = HAdd.hAdd x y := rfl
open Foo
theorem ex3 (x y : Nat) : x + y = HAdd.hAdd x y := rfl
#check 1 + 2
section
def ... |
0e3c0101c620533e6e482662cc27f35a5f8d1417 | 74addaa0e41490cbaf2abd313a764c96df57b05d | /Mathlib/order/rel_classes.lean | d2c00d6493b6945138bad1e2607f16f35d18da31 | [] | 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,656 | lean | /-
Copyright (c) 2020 Jeremy Avigad. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Jeremy Avigad, Mario Carneiro, Yury G. Kudryashov
-/
import Mathlib.PrePort
import Mathlib.Lean3Lib.init.default
import Mathlib.order.basic
import Mathlib.PostPort
universes u l u_1 v ... |
f827c387d408f13ac37a9b69cfffc600d639b676 | 9dc8cecdf3c4634764a18254e94d43da07142918 | /src/algebra/order/monoid.lean | 5d592a6fcfc041c1282441e8d2881911ccf1c490 | [
"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 | 61,264 | lean | /-
Copyright (c) 2016 Jeremy Avigad. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Jeremy Avigad, Leonardo de Moura, Mario Carneiro, Johannes Hölzl
-/
import algebra.group.with_one
import algebra.group.prod
import algebra.hom.equiv
import algebra.order.monoid_lemmas
i... |
9786fa26979a4247c6fe2f7fb70668d5f77ab127 | e0b0b1648286e442507eb62344760d5cd8d13f2d | /src/Lean/Elab/SyntheticMVars.lean | d52ce05fd9ac2ee230e6c0fc50ec5f5da3bedc6f | [
"Apache-2.0"
] | permissive | MULXCODE/lean4 | 743ed389e05e26e09c6a11d24607ad5a697db39b | 4675817a9e89824eca37192364cd47a4027c6437 | refs/heads/master | 1,682,231,879,857 | 1,620,423,501,000 | 1,620,423,501,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 17,195 | 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.ForEachExpr
import Lean.Elab.Term
import Lean.Elab.Tactic.Basic
namespace Lean.Elab.Term
open Tactic (TacticM evalTacti... |
6b5d56cae3a4571a463afb86ecf3cde21b840562 | 2cf781335f4a6706b7452ab07ce323201e2e101f | /lean/bitvec.lean | 973ffd1a9f431feb239e1f0ed85bf4bba38ecd32 | [
"Apache-2.0"
] | permissive | simonjwinwood/reopt-vcg | 697cdd5e68366b5aa3298845eebc34fc97ccfbe2 | 6aca24e759bff4f2230bb58270bac6746c13665e | refs/heads/master | 1,586,353,878,347 | 1,549,667,148,000 | 1,549,667,148,000 | 159,409,828 | 0 | 0 | null | 1,543,358,444,000 | 1,543,358,444,000 | null | UTF-8 | Lean | false | false | 16,597 | lean | /-
Copyright (c) 2015 Joe Hendrix. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Joe Hendrix, Sebastian Ullrich, Jason Dagit
Basic operations on bitvectors.
This is a work-in-progress, and contains additions to other theories.
-/
import data.vector
import .nat.lemma... |
81cdbee49cdcad84d71e989a8ffa01224fe82db1 | 94e33a31faa76775069b071adea97e86e218a8ee | /src/ring_theory/dedekind_domain/ideal.lean | fd824db58ecb45b3de2427d30c55520dde93fc0c | [
"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 | 48,973 | lean | /-
Copyright (c) 2020 Kenji Nakagawa. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Kenji Nakagawa, Anne Baanen, Filippo A. E. Nuccio
-/
import algebra.algebra.subalgebra.pointwise
import algebraic_geometry.prime_spectrum.noetherian
import order.hom.basic
import ring_... |
e3bb38ba9afdf08d8a41b89d7a32b9ffa0d867ab | 69d4931b605e11ca61881fc4f66db50a0a875e39 | /src/algebra/geom_sum.lean | 5bf5ad6da30586d12f17e6633978697cdf3b55b7 | [
"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 | 13,357 | lean | /-
Copyright (c) 2019 Neil Strickland. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Neil Strickland
-/
import algebra.group_with_zero.power
import algebra.big_operators.order
import algebra.big_operators.ring
import algebra.big_operators.intervals
/-!
# Partial sum... |
335f170129d7051891eeac2eb628802b5ff9b1e9 | 2731214ea32f2a1a985300e281fb3117640a16c3 | /portmanteau_metric_lemmas.lean | 42ae2db6e64fad4f76558c6a435ab58ffae4d246 | [
"Apache-2.0"
] | permissive | kkytola/lean_portmanteau | 5d6a156db959974ebc4f5bed9118a7a2438a33fa | ac55eb4e24be43032cbc082e2b68d8fb8bd63f22 | refs/heads/main | 1,686,107,117,334 | 1,625,177,052,000 | 1,625,177,052,000 | 381,514,032 | 1 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 12,871 | lean | /-
Copyright (c) 2021 Kalle Kytölä. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Kalle Kytölä
-/
import tactic
import measure_theory.measurable_space
import measure_theory.integration
import measure_theory.borel_space
import measure_theory.lebesgue_measure
import to... |
58c1098986e5525e900595a2d7884408242241d2 | d642a6b1261b2cbe691e53561ac777b924751b63 | /src/data/padics/hensel.lean | bf9d0364a387c42fb576a02cc030d5232f2003c9 | [
"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 | 21,553 | 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 data.polynomial topology.metric_space.cau_seq_filter
import analysis.specific_limits topology.algebra.polynomial
/-!
# Hensel's ... |
fbf78ca49faaad72f36ebcda2b90da30bd77587a | 491068d2ad28831e7dade8d6dff871c3e49d9431 | /hott/init/datatypes.hlean | 89ee1fa4fa02ad8e19604d1daf341a3da85a466b | [
"Apache-2.0"
] | permissive | davidmueller13/lean | 65a3ed141b4088cd0a268e4de80eb6778b21a0e9 | c626e2e3c6f3771e07c32e82ee5b9e030de5b050 | refs/heads/master | 1,611,278,313,401 | 1,444,021,177,000 | 1,444,021,177,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 2,745 | hlean | /-
Copyright (c) 2014 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Leonardo de Moura, Jakob von Raumer
Basic datatypes
-/
prelude
notation [parsing-only] `Type'` := Type.{_+1}
notation [parsing-only] `Type₊` := Type.{_+1}
notation `Type₀` := ... |
009ee132f5d48342f97a846a23470c51f8138029 | 66a6486e19b71391cc438afee5f081a4257564ec | /homotopy/smash.hlean | 7e3334ef7bbf9ac602633815362add214fc6714f | [
"Apache-2.0"
] | permissive | spiceghello/Spectral | c8ccd1e32d4b6a9132ccee20fcba44b477cd0331 | 20023aa3de27c22ab9f9b4a177f5a1efdec2b19f | refs/heads/master | 1,611,263,374,078 | 1,523,349,717,000 | 1,523,349,717,000 | 92,312,239 | 0 | 0 | null | 1,495,642,470,000 | 1,495,642,470,000 | null | UTF-8 | Lean | false | false | 56,620 | hlean | -- Authors: Floris van Doorn
import homotopy.smash types.pointed2 .pushout homotopy.red_susp
open bool pointed eq equiv is_equiv sum bool prod unit circle cofiber prod.ops wedge is_trunc
function red_susp unit
/- To prove: Σ(X × Y) ≃ ΣX ∨ ΣY ∨ Σ(X ∧ Y) (notation means suspension, wedge, smash) -/
/- To pro... |
e968c22392872bd162d29eb05534f7141aa7e1e7 | 9be442d9ec2fcf442516ed6e9e1660aa9071b7bd | /tests/lean/structInst1.lean | 84ba7a193c354682e5a28223ff19795bf930f9bb | [
"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 | 723 | lean | structure A where
x : Nat
w : Nat
structure B extends A where
y : Nat
structure C extends B where
z : Nat
def f1 (c : C) (a : A) : C :=
{ c with toA := a, x := 0 } -- Error, `toA` and `x` are both updates to field `x`
def f2 (c : C) (a : A) : C :=
{ c with toA := a }
def f3 (c : C) (a : A) : C :=
{ ... |
d42bd1f2d33e855ced4c2eeb6cae0c324ad92334 | d406927ab5617694ec9ea7001f101b7c9e3d9702 | /src/order/filter/cofinite.lean | a2f292575c2f5167b186cda4e65fe9da7fd95e0a | [
"Apache-2.0"
] | permissive | alreadydone/mathlib | dc0be621c6c8208c581f5170a8216c5ba6721927 | c982179ec21091d3e102d8a5d9f5fe06c8fafb73 | refs/heads/master | 1,685,523,275,196 | 1,670,184,141,000 | 1,670,184,141,000 | 287,574,545 | 0 | 0 | Apache-2.0 | 1,670,290,714,000 | 1,597,421,623,000 | Lean | UTF-8 | Lean | false | false | 7,705 | 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, Jeremy Avigad, Yury Kudryashov
-/
import order.filter.at_top_bot
import order.filter.pi
/-!
# The cofinite filter
In this file we define
`cofinite`: the filter of se... |
af9637f2154b7f230b0edfbc5c80ab09faac0cd3 | 8e6cad62ec62c6c348e5faaa3c3f2079012bdd69 | /src/topology/uniform_space/separation.lean | 656dbb615d5f7081c8eb6cdbdc4056f046387e0d | [
"Apache-2.0"
] | permissive | benjamindavidson/mathlib | 8cc81c865aa8e7cf4462245f58d35ae9a56b150d | fad44b9f670670d87c8e25ff9cdf63af87ad731e | refs/heads/master | 1,679,545,578,362 | 1,615,343,014,000 | 1,615,343,014,000 | 312,926,983 | 0 | 0 | Apache-2.0 | 1,615,360,301,000 | 1,605,399,418,000 | Lean | UTF-8 | Lean | false | false | 20,912 | 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, Patrick Massot
-/
import topology.uniform_space.basic
import tactic.apply_fun
/-!
# Hausdorff properties of uniform spaces. Separation quotient.
This file studies un... |
1ab236ce271c046dda8c3d401112e9c9d59def1d | 8cae430f0a71442d02dbb1cbb14073b31048e4b0 | /src/category_theory/sites/subsheaf.lean | b0bd284af72788bf63dd66237a075d5e741e7401 | [
"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 | 16,427 | lean | /-
Copyright (c) 2022 Andrew Yang. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Andrew Yang
-/
import category_theory.elementwise
import category_theory.adjunction.evaluation
import category_theory.sites.sheafification
/-!
# Subsheaf of types
> THIS FILE IS SYNCHR... |
c80f2f73e216aeaaaad480d351ad8fd71b7c12ee | 55c7fc2bf55d496ace18cd6f3376e12bb14c8cc5 | /src/group_theory/group_action.lean | d6e9a2bb5397caf649438ab9ce40716edabf300e | [
"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 | 14,226 | lean | /-
Copyright (c) 2018 Chris Hughes. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Chris Hughes
-/
import group_theory.coset
universes u v w
variables {α : Type u} {β : Type v} {γ : Type w}
open_locale big_operators
open function
/-- Typeclass for types with a scala... |
0975ef01bd5bb4d6f603fadea4b94322ae050aab | 7cef822f3b952965621309e88eadf618da0c8ae9 | /src/category_theory/core.lean | 0bc2e22f565fd4da8433c4c7628566b3a0779d87 | [
"Apache-2.0"
] | permissive | rmitta/mathlib | 8d90aee30b4db2b013e01f62c33f297d7e64a43d | 883d974b608845bad30ae19e27e33c285200bf84 | refs/heads/master | 1,585,776,832,544 | 1,576,874,096,000 | 1,576,874,096,000 | 153,663,165 | 0 | 2 | Apache-2.0 | 1,544,806,490,000 | 1,539,884,365,000 | Lean | UTF-8 | Lean | false | false | 1,538 | lean | /-
Copyright (c) 2019 Scott Morrison All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Scott Morrison
The core of a category C is the groupoid whose morphisms are all the
isomorphisms of C.
-/
import category_theory.groupoid
import category_theory.whiskering
namespace ... |
ed9f85c8a92e16f120d0e10cd3daa53e052cdccc | fa02ed5a3c9c0adee3c26887a16855e7841c668b | /src/control/applicative.lean | f2c899d01c499cbe28110a6c2f8253874b0f68ba | [
"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,778 | lean | /-
Copyright (c) 2017 Simon Hudon. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Simon Hudon
Instances for identity and composition functors
-/
import control.functor
import algebra.group.basic
universe variables u v w
section lemmas
open function
variables {F : ... |
5747c3df5d31ea2e66eeb4fec39d3e417c48951a | 618003631150032a5676f229d13a079ac875ff77 | /src/measure_theory/giry_monad.lean | de140020614bd7801f11635fcdf240e054aa7abb | [
"Apache-2.0"
] | permissive | awainverse/mathlib | 939b68c8486df66cfda64d327ad3d9165248c777 | ea76bd8f3ca0a8bf0a166a06a475b10663dec44a | refs/heads/master | 1,659,592,962,036 | 1,590,987,592,000 | 1,590,987,592,000 | 268,436,019 | 1 | 0 | Apache-2.0 | 1,590,990,500,000 | 1,590,990,500,000 | null | UTF-8 | Lean | false | false | 8,498 | 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 measure_theory.integration
/-!
# The Giry monad
Let X be a measurable space. The collection of all measures on X again
forms a measurable space. This constru... |
9637b1c2d03bbf408cd53fcbbcef47308df3295c | 4b846d8dabdc64e7ea03552bad8f7fa74763fc67 | /tests/lean/run/io_state.lean | 7798a38c7aff5580651243d6e90f987a2fca5525 | [
"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 | 288 | lean | import system.io
open io state_t
@[reducible] def my_io := state_t nat io
instance lift_io {α} : has_coe (io α) (my_io α) :=
⟨state_t.lift⟩
def tst : my_io unit :=
do x ← read,
put_ln x,
write (x+10),
y ← read,
put_ln y,
put_str "end of program"
#eval tst 5
|
78033f4e8fd98ece4e8d9849235c4db48326f807 | 626e312b5c1cb2d88fca108f5933076012633192 | /src/data/nat/multiplicity.lean | 452ae6d4a7fcc4ef0f86c05de855e3dc6fb59930 | [
"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 | 11,881 | 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 algebra.big_operators.intervals
import data.nat.bitwise
import data.nat.log
import data.nat.parity
import ring_theory.int.basic
/-!
# Natural number multiplicity
... |
8be98ddb07b919f6c80b11890620854a49d06328 | d406927ab5617694ec9ea7001f101b7c9e3d9702 | /src/category_theory/limits/shapes/finite_limits.lean | 0b30e74d9d5e08fca54712db7d3e2db49655365a | [
"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 | 8,574 | lean | /-
Copyright (c) 2019 Scott Morrison. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Scott Morrison
-/
import category_theory.fin_category
import category_theory.limits.shapes.binary_products
import category_theory.limits.shapes.equalizers
import category_theory.limits... |
ae4161c2dbdf33b8f7d57ea1d5aceba11bc77733 | d406927ab5617694ec9ea7001f101b7c9e3d9702 | /src/number_theory/liouville/basic.lean | 3fd7bc77a56c63b4a7e1e2db736e405e2dedd113 | [
"Apache-2.0"
] | permissive | alreadydone/mathlib | dc0be621c6c8208c581f5170a8216c5ba6721927 | c982179ec21091d3e102d8a5d9f5fe06c8fafb73 | refs/heads/master | 1,685,523,275,196 | 1,670,184,141,000 | 1,670,184,141,000 | 287,574,545 | 0 | 0 | Apache-2.0 | 1,670,290,714,000 | 1,597,421,623,000 | Lean | UTF-8 | Lean | false | false | 12,398 | lean | /-
Copyright (c) 2020 Jujian Zhang. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Damiano Testa, Jujian Zhang
-/
import analysis.calculus.mean_value
import data.polynomial.denoms_clearable
import data.real.irrational
/-!
# Liouville's theorem
This file contains a pr... |
75e6fe3bf0ab40ec5c9cbc884031b77cf2aa0a8d | 74addaa0e41490cbaf2abd313a764c96df57b05d | /Mathlib/Lean3Lib/init/meta/widget/basic_auto.lean | be0da70cc6522e1c553595d36f5cd428ff8cfce0 | [] | 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 | 7,938 | lean | /-
Copyright (c) E.W.Ayers. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Author: E.W.Ayers
-/
import Mathlib.PrePort
import Mathlib.Lean3Lib.init.function
import Mathlib.Lean3Lib.init.data.option.basic
import Mathlib.Lean3Lib.init.util
import Mathlib.Lean3Lib.init.meta.tacti... |
6ada4aa86b7a9728ae7204ee15efed87892e8189 | 618003631150032a5676f229d13a079ac875ff77 | /src/algebra/module.lean | 31875d27597ce7e93cf290e49b0cd1becb05bfd7 | [
"Apache-2.0"
] | permissive | awainverse/mathlib | 939b68c8486df66cfda64d327ad3d9165248c777 | ea76bd8f3ca0a8bf0a166a06a475b10663dec44a | refs/heads/master | 1,659,592,962,036 | 1,590,987,592,000 | 1,590,987,592,000 | 268,436,019 | 1 | 0 | Apache-2.0 | 1,590,990,500,000 | 1,590,990,500,000 | null | UTF-8 | Lean | false | false | 28,854 | 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 group_theory.group_action
/-!
# Modules over a ring
In this file we define
* `semimodule R M` : an additi... |
38767caf39f0126a1f20a6c4d1cce713552ca5ea | 626e312b5c1cb2d88fca108f5933076012633192 | /src/data/set/intervals/unordered_interval.lean | 7cfc5a2ec5d35388ae4cada3485da2232d855ff8 | [
"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,899 | lean | /-
Copyright (c) 2020 Zhouhang Zhou. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Zhouhang Zhou
-/
import order.bounds
import data.set.intervals.image_preimage
/-!
# Intervals without endpoints ordering
In any decidable linear order `α`, we define the set of elemen... |
eb1f0703c390c544f6e417ac9a5f6919b74c8a0f | 5f83eb0c32f15aeed5993a3ad5ededb6f31fe7aa | /lean/attic/bitvec-ind/bv/helper.lean | 6cf21de6ec38f465c33f8a831781ad987458ee0a | [] | no_license | uw-unsat/jitterbug | 45b54979b156c0f5330012313052f8594abd6f14 | 78d1e75ad506498b585fbac66985ff9d9d05952d | refs/heads/master | 1,689,066,921,433 | 1,687,061,448,000 | 1,688,415,161,000 | 244,440,882 | 46 | 5 | null | null | null | null | UTF-8 | Lean | false | false | 1,329 | lean | -- nat helpers
import data.nat.basic
import data.num.basic
import data.num.lemmas
import data.int.modeq
import tactic.ring
namespace bv.helper
open nat
lemma pow2_succ (n : ℕ) : 2^(succ n) = 2 * 2^n :=
by simp [nat.pow_succ, mul_comm]
lemma pow2_pos (n : ℕ) : 2^n > 0 :=
pos_pow_of_pos _ two_pos
lemma pow2_succ_gt ... |
ae21e9824f944f7816a1f4ac240958d8d201c739 | bb31430994044506fa42fd667e2d556327e18dfe | /src/order/locally_finite.lean | e1e3238b53a60e04490d526784d587b702f6aeec | [
"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 | 43,653 | lean | /-
Copyright (c) 2021 Yaël Dillies. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Yaël Dillies
-/
import data.finset.preimage
import data.set.intervals.unordered_interval
/-!
# Locally finite orders
This file defines locally finite orders.
A locally finite order is... |
51308654634f5296128748299847fbb1f2be26d8 | da23b545e1653cafd4ab88b3a42b9115a0b1355f | /examples/rubiks_cube.lean | d61af81ea58a0a9ead827b02516f0fd0710c1dc7 | [] | no_license | minchaowu/lean-tidy | 137f5058896e0e81dae84bf8d02b74101d21677a | 2d4c52d66cf07c59f8746e405ba861b4fa0e3835 | refs/heads/master | 1,585,283,406,120 | 1,535,094,033,000 | 1,535,094,033,000 | 145,945,792 | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 17,575 | lean | import tidy.tidy
abbreviation C := ℕ
variables X_1 X_2 X_3 X_4 X_5 X_6 X_7 X_8 X_9 X_10 X_11 X_12 X_13 X_14 X_15 X_16 X_17 X_18 X_19 X_20 X_21 X_22 X_23 X_24 X_25 X_26 X_27 X_28 X_29 X_30 X_31 X_32 X_33 X_34 X_35 X_36 X_37 X_38 X_39 X_40 X_41 X_42 X_43 X_44 X_45 X_46 X_47 X_48 : C
constant Rubik : C → C → C → C → C → ... |
d59bd1bc9bd46cc89526ef13d0d01c7b2ecb829e | fa02ed5a3c9c0adee3c26887a16855e7841c668b | /src/order/partial_sups.lean | d360977a5c7116bfe9eb57a6d70bd40de1038127 | [
"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,670 | lean | /-
Copyright (c) 2021 Scott Morrison. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Scott Morrison
-/
import order.preorder_hom
import data.finset.lattice
import data.set.disjointed
/-!
# The monotone sequence of partial supremums of a sequence.
We define `partial_s... |
7b6a84c5ca45c9dc8c7d915ba8d99c38127d2dd0 | 4efff1f47634ff19e2f786deadd394270a59ecd2 | /src/category_theory/monad/bundled.lean | e11f5261cb08eeec9fc2fdd7c1fccad11a762f64 | [
"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 | 3,218 | lean | /-
Copyright (c) 2020 Adam Topaz. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Adam Topaz
-/
import category_theory.monad.basic
import category_theory.eq_to_hom
/-!
# Bundled Monads
We define bundled (co)monads as a structure consisting of a functor `func : C ⥤ C` ... |
c0a99c38e33236ac120bba3b3e35f5b33f7e54e9 | 4727251e0cd73359b15b664c3170e5d754078599 | /src/algebraic_topology/fundamental_groupoid/punit.lean | ccb1a4c3d1da9c0ae49c60a4eec875a5c630ea70 | [
"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,194 | lean | /-
Copyright (c) 2022 Praneeth Kolichala. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Praneeth Kolichala
-/
import algebraic_topology.fundamental_groupoid.induced_maps
import category_theory.punit
/-!
# Fundamental groupoid of punit
The fundamental groupoid of pun... |
0445753b90c78fbeacc99390d9a881981e685d06 | 624f6f2ae8b3b1adc5f8f67a365c51d5126be45a | /tests/lean/run/termElab.lean | 4aada0f8d2f74166fdb026d1ba5166d2cadcec1c | [
"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 | 685 | lean | import Init.Lean
open Lean
open Lean.Elab
open Lean.Elab.Term
set_option trace.Elab.debug true
def tst1 : TermElabM Unit := do
opt ← getOptions;
stx ← `(forall (a b : Nat), Nat);
dbgTrace "message 1"; -- This message goes direct to stdio. It will be displayed before trace messages.
e ← elabTermAndSynthesize stx none... |
f5b546d736631ad39b7cb1edcb4c86f4e397e6db | c8af905dcd8475f414868d303b2eb0e9d3eb32f9 | /src/data/cpi/process/equivalence.lean | 8a781c45684958617c7b339e13f607af51ebcab3 | [
"BSD-3-Clause"
] | permissive | continuouspi/lean-cpi | 81480a13842d67ff5f3698643210d8ed5dd08de4 | 443bf2cb236feadc45a01387099c236ab2b78237 | refs/heads/master | 1,650,307,316,582 | 1,587,033,364,000 | 1,587,033,364,000 | 207,499,661 | 1 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 4,611 | lean | import data.cpi.species data.cpi.process.basic
namespace cpi
namespace process
variables {ℂ ℍ : Type} {ω Γ : context} [has_add ℂ] [∀ Γ, setoid (species ℍ ω Γ)]
/-- Structural congruence of processes. -/
inductive equiv : process ℂ ℍ ω Γ → process ℂ ℍ ω Γ → Prop
| refl {A} : equiv A A
| trans {A B C} : equiv A B... |
900fe14c35660e66995a259b88f8cc9e01d0d116 | 98beff2e97d91a54bdcee52f922c4e1866a6c9b9 | /src/category/preserve_binary_products.lean | fdeaba8a1b4c51cbfccd22ad1480a63d91658319 | [] | 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 | 3,593 | 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.limits
import category_theory.limits.preserves.basic
import category_theory.limits.shapes.binary_products
/-!
Show that a functor `F : C ⥤ ... |
2695ff2627ed7d9b675df1d7f5e17e8def6c34bf | 37da0369b6c03e380e057bf680d81e6c9fdf9219 | /hott/homotopy/EM.hlean | a94413757973185ee06b8ca3bdff931a49d4fe89 | [
"Apache-2.0"
] | permissive | kodyvajjha/lean2 | 72b120d95c3a1d77f54433fa90c9810e14a931a4 | 227fcad22ab2bc27bb7471be7911075d101ba3f9 | refs/heads/master | 1,627,157,512,295 | 1,501,855,676,000 | 1,504,809,427,000 | 109,317,326 | 0 | 0 | null | 1,509,839,253,000 | 1,509,655,713,000 | C++ | UTF-8 | Lean | false | false | 18,548 | hlean | /-
Copyright (c) 2016 Floris van Doorn. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Floris van Doorn
Eilenberg MacLane spaces
-/
import hit.groupoid_quotient homotopy.hopf homotopy.freudenthal homotopy.homotopy_group
open algebra pointed nat eq category group is_... |
0c9daa599a32e6e454fc8bfb05323492e436e8af | 0845ae2ca02071debcfd4ac24be871236c01784f | /tests/lean/run/inline_fn.lean | 95252192daed34bc37188e5f7497d0fe8bfe978f | [
"Apache-2.0"
] | permissive | GaloisInc/lean4 | 74c267eb0e900bfaa23df8de86039483ecbd60b7 | 228ddd5fdcd98dd4e9c009f425284e86917938aa | refs/heads/master | 1,643,131,356,301 | 1,562,715,572,000 | 1,562,715,572,000 | 192,390,898 | 0 | 0 | null | 1,560,792,750,000 | 1,560,792,749,000 | null | UTF-8 | Lean | false | false | 247 | lean | def f {α : Type} [HasAdd α] (x : α) :=
x + x + x
def h : Nat → Nat
| 0 := 10
| (n+1) := n * h n
set_option pp.all true
set_option trace.compiler true
def g1 (x : Nat) :=
inline f x
def g2 (x : Nat) :=
inline h x
def g3 :=
inline h 2
|
33e0cc1fd649758728a1882d314c418899894285 | 8cae430f0a71442d02dbb1cbb14073b31048e4b0 | /src/linear_algebra/tensor_algebra/to_tensor_power.lean | d79a8e426472b1b4382f102260471b13cd40d069 | [
"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,838 | lean | /-
Copyright (c) 2021 Eric Wieser. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Eric Wieser
-/
import linear_algebra.tensor_algebra.basic
import linear_algebra.tensor_power
/-!
# Tensor algebras as direct sums of tensor powers
> THIS FILE IS SYNCHRONIZED WITH MATHLI... |
bd8558a41095207ef0b49bed769285585e7dd943 | 4d2583807a5ac6caaffd3d7a5f646d61ca85d532 | /src/algebra/category/Semigroup/basic.lean | 6f0775fab0ab46572d0e8a2dda716e9ba2b8bddd | [
"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 | 7,124 | lean | /-
Copyright (c) 2021 Julian Kuelshammer. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Julian Kuelshammer
-/
import category_theory.concrete_category.bundled_hom
import category_theory.concrete_category.reflects_isomorphisms
import algebra.pempty_instances
/-!
# Cat... |
6686de1fa5a9eeadc95e0f01fdb5adca97096c07 | 2914802b4ed2844bcc7ef2a02cda40ec82fb975f | /hott/algebra/category/iso.hlean | c68d92be1acf31ddf0dd65a4e225fcd0f26d56db | [
"Apache-2.0"
] | permissive | UlrikBuchholtz/lean | 60a81367f049cddb37083d3fe3e6fd2f96b7d5e7 | cc70845332e63a1f1be21dc1f96d17269fc85909 | refs/heads/master | 1,586,129,615,121 | 1,467,727,039,000 | 1,468,085,570,000 | 30,432,484 | 0 | 0 | null | 1,423,255,902,000 | 1,423,255,902,000 | null | UTF-8 | Lean | false | false | 17,021 | hlean | /-
Copyright (c) 2015 Floris van Doorn. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Author: Floris van Doorn, Jakob von Raumer
-/
import .precategory types.sigma arity
open eq category prod equiv is_equiv sigma sigma.ops is_trunc
namespace iso
structure split_mono [clas... |
6261058e51732947c18d5f4cdc6b6a84a39fd133 | 5c7fe6c4a9d4079b5457ffa5f061797d42a1cd65 | /src/exercises/src_09_or_elimination.lean | 63fbc87ca3053cb602a5cda5b0e39e63ee7e9800 | [] | 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 | 4,831 | lean | import .src_07_existential_quantification
variables p q r : Prop
namespace mth1001
section or_elimination
/-
We've seen how to introduce a statement of the form `p ∨ q`. In this section, we'll see
how to _use_ a premise `h : p ∨ q`.
Suppose you have `h : p ∨ q` and you know both
1. `r` follows from `p` and
2. `r`... |
c4274809a1837b40d4ac867cec95a643ff5c3f6a | f3849be5d845a1cb97680f0bbbe03b85518312f0 | /library/init/data/list/instances.lean | f97f4455961b2626869f2e00276d21d67fdede11 | [
"Apache-2.0"
] | permissive | bjoeris/lean | 0ed95125d762b17bfcb54dad1f9721f953f92eeb | 4e496b78d5e73545fa4f9a807155113d8e6b0561 | refs/heads/master | 1,611,251,218,281 | 1,495,337,658,000 | 1,495,337,658,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 5,164 | lean | /-
Copyright (c) 2016 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Author: Leonardo de Moura
-/
prelude
import init.data.list.lemmas
import init.meta.mk_dec_eq_instance
open list
universes u v
local attribute [simp] map join ret list.append append_nil... |
35a3df061f93fb937579ce24d110264a03c396fe | 35677d2df3f081738fa6b08138e03ee36bc33cad | /src/tactic/tauto.lean | f042a25fb46770b1e14b10f1b82a77d764b6da26 | [
"Apache-2.0"
] | permissive | gebner/mathlib | eab0150cc4f79ec45d2016a8c21750244a2e7ff0 | cc6a6edc397c55118df62831e23bfbd6e6c6b4ab | refs/heads/master | 1,625,574,853,976 | 1,586,712,827,000 | 1,586,712,827,000 | 99,101,412 | 1 | 0 | Apache-2.0 | 1,586,716,389,000 | 1,501,667,958,000 | Lean | UTF-8 | Lean | false | false | 9,733 | lean | /-
Copyright (c) 2018 Simon Hudon. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Simon Hudon
-/
import logic.basic tactic.solve_by_elim tactic.hint
namespace tactic
open expr
open tactic.interactive ( casesm constructor_matching )
/--
find all assumptions of the ... |
4c1ea9bc1cdf3fe032fe3f6c0aa849ef6d16db29 | 4727251e0cd73359b15b664c3170e5d754078599 | /src/data/list/nodup_equiv_fin.lean | f423ffcf37b062179ba669af9a6acd28a6b29495 | [
"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 | 8,403 | lean | /-
Copyright (c) 2020 Yury G. Kudryashov. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Yury G. Kudryashov
-/
import data.fin.basic
import data.list.sort
import data.list.duplicate
/-!
# Equivalence between `fin (length l)` and elements of a list
Given a list `l`,
... |
958d1a8457f8a28edebc3806a75e45aca57b272f | ce6917c5bacabee346655160b74a307b4a5ab620 | /src/ch3/ex0303.lean | bdcdbaf4f4a0734f06f535a7b75f7f2d6df76b64 | [] | no_license | Ailrun/Theorem_Proving_in_Lean | ae6a23f3c54d62d401314d6a771e8ff8b4132db2 | 2eb1b5caf93c6a5a555c79e9097cf2ba5a66cf68 | refs/heads/master | 1,609,838,270,467 | 1,586,846,743,000 | 1,586,846,743,000 | 240,967,761 | 1 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 113 | lean | variables p q : Prop
example (h : p ∧ q) : p := and.elim_left h
example (h : p ∧ q) : q := and.elim_right h
|
db54b63b8ed4553879aec567ceed844754169fe4 | e0f9ba56b7fedc16ef8697f6caeef5898b435143 | /src/algebra/group/units.lean | 40b03978cc48327a400a1bf0ae93ae52735c4aa7 | [
"Apache-2.0"
] | permissive | anrddh/mathlib | 6a374da53c7e3a35cb0298b0cd67824efef362b4 | a4266a01d2dcb10de19369307c986d038c7bb6a6 | refs/heads/master | 1,656,710,827,909 | 1,589,560,456,000 | 1,589,560,456,000 | 264,271,800 | 0 | 0 | Apache-2.0 | 1,589,568,062,000 | 1,589,568,061,000 | null | UTF-8 | Lean | false | false | 7,763 | lean | /-
Copyright (c) 2017 Kenny Lau. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Kenny Lau, Mario Carneiro, Johannes, Hölzl, Chris Hughes
-/
import logic.function.basic
import algebra.group.to_additive
import tactic.norm_cast
/-!
# Units (i.e., invertible elements) of ... |
ebbf21f3e27e862fe51e5d5f92ae11c037a1d8ef | 90bd8c2a52dbaaba588bdab57b155a7ec1532de0 | /src/path/loop.lean | fe6f4787549847eaeb8cd78c34128b8f777ae39e | [
"Apache-2.0"
] | permissive | shingtaklam1324/alg-top | fd434f1478925a232af45f18f370ee3a22811c54 | 4c88e28df6f0a329f26eab32bae023789193990e | refs/heads/master | 1,689,447,024,947 | 1,630,073,400,000 | 1,630,073,400,000 | 381,528,689 | 2 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 230 | lean | import path.defs
/-!
# Loops
In this file we define loops as paths with the same start and end points.
-/
variables {X : Type _} [topological_space X]
/--
A `loop x` is a `path' x x`.
-/
abbreviation loop (x : X) := path' x x
|
a2fdd1f527dda80da1a9a89abf76dee5d063acb9 | 6432ea7a083ff6ba21ea17af9ee47b9c371760f7 | /src/Lean/Data/Lsp/Communication.lean | 1b599e19a7816e7e9a147d0d7e96fe966907d335 | [
"Apache-2.0",
"LLVM-exception",
"NCSA",
"LGPL-3.0-only",
"LicenseRef-scancode-inner-net-2.0",
"BSD-3-Clause",
"LGPL-2.0-or-later",
"Spencer-94",
"LGPL-2.1-or-later",
"HPND",
"LicenseRef-scancode-pcre",
"ISC",
"LGPL-2.1-only",
"LicenseRef-scancode-other-permissive",
"SunPro",
"CMU-Mach"... | permissive | leanprover/lean4 | 4bdf9790294964627eb9be79f5e8f6157780b4cc | f1f9dc0f2f531af3312398999d8b8303fa5f096b | refs/heads/master | 1,693,360,665,786 | 1,693,350,868,000 | 1,693,350,868,000 | 129,571,436 | 2,827 | 311 | Apache-2.0 | 1,694,716,156,000 | 1,523,760,560,000 | Lean | UTF-8 | Lean | false | false | 4,209 | lean | /-
Copyright (c) 2020 Marc Huisinga. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Marc Huisinga, Wojciech Nawrocki
-/
import Init.System.IO
import Lean.Data.JsonRpc
/-! Reading/writing LSP messages from/to IO handles. -/
namespace IO.FS.Stream
open Lean
open Lean... |
e096137ae003e1bc9e0fbcb30d073c0263dd7ef3 | b7f22e51856f4989b970961f794f1c435f9b8f78 | /tests/lean/hott/crash1.hlean | 1c01b23bb03f24fbfeb1aac4568e872609efb55f | [
"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 | 838 | hlean | import types.sigma types.prod
import algebra.binary algebra.group
open eq eq.ops
namespace algebra
variable {A : Type}
structure distrib [class] (A : Type) extends has_mul A, has_add A :=
(left_distrib : ∀a b c, mul a (add b c) = add (mul a b) (mul a c))
(right_distrib : ∀a b c, mul (add a b) c = add (mul a c) (mul ... |
cad377dec3a50d6998071fb66776a9d96f61d86c | 07f5f86b00fed90a419ccda4298d8b795a68f657 | /library/init/data/array/basic.lean | 4c38650c4d5a4f37df1c5340221c8abf69980959 | [
"Apache-2.0"
] | permissive | VBaratham/lean | 8ec5c3167b4835cfbcd7f25e2173d61ad9416b3a | 450ca5834c1c35318e4b47d553bb9820c1b3eee7 | refs/heads/master | 1,629,649,471,814 | 1,512,060,373,000 | 1,512,060,469,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 9,012 | lean | /-
Copyright (c) 2017 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Leonardo de Moura, Mario Carneiro
-/
prelude
import init.data.nat init.data.bool init.ite_simp
universes u v w
/- In the VM, d_array is implemented a persistent array. -/
struc... |
663d3e9d3c329d3bec10b5dc4800ad654b9318ca | fa02ed5a3c9c0adee3c26887a16855e7841c668b | /src/tactic/interval_cases.lean | b9c3e23d111499b3193639d13a08af91d1082213 | [
"Apache-2.0"
] | permissive | jjgarzella/mathlib | 96a345378c4e0bf26cf604aed84f90329e4896a2 | 395d8716c3ad03747059d482090e2bb97db612c8 | refs/heads/master | 1,686,480,124,379 | 1,625,163,323,000 | 1,625,163,323,000 | 281,190,421 | 2 | 0 | Apache-2.0 | 1,595,268,170,000 | 1,595,268,169,000 | null | UTF-8 | Lean | false | false | 10,936 | lean | /-
Copyright (c) 2019 Scott Morrison. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Scott Morrison
Case bashing on variables in finite intervals.
In particular, `interval_cases n`
1) inspects hypotheses looking for lower and upper bounds of the form `a ≤ n` and `n <... |
333c281288b3623c298ecc9f82e7c9648c71f69e | 74addaa0e41490cbaf2abd313a764c96df57b05d | /Mathlib/control/monad/writer.lean | e197f714505ecda72925e478601f81d299b66c29 | [] | 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 | 8,760 | lean | /-
Copyright (c) 2019 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Simon Hudon
The writer monad transformer for passing immutable state.
-/
import Mathlib.PrePort
import Mathlib.Lean3Lib.init.default
import Mathlib.control.monad.basic
import M... |
f2b0792bbf9f985be1cd4e8a6a70245d3ec394a6 | e21db629d2e37a833531fdcb0b37ce4d71825408 | /alt/def_lookup.lean | caf91b73c139009923abe8b1a5eba07228a4c0a0 | [] | no_license | fischerman/GPU-transformation-verifier | 614a28cb4606a05a0eb27e8d4eab999f4f5ea60c | 75a5016f05382738ff93ce5859c4cfa47ccb63c1 | refs/heads/master | 1,586,985,789,300 | 1,579,290,514,000 | 1,579,290,514,000 | 165,031,073 | 1 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 1,449 | lean | import system.io
namespace def_lookup
open tactic
def a := "hello world"
++ "hi"
++ "hi"
++ "hi"
++ "hi"
++ "hi"
def name.from_dotted_string (s : string) : name := (s.split (λc, c = '.')).foldl (λ n s, name.mk_string s n) name.anonymous
meta def find_def (n : name) : tactic (string × pos) := do
env ← get_env,
... |
ee10ec3d96c3e3390efc5cfe680705def8158d64 | 367134ba5a65885e863bdc4507601606690974c1 | /archive/imo/imo2020_q2.lean | 35c3da63874f41284742dac28e227ec33058f90e | [
"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 | 2,201 | lean | /-
Copyright (c) 2020 Joseph Myers. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Author: Joseph Myers, Yury Kudryashov.
-/
import analysis.mean_inequalities
/-!
# IMO 2020 Q2
The real numbers `a`, `b`, `c`, `d` are such that `a ≥ b ≥ c ≥ d > 0` and `a + b + c + d = 1`.
Pro... |
b804cc5e7235658bfda93ae73b8aba9a1b2ba49d | 693339a8c7c9c4b3a7ef726ed5df540f77a2ee84 | /01-lean.lean | f8c619def186565a0be32de929728555f638dcfa | [
"MIT"
] | permissive | Jerrycaster/lean | d02d5f39131461758310b6dac20570ebdcb46913 | c2f7e07ad8415e0618bba2e7497f360117d238bc | refs/heads/master | 1,592,160,820,153 | 1,562,540,316,000 | 1,562,540,316,000 | 195,093,506 | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 1,218 | lean | universe u
constants α β γ : Type u -- the type of Type u is Type u+1
constants (a : α) (b : β) (c : γ)
constant f : α → β
constant g : β → γ
constant h : α → β → γ
#check λ x : α, g (f x)
#check λ y : α, h y
#check λ y, h y b -- lean infers the type of y
constant t' : β
#check λ (x : α), t'
#check λ x : α, x
#... |
f52e871b41b67f852850a2d5c3ac2cbd1d4e3712 | bdb33f8b7ea65f7705fc342a178508e2722eb851 | /order/bounded_lattice.lean | 51c35f893092d812db89bf367500c300eb14a02b | [
"Apache-2.0"
] | permissive | rwbarton/mathlib | 939ae09bf8d6eb1331fc2f7e067d39567e10e33d | c13c5ea701bb1eec057e0a242d9f480a079105e9 | refs/heads/master | 1,584,015,335,862 | 1,524,142,167,000 | 1,524,142,167,000 | 130,614,171 | 0 | 0 | Apache-2.0 | 1,548,902,667,000 | 1,524,437,371,000 | Lean | UTF-8 | Lean | false | false | 3,928 | lean | /-
Copyright (c) 2017 Johannes Hölzl. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Johannes Hölzl
Defines bounded lattice type class hierarchy.
Includes the Prop and fun instances.
-/
import order.lattice
set_option old_structure_cmd true
universes u v
variable ... |
393443c5e6dfce8c8650295b5498c71136be5ddf | d9ed0fce1c218297bcba93e046cb4e79c83c3af8 | /library/init/category/default.lean | 1423c253d16ec7f7562da6dce1d115dfbac0f3df | [
"Apache-2.0"
] | permissive | leodemoura/lean_clone | 005c63aa892a6492f2d4741ee3c2cb07a6be9d7f | cc077554b584d39bab55c360bc12a6fe7957afe6 | refs/heads/master | 1,610,506,475,484 | 1,482,348,354,000 | 1,482,348,543,000 | 77,091,586 | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 300 | 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.category.applicative init.category.functor init.category.alternative
import init.category.monad init.category.state
|
e19e00417a135c5e7c435e10b99fa3ebe88fbe06 | 6fca17f8d5025f89be1b2d9d15c9e0c4b4900cbf | /src/game/world4/level1.lean | 845f4bc30f90abd62352536656c5f49c891dbf78 | [
"Apache-2.0"
] | permissive | arolihas/natural_number_game | 4f0c93feefec93b8824b2b96adff8b702b8b43ce | 8e4f7b4b42888a3b77429f90cce16292bd288138 | refs/heads/master | 1,621,872,426,808 | 1,586,270,467,000 | 1,586,270,467,000 | 253,648,466 | 0 | 0 | null | 1,586,219,694,000 | 1,586,219,694,000 | null | UTF-8 | Lean | false | false | 1,573 | lean | import game.world3.level9 -- hide
import mynat.pow -- new import
namespace mynat -- hide
-- World name : Power world
/- Axiom : pow_zero (a : mynat) :
a ^ 0 = 1
-/
/- Axiom : pow_succ (a b : mynat) :
a ^ succ(b) = a ^ b * a
-/
/-
# Power World
A new world with seven levels. And a new import!
This import gives yo... |
9601e57da15bdb789290c4264faa1581f269ce1f | e9078bde91465351e1b354b353c9f9d8b8a9c8c2 | /truncation.hlean | 1f95449c030e39f2a2631ec9fc029136b0c43a09 | [
"Apache-2.0"
] | permissive | EgbertRijke/leansnippets | 09fb7a9813477471532fbdd50c99be8d8fe3e6c4 | 1d9a7059784c92c0281fcc7ce66ac7b3619c8661 | refs/heads/master | 1,610,743,957,626 | 1,442,532,603,000 | 1,442,532,603,000 | 41,563,379 | 0 | 0 | null | 1,440,787,514,000 | 1,440,787,514,000 | null | UTF-8 | Lean | false | false | 11,130 | hlean | import types.eq types.pi hit.colimit types.nat.hott hit.sphere
--open unit pi equiv sum
open eq quotient sphere sphere.ops nat sphere_index seq_colim is_trunc sum
-- /- HELPER LEMMAS -/
-- definition inv_con_con_eq_of_eq_con_con_inv {A : Type} {a₁ a₂ b₁ b₂ : A} {p : a₁ = b₁}
-- {q : a₁ = a₂} {r : a₂ = b₂} {s ... |
1ce1ddd7c664fb90853dfc567d3f012789e82581 | 0c1546a496eccfb56620165cad015f88d56190c5 | /library/init/data/list/instances.lean | 9f292c617113803d41e733e8f3ce56033a9f1cf1 | [
"Apache-2.0"
] | permissive | Solertis/lean | 491e0939957486f664498fbfb02546e042699958 | 84188c5aa1673fdf37a082b2de8562dddf53df3f | refs/heads/master | 1,610,174,257,606 | 1,486,263,620,000 | 1,486,263,620,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 810 | lean | /-
Copyright (c) 2016 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Author: Leonardo de Moura
-/
prelude
import init.category.monad init.category.alternative init.data.list.basic
import init.meta.mk_dec_eq_instance
open list
universe variables u v
@[in... |
a7cfe14209329d46935abf3dd84a19c33badae8e | 57c233acf9386e610d99ed20ef139c5f97504ba3 | /src/data/set/intervals/basic.lean | eb0938639a26dc5c4ae972c703b078cd2ae3a943 | [
"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 | 56,285 | 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, Yury Kudryashov, Rémy Degenne
-/
import algebra.order.group
import order.rel_iso
/-!
# Intervals
In any preorder `α`, we define interv... |
b02af53b96d8b36e81402aea0cda312d6f331482 | b7f22e51856f4989b970961f794f1c435f9b8f78 | /tests/lean/run/801.lean | 8c86015b8a2c8b9bfa3759c0dce76a1a898e52ed | [
"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 | 359 | lean | open nat
definition seq_diagram (A : ℕ → Type) : Type := (Πn, A n → A (succ n))
variables (A : ℕ → Type) (f : seq_diagram A)
include f
definition shift_diag [unfold_full] (k : ℕ) : seq_diagram (λn, A (k + n)) :=
λn a, f (k + n) a
example (n k : ℕ) (b : A (k + n)) : shift_diag A f k n b = sorry :=
begin
esimp,
sta... |
98354a08141f2ce79d7fb16d1fbf933853e4c1da | 8cae430f0a71442d02dbb1cbb14073b31048e4b0 | /src/group_theory/perm/subgroup.lean | 77db74a606c951dcc4fdc1582ddb1906f7038a4d | [
"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,270 | lean | /-
Copyright (c) 2020 Eric Wieser. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Eric Wieser
-/
import group_theory.perm.basic
import data.fintype.perm
import group_theory.subgroup.finite
/-!
# Lemmas about subgroups within the permutations (self-equivalences) of a ty... |
f53dd44dcc7e5d780bfdb952514fe05102897528 | 86f6f4f8d827a196a32bfc646234b73328aeb306 | /examples/logic/unnamed_256.lean | 742259e6c4609124881198f43331aa91dbc35b94 | [] | 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 | 514 | lean | import data.real.basic
def fn_ub (f : ℝ → ℝ) (a : ℝ) : Prop := ∀ x, f x ≤ a
def fn_lb (f : ℝ → ℝ) (a : ℝ) : Prop := ∀ x, a ≤ f x
variables (f g : ℝ → ℝ) (a b : ℝ)
-- BEGIN
example (hfa : fn_lb f a) (hgb : fn_lb g b) :
fn_lb (λ x, f x + g x) (a + b) :=
sorry
example (nnf : fn_lb f 0) (nng : fn_lb g 0) :
fn_lb (λ... |
141525f215a1295ff78c110bd4818700ebc25e44 | 74addaa0e41490cbaf2abd313a764c96df57b05d | /Mathlib/ring_theory/subsemiring_auto.lean | 98f5ed3106f9cce1604c2639efb6250b507c6736 | [] | 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 | 28,906 | lean | /-
Copyright (c) 2020 Yury Kudryashov All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Yury Kudryashov
-/
import Mathlib.PrePort
import Mathlib.Lean3Lib.init.default
import Mathlib.algebra.ring.prod
import Mathlib.group_theory.submonoid.default
import Mathlib.data.equiv.... |
5af5416edfc78e77259e3882c8406e9cbbfd3ccb | cf39355caa609c0f33405126beee2739aa3cb77e | /tests/lean/t12.lean | 4e10e26ad3e2ab26e3510226df4bf6413731bb7c | [
"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 | 257 | lean | prelude precedence `+` : 65
precedence `*` : 75
constant N : Type.{1}
#check λ (f : N -> N -> N) (g : N → N → N) (infix + := f) (infix * := g) (x y : N), x+x*y
constant f : N → N → N
constant a : N
#check a+a -- + notation is not available anymore
|
64857f21a744a5ed1bdf743a87eab349ce1792b0 | 2b0e277371df7056b343785ee43e0917e5844dac | /src/probability_theory.lean | 5512aa5cdb0f8b67d92ca5eb0ec902faf6e7e797 | [] | no_license | kodyvajjha/lean-crm | f3795ddff12bbc04dc08f6b6e4708698929c1af1 | f6cbb0061e4521632d26a1ab23fbdfe231e4c18a | refs/heads/master | 1,587,882,457,792 | 1,553,563,945,000 | 1,553,563,945,000 | 173,365,069 | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 13,160 | lean | /-
Copyright (c) 2018 Koundinya Vajjha. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Koundinya Vajjha
A formalization of Basic probability theory + Bayes theorem.
-/
import measure_theory.measure_space tactic.tidy
open set measurable_space measure_theory ennreal la... |
639dec85ed42f052ef9d41a083c06630ac411f58 | a45212b1526d532e6e83c44ddca6a05795113ddc | /src/logic/basic.lean | 0d1b5c7384f9b17fdf13069aeeeb54270588fd99 | [
"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 | 27,414 | lean | /-
Copyright (c) 2016 Jeremy Avigad. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Jeremy Avigad, Leonardo de Moura
Theorems that require decidability hypotheses are in the namespace "decidable".
Classical versions are in the namespace "classical".
Note: in the pres... |
b6bb3c3806518a32a83a72297f09b073545f5bae | 74addaa0e41490cbaf2abd313a764c96df57b05d | /Mathlib/analysis/calculus/specific_functions.lean | fde2cd586d0212635e0866a72f8a9c502fc29b82 | [] | 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,438 | 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 Mathlib.PrePort
import Mathlib.Lean3Lib.init.default
import Mathlib.analysis.calculus.extend_deriv
import Mathlib.analysis.calculus.iterated_deriv
import... |
171af45d2d93e5683c8945145a9af7327fecd18f | 8cae430f0a71442d02dbb1cbb14073b31048e4b0 | /src/algebra/star/pi.lean | 201b46706e46e8b576469b58d730d9b8d661c516 | [
"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,535 | lean | /-
Copyright (c) 2021 Eric Wieser. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Eric Wieser
-/
import algebra.star.basic
import algebra.ring.pi
/-!
# `star` on pi types
> THIS FILE IS SYNCHRONIZED WITH MATHLIB4.
> Any changes to this file require a corresponding PR... |
fd1e0640b48babb9852bf5d09d35fefa924e9ecd | 26ac254ecb57ffcb886ff709cf018390161a9225 | /src/linear_algebra/nonsingular_inverse.lean | 151a73ce250dea12a18ac9c12b97c33f4deecb10 | [
"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 | 17,357 | lean | /-
Copyright (c) 2019 Tim Baanen. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Author: Tim Baanen.
-/
import algebra.associated
import linear_algebra.determinant
import tactic.linarith
import tactic.ring_exp
/-!
# Nonsingular inverses
In this file, we define an inverse for ... |
6b177c2c6426e3fc9eea22b704a3a447e3c3619a | 74addaa0e41490cbaf2abd313a764c96df57b05d | /Mathlib/tactic/mk_iff_of_inductive_prop_auto.lean | 33fe96f76001d78122da738ea7c3b4a2cb269ed6 | [] | 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,902 | 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 Mathlib.PrePort
import Mathlib.Lean3Lib.init.default
import Mathlib.tactic.core
import Mathlib.tactic.lint.default
import Mathlib.PostPort
universes u_1 u_2
... |
67ec0b91cd3b9a5ee982b12ea359b7615b0eb5c6 | 5fbbd711f9bfc21ee168f46a4be146603ece8835 | /lean/natural_number_game/function/9.lean | 80c2f4fdaeb90d500774764c0b6e5cdc9c3d1696 | [
"LicenseRef-scancode-warranty-disclaimer"
] | no_license | goedel-gang/maths | 22596f71e3fde9c088e59931f128a3b5efb73a2c | a20a6f6a8ce800427afd595c598a5ad43da1408d | refs/heads/master | 1,623,055,941,960 | 1,621,599,441,000 | 1,621,599,441,000 | 169,335,840 | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 353 | lean | example (A B C D E F G H I J K L : Type)
(f1 : A → B) (f2 : B → E) (f3 : E → D) (f4 : D → A) (f5 : E → F)
(f6 : F → C) (f7 : B → C) (f8 : F → G) (f9 : G → J) (f10 : I → J)
(f11 : J → I) (f12 : I → H) (f13 : E → H) (f14 : H → K) (f15 : I → L)
: A → L :=
begin
intro a,
exact f15 (f11 (f9 (f8 (f5 (f2 (f1 a)))))),
end... |
e1c9a9e3eb42ad590ad8032db1041f03fee4f13e | 367134ba5a65885e863bdc4507601606690974c1 | /src/category_theory/limits/limits.lean | d544b59ad61c6cd3eef2138ab37d1de4df5851b3 | [
"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 | 71,774 | lean | /-
Copyright (c) 2018 Scott Morrison. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Reid Barton, Mario Carneiro, Scott Morrison, Floris van Doorn
-/
import category_theory.adjunction.basic
import category_theory.limits.cones
import category_theory.reflects_isomorphism... |
7c6ec2d4e39486795dbfac2c4b7e7256003ad2ed | 0c9c1ff8e5013c525bf1d72338b62db639374733 | /tests/lean/run/check_constants.lean | 6ad987cd041e88562da5747eed0c2c679613ade7 | [
"Apache-2.0"
] | permissive | semorrison/lean | 1f2bb450c3400098666ff6e43aa29b8e1e3cdc3a | 85dcb385d5219f2fca8c73b2ebca270fe81337e0 | refs/heads/master | 1,638,526,143,586 | 1,634,825,588,000 | 1,634,825,588,000 | 258,650,844 | 0 | 0 | Apache-2.0 | 1,587,772,955,000 | 1,587,772,954,000 | null | UTF-8 | Lean | false | false | 11,003 | 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 '" +... |
c1003d523c3a1367f58efdd4368eef883e9c7625 | bb31430994044506fa42fd667e2d556327e18dfe | /src/number_theory/cyclotomic/primitive_roots.lean | a2865d33a9a1e45779ecce0c1405ffe0405ad676 | [
"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,496 | lean | /-
Copyright (c) 2022 Riccardo Brasca. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Alex Best, Riccardo Brasca, Eric Rodriguez
-/
import data.pnat.prime
import algebra.is_prime_pow
import number_theory.cyclotomic.basic
import ring_theory.adjoin.power_basis
import ri... |
32ae48a7013d45c693ab3e3e9aed705569478eac | 6094e25ea0b7699e642463b48e51b2ead6ddc23f | /library/theories/group_theory/action.lean | cf67ea6271d7acd1a7ea59eda6f69043e9c928bb | [
"Apache-2.0"
] | permissive | gbaz/lean | a7835c4e3006fbbb079e8f8ffe18aacc45adebfb | a501c308be3acaa50a2c0610ce2e0d71becf8032 | refs/heads/master | 1,611,198,791,433 | 1,451,339,111,000 | 1,451,339,111,000 | 48,713,797 | 0 | 0 | null | 1,451,338,939,000 | 1,451,338,939,000 | null | UTF-8 | Lean | false | false | 22,635 | lean | /-
Copyright (c) 2015 Haitao Zhang. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Author : Haitao Zhang
-/
import algebra.group data .hom .perm .finsubg
namespace group_theory
open finset function
local attribute perm.f [coercion]
private lemma and_left_true {a b : Prop} (... |
67a273f83aafa24087475b81fd3aa5471420762b | 367134ba5a65885e863bdc4507601606690974c1 | /src/linear_algebra/char_poly/basic.lean | ad6e98e99d187f3aa6d9ce4b284bd2dc583208f5 | [
"Apache-2.0"
] | permissive | kodyvajjha/mathlib | 9bead00e90f68269a313f45f5561766cfd8d5cad | b98af5dd79e13a38d84438b850a2e8858ec21284 | refs/heads/master | 1,624,350,366,310 | 1,615,563,062,000 | 1,615,563,062,000 | 162,666,963 | 0 | 0 | Apache-2.0 | 1,545,367,651,000 | 1,545,367,651,000 | null | UTF-8 | Lean | false | false | 3,807 | 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 tactic.apply_fun
import ring_theory.matrix_algebra
import ring_theory.polynomial_algebra
import linear_algebra.nonsingular_inverse
import tactic.squeeze
/-!
#... |
9650070c38070c37d0e6201b77e9c08f4d8917df | 0845ae2ca02071debcfd4ac24be871236c01784f | /library/init/data/tostring.lean | 4c2898d157e06283fa73fac31a3686294d5f210c | [
"Apache-2.0"
] | permissive | GaloisInc/lean4 | 74c267eb0e900bfaa23df8de86039483ecbd60b7 | 228ddd5fdcd98dd4e9c009f425284e86917938aa | refs/heads/master | 1,643,131,356,301 | 1,562,715,572,000 | 1,562,715,572,000 | 192,390,898 | 0 | 0 | null | 1,560,792,750,000 | 1,560,792,749,000 | null | UTF-8 | Lean | false | false | 2,900 | lean | /-
Copyright (c) 2016 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Author: Leonardo de Moura
-/
prelude
import init.data.string.basic init.data.uint init.data.nat.div init.data.repr
open Sum Subtype Nat
universes u v
class HasToString (α : Type u) :=
... |
fa1b01c1d9dd672828b79e3cd521447c13f8a986 | 94e33a31faa76775069b071adea97e86e218a8ee | /src/group_theory/subgroup/pointwise.lean | 91fe83041c42fb15bb9190f947c473e80f57c1be | [
"Apache-2.0"
] | permissive | urkud/mathlib | eab80095e1b9f1513bfb7f25b4fa82fa4fd02989 | 6379d39e6b5b279df9715f8011369a301b634e41 | refs/heads/master | 1,658,425,342,662 | 1,658,078,703,000 | 1,658,078,703,000 | 186,910,338 | 0 | 0 | Apache-2.0 | 1,568,512,083,000 | 1,557,958,709,000 | Lean | UTF-8 | Lean | false | false | 9,387 | lean | /-
Copyright (c) 2021 Eric Wieser. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Eric Wieser
-/
import group_theory.subgroup.basic
import group_theory.submonoid.pointwise
/-! # Pointwise instances on `subgroup` and `add_subgroup`s
This file provides the actions
* `... |
3713efe5f19ac8cb2dcbb8602733320a43d85cab | 57c233acf9386e610d99ed20ef139c5f97504ba3 | /src/computability/language.lean | 928e942d0901edec109b48c7f9725eb5fb344338 | [
"Apache-2.0"
] | permissive | robertylewis/mathlib | 3d16e3e6daf5ddde182473e03a1b601d2810952c | 1d13f5b932f5e40a8308e3840f96fc882fae01f0 | refs/heads/master | 1,651,379,945,369 | 1,644,276,960,000 | 1,644,276,960,000 | 98,875,504 | 0 | 0 | Apache-2.0 | 1,644,253,514,000 | 1,501,495,700,000 | Lean | UTF-8 | Lean | false | false | 6,704 | 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 data.list.join
import data.set.lattice
/-!
# Languages
This file contains the definition and operations on formal languages over an alphabet. Note strings
are impl... |
c9882633257ca8fd259f8a69558c74ff918c1c29 | ac2987d8c7832fb4a87edb6bee26141facbb6fa0 | /Mathlib/Tactic/Ring.lean | 8f4c276aafcca6a8d26e3bc443d3df24c63da4ee | [
"Apache-2.0"
] | permissive | AurelienSaue/mathlib4 | 52204b9bd9d207c922fe0cf3397166728bb6c2e2 | 84271fe0875bafdaa88ac41f1b5a7c18151bd0d5 | refs/heads/master | 1,689,156,096,545 | 1,629,378,840,000 | 1,629,378,840,000 | 389,648,603 | 0 | 0 | Apache-2.0 | 1,627,307,284,000 | 1,627,307,284,000 | null | UTF-8 | Lean | false | false | 20,336 | lean | /-
Copyright (c) 2018 Mario Carneiro. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Mario Carneiro, Aurélien Saue
-/
import Lean.Elab.Tactic.Basic
import Mathlib.Algebra.Ring.Basic
import Mathlib.Tactic.NormNum
/-!
# `ring`
Evaluate expressions in the language of co... |
185cfb98a218d6012b2537674304cc6181ea9a3f | a9d0fb7b0e4f802bd3857b803e6c5c23d87fef91 | /library/data/encodable.lean | 6075562dfa54d8cca1c286b29f6063d68b5d052d | [
"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 | 13,762 | 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
Type class for encodable types.
Note that every encodable type is countable.
-/
import data.fintype data.list data.list.sort data.sum data.nat.div data.countab... |
04cd91b2fb4723e0a6da78647c21a60dba7a2cfd | f1d0c3912d57abc8ea280458f07787fa00ecf62a | /src/tpow_to_talg.lean | 154fc6ac7d67b9f3c0913a2334a0d7303cc1fb86 | [] | no_license | 101damnations/test | 2e426e10dde625657b531c978ba179b1a87b1fed | ade0896c09890e877e8fb0f17c636bc0491b8f2b | refs/heads/master | 1,672,484,804,338 | 1,603,359,314,000 | 1,603,359,314,000 | 276,198,127 | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 784 | lean | import tpow
universe u
variables (R : Type u) [comm_semiring R] (M : Type u) [add_comm_monoid M] [semimodule R M]
open tpow
/-def talg_ring : ring (tensor_algebra R M) :=
algebra.semiring_to_ring R
def talg_acg : add_comm_group (tensor_algebra R M) :=
@ring.to_add_comm_group _ talg_ring
def talg_mod : @module R (tens... |
0bd062dd9222fdd5b18eb64d4701c6c15540fa71 | 7b02c598aa57070b4cf4fbfe2416d0479220187f | /homotopy/spherical_fibrations.hlean | 6c815603eefc018ef374dfd3381ad70aeee29386 | [
"Apache-2.0"
] | permissive | jdchristensen/Spectral | 50d4f0ddaea1484d215ef74be951da6549de221d | 6ded2b94d7ae07c4098d96a68f80a9cd3d433eb8 | refs/heads/master | 1,611,555,010,649 | 1,496,724,191,000 | 1,496,724,191,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 4,796 | hlean | import homotopy.join homotopy.smash
open eq equiv trunc function bool join sphere sphere_index sphere.ops prod
open pointed sigma smash is_trunc
namespace spherical_fibrations
/- classifying type of spherical fibrations -/
definition BG (n : ℕ) : Type₁ :=
Σ(X : Type₀), ∥ X ≃ S n..-1 ∥
definition pointed_BG ... |
0d41ae4e87775a5a76e1abb5ce19f56e23aaa4ec | b147e1312077cdcfea8e6756207b3fa538982e12 | /logic/basic.lean | 63a5b0e7c37b1995fdbfb44d97eaa4818e5cea2c | [
"Apache-2.0"
] | permissive | SzJS/mathlib | 07836ee708ca27cd18347e1e11ce7dd5afb3e926 | 23a5591fca0d43ee5d49d89f6f0ee07a24a6ca29 | refs/heads/master | 1,584,980,332,064 | 1,532,063,841,000 | 1,532,063,841,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 23,442 | lean | /-
Copyright (c) 2016 Jeremy Avigad. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Jeremy Avigad, Leonardo de Moura
Theorems that require decidability hypotheses are in the namespace "decidable".
Classical versions are in the namespace "classical".
Note: in the pres... |
1eb1fb0c1ed60596742c3c4ee4f44c695bccea8d | 55c7fc2bf55d496ace18cd6f3376e12bb14c8cc5 | /src/data/equiv/transfer_instance.lean | b080a18a990ae7b9d5ec8e2e02c8c99b8304d6fe | [
"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 | 6,381 | 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.equiv.basic
import algebra.field
import algebra.group.type_tags
/-!
# Transfer algebraic structures across `equiv`s
In this file we prove theorems of th... |
6b6d001d5c51d08f539eafed4a1750aa7f022cbd | ce6917c5bacabee346655160b74a307b4a5ab620 | /src/ch4/ex0304.lean | e30df3aa11aade774619afbedc231b0ba1b28a2c | [] | no_license | Ailrun/Theorem_Proving_in_Lean | ae6a23f3c54d62d401314d6a771e8ff8b4132db2 | 2eb1b5caf93c6a5a555c79e9097cf2ba5a66cf68 | refs/heads/master | 1,609,838,270,467 | 1,586,846,743,000 | 1,586,846,743,000 | 240,967,761 | 1 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 193 | lean | variables (a b c d e : ℕ)
variable h1 : a = b
variable h2 : b = c + 1
variable h3 : c = d
variable h4 : e = 1 + d
include h1 h2 h3 h4
theorem T : a = e :=
by rw [h1, h2, h3, add_comm, h4]
|
dea991cfe0cd974fabf8b9ead0c5e0477baadd97 | 4d2583807a5ac6caaffd3d7a5f646d61ca85d532 | /src/group_theory/submonoid/pointwise.lean | 16c9c9b1bdf3f372920f42ddd203e4ad6fd629b2 | [
"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 | 7,672 | lean | /-
Copyright (c) 2021 Eric Wieser. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Eric Wieser
-/
import group_theory.submonoid.operations
import algebra.pointwise
/-! # Pointwise instances on `submonoid`s and `add_submonoid`s
This file provides the actions
* `submon... |
ec362eeeef6263c38cb7ec4885761842af3fe6fd | 947b78d97130d56365ae2ec264df196ce769371a | /src/Lean/Elab/Term.lean | 6aa2541e790b5ed87be33744fb658a5145bc8852 | [
"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 | 54,645 | lean | /-
Copyright (c) 2019 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Leonardo de Moura
-/
import Lean.Util.Sorry
import Lean.Structure
import Lean.Meta.ExprDefEq
import Lean.Meta.AppBuilder
import Lean.Meta.SynthInstance
import Lean.Meta.CollectM... |
b73fb2b62d32d9dc1a019599a599be0f81640b7f | 77c5b91fae1b966ddd1db969ba37b6f0e4901e88 | /src/algebra/lie/subalgebra.lean | 024c2b7bd373662956a974639c7bc3a0be54ec16 | [
"Apache-2.0"
] | permissive | dexmagic/mathlib | ff48eefc56e2412429b31d4fddd41a976eb287ce | 7a5d15a955a92a90e1d398b2281916b9c41270b2 | refs/heads/master | 1,693,481,322,046 | 1,633,360,193,000 | 1,633,360,193,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 21,124 | lean | /-
Copyright (c) 2021 Oliver Nash. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Oliver Nash
-/
import algebra.lie.basic
import ring_theory.noetherian
/-!
# Lie subalgebras
This file defines Lie subalgebras of a Lie algebra and provides basic related definitions and... |
64f6381f42cb64f81af6a6cd7dd1c1e040fe71ae | efa51dd2edbbbbd6c34bd0ce436415eb405832e7 | /20170116_POPL/backchain/back.lean | 9cf131da54b18919ffc21ad0cfae2a77b6cdaa5f | [
"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 | 4,724 | lean | /- In this example, we show how to write a simple tactic for performing
backward chaining.
The tactic builds list membership proofs for goals such as
a ∈ [b, c] ++ [b, a, b]
-/
open list expr tactic
universe variable u
/- The tactic uses the following 4 theorems from the standard library.
Here, we ... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.