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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
813e82d4962be85c84516eb6e7742f044c081dc2 | e5169dbb8b1bea3ec2a32737442bc91a4a94b46a | /library/data/list/basic.lean | 619c23684cc3bcd45cf4a369ea44a6cf9dd2cfe2 | [
"Apache-2.0"
] | permissive | pazthor/lean | 733b775e3123f6bbd2c4f7ccb5b560b467b76800 | c923120db54276a22a75b12c69765765608a8e76 | refs/heads/master | 1,610,703,744,289 | 1,448,419,395,000 | 1,448,419,703,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 28,394 | 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
Basic properties of lists.
-/
import logic tools.helper_tactics data.nat.order
open eq.ops helper_tactics nat pr... |
f9bd1580d4578c1f431f084690e20de42d7ea59d | 8d65764a9e5f0923a67fc435eb1a5a1d02fd80e3 | /src/field_theory/splitting_field.lean | ea41b0339a78875967c18067b1a86c0735f3932e | [
"Apache-2.0"
] | permissive | troyjlee/mathlib | e18d4b8026e32062ab9e89bc3b003a5d1cfec3f5 | 45e7eb8447555247246e3fe91c87066506c14875 | refs/heads/master | 1,689,248,035,046 | 1,629,470,528,000 | 1,629,470,528,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 37,514 | lean | /-
Copyright (c) 2018 Chris Hughes. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Chris Hughes
-/
import ring_theory.adjoin_root
import ring_theory.algebra_tower
import ring_theory.algebraic
import ring_theory.polynomial
import field_theory.minpoly
import linear_algeb... |
2a96513b9ccb236c07025b753465f4628936d9a3 | 63abd62053d479eae5abf4951554e1064a4c45b4 | /src/analysis/calculus/mean_value.lean | 544d9875c74b15f55ba7cffe17aff52cd7daf7aa | [
"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 | 53,700 | 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, Yury Kudryashov
-/
import analysis.calculus.local_extr
import analysis.convex.topology
/-!
# The mean value inequality and equalities
In this file we prove the ... |
a563045bbb37a47ef0dc5e409e1d4c737448795a | 9dc8cecdf3c4634764a18254e94d43da07142918 | /src/order/upper_lower.lean | e89c2245b90c064f172e88bdd7d01182d1dec0cc | [
"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 | 30,958 | lean | /-
Copyright (c) 2022 YaΓ«l Dillies, Sara Rousta. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: YaΓ«l Dillies, Sara Rousta
-/
import data.set_like.basic
import data.set.intervals.ord_connected
import order.hom.complete_lattice
/-!
# Up-sets and down-sets
This file def... |
f2cfcd2c0d6b52157b9835dccc47cebf13d764f2 | 5749d8999a76f3a8fddceca1f6941981e33aaa96 | /src/order/zorn.lean | 44a51cbc5d5bbba2d30dae9cc240a67e9ab9b10e | [
"Apache-2.0"
] | permissive | jdsalchow/mathlib | 13ab43ef0d0515a17e550b16d09bd14b76125276 | 497e692b946d93906900bb33a51fd243e7649406 | refs/heads/master | 1,585,819,143,348 | 1,580,072,892,000 | 1,580,072,892,000 | 154,287,128 | 0 | 0 | Apache-2.0 | 1,540,281,610,000 | 1,540,281,609,000 | null | UTF-8 | Lean | false | false | 12,698 | 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
Zorn's lemmas.
Ported from Isabelle/HOL (written by Jacques D. Fleuriot, Tobias Nipkow, and Christian Sternagel).
-/
import data.set.lattice
noncomputable theory
univ... |
cf8176ef7146d5cb7a6fe7ba554091ddb75cc540 | 94e33a31faa76775069b071adea97e86e218a8ee | /src/category_theory/structured_arrow.lean | e4b6497d49b479691d2e5db86b24087bbb3e7428 | [
"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 | 13,410 | lean | /-
Copyright (c) 2021 Scott Morrison. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Adam Topaz, Scott Morrison
-/
import category_theory.punit
import category_theory.comma
import category_theory.limits.shapes.terminal
/-!
# The category of "structured arrows"
For `T... |
722ab88fa2082a1a0f0b711749de7f67da3cc340 | 82e44445c70db0f03e30d7be725775f122d72f3e | /src/analysis/special_functions/exp_log.lean | 7a4e95bf1e5de75744b477669777dc30e71be6fd | [
"Apache-2.0"
] | permissive | stjordanis/mathlib | 51e286d19140e3788ef2c470bc7b953e4991f0c9 | 2568d41bca08f5d6bf39d915434c8447e21f42ee | refs/heads/master | 1,631,748,053,501 | 1,627,938,886,000 | 1,627,938,886,000 | 228,728,358 | 0 | 0 | Apache-2.0 | 1,576,630,588,000 | 1,576,630,587,000 | null | UTF-8 | Lean | false | false | 34,879 | lean | /-
Copyright (c) 2018 Chris Hughes. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Chris Hughes, Abhimanyu Pallavi Sudhir, Jean Lo, Calle SΓΆnne
-/
import analysis.calculus.inverse
import analysis.complex.real_deriv
import data.complex.exponential
/-!
# Complex and rea... |
8182d309d7d92bebe28dcd37062307bbb0ab8f8d | 69d4931b605e11ca61881fc4f66db50a0a875e39 | /src/computability/primrec.lean | 5782258691c6ebd7cfbec3b49c3149f869d5153a | [
"Apache-2.0"
] | permissive | abentkamp/mathlib | d9a75d291ec09f4637b0f30cc3880ffb07549ee5 | 5360e476391508e092b5a1e5210bd0ed22dc0755 | refs/heads/master | 1,682,382,954,948 | 1,622,106,077,000 | 1,622,106,077,000 | 149,285,665 | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 51,973 | lean | /-
Copyright (c) 2018 Mario Carneiro. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Mario Carneiro
-/
import data.equiv.list
import logic.function.iterate
/-!
# The primitive recursive functions
The primitive recursive functions are the least collection of functions... |
2d98e1f6ce91b1eaba6b3363a793c941a8279a65 | 57c233acf9386e610d99ed20ef139c5f97504ba3 | /src/topology/homeomorph.lean | 1435154d553072e5ebc5fce828de9071b12b3227 | [
"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 | 21,132 | lean | /-
Copyright (c) 2019 Reid Barton. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Johannes HΓΆlzl, Patrick Massot, SΓ©bastien GouΓ«zel, Zhouhang Zhou, Reid Barton
-/
import topology.dense_embedding
import data.equiv.fin
/-!
# Homeomorphisms
This file defines homeomorphi... |
d5823983daead61640277ebe469d140357ebf242 | 9dc8cecdf3c4634764a18254e94d43da07142918 | /src/algebra/category/Group/limits.lean | 461221bd979000f71ab0ede5b999d47f651ac036 | [
"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 | 12,580 | lean | /-
Copyright (c) 2020 Scott Morrison. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Scott Morrison
-/
import algebra.category.Mon.limits
import algebra.category.Group.preadditive
import category_theory.over
import category_theory.limits.concrete_category
import catego... |
dad96017847c5f977d94ec6ce9603de8282f16af | 4727251e0cd73359b15b664c3170e5d754078599 | /src/linear_algebra/matrix/charpoly/basic.lean | 9527ee1bc89f7f41048239a4d28196394d4a60af | [
"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,377 | 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 linear_algebra.matrix.adjugate
import ring_theory.matrix_algebra
import ring_theory.polynomial_algebra
import tactic.apply_fun
import tactic.squeeze
/-!
# Cha... |
2623ab70fc64940a84538a4b8bacf42194a1dff9 | a45212b1526d532e6e83c44ddca6a05795113ddc | /docs/tutorial/Zmod37.lean | b5ffcf256b46f5ca0bc5b0929b465af2fd024d33 | [
"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 | 8,102 | lean | /- Integers mod 37
A demonstration of how to use equivalence relations and equivalence classes in Lean.
We define the "congruent mod 37" relation on integers, prove it is an equivalence
relation, define Zmod37 to be the equivalence classes, and put a ring structure on
the quotient.
-/
-- this import is helpf... |
c23d83a7bb5ae5587b14462e8932a200ed9d2ea0 | 02fbe05a45fda5abde7583464416db4366eedfbf | /library/init/data/setoid.lean | 235b2619d3d75dccf0ba979f416b428390c576c7 | [
"Apache-2.0"
] | permissive | jasonrute/lean | cc12807e11f9ac6b01b8951a8bfb9c2eb35a0154 | 4be962c167ca442a0ec5e84472d7ff9f5302788f | refs/heads/master | 1,672,036,664,637 | 1,601,642,826,000 | 1,601,642,826,000 | 260,777,966 | 0 | 0 | Apache-2.0 | 1,588,454,819,000 | 1,588,454,818,000 | null | UTF-8 | Lean | false | false | 840 | 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
-/
prelude
import init.logic
universes u
class setoid (Ξ± : Sort u) :=
(r : Ξ± β Ξ± β Prop) (iseqv : equivalence r)
instance setoid_has_equiv {Ξ± : Sort u} [seto... |
029bc9f8d012056667f544ad8c9e3efb56b99733 | 9cba98daa30c0804090f963f9024147a50292fa0 | /old/src/test/phys_test_1.lean | b165cfa71967d5c53e8acd0e149767e740d72b04 | [] | no_license | kevinsullivan/phys | dcb192f7b3033797541b980f0b4a7e75d84cea1a | ebc2df3779d3605ff7a9b47eeda25c2a551e011f | refs/heads/master | 1,637,490,575,500 | 1,629,899,064,000 | 1,629,899,064,000 | 168,012,884 | 0 | 3 | null | 1,629,644,436,000 | 1,548,699,832,000 | Lean | UTF-8 | Lean | false | false | 348 | lean | import ..physlib
/-
worldTime = ClassicalTime()
si = SI()
timeFrame = worldTime.stdFrame() with si
timePoint = Point(worldTime,stdFrame,<10>, si_measurement_system)
timeVector = Vector(worldTime, stdFrame,<60>, si_measurement_system)
newTime = timeFrame(worldTime, timePoint, <timeVector>)
-/
def world_time : _ :... |
ef7b2719e0ff2f66cd7877424d13ef7670acaa6e | 4efff1f47634ff19e2f786deadd394270a59ecd2 | /src/control/monad/cont.lean | 752eec2e83cfef35afdad309679fefe91a8fa62b | [
"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 | 9,445 | lean | /-
Copyright (c) 2019 Simon Hudon. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Author: Simon Hudon
Monad encapsulating continuation passing programming style, similar to
Haskell's `Cont`, `ContT` and `MonadCont`:
<http://hackage.haskell.org/package/mtl-2.2.2/docs/Control-Mo... |
b1359085c501a789c36eac57b20351d6921728e4 | 9bb72db9297f7837f673785604fb89b3184e13f8 | /library/init/data/int/order.lean | f0c463f535f968399240c764f399891521df89ae | [
"Apache-2.0"
] | permissive | dselsam/lean | ec83d7592199faa85687d884bbaaa570b62c1652 | 6b0bd5bc2e07e13880d332c89093fe3032bb2469 | refs/heads/master | 1,621,807,064,966 | 1,611,454,685,000 | 1,611,975,642,000 | 42,734,348 | 3 | 3 | null | 1,498,748,560,000 | 1,442,594,289,000 | C++ | UTF-8 | Lean | false | false | 36,954 | 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 order relation on the integers.
-/
prelude
import init.data.int.basic init.data.ordering.basic
namespace int
def nonneg (a : β€) : Prop := int.cases_on a (assume n, ... |
fe8005f493df0e7d6dcd2a4d720db21413d9479a | a46270e2f76a375564f3b3e9c1bf7b635edc1f2c | /3-3.lean | d573812e4582d268a62c8a7983140993e6eac640 | [
"CC0-1.0"
] | permissive | wudcscheme/lean-exercise | 88ea2506714eac343de2a294d1132ee8ee6d3a20 | 5b23b9be3d361fff5e981d5be3a0a1175504b9f6 | refs/heads/master | 1,678,958,930,293 | 1,583,197,205,000 | 1,583,197,205,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 1,266 | lean | variables p q: Prop
#check p -> Β¬ p
#check p -> q -> p β§ q
example (hp: p) (hq: q): p β§ q := and.intro hp hq
example (h: p β§ q): p := and.elim_left h
example (h: p β§ q): q := and.elim_right h
#check assume (h: p β§ q), and.elim_left h
example (h: p β§ q): q β§ p := and.intro (and.right h) (and.left h)
#che... |
793b333ae827450539cbaba9eb6b48df6593bcff | 74addaa0e41490cbaf2abd313a764c96df57b05d | /Mathlib/category_theory/limits/shapes/normal_mono_auto.lean | 54404d8543ef4932c7fd30cb9dcf8ed7601109af | [] | 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 | 7,748 | 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 Mathlib.PrePort
import Mathlib.Lean3Lib.init.default
import Mathlib.category_theory.limits.shapes.regular_mono
import Mathlib.category_theory.lim... |
800a28005acd516875afb2b40070cbb4db0f3994 | 9dc8cecdf3c4634764a18254e94d43da07142918 | /src/topology/locally_finite.lean | 02bbec2d1364b1266f87867d07ec8f23a8cfc0dd | [
"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 | 7,914 | lean | /-
Copyright (c) 2022 Yury Kudryashov. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Yury Kudryashov
-/
import topology.basic
/-!
### Locally finite families of sets
We say that a family of sets in a topological space is *locally finite* if at every point `x : X`,
t... |
a2a499db24f2cba5bf4f0bc2edf9d64b3a72746f | b7f22e51856f4989b970961f794f1c435f9b8f78 | /tests/lean/gen_as.lean | 7a7756a2c08e537f2b2bde745a17bd8149a3f86b | [
"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 | 142 | lean | import data.nat
open nat
example (x y : nat) : x + y + y β₯ 0 :=
begin
generalize x + y + y as n,
state,
intro n, exact zero_le n
end
|
e2ac55c45b507f88294d94af1e30120001588fd4 | 32025d5c2d6e33ad3b6dd8a3c91e1e838066a7f7 | /tests/lean/StxQuot.lean | da5cd3eb3084abdf6d41f80fa222748466d3cff4 | [
"Apache-2.0"
] | permissive | walterhu1015/lean4 | b2c71b688975177402758924eaa513475ed6ce72 | 2214d81e84646a905d0b20b032c89caf89c737ad | refs/heads/master | 1,671,342,096,906 | 1,599,695,985,000 | 1,599,695,985,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 2,249 | lean | import Lean
namespace Lean
open Lean.Elab
def run {Ξ±} [HasToString Ξ±] : Unhygienic Ξ± β String := toString β Unhygienic.run
#eval run `(Nat.one)
#eval run `($Syntax.missing)
namespace Syntax
#eval run `($missing)
#eval run `($(missing))
#eval run `($(id Syntax.missing) + 1)
#eval run $ let id := Syntax.missing; `($id... |
97ec9238d7ccb5bce4909725e01acc25ad0d563a | 367134ba5a65885e863bdc4507601606690974c1 | /src/data/int/modeq.lean | aedd25550bde7b2e808aec0c2c4cd05278420d6a | [
"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 | 6,157 | lean | /-
Copyright (c) 2018 Chris Hughes. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Chris Hughes
-/
import data.nat.modeq
import tactic.ring
namespace int
/-- `a β‘ b [ZMOD n]` when `a % n = b % n`. -/
def modeq (n a b : β€) := a % n = b % n
notation a ` β‘ `:50 b ` [ZM... |
42b1ff41f3d6dd4b75247d8c2d10b53b6c53f95b | ae1e94c332e17c7dc7051ce976d5a9eebe7ab8a5 | /src/Lean/DeclarationRange.lean | 81078f8955d2798d2c02db191b0449220c5f5d40 | [
"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 | 1,244 | 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.MonadEnv
import Lean.AuxRecursor
namespace Lean
structure DeclarationRange where
pos : Position
endPos : Position
deriving Inhabited,... |
1e3ceba17b32efd7155496d6f2809daf072e2b0e | 8cae430f0a71442d02dbb1cbb14073b31048e4b0 | /src/algebraic_topology/dold_kan/gamma_comp_n.lean | 86e9a3e0230c0678e2cff34e1ce2fb46ff0934f1 | [
"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 | 6,703 | lean | /-
Copyright (c) 2022 JoΓ«l Riou. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: JoΓ«l Riou
-/
import algebraic_topology.dold_kan.functor_gamma
import category_theory.idempotents.homological_complex
/-!
> THIS FILE IS SYNCHRONIZED WITH MATHLIB4.
> Any changes to this f... |
319a81d8e44b06b3bf7193a242e9ada1dd430bb0 | d406927ab5617694ec9ea7001f101b7c9e3d9702 | /src/combinatorics/simple_graph/regularity/uniform.lean | cc649b1077f5a54263b4122d05484c0c287b245e | [
"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 | 10,288 | lean | /-
Copyright (c) 2022 YaΓ«l Dillies, Bhavik Mehta. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: YaΓ«l Dillies, Bhavik Mehta
-/
import combinatorics.simple_graph.density
import set_theory.ordinal.basic
/-!
# Graph uniformity and uniform partitions
In this file we defi... |
20809394fbcfd9c959fa552222c9697838d913c0 | 35677d2df3f081738fa6b08138e03ee36bc33cad | /src/data/list/forall2.lean | 56d05479bc8a34e644134312a961ed95fd05fd56 | [
"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 | 10,098 | lean | /-
Copyright (c) 2018 Mario Carneiro. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Mario Carneiro, Johannes HΓΆlzl
-/
import data.list.basic
import logic.relator
import tactic.mk_iff_of_inductive_prop
universes u v w z
open nat function
variables {Ξ± : Type u} {Ξ² : T... |
f1c545a2e277033b7ff05f930f475f1c34101915 | bdb33f8b7ea65f7705fc342a178508e2722eb851 | /analysis/topology/uniform_space.lean | 61ec198daf53f2589f244b31bf4dfc4e5c50ba05 | [
"Apache-2.0"
] | permissive | rwbarton/mathlib | 939ae09bf8d6eb1331fc2f7e067d39567e10e33d | c13c5ea701bb1eec057e0a242d9f480a079105e9 | refs/heads/master | 1,584,015,335,862 | 1,524,142,167,000 | 1,524,142,167,000 | 130,614,171 | 0 | 0 | Apache-2.0 | 1,548,902,667,000 | 1,524,437,371,000 | Lean | UTF-8 | Lean | false | false | 77,788 | 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 uniform spaces.
Uniform spaces are a generalization of metric spaces and topological groups. Many concepts directly
generalize to uniform spa... |
87163831f39077ecf2baf649fa34a72ca50c11a0 | 7282d49021d38dacd06c4ce45a48d09627687fe0 | /tests/lean/simp22.lean | c459e69e1244ac37a0c07c368550e73e71317228 | [
"Apache-2.0"
] | permissive | steveluc/lean | 5a0b4431acefaf77f15b25bbb49294c2449923ad | 92ba4e8b2d040a799eda7deb8d2a7cdd3e69c496 | refs/heads/master | 1,611,332,256,930 | 1,391,013,244,000 | 1,391,013,244,000 | 16,361,079 | 1 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 1,441 | lean | import cast
variable vec : Nat β Type
variable concat {n m : Nat} (v : vec n) (w : vec m) : vec (n + m)
infixl 65 ; : concat
axiom concat_assoc {n1 n2 n3 : Nat} (v1 : vec n1) (v2 : vec n2) (v3 : vec n3) :
(v1 ; v2) ; v3 = cast (congr2 vec (symm (Nat::add_assoc n1 n2 n3)))
... |
52b6bbedaea534a6c08a4db077f810686438638f | 63abd62053d479eae5abf4951554e1064a4c45b4 | /src/category_theory/monoidal/of_has_finite_products.lean | 49ae1d020a69728ab2d227e4a8da0418e71e0c78 | [
"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 | 12,039 | lean | /-
Copyright (c) 2019 Scott Morrison. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Scott Morrison, Simon Hudon
-/
import category_theory.monoidal.braided
import category_theory.limits.shapes.binary_products
import category_theory.limits.shapes.terminal
/-!
# The nat... |
750599d1e23114b926a98c962a735b14730af7d5 | ee8cdbabf07f77e7be63a449b8483ce308d37218 | /lean/src/test/aime-1984-p7.lean | 2a6554b8c6346b5d8d6735d31be134bdb6d60e92 | [
"MIT",
"Apache-2.0"
] | permissive | zeta1999/miniF2F | 6d66c75d1c18152e224d07d5eed57624f731d4b7 | c1ba9629559c5273c92ec226894baa0c1ce27861 | refs/heads/main | 1,681,897,460,642 | 1,620,646,361,000 | 1,620,646,361,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 346 | lean | /-
Copyright (c) 2021 OpenAI. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Kunhao Zheng
-/
import data.real.basic
import data.nat.basic
example (f : β+ β β+) (hβ : β n, 1000 β€ n β f n = n - 3) (hβ : β n, n < 1000 β f n = f ( f ( n + 5 ))): f 84 = 997 :=
begin
sorr... |
56e18cd5ae9b6f6d64957fb2f4ece1f8cbde4820 | 57c233acf9386e610d99ed20ef139c5f97504ba3 | /src/category_theory/isomorphism.lean | f349d337f9ba764d521c9f8cd24516a5a9cf49c8 | [
"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 | 14,506 | lean | /-
Copyright (c) 2017 Scott Morrison. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Tim Baumann, Stephen Morgan, Scott Morrison, Floris van Doorn
-/
import category_theory.functor
/-!
# Isomorphisms
This file defines isomorphisms between objects of a category.
## M... |
15813e7e6b078c07164ad0cade3d44d2735f0e92 | 624f6f2ae8b3b1adc5f8f67a365c51d5126be45a | /src/Init/Data/Random.lean | 6f537bed41797a06fc936df0968cc6db2ed1eac3 | [
"Apache-2.0"
] | permissive | mhuisi/lean4 | 28d35a4febc2e251c7f05492e13f3b05d6f9b7af | dda44bc47f3e5d024508060dac2bcb59fd12e4c0 | refs/heads/master | 1,621,225,489,283 | 1,585,142,689,000 | 1,585,142,689,000 | 250,590,438 | 0 | 2 | Apache-2.0 | 1,602,443,220,000 | 1,585,327,814,000 | C | UTF-8 | Lean | false | false | 3,967 | lean | /-
Copyright (c) 2019 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Leonardo de Moura
-/
prelude
import Init.System.IO
import Init.Data.Int
universes u
/-
Basic random number generator support based on the one
available on the Haskell library
-... |
49682b55a63bbaf687527145e3ce67f9d4d2908a | 30b012bb72d640ec30c8fdd4c45fdfa67beb012c | /data/set/disjointed.lean | 4de19908d9d267f10d448969d12d13493ce9f03c | [
"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 | 3,414 | 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
Disjointed sets
-/
import data.set.lattice data.nat.basic
open set classical lattice
local attribute [instance] prop_decidable
universes u v w x
variables {Ξ± : Type u}... |
ac6abff510295739adfc7a60f70eac65c2260af7 | d1a52c3f208fa42c41df8278c3d280f075eb020c | /stage0/src/Lean/Compiler/IR/CompilerM.lean | 99e9ef50fc4c53663b3ed4be2804fbc45389fde6 | [
"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 | 5,077 | lean | /-
Copyright (c) 2019 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Leonardo de Moura
-/
import Lean.Environment
import Lean.Compiler.IR.Basic
import Lean.Compiler.IR.Format
namespace Lean.IR
inductive LogEntry where
| step (cls : Name) (dec... |
8a3e0c4ab19aa389e10549edc58a516cf7922a58 | e0b0b1648286e442507eb62344760d5cd8d13f2d | /stage0/src/Lean/Syntax.lean | 024ab614f5bc32ca8e5ba172559247965deef5ee | [
"Apache-2.0"
] | permissive | MULXCODE/lean4 | 743ed389e05e26e09c6a11d24607ad5a697db39b | 4675817a9e89824eca37192364cd47a4027c6437 | refs/heads/master | 1,682,231,879,857 | 1,620,423,501,000 | 1,620,423,501,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 15,814 | lean | /-
Copyright (c) 2019 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Author: Sebastian Ullrich, Leonardo de Moura
-/
import Lean.Data.Name
import Lean.Data.Format
namespace Lean
def SourceInfo.updateTrailing (trailing : Substring) : SourceInfo β SourceI... |
96ba679ac278ebf09fa4dac6182efa25dab9e73c | 74addaa0e41490cbaf2abd313a764c96df57b05d | /Mathlib/order/galois_connection.lean | d248f07c181d33aba1c4f40161543c27da07a584 | [] | 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,686 | 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
-/
import Mathlib.PrePort
import Mathlib.Lean3Lib.init.default
import Mathlib.order.complete_lattice
import Mathlib.order.rel_iso
import Mathlib.PostPort
universes u v x... |
3d42fabed860f938a3ec5eb18a0677e443f4b659 | 8cae430f0a71442d02dbb1cbb14073b31048e4b0 | /src/linear_algebra/bilinear_form/tensor_product.lean | 47f45b2f6360ad391f2ae02336d45fd441e00cad | [
"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,177 | lean | /-
Copyright (c) 2023 Eric Wieser. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Eric Wieser
-/
import linear_algebra.bilinear_form
import linear_algebra.tensor_product
/-!
# The bilinear form on a tensor product
> THIS FILE IS SYNCHRONIZED WITH MATHLIB4.
> Any chan... |
18233871c4566f77e9fb3061d512cf3911198225 | 9dc8cecdf3c4634764a18254e94d43da07142918 | /src/algebraic_topology/Moore_complex.lean | d9760eb05bb791e6925ee8473e6f3722f62c4667 | [
"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 | 5,545 | lean | /-
Copyright (c) 2021 Scott Morrison. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Scott Morrison
-/
import algebra.homology.homological_complex
import algebraic_topology.simplicial_object
import category_theory.abelian.basic
/-!
## Moore complex
We construct the n... |
9705c93d3dd8beb6133c8aaaf0487b01a1db46b8 | 74addaa0e41490cbaf2abd313a764c96df57b05d | /Mathlib/topology/category/Top/adjunctions.lean | d819c51090958fafdeb1ccd171e76dc44ff48699 | [] | 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 | 1,521 | lean | /-
Copyright (c) 2017 Scott Morrison. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Patrick Massot, Mario Carneiro
-/
import Mathlib.PrePort
import Mathlib.Lean3Lib.init.default
import Mathlib.topology.category.Top.basic
import Mathlib.category_theory.adjunction.basic... |
ae462b61fb084875d9c27067f98132a0214cc7d9 | d9d511f37a523cd7659d6f573f990e2a0af93c6f | /src/data/polynomial/degree/card_pow_degree.lean | 87eedfab5ab1362332da594620da004f506ef416 | [
"Apache-2.0"
] | permissive | hikari0108/mathlib | b7ea2b7350497ab1a0b87a09d093ecc025a50dfa | a9e7d333b0cfd45f13a20f7b96b7d52e19fa2901 | refs/heads/master | 1,690,483,608,260 | 1,631,541,580,000 | 1,631,541,580,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 3,696 | lean | /-
Copyright (c) 2021 Anne Baanen. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Anne Baanen
-/
import algebra.euclidean_absolute_value
import data.polynomial.field_division
/-!
# Absolute value on polynomials over a finite field.
Let `Fq` be a finite field of cardi... |
ea26c79add7ec50900bb992fee979d5b1c0567b4 | fa02ed5a3c9c0adee3c26887a16855e7841c668b | /src/tactic/tidy.lean | d153a3e21fa5a646330c8f6d8508e6939ef1b8b8 | [
"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 | 4,344 | lean | /-
Copyright (c) 2017 Scott Morrison. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Scott Morrison
-/
import tactic.auto_cases
import tactic.chain
import tactic.norm_cast
namespace tactic
namespace tidy
/-- Tag interactive tactics (locally) with `[tidy]` to add them... |
99f4a78a1da5e3dad489515ad822c40c4b7bd1e2 | 92e157ec9825b5e4597a6d715a8928703bc8e3b2 | /src/mywork/lecture_13.lean | 32bb9334e0fba6989a1da6475e01fd4abea52c0c | [] | no_license | exb3dg/cs2120f21 | 9e566bc508762573c023d3e70f83cb839c199ec8 | 319b8bf0d63bf96437bf17970ce0198d0b3525cd | refs/heads/main | 1,692,970,909,568 | 1,634,584,540,000 | 1,634,584,540,000 | 399,947,025 | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 5,268 | lean | /-
UPDATE: Test distributed after class on
Monday. Monday will be a review day. The
test is due back Wednesday before class.
In class Wednesday we will have at least
a short quiz to sanity check what you will
have submitted for the test. We reserve the
right to do follow-on in-person testing if
the results indicate a ... |
c1a9fdf4c891d160c11891c94cd7b1c0358afb27 | d1a52c3f208fa42c41df8278c3d280f075eb020c | /stage0/src/Lean/Data/NameTrie.lean | 113ee7e1363836e6882790a7fecf04dc5cb72fa6 | [
"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,124 | lean | /-
Copyright (c) 2020 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Leonardo de Moura
-/
import Lean.Data.PrefixTree
namespace Lean
inductive NamePart
| str (s : String)
| num (n : Nat)
instance : ToString NamePart where
toString
| ... |
5e4919fe9227d00a440f2871bc4afca001f7fa44 | 5ae26df177f810c5006841e9c73dc56e01b978d7 | /src/category/monad/basic.lean | e9eda9155962c978715b16c0a6f595ed169f4f35 | [
"Apache-2.0"
] | permissive | ChrisHughes24/mathlib | 98322577c460bc6b1fe5c21f42ce33ad1c3e5558 | a2a867e827c2a6702beb9efc2b9282bd801d5f9a | refs/heads/master | 1,583,848,251,477 | 1,565,164,247,000 | 1,565,164,247,000 | 129,409,993 | 0 | 1 | Apache-2.0 | 1,565,164,817,000 | 1,523,628,059,000 | Lean | UTF-8 | Lean | false | false | 361 | lean |
import tactic.basic
attribute [extensionality] reader_t.ext state_t.ext except_t.ext option_t.ext
attribute [functor_norm] bind_assoc pure_bind bind_pure
universes u v
lemma map_eq_bind_pure_comp (m : Type u β Type v) [monad m] [is_lawful_monad m] {Ξ± Ξ² : Type u} (f : Ξ± β Ξ²) (x : m Ξ±) :
f <$> x = x >>= pure β f :... |
dfa0c875fefc99c3d135b58458fd76c384f84dd3 | 4bcaca5dc83d49803f72b7b5920b75b6e7d9de2d | /src/Lean/Meta/AppBuilder.lean | 46157adecbcaa9a23ebd9b5e1a8476ad02350eba | [
"Apache-2.0"
] | permissive | subfish-zhou/leanprover-zh_CN.github.io | 30b9fba9bd790720bd95764e61ae796697d2f603 | 8b2985d4a3d458ceda9361ac454c28168d920d3f | refs/heads/master | 1,689,709,967,820 | 1,632,503,056,000 | 1,632,503,056,000 | 409,962,097 | 1 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 20,822 | lean | /-
Copyright (c) 2019 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Leonardo de Moura
-/
import Lean.Structure
import Lean.Util.Recognizers
import Lean.Meta.SynthInstance
import Lean.Meta.Check
namespace Lean.Meta
/-- Return `id e` -/
def mkId... |
f256a20dcc4635b41eaea90909831180098d69b6 | d1a52c3f208fa42c41df8278c3d280f075eb020c | /src/Lean/Widget.lean | 4345d487dd7a4cb784a7ad3cb091215a6efe952d | [
"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 | 306 | lean | /-
Copyright (c) 2021 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Wojciech Nawrocki
-/
import Lean.Widget.InteractiveCode
import Lean.Widget.InteractiveDiagnostic
import Lean.Widget.InteractiveGoal
import Lean.Widget.TaggedText
|
01247b3005a5064d8d2e8621754b964c875b918b | 74addaa0e41490cbaf2abd313a764c96df57b05d | /Mathlib/tactic/lint/simp_auto.lean | 8a763197b21614326bb9f95844e37e4abb6e0a37 | [] | 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 | 1,825 | lean | /-
Copyright (c) 2020 Gabriel Ebner. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Gabriel Ebner
-/
import Mathlib.PrePort
import Mathlib.Lean3Lib.init.default
import Mathlib.tactic.lint.basic
import Mathlib.PostPort
namespace Mathlib
/-!
# Linter for simplification... |
5e2c4a0f223efe16693c109deb7da1d3f8c6b957 | c31182a012eec69da0a1f6c05f42b0f0717d212d | /src/polyhedral_lattice/finsupp.lean | 7459395e3ee2c33a316b1fbc6dc4e8cf5bab7ea6 | [] | no_license | Ja1941/lean-liquid | fbec3ffc7fc67df1b5ca95b7ee225685ab9ffbdc | 8e80ed0cbdf5145d6814e833a674eaf05a1495c1 | refs/heads/master | 1,689,437,983,362 | 1,628,362,719,000 | 1,628,362,719,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 3,500 | lean | import linear_algebra.finsupp_vector_space
import for_mathlib.finite_free
import polyhedral_lattice.basic
/-!
# Hom(ΞΉ, Ξ) for Ξ a polyhedral lattice
If Ξ is a polyhedral lattice and ΞΉ is a finite type, then ΞΉ β Ξ is a polyhedral lattice.
## Implementation issue
We use `ΞΉ ββ Ξ` rather than `ΞΉ β Ξ` to make life ea... |
0ec17f833f51d8868823ad1c784bb4018d7d83ce | 6de8ea38e7f58ace8fbf74ba3ad0bf3b3d1d7ab5 | /lab6/code/lambda.lean | 327973c57364370a516140da34d2b8dbbfd80eca | [] | no_license | KinanBab/CS591K1-Labs | 72f4e2c7d230d4e4f548a343a47bf815272b1f58 | d4569bf99d20c22cd56721024688cda247d1447f | refs/heads/master | 1,587,016,758,873 | 1,558,148,366,000 | 1,558,148,366,000 | 165,329,114 | 5 | 2 | null | 1,550,689,848,000 | 1,547,252,664,000 | TeX | UTF-8 | Lean | false | false | 2,214 | lean | -- Syntax
inductive term
| var : string β term
| abs : string β term β term
| app : term β term β term
-- Custom notation
instance : has_coe string term := β¨term.varβ©
notation `Ξ»:`x `.` t := term.abs x t
notation `[`t1`](`t2`)` := term.app t1 t2
-- Substitution: the core of beta reduction
@[simp] def substitute :... |
5e4a14734d2b7e7a2eec92e25735e9601537f69b | 74addaa0e41490cbaf2abd313a764c96df57b05d | /Mathlib/algebraic_geometry/sheafed_space.lean | fe2af59504d702b80e28da27a6db50c5044f445e | [] | 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 | 8,986 | 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 Mathlib.PrePort
import Mathlib.Lean3Lib.init.default
import Mathlib.algebraic_geometry.presheafed_space
import Mathlib.topology.sheaves.sheaf
import Mathlib.Po... |
4010b3af4c510b2ebb6ebc1f15f85bcdb06b8547 | 7cef822f3b952965621309e88eadf618da0c8ae9 | /src/tactic/norm_num.lean | 9226c12e3d5051d9b6538e74edcbbe2bcd8ceb81 | [
"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 | 18,235 | lean | /-
Copyright (c) 2017 Simon Hudon All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Simon Hudon, Mario Carneiro
Evaluating arithmetic expressions including *, +, -, ^, β€
-/
import algebra.group_power data.rat.order data.rat.cast data.rat.meta_defs data.nat.prime
import ... |
272da27f999ac6a736c1f2afe7b11aa8a5e196b8 | 69d4931b605e11ca61881fc4f66db50a0a875e39 | /src/measure_theory/bochner_integration.lean | ebab11ab93865ea55fb8461c01ed8765cdb9138e | [
"Apache-2.0"
] | permissive | abentkamp/mathlib | d9a75d291ec09f4637b0f30cc3880ffb07549ee5 | 5360e476391508e092b5a1e5210bd0ed22dc0755 | refs/heads/master | 1,682,382,954,948 | 1,622,106,077,000 | 1,622,106,077,000 | 149,285,665 | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 73,117 | lean | /-
Copyright (c) 2019 Zhouhang Zhou. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Zhouhang Zhou, Yury Kudryashov, SΓ©bastien GouΓ«zel
-/
import measure_theory.simple_func_dense
import analysis.normed_space.bounded_linear_maps
import measure_theory.l1_space
import measu... |
73dd385b7cfd98dbb0a64ac984a6dd45efc200f0 | 4b846d8dabdc64e7ea03552bad8f7fa74763fc67 | /tests/lean/run/pack_unpack1.lean | c5eb249d2dc8f4b7065a124f92e20a11191c9f10 | [
"Apache-2.0"
] | permissive | pacchiano/lean | 9324b33f3ac3b5c5647285160f9f6ea8d0d767dc | fdadada3a970377a6df8afcd629a6f2eab6e84e8 | refs/heads/master | 1,611,357,380,399 | 1,489,870,101,000 | 1,489,870,101,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 2,287 | lean | inductive {u} tree_core (A : Type u) : bool β (Type u)
| leaf' : A β tree_core ff
| node' : tree_core tt β tree_core ff
| nil' {} : tree_core tt
| cons' : tree_core ff β tree_core tt β tree_core tt
attribute [reducible]
definition tree (A : Sort*) := tree_core A ff
attribute [reducible]
definition tree_list... |
ee627f51438300305678be34bc2224b48bd9cb94 | 2a2864136cf8f2871e86f5fd14e624e3daa8fd24 | /Monads.lean | 7e2567d84714b765e52707bcfb0eef4375202f5c | [
"MIT"
] | permissive | hargoniX/lean-monads | d054ac71a351b7c86f318a477977cc166117b8ec | 2e87ca7ddf394641ea1b16bcbd8c384026d68e2f | refs/heads/main | 1,693,530,528,286 | 1,633,100,386,000 | 1,633,100,386,000 | 412,509,769 | 1 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 107 | lean | import Monads.List
import Monads.Maybe
import Monads.Functor
import Monads.Applicative
import Monads.Monad
|
bbc5be5ec17eef03f4d5e89766946fc5a59b2a36 | 8cae430f0a71442d02dbb1cbb14073b31048e4b0 | /src/analysis/von_neumann_algebra/basic.lean | dc3ec7acc525004dac339e25726244de492ec30d | [
"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 | 5,417 | lean | /-
Copyright (c) 2022 Scott Morrison. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Scott Morrison
-/
import analysis.normed_space.dual
import analysis.normed_space.star.basic
import analysis.complex.basic
import analysis.inner_product_space.adjoint
import algebra.sta... |
f490a8fd481a246d75fb11df37d7ef0a78082cb7 | dd0f5513e11c52db157d2fcc8456d9401a6cd9da | /03_Propositions_and_Proofs.org.35.lean | cdde25dbf54a1cf599b477742e9504364e44e35d | [] | 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 | 166 | lean | /- page 43 -/
import standard
open classical
variable p : Prop
-- BEGIN
example (H : ¬¬p) : p :=
by_contradiction
(assume H1 : Β¬p,
show false, from H H1)
-- END
|
727d9e3c0f36bfa89049423ad0855fed8ef15841 | 4efff1f47634ff19e2f786deadd394270a59ecd2 | /src/data/bitvec/basic.lean | 0827fb5caaa45e01bd8c6a1900b838ba263b69a1 | [
"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 | 3,677 | 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 data.bitvec
import data.fin
import tactic.norm_num
import tactic.monotonicity
namespace bitvec
instance (n : β) : preorder (bitvec n) :=
preorder.lift bitvec.to_... |
a0e91d2e0d9b260c96a5d7c75d87e89135d094b3 | 4727251e0cd73359b15b664c3170e5d754078599 | /src/combinatorics/set_family/lym.lean | 524adeccc4f93c3b6d37231bc7583fc15d7c186f | [
"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 | 9,319 | lean | /-
Copyright (c) 2022 Bhavik Mehta, YaΓ«l Dillies. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Bhavik Mehta, Alena Gusakov, YaΓ«l Dillies
-/
import algebra.big_operators.ring
import combinatorics.double_counting
import combinatorics.set_family.shadow
import data.rat.o... |
13516935543983922986ec03f4ae7caac7dbf5ad | 4727251e0cd73359b15b664c3170e5d754078599 | /src/topology/sheaves/sheaf.lean | a2ca6ff6b43c3ae7bff004376881b989b601cd86 | [
"Apache-2.0"
] | permissive | Vierkantor/mathlib | 0ea59ac32a3a43c93c44d70f441c4ee810ccceca | 83bc3b9ce9b13910b57bda6b56222495ebd31c2f | refs/heads/master | 1,658,323,012,449 | 1,652,256,003,000 | 1,652,256,003,000 | 209,296,341 | 0 | 1 | Apache-2.0 | 1,568,807,655,000 | 1,568,807,655,000 | null | UTF-8 | Lean | false | false | 3,931 | lean | /-
Copyright (c) 2020 Scott Morrison. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Scott Morrison
-/
import topology.sheaves.sheaf_condition.equalizer_products
import category_theory.full_subcategory
import category_theory.limits.punit
/-!
# Sheaves
We define sheav... |
0f176bd7f3c13d9aacc52a21ce88a631dc80f21e | 0dbd5f7001f62ee8d54ed48bada66bfeaf55e550 | /src/ent/order.lean | 4501c82dcebca6ccaf3cf3f45fadd834e0c61950 | [] | no_license | rwbarton/lean-elementary-number-theory | 667203b08501792eef48217759539f6c1e2da25a | fabef0737fd2486e3f24f9e04652db4c182d5425 | refs/heads/master | 1,670,605,651,029 | 1,599,565,470,000 | 1,599,565,470,000 | 293,792,043 | 2 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 2,971 | lean | import data.nat.prime
import data.pnat
import data.nat.exactly_divides
open nat
namespace order
section raw_order
variables (p : β) (hp : p > 1)
protected def order_core : Ξ (n : β), n > 0 β {r // p^r β£β£ n}
| 0 := Ξ» n_pos, absurd n_pos dec_trivial
| n@(k+1) := Ξ» n_pos,
have n / p < n, from div_lt_self n_p... |
5b37e0dc19b7115e4a7a2d9a1150c064804f1905 | 97f752b44fd85ec3f635078a2dd125ddae7a82b6 | /hott/types/nat/hott.hlean | d23f5fda720fe7acb4189021840d589537f78962 | [
"Apache-2.0"
] | permissive | tectronics/lean | ab977ba6be0fcd46047ddbb3c8e16e7c26710701 | f38af35e0616f89c6e9d7e3eb1d48e47ee666efe | refs/heads/master | 1,532,358,526,384 | 1,456,276,623,000 | 1,456,276,623,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 4,734 | hlean | /-
Copyright (c) 2015 Floris van Doorn. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Author: Floris van Doorn
Theorems about the natural numbers specific to HoTT
-/
import .order types.pointed
open is_trunc unit empty eq equiv algebra pointed
namespace nat
definition is... |
0284b0c2ea1e31e7ad3017e45a01388c9cdec2c2 | a959f48a0621edea632487cf2130bbf70d301e05 | /src/indexed_product.lean | 0db78979d0235c8e7682145c8f99b5ea67b2dfe8 | [] | no_license | cipher1024/lean-differential-topology | cf441b36af9fdb022f10afff6a2fdc5aa4afa379 | 1938b0a5d9e89faff89dac4bc51598698cae6dbb | refs/heads/master | 1,619,477,568,536 | 1,527,790,354,000 | 1,527,790,354,000 | 124,159,851 | 0 | 0 | null | 1,520,385,485,000 | 1,520,385,485,000 | null | UTF-8 | Lean | false | false | 2,500 | lean | import algebra.module
import tactic.refine
universes u v
namespace tactic
open tactic.interactive
meta def derive_field : tactic unit :=
do b β target >>= is_prop,
if b then do
field β get_current_field,
intros >> funext,
applyc field
else do
field β get_current_field,
xs β intros <* ... |
5f81d7ac1cbd7d1edb5fcd3214c71464038d36a2 | 28be2ab6091504b6ba250b367205fb94d50ab284 | /src/game/world10/level11.lean | 858b8e36e5d86b73ca96c4645e1b8fdccab1198a | [
"Apache-2.0"
] | permissive | postmasters/natural_number_game | 87304ac22e5e1c5ac2382d6e523d6914dd67a92d | 38a7adcdfdb18c49c87b37831736c8f15300d821 | refs/heads/master | 1,649,856,819,031 | 1,586,444,676,000 | 1,586,444,676,000 | 255,006,061 | 0 | 0 | Apache-2.0 | 1,586,664,599,000 | 1,586,664,598,000 | null | UTF-8 | Lean | false | false | 571 | lean | import game.world10.level10 -- hide
namespace mynat -- hide
/-
# Inequality world.
## Level 11: `add_le_add_right`
If you're faced with a goal of the form `forall t, ...`, then the next
line is "so let $t$ be arbitrary". The way to do this in Lean is `intro t`.
-/
/- Lemma
For all naturals $a$ and $b$, $a\le b$ i... |
460a0509f8f3b207109ad45ee29c2689f9f5738b | fecda8e6b848337561d6467a1e30cf23176d6ad0 | /src/data/nat/log.lean | 2b86ee553813d003f15f4628b0d21475caa44b45 | [
"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 | 2,170 | lean | /-
Copyright (c) 2020 Simon Hudon. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Simon Hudon
-/
import data.nat.basic
/-!
# Natural number logarithm
This file defines `log b n`, the logarithm of `n` with base `b`, to be the largest `k` such that
`b ^ k β€ n`.
-/
name... |
df42c3c278a679a16846730fbbb81a90f5341fc9 | 947fa6c38e48771ae886239b4edce6db6e18d0fb | /src/order/locally_finite.lean | a7d3bcd28f630a03a77fd858191e38d81170c01b | [
"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 | 39,635 | 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.finset.preimage
/-!
# Locally finite orders
This file defines locally finite orders.
A locally finite order is an order for which all bounded intervals are... |
e2071b90bb4c1c8c5b11ed4df8112cb630e12308 | cf39355caa609c0f33405126beee2739aa3cb77e | /tests/lean/unify3.lean | 6c92d3bc8a1ffed018c387372c6056602fbdd616 | [
"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 | 673 | lean | open tactic
set_option pp.all true
example (a b : nat) : a = b β a = a :=
by do
intro `H,
eqc : expr β mk_const `eq,
A β mk_mvar,
mβ β mk_mvar,
mβ β mk_mvar,
e β return (expr.app_of_list eqc [A, mβ, mβ]),
trace "pattern: ",
trace e,
H β get_local `H,
Ht β infer_type H,
trace "term to un... |
c76ad4d7de1c58a1da481ed19d7396719e45e3f0 | cf39355caa609c0f33405126beee2739aa3cb77e | /tests/lean/run/calc_imp.lean | 3b90350d4808eda0947e98e718f13b34429b2f65 | [
"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 | 137 | lean | example (A B C D : Prop) (h1 : A β B) (h2 : B β C) (h3 : C β D) : A β D :=
calc A β B : h1
... β C : h2
... β D : h3
|
2c2d287159f1958cff0014aa70cfb94563a13788 | ee8cdbabf07f77e7be63a449b8483ce308d37218 | /lean/src/valid/mathd-algebra-123.lean | a0fcf5bdd9c5c772f67babd99261d83a0a4ad9ee | [
"MIT",
"Apache-2.0"
] | permissive | zeta1999/miniF2F | 6d66c75d1c18152e224d07d5eed57624f731d4b7 | c1ba9629559c5273c92ec226894baa0c1ce27861 | refs/heads/main | 1,681,897,460,642 | 1,620,646,361,000 | 1,620,646,361,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 598 | lean | /-
Copyright (c) 2021 OpenAI. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Kunhao Zheng
-/
import tactic.gptf
import data.real.basic
import data.pnat.basic
example (a b : β+) (hβ : a + b = 20) (hβ : a = 3 * b) : a - b = 10 :=
begin
rw hβ at hβ,
rw hβ,
have hβ ... |
dd6adbc003a38384b1066968b5fc92301a150866 | 2eab05920d6eeb06665e1a6df77b3157354316ad | /src/order/conditionally_complete_lattice.lean | ddcbcdf34d69defd00a54d079269feec03b10856 | [
"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 | 49,759 | lean | /-
Copyright (c) 2018 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 data.set.intervals.ord_connected
/-!
# Theory of conditionally complete lattices.
A conditionally complete lattice is a lattice in which every non-empt... |
36565f9fce712bbf6b671a1a0b42cb420e6ae5d3 | 1a61aba1b67cddccce19532a9596efe44be4285f | /library/algebra/ring.lean | c62089bd8c2322d71e4073710b761eb769537748 | [
"Apache-2.0"
] | permissive | eigengrau/lean | 07986a0f2548688c13ba36231f6cdbee82abf4c6 | f8a773be1112015e2d232661ce616d23f12874d0 | refs/heads/master | 1,610,939,198,566 | 1,441,352,386,000 | 1,441,352,494,000 | 41,903,576 | 0 | 0 | null | 1,441,352,210,000 | 1,441,352,210,000 | null | UTF-8 | Lean | false | false | 14,110 | lean | /-
Copyright (c) 2014 Jeremy Avigad. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Jeremy Avigad, Leonardo de Moura
Structures with multiplicative and additive components, including semirings, rings, and fields.
The development is modeled after Isabelle's library.
-/... |
3412803c3cd16713f97632d1f7004d0824f2c055 | aa3f8992ef7806974bc1ffd468baa0c79f4d6643 | /library/tools/helper_tactics.lean | cba7c953dcb0fb59b1e97b5f3eba883b5a38101c | [
"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 | 404 | 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, Jeremy Avigad
-- tools.helper_tactics
-- ====================
-- Useful tactics.
import tools.tactic logic.eq
open tactic
namespace helper_tactics
... |
87be54f02b7a7d89afae989a6bbe72d863e49c5e | d406927ab5617694ec9ea7001f101b7c9e3d9702 | /src/group_theory/group_action/units.lean | 108b93c18e669766184274e8efc48ac83192acb7 | [
"Apache-2.0"
] | permissive | alreadydone/mathlib | dc0be621c6c8208c581f5170a8216c5ba6721927 | c982179ec21091d3e102d8a5d9f5fe06c8fafb73 | refs/heads/master | 1,685,523,275,196 | 1,670,184,141,000 | 1,670,184,141,000 | 287,574,545 | 0 | 0 | Apache-2.0 | 1,670,290,714,000 | 1,597,421,623,000 | Lean | UTF-8 | Lean | false | false | 5,775 | lean | /-
Copyright (c) 2021 Eric Wieser. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Eric Wieser
-/
import group_theory.group_action.defs
/-! # Group actions on and by `MΛ£`
This file provides the action of a unit on a type `Ξ±`, `has_smul MΛ£ Ξ±`, in the presence of
`has_s... |
8d443587487b5fa4eb166ec53919a795c890e2a7 | bb31430994044506fa42fd667e2d556327e18dfe | /src/ring_theory/subring/basic.lean | 54ea6c2f32073b88644872adb0acef3a8dbeb261 | [
"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 | 47,477 | lean | /-
Copyright (c) 2020 Ashvni Narayanan. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Ashvni Narayanan
-/
import group_theory.subgroup.basic
import ring_theory.subsemiring.basic
/-!
# Subrings
Let `R` be a ring. This file defines the "bundled" subring type `subring... |
617bf64018cfd10d5011f05ae5f507a2a82a49ef | 75db7e3219bba2fbf41bf5b905f34fcb3c6ca3f2 | /library/algebra/group_power.lean | 167bdb6099718c44c55d31f416a049a6a4fc57b9 | [
"Apache-2.0"
] | permissive | jroesch/lean | 30ef0860fa905d35b9ad6f76de1a4f65c9af6871 | 3de4ec1a6ce9a960feb2a48eeea8b53246fa34f2 | refs/heads/master | 1,586,090,835,348 | 1,455,142,203,000 | 1,455,142,277,000 | 51,536,958 | 1 | 0 | null | 1,455,215,811,000 | 1,455,215,811,000 | null | UTF-8 | Lean | false | false | 8,380 | lean | /-
Copyright (c) 2015 Jeremy Avigad. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Author: Jeremy Avigad
The power operation on monoids and groups. We separate this from group, because it depends on
nat, which in turn depends on other parts of algebra.
We have "pow a n" for ... |
3b791bf5760db07e2da58a720391ede4511c417c | 36c7a18fd72e5b57229bd8ba36493daf536a19ce | /library/algebra/order.lean | d5bd3b91eecff71d064468683c983e45a1b673b7 | [
"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 | 16,402 | lean | /-
Copyright (c) 2014 Jeremy Avigad. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Author: Jeremy Avigad
Weak orders "β€", strict orders "<", and structures that include both.
-/
import logic.eq logic.connectives algebra.binary algebra.priority
open eq eq.ops
namespace algebr... |
0dbbcca9fd890d934909163f15c7487cf51632b0 | d450724ba99f5b50b57d244eb41fef9f6789db81 | /src/mywork/lectures/lecture_7.lean | b17d986f168fafc1e7b395bdff93adf4b22f7ae5 | [] | no_license | jakekauff/CS2120F21 | 4f009adeb4ce4a148442b562196d66cc6c04530c | e69529ec6f5d47a554291c4241a3d8ec4fe8f5ad | refs/heads/main | 1,693,841,880,030 | 1,637,604,848,000 | 1,637,604,848,000 | 399,946,698 | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 7,825 | lean | namespace implies
/-
When working on logic in Lean, we can
represent assumptions as axioms. For
example, assume that an indentifier is
bound to a value of a given type.
-/
axioms (P Q : Prop)
/-
In this example, we use axiom to "assume"
that P and Q are names (identifiers) bound
to two arbitrary propositions. ... |
e46c17e975509cd9a3543e88d697af3c804134b6 | 53618200bef52920c1e974173f78cd378d268f3e | /hott/init/pointed.hlean | 256b5b7673456e6363bf47c773dc555707d05f09 | [
"Apache-2.0"
] | permissive | sayantangkhan/lean2 | cc41e61102e0fcc8b65e8501186dcca40b19b22e | 0fc0378969678eec25ea425a426bb48a184a6db0 | refs/heads/master | 1,590,323,112,724 | 1,489,425,932,000 | 1,489,425,932,000 | 84,854,525 | 0 | 0 | null | 1,489,425,509,000 | 1,489,425,509,000 | null | UTF-8 | Lean | false | false | 4,066 | hlean | /-
Copyright (c) 2016 Floris van Doorn. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Floris van Doorn
The definition of pointed types. This file is here to avoid circularities in the import graph
-/
prelude
import init.trunc
open eq equiv is_equiv is_trunc
struct... |
693d8770790282f90644e487e0d831efb57f34a1 | 74addaa0e41490cbaf2abd313a764c96df57b05d | /Mathlib/analysis/special_functions/pow.lean | 49f9037f671ffa1810ae8179d2886f3ff65e4e0f | [] | 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 | 37,284 | lean | /-
Copyright (c) 2018 Chris Hughes. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Chris Hughes, Abhimanyu Pallavi Sudhir, Jean Lo, Calle SΓΆnne, SΓ©bastien GouΓ«zel,
RΓ©my Degenne
-/
import Mathlib.PrePort
import Mathlib.Lean3Lib.init.default
import Mathlib.analysis.spe... |
aa4f84aa5118398ed9e281dc8067a84d821f1709 | 367134ba5a65885e863bdc4507601606690974c1 | /src/analysis/convex/basic.lean | c2ea543643aede761e232e4e69b2876121bf600b | [
"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 | 58,308 | lean | /-
Copyright (c) 2019 Alexander Bentkamp. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Alexander Bentkamp, Yury Kudriashov
-/
import data.set.intervals.ord_connected
import data.set.intervals.image_preimage
import data.complex.module
import linear_algebra.affine_spac... |
3930231ef5f40abe216d564f49232b2457bae8d0 | d406927ab5617694ec9ea7001f101b7c9e3d9702 | /src/topology/unit_interval.lean | 098dfaf0505640b8455ba2c66be74885763c8de4 | [
"Apache-2.0"
] | permissive | alreadydone/mathlib | dc0be621c6c8208c581f5170a8216c5ba6721927 | c982179ec21091d3e102d8a5d9f5fe06c8fafb73 | refs/heads/master | 1,685,523,275,196 | 1,670,184,141,000 | 1,670,184,141,000 | 287,574,545 | 0 | 0 | Apache-2.0 | 1,670,290,714,000 | 1,597,421,623,000 | Lean | UTF-8 | Lean | false | false | 5,970 | lean | /-
Copyright (c) 2020 Patrick Massot. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Patrick Massot, Scott Morrison
-/
import topology.instances.real
import topology.algebra.field
import data.set.intervals.proj_Icc
import data.set.intervals.instances
/-!
# The unit in... |
6d84bb5a6fa38a41737ba31cafad516f01bac769 | 32025d5c2d6e33ad3b6dd8a3c91e1e838066a7f7 | /stage0/src/Lean/Elab/Structure.lean | 4e1fee149c79f3f0134a35b9fad381f4ec30c8d9 | [
"Apache-2.0"
] | permissive | walterhu1015/lean4 | b2c71b688975177402758924eaa513475ed6ce72 | 2214d81e84646a905d0b20b032c89caf89c737ad | refs/heads/master | 1,671,342,096,906 | 1,599,695,985,000 | 1,599,695,985,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 24,810 | 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.Closure
import Lean.Elab.Command
import Lean.Elab.DeclModifiers
import Lean.Elab.DeclUtil
import Lean.Elab.Inductive
namespace Lean
namesp... |
6f85693e1fd267828bc9148fa2afcfcde56269e9 | 432d948a4d3d242fdfb44b81c9e1b1baacd58617 | /src/ring_theory/jacobson.lean | 140e627a5bfd23fcbfaa003c73da90001a306ed0 | [
"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 | 33,183 | lean | /-
Copyright (c) 2020 Devon Tuma. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Devon Tuma
-/
import data.mv_polynomial
import ring_theory.ideal.over
import ring_theory.jacobson_ideal
import ring_theory.localization
/-!
# Jacobson Rings
The following conditions are e... |
1540f2295111f3413226eae83cc472998b9c2425 | 8cae430f0a71442d02dbb1cbb14073b31048e4b0 | /src/category_theory/adjunction/reflective.lean | 732ccd7a39970adf86727a8f462fa40d9706cb43 | [
"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 | 8,048 | 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.fully_faithful
import category_theory.functor.reflects_isomorphisms
import category_theory.epi_mono
/-!
# Reflective functors
> THIS F... |
2c542cf7798f616f86dda782088ae27251bade02 | 302c785c90d40ad3d6be43d33bc6a558354cc2cf | /src/topology/metric_space/lipschitz.lean | b677ef612c74186f0847b970868ed2e257be2881 | [
"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 | 14,217 | lean | /-
Copyright (c) 2018 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 logic.function.iterate
import topology.metric_space.basic
import category_theory.endomorphism
import... |
555e758d14c0b9f3c3d9ac3fdd3e2e8ff0f674d3 | 556aeb81a103e9e0ac4e1fe0ce1bc6e6161c3c5e | /src/starkware/cairo/common/cairo_secp/verification/verification/signature_recover_public_key_assert_nn_le_soundness.lean | c98725b6c0cf2161cc86b7dc8805073271a1ba8e | [] | permissive | starkware-libs/formal-proofs | d6b731604461bf99e6ba820e68acca62a21709e8 | f5fa4ba6a471357fd171175183203d0b437f6527 | refs/heads/master | 1,691,085,444,753 | 1,690,507,386,000 | 1,690,507,386,000 | 410,476,629 | 32 | 9 | Apache-2.0 | 1,690,506,773,000 | 1,632,639,790,000 | Lean | UTF-8 | Lean | false | false | 6,602 | lean | /-
File: signature_recover_public_key_assert_nn_le_soundness.lean
Autogenerated file.
-/
import starkware.cairo.lean.semantics.soundness.hoare
import .signature_recover_public_key_code
import ..signature_recover_public_key_spec
import .signature_recover_public_key_assert_le_soundness
open tactic
open starkware.cairo.... |
476670b2ba9e80f41d974539353f6879dd5cc643 | f4bff2062c030df03d65e8b69c88f79b63a359d8 | /src/game/order/level02.lean | 0ccfbadffca1f34d0ca576aa2030511d199fc866 | [
"Apache-2.0"
] | permissive | adastra7470/real-number-game | 776606961f52db0eb824555ed2f8e16f92216ea3 | f9dcb7d9255a79b57e62038228a23346c2dc301b | refs/heads/master | 1,669,221,575,893 | 1,594,669,800,000 | 1,594,669,800,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 3,198 | lean | import data.real.basic
import game.order.level01
namespace xena -- hide
/-
# Chapter 2 : Order
## Level 2
This level invites you to work out a property of the absolute value.
In Lean the absolute value of $x$ is denoted by `abs x`.
-/
/- Hint : The definition of the absolute value in mathlib:
definition abs {Ξ± : ... |
38032a107f99534224a6bc042a13baabefb8dae1 | e00ea76a720126cf9f6d732ad6216b5b824d20a7 | /src/data/fintype.lean | cf918c46a79d5e6d368667f162eab251fc5d35e6 | [
"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 | 38,515 | lean | /-
Copyright (c) 2017 Mario Carneiro. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Author: Mario Carneiro
Finite types.
-/
import data.finset data.array.lemmas logic.unique
import tactic.wlog
universes u v
variables {Ξ± : Type*} {Ξ² : Type*} {Ξ³ : Type*}
/-- `fintype Ξ±` means... |
49c93c90ccdd7a2a1d2e5161e569e7e9863440a1 | 8cae430f0a71442d02dbb1cbb14073b31048e4b0 | /src/ring_theory/simple_module.lean | 1fee19fed5a386d24b169241598906fc144d9d24 | [
"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 | 7,396 | lean | /-
Copyright (c) 2020 Aaron Anderson. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Aaron Anderson
-/
import linear_algebra.isomorphisms
import order.jordan_holder
/-!
# Simple Modules
> THIS FILE IS SYNCHRONIZED WITH MATHLIB4.
> Any changes to this file require a c... |
2d49370adccc1a81d280342b1140a66f34ce035c | 8b9f17008684d796c8022dab552e42f0cb6fb347 | /hott/algebra/group.hlean | d5cddb2ee567fc4bdca9e721f33dc515f7502f9d | [
"Apache-2.0"
] | permissive | chubbymaggie/lean | 0d06ae25f9dd396306fb02190e89422ea94afd7b | d2c7b5c31928c98f545b16420d37842c43b4ae9a | refs/heads/master | 1,611,313,622,901 | 1,430,266,839,000 | 1,430,267,083,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 18,054 | hlean | /-
Copyright (c) 2014 Jeremy Avigad. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Module: algebra.group
Authors: Jeremy Avigad, Leonardo de Moura
Various multiplicative and additive structures. Partially modeled on Isabelle's library.
-/
import algebra.binary
open eq is_t... |
a39d94af3ee3b64078ea296ad6dc0bef031a115f | 8b9f17008684d796c8022dab552e42f0cb6fb347 | /tests/lean/run/dfun_tst.lean | 13d53abd081e4571af5b88ac00e9ac3e0bf519b1 | [
"Apache-2.0"
] | permissive | chubbymaggie/lean | 0d06ae25f9dd396306fb02190e89422ea94afd7b | d2c7b5c31928c98f545b16420d37842c43b4ae9a | refs/heads/master | 1,611,313,622,901 | 1,430,266,839,000 | 1,430,267,083,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 215 | lean | import logic data.prod data.vector
open prod nat inhabited vector
theorem tst1 : inhabited (vector nat 2)
theorem tst2 : inhabited (Prop Γ (Ξ n : nat, vector nat n))
(*
print(get_env():find("tst2"):value())
*)
|
21cb2d2652fa4aaa5ba428dd022450c5855aef0d | 367134ba5a65885e863bdc4507601606690974c1 | /src/data/list/range.lean | 9943c72f0ed93fc7cb10b03e7922c8f6ce45c039 | [
"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 | 10,092 | lean | /-
Copyright (c) 2018 Mario Carneiro. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Mario Carneiro, Kenny Lau, Scott Morrison
-/
import data.list.chain
import data.list.nodup
import data.list.of_fn
import data.list.zip
open nat
namespace list
/- iota and range(') -/... |
1b99f5a11aef1330483b6da18dfea6fb793a8951 | 76ce87faa6bc3c2aa9af5962009e01e04f2a074a | /HW/Quiz1.lean | 65ca914d5ea9f81503288d48c01050e3cea0f4f1 | [] | no_license | Mnormansell/Discrete-Notes | db423dd9206bbe7080aecb84b4c2d275b758af97 | 61f13b98be590269fc4822be7b47924a6ddc1261 | refs/heads/master | 1,585,412,435,424 | 1,540,919,483,000 | 1,540,919,483,000 | 148,684,638 | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 424 | lean | -- Matthew Normansell (man9ej)
def and_assoc_r
{ P Q R : Prop }
(pfPQ_R: (P β§ Q) β§ R) :
(P β§ (Q β§ R)) :=
begin
have pfPQ := and.elim_left pfPQ_R,
have pfR := and.elim_right pfPQ_R,
have pfP := and.elim_left pfPQ,
have pfQ := and.elim_right pfPQ,
have pfQR := and.intro (pfQ) ... |
b296b65555e25dcc401e8f9b58769fd2992cee31 | a4673261e60b025e2c8c825dfa4ab9108246c32e | /tests/lean/run/typeclass_append.lean | b010958555de345dc6abfe03fc1995f68c39d58c | [
"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 | 1,475 | lean | /-
Copyright (c) 2019 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Daniel Selsam
Performance test to ensure quadratic blowup is avoided.
-/
class AppendList {Ξ± : Type} (xsβ xsβ : List Ξ±) (out : outParam $ List Ξ±) : Type :=
(u : Unit := ())
... |
a966953175945b94ca6a198deefceeda0212a652 | 82e44445c70db0f03e30d7be725775f122d72f3e | /src/category_theory/abelian/basic.lean | a08958cd817d520152021b379d4424ad497a90d0 | [
"Apache-2.0"
] | permissive | stjordanis/mathlib | 51e286d19140e3788ef2c470bc7b953e4991f0c9 | 2568d41bca08f5d6bf39d915434c8447e21f42ee | refs/heads/master | 1,631,748,053,501 | 1,627,938,886,000 | 1,627,938,886,000 | 228,728,358 | 0 | 0 | Apache-2.0 | 1,576,630,588,000 | 1,576,630,587,000 | null | UTF-8 | Lean | false | false | 25,630 | lean | /-
Copyright (c) 2020 Markus Himmel. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Markus Himmel
-/
import category_theory.limits.constructions.pullbacks
import category_theory.limits.shapes.biproducts
import category_theory.limits.shapes.images
import category_theor... |
7320e65b380c165c56bb30a3216a4795cc5c22ca | 6432ea7a083ff6ba21ea17af9ee47b9c371760f7 | /tests/lean/implementedByIssue.lean | 7b0e6aeb394ba8962ab2e231d4366e16eff333db | [
"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 | 577 | lean | namespace Hidden
structure Array (Ξ± : Type u) (n : Nat) : Type u where
data : (i : Fin n) β Ξ±
@[extern "some_extern"]
def get {Ξ±} {n : Nat}
(A : Array Ξ± n) (i : Fin n) : Ξ±
:= A.data i
attribute [implemented_by get] Array.data -- ok
def get_2 {Ξ± : Type} {n : Nat} (A : Array Ξ± n) (i : Fin n) : Ξ± := A.data... |
4d4d8fe45b53c1652df9c412de16cea4d661bd62 | f5f7e6fae601a5fe3cac7cc3ed353ed781d62419 | /src/topology/basic.lean | 7da0f17542129b5cd47e7a7825874fb07723e1e0 | [
"Apache-2.0"
] | permissive | EdAyers/mathlib | 9ecfb2f14bd6caad748b64c9c131befbff0fb4e0 | ca5d4c1f16f9c451cf7170b10105d0051db79e1b | refs/heads/master | 1,626,189,395,845 | 1,555,284,396,000 | 1,555,284,396,000 | 144,004,030 | 0 | 0 | Apache-2.0 | 1,533,727,664,000 | 1,533,727,663,000 | null | UTF-8 | Lean | false | false | 35,274 | 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... |
ee6e0d0dd0d187b3df5ce36bedd9bec7d9fc77c5 | fe25de614feb5587799621c41487aaee0d083b08 | /stage0/src/Lean/Meta/Tactic/Contradiction.lean | 3f84f4fcac865eadfdbb9fdfc32e870c866ffd36 | [
"Apache-2.0"
] | permissive | pollend/lean4 | e8469c2f5fb8779b773618c3267883cf21fb9fac | c913886938c4b3b83238a3f99673c6c5a9cec270 | refs/heads/master | 1,687,973,251,481 | 1,628,039,739,000 | 1,628,039,739,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 3,601 | 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.MatchUtil
import Lean.Meta.Tactic.Assumption
import Lean.Meta.Tactic.Cases
namespace Lean.Meta
def elimEmptyInductive (mvarId : MVarId) (... |
621d0974aa44dfee9e29719afdca9243ed13917c | 74addaa0e41490cbaf2abd313a764c96df57b05d | /Mathlib/category_theory/monoidal/internal/limits.lean | d66b5de8e8f2e8a9654845cf6f30638a569987c2 | [] | 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,358 | lean | /-
Copyright (c) 2020 Scott Morrison. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Scott Morrison
-/
import Mathlib.PrePort
import Mathlib.Lean3Lib.init.default
import Mathlib.category_theory.monoidal.internal.functor_category
import Mathlib.category_theory.monoidal.... |
907083aa4893ab0de78d844b5a9e5a60a50d63f9 | 969dbdfed67fda40a6f5a2b4f8c4a3c7dc01e0fb | /src/topology/metric_space/kuratowski.lean | d2c715fa54d702545791bad1cf13b10a4d94f4e4 | [
"Apache-2.0"
] | permissive | SAAluthwela/mathlib | 62044349d72dd63983a8500214736aa7779634d3 | 83a4b8b990907291421de54a78988c024dc8a552 | refs/heads/master | 1,679,433,873,417 | 1,615,998,031,000 | 1,615,998,031,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 4,948 | lean | /-
Copyright (c) 2018 SΓ©bastien GouΓ«zel. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: SΓ©bastien GouΓ«zel
-/
import topology.metric_space.isometry
import topology.bounded_continuous_function
import topology.compacts
/-!
# The Kuratowski embedding
Any separable metric... |
996778fee3f8349d7f006b2234a97273e1b5b7bb | 8eeb99d0fdf8125f5d39a0ce8631653f588ee817 | /src/data/set/finite.lean | 93816bd20bde7108042c6386ce324a58f8bdde20 | [
"Apache-2.0"
] | permissive | jesse-michael-han/mathlib | a15c58378846011b003669354cbab7062b893cfe | fa6312e4dc971985e6b7708d99a5bc3062485c89 | refs/heads/master | 1,625,200,760,912 | 1,602,081,753,000 | 1,602,081,753,000 | 181,787,230 | 0 | 0 | null | 1,555,460,682,000 | 1,555,460,682,000 | null | UTF-8 | Lean | false | false | 24,526 | lean | /-
Copyright (c) 2017 Johannes HΓΆlzl. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Johannes HΓΆlzl, Mario Carneiro
-/
import data.fintype.basic
/-!
# Finite sets
This file defines predicates `finite : set Ξ± β Prop` and `infinite : set Ξ± β Prop` and proves some
basic... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.