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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
fdb615cfc72a5790aa49a68f4095553aa6d72bcf | 8cae430f0a71442d02dbb1cbb14073b31048e4b0 | /src/topology/uniform_space/matrix.lean | 476be2d9ca9d335bcfb2a93c6855360b0edaf98b | [
"Apache-2.0"
] | permissive | leanprover-community/mathlib | 56a2cadd17ac88caf4ece0a775932fa26327ba0e | 442a83d738cb208d3600056c489be16900ba701d | refs/heads/master | 1,693,584,102,358 | 1,693,471,902,000 | 1,693,471,902,000 | 97,922,418 | 1,595 | 352 | Apache-2.0 | 1,694,693,445,000 | 1,500,624,130,000 | Lean | UTF-8 | Lean | false | false | 1,337 | lean | /-
Copyright (c) 2022 Eric Wieser. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Eric Wieser, Heather Macbeth
-/
import topology.uniform_space.pi
import data.matrix.basic
/-!
# Uniform space structure on matrices
> THIS FILE IS SYNCHRONIZED WITH MATHLIB4.
> Any chan... |
90b5e439f182421a14e0cf352f56e9e09f1a428f | 6432ea7a083ff6ba21ea17af9ee47b9c371760f7 | /src/Lean/Compiler/LCNF/Closure.lean | 788e99f61b6e3df33e55310a8850f35e52cdad4f | [
"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 | 5,712 | lean | /-
Copyright (c) 2022 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Leonardo de Moura
-/
import Lean.Util.ForEachExprWhere
import Lean.Compiler.LCNF.CompilerM
namespace Lean.Compiler.LCNF
namespace Closure
/-!
# Dependency collector for code s... |
e03fb0e16eed6ddd25a7ff0179bdd154266d5772 | fa02ed5a3c9c0adee3c26887a16855e7841c668b | /src/data/real/irrational.lean | 47f2dbefdfa0e162b293ff45f4fd43153d8fe156 | [
"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 | 9,623 | lean | /-
Copyright (c) 2018 Mario Carneiro. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Mario Carneiro, Abhimanyu Pallavi Sudhir, Jean Lo, Calle Sönne, Yury Kudryashov
-/
import data.real.sqrt
import data.rat.sqrt
import ring_theory.int.basic
import data.polynomial.eval
i... |
f62f64793dd1b2572eea082ddd66b48dedf103bf | 9dd3f3912f7321eb58ee9aa8f21778ad6221f87c | /tests/lean/run/coe_univ_bug.lean | d947b33137fb4031d61bdd2eb1ecb3e78bf62170 | [
"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 | 431 | 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) :=
⟨Type u, (λ p : A → Prop, subtype p)⟩
instance coesubtype {A : Type u} {p : A → Prop} : has_coe (@coe_sort _ pred2sub... |
2382b6971d9d9dce024c59aa280b2347ca230486 | 4727251e0cd73359b15b664c3170e5d754078599 | /src/number_theory/bernoulli.lean | dee63eb69cc3fe58f68529a84c708d5c446206cd | [
"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 | 16,861 | lean | /-
Copyright (c) 2020 Johan Commelin. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Johan Commelin, Kevin Buzzard
-/
import algebra.big_operators.nat_antidiagonal
import algebra.geom_sum
import data.fintype.card
import ring_theory.power_series.well_known
import tactic... |
f218b566ef5988bc8301b2729707546fecba3615 | fa02ed5a3c9c0adee3c26887a16855e7841c668b | /src/number_theory/bernoulli.lean | 633157abe1c32c231ce41d75369d49fdf7bc3fd2 | [
"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 | 16,952 | lean | /-
Copyright (c) 2020 Johan Commelin. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Johan Commelin, Kevin Buzzard
-/
import data.rat
import data.fintype.card
import algebra.big_operators.nat_antidiagonal
import ring_theory.power_series.well_known
/-!
# Bernoulli numb... |
15e63a0467464286ca964901d6681e1a173ed4a8 | 432d948a4d3d242fdfb44b81c9e1b1baacd58617 | /src/ring_theory/roots_of_unity.lean | 1cc9929dbcca63e4fc8ea063008c782f4e0610d8 | [
"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 | 40,402 | lean | /-
Copyright (c) 2020 Johan Commelin. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Johan Commelin
-/
import data.nat.parity
import data.polynomial.ring_division
import group_theory.specific_groups.cyclic
import ring_theory.integral_domain
import number_theory.diviso... |
3ea946c31c75d842738917d3750fb079672d8895 | 0851884047bb567d19e188e8f1ad959c5ae9c5ce | /src/M1P2/sheet-4.lean | 39eb534e0283a5de6688dee46226fbdcb3aa6053 | [
"Apache-2.0"
] | permissive | yz5216/xena-UROP-2018 | 00d3f71a831324966d40d302544ed2cbbec3fd0f | 5e9da9dc64dc51897677f8b73ab9f94061a8d977 | refs/heads/master | 1,584,922,436,989 | 1,531,487,250,000 | 1,531,487,250,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 1,924 | lean | import algebra.group algebra.group_power init.algebra data.real.basic group_theory.subgroup data.complex.basic group_theory.coset
universes u v w x
variables {G : Type u} {G₂ : Type v} {G₃ : Type w} {G₄ : Type x}
variables [group G] [comm_group G₂] [add_group G₃] [add_comm_group G₄]
-- sheet 4
-- 4. Let S be the two... |
86bcded517665c50febaf879e51afdeb22ed854b | 367134ba5a65885e863bdc4507601606690974c1 | /src/analysis/calculus/fderiv.lean | 1db60e4a925dca94c88d312a71f71e8318e873ed | [
"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 | 121,947 | lean | /-
Copyright (c) 2019 Jeremy Avigad. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Jeremy Avigad, Sébastien Gouëzel, Yury Kudryashov
-/
import analysis.calculus.tangent_cone
import analysis.normed_space.units
import analysis.asymptotics.asymptotic_equivalent
import an... |
9aecf898d94158b5c6a38c262c60c97b1c0b6a59 | 6432ea7a083ff6ba21ea17af9ee47b9c371760f7 | /tests/lean/errorRecoveryBug.lean | f4f7465c2a5e203a04819266310905c537ed5079 | [
"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 | 21 | lean | inductive A | b (c :
|
8dbf1c73e6c577e5bf262787569d5b7bc7efaa25 | a9d0fb7b0e4f802bd3857b803e6c5c23d87fef91 | /library/algebra/ordered_field.lean | 96eb8de4ad067c8ee33d327694948529681a8469 | [
"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 | 23,372 | lean | /-
Copyright (c) 2014 Robert Lewis. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Robert Lewis
-/
import algebra.ordered_ring algebra.field
open eq
structure linear_ordered_field [class] (A : Type) extends linear_ordered_ring A, field A
section linear_ordered_field
... |
698c0b3e106b910bd6756a69762efe6e0dd41552 | 57c233acf9386e610d99ed20ef139c5f97504ba3 | /src/group_theory/schur_zassenhaus.lean | ee6187eab14d43296302a0631c5b45d8f570c376 | [
"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 | 17,554 | 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.complement
import group_theory.group_action.basic
import group_theory.sylow
/-!
# The Schur-Zassenhaus Theorem
In this file we prove the Schu... |
24f808b0bd24b06b182373c167b0a42270185e74 | 32da3d0f92cab08875472ef6cacc1931c2b3eafa | /src/data/list/basic.lean | 12ccc86ced2ee674e444e22db590ea9ec78d0dd0 | [
"Apache-2.0"
] | permissive | karthiknadig/mathlib | b6073c3748860bfc9a3e55da86afcddba62dc913 | 33a86cfff12d7f200d0010cd03b95e9b69a6c1a5 | refs/heads/master | 1,676,389,371,851 | 1,610,061,127,000 | 1,610,061,127,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 186,355 | 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
-/
import algebra.order_functions
import control.monad.basic
import data.nat.choose.basic
import ... |
6c0b2589886dcdce14cc0c92374ae26a71af78bb | 9babf6e38f1e4fb489366639dfb71b020165dd0e | /sphinx/hanoi_project/anhbui_homework.lean | 1e8eb360cc8b4072c10b5061d0e645f568ab0318 | [
"CC-BY-4.0"
] | permissive | Zugor/formalabstracts | 626617cc363cab8a4088d612802bf39583ef767f | 9d96418c4c386e46c5e50ac2646680f454218a99 | refs/heads/master | 1,584,609,262,244 | 1,528,707,279,000 | 1,528,708,097,000 | 136,271,321 | 0 | 0 | null | 1,528,258,863,000 | 1,528,258,863,000 | null | UTF-8 | Lean | false | false | 788 | lean | -- Twin Prime Conjecture: There are infinitely many pairs of prime s p and p + 2
definition isInfinite (s : set ℕ) :=
-- for every k in N, s must be unbounded, so there must be a k' with k' > k
∀ k : ℕ, ∃ k' ∈ s, k' > k
definition isPrime (p : ℕ) : Prop :=
-- Require p >= 2, for every k | p, k = 1 or k = p,
p >= 2 ∧ ... |
aec202727f9fe5a84b618bc18d5a5cb7e48aa338 | 1abd1ed12aa68b375cdef28959f39531c6e95b84 | /src/data/fintype/basic.lean | 638a9482cdf118890e89f042fd43418fb6c3b54c | [
"Apache-2.0"
] | permissive | jumpy4/mathlib | d3829e75173012833e9f15ac16e481e17596de0f | af36f1a35f279f0e5b3c2a77647c6bf2cfd51a13 | refs/heads/master | 1,693,508,842,818 | 1,636,203,271,000 | 1,636,203,271,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 83,326 | lean | /-
Copyright (c) 2017 Mario Carneiro. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Mario Carneiro
-/
import data.array.lemmas
import data.finset.option
import data.finset.pi
import data.finset.powerset
import data.finset.prod
import data.sym.basic
import data.ulift
i... |
eb5d9c63bc1d33fb0eef395da18cbfd929c061ad | aa5a655c05e5359a70646b7154e7cac59f0b4132 | /src/Std/Data/HashSet.lean | e050c309ca0793f4081e4443854ad7ca5c72230e | [
"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 | 6,072 | lean | /-
Copyright (c) 2019 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Author: Leonardo de Moura
-/
namespace Std
universes u v w
def HashSetBucket (α : Type u) :=
{ b : Array (List α) // b.size > 0 }
def HashSetBucket.update {α : Type u} (data : HashSe... |
73e5d77a0f8a1cfa09bd274ca46c84969029e0f5 | bb31430994044506fa42fd667e2d556327e18dfe | /src/data/zmod/defs.lean | 3a91f1a2e5f378e2e51f1afe0a4e2a2e6786646f | [
"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 | 6,649 | lean | /-
Copyright (c) 2022 Eric Rodriguez. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Eric Rodriguez
-/
import algebra.ne_zero
import data.nat.modeq
import data.fintype.lattice
/-!
# Definition of `zmod n` + basic results.
This file provides the basic details of `zmod... |
38fd43ff2418c30e441e161a6769068144b03545 | 4a092885406df4e441e9bb9065d9405dacb94cd8 | /src/for_mathlib/with_zero.lean | bdb39002f03d6be3518b083af0093d85e0c51736 | [
"Apache-2.0"
] | permissive | semorrison/lean-perfectoid-spaces | 78c1572cedbfae9c3e460d8aaf91de38616904d8 | bb4311dff45791170bcb1b6a983e2591bee88a19 | refs/heads/master | 1,588,841,765,494 | 1,554,805,620,000 | 1,554,805,620,000 | 180,353,546 | 0 | 1 | null | 1,554,809,880,000 | 1,554,809,880,000 | null | UTF-8 | Lean | false | false | 5,710 | lean | import data.equiv.basic
import group_theory.subgroup
import for_mathlib.option_inj
universes u v
-- this should be in order.bounded_lattice with with_bot.partial_order
instance {α : Type*} [preorder α] : preorder (with_bot α) :=
{ le := λ o₁ o₂ : option α, ∀ a ∈ o₁, ∃ b ∈ o₂, a ≤ b,
lt := (<),
l... |
8318418bbccb97d6971e7f8974bfe254d4428c96 | b70447c014d9e71cf619ebc9f539b262c19c2e0b | /hott/homotopy/connectedness.hlean | f25d4a71bd321a65e5dd603fecede199a0916e14 | [
"Apache-2.0"
] | permissive | ia0/lean2 | c20d8da69657f94b1d161f9590a4c635f8dc87f3 | d86284da630acb78fa5dc3b0b106153c50ffccd0 | refs/heads/master | 1,611,399,322,751 | 1,495,751,007,000 | 1,495,751,007,000 | 93,104,167 | 0 | 0 | null | 1,496,355,488,000 | 1,496,355,487,000 | null | UTF-8 | Lean | false | false | 16,772 | hlean | /-
Copyright (c) 2015 Ulrik Buchholtz. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Ulrik Buchholtz, Floris van Doorn
Connectedness of types and functions
-/
import types.trunc types.arrow_2 types.lift
open eq is_trunc is_equiv nat equiv trunc function fiber funext... |
b9ac60a67ed6daf0f039a62aa421a44e13756e0a | 2c096fdfecf64e46ea7bc6ce5521f142b5926864 | /src/Lean/Elab/Macro.lean | 890db271f6186e765960bdc5702681d3249b167a | [
"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 | 2,123 | lean | /-
Copyright (c) 2021 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Leonardo de Moura
-/
import Lean.Elab.MacroArgUtil
namespace Lean.Elab.Command
open Lean.Syntax
open Lean.Parser.Term hiding macroArg
open Lean.Parser.Command
@[builtin_comman... |
1dbd5a86c10d2cfb020957c27cfddf4bb5c1b7d8 | 5d166a16ae129621cb54ca9dde86c275d7d2b483 | /tests/lean/run/dunfold3.lean | a5d7e45e15efb8f41f621aa92426313e3cdc509c | [
"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 | 893 | lean | open tactic
def g : nat → nat := λ x, x + 5
example (a b : nat) (p : nat → Prop) (h : p (g (nat.succ (nat.succ a)))) : p (g (a + 2)) :=
begin
unfold g at h,
do { h ← get_local `h >>= infer_type, t ← to_expr ```(p (nat.succ (nat.succ a) + 5)), guard (h = t) },
unfold has_add.add bit0 has_one.one nat.add,
unfol... |
58f48f5cdf00e69439c668a14385be54dfeadfdc | 367134ba5a65885e863bdc4507601606690974c1 | /src/analysis/seminorm.lean | b76716585e3d96cc7d9c7668ca327b7653ffd852 | [
"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 | 7,173 | lean | /-
Copyright (c) 2019 Jean Lo. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Jean Lo
-/
import algebra.pointwise
import analysis.normed_space.basic
/-!
# Seminorms and Local Convexity
This file introduces the following notions, defined for a vector space
over a nor... |
930ff4e0a4ec79ffd1a954425ed3b1106968fa67 | ff5230333a701471f46c57e8c115a073ebaaa448 | /library/init/data/setoid.lean | be744475a3ba77b483dc4a42f06e3a85539b23a3 | [
"Apache-2.0"
] | permissive | stanford-cs242/lean | f81721d2b5d00bc175f2e58c57b710d465e6c858 | 7bd861261f4a37326dcf8d7a17f1f1f330e4548c | refs/heads/master | 1,600,957,431,849 | 1,576,465,093,000 | 1,576,465,093,000 | 225,779,423 | 0 | 3 | Apache-2.0 | 1,575,433,936,000 | 1,575,433,935,000 | null | UTF-8 | Lean | false | false | 849 | lean | /-
Copyright (c) 2015 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Leonardo de Moura
-/
prelude
import init.logic
universes u
class setoid (α : Sort u) :=
(r : α → α → Prop) (iseqv : equivalence r)
instance setoid_has_equiv {α : Sort u} [seto... |
ef377791305de87802822872f845bc5b430ce106 | 4727251e0cd73359b15b664c3170e5d754078599 | /src/group_theory/solvable.lean | 32a39b4b8e698fcecd0469099b268b8164803a8d | [
"Apache-2.0"
] | permissive | Vierkantor/mathlib | 0ea59ac32a3a43c93c44d70f441c4ee810ccceca | 83bc3b9ce9b13910b57bda6b56222495ebd31c2f | refs/heads/master | 1,658,323,012,449 | 1,652,256,003,000 | 1,652,256,003,000 | 209,296,341 | 0 | 1 | Apache-2.0 | 1,568,807,655,000 | 1,568,807,655,000 | null | UTF-8 | Lean | false | false | 7,617 | lean | /-
Copyright (c) 2021 Jordan Brown, Thomas Browning, Patrick Lutz. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Jordan Brown, Thomas Browning, Patrick Lutz
-/
import data.fin.vec_notation
import group_theory.abelianization
import set_theory.cardinal.basic
/-!
# Sol... |
6a5365f1327fe7a217ca4c9254e15cfb155d2ea1 | 964a8bb66c2eb89b920fe65d0ec2f77eab0d5f65 | /src/hanoitactics.lean | a2bd8c0673afc0c90b8fcb6eb450ba4a248905a2 | [
"MIT"
] | permissive | SnobbyDragon/leanhanoi | 9990a7b586f1d843d39c3c7aab7ac0b5eefbe653 | a42811ce5ab55e0451880a8c111c75b082936d39 | refs/heads/master | 1,675,735,182,689 | 1,609,387,288,000 | 1,609,387,288,000 | 284,167,126 | 8 | 1 | MIT | 1,609,262,129,000 | 1,596,247,349,000 | Lean | UTF-8 | Lean | false | false | 1,648 | lean | import hanoi
open hanoi hanoi.tower
open tactic
namespace hanoitactics
-- moves curr tower to a new position if valid, otherwise fails
meta def move_disk (s d : tower) : tactic unit :=
do { `(can_get_to' %%t₁ %%t₂) ← tactic.target,
tactic.apply `(@fmove' %%t₁ %%t₂ %%(reflect s) %%(reflect d)),
tactic.applyc ... |
6e3cd954f880a64b4f8315149ed11f7ac95bdeab | cf39355caa609c0f33405126beee2739aa3cb77e | /tests/lean/quot_abuse1.lean | 3bdfd8314f7182f73c80c0cd6e9a0409ffffb1ff | [
"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 | 130 | lean | prelude
init_quotient
/- definit eq as the empty type -/
inductive {u} eq {α : Sort u} (a : α) : α → Sort 0
init_quotient
|
0c0b091dabfb7b12bbdc778f62221ccfca939b05 | 4727251e0cd73359b15b664c3170e5d754078599 | /test/ring_exp.lean | 04905ce9685f88c7d5b2a8e27fb1bed72f6a31ab | [
"Apache-2.0"
] | permissive | Vierkantor/mathlib | 0ea59ac32a3a43c93c44d70f441c4ee810ccceca | 83bc3b9ce9b13910b57bda6b56222495ebd31c2f | refs/heads/master | 1,658,323,012,449 | 1,652,256,003,000 | 1,652,256,003,000 | 209,296,341 | 0 | 1 | Apache-2.0 | 1,568,807,655,000 | 1,568,807,655,000 | null | UTF-8 | Lean | false | false | 7,070 | lean | import tactic.ring_exp
import tactic.zify
import algebra.group_with_zero.power
import tactic.field_simp
universes u
section addition
/-!
### `addition` section
Test associativity and commutativity of `(+)`.
-/
example (a b : ℚ) : a = a := by ring_exp
example (a b : ℚ) : a + b = a + b := by ring_exp
example (a b ... |
547ace910106f6d6dee0d6cca401fb562a586422 | 0c1546a496eccfb56620165cad015f88d56190c5 | /library/init/data/setoid.lean | 2d537e1f42196ff79b98efce6cd3ee585b4dea93 | [
"Apache-2.0"
] | permissive | Solertis/lean | 491e0939957486f664498fbfb02546e042699958 | 84188c5aa1673fdf37a082b2de8562dddf53df3f | refs/heads/master | 1,610,174,257,606 | 1,486,263,620,000 | 1,486,263,620,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 821 | lean | /-
Copyright (c) 2015 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Leonardo de Moura
-/
prelude
import init.logic
universe variables u
class setoid (α : Type u) :=
(r : α → α → Prop) (iseqv : equivalence r)
namespace setoid
infix ` ≈ ` := set... |
5191a093dcead73094d15129fb24bdb2e6d7fe08 | d1bbf1801b3dcb214451d48214589f511061da63 | /src/data/complex/is_R_or_C.lean | 474ca4c66a80b7db3df8fea25e9f3197b6ff0814 | [
"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 | 30,066 | lean | /-
Copyright (c) 2020 Frédéric Dupuis. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Frédéric Dupuis
-/
import analysis.normed_space.basic
import analysis.complex.basic
/-!
# `is_R_or_C`: a typeclass for ℝ or ℂ
This file defines the typeclass `is_R_or_C` intended t... |
d17168ae22460748ff22f7e1fe4b937f37cf5764 | 4efff1f47634ff19e2f786deadd394270a59ecd2 | /src/order/filter/bases.lean | c4b3da27a123a5e07af86b3e497ee4c89f1e4a5c | [
"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 | 30,750 | 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... |
49c8e612c368071addd6b68fbf27e473d7f85255 | d406927ab5617694ec9ea7001f101b7c9e3d9702 | /src/category_theory/localization/construction.lean | 6d2353242076ce70aee75d3ea0fad808da60394e | [
"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 | 13,805 | lean | /-
Copyright (c) 2022 Joël Riou. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Joël Riou
-/
import category_theory.morphism_property
import category_theory.category.Quiv
/-!
# Construction of the localized category
This file constructs the localized category, obta... |
4a451fcc7a6aea135b6cb2a2fa651999e21a3fdc | 74addaa0e41490cbaf2abd313a764c96df57b05d | /Mathlib/topology/sheaves/limits_auto.lean | fcf66e4b82b81e05ed80a6c69414c9fde1c6e7c0 | [] | no_license | AurelienSaue/Mathlib4_auto | f538cfd0980f65a6361eadea39e6fc639e9dae14 | 590df64109b08190abe22358fabc3eae000943f2 | refs/heads/master | 1,683,906,849,776 | 1,622,564,669,000 | 1,622,564,669,000 | 371,723,747 | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 1,015 | 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.topology.sheaves.presheaf
import Mathlib.category_theory.limits.functor_category
import Mat... |
2bbcb4409480d5bee217fcb7b8fd51072b8fb60f | 2caa8cd2737f8e6ea2ec83101247ef95d28a4406 | /src/chapter1.lean | 54f1a395c097c6bba2794ec2d5207c7e1f777e11 | [] | no_license | ruler501/DescriptiveSetTheory | 1a079368bf2b06fbcba6864f31f4d3ff2a89195c | 08a91bcd1533a88a28c2fac45d26ff223de2e9e6 | refs/heads/master | 1,676,123,700,591 | 1,610,658,976,000 | 1,610,658,976,000 | 327,178,014 | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 1,302 | lean | import topology.basic
import topology.metric_space.basic
import topology.separation
noncomputable theory
open set classical topological_space
open_locale classical
universes u
variables {α : Type u}
def metric_space.to_topological_space {α : Type u} (m : metric_space α) : topological_space α :=
m.to_uniform_space... |
8bb6824a6052ea7ed617aa7ca58936f760be92dc | cabd1ea95170493667c024ef2045eb86d981b133 | /src/super/simp.lean | 8fcfd9b4c97b917fc6a4adcce548ab13db10ffe2 | [] | no_license | semorrison/super | 31db4b5aa5ef4c2313dc5803b8c79a95f809815b | 0c6c03ba9c7470f801eb4d055294f424ff090308 | refs/heads/master | 1,630,272,140,541 | 1,511,054,739,000 | 1,511,054,756,000 | 114,317,807 | 0 | 0 | null | 1,513,304,776,000 | 1,513,304,775,000 | null | UTF-8 | Lean | false | false | 1,502 | lean | /-
Copyright (c) 2017 Gabriel Ebner. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Gabriel Ebner
-/
import .clause_ops .prover_state
open tactic monad
namespace super
meta def prove_using_assumption : tactic unit := do
tgt ← target,
ass ← mk_local_def `h tgt,
exact ... |
20add835fdb326749f7cc480d279cd8442c00091 | a0e23cfdd129a671bf3154ee1a8a3a72bf4c7940 | /stage0/src/Init/Data/ByteArray/Basic.lean | 23af8ec4d898097a62c23b132cf7376b64fef55b | [
"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,675 | lean | /-
Copyright (c) 2019 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Author: Leonardo de Moura
-/
prelude
import Init.Data.Array.Basic
import Init.Data.Array.Subarray
import Init.Data.UInt
import Init.Data.Option.Basic
universe u
structure ByteArray wher... |
05bd74e3f610a0b6d88ba86fbb4e9fc2459c9f49 | 947fa6c38e48771ae886239b4edce6db6e18d0fb | /src/analysis/box_integral/partition/additive.lean | e16b9a790d099a14e40aff0d7d9e3dbd8131309a | [
"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 | 9,752 | 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.partition.split
import analysis.normed_space.operator_norm
import data.set.intervals.proj_Icc
/-!
# Box additive functions
We say tha... |
597f9c31b53e20a2d07fc79237bb9432371e5d21 | bbecf0f1968d1fba4124103e4f6b55251d08e9c4 | /src/ring_theory/prime.lean | 2775d519b98f9c338846bc447a27a03ac0505d23 | [
"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 | 2,697 | 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 algebra.associated
import algebra.big_operators.basic
/-!
# Prime elements in rings
This file contains lemmas about prime elements of commutative rings.
-/
variab... |
4cd091c7043e95c6b674c2cb70a0c758c543e6f1 | 8cae430f0a71442d02dbb1cbb14073b31048e4b0 | /src/data/real/pointwise.lean | 98e07256f07b97615e5013fe7824f0fe88119020 | [
"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 | 5,208 | lean | /-
Copyright (c) 2021 Yaël Dillies. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Yaël Dillies, Eric Wieser
-/
import algebra.order.module
import data.real.basic
/-!
# Pointwise operations on sets of reals
> THIS FILE IS SYNCHRONIZED WITH MATHLIB4.
> Any changes to ... |
f71d1cd5d76da943bd168b6ca78fae0708c40e97 | 562dafcca9e8bf63ce6217723b51f32e89cdcc80 | /src/super/selection.lean | 30a233c94df72dead5c4b40b3e096850410e206d | [] | no_license | digama0/super | 660801ef3edab2c046d6a01ba9bbce53e41523e8 | 976957fe46128e6ef057bc771f532c27cce5a910 | refs/heads/master | 1,606,987,814,510 | 1,498,621,778,000 | 1,498,621,778,000 | 95,626,306 | 0 | 0 | null | 1,498,621,692,000 | 1,498,621,692,000 | null | UTF-8 | Lean | false | false | 2,954 | lean | /-
Copyright (c) 2017 Gabriel Ebner. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Gabriel Ebner
-/
import .prover_state
namespace super
meta def simple_selection_strategy (f : (expr → expr → bool) → clause → list ℕ) : selection_strategy :=
take dc, do gt ← get_term... |
9d0ecaf643e978367c31ee3f7697206bc48ac448 | 1789ef53372ad44b5ce5db2341556f91c8c31395 | /src/test2.lean | 7d76689dbbe6c903d51fe214cd00bbc778eaeef7 | [] | no_license | iceplant/Mermin_Peres | d0a0f4c9f27111b3fee4e0ab5119ef1eafc59dc2 | d7ea59b5767157420b0fae9dfc09f22ad2826564 | refs/heads/master | 1,609,583,206,767 | 1,582,220,678,000 | 1,582,220,678,000 | 239,577,114 | 1 | 1 | null | null | null | null | UTF-8 | Lean | false | false | 2,348 | lean | import data.nat.basic
import data.nat.parity
-- open_locale classical
decidable theory
-- --Do I want these to be bools or Props?
def myIsEven := nat.even
def myIsOdd (n : ℕ) := ¬ (myIsEven n)
#reduce myIsEven 2
--#eval myIsEven 2
--Alice only sees r and Bob only sees c. The strategy isn't (r,c) → (...) but two maps... |
261bae10ca7bedd94b0acba13c299e108f6c90f2 | f20db13587f4dd28a4b1fbd31953afd491691fa0 | /library/init/data/list/instances.lean | 3f97970844b26e5412628ac7303d8a35b939b057 | [
"Apache-2.0"
] | permissive | AHartNtkn/lean | 9a971edfc6857c63edcbf96bea6841b9a84cf916 | 0d83a74b26541421fc1aa33044c35b03759710ed | refs/heads/master | 1,620,592,591,236 | 1,516,749,881,000 | 1,516,749,881,000 | 118,697,288 | 1 | 0 | null | 1,516,759,470,000 | 1,516,759,470,000 | null | UTF-8 | Lean | false | false | 1,319 | lean | /-
Copyright (c) 2016 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Author: Leonardo de Moura
-/
prelude
import init.data.list.lemmas
import init.meta.mk_dec_eq_instance
open list
universes u v
local attribute [simp] join ret
instance : monad list :=
... |
69a22a5d38c95efa2f99c5b89c5a1412e8c06229 | 958488bc7f3c2044206e0358e56d7690b6ae696c | /lean/options.lean | 3723cd67072974428f972e1d582faf3ed4812384 | [] | no_license | possientis/Prog | a08eec1c1b121c2fd6c70a8ae89e2fbef952adb4 | d4b3debc37610a88e0dac3ac5914903604fd1d1f | refs/heads/master | 1,692,263,717,723 | 1,691,757,179,000 | 1,691,757,179,000 | 40,361,602 | 3 | 0 | null | 1,679,896,438,000 | 1,438,953,859,000 | Coq | UTF-8 | Lean | false | false | 248 | lean |
set_option pp.implicit true
set_option pp.universes true
set_option pp.notation false
set_option pp.numerals false
#check 2 + 2 = 4
#reduce (λ x, x + 2) = (λ x, x + 3)
#check (λ x, x + 1) 1
set_option pp.beta true
#check (λ x, x + 1) 1
|
d7a36ce0a81c59b951f5e20f1c4b7ce4b49bd849 | 55c7fc2bf55d496ace18cd6f3376e12bb14c8cc5 | /src/geometry/manifold/real_instances.lean | 83e4ed78543a1ce2acea238204a4df911158ee0d | [
"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 | 16,175 | 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 geometry.manifold.smooth_manifold_with_corners
import linear_algebra.finite_dimensional
import analysis.normed_space.real_inner_product
/-!
# Constructi... |
54c6809ce9dcaef7e5010e3967f1607436f783ab | 9cba98daa30c0804090f963f9024147a50292fa0 | /time_series/definitions.lean | 04d71e34f745da5fb9230517e2d103b0c9542f50 | [] | no_license | kevinsullivan/phys | dcb192f7b3033797541b980f0b4a7e75d84cea1a | ebc2df3779d3605ff7a9b47eeda25c2a551e011f | refs/heads/master | 1,637,490,575,500 | 1,629,899,064,000 | 1,629,899,064,000 | 168,012,884 | 0 | 3 | null | 1,629,644,436,000 | 1,548,699,832,000 | Lean | UTF-8 | Lean | false | false | 21,182 | lean | import ..time.time
import tactic.ext
universes u
variables {tf : time_frame} (ts : time_space tf) (V : Type u)
[inhabited V] /-Questionable whether to use inhabited.default as a default value-/
/-
structure timestamped :=
(timestamp : time ts)
@[class]
structure has_timestamp (V : Type u) :=
(get_timestamp ... |
b0af312b013e80d8668867674faf1ec6f93e63ad | abd85493667895c57a7507870867b28124b3998f | /src/data/real/nnreal.lean | 231244439cf28acecdcc1c827610bf7eac556ee3 | [
"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 | 25,470 | lean | /-
Copyright (c) 2018 Johan Commelin. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Johan Commelin
Nonnegative real numbers.
-/
import data.real.basic
noncomputable theory
open_locale classical big_operators
/-- Nonnegative real numbers. -/
def nnreal := {r : ℝ //... |
277e7a15a753b92b03f521d7724495bd35b5329a | d642a6b1261b2cbe691e53561ac777b924751b63 | /src/topology/instances/real.lean | fd0a7463250d229bf5aa49fedb264c854c2a1db6 | [
"Apache-2.0"
] | permissive | cipher1024/mathlib | fee56b9954e969721715e45fea8bcb95f9dc03fe | d077887141000fefa5a264e30fa57520e9f03522 | refs/heads/master | 1,651,806,490,504 | 1,573,508,694,000 | 1,573,508,694,000 | 107,216,176 | 0 | 0 | Apache-2.0 | 1,647,363,136,000 | 1,508,213,014,000 | Lean | UTF-8 | Lean | false | false | 19,143 | 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
The real numbers ℝ.
They are constructed as the topological completion of ℚ. With the following steps:
(1) prove that ℚ forms a uniform space.
(2) subt... |
30723b8e541af13aa6ba202abaa9718ad2f801a8 | b7f22e51856f4989b970961f794f1c435f9b8f78 | /tests/lean/simplifier5.lean | ff8ebc31fcf056573096189aa6e9d8931bfb9fe5 | [
"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 | 749 | lean | /- Basic rewriting with iff with congr_iff -/
import logic.connectives
open nat
attribute not_true [simp]
#simplify iff env 2 (@le nat nat_has_le 0 0) -- true
#simplify iff env 2 (@le nat nat_has_le 0 1) -- true
#simplify iff env 2 (@le nat nat_has_le 0 2) -- true
#simplify iff env 2 (@lt nat nat_has_lt 0 0) -- false... |
c956c3508f262f75b1a515b77a7dd42bce7e262c | 42610cc2e5db9c90269470365e6056df0122eaa0 | /hott/homotopy/EM.hlean | 3b3c8f4720f9917f2836753a8c7d086cd0f77723 | [
"Apache-2.0"
] | permissive | tomsib2001/lean | 2ab59bfaebd24a62109f800dcf4a7139ebd73858 | eb639a7d53fb40175bea5c8da86b51d14bb91f76 | refs/heads/master | 1,586,128,387,740 | 1,468,968,950,000 | 1,468,968,950,000 | 61,027,234 | 0 | 0 | null | 1,465,813,585,000 | 1,465,813,585,000 | null | UTF-8 | Lean | false | false | 8,934 | hlean | /-
Copyright (c) 2016 Floris van Doorn. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Floris van Doorn
Eilenberg MacLane spaces
-/
import hit.groupoid_quotient .hopf .freudenthal .homotopy_group
open algebra pointed nat eq category group algebra is_trunc iso pointe... |
f8a53e5a189525695383de3716606984cd078382 | a721fe7446524f18ba361625fc01033d9c8b7a78 | /src/principia/myset/basic.lean | 267568c32640b37e77019319ed788290df2c8cfa | [] | no_license | Sterrs/leaning | 8fd80d1f0a6117a220bb2e57ece639b9a63deadc | 3901cc953694b33adda86cb88ca30ba99594db31 | refs/heads/master | 1,627,023,822,744 | 1,616,515,221,000 | 1,616,515,221,000 | 245,512,190 | 2 | 0 | null | 1,616,429,050,000 | 1,583,527,118,000 | Lean | UTF-8 | Lean | false | false | 16,810 | lean | -- vim: ts=2 sw=0 sts=-1 et ai tw=70
import ..logic
namespace hidden
universes u v w
-- A set of elements of type α is a function from elements of type α
-- to propositions
def myset (α : Type u) := α → Prop
-- Not sure if we want this, but I don't think it hurts
namespace myset
-- Need u and v to be most genera... |
6b09f1ca6f3d730225c7082be941fa0a7b56d100 | 5412d79aa1dc0b521605c38bef9f0d4557b5a29d | /src/Lean/Meta/Basic.lean | 34a4ae7ee03422d4ceba630c3e64f9120f779065 | [
"Apache-2.0"
] | permissive | smunix/lean4 | a450ec0927dc1c74816a1bf2818bf8600c9fc9bf | 3407202436c141e3243eafbecb4b8720599b970a | refs/heads/master | 1,676,334,875,188 | 1,610,128,510,000 | 1,610,128,521,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 43,581 | lean | /-
Copyright (c) 2019 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Leonardo de Moura
-/
import Lean.Data.LOption
import Lean.Environment
import Lean.Class
import Lean.ReducibilityAttrs
import Lean.Util.Trace
import Lean.Util.RecDepth
import Lea... |
50e4cfaf45b3a45deb883ccd059cd231d0e9c7d4 | 36c7a18fd72e5b57229bd8ba36493daf536a19ce | /hott/algebra/homotopy_group.hlean | 9c0a38d33d7b5237b5861d2cc67bc4f9311fe894 | [
"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 | 3,236 | 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
homotopy groups of a pointed space
-/
import types.pointed .trunc_group .hott types.trunc
open nat eq pointed trunc is_trunc algebra
namespace eq
definition h... |
90e83fe6b5b034050b5335aa320be09cef2d6f2a | 5d166a16ae129621cb54ca9dde86c275d7d2b483 | /library/init/core.lean | ea3f39539222e3715d8d0594a81eb8767ea293a9 | [
"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 | 15,650 | lean | /-
Copyright (c) 2014 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Leonardo de Moura
notation, basic datatypes and type classes
-/
prelude
notation `Prop` := Sort 0
notation f ` $ `:1 a:0 := f a
/- Logical operations and relations -/
reserv... |
22239cf945dc1ce3f170c62c5aee715b39a9e1d2 | 6432ea7a083ff6ba21ea17af9ee47b9c371760f7 | /src/Lean/Meta/Transform.lean | bcba08287a7f9feb9af5d6c9e87b7f2150272065 | [
"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 | 7,937 | lean | /-
Copyright (c) 2020 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Leonardo de Moura
-/
import Lean.Meta.Basic
namespace Lean
inductive TransformStep where
/-- Return expression without visiting any subexpressions. -/
| done (e : Expr)
... |
4dfb05951c48cd4883da074a0406a8fd18f27371 | bbecf0f1968d1fba4124103e4f6b55251d08e9c4 | /src/tactic/squeeze.lean | cbbd0771c73ee08ee1878815afb0cc17cf883f29 | [
"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 | 14,615 | lean | /-
Copyright (c) 2019 Simon Hudon. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Simon Hudon
-/
import control.traversable.basic
import tactic.simpa
open interactive interactive.types lean.parser
private meta def loc.to_string_aux : option name → string
| none := "⊢... |
bbead8a565eb4dba0ad22e531dfbac36e03712e1 | b7f22e51856f4989b970961f794f1c435f9b8f78 | /tests/lean/run/beginend3.lean | e25e4422a4c7ba95e7b16c0ef795cb15a40e2b87 | [
"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 | 272 | lean | import logic
open tactic
theorem foo (A : Type) (a b c : A) : a = b → b = c → a = c ∧ c = a :=
begin
intros [Hab, Hbc],
apply and.intro,
apply eq.trans,
rotate 2,
apply eq.trans,
apply (eq.symm Hbc),
apply (eq.symm Hab),
apply Hab,
apply Hbc,
end
|
02aaee3ca5187d64b2e5b3aa1d480d7311052df7 | 07c6143268cfb72beccd1cc35735d424ebcb187b | /src/data/real/ereal.lean | 6571518a61ab8bc9981160301fdba20eb93c2e0d | [
"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 | 3,264 | lean | /-
Copyright (c) 2019 Kevin Buzzard. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Kevin Buzzard
-/
import data.real.basic
/-!
# The extended reals [-∞, ∞].
This file defines `ereal`, the real numbers together with a top and bottom element,
referred to as ⊤ and ⊥. ... |
52e04a0c88b42e31993de6ecc39d0922f5f1de22 | 57aec6ee746bc7e3a3dd5e767e53bd95beb82f6d | /stage0/src/Lean/Compiler/ImplementedByAttr.lean | 5be302e786519d49c9048f46c6a781cbb8b6b26a | [
"Apache-2.0"
] | permissive | collares/lean4 | 861a9269c4592bce49b71059e232ff0bfe4594cc | 52a4f535d853a2c7c7eea5fee8a4fa04c682c1ee | refs/heads/master | 1,691,419,031,324 | 1,618,678,138,000 | 1,618,678,138,000 | 358,989,750 | 0 | 0 | Apache-2.0 | 1,618,696,333,000 | 1,618,696,333,000 | null | UTF-8 | Lean | false | false | 1,386 | lean | /-
Copyright (c) 2019 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Leonardo de Moura
-/
import Lean.Attributes
import Lean.MonadEnv
namespace Lean.Compiler
builtin_initialize implementedByAttr : ParametricAttribute Name ← registerParametricAt... |
bb956073a1b4a3800f99016dd541339d1b031703 | 74addaa0e41490cbaf2abd313a764c96df57b05d | /Mathlib/set_theory/pgame_auto.lean | 5bc7259b7a60e325175a417d6ee096898cb17c2d | [] | 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 | 34,359 | lean | /-
Copyright (c) 2019 Mario Carneiro. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Reid Barton, Mario Carneiro, Isabel Longbottom, Scott Morrison
-/
import Mathlib.PrePort
import Mathlib.Lean3Lib.init.default
import Mathlib.logic.embedding
import Mathlib.data.nat.cas... |
a73feb03ddc4e728147abcc5624efee4163aa5bd | 1b8f093752ba748c5ca0083afef2959aaa7dace5 | /src/category_theory/universal/products.lean | 7cde5986007b3a5483ed6c6dff054efcc6ba8a36 | [] | no_license | khoek/lean-category-theory | 7ec4cda9cc64a5a4ffeb84712ac7d020dbbba386 | 63dcb598e9270a3e8b56d1769eb4f825a177cd95 | refs/heads/master | 1,585,251,725,759 | 1,539,344,445,000 | 1,539,344,445,000 | 145,281,070 | 0 | 0 | null | 1,534,662,376,000 | 1,534,662,376,000 | null | UTF-8 | Lean | false | false | 1,286 | lean | -- Copyright (c) 2018 Scott Morrison. All rights reserved.
-- Released under Apache 2.0 license as described in the file LICENSE.
-- Authors: Scott Morrison, Reid Barton, Mario Carneiro
import category_theory.limits.binary_products
open category_theory
universes u v
namespace category_theory.limits
variables {C : ... |
58cb4408c114683ecd047d4b32e1907a8dddc886 | 6432ea7a083ff6ba21ea17af9ee47b9c371760f7 | /tests/lean/run/471.lean | 4d6091215b6988aea89a0a3c865219a21e25c9a8 | [
"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 | 733 | lean | inductive vec : Nat → Type where
| nil : vec 0
| cons : Int → vec n → vec n.succ
def vec_len : vec n → Nat
| vec.nil => 0
| x@(vec.cons h t) => vec_len t + 1
def vec_len' : {n : Nat} → vec n → Nat
| _, vec.nil => 0
| _, x@(vec.cons h t) => vec_len' t + 1
def tst1 : vec (n+1) → Int × vec (n+1) × vec n
|... |
a2792691b34da4e168e35efa1139165b98b9af54 | 82e44445c70db0f03e30d7be725775f122d72f3e | /src/category_theory/limits/shapes/finite_products.lean | 21583289c46008618857c0228c6183333cbe85fd | [
"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 | 2,543 | lean | /-
Copyright (c) 2019 Scott Morrison. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Scott Morrison
-/
import category_theory.limits.shapes.finite_limits
import category_theory.limits.shapes.binary_products
import category_theory.limits.shapes.terminal
universes v u
... |
072b7bd6059c967c641b234d7e2295151f4d4f7a | 4d2583807a5ac6caaffd3d7a5f646d61ca85d532 | /src/probability_theory/notation.lean | 1eff42950a88c0c2245ec977b791cf55f6770071 | [
"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 | 1,806 | 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.function.conditional_expectation
import measure_theory.decomposition.radon_nikodym
/-! # Notations for probability theory
This file defines the fo... |
ba00c7a053694813b2ba4c5b80e488062dc7e1b6 | 4727251e0cd73359b15b664c3170e5d754078599 | /src/algebra/direct_sum/module.lean | 6275b203e2853fbeff9ab7fbe317bd1d913596a0 | [
"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 | 15,842 | 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 algebra.direct_sum.basic
import linear_algebra.dfinsupp
/-!
# Direct sum of modules
The first part of the file provides constructors for direct sums of modules. It pro... |
9af16685e1b238ea1df002b496407ac216a4b1b3 | 4727251e0cd73359b15b664c3170e5d754078599 | /src/algebra/linear_recurrence.lean | be9b92321b59b4880d911297fdf8e0947c02f439 | [
"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 | 8,195 | lean | /-
Copyright (c) 2020 Anatole Dedecker. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Anatole Dedecker
-/
import data.polynomial.eval
import linear_algebra.dimension
/-!
# Linear recurrence
Informally, a "linear recurrence" is an assertion of the form
`∀ n : ℕ, u (n... |
cb715e6a071e2519a470a1dd8b0e1d4a7dc09251 | 82b86ba2ae0d5aed0f01f49c46db5afec0eb2bd7 | /stage0/src/Lean/Meta/DiscrTree.lean | e969c711fb86a0071a54072108603b03143ee31a | [
"Apache-2.0"
] | permissive | banksonian/lean4 | 3a2e6b0f1eb63aa56ff95b8d07b2f851072d54dc | 78da6b3aa2840693eea354a41e89fc5b212a5011 | refs/heads/master | 1,673,703,624,165 | 1,605,123,551,000 | 1,605,123,551,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 14,752 | lean | /-
Copyright (c) 2019 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Leonardo de Moura
-/
import Lean.Meta.Basic
import Lean.Meta.FunInfo
import Lean.Meta.InferType
namespace Lean.Meta.DiscrTree
/-
(Imperfect) discrimination trees.
We use a... |
051e3563aee2202ef6f19e402059b20928bd36af | ee8cdbabf07f77e7be63a449b8483ce308d37218 | /lean/src/valid/mathd-algebra-77.lean | a8f115cc3b837de9cf8da27101a9027f230d8dc8 | [
"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 | 347 | 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 (a b : ℝ) (f : ℝ → ℝ) (h₀ : a ≠ 0 ∧ b ≠ 0) (h₁ : ∀ x, f x = x^2 + a * x + b) (h₂ : f a = 0) (h₃ : f b = 0) : a = 1 ∧ b = -2 :=
begin
sorry
end... |
37de08b622060645d73a02f0976f17166e23fdd4 | 8cae430f0a71442d02dbb1cbb14073b31048e4b0 | /src/analysis/normed_space/ball_action.lean | 99295ec561d813f61bebf8bd0bb84fd1c088b026 | [
"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 | 8,003 | lean | /-
Copyright (c) 2022 Yury Kudryashov. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Yury Kudryashov, Heather Macbeth
-/
import analysis.normed.field.unit_ball
import analysis.normed_space.basic
/-!
# Multiplicative actions of/on balls and spheres
> THIS FILE IS SYN... |
98fb2393f2680672cab69e128220a554872b6db7 | 82e44445c70db0f03e30d7be725775f122d72f3e | /src/geometry/manifold/partition_of_unity.lean | f24d750963758810ae06a817ccced66d55756374 | [
"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 | 9,060 | lean | /-
Copyright (c) 2021 Yury G. Kudryashov. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Yury G. Kudryashov
-/
import topology.paracompact
import topology.shrinking_lemma
import geometry.manifold.bump_function
/-!
# Smooth partition of unity
In this file we define `s... |
74cb7cff4e17ef52dfa04c80b1e38aca4ff92b6a | 99b5e6372af1f404777312358869f95be7de84a3 | /src/hott/types/arrow.lean | 740446cbf69739814b27985b52b3b6f74ddaba01 | [
"Apache-2.0"
] | permissive | forked-from-1kasper/hott3 | 8fa064ab5e8c9d6752a783d74ab226ddc5b5232a | 2db24de7a361a7793b0eae4ca5c3fd4d4a0fc691 | refs/heads/master | 1,584,867,131,028 | 1,530,766,841,000 | 1,530,766,841,000 | 139,797,034 | 0 | 0 | Apache-2.0 | 1,530,766,961,000 | 1,530,766,961,000 | null | UTF-8 | Lean | false | false | 5,888 | lean | /-
Copyright (c) 2014 Floris van Doorn. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Author: Floris van Doorn
Ported from Coq HoTT
Theorems about arrow types (function spaces)
-/
import hott.types.pi
universe u
hott_theory
namespace hott
open eq equiv is_equiv funext pi i... |
389f529b67b4730d16194865c4bc5417b941b23f | 57c233acf9386e610d99ed20ef139c5f97504ba3 | /src/linear_algebra/eigenspace.lean | daa17c7a583f30aa04bb399a4b1a46289019daeb | [
"Apache-2.0"
] | permissive | robertylewis/mathlib | 3d16e3e6daf5ddde182473e03a1b601d2810952c | 1d13f5b932f5e40a8308e3840f96fc882fae01f0 | refs/heads/master | 1,651,379,945,369 | 1,644,276,960,000 | 1,644,276,960,000 | 98,875,504 | 0 | 0 | Apache-2.0 | 1,644,253,514,000 | 1,501,495,700,000 | Lean | UTF-8 | Lean | false | false | 29,088 | lean | /-
Copyright (c) 2020 Alexander Bentkamp. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Alexander Bentkamp
-/
import linear_algebra.charpoly.basic
import linear_algebra.finsupp
import linear_algebra.matrix.to_lin
import algebra.algebra.spectrum
import order.hom.basic... |
2308ba0dca914faff13dc1781fc10a62d1a268c3 | 56af0912bd25910f5caae91d6dd0603b0c032989 | /src/complex/your_solutions/Level_01_of_real.lean | 40aaea49dd5a2cde8b783222c5d7797f8acfd11e | [
"Apache-2.0"
] | permissive | isabella232/complex-number-game | ae36e0b1df9761d9df07049ca29c91ae44dbdc2d | 3d767f14041f9002e435bed3a3527fdd297c166d | refs/heads/master | 1,679,305,953,116 | 1,606,397,567,000 | 1,606,397,567,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 4,549 | lean | /-
Copyright (c) 2020 The Xena project. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Kevin Buzzard.
Thanks: Imperial College London, leanprover-community
-/
-- import the definition and basic properties of ℂ
import complex.Level_00_basic
/-! # Level 1 : the map fro... |
5838ff02348cb287e99b8ca257230235c5e9e866 | 968e2f50b755d3048175f176376eff7139e9df70 | /welcome.lean | d0fc472a6ef14c4c4a7ae44d1b469569defbac11 | [] | 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 | 32 | lean | --> check the documentation tab
|
3a9c2dd914eec20fb245b9af86ba45b8463c2b9c | 624f6f2ae8b3b1adc5f8f67a365c51d5126be45a | /stage0/src/Init/Lean/Compiler/IR/CompilerM.lean | a9437865b0b70a356d1157b218c299f9575f0e47 | [
"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 | 4,880 | 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.Reader
import Init.Lean.Environment
import Init.Lean.Compiler.IR.Basic
import Init.Lean.Compiler.IR.Format
namespace Lean
names... |
fb01236da29b49e654348d5fd246be7ed0cb00c3 | abd85493667895c57a7507870867b28124b3998f | /src/analysis/mean_inequalities.lean | 1e308ec203d122b902bc752f685e36ca2f685f83 | [
"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 | 6,827 | 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 analysis.convex.specific_functions
import analysis.special_functions.pow
/-!
# Mean value inequalities
In this file we prove various inequalities between m... |
005abe0d1a24340a2292a13f56095d236c95d404 | 592ee40978ac7604005a4e0d35bbc4b467389241 | /Library/generated/mathscheme-lean/RightCancellativeMagma.lean | ea15f3ee1a86fbd52ffdfa87e251cfd4907e1075 | [] | no_license | ysharoda/Deriving-Definitions | 3e149e6641fae440badd35ac110a0bd705a49ad2 | dfecb27572022de3d4aa702cae8db19957523a59 | refs/heads/master | 1,679,127,857,700 | 1,615,939,007,000 | 1,615,939,007,000 | 229,785,731 | 4 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 6,576 | lean | import init.data.nat.basic
import init.data.fin.basic
import data.vector
import .Prelude
open Staged
open nat
open fin
open vector
section RightCancellativeMagma
structure RightCancellativeMagma (A : Type) : Type :=
(op : (A → (A → A)))
(rightCancellative : (∀ {x y z : A} , ((op x z) = (op y z) → x... |
712b14050af887ddb31657069c263066524cd157 | 35677d2df3f081738fa6b08138e03ee36bc33cad | /src/category_theory/graded_object.lean | c711bd8535c8e9998eaf50723668383b08d99bf5 | [
"Apache-2.0"
] | permissive | gebner/mathlib | eab0150cc4f79ec45d2016a8c21750244a2e7ff0 | cc6a6edc397c55118df62831e23bfbd6e6c6b4ab | refs/heads/master | 1,625,574,853,976 | 1,586,712,827,000 | 1,586,712,827,000 | 99,101,412 | 1 | 0 | Apache-2.0 | 1,586,716,389,000 | 1,501,667,958,000 | Lean | UTF-8 | Lean | false | false | 6,871 | 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 category_theory.shift
import category_theory.limits.shapes.zero
/-!
# The category of graded objects
For any type `β`, a `β`-graded object over some category... |
61a5aaab125f23383dd6724e460dd042e299b96d | d9ed0fce1c218297bcba93e046cb4e79c83c3af8 | /library/init/meta/default.lean | 7800f80f63b31e75602c93092d829a057d74f3c4 | [
"Apache-2.0"
] | permissive | leodemoura/lean_clone | 005c63aa892a6492f2d4741ee3c2cb07a6be9d7f | cc077554b584d39bab55c360bc12a6fe7957afe6 | refs/heads/master | 1,610,506,475,484 | 1,482,348,354,000 | 1,482,348,543,000 | 77,091,586 | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 842 | lean | /-
Copyright (c) 2016 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Leonardo de Moura
-/
prelude
import init.meta.name init.meta.options init.meta.format init.meta.rb_map
import init.meta.level init.meta.expr init.meta.environment init.meta.attr... |
3479b1391e78a54c19a8902a3775199d35e2bc54 | 8cae430f0a71442d02dbb1cbb14073b31048e4b0 | /src/measure_theory/function/special_functions/basic.lean | 17665d0e7e0cc7b89a395352ed36db14ab6c7748 | [
"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,316 | 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 analysis.special_functions.pow.nnreal
import measure_theory.constructions.borel_space.complex
/-!
# Measurability of real and complex functions
> THIS FIL... |
f574422dd0f1338024b5193dda0a5c265763fa4e | 8cae430f0a71442d02dbb1cbb14073b31048e4b0 | /src/geometry/manifold/mfderiv.lean | c621b85eee4fc9a20f8c1f11d98fed37557f1261 | [
"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 | 93,958 | 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, Floris van Doorn
-/
import geometry.manifold.vector_bundle.tangent
/-!
# The derivative of functions between smooth manifolds
> THIS FILE IS SYNCHRONIZED WITH M... |
81b5c5f143fe5d39f4e227e6cabd57dc853cbccb | 6432ea7a083ff6ba21ea17af9ee47b9c371760f7 | /tests/lean/1433.lean | 3dec7cc651cb07a47b844ee6f99653306b45356f | [
"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 | 510 | lean | def dividend := 2^65
def divisor := 2^33+1
def correctQuot := 2^32-1
def correctRem := 2^32+1
def wrongRem := 1
theorem correct₁ : dividend / divisor = correctQuot := rfl
theorem correct₂ : dividend = divisor * correctQuot + correctRem := rfl
theorem wrong : dividend % divisor = wrongRem := rfl
theorem unsound : Fa... |
bdd8dadcc4e8896a5df6a3300ffd5247558e90e7 | fa02ed5a3c9c0adee3c26887a16855e7841c668b | /src/data/pnat/xgcd.lean | 18129c7850407d58e82dc7bd6b1a4b5f0750fbc7 | [
"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,645 | lean | /-
Copyright (c) 2019 Neil Strickland. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Neil Strickland
-/
import tactic.ring
import data.pnat.prime
/-!
# Euclidean algorithm for ℕ
This file sets up a version of the Euclidean algorithm that only works with natural numb... |
0287fe3f4a2f495d9ccf5f0ef6fd1ff648d16df6 | 4727251e0cd73359b15b664c3170e5d754078599 | /src/tactic/alias.lean | a4fe87f82de478bebf46285e4a774b2cc9fb8ba0 | [
"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 | 6,036 | 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 tactic.core
/-!
# The `alias` command
This file defines an `alias` command, which can be used to create copies
of a theorem or definition with different name... |
9eb66dc5aa626ffca32fe0edf284eedc947807aa | c777c32c8e484e195053731103c5e52af26a25d1 | /src/topology/continuous_function/zero_at_infty.lean | 2eca0c8ff9a9281ad3d894a5ce496287c8e781e5 | [
"Apache-2.0"
] | permissive | kbuzzard/mathlib | 2ff9e85dfe2a46f4b291927f983afec17e946eb8 | 58537299e922f9c77df76cb613910914a479c1f7 | refs/heads/master | 1,685,313,702,744 | 1,683,974,212,000 | 1,683,974,212,000 | 128,185,277 | 1 | 0 | null | 1,522,920,600,000 | 1,522,920,600,000 | null | UTF-8 | Lean | false | false | 22,927 | lean | /-
Copyright (c) 2022 Jireh Loreaux. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Jireh Loreaux
-/
import topology.continuous_function.bounded
import topology.continuous_function.cocompact_map
/-!
# Continuous functions vanishing at infinity
The type of continuous ... |
01adb78f8867f746b3f6b220e5ebc55d7442eedf | 5d166a16ae129621cb54ca9dde86c275d7d2b483 | /tests/lean/run/assert_tac1.lean | 991d4499b5cc03cefc912a07222a535b0335f673 | [
"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 | 610 | lean | open tactic
definition tst1 (a : nat) : a = a :=
by do
define `x (expr.const `nat []),
trace_state,
a ← get_local `a,
exact a,
x ← get_local `x,
mk_app `eq.refl [x] >>= exact
#print tst1
definition tst2 (a : nat) : a = a :=
by do
define `x (expr.const `nat []),
a ← get_local `a,
exact a,
... |
5ddd2c981b1ffec03dc38b78a629a9b5f431ca11 | 8cae430f0a71442d02dbb1cbb14073b31048e4b0 | /src/data/nat/choose/sum.lean | 2304080d66257c42004ac05dc83ae27463d174d0 | [
"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,993 | lean | /-
Copyright (c) 2018 Chris Hughes. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Chris Hughes, Patrick Stevens
-/
import data.nat.choose.basic
import tactic.linarith
import algebra.big_operators.ring
import algebra.big_operators.intervals
import algebra.big_operators... |
e206f60070508055234fd6691683650ba26c6171 | aa3f8992ef7806974bc1ffd468baa0c79f4d6643 | /library/standard/data/nat/sub.lean | c77e9b524a4ca5caa381393c0d64be1462f9c855 | [
"Apache-2.0"
] | permissive | codyroux/lean | 7f8dff750722c5382bdd0a9a9275dc4bb2c58dd3 | 0cca265db19f7296531e339192e9b9bae4a31f8b | refs/heads/master | 1,610,909,964,159 | 1,407,084,399,000 | 1,416,857,075,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 17,840 | lean | ----------------------------------------------------------------------------------------------------
--- Copyright (c) 2014 Floris van Doorn. All rights reserved.
--- Released under Apache 2.0 license as described in the file LICENSE.
--- Author: Floris van Doorn
--------------------------------------------------------... |
faa58ea0ab5c88470b6643928c02450c039e9f97 | 9631e35ca5dd719ccc7d3a57ec322fd93d6a0776 | /src/example_maze/definition.lean | db86d2c4ba6c60136a59caa852b2880dc5cc4441 | [] | no_license | kbuzzard/maze-game | 123fa47e0262edb6d147178d239a345d847ff147 | 362ab394ae5218c43b24232aaeef08efc0067eab | refs/heads/master | 1,670,131,466,823 | 1,598,546,702,000 | 1,598,546,702,000 | 290,744,081 | 5 | 1 | null | 1,598,546,703,000 | 1,598,523,538,000 | Lean | UTF-8 | Lean | false | false | 2,337 | lean | /-
Ideas about a maze game, from the Xena Discord.
-/
import tactic -- I don't even know if I need this
/-
This is an example level of a puzzle game.
AB
CD
E
01
23
4
Can people write computer programs in Lean which solve
levels like this?
Can people write computer programs in Python which design
levels like this... |
91231d89584b1e6bcc6baae842046eea1a01dd24 | 5e3548e65f2c037cb94cd5524c90c623fbd6d46a | /src_icannos_totilas/aops/2011-IMO-Problem_3.lean | 2d8ce28806754cde3eba65d726eb327e21439fcb | [] | no_license | ahayat16/lean_exos | d4f08c30adb601a06511a71b5ffb4d22d12ef77f | 682f2552d5b04a8c8eb9e4ab15f875a91b03845c | refs/heads/main | 1,693,101,073,585 | 1,636,479,336,000 | 1,636,479,336,000 | 415,000,441 | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 143 | lean |
import data.real.basic
theorem exo (f: real -> real) :
(forall x y, f(x + y) <= y* f(x) + f(f x))
-> (forall x > 0, f(x) = 0)
:= sorry
|
710aa5373aebaa2cbde369b76f85d2ceb31b349e | e151e9053bfd6d71740066474fc500a087837323 | /src/hott/types/sigma.lean | 83d00aecfeb420504844835dd51373efdde23d96 | [
"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 | 24,152 | lean | /-
Copyright (c) 2014-15 Floris van Doorn. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Author: Floris van Doorn
Partially ported from Coq HoTT
Theorems about sigma-types (dependent sums)
-/
import .prod
universes u v w
hott_theory
namespace hott
open hott.eq sigma hott.e... |
96aa67528985b93075b4d542c2836ebfcecad594 | 4b846d8dabdc64e7ea03552bad8f7fa74763fc67 | /tests/lean/run/check_constants.lean | 62f9d1ecb7231a1a7b47f824a3905ae19ee263f5 | [
"Apache-2.0"
] | permissive | pacchiano/lean | 9324b33f3ac3b5c5647285160f9f6ea8d0d767dc | fdadada3a970377a6df8afcd629a6f2eab6e84e8 | refs/heads/master | 1,611,357,380,399 | 1,489,870,101,000 | 1,489,870,101,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 14,872 | 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 '" +... |
96c40e8fa60a36801b1e4d0652d68e4dd566112c | 57c233acf9386e610d99ed20ef139c5f97504ba3 | /src/field_theory/laurent.lean | f9717fa802e17197197b9b70602cb563769a7da1 | [
"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 | 3,770 | lean | /-
Copyright (c) 2022 Yakov Pechersky. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Yakov Pechersky
-/
import data.polynomial.taylor
import field_theory.ratfunc
import ring_theory.laurent_series
/-!
# Laurent expansions of rational functions
## Main declarations
... |
e2150256487978a882fd6336dcd104692cacf36b | fa02ed5a3c9c0adee3c26887a16855e7841c668b | /src/algebra/char_p/default.lean | f0898fa6bdf4116f2caf8c9a785c549cb9a4ba41 | [
"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 | 144 | lean | import algebra.char_p.algebra
import algebra.char_p.basic
import algebra.char_p.pi
import algebra.char_p.quotient
import algebra.char_p.subring
|
139e11e06da457fa119c81841d0122a08b954c57 | f3a5af2927397cf346ec0e24312bfff077f00425 | /src/game/world8/level9.lean | 70e3556de9d6d82d177c15e14557af5b036fa233 | [
"Apache-2.0"
] | permissive | ImperialCollegeLondon/natural_number_game | 05c39e1586408cfb563d1a12e1085a90726ab655 | f29b6c2884299fc63fdfc81ae5d7daaa3219f9fd | refs/heads/master | 1,688,570,964,990 | 1,636,908,242,000 | 1,636,908,242,000 | 195,403,790 | 277 | 84 | Apache-2.0 | 1,694,547,955,000 | 1,562,328,792,000 | Lean | UTF-8 | Lean | false | false | 1,643 | lean | import mynat.definition -- hide
import mynat.add -- hide
import game.world8.level8 -- hide
namespace mynat -- hide
/- Axiom : zero_ne_succ (a : mynat) :
0 ≠ succ(a)
-/
/- Tactic : symmetry
## Summary
`symmetry` turns goals of the form `⊢ A = B` to `⊢ B = A`.
Also works with `≠`. Also works on hypotheses: if `h : a ... |
57f32c01eeebbc86f8e02003c2c58a42840039ce | cf39355caa609c0f33405126beee2739aa3cb77e | /tests/lean/run/dunfold3.lean | 413858040b8d9143d19d4ef759e589b18661f349 | [
"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 | 552 | lean | open tactic
def g : nat → nat := λ x, x + 5
set_option pp.all true
example (a b : nat) (p : nat → Prop) (h : p (g (nat.succ (nat.succ a)))) : p (g (a + 2)) :=
begin
unfold g at h,
do { h ← get_local `h >>= infer_type, t ← to_expr ```(p (nat.succ (nat.succ a) + 5)), guard (h = t) },
unfold has_add.add bit0 has_... |
b8cae3a70438c4dc57c7b7ff58a88d3c34bbcc49 | 57c233acf9386e610d99ed20ef139c5f97504ba3 | /src/order/filter/ultrafilter.lean | 13963d6a379abf854cca83385afd7f91f0508bd1 | [
"Apache-2.0"
] | permissive | robertylewis/mathlib | 3d16e3e6daf5ddde182473e03a1b601d2810952c | 1d13f5b932f5e40a8308e3840f96fc882fae01f0 | refs/heads/master | 1,651,379,945,369 | 1,644,276,960,000 | 1,644,276,960,000 | 98,875,504 | 0 | 0 | Apache-2.0 | 1,644,253,514,000 | 1,501,495,700,000 | Lean | UTF-8 | Lean | false | false | 14,858 | 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, Jeremy Avigad, Yury Kudryashov
-/
import order.filter.cofinite
import order.zorn
/-!
# Ultrafilters
An ultrafilter is a minimal (maximal in the set order) proper filt... |
dba23245fb3c6cca4253ccf992db131cb804b952 | 8cae430f0a71442d02dbb1cbb14073b31048e4b0 | /src/algebra/group_power/identities.lean | 82982c73a74eb08b42b306071219d174281ce804 | [
"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,307 | lean | /-
Copyright (c) 2020 Bryan Gin-ge Chen. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Bryan Gin-ge Chen, Kevin Lacker
-/
import tactic.ring
/-!
# Identities
> THIS FILE IS SYNCHRONIZED WITH MATHLIB4.
> Any changes to this file require a corresponding PR to mathlib4... |
9caf2db81427649f703c248e8d4f9252834ff0b6 | 618003631150032a5676f229d13a079ac875ff77 | /src/topology/metric_space/completion.lean | 5e0de9a0096edad3011e539f60b92f356c708f52 | [
"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,580 | lean | /-
Copyright (c) 2019 Sébastien Gouëzel. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Author: Sébastien Gouëzel
-/
import topology.uniform_space.completion
import topology.metric_space.isometry
/-!
# The completion of a metric space
Completion of uniform spaces are already ... |
31252f7a17c3fd6dba151b6dff196638a85545d7 | ac2987d8c7832fb4a87edb6bee26141facbb6fa0 | /Mathlib.lean | a20ccfe0e7d1b9153e5a09664c59d544e172b616 | [
"Apache-2.0"
] | permissive | AurelienSaue/mathlib4 | 52204b9bd9d207c922fe0cf3397166728bb6c2e2 | 84271fe0875bafdaa88ac41f1b5a7c18151bd0d5 | refs/heads/master | 1,689,156,096,545 | 1,629,378,840,000 | 1,629,378,840,000 | 389,648,603 | 0 | 0 | Apache-2.0 | 1,627,307,284,000 | 1,627,307,284,000 | null | UTF-8 | Lean | false | false | 1,175 | lean | import Mathlib.Algebra.Group.Basic
import Mathlib.Algebra.Group.Defs
import Mathlib.Algebra.GroupWithZero.Defs
import Mathlib.Algebra.Ring.Basic
import Mathlib.Data.Array.Basic
import Mathlib.Data.ByteArray
import Mathlib.Data.Char
import Mathlib.Data.Equiv.Basic
import Mathlib.Data.Equiv.Functor
import Mathlib.Data.In... |
17797810468ac82f7e0e9cfa031255d2492e76bd | fa02ed5a3c9c0adee3c26887a16855e7841c668b | /src/ring_theory/integral_closure.lean | 8aba99fae32f52d340e03b50626acba97e7f0be7 | [
"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 | 25,835 | 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 `... |
990106c6aa62fa9bac4f77017831e0ed6214e243 | d406927ab5617694ec9ea7001f101b7c9e3d9702 | /src/measure_theory/function/special_functions/arctan.lean | 8817055039e83d3fa2789955bd8c34a6134d3248 | [
"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 | 664 | 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 analysis.special_functions.trigonometric.arctan
import measure_theory.constructions.borel_space
/-!
# Measurability of arctan
-/
namespace real
@[measur... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.