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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
30cda174fc81917cb5e232b53f7a8f0d4a03230e | 6b45072eb2b3db3ecaace2a7a0241ce81f815787 | /data/seq/computation.lean | 8f9f739fc81482b500b1950ffd78d187cf9296cd | [] | no_license | avigad/library_dev | 27b47257382667b5eb7e6476c4f5b0d685dd3ddc | 9d8ac7c7798ca550874e90fed585caad030bbfac | refs/heads/master | 1,610,452,468,791 | 1,500,712,839,000 | 1,500,713,478,000 | 69,311,142 | 1 | 0 | null | 1,474,942,903,000 | 1,474,942,902,000 | null | UTF-8 | Lean | false | false | 34,509 | lean | /-
Copyright (c) 2017 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Author: Mario Carneiro
Coinductive formalization of unbounded computations.
-/
import data.stream pending
universes u v w
/-
coinductive computation (α : Type u) : Type u
| return : α ... |
571291570a82c428ca4c95c975085a2f0bf95191 | bb31430994044506fa42fd667e2d556327e18dfe | /src/algebra/order/field/power.lean | 8c265dd4490bd76186922df25a820ee948bf6bf3 | [
"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,803 | lean | /-
Copyright (c) 2014 Robert Lewis. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Robert Lewis, Leonardo de Moura, Mario Carneiro, Floris van Doorn
-/
import algebra.parity
import algebra.char_zero.lemmas
import algebra.group_with_zero.power
import algebra.order.field... |
85a64c3f6b432672ff3ac22ed737ddc6570d395f | 8c9f90127b78cbeb5bb17fd6b5db1db2ffa3cbc4 | /playing_with_kennys_stuff.lean | 99cb7deffb7c524cf38d3c10ef29b80ab2861cfc | [] | no_license | picrin/lean | 420f4d08bb3796b911d56d0938e4410e1da0e072 | 3d10c509c79704aa3a88ebfb24d08b30ce1137cc | refs/heads/master | 1,611,166,610,726 | 1,536,671,438,000 | 1,536,671,438,000 | 60,029,899 | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 1,057 | lean | def even : ℕ → Prop
| 0 := true
| 1 := false
| (n + 2) := even n
def even2 : ℕ → Prop :=
λ n : ℕ, ∃ k : ℕ, 2 * k = n
inductive even3 : ℕ → Prop
| zero : even3 0
| add_two : ∀ d: nat, even3 d → even3 (d + 2)
lemma even2_progression (d : ℕ) : even2 d → even2 (d + 2) :=
λ H, have step : (∀ (a : nat), (2 * a = ... |
9ef4d2d233e8da3437a29bb2c31e3778d07bbaa2 | a45212b1526d532e6e83c44ddca6a05795113ddc | /src/tactic/interactive.lean | f3ea5620a19ed78beb772753dd8e475ad75f5449 | [
"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 | 28,790 | lean | /-
Copyright (c) 2017 Mario Carneiro. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Mario Carneiro, Simon Hudon, Sebastien Gouezel, Scott Morrison
-/
import data.list.defs tactic.rcases tactic.generalize_proofs tactic.tauto
tactic.basic tactic.rcases tactic.generali... |
efeefd4e4dde113e8e0d05f302e6ede7af6e347b | a7dd8b83f933e72c40845fd168dde330f050b1c9 | /src/data/set/basic.lean | 481165750a63e6270edf36295920236db768ec4b | [
"Apache-2.0"
] | permissive | NeilStrickland/mathlib | 10420e92ee5cb7aba1163c9a01dea2f04652ed67 | 3efbd6f6dff0fb9b0946849b43b39948560a1ffe | refs/heads/master | 1,589,043,046,346 | 1,558,938,706,000 | 1,558,938,706,000 | 181,285,984 | 0 | 0 | Apache-2.0 | 1,568,941,848,000 | 1,555,233,833,000 | Lean | UTF-8 | Lean | false | false | 52,809 | lean | /-
Copyright (c) 2014 Jeremy Avigad. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Author: Jeremy Avigad, Leonardo de Moura
-/
import tactic.basic tactic.finish data.subtype
open function
/- set coercion to a type -/
namespace set
instance {α : Type*} : has_coe_to_sort (set ... |
f64602d172db6a4bb12b5ba47f31f5fea3c43f74 | 3446e92e64a5de7ed1f2109cfb024f83cd904c34 | /src/game/world4/level2.lean | 0dada07501a2fc448240dee268e48e089e3374e2 | [] | no_license | kckennylau/natural_number_game | 019f4a5f419c9681e65234ecd124c564f9a0a246 | ad8c0adaa725975be8a9f978c8494a39311029be | refs/heads/master | 1,598,784,137,722 | 1,571,905,156,000 | 1,571,905,156,000 | 218,354,686 | 0 | 0 | null | 1,572,373,319,000 | 1,572,373,318,000 | null | UTF-8 | Lean | false | false | 327 | lean | import game.world4.level1 -- hide
namespace mynat -- hide
/-
# World 4 : Power World
## Level 2 of 7: `zero_pow_succ`
-/
/- Lemma
For all naturals $m$, $0 ^{succ (m)} = 0$.
-/
lemma zero_pow_succ (m : mynat) : (0 : mynat) ^ (succ m) = 0 :=
begin [less_leaky]
rw pow_succ,
rw mul_zero,
refl,
end
end mynat -... |
eae5e2b656d4e52d2af3fe9e712055922cb2fd3e | c09f5945267fd905e23a77be83d9a78580e04a4a | /src/topology/sequences.lean | afde3986b1b53501d1fc4a24a4828893b9511727 | [
"Apache-2.0"
] | permissive | OHIHIYA20/mathlib | 023a6df35355b5b6eb931c404f7dd7535dccfa89 | 1ec0a1f49db97d45e8666a3bf33217ff79ca1d87 | refs/heads/master | 1,587,964,529,965 | 1,551,819,319,000 | 1,551,819,319,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 10,539 | lean | /-
Copyright (c) 2018 Jan-David Salchow. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Jan-David Salchow
Sequences in topological spaces.
In this file we define sequences in topological spaces and show how they are related to
filters and the topology. In particular,... |
4f655cfe74b6ccf1b03e898ae99567df518688c1 | 69d4931b605e11ca61881fc4f66db50a0a875e39 | /src/data/nat/log.lean | 2aec7bff198d9fd3aec2276f6d052d972efdd5c8 | [
"Apache-2.0"
] | permissive | abentkamp/mathlib | d9a75d291ec09f4637b0f30cc3880ffb07549ee5 | 5360e476391508e092b5a1e5210bd0ed22dc0755 | refs/heads/master | 1,682,382,954,948 | 1,622,106,077,000 | 1,622,106,077,000 | 149,285,665 | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 3,460 | lean | /-
Copyright (c) 2020 Simon Hudon. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Simon Hudon
-/
import data.nat.basic
/-!
# Natural number logarithm
This file defines `log b n`, the logarithm of `n` with base `b`, to be the largest `k` such that
`b ^ k ≤ n`.
-/
name... |
4864ba4de14dd3813e99827277e55e37ed06f414 | 624f6f2ae8b3b1adc5f8f67a365c51d5126be45a | /tests/lean/run/trace.lean | 54494422fb95a0594b730a23f52af3ed595aab3c | [
"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 | 1,843 | lean | import Init.Lean.Util.Trace
open Lean
structure MyState :=
(traceState : TraceState := {})
(s : Nat := 0)
abbrev M := ReaderT Options (EStateM String MyState)
/- We can enable tracing for a monad M by adding an instance of `SimpleMonadTracerAdapter M` -/
instance : SimpleMonadTracerAdapter M :=
{ getOptions... |
c0d3bb47d4b2e2e5c7cead1e61a5b2d7908350dc | 8cae430f0a71442d02dbb1cbb14073b31048e4b0 | /src/data/set/intervals/monotone.lean | ee16fb679330af957c978ec69e15f3d62ecd2a5d | [
"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,694 | 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 data.set.intervals.disjoint
import order.succ_pred.basic
/-!
# Monotonicity on intervals
> THIS FILE IS SYNCHRONIZED WITH MATHLIB4.
> Any changes to this f... |
b0b95095849f4e146d9710af5e175bf438d59fec | d406927ab5617694ec9ea7001f101b7c9e3d9702 | /src/algebraic_topology/dold_kan/split_simplicial_object.lean | bbb6ac4e249677d5d17b1be17e69e4ff12d67822 | [
"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 | 10,974 | 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 algebraic_topology.split_simplicial_object
import algebraic_topology.dold_kan.degeneracies
import algebraic_topology.dold_kan.functor_n
/-!
# Split simplicial objects... |
eefe0cfae1302181e6d0a3d1c99bd577ce76c7c4 | a721fe7446524f18ba361625fc01033d9c8b7a78 | /src/principia/mynat/induction.lean | e6ac112cfc20511a252b9bca96e0a45bc6eea106 | [] | 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 | 8,218 | lean | -- vim: ts=2 sw=0 sts=-1 et ai tw=70
import .lt
import ..logic
import ..myset.basic
namespace hidden
open mynat
-- proof of the principle of strong induction
-- conceptually quite nice: works by showing that for any N, the
-- statement will hold for all M less than or equal to that N.
theorem strong_induction
(stat... |
5a2578dedadd0272778975240d159fe6ec054472 | a45212b1526d532e6e83c44ddca6a05795113ddc | /src/order/lexicographic.lean | 0d0b3488b1908d051ec3afadfb1a1307a05049bc | [
"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,460 | lean | /-
Copyright (c) 2019 Scott Morrison. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Author: Scott Morrison, Minchao Wu
Lexicographic preorder / partial_order / linear_order / decidable_linear_order,
for pairs and dependent pairs.
-/
import algebra.order
import tactic.interact... |
55a29c0feb7e32097e724570125d7feef2f9d867 | 8cae430f0a71442d02dbb1cbb14073b31048e4b0 | /src/linear_algebra/alternating.lean | 4f23645d2b1115b6f331b8892a6d67e357f2ee5d | [
"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 | 46,925 | lean | /-
Copyright (c) 2020 Zhangir Azerbayev. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Eric Wieser, Zhangir Azerbayev
-/
import group_theory.group_action.quotient
import group_theory.perm.sign
import group_theory.perm.subgroup
import linear_algebra.linear_independent... |
693c7b3018879602200dfa804aa56177c1907d4c | 4d2583807a5ac6caaffd3d7a5f646d61ca85d532 | /src/control/functor.lean | c422d732ea3c631d14af4a291749ee9c0612e5f2 | [
"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 | 8,664 | lean | /-
Copyright (c) 2017 Simon Hudon. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Simon Hudon
-/
import tactic.ext
import tactic.lint
/-!
# Functors
This module provides additional lemmas, definitions, and instances for `functor`s.
## Main definitions
* `const α` i... |
77882ecc48caf963a62354b89484b78c82283b6a | 05b503addd423dd68145d68b8cde5cd595d74365 | /src/group_theory/free_group.lean | 47fff93f560b23dbf7c449d481d0fed6463e122d | [
"Apache-2.0"
] | permissive | aestriplex/mathlib | 77513ff2b176d74a3bec114f33b519069788811d | e2fa8b2b1b732d7c25119229e3cdfba8370cb00f | refs/heads/master | 1,621,969,960,692 | 1,586,279,279,000 | 1,586,279,279,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 30,954 | lean | /-
Copyright (c) 2018 Kenny Lau. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Kenny Lau
Free groups as a quotient over the reduction relation `a * x * x⁻¹ * b = a * b`.
First we introduce the one step reduction relation
`free_group.red.step`: w * x * x⁻¹ * v ~... |
6b5c78c1ead616b173698d6cbb487ee187355275 | df7bb3acd9623e489e95e85d0bc55590ab0bc393 | /lean/love03_forward_proofs_homework_sheet.lean | bcd94150989bf6544536f1a25344942f018f203e | [] | no_license | MaschavanderMarel/logical_verification_2020 | a41c210b9237c56cb35f6cd399e3ac2fe42e775d | 7d562ef174cc6578ca6013f74db336480470b708 | refs/heads/master | 1,692,144,223,196 | 1,634,661,675,000 | 1,634,661,675,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 2,326 | lean | import .love02_backward_proofs_exercise_sheet
/- # LoVe Homework 3: Forward Proofs
Homework must be done individually. -/
set_option pp.beta true
set_option pp.generalized_field_notation false
namespace LoVe
/- ## Question 1 (6 points + 1 bonus point): Connectives and Quantifiers
1.1 (2 points). We have proved... |
9c77ccf216f2868cd4846ab5ff7b1e33b7e78cce | 4727251e0cd73359b15b664c3170e5d754078599 | /src/set_theory/game/short.lean | 83bacb45a358e3568acab71859873a00b44d9faf | [
"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,120 | lean | /-
Copyright (c) 2019 Scott Morrison. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Scott Morrison
-/
import data.fintype.basic
import set_theory.cardinal.cofinality
import set_theory.game.basic
import set_theory.game.birthday
/-!
# Short games
A combinatorial game ... |
6ad4043dbe41fdf7a41574806a10dc08e5cdd591 | 82e44445c70db0f03e30d7be725775f122d72f3e | /src/ring_theory/integral_closure.lean | 170584c488eb1ae5751fd948c383aecb747c7934 | [
"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 | 26,872 | 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 `... |
0ce3575ae9734d22f162333c991a96478263d814 | 4727251e0cd73359b15b664c3170e5d754078599 | /src/algebra/category/Mon/filtered_colimits.lean | 47f2965006676ffefd922766930ba9768259b02a | [
"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 | 14,363 | lean | /-
Copyright (c) 2021 Justus Springer. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Justus Springer
-/
import algebra.category.Mon.basic
import category_theory.limits.concrete_category
import category_theory.limits.preserves.filtered
/-!
# The forgetful functor from... |
31917e3bfb846bf55e0c534e0eafbeb25393aeb2 | 82b86ba2ae0d5aed0f01f49c46db5afec0eb2bd7 | /stage0/src/Init/Data/Array/Basic.lean | 549c34d757b0c37edc476e5bed24a9ebab6f371c | [
"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 | 26,464 | lean | /-
Copyright (c) 2018 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Leonardo de Moura
-/
prelude
import Init.Data.Nat.Basic
import Init.Data.Fin.Basic
import Init.Data.UInt
import Init.Data.Repr
import Init.Data.ToString.Basic
import Init.Contro... |
721691d2ca364f0f309f3c59286e169493ddfc05 | bbecf0f1968d1fba4124103e4f6b55251d08e9c4 | /src/data/complex/exponential.lean | c853ece58223718e7a4d4baa058d9401aa7264ec | [
"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 | 63,176 | 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.complex.basic
import data.nat.choose.sum
/-!
# Exponential, trigonometric and hyperbolic trigonometric func... |
dd66f24d60c4baf4ca8aa0001b2016081aad6edb | a45212b1526d532e6e83c44ddca6a05795113ddc | /src/meta/rb_map.lean | 1f88cfb62de2b23a57d51522ae201ed6d3b59232 | [
"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 | 3,398 | lean | /-
Copyright (c) 2018 Robert Y. Lewis. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Author: Robert Y. Lewis
Additional operations on native rb_maps and rb_sets.
-/
import data.option.defs
namespace native
namespace rb_set
meta def filter {key} (s : rb_set key) ... |
1cfc9a879f008c470e92b90167493faf65b3fbb1 | 00de0c30dd1b090ed139f65c82ea6deb48c3f4c2 | /src/data/zmod/basic.lean | 4488741fad3a764a934c7809789fe7230bddc947 | [
"Apache-2.0"
] | permissive | paulvanwamelen/mathlib | 4b9c5c19eec71b475f3dd515cd8785f1c8515f26 | 79e296bdc9f83b9447dc1b81730d36f63a99f72d | refs/heads/master | 1,667,766,172,625 | 1,590,239,595,000 | 1,590,239,595,000 | 266,392,625 | 0 | 0 | Apache-2.0 | 1,590,257,277,000 | 1,590,257,277,000 | null | UTF-8 | Lean | false | false | 24,789 | lean | /-
Copyright (c) 2018 Chris Hughes. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Author: Chris Hughes
-/
import data.int.modeq
import algebra.char_p
import data.nat.totient
/-!
# Integers mod `n`
Definition of the integers mod n, and the field structure on the integers mod... |
dfd6edbfc5768ca37f00b1be28ec91a9d1628574 | 626e312b5c1cb2d88fca108f5933076012633192 | /src/linear_algebra/affine_space/independent.lean | 5fe3e193a6de50a0493c95e8e1f5f388ce68dcf2 | [
"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 | 27,441 | lean | /-
Copyright (c) 2020 Joseph Myers. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Joseph Myers
-/
import data.finset.sort
import data.matrix.notation
import linear_algebra.affine_space.combination
import linear_algebra.basis
/-!
# Affine independence
This file defin... |
d2778996ee752cfd011f6d1371af1d985e58d0e2 | a9d0fb7b0e4f802bd3857b803e6c5c23d87fef91 | /tests/lean/run/partial_explicit.lean | 468f2174052beee87a9c9746e0bf6df68f42cf8f | [
"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 | 460 | lean | section
variables a b c : nat
variable H1 : a = b
variable H2 : a + b + a + b = 0
example : b + b + a + b = 0 :=
@eq.rec_on _ _ (λ x, x + b + a + b = 0) _ H1 H2
end
section
variables (f : Π {T : Type} {a : T} {P : T → Prop}, P a → Π {b : T} {Q : T → Prop}, Q b → Prop)
variables (T : Type) (a : T) (P : T → Prop) (... |
ebf52501c7dd299a39348d8c10be7d6a5e4a06ee | 00c000939652bc85fffcfe8ba5dd194580a13c4b | /src/M.lean | fefebc2aecf48b1cceac1e11b0e6e93d05acb34e | [
"Apache-2.0"
] | permissive | johoelzl/qpf | a795220c4e872014a62126800313b74ba3b06680 | d93ab1fb41d085e49ae476fa364535f40388f44d | refs/heads/master | 1,587,372,400,745 | 1,548,633,467,000 | 1,548,633,467,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 25,153 | lean | /-
Copyright (c) 2017 Simon Hudon All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Simon Hudon
Basic machinery for defining general coinductive types
Work in progress
-/
import data.pfun tactic.interactive for_mathlib .pfunctor
universes u v w
open nat function list ... |
49bf771bff44ba58da52549806bea3e53e9c7991 | d406927ab5617694ec9ea7001f101b7c9e3d9702 | /src/order/modular_lattice.lean | dedce4deaae0390915b4c3854beb4699c9dac4ac | [
"Apache-2.0"
] | permissive | alreadydone/mathlib | dc0be621c6c8208c581f5170a8216c5ba6721927 | c982179ec21091d3e102d8a5d9f5fe06c8fafb73 | refs/heads/master | 1,685,523,275,196 | 1,670,184,141,000 | 1,670,184,141,000 | 287,574,545 | 0 | 0 | Apache-2.0 | 1,670,290,714,000 | 1,597,421,623,000 | Lean | UTF-8 | Lean | false | false | 16,988 | lean | /-
Copyright (c) 2020 Aaron Anderson. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Aaron Anderson, Yaël Dillies
-/
import order.cover
import order.lattice_intervals
/-!
# Modular Lattices
This file defines (semi)modular lattices, a kind of lattice useful in algebra... |
fe007eda3d862bf185921898242ad669f6a18c1e | 6e9cd8d58e550c481a3b45806bd34a3514c6b3e0 | /src/analysis/special_functions/pow.lean | d116173b108c2c88e464109002be7b0b3799bf9e | [
"Apache-2.0"
] | permissive | sflicht/mathlib | 220fd16e463928110e7b0a50bbed7b731979407f | 1b2048d7195314a7e34e06770948ee00f0ac3545 | refs/heads/master | 1,665,934,056,043 | 1,591,373,803,000 | 1,591,373,803,000 | 269,815,267 | 0 | 0 | Apache-2.0 | 1,591,402,068,000 | 1,591,402,067,000 | null | UTF-8 | Lean | false | false | 46,200 | lean | /-
Copyright (c) 2018 Chris Hughes. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Chris Hughes, Abhimanyu Pallavi Sudhir, Jean Lo, Calle Sönne, Sébastien Gouëzel
-/
import analysis.special_functions.trigonometric
import analysis.calculus.extend_deriv
/-!
# Power func... |
f76ff92bcd18ed807086705353ef292f8d1c9798 | e2fc96178628c7451e998a0db2b73877d0648be5 | /src/utilities/list_utils.lean | 58aef8cb55bf7167ec6de5b774647086dffa8464 | [
"BSD-2-Clause"
] | permissive | madvorak/grammars | cd324ae19b28f7b8be9c3ad010ef7bf0fabe5df2 | 1447343a45fcb7821070f1e20b57288d437323a6 | refs/heads/main | 1,692,383,644,884 | 1,692,032,429,000 | 1,692,032,429,000 | 453,948,141 | 7 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 7,954 | lean | import tactic
import utilities.written_by_others.list_take_join
section tactic_in_list_explicit
meta def in_list_explicit : tactic unit := `[
tactic.repeat `[
tactic.try `[apply list.mem_cons_self],
tactic.try `[apply list.mem_cons_of_mem]
]
]
meta def split_ile : tactic unit := `[
split,
{
in_li... |
959edf1878032c3eca3f2d7257f92294ea4d6f85 | e0f9ba56b7fedc16ef8697f6caeef5898b435143 | /src/topology/uniform_space/basic.lean | 9a4d1ffcd933e4f0111a6d0de576ca85969a258a | [
"Apache-2.0"
] | permissive | anrddh/mathlib | 6a374da53c7e3a35cb0298b0cd67824efef362b4 | a4266a01d2dcb10de19369307c986d038c7bb6a6 | refs/heads/master | 1,656,710,827,909 | 1,589,560,456,000 | 1,589,560,456,000 | 264,271,800 | 0 | 0 | Apache-2.0 | 1,589,568,062,000 | 1,589,568,061,000 | null | UTF-8 | Lean | false | false | 49,262 | lean | /-
Copyright (c) 2017 Johannes Hölzl. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Johannes Hölzl, Mario Carneiro, Patrick Massot
Theory of uniform spaces.
Uniform spaces are a generalization of metric spaces and topological groups. Many concepts directly
generaliz... |
944318e2864071967c7bb74ec4ec5a0267cb6dd3 | 57c233acf9386e610d99ed20ef139c5f97504ba3 | /src/logic/small.lean | ebb835962ea576aed4c0c8b4a8d8533a1c900a7f | [
"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,490 | 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 data.equiv.set
/-!
# Small types
A type is `w`-small if there exists an equivalence to some `S : Type w`.
We provide a noncomputable model `shrink α : Type ... |
6d22ecf95b5f3487e8774738ee8dd00ecb553f2e | 74addaa0e41490cbaf2abd313a764c96df57b05d | /Mathlib/data/mllist.lean | aed4884a629178004b265317935a9fddde4b1ca2 | [] | 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 | 610 | lean | /-
Copyright (c) 2018 Scott Morrison. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Author: Mario Carneiro, Keeley Hoek, Simon Hudon, Scott Morrison
Monadic lazy lists.
The inductive construction is not allowed outside of meta (indeed, we can build infinite objects).
This is... |
a9371b9d534a6414f48cb16afd9bad2420242d88 | b7f22e51856f4989b970961f794f1c435f9b8f78 | /hott/eq2.hlean | ee86f6ec7c63a6ee20e74cfd5192e9145b4b6169 | [
"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 | 5,023 | hlean | /-
Copyright (c) 2015 Floris van Doorn. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Author: Floris van Doorn
Theorems about 2-dimensional paths
-/
import .cubical.square
open function
namespace eq
variables {A B C : Type} {f : A → B} {a a' a₁ a₂ a₃ a₄ : A} {b b' : B}
... |
a17eeab43cfe82ea0842e26634b1f9a0b205051e | 64874bd1010548c7f5a6e3e8902efa63baaff785 | /tests/lean/run/tactic23.lean | 944566d9f681e571f5939ef3df84851fdc5236ef | [
"Apache-2.0"
] | permissive | tjiaqi/lean | 4634d729795c164664d10d093f3545287c76628f | d0ce4cf62f4246b0600c07e074d86e51f2195e30 | refs/heads/master | 1,622,323,796,480 | 1,422,643,069,000 | 1,422,643,069,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 1,001 | lean | import logic
namespace experiment
inductive nat : Type :=
zero : nat,
succ : nat → nat
namespace nat
definition add (a b : nat) : nat
:= nat.rec a (λ n r, succ r) b
infixl `+` := add
definition one := succ zero
-- Define coercion from num -> nat
-- By default the parser converts numerals into a binary representation... |
f879a886776057cf0b6a3f69085e511971e77c76 | 2fbe653e4bc441efde5e5d250566e65538709888 | /src/topology/instances/ennreal.lean | 495ff8a2b0d13f70b601b1ff00b7f76a6695e0c1 | [
"Apache-2.0"
] | permissive | aceg00/mathlib | 5e15e79a8af87ff7eb8c17e2629c442ef24e746b | 8786ea6d6d46d6969ac9a869eb818bf100802882 | refs/heads/master | 1,649,202,698,930 | 1,580,924,783,000 | 1,580,924,783,000 | 149,197,272 | 0 | 0 | Apache-2.0 | 1,537,224,208,000 | 1,537,224,207,000 | null | UTF-8 | Lean | false | false | 35,895 | lean | /-
Copyright (c) 2017 Johannes Hölzl. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Author: Johannes Hölzl
Extended non-negative reals
-/
import topology.instances.nnreal data.real.ennreal
noncomputable theory
open classical set lattice filter metric
open_locale classical
ope... |
fefff71c2e24130ced3f61be668233eafa57c7bd | 9e90bb7eb4d1bde1805f9eb6187c333fdf09588a | /src/lib/attributed/dvector.lean | f76ec171743419aa61b68292c8e7eb8cf70f71e9 | [
"Apache-2.0"
] | permissive | alexjbest/stump-learnable | 6311d0c3a1a1a0e65ce83edcbb3b4b7cecabb851 | f8fd812fc646d2ece312ff6ffc2a19848ac76032 | refs/heads/master | 1,659,486,805,691 | 1,590,454,024,000 | 1,590,454,024,000 | 266,173,720 | 0 | 0 | Apache-2.0 | 1,590,169,884,000 | 1,590,169,883,000 | null | UTF-8 | Lean | false | false | 513 | lean | /-
Generalities about dvectors.
This file is originally from https://github.com/formalabstracts/formalabstracts/blob/master/src/data/dvector.lean
and
https://github.com/flypitch/flypitch/blob/4ac94138305ffa889f3ffea8d478f44ab610cee8/src/to_mathlib.lean
Authors: Jesse Han, Floris van Doorn
-/
inductive dfin : ℕ... |
e18f45c9ef00e9bf66f9e057f0dc0cecc70f1548 | dd0f5513e11c52db157d2fcc8456d9401a6cd9da | /12_Axioms.org.11.lean | f37bc473ea3865a71422a3a7ac72a79e9d5508b2 | [] | no_license | cjmazey/lean-tutorial | ba559a49f82aa6c5848b9bf17b7389bf7f4ba645 | 381f61c9fcac56d01d959ae0fa6e376f2c4e3b34 | refs/heads/master | 1,610,286,098,832 | 1,447,124,923,000 | 1,447,124,923,000 | 43,082,433 | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 1,607 | lean | import standard
import data.prod
open prod prod.ops quot
private definition eqv {A : Type} (p₁ p₂ : A × A) : Prop :=
(p₁.1 = p₂.1 ∧ p₁.2 = p₂.2) ∨ (p₁.1 = p₂.2 ∧ p₁.2 = p₂.1)
infix `~` := eqv
open eq or
local notation `⟨` H₁ `,` H₂ `⟩` := and.intro H₁ H₂
-- BEGIN
private theorem eqv.refl {A : Type} : ∀ p : A × A, ... |
112e207ec10fd18963291a6b402affe5ba957e30 | a0a027e4a00cdb315527e8922122f2a4411fd01c | /4.3-the-calculation-environment.lean | 30b5effee30ccca4e2cc250cdb175ac0d9893261 | [] | no_license | spl/lean-tutorial | 96a1ef321d06b9b28d044eeb6bf1ff9a86761a6e | 35c0250004d75d8ae58f6192b649744545116022 | refs/heads/master | 1,610,250,012,890 | 1,454,259,122,000 | 1,454,259,122,000 | 49,971,362 | 1 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 809 | lean | import data.nat
open nat algebra
example (x y : ℕ) : (x + y) * (x + y) = x * x + y * x + x * y + y * y :=
calc (x + y) * (x + y)
= (x + y) * x + (x + y) * y : left_distrib
... = x * x + y * x + (x + y) * y : right_distrib
... = x * x + y * x + (x * y + y * y) : right_distrib
... = x * x ... |
327517842b14342c5244213a897f57a31dd5353c | 1446f520c1db37e157b631385707cc28a17a595e | /tests/bench/qsort.lean | 5dd965c511e2bd6507f0b0fd36acf59bb84d440c | [
"Apache-2.0"
] | permissive | bdbabiak/lean4 | cab06b8a2606d99a168dd279efdd404edb4e825a | 3f4d0d78b2ce3ef541cb643bbe21496bd6b057ac | refs/heads/master | 1,615,045,275,530 | 1,583,793,696,000 | 1,583,793,696,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 2,406 | lean | abbrev Elem := UInt32
def badRand (seed : Elem) : Elem :=
seed * 1664525 + 1013904223
def mkRandomArray : Nat → Elem → Array Elem → Array Elem
| 0, seed, as => as
| i+1, seed, as => mkRandomArray i (badRand seed) (as.push seed)
partial def checkSortedAux (a : Array Elem) : Nat → IO Unit
| i =>
if i < a.size - 1 ... |
422be3e91347bf98988ab98d0cd9f749262f3d52 | 2c096fdfecf64e46ea7bc6ce5521f142b5926864 | /src/Lean/Compiler/LCNF/Simp/ConstantFold.lean | 9654b91f4735e54674a14a56c03228f15952b2bf | [
"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 | 15,733 | lean | /-
Copyright (c) 2022 Henrik Böving. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Henrik Böving
-/
import Lean.Compiler.LCNF.CompilerM
import Lean.Compiler.LCNF.InferType
import Lean.Compiler.LCNF.PassManager
namespace Lean.Compiler.LCNF.Simp
namespace ConstantFold
... |
c1cec9cda4939750306acc355c7bd93d476763c4 | 2c41ae31b2b771ad5646ad880201393f5269a7f0 | /Lean/Qualities/Tailorable.lean | 14a74363fe7cb2dcd68d984e4d7c77f67adb90be | [] | no_license | kevinsullivan/Boehm | 926f25bc6f1a8b6bd47d333d936fdfc278228312 | 55208395bff20d48a598b7fa33a4d55a2447a9cf | refs/heads/master | 1,586,127,134,302 | 1,488,252,326,000 | 1,488,252,326,000 | 32,836,930 | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 665 | lean | -- Tailorable
/-
[Tailorable] is parameterized by an instance of type [SystemType], and it's a sub-attribute to [Flexible].
An instance of type [SystemType] is deemed [Tailorable] if and only if all the requirements are satisfied.
-/
import SystemModel.System
inductive Tailorable (sys_type: SystemType): Prop
... |
8e4e35674aaab50e6f3a3c265612d3e7e3a1684a | f3849be5d845a1cb97680f0bbbe03b85518312f0 | /tests/lean/num4.lean | 3fa73701cc4bbea2f6b0e97d366f95ef01ff44ab | [
"Apache-2.0"
] | permissive | bjoeris/lean | 0ed95125d762b17bfcb54dad1f9721f953f92eeb | 4e496b78d5e73545fa4f9a807155113d8e6b0561 | refs/heads/master | 1,611,251,218,281 | 1,495,337,658,000 | 1,495,337,658,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 270 | lean | --
set_option pp.notation false
set_option pp.implicit true
namespace foo
constant N : Type.{1}
constant z : N
constant o : N
constant a : N
notation 0 := z
notation 1 := o
#check a = 0
end foo
#check (2:nat) = 1
#check foo.a = 1
open foo
#check a = 1
|
44d7ec15af8e70d4fcf4cc7ed9785c2c760858e1 | 4bcaca5dc83d49803f72b7b5920b75b6e7d9de2d | /tests/lean/run/646.lean | 19c0023b028389e969b3521d76032aa5665013f6 | [
"Apache-2.0"
] | permissive | subfish-zhou/leanprover-zh_CN.github.io | 30b9fba9bd790720bd95764e61ae796697d2f603 | 8b2985d4a3d458ceda9361ac454c28168d920d3f | refs/heads/master | 1,689,709,967,820 | 1,632,503,056,000 | 1,632,503,056,000 | 409,962,097 | 1 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 373 | lean | def build (n : Nat) : Array Unit := do
let mut out := #[]
for _ in [0:n] do
out := out.push ()
out
@[noinline] def size : IO Nat := pure 50000
def bench (f : ∀ {α : Type}, α → IO Unit := fun _ => ()) : IO Unit := do
let n ← size
let arr := build n
timeit "time" $
for _ in [:1000] do
f $ #[1,... |
cc7943fa7cb947f897bc7d5b8e5a736485302c88 | 26ac254ecb57ffcb886ff709cf018390161a9225 | /src/ring_theory/algebra_operations.lean | 819cbbab77b719a0baa1dd9dcc85680e3a10f544 | [
"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 | 9,738 | lean | /-
Copyright (c) 2019 Kenny Lau. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Kenny Lau
Multiplication and division of submodules of an algebra.
-/
import ring_theory.algebra
import ring_theory.ideals
import algebra.pointwise
universes u v
open algebra set
namesp... |
bbaa426865c75520159f089088ea61033aa5a797 | d406927ab5617694ec9ea7001f101b7c9e3d9702 | /src/algebra/lie/submodule.lean | 731c560165180bff8c08dc9cf8c78e901eb95e91 | [
"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 | 38,431 | 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.subalgebra
import ring_theory.noetherian
/-!
# Lie submodules of a Lie algebra
In this file we define Lie submodules and Lie ideals, we construct the l... |
2aa2dda531c04747a9e75100e25387b2e8e9f7b3 | c777c32c8e484e195053731103c5e52af26a25d1 | /src/analysis/locally_convex/abs_convex.lean | 2b12ac870128a39fe78c792ceb3445e51c5da97b | [
"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 | 6,171 | 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.balanced_core_hull
import analysis.locally_convex.with_seminorms
import analysis.convex.gauge
/-!
# Absolutely convex sets
A set is called ... |
40de330bd545d1085bbe3e4ba3448a5ce40014f9 | 57c233acf9386e610d99ed20ef139c5f97504ba3 | /src/category_theory/monoidal/center.lean | 51f775b842aa0b16cb75deb5c1a9e835da0226b6 | [
"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 | 12,816 | 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.monoidal.braided
import category_theory.reflects_isomorphisms
/-!
# Half braidings and the Drinfeld center of a monoidal category
We define `... |
5d675f0e1d74498f08d609b149110cf1980397a8 | 74addaa0e41490cbaf2abd313a764c96df57b05d | /Mathlib/algebra/category/Module/monoidal_auto.lean | 02a1431e7b0aea0c69ce06e22485ce2af243d548 | [] | no_license | AurelienSaue/Mathlib4_auto | f538cfd0980f65a6361eadea39e6fc639e9dae14 | 590df64109b08190abe22358fabc3eae000943f2 | refs/heads/master | 1,683,906,849,776 | 1,622,564,669,000 | 1,622,564,669,000 | 371,723,747 | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 8,937 | lean | /-
Copyright (c) 2020 Scott Morrison. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Kevin Buzzard, Scott Morrison
-/
import Mathlib.PrePort
import Mathlib.Lean3Lib.init.default
import Mathlib.category_theory.monoidal.braided
import Mathlib.algebra.category.Module.basi... |
381cc858786f168c49e7ad5aa0a2c0f152300647 | 57c233acf9386e610d99ed20ef139c5f97504ba3 | /src/data/polynomial/coeff.lean | 36b0a208c70530e597a87d493572b1b029e8bb28 | [
"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 | 9,477 | lean | /-
Copyright (c) 2018 Chris Hughes. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Chris Hughes, Johannes Hölzl, Scott Morrison, Jens Wagemaker
-/
import data.polynomial.basic
import data.finset.nat_antidiagonal
import data.nat.choose.sum
/-!
# Theory of univariate p... |
367859e39a28b177ffa82ed78551d5efbbde1afe | 4727251e0cd73359b15b664c3170e5d754078599 | /src/model_theory/fraisse.lean | d4cd022be841e038b3f2b8f91b7f9852456909ad | [
"Apache-2.0"
] | permissive | Vierkantor/mathlib | 0ea59ac32a3a43c93c44d70f441c4ee810ccceca | 83bc3b9ce9b13910b57bda6b56222495ebd31c2f | refs/heads/master | 1,658,323,012,449 | 1,652,256,003,000 | 1,652,256,003,000 | 209,296,341 | 0 | 1 | Apache-2.0 | 1,568,807,655,000 | 1,568,807,655,000 | null | UTF-8 | Lean | false | false | 13,595 | lean | /-
Copyright (c) 2022 Aaron Anderson. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Aaron Anderson
-/
import model_theory.finitely_generated
import model_theory.direct_limit
import model_theory.bundled
/-!
# Fraïssé Classes and Fraïssé Limits
This file pertains to ... |
51e8d0317620575986ab0c6faaa7f0a2e6ead86f | 32025d5c2d6e33ad3b6dd8a3c91e1e838066a7f7 | /tests/lean/run/coroutine.lean | 0f8f1fce07c04092106d68297b9c6af21e8a3012 | [
"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 | 7,656 | lean | universes u v w r s
inductive coroutineResultCore (coroutine : Type (max u v w)) (α : Type u) (δ : Type v) (β : Type w) : Type (max u v w)
| done : β → coroutineResultCore
| yielded : δ → coroutine → coroutineResultCore
/--
Asymmetric coroutines `coroutine α δ β` takes inputs of Type `α`, yields elements of T... |
85b6fd6ed38b752ff475554c5a74542ba5a70b1a | ae1e94c332e17c7dc7051ce976d5a9eebe7ab8a5 | /stage0/src/Lean/Elab/Deriving/Inhabited.lean | c28b8982ac0de95524be3e304e855caa4ae9921c | [
"Apache-2.0"
] | permissive | dupuisf/lean4 | d082d13b01243e1de29ae680eefb476961221eef | 6a39c65bd28eb0e28c3870188f348c8914502718 | refs/heads/master | 1,676,948,755,391 | 1,610,665,114,000 | 1,610,665,114,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 5,435 | 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.Elab.Deriving.Basic
namespace Lean.Elab
open Command
open Meta
private abbrev IndexSet := Std.RBTree Nat (.<.)
private abbrev LocalInst2Index ... |
f7040e29b9056c52be7d117d7b0737d5413bff20 | 95dcf8dea2baf2b4b0a60d438f27c35ae3dd3990 | /src/algebra/group.lean | 26b51af239c40f02aaf8e8459ca02cd9a70cb92f | [
"Apache-2.0"
] | permissive | uniformity1/mathlib | 829341bad9dfa6d6be9adaacb8086a8a492e85a4 | dd0e9bd8f2e5ec267f68e72336f6973311909105 | refs/heads/master | 1,588,592,015,670 | 1,554,219,842,000 | 1,554,219,842,000 | 179,110,702 | 0 | 0 | Apache-2.0 | 1,554,220,076,000 | 1,554,220,076,000 | null | UTF-8 | Lean | false | false | 38,584 | lean | /-
Copyright (c) 2014 Jeremy Avigad. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Jeremy Avigad, Leonardo de Moura
Various multiplicative and additive structures.
-/
import tactic.interactive data.option.defs
section pending_1857
/- Transport multiplicative to add... |
022cbf1676e2880164bed338b84250b66a8d5719 | e4d500be102d7cc2cf7c341f360db71d9125c19b | /src/group_theory/subgroup.lean | dbb369826eef1567e2f8d9f7a61b5618c0d37394 | [
"Apache-2.0"
] | permissive | mgrabovsky/mathlib | 3cbc6c54dab5f277f0abf4195a1b0e6e39b9971f | e397b4c1266ee241e9412e17b1dd8724f56fba09 | refs/heads/master | 1,664,687,987,155 | 1,591,255,329,000 | 1,591,255,329,000 | 269,361,264 | 0 | 0 | Apache-2.0 | 1,591,275,784,000 | 1,591,275,783,000 | null | UTF-8 | Lean | false | false | 27,821 | lean | /-
Copyright (c) 2020 Kexing Ying. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Kexing Ying
-/
import group_theory.submonoid
/-!
# Subgroups
This file defines multiplicative and additive subgroups as an extension of submonoids, in a bundled
form (unbundled subgroup... |
80491edded0a7a3da2e29bca00719efcb759c3e1 | 7d5ad87afb17e514aee234fcf0a24412eed6384f | /src/first_order_zfc.lean | a3e0f85d93780b51f17691c609a09fd758e5c4f2 | [] | no_license | digama0/flypitch | 764f849eaef59c045dfbeca142a0f827973e70c1 | 2ec14b8da6a3964f09521d17e51f363d255b030f | refs/heads/master | 1,586,980,069,651 | 1,547,078,141,000 | 1,547,078,283,000 | 164,965,135 | 1 | 0 | null | 1,547,082,858,000 | 1,547,082,857,000 | null | UTF-8 | Lean | false | false | 11,205 | lean | import .fol set_theory.zfc
open fol
inductive ZFC_rel : ℕ → Type
| ϵ : ZFC_rel 2
def L_ZFC : Language :=
⟨λ_, empty, ZFC_rel⟩
def ZFC_el : L_ZFC.relations 2 := ZFC_rel.ϵ
local infix ` ∈' `:100 := bounded_formula_of_relation ZFC_el
---ugly but working (str_formula says it's not well-founded recursion, but it eval... |
886157a7938bdaa24309467b8dc931ace36f1809 | 69d4931b605e11ca61881fc4f66db50a0a875e39 | /src/topology/vector_bundle.lean | 6f60e402aedcee047fa5c1d6fcec2aea3a918b9d | [
"Apache-2.0"
] | permissive | abentkamp/mathlib | d9a75d291ec09f4637b0f30cc3880ffb07549ee5 | 5360e476391508e092b5a1e5210bd0ed22dc0755 | refs/heads/master | 1,682,382,954,948 | 1,622,106,077,000 | 1,622,106,077,000 | 149,285,665 | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 10,716 | lean | /-
Copyright © 2020 Nicolò Cavalleri. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Nicolò Cavalleri, Sebastien Gouezel
-/
import topology.topological_fiber_bundle
import topology.algebra.module
import linear_algebra.dual
/-!
# Topological vector bundles
In this fi... |
0ba15595f73a5c952ec29ae57e444f1f07c81275 | 05b503addd423dd68145d68b8cde5cd595d74365 | /src/topology/algebra/module.lean | ed455e061add8cc4f468a368093e29ec6a385775 | [
"Apache-2.0"
] | permissive | aestriplex/mathlib | 77513ff2b176d74a3bec114f33b519069788811d | e2fa8b2b1b732d7c25119229e3cdfba8370cb00f | refs/heads/master | 1,621,969,960,692 | 1,586,279,279,000 | 1,586,279,279,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 26,045 | lean | /-
Copyright (c) 2019 Sébastien Gouëzel. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Jan-David Salchow, Sébastien Gouëzel, Jean Lo
-/
import topology.algebra.ring linear_algebra.basic ring_theory.algebra
/-!
# Theory of topological modules and continuous linear m... |
b29bebfe0ca0367158b06cfedc5ca7d24f2f6567 | 55c7fc2bf55d496ace18cd6f3376e12bb14c8cc5 | /src/data/real/conjugate_exponents.lean | 7e042669c1e9c28691d1dcdea021f9cebed4b3be | [
"Apache-2.0"
] | permissive | dupuisf/mathlib | 62de4ec6544bf3b79086afd27b6529acfaf2c1bb | 8582b06b0a5d06c33ee07d0bdf7c646cae22cf36 | refs/heads/master | 1,669,494,854,016 | 1,595,692,409,000 | 1,595,692,409,000 | 272,046,630 | 0 | 0 | Apache-2.0 | 1,592,066,143,000 | 1,592,066,142,000 | null | UTF-8 | Lean | false | false | 3,003 | 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, Yury Kudryashov
-/
import data.real.basic
/-!
# Real conjugate exponents
`p.is_conjugate_exponent q` registers the fact that the real numbers `p` and `q` are `>... |
0bb1e8bc917ccd3411d860507836d7365c9ca13f | a7eef317ddec01b9fc6cfbb876fe7ac00f205ac7 | /src/topology/category/UniformSpace.lean | 9fde02ccdde5ae4dc945ae191bc571ec5a18fc5a | [
"Apache-2.0"
] | permissive | kmill/mathlib | ea5a007b67ae4e9e18dd50d31d8aa60f650425ee | 1a419a9fea7b959317eddd556e1bb9639f4dcc05 | refs/heads/master | 1,668,578,197,719 | 1,593,629,163,000 | 1,593,629,163,000 | 276,482,939 | 0 | 0 | null | 1,593,637,960,000 | 1,593,637,959,000 | null | UTF-8 | Lean | false | false | 6,411 | lean | /-
Copyright (c) 2019 Scott Morrison. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Reid Barton, Patrick Massot, Scott Morrison
-/
import category_theory.monad.limits
import topology.uniform_space.completion
import topology.category.Top.basic
/-!
# The category of un... |
c80f940fa2336417c9a5553c3d17e93569c63158 | 3f1a1d97c03bb24b55a1b9969bb4b3c619491d5a | /library/init/native/result.lean | 21028a70d27425a572061516a3b6e2ba1e99d341 | [
"Apache-2.0"
] | permissive | praveenmunagapati/lean | 00c3b4496cef8e758396005013b9776bb82c4f56 | fc760f57d20e0a486d14bc8a08d89147b60f530c | refs/heads/master | 1,630,692,342,183 | 1,515,626,222,000 | 1,515,626,222,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 2,206 | lean | /-
Copyright (c) 2016 Jared Roesch. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Jared Roesch
-/
prelude
import init.meta.interactive
namespace native
inductive result (E : Type) (R : Type) : Type
| err {} : E → result
| ok {} : R → result
def unwrap_or {E T : Ty... |
290d63798afc54c114c92e936eac43efecfb3193 | 9338c56dfd6ceacc3e5e63e32a7918cfec5d5c69 | /src/Kenny/sites/sheaf.lean | 03268761e76d542fb82666d16a1bde97f5b88380 | [] | no_license | Project-Reykjavik/lean-scheme | 7322eefce504898ba33737970be89dc751108e2b | 6d3ec18fecfd174b79d0ce5c85a783f326dd50f6 | refs/heads/master | 1,669,426,172,632 | 1,578,284,588,000 | 1,578,284,588,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 1,440 | lean | import Kenny.sites.lattice
universes v w u
namespace category_theory
def presheaf (C : Type u) [category.{v} C] : Type (max u v (w+1)) :=
Cᵒᵖ ⥤ Type w
namespace presheaf
variables {C : Type u} [category.{v} C] (F : presheaf.{v w} C)
def eval (U : C) : Type w :=
F.1 (opposite.op U)
def res {U V : C} (f : U ⟶ V) :... |
27f3f35c77bc6ff4fee026f8a12dabddf3833902 | 4727251e0cd73359b15b664c3170e5d754078599 | /src/measure_theory/integral/mean_inequalities.lean | 9363fa2c1fb80b541446992d919338ed2261338e | [
"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 | 19,801 | lean | /-
Copyright (c) 2020 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.integral.lebesgue
import analysis.mean_inequalities
import analysis.mean_inequalities_pow
import measure_theory.function.special_functions
/-!
# Me... |
2b7840a0949b29bb43ce62dcfd75fa7f0fefc9a6 | bbecf0f1968d1fba4124103e4f6b55251d08e9c4 | /archive/imo/imo1977_q6.lean | 9b1e8b72704c3b626b032c1668328bc55cb81e18 | [
"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 | 1,395 | lean | /-
Copyright (c) 2021 Tian Chen. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Tian Chen
-/
import data.pnat.basic
/-!
# IMO 1977 Q6
Suppose `f : ℕ+ → ℕ+` satisfies `f(f(n)) < f(n + 1)` for all `n`.
Prove that `f(n) = n` for all `n`.
We first prove the problem stat... |
946a3534200da822ff8f741dcb2298ef6b253b61 | 69d4931b605e11ca61881fc4f66db50a0a875e39 | /src/algebra/big_operators/ring.lean | b7d109ecb3019e677c2200598da6a58987728673 | [
"Apache-2.0"
] | permissive | abentkamp/mathlib | d9a75d291ec09f4637b0f30cc3880ffb07549ee5 | 5360e476391508e092b5a1e5210bd0ed22dc0755 | refs/heads/master | 1,682,382,954,948 | 1,622,106,077,000 | 1,622,106,077,000 | 149,285,665 | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 9,843 | 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... |
d903ac3bff88339a760fe57072fbbefb52e8f571 | 302c785c90d40ad3d6be43d33bc6a558354cc2cf | /src/category_theory/sites/sieves.lean | b7f96f16ad6291857292e154b673252bb068536b | [
"Apache-2.0"
] | permissive | ilitzroth/mathlib | ea647e67f1fdfd19a0f7bdc5504e8acec6180011 | 5254ef14e3465f6504306132fe3ba9cec9ffff16 | refs/heads/master | 1,680,086,661,182 | 1,617,715,647,000 | 1,617,715,647,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 14,144 | lean | /-
Copyright (c) 2020 Bhavik Mehta. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Bhavik Mehta, E. W. Ayers
-/
import category_theory.over
import category_theory.limits.shapes.finite_limits
import category_theory.yoneda
import order.complete_lattice
import data.set.l... |
be35ed6d8697b2cd35b02796f745e2d8bade7633 | 302c785c90d40ad3d6be43d33bc6a558354cc2cf | /src/algebra/punit_instances.lean | 29ef84d25b48e7ec73e15b3865c799131c1c2a68 | [
"Apache-2.0"
] | permissive | ilitzroth/mathlib | ea647e67f1fdfd19a0f7bdc5504e8acec6180011 | 5254ef14e3465f6504306132fe3ba9cec9ffff16 | refs/heads/master | 1,680,086,661,182 | 1,617,715,647,000 | 1,617,715,647,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 2,827 | lean | /-
Copyright (c) 2019 Kenny Lau. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Kenny Lau
-/
import algebra.module.basic
/-!
# Instances on punit
This file collects facts about algebraic structures on the one-element type, e.g. that it is a
commutative ring.
-/
uni... |
22351a5f6a508542975e71d9a5588e1d1c4e9cd8 | d406927ab5617694ec9ea7001f101b7c9e3d9702 | /src/analysis/hofer.lean | 8212d269731c0c7e97132da1c8db0ca5606e983e | [
"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 | 4,717 | lean | /-
Copyright (c) 2020 Patrick Massot. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Patrick Massot
-/
import analysis.specific_limits.basic
/-!
# Hofer's lemma
This is an elementary lemma about complete metric spaces. It is motivated by an
application to the bubblin... |
4844cb1417994af99e79622186683ec92645baab | 8cae430f0a71442d02dbb1cbb14073b31048e4b0 | /src/topology/uniform_space/complete_separated.lean | 8e5295cc8866845839209c1ce6459e1af7f78298 | [
"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,447 | 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.uniform_space.cauchy
import topology.uniform_space.separation
import topology.dense_embedding
/-!
# Theory of complete separated uniform spaces... |
4f6f8a8de15774ffbd1cd83f927f675a298a8f1e | 592ee40978ac7604005a4e0d35bbc4b467389241 | /Library/generated/mathscheme-lean/LeftRingoid.lean | 1856f75133585b998ba1bab865ec3a0e05e50983 | [] | 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 | 8,775 | 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 LeftRingoid
structure LeftRingoid (A : Type) : Type :=
(times : (A → (A → A)))
(plus : (A → (A → A)))
(leftDistributive_times_plus : (∀ {x y z : A} , (ti... |
72b9fd7eb5526f1af73dba9e21687334a8d9eb64 | 6432ea7a083ff6ba21ea17af9ee47b9c371760f7 | /tests/lean/run/1302.lean | 0861b351d76fdb4e7afa852271895193837fed9f | [
"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 | 410 | lean | @[simp] theorem get_cons_zero {as : List α} : (a :: as).get ⟨0, Nat.zero_lt_succ _⟩ = a := rfl
example (a b c : α) : [a, b, c].get ⟨0, by simp⟩ = a := by
simp
example (a : Bool) : (a :: as).get ⟨0, by simp_arith⟩ = a := by
simp
example (a : Bool) : (a :: as).get ⟨0, by simp_arith⟩ = a := by
simp
example (a b ... |
1ae743699340136aae4b0f384e5a99cd0bdcd51e | 6432ea7a083ff6ba21ea17af9ee47b9c371760f7 | /src/Lean/Compiler/NoncomputableAttr.lean | ad03125f4d968777d5b47881467f5d04bcea35d9 | [
"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 | 840 | 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.Environment
namespace Lean
builtin_initialize noncomputableExt : TagDeclarationExtension ← mkTagDeclarationExtension
/-- Mark in the environm... |
d584c27c585cce45b5ec1116ea7508f5677725b7 | dd4e652c749fea9ac77e404005cb3470e5f75469 | /src/missing_mathlib/data/polynomial.lean | de31ac7436ca085191bc2780010698356f6139c8 | [] | no_license | skbaek/cvx | e32822ad5943541539966a37dee162b0a5495f55 | c50c790c9116f9fac8dfe742903a62bdd7292c15 | refs/heads/master | 1,623,803,010,339 | 1,618,058,958,000 | 1,618,058,958,000 | 176,293,135 | 3 | 2 | null | null | null | null | UTF-8 | Lean | false | false | 2,710 | lean | import data.polynomial
import eigenvectors.smul_id
universe variables u v w
namespace polynomial
variables {α : Type u} {β : Type v}
open polynomial
-- TODO: move
-- lemma not_is_unit_X_sub_C {α : Type*} [integral_domain α] [decidable_eq α]:
-- ∀ a : α, ¬ is_unit (X - C a) :=
-- begin intros a ha,
-- let ha' ... |
b7d1890c1caf197169ea76ebc8a7871f45180ebd | 1abd1ed12aa68b375cdef28959f39531c6e95b84 | /src/tactic/omega/int/dnf.lean | bf279ce34504fc34f123718a7b24c5ecb026dba0 | [
"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 | 6,270 | lean | /-
Copyright (c) 2019 Seul Baek. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Seul Baek
-/
/-
DNF transformation.
-/
import tactic.omega.clause
import tactic.omega.int.form
namespace omega
namespace int
open_locale omega.int
/-- push_neg p returns the result of ... |
d1ccb295d515c294e3ed1c3ff2350c442b94c068 | cf39355caa609c0f33405126beee2739aa3cb77e | /tests/lean/run/600a.lean | 4b144ebec4e5f4bae8889d38287b4a460ced081c | [
"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 | 21 | lean | /- - -/
#print "ok"
|
3ea525fc4f21a6ae2ea5d7cc1920297c0f1729df | 8cae430f0a71442d02dbb1cbb14073b31048e4b0 | /src/category_theory/limits/preserves/shapes/binary_products.lean | 63991b148292eaa201d37fb79cceb4e291aff5b2 | [
"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,534 | lean | /-
Copyright (c) 2020 Bhavik Mehta. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Bhavik Mehta
-/
import category_theory.limits.shapes.binary_products
import category_theory.limits.preserves.basic
/-!
# Preserving binary products
> THIS FILE IS SYNCHRONIZED WITH MAT... |
1ed1d596b69a8d3a380b226131216c5a968d4481 | a45212b1526d532e6e83c44ddca6a05795113ddc | /src/tactic/rewrite.lean | 7fdc5672f83596dd745112e07a5f89532dcdd23e | [
"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 | 7,346 | 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 data.dlist tactic.basic
namespace tactic
open expr list
meta def match_fn (fn : expr) : expr → tactic (expr × expr)
| (app (app fn' e₀) e₁) := unify fn fn' $> (e₀,... |
ebcf498ecb1b2bca7ad4e0d4262cc978ae7a9ede | 6dc0c8ce7a76229dd81e73ed4474f15f88a9e294 | /tests/lean/run/flat_expr.lean | 97a8f76f987592e6a90649f5db535ed502a58b0f | [
"Apache-2.0"
] | permissive | williamdemeo/lean4 | 72161c58fe65c3ad955d6a3050bb7d37c04c0d54 | 6d00fcf1d6d873e195f9220c668ef9c58e9c4a35 | refs/heads/master | 1,678,305,356,877 | 1,614,708,995,000 | 1,614,708,995,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 2,382 | lean | import Std
inductive Expr where
| var (i : Nat)
| op (lhs rhs : Expr)
def List.getIdx : List α → Nat → α → α
| [], i, u => u
| a::as, 0, u => a
| a::as, i+1, u => getIdx as i u
structure Context (α : Type u) where
op : α → α → α
unit : α
assoc : (a b c : α) → op (op a b) c = op a (op b c)... |
525e84721cd0860ecf06ad4dca96535d88ea9e35 | 05b503addd423dd68145d68b8cde5cd595d74365 | /src/order/filter/basic.lean | 6a94bae00ecf106f3d8cb90c6f5429fc0c03ea1c | [
"Apache-2.0"
] | permissive | aestriplex/mathlib | 77513ff2b176d74a3bec114f33b519069788811d | e2fa8b2b1b732d7c25119229e3cdfba8370cb00f | refs/heads/master | 1,621,969,960,692 | 1,586,279,279,000 | 1,586,279,279,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 105,311 | 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
-/
import order.galois_connection order.zorn order.copy
import data.set.finite
/-! # Theory of filters on sets
## Main definitions
* `filter` : filter ... |
e83f723b38757684b2a6f406561b877debca6cf6 | 8cae430f0a71442d02dbb1cbb14073b31048e4b0 | /src/algebra/order/monoid/to_mul_bot.lean | 2cfbed9a89e21c00d2c30fdcdf37c8f3ba952775 | [
"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,742 | lean | /-
Copyright (c) 2016 Jeremy Avigad. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Jeremy Avigad, Leonardo de Moura, Mario Carneiro, Johannes Hölzl
-/
import algebra.order.with_zero
import algebra.order.monoid.with_top
import algebra.order.monoid.type_tags
/-!
> THIS... |
40ac3f7dc758f028f349453225da53efbf6ea7af | 097294e9b80f0d9893ac160b9c7219aa135b51b9 | /instructor/propositional_logic/satisfiability/satisfiability.lean | 3b6c249b212f1d410fd604e7fb8ea854fed4db2d | [] | no_license | AbigailCastro17/CS2102-Discrete-Math | cf296251be9418ce90206f5e66bde9163e21abf9 | d741e4d2d6a9b2e0c8380e51706218b8f608cee4 | refs/heads/main | 1,682,891,087,358 | 1,621,401,341,000 | 1,621,401,341,000 | 368,749,959 | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 11,705 | lean | import .propositional_logic_syntax_and_semantics
import .rules_of_reasoning
/-
Here we implement a propositional logic validity
checker as a function, is_valid: pExp → bool. This
main routine is defined at the bottom of this file.
As is good practice in the design of software and
of logical specifications and proof... |
5491ad5778e3010b3af69e878f267afe7bb47187 | d406927ab5617694ec9ea7001f101b7c9e3d9702 | /src/category_theory/limits/constructions/weakly_initial.lean | 2995d575ff221d6ff66d0ed4a410c3dadacd0da3 | [
"Apache-2.0"
] | permissive | alreadydone/mathlib | dc0be621c6c8208c581f5170a8216c5ba6721927 | c982179ec21091d3e102d8a5d9f5fe06c8fafb73 | refs/heads/master | 1,685,523,275,196 | 1,670,184,141,000 | 1,670,184,141,000 | 287,574,545 | 0 | 0 | Apache-2.0 | 1,670,290,714,000 | 1,597,421,623,000 | Lean | UTF-8 | Lean | false | false | 2,451 | lean | /-
Copyright (c) 2021 Bhavik Mehta. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Bhavik Mehta
-/
import category_theory.limits.shapes.wide_equalizers
import category_theory.limits.shapes.products
import category_theory.limits.shapes.terminal
/-!
# Constructions rela... |
191511b312f2651eed75cb9f2ae064d61c79792c | 77c5b91fae1b966ddd1db969ba37b6f0e4901e88 | /src/linear_algebra/free_module/strong_rank_condition.lean | 00169c39f06f4c9733687a1f81f139ecaa10de5f | [
"Apache-2.0"
] | permissive | dexmagic/mathlib | ff48eefc56e2412429b31d4fddd41a976eb287ce | 7a5d15a955a92a90e1d398b2281916b9c41270b2 | refs/heads/master | 1,693,481,322,046 | 1,633,360,193,000 | 1,633,360,193,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 2,537 | 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 linear_algebra.charpoly.basic
import linear_algebra.invariant_basis_number
/-!
# Strong rank condition for commutative rings
We prove that any nontrivial... |
64fbe878211bde8511f46ef1bcd312ed7ff52cff | e0f9ba56b7fedc16ef8697f6caeef5898b435143 | /src/topology/metric_space/closeds.lean | c9b886cfe95b35329fb98622f88c1aaea7c11027 | [
"Apache-2.0"
] | permissive | anrddh/mathlib | 6a374da53c7e3a35cb0298b0cd67824efef362b4 | a4266a01d2dcb10de19369307c986d038c7bb6a6 | refs/heads/master | 1,656,710,827,909 | 1,589,560,456,000 | 1,589,560,456,000 | 264,271,800 | 0 | 0 | Apache-2.0 | 1,589,568,062,000 | 1,589,568,061,000 | null | UTF-8 | Lean | false | false | 21,543 | 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.metric_space.hausdorff_distance
import analysis.specific_limits
/-!
# Closed subsets
This file defines the metric and emetric space structure o... |
9c9a2273803461222481aa04f8ba244cf388af86 | 90edd5cdcf93124fe15627f7304069fdce3442dd | /tests/lean/run/aesop.lean | 0bdaae5888e533490978ee6069d5a60375e6af9e | [
"Apache-2.0"
] | permissive | JLimperg/lean4-aesop | 8a9d9cd3ee484a8e67fda2dd9822d76708098712 | 5c4b9a3e05c32f69a4357c3047c274f4b94f9c71 | refs/heads/master | 1,689,415,944,104 | 1,627,383,284,000 | 1,627,383,284,000 | 377,536,770 | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 1,132 | lean | /-
Copyright (c) 2021 Jannis Limperg. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Jannis Limperg
-/
-- TODO clean up this test case
import Lean
open Lean
open Lean.Meta
open Lean.Elab.Tactic
inductive Even : Nat → Prop
| zero : Even Nat.zero
| plus_two {n} : Even... |
4f6c241a18a6e237b46264f0da54a8ebf8916a17 | 367134ba5a65885e863bdc4507601606690974c1 | /src/algebra/add_torsor.lean | 05c8f34e4d33ab67dfc0ffcf0e8480c63b58b0cd | [
"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 | 18,685 | lean | /-
Copyright (c) 2020 Joseph Myers. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Joseph Myers, Yury Kudryashov.
-/
import algebra.group.prod
import algebra.group.type_tags
import algebra.group.pi
import algebra.pointwise
import data.equiv.basic
import data.set.finite... |
10ec958dccc28811bcbfdd0e4b26487b24602c2b | bdb33f8b7ea65f7705fc342a178508e2722eb851 | /order/bounds.lean | 7c83922ed9a7d66455cad7c4941f2ca23b221950 | [
"Apache-2.0"
] | permissive | rwbarton/mathlib | 939ae09bf8d6eb1331fc2f7e067d39567e10e33d | c13c5ea701bb1eec057e0a242d9f480a079105e9 | refs/heads/master | 1,584,015,335,862 | 1,524,142,167,000 | 1,524,142,167,000 | 130,614,171 | 0 | 0 | Apache-2.0 | 1,548,902,667,000 | 1,524,437,371,000 | Lean | UTF-8 | Lean | false | false | 5,703 | lean | /-
Copyright (c) 2017 Johannes Hölzl. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Author: Johannes Hölzl
(Least / Greatest) upper / lower bounds
-/
import order.complete_lattice data.set
open set lattice
universes u v w x
variables {α : Type u} {β : Type v} {γ : Type w} {ι... |
8c0e41d5f1285b23767b4dda16edc80f3ede5b26 | 1901b51268d21ec7361af7d3534abd9a8fa5cf52 | /src/graph_theory/minor.lean | 3530a063c23bf448891a8ffe78e776ceb3b078df | [] | no_license | vbeffara/lean | b9ea4107deeaca6f4da98e5de029b62e4861ab40 | 0004b1d502ac3f4ccd213dbd23589d4c4f9fece8 | refs/heads/main | 1,652,050,034,756 | 1,651,610,858,000 | 1,651,610,858,000 | 225,244,535 | 6 | 1 | null | null | null | null | UTF-8 | Lean | false | false | 1,855 | lean | import tactic
import graph_theory.path_embedding graph_theory.contraction
open function
namespace simple_graph
open walk classical
universe u
variables {V V' V'' : Type u}
variables {G H : simple_graph V} {G' : simple_graph V'} {G'' : simple_graph V''}
def is_minor (G : simple_graph V) (G' : simple_graph V') : Prop ... |
7839b5b84ab01425019d25512421696753f98cd0 | 46125763b4dbf50619e8846a1371029346f4c3db | /src/ring_theory/maps.lean | 28f02ba8c73a5519e44ba56e3e972526986c7ea6 | [
"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 | 5,213 | lean | /-
Copyright (c) 2018 Andreas Swerdlow. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Andreas Swerdlow, Kenny Lau
-/
import data.equiv.algebra
/-!
# Ring antihomomorphisms, isomorphisms, antiisomorphisms and involutions
This file defines ring antihomomorphisms, ant... |
079d348ddf8d25426204c2eda7e0920f72800243 | 6432ea7a083ff6ba21ea17af9ee47b9c371760f7 | /src/lake/Lake/Load/Materialize.lean | ed207066b1043f933f9f2eac26ac092186728784 | [
"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,474 | lean | /-
Copyright (c) 2017 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Gabriel Ebner, Sebastian Ullrich, Mac Malone
-/
import Lake.Util.Git
import Lake.Load.Manifest
import Lake.Config.Dependency
import Lake.Config.Package
open System Lean
/-! # ... |
ac84d0570a53c5ff85e6b4a986bbddc4c74a0f7b | 798dd332c1ad790518589a09bc82459fb12e5156 | /set_theory/cofinality.lean | a245e7807e9b611a83edbbabc28b0696318acf26 | [
"Apache-2.0"
] | permissive | tobiasgrosser/mathlib | b040b7eb42d5942206149371cf92c61404de3c31 | 120635628368ec261e031cefc6d30e0304088b03 | refs/heads/master | 1,644,803,442,937 | 1,536,663,752,000 | 1,536,663,907,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 17,289 | lean | /-
Copyright (c) 2017 Mario Carneiro. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Author: Mario Carneiro
Cofinality on ordinals, regular cardinals.
-/
import set_theory.ordinal
noncomputable theory
open function cardinal
local attribute [instance] classical.prop_decidable
... |
ea081652bf6468200e3e1e701984acc4b104d18f | f4bff2062c030df03d65e8b69c88f79b63a359d8 | /src/game/topology/union_open_sets.lean | 60f20b2a4fbcff473c39d49bcab3ed1abc8f9097 | [
"Apache-2.0"
] | permissive | adastra7470/real-number-game | 776606961f52db0eb824555ed2f8e16f92216ea3 | f9dcb7d9255a79b57e62038228a23346c2dc301b | refs/heads/master | 1,669,221,575,893 | 1,594,669,800,000 | 1,594,669,800,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 1,051 | lean | import data.real.basic
import data.set.lattice
open set
--begin hide
namespace xena
-- This will eventually be the first level, containing basic definitions
-- Work in progress
-- First I used ⊂ in the definition, then changed to ⊆
-- in order to be able to use subset.trans -- DS
-- end hide
def is_open (X : set ℝ)... |
b91a7a7903e67634fc09bb3b0138a800e0acad09 | 9dc8cecdf3c4634764a18254e94d43da07142918 | /src/data/sym/basic.lean | 91bd2e9a887b167583616c64ae58171bf0a3b930 | [
"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 | 16,936 | lean | /-
Copyright (c) 2020 Kyle Miller All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Kyle Miller
-/
import data.multiset.basic
import data.vector.basic
import data.setoid.basic
import tactic.apply_fun
/-!
# Symmetric powers
This file defines symmetric powers of a type. ... |
da61fccb784617d7c354b9b8e75264c5b0aed85a | 4bcaca5dc83d49803f72b7b5920b75b6e7d9de2d | /stage0/src/Lean/PrettyPrinter/Delaborator/Builtins.lean | cea86e537170b2ebabfb2a13d923703a7e612266 | [
"Apache-2.0"
] | permissive | subfish-zhou/leanprover-zh_CN.github.io | 30b9fba9bd790720bd95764e61ae796697d2f603 | 8b2985d4a3d458ceda9361ac454c28168d920d3f | refs/heads/master | 1,689,709,967,820 | 1,632,503,056,000 | 1,632,503,056,000 | 409,962,097 | 1 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 31,052 | lean | /-
Copyright (c) 2020 Sebastian Ullrich. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Sebastian Ullrich
-/
import Lean.PrettyPrinter.Delaborator.Basic
import Lean.PrettyPrinter.Delaborator.SubExpr
import Lean.PrettyPrinter.Delaborator.TopDownAnalyze
import Lean.Pars... |
26481d72908efae2c35706d51b5a49f3f51ac6d8 | a0e23cfdd129a671bf3154ee1a8a3a72bf4c7940 | /src/Lean/Server.lean | 9968c5d2ae2b6f6185a196854fda4dd0ac5e6b7f | [
"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 | 229 | lean | /-
Copyright (c) 2020 Marc Huisinga. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Marc Huisinga, Wojciech Nawrocki
-/
import Lean.Server.Watchdog
import Lean.Server.FileWorker |
0ea44470d1c1d3ce4e89445b28459ce263ae2240 | aa3f8992ef7806974bc1ffd468baa0c79f4d6643 | /library/algebra/category/natural_transformation.lean | 827ab7bf2cadd89e90ca50e504dfc992908300bd | [
"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 | 2,147 | 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
import .functor
open category eq eq.ops functor
inductive natural_transformation {C D : Category} (F G : C ⇒ D) : Type :=
mk : Π (η : Π(a : C), hom (F a) (G a... |
f2771c10f73db59b5da987b89fe03f9aba684699 | dd0f5513e11c52db157d2fcc8456d9401a6cd9da | /06_Inductive_Types.org.21.lean | b4c1e8e408920e73cbecc5a38fd6db1a3f76e4c4 | [] | no_license | cjmazey/lean-tutorial | ba559a49f82aa6c5848b9bf17b7389bf7f4ba645 | 381f61c9fcac56d01d959ae0fa6e376f2c4e3b34 | refs/heads/master | 1,610,286,098,832 | 1,447,124,923,000 | 1,447,124,923,000 | 43,082,433 | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 1,261 | lean | /- page 83 -/
import standard
namespace hide
-- BEGIN
inductive option (A : Type) : Type :=
| none {} : option A
| some : A → option A
inductive inhabited (A : Type) : Type :=
mk : A → inhabited A
-- END
end hide
print option
definition optionCompose {A B C : Type}
(g : B → option C)
... |
98ee1b81f9e370b6095833f36e3e16c530ccf91b | d406927ab5617694ec9ea7001f101b7c9e3d9702 | /src/analysis/complex/open_mapping.lean | 17819086e69864464f0f1f54fef11896e9c64030 | [
"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 | 11,312 | lean | /-
Copyright (c) 2022 Vincent Beffara. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Vincent Beffara
-/
import analysis.analytic.isolated_zeros
import analysis.complex.cauchy_integral
import analysis.complex.abs_max
/-!
# The open mapping theorem for holomorphic func... |
3933372f10f327c7d0079eef8d576112294261cc | 38ee9024fb5974f555fb578fcf5a5a7b71e669b5 | /test/nomatch.lean | 61cac81598b4c2f4d26d889f91722133057c47a9 | [
"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 | 524 | lean | import Mathlib.Tactic.NoMatch
example : False → α := fun.
example : False → α := by intro.
example : ¬ α := fun.
example : ¬ α := by intro.
example (h : False) : α := fun.
example (h : False) : α := match with.
example (h : False) : α := match h with.
example (h : Nat → False) : Nat := match h 1 with.
def Complicat... |
1ec9e6bc6904d006a958c1de953bcf6fc42c7e64 | a9d0fb7b0e4f802bd3857b803e6c5c23d87fef91 | /library/data/finset/comb.lean | 183c298cb8c5c8641b97a3c426c25264aa45328b | [
"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 | 18,785 | 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, Jeremy Avigad
Combinators for finite sets.
-/
import data.finset.basic logic.identities
open list quot subtype decidable perm function
namespace finset
/- i... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.