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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
a5cbcc66d422c8579d5fe00421419eb6ffaf1f89 | e791a827712b9cda7e14eb9861a152725a60f884 | /reals.lean | b1f8b983940ae25a197c5200b3a035f05971f64a | [] | no_license | Shamrock-Frost/FormalComplexAnalysis | 29bf1d45f59b22d6553b24fe5b630464f9c2d9fa | 3cac79d9b603b1edf7df1bc7e948c74eb86a2cc0 | refs/heads/master | 1,588,634,495,874 | 1,554,397,551,000 | 1,554,397,551,000 | 179,541,347 | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 12,472 | lean | import .macros .algebra
open classical
constant real : Type
notation `ℝ` := real
constant real_field : discrete_linear_ordered_field ℝ
noncomputable instance
: discrete_linear_ordered_field real := real_field
noncomputable instance : decidable_linear_ordered_comm_group real :=
{ decidable_le := λ x y, prop_decid... |
03b90e2ea91c2c6818ecb5421653cb950416a951 | 57c233acf9386e610d99ed20ef139c5f97504ba3 | /src/algebra/category/Mon/limits.lean | 2d57d7df2e7bd94154a4646cbfb46543a238ca8c | [
"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,657 | lean | /-
Copyright (c) 2020 Scott Morrison. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Scott Morrison
-/
import algebra.category.Mon.basic
import algebra.group.pi
import category_theory.limits.creates
import category_theory.limits.types
import group_theory.submonoid.oper... |
a6b4ea0aa16ce79a2b5ff20d68cf0d36db520a9e | e2fc96178628c7451e998a0db2b73877d0648be5 | /src/classes/unrestricted/basics/lifting.lean | cb7a0ddc68f9a1d0a077e826467815a4b71c2c28 | [
"BSD-2-Clause"
] | permissive | madvorak/grammars | cd324ae19b28f7b8be9c3ad010ef7bf0fabe5df2 | 1447343a45fcb7821070f1e20b57288d437323a6 | refs/heads/main | 1,692,383,644,884 | 1,692,032,429,000 | 1,692,032,429,000 | 453,948,141 | 7 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 8,396 | lean | import classes.unrestricted.basics.toolbox
import utilities.list_utils
section functions_lift_sink
variables {T N₀ N : Type}
def lift_symbol_ (lift_N : N₀ → N) : symbol T N₀ → symbol T N
| (symbol.terminal t) := symbol.terminal t
| (symbol.nonterminal n) := symbol.nonterminal (lift_N n)
def sink_symbol_ (sink_N... |
3e3ecc5366da2c8c46f393d7ac26bd7dae6835a3 | 4d2583807a5ac6caaffd3d7a5f646d61ca85d532 | /src/ring_theory/int/basic.lean | 32ab9427daa707e0a24b1cbb294e513505de333d | [
"Apache-2.0"
] | permissive | AntoineChambert-Loir/mathlib | 64aabb896129885f12296a799818061bc90da1ff | 07be904260ab6e36a5769680b6012f03a4727134 | refs/heads/master | 1,693,187,631,771 | 1,636,719,886,000 | 1,636,719,886,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 15,254 | 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, Aaron Anderson
-/
import ring_theory.coprime.basic
import ring_theory.unique_factorization_domain
/-!
# Divisibility over ℕ and ℤ
This file collects r... |
c40c8ac825704b105e9a6d2e19c2c9271a258594 | 453dcd7c0d1ef170b0843a81d7d8caedc9741dce | /tactic/ext.lean | b43dd6c3ed9b87cbda66e92f77a0f6b4beef9921 | [
"Apache-2.0"
] | permissive | amswerdlow/mathlib | 9af77a1f08486d8fa059448ae2d97795bd12ec0c | 27f96e30b9c9bf518341705c99d641c38638dfd0 | refs/heads/master | 1,585,200,953,598 | 1,534,275,532,000 | 1,534,275,532,000 | 144,564,700 | 0 | 0 | null | 1,534,156,197,000 | 1,534,156,197,000 | null | UTF-8 | Lean | false | false | 1,966 | lean |
import tactic.basic
/--
Tag lemmas of the form:
```
lemma my_collection.ext (a b : my_collection)
(h : ∀ x, a.lookup x = b.lookup y) :
a = b := ...
```
-/
@[user_attribute]
meta def extensional_attribute : user_attribute :=
{ name := `extensionality,
descr := "lemmas usable by `ext` tactic" }
attribute... |
4ba5ed1cf38b3a38ee0db4b5c211a31996fab211 | 57c233acf9386e610d99ed20ef139c5f97504ba3 | /src/data/multiset/default.lean | e341db806bcd223be87e5969eb247606ab91830b | [
"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 | 419 | lean | import data.multiset.antidiagonal
import data.multiset.basic
import data.multiset.erase_dup
import data.multiset.finset_ops
import data.multiset.fold
import data.multiset.functor
import data.multiset.lattice
import data.multiset.locally_finite
import data.multiset.nat_antidiagonal
import data.multiset.nodup
import data... |
665a7f595673ae82e0a4f958c94119d1336756ae | 8b9f17008684d796c8022dab552e42f0cb6fb347 | /tests/lean/run/interp.lean | a5ddb61ed09652baf98ec3ec81551099d2ab9ca6 | [
"Apache-2.0"
] | permissive | chubbymaggie/lean | 0d06ae25f9dd396306fb02190e89422ea94afd7b | d2c7b5c31928c98f545b16420d37842c43b4ae9a | refs/heads/master | 1,611,313,622,901 | 1,430,266,839,000 | 1,430,267,083,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 771 | lean | import algebra.function
open bool nat
open function
inductive univ :=
| ubool : univ
| unat : univ
| uarrow : univ → univ → univ
open univ
definition interp : univ → Type₁
| ubool := bool
| unat := nat
| (uarrow fr to) := interp fr → interp to
definition foo : Π (u : univ) (el : interp u), int... |
b213d4cb3acf47de14146aef1a372260d9914b48 | e030b0259b777fedcdf73dd966f3f1556d392178 | /library/init/data/set.lean | 93f6d7acf9c7a0be9234b4b5721c11c69a5720ce | [
"Apache-2.0"
] | permissive | fgdorais/lean | 17b46a095b70b21fa0790ce74876658dc5faca06 | c3b7c54d7cca7aaa25328f0a5660b6b75fe26055 | refs/heads/master | 1,611,523,590,686 | 1,484,412,902,000 | 1,484,412,902,000 | 38,489,734 | 0 | 0 | null | 1,435,923,380,000 | 1,435,923,379,000 | null | UTF-8 | Lean | false | false | 1,633 | 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.logic init.category.functor
universe variables u v
def set (α : Type u) := α → Prop
def set_of {α : Type u} (p : α → Prop) : set α :=
... |
2da7a84aced575893d163ba4839bd31bfc916121 | 947b78d97130d56365ae2ec264df196ce769371a | /stage0/src/Lean/Meta/Tactic/Induction.lean | bbb76b18bab6b7b7ed1ded09533bc31071955950 | [
"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 | 11,461 | 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.RecursorInfo
import Lean.Meta.SynthInstance
import Lean.Meta.Tactic.Util
import Lean.Meta.Tactic.Revert
import Lean.Meta.Tactic.Intro
impor... |
e2f9c66e6fe19555f57a22bf229f67d14fd307da | 05f637fa14ac28031cb1ea92086a0f4eb23ff2b1 | /tests/lean/interactive/t6.lean | 1211d45a55c7c03cdf5f98f15f1181152dd524f9 | [
"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 | 115 | lean | (* import("tactic.lua") *)
theorem T1 (a b : Bool) : a → b → a /\ b.
apply and_intro.
exact.
done.
|
2a709b3965175c666a38797e3d4c8116938aa63e | 076f5040b63237c6dd928c6401329ed5adcb0e44 | /instructor-notes/2019.10.01.Polymorphism/boxed.lean | a5c72a6c0a1d493e5975bd23af48b3283b7499db | [] | no_license | kevinsullivan/uva-cs-dm-f19 | 0f123689cf6cb078f263950b18382a7086bf30be | 09a950752884bd7ade4be33e9e89a2c4b1927167 | refs/heads/master | 1,594,771,841,541 | 1,575,853,850,000 | 1,575,853,850,000 | 205,433,890 | 4 | 9 | null | 1,571,592,121,000 | 1,567,188,539,000 | Lean | UTF-8 | Lean | false | false | 148 | lean | namespace boxed_adt
inductive boxed (T : Type) : Type
| box : T → boxed
def unbox {T : Type} : boxed T → T
| (boxed.box t) := t
end boxed_adt |
d21aa4bcbf5c143d232355baf853cdf72ac0589b | cf798a5faaa43a993adcc42d1a99d5eab647e00b | /Equiv.lean | c0a9f3c53f5b3f0d040f580743f94bf7de8b57b4 | [] | no_license | myuon/lean-software-foundations | dbbcd37e3552b58c6e139370b16b25c69a42799b | a1a08810f2664493c920742c2d66a3131fb3ae75 | refs/heads/master | 1,610,261,785,986 | 1,459,922,839,000 | 1,459,922,839,000 | 50,269,716 | 4 | 1 | null | null | null | null | UTF-8 | Lean | false | false | 26,295 | lean | import Imp
open eq.ops nat bool
namespace Equiv
open Idn Idn.aexp Idn.bexp Idn.com Idn.ceval
definition aequiv (a1 a2 : aexp) := ∀st, aeval st a1 = aeval st a2
definition bequiv (b1 b2 : bexp) := ∀st, beval st b1 = beval st b2
definition cequiv (c1 c2 : com) := ∀st st', (c1 / st ⇓ st') ↔ (c2 / st ⇓ st')
-- Exercise... |
bde0d4607a5c861055b52547bcf5a5614c0d8540 | fa02ed5a3c9c0adee3c26887a16855e7841c668b | /src/order/boolean_algebra.lean | fbc8040e4d0a2f6ae4dd3265ec4af49ab817b579 | [
"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 | 32,399 | 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, Bryan Gin-ge Chen
-/
import order.bounded_lattice
/-!
# (Generalized) Boolean algebras
A Boolean algebra is a bounded distributive lattice with a complement operator. ... |
27ec567f934666edd7abf38441a723e57f3220f3 | e00ea76a720126cf9f6d732ad6216b5b824d20a7 | /src/number_theory/bernoulli.lean | 8ed438170640089bb85627515f03c124037cb453 | [
"Apache-2.0"
] | permissive | vaibhavkarve/mathlib | a574aaf68c0a431a47fa82ce0637f0f769826bfe | 17f8340912468f49bdc30acdb9a9fa02eeb0473a | refs/heads/master | 1,621,263,802,637 | 1,585,399,588,000 | 1,585,399,588,000 | 250,833,447 | 0 | 0 | Apache-2.0 | 1,585,410,341,000 | 1,585,410,341,000 | null | UTF-8 | Lean | false | false | 3,020 | lean | /-
Copyright (c) 2020 Johan Commelin. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Johan Commelin
-/
import data.rat
import data.fintype
import data.fintype.card
/-!
# Bernoulli numbers
The Bernoulli numbers are a sequence of numbers that frequently show up in num... |
a669bd9cf3c4bddd21135e737f260c9782f52db3 | e38e95b38a38a99ecfa1255822e78e4b26f65bb0 | /src/certigrad/env.lean | c3244043c55c0883d83d9b3b7f3ec2c7d754d5b8 | [
"Apache-2.0"
] | permissive | ColaDrill/certigrad | fefb1be3670adccd3bed2f3faf57507f156fd501 | fe288251f623ac7152e5ce555f1cd9d3a20203c2 | refs/heads/master | 1,593,297,324,250 | 1,499,903,753,000 | 1,499,903,753,000 | 97,075,797 | 1 | 0 | null | 1,499,916,210,000 | 1,499,916,210,000 | null | UTF-8 | Lean | false | false | 9,277 | lean | /-
Copyright (c) 2017 Daniel Selsam. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Author: Daniel Selsam
Environments.
-/
import data.hash_map library_dev.data.list.sort .tensor .id .util .reference
namespace certigrad
def pre_env : Type := hash_map reference (λ (ref : refe... |
b3c6e7fd418ac748fe5da0f1b63ada6ef248bda4 | 05f637fa14ac28031cb1ea92086a0f4eb23ff2b1 | /tests/lean/elab5.lean | 243560966155f39e566fa00afa7c3bb05ead7f28 | [
"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 | 498 | lean | variable C {A B : Type} (H : A = B) (a : A) : B
variable D {A A' : Type} {B : A -> Type} {B' : A' -> Type} (H : (forall x : A, B x) = (forall x : A', B' x)) : A = A'
variable R {A A' : Type} {B : A -> Type} {B' : A' -> Type} (H : (forall x : A, B x) = (forall x : A', B' x)) (a : A) :
(B a) = (B' (C (D H)... |
be86fdd6bccaf8058d88bf163123f0de52bb7ed1 | 019219cee6f24c05395ca6ccf1365289a9ffdebc | /mason_stothers_v2.lean | 43069a7cd647da4d4504fd7a0b1e39bb99ca5479 | [] | no_license | ChrisHughes24/mason-stother | df79efeb661cefe9ebba05415ca80d005135df4e | a4095993c2f7fc58091f1a1d05459eae17f786b1 | refs/heads/master | 1,584,409,893,766 | 1,523,892,476,000 | 1,523,892,476,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 54,950 | lean | -- the to be Mason-Stother formalization
-- Authors Johannes & Jens
--Defining the gcd
import poly
--import euclidean_domain
--Need to fix an admit in UFD, for the ...multiset lemma
import unique_factorization_domain
import data.finsupp
import algebraically_closed_field
import poly_over_UFD
import poly_over_field
impo... |
2ac8b8375216211e538473823e84dbb63050a77b | 57c233acf9386e610d99ed20ef139c5f97504ba3 | /src/topology/metric_space/contracting.lean | 19b4557e6799fe8cdb405bcb773ba4db2c0f23ac | [
"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 | 15,819 | lean | /-
Copyright (c) 2019 Rohan Mitta. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Rohan Mitta, Kevin Buzzard, Alistair Tucker, Johannes Hölzl, Yury Kudryashov
-/
import analysis.specific_limits
import data.setoid.basic
import dynamics.fixed_points.topology
/-!
# Contr... |
348c3acc8497e8bef35c8171233436ecbee1b1ee | 9dc8cecdf3c4634764a18254e94d43da07142918 | /src/category_theory/epi_mono.lean | ff2d5f37c00a90ee2069e93c970781139f789d8f | [
"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 | 9,260 | lean | /-
Copyright (c) 2019 Reid Barton. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Reid Barton, Scott Morrison
-/
import category_theory.adjunction.basic
import category_theory.opposites
import category_theory.groupoid
/-!
# Facts about epimorphisms and monomorphisms.
... |
3b44e08ae9f927b99b5b026451b12ef9f4b46646 | 947fa6c38e48771ae886239b4edce6db6e18d0fb | /src/number_theory/legendre_symbol/quadratic_reciprocity.lean | e3c70794f1c4b13c5bb1b93588d291fecf78a463 | [
"Apache-2.0"
] | permissive | ramonfmir/mathlib | c5dc8b33155473fab97c38bd3aa6723dc289beaa | 14c52e990c17f5a00c0cc9e09847af16fabbed25 | refs/heads/master | 1,661,979,343,526 | 1,660,830,384,000 | 1,660,830,384,000 | 182,072,989 | 0 | 0 | null | 1,555,585,876,000 | 1,555,585,876,000 | null | UTF-8 | Lean | false | false | 15,305 | lean | /-
Copyright (c) 2018 Chris Hughes. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Chris Hughes, Michael Stoll
-/
import number_theory.legendre_symbol.gauss_eisenstein_lemmas
import number_theory.legendre_symbol.quadratic_char
/-!
# Legendre symbol and quadratic recip... |
a3052941cdfb02e7ed5ca69c99dad2696907ac16 | 6432ea7a083ff6ba21ea17af9ee47b9c371760f7 | /tests/lean/run/eqndrecEtaLCNFIssue.lean | f49b34bec37b97af02be0c5e7e3ecdf4d9a39691 | [
"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 | 658 | lean | import Lean
namespace Ex1
inductive Multiset (α: Type): Type
def Finset (α : Type) := @Subtype (Multiset α) (λ _ => True)
def Finset.insert (a : α): Finset α → Finset α := sorry
def Finset.empty : Finset α := sorry
structure Foo (G: Fin 0) (m: Nat) where
n: Nat
f: Fin m
inductive Bar {G: Fin 0} : {m: Nat} → Fin... |
c1a70448e158127e5a546834b1444a15e70dbea5 | efa51dd2edbbbbd6c34bd0ce436415eb405832e7 | /20170116_POPL/backchain/ematch.lean | e9bc46c279ec8cf7e2e8b309d50cf5dca88f87e4 | [
"Apache-2.0"
] | permissive | leanprover/presentations | dd031a05bcb12c8855676c77e52ed84246bd889a | 3ce2d132d299409f1de269fa8e95afa1333d644e | refs/heads/master | 1,688,703,388,796 | 1,686,838,383,000 | 1,687,465,742,000 | 29,750,158 | 12 | 9 | Apache-2.0 | 1,540,211,670,000 | 1,422,042,683,000 | Lean | UTF-8 | Lean | false | false | 1,366 | lean | /- Lean also support E-matching: a heuristic lemma instantiation procedure
that is available in many SMT solvers.
Goals such as mk_mem_list can also be discharged using heuristic instantiation. -/
open list tactic
universe variable u
lemma in_tail {α : Type u} {a : α} (b : α) {l : list α} : a ∈ l → a ∈ ... |
94758b55f9cf3b98e9c9dbfd28684eb041c6b81d | bb31430994044506fa42fd667e2d556327e18dfe | /src/number_theory/zsqrtd/gaussian_int.lean | 8aa9a9f7829903f1cc1dc5371c4f2d58e78cb594 | [
"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 | 12,564 | lean | /-
Copyright (c) 2019 Chris Hughes. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Chris Hughes
-/
import number_theory.zsqrtd.basic
import data.complex.basic
import ring_theory.principal_ideal_domain
import number_theory.legendre_symbol.quadratic_reciprocity
/-!
# Gau... |
5f44e72c7e2dd15576535227d4e6a49b6a527ff8 | d406927ab5617694ec9ea7001f101b7c9e3d9702 | /src/algebra/big_operators/finsupp.lean | a4b71c17979e10e4947157b4a748d070826f9ec2 | [
"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,147 | lean | /-
Copyright (c) 2020 Kenny Lau. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Kenny Lau
-/
import data.finsupp.defs
import algebra.big_operators.pi
import algebra.big_operators.ring
import algebra.big_operators.order
import group_theory.submonoid.membership
/-!
# B... |
0e6a6f146e3d469a1996324d8fc585b7ea501823 | 26ac254ecb57ffcb886ff709cf018390161a9225 | /src/logic/basic.lean | 8a6ded64b1158b584bef0fb05581c4339bf43ed4 | [
"Apache-2.0"
] | permissive | eric-wieser/mathlib | 42842584f584359bbe1fc8b88b3ff937c8acd72d | d0df6b81cd0920ad569158c06a3fd5abb9e63301 | refs/heads/master | 1,669,546,404,255 | 1,595,254,668,000 | 1,595,254,668,000 | 281,173,504 | 0 | 0 | Apache-2.0 | 1,595,263,582,000 | 1,595,263,581,000 | null | UTF-8 | Lean | false | false | 39,733 | 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
-/
import tactic.doc_commands
/-!
# Basic logic properties
This file is one of the earliest imports in mathlib.
## Implementation notes
Theorems tha... |
ff20d3fa7f6c7a8192ac10953d8bc0d3d4eb94a8 | 86f6f4f8d827a196a32bfc646234b73328aeb306 | /examples/sets_functions_and_relations/unnamed_856.lean | c3a0897768375ece147a722a2a18e6cc491359d9 | [] | no_license | jamescheuk91/mathematics_in_lean | 09f1f87d2b0dce53464ff0cbe592c568ff59cf5e | 4452499264e2975bca2f42565c0925506ba5dda3 | refs/heads/master | 1,679,716,410,967 | 1,613,957,947,000 | 1,613,957,947,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 214 | lean | import data.set.function
variables {α β : Type*}
variable f : α → β
variables s t : set α
-- BEGIN
example : s ⊆ f ⁻¹' (f '' s) :=
begin
intros x xs,
show f x ∈ f '' s,
use [x, xs]
end
-- END |
f1039902e18aaa84daff4019096696aa462aa3c8 | 5b0c53e5aaa0e60538d10f6b619a464aaf463815 | /ch5.hlean | b6e118a6d5383df1533c1d4934239e27040cae08 | [
"Apache-2.0"
] | permissive | bbentzen/hott-book-in-lean | f845a19ef09d48d2fb813624b4650d5832a47e10 | 9e262e633e653280b9cde5d287631fcec8501f64 | refs/heads/master | 1,586,430,679,994 | 1,519,975,089,000 | 1,519,975,089,000 | 50,330,220 | 1 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 3,733 | hlean | /-
Copyright (c) 2016 Bruno Bentzen. All rights reserved.
Released under the Apache License 2.0 (see "License");
Theorems and exercises of the HoTT book (Chapter 5)
-/
import .ch2 .ch3
open eq prod unit bool sum sigma ua funext nat lift
/- ************************************** -/
/- Ch.5 Induction ... |
35da6384717393246d56f99bd62ffb7a7febbb60 | c3f2fcd060adfa2ca29f924839d2d925e8f2c685 | /hott/init/path.hlean | 6b98187dc5c5f58e59c6065f1fe8c5a7806a19e9 | [
"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 | 24,340 | hlean | /-
Copyright (c) 2014 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Module: init.path
Authors: Jeremy Avigad, Jakob von Raumer, Floris van Doorn
Ported from Coq HoTT
-/
prelude
import .function .datatypes .relation .tactic
open function eq
/- Path e... |
ef3754ccc36e1b2aec4c1debd97c54619e485b62 | 4727251e0cd73359b15b664c3170e5d754078599 | /src/analysis/quaternion.lean | 2b77f49fb542728e36f1fc6bf262f6e5dd513667 | [
"Apache-2.0"
] | permissive | Vierkantor/mathlib | 0ea59ac32a3a43c93c44d70f441c4ee810ccceca | 83bc3b9ce9b13910b57bda6b56222495ebd31c2f | refs/heads/master | 1,658,323,012,449 | 1,652,256,003,000 | 1,652,256,003,000 | 209,296,341 | 0 | 1 | Apache-2.0 | 1,568,807,655,000 | 1,568,807,655,000 | null | UTF-8 | Lean | false | false | 3,425 | lean | /-
Copyright (c) 2020 Yury Kudryashov. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Yury Kudryashov
-/
import algebra.quaternion
import analysis.inner_product_space.basic
/-!
# Quaternions as a normed algebra
In this file we define the following structures on the s... |
7540735496875ea7f182a8ac1cc630679801d286 | d1a52c3f208fa42c41df8278c3d280f075eb020c | /stage0/src/Lean/Elab/Tactic/Match.lean | 1444254784ef7af40083560671b2e9c001d58317 | [
"Apache-2.0",
"LLVM-exception",
"NCSA",
"LGPL-3.0-only",
"LicenseRef-scancode-inner-net-2.0",
"BSD-3-Clause",
"LGPL-2.0-or-later",
"Spencer-94",
"LGPL-2.1-or-later",
"HPND",
"LicenseRef-scancode-pcre",
"ISC",
"LGPL-2.1-only",
"LicenseRef-scancode-other-permissive",
"SunPro",
"CMU-Mach"... | permissive | cipher1024/lean4 | 6e1f98bb58e7a92b28f5364eb38a14c8d0aae393 | 69114d3b50806264ef35b57394391c3e738a9822 | refs/heads/master | 1,642,227,983,603 | 1,642,011,696,000 | 1,642,011,696,000 | 228,607,691 | 0 | 0 | Apache-2.0 | 1,576,584,269,000 | 1,576,584,268,000 | null | UTF-8 | Lean | false | false | 2,781 | 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.Parser.Term
import Lean.Elab.Match
import Lean.Elab.Tactic.Basic
import Lean.Elab.Tactic.Induction
namespace Lean.Elab.Tactic
open Meta
/- Era... |
47571518d466c80915dfaa3974c794072a7f884b | 6432ea7a083ff6ba21ea17af9ee47b9c371760f7 | /tests/lean/run/renameI.lean | 6dde569c2f9ed3a0ec27c627178810adc235fb50 | [
"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 | 154 | lean | example : ∀ a b c d : Nat, a = b → a = d → a = c → c = b := by
intros
rename_i h1 _ h2
apply Eq.trans
apply Eq.symm
exact h2
exact h1
|
5ea00b00a3668a085c1cfd2387e719fbb4058538 | 94e33a31faa76775069b071adea97e86e218a8ee | /src/algebra/order/field.lean | 26df8720a2f498cb42fae6ee8a287b7dcdd62cd6 | [
"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 | 34,844 | lean | /-
Copyright (c) 2014 Robert Lewis. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Robert Lewis, Leonardo de Moura, Mario Carneiro, Floris van Doorn
-/
import algebra.field.basic
import algebra.group_power.lemmas
import algebra.group_power.order
import algebra.order.ri... |
daee1b44c3fa7a25286eb33df82e0fadcc25b1ba | a523fc1740c8cb84cd0fa0f4b52a760da4e32a5c | /src/eigenvector.lean | afc29bb081b7b0a2d9e576c534869ba26e07d03b | [] | no_license | abentkamp/spectral | a1aff51e85d30b296a81d256ced1d382345d3396 | 751645679ef1cb6266316349de9e492eff85484c | refs/heads/master | 1,669,994,798,064 | 1,597,591,646,000 | 1,597,591,646,000 | 287,544,072 | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 23,866 | lean | /-
Copyright (c) 2020 Alexander Bentkamp. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Author: Alexander Bentkamp.
-/
import ring_theory.principal_ideal_domain
import missing_mathlib.data.polynomial
import missing_mathlib.data.multiset
import missing_mathlib.data.finsupp
imp... |
64e0c26a4029cac58ecaa79518fec72a8df68109 | a047a4718edfa935d17231e9e6ecec8c7b701e05 | /src/linear_algebra/finsupp_vector_space.lean | 577fe275b0634858315b778f3abefccf893a2f90 | [
"Apache-2.0"
] | permissive | utensil-contrib/mathlib | bae0c9fafe5e2bdb516efc89d6f8c1502ecc9767 | b91909e77e219098a2f8cc031f89d595fe274bd2 | refs/heads/master | 1,668,048,976,965 | 1,592,442,701,000 | 1,592,442,701,000 | 273,197,855 | 0 | 0 | null | 1,592,472,812,000 | 1,592,472,811,000 | null | UTF-8 | Lean | false | false | 6,334 | lean | /-
Copyright (c) 2019 Johannes Hölzl. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Author: Johannes Hölzl
Linear structures on function with finite support `ι →₀ β`.
-/
import data.mv_polynomial
import linear_algebra.dimension
noncomputable theory
local attribute [instance, ... |
9c974f09df83c1f32451234e6720da7291dcf0f7 | 8930e38ac0fae2e5e55c28d0577a8e44e2639a6d | /data/equiv/denumerable.lean | 3649efcc6a8c552e5181b11a2ca2c8a026769123 | [
"Apache-2.0"
] | permissive | SG4316/mathlib | 3d64035d02a97f8556ad9ff249a81a0a51a3321a | a7846022507b531a8ab53b8af8a91953fceafd3a | refs/heads/master | 1,584,869,960,527 | 1,530,718,645,000 | 1,530,724,110,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 3,873 | 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... |
5076f36a1a272f534555fff76c73ba8a4481c9cf | 432d948a4d3d242fdfb44b81c9e1b1baacd58617 | /src/data/real/nnreal.lean | f78e1cd7058063c000d05c801cf7c6be28166abc | [
"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 | 27,951 | 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... |
c2531df0f55218af64af1cc2833e341084f1ccfa | cf39355caa609c0f33405126beee2739aa3cb77e | /tests/lean/anc1.lean | 8cb093a89629ff098a9295de0b556a2e3dd2e58f | [
"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,316 | lean | #check (⟨1, 2⟩ : nat × nat)
#check (⟨trivial, trivial⟩ : true ∧ true)
example : true := sorry
#check (⟨1, sorry⟩ : Σ' x : nat, x > 0)
open tactic
#check show true, from ⟨⟩
#check (⟨1, by intro1 >> contradiction⟩ : ∃ x : nat, 1 ≠ 0)
universe variables u v
#check λ (A B C : Prop),
assume (Ha : A) (Hb : B) (Hc : C... |
00bae7fcdcfc83b7c07b01868c75b06b8083675b | 8cae430f0a71442d02dbb1cbb14073b31048e4b0 | /src/group_theory/free_abelian_group_finsupp.lean | 10e05a6d2520bb311fa716da6e0db97e3e48c1c7 | [
"Apache-2.0"
] | permissive | leanprover-community/mathlib | 56a2cadd17ac88caf4ece0a775932fa26327ba0e | 442a83d738cb208d3600056c489be16900ba701d | refs/heads/master | 1,693,584,102,358 | 1,693,471,902,000 | 1,693,471,902,000 | 97,922,418 | 1,595 | 352 | Apache-2.0 | 1,694,693,445,000 | 1,500,624,130,000 | Lean | UTF-8 | Lean | false | false | 7,142 | 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 algebra.hom.equiv.type_tags
import algebra.module.equiv
import data.finsupp.defs
import group_theory.free_abelian_group
import group_theory.is_free_group
impo... |
c61761bb5526c01513255019a107cb4864bd5981 | 74caf7451c921a8d5ab9c6e2b828c9d0a35aae95 | /library/init/meta/name.lean | c49054a16ce377cffdb57d2e9ca6bf2094172dbc | [
"Apache-2.0"
] | permissive | sakas--/lean | f37b6fad4fd4206f2891b89f0f8135f57921fc3f | 570d9052820be1d6442a5cc58ece37397f8a9e4c | refs/heads/master | 1,586,127,145,194 | 1,480,960,018,000 | 1,480,960,635,000 | 40,137,176 | 0 | 0 | null | 1,438,621,351,000 | 1,438,621,351,000 | null | UTF-8 | Lean | false | false | 2,038 | 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... |
e3b4da3c3815b2280395aeb485e6f53a7aa56fa9 | 8eeb99d0fdf8125f5d39a0ce8631653f588ee817 | /src/data/equiv/basic.lean | 653fc72500de6e369c61a1a88ff86a469d04f68a | [
"Apache-2.0"
] | permissive | jesse-michael-han/mathlib | a15c58378846011b003669354cbab7062b893cfe | fa6312e4dc971985e6b7708d99a5bc3062485c89 | refs/heads/master | 1,625,200,760,912 | 1,602,081,753,000 | 1,602,081,753,000 | 181,787,230 | 0 | 0 | null | 1,555,460,682,000 | 1,555,460,682,000 | null | UTF-8 | Lean | false | false | 76,399 | 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.set.function
import algebra.group.basic
/-!
# Equivalence between types
In this file we define two types:
* `equiv α β` a.k.a... |
0b834a1eee5590be1d1e5a72e48833e834f0db5c | 55c7fc2bf55d496ace18cd6f3376e12bb14c8cc5 | /src/category_theory/adjunction/basic.lean | 958f4cdba4fb25d842801c7a2d52b61211e2b315 | [
"Apache-2.0"
] | permissive | dupuisf/mathlib | 62de4ec6544bf3b79086afd27b6529acfaf2c1bb | 8582b06b0a5d06c33ee07d0bdf7c646cae22cf36 | refs/heads/master | 1,669,494,854,016 | 1,595,692,409,000 | 1,595,692,409,000 | 272,046,630 | 0 | 0 | Apache-2.0 | 1,592,066,143,000 | 1,592,066,142,000 | null | UTF-8 | Lean | false | false | 15,302 | lean | /-
Copyright (c) 2019 Reid Barton. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Reid Barton, Johan Commelin, Bhavik Mehta
-/
import category_theory.equivalence
import data.equiv.basic
namespace category_theory
open category
universes v₁ v₂ v₃ u₁ u₂ u₃ -- declare th... |
94a3c8b2bc3a0a2dadf7e5597b1b2fd118576867 | 26ac254ecb57ffcb886ff709cf018390161a9225 | /src/topology/algebra/ring.lean | f45b5d510dbb9bdb77214365a29c85c6adb979b3 | [
"Apache-2.0"
] | permissive | eric-wieser/mathlib | 42842584f584359bbe1fc8b88b3ff937c8acd72d | d0df6b81cd0920ad569158c06a3fd5abb9e63301 | refs/heads/master | 1,669,546,404,255 | 1,595,254,668,000 | 1,595,254,668,000 | 281,173,504 | 0 | 0 | Apache-2.0 | 1,595,263,582,000 | 1,595,263,581,000 | null | UTF-8 | Lean | false | false | 4,015 | lean | /-
Copyright (c) 2018 Patrick Massot. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Patrick Massot, Johannes Hölzl
Theory of topological rings.
-/
import topology.algebra.group
import ring_theory.ideals
open classical set filter topological_space
open_locale classic... |
0b948e5979f164ab377cbe7c98470a9f40953be7 | b7f22e51856f4989b970961f794f1c435f9b8f78 | /tests/lean/run/ind_bug.lean | 65c42fc7f8d6a7d223de4e5362a0a40156b88e80 | [
"Apache-2.0"
] | permissive | soonhokong/lean | cb8aa01055ffe2af0fb99a16b4cda8463b882cd1 | 38607e3eb57f57f77c0ac114ad169e9e4262e24f | refs/heads/master | 1,611,187,284,081 | 1,450,766,737,000 | 1,476,122,547,000 | 11,513,992 | 2 | 0 | null | 1,401,763,102,000 | 1,374,182,235,000 | C++ | UTF-8 | Lean | false | false | 205 | lean | import logic
constant N : Type.{1}
constant I : Type.{1}
namespace foo
inductive p (a : N) : Prop :=
intro : p a
end foo
open foo
namespace bla
inductive p (a : I) : Prop :=
intro : p a
end bla
|
754160fa6bf517b8acc169668a353f43d68664d9 | 8c02fed42525b65813b55c064afe2484758d6d09 | /src/irtype.lean | ae4ee9840232dcb47ff1032accfd1ab587beca71 | [
"LicenseRef-scancode-generic-cla",
"MIT"
] | permissive | microsoft/AliveInLean | 3eac351a34154efedd3ffc4fe2fa4ec01b219e0d | 4b739dd6e4266b26a045613849df221374119871 | refs/heads/master | 1,691,419,737,939 | 1,689,365,567,000 | 1,689,365,568,000 | 131,156,103 | 23 | 18 | NOASSERTION | 1,660,342,040,000 | 1,524,747,538,000 | Lean | UTF-8 | Lean | false | false | 1,274 | lean | -- Copyright (c) Microsoft Corporation. All rights reserved.
-- Licensed under the MIT license.
import .lang
-- Returns true if program p contains uninstantiated type.
def has_arbitrary_type (p:program): bool :=
list.foldl (λ (b:bool) inst, bor b
(match inst with
| instruction.binop t lhs bop nswnuw op1 op2... |
1a9d7354cab5b284db40294aff45188d2379e82b | 74addaa0e41490cbaf2abd313a764c96df57b05d | /Mathlib/topology/sheaves/presheaf_auto.lean | 0e82d6430ba7c8a88e6bf4948cd58a3983e88ffc | [] | 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,829 | 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, Reid Barton
-/
import Mathlib.PrePort
import Mathlib.Lean3Lib.init.default
import Mathlib.topology.category.Top.opens
import Mathlib.PostPort
universes... |
c8f751821744d66c84857abbd9b8be61fddb7ae9 | d406927ab5617694ec9ea7001f101b7c9e3d9702 | /src/topology/sheaves/presheaf.lean | 1a39ca3fc7a89c96f65adf30b336fca1264d83b4 | [
"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 | 15,200 | 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, Reid Barton, Andrew Yang
-/
import category_theory.limits.kan_extension
import topology.category.Top.opens
import category_theory.adjunction.opposites
... |
60b2ba0abdbf2d767f79f57d1ac30adaee04a64b | 3dd1b66af77106badae6edb1c4dea91a146ead30 | /library/standard/set.lean | 0cc819a17f4b006228a0fb8e0ab038b837ad562f | [
"Apache-2.0"
] | permissive | silky/lean | 79c20c15c93feef47bb659a2cc139b26f3614642 | df8b88dca2f8da1a422cb618cd476ef5be730546 | refs/heads/master | 1,610,737,587,697 | 1,406,574,534,000 | 1,406,574,534,000 | 22,362,176 | 1 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 1,934 | lean | --- Copyright (c) 2014 Jeremy Avigad. All rights reserved.
--- Released under Apache 2.0 license as described in the file LICENSE.
--- Author: Jeremy Avigad, Leonardo de Moura
import logic funext bool
using eq_proofs bool
namespace set
definition set (T : Type) := T → bool
definition mem {T : Type} (x : T) (s : set T)... |
6dfd3970ef9c1a579bc3ee8d74b807354ff22dac | cf39355caa609c0f33405126beee2739aa3cb77e | /tests/lean/run/eval_attr_cache.lean | 0ecd8a5fd2e6a809726dd3a2ceee26d4e1e6cde5 | [
"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 | 716 | lean | open tactic
@[user_attribute]
meta def my_attr : user_attribute (name → bool) :=
{ name := "my_attr",
descr := "my attr",
cache_cfg := {
mk_cache := λ ls, do {
let c := `(λ n : name, (name.cases_on n ff (λ _ _, to_bool (n ∈ ls)) (λ _ _, ff) : bool)),
eval_expr (name → bool) c
},... |
ef8bbe102d17394c4f72caefd42ecb924971b8f9 | b32d3853770e6eaf06817a1b8c52064baaed0ef1 | /src/super/distinct.lean | 6131ed279520ab809ecfa03b2a541942e5c69535 | [] | no_license | gebner/super2 | 4d58b7477b6f7d945d5d866502982466db33ab0b | 9bc5256c31750021ab97d6b59b7387773e54b384 | refs/heads/master | 1,635,021,682,021 | 1,634,886,326,000 | 1,634,886,326,000 | 225,600,688 | 4 | 2 | null | 1,598,209,306,000 | 1,575,371,550,000 | Lean | UTF-8 | Lean | false | false | 2,884 | lean | import super.resolve data.list.alist
namespace super
namespace clause_type
meta def has_dups (t : clause_type) : bool :=
t.literals.has_dups
meta def is_or_ff_clean : clause_type → bool
| ff := tt
| (disj _ ff _) := bool.ff
| (disj _ _ ff) := bool.ff
| (disj _ a b) := a.is_or_ff_clean ∧ b.is_or_ff_clean
| (imp _ a)... |
35d0793c36c3a0b3c96dece98aa665833eefaf09 | acc85b4be2c618b11fc7cb3005521ae6858a8d07 | /data/subtype.lean | 1f5461d47f8385fba2703d0616fbc7e5af31f0a0 | [
"Apache-2.0"
] | permissive | linpingchuan/mathlib | d49990b236574df2a45d9919ba43c923f693d341 | 5ad8020f67eb13896a41cc7691d072c9331b1f76 | refs/heads/master | 1,626,019,377,808 | 1,508,048,784,000 | 1,508,048,784,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 594 | 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
Quotients -- extends the core library
-/
variables {α : Type*} {p : α → Prop} {q : {a // p a} → Prop}
lemma forall_subtype : (∀x:{a // p a}, q x) ↔ (∀a (h : p a), q ⟨... |
9f07d383b161713544333badbf583d70939935d9 | 9dc8cecdf3c4634764a18254e94d43da07142918 | /src/order/monotone.lean | a57bbebf9bc9d5b5e9190c0f9034f94b8a038f56 | [
"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 | 35,050 | lean | /-
Copyright (c) 2014 Jeremy Avigad. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Jeremy Avigad, Mario Carneiro, Yaël Dillies
-/
import order.compare
import order.max
import order.rel_classes
/-!
# Monotonicity
This file defines (strictly) monotone/antitone functio... |
b85696e6c160411d945ff7651916490f2a5eb048 | 618003631150032a5676f229d13a079ac875ff77 | /src/algebra/continued_fractions/terminated_stable.lean | 08c9cccfcc79574dcbfd9000e5500c7c2d1a4d47 | [
"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 | 4,645 | 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.translations
/-!
# Stabilisation of gcf Computations Under Termination
## Summary
We show that the continuants and convergent... |
f4b644f108f3a0dd173ef3d81508d449f647dcc8 | 57c233acf9386e610d99ed20ef139c5f97504ba3 | /src/data/nat/factorial/basic.lean | 8bfe1ea691c530b94214194d007d0f80bec8b258 | [
"Apache-2.0"
] | permissive | robertylewis/mathlib | 3d16e3e6daf5ddde182473e03a1b601d2810952c | 1d13f5b932f5e40a8308e3840f96fc882fae01f0 | refs/heads/master | 1,651,379,945,369 | 1,644,276,960,000 | 1,644,276,960,000 | 98,875,504 | 0 | 0 | Apache-2.0 | 1,644,253,514,000 | 1,501,495,700,000 | Lean | UTF-8 | Lean | false | false | 14,940 | lean | /-
Copyright (c) 2018 Mario Carneiro. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Mario Carneiro, Chris Hughes, Floris van Doorn, Yaël Dillies
-/
import data.nat.basic
import data.nat.pow
/-!
# Factorial and variants
This file defines the factorial, along with the... |
f9f9be84f03f75ee6190191dd370ca9bb3a54d91 | 3ed5a65c1ab3ce5d1a094edce8fa3287980f197b | /src/herstein/ex1_1/Q_01.lean | 32a1f9b8670831d736cc148de6cef2c7b7e746e7 | [] | no_license | group-study-group/herstein | 35d32e77158efa2cc303c84e1ee5e3bc80831137 | f5a1a72eb56fa19c19ece0cb3ab6cf7ffd161f66 | refs/heads/master | 1,586,202,191,519 | 1,548,969,759,000 | 1,548,969,759,000 | 157,746,953 | 0 | 0 | null | 1,542,412,901,000 | 1,542,302,366,000 | Lean | UTF-8 | Lean | false | false | 504 | lean | import data.set.basic
variable α: Type*
variables A B C: set α
open set
theorem Q_01a: A ⊆ B ∧ B ⊆ C → A ⊆ C :=
λ ⟨hl, hr⟩ a ha, hr (hl ha)
theorem Q_01b₁: B ⊆ A → A ∪ B = A :=
λ h, ext $ λ x,
⟨λ hab, or.elim hab (λ ha, ha) (λ hb, h hb),
or.inl⟩
theorem Q_01c₁: B ⊆ A → B ∪ C ⊆ A ∪ C :=
λ h x hbc, or.elim hbc
... |
3ac70a059c4531c14bcc1eebcca4bd64ffa9f315 | 32025d5c2d6e33ad3b6dd8a3c91e1e838066a7f7 | /stage0/src/Lean/Parser/Tactic.lean | 23e865ded12d1b03aa935a64492238743b3c619d | [
"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 | 5,040 | 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.Parser.Term
namespace Lean
namespace Parser
namespace Tactic
def underscoreFn : ParserFn :=
fun c s =>
let s := symbolF... |
9d9c32d6d00cd3abad0a1e2b08c7856a49e32f67 | 271e26e338b0c14544a889c31c30b39c989f2e0f | /src/Init/Data/RBMap/Basic.lean | e2a87a9614c287947475e9cdfd0735872d626d04 | [
"Apache-2.0"
] | permissive | dgorokho/lean4 | 805f99b0b60c545b64ac34ab8237a8504f89d7d4 | e949a052bad59b1c7b54a82d24d516a656487d8a | refs/heads/master | 1,607,061,363,851 | 1,578,006,086,000 | 1,578,006,086,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 11,748 | 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.Data.Repr
import Init.Data.Option.Basic
universes u v w w'
inductive Rbcolor
| red | black
inductive RBNode (α : Type u) (β : α → Typ... |
aad8051fff419e871d64a0efa7bebf217ab00143 | d1a52c3f208fa42c41df8278c3d280f075eb020c | /stage0/src/Lean/Server/FileWorker.lean | 207e2489fffd41b4792d952bb1d60b4c3b07cf3c | [
"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 | 21,762 | 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 Init.System.IO
import Std.Data.RBMap
import Lean.Environment
import Lean.Data.Lsp
import Lean.Data.Json.FromToJson
import Lean.Util.Paths
... |
5683b65222d06dacd7270833bc2f7202b0fef45c | 46125763b4dbf50619e8846a1371029346f4c3db | /src/tactic/tauto.lean | 4a02bf0823d8a0d1a4eba24dd966805d95d50c92 | [
"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 | 8,875 | lean | /-
Copyright (c) 2018 Simon Hudon. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Simon Hudon
-/
import logic.basic tactic.solve_by_elim tactic.hint
namespace tactic
open expr
open tactic.interactive ( casesm constructor_matching )
/--
find all assumptions of the ... |
ec29f214812455e10d9661739dc5c59993284ac3 | 947b78d97130d56365ae2ec264df196ce769371a | /tests/lean/run/new_inductive.lean | e9a31f347480229dacfef90ca9a95728e0b4bc33 | [
"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 | 2,051 | lean | new_frontend
universes u v
inductive myList (α : Type u)
| nil : myList α
| cons : α → myList α → myList α
inductive myPair (α : Type u) (β : Type v)
| mk : α → β → myPair α β
mutual
variables (α : Type u) (m : α → Type v)
inductive bla : Nat → Type (max u v)
| mk₁ (n : Nat) : α → boo n → bla (n+1)
| mk₂ (a : α) ... |
d7f1b0224cf140924679fb13880fb38aadf0fca2 | 9028d228ac200bbefe3a711342514dd4e4458bff | /src/linear_algebra/direct_sum_module.lean | 10f0d11b9fd9bd285d803d164afad76bb4788530 | [
"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 | 4,949 | lean | /-
Copyright (c) 2018 Kenny Lau. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Kenny Lau
Direct sum of modules over commutative rings, indexed by a discrete type.
-/
import algebra.direct_sum
import linear_algebra.basic
/-!
# Direct sum of modules over commutative r... |
61010c727eba7dbd11403612278c54c9b28db2f2 | cf39355caa609c0f33405126beee2739aa3cb77e | /library/init/data/nat/bitwise.lean | 33346dfca02976b22626ccdfe98884e310b0efd4 | [
"Apache-2.0"
] | permissive | leanprover-community/lean | 12b87f69d92e614daea8bcc9d4de9a9ace089d0e | cce7990ea86a78bdb383e38ed7f9b5ba93c60ce0 | refs/heads/master | 1,687,508,156,644 | 1,684,951,104,000 | 1,684,951,104,000 | 169,960,991 | 457 | 107 | Apache-2.0 | 1,686,744,372,000 | 1,549,790,268,000 | C++ | UTF-8 | Lean | false | false | 10,081 | lean | /-
Copyright (c) 2017 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Author: Mario Carneiro
-/
prelude
import init.data.nat.lemmas init.meta.well_founded_tactics
universe u
namespace nat
def bodd_div2 : ℕ → bool × ℕ
| 0 := (ff, 0)
| (succ n) :=... |
90bef92f22d6acb2e7ffd2318f74a1c481d3d571 | 22e97a5d648fc451e25a06c668dc03ac7ed7bc25 | /src/analysis/special_functions/trigonometric.lean | 8e3a2493ada87fa350964432e694dd37abf2de8a | [
"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 | 65,890 | lean | /-
Copyright (c) 2018 Chris Hughes. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Chris Hughes, Abhimanyu Pallavi Sudhir, Jean Lo, Calle Sönne
-/
import analysis.special_functions.exp_log
/-!
# Trigonometric functions
## Main definitions
This file contains the foll... |
76e3d259055370cb17eb1e0efed953e67ca3048e | 4727251e0cd73359b15b664c3170e5d754078599 | /src/data/real/pointwise.lean | ba7b6512dacc0738f8fd13db005a3a14f31cb4d3 | [
"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,103 | lean | /-
Copyright (c) 2021 Yaël Dillies. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Yaël Dillies, Eric Wieser
-/
import algebra.order.module
import data.real.basic
/-!
# Pointwise operations on sets of reals
This file relates `Inf (a • s)`/`Sup (a • s)` with `a • Inf ... |
3900a0a80f89b4e0320e6279fb3e2e1cbc9eac11 | 9ad8d18fbe5f120c22b5e035bc240f711d2cbd7e | /src/exercises/mathcomp_book/chapter_3.lean | c7118f46ef80334fc4bc97504fe3f7ae59478a4e | [] | 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 | 4,735 | lean | import data.nat.choose data.nat.prime data.fintype algebra.big_operators
import tactic.ring
/- --------------------------------------------------------------- -/
-- Section 3.1.2
#check Prop
#check Type
#check Type 5
def my_matrix (R : Type) (n m : ℕ) : Type :=
(fin n) → (fin m) → R
def my_matrix.mul {R : Type} [... |
18f850ed2adb3648575aaf728b6fa2b2e68e3a8c | 35677d2df3f081738fa6b08138e03ee36bc33cad | /src/tactic/omega/eq_elim.lean | b0509d419eb40b5632f0cc8e4b43954650dbc648 | [
"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 | 14,660 | lean | /- Copyright (c) 2019 Seul Baek. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Author: Seul Baek
Correctness lemmas for equality elimination.
See 5.5 of <http://www.decision-procedures.org/> for details. -/
import tactic.omega.clause
open list.func
namespace omega
def sym... |
64a591886901ae17fcbc483d3ce21e9f77b29238 | cb3da1b91380e7462b579b426a278072c688954a | /src/leu_pin.lean | 0bc0ca20d3037b9528929ab61de9dbf0d7192f86 | [] | no_license | hcheval/tikhonov-mann | 35c93e46a8287f6479a848a9d4f02013e0bc2035 | 6ab7fcefe9e1156c20bd5d1998a7deabd1eeb018 | refs/heads/master | 1,689,232,126,344 | 1,630,182,255,000 | 1,630,182,255,000 | 399,859,996 | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 13,584 | lean | import data.real.basic tactic utils
import rates
namespace leu_pin
section
open_locale big_operators
open finset (range Ico)
@[reducible] def δ (ψ χ : ℕ → ℕ) (k : ℕ) : ℕ := max (ψ $ 3 * k + 2) ((χ $ 3 * k + 2) + 1)
variables (a b c s : ℕ → ℝ) (M : ℕ) (ψ χ θ δ₀ : ℕ → ℕ)
variables (a_nonneg : ∀ (n : ℕ), ... |
e67c2ab337a59b5a6c94a0927a68358962071efc | 7cef822f3b952965621309e88eadf618da0c8ae9 | /src/data/zsqrtd/basic.lean | ef9e7f2fbe945c6d9190614f0506ed1a97b68cbc | [
"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 | 26,831 | 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 algebra.associated data.nat.gcd
/-- The ring of integers adjoined with a square root of `d`.
These have the form `a + b √d` where `a b : ℤ`. ... |
b4b452b2b7c209f0c4a03a8cc0c2818312c06164 | 94637389e03c919023691dcd05bd4411b1034aa5 | /src/zzz_junk/has_mul/has_mul.lean | 28fd9726a5b315467773572b6d0a43d731530d51 | [] | no_license | kevinsullivan/complogic-s21 | 7c4eef2105abad899e46502270d9829d913e8afc | 99039501b770248c8ceb39890be5dfe129dc1082 | refs/heads/master | 1,682,985,669,944 | 1,621,126,241,000 | 1,621,126,241,000 | 335,706,272 | 0 | 38 | null | 1,618,325,669,000 | 1,612,374,118,000 | Lean | UTF-8 | Lean | false | false | 1,837 | lean | namespace hidden
universe u
/-
Version 1
-/
structure has_mul'' (α : Type u): Type (u+1) :=
(mul : α → α → α)
-- def has_mul''_bool_type := has_mul'' bool
def has_mul''_bool : has_mul'' bool := has_mul''.mk band -- in bool lib
def has_mul''_nat : has_mul'' nat := has_mul''.mk nat.mul -- in nat lib
/- Later on ... |
9012c8b51ed98f6ac4b5b8eb068ccf27ad23ce46 | 57c233acf9386e610d99ed20ef139c5f97504ba3 | /src/topology/algebra/affine.lean | dddef55e2611d8d769f2c807174903c747e18512 | [
"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 | 2,330 | lean | /-
Copyright (c) 2020 Frédéric Dupuis. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Frédéric Dupuis
-/
import linear_algebra.affine_space.affine_map
import topology.algebra.group
import topology.algebra.mul_action
/-!
# Topological properties of affine spaces and ma... |
0b19708e2941bec78ee64792ea67815ba6b5f8d1 | 137c667471a40116a7afd7261f030b30180468c2 | /src/group_theory/perm/cycles.lean | 00f2352e2241eca648c63faaebe8db6db09faf39 | [
"Apache-2.0"
] | permissive | bragadeesh153/mathlib | 46bf814cfb1eecb34b5d1549b9117dc60f657792 | b577bb2cd1f96eb47031878256856020b76f73cd | refs/heads/master | 1,687,435,188,334 | 1,626,384,207,000 | 1,626,384,207,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 40,513 | lean | /-
Copyright (c) 2019 Chris Hughes. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Chris Hughes
-/
import data.nat.parity
import data.equiv.fintype
import group_theory.perm.sign
import data.finset.noncomm_prod
/-!
# Cyclic permutations
## Main definitions
In the foll... |
f3a2d96ea07fb1cbd1475116ca64e9b3e500156f | 1a8c2c9f2b591362e78c4cafa31aa400c878b7e8 | /library/init/meta/default.lean | 53eec7ab66e48144b3582b424e68f044d2b46d5e | [
"Apache-2.0"
] | permissive | jlpaca/lean-freebsd | ea88cd82635fe6eb0391ebb30e830a58be97cb1a | 851cdaacf5d6caf50a42425b9246f427f0551866 | refs/heads/master | 1,613,685,045,763 | 1,590,309,513,000 | 1,590,309,513,000 | 245,241,297 | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 1,051 | 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 init.meta.options init.meta.format init.meta.rb_map
import init.meta.level init.meta.expr init.meta.environment init.meta.attr... |
29d9d72af4fa19fcec578741053569ae8f25658f | 74addaa0e41490cbaf2abd313a764c96df57b05d | /Mathlib/topology/constructions_auto.lean | 371ba8786ab8520741e4b9651e59f2c0c397a669 | [] | 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 | 35,201 | lean | /-
Copyright (c) 2017 Johannes Hölzl. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Johannes Hölzl, Mario Carneiro, Patrick Massot
-/
import Mathlib.PrePort
import Mathlib.Lean3Lib.init.default
import Mathlib.topology.maps
import Mathlib.PostPort
universes u v w x u_... |
bb31efebc31f2a2f83b7e3a82408e0fa719bddd8 | 1437b3495ef9020d5413178aa33c0a625f15f15f | /category_theory/limits/limits.lean | bb9bdee843872e1a4104fd037f3b37817d8f9187 | [
"Apache-2.0"
] | permissive | jean002/mathlib | c66bbb2d9fdc9c03ae07f869acac7ddbfce67a30 | dc6c38a765799c99c4d9c8d5207d9e6c9e0e2cfd | refs/heads/master | 1,587,027,806,375 | 1,547,306,358,000 | 1,547,306,358,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 25,664 | lean | -- Copyright (c) 2018 Scott Morrison. All rights reserved.
-- Released under Apache 2.0 license as described in the file LICENSE.
-- Authors: Reid Barton, Mario Carneiro, Scott Morrison
import category_theory.whiskering
import category_theory.yoneda
import category_theory.limits.cones
open category_theory category_th... |
a539cd760aae8ff99025891bba1959087077d627 | 86f6f4f8d827a196a32bfc646234b73328aeb306 | /examples/basics/unnamed_713.lean | 271382ce4764eb84c8a54ae79d85e1c9d2a64382 | [] | no_license | jamescheuk91/mathematics_in_lean | 09f1f87d2b0dce53464ff0cbe592c568ff59cf5e | 4452499264e2975bca2f42565c0925506ba5dda3 | refs/heads/master | 1,679,716,410,967 | 1,613,957,947,000 | 1,613,957,947,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 254 | lean | import algebra.ring
namespace my_ring
variables {R : Type*} [ring R]
-- BEGIN
theorem mul_zero (a : R) : a * 0 = 0 :=
begin
have h : a * 0 + a * 0 = a * 0 + 0,
{ rw [←mul_add, add_zero, add_zero] },
rw add_left_cancel h
end
-- END
end my_ring |
c4ffa5b954b620953e5cc6b06dec7b1a15da0991 | 1a61aba1b67cddccce19532a9596efe44be4285f | /library/init/function.lean | 2a8d286842347d41d6a94ece5a8d2b3b7e7d04f7 | [
"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 | 5,764 | lean | /-
Copyright (c) 2014 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Author: Leonardo de Moura, Jeremy Avigad, Haitao Zhang
General operations on functions.
-/
prelude
import init.prod init.funext init.logic
namespace function
variables {A : Type} {B :... |
26956223aa4e25f636762c879d5a1ea65110555d | 4727251e0cd73359b15b664c3170e5d754078599 | /src/analysis/normed/group/hom_completion.lean | 108b3d12f2a9b89668ba13d011223c3446536617 | [
"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 | 10,678 | lean | /-
Copyright (c) 2021 Patrick Massot. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Patrick Massot
-/
import analysis.normed.group.hom
import analysis.normed.group.completion
/-!
# Completion of normed group homs
Given two (semi) normed groups `G` and `H` and a norm... |
859f3d455cf2d3950e634602a9a1b1d898425758 | 8cae430f0a71442d02dbb1cbb14073b31048e4b0 | /src/topology/algebra/filter_basis.lean | 8f9664a67dbdad297fbb16049e04c7ecac944e15 | [
"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 | 17,298 | lean | /-
Copyright (c) 2021 Patrick Massot. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Patrick Massot
-/
import order.filter.bases
import topology.algebra.module.basic
/-!
# Group and ring filter bases
> THIS FILE IS SYNCHRONIZED WITH MATHLIB4.
> Any changes to this fi... |
e7e66de9db47bbcae4139140888618f7d287880e | bbecf0f1968d1fba4124103e4f6b55251d08e9c4 | /src/data/polynomial/mirror.lean | 1b99ce529b7ffed6452cd133d15cd251eec38a70 | [
"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 | 7,357 | lean | /-
Copyright (c) 2020 Thomas Browning. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Thomas Browning
-/
import data.polynomial.ring_division
/-!
# "Mirror" of a univariate polynomial
In this file we define `polynomial.mirror`, a variant of `polynomial.reverse`. The... |
b9d636d8378925b62a8b0e3a909b723c2f0e73b8 | 4d2583807a5ac6caaffd3d7a5f646d61ca85d532 | /archive/100-theorems-list/82_cubing_a_cube.lean | c7aa854daadf338089c349e457e961fe8b53d652 | [
"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 | 23,648 | lean | /-
Copyright (c) 2019 Floris van Doorn. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Floris van Doorn
-/
import data.real.basic
import data.set.intervals
import data.set.pairwise
import set_theory.cardinal
/-!
Proof that a cube (in dimension n ≥ 3) cannot be cubed:
T... |
dace73c733fd9dcc51f1c119fbc8ec2cb30a413b | fa02ed5a3c9c0adee3c26887a16855e7841c668b | /src/data/qpf/multivariate/basic.lean | 8583206ecf9cd50ac553e2e0a5ffaaf94f1a5dfe | [
"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 | 8,755 | lean | /-
Copyright (c) 2018 Jeremy Avigad. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Jeremy Avigad, Simon Hudon
-/
import data.pfunctor.multivariate.basic
/-!
# Multivariate quotients of polynomial functors.
Basic definition of multivariate QPF. QPFs form a compositio... |
ef86009a4b22569a085c7f048be0a41eb7915214 | 32025d5c2d6e33ad3b6dd8a3c91e1e838066a7f7 | /src/Lean/Elab/PreDefinition/Basic.lean | a48966db6e5893b619bea07611749caa6588af60 | [
"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 | 6,349 | 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.SCC
import Lean.Meta.AbstractNestedProofs
import Lean.Elab.MkInhabitant
import Lean.Elab.Term
import Lean.Elab.DefView
namespace Lean
name... |
9d4256b1c51fdc2ea4e64a4baac71091485e7d37 | 1b8f093752ba748c5ca0083afef2959aaa7dace5 | /src/category_theory/universal/constructions/limits_from.lean | c3b50eece56f952411bdcd7fe4cecc7867e0578d | [] | no_license | khoek/lean-category-theory | 7ec4cda9cc64a5a4ffeb84712ac7d020dbbba386 | 63dcb598e9270a3e8b56d1769eb4f825a177cd95 | refs/heads/master | 1,585,251,725,759 | 1,539,344,445,000 | 1,539,344,445,000 | 145,281,070 | 0 | 0 | null | 1,534,662,376,000 | 1,534,662,376,000 | null | UTF-8 | Lean | false | false | 1,664 | lean | -- Copyright (c) 2017 Scott Morrison. All rights reserved.
-- Released under Apache 2.0 license as described in the file LICENSE.
-- Authors: Scott Morrison
import category_theory.limits
open category_theory
namespace category_theory.limits
universes u₁ v₁
variables {C : Type u₁} [category.{u₁ v₁} C]
instance [has... |
b8570d72ef2c326cd6f9e604886b68e824480400 | b7f22e51856f4989b970961f794f1c435f9b8f78 | /tests/lean/run/collision_bug.lean | 14c62b62e24a69f921c4a32287470b840a153b88 | [
"Apache-2.0"
] | permissive | soonhokong/lean | cb8aa01055ffe2af0fb99a16b4cda8463b882cd1 | 38607e3eb57f57f77c0ac114ad169e9e4262e24f | refs/heads/master | 1,611,187,284,081 | 1,450,766,737,000 | 1,476,122,547,000 | 11,513,992 | 2 | 0 | null | 1,401,763,102,000 | 1,374,182,235,000 | C++ | UTF-8 | Lean | false | false | 67 | lean | import theories.measure_theory.sigma_algebra
import data.int.order
|
bd76d77362de2d435c5a1cc0852de5f745acacf1 | d406927ab5617694ec9ea7001f101b7c9e3d9702 | /src/data/fintype/sum.lean | a34e9a08da86eacc7dce9d1c7262cfbb96cd757c | [
"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,256 | 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.fintype.card
import data.finset.sum
import logic.embedding.set
/-!
## Instances
We provide the `fintype` instance for the sum of two fintypes.
-/
unive... |
a539cc1c18d9c7e1a4b971d1a753bc29b90a7363 | 57aec6ee746bc7e3a3dd5e767e53bd95beb82f6d | /tests/lean/run/nativeReflBackdoor.lean | fecd31ee5aa0291c0b4e63e1821563e625dc88d3 | [
"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 | 1,002 | lean | --
/-
This example demonstratea that when we are using `nativeDecide`,
we are also trusting the correctness of `implementedBy` annotations,
foreign functions (i.e., `[extern]` annotations), etc.
-/
def g (b : Bool) := false
/-
The following `implementedBy` is telling the compiler
"trust me, `g` does implement `f`"
wh... |
ee670ba75138d116a436d7a302efc0d440e24e24 | 9be442d9ec2fcf442516ed6e9e1660aa9071b7bd | /tests/lean/run/termParserAttr.lean | 1053b01c29a2c9fea888197ca94af6e6ce5312fa | [
"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 | 2,088 | lean | import Lean
open Lean
open Lean.Elab
def runCore (input : String) (failIff : Bool := true) : CoreM Unit := do
let env ← getEnv;
let opts ← getOptions;
let (env, messages) ← process input env opts;
messages.toList.forM fun msg => do IO.println (← msg.toString)
if failIff && messages.hasErrors then throwError "errors ... |
35b32d10f09ec04cf21de0ce53647183d8507c48 | 6432ea7a083ff6ba21ea17af9ee47b9c371760f7 | /src/lake/examples/ffi/lib/lakefile.lean | cf6ac018ec02539282c4dd1e434882a84c983088 | [
"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 | 576 | lean | import Lake
open System Lake DSL
package ffi {
srcDir := "lean"
precompileModules := true
}
lean_lib FFI
@[default_target] lean_exe test {
root := `Main
}
target ffi.o pkg : FilePath := do
let oFile := pkg.buildDir / "c" / "ffi.o"
let srcJob ← inputFile <| pkg.dir / "c" / "ffi.cpp"
let flags := #["-I", ... |
df78de75fb5fd006a99cafe6ba309cf9e4a7dbd3 | c777c32c8e484e195053731103c5e52af26a25d1 | /src/probability/kernel/measurable_integral.lean | 94b0146398a2460a3acf6a8ff163686d63560b8e | [
"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 | 14,779 | lean | /-
Copyright (c) 2023 Rémy Degenne. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Rémy Degenne
-/
import probability.kernel.basic
/-!
# Measurability of the integral against a kernel
The Lebesgue integral of a measurable function against a kernel is measurable. The ... |
333fdf71b078016a9e52007a99034ae956b522c4 | 8cae430f0a71442d02dbb1cbb14073b31048e4b0 | /src/data/fintype/prod.lean | a307a74dddf4bda0fd73fdd1db905511ee8b2da0 | [
"Apache-2.0"
] | permissive | leanprover-community/mathlib | 56a2cadd17ac88caf4ece0a775932fa26327ba0e | 442a83d738cb208d3600056c489be16900ba701d | refs/heads/master | 1,693,584,102,358 | 1,693,471,902,000 | 1,693,471,902,000 | 97,922,418 | 1,595 | 352 | Apache-2.0 | 1,694,693,445,000 | 1,500,624,130,000 | Lean | UTF-8 | Lean | false | false | 3,181 | 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.fintype.card
import data.finset.prod
/-!
# fintype instance for the product of two fintypes.
> THIS FILE IS SYNCHRONIZED WITH MATHLIB4.
> Any changes to... |
972ed2fdb5285ab336fd75b181a223ed5a32f8c7 | fe5d16cef63488c5ef3f73be54a0981243288d1d | /tests/examplefiles/lean/test.lean | 4b719e13acbb371d87b498f1563202795f490245 | [
"BSD-2-Clause"
] | permissive | sailfishos-mirror/pygments | 648bdafcd0cb8128dd684b2eb59b3bbee23f752a | 71cbc18df9f5e3852b37bb7f00f836e480a96a73 | refs/heads/master | 1,693,450,886,577 | 1,692,365,125,000 | 1,692,365,125,000 | 266,720,343 | 0 | 1 | BSD-2-Clause | 1,669,229,703,000 | 1,590,393,909,000 | Python | UTF-8 | Lean | false | false | 8,706 | lean | /-
Copyright (c) 2017 Johannes Hölzl. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Johannes Hölzl
Zorn's lemmas.
Ported from Isabelle/HOL (written by Jacques D. Fleuriot, Tobias Nipkow, and Christian Sternagel).
-/
import data.set.lattice
noncomputable theory
univ... |
31f2f40a41e4fd87e23cd91810f59ed81bd7148a | 69d4931b605e11ca61881fc4f66db50a0a875e39 | /src/data/real/ennreal.lean | 83cab09840b0b86cb4ecdb16cac10447d7bc912d | [
"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 | 60,092 | 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, Yury Kudryashov
-/
import data.real.nnreal
import data.set.intervals
/-!
# Extended non-negative reals
We define `ennreal = ℝ≥0∞ := with_no ℝ≥0` to be the type of ext... |
c0f4612e60daf2e8cba04851a4de6fb585b211f9 | 3dc4623269159d02a444fe898d33e8c7e7e9461b | /.github/workflows/project_1_a_decrire/lean-scheme-submission/src/spectrum_of_a_ring/structure_presheaf_res.lean | b9bc1e1682d5cc9898dc9fd56c8417001f64efdc | [] | no_license | Or7ando/lean | cc003e6c41048eae7c34aa6bada51c9e9add9e66 | d41169cf4e416a0d42092fb6bdc14131cee9dd15 | refs/heads/master | 1,650,600,589,722 | 1,587,262,906,000 | 1,587,262,906,000 | 255,387,160 | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 4,866 | lean | /-
Relate restriction maps of the structure presheaf to the universal property
of localization.
-/
import spectrum_of_a_ring.structure_presheaf
import spectrum_of_a_ring.structure_presheaf_localization
universe u
local attribute [instance] classical.prop_decidable
noncomputable theory
open topological_space
op... |
4985240519fb8942061a712300d19e1eb75ad835 | 1abd1ed12aa68b375cdef28959f39531c6e95b84 | /src/order/compactly_generated.lean | 0121795418c846186c58fe601a41663dbfb8707e | [
"Apache-2.0"
] | permissive | jumpy4/mathlib | d3829e75173012833e9f15ac16e481e17596de0f | af36f1a35f279f0e5b3c2a77647c6bf2cfd51a13 | refs/heads/master | 1,693,508,842,818 | 1,636,203,271,000 | 1,636,203,271,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 20,368 | lean | /-
Copyright (c) 2021 Oliver Nash. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Oliver Nash
-/
import data.finset.order
import order.atoms
import order.order_iso_nat
import order.zorn
import tactic.tfae
/-!
# Compactness properties for complete lattices
For complet... |
4827d5cb9c5f6fbbb5779a7941610e9d955f669b | b561a44b48979a98df50ade0789a21c79ee31288 | /stage0/src/Init/Meta.lean | 29b98bcbbd8e32aa64f55f2912f77dddb651b2d9 | [
"Apache-2.0"
] | permissive | 3401ijk/lean4 | 97659c475ebd33a034fed515cb83a85f75ccfb06 | a5b1b8de4f4b038ff752b9e607b721f15a9a4351 | refs/heads/master | 1,693,933,007,651 | 1,636,424,845,000 | 1,636,424,845,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 34,011 | lean | /-
Copyright (c) 2019 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Leonardo de Moura and Sebastian Ullrich
Additional goodies for writing macros
-/
prelude
import Init.Data.Array.Basic
namespace Lean
@[extern c inline "lean_box(LEAN_VERSION_... |
a64cea497a9e107037325dd918f56daa9b10d866 | bb31430994044506fa42fd667e2d556327e18dfe | /src/algebra/algebra/tower.lean | 20fd4850d1baafbe2844d33361be549bfd71d48c | [
"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 | 11,159 | lean | /-
Copyright (c) 2020 Kenny Lau. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Kenny Lau, Anne Baanen
-/
import algebra.algebra.equiv
/-!
# Towers of algebras
In this file we prove basic facts about towers of algebra.
An algebra tower A/S/R is expressed by having ... |
a7e0d5172584e5df6bb553c3f1e6e4ff7ea46960 | ae1e94c332e17c7dc7051ce976d5a9eebe7ab8a5 | /stage0/src/Init/WF.lean | c3ccde21e3c89139ccc400a6d7bcda7f1985d095 | [
"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 | 11,267 | lean | /-
Copyright (c) 2014 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Author: Leonardo de Moura
-/
prelude
import Init.SizeOf
import Init.Data.Nat.Basic
universes u v
set_option codegen false
inductive Acc {α : Sort u} (r : α → α → Prop) : α → Prop wher... |
e8f36f637611931cac8ca54354a26fd993d6bc12 | 491068d2ad28831e7dade8d6dff871c3e49d9431 | /hott/algebra/ring.hlean | ee693069e504a2bdec6b9ee604846a66d9fd4154 | [
"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 | 13,300 | hlean | /-
Copyright (c) 2014 Jeremy Avigad. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Jeremy Avigad, Leonardo de Moura
Structures with multiplicative and additive components, including semirings, rings, and fields.
The development is modeled after Isabelle's library.
Po... |
26cbe67510536f6a4b725bc0eb49566a1ae7b66c | 57aec6ee746bc7e3a3dd5e767e53bd95beb82f6d | /src/Init/Control/State.lean | 51a7060de0d007a539952dd4da33a69eeffb381e | [
"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 | 3,475 | 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, Sebastian Ullrich
The State monad transformer.
-/
prelude
import Init.Control.Basic
import Init.Control.Id
import Init.Control.Except
universes u v w
def St... |
bc1e3da349c7e5e369cb38be422ce39d6d8923c1 | 037dba89703a79cd4a4aec5e959818147f97635d | /src/2020/relations/partition_challenge_solution2.lean | a208b6c80e61ac54afb1cce56a50fdc578497602 | [] | no_license | ImperialCollegeLondon/M40001_lean | 3a6a09298da395ab51bc220a535035d45bbe919b | 62a76fa92654c855af2b2fc2bef8e60acd16ccec | refs/heads/master | 1,666,750,403,259 | 1,665,771,117,000 | 1,665,771,117,000 | 209,141,835 | 115 | 12 | null | 1,640,270,596,000 | 1,568,749,174,000 | Lean | UTF-8 | Lean | false | false | 5,553 | lean | import tactic
/-!
# Definition and basic API for partitions
-/
/-- The structure of a partition on a Type α. -/
-- Let α be a type. A *partition* on α is defined to
-- be the following data.
@[ext] structure partition (α : Type) :=
-- A set C of subsets of α, called "blocks".
(C : set (set α))
-- A hypothesis (a.k... |
ffaa3d17816fa378f2dbaeded00c96bdf880d0d3 | 05f637fa14ac28031cb1ea92086a0f4eb23ff2b1 | /tests/lean/implicit2.lean | b6fc8c1e77eec0c7a29f46d30d00b68a1c22cf32 | [
"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 | 317 | lean | import Real.
variable f {A : Type} (x y : A) : A
check f 10 20
check f 10
check @f
variable g {A : Type} (x1 x2 : A) {B : Type} (y1 y2 : B) : B
check g 10 20 true
check let r : Real -> Real -> Real := g 10 20
in r
check g 10
set_option pp::implicit true
check let r : Real -> Real -> Real := g 10 20
in r
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.