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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
4ab00528d5ab76d536954406f4f3279151e7cf6d | 0845ae2ca02071debcfd4ac24be871236c01784f | /library/init/data/string/default.lean | aa5a1e84e590a72c03c23875dc5a60d83454ce89 | [
"Apache-2.0"
] | permissive | GaloisInc/lean4 | 74c267eb0e900bfaa23df8de86039483ecbd60b7 | 228ddd5fdcd98dd4e9c009f425284e86917938aa | refs/heads/master | 1,643,131,356,301 | 1,562,715,572,000 | 1,562,715,572,000 | 192,390,898 | 0 | 0 | null | 1,560,792,750,000 | 1,560,792,749,000 | null | UTF-8 | Lean | false | false | 202 | 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.data.string.basic
|
dcdf8675a1bc95ff071edc6db33417357c6fb50a | 98fc9038145109d45d4f564e700d7946883d8046 | /qed-lean.lean | 6a5c4bc363c8582654dd47f11e4f19a9d33f8d34 | [] | no_license | lkimelfeld/qedlean | de3dfd9df88e15cc75ca4fb490399eca0de4ffa4 | b5aedf874fa36d746777cdd905c1b95e32e3dac5 | refs/heads/master | 1,586,812,568,533 | 1,546,033,753,000 | 1,546,033,753,000 | 163,451,448 | 1 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 1,280 | lean | theorem T1_1 {A B : Prop} (ha : A ) (hb : B ) : (B /\ A) /\ B :=
and.intro (and.intro hb ha) hb
theorem T1_2 {A : Prop} (ha : A ) : A /\ A :=
and.intro ha ha
theorem T2_1 {A B : Prop} (h : A /\ B) : B /\ A :=
and.intro (and.right h) (and.left h)
theorem T3_1 {A B C: Prop} (h : A ) : C \/ (A \/ B) :=
... |
af8ad56714f089617514e07c06a5da0a34590fc0 | 9be442d9ec2fcf442516ed6e9e1660aa9071b7bd | /src/Lean/Data.lean | 8a12a68ac44ba35356b26b8d5b0fb2bea84d42f4 | [
"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 | 615 | lean | /-
Copyright (c) 2020 Sebastian Ullrich. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Sebastian Ullrich
-/
import Lean.Data.Format
import Lean.Data.Parsec
import Lean.Data.Json
import Lean.Data.Xml
import Lean.Data.JsonRpc
import Lean.Data.KVMap
import Lean.Data.LBoo... |
901325e56a1ed219d9e3cb3d1dd1f2be27042d26 | d1a52c3f208fa42c41df8278c3d280f075eb020c | /tests/lean/run/hmul2.lean | 7016b87ba5592c656bac2b4d5d0513be6cb047eb | [
"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 | 659 | lean | instance [Mul α] : HMul α (Array α) (Array α) where
hMul a as := as.map (a * .)
#check fun x => x * 2
#check fun y : Int => let x := 1; x * y
#check fun y : Int => let_delayed x := 1; x * y
def f1 (n : Nat) (i : Int) :=
i * n
def f2 (n : Nat) (i : Int) :=
n * i
def f3 (n : Nat) (i : Int) :=
n * (n * (n * (... |
d3cf307add21b0d7d01304ed8c1e4e3f34985826 | cf39355caa609c0f33405126beee2739aa3cb77e | /tests/lean/run/simp_subgoals.lean | 5770461efae5880df2f32884e57b1356a599c311 | [
"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 | 506 | lean | axiom DivS (x : nat) : x ≠ 0 → x / x = 1
open tactic
example (x : nat) (h : x ≠ 0) : x / x = 1 :=
begin
simp[DivS, h]
end
example (x : nat) (h : x ≠ 0) : x / x = 1 :=
begin
fail_if_success {simp [DivS]},
simp [DivS] {discharger := assumption}
end
constant f : nat → nat → nat
axiom flemma : ∀ a b, b ≠ 0 → a ≠ ... |
c8e8684ebfcc10091c33e69dfb74fe157d3c21b0 | 74addaa0e41490cbaf2abd313a764c96df57b05d | /Mathlib/algebra/field_power.lean | 9631f2b9b873f19c63a03ae14c6a1f138446596e | [] | no_license | AurelienSaue/Mathlib4_auto | f538cfd0980f65a6361eadea39e6fc639e9dae14 | 590df64109b08190abe22358fabc3eae000943f2 | refs/heads/master | 1,683,906,849,776 | 1,622,564,669,000 | 1,622,564,669,000 | 371,723,747 | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 4,413 | 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
Integer power operation on fields.
-/
import Mathlib.PrePort
import Mathlib.Lean3Lib.init.default
import Mathlib.algebra.group_with_zero.power
import Mathlib.tactic.l... |
5dde8e19053a9fd3205f1a800970687a7617295f | ebbdcbd7ddc89a9ef7c3b397b301d5f5272a918f | /qp/p1_categories/c7_cat_of_cats/s1_basic.lean | 24f988716721d09ed35f546e1ac95cc3a39a3c47 | [] | no_license | intoverflow/qvr | 34b9ef23604738381ca20b7d622fd0399d88f2dd | 0cfcd33fe4bf8d93851a00cec5bfd21e77105d74 | refs/heads/master | 1,616,591,570,371 | 1,492,575,772,000 | 1,492,575,772,000 | 80,061,627 | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 1,890 | lean | /- -----------------------------------------------------------------------
Basic properties of CatCat.
----------------------------------------------------------------------- -/
import ..c1_basic
import ..c2_limits
import ..c3_wtypes
import ..c4_topoi
namespace qp
open stdaux
universe variables ℓobj ℓhom
/- ----... |
f661d8ab45fa477e3015bc2a943ed28ae32d3095 | 31f556cdeb9239ffc2fad8f905e33987ff4feab9 | /stage0/src/Init/NotationExtra.lean | 0f92f532383e27d09443d51b3e7117a6f5ad7ca1 | [
"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 | 12,585 | 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
Extra notation that depends on Init/Meta
-/
prelude
import Init.Meta
import Init.Data.Array.Subarray
import Init.Data.ToString
namespace Lean
macro "Macro.tr... |
3867cf589924c22c7cb4f01d5dd3e15f7f1a531e | 5d166a16ae129621cb54ca9dde86c275d7d2b483 | /tests/lean/1639.lean | 91ab40cc9335a0f1172a7fe6c0d883b9debc233a | [
"Apache-2.0"
] | permissive | jcarlson23/lean | b00098763291397e0ac76b37a2dd96bc013bd247 | 8de88701247f54d325edd46c0eed57aeacb64baf | refs/heads/master | 1,611,571,813,719 | 1,497,020,963,000 | 1,497,021,515,000 | 93,882,536 | 1 | 0 | null | 1,497,029,896,000 | 1,497,029,896,000 | null | UTF-8 | Lean | false | false | 600 | lean | def some_lets : ℕ → ℕ → ℕ
| 0 v := v
| (nat.succ n) v := let k := some_lets n v + some_lets n v in some_lets n k
def some_unfolded_lets (n : ℕ) : Σ' v : ℕ , v = some_lets 5 n :=
begin
constructor; unfold some_lets; constructor
end
meta def foo : tactic unit :=
do [g] <- tactic.get_goals,
tactic.to... |
edc1eed093fd86d2d27e721975435fdf45f9f9b4 | 57c233acf9386e610d99ed20ef139c5f97504ba3 | /src/algebra/category/CommRing/limits.lean | f3451621813f9565f9ac5bf3f31984e9416116f4 | [
"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 | 15,397 | 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 algebra.ring.pi
import algebra.category.CommRing.basic
import algebra.category.Group.limits
import ring_theory.subring.basic
/-!
# The category of (commutativ... |
089a91ccbf6f6ee4adff7032f1b1577616b4616a | 55c7fc2bf55d496ace18cd6f3376e12bb14c8cc5 | /src/topology/metric_space/baire.lean | a9993c81176d83c982a8b35f0ad9411836b535d6 | [
"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,142 | 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.specific_limits
import order.filter.countable_Inter
/-!
# Baire theorem
In a complete metric space, a countable intersection of dense open sub... |
ec5a75d71998810aa261988511c87eb26720a06b | 63abd62053d479eae5abf4951554e1064a4c45b4 | /src/meta/rb_map.lean | 11d1bde0d4b19cf84b1ba7737345af8443223ffd | [
"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 | 7,878 | lean | /-
Copyright (c) 2018 Robert Y. Lewis. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Author: Robert Y. Lewis
-/
import data.option.defs
import data.list.defs
/-!
# rb_map
This file defines additional operations on native rb_maps and rb_sets.
These structures are defined in c... |
431ae48334201116a7dba3a6978ce703b3a28627 | 2c41ae31b2b771ad5646ad880201393f5269a7f0 | /Lean/Qualities/Maneuverable.lean | ad1890ffa4d42e5c84062e8eb78f5d8408af246c | [] | no_license | kevinsullivan/Boehm | 926f25bc6f1a8b6bd47d333d936fdfc278228312 | 55208395bff20d48a598b7fa33a4d55a2447a9cf | refs/heads/master | 1,586,127,134,302 | 1,488,252,326,000 | 1,488,252,326,000 | 32,836,930 | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 688 | lean | -- Maneuverable
/-
[Maneuverable] is parameterized by an instance of type [SystemType], and it's a sub-attribute to [MissionEffective].
An instance of type [SystemType] is deemed [Maneuverable] if and only if all the requirements are satisfied.
-/
import SystemModel.System
inductive Maneuverable (sys_type: S... |
4073e2136c648284b4f3e7d707b0ce641718a877 | f7315930643edc12e76c229a742d5446dad77097 | /hott/algebra/precategory/basic.hlean | 1e67ebad0218690a7e962d2b2aab6f6cb45333be | [
"Apache-2.0"
] | permissive | bmalehorn/lean | 8f77b762a76c59afff7b7403f9eb5fc2c3ce70c1 | 53653c352643751c4b62ff63ec5e555f11dae8eb | refs/heads/master | 1,610,945,684,489 | 1,429,681,220,000 | 1,429,681,449,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 10,056 | hlean | /-
Copyright (c) 2015 Floris van Doorn. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Module: algebra.precategory.basic
Authors: Floris van Doorn
-/
import types.trunc types.pi arity
open eq is_trunc pi
namespace category
structure precategory [class] (ob : Type) : Type ... |
a1ea36581307593999737bc87583c98708cd08a1 | 097294e9b80f0d9893ac160b9c7219aa135b51b9 | /instructor/objects/bool.lean | eba30dfa7da4a6fcb16f224036e66b34b8deefe2 | [] | no_license | AbigailCastro17/CS2102-Discrete-Math | cf296251be9418ce90206f5e66bde9163e21abf9 | d741e4d2d6a9b2e0c8380e51706218b8f608cee4 | refs/heads/main | 1,682,891,087,358 | 1,621,401,341,000 | 1,621,401,341,000 | 368,749,959 | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 382 | lean | -- The terms of type bool
#eval bool.tt
#eval bool.ff
--Shorthand
#eval tt
#eval ff
-- Boolean not operator
#eval bnot tt
#eval bnot ff
-- Boolean and operator
#eval band tt tt
#eval band tt ff
#eval band ff tt
#eval band ff ff
-- Boolean or operator
#eval bor tt tt
#eval bor tt ff
#eval bor ff tt
#eval bor ff ... |
4e725f9e2758d45e2faa82864e560c80dda136f1 | 510e96af568b060ed5858226ad954c258549f143 | /data/seq/wseq.lean | 9be3a6bfc3797f72346b6d091bdbd81609b4183e | [] | no_license | Shamrock-Frost/library_dev | cb6d1739237d81e17720118f72ba0a6db8a5906b | 0245c71e4931d3aceeacf0aea776454f6ee03c9c | refs/heads/master | 1,609,481,034,595 | 1,500,165,215,000 | 1,500,165,347,000 | 97,350,162 | 0 | 0 | null | 1,500,164,969,000 | 1,500,164,969,000 | null | UTF-8 | Lean | false | false | 51,673 | lean | /-
Copyright (c) 2017 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Author: Mario Carneiro
-/
import data.seq.seq data.seq.computation data.dlist
universes u v w
-- While the `seq` structure allows for lists which may not be finite,
-- a weak sequence a... |
f151c80f62eb1d270d7a0a7ff7a03881748dc331 | a45212b1526d532e6e83c44ddca6a05795113ddc | /src/category/traversable/instances.lean | faafa29ae929ed4c74ff20c7c4c7b90fd9705072 | [
"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 | 5,564 | lean | /-
Copyright (c) 2018 Simon Hudon. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Author: Simon Hudon
Instances of `traversable` for types from the core library
-/
import category.traversable.basic category.basic category.functor category.applicative
import data.list.basic da... |
30e86488456a1fd0799ae19fa5dc5ef3a426f979 | 9be442d9ec2fcf442516ed6e9e1660aa9071b7bd | /stage0/src/Std/Data/PersistentHashSet.lean | 1d444f3181a273737a0536a56af40e6d2183117b | [
"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 | 1,738 | 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
-/
import Std.Data.PersistentHashMap
namespace Std
universe u v
structure PersistentHashSet (α : Type u) [BEq α] [Hashable α] where
(set : PersistentHashMap... |
37eaaa89cce3a3fdd7ce8fbeade3f02c933e880b | cf39355caa609c0f33405126beee2739aa3cb77e | /tests/lean/interactive/field_info.lean | f4f9a7b1e0fae227f08cd4fd56156d99639678c0 | [
"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 | 385 | lean | def f (n : ℕ) := n.to_string
--^ "command": "info"
def g (l : list ℕ) := l.all
--^ "command": "info"
-- elaborated, not locally inferable
def h : list ℕ → (ℕ → bool) → bool :=
λ l, (l ++ l).all
--^ "command": "info"
-- not elaborated, locally inferable
def j := (list.... |
82829f5b715eae541e05a09f2cc126bbbf24e18a | 4727251e0cd73359b15b664c3170e5d754078599 | /src/linear_algebra/tensor_product.lean | c0f36a871fb9041a7f97ce1a50a7017baab832fd | [
"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 | 39,845 | 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
-/
import group_theory.congruence
import linear_algebra.bilinear_map
import linear_algebra.span
/-!
# Tensor product of modules over commutative semirings.
This... |
16ac868f56c39deb776d4e511a74e236c6e37d13 | fecda8e6b848337561d6467a1e30cf23176d6ad0 | /src/measure_theory/borel_space.lean | e7c95cc502e0bcf43b14a62f16838d2cc667331b | [
"Apache-2.0"
] | permissive | spolu/mathlib | bacf18c3d2a561d00ecdc9413187729dd1f705ed | 480c92cdfe1cf3c2d083abded87e82162e8814f4 | refs/heads/master | 1,671,684,094,325 | 1,600,736,045,000 | 1,600,736,045,000 | 297,564,749 | 1 | 0 | null | 1,600,758,368,000 | 1,600,758,367,000 | null | UTF-8 | Lean | false | false | 35,523 | 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, Yury Kudryashov
-/
import measure_theory.measure_space
import topology.instances.ennreal
import analysis.normed_space.basic
/-!
# Borel (measurable) space
## Main def... |
7211e7e7e4829f8f2d9fcc45a441872fa79ae3fb | 947b78d97130d56365ae2ec264df196ce769371a | /tests/lean/run/parseCore.lean | 58b57c19d43849ae4204dafe7d89c476ba28156f | [
"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 | 335 | lean | import Lean.Parser
new_frontend
def test : IO Unit :=
if System.Platform.isWindows then
pure () -- TODO investigate why the following doesn't work on Windows
else do
let env ← Lean.mkEmptyEnvironment;
Lean.Parser.parseFile env (System.mkFilePath ["..", "..", "..", "src", "Init", "Core.lean"]);
IO.println "done"... |
d31f09d052bacba2149f75bb8854468219bfc564 | 6432ea7a083ff6ba21ea17af9ee47b9c371760f7 | /tests/lean/interactive/completionEOF.lean | 31b03b3f660bc70717877b5d7db95761e7341c6d | [
"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 | 129 | lean | -- Local Variables:
-- require-final-newline: nil
-- End:
prelude
axiom And : Type
--v textDocument/completion
#check An |
8f5a9201da8e1aae3a09c4a59865e96ec117aa67 | 1abd1ed12aa68b375cdef28959f39531c6e95b84 | /src/data/set/pairwise.lean | cb91dbf09dc03594c50249d5173f1deafc6379d9 | [
"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 | 12,994 | 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 data.set.lattice
/-!
# Relations holding pairwise
This file defines pairwise relations and pairwise disjoint indexed sets.
## Main declarations
* `pairwise... |
9217a1517527822b31bdc64e4cc4ecc9d874977e | b7f22e51856f4989b970961f794f1c435f9b8f78 | /tests/lean/run/tactic27.lean | 318f63677e640006c82e74a32da5eb0bbfd48f84 | [
"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 | 260 | lean | import logic
open tactic
notation `(` h `|` r:(foldl `|` (e r, tactic.or_else r e) h) `)` := r
definition my_tac := repeat (apply @and.intro | apply @eq.refl)
tactic_hint my_tac
theorem T1 {A : Type} {B : Type} (a : A) (b c : B) : a = a ∧ b = b ∧ c = c
|
544c084294d5e7be55c5e9b04129810b2ae4f784 | 7b02c598aa57070b4cf4fbfe2416d0479220187f | /pointed_pi.hlean | 6f01e7e37bf310688cc0f9c24b3f4c6dbb3b6778 | [
"Apache-2.0"
] | permissive | jdchristensen/Spectral | 50d4f0ddaea1484d215ef74be951da6549de221d | 6ded2b94d7ae07c4098d96a68f80a9cd3d433eb8 | refs/heads/master | 1,611,555,010,649 | 1,496,724,191,000 | 1,496,724,191,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 9,026 | hlean | /-
Copyright (c) 2016 Ulrik Buchholtz. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Ulrik Buchholtz
-/
import .move_to_lib
open eq pointed equiv sigma is_equiv
/-
The goal of this file is to give the truncation level
of the type of pointed maps, giving the con... |
f847444d7ede588aa859c38a52d48bc395c19cc1 | 80cc5bf14c8ea85ff340d1d747a127dcadeb966f | /src/data/multiset/sections.lean | d02e777a9db8da0a0423f03bb54d080351c4b9c0 | [
"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,209 | lean | /-
Copyright (c) 2018 Johannes Hölzl. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Author: Johannes Hölzl
-/
import data.multiset.basic
/-!
# Sections of a multiset
-/
namespace multiset
variables {α : Type*}
section sections
/--
The sections of a multiset of multisets `s... |
fda7b81c17908c0bf45389f0a74eeb800ee7666e | 77c5b91fae1b966ddd1db969ba37b6f0e4901e88 | /src/group_theory/subgroup/basic.lean | 2004e19d1a3f99853c7c39d071f6826a98c22d65 | [
"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 | 93,976 | lean | /-
Copyright (c) 2020 Kexing Ying. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Kexing Ying
-/
import group_theory.submonoid
import group_theory.submonoid.center
import algebra.group.conj
import order.atoms
/-!
# Subgroups
This file defines multiplicative and addit... |
7985b3df7811e57c9b693e9665e451867fcceeee | 4727251e0cd73359b15b664c3170e5d754078599 | /archive/imo/imo2019_q4.lean | 9399020bc73bc10aa1aad969a3ac95a03faf9513 | [
"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,182 | lean | /-
Copyright (c) 2020 Floris van Doorn. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Floris van Doorn
-/
import tactic.interval_cases
import algebra.big_operators.order
import algebra.big_operators.enat
import data.nat.multiplicity
/-!
# IMO 2019 Q4
Find all pairs ... |
24b6a52051365650c1cdeff2d468822797895945 | 02005f45e00c7ecf2c8ca5db60251bd1e9c860b5 | /src/data/nat/modeq.lean | dc59c3789306770939b8061c49aef8a603af99e0 | [
"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 | 14,072 | 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.int.gcd
import tactic.abel
import data.list.rotate
/-
# Congruences modulo a natural number
This file defines the equivalence relation `a ≡ b [MOD n]` on... |
ce44366bb35f901fc3e199263d62317dcedb28ba | 2eab05920d6eeb06665e1a6df77b3157354316ad | /src/group_theory/complement.lean | adec0f57b7e18cbf3cf29dc0884cc90b5f594966 | [
"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 | 9,335 | lean | /-
Copyright (c) 2021 Thomas Browning. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Thomas Browning
-/
import group_theory.group_action
import group_theory.order_of_element
import group_theory.quotient_group
/-!
# Complements
In this file we define the complement ... |
02bc69da6b310bd5b4eed4297a2d00dd7ee2451d | 3268ab3a126f0fef71459fbf170dc38efe5d0506 | /algebra/exactness.hlean | 8e78fca7febedc0012c2df7e1035620e67ed6981 | [
"Apache-2.0"
] | permissive | soraismus/Spectral | f043fed1a4e02ddfeba531769b2980eb817471f4 | 32512bf47db3a1b932856e7ed7c7830b1fc07ef0 | refs/heads/master | 1,585,628,705,579 | 1,538,609,948,000 | 1,538,609,974,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 11,953 | hlean | /-
Copyright (c) 2017 Jeremy Avigad. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Jeremy Avigad
Short exact sequences
-/
import homotopy.chain_complex eq2 .quotient_group
open pointed is_trunc equiv is_equiv eq algebra group trunc function fiber sigma property
stru... |
4e6fec165d3a248541f5b743521036e09fbd560f | cf39355caa609c0f33405126beee2739aa3cb77e | /tests/lean/run/with_update_class.lean | 749ea65f091598acfe51bae35d8c74755514a956 | [
"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 | 169 | lean | universe variables u
class foo (A : Type u) :=
(x : A)
class bla (A : Type u) extends foo A :=
(y : nat)
def ex {A : Type u} [s : foo A] : bla A :=
{ s with y := 0 }
|
867ce127c8ff74bbf845ab43f4161fff20a82ec9 | 5d62e434e81e3303af5bef665e46bef75f10b45e | /has_scalar/src/test.lean | d019035dc4fdc504d0e266e983d0fc439e133f4e | [] | no_license | ChrisHughes24/type_class | 4b49764e9b96b2c7d2b6e4e7827730ca7a64a3b2 | b582b60bdc84b7cd17b4243600088143afddc65c | refs/heads/master | 1,595,404,449,845 | 1,567,951,656,000 | 1,567,951,656,000 | 207,121,926 | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 362 | lean | import data.matrix data.rat.basic ring_theory.algebra
-- decreasing this to 999 fixes the problem
local attribute [instance, priority 1000] algebra.has_scalar
-- https://leanprover.zulipchat.com/#narrow/stream/113488-general/topic/algebra.2Ehas_scalar.20causing.20problems
instance X {m : ℕ} : has_scalar ℚ (matrix (fi... |
efe15783e76d9c059d9f7a4629cd0360b64383cb | 4727251e0cd73359b15b664c3170e5d754078599 | /src/topology/order/hom/basic.lean | 885b93478fa7d575d04706fc73620709b93f7f38 | [
"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 | 5,269 | lean | /-
Copyright (c) 2022 Yaël Dillies. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Yaël Dillies
-/
import order.hom.basic
import topology.continuous_function.basic
/-!
# Continuous order homomorphisms
This file defines continuous order homomorphisms, that is maps whi... |
1c868617d83d3a10467262e669a99b090c49ce45 | 432d948a4d3d242fdfb44b81c9e1b1baacd58617 | /test/aesop/even_or_odd.lean | 231c9054896eed4fbe62cd1374e6de878c77ea16 | [
"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 | 976 | lean | /-
Copyright (c) 2021 Jannis Limperg. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Jannis Limperg
-/
import tactic.aesop
inductive Even : ℕ → Prop
| zero : Even 0
| plus_two {n} : Even n → Even (n + 2)
inductive Odd : ℕ → Prop
| one : Odd 1
| plus_two {n} : Odd n ... |
f922bdf09335e62f96a87cd8359c8b8f29e44bf2 | 80cc5bf14c8ea85ff340d1d747a127dcadeb966f | /src/analysis/normed_space/hahn_banach.lean | 47603325e7990f3a4806749bd5fc8b9dc4d4b075 | [
"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 | 7,649 | lean | /-
Copyright (c) 2020 Yury Kudryashov All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Yury Kudryashov, Heather Macbeth
-/
import analysis.normed_space.operator_norm
import analysis.normed_space.extend
import analysis.convex.cone
/-!
# Hahn-Banach theorem
In this file ... |
c194fe7c138defce11ad78f9b52d173045a066e1 | 4efff1f47634ff19e2f786deadd394270a59ecd2 | /src/data/mv_polynomial.lean | 2463b9fb0917dbc8c45390faf14508050cc71fea | [
"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 | 62,770 | 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, Shing Tak Lam
-/
import data.polynomial.eval
import data.equiv.ring
import data.equiv.fin
import tactic.omega
/-!
# Multivariate polyno... |
b5d0d722a1c1a39bdcc6ccf8e80d333acd3fea8e | 63abd62053d479eae5abf4951554e1064a4c45b4 | /src/data/int/basic.lean | 63eb2f01d45c681ad4f8d8310a38f3c29cde2603 | [
"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 | 50,744 | 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
import algebra.order_functions
open nat
namespace int
instance : inhabited ℤ := ... |
d32205b0ef28344290342e0409eee46bb3861188 | dd0f5513e11c52db157d2fcc8456d9401a6cd9da | /04_Quantifiers_and_Equality.org.13.lean | 1ca24f38754f7679178a7d0bcf815775e0664cff | [] | 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 | 248 | lean | /- page 52 -/
import standard
import data.nat data.prod
open nat prod
variables (A B : Type)
example (f : A → B) (a : A) : (λ x, f x) a = f a := eq.refl _
example (a : A) (b : A) : pr1 (a, b) = a := eq.refl _
example : 2 + 3 = 5 := eq.refl _
|
53aa303b5439ee2ccfc7be28db3e3eb16be77f69 | ce6917c5bacabee346655160b74a307b4a5ab620 | /src/ch5/ex0204.lean | 9799e76ed4bd048e658316f3d4c6a5b6f4e6de06 | [] | 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 | 158 | lean | variables x y z w : ℕ
example (h₁ : x = y) (h₂ : y = z) (h₃ : z = w) : x = w :=
begin
apply eq.trans h₁,
apply eq.trans h₂,
assumption
end
|
dd738d6568b75c934d6ccccfe41b5ba8456ed718 | fa02ed5a3c9c0adee3c26887a16855e7841c668b | /src/dynamics/fixed_points/basic.lean | 1c381b3dce96b8b3b571db15186af54071b98fc5 | [
"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 | 5,196 | lean | /-
Copyright (c) 2020 Yury Kudryashov. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Yury Kudryashov
-/
import data.set.function
import logic.function.iterate
/-!
# Fixed points of a self-map
In this file we define
* the predicate `is_fixed_pt f x := f x = x`;
* th... |
c693691eb145f67ac369e31263f5491485ba5b98 | a45212b1526d532e6e83c44ddca6a05795113ddc | /src/topology/algebra/infinite_sum.lean | 193b1f471a45da1f9287a5c84f2053e56df1d46d | [
"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 | 24,548 | 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
Infinite sum over a topological monoid
This sum is known as unconditionally convergent, as it sums to the same value under all possible
permutations. For Euclidean spa... |
b02f7a50d05e27ab783d1aad590594d7ce5ad95d | ebf7140a9ea507409ff4c994124fa36e79b4ae35 | /src/solutions/tuesday/sets.lean | 7d3454885ed3be24d64d462e1c94272829d17f56 | [] | 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 | 11,142 | lean | import data.set.basic data.set.lattice data.nat.parity
import tactic.linarith
open set nat function
open_locale classical
variables {α : Type*} {β : Type*} {γ : Type*} {I : Type*}
/-!
## Set exercises
These are collected from *Mathematics in Lean*.
We will go over the examples together, and then let you
work on t... |
67cd03b1cd1b332a177cd4e12c8893b16725a839 | 57c233acf9386e610d99ed20ef139c5f97504ba3 | /src/category_theory/limits/shapes/zero.lean | efa433991626235cbc04a99fe43e3b9fcc595eb0 | [
"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 | 18,229 | 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.limits.shapes.products
import category_theory.limits.shapes.images
import category_theory.isomorphism_classes
/-!
# Zero morphisms and zero ob... |
276303986d94ae7ec3a4b27cd56ac0cfea2c9d94 | 690889011852559ee5ac4dfea77092de8c832e7e | /src/category_theory/opposites.lean | aa198e282fa22e42d7bce513ac26f84e575918d1 | [
"Apache-2.0"
] | permissive | williamdemeo/mathlib | f6df180148f8acc91de9ba5e558976ab40a872c7 | 1fa03c29f9f273203bbffb79d10d31f696b3d317 | refs/heads/master | 1,584,785,260,929 | 1,572,195,914,000 | 1,572,195,913,000 | 138,435,193 | 0 | 0 | Apache-2.0 | 1,529,789,739,000 | 1,529,789,739,000 | null | UTF-8 | Lean | false | false | 7,749 | 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 category_theory.types
import category_theory.natural_isomorphism
import data.opposite
universes v₁ v₂ u₁ u₂ -- declare the `v`'s first; see `c... |
d29a2e20b8c9ff2f9cbf0129d119685a2f008c56 | 6432ea7a083ff6ba21ea17af9ee47b9c371760f7 | /tests/lean/run/struct3.lean | fd219bbf46b66cc2327a1c47d541eb05cfea8567 | [
"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,174 | lean | universe u v
class Bind2 (m : Type u → Type v) where
bind : ∀ {α β : Type u}, m α → (α → m β) → m β
class Monad2 (m : Type u → Type v) extends Applicative m, Bind2 m : Type (max (u+1) v) where
map := fun f x => Bind2.bind x (pure ∘ f)
seq := fun f x => Bind2.bind f fun y => Functor.map y (x ())
seqL... |
1634bb3abbeeefe1a64d99aac88042cf37e46264 | 22e97a5d648fc451e25a06c668dc03ac7ed7bc25 | /src/topology/metric_space/contracting.lean | caae650dfe515613a221d5b0b22a235ff39f541c | [
"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 | 15,576 | lean | /-
Copyright (c) 2019 Rohan Mitta. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Rohan Mitta, Kevin Buzzard, Alistair Tucker, Johannes Hölzl, Yury Kudryashov
-/
import analysis.specific_limits
import data.setoid
/-!
# Contracting maps
A Lipschitz continuous self-map... |
6ea22cfe5fee604a5edafd7e29969e4081e343a2 | 4d2583807a5ac6caaffd3d7a5f646d61ca85d532 | /src/algebra/polynomial/big_operators.lean | 1d300278a656247e6c19a6a8eeb045cd9bbc3513 | [
"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 | 12,440 | lean | /-
Copyright (c) 2020 Aaron Anderson. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Aaron Anderson, Jalex Stark
-/
import data.polynomial.monic
import data.polynomial.ring_division
import tactic.linarith
/-!
# Lemmas for the interaction between polynomials and `∑` and... |
4d2ac91a29828dcf8bf0921a2e268846b5cc5b07 | e0f9ba56b7fedc16ef8697f6caeef5898b435143 | /src/geometry/manifold/mfderiv.lean | 5cdf9154dc9fb2b7edba240065e8a064eb2ed4d2 | [
"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 | 67,201 | 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 geometry.manifold.basic_smooth_bundle
/-!
# The derivative of functions between smooth manifolds
Let `M` and `M'` be two smooth manifolds with corners ... |
d4c5ae4721aff1f55cf06cef99036474bf7d4578 | ae1e94c332e17c7dc7051ce976d5a9eebe7ab8a5 | /tests/lean/run/infoTree.lean | 2e62dff0d354f63be9abfbb49b6c9eb22e0991ba | [
"Apache-2.0"
] | permissive | dupuisf/lean4 | d082d13b01243e1de29ae680eefb476961221eef | 6a39c65bd28eb0e28c3870188f348c8914502718 | refs/heads/master | 1,676,948,755,391 | 1,610,665,114,000 | 1,610,665,114,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 594 | lean | import Lean
open Lean.Elab
elab "enableInfo!" : command => enableInfoTree
elab "showInfoTrees!" : command => do
let trees ← getInfoTrees
trees.forM fun tree => do
IO.println f!"{← tree.format}"
enableInfo!
def f (x : Nat) : Nat × Nat :=
let y := ⟨x, x⟩
id y
def h : (x y : Nat) → (b : Bool) → x + 0 = ... |
1a8e887c846d7a4f91cd1f99171e44d71b13bbe1 | dc253be9829b840f15d96d986e0c13520b085033 | /colimit/local_ext.hlean | f5dab2b0f2e0f89e41473522cbdbdde6f9011d99 | [
"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 | 2,648 | hlean | /-
Copyright (c) 2016 Floris van Doorn. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Floris van Doorn, Egbert Rijke
-/
import hit.two_quotient .seq_colim
open eq prod sum two_quotient sigma function relation e_closure nat seq_colim
namespace localization
section q... |
2c6344fcf6e5254a13ceb4cf9f71c0c442a881c9 | 80cc5bf14c8ea85ff340d1d747a127dcadeb966f | /src/order/filter/bases.lean | 585ae23e7cb3e8c5c4c9c488e358b5497e935152 | [
"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 | 31,499 | lean | /-
Copyright (c) 2020 Yury Kudryashov. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Author: Yury Kudryashov, Johannes Hölzl, Mario Carneiro, Patrick Massot
-/
import order.filter.basic
import data.set.countable
/-!
# Filter bases
A filter basis `B : filter_basis α` on a typ... |
308fac6c715028108d575d7bb3ad0a95d65e5850 | c3f2fcd060adfa2ca29f924839d2d925e8f2c685 | /library/algebra/field.lean | d8ef619cdc0ee445ac677577fc561f585ae34d87 | [
"Apache-2.0"
] | permissive | respu/lean | 6582d19a2f2838a28ecd2b3c6f81c32d07b5341d | 8c76419c60b63d0d9f7bc04ebb0b99812d0ec654 | refs/heads/master | 1,610,882,451,231 | 1,427,747,084,000 | 1,427,747,429,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 19,042 | lean | /-
Copyright (c) 2014 Robert Lewis. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Module: algebra.field
Authors: Robert Lewis
Structures with multiplicative and additive components, including division rings and fields.
The development is modeled after Isabelle's library.
-/
... |
62a8ca337a6b7490eb392a18d23c3bf5cfd54fea | 6432ea7a083ff6ba21ea17af9ee47b9c371760f7 | /tests/lean/run/structInst.lean | 8d1ec21983b7f17d51781fd4267556073ba62545 | [
"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,013 | lean |
namespace Ex1
structure A :=
(x : Nat)
structure B extends A :=
(y : Nat := x + 2) (x := y + 1)
structure C extends B :=
(z : Nat) (x := z + 10)
end Ex1
namespace Ex2
structure A :=
(x : Nat) (y : Nat)
structure B extends A :=
(z : Nat := x + 1) (y := z + x)
end Ex2
namespace Ex3
structure A :=
(x : Nat)
s... |
b44d7ff6b6e7de6d6e2bbeb386f4c80990625eae | 8cae430f0a71442d02dbb1cbb14073b31048e4b0 | /src/category_theory/adhesive.lean | e253aa0893c9f68eba1cfca45a19640c5c3c7498 | [
"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 | 12,659 | lean | /-
Copyright (c) 2022 Andrew Yang. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Andrew Yang
-/
import category_theory.extensive
import category_theory.limits.shapes.kernel_pair
/-!
# Adhesive categories
> THIS FILE IS SYNCHRONIZED WITH MATHLIB4.
> Any changes to t... |
58628ccfd3d2fdfcc8943e0501e38a625b270bd2 | d11a77796ce855e9f8d9d84892d54616b7d5a758 | /src/mylist.lean | e78d6c43cc780b648c88bd7caa90e5778e8acf89 | [] | 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 | 2,657 | lean | import data.list
import data.finset
import tactic
import myoption
open list
namespace list
universe u
lemma init_length_is_pred {A : Type u} {xs : list A} (h : xs ≠ [])
: xs.init.length = xs.length - 1 :=
begin
induction xs with x₀ xs ih, refl,
cases xs with x₁ xs, refl,
simp [init] at ⊢ ih,
exact ih,
end
... |
12a8dbbf000febd6343a0abd62cc858740dfb8fd | 87a08a8e9b222ec02f3327dca4ae24590c1b3de9 | /src/category_theory/category.lean | 13c8000441bda2a7a7b790f70d97b3a3c7169e40 | [
"Apache-2.0"
] | permissive | naussicaa/mathlib | 86d05223517a39e80920549a8052f9cf0e0b77b8 | 1ef2c2df20cf45c21675d855436228c7ae02d47a | refs/heads/master | 1,592,104,950,080 | 1,562,073,069,000 | 1,562,073,069,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 6,347 | 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, Johannes Hölzl, Reid Barton
Defines a category, as a typeclass parametrised by the type of objects.
Introduces notations
`X ⟶ Y` for the morphism spa... |
21406cf87f000e039345018f1326fd4728ee54ac | 302c785c90d40ad3d6be43d33bc6a558354cc2cf | /src/field_theory/finite/polynomial.lean | d90fce72f931e12368b61b62f732e782e5c908fb | [
"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 | 7,856 | 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 field_theory.finite.basic
import field_theory.mv_polynomial
import data.mv_polynomial.expand
import linear_algebra.basic
import linear_algebra.finite_dimensio... |
791cb1948b23365c38c6a299769757852ce55532 | 80746c6dba6a866de5431094bf9f8f841b043d77 | /src/linear_algebra/basic.lean | 9ab5657cc4c537bb504ecdf22e83bebef358f5c3 | [
"Apache-2.0"
] | permissive | leanprover-fork/mathlib-backup | 8b5c95c535b148fca858f7e8db75a76252e32987 | 0eb9db6a1a8a605f0cf9e33873d0450f9f0ae9b0 | refs/heads/master | 1,585,156,056,139 | 1,548,864,430,000 | 1,548,864,438,000 | 143,964,213 | 0 | 0 | Apache-2.0 | 1,550,795,966,000 | 1,533,705,322,000 | Lean | UTF-8 | Lean | false | false | 44,024 | 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
Basics of linear algebra. This sets up the "categorical/lattice structure" of
modules, submodules, and linear maps.
-/
import algebra.pi... |
b34533bd5be5d6fa8ff55e37fdff0bffc13d1a41 | 964a8bb66c2eb89b920fe65d0ec2f77eab0d5f65 | /src/hanoi.lean | 6c5c456da8cfe1c94cc3fea404c5981d84117b0e | [
"MIT"
] | permissive | SnobbyDragon/leanhanoi | 9990a7b586f1d843d39c3c7aab7ac0b5eefbe653 | a42811ce5ab55e0451880a8c111c75b082936d39 | refs/heads/master | 1,675,735,182,689 | 1,609,387,288,000 | 1,609,387,288,000 | 284,167,126 | 8 | 1 | MIT | 1,609,262,129,000 | 1,596,247,349,000 | Lean | UTF-8 | Lean | false | false | 13,829 | lean | import data.list
import tactic
import listplayground
open listplayground
-- THIRD TIME'S THE CHARM??
namespace hanoi
@[derive has_reflect]
structure position := (A : list ℕ) (B : list ℕ) (C : list ℕ)
instance towers_has_repr : has_repr position := ⟨λ t, "A: " ++ t.A.repr ++ " B: " ++ t.B.repr ++ " C: " ++ t.C.repr⟩... |
ba6f68e9e782bf411437c98bf75b880b20401459 | 6432ea7a083ff6ba21ea17af9ee47b9c371760f7 | /doc/syntax_example.lean | 961d5644a00b142218619d396ca7b6934cae00a5 | [
"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 | 707 | lean | inductive Dyck : Type where
| round : Dyck → Dyck -- ( <inner> )
| curly : Dyck → Dyck -- { <inner> }
| leaf : Dyck
-- declare Dyck grammar parse trees
declare_syntax_cat brack
syntax "(" brack ")" : brack
syntax "{" brack "}" : brack
syntax "end" : brack
-- notation for translating `brack` into `term`
syntax... |
8e84002f17efe83c7db2cfa170c8e95548b18034 | cf39355caa609c0f33405126beee2739aa3cb77e | /tests/lean/run/inj_eq_hygiene.lean | d83b5fea22d47a93c55da43db82828ac2f595e1c | [
"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 | 60 | lean | namespace foo
def iff.intro := 5
inductive foo | bar
end foo |
cf0581b6d6123b721b8f62963e1ef8c9b7a136a5 | 947fa6c38e48771ae886239b4edce6db6e18d0fb | /src/analysis/calculus/lagrange_multipliers.lean | 5c06edbf3880eb2745bc292e3ce48a5c17249f7f | [
"Apache-2.0"
] | permissive | ramonfmir/mathlib | c5dc8b33155473fab97c38bd3aa6723dc289beaa | 14c52e990c17f5a00c0cc9e09847af16fabbed25 | refs/heads/master | 1,661,979,343,526 | 1,660,830,384,000 | 1,660,830,384,000 | 182,072,989 | 0 | 0 | null | 1,555,585,876,000 | 1,555,585,876,000 | null | UTF-8 | Lean | false | false | 7,946 | lean | /-
Copyright (c) 2021 Yury Kudryashov. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Yury Kudryashov
-/
import analysis.calculus.inverse
import linear_algebra.dual
/-!
# Lagrange multipliers
In this file we formalize the
[Lagrange multipliers](https://en.wikipedia.o... |
c2b0a2eb0b12473f9dcdb479b21ed8402c255587 | a9d0fb7b0e4f802bd3857b803e6c5c23d87fef91 | /tests/lean/protected.lean | b255910308a9fb95e739ba3bed93326b200663b6 | [
"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 | 108 | lean | --
namespace foo
protected definition C := true
definition D := true
end foo
open foo
check C
check D
|
5c9abbb79ed9cf0479932814906f6046b87d554e | 947b78d97130d56365ae2ec264df196ce769371a | /tests/lean/run/expectedTypePropagation.lean | f20f5c8a96a38f32683fbeb420fdea20d8ec0e2e | [
"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 | 317 | lean | new_frontend
instance : Coe Nat Int :=
⟨fun n => Int.ofNat n⟩
def f (x : Nat) : List Int :=
[x]
def g1 (x : Nat) : List Int :=
[x, x]
def g2 (n : Nat) (i : Int) : Int :=
0 + n + i
def g3 (n : Nat) (i : Int) : Int :=
let x : Int := n+i;
x + x
def g4 (n : Nat) (i : Int) : Int :=
let f := fun x => x + i;
f n
|
3f0473e7b3a93c6e4c38904eedc5c585c10f460d | e00ea76a720126cf9f6d732ad6216b5b824d20a7 | /src/category_theory/endomorphism.lean | 03932138e070c803e15be0d3aacf723f7a9e60de | [
"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 | 2,932 | lean | /-
Copyright (c) 2019 Yury Kudryashov. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Yury Kudryashov, Scott Morrison, Simon Hudon
Definition and basic properties of endomorphisms and automorphisms of an object in a category.
-/
import category_theory.category catego... |
bc44d544137776a108951d0d2648965d4c73ea95 | 8cae430f0a71442d02dbb1cbb14073b31048e4b0 | /src/ring_theory/algebraic.lean | 5c629e47a50cf6016a6aa77ec9db6ce3bba0d15e | [
"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 | 17,740 | lean | /-
Copyright (c) 2019 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 ring_theory.integral_closure
import data.polynomial.integral_normalization
/-!
# Algebraic elements and algebraic ex... |
3485b5f0dde9054db3407770c818978341ec1cf2 | 957a80ea22c5abb4f4670b250d55534d9db99108 | /tests/lean/run/rvec.lean | 363f356cfcd9cebd5166322931bbbd4d68d35290 | [
"Apache-2.0"
] | permissive | GaloisInc/lean | aa1e64d604051e602fcf4610061314b9a37ab8cd | f1ec117a24459b59c6ff9e56a1d09d9e9e60a6c0 | refs/heads/master | 1,592,202,909,807 | 1,504,624,387,000 | 1,504,624,387,000 | 75,319,626 | 2 | 1 | Apache-2.0 | 1,539,290,164,000 | 1,480,616,104,000 | C++ | UTF-8 | Lean | false | false | 571 | lean | open nat
universe variables u
inductive rvec (α : Type u) : nat → Type u
| nil {} : rvec 0
| cons : Π {n}, rvec n → α → rvec (succ n)
namespace rvec
local infix :: := cons
variables {α β δ : Type u}
def map (f : α → β) : Π {n : nat}, rvec α n → rvec β n
| 0 nil := nil
| (succ n) (v::a) := map v :: f a
... |
b0c55c6be9202fc122906929721933d5d8e0db5d | a9d0fb7b0e4f802bd3857b803e6c5c23d87fef91 | /tests/lean/run/meta_level1.lean | 518dfcf9eb74534b00260ce00f2423db18009eae | [
"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 | 964 | lean | import system.IO
vm_eval do pp (level.max (level.succ level.zero) (level.param `foo)), put_str "\n"
vm_eval level.normalize (level.succ (level.max (level.max level.zero (level.succ level.zero)) (level.param `l₁)))
vm_eval level.imax (level.meta `m) (level.of_nat 10)
vm_eval if level.zero = level.zero then "eq" else... |
801154709311005d74d24cc7feb892d5e644ae17 | 7565ffb53cc64430691ce89265da0f944ee43051 | /hott/homotopy/quaternionic_hopf.hlean | 6919d2268a72ec6250d2654b5523d730d5dc1e26 | [
"Apache-2.0"
] | permissive | EgbertRijke/lean2 | cacddba3d150f8b38688e044960a208bf851f90e | 519dcee739fbca5a4ab77d66db7652097b4604cd | refs/heads/master | 1,606,936,954,854 | 1,498,836,083,000 | 1,498,910,882,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 4,256 | hlean | /-
Copyright (c) 2016 Ulrik Buchholtz and Egbert Rijke. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Ulrik Buchholtz, Egbert Rijke
The H-space structure on S³ and the quaternionic Hopf fibration
(using the imaginaroid structure on S⁰).
-/
import .complex_hopf .ima... |
c9774edd583208c72bd122161942801c6737d62a | 77cc0c0aa84a25574cde49a43e1ea911e4992d9b | /Lean Proof DES Step.lean | 4d4a129626e72072159945914e01428e9d90f6ce | [] | no_license | GGFSilva/LeanCryptographyProof | 41ed2cb4d67949f2e2dc6eba63d82c786aa179d3 | bea98d6201546f1e38a08fd3eb7be494e589b006 | refs/heads/master | 1,621,411,996,962 | 1,585,665,794,000 | 1,585,665,794,000 | 251,599,965 | 2 | 2 | null | null | null | null | UTF-8 | Lean | false | false | 1,685 | lean | variable data : Type
variables
L15_E R15_E L16_E R16_E
L0_D R0_D L1_D R1_D
K_16 : data
variable xor (d1 d2 : data) : data
variable f (d k : data) : data
premise xor_assoc (x1 x2 x3 : data) :
(xor (xor x1 x2) x3) = (xor x1 (xor x2 x3))
premise xor_cancel : ∀ x1 x2 : data, xor x1... |
fb564f43086d2e1918b060638e25cbde3cc90669 | aa5a655c05e5359a70646b7154e7cac59f0b4132 | /src/Lean/Meta/Tactic/Replace.lean | 0c207636e7b78fd4789dc993274b25891882dbb4 | [
"Apache-2.0"
] | permissive | lambdaxymox/lean4 | ae943c960a42247e06eff25c35338268d07454cb | 278d47c77270664ef29715faab467feac8a0f446 | refs/heads/master | 1,677,891,867,340 | 1,612,500,005,000 | 1,612,500,005,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 4,219 | 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.Util
import Lean.Meta.Tactic.Revert
import Lean.Meta.Tactic.Intro
import Lean.Meta.Tactic.Clear
import L... |
9cbafaccf440bdcf014ca740db7eef5b2d2de1d3 | 31f556cdeb9239ffc2fad8f905e33987ff4feab9 | /stage0/src/Lean/Level.lean | c90dd68ec010433e17f06ec88d75c54e7f7ff167 | [
"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 | 21,800 | lean | /-
Copyright (c) 2018 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Leonardo de Moura
-/
import Lean.Data.HashMap
import Lean.Data.HashSet
import Lean.Data.PersistentHashMap
import Lean.Data.PersistentHashSet
import Lean.Hygiene
import Lean.Data... |
b0f1245a83b540abaea2e4f939aaf4a3931cc3dd | 4727251e0cd73359b15b664c3170e5d754078599 | /src/linear_algebra/tensor_algebra/grading.lean | 9d8a8252284eb60d2ee32eb3f64385ce67cea185 | [
"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 | 2,335 | lean | /-
Copyright (c) 2021 Eric Wieser. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Eric Wieser
-/
import linear_algebra.tensor_algebra.basic
import ring_theory.graded_algebra.basic
/-!
# Results about the grading structure of the tensor algebra
The main result is `ten... |
a6245a7f9552ce274fe4588e99d350bc01353295 | 37da0369b6c03e380e057bf680d81e6c9fdf9219 | /hott/algebra/group_theory.hlean | 8d1d01c49cde554405371d3757c7973078130211 | [
"Apache-2.0"
] | permissive | kodyvajjha/lean2 | 72b120d95c3a1d77f54433fa90c9810e14a931a4 | 227fcad22ab2bc27bb7471be7911075d101ba3f9 | refs/heads/master | 1,627,157,512,295 | 1,501,855,676,000 | 1,504,809,427,000 | 109,317,326 | 0 | 0 | null | 1,509,839,253,000 | 1,509,655,713,000 | C++ | UTF-8 | Lean | false | false | 21,925 | 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
Basic group theory
-/
import algebra.category.category algebra.bundled .homomorphism
open eq algebra pointed function is_trunc pi equiv is_equiv
set_option class.... |
4b8283c3af056c14a606ab991612f54bab049c95 | 4727251e0cd73359b15b664c3170e5d754078599 | /src/ring_theory/nilpotent.lean | cbd0e92609f27344995af4c0928c48d2aa9cc668 | [
"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 | 5,828 | lean | /-
Copyright (c) 2021 Oliver Nash. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Oliver Nash
-/
import data.nat.choose.sum
import algebra.algebra.bilinear
import ring_theory.ideal.operations
/-!
# Nilpotent elements
## Main definitions
* `is_nilpotent`
* `is_ni... |
d8cf077bb290a672ca46e02b62900042bda1b7af | 63abd62053d479eae5abf4951554e1064a4c45b4 | /src/category_theory/monoidal/functor.lean | ef3cc0c2b3631aa5a4af9818272b443f066a436a | [
"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 | 8,966 | lean | /-
Copyright (c) 2018 Michael Jendrusch. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Michael Jendrusch, Scott Morrison
-/
import category_theory.monoidal.category
/-!
# (Lax) monoidal functors
A lax monoidal functor `F` between monoidal categories `C` and `D`
is a... |
1d9083d2d3df9ed466e17542a919fc9e6e962766 | aa3f8992ef7806974bc1ffd468baa0c79f4d6643 | /library/standard/data/unit.lean | 90f1f9e50dcc87c7668dfce95608c8443366e9ff | [
"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 | 764 | 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
-----------------------------------------------------... |
59e7486375583ea83a857f84d02f70bbbd3fd5df | 9be442d9ec2fcf442516ed6e9e1660aa9071b7bd | /src/Lean/Meta/GlobalInstances.lean | 8723c07a49f132f728c1fd1825d7558cbbdb6f3f | [
"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 | 792 | 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.Basic
import Lean.ScopedEnvExtension
namespace Lean.Meta
builtin_initialize globalInstanceExtension : SimpleScopedEnvExtension Name (Std.... |
ae3026778b17eb0cc09a09867f347e59d5c332fa | 9be442d9ec2fcf442516ed6e9e1660aa9071b7bd | /stage0/src/Lean/Elab/ElabRules.lean | 218347778041bd5d4fbf2bb5910653355fddddb2 | [
"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 | 5,533 | 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.Elab.MacroArgUtil
import Lean.Elab.AuxDef
namespace Lean.Elab.Command
open Lean.Syntax
open Lean.Parser.Term hiding macroArg
open Lean.Parser.C... |
eb536b85269fe5407000a0403204a6e6a91f6c71 | f68ef9a599ec5575db7b285d4960e63c5d464ccc | /Exercises/Lista 2/vestidos-LucasMoschen.lean | 6163127ddba5c92a1085046d2a083d0d91584790 | [] | no_license | lucasmoschen/discrete-mathematics | a38d5970cc571b0b9d202bf6a43efeb8ed6f66e3 | 0f1945cc5eb094814c926cd6ae4a8b4c5c579a1e | refs/heads/master | 1,677,111,757,003 | 1,611,500,097,000 | 1,611,500,097,000 | 205,903,359 | 1 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 1,426 | lean | variables AA AB AP MA MB MP CA CB CP : Prop
--estas variáveis são suposições naturais.
--Existem várias outras, mas não são necessárias no momento.
variables (h1 : AP ↔ ¬ AA ∧ ¬ AB)
(h2 : AA ↔ ¬ AB ∧ ¬ AP)
(h3 : AB ↔ ¬ AA ∧ ¬ AP)
(h4 : MB ↔ ¬ AB ∧ ¬ CB)
(h5 : MA ↔ (AP ∧ CB) ∨ ... |
529d22aeec615a0aa5bfcb5bcbe72ec014f3dfa1 | 618003631150032a5676f229d13a079ac875ff77 | /src/data/matrix/basic.lean | 11e509d88c6af8795560d4769e39ab81bd33c50d | [
"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 | 19,014 | lean | /-
Copyright (c) 2018 Ellen Arlt. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Ellen Arlt, Blair Shi, Sean Leather, Mario Carneiro, Johan Commelin
-/
import algebra.pi_instances
/-!
# Matrices
-/
universes u v w
open_locale big_operators
@[nolint unused_arguments]
... |
c687db9afb29d335f489f11a350ead9bbc86664c | 302c785c90d40ad3d6be43d33bc6a558354cc2cf | /src/field_theory/intermediate_field.lean | 940dd417d49304346f4ff2e9162272225dd4eff2 | [
"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 | 13,985 | 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 field_theory.subfield
import field_theory.tower
import ring_theory.algebraic
/-!
# Intermediate fields
Let `L / K` be a field extension, given as an instance `alg... |
273a97bb6da5e23446fb57569156b49571ee1dfd | a9d0fb7b0e4f802bd3857b803e6c5c23d87fef91 | /hott/algebra/relation.hlean | 0b058c5d24de75ab4038c32d8cff72443c897d79 | [
"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 | 4,432 | hlean | /-
Copyright (c) 2014 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Author: Jeremy Avigad
General properties of relations, and classes for equivalence relations and congruences.
-/
namespace relation
/- properties of binary relations -/
section
var... |
46b31152a349349af091b197c6eeebbcd49df682 | 6432ea7a083ff6ba21ea17af9ee47b9c371760f7 | /tests/lean/run/def16.lean | cfc8e122e483b7e57c16558aa47c23affee25424 | [
"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 | 270 | lean |
def half : Nat → Nat
| 0 => 0
| 1 => 0
| (x+2) => half x + 1
theorem half0 : half 0 = 0 :=
rfl
theorem half1 : half 1 = 0 :=
rfl
theorem half_succ_succ (a : Nat) : half (a + 2) = half a + 1 :=
rfl
example : half 5 = 2 :=
rfl
example : half 8 = 4 :=
rfl
|
d7f5837b5c8080fbd44312d37dca9f389fe95412 | fe84e287c662151bb313504482b218a503b972f3 | /src/data/nat/square_free.lean | 5e4e72de86a27b91af2a8e6c733ab6c36a7d4ddc | [] | no_license | NeilStrickland/lean_lib | 91e163f514b829c42fe75636407138b5c75cba83 | 6a9563de93748ace509d9db4302db6cd77d8f92c | refs/heads/master | 1,653,408,198,261 | 1,652,996,419,000 | 1,652,996,419,000 | 181,006,067 | 4 | 1 | null | null | null | null | UTF-8 | Lean | false | false | 6,715 | lean | import data.nat.prime data.multiset
import data.list_extra data.multiset_extra
namespace nat
lemma list.coprime_prod {n : ℕ} {l : list ℕ} (h : list.all_prop (coprime n) l) :
coprime n l.prod :=
begin
induction l with m l ih,
{rw[list.prod_nil],exact coprime_one_right n},
{rw[list.all_prop] at h,rw[list.prod_con... |
b4c6fc4c6cfdaf4680519566c56fde69cd6a6c37 | e0f9ba56b7fedc16ef8697f6caeef5898b435143 | /src/data/pnat/basic.lean | 878ee0f76be0ad4e14cd8b0e2b107d05ce31ce47 | [
"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 | 13,489 | lean | /-
Copyright (c) 2017 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Author: Mario Carneiro, Neil Strickland
-/
import data.nat.prime
/-- `ℕ+` is the type of positive natural numbers. It is defined as a subtype,
and the VM representation of `ℕ+` is the... |
7abad16188bc201f1eee79ed6ccfd9ac3d676ad5 | 54f4ad05b219d444b709f56c2f619dd87d14ec29 | /my_project/src/love12_basic_mathematical_structures_exercise_sheet.lean | 4a8efea0d4ffd9e4598f1bcc3027a433bc84387f | [] | no_license | yizhou7/learning-lean | 8efcf838c7276e235a81bd291f467fa43ce56e0a | 91fb366c624df6e56e19555b2e482ce767cd8224 | refs/heads/master | 1,675,649,087,737 | 1,609,022,281,000 | 1,609,022,281,000 | 272,072,779 | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 2,648 | lean | import .love12_basic_mathematical_structures_demo
/-! # LoVe Exercise 12: Basic Mathematical Structures -/
set_option pp.beta true
namespace LoVe
/-! ## Question 1: Type Classes
Recall the datatype `btree` we introduced earlier: -/
#check btree
/-! The following function takes two trees and attaches copies of... |
87628aea8396457333e5c9785de8e4eeeb566fac | b3c7090f393c11bd47c82d2f8bb4edf8213173f5 | /src/Isomorphism_again.lean | 123d67d4e09051b8d6d068a415263718cb2b395f | [] | no_license | ImperialCollegeLondon/lean-groups | 964b197478f0313d826073576a3e0ae8b166a584 | 9a82d2a66ef7f549107fcb4e1504d734c43ebb33 | refs/heads/master | 1,592,371,184,330 | 1,567,197,270,000 | 1,567,197,270,000 | 195,810,480 | 4 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 13,801 | lean | --Examples of how to work with groups in Lean
-- TODO
-- order of element
-- order of group
-- some standard theorems about finite groups
-- making a subgroup
-- making a quotient group
-- isomorphism theorems
-- relevant files:
import algebra.group.basic -- stuff like mul_self_iff_eq_one, mul_inv_eq_iff_eq_mul etc
... |
1ff890e4827d02bd4c8eecf4efcdb40f71bde779 | 32a2d1642d7519c99693bc1d3b24069e4853dd1f | /data/list/perm.lean | eadb74cc9fa765481d6fd3a0aa5fa1327c9ff816 | [
"Apache-2.0"
] | permissive | Cedric0099/mathlib | 7edb81d5d68e280b4d21f6c0377dad1f9b8c0d71 | a97101d2df5d186848075a2d0452f6a04d8a13eb | refs/heads/master | 1,584,201,847,599 | 1,524,979,632,000 | 1,524,979,632,000 | 131,690,350 | 0 | 0 | null | 1,525,162,341,000 | 1,525,162,341,000 | null | UTF-8 | Lean | false | false | 34,169 | lean | /-
Copyright (c) 2015 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Leonardo de Moura, Jeremy Avigad, Mario Carneiro
List permutations.
-/
import data.list.basic
namespace list
universe variables uu vv
variables {α : Type uu} {β : Type vv}
/-... |
5b16510d872eb460abaa255c37e9c98c2a344443 | 43390109ab88557e6090f3245c47479c123ee500 | /src/M1F/problem_bank/0306/Q0306.lean | 834e5359f98edd0ef73a895f7a38685acf4c0132 | [
"Apache-2.0"
] | permissive | Ja1941/xena-UROP-2018 | 41f0956519f94d56b8bf6834a8d39473f4923200 | b111fb87f343cf79eca3b886f99ee15c1dd9884b | refs/heads/master | 1,662,355,955,139 | 1,590,577,325,000 | 1,590,577,325,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 211 | lean | import data.complex.basic
variables p q r : ℂ
theorem Q6a : (p+q)+r=p+(q+r) := sorry
theorem Q6b : p*q=q*p := sorry
theorem Q6c : complex.conjugate p * complex.conjugate q = complex.conjugate (p*q) := sorry
|
8fd95a847f63040968eea0b9fbe323962e1089e8 | febba19712b2aefe4d6c7fb0230b8d7e272c98c4 | /src/utils.lean | 98923fbe124012768764a406507a7ea37fb4a71c | [] | no_license | hcheval/formalized-proof-mining | e6eb980feb644ae269f43d9af93ac584b7a47a17 | 216cc73fccd84900a1ba7eaae5f73732496d6afe | refs/heads/master | 1,689,621,410,792 | 1,629,912,272,000 | 1,629,912,272,000 | 399,855,572 | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 914 | lean | import tactic
section tactics
open interactive lean.parser
meta def tactic.interactive.ss := tactic.interactive.squeeze_simp
meta def tactic.interactive.dsimp' := tactic.interactive.squeeze_dsimp
meta def tactic.interactive.ls := tactic.interactive.library_search
meta def tactic.interactive.by_ext (a b x... |
d1d192dfa41d51233db0bdc05070eb1e1a48f2b0 | d406927ab5617694ec9ea7001f101b7c9e3d9702 | /src/algebra/module/prod.lean | 020eb4accd3206954fdd738a59da443864377ae6 | [
"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,760 | 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, Eric Wieser
-/
import algebra.module.basic
import group_theory.group_action.prod
/-!
# Prod instances for module and multiplicative actions
This file define... |
42acc9ebd967ed69838d92f238fe4afdbf81bfb2 | bb31430994044506fa42fd667e2d556327e18dfe | /src/combinatorics/simple_graph/connectivity.lean | 4a445bd6f9bdd735a97877a07f2fb5164eb88232 | [
"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 | 68,963 | lean | /-
Copyright (c) 2021 Kyle Miller. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Kyle Miller
-/
import combinatorics.simple_graph.basic
import combinatorics.simple_graph.subgraph
import data.list.rotate
/-!
# Graph connectivity
In a simple graph,
* A *walk* is a fi... |
d25b2e731450271eb81cc36e531f9ab0b0796199 | 57c233acf9386e610d99ed20ef139c5f97504ba3 | /src/number_theory/lucas_lehmer.lean | 9b1a0fedb681314499fda84f5ec62f08e1a73dde | [
"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 | 17,251 | lean | /-
Copyright (c) 2020 Scott Morrison. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Mario Carneiro, Scott Morrison, Ainsley Pahljina
-/
import data.nat.parity
import data.pnat.interval
import data.zmod.basic
import group_theory.order_of_element
import ring_theory.fint... |
8df651ec0c164282705d8227fe94f11d0d9f2736 | e00ea76a720126cf9f6d732ad6216b5b824d20a7 | /src/ring_theory/ideals.lean | bbaeaf551234d4a50d680224157f45fe1f86fb80 | [
"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 | 18,570 | lean | /-
Copyright (c) 2018 Kenny Lau. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Kenny Lau, Chris Hughes, Mario Carneiro
-/
import algebra.associated linear_algebra.basic order.zorn
universes u v
variables {α : Type u} {β : Type v} {a b : α}
open set function
open_loc... |
c59303e49b7244137ee9c1ee0094e501c1e5b514 | a5e2e6395319779f21675263bc0e486be5bc03bd | /bench/stlc1k.lean | 05adaaea2a7cc6b29fd649c660b96f791d14ba62 | [
"MIT"
] | permissive | AndrasKovacs/smalltt | 10f0ec55fb3f487e9dd21a740fe1a899e0cdb790 | c306f727ba3c92abe6ef75013da5a5dade6b15c8 | refs/heads/master | 1,689,497,785,394 | 1,680,893,106,000 | 1,680,893,106,000 | 112,098,494 | 483 | 26 | MIT | 1,640,720,815,000 | 1,511,713,805,000 | Lean | UTF-8 | Lean | false | false | 53,535 | lean | def Ty : Type 1
:= ∀ (Ty : Type)
(nat top bot : Ty)
(arr prod sum : Ty → Ty → Ty)
, Ty
def nat : Ty := λ _ nat _ _ _ _ _ => nat
def top : Ty := λ _ _ top _ _ _ _ => top
def bot : Ty := λ _ _ _ bot _ _ _ => bot
def arr : Ty → Ty → Ty
:= λ A B Ty nat top bot arr prod sum =>
arr (A Ty n... |
43e1f0a6ebd8330e4a273d4c63eb75b255f3311e | 367134ba5a65885e863bdc4507601606690974c1 | /src/analysis/calculus/implicit.lean | 6419ab6d6d226499e9c0b24cea6f6b29cc53c5f7 | [
"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 | 20,139 | lean | /-
Copyright (c) 2020 Yury Kudryashov. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Yury Kudryashov.
-/
import analysis.calculus.inverse
import analysis.normed_space.complemented
/-!
# Implicit function theorem
We prove three versions of the implicit function theor... |
3b9ecc70d7dd0def231e07727d4775bde45900a2 | e0f9ba56b7fedc16ef8697f6caeef5898b435143 | /src/data/option/defs.lean | 12a740e60caede5fcb3a09993c0bb6d3659f43a9 | [
"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 | 4,518 | lean | /-
Copyright (c) 2018 Mario Carneiro. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Mario Carneiro
Extra definitions on option.
-/
namespace option
variables {α : Type*} {β : Type*}
attribute [inline] option.is_some option.is_none
/-- An elimination principle for ... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.