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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
633574cd573967d779555809044a7cb8de05b0c4 | d406927ab5617694ec9ea7001f101b7c9e3d9702 | /src/algebra/hom/ring.lean | 3e323eb28a218fcf80693d06ef43dc1505215453 | [
"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 | 22,764 | lean | /-
Copyright (c) 2019 Amelia Livingston. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Amelia Livingston, Jireh Loreaux
-/
import algebra.group_with_zero.inj_surj
import algebra.ring.basic
import algebra.divisibility.basic
import data.pi.algebra
import algebra.hom.uni... |
e0852377622f9071aa85798c439c2c0326e43e5f | 46125763b4dbf50619e8846a1371029346f4c3db | /src/field_theory/finite.lean | 020b59d3e802297f95b3e6cabf9547f56f572350 | [
"Apache-2.0"
] | permissive | thjread/mathlib | a9d97612cedc2c3101060737233df15abcdb9eb1 | 7cffe2520a5518bba19227a107078d83fa725ddc | refs/heads/master | 1,615,637,696,376 | 1,583,953,063,000 | 1,583,953,063,000 | 246,680,271 | 0 | 0 | Apache-2.0 | 1,583,960,875,000 | 1,583,960,875,000 | null | UTF-8 | Lean | false | false | 6,844 | 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 group_theory.order_of_element data.polynomial data.equiv.algebra data.zmod.basic
import algebra.char_p
universes u v
variables {α : Type u} {β : Type v}
open fun... |
9d3a56e48fc78a4f1c09ba8332acc015dd472e4a | 618003631150032a5676f229d13a079ac875ff77 | /src/algebra/category/Mon/colimits.lean | ae0fe16bc7ab988f59f9354afd80c88c2cf066ce | [
"Apache-2.0"
] | permissive | awainverse/mathlib | 939b68c8486df66cfda64d327ad3d9165248c777 | ea76bd8f3ca0a8bf0a166a06a475b10663dec44a | refs/heads/master | 1,659,592,962,036 | 1,590,987,592,000 | 1,590,987,592,000 | 268,436,019 | 1 | 0 | Apache-2.0 | 1,590,990,500,000 | 1,590,990,500,000 | null | UTF-8 | Lean | false | false | 7,534 | lean | /-
Copyright (c) 2019 Scott Morrison. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Scott Morrison
-/
import algebra.category.Mon.basic
import category_theory.limits.limits
import category_theory.limits.concrete_category
/-!
# The category of monoids has all colimits... |
19569b77d5d1469da573f73d459d272af20aa439 | 6b10c15e653d49d146378acda9f3692e9b5b1950 | /examples/basic_skills/unnamed_611.lean | 4188fed83e2cb608e91c890f986bf8d7a1c52aff | [] | no_license | gebner/mathematics_in_lean | 3cf7f18767208ea6c3307ec3a67c7ac266d8514d | 6d1462bba46d66a9b948fc1aef2714fd265cde0b | refs/heads/master | 1,655,301,945,565 | 1,588,697,505,000 | 1,588,697,505,000 | 261,523,603 | 0 | 0 | null | 1,588,695,611,000 | 1,588,695,610,000 | null | UTF-8 | Lean | false | false | 146 | lean | namespace my_ring
variables {R : Type*} [ring R]
-- BEGIN
theorem neg_add_cancel_right (a b : R) : (a + b) + -b = 0 :=
sorry
-- END
end my_ring |
6ed1ae81c416e2eb749a40f8f45884287e08c71c | 302c785c90d40ad3d6be43d33bc6a558354cc2cf | /src/linear_algebra/direct_sum/finsupp.lean | e499902fdf9093353041695e0081ef0d5e587d22 | [
"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 | 4,835 | 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.finsupp
import linear_algebra.direct_sum.tensor_product
/-!
# Results on direct sums and finitely supported functions.
1. The linear equivalen... |
97cecaf0018c556cd1daebee9049838d05f16aef | 05f637fa14ac28031cb1ea92086a0f4eb23ff2b1 | /tests/lean/disj1.lean | a9617456160db32a3e1fb88165c29c173c1cbc4f | [
"Apache-2.0"
] | permissive | codyroux/lean0.1 | 1ce92751d664aacff0529e139083304a7bbc8a71 | 0dc6fb974aa85ed6f305a2f4b10a53a44ee5f0ef | refs/heads/master | 1,610,830,535,062 | 1,402,150,480,000 | 1,402,150,480,000 | 19,588,851 | 2 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 355 | lean | import tactic
theorem T1 (a b : Bool) : a \/ b → b \/ a.
(* disj_hyp_tac() *)
(* disj_tac() *)
back
exact.
(* disj_tac() *)
exact.
done.
(*
simple_tac = Repeat(OrElse(assumption_tac(), disj_hyp_tac(), disj_tac())) .. now_tac()
*)
theorem T2 (a b : Bool) : a \/ b → b \/ a.
simple_tac.
... |
e8934e7aa2b4f48f3681ddef4e59f8983f4faf1c | 9e90bb7eb4d1bde1805f9eb6187c333fdf09588a | /src/stump/algorithm_definition.lean | ad29ef08fbb1fe2e50287b406ca6b8bd86e0e628 | [
"Apache-2.0"
] | permissive | alexjbest/stump-learnable | 6311d0c3a1a1a0e65ce83edcbb3b4b7cecabb851 | f8fd812fc646d2ece312ff6ffc2a19848ac76032 | refs/heads/master | 1,659,486,805,691 | 1,590,454,024,000 | 1,590,454,024,000 | 266,173,720 | 0 | 0 | Apache-2.0 | 1,590,169,884,000 | 1,590,169,883,000 | null | UTF-8 | Lean | false | false | 579 | lean | /-
Copyright © 2019, Oracle and/or its affiliates. All rights reserved.
-/
import .setup_definition
namespace stump
variables (target: ℍ) (n: ℕ)
noncomputable
def label_sample := vec_map (label target)
def filter := vec_map (λ p: (ℍ × bool), if p.snd then p.fst else 0)
noncomputable
def max: Π n: ℕ, vec ℍ n → ℍ
... |
be73ce0c612afd48ebb93742d390cd27ff3f4265 | 4bcaca5dc83d49803f72b7b5920b75b6e7d9de2d | /stage0/src/Lean/Meta/Match/Match.lean | 77af4a18c08b923f0a44d5891cc840d8a5d54d83 | [
"Apache-2.0"
] | permissive | subfish-zhou/leanprover-zh_CN.github.io | 30b9fba9bd790720bd95764e61ae796697d2f603 | 8b2985d4a3d458ceda9361ac454c28168d920d3f | refs/heads/master | 1,689,709,967,820 | 1,632,503,056,000 | 1,632,503,056,000 | 409,962,097 | 1 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 41,153 | 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.Util.CollectLevelParams
import Lean.Util.Recognizers
import Lean.Compiler.ExternAttr
import Lean.Meta.Check
import Lean.Meta.Closure
import Lean... |
f69d2abec1656ee589232bee740811b9f2b872a1 | 6432ea7a083ff6ba21ea17af9ee47b9c371760f7 | /tests/lean/invalidEnd.lean | 970731d2965abb4f1e3f44dbd4e6bc6a6a323ec4 | [
"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 | 72 | lean | namespace Foo.Bar
section Baz
section
end Baz
end Bal
end Fool.Bar
end
|
07ceeb30eb9812cc875ba4918c8cd299fbfc7490 | 5719a16e23dfc08cdea7a5bf035b81690f307965 | /stage0/src/Init/Lean/Elab/Binders.lean | dbc4cf528f9e131fdb818b18c05c6edc9bbeab28 | [
"Apache-2.0"
] | permissive | postmasters/lean4 | 488b03969a371e1507e1e8a4df9ebf63c7cbe7ac | f3976fc53a883ac7606fc59357d43f4b51016ca7 | refs/heads/master | 1,655,582,707,480 | 1,588,682,595,000 | 1,588,682,595,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 18,511 | 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.Elab.Term
import Init.Lean.Elab.Quotation
namespace Lean
namespace Elab
namespace Term
/--
Given syntax of the forms
a) (`:... |
792711fe151200347afeacbb6cf1a4496ce30662 | 57c233acf9386e610d99ed20ef139c5f97504ba3 | /test/linear_combination.lean | b789152179073b0afe616cb7ee39118e25c7e2ca | [
"Apache-2.0"
] | permissive | robertylewis/mathlib | 3d16e3e6daf5ddde182473e03a1b601d2810952c | 1d13f5b932f5e40a8308e3840f96fc882fae01f0 | refs/heads/master | 1,651,379,945,369 | 1,644,276,960,000 | 1,644,276,960,000 | 98,875,504 | 0 | 0 | Apache-2.0 | 1,644,253,514,000 | 1,501,495,700,000 | Lean | UTF-8 | Lean | false | false | 6,611 | lean | import tactic.linear_combination
import data.real.basic
/-! ### Simple Cases with ℤ and two or less equations -/
example (x y : ℤ) (h1 : 3*x + 2*y = 10):
3*x + 2*y = 10 :=
by linear_combination (h1, 1)
example (x y : ℤ) (h1 : 3*x + 2*y = 10):
3*x + 2*y = 10 :=
by linear_combination h1
example (x y : ℤ) (h1 : x... |
55e8dc4a2a877950914993ac6ae96ed18278e0b7 | f5f7e6fae601a5fe3cac7cc3ed353ed781d62419 | /src/algebra/order.lean | 37f86e1d85f9a24b5dd54f408aa017f64bcb4d95 | [
"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 | 10,048 | lean | /-
Copyright (c) 2017 Mario Carneiro. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Mario Carneiro
-/
universe u
variables {α : Type u}
lemma not_le_of_lt [preorder α] {a b : α} (h : a < b) : ¬ b ≤ a :=
(le_not_le_of_lt h).right
lemma not_lt_of_le [preorder α] {a b... |
9abb44127aca79657855b9dafe355bdc7189433d | 4727251e0cd73359b15b664c3170e5d754078599 | /src/analysis/inner_product_space/pi_L2.lean | 774acfea5dc85f1b937bc7e01f20b5b72e07f03e | [
"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 | 21,689 | lean | /-
Copyright (c) 2020 Joseph Myers. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Joseph Myers, Sébastien Gouëzel, Heather Macbeth
-/
import analysis.inner_product_space.projection
import analysis.normed_space.pi_Lp
/-!
# `L²` inner product space structure on finite ... |
cca79abf80272ec65fc4c0635a3703bc9bb6296b | d1a52c3f208fa42c41df8278c3d280f075eb020c | /stage0/src/Lean/Data/Xml/Parser.lean | 25138df817b4b9bbdcf6ff77ff11d975d2a47f6d | [
"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 | 15,275 | lean | /-
Copyright (c) 2021 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Author: Dany Fabian
-/
import Lean.Data.Parsec
import Lean.Data.Xml.Basic
open IO
open System
open Lean
namespace Lean
namespace Xml
namespace Parser
open Lean.Parsec
open Parsec.Pars... |
8749e91af3957488f86101e40ef457f1d581a87f | 69d4931b605e11ca61881fc4f66db50a0a875e39 | /src/ring_theory/ideal/basic.lean | 56b52f67104b61c562c9caed0a9c59a1257f482a | [
"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 | 34,480 | lean | /-
Copyright (c) 2018 Kenny Lau. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Kenny Lau, Chris Hughes, Mario Carneiro
-/
import algebra.associated
import linear_algebra.basic
import order.zorn
import order.atoms
import order.compactly_generated
/-!
# Ideals over a r... |
676f05d1efb10ea2b25136062c536f4c14249231 | d406927ab5617694ec9ea7001f101b7c9e3d9702 | /src/analysis/box_integral/divergence_theorem.lean | 85b72e111e8436ec5f33107935c0d879ba810f8a | [
"Apache-2.0"
] | permissive | alreadydone/mathlib | dc0be621c6c8208c581f5170a8216c5ba6721927 | c982179ec21091d3e102d8a5d9f5fe06c8fafb73 | refs/heads/master | 1,685,523,275,196 | 1,670,184,141,000 | 1,670,184,141,000 | 287,574,545 | 0 | 0 | Apache-2.0 | 1,670,290,714,000 | 1,597,421,623,000 | Lean | UTF-8 | Lean | false | false | 16,446 | lean | /-
Copyright (c) 2021 Yury Kudryashov. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Yury Kudryashov
-/
import analysis.box_integral.basic
import analysis.box_integral.partition.additive
import analysis.calculus.fderiv
/-!
# Divergence integral for Henstock-Kurzweil ... |
80e44a015499291d4dbf49492d2b4ca81295394a | 2a70b774d16dbdf5a533432ee0ebab6838df0948 | /_target/deps/mathlib/src/analysis/calculus/fderiv.lean | 46a14a2803d6605e7c577e8a421ac2f1000bac04 | [
"Apache-2.0"
] | permissive | hjvromen/lewis | 40b035973df7c77ebf927afab7878c76d05ff758 | 105b675f73630f028ad5d890897a51b3c1146fb0 | refs/heads/master | 1,677,944,636,343 | 1,676,555,301,000 | 1,676,555,301,000 | 327,553,599 | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 121,110 | lean | /-
Copyright (c) 2019 Jeremy Avigad. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Jeremy Avigad, Sébastien Gouëzel, Yury Kudryashov
-/
import analysis.calculus.tangent_cone
import analysis.normed_space.units
import analysis.asymptotic_equivalent
/-!
# The Fréchet de... |
8a67dd989a3931ecc7f350751ba7dc266de2ff9a | bbecf0f1968d1fba4124103e4f6b55251d08e9c4 | /src/group_theory/nilpotent.lean | 6b54140f4fa299116ecedc5b1622a5fc0aca2319 | [
"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 | 16,023 | lean | /-
Copyright (c) 2021 Kevin Buzzard. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Kevin Buzzard, Ines Wright
-/
import group_theory.general_commutator
import group_theory.quotient_group
/-!
# Nilpotent groups
An API for nilpotent groups, that is, groups for which... |
5bb8bea878d7fcff905e74819165aeea9c7d5645 | d5ecf6c46a2f605470a4a7724909dc4b9e7350e0 | /data/nat/sqrt.lean | c9253d09652a45bdf6a08a05e316816c258b056c | [
"Apache-2.0"
] | permissive | MonoidMusician/mathlib | 41f79df478987a636b735c338396813d2e8e44c4 | 72234ef1a050eea3a2197c23aeb345fc13c08ff3 | refs/heads/master | 1,583,672,205,771 | 1,522,892,143,000 | 1,522,892,143,000 | 128,144,032 | 0 | 0 | Apache-2.0 | 1,522,892,144,000 | 1,522,890,892,000 | Lean | UTF-8 | Lean | false | false | 6,348 | 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... |
9aa34a4d54e44b9de629575b2eada762cd97abbb | 30b012bb72d640ec30c8fdd4c45fdfa67beb012c | /tests/tactics.lean | fd5a16b9aa98ecc6ff68e5b5acd0ff61106ca173 | [
"Apache-2.0"
] | permissive | kckennylau/mathlib | 21fb810b701b10d6606d9002a4004f7672262e83 | 47b3477e20ffb5a06588dd3abb01fe0fe3205646 | refs/heads/master | 1,634,976,409,281 | 1,542,042,832,000 | 1,542,319,733,000 | 109,560,458 | 0 | 0 | Apache-2.0 | 1,542,369,208,000 | 1,509,867,494,000 | Lean | UTF-8 | Lean | false | false | 18,339 | lean | /-
Copyright (c) 2018 Simon Hudon. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Simon Hudon, Scott Morrison
-/
import tactic data.set.lattice data.prod data.vector
tactic.rewrite data.stream.basic
tactic.tfae tactic.converter.interactive
tactic.r... |
49f8c2fb1276611bc16a50451f21c43d792ee0f3 | d406927ab5617694ec9ea7001f101b7c9e3d9702 | /src/algebra/ne_zero.lean | 524afd30716f0e3b4653ef4eb7345d69b8eb7908 | [
"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,689 | lean | /-
Copyright (c) 2021 Eric Rodriguez. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Eric Rodriguez
-/
import logic.basic
/-!
# `ne_zero` typeclass
> THIS FILE IS SYNCHRONIZED WITH MATHLIB4.
> https://github.com/leanprover-community/mathlib4/pull/557
> Any changes to... |
f1068d89eb4c04a2f4cb130ad01c9311f883a2e1 | 0c1546a496eccfb56620165cad015f88d56190c5 | /library/init/algebra/group.lean | 008feb7a79c6919cd223a57953083d749934c71d | [
"Apache-2.0"
] | permissive | Solertis/lean | 491e0939957486f664498fbfb02546e042699958 | 84188c5aa1673fdf37a082b2de8562dddf53df3f | refs/heads/master | 1,610,174,257,606 | 1,486,263,620,000 | 1,486,263,620,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 15,111 | lean | /-
Copyright (c) 2016 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Jeremy Avigad, Leonardo de Moura
-/
prelude
import init.logic init.algebra.ac init.meta init.meta.decl_cmds
/- Make sure instances defined in this file have lower priority than... |
63d06c3f3caa4524ae2aad5c08d30936ae3617ce | 4fa161becb8ce7378a709f5992a594764699e268 | /src/category_theory/limits/shapes/constructions/preserve_binary_products.lean | f5b5d4d758a47564054cbda4b23168ac66c1ec36 | [
"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 | 3,453 | lean | /-
Copyright (c) 2020 Bhavik Mehta. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Bhavik Mehta
-/
import category_theory.limits.limits
import category_theory.limits.preserves
import category_theory.limits.shapes.binary_products
/-!
Show that a functor `F : C ⥤ D` pre... |
8435105ebf0d6b7e090502334cc1a8603ecfbcb0 | f09e92753b1d3d2eb3ce2cfb5288a7f5d1d4bd89 | /src/Huber_ring.lean | db147bfdf66f37df61084bc6fa4f070a91e8b30b | [
"Apache-2.0"
] | permissive | PatrickMassot/lean-perfectoid-spaces | 7f63c581db26461b5a92d968e7563247e96a5597 | 5f70b2020b3c6d508431192b18457fa988afa50d | refs/heads/master | 1,625,797,721,782 | 1,547,308,357,000 | 1,547,309,364,000 | 136,658,414 | 0 | 1 | Apache-2.0 | 1,528,486,100,000 | 1,528,486,100,000 | null | UTF-8 | Lean | false | false | 3,736 | lean | import analysis.topology.topological_structures
import ring_theory.subring
import tactic.tfae
import data.list.basic
import for_mathlib.topological_rings
import power_bounded
-- f-adic rings are called Huber rings by Scholze.
-- Topological ring A contains on open subring A0 such that the subspace topology on A0 is
--... |
3cc498a34724c88e8d965b07facf0a9b4884a657 | 6dc0c8ce7a76229dd81e73ed4474f15f88a9e294 | /stage0/src/Lean/Meta/Match/Match.lean | 4cefdbc98384a4397ad4fb9803a9c3de44d11187 | [
"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 | 33,709 | 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.Util.CollectLevelParams
import Lean.Util.Recognizers
import Lean.Compiler.ExternAttr
import Lean.Meta.Check
import Lean.Meta.Closure
import Lean... |
ac7ea20b9b4966bddc946e6afc329d0e6a7bca25 | 9dc8cecdf3c4634764a18254e94d43da07142918 | /src/data/fun_like/equiv.lean | 041968a82801b2da6301698929f0e24a46be957a | [
"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 | 6,976 | 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 data.fun_like.embedding
/-!
# Typeclass for a type `F` with an injective map to `A ≃ B`
This typeclass is primarily for use by isomorphisms like `monoid_equiv` an... |
38390f864854daf405678edbd7268dd756b58ae0 | 4bcaca5dc83d49803f72b7b5920b75b6e7d9de2d | /src/Lean/Meta/ExprDefEq.lean | f24df7da89b1b017a8ae336e885a140b3cf5d962 | [
"Apache-2.0"
] | permissive | subfish-zhou/leanprover-zh_CN.github.io | 30b9fba9bd790720bd95764e61ae796697d2f603 | 8b2985d4a3d458ceda9361ac454c28168d920d3f | refs/heads/master | 1,689,709,967,820 | 1,632,503,056,000 | 1,632,503,056,000 | 409,962,097 | 1 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 61,893 | 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.ProjFns
import Lean.Structure
import Lean.Meta.WHNF
import Lean.Meta.InferType
import Lean.Meta.FunInfo
import Lean.Meta.LevelDefEq
import Lean.... |
ec9683b81addf38f4aca9e1a6d1e80cd72733418 | 8cae430f0a71442d02dbb1cbb14073b31048e4b0 | /src/analysis/normed_space/int.lean | 51b44ac060cd460600a4ffe2513d893690f7ac09 | [
"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 | 1,550 | 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.field.basic
/-!
# The integers as normed ring
> THIS FILE IS SYNCHRONIZED WITH MATHLIB4.
> Any changes to this file require a corresponding P... |
3b14abbeb6e9fe298a73b09097e23aa975b420b8 | fcf3ffa92a3847189ca669cb18b34ef6b2ec2859 | /src/world8/level5.lean | 3a225d31a3cd3f2d4f00e853f7765b71ff11d60f | [
"Apache-2.0"
] | permissive | nomoid/lean-proofs | 4a80a97888699dee42b092b7b959b22d9aa0c066 | b9f03a24623d1a1d111d6c2bbf53c617e2596d6a | refs/heads/master | 1,674,955,317,080 | 1,607,475,706,000 | 1,607,475,706,000 | 314,104,281 | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 411 | lean | import mynat.definition
import mynat.add
namespace mynat
theorem add_right_cancel (a t b : mynat) : a + t = b + t → a = b :=
begin [nat_num_game]
induction t with n hd,
{
rw add_zero,
rw add_zero,
intro h,
exact h,
},
{
rw add_succ,
rw add_succ,
... |
76e446b470dad750a8da42f623180eae5c612622 | 649957717d58c43b5d8d200da34bf374293fe739 | /src/logic/basic.lean | 70f7485ef9b303507b8b0e53c02a95b9be167873 | [
"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 | 27,856 | lean | /-
Copyright (c) 2016 Jeremy Avigad. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Jeremy Avigad, Leonardo de Moura
Theorems that require decidability hypotheses are in the namespace "decidable".
Classical versions are in the namespace "classical".
Note: in the pres... |
6fb574dfb0f5cd664547cf65120ca48e9c9c0b8a | 9028d228ac200bbefe3a711342514dd4e4458bff | /src/order/filter/ultrafilter.lean | c7a18e4fc4553de6357ff1211de2b42e5abcc658 | [
"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 | 14,571 | 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, Jeremy Avigad
-/
import order.filter.cofinite
/-!
# Ultrafilters
An ultrafilter is a minimal (maximal in the set order) proper filter.
In this file we define
* `is_u... |
f26d7717ffdbf9f90e02ad82685738a44f6da9af | cf39355caa609c0f33405126beee2739aa3cb77e | /tests/lean/run/inductive_nonrec_after_rec.lean | 09ae23af8eb2f3d98178b4f4f999a2f9648446b8 | [
"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 | 2,008 | lean | universe variables u
inductive tree (α : Type u)
| leaf {} : tree
| node : tree → α → tree → tree
open tree
def tree.size {α : Type u} : tree α → nat
| leaf := 0
| (node l a r) := tree.size l + tree.size r + 1
#eval tree.size (@leaf nat)
#eval tree.size (tree.node leaf 1 leaf)
#eval tree.size (tree.node (tree.no... |
f5d3a31e80dd1febcef71d2b447b6a0b75333e88 | 592ee40978ac7604005a4e0d35bbc4b467389241 | /Library/generated/mathscheme-lean/RightBiMagma.lean | 98abc07d0a48776783a6ce55c1ca75b83089c19e | [] | 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,366 | 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 RightBiMagma
structure RightBiMagma (A : Type) : Type :=
(op : (A → (A → A)))
(rinv : (A → (A → A)))
open RightBiMagma
structure Sig (AS : Type) : Type... |
026ce661805ebe36036c290a28a246eef980ef1e | 74addaa0e41490cbaf2abd313a764c96df57b05d | /Mathlib/data/fin_enum.lean | e3314ca04d84ee584dd781b53448d382c63dc679 | [] | no_license | AurelienSaue/Mathlib4_auto | f538cfd0980f65a6361eadea39e6fc639e9dae14 | 590df64109b08190abe22358fabc3eae000943f2 | refs/heads/master | 1,683,906,849,776 | 1,622,564,669,000 | 1,622,564,669,000 | 371,723,747 | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 7,784 | lean | /-
Copyright (c) 2019 Simon Hudon. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Author(s): Simon Hudon
-/
import Mathlib.PrePort
import Mathlib.Lean3Lib.init.default
import Mathlib.control.monad.basic
import Mathlib.data.fintype.basic
import Mathlib.PostPort
universes u_1 l ... |
c3d379277b6c31ffb74d9952639b8c1bd0947c7f | b82c5bb4c3b618c23ba67764bc3e93f4999a1a39 | /src/formal_ml/set.lean | 21984b820143e2e80009b4ee59aa4a0a552d0354 | [
"Apache-2.0"
] | permissive | nouretienne/formal-ml | 83c4261016955bf9bcb55bd32b4f2621b44163e0 | 40b6da3b6e875f47412d50c7cd97936cb5091a2b | refs/heads/master | 1,671,216,448,724 | 1,600,472,285,000 | 1,600,472,285,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 15,002 | lean | /-
Copyright 2020 Google LLC
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
di... |
01a441095800249d3f6d6c1fba328ddc261fdbc0 | 35677d2df3f081738fa6b08138e03ee36bc33cad | /src/tactic/omega/nat/dnf.lean | 26dbd4bd1d6cc177a94c1ed76f626aa32efcdea0 | [
"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 | 4,951 | lean | /- Copyright (c) 2019 Seul Baek. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Author: Seul Baek
DNF transformation. -/
import tactic.omega.clause
import tactic.omega.nat.form
namespace omega
namespace nat
open_locale omega.nat
@[simp] def dnf_core : preform → list clause... |
33f7487802841408a929f5f4e2985d2c87a3f18c | 367134ba5a65885e863bdc4507601606690974c1 | /src/data/nat/choose/basic.lean | c26d221cd5d703d276dde372d60fcc702192b797 | [
"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 | 8,532 | lean | /-
Copyright (c) 2018 Chris Hughes. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Chris Hughes, Bhavik Mehta
-/
import data.nat.factorial
/-!
# Binomial coefficients
This file contains a definition of binomial coefficients and simple lemmas (i.e. those not
requiring ... |
aac46ad6a7345dcf522f995cbdb8d5b0a90ef737 | 74addaa0e41490cbaf2abd313a764c96df57b05d | /Mathlib/data/equiv/denumerable.lean | 15ea5bd7d5975e5a253e89871f334a2a132e6712 | [] | 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 | 6,591 | lean | /-
Copyright (c) 2018 Mario Carneiro. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Author: Mario Carneiro
Denumerable (countably infinite) types, as a typeclass extending
encodable. This is used to provide explicit encode/decode functions
from nat, where the functions are kn... |
b12a12e3a659a91d69349805dda4d8250c9b522c | 592ee40978ac7604005a4e0d35bbc4b467389241 | /Library/generated/mathscheme-lean/MultCommutativeSemigroup.lean | f2a0b56ee3529563e18faf627f724865b25c188e | [] | 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 | 7,106 | 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 MultCommutativeSemigroup
structure MultCommutativeSemigroup (A : Type) : Type :=
(times : (A → (A → A)))
(commutative_times : (∀ {x y : A} , (times x y) = (time... |
ba42d9a0dc54aa48a34f87be14ce8aa24d21597f | d7189ea2ef694124821b033e533f18905b5e87ef | /galois/nat/default.lean | deda33a709081d856a0a73a68509435cd6b6b823 | [
"Apache-2.0"
] | permissive | digama0/lean-protocol-support | eaa7e6f8b8e0d5bbfff1f7f52bfb79a3b11b0f59 | cabfa3abedbdd6fdca6e2da6fbbf91a13ed48dda | refs/heads/master | 1,625,421,450,627 | 1,506,035,462,000 | 1,506,035,462,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 840 | lean | import .simplify_eq .simplify_le .div_lemmas .lemmas
namespace nat
lemma pow_add' (b m n : ℕ): b^(m+n) = b^m * b^n :=
begin
induction n,
case zero {
simp,
},
case succ n ind {
simp [add_succ, pow_succ, ind],
}
end
theorem add_mod_self : ∀ m n : ℕ, (m + n) % n = m % n :=
begin
intros m n,
cases... |
e378dd4ee9405ce66c45a4becbcc197874d4cc34 | 82b86ba2ae0d5aed0f01f49c46db5afec0eb2bd7 | /stage0/src/Lean/Data/Json/Basic.lean | 86c1b4457cb6cffb2013da1e4ce12e5aa2de38f3 | [
"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 | 4,731 | lean | /-
Copyright (c) 2019 Gabriel Ebner. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Gabriel Ebner, Marc Huisinga
-/
import Std.Data.RBTree
namespace Lean
-- mantissa * 10^-exponent
structure JsonNumber :=
(mantissa : Int) (exponent : Nat)
protected def JsonNumber.... |
d5171d39b32fc4cfbfef24740aa5e374754419e4 | 624f6f2ae8b3b1adc5f8f67a365c51d5126be45a | /tests/lean/run/level.lean | 30a7f8d9a9b3d9805608a243f7099495498a1aac | [
"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 | 279 | lean | import Init.Lean.Level
open Lean
#eval levelZero == levelZero
#eval levelZero == mkLevelSucc levelZero
#eval mkLevelMax (mkLevelSucc levelZero) levelZero == mkLevelSucc levelZero
#eval mkLevelMax (mkLevelSucc levelZero) levelZero == mkLevelMax (mkLevelSucc levelZero) levelZero
|
df69f1c6f7a4f0cd4d2461c5fa5a8257f20905f9 | 9be442d9ec2fcf442516ed6e9e1660aa9071b7bd | /src/Lean/Data/Lsp/InitShutdown.lean | 732f9854a181a22d93cbd89feee9e61ec61cce5b | [
"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,627 | lean | /-
Copyright (c) 2020 Marc Huisinga. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Marc Huisinga, Wojciech Nawrocki
-/
import Lean.Data.Lsp.Capabilities
import Lean.Data.Lsp.Workspace
import Lean.Data.Json
/-! Functionality to do with initializing and shutting down
... |
ff60566ea06cffccbf113ca314b6c11bbc0fe3f6 | fa02ed5a3c9c0adee3c26887a16855e7841c668b | /src/algebra/continued_fractions/computation/default.lean | a35851c11e6182247ae2a247587e65c83f818e99 | [
"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 | 611 | lean | /-
Copyright (c) 2020 Kevin Kappelmann. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Kevin Kappelmann
-/
import algebra.continued_fractions.computation.basic
import algebra.continued_fractions.computation.translations
import algebra.continued_fractions.computation.co... |
b88a1f1b97b89059cb6b18c19f6dd2b3893fc758 | a0e23cfdd129a671bf3154ee1a8a3a72bf4c7940 | /tests/lean/run/ppRoundtripDefs.lean | cb081fd7ac54266c3bd44a8519c9f4943da3b7a2 | [
"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 | 908 | lean | import Lean
open Lean Lean.Meta Lean.Elab Lean.Elab.Term Lean.Elab.Command Lean.PrettyPrinter
syntax (name := roundtrip) "#roundtrip " ident : command
@[commandElab roundtrip] def elabRoundtrip : CommandElab
| `(#roundtrip%$tk $name:ident) => withoutModifyingEnv do
let [name] ← resolveGlobalConst name.getId | thro... |
571e49efbff203e8490869537c5d030c5aa22d30 | 6432ea7a083ff6ba21ea17af9ee47b9c371760f7 | /src/Lean/Compiler/LCNF/PrettyPrinter.lean | 38688001a61f17ea20734182cdbb3c4a82221a57 | [
"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 | 5,203 | lean | /-
Copyright (c) 2022 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Leonardo de Moura
-/
import Lean.PrettyPrinter
import Lean.Compiler.LCNF.CompilerM
import Lean.Compiler.LCNF.Internalize
namespace Lean.Compiler.LCNF
private abbrev indentD :=... |
513757f0ce0ba0e227e0a47cbb0f8426fe820768 | 6432ea7a083ff6ba21ea17af9ee47b9c371760f7 | /tests/lean/interactive/hoverException.lean | 3a978bf8cb6bff4a1117d412d2a9d7fb8e6cd35f | [
"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 | 113 | lean | set_option relaxedAutoImplicit false
inductive Foo
| mk : (a b : Bar) → Foo
--^ textDocument/hover
|
700d1e9e66cd4b79fdcbfc8f7e811a30a9fa10d9 | 4efff1f47634ff19e2f786deadd394270a59ecd2 | /src/data/list/defs.lean | 79acef33648c05e4c5798eba794166d84234dd56 | [
"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 | 27,706 | lean | /-
Copyright (c) 2014 Parikshit Khanna. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Parikshit Khanna, Jeremy Avigad, Leonardo de Moura, Floris van Doorn, Mario Carneiro
-/
import data.option.defs
import logic.basic
import tactic.cache
/-!
## Definitions on lists
Th... |
3fb4b59b28c53d5ff12765038f5fc7df0f74e4f9 | f09e92753b1d3d2eb3ce2cfb5288a7f5d1d4bd89 | /src/for_mathlib/linear_ordered_comm_group.lean | edf334e4a5bb5cee1bcbc8f48ea6398082a9cbbc | [
"Apache-2.0"
] | permissive | PatrickMassot/lean-perfectoid-spaces | 7f63c581db26461b5a92d968e7563247e96a5597 | 5f70b2020b3c6d508431192b18457fa988afa50d | refs/heads/master | 1,625,797,721,782 | 1,547,308,357,000 | 1,547,309,364,000 | 136,658,414 | 0 | 1 | Apache-2.0 | 1,528,486,100,000 | 1,528,486,100,000 | null | UTF-8 | Lean | false | false | 8,754 | lean | import data.equiv.basic
import group_theory.subgroup
import set_theory.cardinal
import for_mathlib.subrel
import for_mathlib.option_inj
universes u v
class linear_ordered_comm_monoid (α : Type*) extends comm_monoid α, linear_order α :=
(mul_le_mul_left : ∀ {a b : α}, a ≤ b → ∀ c : α, c * a ≤ c * b)
class linear_orde... |
e61ea402d9ef16546c591a82f2599c96dfb4a0be | 9ad8d18fbe5f120c22b5e035bc240f711d2cbd7e | /src/undergraduate/MAS114/Semester 1/Q06.lean | 93d65aebbb2466aebe089b5b74d653e7703c9fc6 | [] | no_license | agusakov/lean_lib | c0e9cc29fc7d2518004e224376adeb5e69b5cc1a | f88d162da2f990b87c4d34f5f46bbca2bbc5948e | refs/heads/master | 1,642,141,461,087 | 1,557,395,798,000 | 1,557,395,798,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 426 | lean | import data.finset
namespace MAS114
namespace exercises_1
namespace Q06
def A : finset ℕ := [1,2,4].to_finset
def B : finset ℕ := [2,3,5].to_finset
def C : finset ℕ := [1,2,3,4,5].to_finset
def D : finset ℕ := [2].to_finset
def E : finset ℕ := [3,4].to_finset
lemma L1 : A ∪ B = C := dec_trivial
lemma L2 : A ∩ B = D ... |
962476db6b4f022d537185f86b3da3883e6472d0 | ec5a7ae10c533e1b1f4b0bc7713e91ecf829a3eb | /ijcar16/examples/cc20.lean | d25824e7d09aa22c18599f598880f86ced8d2a2e | [
"MIT"
] | permissive | leanprover/leanprover.github.io | cf248934af7c7e9aeff17cf8df3c12c5e7e73f1a | 071a20d2e059a2c3733e004c681d3949cac3c07a | refs/heads/master | 1,692,621,047,417 | 1,691,396,994,000 | 1,691,396,994,000 | 19,366,263 | 18 | 27 | MIT | 1,693,989,071,000 | 1,399,006,345,000 | Lean | UTF-8 | Lean | false | false | 619 | lean | /-
Example/test file for the congruence closure procedure described in the paper:
"Congruence Closure for Intensional Type Theory"
Daniel Selsam and Leonardo de Moura
The tactic `by blast` has been configured in this file to use just
the congruence closure procedure using the command
set_option blast.strategy... |
a61c5413ae5e92c2f3a5724c9ba9f1ee61575931 | 8cae430f0a71442d02dbb1cbb14073b31048e4b0 | /src/analysis/box_integral/partition/subbox_induction.lean | b059a5dae3ffc64723d25bbb8640301228c93636 | [
"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 | 10,655 | lean | /-
Copyright (c) 2021 Yury Kudryashov. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Yury Kudryashov
-/
import analysis.box_integral.box.subbox_induction
import analysis.box_integral.partition.tagged
/-!
# Induction on subboxes
> THIS FILE IS SYNCHRONIZED WITH MATHL... |
2663fa230a4f5e6d2ae6d20a5a6f2b7c2425ce51 | a9d0fb7b0e4f802bd3857b803e6c5c23d87fef91 | /tests/lean/run/elab_failure.lean | 80f2acef1ab19e43a09117ce1cc1174e6969c945 | [
"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 | 404 | lean | open bool nat
attribute nat.rec_on [reducible]
definition is_eq (a b : nat) : bool :=
nat.rec_on a
(λ b, nat.cases_on b tt (λb₁, ff))
(λ a₁ r₁ b, nat.cases_on b ff (λb₁, r₁ b₁))
b
example (a₁ : nat) (b : nat) : true :=
@nat.cases_on (λ (n : nat), true) b
true.intro
(λ (b₁ : _),
have aux : is_eq a₁ b₁ = ... |
6a16e30018635285377775f16044d3de0b56ebda | d0c6b2ba2af981e9ab0a98f6e169262caad4b9b9 | /stage0/src/Init/Core.lean | bd47ac1266cad07c27843fb17d0152629fcdccd3 | [
"Apache-2.0"
] | permissive | fizruk/lean4 | 953b7dcd76e78c17a0743a2c1a918394ab64bbc0 | 545ed50f83c570f772ade4edbe7d38a078cbd761 | refs/heads/master | 1,677,655,987,815 | 1,612,393,885,000 | 1,612,393,885,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 34,034 | lean | /-
Copyright (c) 2014 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Leonardo de Moura
notation, basic datatypes and type classes
-/
prelude
import Init.Prelude
import Init.SizeOf
universes u v w
def inline {α : Sort u} (a : α) : α := a
@[inl... |
583b594898211132e243399647ff3cb6c775b613 | d406927ab5617694ec9ea7001f101b7c9e3d9702 | /test/positivity.lean | fa2df257e3ffdc050444bed739f66ebfd03bb0b5 | [
"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 | 13,422 | lean | import algebra.order.interval
import algebra.order.smul
import analysis.normed.group.basic
import analysis.special_functions.pow
import combinatorics.simple_graph.density
import data.complex.exponential
import data.rat.nnrat
import data.real.ereal
import data.real.hyperreal
import data.real.sqrt
import tactic.positivit... |
d4be9c59aa7b81a0372b8e31ac673237f97a17a4 | 74addaa0e41490cbaf2abd313a764c96df57b05d | /Mathlib/algebra/algebra/operations_auto.lean | b0712e866340c840483e4a3cc46b899967416059 | [] | no_license | AurelienSaue/Mathlib4_auto | f538cfd0980f65a6361eadea39e6fc639e9dae14 | 590df64109b08190abe22358fabc3eae000943f2 | refs/heads/master | 1,683,906,849,776 | 1,622,564,669,000 | 1,622,564,669,000 | 371,723,747 | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 12,272 | lean | /-
Copyright (c) 2019 Kenny Lau. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Kenny Lau
-/
import Mathlib.PrePort
import Mathlib.Lean3Lib.init.default
import Mathlib.algebra.algebra.basic
import Mathlib.PostPort
universes u v u_1
namespace Mathlib
/-!
# Multiplic... |
56c77401ec72ef1d668c2c4bdd343fdcb55777c1 | 206422fb9edabf63def0ed2aa3f489150fb09ccb | /src/algebra/ordered_group.lean | 3f294e46a6732a4d6d9fd076015bb05b66b47852 | [
"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 | 30,515 | lean | /-
Copyright (c) 2016 Jeremy Avigad. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Jeremy Avigad, Leonardo de Moura, Mario Carneiro, Johannes Hölzl
-/
import algebra.ordered_monoid
set_option old_structure_cmd true
/-!
# Ordered groups
This file develops the basics... |
c358d45a6d150a10afda7de5dd28d7db7d526d12 | 9028d228ac200bbefe3a711342514dd4e4458bff | /src/data/int/range.lean | 3f5623682be5c1f802640e43d4ed6b6bb118c372 | [
"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 | 1,793 | lean | /-
Copyright (c) 2018 Kenny Lau. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Mario Carneiro and Kenny Lau
-/
import data.int.basic
import data.list.range
namespace int
/-- List enumerating `[m, n)`. -/
def range (m n : ℤ) : list ℤ :=
(list.range (to_nat (n-m))).ma... |
39008d429d02a1e3f30e027b87bb10e397597077 | 2c096fdfecf64e46ea7bc6ce5521f142b5926864 | /src/Lean/Meta/Tactic/Simp/Main.lean | 90feeaa5896a4bd456da3f8935f05a1ffc8a98c5 | [
"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 | Kha/lean4 | 1005785d2c8797ae266a303968848e5f6ce2fe87 | b99e11346948023cd6c29d248cd8f3e3fb3474cf | refs/heads/master | 1,693,355,498,027 | 1,669,080,461,000 | 1,669,113,138,000 | 184,748,176 | 0 | 0 | Apache-2.0 | 1,665,995,520,000 | 1,556,884,930,000 | Lean | UTF-8 | Lean | false | false | 43,710 | 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.Transform
import Lean.Meta.Tactic.Replace
import Lean.Meta.Tactic.UnifyEq
import Lean.Meta.Tactic.Simp.Rewrite
namespace Lean.Meta
namespa... |
ed51a7b458c92346956eb36ad106830c19f0bce2 | 9f1929110d7ce695e60c30a12c83161ea7eadc15 | /experiments/bench/pose10000.lean | 88f3569bf84124413856e043249f66a4bb57b6f4 | [] | no_license | andres-erbsen/coq-experiments | 4820d05608c445eba0ea965e23bd9cf39a5c418f | 2018edd397a23c0429d316c96e86f9be7a9678f1 | refs/heads/master | 1,619,935,106,811 | 1,578,518,728,000 | 1,578,518,728,000 | 120,850,328 | 1 | 1 | null | null | null | null | UTF-8 | Lean | false | false | 207 | lean | open tactic
lemma test : true :=
begin
iterate_exactly 10000 (do pose (`_) none `(trivial), skip),
exact trivial
end
-- 1.15user 0.07system 0:01.21elapsed 100%CPU (0avgtext+0avgdata 149704maxresident)k
|
b463c4b390d95be5035e5233da004580ce271ae6 | 947b78d97130d56365ae2ec264df196ce769371a | /tests/lean/parserPrio.lean | 135d5b604aa6230e99d907de5c2368c09aa739f0 | [
"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 | 873 | lean | new_frontend
-- New notation that overlaps with existing notation
syntax [myPair, 100] "(" term "," term ")" : term
macro_rules[myPair]
| `(($a, $b)) => `([$a, $b])
#eval (1, 2) -- not ambiguous since myPair parser has higher priority
theorem ex1 : (1, 2) = [1, 2] :=
rfl
-- Define macro for expanding the builtin t... |
a29e08b8416704dd89142b64e284f1e3d64c12d3 | 74addaa0e41490cbaf2abd313a764c96df57b05d | /Mathlib/Lean3Lib/data/buffer/parser_auto.lean | 4e6f8738152a5976732294fe7ee759692d3104e5 | [] | 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,192 | 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 Mathlib.PrePort
import Mathlib.Lean3Lib.init.default
import Mathlib.Lean3Lib.data.buffer
import Mathlib.Lean3Lib.data.dlist
universes l
namespace Math... |
4e9643f3dc28e6a6d02238e3f02eb1a9e07b1bd2 | 78630e908e9624a892e24ebdd21260720d29cf55 | /src/logic_propositional/prop_16.lean | 1085fe92eb507c5c85e39e314bee5216b34e6a35 | [
"CC0-1.0"
] | permissive | tomasz-lisowski/lean-logic-examples | 84e612466776be0a16c23a0439ff8ef6114ddbe1 | 2b2ccd467b49c3989bf6c92ec0358a8d6ee68c5d | refs/heads/master | 1,683,334,199,431 | 1,621,938,305,000 | 1,621,938,305,000 | 365,041,573 | 1 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 413 | lean | namespace prop_16
variables A B : Prop
theorem prop_16 : ((¬ A → B) ∧ (¬ A → ¬ B)) → A :=
assume h1: (¬ A → B) ∧ (¬ A → ¬ B),
have h2: ¬ A → B, from and.left h1,
have h3: ¬ A → ¬ B, from and.right h1,
show A, from (classical.by_contradiction
(assume h4: ¬ A,
have h5: B, from h2 h4,
have h6: ¬ B, from h3... |
c8bc6fe410f820e310f07868c8d1f3e2bbdfdda1 | 432d948a4d3d242fdfb44b81c9e1b1baacd58617 | /src/field_theory/galois.lean | f8bf27349dea19badf7639015d640c416933b051 | [
"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 | 18,827 | lean | /-
Copyright (c) 2020 Thomas Browning, Patrick Lutz. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Thomas Browning, Patrick Lutz
-/
import field_theory.normal
import field_theory.primitive_element
import field_theory.fixed
import ring_theory.power_basis
/-!
# Galois... |
5108aa3e46f48dc7f27c9a71760188bb8d64719f | 4b846d8dabdc64e7ea03552bad8f7fa74763fc67 | /library/tools/super/datatypes.lean | a30e44bfd3f6dfcd90eab7fad32d2ed4780ed3e6 | [
"Apache-2.0"
] | permissive | pacchiano/lean | 9324b33f3ac3b5c5647285160f9f6ea8d0d767dc | fdadada3a970377a6df8afcd629a6f2eab6e84e8 | refs/heads/master | 1,611,357,380,399 | 1,489,870,101,000 | 1,489,870,101,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 1,527 | lean | /-
Copyright (c) 2016 Gabriel Ebner. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Gabriel Ebner
-/
import .clause_ops .prover_state
open expr tactic monad
namespace super
meta def has_diff_constr_eq_l (c : clause) : tactic bool := do
env ← get_env,
return $ list.bo... |
99bcbb016466f9db7a6062ee5cb23b90b299da88 | a338c3e75cecad4fb8d091bfe505f7399febfd2b | /src/ring_theory/polynomial/gauss_lemma.lean | 7784656c1f9e640d71eaa929b7a6790986e68919 | [
"Apache-2.0"
] | permissive | bacaimano/mathlib | 88eb7911a9054874fba2a2b74ccd0627c90188af | f2edc5a3529d95699b43514d6feb7eb11608723f | refs/heads/master | 1,686,410,075,833 | 1,625,497,070,000 | 1,625,497,070,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 7,910 | 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 ring_theory.int.basic
import ring_theory.localization
/-!
# Gauss's Lemma
Gauss's Lemma is one of a few results pertaining to irreducibility of primitive pol... |
a63fe36307da0eec64692cfa81b2a546271111a8 | 47181b4ef986292573c77e09fcb116584d37ea8a | /src/for_mathlib/associated.lean | 7600f7655d25f68fa507670ac2681e6727d6cbff | [
"MIT"
] | permissive | RaitoBezarius/berkovich-spaces | 87662a2bdb0ac0beed26e3338b221e3f12107b78 | 0a49f75a599bcb20333ec86b301f84411f04f7cf | refs/heads/main | 1,690,520,666,912 | 1,629,328,012,000 | 1,629,328,012,000 | 332,238,095 | 4 | 0 | MIT | 1,629,312,085,000 | 1,611,414,506,000 | Lean | UTF-8 | Lean | false | false | 349 | lean | import algebra.associated
lemma primes_associated_of_dvd {α} [comm_cancel_monoid_with_zero α] {p q: α}
(p_prime: prime p) (q_prime: prime q) (dvd: p ∣ q): associated p q :=
begin
cases dvd with c hc,
cases ((q_prime.irreducible).is_unit_or_is_unit hc)
.resolve_left p_prime.not_unit with u hu,
exact ⟨ u, by... |
8d51dbbc77ce4a8a5563c63855ee53b6f7a5430f | 69d4931b605e11ca61881fc4f66db50a0a875e39 | /src/dynamics/circle/rotation_number/translation_number.lean | ef7d694ab59cbb91cf0843e54a1c6cdd712bc046 | [
"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 | 39,610 | 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 analysis.specific_limits
import order.iterate
import order.semiconj_Sup
import algebra.iterate_hom
/-!
# Translation number of a monotone real map tha... |
7984c5976f482d6b664a596f93ae1b0c3c93fea9 | 6432ea7a083ff6ba21ea17af9ee47b9c371760f7 | /tests/lean/run/repeatConv.lean | f731817ab2f1ace28657484f25e042303edd76b0 | [
"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 | 118 | lean | example : (fun x y => (0 + x) + (0 + y)) = Nat.add := by
conv =>
lhs
intro x y
repeat rw [Nat.zero_add]
|
d5066d9075db43a91a9bf191173ad3877ef2a9c4 | 8cae430f0a71442d02dbb1cbb14073b31048e4b0 | /src/ring_theory/ring_hom/finite.lean | 5b351cd00a69cc9f749fbede4eb480bbe053b11a | [
"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 | 1,186 | lean | /-
Copyright (c) 2021 Andrew Yang. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Andrew Yang
-/
import ring_theory.ring_hom_properties
/-!
# The meta properties of finite ring homomorphisms.
> THIS FILE IS SYNCHRONIZED WITH MATHLIB4.
> Any changes to this file requ... |
6222555fdb208ba1df01a4c2c338cee83ec68bee | 74addaa0e41490cbaf2abd313a764c96df57b05d | /Mathlib/data/nat/pairing.lean | f0956021e0eff25714bd772b4418737446a35170 | [] | 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,104 | 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, Mario Carneiro
Elegant pairing function.
-/
import Mathlib.PrePort
import Mathlib.Lean3Lib.init.default
import Mathlib.data.nat.sqrt
import Mathlib.data.set.... |
d87e860b21328d239bebd905c2a22c25d6311da6 | 1a61aba1b67cddccce19532a9596efe44be4285f | /library/init/logic.lean | d52f34bbef64d28fd1d3b0db203298ce5b8ee5d6 | [
"Apache-2.0"
] | permissive | eigengrau/lean | 07986a0f2548688c13ba36231f6cdbee82abf4c6 | f8a773be1112015e2d232661ce616d23f12874d0 | refs/heads/master | 1,610,939,198,566 | 1,441,352,386,000 | 1,441,352,494,000 | 41,903,576 | 0 | 0 | null | 1,441,352,210,000 | 1,441,352,210,000 | null | UTF-8 | Lean | false | false | 23,582 | lean | /-
Copyright (c) 2014 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Leonardo de Moura, Jeremy Avigad, Floris van Doorn
-/
prelude
import init.datatypes init.reserved_notation
/- implication -/
definition implies (a b : Prop) := a → b
lemma im... |
ee3eea2a23ff3466e3c7f9734fbcfa23b75d2ce9 | 8e381650eb2c1c5361be64ff97e47d956bf2ab9f | /src/spectrum_of_a_ring/structure_presheaf_stalks.lean | ca06185eeb366cbac68bcaa39038d1783a8102df | [] | no_license | alreadydone/lean-scheme | 04c51ab08eca7ccf6c21344d45d202780fa667af | 52d7624f57415eea27ed4dfa916cd94189221a1c | refs/heads/master | 1,599,418,221,423 | 1,562,248,559,000 | 1,562,248,559,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 4,722 | lean | /-
The stalks of the structure presheaf on the basis are local rings.
-/
import ring_theory.ideals
import ring_theory.localization
import to_mathlib.localization.local_rings
import to_mathlib.localization.localization_alt
import sheaves.stalk_of_rings_on_standard_basis
import spectrum_of_a_ring.structure_presheaf
im... |
dd65a0a916c6564da01ba720d31a57671ecf9a76 | d1a52c3f208fa42c41df8278c3d280f075eb020c | /src/Lean/Data/Lsp/InitShutdown.lean | e7b67c60ab4eb9fcabf0da03a4ba292853af3f9c | [
"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 | 3,343 | lean | /-
Copyright (c) 2020 Marc Huisinga. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Marc Huisinga, Wojciech Nawrocki
-/
import Lean.Data.Lsp.Capabilities
import Lean.Data.Lsp.Workspace
import Lean.Data.Json
/-! Functionality to do with initializing and shutting down
... |
1784fc5a8d682a9362c3f71b6a036188d59cbc4e | 2c41ae31b2b771ad5646ad880201393f5269a7f0 | /Lean/Qualities/Reliable.lean | b8a0a7c7c7bc47e49211ddaa71e900dc49e3912b | [] | no_license | kevinsullivan/Boehm | 926f25bc6f1a8b6bd47d333d936fdfc278228312 | 55208395bff20d48a598b7fa33a4d55a2447a9cf | refs/heads/master | 1,586,127,134,302 | 1,488,252,326,000 | 1,488,252,326,000 | 32,836,930 | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 416 | lean | import SystemModel.System
inductive Reliable (sys_type: SystemType): Prop
| intro : (exists reliable: sys_type ^.Contexts -> sys_type ^.Phases -> sys_type ^.Stakeholders -> @SystemInstance sys_type -> Prop,
forall c: sys_type ^.Contexts, forall p: sys_type ^.Phases,
forall s: sys_type ... |
cb3d4fc12c1423aeff8d3421d65eeeb37b4298e5 | c777c32c8e484e195053731103c5e52af26a25d1 | /src/probability/variance.lean | a0b0c08c87d910cce10ca5eaebf2d7443f1e0835 | [
"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 | 17,294 | lean | /-
Copyright (c) 2022 Sébastien Gouëzel. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Sébastien Gouëzel, Kexing Ying
-/
import probability.notation
import probability.integration
import measure_theory.function.l2_space
/-!
# Variance of random variables
We define t... |
1f6164f7c26458e8f8da2998689e46fdd458bb18 | cf39355caa609c0f33405126beee2739aa3cb77e | /tests/lean/run/disable_instance.lean | d7ddf5ba994c964f04510444c25abb33b2204eb7 | [
"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 | 141 | lean | open tactic
#eval mk_instance `(inhabited ℕ)
local attribute [-instance] nat.inhabited
#eval success_if_fail $ mk_instance `(inhabited ℕ) |
d101c65b7e21ad8756ea37dbf8d4d9fae40fc9ba | 6432ea7a083ff6ba21ea17af9ee47b9c371760f7 | /src/Init/Data/Array/Basic.lean | dfabaef3acda37d12bd5e52370f2f5c29615ee28 | [
"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 | 29,028 | 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.WFTactics
import Init.Data.Nat.Basic
import Init.Data.Fin.Basic
import Init.Data.UInt.Basic
import Init.Data.Repr
import Init.Data.ToStr... |
50ed0a50e5f234d1d96c2a5da0e11e984d30ae74 | 80746c6dba6a866de5431094bf9f8f841b043d77 | /src/tactic/basic.lean | 3690e9694a94e4e43897d423d544ee2d01a1dbdd | [
"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 | 29,546 | lean | /-
Copyright (c) 2018 Mario Carneiro. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Mario Carneiro, Simon Hudon, Scott Morrison, Keeley Hoek
-/
import data.dlist.basic category.basic meta.expr meta.rb_map
namespace expr
open tactic
attribute [derive has_reflect] bin... |
2e4a910df96813858f48384d6993cdc41ad0ed34 | 39ef80a23ca45a679ce3047fabd002248e3ee410 | /src/real-analysis/05_sequence_limits.lean | c5bb7f3b665e20280cfbdbb7b80a988e184a911c | [
"MIT"
] | permissive | sanjitdp/lean-projects | 5baa4d97f38b0d5af41e4960dc69ecc7c65a1e4c | 05b9a58e8bda3baebd4269536db39815a73cb123 | refs/heads/main | 1,690,059,014,811 | 1,630,696,075,000 | 1,630,696,075,000 | 399,831,128 | 0 | 1 | null | null | null | null | UTF-8 | Lean | false | false | 5,894 | lean | import data.real.basic
import algebra.group.pi
import tuto_lib
notation `|`x`|` := abs x
/-
In this file we manipulate the elementary definition of limits of
sequences of real numbers.
mathlib has a much more general definition of limits, but here
we want to practice using the logical operators and relations
covered... |
be854125f6385ff875a71e8bcf5b5b48dd214e41 | 206422fb9edabf63def0ed2aa3f489150fb09ccb | /src/ring_theory/ideal/prod.lean | 010ec104adaf7c71e8a4481e8465374cb1e1d5e9 | [
"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 | 7,497 | 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 ring_theory.ideal.operations
/-!
# Ideals in product rings
For commutative rings `R` and `S` and ideals `I ≤ R`, `J ≤ S`, we define `ideal.prod I J` as the
pro... |
df5a20125fc8750995977b5d49133b86dbef6d2c | 367134ba5a65885e863bdc4507601606690974c1 | /src/data/set/intervals/basic.lean | da0740bee03f9e18f6aa618f6fa6d2ead17cade2 | [
"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 | 51,080 | 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, Patrick Massot, Yury Kudryashov, Rémy Degenne
-/
import algebra.ordered_group
import data.set.basic
/-!
# Intervals
In any preorder `α`, we define int... |
fe438cabad84a2590a68db38d88a9ffde4a02d28 | 80cc5bf14c8ea85ff340d1d747a127dcadeb966f | /src/analysis/special_functions/exp_log.lean | 2a989b4725a7993a13bb52d735cd38d5750f664c | [
"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,345 | lean | /-
Copyright (c) 2018 Chris Hughes. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Chris Hughes, Abhimanyu Pallavi Sudhir, Jean Lo, Calle Sönne
-/
import data.complex.exponential
import analysis.complex.basic
import analysis.calculus.mean_value
/-!
# Complex and real... |
f430b883959a596830e49d843fc138adb6baef17 | 8e6cad62ec62c6c348e5faaa3c3f2079012bdd69 | /src/ring_theory/power_series/basic.lean | 7196fec05bb6dc30474bff8f43707fc1fa2d8f86 | [
"Apache-2.0"
] | permissive | benjamindavidson/mathlib | 8cc81c865aa8e7cf4462245f58d35ae9a56b150d | fad44b9f670670d87c8e25ff9cdf63af87ad731e | refs/heads/master | 1,679,545,578,362 | 1,615,343,014,000 | 1,615,343,014,000 | 312,926,983 | 0 | 0 | Apache-2.0 | 1,615,360,301,000 | 1,605,399,418,000 | Lean | UTF-8 | Lean | false | false | 63,206 | lean | /-
Copyright (c) 2019 Johan Commelin. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Johan Commelin, Kenny Lau
-/
import data.mv_polynomial
import linear_algebra.std_basis
import ring_theory.ideal.operations
import ring_theory.multiplicity
import ring_theory.algebra_to... |
e17806254b1ec3d07822cae4909ad550e7a141a7 | 4d2583807a5ac6caaffd3d7a5f646d61ca85d532 | /src/analysis/normed_space/hahn_banach.lean | 6c29d60b2f2a022bfa485926ffa4aae15508e523 | [
"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 | 7,694 | lean | /-
Copyright (c) 2020 Yury Kudryashov All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Yury Kudryashov, Heather Macbeth
-/
import analysis.convex.cone
import analysis.normed_space.extend
/-!
# Hahn-Banach theorem
In this file we prove a version of Hahn-Banach theorem f... |
0821b302b622eb7e6078b29a0eb8a090ba7fd4a3 | 4727251e0cd73359b15b664c3170e5d754078599 | /src/topology/algebra/order/left_right.lean | 21e4190f327e4d53b75ba190b84b49025704c319 | [
"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,488 | lean | /-
Copyright (c) 2021 Anatole Dedecker. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Anatole Dedecker
-/
import topology.continuous_on
/-!
# Left and right continuity
In this file we prove a few lemmas about left and right continuous functions:
* `continuous_withi... |
42bf4b360577bb4e90d363119677f2dd60a84ee1 | f22a91842f18b5e855075b9becd55d2233756c6a | /src/ch03_03.lean | 23da6303f4e64c137614ebe3b97b51a4e0aea97f | [] | no_license | kckennylau/tao-analysis-one | 48cef1ee896d6703fcaf47ce5548e44f88901a0e | 2bd2d14c3c722bb36526c5a4e6b87618b2c081b1 | refs/heads/master | 1,621,002,517,963 | 1,514,151,057,000 | 1,514,151,057,000 | 115,971,702 | 0 | 0 | null | 1,514,864,495,000 | 1,514,864,495,000 | null | UTF-8 | Lean | false | false | 4,100 | lean | --------------------------------------------------------------------------------
-- Chapter 3 - Set theory
-- Section 3 - Functions
-- Analysis 1, Third Edition, Tao
--------------------------------------------------------------------------------
import data.set.function data.equiv
open function set
variables {α β γ... |
e8d61a1c83006e6a6f3871d1077973b4ce46247c | 491068d2ad28831e7dade8d6dff871c3e49d9431 | /hott/algebra/fundamental_group.hlean | 3bd297bbb391d2983954d2cf6d733570971e6b15 | [
"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 | 2,000 | 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
fundamental group of a pointed space
-/
import hit.trunc algebra.group types.pointed
open core eq trunc algebra is_trunc pointed
namespace fundamental_group
se... |
0e209751de9434ca59c245730f47e7f8a639646f | 35677d2df3f081738fa6b08138e03ee36bc33cad | /test/lint.lean | bc48c3e8b7ce451279d8a64926b3e5962364b5fd | [
"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 | 4,688 | lean | import tactic.lint
def foo1 (n m : ℕ) : ℕ := n + 1
def foo2 (n m : ℕ) : m = m := by refl
lemma foo3 (n m : ℕ) : ℕ := n - m
lemma foo.foo (n m : ℕ) : n ≥ n := le_refl n
instance bar.bar : has_add ℕ := by apply_instance -- we don't check the name of instances
lemma foo.bar (ε > 0) : ε = ε := rfl -- >/≥ is allowed in bi... |
4dbd1020aa2c195e7791cf6fb911a7350639aca6 | 5d166a16ae129621cb54ca9dde86c275d7d2b483 | /library/init/meta/name.lean | a545eb0a14726d47d2620cf8703cd40efbb5ecc0 | [
"Apache-2.0"
] | permissive | jcarlson23/lean | b00098763291397e0ac76b37a2dd96bc013bd247 | 8de88701247f54d325edd46c0eed57aeacb64baf | refs/heads/master | 1,611,571,813,719 | 1,497,020,963,000 | 1,497,021,515,000 | 93,882,536 | 1 | 0 | null | 1,497,029,896,000 | 1,497,029,896,000 | null | UTF-8 | Lean | false | false | 3,379 | lean | /-
Copyright (c) 2016 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Leonardo de Moura
-/
prelude
import init.data.ordering init.coe
/- Reflect a C++ name object. The VM replaces it with the C++ implementation. -/
inductive name
| anonymous : n... |
3b268eaa7fb7a2e1ffe87e19b83f7eae1f59ec4e | d406927ab5617694ec9ea7001f101b7c9e3d9702 | /src/number_theory/lucas_lehmer.lean | 77b6169656d51cc04dc057229d4c4874546a80ba | [
"Apache-2.0"
] | permissive | alreadydone/mathlib | dc0be621c6c8208c581f5170a8216c5ba6721927 | c982179ec21091d3e102d8a5d9f5fe06c8fafb73 | refs/heads/master | 1,685,523,275,196 | 1,670,184,141,000 | 1,670,184,141,000 | 287,574,545 | 0 | 0 | Apache-2.0 | 1,670,290,714,000 | 1,597,421,623,000 | Lean | UTF-8 | Lean | false | false | 16,900 | lean | /-
Copyright (c) 2020 Scott Morrison. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Mario Carneiro, Scott Morrison, Ainsley Pahljina
-/
import data.nat.parity
import data.pnat.interval
import data.zmod.basic
import group_theory.order_of_element
import ring_theory.fint... |
20f895d81a1086539a1bb1a4780f6ebeed04fe9c | 6432ea7a083ff6ba21ea17af9ee47b9c371760f7 | /tests/lean/run/emptycOverloadIssues.lean | c13733ba3793914229ab215b6813e1d7cb3dbf07 | [
"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 | 90 | lean | structure A :=
(x : Nat := 10)
abbrev B := A
structure C :=
(a : A := {})
(b : B := {})
|
53844219d26bfd53033fff7613d1bf19702d9b17 | 74addaa0e41490cbaf2abd313a764c96df57b05d | /Mathlib/ring_theory/witt_vector/is_poly.lean | e4dc18e2ba278204479bbca1f0cb7785764bddb7 | [] | 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 | 19,018 | lean | /-
Copyright (c) 2020 Johan Commelin. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Johan Commelin, Robert Y. Lewis
-/
import Mathlib.PrePort
import Mathlib.Lean3Lib.init.default
import Mathlib.algebra.ring.ulift
import Mathlib.ring_theory.witt_vector.basic
import Mat... |
9d7498db99e867d86386e73154a2d60dc62d45ee | d7189ea2ef694124821b033e533f18905b5e87ef | /galois/network/agent_facts.lean | d40358baa831692528ea1f369b3e8631f10db381 | [
"Apache-2.0"
] | permissive | digama0/lean-protocol-support | eaa7e6f8b8e0d5bbfff1f7f52bfb79a3b11b0f59 | cabfa3abedbdd6fdca6e2da6fbbf91a13ed48dda | refs/heads/master | 1,625,421,450,627 | 1,506,035,462,000 | 1,506,035,462,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 10,380 | lean | -- author: Ben Sherman
import galois.network.network_implementation
galois.network.network_local_abs
galois.temporal.fixpoint
galois.temporal.classical
galois.temporal.LTS
universes u v
/-- reflexive-transitive closure of a relation -/
inductive RTclosure {A : Type u} (R : A → A → Prop) (... |
6f10bb407e1ccea727751d286401dbbdd813990c | 74addaa0e41490cbaf2abd313a764c96df57b05d | /Mathlib/category_theory/comma_auto.lean | 1e7b7ddd61f1bada8fe71a28caa644f236b42465 | [] | 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 | 11,221 | lean | /-
Copyright (c) 2018 Scott Morrison. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Scott Morrison, Johan Commelin, Bhavik Mehta
-/
import Mathlib.PrePort
import Mathlib.Lean3Lib.init.default
import Mathlib.category_theory.natural_isomorphism
import Mathlib.PostPort
... |
c6b33b1d3d6e2181870bcfe93ed68bb67b44aa6e | 675b8263050a5d74b89ceab381ac81ce70535688 | /src/data/nat/enat.lean | cebdd3fa0e45c45cb1a20e54c47bc4b2e4b338da | [
"Apache-2.0"
] | permissive | vozor/mathlib | 5921f55235ff60c05f4a48a90d616ea167068adf | f7e728ad8a6ebf90291df2a4d2f9255a6576b529 | refs/heads/master | 1,675,607,702,231 | 1,609,023,279,000 | 1,609,023,279,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 14,802 | lean | /-
Copyright (c) 2018 Chris Hughes. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Chris Hughes
-/
import data.pfun
import tactic.norm_num
import data.equiv.mul_add
/-!
# Natural numbers with infinity
The natural numbers and an extra `top` element `⊤`.
## Main defin... |
3fa084199fb7d0a0348f9de8d6ba11d3531835b0 | 22e97a5d648fc451e25a06c668dc03ac7ed7bc25 | /src/analysis/normed_space/multilinear.lean | 1a7a22d119f70044fe46ebb4a3f959e8ce8c67ff | [
"Apache-2.0"
] | permissive | keeferrowan/mathlib | f2818da875dbc7780830d09bd4c526b0764a4e50 | aad2dfc40e8e6a7e258287a7c1580318e865817e | refs/heads/master | 1,661,736,426,952 | 1,590,438,032,000 | 1,590,438,032,000 | 266,892,663 | 0 | 0 | Apache-2.0 | 1,590,445,835,000 | 1,590,445,835,000 | null | UTF-8 | Lean | false | false | 55,928 | lean | /-
Copyright (c) 2020 Sébastien Gouëzel. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Sébastien Gouëzel
-/
import analysis.normed_space.operator_norm
import topology.algebra.multilinear
/-!
# Operator norm on the space of continuous multilinear maps
When `f` is a c... |
28ffa1e5283139a928f0121a26c4329a1ed610f3 | 57aec6ee746bc7e3a3dd5e767e53bd95beb82f6d | /stage0/src/Init/Data/Array/Basic.lean | 5f28d51a6d7a2228faf74ac784e6afa9423c4e53 | [
"Apache-2.0"
] | permissive | collares/lean4 | 861a9269c4592bce49b71059e232ff0bfe4594cc | 52a4f535d853a2c7c7eea5fee8a4fa04c682c1ee | refs/heads/master | 1,691,419,031,324 | 1,618,678,138,000 | 1,618,678,138,000 | 358,989,750 | 0 | 0 | Apache-2.0 | 1,618,696,333,000 | 1,618,696,333,000 | null | UTF-8 | Lean | false | false | 27,939 | 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.Nat.Basic
import Init.Data.Fin.Basic
import Init.Data.UInt
import Init.Data.Repr
import Init.Data.ToString.Basic
import Init.Util
u... |
b4324529e5c894efb33d4543a0412a12ce0a79f4 | 8cae430f0a71442d02dbb1cbb14073b31048e4b0 | /src/analysis/normed/ring/seminorm.lean | 21c6fbd9261b76b3785fa7fef129ad99f649e0ef | [
"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 | 10,035 | lean | /-
Copyright (c) 2022 María Inés de Frutos-Fernández. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: María Inés de Frutos-Fernández, Yaël Dillies
-/
import analysis.normed.field.basic
/-!
# Seminorms and norms on rings
> THIS FILE IS SYNCHRONIZED WITH MATHLIB4.
> Any... |
b45c761f202e35a3ff729f2480659961b56a10f4 | f57749ca63d6416f807b770f67559503fdb21001 | /hott/types/trunc.hlean | 66a7b421a7958f276ce31b0b8d9f11ff191c0080 | [
"Apache-2.0"
] | permissive | aliassaf/lean | bd54e85bed07b1ff6f01396551867b2677cbc6ac | f9b069b6a50756588b309b3d716c447004203152 | refs/heads/master | 1,610,982,152,948 | 1,438,916,029,000 | 1,438,916,029,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 10,161 | hlean | /-
Copyright (c) 2015 Jakob von Raumer. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Floris van Doorn
Properties of is_trunc and trunctype
-/
-- NOTE: the fact that (is_trunc n A) is a mere proposition is proved in .hprop_trunc
import types.pi types.eq types.equiv... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.