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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
c87e45d88e633c8c50478fa561c15c38bb97f0d8 | e898bfefd5cb60a60220830c5eba68cab8d02c79 | /uexp/src/uexp/rules/index.lean | ecfec740c0fdc90dcbc8eefaaa539d11c0711d44 | [
"BSD-2-Clause"
] | permissive | kkpapa/Cosette | 9ed09e2dc4c1ecdef815c30b5501f64a7383a2ce | fda8fdbbf0de6c1be9b4104b87bbb06cede46329 | refs/heads/master | 1,584,573,128,049 | 1,526,370,422,000 | 1,526,370,422,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 1,131 | lean | import ..sql
import ..u_semiring
import ..extra_constants
import ..ucongr
import ..TDP ..canonize
set_option profiler true
open Expr
open Proj
open Pred
open SQL
open tree
notation `int` := datatypes.int
variable integer_10: const datatypes.int
lemma IndexQ0:
forall Ξ r (R: relation r) t0 (l: const t0)
... |
82862f29eba462c51133bb82da9206218f883a87 | bbecf0f1968d1fba4124103e4f6b55251d08e9c4 | /src/analysis/convex/basic.lean | 611b70fc3511dee7896df7a20d9c512ab9b3f447 | [
"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 | 39,559 | lean | /-
Copyright (c) 2019 Alexander Bentkamp. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Alexander Bentkamp, Yury Kudriashov, YaΓ«l Dillies
-/
import algebra.module.ordered
import linear_algebra.affine_space.affine_subspace
/-!
# Convex sets and functions in vector spa... |
b8cd3b163147c55c7f66664a803b87444f516db0 | 8cae430f0a71442d02dbb1cbb14073b31048e4b0 | /src/category_theory/preadditive/of_biproducts.lean | 6deac1483f48fa909f91c2cb50036ac375d9377c | [
"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,856 | lean | /-
Copyright (c) 2022 Markus Himmel. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Markus Himmel
-/
import category_theory.limits.shapes.biproducts
import group_theory.eckmann_hilton
/-!
# Constructing a semiadditive structure from binary biproducts
> THIS FILE IS S... |
1a1418e98248fc56244d8fbe3904c609820cfcc8 | 0942a74cc0b397d09bcd1059762fa076b1a5d308 | /src/less-trivial.lean | 9ee4a8ed28772452c9d9c2a17bfb5af8e36d7d80 | [
"Unlicense"
] | permissive | sguzman/lean-examples | 81df2010e204be1a9fde6ae18295e299e69cebca | c7428b2982d0468d0adb4453766a27e1550a72e8 | refs/heads/master | 1,668,438,655,034 | 1,594,156,605,000 | 1,594,156,605,000 | 277,626,098 | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 640 | lean | -- anything after two minus signs like this is a comment.
variables P Q R : Prop -- P, Q, R are now true/false statements.
-- Reminder : β§ means "and".
theorem basic_logic : (P β Q) β§ (Q β R) β (P β R) :=
begin
intro H, -- H is "P implies Q and Q implies R"
have HPQ : P β Q,
exact H.left,
have HQR : Q β R,
exact H.r... |
cd2f8096a336e2c91bc48070d6a2e6e298ba086d | d406927ab5617694ec9ea7001f101b7c9e3d9702 | /src/ring_theory/graded_algebra/radical.lean | a4953692a153bf58ce1b86b16283610c6103304a | [
"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 | 8,838 | lean | /-
Copyright (c) 2022 Jujian Zhang. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Jujian Zhang, Eric Wieser
-/
import ring_theory.graded_algebra.homogeneous_ideal
/-!
This file contains a proof that the radical of any homogeneous ideal is a homogeneous ideal
## Ma... |
421d510885b4867bedcc072b65f8483026f1de81 | 74addaa0e41490cbaf2abd313a764c96df57b05d | /Mathlib/control/monad/basic_auto.lean | 064c1c0923e6c192ef5c4189da17fabd32120c9a | [] | no_license | AurelienSaue/Mathlib4_auto | f538cfd0980f65a6361eadea39e6fc639e9dae14 | 590df64109b08190abe22358fabc3eae000943f2 | refs/heads/master | 1,683,906,849,776 | 1,622,564,669,000 | 1,622,564,669,000 | 371,723,747 | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 2,642 | lean | /-
Copyright (c) 2019 Simon Hudon. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Author(s): Simon Hudon
-/
import Mathlib.PrePort
import Mathlib.Lean3Lib.init.default
import Mathlib.tactic.basic
import Mathlib.data.equiv.basic
import Mathlib.PostPort
universes u v uβ uβ vβ vβ... |
8c8864d2e9197760fc664f1d67f61b8924bf9d82 | 19cc34575500ee2e3d4586c15544632aa07a8e66 | /src/group_theory/perm/sign.lean | a5bdb53fa9c021a14553bd467fd6a77442932e7b | [
"Apache-2.0"
] | permissive | LibertasSpZ/mathlib | b9fcd46625eb940611adb5e719a4b554138dade6 | 33f7870a49d7cc06d2f3036e22543e6ec5046e68 | refs/heads/master | 1,672,066,539,347 | 1,602,429,158,000 | 1,602,429,158,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 38,006 | lean | /-
Copyright (c) 2018 Chris Hughes. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Chris Hughes
-/
import data.fintype.basic
import data.finset.sort
import algebra.group.conj
import algebra.big_operators.basic
universes u v
open equiv function fintype finset
open_loca... |
7263eafa0659d930a50a82e02d1f7b6d5e81175d | 74addaa0e41490cbaf2abd313a764c96df57b05d | /Mathlib/measure_theory/prod_group_auto.lean | 053822aa0748720b6b7538c3a8f691e091259cf4 | [] | no_license | AurelienSaue/Mathlib4_auto | f538cfd0980f65a6361eadea39e6fc639e9dae14 | 590df64109b08190abe22358fabc3eae000943f2 | refs/heads/master | 1,683,906,849,776 | 1,622,564,669,000 | 1,622,564,669,000 | 371,723,747 | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 9,742 | 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 Mathlib.PrePort
import Mathlib.Lean3Lib.init.default
import Mathlib.measure_theory.prod
import Mathlib.measure_theory.group
import Mathlib.PostPort
univer... |
ef3b967ba09bef911af8ecfdfe33f4dc4674741f | 4727251e0cd73359b15b664c3170e5d754078599 | /src/category_theory/monoidal/discrete.lean | ead5f4a967ee861a6785dcd3520d545e23ec3f19 | [
"Apache-2.0"
] | permissive | Vierkantor/mathlib | 0ea59ac32a3a43c93c44d70f441c4ee810ccceca | 83bc3b9ce9b13910b57bda6b56222495ebd31c2f | refs/heads/master | 1,658,323,012,449 | 1,652,256,003,000 | 1,652,256,003,000 | 209,296,341 | 0 | 1 | Apache-2.0 | 1,568,807,655,000 | 1,568,807,655,000 | null | UTF-8 | Lean | false | false | 2,184 | 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.hom.group
import category_theory.discrete_category
import category_theory.monoidal.natural_transformation
/-!
# Monoids as discrete monoidal categorie... |
b7ba882a5df5ebe1c8a1201efe26846577c468fd | 4d2583807a5ac6caaffd3d7a5f646d61ca85d532 | /src/group_theory/monoid_localization.lean | 4037a110fe3ea6083118d7af85189f9807a1ed73 | [
"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 | 60,928 | lean | /-
Copyright (c) 2019 Amelia Livingston. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Amelia Livingston
-/
import group_theory.congruence
import group_theory.submonoid
import algebra.group.units
import algebra.punit_instances
/-!
# Localizations of commutative monoi... |
613c6c2cabcf494eaa5d1f0802607bd3cc8a1b5c | 842b7df4a999c5c50bbd215b8617dd705e43c2e1 | /nat_num_game/src/Advanced_Addition_World/adv_add_wrld4.lean | 8ae50fb5001ba566414d9aaa02eccce9d43362e4 | [] | no_license | Samyak-Surti/LeanCode | 1c245631f74b00057d20483c8ac75916e8643b14 | 944eac3e5f43e2614ed246083b97fbdf24181d83 | refs/heads/master | 1,669,023,730,828 | 1,595,534,784,000 | 1,595,534,784,000 | 282,037,186 | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 195 | lean | theorem succ_eq_succ_iff (a b : β) : nat.succ a = nat.succ b β a = b :=
begin
split,
intro h,
exact nat.succ.inj h,
intro f,
repeat {rw nat.succ_eq_add_one},
rw f,
end |
1e92cf6d848f7dfb6b1317de7a13cda684b02c3b | 9b9a16fa2cb737daee6b2785474678b6fa91d6d4 | /src/topology/instances/polynomial.lean | dde624d19a2143750f79e7240ffe1532a813ae0c | [
"Apache-2.0"
] | permissive | johoelzl/mathlib | 253f46daa30b644d011e8e119025b01ad69735c4 | 592e3c7a2dfbd5826919b4605559d35d4d75938f | refs/heads/master | 1,625,657,216,488 | 1,551,374,946,000 | 1,551,374,946,000 | 98,915,829 | 0 | 0 | Apache-2.0 | 1,522,917,267,000 | 1,501,524,499,000 | Lean | UTF-8 | Lean | false | false | 940 | lean | /-
Copyright (c) 2018 Robert Y. Lewis. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Author: Robert Y. Lewis
Analytic facts about polynomials.
-/
import topology.algebra.topological_structures data.polynomial
lemma polynomial.continuous_eval {Ξ±} [comm_semiring Ξ±] [decidable... |
7bcd267cf91ffcd9d73388085233b7123e4a6d65 | b074a51e20fdb737b2d4c635dd292fc54685e010 | /src/algebra/ring.lean | 556dd16dd2fc6710c24bf860fccd08c5cccc6838 | [
"Apache-2.0"
] | permissive | minchaowu/mathlib | 2daf6ffdb5a56eeca403e894af88bcaaf65aec5e | 879da1cf04c2baa9eaa7bd2472100bc0335e5c73 | refs/heads/master | 1,609,628,676,768 | 1,564,310,105,000 | 1,564,310,105,000 | 99,461,307 | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 11,805 | 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, Floris van Doorn
-/
import algebra.group
universes u v
variable {Ξ± : Type u}
section
variable [semiring Ξ±]
theorem mul_two (n : Ξ±) : n * 2 = n + n :... |
45e599ac1faced7f07a544ecbfc0e00d7e160098 | fa02ed5a3c9c0adee3c26887a16855e7841c668b | /src/algebra/group/units_hom.lean | f6f7b5c6380bb218d7bfdc62827bea58aaeb3168 | [
"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 | 5,057 | lean | /-
Copyright (c) 2018 Johan Commelin All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Johan Commelin, Chris Hughes, Kevin Buzzard
-/
import algebra.group.hom
/-!
# Lift monoid homomorphisms to group homomorphisms of their units subgroups.
-/
universes u v w
namespace u... |
cf7fc143336d55eb21d23971a246fc6576884f5f | 2eab05920d6eeb06665e1a6df77b3157354316ad | /src/algebra/order/pi.lean | 0a81e04f1c30ef0476705b02fcf95494c5dc812a | [
"Apache-2.0"
] | permissive | ayush1801/mathlib | 78949b9f789f488148142221606bf15c02b960d2 | ce164e28f262acbb3de6281b3b03660a9f744e3c | refs/heads/master | 1,692,886,907,941 | 1,635,270,866,000 | 1,635,270,866,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 2,338 | lean | /-
Copyright (c) 2018 Simon Hudon. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Simon Hudon, Patrick Massot
-/
import algebra.group.pi
import algebra.order.group
import tactic.pi_instances
/-!
# Pi instances for ordered groups and monoids
This file defines instances... |
2a30e3a3ba5711f4f3decd5f4c80c2d3ca8a8e9e | 32da3d0f92cab08875472ef6cacc1931c2b3eafa | /src/data/equiv/basic.lean | 46134a8b65eb254903dbd5bc6e72b3aa88b55e1c | [
"Apache-2.0"
] | permissive | karthiknadig/mathlib | b6073c3748860bfc9a3e55da86afcddba62dc913 | 33a86cfff12d7f200d0010cd03b95e9b69a6c1a5 | refs/heads/master | 1,676,389,371,851 | 1,610,061,127,000 | 1,610,061,127,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 85,181 | 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
/-!
# Equivalence between types
In this file we define two types:
* `equiv Ξ± Ξ²` a.k.a. `Ξ± β Ξ²`: a bijective map ... |
5b2a440f3db016027b470953854fec8f5e6107dd | 6432ea7a083ff6ba21ea17af9ee47b9c371760f7 | /tests/lean/lean3RefineBug.lean | 3b4452f4afcebbdb99e19aca4aea6301f18d2cd7 | [
"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 | 619 | lean | example (p q : Prop) : p β§ q β p := by
refine fun β¨a, bβ© => a
example (p q : Prop) : p β§ q β p := by
refine fun a => ?hp
trace_state
exact a.1
example (p q : Prop) : p β§ q β p := by
refine fun β¨a, bβ© => a
example (p q : Prop) : p β§ q β p := by
refine fun β¨a, bβ© => ?hp
trace_state
exact a
example (p ... |
229ab6e506b158104f0509da3caced9e9c4246b0 | 1717bcbca047a0d25d687e7e9cd482fba00d058f | /src/data/set/basic.lean | b33c4c3c97986205dc5a7b4544d095e0bb7cff59 | [
"Apache-2.0"
] | permissive | swapnilkapoor22/mathlib | 51ad5804e6a0635ed5c7611cee73e089ab271060 | 3e7efd4ecd5d379932a89212eebd362beb01309e | refs/heads/master | 1,676,467,741,465 | 1,610,301,556,000 | 1,610,301,556,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 97,293 | 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
-/
import logic.unique
import order.boolean_algebra
/-!
# Basic properties of sets
Sets in Lean are homogeneous; all their elements have the same type... |
bbfeb991e43006e2cc7120d6e82ad7c50ae46869 | 1a61aba1b67cddccce19532a9596efe44be4285f | /library/data/pnat.lean | 4723c85b95df5b5eb97e30d78e5426f5918e8a59 | [
"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 | 10,343 | lean | /-
Copyright (c) 2015 Robert Y. Lewis. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Author: Robert Y. Lewis
Basic facts about the positive natural numbers.
Developed primarily for use in the construction of β. For the most part, the only theorems here
are those needed for t... |
a3e71a6476cf184951e36bb415a353b761849041 | a0e23cfdd129a671bf3154ee1a8a3a72bf4c7940 | /tests/lean/ppMotives.lean | 0a42aa62b76611a205be342fe3e90aa5e2ff44b8 | [
"Apache-2.0"
] | permissive | WojciechKarpiel/lean4 | 7f89706b8e3c1f942b83a2c91a3a00b05da0e65b | f6e1314fa08293dea66a329e05b6c196a0189163 | refs/heads/master | 1,686,633,402,214 | 1,625,821,189,000 | 1,625,821,258,000 | 384,640,886 | 0 | 0 | Apache-2.0 | 1,625,903,617,000 | 1,625,903,026,000 | null | UTF-8 | Lean | false | false | 472 | lean | set_option pp.motives.pi false
#print Nat.add
set_option pp.motives.pi true
#print Nat.add
theorem ex : β {Ξ± Ξ² : Sort u} (h : Ξ± = Ξ²) (a : Ξ±), cast h a β
a
| Ξ±, _, rfl, a => HEq.refl a
set_option pp.motives.nonConst false
#print ex
set_option pp.motives.nonConst true
#print ex
noncomputable def fact (n : Nat)... |
cea2fd5538678d8cf4ab0f43ea23bd41046bb873 | dd0f5513e11c52db157d2fcc8456d9401a6cd9da | /12_Axioms.org.27.lean | 194088c3983e550e13d41b1261c59ae9688baf33 | [] | no_license | cjmazey/lean-tutorial | ba559a49f82aa6c5848b9bf17b7389bf7f4ba645 | 381f61c9fcac56d01d959ae0fa6e376f2c4e3b34 | refs/heads/master | 1,610,286,098,832 | 1,447,124,923,000 | 1,447,124,923,000 | 43,082,433 | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 290 | lean | import standard
open classical
namespace hide
-- BEGIN
theorem prop_complete (a : Prop) : a = true β¨ a = false :=
or.elim (em a)
(Ξ» t, or.inl (propext (iff.intro (Ξ» h, trivial) (Ξ» h, t))))
(Ξ» f, or.inr (propext (iff.intro (Ξ» h, absurd h f) (Ξ» h, false.elim h))))
-- END
end hide
|
ca7ceb6515b2dd6ef0e2745f021405fbbe68d46f | 649957717d58c43b5d8d200da34bf374293fe739 | /src/data/option/basic.lean | fcd3b6f58bf9eee10f9a61029da96336c81b720c | [
"Apache-2.0"
] | permissive | Vtec234/mathlib | b50c7b21edea438df7497e5ed6a45f61527f0370 | fb1848bbbfce46152f58e219dc0712f3289d2b20 | refs/heads/master | 1,592,463,095,113 | 1,562,737,749,000 | 1,562,737,749,000 | 196,202,858 | 0 | 0 | Apache-2.0 | 1,562,762,338,000 | 1,562,762,337,000 | null | UTF-8 | Lean | false | false | 5,616 | 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 logic.basic data.bool data.option.defs tactic.basic
namespace option
variables {Ξ± : Type*} {Ξ² : Type*} {Ξ³ : Type*}
@[simp] theorem get_mem : β {o : option Ξ±}... |
7280a77af67fee41644d2087f5ca3011d84b84c4 | c3f2fcd060adfa2ca29f924839d2d925e8f2c685 | /hott/init/trunc.hlean | 0cb548ae5cff5b0e188aa99ff1e7c7fa1ffba5fb | [
"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 | 9,529 | hlean | /-
Copyright (c) 2014 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Module: init.trunc
Authors: Jeremy Avigad, Floris van Doorn
Ported from Coq HoTT.
TODO: can we replace some definitions with a hprop as codomain by theorems?
-/
prelude
import .logic... |
e4dcd3f9b114dbf22cf0921af3c4a587a5d0855a | cbcb0199842f03e7606d4e43666573fc15dd07a5 | /src/topology/metric_space/gromov_hausdorff.lean | 5ab0a4f67c587cc9d17843d52f405ae633fd7a71 | [
"Apache-2.0"
] | permissive | truonghoangle/mathlib | a6a7c14b3767ec71156239d8ea97f6921fe79627 | 673bae584febcd830c2c9256eb7e7a81e27ed303 | refs/heads/master | 1,590,347,998,944 | 1,559,728,860,000 | 1,559,728,860,000 | 187,431,971 | 0 | 0 | null | 1,558,238,525,000 | 1,558,238,525,000 | null | UTF-8 | Lean | false | false | 56,049 | 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
The Gromov-Hausdorff distance on the space of nonempty compact metric spaces up to isometry.
We introduces the space of all nonempty compact metric spaces, up to ... |
b3cc046703c8ea578f5db9ce18db5f42563e19d0 | 491068d2ad28831e7dade8d6dff871c3e49d9431 | /library/data/quotient/classical.lean | 7f17d669c9fc4dd7cc7c39d7837dd5bc9154d896 | [
"Apache-2.0"
] | permissive | davidmueller13/lean | 65a3ed141b4088cd0a268e4de80eb6778b21a0e9 | c626e2e3c6f3771e07c32e82ee5b9e030de5b050 | refs/heads/master | 1,611,278,313,401 | 1,444,021,177,000 | 1,444,021,177,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 2,048 | lean | /-
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
A classical treatment of quotients, using Hilbert choice.
-/
import algebra.relation
import .basic
namespace quotient
open relation nonempty subtype classical
/- a... |
578585b7df493d343347d2eba527843ca77d399b | 8cae430f0a71442d02dbb1cbb14073b31048e4b0 | /src/algebra/category/Module/basic.lean | 72ea05ddfb8adecafab68e0217b9a4aa2c889277 | [
"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 | 11,183 | lean | /-
Copyright (c) 2019 Robert A. Spencer. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Robert A. Spencer, Markus Himmel
-/
import algebra.category.Group.preadditive
import category_theory.linear.basic
import category_theory.elementwise
import linear_algebra.basic
impo... |
9c545f5ec9ebab93c2fd3ecf3b9fe4b0ed897253 | 9dc8cecdf3c4634764a18254e94d43da07142918 | /src/probability/stopping.lean | 93263f9bc8810271ac2b3be72a40f4c3107de385 | [
"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 | 65,957 | 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.function.conditional_expectation.real
import topology.instances.discrete
/-!
# Filtration and stopping time
This file defines some standard definiti... |
79d59db36e49f6bde892c0cf39e8790d5adbfdd3 | d1a52c3f208fa42c41df8278c3d280f075eb020c | /src/Lean/Elab/Open.lean | b473180cfc254b4f67002a49d2277762a125a7e3 | [
"Apache-2.0",
"LLVM-exception",
"NCSA",
"LGPL-3.0-only",
"LicenseRef-scancode-inner-net-2.0",
"BSD-3-Clause",
"LGPL-2.0-or-later",
"Spencer-94",
"LGPL-2.1-or-later",
"HPND",
"LicenseRef-scancode-pcre",
"ISC",
"LGPL-2.1-only",
"LicenseRef-scancode-other-permissive",
"SunPro",
"CMU-Mach"... | permissive | cipher1024/lean4 | 6e1f98bb58e7a92b28f5364eb38a14c8d0aae393 | 69114d3b50806264ef35b57394391c3e738a9822 | refs/heads/master | 1,642,227,983,603 | 1,642,011,696,000 | 1,642,011,696,000 | 228,607,691 | 0 | 0 | Apache-2.0 | 1,576,584,269,000 | 1,576,584,268,000 | null | UTF-8 | Lean | false | false | 3,306 | 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.Log
namespace Lean.Elab
namespace OpenDecl
variable [Monad m] [STWorld IO.RealWorld m] [MonadEnv m]
variable [MonadExceptOf Exception m] ... |
ae057f3db805b1a45849f431894e875808459b3c | 35677d2df3f081738fa6b08138e03ee36bc33cad | /src/data/rel.lean | c1d46bbef08b8617b8115921366891f0d3596468 | [
"Apache-2.0"
] | permissive | gebner/mathlib | eab0150cc4f79ec45d2016a8c21750244a2e7ff0 | cc6a6edc397c55118df62831e23bfbd6e6c6b4ab | refs/heads/master | 1,625,574,853,976 | 1,586,712,827,000 | 1,586,712,827,000 | 99,101,412 | 1 | 0 | Apache-2.0 | 1,586,716,389,000 | 1,501,667,958,000 | Lean | UTF-8 | Lean | false | false | 6,473 | lean | /-
Copyright (c) 2018 Jeremy Avigad. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Jeremy Avigad
Operations on set-valued functions, aka partial multifunctions, aka relations.
-/
import tactic.basic data.set.lattice order.complete_lattice logic.relator
variables {Ξ± ... |
3d9e129884d469237e19e08b52a9b6f60ea29848 | 94e33a31faa76775069b071adea97e86e218a8ee | /src/linear_algebra/general_linear_group.lean | db3e8fb08c1731ea52c3b5aaa8b7717099c7d52f | [
"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 | 8,490 | lean | /-
Copyright (c) 2021 Chris Birkbeck. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Chris Birkbeck
-/
import linear_algebra.matrix.nonsingular_inverse
import linear_algebra.special_linear_group
/-!
# The General Linear group $GL(n, R)$
This file defines the elements... |
cdf953b9c40f441085e1352e5cb0cf6d75e63d35 | 4727251e0cd73359b15b664c3170e5d754078599 | /src/data/set/constructions.lean | 541baeea6c11a5bea20f88d2c36a53df25f65f8c | [
"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,020 | lean | /-
Copyright (c) 2020 Adam Topaz. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Adam Topaz
-/
import data.finset.basic
/-!
# Constructions involving sets of sets.
## Finite Intersections
We define a structure `has_finite_inter` which asserts that a set `S` of subse... |
30020b09857de68028d3581efbf1bb1001a8a567 | 649957717d58c43b5d8d200da34bf374293fe739 | /src/category_theory/isomorphism.lean | ae939f134be55963699fe5e14931655e33c84f21 | [
"Apache-2.0"
] | permissive | Vtec234/mathlib | b50c7b21edea438df7497e5ed6a45f61527f0370 | fb1848bbbfce46152f58e219dc0712f3289d2b20 | refs/heads/master | 1,592,463,095,113 | 1,562,737,749,000 | 1,562,737,749,000 | 196,202,858 | 0 | 0 | Apache-2.0 | 1,562,762,338,000 | 1,562,762,337,000 | null | UTF-8 | Lean | false | false | 9,383 | lean | -- Copyright (c) 2017 Scott Morrison. All rights reserved.
-- Released under Apache 2.0 license as described in the file LICENSE.
-- Authors: Tim Baumann, Stephen Morgan, Scott Morrison, Floris van Doorn
import category_theory.functor
universes v u -- declare the `v`'s first; see `category_theory.category` for an exp... |
da79f10a8cc15ad982cc8613bac946abbca9bbe2 | 5883d9218e6f144e20eee6ca1dab8529fa1a97c0 | /src/exp/subst/default.lean | f76bf32c00104750f279f46d2570f0c23c1d8bab | [] | no_license | spl/alpha-conversion-is-easy | 0d035bc570e52a6345d4890e4d0c9e3f9b8126c1 | ed937fe85d8495daffd9412a5524c77b9fcda094 | refs/heads/master | 1,607,649,280,020 | 1,517,380,240,000 | 1,517,380,240,000 | 52,174,747 | 4 | 0 | null | 1,456,052,226,000 | 1,456,001,163,000 | Lean | UTF-8 | Lean | false | false | 42 | lean | import .type
import .update
import .apply
|
5d5b19da96a69092b75accb937d6d56093da0bc2 | b00eb947a9c4141624aa8919e94ce6dcd249ed70 | /stage0/src/Lean/Parser/Basic.lean | 26eb6471af08fbaadc6f19d9cd7e5a033bc373d1 | [
"Apache-2.0"
] | permissive | gebner/lean4-old | a4129a041af2d4d12afb3a8d4deedabde727719b | ee51cdfaf63ee313c914d83264f91f414a0e3b6e | refs/heads/master | 1,683,628,606,745 | 1,622,651,300,000 | 1,622,654,405,000 | 142,608,821 | 1 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 76,165 | 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
-/
/-!
# Basic Lean parser infrastructure
The Lean parser was developed with the following primary goals in mind:
* flexibility: Lean's g... |
c42ccba89ba8ef531dfb7dafd2b471d086778d2a | d406927ab5617694ec9ea7001f101b7c9e3d9702 | /src/topology/sheaves/abelian.lean | 26296209a65de694912647cecbc5603dc70b123e | [
"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,103 | lean | /-
Copyright (c) 2022 Jujian Zhang. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Adam Topaz, Jujian Zhang
-/
import category_theory.abelian.functor_category
import category_theory.preadditive.additive_functor
import category_theory.preadditive.functor_category
import... |
59e9e2242f7d9241f3bf230b33b94173ea80f25b | 8cb37a089cdb4af3af9d8bf1002b417e407a8e9e | /library/init/meta/smt/interactive.lean | 79b1f56827bc58eee7cb449047b18f48e283ffa0 | [
"Apache-2.0"
] | permissive | kbuzzard/lean | ae3c3db4bb462d750dbf7419b28bafb3ec983ef7 | ed1788fd674bb8991acffc8fca585ec746711928 | refs/heads/master | 1,620,983,366,617 | 1,618,937,600,000 | 1,618,937,600,000 | 359,886,396 | 1 | 0 | Apache-2.0 | 1,618,936,987,000 | 1,618,936,987,000 | null | UTF-8 | Lean | false | false | 10,090 | 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.smt.smt_tactic init.meta.interactive_base
import init.meta.smt.rsimp
namespace smt_tactic
meta def save_info (p : pos) : smt_tacti... |
7a3d1be0428c13e73e5a952ce8253fcf17ffdec7 | 8d65764a9e5f0923a67fc435eb1a5a1d02fd80e3 | /src/group_theory/nilpotent.lean | 94ea5a7f39b88ddcaa1bc1db12a1222ea6ab7888 | [
"Apache-2.0"
] | permissive | troyjlee/mathlib | e18d4b8026e32062ab9e89bc3b003a5d1cfec3f5 | 45e7eb8447555247246e3fe91c87066506c14875 | refs/heads/master | 1,689,248,035,046 | 1,629,470,528,000 | 1,629,470,528,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 11,560 | lean | /-
Copyright (c) 2021 Kevin Buzzard. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Kevin Buzzard
-/
import group_theory.general_commutator
import group_theory.quotient_group
/-!
# Nilpotent groups
An API for nilpotent groups, that is, groups for which the upper ce... |
f0d665a8c83a70858d136e34f93d13466b70aee6 | 4d2583807a5ac6caaffd3d7a5f646d61ca85d532 | /src/measure_theory/covering/vitali_family.lean | 00b8050e1f15b28747963a0bbb9675d0a653ac47 | [
"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,968 | 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
On a metric space `X` with a measure `ΞΌ`, consider for each `x : X` a family of measurable s... |
b1f8eea1fec5a0b48b4e054a203dc1b9100be7c9 | 9028d228ac200bbefe3a711342514dd4e4458bff | /src/data/support.lean | 6d6c113e9fc7cd0b37714bbf5a364540efff3f42 | [
"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 | 5,471 | 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 order.conditionally_complete_lattice
import algebra.big_operators.basic
import algebra.group.prod
import algebra.group.pi
/-!
# Support of a function
In th... |
d2199c7de359b2c5825b920f3be6fff22be57057 | 9dc8cecdf3c4634764a18254e94d43da07142918 | /src/set_theory/game/nim.lean | ef5a43a5db66f2afd8d76674b4a023314401b712 | [
"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 | 15,087 | lean | /-
Copyright (c) 2020 Fox Thomson. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Fox Thomson, Markus Himmel
-/
import data.nat.bitwise
import set_theory.game.birthday
import set_theory.game.impartial
/-!
# Nim and the Sprague-Grundy theorem
This file contains the de... |
b894777544651fa01b2ef9a761159f1f79e83fd6 | b7f22e51856f4989b970961f794f1c435f9b8f78 | /tests/lean/hott/delta_issue2.hlean | e4f55d105955f020a3ccdd543f7824c0532ba7fa | [
"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 | 720 | hlean | open nat eq
infixr + := sum
theorem add_assocβ : Ξ (a b c : β), (a + b) + c = a + (b + c)
| a b 0 := eq.refl (nat.rec a (Ξ» x, succ) b)
| a b (succ n) :=
calc (a + b) + (succ n) = succ ((a + b) + n) : rfl
... = succ (a + (b + n)) : ap succ (add_assocβ a b n)
... = a + (succ... |
197350e91a50ddc12b21858cad4da8c43efa9214 | 8c02fed42525b65813b55c064afe2484758d6d09 | /src/irsem_smt.lean | e61fb3a5f00183563e1e1d1af01af452aeaca993 | [
"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 | 2,164 | lean | -- Copyright (c) Microsoft Corporation. All rights reserved.
-- Licensed under the MIT license.
import system.io
import smt2.syntax
import smt2.builder
import .irsem
import .lang
import .common
import .bitvector
import .smtexpr
import .smtcompile
open io
def irsem_smt : irsem := { intty := sbitvec, poisonty := sbool,... |
73013e282408e9d8e91bc95869b28d27852a784d | 22e97a5d648fc451e25a06c668dc03ac7ed7bc25 | /src/algebra/lie_algebra.lean | 771fce260fe489fac229c5ed00c91d70839a0a4b | [
"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 | 26,487 | lean | /-
Copyright (c) 2019 Oliver Nash. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Oliver Nash
-/
import ring_theory.algebra
import linear_algebra.linear_action
/-!
# Lie algebras
This file defines Lie rings, and Lie algebras over a commutative ring. It shows how thes... |
e1fd4e98ed229fc0408d0fea2302921c85645f6e | 798dd332c1ad790518589a09bc82459fb12e5156 | /data/set/basic.lean | 9517e939785fd008273dd32a2d7be19420c43013 | [
"Apache-2.0"
] | permissive | tobiasgrosser/mathlib | b040b7eb42d5942206149371cf92c61404de3c31 | 120635628368ec261e031cefc6d30e0304088b03 | refs/heads/master | 1,644,803,442,937 | 1,536,663,752,000 | 1,536,663,907,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 41,281 | lean | /-
Copyright (c) 2014 Jeremy Avigad. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Author: Jeremy Avigad, Leonardo de Moura
-/
import tactic.ext tactic.finish data.subtype tactic.interactive
open function
/- set coercion to a type -/
namespace set
instance {Ξ± : Type*} : has_... |
8026a7d69152a2c632079929dec16e2f02d601ea | 9d2e3d5a2e2342a283affd97eead310c3b528a24 | /src/exercises_sources/thursday/afternoon/category_theory/exercise1.lean | 9e2ea1e4b54557940bdb7193172e02f05b15490f | [] | permissive | Vtec234/lftcm2020 | ad2610ab614beefe44acc5622bb4a7fff9a5ea46 | bbbd4c8162f8c2ef602300ab8fdeca231886375d | refs/heads/master | 1,668,808,098,623 | 1,594,989,081,000 | 1,594,990,079,000 | 280,423,039 | 0 | 0 | MIT | 1,594,990,209,000 | 1,594,990,209,000 | null | UTF-8 | Lean | false | false | 741 | lean | import category_theory.isomorphism
import category_theory.yoneda
open category_theory
open opposite
variables {C : Type*} [category C]
/-! Hint 1:
`yoneda` is set up so that `(yoneda.obj X).obj (op Y) = (Y βΆ X)`
(we need to write `op Y` to explicitly move `Y` to the opposite category).
-/
/-! Hint 2:
If you have a ... |
738781ea5d48318efd27d827a9182e4665611f45 | 74addaa0e41490cbaf2abd313a764c96df57b05d | /Mathlib/algebra/polynomial/big_operators.lean | 8c2b41efd310a2c7253eb6caf50e402bcfdfa9af | [] | 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,095 | lean | /-
Copyright (c) 2020 Aaron Anderson. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Aaron Anderson, Jalex Stark.
-/
import Mathlib.PrePort
import Mathlib.Lean3Lib.init.default
import Mathlib.data.polynomial.monic
import Mathlib.tactic.linarith.default
import Mathlib.P... |
794a2a2365260784fde6379707c9964550237a50 | 5ec8f5218a7c8e87dd0d70dc6b715b36d61a8d61 | /linking.lean | cd4b2b8fca61db2fb134e9ace561d8c03bce4336 | [] | no_license | mbrodersen/kremlin | f9f2f9dd77b9744fe0ffd5f70d9fa0f1f8bd8cec | d4665929ce9012e93a0b05fc7063b96256bab86f | refs/heads/master | 1,624,057,268,130 | 1,496,957,084,000 | 1,496,957,084,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 10,054 | lean | /- Separate compilation and syntactic linking -/
import .ast .maps .lib
/- This file follows "approach A" from the paper
"Lightweight Verification of Separate Compilation"
by Kang, Kim, Hur, Dreyer and Vafeiadis, POPL 2016. -/
namespace linking
open ast maps
/- * Syntactic linking -/
/- A syntactic ele... |
90d2ba1adeb2f8420996f6cd293bf902f581493d | d406927ab5617694ec9ea7001f101b7c9e3d9702 | /src/field_theory/separable_degree.lean | c88eb9996e2c9af4025520e5f5c63df47b12ffe3 | [
"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 | 6,351 | lean | /-
Copyright (c) 2021 Jakob Scholbach. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Jakob Scholbach
-/
import algebra.algebra.basic
import algebra.char_p.exp_char
import field_theory.separable
/-!
# Separable degree
This file contains basics about the separable de... |
149ec1d987c4fe2298be0ee356c7ded72789faa9 | a45212b1526d532e6e83c44ddca6a05795113ddc | /src/linear_algebra/dual.lean | 5a6bcbac9e853433de2d89beca62ad99f6b0b275 | [
"Apache-2.0"
] | permissive | fpvandoorn/mathlib | b21ab4068db079cbb8590b58fda9cc4bc1f35df4 | b3433a51ea8bc07c4159c1073838fc0ee9b8f227 | refs/heads/master | 1,624,791,089,608 | 1,556,715,231,000 | 1,556,715,231,000 | 165,722,980 | 5 | 0 | Apache-2.0 | 1,552,657,455,000 | 1,547,494,646,000 | Lean | UTF-8 | Lean | false | false | 6,471 | lean | /-
Copyright (c) 2019 Johan Commelin. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Johan Commelin, Fabian GlΓΆckle
Dual vector spaces, the spaces of linear functionals to the base field, including the dual basis
isomorphism and evaluation isomorphism in the finite-di... |
9bc9bcc8c4a9cbe3af90a34d81d1f933c9978acf | cf39355caa609c0f33405126beee2739aa3cb77e | /tests/lean/sec_param_pp.lean | 6b2e078238426e6e44b313a07f409b19f1da16f3 | [
"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 | 281 | lean | section
parameters {A : Type*} (a : A)
variable f : A β A β A
definition id2 : A := a
#check id2
definition pr (b : A) : A := f a b
#check pr f id2
set_option pp.universes true
#check pr f id2
definition pr2 (B : Type*) (b : B) : A := a
#check pr2 nat 10
end
|
16008509960a0d11e87366bd4e865b685f758258 | 0c1546a496eccfb56620165cad015f88d56190c5 | /tests/lean/run/simplifier_custom_relations.lean | c1d3cf23dbf0b00ea318c60851946595dc390d2f | [
"Apache-2.0"
] | permissive | Solertis/lean | 491e0939957486f664498fbfb02546e042699958 | 84188c5aa1673fdf37a082b2de8562dddf53df3f | refs/heads/master | 1,610,174,257,606 | 1,486,263,620,000 | 1,486,263,620,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 1,001 | lean | open tactic
universe l
constants (A : Type.{l}) (rel : A β A β Prop)
(rel.refl : β a, rel a a)
(rel.symm : β a b, rel a b β rel b a)
(rel.trans : β a b c, rel a b β rel b c β rel a c)
attribute [refl] rel.refl
attribute [symm] rel.symm
attribute [trans] rel.trans
constants (x y z : A) (... |
2f96f7143942f66d6d853db0485566f5af5be90d | 6432ea7a083ff6ba21ea17af9ee47b9c371760f7 | /tests/lean/run/wfOverapplicationIssue.lean | fcc2cd14d3226d4b7bceeb5108bcd894ce90c083 | [
"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 | 591 | lean | theorem Array.sizeOf_lt_of_mem' [DecidableEq Ξ±] [SizeOf Ξ±] {as : Array Ξ±} (h : a β as) : sizeOf a < sizeOf as := by
simp [Membership.mem, contains, any, Id.run, BEq.beq, anyM] at h
let rec aux (j : Nat) : anyM.loop (m := Id) (fun b => decide (a = b)) as as.size (Nat.le_refl ..) j = true β sizeOf a < sizeOf as := by... |
e4a1908ec0dbac784cb99b93881ece01e0034cb4 | 9dc8cecdf3c4634764a18254e94d43da07142918 | /src/tactic/interactive.lean | ea73a5b041564802296e74ed9fbb901a2f2c0693 | [
"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 | 40,486 | lean | /-
Copyright (c) 2017 Mario Carneiro. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Mario Carneiro, Simon Hudon, SΓ©bastien GouΓ«zel, Scott Morrison
-/
import logic.nonempty
import tactic.lint
import tactic.dependencies
setup_tactic_parser
namespace tactic
namespace i... |
36671467ef4e94146043dfc4c5213838e92cb8de | 74addaa0e41490cbaf2abd313a764c96df57b05d | /Mathlib/Lean3Lib/init/data/char/lemmas.lean | b636655ab0391c9b9876645d39025a4155848321 | [] | no_license | AurelienSaue/Mathlib4_auto | f538cfd0980f65a6361eadea39e6fc639e9dae14 | 590df64109b08190abe22358fabc3eae000943f2 | refs/heads/master | 1,683,906,849,776 | 1,622,564,669,000 | 1,622,564,669,000 | 371,723,747 | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 1,088 | lean | import Mathlib.PrePort
import Mathlib.Lean3Lib.init.meta.default
import Mathlib.Lean3Lib.init.logic
import Mathlib.Lean3Lib.init.data.nat.lemmas
import Mathlib.Lean3Lib.init.data.char.basic
namespace Mathlib
namespace char
theorem val_of_nat_eq_of_is_valid {n : β} : is_valid_char n β val (of_nat n) = n := sorry
... |
be0b56a24039dc2a491222f591521e94567d6387 | 74addaa0e41490cbaf2abd313a764c96df57b05d | /Mathlib/data/polynomial/erase_lead_auto.lean | 57e04149f78f36bdbbfd070a235a9436e5c88a82 | [] | 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,561 | 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 Mathlib.PrePort
import Mathlib.Lean3Lib.init.default
import Mathlib.data.polynomial.degree.default
import Mathlib.data.polynomial.degree.trailing_degree
import M... |
61d9e8bdb438ebe724baa3f108e2235b4951f1c8 | 7b66d83f3b69dae0a3dfb684d7ebe5e9e3f3c913 | /src/exercises_sources/thursday/afternoon/category_theory/exercise5.lean | 9cd1fa5349b222a76d8231425a05b33490e81c61 | [] | permissive | dpochekutov/lftcm2020 | 58a09e10f0e638075b97884d3c2612eb90296adb | cdfbf1ac089f21058e523db73f2476c9c98ed16a | refs/heads/master | 1,669,226,265,076 | 1,594,629,725,000 | 1,594,629,725,000 | 279,213,346 | 1 | 0 | MIT | 1,594,622,757,000 | 1,594,615,843,000 | null | UTF-8 | Lean | false | false | 1,334 | lean | import category_theory.limits.shapes.biproducts
/-!
Let's show that every preadditive category embeds into a preadditive category with biproducts,
and identify a good universal property.
-/
universes v u
variables (C : Type u)
structure family :=
(ΞΉ : Type v)
[fintype : fintype ΞΉ]
[decidable_eq : decidable_eq ΞΉ]
(v... |
bf95a3d38e7fc5f0bb044ffc374ca440a9531a80 | 67190c9aacc0cac64fb4463d93e84c696a5be896 | /Lists of exercises/List 7/cap16-LucasDomingues.lean | 5be2f3b3cb4eabfeab1df02304755a835f203537 | [] | no_license | lucasresck/Discrete-Mathematics | ffbaf55943e7ce2c7bc50cef7e3ef66a0212f738 | 0a08081c5f393e5765259d3f1253c3a6dd043dac | refs/heads/master | 1,596,627,857,734 | 1,573,411,500,000 | 1,573,411,500,000 | 212,489,764 | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 4,951 | lean | -- Estudante: Lucas Emanuel Resck Domingues
import data.set
-- Exercise 1
section
open function int algebra
def f (x : β€) : β€ := x + 3
def g (x : β€) : β€ := -x
def h (x : β€) : β€ := 2 * x + 3
example : injective f :=
assume x1 x2,
assume h1 : x1 + 3 = x2 + 3, -- Lean knows t... |
50a1b191dced795efde6c82fe5cac7a87d5c6e17 | 83d56f27a2d4619301ce53e12f816410643fe9fd | /lean/Cyclone_Formal_Syntax.lean | 808e84e46c8346a36cbfc2d4774fc2be693ec7cc | [] | no_license | briangmilnes/CycloneCoqSemantics | cad5d09328fd70876d11f79b81d30954c7db6a60 | 190c0fc57d5aebfde244efb06a119f108de7a150 | refs/heads/master | 1,621,135,368,013 | 1,609,910,991,000 | 1,609,910,991,000 | 26,649,090 | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 4,283 | lean | /- Rewriting the Coq Cyclone Formal Syntax in Lean. -/
import .LeanLib
/- TODO Lean 4 has enumerations, should I be using it? -/
inductive Kappa : Type
| B /- 'boxed' kind. -/
| A /- 'any' kind. -/
export Kappa
inductive Phi : Type
| witnesschanges /- Allowing witness changes. \delta -/
| aliases /-... |
785ce6dcf45f677f6fc6b6a2f4537fbb634e1a6d | d406927ab5617694ec9ea7001f101b7c9e3d9702 | /src/analysis/convex/segment.lean | ea56f0fa3b164700c20d848d54d10b0bbba366bb | [
"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 | 20,240 | lean | /-
Copyright (c) 2019 Alexander Bentkamp. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Alexander Bentkamp, Yury Kudriashov, YaΓ«l Dillies
-/
import algebra.order.invertible
import algebra.order.smul
import linear_algebra.affine_space.midpoint
import linear_algebra.ray... |
be014d09a947c657d0ea30df0d78121f5cae6cd6 | 1abd1ed12aa68b375cdef28959f39531c6e95b84 | /src/data/polynomial/field_division.lean | 78088b0a4af6c3a012fe3f6757a4800ffbaae9bb | [
"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 | 19,884 | 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 algebra.gcd_monoid.basic
import data.polynomial.derivative
import data.polynomial.ring_division
import data.set.pai... |
9679bdc8faf2fef84652c1dc55c6e1d128c44431 | 367134ba5a65885e863bdc4507601606690974c1 | /src/data/polynomial/identities.lean | fc318fd4f966a7ff2657b813a12b5318ccf420f3 | [
"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 | 3,325 | lean | /-
Copyright (c) 2018 Chris Hughes. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Chris Hughes, Johannes HΓΆlzl, Scott Morrison, Jens Wagemaker
-/
import data.polynomial.derivative
/-!
# Theory of univariate polynomials
The main def is `binom_expansion`.
-/
noncompu... |
9a9064e2017b9ad6d558d213dc415bf148c48cd2 | 35677d2df3f081738fa6b08138e03ee36bc33cad | /src/data/real/hyperreal.lean | e5a65c714e5e482905b257ac710fae9ba9c56cd1 | [
"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 | 36,728 | lean | /-
Copyright (c) 2019 Abhimanyu Pallavi Sudhir. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Abhimanyu Pallavi Sudhir
Construction of the hyperreal numbers as an ultraproduct of real sequences.
-/
import data.real.basic algebra.field order.filter.filter_product anal... |
26ad01dc3e28f1aaf0ca498be434ba3686bb1562 | 4f643cce24b2d005aeeb5004c2316a8d6cc7f3b1 | /omin/def_coords.lean | a57717556f2c250eb1a1c69a5f3275291b2dbda2 | [] | no_license | rwbarton/lean-omin | da209ed061d64db65a8f7f71f198064986f30eb9 | fd733c6d95ef6f4743aae97de5e15df79877c00e | refs/heads/master | 1,674,408,673,325 | 1,607,343,535,000 | 1,607,343,535,000 | 285,150,399 | 9 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 2,835 | lean | import o_minimal.coordinates
import o_minimal.structure
-- Stripped-down version of `o_minimal.definable`
-- without implicit definability hypotheses on the types.
universe u
namespace o_minimal
open_locale finvec
variables {R : Type u} (S : struc R)
variables {X : Type*} [has_coordinates R X]
variables {Y : Type... |
f703f4eca2c47340baba2bba57954524b83a3a18 | aac33c518959cd0633fdc254edbbf27b2f581c31 | /src/analysis/convex.lean | 04a5d98da96ceed07822111368d0f1c068b902c0 | [
"Apache-2.0"
] | permissive | digama0/mathlib-ITP2019 | 992c4f9ac02260fca4a14860813c3ecbd5ca1ae6 | 5cbd0362e04e671ef5db1284870592af6950197c | refs/heads/master | 1,588,517,123,478 | 1,554,081,078,000 | 1,554,081,078,000 | 178,686,466 | 2 | 1 | null | null | null | null | UTF-8 | Lean | false | false | 28,101 | lean | /-
Copyright (c) 2019 Alexander Bentkamp. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Alexander Bentkamp
Convex sets and functions on real vector spaces
-/
import analysis.normed_space.basic
import data.complex.basic
import data.set.intervals
import tactic.interac... |
203efcebffa9fe32b5b9cf38e1837b39cb2372f9 | 4d2583807a5ac6caaffd3d7a5f646d61ca85d532 | /src/analysis/complex/conformal.lean | 5b3084712aaba142c2e719a7d487a97c12d223eb | [
"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 | 4,889 | lean | /-
Copyright (c) 2021 Yourong Zang. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Yourong Zang
-/
import analysis.complex.isometry
import analysis.normed_space.conformal_linear_map
/-!
# Conformal maps between complex vector spaces
We prove the sufficient and necess... |
267bfe10067f1ae9c03736fefb9e2060446f6666 | 4727251e0cd73359b15b664c3170e5d754078599 | /src/data/multiset/sections.lean | cad402b544edc47806754adfa6bb30ffffc24c5b | [
"Apache-2.0"
] | permissive | Vierkantor/mathlib | 0ea59ac32a3a43c93c44d70f441c4ee810ccceca | 83bc3b9ce9b13910b57bda6b56222495ebd31c2f | refs/heads/master | 1,658,323,012,449 | 1,652,256,003,000 | 1,652,256,003,000 | 209,296,341 | 0 | 1 | Apache-2.0 | 1,568,807,655,000 | 1,568,807,655,000 | null | UTF-8 | Lean | false | false | 2,229 | 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
-/
import data.multiset.bind
/-!
# Sections of a multiset
-/
namespace multiset
variables {Ξ± : Type*}
section sections
/--
The sections of a multiset of multisets `s... |
441f8766811d3a88ecebb7d4c299e243e7495b91 | 80746c6dba6a866de5431094bf9f8f841b043d77 | /src/algebra/group.lean | 52678766decf28e2e7181cddae6251d2fa242132 | [
"Apache-2.0"
] | permissive | leanprover-fork/mathlib-backup | 8b5c95c535b148fca858f7e8db75a76252e32987 | 0eb9db6a1a8a605f0cf9e33873d0450f9f0ae9b0 | refs/heads/master | 1,585,156,056,139 | 1,548,864,430,000 | 1,548,864,438,000 | 143,964,213 | 0 | 0 | Apache-2.0 | 1,550,795,966,000 | 1,533,705,322,000 | Lean | UTF-8 | Lean | false | false | 30,183 | 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
Various multiplicative and additive structures.
-/
import tactic.interactive data.option.defs
section pending_1857
/- Transport multiplicative to add... |
470299b729908534bdfd324aced2757128faca66 | ee8cdbabf07f77e7be63a449b8483ce308d37218 | /lean/src/valid/mathd-algebra-35.lean | b10ac304547904bfcb34b13ebe45d5e614b4e86b | [
"MIT",
"Apache-2.0"
] | permissive | zeta1999/miniF2F | 6d66c75d1c18152e224d07d5eed57624f731d4b7 | c1ba9629559c5273c92ec226894baa0c1ce27861 | refs/heads/main | 1,681,897,460,642 | 1,620,646,361,000 | 1,620,646,361,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 329 | lean | /-
Copyright (c) 2021 OpenAI. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Kunhao Zheng
-/
import data.real.basic
example (p q : β β β) (hβ : β x, p x = 2 - x ^ 2) (hβ : β xβ 0, q x = 6 / x) : p ( q 2) = -7 :=
begin
rw [hβ, hβ],
ring,
linarith,
end
|
f241401666fde8a41276c717ff6be7bdfc570ccb | 6432ea7a083ff6ba21ea17af9ee47b9c371760f7 | /tests/lean/run/compatibleTypesBugAtLCNF.lean | 203c01b5696ee72d97ec5ff44ce2bf3f923e12c2 | [
"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 | 82 | lean | import Lean
#eval Lean.Compiler.compile #[``Lean.Compiler.LCNF.Simp.etaPolyApp?]
|
a4437c84eb2bf5cd7ef2b5d8b2f7f2b980a0c58f | 57aec6ee746bc7e3a3dd5e767e53bd95beb82f6d | /tests/compiler/bigctor.lean | 1206779290a9dbcc76662feb2aa09b9343d08c70 | [
"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,350 | lean | structure Foo where
x1 : Nat := 0
x2 : Nat := 0
x3 : Nat := 0
x4 : Nat := 0
x5 : Nat := 0
x6 : Nat := 0
x7 : Nat := 0
x8 : Nat := 0
x9 : Nat := 0
x10 : Nat := 0
y1 : Nat := 0
y2 : Nat := 0
y3 : Nat := 0
y4 : Nat := 0
y5 : Nat := 0
y6 : Nat := 0
y7 : Nat := 0
y8 : Nat... |
de8c577cb4493f7db7624aae9d998f3867901ca6 | 9dc8cecdf3c4634764a18254e94d43da07142918 | /src/analysis/analytic/isolated_zeros.lean | 92ff0d95fb527d70d2cf2042cfd771430458585b | [
"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 | 5,756 | lean | /-
Copyright (c) 2022 Vincent Beffara. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Vincent Beffara
-/
import analysis.analytic.basic
import analysis.calculus.dslope
import analysis.calculus.fderiv_analytic
import analysis.calculus.formal_multilinear_series
import an... |
247b7b3206525fe11dc2cf6db1edbafe1c511119 | fecda8e6b848337561d6467a1e30cf23176d6ad0 | /src/topology/sheaves/sheaf.lean | 05b5dfa32f9835414bc7316a797110c02302b124 | [
"Apache-2.0"
] | permissive | spolu/mathlib | bacf18c3d2a561d00ecdc9413187729dd1f705ed | 480c92cdfe1cf3c2d083abded87e82162e8814f4 | refs/heads/master | 1,671,684,094,325 | 1,600,736,045,000 | 1,600,736,045,000 | 297,564,749 | 1 | 0 | null | 1,600,758,368,000 | 1,600,758,367,000 | null | UTF-8 | Lean | false | false | 10,807 | 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 topology.sheaves.presheaf
import category_theory.limits.punit
import category_theory.limits.shapes.products
import category_theory.limits.shapes.equalizers
/-... |
2d5c11887da9152e84408c1cab91b898b274af62 | fa02ed5a3c9c0adee3c26887a16855e7841c668b | /src/group_theory/abelianization.lean | 7ebcf8ed8127623d12c844c85b8f5c03f6d83b66 | [
"Apache-2.0"
] | permissive | jjgarzella/mathlib | 96a345378c4e0bf26cf604aed84f90329e4896a2 | 395d8716c3ad03747059d482090e2bb97db612c8 | refs/heads/master | 1,686,480,124,379 | 1,625,163,323,000 | 1,625,163,323,000 | 281,190,421 | 2 | 0 | Apache-2.0 | 1,595,268,170,000 | 1,595,268,169,000 | null | UTF-8 | Lean | false | false | 3,357 | lean | /-
Copyright (c) 2018 Kenny Lau. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Kenny Lau, Michael Howes
-/
import group_theory.quotient_group
import tactic.group
/-!
# The abelianization of a group
This file defines the commutator and the abelianization of a group. ... |
0e47d2bcca38e90e4e02c73a1b70936e1a4d5832 | 3dd1b66af77106badae6edb1c4dea91a146ead30 | /tests/lean/run/ind1.lean | 47d236b39ff8e09bf1cf1dfa6493236bb638a95f | [
"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 | 136 | lean | inductive list (A : Type) : Type :=
| nil : list A
| cons : A β list A β list A
check list.{1}
check cons.{1}
check list_rec.{1 1} |
2e85f990b44864d75af8bda4ad2d735b07eaa75d | 32317185abf7e7c963f4c67c190aec61af6b3628 | /hott/init/funext.hlean | e030ceb2861d98f0975bbbeaddf5553d9d9e4e14 | [
"Apache-2.0"
] | permissive | Andrew-Zipperer-unorganized/lean | 198a2317f21198cd8d26e7085e484b86277f17f7 | dcb35008e1474a0abebe632b1dced120e5f8c009 | refs/heads/master | 1,622,526,520,945 | 1,453,576,559,000 | 1,454,612,842,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 10,452 | hlean | /-
Copyright (c) 2014 Jakob von Raumer. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Jakob von Raumer, Floris van Doorn
Ported from Coq HoTT
-/
prelude
import .trunc .equiv .ua
open eq is_trunc sigma function is_equiv equiv prod unit prod.ops lift
/-
We now pro... |
e08661cf17fda4180bc5105d8cda6d0c51c52552 | 74addaa0e41490cbaf2abd313a764c96df57b05d | /Mathlib/data/pnat/factors.lean | 3fc139375fef7d2b5bf83b78d8ab93debf7a9f45 | [] | no_license | AurelienSaue/Mathlib4_auto | f538cfd0980f65a6361eadea39e6fc639e9dae14 | 590df64109b08190abe22358fabc3eae000943f2 | refs/heads/master | 1,683,906,849,776 | 1,622,564,669,000 | 1,622,564,669,000 | 371,723,747 | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 10,687 | lean | /-
Copyright (c) 2019 Neil Strickland. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Author: Neil Strickland
-/
import Mathlib.PrePort
import Mathlib.Lean3Lib.init.default
import Mathlib.data.pnat.prime
import Mathlib.data.multiset.sort
import Mathlib.data.int.gcd
import Mathl... |
7dc55c19db184cca6adb95ca3be3363687889e3b | 5ae26df177f810c5006841e9c73dc56e01b978d7 | /src/analysis/calculus/mean_value.lean | 4798257705da2c631d8078a657ea10787b2fffd8 | [
"Apache-2.0"
] | permissive | ChrisHughes24/mathlib | 98322577c460bc6b1fe5c21f42ce33ad1c3e5558 | a2a867e827c2a6702beb9efc2b9282bd801d5f9a | refs/heads/master | 1,583,848,251,477 | 1,565,164,247,000 | 1,565,164,247,000 | 129,409,993 | 0 | 1 | Apache-2.0 | 1,565,164,817,000 | 1,523,628,059,000 | Lean | UTF-8 | Lean | false | false | 7,661 | lean | /-
Copyright (c) 2019 SΓ©bastien GouΓ«zel. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: SΓ©bastien GouΓ«zel
The mean value inequality: a bound on the derivative of a function implies that this function
is Lipschitz continuous for the same bound.
-/
import analysis.calcu... |
0296d5326adb7980dbc1af0a0c9d556786c2db51 | 57c233acf9386e610d99ed20ef139c5f97504ba3 | /src/linear_algebra/clifford_algebra/basic.lean | 5e6a00f8c1f2c6c6c40c562eca6486e6c50e7483 | [
"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 | 12,282 | lean | /-
Copyright (c) 2020 Eric Wieser. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Eric Wieser, Utensil Song
-/
import algebra.ring_quot
import linear_algebra.tensor_algebra.basic
import linear_algebra.exterior_algebra.basic
import linear_algebra.quadratic_form.basic
... |
44ec2fbb82befa55303208dfc7c82e8582195d25 | 8b209d7bd1995e5795f3538ecb50643f69fb146f | /src/globular/signature.1.lean | 6bdfe977e25a569140f5115029f05042677a6a2f | [] | no_license | semorrison/lean-globular | 319661251c3c6d0e593d4f81d8a18b1856ffbc20 | cf44b96e2921be4efed4e00c412ae6088687e411 | refs/heads/master | 1,609,627,650,726 | 1,543,965,455,000 | 1,543,965,455,000 | 99,391,087 | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 2,670 | lean | inductive {u} dependent_list (A : Type u) (f : A β Type u) (g : Ξ a : A, f a β A) : A β A β Type (u+1)
| nil : Ξ a: A, (dependent_list a a)
| cons : Ξ { a b : A }, Ξ x : f b, (dependent_list a b) β dependent_list a (g b x)
open nat
definition divisor_chain : β β β β Type 1 := dependent_list β (Ξ» m: β, { k : β // k β£... |
46ae9af89de60a5f59f0fafadcca52e37eccd7bb | ce6917c5bacabee346655160b74a307b4a5ab620 | /src/ch6/ex0404.lean | 9091c2fa48663e74db1eec644eb7e38637f57aa4 | [] | 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 | 362 | lean | variable {Ξ± : Type*}
def is_prefix (lβ : list Ξ±) (lβ : list Ξ±) : Prop :=
β t, lβ ++ t = lβ
infix ` <+: `:50 := is_prefix
section
local attribute [simp]
theorem list.is_prefix_refl (l : list Ξ±) : l <+: l :=
β¨[], by simpβ©
example : [1, 2, 3] <+: [1, 2, 3] := by simp
end
-- error:
-- example : [1, 2, 3] <... |
33fe031f4fa7ca9a2496b861d26a815c20e6ddbe | 35677d2df3f081738fa6b08138e03ee36bc33cad | /src/data/subtype.lean | b730238ea6e1887530873a73dcd9b6295698f6bb | [
"Apache-2.0"
] | permissive | gebner/mathlib | eab0150cc4f79ec45d2016a8c21750244a2e7ff0 | cc6a6edc397c55118df62831e23bfbd6e6c6b4ab | refs/heads/master | 1,625,574,853,976 | 1,586,712,827,000 | 1,586,712,827,000 | 99,101,412 | 1 | 0 | Apache-2.0 | 1,586,716,389,000 | 1,501,667,958,000 | Lean | UTF-8 | Lean | false | false | 4,690 | lean | /-
Copyright (c) 2017 Johannes HΓΆlzl. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Author: Johannes HΓΆlzl
-/
import tactic.lint
-- Lean complains if this section is turned into a namespace
open function
section subtype
variables {Ξ± : Sort*} {p : Ξ± β Prop}
@[simp] theorem su... |
d979a49ab7b81c2151f613a3bf8c9405c47b3bf5 | 7b89826c26634aa18c0110f1634f73027851edfe | /natural-number-game/src/world02/level06.lean | 75714d8b981ecded4a7bc96e1cf863a17035b2f3 | [
"MIT"
] | permissive | marcofavorito/leanings | b7642344d8c9012a1cec74a804c5884297880c4d | 581b83be66ff4f8dd946fb6a1bb045d2ddf91076 | refs/heads/master | 1,672,310,991,244 | 1,603,031,766,000 | 1,603,031,766,000 | 279,163,004 | 1 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 584 | lean | import mynat.definition -- Imports the natural numbers.
import mynat.add -- imports addition.
import world02.level01 -- hide
import world02.level02 -- hide
import world02.level03 -- hide
import world02.level04 -- hide
import world02.level05 -- hide
namespace mynat -- hide
lemma add_right_comm (a b c : mynat) : a + ... |
7369046d79477d98f5a20b04e518cadb4dd2f223 | e030b0259b777fedcdf73dd966f3f1556d392178 | /tests/lean/structure_instance_bug2.lean | 9d3c7b2ec757a0326bbf3ea71e64ecfe0b8df4cc | [
"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 | 162 | lean | def my_pre_config1 : smt_pre_config :=
{ default_smt_pre_config . zeta := tt }
def my_pre_config2 : smt_pre_config :=
{ default_smt_pre_config with zeta := tt }
|
5ce6edab7d71ace6333fe69f78db5317ba3c5a05 | 4d2583807a5ac6caaffd3d7a5f646d61ca85d532 | /src/data/set/basic.lean | ca7ce4a9550b298445cb6e87a63dcab938b9b25e | [
"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 | 113,598 | 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
-/
import logic.unique
import logic.relation
import order.boolean_algebra
/-!
# Basic properties of sets
Sets in Lean are homogeneous; all their eleme... |
07968963d9b4fbf942872e1bbb1be302b078828e | 2a70b774d16dbdf5a533432ee0ebab6838df0948 | /_target/deps/mathlib/src/linear_algebra/multilinear.lean | 17cca4bf697e2ede825652204dedd582b0f11624 | [
"Apache-2.0"
] | permissive | hjvromen/lewis | 40b035973df7c77ebf927afab7878c76d05ff758 | 105b675f73630f028ad5d890897a51b3c1146fb0 | refs/heads/master | 1,677,944,636,343 | 1,676,555,301,000 | 1,676,555,301,000 | 327,553,599 | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 46,319 | lean | /-
Copyright (c) 2020 SΓ©bastien GouΓ«zel. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: SΓ©bastien GouΓ«zel
-/
import linear_algebra.basic
import algebra.algebra.basic
import tactic.omega
import data.fintype.sort
/-!
# Multilinear maps
We define multilinear maps as map... |
cfdde6002e5aea33f57b9fe1a524598ff932c2e6 | a4673261e60b025e2c8c825dfa4ab9108246c32e | /stage0/src/Lean/ReducibilityAttrs.lean | 463986651a1387c59521a0092674dc22b181f9b1 | [
"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 | 1,940 | 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.Attributes
namespace Lean
inductive ReducibilityStatus :=
| reducible | semireducible | irreducible
instance : Inhabited ReducibilityStatus... |
a5ddbdc3b75cbd365161ecb084954e601280b04a | e00ea76a720126cf9f6d732ad6216b5b824d20a7 | /src/tactic/doc_commands.lean | c539d9823f661a33d075e88b2ab19fe5eb5f514e | [
"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 | 15,658 | 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.fix_reflect_string
/-!
# Documentation commands
We generate html documentation from mathlib. It is convenient to collect lists of tactics, commands... |
93aa347b3f23c6a78c086884c63be341d51c0437 | 17d3111f5ed342ec13f42572761b13d569787376 | /src/carddisjointunion.lean | 26102e7317140c28f6bfb708212c201d98066768 | [
"Apache-2.0"
] | permissive | cfbolz/lean-carddisjointunion | 6dda1c277ffdf3a5f57417bcb1df3c4a1e1e8f33 | 33b9013419de7eb9d62a40bf132537dfa224fd0f | refs/heads/master | 1,668,609,073,581 | 1,594,319,171,000 | 1,594,319,171,000 | 278,421,864 | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 2,260 | lean | import tactic
import tactic.suggest
import tactic.nth_rewrite
import data.fintype.basic
import data.setoid.partition
variables {Ξ± : Type} {Ξ² : Type} {Ξ³ : Type}
open_locale classical
open_locale big_operators
lemma lift_disjoint_to_finset (s1 s2 : set Ξ±) [fintype Ξ±] (h : disjoint s1 s2) : disjoint s1.to_finset s2.to_... |
0d75cf0a499d32215bb5a30c3866b94bd649ed8d | 9dc8cecdf3c4634764a18254e94d43da07142918 | /src/algebra/order/pointwise.lean | 157edcb4fbafd1f293208783122e29a0602f1775 | [
"Apache-2.0"
] | permissive | jcommelin/mathlib | d8456447c36c176e14d96d9e76f39841f69d2d9b | ee8279351a2e434c2852345c51b728d22af5a156 | refs/heads/master | 1,664,782,136,488 | 1,663,638,983,000 | 1,663,638,983,000 | 132,563,656 | 0 | 0 | Apache-2.0 | 1,663,599,929,000 | 1,525,760,539,000 | Lean | UTF-8 | Lean | false | false | 7,324 | lean | /-
Copyright (c) 2021 Alex J. Best. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Alex J. Best, YaΓ«l Dillies
-/
import algebra.bounds
/-!
# Pointwise operations on ordered algebraic objects
This file contains lemmas about the effect of pointwise operations on sets w... |
13c2ae4ec5d78b339e0045150e2f91f515292291 | 42c01158c2730cc6ac3e058c1339c18cb90366e2 | /graph_theory/graph.lean | 71568fdd9511c74ec85fec42f656db45df0d48a3 | [] | no_license | ChrisHughes24/xena | c80d94355d0c2ae8deddda9d01e6d31bc21c30ae | 337a0d7c9f0e255e08d6d0a383e303c080c6ec0c | refs/heads/master | 1,631,059,898,392 | 1,511,200,551,000 | 1,511,200,551,000 | 111,468,589 | 1 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 3,230 | lean | structure graph: Type 1 :=
(vertex : Type)
(edge: vertex β vertex β Prop)
(undirected: β a b: vertex, edge a b β edge b a)
(no_loops : β a: vertex, Β¬ edge a a)
notation a - b := graph.edge a b
class graphs: Type 1 :=
(empty: graph)
(g : graph)
(add_vertex : graph β graph)
(add_edge : graph β graph.vertex g β graph.ve... |
4974db675f35ffaa1338597b8f67745a0f819b59 | a45212b1526d532e6e83c44ddca6a05795113ddc | /src/category/bifunctor.lean | b566667d8fe984a02c7d4dd7a5568c790a79b79d | [
"Apache-2.0"
] | permissive | fpvandoorn/mathlib | b21ab4068db079cbb8590b58fda9cc4bc1f35df4 | b3433a51ea8bc07c4159c1073838fc0ee9b8f227 | refs/heads/master | 1,624,791,089,608 | 1,556,715,231,000 | 1,556,715,231,000 | 165,722,980 | 5 | 0 | Apache-2.0 | 1,552,657,455,000 | 1,547,494,646,000 | Lean | UTF-8 | Lean | false | false | 4,528 | lean | /-
Copyright (c) 2018 Simon Hudon. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Author: Simon Hudon
Functors with two arguments
-/
import data.sum
category.basic category.functor
tactic.basic
universes uβ uβ uβ vβ vβ vβ
class bifunctor (F : Type uβ β Type uβ... |
5a7881a7403ea218ea6f40b23ff7ff04d7d9d320 | 618003631150032a5676f229d13a079ac875ff77 | /src/ring_theory/algebraic.lean | 94b8154b395bc34ee4411798b29cda1f60df4a6b | [
"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 | 3,548 | 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 ring_theory.integral_closure
/-!
# Algebraic elements and algebraic extensions
An element of an R-algebra is algebraic over R if it is the root of a nonzero ... |
356e0eabc9f78908a05c16c2a0a48d9eeb08eef5 | 57c233acf9386e610d99ed20ef139c5f97504ba3 | /src/group_theory/submonoid/operations.lean | 4767adc91898f12b338b4302d16f9e5f0faea1de | [
"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 | 36,256 | 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, Kenny Lau, Johan Commelin, Mario Carneiro, Kevin Buzzard,
Amelia Livingston, Yury Kudryashov
-/
import group_theory.submonoid.basic
import data.equiv.mul_add
import al... |
7be107897e3563b0535b1b3407e8b911d83037dc | 2fbe653e4bc441efde5e5d250566e65538709888 | /src/algebra/group/hom.lean | 6a39ef2840a74133a8d6f9949b81a3da11511cdc | [
"Apache-2.0"
] | permissive | aceg00/mathlib | 5e15e79a8af87ff7eb8c17e2629c442ef24e746b | 8786ea6d6d46d6969ac9a869eb818bf100802882 | refs/heads/master | 1,649,202,698,930 | 1,580,924,783,000 | 1,580,924,783,000 | 149,197,272 | 0 | 0 | Apache-2.0 | 1,537,224,208,000 | 1,537,224,207,000 | null | UTF-8 | Lean | false | false | 16,252 | lean | /-
Copyright (c) 2018 Patrick Massot. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Patrick Massot, Kevin Buzzard, Scott Morrison, Johan Commelin, Chris Hughes,
Johannes HΓΆlzl, Yury Kudryashov
Homomorphisms of multiplicative and additive (semi)groups and monoids.
... |
a4dd48a1b40a43a6b07cf19c3c1703522d876e9d | ea97c777e51529c97caac532f9a6bbea417eca7a | /02_logic.lean | 2559920aed6c871e3a59501164a33a0d71035753 | [] | no_license | gebner/avm2017_tutorial | 0fcd023fbcefd6e46384ca4919b90a0f6118368e | 3954983cdc8aef0e58e1a5809c0b3e217057ac4c | refs/heads/master | 1,624,860,271,990 | 1,505,717,496,000 | 1,505,717,496,000 | 103,569,052 | 2 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 2,874 | lean | universes u
#check true β§ false β¨ (3 > 1 β 1 < 3)
#check 4 = 2+2
#check β n : β, n β 0 β β m, n = m+1
/-
Curry-Howard: Propositions as types
(A proposition is true if there is a value of the type.)
-/
-- Functions are proofs of implication
lemma p1 {a b : Prop} : a β b β a :=
Ξ» ha hb, ha
-- Functions are proof... |
ebef280c5d4aca77ff14ef13ceff81ceba9534cd | 7cdf3413c097e5d36492d12cdd07030eb991d394 | /world_experiments/world7/level6andseveneighths.lean | da48c0aaac1b2e450065de7b01cf78d9ab481c81 | [] | no_license | alreadydone/natural_number_game | 3135b9385a9f43e74cfbf79513fc37e69b99e0b3 | 1a39e693df4f4e871eb449890d3c7715a25c2ec9 | refs/heads/master | 1,599,387,390,105 | 1,573,200,587,000 | 1,573,200,691,000 | 220,397,084 | 0 | 0 | null | 1,573,192,734,000 | 1,573,192,733,000 | null | UTF-8 | Lean | false | false | 1,286 | lean | import mynat.definition -- hide
import mynat.add -- hide
import game.world2.level6andthreequarters -- hide
namespace mynat -- hide
/- Tactic : intro
The `intro h` tactic is very simple. If we're trying to prove
$P\implies Q$ with $P$ and $Q$ true/false statements, then
`intro h` is Lean's way of saying "Let's assume $... |
2194ad229cd4ab519cd5f0c5806d287af3da2d39 | e030b0259b777fedcdf73dd966f3f1556d392178 | /library/init/meta/smt/congruence_closure.lean | 62824520910a78ec18b485c9c23f132dbf481033 | [
"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 | 4,952 | 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.tactic init.meta.set_get_option_tactics
structure cc_config :=
/- If tt, congruence closure will treat implicit instance arguments... |
976c0bb2adf4183ac476807e7041217021cacafd | 9be442d9ec2fcf442516ed6e9e1660aa9071b7bd | /tests/lean/1026.lean | 6b6ee12c782529b5d9f4fbaa9e02f151c6fa5d3d | [
"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 | 236 | lean | def foo (n : Nat) : Nat :=
if n = 0 then 0 else
let x := n - 1
have := match () with | _ => trivial
foo x
termination_by _ n => n
decreasing_by sorry
theorem ex : foo 0 = 0 := by
unfold foo
sorry
#check @foo._unfold
|
1f37285acc093aa935edc851c86fe45e43309c14 | 94e33a31faa76775069b071adea97e86e218a8ee | /src/order/rel_iso.lean | 60c811dfbeef126ad3ce10d025adde97802f03b3 | [
"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 | 25,080 | 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 algebra.group.defs
import data.fun_like.basic
import logic.embedding
import logic.equiv.set
import order.rel_classes
/-!
# Relation homomorphisms, embeddings,... |
2be9c66ef9a1a2e5f7e24dde61509907ec3664eb | 74addaa0e41490cbaf2abd313a764c96df57b05d | /Mathlib/group_theory/free_group_auto.lean | 2d2983313502671bcf6de6e02f0772ec857e3c36 | [] | 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 | 28,396 | lean | /-
Copyright (c) 2018 Kenny Lau. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Kenny Lau
Free groups as a quotient over the reduction relation `a * x * xβ»ΒΉ * b = a * b`.
First we introduce the one step reduction relation
`free_group.red.step`: w * x * xβ»ΒΉ * v ~... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.