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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
cc8ff4a2ca44fe828780e0989ef6b74386aba5df | d406927ab5617694ec9ea7001f101b7c9e3d9702 | /src/data/polynomial/inductions.lean | dea3738a0f773468fcf4bd8d4ed46a5c7593ad1a | [
"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,564 | lean | /-
Copyright (c) 2021 Damiano Testa. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Chris Hughes, Johannes Hölzl, Scott Morrison, Damiano Testa, Jens Wagemaker
-/
import data.nat.interval
import data.polynomial.degree.definitions
import data.polynomial.induction
/-!
#... |
2022fc96a910920f70add87936fc63cbcef95537 | d642a6b1261b2cbe691e53561ac777b924751b63 | /src/topology/bounded_continuous_function.lean | 2a9ab9b90281597db3bf69cc6471ec59e8c7c716 | [
"Apache-2.0"
] | permissive | cipher1024/mathlib | fee56b9954e969721715e45fea8bcb95f9dc03fe | d077887141000fefa5a264e30fa57520e9f03522 | refs/heads/master | 1,651,806,490,504 | 1,573,508,694,000 | 1,573,508,694,000 | 107,216,176 | 0 | 0 | Apache-2.0 | 1,647,363,136,000 | 1,508,213,014,000 | Lean | UTF-8 | Lean | false | false | 23,529 | lean | /-
Copyright (c) 2018 Sébastien Gouëzel. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Sébastien Gouëzel, Mario Carneiro
Type of bounded continuous functions taking values in a metric space, with
the uniform distance.
-/
import analysis.normed_space.basic topology.... |
3a3d2e82e431489946c5862a803942dc9da1e29a | a0e23cfdd129a671bf3154ee1a8a3a72bf4c7940 | /stage0/src/Lean/Elab/Structure.lean | 15e09dbbb19d43d7ed41dc079e7689b9e7219822 | [
"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 | 27,922 | 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.Command
import Lean.Meta.Closure
import Lean.Meta.SizeOf
import Lean.Meta.Injective
import Lean.Elab.Command
import Lean.Elab.DeclModifie... |
433442708877f6c9b935d043770339e2049fa0f6 | ce6917c5bacabee346655160b74a307b4a5ab620 | /src/ch5/ex0407.lean | df12f0c15b5316de5cc9ae2c531e1539e9fab519 | [] | 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 | 318 | lean | example (p q r : Prop) : p ∧ (q ∨ r) → (p ∧ q) ∨ (p ∧ r) :=
begin
intro h,
cases h with hp hqr,
show (p ∧ q) ∨ (p ∧ r),
cases hqr with hq hr,
have hpq : p ∧ q,
from and.intro hp hq,
left, exact hpq,
have hpr : p ∧ r,
from and.intro hp hr,
right, exact hpr
end
|
ee168c71a939610fa593f404cc8e1d5bc65d4e5f | e0f9ba56b7fedc16ef8697f6caeef5898b435143 | /src/order/basic.lean | 14a8b2c7bb7ae9543e28159ffc0510b32b1c234f | [
"Apache-2.0"
] | permissive | anrddh/mathlib | 6a374da53c7e3a35cb0298b0cd67824efef362b4 | a4266a01d2dcb10de19369307c986d038c7bb6a6 | refs/heads/master | 1,656,710,827,909 | 1,589,560,456,000 | 1,589,560,456,000 | 264,271,800 | 0 | 0 | Apache-2.0 | 1,589,568,062,000 | 1,589,568,061,000 | null | UTF-8 | Lean | false | false | 32,467 | 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
-/
import data.set.basic
open function
/-!
# Basic definitions about `≤` and `<`
## Definitions
### Predicates on functions
- `monotone f`: a function ... |
303348aff788f2e798e6fcb5344e6b71bc61225e | 55c7fc2bf55d496ace18cd6f3376e12bb14c8cc5 | /src/group_theory/submonoid/operations.lean | 3268c2ecf4bc1639f76b71e88d1455eb6d3d906b | [
"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,734 | lean | import group_theory.submonoid.basic
import data.equiv.mul_add
import algebra.group.prod
import algebra.group.inj_surj
/-!
# Operations on `submonoid`s
In this file we define various operations on `submonoid`s and `monoid_hom`s.
## Main definitions
### Conversion between multiplicative and additive definitions
* `s... |
d9c7e2012c3e7531f77d1b85cc30f7a345fad40e | 947fa6c38e48771ae886239b4edce6db6e18d0fb | /src/algebra/punit_instances.lean | fdbf6d1aabda4cb38a83a5133dc39cd4ca406a1c | [
"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 | 3,667 | lean | /-
Copyright (c) 2019 Kenny Lau. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Kenny Lau
-/
import algebra.module.basic
import algebra.gcd_monoid.basic
import algebra.group_ring_action
import group_theory.group_action.defs
/-!
# Instances on punit
This file collect... |
e61630322f8fec56d878631dc8148f14c30f14f6 | d9d511f37a523cd7659d6f573f990e2a0af93c6f | /src/algebra/category/Algebra/limits.lean | 750a7b6199a35040527554ae3e8124d3bac0934a | [
"Apache-2.0"
] | permissive | hikari0108/mathlib | b7ea2b7350497ab1a0b87a09d093ecc025a50dfa | a9e7d333b0cfd45f13a20f7b96b7d52e19fa2901 | refs/heads/master | 1,690,483,608,260 | 1,631,541,580,000 | 1,631,541,580,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 4,926 | 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.Algebra.basic
import algebra.category.Module.limits
import algebra.category.CommRing.limits
/-!
# The category of R-algebras has all limits
... |
c93c7577ca026e8e126906eae10d3d9a34174706 | 80cc5bf14c8ea85ff340d1d747a127dcadeb966f | /src/analysis/normed_space/mazur_ulam.lean | 6502691d7a1f28292de7cad872e455a05dc47bf6 | [
"Apache-2.0"
] | permissive | lacker/mathlib | f2439c743c4f8eb413ec589430c82d0f73b2d539 | ddf7563ac69d42cfa4a1bfe41db1fed521bd795f | refs/heads/master | 1,671,948,326,773 | 1,601,479,268,000 | 1,601,479,268,000 | 298,686,743 | 0 | 0 | Apache-2.0 | 1,601,070,794,000 | 1,601,070,794,000 | null | UTF-8 | Lean | false | false | 6,213 | lean | /-
Copyright (c) 2020 Yury Kudryashov. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Author: Yury Kudryashov
-/
import analysis.normed_space.point_reflection
import topology.instances.real_vector_space
import analysis.normed_space.add_torsor
import linear_algebra.affine_space.... |
bf56a07154cfa9dfe3f2db568a28844cb10499ac | fa02ed5a3c9c0adee3c26887a16855e7841c668b | /src/algebra/category/Mon/basic.lean | 15346edede2c08e0224588a5fec3290d0d4735f4 | [
"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 | 7,603 | lean | /-
Copyright (c) 2018 Scott Morrison. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Scott Morrison
-/
import category_theory.concrete_category.bundled_hom
import category_theory.concrete_category.reflects_isomorphisms
import algebra.punit_instances
import tactic.eleme... |
f38c55c9f03e27a6b9fd606ca28bb08ba794ac45 | 8cae430f0a71442d02dbb1cbb14073b31048e4b0 | /src/combinatorics/colex.lean | cc90e329aa314de51561e8af78bad9762cff3331 | [
"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 | 15,129 | lean | /-
Copyright (c) 2020 Bhavik Mehta. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Bhavik Mehta, Alena Gusakov
-/
import data.fintype.basic
import algebra.geom_sum
/-!
# Colex
> THIS FILE IS SYNCHRONIZED WITH MATHLIB4.
> Any changes to this file require a correspondi... |
41902042b9bb3146e445af22baa6a62ede89f495 | fa02ed5a3c9c0adee3c26887a16855e7841c668b | /src/data/polynomial/basic.lean | 439e0cd9d01d2d7a79d7b58684840a6241db370a | [
"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 | 24,562 | 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 tactic.ring_exp
import tactic.chain
import algebra.monoid_algebra
import data.finset.sort
import tactic.ring
/-!
#... |
80c51853bada109f9e5e35f2bbe166af27b149eb | 74addaa0e41490cbaf2abd313a764c96df57b05d | /Mathlib/Lean3Lib/init/meta/smt/ematch_auto.lean | ef57d45ca390cf02ac92c0f80b37f1cacdee0283 | [] | 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,209 | 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
-/
import Mathlib.PrePort
import Mathlib.Lean3Lib.init.meta.smt.congruence_closure
import Mathlib.Lean3Lib.init.meta.attribute
import Mathlib.Lean3Lib.init.met... |
cc96c5817216784a907cde74045a9d9df76081e7 | 6432ea7a083ff6ba21ea17af9ee47b9c371760f7 | /tests/lean/run/coeIssues4.lean | 4f37db6c08f264d34ce16a02173e16b1d60d7f0c | [
"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 | 590 | lean | --
def f : List Int → Bool := fun _ => true
def ex3 : IO Bool := do
let xs ← pure [1, 2, 3];
pure $ f xs -- Works
inductive Expr
| val : Nat → Expr
| app : Expr → Expr → Expr
instance : Coe Nat Expr := ⟨Expr.val⟩
instance : OfNat Expr n where
ofNat := Expr.val n
def foo : Expr → Expr := fun e => e
def ex1 : Boo... |
72549d75da3f2b922a13149f963d81be13198aa7 | cf39355caa609c0f33405126beee2739aa3cb77e | /tests/lean/run/heap.lean | ff86067a5763ed3bbb889d69fa773a504c9d3448 | [
"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,065 | lean | constant heap : Type
constant ptr : Type
constant val : Type
constant pt : ptr → val → heap
constant hunion : heap → heap → heap
constant is_def : heap → Prop
infix `∙`:60 := hunion
infix `↣`:70 := pt
/-
constant hunion_is_assoc : is_associative heap hunion
constant hunion_is_comm : is_commutative heap h... |
d87a5cbe92ae37ca6d9a25da81c86b92046cb021 | 57c233acf9386e610d99ed20ef139c5f97504ba3 | /src/algebra/order/ring.lean | ab39e7c302079ca76b2d30f1177a6c6f3396a478 | [
"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 | 67,483 | lean | /-
Copyright (c) 2016 Jeremy Avigad. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Jeremy Avigad, Leonardo de Moura, Mario Carneiro
-/
import algebra.order.group
import algebra.order.sub
import data.set.intervals.basic
/-!
# Ordered rings and semirings
This file dev... |
8c845e7c6b6b3dd64ed4d2574c2f2ee7773ddac9 | 94e33a31faa76775069b071adea97e86e218a8ee | /src/ring_theory/graded_algebra/homogeneous_ideal.lean | f4676a719003e94ff3eb20de1ca6ded06e8143b9 | [
"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 | 21,518 | lean | /-
Copyright (c) 2021 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.ideal.basic
import ring_theory.ideal.operations
import linear_algebra.finsupp
import ring_theory.graded_algebra.basic
/-!
# Homogeneous id... |
cc05ab80bffcece1792e61e24176c4832421bec5 | 626e312b5c1cb2d88fca108f5933076012633192 | /src/ring_theory/localization.lean | de50db23d7a237a56b28d54ee524bcaec355d18a | [
"Apache-2.0"
] | permissive | Bioye97/mathlib | 9db2f9ee54418d29dd06996279ba9dc874fd6beb | 782a20a27ee83b523f801ff34efb1a9557085019 | refs/heads/master | 1,690,305,956,488 | 1,631,067,774,000 | 1,631,067,774,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 78,258 | lean | /-
Copyright (c) 2018 Kenny Lau. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Kenny Lau, Mario Carneiro, Johan Commelin, Amelia Livingston
-/
import data.equiv.ring
import group_theory.monoid_localization
import ring_theory.ideal.operations
import ring_theory.ideal.... |
87df10b970465d99573e67368cfd1f4869c7e30f | 618003631150032a5676f229d13a079ac875ff77 | /src/data/W.lean | 068682ee561c2d4cb1eeddbdf8388e7a1d522025 | [
"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,938 | lean | /-
Copyright (c) 2019 Jeremy Avigad. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Author: Jeremy Avigad
-/
import data.equiv.list
/-!
# W types
Given `α : Type` and `β : α → Type`, the W type determined by this data, `W β`, is the inductively
defined type of trees where the... |
a78770b313bfb848049736cdb11743167a4eb900 | 626e312b5c1cb2d88fca108f5933076012633192 | /src/data/list/of_fn.lean | 1315a248c4fb698a41282ffc5776ec87c5f4e8e6 | [
"Apache-2.0"
] | permissive | Bioye97/mathlib | 9db2f9ee54418d29dd06996279ba9dc874fd6beb | 782a20a27ee83b523f801ff34efb1a9557085019 | refs/heads/master | 1,690,305,956,488 | 1,631,067,774,000 | 1,631,067,774,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 4,080 | lean | /-
Copyright (c) 2018 Mario Carneiro. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Mario Carneiro
-/
import data.list.basic
import data.fin
/-!
# Lists from functions
Theorems and lemmas for dealing with `list.of_fn`, which converts a function on `fin n` to a list
... |
d05b49e99b4ace933ddab6ae54f93b5d5049ca3d | 5ca7b1b12d14c4742e29366312ba2c2ef8201b21 | /src/game/world6/level9.lean | e887f772385345f56873890dcc757a412d752bda | [
"Apache-2.0"
] | permissive | MatthiasHu/natural_number_game | 2e464482ef3001863430b0336133b6697b275ba3 | 2d764f72669ae30861f6a1057fce0257f3e466c4 | refs/heads/master | 1,609,719,110,419 | 1,576,345,737,000 | 1,576,345,737,000 | 240,296,314 | 0 | 0 | Apache-2.0 | 1,581,608,357,000 | 1,581,608,356,000 | null | UTF-8 | Lean | false | false | 1,295 | lean | /-
# Proposition world.
## Level 9: a big maze.
Lean's "congruence closure" tactic `cc` is good at mazes. Perhaps I should have
mentioned it earlier.
-/
/- Lemma : no-side-bar
There is a way through the following maze.
-/
example (A B C D E F G H I J K L : Prop)
(f1 : A → B) (f2 : B → E) (f3 : E → D) (f4 : D → A) ... |
2a25e5a6f67e0a986a8eec6983559a38f6cdd7a4 | b328e8ebb2ba923140e5137c83f09fa59516b793 | /src/Lean/Meta/SynthInstance.lean | 5aeb58f020c74222106f86bf65bdf3103a817526 | [
"Apache-2.0"
] | permissive | DrMaxis/lean4 | a781bcc095511687c56ab060e816fd948553e162 | 5a02c4facc0658aad627cfdcc3db203eac0cb544 | refs/heads/master | 1,677,051,517,055 | 1,611,876,226,000 | 1,611,876,226,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 26,121 | lean | /-
Copyright (c) 2019 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Daniel Selsam, Leonardo de Moura
Type class instance synthesizer using tabled resolution.
-/
import Lean.Meta.Basic
import Lean.Meta.Instances
import Lean.Meta.LevelDefEq
impor... |
2ab600db3c75c79c9ab96d197ab4cc5381b6da42 | 302b541ac2e998a523ae04da7673fd0932ded126 | /tests/playground/list.lean | 702d80ba3765721d386acf6f11fc0aa293c79aef | [] | no_license | mattweingarten/lambdapure | 4aeff69e8e3b8e78ea3c0a2b9b61770ef5a689b1 | f920a4ad78e6b1e3651f30bf8445c9105dfa03a8 | refs/heads/master | 1,680,665,168,790 | 1,618,420,180,000 | 1,618,420,180,000 | 310,816,264 | 2 | 1 | null | null | null | null | UTF-8 | Lean | false | false | 235 | lean | set_option trace.compiler.ir.init true
inductive L
| Nil
| Cons : Nat -> L -> L
open L
def map : (Nat -> Nat) -> L -> L
| f , Nil => Nil
| f, Cons n l => Cons (f n) l
def add_one (x:Nat) :Nat := x + 1
|
58a56127365c6a7603ed8a0fa4cf39390619ccf0 | 74addaa0e41490cbaf2abd313a764c96df57b05d | /Mathlib/analysis/normed_space/bounded_linear_maps.lean | ad6e28e96bad58369891fea87a848d9e52251106 | [] | 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 | 20,482 | 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
Continuous linear functions -- functions between normed vector spaces which are bounded and linear.
-/
import Mathlib.PrePort
import Mathlib.Lean3Lib.in... |
d8f5fb09ba4d523a95668fb940b961b481cf2afc | f5f7e6fae601a5fe3cac7cc3ed353ed781d62419 | /src/topology/instances/polynomial.lean | 1f654dbd77b16f5ce6caf4b18f56ba1c89897e3e | [
"Apache-2.0"
] | permissive | EdAyers/mathlib | 9ecfb2f14bd6caad748b64c9c131befbff0fb4e0 | ca5d4c1f16f9c451cf7170b10105d0051db79e1b | refs/heads/master | 1,626,189,395,845 | 1,555,284,396,000 | 1,555,284,396,000 | 144,004,030 | 0 | 0 | Apache-2.0 | 1,533,727,664,000 | 1,533,727,663,000 | null | UTF-8 | Lean | false | false | 2,061 | 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.ring data.polynomial
open polynomial is_absolute_value
lemma polynomial.tendsto_infinity {α β : Type*} ... |
65855f0d98d94838e890b956137557d0b7892d06 | 08bd4ba4ca87dba1f09d2c96a26f5d65da81f4b4 | /src/Lean/Meta/Transform.lean | 034cd574edbe5f9e12192b1afb23c8526dd37698 | [
"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",
"Apache-2.0",
"LicenseRef-scancode-other-permissive",
"SunPro",
"CMU-Mach"... | permissive | gebner/lean4 | d51c4922640a52a6f7426536ea669ef18a1d9af5 | 8cd9ce06843c9d42d6d6dc43d3e81e3b49dfc20f | refs/heads/master | 1,685,732,780,391 | 1,672,962,627,000 | 1,673,459,398,000 | 373,307,283 | 0 | 0 | Apache-2.0 | 1,691,316,730,000 | 1,622,669,271,000 | Lean | UTF-8 | Lean | false | false | 7,882 | 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.Basic
namespace Lean
inductive TransformStep where
/-- Return expression without visiting any subexpressions. -/
| done (e : Expr)
... |
705c062f192668408ac582f46be0285c3675af0a | 69d4931b605e11ca61881fc4f66db50a0a875e39 | /src/algebra/group_with_zero/basic.lean | 14e444c8de7e904b58eef962733db95a6ed216b8 | [
"Apache-2.0"
] | permissive | abentkamp/mathlib | d9a75d291ec09f4637b0f30cc3880ffb07549ee5 | 5360e476391508e092b5a1e5210bd0ed22dc0755 | refs/heads/master | 1,682,382,954,948 | 1,622,106,077,000 | 1,622,106,077,000 | 149,285,665 | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 39,786 | 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 logic.nontrivial
import algebra.group.units_hom
import algebra.group.inj_surj
import algebra.group_with_zero.defs
/-!
# Groups with an adjoined zero element
... |
c316c5a6b603b9af5e83ebada4b5a986fff973d0 | ddf69e0b8ad10bfd251aa1fb492bd92f064768ec | /src/measure_theory/integration.lean | 0631b10e8b2f64852ebb249c3928371e9a19a072 | [
"Apache-2.0"
] | permissive | MaboroshiChan/mathlib | db1c1982df384a2604b19a5e1f5c6464c7c76de1 | 7f74e6b35f6bac86b9218250e83441ac3e17264c | refs/heads/master | 1,671,993,587,476 | 1,601,911,102,000 | 1,601,911,102,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 68,439 | lean | /-
Copyright (c) 2018 Mario Carneiro. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Mario Carneiro, Johannes Hölzl
-/
import measure_theory.measure_space
import measure_theory.borel_space
import data.indicator_function
import data.support
/-!
# Lebesgue integral for ... |
2e18b9b7cc249fec1dfe1e4e62d84e9927e9200e | a4673261e60b025e2c8c825dfa4ab9108246c32e | /src/Lean/Util/Constructions.lean | c11f00d965508f1562a1a2da6fbc0102cc154644 | [
"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 | 2,051 | 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.Environment
import Lean.MonadEnv
namespace Lean
@[extern "lean_mk_cases_on"] constant mkCasesOnImp (env : Environment) (declName : @& Name) : ... |
3612c08b4b7871398e50b2eaf553d2feb5c3139c | c8af905dcd8475f414868d303b2eb0e9d3eb32f9 | /src/data/cpi/species/normalise_prime.lean | 51bfa107a3479b5ce9eacb6b559ef3d53961c1f9 | [
"BSD-3-Clause"
] | permissive | continuouspi/lean-cpi | 81480a13842d67ff5f3698643210d8ed5dd08de4 | 443bf2cb236feadc45a01387099c236ab2b78237 | refs/heads/master | 1,650,307,316,582 | 1,587,033,364,000 | 1,587,033,364,000 | 207,499,661 | 1 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 13,556 | lean | import data.cpi.species.normalise data.cpi.species.prime
namespace cpi
namespace species
namespace normalise
variables {ℍ : Type} {ω : context}
open_locale normalise
/-- Determine if normalising a species or choice yields a list of primes. Note
that choices are inherently prime. -/
@[reducible]
def to_kind' : ∀ ... |
232017edfcb59f286e4bea0e45eade059a78b28e | 63abd62053d479eae5abf4951554e1064a4c45b4 | /src/ring_theory/finiteness.lean | 3beaa19f0787364f3ee78a8c67d382d7b6cd0ab8 | [
"Apache-2.0"
] | permissive | Lix0120/mathlib | 0020745240315ed0e517cbf32e738d8f9811dd80 | e14c37827456fc6707f31b4d1d16f1f3a3205e91 | refs/heads/master | 1,673,102,855,024 | 1,604,151,044,000 | 1,604,151,044,000 | 308,930,245 | 0 | 0 | Apache-2.0 | 1,604,164,710,000 | 1,604,163,547,000 | null | UTF-8 | Lean | false | false | 8,061 | 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 ring_theory.noetherian
import ring_theory.ideal.operations
import ring_theory.algebra_tower
/-!
# Finiteness conditions in commutative algebra
In this file ... |
67d3c32b42d23e9e0266cce5b44b75862dea6228 | aa3f8992ef7806974bc1ffd468baa0c79f4d6643 | /tests/lean/run/fib_brec.lean | 71e53a5b4beb43fb250e42cd2e2113be9004c20c | [
"Apache-2.0"
] | permissive | codyroux/lean | 7f8dff750722c5382bdd0a9a9275dc4bb2c58dd3 | 0cca265db19f7296531e339192e9b9bae4a31f8b | refs/heads/master | 1,610,909,964,159 | 1,407,084,399,000 | 1,416,857,075,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 1,005 | lean | import data.nat.basic data.prod
open prod
namespace nat
definition brec_on {C : nat → Type} (n : nat) (F : Π (n : nat), @below C n → C n) : C n :=
have general : C n × @below C n, from
rec_on n
(pair (F zero unit.star) unit.star)
(λ (n₁ : nat) (r₁ : C n₁ × @below C n₁),
have b : @below C (... |
2799d4018e95e6efb0c02e97bd92115f63aec993 | 367134ba5a65885e863bdc4507601606690974c1 | /src/ring_theory/polynomial_algebra.lean | ecc3f1924995c3541fa0c0be1f827273b94db9b7 | [
"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 | 12,012 | 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 ring_theory.matrix_algebra
import data.polynomial.algebra_map
/-!
# Algebra isomorphism between matrices of polynomials and polynomials of matrices
Given `[c... |
8eb0baa4a35990b1b707c12ac48d4630bd0197c4 | 2a70b774d16dbdf5a533432ee0ebab6838df0948 | /_target/deps/mathlib/src/measure_theory/measurable_space.lean | 3f21eb22e5177d6643ca02110786faea4f89639f | [
"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 | 61,160 | lean | /-
Copyright (c) 2017 Johannes Hölzl. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Johannes Hölzl, Mario Carneiro
-/
import data.set.disjointed
import data.set.countable
import data.indicator_function
import data.equiv.encodable.lattice
import data.tprod
import order... |
5a4188c3ca359cb5ab654c59146066cdc8d6a0d8 | b7f22e51856f4989b970961f794f1c435f9b8f78 | /tests/lean/binder_overload.lean | 56266e0e56d3cf842fdc0555f44e4b59dda6af38 | [
"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 | 214 | lean | import data.set data.finset
open nat set finset
constant S : set nat
constant s : finset nat
check {x ∈ S | x > 0}
check {x ∈ s | x > 0}
set_option pp.all true
check {x ∈ S | x > 0}
check {x ∈ s | x > 0}
|
7bf7474f6a9724b51649dfc1d2981957ec2d0191 | a45212b1526d532e6e83c44ddca6a05795113ddc | /src/topology/metric_space/closeds.lean | 579f1b9ef6207c70f00a8ad7df3d5b6c92caa120 | [
"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 | 24,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 metric and emetric space structure on the types of closed subsets and nonempty compact
subsets of a metric or emetric space
The Hausdorff distance induces an e... |
34b9b24e2dd46bbb30a5d54bc916a2643cfe7c84 | 9dc8cecdf3c4634764a18254e94d43da07142918 | /src/category_theory/fin_category.lean | 6b3a84177886169b75316dd36723d24ecfb9964d | [
"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 | 4,253 | lean | /-
Copyright (c) 2019 Scott Morrison. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Scott Morrison
-/
import data.fintype.basic
import category_theory.discrete_category
import category_theory.opposites
import category_theory.category.ulift
/-!
# Finite categories
A ... |
71be29169b9f52449378a529c6c9714afefceb3e | 8cae430f0a71442d02dbb1cbb14073b31048e4b0 | /src/algebra/order/monoid/with_zero/basic.lean | 730b921ca272223511dc54b9a8d8f092b36e40d5 | [
"Apache-2.0"
] | permissive | leanprover-community/mathlib | 56a2cadd17ac88caf4ece0a775932fa26327ba0e | 442a83d738cb208d3600056c489be16900ba701d | refs/heads/master | 1,693,584,102,358 | 1,693,471,902,000 | 1,693,471,902,000 | 97,922,418 | 1,595 | 352 | Apache-2.0 | 1,694,693,445,000 | 1,500,624,130,000 | Lean | UTF-8 | Lean | false | false | 1,190 | lean | /-
Copyright (c) 2016 Jeremy Avigad. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Jeremy Avigad, Leonardo de Moura, Mario Carneiro, Johannes Hölzl
-/
import algebra.order.monoid.with_zero.defs
import algebra.group_with_zero.basic
/-!
# An instance orphaned from `alg... |
c75f873f7804d42fa5877e48e496846158c0d562 | 74addaa0e41490cbaf2abd313a764c96df57b05d | /Mathlib/ring_theory/discrete_valuation_ring_auto.lean | ca606fd0578b03002e9166bd3d8ae411fd3b52d2 | [] | 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 | 8,904 | lean | /-
Copyright (c) 2020 Kevin Buzzard. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Kevin Buzzard
-/
import Mathlib.PrePort
import Mathlib.Lean3Lib.init.default
import Mathlib.ring_theory.principal_ideal_domain
import Mathlib.order.conditionally_complete_lattice
import... |
0ef6702df0dc2e5b432259a3f7d966eb9168f93e | 6432ea7a083ff6ba21ea17af9ee47b9c371760f7 | /tests/lean/run/appIssue.lean | 32585c8a215dc2a23072379acb356d3872c03c03 | [
"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 | 652 | lean | instance {α : Type u} {β : Type v} [LE β] : LE (α → β) where
le f g := ∀ i, f i ≤ g i
class LE_trans (α : Type u) extends LE α where
le_trans : ∀ {a b c : α}, a ≤ b → b ≤ c → a ≤ c
export LE_trans (le_trans)
instance {α : Type u} {β : Type v} [LE_trans β] : LE_trans (α → β) where
le_trans h₁ h₂ i := le_trans ... |
cc75e5952e80c1289c1ad0c46494d4a00cddfdc7 | 74addaa0e41490cbaf2abd313a764c96df57b05d | /Mathlib/data/multiset/nodup.lean | 04d5e777e91bf8a7b6a06226ef0bc778f3518ae9 | [] | 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,298 | lean | /-
Copyright (c) 2015 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Author: Mario Carneiro
-/
import Mathlib.PrePort
import Mathlib.Lean3Lib.init.default
import Mathlib.data.multiset.powerset
import Mathlib.data.multiset.range
import Mathlib.PostPort
un... |
ac70999c6290dc4a1986b3bc419df2a451ba84ea | 8f0ea954c1cc4f4cda83826954d6186c68fc9536 | /hott/cubical/square.hlean | b6a859d4539209aee67c2a87a4cb35398f8e1ea7 | [
"Apache-2.0"
] | permissive | piyush-kurur/lean | fb3cbd339dfa8c70c49559fbea88ac0d3102b8ca | a8db8bc61a0b00379b3d0be8ecaf0d0858dc82ee | refs/heads/master | 1,594,387,140,961 | 1,457,548,608,000 | 1,457,909,538,000 | 53,615,930 | 0 | 0 | null | 1,457,642,939,000 | 1,457,642,939,000 | null | UTF-8 | Lean | false | false | 28,949 | hlean | /-
Copyright (c) 2015 Floris van Doorn. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Floris van Doorn, Jakob von Raumer
Squares in a type
-/
import types.eq
open eq equiv is_equiv sigma
namespace eq
variables {A B : Type} {a a' a'' a₀₀ a₂₀ a₄₀ a₀₂ a₂₂ a₂₄ a₀₄ a₄... |
58ccc5c4bb4bd125b4127f9892f269ea6e4f2ed7 | 77c5b91fae1b966ddd1db969ba37b6f0e4901e88 | /src/data/multiset/basic.lean | f1e98899ae64ac6c288f8901f7af6c94df4ed1e2 | [
"Apache-2.0"
] | permissive | dexmagic/mathlib | ff48eefc56e2412429b31d4fddd41a976eb287ce | 7a5d15a955a92a90e1d398b2281916b9c41270b2 | refs/heads/master | 1,693,481,322,046 | 1,633,360,193,000 | 1,633,360,193,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 106,387 | lean | /-
Copyright (c) 2015 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Mario Carneiro
-/
import data.list.perm
/-!
# Multisets
These are implemented as the quotient of a list by permutations.
## Notation
We define the global infix notation `::ₘ` f... |
a222ce429e1d60016a737d55569719bab544bfb3 | d406927ab5617694ec9ea7001f101b7c9e3d9702 | /src/algebra/ring/regular.lean | 992b03b2c72c0f77f4588dc36bdb80028cab363d | [
"Apache-2.0"
] | permissive | alreadydone/mathlib | dc0be621c6c8208c581f5170a8216c5ba6721927 | c982179ec21091d3e102d8a5d9f5fe06c8fafb73 | refs/heads/master | 1,685,523,275,196 | 1,670,184,141,000 | 1,670,184,141,000 | 287,574,545 | 0 | 0 | Apache-2.0 | 1,670,290,714,000 | 1,597,421,623,000 | Lean | UTF-8 | Lean | false | false | 3,402 | 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, Yury Kudryashov, Neil Strickland
-/
import algebra.regular.basic
import algebra.ring.defs
/-!
# Lemmas about regular elements in rin... |
103446a6204479e0e7c98da2a9e29de2a50b8efe | d406927ab5617694ec9ea7001f101b7c9e3d9702 | /src/combinatorics/young/young_diagram.lean | 5cc19d6b5eaceac01e97f5124f47c80d303b4b1f | [
"Apache-2.0"
] | permissive | alreadydone/mathlib | dc0be621c6c8208c581f5170a8216c5ba6721927 | c982179ec21091d3e102d8a5d9f5fe06c8fafb73 | refs/heads/master | 1,685,523,275,196 | 1,670,184,141,000 | 1,670,184,141,000 | 287,574,545 | 0 | 0 | Apache-2.0 | 1,670,290,714,000 | 1,597,421,623,000 | Lean | UTF-8 | Lean | false | false | 16,570 | lean | /-
Copyright (c) 2022 Jake Levinson. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Jake Levinson
-/
import order.upper_lower
import data.finset.preimage
/-!
# Young diagrams
A Young diagram is a finite set of up-left justified boxes:
```text
□□□□□
□□□
□□□
□
```
Thi... |
60fa40040f1faf17eaf5c85c32634bfb008a8515 | acc85b4be2c618b11fc7cb3005521ae6858a8d07 | /data/int/basic.lean | 7806ff8f966e1a10cb03103a409df7fa9146c260 | [
"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 | 32,773 | lean | /-
Copyright (c) 2016 Jeremy Avigad. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Jeremy Avigad
The integers, with addition, multiplication, and subtraction.
-/
import data.nat.basic algebra.functions
open nat
namespace int
instance : inhabited ℤ := ⟨0⟩
meta insta... |
3df87fe883b093c0482af8c6f124a90400bca31a | 5e3548e65f2c037cb94cd5524c90c623fbd6d46a | /src_icannos_totilas/aops/2014-USAMO-Problem_2.lean | 2b0648360559381273aec7c770c13ecc3ba6b40f | [] | no_license | ahayat16/lean_exos | d4f08c30adb601a06511a71b5ffb4d22d12ef77f | 682f2552d5b04a8c8eb9e4ab15f875a91b03845c | refs/heads/main | 1,693,101,073,585 | 1,636,479,336,000 | 1,636,479,336,000 | 415,000,441 | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 233 | lean | import data.nat.basic
theorem USAMO_Problem_2_2014 (f : ℤ -> ℤ):
(∀ x y : ℤ, (x≠0) → (x*f(2*f(y)-x) + (y^2)*f(2*x-f(y)) = f(x)^2 / x + f(y*f(y))) ) →
((∀ x : ℤ, f(x)= x^2) ∨ (∀ x : ℤ, f(x) = 0))
:= sorry |
0c754599a9fe14809b0ba8044ae975a6175a9137 | 63abd62053d479eae5abf4951554e1064a4c45b4 | /src/data/seq/seq.lean | 9b5fbd316b9b1a1b6329e50147e38e0fa1a9cd78 | [
"Apache-2.0"
] | permissive | Lix0120/mathlib | 0020745240315ed0e517cbf32e738d8f9811dd80 | e14c37827456fc6707f31b4d1d16f1f3a3205e91 | refs/heads/master | 1,673,102,855,024 | 1,604,151,044,000 | 1,604,151,044,000 | 308,930,245 | 0 | 0 | Apache-2.0 | 1,604,164,710,000 | 1,604,163,547,000 | null | UTF-8 | Lean | false | false | 28,502 | lean | /-
Copyright (c) 2017 Mario Carneiro. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Author: Mario Carneiro
-/
import data.list.basic
import data.stream
import data.lazy_list
import data.seq.computation
universes u v w
/-
coinductive seq (α : Type u) : Type u
| nil : seq α
| ... |
5ce06a59fb8ce44f95e8622e5e5d19da799820ab | 74addaa0e41490cbaf2abd313a764c96df57b05d | /Mathlib/data/num/lemmas_auto.lean | ff8956e25ce769f657dea8dc5b350bb3a0a7c11e | [] | 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 | 32,805 | lean | /-
Copyright (c) 2014 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Author: Mario Carneiro
-/
import Mathlib.PrePort
import Mathlib.Lean3Lib.init.default
import Mathlib.data.num.bitwise
import Mathlib.data.int.char_zero
import Mathlib.data.nat.gcd
import... |
8ebe4dbd23c05fab3595d1393c99931c4956ef4c | 649957717d58c43b5d8d200da34bf374293fe739 | /src/tactic/interactive.lean | 1fde64396064e19165ec508866a1dcb26aabe888 | [
"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 | 23,527 | 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, Sebastien Gouezel, Scott Morrison
-/
import tactic.core data.list.defs
open lean
open lean.parser
local postfix `?`:9001 := optional
local postfix *:900... |
3e96ab85b1f1f828db7bf0f972014b956a186e2c | 74addaa0e41490cbaf2abd313a764c96df57b05d | /Mathlib/data/nat/factorial_auto.lean | 2085b77335e3b16ecc6aa8edd487d8a6d8af9089 | [] | 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,962 | 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
-/
import Mathlib.PrePort
import Mathlib.Lean3Lib.init.default
import Mathlib.data.nat.basic
import Mathlib.PostPort
namespace Mathlib
... |
03e5e419362495a31871b0aa2c4b8d775ef8af7f | 57aec6ee746bc7e3a3dd5e767e53bd95beb82f6d | /src/Lean/Compiler/IR.lean | 8a1dbbaec8c595a2de0c34bd348ed4581c09e244 | [
"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 | 2,760 | lean | /-
Copyright (c) 2019 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Leonardo de Moura
-/
import Lean.Compiler.IR.Basic
import Lean.Compiler.IR.Format
import Lean.Compiler.IR.CompilerM
import Lean.Compiler.IR.PushProj
import Lean.Compiler.IR.Elim... |
751e66a8a57bc59adb0a06c8773a90309e3db995 | fa02ed5a3c9c0adee3c26887a16855e7841c668b | /src/algebra/category/Module/monoidal.lean | e01c95f1095b9cd19cd9f9a67de07e92dc7c31ae | [
"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,934 | lean | /-
Copyright (c) 2020 Scott Morrison. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Kevin Buzzard, Scott Morrison
-/
import category_theory.monoidal.braided
import algebra.category.Module.basic
import linear_algebra.tensor_product
/-!
# The symmetric monoidal categor... |
2d8184cef940879d37898e28046186bca8a5b173 | d406927ab5617694ec9ea7001f101b7c9e3d9702 | /src/data/fintype/perm.lean | a535e13efeee7b036f7d509df87f751ab2428705 | [
"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,367 | 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 group_theory.perm.basic
/-!
# fintype instances for `equiv` and `perm`
Main declarations:
* `perms_of_finset s`: The finset of permu... |
3e4659b9f719045efacdc9c1487c780843609318 | 6432ea7a083ff6ba21ea17af9ee47b9c371760f7 | /tests/lean/run/returnOptIssue.lean | fef918ca7949b09f58e7f0d534efe5ec2dd8b250 | [
"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 | 101 | lean |
def f (x : Nat) : IO Unit := do
if x > 10 then
return
throw $ IO.userError "x ≤ 10"
#eval f 11
|
a3badfb126b07b2635f5206e394b9bc8a201e528 | 957a80ea22c5abb4f4670b250d55534d9db99108 | /tests/lean/run/heap.lean | 25a6d10d06ce2baf7cb4af44d1a0bd2ad7c76eb9 | [
"Apache-2.0"
] | permissive | GaloisInc/lean | aa1e64d604051e602fcf4610061314b9a37ab8cd | f1ec117a24459b59c6ff9e56a1d09d9e9e60a6c0 | refs/heads/master | 1,592,202,909,807 | 1,504,624,387,000 | 1,504,624,387,000 | 75,319,626 | 2 | 1 | Apache-2.0 | 1,539,290,164,000 | 1,480,616,104,000 | C++ | UTF-8 | Lean | false | false | 1,062 | lean | constant heap : Type
constant ptr : Type
constant val : Type
constant pt : ptr → val → heap
constant hunion : heap → heap → heap
constant is_def : heap → Prop
infix `∙`:60 := hunion
infix `↣`:70 := pt
/-
constant hunion_is_assoc : is_associative heap hunion
constant hunion_is_comm : is_commutative heap h... |
9342f93c7a775b51284ffd0783969c3648d9f615 | 1a61aba1b67cddccce19532a9596efe44be4285f | /hott/hit/sphere.hlean | 8fa9bb2afe81a0eaf25e042ca8916b369f4a2e08 | [
"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 | 6,459 | hlean | /-
Copyright (c) 2015 Floris van Doorn. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Floris van Doorn
Declaration of the n-spheres
-/
import .susp types.trunc
open eq nat susp bool is_trunc unit pointed
/-
We can define spheres with the following possible indic... |
8349937cc34b7ca8452f45a1466bfe0ccc49edc7 | 3dd1b66af77106badae6edb1c4dea91a146ead30 | /library/standard/hilbert.lean | 1f71beb91b7e6c59000f723d28620a9b9e8921f9 | [
"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,136 | 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
import logic
variable epsilon {A : Type} {H : inhabited A} (P : A → Prop) : A
axiom epsilon_ax {A : Type} {P : A → Prop} (Hex : ∃ a, P a) : P (@epsilon A... |
0f1d1be7f855ea5e7d27628ea7e43bc11d73c49f | 947fa6c38e48771ae886239b4edce6db6e18d0fb | /src/analysis/inner_product_space/rayleigh.lean | 366e4496155be64533756a47e86743a195388baf | [
"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 | 12,245 | lean | /-
Copyright (c) 2021 Heather Macbeth. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Heather Macbeth, Frédéric Dupuis
-/
import analysis.inner_product_space.calculus
import analysis.inner_product_space.dual
import analysis.inner_product_space.adjoint
import analysis.c... |
671837c4d4c6d13bdbfb31dcaa2f0075c1b93562 | c777c32c8e484e195053731103c5e52af26a25d1 | /src/data/finset/lattice.lean | 208cbac617b55a9c2aa0cc291785d08fce11c7eb | [
"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 | 68,328 | lean | /-
Copyright (c) 2018 Mario Carneiro. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Mario Carneiro
-/
import data.finset.fold
import data.finset.option
import data.finset.pi
import data.finset.prod
import data.multiset.lattice
import order.complete_lattice
import orde... |
176739e0f48f593f457f95c9c4fc78e1b3485979 | 6fca17f8d5025f89be1b2d9d15c9e0c4b4900cbf | /src/game/world4/level7.lean | 9633b2735f2309f28296c38b624ad0679ea15d44 | [
"Apache-2.0"
] | permissive | arolihas/natural_number_game | 4f0c93feefec93b8824b2b96adff8b702b8b43ce | 8e4f7b4b42888a3b77429f90cce16292bd288138 | refs/heads/master | 1,621,872,426,808 | 1,586,270,467,000 | 1,586,270,467,000 | 253,648,466 | 0 | 0 | null | 1,586,219,694,000 | 1,586,219,694,000 | null | UTF-8 | Lean | false | false | 683 | lean | import game.world4.level6 -- hide
namespace mynat -- hide
/-
# Power World
## Level 7: `pow_pow`
-/
/-
Boss level! What will the collectible be?
-/
/- Lemma
For all naturals $a$, $m$, $n$, we have $(a ^ m) ^ n = a ^ {mn}$.
-/
lemma pow_pow (a m n : mynat) : (a ^ m) ^ n = a ^ (m * n) :=
begin [nat_num_game]
end... |
2569491f4c47d7e3a58ca2f82eb55bda8e7ae93b | 8cae430f0a71442d02dbb1cbb14073b31048e4b0 | /src/data/dlist/instances.lean | 62d1d97465dfa12fc4765cb58157de14f992943c | [
"Apache-2.0"
] | permissive | leanprover-community/mathlib | 56a2cadd17ac88caf4ece0a775932fa26327ba0e | 442a83d738cb208d3600056c489be16900ba701d | refs/heads/master | 1,693,584,102,358 | 1,693,471,902,000 | 1,693,471,902,000 | 97,922,418 | 1,595 | 352 | Apache-2.0 | 1,694,693,445,000 | 1,500,624,130,000 | Lean | UTF-8 | Lean | false | false | 1,074 | 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 control.traversable.equiv
import control.traversable.instances
/-!
# Traversable instance for dlists
> THIS FILE IS SYNCHRONIZED WITH MATHLIB4.
> Any changes to th... |
fae8274e73f991c1ed7a895af09667478e68dc40 | b2e508d02500f1512e1618150413e6be69d9db10 | /src/category_theory/limits/limits.lean | ecd18d3af52ccbbe659433d54225b52bb18191a5 | [
"Apache-2.0"
] | permissive | callum-sutton/mathlib | c3788f90216e9cd43eeffcb9f8c9f959b3b01771 | afd623825a3ac6bfbcc675a9b023edad3f069e89 | refs/heads/master | 1,591,371,888,053 | 1,560,990,690,000 | 1,560,990,690,000 | 192,476,045 | 0 | 0 | Apache-2.0 | 1,568,941,843,000 | 1,560,837,965,000 | Lean | UTF-8 | Lean | false | false | 31,190 | 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, Floris van Doorn
import category_theory.whiskering
import category_theory.yoneda
import category_theory.limits.cones
import category... |
4f5fb4566b838739578b8eb4eacf52781125ac5a | a9d0fb7b0e4f802bd3857b803e6c5c23d87fef91 | /tests/lean/run/vector3.lean | ebf572a7b938b532f9306c5a44fedff537e02680 | [
"Apache-2.0"
] | permissive | soonhokong/lean-osx | 4a954262c780e404c1369d6c06516161d07fcb40 | 3670278342d2f4faa49d95b46d86642d7875b47c | refs/heads/master | 1,611,410,334,552 | 1,474,425,686,000 | 1,474,425,686,000 | 12,043,103 | 5 | 1 | null | null | null | null | UTF-8 | Lean | false | false | 545 | lean | open nat
inductive vector (A : Type) : nat → Type
| vnil : vector nat.zero
| vcons : Π {n : nat}, A → vector n → vector (succ n)
namespace vector
theorem vcons.inj₁ {A : Type} {n : nat} (a₁ a₂ : A) (v₁ v₂ : vector A n) : vcons a₁ v₁ = vcons a₂ v₂ → a₁ = a₂ :=
assume h, vector.no_confusion h (λ n h t, h)
theor... |
e90bd1625ba4b896810c5a8ce38d4ecfb968d142 | 9dc8cecdf3c4634764a18254e94d43da07142918 | /src/data/finsupp/pointwise.lean | 97a3152677396bf37825a6b432f2c66463a39f48 | [
"Apache-2.0"
] | permissive | jcommelin/mathlib | d8456447c36c176e14d96d9e76f39841f69d2d9b | ee8279351a2e434c2852345c51b728d22af5a156 | refs/heads/master | 1,664,782,136,488 | 1,663,638,983,000 | 1,663,638,983,000 | 132,563,656 | 0 | 0 | Apache-2.0 | 1,663,599,929,000 | 1,525,760,539,000 | Lean | UTF-8 | Lean | false | false | 3,753 | 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 data.finsupp.defs
/-!
# The pointwise product on `finsupp`.
For the convolution product on `finsupp` when the domain has a binary operation,
see the type syn... |
c5c25b5c6ab9aee66337fb42dc576e54b9d78408 | 80cc5bf14c8ea85ff340d1d747a127dcadeb966f | /src/set_theory/cardinal_ordinal.lean | f8dc085297653f20583b2ae1d0af62b0a9cf7540 | [
"Apache-2.0"
] | permissive | lacker/mathlib | f2439c743c4f8eb413ec589430c82d0f73b2d539 | ddf7563ac69d42cfa4a1bfe41db1fed521bd795f | refs/heads/master | 1,671,948,326,773 | 1,601,479,268,000 | 1,601,479,268,000 | 298,686,743 | 0 | 0 | Apache-2.0 | 1,601,070,794,000 | 1,601,070,794,000 | null | UTF-8 | Lean | false | false | 35,696 | 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, Mario Carneiro
-/
import set_theory.ordinal_arithmetic
import tactic.omega
/-!
# Cardinals and ordinals
Relationships between cardinals and ordinals, properties of ca... |
545209735826d2b1eb0e137107a8144c35cf987a | 94e33a31faa76775069b071adea97e86e218a8ee | /src/algebra/order/complete_field.lean | cfbffd072e5902548ff98a5ea22d5cbddde395e3 | [
"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 | 12,550 | lean | /-
Copyright (c) 2022 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.order.hom.ring
import algebra.order.pointwise
import analysis.special_functions.pow
/-!
# Conditionally complete linear ordered fields
This... |
d531a68b069fe58732f06e3ad52c5f0044519179 | 297c4ceafbbaed2a59b6215504d09e6bf201a2ee | /card.lean | 6b794d60328d65db11cd8f4013769b81057ce40f | [] | no_license | minchaowu/Kruskal.lean3 | 559c91b82033ce44ea61593adcec9cfff725c88d | a14516f47b21e636e9df914fc6ebe64cbe5cd38d | refs/heads/master | 1,611,010,001,429 | 1,497,935,421,000 | 1,497,935,421,000 | 82,000,982 | 1 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 2,338 | lean | import .finset.to_set .finite data.set
open nat classical
namespace set
variable {A : Type}
noncomputable definition card (s : set A) := finset.card (set.to_finset s)
theorem card_to_set (s : finset A) : card (finset.to_set s) = finset.card s :=
by simp [card, (to_finset_to_set s)]
theorem card_of_not_finite {s :... |
06981ca4936e00ad4a52eca4467d299a9586e0c9 | c777c32c8e484e195053731103c5e52af26a25d1 | /src/measure_theory/covering/besicovitch.lean | 9776ab4c2b7f31475419f260767c805919a23d9a | [
"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 | 60,241 | 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.covering.differentiation
import measure_theory.covering.vitali_family
import measure_theory.integral.lebesgue
import measure_theory.measur... |
cfa1077f241d77dcfecec42d9b46429b9fa2f89e | e00ea76a720126cf9f6d732ad6216b5b824d20a7 | /src/algebra/category/Mon/basic.lean | 97e6b8cdc7db00d120c4cf926884525f6376dcaa | [
"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 | 7,092 | lean | /-
Copyright (c) 2018 Scott Morrison. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Scott Morrison
-/
import category_theory.concrete_category
import algebra.group.hom
import data.equiv.mul_add
import algebra.punit_instances
/-!
# Category instances for monoid, add_... |
44c2c184536922eb9a799414abcebcb7fb4922e1 | 4727251e0cd73359b15b664c3170e5d754078599 | /src/logic/encodable/small.lean | 109d69d35ef6db99c404daf379334f6e25692e39 | [
"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 | 466 | lean | /-
Copyright (c) 2021 Scott Morrison. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Scott Morrison
-/
import logic.encodable.basic
import logic.small
/-!
# All encodable types are small.
That is, any encodable type is equivalent to a type in any universe.
-/
univer... |
012013224001ef2f2c4cba042a1ad1f8cdc46177 | 4727251e0cd73359b15b664c3170e5d754078599 | /src/data/finset/interval.lean | 6d6db2e17a73d98f007742fd740a8884ec0843bd | [
"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,621 | 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
-/
import data.finset.locally_finite
/-!
# Intervals of finsets as finsets
This file provides the `locally_finite_order` instance for `finset α` and calculates the cardina... |
dfc8c66ad76cd4cf5a5a1c97c31a3928ab25d7af | 94e33a31faa76775069b071adea97e86e218a8ee | /src/group_theory/monoid_localization.lean | 3b6394173eb0e339d22f11dd2da7cfa9313bd345 | [
"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 | 67,359 | 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.membership
import algebra.group.units
/-!
# Localizations of commutative monoids
Localizing a com... |
0d7f5bd0b7694f1694fad91c39cf415b603d1276 | 4d2583807a5ac6caaffd3d7a5f646d61ca85d532 | /src/linear_algebra/eigenspace.lean | 089604a761de21f1c741d3ba096ee99f1631decc | [
"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 | 28,429 | lean | /-
Copyright (c) 2020 Alexander Bentkamp. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Alexander Bentkamp
-/
import field_theory.is_alg_closed.basic
import linear_algebra.finsupp
import linear_algebra.matrix.to_lin
import order.preorder_hom
import linear_algebra.cha... |
f5e8c4c936a15bc4127f2529fd65a6c3a1b6c617 | 4727251e0cd73359b15b664c3170e5d754078599 | /test/norm_num.lean | 0624fd511fcb703099c82be4b54708ba9f025382 | [
"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 | 13,315 | lean | /-
Copyright (c) 2017 Simon Hudon All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Simon Hudon, Mario Carneiro
-/
import tactic.norm_num
/-!
# Tests for `norm_num` extensions
-/
constant real : Type
notation `ℝ` := real
@[instance] constant real.linear_ordered_ring : ... |
bc2348f42afc0cebc8c1214306fd48ff96a65079 | e0f9ba56b7fedc16ef8697f6caeef5898b435143 | /src/set_theory/ordinal_notation.lean | b92e4d30ad00ffe20f04ab40125dc13f6b93d2cb | [
"Apache-2.0"
] | permissive | anrddh/mathlib | 6a374da53c7e3a35cb0298b0cd67824efef362b4 | a4266a01d2dcb10de19369307c986d038c7bb6a6 | refs/heads/master | 1,656,710,827,909 | 1,589,560,456,000 | 1,589,560,456,000 | 264,271,800 | 0 | 0 | Apache-2.0 | 1,589,568,062,000 | 1,589,568,061,000 | null | UTF-8 | Lean | false | false | 35,817 | lean | /-
Copyright (c) 2018 Mario Carneiro. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Author: Mario Carneiro
Ordinal notations (constructive ordinal arithmetic for ordinals < ε₀).
-/
import set_theory.ordinal
open ordinal
open_locale ordinal -- get notation for `ω`
/-- Recursi... |
2d0d08803695f4af8e325da8e0ed568d4f2faa0c | 5883d9218e6f144e20eee6ca1dab8529fa1a97c0 | /src/exp/subst/update.lean | b649d13871e5f58f268f6d38d1116410aef5000d | [] | 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 | 2,255 | lean | /-
This files defines the `subst.update` definition and theorems.
-/
import .type
import exp.map
namespace acie -----------------------------------------------------------------
namespace exp ------------------------------------------------------------------
namespace subst -----------------------------------------... |
bfaecd745f475a36a83a47fe1a8d24c6d9ba0dbd | 74addaa0e41490cbaf2abd313a764c96df57b05d | /Mathlib/ring_theory/valuation/integers.lean | e43509f0dd65208145c0c9f623fdba1bd3d5b9d5 | [] | 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 | 3,910 | 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 Mathlib.PrePort
import Mathlib.Lean3Lib.init.default
import Mathlib.ring_theory.valuation.basic
import Mathlib.PostPort
universes u v w l
namespace Mathlib
/-!
# Rin... |
dcd3b5be5bf99c198378f7fe189b7482251179d5 | 32025d5c2d6e33ad3b6dd8a3c91e1e838066a7f7 | /src/Lean/Parser/Extension.lean | ef5f5c232fc7db2ac30ee3906907712f0d1b27fa | [
"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 | 22,656 | 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
-/
/-! Extensible parsing via attributes -/
import Lean.Parser.Basic
import Lean.KeyedDeclsAttribute
namespace Lean
namespace Parser
def... |
34c9198a477b631b7667fe9fa9894c0630273483 | bb31430994044506fa42fd667e2d556327e18dfe | /src/algebra/group_ring_action/invariant.lean | f0f9a7d16a4a6b6259b98b220078d3cf06432e43 | [
"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 | 1,670 | lean | /-
Copyright (c) 2021 Eric Wieser. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Eric Wieser
-/
import algebra.hom.group_action
import ring_theory.subring.pointwise
/-! # Subrings invariant under an action -/
section ring
variables (M R : Type*) [monoid M] [ring R] ... |
64496dd2f7a42ab32c43a398b7eeb82aeb5c6be0 | 3446e92e64a5de7ed1f2109cfb024f83cd904c34 | /src/game/world2/level6.lean | 2c841a98dbfc1fcfd538af93babc6b75b2c0e66a | [] | no_license | kckennylau/natural_number_game | 019f4a5f419c9681e65234ecd124c564f9a0a246 | ad8c0adaa725975be8a9f978c8494a39311029be | refs/heads/master | 1,598,784,137,722 | 1,571,905,156,000 | 1,571,905,156,000 | 218,354,686 | 0 | 0 | null | 1,572,373,319,000 | 1,572,373,318,000 | null | UTF-8 | Lean | false | false | 2,381 | lean | import mynat.definition -- hide
import mynat.add -- hide
import game.world2.level5 -- hide
namespace mynat -- hide
/-
# World 2 -- Addition World
## Level 6 -- `add_right_comm`
You have (amongst other things these:
* `add_assoc : ∀ a b c : mynat, (a + b) + c = a + (b + c)`
* `add_comm : ∀ a b : mynat, a + b = ... |
d7f6666d726807fd75c27803af13ca01d3610fcb | 4727251e0cd73359b15b664c3170e5d754078599 | /src/category_theory/limits/opposites.lean | e36b935129dfa3922a3634394e67e1080dc34483 | [
"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 | 13,775 | lean | /-
Copyright (c) 2019 Scott Morrison. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Scott Morrison, Floris van Doorn
-/
import category_theory.limits.shapes.finite_products
import category_theory.discrete_category
/-!
# Limits in `C` give colimits in `Cᵒᵖ`.
We also ... |
9ebaca31c5fb092e65ad3a6d6a2bb379f4836929 | 57c233acf9386e610d99ed20ef139c5f97504ba3 | /src/data/hash_map.lean | 22e80350956682ee9c5bfb3a89f109ba3a655adf | [
"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 | 29,590 | lean | /-
Copyright (c) 2017 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Leonardo de Moura, Mario Carneiro
-/
import data.array.lemmas
import data.list.join
import data.list.range
import data.pnat.basic
/-!
# Hash maps
Defines a hash map data struc... |
63da1b2a76485bb23c0bded9efb2b6395d517abb | 4d3f29a7b2eff44af8fd0d3176232e039acb9ee3 | /LAMR/Examples/using_sat_solvers/examples.lean | 0a44bd9d0c3cafebd95a744157c52bea6362613d | [] | no_license | marijnheule/lamr | 5fc5d69d326ff92e321242cfd7f72e78d7f99d7e | 28cc4114c7361059bb54f407fa312bf38b48728b | refs/heads/main | 1,689,338,013,620 | 1,630,359,632,000 | 1,630,359,632,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 483 | lean | import LAMR.Util.Propositional
def exCnf0 := cnf!{
p,
-p q -r,
-p q
}
def exCnf1 := cnf!{
p -q,
p q,
-p -r,
-p r
}
def exCnf2 := cnf!{
p q,
-p,
-q
}
/-
Examples of use of Cadical.
-/
-- textbook: SAT example
def cadicalExample : IO Unit := do
let (s, result) ← callCadical exCnf0
IO.println ... |
7cbbe13cf710bfc08c21245b2286d079a37d6a44 | 4bcaca5dc83d49803f72b7b5920b75b6e7d9de2d | /src/Leanpkg.lean | 3be55008de04ff664a156d214bad8ff979f277a0 | [
"Apache-2.0"
] | permissive | subfish-zhou/leanprover-zh_CN.github.io | 30b9fba9bd790720bd95764e61ae796697d2f603 | 8b2985d4a3d458ceda9361ac454c28168d920d3f | refs/heads/master | 1,689,709,967,820 | 1,632,503,056,000 | 1,632,503,056,000 | 409,962,097 | 1 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 8,924 | lean | /-
Copyright (c) 2017 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Gabriel Ebner, Sebastian Ullrich
-/
import Leanpkg.Resolve
import Leanpkg.Git
import Leanpkg.Build
open System
namespace Leanpkg
def readManifest : IO Manifest := do
let m ... |
0849667ea5f394cb6b978d9abd989e04b544f28b | df7bb3acd9623e489e95e85d0bc55590ab0bc393 | /lean/love06_monads_exercise_sheet.lean | 1a5060edf2b9e56c4833c94608a7177530726d84 | [] | no_license | MaschavanderMarel/logical_verification_2020 | a41c210b9237c56cb35f6cd399e3ac2fe42e775d | 7d562ef174cc6578ca6013f74db336480470b708 | refs/heads/master | 1,692,144,223,196 | 1,634,661,675,000 | 1,634,661,675,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 6,234 | lean | import .love06_monads_demo
/- # LoVe Exercise 6: Monads -/
set_option pp.beta true
set_option pp.generalized_field_notation false
namespace LoVe
/- ## Question 1: A State Monad with Failure
We introduce a richer notion of lawful monad that provides an `orelse`
operator `<|>` satisfying some laws, given below. `... |
25dec9f4e0f118843410c606f3d98f55e7bcf2a7 | 86f6f4f8d827a196a32bfc646234b73328aeb306 | /examples/basics/unnamed_255.lean | 3717bfac78ab30f377685a746fa6e12f46a579e0 | [] | 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 | 246 | lean | import data.real.basic
-- BEGIN
section
variables a b c : ℝ
#check a
#check a + b
#check (a : ℝ)
#check mul_comm a b
#check (mul_comm a b : a * b = b * a)
#check mul_assoc c a b
#check mul_comm a
#check mul_comm
#check @mul_comm
end
-- END |
52e95aa7f0b1bac658965b843276f39f5e6acb82 | 4727251e0cd73359b15b664c3170e5d754078599 | /src/analysis/convex/hull.lean | c1be4b97d039b6fc0b813aeea391a604bad00183 | [
"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,799 | lean | /-
Copyright (c) 2020 Yury Kudriashov. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Yury Kudriashov, Yaël Dillies
-/
import analysis.convex.basic
import order.closure
/-!
# Convex hull
This file defines the convex hull of a set `s` in a module. `convex_hull 𝕜 s` i... |
34322deef5d9b281f1f66daaba8963a4207c6778 | 35677d2df3f081738fa6b08138e03ee36bc33cad | /src/category_theory/sums/basic.lean | cb351d96c321e5be9458c1651a7e7b366eab8bae | [
"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 | 5,184 | lean | /-
Copyright (c) 2019 Scott Morrison. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Scott Morrison
-/
import category_theory.equivalence
import category_theory.eq_to_hom
/-#
Disjoint unions of categories, functors, and natural transformations.
-/
namespace category_... |
f5da7dc552a47b4985a4b8f4ba55d047227c9a61 | 1901b51268d21ec7361af7d3534abd9a8fa5cf52 | /src/graph_theory/to_mathlib.lean | 66668850f6b016adff9def2bf004e76970574970 | [] | no_license | vbeffara/lean | b9ea4107deeaca6f4da98e5de029b62e4861ab40 | 0004b1d502ac3f4ccd213dbd23589d4c4f9fece8 | refs/heads/main | 1,652,050,034,756 | 1,651,610,858,000 | 1,651,610,858,000 | 225,244,535 | 6 | 1 | null | null | null | null | UTF-8 | Lean | false | false | 560 | lean | import combinatorics.simple_graph.connectivity data.finset.basic
variables {V : Type*} {G : simple_graph V}
namespace finset
@[simp] lemma singleton_inter_nonempty [decidable_eq V] {a : V} {X : finset V} :
({a} ∩ X).nonempty ↔ a ∈ X :=
{ mp := not_not.mp ∘ mt singleton_inter_of_not_mem ∘ nonempty_iff_ne_empty.mp,
... |
6d9ccaeec4270abfd41ef599a1b5562ac6285cec | 8b147c3d61a55005ca839480a4045e69683f7655 | /dce.lean | 9ff6d82bd386297414fbf66949106e2d4808484c | [] | no_license | dselsam/unrealistic_compiler | ce69efac0d573642b67f44a63eb5f18cdf596b27 | 70514de492a6a1ed705ad247333ae5b3f8455a83 | refs/heads/master | 1,609,483,664,302 | 1,500,654,169,000 | 1,500,654,169,000 | 97,516,326 | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 14,354 | lean | import data.hash_map
universe u
namespace tactic
meta def at_target (tac : expr → tactic (expr × expr)) : tactic unit :=
do tgt ← target,
(new_tgt, pf) ← tac tgt,
n ← mk_fresh_name,
assert n new_tgt, swap,
ht ← get_local n,
mk_app `eq.mpr [pf, ht] >>= exact
meta def fsimpt (ns : list name... |
8d6f18a24496674a031b180155a18dcc020cd7f1 | 271e26e338b0c14544a889c31c30b39c989f2e0f | /tests/lean/run/typeclass_append.lean | 32a0c8814ab3c1cb456158e10f154c6727d9cf07 | [
"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 | 4,342 | lean | /-
Copyright (c) 2019 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Daniel Selsam
Performance test to ensure quadratic blowup is avoided.
-/
#exit
class Append {α : Type} (xs₁ xs₂ : List α) (out : outParam $ List α) : Type :=
(u : Unit := ())
... |
e89b98806bd3b68773f5a4c3f99af0c5afa166bd | 737dc4b96c97368cb66b925eeea3ab633ec3d702 | /stage0/src/Lean/Level.lean | 31aea81a6ef9e88d3f392ad8ae1fc6c99c751c32 | [
"Apache-2.0"
] | permissive | Bioye97/lean4 | 1ace34638efd9913dc5991443777b01a08983289 | bc3900cbb9adda83eed7e6affeaade7cfd07716d | refs/heads/master | 1,690,589,820,211 | 1,631,051,000,000 | 1,631,067,598,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 19,310 | lean | /-
Copyright (c) 2018 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Leonardo de Moura
-/
import Std.Data.HashMap
import Std.Data.HashSet
import Std.Data.PersistentHashMap
import Std.Data.PersistentHashSet
import Lean.Hygiene
import Lean.Data.Nam... |
f9304d948bbc64b9218b54fab9df7f9a44885f3a | 54d7e71c3616d331b2ec3845d31deb08f3ff1dea | /library/init/data/int/basic.lean | e3a2eef6b25a00f6b90652e375d19d3720d6643c | [
"Apache-2.0"
] | permissive | pachugupta/lean | 6f3305c4292288311cc4ab4550060b17d49ffb1d | 0d02136a09ac4cf27b5c88361750e38e1f485a1a | refs/heads/master | 1,611,110,653,606 | 1,493,130,117,000 | 1,493,167,649,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 13,722 | lean | /-
Copyright (c) 2016 Jeremy Avigad. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Jeremy Avigad
The integers, with addition, multiplication, and subtraction.
-/
prelude
import init.data.nat.lemmas init.meta.transfer
open nat
/- the type, coercions, and notation -/
... |
9df7fec7abaf002f5ec227114a70dfd27440a9d8 | fa02ed5a3c9c0adee3c26887a16855e7841c668b | /src/data/rat/denumerable.lean | ccc33d5296dd22f3424d642a0f15a7ec424efa02 | [
"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 | 1,192 | 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.rat
import set_theory.cardinal
/-!
# Denumerability of ℚ
This file proves that ℚ is infinite, denumerable, and deduces that it has cardinality `omega`.
-/
... |
c78d38e95b6c6f9404a61a52092600bf7d7f6db8 | 9dc8cecdf3c4634764a18254e94d43da07142918 | /src/data/finset/finsupp.lean | e786c717ad7bd77db8ed8a98c7ebbdbc6524847f | [
"Apache-2.0"
] | permissive | jcommelin/mathlib | d8456447c36c176e14d96d9e76f39841f69d2d9b | ee8279351a2e434c2852345c51b728d22af5a156 | refs/heads/master | 1,664,782,136,488 | 1,663,638,983,000 | 1,663,638,983,000 | 132,563,656 | 0 | 0 | Apache-2.0 | 1,663,599,929,000 | 1,525,760,539,000 | Lean | UTF-8 | Lean | false | false | 3,232 | lean | /-
Copyright (c) 2022 Yaël Dillies. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Yaël Dillies
-/
import algebra.big_operators.finsupp
import data.finset.pointwise
import data.finsupp.indicator
import data.fintype.card
/-!
# Finitely supported product of finsets
Thi... |
9fd8d9bc69bf37a97b36a9092bbdc9418ba6e030 | aa3f8992ef7806974bc1ffd468baa0c79f4d6643 | /library/data/empty.lean | e1fbcd9ada7869e7d269e7093c98e12fba8fd3e9 | [
"Apache-2.0"
] | permissive | codyroux/lean | 7f8dff750722c5382bdd0a9a9275dc4bb2c58dd3 | 0cca265db19f7296531e339192e9b9bae4a31f8b | refs/heads/master | 1,610,909,964,159 | 1,407,084,399,000 | 1,416,857,075,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 1,266 | lean | -- Copyright (c) 2014 Microsoft Corporation. All rights reserved.
-- Released under Apache 2.0 license as described in the file LICENSE.
-- Author: Jeremy Avigad, Floris van Doorn
-- Empty type
-- ----------
import logic.cast
inductive empty : Type
namespace empty
protected theorem elim (A : Type) (H : empty) : A... |
434e354934615621bd094379d3efa3334820470b | 4727251e0cd73359b15b664c3170e5d754078599 | /src/linear_algebra/finsupp_vector_space.lean | 4e820134ef5ea5ae03d22ef9a3060cd1ef817d9a | [
"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 | 7,393 | lean | /-
Copyright (c) 2019 Johannes Hölzl. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Johannes Hölzl
-/
import linear_algebra.dimension
import linear_algebra.finite_dimensional
import linear_algebra.std_basis
/-!
# Linear structures on function with finite support `ι ... |
bb8568bb1c878f6db088de64ccec6e6bdc5b6cd9 | 8cae430f0a71442d02dbb1cbb14073b31048e4b0 | /src/algebraic_geometry/Scheme.lean | 04f5850f5b0f00dc8e8a195a6df01951ef873a03 | [
"Apache-2.0"
] | permissive | leanprover-community/mathlib | 56a2cadd17ac88caf4ece0a775932fa26327ba0e | 442a83d738cb208d3600056c489be16900ba701d | refs/heads/master | 1,693,584,102,358 | 1,693,471,902,000 | 1,693,471,902,000 | 97,922,418 | 1,595 | 352 | Apache-2.0 | 1,694,693,445,000 | 1,500,624,130,000 | Lean | UTF-8 | Lean | false | false | 10,244 | 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 algebraic_geometry.Spec
import algebra.category.Ring.constructions
/-!
# The category of schemes
> THIS FILE IS SYNCHRONIZED WITH MATHLIB4.
> Any changes to ... |
c3602308bd82998b3940458df4866832aab750f0 | 19cc34575500ee2e3d4586c15544632aa07a8e66 | /src/algebra/monoid_algebra.lean | 8a9972254493384d53f78526a27c1ccaa17fb4ee | [
"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 | 29,093 | 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 G. Kudryashov, Scott Morrison
-/
import algebra.algebra.basic
/-!
# Monoid algebras
When the domain of a `finsupp` has a multiplicative or additive structure, we... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.