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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
f9b60c952934520a875066770aba13ecf9d8bcef | a9d0fb7b0e4f802bd3857b803e6c5c23d87fef91 | /tests/lean/run/xrewrite1.lean | d2b29729a2c9e656b60ccc1071425b89cfa83096 | [
"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 | 305 | lean | open nat tactic
constant zero_add (a : nat) : 0 + a = a
meta_definition xrewrite (th_name : name) : tactic unit :=
do th ← mk_const th_name,
rewrite_core semireducible tt occurrences.all ff th,
try reflexivity
example (a : nat) : (0 + a) + (0 + a) + (0 + a) = a + a + a :=
by xrewrite `zero_add
|
dc20c009f77533c351333242cfdcd47fc8740908 | bbecf0f1968d1fba4124103e4f6b55251d08e9c4 | /src/data/nat/choose/basic.lean | b91233bec61f9689e235eb24270645812877ab8b | [
"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 | 11,478 | lean | /-
Copyright (c) 2018 Chris Hughes. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Chris Hughes, Bhavik Mehta
-/
import data.nat.factorial.basic
/-!
# Binomial coefficients
This file defines binomial coefficients and proves simple lemmas (i.e. those not
requiring mor... |
9eebb4663b4efed3fafc4461d09b781d6f6b3264 | 2bafba05c98c1107866b39609d15e849a4ca2bb8 | /src/week_3/Part_A_limits_appendix.lean | 8cf7858790a5d22e05aae378618f05b73ec416f3 | [
"Apache-2.0"
] | permissive | ImperialCollegeLondon/formalising-mathematics | b54c83c94b5c315024ff09997fcd6b303892a749 | 7cf1d51c27e2038d2804561d63c74711924044a1 | refs/heads/master | 1,651,267,046,302 | 1,638,888,459,000 | 1,638,888,459,000 | 331,592,375 | 284 | 24 | Apache-2.0 | 1,669,593,705,000 | 1,611,224,849,000 | Lean | UTF-8 | Lean | false | false | 730 | lean | import week_3.Part_A_limits
import topology.instances.real
open filter
open_locale topological_space
namespace xena
-- `is_limit` is equivalent to a `filter.tendsto`
lemma is_limit_iff_tendsto (a : ℕ → ℝ) (l : ℝ) :
is_limit a l ↔ tendsto a at_top (𝓝 l) :=
begin
rw metric.tendsto_at_top,
congr',
end
-- this... |
24c0f492c293ccac4ee77bf42921e970a0f20fed | 0e5b455a864d0ab0ec4d49ebcc1ac80d439a0b43 | /src/data/real/pi.lean | 2c10acae4a79c2410f405bb851bdd2ac2c1e4a2e | [
"Apache-2.0"
] | permissive | faabian/mathlib | 03077338f85c3e26c3638ac0a01e98044f54acc3 | 7eac17850bb71cac8e3a06ae2a84c900538d4b3f | refs/heads/master | 1,588,591,191,798 | 1,554,216,283,000 | 1,554,216,283,000 | 179,105,965 | 1 | 0 | null | 1,554,218,486,000 | 1,554,218,486,000 | null | UTF-8 | Lean | false | false | 10,737 | lean | /-
Copyright (c) 2019 Floris van Doorn. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Floris van Doorn
-/
import analysis.exponential
namespace real
variable (x : ℝ)
/-- the series `sqrt_two_add_series x n` is `sqrt(2 + sqrt(2 + ... ))` with `n` square roots,
sta... |
d1508c77d2c8e8feba5f7b50ad26b1aee4ae921c | 0845ae2ca02071debcfd4ac24be871236c01784f | /tests/compiler/closure_bug1.lean | 92482d6f310ac6fe1da3f9fc0e067bafb63926f2 | [
"Apache-2.0"
] | permissive | GaloisInc/lean4 | 74c267eb0e900bfaa23df8de86039483ecbd60b7 | 228ddd5fdcd98dd4e9c009f425284e86917938aa | refs/heads/master | 1,643,131,356,301 | 1,562,715,572,000 | 1,562,715,572,000 | 192,390,898 | 0 | 0 | null | 1,560,792,750,000 | 1,560,792,749,000 | null | UTF-8 | Lean | false | false | 545 | lean | def f (x : Nat) : Nat × (Nat → String) :=
let x1 := x + 1;
let x2 := x + 2;
let x3 := x + 3;
let x4 := x + 4;
let x5 := x + 5;
let x6 := x + 6;
let x7 := x + 7;
let x8 := x + 8;
let x9 := x + 9;
let x10 := x + 10;
let x11 := x + 11;
let x12 := x + 12;
let x13 := x + 13;
let x14 := x + 14;
let x15 := x + 15;
let x16 := ... |
54e4732baed106bae13072829fdedf48f2226681 | 8cae430f0a71442d02dbb1cbb14073b31048e4b0 | /src/analysis/calculus/deriv/pow.lean | 8a35ec8a4994058c70173f6a0a68a79c17bf812b | [
"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,510 | 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 analysis.calculus.deriv.mul
import analysis.calculus.deriv.comp
/-!
# Derivative of `(f x) ^ n`, `n : ℕ`
> THIS FILE IS SYNCHRONIZED WITH MATHLIB4.
> A... |
012300dfdd48a8ae78245b1dad4e4f09e0065c77 | 35677d2df3f081738fa6b08138e03ee36bc33cad | /src/set_theory/cardinal.lean | daa7593ae78a57fc3a211f1afc7e9d3d5a186ebe | [
"Apache-2.0"
] | permissive | gebner/mathlib | eab0150cc4f79ec45d2016a8c21750244a2e7ff0 | cc6a6edc397c55118df62831e23bfbd6e6c6b4ab | refs/heads/master | 1,625,574,853,976 | 1,586,712,827,000 | 1,586,712,827,000 | 99,101,412 | 1 | 0 | Apache-2.0 | 1,586,716,389,000 | 1,501,667,958,000 | Lean | UTF-8 | Lean | false | false | 45,214 | 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, Mario Carneiro
-/
import data.set.countable data.quot logic.function set_theory.schroeder_bernstein
import data.fintype.card
/-!
# Cardinal Numbers
We define cardinal... |
9e863289bfe1943e31c40c16dcbbfe537d2df5db | 4fa161becb8ce7378a709f5992a594764699e268 | /src/algebra/category/Group/biproducts.lean | fcf12017f61be33338dabf37c0e4af025b9358b9 | [
"Apache-2.0"
] | permissive | laughinggas/mathlib | e4aa4565ae34e46e834434284cb26bd9d67bc373 | 86dcd5cda7a5017c8b3c8876c89a510a19d49aad | refs/heads/master | 1,669,496,232,688 | 1,592,831,995,000 | 1,592,831,995,000 | 274,155,979 | 0 | 0 | Apache-2.0 | 1,592,835,190,000 | 1,592,835,189,000 | null | UTF-8 | Lean | false | false | 4,959 | lean | /-
Copyright (c) 2020 Scott Morrison. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Scott Morrison
-/
import algebra.category.Group.basic
import algebra.category.Group.preadditive
import category_theory.limits.shapes.biproducts
import algebra.pi_instances
/-!
# The c... |
55ac417fd6c33280108d43ec312dfa255e04d88e | 8e2026ac8a0660b5a490dfb895599fb445bb77a0 | /library/init/data/string/basic.lean | b52fd151ad46945dafff62277e65675eecedb989 | [
"Apache-2.0"
] | permissive | pcmoritz/lean | 6a8575115a724af933678d829b4f791a0cb55beb | 35eba0107e4cc8a52778259bb5392300267bfc29 | refs/heads/master | 1,607,896,326,092 | 1,490,752,175,000 | 1,490,752,175,000 | 86,612,290 | 0 | 0 | null | 1,490,809,641,000 | 1,490,809,641,000 | null | UTF-8 | Lean | false | false | 1,447 | lean | /-
Copyright (c) 2016 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Author: Leonardo de Moura
-/
prelude
import init.data.list.basic
import init.data.char.basic
def string := list char
namespace string
@[pattern] def empty : string := list.nil
instanc... |
14a65917150c4d5f41f1d58856509cb7b010b7ab | d1a52c3f208fa42c41df8278c3d280f075eb020c | /tests/lean/run/monadCache.lean | 056fa9adb90ddd3ea19b838e379c810da3381bae | [
"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 | 1,340 | lean | import Lean
open Lean
partial def mkTower : Nat → Expr
| 0 => mkConst `a
| n+1 => mkApp2 (mkConst `f) (mkTower n) (mkTower n)
partial def depth : Expr → MonadCacheT Expr Nat CoreM Nat
| e =>
checkCache e fun _ =>
match e with
| Expr.const c [] _ => pure 1
| Expr.app f a _ => do pure $ Nat.max (← d... |
4ec82d3edbe5d64b30d6c578d9d2c1818a0dfeac | 5e3548e65f2c037cb94cd5524c90c623fbd6d46a | /src_icannos_totilas/applications_lineaires/cpge_applin_8_b.lean | 96f1fa1544007ad1f615d646f9190f686e8da51e | [] | no_license | ahayat16/lean_exos | d4f08c30adb601a06511a71b5ffb4d22d12ef77f | 682f2552d5b04a8c8eb9e4ab15f875a91b03845c | refs/heads/main | 1,693,101,073,585 | 1,636,479,336,000 | 1,636,479,336,000 | 415,000,441 | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 275 | lean | import algebra.module.linear_map
import linear_algebra.basic
import data.real.basic
theorem cpge_applin_8_b
(R : Type*) (E : Type*) [set E] [field R]
[add_comm_group E] [module R E]
(u : linear_map R E E) (F : submodule R E):
u '' (u ⁻¹' F) = F ∩ (u '' ⊤)
:= sorry |
e988a0bdaa7e75e5514b9a24ef7f7f9cd9235374 | 6dc0c8ce7a76229dd81e73ed4474f15f88a9e294 | /stage0/src/Lean/Elab/Log.lean | 2cad5b6fe80e3046f08e9dcf01270e040886de18 | [
"Apache-2.0"
] | permissive | williamdemeo/lean4 | 72161c58fe65c3ad955d6a3050bb7d37c04c0d54 | 6d00fcf1d6d873e195f9220c668ef9c58e9c4a35 | refs/heads/master | 1,678,305,356,877 | 1,614,708,995,000 | 1,614,708,995,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 3,086 | 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.Util
import Lean.Util.Sorry
import Lean.Elab.Exception
namespace Lean.Elab
class MonadFileMap (m : Type → Type) where
getFileMap : m F... |
982061288b3d7b200492f55e3a9ffa11165be19b | 367134ba5a65885e863bdc4507601606690974c1 | /src/data/buffer/parser/basic.lean | 1244578b9b37c962e8313e2d6ee6a7098709a1bb | [
"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 | 29,205 | lean | /-
Copyright (c) 2020 Yakov Pechersky. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Yakov Pechersky
-/
import data.string.basic
/-!
# Parsers
`parser α` is the type that describes a computation that can ingest a `char_buffer`
and output, if successful, a term of ty... |
9583929b971877cb14c4eefeb1ec50e4481113a9 | 8e2026ac8a0660b5a490dfb895599fb445bb77a0 | /library/tools/smt2/default.lean | dbd0133aa58c2c9a877be0ef3439a21f6627aafb | [
"Apache-2.0"
] | permissive | pcmoritz/lean | 6a8575115a724af933678d829b4f791a0cb55beb | 35eba0107e4cc8a52778259bb5392300267bfc29 | refs/heads/master | 1,607,896,326,092 | 1,490,752,175,000 | 1,490,752,175,000 | 86,612,290 | 0 | 0 | null | 1,490,809,641,000 | 1,490,809,641,000 | null | UTF-8 | Lean | false | false | 918 | lean | import system.io
import system.process
import .solvers.z3
import .syntax
import .builder
meta def smt2 [io.interface] (build : smt2.builder unit) : io string :=
do z3 ← z3_instance.start,
io.put_str (to_string $ to_fmt build),
res ← z3.raw (to_string $ to_fmt build),
io.put_str res,
return res
open tactic... |
eb46f0b70f66ee5628a67bbb0dcf48e7b60550f2 | 947b78d97130d56365ae2ec264df196ce769371a | /stage0/src/Lean/Parser/Extension.lean | 1010645198b9fad36c8d60b7d8f1d12fedc44680 | [
"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 | 24,697 | lean | /-
Copyright (c) 2020 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Leonardo de Moura, Sebastian Ullrich
-/
/-! Extensible parsing via attributes -/
import Lean.Parser.Basic
import Lean.KeyedDeclsAttribute
namespace Lean
namespace Parser
def... |
5a2f8636ebb85dcb682c4b0cfd918a7765db7510 | 4d2583807a5ac6caaffd3d7a5f646d61ca85d532 | /src/data/finsupp/to_dfinsupp.lean | 4949a538876c2e14b5c2eea849fd9be617e0a2ee | [
"Apache-2.0"
] | permissive | AntoineChambert-Loir/mathlib | 64aabb896129885f12296a799818061bc90da1ff | 07be904260ab6e36a5769680b6012f03a4727134 | refs/heads/master | 1,693,187,631,771 | 1,636,719,886,000 | 1,636,719,886,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 10,849 | 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 data.dfinsupp
import data.equiv.module
import data.finsupp.basic
/-!
# Conversion between `finsupp` and homogenous `dfinsupp`
This module provides conversions betw... |
599624184c2c711790ac96b24b53a4d5a52f5fe7 | 4727251e0cd73359b15b664c3170e5d754078599 | /src/algebra/order/nonneg.lean | 0d8d5d15c626730c939039918e2aee82d9486c1f | [
"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,317 | lean | /-
Copyright (c) 2021 Floris van Doorn. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Floris van Doorn
-/
import algebra.order.archimedean
import algebra.order.floor
import algebra.order.sub
import algebra.order.with_zero
import order.lattice_intervals
import order.co... |
7d527b957554a3f88eecb16c02dccaf980117e6f | bb31430994044506fa42fd667e2d556327e18dfe | /src/number_theory/legendre_symbol/jacobi_symbol.lean | d4ada59e8e139b678dde97f07b979372f72d7deb | [
"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 | 17,517 | lean | /-
Copyright (c) 2022 Michael Stoll. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Michael Stoll
-/
import number_theory.legendre_symbol.quadratic_reciprocity
/-!
# The Jacobi Symbol
We define the Jacobi symbol and prove its main properties.
## Main definitions
We... |
1e528c134b4807d357efd1b6e0fcc10597834009 | d0f9af2b0ace5ce352570d61b09019c8ef4a3b96 | /exam_2/predicate_logic/propositions_as_types.lean | b23e882dfc6f1a39cde10402619d3c06a33ebe3e | [] | no_license | jngo13/Discrete-Mathematics | 8671540ef2da7c75915d32332dd20c02f001474e | bf674a866e61f60e6e6d128df85fa73819091787 | refs/heads/master | 1,675,615,657,924 | 1,609,142,011,000 | 1,609,142,011,000 | 267,190,341 | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 3,792 | lean | -- represent propositions as (are) types
-- proofs are values of these types
-- thus proof checking turns into type checking
-- Computational domain
#check nat
#check 1
#check string
#check "hello"
#check bool
#check tt
-- "computational" types of type, Type (aka Sort 1)
-- Logical domain
#check true
#print true
... |
2e4dcfaf1c049b3dcfa3d1a7bcf73ae270e2f888 | 297c4ceafbbaed2a59b6215504d09e6bf201a2ee | /kruskal_final/higman.lean | 4f6ee7d316c1f723f4e1cd578dccd2bd7c4a823d | [] | no_license | minchaowu/Kruskal.lean3 | 559c91b82033ce44ea61593adcec9cfff725c88d | a14516f47b21e636e9df914fc6ebe64cbe5cd38d | refs/heads/master | 1,611,010,001,429 | 1,497,935,421,000 | 1,497,935,421,000 | 82,000,982 | 1 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 21,204 | lean | import .lemmas .dickson
open classical nat function prod set subtype list
noncomputable theory
theorem sub_gt_of_gt_ge {a b c : ℕ} (H1 : a > b) (H2 : b ≥ c) : a - c > b - c :=
have c ≤ a, from le_of_lt (lt_of_le_of_lt H2 H1),
have eq₁ : a - c + c = a, from nat.sub_add_cancel this,
have eq₂ : b - c + c = b, from nat.s... |
c6adad98b48df43704cd00287b9303f40675d090 | 9dd3f3912f7321eb58ee9aa8f21778ad6221f87c | /tests/lean/run/tick_id.lean | 4282ff86bd1099ce4bed84e50354f18b0a7466a1 | [
"Apache-2.0"
] | permissive | bre7k30/lean | de893411bcfa7b3c5572e61b9e1c52951b310aa4 | 5a924699d076dab1bd5af23a8f910b433e598d7a | refs/heads/master | 1,610,900,145,817 | 1,488,006,845,000 | 1,488,006,845,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 235 | lean | def id₁ {'a : Type} (x : 'a) : 'a := x
def id₂ {α : Type} (a : α) : α := a
def id₃ {β : Type} (b : β) : β := b
check λ (α β : Type) (f : α → β) (a : α), f a
check λ ('a 'b : Type) (f : 'a → 'b) (a : 'a), f a
|
6e8bc5198bf31192198314d5eed398a3cfbb1b6c | 302c785c90d40ad3d6be43d33bc6a558354cc2cf | /archive/imo/imo1988_q6.lean | f705b8969813c0c751fe95286d40eb14fa8ff51c | [
"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 | 13,858 | 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.nat.prime
import data.rat.basic
import order.well_founded
import tactic.linarith
import tactic.omega
/-!
# IMO 1988 Q6 and constant descent Vieta jumpin... |
86b61a3fc285c9373bd424e1a20038505fa60a3c | 4727251e0cd73359b15b664c3170e5d754078599 | /src/data/int/basic.lean | b0889489c4f38fd308d356037c6309180d411605 | [
"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 | 62,539 | lean | /-
Copyright (c) 2016 Jeremy Avigad. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Jeremy Avigad
-/
import data.nat.pow
import order.min_max
/-!
# Basic operations on the integers
This file contains:
* instances on `ℤ`. The stronger one is `int.linear_ordered_comm_r... |
54e1861a5492ed5904985d3575d91b989062cca8 | 6432ea7a083ff6ba21ea17af9ee47b9c371760f7 | /src/Init/Data/FloatArray/Basic.lean | 0c47834383c19dbfdc17ad963777ac4fa4293b19 | [
"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,578 | lean | /-
Copyright (c) 2020 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Author: Leonardo de Moura
-/
prelude
import Init.Data.Array.Basic
import Init.Data.Float
import Init.Data.Option.Basic
universe u
structure FloatArray where
data : Array Float
attrib... |
c50ce4083f67d7fcaa56e2982a4ee4aa71d1002d | 2eab05920d6eeb06665e1a6df77b3157354316ad | /src/category_theory/is_connected.lean | cb0d41a403b53c09fe9e47fed810ad2c392371ef | [
"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 | 14,330 | 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 data.list.chain
import category_theory.punit
import category_theory.groupoid
/-!
# Connected category
Define a connected category as a _nonempty_ category for wh... |
54675a59d15dbda7b3c1c2c7fffe75cf0d8f06a8 | 1abd1ed12aa68b375cdef28959f39531c6e95b84 | /src/measure_theory/measure/vector_measure.lean | 0631291f3d5d544d1bdad058fe9ec12e6fbe9703 | [
"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 | 47,535 | lean | /-
Copyright (c) 2021 Kexing Ying. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Kexing Ying
-/
import measure_theory.integral.lebesgue
/-!
# Vector valued measures
This file defines vector valued measures, which are σ-additive functions from a set to a add monoid
... |
903eca3d389db61ce904b679035e55b0720cba06 | 8cae430f0a71442d02dbb1cbb14073b31048e4b0 | /src/algebra/monoid_algebra/no_zero_divisors.lean | 58493153c3cc541888501392492b4f41310e3b9f | [
"Apache-2.0"
] | permissive | leanprover-community/mathlib | 56a2cadd17ac88caf4ece0a775932fa26327ba0e | 442a83d738cb208d3600056c489be16900ba701d | refs/heads/master | 1,693,584,102,358 | 1,693,471,902,000 | 1,693,471,902,000 | 97,922,418 | 1,595 | 352 | Apache-2.0 | 1,694,693,445,000 | 1,500,624,130,000 | Lean | UTF-8 | Lean | false | false | 7,855 | lean | /-
Copyright (c) 2022 Damiano Testa. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Damiano Testa
-/
import algebra.monoid_algebra.support
/-!
# Variations on non-zero divisors in `add_monoid_algebra`s
> THIS FILE IS SYNCHRONIZED WITH MATHLIB4.
> Any changes to this ... |
5f64bcdd993396229f0773023cf84301d3022100 | 3446e92e64a5de7ed1f2109cfb024f83cd904c34 | /src/game/world1/level2.lean | 684f8d166578cacd74cf56320a6aa62a68bc667f | [] | 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 | 2,395 | lean | import mynat.definition -- Imports the natural numbers. -- hide
namespace mynat -- hide
/-
# World 1: Tutorial world
## level 2: the `exact` tactic.
Delete the `sorry` below and let's look at the box
on the top right. It should look like this:
```
a b : mynat,
h : a = b
⊢ a = b
```
So here `a` and `b` are natura... |
67e4e605283185c72e6bb66445d1d021beffaa57 | d406927ab5617694ec9ea7001f101b7c9e3d9702 | /src/data/fin/tuple/bubble_sort_induction.lean | b8e7a049b567c5ea9261ffbf2c1c00c4f5b956a3 | [
"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,425 | lean | /-
Copyright (c) 2022 Michael Stoll. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Michael Stoll
-/
import data.fin.tuple.sort
import data.fintype.perm
import order.well_founded
/-!
# "Bubble sort" induction
We implement the following induction principle `tuple.bubb... |
e1b15ed57514b0637264b4d8a0aa25d29d8ff106 | 9be442d9ec2fcf442516ed6e9e1660aa9071b7bd | /src/Lean/Meta/Tactic/Simp/Rewrite.lean | 9a2bba2be4384eea6985470b180daa8a893430ab | [
"Apache-2.0",
"LLVM-exception",
"NCSA",
"LGPL-3.0-only",
"LicenseRef-scancode-inner-net-2.0",
"BSD-3-Clause",
"LGPL-2.0-or-later",
"Spencer-94",
"LGPL-2.1-or-later",
"HPND",
"LicenseRef-scancode-pcre",
"ISC",
"LGPL-2.1-only",
"LicenseRef-scancode-other-permissive",
"SunPro",
"CMU-Mach"... | permissive | EdAyers/lean4 | 57ac632d6b0789cb91fab2170e8c9e40441221bd | 37ba0df5841bde51dbc2329da81ac23d4f6a4de4 | refs/heads/master | 1,676,463,245,298 | 1,660,619,433,000 | 1,660,619,433,000 | 183,433,437 | 1 | 0 | Apache-2.0 | 1,657,612,672,000 | 1,556,196,574,000 | Lean | UTF-8 | Lean | false | false | 10,359 | 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.ACLt
import Lean.Meta.Match.MatchEqsExt
import Lean.Meta.AppBuilder
import Lean.Meta.SynthInstance
import Lean.Meta.Tactic.Simp.Types
impor... |
ee1c73c772fa8319a03eab9843e966dac9e95592 | 8cae430f0a71442d02dbb1cbb14073b31048e4b0 | /src/category_theory/sites/grothendieck.lean | 18277bfba4c8e3d0c8d1e21a9bf71bedb0ab2d21 | [
"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 | 22,722 | lean | /-
Copyright (c) 2020 Bhavik Mehta, E. W. Ayers. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Bhavik Mehta, E. W. Ayers
-/
import category_theory.sites.sieves
import category_theory.limits.shapes.pullbacks
import category_theory.limits.shapes.multiequalizer
import c... |
03f936940c8f07cfe476354bfb6a0385c25a2e0e | 74addaa0e41490cbaf2abd313a764c96df57b05d | /Mathlib/control/functor/multivariate_auto.lean | e2e6c5a3ce5b0fadc65d941d1aa334c2b141cc52 | [] | no_license | AurelienSaue/Mathlib4_auto | f538cfd0980f65a6361eadea39e6fc639e9dae14 | 590df64109b08190abe22358fabc3eae000943f2 | refs/heads/master | 1,683,906,849,776 | 1,622,564,669,000 | 1,622,564,669,000 | 371,723,747 | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 5,764 | lean | /-
Copyright (c) 2018 Jeremy Avigad. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Author: Jeremy Avigad, Mario Carneiro, Simon Hudon
-/
import Mathlib.PrePort
import Mathlib.Lean3Lib.init.default
import Mathlib.data.fin2
import Mathlib.data.typevec
import Mathlib.logic.functi... |
3c09575044fad31279c92fe0ed46c200b37bce00 | b7f22e51856f4989b970961f794f1c435f9b8f78 | /tests/lean/hott/599.hlean | 316c6e38b0b2248faec09e5b5cc1a05f0155dcea | [
"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 | 141 | hlean | open unit pointed
definition pointed_unit [instance] [constructor] : pointed unit :=
mk star
example : point unit = point unit := by esimp
|
1b0877d6095e748612aea69a26b398431fdcd8fa | e0b0b1648286e442507eb62344760d5cd8d13f2d | /src/Lean/Meta/WHNF.lean | 8dc78d2bc4c60fb30f325e92eccf007110aae8fc | [
"Apache-2.0"
] | permissive | MULXCODE/lean4 | 743ed389e05e26e09c6a11d24607ad5a697db39b | 4675817a9e89824eca37192364cd47a4027c6437 | refs/heads/master | 1,682,231,879,857 | 1,620,423,501,000 | 1,620,423,501,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 23,366 | 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.ToExpr
import Lean.AuxRecursor
import Lean.ProjFns
import Lean.Meta.Basic
import Lean.Meta.LevelDefEq
import Lean.Meta.GetConst
import Lean.Meta... |
ed17cb13aa176fe11ed12a4bd4d3b642b7a56fae | 9dc8cecdf3c4634764a18254e94d43da07142918 | /src/algebra/order/to_interval_mod.lean | 064c523c4745d66593c9cbc4e63157aa99505cee | [
"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 | 17,455 | lean | /-
Copyright (c) 2022 Joseph Myers. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Joseph Myers
-/
import algebra.periodic
/-!
# Reducing to an interval modulo its length
This file defines operations that reduce a number (in an `archimedean`
`linear_ordered_add_comm_... |
baf533da8d2c242aa5661030e583f0a775085787 | 35b83be3126daae10419b573c55e1fed009d3ae8 | /_target/deps/mathlib/analysis/topology/uniform_space.lean | ab718674b41e77916b6a095231ba2ec54a625c85 | [] | 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 | 70,923 | 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... |
e5f08785c428e82d0f0b7ac04c1a1cdf07ec0794 | 8f209eb34c0c4b9b6be5e518ebfc767a38bed79c | /code/src/internal/U.lean | a8bc64137d92ca71aa5213f2d45c90668edae463 | [] | no_license | hediet/masters-thesis | 13e3bcacb6227f25f7ec4691fb78cb0363f2dfb5 | dc40c14cc4ed073673615412f36b4e386ee7aac9 | refs/heads/master | 1,680,591,056,302 | 1,617,710,887,000 | 1,617,710,887,000 | 311,762,038 | 4 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 2,790 | lean | import tactic
import ..definitions
import .internal_definitions
import .Gdt.eval
import .phi.eval
import .phi.utils
import .result
variable [GuardModule]
open GuardModule
lemma U_eq_𝒰_acc { gdt: Gdt } { acc: Φ → Φ } (acc_stable: stable acc) (acc_hom: hom acc) : (acc (U gdt)).eval = (𝒰_acc acc gdt).eval :=
begin
... |
233d0705ef7505e2bdc9f88bcf5d034baa32edb0 | 618003631150032a5676f229d13a079ac875ff77 | /src/category_theory/concrete_category/bundled_hom.lean | 3b869217c6936409e26151d077e4c1554e954d45 | [
"Apache-2.0"
] | permissive | awainverse/mathlib | 939b68c8486df66cfda64d327ad3d9165248c777 | ea76bd8f3ca0a8bf0a166a06a475b10663dec44a | refs/heads/master | 1,659,592,962,036 | 1,590,987,592,000 | 1,590,987,592,000 | 268,436,019 | 1 | 0 | Apache-2.0 | 1,590,990,500,000 | 1,590,990,500,000 | null | UTF-8 | Lean | false | false | 5,579 | lean | /-
Copyright (c) 2019 Scott Morrison. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Scott Morrison, Yury Kudryashov
-/
import category_theory.concrete_category.basic
import category_theory.concrete_category.bundled
/-!
# Category instances for algebraic structures th... |
e0b5e8b6b96b448532158c6a4b547a7f69f47f85 | 5ae26df177f810c5006841e9c73dc56e01b978d7 | /src/tactic/rcases.lean | 67ddf35c3a0ba4e3579b188c0bce5610e276009f | [
"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,265 | 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.dlist tactic.core
open lean lean.parser
namespace tactic
/-
These synonyms for `list` are used to clarify the meanings of the many
usages of lists in t... |
86fbe92e41aef3fb774142ae55b351414277a0e4 | d9d511f37a523cd7659d6f573f990e2a0af93c6f | /src/analysis/normed_space/normed_group_quotient.lean | 15fb2e932750ee727550bf4b821a583bf5ff5701 | [
"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 | 21,826 | lean | /-
Copyright (c) 2021 Patrick Massot. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Patrick Massot, Riccardo Brasca
-/
import analysis.normed_space.normed_group_hom
/-!
# Quotients of seminormed groups
For any `semi_normed_group M` and any `S : add_subgroup M`, we p... |
5da3069d50e9975f61698fbcd757417546327a99 | c31182a012eec69da0a1f6c05f42b0f0717d212d | /src/for_mathlib/normed_group_hom_completion.lean | 287a4d14254ef2d3e16cc8f6bc102a90f7a0f214 | [] | no_license | Ja1941/lean-liquid | fbec3ffc7fc67df1b5ca95b7ee225685ab9ffbdc | 8e80ed0cbdf5145d6814e833a674eaf05a1495c1 | refs/heads/master | 1,689,437,983,362 | 1,628,362,719,000 | 1,628,362,719,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 8,500 | lean | import analysis.normed_space.normed_group_hom
import for_mathlib.normed_group_hom
noncomputable theory
open set normed_group_hom uniform_space
variables {G : Type*} [semi_normed_group G]
variables {H : Type*} [semi_normed_group H]
variables {K : Type*} [semi_normed_group K]
def normed_group_hom.completion (f : nor... |
80a9323e63e574e0d5c54c2dd3c03e3b960e6510 | c777c32c8e484e195053731103c5e52af26a25d1 | /src/ring_theory/algebraic.lean | 603178ee4de13f7794dd541a1e18b0c13723e8f9 | [
"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 | 17,629 | 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 linear_algebra.finite_dimensional
import ring_theory.integral_closure
import data.polynomial.integral_normalization
/-!
# Algebraic elements and algebraic ex... |
ed952a04d11cfa1dea893756c0e0bd95ab62b206 | 59a4b050600ed7b3d5826a8478db0a9bdc190252 | /src/category_theory/examples/rings.lean | 5040dbdc1b39a5808bc47105c52189dd583fa47e | [] | no_license | rwbarton/lean-category-theory | f720268d800b62a25d69842ca7b5d27822f00652 | 00df814d463406b7a13a56f5dcda67758ba1b419 | refs/heads/master | 1,585,366,296,767 | 1,536,151,349,000 | 1,536,151,349,000 | 147,652,096 | 0 | 0 | null | 1,536,226,960,000 | 1,536,226,960,000 | null | UTF-8 | Lean | false | false | 1,845 | lean | -- Copyright (c) 2018 Scott Morrison. All rights reserved.
-- Released under Apache 2.0 license as described in the file LICENSE.
-- Authors: Scott Morrison
import category_theory.functor
import category_theory.tactics.obviously
open category_theory
namespace category_theory.examples
universe u₁
def CommRing : Typ... |
3981708362d00ffcae6bdcc9989b03cdae809912 | 4727251e0cd73359b15b664c3170e5d754078599 | /src/linear_algebra/contraction.lean | 423c0d771bab4fbf71ab5870193560327bd816de | [
"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,792 | lean | /-
Copyright (c) 2020 Oliver Nash. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Oliver Nash, Antoine Labelle
-/
import linear_algebra.dual
import linear_algebra.matrix.to_lin
import linear_algebra.tensor_product_basis
import linear_algebra.free_module.finite.rank
/-... |
641e5c1e248b78e955c1afd3854c39329da7f37a | ebf7140a9ea507409ff4c994124fa36e79b4ae35 | /src/hints/category_theory/exercise2/hint4.lean | 85a6f72d006eaacc74173440526e8c298990947a | [] | no_license | fundou/lftcm2020 | 3e88d58a92755ea5dd49f19c36239c35286ecf5e | 99d11bf3bcd71ffeaef0250caa08ecc46e69b55b | refs/heads/master | 1,685,610,799,304 | 1,624,070,416,000 | 1,624,070,416,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 1,422 | lean | import algebra.category.CommRing.basic
import data.polynomial
noncomputable theory -- the default implementation of polynomials is noncomputable
local attribute [irreducible] polynomial.eval₂
-- In the previous hint, we constructed a "tactic mode" construction of the `map` field:
def Ring.polynomial : Ring ⥤ Ring :=... |
356c879616f235d14266dc4b68401134a66a5e21 | 432d948a4d3d242fdfb44b81c9e1b1baacd58617 | /src/group_theory/submonoid/operations.lean | eb41ad69467f12f293c3e722245ba9016952b879 | [
"Apache-2.0"
] | permissive | JLimperg/aesop3 | 306cc6570c556568897ed2e508c8869667252e8a | a4a116f650cc7403428e72bd2e2c4cda300fe03f | refs/heads/master | 1,682,884,916,368 | 1,620,320,033,000 | 1,620,320,033,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 28,185 | lean | /-
Copyright (c) 2018 Johannes Hölzl. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Johannes Hölzl, Kenny Lau, Johan Commelin, Mario Carneiro, Kevin Buzzard,
Amelia Livingston, Yury Kudryashov
-/
import group_theory.submonoid.basic
import data.equiv.mul_add
import al... |
8e7a16c00865530540c1072bf580ffb00aa2e485 | 1dd482be3f611941db7801003235dc84147ec60a | /src/ring_theory/ideal_operations.lean | da07593bbfd2520851c991e3b2d0cedbcf276f13 | [
"Apache-2.0"
] | permissive | sanderdahmen/mathlib | 479039302bd66434bb5672c2a4cecf8d69981458 | 8f0eae75cd2d8b7a083cf935666fcce4565df076 | refs/heads/master | 1,587,491,322,775 | 1,549,672,060,000 | 1,549,672,060,000 | 169,748,224 | 0 | 0 | Apache-2.0 | 1,549,636,694,000 | 1,549,636,694,000 | null | UTF-8 | Lean | false | false | 20,199 | lean | /-
Copyright (c) 2018 Kenny Lau. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Kenny Lau
More operations on modules and ideals.
-/
import ring_theory.ideals data.nat.choose order.zorn
import linear_algebra.tensor_product
universes u v w x
open lattice
namespace s... |
c4b75aa70e38d65d3d2a7d6795fac445e4b13e58 | d406927ab5617694ec9ea7001f101b7c9e3d9702 | /src/category_theory/action.lean | 2c40856dcc83c2b527c92e14fa96fdde1da844d6 | [
"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 | 6,619 | lean | /-
Copyright (c) 2020 David Wärn. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: David Wärn
-/
import category_theory.elements
import category_theory.is_connected
import category_theory.single_obj
import group_theory.group_action.quotient
import group_theory.semidirect... |
20c2b8d6efa072fcfd6f81ea354c729f09611079 | 8d65764a9e5f0923a67fc435eb1a5a1d02fd80e3 | /src/group_theory/group_action/basic.lean | d22cdb25d74037bb37a9a6e62840da3cb39ac6bf | [
"Apache-2.0"
] | permissive | troyjlee/mathlib | e18d4b8026e32062ab9e89bc3b003a5d1cfec3f5 | 45e7eb8447555247246e3fe91c87066506c14875 | refs/heads/master | 1,689,248,035,046 | 1,629,470,528,000 | 1,629,470,528,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 9,064 | lean | /-
Copyright (c) 2018 Chris Hughes. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Chris Hughes
-/
import group_theory.group_action.defs
import group_theory.group_action.group
import group_theory.coset
/-!
# Basic properties of group actions
-/
universes u v w
variab... |
f9471b218df9bece2097116487b175ee1eb4bfa1 | 01ae0d022f2e2fefdaaa898938c1ac1fbce3b3ab | /categories/adjunctions/comparisons.lean | e7947067f520a6297b28bcd34f307b70711275b9 | [] | 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 | 6,718 | lean | -- Copyright (c) 2017 Scott Morrison. All rights reserved.
-- Released under Apache 2.0 license as described in the file LICENSE.
-- Authors: Stephen Morgan, Scott Morrison
import ..adjunctions
import .hom_adjunction
open categories
open categories.functor
open categories.natural_transformation
open categories.produc... |
519a10885abdf3ad3b54146b845cadead002749a | 7282d49021d38dacd06c4ce45a48d09627687fe0 | /src/builtin/Int.lean | 7ea445896efa68175cdc470e1205da9714782769 | [
"Apache-2.0"
] | permissive | steveluc/lean | 5a0b4431acefaf77f15b25bbb49294c2449923ad | 92ba4e8b2d040a799eda7deb8d2a7cdd3e69c496 | refs/heads/master | 1,611,332,256,930 | 1,391,013,244,000 | 1,391,013,244,000 | 16,361,079 | 1 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 1,354 | lean | import Nat
import if_then_else
variable Int : Type
alias ℤ : Int
builtin nat_to_int : Nat → Int
coercion nat_to_int
namespace Int
builtin numeral
builtin add : Int → Int → Int
infixl 65 + : add
builtin mul : Int → Int → Int
infixl 70 * : mul
builtin div : Int → Int → Int
infixl 70 div : div
builtin le : Int → Int... |
8c465b6778d93f891bc3c8a88a8d99d15fad254a | 4d2583807a5ac6caaffd3d7a5f646d61ca85d532 | /src/data/list/intervals.lean | 5c54a2ac9d7cacf616b92d21e7df67340394f7e5 | [
"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 | 7,007 | 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.list.lattice
import data.list.range
/-!
# Intervals in ℕ
This file defines intervals of naturals. `list.Ico m n` is the list of integers greater than `m... |
0df9cc0f711d76c586472687df464df9e19fb457 | 74addaa0e41490cbaf2abd313a764c96df57b05d | /Mathlib/algebra/lie/direct_sum_auto.lean | e6e7b0c7bffb38040e607c4b114e2266b6e489c3 | [] | 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,550 | lean | /-
Copyright (c) 2020 Oliver Nash. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Oliver Nash
-/
import Mathlib.PrePort
import Mathlib.Lean3Lib.init.default
import Mathlib.algebra.lie.basic
import Mathlib.linear_algebra.direct_sum.finsupp
import Mathlib.PostPort
unive... |
48ae661054fb44d3877fc31cb5b1b0299e77b5c5 | 4727251e0cd73359b15b664c3170e5d754078599 | /src/field_theory/mv_polynomial.lean | 8627c5c743ac0fdcd784873060734ad43aace69c | [
"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 | 1,517 | lean | /-
Copyright (c) 2019 Johannes Hölzl. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Johannes Hölzl
-/
import ring_theory.mv_polynomial.basic
/-!
# Multivariate polynomials over fields
This file contains basic facts about multivariate polynomials over fields, for ex... |
2ead065369c349041780361ff3e9a889f9e6d4bf | d406927ab5617694ec9ea7001f101b7c9e3d9702 | /src/category_theory/monoidal/Mon_.lean | 25f12394f3d14861b814f9402753ea2d0e9b1757 | [
"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,685 | lean | /-
Copyright (c) 2020 Scott Morrison. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Scott Morrison
-/
import category_theory.monoidal.braided
import category_theory.monoidal.discrete
import category_theory.monoidal.coherence_lemmas
import category_theory.limits.shapes... |
bfd8deaaa0a5456a5931e8e6d34f8b496368bb69 | d406927ab5617694ec9ea7001f101b7c9e3d9702 | /src/data/analysis/filter.lean | 85a8a7fa08cf7a69349c9bf99542a72e9f618754 | [
"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 | 12,469 | 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 order.filter.cofinite
/-!
# Computational realization of filters (experimental)
This file provides infrastructure to compute with filters.
## Main declarati... |
90e6cfa16b442ecb982edf3058627e0153b657a0 | d406927ab5617694ec9ea7001f101b7c9e3d9702 | /src/analysis/sum_integral_comparisons.lean | f1c9759ecafa59cac14329fe6aa027109b7a1c7b | [
"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 | 7,048 | lean | /-
Copyright (c) 2022 Kevin H. Wilson. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Kevin H. Wilson
-/
import measure_theory.integral.interval_integral
import data.set.function
import analysis.special_functions.integrals
/-!
# Comparing sums and integrals
## Summar... |
a44faa97e47b12c4ef8f94a437c3861752d97770 | d9d511f37a523cd7659d6f573f990e2a0af93c6f | /src/algebra/module/ordered.lean | e6458f6a408d718f3948a5dbf5b67cd563eac74f | [
"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 | 4,683 | lean | /-
Copyright (c) 2020 Frédéric Dupuis. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Frédéric Dupuis, Yaël Dillies
-/
import algebra.module.pi
import algebra.module.prod
import algebra.ordered_field
import algebra.ordered_smul
/-!
# Ordered module
In this file we p... |
0b1a9194a7b499911196fcccc51667d22587029e | d406927ab5617694ec9ea7001f101b7c9e3d9702 | /src/tactic/linarith/preprocessing.lean | 59775da603e99c88409944b725959d9a37145f9d | [
"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 | 12,442 | lean | /-
Copyright (c) 2020 Robert Y. Lewis. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Robert Y. Lewis
-/
import data.prod.lex
import tactic.cancel_denoms
import tactic.linarith.datatypes
import tactic.zify
/-!
# Linarith preprocessing
This file contains methods used ... |
47e384423e04c8414529f036d5c3c3361d8a2403 | 74addaa0e41490cbaf2abd313a764c96df57b05d | /Mathlib/data/list/nodup_equiv_fin.lean | bfecf2e407aadf0e70db1baf05282e1c1d1ce843 | [] | 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 | 3,052 | lean | /-
Copyright (c) 2020 Yury G. Kudryashov. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Author: Yury G. Kudryashov
-/
import Mathlib.PrePort
import Mathlib.Lean3Lib.init.default
import Mathlib.data.list.sort
import Mathlib.data.fin
import Mathlib.PostPort
universes u_1
name... |
b3a978f05e21f53a7ecbe375a93dc171c8f2ed67 | 74addaa0e41490cbaf2abd313a764c96df57b05d | /Mathlib/Lean3Lib/init/meta/converter/interactive.lean | e196e62b04205a56cd63061f0e0287ee50d4d35f | [] | 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 | 364 | lean | /-
Copyright (c) 2017 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Leonardo de Moura
Converter monad for building simplifiers.
-/
import Mathlib.PrePort
import Mathlib.Lean3Lib.init.meta.interactive
import Mathlib.Lean3Lib.init.meta.converter.... |
b231f6634209104ad99bbe62662f3a09a7b750d6 | a7eef317ddec01b9fc6cfbb876fe7ac00f205ac7 | /src/algebra/ring.lean | 031a88f18a1c5ce8eb788054e7ebe1bb03d3bc3b | [
"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 | 36,663 | 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, Floris van Doorn, Amelia Livingston, Yury Kudryashov,
Neil Strickland
-/
import algebra.group.hom
import algebra.group.units
import algebra.group_with_... |
6733ad1059144bee67f7187b5ee8aeb64608f3d4 | 359199d7253811b032ab92108191da7336eba86e | /src/instructor/lectures/lecture_8.lean | a52b729698d69d6098ce2fcbbf573ddb3ee91ae4 | [] | no_license | arte-et-marte/my_cs2120f21 | 0bc6215cb5018a3b7c90d9d399a173233f587064 | 91609c3609ad81fda895bee8b97cc76813241e17 | refs/heads/main | 1,693,298,928,348 | 1,634,931,202,000 | 1,634,931,202,000 | 399,946,705 | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 5,789 | lean | /-Reviewing how to formally prove that and is associative-/
theorem and_associative : ∀ (P Q R: Prop), (P ∧ Q) ∧ R → P ∧ (Q ∧ R) :=
begin
assume P Q R,
/-what remains to be proved is the implication-/
assume h, /-h is the proof of (P ∧ Q) ∧ R (the left side of the implication)-/ /-and is right associative-/
/- ... |
f090eba47ebf39a57800f603112be1a9fd3ac41c | a0e23cfdd129a671bf3154ee1a8a3a72bf4c7940 | /src/Lean/Server/FileWorker/RequestHandling.lean | 91955c01a5c652f67d2678a9f7be26f096a7e829 | [
"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 | 16,542 | lean | /-
Copyright (c) 2021 Wojciech Nawrocki. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Wojciech Nawrocki, Marc Huisinga
-/
import Lean.DeclarationRange
import Lean.Data.Json
import Lean.Data.Lsp
import Lean.Server.FileWorker.Utils
import Lean.Server.Requests
import... |
f66fc2140c1141cea392f178c7cb41c4313957ed | b147e1312077cdcfea8e6756207b3fa538982e12 | /algebra/pi_instances.lean | 7d043bcc45c77589b78920283f37698e2d742661 | [
"Apache-2.0"
] | permissive | SzJS/mathlib | 07836ee708ca27cd18347e1e11ce7dd5afb3e926 | 23a5591fca0d43ee5d49d89f6f0ee07a24a6ca29 | refs/heads/master | 1,584,980,332,064 | 1,532,063,841,000 | 1,532,063,841,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 3,686 | 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 algebra.module
namespace tactic
open interactive interactive.types lean.parser
open functor has_seq list n... |
42826fbd30d22e0fa240320c52e1ca47a15cb9db | 80cc5bf14c8ea85ff340d1d747a127dcadeb966f | /src/topology/uniform_space/completion.lean | f3bfd91a2ae1c6f3ee06ed585be498ea49354787 | [
"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 | 23,168 | lean | /-
Copyright (c) 2018 Patrick Massot. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Patrick Massot, Johannes Hölzl
-/
import topology.uniform_space.abstract_completion
/-!
# Hausdorff completions of uniform spaces
The goal is to construct a left-adjoint to the inclu... |
2767f252039e058db8aea86421b3f18679e7a01c | fa02ed5a3c9c0adee3c26887a16855e7841c668b | /src/algebra/char_p/pi.lean | 73280efa0484aa31ab0539746ffe817574221877 | [
"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 | 867 | 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.char_p.basic
import algebra.ring.pi
/-!
# Characteristic of semirings of functions
-/
universes u v
namespace char_p
instance pi (ι : Type u) [hi : nonempty... |
4c76a141985253167945746600e50e87027825dc | ad0c7d243dc1bd563419e2767ed42fb323d7beea | /data/quot.lean | 566c8f252475e3b89801ae62dfc6435da5bc1e39 | [
"Apache-2.0"
] | permissive | sebzim4500/mathlib | e0b5a63b1655f910dee30badf09bd7e191d3cf30 | 6997cafbd3a7325af5cb318561768c316ceb7757 | refs/heads/master | 1,585,549,958,618 | 1,538,221,723,000 | 1,538,221,723,000 | 150,869,076 | 0 | 0 | Apache-2.0 | 1,538,229,323,000 | 1,538,229,323,000 | null | UTF-8 | Lean | false | false | 9,196 | 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
Quotients -- extends the core library
-/
variables {α : Sort*} {β : Sort*}
namespace quot
variables {ra : α → α → Prop} {rb : β → β → Prop} {φ : quot ra → quot rb → So... |
189e417eb36caa2afbc073b250d1ec7f633bd580 | 82ad4119063bae9cb1cdabcb80c8f02d65e5b676 | /src/lecture2.lean | 415cde2839714ce25565ba26097e67971eb3645d | [] | no_license | shingtaklam1324/analysis-i | fb009497e0410af51c2cdd8a6f440c7349d0a10b | 928dd413014ca6668560c504592e0a15a83ea63a | refs/heads/master | 1,677,838,878,682 | 1,612,371,654,000 | 1,612,371,654,000 | 332,424,640 | 1 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 16,542 | lean | import lecture1
open_locale filter topological_space big_operators
open filter
open_locale classical
noncomputable theory
lemma tendsto_of_le_of_le {x y z : ℕ → ℝ} {t : ℝ} (hx : tendsto x at_top (𝓝 t))
(hz : tendsto z at_top (𝓝 t)) (hxy : ∀ n, x n ≤ y n) (hyz : ∀ n, y n ≤ z n) :
tendsto y at_top (𝓝 t) :=
be... |
9d69203a11f1de64c7ff551dd3bb3664391222d7 | 6432ea7a083ff6ba21ea17af9ee47b9c371760f7 | /tests/lean/interactive/863.lean | c0a113a488bc7797a303a1784864c05935b66407 | [
"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 | 236 | lean | prelude
namespace Lean
class MonadRef where
getRef : Type
export MonadRef (getRef)
end Lean
open Lean in
#check getRe
--^ textDocument/completion
namespace Lean
#check getRe
--^ textDocument/completion
end Lean
|
7f65829e8b9674ceb1e93203f8145fdd06acc32c | 8b9f17008684d796c8022dab552e42f0cb6fb347 | /tests/lean/slow/nat_wo_hints.lean | 1ea1782e6003ae1af0f34a7a9c296308bb42d1ec | [
"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 | 49,745 | 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
-----------------------------------------------------------... |
754c207f158be76615b59bbd4ca3e18a2187196d | 12dabd587ce2621d9a4eff9f16e354d02e206c8e | /world07/level07.lean | c9f1482102933977c2cd5aa77db735d4d6253043 | [] | no_license | abdelq/natural-number-game | a1b5b8f1d52625a7addcefc97c966d3f06a48263 | bbddadc6d2e78ece2e9acd40fa7702ecc2db75c2 | refs/heads/master | 1,668,606,478,691 | 1,594,175,058,000 | 1,594,175,058,000 | 278,673,209 | 0 | 1 | null | null | null | null | UTF-8 | Lean | false | false | 120 | lean | lemma or_symm (P Q : Prop) : P ∨ Q → Q ∨ P :=
begin
intro h,
cases h with p q,
right,
exact p,
left,
exact q,
end
|
9251a5e35d9a6265852fa860dda34ea1c2376c13 | 35677d2df3f081738fa6b08138e03ee36bc33cad | /src/data/dfinsupp.lean | 9d3a94d5db4f9f92d8da5fe448a143e870968329 | [
"Apache-2.0"
] | permissive | gebner/mathlib | eab0150cc4f79ec45d2016a8c21750244a2e7ff0 | cc6a6edc397c55118df62831e23bfbd6e6c6b4ab | refs/heads/master | 1,625,574,853,976 | 1,586,712,827,000 | 1,586,712,827,000 | 99,101,412 | 1 | 0 | Apache-2.0 | 1,586,716,389,000 | 1,501,667,958,000 | Lean | UTF-8 | Lean | false | false | 32,215 | lean | /-
Copyright (c) 2018 Kenny Lau. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Johannes Hölzl, Kenny Lau
-/
import data.finset data.set.finite algebra.big_operators algebra.module algebra.pi_instances
/-!
# Dependent functions with finite support
(see also `data/fi... |
5fc0402d6db8339614623abb5515f25b40da74e0 | d796eac6dc113f68ec6fc0579c13e8eae2bdef6c | /Resources/Code/Category+Theory-Github-Topic/monoidal-categories-reboot/src/monoidal_categories_reboot/examples/natural.lean | ded7c4d48b0fa32605ec4b3eba38e120999afbcd | [
"Apache-2.0"
] | permissive | paddlelaw/functional-discipline-content-cats | 5a7e13e8adedd96b94f66b0b3cbf1847bc86d7f6 | d93b7aa849b343c384cec40c73ee84a9300004e8 | refs/heads/master | 1,675,541,859,508 | 1,607,251,766,000 | 1,607,251,766,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 2,068 | lean | -- Copyright (c) 2018 Michael Jendrusch. All rights reserved.
import data.equiv.basic
import category_theory.category
import category_theory.functor
import category_theory.products
import category_theory.natural_isomorphism
import ..monoidal_category
import ..monoid_object
open category_theory
open tactic
universes u ... |
8b5ed72c67b98db6d9c65e9447234725c6244923 | 05b503addd423dd68145d68b8cde5cd595d74365 | /src/data/mv_polynomial.lean | eab073b41e18b05b199587a70d2f66dfca66d157 | [
"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 | 56,747 | 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, Johan Commelin, Mario Carneiro, Shing Tak Lam
-/
import algebra.ring
import data.finsupp data.polynomial data.equiv.ring data.equiv.fin
import tactic.omega
/-!
# Mult... |
b345b38fb1e2c22e8622e04dc3911824f90faf4d | 80cc5bf14c8ea85ff340d1d747a127dcadeb966f | /test/rcases.lean | cd20c9ab9e268870def9e3ca4ab2739bd14f577d | [
"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 | 3,361 | 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 tactic.rcases
universe u
variables {α β γ : Type u}
example (x : α × β × γ) : true :=
begin
rcases x with ⟨a, b, c⟩,
{ guard_hyp a : α,
guard_hyp b : β,
... |
190382ce3ae8772580018d127a6072ef80e3a5ff | e9dbaaae490bc072444e3021634bf73664003760 | /src/Problems/2004/IMO_2004_P1.lean | 561532531ec618d57c5ffa1007f90db4d568fc5b | [
"Apache-2.0"
] | permissive | liaofei1128/geometry | 566d8bfe095ce0c0113d36df90635306c60e975b | 3dd128e4eec8008764bb94e18b932f9ffd66e6b3 | refs/heads/master | 1,678,996,510,399 | 1,581,454,543,000 | 1,583,337,839,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 518 | lean | import Geo.Geo.Core
namespace Geo
open Angle Seg Triangle
def IMO_2004_P1 : Prop :=
∀ (A B C : Point),
acute ⟨A, B, C⟩ →
¬cong ⟨A, B⟩ ⟨A, C⟩ →
∀ (M N : Point),
intersectAt (Circle.buildDiam B C) (Seg.mk A B) M →
intersectAt (Circle.buildDiam B C) (Seg.mk A C) N →
let O := (Seg.mk B C).midp;
∀ (R : Point),
intersectA... |
0e2325c7d743058366f8ab4bd0e9bb02fda78a6b | 6432ea7a083ff6ba21ea17af9ee47b9c371760f7 | /src/lake/Lake/Config/Context.lean | b3bdb799c227c4f3f500ded10afac893c60e6a49 | [
"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 | 672 | lean | /-
Copyright (c) 2021 Mac Malone. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Mac Malone
-/
import Lake.Config.Opaque
import Lake.Config.InstallPath
open System
namespace Lake
/-- A Lake configuration. -/
structure Context where
opaqueWs : OpaqueWorkspace
/-- A... |
57034bd62aa5fb54e600fc250fd40565153d1688 | d7189ea2ef694124821b033e533f18905b5e87ef | /galois/arith/aexpr.lean | 7f6e4220cbf8231f46498b4f593517078d0442f3 | [
"Apache-2.0"
] | permissive | digama0/lean-protocol-support | eaa7e6f8b8e0d5bbfff1f7f52bfb79a3b11b0f59 | cabfa3abedbdd6fdca6e2da6fbbf91a13ed48dda | refs/heads/master | 1,625,421,450,627 | 1,506,035,462,000 | 1,506,035,462,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 41,284 | lean | /- In this file, we define more and more expressive syntax
for arithmetic expressions and formulae, over
ℚ, ℤ, and ℕ, give procedures for transforming these formulae
to the linear arithmetic expressions defined for Fourier-Motzkin
elimination, and prove that these procedures preserve validity
of the logi... |
2dd0700ae9669e5fa473bf5b66915043da49b23c | 8cae430f0a71442d02dbb1cbb14073b31048e4b0 | /src/algebra/hierarchy_design.lean | 31c4205bebe12dffda1cb174eab393c9b47aa7c2 | [
"Apache-2.0"
] | permissive | leanprover-community/mathlib | 56a2cadd17ac88caf4ece0a775932fa26327ba0e | 442a83d738cb208d3600056c489be16900ba701d | refs/heads/master | 1,693,584,102,358 | 1,693,471,902,000 | 1,693,471,902,000 | 97,922,418 | 1,595 | 352 | Apache-2.0 | 1,694,693,445,000 | 1,500,624,130,000 | Lean | UTF-8 | Lean | false | false | 9,243 | lean | /-
Copyright (c) 2021 Scott Morrison. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Scott Morrison, Eric Wieser
-/
import tactic.doc_commands
/-!
# Documentation of the algebraic hierarchy
> THIS FILE IS SYNCHRONIZED WITH MATHLIB4.
> Any changes to this file require... |
24a687e138b15bd42c0d59dad74c89e36837dfe3 | ac1c2a2f522b0fdf854095ba00f882ca849669e7 | /library/init/meta/occurrences.lean | 80e7b8cfd14eff29807cee5b68950ad9da5654dc | [
"Apache-2.0"
] | permissive | abliss/lean | b8b336abc8d50dbb0726dcff9dd16793c23bfbe1 | fb24cc99573c153f97a1951ee94bbbdda300b6be | refs/heads/master | 1,611,536,584,520 | 1,497,811,981,000 | 1,497,811,981,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 1,508 | 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.logic init.data.to_string init.meta.format
import init.meta.contradiction_tactic init.meta.constructor_tactic
import init.meta.relation_... |
474416f5d6ce9efedfefd94daa450b6a4a62401a | 649957717d58c43b5d8d200da34bf374293fe739 | /src/topology/algebra/infinite_sum.lean | b23fe6b02f5391ab1cc17c44ba263ea6ff19c8c5 | [
"Apache-2.0"
] | permissive | Vtec234/mathlib | b50c7b21edea438df7497e5ed6a45f61527f0370 | fb1848bbbfce46152f58e219dc0712f3289d2b20 | refs/heads/master | 1,592,463,095,113 | 1,562,737,749,000 | 1,562,737,749,000 | 196,202,858 | 0 | 0 | Apache-2.0 | 1,562,762,338,000 | 1,562,762,337,000 | null | UTF-8 | Lean | false | false | 25,696 | 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
Infinite sum over a topological monoid
This sum is known as unconditionally convergent, as it sums to the same value under all possible
permutations. For Euclidean spa... |
0c2c9873666e95f86fbb3a3128eb43cabf8e0ab2 | 4727251e0cd73359b15b664c3170e5d754078599 | /src/category_theory/monoidal/tor.lean | 92a7d83b465750a3e0e328a7eac58c38b1130042 | [
"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 | 2,779 | 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.functor.left_derived
import category_theory.monoidal.preadditive
/-!
# Tor, the left-derived functor of tensor product
We define `Tor C n : C... |
b91087813ef061867af099153b81eeb43a169a2f | 8d65764a9e5f0923a67fc435eb1a5a1d02fd80e3 | /src/representation_theory/maschke.lean | 123c612e1445948dafe0b981b3680751d6c9aa58 | [
"Apache-2.0"
] | permissive | troyjlee/mathlib | e18d4b8026e32062ab9e89bc3b003a5d1cfec3f5 | 45e7eb8447555247246e3fe91c87066506c14875 | refs/heads/master | 1,689,248,035,046 | 1,629,470,528,000 | 1,629,470,528,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 6,330 | 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.monoid_algebra
import algebra.char_p.invertible
import algebra.regular.basic
import linear_algebra.basis
/-!
# Maschke's theorem
We prove **Maschke's... |
a8d898d56bf23650583ce94a626c37686e895da6 | 367134ba5a65885e863bdc4507601606690974c1 | /src/ring_theory/polynomial/dickson.lean | d41551a6637f0ee7f9be98d31d3ca31234478e9d | [
"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 | 10,501 | lean | /-
Copyright (c) 2021 Julian Kuelshammer. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Julian Kuelshammer
-/
import ring_theory.polynomial.chebyshev
import ring_theory.localization
import data.zmod.basic
import algebra.invertible
/-!
# Dickson polynomials
The (ge... |
f9bbf671d616d96d7980ec0e2a2e365c572ae525 | 9dc8cecdf3c4634764a18254e94d43da07142918 | /src/topology/metric_space/hausdorff_dimension.lean | 6f326924b62149b55576265a44e62906e70f6630 | [
"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,835 | 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 measure_theory.measure.hausdorff
/-!
# Hausdorff dimension
The Hausdorff dimension of a set `X` in an (extended) metric space is the unique number
`dimH s ... |
adbc0e684e33e2bf6a6196bd1f312f5d5c5f36a0 | 02005f45e00c7ecf2c8ca5db60251bd1e9c860b5 | /src/measure_theory/interval_integral.lean | 3479fea209a60b9071986d5da79407af325342ec | [
"Apache-2.0"
] | permissive | anthony2698/mathlib | 03cd69fe5c280b0916f6df2d07c614c8e1efe890 | 407615e05814e98b24b2ff322b14e8e3eb5e5d67 | refs/heads/master | 1,678,792,774,873 | 1,614,371,563,000 | 1,614,371,563,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 77,114 | lean | /-
Copyright (c) 2020 Yury G. Kudryashov. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Author: Yury G. Kudryashov
-/
import measure_theory.set_integral
import measure_theory.lebesgue_measure
import analysis.calculus.fderiv_measurable
import analysis.calculus.extend_deriv
/-!... |
0437c7787e9c6519f33feeb62496b35c2a132c43 | 4727251e0cd73359b15b664c3170e5d754078599 | /src/tactic/push_neg.lean | 3d81811a0fc87f6cccc9cddb173049321352eb08 | [
"Apache-2.0"
] | permissive | Vierkantor/mathlib | 0ea59ac32a3a43c93c44d70f441c4ee810ccceca | 83bc3b9ce9b13910b57bda6b56222495ebd31c2f | refs/heads/master | 1,658,323,012,449 | 1,652,256,003,000 | 1,652,256,003,000 | 209,296,341 | 0 | 1 | Apache-2.0 | 1,568,807,655,000 | 1,568,807,655,000 | null | UTF-8 | Lean | false | false | 7,965 | lean | /-
Copyright (c) 2019 Patrick Massot All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Patrick Massot, Simon Hudon
A tactic pushing negations into an expression
-/
import logic.basic
open tactic expr
namespace push_neg
section
universe u
variable {α : Sort u}
variab... |
be41ab36dbcf3c684c5c2166202c033c893c6a32 | 9dc8cecdf3c4634764a18254e94d43da07142918 | /src/algebra/module/equiv.lean | 7d35aad669c66b583b3d173e5d9fe9644581f7e9 | [
"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 | 24,635 | lean | /-
Copyright (c) 2020 Anne Baanen. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Nathaniel Thomas, Jeremy Avigad, Johannes Hölzl, Mario Carneiro, Anne Baanen,
Frédéric Dupuis, Heather Macbeth
-/
import algebra.module.linear_map
/-!
# (Semi)linear equivalences
In t... |
856738163e484e79411eba15510016b4308d800a | 618003631150032a5676f229d13a079ac875ff77 | /src/algebra/group/defs.lean | 2a720f34687342991a15a9f09d07b7d66a83a7f7 | [
"Apache-2.0"
] | permissive | awainverse/mathlib | 939b68c8486df66cfda64d327ad3d9165248c777 | ea76bd8f3ca0a8bf0a166a06a475b10663dec44a | refs/heads/master | 1,659,592,962,036 | 1,590,987,592,000 | 1,590,987,592,000 | 268,436,019 | 1 | 0 | Apache-2.0 | 1,590,990,500,000 | 1,590,990,500,000 | null | UTF-8 | Lean | false | false | 9,381 | 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, Simon Hudon, Mario Carneiro
-/
import algebra.group.to_additive
import tactic.protected
/-!
# Typeclasses for (semi)groups and monoid
In this file we... |
5278d1153f20f59b81c727045199a4d89d717347 | 6432ea7a083ff6ba21ea17af9ee47b9c371760f7 | /tests/elabissues/vars.lean | 3ee28097f8725ff566d76ee8b27d842efc8312ee | [
"Apache-2.0",
"LLVM-exception",
"NCSA",
"LGPL-3.0-only",
"LicenseRef-scancode-inner-net-2.0",
"BSD-3-Clause",
"LGPL-2.0-or-later",
"Spencer-94",
"LGPL-2.1-or-later",
"HPND",
"LicenseRef-scancode-pcre",
"ISC",
"LGPL-2.1-only",
"LicenseRef-scancode-other-permissive",
"SunPro",
"CMU-Mach"... | permissive | leanprover/lean4 | 4bdf9790294964627eb9be79f5e8f6157780b4cc | f1f9dc0f2f531af3312398999d8b8303fa5f096b | refs/heads/master | 1,693,360,665,786 | 1,693,350,868,000 | 1,693,350,868,000 | 129,571,436 | 2,827 | 311 | Apache-2.0 | 1,694,716,156,000 | 1,523,760,560,000 | Lean | UTF-8 | Lean | false | false | 1,164 | lean | def f1 {α} [ToString α] (a : α) : String := -- works
">> " ++ toString a
-- Moving `{α} [ToString α]` to a `variables` break the example
variable {α} [ToString α]
def f2 (a : α) : String :=
">> " ++ toString a
class Dummy (α : Type) := (val : α)
/- The following fails because `variables {α : Type _} [Dummy α]` is pr... |
09bc9ce514ed1177e7f4fd23d85eb8ea12adb575 | d406927ab5617694ec9ea7001f101b7c9e3d9702 | /src/analysis/normed_space/exponential.lean | af316d21047c5e93011abd66af75c35b345a866d | [
"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 | 26,300 | lean | /-
Copyright (c) 2021 Anatole Dedecker. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Anatole Dedecker, Eric Wieser
-/
import analysis.analytic.basic
import analysis.complex.basic
import data.nat.choose.cast
import data.finset.noncomm_prod
import topology.algebra.alge... |
4603ad33f0898b02d2d6acc80773451bc8ef20e2 | 9dc8cecdf3c4634764a18254e94d43da07142918 | /src/logic/equiv/fin.lean | 596142c38943b62423a291ed47dc7272a746a3af | [
"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 | 15,263 | lean | /-
Copyright (c) 2018 Kenny Lau. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Kenny Lau
-/
import data.fin.vec_notation
import logic.equiv.basic
/-!
# Equivalences for `fin n`
-/
universes u
variables {m n : ℕ}
/-- Equivalence between `fin 0` and `empty`. -/
def ... |
479d4d104e125d9c2c332affdbe99cfbb4c93646 | fa02ed5a3c9c0adee3c26887a16855e7841c668b | /src/linear_algebra/clifford_algebra/conjugation.lean | ce115a6a52ca947787bb0da03eb0ce716b33e344 | [
"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 | 4,950 | lean | /-
Copyright (c) 2020 Eric Wieser. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Eric Wieser
-/
import linear_algebra.clifford_algebra.basic
import algebra.module.opposites
/-!
# Conjugations
This file defines the grade reversal and grade involution functions on mul... |
274a92859c06dd482795c5e6c91e42eb3b628e34 | 74addaa0e41490cbaf2abd313a764c96df57b05d | /Mathlib/linear_algebra/affine_space/midpoint_auto.lean | 99352aae01bd486c2475405036b51eb4fd66fe52 | [] | 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 | 10,963 | lean | /-
Copyright (c) 2020 Yury Kudryashov. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Author: Yury Kudryashov
-/
import Mathlib.PrePort
import Mathlib.Lean3Lib.init.default
import Mathlib.algebra.invertible
import Mathlib.linear_algebra.affine_space.affine_equiv
import Mathlib.... |
b2e7bb8675c659cf249259460f45bd7185424026 | b2e508d02500f1512e1618150413e6be69d9db10 | /src/data/dfinsupp.lean | dfd382e10048d161cb70f242b09cd81fc782a8c3 | [
"Apache-2.0"
] | permissive | callum-sutton/mathlib | c3788f90216e9cd43eeffcb9f8c9f959b3b01771 | afd623825a3ac6bfbcc675a9b023edad3f069e89 | refs/heads/master | 1,591,371,888,053 | 1,560,990,690,000 | 1,560,990,690,000 | 192,476,045 | 0 | 0 | Apache-2.0 | 1,568,941,843,000 | 1,560,837,965,000 | Lean | UTF-8 | Lean | false | false | 32,393 | lean | /-
Copyright (c) 2018 Kenny Lau. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Johannes Hölzl, Kenny Lau
Dependent functions with finite support (see `data/finsupp.lean`).
-/
import data.finset data.set.finite algebra.big_operators algebra.module algebra.pi_instance... |
232e46322273d38f58d5642d7e691ed7fb6e3781 | 8e6cad62ec62c6c348e5faaa3c3f2079012bdd69 | /src/ring_theory/polynomial/homogeneous.lean | 754ba66ac0f3c3006415e78e2b657dc28a5c1053 | [
"Apache-2.0"
] | permissive | benjamindavidson/mathlib | 8cc81c865aa8e7cf4462245f58d35ae9a56b150d | fad44b9f670670d87c8e25ff9cdf63af87ad731e | refs/heads/master | 1,679,545,578,362 | 1,615,343,014,000 | 1,615,343,014,000 | 312,926,983 | 0 | 0 | Apache-2.0 | 1,615,360,301,000 | 1,605,399,418,000 | Lean | UTF-8 | Lean | false | false | 8,069 | lean | /-
Copyright (c) 2020 Johan Commelin. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Johan Commelin
-/
import data.mv_polynomial
import data.fintype.card
/-!
# Homogeneous polynomials
A multivariate polynomial `φ` is homogeneous of degree `n`
if all monomials occuri... |
d6050d2719d0a5bd88f112321934e5119c367583 | 7b02c598aa57070b4cf4fbfe2416d0479220187f | /homotopy/smash.hlean | 4b6d8754d33118cff5306f575a6493c46c412cf6 | [
"Apache-2.0"
] | permissive | jdchristensen/Spectral | 50d4f0ddaea1484d215ef74be951da6549de221d | 6ded2b94d7ae07c4098d96a68f80a9cd3d433eb8 | refs/heads/master | 1,611,555,010,649 | 1,496,724,191,000 | 1,496,724,191,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 43,895 | hlean | -- Authors: Floris van Doorn
import homotopy.smash types.pointed2 .pushout homotopy.red_susp
open bool pointed eq equiv is_equiv sum bool prod unit circle cofiber prod.ops wedge is_trunc
function red_susp unit
/- To prove: Σ(X × Y) ≃ ΣX ∨ ΣY ∨ Σ(X ∧ Y) (?) (notation means suspension, wedge, smash) -/
/- To... |
08a1aa1df134fd74a980997f9df5dfc03f17e1c8 | 5d76f062116fa5bd22eda20d6fd74da58dba65bb | /src/snarks/pinocchio_strong_qap/knowledge_soundness.lean | a54117d2c5ecc3a28f427d913e20f768b75907e8 | [] | no_license | brando90/formal_baby_snark | 59e4732dfb43f97776a3643f2731262f58d2bb81 | 4732da237784bd461ff949729cc011db83917907 | refs/heads/master | 1,682,650,246,414 | 1,621,103,975,000 | 1,621,103,975,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 43,804 | lean | /-
Author: Bolton Bailey
-/
import data.mv_polynomial.basic
import data.polynomial.div
import data.polynomial.field_division
import algebra.polynomial.big_operators
-- import .general_lemmas.polynomial_mv_sv_cast
-- import .general_lemmas.mv_divisability
-- import .general_lemmas.single_antidiagonal
-- import .general_... |
069a48aa886adfe417227bf58fec1202c73f3904 | d5fd73199f5317771f53ea081ee813f40f3a9807 | /src/exercises_sources/friday/analysis.lean | 222c470e3379af3e74c7ff6a4a98286d1d7190b2 | [] | permissive | emiljacobsen/lftcm2020 | 083561a6b6bdb3fa0cefb4c32736879e88fd35e3 | 7fbe4caeeed7abff70aec1f693326accc8175370 | refs/heads/master | 1,668,937,949,197 | 1,594,983,308,000 | 1,594,983,308,000 | 280,402,877 | 0 | 0 | MIT | 1,594,983,922,000 | 1,594,983,921,000 | null | UTF-8 | Lean | false | false | 1,769 | lean | import analysis.analytic.composition
import analysis.normed_space.real_inner_product
import topology.metric_space.pi_Lp
import analysis.calculus.iterated_deriv
namespace lftcm
noncomputable theory
open real
open_locale topological_space filter classical
/-!
# Derivatives
Lean can automatically compute some simple ... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.