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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
387fa272aeea59de37d61680d41d28ba02d303ff | 57aec6ee746bc7e3a3dd5e767e53bd95beb82f6d | /src/Lean/Util/Path.lean | 77b5e0029c34ce01c09eb6478ee3d6a8dd31f1a0 | [
"Apache-2.0"
] | permissive | collares/lean4 | 861a9269c4592bce49b71059e232ff0bfe4594cc | 52a4f535d853a2c7c7eea5fee8a4fa04c682c1ee | refs/heads/master | 1,691,419,031,324 | 1,618,678,138,000 | 1,618,678,138,000 | 358,989,750 | 0 | 0 | Apache-2.0 | 1,618,696,333,000 | 1,618,696,333,000 | null | UTF-8 | Lean | false | false | 4,292 | 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
Management of the Lean search path (`LEAN_PATH`), which is a list of
paths containing package roots: an import `A.B.C` resolves to
`path/A/... |
bc4e20d45f1347fe27678f386431839a29d2f5c6 | 4727251e0cd73359b15b664c3170e5d754078599 | /src/group_theory/submonoid/basic.lean | 625fa2d15baa6a78ec3e0a06623ce7c871d9d5cd | [
"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 | 20,689 | lean | /-
Copyright (c) 2018 Johannes Hölzl. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Johannes Hölzl, Kenny Lau, Johan Commelin, Mario Carneiro, Kevin Buzzard,
Amelia Livingston, Yury Kudryashov
-/
import group_theory.subsemigroup.basic
/-!
# Submonoids: definition and... |
49bb38e9ce51bc2f012916abc17c82651b956106 | bbecf0f1968d1fba4124103e4f6b55251d08e9c4 | /src/linear_algebra/free_module/finite.lean | 187b26483855bb73f25434112694fe04bc2fc8cf | [
"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 | 3,548 | lean | /-
Copyright (c) 2021 Riccardo Brasca. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Riccardo Brasca
-/
import linear_algebra.free_module.basic
import linear_algebra.matrix.to_lin
import ring_theory.finiteness
/-!
# Finite and free modules
We provide some instances... |
a8a65e06e3ece5f4d7fd75684c4ef8a92cf6fad9 | 2bafba05c98c1107866b39609d15e849a4ca2bb8 | /src/week_8/ideas/Part_C_H1.lean | 4c21e2b8f56a30c1308d2e627900a9c4533df5be | [
"Apache-2.0"
] | permissive | ImperialCollegeLondon/formalising-mathematics | b54c83c94b5c315024ff09997fcd6b303892a749 | 7cf1d51c27e2038d2804561d63c74711924044a1 | refs/heads/master | 1,651,267,046,302 | 1,638,888,459,000 | 1,638,888,459,000 | 331,592,375 | 284 | 24 | Apache-2.0 | 1,669,593,705,000 | 1,611,224,849,000 | Lean | UTF-8 | Lean | false | false | 8,254 | lean | --import week_8.ideas.Z1
import week_8.ideas.distrub_mul_action_hom.Z1 -- do I need all of this?
import week_8.ideas.Z1
/-
# A crash course in H¹(G,M)
We stick to the conventions that `G` is a group (or even
a monoid, we never use inversion) and that `M` is a `G`-module,
that is, an additive abelian group with a `G`... |
4c468ce1aa833a8a8b021e827b92d1b2ebd7bd5f | 4d2583807a5ac6caaffd3d7a5f646d61ca85d532 | /src/data/mv_polynomial/comm_ring.lean | a687702beee401d0d6bd60f5b505e5e9706a508a | [
"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 | 4,767 | 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.mv_polynomial.variables
/-!
# Multivariate polynomials over a ring
Many results about polynomials hold when the coeffic... |
e42ffe5dcb33463437463c68f5b16a9b9e4131ef | 947fa6c38e48771ae886239b4edce6db6e18d0fb | /src/measure_theory/integral/bochner.lean | 76badaf31526442c9073a37d801f6ce78c6914d1 | [
"Apache-2.0"
] | permissive | ramonfmir/mathlib | c5dc8b33155473fab97c38bd3aa6723dc289beaa | 14c52e990c17f5a00c0cc9e09847af16fabbed25 | refs/heads/master | 1,661,979,343,526 | 1,660,830,384,000 | 1,660,830,384,000 | 182,072,989 | 0 | 0 | null | 1,555,585,876,000 | 1,555,585,876,000 | null | UTF-8 | Lean | false | false | 72,436 | lean | /-
Copyright (c) 2019 Zhouhang Zhou. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Zhouhang Zhou, Yury Kudryashov, Sébastien Gouëzel, Rémy Degenne
-/
import measure_theory.integral.set_to_l1
import analysis.normed_space.bounded_linear_maps
import topology.sequences
/... |
e13001ef5f75e287942f429a6f325711012694dc | 74addaa0e41490cbaf2abd313a764c96df57b05d | /Mathlib/Lean3Lib/data/vector.lean | 484eba68810cc5a6bdd408004e013a1dd42910e4 | [] | 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,937 | 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
Tuples are lists of a fixed size.
It is implemented as a subtype.
-/
import Mathlib.PrePort
import Mathlib.Lean3Lib.init.data.list.default
import Mathlib.Lean3... |
f1429734a89da99edff76cae1cc5dc13d3eb2075 | 8cae430f0a71442d02dbb1cbb14073b31048e4b0 | /test/finish4.lean | 8b75d9f0a874b8436e0e3391c073bfa6bd8f2b0d | [
"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 | 1,570 | lean | /-
Copyright (c) 2019 Jesse Michael Han. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Author(s): Jesse Michael Han
Tests for `finish using [...]`
-/
import tactic.finish
import algebra.order.ring.defs
section list_rev
open list
variable {α : Type*}
def append1 (a : α) : l... |
3581a2ed23fa4c76c4d55f6f078dabdca3b1b22f | bb31430994044506fa42fd667e2d556327e18dfe | /src/order/atoms/finite.lean | 2a19d6b129053669b268a47c891869957db3fb64 | [
"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 | 2,417 | lean | /-
Copyright (c) 2020 Aaron Anderson. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Aaron Anderson
-/
import data.set.finite
import order.atoms
/-!
# Atoms, Coatoms, Simple Lattices, and Finiteness
This module contains some results on atoms and simple lattices in th... |
3def86e6d17b4d0bd6930dfbd11916f757af763e | c3f2fcd060adfa2ca29f924839d2d925e8f2c685 | /library/data/int/basic.lean | 9c4db64f16502f35910e78487adb69201cf9a0a4 | [
"Apache-2.0"
] | permissive | respu/lean | 6582d19a2f2838a28ecd2b3c6f81c32d07b5341d | 8c76419c60b63d0d9f7bc04ebb0b99812d0ec654 | refs/heads/master | 1,610,882,451,231 | 1,427,747,084,000 | 1,427,747,429,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 35,517 | lean | /-
Copyright (c) 2014 Floris van Doorn. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Module: int.basic
Authors: Floris van Doorn, Jeremy Avigad
The integers, with addition, multiplication, and subtraction. The representation of the integers is
chosen to compute efficiently.... |
7ee2a7dcc33890905758bb7e3f65278b51856454 | bdb33f8b7ea65f7705fc342a178508e2722eb851 | /data/finsupp.lean | b142865eb4eaff307efa0fe182d97ebedb7fbf6b | [
"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 | 27,262 | 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
Type of functions with finite support.
Functions with finite support provide the basis for the following concrete instances:
* ℕ →₀ α: Polynomials (where α is a ring... |
7ffd48e89375be6c9528a4cc767dc0a70382641b | 2cf781335f4a6706b7452ab07ce323201e2e101f | /lean/deps/galois_stdlib/src/galois/data/nat/repr_lemmas.lean | 1e57125fa9f0d54355f868a875100e55b304ee2b | [
"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 | 2,922 | lean | -- Lemmas
import galois.data.list.nth_le
namespace nat
/-- Show that nat.to_digits never returns empty list. -/
theorem to_digits_ne_nil (base:ℕ) (x:ℕ) : nat.to_digits base x ≠ list.nil :=
begin
cases x,
case nat.zero : { simp [nat.to_digits], },
case nat.succ : x {
simp [nat.to_digits],
cases (nat.to_... |
ec940f22f6995a93732d10f0f22439fd3c9eb4b8 | 947b78d97130d56365ae2ec264df196ce769371a | /src/Lean/Meta/Tactic/Generalize.lean | 860f2b44d5fd618e3e091f96163acb00eeba88a3 | [
"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 | 1,056 | 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.KAbstract
import Lean.Meta.Tactic.Util
namespace Lean
namespace Meta
def generalize (mvarId : MVarId) (e : Expr) (x : Name) (failIfNotInT... |
82fb3658b3e13b438eed13df7193f7b2449bc09e | 0c6b99c0daded009943e570c13367c8cc7d3bcae | /chapter12.lean | 238dab51ca543ceeed972e69da597cae88a0d551 | [] | no_license | TateKennington/logic-and-proof-exercises | e3c5c5b12b6238b47b0c5acf8717923bd471a535 | acca8882026e7b643453eb096d3021cd043005bd | refs/heads/main | 1,687,638,489,616 | 1,626,858,474,000 | 1,626,858,474,000 | 371,871,374 | 4 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 2,334 | lean | import data.set
open set
section
variable U: Type
variables A B C: set U
example : ∀ x, x ∈ A ∩ C → x ∈ A ∪ B :=
assume x,
assume :x ∈ A ∩ C,
have x ∈ A, from and.left this,
show x ∈ A ∪ B, from or.inl this
example : ∀ x, x ∈ (A ∪ B)ᶜ → x ∈ Aᶜ :=
assume x,
assume :x ∈ (A ∪ B)ᶜ,
h... |
2dbe22801362a7bfa586bc27fdc2b6670b5287cd | b82c5bb4c3b618c23ba67764bc3e93f4999a1a39 | /src/formal_ml/pac_bounds.lean | a617bb5b5071a4743eaf2482bad9b96fe7ec3240 | [
"Apache-2.0"
] | permissive | nouretienne/formal-ml | 83c4261016955bf9bcb55bd32b4f2621b44163e0 | 40b6da3b6e875f47412d50c7cd97936cb5091a2b | refs/heads/master | 1,671,216,448,724 | 1,600,472,285,000 | 1,600,472,285,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 19,079 | lean | /-
Copyright 2020 Google LLC
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
di... |
8b0328612edd69a44a2f6850793cebce0de1f5dc | 8cae430f0a71442d02dbb1cbb14073b31048e4b0 | /src/category_theory/concrete_category/reflects_isomorphisms.lean | c604560f6369f1a84cb9fb1653eda311e1899000 | [
"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 | 1,568 | 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 category_theory.concrete_category.basic
import category_theory.functor.reflects_isomorphisms
/-!
> THIS FILE IS SYNCHRONIZED WITH MATHLIB4.
> Any changes to t... |
417f7034dff2dc3cb2e269fdddf03e619e0b7153 | ad0c7d243dc1bd563419e2767ed42fb323d7beea | /group_theory/free_abelian_group.lean | ec62d2601a5ae39085db707f057abfca3caccf55 | [
"Apache-2.0"
] | permissive | sebzim4500/mathlib | e0b5a63b1655f910dee30badf09bd7e191d3cf30 | 6997cafbd3a7325af5cb318561768c316ceb7757 | refs/heads/master | 1,585,549,958,618 | 1,538,221,723,000 | 1,538,221,723,000 | 150,869,076 | 0 | 0 | Apache-2.0 | 1,538,229,323,000 | 1,538,229,323,000 | null | UTF-8 | Lean | false | false | 3,831 | lean | /-
Copyright (c) 2018 Kenny Lau. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Kenny Lau
Free abelian groups as abelianization of free groups.
-/
import group_theory.free_group
import group_theory.abelianization
universes u v
variables (α : Type u)
... |
ef2a3b1ae7b5428eab15d30e1bebe84e52552aa3 | 618003631150032a5676f229d13a079ac875ff77 | /src/category_theory/limits/connected.lean | 5740cdefdd09783a94f2418f3ec1d32d87eeff77 | [
"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 | 3,719 | lean | /-
Copyright (c) 2020 Bhavik Mehta. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Bhavik Mehta
-/
import category_theory.limits.shapes.pullbacks
import category_theory.limits.shapes.wide_pullbacks
import category_theory.limits.shapes.binary_products
import category_th... |
10e6c69419ae2621be5c25c0b7e72056b3e2a9e8 | 74addaa0e41490cbaf2abd313a764c96df57b05d | /Mathlib/algebra/continued_fractions/default.lean | b6525efde3b31d3286e43407eeb7e319efbe9bf5 | [] | 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 | 513 | lean | /-
Copyright (c) 2019 Kevin Kappelmann. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Kevin Kappelmann
-/
import Mathlib.PrePort
import Mathlib.Lean3Lib.init.default
import Mathlib.algebra.continued_fractions.continuants_recurrence
import Mathlib.algebra.continued_fra... |
24b06011037373828ec48e6b3e1c9ad831273cdc | 995658a556256a6694fe5c98b91f7f6f6c11bb77 | /src/riemann_zeta.lean | 90e612ec4e8ed200793eb5c6cbcb4f2c4b22f565 | [
"MIT"
] | permissive | bhgomes/lean-riemann-hypothesis | d803047f27ea21f03414bbfb59395608ed0bc05f | c36b744a2dc4a7a50c7de770096bd9a051f42ab9 | refs/heads/master | 1,678,533,614,591 | 1,614,755,910,000 | 1,614,755,910,000 | 275,204,877 | 16 | 3 | null | null | null | null | UTF-8 | Lean | false | false | 8,207 | lean | /- ------------------------------------------------------------------------- -|
| @project: riemann_hypothesis |
| @file: riemann_zeta.lean |
| @authors: Brandon H. Gomes, Alex Kontorovich |
... |
6163d30418142c13575d27a5e4e4cc6d5d4eb77c | c777c32c8e484e195053731103c5e52af26a25d1 | /src/algebraic_topology/dold_kan/faces.lean | ae2b2f6e8fff085dab25fdb8639d4ef54da5839b | [
"Apache-2.0"
] | permissive | kbuzzard/mathlib | 2ff9e85dfe2a46f4b291927f983afec17e946eb8 | 58537299e922f9c77df76cb613910914a479c1f7 | refs/heads/master | 1,685,313,702,744 | 1,683,974,212,000 | 1,683,974,212,000 | 128,185,277 | 1 | 0 | null | 1,522,920,600,000 | 1,522,920,600,000 | null | UTF-8 | Lean | false | false | 9,320 | lean | /-
Copyright (c) 2022 Joël Riou. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Joël Riou
-/
import algebraic_topology.dold_kan.homotopies
import tactic.ring_exp
/-!
# Study of face maps for the Dold-Kan correspondence
> THIS FILE IS SYNCHRONIZED WITH MATHLIB4.
> A... |
92dafaaaeb54c8fb03650533f68d1b0006f0ad9b | 6432ea7a083ff6ba21ea17af9ee47b9c371760f7 | /tests/lean/run/1558.lean | b2b7f6aa28b7a254599bcfd2314f6e51265a6d36 | [
"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 | 87 | lean | example : (λ (u : Nat) => u + 0) = id :=by
conv =>
lhs
intro u
change u
|
8e6e1ae8f34a2e72ddefb1f51a9979df78cf30a7 | 302c785c90d40ad3d6be43d33bc6a558354cc2cf | /src/data/nat/basic.lean | f33a556e02e7742c3522f898e29334a90dee0154 | [
"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 | 68,052 | lean | /-
Copyright (c) 2014 Floris van Doorn (c) 2016 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Floris van Doorn, Leonardo de Moura, Jeremy Avigad, Mario Carneiro
-/
import algebra.group_power.basic
import algebra.order_functions
import algebra.or... |
07c5463ea28bb5ad16f969c60637c8ca816d53a0 | f4bff2062c030df03d65e8b69c88f79b63a359d8 | /src/game/sets/sets_level05.lean | 23b05acaf54c5d7a96846b547fabea9a216b3f0d | [
"Apache-2.0"
] | permissive | adastra7470/real-number-game | 776606961f52db0eb824555ed2f8e16f92216ea3 | f9dcb7d9255a79b57e62038228a23346c2dc301b | refs/heads/master | 1,669,221,575,893 | 1,594,669,800,000 | 1,594,669,800,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 1,304 | lean | import game.sets.sets_level04 -- hide
namespace xena -- hide
open_locale classical -- hide
variable X : Type --hide
/-
# Chapter 1 : Sets
## Level 5
-/
/-
If `h : ∀ (x : X), x ∈ A → x ∈ B` then `h` is a function which takes
a term `x` of type `X` as input, and also a proof that `x ∈ A`, and outputs a
proof that ... |
4dac99b537f0a050b84b9312257a3c0705151c98 | cabd1ea95170493667c024ef2045eb86d981b133 | /src/super/subsumption.lean | 90be03a6747496200fb6efe485e0109df6b4e929 | [] | no_license | semorrison/super | 31db4b5aa5ef4c2313dc5803b8c79a95f809815b | 0c6c03ba9c7470f801eb4d055294f424ff090308 | refs/heads/master | 1,630,272,140,541 | 1,511,054,739,000 | 1,511,054,756,000 | 114,317,807 | 0 | 0 | null | 1,513,304,776,000 | 1,513,304,775,000 | null | UTF-8 | Lean | false | false | 3,435 | lean | /-
Copyright (c) 2017 Gabriel Ebner. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Gabriel Ebner
-/
import .clause .prover_state
open tactic monad native
namespace super
private meta def try_subsume_core : list clause.literal → list clause.literal → tactic unit
| []... |
6cdec2ece0cdd92dd698d12d7314ba8d590bf87a | 624f6f2ae8b3b1adc5f8f67a365c51d5126be45a | /tmp/eqns/depelim.lean | 518aed35bfa334d9c640fcd41d873a70c5ac34a0 | [
"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 | 3,465 | lean | import Init.Lean
open Lean
inductive Pattern
| Inaccessible (e : Expr)
| Var (fvarId : FVarId)
| Ctor (fields : List Pattern)
| Val (e : Expr)
| ArrayLit (xs : List Pattern)
structure AltLHS :=
(fvarIds : List FVarId) -- free variables used in the patterns
(patterns : List Pattern) --... |
dde40a1d35c298ca9414dd3ac641dcfc066e5568 | d9d511f37a523cd7659d6f573f990e2a0af93c6f | /src/linear_algebra/matrix/to_lin.lean | cff2e69b238ff8393dd250443b9728ad1398528a | [
"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 | 27,844 | 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, Patrick Massot, Casper Putz, Anne Baanen
-/
import data.matrix.block
import linear_algebra.matrix.finite_dimensional
import linear_algebra.std_basis
import ring_theory.... |
6694564ffeea749c9eeb1eca51c5d3b5d9ee09cb | e6b113af18eebb6e73c60e14d13ae096c05fe343 | /tactics.lean | f6d9d728fd84324176a70397ca5c72c01f719387 | [] | no_license | bmsherman/lean-tutorial | 3889f1a4e7a16692759a6719c0e81c1cec9d603e | fe58a887b32e5f1e305e1e7a94766cd3585f01e2 | refs/heads/master | 1,621,098,141,939 | 1,508,513,676,000 | 1,508,513,676,000 | 107,567,061 | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 1,171 | lean | open tactic lean lean.parser
open interactive interactive.types expr
local postfix *:9001 := many
namespace tactic.interactive
universes u v
def congr_arg_f_equal {A : Sort u} {B : Sort v} {f f' : A → B}
{x x' : A} : f = f' → x = x' → f x = f' x'
:= begin
intros H, induction H, intros H, induction H, reflexivity
... |
9aa15484f26f67228cd8a4c226b0639ec6214d99 | 8b9f17008684d796c8022dab552e42f0cb6fb347 | /tests/lean/hott/get_tac1.hlean | b404277e95130d98069c2007d31dc7981b2b2120 | [
"Apache-2.0"
] | permissive | chubbymaggie/lean | 0d06ae25f9dd396306fb02190e89422ea94afd7b | d2c7b5c31928c98f545b16420d37842c43b4ae9a | refs/heads/master | 1,611,313,622,901 | 1,430,266,839,000 | 1,430,267,083,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 204 | hlean | open eq
definition concat_pV_p {A : Type} {x y z : A} (p : x = z) (q : y = z) : (p ⬝ q⁻¹) ⬝ q = p :=
begin
generalize p,
apply (eq.rec_on q),
intro p,
apply (eq.rec_on p),
apply idp
end
|
8fdcdc48e7df861b4b6ccca38e0c35dfc6e27d8a | c3f2fcd060adfa2ca29f924839d2d925e8f2c685 | /tests/lean/hott/bug_struct_level.hlean | a6005466d118d8837e744aa227f845f9e250c69a | [
"Apache-2.0"
] | permissive | respu/lean | 6582d19a2f2838a28ecd2b3c6f81c32d07b5341d | 8c76419c60b63d0d9f7bc04ebb0b99812d0ec654 | refs/heads/master | 1,610,882,451,231 | 1,427,747,084,000 | 1,427,747,429,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 1,190 | hlean | import algebra.precategory.basic
open category
context
parameter {D₀ : Type}
parameter (C : precategory D₀)
parameter (D₂ : Π ⦃a b c d : D₀⦄ (f : hom a b) (g : hom c d) (h : hom a c) (i : hom b d), Type)
attribute comp [reducible]
definition comp₁_type [reducible] : Type :=
Π ⦃a b c₁ d₁ c₂ d₂ : D₀⦄
... |
75da0c633e3d091a357e8713ada1fbb84e89ed5d | e151e9053bfd6d71740066474fc500a087837323 | /src/hott/types/bool.lean | 7e1192571b56f3b531753566a10e48024df2922c | [
"Apache-2.0"
] | permissive | daniel-carranza/hott3 | 15bac2d90589dbb952ef15e74b2837722491963d | 913811e8a1371d3a5751d7d32ff9dec8aa6815d9 | refs/heads/master | 1,610,091,349,670 | 1,596,222,336,000 | 1,596,222,336,000 | 241,957,822 | 0 | 0 | Apache-2.0 | 1,582,222,839,000 | 1,582,222,838,000 | null | UTF-8 | Lean | false | false | 4,721 | lean | /-
Copyright (c) 2014 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Author: Leonardo de Moura, Floris van Doorn
Partially ported from the standard library
-/
import ..init
universes u v w
hott_theory
namespace hott
open decidable
namespace bool
-- ... |
1386d05ef262d19137149ed78ffb28affb3076c6 | aa2345b30d710f7e75f13157a35845ee6d48c017 | /category_theory/natural_isomorphism.lean | 2ae323cf1cbf8194324e96365ed972d2c536a025 | [
"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 | 5,545 | lean | -- Copyright (c) 2017 Scott Morrison. All rights reserved.
-- Released under Apache 2.0 license as described in the file LICENSE.
-- Authors: Tim Baumann, Stephen Morgan, Scott Morrison
import category_theory.isomorphism
import category_theory.functor_category
open category_theory
namespace category_theory.nat_iso
... |
2666a543fbcd96984d0523654a9535a6ab970e9f | 367134ba5a65885e863bdc4507601606690974c1 | /src/algebra/ordered_group.lean | 5ab67f21adcd61526919fb9cdb1c2cce03a81378 | [
"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 | 33,032 | 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.ordered_monoid
/-!
# Ordered groups
This file develops the basics of ordered groups.
## Implementat... |
0695c49551b9a0ab92517449a66e05a6ec4bac53 | 9dd3f3912f7321eb58ee9aa8f21778ad6221f87c | /tests/lean/hex_char.lean | 215f85e8334c9515a0b9b2ac90d557cecd430771 | [
"Apache-2.0"
] | permissive | bre7k30/lean | de893411bcfa7b3c5572e61b9e1c52951b310aa4 | 5a924699d076dab1bd5af23a8f910b433e598d7a | refs/heads/master | 1,610,900,145,817 | 1,488,006,845,000 | 1,488,006,845,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 48 | lean | vm_eval #"\x41"
vm_eval #"\x42"
vm_eval #"\x43"
|
1bb621742e4afefda1397d883fe2921f4332b947 | b7f22e51856f4989b970961f794f1c435f9b8f78 | /tests/lean/run/find_cmd.lean | 372c26b87c87622d6fd8ecde1396329ee1b96cbe | [
"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 | 290 | lean | import data.nat data.int
open nat
find_decl _ < succ _, +imp, -le
find_decl _ < _ + _
find_decl _ = succ _
find_decl _ < succ _, +pos
find_decl zero < succ _, pos
set_option find_decl.expensive true
-- Now, nat.zero will match 0 (i.e., (of_num num.zero))
find_decl zero < succ _, pos
|
233f2c1b7f77ba0ec4b66f5873f06fac0fae0ba5 | bb31430994044506fa42fd667e2d556327e18dfe | /src/order/well_founded.lean | 46f5f29ab47da0f0312a1e9b9328d8245938dfc2 | [
"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 | 10,709 | 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
-/
import tactic.by_contra
import data.set.image
/-!
# Well-founded relations
> THIS FILE IS SYNCHRONIZED WITH MATHLIB4.
> Any changes to this file requi... |
f737c2190396f7306ac72f86f598b2c16daad4b5 | 7cef822f3b952965621309e88eadf618da0c8ae9 | /src/tactic/apply_fun.lean | 08203b529cd9896d2e35e0f184d7ddecbe0d2040 | [
"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 | 2,240 | 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 tactic.monotonicity
import order.basic
open tactic interactive (parse) interactive (loc.ns)
interactive.types (texpr location) lean.parser (tk)
local p... |
973496d37fd3bb6250ee2e67d366f38799fec2de | 6432ea7a083ff6ba21ea17af9ee47b9c371760f7 | /tests/lean/run/945.lean | 26f055711aa589ef2754fa0c5b3add436201a433 | [
"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 | 109 | lean | @[simp] def iota : Nat → List Nat
| 0 => []
| m@(n+1) => m :: iota n
attribute [simp] List.iota
|
439aef73d99b18f25450fb74e119c2e9e73739e7 | ea5678cc400c34ff95b661fa26d15024e27ea8cd | /group_expr.lean | a9c6302816ebd27c1a76e621058c24b398af4f8f | [] | no_license | ChrisHughes24/leanstuff | dca0b5349c3ed893e8792ffbd98cbcadaff20411 | 9efa85f72efaccd1d540385952a6acc18fce8687 | refs/heads/master | 1,654,883,241,759 | 1,652,873,885,000 | 1,652,873,885,000 | 134,599,537 | 1 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 9,726 | lean | import algebra.group.basic data.buffer
universe u
@[derive decidable_eq, derive has_reflect] inductive group_term : Type
| of : ℕ → group_term
| one : group_term
| mul : group_term → group_term → group_term
| inv : group_term → group_term
namespace group_term
instance : has_one group_term := ⟨group_term.one⟩
instan... |
cffdb6c263ef2434bfd57442ee9b5168ca23aec6 | 74addaa0e41490cbaf2abd313a764c96df57b05d | /Mathlib/control/applicative.lean | 330b4a2530e0a4731ec8fdabc3a3fc2ee85c9709 | [] | 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,189 | lean | /-
Copyright (c) 2017 Simon Hudon. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Author: Simon Hudon
Instances for identity and composition functors
-/
import Mathlib.PrePort
import Mathlib.Lean3Lib.init.default
import Mathlib.control.functor
import Mathlib.algebra.group.basi... |
a272c7fd1c7c03d32cc0a5362d4071002b44dd79 | 8b9f17008684d796c8022dab552e42f0cb6fb347 | /tests/lean/run/rewrite10.lean | a6b0e7028fd9caaea81a788eae1d78b9cb9b9672 | [
"Apache-2.0"
] | permissive | chubbymaggie/lean | 0d06ae25f9dd396306fb02190e89422ea94afd7b | d2c7b5c31928c98f545b16420d37842c43b4ae9a | refs/heads/master | 1,611,313,622,901 | 1,430,266,839,000 | 1,430,267,083,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 802 | lean | import data.nat
open nat
section
variables (a b c d e : nat)
theorem T (H1 : a = b) (H2 : b = c + 1) (H3 : c = d) (H4 : e = 1 + d) : a = e :=
by rewrite [H1, H2, H3, add.comm, -H4]
end
example (x y : ℕ) : (x + y) * (x + y) = x * x + y * x + x * y + y * y :=
by rewrite [*mul.left_distrib, *mul.right_distrib, -a... |
529cde339fe27959bb025c19d5e204a9daa92c86 | e0f9ba56b7fedc16ef8697f6caeef5898b435143 | /src/algebra/invertible.lean | 1e0efc7bd47e0c87ce780ac83b53c8961143e8e2 | [
"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 | 6,526 | lean | /-
Copyright (c) 2020 Anne Baanen. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Author: Anne Baanen
A typeclass for the two-sided multiplicative inverse.
-/
import algebra.char_zero
import tactic.norm_cast
/-!
# Invertible elements
This file defines a typeclass `invertibl... |
1a2ebc8ec7b442589afeb6b4c63e7984c0b39ffd | 5e3548e65f2c037cb94cd5524c90c623fbd6d46a | /src_icannos_totilas/aops/1978-USAMO-Problem_1.lean | 1fc88237aa6d7375f0f6db4cd1f606c48813b491 | [] | no_license | ahayat16/lean_exos | d4f08c30adb601a06511a71b5ffb4d22d12ef77f | 682f2552d5b04a8c8eb9e4ab15f875a91b03845c | refs/heads/main | 1,693,101,073,585 | 1,636,479,336,000 | 1,636,479,336,000 | 415,000,441 | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 146 | lean | import data.real.basic
theorem USAMO_Problem_1_1978 (a b c d e : real) :
a+b+c+d+e = 8 ∧ a^2+b^2+c^2+d^2+e^2=16 →
e ≤ 16/5 := sorry
|
aa186510c786b2151e46893346d4e2f813b9034f | 44023683920a51f2416cf51eeab3fc51c3ff0765 | /tests/lean/io_process_echo.lean | 0c427f4f8cd60dfabb995f1ea5a0ffc0443c5786 | [
"Apache-2.0"
] | permissive | pirocks/lean | e6e3e3fd20c5e7877f7efc3b50e5e20271e8d0cf | 368f17d0b1392a5a72c9eb974f15b14462cc1475 | refs/heads/master | 1,620,671,385,768 | 1,516,152,564,000 | 1,516,152,564,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 176 | lean | import system.io
variable [io.interface]
def main : io unit := do
handle ← io.cmd {cmd := "echo", args := ["Hello World!"]},
io.put_str handle,
return ()
#eval main
|
1f9730c08d917a9664fe772b75e5d6012b391905 | 4d2583807a5ac6caaffd3d7a5f646d61ca85d532 | /src/data/sigma/basic.lean | 8b6ea5ab9e0f4bbb5375eca61ef3a42cc062939a | [
"Apache-2.0"
] | permissive | AntoineChambert-Loir/mathlib | 64aabb896129885f12296a799818061bc90da1ff | 07be904260ab6e36a5769680b6012f03a4727134 | refs/heads/master | 1,693,187,631,771 | 1,636,719,886,000 | 1,636,719,886,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 8,566 | 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 tactic.lint
import tactic.ext
/-!
# Sigma types
This file proves basic results about sigma types.
A sigma type is a dependent pair type. Like `α × β` but wh... |
9c1e6c3219d494f2ccbb2a7fc8b100570eac37ba | 8cae430f0a71442d02dbb1cbb14073b31048e4b0 | /src/linear_algebra/dimension.lean | f9ac316b7a86aba1d8e6fbfab2e52f93bf4e726a | [
"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 | 56,852 | 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, Sander Dahmen, Scott Morrison
-/
import algebra.module.big_operators
import linear_algebra.dfinsupp
import linear_algebra.free_module.basic
import linea... |
519012a7ff4e443cac8432470b65c3bfb85303e4 | 8cae430f0a71442d02dbb1cbb14073b31048e4b0 | /src/algebra/order/monoid/cancel/basic.lean | 27fc04ea1e8368179e7d718b05c1d93d30cfaa67 | [
"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,347 | 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.order.monoid.basic
import algebra.order.monoid.cancel.defs
/-!
# Basic results on ordered cancellativ... |
0a0c8d6a51a4757af489553c972f6b9a6ea84b89 | cc060cf567f81c404a13ee79bf21f2e720fa6db0 | /lean/20170509-rewrite_once_tactics.lean | bf6d8abfc8b0d33a5b882958bbf2e02da8434fd3 | [
"Apache-2.0"
] | permissive | semorrison/proof | cf0a8c6957153bdb206fd5d5a762a75958a82bca | 5ee398aa239a379a431190edbb6022b1a0aa2c70 | refs/heads/master | 1,610,414,502,842 | 1,518,696,851,000 | 1,518,696,851,000 | 78,375,937 | 2 | 1 | null | null | null | null | UTF-8 | Lean | false | false | 616 | lean | meta def rwonce : tactic unit :=
do r ← tactic.to_expr `(FunctorComposition.associativity),
a ← tactic.to_expr `(associator),
tactic.rewrite_at_core reducible tt tt (occurrences.pos [2]) tt r a
meta def rwonce_2 : tactic unit :=
do r ← tactic.to_expr `(switch_twice_is_the_identity),
a ← tactic.to_expr `(switc... |
fe694ac9b9dba25a86da6f210dd03349a3e735cc | a0e23cfdd129a671bf3154ee1a8a3a72bf4c7940 | /src/Lean/Elab/Deriving/FromToJson.lean | ca3d823284483c7b4ddc700234f485d781abd6e2 | [
"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 | 8,553 | lean | /-
Copyright (c) 2020 Sebastian Ullrich. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Sebastian Ullrich, Dany Fabian
-/
import Lean.Meta.Transform
import Lean.Elab.Deriving.Basic
import Lean.Elab.Deriving.Util
import Lean.Data.Json.FromToJson
namespace Lean.Elab.Der... |
580a7285892b63f09ddcb9632d4648dcbfeb3d82 | 4d2583807a5ac6caaffd3d7a5f646d61ca85d532 | /src/set_theory/surreal/dyadic.lean | e7e182a1da40186f19da855af5cc735791dbf597 | [
"Apache-2.0"
] | permissive | AntoineChambert-Loir/mathlib | 64aabb896129885f12296a799818061bc90da1ff | 07be904260ab6e36a5769680b6012f03a4727134 | refs/heads/master | 1,693,187,631,771 | 1,636,719,886,000 | 1,636,719,886,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 8,436 | lean | /-
Copyright (c) 2021 Apurva Nakade. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Apurva Nakade
-/
import set_theory.surreal.basic
import ring_theory.localization
/-!
# Dyadic numbers
Dyadic numbers are obtained by localizing ℤ away from 2. They are the initial obje... |
bff0ef8da0e8b34729d3701cb28843d753d9583e | bbecf0f1968d1fba4124103e4f6b55251d08e9c4 | /src/data/pnat/interval.lean | 92090a77ac94ecbe9b4fccf6f056ca6740365ef2 | [
"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 | 2,500 | 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.nat.interval
/-!
# Finite intervals of positive naturals
This file proves that `ℕ+` is a `locally_finite_order` and calculates the cardinality of its
interv... |
c9d722e8818686e285041e0f820e641e27e16e40 | 8cae430f0a71442d02dbb1cbb14073b31048e4b0 | /src/topology/sheaves/limits.lean | 79f129cd7ce4b2962ed8df9e86ed0e28b5ef7b75 | [
"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 | 1,860 | lean | /-
Copyright (c) 2020 Scott Morrison. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Scott Morrison
-/
import topology.sheaves.sheaf
import category_theory.sites.limits
import category_theory.limits.functor_category
/-!
# Presheaves in `C` have limits and colimits whe... |
ca1f9c34099723570bf9ccefc844ffbc9674239c | fa02ed5a3c9c0adee3c26887a16855e7841c668b | /test/norm_num.lean | 326c50d3785a1b8844f950532cca075d477812da | [
"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 | 12,549 | lean | /-
Copyright (c) 2017 Simon Hudon All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Simon Hudon, Mario Carneiro
Tests for norm_num
-/
import tactic.norm_num
import data.complex.basic
import data.nat.prime
-- constant real : Type
-- notation `ℝ` := real
-- @[instance] c... |
53fc192933acca596be895b49575408a1be47dfb | d1a52c3f208fa42c41df8278c3d280f075eb020c | /tests/lean/autoBoundImplicits2.lean | 1e5c63b236ec55809054aa39f19d4458e23e1de9 | [
"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 | 1,057 | lean | def f [Add α] (a : α) : α :=
a + a
def BV (n : Nat) := { a : Array Bool // a.size = n }
def allZero (bv : BV n) : Prop :=
∀ i, i < n → bv.val[i] = false
def foo (b : BV n) (h : allZero b) : BV n :=
b
def optbind (x : Option α) (f : α → Option β) : Option β :=
match x with
| none => none
| some a => f ... |
d5b962ffdeaedf4c23cf91035af4cffe3746af1f | fffbc47930dc6615e66ece42324ce57a21d5b64b | /src/data/nat/basic.lean | 3d6eb7b060ec93332a93fd5dbce90468620aa614 | [
"Apache-2.0"
] | permissive | skbaek/mathlib | 3caae8ae413c66862293a95fd2fbada3647b1228 | f25340175631cdc85ad768a262433f968d0d6450 | refs/heads/master | 1,588,130,123,636 | 1,558,287,609,000 | 1,558,287,609,000 | 160,935,713 | 0 | 0 | Apache-2.0 | 1,544,271,146,000 | 1,544,271,146,000 | null | UTF-8 | Lean | false | false | 44,715 | lean | /-
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, Mario Carneiro
Basic operations on the natural numbers.
-/
import logic.basic algebra.ordered_ring data.option.basic
universes u... |
934d6cbb52b6b0966e76149e2808871d9171ae9d | 69d4931b605e11ca61881fc4f66db50a0a875e39 | /src/topology/metric_space/completion.lean | ecc664200429b69c4d3f7d9ddf7f1b8cd8b5a219 | [
"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 | 8,617 | lean | /-
Copyright (c) 2019 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 topology.uniform_space.completion
import topology.metric_space.isometry
/-!
# The completion of a metric space
Completion of uniform spaces are already... |
6c20e6950395ed90a1ea5a01fdd8c6fb4db42a96 | 46125763b4dbf50619e8846a1371029346f4c3db | /src/algebra/big_operators.lean | 67e739252d186a19baa3032ac027f777490a16e0 | [
"Apache-2.0"
] | permissive | thjread/mathlib | a9d97612cedc2c3101060737233df15abcdb9eb1 | 7cffe2520a5518bba19227a107078d83fa725ddc | refs/heads/master | 1,615,637,696,376 | 1,583,953,063,000 | 1,583,953,063,000 | 246,680,271 | 0 | 0 | Apache-2.0 | 1,583,960,875,000 | 1,583,960,875,000 | null | UTF-8 | Lean | false | false | 39,681 | 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
Some big operators for lists and finite sets.
-/
import tactic.tauto data.list.defs data.finset data.nat.enat
universes u v w
variables {α : Type u} {β : Type v} {γ : ... |
e3543093b88c3bb14d47bb0eb039b44179f48ec6 | 94e33a31faa76775069b071adea97e86e218a8ee | /src/data/list/basic.lean | 8697d6a626d6cd304f8de8762afef29879b1165c | [
"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 | 152,292 | lean | /-
Copyright (c) 2014 Parikshit Khanna. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Parikshit Khanna, Jeremy Avigad, Leonardo de Moura, Floris van Doorn, Mario Carneiro
-/
import data.nat.basic
/-!
# Basic properties of lists
-/
open function nat (hiding one_pos)
... |
ad58a10b51952122fd85d42853e4af52b0755abc | 74addaa0e41490cbaf2abd313a764c96df57b05d | /Mathlib/category_theory/abelian/basic.lean | 10ed1c0853eeef6a113aff21e269798db8781f45 | [] | 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 | 19,836 | 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 Mathlib.PrePort
import Mathlib.Lean3Lib.init.default
import Mathlib.category_theory.limits.constructions.pullbacks
import Mathlib.category_theory.limits.shapes.b... |
d5e8d965d842446f38cb57ada66f30b867ba99b4 | 6432ea7a083ff6ba21ea17af9ee47b9c371760f7 | /tests/playground/frontend1.lean | be8961cb9a9645fb3416f636b798ee4c46265239 | [
"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 | 342 | lean | import init.lean.elaborator
open Lean
def main (xs : List String) : IO Unit :=
do initSearchPath "../../library:.";
-- path ← IO.getEnv "LEAN_PATH";
-- IO.println path;
contents ← IO.readTextFile xs.head;
(env, messages) ← Elab.testFrontend contents xs.head;
messages.toList.mfor $ fun msg => IO.println ... |
ef1bcaeddaac80268fd3d1ae4648b2ad53a3f011 | f3849be5d845a1cb97680f0bbbe03b85518312f0 | /old_library/init/num.lean | 9a9194cb04fcea96e67137d485d002db2e01becf | [
"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 | 2,058 | lean | /-
Copyright (c) 2014 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Leonardo de Moura
-/
prelude
import init.bool
namespace pos_num
protected definition mul (a b : pos_num) : pos_num :=
pos_num.rec_on a
b
(λ n r, bit0 r + b)
(λ ... |
58d360f50d95e4365b75bc8b0f8372fddd87e984 | fcf3ffa92a3847189ca669cb18b34ef6b2ec2859 | /src/world5/level2.lean | f6133c12b4825f23c889127dbdbda5d2d8a34ae7 | [
"Apache-2.0"
] | permissive | nomoid/lean-proofs | 4a80a97888699dee42b092b7b959b22d9aa0c066 | b9f03a24623d1a1d111d6c2bbf53c617e2596d6a | refs/heads/master | 1,674,955,317,080 | 1,607,475,706,000 | 1,607,475,706,000 | 314,104,281 | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 157 | lean | import mynat.definition
import mynat.add
import mynat.mul
namespace mynat
example : mynat → mynat :=
begin
intro n,
exact 3*n + 2,
end
end mynat |
61a4e38d6105a64ad7a25006912996cd9cea4e7e | 5ae26df177f810c5006841e9c73dc56e01b978d7 | /src/algebra/ordered_ring.lean | e8d7a1031867af59a6dc0dff305806fa387a01a1 | [
"Apache-2.0"
] | permissive | ChrisHughes24/mathlib | 98322577c460bc6b1fe5c21f42ce33ad1c3e5558 | a2a867e827c2a6702beb9efc2b9282bd801d5f9a | refs/heads/master | 1,583,848,251,477 | 1,565,164,247,000 | 1,565,164,247,000 | 129,409,993 | 0 | 1 | Apache-2.0 | 1,565,164,817,000 | 1,523,628,059,000 | Lean | UTF-8 | Lean | false | false | 18,067 | lean | /-
Copyright (c) 2017 Mario Carneiro. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Mario Carneiro
-/
import tactic.split_ifs order.basic algebra.order algebra.ordered_group algebra.ring data.nat.cast
universe u
variable {α : Type u}
-- TODO: this is necessary addit... |
3a1b27aa6dc6c7a588e011a8b12179842aa9e61a | 02005f45e00c7ecf2c8ca5db60251bd1e9c860b5 | /src/data/qpf/multivariate/basic.lean | 8ebf6fbe555a91c0450d05692a681f2eb99806fe | [
"Apache-2.0"
] | permissive | anthony2698/mathlib | 03cd69fe5c280b0916f6df2d07c614c8e1efe890 | 407615e05814e98b24b2ff322b14e8e3eb5e5d67 | refs/heads/master | 1,678,792,774,873 | 1,614,371,563,000 | 1,614,371,563,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 8,751 | lean | /-
Copyright (c) 2018 Jeremy Avigad. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Author: Jeremy Avigad, Simon Hudon
-/
import data.pfunctor.multivariate.basic
universe u
/-!
# Multivariate quotients of polynomial functors.
Basic definition of multivariate QPF. QPFs form a ... |
b4a15ec56dde25a8b06c2e3afec143522947d482 | 22e97a5d648fc451e25a06c668dc03ac7ed7bc25 | /src/algebra/ordered_field.lean | cd8d7ff562514c2d7a3b050bca64324d57e062a3 | [
"Apache-2.0"
] | permissive | keeferrowan/mathlib | f2818da875dbc7780830d09bd4c526b0764a4e50 | aad2dfc40e8e6a7e258287a7c1580318e865817e | refs/heads/master | 1,661,736,426,952 | 1,590,438,032,000 | 1,590,438,032,000 | 266,892,663 | 0 | 0 | Apache-2.0 | 1,590,445,835,000 | 1,590,445,835,000 | null | UTF-8 | Lean | false | false | 25,386 | 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, Mario Carneiro
-/
import algebra.ordered_ring
import algebra.field
set_option default_priority 100 -- see Note [default priority]
set_option old_structu... |
468e224eaad926c251efe1911047720e37c0e60c | 4efff1f47634ff19e2f786deadd394270a59ecd2 | /archive/100-theorems-list/42_inverse_triangle_sum.lean | a398dc9e2228247d62b7630c894b2372e7305695 | [
"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 | 1,015 | lean | /-
Copyright (c) 2020. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Jalex Stark, Yury Kudryashov
-/
import tactic
import data.real.basic
/-!
# Sum of the Reciprocals of the Triangular Numbers
This file proves Theorem 42 from the [100 Theorems List](https://www.cs.r... |
9425ed50ebeb4744bf2d06165a3a7bcfbe863448 | da23b545e1653cafd4ab88b3a42b9115a0b1355f | /src/tidy/rewrite_search/tracer/default.lean | 38ef4971f10542981e2f513e807c096c5c3e2969 | [] | 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 | 90 | lean | import .unit
import .graph
meta def visualiser := tidy.rewrite_search.tracer.graph_tracer |
7f4db33aad112b067b110d9bd35a45e62620cf8f | 49ffcd4736fa3bdcc1cdbb546d4c855d67c0f28a | /library/init/data/string/basic.lean | c91197139a720e91c7b29e4629f038de7916e765 | [
"Apache-2.0"
] | permissive | black13/lean | 979e24d09e17b2fdf8ec74aac160583000086bc8 | 1a80ea9c8e28902cadbfb612896bcd45ba4ce697 | refs/heads/master | 1,626,839,620,164 | 1,509,113,016,000 | 1,509,122,889,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 7,640 | 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.basic
import init.data.char.basic
/- In the VM, strings are implemented using a dynamic array and UTF-8 encoding.
TODO: we... |
51aec27a02a281aa17280238d832bcbec0bc5541 | 57c233acf9386e610d99ed20ef139c5f97504ba3 | /src/topology/alexandroff.lean | 0026ee0b4e82139761c40a4313e2b640e40a07f3 | [
"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 | 16,527 | lean | /-
Copyright (c) 2021 Yourong Zang. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Yourong Zang, Yury Kudryashov
-/
import topology.separation
import topology.opens
/-!
# The Alexandroff Compactification
We construct the Alexandroff compactification (the one-point co... |
32af9f300d1aa90b8a9d0ff22a7485cdd1820299 | 49bd2218ae088932d847f9030c8dbff1c5607bb7 | /src/topology/instances/ennreal.lean | bd07231bf96550052d6ce481063af666b1e58a2e | [
"Apache-2.0"
] | permissive | FredericLeRoux/mathlib | e8f696421dd3e4edc8c7edb3369421c8463d7bac | 3645bf8fb426757e0a20af110d1fdded281d286e | refs/heads/master | 1,607,062,870,732 | 1,578,513,186,000 | 1,578,513,186,000 | 231,653,181 | 0 | 0 | Apache-2.0 | 1,578,080,327,000 | 1,578,080,326,000 | null | UTF-8 | Lean | false | false | 35,444 | 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 topology.instances.nnreal data.real.ennreal
noncomputable theory
open classical set lattice filter metric
open_locale classical
ope... |
f679b533e0b1843b2d46c97f4f824459257b4a46 | 57c233acf9386e610d99ed20ef139c5f97504ba3 | /src/topology/continuous_on.lean | 1f4fe0c2951f1d2deffb25d1fdb96b1333722f90 | [
"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 | 50,254 | lean | /-
Copyright (c) 2019 Reid Barton. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Sébastien Gouëzel
-/
import topology.constructions
/-!
# Neighborhoods and continuity relative to a subset
This file defines relative versions
* `nhds_within` of `nhds`
* `co... |
9f75cb3c2cdcfdfa8ddb4195a01133066f4d8673 | 7565ffb53cc64430691ce89265da0f944ee43051 | /hott/init/pointed.hlean | bde775b4042ed61da2f135e52b84d1b97a838caf | [
"Apache-2.0"
] | permissive | EgbertRijke/lean2 | cacddba3d150f8b38688e044960a208bf851f90e | 519dcee739fbca5a4ab77d66db7652097b4604cd | refs/heads/master | 1,606,936,954,854 | 1,498,836,083,000 | 1,498,910,882,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 4,677 | 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
The definition of pointed types. This file is here to avoid circularities in the import graph
-/
prelude
import init.trunc
open eq equiv is_equiv is_trunc
struct... |
f9475734aa728307caf90ebcd8f109afa724970d | cf39355caa609c0f33405126beee2739aa3cb77e | /tests/lean/reserve_bugs.lean | ce864b6e354173618150c139e465aa277adac11c | [
"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 | 554 | lean | --
constant f : nat → nat
constant g : nat → nat → nat
constant h : nat → nat → nat
reserve infixl `+`:65
reserve infixr `&`:70
reserve infixl `-`:65
reserve prefix `-`:100
local infixl (name := «+») `+` := g
local infixl (name := « - ») `-` := h
local prefix (name := «- ») `-` := f
local infixr (name := «&») `&` :... |
1b022deadd80e3cc3e638a5d7b73b4a412e97600 | 76df16d6c3760cb415f1294caee997cc4736e09b | /lean/src/sym_factory/red.lean | 4646ee1b996f0aeeae4e7770c5f849c96688962d | [
"MIT"
] | permissive | uw-unsat/leanette-popl22-artifact | 70409d9cbd8921d794d27b7992bf1d9a4087e9fe | 80fea2519e61b45a283fbf7903acdf6d5528dbe7 | refs/heads/master | 1,681,592,449,670 | 1,637,037,431,000 | 1,637,037,431,000 | 414,331,908 | 6 | 1 | null | null | null | null | UTF-8 | Lean | false | false | 16,614 | lean | import ..tactic.all
import ..cs.lang
import ..cs.sym
import ..cs.conc
import ..op.sym
import ..cs.util
import .defs
import ..cs.lib
import ..op.simp
import ..basic.basic
import ..basic.sym
import ..op.basic
import .basic
import .sym_factory
namespace sym_factory
open sym
open op.sym
open op.lang.op
def ind_principle... |
29ddf55f0b059631384b4f00c790646a90102292 | 74addaa0e41490cbaf2abd313a764c96df57b05d | /Mathlib/category_theory/limits/pi_auto.lean | 8a9fd28ac2a862bdd03f3832cadffef55170d643 | [] | 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,928 | lean | /-
Copyright (c) 2020 Scott Morrison. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Scott Morrison
-/
import Mathlib.PrePort
import Mathlib.Lean3Lib.init.default
import Mathlib.category_theory.pi.basic
import Mathlib.category_theory.limits.limits
import Mathlib.PostPo... |
03a5bded54c44292f3dcc5c86350f60d7c1984c6 | d1a52c3f208fa42c41df8278c3d280f075eb020c | /stage0/src/Lean/Parser/Extension.lean | 9c7bc620b19cf88a2ab5b0dbff323bdb429017fd | [
"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 | 30,221 | 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.ResolveName
import Lean.ScopedEnvExtension
import Lean.Parser.Basic
import Lean.Parser.StrInterpolation
import Lean.KeyedDecl... |
04c01362df5ac92cd978248fd7f456d180ca61dc | ba202b5df889db60057325d9f940c616e8cb44f3 | /src/barycentric_subdivision.lean | 26b7b4badc82a74c645ac125ee6e2be5748c710e | [] | no_license | damiatorres/brouwerfixedpoint | 0a4ec331de6f9992685e5fc71eb2d3418ff1b2bc | 45411c64f3cbf14c4821342c9dd7153825e0a9bf | refs/heads/main | 1,685,778,289,255 | 1,623,877,752,000 | 1,623,877,752,000 | 377,779,620 | 0 | 0 | null | 1,623,923,011,000 | 1,623,923,011,000 | null | UTF-8 | Lean | false | false | 2,125 | lean | import data.real.basic
import combinatorics.simplicial_complex.basic
import combinatorics.simplicial_complex.finite
import combinatorics.simplicial_complex.sperner
variables {m n : ℕ}
local notation `E` := fin m → ℝ
noncomputable def barycenter(L: list E): E :=
(list.foldl (λ x:E , λ y:E, x + y) 0 L) / L.length
... |
4cb33c917aa45f6597f113b4dd75a3ac120fb339 | 97f752b44fd85ec3f635078a2dd125ddae7a82b6 | /library/theories/topology/basic.lean | 989339622a9376093c160c3b028d8fedb3285f4a | [
"Apache-2.0"
] | permissive | tectronics/lean | ab977ba6be0fcd46047ddbb3c8e16e7c26710701 | f38af35e0616f89c6e9d7e3eb1d48e47ee666efe | refs/heads/master | 1,532,358,526,384 | 1,456,276,623,000 | 1,456,276,623,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 11,302 | lean | /-
Copyright (c) 2015 Jacob Gross. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Jacob Gross, Jeremy Avigad
Open and closed sets, seperation axioms and generated topologies.
-/
import data.set data.nat
open algebra eq.ops set nat
structure topology [class] (X : Type... |
1abfa18c10a134b94a65dbbb8f70ec135159e277 | e39f04f6ff425fe3b3f5e26a8998b817d1dba80f | /category_theory/natural_transformation.lean | cb548ce59ee8e787f7fdeccf88df2e1a66beacbf | [
"Apache-2.0"
] | permissive | kristychoi/mathlib | c504b5e8f84e272ea1d8966693c42de7523bf0ec | 257fd84fe98927ff4a5ffe044f68c4e9d235cc75 | refs/heads/master | 1,586,520,722,896 | 1,544,030,145,000 | 1,544,031,933,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 4,172 | lean | /-
Copyright (c) 2017 Scott Morrison. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Tim Baumann, Stephen Morgan, Scott Morrison
Defines natural transformations between functors.
Introduces notations
`F ⟹ G` for the type of natural transformations between functors ... |
ab5237fd212a0e4b25f21619412d28dae319de2a | 32025d5c2d6e33ad3b6dd8a3c91e1e838066a7f7 | /tests/lean/run/float1.lean | 061a49866b08cb66cdffe33acd4d95caf7e91c13 | [
"Apache-2.0"
] | permissive | walterhu1015/lean4 | b2c71b688975177402758924eaa513475ed6ce72 | 2214d81e84646a905d0b20b032c89caf89c737ad | refs/heads/master | 1,671,342,096,906 | 1,599,695,985,000 | 1,599,695,985,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 178 | lean | def main : IO Unit := do
IO.println ((2 : Float).sin);
IO.println ((2 : Float).cos);
IO.println ((2 : Float).sqrt);
IO.println ((2 : Float) ^ (200 : Float));
pure ()
#eval main
|
932bcd10cb21dd2d810938ba76b1a031bce1c414 | 92b50235facfbc08dfe7f334827d47281471333b | /library/data/vec.lean | 9f5313d85de880462faa8a67d4f032039a76a284 | [
"Apache-2.0"
] | permissive | htzh/lean | 24f6ed7510ab637379ec31af406d12584d31792c | d70c79f4e30aafecdfc4a60b5d3512199200ab6e | refs/heads/master | 1,607,677,731,270 | 1,437,089,952,000 | 1,437,089,952,000 | 37,078,816 | 0 | 0 | null | 1,433,780,956,000 | 1,433,780,955,000 | null | UTF-8 | Lean | false | false | 2,875 | 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
vectors as list subtype
-/
import logic data.list data.subtype
open nat list subtype function
definition vec [reducible] (A : Type) (n : nat) := {l : list A |... |
c4bef1d290cc6b739a786c485f2aefc97b12c18a | 491068d2ad28831e7dade8d6dff871c3e49d9431 | /tests/lean/run/all_goals2.lean | d7e7e0f9da70ef729a2ca6b089b17e16d3361df6 | [
"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 | 460 | lean | import data.nat
open nat
attribute nat.add [unfold 2]
attribute nat.rec_on [unfold 2]
infixl `;`:15 := tactic.and_then
namespace tactic
definition then_all (t1 t2 : tactic) : tactic :=
focus (t1 ; all_goals t2)
end tactic
tactic_infixl `;;`:15 := tactic.then_all
open tactic
example (a b c : nat) : (a + 0 = 0 +... |
867a0c97e1ccb63aff8a3e4cf49ebc8f51971968 | 2731214ea32f2a1a985300e281fb3117640a16c3 | /portmanteau_proba_lemmas.lean | 778c6dad027df5a4cace3897b38366fb2e5557fa | [
"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 | 19,203 | 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 topology.metric_space.basic
import topolo... |
4c907c27a3b4b60a8d0d666ed4c7efbba9e0e266 | dd0f5513e11c52db157d2fcc8456d9401a6cd9da | /10_Structures_and_Records.org.18.lean | 823d79d402921a9da0234bb8d891eb9e9c5d7113 | [] | 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 | 256 | lean | import standard
structure has_mul [class] (A : Type) :=
mk :: (mul : A → A → A)
check @has_mul.mul -- Π {A : Type} [c : has_mul A], A → A → A
infixl `*` := has_mul.mul
section
variables (A : Type) (s : has_mul A) (a b : A)
check a * b
end
|
4ae175571456b05fcccf447c9a4ed32b0f3a7ded | 274261f7150b4ed5f1962f172c9357591be8a2b5 | /src/modules.lean | 1f4200eb09fb4bb15b7265a8f7ba2475af7bcc70 | [] | no_license | rspencer01/lean_representation_theory | 219ea1edf4b9897b2997226b54473e44e1538b50 | 2eef2b4b39d99d7ce71bec7bbc3dcc2f7586fcb5 | refs/heads/master | 1,588,133,157,029 | 1,571,689,957,000 | 1,571,689,957,000 | 175,835,785 | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 2,054 | lean | import algebra.module
import ring_theory.algebra
import algebra.punit_instances
variables (R : Type) [ring R]
class modules :=
(space : Type)
[acg : add_comm_group space]
[mod : module R space]
variable (M : modules R)
instance modules_add_comm_group : add_comm_group M.space := modules.acg R
instance modules_... |
5a3774ba089f962e4d25042bd4518a7900248537 | cf39355caa609c0f33405126beee2739aa3cb77e | /tests/lean/run/super.lean | 91ed12d5719ccbdc75d7c16805f5546a15862cba | [
"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 | 76 | lean | constant f : nat → nat
notation a `²` := f a
variable a : nat
#check a²
|
e27bdeb911e8f6f8c6ad4a8936ebb6851df4b2d2 | b7f22e51856f4989b970961f794f1c435f9b8f78 | /library/data/equiv.lean | 62da1c9e52eb34c9f843fe42eb1b2b9f237ca130 | [
"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 | 16,508 | lean | /-
Copyright (c) 2015 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Leonardo de Moura
In the standard library we cannot assume the univalence axiom.
We say two types are equivalent if they are isomorphic.
Two equivalent types have the same car... |
c19f85666c067aa6c5ccc5c50a4862f5c9fa6950 | dd0f5513e11c52db157d2fcc8456d9401a6cd9da | /06_Inductive_Types.org.23.lean | 531a5dda5b93f11275f601b47cad952730154c87 | [] | 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 | 208 | lean | /- page 84 -/
import standard
namespace hide
-- BEGIN
inductive Exists {A : Type} (P : A → Prop) : Prop :=
intro : ∀ (a : A), P a → Exists P
definition exists.intro := @Exists.intro
-- END
end hide
|
efde4aef0ce4afb8bc77caca4c02bfb39618d399 | bbecf0f1968d1fba4124103e4f6b55251d08e9c4 | /src/measure_theory/function/l1_space.lean | 6a6c2c1e4d53a78e2f1a35c164b51a28a08cf394 | [
"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 | 41,520 | lean | /-
Copyright (c) 2019 Zhouhang Zhou. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Zhouhang Zhou
-/
import measure_theory.function.lp_space
/-!
# Integrable functions and `L¹` space
In the first part of this file, the predicate `integrable` is defined and basic pro... |
5ae0360e453832cec0d71ff3e423cd7587b36823 | 4875cfbb5f2115721bd194f1dc4d418a8ef9fb01 | /meta_data.lean | 1993e6c0d12f1a2d6faed4a5fc9cdb4e073c39c9 | [
"CC-BY-4.0"
] | permissive | Kha/formalabstracts | 71f399c91b92148fea500edada8b12393040abf9 | 5f00ab2de2b22aa4c3011f6f8b87b76114368dd1 | refs/heads/master | 1,611,263,396,157 | 1,501,147,842,000 | 1,501,147,901,000 | 98,518,583 | 0 | 0 | null | 1,501,147,728,000 | 1,501,147,728,000 | null | UTF-8 | Lean | false | false | 5,601 | lean | /- Each fabstract contains a list of results. The following type lists the
various kinds of results. You may read the values as follows:
* `Proof p` -- the paper contains the proof `p`
* `Construction c` -- the paper contains the construction `c`
* `Conjecture C` -- the paper contains the conjecture `C`
... |
01aea87d9b0b5c10a8f214c3470b486ac66ad272 | 624f6f2ae8b3b1adc5f8f67a365c51d5126be45a | /tests/elabissues/vars.lean | 387861e8dd70fc423026dd470fee1c7692a4608b | [
"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,175 | lean | def f1 {α} [HasToString α] (a : α) : String := -- works
">> " ++ toString a
-- Moving `{α} [HasToString α]` to a `variables` break the example
variables {α} [HasToString α]
def f2 (a : α) : String :=
">> " ++ toString a
class Dummy (α : Type) := (val : α)
/- The following fails because `variables {α : Type _} [Dummy... |
ec19ea1160744db217221e808b45ad7ab4ce6312 | 80162757f50b09d3cad5564907e4c9b00742e045 | /galois.lean | 50eb01e5c49f5deb2bb5c533f7f39b9dbcc71d38 | [] | no_license | EdAyers/edlib | cc30d0a54fed347a85b6df6045f68e6b48bc71a3 | 78b8c5d91f023f939c102837d748868e2f3ed27d | refs/heads/master | 1,586,459,758,216 | 1,571,322,179,000 | 1,571,322,179,000 | 160,538,917 | 2 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 3,194 | lean | import .lattice
universes u
variables {α β : Type u}
section
variables [preorder α] [preorder β]
/-- A Galois connection is a pair of functions `l` and `u` satisfying
`l a ≤ b ↔ a ≤ u b`. They are closely connected to adjoint functors
in category theory. -/
def galois_connection
(l : α → β) (u : β → α) := ∀ a ... |
13e13d3659fb9dda9d1748a2b8ccf0e6d09bad45 | 74addaa0e41490cbaf2abd313a764c96df57b05d | /Mathlib/data/set/basic_auto.lean | 5b356342c7335b443117ca4c8ab90f7df08971cc | [] | 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 | 116,787 | 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
-/
import Mathlib.PrePort
import Mathlib.Lean3Lib.init.default
import Mathlib.logic.unique
import Mathlib.order.boolean_algebra
import Mathlib.PostPort
... |
04b6bebce415c4d062fefad33483ae14b9c4e3b0 | 9dc8cecdf3c4634764a18254e94d43da07142918 | /src/combinatorics/quiver/subquiver.lean | 551a2a2eaad7e5eee7b96f8bd995265243fc4321 | [
"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 | 2,475 | lean | /-
Copyright (c) 2021 David Wärn. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: David Wärn
-/
import data.set.basic
import combinatorics.quiver.basic
/-!
## Wide subquivers
A wide subquiver `H` of a quiver `H` consists of a subset of the edge set `a ⟶ b` for
every p... |
2fb650887426601830cb47d15e725a48a26de221 | b147e1312077cdcfea8e6756207b3fa538982e12 | /tactic/interactive.lean | 8752a16d2ecaae49923eb02e5bda770631720835 | [
"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 | 21,763 | lean | /-
Copyright (c) 2017 Mario Carneiro. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Mario Carneiro
-/
import data.dlist data.dlist.basic data.prod category.basic
tactic.basic tactic.rcases tactic.generalize_proofs
tactic.split_ifs meta.expr logic.basic
tactic.ex... |
f1261c9e1718edcd0f9f81a2d34e754eaf39432c | e0b0b1648286e442507eb62344760d5cd8d13f2d | /src/Lean/Server/Watchdog.lean | 3b2e05919e3201657a0ec0e6d8de373f4b098cda | [
"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 | 25,232 | 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 Init.Data.ByteArray
import Std.Data.RBMap
import Lean.Elab.Import
import Lean.Data.Lsp
import Lean.Server.FileSource
... |
be8c2db6e770a3f6d44528a19824f381dea6f460 | 500f65bb93c499cd35c3254d894d762208cae042 | /src/category_theory/limits/limits.lean | f74279c0ef9429834e3fe5ca803ad2105574aaea | [
"Apache-2.0"
] | permissive | PatrickMassot/mathlib | c39dc0ff18bbde42f1c93a1642f6e429adad538c | 45df75b3c9da159fe3192fa7f769dfbec0bd6bda | refs/heads/master | 1,623,168,646,390 | 1,566,940,765,000 | 1,566,940,765,000 | 115,220,590 | 0 | 1 | null | 1,514,061,524,000 | 1,514,061,524,000 | null | UTF-8 | Lean | false | false | 30,917 | 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.whiskering
import category_theory.yoneda
import category_theory.limits.cones
import category_the... |
64391322380adf616e175233aab015fd59994817 | f3849be5d845a1cb97680f0bbbe03b85518312f0 | /library/init/data/list/lemmas.lean | a64285a9efabf146c00d6f39c3cff4df58b90b6f | [
"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 | 30,747 | lean | /-
Copyright (c) 2014 Parikshit Khanna. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Author: Parikshit Khanna, Jeremy Avigad, Leonardo de Moura, Floris van Doorn
-/
prelude
import init.data.list.basic init.function init.meta init.data.nat.lemmas
import init.meta.interactive i... |
2a2024522e08e8dc3086ff8e8e6cd02b78a15a16 | 9a0b1b3a653ea926b03d1495fef64da1d14b3174 | /tidy/lib/expr.lean | 6a2c64ef82f88df719b593c1090a23c876cfa0c4 | [
"Apache-2.0"
] | permissive | khoek/mathlib-tidy | 8623b27b4e04e7d598164e7eaf248610d58f768b | 866afa6ab597c47f1b72e8fe2b82b97fff5b980f | refs/heads/master | 1,585,598,975,772 | 1,538,659,544,000 | 1,538,659,544,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 3,569 | lean | import data.list
import .string
import .pretty_print
meta def binder_info.brackets : binder_info → string × string
| binder_info.default := ("(", ")")
| binder_info.implicit := ("{", "}")
| binder_info.inst_implicit := ("[", "]")
| bi := ("?", "?" ++ repr bi)
meta structure binder :=
(name : name)
(type : expr)
(bi... |
96e3db1e7cf8514ce8cdc43e2cf46ade9855592f | 6432ea7a083ff6ba21ea17af9ee47b9c371760f7 | /src/Lean/Meta/SynthInstance.lean | ea502244b864a7b6df5fcbe4f03307a358e88711 | [
"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 | 34,047 | lean | /-
Copyright (c) 2019 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Daniel Selsam, Leonardo de Moura
Type class instance synthesizer using tabled resolution.
-/
import Lean.Meta.Basic
import Lean.Meta.Instances
import Lean.Meta.AbstractMVars
im... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.