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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
2845d7b5cda4188654cde76895b7f1705a0dfb66 | 9dc8cecdf3c4634764a18254e94d43da07142918 | /src/analysis/normed/group/SemiNormedGroup/completion.lean | 0baa630b179a18a863758bab77838e81eca4dec7 | [
"Apache-2.0"
] | permissive | jcommelin/mathlib | d8456447c36c176e14d96d9e76f39841f69d2d9b | ee8279351a2e434c2852345c51b728d22af5a156 | refs/heads/master | 1,664,782,136,488 | 1,663,638,983,000 | 1,663,638,983,000 | 132,563,656 | 0 | 0 | Apache-2.0 | 1,663,599,929,000 | 1,525,760,539,000 | Lean | UTF-8 | Lean | false | false | 4,511 | lean | /-
Copyright (c) 2021 Riccardo Brasca. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Riccardo Brasca, Johan Commelin
-/
import analysis.normed.group.SemiNormedGroup
import category_theory.preadditive.additive_functor
import analysis.normed.group.hom_completion
/-!
# ... |
3679bf1855e721d9030657d9b7f4eb2fc3e13e99 | b147e1312077cdcfea8e6756207b3fa538982e12 | /analysis/nnreal.lean | d4bb8227a17085dad803139a47f01b05f5e0819c | [
"Apache-2.0"
] | permissive | SzJS/mathlib | 07836ee708ca27cd18347e1e11ce7dd5afb3e926 | 23a5591fca0d43ee5d49d89f6f0ee07a24a6ca29 | refs/heads/master | 1,584,980,332,064 | 1,532,063,841,000 | 1,532,063,841,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 7,524 | lean | /-
Copyright (c) 2018 Johan Commelin. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Johan Commelin
Nonnegative real numbers.
-/
import analysis.real analysis.topology.infinite_sum
noncomputable theory
open lattice filter
variables {α : Type*}
definition nnreal := {... |
3d4ac3dbbfc683846d8bb09f5ae1759351fb5ed4 | 618003631150032a5676f229d13a079ac875ff77 | /src/data/finsupp/pointwise.lean | 89ae6d05242a0aa7c7d634b7080ac0bc8c3de9fb | [
"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 | 1,961 | 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 data.finsupp
/-!
# The pointwise product on `finsupp`.
TODO per issue #1864:
We intend to remove the convolution product on finsupp, and define
it only on a ... |
60669019cd39a839d60d431ce4c46dc49b0a27e0 | 9dc8cecdf3c4634764a18254e94d43da07142918 | /src/algebra/category/Group/biproducts.lean | 7b2e208d2954930f4f81157dbc3eb43ebcc898fc | [
"Apache-2.0"
] | permissive | jcommelin/mathlib | d8456447c36c176e14d96d9e76f39841f69d2d9b | ee8279351a2e434c2852345c51b728d22af5a156 | refs/heads/master | 1,664,782,136,488 | 1,663,638,983,000 | 1,663,638,983,000 | 132,563,656 | 0 | 0 | Apache-2.0 | 1,663,599,929,000 | 1,525,760,539,000 | Lean | UTF-8 | Lean | false | false | 4,605 | 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.group.pi
import algebra.category.Group.preadditive
import category_theory.limits.shapes.biproducts
import algebra.category.Group.limits
/-!
# The cate... |
1b3adb8c99f404e031dcccbfdbcc55a541633a23 | 77c5b91fae1b966ddd1db969ba37b6f0e4901e88 | /test/instance_diamonds.lean | d18bf558349080273a95ca04a93554c76acc814b | [
"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 | 1,989 | 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 algebra.module.pi
import data.polynomial.basic
import group_theory.group_action.prod
import group_theory.group_action.units
import data.complex.module
/-! # Tests ... |
ed50eb71851d4284708f7bb4bf9dcbe62a3194e2 | 367134ba5a65885e863bdc4507601606690974c1 | /src/number_theory/ADE_inequality.lean | 375d2e2e9ffd24bdc98a6a20aa53e263f199b5a9 | [
"Apache-2.0"
] | permissive | kodyvajjha/mathlib | 9bead00e90f68269a313f45f5561766cfd8d5cad | b98af5dd79e13a38d84438b850a2e8858ec21284 | refs/heads/master | 1,624,350,366,310 | 1,615,563,062,000 | 1,615,563,062,000 | 162,666,963 | 0 | 0 | Apache-2.0 | 1,545,367,651,000 | 1,545,367,651,000 | null | UTF-8 | Lean | false | false | 7,499 | lean | /-
Copyright (c) 2021 Johan Commelin. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Johan Commelin
-/
import data.multiset.sort
import data.pnat.basic
import data.rat.order
import tactic.norm_num
import tactic.field_simp
import tactic.interval_cases
/-!
# The ineq... |
045c0ecbdece03b80d19fd2aabffe996570bd920 | 95dcf8dea2baf2b4b0a60d438f27c35ae3dd3990 | /src/topology/basic.lean | c1749bb70ddcae94825e0f7f55c437c080e01655 | [
"Apache-2.0"
] | permissive | uniformity1/mathlib | 829341bad9dfa6d6be9adaacb8086a8a492e85a4 | dd0e9bd8f2e5ec267f68e72336f6973311909105 | refs/heads/master | 1,588,592,015,670 | 1,554,219,842,000 | 1,554,219,842,000 | 179,110,702 | 0 | 0 | Apache-2.0 | 1,554,220,076,000 | 1,554,220,076,000 | null | UTF-8 | Lean | false | false | 35,273 | 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
Theory of topological spaces.
Parts of the formalization is based on the books:
N. Bourbaki: General Topology
I. M. James: Topologies and Uniformit... |
7a885cdc92614f77a29e199fbf5ac065a59f02b6 | cf39355caa609c0f33405126beee2739aa3cb77e | /tests/lean/run/not_bug1.lean | b380bd600920c4cdbc69d24569b6b9fd32f6b6b5 | [
"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 | 395 | lean | open bool
constant List : Type.{1}
constant nil : List
constant cons : bool → List → List
infixr (name := cons) `::` := cons
notation (name := list) `[` l:(foldr `,` (h t, cons h t) nil `]`) := l
#check []
#check [tt]
#check [tt, ff]
#check [tt, ff, ff]
#check tt :: ff :: [tt, ff, ff]
#check tt :: []
constants a b ... |
801e23dbcb3dce4ceff1c1cde707141b626a8fb7 | 35677d2df3f081738fa6b08138e03ee36bc33cad | /src/group_theory/order_of_element.lean | 70a5e144c073a482886578005d3f63742c02a6eb | [
"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 | 22,873 | 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 data.set.finite group_theory.coset data.nat.totient
open function
variables {α : Type*} {s : set α} {a a₁ a₂ b c: α}
-- TODO this lemma isn't used anywhere i... |
239e7b05dc6ddb2058d904ce469970e8f0d7d564 | 6432ea7a083ff6ba21ea17af9ee47b9c371760f7 | /src/Lean/ScopedEnvExtension.lean | e74fecfc1e337721d804020125eaac386d653872 | [
"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 | 8,541 | 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.Environment
import Lean.Data.NameTrie
import Lean.Attributes
namespace Lean
namespace ScopedEnvExtension
inductive Entry (α : Type) where
|... |
f5934e84b57adb8cf5a8c2bfd1f63275323bb0a8 | 271e26e338b0c14544a889c31c30b39c989f2e0f | /tests/lean/run/meta3.lean | 0db19b29bb4a710a2fbe4608d9d02cfb611b0924 | [
"Apache-2.0"
] | permissive | dgorokho/lean4 | 805f99b0b60c545b64ac34ab8237a8504f89d7d4 | e949a052bad59b1c7b54a82d24d516a656487d8a | refs/heads/master | 1,607,061,363,851 | 1,578,006,086,000 | 1,578,006,086,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 2,018 | lean | import Init.Lean.Meta
open Lean
open Lean.Meta
def dbgOpt : Options :=
let opt : Options := {};
let opt := opt.setBool `trace.Meta true;
-- let opt := opt.setBool `trace.Meta.check false;
opt
def print (msg : MessageData) : MetaM Unit :=
trace! `Meta.debug msg
def check (x : MetaM Bool) : MetaM Unit :=
unlessM x $ t... |
558e98e0781f51c67bb4eb47f58c1b555fd71fe4 | 4efff1f47634ff19e2f786deadd394270a59ecd2 | /archive/miu_language/decision_suf.lean | 157b043f55c6e35da20c3f933bd9c67110ae17cb | [
"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 | 14,397 | lean | /-
Copyright (c) 2020 Gihan Marasingha. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Gihan Marasingha
-/
import .decision_nec
import tactic.linarith
/-!
# Decision procedure - sufficient condition and decidability
We give a sufficient condition for a string to be d... |
d5e577c2fc5e9d942d4481382faec2f51c1ecd0a | 618003631150032a5676f229d13a079ac875ff77 | /src/control/traversable/instances.lean | 2846ce4ced80c5ea21489bdfe5f975bc785b4e3b | [
"Apache-2.0"
] | permissive | awainverse/mathlib | 939b68c8486df66cfda64d327ad3d9165248c777 | ea76bd8f3ca0a8bf0a166a06a475b10663dec44a | refs/heads/master | 1,659,592,962,036 | 1,590,987,592,000 | 1,590,987,592,000 | 268,436,019 | 1 | 0 | Apache-2.0 | 1,590,990,500,000 | 1,590,990,500,000 | null | UTF-8 | Lean | false | false | 5,598 | 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 data.list.forall2
import data.set.lattice
import control.applicative
universes u v
section option
open ... |
cb1c16a4814080766ab025992af80af9dc3fcc8d | 05b503addd423dd68145d68b8cde5cd595d74365 | /src/data/vector2.lean | cb38db971f81be0c4f3cd87382d0527628908e46 | [
"Apache-2.0"
] | permissive | aestriplex/mathlib | 77513ff2b176d74a3bec114f33b519069788811d | e2fa8b2b1b732d7c25119229e3cdfba8370cb00f | refs/heads/master | 1,621,969,960,692 | 1,586,279,279,000 | 1,586,279,279,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 10,266 | lean | /-
Copyright (c) 2018 Mario Carneiro. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Mario Carneiro
Additional theorems about the `vector` type.
-/
import data.vector data.list.basic category.traversable.basic data.set.basic tactic.tauto
universes u
variables {n : ℕ}... |
6a2f89adadea9a6c38d0301a31480a180c836a13 | 35677d2df3f081738fa6b08138e03ee36bc33cad | /src/analysis/calculus/deriv.lean | 3659de346af30223ed4d29f2904bfa82b88afe62 | [
"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 | 54,813 | lean | /-
Copyright (c) 2019 Gabriel Ebner. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Gabriel Ebner, Sébastien Gouëzel
-/
import analysis.calculus.fderiv data.polynomial
/-!
# One-dimensional derivatives
This file defines the derivative of a function `f : 𝕜 → F` wher... |
e9a662ac3809547a005b6f1a8e224edb3dd102a5 | 74addaa0e41490cbaf2abd313a764c96df57b05d | /Mathlib/data/pnat/basic.lean | f2b586a9de2d9f1617aadbce1fd00dd2f6728d1a | [] | 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 | 12,087 | 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 Mathlib.PrePort
import Mathlib.Lean3Lib.init.default
import Mathlib.data.nat.basic
import Mathlib.PostPort
namespace Mathlib
/-!
# The... |
3a0e54e91b70949011887e38c84de1bfdc7fccf1 | 57c233acf9386e610d99ed20ef139c5f97504ba3 | /src/data/list/infix.lean | fdf334d266525c82a0b4398f693af6b210ca72e3 | [
"Apache-2.0"
] | permissive | robertylewis/mathlib | 3d16e3e6daf5ddde182473e03a1b601d2810952c | 1d13f5b932f5e40a8308e3840f96fc882fae01f0 | refs/heads/master | 1,651,379,945,369 | 1,644,276,960,000 | 1,644,276,960,000 | 98,875,504 | 0 | 0 | Apache-2.0 | 1,644,253,514,000 | 1,501,495,700,000 | Lean | UTF-8 | Lean | false | false | 19,483 | 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.list.basic
/-!
# Prefixes, subfixes, infixes
This file proves properties about
* `list.prefix`: `l₁` is a prefix of `l₂` if `l₂` starts with `l₁`.
* `li... |
71aa601b1a11807f0a252bed16fdb008461718e8 | d406927ab5617694ec9ea7001f101b7c9e3d9702 | /src/data/nat/choose/bounds.lean | f8102e4653ad09db5c89cedf999daf3b82fe3cad | [
"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,280 | lean | /-
Copyright (c) 2021 Yaël Dillies. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Yaël Dillies, Eric Rodriguez
-/
import algebra.group_power.lemmas
import algebra.order.field.basic
import data.nat.choose.basic
/-!
# Inequalities for binomial coefficients
This file ... |
f7bef4e1accd19a900956bd1f70061b4e548ae68 | acc85b4be2c618b11fc7cb3005521ae6858a8d07 | /algebra/module.lean | 4371dbd9b750f287bae18fd50c8ad1ee8eb71f59 | [
"Apache-2.0"
] | permissive | linpingchuan/mathlib | d49990b236574df2a45d9919ba43c923f693d341 | 5ad8020f67eb13896a41cc7691d072c9331b1f76 | refs/heads/master | 1,626,019,377,808 | 1,508,048,784,000 | 1,508,048,784,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 2,549 | lean | /-
Copyright (c) 2015 Nathaniel Thomas. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Nathaniel Thomas, Jeremy Avigad
Modules and vector spaces over a ring.
-/
import algebra.field
universes u v
class has_scalar (α : inout Type u) (γ : Type v) := (smul : α → γ → γ)... |
e3d97c53e320f64849bed1d307a9e065eac34af6 | 8cae430f0a71442d02dbb1cbb14073b31048e4b0 | /src/algebra/star/basic.lean | 04fb6397d361fb7c0dc81de67ff0291d1573fd38 | [
"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,666 | 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.aut
import algebra.ring.comp_typeclasses
import data.rat.cast
import group_theory.group_action.opposite
import data.set_like.basic
/-!
# Star mon... |
bd2395d523d68756ce376b176eaffb97881f05bd | 6dc0c8ce7a76229dd81e73ed4474f15f88a9e294 | /tests/lean/run/offsetIssue.lean | 0a1028ef9d3aa1e4b532d4754b342f431ede8713 | [
"Apache-2.0"
] | permissive | williamdemeo/lean4 | 72161c58fe65c3ad955d6a3050bb7d37c04c0d54 | 6d00fcf1d6d873e195f9220c668ef9c58e9c4a35 | refs/heads/master | 1,678,305,356,877 | 1,614,708,995,000 | 1,614,708,995,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 437 | lean | def BV (n : Nat) := { a : Array Bool // a.size = n }
axiom foo {n m : Nat} (a : BV n) (b : BV m) : BV (n - m)
def test (x1 : BV 30002) (x2 : BV 30001) (y1 : BV 60004) (y2 : BV 60003) : Prop :=
foo x1 x2 = withoutExpectedType! foo y1 y2
@[elabWithoutExpectedType]
axiom foo2 {n m : Nat} (a : BV n) (b : BV m) : BV (n... |
9b44c0767a106dd8fd64663f3179e244dac5d6fb | 9dd3f3912f7321eb58ee9aa8f21778ad6221f87c | /tests/lean/run/isabelle.lean | 7a6125d692b25a01d2efae4c90466506df1d0954 | [
"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 | 2,460 | lean | /-
Isabelle style tactics.
This test is based on a file created by Gabriel Ebner.
-/
import data.lazy_list
universe variables u
meta def lazy_tactic (α : Type u) :=
tactic_state → lazy_list (α × tactic_state)
namespace lazy_tactic
open lazy_list
meta def of_tactic {α : Type u} (t : tactic α) : lazy_tactic α :=
λ s, ... |
3d5da739ab0eb1fbec4d439fd3b7066a52ffc90d | d1a52c3f208fa42c41df8278c3d280f075eb020c | /tests/lean/run/bigop.lean | b7c2f2cc0134c8e71972c1ecccef73f7b06f330a | [
"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 | 4,155 | lean | def Sequence (α : Type) := List α
def BigBody (β α) := α × (β → β → β) × Bool × β
def applyBig {α β : Type} (body : BigBody β α) (x : β) : β :=
let (_, op, b, v) := body;
if b then op v x else x
def reducebig {α β : Type} (idx : β) (r : Sequence α) (body : α → BigBody β α) : β :=
r.foldr (applyBig ∘ body) idx
def ... |
151fd15e6b2f44e1e1b2c36f6b08dba333076461 | 206422fb9edabf63def0ed2aa3f489150fb09ccb | /src/data/finsupp/basic.lean | a9b0926bd975a73522723ec25015edb6ea29d078 | [
"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 | 80,211 | 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, Scott Morrison
-/
import algebra.group.pi
import algebra.big_operators.order
import algebra.module.basic
import group_theory.submonoid.basic
import data.fintype.card
im... |
fbd293964b058f1c29a60ae40f9f75cbc543acf8 | fa02ed5a3c9c0adee3c26887a16855e7841c668b | /src/ring_theory/power_series/well_known.lean | e8353e9e297293b5cfe530c71d28a95980abe8d0 | [
"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,007 | lean | /-
Copyright (c) 2020 Yury G. Kudryashov. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Yury G. Kudryashov
-/
import ring_theory.power_series.basic
import data.nat.parity
import algebra.big_operators.nat_antidiagonal
/-!
# Definition of well-known power series
In th... |
9c5beb82d2c5926aeb22f6df6b62b00d62bdbdb4 | a45212b1526d532e6e83c44ddca6a05795113ddc | /src/data/matrix.lean | 6a5d3deb5d0a51df870158fec629598fc6f1e57d | [
"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 | 10,930 | 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
Matrices
-/
import algebra.module algebra.pi_instances
import data.fintype
universes u v
def matrix (m n : Type u) [f... |
e964ad4251226286f5dbd6d378c7f7327c2723f1 | 57c233acf9386e610d99ed20ef139c5f97504ba3 | /src/data/nat/pow.lean | 5c6f42c8536803189ddf5ed3cf5361c0bde517e3 | [
"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 | 11,225 | lean | /-
Copyright (c) 2014 Floris van Doorn (c) 2016 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Floris van Doorn, Leonardo de Moura, Jeremy Avigad, Mario Carneiro
-/
import algebra.group_power.order
/-! # `nat.pow`
Results on the power operation... |
5adc02768bb078fbb06e4d9557fe7398bf682d51 | 8cae430f0a71442d02dbb1cbb14073b31048e4b0 | /counterexamples/seminorm_lattice_not_distrib.lean | ca9b74e8f69343934b3e66cb4aff5062c9562b41 | [
"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,158 | lean | /-
Copyright (c) 2022 Pierre-Alexandre Bazin. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Pierre-Alexandre Bazin
-/
import analysis.seminorm
/-!
# The lattice of seminorms is not distributive
> THIS FILE IS SYNCHRONIZED WITH MATHLIB4.
> Any changes to this file req... |
a42cba73cff93c56a0694d4fc587525e08c09d94 | 7cef822f3b952965621309e88eadf618da0c8ae9 | /src/data/nat/cast.lean | 9827b05f03694f2446482461c19621fe39bc32fe | [
"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 | 4,936 | lean | /-
Copyright (c) 2014 Mario Carneiro. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Mario Carneiro
Natural homomorphism from the natural numbers into a monoid with one.
-/
import tactic.interactive algebra.order algebra.ordered_group algebra.ring
import tactic.norm_c... |
627f91faa318193363253683007b2dda43caa221 | f618aea02cb4104ad34ecf3b9713065cc0d06103 | /src/data/num/basic.lean | 86b61788f99f05972c61f685fbc8b9f96d7e9a7f | [
"Apache-2.0"
] | permissive | joehendrix/mathlib | 84b6603f6be88a7e4d62f5b1b0cbb523bb82b9a5 | c15eab34ad754f9ecd738525cb8b5a870e834ddc | refs/heads/master | 1,589,606,591,630 | 1,555,946,393,000 | 1,555,946,393,000 | 182,813,854 | 0 | 0 | null | 1,555,946,309,000 | 1,555,946,308,000 | null | UTF-8 | Lean | false | false | 17,435 | lean | /-
Copyright (c) 2014 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Leonardo de Moura, Mario Carneiro
Binary representation of integers using inductive types.
Note: Unlike in Coq, where this representation is preferred because of
the reliance ... |
ff4ea03076ed6829f7f92a6a7ac6c08dc893b033 | f3849be5d845a1cb97680f0bbbe03b85518312f0 | /library/init/data/int/basic.lean | 1ceffe87ec5cc869ba179b85cce6893ee88bec0a | [
"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 | 13,746 | 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.
-/
prelude
import init.data.nat.lemmas init.meta.transfer
open nat
/- the type, coercions, and notation -/
... |
ffd4eee97f4cd85986c494207d211568554dd9a2 | a4673261e60b025e2c8c825dfa4ab9108246c32e | /stage0/src/Lean/Message.lean | db3e0ce219cf62e45601b9f54d021fab59447dc1 | [
"Apache-2.0"
] | permissive | jcommelin/lean4 | c02dec0cc32c4bccab009285475f265f17d73228 | 2909313475588cc20ac0436e55548a4502050d0a | refs/heads/master | 1,674,129,550,893 | 1,606,415,348,000 | 1,606,415,348,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 13,717 | lean | /-
Copyright (c) 2018 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Author: Sebastian Ullrich, Leonardo de Moura
Message Type used by the Lean frontend
-/
import Lean.Data.Position
import Lean.Data.OpenDecl
import Lean.Syntax
import Lean.MetavarContext
... |
fc2dc7ee1925aacbfc8fe2c330e93b60a0b2774f | 6432ea7a083ff6ba21ea17af9ee47b9c371760f7 | /tests/lean/run/eagerInliningIssue.lean | 94dac42cb17dd5159f6ccb459fb76139ffbb1e93 | [
"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 | 842 | lean |
def h (x : Nat) : IO Unit := do
if x == 0 then IO.println "arg is 0"
if x == 1 then IO.println "arg is 1"
if x == 2 then IO.println "arg is 2"
if x == 3 then IO.println "arg is 3"
if x == 4 then IO.println "arg is 4"
if x == 5 then IO.println "arg is 5"
if x == 6 then IO.println "arg is 6"
if x == 7 then IO.pr... |
96566b96dbdfa3124becf23247ea3e5ce9c9c7cb | dd4e652c749fea9ac77e404005cb3470e5f75469 | /src/missing_mathlib/linear_algebra/basic.lean | 4abec7141e6d545d134fb91e2e64c0d233563ad8 | [] | no_license | skbaek/cvx | e32822ad5943541539966a37dee162b0a5495f55 | c50c790c9116f9fac8dfe742903a62bdd7292c15 | refs/heads/master | 1,623,803,010,339 | 1,618,058,958,000 | 1,618,058,958,000 | 176,293,135 | 3 | 2 | null | null | null | null | UTF-8 | Lean | false | false | 1,578 | lean | import linear_algebra.basic
universes u v w x
variables {α : Type u} {β : Type v} {γ : Type w} {δ : Type x} {ι : Type x}
namespace linear_map
section
variables [ring α] [add_comm_group β] [add_comm_group γ] [add_comm_group δ]
variables [module α β] [module α γ] [module α δ]
variables (f g : β →ₗ[α] γ)
include α
l... |
02e2f8cb364c39227f190ce45a9282e6d09206f8 | d406927ab5617694ec9ea7001f101b7c9e3d9702 | /src/analysis/inner_product_space/projection.lean | defc6a6a1fa51390ba5ed9b7bb03db525891f01e | [
"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 | 58,574 | lean | /-
Copyright (c) 2019 Zhouhang Zhou. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Zhouhang Zhou, Frédéric Dupuis, Heather Macbeth
-/
import analysis.convex.basic
import analysis.inner_product_space.symmetric
import analysis.normed_space.is_R_or_C
/-!
# The orthogona... |
e412c9bed9007676ee4d2dde866353b0d69d4296 | 2eab05920d6eeb06665e1a6df77b3157354316ad | /src/algebra/ring/basic.lean | f14a152326c183bae20738010c3ddad8cd9f7961 | [
"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 | 47,430 | 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, Floris van Doorn, Amelia Livingston, Yury Kudryashov,
Neil Strickland
-/
import algebra.divisibility
import algebra.regular.basic
import data.set.basic... |
d745e9463bf1535ae563dfe7dfcdd6f3e6453ef4 | ce6917c5bacabee346655160b74a307b4a5ab620 | /src/ch2/ex0402.lean | 0f01dc775fb3cd674f4ab225eb9626f57534541d | [] | 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 | 36 | lean | def foo' := λ f : ℕ → ℕ, f 0
|
d39821ca23cfc7f5c41abc25501564ab11a6389d | 4727251e0cd73359b15b664c3170e5d754078599 | /src/algebra/group_with_zero/power.lean | 5366f1176875c901b133d8df1b88a005b9457d4e | [
"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 | 11,521 | 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 algebra.group_power.lemmas
/-!
# Powers of elements of groups with an adjoined zero element
In this file we define integer power functions for groups with an... |
dc4258ffe8c83d11521bebbe9ba76dc65098cbc5 | 19cc34575500ee2e3d4586c15544632aa07a8e66 | /src/data/list/basic.lean | a11a9b2954bcf7a19a8b5deb9fa5dfd4449db2d8 | [
"Apache-2.0"
] | permissive | LibertasSpZ/mathlib | b9fcd46625eb940611adb5e719a4b554138dade6 | 33f7870a49d7cc06d2f3036e22543e6ec5046e68 | refs/heads/master | 1,672,066,539,347 | 1,602,429,158,000 | 1,602,429,158,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 168,811 | lean | /-
Copyright (c) 2014 Parikshit Khanna. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Parikshit Khanna, Jeremy Avigad, Leonardo de Moura, Floris van Doorn, Mario Carneiro
-/
import algebra.order_functions
import control.monad.basic
import data.nat.choose.basic
import ... |
8ca8c27a0eb3f8333ec55895bdbdca0ab1a67226 | e39f04f6ff425fe3b3f5e26a8998b817d1dba80f | /category_theory/punit.lean | 5c607fe5325d08e5087a4b4bfb07b6b333e2b684 | [
"Apache-2.0"
] | permissive | kristychoi/mathlib | c504b5e8f84e272ea1d8966693c42de7523bf0ec | 257fd84fe98927ff4a5ffe044f68c4e9d235cc75 | refs/heads/master | 1,586,520,722,896 | 1,544,030,145,000 | 1,544,031,933,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 646 | lean | -- Copyright (c) 2018 Scott Morrison. All rights reserved.
-- Released under Apache 2.0 license as described in the file LICENSE.
-- Authors: Scott Morrison
import category_theory.functor
universes u v
namespace category_theory
instance punit_category : small_category punit :=
{ hom := λ X Y, punit,
id := λ _,... |
396c64d81b8ccef45e414bdc3e44050d216aa92c | 037dba89703a79cd4a4aec5e959818147f97635d | /src/2020/problem_sheets/Part_II/sheet1_q2.lean | 3eb090fa55e46f64f40d6d637d0dd67d82eb54d2 | [] | no_license | ImperialCollegeLondon/M40001_lean | 3a6a09298da395ab51bc220a535035d45bbe919b | 62a76fa92654c855af2b2fc2bef8e60acd16ccec | refs/heads/master | 1,666,750,403,259 | 1,665,771,117,000 | 1,665,771,117,000 | 209,141,835 | 115 | 12 | null | 1,640,270,596,000 | 1,568,749,174,000 | Lean | UTF-8 | Lean | false | false | 237 | lean | import tactic
variables (x y z : ℕ)
open nat
theorem Q2a : 1 * x = x ∧ x = x * 1 :=
begin
sorry
end
theorem Q2b : (x + y) * z = x * z + y * z :=
begin
sorry,
end
theorem Q2c : (x * y) * z = x * (y * z) :=
begin
sorry
end
|
4eea6c9cfa994bb1263f3e40bfd1a9fe2291e08b | f3849be5d845a1cb97680f0bbbe03b85518312f0 | /tests/lean/match_at_type.lean | c6482f1db610585e958dd0f13860f440f99f11e4 | [
"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 | 480 | lean | constant Foo : ((Σu:nat, nat) → nat) → Prop
constant Foo2 : ((Σu:nat, nat) → nat) → Prop
noncomputable instance : decidable (Foo (λ ⟨a, b⟩, a)) := -- ERROR
sorry
noncomputable instance I1 : decidable (Foo (λ ⟨a, b⟩, a)) :=
sorry
noncomputable instance I2 : decidable (Foo2 (λ ⟨a, b⟩, a)) :=
sorry
def test (f : ((Σu:... |
2566ab262811dccf52efec80f11575809795095d | 4fa161becb8ce7378a709f5992a594764699e268 | /src/group_theory/perm/cycles.lean | 79c3afc12446eab0d2e4f962214c20fc471176f2 | [
"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 | 7,483 | lean | /-
Copyright (c) 2019 Chris Hughes. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Chris Hughes
-/
import group_theory.perm.sign
import group_theory.order_of_element
namespace equiv.perm
open equiv function finset
variables {α : Type*} {β : Type*} [decidable_eq α]
de... |
ef9dd979114647a68f34fd4f1e7087af1597dac8 | 4727251e0cd73359b15b664c3170e5d754078599 | /src/set_theory/ordinal/basic.lean | e3b09d9dbd9dc802f5a6418700c718224cb0b279 | [
"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 | 62,346 | lean | /-
Copyright (c) 2017 Johannes Hölzl. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Mario Carneiro, Floris van Doorn
-/
import data.sum.order
import order.succ_pred.basic
import set_theory.cardinal.basic
/-!
# Ordinals
Ordinals are defined as equivalences of well-or... |
81080ab0509b3822455113d898fbd40a17d2a43a | 865bfafdd5c31c148e891f22dba45be7ae8fe9c5 | /sequence.hlean | fd7ee103baa447a567ba894c2ccd2e36d3dec89c | [
"Apache-2.0"
] | permissive | fpvandoorn/sequential_colimits | f0eaae8e87469c41e74bbac1ba32d1772ed0e7fa | e39c3bd2efc6dfb251d334cec8c76b6aa3947c31 | refs/heads/master | 1,590,752,488,347 | 1,511,385,696,000 | 1,511,385,754,000 | 43,088,713 | 0 | 0 | null | 1,443,123,449,000 | 1,443,123,449,000 | null | UTF-8 | Lean | false | false | 9,178 | 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, Egbert Rijke
-/
import types.nat .move_to_lib types.fin types.trunc
open nat eq equiv sigma sigma.ops is_equiv is_trunc trunc prod
namespace seq_colim
definit... |
3087f12ecc4a0bcb74106a74ba438c1fed113d60 | 86f6f4f8d827a196a32bfc646234b73328aeb306 | /examples/logic/unnamed_2320.lean | 240a22adaf40defe43474207b57cb7291d216a11 | [] | no_license | jamescheuk91/mathematics_in_lean | 09f1f87d2b0dce53464ff0cbe592c568ff59cf5e | 4452499264e2975bca2f42565c0925506ba5dda3 | refs/heads/master | 1,679,716,410,967 | 1,613,957,947,000 | 1,613,957,947,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 483 | lean | import data.real.basic
def converges_to (s : ℕ → ℝ) (a : ℝ) :=
∀ ε > 0, ∃ N, ∀ n ≥ N, abs (s n - a) < ε
-- BEGIN
variables {s t : ℕ → ℝ} {a b : ℝ}
theorem converges_to_add
(cs : converges_to s a) (ct : converges_to t b):
converges_to (λ n, s n + t n) (a + b) :=
begin
intros ε εpos, dsimp,
have ε2pos : 0 < ε / ... |
03546811431cf9e959b9b6e388954acb21c0aea9 | df561f413cfe0a88b1056655515399c546ff32a5 | /2-addition-world/l4.lean | ddf3504c1e2dd8bca0a28d37b8bbcb7e48bfdb44 | [] | no_license | nicholaspun/natural-number-game-solutions | 31d5158415c6f582694680044c5c6469032c2a06 | 1e2aed86d2e76a3f4a275c6d99e795ad30cf6df0 | refs/heads/main | 1,675,123,625,012 | 1,607,633,548,000 | 1,607,633,548,000 | 318,933,860 | 3 | 1 | null | null | null | null | UTF-8 | Lean | false | false | 152 | lean | lemma add_comm (a b : mynat) : a + b = b + a :=
begin
induction b with k Pk,
rw add_zero, rw zero_add, refl,
rw add_succ, rw succ_add, rw Pk, refl,
end |
f31af4a8c5839017b7adab64eb241ea827bb1956 | 57c233acf9386e610d99ed20ef139c5f97504ba3 | /src/data/int/succ_pred.lean | 3647669d17a7b967dc1bbc648525c6ac7369f4db | [
"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 | 1,620 | lean | /-
Copyright (c) 2021 Yaël Dillies. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Yaël Dillies
-/
import data.int.basic
import order.succ_pred.basic
/-!
# Successors and predecessors of integers
In this file, we show that `ℤ` is both an archimedean `succ_order` and ... |
df66cdaf37022a216a875c6ca2110bb46cac3e90 | f083c4ed5d443659f3ed9b43b1ca5bb037ddeb58 | /data/polynomial.lean | 5e93f1aa4129439ccd9fc8d77b95979b0ec46f4c | [
"Apache-2.0"
] | permissive | semorrison/mathlib | 1be6f11086e0d24180fec4b9696d3ec58b439d10 | 20b4143976dad48e664c4847b75a85237dca0a89 | refs/heads/master | 1,583,799,212,170 | 1,535,634,130,000 | 1,535,730,505,000 | 129,076,205 | 0 | 0 | Apache-2.0 | 1,551,697,998,000 | 1,523,442,265,000 | Lean | UTF-8 | Lean | false | false | 44,331 | 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, Jens Wagemaker
Theory of univariate polynomials, represented as `ℕ →₀ α`, where α is a commutative semiring.
-/
import data.finsupp algebra.euclidean_domai... |
3de3a5274e3375cf361d12f377c485209846cdbd | cc62cd292c1acc80a10b1c645915b70d2cdee661 | /src/category_theory/universal/zero.lean | 2a9fc9f2700f5101551ccbdc1b863664a3de62c9 | [] | no_license | RitaAhmadi/lean-category-theory | 4afb881c4b387ee2c8ce706c454fbf9db8897a29 | a27b4ae5eac978e9188d2e867c3d11d9a5b87a9e | refs/heads/master | 1,651,786,183,402 | 1,565,604,314,000 | 1,565,604,314,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 3,145 | lean | -- import category_theory.limits.terminal
-- import category_theory.tactics.obviously
-- open category_theory
-- universes u v
-- namespace category_theory.limits
-- variables {C : Type u} [𝒞 : category.{u v} C]
-- include 𝒞
-- structure is_zero (t : C) :=
-- (lift : ∀ (s : C), s ⟶ t)
-- (uniq_lift' : ∀ (s : C) ... |
9542ea85c1c67fb839d36afdd0dd639fc89de381 | 30b012bb72d640ec30c8fdd4c45fdfa67beb012c | /analysis/ennreal.lean | b5c924fe9a64e4d7d24d3749f47e889562132273 | [
"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 | 18,587 | lean | /-
Copyright (c) 2017 Johannes Hölzl. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Author: Johannes Hölzl
Extended non-negative reals
-/
import analysis.nnreal data.real.ennreal
noncomputable theory
open classical set lattice filter
local attribute [instance] prop_decidable
... |
938334082b13d3455838f994790a3b05c903601a | 29cc89d6158dd3b90acbdbcab4d2c7eb9a7dbf0f | /1.1/Exercises week1.lean | 40d17b7a94d8c0c53dbbe09107568458205fdcec | [] | no_license | KjellZijlemaker/Logical_Verification_VU | ced0ba95316a30e3c94ba8eebd58ea004fa6f53b | 4578b93bf1615466996157bb333c84122b201d99 | refs/heads/master | 1,585,966,086,108 | 1,549,187,704,000 | 1,549,187,704,000 | 155,690,284 | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 1,957 | lean | /- Exercise 1.1: Basics — Specifications -/
/- Replace the placeholders (e.g. `:= sorry`) with your solutions. -/
/- Question 1: Fibonacci numbers -/
/- 1.1. Define the function `fib` that returns the Fibonacci numbers. -/
def fib : ℕ → ℕ
| 0 := 0
| 1 := 1
| (n+2) := fib (n+1) + fib n
/- 1.2. Check that your... |
ceb832dec5a07c21172c6a4c73ced8089d7617e5 | e37bb385769d6f4ac9931236fd07b708397e086b | /src/exercises/src_36_order_axioms.lean | 4e6030dd1329a6503cebf834d349e7a2a6648dbc | [] | no_license | gihanmarasingha/ems_reals | 5f5d5b9d9dfb5a10da465046336d74995132dff6 | 9df527742db69d0a389add44b506538fdb4d0800 | refs/heads/master | 1,675,327,747,064 | 1,608,036,820,000 | 1,608,036,820,000 | 315,825,726 | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 13,692 | lean | import ..library.src_ordered_field
namespace mth1001
namespace myreal
section ordered
variables {R : Type} [myordered_field R]
open_locale classical
open myordered_field
/-
The three basic axiom of an orderd field are:
1. `trichotomy`,
2. `pos_add_of_pos_of_pos`, and
3. `pos_mul_of_pos_of_pos`,
as exemplified ... |
e3005718fe921b9369951cacc77cb655317643a6 | c09f5945267fd905e23a77be83d9a78580e04a4a | /src/topology/algebra/ordered.lean | 7ca879066046c18857e6bcf76612ef25a631a456 | [
"Apache-2.0"
] | permissive | OHIHIYA20/mathlib | 023a6df35355b5b6eb931c404f7dd7535dccfa89 | 1ec0a1f49db97d45e8666a3bf33217ff79ca1d87 | refs/heads/master | 1,587,964,529,965 | 1,551,819,319,000 | 1,551,819,319,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 43,686 | 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
Theory of ordered topology.
-/
import order.liminf_limsup
import algebra.big_operators algebra.group algebra.pi_instances
import data.set.intervals data... |
4b5310307a2a7d28618ea68ecb967f5258c483a9 | aa5a655c05e5359a70646b7154e7cac59f0b4132 | /tests/lean/run/binrel.lean | 34a9768bdd5478d4cc76f471cb5780bf7a073e0b | [
"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 | 721 | lean | def ex1 (x y : Nat) (i j : Int) :=
binrel! Less x i
def ex2 (x y : Nat) (i j : Int) :=
binrel! Less i x
def ex3 (x y : Nat) (i j : Int) :=
binrel! Less (i + 1) x
def ex4 (x y : Nat) (i j : Int) :=
binrel! Less i (x + 1)
def ex5 (x y : Nat) (i j : Int) :=
binrel! Less i (x + y)
def ex6 (x y : Nat) (i j : ... |
05737450b960c2212870a8d1abefe3ef17b34778 | 4727251e0cd73359b15b664c3170e5d754078599 | /src/category_theory/essential_image.lean | 7a832885783c3ecd97380b7e63b7b8aa672f309c | [
"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,260 | lean | /-
Copyright (c) 2020 Bhavik Mehta. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Bhavik Mehta
-/
import category_theory.natural_isomorphism
import category_theory.full_subcategory
import data.set.basic
/-!
# Essential image of a functor
The essential image `ess_ima... |
39c21e811b1be5b8b04376b14868c2d6ce8f08fe | 74addaa0e41490cbaf2abd313a764c96df57b05d | /Mathlib/data/multiset/functor_auto.lean | 41cdb4824b55f6dab39c6df74466b8e66d9e80af | [] | 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,122 | lean | /-
Copyright (c) 2018 Simon Hudon. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Author: Mario Carneiro, Johannes Hölzl, Simon Hudon, Kenny Lau
-/
import Mathlib.PrePort
import Mathlib.Lean3Lib.init.default
import Mathlib.data.multiset.basic
import Mathlib.control.traversable.... |
e02bb10aa578c786853cf99dd7e31682fca90859 | cf39355caa609c0f33405126beee2739aa3cb77e | /tests/lean/run/imp.lean | 2bac495d15acd4970f48cfa5fbe9f9c3703291f1 | [
"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 | 717 | lean | constant N : Type.{1}
constants a b c : N
constant f : forall {a b : N}, N → N
#check f
#check @f
#check @f a
#check @f a b
#check @f a b c
noncomputable definition l1 : N → N → N → N := @f
noncomputable definition l2 : N → N → N := @f a
noncomputable definition l3 : N → N := @f a b
noncomputable definition l4 : N :=... |
d9740ceae11fa6de4ec3e7bf6d94a791ca5e8278 | 6432ea7a083ff6ba21ea17af9ee47b9c371760f7 | /tests/lean/run/1374.lean | d8fafdfca6a7d1f8e104e2d298b7e7304f1496fc | [
"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 | 367 | lean | import Lean
/-- My new test option -/
register_option test : Nat := {
defValue := 10
descr := "testing"
}
/-- My new builtin test option -/
register_builtin_option testb : Nat := {
defValue := 10
descr := "testing"
}
/-- My new simp attribute -/
register_simp_attr mysimp
/-- config elab -/
declare_con... |
5078cde1ed07661df5f1f7d3acec8bb4eef0e4a9 | 761d983a78bc025071bac14a3facced881cf5e53 | /affine/aff_coord_space.lean | 86c4960fb7ff960e4b9b914c70a8cd1689687317 | [] | no_license | rohanrajnair/affine_lib | bcf22ff892cf74ccb36a95bc9b7fff8e0adb2d0d | 83076864245ac547b9d615bc6a23804b1b4a8f70 | refs/heads/master | 1,673,320,928,343 | 1,603,036,653,000 | 1,603,036,653,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 16,806 | lean | import .affine
import .list_stuff
import .add_group_action linear_algebra.basis
import algebra.field tactic.ext
universes u v w
variables (X : Type u) (K : Type v) (V : Type w) (n : ℕ) (id : ℕ) (k : K)
[inhabited K] [field K] [add_comm_group V] [vector_space K V] [affine_space X K V]
open list
/-- type clas... |
064e0fa983be48726ec0c8188362462d2c4ac13e | 75c54c8946bb4203e0aaf196f918424a17b0de99 | /src/completeness.lean | 627d60d4f3b78e3605014037019acc81c1355d87 | [
"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 | 2,851 | 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 .henkin
local attribute [instance, priority 0] classical.prop_decidable
open fol fol.Lhom
lemma satisfied_of_provable {L : Language} (T ... |
71d21a553389ba1697c4baf9840a4725a4533c26 | 968e2f50b755d3048175f176376eff7139e9df70 | /examples/prop_logic_theory/unnamed_1289.lean | b07d3eee2b017ddd0b631a64605643f85027bf3d | [] | no_license | gihanmarasingha/mth1001_sphinx | 190a003269ba5e54717b448302a27ca26e31d491 | 05126586cbf5786e521be1ea2ef5b4ba3c44e74a | refs/heads/master | 1,672,913,933,677 | 1,604,516,583,000 | 1,604,516,583,000 | 309,245,750 | 1 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 349 | lean | variables (p q : Prop)
-- BEGIN
example (h : p ↔ q) : q ↔ p :=
begin
split, -- By iff introduction, it suffices to prove `q → p` and `p → q`.
{ show q → p, from h.2 }, -- We show `q → p` by right iff elimination on `h`.
{ show p → q, from h.1 }, -- We show `p → q` by left iff elimination on `h... |
26a5e89f0dc2e44c18ac122cfdf52f47d5d419d8 | 437dc96105f48409c3981d46fb48e57c9ac3a3e4 | /src/analysis/specific_limits.lean | 4e33639e2bdc4843cd1fab12cbde2953d2c6494f | [
"Apache-2.0"
] | permissive | dan-c-k/mathlib | 08efec79bd7481ee6da9cc44c24a653bff4fbe0d | 96efc220f6225bc7a5ed8349900391a33a38cc56 | refs/heads/master | 1,658,082,847,093 | 1,589,013,201,000 | 1,589,013,201,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 21,605 | 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
A collection of specific limit computations.
-/
import analysis.normed_space.basic
import algebra.geom_sum
import topology.instances.ennreal
noncomputable theory
open_... |
832bcd83f68c77c6ee63a62b87053173be80aca4 | ac29b4b23012b196d8e8e8fd0482054e994814fb | /with_top.lean | bc4112a2ca2ac1c1cab79fddb8f1da831287000c | [] | no_license | laughinggas/Ashvni | ebdcb0ac7486b9d11a0152952da2742246755a5a | 934229f6fd246ce1cd71597ef9a579f4cb9ef0ef | refs/heads/master | 1,672,397,364,924 | 1,602,089,148,000 | 1,602,089,148,000 | 226,743,788 | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 943 | lean | import tactic
import order.bounded_lattice
/- Shows that for a in with_top, a+a = 0 is equivalent to a=0. -/
example (a : with_top ℤ) : a + a = 0 ↔ a = 0 :=
begin
split,
{ -- the hard way
intro h, -- h is a proof of a+a=0
-- split into cases
cases (with_top.cases a) with htop hn,
{ -- ... |
ef9d587200e1bcf3cb2e120c24261f82bd6fba5f | f1a12d4db0f46eee317d703e3336d33950a2fe7e | /common/test.lean | d833040c48c9f825dce7f361e4d07d62a0c64ba1 | [
"Apache-2.0"
] | permissive | avigad/qelim | bce89b79c717b7649860d41a41a37e37c982624f | b7d22864f1f0a2d21adad0f4fb3fc7ba665f8e60 | refs/heads/master | 1,584,548,938,232 | 1,526,773,708,000 | 1,526,773,708,000 | 134,967,693 | 2 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 150 | lean | import ...mathlib.data.int.basic
set_option class.instance_max_depth 256
namespace int
def foobar (i j : int) : Prop := (has_dvd.dvd i j)
end int |
9683921c1316e589f624a493e5fb1cc7762c2070 | d1a52c3f208fa42c41df8278c3d280f075eb020c | /stage0/src/Lean/Parser/StrInterpolation.lean | cddf78ce0e601f1e452e9f1b8448aecb77c7f3e4 | [
"Apache-2.0",
"LLVM-exception",
"NCSA",
"LGPL-3.0-only",
"LicenseRef-scancode-inner-net-2.0",
"BSD-3-Clause",
"LGPL-2.0-or-later",
"Spencer-94",
"LGPL-2.1-or-later",
"HPND",
"LicenseRef-scancode-pcre",
"ISC",
"LGPL-2.1-only",
"LicenseRef-scancode-other-permissive",
"SunPro",
"CMU-Mach"... | permissive | cipher1024/lean4 | 6e1f98bb58e7a92b28f5364eb38a14c8d0aae393 | 69114d3b50806264ef35b57394391c3e738a9822 | refs/heads/master | 1,642,227,983,603 | 1,642,011,696,000 | 1,642,011,696,000 | 228,607,691 | 0 | 0 | Apache-2.0 | 1,576,584,269,000 | 1,576,584,268,000 | null | UTF-8 | Lean | false | false | 2,120 | 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.Parser.Basic
namespace Lean.Parser
def isQuotableCharForStrInterpolant (c : Char) : Bool :=
c == '{' || isQuotableCharDefault c
partial def ... |
3e9a6d6407009f7346c9608f8a391c5fe7ec7b9f | 74addaa0e41490cbaf2abd313a764c96df57b05d | /Mathlib/measure_theory/borel_space.lean | 8d7a4030130bcb78beaed45e99724a8bfb97a0de | [] | 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 | 68,728 | 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 Mathlib.PrePort
import Mathlib.Lean3Lib.init.default
import Mathlib.measure_theory.measure_space
import Mathlib.measure_theory.ae_measurable_s... |
fc9d19c1401906a65834a1833570c4066d4296a5 | bbecf0f1968d1fba4124103e4f6b55251d08e9c4 | /src/measure_theory/measure/vector_measure.lean | 9308fdd1d3a6b55610c4efef04a2c060ea3f3340 | [
"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 | 47,534 | lean | /-
Copyright (c) 2021 Kexing Ying. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Kexing Ying
-/
import measure_theory.integral.lebesgue
/-!
# Vector valued measures
This file defines vector valued measures, which are σ-additive functions from a set to a add monoid
... |
ca76d1ea951a9bf56baff3e01d31926b99027f8b | cf39355caa609c0f33405126beee2739aa3cb77e | /tests/lean/run/tc_right_to_left.lean | e1d3e2c1fffbf05aec2aeb981bd30b51d25e026d | [
"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 | 463 | lean | -- verify that class resolution is done from right to left
class a (α : Type) (x : bool)
class b (α : Type) (x : bool)
class c (α : Type)
instance (α) : a α tt := ⟨⟩
instance (α) : b α tt := ⟨⟩
instance b.to_c (α x) [a α x] [b α x] : c α := ⟨⟩
-- make all type-class resolution queries for `a α ff` fail
instance (α) ... |
a6a7d2d8dc62e1fbe00c869340bbed740f49a0e8 | 74addaa0e41490cbaf2abd313a764c96df57b05d | /Mathlib/control/bitraversable/basic_auto.lean | 37411a1ab0768360de5a2cfef8e42d25e8e60fd3 | [] | 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,531 | lean | /-
Copyright (c) 2018 Simon Hudon. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Author: Simon Hudon
-/
import Mathlib.PrePort
import Mathlib.Lean3Lib.init.default
import Mathlib.control.bifunctor
import Mathlib.control.traversable.basic
import Mathlib.PostPort
universes u l ... |
af63dfb3af2cfbd12774a3f22ee8268bd2667144 | 367134ba5a65885e863bdc4507601606690974c1 | /src/testing/slim_check/gen.lean | f132b44a63bcff1f628c8da83d3faea616d8f798 | [
"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 | 5,707 | lean | /-
Copyright (c) 2020 Simon Hudon. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Author(s): Simon Hudon
-/
import control.uliftable
import system.random
import system.random.basic
/-!
# `gen` Monad
This monad is used to formulate randomized computations with a parameter
to ... |
abf09fb4ad14bd76f1ff9ddb69781c30d7bc5865 | 4d2583807a5ac6caaffd3d7a5f646d61ca85d532 | /src/geometry/euclidean/basic.lean | c52099bd2c2c038354691e7b0c68a05d4bef4dd6 | [
"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 | 56,108 | lean | /-
Copyright (c) 2020 Joseph Myers. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Joseph Myers, Manuel Candales
-/
import analysis.inner_product_space.projection
import analysis.special_functions.trigonometric.inverse
import algebra.quadratic_discriminant
import linea... |
42a922390e4a04f91d5082cd853fdce6c8dade98 | d406927ab5617694ec9ea7001f101b7c9e3d9702 | /src/data/setoid/partition.lean | 48645c89da3ad7726c823605a5230a166cd706bc | [
"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 | 16,749 | lean | /-
Copyright (c) 2019 Amelia Livingston. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Amelia Livingston, Bryan Gin-ge Chen, Patrick Massot
-/
import data.fintype.basic
import data.set.finite
import data.setoid.basic
import order.partition.finpartition
/-!
# Equival... |
a7a06dfffa4bc7abf4e8eb768f04e6cd50bc6e6c | 1963cb8789bf8cf695607cc2d4106d7fdd8fb9f2 | /homework1.lean | 0bce1c03ba4a8b5510afc8df861f6db85b7417da | [] | no_license | mtegene/homework-mtegene-master | ed43dd0b8cbcea936b6eec82c614842eca02a406 | 5f9b3623a46d2d3b98c54d8cbc82962d3fef49f5 | refs/heads/master | 1,610,605,612,607 | 1,488,481,866,000 | 1,488,481,866,000 | 81,875,687 | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 9,955 | lean | /-
Dependent types
In class, I presented "vector α n" and "matrix α m n" as examples of
dependent types. Make up some operations on these types -- like
"vector_add" or "vector_reverse" -- and declare constants of the
right type to describe them. Use implicit arguments for parameters
that can be inferred. T... |
6d863888d0fd720081880adef6a2c574523f8bfe | ad0c7d243dc1bd563419e2767ed42fb323d7beea | /data/nat/basic.lean | 213be7505d3ba49b1f8d8f2210a98d2f5004606e | [
"Apache-2.0"
] | permissive | sebzim4500/mathlib | e0b5a63b1655f910dee30badf09bd7e191d3cf30 | 6997cafbd3a7325af5cb318561768c316ceb7757 | refs/heads/master | 1,585,549,958,618 | 1,538,221,723,000 | 1,538,221,723,000 | 150,869,076 | 0 | 0 | Apache-2.0 | 1,538,229,323,000 | 1,538,229,323,000 | null | UTF-8 | Lean | false | false | 25,547 | lean | /-
Copyright (c) 2014 Floris van Doorn. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Floris van Doorn, Leonardo de Moura, Jeremy Avigad, Mario Carneiro
Basic operations on the natural numbers.
-/
import logic.basic algebra.order data.option
universe u
namespace na... |
8aad92c5ec32373cd774781b8ea7ec350fe116d3 | 4727251e0cd73359b15b664c3170e5d754078599 | /src/category_theory/closed/monoidal.lean | e6308ec3b880b533166d3a2273dc5b94e81e83ee | [
"Apache-2.0"
] | permissive | Vierkantor/mathlib | 0ea59ac32a3a43c93c44d70f441c4ee810ccceca | 83bc3b9ce9b13910b57bda6b56222495ebd31c2f | refs/heads/master | 1,658,323,012,449 | 1,652,256,003,000 | 1,652,256,003,000 | 209,296,341 | 0 | 1 | Apache-2.0 | 1,568,807,655,000 | 1,568,807,655,000 | null | UTF-8 | Lean | false | false | 8,136 | lean | /-
Copyright (c) 2020 Scott Morrison. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Scott Morrison, Bhavik Mehta
-/
import category_theory.monoidal.category
import category_theory.adjunction.limits
import category_theory.adjunction.mates
/-!
# Closed monoidal categor... |
11669ff6cf92b7792a550aed3a1d6a449587efc3 | 8cae430f0a71442d02dbb1cbb14073b31048e4b0 | /src/set_theory/cardinal/basic.lean | c04b208884d0f24d7b94da9230ff9192ac4aaaf3 | [
"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 | 76,880 | lean | /-
Copyright (c) 2017 Johannes Hölzl. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Johannes Hölzl, Mario Carneiro, Floris van Doorn
-/
import data.fintype.big_operators
import data.finsupp.defs
import data.nat.part_enat
import data.set.countable
import logic.small.ba... |
f38ec925989101536ed0656ad7a99794e1794cde | 8cae430f0a71442d02dbb1cbb14073b31048e4b0 | /src/algebra/hom/equiv/basic.lean | 6a616f42e792333a7e877b63085444d5809387b4 | [
"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 | 22,257 | 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 algebra.hom.group
import data.fun_like.equiv
import logic.equiv.basic
import data.pi.algebra
/-!
# Multiplicative and additive... |
e623cc67a2c1758b7e7ad9a21837f2aa92711ea6 | 137c667471a40116a7afd7261f030b30180468c2 | /src/combinatorics/simple_graph/subgraph.lean | 03558bb8c5bab568c7e35378b4b83d0ddba28466 | [
"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 | 12,082 | lean | /-
Copyright (c) 2021 Hunter Monroe. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Hunter Monroe, Kyle Miller, Alena Gusakov
-/
import combinatorics.simple_graph.basic
import data.set.finite
/-!
# Subgraphs of a simple graph
A subgraph of a simple graph consists of ... |
1748970e6518872d67269f1414cef8d90353e77c | 4727251e0cd73359b15b664c3170e5d754078599 | /src/group_theory/torsion.lean | 405dbf5396758e33a66544723995a191fc3c2138 | [
"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 | 11,983 | lean | /-
Copyright (c) 2022 Julian Berman. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Julian Berman
-/
import group_theory.exponent
import group_theory.order_of_element
import group_theory.quotient_group
import group_theory.submonoid.operations
/-!
# Torsion groups
Th... |
6602191aae593700895321f7b2451a314fa2db1f | ad3e8f15221a986da27c99f371922c0b3f5792b6 | /src/week-02/solutions/e02-functions.lean | bd47a2698ce2dd81309eef1e53ae653f7a12ea86 | [] | no_license | VArtem/lean-itmo | a0e1424c8cc4c2de2ac85ab6fd4a12d80e9b85f1 | dc44cd06f9f5b984d051831b3aaa7364e64c2dc4 | refs/heads/main | 1,683,761,214,467 | 1,622,821,295,000 | 1,622,821,295,000 | 357,236,048 | 12 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 9,806 | lean | import tactic
-- Упражнения в этом файле сосредоточены на свойствах функций: инъекции, сюръекции и биекции.
-- По большей части заимствовано из курса Formalising Mathematics:
-- https://github.com/ImperialCollegeLondon/formalising-mathematics/blob/master/src/week_1/Part_C_functions.lean
-- https://github.com/Imperial... |
ce35406eac9b65bfb714f0b35f887292c54789c7 | 36c7a18fd72e5b57229bd8ba36493daf536a19ce | /tests/lean/run/blast25.lean | 2d7e84e5e959e6cdebcd4e43c4667c051af94883 | [
"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 | 693 | lean | -- Basic (propositional) forward chaining with conjunctive conclusions
constants (A B C D E : Prop)
set_option blast.recursor false
definition lemma1 : B → (A → (¬ B) ∧ C) → ¬ A := by blast
definition lemma2 : ¬ B → (A → B ∧ C) → ¬ A := by blast
definition lemma3 : B → (A → C ∧ (¬ B)) → ¬ A := by blast
definition lemm... |
8a6899ddc364cd371d65aedbc9a735f552ba1016 | b7f22e51856f4989b970961f794f1c435f9b8f78 | /tests/lean/689.lean | 01043b9a138c7faf4e2814549d4efcc549df3171 | [
"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 | 44 | lean | check @eq (begin exact empty end) unit.star
|
e76dc4a62140aadc59ef1f6715d2bcd26fc10a75 | b70031c8e2c5337b91d7e70f1e0c5f528f7b0e77 | /src/category_theory/limits/presheaf.lean | 107ef9e1e7ea515a11b0a75e2f960a00cfb42a88 | [
"Apache-2.0"
] | permissive | molodiuc/mathlib | cae2ba3ef1601c1f42ca0b625c79b061b63fef5b | 98ebe5a6739fbe254f9ee9d401882d4388f91035 | refs/heads/master | 1,674,237,127,059 | 1,606,353,533,000 | 1,606,353,533,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 12,104 | lean | /-
Copyright (c) 2020 Bhavik Mehta. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Bhavik Mehta
-/
import category_theory.adjunction
import category_theory.elements
import category_theory.limits.functor_category
import category_theory.limits.preserves.limits
import cat... |
e03b3dae26fb4e6ab1f4cac893b3cf56bbff5b3e | a9d0fb7b0e4f802bd3857b803e6c5c23d87fef91 | /tests/lean/bug1.lean | a5d572fe5e209fef4f5a887102e2c561fbe05e8c | [
"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 | 653 | lean | prelude definition bool : Type.{1} := Type.{0}
definition and (p q : bool) : bool := ∀ c : bool, (p → q → c) → c
infixl ` ∧ `:25 := and
constant a : bool
-- Error
theorem and_intro1 (p q : bool) (H1 : p) (H2 : q) : a
:= fun (c : bool) (H : p -> q -> c), H H1 H2
-- Error
theorem and_intro2 (p q : bool) ... |
51ea4ece099492e23b3056d48f09dde23a499ef0 | efce24474b28579aba3272fdb77177dc2b11d7aa | /src/for_mathlib/default.lean | 88e9741205dbad5fc2744b7227cdb6958a230db7 | [
"Apache-2.0"
] | permissive | rwbarton/lean-homotopy-theory | cff499f24268d60e1c546e7c86c33f58c62888ed | 39e1b4ea1ed1b0eca2f68bc64162dde6a6396dee | refs/heads/lean-3.4.2 | 1,622,711,883,224 | 1,598,550,958,000 | 1,598,550,958,000 | 136,023,667 | 12 | 6 | Apache-2.0 | 1,573,187,573,000 | 1,528,116,262,000 | Lean | UTF-8 | Lean | false | false | 42 | lean | import .data_equiv
import .data_set_basic
|
291ff9b33959855a0d790e1f3f229af267bc492e | b87641ffb6358d6508ccbfa54e67c87070cb28d8 | /ap_cat/src/matrix.lean | a15542c288487e3c8240be03ef532a542ad7a960 | [] | no_license | Nolrai/LeanGiggle | a4b628745ae3f5a36ae79b673ee8543e18ed4899 | 8326b2a6685b60a3529ee0fe26bd86f5d849b071 | refs/heads/master | 1,545,396,766,168 | 1,538,238,458,000 | 1,538,238,458,000 | 105,524,473 | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 1,610 | lean | import why
universe u
inductive Fin : nat -> Type
| zero : ∀ {n}, Fin (nat.succ n)
| succ : ∀ n, Fin n -> Fin (nat.succ n)
open fin
open Fin
open nat
#print prefix partial_order
def Fin.mk : Π (n : nat) {m : nat}, option_why (n ≤ m) (Fin m)
| n 0 := option_why.none
| 0 (succ m) := @option_why.some (0 ≤ n)
class... |
85c3aa6eb5f781b9f12caec32ee938fa7c33a634 | 74addaa0e41490cbaf2abd313a764c96df57b05d | /Mathlib/algebra/gcd_monoid.lean | 5493b97a825dd50797a4cf978a6332d2d88b7e0b | [] | 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 | 28,573 | 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
TODO: Provide a GCD monoid instance for `ℕ`, port GCD facts about nats
TODO: Generalize normalization monoids commutative (cancellative) monoids with or... |
151c39aa42ce4f86a6b174a1c6e272014d4ec80a | 94e33a31faa76775069b071adea97e86e218a8ee | /src/analysis/complex/liouville.lean | 6ec6d0b88aca2102d27a9bd5d7b682446507b3d2 | [
"Apache-2.0"
] | permissive | urkud/mathlib | eab80095e1b9f1513bfb7f25b4fa82fa4fd02989 | 6379d39e6b5b279df9715f8011369a301b634e41 | refs/heads/master | 1,658,425,342,662 | 1,658,078,703,000 | 1,658,078,703,000 | 186,910,338 | 0 | 0 | Apache-2.0 | 1,568,512,083,000 | 1,557,958,709,000 | Lean | UTF-8 | Lean | false | false | 5,704 | lean | /-
Copyright (c) 2022 Yury G. Kudryashov. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Yury G. Kudryashov
-/
import analysis.complex.cauchy_integral
import analysis.calculus.fderiv_analytic
import analysis.normed_space.completion
/-!
# Liouville's theorem
In this f... |
40c3ea91ad4acb9541e0b06f2ca714c298a12aa0 | 367134ba5a65885e863bdc4507601606690974c1 | /src/tactic/basic.lean | bce1f2c1acd9a154a24468393b1f09d3e6b3c76e | [
"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 | 943 | lean | import tactic.alias
import tactic.clear
import tactic.choose
import tactic.converter.apply_congr
import tactic.congr
import tactic.dec_trivial
import tactic.delta_instance
import tactic.dependencies
import tactic.elide
import tactic.explode
import tactic.find
import tactic.finish
import tactic.generalizes
import tactic... |
e7894e7c74e59c1ae5cbb6f6d08fb88b784ba68c | 90edd5cdcf93124fe15627f7304069fdce3442dd | /stage0/src/Lean/Aesop/Config.lean | 11b13587f3ca09508bda4108699c0e554592a6a7 | [
"Apache-2.0"
] | permissive | JLimperg/lean4-aesop | 8a9d9cd3ee484a8e67fda2dd9822d76708098712 | 5c4b9a3e05c32f69a4357c3047c274f4b94f9c71 | refs/heads/master | 1,689,415,944,104 | 1,627,383,284,000 | 1,627,383,284,000 | 377,536,770 | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 11,444 | lean | /-
Copyright (c) 2021 Jannis Limperg. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Jannis Limperg, Asta Halkjær From
-/
import Lean.Aesop.RuleBuilder
open Lean
open Lean.Meta (SimpEntry getSimpLemmas)
namespace Lean.Aesop
namespace AttrSyntax
syntax prio := "-"?... |
a8ab5a8f15ef5e63fa137c4701f21cb41cc3a04d | 74addaa0e41490cbaf2abd313a764c96df57b05d | /Mathlib/logic/unique.lean | 235b36bd0e2456ecad404ea37b99cd192443f1dc | [] | 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 | 5,246 | 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 Mathlib.PrePort
import Mathlib.Lean3Lib.init.default
import Mathlib.tactic.basic
import Mathlib.PostPort
universes u l v
namespace Mathlib
/-!
# Types with... |
98a79b7ed8404acc61dcaa3f955e0ecd6aa421f7 | 64874bd1010548c7f5a6e3e8902efa63baaff785 | /tests/lean/run/eq8.lean | 6e76166ed2f364f4635f7ae5fbb7b49648fdb9ad | [
"Apache-2.0"
] | permissive | tjiaqi/lean | 4634d729795c164664d10d093f3545287c76628f | d0ce4cf62f4246b0600c07e074d86e51f2195e30 | refs/heads/master | 1,622,323,796,480 | 1,422,643,069,000 | 1,422,643,069,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 212 | lean | import data.vector
open vector
definition map {A B C : Type} (f : A → B → C) : Π {n}, vector A n → vector B n → vector C n,
map nil nil := nil,
map (a :: va) (b :: vb) := f a b :: map va vb
|
016415b1206d26bf34d6a6322562d9b2d8976ef9 | 9be442d9ec2fcf442516ed6e9e1660aa9071b7bd | /src/Lean/Server/Snapshots.lean | dc1fdd4403aaf976974f5f842caebc7adee4a0ea | [
"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 | 7,588 | lean | /-
Copyright (c) 2020 Wojciech Nawrocki. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Wojciech Nawrocki
-/
import Init.System.IO
import Lean.Elab.Import
import Lean.Elab.Command
import Lean.Widget.InteractiveDiagnostic
/-! One can think of this module as being a ... |
84a1fad1120ac6420c644499cc74a4d0e56941e0 | 74addaa0e41490cbaf2abd313a764c96df57b05d | /Mathlib/algebra/order_auto.lean | 6aae9e406b6ed0708fb1e905f4416059d0058d2f | [] | 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 | 17,657 | 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 Mathlib.PrePort
import Mathlib.Lean3Lib.init.default
import Mathlib.tactic.alias
import Mathlib.tactic.lint.default
import Mathlib.PostPort
universes u u_1
... |
6db287df1793e717d9a2d62307af3cb168c07315 | 12dabd587ce2621d9a4eff9f16e354d02e206c8e | /world03/level02.lean | eaf4cafcd4ce053ba9ac4c4fdd36e54d414b8fa1 | [] | no_license | abdelq/natural-number-game | a1b5b8f1d52625a7addcefc97c966d3f06a48263 | bbddadc6d2e78ece2e9acd40fa7702ecc2db75c2 | refs/heads/master | 1,668,606,478,691 | 1,594,175,058,000 | 1,594,175,058,000 | 278,673,209 | 0 | 1 | null | null | null | null | UTF-8 | Lean | false | false | 117 | lean | lemma mul_one (m : mynat) : m * 1 = m :=
begin
rw one_eq_succ_zero,
rw mul_succ,
rw mul_zero,
rw zero_add,
refl,
end
|
4829f529f1d2b19e8e8a1d02ca9862703392a2bb | 22e97a5d648fc451e25a06c668dc03ac7ed7bc25 | /src/algebra/punit_instances.lean | 06351d9f5259e90587093fd240864848f27ef8ac | [
"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 | 3,437 | lean | /-
Copyright (c) 2019 Kenny Lau. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Kenny Lau
Instances on punit.
-/
import algebra.module
universes u
namespace punit
variables (x y : punit.{u+1}) (s : set punit.{u+1})
@[to_additive add_comm_group]
instance : comm_grou... |
4416aa0d0da37233ce57f1ab0e7a1f45ddc40e84 | 63abd62053d479eae5abf4951554e1064a4c45b4 | /src/computability/primrec.lean | 96df3ffc947f4232480f06fd59a41e3834e6c0c6 | [
"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 | 51,997 | lean | /-
Copyright (c) 2018 Mario Carneiro. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Author: Mario Carneiro
-/
import data.equiv.list
import logic.function.iterate
/-!
# The primitive recursive functions
The primitive recursive functions are the least collection of functions
... |
8e5206186f24905444e607289a7bd796a1bda6fa | d406927ab5617694ec9ea7001f101b7c9e3d9702 | /src/topology/category/UniformSpace.lean | c77bcd9e646dd2876d379d0aaafa9e704988e6cc | [
"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,224 | lean | /-
Copyright (c) 2019 Scott Morrison. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Reid Barton, Patrick Massot, Scott Morrison
-/
import category_theory.adjunction.reflective
import category_theory.concrete_category.unbundled_hom
import category_theory.monad.limits
i... |
1d3f40c389f39f31ad4cefd9348d7b21d75849af | 367134ba5a65885e863bdc4507601606690974c1 | /src/tactic/simp_rw.lean | 6c1aa0d6e8ef5589fd32054fcb2ad36147a08e6e | [
"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 | 2,346 | lean | /-
Copyright (c) 2020 Anne Baanen. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Anne Baanen
The `simp_rw` tactic, a mix of `simp` and `rewrite`.
-/
import tactic.core
/-!
# The `simp_rw` tactic
This module defines a tactic `simp_rw` which functions as a mix of `si... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.