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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
d50ce62e2ff21557b3ed9297f551b90d8a16792c | 7cef822f3b952965621309e88eadf618da0c8ae9 | /src/data/set/lattice.lean | 35ad931375892232d884b18c4f8efa7800b0d2b7 | [
"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 | 34,586 | 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... |
a2489696a2996bbc6f3e92da1f87c22aea0c90f8 | d406927ab5617694ec9ea7001f101b7c9e3d9702 | /src/algebra/field/power.lean | 502aba88feb9358b025033cf0082ee7516a0abaf | [
"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,007 | lean | /-
Copyright (c) 2014 Robert Lewis. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Robert Lewis, Leonardo de Moura, Johannes Hölzl, Mario Carneiro
-/
import algebra.field.defs
import algebra.group_with_zero.power
import algebra.parity
/-!
# Results about powers in fie... |
00f0f9fb8693a62338d21aee53425daf4646c71d | b7f22e51856f4989b970961f794f1c435f9b8f78 | /tests/lean/run/coefun.lean | 78c9ca7cf1233669837088be979e597899660419 | [
"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 | 278 | lean | inductive obj (A : Type) :=
mk : A → obj A
inductive fn (A B : Type) :=
mk : (obj A → obj B) → fn A B
definition to_fun [coercion] {A B : Type} (f : fn A B) : obj A → obj B :=
fn.rec (λf, f) f
constant n : Type.{1}
constant f : fn n n
constant a : obj n
check (f a)
|
db1f99daafa7cfb95f3970354abd02ecdc1294ea | aa3f8992ef7806974bc1ffd468baa0c79f4d6643 | /library/data/fin.lean | e34e918b8bf6c421e800186839cbc0f59cf605b6 | [
"Apache-2.0"
] | permissive | codyroux/lean | 7f8dff750722c5382bdd0a9a9275dc4bb2c58dd3 | 0cca265db19f7296531e339192e9b9bae4a31f8b | refs/heads/master | 1,610,909,964,159 | 1,407,084,399,000 | 1,416,857,075,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 4,009 | lean | import data.nat logic.cast
open nat
inductive fin : nat → Type :=
fz : Π n, fin (succ n),
fs : Π {n}, fin n → fin (succ n)
namespace fin
definition z_cases_on (C : fin zero → Type) (p : fin zero) : C p :=
have aux : Π (C : Type) (n : nat) (p : fin n), n = zero → C, from
λ C n p, fin.rec_on p
(λ n h, na... |
040794f12216d2d20cd04bed7177fc6da7c78b32 | f3849be5d845a1cb97680f0bbbe03b85518312f0 | /tests/lean/let4.lean | 22359ccef6c2377b2c8e6d4384d6b9931b00cecd | [
"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 | 318 | lean | --
constant f : num → num → num → num
#check
let a : num := 10,
b : num := 10,
c : num := 10
in f a b (f a 10 c)
#check
let a : num := 10,
b : num := let c : num := 10 in f a c (f a a (f 10 a c)),
d : num := 10,
e : num := f (f 10 10 d) (f d 10 10) a
in f a b (f e d 10)
|
b255818a9d701293d2ddc507dcf59eef405ad9d5 | b7f22e51856f4989b970961f794f1c435f9b8f78 | /tests/lean/sec2.lean | c0f965a0fabebf29fd50cf92c7b687b0c4b66102 | [
"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 | 581 | lean | structure A : Type := mk
structure B : Type := mk
constant f : A → B
constant g : B → B
constant a : A
namespace foo
attribute f [coercion]
print coercions
check g a
end foo
check g a -- Error
section boo
attribute f [coercion]
print coercions
check g a
end boo
-- The metaobjects defined in the section p... |
98b95aae9e942468f1dad4dd661665f36c96c33a | 55c7fc2bf55d496ace18cd6f3376e12bb14c8cc5 | /test/conv/apply_congr.lean | 915adaa99b5ae21e53be5469a89223c08f293358 | [
"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 | 3,160 | lean | /-
Copyright (c) 2019 Lucas Allen. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Lucas Allen, Scott Morrison
-/
import algebra.big_operators.basic
import data.finsupp
import tactic.converter.apply_congr
import tactic.interactive
example (f g : ℤ → ℤ) (S : finset ℤ) ... |
99c1ade56e111c4321a802b5705540332b0083b1 | 94e33a31faa76775069b071adea97e86e218a8ee | /src/number_theory/class_number/finite.lean | c201beff98c05ec22ff40f985d69a9fae638b133 | [
"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 | 17,888 | 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 analysis.special_functions.pow
import linear_algebra.free_module.pid
import linear_algebra.matrix.absolute_value
import number_theory.class_number.admissible_absolu... |
e8f22e4c9ba80bbea856b058c348325ba3d08450 | b32d3853770e6eaf06817a1b8c52064baaed0ef1 | /src/super/lpo.lean | 0d22b6e3c44fa8f150b5167284652d0d448c90e9 | [] | no_license | gebner/super2 | 4d58b7477b6f7d945d5d866502982466db33ab0b | 9bc5256c31750021ab97d6b59b7387773e54b384 | refs/heads/master | 1,635,021,682,021 | 1,634,886,326,000 | 1,634,886,326,000 | 225,600,688 | 4 | 2 | null | 1,598,209,306,000 | 1,575,371,550,000 | Lean | UTF-8 | Lean | false | false | 2,409 | lean | /-
Copyright (c) 2017 Gabriel Ebner. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Gabriel Ebner
-/
-- Polytime version of lexicographic path order as described in:
-- Things to know when implementing LPO, Bernd Löchner, ESFOR 2004
import super.utils
namespace super... |
1914995cf3d32e35f74c85c2b1271418058b5d6e | 1abd1ed12aa68b375cdef28959f39531c6e95b84 | /src/measure_theory/integral/lebesgue.lean | ecef358eaa22f9bcca2a62cd90149f4a66b633c0 | [
"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 | 109,004 | lean | /-
Copyright (c) 2018 Mario Carneiro. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Mario Carneiro, Johannes Hölzl
-/
import measure_theory.measure.measure_space
import measure_theory.constructions.borel_space
import algebra.indicator_function
import algebra.support
... |
96897bed52001e35e96b0252df7ab3cdaa441bb2 | 9dc8cecdf3c4634764a18254e94d43da07142918 | /src/combinatorics/set_family/intersecting.lean | 03aad14f5b461fb4fb9c34e23d1b2479a4f134ed | [
"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 | 7,555 | 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 data.fintype.basic
import order.upper_lower
/-!
# Intersecting families
This file defines intersecting families and proves their basic properties.
## Main decla... |
ea96c36b2fd95d9f6e55ab0fe5be19c3b8620e55 | b7f22e51856f4989b970961f794f1c435f9b8f78 | /hott/hit/default.hlean | 2ddfc9354c78b379aab3aac691cab9e25cb81e19 | [
"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 | 211 | 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
-/
import .two_quotient .colimit .coeq .refl_quotient
|
2bfa6a0c008a830fc2d44a50cc0a0836a35a1555 | dc253be9829b840f15d96d986e0c13520b085033 | /homotopy/susp.hlean | 51f992c60c680ed8fc9f4ea6c8d31ad68dbb9a43 | [
"Apache-2.0"
] | permissive | cmu-phil/Spectral | 4ce68e5c1ef2a812ffda5260e9f09f41b85ae0ea | 3b078f5f1de251637decf04bd3fc8aa01930a6b3 | refs/heads/master | 1,685,119,195,535 | 1,684,169,772,000 | 1,684,169,772,000 | 46,450,197 | 42 | 13 | null | 1,505,516,767,000 | 1,447,883,921,000 | Lean | UTF-8 | Lean | false | false | 8,795 | hlean | import .pushout types.pointed2 ..move_to_lib
open susp eq pointed function is_equiv lift equiv is_trunc nat
namespace susp
variables {X X' Y Y' Z : Type*}
definition susp_functor_of_fn [constructor] (f : X → Y) : susp X →* susp Y :=
pmap.mk (susp_functor' f) idp
definition susp_pequiv_of_equiv [constructor] ... |
d3541edbde3bf76cd94504f8c35beb4183cd8612 | 367134ba5a65885e863bdc4507601606690974c1 | /src/tactic/lint/frontend.lean | 197c98117dd379e7d4ff1e627077a3b7279549f0 | [
"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 | 13,850 | lean | /-
Copyright (c) 2020 Floris van Doorn. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Floris van Doorn, Robert Y. Lewis, Gabriel Ebner
-/
import tactic.lint.basic
/-!
# Linter frontend and commands
This file defines the linter commands which spot common mistakes in ... |
fc32fafa7361e1f62833dba0388f007ef54a4221 | 77c5b91fae1b966ddd1db969ba37b6f0e4901e88 | /src/topology/sheaves/sheaf_condition/unique_gluing.lean | e3dd76baefb72286dc1399ff710c1193b1584647 | [
"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 | 13,000 | lean | /-
Copyright (c) 2021 Justus Springer. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Justus Springer
-/
import algebra.category.CommRing.limits
import topology.sheaves.forget
import topology.sheaves.sheaf
import category_theory.limits.shapes.types
import category_theo... |
e5b535784d351c2d6dada99beace87e36332c576 | 4950bf76e5ae40ba9f8491647d0b6f228ddce173 | /src/linear_algebra/basic.lean | 788d195a997fa35baaf0485ad65f9b842fb240ae | [
"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 | 105,281 | 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.big_operators.pi
import algebra.module.pi
import algebra.module.prod
import algebra.module.submodule
im... |
3e027f99e039152e70d78b886d90275b90e516c9 | bbecf0f1968d1fba4124103e4f6b55251d08e9c4 | /src/data/polynomial/iterated_deriv.lean | 3c5164c3ccdeb40f8de56a06da26f8ff5f4879b9 | [
"Apache-2.0"
] | permissive | waynemunro/mathlib | e3fd4ff49f4cb43d4a8ded59d17be407bc5ee552 | 065a70810b5480d584033f7bbf8e0409480c2118 | refs/heads/master | 1,693,417,182,397 | 1,634,644,781,000 | 1,634,644,781,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 7,969 | lean | /-
Copyright (c) 2020 Jujian Zhang. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Jujian Zhang
-/
import data.nat.interval
import data.polynomial.derivative
import tactic.linarith
/-!
# Theory of iterated derivative
We define and prove some lemmas about iterated (fo... |
3e381dbc4f55df707986f48695791940c1bb1ecb | d1a52c3f208fa42c41df8278c3d280f075eb020c | /src/Lean/Compiler/IR/Sorry.lean | 0536b07d74d0c45c5b063997a25cc452683c1d7c | [
"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,268 | 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.Compiler.IR.CompilerM
namespace Lean.IR
namespace Sorry
structure State where
localSorryMap : NameMap Name := {}
modified : Bool := false
... |
3cba40b9107c827b83cce0835ffcfad35ec0b2f4 | fecda8e6b848337561d6467a1e30cf23176d6ad0 | /src/data/mv_polynomial/basic.lean | 920170892f0c5a69105c5bed75918104002e0248 | [
"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 | 34,655 | 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, Johan Commelin, Mario Carneiro
-/
import data.polynomial.eval
/-!
# Multivariate polynomials
This file defines polynomial rings over a base ring (or even semiring),
... |
29c34a223eb3c816f8bf4ee31ee520e29416b223 | 957a80ea22c5abb4f4670b250d55534d9db99108 | /tests/lean/io_bug2.lean | ba0860b41566328e76204c92e6e9c1a21eb92772 | [
"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 | 163 | lean | import system.io
open io
variable [io.interface]
def main : io unit := do
print_ln "t1",
(x, y) ← return ((1 : nat), (2 : ℕ)),
print_ln "t2"
#eval main
|
84bd33400fe1bd6175f64ded50e2f08e5f59c476 | c8b4b578b2fe61d500fbca7480e506f6603ea698 | /src/may_assume/lemmas.lean | c40224ed91b8cc2d8ebfa08cba670e6316746d32 | [] | no_license | leanprover-community/flt-regular | aa7e564f2679dfd2e86015a5a9674a6e1197f7cc | 67fb3e176584bbc03616c221a7be6fa28c5ccd32 | refs/heads/master | 1,692,188,905,751 | 1,691,766,312,000 | 1,691,766,312,000 | 421,021,216 | 19 | 4 | null | 1,694,532,115,000 | 1,635,166,136,000 | Lean | UTF-8 | Lean | false | false | 5,036 | lean | import flt_three.flt_three
import algebra.gcd_monoid.finset
import field_theory.finite.basic
import algebra.gcd_monoid.div
import number_theory.regular_primes
open int finset
namespace flt_regular
namespace may_assume
lemma p_ne_three {a b c : ℤ} {n : ℕ} (hprod : a * b * c ≠ 0)
(h : a ^ n + b ^ n = c^ n) : n ≠ 3 ... |
240b9d826476911044e71b3a71a3d7de4d3ece15 | a156d865507798f08f46a2f6ca204d9727f4734d | /src/group_theory/monster.lean | 6037637146285f68ca503ba8bbd48021f14b53e6 | [] | no_license | jesse-michael-han/formalabstracts | 4e2fc8c107a3388823ffbd1671dd1e54108ea394 | 63a949de7989f17c791c40e580c3011516af57e0 | refs/heads/master | 1,625,470,495,408 | 1,551,315,841,000 | 1,551,316,547,000 | 136,272,424 | 0 | 0 | null | 1,528,259,798,000 | 1,528,259,798,000 | null | UTF-8 | Lean | false | false | 2,164 | lean | import ..data.dvector .presentation
import tactic.fattribute
open category_theory (mk_ob)
local notation h :: t := dvector.cons h t
local notation `[` l:(foldr `, ` (h t, dvector.cons h t) dvector.nil `]`) := l
/- The Monster group -/
/- according to: https://mathoverflow.net/questions/142205/presentation-of-the-mo... |
6da780bb087910b33d0bd3184b09d28e6ed68353 | 646fc4b41ca4adb82b3f7fbae3ea3c58ff496b4c | /Example/Basic.lean | 06b9f77d806e6da6f30ed23619b880f08aa8aaa2 | [] | no_license | cpehle/lean4-plugin-example | 82e63420463483381c91de0705b5626a336863fa | d32d3b310645cfecf4c33acafe996755f67cf30b | refs/heads/main | 1,690,367,192,612 | 1,631,531,751,000 | 1,631,531,751,000 | 405,148,785 | 2 | 1 | null | null | null | null | UTF-8 | Lean | false | false | 71 | lean | namespace Example
@[extern "funA"] constant funA (a : UInt64) : UInt64 |
542fcdfcf51703f8392da9222899b6e46476a266 | 624f6f2ae8b3b1adc5f8f67a365c51d5126be45a | /stage0/src/Init/Lean/Elab/Match.lean | 19e5f54bc8ee7cff28ca42f92341fe546f623eea | [
"Apache-2.0"
] | permissive | mhuisi/lean4 | 28d35a4febc2e251c7f05492e13f3b05d6f9b7af | dda44bc47f3e5d024508060dac2bcb59fd12e4c0 | refs/heads/master | 1,621,225,489,283 | 1,585,142,689,000 | 1,585,142,689,000 | 250,590,438 | 0 | 2 | Apache-2.0 | 1,602,443,220,000 | 1,585,327,814,000 | C | UTF-8 | Lean | false | false | 1,433 | 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
-/
prelude
import Init.Lean.Elab.Term
namespace Lean
namespace Elab
namespace Term
private def expandSimpleMatch (stx discr lhsVar rhs : Syntax) (expectedTyp... |
bc868500e484e9d277fe6b45708566a1d50b63dc | 9b9a16fa2cb737daee6b2785474678b6fa91d6d4 | /src/logic/embedding.lean | 2947b56ec6eb729b766a86b853d8fc9a9f4709c2 | [
"Apache-2.0"
] | permissive | johoelzl/mathlib | 253f46daa30b644d011e8e119025b01ad69735c4 | 592e3c7a2dfbd5826919b4605559d35d4d75938f | refs/heads/master | 1,625,657,216,488 | 1,551,374,946,000 | 1,551,374,946,000 | 98,915,829 | 0 | 0 | Apache-2.0 | 1,522,917,267,000 | 1,501,524,499,000 | Lean | UTF-8 | Lean | false | false | 5,867 | 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
Injective functions.
-/
import data.equiv.basic data.option.basic
universes u v w x
namespace function
structure embedding (α : Sort*) (β : Sort*) :=... |
c872ee46d1851d0c319b7792361399d9b8206aba | e6b8240a90527fd55d42d0ec6649253d5d0bd414 | /src/topology/metric_space/gromov_hausdorff.lean | 2eef983445a4ffccb50368e89a4f59fd4adeee76 | [
"Apache-2.0"
] | permissive | mattearnshaw/mathlib | ac90f9fb8168aa642223bea3ffd0286b0cfde44f | d8dc1445cf8a8c74f8df60b9f7a1f5cf10946666 | refs/heads/master | 1,606,308,351,137 | 1,576,594,130,000 | 1,576,594,130,000 | 228,666,195 | 0 | 0 | Apache-2.0 | 1,576,603,094,000 | 1,576,603,093,000 | null | UTF-8 | Lean | false | false | 56,277 | lean | /-
Copyright (c) 2019 Sébastien Gouëzel. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Author: Sébastien Gouëzel
-/
import topology.metric_space.closeds set_theory.cardinal topology.metric_space.gromov_hausdorff_realized
topology.metric_space.completion
/-!
# Gromov-Hausdorf... |
b6abd2a33ed2f02eadf94195a63ab46cb7d5e43a | c45b34bfd44d8607a2e8762c926e3cfaa7436201 | /uexp/src/uexp/rules/commonexp.lean | 9f5d0e82ac0d559d896702c00b74cb6958018c02 | [
"BSD-2-Clause"
] | permissive | Shamrock-Frost/Cosette | b477c442c07e45082348a145f19ebb35a7f29392 | 24cbc4adebf627f13f5eac878f04ffa20d1209af | refs/heads/master | 1,619,721,304,969 | 1,526,082,841,000 | 1,526,082,841,000 | 121,695,605 | 1 | 0 | null | 1,518,737,210,000 | 1,518,737,210,000 | null | UTF-8 | Lean | false | false | 1,146 | lean | import ..sql
import ..tactics
import ..u_semiring
import ..extra_constants
import ..ucongr
import ..TDP
import ..cosette_tactics
-- NOTE: this one cannot solved by ucongr, need to be revisited
open Expr
open Proj
open Pred
open SQL
open binary_operators
theorem rule :
forall (Γ s1 : Schema) (a : relation s1)
... |
80cb9a80441bc4ccfb378844f6c7cfdbe1e1f105 | 037dba89703a79cd4a4aec5e959818147f97635d | /src/2020/tactic_hints/examples.lean | 417958ace14ce5e6bb1ee538e8fbb4c866a8c0a0 | [] | no_license | ImperialCollegeLondon/M40001_lean | 3a6a09298da395ab51bc220a535035d45bbe919b | 62a76fa92654c855af2b2fc2bef8e60acd16ccec | refs/heads/master | 1,666,750,403,259 | 1,665,771,117,000 | 1,665,771,117,000 | 209,141,835 | 115 | 12 | null | 1,640,270,596,000 | 1,568,749,174,000 | Lean | UTF-8 | Lean | false | false | 5,037 | lean | import tactic
/-!
# Tactic cheat sheet.
-- natnumgame tactics
apply,
exact (and assumption)
split
use (use `use` to make progress with `nonempty X`)
-/
/-!
## 1) Extracting information from hypotheses
-/
/-!
### 1a) cases and rcases
Many objects in Lean are pairs of data. For example, a proof
of `P ∧ Q... |
74aa877e9c877c299cce13adcd8081c94148fd6c | 74addaa0e41490cbaf2abd313a764c96df57b05d | /Mathlib/ring_theory/polynomial/rational_root_auto.lean | eaa3cee9dc64669d27be1ac990d54d93e01dfd67 | [] | 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,015 | lean | /-
Copyright (c) 2020 Anne Baanen. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Anne Baanen
-/
import Mathlib.PrePort
import Mathlib.Lean3Lib.init.default
import Mathlib.ring_theory.polynomial.scale_roots
import Mathlib.ring_theory.localization
import Mathlib.PostPor... |
aab8e311472f3945dd813184637018399aa27b2b | a4673261e60b025e2c8c825dfa4ab9108246c32e | /src/Lean/Elab/Tactic.lean | f55d98262a6302651b99d336d2e2cb142dbd1074 | [
"Apache-2.0"
] | permissive | jcommelin/lean4 | c02dec0cc32c4bccab009285475f265f17d73228 | 2909313475588cc20ac0436e55548a4502050d0a | refs/heads/master | 1,674,129,550,893 | 1,606,415,348,000 | 1,606,415,348,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 498 | 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.Elab.Term
import Lean.Elab.Tactic.Basic
import Lean.Elab.Tactic.ElabTerm
import Lean.Elab.Tactic.Induction
import Lean.Elab.T... |
680cc64a771f7613fc23a593df92c10430992bed | fa02ed5a3c9c0adee3c26887a16855e7841c668b | /src/algebra/big_operators/order.lean | 2da6043e64d59de85ceafebb7d4eda6e06057cec | [
"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 | 20,732 | 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
/-!
# Results about big operators with values in an ordered algebraic structure.
Mostly monotonicity results for the `∏` and `∑`... |
82f524d0d6e08b5419b2f0716f3bc10a32443ef1 | cf39355caa609c0f33405126beee2739aa3cb77e | /tests/lean/ctx.lean | 21acb10f1e37e06a579198208ad986bffb64140b | [
"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 | 158 | lean | open prod universe variables u
definition foo {A B : Type u} (a1 a2 a3 a4 a5 a6 a7 a8 a9 a10 : nat) (b1 b2 b3 : bool) (h : A = B) (p1 p2 : A × B) : nat :=
_
|
2a638696436cce3f128370165a30d4016b67f18a | 159fed64bfae88f3b6a6166836d6278f953bcbf9 | /Structure/Generic/Axioms/DependentGeneralizedProperties.lean | cf4875b9e62df8f96485fb517399f4e0f8083b2d | [
"MIT"
] | permissive | SReichelt/lean4-experiments | 3e56830c8b2fbe3814eda071c48e3c8810d254a8 | ff55357a01a34a91bf670d712637480089085ee4 | refs/heads/main | 1,683,977,454,907 | 1,622,991,121,000 | 1,622,991,121,000 | 340,765,677 | 2 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 6,242 | lean | import Structure.Generic.Axioms.Universes
import Structure.Generic.Axioms.AbstractFunctors
import Structure.Generic.Axioms.AbstractEquivalences
import Structure.Generic.Axioms.GeneralizedProperties
import Structure.Generic.Notation
open GeneralizedProperty
open GeneralizedRelation
set_option autoBoundImplicitLocal ... |
1a93d1893bded1fac7f316dedef15b602a043196 | 74addaa0e41490cbaf2abd313a764c96df57b05d | /Mathlib/topology/algebra/ordered.lean | cf7e05e4db6507cb809e00424741c9bf6a8c9ba3 | [] | 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 | 159,950 | 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 Mathlib.PrePort
import Mathlib.Lean3Lib.init.default
import Mathlib.tactic.linarith.default
import Mathlib.tactic.tfae
import ... |
af25bf4e15497d39710e37981fadc544061c0833 | 8cae430f0a71442d02dbb1cbb14073b31048e4b0 | /src/dynamics/ergodic/conservative.lean | 19c15969371659f0b90f684fd4953de2cbd3e4b3 | [
"Apache-2.0"
] | permissive | leanprover-community/mathlib | 56a2cadd17ac88caf4ece0a775932fa26327ba0e | 442a83d738cb208d3600056c489be16900ba701d | refs/heads/master | 1,693,584,102,358 | 1,693,471,902,000 | 1,693,471,902,000 | 97,922,418 | 1,595 | 352 | Apache-2.0 | 1,694,693,445,000 | 1,500,624,130,000 | Lean | UTF-8 | Lean | false | false | 10,146 | 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 measure_theory.constructions.borel_space.basic
import dynamics.ergodic.measure_preserving
import combinatorics.pigeonhole
/-!
# Conservative systems
> THIS... |
eef4b967d8f7a1f0c185bad43302ba09f3c72a5a | 63abd62053d479eae5abf4951554e1064a4c45b4 | /src/algebra/algebra/subalgebra.lean | 0979d85dd478fbd6fc981722fa7e4942b6188008 | [
"Apache-2.0"
] | permissive | Lix0120/mathlib | 0020745240315ed0e517cbf32e738d8f9811dd80 | e14c37827456fc6707f31b4d1d16f1f3a3205e91 | refs/heads/master | 1,673,102,855,024 | 1,604,151,044,000 | 1,604,151,044,000 | 308,930,245 | 0 | 0 | Apache-2.0 | 1,604,164,710,000 | 1,604,163,547,000 | null | UTF-8 | Lean | false | false | 18,475 | lean | /-
Copyright (c) 2018 Kenny Lau. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Kenny Lau, Yury Kudryashov
-/
import algebra.algebra.basic
/-!
# Subalgebras over Commutative Semiring
In this file we define `subalgebra`s and the usual operations on them (`map`, `comap... |
5b24a26cb99593f28e9f0e11cab17d0be876a12d | 08bd4ba4ca87dba1f09d2c96a26f5d65da81f4b4 | /src/Lean/Parser.lean | 8b3683a99885fcdae431988ac6c3a104ad8be7e0 | [
"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",
"Apache-2.0",
"LicenseRef-scancode-other-permissive",
"SunPro",
"CMU-Mach"... | permissive | gebner/lean4 | d51c4922640a52a6f7426536ea669ef18a1d9af5 | 8cd9ce06843c9d42d6d6dc43d3e81e3b49dfc20f | refs/heads/master | 1,685,732,780,391 | 1,672,962,627,000 | 1,673,459,398,000 | 373,307,283 | 0 | 0 | Apache-2.0 | 1,691,316,730,000 | 1,622,669,271,000 | Lean | UTF-8 | Lean | false | false | 7,638 | lean | /-
Copyright (c) 2019 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Leonardo de Moura, Sebastian Ullrich
-/
import Lean.Parser.Basic
import Lean.Parser.Level
import Lean.Parser.Term
import Lean.Parser.Tactic
import Lean.Parser.Command
import Lea... |
2dfdb2b61e1ac9f0a3d19944ec8ab7275586880d | 302c785c90d40ad3d6be43d33bc6a558354cc2cf | /src/data/polynomial/ring_division.lean | c0a140b181594bb118b6ce3745f1273ac78685ee | [
"Apache-2.0"
] | permissive | ilitzroth/mathlib | ea647e67f1fdfd19a0f7bdc5504e8acec6180011 | 5254ef14e3465f6504306132fe3ba9cec9ffff16 | refs/heads/master | 1,680,086,661,182 | 1,617,715,647,000 | 1,617,715,647,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 27,021 | lean | /-
Copyright (c) 2018 Chris Hughes. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Chris Hughes, Johannes Hölzl, Scott Morrison, Jens Wagemaker, Johan Commelin
-/
import data.polynomial.basic
import data.polynomial.div
import data.polynomial.algebra_map
import data.se... |
6cdb0ebbad700ef94674c8eec946bd5733f51988 | 8e6cad62ec62c6c348e5faaa3c3f2079012bdd69 | /src/linear_algebra/char_poly/coeff.lean | cef0b705904aef750f396a79c19a9b4708de46af | [
"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 | 8,953 | lean | /-
Copyright (c) 2020 Aaron Anderson, Jalex Stark. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Author: Aaron Anderson, Jalex Stark.
-/
import data.matrix.char_p
import linear_algebra.char_poly.basic
import linear_algebra.matrix
import ring_theory.polynomial.basic
import alg... |
a79f054d3305d0c85ac1df3d9bbbcdeb6f8ea430 | 6dc0c8ce7a76229dd81e73ed4474f15f88a9e294 | /tests/lean/run/decClassical.lean | 3a7c2f9f949aa5ab30455be5efddec4353c825a5 | [
"Apache-2.0"
] | permissive | williamdemeo/lean4 | 72161c58fe65c3ad955d6a3050bb7d37c04c0d54 | 6d00fcf1d6d873e195f9220c668ef9c58e9c4a35 | refs/heads/master | 1,678,305,356,877 | 1,614,708,995,000 | 1,614,708,995,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 314 | lean | open Classical
theorem ex : if (fun x => x + 1) = (fun x => x + 2) then False else True := by
have (fun x => x + 1) ≠ (fun x => x + 2) by
intro h
have 1 = 2 from congrFun h 0
exact absurd this decide!
rw ifNeg this
exact True.intro
def tst (x : Nat) : Bool :=
if 1 < 2 then true else false
|
947683a9fce04091fc95398e4a17088c5cd5db9c | 2eab05920d6eeb06665e1a6df77b3157354316ad | /src/linear_algebra/basic.lean | d3b20ba062aa09b453be9bb7f79c6c18c4632e74 | [
"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 | 106,555 | 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, Frédéric Dupuis,
Heather Macbeth
-/
import algebra.big_operators.pi
import algebra.module.hom
import algebra.module.pr... |
67fbb7febdd4761863733c343ad01d9300b8239c | 74addaa0e41490cbaf2abd313a764c96df57b05d | /Mathlib/Lean3Lib/init/data/fin/default_auto.lean | 2f71c059644dc2e97ec7956da47b1e55fb4e8bee | [] | 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 | 303 | lean | /-
Copyright (c) 2017 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Author: Leonardo de Moura
-/
import Mathlib.PrePort
import Mathlib.Lean3Lib.init.data.fin.basic
import Mathlib.Lean3Lib.init.data.fin.ops
namespace Mathlib
end Mathlib |
9c1cee49862128c2b09ed5bf8fe5102ef2b266da | 57c233acf9386e610d99ed20ef139c5f97504ba3 | /src/geometry/manifold/diffeomorph.lean | 5c1acb8ca8f4c81b56e1fcfb58b21a1a14049d16 | [
"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 | 19,771 | lean | /-
Copyright © 2020 Nicolò Cavalleri. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Nicolò Cavalleri, Yury Kudryashov
-/
import geometry.manifold.times_cont_mdiff_map
/-!
# Diffeomorphisms
This file implements diffeomorphisms.
## Definitions
* `diffeomorph I I' M ... |
dd19e26dc0ce83ac7881f75ca91b0eb081a039ae | a9d0fb7b0e4f802bd3857b803e6c5c23d87fef91 | /tests/lean/run/def3.lean | 8377bf1e5292c0c9cefe1222f8b87457ab0a3175 | [
"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 | 193 | lean |
definition f (a b : nat) : nat :=
nat.cases_on a
(a + b + a + a + b)
(λ a', a + a + b)
definition g (a b : nat) :=
f (f a b) a
set_option trace.compiler true
vm_eval g (g (f 2 3) 2) 3
|
3a3e9af843e7e562741f0517e60dd4e628ea1a4f | e00ea76a720126cf9f6d732ad6216b5b824d20a7 | /src/topology/local_extr.lean | eef9fac277ef4b33f32c44a09aaa4b8dbe452248 | [
"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 | 14,809 | lean | /-
Copyright (c) 2019 Yury Kudryashov. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Yury Kudryashov
-/
import order.filter.extr topology.continuous_on
/-! # Local extrema of functions on topological spaces
## Main definitions
This file defines special versions of... |
43fbe219bbe610342ebcfa72efd3b8b9a0b27661 | a4673261e60b025e2c8c825dfa4ab9108246c32e | /tests/lean/server/init_exit.lean | 93a946155d58553060aaa566f81a366c472e0b25 | [
"Apache-2.0"
] | permissive | jcommelin/lean4 | c02dec0cc32c4bccab009285475f265f17d73228 | 2909313475588cc20ac0436e55548a4502050d0a | refs/heads/master | 1,674,129,550,893 | 1,606,415,348,000 | 1,606,415,348,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 101 | lean | #lang lean4
import Lean.Server
#eval Lean.Server.Test.runWithInputFile "./init_exit_client.log" none
|
faaa8cf72da76ba9c8bfce66e06c8c829a3e8ab0 | bae21755a4a03bbe0a5c22e258db8633407711ad | /library/init/data/array/basic.lean | 6aa5e5b71f73f3074fed4382f2ab7a26a1138f62 | [
"Apache-2.0"
] | permissive | nor-code/lean | f437357a8f85db0f06f186fa50fcb1bc75f6b122 | aa306af3d7c47de3c7937c98d3aa919eb8da6f34 | refs/heads/master | 1,662,613,329,886 | 1,586,696,014,000 | 1,586,696,014,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 9,710 | 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 as a persistent array. -/
s... |
5d3e6cdfc404bbc216427832a99ec059be658ef7 | 74addaa0e41490cbaf2abd313a764c96df57b05d | /Mathlib/field_theory/subfield_auto.lean | f1c065e55e11351c283ffb0af10219afe127c1fc | [] | 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 | 27,431 | lean | /-
Copyright (c) 2020 Anne Baanen. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors : Anne Baanen
-/
import Mathlib.PrePort
import Mathlib.Lean3Lib.init.default
import Mathlib.algebra.algebra.basic
import Mathlib.PostPort
universes u l u_1 v w
namespace Mathlib
/-!
# ... |
c1ec7ebbd7052ca6b9b8a46be61a7ef2f53e4198 | 57c233acf9386e610d99ed20ef139c5f97504ba3 | /src/topology/locally_constant/algebra.lean | 36d369c02ffcf97f97a68b4b00893bb5b76b202c | [
"Apache-2.0"
] | permissive | robertylewis/mathlib | 3d16e3e6daf5ddde182473e03a1b601d2810952c | 1d13f5b932f5e40a8308e3840f96fc882fae01f0 | refs/heads/master | 1,651,379,945,369 | 1,644,276,960,000 | 1,644,276,960,000 | 98,875,504 | 0 | 0 | Apache-2.0 | 1,644,253,514,000 | 1,501,495,700,000 | Lean | UTF-8 | Lean | false | false | 7,512 | lean | /-
Copyright (c) 2021 Johan Commelin. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Johan Commelin
-/
import algebra.algebra.basic
import topology.locally_constant.basic
/-!
# Algebraic structure on locally constant functions
This file puts algebraic structure (`add... |
4716632ec00be80acdf3595fe11f514f1b49d402 | 75db7e3219bba2fbf41bf5b905f34fcb3c6ca3f2 | /hott/algebra/category/limits/limits.hlean | 286d13fb94e0f216657e02c2aa9239e2dbcd58d4 | [
"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 | 17,452 | 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
Limits in a category
-/
import ..constructions.cone ..constructions.discrete ..constructions.product
..constructions.finite_cats ..category ..constructions.... |
11355b1f9f918e0e978d75db9404f3864c78f8ba | 9dc8cecdf3c4634764a18254e94d43da07142918 | /src/group_theory/schur_zassenhaus.lean | a425f1600e0d7fbbe26d93b7813188207a574b55 | [
"Apache-2.0"
] | permissive | jcommelin/mathlib | d8456447c36c176e14d96d9e76f39841f69d2d9b | ee8279351a2e434c2852345c51b728d22af5a156 | refs/heads/master | 1,664,782,136,488 | 1,663,638,983,000 | 1,663,638,983,000 | 132,563,656 | 0 | 0 | Apache-2.0 | 1,663,599,929,000 | 1,525,760,539,000 | Lean | UTF-8 | Lean | false | false | 14,707 | lean | /-
Copyright (c) 2021 Thomas Browning. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Thomas Browning
-/
import group_theory.sylow
import group_theory.transfer
/-!
# The Schur-Zassenhaus Theorem
In this file we prove the Schur-Zassenhaus theorem.
## Main results
-... |
ce4b5b19e7b918e57f6bedec271d6a22625597ba | 9028d228ac200bbefe3a711342514dd4e4458bff | /src/data/fintype/basic.lean | d9221488df9b417414fc078729e404dd51ccd73e | [
"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 | 51,510 | lean | /-
Copyright (c) 2017 Mario Carneiro. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Author: Mario Carneiro
Finite types.
-/
import tactic.wlog
import data.finset.powerset
import data.finset.lattice
import data.finset.pi
import data.array.lemmas
import order.well_founded
open... |
79c975f84df6124619891d63b6370ec0bda10e40 | fe25de614feb5587799621c41487aaee0d083b08 | /tests/lean/run/toFromJson.lean | 0d6b30ee661ff0214ad7dbcee99f8175ee3c1ea5 | [
"Apache-2.0"
] | permissive | pollend/lean4 | e8469c2f5fb8779b773618c3267883cf21fb9fac | c913886938c4b3b83238a3f99673c6c5a9cec270 | refs/heads/master | 1,687,973,251,481 | 1,628,039,739,000 | 1,628,039,739,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 2,581 | lean | import Lean
open Lean
open Lean Parser Term
declare_syntax_cat json
syntax strLit : json
syntax numLit : json
syntax "{" (Lean.Parser.ident ": " json),* "}" : json
syntax "[" json,* "]" : json
syntax "json " json : term
/- declare a micro json parser, so we can write our tests in a more legible way. -/
open Json in... |
b61b7984102de4afe89023f41630a08458cd61b6 | cf39355caa609c0f33405126beee2739aa3cb77e | /tests/lean/t2.lean | fb21d6e8b16e857b98e14bd8db1106459ca16b65 | [
"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 | 38 | lean | #print "hello world"
#print "testing"
|
6884e9d2815bd8e12b94f388cb27e8cb40563b6d | dd0f5513e11c52db157d2fcc8456d9401a6cd9da | /06_Inductive_Types.org.31.lean | a10580074a94b1bf9425908eb94f54fa49ff6611 | [] | no_license | cjmazey/lean-tutorial | ba559a49f82aa6c5848b9bf17b7389bf7f4ba645 | 381f61c9fcac56d01d959ae0fa6e376f2c4e3b34 | refs/heads/master | 1,610,286,098,832 | 1,447,124,923,000 | 1,447,124,923,000 | 43,082,433 | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 1,012 | lean | /- page 87 -/
import standard
namespace hide
inductive nat : Type :=
| zero : nat
| succ : nat → nat
namespace nat
definition add (m n : nat) : nat :=
nat.rec_on n m (fun n add_m_n, succ add_m_n)
notation 0 := zero
infix `+` := add
theorem add_zero (m : nat) : m + 0 = m := rfl
theorem add_succ (m n : nat) : m + s... |
7e1698c7cfed766adc2dd82401d107af7e76a9e9 | efa51dd2edbbbbd6c34bd0ce436415eb405832e7 | /20150803_CADE/examples/lua.lean | e64007048406122fd77d131390f1e3efb0d466b0 | [
"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 | 680 | lean | import data.nat
open nat
definition f (a : nat) : nat := a + 10
(*
local env = get_env()
local f_decl = env:get("f")
-- Traverse subterms of f
f_decl:value():for_each(function (a) print(">> " .. tostring(a)) end)
local nat = Const("nat")
-- Create the term λ x, f x + f x
local add = Const({"nat","... |
875c73aea05a3f1d968d6ecc8d7e4ef5531b720f | 367134ba5a65885e863bdc4507601606690974c1 | /src/ring_theory/ideal/prod.lean | c776343778ae972b9b1cc51ffca9377e49189f6f | [
"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 | 7,515 | lean | /-
Copyright (c) 2020 Markus Himmel. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Markus Himmel
-/
import ring_theory.ideal.operations
/-!
# Ideals in product rings
For commutative rings `R` and `S` and ideals `I ≤ R`, `J ≤ S`, we define `ideal.prod I J` as the
pro... |
ab07f4f0152937fde2199046dfa5b0f7aa392787 | aa2345b30d710f7e75f13157a35845ee6d48c017 | /order/bounded_lattice.lean | 2a361f3336f90a3b3721a91f8e5cba6b94561054 | [
"Apache-2.0"
] | permissive | CohenCyril/mathlib | 5241b20a3fd0ac0133e48e618a5fb7761ca7dcbe | a12d5a192f5923016752f638d19fc1a51610f163 | refs/heads/master | 1,586,031,957,957 | 1,541,432,824,000 | 1,541,432,824,000 | 156,246,337 | 0 | 0 | Apache-2.0 | 1,541,434,514,000 | 1,541,434,513,000 | null | UTF-8 | Lean | false | false | 23,909 | 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 data.option
tactic.pi_instances
set_option old_stru... |
bf1efe9112f97da7259d516031802d1b6f044737 | d406927ab5617694ec9ea7001f101b7c9e3d9702 | /src/algebra/star/pointwise.lean | 0b27e91d4062808fd0e14b5638e76dc565b57a2d | [
"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,266 | lean | /-
Copyright (c) 2022 Jireh Loreaux. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Jireh Loreaux
-/
import algebra.star.basic
import data.set.finite
import data.set.pointwise.basic
/-!
# Pointwise star operation on sets
This file defines the star operation pointwise... |
0d93f21d6d9f2204b2ccec3f000af9e702b713bd | e00ea76a720126cf9f6d732ad6216b5b824d20a7 | /src/data/equiv/denumerable.lean | 37be42432f6a943a4962ae625950b99d5af43bd3 | [
"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 | 9,044 | lean | /-
Copyright (c) 2018 Mario Carneiro. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Author: Mario Carneiro
Denumerable (countably infinite) types, as a typeclass extending
encodable. This is used to provide explicit encode/decode functions
from nat, where the functions are kn... |
931671432e3c733b29c09d18b2905e608935f4e5 | ce6917c5bacabee346655160b74a307b4a5ab620 | /src/ch5/ex0306.lean | ae390fca24bd732752b0c03dd18272601f44af45 | [] | 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 | 182 | lean | example (p q : ℕ → Prop) :
(∃ x, p x ∧ q x) → ∃ x, q x ∧ p x :=
begin
intro h,
cases h with x hpqx,
cases hpqx with hpx hqx,
existsi x, split; assumption
end
|
019c0411df22e8cbb6e5593c6b0d04289962992a | a0e23cfdd129a671bf3154ee1a8a3a72bf4c7940 | /src/Init/Control/Basic.lean | b644e4c553b2c12008a630cd5dcc127ef60b0cbb | [
"Apache-2.0"
] | permissive | WojciechKarpiel/lean4 | 7f89706b8e3c1f942b83a2c91a3a00b05da0e65b | f6e1314fa08293dea66a329e05b6c196a0189163 | refs/heads/master | 1,686,633,402,214 | 1,625,821,189,000 | 1,625,821,258,000 | 384,640,886 | 0 | 0 | Apache-2.0 | 1,625,903,617,000 | 1,625,903,026,000 | null | UTF-8 | Lean | false | false | 3,804 | lean | /-
Copyright (c) 2020 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Author: Leonardo de Moura, Sebastian Ullrich
-/
prelude
import Init.Core
universe u v w
@[reducible] def Functor.mapRev {f : Type u → Type v} [Functor f] {α β : Type u} : f α → (α → β)... |
76bf83512cdce605c19f3a920dd531942c4c90b6 | 9028d228ac200bbefe3a711342514dd4e4458bff | /src/topology/subset_properties.lean | a0255bde163073cd8f8a4e80f4776b1d15967aec | [
"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 | 58,157 | 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... |
aa56ae23fc33266dd580fbf5fc194aa9d4a381f4 | f3849be5d845a1cb97680f0bbbe03b85518312f0 | /library/tools/super/simp.lean | 9663d42f7556b8928db7cc5b05408d17b1044da4 | [
"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 | 1,496 | lean | /-
Copyright (c) 2016 Gabriel Ebner. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Gabriel Ebner
-/
import .clause_ops .prover_state
open tactic monad
namespace super
meta def prove_using_assumption : tactic unit := do
tgt ← target,
ass ← mk_local_def `h tgt,
exact ... |
8ea58cfa849af3fc8b6cd1962b14cd07e819e03a | 947b78d97130d56365ae2ec264df196ce769371a | /src/Lean/Elab/Syntax.lean | a685f2ab7e477648c03a611285aa5b1a0404050c | [
"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 | 23,106 | 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.Elab.Command
import Lean.Elab.Quotation
namespace Lean
namespace Elab
namespace Term
/-
Expand `optional «precedence»` where
«precedence» :=... |
758d1517a80d12285b8da43cdfa5516b6b081fc5 | 626e312b5c1cb2d88fca108f5933076012633192 | /src/algebra/algebra/operations.lean | 1821096d95e01b9dce48cc3a8c739dcc821221dd | [
"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 | 13,884 | lean | /-
Copyright (c) 2019 Kenny Lau. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Kenny Lau
-/
import algebra.algebra.basic
/-!
# Multiplication and division of submodules of an algebra.
An interface for multiplication and division of sub-R-modules of an R-algebra A is... |
d42acdeec5f0613a6f9ef1edfb80e75d9e3f5da0 | 74addaa0e41490cbaf2abd313a764c96df57b05d | /Mathlib/Lean3Lib/init/data/list/qsort.lean | 460bed4aa454eb1a92ccbb9b6871fb9a553514fd | [] | no_license | AurelienSaue/Mathlib4_auto | f538cfd0980f65a6361eadea39e6fc639e9dae14 | 590df64109b08190abe22358fabc3eae000943f2 | refs/heads/master | 1,683,906,849,776 | 1,622,564,669,000 | 1,622,564,669,000 | 371,723,747 | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 1,242 | lean | /-
Copyright (c) 2017 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Author: Leonardo de Moura
-/
import Mathlib.PrePort
import Mathlib.Lean3Lib.init.data.list.lemmas
import Mathlib.Lean3Lib.init.wf
universes u_1
namespace Mathlib
namespace list
-... |
2256247421c2199ccf319d1e365f32041dbe0d83 | 57c233acf9386e610d99ed20ef139c5f97504ba3 | /src/tactic/linear_combination.lean | d5437549a2bfb144fe67f85118895fdfca6ed29a | [
"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 | 14,498 | lean | /-
Copyright (c) 2022 Abby J. Goldberg. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Abby J. Goldberg
-/
import tactic.ring
/-!
# linear_combination Tactic
In this file, the `linear_combination` tactic is created. This tactic, which
works over `ring`s, attempts ... |
27241c8304683f960555336418370116dd7dcb93 | 74addaa0e41490cbaf2abd313a764c96df57b05d | /Mathlib/Lean3Lib/init/meta/smt/interactive_auto.lean | 3eeb51af3b7cb487c6a4cf54f18716731ec6d61e | [] | 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 | 385 | 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
-/
import Mathlib.PrePort
import Mathlib.Lean3Lib.init.meta.smt.smt_tactic
import Mathlib.Lean3Lib.init.meta.interactive_base
import Mathlib.Lean3Lib.init.meta... |
cf39754fb21e6e85539d8d3926544f73eda6ff48 | cf39355caa609c0f33405126beee2739aa3cb77e | /tests/lean/run/dsimp_options.lean | 464b4ac31cbf377650c136a4ca06de613543002b | [
"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,741 | lean | example (b c : nat) : c = @bool.cases_on (λ _, nat) tt b c :=
begin
fail_if_success {dsimp {iota := ff}},
dsimp {iota := tt},
guard_target c = c,
reflexivity
end
example (b c : nat) : c = @bool.cases_on (λ _, nat) tt b c :=
begin
dsimp, -- iota is tt by default
guard_target c = c,
reflexivity
end
exam... |
4738a1021e5c4d919f912743bcb67c6ee698f3e8 | da23b545e1653cafd4ab88b3a42b9115a0b1355f | /test/forwards_reasoning.lean | 7ab420359b06468457e4f06e812f43e9359b21e4 | [] | 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 | 987 | lean | import tidy.forwards_reasoning
lemma G (n : ℕ) : list ℕ := [n]
lemma F : ℕ := 0
section
local attribute [forward] G
example : 1 = 1 :=
begin
success_if_fail { forwards_library_reasoning },
refl
end
local attribute [forward] F
example : 1 = 1 :=
begin
forwards_library_reasoning,
forwards_library_reasonin... |
3075918fd7ec6751b3c45c38a798a6847010b10d | 37683ecbb27d7c2037bfd9ad7e06d662f460a005 | /spectrum/basic.hlean | defccbeb2bd5bf5fbd531d46b751e48390553017 | [
"Apache-2.0"
] | permissive | GRSEB9S/Spectral-1 | b2443b09cae7aac1247b1f88c846c532ac802b8e | dd14277e0bfc6270a488eb3b9ec231484065b9d8 | refs/heads/master | 1,631,315,269,407 | 1,522,048,315,000 | 1,522,799,803,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 37,750 | hlean | /-
Copyright (c) 2016 Michael Shulman. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Michael Shulman, Floris van Doorn, Egbert Rijke, Stefano Piceghello, Yuri Sulyma
-/
import homotopy.LES_of_homotopy_groups ..algebra.splice ..algebra.seq_colim ..homotopy.EM ..homot... |
ad126ad4f537a6c1851b7d23774c9983449bf685 | 6432ea7a083ff6ba21ea17af9ee47b9c371760f7 | /src/Lean/Meta/Basic.lean | 2ed7c55f2de6d4c053d36dc49dc8383ca8f24e04 | [
"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 | 71,828 | 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.Data.LOption
import Lean.Environment
import Lean.Class
import Lean.ReducibilityAttrs
import Lean.Util.ReplaceExpr
import Lean.Util.MonadBacktrac... |
cec18bf037b5ca29284b69567eac450d40f0737c | 5719a16e23dfc08cdea7a5bf035b81690f307965 | /src/Init/Control/Applicative.lean | 8e80b9c5c97e82a2e28e64554f2e5bf70b3e693b | [
"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 | 1,358 | 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, Sebastian Ullrich
-/
prelude
import Init.Control.Functor
open Function
universes u v
class HasPure (f : Type u → Type v) :=
(pure {} {α : Type u} : α → f α)
... |
9527576f6458533647de167abbc8c0c1e972bd52 | 57c233acf9386e610d99ed20ef139c5f97504ba3 | /src/data/polynomial/basic.lean | e605e09fe9cf33405fe20c1f3e8f37ee6add6aec | [
"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 | 27,461 | lean | /-
Copyright (c) 2018 Chris Hughes. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Chris Hughes, Johannes Hölzl, Scott Morrison, Jens Wagemaker
-/
import algebra.monoid_algebra.basic
/-!
# Theory of univariate polynomials
This file defines `polynomial R`, the type of... |
a8b19f1fd0bdb435c700a15e6b97773d88f8d53e | 26bff4ed296b8373c92b6b025f5d60cdf02104b9 | /tests/lean/hott/cases.hlean | 7e2b5268812f02d593081c6b54cab1418932c21d | [
"Apache-2.0"
] | permissive | guiquanz/lean | b8a878ea24f237b84b0e6f6be2f300e8bf028229 | 242f8ba0486860e53e257c443e965a82ee342db3 | refs/heads/master | 1,526,680,092,098 | 1,427,492,833,000 | 1,427,493,281,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 479 | hlean | open nat
inductive vec (A : Type) : nat → Type :=
| nil {} : vec A zero
| cons : Π {n}, A → vec A n → vec A (succ n)
namespace vec
variables {A B C : Type}
variables {n m : nat}
notation a :: b := cons a b
protected definition destruct (v : vec A (succ n)) {P : Π {n : nat}, vec A (succ n) → Type}
... |
d7cd158d1871714f24266574e1a146e055ab0561 | d9d511f37a523cd7659d6f573f990e2a0af93c6f | /src/ring_theory/artinian.lean | 9c7732e99860f7b16b75bf28430008c01a1aaaa1 | [
"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 | 15,105 | lean | /-
Copyright (c) 2021 Chris Hughes. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Chris Hughes
-/
import linear_algebra.basic
import linear_algebra.prod
import linear_algebra.pi
import data.set_like.fintype
import linear_algebra.linear_independent
import tactic.linari... |
a3a66e94c30be90a516ade9a8cc9652843277dba | 4727251e0cd73359b15b664c3170e5d754078599 | /src/order/antisymmetrization.lean | 4e8098fb5a811389dc2a8ad7be29aeec9e4249e8 | [
"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,365 | 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.basic
/-!
# Turning a preorder into a partial order
This file allows to make a preorder into a partial order by quotienting out the elements `a`, `b`
s... |
e6408155365b48bc3d46c54ee28ba9925b59fd78 | 1a61aba1b67cddccce19532a9596efe44be4285f | /library/init/reserved_notation.lean | 6af3efffadae9ce9295b2df19262ad79a3c9a4ec | [
"Apache-2.0"
] | permissive | eigengrau/lean | 07986a0f2548688c13ba36231f6cdbee82abf4c6 | f8a773be1112015e2d232661ce616d23f12874d0 | refs/heads/master | 1,610,939,198,566 | 1,441,352,386,000 | 1,441,352,494,000 | 41,903,576 | 0 | 0 | null | 1,441,352,210,000 | 1,441,352,210,000 | null | UTF-8 | Lean | false | false | 2,268 | lean | /-
Copyright (c) 2014 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Leonardo de Moura, Jeremy Avigad
-/
prelude
import init.datatypes
notation `assume` binders `,` r:(scoped f, f) := r
notation `take` binders `,` r:(scoped f, f) := r
/-
Gl... |
2c7aad0a6514f727b98d4b35c320c2d7d2b4e9f7 | 9dc8cecdf3c4634764a18254e94d43da07142918 | /src/topology/shrinking_lemma.lean | cc359edf4b3cedc3326c15434c2c121168529b29 | [
"Apache-2.0"
] | permissive | jcommelin/mathlib | d8456447c36c176e14d96d9e76f39841f69d2d9b | ee8279351a2e434c2852345c51b728d22af5a156 | refs/heads/master | 1,664,782,136,488 | 1,663,638,983,000 | 1,663,638,983,000 | 132,563,656 | 0 | 0 | Apache-2.0 | 1,663,599,929,000 | 1,525,760,539,000 | Lean | UTF-8 | Lean | false | false | 12,195 | lean | /-
Copyright (c) 2021 Yury Kudryashov. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Yury Kudryashov, Reid Barton
-/
import topology.separation
/-!
# The shrinking lemma
In this file we prove a few versions of the shrinking lemma. The lemma says that in a normal
top... |
828d733344be737aec67b07cfcfaf9f7d397aaeb | 6432ea7a083ff6ba21ea17af9ee47b9c371760f7 | /tests/lean/run/1886.lean | d26d74ed7742029e4cb57c9c070f35d3db3df5ad | [
"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 | 105 | lean | structure U (α : Type) where
a : α
theorem mk_inj (w : U.mk a = U.mk b) : a = b := by
injection w
|
b95ba275374be28ffaa9ac69aac554ca0b22bac9 | 737dc4b96c97368cb66b925eeea3ab633ec3d702 | /src/Lean/Meta/Tactic/Simp/Main.lean | b3020ea64b8cbd41818ad6cca77b6e73f73a2e9c | [
"Apache-2.0"
] | permissive | Bioye97/lean4 | 1ace34638efd9913dc5991443777b01a08983289 | bc3900cbb9adda83eed7e6affeaade7cfd07716d | refs/heads/master | 1,690,589,820,211 | 1,631,051,000,000 | 1,631,067,598,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 17,491 | 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.Transform
import Lean.Meta.Tactic.Replace
import Lean.Meta.Tactic.Util
import Lean.Meta.Tactic.Clear
import Lean.Meta.Tactic.Simp.Types
imp... |
f534716104e9913aeb7ce4670228558c5225a905 | 9dc8cecdf3c4634764a18254e94d43da07142918 | /src/analysis/convex/basic.lean | baea8f43976b95b79ab6f4a6b00b21f466c63680 | [
"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 | 21,713 | lean | /-
Copyright (c) 2019 Alexander Bentkamp. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Alexander Bentkamp, Yury Kudriashov, Yaël Dillies
-/
import algebra.order.module
import analysis.convex.star
import linear_algebra.affine_space.affine_subspace
/-!
# Convex sets a... |
7b4ddd75e86066620c0dec6a87c3b5d143432b95 | 4727251e0cd73359b15b664c3170e5d754078599 | /src/data/finset/prod.lean | 9b4c0756134960f798108d6d4d5a1c501537fda4 | [
"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 | 10,292 | lean | /-
Copyright (c) 2017 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Johannes Hölzl, Mario Carneiro, Oliver Nash
-/
import data.finset.card
/-!
# Finsets in product types
This file defines finset constructions on the product type `α × β`. Bewar... |
6ab9a471d614750bc7da8aedf988d306a2224a09 | 217bb195841a8be2d1b4edd2084d6b69ccd62f50 | /library/init/lean/parser/basic.lean | d540f3bd708e84c412e98076af28cbbd9fd22706 | [
"Apache-2.0"
] | permissive | frank-lesser/lean4 | 717f56c9bacd5bf3a67542d2f5cea721d4743a30 | 79e2abe33f73162f773ea731265e456dbfe822f9 | refs/heads/master | 1,589,741,267,933 | 1,556,424,200,000 | 1,556,424,281,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 9,503 | lean | /-
Copyright (c) 2018 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Author: Sebastian Ullrich
Parser for the Lean language
-/
prelude
import init.lean.parser.parsec init.lean.parser.syntax init.lean.parser.rec
import init.lean.parser.trie
import init.le... |
d1caf985e18a6480b4e136c9c57083c6c2499ba7 | 8cae430f0a71442d02dbb1cbb14073b31048e4b0 | /src/number_theory/ADE_inequality.lean | 5ba14070ab98cfe537adf82187201cfc4a50ee0b | [
"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 | 7,742 | lean | /-
Copyright (c) 2021 Johan Commelin. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Johan Commelin
-/
import data.multiset.sort
import data.pnat.interval
import data.rat.order
import data.pnat.basic
import tactic.norm_num
import tactic.field_simp
import tactic.interv... |
5fa4d250c0b34fc29597cfb0edf96556a70cee95 | 592ee40978ac7604005a4e0d35bbc4b467389241 | /Library/generated/mathscheme-lean/LeftCancellativeMagma.lean | 218d56da700147de7ea7c640e8fb4ba00e931ad9 | [] | no_license | ysharoda/Deriving-Definitions | 3e149e6641fae440badd35ac110a0bd705a49ad2 | dfecb27572022de3d4aa702cae8db19957523a59 | refs/heads/master | 1,679,127,857,700 | 1,615,939,007,000 | 1,615,939,007,000 | 229,785,731 | 4 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 6,508 | lean | import init.data.nat.basic
import init.data.fin.basic
import data.vector
import .Prelude
open Staged
open nat
open fin
open vector
section LeftCancellativeMagma
structure LeftCancellativeMagma (A : Type) : Type :=
(op : (A → (A → A)))
(leftCancellative : (∀ {x y z : A} , ((op z x) = (op z y) → x = ... |
b2a689033229a01f280ff7e9592b75fa9234e426 | 35677d2df3f081738fa6b08138e03ee36bc33cad | /src/topology/metric_space/premetric_space.lean | 17ab8051abfc2c347ae0671bc59dc60ec98bbb4f | [
"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 | 3,619 | lean | /-
Copyright (c) 2019 Sébastien Gouëzel. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Premetric spaces.
Author: Sébastien Gouëzel
-/
import topology.metric_space.basic tactic.linarith
/-!
# Premetric spaces
Metric spaces are often defined as quotients of spaces endowed wi... |
43c5c3ff039457d363c99e09bfa7b1d58d0f8823 | 35677d2df3f081738fa6b08138e03ee36bc33cad | /src/data/set/intervals/basic.lean | 74116008d59c50355c1667a84f885f77a983a401 | [
"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 | 28,615 | 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
-/
import order.lattice algebra.order_functions algebra.ordered_field tactic.tauto
/-!
# Intervals
In any preorder `α... |
6b8843ca32999dbb30362b7e03f5d44795c02684 | 82e44445c70db0f03e30d7be725775f122d72f3e | /src/data/list/duplicate.lean | 21b0e8339cb9f5a6dc52d6e463b2662478dc4812 | [
"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 | 4,339 | lean | /-
Copyright (c) 2021 Yakov Pechersky. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Yakov Pechersky, Chris Hughes
-/
import data.list.nodup
import data.fin
/-!
# List duplicates
## Main definitions
* `list.duplicate x l : Prop` is an inductive property that holds ... |
0d5f0aaacd6301f2e4674afd68a1b8c6913062a9 | a9d0fb7b0e4f802bd3857b803e6c5c23d87fef91 | /hott/types/nat/order.hlean | 71fac0d3b7569efcbccd58ce63e121406540204d | [
"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 | 18,486 | 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, Leonardo de Moura, Jeremy Avigad
The order relation on the natural numbers.
-/
import .basic algebra.ordered_ring
open eq eq.ops algebra algebra
namespace nat
/-... |
8f182b8f9e2b22a36ae0f5d9d8c62d0e49412d44 | 8cae430f0a71442d02dbb1cbb14073b31048e4b0 | /src/meta/univs.lean | 48bb6413bf941d66540aa3659c15c06ced66b5d6 | [
"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 | 5,082 | lean | /-
Copyright (c) 2022 Gabriel Ebner. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Gabriel Ebner, Eric Wieser
-/
/-!
# Reflection of universe variables
The `reflect` and `has_reflect` machinery (sometimes via the `` `(expr) `` syntax) allows
terms to be converted to... |
d8ddf8cdac68e9247ae5d0931103c97dc557a07c | aa2345b30d710f7e75f13157a35845ee6d48c017 | /analysis/ennreal.lean | 86300f355fee6bc1e952f762b1775236ca5bf001 | [
"Apache-2.0"
] | permissive | CohenCyril/mathlib | 5241b20a3fd0ac0133e48e618a5fb7761ca7dcbe | a12d5a192f5923016752f638d19fc1a51610f163 | refs/heads/master | 1,586,031,957,957 | 1,541,432,824,000 | 1,541,432,824,000 | 156,246,337 | 0 | 0 | Apache-2.0 | 1,541,434,514,000 | 1,541,434,513,000 | null | UTF-8 | Lean | false | false | 18,591 | lean | /-
Copyright (c) 2017 Johannes Hölzl. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Author: Johannes Hölzl
Extended non-negative reals
-/
import analysis.nnreal data.real.ennreal
noncomputable theory
open classical set lattice filter
local attribute [instance] prop_decidable
... |
2cd4e8686b934c90b2a4d241ecb2aac9a6a46aef | 9028d228ac200bbefe3a711342514dd4e4458bff | /src/topology/uniform_space/absolute_value.lean | cfdaf85863671a81e860a7e15a29bdeee6fcaf29 | [
"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 | 2,889 | lean | /-
Copyright (c) 2019 Patrick Massot. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Patrick Massot
-/
import data.real.cau_seq
import topology.uniform_space.basic
/-!
# Uniform structure induced by an absolute value
We build a uniform space structure on a commutativ... |
4860757f129eb89733181f058212bc9ca9e4fbcb | 36c7a18fd72e5b57229bd8ba36493daf536a19ce | /library/algebra/group.lean | 7369f4cb6c9c9c0384f5957e3452f33edd42e25e | [
"Apache-2.0"
] | permissive | YHVHvx/lean | 732bf0fb7a298cd7fe0f15d82f8e248c11db49e9 | 038369533e0136dd395dc252084d3c1853accbf2 | refs/heads/master | 1,610,701,080,210 | 1,449,128,595,000 | 1,449,128,595,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 20,828 | 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
Various multiplicative and additive structures. Partially modeled on Isabelle's library.
-/
import logic.eq data.unit data.sigma data.prod
import alge... |
b909676bc7ac267f5b4e63ff0955518ff2ea76dd | 8a8d9c511db749b9c0205ee48d6df1e2c6dd1e6f | /library/data/list/basic.lean | 7530a4f3f0062abee75a9d615aa9d88b8659c2d1 | [
"Apache-2.0"
] | permissive | rpglover64/lean | 4d92db4b316b543b8a49797e2109532ed5eb88bb | cbac8d13006782c71a2281c3dd76854ccf8623a7 | refs/heads/master | 1,582,731,391,459 | 1,427,585,012,000 | 1,427,585,012,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 14,062 | lean | /-
Copyright (c) 2014 Parikshit Khanna. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Module: data.list.basic
Authors: Parikshit Khanna, Jeremy Avigad, Leonardo de Moura
Basic properties of lists.
-/
import logic tools.helper_tactics data.nat.basic
open eq.ops helper_tactic... |
d7c0bdee9664b55798ee86c74218f20d8f38e606 | 4d2583807a5ac6caaffd3d7a5f646d61ca85d532 | /src/algebra/associated.lean | 1d95d26a69cfd5104ea098b077c4b26264f04ae2 | [
"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 | 30,609 | 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, Jens Wagemaker
-/
import algebra.big_operators.basic
import algebra.divisibility
import algebra.invertible
/-!
# Associated, prime, and irreducible elements.
-/
varia... |
713a7379e84ebfeadadfe2b18d7450212bf4ce7f | b7f22e51856f4989b970961f794f1c435f9b8f78 | /tests/lean/run/issue332.lean | e22e0ed0533ae67a33f40ac33122b9287a45343e | [
"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 | 150 | lean | import logic.eq
variable {a : Type}
definition foo {A : Type} : A → A :=
begin
intro a, exact a
end
check @foo
example : foo 10 = (10:num) :=
rfl
|
c079b43e9778f77dd14aa21ffb6c21d26ccdfe90 | f57749ca63d6416f807b770f67559503fdb21001 | /tests/lean/run/new_obtain3.lean | 54466897fedd2f10be1b040e6ad4283dd55227d2 | [
"Apache-2.0"
] | permissive | aliassaf/lean | bd54e85bed07b1ff6f01396551867b2677cbc6ac | f9b069b6a50756588b309b3d716c447004203152 | refs/heads/master | 1,610,982,152,948 | 1,438,916,029,000 | 1,438,916,029,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 607 | lean | import data.set
open set function eq.ops
variables {X Y Z : Type}
lemma image_compose (f : Y → X) (g : X → Y) (a : set X) : (f ∘ g) '[a] = f '[g '[a]] :=
setext (take z,
iff.intro
(assume Hz : z ∈ (f ∘ g) '[a],
obtain x (Hx₁ : x ∈ a) (Hx₂ : f (g x) = z), from Hz,
have Hgx : g x ∈ g '[a], from mem_im... |
1284b7791e3ef9c508bd5baefce15ffeba0486d0 | 6094e25ea0b7699e642463b48e51b2ead6ddc23f | /library/theories/group_theory/cyclic.lean | 9b490220fd24e173275b6d7ea407752708125c57 | [
"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 | 15,858 | 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 data algebra.group algebra.group_power .finsubg .hom .perm
open function finset
open eq.ops
namespace group_theory
section cyclic
open nat fin list
local attr... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.