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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
54d612139aabe5aeb8f55a64bfcd44430e76e7f9 | 80cc5bf14c8ea85ff340d1d747a127dcadeb966f | /src/measure_theory/measure_space.lean | eb136a42f720fef80fa932654bfe29b6dcb9e0d7 | [
"Apache-2.0"
] | permissive | lacker/mathlib | f2439c743c4f8eb413ec589430c82d0f73b2d539 | ddf7563ac69d42cfa4a1bfe41db1fed521bd795f | refs/heads/master | 1,671,948,326,773 | 1,601,479,268,000 | 1,601,479,268,000 | 298,686,743 | 0 | 0 | Apache-2.0 | 1,601,070,794,000 | 1,601,070,794,000 | null | UTF-8 | Lean | false | false | 73,787 | 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
-/
import measure_theory.outer_measure
import order.filter.countable_Inter
/-!
# Measure spaces
Given a measurable space `α`, a measure on `α` is a fun... |
5b3faa04107f2a4ef105ff92c0c52e0fcbcf99ce | 4727251e0cd73359b15b664c3170e5d754078599 | /archive/imo/imo1960_q1.lean | 7caef8294f29bb83363e6154566cdd5697586377 | [
"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 | 3,334 | lean | /-
Copyright (c) 2020 Kevin Lacker. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Kevin Lacker
-/
import data.nat.digits
/-!
# IMO 1960 Q1
Determine all three-digit numbers $N$ having the property that $N$ is divisible by 11, and
$\dfrac{N}{11}$ is equal to the sum... |
e77914b46d23884f3b6f880c137b6c1ff5439dfb | dd0f5513e11c52db157d2fcc8456d9401a6cd9da | /03_Propositions_and_Proofs.org.1.lean | 6a2f52bdfb8ca14a3080d43a95278ee6eed21924 | [] | 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 | 372 | lean | /- page 32 -/
import standard
namespace hide
-- BEGIN
constant and : Prop → Prop → Prop
constant or : Prop → Prop → Prop
constant not : Prop → Prop
constant implies : Prop → Prop → Prop
variables p q r : Prop
check and p q -- Prop
check or (and p q) r -- Prop
check implies (and p q... |
665187c39720c0bba1d2b9e884f16d89de05066e | 57c233acf9386e610d99ed20ef139c5f97504ba3 | /src/order/succ_pred/basic.lean | 1c47559b70feece7ac1dea7b63ee5ee74a284ada | [
"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 | 30,132 | 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 order.bounded_order
import order.complete_lattice
import order.cover
import order.iterate
import tactic.monotonicity
/-!
# Successor and predecessor
This file de... |
6dfc78e16b4ec525ec14e47ac5c6e0c29b1268b5 | aa3f8992ef7806974bc1ffd468baa0c79f4d6643 | /library/logic/if.lean | 2944aed52a439a0bda6701d4576a2e3d39b52b7e | [
"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 | 3,684 | 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
-----------------------------------------------------... |
71a55237995bd2cd383f74203e0cf308a5fb301f | 57c233acf9386e610d99ed20ef139c5f97504ba3 | /src/algebra/algebra/basic.lean | 3c63db1cd280eec2d598e61107ef649f767b8d6f | [
"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 | 55,899 | 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.module.basic
import linear_algebra.basic
import tactic.abel
import data.equiv.ring_aut
/-!
# Algebras over commutative semirings
In this file ... |
055d894d188ff6da63f7f468f0002c11f1fb9eb2 | 367134ba5a65885e863bdc4507601606690974c1 | /src/category_theory/limits/shapes/normal_mono.lean | fe619eecf8a5c4cf3c812d3346ee0d0812057a32 | [
"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,290 | lean | /-
Copyright (c) 2020 Scott Morrison. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Scott Morrison, Bhavik Mehta
-/
import category_theory.limits.shapes.regular_mono
import category_theory.limits.shapes.kernels
/-!
# Definitions and basic properties of normal monomor... |
08af6dc45a1847b56c39e2ea887239c76bbc7d4a | 4727251e0cd73359b15b664c3170e5d754078599 | /src/set_theory/cardinal/ordinal.lean | 01e94fa0c6b252d4d51c98826d8d2b37df14db15 | [
"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 | 42,104 | 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, Floris van Doorn
-/
import order.bounded
import set_theory.ordinal.principal
import tactic.linarith
/-!
# Cardinals and ordinals
Relationships betwee... |
3a329c180bafbc2f79232bd7714a9ea42736efad | 26ac254ecb57ffcb886ff709cf018390161a9225 | /src/group_theory/congruence.lean | 436675123c05fb0003d6ae21870275215687e287 | [
"Apache-2.0"
] | permissive | eric-wieser/mathlib | 42842584f584359bbe1fc8b88b3ff937c8acd72d | d0df6b81cd0920ad569158c06a3fd5abb9e63301 | refs/heads/master | 1,669,546,404,255 | 1,595,254,668,000 | 1,595,254,668,000 | 281,173,504 | 0 | 0 | Apache-2.0 | 1,595,263,582,000 | 1,595,263,581,000 | null | UTF-8 | Lean | false | false | 42,785 | lean | /-
Copyright (c) 2019 Amelia Livingston. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Amelia Livingston
-/
import data.setoid.basic
import algebra.pi_instances
/-!
# Congruence relations
This file defines congruence relations: equivalence relations that preserve a ... |
39f9024e28328692c8eaeaceadabd920dd7d8cff | d406927ab5617694ec9ea7001f101b7c9e3d9702 | /src/ring_theory/localization/integral.lean | f6bdd17f8d5b0bdbc0e34885180e5444aa349e45 | [
"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 | 19,461 | lean | /-
Copyright (c) 2018 Kenny Lau. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Kenny Lau, Mario Carneiro, Johan Commelin, Amelia Livingston, Anne Baanen
-/
import data.polynomial.lifts
import group_theory.monoid_localization
import ring_theory.algebraic
import ring_th... |
2c673a92a05602e4e2a607ee5505602024e7337f | 432d948a4d3d242fdfb44b81c9e1b1baacd58617 | /src/group_theory/perm/cycles.lean | 252a2db0e73a05210a18e8689714b86d012d5c5a | [
"Apache-2.0"
] | permissive | JLimperg/aesop3 | 306cc6570c556568897ed2e508c8869667252e8a | a4a116f650cc7403428e72bd2e2c4cda300fe03f | refs/heads/master | 1,682,884,916,368 | 1,620,320,033,000 | 1,620,320,033,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 30,571 | lean | /-
Copyright (c) 2019 Chris Hughes. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Chris Hughes
-/
import data.nat.parity
import data.equiv.fintype
import group_theory.perm.sign
/-!
# Cyclic permutations
## Main definitions
In the following, `f : equiv.perm β`.
* `e... |
f1e5e5c39692b35102ce95f90657bb59eaec9219 | 8cae430f0a71442d02dbb1cbb14073b31048e4b0 | /src/analysis/inner_product_space/lax_milgram.lean | 27354056f5634aa7ba5ecb168c54ab87c1cb634b | [
"Apache-2.0"
] | permissive | leanprover-community/mathlib | 56a2cadd17ac88caf4ece0a775932fa26327ba0e | 442a83d738cb208d3600056c489be16900ba701d | refs/heads/master | 1,693,584,102,358 | 1,693,471,902,000 | 1,693,471,902,000 | 97,922,418 | 1,595 | 352 | Apache-2.0 | 1,694,693,445,000 | 1,500,624,130,000 | Lean | UTF-8 | Lean | false | false | 4,794 | lean | /-
Copyright (c) 2022 Daniel Roca González. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Daniel Roca González
-/
import analysis.inner_product_space.projection
import analysis.inner_product_space.dual
import analysis.normed_space.banach
import analysis.normed_space.o... |
65412edcb88ddae61a2c261202c3d88cb23140f8 | 9c1ad797ec8a5eddb37d34806c543602d9a6bf70 | /monoidal_categories/internal_objects/monoids.lean | baaa0265bd39c48e4b59133b644031bebf6d8682 | [] | no_license | timjb/lean-category-theory | 816eefc3a0582c22c05f4ee1c57ed04e57c0982f | 12916cce261d08bb8740bc85e0175b75fb2a60f4 | refs/heads/master | 1,611,078,926,765 | 1,492,080,000,000 | 1,492,080,000,000 | 88,348,246 | 0 | 0 | null | 1,492,262,499,000 | 1,492,262,498,000 | null | UTF-8 | Lean | false | false | 1,051 | lean | -- Copyright (c) 2017 Scott Morrison. All rights reserved.
-- Released under Apache 2.0 license as described in the file LICENSE.
-- Authors: Stephen Morgan, Scott Morrison
import .semigroups
open tqft.categories
open tqft.categories.monoidal_category
namespace tqft.categories.internal_objects
structure MonoidObject... |
8707679f7d1a96dcce1e0e940794d0e8da0dc292 | 5749d8999a76f3a8fddceca1f6941981e33aaa96 | /src/linear_algebra/basic.lean | 6c094b260ce59cc72f8a49476bf4ec99be9d0831 | [
"Apache-2.0"
] | permissive | jdsalchow/mathlib | 13ab43ef0d0515a17e550b16d09bd14b76125276 | 497e692b946d93906900bb33a51fd243e7649406 | refs/heads/master | 1,585,819,143,348 | 1,580,072,892,000 | 1,580,072,892,000 | 154,287,128 | 0 | 0 | Apache-2.0 | 1,540,281,610,000 | 1,540,281,609,000 | null | UTF-8 | Lean | false | false | 72,511 | 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
-/
import algebra.pi_instances data.finsupp data.equiv.algebra order.order_iso
/-!
# Linear algebra
This file defines the basics of lin... |
0bbc31f2f7191c785b9906d5a28bac2f211246ae | 92b50235facfbc08dfe7f334827d47281471333b | /library/data/quotient/classical.lean | bbf89c2cfd73b96e13b9cd8207ab46ebf9ef30ed | [
"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,040 | lean | /-
Copyright (c) 2014 Floris van Doorn. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Author: Floris van Doorn
A classical treatment of quotients, using Hilbert choice.
-/
import algebra.relation data.subtype logic.axioms.classical logic.axioms.hilbert
import .basic
namespac... |
dc27fb0f74bc8e90f447b0433e4ce3734cee0d33 | 07c76fbd96ea1786cc6392fa834be62643cea420 | /hott/cubical/square.hlean | d8a028250ddc54de9308c71c72eb364f85b3596f | [
"Apache-2.0"
] | permissive | fpvandoorn/lean2 | 5a430a153b570bf70dc8526d06f18fc000a60ad9 | 0889cf65b7b3cebfb8831b8731d89c2453dd1e9f | refs/heads/master | 1,592,036,508,364 | 1,545,093,958,000 | 1,545,093,958,000 | 75,436,854 | 0 | 0 | null | 1,480,718,780,000 | 1,480,718,780,000 | null | UTF-8 | Lean | false | false | 37,866 | 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, Jakob von Raumer
Squares in a type
-/
import types.eq
open eq equiv is_equiv sigma
namespace eq
variables {A B C : Type} {a a' a'' a₀₀ a₂₀ a₄₀ a₀₂ a₂₂ a₂₄ a₀₄ ... |
c2b71c62ee3caa36eed6401c2ef9848f4801e75f | e00ea76a720126cf9f6d732ad6216b5b824d20a7 | /src/linear_algebra/matrix.lean | 45fc8b7406c3d0fb91746ddd7ac72f83e796a922 | [
"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 | 11,291 | lean | /-
Copyright (c) 2019 Johannes Hölzl. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Author: Johannes Hölzl, Casper Putz
The equivalence between matrices and linear maps.
-/
import data.matrix.basic
import linear_algebra.dimension linear_algebra.tensor_product
/-!
# Linear ... |
9a7d66911dabc6287be59a9f3d833d30bd7c5cae | c86b74188c4b7a462728b1abd659ab4e5828dd61 | /src/Lean/Compiler/IR/EmitC.lean | 98c2d5823eb1dfb1a24722f29210032d7125e245 | [
"Apache-2.0"
] | permissive | cwb96/lean4 | 75e1f92f1ba98bbaa6b34da644b3dfab2ce7bf89 | b48831cda76e64f13dd1c0edde7ba5fb172ed57a | refs/heads/master | 1,686,347,881,407 | 1,624,483,842,000 | 1,624,483,842,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 25,244 | 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.Runtime
import Lean.Compiler.NameMangling
import Lean.Compiler.ExportAttr
import Lean.Compiler.InitAttr
import Lean.Compiler.IR.CompilerM
import... |
1b72490b9a38f2d6ea7b3e2ce3005343f359ef38 | 453dcd7c0d1ef170b0843a81d7d8caedc9741dce | /algebra/archimedean.lean | a3846ece88d1883d4619dbdebc8c53781435531c | [
"Apache-2.0"
] | permissive | amswerdlow/mathlib | 9af77a1f08486d8fa059448ae2d97795bd12ec0c | 27f96e30b9c9bf518341705c99d641c38638dfd0 | refs/heads/master | 1,585,200,953,598 | 1,534,275,532,000 | 1,534,275,532,000 | 144,564,700 | 0 | 0 | null | 1,534,156,197,000 | 1,534,156,197,000 | null | UTF-8 | Lean | false | false | 8,688 | lean | /-
Copyright (c) 2018 Mario Carneiro. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Mario Carneiro
Archimedean groups and fields.
-/
import algebra.group_power data.rat data.int.order
local infix ` • ` := add_monoid.smul
variables {α : Type*}
class floor_ring (α) ... |
2836b3c4cf10a2f5e9278e5070527d85917db826 | 4c630d016e43ace8c5f476a5070a471130c8a411 | /data/int/basic.lean | ec5e1cab838d622e0b885314e95910cc9fbe45ee | [
"Apache-2.0"
] | permissive | ngamt/mathlib | 9a510c391694dc43eec969914e2a0e20b272d172 | 58909bd424209739a2214961eefaa012fb8a18d2 | refs/heads/master | 1,585,942,993,674 | 1,540,739,585,000 | 1,540,916,815,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 47,451 | lean | /-
Copyright (c) 2016 Jeremy Avigad. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Jeremy Avigad
The integers, with addition, multiplication, and subtraction.
-/
import data.nat.basic data.list.basic algebra.char_zero algebra.order_functions
open nat
namespace int
... |
aa4da737bf9ca108eed392c771a36909f75ecbab | bbecf0f1968d1fba4124103e4f6b55251d08e9c4 | /src/topology/alexandroff.lean | f8bccb1640ac835684d2529b9c6884350330a4f0 | [
"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 | 16,559 | 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... |
492fac2df912a87fc1770770ef96c42ad31c4a17 | 8cae430f0a71442d02dbb1cbb14073b31048e4b0 | /src/combinatorics/quiver/connected_component.lean | c70c11e89199538cbe352d41fea67acd013b5f61 | [
"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,386 | 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 combinatorics.quiver.subquiver
import combinatorics.quiver.path
import combinatorics.quiver.symmetric
/-!
## Weakly connected components
> THIS FILE IS SYNCHRONIZED W... |
33580cb891b1cf16eb4fbbf2cde9840e8ee8471d | 6432ea7a083ff6ba21ea17af9ee47b9c371760f7 | /src/Lean/Elab/Term.lean | e2d699aa316ad7763858638f903bb2fff57f92ec | [
"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 | 75,370 | 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.Meta.AppBuilder
import Lean.Meta.CollectMVars
import Lean.Meta.Coe
import Lean.Linter.Deprecated
import Lean.Elab.Config
impo... |
193de2f4104da2d2d48856a19bf5c8d4e20b8f0c | 8e381650eb2c1c5361be64ff97e47d956bf2ab9f | /src/sheaves/presheaf_maps.lean | 44a39f13bae109872f1dd5d97f9c6c0ab5fc5b9f | [] | no_license | alreadydone/lean-scheme | 04c51ab08eca7ccf6c21344d45d202780fa667af | 52d7624f57415eea27ed4dfa916cd94189221a1c | refs/heads/master | 1,599,418,221,423 | 1,562,248,559,000 | 1,562,248,559,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 3,145 | lean | /-
Continuous maps and presheaves.
https://stacks.math.columbia.edu/tag/008C
-/
import to_mathlib.opens
import sheaves.presheaf
universes u v w
open topological_space
variables {α : Type u} [topological_space α]
variables {β : Type v} [topological_space β]
variables {f : α → β} (Hf : continuous f)
-- f induc... |
b223b1d5a353fb2fa3f8f2f885d57a17b64478a0 | 9dc8cecdf3c4634764a18254e94d43da07142918 | /src/algebra/direct_sum/ring.lean | b8c27d87566bc0f6e4eb5d951a55d25d5c7851a8 | [
"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 | 22,807 | lean | /-
Copyright (c) 2021 Eric Wieser. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Eric Wieser
-/
import group_theory.subgroup.basic
import algebra.graded_monoid
import algebra.direct_sum.basic
import algebra.big_operators.pi
/-!
# Additively-graded multiplicative stru... |
aad7375a4cb42643f5cbfb5715082a00c4b1e33e | a523fc1740c8cb84cd0fa0f4b52a760da4e32a5c | /src/missing_mathlib/field_thoery/algebraic_closure.lean | 8e4ea88c39ce9f30190647398642aa860146c953 | [] | no_license | abentkamp/spectral | a1aff51e85d30b296a81d256ced1d382345d3396 | 751645679ef1cb6266316349de9e492eff85484c | refs/heads/master | 1,669,994,798,064 | 1,597,591,646,000 | 1,597,591,646,000 | 287,544,072 | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 470 | lean | import field_theory.algebraic_closure
import missing_mathlib.field_thoery.splitting_field
universes u v w
noncomputable theory
open_locale classical big_operators
open polynomial
variables (k : Type u) [field k]
namespace is_alg_closed
variables [is_alg_closed k]
lemma degree_eq_one_of_irreducible {p : polynomial ... |
6a76b5002f96480360b82f26914eaea9ab70efaf | 842b7df4a999c5c50bbd215b8617dd705e43c2e1 | /nat_num_game/src/Advanced_Proposition_World.lean/adv_prop_wrld10.lean | 4018a55842a5a9ee2a1087ec0bc8484a14c1549a | [] | no_license | Samyak-Surti/LeanCode | 1c245631f74b00057d20483c8ac75916e8643b14 | 944eac3e5f43e2614ed246083b97fbdf24181d83 | refs/heads/master | 1,669,023,730,828 | 1,595,534,784,000 | 1,595,534,784,000 | 282,037,186 | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 85 | lean | lemma contrapositive2 (P Q : Prop) : (¬ Q → ¬ P) → (P → Q) :=
begin
end
|
3b493fc8f5322a9a3ca30c6fa7966e7d319e49a4 | cc060cf567f81c404a13ee79bf21f2e720fa6db0 | /lean/two_function_coercions.lean | 96c21626c184a0e08a2d27198801a7b7a1b21309 | [
"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 | 400 | lean | structure foo (A B : Type) :=
(bar : A → Type)
(baz : B → Type)
instance FunctionA {A B : Type} : has_coe_to_fun (foo A B) :=
{ F := λ f, A → Type,
coe := foo.bar }
instance FunctionB {A B : Type} : has_coe_to_fun (foo A B) :=
{ F := λ f, B → Type,
coe := foo.baz }
def X : foo unit bool :=
{ bar := λ a... |
c97c0ddb58f6e9893244399ce4e3891d747daa55 | 4b846d8dabdc64e7ea03552bad8f7fa74763fc67 | /library/init/algebra/order.lean | 694451ecde959e74d1ee82998014c5be1f0db7c2 | [
"Apache-2.0"
] | permissive | pacchiano/lean | 9324b33f3ac3b5c5647285160f9f6ea8d0d767dc | fdadada3a970377a6df8afcd629a6f2eab6e84e8 | refs/heads/master | 1,611,357,380,399 | 1,489,870,101,000 | 1,489,870,101,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 9,763 | lean | /-
Copyright (c) 2016 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Leonardo de Moura
-/
prelude
import init.logic
/- Make sure instances defined in this file have lower priority than the ones
defined for concrete structures -/
set_option def... |
e2c068a921ba751cab48281631420b407a175275 | 7cef822f3b952965621309e88eadf618da0c8ae9 | /src/algebra/pi_instances.lean | 9bd4f5caa53dfc2fb9344276708f073f7584c3e8 | [
"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 | 19,255 | lean | /-
Copyright (c) 2018 Simon Hudon. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Simon Hudon, Patrick Massot
Pi instances for algebraic structures.
-/
import order.basic
import algebra.module algebra.group
import data.finset
import ring_theory.subring
import tactic.p... |
819b653a7266dcd547be1df790755561c5b50886 | 74addaa0e41490cbaf2abd313a764c96df57b05d | /Mathlib/algebra/module/submodule.lean | bfcb1e41b74b37bdf36688079ba87829bb2ef43f | [] | 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 | 13,519 | lean | /-
Copyright (c) 2015 Nathaniel Thomas. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Nathaniel Thomas, Jeremy Avigad, Johannes Hölzl, Mario Carneiro
-/
import Mathlib.PrePort
import Mathlib.Lean3Lib.init.default
import Mathlib.algebra.module.linear_map
import Mathlib... |
e9db6192b4bdfcc78bbd0f198bb06cf686940a6c | a45212b1526d532e6e83c44ddca6a05795113ddc | /src/category_theory/instances/CommRing/default.lean | cd858b60fb30cffc89d7271e179c54e8f6295c54 | [
"Apache-2.0"
] | permissive | fpvandoorn/mathlib | b21ab4068db079cbb8590b58fda9cc4bc1f35df4 | b3433a51ea8bc07c4159c1073838fc0ee9b8f227 | refs/heads/master | 1,624,791,089,608 | 1,556,715,231,000 | 1,556,715,231,000 | 165,722,980 | 5 | 0 | Apache-2.0 | 1,552,657,455,000 | 1,547,494,646,000 | Lean | UTF-8 | Lean | false | false | 257 | lean | /-
Copyright (c) 2019 Scott Morrison. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Scott Morrison
-/
import category_theory.instances.CommRing.basic
import category_theory.instances.CommRing.adjunctions
|
6967d02d06070a837898304bcf9dc69ad7b25d69 | 6432ea7a083ff6ba21ea17af9ee47b9c371760f7 | /tests/lean/run/ifThenElseIssue.lean | 92394fb82d66449cc0a00e7a7cb90514592463e5 | [
"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 | 782 | lean | -- set_option trace.Meta.isDefEq true
-- set_option trace.Elab true
def f1 (s : Nat × Bool) : Bool :=
if s.2 then false else true
def f2 (s : Nat × Bool) : Bool :=
if @Prod.snd _ _ s then false else true
def f3 (s : Nat × Bool) : Bool :=
if Prod.snd s then false else true
def f4 (s : Nat × String × Bool) : Bo... |
aaf8e2e42d71c0ea4cf4afeecaf2b5193032a6af | 32025d5c2d6e33ad3b6dd8a3c91e1e838066a7f7 | /tests/lean/run/backtrackable_estate.lean | 0516612957e184f3c06aefb5bf7e1c5af33600c1 | [
"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 | 687 | lean | import Init.System.IO
structure MyState :=
(bs : Nat := 0) -- backtrackable state
(ps : Nat := 0) -- non backtrackable state
instance : HasRepr MyState :=
⟨fun s => repr (s.bs, s.ps)⟩
instance : EStateM.Backtrackable Nat MyState :=
{ save := fun s => s.bs,
restore := fun s d => { s with bs := d } }
abbrev M :... |
dcd60e318d8bac1127f17c6e95b5a027c82dc370 | 9028d228ac200bbefe3a711342514dd4e4458bff | /src/group_theory/quotient_group.lean | fb38d998879063acb2e5d616c05e6a5f1c408fa9 | [
"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 | 7,510 | lean | /-
Copyright (c) 2018 Kevin Buzzard and Patrick Massot. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Kevin Buzzard, Patrick Massot.
This file is to a certain extent based on `quotient_module.lean` by Johannes Hölzl.
-/
import group_theory.coset
universes u v
names... |
d4a8ea7eea1c0cab110f1fbc78887af5a696335c | 88892181780ff536a81e794003fe058062f06758 | /src/knopp/common.lean | a52f733d3e9a5d4aa2b63194a642683863d99192 | [] | no_license | AtnNn/lean-sandbox | fe2c44280444e8bb8146ab8ac391c82b480c0a2e | 8c68afbdc09213173aef1be195da7a9a86060a97 | refs/heads/master | 1,623,004,395,876 | 1,579,969,507,000 | 1,579,969,507,000 | 146,666,368 | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 1,018 | lean | import knopp.natural
import data.rat
import data.fin
universes u
namespace knopp
@[reducible]
def rational := ℚ
@[reducible]
def natural := ℕ+
inductive none_of : list Prop → Prop
| nil : none_of list.nil
| cons {h : Prop} {hs : list Prop} : ¬h → none_of hs → none_of (list.cons h hs)
inductive one_and_only_one : ... |
2bdb72c4985dc0cb81854aae5b403e3734e193ae | bb31430994044506fa42fd667e2d556327e18dfe | /src/data/polynomial/div.lean | f221f4fe4bf94b44aa0dc052027490a89d805ca3 | [
"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 | 21,575 | lean | /-
Copyright (c) 2018 Chris Hughes. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Chris Hughes, Johannes Hölzl, Scott Morrison, Jens Wagemaker
-/
import data.polynomial.inductions
import data.polynomial.monic
import ring_theory.multiplicity
/-!
# Division of univaria... |
1a9bf26a5acbbe9dad7242e7d0c8bfe8b29c282a | 5a5e1bb8063d7934afac91f30aa17c715821040b | /lean4SOS/SOS/ExternTest.lean | 3b27d92020e5988478093952426065021ba45d6d | [] | no_license | ramonfmir/leanSOS | 1883392d73710db5c6e291a2abd03a6c5b44a42b | 14b50713dc887f6d408b7b2bce1f8af5bb619958 | refs/heads/main | 1,683,348,826,105 | 1,622,056,982,000 | 1,622,056,982,000 | 341,232,766 | 1 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 152 | lean | import Init.Data.Float
-- leanpkg build bin LINK_OPTS=-rdynamic
--@[extern "my_abs"]
--constant my_abs (x : Float) : IO Float
--#eval my_abs (-44.4)
|
19db926576b781dc4653ffd9f074e15759f8a0f6 | 31f556cdeb9239ffc2fad8f905e33987ff4feab9 | /src/Lean/Meta/Tactic/Split.lean | 06debdb4f016ed928eb42ef5fca9b165f8571ed6 | [
"Apache-2.0",
"LLVM-exception",
"NCSA",
"LGPL-3.0-only",
"LicenseRef-scancode-inner-net-2.0",
"BSD-3-Clause",
"LGPL-2.0-or-later",
"Spencer-94",
"LGPL-2.1-or-later",
"HPND",
"LicenseRef-scancode-pcre",
"ISC",
"LGPL-2.1-only",
"LicenseRef-scancode-other-permissive",
"SunPro",
"CMU-Mach"... | permissive | tobiasgrosser/lean4 | ce0fd9cca0feba1100656679bf41f0bffdbabb71 | ebdbdc10436a4d9d6b66acf78aae7a23f5bd073f | refs/heads/master | 1,673,103,412,948 | 1,664,930,501,000 | 1,664,930,501,000 | 186,870,185 | 0 | 0 | Apache-2.0 | 1,665,129,237,000 | 1,557,939,901,000 | Lean | UTF-8 | Lean | false | false | 15,380 | lean | /-
Copyright (c) 2021 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Leonardo de Moura
-/
import Lean.Meta.Match.MatchEqs
import Lean.Meta.Tactic.Generalize
namespace Lean.Meta
namespace Split
def getSimpMatchContext : MetaM Simp.Context :=
... |
fe3c35dee62ba36f6bc964e4d11242db2de2580a | 74addaa0e41490cbaf2abd313a764c96df57b05d | /Mathlib/topology/constructions.lean | 9ae73f8a80ad0e1fc7191af686d00a014907bf40 | [] | 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 | 33,962 | lean | /-
Copyright (c) 2017 Johannes Hölzl. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Johannes Hölzl, Mario Carneiro, Patrick Massot
-/
import Mathlib.PrePort
import Mathlib.Lean3Lib.init.default
import Mathlib.topology.maps
import Mathlib.PostPort
universes u v w x u_... |
03a8f3f523dbdd7e323e9c48bd166bf12d2ec340 | df561f413cfe0a88b1056655515399c546ff32a5 | /3-multiplication-world/l1.lean | 0a95540acbd3bbf136cf926ea912a2f7bdd4623f | [] | no_license | nicholaspun/natural-number-game-solutions | 31d5158415c6f582694680044c5c6469032c2a06 | 1e2aed86d2e76a3f4a275c6d99e795ad30cf6df0 | refs/heads/main | 1,675,123,625,012 | 1,607,633,548,000 | 1,607,633,548,000 | 318,933,860 | 3 | 1 | null | null | null | null | UTF-8 | Lean | false | false | 126 | lean | lemma zero_mul (m : mynat) : 0 * m = 0 :=
begin
induction m with k Pk,
apply mul_zero,
rw mul_succ,
rw add_zero,
exact Pk,
end |
7fca00f694fc328cb206cf79678c948059555df5 | dc253be9829b840f15d96d986e0c13520b085033 | /homotopy/spherical_fibrations.hlean | 82b6380a9df82f3bcd48f5fab9b3ad7b2bbd4833 | [
"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 | 5,206 | hlean | import homotopy.join homotopy.smash types.nat.hott
open eq equiv trunc function bool join sphere sphere.ops prod
open pointed sigma smash is_trunc nat
namespace spherical_fibrations
/- classifying type of spherical fibrations -/
definition BG (n : ℕ) [is_succ n] : Type₁ :=
Σ(X : Type₀), ∥ X ≃ S (pred n) ∥
d... |
245eaae49fd6e17d3cfeca8fd434086820c51ee0 | 32025d5c2d6e33ad3b6dd8a3c91e1e838066a7f7 | /stage0/src/Lean/Elab/Level.lean | 86906a3384aa6cbc9d78f5ca58440f44e76dbcf3 | [
"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 | 2,507 | 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.Meta.LevelDefEq
import Lean.Elab.Exception
import Lean.Elab.Log
namespace Lean
namespace Elab
namespace Level
structure Context :=
(ref ... |
db745bd96fe24cec68778cb8b2c388f2c414ae7b | 94e33a31faa76775069b071adea97e86e218a8ee | /src/analysis/calculus/tangent_cone.lean | 600f7a9a7b723701245a1465219568a4b9c480c7 | [
"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 | 19,939 | 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 analysis.convex.topology
import analysis.normed_space.basic
import analysis.specific_limits.basic
/-!
# Tangent cone
In this file, we define two predic... |
e23dafb6ae3e58d5a0fad1a2545862c6ac106a66 | 82e44445c70db0f03e30d7be725775f122d72f3e | /src/category_theory/linear/yoneda.lean | 9119efb0424e960bac94a3c1afae5a4c18bd244b | [
"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 | 1,480 | lean | /-
Copyright (c) 2021 Scott Morrison. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Scott Morrison
-/
import algebra.category.Module.basic
import category_theory.linear
import category_theory.preadditive.additive_functor
import category_theory.preadditive.opposite
/-... |
0e6da67d253f01535ff7c2e47a043b1187732646 | 3f48345ac9bbaa421714efc9872a0409379bb4ae | /src/set_category/limits/Equalizer.lean | 96186ef90ab22eb0d69767ec7714c58362506707 | [] | no_license | QaisHamarneh/Coalgebra-in-Lean | b4318ee6d83780e5c734eb78fed98b1fe8016f7e | bd0452df98bc64b608e5dfd7babc42c301bb6a46 | refs/heads/master | 1,663,371,200,241 | 1,661,004,695,000 | 1,661,004,695,000 | 209,798,828 | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 2,314 | lean | import tactic.tidy
import category_theory.category
import set_category.diagram_lemmas
import help_functions
namespace Equalizer
open set
diagram_lemmas
classical
function
help_functions
category_theory
universes v u
local notation f ` ⊚ `:80 g:80 := category_struct.comp g f
def is_eq... |
4e6a17f1a78e70a6ec074ef7cd1ec60b3ae6b23f | 302c785c90d40ad3d6be43d33bc6a558354cc2cf | /src/ring_theory/derivation.lean | 275e5565368ad88048a5005b49f2e5a2dc96e3fe | [
"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 | 8,364 | lean | /-
Copyright © 2020 Nicolò Cavalleri. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Nicolò Cavalleri
-/
import algebra.lie.of_associative
import ring_theory.algebra_tower
/-!
# Derivations
This file defines derivation. A derivation `D` from the `R`-algebra `A` to t... |
dddbfdb20e832df6bed6038a2fe9af63ec26fac9 | 94e33a31faa76775069b071adea97e86e218a8ee | /src/field_theory/finite/polynomial.lean | 699e2be51408ac68369ceb53d77c834cd9df3781 | [
"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 | 7,966 | lean | /-
Copyright (c) 2020 Johan Commelin. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Johan Commelin
-/
import linear_algebra.finite_dimensional
import linear_algebra.basic
import ring_theory.mv_polynomial.basic
import data.mv_polynomial.expand
import field_theory.fini... |
c0641016a9fe07a4e8401a92698383c04b54e4ac | 74addaa0e41490cbaf2abd313a764c96df57b05d | /Mathlib/data/fintype/card_auto.lean | 9aef04cdc0e5b4dfef4fd41cfdeb02a65a8f628d | [] | 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 | 16,962 | lean | /-
Copyright (c) 2017 Mario Carneiro. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Author: Mario Carneiro
-/
import Mathlib.PrePort
import Mathlib.Lean3Lib.init.default
import Mathlib.data.fintype.basic
import Mathlib.algebra.big_operators.ring
import Mathlib.PostPort
univer... |
850d075869dc7ce542acdb91051109d6d970e9fc | 8cae430f0a71442d02dbb1cbb14073b31048e4b0 | /test/equiv_rw.lean | ae548862f15091e9e16141548b98d6e546f97289 | [
"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,258 | lean | /-
Copyright (c) 2019 Scott Morrison. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Scott Morrison
-/
import tactic.equiv_rw
-- Uncomment this line to observe the steps of constructing appropriate equivalences.
-- set_option trace.equiv_rw_type true
-- This fails if... |
52dc6471c8e77d195fbad8bdde67a2e1b3a94dd2 | 618003631150032a5676f229d13a079ac875ff77 | /src/topology/metric_space/hausdorff_distance.lean | c843b8b8f6f2ad266f621998f080e3142ed5c2b5 | [
"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 | 32,383 | 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.isometry
import topology.instances.ennreal
/-!
# Hausdorff distance
The Hausdorff distance on subsets of a metric (or emetric) spa... |
aabce27997458b52bbc571b41cffa82c00ce7e79 | 4efff1f47634ff19e2f786deadd394270a59ecd2 | /src/data/finset/default.lean | bc8a05f442171edba566fcb51dbfacdfda7157f3 | [
"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 | 215 | lean | import data.finset.basic
import data.finset.fold
import data.finset.intervals
import data.finset.lattice
import data.finset.nat_antidiagonal
import data.finset.pi
import data.finset.powerset
import data.finset.sort
|
909193a4b923aacfbbeae22aee996d97bfb98d9f | 6432ea7a083ff6ba21ea17af9ee47b9c371760f7 | /tests/bench/parser.lean | 9d6807bddd418df6ecac74f5fac69135fbeac888 | [
"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 | 401 | lean | import Lean.Parser.Module
/-!
Test parsing only on a .lean file, which necessarily has to be one that does
not depend on non-built-in syntax, e.g. `Init.Prelude`. -/
def main : List String → IO Unit
| [fname, n] => do
let env ← Lean.mkEmptyEnvironment
for _ in [0:n.toNat!] do
discard $ Lean.Parser.testPar... |
04b77e7d770297e8fe086a59f168964d53ac6cf2 | fa02ed5a3c9c0adee3c26887a16855e7841c668b | /src/algebra/continued_fractions/default.lean | 74b9c92c2de58c52fd2f55a8ad1abaa5f7cf5524 | [
"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 | 507 | lean | /-
Copyright (c) 2019 Kevin Kappelmann. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Kevin Kappelmann
-/
import algebra.continued_fractions.basic
import algebra.continued_fractions.translations
import algebra.continued_fractions.continuants_recurrence
import algebra.... |
755ac0b592f8bff9316d258d846622d841904579 | 624f6f2ae8b3b1adc5f8f67a365c51d5126be45a | /stage0/src/Init/Core.lean | 850a7601147912373818f741b240096940a88da4 | [
"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 | 64,138 | 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
notation, basic datatypes and type classes
-/
prelude
notation `Prop` := Sort 0
notation f ` $ `:1 a:0 := f a
/- Logical operations and relations -/
reserv... |
da2d586c33ad3b9d78bc1bd1c21162ea95cf7ea8 | b7f22e51856f4989b970961f794f1c435f9b8f78 | /tests/lean/584a.lean | 94fc6ef997329d42fea747bb2d1b9c9e55180872 | [
"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 | 305 | lean | variables (A : Type) [H : inhabited A] (x : A)
include H
definition foo := x
check foo -- A and x are explicit
variables {A x}
definition foo' := x
check @foo' -- A is explicit, x is implicit
open nat
check foo nat 10
definition test : foo' = (10:nat) := rfl
set_option pp.implicit true
print test
|
efd2b494870430aa976ee4a5ce1a56ac1905a76b | 958488bc7f3c2044206e0358e56d7690b6ae696c | /lean/conjunction.lean | 4955b6f81f117c02be7c6d1e68ae7067148a1994 | [] | no_license | possientis/Prog | a08eec1c1b121c2fd6c70a8ae89e2fbef952adb4 | d4b3debc37610a88e0dac3ac5914903604fd1d1f | refs/heads/master | 1,692,263,717,723 | 1,691,757,179,000 | 1,691,757,179,000 | 40,361,602 | 3 | 0 | null | 1,679,896,438,000 | 1,438,953,859,000 | Coq | UTF-8 | Lean | false | false | 1,076 | lean |
lemma L1 : ∀ (p q:Prop), p → q → p ∧ q :=
λ p q hp hq, and.intro hp hq
lemma L2 : ∀ (p q:Prop), p ∧ q → p :=
λ p q h, and.elim_left h
lemma L2' : ∀ (p q:Prop), p ∧ q → p :=
λ p q h, and.left h
lemma L3 : ∀ (p q:Prop), p ∧ q → q :=
λ p q h, and.elim_right h
lemma L3' : ∀ (p q:Prop), p ∧ q → q :=
λ p q h, ... |
c61a3964cf8a7b8c9c2a91ae113863a44f282a25 | dd0f5513e11c52db157d2fcc8456d9401a6cd9da | /02_Dependent_Type_Theory.org.36.lean | ce2cbe1fed5852b91c4902056c553319d1e83790 | [] | 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 | 463 | lean | /- page 29 -/
import standard
namespace hide
constant list : Type → Type
namespace list
constant cons : Π A : Type, A → list A → list A
constant nil : Π A : Type, list A
constant append : Π A : Type, list A → list A → list A
end list
-- BEGIN
open hide.list
variable A : Type
variable a : A
variables l1 l2 : list ... |
9b141be780e4ffc696313e433ad03135cd54f008 | 947b78d97130d56365ae2ec264df196ce769371a | /tests/lean/run/tryPureCoe.lean | bd46d63ab37eece35b6f1899dcce0aa2b68f2e8e | [
"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 | 506 | lean | new_frontend
def m1 : IO Bool :=
pure true
def p (x : Nat) : Bool :=
x > 0
def tst1 : IO Bool :=
true <&&> m1
def tst2 (x : Nat) : IO Bool :=
x = 0 <&&> m1
def tst3 (x : Nat) : IO Unit :=
whenM (m1 <&&> x > 0) $
throw $ IO.userError "test"
def tst4 (x : Nat) : IO Unit :=
whenM (x > 0 <&&> m1) $
throw $ IO.user... |
1227775a91fa9b9fcae4d9a979ba1cfc35ae5274 | 1446f520c1db37e157b631385707cc28a17a595e | /stage0/src/Init/Lean/Parser/Parser.lean | 7fd57d4cbd262d7497a51dc4d4ea381febc30241 | [
"Apache-2.0"
] | permissive | bdbabiak/lean4 | cab06b8a2606d99a168dd279efdd404edb4e825a | 3f4d0d78b2ce3ef541cb643bbe21496bd6b057ac | refs/heads/master | 1,615,045,275,530 | 1,583,793,696,000 | 1,583,793,696,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 78,555 | 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
-/
prelude
import Init.Lean.Data.Trie
import Init.Lean.Data.Position
import Init.Lean.Syntax
import Init.Lean.ToExpr
import Init.Lean.Enviro... |
6b171bec9fb83b888d7d4821eb84bc13e0d2f261 | 21871395eaf77834250a3f1b20624be105ae17be | /hty_rec.lean | 0d7f98a2f930f85256444100c88ccff7cc00fcd3 | [] | no_license | daniel-carranza/2-adj-lean-workspace | a60a16d99993351a08860575831ec7c5b801c39f | e3e9b99883e5056d2de1856b8adcb2f4625546e6 | refs/heads/master | 1,666,176,695,426 | 1,592,006,470,000 | 1,592,006,470,000 | 271,910,711 | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 2,249 | lean | /-
Authors: Daniel Carranza, Jonathon Chang, Ryan Sandford
Under the supervision of Chris Kapulkin
Contains theorems for performing induction on homotopies which
is used in adj.lean and two_adj.lean to prove
full-adjoint equivalences are not mere propositions
Last updated: 2020-06-12
-/
import hott.i... |
a9e8738629fb3030984300439dca848d9167919c | 94e33a31faa76775069b071adea97e86e218a8ee | /src/ring_theory/algebraic_independent.lean | 0ee9b87995b14fa32952033fdbe0926f1aeb8b03 | [
"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 | 22,130 | 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 ring_theory.adjoin.basic
import linear_algebra.linear_independent
import ring_theory.mv_polynomial.basic
import data.mv_polynomial.supported
import ring_theory.alg... |
275d6719173007ae9d695c60cf13bfcbd78d9dca | 74addaa0e41490cbaf2abd313a764c96df57b05d | /Mathlib/data/num/prime.lean | 4d49202c29edee9f6900dbdfcfc7b7c9d8f4697d | [] | 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 | 2,879 | lean | /-
Copyright (c) 2020 Mario Carneiro. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Author: Mario Carneiro
-/
import Mathlib.PrePort
import Mathlib.Lean3Lib.init.default
import Mathlib.data.num.lemmas
import Mathlib.data.nat.prime
import Mathlib.tactic.ring
import Mathlib.Post... |
59d705f1e81f9189718f573d461d9f283dc4c3fd | 69d4931b605e11ca61881fc4f66db50a0a875e39 | /src/topology/instances/real.lean | a52920934c5ecd2682e193e13fc78c4530b9ccd0 | [
"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 | 14,472 | 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
-/
import topology.metric_space.basic
import topology.algebra.uniform_group
import topology.algebra.ring
import ring_theory.subring
import group_theory.a... |
842fdbdc3f58eaf893fa8c1d3204ee6f3f356d20 | 5756a081670ba9c1d1d3fca7bd47cb4e31beae66 | /Mathport/Syntax/Transform/Expr.lean | 563def22d5064ad202b6e8c395f463504bd1e246 | [
"Apache-2.0"
] | permissive | leanprover-community/mathport | 2c9bdc8292168febf59799efdc5451dbf0450d4a | 13051f68064f7638970d39a8fecaede68ffbf9e1 | refs/heads/master | 1,693,841,364,079 | 1,693,813,111,000 | 1,693,813,111,000 | 379,357,010 | 27 | 10 | Apache-2.0 | 1,691,309,132,000 | 1,624,384,521,000 | Lean | UTF-8 | Lean | false | false | 629 | lean | /-
Copyright (c) 2021 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Gabriel Ebner
-/
import Mathport.Syntax.Transform.Basic
mathport_rules
| `($x:term $args* <| fun $y:basicFun) => `($x:term $args* fun $y:basicFun)
| `($x:term $args* <| fun... |
ccfb975f1641f5328751ddf388278621ba4cd937 | a9d0fb7b0e4f802bd3857b803e6c5c23d87fef91 | /tests/lean/num.lean | f3b8460075a85d9dbf02a3eda1fe4bdc117e0244 | [
"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 | 114 | lean | --
check 10
check 20
check 3
check 1
check 0
check 12
check 13
check 12138
check 1221
check 11
check 5
check 21
|
2afb0da3328c9f2ef4be3264f749423ecd1da848 | e0f9ba56b7fedc16ef8697f6caeef5898b435143 | /src/topology/uniform_space/uniform_embedding.lean | a9e8e16c8af2c22992c7e925bc33128ed1566d42 | [
"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 | 20,238 | 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, Sébastien Gouëzel, Patrick Massot
Uniform embeddings of uniform spaces. Extension of uniform continuous functions.
-/
import topology.uniform_space.cauchy
import topol... |
5c07f3162976ac3a4c84d295aced9f70582c4454 | d1a52c3f208fa42c41df8278c3d280f075eb020c | /src/Std/Data/HashSet.lean | a23aa6af23eb77a96686f4eb69689c0124a6582b | [
"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 | 6,198 | lean | /-
Copyright (c) 2019 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Author: Leonardo de Moura
-/
namespace Std
universe u v w
def HashSetBucket (α : Type u) :=
{ b : Array (List α) // b.size > 0 }
def HashSetBucket.update {α : Type u} (data : HashSet... |
20712a9025001ca1b219f5e73038240a0863d323 | c062f1c97fdef9ac746f08754e7d766fd6789aa9 | /algebra/lattice/boolean_algebra.lean | f8a7497096cb76c890df8aa3e0a3d25ef76a07fe | [] | no_license | emberian/library_dev | 00c7a985b21bdebe912f4127a363f2874e1e7555 | f3abd7db0238edc18a397540e361a1da2f51503c | refs/heads/master | 1,624,153,474,804 | 1,490,147,180,000 | 1,490,147,180,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 3,439 | 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 class hierarchy for Boolean algebras.
-/
import .bounded_lattice
universes u
variables {α : Type u} {x y z : α}
namespace lattice
class distrib_lattice α exte... |
5a7a87385da6d38309629e5346056d5d17801c41 | 77c5b91fae1b966ddd1db969ba37b6f0e4901e88 | /src/measure_theory/measure/measure_space.lean | 129c137bad6d328cefca570727bd217bed2dcd1c | [
"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 | 133,020 | 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
-/
import measure_theory.measure.measure_space_def
import measure_theory.measurable_space
/-!
# Measure spaces
The definition of a measure and a measur... |
66199f672c192aa0de70ba6053b0b52c9ccd38c3 | 36c7a18fd72e5b57229bd8ba36493daf536a19ce | /tests/lean/hott/len_eq.hlean | 33414d1813e6e14f9ef365079cf7de0763060a63 | [
"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 | 3,059 | hlean | import init.ua
open nat unit equiv is_trunc
inductive vector (A : Type) : nat → Type :=
| nil {} : vector A zero
| cons : Π {n}, A → vector A n → vector A (succ n)
open vector
notation a :: b := cons a b
definition const {A : Type} : Π (n : nat), A → vector A n
| zero a := nil
| (succ n) a := a :: const n a
d... |
48c50dea9bd0e4d88d5897dac726d5d81edcb4c9 | 947b78d97130d56365ae2ec264df196ce769371a | /stage0/src/Lean/Compiler/IR.lean | 2ecb72ed28a47b7cdba14774ccf962a69be06606 | [
"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 | 2,643 | 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.Compiler.IR.Basic
import Lean.Compiler.IR.Format
import Lean.Compiler.IR.CompilerM
import Lean.Compiler.IR.PushProj
import Lean.Compiler.IR.Elim... |
e4e8540470f535804b0e787f1d55d696dcd6c4fd | 94637389e03c919023691dcd05bd4411b1034aa5 | /src/inClassNotes/final/arith_expr_test.lean | b6a2d21d1e000f8662bedb7d9f7fa1aad0f928ca | [] | no_license | kevinsullivan/complogic-s21 | 7c4eef2105abad899e46502270d9829d913e8afc | 99039501b770248c8ceb39890be5dfe129dc1082 | refs/heads/master | 1,682,985,669,944 | 1,621,126,241,000 | 1,621,126,241,000 | 335,706,272 | 0 | 38 | null | 1,618,325,669,000 | 1,612,374,118,000 | Lean | UTF-8 | Lean | false | false | 693 | lean | import .bool_expr
import .var_test
example :
arith_expr_eval
init_env
([3] + [5]) =
8 :=
rfl
example :
arith_expr_eval
init_env
([3] + [5] + [@var.mk nat 0]) =
8 :=
rfl
def st := override_nat init_env X [7]
#eval st.nat_var_interp X
#eval st.nat_var_interp Y
#eval st.nat_var_i... |
ca82e35830749eaae46e76a7c04c5a0fcfa3af36 | 4727251e0cd73359b15b664c3170e5d754078599 | /src/topology/algebra/module/character_space.lean | 52af6ec0680fba278939969b718ff9a42b1ce515 | [
"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 | 4,897 | lean | /-
Copyright (c) 2022 Frédéric Dupuis. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Frédéric Dupuis
-/
import topology.algebra.module.weak_dual
import algebra.algebra.spectrum
/-!
# Character space of a topological algebra
The character space of a topological alge... |
11e880eef1f60682ed7368be96b64e5cb735e380 | 2fb7334a212c3858db44039b5fa6cd57fd5d1443 | /src/sheaf.lean | e34e8ab027573e198a442f909f2c368d12249c1f | [] | no_license | ImperialCollegeLondon/condensed-sets | 24514be041533b07fd62d337b1d6a5ce2b09c78c | e308291646396003dbed3896e5fbb40cb57c7050 | refs/heads/master | 1,628,397,992,041 | 1,601,549,576,000 | 1,601,549,576,000 | 224,198,323 | 3 | 1 | null | 1,601,549,578,000 | 1,574,774,780,000 | Lean | UTF-8 | Lean | false | false | 3,568 | lean | import sieve
import sites
import category_theory.limits.shapes.equalizers
import category_theory.const
namespace category_theory
namespace category_theory.limits
namespace category_theory.functor
section sheaves
universes w v u
open opposite
variables {C : Type u} [CCat : category.{v} C]
variables {D : Type w} [DCa... |
de326a2325f5b9a4e6d8cd5ca78cedad449a9bb0 | d406927ab5617694ec9ea7001f101b7c9e3d9702 | /src/algebra/module/bimodule.lean | 7c5acc489e8c978726a0997901caf16a387a80be | [
"Apache-2.0"
] | permissive | alreadydone/mathlib | dc0be621c6c8208c581f5170a8216c5ba6721927 | c982179ec21091d3e102d8a5d9f5fe06c8fafb73 | refs/heads/master | 1,685,523,275,196 | 1,670,184,141,000 | 1,670,184,141,000 | 287,574,545 | 0 | 0 | Apache-2.0 | 1,670,290,714,000 | 1,597,421,623,000 | Lean | UTF-8 | Lean | false | false | 5,328 | lean | /-
Copyright (c) 2022 Oliver Nash. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Oliver Nash
-/
import ring_theory.tensor_product
/-!
# Bimodules
One frequently encounters situations in which several sets of scalars act on a single space, subject
to compatibility co... |
e3a2c0f48266f6e657582e43a95eb466d7969eeb | 8cae430f0a71442d02dbb1cbb14073b31048e4b0 | /src/linear_algebra/free_module/norm.lean | f9366158ef8a6f86970ef968fc7b7363c160a809 | [
"Apache-2.0"
] | permissive | leanprover-community/mathlib | 56a2cadd17ac88caf4ece0a775932fa26327ba0e | 442a83d738cb208d3600056c489be16900ba701d | refs/heads/master | 1,693,584,102,358 | 1,693,471,902,000 | 1,693,471,902,000 | 97,922,418 | 1,595 | 352 | Apache-2.0 | 1,694,693,445,000 | 1,500,624,130,000 | Lean | UTF-8 | Lean | false | false | 3,238 | lean | /-
Copyright (c) 2023 Junyan Xu. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Junyan Xu
-/
import linear_algebra.free_module.ideal_quotient
import ring_theory.norm
/-!
# Norms on free modules over principal ideal domains
> THIS FILE IS SYNCHRONIZED WITH MATHLIB4.
... |
02299938df55dc31e23e3eb7b74b1dae59ea82b7 | 5a6ff5f8d173cbfe51967eb4c96837e3a791fe3d | /mm0-lean/mm0/fol.lean | 8d94a1962c4089d13138ed82cf635a0a083cf7a0 | [
"CC0-1.0"
] | permissive | digama0/mm0 | 491ac09146708aa1bb775007bf3dbe339ffc0096 | 98496badaf6464e56ed7b4204e7d54b85667cb01 | refs/heads/master | 1,692,321,030,902 | 1,686,254,458,000 | 1,686,254,458,000 | 172,456,790 | 273 | 38 | CC0-1.0 | 1,689,939,563,000 | 1,551,080,059,000 | Rust | UTF-8 | Lean | false | false | 25,230 | lean | import zfc
def deps := list bool
def deps.single (n : ℕ) : deps :=
nat.rec ([tt]) (λ _, list.cons ff) n
-- | 0 := [tt]
-- | (n+1) := ff :: deps.single n
def deps.union (d1 : deps) : deps → deps :=
list.rec id (λ a l₁ IH l₂,
list.cases_on l₂ l₁ (λ b l₂, (a || b) :: IH l₂)) d1
-- | [] l := l
-- | l [] := l
-- | (a :... |
192c0b42fedee173582bc67bc939f3bed89205a1 | 4d2583807a5ac6caaffd3d7a5f646d61ca85d532 | /src/analysis/normed_space/extend.lean | 9671569b0aeb6e5b6997748e5a11d8a3b2098eb3 | [
"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 | 6,858 | lean | /-
Copyright (c) 2020 Ruben Van de Velde. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Ruben Van de Velde
-/
import algebra.algebra.restrict_scalars
import data.complex.is_R_or_C
/-!
# Extending a continuous `ℝ`-linear map to a continuous `𝕜`-linear map
In this f... |
bdf02fbc0c17e6a43ab1bdd4c6eba63295ed2c8f | 367134ba5a65885e863bdc4507601606690974c1 | /src/field_theory/normal.lean | a2b9e446a6a1b0993bcfbacbe799745ebc15dbc0 | [
"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 | 14,409 | lean | /-
Copyright (c) 2020 Kenny Lau. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Kenny Lau
-/
import field_theory.adjoin
import field_theory.minpoly
import field_theory.splitting_field
import field_theory.tower
/-!
# Normal field extensions
In this file we define nor... |
a2abf3ccd66b7ddcd20e250f6781ec8c017a8196 | 94e33a31faa76775069b071adea97e86e218a8ee | /src/ring_theory/adjoin_root.lean | 2a5c9aa80da78c9c444b50da82acb9f505a6d30a | [
"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 | 20,438 | lean | /-
Copyright (c) 2018 Mario Carneiro. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Mario Carneiro, Chris Hughes
-/
import data.polynomial.field_division
import linear_algebra.finite_dimensional
import ring_theory.adjoin.basic
import ring_theory.power_basis
import rin... |
b676be33e5a21f8c782a4ea4d9f753f172f976a8 | 8cae430f0a71442d02dbb1cbb14073b31048e4b0 | /src/linear_algebra/bilinear_form.lean | c2aff4436f65f3faa2aad085c26a076493040b22 | [
"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 | 54,851 | lean | /-
Copyright (c) 2018 Andreas Swerdlow. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Andreas Swerdlow, Kexing Ying
-/
import linear_algebra.dual
import linear_algebra.free_module.finite.matrix
/-!
# Bilinear form
> THIS FILE IS SYNCHRONIZED WITH MATHLIB4.
> Any ch... |
9583c93ce8ce8bdfb41924cd5e4a6722e715d6cb | 6094e25ea0b7699e642463b48e51b2ead6ddc23f | /library/algebra/ring.lean | d3f58e69a4474e3d35f2ac3b46687f67f74d9752 | [
"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 | 18,288 | 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
Structures with multiplicative and additive components, including semirings, rings, and fields.
The development is modeled after Isabelle's library.
-/... |
9b883df2c7264ab62ce5459b39e66b634ef683e7 | 206422fb9edabf63def0ed2aa3f489150fb09ccb | /src/computability/partrec.lean | 9a1792def8cfafbc1c1929e4755554d9f394e248 | [
"Apache-2.0"
] | permissive | hamdysalah1/mathlib | b915f86b2503feeae268de369f1b16932321f097 | 95454452f6b3569bf967d35aab8d852b1ddf8017 | refs/heads/master | 1,677,154,116,545 | 1,611,797,994,000 | 1,611,797,994,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 28,982 | lean | /-
Copyright (c) 2018 Mario Carneiro. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Author: Mario Carneiro
-/
import computability.primrec
import data.nat.psub
import data.pfun
/-!
# The partial recursive functions
The partial recursive functions are defined similarly to the... |
edda35325c746238ea5f9ba2d1635b30a8d37f69 | cf39355caa609c0f33405126beee2739aa3cb77e | /tests/lean/andthen_focus_error_message.lean | 8a519c2bc533d947db2819a685c3babe5f32b406 | [
"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 | 816 | lean | lemma ex3 (a b c : nat) : a + 0 = 0 + a ∧ b = b :=
begin
constructor ; [skip, skip, skip]
--^ The "insufficient number of goals" error message should be reported here.
end
lemma ex4 (a b c : nat) : a + 0 = 0 + a ∧ b = b :=
begin
constructor; [skip, skip, skip]
--^ Flycheck reports the error here if the... |
59bb314a508fcb000399523634445d6637ba2e42 | ff5230333a701471f46c57e8c115a073ebaaa448 | /library/init/meta/type_context.lean | 1d07989a1669bf80a44466b3323581d1cbd6b38e | [
"Apache-2.0"
] | permissive | stanford-cs242/lean | f81721d2b5d00bc175f2e58c57b710d465e6c858 | 7bd861261f4a37326dcf8d7a17f1f1f330e4548c | refs/heads/master | 1,600,957,431,849 | 1,576,465,093,000 | 1,576,465,093,000 | 225,779,423 | 0 | 3 | Apache-2.0 | 1,575,433,936,000 | 1,575,433,935,000 | null | UTF-8 | Lean | false | false | 6,299 | lean | prelude
import init.category init.meta.local_context init.meta.tactic init.meta.fun_info
namespace tactic.unsafe
/-- A monad that exposes the functionality of the C++ class `type_context`.
The idea is that the methods in `tco` are more powerful but _unsafe_ in the
sense that you can create terms that do not typ... |
1834afbfa3cb132e6e8d711d19350dbdbc5d4f5e | b7f22e51856f4989b970961f794f1c435f9b8f78 | /tests/lean/extra/bag.lean | 72a7dec3a316c562227b2e8f191dc7073eb5d6c3 | [
"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 | 34,469 | 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
Finite bags.
-/
import data.nat data.list.perm algebra.binary
open nat quot list subtype binary function eq.ops algebra
open [decl] perm
variable {A : Type}
... |
cd7cb612af124b15217f85059c7e794df0d70fe2 | ce6917c5bacabee346655160b74a307b4a5ab620 | /src/ch5/ex0213.lean | 3a9955012ebc82982b7f393f6869a5c89cdf8368 | [] | 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 | 76 | lean | example (x : ℕ) : x = x :=
begin
revert x,
intro y,
reflexivity
end
|
a9b9fc7a916d1dcaf95b4670c551fdd41e78b29a | ecdf4e083eb363cd3a0d6880399f86e2cd7f5adb | /src/group_theory/basic.lean | 6d7fd937aa1cc2a98df6f099840b37de5f478fb4 | [] | no_license | fpvandoorn/formalabstracts | 29aa71772da418f18994c38379e2192a6ef361f7 | cea2f9f96d89ee1187d1b01e33f22305cdfe4d59 | refs/heads/master | 1,609,476,761,601 | 1,558,130,287,000 | 1,558,130,287,000 | 97,261,457 | 0 | 2 | null | 1,550,879,230,000 | 1,500,056,313,000 | Lean | UTF-8 | Lean | false | false | 7,834 | lean | import tactic.omitted
group_theory.sylow group_theory.perm.cycles group_theory.free_group
data.nat.enat data.set.finite
category_theory.concrete_category category_theory.isomorphism
universes u v
open equiv
open category_theory
noncomputable theory
/-- The type of groups. -/
@[reducible] def Grou... |
d08f0008c69333feabbe0bea5d940c81b1cec373 | 55c7fc2bf55d496ace18cd6f3376e12bb14c8cc5 | /src/ring_theory/multiplicity.lean | 7e0b62804d76bc9c88aaaf395b893f871cbe40c4 | [
"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 | 17,340 | lean | /-
Copyright (c) 2018 Robert Y. Lewis. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Robert Y. Lewis, Chris Hughes
-/
import algebra.associated
import data.int.gcd
import algebra.big_operators.basic
import data.nat.enat
variables {α : Type*}
open nat roption
open_l... |
8355f0784ce1381af8d631bd48bfb9af297d395e | 4d2583807a5ac6caaffd3d7a5f646d61ca85d532 | /src/topology/algebra/multilinear.lean | 19dcd60db964d773bc7e87a36f1ac8fa2897ecc2 | [
"Apache-2.0"
] | permissive | AntoineChambert-Loir/mathlib | 64aabb896129885f12296a799818061bc90da1ff | 07be904260ab6e36a5769680b6012f03a4727134 | refs/heads/master | 1,693,187,631,771 | 1,636,719,886,000 | 1,636,719,886,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 17,214 | lean | /-
Copyright (c) 2020 Sébastien Gouëzel. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Sébastien Gouëzel
-/
import topology.algebra.module
import linear_algebra.multilinear.basic
/-!
# Continuous multilinear maps
We define continuous multilinear maps as maps from `Π... |
03a658f9ed8589de8267347c166d358776daf397 | b561a44b48979a98df50ade0789a21c79ee31288 | /stage0/src/Lean/Data/Lsp/Extra.lean | 045536e3c6766527736c307444bdd7ba556bbe85 | [
"Apache-2.0"
] | permissive | 3401ijk/lean4 | 97659c475ebd33a034fed515cb83a85f75ccfb06 | a5b1b8de4f4b038ff752b9e607b721f15a9a4351 | refs/heads/master | 1,693,933,007,651 | 1,636,424,845,000 | 1,636,424,845,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 5,183 | 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 Lean.Data.Json
import Lean.Data.JsonRpc
import Lean.Data.Lsp.Basic
/-! This file contains Lean-specific extensions to LSP. See the structure... |
2f6713b645fee56244efc59d90f10578acfb4865 | 9c1ad797ec8a5eddb37d34806c543602d9a6bf70 | /products/associator.lean | d5deb8c228db657eb458dbe4fd6791c82cbe5636 | [] | no_license | timjb/lean-category-theory | 816eefc3a0582c22c05f4ee1c57ed04e57c0982f | 12916cce261d08bb8740bc85e0175b75fb2a60f4 | refs/heads/master | 1,611,078,926,765 | 1,492,080,000,000 | 1,492,080,000,000 | 88,348,246 | 0 | 0 | null | 1,492,262,499,000 | 1,492,262,498,000 | null | UTF-8 | Lean | false | false | 874 | lean | -- Copyright (c) 2017 Scott Morrison. All rights reserved.
-- Released under Apache 2.0 license as described in the file LICENSE.
-- Authors: Stephen Morgan, Scott Morrison
import .products
open tqft.categories
open tqft.categories.functor
open tqft.categories.natural_transformation
namespace tqft.categories.products... |
d1d4e7431b6712d77c1ddcc9c6d341133e006864 | 432d948a4d3d242fdfb44b81c9e1b1baacd58617 | /src/ring_theory/int/basic.lean | 016f335103e832140db52387664b1d0749bcc69e | [
"Apache-2.0"
] | permissive | JLimperg/aesop3 | 306cc6570c556568897ed2e508c8869667252e8a | a4a116f650cc7403428e72bd2e2c4cda300fe03f | refs/heads/master | 1,682,884,916,368 | 1,620,320,033,000 | 1,620,320,033,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 14,194 | 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, Aaron Anderson
-/
import data.int.basic
import data.int.gcd
import ring_theory.multiplicity
import ring_theory.principal_ideal_domain
/-!
# Divisibili... |
13f3ae43a21e730b95d7a5bf8ec3075a253f5779 | 618003631150032a5676f229d13a079ac875ff77 | /src/tactic/alias.lean | 5b53cd48b7ca7a33f76c8015c46b7af1b955bb8d | [
"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 | 5,504 | 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.buffer.parser
import tactic.core
/-!
# The `alias` command
This file defines an `alias` command, which can be used to create copies
of a theorem or defi... |
116c0e56487976d838ed42a1da2d6488503fc00f | 6094e25ea0b7699e642463b48e51b2ead6ddc23f | /tests/lean/run/vector_subterm_pred.lean | 869047e7a376feaeaeab788657adb4486b393db7 | [
"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 | 2,973 | lean | import logic data.nat.basic data.sigma
open nat eq.ops sigma
inductive vector (A : Type) : nat → Type :=
| nil : vector A zero
| cons : A → (Π{n}, vector A n → vector A (succ n))
namespace vector
definition vec (A : Type) : Type := Σ n : nat, vector A n
definition to_vec {A : Type} {n : nat} (v : vector A n) : vec... |
82f22d8904fdde2e3a32c18bcaa6ddb6a9d17936 | 02005f45e00c7ecf2c8ca5db60251bd1e9c860b5 | /src/data/nat/parity.lean | 036e9c38827bf90eec907d3aeb9e3aba50ebc630 | [
"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 | 7,469 | lean | /-
Copyright (c) 2019 Jeremy Avigad. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Jeremy Avigad, Benjamin Davidson
The `even` and `odd` predicates on the natural numbers.
-/
import data.nat.modeq
namespace nat
variables {m n : ℕ}
@[simp] theorem mod_two_ne_one : ... |
e828ba011e0828a500f055440a1abc801400b6a7 | 4d2583807a5ac6caaffd3d7a5f646d61ca85d532 | /src/topology/continuous_function/algebra.lean | c1c2fb79db23a0575cd30944c79475e3436bc4df | [
"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 | 24,295 | lean | /-
Copyright (c) 2019 Scott Morrison. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Scott Morrison, Nicolò Cavalleri
-/
import topology.algebra.module
import topology.continuous_function.basic
import algebra.algebra.subalgebra
import tactic.field_simp
/-!
# Algebraic... |
422ee5232d7533ed10e249957dd9b044f9d501bf | 6fbf10071e62af7238f2de8f9aa83d55d8763907 | /answers/hw2.lean | 7134386fad4953f515edafec069f89a055169f6e | [] | no_license | HasanMukati/uva-cs-dm-s19 | ee5aad4568a3ca330c2738ed579c30e1308b03b0 | 3e7177682acdb56a2d16914e0344c10335583dcf | refs/heads/master | 1,596,946,213,130 | 1,568,221,949,000 | 1,568,221,949,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 4,850 | lean | /-
This is the second homework assignment for UVa CS2101, Spring 2019.
If you are in Professor Sullivan's class, you are to complete problems 1 - 8.
If you are in Prof. Hocking's class, you are to complete problems 9 - 13.
The first eight problems require that you carefully read the updated class
notes on relatio... |
0b015cde4d202be6057dfd5f300b5a4fe27637fe | 6432ea7a083ff6ba21ea17af9ee47b9c371760f7 | /src/Lean/Meta/Tactic/Cases.lean | 418a77e2eb5ce57e410c87943ec0ce9b5e9fa4b3 | [
"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 | 14,348 | 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.AppBuilder
import Lean.Meta.Tactic.Induction
import Lean.Meta.Tactic.Injection
import Lean.Meta.Tactic.Assert
import Lean.Meta.Tactic.Subst... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.