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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
36851d6561a38a689c8792edc4efc7f8349212a9 | 8cae430f0a71442d02dbb1cbb14073b31048e4b0 | /src/category_theory/sites/types.lean | 1c5d7b81c911c9a7532e5c4b89f3e9fa32e92b45 | [
"Apache-2.0"
] | permissive | leanprover-community/mathlib | 56a2cadd17ac88caf4ece0a775932fa26327ba0e | 442a83d738cb208d3600056c489be16900ba701d | refs/heads/master | 1,693,584,102,358 | 1,693,471,902,000 | 1,693,471,902,000 | 97,922,418 | 1,595 | 352 | Apache-2.0 | 1,694,693,445,000 | 1,500,624,130,000 | Lean | UTF-8 | Lean | false | false | 7,734 | 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 category_theory.sites.canonical
/-!
# Grothendieck Topology and Sheaves on the Category of Types
> THIS FILE IS SYNCHRONIZED WITH MATHLIB4.
> Any changes to this file... |
d8b10242eb6e6642c7e96db81da4eb1f695a0139 | 97f752b44fd85ec3f635078a2dd125ddae7a82b6 | /library/theories/measure_theory/sigma_algebra.lean | 1c23d8cb847e9a13185d276a2710da0f0c896617 | [
"Apache-2.0"
] | permissive | tectronics/lean | ab977ba6be0fcd46047ddbb3c8e16e7c26710701 | f38af35e0616f89c6e9d7e3eb1d48e47ee666efe | refs/heads/master | 1,532,358,526,384 | 1,456,276,623,000 | 1,456,276,623,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 9,383 | lean | /-
Copyright (c) 2016 Jacob Gross. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Jacob Gross, Jeremy Avigad
Sigma algebras.
-/
import data.set data.nat theories.topology.basic
open eq.ops set nat
structure sigma_algebra [class] (X : Type) :=
(sets : set (set X))
... |
ff70d13f08ac59efa91f3ccdbfbcdfa630bdb35d | a9d0fb7b0e4f802bd3857b803e6c5c23d87fef91 | /tests/lean/run/class11.lean | e45990c6837167635c23d0d202488d91070b5285 | [
"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 | 185 | lean | inductive [class] C {A : Type} : A → Prop
constant f {A : Type} (a : A) [H : C a] : Prop
noncomputable definition g {A : Type} (a b : A) {H1 : C a} {H2 : C b} : Prop :=
f a ∧ f b
|
67f69819fe007404266ba27eec6fdb14bd75e219 | 05b503addd423dd68145d68b8cde5cd595d74365 | /src/measure_theory/borel_space.lean | c9e81e65ff066613d10aab6947c808fa3d5e3457 | [
"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 | 29,534 | 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.measurable_space topology.instances.ennreal analysis.normed_space.basic
/-!
# Borel (measurable) space
## Main definitions
*... |
77ff98901c1c4a3b2566c0fd5529a4aeae0d4a3e | fa02ed5a3c9c0adee3c26887a16855e7841c668b | /src/data/rel.lean | 00ce75a8d0fa2ec89bc417b6458e5df43c833992 | [
"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 | 6,431 | lean | /-
Copyright (c) 2018 Jeremy Avigad. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Jeremy Avigad
Operations on set-valued functions, aka partial multifunctions, aka relations.
-/
import data.set.lattice
variables {α : Type*} {β : Type*} {γ : Type*}
/-- A relation o... |
3d5e267790225c4b9e3d6b07db67cf6d9135afcc | 35677d2df3f081738fa6b08138e03ee36bc33cad | /src/tactic/wlog.lean | e17096f710494469abb8a957d80229b6b3bfbf72 | [
"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 | 9,314 | lean | /-
Copyright (c) 2018 Johannes Hölzl. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Johannes Hölzl
Without loss of generality tactic.
-/
import tactic.tauto tactic.core data.list.perm
open expr tactic lean lean.parser
local postfix `?`:9001 := optional
local postfi... |
3dd32e35b6c60c27788dd5f924a94821df88b230 | 6e41ee3ac9b96e8980a16295cc21f131e731884f | /library/data/bool.lean | 36f1b16e72cc38a12c1bbe99690b7baf120c06e1 | [
"Apache-2.0"
] | permissive | EgbertRijke/lean | 3426cfa0e5b3d35d12fc3fd7318b35574cb67dc3 | 4f2e0c6d7fc9274d953cfa1c37ab2f3e799ab183 | refs/heads/master | 1,610,834,871,476 | 1,422,159,801,000 | 1,422,159,801,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 3,583 | lean | /-
Copyright (c) 2014 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Module: data.bool
Author: Leonardo de Moura
-/
import logic.eq
open eq eq.ops decidable
namespace bool
attribute bor [reducible]
attribute band [reducible]
theorem dichotomy (b... |
0cffc8cfa8570b35f005cde5dd26bb7655954819 | 46125763b4dbf50619e8846a1371029346f4c3db | /src/tactic/converter/binders.lean | 6f31530dca1317965f836be5c31a5880b051c9d1 | [
"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 | 7,777 | 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
Binder elimination
-/
import order tactic.converter.old_conv
namespace old_conv
open tactic monad
meta instance : monad_fail old_conv :=
{ fail := λ α s, (λr e, tacti... |
151a4f0ca0a990c56a0c29b379889faf20a8dd2b | e9dbaaae490bc072444e3021634bf73664003760 | /src/Problems/2006/IMO_2006_P1.lean | a9eef6c5121879641e4e9494a6d4b1b184965a87 | [
"Apache-2.0"
] | permissive | liaofei1128/geometry | 566d8bfe095ce0c0113d36df90635306c60e975b | 3dd128e4eec8008764bb94e18b932f9ffd66e6b3 | refs/heads/master | 1,678,996,510,399 | 1,581,454,543,000 | 1,583,337,839,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 354 | lean | import Geo.Geo.Core
namespace Geo
open Seg Triangle
def IMO_2006_P1 : Prop :=
∀ (A B C P : Point),
let I := incenter ⟨A, B, C⟩;
inside P (Triangle.mk A B C) →
uangle ⟨P, B, A⟩ + uangle ⟨P, C, A⟩ = uangle ⟨P, B, C⟩ + uangle ⟨P, C, B⟩ →
ulen (Seg.mk A P) ≥ ulen (Seg.mk A I) →
cong ⟨A, P⟩ ⟨A, I⟩ ↔ P = I
end Geo
|
fdfbb6e410b47cb4737d563934391aa63c6cf010 | 74addaa0e41490cbaf2abd313a764c96df57b05d | /Mathlib/data/pfunctor/multivariate/W_auto.lean | d0e85b72f2051e8b881f4844ef7a7727524d69b7 | [] | 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 | 12,362 | lean | /-
Copyright (c) 2018 Jeremy Avigad. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Author: Jeremy Avigad, Simon Hudon
-/
import Mathlib.PrePort
import Mathlib.Lean3Lib.init.default
import Mathlib.data.pfunctor.multivariate.basic
import Mathlib.PostPort
universes u l u_1 u_2
... |
6e8b7ad058c9541e18a67a9559e814501f3e7f63 | 63abd62053d479eae5abf4951554e1064a4c45b4 | /src/category_theory/monoidal/internal/Module.lean | ffe881f0ea08955ca408020923e448b1e7436b40 | [
"Apache-2.0"
] | permissive | Lix0120/mathlib | 0020745240315ed0e517cbf32e738d8f9811dd80 | e14c37827456fc6707f31b4d1d16f1f3a3205e91 | refs/heads/master | 1,673,102,855,024 | 1,604,151,044,000 | 1,604,151,044,000 | 308,930,245 | 0 | 0 | Apache-2.0 | 1,604,164,710,000 | 1,604,163,547,000 | null | UTF-8 | Lean | false | false | 5,229 | 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.Module.monoidal
import algebra.category.Algebra.basic
import category_theory.monoidal.Mon_
/-!
# `Mon_ (Module R) ≌ Algebra R`
The category... |
5f66860675f2d99d962f621cd0c16ce22ec5da30 | d29d82a0af640c937e499f6be79fc552eae0aa13 | /src/ring_theory/integral_closure.lean | 670e90734b5eb9bf7ea515844039d52cab1a1c9a | [
"Apache-2.0"
] | permissive | AbdulMajeedkhurasani/mathlib | 835f8a5c5cf3075b250b3737172043ab4fa1edf6 | 79bc7323b164aebd000524ebafd198eb0e17f956 | refs/heads/master | 1,688,003,895,660 | 1,627,788,521,000 | 1,627,788,521,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 25,830 | 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 ring_theory.adjoin.basic
import ring_theory.polynomial.scale_roots
import ring_theory.polynomial.tower
/-!
# Integral closure of a subring.
If A is an R-algebra then `... |
509307a7292af9d242b6d69711012607a6950571 | d1a52c3f208fa42c41df8278c3d280f075eb020c | /tests/leanpkg/cyclic/Cyclic/A/B.lean | 41c84985d2a232f841b90aa4306f44b57431b12f | [
"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 | 14 | lean | import Cyclic
|
275b6a68bff13b96d4a329a67d6112898354e4d7 | 624f6f2ae8b3b1adc5f8f67a365c51d5126be45a | /tests/compiler/partial.lean | b061a0f177a6b4e5a56ea6d9726b57d1adcccccd | [
"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 | 373 | lean | set_option pp.implicit true
set_option pp.binder_types false
-- set_option trace.compiler.boxed true
partial def contains : String → Char → Nat → Bool
| s, c, i =>
if s.atEnd i then false
else if s.get i == c then true
else contains s c (s.next i)
def main : IO Unit :=
let s1 := "hello";
IO.println (contai... |
62cd94be6bfb7d96a0f5e3888f29a570d8737f28 | a047a4718edfa935d17231e9e6ecec8c7b701e05 | /src/analysis/analytic/composition.lean | a12a57d57a242b106fb079486566ad72de805ef2 | [
"Apache-2.0"
] | permissive | utensil-contrib/mathlib | bae0c9fafe5e2bdb516efc89d6f8c1502ecc9767 | b91909e77e219098a2f8cc031f89d595fe274bd2 | refs/heads/master | 1,668,048,976,965 | 1,592,442,701,000 | 1,592,442,701,000 | 273,197,855 | 0 | 0 | null | 1,592,472,812,000 | 1,592,472,811,000 | null | UTF-8 | Lean | false | false | 56,619 | lean | /-
Copyright (c) 2020 Sébastien Gouëzel. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Sébastien Gouëzel, Johan Commelin
-/
import analysis.analytic.basic
import combinatorics.composition
/-!
# Composition of analytic functions
in this file we prove that the composi... |
617b9461e131467f138a887430052fc4823aceac | 8cae430f0a71442d02dbb1cbb14073b31048e4b0 | /src/category_theory/limits/shapes/binary_products.lean | 3a6301e637bd0753bbc6b8a03388aa2be4a06ef4 | [
"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 | 48,266 | lean | /-
Copyright (c) 2019 Scott Morrison. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Scott Morrison, Bhavik Mehta
-/
import category_theory.limits.shapes.terminal
import category_theory.discrete_category
import category_theory.epi_mono
import category_theory.over
/-!
... |
14d6a84e4c7671b08e01e0c0dbb22d7c76f27b8a | 6432ea7a083ff6ba21ea17af9ee47b9c371760f7 | /tests/lean/2161.lean | 7330d12a6115f658aa88516ba86b0c2a240edeb7 | [
"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 | 617 | lean | structure Foo where num : Nat deriving DecidableEq
namespace Foo
instance : OfNat Foo n := ⟨⟨n⟩⟩
/-! # Example 1 -/
@[irreducible] def mul (a b : Foo) : Foo :=
let d := Nat.gcd a.num 1
⟨(a.num.div d) * (b.num.div d)⟩
-- should fail fast; exact heartbeat count at time of writing is 31
set_option maxHeartbeats 3... |
fefe27b5f0406015555fa80dad0aa2b9739f6d4d | aa5a655c05e5359a70646b7154e7cac59f0b4132 | /stage0/src/Lean/Elab/Structure.lean | 3c21c569acc75bcdfe90ac12971c74534d642c09 | [
"Apache-2.0"
] | permissive | lambdaxymox/lean4 | ae943c960a42247e06eff25c35338268d07454cb | 278d47c77270664ef29715faab467feac8a0f446 | refs/heads/master | 1,677,891,867,340 | 1,612,500,005,000 | 1,612,500,005,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 27,364 | 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.Elab.Command
import Lean.Elab.DeclModifiers
import Lean.Elab.DeclUti... |
43a98e916fcd02beac3fe4a888c55b7fd0bf10fc | 55c7fc2bf55d496ace18cd6f3376e12bb14c8cc5 | /src/category_theory/full_subcategory.lean | eec75206f3146b4b343b06778f7cf3fa19d96468 | [
"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 | 3,852 | lean | /-
Copyright (c) 2017 Scott Morrison. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Scott Morrison, Reid Barton
-/
import category_theory.fully_faithful
import category_theory.groupoid
namespace category_theory
universes v u₁ u₂ -- declare the `v`'s first; see `cate... |
9facdeb8cf3205ed18eb31e4bd858f7541273de8 | 8cae430f0a71442d02dbb1cbb14073b31048e4b0 | /src/algebra/hom/iterate.lean | 4bd68c2cdae3cfdd7c28c8e5990897d7e2682e0d | [
"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 | 6,588 | lean | /-
Copyright (c) 2020 Yury Kudryashov. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Yury Kudryashov
-/
import algebra.group_power.lemmas
import group_theory.group_action.opposite
/-!
# Iterates of monoid and ring homomorphisms
> THIS FILE IS SYNCHRONIZED WITH MATHL... |
91da59ba8777fcdc759589aeb46bea96ee18df4d | b00eb947a9c4141624aa8919e94ce6dcd249ed70 | /tests/lean/run/newfrontend1.lean | f1d7064b33ebfb965bde237b94f25ae648a32474 | [
"Apache-2.0"
] | permissive | gebner/lean4-old | a4129a041af2d4d12afb3a8d4deedabde727719b | ee51cdfaf63ee313c914d83264f91f414a0e3b6e | refs/heads/master | 1,683,628,606,745 | 1,622,651,300,000 | 1,622,654,405,000 | 142,608,821 | 1 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 8,784 | lean | def x := 1
#check x
variable {α : Type}
def f (a : α) : α :=
a
def tst (xs : List Nat) : Nat :=
xs.foldl (init := 10) (· + ·)
#check tst [1, 2, 3]
#check fun x y : Nat => x + y
#check tst
#check (fun stx => if True then let e := stx; Pure.pure e else Pure.pure stx : Nat → Id Nat)
#check let x : Nat := 1; x
de... |
b5d0acd97521dff115f3b7610e70e92a7549ad0c | 80cc5bf14c8ea85ff340d1d747a127dcadeb966f | /src/algebraic_geometry/sheafed_space.lean | 301b25c03d23f8e25dcc48a8671aae8f90f82065 | [
"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 | 4,597 | 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 algebraic_geometry.presheafed_space
import topology.sheaves.sheaf
/-!
# Sheafed spaces
Introduces the category of topological spaces equipped with a sheaf (t... |
541196a681dd018f046bdb4d3ab84d719d4251c2 | 6432ea7a083ff6ba21ea17af9ee47b9c371760f7 | /tests/lean/run/extern.lean | 9e36419b29b240f8d8e2ec3687e89545eea10cba | [
"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 | 310 | lean | @[extern]
def foo (x : Nat) := x
@[extern "bla"]
def foo2 (x : Nat) := x
@[extern 2 "boo"]
def foo3 (x : Nat) := x
@[extern cpp "Lean::bla" llvm "lean_bla"]
def foo4 (x : Bool) := x
@[extern cpp inline "#1 && #2"]
def foo5 (x y : Bool) := x
-- @[extern cpp adhoc llvm "foo"]
-- def foo6 (x y : Bool) := x
|
bde1efbed4e4e491cd83f684568d8a5f72170cba | b7f22e51856f4989b970961f794f1c435f9b8f78 | /tests/lean/run/blast_cc_noconfusion.lean | 0e8c51c7402e3c988addb13e669e0677a2722979 | [
"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 | 1,284 | lean | import data.list
open nat
set_option blast.strategy "cc"
constant f : nat → nat
example (a b c d : nat) : f d = f b → succ a = f b → f d = succ c → a = c :=
by blast
example (a b c d e : nat) : f d = f b → f e = f b → succ a = f b → f e = succ c → a = c :=
by blast
example (a b c d e : nat) : f d = f b → f e = f b... |
e0a9faac7d835f4d867232dd3430875525238395 | 4ad6af7525e674c3cdc623c1495472954f3ce34c | /src/03_haskell.lean | ae2ab3d37079fd74813b71e735bbd32dd5a1b590 | [] | no_license | alcides/lean3_tutorial | 4bf48026f7cfa5ae80e9a75f46ca23364d455810 | 7a871e00c4fd5cb000929a59e1bd804a626ef277 | refs/heads/master | 1,663,719,613,974 | 1,591,141,389,000 | 1,591,141,389,000 | 268,600,781 | 5 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 4,448 | lean | /-
In a undergraduate class I have taught the past years, it was frequent to ask students
to prove some properties about their programs.
Here we follow the exercices students have been typically asked to do in pen and paper.
-/
/-
This is how you inductively define new types.
The haskell version:
data List a =... |
14bf991342ea66f5bab678ccecee34ab450e372f | 037dba89703a79cd4a4aec5e959818147f97635d | /src/2020/peano/peano_practice_questions.lean | c07b204c789aa6acbf229c508d038ff6053aa1a3 | [] | no_license | ImperialCollegeLondon/M40001_lean | 3a6a09298da395ab51bc220a535035d45bbe919b | 62a76fa92654c855af2b2fc2bef8e60acd16ccec | refs/heads/master | 1,666,750,403,259 | 1,665,771,117,000 | 1,665,771,117,000 | 209,141,835 | 115 | 12 | null | 1,640,270,596,000 | 1,568,749,174,000 | Lean | UTF-8 | Lean | false | false | 2,562 | lean | /- MATH40001 : Introduction to university mathematics.
Peano Axioms - Extra Practice, October 2020.
These questions are based on Dr Lawn's Practice Questions
on Blackboard.
This is a Lean file. It can be read with the Lean theorem prover.
You can work on this file online at the following URL:
or you can install ... |
52fb4f53f5db8ce513556904575b10ee99be143c | d0f9af2b0ace5ce352570d61b09019c8ef4a3b96 | /hw3/dm_box.lean | 4bcf40f5a783fe64b01270ebab166ef22d7688d6 | [] | no_license | jngo13/Discrete-Mathematics | 8671540ef2da7c75915d32332dd20c02f001474e | bf674a866e61f60e6e6d128df85fa73819091787 | refs/heads/master | 1,675,615,657,924 | 1,609,142,011,000 | 1,609,142,011,000 | 267,190,341 | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 1,280 | lean | -- Justin Ngo
-- jmn4fms
-- 2/3/20
-- Sullivan 2102-001
/-
3. [30 points]
Define a polymorphic ADT called dm_box. This type
builder takes one type argument. The intuitive
idea is that a dm_box contains one value of the
type specified by the type argument. Define dm_box
to have one constructor, mk, that takes one val... |
b1f6a9f8040e24084827e8cb231fd805a7b9a4cb | cf39355caa609c0f33405126beee2739aa3cb77e | /tests/lean/run/record4.lean | 9454f3b9dd7817661e6827af4322c467110c24ab | [
"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 | 185 | lean | structure point (A : Type) (B : Type) :=
mk :: (x : A) (y : B)
inductive color
| red | green | blue
structure color_point (A : Type) (B : Type) extends point A B :=
mk :: (c : color)
|
8d9df4687eb5c0f939e1c3ffdf82c02d7f21eff3 | 5d166a16ae129621cb54ca9dde86c275d7d2b483 | /tests/lean/run/smt_tests3.lean | 7815a0371d6efac4810d0909a73dad2536a973f5 | [
"Apache-2.0"
] | permissive | jcarlson23/lean | b00098763291397e0ac76b37a2dd96bc013bd247 | 8de88701247f54d325edd46c0eed57aeacb64baf | refs/heads/master | 1,611,571,813,719 | 1,497,020,963,000 | 1,497,021,515,000 | 93,882,536 | 1 | 0 | null | 1,497,029,896,000 | 1,497,029,896,000 | null | UTF-8 | Lean | false | false | 680 | lean | def f : nat → nat
| 0 := 1
| (n+1) := f n + 1
lemma ex(a : nat) : f a ≠ 0 :=
begin
induction a,
dsimp [f], intro x, contradiction,
dsimp [f],
change nat.succ (f a_1) ≠ 0,
apply nat.succ_ne_zero
end
lemma ex2 (a : nat) : f a ≠ 0 :=
begin [smt]
induction a,
{ intros, ematch_using [f] },
{ repeat {e... |
19a6a9c4898299777c3a6e3cfec401675e37fad1 | 947fa6c38e48771ae886239b4edce6db6e18d0fb | /src/field_theory/fixed.lean | 86caf68458c2013073913f3960a1e76ff6c17125 | [
"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 | 16,171 | 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.polynomial.group_ring_action
import field_theory.normal
import field_theory.separable
import field_theory.tower
/-!
# Fixed field under a group action.
This i... |
194c263c7fd81e02d6eb5d6a3af02644c6873707 | 8eeb99d0fdf8125f5d39a0ce8631653f588ee817 | /src/category_theory/category/pairwise.lean | 62efab647e67731dcc1af11a9419a5e22e147064 | [
"Apache-2.0"
] | permissive | jesse-michael-han/mathlib | a15c58378846011b003669354cbab7062b893cfe | fa6312e4dc971985e6b7708d99a5bc3062485c89 | refs/heads/master | 1,625,200,760,912 | 1,602,081,753,000 | 1,602,081,753,000 | 181,787,230 | 0 | 0 | null | 1,555,460,682,000 | 1,555,460,682,000 | null | UTF-8 | Lean | false | false | 4,356 | lean | /-
Copyright (c) 2020 Scott Morrison. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Scott Morrison
-/
import topology.sheaves.sheaf
import category_theory.limits.preserves.basic
/-!
# The category of "pairwise intersections".
Given `ι : Type v`, we build the diagra... |
72abda189abab45befab4dc382765910f5bee5f8 | 6432ea7a083ff6ba21ea17af9ee47b9c371760f7 | /src/lake/Lake/Util/Error.lean | 5e353ad2fefb5181316015fa13d1d9cb5c1eac23 | [
"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 | 1,143 | lean | /-
Copyright (c) 2021 Mac Malone. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Mac Malone
-/
namespace Lake
class MonadError (m : Type u → Type v) where
error {α : Type u} : String → m α
export MonadError (error)
instance [MonadLift m n] [MonadError m] : MonadEr... |
e1694d45f3f8f2a76c07d43cd57babb464a98a53 | 2c096fdfecf64e46ea7bc6ce5521f142b5926864 | /src/Lean/Widget/InteractiveDiagnostic.lean | 24d859d4b5b0679ce7c5542ceaef69c5e5ef9d8d | [
"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 | Kha/lean4 | 1005785d2c8797ae266a303968848e5f6ce2fe87 | b99e11346948023cd6c29d248cd8f3e3fb3474cf | refs/heads/master | 1,693,355,498,027 | 1,669,080,461,000 | 1,669,113,138,000 | 184,748,176 | 0 | 0 | Apache-2.0 | 1,665,995,520,000 | 1,556,884,930,000 | Lean | UTF-8 | Lean | false | false | 8,763 | lean | /-
Copyright (c) 2021 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Wojciech Nawrocki
-/
import Lean.Linter.UnusedVariables
import Lean.Server.Utils
import Lean.Widget.InteractiveGoal
namespace Lean.Widget
open Lsp Server
inductive StrictOrLa... |
8cbd35b5dc5d6eeb5c068ca64ab42c937f5ba570 | fa02ed5a3c9c0adee3c26887a16855e7841c668b | /src/order/filter/bases.lean | 3263a60f1b22ffe99ff59a28ddd1f7fc1f3359e2 | [
"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 | 37,231 | lean | /-
Copyright (c) 2020 Yury Kudryashov. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: 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 ty... |
1465636578eaba1a0d9bedc33a54c0b268ce19a6 | d1a52c3f208fa42c41df8278c3d280f075eb020c | /stage0/src/Lean/Meta/GeneralizeVars.lean | 4ee1322c6cd2ac69a912928622a1cfcd2abe7c3c | [
"Apache-2.0",
"LLVM-exception",
"NCSA",
"LGPL-3.0-only",
"LicenseRef-scancode-inner-net-2.0",
"BSD-3-Clause",
"LGPL-2.0-or-later",
"Spencer-94",
"LGPL-2.1-or-later",
"HPND",
"LicenseRef-scancode-pcre",
"ISC",
"LGPL-2.1-only",
"LicenseRef-scancode-other-permissive",
"SunPro",
"CMU-Mach"... | permissive | cipher1024/lean4 | 6e1f98bb58e7a92b28f5364eb38a14c8d0aae393 | 69114d3b50806264ef35b57394391c3e738a9822 | refs/heads/master | 1,642,227,983,603 | 1,642,011,696,000 | 1,642,011,696,000 | 228,607,691 | 0 | 0 | Apache-2.0 | 1,576,584,269,000 | 1,576,584,268,000 | null | UTF-8 | Lean | false | false | 2,748 | 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.Meta.Basic
import Lean.Util.CollectFVars
namespace Lean.Meta
/--
Add to `forbidden` all a set of `FVarId`s containing `targets` and all vari... |
f63a270d56a1044466062a27b7748ca2dae2a9d6 | cf39355caa609c0f33405126beee2739aa3cb77e | /tests/lean/extra/616b.hlean | 15cb89434be185461743518a0fc946b33910ad94 | [
"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 | 249 | hlean | import .f616a
open eq
definition my_elim {A P : Type*} {R : A → A → Type*} (Pc : A → P)
(Pp : Π⦃a a' : A⦄ (H : R a a'), Pc a = Pc a') (x : quotient R) : P :=
begin
induction x,
exact (Pc a),
refine (pathover_of_eq (Pp H))
end
|
4660162df34a48b00bead920ad30fa76c2af7794 | 4727251e0cd73359b15b664c3170e5d754078599 | /src/group_theory/index.lean | 79b83b7e5edc44938243d32e16299aed9dcddf4c | [
"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 | 11,214 | lean | /-
Copyright (c) 2021 Thomas Browning. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Thomas Browning
-/
import group_theory.quotient_group
import set_theory.cardinal.finite
/-!
# Index of a Subgroup
In this file we define the index of a subgroup, and prove several ... |
b4ec897b5eb4324e3741e31942db711e08ca0ab1 | 9dd3f3912f7321eb58ee9aa8f21778ad6221f87c | /tests/lean/char_lits.lean | 110961ef5f20eb1eebefeaa3e3f9bee64400d391 | [
"Apache-2.0"
] | permissive | bre7k30/lean | de893411bcfa7b3c5572e61b9e1c52951b310aa4 | 5a924699d076dab1bd5af23a8f910b433e598d7a | refs/heads/master | 1,610,900,145,817 | 1,488,006,845,000 | 1,488,006,845,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 199 | lean | import system.io
check #"a"
vm_eval #"a"
vm_eval #"\n"
vm_eval #"\\"
vm_eval put_str (list.cons #"\\" "aaa")
vm_eval put_str [#"\n"]
vm_eval put_str [#"\n"]
vm_eval put_str (list.cons #"\'" "aaa")
|
e9d66f1becfc811b6185596e8f4e7a4cb908c33c | 07c6143268cfb72beccd1cc35735d424ebcb187b | /test/library_search/basic.lean | 1a8320069cd66ba02c9f078dc11f730fe22bbec7 | [
"Apache-2.0"
] | permissive | khoek/mathlib | bc49a842910af13a3c372748310e86467d1dc766 | aa55f8b50354b3e11ba64792dcb06cccb2d8ee28 | refs/heads/master | 1,588,232,063,837 | 1,587,304,803,000 | 1,587,304,803,000 | 176,688,517 | 0 | 0 | Apache-2.0 | 1,553,070,585,000 | 1,553,070,585,000 | null | UTF-8 | Lean | false | false | 2,871 | 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 data.nat.basic
/- Turn off trace messages so they don't pollute the test build: -/
set_option trace.silence_library_search true
/- For debugging purposes, we ... |
823cf48c12a6492b0f83b172d13a363e919a41e8 | 302c785c90d40ad3d6be43d33bc6a558354cc2cf | /src/computability/partrec_code.lean | 126327b13f4f3a3972583d61c617db2ff566022c | [
"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 | 38,586 | lean | /-
Copyright (c) 2018 Mario Carneiro. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Mario Carneiro
Godel numbering for partial recursive functions.
-/
import computability.partrec
open encodable denumerable
namespace nat.partrec
open nat (mkpair)
theorem rfind' {f... |
86f1cdc18581bb10820673dfc16698111c7e7007 | d450724ba99f5b50b57d244eb41fef9f6789db81 | /src/Submissions/hw7.lean | 2fe2fb61969bc07ec71deba5cfd4a41b4f08229f | [] | no_license | jakekauff/CS2120F21 | 4f009adeb4ce4a148442b562196d66cc6c04530c | e69529ec6f5d47a554291c4241a3d8ec4fe8f5ad | refs/heads/main | 1,693,841,880,030 | 1,637,604,848,000 | 1,637,604,848,000 | 399,946,698 | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 11,138 | lean | import data.set
import tactic.ring
namespace relation
-- Jakob Kauffmann (jgk2qq); github: jakekauff13
-- Collaborated with: Jumi Hall (jah5py) &
-- Connor McCaffrey (cam7qp)
-- PRELIMINARY SETUP
/-
Preliminary set up. For the rest of this file,
we specify an arbitrary binary relation, r, on
an ... |
1920c4de2eba0c24f88a9bed36d4555afdec1856 | cf39355caa609c0f33405126beee2739aa3cb77e | /tests/lean/run/coe_univ_bug.lean | bd2a219d406fe7af17b2b15be7e000e50a6d249b | [
"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 | 425 | lean | open nat
def below (n : nat) : nat → Prop :=
λ i, i < n
def f {n : nat} (v : subtype (below n)) : nat :=
v + 1
universe variable u
instance pred2subtype {A : Type u} : has_coe_to_sort (A → Prop) _ :=
⟨(λ p : A → Prop, subtype p)⟩
instance coesubtype {A : Type u} {p : A → Prop} : has_coe (@coe_sort _ _ pred2subtype... |
d57a7b65f94690dc7f089f622a1aefbd59db81ed | e61a235b8468b03aee0120bf26ec615c045005d2 | /stage0/src/Init/Lean/Parser/Tactic.lean | 1f377b7e5584ed44ecf7faf61adb19589b0e6c36 | [
"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 | 3,397 | 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
-/
prelude
import Init.Lean.Parser.Term
namespace Lean
namespace Parser
namespace Tactic
def underscoreFn : ParserFn :=
fun c s =>
let s... |
a3bf8a4287c8cd131921fa5e2fbb70b07247acba | f1b175e38ffc5cc1c7c5551a72d0dbaf70786f83 | /analysis/topology/uniform_space.lean | 4f2e00da544166ce956aed70716d580de6c51b66 | [
"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 | 85,522 | lean | /-
Copyright (c) 2017 Johannes Hölzl. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Johannes Hölzl, Mario Carneiro, Patrick Massot
Theory of uniform spaces.
Uniform spaces are a generalization of metric spaces and topological groups. Many concepts directly
generaliz... |
cc2aab30842f43f566675f32b85aea79b1469706 | 4d2583807a5ac6caaffd3d7a5f646d61ca85d532 | /src/algebra/continued_fractions/computation/translations.lean | 90b9179c315121617a98bafe0b00b1659305b6ef | [
"Apache-2.0"
] | permissive | AntoineChambert-Loir/mathlib | 64aabb896129885f12296a799818061bc90da1ff | 07be904260ab6e36a5769680b6012f03a4727134 | refs/heads/master | 1,693,187,631,771 | 1,636,719,886,000 | 1,636,719,886,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 10,459 | lean | /-
Copyright (c) 2020 Kevin Kappelmann. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Kevin Kappelmann
-/
import algebra.continued_fractions.computation.basic
import algebra.continued_fractions.translations
/-!
# Basic Translation Lemmas Between Structures Defined for... |
974cdb6fceb9ac51b8baf0f27383dfca55039879 | d406927ab5617694ec9ea7001f101b7c9e3d9702 | /src/group_theory/group_action/sigma.lean | a7947d7f13176914fd4754379f87bb612827d846 | [
"Apache-2.0"
] | permissive | alreadydone/mathlib | dc0be621c6c8208c581f5170a8216c5ba6721927 | c982179ec21091d3e102d8a5d9f5fe06c8fafb73 | refs/heads/master | 1,685,523,275,196 | 1,670,184,141,000 | 1,670,184,141,000 | 287,574,545 | 0 | 0 | Apache-2.0 | 1,670,290,714,000 | 1,597,421,623,000 | Lean | UTF-8 | Lean | false | false | 2,272 | 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 group_theory.group_action.defs
/-!
# Sigma instances for additive and multiplicative actions
This file defines instances for arbitrary sum of additive and multip... |
4893f75988fb143e7ca12c0f8e6a8960e58cae23 | 4bcaca5dc83d49803f72b7b5920b75b6e7d9de2d | /src/Lean/Data/Position.lean | 3e1a0106e8b5cd2a91cfd459d104a0422b5cc3a4 | [
"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 | 2,500 | 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, Sebastian Ullrich
-/
import Lean.Data.Format
namespace Lean
structure Position where
line : Nat
column : Nat
deriving Inhabited, DecidableEq, Repr
... |
1012bb6b41be2014e3c7ed47787ba4ef51e48650 | 6432ea7a083ff6ba21ea17af9ee47b9c371760f7 | /tests/lean/run/congrThm.lean | b9934fd94652eb5f82afba6fa9010fdbf449bec7 | [
"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 | 339 | lean | import Lean
open Lean
open Lean.Meta
def test (f : Expr) : MetaM Unit := do
let some thm ← mkCongrSimp? f | unreachable!
check thm.type
check thm.proof
assert! (← isDefEq thm.type (← inferType thm.proof))
IO.println (← Meta.ppExpr thm.type)
#eval test (mkConst ``decide)
#eval test (mkConst ``Array.uget [l... |
62faf94a43fd84ed095c6185c4335fc54e03fd34 | e39f04f6ff425fe3b3f5e26a8998b817d1dba80f | /data/option.lean | ff0c53ce8a04e86bbf8fd96ac7c11a7c54beb9ba | [
"Apache-2.0"
] | permissive | kristychoi/mathlib | c504b5e8f84e272ea1d8966693c42de7523bf0ec | 257fd84fe98927ff4a5ffe044f68c4e9d235cc75 | refs/heads/master | 1,586,520,722,896 | 1,544,030,145,000 | 1,544,031,933,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 7,735 | lean | /-
Copyright (c) 2017 Mario Carneiro. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Mario Carneiro
-/
import logic.basic data.bool init.data.option.instances
tactic.interactive
namespace option
variables {α : Type*} {β : Type*}
instance has_mem : has_mem α (o... |
dde06eac810c4340ee32a6da4e940d6b78f750ad | ebf7140a9ea507409ff4c994124fa36e79b4ae35 | /src/hints/category_theory/exercise3/hint4.lean | 4b5b895ac374ab671c9729c3313f7ec424e7cb22 | [] | no_license | fundou/lftcm2020 | 3e88d58a92755ea5dd49f19c36239c35286ecf5e | 99d11bf3bcd71ffeaef0250caa08ecc46e69b55b | refs/heads/master | 1,685,610,799,304 | 1,624,070,416,000 | 1,624,070,416,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 430 | lean | import category_theory.equivalence
open category_theory
variables {C : Type*} [category C]
variables {D : Type*} [category D]
lemma equiv_reflects_mono {X Y : C} (f : X ⟶ Y) (e : C ≌ D)
(hef : mono (e.functor.map f)) : mono f :=
begin
split,
intros Z g h w,
apply e.functor.map_injective,
rw ← cancel_mono (... |
77df42cac3e0bdaa2479f20da040ba485e18f64d | 57aec6ee746bc7e3a3dd5e767e53bd95beb82f6d | /stage0/src/Init/System/IO.lean | 18e7a7f9693e6a12a94f0c49fb46fabc3eec6023 | [
"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 | 19,636 | lean | /-
Copyright (c) 2017 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Luke Nelson, Jared Roesch, Leonardo de Moura, Sebastian Ullrich
-/
prelude
import Init.Control.EState
import Init.Control.Reader
import Init.Data.String
import Init.Data.ByteArr... |
5c12cfd0fdf60c13eaa543c2c2b8ed19a29f9c40 | fa02ed5a3c9c0adee3c26887a16855e7841c668b | /src/data/int/sqrt.lean | 829aa955bb9d2f9f7159b6732bd30f7e33ca1c86 | [
"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,052 | lean | /-
Copyright (c) 2018 Kenny Lau. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Kenny Lau
-/
import data.nat.sqrt
/-!
# Square root of integers
This file defines the square root function on integers. `int.sqrt z` is the greatest integer `r`
such that `r * r ≤ z`. If ... |
663aa400f06c0ed9eccb8dad777170220913e6c7 | 4727251e0cd73359b15b664c3170e5d754078599 | /src/algebra/lie/universal_enveloping.lean | c8bed4612a51d05c5f16da99bced444f2ce399e3 | [
"Apache-2.0"
] | permissive | Vierkantor/mathlib | 0ea59ac32a3a43c93c44d70f441c4ee810ccceca | 83bc3b9ce9b13910b57bda6b56222495ebd31c2f | refs/heads/master | 1,658,323,012,449 | 1,652,256,003,000 | 1,652,256,003,000 | 209,296,341 | 0 | 1 | Apache-2.0 | 1,568,807,655,000 | 1,568,807,655,000 | null | UTF-8 | Lean | false | false | 4,884 | lean | /-
Copyright (c) 2020 Oliver Nash. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Oliver Nash
-/
import algebra.lie.of_associative
import algebra.ring_quot
import linear_algebra.tensor_algebra.basic
/-!
# Universal enveloping algebra
Given a commutative ring `R` and ... |
425744ad31f8d774e2c446cfa0c933bd3b5027d5 | 74addaa0e41490cbaf2abd313a764c96df57b05d | /Mathlib/algebra/lie/universal_enveloping.lean | 6ada08e97fa4508048863d9d96e3f1a847c81fce | [] | 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,497 | lean | /-
Copyright (c) 2020 Oliver Nash. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Oliver Nash
-/
import Mathlib.PrePort
import Mathlib.Lean3Lib.init.default
import Mathlib.algebra.lie.basic
import Mathlib.algebra.ring_quot
import Mathlib.linear_algebra.tensor_algebra
i... |
7b781718b519b4a2a97c84ef3ffa23ee9c246bb4 | e2fc96178628c7451e998a0db2b73877d0648be5 | /src/classes/context_free/basics/inclusion.lean | 25a5ff57fafc62a3df708049c38c4a281db814a3 | [
"BSD-2-Clause"
] | permissive | madvorak/grammars | cd324ae19b28f7b8be9c3ad010ef7bf0fabe5df2 | 1447343a45fcb7821070f1e20b57288d437323a6 | refs/heads/main | 1,692,383,644,884 | 1,692,032,429,000 | 1,692,032,429,000 | 453,948,141 | 7 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 3,892 | lean | import classes.context_free.basics.toolbox
import classes.context_sensitive.basics.inclusion
variables {T : Type}
def csg_of_cfg (g : CF_grammar T) : CS_grammar T :=
CS_grammar.mk g.nt g.initial (list.map (λ r : g.nt × (list (symbol T g.nt)),
csrule.mk [] r.fst [] r.snd) g.rules)
def grammar_of_cfg (g : CF_gramma... |
140de7eaa32f93cf8a668d6e50dc463140718b96 | 36c7a18fd72e5b57229bd8ba36493daf536a19ce | /library/data/nat/bquant.lean | e16dd5f7cf27d049a6bce02ff9702c8aefb5efd9 | [
"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 | 5,747 | 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
Show that "bounded" quantifiers: (∃x, x < n ∧ P x) and (∀x, x < n → P x)
are decidable when P is decidable.
This module allow us to write if-then-else express... |
7bf0df62316623a59029f65dae49167c77e95f1c | ec62863c729b7eedee77b86d974f2c529fa79d25 | /18/b.lean | 5fa05cd7dc8489369c729aacd82d1efc412b84ec | [] | no_license | rwbarton/advent-of-lean-4 | 2ac9b17ba708f66051e3d8cd694b0249bc433b65 | 417c7e2718253ba7148c0279fcb251b6fc291477 | refs/heads/main | 1,675,917,092,057 | 1,609,864,581,000 | 1,609,864,581,000 | 317,700,289 | 24 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 1,559 | lean | import Lean.Data.Json.Parser
open Lean Lean.Quickparse Lean.Json.Parser
inductive Node
| num : Int → Node
| add : Node → Node → Node
| mul : Node → Node → Node
instance : Inhabited Node := ⟨Node.num 0⟩
def Node.toString
| (Node.num n) => s!"{n}"
| (Node.add e₁ e₂) => "(" ++ e₁.toString ++ " + " ++ e₂.toString ++ ")... |
5fb56089f6d344c165ca06b8c3135d15e7b3673a | d406927ab5617694ec9ea7001f101b7c9e3d9702 | /src/algebra/module/equiv.lean | 7808fe6759225a1f7366488f341d0ba55eddd885 | [
"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 | 25,380 | lean | /-
Copyright (c) 2020 Anne Baanen. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Nathaniel Thomas, Jeremy Avigad, Johannes Hölzl, Mario Carneiro, Anne Baanen,
Frédéric Dupuis, Heather Macbeth
-/
import algebra.module.linear_map
/-!
# (Semi)linear equivalences
In t... |
f7bbcccb7b459bdbdeb58fc554bad417b24d6339 | 097294e9b80f0d9893ac160b9c7219aa135b51b9 | /instructor/include/includer.lean | 87d25e584c31a317ce451c42fe8141cd2cfc57bd | [] | no_license | AbigailCastro17/CS2102-Discrete-Math | cf296251be9418ce90206f5e66bde9163e21abf9 | d741e4d2d6a9b2e0c8380e51706218b8f608cee4 | refs/heads/main | 1,682,891,087,358 | 1,621,401,341,000 | 1,621,401,341,000 | 368,749,959 | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 42 | lean | import .includee
#check x
#check bor tt ff |
abeac8eefdd278a6d84d54a00fbdd2c834bad38b | 947fa6c38e48771ae886239b4edce6db6e18d0fb | /src/data/finite/basic.lean | cd984fca51e8361f3cf3ecb90e29f4efc3e26e0e | [
"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 | 5,137 | lean | /-
Copyright (c) 2022 Kyle Miller. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Kyle Miller
-/
import data.fintype.basic
/-!
# Finite types
In this file we prove some theorems about `finite` and provide some instances. This typeclass is a
`Prop`-valued counterpart ... |
7454fbf44f322b92b7ed505ad833130e6237478c | 8cae430f0a71442d02dbb1cbb14073b31048e4b0 | /src/probability/independence/basic.lean | 7223f9b23c01e1217b282b34cafc08b32763eb6c | [
"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 | 45,062 | lean | /-
Copyright (c) 2021 Rémy Degenne. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Rémy Degenne
-/
import measure_theory.constructions.pi
/-!
# Independence of sets of sets and measure spaces (σ-algebras)
> THIS FILE IS SYNCHRONIZED WITH MATHLIB4.
> Any changes to th... |
f1518a47a485b093ba5b1aab19c270bffeebdcf1 | 969dbdfed67fda40a6f5a2b4f8c4a3c7dc01e0fb | /src/computability/turing_machine.lean | 7dee8011654626d3c4b9ca322813a6fa1e9b28b1 | [
"Apache-2.0"
] | permissive | SAAluthwela/mathlib | 62044349d72dd63983a8500214736aa7779634d3 | 83a4b8b990907291421de54a78988c024dc8a552 | refs/heads/master | 1,679,433,873,417 | 1,615,998,031,000 | 1,615,998,031,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 109,916 | lean | /-
Copyright (c) 2018 Mario Carneiro. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Author: Mario Carneiro
-/
import algebra.order
import data.fintype.basic
import data.pfun
import tactic.apply_fun
import logic.function.iterate
/-!
# Turing machines
This file defines a seque... |
6bf69ccc7644d568a9a159b4e6410f77da059446 | 6dc0c8ce7a76229dd81e73ed4474f15f88a9e294 | /src/Lean/Data/Lsp/Diagnostics.lean | d2744731da5b990027123078b7749da901d9f650 | [
"Apache-2.0"
] | permissive | williamdemeo/lean4 | 72161c58fe65c3ad955d6a3050bb7d37c04c0d54 | 6d00fcf1d6d873e195f9220c668ef9c58e9c4a35 | refs/heads/master | 1,678,305,356,877 | 1,614,708,995,000 | 1,614,708,995,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 3,247 | 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.Json
import Lean.Data.Lsp.Basic
import Lean.Data.Lsp.Utf16
import Lean.Message
/-! Definitions and functionality for emitting dia... |
654ccbc89b5bd94c0bdd6b74fe165be9166e8c5b | 8cae430f0a71442d02dbb1cbb14073b31048e4b0 | /src/data/set/enumerate.lean | 78fe97525dd956ee515b9d61f170f9a0a5537fda | [
"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,061 | 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
-/
import data.set.lattice
import data.nat.order.basic
import tactic.wlog
/-!
# Set enumeration
> THIS FILE IS SYNCHRONIZED WITH MATHLIB4.
> Any changes to this file r... |
63d513891cfd7d64a09fad1fc9be849e3a18b864 | 9be442d9ec2fcf442516ed6e9e1660aa9071b7bd | /tests/lean/interactive/completion7.lean | 2c2abc6a514da962509d8772fa899dab33d29bac | [
"Apache-2.0",
"LLVM-exception",
"NCSA",
"LGPL-3.0-only",
"LicenseRef-scancode-inner-net-2.0",
"BSD-3-Clause",
"LGPL-2.0-or-later",
"Spencer-94",
"LGPL-2.1-or-later",
"HPND",
"LicenseRef-scancode-pcre",
"ISC",
"LGPL-2.1-only",
"LicenseRef-scancode-other-permissive",
"SunPro",
"CMU-Mach"... | permissive | EdAyers/lean4 | 57ac632d6b0789cb91fab2170e8c9e40441221bd | 37ba0df5841bde51dbc2329da81ac23d4f6a4de4 | refs/heads/master | 1,676,463,245,298 | 1,660,619,433,000 | 1,660,619,433,000 | 183,433,437 | 1 | 0 | Apache-2.0 | 1,657,612,672,000 | 1,556,196,574,000 | Lean | UTF-8 | Lean | false | false | 96 | lean | #check And
--^ textDocument/completion
#check And.
--^ textDocument/completion
|
081a452cb23e590d31b0f3fde06427261ab67329 | 35677d2df3f081738fa6b08138e03ee36bc33cad | /test/library_search/basic.lean | 2722c04970cdd16071c2432aaa7afa4a5e77b16d | [
"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 | 2,569 | 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 data.nat.basic
/- Turn off trace messages so they don't pollute the test build: -/
set_option trace.silence_library_search true
/- For debugging purposes, we ... |
2fb848f2da23ba190370959c5c386323ade7f269 | 63abd62053d479eae5abf4951554e1064a4c45b4 | /src/topology/separation.lean | 8dd71dfa17655c4cf5e360a1279486744c9f8018 | [
"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 | 23,700 | 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
Separation properties of topological spaces.
-/
import topology.subset_properties
open set filter
open_locale topological_space filter
local attribute ... |
e853ebad87359e95de315252b5a6e1a3c31705ae | 4727251e0cd73359b15b664c3170e5d754078599 | /src/tactic/linarith/lemmas.lean | d14c9a2497a22c006acc84571a797c520263c1a0 | [
"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,801 | lean | /-
Copyright (c) 2020 Robert Y. Lewis. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Robert Y. Lewis
-/
import algebra.order.ring
import data.int.basic
import tactic.norm_num
/-!
# Lemmas for `linarith`
This file contains auxiliary lemmas that `linarith` uses to co... |
db723153237dd8052ebf0deac9ef367af3637882 | 4727251e0cd73359b15b664c3170e5d754078599 | /src/analysis/box_integral/partition/subbox_induction.lean | 739d1b473f00f0377cfc2fc2d8e8819653c85a9a | [
"Apache-2.0"
] | permissive | Vierkantor/mathlib | 0ea59ac32a3a43c93c44d70f441c4ee810ccceca | 83bc3b9ce9b13910b57bda6b56222495ebd31c2f | refs/heads/master | 1,658,323,012,449 | 1,652,256,003,000 | 1,652,256,003,000 | 209,296,341 | 0 | 1 | Apache-2.0 | 1,568,807,655,000 | 1,568,807,655,000 | null | UTF-8 | Lean | false | false | 10,541 | 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.box.subbox_induction
import analysis.box_integral.partition.tagged
/-!
# Induction on subboxes
In this file we prove (see
`box_integr... |
52be73894aa172181053749340bfb9b4b242f151 | 618003631150032a5676f229d13a079ac875ff77 | /src/algebra/char_zero.lean | 9a6c9ec552c24342070b7ef8ac4491f9a4fc4093 | [
"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,305 | lean | /-
Copyright (c) 2014 Mario Carneiro. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Mario Carneiro
Natural homomorphism from the natural numbers into a monoid with one.
-/
import algebra.field
import data.nat.cast
import tactic.wlog
/-- Typeclass for monoids with ch... |
97179a2b0d718b8de4679a814369005734c7e48b | f5f7e6fae601a5fe3cac7cc3ed353ed781d62419 | /src/data/set/intervals.lean | 315f4bbf6f3f5b11f5878156c507e39c267f7357 | [
"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 | 10,622 | lean | /-
Copyright (c) 2017 Johannes Hölzl. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Johannes Hölzl, Mario Carneiro, Patrick Massot
Intervals
Naming conventions:
`i`: infinite
`o`: open
`c`: closed
Each interval has the name `I` + letter for left side + letter... |
80e11f8a4a3fb6789c9db529147f4f94c31987ba | 74addaa0e41490cbaf2abd313a764c96df57b05d | /Mathlib/tactic/scc.lean | 1c56014d8d57aac7a5242fc53dad56ae8744557a | [] | 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 | 7,566 | lean | /-
Copyright (c) 2018 Simon Hudon All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Simon Hudon
Tactics based on the strongly connected components (SCC) of a graph where
the vertices are propositions and the edges are implications found
in the context.
They are used for... |
3a58f24d8ef41b7b7367bb9e96328bcf6e313429 | 92b50235facfbc08dfe7f334827d47281471333b | /library/theories/number_theory/prime_factorization.lean | d4f993f8846b2d5dce1f8be4606a5485cc78531b | [
"Apache-2.0"
] | permissive | htzh/lean | 24f6ed7510ab637379ec31af406d12584d31792c | d70c79f4e30aafecdfc4a60b5d3512199200ab6e | refs/heads/master | 1,607,677,731,270 | 1,437,089,952,000 | 1,437,089,952,000 | 37,078,816 | 0 | 0 | null | 1,433,780,956,000 | 1,433,780,955,000 | null | UTF-8 | Lean | false | false | 9,735 | lean | /-
Copyright (c) 2015 Jeremy Avigad. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Jeremy Avigad
Multiplicity and prime factors. We have:
mult p n := the greatest power of p dividing n if p > 1 and n > 0, and 0 otherwise.
prime_factors n := the finite set... |
038827b26bc957a9264141c72b2353871f3558e0 | 7d5ad87afb17e514aee234fcf0a24412eed6384f | /src/abel.lean | 7e972615828e11a8bd0e44c40d89f9750deeb637 | [] | no_license | digama0/flypitch | 764f849eaef59c045dfbeca142a0f827973e70c1 | 2ec14b8da6a3964f09521d17e51f363d255b030f | refs/heads/master | 1,586,980,069,651 | 1,547,078,141,000 | 1,547,078,283,000 | 164,965,135 | 1 | 0 | null | 1,547,082,858,000 | 1,547,082,857,000 | null | UTF-8 | Lean | false | false | 2,601 | lean | import .fol tactic.tidy
open fol
local notation h :: t := dvector.cons h t
local notation `[]` := dvector.nil
local notation `[` l:(foldr `, ` (h t, dvector.cons h t) dvector.nil `]`) := l
namespace abel
section
/- The language of abelian groups -/
inductive abel_functions : ℕ → Type
| zero : abel_functions 0
| pl... |
412ef36bb150bac6bb4752d7fc86b9d92daaac68 | 94e33a31faa76775069b071adea97e86e218a8ee | /src/group_theory/specific_groups/dihedral.lean | e6c44a0b85319faeb21b995ab6b802179581516a | [
"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 | 5,859 | lean | /-
Copyright (c) 2020 Shing Tak Lam. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Shing Tak Lam
-/
import data.fintype.card
import data.zmod.basic
import group_theory.exponent
import data.int.parity
/-!
# Dihedral Groups
We define the dihedral groups `dihedral_grou... |
033553f64b0dd3534382b4241c59ac5c5de7e4e1 | 0408d6ea582e97d5cc55ac8a0980d26df896ce66 | /src/padics/padic_numbers.lean | 60ff4839e6472f5770f5cf31395887dfb69a69ec | [] | no_license | lean-forward/coe_tactic | bba94535c7fb6ef65fcd81bedc28062b238a1594 | d5c30df244c3402de6323a538e99b5324779a2cb | refs/heads/master | 1,588,474,971,049 | 1,557,135,293,000 | 1,557,135,293,000 | 178,387,237 | 1 | 0 | null | 1,556,542,286,000 | 1,553,856,413,000 | Lean | UTF-8 | Lean | false | false | 30,070 | lean | /-
Copyright (c) 2018 Robert Y. Lewis. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Robert Y. Lewis
Define the p-adic numbers (rationals) ℚ_p as the completion of ℚ wrt the p-adic norm.
Show that the p-adic norm extends to ℚ_p, that ℚ is embedded in ℚ_p, and that ℚ_... |
6870a839dc63e41586689783ef81518873e93735 | e151e9053bfd6d71740066474fc500a087837323 | /src/hott/types/nat/default.lean | a05f644c346f7004b77b9236f7154a11f1b0da4f | [
"Apache-2.0"
] | permissive | daniel-carranza/hott3 | 15bac2d90589dbb952ef15e74b2837722491963d | 913811e8a1371d3a5751d7d32ff9dec8aa6815d9 | refs/heads/master | 1,610,091,349,670 | 1,596,222,336,000 | 1,596,222,336,000 | 241,957,822 | 0 | 0 | Apache-2.0 | 1,582,222,839,000 | 1,582,222,838,000 | null | UTF-8 | Lean | false | false | 196 | 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
-/
import .basic .order .sub .hott .div
|
434897738f06073bb538e833a24d7345f4615f6d | 69d4931b605e11ca61881fc4f66db50a0a875e39 | /src/topology/metric_space/pi_Lp.lean | a5ca82948f30e611c91d3fcc917db986f0d9a782 | [
"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 | 15,311 | lean | /-
Copyright (c) 2020 Sébastien Gouëzel. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Sébastien Gouëzel
-/
import analysis.mean_inequalities
/-!
# `L^p` distance on finite products of metric spaces
Given finitely many metric spaces, one can put the max distance on t... |
0328172ddbae8a6f3951beac7e39004b46ca2a5a | e898bfefd5cb60a60220830c5eba68cab8d02c79 | /uexp/src/uexp/rules/ex2sigmod92.lean | 8827760e641faebe3a8648b2dd5c9023cbaf89d2 | [
"BSD-2-Clause"
] | permissive | kkpapa/Cosette | 9ed09e2dc4c1ecdef815c30b5501f64a7383a2ce | fda8fdbbf0de6c1be9b4104b87bbb06cede46329 | refs/heads/master | 1,584,573,128,049 | 1,526,370,422,000 | 1,526,370,422,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 2,139 | lean | import ..sql
import ..tactics
import ..u_semiring
import ..extra_constants
import ..UDP
import ..canonize
import ..cosette_tactics
set_option profiler true
open Expr
open Proj
open Pred
open SQL
variable i1000 : const datatypes.int
theorem rule :
forall (Γ scm_itm scm_itp : Schema)
(rel_itm : relatio... |
7f12b22079631c2517cf7453074079c9a81b4b2d | 46125763b4dbf50619e8846a1371029346f4c3db | /src/ring_theory/localization.lean | 8834fc012acef7a28add664adc3c5581bf3d8693 | [
"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 | 27,092 | 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... |
faa4d2cee94c8e6ef007e1b84e3d882c82efab86 | e151e9053bfd6d71740066474fc500a087837323 | /src/hott/algebra/ordered_ring.lean | 7a0df989b3bf0cb70b742f74e13b069c640f67d1 | [
"Apache-2.0"
] | permissive | daniel-carranza/hott3 | 15bac2d90589dbb952ef15e74b2837722491963d | 913811e8a1371d3a5751d7d32ff9dec8aa6815d9 | refs/heads/master | 1,610,091,349,670 | 1,596,222,336,000 | 1,596,222,336,000 | 241,957,822 | 0 | 0 | Apache-2.0 | 1,582,222,839,000 | 1,582,222,838,000 | null | UTF-8 | Lean | false | false | 30,298 | lean | /-
Copyright (c) 2014 Jeremy Avigad. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Jeremy Avigad
Here an "ordered_ring" is partially ordered ring, which is ordered with respect to both a weak
order and an associated strict order. Our numeric structures (int, rat, and... |
ad5d8112057836ec2b27d94dd6bc5d354ef901c5 | 6fbf10071e62af7238f2de8f9aa83d55d8763907 | /answers/exam1-key.lean | d91767f5741510babae99a9d067c6770d5620c83 | [] | no_license | HasanMukati/uva-cs-dm-s19 | ee5aad4568a3ca330c2738ed579c30e1308b03b0 | 3e7177682acdb56a2d16914e0344c10335583dcf | refs/heads/master | 1,596,946,213,130 | 1,568,221,949,000 | 1,568,221,949,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 6,562 | lean |
/-
POINTS: Welcome to the first CS2102 exam. The exam has 12
questions. Points for each question are as indicated, for a
total of 100 points.
READ CAREFULLY: If you are unable to answer a question in
a way that Lean accepts as syntactically correct, *comment
out your malformed answer*. Otherwise an error in your a... |
d57d51d563f2928bc93181db56f9e78e450aaffa | 968e2f50b755d3048175f176376eff7139e9df70 | /examples/prop_logic_theory/unnamed_1813.lean | 1e1f1071f861e77e2ccb9c9904e4b1c2b96a751e | [] | no_license | gihanmarasingha/mth1001_sphinx | 190a003269ba5e54717b448302a27ca26e31d491 | 05126586cbf5786e521be1ea2ef5b4ba3c44e74a | refs/heads/master | 1,672,913,933,677 | 1,604,516,583,000 | 1,604,516,583,000 | 309,245,750 | 1 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 466 | lean | variables p q r : Prop
-- BEGIN
example (h : p ∨ q) (k₁ : p → r) (k₂ : q → r) : r :=
begin
-- By or elim. on `h`, it suffices
-- 1. to show `r` on the assumption `h₁ : p` and
-- 2. to show `r` on the assumption `h₂ : q`.
cases h with h₁ h₂,
{ show r, from k₁ h₁, }, -- We show `r` by implication elimination on ... |
0f67e9cf62304bccba0bb8ef5154beb082ad19e3 | ce6917c5bacabee346655160b74a307b4a5ab620 | /src/ch5/ex0603.lean | 7da401961e49710a3ba3efbe56bbfd37c0f047b7 | [] | 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 | 113 | lean | variables (f : ℕ → ℕ) (k : ℕ)
example (h₁ : f 0 = 0) (h₂ : k = 0) : f k = 0 :=
by rw [h₂, h₁]
|
5efa5cb3946a1618e0cab6b9d5a92ebe8e8f718c | 94e33a31faa76775069b071adea97e86e218a8ee | /src/tactic/congrm.lean | 887620cf228d6c1bd888b4878b7640a70e21a830 | [
"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 | 5,084 | lean | /-
Copyright (c) 2022 Damiano Testa. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Gabriel Ebner, Damiano Testa
-/
import tactic.interactive
/-! `congrm`: `congr` with pattern-matching
`congrm e` gives to the use the functionality of using `congr` with an expression... |
3248d740ddaf2c208c1ac4df146814c87f9f1ad8 | 9be442d9ec2fcf442516ed6e9e1660aa9071b7bd | /src/Lean/Elab/Import.lean | 002c8a8d45c93202bfd73bfcda177928d64332f0 | [
"Apache-2.0",
"LLVM-exception",
"NCSA",
"LGPL-3.0-only",
"LicenseRef-scancode-inner-net-2.0",
"BSD-3-Clause",
"LGPL-2.0-or-later",
"Spencer-94",
"LGPL-2.1-or-later",
"HPND",
"LicenseRef-scancode-pcre",
"ISC",
"LGPL-2.1-only",
"LicenseRef-scancode-other-permissive",
"SunPro",
"CMU-Mach"... | permissive | EdAyers/lean4 | 57ac632d6b0789cb91fab2170e8c9e40441221bd | 37ba0df5841bde51dbc2329da81ac23d4f6a4de4 | refs/heads/master | 1,676,463,245,298 | 1,660,619,433,000 | 1,660,619,433,000 | 183,433,437 | 1 | 0 | Apache-2.0 | 1,657,612,672,000 | 1,556,196,574,000 | Lean | UTF-8 | Lean | false | false | 2,517 | lean | /-
Copyright (c) 2019 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Leonardo de Moura, Sebastian Ullrich
-/
import Lean.Parser.Module
import Lean.Data.Json
namespace Lean.Elab
def headerToImports (header : Syntax) : List Import :=
let import... |
9c800a8f39f7bb67c2d1c867718ec6ee50ff4bc2 | ad0c7d243dc1bd563419e2767ed42fb323d7beea | /analysis/topology/uniform_space.lean | 710833c9e4b7d9f8b207bf50e9480e916d0e0203 | [
"Apache-2.0"
] | permissive | sebzim4500/mathlib | e0b5a63b1655f910dee30badf09bd7e191d3cf30 | 6997cafbd3a7325af5cb318561768c316ceb7757 | refs/heads/master | 1,585,549,958,618 | 1,538,221,723,000 | 1,538,221,723,000 | 150,869,076 | 0 | 0 | Apache-2.0 | 1,538,229,323,000 | 1,538,229,323,000 | null | UTF-8 | Lean | false | false | 84,405 | lean | /-
Copyright (c) 2017 Johannes Hölzl. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Johannes Hölzl, Mario Carneiro, Patrick Massot
Theory of uniform spaces.
Uniform spaces are a generalization of metric spaces and topological groups. Many concepts directly
generaliz... |
6460a4d8023b24cb8e53203a11f4422ababb194b | b7f22e51856f4989b970961f794f1c435f9b8f78 | /tests/lean/run/blast_rec_eq.lean | 35354ceb66d7f14ad0415d52b716441a6dc41a15 | [
"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 | 402 | lean | open nat
lemma addz [simp] : ∀ a : nat, a + 0 = a := sorry
lemma zadd [simp] : ∀ a : nat, 0 + a = a := sorry
lemma adds [simp] : ∀ a b : nat, a + succ b = succ (a + b) := sorry
lemma sadd [simp] : ∀ a b : nat, succ a + b = succ (a + b) := sorry
definition comm : ∀ a b : nat, a + b = b + a
| a 0 := by si... |
dd73aa562d84ac4df669c66b43a6f363f60c054e | 2c41ae31b2b771ad5646ad880201393f5269a7f0 | /Lean/Qualities/CyberCapable.lean | 7add5735fc9e649fb4ae4bd0be7aa5dc847570d6 | [] | no_license | kevinsullivan/Boehm | 926f25bc6f1a8b6bd47d333d936fdfc278228312 | 55208395bff20d48a598b7fa33a4d55a2447a9cf | refs/heads/master | 1,586,127,134,302 | 1,488,252,326,000 | 1,488,252,326,000 | 32,836,930 | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 689 | lean | -- Cyber Capable
/-
[CyberCapable] is parameterized by an instance of type [SystemType], and it's a sub-attribute to [MissionEffective].
An instance of type [SystemType] is deemed [CyberCapable] if and only if all the requirements are satisfied.
-/
import SystemModel.System
inductive CyberCapable (sys_type: ... |
d598b82fd8f3a831b598c62f5930047af3fb08a3 | 618003631150032a5676f229d13a079ac875ff77 | /src/ring_theory/polynomial.lean | 283d52c3b9ef28c7eba000d6cc10531b01131164 | [
"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 | 18,587 | lean | /-
Copyright (c) 2019 Kenny Lau. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Kenny Lau
Ring-theoretic supplement of data.polynomial.
Main result: Hilbert basis theorem, that if a ring is noetherian then so is its polynomial ring.
-/
import data.mv_polynomial
impor... |
713d51a190af02c8f306fcbefadc8c97c9921a81 | b7f22e51856f4989b970961f794f1c435f9b8f78 | /tests/lean/slow/list_elab2.lean | cfd3d20ab185de003c255a81cdd12a7e94de7afb | [
"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,590 | 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
----------------------------------------... |
309e2f0616ac14684155a07f1b0eb171e998a8ec | 618003631150032a5676f229d13a079ac875ff77 | /src/algebra/category/Group/images.lean | 32c082b6430a4dfce7ecb433fc1111e355e6df30 | [
"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 | 2,647 | 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.Group
/-!
# The category of commutative additive groups has images.
-/
open category_theory
open category_theory.limits
universe u
namespa... |
a26c04e96c8da586cf995e0b99bc0f63d4f471ff | 7b681d6cc18477cf6b60470d9782923d3ea63915 | /W3-proof.lean | dd3d7c01cc945d670e640bd7b7dc447b3990d73a | [] | no_license | osoulim/LEAN | a7458f597abbe5c36ebbb3f36eab29a4c60f5140 | 5e0dc240e86e392fdab4b2ffdcc3174c0cce7b66 | refs/heads/master | 1,591,850,481,195 | 1,561,547,647,000 | 1,561,547,647,000 | 193,852,039 | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 313 | lean | -- ∀x A(x) -> (∀x B(x) -> ∀y(A(y) ∧ B(y)))
variable U: Type
variables A B: U -> Prop
example : (∀ x, A x) -> (∀ x, B x) -> (∀ x, A x ∧ B x) :=
assume hA: ∀ x, A x,
assume hB: ∀ x, B x,
assume y,
have pAy: A y, from hA y,
have pBy: B y, from hB y,
show A y ∧ B y, from and.intro pAy pBy |
de25a6bf5475c2e818f4a2f127edea9383877a08 | 1b8f093752ba748c5ca0083afef2959aaa7dace5 | /src/category_theory/examples/TopRing.lean | 62d1b93018e45270cbf9d95f739884a188ebfcc5 | [] | no_license | khoek/lean-category-theory | 7ec4cda9cc64a5a4ffeb84712ac7d020dbbba386 | 63dcb598e9270a3e8b56d1769eb4f825a177cd95 | refs/heads/master | 1,585,251,725,759 | 1,539,344,445,000 | 1,539,344,445,000 | 145,281,070 | 0 | 0 | null | 1,534,662,376,000 | 1,534,662,376,000 | null | UTF-8 | Lean | false | false | 927 | lean | import category_theory.category
import analysis.topology.topological_structures
universes u
open category_theory
namespace category_theory.examples
structure TopRing :=
{β : Type u}
[Ring : comm_ring β]
[Top : topological_space β]
[TopRing : topological_ring β]
instance TopRing_comm_ring (R : TopRing) : comm_ring ... |
1d9c443a67a07a614414da22ba271dc6b6adb502 | ecea1a568b8a7bdfef1206845f7dc2e62b85b6b3 | /tests/lean/run/check_constants.lean | d437e202ccddd256aa568c47445e7cf3c19e8728 | [
"Apache-2.0"
] | permissive | ndcroos/lean | b1b6de42ee4d3ded05829373e505e09614d4acdf | 6919d231413705c892eec02bdacd7d7d916524c8 | refs/heads/master | 1,625,911,732,192 | 1,507,549,407,000 | 1,507,549,407,000 | 106,106,359 | 0 | 0 | null | 1,507,388,410,000 | 1,507,388,410,000 | null | UTF-8 | Lean | false | false | 15,025 | lean | -- DO NOT EDIT, automatically generated file, generator scripts/gen_constants_cpp.py
import smt system.io
open tactic
meta def script_check_id (n : name) : tactic unit :=
do env ← get_env, (env^.get n >> return ()) <|> (guard $ env^.is_namespace n) <|> (attribute.get_instances n >> return ()) <|> fail ("identifier '" +... |
cac5b74cde7f8bf6a16206ee36bdd59613953aa5 | 4727251e0cd73359b15b664c3170e5d754078599 | /src/data/real/ennreal.lean | 6c3306acf2d9a9ee82914a04ff10ba68f38df24d | [
"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 | 76,937 | lean | /-
Copyright (c) 2017 Johannes Hölzl. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Johannes Hölzl, Yury Kudryashov
-/
import data.real.nnreal
/-!
# Extended non-negative reals
We define `ennreal = ℝ≥0∞ := with_top ℝ≥0` to be the type of extended nonnegative real nu... |
e58edee57e542719c3d631c5ece1c39fd63364c3 | 74addaa0e41490cbaf2abd313a764c96df57b05d | /Mathlib/category_theory/conj.lean | e708cbaf67d6f96c3a63291bd472c70121781656 | [] | 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 | 7,153 | lean | /-
Copyright (c) 2019 Yury Kudryashov. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Yury Kudryashov
-/
import Mathlib.PrePort
import Mathlib.Lean3Lib.init.default
import Mathlib.category_theory.endomorphism
import Mathlib.algebra.group_power.default
import Mathlib.Po... |
c06687fba9914f38611ab665bda67ac63aaf7fd2 | 55c7fc2bf55d496ace18cd6f3376e12bb14c8cc5 | /src/data/matrix/basic.lean | eec3b8ff4664fea7498e751b004b2e6b2ac2d18f | [
"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 | 28,197 | lean | /-
Copyright (c) 2018 Ellen Arlt. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Ellen Arlt, Blair Shi, Sean Leather, Mario Carneiro, Johan Commelin
-/
import algebra.big_operators.pi
import algebra.module.pi
import algebra.big_operators.ring
/-!
# Matrices
-/
univers... |
eef0f2611c77e7193a7ed01cf49ba918a665577e | 432d948a4d3d242fdfb44b81c9e1b1baacd58617 | /src/topology/algebra/group.lean | 5934c1069656c67904c4551df8d2d321c4188c30 | [
"Apache-2.0"
] | permissive | JLimperg/aesop3 | 306cc6570c556568897ed2e508c8869667252e8a | a4a116f650cc7403428e72bd2e2c4cda300fe03f | refs/heads/master | 1,682,884,916,368 | 1,620,320,033,000 | 1,620,320,033,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 28,716 | lean | /-
Copyright (c) 2017 Johannes Hölzl. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Johannes Hölzl, Mario Carneiro, Patrick Massot
-/
import order.filter.pointwise
import group_theory.quotient_group
import topology.algebra.monoid
import topology.homeomorph
/-!
# The... |
b6cd9379ca6413395c2cc2818bdc98d2ba94cdd7 | 32025d5c2d6e33ad3b6dd8a3c91e1e838066a7f7 | /tests/lean/run/generalizeTelescope.lean | 8949d90c4e786ef024fc6360a729c2b4d0373e96 | [
"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 | 1,393 | lean | import Lean
open Lean
open Lean.Meta
inductive Vec (α : Type) : Nat → Type
| nil : Vec 0
| cons {n} : α → Vec n → Vec (n+1)
set_option trace.Meta.debug true
def nat := mkConst `Nat
def succ := mkConst `Nat.succ
def tst1 : MetaM Unit :=
withLocalDeclD `n nat $ fun n => do
let n1 := mkApp succ n;
let vecN1 :... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.