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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
20cc47b18f95c538a3ae1e1cf8e761cc18aa8a70 | 8cae430f0a71442d02dbb1cbb14073b31048e4b0 | /src/tactic/omega/int/form.lean | 7f839dcb4438dc54f6201a78f503e83ddf3a593c | [
"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 | 4,277 | lean | /-
Copyright (c) 2019 Seul Baek. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Seul Baek
-/
/-
Linear integer arithmetic formulas in pre-normalized form.
-/
import tactic.omega.int.preterm
namespace omega
namespace int
/-- Intermediate shadow syntax for LNA formul... |
cff1f98b6f8ca0130cf9afd4c2ef029ce352b0ec | 5749d8999a76f3a8fddceca1f6941981e33aaa96 | /src/topology/algebra/ordered.lean | 67382ccf4e78e2d63d2083b672ad3c90ebdd8551 | [
"Apache-2.0"
] | permissive | jdsalchow/mathlib | 13ab43ef0d0515a17e550b16d09bd14b76125276 | 497e692b946d93906900bb33a51fd243e7649406 | refs/heads/master | 1,585,819,143,348 | 1,580,072,892,000 | 1,580,072,892,000 | 154,287,128 | 0 | 0 | Apache-2.0 | 1,540,281,610,000 | 1,540,281,609,000 | null | UTF-8 | Lean | false | false | 76,098 | 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, Yury Kudryashov
-/
import tactic.tfae
import order.liminf_limsup
import data.set.intervals
import topology.algebra.group
import topology.constructions
... |
e853ac4f86da5105eed6ccd9b89a8d6b62676ebb | 80cc5bf14c8ea85ff340d1d747a127dcadeb966f | /src/topology/local_extr.lean | 54ce976ab71a4851dc475889124ec779160c8f7a | [
"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 | 19,182 | 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 order.filter.extr
import topology.continuous_on
/-!
# Local extrema of functions on topological spaces
## Main definitions
This file defines special versi... |
59970a1174fffb14a49a033cc999203f8c1f7dc8 | efa51dd2edbbbbd6c34bd0ce436415eb405832e7 | /20170116_POPL/intro/ex1.lean | 740850ec43e224afde76c91c90cfcff7344d3aea | [
"Apache-2.0"
] | permissive | leanprover/presentations | dd031a05bcb12c8855676c77e52ed84246bd889a | 3ce2d132d299409f1de269fa8e95afa1333d644e | refs/heads/master | 1,688,703,388,796 | 1,686,838,383,000 | 1,687,465,742,000 | 29,750,158 | 12 | 9 | Apache-2.0 | 1,540,211,670,000 | 1,422,042,683,000 | Lean | UTF-8 | Lean | false | false | 2,499 | lean | /-
Basic lean examples
-/
variables (α : Type) (p q : α → Prop)
/-
The keywords `assume` and `take` are just syntax sugar for λ.
(show t, from p) is just syntax sugar for the type ascription (p : t)
We can inspect the type of and.left by hovering over it.
-/
example : (∀ x : α, p x ∧ q x) → ∀ y : α, p y :=
assume h... |
f0a86a7ea7fc6d5442e6af9842edbc9e43c7cac3 | ff5230333a701471f46c57e8c115a073ebaaa448 | /library/init/meta/default.lean | be52753c77808c740aab7e87d4bac187be11f2b9 | [
"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 | 992 | 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... |
e4a633d130442e94a9f0f51492eb6ae059f737af | 35677d2df3f081738fa6b08138e03ee36bc33cad | /src/tactic/converter/binders.lean | 2948b7fdd515b8dd8352e63e25788a696b70fea9 | [
"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 | 7,680 | lean | /-
Copyright (c) 2017 Johannes Hölzl. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Johannes Hölzl
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... |
1f5c6d5c59854a445a097569f261e5930cceaabf | 32025d5c2d6e33ad3b6dd8a3c91e1e838066a7f7 | /tests/lean/run/irCompilerBug.lean | df9772349f84fd2e2d419e113f9ae98d27cfeddb | [
"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 | 769 | lean | structure Payload :=
(key : Nat)
(val : Nat)
@[noinline] def get? (p : Payload) (k : Nat) : Option Nat :=
if p.key == k then p.val else none
inductive T
| a (i : Nat)
| b (i : Nat)
| c (i : Nat)
| d (i : Nat)
@[noinline] def foo (p : Payload) : Option T :=
(do
i ← get? p 1;
pure (T.a i))
<|> (do
i ← get? p 2... |
42b7ba65f4a031414a5a49a31a221d44741cdd77 | 9dc8cecdf3c4634764a18254e94d43da07142918 | /src/topology/inseparable.lean | 934f2346f436d7dac09dd1d1bad21df0f5f1bb59 | [
"Apache-2.0"
] | permissive | jcommelin/mathlib | d8456447c36c176e14d96d9e76f39841f69d2d9b | ee8279351a2e434c2852345c51b728d22af5a156 | refs/heads/master | 1,664,782,136,488 | 1,663,638,983,000 | 1,663,638,983,000 | 132,563,656 | 0 | 0 | Apache-2.0 | 1,663,599,929,000 | 1,525,760,539,000 | Lean | UTF-8 | Lean | false | false | 12,202 | lean | /-
Copyright (c) 2021 Andrew Yang. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Andrew Yang, Yury G. Kudryashov
-/
import topology.continuous_on
import data.setoid.basic
import tactic.tfae
/-!
# Inseparable points in a topological space
In this file we define
* `s... |
f2f38359440e1b7ba3b2703561809f0f877e3c6d | cf39355caa609c0f33405126beee2739aa3cb77e | /tests/lean/run/occurs_check_bug1.lean | 9b78e03bbd940181cac033575871c059f31f2bb7 | [
"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 | 464 | lean | open nat prod
open decidable
constant modulo' (x : ℕ) (y : ℕ) : ℕ
infixl `mod`:70 := modulo'
constant gcd_aux : ℕ × ℕ → ℕ
noncomputable definition gcd' (x y : ℕ) : ℕ := gcd_aux (x, y)
theorem gcd_def (x y : ℕ) : gcd' x y = @ite nat (y = 0) (nat.decidable_eq (snd (x, y)) 0) x (gcd' y (x mod y)) :=
sorry
theorem gcd... |
375f2948c0637a640249b480e76092a2eb044682 | 592ee40978ac7604005a4e0d35bbc4b467389241 | /Library/generated/mathscheme-lean/LeftSpindle.lean | 3d9d13ab207221bc3543d0abacda34c618ad414c | [] | 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,157 | 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 LeftSpindle
structure LeftSpindle (A : Type) : Type :=
(linv : (A → (A → A)))
(leftDistributive : (∀ {x y z : A} , (linv x (linv y z)) = (linv (linv x y) (linv ... |
7831d3522a645a2b87d4148f732e596b68e6bded | ca1ad81c8733787aba30f7a8d63f418508e12812 | /test.lean | 2a56bcd7b32afe9e86bf9460fdcd77c92b51adfa | [] | no_license | greati/hilbert-classical-fragments | 5cdbe07851e979c8a03c621a5efd4d24bbfa333a | 18a21ac6b2e890060eb4ae65752fc0245394d226 | refs/heads/master | 1,591,973,117,184 | 1,573,822,710,000 | 1,573,822,710,000 | 194,334,439 | 2 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 4,452 | lean | /- Comment -/
-- comment
-- declaring objects
constants m n : nat
constant f : nat → nat
constant p : prod nat nat
#check (m, n)
#check p.1
-- types are objects
#check nat
constants α β : Type
constant F : Type → Type
#check α
#check F α
-- of what type is the type Type?
#check Type
#check Type 1
#check Type 2
-... |
746996aca1ad9793432093aea4dc5cbcc0399c51 | b7536f9489184b9b43e71226db2c620e772337e9 | /core/B.lean | f7958f35132bc99422d5494a0b5327fba80f0d37 | [] | no_license | gebner/lean4-split-leanpkg | bf7cf03b9672963188cb05dcba3a5d7b546a7d78 | 2a8cc83583263ef4f93a513271876ae69748661d | refs/heads/master | 1,681,771,764,711 | 1,620,545,291,000 | 1,620,545,291,000 | 365,693,312 | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 25 | lean | import A
def B := A + 1
|
7d6579b0b571bf6d47461baa0a1aced4ebd959a7 | fe25de614feb5587799621c41487aaee0d083b08 | /src/Init/NotationExtra.lean | 03c160eb1d0cc4bf35a0ea680bd031da1763c5c2 | [
"Apache-2.0"
] | permissive | pollend/lean4 | e8469c2f5fb8779b773618c3267883cf21fb9fac | c913886938c4b3b83238a3f99673c6c5a9cec270 | refs/heads/master | 1,687,973,251,481 | 1,628,039,739,000 | 1,628,039,739,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 7,778 | 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
Extra notation that depends on Init/Meta
-/
prelude
import Init.Meta
import Init.Data.Array.Subarray
import Init.Data.ToString
namespace Lean
syntax "Macro.t... |
cb8354f1cfa3a31a40bccf6084b9213f9563db03 | 453dcd7c0d1ef170b0843a81d7d8caedc9741dce | /data/option.lean | f04bbcd8c830dcfeba8477dae14d1014f0242190 | [
"Apache-2.0"
] | permissive | amswerdlow/mathlib | 9af77a1f08486d8fa059448ae2d97795bd12ec0c | 27f96e30b9c9bf518341705c99d641c38638dfd0 | refs/heads/master | 1,585,200,953,598 | 1,534,275,532,000 | 1,534,275,532,000 | 144,564,700 | 0 | 0 | null | 1,534,156,197,000 | 1,534,156,197,000 | null | UTF-8 | Lean | false | false | 7,165 | 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... |
6749c93f9af9e4ad7cb90163f0910b2ded40b1e6 | 41ebf3cb010344adfa84907b3304db00e02db0a6 | /uexp/src/uexp/meta/cosette_tactics.lean | 7b87f8a45577d5211899941052ed2fe13cb397f8 | [
"BSD-2-Clause"
] | permissive | ReinierKoops/Cosette | e061b2ba58b26f4eddf4cd052dcf7abd16dfe8fb | eb8dadd06ee05fe7b6b99de431dd7c4faef5cb29 | refs/heads/master | 1,686,483,953,198 | 1,624,293,498,000 | 1,624,293,498,000 | 378,997,885 | 0 | 0 | BSD-2-Clause | 1,624,293,485,000 | 1,624,293,484,000 | null | UTF-8 | Lean | false | false | 24,176 | lean | import ..u_semiring
import .cosette_lemmas
open nat
open list
section cosette_tactics
def list.remove_first_of_each {α : Type} [decidable_eq α]
: list α → list α → list α
| xs [] := xs
| [] ys := []
| (x::xs) (y::ys) := if x = y
then list.remove_first_of_each xs ys
els... |
dbb7a1c203a1b71c6b6e8623760a580a715dbe1a | 8cae430f0a71442d02dbb1cbb14073b31048e4b0 | /src/algebra/lie/quotient.lean | 16cb98882faaf7f121f7fdf7759d03b066746cc1 | [
"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,736 | lean | /-
Copyright (c) 2021 Oliver Nash. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Oliver Nash
-/
import algebra.lie.submodule
import algebra.lie.of_associative
import linear_algebra.isomorphisms
/-!
# Quotients of Lie algebras and Lie modules
> THIS FILE IS SYNCHRONI... |
dbdc6ad9b906695eeb29ed2950e801de6811c570 | 63abd62053d479eae5abf4951554e1064a4c45b4 | /src/algebra/direct_sum.lean | 51d57db6851a8837c0c5e4ba87917d5f8e07f3dd | [
"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 | 4,293 | 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 data.dfinsupp
/-!
# Direct sum
This file defines the direct sum of abelian groups, indexed by a discrete type.
## Notation
`⨁ i, β i` is the n-ary direct sum `direc... |
fdf8c4701b4fc55d0c3215eb9352903bcfae9bf5 | 9dc8cecdf3c4634764a18254e94d43da07142918 | /src/topology/algebra/with_zero_topology.lean | 10c417963430ddcf5ed6d6cff10c43df003d1f69 | [
"Apache-2.0"
] | permissive | jcommelin/mathlib | d8456447c36c176e14d96d9e76f39841f69d2d9b | ee8279351a2e434c2852345c51b728d22af5a156 | refs/heads/master | 1,664,782,136,488 | 1,663,638,983,000 | 1,663,638,983,000 | 132,563,656 | 0 | 0 | Apache-2.0 | 1,663,599,929,000 | 1,525,760,539,000 | Lean | UTF-8 | Lean | false | false | 8,380 | lean | /-
Copyright (c) 2021 Patrick Massot. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Patrick Massot
-/
import algebra.order.with_zero
import topology.algebra.order.basic
/-!
# The topology on linearly ordered commutative groups with zero
Let `Γ₀` be a linearly ordere... |
3a2ebf3e3346a2bcc0d914ef4cf6701226b6b0a7 | a047a4718edfa935d17231e9e6ecec8c7b701e05 | /src/data/complex/exponential.lean | c6f0f91c1763a16457f56885417717500863ea97 | [
"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 | 49,784 | lean | /-
Copyright (c) 2018 Chris Hughes. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Chris Hughes, Abhimanyu Pallavi Sudhir
-/
import algebra.geom_sum
import data.nat.choose
import data.complex.basic
/-!
# Exponential, trigonometric and hyperbolic trigonometric functions... |
d96a17f8ffde90abd8fbfe1b76dec899c31f6573 | 9dc8cecdf3c4634764a18254e94d43da07142918 | /src/topology/instances/ennreal.lean | 89a7b6f46ff5fed424c5671455bbddc42358af5b | [
"Apache-2.0"
] | permissive | jcommelin/mathlib | d8456447c36c176e14d96d9e76f39841f69d2d9b | ee8279351a2e434c2852345c51b728d22af5a156 | refs/heads/master | 1,664,782,136,488 | 1,663,638,983,000 | 1,663,638,983,000 | 132,563,656 | 0 | 0 | Apache-2.0 | 1,663,599,929,000 | 1,525,760,539,000 | Lean | UTF-8 | Lean | false | false | 67,976 | 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 topology.instances.nnreal
import topology.algebra.order.monotone_continuity
import analysis.normed.group.basic
/-!
# Extended non-negative reals
-/
noncomputa... |
bfd4d5bbfb18019f9ac1eb975d6edfefe3a0e7cf | b561a44b48979a98df50ade0789a21c79ee31288 | /stage0/src/Lean/Elab/Command.lean | a5cee04a644bafe85b1c4536d9badf824a9e495e | [
"Apache-2.0"
] | permissive | 3401ijk/lean4 | 97659c475ebd33a034fed515cb83a85f75ccfb06 | a5b1b8de4f4b038ff752b9e607b721f15a9a4351 | refs/heads/master | 1,693,933,007,651 | 1,636,424,845,000 | 1,636,424,845,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 18,383 | 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.Parser.Command
import Lean.ResolveName
import Lean.Meta.Reduce
import Lean.Elab.Log
import Lean.Elab.Term
import Lean.Elab.Binders
import Lean.E... |
9f2c03f71a42fe14f66de9c1a2a27dbc93b0156b | 80e164f6d4e98cd2476f5f4030ba16829658e71c | /src/definitions2.lean | 96c94daaec959aaadea8816647b471e13bce7345 | [] | no_license | agusakov/matroids | 416a7fab0a8a74abe87f6ff574cadc2eaf3bf13c | a95393f6321ccbdf12fafecc788c8bfb20928c3f | refs/heads/main | 1,678,551,396,073 | 1,614,186,213,000 | 1,614,186,213,000 | 340,665,767 | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 2,985 | lean | import data.finset
universes u
open finset
variables {α : Type u} [decidable_eq α] [fintype α]
/- A matroid M is an ordered pair `(E, ℐ)` consisting of a finite set `E` and
a collection `ℐ` of subsets of `E` having the following three properties:
(I1) `∅ ∈ ℐ`.
(I2) If `I ∈ ℐ` and `I' ⊆ I`, then `I' ∈ ℐ`.
(I3... |
d96450b91c267ccb40e74994aa0907ef63ef31c2 | 7cef822f3b952965621309e88eadf618da0c8ae9 | /src/algebra/group/anti_hom.lean | caf921ce76947e0df4865587627f235b97e964b6 | [
"Apache-2.0"
] | permissive | rmitta/mathlib | 8d90aee30b4db2b013e01f62c33f297d7e64a43d | 883d974b608845bad30ae19e27e33c285200bf84 | refs/heads/master | 1,585,776,832,544 | 1,576,874,096,000 | 1,576,874,096,000 | 153,663,165 | 0 | 2 | Apache-2.0 | 1,544,806,490,000 | 1,539,884,365,000 | Lean | UTF-8 | Lean | false | false | 925 | lean | /-
Copyright (c) 2018 Patrick Massot. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Patrick Massot, Mario Carneiro, Johan Commelin
Various multiplicative and additive structures.
-/
import algebra.group.basic
variables {α : Type*} {β : Type*} [group α] [group β]
/-... |
82660eb216d905a1dc5c88a1314724ed4a144532 | 947b78d97130d56365ae2ec264df196ce769371a | /tests/lean/server/edits.lean | 7dbf4c1ed6f069b8204c9ff9e4d172dd192c13b9 | [
"Apache-2.0"
] | permissive | shyamalschandra/lean4 | 27044812be8698f0c79147615b1d5090b9f4b037 | 6e7a883b21eaf62831e8111b251dc9b18f40e604 | refs/heads/master | 1,671,417,126,371 | 1,601,859,995,000 | 1,601,860,020,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 130 | lean | import Lean.Server
#eval Lean.Server.Test.runWithInputFile "./edits_client.log" none -- The builtin search path seems to be fine
|
d67e48244c399ffbb8cb8e66c04d3923d142a7d9 | 367134ba5a65885e863bdc4507601606690974c1 | /src/data/finset/pi.lean | fe479a4429ece8f439f13367602be38660fe31dc | [
"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 | 4,476 | lean | /-
Copyright (c) 2018 Johannes Hölzl. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Author: Johannes Hölzl
-/
import data.finset.basic
import data.multiset.pi
/-!
# The cartesian product of finsets
-/
namespace finset
open multiset
/-! ### pi -/
section pi
variables {α : Ty... |
64c7bd341fb7dd76f4de04328a8aebefd6a7d9ac | b7f22e51856f4989b970961f794f1c435f9b8f78 | /library/data/encodable.lean | 3b8d2fdba315b79e5d2808a9111c8b9df6531522 | [
"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 | 13,672 | lean | /-
Copyright (c) 2015 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Author: Leonardo de Moura
Type class for encodable types.
Note that every encodable type is countable.
-/
import data.fintype data.list data.list.sort data.sum data.nat.div data.countab... |
11b76e54826e5640d130e4be05e5a6623355d201 | 432d948a4d3d242fdfb44b81c9e1b1baacd58617 | /src/algebra/category/Group/colimits.lean | bc2f8a1c07cca5aa2590b75d9c02f371ddcc5d37 | [
"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 | 9,738 | 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 algebra.category.Group.preadditive
import group_theory.quotient_group
import category_theory.limits.concrete_category
import category_theory.limits.shapes.kern... |
34bacc00cddfa37e907f7d71f00582f0f88c4a7c | ce6917c5bacabee346655160b74a307b4a5ab620 | /src/ch2/ex1001.lean | a0d235e0badbf92d0dc0673de91f73d3b384a3c7 | [] | 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 | 66 | lean | def Do_Twice {α : Type} (f : α → α) (x : α) : α := f (f x)
|
9b0282bd1a31500922eb61331c6003a2d897e33e | 46125763b4dbf50619e8846a1371029346f4c3db | /src/topology/local_extr.lean | 4e47bcf8aebdaa40962746dd97460d0eecdf5d32 | [
"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 | 14,862 | 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 order.filter.extr topology.continuous_on
/-! # Local extrema of functions on topological spaces
## Main definitions
This file defines special versions of... |
1e47237560785aa641a9972c39661f994d329ba6 | 07f5f86b00fed90a419ccda4298d8b795a68f657 | /library/init/category/state.lean | 75192548a07817061201678aafa6cb6059953a98 | [
"Apache-2.0"
] | permissive | VBaratham/lean | 8ec5c3167b4835cfbcd7f25e2173d61ad9416b3a | 450ca5834c1c35318e4b47d553bb9820c1b3eee7 | refs/heads/master | 1,629,649,471,814 | 1,512,060,373,000 | 1,512,060,469,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 3,638 | 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.interactive
universes u v
def state (σ α : Type u) : Type u :=
σ → α × σ
section
variables {σ α β : Type u}
@[inline] def state_... |
2ab29b190abbce5ebc0e8d61a57dfca7b2ed93cb | 626e312b5c1cb2d88fca108f5933076012633192 | /src/analysis/calculus/deriv.lean | 74967a71fec76112aeaa973cb7f39744432b4c22 | [
"Apache-2.0"
] | permissive | Bioye97/mathlib | 9db2f9ee54418d29dd06996279ba9dc874fd6beb | 782a20a27ee83b523f801ff34efb1a9557085019 | refs/heads/master | 1,690,305,956,488 | 1,631,067,774,000 | 1,631,067,774,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 80,636 | lean | /-
Copyright (c) 2019 Gabriel Ebner. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Gabriel Ebner, Sébastien Gouëzel
-/
import analysis.calculus.fderiv
/-!
# One-dimensional derivatives
This file defines the derivative of a function `f : 𝕜 → F` where `𝕜` is a
norm... |
47315b786e1c21c494c237a882c7000df0eaa6c6 | 6432ea7a083ff6ba21ea17af9ee47b9c371760f7 | /tests/pkg/user_attr_app/UserAttr/BlaAttr.lean | 7314fc152b60f544da98d9ffdc827b998f2a44a8 | [
"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 | 120 | lean | import Lean
open Lean
initialize blaAttr : TagAttribute ← registerTagAttribute `bla "simple user defined attribute"
|
e3d9d7bd65d3a2f8097ae2fefcaf8acda3655ff5 | c3f2fcd060adfa2ca29f924839d2d925e8f2c685 | /tests/lean/run/eq20.lean | a953a9d98e7802dac296327744f2a2fb0d97b501 | [
"Apache-2.0"
] | permissive | respu/lean | 6582d19a2f2838a28ecd2b3c6f81c32d07b5341d | 8c76419c60b63d0d9f7bc04ebb0b99812d0ec654 | refs/heads/master | 1,610,882,451,231 | 1,427,747,084,000 | 1,427,747,429,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 775 | lean | import data.list
open nat list
context
parameter {A : Type}
parameter (p : A → Prop)
parameter [H : decidable_pred p]
include H
definition filter : list A → list A
| filter nil := nil
| filter (a :: l) := if p a then a :: filter l else filter l
theorem filter_nil : filter nil = nil :=
rfl
t... |
dfc4bca4c64ad9ca5b9d2a972cf41c10220fde34 | 0d2e44896897eda703992595d71a0b19ed30b8a1 | /uexp/src/uexp/rules/magic.lean | 33268901d5a44ae74c3f10c98043485a3fe2a3f5 | [
"BSD-2-Clause"
] | permissive | wwombat/Cosette | a87312aabefdb53ea8b67c37731bd58c7485afb6 | 4c5dc6172e24d3546c9818ac1fad06f72fe1c991 | refs/heads/master | 1,619,479,568,051 | 1,520,292,502,000 | 1,520,292,502,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 51 | lean | import ..u_semiring
import ..sql
import ..tactics
|
d17d340ab06c37152939b70b603c9ab94b3a4e6e | fe84e287c662151bb313504482b218a503b972f3 | /src/exercises/mathcomp_book/chapter_3.lean | f6330fda36f31a0078ce0ade84f0d1e883cac4d5 | [] | no_license | NeilStrickland/lean_lib | 91e163f514b829c42fe75636407138b5c75cba83 | 6a9563de93748ace509d9db4302db6cd77d8f92c | refs/heads/master | 1,653,408,198,261 | 1,652,996,419,000 | 1,652,996,419,000 | 181,006,067 | 4 | 1 | null | null | null | null | UTF-8 | Lean | false | false | 4,747 | lean | import data.nat.choose data.nat.prime data.fintype.basic algebra.big_operators.basic
import tactic.ring
/- --------------------------------------------------------------- -/
-- Section 3.1.2
#check Prop
#check Type
#check Type 5
def my_matrix (R : Type) (n m : ℕ) : Type :=
(fin n) → (fin m) → R
def my_matrix.mul ... |
2e53f37973e09efccd546ebcb101db2ba2bc086d | 74addaa0e41490cbaf2abd313a764c96df57b05d | /Mathlib/number_theory/sum_four_squares.lean | 5abd0e67653ada7d1a92077e01f95344462f4250 | [] | 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,262 | lean | /-
Copyright (c) 2019 Chris Hughes. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Chris Hughes
## Lagrange's four square theorem
The main result in this file is `sum_four_squares`,
a proof that every natural number is the sum of four square numbers.
# Implementatio... |
5da7005d6f219c5b41be2cc5f07502ed77b6a1d5 | 57c233acf9386e610d99ed20ef139c5f97504ba3 | /src/measure_theory/function/simple_func_dense.lean | 8d867cd388d8d005296acd439b96037c91bc7d51 | [
"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 | 46,829 | lean | /-
Copyright (c) 2019 Zhouhang Zhou. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Zhouhang Zhou, Yury Kudryashov, Heather Macbeth
-/
import measure_theory.function.l1_space
import measure_theory.function.lp_order
/-!
# Density of simple functions
Show that each Bor... |
764edf83b82cbaa6937858759d026184b9f99ea8 | 57c233acf9386e610d99ed20ef139c5f97504ba3 | /src/algebra/big_operators/ring.lean | af91d231805be2daaa5ca939c999c7dc114063a8 | [
"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 | 10,420 | 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 algebra.big_operators.basic
import data.finset.pi
import data.finset.powerset
/-!
# Results about big operators with values in a (semi)ring
We prove results... |
07b87fb9eba383c1ed3a739a861db85882809f42 | 46125763b4dbf50619e8846a1371029346f4c3db | /src/order/filter/pointwise.lean | 1f2d309c46e4f2aabadabaf6175e23a28b7f1247 | [
"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,575 | lean | /-
Copyright (c) 2019 Zhouhang Zhou. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Zhouhang Zhou
The pointwise operations on filters have nice properties, such as
• map m (f₁ * f₂) = map m f₁ * map m f₂
• 𝓝 x * 𝓝 y = 𝓝 (x * y)
-/
import algebra.pointwise
imp... |
8612fc82d788289dc9f245226525d7626f11f022 | 8cae430f0a71442d02dbb1cbb14073b31048e4b0 | /src/topology/instances/nat.lean | 810b3a2302fefa42e12c3dbcfca204ddf580418b | [
"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 | 2,338 | lean | /-
Copyright (c) 2017 Johannes Hölzl. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Johannes Hölzl, Mario Carneiro
-/
import topology.instances.int
/-!
# Topology on the natural numbers
> THIS FILE IS SYNCHRONIZED WITH MATHLIB4.
> Any changes to this file require a c... |
43270212303cca3d4dc29c34006f66a04044dc09 | 74addaa0e41490cbaf2abd313a764c96df57b05d | /Mathlib/tactic/monotonicity/interactive_auto.lean | 3a7eebde615afedd6aca5fc71b299106d5658a40 | [] | no_license | AurelienSaue/Mathlib4_auto | f538cfd0980f65a6361eadea39e6fc639e9dae14 | 590df64109b08190abe22358fabc3eae000943f2 | refs/heads/master | 1,683,906,849,776 | 1,622,564,669,000 | 1,622,564,669,000 | 371,723,747 | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 4,387 | lean | /-
Copyright (c) 2019 Simon Hudon. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Author: Simon Hudon
-/
import Mathlib.PrePort
import Mathlib.Lean3Lib.init.default
import Mathlib.tactic.monotonicity.basic
import Mathlib.control.traversable.default
import Mathlib.control.traver... |
5a22354a67633d5d8054ab53138b09d58ef1a8f8 | a45212b1526d532e6e83c44ddca6a05795113ddc | /src/algebra/char_p.lean | 36c0099fcde69c8ada97f55ef8fef1b5618148ed | [
"Apache-2.0"
] | permissive | fpvandoorn/mathlib | b21ab4068db079cbb8590b58fda9cc4bc1f35df4 | b3433a51ea8bc07c4159c1073838fc0ee9b8f227 | refs/heads/master | 1,624,791,089,608 | 1,556,715,231,000 | 1,556,715,231,000 | 165,722,980 | 5 | 0 | Apache-2.0 | 1,552,657,455,000 | 1,547,494,646,000 | Lean | UTF-8 | Lean | false | false | 8,715 | lean | /-
Copyright (c) 2018 Kenny Lau. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Author: Kenny Lau, Joey van Langen, Casper Putz
Characteristic of semirings.
-/
import data.padics.padic_norm data.nat.choose data.fintype
import data.zmod.basic algebra.module
universes u v
/--... |
ba5957d6af26d350dbe79b67959e569ca6efbf47 | b328e8ebb2ba923140e5137c83f09fa59516b793 | /stage0/src/Lean/Elab/Term.lean | e6855118b76d8154ee3dc958132e1c3712e0ac7e | [
"Apache-2.0"
] | permissive | DrMaxis/lean4 | a781bcc095511687c56ab060e816fd948553e162 | 5a02c4facc0658aad627cfdcc3db203eac0cb544 | refs/heads/master | 1,677,051,517,055 | 1,611,876,226,000 | 1,611,876,226,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 63,162 | 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.ResolveName
import Lean.Util.Sorry
import Lean.Structure
import Lean.Meta.ExprDefEq
import Lean.Meta.AppBuilder
import Lean.Meta.SynthInstance
i... |
398a89586a806c45fcd0681f4094b59faf9cda39 | c777c32c8e484e195053731103c5e52af26a25d1 | /src/ring_theory/euclidean_domain.lean | 7ed33ee3b48155310df0c9fc0065d8925b8c5ecb | [
"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 | 3,280 | lean | /-
Copyright (c) 2018 Mario Carneiro. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Mario Carneiro, Chris Hughes
-/
import algebra.gcd_monoid.basic
import algebra.euclidean_domain.basic
import ring_theory.ideal.basic
import ring_theory.principal_ideal_domain
/-!
# Le... |
b234c089f75e14c18f1dd612716da4ba1ed3c414 | 6432ea7a083ff6ba21ea17af9ee47b9c371760f7 | /src/Init/Data/List/BasicAux.lean | 1d895b8c64046ee35724a2409c5eb1b2ce78ad84 | [
"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 | 6,885 | 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.Nat.Linear
import Init.Data.List.Basic
import Init.Util
universe u
namespace List
/-! The following functions can't be defined at ... |
f0bd4418cf138a8be04f1bc769b90115b8189697 | 82e44445c70db0f03e30d7be725775f122d72f3e | /src/category_theory/preadditive/Mat.lean | 1f141420b4ffda4be18fa816098ff5fc59669a7a | [
"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 | 15,590 | lean | /-
Copyright (c) 2021 Scott Morrison. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Scott Morrison
-/
import category_theory.preadditive.default
import category_theory.preadditive.single_obj
import category_theory.preadditive.additive_functor
import category_theory.li... |
e64899f7e2dc2919c1dc1c4548f4f3a642110622 | 4727251e0cd73359b15b664c3170e5d754078599 | /src/control/traversable/basic.lean | fd30e7352d29d8c2bcb9860e4bc8ecf639b700e1 | [
"Apache-2.0"
] | permissive | Vierkantor/mathlib | 0ea59ac32a3a43c93c44d70f441c4ee810ccceca | 83bc3b9ce9b13910b57bda6b56222495ebd31c2f | refs/heads/master | 1,658,323,012,449 | 1,652,256,003,000 | 1,652,256,003,000 | 209,296,341 | 0 | 1 | Apache-2.0 | 1,568,807,655,000 | 1,568,807,655,000 | null | UTF-8 | Lean | false | false | 9,544 | lean | /-
Copyright (c) 2018 Simon Hudon. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Simon Hudon
-/
import control.functor
/-!
# Traversable type class
Type classes for traversing collections. The concepts and laws are taken from
<http://hackage.haskell.org/package/base... |
7b3eac3059d61a07357fce42175615c5ac0cee67 | d406927ab5617694ec9ea7001f101b7c9e3d9702 | /src/analysis/normed_space/banach.lean | d086f173af75a0fa5fe5ed1cdf292698b8f7d81b | [
"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 | 21,574 | lean | /-
Copyright (c) 2019 Sébastien Gouëzel. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Sébastien Gouëzel
-/
import topology.metric_space.baire
import analysis.normed_space.operator_norm
import analysis.normed_space.affine_isometry
/-!
# Banach open mapping theorem
T... |
b6881b25c1673520773875f1d86b3566e29f7d7e | d406927ab5617694ec9ea7001f101b7c9e3d9702 | /src/algebra/char_p/basic.lean | f85f9cde38e795834de30e99f2bf871d832dd4df | [
"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 | 21,737 | lean | /-
Copyright (c) 2018 Kenny Lau. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Kenny Lau, Joey van Langen, Casper Putz
-/
import algebra.hom.iterate
import data.int.modeq
import data.nat.choose.dvd
import data.nat.choose.sum
import group_theory.order_of_element
impor... |
9ff8f08694b5eb61b22cfda7afdc375a5c4281ba | c777c32c8e484e195053731103c5e52af26a25d1 | /src/geometry/manifold/diffeomorph.lean | a02d3e5dc4d4511f34216f3582d43a53febd6a43 | [
"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 | 21,057 | lean | /-
Copyright © 2020 Nicolò Cavalleri. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Nicolò Cavalleri, Yury Kudryashov
-/
import geometry.manifold.cont_mdiff_map
/-!
# Diffeomorphisms
This file implements diffeomorphisms.
## Definitions
* `diffeomorph I I' M M' n`:... |
94263b77d9699e0f142fb9312a2ca381da6ef957 | 9dd3f3912f7321eb58ee9aa8f21778ad6221f87c | /tests/lean/run/structure_test.lean | 2be178523e9bb101e4b01e701f822ddb504412b9 | [
"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 | 676 | lean | inductive point (A B : Type*)
| mk : Π (x : A) (y : B), point
inductive [class] color
| red | green | blue
constant {u} foo (A : Type u) [H : decidable_eq A] : Type u
constants a : num
section
universe variable l
variable A : Type.{l}
variable Ha : decidable_eq A
include Ha
variable E : Type 1
include E... |
855a5bfb4fc423c087252440114e455a42a04907 | e61a235b8468b03aee0120bf26ec615c045005d2 | /stage0/src/Init/Lean/Elab/Frontend.lean | d146019cc806dc196cba4d9413db61ab933efe4d | [
"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 | 4,669 | 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
-/
prelude
import Init.Lean.Elab.Import
import Init.Lean.Elab.Command
namespace Lean
namespace Elab
namespace Frontend
structure Context :... |
9bded1569eccbb7aed342496c1709e32c8f74306 | fa02ed5a3c9c0adee3c26887a16855e7841c668b | /src/algebra/ordered_pi.lean | dd669b1bdac2a96c97075d409ee004809f62cd3c | [
"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,245 | lean | /-
Copyright (c) 2018 Simon Hudon. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Simon Hudon, Patrick Massot
-/
import algebra.group.pi
import algebra.ordered_group
import tactic.pi_instances
/-!
# Pi instances for ordered groups and monoids
This file defines instanc... |
954fb196974c2000bff3e39f0fb41557dcae82da | acc85b4be2c618b11fc7cb3005521ae6858a8d07 | /data/equiv.lean | ba87c9874e0c793672414dd83f6ec4ea9ae0a4f2 | [
"Apache-2.0"
] | permissive | linpingchuan/mathlib | d49990b236574df2a45d9919ba43c923f693d341 | 5ad8020f67eb13896a41cc7691d072c9331b1f76 | refs/heads/master | 1,626,019,377,808 | 1,508,048,784,000 | 1,508,048,784,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 16,237 | lean | /-
Copyright (c) 2015 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Leonardo de Moura, Mario Carneiro
In the standard library we cannot assume the univalence axiom.
We say two types are equivalent if they are isomorphic.
Two equivalent types h... |
401a2018ed542b31d2e55b162c3f4d6e22e20a46 | 4727251e0cd73359b15b664c3170e5d754078599 | /src/combinatorics/additive/salem_spencer.lean | 4a86aae85b7b39920297feb8f965270705100fd1 | [
"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 | 18,008 | lean | /-
Copyright (c) 2021 Yaël Dillies, Bhavik Mehta. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Yaël Dillies, Bhavik Mehta
-/
import algebra.hom.freiman
import analysis.asymptotics.asymptotics
import analysis.convex.strict_convex_space
/-!
# Salem-Spencer sets and Ro... |
0146845cfc4945fb7bd4fb47df1e57e21824be08 | fe84e287c662151bb313504482b218a503b972f3 | /src/data/multiset_extra.lean | 620418d57c2e4aae78423239b514b606cf17bdaf | [] | no_license | NeilStrickland/lean_lib | 91e163f514b829c42fe75636407138b5c75cba83 | 6a9563de93748ace509d9db4302db6cd77d8f92c | refs/heads/master | 1,653,408,198,261 | 1,652,996,419,000 | 1,652,996,419,000 | 181,006,067 | 4 | 1 | null | null | null | null | UTF-8 | Lean | false | false | 2,823 | lean | import data.multiset
import data.list_extra
namespace multiset
open multiset
variables {α : Type*}
def all_prop (p : α → Prop) (s : multiset α) : Prop :=
quot.lift_on s (list.all_prop p) (λ l₁ l₂ e, by {change list.perm l₁ l₂ at e,
apply propext,
apply @list.perm_induction_on α
(λ l₁ l₂, list.all_prop p l₁ ↔ ... |
1808230ff72b23eb53d0c1e5a73b902c82476f4b | 63abd62053d479eae5abf4951554e1064a4c45b4 | /src/category_theory/abelian/basic.lean | bd0e8997d42cb27db739aece9fb6f4788282e160 | [
"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,443 | lean | /-
Copyright (c) 2020 Markus Himmel. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Markus Himmel
-/
import category_theory.limits.shapes.constructions.pullbacks
import category_theory.limits.shapes.regular_mono
import category_theory.limits.shapes.biproducts
import c... |
31a7ab04e9c3ef695e25eb65080226895e0489b8 | 5df84495ec6c281df6d26411cc20aac5c941e745 | /src/formal_ml/random_variable_identical_IID.lean | 5e7087915a7158d3ff879f5aa7ca3b7e5d967806 | [
"Apache-2.0"
] | permissive | eric-wieser/formal-ml | e278df5a8df78aa3947bc8376650419e1b2b0a14 | 630011d19fdd9539c8d6493a69fe70af5d193590 | refs/heads/master | 1,681,491,589,256 | 1,612,642,743,000 | 1,612,642,743,000 | 360,114,136 | 0 | 0 | Apache-2.0 | 1,618,998,189,000 | 1,618,998,188,000 | null | UTF-8 | Lean | false | false | 13,312 | lean | /-
Copyright 2021 Google LLC
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
di... |
536904156853df39a4eb6b62c3b7556b1f6edf43 | fa02ed5a3c9c0adee3c26887a16855e7841c668b | /src/group_theory/finiteness.lean | 6ae85925f7c4c1d2ed9487fb8897cb6654d08a84 | [
"Apache-2.0"
] | permissive | jjgarzella/mathlib | 96a345378c4e0bf26cf604aed84f90329e4896a2 | 395d8716c3ad03747059d482090e2bb97db612c8 | refs/heads/master | 1,686,480,124,379 | 1,625,163,323,000 | 1,625,163,323,000 | 281,190,421 | 2 | 0 | Apache-2.0 | 1,595,268,170,000 | 1,595,268,169,000 | null | UTF-8 | Lean | false | false | 8,256 | lean | /-
Copyright (c) 2021 Riccardo Brasca. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Riccardo Brasca
-/
import data.set.finite
import group_theory.submonoid.operations
import group_theory.subgroup
/-!
# Finitely generated monoids and groups
We define finitely gener... |
a696da0a3e90113f6846089dd3bed807b06eac7b | d1a52c3f208fa42c41df8278c3d280f075eb020c | /stage0/src/Init/Data/ByteArray/Basic.lean | f8dcc55366612ee1f0e3fe7de7485891788aa3d0 | [
"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 | 7,251 | 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... |
fd9d26ea021be031464ebf4c67a43a25273746b3 | 57c233acf9386e610d99ed20ef139c5f97504ba3 | /src/algebra/smul_with_zero.lean | 7c508630195b6ecce095ec60c9788c9fd3fefab3 | [
"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 | 7,115 | lean | /-
Copyright (c) 2021 Damiano Testa. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Damiano Testa
-/
import algebra.group_power.basic
import algebra.ring.opposite
import group_theory.group_action.opposite
import group_theory.group_action.prod
/-!
# Introduce `smul_wit... |
7f45e27da93e69cf67d1b98cc622ae51fb6b938a | 367134ba5a65885e863bdc4507601606690974c1 | /src/group_theory/submonoid/membership.lean | 11b2dd6cf7c093875a2628c3a4443b3d50ca3494 | [
"Apache-2.0"
] | permissive | kodyvajjha/mathlib | 9bead00e90f68269a313f45f5561766cfd8d5cad | b98af5dd79e13a38d84438b850a2e8858ec21284 | refs/heads/master | 1,624,350,366,310 | 1,615,563,062,000 | 1,615,563,062,000 | 162,666,963 | 0 | 0 | Apache-2.0 | 1,545,367,651,000 | 1,545,367,651,000 | null | UTF-8 | Lean | false | false | 9,761 | lean | /-
Copyright (c) 2018 Johannes Hölzl. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Johannes Hölzl, Kenny Lau, Johan Commelin, Mario Carneiro, Kevin Buzzard,
Amelia Livingston, Yury Kudryashov
-/
import group_theory.submonoid.operations
import algebra.big_operators.ba... |
5c3a2117064dd6e42f859b8aea88f561aecea505 | fa02ed5a3c9c0adee3c26887a16855e7841c668b | /src/ring_theory/witt_vector/mul_p.lean | c8cc34f12bd5945e4e91a9e3eada35a8362ac76b | [
"Apache-2.0"
] | permissive | jjgarzella/mathlib | 96a345378c4e0bf26cf604aed84f90329e4896a2 | 395d8716c3ad03747059d482090e2bb97db612c8 | refs/heads/master | 1,686,480,124,379 | 1,625,163,323,000 | 1,625,163,323,000 | 281,190,421 | 2 | 0 | Apache-2.0 | 1,595,268,170,000 | 1,595,268,169,000 | null | UTF-8 | Lean | false | false | 2,771 | lean | /-
Copyright (c) 2020 Johan Commelin. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Johan Commelin
-/
import ring_theory.witt_vector.is_poly
/-!
## Multiplication by `n` in the ring of Witt vectors
In this file we show that multiplication by `n` in the ring of Witt... |
32335899e30719c9f720cecece6c843e017ee2b4 | c28b6af040437c3aecc5e9a23351205ba71d9394 | /src/13_Relations/00_intro.lean | 1c1089a747b39aa1b4e3720d1eaabefd262c0861 | [] | no_license | png/cs-dm-lean | 1941672c4007745a6b45d5e3500e270296ec48b3 | 7437aa002cddf116836a425a10f08b4ccbe1c916 | refs/heads/master | 1,586,285,968,765 | 1,542,741,918,000 | 1,542,741,918,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 26,256 | lean | import data.set
import data.nat.sqrt
open set
namespace relation_2102_ns
/-
We're now going to formally explain
what a "section" is for in Lean. A
section allows you to specify in one
place a set of parameters that are then
assumed to be arguments to every other
definition in the section. Here's a
very short littl... |
d16f9ca0a39cb662d9ac9e1967ad4a7ef2aed8de | 57c233acf9386e610d99ed20ef139c5f97504ba3 | /archive/imo/imo2005_q4.lean | 577ae0b753e29e290caabe069180900c9ef035b0 | [
"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 | 4,446 | lean | /-
Copyright (c) 2021 Heather Macbeth. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Heather Macbeth
-/
import field_theory.finite.basic
/-!
# IMO 2005 Q4
Problem: Determine all positive integers relatively prime to all the terms of the infinite sequence
`a n = 2 ^ ... |
ee2adefd1d455dfc38d7e25425ed00de690e3892 | cf39355caa609c0f33405126beee2739aa3cb77e | /tests/lean/import_widget_violation.lean | 8bddc1ba21e19321a49a0b0f2eac53566474a9bb | [
"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 | 453 | lean |
/- The issue this is checking is whether vm_overrides are preserved in oleans.
It will segfault if not. -/
#check tactic.save_info_with_widgets
run_cmd tactic.save_info_with_widgets ⟨1,2⟩ *> tactic.trace "hello"
run_cmd tactic.save_info ⟨1,2⟩ *> tactic.trace "hello"
-- sometimes segfaults because inliner using a b... |
f25dfcb33e4159f9c2953028f61d6474a7d095ab | 4f643cce24b2d005aeeb5004c2316a8d6cc7f3b1 | /omin/topology.lean | ccb5083c8249a977a814bc79ff664711ab903056 | [] | no_license | rwbarton/lean-omin | da209ed061d64db65a8f7f71f198064986f30eb9 | fd733c6d95ef6f4743aae97de5e15df79877c00e | refs/heads/master | 1,674,408,673,325 | 1,607,343,535,000 | 1,607,343,535,000 | 285,150,399 | 9 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 3,060 | lean | import topology.algebra.ordered
import o_minimal.order
namespace omin
open o_minimal
universe u
variables (R : Type u) [decidable_linear_order R] (S : struc R)
variables {X : Type*} [has_coordinates R X]
variables {Y : Type*} [has_coordinates R Y]
variables {Z : Type*} [has_coordinates R Z]
variables {W : Type*} [... |
98ea51c574dff2e62838a07709b906b74fc97f80 | 624f6f2ae8b3b1adc5f8f67a365c51d5126be45a | /tests/lean/run/typeclass_outparam.lean | 3aae86153d02e36d5b6dc6ff090f54b4a275908e | [
"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 | 176 | lean | class OPClass (α : outParam Type) (β : Type) : Type := (u : Unit := ())
instance op₁ : OPClass Nat Nat := {}
new_frontend
set_option pp.all true
#synth OPClass Nat Nat
|
623740b33875fe4d908797aad94a910b076a82b7 | c86b74188c4b7a462728b1abd659ab4e5828dd61 | /src/Std/Data/RBMap.lean | d6b854d88b35ecbd5bdd3535c270a26a1e199515 | [
"Apache-2.0"
] | permissive | cwb96/lean4 | 75e1f92f1ba98bbaa6b34da644b3dfab2ce7bf89 | b48831cda76e64f13dd1c0edde7ba5fb172ed57a | refs/heads/master | 1,686,347,881,407 | 1,624,483,842,000 | 1,624,483,842,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 13,787 | lean | /-
Copyright (c) 2017 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Leonardo de Moura
-/
namespace Std
universes u v w w'
inductive Rbcolor where
| red | black
inductive RBNode (α : Type u) (β : α → Type v) where
| leaf ... |
c1184f12e1f0af0dd2265881df138ff0cbb1d41d | 6432ea7a083ff6ba21ea17af9ee47b9c371760f7 | /tests/bench/rbmap_checkpoint.lean | 31be5a0f4d023ba0648f89d8b21ea250d7977b2d | [
"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 | 3,185 | lean | /-
Copyright (c) 2017 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Leonardo de Moura, Sebastian Ullrich
-/
inductive Color
| red | black
inductive Tree where
| leaf
| node : Color → Tree → Nat → Bool → Tree → Tree
deriving Inhabited
... |
54c7aed57ebf9a082238cb7aaf6f6ce94536b7eb | 74addaa0e41490cbaf2abd313a764c96df57b05d | /Mathlib/tactic/omega/term.lean | 919024ced24e23acb93e6c96db2e4de9b029d5cc | [] | no_license | AurelienSaue/Mathlib4_auto | f538cfd0980f65a6361eadea39e6fc639e9dae14 | 590df64109b08190abe22358fabc3eae000943f2 | refs/heads/master | 1,683,906,849,776 | 1,622,564,669,000 | 1,622,564,669,000 | 371,723,747 | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 2,013 | lean | /-
Copyright (c) 2019 Seul Baek. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Author: Seul Baek
-/
import Mathlib.PrePort
import Mathlib.Lean3Lib.init.default
import Mathlib.tactic.omega.coeffs
import Mathlib.PostPort
namespace Mathlib
/-
Normalized linear integer arithmeti... |
6c7a1768cf26dadc9e01bf6c509c7e97bf2c53c6 | 87fd6b43d22688237c02b87c30d2a524f53bab24 | /src/game/integral/tempLevel1.lean | 0b75f1aadfef1ed19b587dd52d8954545d9a3668 | [
"Apache-2.0"
] | permissive | grthomson/real-number-game | 66142fedf0987db90f66daed52f9c8b42b70f909 | 8ddc15fdddc241c246653f7bb341df36e4e880a8 | refs/heads/master | 1,668,059,330,605 | 1,592,873,454,000 | 1,592,873,454,000 | 262,025,764 | 0 | 0 | null | 1,588,849,107,000 | 1,588,849,106,000 | null | UTF-8 | Lean | false | false | 616 | lean | import data.real.basic
import data.vector
open real
variable X : Type -- hide
/-
# Work in progress.
-/
-- begin hide
#check finset
#check finset.card_range
#check list
--Do we want a list? A vector?
--either way, not sure how to go about this yet
--def partition (a b : ℝ) (A: set.Icc a b) (n : ℕ) := list ℝ
-- ... |
70117b6447de5018713e71ece98f9d55399cb236 | 4fa118f6209450d4e8d058790e2967337811b2b5 | /src/for_mathlib/filter.lean | ecf8e7c5f6553bb9ee3553d52614b1e4d92ccaf2 | [
"Apache-2.0"
] | permissive | leanprover-community/lean-perfectoid-spaces | 16ab697a220ed3669bf76311daa8c466382207f7 | 95a6520ce578b30a80b4c36e36ab2d559a842690 | refs/heads/master | 1,639,557,829,139 | 1,638,797,866,000 | 1,638,797,866,000 | 135,769,296 | 96 | 10 | Apache-2.0 | 1,638,797,866,000 | 1,527,892,754,000 | Lean | UTF-8 | Lean | false | false | 8,637 | lean | import order.filter.basic
import for_mathlib.data.set.basic
local infixr ` ×ᶠ `:51 := filter.prod
section
open filter set function
lemma filter.comap_pure {α : Type*} {β : Type*} {f : α → β} (h : injective f) (a : α) :
pure a = comap f (pure $ f a) :=
by rw [← filter.map_pure, comap_map h]
variables {α : Type*} ... |
6699c7b38f17fab5a52e1c81fee14b4c2663ab7e | 35677d2df3f081738fa6b08138e03ee36bc33cad | /src/topology/algebra/group_completion.lean | 4ff328f33a4b133b265a5ef592472e001bf2a3af | [
"Apache-2.0"
] | permissive | gebner/mathlib | eab0150cc4f79ec45d2016a8c21750244a2e7ff0 | cc6a6edc397c55118df62831e23bfbd6e6c6b4ab | refs/heads/master | 1,625,574,853,976 | 1,586,712,827,000 | 1,586,712,827,000 | 99,101,412 | 1 | 0 | Apache-2.0 | 1,586,716,389,000 | 1,501,667,958,000 | Lean | UTF-8 | Lean | false | false | 4,147 | lean | /-
Copyright (c) 2018 Patrick Massot. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Patrick Massot, Johannes Hölzl
Completion of topological groups:
-/
import topology.uniform_space.completion topology.algebra.uniform_group
noncomputable theory
section group
open un... |
e3a14d1a07ddcb9f4317f4f809333d31b077b597 | 7b66d83f3b69dae0a3dfb684d7ebe5e9e3f3c913 | /src/solutions/thursday/afternoon/category_theory/exercise5.lean | caec2d1ad68bbde8e60cf402a912cd0a4332ae63 | [] | permissive | dpochekutov/lftcm2020 | 58a09e10f0e638075b97884d3c2612eb90296adb | cdfbf1ac089f21058e523db73f2476c9c98ed16a | refs/heads/master | 1,669,226,265,076 | 1,594,629,725,000 | 1,594,629,725,000 | 279,213,346 | 1 | 0 | MIT | 1,594,622,757,000 | 1,594,615,843,000 | null | UTF-8 | Lean | false | false | 1,333 | lean | import category_theory.limits.shapes.biproducts
/-!
Let's show that every preadditive category embeds into a preadditive category with biproducts,
and identify a good universal property.
-/
universes v u
variables (C : Type u)
structure family :=
(ι : Type v)
[fintype : fintype ι]
[decidable_eq : decidable_eq ι]
(v... |
d0d831ce04bc2e084d17a70f3ee70e9dd2b4eca8 | 74addaa0e41490cbaf2abd313a764c96df57b05d | /Mathlib/field_theory/adjoin_auto.lean | 68c8ee09565e00599221411588d0fdb0a200eea0 | [] | 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 | 29,763 | lean | /-
Copyright (c) 2020 Thomas Browning and Patrick Lutz. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Thomas Browning and Patrick Lutz
-/
import Mathlib.PrePort
import Mathlib.Lean3Lib.init.default
import Mathlib.field_theory.intermediate_field
import Mathlib.field_th... |
38533f9e27dedc61e1d5d24cb6446911f9aa6d76 | 32025d5c2d6e33ad3b6dd8a3c91e1e838066a7f7 | /tests/lean/run/readerThe.lean | e99742cb32a6f5fbfa04214fb4ed7b61b5e3cd08 | [
"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 | 325 | lean | abbrev M := ReaderT String $ StateT Nat $ ReaderT Bool $ IO
def f : M Nat := do
s ← read;
IO.println s;
b ← readThe Bool;
IO.println b;
s ← get;
pure s
#eval (f "hello").run' 10 true
def g : M Nat :=
let a : M Nat := adaptTheReader Bool not f;
adaptReader (fun s => s ++ " world") a
#eval (g "hello").run' 10 true
|
aa4f6f0bfa86be4f9ecc18a1a5a67c21eb393423 | 4dbc106f944ae08d9082a937156fe53f8241336c | /src/data/multiset/dict.lean | 7b468ab4a3a618942e74db1ec529184ace4022b5 | [] | no_license | spl/lean-finmap | feff7ee53811b172531f84b20c02e50c787fe6fc | 936d9caeb27631e3c6cf20e972de4837c9fe98fa | refs/heads/master | 1,584,501,090,642 | 1,537,511,660,000 | 1,537,515,626,000 | 134,227,269 | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 12,582 | lean | import data.list.dict
import data.multiset
import data.pfun
namespace multiset
universes u v
variables {α : Type u} {β : α → Type v}
open function list
def nodupkeys (m : multiset (sigma β)) : Prop :=
quotient.lift_on m nodupkeys (λ _ _, propext ∘ perm_nodupkeys)
theorem nodupkeys_coe {l : list (sigma β)} :
nodup... |
1ea4cd6b9d9120cecf8568b6397dbc82a91125e1 | 94e33a31faa76775069b071adea97e86e218a8ee | /src/analysis/fourier.lean | afff0ce40880e16fb2373dce9839bfd6cb217a7c | [
"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 | 10,697 | lean | /-
Copyright (c) 2021 Heather Macbeth. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Heather Macbeth
-/
import analysis.complex.circle
import analysis.inner_product_space.l2_space
import measure_theory.function.continuous_map_dense
import measure_theory.function.l2_sp... |
d7a1445bdb983b45cee61f22d994efabc3904ae9 | 82b86ba2ae0d5aed0f01f49c46db5afec0eb2bd7 | /src/Lean/Elab/DeclModifiers.lean | d4b65b984c82c612e5d8e8cd1fbf6179e22d6f1f | [
"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 | 6,586 | 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
-/
import Lean.Modifiers
import Lean.Elab.Attributes
import Lean.Elab.Exception
import Lean.Elab.DeclUtil
namespace Lean.Elab
def checkNot... |
6f8421c13fee64f06c069af8ed28a277b22f858f | 9dc8cecdf3c4634764a18254e94d43da07142918 | /src/algebra/hom/ring.lean | b6dcd88cabb5bd0638d75ce35d11e2f3e7b9e31c | [
"Apache-2.0"
] | permissive | jcommelin/mathlib | d8456447c36c176e14d96d9e76f39841f69d2d9b | ee8279351a2e434c2852345c51b728d22af5a156 | refs/heads/master | 1,664,782,136,488 | 1,663,638,983,000 | 1,663,638,983,000 | 132,563,656 | 0 | 0 | Apache-2.0 | 1,663,599,929,000 | 1,525,760,539,000 | Lean | UTF-8 | Lean | false | false | 21,884 | lean | /-
Copyright (c) 2019 Amelia Livingston. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Amelia Livingston, Jireh Loreaux
-/
import algebra.ring.basic
/-!
# Homomorphisms of semirings and rings
This file defines bundled homomorphisms of (non-unital) semirings and ring... |
c7744d3ab39d8042bbb26f7db311391adf07c238 | 94e33a31faa76775069b071adea97e86e218a8ee | /src/analysis/locally_convex/balanced_core_hull.lean | 9b0ec3d823e1d4c957fd0b540642170e3b48d341 | [
"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 | 9,350 | lean | /-
Copyright (c) 2022 Moritz Doll. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Moritz Doll
-/
import analysis.locally_convex.basic
import order.closure
/-!
# Balanced Core and Balanced Hull
## Main definitions
* `balanced_core`: The largest balanced subset of a s... |
44e2fad945fff18e0051069d89bab73f70a412dd | 947b78d97130d56365ae2ec264df196ce769371a | /tests/lean/run/def8.lean | eb5129b86b0a093f4a9f2a8f2794e4542f233214 | [
"Apache-2.0"
] | permissive | shyamalschandra/lean4 | 27044812be8698f0c79147615b1d5090b9f4b037 | 6e7a883b21eaf62831e8111b251dc9b18f40e604 | refs/heads/master | 1,671,417,126,371 | 1,601,859,995,000 | 1,601,860,020,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 921 | lean | new_frontend
def g : List Nat → List Nat → Nat
| [], y::ys => y
| [], ys => 0
| x1::x2::xs, ys => g xs ys
| x::xs, y::ys => g xs ys + y
| x::xs, [] => g xs []
universes u v
inductive Imf {α β} (f : α → β) : β → Type _
| mk : (a : α) → Imf f (f a)
def h {α β} {f : α → β} : {b : β} ... |
9cad489b6ad87b533b53acacaaa1552185c26cb7 | 26ac254ecb57ffcb886ff709cf018390161a9225 | /src/algebra/invertible.lean | 5bebcc627123debd335744e95a7de273ff512a1a | [
"Apache-2.0"
] | permissive | eric-wieser/mathlib | 42842584f584359bbe1fc8b88b3ff937c8acd72d | d0df6b81cd0920ad569158c06a3fd5abb9e63301 | refs/heads/master | 1,669,546,404,255 | 1,595,254,668,000 | 1,595,254,668,000 | 281,173,504 | 0 | 0 | Apache-2.0 | 1,595,263,582,000 | 1,595,263,581,000 | null | UTF-8 | Lean | false | false | 7,362 | lean | /-
Copyright (c) 2020 Anne Baanen. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Author: Anne Baanen
A typeclass for the two-sided multiplicative inverse.
-/
import algebra.char_zero
import algebra.char_p
/-!
# Invertible elements
This file defines a typeclass `invertible ... |
d66406a214d6e776c31921ab4e0d72917f7ee737 | c512f72c3704cbf8f34addab0d4482633dc46bbe | /src/re.lean | b5832ae2f26866f16ddd7dcf0e2f2402cc90d077 | [] | no_license | iehality/abstract-computability | 7479c2786ecac8e00f3d7be00cbd7cd4a4ae43fc | 19c1a32e748e733c65f3e9e6395e4e56e4330cca | refs/heads/main | 1,680,113,399,119 | 1,616,950,483,000 | 1,616,950,483,000 | 346,220,308 | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 8,501 | lean | import pca
namespace pca
universe variable u
variables {α : Type u}
variables [pca α]
/- Minimum submodel of pca containing A -/
inductive submodel (A : set α) : set α
| rel {a} : a ∈ A → submodel a
| k : submodel k
| s : submodel s
| mul {a b c} : (↓a * ↓b) = ↓c → submodel a → submodel b → submodel c
notation `ℳ` :... |
bbc5cfb64b2d4d0b385a7167e5d1bbf9671a5363 | f1dc39e1c68f71465c8bf79910c4664d03824751 | /tests/lean/run/check_constants.lean | 1f99b7d203d9702706e9baea005605654638365f | [
"Apache-2.0"
] | permissive | kckennylau/lean-2 | 6504f45da07bc98b098d726b74130103be25885c | c9a9368bc0fd600d832bd56c5cb2124b8a523ef9 | refs/heads/master | 1,659,140,308,864 | 1,589,361,166,000 | 1,589,361,166,000 | 263,748,786 | 0 | 0 | null | 1,589,405,915,000 | 1,589,405,915,000 | null | UTF-8 | Lean | false | false | 12,147 | 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 '" +... |
8c469f9d50c744e8c3f3f0339756363972990d2e | 38ee9024fb5974f555fb578fcf5a5a7b71e669b5 | /test/Split.lean | 7b48b0d7d01fcfe89252e88097a3108ba5241cef | [
"Apache-2.0"
] | permissive | denayd/mathlib4 | 750e0dcd106554640a1ac701e51517501a574715 | 7f40a5c514066801ab3c6d431e9f405baa9b9c58 | refs/heads/master | 1,693,743,991,894 | 1,636,618,048,000 | 1,636,618,048,000 | 373,926,241 | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 190 | lean | import Mathlib.Tactic.Basic
example : (α : Type) × List α := by
constructor
· exact [0,1]
-- example : (α : Type) × List α := by
-- fsplit
-- - exact ℕ
-- - exact [0,1]
|
e271f10b8e3ce1779d6077f6dbfeeb1e4c05a1f9 | 7cef822f3b952965621309e88eadf618da0c8ae9 | /src/group_theory/quotient_group.lean | c9b54e14a90abba561af2535e0a56e5e6e7c2baa | [
"Apache-2.0"
] | permissive | rmitta/mathlib | 8d90aee30b4db2b013e01f62c33f297d7e64a43d | 883d974b608845bad30ae19e27e33c285200bf84 | refs/heads/master | 1,585,776,832,544 | 1,576,874,096,000 | 1,576,874,096,000 | 153,663,165 | 0 | 2 | Apache-2.0 | 1,544,806,490,000 | 1,539,884,365,000 | Lean | UTF-8 | Lean | false | false | 7,113 | lean | /-
Copyright (c) 2018 Kevin Buzzard and Patrick Massot. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Kevin Buzzard, Patrick Massot.
This file is to a certain extent based on `quotient_module.lean` by Johannes Hölzl.
-/
import group_theory.coset
universes u v
names... |
852cf32af941b8629f8df079b1f00f01d8371e59 | 5842125af0946f8797927ce44a1a4c3ba27ad5b4 | /src/BinaryTools.lean | edf2bc63b9c129005f0a3533c1dfcd0a2f3b3287 | [] | no_license | Anderssorby/Neptune.lean | 5c2f3e4885b4a5635718ac827069690703bc1ffb | 378317a3e4383c7874d01907efb84b1e39180cf3 | refs/heads/main | 1,692,962,529,542 | 1,636,564,929,000 | 1,636,564,929,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 3,578 | lean | /-
BinaryTools: Utilities for displaying and manipulating Binary data.
-/
/-
Simplification rules for ensuring type safety of Blake3Hash
-/
@[simp] theorem ByteArray.size_empty : ByteArray.empty.size = 0 :=
rfl
@[simp] theorem ByteArray.size_push (B : ByteArray) (a : UInt8) : (B.push a).size = B.size + 1 :=
by { case... |
8a091b26307744861451dc928187e45b065abc0f | b815abf92ce063fe0d1fabf5b42da483552aa3e8 | /tests/lean/elab_meta2.lean | 61eabd8e239589b49b85c885433d7867ecfc43f6 | [
"Apache-2.0"
] | permissive | yodalee/lean | a368d842df12c63e9f79414ed7bbee805b9001ef | 317989bf9ef6ae1dec7488c2363dbfcdc16e0756 | refs/heads/master | 1,610,551,176,860 | 1,481,430,138,000 | 1,481,646,441,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 886 | lean |
print "parametric meta definition"
meta definition f {A : Type} : nat → A → A → A
| n a b := if n / 2 = 0 then a else f (n / 2) b a
vm_eval
if f 10 1 2 = 2 then "OK" else "FAILED"
namespace foo
print "parametric meta definition inside namespace"
meta definition bla {A : Type} : nat → A → A → A
| n a b := if n / 2 =... |
60c8669664d894b0b2b426f7e9b2b391aed03dfb | 4727251e0cd73359b15b664c3170e5d754078599 | /src/algebra/field_power.lean | 0d3049812c2e06437e0580e29828122c86924ff3 | [
"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,370 | 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
-/
import algebra.group_with_zero.power
import algebra.ring.equiv
import tactic.linarith
/-!
# Integer power operation on fields and division rings
This file collect... |
bca3417bc8f7167281e032a987d33c988dc4007d | 8cae430f0a71442d02dbb1cbb14073b31048e4b0 | /src/category_theory/monad/types.lean | f231851f08ff5571ab709533afbadf90cd821cb3 | [
"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 | 2,169 | lean | /-
Copyright (c) 2019 Johannes Hölzl. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Johannes Hölzl, Bhavik Mehta
-/
import category_theory.monad.basic
import category_theory.monad.kleisli
import category_theory.category.Kleisli
import category_theory.types
/-!
# Con... |
ba0cf0bc7bc363fac0ba31e7b5e28fc6f4ece883 | 6432ea7a083ff6ba21ea17af9ee47b9c371760f7 | /tests/lean/run/applytransp.lean | 4bafb41f269afa926cb1477f5c62244bd21d0903 | [
"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 | 102 | lean | theorem ex1 (h₁ : ¬ p) (h₂ : q → p) : ¬ q := by
intro h
apply h₁
apply h₂
apply h
|
190ef368b51afe4eca2d7c28dbc549a4b6fd0496 | 8cae430f0a71442d02dbb1cbb14073b31048e4b0 | /src/data/sigma/order.lean | c30c4b0dac88eb5045845be78107c33732a60612 | [
"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 | 9,754 | lean | /-
Copyright (c) 2021 Yaël Dillies. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Yaël Dillies
-/
import data.sigma.lex
import order.bounded_order
/-!
# Orders on a sigma type
> THIS FILE IS SYNCHRONIZED WITH MATHLIB4.
> Any changes to this file require a correspond... |
362adf708aaa8af9fdf81643e3454a83e598da17 | 4727251e0cd73359b15b664c3170e5d754078599 | /src/control/monad/writer.lean | 837d27543a48cc854bdf64f55457582394dc755b | [
"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,925 | lean | /-
Copyright (c) 2019 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Simon Hudon
The writer monad transformer for passing immutable state.
-/
import algebra.group.defs
import logic.equiv.basic
universes u v w u₀ u₁ v₀ v₁
structure writer_t (ω ... |
5c26b6167b51507093e4caf7adec8c55377ac395 | f5373ccdc976e6390397d9f4220a74c76f706f4a | /src/tools/json_serialization.lean | a4655dc192d81e5515d0bc1affceabec899eb13f | [] | no_license | jasonrute/lean_gym_prototype | fcd91fdc454f9e351bbe258c765f50276407547e | ab29624d14e4e069e15afe0b1d90248b5b394b86 | refs/heads/master | 1,682,628,526,780 | 1,590,539,315,000 | 1,590,539,315,000 | 264,938,525 | 3 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 2,263 | lean | import data.buffer.parser
import init.data.unsigned
import tools.json
open parser
def Ws : parser unit :=
decorate_error "<whitespace>" $
many' $ one_of' " \t\x0d\n".to_list
def tok (s : string) := str s >> Ws
def StringChar : parser char :=
sat (λc, c ≠ '\"' ∧ c ≠ '\\' ∧ c.val > 0x1f)
<|> (do str "\\",
(... |
5b8a466ea0d462f578f64d19c3fca3883057879f | efa51dd2edbbbbd6c34bd0ce436415eb405832e7 | /20161026_ICTAC_Tutorial/ex4.lean | c403473ed6fee111f35074d89071e54c0e73e164 | [
"Apache-2.0"
] | permissive | leanprover/presentations | dd031a05bcb12c8855676c77e52ed84246bd889a | 3ce2d132d299409f1de269fa8e95afa1333d644e | refs/heads/master | 1,688,703,388,796 | 1,686,838,383,000 | 1,687,465,742,000 | 29,750,158 | 12 | 9 | Apache-2.0 | 1,540,211,670,000 | 1,422,042,683,000 | Lean | UTF-8 | Lean | false | false | 232 | lean | constants A B : Type
constant F : Type → Type
constant G : Type → Type → Type
check A -- Type
check F A -- Type
check F nat -- Type
check G A -- Type → Type
check G A B -- Type
check G A nat -- Type
|
37cba41c18a356730b8082d9bbac63ea758440ec | 82b86ba2ae0d5aed0f01f49c46db5afec0eb2bd7 | /src/Init/Control/Id.lean | 96d146fb44e4453ae031afbf10371a2f3d28012e | [
"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 | 751 | lean | /-
Copyright (c) 2017 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Sebastian Ullrich
The identity Monad.
-/
prelude
import Init.Core
universe u
def Id (type : Type u) : Type u := type
namespace Id
@[inline] protected def pure {α : Type u} ... |
325262110a5c21f2e6602800601dad89e510e338 | 4d2583807a5ac6caaffd3d7a5f646d61ca85d532 | /src/analysis/special_functions/trigonometric/arctan.lean | c6a664d95c6c6cd4c174bb2ad3480603bc05662a | [
"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 | 13,459 | lean | /-
Copyright (c) 2018 Chris Hughes. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Chris Hughes, Abhimanyu Pallavi Sudhir, Jean Lo, Calle Sönne, Benjamin Davidson
-/
import analysis.special_functions.trigonometric.complex
/-!
# The `arctan` function.
Inequalities, de... |
8ad36e385eec328af51ba35ecf56f02f0ceea682 | 8930e38ac0fae2e5e55c28d0577a8e44e2639a6d | /data/set/finite.lean | 98e354f5e7f543da344eb4213fb4a85c46f8816a | [
"Apache-2.0"
] | permissive | SG4316/mathlib | 3d64035d02a97f8556ad9ff249a81a0a51a3321a | a7846022507b531a8ab53b8af8a91953fceafd3a | refs/heads/master | 1,584,869,960,527 | 1,530,718,645,000 | 1,530,724,110,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 10,424 | 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
Finite sets.
-/
import data.set.lattice data.nat.basic logic.function
data.fintype
open set lattice function
universes u v w
variables {α : Typ... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.