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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
df615f6493cef05ec8316c56c0143acdb2d76992 | d1a52c3f208fa42c41df8278c3d280f075eb020c | /src/Lean/Elab/Tactic/ElabTerm.lean | b1ee2c900d3bcefbbc4a1c9d52997913c5423fda | [
"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 | 12,548 | 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.CollectMVars
import Lean.Meta.Tactic.Apply
import Lean.Meta.Tactic.Constructor
import Lean.Meta.Tactic.Assert
import Lean.Elab.Tactic.Basic... |
b21f4e7d414984cec4da2f09c67407339ac7a49a | e7de183433d907275be4926240a8c8ddb5915131 | /recipes/literate_lean4.lean | d7305d0b00807b8d559285caaf552c31335f9fe2 | [
"MIT"
] | permissive | cpitclaudel/alectryon | 70b01086e9b4aee4f18017621578004903ce74d3 | 11e8cdc8395d66858baa7371b6cf8e827ca38f4a | refs/heads/master | 1,683,666,125,135 | 1,683,473,634,000 | 1,683,473,844,000 | 260,735,576 | 206 | 29 | MIT | 1,655,000,579,000 | 1,588,439,321,000 | HTML | UTF-8 | Lean | false | false | 1,625 | lean | /-!
==================================================
Literate programming with Alectryon (Lean4 input)
==================================================
Alectryon supports literate programs and documents (combinations of code and prose) written in Lean4 and reStructuredText. Here is an example written in Lean4. ... |
a863f8e504105f9db6b7ea2c497d800cc482387f | 8cae430f0a71442d02dbb1cbb14073b31048e4b0 | /src/category_theory/sites/limits.lean | 8fcf0570551903b53b083ec521996cfd159f4bb4 | [
"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,140 | lean | /-
Copyright (c) 2021 Adam Topaz. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Adam Topaz
-/
import category_theory.limits.creates
import category_theory.sites.sheafification
/-!
# Limits and colimits of sheaves
> THIS FILE IS SYNCHRONIZED WITH MATHLIB4.
> Any cha... |
b48111f25711802541475486bf0dc31a020ceba7 | d1bbf1801b3dcb214451d48214589f511061da63 | /src/field_theory/galois.lean | c79776fcd329ebd6faf35cfb8b60fa86c3b8bbd0 | [
"Apache-2.0"
] | permissive | cheraghchi/mathlib | 5c366f8c4f8e66973b60c37881889da8390cab86 | f29d1c3038422168fbbdb2526abf7c0ff13e86db | refs/heads/master | 1,676,577,831,283 | 1,610,894,638,000 | 1,610,894,638,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 18,409 | lean | /-
Copyright (c) 2020 Thomas Browning and Patrick Lutz. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Thomas Browning and Patrick Lutz
-/
import field_theory.normal
import field_theory.primitive_element
import field_theory.fixed
import ring_theory.power_basis
/-!
# ... |
ecbd9a4edca084648064dae43d6e2876fad1a66f | 31f556cdeb9239ffc2fad8f905e33987ff4feab9 | /src/Lean/Modifiers.lean | 710cc3d65efa46ee0afb0aeb57f805b3dd612e94 | [
"Apache-2.0",
"LLVM-exception",
"NCSA",
"LGPL-3.0-only",
"LicenseRef-scancode-inner-net-2.0",
"BSD-3-Clause",
"LGPL-2.0-or-later",
"Spencer-94",
"LGPL-2.1-or-later",
"HPND",
"LicenseRef-scancode-pcre",
"ISC",
"LGPL-2.1-only",
"LicenseRef-scancode-other-permissive",
"SunPro",
"CMU-Mach"... | permissive | tobiasgrosser/lean4 | ce0fd9cca0feba1100656679bf41f0bffdbabb71 | ebdbdc10436a4d9d6b66acf78aae7a23f5bd073f | refs/heads/master | 1,673,103,412,948 | 1,664,930,501,000 | 1,664,930,501,000 | 186,870,185 | 0 | 0 | Apache-2.0 | 1,665,129,237,000 | 1,557,939,901,000 | Lean | UTF-8 | Lean | false | false | 2,444 | 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
namespace Lean
builtin_initialize protectedExt : TagDeclarationExtension ← mkTagDeclarationExtension `protected
@[export lean_add... |
77cadfe673a51c017eff699aabfef59a7692ae6f | 80746c6dba6a866de5431094bf9f8f841b043d77 | /src/algebra/euclidean_domain.lean | 39acc4ee5dd2782673b72effc9a78369c85ca02b | [
"Apache-2.0"
] | permissive | leanprover-fork/mathlib-backup | 8b5c95c535b148fca858f7e8db75a76252e32987 | 0eb9db6a1a8a605f0cf9e33873d0450f9f0ae9b0 | refs/heads/master | 1,585,156,056,139 | 1,548,864,430,000 | 1,548,864,438,000 | 143,964,213 | 0 | 0 | Apache-2.0 | 1,550,795,966,000 | 1,533,705,322,000 | Lean | UTF-8 | Lean | false | false | 9,504 | lean | /-
Copyright (c) 2018 Louis Carlin. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Louis Carlin, Mario Carneiro
Euclidean domains and Euclidean algorithm (extended to come)
A lot is based on pre-existing code in mathlib for natural number gcds
-/
import data.int.basic... |
9f02d3af5e044ea6f7f37ac9a7f3e2b361da28a4 | 957a80ea22c5abb4f4670b250d55534d9db99108 | /tests/lean/coe5.lean | 050b751742cbf4856fa2cefedd880161683ec92f | [
"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 | 315 | lean | open tactic
attribute [instance]
meta def expr_to_app : has_coe_to_fun expr :=
{ F := λ e, expr → expr,
coe := expr.app }
meta constants f a b : expr
#check f a
#check f a b
#check f a b a
set_option pp.coercions false
#check f a b a
set_option pp.all true
set_option pp.coercions true
#check f a b
|
ede8b3ac1114f1c2f454c8c154bc7790d3ebf3c5 | 35677d2df3f081738fa6b08138e03ee36bc33cad | /src/data/nat/sqrt.lean | efa81ca1e8bac375fe33e451e30a44b927a2d503 | [
"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 | 6,987 | 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, Johannes Hölzl, Mario Carneiro
An efficient binary implementation of a (sqrt n) function that
returns s s.t.
s*s ≤ n ≤ s*s + s + s
-/
import data.nat.bas... |
c588a27e536e0b68f0da2fd1b0442afb8c26382c | 3dc4623269159d02a444fe898d33e8c7e7e9461b | /.github/workflows/group_objet.lean | bc865fff51c6c034da027e15db61a41cfed45527 | [] | no_license | Or7ando/lean | cc003e6c41048eae7c34aa6bada51c9e9add9e66 | d41169cf4e416a0d42092fb6bdc14131cee9dd15 | refs/heads/master | 1,650,600,589,722 | 1,587,262,906,000 | 1,587,262,906,000 | 255,387,160 | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 6,439 | lean | import to_product
import sugar_yoneda
import category_theory.limits.limits
import category_theory.limits.shapes
universes v u
open Product_stuff
open Yoneda
open category_theory
open category_theory.limits
open category_theory.category
/-
The goal is define group obj in a category.
reference : Douady : Al... |
9fdc865c9b168a00df8829ffce911f08e9027125 | 6432ea7a083ff6ba21ea17af9ee47b9c371760f7 | /tests/elabissues/let_destruct_inside_forall.lean | be5eb30665d36f1a5b065c9c4b312719604fafd4 | [
"Apache-2.0",
"LLVM-exception",
"NCSA",
"LGPL-3.0-only",
"LicenseRef-scancode-inner-net-2.0",
"BSD-3-Clause",
"LGPL-2.0-or-later",
"Spencer-94",
"LGPL-2.1-or-later",
"HPND",
"LicenseRef-scancode-pcre",
"ISC",
"LGPL-2.1-only",
"LicenseRef-scancode-other-permissive",
"SunPro",
"CMU-Mach"... | permissive | leanprover/lean4 | 4bdf9790294964627eb9be79f5e8f6157780b4cc | f1f9dc0f2f531af3312398999d8b8303fa5f096b | refs/heads/master | 1,693,360,665,786 | 1,693,350,868,000 | 1,693,350,868,000 | 129,571,436 | 2,827 | 311 | Apache-2.0 | 1,694,716,156,000 | 1,523,760,560,000 | Lean | UTF-8 | Lean | false | false | 1,253 | lean | axiom Foo : Type
axiom foo : Foo
/- This works -/
def works : Prop :=
-- ∀ (x : Foo),
let ⟨foo₁, foo₂⟩ := (foo, foo);
false
/-
The following tests fail because the elaborator fails to propagate the expected type. The main issue is that the elaborator is missing the following case:
If the expected type is `Prop` for ... |
9eed641ddedff037a076a6ed9721b93564c27426 | a0e23cfdd129a671bf3154ee1a8a3a72bf4c7940 | /src/Init/Notation.lean | 70b7f00db7ec682f48f30d9eb92ceee8c9e0e9da | [
"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 | 18,660 | 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
Notation for operators defined at Prelude.lean
-/
prelude
import Init.Prelude
-- DSL for specifying parser precedences and priorities
namespace Lean.Parser.... |
ae8c1726dd047a779f685857c47f3c2a911e430f | bbecf0f1968d1fba4124103e4f6b55251d08e9c4 | /src/order/galois_connection.lean | a2f681c6cac2872243ac0c9c2847163ea471dc31 | [
"Apache-2.0"
] | permissive | waynemunro/mathlib | e3fd4ff49f4cb43d4a8ded59d17be407bc5ee552 | 065a70810b5480d584033f7bbf8e0409480c2118 | refs/heads/master | 1,693,417,182,397 | 1,634,644,781,000 | 1,634,644,781,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 24,585 | lean | /-
Copyright (c) 2017 Johannes Hölzl. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Johannes Hölzl
-/
import order.complete_lattice
import order.order_dual
/-!
# Galois connections, insertions and coinsertions
Galois connections are order theoretic adjoints, i.e. a p... |
bbece5f887b1eced3c954c7f21df5afc89c5587a | 5ee26964f602030578ef0159d46145dd2e357ba5 | /src/Spa.lean | d7a5188fb251ec19e8a2e8c78b019d0a2ef836f7 | [
"Apache-2.0"
] | permissive | fpvandoorn/lean-perfectoid-spaces | 569b4006fdfe491ca8b58dd817bb56138ada761f | 06cec51438b168837fc6e9268945735037fd1db6 | refs/heads/master | 1,590,154,571,918 | 1,557,685,392,000 | 1,557,685,392,000 | 186,363,547 | 0 | 0 | Apache-2.0 | 1,557,730,933,000 | 1,557,730,933,000 | null | UTF-8 | Lean | false | false | 29,134 | lean | import ring_theory.localization
import ring_theory.subring
import continuous_valuations
import Huber_pair
import Huber_ring.localization
import for_mathlib.nonarchimedean.basic
import for_mathlib.uniform_space.ring -- need completions of rings plus UMP
import for_mathlib.group -- some stupid lemma about units
import f... |
3125d6001d9913e3c9b278be3b9578aebaca5d0f | 8034095e1be60c0b8f6559c39220bd537d1f9933 | /lambda/unicode.lean | 2e36eab4499061b6920b3b6fcd8aa9bfb08e8fa8 | [] | no_license | teodorov/lambda | 40c573e2dd268824641702d9f94cf61e019ae6c5 | 4dc4d595dd0ee20c59913ef0171fd33eb0d637a1 | refs/heads/master | 1,585,318,070,303 | 1,530,364,515,000 | 1,530,364,515,000 | 146,645,753 | 1 | 0 | null | 1,535,569,435,000 | 1,535,569,434,000 | null | UTF-8 | Lean | false | false | 1,651 | lean | import data.buffer system.io
import data.bitvec
namespace unicode
private def utf_8_convert_bitvec : list (bitvec 8) → option (list char)
-- 0xxxxxxx -- symbols from 0 to 7Fh
| (⟨ff :: tl₁, _⟩ :: chars) :=
list.cons (char.of_nat (bitvec.bits_to_nat tl₁)) <$> utf_8_convert_bitvec chars
-- 110xxxxx 10xxxxxx -- symbol... |
a1c620ea75ab82779f34c6ce8b5599c10bb6e4a8 | 69d4931b605e11ca61881fc4f66db50a0a875e39 | /src/data/multiset/range.lean | 65dfa8ef19bc8d21803a83904b5e096445a40cb6 | [
"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 | 1,018 | lean | /-
Copyright (c) 2015 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Mario Carneiro
-/
import data.multiset.basic
import data.list.range
open list nat
namespace multiset
/- range -/
/-- `range n` is the multiset lifted from the list `range n`... |
2abfcdf68f6a95ba737939ef2007b66264ff2a54 | fa02ed5a3c9c0adee3c26887a16855e7841c668b | /src/category_theory/subobject/default.lean | ac3af1749199b89f0999ec2b2a0c42fc2d25ba16 | [
"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 | 214 | lean | import category_theory.subobject.mono_over
import category_theory.subobject.basic
import category_theory.subobject.factor_thru
import category_theory.subobject.well_powered
import category_theory.subobject.lattice
|
3b13dccd0cc977a570d05208ee4f10354749b6c7 | 67190c9aacc0cac64fb4463d93e84c696a5be896 | /Lists of exercises/List 2/capitulo-04-LucasDomingues.lean | 3ca2d729fc128670892ab03b9ffd68273b1fa524 | [] | no_license | lucasresck/Discrete-Mathematics | ffbaf55943e7ce2c7bc50cef7e3ef66a0212f738 | 0a08081c5f393e5765259d3f1253c3a6dd043dac | refs/heads/master | 1,596,627,857,734 | 1,573,411,500,000 | 1,573,411,500,000 | 212,489,764 | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 1,374 | lean | variables A B C D : Prop
example : A ∧ (A → B) → B :=
assume h : A ∧ (A → B),
show B, from (and.right h) (and.left h)
example : A → ¬ (¬ A ∧ B) :=
assume h1 : A,
show ¬ (¬ A ∧ B), from
assume h2 : ¬ A ∧ B,
have h3 : ¬ A, from and.left h2,
show false, from h3 h1
example : ¬ (A ... |
8b2920149521dc19343eaab10cf08cbd242e2cf6 | 08a8ee10652ba4f8592710ceb654b37e951d9082 | /src/hott/types/pointed.lean | 209be453f04007fc0a69b54cb1cb04a39f20ba91 | [
"Apache-2.0"
] | permissive | felixwellen/hott3 | e9f299c84d30a782a741c40d38741ec024d391fb | 8ac87a2699ab94c23ea7984b4a5fbd5a7052575c | refs/heads/master | 1,619,972,899,098 | 1,509,047,351,000 | 1,518,040,986,000 | 120,676,559 | 0 | 0 | null | 1,518,040,503,000 | 1,518,040,503,000 | null | UTF-8 | Lean | false | false | 48,833 | lean | /-
Copyright (c) 2014-2016 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
Early library ported from Coq HoTT, but greatly extended since.
The basic definitions are in init.pointed
See also .pointed2
-/
/-.nat.basic... |
e228ff6c49a11afe818b8eb6e48c8190f4538466 | 74addaa0e41490cbaf2abd313a764c96df57b05d | /Mathlib/data/real/sqrt.lean | 5f8c27269e8f33a2876e516e71394669a29b0395 | [] | 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 | 9,739 | lean | /-
Copyright (c) 2020 Mario Carneiro. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Mario Carneiro, Floris van Doorn, Yury Kudryashov
-/
import Mathlib.PrePort
import Mathlib.Lean3Lib.init.default
import Mathlib.topology.instances.nnreal
import Mathlib.PostPort
unive... |
52e6c204eb4f8cb87f64810c51b13dea7a6f83ef | 302c785c90d40ad3d6be43d33bc6a558354cc2cf | /src/order/compactly_generated.lean | 971a27ca7b9ed5e062ab1471f04dd05ae7763551 | [
"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 | 20,344 | lean | /-
Copyright (c) 2021 Oliver Nash. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Oliver Nash
-/
import data.set.finite
import data.finset.order
import order.well_founded
import order.order_iso_nat
import order.atoms
import order.zorn
import tactic.tfae
/-!
# Compactn... |
f126ca3c87f942c0c298fecbff1aa2ba73bca958 | 1f6fe2f89976b14a4567ab298c35792b21f2e50b | /spectrum/basic.hlean | 851c89d458583abfa591c3a9e2b15446a2ec8e89 | [
"Apache-2.0"
] | permissive | jonas-frey/Spectral | e5c1c2f7bcac26aa55f7b1e041a81272a146198d | 72d521091525a4bc9a31cac859840efe9461cf66 | refs/heads/master | 1,610,235,743,345 | 1,505,417,795,000 | 1,505,417,795,000 | 102,653,342 | 0 | 0 | null | 1,504,728,483,000 | 1,504,728,483,000 | null | UTF-8 | Lean | false | false | 37,532 | hlean | /-
Copyright (c) 2016 Michael Shulman. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Michael Shulman, Floris van Doorn, Egbert Rijke, Stefano Piceghello, Yuri Sulyma
-/
import homotopy.LES_of_homotopy_groups ..algebra.splice ..algebra.seq_colim ..homotopy.EM ..homot... |
c8eddc6c25f2f4b285c081b28eecea88eae1cd11 | d450724ba99f5b50b57d244eb41fef9f6789db81 | /src/mywork/sep_3_2021.lean | 5259c14497cffcfe6d13085ddef5d37e4837e7d2 | [] | 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 | 1,279 | lean | /-
Theorem: Equality is symmetric
-/
theorem eq_symm :
∀ (T : Type)(x y : T), x = y → y = x :=
begin
assume (T : Type),
assume (x y : T),
assume (e : x = y),
rw e,
end
/-
Theorem : Equality is symmetric. In other words,
∀ (T : Type)(x y : T), x = y → y = x
Proof: First we'll assume that T is ... |
f6917e8f6381f35832c7fc32aac8e99650905b39 | 137c667471a40116a7afd7261f030b30180468c2 | /src/analysis/normed_space/int.lean | ba5180ad9e1d9b5e95234ee8d014d3724bc183d6 | [
"Apache-2.0"
] | permissive | bragadeesh153/mathlib | 46bf814cfb1eecb34b5d1549b9117dc60f657792 | b577bb2cd1f96eb47031878256856020b76f73cd | refs/heads/master | 1,687,435,188,334 | 1,626,384,207,000 | 1,626,384,207,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 1,531 | lean | /-
Copyright (c) 2021 Johan Commelin. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Johan Commelin
-/
import analysis.normed_space.basic
/-!
# The integers as normed ring
This file contains basic facts about the integers as normed ring.
Recall that `∥n∥` denotes t... |
5b17dafc1c12ab6906e2bb3ce8b8db1b1a6d6488 | 9be442d9ec2fcf442516ed6e9e1660aa9071b7bd | /stage0/src/Lean/Compiler/IR/ElimDeadBranches.lean | d85163927ca7e78ae3a0bf04a76a1fbc38d8dfa3 | [
"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 | 11,573 | 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.Compiler.IR.Format
import Lean.Compiler.IR.Basic
import Lean.Compiler.IR.CompilerM
namespace Lean.IR.UnreachableBranches
/-- Value used in the... |
61868724dbfc7b48aa22b0f41990f4c5f6671cbb | d406927ab5617694ec9ea7001f101b7c9e3d9702 | /src/category_theory/noetherian.lean | 629df87cea753723b55af12aa53f6dfe932d5349 | [
"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 | 3,097 | 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 category_theory.subobject.lattice
import category_theory.essentially_small
import category_theory.simple
/-!
# Artinian and noetherian categories
An artinian... |
a9594a712f592311ab3f3861a558b489bfce70ee | 1abd1ed12aa68b375cdef28959f39531c6e95b84 | /src/group_theory/monoid_localization.lean | 938f86fa92efb212b90a4257b8ab4bdee2744c0c | [
"Apache-2.0"
] | permissive | jumpy4/mathlib | d3829e75173012833e9f15ac16e481e17596de0f | af36f1a35f279f0e5b3c2a77647c6bf2cfd51a13 | refs/heads/master | 1,693,508,842,818 | 1,636,203,271,000 | 1,636,203,271,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 60,953 | 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.congruence
import group_theory.submonoid
import algebra.group.units
import algebra.punit_instances
/-!
# Localizations of commutative monoi... |
676f54ab868be466ed671555fe77191dedba46a8 | 491068d2ad28831e7dade8d6dff871c3e49d9431 | /tests/lean/run/export2.lean | d81d5f0ed82bbb3a778f63f48ffb0f443494316c | [
"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 | 150 | lean | open nat
definition foo := 30
namespace foo
definition x : nat := 10
definition y : nat := 20
end foo
export foo
example : x + y = foo := rfl
|
ead9972f81402ad9cfc18a48074cf66c4439cbc7 | 9dc8cecdf3c4634764a18254e94d43da07142918 | /src/ring_theory/adjoin/power_basis.lean | a2b132111e4d0141eee5eb2b4b7534dcf6a9342b | [
"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 | 8,012 | 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 ring_theory.adjoin.basic
import ring_theory.power_basis
import linear_algebra.matrix.basis
/-!
# Power basis for `algebra.adjoin R {x}`
This file defines the cano... |
19e4805c5286a6d6cbc74824da816e84e224c0d0 | 8d65764a9e5f0923a67fc435eb1a5a1d02fd80e3 | /src/logic/embedding.lean | 0aa6294d9f742228119b6033c1c4b569f95f71f0 | [
"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 | 15,474 | 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.equiv.basic
import data.sigma.basic
/-!
# Injective functions
-/
universes u v w x
namespace function
/-- `α ↪ β` is a bundled injecti... |
ca3c3826edc77a99e4211fa321630b305a154e66 | 64874bd1010548c7f5a6e3e8902efa63baaff785 | /library/data/int/basic.lean | 1ed9d592813caa9954ecbbe6df4441d57bff8c89 | [
"Apache-2.0"
] | permissive | tjiaqi/lean | 4634d729795c164664d10d093f3545287c76628f | d0ce4cf62f4246b0600c07e074d86e51f2195e30 | refs/heads/master | 1,622,323,796,480 | 1,422,643,069,000 | 1,422,643,069,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 33,211 | lean | /-
Copyright (c) 2014 Floris van Doorn. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Module: int.basic
Authors: Floris van Doorn, Jeremy Avigad
The integers, with addition, multiplication, and subtraction. The representation of the integers is
chosen to compute efficiently.... |
309dd765a5d1fb66662167678cf5c7f69930a25e | 4727251e0cd73359b15b664c3170e5d754078599 | /src/tactic/subtype_instance.lean | e8209db65bb7764153f47e9fdaaeb572900fbe92 | [
"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,438 | lean | /-
Copyright (c) 2018 Simon Hudon. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Simon Hudon
Provides a `subtype_instance` tactic which builds instances for algebraic substructures
(sub-groups, sub-rings...).
-/
import tactic.basic
open tactic expr name list
namespa... |
b397b2e19b7c93a7f8ddea71aecbcb54bc434bd5 | 75bd9c50a345718d735a7533c007cf45f9da9a83 | /src/ring_theory/discrete_valuation_ring.lean | a3e9418d3c24f72bb866a53ecf8d846a64abeb19 | [
"Apache-2.0"
] | permissive | jtbarker/mathlib | a1a3b1ddc16179826260578410746756ef18032c | 392d3e376b44265ef2dedbd92231d3177acc1fd0 | refs/heads/master | 1,671,246,411,096 | 1,600,801,712,000 | 1,600,801,712,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 13,146 | lean | /-
Copyright (c) 2020 Kevin Buzzard. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Kevin Buzzard
-/
import ring_theory.principal_ideal_domain order.conditionally_complete_lattice
import ring_theory.multiplicity
import ring_theory.valuation.basic
import tactic
/-!
# ... |
b2e7fb56166cb2487cd36e45410c990d0a6d2c95 | fa02ed5a3c9c0adee3c26887a16855e7841c668b | /src/algebra/category/Group/images.lean | ab486f0bf88af08226c40b354a317211f91e3211 | [
"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 | 3,303 | lean | /-
Copyright (c) 2020 Scott Morrison. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Scott Morrison
-/
import algebra.category.Group.abelian
import category_theory.limits.shapes.images
import category_theory.limits.types
/-!
# The category of commutative additive grou... |
e5c224c86202568301c37326c0607335785d190c | 2eab05920d6eeb06665e1a6df77b3157354316ad | /src/measure_theory/measure/finite_measure_weak_convergence.lean | c9179fdea0356a1688ab425e0cbddda01cb6e20d | [
"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 | 8,334 | lean | /-
Copyright (c) 2021 Kalle Kytölä. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Kalle Kytölä
-/
import measure_theory.measure.measure_space
/-!
# Weak convergence of (finite) measures
This file will define the topology of weak convergence of finite measures and pr... |
29bbc42fa41c82c7b5bc0944067be9441427b9cd | fa02ed5a3c9c0adee3c26887a16855e7841c668b | /src/linear_algebra/trace.lean | 8872d7e83904428ca67e468754f508081ede7f0f | [
"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 | 3,499 | 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, Patrick Massot, Casper Putz, Anne Baanen
-/
import linear_algebra.matrix.to_lin
import linear_algebra.matrix.trace
/-!
# Trace of a matrix
This file defines the trac... |
a562cd2f230052aa4b442f8e159cd85cb879f072 | a9d0fb7b0e4f802bd3857b803e6c5c23d87fef91 | /library/data/int/gcd.lean | 32cd10376299a6933e674ff72694633bff74ec1d | [
"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 | 14,561 | 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
Definitions and properties of gcd, lcm, and coprime.
-/
import .div data.nat.gcd
open eq.ops
namespace int
/- gcd -/
definition gcd (a b : ℤ) : ℤ :=... |
d376d7e03253ee0e26c614062da9dd0ebe5508f3 | f5f7e6fae601a5fe3cac7cc3ed353ed781d62419 | /src/data/set/basic.lean | a6db4fd9e3851b32519bea44d19f97912de21e96 | [
"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 | 49,132 | lean | /-
Copyright (c) 2014 Jeremy Avigad. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Author: Jeremy Avigad, Leonardo de Moura
-/
import tactic.ext tactic.finish data.subtype tactic.interactive
open function
/- set coercion to a type -/
namespace set
instance {α : Type*} : has_... |
ea69a083c3df00d055048f4e0ec68496b5bbde70 | 7cdf3413c097e5d36492d12cdd07030eb991d394 | /src/game/world6/level5.lean | 2fbf8f1f750b703a769115e413aee4913b4230dc | [] | no_license | alreadydone/natural_number_game | 3135b9385a9f43e74cfbf79513fc37e69b99e0b3 | 1a39e693df4f4e871eb449890d3c7715a25c2ec9 | refs/heads/master | 1,599,387,390,105 | 1,573,200,587,000 | 1,573,200,691,000 | 220,397,084 | 0 | 0 | null | 1,573,192,734,000 | 1,573,192,733,000 | null | UTF-8 | Lean | false | false | 2,336 | lean | /-
# Proposition world.
## Level 5 : `P → (Q → P)`.
In this level, our goal is to construct an implication, like in level 2.
```
⊢ P → (Q → P)
```
So $P$ and $Q$ are propositions, and our goal is to prove
that $P\implies(Q\implies P)$.
We don't know whether $P$, $Q$ are true or false, so initially
this seems like ... |
914fa26e40e4bc090029315bbb74b31c24c00dc3 | 2bafba05c98c1107866b39609d15e849a4ca2bb8 | /src/week_7/Part_C_back_to_Z.lean | f0b659bbfd6da186a820d5f4babacdf3d6cd7679 | [
"Apache-2.0"
] | permissive | ImperialCollegeLondon/formalising-mathematics | b54c83c94b5c315024ff09997fcd6b303892a749 | 7cf1d51c27e2038d2804561d63c74711924044a1 | refs/heads/master | 1,651,267,046,302 | 1,638,888,459,000 | 1,638,888,459,000 | 331,592,375 | 284 | 24 | Apache-2.0 | 1,669,593,705,000 | 1,611,224,849,000 | Lean | UTF-8 | Lean | false | false | 1,167 | lean | import week_7.Part_A_quotients
import week_7.Part_B_universal_property
/-
# `Z ≃ ℤ`
Let's use the previous parts to show that Z and ℤ are isomorphic.
-/
-- Let's define pℤ to be the usual subtraction function ℕ² → ℤ
def pℤ (ab : N2) : ℤ := (ab.1 : ℤ) - ab.2
@[simp] lemma pℤ_def (a b : ℕ) : pℤ (a, b) = (a : ℤ) - ... |
a0bfe3f250e6d506fda1979aa156278d5d37b9e4 | 9cba98daa30c0804090f963f9024147a50292fa0 | /demo/demo.lean | 41752bc3a2fc42f35a498b3ccd46b9af40837dc2 | [] | 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 | 1,323 | lean | import data.real.basic
import ..phys
/-
On standard_space impose a temporal coordinate system with t=0 at launch time and the unit of time is one second.
-/
def launch_time /-: time (time_std_space ℚ)-/ := mk_time (time_std_space ℚ) 0
def one_second /-: duration (time_std_space ℚ)-/ := mk_duration (time_... |
8ac4aa5c0954f20e04d4ebf55e227b9a49f6142c | 74addaa0e41490cbaf2abd313a764c96df57b05d | /Mathlib/tactic/omega/eq_elim_auto.lean | 40f46a0fb93c0e9ce76112ffb3560785944b7f27 | [] | 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,026 | lean | /-
Copyright (c) 2019 Seul Baek. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Author: Seul Baek
-/
import Mathlib.PrePort
import Mathlib.Lean3Lib.init.default
import Mathlib.tactic.omega.clause
import Mathlib.PostPort
universes l
namespace Mathlib
/-
Correctness lemmas fo... |
74418732fb9e16fe7a2cee66d8ccd44ded0d1d68 | cf39355caa609c0f33405126beee2739aa3cb77e | /tests/lean/run/eq11.lean | 185db76bc99b8d428b168902058e637fe9899bbc | [
"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 | 841 | lean | inductive day
| monday | tuesday | wednesday | thursday | friday | saturday | sunday
open day
definition next_weekday : day → day
| monday := tuesday
| tuesday := wednesday
| wednesday := thursday
| thursday := friday
| _ := monday
theorem next_weekday_monday : next_weekday monday = tuesday := ... |
4a42ab363052ff4406ab3d50fc6d2e06e0457b25 | 592ee40978ac7604005a4e0d35bbc4b467389241 | /Library/generated/mathscheme-lean/RightInverse.lean | f0107cf28b9abaf9257e1da71058f7baef553e98 | [] | no_license | ysharoda/Deriving-Definitions | 3e149e6641fae440badd35ac110a0bd705a49ad2 | dfecb27572022de3d4aa702cae8db19957523a59 | refs/heads/master | 1,679,127,857,700 | 1,615,939,007,000 | 1,615,939,007,000 | 229,785,731 | 4 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 8,833 | lean | import init.data.nat.basic
import init.data.fin.basic
import data.vector
import .Prelude
open Staged
open nat
open fin
open vector
section RightInverse
structure RightInverse (A : Type) : Type :=
(inv : (A → A))
(e : A)
(op : (A → (A → A)))
(rightInverse_inv_op_e : (∀ {x : A} , (op (i... |
fa46cdce3c7163894a0356bf925a7a27bbe04227 | a721fe7446524f18ba361625fc01033d9c8b7a78 | /src/principia/real/completeness.lean | 5d0dc9ba8188ddbed824c179a098c8c51cd9f337 | [] | no_license | Sterrs/leaning | 8fd80d1f0a6117a220bb2e57ece639b9a63deadc | 3901cc953694b33adda86cb88ca30ba99594db31 | refs/heads/master | 1,627,023,822,744 | 1,616,515,221,000 | 1,616,515,221,000 | 245,512,190 | 2 | 0 | null | 1,616,429,050,000 | 1,583,527,118,000 | Lean | UTF-8 | Lean | false | false | 884 | lean | import .le
import ..myset.basic
namespace hidden
def is_upper_bound (S : myset real) (a : real) :=
∀ x : real, x ∈ S → x ≤ a
def is_least (S : myset real) (a : real) :=
a ∈ S ∧ ∀ x : real, x ∈ S → a ≤ x
def upper_bounds (S : myset real) : myset real :=
λ x, is_upper_bound S x
def is_least_upper_bound (S : myset re... |
b3d1138c4b43bfdbcdbfc5ecc0a5276e6330d45f | 8cae430f0a71442d02dbb1cbb14073b31048e4b0 | /src/number_theory/modular_forms/congruence_subgroups.lean | aa1a2c3e4ba21f6b9dbf4d0040d437953abbc614 | [
"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,084 | lean | /-
Copyright (c) 2022 Chris Birkbeck. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Chris Birkbeck
-/
import data.zmod.basic
import group_theory.group_action.conj_act
import group_theory.subgroup.pointwise
import linear_algebra.matrix.special_linear_group
/-!
# Congru... |
22378960bb5dd4d1d53a967f678a43594fcc6b76 | bdb33f8b7ea65f7705fc342a178508e2722eb851 | /data/hash_map.lean | de00d46e5f3860c29e332f9b4fcb32edc8adcbe9 | [
"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 | 27,772 | lean | /-
Copyright (c) 2017 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Leonardo de Moura, Mario Carneiro
-/
import data.list.basic data.pnat data.array.lemmas
universes u v w
/-- `bucket_array α β` is the underlying data type for `hash_map α β`,
... |
9447a4166f3174cea4d58ce591ccaeb6800347dc | bbecf0f1968d1fba4124103e4f6b55251d08e9c4 | /src/data/nat/bitwise.lean | e16ac1883cf3837360e993d71acdd7ab52264eda | [
"Apache-2.0"
] | permissive | waynemunro/mathlib | e3fd4ff49f4cb43d4a8ded59d17be407bc5ee552 | 065a70810b5480d584033f7bbf8e0409480c2118 | refs/heads/master | 1,693,417,182,397 | 1,634,644,781,000 | 1,634,644,781,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 8,551 | 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 tactic.linarith
/-!
# Bitwise operations on natural numbers
In the first half of this file, we provide theorems for reasoning about natural numbers from their
... |
551dffb3536d0890ee3797e5df54788d4941bcc7 | 74addaa0e41490cbaf2abd313a764c96df57b05d | /Mathlib/number_theory/primorial_auto.lean | 5450e6ff6650518636a78253e54f742d1d8a93be | [] | 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,464 | lean | /-
Copyright (c) 2020 Patrick Stevens. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Patrick Stevens
-/
import Mathlib.PrePort
import Mathlib.Lean3Lib.init.default
import Mathlib.tactic.ring_exp
import Mathlib.data.nat.parity
import Mathlib.data.nat.choose.sum
import ... |
e432fe5f642ee8563a88be69adc876cc1ca5c761 | de91c42b87530c3bdcc2b138ef1a3c3d9bee0d41 | /old/expressions/classical_time.lean | 05f579f0d909f3b1094c46444367583aa249ece5 | [] | 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 | 3,441 | lean | import ...phys.src.classical_time
import .expression
namespace lang.classicalTime
structure spaceVar extends var
def myvar : spaceVar := ⟨⟨2⟩⟩
def p : spaceVar := ⟨⟨1⟩⟩
inductive spaceExpr
| lit (v : classicalTime)
| var (v : spaceVar)
abbreviation spaceEnv := spaceVar → classicalTime
abbreviation spaceEval := sp... |
f0e77e948034c4222eaa6747c3e06c4212c8981f | 947fa6c38e48771ae886239b4edce6db6e18d0fb | /src/linear_algebra/matrix/basis.lean | 195d49b6c7cc61cbe1e242189a2e2d088bb62150 | [
"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 | 9,535 | 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, Patrick Massot, Casper Putz, Anne Baanen
-/
import linear_algebra.matrix.reindex
import linear_algebra.matrix.to_lin
/-!
# Bases and matrices
This file defines the ma... |
45367cadd55b25cfa2ae569757a64d8f1f817113 | 4727251e0cd73359b15b664c3170e5d754078599 | /src/number_theory/prime_counting.lean | 1054b077f7add7f163eeacce5cffbab97fddedd7 | [
"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,359 | lean | /-
Copyright (c) 2021 Bolton Bailey. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Bolton Bailey
-/
import data.nat.prime
import data.nat.totient
import algebra.periodic
import data.finset.locally_finite
import data.nat.count
import data.nat.nth
/-!
# The Prime Coun... |
d149bcd991f5211c7763242da57e35ed5700369f | b7f22e51856f4989b970961f794f1c435f9b8f78 | /library/data/nat/bigops.lean | 2aa1ab72e8fd912cc42bea742a5a7a26a88ffac0 | [
"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 | 7,384 | lean | /-
Copyright (c) 2015 Jeremy Avigad. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Author: Jeremy Avigad
Finite sums and products over intervals of natural numbers.
-/
import data.nat.order algebra.group_bigops algebra.interval
namespace nat
/- sums -/
section add_monoid
... |
8536bb1dfd520ebd06ef892be392306feba817a2 | d406927ab5617694ec9ea7001f101b7c9e3d9702 | /src/topology/instances/int.lean | dfadfde9aebd3a216df1f307e28057776c93027f | [
"Apache-2.0"
] | permissive | alreadydone/mathlib | dc0be621c6c8208c581f5170a8216c5ba6721927 | c982179ec21091d3e102d8a5d9f5fe06c8fafb73 | refs/heads/master | 1,685,523,275,196 | 1,670,184,141,000 | 1,670,184,141,000 | 287,574,545 | 0 | 0 | Apache-2.0 | 1,670,290,714,000 | 1,597,421,623,000 | Lean | UTF-8 | Lean | false | false | 2,288 | 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.int.interval
import topology.metric_space.basic
import order.filter.archimedean
/-!
# Topology on the integers
The structure of a metric ... |
750f58a2c7b9cdc8efa06728745df883bee54b97 | 9dc8cecdf3c4634764a18254e94d43da07142918 | /src/probability/conditional_expectation.lean | b0d2ad785791960754fa1cbadde7fbdaadf7f5fe | [
"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 | 3,410 | lean | /-
Copyright (c) 2022 Kexing Ying. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Kexing Ying
-/
import probability.notation
import probability.independence
/-!
# Probabilistic properties of the conditional expectation
This file contains some properties about the co... |
cc0e5e2d52fb86cc8d8496874a5b484dea4cd1ff | 94e33a31faa76775069b071adea97e86e218a8ee | /src/algebra/order/monoid_lemmas_zero_lt.lean | 3b2b2a4fe31be1b8d89cc1a3f389d244ce773b20 | [
"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 | 41,521 | lean | /-
Copyright (c) 2022 Damiano Testa. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Damiano Testa, Yuyang Zhao
-/
import algebra.covariant_and_contravariant
import algebra.group_with_zero.defs
/-!
# Multiplication by ·positive· elements is monotonic
Let `α` be a type... |
a2cbfd23fc7c0c5c24bef4a1c340579c0436d638 | 3446e92e64a5de7ed1f2109cfb024f83cd904c34 | /src/game/world5/level1.lean | 84dcbcd705ba294f2d7257d4e3c0ab03fdc9586b | [] | no_license | kckennylau/natural_number_game | 019f4a5f419c9681e65234ecd124c564f9a0a246 | ad8c0adaa725975be8a9f978c8494a39311029be | refs/heads/master | 1,598,784,137,722 | 1,571,905,156,000 | 1,571,905,156,000 | 218,354,686 | 0 | 0 | null | 1,572,373,319,000 | 1,572,373,318,000 | null | UTF-8 | Lean | false | false | 2,924 | lean | import game.world4.level7 -- hide
import mynat.le
namespace mynat -- hide
/- A new level, a new import. You can take a look at the actual Leo `an files
being imported by going to the source code for this game,
which is available at
<a href="https://github.com/ImperialCollegeLondon/natural_number_game" target="blank">
... |
ab8baa3824b4425016263b39809ac17bbaadeae1 | 624f6f2ae8b3b1adc5f8f67a365c51d5126be45a | /src/Init/Lean/Compiler/ClosedTermCache.lean | 36d18f3517133c352878b97aa5d92a84c7134ca7 | [
"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,110 | lean | /-
Copyright (c) 2019 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Leonardo de Moura
-/
prelude
import Init.Lean.Environment
namespace Lean
abbrev ClosedTermCache := SMap Expr Name
def mkClosedTermCacheExtension : IO (SimplePersistentEnvExte... |
21cde42471c8861380dd211d451d14004869eca3 | abd85493667895c57a7507870867b28124b3998f | /src/analysis/normed_space/real_inner_product.lean | 9a6093ef02f863966e49083cac2a6dcd146f1c37 | [
"Apache-2.0"
] | permissive | pechersky/mathlib | d56eef16bddb0bfc8bc552b05b7270aff5944393 | f1df14c2214ee114c9738e733efd5de174deb95d | refs/heads/master | 1,666,714,392,571 | 1,591,747,567,000 | 1,591,747,567,000 | 270,557,274 | 0 | 0 | Apache-2.0 | 1,591,597,975,000 | 1,591,597,974,000 | null | UTF-8 | Lean | false | false | 33,441 | lean | /-
Copyright (c) 2019 Zhouhang Zhou. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Zhouhang Zhou
-/
import algebra.quadratic_discriminant
import analysis.special_functions.pow
import tactic.apply_fun
import tactic.monotonicity
/-!
# Inner Product Space
This file de... |
d0ad26d32b2cff4588f2dc29881555d4df65e7e2 | b7f22e51856f4989b970961f794f1c435f9b8f78 | /tests/lean/run/constr_tac.lean | 1c94e9dd0884d3eccf603e9afdc89a3d72a86d02 | [
"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 | 854 | lean | import data.list
example (a b c : Prop) : a → b → c → a ∧ b ∧ c :=
begin
intro Ha Hb Hc,
split,
assumption,
split,
repeat assumption
end
example (a b c : Type) : a → b → c → a × b × c :=
begin
intro Ha Hb Hc,
repeat (split | assumption)
end
example (a b : Type) : a → sum a b :=
begin
intro Ha,
left... |
100a8f05ab664e390e8e6872c4e7a58e72c0cfb3 | 74addaa0e41490cbaf2abd313a764c96df57b05d | /Mathlib/data/polynomial/induction_auto.lean | f880ca3f06a1690576662e99bcf5f8bb5aa7e3c1 | [] | 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,674 | 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 Mathlib.PrePort
import Mathlib.Lean3Lib.init.default
import Mathlib.data.polynomial.coeff
import Mathlib.PostPort
... |
082a86397a188f79017f918d4fa12c497f1e4aee | 74addaa0e41490cbaf2abd313a764c96df57b05d | /Mathlib/tactic/has_variable_names_auto.lean | f4e7260ea86e541e1e32d90f649f16d0f0ebf86d | [] | 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 | 10,066 | lean | /-
Copyright (c) 2020 Jannis Limperg. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Author: Jannis Limperg
-/
import Mathlib.PrePort
import Mathlib.Lean3Lib.init.default
import Mathlib.tactic.core
import Mathlib.PostPort
universes u l v u_1 u_2
namespace Mathlib
/-!
# A ta... |
681c10a2f62ce398e55057d82cef1b6a95d4274d | 65fd5af7cdd47a9bb08328fa38e9ca296954e897 | /src/call_cc.lean | 8eb08f4f7b4985db2227e2c52eba852b101a8bc4 | [] | no_license | cipher1024/call-cc | f5961409d1a83229c386699ce148cdc9379a94e9 | a287a0b1813279a76dc6ac9eeb1e0629b45e3e23 | refs/heads/master | 1,586,545,631,568 | 1,544,468,876,000 | 1,544,468,876,000 | 161,223,643 | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 9,418 | lean |
-- import data.array.lemmas
import tactic
import tactic.squeeze
import data.list.basic
-- import tactic.linarith
-- import data.finmap
universes u v w
structure label (α : Type w) (m : Type u → Type v) (β : Type u) :=
(apply : α → m β)
def goto {α β} {m : Type u → Type v} (f : label α m β) (x : α) := f.apply x
cla... |
8145937c3ae0228ee801e09a90b0bfc0e22ecffb | 8cae430f0a71442d02dbb1cbb14073b31048e4b0 | /src/measure_theory/integral/interval_average.lean | 14e8f186367c266195bd636ea18c87fb26d87350 | [
"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 | 2,084 | 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 measure_theory.integral.interval_integral
import measure_theory.integral.average
/-!
# Integral average over an interval
> THIS FILE IS SYNCHRONIZED WITH M... |
2d071d52c8b6dedd30750f609b4a9392d32b038e | 74addaa0e41490cbaf2abd313a764c96df57b05d | /Mathlib/number_theory/sum_four_squares_auto.lean | ab34da85e3879ba4c8ec2ac34abcf9f6211a78bf | [] | 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,303 | lean | /-
Copyright (c) 2019 Chris Hughes. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Chris Hughes
## Lagrange's four square theorem
The main result in this file is `sum_four_squares`,
a proof that every natural number is the sum of four square numbers.
# Implementatio... |
759eb62bca6ffbfc50b1346f98d30b55cf696e20 | 9028d228ac200bbefe3a711342514dd4e4458bff | /src/order/rel_classes.lean | 22a83848448377bd702699b2b447cb1e904a6eed | [
"Apache-2.0"
] | permissive | mcncm/mathlib | 8d25099344d9d2bee62822cb9ed43aa3e09fa05e | fde3d78cadeec5ef827b16ae55664ef115e66f57 | refs/heads/master | 1,672,743,316,277 | 1,602,618,514,000 | 1,602,618,514,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 13,708 | lean | /-
Copyright (c) 2020 Jeremy Avigad. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Jeremy Avigad, Mario Carneiro, Yury G. Kudryashov
-/
import order.basic
/-!
# Unbundled relation classes
In this file we prove some properties of `is_*` classes defined in `init.algeb... |
cf73faffdba2963ab3bf108a81cf1c3b0dccadee | 8cae430f0a71442d02dbb1cbb14073b31048e4b0 | /src/order/filter/lift.lean | c8d7f8a1e8605f0e53ff0c0712397bf8d05d97fe | [
"Apache-2.0"
] | permissive | leanprover-community/mathlib | 56a2cadd17ac88caf4ece0a775932fa26327ba0e | 442a83d738cb208d3600056c489be16900ba701d | refs/heads/master | 1,693,584,102,358 | 1,693,471,902,000 | 1,693,471,902,000 | 97,922,418 | 1,595 | 352 | Apache-2.0 | 1,694,693,445,000 | 1,500,624,130,000 | Lean | UTF-8 | Lean | false | false | 19,441 | 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 order.filter.bases
/-!
# Lift filters along filter and set functions
> THIS FILE IS SYNCHRONIZED WITH MATHLIB4.
> Any changes to this file require a correspo... |
1d1f4e9598442fe3426b909d69f3e4b29e4d96ba | 9dc8cecdf3c4634764a18254e94d43da07142918 | /src/measure_theory/function/convergence_in_measure.lean | 060a8a5bb4a5454a69b4e2e6c3087e80df3fad79 | [
"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 | 16,891 | lean | /-
Copyright (c) 2022 Rémy Degenne, Kexing Ying. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Rémy Degenne, Kexing Ying
-/
import measure_theory.function.egorov
/-!
# Convergence in measure
We define convergence in measure which is one of the many notions of conve... |
9a0034fbc40145ed2e7df748bf8177562ee84e94 | 6432ea7a083ff6ba21ea17af9ee47b9c371760f7 | /tests/lean/interactive/macroGoalIssue.lean | 5371388aeb98437acbfa4490a7d6a436fa283574 | [
"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 | 124 | lean | theorem ex (n : Nat) : True := by
have : n = 0 + n := by rw [Nat.zero_add]
skip
--^ $/lean/plainGoal
exact True.intro
|
71bce0f558637a5d3415c53d378740d513c2e495 | 432d948a4d3d242fdfb44b81c9e1b1baacd58617 | /src/data/polynomial/integral_normalization.lean | 33fa41b18c1a0919fbfdfe1a42763c0cbf3daabd | [
"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 | 5,555 | 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.algebra_map
import data.polynomial.monic
/-!
# Theory of monic polynomials
We define `integral_no... |
8ca98581fb97a77e9f77995eca328b78bf5b6301 | 8d65764a9e5f0923a67fc435eb1a5a1d02fd80e3 | /src/algebra/gcd_monoid/finset.lean | 43fb0af2ed3b9b3a3f846868e43aafd8fa7932e6 | [
"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 | 6,899 | 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 data.finset.fold
import algebra.gcd_monoid.multiset
/-!
# GCD and LCM operations on finsets
## Main definitions
- `finset.gcd` - the greatest common denomin... |
89e21ebb46300a5ab4ba6dfc6f0aa7c26eb00bf4 | 41e069072396dcd54bd9fdadb27cfd35fd07016a | /src/defs.lean | a9b66204d339469a3942facd31384dc66def1bc5 | [
"MIT"
] | permissive | semorrison/ModalTab | 438ad601bd2631ab9cfe1e61f0d1337a36e2367e | cc94099194a2b69f84eb7a770b7aac711825179f | refs/heads/master | 1,585,939,884,891 | 1,540,961,947,000 | 1,540,961,947,000 | 155,500,181 | 0 | 0 | MIT | 1,540,961,175,000 | 1,540,961,175,000 | null | UTF-8 | Lean | false | false | 3,331 | lean | /-
Copyright (c) 2018 Minchao Wu. All rights reserved.
Released under MIT license as described in the file LICENSE.
Author: Minchao Wu
-/
import data.list
open nat tactic subtype
inductive nnf : Type
| var (n : nat)
| neg (n : nat)
| and (φ ψ : nnf)
| or (φ ψ : nnf)
| box (φ : nnf)
| ... |
186e23859fff2d969e4abd92a5c6c17896b0a7f0 | dd0f5513e11c52db157d2fcc8456d9401a6cd9da | /12_Axioms.org.1.lean | 585ecffcfb1a9592654a08efe3f9fdc030dc1e9e | [] | 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 | 107 | lean | import standard
namespace hide
-- BEGIN
axiom propext {a b : Prop} : (a ↔ b) → a = b
-- END
end hide
|
4b2e11e0b24ad10d6ef5869bb23fddc5b8288728 | 4d2583807a5ac6caaffd3d7a5f646d61ca85d532 | /src/category_theory/limits/types.lean | f26d80d8efcccb02b0c888f3a68137a5cebf970f | [
"Apache-2.0"
] | permissive | AntoineChambert-Loir/mathlib | 64aabb896129885f12296a799818061bc90da1ff | 07be904260ab6e36a5769680b6012f03a4727134 | refs/heads/master | 1,693,187,631,771 | 1,636,719,886,000 | 1,636,719,886,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 15,192 | lean | /-
Copyright (c) 2018 Scott Morrison. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Scott Morrison, Reid Barton
-/
import category_theory.limits.shapes.images
import category_theory.filtered
import tactic.equiv_rw
universes u
open category_theory
open category_theor... |
6ae52d794278c94cd0daf33cb9acfb1e4d56ed5e | 3dd1b66af77106badae6edb1c4dea91a146ead30 | /tests/lean/run/ind7.lean | 4d699c56137fe0ba45ac6a6f59c0159038147eee | [
"Apache-2.0"
] | permissive | silky/lean | 79c20c15c93feef47bb659a2cc139b26f3614642 | df8b88dca2f8da1a422cb618cd476ef5be730546 | refs/heads/master | 1,610,737,587,697 | 1,406,574,534,000 | 1,406,574,534,000 | 22,362,176 | 1 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 189 | lean | namespace list
inductive list (A : Type) : Type :=
| nil : list A
| cons : A → list A → list A
check list.{1}
check cons.{1}
check list_rec.{1 1}
end
check list.list.{1}
|
e4d2cd59e27ef26adf25e5d7b2023b7f242be687 | 4727251e0cd73359b15b664c3170e5d754078599 | /src/deprecated/ring.lean | 1d36df151c1d1bdb559109d03c318eed87c54136 | [
"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,845 | 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 structures for unbundled semiring and ring homomorphisms. Tho... |
bc81e4c4680b339d45bf5d653f3a65bc8b64ea0d | 4efff1f47634ff19e2f786deadd394270a59ecd2 | /src/data/nat/multiplicity.lean | 2bed5c0b72f6e39c7bfb2c7c793b3c847170ba2a | [
"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,478 | lean | /-
Copyright (c) 2019 Chris Hughes. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Chris Hughes
-/
import data.nat.choose
import ring_theory.multiplicity
import data.nat.modeq
import algebra.gcd_monoid
/-!
# Natural number multiplicity
This file contains lemmas abou... |
c510e44ecf34419dad6b84a1b2e6cb8e5377dd21 | 6b02ce66658141f3e0aa3dfa88cd30bbbb24d17b | /stage0/src/Lean/Meta/SizeOf.lean | 93bf664cbb7586f0ce4ec68aacfcde54bf4f568e | [
"Apache-2.0"
] | permissive | pbrinkmeier/lean4 | d31991fd64095e64490cb7157bcc6803f9c48af4 | 32fd82efc2eaf1232299e930ec16624b370eac39 | refs/heads/master | 1,681,364,001,662 | 1,618,425,427,000 | 1,618,425,427,000 | 358,314,562 | 0 | 0 | Apache-2.0 | 1,618,504,558,000 | 1,618,501,999,000 | null | UTF-8 | Lean | false | false | 21,981 | 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.AppBuilder
import Lean.Meta.Instances
namespace Lean.Meta
/-- Create `SizeOf` local instances for applicable parameters, and execute `k` ... |
98b0214c903bb2633abd41365ea9d61716b83a1d | cc060cf567f81c404a13ee79bf21f2e720fa6db0 | /lean/category-theory-parameterized.lean | 6bc6688417b88c51cb500221bd3a02ee316e443a | [
"Apache-2.0"
] | permissive | semorrison/proof | cf0a8c6957153bdb206fd5d5a762a75958a82bca | 5ee398aa239a379a431190edbb6022b1a0aa2c70 | refs/heads/master | 1,610,414,502,842 | 1,518,696,851,000 | 1,518,696,851,000 | 78,375,937 | 2 | 1 | null | null | null | null | UTF-8 | Lean | false | false | 12,211 | lean | import standard
meta def blast : tactic unit :=
using_smt $ return ()
set_option pp.implicit true
structure Category { Obj : Type } (Hom : Obj -> Obj -> Type) :=
(identity : Π A : Obj, Hom A A)
(compose : Π ⦃A B C : Obj⦄, Hom A B → Hom B C → Hom A C)
(left_identity : Π ⦃A B : Obj⦄ (f : Hom A B), compose (id... |
20622b8ad5ba85e650dfabf654864d4f7dacafb4 | 4d2583807a5ac6caaffd3d7a5f646d61ca85d532 | /src/analysis/special_functions/complex/circle.lean | 309987e80bfa5a37b227cb8f7da1a09296a288c3 | [
"Apache-2.0"
] | permissive | AntoineChambert-Loir/mathlib | 64aabb896129885f12296a799818061bc90da1ff | 07be904260ab6e36a5769680b6012f03a4727134 | refs/heads/master | 1,693,187,631,771 | 1,636,719,886,000 | 1,636,719,886,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 3,538 | lean | /-
Copyright (c) 2021 Yury G. Kudryashov. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Yury G. Kudryashov
-/
import analysis.complex.circle
import analysis.special_functions.complex.log
/-!
# Maps on the unit circle
In this file we prove some basic lemmas about `ex... |
25ba39e7a8a9b4ba743eaab4718ea21731f73ffb | 74addaa0e41490cbaf2abd313a764c96df57b05d | /Mathlib/order/atoms_auto.lean | b18adcb1d0baacae3af478738d65456e470ac699 | [] | no_license | AurelienSaue/Mathlib4_auto | f538cfd0980f65a6361eadea39e6fc639e9dae14 | 590df64109b08190abe22358fabc3eae000943f2 | refs/heads/master | 1,683,906,849,776 | 1,622,564,669,000 | 1,622,564,669,000 | 371,723,747 | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 17,351 | lean | /-
Copyright (c) 2020 Aaron Anderson. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Author: Aaron Anderson.
-/
import Mathlib.PrePort
import Mathlib.Lean3Lib.init.default
import Mathlib.order.complete_boolean_algebra
import Mathlib.order.modular_lattice
import Mathlib.data.fi... |
8e0d4d5527de6058ef862df17860cd34d9fe837e | ff5230333a701471f46c57e8c115a073ebaaa448 | /tests/lean/run/psum_wf_rec.lean | 8e4e40b991d4d6ce4877a6d32603a151b1ee0417 | [
"Apache-2.0"
] | permissive | stanford-cs242/lean | f81721d2b5d00bc175f2e58c57b710d465e6c858 | 7bd861261f4a37326dcf8d7a17f1f1f330e4548c | refs/heads/master | 1,600,957,431,849 | 1,576,465,093,000 | 1,576,465,093,000 | 225,779,423 | 0 | 3 | Apache-2.0 | 1,575,433,936,000 | 1,575,433,935,000 | null | UTF-8 | Lean | false | false | 804 | lean | def psum.alt.sizeof {α β} [has_sizeof α] [has_sizeof β] : psum α β → nat
| (psum.inl a) := 2*sizeof a + 2
| (psum.inr b) := 2*sizeof b + 1
def sum_has_sizeof_2 {α β} [has_sizeof α] [has_sizeof β] : has_sizeof (psum α β) :=
⟨psum.alt.sizeof⟩
local attribute [instance] sum_has_sizeof_2
local attribute [simp] add_comm a... |
c97bd9e14c45eaee73321b07ec32117054245e77 | 4d2583807a5ac6caaffd3d7a5f646d61ca85d532 | /src/linear_algebra/affine_space/affine_equiv.lean | c08341425569b8aea713d14752baf39b9e3785ef | [
"Apache-2.0"
] | permissive | AntoineChambert-Loir/mathlib | 64aabb896129885f12296a799818061bc90da1ff | 07be904260ab6e36a5769680b6012f03a4727134 | refs/heads/master | 1,693,187,631,771 | 1,636,719,886,000 | 1,636,719,886,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 16,129 | lean | /-
Copyright (c) 2020 Yury G. Kudryashov. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Yury G. Kudryashov
-/
import linear_algebra.affine_space.affine_map
import algebra.invertible
/-!
# Affine equivalences
In this file we define `affine_equiv k P₁ P₂` (notation: `... |
e2f36a791ff926dd82c54f13c58e7c6f49154ed3 | c777c32c8e484e195053731103c5e52af26a25d1 | /src/topology/algebra/continuous_affine_map.lean | df8ea46d78521afc5ff35f66866b97d685403b54 | [
"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 | 8,348 | lean | /-
Copyright (c) 2021 Oliver Nash. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Oliver Nash
-/
import linear_algebra.affine_space.affine_map
import topology.continuous_function.basic
import topology.algebra.module.basic
/-!
# Continuous affine maps.
This file defin... |
31bdc901081bd3d6d3b691be8b6823be7ff73d2c | 82b86ba2ae0d5aed0f01f49c46db5afec0eb2bd7 | /tests/lean/run/structInst4.lean | 6fa6066fbb9eca12ac868cfb89af6ddcf3e7be89 | [
"Apache-2.0"
] | permissive | banksonian/lean4 | 3a2e6b0f1eb63aa56ff95b8d07b2f851072d54dc | 78da6b3aa2840693eea354a41e89fc5b212a5011 | refs/heads/master | 1,673,703,624,165 | 1,605,123,551,000 | 1,605,123,551,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 486 | lean |
universes u
def a : Array ((Nat × Nat) × Bool) := #[]
def b : Array Nat := #[]
structure Foo :=
(x : Array ((Nat × Nat) × Bool) := #[])
(y : Nat := 0)
#check (b).modifyOp (idx := 1) (fun s => 2)
#check { b with [1] := 2 }
#check { a with [1].fst.2 := 1 }
def foo : Foo := {}
#check foo.x[1].1.2
#check { foo wit... |
a3a0dd5e90006c0402078f6f19d910761aac55b3 | 947fa6c38e48771ae886239b4edce6db6e18d0fb | /src/group_theory/subgroup/basic.lean | b09bcb9c45d469532b350b8627fa58d8284b870b | [
"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 | 129,490 | lean | /-
Copyright (c) 2020 Kexing Ying. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Kexing Ying
-/
import group_theory.submonoid.pointwise
import group_theory.submonoid.membership
import group_theory.submonoid.centralizer
import algebra.group.conj
import algebra.module.b... |
2f9e76348365253415977cd61dcea3c2635476a9 | e151e9053bfd6d71740066474fc500a087837323 | /src/hott/homotopy/connectedness.lean | 5ece54232522718db26af7a67bb1e326d90681da | [
"Apache-2.0"
] | permissive | daniel-carranza/hott3 | 15bac2d90589dbb952ef15e74b2837722491963d | 913811e8a1371d3a5751d7d32ff9dec8aa6815d9 | refs/heads/master | 1,610,091,349,670 | 1,596,222,336,000 | 1,596,222,336,000 | 241,957,822 | 0 | 0 | Apache-2.0 | 1,582,222,839,000 | 1,582,222,838,000 | null | UTF-8 | Lean | false | false | 23,932 | lean | /-
Copyright (c) 2015 Ulrik Buchholtz. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Ulrik Buchholtz, Floris van Doorn
Connectedness of types and functions
-/
import ..types.trunc ..types.arrow_2 ..types.lift
universes u v w
hott_theory
namespace hott
open is_trunc ... |
7fc51f6ac33540ed474e9b9d25d902504ada8d84 | 947b78d97130d56365ae2ec264df196ce769371a | /src/Lean/Compiler/IR/ElimDeadVars.lean | c88015e3bcb9073a17058777ed8cb76d6672974c | [
"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 | 1,671 | 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.Compiler.IR.Basic
import Lean.Compiler.IR.FreeVars
namespace Lean
namespace IR
partial def reshapeWithoutDeadAux : Array FnBody → FnBody → Ind... |
f8ddbd9471c44165a2d5e43afbd189869b0be118 | b3fced0f3ff82d577384fe81653e47df68bb2fa1 | /src/algebra/big_operators.lean | 9c99e1633c1e21b8387d967a46720f30fdf39d7e | [
"Apache-2.0"
] | permissive | ratmice/mathlib | 93b251ef5df08b6fd55074650ff47fdcc41a4c75 | 3a948a6a4cd5968d60e15ed914b1ad2f4423af8d | refs/heads/master | 1,599,240,104,318 | 1,572,981,183,000 | 1,572,981,183,000 | 219,830,178 | 0 | 0 | Apache-2.0 | 1,572,980,897,000 | 1,572,980,896,000 | null | UTF-8 | Lean | false | false | 34,078 | 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
Some big operators for lists and finite sets.
-/
import tactic.tauto data.list.basic data.finset data.nat.enat
import algebra.group algebra.ordered_group algebra.group_... |
9fa3d27784cdda44464d112fa7c528565e29fe52 | 75db7e3219bba2fbf41bf5b905f34fcb3c6ca3f2 | /hott/algebra/homotopy_group.hlean | c66587949bfabba06fc1733cd9b9ec96cdd91eb4 | [
"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 | 3,144 | 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
homotopy groups of a pointed space
-/
import types.pointed .trunc_group .hott types.trunc
open nat eq pointed trunc is_trunc algebra
namespace eq
definition h... |
565881f6cb201be8356ac426245f2f7e521bed85 | 6e41ee3ac9b96e8980a16295cc21f131e731884f | /tests/lean/run/local_notation.lean | 522b1233e10e6cf917dc2f929d691ee154c32e56 | [
"Apache-2.0"
] | permissive | EgbertRijke/lean | 3426cfa0e5b3d35d12fc3fd7318b35574cb67dc3 | 4f2e0c6d7fc9274d953cfa1c37ab2f3e799ab183 | refs/heads/master | 1,610,834,871,476 | 1,422,159,801,000 | 1,422,159,801,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 163 | lean | import logic
section
variables {A : Type}
variables f : A → A → A
infixl [local] `+++`:10 := f
variables a b c : A
check f a b
check a +++ b
end
|
9b7b0b0a0f1ea43786fe7faf9b5873ee41f08933 | 63abd62053d479eae5abf4951554e1064a4c45b4 | /src/algebra/polynomial/big_operators.lean | 41e0ea4be4b02812bfc380eb238a92243afea12e | [
"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 | 4,570 | lean | /-
Copyright (c) 2020 Aaron Anderson. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Aaron Anderson, Jalex Stark.
-/
import data.polynomial.monic
import tactic.linarith
open polynomial finset
/-!
# Polynomials
Lemmas for the interaction between polynomials and ∑ and... |
2cd6b3b703d799d7cf9a3374f24035f3d224a3cf | 6432ea7a083ff6ba21ea17af9ee47b9c371760f7 | /tests/lean/stdio.lean | afb38d9d5745946fb81561c4b235ed57ad9bf4f1 | [
"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 | 767 | lean |
open IO.FS
def usingIO {α} (x : IO α) : IO α := x
#eval usingIO do
let out ← IO.getStdout;
out.putStrLn "print stdout"
#eval usingIO do
let err ← IO.getStderr;
(err.putStr "print stderr" : IO Unit)
open usingIO IO
def test : IO Unit := do
FS.withFile "stdout1.txt" IO.FS.Mode.write $ fun h₁ => do
{ let h₂ ← FS.Hand... |
8afdf73863f2b9bfdd76b45517fbab23ff3d5169 | 0e175f34f8dca5ea099671777e8d7446d7d74227 | /library/init/meta/widget/basic.lean | 93740611c86a56d9de7c2442cd6032f193033bfa | [
"Apache-2.0"
] | permissive | utensil-contrib/lean | b31266738071c654d96dac8b35d9ccffc8172fda | a28b9c8f78d982a4e82b1e4f7ce7988d87183ae8 | refs/heads/master | 1,670,045,564,075 | 1,597,397,599,000 | 1,597,397,599,000 | 287,528,503 | 0 | 0 | Apache-2.0 | 1,597,408,338,000 | 1,597,408,337,000 | null | UTF-8 | Lean | false | false | 15,534 | lean | /-
Copyright (c) E.W.Ayers. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Author: E.W.Ayers
-/
prelude
import init.function
import init.data.option.basic
import init.util
import init.meta.tactic
import init.meta.mk_dec_eq_instance
/-! A component is a piece of UI which may c... |
9088d37981a7034e64c95b2b849d65fa8b13d1bf | d406927ab5617694ec9ea7001f101b7c9e3d9702 | /src/tactic/wlog.lean | 67af4ce1411fcb074d73bbc309bb3585cfdcc3da | [
"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 | 9,104 | 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
Without loss of generality tactic.
-/
import data.list.perm
open expr
setup_tactic_parser
namespace tactic
private meta def update_pp_name : expr → name → expr
| (lo... |
d26d9f3dcfb7fe9835b67d9cd18149c818015e5e | dd4e652c749fea9ac77e404005cb3470e5f75469 | /src/alex_playground/filter.lean | eff012d5535ad8af6bc2ac934355f74b6cc756da | [] | no_license | skbaek/cvx | e32822ad5943541539966a37dee162b0a5495f55 | c50c790c9116f9fac8dfe742903a62bdd7292c15 | refs/heads/master | 1,623,803,010,339 | 1,618,058,958,000 | 1,618,058,958,000 | 176,293,135 | 3 | 2 | null | null | null | null | UTF-8 | Lean | false | false | 4,188 | lean | import data.real.basic
import order.lattice
noncomputable theory
section curried
variables {α α' β γ δ : Type*}
class curried (α β γ δ : Type*) :=
(comp (f : γ → δ) : α → β)
instance curried_base : curried (α → γ) (α → δ) γ δ := ⟨λ f g x, f (g x)⟩
instance curried_induction [curried α β γ δ] : curried (α' → α) (... |
48b870e483bfa276a9374ada1b5e0209e4c395e2 | a0e23cfdd129a671bf3154ee1a8a3a72bf4c7940 | /stage0/src/Lean/Meta/PPGoal.lean | 9df31bfbe76765eb1cefee4ac48010c3f04a9d88 | [
"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 | 9,293 | lean | /-
Copyright (c) 2020 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Author: Leonardo de Moura
-/
import Lean.Meta.InferType
namespace Lean.Meta
register_builtin_option pp.auxDecls : Bool := {
defValue := false
group := "pp"
descr := "displa... |
fc35d31ecc59d3fe143007b818634c2e9c6df06a | 6432ea7a083ff6ba21ea17af9ee47b9c371760f7 | /script/apply.lean | 70bf754cde354cae676639cc2f87b8584a7448e5 | [
"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 | 6,976 | lean | import Lean.Runtime
abbrev M := ReaderT IO.FS.Stream IO
def M.run (a : M Unit) (out? : Option String := none) : IO Unit :=
match out? with
| some out => do
IO.FS.withFile out .write (ReaderT.run a ∘ .ofHandle)
| none => IO.getStdout >>= (ReaderT.run a)
def emit (s : String) : M Unit := do
(← read).putStr... |
875c61278217104af44595eae03ec3943ffc555d | 8cae430f0a71442d02dbb1cbb14073b31048e4b0 | /src/data/set/function.lean | f2bc48dc31da13f4d9921533487befd2c6558e32 | [
"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 | 60,916 | lean | /-
Copyright (c) 2014 Jeremy Avigad. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Jeremy Avigad, Andrew Zipperer, Haitao Zhang, Minchao Wu, Yury Kudryashov
-/
import data.set.prod
import logic.function.conjugate
/-!
# Functions over sets
> THIS FILE IS SYNCHRONIZED... |
570d4f1db1cfc3d8ab79bb1cb126abdf0b4b2c52 | 206422fb9edabf63def0ed2aa3f489150fb09ccb | /src/topology/basic.lean | 8cd11470d86d106f7b3efe7f630ce3e1da2bc403 | [
"Apache-2.0"
] | permissive | hamdysalah1/mathlib | b915f86b2503feeae268de369f1b16932321f097 | 95454452f6b3569bf967d35aab8d852b1ddf8017 | refs/heads/master | 1,677,154,116,545 | 1,611,797,994,000 | 1,611,797,994,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 52,201 | lean | /-
Copyright (c) 2017 Johannes Hölzl. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Johannes Hölzl, Mario Carneiro, Jeremy Avigad
-/
import order.filter.ultrafilter
import order.filter.partial
noncomputable theory
/-!
# Basic theory of topological spaces.
The main ... |
839d5dab1e4242c561d541f52edb2efe5ecf2dab | 6432ea7a083ff6ba21ea17af9ee47b9c371760f7 | /tests/lean/run/missingDeclName.lean | c71f884c30b464e280c1fbff27ae4d3663cd2670 | [
"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 | 99 | lean | def foo {α β : Type} (xs : Array (α × β)) (H : true = xs.all fun (x, y) => true) : Unit := ()
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.