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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
da46db06f7fc56d2c88d83713cd213637503bfe9 | 32317185abf7e7c963f4c67c190aec61af6b3628 | /hott/algebra/category/functor/yoneda.hlean | 93b5958aed1dfd847e25b90839cd5875fe7ee674 | [
"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 | 5,961 | 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
Yoneda embedding and Yoneda lemma
-/
import .examples .attributes
open category eq functor prod.ops is_trunc iso is_equiv equiv category.set nat_trans lift
names... |
f427954796a115bf59e706af473e067ea0c586bf | c45b34bfd44d8607a2e8762c926e3cfaa7436201 | /uexp/src/uexp/rules/transitiveInferenceNoPullUpExprs.lean | da2d77c5fc6062e4c2ff683713fbee7ea0dc2b1c | [
"BSD-2-Clause"
] | permissive | Shamrock-Frost/Cosette | b477c442c07e45082348a145f19ebb35a7f29392 | 24cbc4adebf627f13f5eac878f04ffa20d1209af | refs/heads/master | 1,619,721,304,969 | 1,526,082,841,000 | 1,526,082,841,000 | 121,695,605 | 1 | 0 | null | 1,518,737,210,000 | 1,518,737,210,000 | null | UTF-8 | Lean | false | false | 2,535 | lean | import ..sql
import ..tactics
import ..u_semiring
import ..extra_constants
import ..ucongr
import ..TDP
open Expr
open Proj
open Pred
open SQL
open tree
open binary_operators
set_option profiler true
notation `int` := datatypes.int
variable integer_1: const datatypes.int
variable integer_7: const datatypes.int
vari... |
af2ba029a8975292062b9169a66b6a31bf62b763 | 94e33a31faa76775069b071adea97e86e218a8ee | /src/linear_algebra/dimension.lean | 4679c2385b1970760f15d4ba959e04b61f48b67c | [
"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 | 52,771 | 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, Sander Dahmen, Scott Morrison
-/
import linear_algebra.dfinsupp
import linear_algebra.invariant_basis_number
import linear_algebra.isomorphisms
import l... |
f9d780da177844437616c01b999e09131daebd52 | e6b8240a90527fd55d42d0ec6649253d5d0bd414 | /src/topology/metric_space/isometry.lean | 8b3548e103d5423d754e5bf5b66dfeffb1d3200d | [
"Apache-2.0"
] | permissive | mattearnshaw/mathlib | ac90f9fb8168aa642223bea3ffd0286b0cfde44f | d8dc1445cf8a8c74f8df60b9f7a1f5cf10946666 | refs/heads/master | 1,606,308,351,137 | 1,576,594,130,000 | 1,576,594,130,000 | 228,666,195 | 0 | 0 | Apache-2.0 | 1,576,603,094,000 | 1,576,603,093,000 | null | UTF-8 | Lean | false | false | 13,655 | lean | /-
Copyright (c) 2018 Sébastien Gouëzel. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Isometries of emetric and metric spaces
Authors: Sébastien Gouëzel
-/
import topology.metric_space.basic
topology.bounded_continuous_function analysis.normed_space.basic topology.opens
/-!... |
4d21a52363a98a00bdd6c93ac3fa1b3ed1749700 | 453dcd7c0d1ef170b0843a81d7d8caedc9741dce | /data/nat/modeq.lean | 740b1f3fc68703cf84f33b18f9c30450f003bc2b | [
"Apache-2.0"
] | permissive | amswerdlow/mathlib | 9af77a1f08486d8fa059448ae2d97795bd12ec0c | 27f96e30b9c9bf518341705c99d641c38638dfd0 | refs/heads/master | 1,585,200,953,598 | 1,534,275,532,000 | 1,534,275,532,000 | 144,564,700 | 0 | 0 | null | 1,534,156,197,000 | 1,534,156,197,000 | null | UTF-8 | Lean | false | false | 4,196 | lean | /-
Copyright (c) 2017 Mario Carneiro. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Mario Carneiro
Modular equality relation.
-/
import data.int.basic data.nat.gcd
namespace nat
/-- Modular equality. `modeq n a b`, or `a ≡ b [MOD n]`, means
that `a - b` is a mult... |
bd4e33d7501c3cf33b799172c00fd6b917605a00 | 8cae430f0a71442d02dbb1cbb14073b31048e4b0 | /src/group_theory/perm/cycle/basic.lean | 924ad2f62a9ace0c6fa4479459eef1944f1ca60a | [
"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 | 73,560 | lean | /-
Copyright (c) 2019 Chris Hughes. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Chris Hughes, Yaël Dillies
-/
import algebra.module.big_operators
import data.finset.noncomm_prod
import data.fintype.perm
import data.int.modeq
import group_theory.perm.list
import grou... |
7b8e5210d35250dc1faf3776bc9d4bc6228063dd | 200b12985a863d01fbbde6abfc9326bb82424a8b | /src/propLogic/Ex005.lean | 05abf0ac1b4bc1a0d8a3b3666c80f0bedb8b6360 | [] | no_license | SvenWille/LeanLogicExercises | 38eacd36733ac48e5a7aacf863c681c9a9a48271 | 2dbc920feadd63bbc50f87e69646c0081db26eba | refs/heads/master | 1,629,676,667,365 | 1,512,161,459,000 | 1,512,161,459,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 238 | lean |
theorem Ex005(a b : Prop): (a ∧ (a → ¬a)) → (a ∧ ¬a) :=
assume H:(a ∧ (a → ¬a)),
have A:a, from and.elim_left H,
have B:(a → ¬a), from and.elim_right H,
have C:¬a,from B A,
show a ∧ ¬a, from and.intro A C
|
1bf8ca6be46b24133de1c7e441801fc906669ccd | c28b6af040437c3aecc5e9a23351205ba71d9394 | /HOMEWORK/HW7.lean | 2f52ff147451b1c68435c4f6fa84fabdd9607e70 | [] | no_license | png/cs-dm-lean | 1941672c4007745a6b45d5e3500e270296ec48b3 | 7437aa002cddf116836a425a10f08b4ccbe1c916 | refs/heads/master | 1,586,285,968,765 | 1,542,741,918,000 | 1,542,741,918,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 5,319 | lean | /-
Homework #7. Proper subset.
-/
/-
We have studied the subset relation on
sets. A set x is said to be a subset of
y if ∀ e, e ∈ x → e in y.
By contrast, we say that x is a *proper*
subset of y if x is a subset of y and
there is some f in y that is not in x.
Here's a formal definition of this binary
relation on ... |
f9eb0fca51179c2d731323944cec92f76ec2b1a9 | 6432ea7a083ff6ba21ea17af9ee47b9c371760f7 | /tests/pkg/user_attr/UserAttr.lean | ec633fea1cf11530674f0079ad6b9011e757778e | [
"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 | 205 | lean | import UserAttr.Tst
open Lean
def tst : MetaM Unit := do
let env ← getEnv
assert! (blaAttr.hasTag env `f)
assert! (blaAttr.hasTag env `g)
assert! !(blaAttr.hasTag env `id)
pure ()
#eval tst
|
2e3efe748d9ca9c74176625a7ff9072739464fdc | 8e2026ac8a0660b5a490dfb895599fb445bb77a0 | /library/init/algebra/ordered_field.lean | 9de7c289c136d4708db9d2f0a8296357e8fcfc25 | [
"Apache-2.0"
] | permissive | pcmoritz/lean | 6a8575115a724af933678d829b4f791a0cb55beb | 35eba0107e4cc8a52778259bb5392300267bfc29 | refs/heads/master | 1,607,896,326,092 | 1,490,752,175,000 | 1,490,752,175,000 | 86,612,290 | 0 | 0 | null | 1,490,809,641,000 | 1,490,809,641,000 | null | UTF-8 | Lean | false | false | 19,315 | lean | /-
Copyright (c) 2014 Robert Lewis. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Robert Lewis, Leonardo de Moura
-/
prelude
import init.algebra.ordered_ring init.algebra.field
universe u
class linear_ordered_field (α : Type u) extends linear_ordered_ring α, field α... |
bd62c99dc81f1cc233d138a2d46fe56a28bf737a | 05b503addd423dd68145d68b8cde5cd595d74365 | /src/algebra/category/CommRing/basic.lean | 061595982fd35fa80755a96eaba9651be9631dd8 | [
"Apache-2.0"
] | permissive | aestriplex/mathlib | 77513ff2b176d74a3bec114f33b519069788811d | e2fa8b2b1b732d7c25119229e3cdfba8370cb00f | refs/heads/master | 1,621,969,960,692 | 1,586,279,279,000 | 1,586,279,279,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 8,027 | lean | /-
Copyright (c) 2018 Scott Morrison. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Scott Morrison, Johannes Hölzl, Yury Kudryashov
-/
import algebra.category.Group
import category_theory.fully_faithful
import algebra.ring
import data.int.basic
import data.equiv.ring... |
7db5dd3fc4aa4a2481afe43130c9b207aaff66f6 | 74addaa0e41490cbaf2abd313a764c96df57b05d | /Mathlib/order/lexicographic_auto.lean | 2c54e0e7aa4b3cb136fb1384b736f6518c3ae143 | [] | 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 | 5,296 | lean | /-
Copyright (c) 2019 Scott Morrison. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Author: Scott Morrison, Minchao Wu
Lexicographic preorder / partial_order / linear_order / linear_order,
for pairs and dependent pairs.
-/
import Mathlib.PrePort
import Mathlib.Lean3Lib.init.d... |
5ec79ed73e0e8bedb68080731352c062679dc707 | d5bef83c55d40cb88f9a01b755c882a93348a847 | /library/init/meta/expr.lean | 671ff090d2edac45e4bcce4030102eaa7012dc80 | [
"Apache-2.0"
] | permissive | urkud/lean | 587d78216e1f0c7f651566e9e92cf8ade285d58d | 3526539070ea6268df5dd373deeb3ac8b9621952 | refs/heads/master | 1,660,171,634,921 | 1,657,873,466,000 | 1,657,873,466,000 | 249,789,456 | 0 | 0 | Apache-2.0 | 1,585,075,263,000 | 1,585,075,263,000 | null | UTF-8 | Lean | false | false | 24,139 | 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.level init.control.monad init.meta.rb_map
universes u v
open native
/-- Column and line position in a Lean source file. -/
structur... |
f93737bbb95a3a8d535cad4d015586636ab19052 | 8d65764a9e5f0923a67fc435eb1a5a1d02fd80e3 | /src/measure_theory/integral/bochner.lean | 841366e464faec5738367d577b62e56b271c7a6e | [
"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 | 64,281 | lean | /-
Copyright (c) 2019 Zhouhang Zhou. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Zhouhang Zhou, Yury Kudryashov, Sébastien Gouëzel
-/
import measure_theory.function.simple_func_dense
import measure_theory.function.l1_space
import measure_theory.group.basic
import an... |
0c5cb9d4569be55128c9b048f87dccdab7f02fd7 | 46125763b4dbf50619e8846a1371029346f4c3db | /src/geometry/manifold/manifold.lean | f309f968a9edb2497b9024ea9765717f86587dc3 | [
"Apache-2.0"
] | permissive | thjread/mathlib | a9d97612cedc2c3101060737233df15abcdb9eb1 | 7cffe2520a5518bba19227a107078d83fa725ddc | refs/heads/master | 1,615,637,696,376 | 1,583,953,063,000 | 1,583,953,063,000 | 246,680,271 | 0 | 0 | Apache-2.0 | 1,583,960,875,000 | 1,583,960,875,000 | null | UTF-8 | Lean | false | false | 26,473 | 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
-/
import topology.local_homeomorph
/-!
# Manifolds
A manifold is a topological space M locally modelled on a model space H, i.e., the manifold is
covered by op... |
636698b10254f40c74f342632b0d4339e2f19fa7 | 26bff4ed296b8373c92b6b025f5d60cdf02104b9 | /library/init/nat.lean | 2ce8df1a37786226a374d0f0f3da3a2158b54ec0 | [
"Apache-2.0"
] | permissive | guiquanz/lean | b8a878ea24f237b84b0e6f6be2f300e8bf028229 | 242f8ba0486860e53e257c443e965a82ee342db3 | refs/heads/master | 1,526,680,092,098 | 1,427,492,833,000 | 1,427,493,281,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 10,699 | lean | /-
Copyright (c) 2014 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Module: init.nat
Authors: Floris van Doorn, Leonardo de Moura
-/
prelude
import init.wf init.tactic init.num
open eq.ops decidable
namespace nat
notation `ℕ` := nat
inductive lt ... |
1585e4c0e60ff07c744da03c8a04dfa6236457a7 | 48f4f349e1bb919d14ab7e5921d0cfe825f4c423 | /fabstract/Cook_S_P_NP/turing_machines.lean | 3a500b560ac1d19febe398106ea39287ce21e7e6 | [] | no_license | thalesant/formalabstracts-2017 | fdf4ff90d30ab1dcb6d4cf16a068a997ea5ecc80 | c47181342c9e41954aa8d41f5049965b5f332bca | refs/heads/master | 1,584,610,453,925 | 1,528,277,508,000 | 1,528,277,508,000 | 136,299,625 | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 3,539 | lean |
inductive direction | left | right
instance : decidable_eq direction := by tactic.mk_dec_eq_instance
local prefix ^ := option
def nondet_turing_machine (state symbol : Type) [decidable_eq state] [decidable_eq symbol] :=
state → ^symbol → state → ^symbol → direction → bool
def turing_machine (state symbol : Type) [d... |
f0364f327fc18221457eb97c80af4dbf905884d7 | a0e23cfdd129a671bf3154ee1a8a3a72bf4c7940 | /tests/lean/run/Reparen.lean | d1e12cc4a99f1ffdf1e22d4dd5ee5211af762d6c | [
"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 | 2,156 | lean | /-! Reprint file after removing all parentheses and then passing it through the parenthesizer -/
import Lean.Parser
open Lean
open Std.Format open Std
def unparenAux (parens body : Syntax) : Syntax :=
match parens.getHeadInfo, body.getHeadInfo, body.getTailInfo, parens.getTailInfo with
| SourceInfo.original lead _ _ ... |
2ffcfee627113078671c974157c2f65b4e8b1b64 | 42c01158c2730cc6ac3e058c1339c18cb90366e2 | /M1F/2017-18/Example_Sheet_03/solutions.lean | 9814ed662659fca31f47711c5ca64860b3c46d0d | [] | 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 | 17,025 | lean | import xenalib.M1Fstuff algebra.group_power xenalib.square_root xenalib.complex
-- Need to start off with some fake reals to do Q1,2
constant fake_reals : Type
@[instance] constant fake_reals_comm_ring : comm_ring fake_reals
@[instance] constant fake_reals_have_lt : has_lt fake_reals
-- we define a<=b to mean a<b or... |
62ce57dc8ac180c0e8f2eca68c8e27c76da6a9f0 | 206422fb9edabf63def0ed2aa3f489150fb09ccb | /src/topology/metric_space/emetric_space.lean | 3fcaba07143d7441861cd77f16c1ea2fba6c065c | [
"Apache-2.0"
] | permissive | hamdysalah1/mathlib | b915f86b2503feeae268de369f1b16932321f097 | 95454452f6b3569bf967d35aab8d852b1ddf8017 | refs/heads/master | 1,677,154,116,545 | 1,611,797,994,000 | 1,611,797,994,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 38,145 | lean | /-
Copyright (c) 2015, 2017 Jeremy Avigad. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Jeremy Avigad, Robert Y. Lewis, Johannes Hölzl, Mario Carneiro, Sébastien Gouëzel
-/
import data.real.ennreal
import data.finset.intervals
import topology.uniform_space.uniform_em... |
d0b0a0bf528ff06fa6c8970d8928873273c7fd38 | 3863d2564418bccb1859e057bf5a4ef240e75fd7 | /hott/function.hlean | 3dbfac836581a2082a3981e94c795a60789ec481 | [
"Apache-2.0"
] | permissive | JacobGross/lean | 118bbb067ff4d4af48a266face2c7eb9868fa91c | eb26087df940c54337cb807b4bc6d345d1fc1085 | refs/heads/master | 1,582,735,011,532 | 1,462,557,826,000 | 1,462,557,826,000 | 46,451,196 | 0 | 0 | null | 1,462,557,826,000 | 1,447,885,161,000 | C++ | UTF-8 | Lean | false | false | 9,614 | hlean | /-
Copyright (c) 2015 Floris van Doorn. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Author: Floris van Doorn
Ported from Coq HoTT
Theorems about embeddings and surjections
-/
import hit.trunc types.equiv cubical.square
open equiv sigma sigma.ops eq trunc is_trunc pi is_eq... |
6e732d593814a1c90e2a4d1148ae6abe92e90745 | 626e312b5c1cb2d88fca108f5933076012633192 | /src/measure_theory/measure/vector_measure.lean | 1818b029880d4c99c6c58bee6fc3522b6dd13e29 | [
"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 | 40,018 | 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.integral.lebesgue
/-!
# Vector valued measures
This file defines vector valued measures, which are σ-additive functions from a set to a add monoid
... |
d3dd3d3b332a5496901b0f6bc159817090d47852 | 5ae26df177f810c5006841e9c73dc56e01b978d7 | /src/ring_theory/localization.lean | c4df7faea2d6deded6de632f1006c3389e3ad99c | [
"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 | 24,600 | 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
-/
import tactic.ring data.quot data.equiv.algebra ring_theory.ideal_operations group_theory.submonoid
universes u v
namespace localization
varia... |
c47d1243b77d00a190e152309f08c998c42952e1 | febba19712b2aefe4d6c7fb0230b8d7e272c98c4 | /src/dependent_howard2.lean | f2614505f7dadf810562f7bc878cc36aff9a9707 | [] | no_license | hcheval/formalized-proof-mining | e6eb980feb644ae269f43d9af93ac584b7a47a17 | 216cc73fccd84900a1ba7eaae5f73732496d6afe | refs/heads/master | 1,689,621,410,792 | 1,629,912,272,000 | 1,629,912,272,000 | 399,855,572 | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 5,397 | lean | import tactic
namespace hidden₂
inductive simple_type
| natural : simple_type
| arrow : simple_type → simple_type → simple_type
local notation `𝕆` := simple_type.natural
local infixr `↣` : 50 := simple_type.arrow
local notation `𝕋` := simple_type
@[simp]
def simple_type.interpret : simple_ty... |
02be0e630897d9621880fdcc29a1c7e97f69b54b | abd85493667895c57a7507870867b28124b3998f | /src/group_theory/sylow.lean | 2af29edea9bb18781513c1936c4a4c89690da7d7 | [
"Apache-2.0"
] | permissive | pechersky/mathlib | d56eef16bddb0bfc8bc552b05b7270aff5944393 | f1df14c2214ee114c9738e733efd5de174deb95d | refs/heads/master | 1,666,714,392,571 | 1,591,747,567,000 | 1,591,747,567,000 | 270,557,274 | 0 | 0 | Apache-2.0 | 1,591,597,975,000 | 1,591,597,974,000 | null | UTF-8 | Lean | false | false | 11,846 | lean | /-
Copyright (c) 2018 Chris Hughes. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Chris Hughes
-/
import group_theory.group_action
import group_theory.quotient_group
import group_theory.order_of_element
import data.zmod.basic
import data.fintype.card
import data.list.... |
3713d40fd573ac4a4ba2455fff4085443b596ede | 9dc8cecdf3c4634764a18254e94d43da07142918 | /src/measure_theory/measure/outer_measure.lean | 577bd61ffb9c6e61b413a9ba202559b55d27e8fe | [
"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,665 | 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 analysis.specific_limits.basic
import measure_theory.pi_system
import data.countable.basic
import data.fin.vec_notation
import topology.algebra... |
ccf9880e0d75f5e0239f23567c36d530e143857a | d11a77796ce855e9f8d9d84892d54616b7d5a758 | /src/myfinset.lean | 2075d149946b0f83a0e345c2137198578c7a87bb | [] | no_license | kmill/lean-graphcoloring | 014f2bfb8c0d4b2ddda9d7d4de3de2ecdbb40ad7 | 1bb2050ed358ff647186f89922d6a09b838444e5 | refs/heads/master | 1,666,902,260,074 | 1,591,913,639,000 | 1,591,913,639,000 | 271,116,459 | 2 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 2,312 | lean | import data.set
import data.finset
import tactic
attribute [instance] classical.prop_decidable
open set finset
namespace finset
lemma inj_range {α} (S : finset α)
: ∃ (f : α → ℕ), (∀ x ∈ S, f x < card S) ∧ (∀ x ∈ S, ∀ y ∈ S, f x = f y → x = y) :=
begin
induction S using finset.induction with x S' hasnt ih,
use ... |
53c121d80ce6cc6c4792ceae4632f2318084033e | 491068d2ad28831e7dade8d6dff871c3e49d9431 | /tests/lean/univ.lean | eab8b2385bf3233de1449ed0da4f2375020d5dab | [
"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 | 232 | lean | import data.num
definition id (A : Type) (a : A) := a
check id Type num
check id Type' num
check id Type.{1} num
check id _ num
check id Type.{_+1} num
check id Type.{0+1} num
check id Type Type.{1}
check id Type' Type.{1}
|
7108f128705c23deadeebbcf082afa2900764019 | bbecf0f1968d1fba4124103e4f6b55251d08e9c4 | /src/data/equiv/denumerable.lean | 8d991456d3dd7f5b716fd70cfefdf6ba7055a684 | [
"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 | 10,529 | 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.equiv.encodable.basic
import data.sigma
import data.fintype.basic
import data.list.min_max
/-!
# Denumerable types
This file defines denumerable (counta... |
1a58181e0327140b8d697ca2ccf757d0537321c6 | 57c233acf9386e610d99ed20ef139c5f97504ba3 | /src/ring_theory/polynomial/eisenstein.lean | c4e68a3c4ec349d2ab14dc7a42d61994e3562e0f | [
"Apache-2.0"
] | permissive | robertylewis/mathlib | 3d16e3e6daf5ddde182473e03a1b601d2810952c | 1d13f5b932f5e40a8308e3840f96fc882fae01f0 | refs/heads/master | 1,651,379,945,369 | 1,644,276,960,000 | 1,644,276,960,000 | 98,875,504 | 0 | 0 | Apache-2.0 | 1,644,253,514,000 | 1,501,495,700,000 | Lean | UTF-8 | Lean | false | false | 6,929 | lean | /-
Copyright (c) 2022 Riccardo Brasca. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Riccardo Brasca
-/
import ring_theory.eisenstein_criterion
/-!
# Eisenstein polynomials
Given an ideal `𝓟` of a commutative semiring `R`, we say that a polynomial `f : polynomial R... |
b6840fe9861f02ff8599ee2c1800ab8711bad564 | fa02ed5a3c9c0adee3c26887a16855e7841c668b | /src/category_theory/preadditive/functor_category.lean | 3321a83d6b47d8fd2169d33026cc7bbf8a40c207 | [
"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 | 2,637 | lean | /-
Copyright (c) 2021 Johan Commelin. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Johan Commelin
-/
import category_theory.preadditive.default
/-!
# Preadditive structure on functor categories
If `C` and `D` are categories and `D` is preadditive,
then `C ⥤ D` is ... |
60f869d21041e005dcde81298e9c4a589e49a196 | 0d2e44896897eda703992595d71a0b19ed30b8a1 | /uexp/src/uexp/rules/addRedundantSemijoinRule.lean | aaa4b722e54d93e4e706a918d7177b150691bd20 | [
"BSD-2-Clause"
] | permissive | wwombat/Cosette | a87312aabefdb53ea8b67c37731bd58c7485afb6 | 4c5dc6172e24d3546c9818ac1fad06f72fe1c991 | refs/heads/master | 1,619,479,568,051 | 1,520,292,502,000 | 1,520,292,502,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 1,865 | lean | import ..sql
import ..tactics
import ..u_semiring
import ..extra_constants
variable i : const datatypes.int
open SQL
open Pred
open Expr
open Proj
definition rule : Prop := Π (Γ scm_dept scm_emp : Schema)
(rel_dept : relation scm_dept)
(rel_emp : relation scm_emp)
... |
3712ca7a80ffda5b860c92a8e3082384c839f334 | b70031c8e2c5337b91d7e70f1e0c5f528f7b0e77 | /src/linear_algebra/bilinear_form.lean | cc0969481ac6c8600a6d3227b95e4e30c2ba68b0 | [
"Apache-2.0"
] | permissive | molodiuc/mathlib | cae2ba3ef1601c1f42ca0b625c79b061b63fef5b | 98ebe5a6739fbe254f9ee9d401882d4388f91035 | refs/heads/master | 1,674,237,127,059 | 1,606,353,533,000 | 1,606,353,533,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 31,179 | lean | /-
Copyright (c) 2018 Andreas Swerdlow. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Author: Andreas Swerdlow
-/
import linear_algebra.matrix
import linear_algebra.tensor_product
import linear_algebra.nonsingular_inverse
/-!
# Bilinear form
This file defines a bilinear for... |
a794ebbb93244e2e63cb407411a63dd0f963057e | e514e8b939af519a1d5e9b30a850769d058df4e9 | /src/tactic/rewrite_search/strategy/bfs.lean | ef958029483562e980d939e9224ab5fe8bf4d20a | [] | no_license | semorrison/lean-rewrite-search | dca317c5a52e170fb6ffc87c5ab767afb5e3e51a | e804b8f2753366b8957be839908230ee73f9e89f | refs/heads/master | 1,624,051,754,485 | 1,614,160,817,000 | 1,614,160,817,000 | 162,660,605 | 0 | 1 | null | null | null | null | UTF-8 | Lean | false | false | 2,439 | lean | import tactic.iconfig
import tactic.rewrite_search.core
import tactic.rewrite_search.module
open tactic.rewrite_search
namespace tactic.rewrite_search.strategy.bfs
structure bfs_config :=
(max_depth : ℕ := 50)
structure bfs_state :=
(conf : bfs_config)
(curr_depth : ℕ)
(queue : list (option table_ref))
... |
d2526628c8f33d6f0d5654b02d40741e37aef097 | 2f8bf12144551bc7d8087a6320990c4621741f3d | /library/init/lean/compiler/ir/resetreuse.lean | 50d7eb7119515f4521390b54dd06ad8d9a7d7b84 | [
"Apache-2.0"
] | permissive | jesse-michael-han/lean4 | eb63a12960e69823749edceb4f23fd33fa2253ce | fa16920a6a7700cabc567aa629ce4ae2478a2f40 | refs/heads/master | 1,589,935,810,594 | 1,557,177,860,000 | 1,557,177,860,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 4,199 | lean | /-
Copyright (c) 2019 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Leonardo de Moura
-/
prelude
import init.control.state
import init.lean.compiler.ir.basic
import init.lean.compiler.ir.freevars
namespace Lean
namespace IR
/- Remark: the inser... |
4836015f2996a3c1d4368862ec4fafdff8f0db0c | 2d34dfb0a1cc250584282618dc10ea03d3fa858e | /src/locally_constant/for_mathlib.lean | 06d01d30fe29815ecca7ab6a6bff7edeb6818e91 | [] | no_license | zeta1999/lean-liquid | 61e294ec5adae959d8ee1b65d015775484ff58c2 | 96bb0fa3afc3b451bcd1fb7d974348de2f290541 | refs/heads/master | 1,676,579,150,248 | 1,610,771,445,000 | 1,610,771,445,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 2,065 | lean | import topology.category.Profinite
import topology.algebra.group_completion
import topology.metric_space.completion
noncomputable theory
variables (S S₁ S₂ V : Type*)
variables
[topological_space S] [compact_space S] [t2_space S] [totally_disconnected_space S]
[topological_space S₁] [compact_space S₁] [t2_space S... |
683bb63cc57a06aa306a6f6de6a0b0dd06d55060 | 74addaa0e41490cbaf2abd313a764c96df57b05d | /Mathlib/category_theory/limits/preserves/shapes/terminal.lean | 02e6b9b06bc9256a43d51cb9263879428b1d18ce | [] | 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 | 5,466 | lean | /-
Copyright (c) 2020 Bhavik Mehta. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Bhavik Mehta
-/
import Mathlib.PrePort
import Mathlib.Lean3Lib.init.default
import Mathlib.category_theory.limits.preserves.limits
import Mathlib.category_theory.limits.shapes.default
im... |
01600e98bc750005ebbc8dba9d7ec9dddb36ae9e | bbecf0f1968d1fba4124103e4f6b55251d08e9c4 | /src/analysis/box_integral/divergence_theorem.lean | 8946c690b168f7aaaa8c3fa82c9d6d512943b6e4 | [
"Apache-2.0"
] | permissive | waynemunro/mathlib | e3fd4ff49f4cb43d4a8ded59d17be407bc5ee552 | 065a70810b5480d584033f7bbf8e0409480c2118 | refs/heads/master | 1,693,417,182,397 | 1,634,644,781,000 | 1,634,644,781,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 16,393 | lean | /-
Copyright (c) 2021 Yury Kudryashov. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Yury Kudryashov
-/
import analysis.box_integral.basic
import analysis.box_integral.partition.additive
import analysis.calculus.fderiv
/-!
# Divergence integral for Henstock-Kurzweil ... |
98238a5fbb685ef2e92b89d181116f2142ba1f4f | 36c7a18fd72e5b57229bd8ba36493daf536a19ce | /tests/lean/run/blast_ematch6.lean | 0ce360390e9d6ec8b220f71b79a7da8a94f15c38 | [
"Apache-2.0"
] | permissive | YHVHvx/lean | 732bf0fb7a298cd7fe0f15d82f8e248c11db49e9 | 038369533e0136dd395dc252084d3c1853accbf2 | refs/heads/master | 1,610,701,080,210 | 1,449,128,595,000 | 1,449,128,595,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 912 | lean | import algebra.ring data.nat
open algebra
variables {A : Type}
section
variable [s : group A]
include s
set_option blast.simp false
set_option blast.subst false
set_option blast.ematch true
attribute mul_one [forward]
attribute mul.assoc [forward]
attribute mul.left_inv [forward]
attribute one_mul [... |
bbc860dcd9b1fcd7b2f53723f6bd8e35dd9243ab | 7cef822f3b952965621309e88eadf618da0c8ae9 | /src/category/basic.lean | 2316c9cdc6071160599c564022d87b9ef87094eb | [
"Apache-2.0"
] | permissive | rmitta/mathlib | 8d90aee30b4db2b013e01f62c33f297d7e64a43d | 883d974b608845bad30ae19e27e33c285200bf84 | refs/heads/master | 1,585,776,832,544 | 1,576,874,096,000 | 1,576,874,096,000 | 153,663,165 | 0 | 2 | Apache-2.0 | 1,544,806,490,000 | 1,539,884,365,000 | Lean | UTF-8 | Lean | false | false | 6,824 | 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
Extends the theory on functors, applicatives and monads.
-/
universes u v w
variables {α β γ : Type u}
notation a ` $< `:1 f:1 := f a
section functor
variables {f : ... |
b5a8756141e5be55593f1b402fe32e23ec709ec6 | b561a44b48979a98df50ade0789a21c79ee31288 | /stage0/src/Lean/Elab/BuiltinCommand.lean | 677d362bbf31287746b0fb10cf6375a77b7f9c01 | [
"Apache-2.0"
] | permissive | 3401ijk/lean4 | 97659c475ebd33a034fed515cb83a85f75ccfb06 | a5b1b8de4f4b038ff752b9e607b721f15a9a4351 | refs/heads/master | 1,693,933,007,651 | 1,636,424,845,000 | 1,636,424,845,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 13,896 | 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.DocString
import Lean.Elab.Command
import Lean.Elab.Open
namespace Lean.Elab.Command
@[builtinCommandElab moduleDoc] def elabModuleDoc : Comma... |
4575dc564e8f5b9a201c2a31310cf939169cb8e6 | 491068d2ad28831e7dade8d6dff871c3e49d9431 | /tests/lean/run/568.lean | d797730208e23a2f867653a77ab527402532672a | [
"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 | 217 | lean | namespace f1
definition flip := 20
end f1
namespace f2
definition flip := 10
end f2
namespace f3
export [declarations] f1
export -[declarations] f2
end f3
export [declarations] f1
export -[declarations] f2
|
5037f64ccc38b47233f7dad064550b3b2bc20030 | 98e19516c8c6ccdcd3b092955d47773a0aaabf7b | /test/bench/lean/rbtree-ck.lean | 28e4d4eed621e00c7a2673521f40d77aeebe6f6a | [
"Apache-2.0"
] | permissive | koka-lang/koka | d31daf7d06b28ea7b1fc8084cc76cdf5459610b6 | b3122869ac74bfb6f432f7e76eeb723b1f69a491 | refs/heads/master | 1,693,461,288,476 | 1,688,408,308,000 | 1,688,408,308,000 | 75,982,258 | 2,806 | 154 | NOASSERTION | 1,689,870,454,000 | 1,481,238,037,000 | Haskell | UTF-8 | Lean | false | false | 3,332 | 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.Coe
import Init.Data.Option.Basic
import Init.Data.List.BasicAux
import Init.System.IO
universes u v w w'
inductive color
| Red | Blac... |
8c98c1106ebd5bd469988bb58858348d45e53e70 | e0f9ba56b7fedc16ef8697f6caeef5898b435143 | /src/category_theory/eq_to_hom.lean | 10af9e57cfcd5460522a8a4ffdb6194c015c4879 | [
"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 | 2,628 | lean | /-
Copyright (c) 2018 Reid Barton. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Reid Barton, Scott Morrison
-/
import category_theory.opposites
universes v v' u u' -- declare the `v`'s first; see `category_theory.category` for an explanation
namespace category_theo... |
dd6b288fde6e673631553f8ba67f8612b71ec38d | f1b175e38ffc5cc1c7c5551a72d0dbaf70786f83 | /algebra/big_operators.lean | e52200cf5fefe825a20cb74c104ea653d22955ec | [
"Apache-2.0"
] | permissive | mjendrusch/mathlib | df3ae884dd5ce38c7edf452bcbfd3baf4e3a6214 | 5c209edb7eb616a26f64efe3500f2b1ba95b8d55 | refs/heads/master | 1,585,663,284,800 | 1,539,062,055,000 | 1,539,062,055,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 25,047 | 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
Some big operators for lists and finite sets.
-/
import data.list.basic data.list.perm data.finset
algebra.group algebra.ordered_group algebra.group_power
universes ... |
b90feced82d5039dcc45d011447ec856531d03c6 | 4727251e0cd73359b15b664c3170e5d754078599 | /src/analysis/special_functions/pow.lean | ce56acd675df4293ed2d8316b4edc479dd563e3f | [
"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 | 79,482 | lean | /-
Copyright (c) 2018 Chris Hughes. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Chris Hughes, Abhimanyu Pallavi Sudhir, Jean Lo, Calle Sönne, Sébastien Gouëzel,
Rémy Degenne, David Loeffler
-/
import analysis.special_functions.complex.log
/-!
# Power function on ... |
4c079c4bfe247e600b24120a86a0f12fd2c30ee9 | 61c3861020ef87c6c325fc3c3dcbabf5d6b07985 | /init/trunc.lean | 6c002d5b9939a6db53c7b92a60368d03a10d8ea5 | [
"Apache-2.0"
] | permissive | jonas-frey/hott3 | a623be2959e8a713c03fa1b0f34bf76a561dfa87 | a944051b4eb5919bdc70978ee15fcbb48a824811 | refs/heads/master | 1,628,408,720,559 | 1,510,267,042,000 | 1,510,267,042,000 | 106,760,764 | 0 | 0 | null | 1,507,856,238,000 | 1,507,856,238,000 | null | UTF-8 | Lean | false | false | 13,169 | lean | /-
Copyright (c) 2014 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Jeremy Avigad, Floris van Doorn
Definition of is_trunc (n-truncatedness)
Ported from Coq HoTT.
-/
import .equiv .pathover .logic
universes u v l
hott_theory
namespace hott
... |
244a4668c8ace87de8353cedadc5671a316841f7 | 6432ea7a083ff6ba21ea17af9ee47b9c371760f7 | /tests/lean/243.lean | d93894e75274c4a3e26c02ebd235ec947141ef38 | [
"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 | 200 | lean | def f : (α : Type) × α → Nat
| ⟨Bool, true⟩ => 1
| _ => 2
namespace Foo
inductive A where
| a | b
open A (a b)
def g : (α : Type) × α → Nat
| ⟨A, a⟩ => 1
| _ => 2
end Foo
|
2fc961e87284ba2a3dc1bc7f5427f35b87273f29 | 491068d2ad28831e7dade8d6dff871c3e49d9431 | /hott/init/default.hlean | 72fdc34d3ea17da421a0cb90c341f95e3f2a5b88 | [
"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 | 911 | hlean | /-
Copyright (c) 2014 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Leonardo de Moura, Jakob von Raumer
-/
prelude
import init.datatypes init.reserved_notation init.tactic init.logic
import init.bool init.num init.priority init.relation init.wf... |
c07060c683432025d207f21c58fe97ec92cd4a16 | 302c785c90d40ad3d6be43d33bc6a558354cc2cf | /src/data/nat/gcd.lean | 8886e551e58e72626bb4d39a324bc4eb994a2071 | [
"Apache-2.0"
] | permissive | ilitzroth/mathlib | ea647e67f1fdfd19a0f7bdc5504e8acec6180011 | 5254ef14e3465f6504306132fe3ba9cec9ffff16 | refs/heads/master | 1,680,086,661,182 | 1,617,715,647,000 | 1,617,715,647,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 16,772 | 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 data.nat.basic
/-!
# Definitions and properties of `gcd`, `lcm`, and `coprime`
-/
namespace nat
/-! ### `gcd` -/
theorem gcd_dvd (m n : ℕ... |
f5cc99d704fc033e3dd188ce2171eb4b25e3f4f5 | 4727251e0cd73359b15b664c3170e5d754078599 | /src/algebra/category/Group/abelian.lean | e9dd71e2ee605fec44f18a103db1df8ae816ac02 | [
"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 | 1,520 | lean | /-
Copyright (c) 2020 Markus Himmel. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Markus Himmel
-/
import algebra.category.Group.Z_Module_equivalence
import algebra.category.Group.limits
import algebra.category.Group.colimits
import algebra.category.Module.abelian
im... |
9ccfcc6eb3cbc0d1e3bf27bf39398edc5f4c0058 | 9ad8d18fbe5f120c22b5e035bc240f711d2cbd7e | /src/combinatorics/partition/recursive.lean | b82a033118f932d4652bce289d04cf2c9389cfe0 | [] | no_license | agusakov/lean_lib | c0e9cc29fc7d2518004e224376adeb5e69b5cc1a | f88d162da2f990b87c4d34f5f46bbca2bbc5948e | refs/heads/master | 1,642,141,461,087 | 1,557,395,798,000 | 1,557,395,798,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 4,604 | lean | /-
Copyright (c) 2019 Neil Strickland. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Neil Strickland
Let p be a partition of a finite type α with decidable equality.
Then the type α₀ of blocks can be regarded as a quotient of α
in an obvious way, so we can cons... |
99812133b61ae45437026fade7573858dcd06b4c | b7f22e51856f4989b970961f794f1c435f9b8f78 | /tests/lean/simplifier14.lean | dab78ea2cc62899630b5313bbe0df80c7f86514c | [
"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 | 918 | lean | -- Basic fusion
import algebra.ring
universe l
constants (T : Type.{l}) (s : comm_ring T)
constants (x1 x2 x3 x4 : T) (f g : T → T)
attribute s [instance]
set_option simplify.max_steps 50000
set_option simplify.fuse true
open simplifier.unit simplifier.ac simplifier.neg
#simplify eq env 0 x1
#simplify eq env 0 x1 + ... |
f37402659b86c4d31a21cf3b4229de8f1782b66f | 08bd4ba4ca87dba1f09d2c96a26f5d65da81f4b4 | /src/Lean/CoreM.lean | fab2a248d1cd48da6a96e1469c7e14ce7644ed77 | [
"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 | 13,552 | lean | /-
Copyright (c) 2020 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Leonardo de Moura
-/
import Lean.Util.RecDepth
import Lean.Util.Trace
import Lean.Log
import Lean.Eval
import Lean.ResolveName
import Lean.Elab.InfoTree.Types
import Lean.MonadE... |
d11acb0c5d6e42461b25324dba3a74f8e8d347d4 | 367134ba5a65885e863bdc4507601606690974c1 | /src/algebra/group_action_hom.lean | 0a468163f8ea390f9ddef173ff9bc750bd857d2e | [
"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 | 9,456 | 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 algebra.group_ring_action
import group_theory.group_action
/-!
# Equivariant homomorphisms
## Main definitions
* `mul_action_hom M X Y`, the type of equivariant funct... |
087055d632a073029acb64780c6ba2b4cc7069ac | e61a235b8468b03aee0120bf26ec615c045005d2 | /src/Init/Lean/Attributes.lean | 1716651dc626f45b6b3f8bb0422e3a27ae3fd3e5 | [
"Apache-2.0"
] | permissive | SCKelemen/lean4 | 140dc63a80539f7c61c8e43e1c174d8500ec3230 | e10507e6615ddbef73d67b0b6c7f1e4cecdd82bc | refs/heads/master | 1,660,973,595,917 | 1,590,278,033,000 | 1,590,278,033,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 21,456 | lean | /-
Copyright (c) 2019 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Leonardo de Moura
-/
prelude
import Init.Lean.Scopes
import Init.Lean.Syntax
namespace Lean
inductive AttributeApplicationTime
| afterTypeChecking | afterCompilation | beforeE... |
5c08406b50cc219fa64494e13aa4b67084e2c89b | a0e23cfdd129a671bf3154ee1a8a3a72bf4c7940 | /tests/lean/run/closure1.lean | 16e964401fcec90e7f25ce46bee8c985f51cc3b0 | [
"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 | 1,467 | lean | import Lean
open Lean
open Lean.Meta
universe u
inductive Vec (α : Type u) : Nat → Type u
| nil : Vec α 0
| cons {n} : α → Vec α n → Vec α (n+1)
set_option trace.Meta.debug true
def printDef (declName : Name) : MetaM Unit := do
let cinfo ← getConstInfo declName;
trace[Meta.debug] cinfo.value!
def tst1 : Meta... |
6b499d09628f1c188e6cf553020b0239cbcf2bc5 | 57c233acf9386e610d99ed20ef139c5f97504ba3 | /src/number_theory/class_number/admissible_abs.lean | 32ba0d18c63d5f62892becdf177136716cd08eb4 | [
"Apache-2.0"
] | permissive | robertylewis/mathlib | 3d16e3e6daf5ddde182473e03a1b601d2810952c | 1d13f5b932f5e40a8308e3840f96fc882fae01f0 | refs/heads/master | 1,651,379,945,369 | 1,644,276,960,000 | 1,644,276,960,000 | 98,875,504 | 0 | 0 | Apache-2.0 | 1,644,253,514,000 | 1,501,495,700,000 | Lean | UTF-8 | Lean | false | false | 2,590 | lean | /-
Copyright (c) 2021 Anne Baanen. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Anne Baanen
-/
import algebra.algebra.basic
import number_theory.class_number.admissible_absolute_value
/-!
# Admissible absolute value on the integers
This file defines an admissible ab... |
81d780f7b8e9ce190aa318c217c0e74483e2482c | 26ac254ecb57ffcb886ff709cf018390161a9225 | /src/ring_theory/eisenstein_criterion.lean | 2bbccf7d8bb3196d826d7e9852382f4ef254e7c9 | [
"Apache-2.0"
] | permissive | eric-wieser/mathlib | 42842584f584359bbe1fc8b88b3ff937c8acd72d | d0df6b81cd0920ad569158c06a3fd5abb9e63301 | refs/heads/master | 1,669,546,404,255 | 1,595,254,668,000 | 1,595,254,668,000 | 281,173,504 | 0 | 0 | Apache-2.0 | 1,595,263,582,000 | 1,595,263,581,000 | null | UTF-8 | Lean | false | false | 5,485 | lean | /-
Copyright (c) 2020 Chris Hughes. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Chris Hughes
-/
import ring_theory.ideal_operations
import data.polynomial.ring_division
import tactic.apply_fun
import ring_theory.prime
/-!
# Eisenstein's criterion
A proof of a sligh... |
13fbf458fdb1b4a37276e8646269a0fad93f20b7 | 0caad76c3ba1f8cd491d2a14ec71a0b2be32aedc | /test.lean | eaf0c78c29c17459555158fc9bee58aa03a9b84f | [] | no_license | nerdvision/icon-test | 1625923e00fa68ae4ea80f86e77fed5c21e77e0b | da10e4a321d9ef198e0336ae5beb54e28c6bd534 | refs/heads/master | 1,684,506,327,208 | 1,615,818,014,000 | 1,615,818,014,000 | 375,315,911 | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 15 | lean | lean test file
|
fcfb2f45d7f313d0f736e7eaf28fbb0be5e5a960 | 865fccc998322821ec90764a00c06aa38e8f371a | /inductive-generation.lean | 2429d3d8f7fb53660b6da46a933d285f53616f43 | [] | no_license | semorrison/lean-monotone-class | 2601316f7281dd398ef629e50ba34a760d2a632b | 312f8628ce2872f647ee42398dbf38d9ebf65493 | refs/heads/master | 1,627,247,514,511 | 1,510,001,892,000 | 1,510,001,892,000 | 103,790,048 | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 1,135 | lean | import .monotone
open set
lemma boolean_algebras_equal {α} {f g : boolean_algebra α} (h : f.contains = g.contains) : f = g :=
begin
induction f with f_contains,
induction g with g_contains,
dsimp at h,
subst h
end
inductive generate_sets { α } (X : set (set α)) : set α → Prop
| basic : ∀s∈X, generat... |
598213b4ed7176908d14965761a08691e184cf70 | 82e44445c70db0f03e30d7be725775f122d72f3e | /src/number_theory/pythagorean_triples.lean | 1fb2d3bbc6552b9df506104a0c4d593931d28d8a | [
"Apache-2.0"
] | permissive | stjordanis/mathlib | 51e286d19140e3788ef2c470bc7b953e4991f0c9 | 2568d41bca08f5d6bf39d915434c8447e21f42ee | refs/heads/master | 1,631,748,053,501 | 1,627,938,886,000 | 1,627,938,886,000 | 228,728,358 | 0 | 0 | Apache-2.0 | 1,576,630,588,000 | 1,576,630,587,000 | null | UTF-8 | Lean | false | false | 25,958 | lean | /-
Copyright (c) 2020 Paul van Wamelen. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Paul van Wamelen
-/
import algebra.field
import ring_theory.int.basic
import algebra.group_with_zero.power
import tactic.ring
import tactic.ring_exp
import tactic.field_simp
import d... |
6c01ca8136d2ac701f005d2320c196e87fa38eaa | 4727251e0cd73359b15b664c3170e5d754078599 | /src/data/polynomial/coeff.lean | 191bb26c1daf1c1dc72ba98c7d5b1fc8790c1479 | [
"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 | 9,860 | 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.basic
import data.finset.nat_antidiagonal
import data.nat.choose.sum
/-!
# Theory of univariate p... |
fa58d40a2cbab8c2a926424f565ac165843e1a08 | b7f22e51856f4989b970961f794f1c435f9b8f78 | /tests/lean/hott/beginend2.hlean | 2a2b9b2a9b58bf78f644f8b0fcf660a6c3bcb168 | [
"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 | 307 | hlean | open eq tactic
open eq (rec_on)
definition concat_whisker2 {A} {x y z : A} (p p' : x = y) (q q' : y = z) (a : p = p') (b : q = q') :
(whisker_right a q) ⬝ (whisker_left p' b) = (whisker_left p b) ⬝ (whisker_right a q') :=
begin
apply (rec_on b),
apply (rec_on a),
apply ((idp_con _)⁻¹),
end
|
15f072d015d1aed95be7e4f55eaeded4ce0f14e6 | 3dd1b66af77106badae6edb1c4dea91a146ead30 | /tests/lean/run/nat_bug2.lean | d8800356a5ce8e92b0981ffa337006353f7eae5e | [
"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 | 681 | lean | import logic num
using num eq_proofs
inductive nat : Type :=
| zero : nat
| succ : nat → nat
abbreviation plus (x y : nat) : nat
:= nat_rec x (λn r, succ r) y
definition to_nat [coercion] [inline] (n : num) : nat
:= num_rec zero (λn, pos_num_rec (succ zero) (λn r, plus r (plus r (succ zero))) (λn r, plus r r) n) n
de... |
d281c7313efcf2103ea2c6e9de8da3ed1ae46c93 | b7f22e51856f4989b970961f794f1c435f9b8f78 | /tests/lean/run/rewrite8.lean | a93a1c8a3faf2352ff1374499ce28d07cd107758 | [
"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 | 166 | lean | import data.nat
open nat
constant f : nat → nat
theorem tst1 (x y : nat) (H1 : (λ z, z + 0) x = y) : f x = f y :=
by rewrite [▸* at H1, nat.add_zero at H1, H1]
|
a2389b0ff1fd03f0a563a1debf88df03f6888bc9 | 4efff1f47634ff19e2f786deadd394270a59ecd2 | /src/number_theory/pythagorean_triples.lean | c5b032f3c198e3c3ff04c0f46e6c70a7c6519607 | [
"Apache-2.0"
] | permissive | agjftucker/mathlib | d634cd0d5256b6325e3c55bb7fb2403548371707 | 87fe50de17b00af533f72a102d0adefe4a2285e8 | refs/heads/master | 1,625,378,131,941 | 1,599,166,526,000 | 1,599,166,526,000 | 160,748,509 | 0 | 0 | Apache-2.0 | 1,544,141,789,000 | 1,544,141,789,000 | null | UTF-8 | Lean | false | false | 24,137 | lean | /-
Copyright (c) 2020 Paul van Wamelen. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Author: Paul van Wamelen.
-/
import algebra.field
import algebra.gcd_monoid
import algebra.group_with_zero_power
import tactic
/-!
# Pythagorean Triples
The main result is the classification... |
f250aec719624ffd90f47dee7de8b502a803661a | b7f22e51856f4989b970961f794f1c435f9b8f78 | /hott/cubical/pathover2.hlean | b06415f3f020b9d17056c130e3c1383f4536a130 | [
"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 | 6,226 | hlean | /-
Copyright (c) 2015 Floris van Doorn. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Author: Floris van Doorn
Coherence conditions for operations on pathovers
-/
open function equiv
namespace eq
variables {A A' A'' : Type} {B B' : A → Type} {B'' : A' → Type} {C : Π⦃a⦄, ... |
021e39ad9c04d057c49e0b915d13dc5205aec10c | ee8cdbabf07f77e7be63a449b8483ce308d37218 | /lean/src/test/mathd-numbertheory-135.lean | 94795ae9a4e4283bf8d1d4556d6eb3bce11828c7 | [
"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 | 424 | 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 (n a b c: ℕ) (h₀ : n = 3 ^ 17 + 3 ^ 10) (h₁ : 11 ∣ (n + 1)) (h₂ : odd a ∧ odd c) (h₃ : ¬ 3 ∣ b) (h₄ : n = 10*( 10*( 10*( 10*( 10*( 10*( 10*( 10*... |
e316f59c87f0cef7926a094b9a225970180e7e97 | a45212b1526d532e6e83c44ddca6a05795113ddc | /src/topology/subset_properties.lean | 62f99f46262ff5c99867813d824644bb7e0359f0 | [
"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,112 | 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
Properties of subsets of topological spaces: compact, clopen, irreducible,
connected, totally disconnected, totally separated.
-/
import topology.basic... |
630b08adc0e02d28977f15f20365167518d30080 | 74addaa0e41490cbaf2abd313a764c96df57b05d | /Mathlib/category_theory/grothendieck_auto.lean | 9ce6b6f9a3109289a10ff0f20ce84746b18801cc | [] | 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 | 5,175 | 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 Mathlib.PrePort
import Mathlib.Lean3Lib.init.default
import Mathlib.category_theory.category.Cat
import Mathlib.category_theory.elements
import Mathlib.PostPor... |
2b422c3c294cd0157e6533558b9527d81a7ecf33 | 1f6fe2f89976b14a4567ab298c35792b21f2e50b | /homotopy/wedge.hlean | d971bc32d87a2f3b726141159e9211b8e1f88b5c | [
"Apache-2.0"
] | permissive | jonas-frey/Spectral | e5c1c2f7bcac26aa55f7b1e041a81272a146198d | 72d521091525a4bc9a31cac859840efe9461cf66 | refs/heads/master | 1,610,235,743,345 | 1,505,417,795,000 | 1,505,417,795,000 | 102,653,342 | 0 | 0 | null | 1,504,728,483,000 | 1,504,728,483,000 | null | UTF-8 | Lean | false | false | 2,272 | hlean | -- Authors: Floris van Doorn
import homotopy.wedge
open wedge pushout eq prod sum pointed equiv is_equiv unit lift
namespace wedge
definition wedge_flip' [unfold 3] {A B : Type*} (x : A ∨ B) : B ∨ A :=
begin
induction x,
{ exact inr a },
{ exact inl a },
{ exact (glue ⋆)⁻¹ }
end
-- TODO: fi... |
0f010fc4c6630344b50e2bc628d88477af195fc0 | 624f6f2ae8b3b1adc5f8f67a365c51d5126be45a | /src/Init/Lean/Attributes.lean | 0df48e33b6e9ded1a4e3caa225f348f31892d55b | [
"Apache-2.0"
] | permissive | mhuisi/lean4 | 28d35a4febc2e251c7f05492e13f3b05d6f9b7af | dda44bc47f3e5d024508060dac2bcb59fd12e4c0 | refs/heads/master | 1,621,225,489,283 | 1,585,142,689,000 | 1,585,142,689,000 | 250,590,438 | 0 | 2 | Apache-2.0 | 1,602,443,220,000 | 1,585,327,814,000 | C | UTF-8 | Lean | false | false | 21,451 | lean | /-
Copyright (c) 2019 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Leonardo de Moura
-/
prelude
import Init.Lean.Scopes
import Init.Lean.Syntax
namespace Lean
inductive AttributeApplicationTime
| afterTypeChecking | afterCompilation | beforeE... |
8fd33d7c7a8efa0c819be237b4eb3a99c6262e10 | 4a3109c7bb55b7ea698278061cbb921b8db93b7f | /mm0-lean/x86/x86.lean | 523fca3779a58f727248aec443578007fa3fede1 | [
"CC0-1.0"
] | permissive | LongJohnCoder/mm0 | d233200cd7baae9c521cacfbbe162b2ff3bd993f | 0c556a21af92d552e859fd42794f57398c3964cf | refs/heads/master | 1,600,930,472,594 | 1,574,627,400,000 | 1,574,627,400,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 29,860 | lean | import x86.bits logic.relation
namespace x86
local notation `S` := bitvec.singleton
@[reducible] def regnum := bitvec 4
def RAX : regnum := 0
def RCX : regnum := 1
def RDX : regnum := 2
def RSP : regnum := 4
def RBP : regnum := 5
def RSI : regnum := 6
def RDI : regnum := 7
def REX := option (bitvec 4)
def REX.to_n... |
8c7e038a7300585eccc04fb09e6fa1453e51c66b | d1bbf1801b3dcb214451d48214589f511061da63 | /src/measure_theory/borel_space.lean | 78d9a31bdd852b7390fd355a39dc6682dac56c90 | [
"Apache-2.0"
] | permissive | cheraghchi/mathlib | 5c366f8c4f8e66973b60c37881889da8390cab86 | f29d1c3038422168fbbdb2526abf7c0ff13e86db | refs/heads/master | 1,676,577,831,283 | 1,610,894,638,000 | 1,610,894,638,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 55,526 | lean | /-
Copyright (c) 2017 Johannes Hölzl. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Johannes Hölzl, Yury Kudryashov
-/
import measure_theory.measure_space
import analysis.complex.basic
import analysis.normed_space.finite_dimension
import topology.G_delta
/-!
# Borel ... |
7f1017d6a10de019cb13561a0dfff87ec4ef70c2 | bb31430994044506fa42fd667e2d556327e18dfe | /src/measure_theory/integral/circle_integral.lean | 72912cc375d0b8382bc07ef48182d7e693097ed4 | [
"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 | 30,655 | lean | /-
Copyright (c) 2021 Yury Kudryashov. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Yury Kudryashov
-/
import measure_theory.integral.interval_integral
import analysis.normed_space.pointwise
import analysis.special_functions.non_integrable
import analysis.analytic.ba... |
20a091bc9ee82d5bf7c2be2d19f2ff74cbb465ac | 618003631150032a5676f229d13a079ac875ff77 | /src/algebra/group/prod.lean | 6a843fc9efa5ae2f8d1085a1497701cd78f45e90 | [
"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 | 8,918 | lean | /-
Copyright (c) 2020 Yury Kudryashov. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Simon Hudon, Patrick Massot, Yury Kudryashov
-/
import algebra.group.hom
import data.prod
/-!
# Monoid, group etc structures on `M × N`
In this file we define one-binop (`monoid`, `... |
614e7d1a5f3fb57c1f93b92e61bb3c2b7b34a980 | d1a52c3f208fa42c41df8278c3d280f075eb020c | /src/Lean/Data/Lsp.lean | 1d50d14bd413dead20dcace19089f603fd3d075e | [
"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 | 513 | lean | /-
Copyright (c) 2020 Marc Huisinga. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Marc Huisinga, Wojciech Nawrocki
-/
import Lean.Data.Lsp.Basic
import Lean.Data.Lsp.Capabilities
import Lean.Data.Lsp.Communication
import Lean.Data.Lsp.Diagnostics
import Lean.Data.Ls... |
b566c8731b9263dd6f57d4929351500a768e1ada | 8cae430f0a71442d02dbb1cbb14073b31048e4b0 | /src/data/lazy_list.lean | 77c3684dea281d624fe59119ff94881de079b9c8 | [
"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,903 | 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
-/
/-!
# Lazy lists
> THIS FILE IS SYNCHRONIZED WITH MATHLIB4.
> Any changes to this file require a corresponding PR to mathlib4.
The type `lazy_list α` is ... |
cb961d0cb2c302ea1fec4f50308f9c9548ead768 | 853df553b1d6ca524e3f0a79aedd32dde5d27ec3 | /src/ring_theory/fractional_ideal.lean | d93bbaf6b33db319a4075ee464b7a755349332f9 | [
"Apache-2.0"
] | permissive | DanielFabian/mathlib | efc3a50b5dde303c59eeb6353ef4c35a345d7112 | f520d07eba0c852e96fe26da71d85bf6d40fcc2a | refs/heads/master | 1,668,739,922,971 | 1,595,201,756,000 | 1,595,201,756,000 | 279,469,476 | 0 | 0 | null | 1,594,696,604,000 | 1,594,696,604,000 | null | UTF-8 | Lean | false | false | 24,210 | lean | /-
Copyright (c) 2020 Anne Baanen. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Anne Baanen
-/
import ring_theory.localization
import ring_theory.principal_ideal_domain
/-!
# Fractional ideals
This file defines fractional ideals of an integral domain and proves bas... |
cac70c364e9ce69ad6d4d4ea48cdfd54c7e9ec4f | 74addaa0e41490cbaf2abd313a764c96df57b05d | /Mathlib/algebra/category/Group/limits_auto.lean | abdabcf5a094b04e3e6305b874421737b056b2ac | [] | no_license | AurelienSaue/Mathlib4_auto | f538cfd0980f65a6361eadea39e6fc639e9dae14 | 590df64109b08190abe22358fabc3eae000943f2 | refs/heads/master | 1,683,906,849,776 | 1,622,564,669,000 | 1,622,564,669,000 | 371,723,747 | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 11,110 | 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 Mathlib.PrePort
import Mathlib.Lean3Lib.init.default
import Mathlib.algebra.category.Mon.limits
import Mathlib.algebra.category.Group.preadditive
import Mathli... |
2ea5b5e41b17fcc78bb5300f7a65d64d4b1435bb | 8cae430f0a71442d02dbb1cbb14073b31048e4b0 | /src/measure_theory/integral/circle_integral.lean | 3f553cf5c911daf737c1a30d5b6fa5dea2d0d3a3 | [
"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 | 30,799 | lean | /-
Copyright (c) 2021 Yury Kudryashov. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Yury Kudryashov
-/
import measure_theory.integral.interval_integral
import analysis.calculus.deriv.zpow
import analysis.normed_space.pointwise
import analysis.special_functions.non_in... |
da482bfd0d72a496c3dd8e24291dd17bef8ea2f2 | 05f637fa14ac28031cb1ea92086a0f4eb23ff2b1 | /tests/lean/lua12.lean | ddad50d2715260a416c458b4ec043e0696dcf742 | [
"Apache-2.0"
] | permissive | codyroux/lean0.1 | 1ce92751d664aacff0529e139083304a7bbc8a71 | 0dc6fb974aa85ed6f305a2f4b10a53a44ee5f0ef | refs/heads/master | 1,610,830,535,062 | 1,402,150,480,000 | 1,402,150,480,000 | 19,588,851 | 2 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 282 | lean | import Int.
variables x y z : Int
(*
import("util.lua")
local env = get_environment()
local plus = Const{"Int", "add"}
local x, y = Consts("x y")
local def = plus(plus(x, y), iVal(1000))
print(def, ":", env:type_check(def))
env:add_definition("sum", def)
*)
eval sum + 3
|
f4d4b9b1a5c694ee74d2994a76811925e178607d | 63abd62053d479eae5abf4951554e1064a4c45b4 | /src/order/filter/bases.lean | 7a5cdf9e9f6ed070180e9c727493cf5640cc7ebd | [
"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 | 36,160 | lean | /-
Copyright (c) 2020 Yury Kudryashov. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Author: Yury Kudryashov, Johannes Hölzl, Mario Carneiro, Patrick Massot
-/
import order.filter.basic
import data.set.countable
/-!
# Filter bases
A filter basis `B : filter_basis α` on a typ... |
6bb8a7375244c3c0146eb24ee99b2ad8ae2f5e05 | 54518a41e0f0c03b53f961e37a3ac2fed5cfeaa9 | /src/bvm_extras.lean | 2bc83d380eb050eaffcdc46f35a3880e064690a7 | [
"Apache-2.0"
] | permissive | cipher1024/flypitch | 9110cbfc99aa2195fe0a903fffc7034cdb00e87c | 357cd9cc344d7b6ea0c1f5d7232956b9ddb39359 | refs/heads/master | 1,598,733,974,743 | 1,572,308,681,000 | 1,572,992,816,000 | 218,170,521 | 0 | 0 | Apache-2.0 | 1,572,308,724,000 | 1,572,308,723,000 | null | UTF-8 | Lean | false | false | 143,218 | lean | /-
Copyright (c) 2019 The Flypitch Project. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Jesse Han, Floris van Doorn
-/
import .bvm
open lattice
universe u
local infix ` ⟹ `:65 := lattice.imp
local infix ` ⇔ `:50 := lattice.biimp
local prefix `p𝒫`:65 := pSet.p... |
1a7caa8fd706b94a00c59ac7cbfa3ea7bfaa4c80 | 6b2a480f27775cba4f3ae191b1c1387a29de586e | /group_rep1/matrix/action_matrix.lean | a4c2c99a6314aa36b226521e7d9170bfc63101f8 | [] | no_license | Or7ando/group_representation | a681de2e19d1930a1e1be573d6735a2f0b8356cb | 9b576984f17764ebf26c8caa2a542d248f1b50d2 | refs/heads/master | 1,662,413,107,324 | 1,590,302,389,000 | 1,590,302,389,000 | 258,130,829 | 0 | 1 | null | null | null | null | UTF-8 | Lean | false | false | 3,498 | lean | import matrix_representation
import action
import basis
open is_basis linear_map character
--set_option trace.simplify true
universes u v w w'
variables (G : Type u) [group G]
(R : Type v) [comm_ring R]
(X : Type w)[fintype X][decidable_eq X]
[mul_action G X]
#check @χ G R _ _ X _ _
... |
c75b36b7ca8cdd6cc4a2cbb01ae66df84577b6bf | f4bff2062c030df03d65e8b69c88f79b63a359d8 | /src/game/series/tempLevel02.lean | 1dde0b25d918a41baea7f0cca0ddefde3548b38f | [
"Apache-2.0"
] | permissive | adastra7470/real-number-game | 776606961f52db0eb824555ed2f8e16f92216ea3 | f9dcb7d9255a79b57e62038228a23346c2dc301b | refs/heads/master | 1,669,221,575,893 | 1,594,669,800,000 | 1,594,669,800,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 473 | lean | import game.series.tempLevel01
variable X : Type --hide
namespace xena
/-
Idea 02: if $\forall n \in \mathbb{N}, a_n \ge 0$,
$\sum a_n$ converges iff partial sums bounded above.
-/
/- Lemma
If $A$ and $B$ are sets of any type $X$, then
$$ A \subseteq A\cup B.$$
-/
theorem subset_union_left (A B : set X) : A ⊆ A ∪... |
d9d1655eae85390f101104313fbfd84e6e664158 | 367134ba5a65885e863bdc4507601606690974c1 | /src/data/polynomial/erase_lead.lean | a52169ce2ceb098cec23f3b01965b9d84feaa03c | [
"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 | 6,944 | lean | /-
Copyright (c) 2020 Damiano Testa. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Damiano Testa
-/
import data.polynomial.degree
import data.polynomial.degree.trailing_degree
/-!
# Erase the leading term of a univariate polynomial
## Definition
* `erase_lead f`: t... |
a18439fe3a6fb7c8bfc22560e86d8554496627b1 | 4d2583807a5ac6caaffd3d7a5f646d61ca85d532 | /src/data/list/lattice.lean | 12389b43dc1e252a3ea0ac33f52590526c11fde7 | [
"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 | 11,445 | lean | /-
Copyright (c) 2014 Parikshit Khanna. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Parikshit Khanna, Jeremy Avigad, Leonardo de Moura, Floris van Doorn, Mario Carneiro,
Scott Morrison
-/
import data.list.count
/-!
# Lattice structure of lists
This files prove bas... |
f7adeca9ac7acdd7022c7c791318b06d018af2ec | d436468d80b739ba7e06843c4d0d2070e43448e5 | /src/data/nat/basic.lean | a3bf718d28f02e8f073bd1605dd31d79a25eff5d | [
"Apache-2.0"
] | permissive | roro47/mathlib | 761fdc002aef92f77818f3fef06bf6ec6fc1a28e | 80aa7d52537571a2ca62a3fdf71c9533a09422cf | refs/heads/master | 1,599,656,410,625 | 1,573,649,488,000 | 1,573,649,488,000 | 221,452,951 | 0 | 0 | Apache-2.0 | 1,573,647,693,000 | 1,573,647,692,000 | null | UTF-8 | Lean | false | false | 52,562 | lean | /-
Copyright (c) 2014 Floris van Doorn. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Floris van Doorn, Leonardo de Moura, Jeremy Avigad, Mario Carneiro
Basic operations on the natural numbers.
-/
import logic.basic algebra.ordered_ring data.option.basic
universes u... |
62cc1d49f3303043013ca50859bbe045c34515fc | 9028d228ac200bbefe3a711342514dd4e4458bff | /src/logic/basic.lean | 0e2e03baef3ef4fd009962887ffce3e65761ce85 | [
"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 | 49,176 | lean | /-
Copyright (c) 2016 Jeremy Avigad. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Jeremy Avigad, Leonardo de Moura
-/
import tactic.doc_commands
/-!
# Basic logic properties
This file is one of the earliest imports in mathlib.
## Implementation notes
Theorems tha... |
9396f8deee90c651aa06362cc681712b8c10e2d9 | a9d0fb7b0e4f802bd3857b803e6c5c23d87fef91 | /tests/lean/run/vector2.lean | ea6ce5879fa9159178f196f463f67780addf5356 | [
"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 | 356 | 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)
end vec... |
5f1fd29ef7a0c8b7c473d0b56aaffd8fae887fc0 | 957a80ea22c5abb4f4670b250d55534d9db99108 | /tests/lean/bad_error5.lean | c80839b5b13b1dfe48ba9385c916419406fef603 | [
"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 | 212 | lean | structure S :=
(α : Type)
(β : unit)
structure T (c : S)
structure U (c: S) (A : c^.α)
definition V (c : S) : S :=
{
α := T c,
-- code generation error should be shown on tactic
β := by sorry
}
|
c84f4b53f2cd4677bf5240e097078d8317b6241b | fa02ed5a3c9c0adee3c26887a16855e7841c668b | /src/data/zmod/basic.lean | d65b32ca40226085da26baf046d1a667631403c7 | [
"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 | 30,765 | 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.int.modeq
import algebra.char_p.basic
import data.nat.totient
import ring_theory.ideal.operations
import tactic.fin_cases
/-!
# Integers mod `n`
Definition... |
484b6e3d8cac2ec68e467b9e99c8c98a7f83b6e4 | 853df553b1d6ca524e3f0a79aedd32dde5d27ec3 | /src/measure_theory/measure_space.lean | 44c4b40c151ae1cee6d992b9ec5cedaac2d24550 | [
"Apache-2.0"
] | permissive | DanielFabian/mathlib | efc3a50b5dde303c59eeb6353ef4c35a345d7112 | f520d07eba0c852e96fe26da71d85bf6d40fcc2a | refs/heads/master | 1,668,739,922,971 | 1,595,201,756,000 | 1,595,201,756,000 | 279,469,476 | 0 | 0 | null | 1,594,696,604,000 | 1,594,696,604,000 | null | UTF-8 | Lean | false | false | 37,680 | 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 measure_theory.outer_measure
import order.filter.countable_Inter
/-!
# Measure spaces
Given a measurable space `α`, a measure on `α` is a fun... |
4fa24af95bc6ce4f587b286a2c0a2d094b7e4d37 | fa02ed5a3c9c0adee3c26887a16855e7841c668b | /src/data/list/rotate.lean | 33d3be67aef43c87d1f8bbf3bdca31dfe901d101 | [
"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 | 13,950 | lean | /-
Copyright (c) 2019 Chris Hughes. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Chris Hughes, Yakov Pechersky
-/
import data.list.perm
import data.list.range
/-!
# List rotation
This file proves basic results about `list.rotate`, the list rotation.
## Main declar... |
a1844c0dc338bf5f3922edf0dfb439d713458978 | 690889011852559ee5ac4dfea77092de8c832e7e | /test/rcases.lean | 0a93c1a1cf3ec06e57610cdccef348b1396e4789 | [
"Apache-2.0"
] | permissive | williamdemeo/mathlib | f6df180148f8acc91de9ba5e558976ab40a872c7 | 1fa03c29f9f273203bbffb79d10d31f696b3d317 | refs/heads/master | 1,584,785,260,929 | 1,572,195,914,000 | 1,572,195,913,000 | 138,435,193 | 0 | 0 | Apache-2.0 | 1,529,789,739,000 | 1,529,789,739,000 | null | UTF-8 | Lean | false | false | 2,083 | 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 tactic.rcases
universe u
variables {α β γ : Type u}
example (x : α × β × γ) : true :=
begin
rcases x with ⟨a, b, c⟩,
{ guard_hyp a := α,
guard_hyp b := β,... |
a174ea9adc6a80b82fbf437b444613513c30ffe0 | 8e381650eb2c1c5361be64ff97e47d956bf2ab9f | /src/spectrum_of_a_ring/induced_continuous_map.lean | 8d72371c7ce9311110fa207bba1f00665bb58738 | [] | no_license | alreadydone/lean-scheme | 04c51ab08eca7ccf6c21344d45d202780fa667af | 52d7624f57415eea27ed4dfa916cd94189221a1c | refs/heads/master | 1,599,418,221,423 | 1,562,248,559,000 | 1,562,248,559,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 1,522 | lean | /-
Induced map from Spec(B) to Spec(A).
https://stacks.math.columbia.edu/tag/00E2
-/
import topology.basic
import ring_theory.ideal_operations
import spectrum_of_a_ring.zariski_topology
open lattice
universes u v
variables {α : Type u} {β : Type v} [comm_ring α] [comm_ring β]
variables (f : α → β) [is_ring_hom... |
ed2a2a957656398ba8d892f12660ec0dbacd8c4b | 36c7a18fd72e5b57229bd8ba36493daf536a19ce | /tests/lean/run/blast_ematch7.lean | aff177afbb3fd5ecccbb27791e50caac7ae2c211 | [
"Apache-2.0"
] | permissive | YHVHvx/lean | 732bf0fb7a298cd7fe0f15d82f8e248c11db49e9 | 038369533e0136dd395dc252084d3c1853accbf2 | refs/heads/master | 1,610,701,080,210 | 1,449,128,595,000 | 1,449,128,595,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 642 | lean | import algebra.ring data.int
open algebra
variables {A : Type} [s : ring A] (a b : A)
include s
set_option blast.subst false
set_option blast.simp false
set_option blast.ematch true
attribute zero_mul [forward]
example : a = 0 → a * b = 0 :=
by blast
open int
-- Remark: int is a non-recursive datatype. So, the ... |
d4c048aeb93981c643bd14ecde2022a496e28dc0 | 56e5b79a7ab4f2c52e6eb94f76d8100a25273cf3 | /src/tools/all_decls_jsonline.lean | 928fc784eb845bd4a388f58d64a5d6f871bc4c5d | [
"Apache-2.0"
] | permissive | DyeKuu/lean-tpe-public | 3a9968f286ca182723ef7e7d97e155d8cb6b1e70 | 750ade767ab28037e80b7a80360d213a875038f8 | refs/heads/master | 1,682,842,633,115 | 1,621,330,793,000 | 1,621,330,793,000 | 368,475,816 | 0 | 0 | Apache-2.0 | 1,621,330,745,000 | 1,621,330,744,000 | null | UTF-8 | Lean | false | false | 1,087 | lean | import ..utils.util
import all
section main
open tactic
meta def main : io unit := do {
args ← io.cmdline_args,
-- let dest : string := ((args.nth 0).get_or_else "./data/mathlib_decls.log"),
dest ← args.nth_except 0 "dest",
let ignore_decls_fn : environment → declaration → bool :=
(λ e d, declaration.is_a... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.