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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
9d888291558bb026bbb2ddc209358004126e9ec9 | 32025d5c2d6e33ad3b6dd8a3c91e1e838066a7f7 | /src/Lean/Elab/SyntheticMVars.lean | 3310842bbc5b4df5b8a24d2bf7602eb6a9dabe1a | [
"Apache-2.0"
] | permissive | walterhu1015/lean4 | b2c71b688975177402758924eaa513475ed6ce72 | 2214d81e84646a905d0b20b032c89caf89c737ad | refs/heads/master | 1,671,342,096,906 | 1,599,695,985,000 | 1,599,695,985,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 12,405 | lean | /-
Copyright (c) 2020 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Leonardo de Moura, Sebastian Ullrich
-/
import Lean.Elab.Term
import Lean.Elab.Tactic.Basic
namespace Lean
namespace Elab
namespace Term
open Tactic (TacticM evalTactic getUns... |
7ecc95cfcfe275ea4948da5991fb41febf4374c6 | b7f22e51856f4989b970961f794f1c435f9b8f78 | /tests/lean/hott/648.hlean | 224304591633b932f3bfdecd48527f2a2c86739f | [
"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 | 31 | hlean | import hit.colimit hit.pushout
|
e5c0889292339f765d67232660397e4ae09ce08c | 947b78d97130d56365ae2ec264df196ce769371a | /stage0/src/Lean/Syntax.lean | f328ff28995503c1012923a1c84f3da3a04a9821 | [
"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 | 15,682 | lean | /-
Copyright (c) 2019 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Author: Sebastian Ullrich, Leonardo de Moura
-/
import Lean.Data.Name
import Lean.Data.Format
namespace Lean
namespace SourceInfo
def updateTrailing (info : SourceInfo) (trailing : Opt... |
84d50ec033806eb383d64a1b497de8bf85ca22c7 | 4727251e0cd73359b15b664c3170e5d754078599 | /src/category_theory/adjunction/mates.lean | 24b4c8c5fbf31988c999cc3c9d8c95e4ee3874f9 | [
"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 | 10,464 | lean | /-
Copyright (c) 2020 Bhavik Mehta. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Bhavik Mehta
-/
import category_theory.adjunction.basic
import category_theory.conj
/-!
# Mate of natural transformations
This file establishes the bijection between the 2-cells
... |
1e423b88f1e06efa9f241cf0a6ef1d64590d5b1f | 8eeb99d0fdf8125f5d39a0ce8631653f588ee817 | /src/data/finset/basic.lean | 70cce1de7e0cbc1b00d85ba32a50292467c4d230 | [
"Apache-2.0"
] | permissive | jesse-michael-han/mathlib | a15c58378846011b003669354cbab7062b893cfe | fa6312e4dc971985e6b7708d99a5bc3062485c89 | refs/heads/master | 1,625,200,760,912 | 1,602,081,753,000 | 1,602,081,753,000 | 181,787,230 | 0 | 0 | null | 1,555,460,682,000 | 1,555,460,682,000 | null | UTF-8 | Lean | false | false | 92,781 | 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, Minchao Wu, Mario Carneiro
-/
import data.multiset.finset_ops
import tactic.monotonicity
import tactic.apply
/-!
# Finite sets
mathlib has se... |
b0151b822d74aed53a88fbfe5ffd3682416e8044 | 07c6143268cfb72beccd1cc35735d424ebcb187b | /src/category_theory/limits/shapes/kernels.lean | 8d27af7476b889641b05c95dcd9c7be77efa261b | [
"Apache-2.0"
] | permissive | khoek/mathlib | bc49a842910af13a3c372748310e86467d1dc766 | aa55f8b50354b3e11ba64792dcb06cccb2d8ee28 | refs/heads/master | 1,588,232,063,837 | 1,587,304,803,000 | 1,587,304,803,000 | 176,688,517 | 0 | 0 | Apache-2.0 | 1,553,070,585,000 | 1,553,070,585,000 | null | UTF-8 | Lean | false | false | 11,411 | lean | /-
Copyright (c) 2019 Scott Morrison. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Scott Morrison, Markus Himmel
-/
import category_theory.limits.shapes.zero
import category_theory.limits.shapes.equalizers
/-!
# Kernels and cokernels
In a category with zero morphis... |
169e41bee5d6c028607e9d14b09ff1207bc72604 | d406927ab5617694ec9ea7001f101b7c9e3d9702 | /src/probability/strong_law.lean | 4e2ca506d13aae1de30c9c95b7c80d3ef1ec6012 | [
"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 | 36,987 | lean | /-
Copyright (c) 2022 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 probability.ident_distrib
import measure_theory.integral.interval_integral
import analysis.specific_limits.floor_pow
import analysis.p_series
import ana... |
852be3164ca1616d043559c6144fbc1fac4e107e | 80746c6dba6a866de5431094bf9f8f841b043d77 | /src/data/finset.lean | 0cdbbef7ca56e4ccd092d141bea34c7339ee5210 | [
"Apache-2.0"
] | permissive | leanprover-fork/mathlib-backup | 8b5c95c535b148fca858f7e8db75a76252e32987 | 0eb9db6a1a8a605f0cf9e33873d0450f9f0ae9b0 | refs/heads/master | 1,585,156,056,139 | 1,548,864,430,000 | 1,548,864,438,000 | 143,964,213 | 0 | 0 | Apache-2.0 | 1,550,795,966,000 | 1,533,705,322,000 | Lean | UTF-8 | Lean | false | false | 76,475 | lean | /-
Copyright (c) 2015 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Author: Leonardo de Moura, Jeremy Avigad, Minchao Wu, Mario Carneiro
Finite sets.
-/
import logic.embedding order.boolean_algebra algebra.order_functions
data.multiset data.sigma.basi... |
5b878d75f9b2a77914cd535297d0d1bd69603efa | 4727251e0cd73359b15b664c3170e5d754078599 | /src/analysis/calculus/fderiv_symmetric.lean | 287cb61dec0ea7ce0f42a4b4fbb703993bc6c9c8 | [
"Apache-2.0"
] | permissive | Vierkantor/mathlib | 0ea59ac32a3a43c93c44d70f441c4ee810ccceca | 83bc3b9ce9b13910b57bda6b56222495ebd31c2f | refs/heads/master | 1,658,323,012,449 | 1,652,256,003,000 | 1,652,256,003,000 | 209,296,341 | 0 | 1 | Apache-2.0 | 1,568,807,655,000 | 1,568,807,655,000 | null | UTF-8 | Lean | false | false | 19,075 | 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 analysis.calculus.deriv
import analysis.calculus.mean_value
import analysis.convex.topology
/-!
# Symmetry of the second derivative
We show that, over ... |
a9b49fb304a57b298fbc1bb94265bd174e1cd863 | f618aea02cb4104ad34ecf3b9713065cc0d06103 | /src/data/zsqrtd/basic.lean | a42dd222b73e92e0e66a7ca1210b299b5ee3458c | [
"Apache-2.0"
] | permissive | joehendrix/mathlib | 84b6603f6be88a7e4d62f5b1b0cbb523bb82b9a5 | c15eab34ad754f9ecd738525cb8b5a870e834ddc | refs/heads/master | 1,589,606,591,630 | 1,555,946,393,000 | 1,555,946,393,000 | 182,813,854 | 0 | 0 | null | 1,555,946,309,000 | 1,555,946,308,000 | null | UTF-8 | Lean | false | false | 26,935 | 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 algebra.associated data.nat.gcd
local attribute [instance, priority 0] nat.cast_coe
local attribute [instance, priority 0] int.cast_coe
/-- The... |
56393c6e3eaa1b4273bd160c837cd17d4fcb6f66 | b70447c014d9e71cf619ebc9f539b262c19c2e0b | /hott/cubical/cube.hlean | c213e177862bc25525dda23ad8c9edae6bbb3273 | [
"Apache-2.0"
] | permissive | ia0/lean2 | c20d8da69657f94b1d161f9590a4c635f8dc87f3 | d86284da630acb78fa5dc3b0b106153c50ffccd0 | refs/heads/master | 1,611,399,322,751 | 1,495,751,007,000 | 1,495,751,007,000 | 93,104,167 | 0 | 0 | null | 1,496,355,488,000 | 1,496,355,487,000 | null | UTF-8 | Lean | false | false | 19,007 | hlean | /-
Copyright (c) 2015 Floris van Doorn. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Author: Floris van Doorn, Jakob von Raumer
Cubes
-/
import .square
open equiv is_equiv sigma sigma.ops
namespace eq
inductive cube {A : Type} {a₀₀₀ : A} : Π{a₂₀₀ a₀₂₀ a₂₂₀ a₀₀₂ a₂₀₂ a₀... |
73d23375ac77b86bf02f8121a081acf06a958c42 | ea5678cc400c34ff95b661fa26d15024e27ea8cd | /computable_em2.lean | 4255051469d310f465bfd198e25ec580e2473f06 | [] | no_license | ChrisHughes24/leanstuff | dca0b5349c3ed893e8792ffbd98cbcadaff20411 | 9efa85f72efaccd1d540385952a6acc18fce8687 | refs/heads/master | 1,654,883,241,759 | 1,652,873,885,000 | 1,652,873,885,000 | 134,599,537 | 1 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 3,070 | lean | import data.set.lattice order.order_iso data.quot
#print fintype
universes u v
Π (X Y : C), (f : X ⟶ Z) (g : Y ⟶ Z)
noncomputable theory
axiom choice2_aux {α : Sort u} : { choice : α → α // ∀ (a b : α), choice a = choice b }
def choice2 : Π {α : Sort u}, α → α := λ _, choice2_aux.1
lemma choice2_spec : ∀ {α : Sort u... |
6d75cd4f815dbfda1476d8fe09aa84b13b012dc7 | 7cef822f3b952965621309e88eadf618da0c8ae9 | /src/algebra/commute.lean | c34b76709a99ae8890e13fccff4054d02385f6f8 | [
"Apache-2.0"
] | permissive | rmitta/mathlib | 8d90aee30b4db2b013e01f62c33f297d7e64a43d | 883d974b608845bad30ae19e27e33c285200bf84 | refs/heads/master | 1,585,776,832,544 | 1,576,874,096,000 | 1,576,874,096,000 | 153,663,165 | 0 | 2 | Apache-2.0 | 1,544,806,490,000 | 1,539,884,365,000 | Lean | UTF-8 | Lean | false | false | 14,262 | lean | /-
Copyright (c) 2019 Neil Strickland. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Neil Strickland, Yury Kudryashov
-/
import algebra.semiconj group_theory.submonoid group_theory.subgroup ring_theory.subring
/-!
# Commuting pairs of elements in monoids
## Main de... |
9c33aa51328c81cda8d9a0d12bdc71ffe137222e | 218e2afdf9209a5f82db7ac0089f79064e52bd80 | /lean/src/chapter_3.lean | ffb61c01b72922d27ef55ef71e0218bf229e27be | [
"MIT",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | mk12/analysis-i | 1f022e81cdc5cae5b25360f93000186874e1d02b | e85deae5441f705d9284eeb204c9c3ecb450c93a | refs/heads/main | 1,637,808,582,073 | 1,636,857,479,000 | 1,636,857,479,000 | 67,387,570 | 8 | 1 | null | null | null | null | UTF-8 | Lean | false | false | 38,833 | lean | -- Copyright 2016 Mitchell Kember. Subject to the MIT ficense.
-- Formalization of Analysis I: Chapter 3
import .common .chapter_2
open classical (by_cases by_contradiction some some_spec)
namespace chapter_3
-- Definition 3.1.1: A set is an unordered collection of objects
def set (α : Type) : Type := α → Prop
nam... |
856470dde82952dbb5d51f61534212bb6eb3f026 | cf39355caa609c0f33405126beee2739aa3cb77e | /tests/lean/run/whnf_mvar.lean | 845783682e14a9ccfdfd60d5843ead16c199d61a | [
"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 | 377 | lean | open tactic
example (x : nat) : true :=
by do
m ← mk_mvar,
x ← get_local `x,
unify m x,
guard (m ≠ x),
m' ← whnf m,
guard (m' = x),
constructor
example (x : nat) : true :=
by do
m ← mk_mvar,
z ← to_expr ``(0),
e ← to_expr ``(@nat.rec (λ _, bool) ff (λ _ _, tt) %%m) tt ff,
unify m z,
e' ← whnf ... |
20c5c7c78dd46ff04f853d2583fae67e79844ba6 | 94e33a31faa76775069b071adea97e86e218a8ee | /src/data/zmod/basic.lean | 9a49c33fa81a595c56243996ec9d5ce73a919cd0 | [
"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 | 33,227 | 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 algebra.char_p.basic
import tactic.fin_cases
/-!
# Integers mod `n`
Definition of the integers mod n, and the field structure on the integers mod p.
## Defini... |
efbf46d802b72406aea3549df74233757077ec3e | 19cc34575500ee2e3d4586c15544632aa07a8e66 | /src/algebra/free_algebra.lean | 9f45900b0d2e814191fa4be8124b312263fd7b0f | [
"Apache-2.0"
] | permissive | LibertasSpZ/mathlib | b9fcd46625eb940611adb5e719a4b554138dade6 | 33f7870a49d7cc06d2f3036e22543e6ec5046e68 | refs/heads/master | 1,672,066,539,347 | 1,602,429,158,000 | 1,602,429,158,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 11,706 | lean | /-
Copyright (c) 2020 Adam Topaz. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Author: Scott Morrison, Adam Topaz.
-/
import algebra.monoid_algebra
import linear_algebra
/-!
# Free Algebras
Given a commutative semiring `R`, and a type `X`, we construct the free `R`-algebra ... |
9bdbb35f9296d59b07afa319942204bd4939e1f0 | 592ee40978ac7604005a4e0d35bbc4b467389241 | /Library/generated/mathscheme-lean/LieRing.lean | dd6abd6dcf80085f12bf45a0dd7613e6e602358c | [] | no_license | ysharoda/Deriving-Definitions | 3e149e6641fae440badd35ac110a0bd705a49ad2 | dfecb27572022de3d4aa702cae8db19957523a59 | refs/heads/master | 1,679,127,857,700 | 1,615,939,007,000 | 1,615,939,007,000 | 229,785,731 | 4 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 15,591 | lean | import init.data.nat.basic
import init.data.fin.basic
import data.vector
import .Prelude
open Staged
open nat
open fin
open vector
section LieRing
structure LieRing (A : Type) : Type :=
(zero : A)
(plus : (A → (A → A)))
(times : (A → (A → A)))
(jacobian_times_plus : (∀ {x y z : A} , (... |
770b549239191c60e30ede7fd4f077aa89d57409 | aa3f8992ef7806974bc1ffd468baa0c79f4d6643 | /library/algebra/ordered_group.lean | 39e8a5ef815e75701d8427f4b9698ca10c80ca41 | [
"Apache-2.0"
] | permissive | codyroux/lean | 7f8dff750722c5382bdd0a9a9275dc4bb2c58dd3 | 0cca265db19f7296531e339192e9b9bae4a31f8b | refs/heads/master | 1,610,909,964,159 | 1,407,084,399,000 | 1,416,857,075,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 7,692 | lean | /-
Copyright (c) 2014 Jeremy Avigad. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Module: algebra.ordered_group
Authors: Jeremy Avigad
Partially ordered additive groups. Modeled on Isabelle's library. The comments below indicate that
we could refine the structures, though w... |
751911f4e4df46dd50b5271c9bb67fc9e776a446 | a9d0fb7b0e4f802bd3857b803e6c5c23d87fef91 | /tests/lean/run/simplifier_canonize_subsingletons.lean | 10f9ba80dbb49ba2a1fa46ae0392c6a50f99ab6a | [
"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 | 2,720 | lean | open tactic
namespace synth_congr
universe variable l
constants (ss : Π {A : Type.{l}}, A → Type.{l})
[ss_ss : ∀ T (t : T), subsingleton (ss t)]
(A : Type.{l})
(a₁ a₁' : A) (H₁ : a₁ = a₁')
(ss₁ : ss a₁)
(ss₁' : ss a₁')
(f : Π (X : Type.{l}) (x₁ : X) (ss_x₁ ... |
6fae82355a506e2bd415e7a2f366856068e8ec13 | 6432ea7a083ff6ba21ea17af9ee47b9c371760f7 | /src/Init/Data/Nat/SOM.lean | f021500d8877ac614999cd2273b494d909526379 | [
"Apache-2.0",
"LLVM-exception",
"NCSA",
"LGPL-3.0-only",
"LicenseRef-scancode-inner-net-2.0",
"BSD-3-Clause",
"LGPL-2.0-or-later",
"Spencer-94",
"LGPL-2.1-or-later",
"HPND",
"LicenseRef-scancode-pcre",
"ISC",
"LGPL-2.1-only",
"LicenseRef-scancode-other-permissive",
"SunPro",
"CMU-Mach"... | permissive | leanprover/lean4 | 4bdf9790294964627eb9be79f5e8f6157780b4cc | f1f9dc0f2f531af3312398999d8b8303fa5f096b | refs/heads/master | 1,693,360,665,786 | 1,693,350,868,000 | 1,693,350,868,000 | 129,571,436 | 2,827 | 311 | Apache-2.0 | 1,694,716,156,000 | 1,523,760,560,000 | Lean | UTF-8 | Lean | false | false | 6,775 | 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
-/
prelude
import Init.Data.Nat.Linear
import Init.Data.List.BasicAux
namespace Nat.SOM
open Linear (Var hugeFuel Context Var.denote)
inductive Expr where
... |
3669d8d81a17500a1c29cca0afccc872619cb4df | 4727251e0cd73359b15b664c3170e5d754078599 | /src/measure_theory/function/ess_sup.lean | 469004444c9663df682a5f8c52c23d206f99cb06 | [
"Apache-2.0"
] | permissive | Vierkantor/mathlib | 0ea59ac32a3a43c93c44d70f441c4ee810ccceca | 83bc3b9ce9b13910b57bda6b56222495ebd31c2f | refs/heads/master | 1,658,323,012,449 | 1,652,256,003,000 | 1,652,256,003,000 | 209,296,341 | 0 | 1 | Apache-2.0 | 1,568,807,655,000 | 1,568,807,655,000 | null | UTF-8 | Lean | false | false | 9,861 | lean | /-
Copyright (c) 2021 Rémy Degenne. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Rémy Degenne
-/
import measure_theory.constructions.borel_space
import order.filter.ennreal
/-!
# Essential supremum and infimum
We define the essential supremum and infimum of a functi... |
0e20b7166f3dd8f95df1296618bb139cd909fbc8 | fa02ed5a3c9c0adee3c26887a16855e7841c668b | /src/ring_theory/polynomial/homogeneous.lean | e752df851cfe03152ec73427f3ec542a9d7d02d3 | [
"Apache-2.0"
] | permissive | jjgarzella/mathlib | 96a345378c4e0bf26cf604aed84f90329e4896a2 | 395d8716c3ad03747059d482090e2bb97db612c8 | refs/heads/master | 1,686,480,124,379 | 1,625,163,323,000 | 1,625,163,323,000 | 281,190,421 | 2 | 0 | Apache-2.0 | 1,595,268,170,000 | 1,595,268,169,000 | null | UTF-8 | Lean | false | false | 9,773 | 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 algebra.algebra.operations
import data.fintype.card
import algebra.direct_sum_graded
/-!
# Homogeneous polynomials
A multivariate ... |
a72504f6d14f80c6041c10e96b7523c622566f7d | 592ee40978ac7604005a4e0d35bbc4b467389241 | /Library/generated/mathscheme-lean/RightPreSemiring.lean | 9d9e1dbcf5a2225b0c9b92eec38e8d9044bcd8e5 | [] | no_license | ysharoda/Deriving-Definitions | 3e149e6641fae440badd35ac110a0bd705a49ad2 | dfecb27572022de3d4aa702cae8db19957523a59 | refs/heads/master | 1,679,127,857,700 | 1,615,939,007,000 | 1,615,939,007,000 | 229,785,731 | 4 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 9,761 | lean | import init.data.nat.basic
import init.data.fin.basic
import data.vector
import .Prelude
open Staged
open nat
open fin
open vector
section RightPreSemiring
structure RightPreSemiring (A : Type) : Type :=
(times : (A → (A → A)))
(plus : (A → (A → A)))
(associative_times : (∀ {x y z : A} , (ti... |
f1196d1c6798866fb835ae263a216a568805b305 | bb31430994044506fa42fd667e2d556327e18dfe | /src/data/list/big_operators/lemmas.lean | 520d2cbba6d992fb399baeaefa696bf924d77b82 | [
"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 | 5,828 | 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, Floris van Doorn, Sébastien Gouëzel, Alex J. Best
-/
import data.list.big_operators.basic
import algebra.group.opposite
import algebra.group_power.basic
import algebra.... |
fa0f3c36798b908e9cc1f37754eaebc650429d49 | 670b1582ba4780d3b4a49063d5afea44a337bc24 | /src/premise_selection.lean | c00ee30492fd34aff570d7d61ffedace75c46b83 | [] | no_license | robertylewis/Lean_hammer | 9bd8a75cb6fc76b3387c84f0678ccfd69fa10c88 | 7c8b6235c064fac164cbd389c8d459bd106e09b1 | refs/heads/master | 1,587,608,490,192 | 1,550,228,670,000 | 1,550,228,670,000 | 170,843,813 | 0 | 0 | null | 1,550,225,214,000 | 1,550,225,213,000 | null | UTF-8 | Lean | false | false | 10,591 | lean | --#######################
--## Premise selection ##
--#######################
-- Relies on old cold from Rob: https://github.com/robertylewis/relevance_filter/tree/dev_lean_reparam
import meta.rb_map data.list.basic data.nat.sqrt
open tactic
open native
meta def collect_consts (e : expr) : name_set :=
e.fold mk_name_... |
9f784f7c601f1895f0f3a283b827780ca956914d | 57c233acf9386e610d99ed20ef139c5f97504ba3 | /src/order/filter/lift.lean | f53d620e87e83a546a17ecc10abd864ca629b213 | [
"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 | 21,954 | 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 order.filter.bases
/-!
# Lift filters along filter and set functions
-/
open set
open_locale classical filter
namespace filter
variables {α : Type*} {β : T... |
f8da2a7d8f31db9b9a3c48e6985ae1892584b7b9 | e9dbaaae490bc072444e3021634bf73664003760 | /src/Background/Real.lean | 2f5f19a2033e7c1454f23dc4f151b1dadf705314 | [
"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 | 3,299 | lean | import Geo.Util
axiom Real : Type
notation `ℝ` := Real
class HasPi (α : Type) : Type := (pi {} : α)
notation `π` := HasPi.pi
namespace Real
noncomputable instance : HasOfNat ℝ := ⟨WIP⟩
noncomputable instance : HasAdd ℝ := ⟨WIP⟩
noncomputable instance : HasMul ℝ := ⟨WIP⟩
noncomputable instance : HasNeg ℝ := ⟨WIP⟩
no... |
bbe397dc2d0992c5aeadfdff7feb26ce1adc821c | 08bd4ba4ca87dba1f09d2c96a26f5d65da81f4b4 | /tests/pkg/user_attr/UserAttr/Tst.lean | 621bd1ee3fa3c2bfba9ecd9585d5a9ec24828bf0 | [
"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",
"Apache-2.0",
"LicenseRef-scancode-other-permissive",
"SunPro",
"CMU-Mach"... | permissive | gebner/lean4 | d51c4922640a52a6f7426536ea669ef18a1d9af5 | 8cd9ce06843c9d42d6d6dc43d3e81e3b49dfc20f | refs/heads/master | 1,685,732,780,391 | 1,672,962,627,000 | 1,673,459,398,000 | 373,307,283 | 0 | 0 | Apache-2.0 | 1,691,316,730,000 | 1,622,669,271,000 | Lean | UTF-8 | Lean | false | false | 2,257 | lean | import Lean
import UserAttr.BlaAttr
@[bla] def f (x : Nat) := x + 2
@[bla] def g (x : Nat) := x + 1
@[foo 10] def h1 (x : Nat) := 2*x + 1
@[foo 20 important] def h2 (x : Nat) := 2*x + 1
open Lean in
def hasBlaAttr (declName : Name) : CoreM Bool :=
return blaAttr.hasTag (← getEnv) declName
#eval hasBlaAttr ``f
#ev... |
014ef755ddda154d39abb34ca20d872770ebb106 | dfd42d30132c2867977fefe7edae98b6dc703aeb | /src/alexandroff.lean | 11f542786b5acb7a25cd46e27b7f46ce91850420 | [] | no_license | justadzr/lean-2021 | 1e42057ac75c794c94b8f148a27a24150c685f68 | dfc6b30de2f27bdba5fbc51183e2b84e73a920d1 | refs/heads/master | 1,689,652,366,522 | 1,630,313,809,000 | 1,630,313,809,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 12,664 | lean | /-
Copyright (c) 2021 Yourong Zang. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Yourong Zang
-/
import topology.separation
import topology.opens
/-!
# The Alexandroff Compactification
We construct the Alexandroff compactification of an arbitrary topological space `... |
5f50d6392527c8e7454e2ffbb706da1c76c63ec7 | a047a4718edfa935d17231e9e6ecec8c7b701e05 | /src/data/fin.lean | b25a260a051eba43cf7d8274516a69db44a06611 | [
"Apache-2.0"
] | permissive | utensil-contrib/mathlib | bae0c9fafe5e2bdb516efc89d6f8c1502ecc9767 | b91909e77e219098a2f8cc031f89d595fe274bd2 | refs/heads/master | 1,668,048,976,965 | 1,592,442,701,000 | 1,592,442,701,000 | 273,197,855 | 0 | 0 | null | 1,592,472,812,000 | 1,592,472,811,000 | null | UTF-8 | Lean | false | false | 29,871 | lean | /-
Copyright (c) 2017 Robert Y. Lewis. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Robert Y. Lewis, Keeley Hoek
-/
import data.nat.cast
/-!
# The finite type with `n` elements
`fin n` is the type whose elements are natural numbers smaller than `n`.
This file expand... |
ab1e0232b9765e90aa983b483a9d166aa65d7c10 | 57c233acf9386e610d99ed20ef139c5f97504ba3 | /src/dynamics/omega_limit.lean | 2ae5f51f212f0058bcc2cf32d737531870cfb9c5 | [
"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 | 16,544 | lean | /-
Copyright (c) 2020 Jean Lo. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Jean Lo
-/
import dynamics.flow
/-!
# ω-limits
For a function `ϕ : τ → α → β` where `β` is a topological space, we
define the ω-limit under `ϕ` of a set `s` in `α` with respect to
filter `f... |
f9bb355c9167961e4c6fcc527240812b745b60e1 | 88fb7558b0636ec6b181f2a548ac11ad3919f8a5 | /tests/lean/run/check_constants.lean | 617359d0a55413750cf026548bc2e7da53938ad0 | [
"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 | 14,778 | lean | -- DO NOT EDIT, automatically generated file, generator scripts/gen_constants_cpp.py
import smt system.io
open tactic
meta def script_check_id (n : name) : tactic unit :=
do env ← get_env, (env^.get n >> return ()) <|> (guard $ env^.is_namespace n) <|> (attribute.get_instances n >> return ()) <|> fail ("identifier '" +... |
54c3311d81a2506c45ade40178332ed48cb2bd2b | d1a52c3f208fa42c41df8278c3d280f075eb020c | /stage0/src/Lean/Elab/Config.lean | d71ce32b6d9632832fa66b4bec61ff728f747975 | [
"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,923 | 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.Basic
namespace Lean.Elab.Term
/-
Set isDefEq configuration for the elaborator.
Note that we enable all approximations but `quasiPatt... |
c124ca59969ce0717afc3f85f26c70a8f334412a | d406927ab5617694ec9ea7001f101b7c9e3d9702 | /src/measure_theory/measure/measure_space_def.lean | 05d8b15e52c616f9189cdf42c5ffa7a197ac8dc3 | [
"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 | 23,117 | 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 measure_theory.measure.outer_measure
import order.filter.countable_Inter
/-!
# Measure spaces
This file defines measure spaces, the almost-ev... |
ca4663bf7aa20c00b4f4c576794d41d1b8742890 | 367134ba5a65885e863bdc4507601606690974c1 | /src/category_theory/monoidal/braided.lean | ebba1224e877a544cc02f6642fea86ce12a048fd | [
"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 | 11,472 | 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.natural_transformation
import category_theory.monoidal.discrete
/-!
# Braided and symmetric monoidal categories
The basic definition... |
e6ea3305dcd0e665588d8ba0c9d5ca9f488f735d | 4727251e0cd73359b15b664c3170e5d754078599 | /src/data/matrix/rank.lean | 9e03e4559ebb7fa65357ef1b828da1b43bafbce7 | [
"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 | 3,690 | 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 linear_algebra.free_module.finite.rank
/-!
# Rank of matrices
The rank of a matrix `A` is defined to be the rank of range of the linear map corresponding to... |
be4c48bb1366ce414dde2ecc2e7fc273473a488e | 1abd1ed12aa68b375cdef28959f39531c6e95b84 | /src/analysis/convex/cone.lean | be1ed0a2ab4af7045f6e87936a11a53c7ededd84 | [
"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,228 | lean | /-
Copyright (c) 2020 Yury Kudryashov All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Yury Kudryashov, Frédéric Dupuis
-/
import analysis.convex.hull
import analysis.inner_product_space.basic
/-!
# Convex cones
In a `𝕜`-module `E`, we define a convex cone as a set `s... |
25321d626b915c5b0cfaa223bc818f62a853aadb | 35677d2df3f081738fa6b08138e03ee36bc33cad | /test/localized/import3.lean | 8d59d3fff76eece522c10300ce0e6213c4658b11 | [
"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 | 332 | lean | import .import1 .import2
/- this file tests that declararing the same or similar notation in two different files will rarely cause errors. We will get an error if we add the same command to the same namespace in the same environment in two different files, and then import them both. (e.g. if we remove `nat` in file `i... |
279d772e47dbdb8781b04a660252286950242341 | cf39355caa609c0f33405126beee2739aa3cb77e | /library/init/data/sigma/lex.lean | d7016335d076bde68415ba8ec9b9f5deb80c8a9d | [
"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 | 5,726 | 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.sigma.basic init.meta
universes u v
namespace psigma
section
variables {α : Sort u} {β : α → Sort v}
variable (r : α → α → Pro... |
2d64a2b59c9efd1e6937968cae624fa6a1b44da4 | 3d2a7f1582fe5bae4d0bdc2fe86e997521239a65 | /cs-lib/src/bs_test.lean | 4938e70f0abf70505c7ff6605ea89bb1f21bc7fe | [] | no_license | own-pt/common-sense-lean | e4fa643ae010459de3d1bf673be7cbc7062563c9 | f672210aecb4172f5bae265e43e6867397e13b1c | refs/heads/master | 1,622,065,660,261 | 1,589,487,533,000 | 1,589,487,533,000 | 254,167,782 | 3 | 2 | null | 1,589,487,535,000 | 1,586,370,214,000 | Lean | UTF-8 | Lean | false | false | 503 | lean | import bs_merge_test
constants SpinalColumn BananaSlug10 : U
/- SUMO axioms -/
/- EDITED (see https://github.com/own-pt/cl-krr/issues/23) -/
axiom a72773 : ∀ a : U, ((ins a Animal)
∧ (¬ ∃ p : U, ins p SpinalColumn ∧ part p a))
→ ¬ ins a Vertebrate
/- EDITED -/
axiom a72774 : ¬ ∃ s : U, ins s SpinalColumn ∧ pa... |
213f18241a190d0a0902906fb915cf2e22f183bb | 5c7fe6c4a9d4079b5457ffa5f061797d42a1cd65 | /src/exercises/src_08_or_introduction.lean | 1c3550586fb387064a841ad6017b37a4e931a947 | [] | 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,309 | lean | import .src_07_existential_quantification
variables p q r : Prop
namespace mth1001
section or_introduction
/-
Given `p`, we know `p ∨ q`. Given `q`, we know `p ∨ q`. This is called or introduction.
The symbol `∨` is written `\or`.
-/
-- Left or introduction
example (h : p) : p ∨ q :=
or.inl h
-- Right or introdu... |
e889220862637f06d2661c4ff85f564863b7be84 | 80cc5bf14c8ea85ff340d1d747a127dcadeb966f | /src/geometry/manifold/times_cont_mdiff.lean | 2e087934f8ba30294c29032a46a84390a461b704 | [
"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 | 69,557 | lean | /-
Copyright (c) 2020 Sébastien Gouëzel. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Sébastien Gouëzel
-/
import geometry.manifold.mfderiv
import geometry.manifold.local_invariant_properties
/-!
# Smooth functions between smooth manifolds
We define `Cⁿ` functions... |
5ca7569d84601fd03c236dbcd5cee177feecb015 | 367134ba5a65885e863bdc4507601606690974c1 | /src/algebra/module/opposites.lean | 69907bed25869b7d03a5b080a7dc1558f5f5059e | [
"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 | 1,607 | 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 algebra.module.linear_map
import algebra.opposites
/-!
# Module operations on `Mᵒᵖ`
This file contains definitions that could not be placed into `algebra.opposites... |
891781107c8dfbfba136dc5e7d1b32a226739086 | 8cae430f0a71442d02dbb1cbb14073b31048e4b0 | /src/data/polynomial/degree/lemmas.lean | 260b20daee6a5828a514f266684edc21af221416 | [
"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 | 12,980 | lean | /-
Copyright (c) 2018 Chris Hughes. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Chris Hughes, Johannes Hölzl, Scott Morrison, Jens Wagemaker
-/
import data.polynomial.eval
/-!
# Theory of degrees of polynomials
> THIS FILE IS SYNCHRONIZED WITH MATHLIB4.
> Any chan... |
d9c64e418fcd966be730d09be059bd243e0d66d9 | 302b541ac2e998a523ae04da7673fd0932ded126 | /tests/bench/filter.lean | 9e11135a37f7135fed7dd77e2da367c8509c9a45 | [] | no_license | mattweingarten/lambdapure | 4aeff69e8e3b8e78ea3c0a2b9b61770ef5a689b1 | f920a4ad78e6b1e3651f30bf8445c9105dfa03a8 | refs/heads/master | 1,680,665,168,790 | 1,618,420,180,000 | 1,618,420,180,000 | 310,816,264 | 2 | 1 | null | null | null | null | UTF-8 | Lean | false | false | 451 | lean | set_option trace.compiler.ir.init true
inductive L
| Nil
| Cons : Nat -> L -> L
open L
instance : Inhabited L := ⟨Nil⟩
def filter : L -> L
| Nil => Nil
| Cons n l => if n > 5 then filter l else Cons n (filter l)
partial def make' : Nat -> Nat -> L
| n,d =>
if d = 0 then Cons n Nil
else Cons (n-... |
32ef7c9e3287fefcc8978381587f06613a548f17 | cf39355caa609c0f33405126beee2739aa3cb77e | /tests/lean/run/auto_param.lean | 4c6f214dffa52d2f85fda3534eb15ac47c3ccb88 | [
"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 | 634 | lean | open tactic
meta def my_tac : tactic unit :=
assumption <|> abstract (comp_val >> skip) <|> fail "my_tac failed to synthesize auto_param"
def f (x : nat) (h : auto_param (x > 0) `my_tac) : nat :=
nat.pred x
#check f 12
#check f 13
lemma f_inj {x₁ x₂ : nat} {h₁ : x₁ > 0} {h₂ : x₂ > 0} : f x₁ = f x₂ → x₁ = x₂ :=
begi... |
4e60f5a22b98b65909fd273fc4dd91a1aa60c46a | 367134ba5a65885e863bdc4507601606690974c1 | /src/analysis/calculus/formal_multilinear_series.lean | ffb944596c6d262181e8806129a761194b7d2b78 | [
"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 | 5,015 | lean | /-
Copyright (c) 2019 Sébastien Gouëzel. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Author: Sébastien Gouëzel
-/
import analysis.normed_space.multilinear
import ring_theory.power_series.basic
/-!
# Formal multilinear series
In this file we define `formal_multilinear_serie... |
1aec2ee131196706f60d2ca38512fa1124c972d0 | bf532e3e865883a676110e756f800e0ddeb465be | /analysis/topology/topological_space.lean | b52811dfafa8e75b569c47cbf0cff9e99dbeb8e4 | [
"Apache-2.0"
] | permissive | aqjune/mathlib | da42a97d9e6670d2efaa7d2aa53ed3585dafc289 | f7977ff5a6bcf7e5c54eec908364ceb40dafc795 | refs/heads/master | 1,631,213,225,595 | 1,521,089,840,000 | 1,521,089,840,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 50,482 | 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
Theory of topological spaces.
Parts of the formalization is based on the books:
N. Bourbaki: General Topology
I. M. James: Topologies and Uniformit... |
99dac65d2598e767bedd46f5a17b949b91fd6c37 | 77c5b91fae1b966ddd1db969ba37b6f0e4901e88 | /src/analysis/convex/hull.lean | c1edbf3a56dd5dc172955b76d10e2737fcb130e7 | [
"Apache-2.0"
] | permissive | dexmagic/mathlib | ff48eefc56e2412429b31d4fddd41a976eb287ce | 7a5d15a955a92a90e1d398b2281916b9c41270b2 | refs/heads/master | 1,693,481,322,046 | 1,633,360,193,000 | 1,633,360,193,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 5,248 | lean | /-
Copyright (c) 2020 Yury Kudriashov. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Yury Kudriashov, Yaël Dillies
-/
import analysis.convex.basic
import order.closure
/-!
# Convex hull
This file defines the convex hull of a set `s` in a module. `convex_hull 𝕜 s` i... |
5c688ab403365b994bcc6ae6008b67587a26342b | 367134ba5a65885e863bdc4507601606690974c1 | /src/group_theory/subgroup.lean | c9ae4b7b64ec6088ed34e9d88e7e0dca53020bf6 | [
"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 | 58,368 | lean | /-
Copyright (c) 2020 Kexing Ying. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Kexing Ying
-/
import group_theory.submonoid
import algebra.group.conj
import algebra.pointwise
import order.modular_lattice
/-!
# Subgroups
This file defines multiplicative and additiv... |
ed5142fb315a4fbe6aeb46ec53d03c958840ead6 | c5b07d17b3c9fb19e4b302465d237fd1d988c14f | /src/isos/one.lean | c2dea88e53c0d405bbc8af50d73be4544c612de9 | [
"MIT"
] | permissive | skaslev/papers | acaec61602b28c33d6115e53913b2002136aa29b | f15b379f3c43bbd0a37ac7bb75f4278f7e901389 | refs/heads/master | 1,665,505,770,318 | 1,660,378,602,000 | 1,660,378,602,000 | 14,101,547 | 0 | 1 | MIT | 1,595,414,522,000 | 1,383,542,702,000 | Lean | UTF-8 | Lean | false | false | 203 | lean | import isos.fseq_ogf
namespace one
-- 1 = Σ n:ℕ, δ(0,n) xⁿ
def ogf_iso {A} : 1 ≃ ogf (delta 0) A :=
fseq.one_iso⁻¹ ⋆ fseq.ogf_iso
instance : has_ogf₁ 1 :=
⟨delta 0, ogf_iso⟩
end one
|
d889082965173466598a94f5632090a84ee035e7 | 63abd62053d479eae5abf4951554e1064a4c45b4 | /src/measure_theory/content.lean | d2ad055a206b177fc99f2de7a2d63b60b5ca6881 | [
"Apache-2.0"
] | permissive | Lix0120/mathlib | 0020745240315ed0e517cbf32e738d8f9811dd80 | e14c37827456fc6707f31b4d1d16f1f3a3205e91 | refs/heads/master | 1,673,102,855,024 | 1,604,151,044,000 | 1,604,151,044,000 | 308,930,245 | 0 | 0 | Apache-2.0 | 1,604,164,710,000 | 1,604,163,547,000 | null | UTF-8 | Lean | false | false | 12,366 | 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... |
682a2f3b2b7b77e0bd484f3bf9205d798dcf56af | 4727251e0cd73359b15b664c3170e5d754078599 | /src/analysis/normed_space/conformal_linear_map.lean | bb6ca05abae679f6c0bfa67df28e68551a412001 | [
"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 | 3,528 | lean | /-
Copyright (c) 2021 Yourong Zang. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Yourong Zang
-/
import analysis.normed_space.basic
import analysis.normed_space.linear_isometry
/-!
# Conformal Linear Maps
A continuous linear map between `R`-normed spaces `X` and `Y... |
9462d2c398832a1455b1d28a2e716e669461e1f3 | fa02ed5a3c9c0adee3c26887a16855e7841c668b | /src/category_theory/monoidal/transport.lean | 39767f170979f57e236a7d970ffee8724c84e734 | [
"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 | 11,347 | 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.natural_transformation
/-!
# Transport a monoidal structure along an equivalence.
When `C` and `D` are equivalent as categories,
we ... |
aea3b40e7376d6fcc1358ca019386538c3de1170 | aa5a655c05e5359a70646b7154e7cac59f0b4132 | /stage0/src/Lean/Elab/Tactic/Generalize.lean | aed41f3c65825acf568747bc5e038b76c03ad433 | [
"Apache-2.0"
] | permissive | lambdaxymox/lean4 | ae943c960a42247e06eff25c35338268d07454cb | 278d47c77270664ef29715faab467feac8a0f446 | refs/heads/master | 1,677,891,867,340 | 1,612,500,005,000 | 1,612,500,005,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 2,836 | lean | /-
Copyright (c) 2020 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Leonardo de Moura, Sebastian Ullrich
-/
import Lean.Meta.Tactic.Generalize
import Lean.Meta.Check
import Lean.Meta.Tactic.Intro
import Lean.Elab.Tactic.ElabTerm
namespace Lean.... |
15f3b661a6c0313143f12dd0c00d8e28532ba65b | efce24474b28579aba3272fdb77177dc2b11d7aa | /src/homotopy_theory/formal/i_category/homotopy_equivalences.lean | 8e70dd0c13231ebe7f6a85b934d2b90c6fc4b9a8 | [
"Apache-2.0"
] | permissive | rwbarton/lean-homotopy-theory | cff499f24268d60e1c546e7c86c33f58c62888ed | 39e1b4ea1ed1b0eca2f68bc64162dde6a6396dee | refs/heads/lean-3.4.2 | 1,622,711,883,224 | 1,598,550,958,000 | 1,598,550,958,000 | 136,023,667 | 12 | 6 | Apache-2.0 | 1,573,187,573,000 | 1,528,116,262,000 | Lean | UTF-8 | Lean | false | false | 1,612 | lean | import data.quot
import .homotopy_classes
universes v u
open category_theory
local notation f ` ∘ `:80 g:80 := g ≫ f
namespace homotopy_theory.cofibrations
-- Homotopy equivalences as the weak equivalences of an I-category.
open homotopy_theory.weak_equivalences
variables {C : Type u} [category.{v} C]
[has_initia... |
7fb2e982fddb3147d29a9852ec42d5056983d431 | 4727251e0cd73359b15b664c3170e5d754078599 | /src/data/real/conjugate_exponents.lean | c11da7181c8e228ae520b375b764d908b490503c | [
"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 | 3,814 | lean | /-
Copyright (c) 2020 Sébastien Gouëzel. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Sébastien Gouëzel, Yury Kudryashov
-/
import data.real.ennreal
/-!
# Real conjugate exponents
`p.is_conjugate_exponent q` registers the fact that the real numbers `p` and `q` are ... |
27eeb68d3ce5122d255ff68da9b03a77a3612b85 | 46125763b4dbf50619e8846a1371029346f4c3db | /src/order/lattice.lean | 696ad98432d1121f5d1eb294fc59decd2ccc82ab | [
"Apache-2.0"
] | permissive | thjread/mathlib | a9d97612cedc2c3101060737233df15abcdb9eb1 | 7cffe2520a5518bba19227a107078d83fa725ddc | refs/heads/master | 1,615,637,696,376 | 1,583,953,063,000 | 1,583,953,063,000 | 246,680,271 | 0 | 0 | Apache-2.0 | 1,583,960,875,000 | 1,583,960,875,000 | null | UTF-8 | Lean | false | false | 16,943 | 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
Defines the inf/sup (semi)-lattice with optionally top/bot type class hierarchy.
-/
import order.basic
set_option old_structure_cmd true
universes u v w
-- TODO: mo... |
089d967351af2562f76c9ff1cb8909e031da0c87 | 74addaa0e41490cbaf2abd313a764c96df57b05d | /Mathlib/data/mv_polynomial/counit_auto.lean | 5e607408de7c1faff08612bcb28f540de571f35e | [] | 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,572 | 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 Mathlib.PrePort
import Mathlib.Lean3Lib.init.default
import Mathlib.data.mv_polynomial.basic
import Mathlib.PostPort
universes u_1 u_2 u_3
namespace Mathlib... |
2793dadfe0e470b884f17efa2890deabb71d07ba | 491068d2ad28831e7dade8d6dff871c3e49d9431 | /library/algebra/order.lean | 017d517a85109ba8e809c85db09c3560cb8d9190 | [
"Apache-2.0"
] | permissive | davidmueller13/lean | 65a3ed141b4088cd0a268e4de80eb6778b21a0e9 | c626e2e3c6f3771e07c32e82ee5b9e030de5b050 | refs/heads/master | 1,611,278,313,401 | 1,444,021,177,000 | 1,444,021,177,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 17,012 | lean | /-
Copyright (c) 2014 Jeremy Avigad. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Author: Jeremy Avigad
Weak orders "≤", strict orders "<", and structures that include both.
-/
import logic.eq logic.connectives algebra.binary algebra.priority
open eq eq.ops
namespace algebr... |
8476e0640e20570bd17ae35606a5a3e0e97c3403 | ce6917c5bacabee346655160b74a307b4a5ab620 | /src/ch2/ex0905.lean | a037d7bbf7274911da3611c19d0ea25b581d1496 | [] | no_license | Ailrun/Theorem_Proving_in_Lean | ae6a23f3c54d62d401314d6a771e8ff8b4132db2 | 2eb1b5caf93c6a5a555c79e9097cf2ba5a66cf68 | refs/heads/master | 1,609,838,270,467 | 1,586,846,743,000 | 1,586,846,743,000 | 240,967,761 | 1 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 148 | lean | universe u
def ident {α : Type u} (x : α) := x
variables α β : Type u
variables (a : α) (b : β)
#check ident
#check ident a
#check ident b
|
dbe6f0a0d796615620f160a20a002c6dfe671041 | 32317185abf7e7c963f4c67c190aec61af6b3628 | /library/data/int/div.lean | 9b21a8b40e5f5fa230be036377c19c52cd67b0e4 | [
"Apache-2.0"
] | permissive | Andrew-Zipperer-unorganized/lean | 198a2317f21198cd8d26e7085e484b86277f17f7 | dcb35008e1474a0abebe632b1dced120e5f8c009 | refs/heads/master | 1,622,526,520,945 | 1,453,576,559,000 | 1,454,612,842,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 29,580 | lean | /-
Copyright (c) 2014 Jeremy Avigad. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Author: Jeremy Avigad
Definitions and properties of div and mod, following the SSReflect library.
Following SSReflect and the SMTlib standard, we define a % b so that 0 ≤ a % b < |b| when b ≠ ... |
f3d050d0a6f57a2bf6719a9ab5b48f5899360b3b | c777c32c8e484e195053731103c5e52af26a25d1 | /src/ring_theory/polynomial_algebra.lean | c77c47dce0826551b79c1c7fdf42134a3c6ff74a | [
"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 | 10,386 | 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 ring_theory.matrix_algebra
import data.polynomial.algebra_map
import data.matrix.basis
import data.matrix.dmatrix
/-!
# Algebra isomorphism between matrices o... |
ff5a5deabae40c961d9c95ad411ffcf2b6e5a065 | cbcb0199842f03e7606d4e43666573fc15dd07a5 | /src/topology/instances/nnreal.lean | 3266ffb0c567c2217008fdaf766f4d814790767d | [
"Apache-2.0"
] | permissive | truonghoangle/mathlib | a6a7c14b3767ec71156239d8ea97f6921fe79627 | 673bae584febcd830c2c9256eb7e7a81e27ed303 | refs/heads/master | 1,590,347,998,944 | 1,559,728,860,000 | 1,559,728,860,000 | 187,431,971 | 0 | 0 | null | 1,558,238,525,000 | 1,558,238,525,000 | null | UTF-8 | Lean | false | false | 3,992 | lean | /-
Copyright (c) 2018 Johan Commelin. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Johan Commelin
Nonnegative real numbers.
-/
import data.real.nnreal topology.instances.real topology.algebra.infinite_sum
noncomputable theory
open set topological_space metric
names... |
7a0614a2d4e5337cdffe8e5f587838d3ebde8be1 | 57c233acf9386e610d99ed20ef139c5f97504ba3 | /src/topology/algebra/mul_action.lean | bade03d667b7bb660b57f4d393a7bb91ac51d738 | [
"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 | 13,996 | 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 topology.algebra.monoid
import group_theory.group_action.prod
import group_theory.group_action.basic
import topology.homeomorph
import topology.algebra.mul_a... |
7f65f4c6949b11cc02d11767c0ec21ec2459f636 | 6432ea7a083ff6ba21ea17af9ee47b9c371760f7 | /src/Lean/Data/SMap.lean | b1ff44e389e1a0a97c199bad9cf0771249d26da4 | [
"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 | 4,033 | lean | /-
Copyright (c) 2019 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Leonardo de Moura
-/
import Lean.Data.HashMap
import Lean.Data.PersistentHashMap
universe u v w w'
namespace Lean
/-- Staged map for implementing the Environment. The idea is ... |
384d03725a3091c77c228d93b56874a2710b2c80 | 130c49f47783503e462c16b2eff31933442be6ff | /src/Init/Data/Fin/Basic.lean | 0d531d685658e9475ca56845ac17e2547b77e3ba | [
"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 | 3,012 | 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.Nat.Div
import Init.Data.Nat.Bitwise
import Init.Coe
open Nat
namespace Fin
instance coeToNat {n} : Coe (Fin n) Nat :=
⟨fun v =... |
7f7be540942baf57a2c137805ecbdb257e9a663e | 43390109ab88557e6090f3245c47479c123ee500 | /src/M1F/problem_bank/0107/M1F_sheet01_solution07.lean | a7ae536e4b01105192f717ffdb1db6c9d1150ef4 | [
"Apache-2.0"
] | permissive | Ja1941/xena-UROP-2018 | 41f0956519f94d56b8bf6834a8d39473f4923200 | b111fb87f343cf79eca3b886f99ee15c1dd9884b | refs/heads/master | 1,662,355,955,139 | 1,590,577,325,000 | 1,590,577,325,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 3,804 | lean | import data.real.basic tactic.norm_num
import xenalib.M1F.real_half_not_an_integer
import xenalib.M1F.int_squared_lt_3
noncomputable theory
-- what they need to know before they embark on this:
-- x ∈ A ∩ B → x ∈ A
-- x ∈ A → x ∈ A ∪ B
-- A ⊆ C ∧ x ∈ A ∧ x ∉ C → false
-- B = {-1,0,1} (only way to prove (d))
-- rw an ... |
52d5430f12ca764a6d5805a99bb1d1407894069c | 77c5b91fae1b966ddd1db969ba37b6f0e4901e88 | /src/algebra/floor.lean | 83512082541fb952c18299a2b776c9b9eebb0288 | [
"Apache-2.0"
] | permissive | dexmagic/mathlib | ff48eefc56e2412429b31d4fddd41a976eb287ce | 7a5d15a955a92a90e1d398b2281916b9c41270b2 | refs/heads/master | 1,693,481,322,046 | 1,633,360,193,000 | 1,633,360,193,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 15,649 | lean | /-
Copyright (c) 2018 Mario Carneiro. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Mario Carneiro, Kevin Kappelmann
-/
import tactic.linarith
import tactic.abel
import algebra.order.group
import data.set.intervals.basic
/-!
# Floor and ceil
## Summary
We define `f... |
da95c74715075374f27ea662432365b0719399e7 | 6094e25ea0b7699e642463b48e51b2ead6ddc23f | /library/theories/topology/basic.lean | 2175406726d254ea19bf41beda0489d863d27451 | [
"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 | 7,402 | lean | /-
Copyright (c) 2015 Jacob Gross. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Jacob Gross, Jeremy Avigad
Open and closed sets, seperation axioms and generated topologies.
-/
import data.set data.nat
open algebra eq.ops set nat
structure topology [class] (X : Type... |
e7d5a8d40589a059b583f2b2004c6124bff00961 | 6dc0c8ce7a76229dd81e73ed4474f15f88a9e294 | /stage0/src/Lean/Elab/Deriving/Inhabited.lean | 80083a91a7e8b0f8491cec456cc7c563ad4d2136 | [
"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 | 5,447 | lean | /-
Copyright (c) 2020 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Leonardo de Moura
-/
import Lean.Elab.Deriving.Basic
namespace Lean.Elab
open Command
open Meta
private abbrev IndexSet := Std.RBTree Nat (.<.)
private abbrev LocalInst2Index ... |
68aebb1d4d54c0242b829352fc91e84222ed96df | 07c6143268cfb72beccd1cc35735d424ebcb187b | /src/algebra/pi_instances.lean | c50821ec8bd0d486cb4b82d4e345e1cc24137359 | [
"Apache-2.0"
] | permissive | khoek/mathlib | bc49a842910af13a3c372748310e86467d1dc766 | aa55f8b50354b3e11ba64792dcb06cccb2d8ee28 | refs/heads/master | 1,588,232,063,837 | 1,587,304,803,000 | 1,587,304,803,000 | 176,688,517 | 0 | 0 | Apache-2.0 | 1,553,070,585,000 | 1,553,070,585,000 | null | UTF-8 | Lean | false | false | 19,473 | 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.group.prod
import algebra.module
import data.finset
import ring_theory.subring
imp... |
2179628c8b1345e5a3690a5a840828739c3fd911 | 38193807b9085b93599c814229d2b0dacb64ba22 | /benchmarks/list-assoc/ListAssoc.lean | a3d6f6863253e50357e4eb517bc7ee383ae67a40 | [] | no_license | zgrannan/rest-old | d650363e403a9d5322fb44ee892b743aec558e1b | 6a6974641b25259cb8701af4302169db22b33b6b | refs/heads/master | 1,670,816,037,466 | 1,599,571,928,000 | 1,599,571,928,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 152 | lean | variable {α : Type}
theorem append_assoc (xs ys zs us ws : list α):
(((xs ++ ys) ++ zs) ++ us) ++ ws = xs ++ (ys ++ (zs ++ (us ++ ws))) := by simp
|
eb99818f56fa7f3ac078687271c5ea17f55ee4a7 | 5ae26df177f810c5006841e9c73dc56e01b978d7 | /test/ring.lean | fb3d09baa10cd2a8f8a712b35b220166b9b44532 | [
"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 | 595 | lean | import tactic.ring data.real.basic
example (x y : ℕ) : x + y = y + x := by ring
example (x y : ℕ) : x + y + y = 2 * y + x := by ring
example (x y : ℕ) : x + id y = y + id x := by ring!
example {α} [comm_ring α] (x y : α) : x + y + y - x = 2 * y := by ring
example (x y : ℚ) : x / 2 + x / 2 = x := by ring
example (x y :... |
372042827c16fb670085222deccd5d80d2cd7b71 | 4727251e0cd73359b15b664c3170e5d754078599 | /src/analysis/box_integral/partition/measure.lean | c060cee89227d4b7029b9ffc8954d4f731f70c58 | [
"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,078 | lean | /-
Copyright (c) 2021 Yury Kudryashov. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Yury Kudryashov
-/
import analysis.box_integral.partition.additive
import measure_theory.measure.lebesgue
/-!
# Box-additive functions defined by measures
In this file we prove a fe... |
7d0449f234eb161c0bc669a6707313cb2045f948 | 8cae430f0a71442d02dbb1cbb14073b31048e4b0 | /src/algebra/associated.lean | a77742482a09d09b14e443c80962e1275e070eb4 | [
"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 | 39,773 | 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, Jens Wagemaker
-/
import algebra.divisibility.basic
import algebra.group_power.lemmas
import algebra.parity
/-!
# Associated, prime, and irreducible elements.
> THIS ... |
3e1a55c318e8f7eb827da6249144f3c8d1f48d08 | 842b7df4a999c5c50bbd215b8617dd705e43c2e1 | /nat_num_game/src/Advanced_Multiplication_World/adv_mul_wrld2.lean | 5083c052effc3ec42f86ca244cd9fe39289b2c3b | [] | no_license | Samyak-Surti/LeanCode | 1c245631f74b00057d20483c8ac75916e8643b14 | 944eac3e5f43e2614ed246083b97fbdf24181d83 | refs/heads/master | 1,669,023,730,828 | 1,595,534,784,000 | 1,595,534,784,000 | 282,037,186 | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 166 | lean | theorem eq_zero_or_eq_zero_of_mul_eq_zero (a b : ℕ) (h : a * b = 0) :
a = 0 ∨ b = 0 :=
begin
induction a with d hd,
left,
refl,
left,
rw ← h,
end
|
6c5094aed367239719604ab3b76a3b72f3b5113a | ba4b63fe3410ccb8e043a57aa024ac63bf06961c | /src/support.lean | 5799139aff2bf33b792ae186d028ebe28482f7ed | [] | no_license | digama0/lean-scratchpad | f30cd665037c226b63ef9933c8fa83e8770f7909 | fe7d6261d60769328e091a37dff7d456c57366b7 | refs/heads/master | 1,583,695,343,314 | 1,522,993,425,000 | 1,522,993,425,000 | 128,350,243 | 0 | 0 | null | 1,522,993,456,000 | 1,522,993,456,000 | null | UTF-8 | Lean | false | false | 4,774 | lean | import analysis.topology.topological_space
import data.set
import homeos
import tactic.find
import norms2
import tactic
noncomputable theory
local attribute [instance] classical.prop_decidable
meta def by_double_inclusion : tactic unit := do
`[apply set.subset.antisymm_iff.2, split]
section topo
open set function
v... |
d20a948f51672a6ce8be3f10dbd8984d1395d222 | 74addaa0e41490cbaf2abd313a764c96df57b05d | /Mathlib/algebra/associated_auto.lean | 62b060de2e1fce6a9ac73d2a30411e6826904e09 | [] | 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 | 22,608 | 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, Jens Wagemaker
-/
import Mathlib.PrePort
import Mathlib.Lean3Lib.init.default
import Mathlib.data.multiset.basic
import Mathlib.algebra.divisibility
import Mathlib.Post... |
a85dc57bda868a5b01df838da338d19818963f17 | ad0c7d243dc1bd563419e2767ed42fb323d7beea | /algebra/field.lean | 776310dcbf9ed2fe55a6a25812197560be8d9137 | [
"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 | 7,948 | 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 algebra.ring logic.basic
open set
universe u
variables {α : Type u}
instance division_ring.to_domain [s : division_ring α] : domain α :=
{ eq... |
1c3ca658f7071a5a01c5ee94ad008319ef1b19a9 | 9dc8cecdf3c4634764a18254e94d43da07142918 | /src/measure_theory/measure/measure_space_def.lean | d406543fa6104d4f456388f1c065b1687c0899ad | [
"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,368 | 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 measure_theory.measure.outer_measure
import order.filter.countable_Inter
import data.set.accumulate
/-!
# Measure spaces
This file defines me... |
5eb0ddadddc5187b8f70560d2eb974efbe654b58 | 9dc8cecdf3c4634764a18254e94d43da07142918 | /src/data/psigma/order.lean | cae1728aa36b283968c56d3a0411daf623faf056 | [
"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 | 3,794 | lean | /-
Copyright (c) 2019 Scott Morrison. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Scott Morrison, Minchao Wu
-/
import data.sigma.lex
import order.synonym
/-!
# Lexicographic order on a sigma type
This file defines the lexicographic order on `Σₗ' i, α i`. `a` is l... |
e6f9bf31028ed649cbdfbbd81cf633635342cfa9 | 6432ea7a083ff6ba21ea17af9ee47b9c371760f7 | /tests/lean/986.lean | b5ba6793e2852d0422382c30ecc04ebe218597d0 | [
"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 | 131 | lean | attribute [simp] Array.insertionSort.swapLoop
#check Array.insertionSort.swapLoop._eq_1
#check Array.insertionSort.swapLoop._eq_2
|
bcb6626cf6dbaf20dc25a933dba1d73c468887b8 | 5d166a16ae129621cb54ca9dde86c275d7d2b483 | /library/data/dlist.lean | 084df004454ea0f6cf81b30ebf8351ce4138042b | [
"Apache-2.0"
] | permissive | jcarlson23/lean | b00098763291397e0ac76b37a2dd96bc013bd247 | 8de88701247f54d325edd46c0eed57aeacb64baf | refs/heads/master | 1,611,571,813,719 | 1,497,020,963,000 | 1,497,021,515,000 | 93,882,536 | 1 | 0 | null | 1,497,029,896,000 | 1,497,029,896,000 | null | UTF-8 | Lean | false | false | 4,473 | 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
-/
universes u
/--
A difference list is a function that, given a list, returns the original
contents of the difference list prepended to the given list.
This s... |
0e9f420cb0acfd942743714d7fa4a7edcf399e87 | 94e33a31faa76775069b071adea97e86e218a8ee | /src/linear_algebra/matrix/nonsingular_inverse.lean | 246435a355e1b80d06a3c04a6015895c9910f9ec | [
"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 | 24,547 | lean | /-
Copyright (c) 2019 Tim Baanen. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Tim Baanen, Lu-Ming Zhang
-/
import algebra.regular.smul
import linear_algebra.matrix.adjugate
import linear_algebra.matrix.polynomial
/-!
# Nonsingular inverses
In this file, we define ... |
328afdba503a035275d8f5a623baf27cd460f21a | cf39355caa609c0f33405126beee2739aa3cb77e | /tests/lean/json.lean | 92969d7fa93c211eb4eee320c74f0ad30df96e8d | [
"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 | 2,412 | lean | #eval to_string $ json.parse $ "[0.7]"
#eval to_string $ json.parse "{}"
#eval to_string $ json.unparse (json.object [])
run_cmd tactic.success_if_fail $ json.parse "spurgles"
meta def test_parse_unparse : tactic unit := do {
f ← native.float.of_string "0.4",
let obj : json := json.object
[
("hello", f... |
7eaa8740ec7adde547d3fcf7a88810f20d469c02 | 74addaa0e41490cbaf2abd313a764c96df57b05d | /Mathlib/set_theory/pgame.lean | 536b57f6d5ac84430c6c9210d4f1b57530d0b1e4 | [] | 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 | 33,707 | lean | /-
Copyright (c) 2019 Mario Carneiro. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Reid Barton, Mario Carneiro, Isabel Longbottom, Scott Morrison
-/
import Mathlib.PrePort
import Mathlib.Lean3Lib.init.default
import Mathlib.logic.embedding
import Mathlib.data.nat.cas... |
aa02be150c5d6400163a1fc1a65857ec52859dfb | 7282d49021d38dacd06c4ce45a48d09627687fe0 | /tests/lean/refute1.lean | 148af23d5d421abf15ec61111d2c03a7b19304d7 | [
"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 | 94 | lean | variables a b : Bool
axiom H : a /\ b
theorem T : a := refute (fun R, absurd (and_eliml H) R)
|
b3353b2d971a44ff7135007f421baafd40188d3b | 2c41ae31b2b771ad5646ad880201393f5269a7f0 | /Lean/Qualities/Changeable.lean | 0036355d2116f8351c25f4f283f49ddb0819b3bb | [] | no_license | kevinsullivan/Boehm | 926f25bc6f1a8b6bd47d333d936fdfc278228312 | 55208395bff20d48a598b7fa33a4d55a2447a9cf | refs/heads/master | 1,586,127,134,302 | 1,488,252,326,000 | 1,488,252,326,000 | 32,836,930 | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 1,866 | lean | import SystemModel.System
/-
An [Assertion] represents a property of system instance states.
-/
definition Assertion {sys_type : SystemType}:= @SystemInstance sys_type -> Prop
/-
An [Action] represents a function that transforms on system
instance state to another. Currently we don't have a way to
represent additio... |
cfc3bf1bd2cb244f4a11f9faf67f292c768baec9 | 74addaa0e41490cbaf2abd313a764c96df57b05d | /Mathlib/Lean3Lib/data/rbmap/default_auto.lean | d31d48939ce6742cfb4be8d55cd9e77fcda454ed | [] | 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 | 11,101 | 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
-/
import Mathlib.PrePort
import Mathlib.Lean3Lib.init.default
import Mathlib.Lean3Lib.data.rbtree.default
universes u v
namespace Mathlib
namespace rbmap
... |
d2b2ce81a3a007b74ba8338b184dac4f20365614 | 618003631150032a5676f229d13a079ac875ff77 | /src/data/matrix/pequiv.lean | ccce1873d15d6c418c027a4b85e9d6edf07e80c5 | [
"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,750 | lean | /-
Copyright (c) 2019 Chris Hughes. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Chris Hughes
-/
import data.matrix.basic
import data.pequiv
/-
# partial equivalences for matrices
Using partial equivalences to represent matrices.
This file introduces the function `p... |
8c5efe73127cfb54166042cc03f250ab67cdc412 | 57c233acf9386e610d99ed20ef139c5f97504ba3 | /src/analysis/calculus/affine_map.lean | 6e0b0b4cf7853ae27899880624dedb7937c3a0ff | [
"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 | 930 | lean | /-
Copyright (c) 2021 Oliver Nash. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Oliver Nash
-/
import analysis.normed_space.continuous_affine_map
import analysis.calculus.times_cont_diff
/-!
# Smooth affine maps
This file contains results about smoothness of affine... |
7c40a15d3e4a9554972a939260f632d135a2468b | 59a4b050600ed7b3d5826a8478db0a9bdc190252 | /src/category_theory/types/finite.lean | 5f4c63c8a349a2152668c29f0e09e4fab30ffd40 | [] | 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 | 476 | 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 category_theory.types
import category_theory.full_subcategory
namespace category_theory.types
open category_theory
universe u
def decid... |
5dbe37527f54ab6442a9f052ccd2d1768b2af744 | 57c233acf9386e610d99ed20ef139c5f97504ba3 | /src/analysis/normed/group/SemiNormedGroup.lean | a40b12d788e38d15d422603b43dd12634a10b9e5 | [
"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 | 6,089 | lean | /-
Copyright (c) 2021 Johan Commelin. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Johan Commelin, Riccardo Brasca
-/
import analysis.normed.group.hom
import category_theory.limits.shapes.zero
/-!
# The category of seminormed groups
We define `SemiNormedGroup`, the... |
1bd5b473e74de37ec60b918eefa3069640fd1032 | fa02ed5a3c9c0adee3c26887a16855e7841c668b | /src/data/int/basic.lean | 26c8ed4a311014d34ac6403995dfaaf305ab9a34 | [
"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 | 56,361 | lean | /-
Copyright (c) 2016 Jeremy Avigad. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Jeremy Avigad
The integers, with addition, multiplication, and subtraction.
-/
import data.nat.pow
import algebra.order_functions
open nat
namespace int
instance : inhabited ℤ := ⟨i... |
1c7748d460e84845a3af16c2760bbc06d5c5b2d8 | 8cae430f0a71442d02dbb1cbb14073b31048e4b0 | /src/data/set/pairwise/lattice.lean | 3382d2022231474a7e5585d906381695f4584518 | [
"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,990 | lean | /-
Copyright (c) 2017 Johannes Hölzl. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Johannes Hölzl
-/
import data.set.lattice
import data.set.pairwise.basic
/-!
# Relations holding pairwise
> THIS FILE IS SYNCHRONIZED WITH MATHLIB4.
> Any changes to this file requir... |
72ccb10cbf51dda7335037cf17b432ae043c2de3 | 57c233acf9386e610d99ed20ef139c5f97504ba3 | /src/field_theory/intermediate_field.lean | 295c55c0b78fc1bd956ec41fb89c36e11fde90c1 | [
"Apache-2.0"
] | permissive | robertylewis/mathlib | 3d16e3e6daf5ddde182473e03a1b601d2810952c | 1d13f5b932f5e40a8308e3840f96fc882fae01f0 | refs/heads/master | 1,651,379,945,369 | 1,644,276,960,000 | 1,644,276,960,000 | 98,875,504 | 0 | 0 | Apache-2.0 | 1,644,253,514,000 | 1,501,495,700,000 | Lean | UTF-8 | Lean | false | false | 17,995 | lean | /-
Copyright (c) 2020 Anne Baanen. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Anne Baanen
-/
import field_theory.subfield
import field_theory.tower
import ring_theory.algebraic
/-!
# Intermediate fields
Let `L / K` be a field extension, given as an instance `alg... |
9ec22386e83eb67bd35ee3fcf3e908e6275823e4 | 9dc8cecdf3c4634764a18254e94d43da07142918 | /src/ring_theory/fractional_ideal.lean | a74b7ba832514fd25a9c61b11f4c9fd0d054dc64 | [
"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 | 52,223 | lean | /-
Copyright (c) 2020 Anne Baanen. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Anne Baanen, Filippo A. E. Nuccio
-/
import algebra.big_operators.finprod
import ring_theory.integral_closure
import ring_theory.localization.integer
import ring_theory.localization.submo... |
0cfaac057e56b5a2aa82ed9772dd19fe2d6c3814 | ce4db867008cc96ee6ea6a34d39c2fa7c6ccb536 | /src/Soit.lean | eff22aee19d973982d8a4ba275bac08e5709204a | [] | no_license | PatrickMassot/lean-bavard | ab0ceedd6bab43dc0444903a80b911c5fbfb23c3 | 92a1a8c7ff322e4f575ec709b8c5348990d64f18 | refs/heads/master | 1,679,565,084,665 | 1,616,158,570,000 | 1,616,158,570,000 | 348,144,867 | 1 | 1 | null | null | null | null | UTF-8 | Lean | false | false | 4,053 | lean | import tactic
import .tokens
import .commun
setup_tactic_parser
namespace tactic
meta def intro_obj (n : name) : tactic expr :=
do t ← target,
if expr.is_pi t ∨ expr.is_let t then do
e ← intro_core n,
t ← infer_type e,
mwhen (is_prop t) failed,
pure e
else do
whnf_target,
e ← int... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.