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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
eb523f938692428e05f4c6e5926ea2583fb06d53 | f3849be5d845a1cb97680f0bbbe03b85518312f0 | /library/init/meta/relation_tactics.lean | ca6b4785e5a2532c6df0d80e34b4638570d67c26 | [
"Apache-2.0"
] | permissive | bjoeris/lean | 0ed95125d762b17bfcb54dad1f9721f953f92eeb | 4e496b78d5e73545fa4f9a807155113d8e6b0561 | refs/heads/master | 1,611,251,218,281 | 1,495,337,658,000 | 1,495,337,658,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 1,849 | lean | /-
Copyright (c) 2016 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Leonardo de Moura
-/
prelude
import init.meta.tactic init.function
namespace tactic
open expr
private meta def relation_tactic (md : transparency) (op_for : environment → name... |
48a417571f135e70eb313d9386d50b7e6485ee75 | 618003631150032a5676f229d13a079ac875ff77 | /src/logic/relation.lean | 69793dec0d6f3d948ddeae382bf1477e8710e7d3 | [
"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 | 13,249 | 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
Transitive reflexive as well as reflexive closure of relations.
-/
import tactic.basic
variables {α : Type*} {β : Type*} {γ : Type*} {δ : Type*}
namespace relation
se... |
c56907bb07923f1e4441235d9a67962148e71a90 | 36c7a18fd72e5b57229bd8ba36493daf536a19ce | /tests/lean/simplifier14.lean | 0841c666af9def15846a9096d442a13009a3bc94 | [
"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 | 1,070 | lean | -- Basic fusion
import algebra.simplifier
open algebra
universe l
constants (T : Type.{l}) (s : algebra.comm_ring T)
constants (x1 x2 x3 x4 : T) (f g : T → T)
attribute s [instance]
set_option simplify.max_steps 50000
set_option simplify.fuse true
#simplify eq simplifier.som 0 x1
#simplify eq simplifier.som 0 x1 + x1... |
03eda4c479f06f5d9169be95e3ee2992b20c95b5 | 206422fb9edabf63def0ed2aa3f489150fb09ccb | /src/group_theory/perm/sign.lean | 36ce301f85c5568c1d2c5b40d5f276e7ca709f59 | [
"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 | 33,155 | lean | /-
Copyright (c) 2018 Chris Hughes. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Chris Hughes
-/
import data.fintype.basic
import data.finset.sort
import group_theory.perm.basic
import group_theory.order_of_element
/-!
# Sign of a permutation
The main definition of... |
d5e8111c8cf1c7fcf58704297985376cf6ff0f6e | 55c7fc2bf55d496ace18cd6f3376e12bb14c8cc5 | /src/tactic/linarith/preprocessing.lean | b781085c36128c4018fecba52ccabe1da7d26003 | [
"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 | 11,034 | lean | /-
Copyright (c) 2020 Robert Y. Lewis. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Robert Y. Lewis
-/
import tactic.linarith.datatypes
import tactic.zify
import tactic.cancel_denoms
/-!
# Linarith preprocessing
This file contains methods used to preprocess inputs... |
b69c26ca41b6562405ac6ac60f39d72b16d165a0 | d406927ab5617694ec9ea7001f101b7c9e3d9702 | /src/linear_algebra/free_module/finite/basic.lean | 33ea9d0df25392c450fc25468a1710623673c3a4 | [
"Apache-2.0"
] | permissive | alreadydone/mathlib | dc0be621c6c8208c581f5170a8216c5ba6721927 | c982179ec21091d3e102d8a5d9f5fe06c8fafb73 | refs/heads/master | 1,685,523,275,196 | 1,670,184,141,000 | 1,670,184,141,000 | 287,574,545 | 0 | 0 | Apache-2.0 | 1,670,290,714,000 | 1,597,421,623,000 | Lean | UTF-8 | Lean | false | false | 2,028 | 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 ring_theory.finiteness
/-!
# Finite and free modules
We provide some instances for finite and free modules.
## Ma... |
51bd433dd4b86ec474d79167a2a4ed28aa2fd22b | 22e97a5d648fc451e25a06c668dc03ac7ed7bc25 | /src/data/set/basic.lean | 2889d51595f10294c760e2ef32fa5e3c7556a9eb | [
"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 | 66,194 | 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 tactic.basic
import tactic.finish
import data.subtype
import logic.unique
import data.prod
/-!
# Basic properties of sets
Sets in Lean are h... |
58e7ebd6df822978e352763264a1a6a49fcff217 | d406927ab5617694ec9ea7001f101b7c9e3d9702 | /src/data/rel.lean | d3a782870872c674d9b053911da40e1d1ad1d13f | [
"Apache-2.0"
] | permissive | alreadydone/mathlib | dc0be621c6c8208c581f5170a8216c5ba6721927 | c982179ec21091d3e102d8a5d9f5fe06c8fafb73 | refs/heads/master | 1,685,523,275,196 | 1,670,184,141,000 | 1,670,184,141,000 | 287,574,545 | 0 | 0 | Apache-2.0 | 1,670,290,714,000 | 1,597,421,623,000 | Lean | UTF-8 | Lean | false | false | 7,637 | lean | /-
Copyright (c) 2018 Jeremy Avigad. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Jeremy Avigad
-/
import order.complete_lattice
import order.galois_connection
/-!
# Relations
This file defines bundled relations. A relation between `α` and `β` is a function `α → β ... |
ca4d41e5a6dcdc5b2ef0011d3a9a2e4bb846a947 | 0c1546a496eccfb56620165cad015f88d56190c5 | /tests/lean/run/dsimp_test.lean | 6e6e51c56fd9d2a766b2378647966e20bae47e90 | [
"Apache-2.0"
] | permissive | Solertis/lean | 491e0939957486f664498fbfb02546e042699958 | 84188c5aa1673fdf37a082b2de8562dddf53df3f | refs/heads/master | 1,610,174,257,606 | 1,486,263,620,000 | 1,486,263,620,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 1,592 | lean | def f : nat → nat
| 0 := 10
| (n+1) := 20 + n
open list tactic
meta def check_expr (p : pexpr) (t : expr) : tactic unit :=
do e ← to_expr p, guard (t = e)
meta def check_target (p : pexpr) : tactic unit :=
do t ← target, check_expr p t
example (a b c : nat) : head (map f [1, 2, 3]) = 20 :=
begin
dsimp [map],
... |
d4e0541afa6cffb6f2e0e267f7e02b03b130f454 | 9dd3f3912f7321eb58ee9aa8f21778ad6221f87c | /tests/lean/run/vm_check_bug.lean | 76f112b3098b89d3b32204c55ac057619ba364e9 | [
"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 | 138 | lean | def f : nat → nat → nat
| (x+1) (y+1) := f (x+100000000) y
| (x+1) 0 := x
| 0 (y+1) := 1
| 0 0 := 1
vm_eval f 1 1000
|
3e396a8e4ea24caf7d39f440e35091f5fe30680c | 200b12985a863d01fbbde6abfc9326bb82424a8b | /src/propLogic/Ex002.lean | e2e702762607d9a4e9d82a85e5c29e83281428b2 | [] | no_license | SvenWille/LeanLogicExercises | 38eacd36733ac48e5a7aacf863c681c9a9a48271 | 2dbc920feadd63bbc50f87e69646c0081db26eba | refs/heads/master | 1,629,676,667,365 | 1,512,161,459,000 | 1,512,161,459,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 113 | lean |
--Proof: a -> b -> a
theorem Ex002(a b : Prop) : a -> b -> a :=
assume H1 : a,
assume H2 : b,
show a, from H1
|
9a0a1525b958a4d2198886ba6f5a274df6b968d8 | 8cae430f0a71442d02dbb1cbb14073b31048e4b0 | /src/algebra/module/ulift.lean | cb9655b89cc93b9ff0c64d868a9d2629c5869ac6 | [
"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,894 | 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 algebra.ring.ulift
import algebra.module.equiv
/-!
# `ulift` instances for module and multiplicative actions
> THIS FILE IS SYNCHRONIZED WITH MATHLIB4.
> Any... |
b3ee46f84785557c0aecf9e8c367070d5dc23255 | 367134ba5a65885e863bdc4507601606690974c1 | /src/category_theory/currying.lean | dd8b2426069d12f5da32e67006ae29b74eb050e3 | [
"Apache-2.0"
] | permissive | kodyvajjha/mathlib | 9bead00e90f68269a313f45f5561766cfd8d5cad | b98af5dd79e13a38d84438b850a2e8858ec21284 | refs/heads/master | 1,624,350,366,310 | 1,615,563,062,000 | 1,615,563,062,000 | 162,666,963 | 0 | 0 | Apache-2.0 | 1,545,367,651,000 | 1,545,367,651,000 | null | UTF-8 | Lean | false | false | 3,681 | lean | /-
Copyright (c) 2017 Scott Morrison. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Scott Morrison
-/
import category_theory.products.bifunctor
namespace category_theory
universes v₁ v₂ v₃ u₁ u₂ u₃
variables {C : Type u₁} [category.{v₁} C]
{D : Type u₂} [... |
ca41b13d7fa8a7a2a4094fc6eb43fbcb107f13f9 | 80cc5bf14c8ea85ff340d1d747a127dcadeb966f | /src/data/polynomial/monomial.lean | ce0219d1236348c4dce3096bfde92e686ca80861 | [
"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 | 2,349 | 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.basic
/-!
# Univariate monomials
Preparatory lemmas for degree_basic.
-/
noncomputable theory
o... |
83f7a41a4174bcaec968c32332421d4b13ed0406 | 57aec6ee746bc7e3a3dd5e767e53bd95beb82f6d | /stage0/src/Lean/Data/NameTrie.lean | e932c5ebdb1f583e045495319ebcd321d9ec4064 | [
"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 | 1,894 | 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.Data.PrefixTree
namespace Lean
inductive NamePart
| str (s : String)
| num (n : Nat)
instance : ToString NamePart where
toString
| ... |
c032b0c7f2dad021a75128a7abe6270e9c5896f5 | d406927ab5617694ec9ea7001f101b7c9e3d9702 | /src/analysis/normed/group/hom_completion.lean | ab054fd2d501ec66cde108d77eb439b2f1e52a7c | [
"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 | 11,156 | lean | /-
Copyright (c) 2021 Patrick Massot. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Patrick Massot
-/
import analysis.normed.group.hom
import analysis.normed.group.completion
/-!
# Completion of normed group homs
Given two (semi) normed groups `G` and `H` and a norm... |
ba79e52bd60710ca9e1f7f81a77d8b8b35599498 | 7b9ff28673cd3dd7dd3dcfe2ab8449f9244fe05a | /src/floris/lecture-mathlib.lean | 72a8581779dd01b0909f4722728c5be49cac543f | [] | no_license | jesse-michael-han/hanoi-lean-2019 | ea2f0e04f81093373c48447065765a964ee82262 | a5a9f368e394d563bfcc13e3773863924505b1ce | refs/heads/master | 1,591,320,223,247 | 1,561,022,886,000 | 1,561,022,886,000 | 192,264,820 | 1 | 1 | null | null | null | null | UTF-8 | Lean | false | false | 3,845 | lean | /-
Copyright (c) 2019 Floris van Doorn. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Author: Floris van Doorn.
A lecture on mathlib.
-/
import data.rat.basic tactic.norm_num
/-
You can find mathlib at https://github.com/leanprover-community/mathlib/
It was started in J... |
e27fb2fd99b79494481282428cb2fbf4922f735b | 63abd62053d479eae5abf4951554e1064a4c45b4 | /src/data/polynomial/eval.lean | c9fcc5e3869778bb872b324025a20e4fc2827f47 | [
"Apache-2.0"
] | permissive | Lix0120/mathlib | 0020745240315ed0e517cbf32e738d8f9811dd80 | e14c37827456fc6707f31b4d1d16f1f3a3205e91 | refs/heads/master | 1,673,102,855,024 | 1,604,151,044,000 | 1,604,151,044,000 | 308,930,245 | 0 | 0 | Apache-2.0 | 1,604,164,710,000 | 1,604,163,547,000 | null | UTF-8 | Lean | false | false | 20,127 | 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.induction
import data.polynomial.degree.basic
import deprecated.ring
/-!
# Theory of univariate po... |
5b199e979e5f7e23ac4af685aedd6cc9d10695f8 | 30b012bb72d640ec30c8fdd4c45fdfa67beb012c | /algebra/order.lean | 7f93edacfd142432e45cfa0fd3d70757bdb18803 | [
"Apache-2.0"
] | permissive | kckennylau/mathlib | 21fb810b701b10d6606d9002a4004f7672262e83 | 47b3477e20ffb5a06588dd3abb01fe0fe3205646 | refs/heads/master | 1,634,976,409,281 | 1,542,042,832,000 | 1,542,319,733,000 | 109,560,458 | 0 | 0 | Apache-2.0 | 1,542,369,208,000 | 1,509,867,494,000 | Lean | UTF-8 | Lean | false | false | 8,764 | lean | /-
Copyright (c) 2017 Mario Carneiro. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Mario Carneiro
-/
universe u
variables {α : Type u}
lemma not_le_of_lt [preorder α] {a b : α} (h : a < b) : ¬ b ≤ a :=
(le_not_le_of_lt h).right
lemma not_lt_of_le [preorder α] {a b... |
a3b5c6ee5ee71507fec8c3438e1e0c6de6bc7ee8 | 35677d2df3f081738fa6b08138e03ee36bc33cad | /src/ring_theory/algebra.lean | 7588c8dc53a12e4743fb4edda6fdfb21ea3394ca | [
"Apache-2.0"
] | permissive | gebner/mathlib | eab0150cc4f79ec45d2016a8c21750244a2e7ff0 | cc6a6edc397c55118df62831e23bfbd6e6c6b4ab | refs/heads/master | 1,625,574,853,976 | 1,586,712,827,000 | 1,586,712,827,000 | 99,101,412 | 1 | 0 | Apache-2.0 | 1,586,716,389,000 | 1,501,667,958,000 | Lean | UTF-8 | Lean | false | false | 20,610 | 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 data.complex.basic
import data.matrix.basic
import linear_algebra.tensor_product
import ring_theory.subring
import algebra.commute
/-!
# Algebra over ... |
ef599342f46020a607a0eb608d66810d12f8a060 | 737dc4b96c97368cb66b925eeea3ab633ec3d702 | /stage0/src/Init/Meta.lean | e23cb8d8c7010476d7cf9d463034c0722ce35ef4 | [
"Apache-2.0"
] | permissive | Bioye97/lean4 | 1ace34638efd9913dc5991443777b01a08983289 | bc3900cbb9adda83eed7e6affeaade7cfd07716d | refs/heads/master | 1,690,589,820,211 | 1,631,051,000,000 | 1,631,067,598,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 32,515 | 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 and Sebastian Ullrich
Additional goodies for writing macros
-/
prelude
import Init.Data.Array.Basic
namespace Lean
@[extern c inline "lean_box(LEAN_VERSION_... |
361ba5e223c282d5ef08c8c30f7ef8339913ba60 | 82e44445c70db0f03e30d7be725775f122d72f3e | /src/probability_theory/integration.lean | 7f4ad71ea2a4bea148b1282b38a180fe1863ea7f | [
"Apache-2.0"
] | permissive | stjordanis/mathlib | 51e286d19140e3788ef2c470bc7b953e4991f0c9 | 2568d41bca08f5d6bf39d915434c8447e21f42ee | refs/heads/master | 1,631,748,053,501 | 1,627,938,886,000 | 1,627,938,886,000 | 228,728,358 | 0 | 0 | Apache-2.0 | 1,576,630,588,000 | 1,576,630,587,000 | null | UTF-8 | Lean | false | false | 6,053 | lean | /-
Copyright (c) 2021 Martin Zinkevich. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Martin Zinkevich
-/
import measure_theory.integration
import probability_theory.independence
/-!
# Integration in Probability Theory
Integration results for independent random vari... |
bd45896784ab812036092dc555b553d4b7f7d68e | d751a70f46ed26dc0111a87f5bbe83e5c6648904 | /Code/src/inst/reaction.lean | 2191d92da3b5bcd30f65433de5500eca8832f059 | [] | no_license | marcusrossel/bachelors-thesis | 92cb12ae8436c10fbfab9bfe4929a0081e615b37 | d1ec2c2b5c3c6700a506f2e3cc93f1160e44b422 | refs/heads/main | 1,682,873,547,703 | 1,619,795,735,000 | 1,619,795,735,000 | 306,041,494 | 2 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 2,957 | lean | import data.finset
import inst.primitives
open reactor
open reactor.ports
-- Cf. inst/primitives.lean
variables (υ : Type*) [decidable_eq υ]
-- Reactions consist of a set of input dependencies `dᵢ`, output dependencies `dₒ`, `triggers` and
-- a function `body` that transforms a given input port assignment and reactor... |
0cbaf2ad0467e6485aad67620b9fe5d7e758895f | 2f8bf12144551bc7d8087a6320990c4621741f3d | /library/init/lean/compiler/ir/elimdead.lean | 16aebef41fbc8b47abbde8f7bc4f49d0d75b5580 | [
"Apache-2.0"
] | permissive | jesse-michael-han/lean4 | eb63a12960e69823749edceb4f23fd33fa2253ce | fa16920a6a7700cabc567aa629ce4ae2478a2f40 | refs/heads/master | 1,589,935,810,594 | 1,557,177,860,000 | 1,557,177,860,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 1,567 | lean | /-
Copyright (c) 2019 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Leonardo de Moura
-/
prelude
import init.lean.compiler.ir.basic
import init.lean.compiler.ir.freevars
namespace Lean
namespace IR
partial def reshapeWithoutDeadAux : Array FnB... |
208c697947601244f0ebcf2e871e45f6c84dfb87 | 8cae430f0a71442d02dbb1cbb14073b31048e4b0 | /src/topology/fiber_bundle/is_homeomorphic_trivial_bundle.lean | 90e1cc607c46bdfeb7535a336a92bcb57f3f9020 | [
"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,163 | 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.homeomorph
/-!
# Maps equivariantly-homeomorphic to projection in a product
> THIS FILE IS SYNCHRONIZED WITH MATHLIB4.
> Any changes to this f... |
6bcad645ff531c7d0e3f491b7e2b55ff812be44e | 7cef822f3b952965621309e88eadf618da0c8ae9 | /src/measure_theory/decomposition.lean | 566a34f88a373a44c4ae0463bac1914422018029 | [
"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 | 8,683 | lean | /-
Copyright (c) 2019 Johannes Hölzl. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Johannes Hölzl
Hahn decomposition theorem
TODO:
* introduce finite measures (into nnreal)
* show general for signed measures (into ℝ)
-/
import measure_theory.measure_space
open set... |
6654521f745bf1b8c8bfbdc472dd8a00903217e3 | 8cae430f0a71442d02dbb1cbb14073b31048e4b0 | /src/group_theory/subgroup/saturated.lean | b3594a30926f0dca8cea85ab077e8937241efd15 | [
"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,852 | lean | /-
Copyright (c) 2021 Johan Commelin. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Johan Commelin
-/
import group_theory.subgroup.basic
/-!
# Saturated subgroups
> THIS FILE IS SYNCHRONIZED WITH MATHLIB4.
> Any changes to this file require a corresponding PR to ma... |
cc90ec8fa1e19f7b6498c1b9f899c1ac3593e71d | 2eab05920d6eeb06665e1a6df77b3157354316ad | /src/data/polynomial/field_division.lean | ffbfed2fab2485e3834aa031e0004adaa4965b86 | [
"Apache-2.0"
] | permissive | ayush1801/mathlib | 78949b9f789f488148142221606bf15c02b960d2 | ce164e28f262acbb3de6281b3b03660a9f744e3c | refs/heads/master | 1,692,886,907,941 | 1,635,270,866,000 | 1,635,270,866,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 19,892 | lean | /-
Copyright (c) 2018 Chris Hughes. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Chris Hughes, Johannes Hölzl, Scott Morrison, Jens Wagemaker
-/
import algebra.gcd_monoid.basic
import data.polynomial.derivative
import data.polynomial.ring_division
import data.set.pai... |
a5c40ffcb8d1d85d7b7843f0080427c15cbd800f | 1cc8cf59a317bf12d71a5a8ed03bfc1948c66f10 | /src/problem_sheets/sheet_1/sht01Q03.lean | ce8bf61b8e52a6a518a4839bbe9603948428fced | [
"Apache-2.0"
] | permissive | kckennylau/M1P1-lean | 1e4fabf513539669f86a439af6844aa078c239ad | c92e524f3e4e7aec5dc09e05fb8923cc9720dd34 | refs/heads/master | 1,587,503,976,663 | 1,549,715,955,000 | 1,549,715,955,000 | 169,875,735 | 1 | 0 | Apache-2.0 | 1,549,722,917,000 | 1,549,722,917,000 | null | UTF-8 | Lean | false | false | 730 | lean | import data.real.basic tactic.linarith
theorem Q3 (S : set ℝ) (HS : ∃ a : ℝ, a ∈ S) (u : ℝ) (Hu : u ∈ upper_bounds S) :
is_lub S u ↔ ∀ ε > 0, ∃ s ∈ S, s > u - ε :=
begin
split,
{ intro Hu,
intros ε Hε,
let v := u - ε,
have Hv : ¬ (u ≤ v),
change ¬ (u ≤ u - ε),
linarith,
have Hv' : v ∉ u... |
eebd0a407007d986e751bcd939d79d06a57b0a3f | 4727251e0cd73359b15b664c3170e5d754078599 | /src/category_theory/category/PartialFun.lean | d10da5c1898027aaa5694d6fb61eec7a7addc837 | [
"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 | 6,376 | lean | /-
Copyright (c) 2022 Yaël Dillies. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Yaël Dillies
-/
import category_theory.category.Pointed
import data.pfun
/-!
# The category of types with partial functions
This defines `PartialFun`, the category of types equipped wi... |
06b410223b4b4854e2712c03bf3c24a591bf024d | 969dbdfed67fda40a6f5a2b4f8c4a3c7dc01e0fb | /src/category_theory/limits/shapes/kernels.lean | e92c4948d6fc344839a9b48502f1478c33e0ea64 | [
"Apache-2.0"
] | permissive | SAAluthwela/mathlib | 62044349d72dd63983a8500214736aa7779634d3 | 83a4b8b990907291421de54a78988c024dc8a552 | refs/heads/master | 1,679,433,873,417 | 1,615,998,031,000 | 1,615,998,031,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 27,140 | lean | /-
Copyright (c) 2019 Scott Morrison. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Scott Morrison, Markus Himmel
-/
import category_theory.limits.shapes.zero
/-!
# Kernels and cokernels
In a category with zero morphisms, the kernel of a morphism `f : X ⟶ Y` is
the ... |
e6801e08998639e022d23bd0d09aea62c9cc3920 | 6432ea7a083ff6ba21ea17af9ee47b9c371760f7 | /tests/compiler/partial.lean | be69e28e6e3d3b6c1e30a0c209b949f6874aaa10 | [
"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 | 350 | lean | --
set_option pp.explicit true
-- set_option trace.compiler.boxed true
partial def contains : String → Char → String.Pos → Bool
| s, c, i =>
if s.atEnd i then false
else if s.get i == c then true
else contains s c (s.next i)
def main : IO Unit :=
let s1 := "hello";
IO.println (contains s1 'a' 0) *>
IO.prin... |
f8fe932c1492dfd500b5f936ddce0e5705b85392 | 2eab05920d6eeb06665e1a6df77b3157354316ad | /src/data/nat/basic.lean | d782c895cb71068007f906d4d6af19ba7d5239df | [
"Apache-2.0"
] | permissive | ayush1801/mathlib | 78949b9f789f488148142221606bf15c02b960d2 | ce164e28f262acbb3de6281b3b03660a9f744e3c | refs/heads/master | 1,692,886,907,941 | 1,635,270,866,000 | 1,635,270,866,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 56,054 | 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.order.ring
/-!
# Basic operations on the natural numbers
This fi... |
482287b6a356915be0611c89c46b9538fe58fa69 | 5ae26df177f810c5006841e9c73dc56e01b978d7 | /src/data/mv_polynomial.lean | 968658559c2c944a860076f3d9991089f9911d91 | [
"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 | 42,169 | 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
Multivariate Polynomial
-/
import algebra.ring
import data.finsupp data.polynomial data.equiv.algebra
open set function finsupp lattice... |
bbb9fa1c3a38ae455c376b7603719f6b135b4965 | 367134ba5a65885e863bdc4507601606690974c1 | /test/tactics.lean | 00b8a8a13c6bb731c2e1ba51eee2c5c3b7a92492 | [
"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 | 16,323 | lean | /-
Copyright (c) 2018 Simon Hudon. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Simon Hudon, Scott Morrison
-/
import tactic.interactive
import tactic.finish
import tactic.ext
import tactic.lift
import tactic.apply
import tactic.reassoc_axiom
import tactic.tfae
impo... |
278dca94fbc4ea9eedbe5352407ae5ec7a1ef86b | 4fa161becb8ce7378a709f5992a594764699e268 | /src/data/equiv/mul_add.lean | c238d2c7a70db3c7079ba63cf00209b403f310a8 | [
"Apache-2.0"
] | permissive | laughinggas/mathlib | e4aa4565ae34e46e834434284cb26bd9d67bc373 | 86dcd5cda7a5017c8b3c8876c89a510a19d49aad | refs/heads/master | 1,669,496,232,688 | 1,592,831,995,000 | 1,592,831,995,000 | 274,155,979 | 0 | 0 | Apache-2.0 | 1,592,835,190,000 | 1,592,835,189,000 | null | UTF-8 | Lean | false | false | 12,088 | lean | /-
Copyright (c) 2018 Johannes Hölzl. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Johannes Hölzl, Callum Sutton, Yury Kudryashov
-/
import data.equiv.basic
import deprecated.group
/-!
# Multiplicative and additive equivs
In this file we define two extensions of `e... |
8528ae09c35789899365143f0ae2339181398bf7 | b7f22e51856f4989b970961f794f1c435f9b8f78 | /tests/lean/run/perm_with_pi_args.lean | 9370c22a6a48de01a094dfedd6f1073e83b04bc2 | [
"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 | 254 | lean | import data.matrix data.real data.fin
open matrix real
axiom mx_add_comm {m n} (M₁ M₂ : matrix ℝ m n) : M₁ + M₂ = M₂ + M₁
attribute mx_add_comm [simp]
example (m n : ℕ) (M₁ M₂ : matrix ℝ m n) : M₁ + M₂ = M₂ + M₁ := by simp
|
a0bfa5d8bfc6f8258a763ff1a207645c86c545cc | 1abd1ed12aa68b375cdef28959f39531c6e95b84 | /src/ring_theory/power_series/basic.lean | 2aaf4c4e504f9c61daa1744dac0375c03c5a148d | [
"Apache-2.0"
] | permissive | jumpy4/mathlib | d3829e75173012833e9f15ac16e481e17596de0f | af36f1a35f279f0e5b3c2a77647c6bf2cfd51a13 | refs/heads/master | 1,693,508,842,818 | 1,636,203,271,000 | 1,636,203,271,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 64,500 | lean | /-
Copyright (c) 2019 Johan Commelin. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Johan Commelin, Kenny Lau
-/
import data.mv_polynomial
import linear_algebra.std_basis
import ring_theory.ideal.local_ring
import ring_theory.multiplicity
import ring_theory.algebra_to... |
8e2a87e1557d69f41993aad77d750f6774708435 | d406927ab5617694ec9ea7001f101b7c9e3d9702 | /src/group_theory/complement.lean | bb98eb0f2162363719c134d5be7d030a8474d6a6 | [
"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 | 24,603 | lean | /-
Copyright (c) 2021 Thomas Browning. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Thomas Browning
-/
import data.zmod.quotient
/-!
# Complements
In this file we define the complement of a subgroup.
## Main definitions
- `is_complement S T` where `S` and `T` ar... |
940af19767d972683e6fb8c0583f15ed6b772ab3 | 5de7964e7bf47062fd89c1c93ee8e66af8e43c56 | /.config.lean | ea839ea83d2fe3e2e0ab49c333771c33c50a47ef | [
"MIT"
] | permissive | doppelkalt/MT1300 | 6cec000163a56100c8e36069e41e553429cf8aae | bc252f1601748549ec0c936871ac05f243d1055d | refs/heads/main | 1,678,470,446,990 | 1,613,995,552,000 | 1,613,995,552,000 | 341,185,676 | 10 | 0 | MIT | 1,613,995,253,000 | 1,613,995,253,000 | null | UTF-8 | Lean | false | false | 249,737 | lean | #
# Automatically generated file; DO NOT EDIT.
# OpenWrt Configuration
#
CONFIG_MODULES=y
CONFIG_HAVE_DOT_CONFIG=y
# CONFIG_TARGET_sunxi is not set
# CONFIG_TARGET_apm821xx is not set
# CONFIG_TARGET_ath25 is not set
# CONFIG_TARGET_ar71xx is not set
# CONFIG_TARGET_ath79 is not set
# CONFIG_TARGET_bcm27xx is not set
#... |
737052b7c011873c4bd5434890b3633cdf2d72e7 | 08bd4ba4ca87dba1f09d2c96a26f5d65da81f4b4 | /tests/lean/run/calcBug.lean | b60fca0a5ed1fc6421119c69f2ced7fc6efdc0fb | [
"LLVM-exception",
"NCSA",
"LGPL-3.0-only",
"LicenseRef-scancode-inner-net-2.0",
"BSD-3-Clause",
"LGPL-2.0-or-later",
"Spencer-94",
"LGPL-2.1-or-later",
"HPND",
"LicenseRef-scancode-pcre",
"ISC",
"LGPL-2.1-only",
"Apache-2.0",
"LicenseRef-scancode-other-permissive",
"SunPro",
"CMU-Mach"... | permissive | gebner/lean4 | d51c4922640a52a6f7426536ea669ef18a1d9af5 | 8cd9ce06843c9d42d6d6dc43d3e81e3b49dfc20f | refs/heads/master | 1,685,732,780,391 | 1,672,962,627,000 | 1,673,459,398,000 | 373,307,283 | 0 | 0 | Apache-2.0 | 1,691,316,730,000 | 1,622,669,271,000 | Lean | UTF-8 | Lean | false | false | 306 | lean | namespace Hidden
open Nat
theorem zero_add (n : Nat) : 0 + n = n :=
Nat.recOn (motive := fun x => 0 + x = x)
n
rfl
(fun (n : Nat) (ih : 0 + n = n) =>
show 0 + succ n = succ n from
calc
0 + succ n = succ (0 + n) := rfl
_ = succ n := by rw [ih])
end Hidden
|
423eb4e2bce305262c5af0dded31b48e2b816331 | 05f637fa14ac28031cb1ea92086a0f4eb23ff2b1 | /tests/lean/bad1.lean | 9e61e4f8428f9200a03e504101a0554bd4b3a26c | [
"Apache-2.0"
] | permissive | codyroux/lean0.1 | 1ce92751d664aacff0529e139083304a7bbc8a71 | 0dc6fb974aa85ed6f305a2f4b10a53a44ee5f0ef | refs/heads/master | 1,610,830,535,062 | 1,402,150,480,000 | 1,402,150,480,000 | 19,588,851 | 2 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 91 | lean | import Int.
variable g : forall A : Type, A -> A.
variables a b : Int
axiom H1 : g _ a > 0
|
c942650c254007623d80c3f266c99b9488b6b435 | 77c5b91fae1b966ddd1db969ba37b6f0e4901e88 | /src/data/mv_polynomial/basic.lean | 8fd6c9029691c4b1b5ae18bd878eef8c28ce12fc | [
"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 | 38,800 | lean | /-
Copyright (c) 2017 Johannes Hölzl. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Johannes Hölzl, Johan Commelin, Mario Carneiro
-/
import data.polynomial.eval
import data.finsupp.antidiagonal
import algebra.algebra.tower
/-!
# Multivariate polynomials
This file ... |
4cfa26079819b4734bc8133bb766ed6ff173fdfe | e151e9053bfd6d71740066474fc500a087837323 | /src/hott/init/meta/induction.lean | b0649a43be9591054a453c1aa0c10f6990ff1446 | [
"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 | 19,641 | lean | /-
Copyright (c) 2017 Floris van Doorn. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Author: Floris van Doorn
A tactic to infer truncatedness better than type-class inference.
-/
import .basic_tactics
namespace expr
/-- gives the arity of the type, i.e. the number of pi's ... |
56f94354927844fc4ad88d6fdeee89e2a0ddebbc | f5f7e6fae601a5fe3cac7cc3ed353ed781d62419 | /src/data/equiv/list.lean | 6810dbb7a1019d6086908679bd1e6d6443ac0920 | [
"Apache-2.0"
] | permissive | EdAyers/mathlib | 9ecfb2f14bd6caad748b64c9c131befbff0fb4e0 | ca5d4c1f16f9c451cf7170b10105d0051db79e1b | refs/heads/master | 1,626,189,395,845 | 1,555,284,396,000 | 1,555,284,396,000 | 144,004,030 | 0 | 0 | Apache-2.0 | 1,533,727,664,000 | 1,533,727,663,000 | null | UTF-8 | Lean | false | false | 8,932 | lean | /-
Copyright (c) 2018 Mario Carneiro. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Author: Mario Carneiro
Additional equiv and encodable instances for lists and finsets.
-/
import data.equiv.denumerable data.nat.pairing order.order_iso
data.vector2 data.array.lemmas data.f... |
5540d341ddcffbd5f18e16b7d53359e7c0068e29 | 9028d228ac200bbefe3a711342514dd4e4458bff | /src/analysis/special_functions/pow.lean | 8bbaa46eb8a4b493390bf2709c8b600040ccb1c5 | [
"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 | 52,125 | lean | /-
Copyright (c) 2018 Chris Hughes. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Chris Hughes, Abhimanyu Pallavi Sudhir, Jean Lo, Calle Sönne, Sébastien Gouëzel
-/
import analysis.special_functions.trigonometric
import analysis.calculus.extend_deriv
/-!
# Power func... |
8753b18a3fce9f68e3d86b56cc34ebceee967ef6 | fa02ed5a3c9c0adee3c26887a16855e7841c668b | /docs/tutorial/category_theory/Ab.lean | cc6dc64ffed425cd2ba00db420c4be8296706fac | [
"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 | 599 | 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 algebra.category.Group
import category_theory.limits.shapes.kernels
noncomputable theory
open category_theory
open category_theory.limits
/-!
Some small exa... |
efe500e0302a611cafe01036f1e3bcad2c3fd163 | ebf7140a9ea507409ff4c994124fa36e79b4ae35 | /src/hints/category_theory/exercise3/hint1.lean | f25329efe45f65bfff5897c4e4a103e0dfb53a62 | [] | no_license | fundou/lftcm2020 | 3e88d58a92755ea5dd49f19c36239c35286ecf5e | 99d11bf3bcd71ffeaef0250caa08ecc46e69b55b | refs/heads/master | 1,685,610,799,304 | 1,624,070,416,000 | 1,624,070,416,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 682 | lean | import category_theory.equivalence
open category_theory
variables {C : Type*} [category C]
variables {D : Type*} [category D]
lemma equiv_reflects_mono {X Y : C} (f : X ⟶ Y) (e : C ≌ D)
(hef : mono (e.functor.map f)) : mono f :=
begin
-- My first instinct is always to call `tidy`, to see how far it gets:
tidy,... |
5c67bb8bbca7efb82e5b20e2bcfd53ad1dc615ac | 74addaa0e41490cbaf2abd313a764c96df57b05d | /Mathlib/tactic/rewrite_search/explain.lean | 23bdf2126cfa4ff45411b5eed330b1ea8a1ef4df | [] | 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,434 | lean | /-
Copyright (c) 2020 Kevin Lacker, Keeley Hoek, Scott Morrison. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Kevin Lacker, Keeley Hoek, Scott Morrison
-/
import Mathlib.PrePort
import Mathlib.Lean3Lib.init.default
import Mathlib.tactic.rewrite_search.types
import Ma... |
3ac33571757a79b6541c574ea8128551c7d3ee85 | 6b10c15e653d49d146378acda9f3692e9b5b1950 | /examples/logic/unnamed_455.lean | ec08717759f2222c9c4757eceb0ac5c51e248fb5 | [] | no_license | gebner/mathematics_in_lean | 3cf7f18767208ea6c3307ec3a67c7ac266d8514d | 6d1462bba46d66a9b948fc1aef2714fd265cde0b | refs/heads/master | 1,655,301,945,565 | 1,588,697,505,000 | 1,588,697,505,000 | 261,523,603 | 0 | 0 | null | 1,588,695,611,000 | 1,588,695,610,000 | null | UTF-8 | Lean | false | false | 277 | lean | variables A B C : Prop
theorem impl_compose : (A → B) → (B → C) → A → C :=
λ h₁ h₂ h₃, h₂ (h₁ h₃)
-- BEGIN
example : (A → B) → ¬ B → ¬ A :=
impl_compose _ _ _
example (h₁ : A → B) (h₂ : ¬ B) : ¬ A :=
impl_compose _ _ _ h₁ h₂
-- END |
806663f002abc5f60196269fb2b5453092c2b6e4 | ac89c256db07448984849346288e0eeffe8b20d0 | /stage0/src/Lean/Parser/Command.lean | 4737b39b3b36781c67b20c02feb79b0bb0bc8229 | [
"Apache-2.0"
] | permissive | chepinzhang/lean4 | 002cc667f35417a418f0ebc9cb4a44559bb0ccac | 24fe2875c68549b5481f07c57eab4ad4a0ae5305 | refs/heads/master | 1,688,942,838,326 | 1,628,801,942,000 | 1,628,801,995,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 9,961 | lean | /-
Copyright (c) 2019 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Leonardo de Moura, Sebastian Ullrich
-/
import Lean.Parser.Term
import Lean.Parser.Do
namespace Lean
namespace Parser
/--
Syntax quotation for terms and (lists of) commands.... |
3ba05bdd03c52d8644131af637f7031f9aedef8b | 4727251e0cd73359b15b664c3170e5d754078599 | /src/algebra/star/pointwise.lean | ad20032b19e13671a53b90096b4e7f2a53270e66 | [
"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,237 | lean | /-
Copyright (c) 2022 Jireh Loreaux. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Jireh Loreaux
-/
import algebra.star.basic
import data.set.pointwise
/-!
# Pointwise star operation on sets
This file defines the star operation pointwise on sets and provides the bas... |
a8c49aed0f0d4a931e13267c3cb2b25cd577183b | 55c7fc2bf55d496ace18cd6f3376e12bb14c8cc5 | /src/tactic/cancel_denoms.lean | 5cf74d6b3db6b853e4a37e637619873f4ee3396f | [
"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 | 9,297 | lean | /-
Copyright (c) 2020 Robert Y. Lewis. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Robert Y. Lewis
-/
import data.rat.meta_defs
import tactic.norm_num
import data.tree
import meta.expr
/-!
# A tactic for canceling numeric denominators
This file defines tactics th... |
a35d2ec04643dec4c98335e194bed0d78ede118b | 4fa161becb8ce7378a709f5992a594764699e268 | /src/category_theory/adjunction/basic.lean | 63475d123a3a09cd2b6a445d218ff2425a678f53 | [
"Apache-2.0"
] | permissive | laughinggas/mathlib | e4aa4565ae34e46e834434284cb26bd9d67bc373 | 86dcd5cda7a5017c8b3c8876c89a510a19d49aad | refs/heads/master | 1,669,496,232,688 | 1,592,831,995,000 | 1,592,831,995,000 | 274,155,979 | 0 | 0 | Apache-2.0 | 1,592,835,190,000 | 1,592,835,189,000 | null | UTF-8 | Lean | false | false | 15,078 | lean | /-
Copyright (c) 2019 Reid Barton. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Reid Barton, Johan Commelin, Bhavik Mehta
-/
import category_theory.equivalence
import data.equiv.basic
namespace category_theory
open category
universes v₁ v₂ v₃ u₁ u₂ u₃ -- declare th... |
628ce77cae4042494378a4ee08c1d9898570ea9d | dd0f5513e11c52db157d2fcc8456d9401a6cd9da | /09_Type_Classes.org.27.lean | 11ae142c78e918b6f38895cc11cc6f563295073c | [] | 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 | 128 | lean | import standard
import data.nat
open nat decidable
definition ball (n : nat) (P : nat → Prop) : Prop :=
∀ x, x < n → P x
|
d6898da3bd3f9e5744c50e50c770da8278cdc533 | 9be442d9ec2fcf442516ed6e9e1660aa9071b7bd | /stage0/src/Lean/Elab/ComputedFields.lean | f07f4f23b3feaed933e797c1549b1055ddce0b5c | [
"Apache-2.0",
"LLVM-exception",
"NCSA",
"LGPL-3.0-only",
"LicenseRef-scancode-inner-net-2.0",
"BSD-3-Clause",
"LGPL-2.0-or-later",
"Spencer-94",
"LGPL-2.1-or-later",
"HPND",
"LicenseRef-scancode-pcre",
"ISC",
"LGPL-2.1-only",
"LicenseRef-scancode-other-permissive",
"SunPro",
"CMU-Mach"... | permissive | EdAyers/lean4 | 57ac632d6b0789cb91fab2170e8c9e40441221bd | 37ba0df5841bde51dbc2329da81ac23d4f6a4de4 | refs/heads/master | 1,676,463,245,298 | 1,660,619,433,000 | 1,660,619,433,000 | 183,433,437 | 1 | 0 | Apache-2.0 | 1,657,612,672,000 | 1,556,196,574,000 | Lean | UTF-8 | Lean | false | false | 9,554 | lean | /-
Copyright (c) 2022 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Gabriel Ebner
-/
import Lean.Meta.Constructions
import Lean.Compiler.ImplementedByAttr
import Lean.Elab.PreDefinition.WF.Eqns
/-!
# Computed fields
Inductives can have compute... |
def204583811837220b3ead8f0b74abbe48efc02 | 07c76fbd96ea1786cc6392fa834be62643cea420 | /hott/hit/set_quotient.hlean | 41d4540c7de5f588adb18b51484a16ffe45355ef | [
"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 | 6,918 | hlean | /-
Copyright (c) 2015 Floris van Doorn. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Floris van Doorn
Declaration of set-quotients, i.e. quotient of a mere relation which is then set-truncated.
-/
import function algebra.relation types.trunc types.eq hit.quotient
... |
d66a3b6630403db52e1cda15f8ef9d24beeeb1fd | bbecf0f1968d1fba4124103e4f6b55251d08e9c4 | /src/ring_theory/int/basic.lean | 24424053227559f8d550bbaeec24ce0c1bc360ce | [
"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 | 14,730 | 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 ring_theory.coprime.basic
import ring_theory.unique_factorization_domain
/-!
# Divisibility over ℕ and ℤ
This file collects r... |
8a62a14fe1fd86ad7709953adde07285934d7a48 | 74addaa0e41490cbaf2abd313a764c96df57b05d | /Mathlib/category_theory/limits/shapes/binary_products_auto.lean | 3e9a6ca722a8e035dab418a84875dd67c3fa1fb1 | [] | 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 | 44,045 | lean | /-
Copyright (c) 2019 Scott Morrison. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Scott Morrison, Bhavik Mehta
-/
import Mathlib.PrePort
import Mathlib.Lean3Lib.init.default
import Mathlib.category_theory.limits.limits
import Mathlib.category_theory.limits.shapes.te... |
0b34a470bb6abba9f7bedbc6758908d7b924daca | d406927ab5617694ec9ea7001f101b7c9e3d9702 | /src/data/int/least_greatest.lean | ae103739612d0376a5d4d647d6aa101c18ea287e | [
"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,010 | lean | /-
Copyright (c) 2016 Jeremy Avigad. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Jeremy Avigad, Mario Carneiro
-/
import data.int.order.basic
/-! # Least upper bound and greatest lower bound properties for integers
In this file we prove that a bounded above nonemp... |
2ebb1c10407f1a05d12485e2be2b2757679bbe87 | 82e44445c70db0f03e30d7be725775f122d72f3e | /src/algebra/big_operators/ring.lean | f72f7e3e8992335639dfe4a46ee5f8d045280c7d | [
"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 | 9,491 | lean | /-
Copyright (c) 2017 Johannes Hölzl. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Johannes Hölzl
-/
import algebra.big_operators.basic
import data.finset.pi
import data.finset.powerset
/-!
# Results about big operators with values in a (semi)ring
We prove results... |
cc72291aa5a8277c3af6b5fa07d8b2dccd59e709 | 491068d2ad28831e7dade8d6dff871c3e49d9431 | /tests/lean/run/rat_rfl.lean | 068bc12b284c887f13d3c9aa8722c1ea878aa7fb | [
"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 | 113 | lean | import data.rat
open rat
attribute rat.of_int [coercion]
example : 1 + 2⁻¹ + 3 = 3 + 2⁻¹ + 1⁻¹ :=
rfl
|
d0e53f3816b7f203163f01e0e98fa4d7c4d39fd0 | d7189ea2ef694124821b033e533f18905b5e87ef | /galois/bitvec/join.lean | 8e4730b82c903710a2ce8f7a0445d93e9f78f2a2 | [
"Apache-2.0"
] | permissive | digama0/lean-protocol-support | eaa7e6f8b8e0d5bbfff1f7f52bfb79a3b11b0f59 | cabfa3abedbdd6fdca6e2da6fbbf91a13ed48dda | refs/heads/master | 1,625,421,450,627 | 1,506,035,462,000 | 1,506,035,462,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 507 | lean | import data.bitvec
import galois.vector.join
namespace bitvec
definition join : Π {m n : ℕ}, vector (bitvec m) n → bitvec (m * n) := @vector.join bool
definition split : Π (m : ℕ) {n : ℕ}, bitvec (m * n) → vector (bitvec m) n := @vector.split bool
@[reducible]
definition join_list : Π {m : ℕ}, list (bitvec m) → list ... |
f39c3ca9c5ba6419555c7d34c94b613a217bf71a | 7cdf3413c097e5d36492d12cdd07030eb991d394 | /src/game/world5/level7.lean | 51a1cceb6ae7f1779a163fb627d19d81d2673cfb | [] | no_license | alreadydone/natural_number_game | 3135b9385a9f43e74cfbf79513fc37e69b99e0b3 | 1a39e693df4f4e871eb449890d3c7715a25c2ec9 | refs/heads/master | 1,599,387,390,105 | 1,573,200,587,000 | 1,573,200,691,000 | 220,397,084 | 0 | 0 | null | 1,573,192,734,000 | 1,573,192,733,000 | null | UTF-8 | Lean | false | false | 876 | lean | /-
# Function world.
## Level 7 : `(P → Q) → ((Q → F) → (P → F))`
Have you noticed that, in stark contrast to earlier worlds,
we are not amassing a large collection of useful theorems?
We really are just constructing abstract levels with sets and
functions, and then solving them and never using the results
ever ag... |
16668b4642e7c05bd40f0e99c3bedff1073280ef | 69d4931b605e11ca61881fc4f66db50a0a875e39 | /src/ring_theory/perfection.lean | 3552d0910d752e49304d542d22020f54a34f4199 | [
"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 | 25,364 | 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 algebra.char_p
import algebra.ring.pi
import analysis.special_functions.pow
import field_theory.perfect_closure
import ring_theory.localization
import ring_theory.subri... |
dc850d62fec85765a46a7a1c16627e56f72495cb | 432d948a4d3d242fdfb44b81c9e1b1baacd58617 | /src/linear_algebra/free_algebra.lean | b0c8470a6f486a31e1bcfda70704152b962eb2bc | [
"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 | 1,057 | lean | /-
Copyright (c) 2021 Eric Wieser. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Eric Wieser
-/
import linear_algebra.basis
import algebra.free_algebra
import linear_algebra.finsupp_vector_space
/-!
# Linear algebra properties of `free_algebra R X`
This file provides... |
8d4f46592e06301c09a20914bb208b3598bdcc2c | 22e97a5d648fc451e25a06c668dc03ac7ed7bc25 | /src/category_theory/limits/over.lean | 4ecbcd65e40a429bc9e5b5207eb6a2c2795d1968 | [
"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 | 12,613 | lean | /-
Copyright (c) 2018 Johan Commelin. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Johan Commelin, Reid Barton, Bhavik Mehta
-/
import category_theory.comma
import category_theory.pempty
import category_theory.limits.connected
import category_theory.limits.creates
im... |
c1c0a7c7aeb4c422e6f1a9e1f052074fe23a68dd | aa3f8992ef7806974bc1ffd468baa0c79f4d6643 | /tests/lean/run/e10.lean | ef62ec521fcdd08dfeb0e449c0b7f58f61ddad28 | [
"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 | 808 | lean | precedence `+`:65
namespace nat
constant nat : Type.{1}
constant add : nat → nat → nat
infixl + := add
end nat
namespace int
open nat (nat)
constant int : Type.{1}
constant add : int → int → int
infixl + := add
constant of_nat : nat → int
coercion of_nat
end int
section
open nat
open int
var... |
e9564ff7e0c34ebb5fcea3354510e30f32679935 | da23b545e1653cafd4ab88b3a42b9115a0b1355f | /src/tidy/at_least_one.lean | 63c999c04bbc518b6c445d66823a404138de07b1 | [] | 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 | 425 | lean | -- Copyright (c) 2017 Scott Morrison. All rights reserved.
-- Released under Apache 2.0 license as described in the file LICENSE.
-- Authors: Scott Morrison
import data.option
open tactic
meta def at_least_one {α} (tactics : list (tactic α)) : tactic (list α) :=
do
options ← monad.sequence (tactics.map (λ t, try... |
ca3b4936b54346731d105f9b1c63ec48e0053c94 | 4fa161becb8ce7378a709f5992a594764699e268 | /src/measure_theory/measure_space.lean | 4403723ea84667d2529fd9c51915bbfab75142f2 | [
"Apache-2.0"
] | permissive | laughinggas/mathlib | e4aa4565ae34e46e834434284cb26bd9d67bc373 | 86dcd5cda7a5017c8b3c8876c89a510a19d49aad | refs/heads/master | 1,669,496,232,688 | 1,592,831,995,000 | 1,592,831,995,000 | 274,155,979 | 0 | 0 | Apache-2.0 | 1,592,835,190,000 | 1,592,835,189,000 | null | UTF-8 | Lean | false | false | 38,317 | 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
/-!
# Measure spaces
Given a measurable space `α`, a measure on `α` is a function that sends measurable sets to t... |
4a1a0f464d5648fbb5417d108353a74f5060e432 | 88892181780ff536a81e794003fe058062f06758 | /src/100_theorems/t020.lean | bc05d88f074c1bd9070baa487bd82fedd1421712 | [] | 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 | 216 | lean | import number_theory.sum_two_squares
-- All Primes (1 mod 4) Equal the Sum of Two Squares
lemma t020 {p : ℕ} : p.prime → p % 4 = 1
→ ∃ a b : ℕ, a ^ 2 + b ^ 2 = p
:= nat.prime.sum_two_squares
#print t020
|
708fb36e767532887c50b210f4a02abe5140f28e | 75c54c8946bb4203e0aaf196f918424a17b0de99 | /src/abel.lean | f68958b81f69c4a1fe5ea219ccbd16ae72d6d6ef | [
"Apache-2.0"
] | permissive | urkud/flypitch | 261e2a45f1038130178575406df8aea78255ba77 | 2250f5eda14b6ef9fc3e4e1f4a9ac4005634de5c | refs/heads/master | 1,653,266,469,246 | 1,577,819,679,000 | 1,577,819,679,000 | 259,862,235 | 1 | 0 | Apache-2.0 | 1,588,147,244,000 | 1,588,147,244,000 | null | UTF-8 | Lean | false | false | 3,273 | lean | /-
Copyright (c) 2019 The Flypitch Project. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Jesse Han, Floris van Doorn
-/
import .fol
open fol
local notation h :: t := dvector.cons h t
local notation `[]` := dvector.nil
local notation `[` l:(foldr `, ` (h t, dvecto... |
fc3f19a2b1b3e1c9e8861bc4cc06429d495f4fc3 | 6b02ce66658141f3e0aa3dfa88cd30bbbb24d17b | /stage0/src/Lean/Elab/Command.lean | 07173b00b4a6eb3669fdba95c7db092caa716d0f | [
"Apache-2.0"
] | permissive | pbrinkmeier/lean4 | d31991fd64095e64490cb7157bcc6803f9c48af4 | 32fd82efc2eaf1232299e930ec16624b370eac39 | refs/heads/master | 1,681,364,001,662 | 1,618,425,427,000 | 1,618,425,427,000 | 358,314,562 | 0 | 0 | Apache-2.0 | 1,618,504,558,000 | 1,618,501,999,000 | null | UTF-8 | Lean | false | false | 26,576 | 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.Parser.Command
import Lean.ResolveName
import Lean.Meta.Reduce
import Lean.Elab.Log
import Lean.Elab.Term
import Lean.Elab.Binders
import Lean.E... |
f59a3339bd72408503c65610aca5834344363244 | 958488bc7f3c2044206e0358e56d7690b6ae696c | /lean/lem.lean | 1381c896bb0588b59572baf026e1703fdd549966 | [] | 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 | 976 | lean | open classical
#check @em
def U (p : Prop) (x : Prop) : Prop := x = true ∨ p
def V (p : Prop) (x : Prop) : Prop := x = false ∨ p
lemma exU : ∀ (p:Prop), ∃ (x : Prop), U p x :=
begin
intros p, existsi true, left, reflexivity
end
lemma exV : ∀ (p:Prop), ∃ (x : Prop), V p x :=
begin
intros p, existsi false, left,... |
364ede04e73d8633b6caadf320c895bc619b0a02 | 4727251e0cd73359b15b664c3170e5d754078599 | /src/topology/separation.lean | a92dfb113c69c44cc75cbc6362a084b59d904d99 | [
"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 | 83,617 | 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.subset_properties
import topology.connected
import topology.nhds_set
/-!
# Separation properties of topological spaces.
This file de... |
47acf357f52a93568e43cb49399c08588c37622b | fa02ed5a3c9c0adee3c26887a16855e7841c668b | /src/algebra/char_p/invertible.lean | b4b3addf3f301d79752ce67d3aa7c653d314289f | [
"Apache-2.0"
] | permissive | jjgarzella/mathlib | 96a345378c4e0bf26cf604aed84f90329e4896a2 | 395d8716c3ad03747059d482090e2bb97db612c8 | refs/heads/master | 1,686,480,124,379 | 1,625,163,323,000 | 1,625,163,323,000 | 281,190,421 | 2 | 0 | Apache-2.0 | 1,595,268,170,000 | 1,595,268,169,000 | null | UTF-8 | Lean | false | false | 2,104 | lean | /-
Copyright (c) 2020 Anne Baanen. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Anne Baanen
-/
import algebra.invertible
import algebra.field
import algebra.char_p.basic
/-!
# Invertibility of elements given a characteristic
This file includes some instances of `in... |
0932a7dce1beced2cef06ef6b70addb20e1ce3ae | d406927ab5617694ec9ea7001f101b7c9e3d9702 | /src/data/finset/noncomm_prod.lean | b6e9fe11fc6cf01226d36ea421bb30b03814de08 | [
"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 | 13,579 | lean | /-
Copyright (c) 2021 Yakov Pechersky. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Yakov Pechersky
-/
import data.fintype.card
import algebra.hom.commute
import algebra.big_operators.basic
/-!
# Products (respectively, sums) over a finset or a multiset.
The regula... |
149d7d3130e81adfa38396c48b40cfd377b55bdd | 26ac254ecb57ffcb886ff709cf018390161a9225 | /src/measure_theory/indicator_function.lean | 56997a361a15ed07fd2706f9fb852b1c0454e100 | [
"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 | 5,627 | lean | /-
Copyright (c) 2020 Zhouhang Zhou. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Zhouhang Zhou
-/
import data.indicator_function
import measure_theory.measure_space
/-!
# Indicator function
Properties of indicator functions.
## Tags
indicator, characteristic
-/
... |
24837221583e78e72841899f71798a611a9db942 | 6432ea7a083ff6ba21ea17af9ee47b9c371760f7 | /src/Lean/Elab/Eval.lean | 4c3682bc97d220ec07ad3edee54a40a28614db06 | [
"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 | 601 | lean | /-
Copyright (c) 2022 Sebastian Ullrich. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Sebastian Ullrich
-/
import Lean.Meta.Eval
import Lean.Elab.SyntheticMVars
namespace Lean.Elab.Term
open Meta
unsafe def evalTerm (α) (type : Expr) (value : Syntax) (safety := Def... |
0eea67afbc723a21ea617f4f1c7decce0825243f | 022547453607c6244552158ff25ab3bf17361760 | /src/topology/instances/ennreal.lean | 739c22e8f2aa30da41d79ed7b9d40481c7cc309a | [
"Apache-2.0"
] | permissive | 1293045656/mathlib | 5f81741a7c1ff1873440ec680b3680bfb6b7b048 | 4709e61525a60189733e72a50e564c58d534bed8 | refs/heads/master | 1,687,010,200,553 | 1,626,245,646,000 | 1,626,245,646,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 51,488 | 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 topology.instances.nnreal
import topology.algebra.ordered.liminf_limsup
/-!
# Extended non-negative reals
-/
noncomputable theory
open classical set filter m... |
d25d0a15db115420361d4bc1d74315742fdc7984 | d406927ab5617694ec9ea7001f101b7c9e3d9702 | /src/logic/function/basic.lean | fe2b2e20aaffd0a7ef409c74c4b2a3ea9ac9bc53 | [
"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 | 35,592 | lean | /-
Copyright (c) 2016 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 data.option.defs
import logic.nonempty
import tactic.cache
/-!
# Miscellaneous function constructions and lemmas
> THIS FILE IS SYNCHRONIZED ... |
92f212dfdf1f7e7f3141ada045cba68d40cd6245 | 8b9f17008684d796c8022dab552e42f0cb6fb347 | /tests/lean/run/uni2.lean | 86d61f014c7fb613190e6f4a7825463383c2eaec | [
"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 | 1,366 | lean | import logic
namespace experiment
inductive nat : Type :=
| zero : nat
| succ : nat → nat
constant f : nat → nat
check @nat.rec
(*
local env = get_env()
local nat_rec = Const({"nat", "rec"}, {1})
local nat = Const("nat")
local f = Const("f")
local n = Local("n", nat)
local C = Fun(n, Prop)
... |
69a31cb39831193ae76b2a1d6aa7717f366027b7 | 98beff2e97d91a54bdcee52f922c4e1866a6c9b9 | /src/equiv.lean | 1812235a8161450325ceaaeeac38ae5b869f4f83 | [] | no_license | b-mehta/topos | c3fc43fb04ba16bae1965ce5c26c6461172e5bc6 | c9032b11789e36038bc841a1e2b486972421b983 | refs/heads/master | 1,629,609,492,867 | 1,609,907,263,000 | 1,609,907,263,000 | 240,943,034 | 43 | 3 | null | 1,598,210,062,000 | 1,581,877,668,000 | Lean | UTF-8 | Lean | false | false | 15,199 | lean | import category_theory.epi_mono
import category_theory.limits.shapes.pullbacks
import category_theory.limits.shapes.binary_products
import category_theory.limits.shapes.finite_limits
import category_theory.limits.shapes.finite_products
-- import category.kernel_pair
import power
universes v u
open category_theory cat... |
ec12b7310142409aed982a510a06463771a69ec0 | 3c693e12637d1cf47effc09ab5e21700d1278e73 | /src/int/ZmodN.lean | 822ee92d74709545cbfb237d9caea773a6ea5562 | [] | no_license | ImperialCollegeLondon/Example-Lean-Projects | e731664ae046980921a69ccfeb2286674080c5bb | 87b27ba616eaf03f3642000829a481a1932dd08e | refs/heads/master | 1,685,399,670,721 | 1,623,092,696,000 | 1,623,092,696,000 | 275,571,570 | 19 | 1 | null | 1,593,361,524,000 | 1,593,344,124,000 | Lean | UTF-8 | Lean | false | false | 7,120 | lean | -- Integers mod 37
-- a demonstration of how to use equivalence relations and equivalence classes in Lean.
-- We define the "congruent mod 37" relation on integers,
-- prove it is an equivalence relation, define Zmod37 to be the equivalence classes,
-- and put a ring structure on the quotient.
import tactic
defini... |
a766c10eec1c529f8f9e5727c1b7664a6ed3571c | 5ae26df177f810c5006841e9c73dc56e01b978d7 | /src/group_theory/submonoid.lean | 8db5103a454450029225075626351625b93f0eaf | [
"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 | 14,653 | lean | /-
Copyright (c) 2018 Johannes Hölzl. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Johannes Hölzl, Kenny Lau, Johan Commelin, Mario Carneiro
-/
import algebra.big_operators
import data.finset
import tactic.subtype_instance
variables {α : Type*} [monoid α] {s : set α... |
547abaa47a5ea35332f2fd01bec323483fe3b14b | 6fca17f8d5025f89be1b2d9d15c9e0c4b4900cbf | /src/game/world8/level12.lean | 86ee0f3ecaf1ea46fdd25c942d6f8d659468a073 | [
"Apache-2.0"
] | permissive | arolihas/natural_number_game | 4f0c93feefec93b8824b2b96adff8b702b8b43ce | 8e4f7b4b42888a3b77429f90cce16292bd288138 | refs/heads/master | 1,621,872,426,808 | 1,586,270,467,000 | 1,586,270,467,000 | 253,648,466 | 0 | 0 | null | 1,586,219,694,000 | 1,586,219,694,000 | null | UTF-8 | Lean | false | false | 423 | lean | import game.world8.level11 -- hide
namespace mynat -- hide
/-
# Advanced Addition World
## Level 12: `add_one_eq_succ`
We have
* `succ_eq_add_one (n : mynat) : succ n = n + 1`
but sometimes the other way is also convenient.
-/
/- Theorem
For any natural number $d$, we have
$$ d+1 = \operatorname{succ}(d). $$
-... |
4bb11c6501bb0d1dcba50c5c4b04b154c5c49016 | 6432ea7a083ff6ba21ea17af9ee47b9c371760f7 | /tests/lean/run/1123.lean | 0a3849f3eb63e3b8ee0f7937a22fee18e4318dda | [
"Apache-2.0",
"LLVM-exception",
"NCSA",
"LGPL-3.0-only",
"LicenseRef-scancode-inner-net-2.0",
"BSD-3-Clause",
"LGPL-2.0-or-later",
"Spencer-94",
"LGPL-2.1-or-later",
"HPND",
"LicenseRef-scancode-pcre",
"ISC",
"LGPL-2.1-only",
"LicenseRef-scancode-other-permissive",
"SunPro",
"CMU-Mach"... | permissive | leanprover/lean4 | 4bdf9790294964627eb9be79f5e8f6157780b4cc | f1f9dc0f2f531af3312398999d8b8303fa5f096b | refs/heads/master | 1,693,360,665,786 | 1,693,350,868,000 | 1,693,350,868,000 | 129,571,436 | 2,827 | 311 | Apache-2.0 | 1,694,716,156,000 | 1,523,760,560,000 | Lean | UTF-8 | Lean | false | false | 1,713 | lean | class OpAssoc (op : α → α → α) : Prop where
protected op_assoc (x y z) : op (op x y) z = op x (op y z)
abbrev op_assoc (op : α → α → α) [self : OpAssoc op] := self.op_assoc
@[reducible]
structure SemigroupSig (α) where
op : α → α → α
@[reducible]
structure SemiringSig (α) where
add : α → α → α
mul : α → α → ... |
9f46c1b73ba9499241b06dad7b330bcf018b160c | 8cae430f0a71442d02dbb1cbb14073b31048e4b0 | /src/ring_theory/finite_presentation.lean | 87e17d5d983e2ed50cf1fa94615e67efe5dcab43 | [
"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 | 19,695 | 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 ring_theory.finite_type
import ring_theory.mv_polynomial.tower
import ring_theory.ideal.quotient_operations
/-!
# Finiteness conditions in commutative algebr... |
e31186ed580e89eabddc38b7adf2a90885668999 | e0f9ba56b7fedc16ef8697f6caeef5898b435143 | /src/topology/basic.lean | f623d99a2d537034572478454318e8f0ac7e0ba9 | [
"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 | 36,084 | 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, Jeremy Avigad
-/
import order.filter
import order.filter.bases
/-!
# Basic theory of topological spaces.
The main definition is the type class `topolo... |
3545666796ef384b086d7bee3d426223da59ca2f | d406927ab5617694ec9ea7001f101b7c9e3d9702 | /src/category_theory/limits/preserves/shapes/images.lean | 3c0ac14d8d7c2aa4bfa66ba4e4b69c3e44f83891 | [
"Apache-2.0"
] | permissive | alreadydone/mathlib | dc0be621c6c8208c581f5170a8216c5ba6721927 | c982179ec21091d3e102d8a5d9f5fe06c8fafb73 | refs/heads/master | 1,685,523,275,196 | 1,670,184,141,000 | 1,670,184,141,000 | 287,574,545 | 0 | 0 | Apache-2.0 | 1,670,290,714,000 | 1,597,421,623,000 | Lean | UTF-8 | Lean | false | false | 1,948 | lean | /-
Copyright (c) 2022 Jujian Zhang. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Jujian Zhang
-/
import category_theory.limits.shapes.images
import category_theory.limits.constructions.epi_mono
/-!
# Preserving images
In this file, we show that if a functor preserv... |
6105731a47dd5dbd041876b126b8d70b2df27d3c | 7cef822f3b952965621309e88eadf618da0c8ae9 | /src/topology/uniform_space/uniform_embedding.lean | 93e2552583b0aedb3ab1d6e6f4c60c28d659e314 | [
"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,057 | 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 topology.uni... |
cb20794a3aa9f3c786d52f155a19b21b28471a8d | 0003047346476c031128723dfd16fe273c6bc605 | /src/field_theory/mv_polynomial.lean | 77305ac462f458172da2df074d2b3ccd0ab30427 | [
"Apache-2.0"
] | permissive | ChandanKSingh/mathlib | d2bf4724ccc670bf24915c12c475748281d3fb73 | d60d1616958787ccb9842dc943534f90ea0bab64 | refs/heads/master | 1,588,238,823,679 | 1,552,867,469,000 | 1,552,867,469,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 6,725 | 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
Multivariate functions of the form `α^n → α` are isomorphic to multivariate polynomials in
`n` variables.
-/
import linear_algebra.finsupp field_theory.finite
noncomputa... |
70eb1e5fbc24e2a05ea9d98250ee7d9715069efa | 36938939954e91f23dec66a02728db08a7acfcf9 | /lean/deps/galois_stdlib/src/galois/category/except.lean | ba3c26c81aaa5ffb86abd6f9264d99a2f9746c23 | [
"Apache-2.0"
] | permissive | pnwamk/reopt-vcg | f8b56dd0279392a5e1c6aee721be8138e6b558d3 | c9f9f185fbefc25c36c4b506bbc85fd1a03c3b6d | refs/heads/master | 1,631,145,017,772 | 1,593,549,019,000 | 1,593,549,143,000 | 254,191,418 | 0 | 0 | null | 1,586,377,077,000 | 1,586,377,077,000 | null | UTF-8 | Lean | false | false | 1,638 | lean | /-
This provides a few missing definitions to the except monad
-/
namespace except
section
universes u v w
parameter {ε : Type u}
/-- Polymorphic version of except.map -/
protected def map_poly {α : Type v} {β : Type w} (f : α → β) : except ε α → except ε β
| (error err) := error err
| (ok v) := ok $ f ... |
b3d367a733a35d7f4188eba97c6ef9d90e1f0bf2 | d1a52c3f208fa42c41df8278c3d280f075eb020c | /src/Std/Data/AssocList.lean | ca7c49b48d0d83d614cb265686ca362c1eeeeedf | [
"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 | 3,350 | 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
-/
universe u v w w'
namespace Std
/- List-like type to avoid extra level of indirection -/
inductive AssocList (α : Type u) (β : Type v) where
| nil : Assoc... |
8c7470baf2c26cd93c525619bee41f8c09b83ca1 | d11a77796ce855e9f8d9d84892d54616b7d5a758 | /src/myfintype.lean | 8ccdaa578ff6836875ee16909bd236b6cad33db9 | [] | no_license | kmill/lean-graphcoloring | 014f2bfb8c0d4b2ddda9d7d4de3de2ecdbb40ad7 | 1bb2050ed358ff647186f89922d6a09b838444e5 | refs/heads/master | 1,666,902,260,074 | 1,591,913,639,000 | 1,591,913,639,000 | 271,116,459 | 2 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 770 | lean | import data.set
import data.list.basic
import data.vector
import tactic
namespace fintype
instance set.fintype_subtype_lt_nat (n : ℕ) : fintype {i : ℕ // i < n} := set.fintype_lt_nat n
def vector_list_filter_equiv {A} (n : ℕ) (p : list A → Prop)
: {x : vector A n // p x.1} ≃ {x : list A // x.length = n ∧ p x} :=
⟨(λ... |
a95295c67bf2bf2e092c3946181a19577b725501 | 8b9f17008684d796c8022dab552e42f0cb6fb347 | /tests/lean/run/using_expr.lean | 8c0ba81739ae2e8c462ee0ee98d50e03e5568437 | [
"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 | 209 | lean | example (p q : Prop) (H : p ∧ q) : p ∧ q ∧ p :=
have Hp : p, from and.elim_left H,
have Hq : q, from and.elim_right H,
using Hp Hq,
begin
apply and.intro, assumption,
apply and.intro, assumption
end
|
60057f7580f1f3c32af537db5d9fc9420149edce | e2fc96178628c7451e998a0db2b73877d0648be5 | /src/classes/unrestricted/basics/toolbox.lean | f2d0eb871265440a184c062866acf41f9ed13305 | [
"BSD-2-Clause"
] | permissive | madvorak/grammars | cd324ae19b28f7b8be9c3ad010ef7bf0fabe5df2 | 1447343a45fcb7821070f1e20b57288d437323a6 | refs/heads/main | 1,692,383,644,884 | 1,692,032,429,000 | 1,692,032,429,000 | 453,948,141 | 7 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 2,625 | lean | import classes.unrestricted.basics.definition
variables {T : Type} {g : grammar T}
/-- The relation `grammar_derives` is reflexive. -/
lemma grammar_deri_self {w : list (symbol T g.nt)} :
grammar_derives g w w :=
relation.refl_trans_gen.refl
lemma grammar_deri_of_tran {v w : list (symbol T g.nt)} :
grammar_tran... |
9dad27a527aeeb3e82460e7e179e25ad97c17cf1 | d7189ea2ef694124821b033e533f18905b5e87ef | /galois/network/network_implementation.lean | d2db01f157842c90661a48308e45ad6565b343d1 | [
"Apache-2.0"
] | permissive | digama0/lean-protocol-support | eaa7e6f8b8e0d5bbfff1f7f52bfb79a3b11b0f59 | cabfa3abedbdd6fdca6e2da6fbbf91a13ed48dda | refs/heads/master | 1,625,421,450,627 | 1,506,035,462,000 | 1,506,035,462,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 5,209 | lean | -- author: Ben Sherman
import .action
galois.tactic
galois.option
galois.temporal.temporal
universes u v
namespace network
structure incoming_items :=
(messages : list (socket × message_t))
def lookup_updatef {A : Type u} [decidable_eq A] {B : A → Type v}
(a : A) (f : B a → B a) (m : ∀ a, B... |
490b723f64c77aacb8452610db1e3b8a5e92fb40 | 8cae430f0a71442d02dbb1cbb14073b31048e4b0 | /src/tactic/mk_iff_of_inductive_prop.lean | 0df89372f2b85133c5261444562aa12f54c2adf7 | [
"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,811 | lean | /-
Copyright (c) 2018 Johannes Hölzl. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Johannes Hölzl
-/
import tactic.core
import tactic.lint
/-!
# mk_iff_of_inductive_prop
This file defines a tactic `tactic.mk_iff_of_inductive_prop` that generates `iff` rules for
indu... |
67b9dbf782f437f016e43f09bdd2dfaa6ac75bf2 | 137c667471a40116a7afd7261f030b30180468c2 | /src/group_theory/group_action/defs.lean | 8152df4fdd04a6d3368cdd3938a41652da72c127 | [
"Apache-2.0"
] | permissive | bragadeesh153/mathlib | 46bf814cfb1eecb34b5d1549b9117dc60f657792 | b577bb2cd1f96eb47031878256856020b76f73cd | refs/heads/master | 1,687,435,188,334 | 1,626,384,207,000 | 1,626,384,207,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 13,680 | lean | /-
Copyright (c) 2018 Chris Hughes. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Chris Hughes, Yury Kudryashov
-/
import algebra.group.defs
import algebra.group.hom
import logic.embedding
/-!
# Definitions of group actions
This file defines a hierarchy of group act... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.