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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
7c26f2a92fa064bdecc23065a4a0de97e91dcc40 | 2272e503179a58556187901b8698b789fad7e0c4 | /src/tensor_product.lean | 1be3594a5ceb2674b2e013d018f00096b72e90f9 | [] | no_license | kckennylau/category-theory | f15e582be862379453a5341d83b8cd5ebc686729 | b24962838c7370b5257e38b7648040aec95922bb | refs/heads/master | 1,583,605,043,449 | 1,525,154,882,000 | 1,525,154,882,000 | 127,633,452 | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 50,890 | lean | import algebra.group_power linear_algebra.prod_module algebra.module
import data.finsupp data.set.basic tactic.ring Kenny_comm_alg.temp
noncomputable theory
universes u u₁ v v₁ w w₁
open classical set function
local attribute [instance] decidable_inhabited prop_decidable
namespace prod
@[simp] lemma prod... |
77301d53680cfe50c6cc280d90f300f6cb2603b2 | bae21755a4a03bbe0a5c22e258db8633407711ad | /library/init/category/reader.lean | 65c8a73105f1c023a57764d0f0d8c81ac532beff | [
"Apache-2.0"
] | permissive | nor-code/lean | f437357a8f85db0f06f186fa50fcb1bc75f6b122 | aa306af3d7c47de3c7937c98d3aa919eb8da6f34 | refs/heads/master | 1,662,613,329,886 | 1,586,696,014,000 | 1,586,696,014,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 4,978 | 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 reader monad transformer for passing immutable state.
-/
prelude
import init.category.lift init.category.id init.category.alternative init.category.excep... |
ada5cd021dc3f0df23a66ce41152b257e5942c6e | 947b78d97130d56365ae2ec264df196ce769371a | /stage0/src/Lean/Data/Json/Parser.lean | 3ad9d16e814b2e3ee3f9abb20004256f370a8d45 | [
"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 | 7,250 | lean | /-
Copyright (c) 2019 Gabriel Ebner. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Gabriel Ebner, Marc Huisinga
-/
import Lean.Data.Json.Basic
namespace Lean
open Std (RBNode RBNode.singleton RBNode.leaf)
inductive Quickparse.Result (α : Type)
| success (pos : Str... |
ea4dae5c89657639b4621b46c5135f062aae2c6a | 67190c9aacc0cac64fb4463d93e84c696a5be896 | /Exercises/18. The Natural Numbers and Induction in Lean.lean | 4f8733a8aa86b267b87c37c82ee35162a01129fa | [] | no_license | lucasresck/Discrete-Mathematics | ffbaf55943e7ce2c7bc50cef7e3ef66a0212f738 | 0a08081c5f393e5765259d3f1253c3a6dd043dac | refs/heads/master | 1,596,627,857,734 | 1,573,411,500,000 | 1,573,411,500,000 | 212,489,764 | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 2,859 | lean | open nat
--1.a.
example : ∀ m n k : nat, m * (n + k) = m * n + m * k :=
assume m n k,
nat.rec_on k
(show m * (n + 0) = m * n + m * 0, from calc
m * (n + 0) = m * n : by rw add_zero
... = m * n + 0 : by rw add_zero
... =... |
56a00b3c2aa5913230bb24352210fb9408380dca | 8cae430f0a71442d02dbb1cbb14073b31048e4b0 | /src/linear_algebra/tensor_power.lean | 94287845afd8e240ebe2cfc8950625655dcb7bb4 | [
"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 | 11,183 | lean | /-
Copyright (c) 2021 Eric Wieser. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Eric Wieser
-/
import linear_algebra.pi_tensor_product
import logic.equiv.fin
import algebra.direct_sum.algebra
/-!
# Tensor power of a semimodule over a commutative semirings
> THIS F... |
f2a2149db48ddc42cc83a64b8465d2dacdd6ace8 | 4727251e0cd73359b15b664c3170e5d754078599 | /src/ring_theory/valuation/valuation_ring.lean | 4786cea2674b74332794e535787f9da7bd0eaf60 | [
"Apache-2.0"
] | permissive | Vierkantor/mathlib | 0ea59ac32a3a43c93c44d70f441c4ee810ccceca | 83bc3b9ce9b13910b57bda6b56222495ebd31c2f | refs/heads/master | 1,658,323,012,449 | 1,652,256,003,000 | 1,652,256,003,000 | 209,296,341 | 0 | 1 | Apache-2.0 | 1,568,807,655,000 | 1,568,807,655,000 | null | UTF-8 | Lean | false | false | 11,644 | lean | /-
Copyright (c) 2022 Adam Topaz. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Adam Topaz
-/
import ring_theory.valuation.integers
import ring_theory.ideal.local_ring
import ring_theory.localization.fraction_ring
import ring_theory.discrete_valuation_ring
import tact... |
5ddb7cacf166a70cf238bf0ead4f085dc7f64bbc | 302c785c90d40ad3d6be43d33bc6a558354cc2cf | /src/algebra/category/Module/kernels.lean | a9446745145d2c4129579afa2c141f8c3e204426 | [
"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 | 4,162 | lean | /-
Copyright (c) 2020 Markus Himmel. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Markus Himmel
-/
import algebra.category.Module.basic
/-!
# The concrete (co)kernels in the category of modules are (co)kernels in the categorical sense.
-/
open category_theory
open ... |
aa7a313bf571a62ec135b1585b7c9debd505d6df | d9d511f37a523cd7659d6f573f990e2a0af93c6f | /src/data/polynomial/hasse_deriv.lean | 90350af447ece96252617307622473c8d0e58c49 | [
"Apache-2.0"
] | permissive | hikari0108/mathlib | b7ea2b7350497ab1a0b87a09d093ecc025a50dfa | a9e7d333b0cfd45f13a20f7b96b7d52e19fa2901 | refs/heads/master | 1,690,483,608,260 | 1,631,541,580,000 | 1,631,541,580,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 8,552 | lean | /-
Copyright (c) 2021 Johan Commelin. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Johan Commelin
-/
import data.polynomial.derivative
import data.nat.choose.vandermonde
/-!
# Hasse derivative of polynomials
The `k`th Hasse derivative of a polynomial `∑ a_i X^i` i... |
b9f21224bebaf87a261cf29fbfaf4f664d0a0b31 | f20db13587f4dd28a4b1fbd31953afd491691fa0 | /library/init/meta/tactic.lean | 795ae8aedc74543d2688bf1bc02fedbfacf16418 | [
"Apache-2.0"
] | permissive | AHartNtkn/lean | 9a971edfc6857c63edcbf96bea6841b9a84cf916 | 0d83a74b26541421fc1aa33044c35b03759710ed | refs/heads/master | 1,620,592,591,236 | 1,516,749,881,000 | 1,516,749,881,000 | 118,697,288 | 1 | 0 | null | 1,516,759,470,000 | 1,516,759,470,000 | null | UTF-8 | Lean | false | false | 51,618 | 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.function init.data.option.basic init.util
import init.category.combinators init.category.monad init.category.alternative init.category.m... |
1f34f7462f85f190f5fedaeda22f0c9e45ed9baa | 6094e25ea0b7699e642463b48e51b2ead6ddc23f | /library/data/set/filter.lean | 5e2fed02dc3f23153ec864dddc01cb317a4d6a28 | [
"Apache-2.0"
] | permissive | gbaz/lean | a7835c4e3006fbbb079e8f8ffe18aacc45adebfb | a501c308be3acaa50a2c0610ce2e0d71becf8032 | refs/heads/master | 1,611,198,791,433 | 1,451,339,111,000 | 1,451,339,111,000 | 48,713,797 | 0 | 0 | null | 1,451,338,939,000 | 1,451,338,939,000 | null | UTF-8 | Lean | false | false | 11,875 | lean | /-
Copyright (c) 2015 Jeremy Avigad. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Author: Jeremy Avigad
Filters, following Hölzl, Immler, and Huffman, "Type classes and filters for mathematical
analysis in Isabelle/HOL".
-/
import data.set.function logic.identities algebra.c... |
6b67637c340093471756cdb789ebaeaea471f138 | 80cc5bf14c8ea85ff340d1d747a127dcadeb966f | /src/data/list/basic.lean | 7129974700d1329bd9c951af482ccbc674106e83 | [
"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 | 165,383 | lean | /-
Copyright (c) 2014 Parikshit Khanna. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Parikshit Khanna, Jeremy Avigad, Leonardo de Moura, Floris van Doorn, Mario Carneiro
-/
import algebra.order_functions
import control.monad.basic
import data.nat.choose.basic
import ... |
55acc7b6f65a507a77fc82c1a5428a6987f28f6f | 96e44fc78cabfc9d646dc37d0e756189b6b79181 | /library/init/meta/simp_tactic.lean | 39392d2986cfbe06c5f9357de492c8df04ea6581 | [
"Apache-2.0"
] | permissive | TwoFX/lean | 23c73c10a340f5a381f6abf27a27f53f1fb7e2e3 | 7e3f336714055869690b7309b6bb651fbc67e76e | refs/heads/master | 1,612,504,908,183 | 1,594,641,622,000 | 1,594,641,622,000 | 243,750,847 | 0 | 0 | Apache-2.0 | 1,582,890,661,000 | 1,582,890,661,000 | null | UTF-8 | Lean | false | false | 26,954 | 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.tactic init.meta.attribute init.meta.constructor_tactic
import init.meta.relation_tactics init.meta.occurrences
import init.data.op... |
b62f2699863b67dff194c74afe5d4b6b91ce3608 | 69d4931b605e11ca61881fc4f66db50a0a875e39 | /archive/100-theorems-list/16_abel_ruffini.lean | 942ec9ff38921c1ba499d44158c3c71e06f14f83 | [
"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 | 7,838 | lean | /-
Copyright (c) 2021 Thomas Browning. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Thomas Browning
-/
import field_theory.abel_ruffini
import analysis.calculus.local_extr
/-!
Construction of an algebraic number that is not solvable by radicals.
The main ingredients... |
d51e8e1d85943ffd577b742ac329d9e8d138dfbd | d9d511f37a523cd7659d6f573f990e2a0af93c6f | /src/data/matrix/notation.lean | 545bf3ee80d009bb584b65bce90e24d89a1f6eff | [
"Apache-2.0"
] | permissive | hikari0108/mathlib | b7ea2b7350497ab1a0b87a09d093ecc025a50dfa | a9e7d333b0cfd45f13a20f7b96b7d52e19fa2901 | refs/heads/master | 1,690,483,608,260 | 1,631,541,580,000 | 1,631,541,580,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 18,557 | lean | /-
Copyright (c) 2020 Anne Baanen. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Anne Baanen
Notation for vectors and matrices
-/
import data.fintype.card
import data.matrix.basic
import tactic.fin_cases
/-!
# Matrix and vector notation
This file defines notation ... |
1fdeef7d1c6adf3b5861e1e0e9853a1def0dc9b8 | 097294e9b80f0d9893ac160b9c7219aa135b51b9 | /instructor/propositional_logic/precedence/rules_of_reasoning.lean | 3dc9fe463b8a307e7f544cc0bba87d5f9055892f | [] | 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 | 3,963 | lean | --import .prop_logic
import .propositional_logic_syntax_and_semantics
open pExp
/-
Here are three propositional variables,
P, Q, and R.
-/
def P := pVar (var.mk 0)
def Q := pVar (var.mk 1)
def R := pVar (var.mk 2)
/-
Below are 20+ formulae in propositional
logic. Your job is to classify each as
valid or not vali... |
36fdb1294f3a8370c7ae1b3a2cd911d2752f61a6 | 4efff1f47634ff19e2f786deadd394270a59ecd2 | /src/order/basic.lean | dfbae895f965a467c92e559bc5689d66d8392328 | [
"Apache-2.0"
] | permissive | agjftucker/mathlib | d634cd0d5256b6325e3c55bb7fb2403548371707 | 87fe50de17b00af533f72a102d0adefe4a2285e8 | refs/heads/master | 1,625,378,131,941 | 1,599,166,526,000 | 1,599,166,526,000 | 160,748,509 | 0 | 0 | Apache-2.0 | 1,544,141,789,000 | 1,544,141,789,000 | null | UTF-8 | Lean | false | false | 17,312 | lean | /-
Copyright (c) 2014 Jeremy Avigad. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Jeremy Avigad, Mario Carneiro
-/
import data.subtype
import data.prod
open function
/-!
# Basic definitions about `≤` and `<`
## Definitions
### Predicates on functions
- `monotone... |
2c59fff7fc3a29742f37ae681463e40ba0e80753 | 74addaa0e41490cbaf2abd313a764c96df57b05d | /Mathlib/category_theory/reflects_isomorphisms.lean | c700299b0b8074b91d65cfaac929e8e48c9e836e | [] | 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,409 | lean | /-
Copyright (c) 2020 Bhavik Mehta. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Bhavik Mehta
-/
import Mathlib.PrePort
import Mathlib.Lean3Lib.init.default
import Mathlib.category_theory.fully_faithful
import Mathlib.PostPort
universes v₁ v₂ u₁ u₂ l
namespace Mat... |
4b4ba2389d8ddfb835c807f4ef43ea1e6b770fba | d406927ab5617694ec9ea7001f101b7c9e3d9702 | /src/analysis/locally_convex/bounded.lean | d26f8bcfcdcaa01469da94f69b754710bd71f0fd | [
"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,007 | 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 analysis.locally_convex.balanced_core_hull
import analysis.seminorm
import topology.bornology.basic
import topology.algebra.unif... |
ab4a0eb648e750fca6822795061cb1936877fe42 | c777c32c8e484e195053731103c5e52af26a25d1 | /src/analysis/normed_space/completion.lean | bac77e02d11220a37bdd12c6826bf49a2e12087d | [
"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,709 | lean | /-
Copyright (c) 2022 Yury G. Kudryashov. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Yury G. Kudryashov
-/
import analysis.normed.group.completion
import analysis.normed_space.operator_norm
import topology.algebra.uniform_ring
/-!
# Normed space structure on the c... |
79ad0422ff8251f509c48d636e64d6a308fd7b05 | a721fe7446524f18ba361625fc01033d9c8b7a78 | /src/principia/myring/polynomial_ring.lean | 3d8f6a397c6fd62fc33848714b8278ae1dc8c578 | [] | 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,337 | lean | import .basic
import ..logic
import ..sequence
import ..mynat.max
namespace hidden
namespace myring
structure polynomial (α : Type) [myring α] :=
(seq : sequence α)
(eventually_zero : ∃ N, ∀ n, N ≤ n → seq n = 0)
namespace polynomial
variables {α : Type} [myring α]
theorem polyext (a b : polynomial α) : (∀ n, a.se... |
dbc674ad23dce121b47d7692ec38bcfb02381b16 | cf39355caa609c0f33405126beee2739aa3cb77e | /tests/lean/simp_ite.lean | 282dff8175a18739f20fdeea66062bb38d35ff5d | [
"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 | 562 | lean | -- in older versions, this would get stuck on the equality
-- `decidable_of_decidable_of_iff dec_p p_iff_p' = dec_p'`
constants (p p' : Prop) (p_iff_p' : p ↔ p')
attribute [simp] p_iff_p'
example (a b : ℕ) [dec_p : decidable p] [dec_p' : decidable p'] :
(if p then a else b) = (if p' then a else b) :=
by simp
-- `sim... |
1e3d336c26f02c74b9c7f9623deca0e73e5d73a8 | 4727251e0cd73359b15b664c3170e5d754078599 | /src/ring_theory/polynomial/cyclotomic/eval.lean | 88595c50e62bb964d7fcd837c79de41dc8399739 | [
"Apache-2.0"
] | permissive | Vierkantor/mathlib | 0ea59ac32a3a43c93c44d70f441c4ee810ccceca | 83bc3b9ce9b13910b57bda6b56222495ebd31c2f | refs/heads/master | 1,658,323,012,449 | 1,652,256,003,000 | 1,652,256,003,000 | 209,296,341 | 0 | 1 | Apache-2.0 | 1,568,807,655,000 | 1,568,807,655,000 | null | UTF-8 | Lean | false | false | 15,914 | lean | /-
Copyright (c) 2021 Eric Rodriguez. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Eric Rodriguez
-/
import ring_theory.polynomial.cyclotomic.basic
import tactic.by_contra
import topology.algebra.polynomial
import number_theory.padics.padic_val
import analysis.compl... |
ba1349e1cb274be4fbfe2ba9f3b2621aaf9dad18 | 8b9f17008684d796c8022dab552e42f0cb6fb347 | /library/classical.lean | a0b1c7478ce965391d84eb7a1b75467b275da396 | [
"Apache-2.0"
] | permissive | chubbymaggie/lean | 0d06ae25f9dd396306fb02190e89422ea94afd7b | d2c7b5c31928c98f545b16420d37842c43b4ae9a | refs/heads/master | 1,611,313,622,901 | 1,430,266,839,000 | 1,430,267,083,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 267 | lean | /-
Copyright (c) 2014 Jeremy Avigad. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Module: classical
Author: Jeremy Avigad
The standard library together with the classical axioms.
-/
import standard logic.axioms.classical
|
8d01bbb662573144858c14ba4731ab71cd8e47c4 | 31f556cdeb9239ffc2fad8f905e33987ff4feab9 | /stage0/src/Lean/Meta/Tactic/AC/Main.lean | 3a5fe8cc1b018566a0918f3800477094b1fcab57 | [
"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 | tobiasgrosser/lean4 | ce0fd9cca0feba1100656679bf41f0bffdbabb71 | ebdbdc10436a4d9d6b66acf78aae7a23f5bd073f | refs/heads/master | 1,673,103,412,948 | 1,664,930,501,000 | 1,664,930,501,000 | 186,870,185 | 0 | 0 | Apache-2.0 | 1,665,129,237,000 | 1,557,939,901,000 | Lean | UTF-8 | Lean | false | false | 6,148 | lean | /-
Copyright (c) 2022 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Dany Fabian
-/
import Lean.Meta.AppBuilder
import Lean.Meta.Tactic.Refl
import Lean.Meta.Tactic.Simp.Main
import Lean.Elab.Tactic.Rewrite
namespace Lean.Meta.AC
open Lean.Data.... |
76d3bd1ccbe042df31fdeb451a586348daa2c77a | 41ebf3cb010344adfa84907b3304db00e02db0a6 | /uexp/src/uexp/meta/ucongr.lean | 8c99bcbf0cf620402c5c4dfa7b42407b5b48cbf8 | [
"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 | 10,682 | lean | import ..u_semiring
import .cosette_lemmas .cosette_tactics
/- congruence procedure for u-semiring -/
open tactic
private meta def flip_ueq : expr → tactic unit
| `(%%a * %%b) := flip_ueq a >> flip_ueq b
| `(%%t₁ ≃ %%t₂) :=
if t₁ > t₂ then return ()
else do h ← to_expr ``(eq_symm %%t₁ %%t₂),
try ... |
91befaa2d6ca4dd2169f5aaa005a11159d6b92a6 | f09e92753b1d3d2eb3ce2cfb5288a7f5d1d4bd89 | /src/perfectoid_space.lean | 1deefcc2e3ba35369e2a0794da826348ec7e0f9d | [
"Apache-2.0"
] | permissive | PatrickMassot/lean-perfectoid-spaces | 7f63c581db26461b5a92d968e7563247e96a5597 | 5f70b2020b3c6d508431192b18457fa988afa50d | refs/heads/master | 1,625,797,721,782 | 1,547,308,357,000 | 1,547,309,364,000 | 136,658,414 | 0 | 1 | Apache-2.0 | 1,528,486,100,000 | 1,528,486,100,000 | null | UTF-8 | Lean | false | false | 862 | lean | -- definitions of adic_space, preadic_space, Huber_pair etc
import analysis.topology.topological_groups
import adic_space
import Tate_ring
import power_bounded
--notation
postfix `ᵒ` : 66 := power_bounded_subring
local attribute [instance] topological_add_group.to_uniform_space
open nat.Prime power_bounded
variable ... |
0061dc28a095ad7706bf136950855d4ba4a7a435 | b7f22e51856f4989b970961f794f1c435f9b8f78 | /library/theories/number_theory/primes.lean | c329d00490d5fc8640ef293b78b664417a7f3ea5 | [
"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 | 10,246 | 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, Jeremy Avigad
Prime numbers.
-/
import data.nat logic.identities
open bool subtype
namespace nat
open decidable
definition prime [reducible] (p : nat) := p... |
d0f85a5e108a368fcbfc7f94071593e9ac75de41 | 88892181780ff536a81e794003fe058062f06758 | /src/100_theorems/t039.lean | 1372254e3d9a4bd9129c021efbd9a2c3c793ee2c | [] | no_license | AtnNn/lean-sandbox | fe2c44280444e8bb8146ab8ac391c82b480c0a2e | 8c68afbdc09213173aef1be195da7a9a86060a97 | refs/heads/master | 1,623,004,395,876 | 1,579,969,507,000 | 1,579,969,507,000 | 146,666,368 | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 256 | lean | import number_theory.pell
-- Solutions to Pell’s Equation
open pell
theorem t039 {a x y : ℕ} : Π (a1 : a > 1), (x*x - (a * a - 1) * y * y = 1) → ∃n, x = xn a1 n ∧ y = yn a1 n
:= begin
intros,
refine eq_pell _ _,
rw ← a_1,
ring,
end
|
0168c87d9d396161bbd9102fc224f937d4df0744 | 8f67b34bba98f894155dedf263bc8d61c31e89cd | /2ltt/facts.lean | 2b1eb5244382f1d0b01c8ceb12669f75863380f1 | [] | no_license | 5HT/two-level | 3b1523db242cba819681b862fbc8f490d9571a66 | 370f5a91311db3b463b10a31891370721e2476e2 | refs/heads/master | 1,648,254,367,420 | 1,576,269,550,000 | 1,576,269,550,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 5,083 | lean | import data.equiv
open equiv equiv.ops eq eq.ops
-- some definitions and facts about equality and equivalence
-- which we could not find in standard library
namespace eq
definition ap {A B : Type}(f : A → B){a a' : A}
(p : a = a') : f a = f a' := p ▹ eq.refl _
definition apd {A : Type}{B : A → Type}(f : Π ... |
3e59211c585886bbd7e4ad5cc6913dc9d5e66e72 | 6e9cd8d58e550c481a3b45806bd34a3514c6b3e0 | /src/algebra/field.lean | 5d3a9d80e2ff20f48111a874f1470ceabf7e3065 | [
"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 | 15,868 | 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, Johannes Hölzl, Mario Carneiro
-/
import algebra.ring
import algebra.group_with_zero
open set
set_option default_priority 100 -- see Note [default prior... |
a0d9a8b99291997c171563db2ced13e5c1200932 | dd0f5513e11c52db157d2fcc8456d9401a6cd9da | /03_Propositions_and_Proofs.org.19.lean | 061bfc01f0963c5c1a9641633123646bc6f957f5 | [] | 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 | 159 | lean | /- page 39 -/
import standard
variables p q : Prop
-- BEGIN
example (H : p ∧ q) : p := and.elim_left H
example (H : p ∧ q) : q := and.elim_right H
-- END
|
404b1dab63dd3aa9c91fdb6975e4dff5441a7237 | 5ae26df177f810c5006841e9c73dc56e01b978d7 | /src/algebra/pi_instances.lean | d5acb8655714706510e9eb31c7e0191dd2c35f77 | [
"Apache-2.0"
] | permissive | ChrisHughes24/mathlib | 98322577c460bc6b1fe5c21f42ce33ad1c3e5558 | a2a867e827c2a6702beb9efc2b9282bd801d5f9a | refs/heads/master | 1,583,848,251,477 | 1,565,164,247,000 | 1,565,164,247,000 | 129,409,993 | 0 | 1 | Apache-2.0 | 1,565,164,817,000 | 1,523,628,059,000 | Lean | UTF-8 | Lean | false | false | 18,757 | 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
Pi instances for algebraic structures.
-/
import order.basic
import algebra.module algebra.group
import data.finset
import ring_theory.subring
import tactic.p... |
6260d12d3a4d275c148b5a645a07bf7bbf6f1d92 | 01ae0d022f2e2fefdaaa898938c1ac1fbce3b3ab | /categories/yoneda.lean | 52ae8ff44ae220bc0a24d8d478c21344c086d3e8 | [] | no_license | PatrickMassot/lean-category-theory | 0f56a83464396a253c28a42dece16c93baf8ad74 | ef239978e91f2e1c3b8e88b6e9c64c155dc56c99 | refs/heads/master | 1,629,739,187,316 | 1,512,422,659,000 | 1,512,422,659,000 | 113,098,786 | 0 | 0 | null | 1,512,424,022,000 | 1,512,424,022,000 | null | UTF-8 | Lean | false | false | 3,111 | lean | -- Copyright (c) 2017 Scott Morrison. All rights reserved.
-- Released under Apache 2.0 license as described in the file LICENSE.
-- Authors: Scott Morrison
import .natural_transformation
import .isomorphism
import .opposites
import .equivalence
import .products.switch
import .types
open categories
open categories.fu... |
94e68c6462b52afc1d6293ddd764cadcd7ac61b6 | d406927ab5617694ec9ea7001f101b7c9e3d9702 | /src/probability/conditional_expectation.lean | bc789e927ee6a403a6c5f4ccaa460a0cfa64f1e3 | [
"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 | 3,471 | lean | /-
Copyright (c) 2022 Kexing Ying. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Kexing Ying
-/
import probability.notation
import probability.independence
import measure_theory.function.conditional_expectation.basic
/-!
# Probabilistic properties of the conditional... |
bb85317ca0cca90ab7874fc1bc87707cbc27628a | d9d511f37a523cd7659d6f573f990e2a0af93c6f | /src/number_theory/liouville/basic.lean | 3ae3a256fdd7b48ca9288ab94694270ef79c0849 | [
"Apache-2.0"
] | permissive | hikari0108/mathlib | b7ea2b7350497ab1a0b87a09d093ecc025a50dfa | a9e7d333b0cfd45f13a20f7b96b7d52e19fa2901 | refs/heads/master | 1,690,483,608,260 | 1,631,541,580,000 | 1,631,541,580,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 12,334 | lean | /-
Copyright (c) 2020 Jujian Zhang. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Damiano Testa, Jujian Zhang
-/
import analysis.calculus.mean_value
import data.polynomial.denoms_clearable
import data.real.irrational
/-!
# Liouville's theorem
This file contains a pr... |
2e6e70f839ea602a7af741cb497744dd3d9d2d5f | dd4e652c749fea9ac77e404005cb3470e5f75469 | /src/misc.lean | f158339bcf8f96e34db9d36ca6f256e04d65350f | [] | 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 | 1,285 | lean | import data.nat.basic
universe u
def string.drop_chars (c : char) (s : string) : string :=
⟨s.data.drop_while (λ x, x = c)⟩
def string.reverse (s : string) : string := ⟨s.data.reverse⟩
def update (α : Type u) (k : nat) (a : α) (f : nat → α) : nat → α :=
λ x : nat, if x = k then a else f x
lemma forall_lt_zero ... |
d7bc2a4fc05965d4b1317ef0a448439820af1b93 | 9dc8cecdf3c4634764a18254e94d43da07142918 | /src/topology/metric_space/basic.lean | c2bc8c35a982563ad94039e2b3c7618a525d821e | [
"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 | 134,985 | lean | /-
Copyright (c) 2015, 2017 Jeremy Avigad. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Jeremy Avigad, Robert Y. Lewis, Johannes Hölzl, Mario Carneiro, Sébastien Gouëzel
-/
import data.int.interval
import tactic.positivity
import topology.algebra.order.compact
impor... |
b9bc9bc0b988985ed75eaa3156393b9dbee425a3 | 4d2583807a5ac6caaffd3d7a5f646d61ca85d532 | /src/data/int/cast.lean | 0a27981734db4cf329889d9af5fb8bcfd2b89278 | [
"Apache-2.0"
] | permissive | AntoineChambert-Loir/mathlib | 64aabb896129885f12296a799818061bc90da1ff | 07be904260ab6e36a5769680b6012f03a4727134 | refs/heads/master | 1,693,187,631,771 | 1,636,719,886,000 | 1,636,719,886,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 11,659 | lean | /-
Copyright (c) 2017 Mario Carneiro. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Mario Carneiro
-/
import data.int.basic
import data.nat.cast
/-!
# Cast of integers
This file defines the *canonical* homomorphism from the integers into a type `α` with `0`,
`1`, `+... |
f8e07d592d66f68b58a8f24bc462ff1acfbc7319 | 80cc5bf14c8ea85ff340d1d747a127dcadeb966f | /src/tactic/norm_num.lean | ddf8e2bed98092b2ce4f1b789282f8d2ead09d44 | [
"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 | 61,648 | lean | /-
Copyright (c) 2017 Simon Hudon All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Simon Hudon, Mario Carneiro
-/
import data.rat.cast
import data.rat.meta_defs
/-!
# `norm_num`
Evaluating arithmetic expressions including *, +, -, ^, ≤
-/
universes u v w
namespace ta... |
0aa3bed5e228c97325d06ac7a3364c1ba2dbc4fa | 6432ea7a083ff6ba21ea17af9ee47b9c371760f7 | /src/Lean/LoadDynlib.lean | f076d7c59611b2fa935d64d762b62bae01d543ea | [
"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 | 491 | lean | /-
Copyright (c) 2021 Mac Malone. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Mac Malone
-/
namespace Lean
/--
Dynamically loads a shared library so that its symbols can be used by
the Lean interpreter (e.g., for interpreting `@[extern]` declarations).
Equivalent ... |
0541502fa8f1ed2e1646911d2492843b013e586d | d642a6b1261b2cbe691e53561ac777b924751b63 | /src/data/multiset.lean | d7f50b84664f2253761e0f9194efe9a80df83b36 | [
"Apache-2.0"
] | permissive | cipher1024/mathlib | fee56b9954e969721715e45fea8bcb95f9dc03fe | d077887141000fefa5a264e30fa57520e9f03522 | refs/heads/master | 1,651,806,490,504 | 1,573,508,694,000 | 1,573,508,694,000 | 107,216,176 | 0 | 0 | Apache-2.0 | 1,647,363,136,000 | 1,508,213,014,000 | Lean | UTF-8 | Lean | false | false | 134,655 | lean | /-
Copyright (c) 2015 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Author: Mario Carneiro
Multisets.
-/
import logic.function order.boolean_algebra
data.equiv.basic data.list.basic data.list.perm data.list.sort data.quot data.string.basic
algebra.o... |
c3d54988c3b374cc3a10173d5d9b6b9fc97f7fa7 | 4727251e0cd73359b15b664c3170e5d754078599 | /src/category_theory/monoidal/internal/types.lean | 0830caa7188277c3078aafb7666582d4f8426e1e | [
"Apache-2.0"
] | permissive | Vierkantor/mathlib | 0ea59ac32a3a43c93c44d70f441c4ee810ccceca | 83bc3b9ce9b13910b57bda6b56222495ebd31c2f | refs/heads/master | 1,658,323,012,449 | 1,652,256,003,000 | 1,652,256,003,000 | 209,296,341 | 0 | 1 | Apache-2.0 | 1,568,807,655,000 | 1,568,807,655,000 | null | UTF-8 | Lean | false | false | 4,643 | lean | /-
Copyright (c) 2020 Scott Morrison. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Scott Morrison
-/
import algebra.category.Mon.basic
import category_theory.monoidal.CommMon_
import category_theory.monoidal.types
/-!
# `Mon_ (Type u) ≌ Mon.{u}`
The category of int... |
cc2bee7fda1504497bad92135e80ca54aefe5c9e | 9ad8d18fbe5f120c22b5e035bc240f711d2cbd7e | /src/commutative_algebra/ring_of_subsets.lean | 1d8941790949fd9baf5ca8ab0b2ac3391a709d1e | [] | no_license | agusakov/lean_lib | c0e9cc29fc7d2518004e224376adeb5e69b5cc1a | f88d162da2f990b87c4d34f5f46bbca2bbc5948e | refs/heads/master | 1,642,141,461,087 | 1,557,395,798,000 | 1,557,395,798,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 4,604 | lean | import algebra.ring data.equiv.basic
import commutative_algebra.bool_field
import tactic.pi_instances tactic.squeeze
universes u v
variables (U : Type u) (V : Type v)
def ring_of_bool_subsets := (U → bool)
instance : comm_ring (ring_of_bool_subsets U) :=
by { unfold ring_of_bool_subsets, pi_instance, }
lemma val_... |
d4f9f4e41ce01fc05d0b2308b1435d3975a7926a | 367134ba5a65885e863bdc4507601606690974c1 | /src/data/polynomial/ring_division.lean | e93c0e3807fefa49a5cf51a9bc6e88253c3bc860 | [
"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 | 26,917 | 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, Johan Commelin
-/
import data.polynomial.basic
import data.polynomial.div
import data.polynomial.algebra_map
import data.se... |
7490da3059eb19f6f02983ae5f37bfcfa02c5510 | fa02ed5a3c9c0adee3c26887a16855e7841c668b | /src/dynamics/periodic_pts.lean | 73a4c14faceb4925c09009755458095f3fa15e3c | [
"Apache-2.0"
] | permissive | jjgarzella/mathlib | 96a345378c4e0bf26cf604aed84f90329e4896a2 | 395d8716c3ad03747059d482090e2bb97db612c8 | refs/heads/master | 1,686,480,124,379 | 1,625,163,323,000 | 1,625,163,323,000 | 281,190,421 | 2 | 0 | Apache-2.0 | 1,595,268,170,000 | 1,595,268,169,000 | null | UTF-8 | Lean | false | false | 13,349 | lean | /-
Copyright (c) 2020 Yury G. Kudryashov. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Yury G. Kudryashov
-/
import dynamics.fixed_points.basic
import data.set.lattice
import data.pnat.basic
import data.int.gcd
/-!
# Periodic points
A point `x : α` is a periodic po... |
7f688687b42015dc232e3490f130b1e319cf98b2 | a45212b1526d532e6e83c44ddca6a05795113ddc | /src/analysis/normed_space/banach.lean | 7874fd69baf7492b5a3a7a80d215688b8bf930e9 | [
"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 | 10,515 | 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
Banach spaces, i.e., complete vector spaces.
This file contains the Banach open mapping theorem, i.e., the fact that a bijective
bounded linear map between Banac... |
b9957975dc677c0229508663c009dd435b437378 | 4727251e0cd73359b15b664c3170e5d754078599 | /src/data/matrix/char_p.lean | 49e8e4e21776e7563a71f695827617c33270e34f | [
"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 | 586 | lean | /-
Copyright (c) 2020 Aaron Anderson. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Aaron Anderson
-/
import data.matrix.basic
import algebra.char_p.basic
/-!
# Matrices in prime characteristic
-/
open matrix
variables {n : Type*} [fintype n] {R : Type*} [ring R]
in... |
ccd32f9641e9d7880201acc207c471370ce3c502 | 57c233acf9386e610d99ed20ef139c5f97504ba3 | /src/linear_algebra/basic.lean | 95f2bc09c9ef8eef01f7ee7ea8c6302e2e255a24 | [
"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 | 111,001 | 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, Kevin Buzzard, Yury Kudryashov, Frédéric Dupuis,
Heather Macbeth
-/
import algebra.big_operators.pi
import algebra.module.hom
import algebra.module.pr... |
75744e2d3fce67e1cb0c14e90c40a4e0d5c74b03 | 35b83be3126daae10419b573c55e1fed009d3ae8 | /_target/deps/mathlib/analysis/normed_space.lean | bc576393f93e7e1942d297a1a56218fefeb22e8e | [] | no_license | AHassan1024/Lean_Playground | ccb25b72029d199c0d23d002db2d32a9f2689ebc | a00b004c3a2eb9e3e863c361aa2b115260472414 | refs/heads/master | 1,586,221,905,125 | 1,544,951,310,000 | 1,544,951,310,000 | 157,934,290 | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 15,275 | lean | /-
Copyright (c) 2018 Patrick Massot. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Normed spaces.
Authors: Patrick Massot, Johannes Hölzl
-/
import algebra.pi_instances
import linear_algebra.prod_module
import analysis.nnreal
variables {α : Type*} {β : Type*} {γ : Type*} {ι... |
e6a11f92e58efee0c276f3947818e16623609195 | 3f7026ea8bef0825ca0339a275c03b911baef64d | /src/data/bool.lean | 49617cc12a3c5b7ff3487a215e10607a735306c2 | [
"Apache-2.0"
] | permissive | rspencer01/mathlib | b1e3afa5c121362ef0881012cc116513ab09f18c | c7d36292c6b9234dc40143c16288932ae38fdc12 | refs/heads/master | 1,595,010,346,708 | 1,567,511,503,000 | 1,567,511,503,000 | 206,071,681 | 0 | 0 | Apache-2.0 | 1,567,513,643,000 | 1,567,513,643,000 | null | UTF-8 | Lean | false | false | 4,374 | lean | /-
Copyright (c) 2014 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Author: Leonardo de Moura, Jeremy Avigad
-/
namespace bool
@[simp] theorem coe_sort_tt : coe_sort.{1 1} tt = true := eq_true_intro rfl
@[simp] theorem coe_sort_ff : coe_sort.{1 1} ff ... |
92ddbef04b22e13667a6a1b943e3b443c51a6408 | 8cae430f0a71442d02dbb1cbb14073b31048e4b0 | /archive/imo/imo2001_q2.lean | 346adc3db71fd6c542d8071889e157b8b88e2f5a | [
"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,834 | 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 analysis.special_functions.pow.real
/-!
# IMO 2001 Q2
> THIS FILE IS SYNCHRONIZED WITH MATHLIB4.
> Any changes to this file require a corresponding PR to mathlib4.
L... |
788db02e025a9bb087ca8dc60992a30bbee87508 | 9d2e3d5a2e2342a283affd97eead310c3b528a24 | /src/solutions/monday/metaprogramming.lean | 7728935945d72d2b366a14677377a43d57723d5b | [] | permissive | Vtec234/lftcm2020 | ad2610ab614beefe44acc5622bb4a7fff9a5ea46 | bbbd4c8162f8c2ef602300ab8fdeca231886375d | refs/heads/master | 1,668,808,098,623 | 1,594,989,081,000 | 1,594,990,079,000 | 280,423,039 | 0 | 0 | MIT | 1,594,990,209,000 | 1,594,990,209,000 | null | UTF-8 | Lean | false | false | 6,044 | lean | import tactic
open tactic
/-!
This file contains three tactic-programming exercises of increasing difficulty.
They were (hastily) written to follow the metaprogramming tutorial at
Lean for the Curious Mathematician 2020.
If you're looking for more (better) exercises, we strongly recommend the
exercises by Blanchet... |
71d8713adb52b1b6caf3022b512c308913028cb5 | 4d2583807a5ac6caaffd3d7a5f646d61ca85d532 | /src/data/polynomial/basic.lean | 575307b9ce97f38994dde72fba8978f53287f34b | [
"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 | 27,303 | 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 algebra.monoid_algebra.basic
/-!
# Theory of univariate polynomials
This file defines `polynomial R`, the type of... |
591bd972ceaddef309e6c5fbb78e6cb7335a807d | 94e33a31faa76775069b071adea97e86e218a8ee | /src/order/upper_lower.lean | 6b303c11ff5c9571bae0d70a260ef39fd1914d6f | [
"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 | 23,123 | lean | /-
Copyright (c) 2022 Yaël Dillies, Sara Rousta. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Yaël Dillies, Sara Rousta
-/
import data.set_like.basic
import order.hom.complete_lattice
/-!
# Up-sets and down-sets
This file defines upper and lower sets in an order.
... |
5c89abc5464b9bd79cac09a92ced0eace65e7df1 | cc060cf567f81c404a13ee79bf21f2e720fa6db0 | /lean/20170502-monadic-if.lean | 6d2315f3a0df1a1993abd5a4e4fcb3ba723d007d | [
"Apache-2.0"
] | permissive | semorrison/proof | cf0a8c6957153bdb206fd5d5a762a75958a82bca | 5ee398aa239a379a431190edbb6022b1a0aa2c70 | refs/heads/master | 1,610,414,502,842 | 1,518,696,851,000 | 1,518,696,851,000 | 78,375,937 | 2 | 1 | null | null | null | null | UTF-8 | Lean | false | false | 629 | lean |
private meta def if_then_else { α β : Type } ( i : tactic unit ) ( t : tactic β ) ( e : tactic β ) : tactic β :=
do r ← tactic.try_core i,
match r with
| some _ := t
| none := e
end
private meta def if_dthen_else { α β : Type } ( i : tactic α ) ( t : α → tactic β ) ( e : tactic β ) : tactic β :=
do r ← ... |
43f4fdb1e533d2356b8d97d02ea2a27a30531c46 | 94e33a31faa76775069b071adea97e86e218a8ee | /src/topology/metric_space/gromov_hausdorff.lean | 9033f3d784633be898fd59c48ddbfe8d9e57f183 | [
"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 | 55,286 | 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 set_theory.cardinal.basic
import topology.metric_space.closeds
import topology.metric_space.completion
import topology.metric_space.gromov_hausdorff_real... |
fcde6f0e09ecbc149ff2491c43f6546642b8ba95 | 624f6f2ae8b3b1adc5f8f67a365c51d5126be45a | /src/Init/Lean/Compiler/IR/Basic.lean | a85f56e7daac55768d3ecf998f9140bd9cfcdb72 | [
"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 | 25,720 | lean | /-
Copyright (c) 2019 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Leonardo de Moura
-/
prelude
import Init.Data.Array
import Init.Lean.Data.KVMap
import Init.Lean.Data.Name
import Init.Lean.Data.Format
import Init.Lean.Compiler.ExternAttr
/-
I... |
1f9cf189edd2e51262e60618d276291641b9e52b | d406927ab5617694ec9ea7001f101b7c9e3d9702 | /src/topology/instances/rat.lean | 7cf21dd48f17751ad01bb5516f735bf44607d7c1 | [
"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,108 | 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.metric_space.basic
import topology.algebra.order.archimedean
import topology.instances.int
import topology.instances.nat
import topolo... |
fc7dafd7ea35212eae326cc9f5d409f7670fb0fd | 75c54c8946bb4203e0aaf196f918424a17b0de99 | /old/realization.lean | 4bbe475d999105e61b433f28d27d1db80a7f733b | [
"Apache-2.0"
] | permissive | urkud/flypitch | 261e2a45f1038130178575406df8aea78255ba77 | 2250f5eda14b6ef9fc3e4e1f4a9ac4005634de5c | refs/heads/master | 1,653,266,469,246 | 1,577,819,679,000 | 1,577,819,679,000 | 259,862,235 | 1 | 0 | Apache-2.0 | 1,588,147,244,000 | 1,588,147,244,000 | null | UTF-8 | Lean | false | false | 23,279 | lean | /-
Copyright (c) 2019 The Flypitch Project. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Jesse Han, Floris van Doorn
-/
import .fol data.zmod.basic
open fol
-- local attribute [instance, priority 0] classical.prop_decidable
--local attribute [instance] classical.p... |
d1ff149b2784c4898bd2911650fca19ac99e0c77 | 2eab05920d6eeb06665e1a6df77b3157354316ad | /src/category_theory/endomorphism.lean | cf9ad16917d5a2610715a17a127e9bc2d3bb7822 | [
"Apache-2.0"
] | permissive | ayush1801/mathlib | 78949b9f789f488148142221606bf15c02b960d2 | ce164e28f262acbb3de6281b3b03660a9f744e3c | refs/heads/master | 1,692,886,907,941 | 1,635,270,866,000 | 1,635,270,866,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 3,921 | lean | /-
Copyright (c) 2019 Yury Kudryashov. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Yury Kudryashov, Scott Morrison, Simon Hudon
-/
import category_theory.groupoid
import data.equiv.mul_add
/-!
# Endomorphisms
Definition and basic properties of endomorphisms and au... |
7f8524a3391fb2d289da3542d8743ebceb7a5d3e | a9d0fb7b0e4f802bd3857b803e6c5c23d87fef91 | /tests/lean/defeq_simp_lemmas1.lean | ece08b3b86364542b67142f99a60c8394ca7b91a | [
"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 | 643 | lean | namespace foo
universe l
constants (A : Type.{l})
noncomputable definition q (x : A) := x
noncomputable definition h (x : A) : A := q x
noncomputable definition g (x y : A) := h y
noncomputable definition f (x y z : A) := g (g x y) z
noncomputable definition d (x y z w : A) := f (f x y z) (f y z w) (f x w z)
attribut... |
048ba4eb56098906882eed4f731029354c0fdd87 | 8b9f17008684d796c8022dab552e42f0cb6fb347 | /library/logic/quantifiers.lean | f9eeb3a19ec71afc8af4a2742875ff72e39fc4b9 | [
"Apache-2.0"
] | permissive | chubbymaggie/lean | 0d06ae25f9dd396306fb02190e89422ea94afd7b | d2c7b5c31928c98f545b16420d37842c43b4ae9a | refs/heads/master | 1,611,313,622,901 | 1,430,266,839,000 | 1,430,267,083,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 3,790 | lean | /-
Copyright (c) 2014 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Module: logic.quantifiers
Authors: Leonardo de Moura, Jeremy Avigad
Universal and existential quantifiers. See also init.logic.
-/
open inhabited nonempty
theorem not_forall_not_of_e... |
95d9da049b7a8bf69ceb7d3f5a6ba9eb695406b0 | 302c785c90d40ad3d6be43d33bc6a558354cc2cf | /src/geometry/euclidean/monge_point.lean | a1a0065595c86d685dae42d70c4fdf8ec762565b | [
"Apache-2.0"
] | permissive | ilitzroth/mathlib | ea647e67f1fdfd19a0f7bdc5504e8acec6180011 | 5254ef14e3465f6504306132fe3ba9cec9ffff16 | refs/heads/master | 1,680,086,661,182 | 1,617,715,647,000 | 1,617,715,647,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 38,569 | 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 geometry.euclidean.circumcenter
noncomputable theory
open_locale big_operators
open_locale classical
open_locale real
open_locale real_inner_product_space
/-!
# ... |
de33c699cd57a59e0811a35a7d52f041cf2203fc | cf39355caa609c0f33405126beee2739aa3cb77e | /tests/lean/destructive_let_issue.lean | 2116c14c8f6f75b9df3457f75a61e01e73d5012e | [
"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 | 833 | lean | /- Bug documented at https://github.com/leanprover-community/lean/issues/55 -/
-- set_option trace.elaborator_detail true
-- set_option trace.type_context.is_def_eq true
-- set_option trace.type_context.is_def_eq_detail true
example : bool :=
let x : false → Prop := λ x, match x with end in
let x : bool := match... |
5d281440c3047971748422e2aae4b2530d77efe9 | 8b9f17008684d796c8022dab552e42f0cb6fb347 | /tests/lean/run/tactic9.lean | ea0c237901fb77d414a41d276305ade7d4cf111a | [
"Apache-2.0"
] | permissive | chubbymaggie/lean | 0d06ae25f9dd396306fb02190e89422ea94afd7b | d2c7b5c31928c98f545b16420d37842c43b4ae9a | refs/heads/master | 1,611,313,622,901 | 1,430,266,839,000 | 1,430,267,083,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 174 | lean | import logic
open tactic
theorem tst {A B : Prop} (H1 : A) (H2 : B) : ((fun x : Prop, x) A) ∧ B ∧ A
:= by apply and.intro; beta; assumption; apply and.intro; assumption
|
4003c8ea5a27877b7c444835cafe03fdbc68fa82 | 74addaa0e41490cbaf2abd313a764c96df57b05d | /Mathlib/combinatorics/partition.lean | 496c745fb6d7c5b9be9d136bbfba1f99cfc52ed6 | [] | 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,102 | lean | /-
Copyright (c) 2020 Bhavik Mehta. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Bhavik Mehta
-/
import Mathlib.PrePort
import Mathlib.Lean3Lib.init.default
import Mathlib.combinatorics.composition
import Mathlib.data.nat.parity
import Mathlib.tactic.apply_fun
import... |
a056a7287311dac6ddc96306fd9da0e4d5604c61 | 6432ea7a083ff6ba21ea17af9ee47b9c371760f7 | /src/Lean/Compiler/LCNF/Simp.lean | 9679e29548bb87dd2ff07a0a5621d6ebf25b684c | [
"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,538 | 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.Compiler.LCNF.ReduceJpArity
import Lean.Compiler.LCNF.Renaming
import Lean.Compiler.LCNF.Simp.Basic
import Lean.Compiler.LCNF.Simp.FunDeclInfo
i... |
66128675d9122ed6b091a47e9c74e93dd55bebe7 | d406927ab5617694ec9ea7001f101b7c9e3d9702 | /src/geometry/manifold/instances/real.lean | 65f01d24a5f95667b3da4a9c3ea0c9a8363668bb | [
"Apache-2.0"
] | permissive | alreadydone/mathlib | dc0be621c6c8208c581f5170a8216c5ba6721927 | c982179ec21091d3e102d8a5d9f5fe06c8fafb73 | refs/heads/master | 1,685,523,275,196 | 1,670,184,141,000 | 1,670,184,141,000 | 287,574,545 | 0 | 0 | Apache-2.0 | 1,670,290,714,000 | 1,597,421,623,000 | Lean | UTF-8 | Lean | false | false | 13,775 | lean | /-
Copyright (c) 2019 Sébastien Gouëzel. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Sébastien Gouëzel
-/
import geometry.manifold.smooth_manifold_with_corners
import analysis.inner_product_space.pi_L2
/-!
# Constructing examples of manifolds over ℝ
We introduce t... |
a8fab982996fa9f13a807efc82b5da9362f95eed | 4d2583807a5ac6caaffd3d7a5f646d61ca85d532 | /src/testing/slim_check/sampleable.lean | 80495ac90cdc911496bc0c76c8d8448cc9b4fcbf | [
"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 | 31,384 | 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.lazy_list.basic
import data.tree
import data.int.basic
import control.bifunctor
import control.ulift
import tactic.linarith
import testing.slim_check.gen
/-!
#... |
f947bbb3b405cf7d69381db6ca25c5d4df8b6b27 | 206422fb9edabf63def0ed2aa3f489150fb09ccb | /src/measure_theory/content.lean | 0e8a2c269ba86c158db0dbce53ab9f42f8e7132d | [
"Apache-2.0"
] | permissive | hamdysalah1/mathlib | b915f86b2503feeae268de369f1b16932321f097 | 95454452f6b3569bf967d35aab8d852b1ddf8017 | refs/heads/master | 1,677,154,116,545 | 1,611,797,994,000 | 1,611,797,994,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 12,570 | lean | /-
Copyright (c) 2020 Floris van Doorn. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Floris van Doorn
-/
import measure_theory.measure_space
import measure_theory.borel_space
import topology.opens
import topology.compacts
/-!
# Contents
In this file we work with *c... |
f2bbfe7f09030852b3e8727daae51caccdc9dff1 | 853df553b1d6ca524e3f0a79aedd32dde5d27ec3 | /src/ring_theory/algebra_tower.lean | bddda52cab1e3b50b782c88fe85b32b5f9eea477 | [
"Apache-2.0"
] | permissive | DanielFabian/mathlib | efc3a50b5dde303c59eeb6353ef4c35a345d7112 | f520d07eba0c852e96fe26da71d85bf6d40fcc2a | refs/heads/master | 1,668,739,922,971 | 1,595,201,756,000 | 1,595,201,756,000 | 279,469,476 | 0 | 0 | null | 1,594,696,604,000 | 1,594,696,604,000 | null | UTF-8 | Lean | false | false | 6,740 | lean | /-
Copyright (c) 2020 Kenny Lau. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Kenny Lau
-/
import ring_theory.adjoin
universes u v w u₁
variables (R : Type u) (S : Type v) (A : Type w) (B : Type u₁)
/-- Typeclass for a tower of three algebras. -/
class is_algebra... |
860d857fd184579f8014934c1f14104dddc1d9fc | 9dc8cecdf3c4634764a18254e94d43da07142918 | /src/category_theory/limits/shapes/comm_sq.lean | a58826108945ccb7e5139f4d62ae54cf22fe2e24 | [
"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 | 22,227 | lean | /-
Copyright (c) 2022 Scott Morrison. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Scott Morrison, Joël Riou
-/
import category_theory.comm_sq
import category_theory.limits.preserves.shapes.pullbacks
import category_theory.limits.shapes.zero_morphisms
import category... |
0170e4e64bd0831e7c218a9ee513d97b5aec0607 | 6432ea7a083ff6ba21ea17af9ee47b9c371760f7 | /tests/lean/run/alias.lean | 1174ec65aa63b8e1a92aab66f61f332300b16bc0 | [
"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 | 317 | lean | def Set (α : Type) := α → Prop
def Set.union (s₁ s₂ : Set α) : Set α :=
fun a => s₁ a ∨ s₂ a
def FinSet (n : Nat) := Fin n → Prop
namespace FinSet
export Set (union)
end FinSet
example (x y : FinSet 10) : FinSet 10 :=
FinSet.union x y
example (x y : FinSet 10) : FinSet 10 :=
x.union y
|
5abbd09e23912478393d923ef2b8017126792a1c | 130c49f47783503e462c16b2eff31933442be6ff | /stage0/src/Lean/Elab/Binders.lean | 55b8bcedd219c6ce9cac993e9cbd99ba82276fc9 | [
"Apache-2.0"
] | permissive | Hazel-Brown/lean4 | 8aa5860e282435ffc30dcdfccd34006c59d1d39c | 79e6732fc6bbf5af831b76f310f9c488d44e7a16 | refs/heads/master | 1,689,218,208,951 | 1,629,736,869,000 | 1,629,736,896,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 26,502 | 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.Elab.Quotation.Precheck
import Lean.Elab.Term
import Lean.Elab.BindersUtil
import Lean.Parser.Term
namespace Lean.Elab.Term
open Meta
open Lean... |
9be9502b58415f7bc24b77292715472502983716 | 74addaa0e41490cbaf2abd313a764c96df57b05d | /Mathlib/tactic/reserved_notation.lean | d503fb85703d32a44c00fecdd0de99e618a9c6d3 | [] | 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 | 264 | lean | /-
Copyright (c) 2020 Bryan Gin-ge Chen. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Bryan Gin-ge Chen
-/
import Mathlib.PrePort
import Mathlib.Lean3Lib.init.default
import Mathlib.PostPort
namespace Mathlib
|
c1a818efa5c0b43f49a3f11ebaefefec27e19332 | 6432ea7a083ff6ba21ea17af9ee47b9c371760f7 | /tests/lean/etaStructIssue.lean | e495024470e1910ca1767a74e680a7ddc2d8a062 | [
"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 | 580 | lean | inductive E where
| mk : E → E
inductive F : E → Prop
| mk : F e → F (E.mk e)
theorem dec (x : F (E.mk e)) : F e ∧ True :=
match x with
| F.mk h => ⟨h, trivial⟩
def mkNat (e : E) (x : F e) : Nat :=
match e with
| E.mk e' =>
match dec x with
| ⟨h, _⟩ => mkNat e' h
theorem fail (e : E) (x₁ : F e) ... |
205012d8590e9561bb83ab6cfe28abfd20227399 | d1a52c3f208fa42c41df8278c3d280f075eb020c | /stage0/src/Lean/Meta/SizeOf.lean | ef5919b2215fea9e21fc1cca1657675e543e0b24 | [
"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 | 21,992 | lean | /-
Copyright (c) 2021 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Leonardo de Moura
-/
import Lean.Meta.AppBuilder
import Lean.Meta.Instances
namespace Lean.Meta
/-- Create `SizeOf` local instances for applicable parameters, and execute `k` ... |
1b33b07d68cf34721c86caed3242d2df854fb2f0 | 88fb7558b0636ec6b181f2a548ac11ad3919f8a5 | /tests/lean/run/super_tests.lean | af9d2f9d41564fc54c386ca46dafacfaac1aabcc | [
"Apache-2.0"
] | permissive | moritayasuaki/lean | 9f666c323cb6fa1f31ac597d777914aed41e3b7a | ae96ebf6ee953088c235ff7ae0e8c95066ba8001 | refs/heads/master | 1,611,135,440,814 | 1,493,852,869,000 | 1,493,852,869,000 | 90,269,903 | 0 | 0 | null | 1,493,906,291,000 | 1,493,906,291,000 | null | UTF-8 | Lean | false | false | 2,985 | lean | import tools.super
section
open super tactic
example (i : Type) (a b : i) (p : i → Prop) (H : a = b) (Hpa : p a) : true := by do
H ← get_local `H >>= clause.of_classical_proof,
Hpa ← get_local `Hpa >>= clause.of_classical_proof,
a ← get_local `a,
try_sup (λx y, ff) H Hpa 0 0 [0] tt ff ``super.sup_ltr >>= clause.valida... |
20781f45cb15421ba29d359db1f1077408bb5aa1 | d406927ab5617694ec9ea7001f101b7c9e3d9702 | /src/topology/sets/compacts.lean | 28b0a6f2f6df4e78d57f7e508c6996ee03380650 | [
"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 | 14,809 | lean | /-
Copyright (c) 2020 Floris van Doorn. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Floris van Doorn, Yaël Dillies
-/
import topology.sets.closeds
import topology.quasi_separated
/-!
# Compact sets
We define a few types of compact sets in a topological space.
## ... |
c9cd728b7eacba464fc5b87b26e19cc728db2d9f | 624f6f2ae8b3b1adc5f8f67a365c51d5126be45a | /stage0/src/Init/Data/AssocList.lean | 445da38140bff91493739ce20b4a7625f19bade6 | [
"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,685 | 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.Control.Id
universes u v w
/- List-like type to avoid extra level of indirection -/
inductive AssocList (α : Type u) (β : Type v)
| nil ... |
7a22bde6ffd14de1c73315856f44d470111106be | 8cae430f0a71442d02dbb1cbb14073b31048e4b0 | /src/algebra/module/bimodule.lean | 259311e22dd0c77e65547870349a8ba571f2dc99 | [
"Apache-2.0"
] | permissive | leanprover-community/mathlib | 56a2cadd17ac88caf4ece0a775932fa26327ba0e | 442a83d738cb208d3600056c489be16900ba701d | refs/heads/master | 1,693,584,102,358 | 1,693,471,902,000 | 1,693,471,902,000 | 97,922,418 | 1,595 | 352 | Apache-2.0 | 1,694,693,445,000 | 1,500,624,130,000 | Lean | UTF-8 | Lean | false | false | 5,439 | lean | /-
Copyright (c) 2022 Oliver Nash. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Oliver Nash
-/
import ring_theory.tensor_product
/-!
# Bimodules
> THIS FILE IS SYNCHRONIZED WITH MATHLIB4.
> Any changes to this file require a corresponding PR to mathlib4.
One frequ... |
df5ab694a604ab62a1446c8417abc738cdaf5f1f | 9dc8cecdf3c4634764a18254e94d43da07142918 | /src/topology/sheaves/functors.lean | 28a320de365952473ab0a6272a9b6e5df4a1a8c3 | [
"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 | 2,445 | lean | /-
Copyright (c) 2021 Junyan Xu. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Junyan Xu
-/
import topology.sheaves.sheaf_condition.pairwise_intersections
/-!
# functors between categories of sheaves
Show that the pushforward of a sheaf is a sheaf, and define
the p... |
771c7ae5c4a2c34fad42dbecd7c041aad47925ff | d406927ab5617694ec9ea7001f101b7c9e3d9702 | /src/geometry/euclidean/triangle.lean | c97326e4b4241f45ce468204913a4c7cc9b7d120 | [
"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 | 18,081 | lean | /-
Copyright (c) 2020 Joseph Myers. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Joseph Myers, Manuel Candales
-/
import geometry.euclidean.angle.oriented.affine
import geometry.euclidean.angle.unoriented.affine
import tactic.interval_cases
/-!
# Triangles
This fil... |
85ae4c67114f34869e2bdff0080ebf94d5a488ff | faaa51985b30efc1857652fa0d5ba10007544221 | /Lean/1. Lists/Ex1_2.lean | a760e16f3ca9dc74943c3ca8012c3acbde370b4d | [] | no_license | SvenWille/ExerciseSolutions_New | 0d63f7b9a4e3f32236c19852a2fba744dc64be21 | b8243e7a669846c64e2f5520dae88ff41265d233 | refs/heads/master | 1,629,114,358,797 | 1,511,126,985,000 | 1,511,126,985,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 4,102 | lean | open decidable
open list
def replace {a : Type}[decidable_eq a]: a → a → list a → list a
| _ _ [] := []
| old new (x::xs) := (if eq old x then new else x) :: replace old new xs
lemma helper1 {A : Type}[c: decidable_eq A] (old new : A) (xs ys : list A): replace old new (xs ++ ys) = replace old new xs ++ repla... |
efa0b31f16c0ded3a627d822295044be45b8ed5d | 8cae430f0a71442d02dbb1cbb14073b31048e4b0 | /src/data/list/nat_antidiagonal.lean | c33f04c354aba5028165b271d08bb2193dba8455 | [
"Apache-2.0"
] | permissive | leanprover-community/mathlib | 56a2cadd17ac88caf4ece0a775932fa26327ba0e | 442a83d738cb208d3600056c489be16900ba701d | refs/heads/master | 1,693,584,102,358 | 1,693,471,902,000 | 1,693,471,902,000 | 97,922,418 | 1,595 | 352 | Apache-2.0 | 1,694,693,445,000 | 1,500,624,130,000 | Lean | UTF-8 | Lean | false | false | 3,325 | lean | /-
Copyright (c) 2019 Johan Commelin. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Johan Commelin
-/
import data.list.nodup
import data.list.range
/-!
# Antidiagonals in ℕ × ℕ as lists
> THIS FILE IS SYNCHRONIZED WITH MATHLIB4.
> Any changes to this file require a ... |
c8fe2ee618c1999e98c6e35e07a54d74d5b258ec | 57aec6ee746bc7e3a3dd5e767e53bd95beb82f6d | /stage0/src/Lean/Meta/Tactic/Clear.lean | 64fc706db37908806449eb10a5ded32b6e9f7ab9 | [
"Apache-2.0"
] | permissive | collares/lean4 | 861a9269c4592bce49b71059e232ff0bfe4594cc | 52a4f535d853a2c7c7eea5fee8a4fa04c682c1ee | refs/heads/master | 1,691,419,031,324 | 1,618,678,138,000 | 1,618,678,138,000 | 358,989,750 | 0 | 0 | Apache-2.0 | 1,618,696,333,000 | 1,618,696,333,000 | null | UTF-8 | Lean | false | false | 1,625 | lean | /-
Copyright (c) 2020 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Leonardo de Moura
-/
import Lean.Meta.Tactic.Util
namespace Lean.Meta
def clear (mvarId : MVarId) (fvarId : FVarId) : MetaM MVarId :=
withMVarContext mvarId do
checkNotA... |
756757001c5796a8f7e921e120a54ce205a98e49 | a45212b1526d532e6e83c44ddca6a05795113ddc | /src/category_theory/limits/types.lean | c00d3b0150027da38b3682692c49b81ac39b7b08 | [
"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,761 | lean | -- Copyright (c) 2018 Scott Morrison. All rights reserved.
-- Released under Apache 2.0 license as described in the file LICENSE.
-- Authors: Scott Morrison, Reid Barton
import category_theory.limits.limits
universes v u -- declare the `v`'s first; see `category_theory.category` for an explanation
open category_theo... |
f8621e675a2db139a20b47da0bd5dc91904ded18 | d406927ab5617694ec9ea7001f101b7c9e3d9702 | /src/linear_algebra/free_module/finite/matrix.lean | 90590c37e3353ca4d883c61e66167eb9ebb15c50 | [
"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 | 3,160 | 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.finrank
import linear_algebra.free_module.finite.basic
import linear_algebra.matrix.to_lin
/-!
# Finite and free modules using matrices
We ... |
5fb4dc67f927965d33e3702de08d53950960ea2e | 9dc8cecdf3c4634764a18254e94d43da07142918 | /src/measure_theory/integral/vitali_caratheodory.lean | 6b3e57b92046604086b250ab766d130cdda78ccb | [
"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 | 29,659 | lean | /-
Copyright (c) 2021 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 measure_theory.measure.regular
import topology.semicontinuous
import measure_theory.integral.bochner
import topology.instances.ereal
/-!
# Vitali-Carat... |
377f131acf063a198b685a417fd558c7b60ff24e | 1abd1ed12aa68b375cdef28959f39531c6e95b84 | /src/analysis/seminorm.lean | 1609cd254ca01801e6a9268bd471ccdd04194e5e | [
"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 | 25,077 | lean | /-
Copyright (c) 2019 Jean Lo. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Jean Lo, Bhavik Mehta, Yaël Dillies
-/
import analysis.convex.basic
import analysis.normed_space.ordered
import data.real.pointwise
import data.set.intervals
/-!
# Seminorms and Local Convex... |
440078e38db21945ba495ad4d5c99e71575b6895 | a4673261e60b025e2c8c825dfa4ab9108246c32e | /stage0/src/Lean/Data/Name.lean | 7ffd9fbf270dabd5c20860afb9066a3343bf5d3d | [
"Apache-2.0"
] | permissive | jcommelin/lean4 | c02dec0cc32c4bccab009285475f265f17d73228 | 2909313475588cc20ac0436e55548a4502050d0a | refs/heads/master | 1,674,129,550,893 | 1,606,415,348,000 | 1,606,415,348,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 5,502 | lean | /-
Copyright (c) 2018 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Author: Leonardo de Moura
-/
import Std.Data.HashSet
import Std.Data.RBMap
import Std.Data.RBTree
namespace Lean
instance : Coe String Name := ⟨Name.mkSimple⟩
namespace Name
@[export ... |
6795b768ad054ea9989bcc123b9f0513ae8d5017 | 97f752b44fd85ec3f635078a2dd125ddae7a82b6 | /hott/hit/colimit.hlean | 9ab899dd69615191518f8615644b03fb945f8329 | [
"Apache-2.0"
] | permissive | tectronics/lean | ab977ba6be0fcd46047ddbb3c8e16e7c26710701 | f38af35e0616f89c6e9d7e3eb1d48e47ee666efe | refs/heads/master | 1,532,358,526,384 | 1,456,276,623,000 | 1,456,276,623,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 7,577 | hlean | /-
Copyright (c) 2015 Floris van Doorn. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Floris van Doorn
Definition of general colimits and sequential colimits.
-/
/- definition of a general colimit -/
open eq nat quotient sigma equiv equiv.ops is_trunc
namespace col... |
738d951624a1a7372e6d0f56e26dd72738d87a56 | d5ecf6c46a2f605470a4a7724909dc4b9e7350e0 | /analysis/measure_theory/outer_measure.lean | dd1e0f9235897284fefc431ab64d689defdc5282 | [
"Apache-2.0"
] | permissive | MonoidMusician/mathlib | 41f79df478987a636b735c338396813d2e8e44c4 | 72234ef1a050eea3a2197c23aeb345fc13c08ff3 | refs/heads/master | 1,583,672,205,771 | 1,522,892,143,000 | 1,522,892,143,000 | 128,144,032 | 0 | 0 | Apache-2.0 | 1,522,892,144,000 | 1,522,890,892,000 | Lean | UTF-8 | Lean | false | false | 17,994 | 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
Outer measures -- overapproximations of measures
-/
import data.set order.galois_connection algebra.big_operators
analysis.ennreal analysis.limits
analys... |
3f64729920395233a536bf26c7877d2ed3b7b000 | 957a80ea22c5abb4f4670b250d55534d9db99108 | /library/init/data/fin/ops.lean | d7e086eee0b54ccfc373e44bc1359c8269ceb5d1 | [
"Apache-2.0"
] | permissive | GaloisInc/lean | aa1e64d604051e602fcf4610061314b9a37ab8cd | f1ec117a24459b59c6ff9e56a1d09d9e9e60a6c0 | refs/heads/master | 1,592,202,909,807 | 1,504,624,387,000 | 1,504,624,387,000 | 75,319,626 | 2 | 1 | Apache-2.0 | 1,539,290,164,000 | 1,480,616,104,000 | C++ | UTF-8 | Lean | false | false | 3,854 | lean | /-
Copyright (c) 2017 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 init.data.fin.basic
namespace fin
open nat
variable {n : nat}
protected def succ : fin n → fin (succ n)
| ⟨a, h⟩ := ⟨nat.succ ... |
bf9a3cf3570ef75eabf4ac94672ae8c558f64176 | 957a80ea22c5abb4f4670b250d55534d9db99108 | /tests/lean/reflect_type_defeq.lean | d54c97ce1afd8b1f58eb0a32a7c355f0a3ed38a3 | [
"Apache-2.0"
] | permissive | GaloisInc/lean | aa1e64d604051e602fcf4610061314b9a37ab8cd | f1ec117a24459b59c6ff9e56a1d09d9e9e60a6c0 | refs/heads/master | 1,592,202,909,807 | 1,504,624,387,000 | 1,504,624,387,000 | 75,319,626 | 2 | 1 | Apache-2.0 | 1,539,290,164,000 | 1,480,616,104,000 | C++ | UTF-8 | Lean | false | false | 82 | lean | meta def foo (x : reflected (3 : ℕ)) : reflected ([10] : list ℕ) :=
x -- ERROR |
8687abda2a9b7f927a3f88def897d509d51c0074 | 4efff1f47634ff19e2f786deadd394270a59ecd2 | /src/group_theory/order_of_element.lean | 2f1b459829c875c73026bb3fc7cf3995102232a6 | [
"Apache-2.0"
] | permissive | agjftucker/mathlib | d634cd0d5256b6325e3c55bb7fb2403548371707 | 87fe50de17b00af533f72a102d0adefe4a2285e8 | refs/heads/master | 1,625,378,131,941 | 1,599,166,526,000 | 1,599,166,526,000 | 160,748,509 | 0 | 0 | Apache-2.0 | 1,544,141,789,000 | 1,544,141,789,000 | null | UTF-8 | Lean | false | false | 24,620 | 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
-/
import algebra.big_operators.order
import group_theory.coset
import data.nat.totient
import data.set.finite
open function
open_locale big_operators
variables {α : T... |
e1ad454580bce448bb70560b62fbce2709f56e66 | 5c7fe6c4a9d4079b5457ffa5f061797d42a1cd65 | /src/exercises/src_27_cartesian_product.lean | 4b10ef76be4ade9cdb83b32bf8e7ff4131ba1b69 | [] | no_license | gihanmarasingha/mth1001_tutorial | 8e0817feeb96e7c1bb3bac49b63e3c9a3a329061 | bb277eebd5013766e1418365b91416b406275130 | refs/heads/master | 1,675,008,746,310 | 1,607,993,443,000 | 1,607,993,443,000 | 321,511,270 | 3 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 1,644 | lean | import data.set
import logic.basic
open set
namespace mth1001
section cartesian_product
-- In this file, we'll deal with two types, `U` and `V`.
variables (U : Type*) (V : Type*)
variables (S T : set U) (A B : set V)
/-
`U × V` is the (Cartesian) product type of `U` and `V`. It is the type of all pairs `(u,v)`, w... |
2fe57eb179115a2f50bd88b385018c311fedd31f | 4d2583807a5ac6caaffd3d7a5f646d61ca85d532 | /src/field_theory/separable.lean | 486eadb1d8959b078f1f41704590e572382de28e | [
"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 | 29,166 | lean | /-
Copyright (c) 2020 Kenny Lau. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Kenny Lau
-/
import algebra.polynomial.big_operators
import field_theory.minpoly
import field_theory.splitting_field
import field_theory.tower
import algebra.squarefree
/-!
# Separable p... |
7fd8fda447deb6e4ae255214fccea9269fd7e4c3 | 9dc8cecdf3c4634764a18254e94d43da07142918 | /src/linear_algebra/matrix/transvection.lean | a50b2eb4ab470d621aea842889fc46e57d260b51 | [
"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 | 32,952 | lean | /-
Copyright (c) 2021 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 data.matrix.basis
import data.matrix.dmatrix
import linear_algebra.matrix.determinant
import linear_algebra.matrix.trace
import linear_algebra.matrix.rei... |
8661ad0ba7c7f061d2aeb731c9cd511b6df1c9a6 | ea4aee6b11f86433e69bb5e50d0259e056d0ae61 | /src/tidy/automatic_induction.lean | 9cde037eb4206787b0d32e4e204936440f5cb839 | [] | no_license | timjb/lean-tidy | e18feff0b7f0aad08c614fb4d34aaf527bf21e20 | e767e259bf76c69edfd4ab8af1b76e6f1ed67f48 | refs/heads/master | 1,624,861,693,182 | 1,504,411,006,000 | 1,504,411,006,000 | 103,740,824 | 0 | 0 | null | 1,505,553,968,000 | 1,505,553,968,000 | null | UTF-8 | Lean | false | false | 1,284 | lean | -- Copyright (c) 2017 Scott Morrison. All rights reserved.
-- Released under Apache 2.0 license as described in the file LICENSE.
-- Authors: Scott Morrison
import .at_least_one
open tactic
meta def new_names ( e : expr ) : tactic (list name) :=
do
n1 ← get_unused_name e.local_pp_name (some 1),
n2 ← get... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.