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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
3a2fff59f2f73d34d7152a27332b67c9a3469fb1 | f5f7e6fae601a5fe3cac7cc3ed353ed781d62419 | /src/analysis/normed_space/bounded_linear_maps.lean | 98b49ea84bc43a2065b61564549b7490b4de6409 | [
"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 | 6,917 | lean | /-
Copyright (c) 2018 Patrick Massot. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Patrick Massot, Johannes Hölzl
Continuous linear functions -- functions between normed vector spaces which are bounded and linear.
-/
import algebra.field
import tactic.norm_num
impor... |
e2e3b00b70d387ba1f842d40d1ca5f5a29abfbe6 | 626e312b5c1cb2d88fca108f5933076012633192 | /src/algebra/category/Module/monoidal.lean | 1ea5c13e4fbdb473c823c38c98ffd1058437715c | [
"Apache-2.0"
] | permissive | Bioye97/mathlib | 9db2f9ee54418d29dd06996279ba9dc874fd6beb | 782a20a27ee83b523f801ff34efb1a9557085019 | refs/heads/master | 1,690,305,956,488 | 1,631,067,774,000 | 1,631,067,774,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 9,011 | lean | /-
Copyright (c) 2020 Scott Morrison. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Kevin Buzzard, Scott Morrison
-/
import category_theory.monoidal.braided
import algebra.category.Module.basic
import linear_algebra.tensor_product
/-!
# The symmetric monoidal categor... |
c2d9f5aecbf2f4707e1c0b3fe499b8e3a6951d58 | 957a80ea22c5abb4f4670b250d55534d9db99108 | /tests/lean/param.lean | 3eb77067a8d16314c1cab41c9330c3d4189f8251 | [
"Apache-2.0"
] | permissive | GaloisInc/lean | aa1e64d604051e602fcf4610061314b9a37ab8cd | f1ec117a24459b59c6ff9e56a1d09d9e9e60a6c0 | refs/heads/master | 1,592,202,909,807 | 1,504,624,387,000 | 1,504,624,387,000 | 75,319,626 | 2 | 1 | Apache-2.0 | 1,539,290,164,000 | 1,480,616,104,000 | C++ | UTF-8 | Lean | false | false | 494 | lean | --
definition foo1 a b c := a + b + (c:nat)
definition foo2 (a : nat) b c := a + b + c
definition foo3 a b (c : nat) := a + b + c
definition foo4 (a b c : nat) := a + b + c
definition foo5 (a b c) : nat := a + b + c
definition foo6 {a b c} : nat := a + b + c
-- definition foo7 a b c : nat := a + b + c -- Error
... |
827f3d67164e80b061cfc768317a0871d60bfe14 | ce6917c5bacabee346655160b74a307b4a5ab620 | /src/ch4/ex0604.lean | 613ca24dc7cd8694a4bff96ee0e7a80724f4da67 | [] | 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 | 1,031 | lean | namespace hidden
def divides (m n : ℕ) : Prop := ∃ k, m * k = n
instance : has_dvd nat := ⟨divides⟩
def even (n : ℕ) : Prop := 2 ∣ n -- You can enter the '∣' character by typing \mid
section
variables m n : ℕ
#check m ∣ n
#check m^n
#check even (m^n +3)
end
def prime (n : ℕ) : Prop :=... |
6bd085fba085ea96154fc30388aac6f3a3946036 | 80cc5bf14c8ea85ff340d1d747a127dcadeb966f | /src/algebra/module/basic.lean | 51a41c8c7fc5c376527c76b52038b8551e90d7b8 | [
"Apache-2.0"
] | permissive | lacker/mathlib | f2439c743c4f8eb413ec589430c82d0f73b2d539 | ddf7563ac69d42cfa4a1bfe41db1fed521bd795f | refs/heads/master | 1,671,948,326,773 | 1,601,479,268,000 | 1,601,479,268,000 | 298,686,743 | 0 | 0 | Apache-2.0 | 1,601,070,794,000 | 1,601,070,794,000 | null | UTF-8 | Lean | false | false | 22,182 | lean | /-
Copyright (c) 2015 Nathaniel Thomas. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Nathaniel Thomas, Jeremy Avigad, Johannes Hölzl, Mario Carneiro
-/
import group_theory.group_action
/-!
# Modules over a ring
In this file we define
* `semimodule R M` : an additi... |
5c9b67ed12326091394a56cdf855eead53951bf4 | 3f7026ea8bef0825ca0339a275c03b911baef64d | /src/category_theory/limits/shapes/products.lean | e43e6f5aadb6d9485fd960002d09006488a6e727 | [
"Apache-2.0"
] | permissive | rspencer01/mathlib | b1e3afa5c121362ef0881012cc116513ab09f18c | c7d36292c6b9234dc40143c16288932ae38fdc12 | refs/heads/master | 1,595,010,346,708 | 1,567,511,503,000 | 1,567,511,503,000 | 206,071,681 | 0 | 0 | Apache-2.0 | 1,567,513,643,000 | 1,567,513,643,000 | null | UTF-8 | Lean | false | false | 3,126 | 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.limits.limits
import category_theory.discrete_category
universes v u
open category_theory
namespace category_theory.limits
variables {β : T... |
17b66c2b4d1cde0ca98d14207d05963f0dd99ae0 | 6432ea7a083ff6ba21ea17af9ee47b9c371760f7 | /tests/lean/run/1985.lean | b4e99347c6377833fac476e27982a8071b845880 | [
"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 | 632 | lean | import Lean.Data.Json
open Lean
deriving instance BEq for Except
example : Json.parse "\"\\u7406\\u79d1\"" == .ok "理科" := by native_decide
example : Json.parse "\"\\u7406\\u79D1\"" == .ok "理科" := by native_decide
example : Json.pretty "\x0b" == "\"\\u000b\"" := by native_decide
example : Json.pretty "\x1b" == "\"\\u... |
e3e6fd52415f2bcd28f2992a4c1f738b8e8bf4c9 | 947fa6c38e48771ae886239b4edce6db6e18d0fb | /src/linear_algebra/finsupp_vector_space.lean | efc5670b9683f69230cf0c838d207403ca394bc4 | [
"Apache-2.0"
] | permissive | ramonfmir/mathlib | c5dc8b33155473fab97c38bd3aa6723dc289beaa | 14c52e990c17f5a00c0cc9e09847af16fabbed25 | refs/heads/master | 1,661,979,343,526 | 1,660,830,384,000 | 1,660,830,384,000 | 182,072,989 | 0 | 0 | null | 1,555,585,876,000 | 1,555,585,876,000 | null | UTF-8 | Lean | false | false | 7,537 | lean | /-
Copyright (c) 2019 Johannes Hölzl. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Johannes Hölzl
-/
import linear_algebra.dimension
import linear_algebra.finite_dimensional
import linear_algebra.std_basis
/-!
# Linear structures on function with finite support `ι ... |
d6caa979ad92ee1112e481f4458b1da468b2e39f | c9ba4946202cfd1e2586e71960dfed00503dcdf4 | /src/meta_k/sort_schemas.lean | 079054db4b89b56c22136663fdc60ce9f5fc0427 | [] | no_license | ammkrn/learning_semantics_of_k | f55f669b369e32ef8407c16521b21ac5c106dc4d | c1487b538e1decc0f1fd389cd36bc36d2da012ab | refs/heads/master | 1,588,081,593,954 | 1,552,449,093,000 | 1,552,449,093,000 | 175,315,800 | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 657 | lean | import .meta_sort
import .meta_symbol
import .meta_pattern
-- List {s}
def List : #Sort → #Sort
| s := #sort "List" (lift [s])
def Set : #Sort → #Sort
| carrier := #sort ( "Set") (lift [carrier])
def Bag : #Sort → #Sort
| carrier := #sort ( "Bag") (lift [carrier])
def Bag_p (s : #Sort) (h : meta_sort_name s ≠ ( "... |
aa94ddb952e39159c57631d4734b379104956b4f | c9ba4946202cfd1e2586e71960dfed00503dcdf4 | /src/object_k/object_sort.lean | 542fe3b5e08fdc6c7e414d8a91c00430aca992b5 | [] | no_license | ammkrn/learning_semantics_of_k | f55f669b369e32ef8407c16521b21ac5c106dc4d | c1487b538e1decc0f1fd389cd36bc36d2da012ab | refs/heads/master | 1,588,081,593,954 | 1,552,449,093,000 | 1,552,449,093,000 | 175,315,800 | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 3,686 | lean | import meta_k.meta_sort
import meta_k.meta_pattern
import meta_k.meta_symbol
@[reducible]
def object_identifier := string
inductive object_sort_constructor
| mk : object_identifier → object_sort_constructor
inductive object_sort_variable
| mk : object_identifier → object_sort_variable
mutual inductive object_sort, ... |
f8bd7414f0ce4693ad1da5456a21ec820b66b4db | 35677d2df3f081738fa6b08138e03ee36bc33cad | /src/algebra/group/with_one.lean | 72154a18de66bacddbee3122746c01afd9e2a164 | [
"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 | 7,500 | lean | /-
Copyright (c) 2018 Mario Carneiro. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Mario Carneiro, Johan Commelin
-/
import algebra.group.to_additive algebra.group.basic algebra.group.hom
universes u v
variable {α : Type u}
@[to_additive]
def with_one (α) := option... |
173e8c1981ba2f8c98cdad3695f0d13dd02e3d13 | dd0f5513e11c52db157d2fcc8456d9401a6cd9da | /06_Inductive_Types.org.20.lean | b1e606100a682f06adbd90334769a9297e371b03 | [] | 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 | 154 | lean | /- page 83 -/
import standard
namespace hide
-- BEGIN
inductive sigma {A : Type} (B : A → Type) :=
dpair : Π a : A, B a → sigma B
-- END
end hide
|
8ea20558a9c74b44d22ab287d146632369f1ea59 | 75db7e3219bba2fbf41bf5b905f34fcb3c6ca3f2 | /tests/lean/extra/597a.hlean | 4bed4467497f2bc2de31359431a89f6c9207358a | [
"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 | 96 | hlean | open equiv
open equiv.ops
constants (A B : Type₀) (f : A ≃ B)
definition foo : A → B := f
|
8a19f1343c8270aadd675e84cef3568df0982cbd | e0f9ba56b7fedc16ef8697f6caeef5898b435143 | /src/algebra/direct_sum.lean | ff425fec3fed0a4bd2c834810e97eac99cc12277 | [
"Apache-2.0"
] | permissive | anrddh/mathlib | 6a374da53c7e3a35cb0298b0cd67824efef362b4 | a4266a01d2dcb10de19369307c986d038c7bb6a6 | refs/heads/master | 1,656,710,827,909 | 1,589,560,456,000 | 1,589,560,456,000 | 264,271,800 | 0 | 0 | Apache-2.0 | 1,589,568,062,000 | 1,589,568,061,000 | null | UTF-8 | Lean | false | false | 6,315 | lean | /-
Copyright (c) 2019 Kenny Lau. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Kenny Lau
Direct sum of abelian groups, indexed by a discrete type.
-/
import data.dfinsupp
universes u v w u₁
variables (ι : Type v) [decidable_eq ι] (β : ι → Type w) [Π i, add_comm_gro... |
c28fcdba82cf27a8b3add344b8ff04881a41ddb5 | 4727251e0cd73359b15b664c3170e5d754078599 | /src/category_theory/category/Kleisli.lean | 2dd2d7d5c431a09397e07364ca7a6a511d73b611 | [
"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 | 1,626 | lean | /-
Copyright (c) 2018 Simon Hudon. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Simon Hudon
-/
import category_theory.category.basic
/-!
# The Kleisli construction on the Type category
Define the Kleisli category for (control) monads.
`category_theory/monad/kleisli... |
ee473633260002ab49f4a9f96d53d5e7296abd32 | 5749d8999a76f3a8fddceca1f6941981e33aaa96 | /src/topology/algebra/module.lean | cb81ce0d47112e19bd51b4a8cb5f2e599a55561c | [
"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 | 18,432 | lean | /-
Copyright (c) 2019 Sébastien Gouëzel. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Jan-David Salchow, Sébastien Gouëzel, Jean Lo
-/
import topology.algebra.ring linear_algebra.basic ring_theory.algebra
/-!
# Theory of topological modules and continuous linear m... |
c9d73a2fb1a4dba62a8e73981717ae88d2265a80 | 74addaa0e41490cbaf2abd313a764c96df57b05d | /Mathlib/data/nat/with_bot.lean | 1b043f024d88fb327da79a071b7ba843036b5c30 | [] | 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,007 | 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 Mathlib.PrePort
import Mathlib.Lean3Lib.init.default
import Mathlib.data.nat.basic
import Mathlib.algebra.ordered_group
import Mathlib.PostPort
namespace Mathlib
... |
c3eb9a0bac9928cbbf91f8569d3c7488bbffd846 | d406927ab5617694ec9ea7001f101b7c9e3d9702 | /src/group_theory/abelianization.lean | bf32cb1c68bc00368d5695216d8e087f812781cc | [
"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,351 | lean | /-
Copyright (c) 2018 Kenny Lau. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Kenny Lau, Michael Howes
-/
import data.finite.card
import group_theory.commutator
import group_theory.finiteness
/-!
# The abelianization of a group
This file defines the commutator and ... |
ae54fbf44b61faf31335da884f2f9f9b0f9676ca | dd36d7be956e3782ca434f598130c3243b02e195 | /Bench.lean | 7a7208fb60a54190fc9cd490426676ef4fb4950f | [] | no_license | joehendrix/lean-benchmark-experiments | 81c48322aa2b269af9078308b069e8e10788899e | 604815837cace1fc9ef8c36408c0abb377518aaa | refs/heads/master | 1,681,529,683,023 | 1,618,939,900,000 | 1,618,939,900,000 | 350,514,794 | 1 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 5,565 | lean | import Lean.Elab.Frontend
open Lean
-- Time with seconds and nanoseconds.
structure Timespec where
sec: UInt64
nsec: UInt64
@[extern 1 "lean_clock_monotonic_raw_gettime"]
constant clockMonotonicRawGettime : IO Timespec
/--
- @binAddBench n@ builds a balanced binary tree of height @n@ using additions of 1,
- a... |
8c5e06b2e7539988d6fe2dd5c9eb3816ed2bc226 | 74addaa0e41490cbaf2abd313a764c96df57b05d | /Mathlib/analysis/calculus/local_extr.lean | 3e9e12996ac8e2527c0d7cc0918520245212e80c | [] | no_license | AurelienSaue/Mathlib4_auto | f538cfd0980f65a6361eadea39e6fc639e9dae14 | 590df64109b08190abe22358fabc3eae000943f2 | refs/heads/master | 1,683,906,849,776 | 1,622,564,669,000 | 1,622,564,669,000 | 371,723,747 | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 13,844 | lean | /-
Copyright (c) 2019 Yury Kudryashov. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Yury Kudryashov
-/
import Mathlib.PrePort
import Mathlib.Lean3Lib.init.default
import Mathlib.topology.local_extr
import Mathlib.analysis.calculus.deriv
import Mathlib.PostPort
unive... |
dfbe902dde4b184e283e5425f90b9f2809686528 | 367134ba5a65885e863bdc4507601606690974c1 | /src/algebra/lie/skew_adjoint.lean | 9b31a8b5af9a4517b541d5d80e3eda10a57dc3d7 | [
"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,203 | lean | /-
Copyright (c) 2020 Oliver Nash. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Oliver Nash
-/
import algebra.lie.matrix
import linear_algebra.bilinear_form
/-!
# Lie algebras of skew-adjoint endomorphisms of a bilinear form
When a module carries a bilinear form, t... |
cf7a20ddb5cd7651665f7ee0cb7f7053e9889daa | cf39355caa609c0f33405126beee2739aa3cb77e | /tests/lean/run/bin_oct_hex.lean | 413f15261dc08190a45d30bc0f10000926bbd56c | [
"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 | 108 | lean | example : 0xf = 15 :=
rfl
example : 3 = 0b11 :=
rfl
example : 5 = 0b101 :=
rfl
example : 8 = 0o10 :=
rfl
|
e9ca33bfd49a4530b1e551959bc5c66ea5fce569 | ae1e94c332e17c7dc7051ce976d5a9eebe7ab8a5 | /stage0/src/Lean/Data/Trie.lean | c95446cc78348449463d2a6a8d4be10abeff50ac | [
"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 | 2,755 | 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
Trie for tokenizing the Lean language
-/
import Lean.Data.Format
namespace Lean
namespace Parser
open Std (RBNode RBNode.leaf RBNode.singl... |
01da3e06d2d82abc79820ff23c95cecec6ea4f63 | 05b503addd423dd68145d68b8cde5cd595d74365 | /src/category_theory/graded_object.lean | d82c711124be5b486e2438de4ad9baebf70daf2a | [
"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 | 6,759 | 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 category_theory.shift
import category_theory.limits.shapes.zero
/-!
# The category of graded objects
For any type `β`, a `β`-graded object over some category... |
88d5c54eeeac2c5e94893c6eceddaf6ee60fce56 | c3f2fcd060adfa2ca29f924839d2d925e8f2c685 | /tests/lean/run/pquot.lean | 8d9587e7b635fcf782aba27cd94279f565840d32 | [
"Apache-2.0"
] | permissive | respu/lean | 6582d19a2f2838a28ecd2b3c6f81c32d07b5341d | 8c76419c60b63d0d9f7bc04ebb0b99812d0ec654 | refs/heads/master | 1,610,882,451,231 | 1,427,747,084,000 | 1,427,747,429,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 5,415 | lean | import logic.cast data.list data.sigma
-- The (pre-)quotient type kernel extension would add the following constants
-- quot, pquot.mk, pquot.eqv and pquot.rec
-- and a computational rule, which we call pquot.comp here.
-- Note that, these constants do not assume the environment contains =
constant pquot.{l} {A : T... |
6a420f62fc337b9417926e2e515679c01c8747cb | cf39355caa609c0f33405126beee2739aa3cb77e | /library/init/meta/has_reflect.lean | 98f15d70b410dbfb79c284aca7b5178f00806041 | [
"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 | 1,797 | lean | /-
Copyright (c) 2017 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Sebastian Ullrich
-/
prelude
import init.meta.expr init.util
universes u v
/-- `has_reflect α` lets you produce an `expr` from an instance of α. That is, it is a function from... |
3eff138fef21a9255686af1fe285b3e8eb25a957 | 8cb37a089cdb4af3af9d8bf1002b417e407a8e9e | /library/init/util.lean | 9aa655f18eef6a3181c87da6bcf5ab63bd14143a | [
"Apache-2.0"
] | permissive | kbuzzard/lean | ae3c3db4bb462d750dbf7419b28bafb3ec983ef7 | ed1788fd674bb8991acffc8fca585ec746711928 | refs/heads/master | 1,620,983,366,617 | 1,618,937,600,000 | 1,618,937,600,000 | 359,886,396 | 1 | 0 | Apache-2.0 | 1,618,936,987,000 | 1,618,936,987,000 | null | UTF-8 | Lean | false | false | 1,989 | lean | /-
Copyright (c) 2016 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Leonardo de Moura
-/
prelude
import init.meta.format
universes u
/-- This function has a native implementation that tracks time. -/
def timeit {α : Type u} (s : string) (f : th... |
149c19d103079d8f2849b8b0f2041e55a707d3a1 | 4fa118f6209450d4e8d058790e2967337811b2b5 | /src/for_mathlib/topological_field.lean | 2f52bbbe57b6ed192922b7b0cec3f4c4d03aa0bf | [
"Apache-2.0"
] | permissive | leanprover-community/lean-perfectoid-spaces | 16ab697a220ed3669bf76311daa8c466382207f7 | 95a6520ce578b30a80b4c36e36ab2d559a842690 | refs/heads/master | 1,639,557,829,139 | 1,638,797,866,000 | 1,638,797,866,000 | 135,769,296 | 96 | 10 | Apache-2.0 | 1,638,797,866,000 | 1,527,892,754,000 | Lean | UTF-8 | Lean | false | false | 4,910 | lean | import tactic.converter.interactive
import topology.algebra.ring
import for_mathlib.data.set.basic
import for_mathlib.topology
import for_mathlib.rings
open topological_space
namespace topological_space
variables {α : Type*} {β : Type*} {γ : Type*} {δ : Type*}
variables [topological_space β] [topological_space δ]
/... |
04f1deb3982ed4d497a56ac480af8916b58ccb5e | 74addaa0e41490cbaf2abd313a764c96df57b05d | /Mathlib/order/filter/indicator_function_auto.lean | 3d68db43963ebcf2fe282492b8eee054141103f6 | [] | no_license | AurelienSaue/Mathlib4_auto | f538cfd0980f65a6361eadea39e6fc639e9dae14 | 590df64109b08190abe22358fabc3eae000943f2 | refs/heads/master | 1,683,906,849,776 | 1,622,564,669,000 | 1,622,564,669,000 | 371,723,747 | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 2,815 | lean | /-
Copyright (c) 2020 Zhouhang Zhou. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Zhouhang Zhou, Yury Kudryashov
-/
import Mathlib.PrePort
import Mathlib.Lean3Lib.init.default
import Mathlib.data.indicator_function
import Mathlib.order.filter.at_top_bot
import Mathli... |
a1e60bb847ec443586343325ed5ca728079ee415 | e94d3f31e48d06d252ee7307fe71efe1d500f274 | /hott/init/funext.hlean | 48e38ce1cee61232fead9ded6ea2eeb6782cc9ec | [
"Apache-2.0"
] | permissive | GallagherCommaJack/lean | e4471240a069d82f97cb361d2bf1a029de3f4256 | 226f8bafeb9baaa5a2ac58000c83d6beb29991e2 | refs/heads/master | 1,610,725,100,482 | 1,459,194,829,000 | 1,459,195,377,000 | 55,377,224 | 0 | 0 | null | 1,459,731,701,000 | 1,459,731,700,000 | null | UTF-8 | Lean | false | false | 10,750 | hlean | /-
Copyright (c) 2014 Jakob von Raumer. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Jakob von Raumer, Floris van Doorn
Ported from Coq HoTT
-/
prelude
import .trunc .equiv .ua
open eq is_trunc sigma function is_equiv equiv prod unit prod.ops lift
/-
We now pro... |
1d7b768d5bf41a41a6f0c806cfe980a4973df002 | 1b8f093752ba748c5ca0083afef2959aaa7dace5 | /src/category_theory/coyoneda.lean | 45d0c19fba2fd3ce9fd656cb84680cd9b13c00c8 | [] | no_license | khoek/lean-category-theory | 7ec4cda9cc64a5a4ffeb84712ac7d020dbbba386 | 63dcb598e9270a3e8b56d1769eb4f825a177cd95 | refs/heads/master | 1,585,251,725,759 | 1,539,344,445,000 | 1,539,344,445,000 | 145,281,070 | 0 | 0 | null | 1,534,662,376,000 | 1,534,662,376,000 | null | UTF-8 | Lean | false | false | 739 | lean | import category_theory.yoneda
import category_theory.tactics.obviously
universes u₁ v₁
open category_theory
variables (C : Type u₁) [𝒞 : category.{u₁ v₁} C]
include 𝒞
def coyoneda : (Cᵒᵖ) ⥤ (C ⥤ (Type v₁)) :=
{ obj := λ X : C, { obj := λ Y, X ⟶ Y,
map' := λ Y Y' f g, g ≫ f },
map' := λ X X' f,... |
7a681aaada391b8c3d29fcf7dc42ddfc509c3a8b | 6afa22d5eee6e9a56b6a2f1210eca8f7a1067466 | /library/data/buffer/parser.lean | 24b7221e09b4e2b93c02c47b27617169862c20d7 | [
"Apache-2.0"
] | permissive | giordano/lean | 72a1fabfeb2f1ccfd38673e2719a719cd6ffbb40 | 56f8877f1efa22215aca0b82f1c0ce2ff975b9c3 | refs/heads/master | 1,663,091,511,168 | 1,590,688,082,000 | 1,590,688,082,000 | 268,183,678 | 0 | 0 | Apache-2.0 | 1,590,885,425,000 | 1,590,885,424,000 | null | UTF-8 | Lean | false | false | 7,599 | lean | /-
Copyright (c) 2017 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Gabriel Ebner
-/
import data.buffer data.dlist
inductive parse_result (α : Type)
| done (pos : ℕ) (result : α) : parse_result
| fail (pos : ℕ) (expected : dlist string) : parse... |
45a24b6e40ae3eb186cd3e456ee7a8d99be05032 | d1a52c3f208fa42c41df8278c3d280f075eb020c | /stage0/src/Init/Meta.lean | 020723340d858f576d1cb44ec501feb29321cc9c | [
"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 | 34,980 | lean | /-
Copyright (c) 2019 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Leonardo de Moura and Sebastian Ullrich
Additional goodies for writing macros
-/
prelude
import Init.Data.Array.Basic
namespace Lean
@[extern c inline "lean_box(LEAN_VERSION_... |
a12a2804eb43a6da263ce3a5713f28c49021e80b | f5f7e6fae601a5fe3cac7cc3ed353ed781d62419 | /src/algebra/char_p.lean | f5c20337acf2478a4de90a43da1d48bf03af63c0 | [
"Apache-2.0"
] | permissive | EdAyers/mathlib | 9ecfb2f14bd6caad748b64c9c131befbff0fb4e0 | ca5d4c1f16f9c451cf7170b10105d0051db79e1b | refs/heads/master | 1,626,189,395,845 | 1,555,284,396,000 | 1,555,284,396,000 | 144,004,030 | 0 | 0 | Apache-2.0 | 1,533,727,664,000 | 1,533,727,663,000 | null | UTF-8 | Lean | false | false | 8,716 | lean | /-
Copyright (c) 2018 Kenny Lau. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Author: Kenny Lau, Joey van Langen, Casper Putz
Characteristic of semirings.
-/
import data.padics.padic_norm data.nat.choose data.fintype data.set
import data.zmod.basic algebra.module
universes... |
eb0553a3d9839479e3721d1bc44d064be8b0d456 | 2eab05920d6eeb06665e1a6df77b3157354316ad | /src/tactic/suggest.lean | 4ac72a6d1b73d2714be6297895c9266d4f741d6a | [
"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 | 21,933 | lean | /-
Copyright (c) 2019 Lucas Allen. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Lucas Allen, Scott Morrison
-/
import data.mllist
import tactic.solve_by_elim
/-!
# `suggest` and `library_search`
`suggest` and `library_search` are a pair of tactics for applying lemm... |
b56bfd2600ca65446a3296bb5ae3b5eb193f6951 | 491068d2ad28831e7dade8d6dff871c3e49d9431 | /tests/lean/unfoldf.lean | 95bd708db2e041e7c4159a9bd43f285b4b408d23 | [
"Apache-2.0"
] | permissive | davidmueller13/lean | 65a3ed141b4088cd0a268e4de80eb6778b21a0e9 | c626e2e3c6f3771e07c32e82ee5b9e030de5b050 | refs/heads/master | 1,611,278,313,401 | 1,444,021,177,000 | 1,444,021,177,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 481 | lean | open nat
definition id [unfold-full] {A : Type} (a : A) := a
definition compose {A B C : Type} (g : B → C) (f : A → B) (a : A) := g (f a)
notation g ∘ f := compose g f
example (a b : nat) (H : a = b) : id a = b :=
begin
esimp,
state,
exact H
end
example (a b : nat) (H : a = b) : (id ∘ id) a = b :=
begin
esim... |
bc5de9caa3f8a507c11dc65ac8199fca8730b721 | 4efff1f47634ff19e2f786deadd394270a59ecd2 | /src/ring_theory/unique_factorization_domain.lean | 22b977fe326ff17c957f4200b1b931516e79ab9b | [
"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 | 23,114 | 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
Theory of unique factorization domains.
@TODO: setup the complete lattice structure on `factor_set`.
-/
import algebra.gcd_monoid
import ring_theory.in... |
4d57eba7b4fbb555aee5deaa909a3fdc9009e52c | fa02ed5a3c9c0adee3c26887a16855e7841c668b | /src/deprecated/ring.lean | c3df8ff072fb5d6564d46f653797813b9a48250d | [
"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,654 | lean | /-
Copyright (c) 2020 Mario Carneiro. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Mario Carneiro
-/
import deprecated.group
/-!
# Unbundled semiring and ring homomorphisms (deprecated)
This file defines typeclasses for unbundled semiring and ring homomorphisms. Th... |
fc187726ef2f771eba94f15d2555e72f20ad38cb | b7f22e51856f4989b970961f794f1c435f9b8f78 | /hott/algebra/category/constructions/set.hlean | fc51ac1bc0253af70b45d2a67a2220153f6dc0b0 | [
"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 | 3,572 | hlean | /-
Copyright (c) 2015 Floris van Doorn. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Floris van Doorn, Jakob von Raumer
Category of sets
-/
import ..functor.basic ..category types.equiv types.lift
open eq category equiv iso is_equiv is_trunc function sigma
namesp... |
e47dfcaf3f2d77432a1513ca72b55e1c34e11c25 | 649957717d58c43b5d8d200da34bf374293fe739 | /src/algebra/archimedean.lean | 88caa3bc9c3bbe3a28e2188679359830b2a8715c | [
"Apache-2.0"
] | permissive | Vtec234/mathlib | b50c7b21edea438df7497e5ed6a45f61527f0370 | fb1848bbbfce46152f58e219dc0712f3289d2b20 | refs/heads/master | 1,592,463,095,113 | 1,562,737,749,000 | 1,562,737,749,000 | 196,202,858 | 0 | 0 | Apache-2.0 | 1,562,762,338,000 | 1,562,762,337,000 | null | UTF-8 | Lean | false | false | 15,761 | lean | /-
Copyright (c) 2018 Mario Carneiro. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Mario Carneiro
Archimedean groups and fields.
-/
import algebra.group_power algebra.field_power
import data.rat.basic tactic.linarith tactic.abel
local infix ` • ` := add_monoid.smul... |
22f19ac5d7f9748f1241533bbaf8cd2b5a383831 | 8cae430f0a71442d02dbb1cbb14073b31048e4b0 | /src/order/interval.lean | bdaa1250c6a6ddabd4fa69577bb1d66607b51f19 | [
"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 | 18,557 | lean | /-
Copyright (c) 2022 Yaël Dillies. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Yaël Dillies
-/
import data.set.intervals.basic
import data.set.lattice
import data.set_like.basic
/-!
# Order intervals
> THIS FILE IS SYNCHRONIZED WITH MATHLIB4.
> Any changes to thi... |
7e602896f174df715e550319b3876a8aa4926bbd | 8d65764a9e5f0923a67fc435eb1a5a1d02fd80e3 | /src/algebra/ordered_sub.lean | 051c4bd7c1b48b046bbf05c20dda590fa429aa72 | [
"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 | 25,609 | lean | /-
Copyright (c) 2021 Floris van Doorn. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Floris van Doorn
-/
import algebra.ordered_monoid
/-!
# Ordered Subtraction
This file proves lemmas relating (truncated) subtraction with an order. We provide a class
`has_ordered_... |
8ee0b6c36706ce1d5cb34f45ae2085f1717492e1 | 86f6f4f8d827a196a32bfc646234b73328aeb306 | /examples/basics/unnamed_2030.lean | f679f590b075c312d0d70b77a77b7e87a2984669 | [] | 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 | 240 | lean | import topology.metric_space.basic
variables {X : Type*} [metric_space X]
variables x y z : X
#check (dist_self x : dist x x = 0)
#check (dist_comm x y : dist x y = dist y x)
#check (dist_triangle x y z : dist x z ≤ dist x y + dist y z) |
7b4e28d6afd9116fd8c33d882cfe01656931191c | 8cae430f0a71442d02dbb1cbb14073b31048e4b0 | /src/algebra/order/archimedean.lean | 3fa825a3a4457cf9ed776167f8520a03e13469ed | [
"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 | 15,121 | 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.int.least_greatest
import data.rat.floor
/-!
# Archimedean groups and fields.
> THIS FILE IS SYNCHRONIZED WITH MATHLIB4.
> Any changes to this file requ... |
54d4b01f5144af7a7951210b841c3691cbd96416 | 4efff1f47634ff19e2f786deadd394270a59ecd2 | /src/topology/metric_space/emetric_space.lean | 12a1d1ce88b3a87f77f9f6ad7fa98c206fa53406 | [
"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 | 39,246 | lean | /-
Copyright (c) 2015, 2017 Jeremy Avigad. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Jeremy Avigad, Robert Y. Lewis, Johannes Hölzl, Mario Carneiro, Sébastien Gouëzel
-/
import data.real.ennreal
import data.finset.intervals
import topology.uniform_space.uniform_em... |
0e47755dd698460f92e604f6219bc2f77aea866e | de91c42b87530c3bdcc2b138ef1a3c3d9bee0d41 | /old/eval/luminousIntensityEval.lean | 60be9b72f98d69508f3e40e22aa2096cd1a05e5d | [] | no_license | kevinsullivan/lang | d3e526ba363dc1ddf5ff1c2f36607d7f891806a7 | e9d869bff94fb13ad9262222a6f3c4aafba82d5e | refs/heads/master | 1,687,840,064,795 | 1,628,047,969,000 | 1,628,047,969,000 | 282,210,749 | 0 | 1 | null | 1,608,153,830,000 | 1,595,592,637,000 | Lean | UTF-8 | Lean | false | false | 657 | lean | import ..imperative_DSL.environment
open lang.classicalLuminousIntensity
attribute [reducible]
def classicalLuminousIntensityEval : lang.classicalLuminousIntensity.spaceExpr → environment.env → classicalLuminousIntensity
| (lang.classicalLuminousIntensity.spaceExpr.lit V) i := V
| (lang.classicalLuminousIntensity.sp... |
3f7a9617f9d635b97065001e1501d8e5ae3fca7d | 4fa161becb8ce7378a709f5992a594764699e268 | /src/topology/uniform_space/absolute_value.lean | 3579ef6359c17986f5b46b42edf4e4431dab6fde | [
"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 | 2,972 | lean | /-
Copyright (c) 2019 Patrick Massot. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Patrick Massot
-/
import data.real.cau_seq
import topology.uniform_space.basic
/-!
# Uniform structure induced by an absolute value
We build a uniform space structure on a commutativ... |
830629a65e2e4d51ab1bd72cb344f021da74293b | 0dc59d2b959c9b11a672f655b104d7d7d3e37660 | /other_peoples_work/vvs_NNG4.lean | 58e7daaa4e81e27fcecf2cf1a6fea2cd99b3685a | [] | no_license | kbuzzard/lean4-filters | 5aa17d95079ceb906622543209064151fa645e71 | 29f90055b7a2341c86d924954463c439bd128fb7 | refs/heads/master | 1,679,762,259,673 | 1,616,701,300,000 | 1,616,701,300,000 | 350,784,493 | 5 | 1 | null | 1,625,691,081,000 | 1,616,517,435,000 | Lean | UTF-8 | Lean | false | false | 1,201 | lean | theorem add_zero : x + 0 = x := by
rfl
theorem add_succ : x + Nat.succ y = Nat.succ (x + y) := by
rfl
theorem one_Eq_succ_zero : 1 = Nat.succ 0 := by
rfl
--set_option hygienicIntro false in
theorem zero_add : 0 + x = x := by
induction x with | succ _ ih => _ | _ => _
rfl
rewrite add_succ
apply congrArg... |
554f4d4d10ed268a1d80ded7c2b9a595f54e9992 | acc85b4be2c618b11fc7cb3005521ae6858a8d07 | /analysis/topology/uniform_space.lean | 0acf70915c22a20952f5121fb944add20c7b56bc | [
"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 | 71,500 | 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
Theory of uniform spaces.
Uniform spaces are a generalization of metric spaces and topological groups. Many concepts directly
generalize to uniform spaces, e.g.
* com... |
b956bb1271516e1143e2cfffabd0dbe823e36fed | cf39355caa609c0f33405126beee2739aa3cb77e | /tests/lean/run/1343.lean | ba16866aafaa45941da87d446dcbaefb55c4d992 | [
"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 | 290 | lean | universe variable u
namespace ex1
inductive foo (α : Type (u+1)) : Type (u+1)
| mk : α → foo
inductive bug
| leaf : bug
| mk : foo bug → bug
end ex1
namespace ex2
inductive foo (α : Type u) : Type u
| mk : α → foo
inductive bug
| leaf : bug
| mk : foo bug → bug
end ex2
|
4091760f41e8e98ad6e248b44a17599b9a550f41 | a45212b1526d532e6e83c44ddca6a05795113ddc | /src/order/filter/filter_product.lean | 2c8fc47977b60862e15b7c7caf62bd2784deced1 | [
"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 | 16,808 | lean | /-
Copyright (c) 2019 Abhimanyu Pallavi Sudhir. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Abhimanyu Pallavi Sudhir
"Filterproducts" (ultraproducts on general filters), ultraproducts.
-/
import order.filter.basic
universes u v
variables {α : Type u} (β : Type v) ... |
0f9c4643a2e45769342fa6295bff3388f4561b05 | 54ce0561cebde424526f41d45f490ed56be2bd0c | /src/game/ch4_Integers_and_Rationals/2_The_Rationals.lean | 078e07ca72858d6b925a283b6ac85862274fee03 | [] | no_license | melembroucarlitos/Tao_Analysis-LEAN | cf7b3298d317891a09e4bf21cfe7c7ffcb57b9a9 | 3f4fc7e090d96b6cef64896492fba4bef124794b | refs/heads/master | 1,692,952,385,694 | 1,636,287,522,000 | 1,636,287,522,000 | 400,630,166 | 3 | 0 | null | 1,635,910,807,000 | 1,630,096,823,000 | Lean | UTF-8 | Lean | false | false | 170 | lean | -- Level name : The Rational Numbers
/-
# Hey yall
## This is just to a placeholder to make sure all is working
these are some words
and these are some other words
-/
|
f853121e4399b3745397e8a8834c9ae0e4323c0d | 55c7fc2bf55d496ace18cd6f3376e12bb14c8cc5 | /src/data/polynomial/identities.lean | 7149747917e0c8747e74eca6afb3b1bfa3ac97d8 | [
"Apache-2.0"
] | permissive | dupuisf/mathlib | 62de4ec6544bf3b79086afd27b6529acfaf2c1bb | 8582b06b0a5d06c33ee07d0bdf7c646cae22cf36 | refs/heads/master | 1,669,494,854,016 | 1,595,692,409,000 | 1,595,692,409,000 | 272,046,630 | 0 | 0 | Apache-2.0 | 1,592,066,143,000 | 1,592,066,142,000 | null | UTF-8 | Lean | false | false | 3,489 | lean | /-
Copyright (c) 2018 Chris Hughes. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Chris Hughes, Johannes Hölzl, Scott Morrison, Jens Wagemaker
-/
import data.polynomial.derivative
/-!
# Theory of univariate polynomials
The main def is `binom_expansion`.
-/
noncompu... |
d549c61b1b29ea3cc4b18deb6ab7c32befba7819 | 8cae430f0a71442d02dbb1cbb14073b31048e4b0 | /src/algebraic_geometry/elliptic_curve/point.lean | f8e6785033fa00d460b9741677d0cb216232568d | [
"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 | 39,400 | lean | /-
Copyright (c) 2022 David Kurniadi Angdinata. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: David Kurniadi Angdinata
-/
import algebraic_geometry.elliptic_curve.weierstrass
import linear_algebra.free_module.norm
import ring_theory.class_group
/-!
# Nonsingular rat... |
b8c7540d861a08c8e14bd5c411163e6a1dbcb428 | a0e23cfdd129a671bf3154ee1a8a3a72bf4c7940 | /src/Lean/Elab/PreDefinition/WF.lean | f9e1021e5a7b60a1ab99386713d2fff4d5870c93 | [
"Apache-2.0"
] | permissive | WojciechKarpiel/lean4 | 7f89706b8e3c1f942b83a2c91a3a00b05da0e65b | f6e1314fa08293dea66a329e05b6c196a0189163 | refs/heads/master | 1,686,633,402,214 | 1,625,821,189,000 | 1,625,821,258,000 | 384,640,886 | 0 | 0 | Apache-2.0 | 1,625,903,617,000 | 1,625,903,026,000 | null | UTF-8 | Lean | false | false | 396 | 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.Elab.PreDefinition.Basic
namespace Lean
namespace Elab
open Meta
def WFRecursion (preDefs : Array PreDefinition) : TermElabM Unit :=
throwErr... |
d940e3e00ee80f1d9e107b98af86e262804316bc | a45212b1526d532e6e83c44ddca6a05795113ddc | /src/data/list/default.lean | 1b9d0bb48acd80b21fc844312c2cbccb9a7e298d | [
"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 | 182 | lean | /-
Copyright (c) 2014 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Author: Jeremy Avigad
-/
import data.list.basic
|
774f4da3abf650d376bee4e4f81ffa5683204381 | 271e26e338b0c14544a889c31c30b39c989f2e0f | /src/Init/Lean/Elab/Import.lean | 35ea571892024099e028032c0807044e79dffc72 | [
"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 | 1,993 | lean | /-
Copyright (c) 2019 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Leonardo de Moura, Sebastian Ullrich
-/
prelude
import Init.Lean.Parser.Module
namespace Lean
namespace Elab
def headerToImports (header : Syntax) : List Import :=
let header ... |
9a73ebdeaded0e95693fd40a777afe5019c2558f | 8cae430f0a71442d02dbb1cbb14073b31048e4b0 | /src/category_theory/preadditive/projective_resolution.lean | 16f66b844bf9e05024b1b5f8e88eaa20d5ea0238 | [
"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 | 13,101 | 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 category_theory.preadditive.projective
import algebra.homology.single
import algebra.homology.homotopy_category
/-!
# Projective resolutions
> THIS FILE IS S... |
e90dfad954fc0b058b57a5915deb26f82c43ed0b | 9dc8cecdf3c4634764a18254e94d43da07142918 | /src/group_theory/group_action/sub_mul_action.lean | 5d03221e6e8cf93f833f69ec3c133574b7114e53 | [
"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,158 | lean | /-
Copyright (c) 2020 Eric Wieser. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Eric Wieser
-/
import algebra.hom.group_action
import algebra.module.basic
import data.set_like.basic
import group_theory.group_action.basic
/-!
# Sets invariant to a `mul_action`
In th... |
f446ca8ec5b63f4c3b2716519adf77e25a655639 | a9d0fb7b0e4f802bd3857b803e6c5c23d87fef91 | /tests/lean/check2.lean | 3f2e5ca523042e0085233e91405de6f13b22f700 | [
"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 | 20 | lean | --
check eq.rec_on
|
10c9f52c9cce440b65c18d8c4ec07f4e5ae7ee76 | bb31430994044506fa42fd667e2d556327e18dfe | /src/analysis/convex/hull.lean | e31a5497a850453f9d0e78c41161cf8fd63ea001 | [
"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 | 7,084 | lean | /-
Copyright (c) 2020 Yury Kudriashov. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Yury Kudriashov, Yaël Dillies
-/
import analysis.convex.basic
import order.closure
/-!
# Convex hull
This file defines the convex hull of a set `s` in a module. `convex_hull 𝕜 s` i... |
53e482d0cc9b62df7b7198277a5f6ec48d85d688 | d5bef83c55d40cb88f9a01b755c882a93348a847 | /tests/lean/run/soundness.lean | 9fb8a97743887c281e071aa832cfe9d5c3dda1bb | [
"Apache-2.0"
] | permissive | urkud/lean | 587d78216e1f0c7f651566e9e92cf8ade285d58d | 3526539070ea6268df5dd373deeb3ac8b9621952 | refs/heads/master | 1,660,171,634,921 | 1,657,873,466,000 | 1,657,873,466,000 | 249,789,456 | 0 | 0 | Apache-2.0 | 1,585,075,263,000 | 1,585,075,263,000 | null | UTF-8 | Lean | false | false | 6,724 | lean | /-
Copyright (c) 2015 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Author: Leonardo de Moura
Define propositional calculus, valuation, provability, validity, prove soundness.
This file is based on Floris van Doorn Coq files.
Similar to soundness.lea... |
db3cc677b74ac7960f0f82a768ebba5c8ba66c9c | 5ca7b1b12d14c4742e29366312ba2c2ef8201b21 | /src/game/intro.lean | c6f666e648e37d9938bed80a6797e39b4266bc82 | [
"Apache-2.0"
] | permissive | MatthiasHu/natural_number_game | 2e464482ef3001863430b0336133b6697b275ba3 | 2d764f72669ae30861f6a1057fce0257f3e466c4 | refs/heads/master | 1,609,719,110,419 | 1,576,345,737,000 | 1,576,345,737,000 | 240,296,314 | 0 | 0 | Apache-2.0 | 1,581,608,357,000 | 1,581,608,356,000 | null | UTF-8 | Lean | false | false | 3,789 | lean | /-
# The Natural Number Game, version 1.1beta
## By Kevin Buzzard and Mohammad Pedramfar.
# What is this game?
Welcome to the natural number game -- a part-book part-game which shows the power of induction.
Blue nodes on the graph are ones that you are ready to enter. Grey nodes you should stay away
from -- a grey ... |
251a474e8afb2ddaa052aec5a448358201a13d21 | 6432ea7a083ff6ba21ea17af9ee47b9c371760f7 | /tests/lean/scopedTokens.lean | 50856ae653960a3445517e0b9d4ef83fde8dff06 | [
"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 | 484 | lean | namespace Foo
scoped syntax "foo!" term:max : term
macro_rules
| `(foo! $x) => `($x + 1)
#check foo! 20
theorem ex1 : foo! 20 = 21 := rfl
end Foo
#check foo! 10 -- Error
def foo! := 10
theorem ex2 : foo! = 10 := rfl
#check foo!
open Foo
#check foo! 20
theorem ex3 : foo! 10 = 11 := rfl
namespace Bla
scop... |
1211dd7d1fe825551eb4ac16fd48601bb32ed17e | 1437b3495ef9020d5413178aa33c0a625f15f15f | /category_theory/products.lean | 1685ae716a118d448b978e06104ae25318c2a9b2 | [
"Apache-2.0"
] | permissive | jean002/mathlib | c66bbb2d9fdc9c03ae07f869acac7ddbfce67a30 | dc6c38a765799c99c4d9c8d5207d9e6c9e0e2cfd | refs/heads/master | 1,587,027,806,375 | 1,547,306,358,000 | 1,547,306,358,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 5,537 | lean | -- Copyright (c) 2017 Scott Morrison. All rights reserved.
-- Released under Apache 2.0 license as described in the file LICENSE.
-- Authors: Stephen Morgan, Scott Morrison
import category_theory.functor_category
import category_theory.isomorphism
import tactic.interactive
namespace category_theory
universes v₁ v₂ v... |
5e2f6649ca94f437f65667ba870cb1629e6ca704 | cf39355caa609c0f33405126beee2739aa3cb77e | /tests/lean/run/1608.lean | 8416246b60b9282e934a18b749b07d80f76b4b97 | [
"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 | 216 | lean | example {α : Type} {a b : α} (h : ¬ (a = b)) : b ≠ a :=
by cc
example {α : Type} {a b : α} (h : ¬ (a = b)) : ¬ (b = a) :=
by cc
example {α : Type} {a b : α} (h : ¬ (a = b)) : b ≠ a :=
begin [smt] end
|
cf8eb8277fcc7750010b999c21e937154667295e | 9be442d9ec2fcf442516ed6e9e1660aa9071b7bd | /stage0/src/Lean/Data/Lsp/Internal.lean | d82a9dae579c4c741c0b778a4a004acdfe98978a | [
"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 | 3,038 | lean | /-
Copyright (c) 2022 Joscha Mennicken. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Joscha Mennicken
-/
import Lean.Expr
import Lean.Data.Lsp.Basic
/-! This file contains types for communication between the watchdog and the
workers. These messages are not visible... |
dcdfeda1e8c11a5e35173c483eee8085d710e3ce | 624f6f2ae8b3b1adc5f8f67a365c51d5126be45a | /tests/compiler/phashmap2.lean | c924b1389b801b7d8b459d7ffba53442c1b03646 | [
"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 | 1,569 | lean | import Init.Data.PersistentHashMap
import Init.Lean.Data.Format
open Lean PersistentHashMap
abbrev Map := PersistentHashMap Nat Nat
partial def formatMap : Node Nat Nat → Format
| Node.collision keys vals _ => Format.sbracket $
keys.size.fold
(fun i fmt =>
let k := keys.get! i;
let v := vals.get! ... |
3b94a4904e7fbc4e461a630f6f5c726af6ae6d84 | 9dc8cecdf3c4634764a18254e94d43da07142918 | /src/ring_theory/ideal/operations.lean | bc0a4c1cce3836170dc0fde18d0f7466f95b2c68 | [
"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 | 91,786 | lean | /-
Copyright (c) 2018 Kenny Lau. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Kenny Lau
-/
import algebra.algebra.operations
import algebra.ring.equiv
import data.nat.choose.sum
import ring_theory.coprime.lemmas
import ring_theory.ideal.quotient
import ring_theory.no... |
2aa3b2e1ccc14e223f482768efea629c25c55dbd | cf39355caa609c0f33405126beee2739aa3cb77e | /library/init/data/list/lemmas.lean | db03c74f1e95b613320b63360fff38b3e9d97ff4 | [
"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 | 10,534 | lean | /-
Copyright (c) 2014 Parikshit Khanna. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Author: Parikshit Khanna, Jeremy Avigad, Leonardo de Moura, Floris van Doorn
-/
prelude
import init.data.list.basic init.function init.meta init.data.nat.lemmas
import init.meta.interactive i... |
c348bca33ab937bf0f6af285223a97dffb3d074e | 9dd3f3912f7321eb58ee9aa8f21778ad6221f87c | /library/init/meta/tactic.lean | 547ccc017c151e1bdc0d1075bfe5a69bdd599ea0 | [
"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 | 38,396 | lean | /-
Copyright (c) 2016 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Leonardo de Moura
-/
prelude
import init.function init.data.option.basic init.util
import init.category.combinators init.category.monad init.category.alternative init.category.m... |
778179924733a084184d168b1f5b241028108a63 | 8cb37a089cdb4af3af9d8bf1002b417e407a8e9e | /library/data/stream.lean | 88a157d4770b40f125f797d6b87a878c94570ecb | [
"Apache-2.0"
] | permissive | kbuzzard/lean | ae3c3db4bb462d750dbf7419b28bafb3ec983ef7 | ed1788fd674bb8991acffc8fca585ec746711928 | refs/heads/master | 1,620,983,366,617 | 1,618,937,600,000 | 1,618,937,600,000 | 359,886,396 | 1 | 0 | Apache-2.0 | 1,618,936,987,000 | 1,618,936,987,000 | null | UTF-8 | Lean | false | false | 21,705 | lean | /-
Copyright (c) 2015 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Author: Leonardo de Moura
-/
open nat function option
universes u v w
def stream (α : Type u) := nat → α
namespace stream
variables {α : Type u} {β : Type v} {δ : Type w}
def cons (a ... |
416af155f10b69b9763d838850bddd62930acb74 | 9dc8cecdf3c4634764a18254e94d43da07142918 | /src/group_theory/group_action/defs.lean | a11a76b7d6648999ac24e935f2bc389d1fe50fad | [
"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 | 33,842 | lean | /-
Copyright (c) 2018 Chris Hughes. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Chris Hughes, Yury Kudryashov
-/
import algebra.group.type_tags
import algebra.hom.group
import algebra.opposites
import logic.embedding
/-!
# Definitions of group actions
This file de... |
8271076700effb7382dcf9fc068050c6644eb62b | 4950bf76e5ae40ba9f8491647d0b6f228ddce173 | /src/algebra/opposites.lean | 8f63e89ceaeb912159d7c230e9686f20722caac5 | [
"Apache-2.0"
] | permissive | ntzwq/mathlib | ca50b21079b0a7c6781c34b62199a396dd00cee2 | 36eec1a98f22df82eaccd354a758ef8576af2a7f | refs/heads/master | 1,675,193,391,478 | 1,607,822,996,000 | 1,607,822,996,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 8,661 | lean | /-
Copyright (c) 2018 Kenny Lau. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Kenny Lau
-/
import data.opposite
import algebra.field
import group_theory.group_action.defs
import data.equiv.mul_add
/-!
# Algebraic operations on `αᵒᵖ`
-/
namespace opposite
universes ... |
75ddec6eb6bc18baecd332b6253933fb19fee600 | 80cc5bf14c8ea85ff340d1d747a127dcadeb966f | /src/data/vector2.lean | 52dd6f0a79fd1e445c12067aadaab5e9f85e6ee0 | [
"Apache-2.0"
] | permissive | lacker/mathlib | f2439c743c4f8eb413ec589430c82d0f73b2d539 | ddf7563ac69d42cfa4a1bfe41db1fed521bd795f | refs/heads/master | 1,671,948,326,773 | 1,601,479,268,000 | 1,601,479,268,000 | 298,686,743 | 0 | 0 | Apache-2.0 | 1,601,070,794,000 | 1,601,070,794,000 | null | UTF-8 | Lean | false | false | 10,894 | 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
import data.list.nodup
import data.list.of_fn
import control.applicative
universes u
variables {n : ... |
88e36c7df337cd884b9f7d52abfc16c0c3979b7f | bdc51328652176125c43c2c9f2d3e4398f127ccb | /src/DFA.lean | 4894f9b80e368437d8bbabf4c6a547990063c7aa | [] | no_license | atarnoam/lean-automata | d6ca17387b8e0ac6d7c21f12e78d26c237a57cd2 | 46c69ddaa142913b1f43ef57f700f2481cdfba76 | refs/heads/main | 1,678,898,675,345 | 1,614,977,921,000 | 1,614,977,921,000 | 344,927,186 | 6 | 1 | null | null | null | null | UTF-8 | Lean | false | false | 4,519 | lean | import computability.DFA
import computability.language
import data.fintype.basic
import data.list
import language
universes u v w
namespace DFA
variables {α : Type u}
variables {σ τ : Type v}
section basics
variables {A : DFA α σ} (p : σ) (a : α) (x y : list α)
@[simp] lemma eval_from_nil : A.eval_from p [] = p... |
697716519c787a1ed71cddef560d647e0a7af663 | 5ae26df177f810c5006841e9c73dc56e01b978d7 | /src/category_theory/monoidal/functor.lean | d4b1bf965227bff5cc824d0e26bd6a9e935c85cf | [
"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 | 6,665 | lean | /-
Copyright (c) 2018 Michael Jendrusch. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Michael Jendrusch, Scott Morrison
-/
import category_theory.monoidal.category
open category_theory
universes v₁ v₂ v₃ u₁ u₂ u₃
open category_theory.category
open category_theory.... |
bad8ee8281b349874880a2930bb5436fe10474a5 | 8cae430f0a71442d02dbb1cbb14073b31048e4b0 | /src/linear_algebra/basis.lean | c7f2f38be3cd79adaf218490ddd95718fd827084 | [
"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 | 57,800 | lean | /-
Copyright (c) 2017 Johannes Hölzl. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Johannes Hölzl, Mario Carneiro, Alexander Bentkamp
-/
import algebra.big_operators.finsupp
import algebra.big_operators.finprod
import data.fintype.big_operators
import linear_algebra.... |
2cc7b4f291e917315f180b8b8ff813c37e69d654 | 6dc0c8ce7a76229dd81e73ed4474f15f88a9e294 | /stage0/src/Std/Data/HashSet.lean | a57adbea912c6ee5cb854479bcf8d97e0cc0aef6 | [
"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 | 6,069 | lean | /-
Copyright (c) 2019 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Author: Leonardo de Moura
-/
namespace Std
universes u v w
def HashSetBucket (α : Type u) :=
{ b : Array (List α) // b.size > 0 }
def HashSetBucket.update {α : Type u} (data : HashSe... |
b156623f62a9479c2c73b4d5e076e7b70042e3ff | 947b78d97130d56365ae2ec264df196ce769371a | /tests/lean/inst.lean | 37cd398715ec6a913c34fa1b654adbd9c7af209f | [
"Apache-2.0"
] | permissive | shyamalschandra/lean4 | 27044812be8698f0c79147615b1d5090b9f4b037 | 6e7a883b21eaf62831e8111b251dc9b18f40e604 | refs/heads/master | 1,671,417,126,371 | 1,601,859,995,000 | 1,601,860,020,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 508 | lean | import Lean.Expr
new_frontend
open Lean
def tst : IO Unit :=
do
let f := mkConst `f;
let x := mkBVar 0;
let y := mkBVar 1;
let t := mkApp (mkApp (mkApp f x) y) x;
let a := mkConst `a;
let b := mkApp f (mkConst `b);
let c := mkConst `c;
IO.println t;
IO.println (t.instantiate #[a, b]);
IO.println (t.instantiateRange 0 ... |
25baecb81328ca57b80c92f3bba8a958a0867746 | c777c32c8e484e195053731103c5e52af26a25d1 | /src/algebraic_topology/dold_kan/gamma_comp_n.lean | b3d66c5c2cfccb0b0bbb45a03c10cef6309b4980 | [
"Apache-2.0"
] | permissive | kbuzzard/mathlib | 2ff9e85dfe2a46f4b291927f983afec17e946eb8 | 58537299e922f9c77df76cb613910914a479c1f7 | refs/heads/master | 1,685,313,702,744 | 1,683,974,212,000 | 1,683,974,212,000 | 128,185,277 | 1 | 0 | null | 1,522,920,600,000 | 1,522,920,600,000 | null | UTF-8 | Lean | false | false | 6,614 | 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... |
611685738e0d83cb892ac9c624e6809a2bfe4646 | d9d511f37a523cd7659d6f573f990e2a0af93c6f | /src/algebra/group_power/order.lean | c6d689bc025af31a57a395898c3ce0ee6fe0f4c3 | [
"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 | 10,636 | lean | /-
Copyright (c) 2015 Jeremy Avigad. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Jeremy Avigad, Robert Y. Lewis
-/
import algebra.ordered_ring
import algebra.group_power.basic
/-!
# Lemmas about the interaction of power operations with order
Note that some lemmas ... |
8db9b5cee0e0f8f8913ee4c6e25923726016d601 | d406927ab5617694ec9ea7001f101b7c9e3d9702 | /src/combinatorics/quiver/basic.lean | 2e3527deffeb22347ca478a95ee178c553334383 | [
"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 | 4,176 | lean | /-
Copyright (c) 2021 David Wärn. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: David Wärn, Scott Morrison
-/
import data.opposite
/-!
# Quivers
> THIS FILE IS SYNCHRONIZED WITH MATHLIB4.
> https://github.com/leanprover-community/mathlib4/pull/749
> Any changes to t... |
50d42a9ac1992dea126827f09eeb80e64b54b641 | 75db7e3219bba2fbf41bf5b905f34fcb3c6ca3f2 | /library/algebra/field.lean | 4005daf5fcdde5b75dbd11d4d011bfd68d6462ea | [
"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 | 20,340 | lean | /-
Copyright (c) 2014 Robert Lewis. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Robert Lewis
Structures with multiplicative and additive components, including division rings and fields.
The development is modeled after Isabelle's library.
-/
import logic.eq logic.c... |
7cb03283084e0dc9003d8fa9fa4345e93d8b1e5f | a44280b79dc85615010e3fbda46abf82c6730fa3 | /tests/playground/lazylist.lean | ef32658294b44545da2bd2b08bece81b753a73e9 | [
"Apache-2.0"
] | permissive | kodyvajjha/lean4 | 8e1c613248b531d47367ca6e8d97ee1046645aa1 | c8a045d69fac152fd5e3a577f718615cecb9c53d | refs/heads/master | 1,589,684,450,102 | 1,555,200,447,000 | 1,556,139,945,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 3,912 | lean | /-
Copyright (c) 2019 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Author: Leonardo de Moura
-/
universes u v w
inductive LazyList (α : Type u)
| nil {} : LazyList
| cons (hd : α) (tl : LazyList) : LazyList
| delayed (t : Thunk L... |
07e924fd0b50187b84a4a4f98312868229d45c22 | a0e23cfdd129a671bf3154ee1a8a3a72bf4c7940 | /src/Lean/Elab/BuiltinNotation.lean | a37188cad1db4f7dda14ae6176d055651eb74929 | [
"Apache-2.0"
] | permissive | WojciechKarpiel/lean4 | 7f89706b8e3c1f942b83a2c91a3a00b05da0e65b | f6e1314fa08293dea66a329e05b6c196a0189163 | refs/heads/master | 1,686,633,402,214 | 1,625,821,189,000 | 1,625,821,258,000 | 384,640,886 | 0 | 0 | Apache-2.0 | 1,625,903,617,000 | 1,625,903,026,000 | null | UTF-8 | Lean | false | false | 13,805 | 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 Init.Data.ToString
import Lean.Compiler.BorrowedAnnotation
import Lean.Meta.KAbstract
import Lean.Meta.Transform
import Lean.Elab.Term
import Lean.El... |
a665bd41168579a962dd6ff40f5afcc56a725b34 | 05b503addd423dd68145d68b8cde5cd595d74365 | /src/group_theory/congruence.lean | b22c7d385bfabadd6cf56be34b0fd0877b4a69bd | [
"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 | 43,494 | lean | /-
Copyright (c) 2019 Amelia Livingston. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Amelia Livingston
-/
import group_theory.submonoid
import data.setoid
import algebra.pi_instances
/-!
# Congruence relations
This file defines congruence relations: equivalence r... |
9b9db26ed27478e0cffe4669b6d8e165d608924e | 74addaa0e41490cbaf2abd313a764c96df57b05d | /Mathlib/category_theory/sums/basic.lean | f17949c7f65c822b9ba6af4667caabbc08eaddb5 | [] | 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,425 | 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.category_theory.eq_to_hom
import Mathlib.PostPort
universes u₁ v₁
namespace Mathlib
/-#... |
212e4053677a87d3475861d99c6cc3b1dc6107d3 | b00eb947a9c4141624aa8919e94ce6dcd249ed70 | /stage0/src/Init/Data/UInt.lean | bcbbd46633bbfd6f12626d6e3cc2899eecb5fbcc | [
"Apache-2.0"
] | permissive | gebner/lean4-old | a4129a041af2d4d12afb3a8d4deedabde727719b | ee51cdfaf63ee313c914d83264f91f414a0e3b6e | refs/heads/master | 1,683,628,606,745 | 1,622,651,300,000 | 1,622,654,405,000 | 142,608,821 | 1 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 14,736 | lean | /-
Copyright (c) 2018 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Leonardo de Moura
-/
prelude
import Init.Data.Fin.Basic
import Init.System.Platform
open Nat
@[extern "lean_uint8_of_nat"]
def UInt8.ofNat (n : @& Nat) : UInt8 := ⟨Fin.ofNat n... |
670439c54f3086c0398ca1d032b2b5d5686f35d3 | 9be442d9ec2fcf442516ed6e9e1660aa9071b7bd | /stage0/src/Lean/Server/FileWorker/WidgetRequests.lean | df9de092dcbaf84b26447fb41631ec8896aac3fd | [
"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 | 4,838 | 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.Basic
import Lean.Widget.InteractiveCode
import Lean.Widget.InteractiveGoal
import Lean.Widget.InteractiveDiagnostic
import Lean.Server... |
7e0ed2b07f45dc6658dbea481cd26c3b561b5b54 | 35677d2df3f081738fa6b08138e03ee36bc33cad | /src/algebra/opposites.lean | 17032127e2c423e0b44ab9122bd995d4ae5d193f | [
"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 | 5,752 | lean | /-
Copyright (c) 2018 Kenny Lau. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Kenny Lau
Opposites.
-/
import data.opposite
namespace opposite
universes u
variables (α : Type u)
instance [has_add α] : has_add (opposite α) :=
{ add := λ x y, op (unop x + unop y) }
... |
0f7e216b870d3682582eb6bce08ad6c1054ef604 | fa02ed5a3c9c0adee3c26887a16855e7841c668b | /src/category_theory/discrete_category.lean | dc7a2173406831117e9feaa81c07874b72b8b114 | [
"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 | 6,199 | lean | /-
Copyright (c) 2017 Scott Morrison. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Stephen Morgan, Scott Morrison, Floris van Doorn
-/
import category_theory.eq_to_hom
/-!
# Discrete categories
We define `discrete α := α` for any type `α`, and use this type alias
t... |
0538c9c7c03c2994beef94cc8cd5d373f2260a40 | 2385ce0e3b60d8dbea33dd439902a2070cca7a24 | /tests/lean/guard_names.lean | 29c8c9b9a01f13e07a328569c7deba40b6040008 | [
"Apache-2.0"
] | permissive | TehMillhouse/lean | 68d6fdd2fb11a6c65bc28dec308d70f04dad38b4 | 6bbf2fbd8912617e5a973575bab8c383c9c268a1 | refs/heads/master | 1,620,830,893,339 | 1,515,592,479,000 | 1,515,592,997,000 | 116,964,828 | 0 | 0 | null | 1,515,592,734,000 | 1,515,592,734,000 | null | UTF-8 | Lean | false | false | 297 | lean | inductive tree (α : Type)
| leaf : tree
| node (left : tree) (val : α) (right : tree) : tree
constant foo {α : Type} : tree α → tree α
example {α : Type} (a b : tree α) : foo a = a :=
begin
with_cases { induction a },
{ sorry },
case : l v r ih_l ih_r { trace_state, sorry },
end
|
aa76bcbf46b247f2af658b8dbf922aedb3e3fcb7 | 4727251e0cd73359b15b664c3170e5d754078599 | /src/data/finsupp/fin.lean | e8ab345a5d6c90988b3119ce8c9184684ac96260 | [
"Apache-2.0"
] | permissive | Vierkantor/mathlib | 0ea59ac32a3a43c93c44d70f441c4ee810ccceca | 83bc3b9ce9b13910b57bda6b56222495ebd31c2f | refs/heads/master | 1,658,323,012,449 | 1,652,256,003,000 | 1,652,256,003,000 | 209,296,341 | 0 | 1 | Apache-2.0 | 1,568,807,655,000 | 1,568,807,655,000 | null | UTF-8 | Lean | false | false | 2,828 | lean | /-
Copyright (c) 2021 Ivan Sadofschi Costa. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Ivan Sadofschi Costa
-/
import data.fin.tuple
import data.finsupp.basic
/-!
# `cons` and `tail` for maps `fin n →₀ M`
We interpret maps `fin n →₀ M` as `n`-tuples of elements of... |
c81f94af2d94fcda294fa635f6401a72db4d5b4c | 626e312b5c1cb2d88fca108f5933076012633192 | /src/analysis/calculus/times_cont_diff.lean | 117676c10a0288069ccbc07f4d579c20c898506f | [
"Apache-2.0"
] | permissive | Bioye97/mathlib | 9db2f9ee54418d29dd06996279ba9dc874fd6beb | 782a20a27ee83b523f801ff34efb1a9557085019 | refs/heads/master | 1,690,305,956,488 | 1,631,067,774,000 | 1,631,067,774,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 142,338 | lean | /-
Copyright (c) 2019 Sébastien Gouëzel. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Sébastien Gouëzel
-/
import analysis.calculus.mean_value
import analysis.normed_space.multilinear
/-!
# Higher differentiability
A function is `C^1` on a domain if it is different... |
599a06e06a7fd9bd0894ddfcd878d3a53ff4b2bc | efa51dd2edbbbbd6c34bd0ce436415eb405832e7 | /20170116_POPL/profile/leanfmt_optimized1.lean | 2b8e3eb5d36a1e029c2d44f2e4728bf36f5332bd | [
"Apache-2.0"
] | permissive | leanprover/presentations | dd031a05bcb12c8855676c77e52ed84246bd889a | 3ce2d132d299409f1de269fa8e95afa1333d644e | refs/heads/master | 1,688,703,388,796 | 1,686,838,383,000 | 1,687,465,742,000 | 29,750,158 | 12 | 9 | Apache-2.0 | 1,540,211,670,000 | 1,422,042,683,000 | Lean | UTF-8 | Lean | false | false | 2,684 | lean | open tactic
-- set_option trace.compiler true
namespace fmt
meta def format.concat : list format -> format
| [] := format.nil
| (f :: fs) := f ++ format.concat fs
meta definition mk_local (n : name) (ty : expr) : expr :=
expr.local_const n n binder_info.default ty
meta def binder (n : format) (ty : format) : for... |
b9f9c40219ff1a8430657b976468537cbaf9a4dc | a4673261e60b025e2c8c825dfa4ab9108246c32e | /stage0/src/Lean/Environment.lean | 470bd977ca423116a8db3dfc2e162283859bd7ad | [
"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 | 28,593 | 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 Std.Data.HashMap
import Lean.Data.SMap
import Lean.Declaration
import Lean.LocalContext
import Lean.Util.Path
import Lean.Util.FindExpr
import Lean.U... |
ec65ef812ee8c7622a03ea9d12875144b42691b6 | d406927ab5617694ec9ea7001f101b7c9e3d9702 | /src/order/sup_indep.lean | 70c982f5ccad450165ce96287f20593663bd8962 | [
"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 | 14,363 | lean | /-
Copyright (c) 2021 Aaron Anderson, Yaël Dillies. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Aaron Anderson, Kevin Buzzard, Yaël Dillies, Eric Wieser
-/
import data.finset.pairwise
import data.finset.powerset
import data.fintype.basic
/-!
# Supremum independence... |
6a6f783bc7397738c264bba74587ed39d1b40444 | 9dc8cecdf3c4634764a18254e94d43da07142918 | /src/data/multiset/powerset.lean | 675cee9ba82be9a44387ece1ff08095bb93efeff | [
"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 | 10,631 | 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.multiset.basic
import data.multiset.range
import data.multiset.bind
/-!
# The powerset of a multiset
-/
namespace multiset
open list
variables {α : Type... |
e0954cf5d6f26c144279d495ea197056d0d02950 | c777c32c8e484e195053731103c5e52af26a25d1 | /src/probability/kernel/invariance.lean | 75ccfd8c63442e949bf628b55f9afde17842ff2d | [
"Apache-2.0"
] | permissive | kbuzzard/mathlib | 2ff9e85dfe2a46f4b291927f983afec17e946eb8 | 58537299e922f9c77df76cb613910914a479c1f7 | refs/heads/master | 1,685,313,702,744 | 1,683,974,212,000 | 1,683,974,212,000 | 128,185,277 | 1 | 0 | null | 1,522,920,600,000 | 1,522,920,600,000 | null | UTF-8 | Lean | false | false | 5,311 | lean | /-
Copyright (c) 2023 Kexing Ying. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Kexing Ying
-/
import probability.kernel.composition
/-!
# Invariance of measures along a kernel
We define the push-forward of a measure along a kernel which results in another measure.... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.