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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
cdea452d5ac7deacc52ee29de69fb97edf165834 | 35677d2df3f081738fa6b08138e03ee36bc33cad | /src/topology/list.lean | dc5048331f6489b51a8b70a81024331b12ee526f | [
"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 | 8,452 | lean | /-
Copyright (c) 2019 Reid Barton. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Johannes Hölzl
Topology on lists and vectors.
-/
import topology.constructions
open topological_space set filter
open_locale topological_space
variables {α : Type*} {β : Type*}
instan... |
6b2c59656d4397f46fc7210e8b468a2ef73fc56f | ce6917c5bacabee346655160b74a307b4a5ab620 | /src/ch2/ex0904.lean | 5d90824494a0b2a6aaba8c6ccad21bbba0af4fa3 | [] | no_license | Ailrun/Theorem_Proving_in_Lean | ae6a23f3c54d62d401314d6a771e8ff8b4132db2 | 2eb1b5caf93c6a5a555c79e9097cf2ba5a66cf68 | refs/heads/master | 1,609,838,270,467 | 1,586,846,743,000 | 1,586,846,743,000 | 240,967,761 | 1 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 466 | lean | namespace hidden
universe u
constant list : Type u → Type u
namespace list
constant cons : Π {α : Type u}, α → list α → list α
constant nil : Π {α : Type u}, list α
constant append : Π {α : Type u}, list α → list α → list α
end list
end hidden
open hidden.list
variable α : Type
variable a : α
var... |
5169d3350c5258df3bcc806da20b2bb1660a3758 | 130c49f47783503e462c16b2eff31933442be6ff | /src/Lean/Meta/Tactic/Simp/Rewrite.lean | 8bcb1ac7e30de0bf2918493f0e58e7b1844a9fc3 | [
"Apache-2.0"
] | permissive | Hazel-Brown/lean4 | 8aa5860e282435ffc30dcdfccd34006c59d1d39c | 79e6732fc6bbf5af831b76f310f9c488d44e7a16 | refs/heads/master | 1,689,218,208,951 | 1,629,736,869,000 | 1,629,736,896,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 6,250 | 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.SynthInstance
import Lean.Meta.Tactic.Simp.Types
namespace Lean.Meta.Simp
def synthesizeArgs (lemmaName : Name) (xs : Array Expr) (bis : ... |
d5ed7dd14ff7b913346446f677c33ef9dcc29d90 | 4a092885406df4e441e9bb9065d9405dacb94cd8 | /src/for_mathlib/finsupp_prod_inv.lean | d7f705e8e6f70bb69a7a895441226018d1ed2819 | [
"Apache-2.0"
] | permissive | semorrison/lean-perfectoid-spaces | 78c1572cedbfae9c3e460d8aaf91de38616904d8 | bb4311dff45791170bcb1b6a983e2591bee88a19 | refs/heads/master | 1,588,841,765,494 | 1,554,805,620,000 | 1,554,805,620,000 | 180,353,546 | 0 | 1 | null | 1,554,809,880,000 | 1,554,809,880,000 | null | UTF-8 | Lean | false | false | 883 | lean | import data.finsupp
universes u v w
namespace finsupp
variables {α : Type u} {β : Type v} {γ : Type w}
variables [decidable_eq α] [decidable_eq β] [add_group β] [comm_group γ]
variables {g : α →₀ β} {h h₁ h₂ : α → β → γ}
theorem prod_mul_distrib : finsupp.prod g (λ a b, h₁ a b * h₂ a b) =
finsupp.prod g h₁ * fins... |
ad1fa462084e4b0bcdfb0691b068122a98f09383 | cc62cd292c1acc80a10b1c645915b70d2cdee661 | /src/category_theory/types/functor.lean | 49faa80544cf7387f4261a47d1ee48f795e4c52d | [] | no_license | RitaAhmadi/lean-category-theory | 4afb881c4b387ee2c8ce706c454fbf9db8897a29 | a27b4ae5eac978e9188d2e867c3d11d9a5b87a9e | refs/heads/master | 1,651,786,183,402 | 1,565,604,314,000 | 1,565,604,314,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 1,087 | lean | -- -- Copyright (c) 2018 Scott Morrison. All rights reserved.
-- -- Released under Apache 2.0 license as described in the file LICENSE.
-- -- Authors: Scott Morrison
-- import category_theory.types
-- import category_theory.tactics.obviously
-- open category_theory
-- universes u v
-- instance functor_of_functor (F... |
d96a60368b67616f57c2ad4e7da76d886921b62a | 4d2583807a5ac6caaffd3d7a5f646d61ca85d532 | /src/ring_theory/witt_vector/witt_polynomial.lean | 1e469e6505c1751921ceeaed396d299258fad92c | [
"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 | 10,817 | 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 algebra.char_p.invertible
import data.fintype.card
import data.mv_polynomial.variables
import data.mv_polynomial.comm_ring
import data.mv_pol... |
c68d5c8009aa75c2ffbfc076cc27215de216654b | 33340b3a23ca62ef3c8a7f6a2d4e14c07c6d3354 | /dlo/dnf.lean | 0e311fd734813268736a076b8a88f989e0fa273c | [] | no_license | lclem/cooper | 79554e72ced343c64fed24b2d892d24bf9447dfe | 812afc6b158821f2e7dac9c91d3b6123c7a19faf | refs/heads/master | 1,607,554,257,488 | 1,578,694,133,000 | 1,578,694,133,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 5,261 | lean | import .nnf
open list
-- Requires : nqfree arg-0
def dnf_core : formula_dlo → list (list atom_dlo)
| (formula_dlo.true) := [[]]
| (formula_dlo.false) := []
| (formula_dlo.atom a) := [[a]]
| (formula_dlo.and p q) := map append_pair $ product (dnf_core p) (dnf_core q)
| (formula_dlo.or p q) := dnf_core p ++ dnf_core q... |
d2fd1043ff6447d4fab20ac7388246060ce21997 | 690889011852559ee5ac4dfea77092de8c832e7e | /src/data/fintype.lean | 9cc3c4441c59160d0a4a3a7b204ebf0f07887451 | [
"Apache-2.0"
] | permissive | williamdemeo/mathlib | f6df180148f8acc91de9ba5e558976ab40a872c7 | 1fa03c29f9f273203bbffb79d10d31f696b3d317 | refs/heads/master | 1,584,785,260,929 | 1,572,195,914,000 | 1,572,195,913,000 | 138,435,193 | 0 | 0 | Apache-2.0 | 1,529,789,739,000 | 1,529,789,739,000 | null | UTF-8 | Lean | false | false | 33,776 | lean | /-
Copyright (c) 2017 Mario Carneiro. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Author: Mario Carneiro
Finite types.
-/
import data.finset algebra.big_operators data.array.lemmas logic.unique
import tactic.wlog
universes u v
variables {α : Type*} {β : Type*} {γ : Type*}
... |
b01c73bf04d746c783ebe0c5dc548bf73aba329a | 618003631150032a5676f229d13a079ac875ff77 | /src/measure_theory/l1_space.lean | cf57f4c0c0005eb299894ac8a55b1f3e5fddf065 | [
"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 | 28,706 | 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 measure_theory.ae_eq_fun
/-!
# Integrable functions and `L¹` space
In the first part of this file, the predicate `integrable` is defined and basic properties o... |
e412c0114de40456346a3edc6ad229e6b047690a | cf39355caa609c0f33405126beee2739aa3cb77e | /tests/lean/derive.lean | f1ea5bdb53d3062949f3c40919fd590d5dceedb7 | [
"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 | 371 | lean | @[derive has_reflect]
inductive foo (α β : Type*)
| bar : ℕ → foo
| baz : foo → α → foo
#check foo.has_reflect
-- indexed families
@[derive [decidable_eq, has_sizeof]]
inductive {u} foo' (α β : Type u) (n : nat) : nat → Type u
| bar : ℕ → foo' 0
| baz (n : nat) : foo' n → α → foo' (nat.succ n)
#check foo'.decidable... |
7350b8d876249f9f2af6084e4633e44c104da574 | f3be49eddff7edf577d3d3666e314d995f7a6357 | /TBA.lean | 2d170c77c722551f2d12274fc93416813d40eb64 | [] | no_license | IPDSnelting/tba-2021 | 8b930bcd2f4aae44a2ddc86e72b77f84e6d46e82 | b6390e55b768423d3266969e81d19290129c5914 | refs/heads/master | 1,686,754,693,583 | 1,625,135,602,000 | 1,625,136,365,000 | 355,124,341 | 50 | 7 | null | 1,625,133,762,000 | 1,617,699,824,000 | Lean | UTF-8 | Lean | false | false | 95 | lean | import Leanpkg
-- should print 'nightly-2021-04-06' or later
#eval Leanpkg.leanVersionString
|
2dc08a4ae24a52187a2fc3965ae7a9b701ea867f | bb31430994044506fa42fd667e2d556327e18dfe | /src/field_theory/minpoly/gcd_monoid.lean | 81719806b40658b6b8426cd11ce80a17c86ed087 | [
"Apache-2.0"
] | permissive | sgouezel/mathlib | 0cb4e5335a2ba189fa7af96d83a377f83270e503 | 00638177efd1b2534fc5269363ebf42a7871df9a | refs/heads/master | 1,674,527,483,042 | 1,673,665,568,000 | 1,673,665,568,000 | 119,598,202 | 0 | 0 | null | 1,517,348,647,000 | 1,517,348,646,000 | null | UTF-8 | Lean | false | false | 7,247 | lean | /-
Copyright (c) 2019 Riccardo Brasca. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Riccardo Brasca
-/
import data.polynomial.field_division
import ring_theory.adjoin_root
import field_theory.minpoly.field
import ring_theory.polynomial.gauss_lemma
/-!
# Minimal poly... |
fa4bb7d3ac9c04a909a35dea2835e4f093a530ff | d406927ab5617694ec9ea7001f101b7c9e3d9702 | /src/algebra/regular/basic.lean | a4c3aaa361cc930a6c0635f68e422dbefff2a966 | [
"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,669 | lean | /-
Copyright (c) 2021 Damiano Testa. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Damiano Testa
-/
import algebra.group.commute
import algebra.order.monoid.lemmas
import algebra.group_with_zero.basic
/-!
# Regular elements
> THIS FILE IS SYNCHRONIZED WITH MATHLIB4.... |
32a206472e6ae02f11d585d636674a9c8fe11665 | bbecf0f1968d1fba4124103e4f6b55251d08e9c4 | /src/algebra/order/nonneg.lean | ff1b7b90c367dcfde66510f98a9ff27a8b16c28b | [
"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 | 11,048 | lean | /-
Copyright (c) 2021 Floris van Doorn. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Floris van Doorn
-/
import algebra.order.sub
import algebra.order.with_zero
import algebra.archimedean
import order.lattice_intervals
import order.conditionally_complete_lattice
/-!... |
9678cfebb36a2ad16f49dcaa6d4f1a69b1e384cd | 957a80ea22c5abb4f4670b250d55534d9db99108 | /library/init/data/option_t.lean | 58829bf8ec0e587a83e9fbb3f7591c2aca700e55 | [
"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 | 2,258 | 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
-/
prelude
import init.meta.interactive init.category.transformers
universes u v
def option_t (m : Type u → Type v) [monad m] (α : Type u) : Type v :=
m (opt... |
cf61fb1fef52292a3f32c1f98eb052ef100f9b65 | 63abd62053d479eae5abf4951554e1064a4c45b4 | /src/tactic/zify.lean | f7a01377658f098e160bcf2c3f46fb66f54936b9 | [
"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 | 5,338 | lean | /-
Copyright (c) 2020 Robert Y. Lewis. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Robert Y. Lewis
-/
import tactic.norm_cast
import data.int.cast
/-!
# A tactic to shift `ℕ` goals to `ℤ`
It is often easier to work in `ℤ`, where subtraction is well behaved, than ... |
07af5d7a8980e26fec3c1f69428ca237e95db0f2 | d406927ab5617694ec9ea7001f101b7c9e3d9702 | /test/linarith.lean | 1d127062a60e555651021bb176aa59b2f2005350 | [
"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 | 11,041 | lean | import tactic.linarith
example {α : Type} (_inst : Π (a : Prop), decidable a)
[linear_ordered_field α]
{a b c : α}
(ha : a < 0)
(hb : ¬b = 0)
(hc' : c = 0)
(h : (1 - a) * (b * b) ≤ 0)
(hc : 0 ≤ 0)
(this : -(a * -b * -b + b * -b + 0) = (1 - a) * (b * b))
(h : (1 - a) * (b * b) ≤ 0) :
0 < 1 - a :=
be... |
12e2300816c30a2f5e0349fad8091b2f9c3e1c4e | 8e6cad62ec62c6c348e5faaa3c3f2079012bdd69 | /src/data/polynomial/reverse.lean | 70bccafe4a3fa5d51242c1201bd185298e3aa046 | [
"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 | 11,409 | lean | /-
Copyright (c) 2020 Damiano Testa. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Damiano Testa
-/
import data.polynomial.erase_lead
import data.polynomial.degree
/-!
# Reverse of a univariate polynomial
The main definition is `reverse`. Applying `reverse` to a po... |
44b058bcea9f9982cc1300a62e6ad19a3b85fbad | f618aea02cb4104ad34ecf3b9713065cc0d06103 | /src/topology/metric_space/emetric_space.lean | 0442a4b111341f0b512a508bcf8b7b68bc103670 | [
"Apache-2.0"
] | permissive | joehendrix/mathlib | 84b6603f6be88a7e4d62f5b1b0cbb523bb82b9a5 | c15eab34ad754f9ecd738525cb8b5a870e834ddc | refs/heads/master | 1,589,606,591,630 | 1,555,946,393,000 | 1,555,946,393,000 | 182,813,854 | 0 | 0 | null | 1,555,946,309,000 | 1,555,946,308,000 | null | UTF-8 | Lean | false | false | 31,726 | lean | /-
Copyright (c) 2015, 2017 Jeremy Avigad. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Extended metric spaces.
Authors: Jeremy Avigad, Robert Y. Lewis, Johannes Hölzl, Mario Carneiro, Sébastien Gouëzel
This file is devoted to the definition and study of `emetric_spaces`, i... |
d9144340cb27c0bc787a80c7269ebd256d480fc1 | 4727251e0cd73359b15b664c3170e5d754078599 | /src/data/polynomial/induction.lean | b1c9de63a0e8b4cb233cf6171919a404dc7b6370 | [
"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,154 | 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.coeff
/-!
# Theory of univariate polynomials
The main results are `induction_on` and `as_sum`.
-/... |
15cd17c6f370943a9c3ddd0e12aa519ab1ff66b4 | ea5678cc400c34ff95b661fa26d15024e27ea8cd | /exponential_complex1.lean | 1e7192d89e42b420935a0db0ce7b340f7ab8d91c | [] | no_license | ChrisHughes24/leanstuff | dca0b5349c3ed893e8792ffbd98cbcadaff20411 | 9efa85f72efaccd1d540385952a6acc18fce8687 | refs/heads/master | 1,654,883,241,759 | 1,652,873,885,000 | 1,652,873,885,000 | 134,599,537 | 1 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 23,353 | lean | import data.complex.basic data.real.cau_seq tactic.norm_num data.nat.basic tactic.ring algebra.archimedean .limits data.nat.choose
section a
open real nat is_absolute_value finset
noncomputable theory
local attribute [instance, priority 0] classical.prop_decidable
lemma pow_inv' {α : Type*} [discrete_field α] (a : α) ... |
180262fbe5c6dc158602ca267967f126a158f130 | 947b78d97130d56365ae2ec264df196ce769371a | /src/Lean/Util/ForEachExpr.lean | 7221b7f9fd99aefeff91ee5f97039762c3de8add | [
"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,453 | 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.Expr
import Lean.Util.MonadCache
namespace Lean
/-
Remark: we cannot use the caching trick used at `FindExpr` and `ReplaceExpr` because they
ma... |
b292703d649948071bdec0380367ebf09fd232d1 | 9dc8cecdf3c4634764a18254e94d43da07142918 | /src/order/conditionally_complete_lattice.lean | 679c79d02b05b17f00667158a7e7a024674ff498 | [
"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 | 53,221 | lean | /-
Copyright (c) 2018 Sébastien Gouëzel. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Sébastien Gouëzel
-/
import order.bounds
import data.set.intervals.basic
import data.set.finite
import data.set.lattice
/-!
# Theory of conditionally complete lattices.
A conditio... |
3d67a39675923674dff34e5d06200c552e79ab0b | cf39355caa609c0f33405126beee2739aa3cb77e | /tests/lean/run/968.lean | 904daac779562455c2f4fcbc60b2e71e778aacb3 | [
"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 | 215 | lean | variables (A : Type) [inhabited A]
definition f (a : A) : A := a
#check @f nat nat.inhabited
structure foo :=
(a : A)
#check @foo nat nat.inhabited
inductive bla
| mk : A → bla
#check @bla nat nat.inhabited
|
48802fe18a1362b2aa980b514e05ac646b58b0d3 | 4727251e0cd73359b15b664c3170e5d754078599 | /src/data/nat/pairing.lean | 3b61b8826f8397d41b1d61ef96a48aa8241f81c9 | [
"Apache-2.0"
] | permissive | Vierkantor/mathlib | 0ea59ac32a3a43c93c44d70f441c4ee810ccceca | 83bc3b9ce9b13910b57bda6b56222495ebd31c2f | refs/heads/master | 1,658,323,012,449 | 1,652,256,003,000 | 1,652,256,003,000 | 209,296,341 | 0 | 1 | Apache-2.0 | 1,568,807,655,000 | 1,568,807,655,000 | null | UTF-8 | Lean | false | false | 5,362 | 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
-/
import data.nat.sqrt
import data.set.lattice
/-!
# Naturals pairing function
This file defines a pairing function for the naturals as fol... |
3d2048ccf76ff6f0f258688376353ddfbb337b67 | 8cae430f0a71442d02dbb1cbb14073b31048e4b0 | /src/category_theory/limits/preserves/filtered.lean | aab016a35621e71ea6a3703ac0f33efe7889c39b | [
"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,822 | lean | /-
Copyright (c) 2021 Scott Morrison. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Scott Morrison, Justus Springer
-/
import category_theory.limits.preserves.basic
import category_theory.filtered
/-!
# Preservation of filtered colimits and cofiltered limits.
> THIS... |
4a9c821e3c692ffe315b070e7101ce59011c0407 | cf39355caa609c0f33405126beee2739aa3cb77e | /tests/lean/quot_bug.lean | 5b04f7ac632a4edf6a942377e8637859af666fa4 | [
"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 | 277 | lean | open quot
variables {A : Type} {B : A → Type}
variable f : Π a : A, B a
local attribute [instance] function.fun_setoid
#reduce λ x, quot.lift_on ⟦f⟧ (λf : (Πx : A, B x), f) _ x
example (x : A) : quot.lift_on ⟦f⟧ (λf : (Πx : A, B x), f) sorry x = f x :=
rfl
|
9b79780afb1e89d9d0b35b400a4dfd07726b2dd6 | 6b2a480f27775cba4f3ae191b1c1387a29de586e | /group_rep_2/basic_definitions/direct_sum_representation.lean | c6f2a8ababe08fd7f0d825b33d609f838a6a3b23 | [] | no_license | Or7ando/group_representation | a681de2e19d1930a1e1be573d6735a2f0b8356cb | 9b576984f17764ebf26c8caa2a542d248f1b50d2 | refs/heads/master | 1,662,413,107,324 | 1,590,302,389,000 | 1,590,302,389,000 | 258,130,829 | 0 | 1 | null | null | null | null | UTF-8 | Lean | false | false | 1,190 | lean | import basic_definitions.group_representation
import linear_algebra.direct_sum_module
universes u v w u₁
variables (R : Type u) [ring R]
(G : Type v)[group G]
(ι : Type w) [decidable_eq ι]
(M : ι → Type w)
[Π i, add_comm_group (M i)]
[Π i, module R (M i)]
(... |
430dd54e78fe5b79023224afd507dd495810fa5e | 74addaa0e41490cbaf2abd313a764c96df57b05d | /Mathlib/Lean3Lib/init/data/int/comp_lemmas.lean | 454b818322624cce6aea6c58c16cfc38c7663f6a | [] | 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,329 | 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
Auxiliary lemmas used to compare int numerals.
-/
import Mathlib.PrePort
import Mathlib.Lean3Lib.init.data.int.order
namespace Mathlib
namespace int
/- ... |
d9d067b427850977e74b3f10c788e5b916d2cf9e | 4efff1f47634ff19e2f786deadd394270a59ecd2 | /src/data/zsqrtd/gaussian_int.lean | 46db43962f5832eb0361ed18fe3eee6f567d4ff1 | [
"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 | 12,705 | lean | /-
Copyright (c) 2019 Chris Hughes. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Author: Chris Hughes
-/
import data.zsqrtd.basic
import data.complex.basic
import ring_theory.principal_ideal_domain
import number_theory.quadratic_reciprocity
/-!
# Gaussian integers
The Gaussi... |
e5a6cdce7cc3887f1e844a75df4ea3a4668c7245 | d9d511f37a523cd7659d6f573f990e2a0af93c6f | /src/data/mllist.lean | 9fb03eafa8f7d61706ce6ef6f0a584336c0d0f2b | [
"Apache-2.0"
] | permissive | hikari0108/mathlib | b7ea2b7350497ab1a0b87a09d093ecc025a50dfa | a9e7d333b0cfd45f13a20f7b96b7d52e19fa2901 | refs/heads/master | 1,690,483,608,260 | 1,631,541,580,000 | 1,631,541,580,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 8,149 | lean | /-
Copyright (c) 2018 Scott Morrison. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Mario Carneiro, Keeley Hoek, Simon Hudon, Scott Morrison
-/
import data.option.defs
/-! # Monadic lazy lists.
An alternative construction of lazy lists (see also `data.lazy_list`),
w... |
8b60ee2a19a0c61e18139b069027e1817c9a3455 | 367134ba5a65885e863bdc4507601606690974c1 | /src/ring_theory/derivation.lean | 6e81b19f8e9bf79542147b88fbbcd05925a2d014 | [
"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,361 | lean | /-
Copyright © 2020 Nicolò Cavalleri. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Author: Nicolò Cavalleri.
-/
import algebra.lie.of_associative
import ring_theory.algebra_tower
/-!
# Derivations
This file defines derivation. A derivation `D` from the `R`-algebra `A` to t... |
9be072cbb890935be9a585048fe317d9cd0bf75c | 853df553b1d6ca524e3f0a79aedd32dde5d27ec3 | /src/group_theory/semidirect_product.lean | 6049fb991a8a2fcdc988d0a224733e5cb492a60c | [
"Apache-2.0"
] | permissive | DanielFabian/mathlib | efc3a50b5dde303c59eeb6353ef4c35a345d7112 | f520d07eba0c852e96fe26da71d85bf6d40fcc2a | refs/heads/master | 1,668,739,922,971 | 1,595,201,756,000 | 1,595,201,756,000 | 279,469,476 | 0 | 0 | null | 1,594,696,604,000 | 1,594,696,604,000 | null | UTF-8 | Lean | false | false | 6,999 | lean | /-
Copyright (c) 2020 Chris Hughes. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Chris Hughes
-/
import data.equiv.mul_add logic.function.basic group_theory.subgroup
/-!
# Semidirect product
This file defines semidirect products of groups, and the canonical maps in ... |
6a7bacdd55f0e70dbba577a358d1a292bd734559 | 80cc5bf14c8ea85ff340d1d747a127dcadeb966f | /src/data/set/intervals/basic.lean | 593f7f53c35aa21052d4a49baf3b7fb99992da71 | [
"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 | 35,853 | 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
-/
import algebra.order_functions
import data.set.basic
/-!
# Intervals
In any preorder `α`, we define intervals (whic... |
3f8e53bc95cb92633a5dd8f4c0a4f258f1ec52b7 | cf39355caa609c0f33405126beee2739aa3cb77e | /library/init/meta/options.lean | ee8601d81345bac9120f64856aae71eb7e426dcf | [
"Apache-2.0"
] | permissive | leanprover-community/lean | 12b87f69d92e614daea8bcc9d4de9a9ace089d0e | cce7990ea86a78bdb383e38ed7f9b5ba93c60ce0 | refs/heads/master | 1,687,508,156,644 | 1,684,951,104,000 | 1,684,951,104,000 | 169,960,991 | 457 | 107 | Apache-2.0 | 1,686,744,372,000 | 1,549,790,268,000 | C++ | UTF-8 | Lean | false | false | 1,286 | lean | /-
Copyright (c) 2016 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Leonardo de Moura
-/
prelude
import init.meta.name
universe u
meta constant options : Type
meta constant options.size : options → nat
meta constan... |
8f803869c3e793d2d5f7bc132a04f722244b5d85 | a4673261e60b025e2c8c825dfa4ab9108246c32e | /stage0/src/Lean/Data.lean | eba3145383b807111d251c10a125de34bca9083d | [
"Apache-2.0"
] | permissive | jcommelin/lean4 | c02dec0cc32c4bccab009285475f265f17d73228 | 2909313475588cc20ac0436e55548a4502050d0a | refs/heads/master | 1,674,129,550,893 | 1,606,415,348,000 | 1,606,415,348,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 524 | lean | /-
Copyright (c) 2020 Sebastian Ullrich. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Sebastian Ullrich
-/
import Lean.Data.Format
import Lean.Data.FormatMacro
import Lean.Data.Json
import Lean.Data.JsonRpc
import Lean.Data.KVMap
import Lean.Data.LBool
import Lean.Da... |
0d72097fadd11ccd0aed5683d1fd533823508e26 | 6432ea7a083ff6ba21ea17af9ee47b9c371760f7 | /tests/compiler/extractClosedMutualBlock.lean | 1af9b8b333d9b168c4104e140d68a3930c03d40c | [
"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 | 418 | lean | inductive Foo
| mk: (Int -> Foo) -> Foo
| terminal: Foo
deriving Inhabited
mutual
partial def even (_: Unit) : Foo :=
Foo.mk (fun i => odd () )
partial def odd (_: Unit) : Foo :=
Foo.mk (fun i => even ())
end
def hasLayer (f: Foo) : Bool :=
match f with
| Foo.mk _ => true
| Foo.terminal => false
def ... |
5b20c76b6f02424abaf8f9a1a7cc7f9cf21d1aa5 | 9028d228ac200bbefe3a711342514dd4e4458bff | /src/topology/metric_space/closeds.lean | 9c8d0b126c6565e555f4a8b4c10f9192ab2cf3bf | [
"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 | 21,421 | lean | /-
Copyright (c) 2019 Sébastien Gouëzel. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Author: Sébastien Gouëzel
-/
import topology.metric_space.hausdorff_distance
import analysis.specific_limits
/-!
# Closed subsets
This file defines the metric and emetric space structure o... |
5c480834744d2c84272f26b7d052f813b6a7c948 | d406927ab5617694ec9ea7001f101b7c9e3d9702 | /src/analysis/asymptotics/asymptotics.lean | d3af26c25320c0809d8a580ccbd9a5cd91881b5b | [
"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 | 73,611 | lean | /-
Copyright (c) 2019 Jeremy Avigad. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Jeremy Avigad, Yury Kudryashov
-/
import analysis.normed_space.basic
import topology.algebra.order.liminf_limsup
import topology.local_homeomorph
/-!
# Asymptotics
We introduce these ... |
c3c09e19a2740b74131aee4d4fcaf45d64259526 | 94e33a31faa76775069b071adea97e86e218a8ee | /src/number_theory/wilson.lean | 4d4e9de4c8c5c0e03d01ff5c0aca4aa2891f3e1a | [
"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 | 1,554 | lean | /-
Copyright (c) 2022 John Nicol. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: John Nicol
-/
import number_theory.legendre_symbol.gauss_eisenstein_lemmas
/-!
# Wilson's theorem.
This file contains a proof of Wilson's theorem.
The heavy lifting is mostly done by th... |
48ceda5d0d12d690ba7c4a0a224940a118d599fe | 74addaa0e41490cbaf2abd313a764c96df57b05d | /Mathlib/Lean3Lib/init/logic.lean | 62362a8d4e60d81a0b5765ad3f4a8412c7fa945f | [] | 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 | 40,993 | 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
-/
import Mathlib.PrePort
import Mathlib.Lean3Lib.init.core
universes u v w l u_1 r s
namespace Mathlib
@[simp] theorem ... |
aa20218db3578e51ac8488d9edc37675b1b10467 | 592ee40978ac7604005a4e0d35bbc4b467389241 | /Library/generated/mathscheme-lean/Kei.lean | b2431909ef4b49b98c57acc95fe41f1d811b8d20 | [] | 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 | 5,797 | 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 Kei
structure Kei (A : Type) : Type :=
(linv : (A → (A → A)))
(leftDistributive : (∀ {x y z : A} , (linv x (linv y z)) = (linv (linv x y) (linv x z))))
(... |
76a6aadadd9f2c247dc8103210554c45e3e05a80 | 8cae430f0a71442d02dbb1cbb14073b31048e4b0 | /src/tactic/chain.lean | f6a833023408af99f9565587574ad569eafd4b56 | [
"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 | 4,141 | lean | /-
Copyright (c) 2018 Scott Morrison. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Scott Morrison, Mario Carneiro
-/
import tactic.ext
open interactive
namespace tactic
/-
This file defines a `chain` tactic, which takes a list of tactics,
and exhaustively tries to... |
3d607e37d196695a22e7f0304243eb30afaf22de | 3b15c7b0b62d8ada1399c112ad88a529e6bfa115 | /stage0/src/Lean/Elab/PreDefinition/WF/Main.lean | eaf8d862022d45bccc2734036879818491c58261 | [
"Apache-2.0"
] | permissive | stephenbrady/lean4 | 74bf5cae8a433e9c815708ce96c9e54a5caf2115 | b1bd3fc304d0f7bc6810ec78bfa4c51476d263f9 | refs/heads/master | 1,692,621,473,161 | 1,634,308,743,000 | 1,634,310,749,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 2,287 | 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.Elab.PreDefinition.Basic
import Lean.Elab.PreDefinition.WF.TerminationHint
import Lean.Elab.PreDefinition.WF.PackDomain
import Lean.Elab.PreDefi... |
c9eab872318bef6b9b4758e229f9fd36e6eff091 | 8cae430f0a71442d02dbb1cbb14073b31048e4b0 | /src/measure_theory/measure/lebesgue/basic.lean | ba416fc42a780ca1895a08fe8f3494375384470a | [
"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 | 28,332 | 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, Sébastien Gouëzel, Yury Kudryashov
-/
import dynamics.ergodic.measure_preserving
import linear_algebra.determinant
import linear_algebra.matrix.diagonal
import linear_a... |
af848644592b093ab1a3ececc9e7d1bf39f2793e | 6432ea7a083ff6ba21ea17af9ee47b9c371760f7 | /tests/elabissues/issues5.lean | 40af3d8e51ea0ea824018e18f2b31b92df3f4855 | [
"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 | 538 | lean | import Init.Data.HashMap
def f (a : HashMap Nat Nat) : HashMap Nat Nat :=
a
def t (as : List Nat) :=
let xs := {};
/- We can't elaborate r.insert at this point because we don't know the type of `r`.
Our plan is to suspend it by creating a metavariable, and resume later when we have
more information. -/
let ys :... |
403d293ddff6d08a1c4a34cad9370c912a025de4 | 9dc8cecdf3c4634764a18254e94d43da07142918 | /src/data/int/cast.lean | 412152f5ae7a5c03ab4378c9c6f9c86a7c8d6515 | [
"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 | 11,038 | lean | /-
Copyright (c) 2017 Mario Carneiro. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Mario Carneiro
-/
import data.int.basic
import data.nat.cast
import tactic.pi_instances
import data.sum.basic
/-!
# Cast of integers (additional theorems)
This file proves additional... |
e9c3b92c5399e13b08397730046d5a4e9dbf335b | ae1e94c332e17c7dc7051ce976d5a9eebe7ab8a5 | /stage0/src/Lean/Parser/Module.lean | bb045607adf6e207fefbb09f6192115464879978 | [
"Apache-2.0"
] | permissive | dupuisf/lean4 | d082d13b01243e1de29ae680eefb476961221eef | 6a39c65bd28eb0e28c3870188f348c8914502718 | refs/heads/master | 1,676,948,755,391 | 1,610,665,114,000 | 1,610,665,114,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 5,740 | lean | /-
Copyright (c) 2019 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Leonardo de Moura, Sebastian Ullrich
-/
import Lean.Message
import Lean.Parser.Command
namespace Lean
namespace Parser
namespace Module
def «prelude» := parser! "prelude"
def... |
481a93e4ebd1d59b5c19e161f41d4f187d6d10f0 | 94e33a31faa76775069b071adea97e86e218a8ee | /src/analysis/inner_product_space/adjoint.lean | a080577e7ce11e32a52884766a704fe59b953e11 | [
"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 | 18,787 | lean | /-
Copyright (c) 2021 Frédéric Dupuis. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Frédéric Dupuis, Heather Macbeth
-/
import analysis.inner_product_space.dual
import analysis.inner_product_space.pi_L2
/-!
# Adjoint of operators on Hilbert spaces
Given an operato... |
7b6da589bef46d1865545132dbac650431a52a38 | c3f2fcd060adfa2ca29f924839d2d925e8f2c685 | /library/data/nat/sub.lean | 459f422cce2672512c221e4659f024c71b1bbacf | [
"Apache-2.0"
] | permissive | respu/lean | 6582d19a2f2838a28ecd2b3c6f81c32d07b5341d | 8c76419c60b63d0d9f7bc04ebb0b99812d0ec654 | refs/heads/master | 1,610,882,451,231 | 1,427,747,084,000 | 1,427,747,429,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 16,658 | lean | /-
Copyright (c) 2014 Floris van Doorn. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Floris van Doorn, Jeremy Avigad
Module: data.nat.sub
Subtraction on the natural numbers, as well as min, max, and distance.
-/
import .order
import tools.fake_simplifier
open eq.op... |
64df7947baab939aea75d0bec5b11cb308be0bfa | 8cae430f0a71442d02dbb1cbb14073b31048e4b0 | /src/probability/density.lean | c2bf0bcb2b140ce47c362fca7476367cd46e347a | [
"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,281 | lean | /-
Copyright (c) 2021 Kexing Ying. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Kexing Ying
-/
import measure_theory.decomposition.radon_nikodym
import measure_theory.measure.haar.of_basis
/-!
# Probability density function
> THIS FILE IS SYNCHRONIZED WITH MATHLIB4... |
d5c7377f0fd0cc1aed08bb8702639196b82eb8c1 | 4727251e0cd73359b15b664c3170e5d754078599 | /src/linear_algebra/matrix/nonsingular_inverse.lean | c84571d57cdd149cc1912aeb2e694c13c930d761 | [
"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 | 23,147 | lean | /-
Copyright (c) 2019 Tim Baanen. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Tim Baanen, Lu-Ming Zhang
-/
import algebra.regular.smul
import linear_algebra.matrix.adjugate
import linear_algebra.matrix.polynomial
/-!
# Nonsingular inverses
In this file, we define ... |
873ee9a502247b8c373793ccc59ccc4f66f31914 | 82e44445c70db0f03e30d7be725775f122d72f3e | /src/category_theory/closed/ideal.lean | 031a35b28df17bd5ea0ad8e5d1ee0db7562c40f2 | [
"Apache-2.0"
] | permissive | stjordanis/mathlib | 51e286d19140e3788ef2c470bc7b953e4991f0c9 | 2568d41bca08f5d6bf39d915434c8447e21f42ee | refs/heads/master | 1,631,748,053,501 | 1,627,938,886,000 | 1,627,938,886,000 | 228,728,358 | 0 | 0 | Apache-2.0 | 1,576,630,588,000 | 1,576,630,587,000 | null | UTF-8 | Lean | false | false | 11,750 | lean | /-
Copyright (c) 2021 Bhavik Mehta. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Bhavik Mehta
-/
import category_theory.limits.preserves.shapes.binary_products
import category_theory.limits.constructions.finite_products_of_binary_products
import category_theory.monad... |
37880d6f40236064aa502b813d2be31810f10d4e | 367134ba5a65885e863bdc4507601606690974c1 | /src/ring_theory/free_comm_ring.lean | 3d93f61504920132cb82b0d35c23e98cc93e46f8 | [
"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 | 14,411 | lean | /-
Copyright (c) 2019 Kenny Lau. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Kenny Lau, Johan Commelin
-/
import data.equiv.functor
import data.mv_polynomial.equiv
import data.mv_polynomial.comm_ring
import ring_theory.free_ring
/-!
# Free commutative rings
The th... |
f603ed7bd43abf4682a5c62b1df2e119c8a2168e | 57c233acf9386e610d99ed20ef139c5f97504ba3 | /counterexamples/phillips.lean | 48ecc429ae3073147fd75376c9f920ad2fd13ff2 | [
"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 | 28,546 | lean | /-
Copyright (c) 2021 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.hahn_banach
import measure_theory.measure.lebesgue
/-!
# A counterexample on Pettis integrability
There are several theories of i... |
101fcbd66b9c284bd45a24312fb7898497d40bc6 | 302c785c90d40ad3d6be43d33bc6a558354cc2cf | /src/analysis/normed_space/normed_group_hom.lean | 449507db6a02a3d9797807714cc77336c451d15d | [
"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 | 21,141 | 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
import topology.sequences
import topology.metric_space.isometry
/-!
# Normed groups homomorphisms
This file gathers definitions ... |
43df151f9d7885ffae0eebb4e5f3e32a65cdb33a | 491068d2ad28831e7dade8d6dff871c3e49d9431 | /tests/lean/run/match_tac3.lean | efc05ea4d1f82821532c338867ec5975d4d91961 | [
"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 | 230 | lean | import data.nat
open nat
theorem tst (a b : nat) (H : a = 0) : a + b = b :=
begin
revert H,
match a with
| zero := λ H, by rewrite zero_add
| (n+1) := λ H, nat.no_confusion H
end
end
reveal tst
print definition tst
|
4ba7be6b4f906f5f79c4b68a915f61d0124c438d | 5756a081670ba9c1d1d3fca7bd47cb4e31beae66 | /Mathport/Syntax/Translate/Tactic/Mathlib/NormCast.lean | 8a4b76ec88da9f9ffdf5b42f7c87e12a8cd269ed | [
"Apache-2.0"
] | permissive | leanprover-community/mathport | 2c9bdc8292168febf59799efdc5451dbf0450d4a | 13051f68064f7638970d39a8fecaede68ffbf9e1 | refs/heads/master | 1,693,841,364,079 | 1,693,813,111,000 | 1,693,813,111,000 | 379,357,010 | 27 | 10 | Apache-2.0 | 1,691,309,132,000 | 1,624,384,521,000 | Lean | UTF-8 | Lean | false | false | 1,639 | lean | /-
Copyright (c) 2021 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Mario Carneiro
-/
import Mathport.Syntax.Translate.Tactic.Basic
import Mathport.Syntax.Translate.Tactic.Lean3
open Lean
namespace Mathport.Translate.Tactic
open Parser
-- # t... |
7c3883b27c01d8ecb33fd65d37847d1422f37ac6 | a9d0fb7b0e4f802bd3857b803e6c5c23d87fef91 | /tests/lean/non_exhaustive_error.lean | b95ed33a3959221069d0bb2a38e9b4267a314438 | [
"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 | 88 | lean |
definition f : string → nat → bool
| "hello world" 1 := tt
| "bye" _ := tt
|
359ba5b9670615911102e6e42903c335fe00b7dd | 274748215b6d042f0d9c9a505f9551fa8e0c5f38 | /src/affine_algebraic_set/lattice.lean | 210c22a5774f0b2cd4c36f635c6d9f2188c0e26c | [
"Apache-2.0"
] | permissive | ImperialCollegeLondon/M4P33 | 878ecb515c77d20cc799ff1ebd78f1bf4fd65c12 | 1a179372db71ad6802d11eacbc1f02f327d55f8f | refs/heads/master | 1,607,519,867,193 | 1,583,344,297,000 | 1,583,344,297,000 | 233,316,107 | 59 | 4 | Apache-2.0 | 1,579,285,778,000 | 1,578,788,367,000 | Lean | UTF-8 | Lean | false | false | 732 | lean | /-
The lattice structure on affine algebraic subsets of kⁿ
Kevin Buzzard
-/
import affine_algebraic_set.basic -- the basic theory of affine algebraic sets.
import affine_algebraic_set.union
/-
# The lattice structure on `affine_algebraic_set k n`.
Lean level: hard.
Let k be a field and let n be a natural number.... |
57b23424419c317c2b019f17dbfeb2c3a9c49859 | bdb33f8b7ea65f7705fc342a178508e2722eb851 | /tactic/default.lean | ff3917dfa3bfa77430433dbb2bd9c412c6ac25e1 | [
"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 | 53 | lean | import tactic.interactive tactic.alias tactic.finish
|
735c821c67d32ee7b8efdf160eb7179efc09b99d | fa02ed5a3c9c0adee3c26887a16855e7841c668b | /src/tactic/omega/nat/preterm.lean | 2343c6361adedb3f9e84ab29fdb796786ccb3a84 | [
"Apache-2.0"
] | permissive | jjgarzella/mathlib | 96a345378c4e0bf26cf604aed84f90329e4896a2 | 395d8716c3ad03747059d482090e2bb97db612c8 | refs/heads/master | 1,686,480,124,379 | 1,625,163,323,000 | 1,625,163,323,000 | 281,190,421 | 2 | 0 | Apache-2.0 | 1,595,268,170,000 | 1,595,268,169,000 | null | UTF-8 | Lean | false | false | 4,882 | lean | /-
Copyright (c) 2019 Seul Baek. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Seul Baek
-/
/-
Linear natural number arithmetic terms in pre-normalized form.
-/
import tactic.omega.term
open tactic
namespace omega
namespace nat
/-- The shadow syntax for arithmeti... |
1759b96d27f6d00d679610ba75ef01ae2432b6d5 | d1bbf1801b3dcb214451d48214589f511061da63 | /src/linear_algebra/char_poly/coeff.lean | e5e225f7c39ef760297eb131a60b48a272229dd5 | [
"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 | 8,973 | lean | /-
Copyright (c) 2020 Aaron Anderson, Jalex Stark. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Author: Aaron Anderson, Jalex Stark.
-/
import data.matrix.char_p
import linear_algebra.char_poly.basic
import linear_algebra.matrix
import ring_theory.polynomial.basic
import alg... |
5583b59fe2805e8f26c6bbbda82247f9166bfd57 | fa02ed5a3c9c0adee3c26887a16855e7841c668b | /src/algebra/continued_fractions/computation/terminates_iff_rat.lean | ae7a918728e6bddd827b57c389144e3eddf72af7 | [
"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 | 14,462 | 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.approximations
import algebra.continued_fractions.computation.correctness_terminating
import data.rat
/-!
# Termina... |
69002e4f14eef31f1f4fac84ffbe651b96c8c8f4 | 947b78d97130d56365ae2ec264df196ce769371a | /stage0/src/Lean/Delaborator.lean | d1ac3bfaa1ebc5f7828a97879685cfc4c4f543b4 | [
"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 | 28,639 | lean | /-
Copyright (c) 2020 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Sebastian Ullrich
-/
/-!
The delaborator is the first stage of the pretty printer, and the inverse of the
elaborator: it turns fully elaborated `Expr` core terms back into surf... |
7818169eb3d5e25b877c4a4dc58bfae27732d82f | 32025d5c2d6e33ad3b6dd8a3c91e1e838066a7f7 | /tests/lean/stdio.lean | 13e995b9b744aff1d0ffd9df5e5b458393b5030f | [
"Apache-2.0"
] | permissive | walterhu1015/lean4 | b2c71b688975177402758924eaa513475ed6ce72 | 2214d81e84646a905d0b20b032c89caf89c737ad | refs/heads/master | 1,671,342,096,906 | 1,599,695,985,000 | 1,599,695,985,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 689 | lean | open IO.FS
#eval do
out ← IO.getStdout;
(out.putStrLn "print stdout" : IO Unit)
#eval do
err ← IO.getStderr;
(err.putStr "print stderr" : IO Unit)
open IO
def test : IO Unit := do
FS.withFile "stdout1.txt" IO.FS.Mode.write $ fun h₁ => do
{ h₂ ← FS.Handle.mk "stdout2.txt" IO.FS.Mode.write;
withStdout (Stream.ofHan... |
b17a5f6d4a9d5e99ead20597a1c8d1a888839107 | 7afc29faca4febb6e5005c20aa4aa5c3df5cf35c | /src/tactics.lean | c584a02fc1f32f1063754cce7794811bbabe50b7 | [
"MIT"
] | permissive | Piwry/Proof-of-Surreal | ad2883027e275050b43a578c5513ae3fe350515b | 6b92baf2382ac23dd0d700f5c958aa910ad4b754 | refs/heads/master | 1,670,521,185,736 | 1,599,657,591,000 | 1,599,657,591,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 3,153 | lean | import tactic defs single height
lemma branch_left : ∀ t, ⟨t⟩ → ⟨⟦t∣⟧⟩ :=
begin intros, apply is_branch.left_nl, assumption end
lemma branch_left_leaf : ∀ t, ⟨t⟩ → ⟨⟦t,●⟧⟩ :=
begin intros, apply is_branch.left_l, assumption end
lemma branch_right : ∀ t, ⟨t⟩ → ⟨⟦∣t⟧⟩ :=
begin intros, apply is_branch.right_nl, assump... |
9a1ef3f17da4402920832c07182c015c75e72316 | 9dd3f3912f7321eb58ee9aa8f21778ad6221f87c | /library/init/data/default.lean | ee59243fe0ee9713f53068fd726e040e0a6cfad9 | [
"Apache-2.0"
] | permissive | bre7k30/lean | de893411bcfa7b3c5572e61b9e1c52951b310aa4 | 5a924699d076dab1bd5af23a8f910b433e598d7a | refs/heads/master | 1,610,900,145,817 | 1,488,006,845,000 | 1,488,006,845,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 341 | 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.basic init.data.sigma init.data.nat init.data.char init.data.string
import init.data.list init.data.sum init.data.subtype init.data... |
02890626f989c3d797edcfe469b9b95ecea2bce3 | 02005f45e00c7ecf2c8ca5db60251bd1e9c860b5 | /src/algebra/category/Semigroup/basic.lean | 67dfa3c96e3d45b58ee32dffa1195352fe21a59b | [
"Apache-2.0"
] | permissive | anthony2698/mathlib | 03cd69fe5c280b0916f6df2d07c614c8e1efe890 | 407615e05814e98b24b2ff322b14e8e3eb5e5d67 | refs/heads/master | 1,678,792,774,873 | 1,614,371,563,000 | 1,614,371,563,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 6,345 | lean | /-
Copyright (c) 2021 Julian Kuelshammer. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Julian Kuelshammer (heavily based on `Mon.basic` by Scott Morrison)
-/
import category_theory.concrete_category.bundled_hom
import category_theory.concrete_category.reflects_isomor... |
d0f33f23e23e6fb97c7db5a54abdb05a47a68a6f | 69d4931b605e11ca61881fc4f66db50a0a875e39 | /src/data/real/nnreal.lean | 420bebc07f5f4a28c7d691bcba040a40d44dc72d | [
"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 | 29,819 | lean | /-
Copyright (c) 2018 Johan Commelin. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Johan Commelin
-/
import algebra.linear_ordered_comm_group_with_zero
import algebra.big_operators.ring
import data.real.basic
import data.indicator_function
import algebra.algebra.basi... |
734828e4819a44dc968f72073b19a39f456fc809 | 8cae430f0a71442d02dbb1cbb14073b31048e4b0 | /src/topology/metric_space/basic.lean | de0baf9a61b0a4e4b30ce51caa71efd7d806bb4f | [
"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 | 139,643 | lean | /-
Copyright (c) 2015, 2017 Jeremy Avigad. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Jeremy Avigad, Robert Y. Lewis, Johannes Hölzl, Mario Carneiro, Sébastien Gouëzel
-/
import tactic.positivity
import topology.algebra.order.compact
import topology.metric_space.e... |
7a1651e99aa6238e3335468c7f8861823048338c | 969dbdfed67fda40a6f5a2b4f8c4a3c7dc01e0fb | /src/category_theory/limits/over.lean | 1789916a4c054c1f6f321a046c9d26b9963c50e7 | [
"Apache-2.0"
] | permissive | SAAluthwela/mathlib | 62044349d72dd63983a8500214736aa7779634d3 | 83a4b8b990907291421de54a78988c024dc8a552 | refs/heads/master | 1,679,433,873,417 | 1,615,998,031,000 | 1,615,998,031,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 7,309 | lean | /-
Copyright (c) 2018 Johan Commelin. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Johan Commelin, Reid Barton, Bhavik Mehta
-/
import category_theory.over
import category_theory.adjunction.opposites
import category_theory.limits.preserves.basic
import category_theor... |
311c45b52a5c5f8ec83065c0a03d2b744a67a546 | 4d2583807a5ac6caaffd3d7a5f646d61ca85d532 | /src/control/fix.lean | 6342d1d3b4920662faf67e7e141574cf086c9452 | [
"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,245 | lean | /-
Copyright (c) 2020 Simon Hudon. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Simon Hudon
-/
import data.nat.upto
import data.stream.basic
import data.pfun
/-!
# Fixed point
This module defines a generic `fix` operator for defining recursive
computations that ar... |
00f724f151de0067430e1756fbac84f7737151c3 | 947b78d97130d56365ae2ec264df196ce769371a | /src/Lean/Elab/Tactic/Location.lean | ffd80097eb523890103e5e20657a434306a128f7 | [
"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,005 | 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
-/
namespace Lean
namespace Elab
namespace Tactic
inductive Location
| wildcard
| target
| localDecls (userNames : Array Name)
/-
Recall that
```
def locatio... |
61d37aa19d37949dc0e176c0c321b46bd9b611c5 | 7cef822f3b952965621309e88eadf618da0c8ae9 | /src/ring_theory/power_series.lean | bb38cec622bda6abe80be39ecd0275c94adcfc8f | [
"Apache-2.0"
] | permissive | rmitta/mathlib | 8d90aee30b4db2b013e01f62c33f297d7e64a43d | 883d974b608845bad30ae19e27e33c285200bf84 | refs/heads/master | 1,585,776,832,544 | 1,576,874,096,000 | 1,576,874,096,000 | 153,663,165 | 0 | 2 | Apache-2.0 | 1,544,806,490,000 | 1,539,884,365,000 | Lean | UTF-8 | Lean | false | false | 56,748 | 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.finsupp order.complete_lattice algebra.ordered_group data.mv_polynomial
import algebra.order_functions
import ring_theory.ideal_operations
/-... |
bb8d44cf047ea3d408c113148b4bcf431ed526cd | 8cae430f0a71442d02dbb1cbb14073b31048e4b0 | /src/field_theory/finite/trace.lean | 59dd268d8dc49b542d1be3aea8129abb1d37374e | [
"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,051 | lean | /-
Copyright (c) 2022 Michael Stoll. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Michael Stoll
-/
import ring_theory.trace
import field_theory.finite.galois_field
/-!
# The trace map for finite fields
> THIS FILE IS SYNCHRONIZED WITH MATHLIB4.
> Any changes to thi... |
235802f3aa0c8f9a860e95f1fe8f9a389eb83ab0 | d406927ab5617694ec9ea7001f101b7c9e3d9702 | /src/data/finsupp/interval.lean | 99845f4cf77e3f85454d78673df39f3a8ca49da9 | [
"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,969 | lean | /-
Copyright (c) 2022 Yaël Dillies. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Yaël Dillies
-/
import data.finset.finsupp
import data.finset.locally_finite
import data.finsupp.order
/-!
# Finite intervals of finitely supported functions
This file provides the `lo... |
1c53201c7c521338339d4e22eca8fe0c8844a8fa | 69d4931b605e11ca61881fc4f66db50a0a875e39 | /src/topology/sheaves/stalks.lean | 5d297414b5cd770737aeb75f6ccd1983f52cf017 | [
"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 | 16,368 | lean | /-
Copyright (c) 2019 Scott Morrison. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Scott Morrison, Justus Springer
-/
import topology.category.Top.open_nhds
import topology.sheaves.presheaf
import topology.sheaves.sheaf_condition.unique_gluing
import category_theory.... |
0a3c7ed6777cd65227d244b11e4c74c06667965f | 4d2583807a5ac6caaffd3d7a5f646d61ca85d532 | /src/algebra/gcd_monoid/basic.lean | 71608f7c948e04f381ed39cb7f65ea4106400906 | [
"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 | 46,415 | lean | /-
Copyright (c) 2018 Johannes Hölzl. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Johannes Hölzl, Jens Wagemaker
-/
import algebra.associated
import algebra.group_power.lemmas
import data.nat.gcd
/-!
# Monoids with normalization functions, `gcd`, and `lcm`
This f... |
b427eb710ea2e02edebeecc6542e9f07f1177297 | 64874bd1010548c7f5a6e3e8902efa63baaff785 | /tests/lean/run/group5.lean | 0c3996dbdf39a7b87fb6cd9edef910538f452d82 | [
"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 | 3,988 | 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
-- algebra.group
-- =============
-- Various structures with 1, *, inv, including groups.
import logic.eq
import data.unit data.sigma data.prod... |
3ea7329ea2fa5e4f463de414dcb40e40ae8efc8f | 2f8bf12144551bc7d8087a6320990c4621741f3d | /library/init/data/nat/basic.lean | 95a3f7c009b7d079d002b38fc14a87a9244394af | [
"Apache-2.0"
] | permissive | jesse-michael-han/lean4 | eb63a12960e69823749edceb4f23fd33fa2253ce | fa16920a6a7700cabc567aa629ce4ae2478a2f40 | refs/heads/master | 1,589,935,810,594 | 1,557,177,860,000 | 1,557,177,860,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 23,318 | lean | /-
Copyright (c) 2014 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Floris van Doorn, Leonardo de Moura
-/
prelude
import init.core
universes u
notation `ℕ` := Nat
namespace Nat
@[extern cpp "lean::nat_dec_eq"]
def beq : Nat → Nat → Bool
| ze... |
15eb6af053b89ae3bc16817c73f39d3a95d1caad | 8cae430f0a71442d02dbb1cbb14073b31048e4b0 | /src/measure_theory/covering/vitali_family.lean | 2104ee59faf9f40c0887c5dda6e8f753d9e1a234 | [
"Apache-2.0"
] | permissive | leanprover-community/mathlib | 56a2cadd17ac88caf4ece0a775932fa26327ba0e | 442a83d738cb208d3600056c489be16900ba701d | refs/heads/master | 1,693,584,102,358 | 1,693,471,902,000 | 1,693,471,902,000 | 97,922,418 | 1,595 | 352 | Apache-2.0 | 1,694,693,445,000 | 1,500,624,130,000 | Lean | UTF-8 | Lean | false | false | 13,976 | lean | /-
Copyright (c) 2021 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 measure_theory.measure.measure_space
/-!
# Vitali families
> THIS FILE IS SYNCHRONIZED WITH MATHLIB4.
> Any changes to this file require a correspondin... |
aa6bd4e3079aa614ff48533003d0ab5c49703fd5 | c8af905dcd8475f414868d303b2eb0e9d3eb32f9 | /src/data/cpi/transition/production.lean | c1ab875b03b8fd2b9378bbc724106e137ae4b328 | [
"BSD-3-Clause"
] | permissive | continuouspi/lean-cpi | 81480a13842d67ff5f3698643210d8ed5dd08de4 | 443bf2cb236feadc45a01387099c236ab2b78237 | refs/heads/master | 1,650,307,316,582 | 1,587,033,364,000 | 1,587,033,364,000 | 207,499,661 | 1 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 4,261 | lean | import data.cpi.concretion data.cpi.transition.label
namespace cpi
variables {ℍ : Type} {ω : context}
/-- The right hand side of a transition, determined by a specific kind. -/
@[derive decidable_eq, nolint has_inhabited_instance]
inductive production (ℍ : Type) (ω : context) (Γ : context) : kind → Type
| species (A... |
24476a191784092af6b6b204fd3813118cc7f47e | 80cc5bf14c8ea85ff340d1d747a127dcadeb966f | /src/data/num/lemmas.lean | 11d4e326465552c216f16f133177c081a3134b82 | [
"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 | 48,649 | lean | /-
Copyright (c) 2014 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Author: Mario Carneiro
-/
import data.num.bitwise
import data.int.char_zero
import data.nat.gcd
import data.nat.psub
/-!
# Properties of the binary representation of integers
-/
local ... |
c54fe0491836fb928b0a4b649ee05d1e88b8ec62 | 74addaa0e41490cbaf2abd313a764c96df57b05d | /Mathlib/algebra/group_power/default.lean | 550de2e5e2ee3ce6dbe835afd1b0d1e296209d49 | [] | 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 | 146 | lean | import Mathlib.PrePort
import Mathlib.Lean3Lib.init.default
import Mathlib.algebra.group_power.lemmas
import Mathlib.PostPort
namespace Mathlib
|
a258db1c3193d0a6034610d422d4be65d9b2873e | 27a31d06bcfc7c5d379fd04a08a9f5ed3f5302d4 | /stage0/src/Lean/Meta/WHNF.lean | 2484fc21577c22c40a9aa16f3301c7c17fdcf8a1 | [
"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 | joehendrix/lean4 | 0d1486945f7ca9fe225070374338f4f7e74bab03 | 1221bdd3c7d5395baa451ce8fdd2c2f8a00cbc8f | refs/heads/master | 1,640,573,727,861 | 1,639,662,710,000 | 1,639,665,515,000 | 198,893,504 | 0 | 0 | Apache-2.0 | 1,564,084,645,000 | 1,564,084,644,000 | null | UTF-8 | Lean | false | false | 27,766 | 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.ToExpr
import Lean.AuxRecursor
import Lean.ProjFns
import Lean.Structure
import Lean.Util.Recognizers
import Lean.Meta.Basic
import Lean.Meta.Ge... |
6844159ade579ac5e58ad928c85bb90482d0a565 | bb31430994044506fa42fd667e2d556327e18dfe | /src/data/nat/lattice.lean | ff6bbe04e750df3757b3c8c9958cb6c3924431a8 | [
"Apache-2.0"
] | permissive | sgouezel/mathlib | 0cb4e5335a2ba189fa7af96d83a377f83270e503 | 00638177efd1b2534fc5269363ebf42a7871df9a | refs/heads/master | 1,674,527,483,042 | 1,673,665,568,000 | 1,673,665,568,000 | 119,598,202 | 0 | 0 | null | 1,517,348,647,000 | 1,517,348,646,000 | null | UTF-8 | Lean | false | false | 6,825 | 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, Floris van Doorn, Gabriel Ebner, Yury Kudryashov
-/
import order.conditionally_complete_lattice.finset
/-!
# Conditionally complete linear order structure on `ℕ`
In t... |
b6199ea6cdd45358295a454e18c6cba2f34eec4c | 4bcaca5dc83d49803f72b7b5920b75b6e7d9de2d | /src/Lean/Elab/Tactic/Induction.lean | de0e0de6e4e14fb3bcb9ce9ac2253f5f3126d439 | [
"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 | 19,227 | 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, Sebastian Ullrich
-/
import Lean.Util.CollectFVars
import Lean.Parser.Term
import Lean.Meta.RecursorInfo
import Lean.Meta.CollectMVars
import Lean.Meta.Tactic... |
004707a91dbd1483f34a937ac680bad6183f483c | 592ee40978ac7604005a4e0d35bbc4b467389241 | /Library/generated/mathscheme-lean/OrDeMorgran.lean | f1a696079f921d6c3f100f250512cb027eb5e3df | [] | 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 | 10,919 | 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 OrDeMorgran
structure OrDeMorgran (A : Type) : Type :=
(times : (A → (A → A)))
(plus : (A → (A → A)))
(prim : (A → A))
(orDeMorgan_plus_times_prim... |
a56821d21ba9eb9d02d53a83420227cb6f7be6aa | 42610cc2e5db9c90269470365e6056df0122eaa0 | /hott/arity.hlean | e611a6eb4433f8ab9415ab098e2a13463f957757 | [
"Apache-2.0"
] | permissive | tomsib2001/lean | 2ab59bfaebd24a62109f800dcf4a7139ebd73858 | eb639a7d53fb40175bea5c8da86b51d14bb91f76 | refs/heads/master | 1,586,128,387,740 | 1,468,968,950,000 | 1,468,968,950,000 | 61,027,234 | 0 | 0 | null | 1,465,813,585,000 | 1,465,813,585,000 | null | UTF-8 | Lean | false | false | 11,068 | hlean | /-
Copyright (c) 2014 Floris van Doorn. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Author: Floris van Doorn
Theorems about functions with multiple arguments
-/
variables {A U V W X Y Z : Type} {B : A → Type} {C : Πa, B a → Type} {D : Πa b, C a b → Type}
{E : Πa ... |
290a69a364d1397e9d4e8b7eec0172e13dabe235 | a4673261e60b025e2c8c825dfa4ab9108246c32e | /src/Lean/Meta/Tactic/Subst.lean | 715843dddc9a0238bd28504d6aeaf57882370cd8 | [
"Apache-2.0"
] | permissive | jcommelin/lean4 | c02dec0cc32c4bccab009285475f265f17d73228 | 2909313475588cc20ac0436e55548a4502050d0a | refs/heads/master | 1,674,129,550,893 | 1,606,415,348,000 | 1,606,415,348,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 6,341 | 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.AppBuilder
import Lean.Meta.MatchUtil
import Lean.Meta.Tactic.Util
import Lean.Meta.Tactic.Revert
import Lean.Meta.Tactic.Intro
import Lean... |
29087fb8760b87f76d6925ffec39e5d54a661303 | cf39355caa609c0f33405126beee2739aa3cb77e | /tests/lean/local_notation_meta_bug.lean | 813e98d1453cfd865e511ce3b9ed5d6b041af2c9 | [
"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 | 282 | lean | local infix (name := plus1) ` + ` := nat.add
@[class] local infix (name := plus2) ` + ` := nat.add
noncomputable local infix (name := plus3) ` + ` := nat.add
@[class] noncomputable local infix (name := plus4) ` + ` := nat.add
/-- foo -/ local infix (name := plus5) ` + ` := nat.add
|
45c87b17e5540d3c1f96f0b716688a8b03a86c2e | 4d2583807a5ac6caaffd3d7a5f646d61ca85d532 | /src/data/finset/nat_antidiagonal.lean | 9dab27b0e5a29de30cc6a281283cfd143291241e | [
"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,609 | lean | /-
Copyright (c) 2019 Johan Commelin. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Johan Commelin
-/
import data.finset.basic
import data.multiset.nat_antidiagonal
/-!
# Antidiagonals in ℕ × ℕ as finsets
This file defines the antidiagonals of ℕ × ℕ as finsets: the ... |
0018cea6d4d0f61d5fac8639147a12d04cb60417 | d406927ab5617694ec9ea7001f101b7c9e3d9702 | /src/algebra/category/Module/epi_mono.lean | fb24e19c6092d406102b7aa1f362e393c1fde2e4 | [
"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,400 | lean | /-
Copyright (c) 2021 Scott Morrison All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Scott Morrison
-/
import linear_algebra.quotient
import algebra.category.Module.basic
/-!
# Monomorphisms in `Module R`
This file shows that an `R`-linear map is a monomorphism in the... |
f2aa6dbdbcbd70d2c2bb0bd74dd38addd62a3e36 | d6124c8dbe5661dcc5b8c9da0a56fbf1f0480ad6 | /Papyrus/IR/GlobalVariableRef.lean | 21c3939f59ae607fdbdf8c94e75ad3f83b9e9c07 | [
"Apache-2.0"
] | permissive | xubaiw/lean4-papyrus | c3fbbf8ba162eb5f210155ae4e20feb2d32c8182 | 02e82973a5badda26fc0f9fd15b3d37e2eb309e0 | refs/heads/master | 1,691,425,756,824 | 1,632,122,825,000 | 1,632,123,075,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 4,202 | lean | import Papyrus.Context
import Papyrus.IR.GlobalRefs
import Papyrus.IR.AddressSpace
import Papyrus.IR.ConstantRef
import Papyrus.IR.ConstantRefs
import Papyrus.IR.TypeRef
namespace Papyrus
/--
A reference to an external LLVM
[GlobalVariable](https://llvm.org/doxygen/classllvm_1_1GlobalVariable.html).
-/
structure ... |
90f0f96ea1b2b04ba217570df2fcd01b8981801b | 626e312b5c1cb2d88fca108f5933076012633192 | /src/measure_theory/function/conditional_expectation.lean | 363b3275943ff6b85976dab15c4a408b81b2f318 | [
"Apache-2.0"
] | permissive | Bioye97/mathlib | 9db2f9ee54418d29dd06996279ba9dc874fd6beb | 782a20a27ee83b523f801ff34efb1a9557085019 | refs/heads/master | 1,690,305,956,488 | 1,631,067,774,000 | 1,631,067,774,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 27,203 | lean | /-
Copyright (c) 2021 Rémy Degenne. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Rémy Degenne
-/
import measure_theory.function.l2_space
import measure_theory.function.ae_eq_of_integral
/-! # Conditional expectation
The conditional expectation will be defined for ... |
d1c65f6658cd586ff7af6976f90c59a43d77d370 | 64874bd1010548c7f5a6e3e8902efa63baaff785 | /hott/init/default.hlean | a0c9b5e7458a761e92fcc7e82ca4e58cd225528f | [
"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 | 524 | hlean | /-
Copyright (c) 2014 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Leonardo de Moura, Jakob von Raumer
-/
prelude
import init.datatypes init.reserved_notation init.tactic init.logic
import init.bool init.num init.priority init.relation init.wf... |
d00783aee0d0ff0570c524d4ccd7cd762a3b4392 | d406927ab5617694ec9ea7001f101b7c9e3d9702 | /counterexamples/homogeneous_prime_not_prime.lean | 8b9f1a9328952179eeb8960fdf7acacb70e9c59f | [
"Apache-2.0"
] | permissive | alreadydone/mathlib | dc0be621c6c8208c581f5170a8216c5ba6721927 | c982179ec21091d3e102d8a5d9f5fe06c8fafb73 | refs/heads/master | 1,685,523,275,196 | 1,670,184,141,000 | 1,670,184,141,000 | 287,574,545 | 0 | 0 | Apache-2.0 | 1,670,290,714,000 | 1,597,421,623,000 | Lean | UTF-8 | Lean | false | false | 5,645 | lean | /-
Copyright (c) 2022 Jujian Zhang. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Johan Commelin, Eric Wieser, Jujian Zhang
-/
import ring_theory.graded_algebra.homogeneous_ideal
import data.zmod.basic
import tactic.derive_fintype
/-!
# A homogeneous prime that is ho... |
c9a0b7f8b1594b082624aa1e9e5c6ae0e0ba11f9 | a9d0fb7b0e4f802bd3857b803e6c5c23d87fef91 | /tests/lean/run/bug6.lean | 4cf3109ddc07823f5c5869033db61a40b8d463be | [
"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 | 318 | lean | open eq
section
variable {A : Type}
theorem T {a b : A} (H : a = b) : b = a
:= symm H
variables x y : A
variable H : x = y
check T H
check T
end
section
variable {A : Type}
theorem T2 ⦃a b : A⦄ (H : a = b) : b = a
:= symm H
variables x y : A
variable H : x = y
check T2 H
check T2
end
|
1cc073de6e86ed250c8ee075cd652867a4941f82 | 74addaa0e41490cbaf2abd313a764c96df57b05d | /Mathlib/tactic/lint/default.lean | fb3b1ebc76443a5979243017673db742547e3d33 | [] | 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 | 434 | lean | /-
Copyright (c) 2020 Floris van Doorn. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Floris van Doorn, Robert Y. Lewis, Gabriel Ebner
-/
import Mathlib.PrePort
import Mathlib.Lean3Lib.init.default
import Mathlib.tactic.lint.frontend
import Mathlib.tactic.lint.simp
im... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.