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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
217a409fa24330097f982908368fec97db60cf76 | 4727251e0cd73359b15b664c3170e5d754078599 | /src/algebra/group/to_additive.lean | cf17f07b07425010d3c5b3d94bda634400496155 | [
"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 | 27,968 | lean | /-
Copyright (c) 2017 Mario Carneiro. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Mario Carneiro, Yury Kudryashov, Floris van Doorn
-/
import tactic.transform_decl
import tactic.algebra
import tactic.lint.basic
import tactic.alias
/-!
# Transport multiplicative to ... |
c981165838bf7f7d51e0793bf539caf9d9f774f1 | 4727251e0cd73359b15b664c3170e5d754078599 | /src/linear_algebra/matrix/determinant.lean | a8c5563a6fc1c954f610dc5342493a989ca962bc | [
"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 | 31,514 | lean | /-
Copyright (c) 2018 Kenny Lau. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Kenny Lau, Chris Hughes, Tim Baanen
-/
import data.matrix.pequiv
import data.matrix.block
import data.fintype.card
import group_theory.perm.fin
import group_theory.perm.sign
import algebra.... |
834d5444b40f619908513260e038837dc2f18a01 | 28be2ab6091504b6ba250b367205fb94d50ab284 | /levels/solutions/world1_addition.lean | 15abdc10ad252bce6c19f6ccd7f8e85e1ea7298c | [
"Apache-2.0"
] | permissive | postmasters/natural_number_game | 87304ac22e5e1c5ac2382d6e523d6914dd67a92d | 38a7adcdfdb18c49c87b37831736c8f15300d821 | refs/heads/master | 1,649,856,819,031 | 1,586,444,676,000 | 1,586,444,676,000 | 255,006,061 | 0 | 0 | Apache-2.0 | 1,586,664,599,000 | 1,586,664,598,000 | null | UTF-8 | Lean | false | false | 6,435 | lean | import mynat.definition -- Imports the natural numbers.
/- Here's what you get from the import:
1) The following data:
* a type called `mynat`
* a term `0 : mynat`, interpreted as the number zero.
* a function `succ : mynat → mynat`, with `succ n` interpreted as "the number after n".
* Usual numerical notatio... |
bf6495adf81c84a35ea478be95f8fceff171ac85 | 30b012bb72d640ec30c8fdd4c45fdfa67beb012c | /algebra/field_power.lean | 1c2669d2fe9ee2e81e559d53fc7c2b1a9e84cc50 | [
"Apache-2.0"
] | permissive | kckennylau/mathlib | 21fb810b701b10d6606d9002a4004f7672262e83 | 47b3477e20ffb5a06588dd3abb01fe0fe3205646 | refs/heads/master | 1,634,976,409,281 | 1,542,042,832,000 | 1,542,319,733,000 | 109,560,458 | 0 | 0 | Apache-2.0 | 1,542,369,208,000 | 1,509,867,494,000 | Lean | UTF-8 | Lean | false | false | 4,732 | lean | /-
Copyright (c) 2018 Robert Y. Lewis. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Robert Y. Lewis
Integer power operation on fields.
-/
import algebra.group_power tactic.wlog
universe u
section field_power
open int nat
variables {α : Type u} [division_ring α]
... |
5c3a97510c608a0a431cadd8ab6bce6f3d634afa | 36c7a18fd72e5b57229bd8ba36493daf536a19ce | /library/theories/number_theory/prime_factorization.lean | e3385d71c3b1c0861c2c81d594604f9ed4657c22 | [
"Apache-2.0"
] | permissive | YHVHvx/lean | 732bf0fb7a298cd7fe0f15d82f8e248c11db49e9 | 038369533e0136dd395dc252084d3c1853accbf2 | refs/heads/master | 1,610,701,080,210 | 1,449,128,595,000 | 1,449,128,595,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 14,116 | lean | /-
Copyright (c) 2015 Jeremy Avigad. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Jeremy Avigad
Multiplicity and prime factors. We have:
mult p n := the greatest power of p dividing n if p > 1 and n > 0, and 0 otherwise.
prime_factors n := the finite set... |
ad81af7cd11e39362e76de9793f98f4770e6dedf | f2fbd9ce3f46053c664b74a5294d7d2f584e72d3 | /src/valuations.lean | 733429c3ae1bbec5d2f965ce44647a7a81748881 | [
"Apache-2.0"
] | permissive | jcommelin/lean-perfectoid-spaces | c656ae26a2338ee7a0072dab63baf577f079ca12 | d5ed816bcc116fd4cde5ce9aaf03905d00ee391c | refs/heads/master | 1,584,610,432,107 | 1,538,491,594,000 | 1,538,491,594,000 | 136,299,168 | 0 | 0 | null | 1,528,274,452,000 | 1,528,274,452,000 | null | UTF-8 | Lean | false | false | 15,295 | lean | import algebra.group_power
import set_theory.cardinal
import ring_theory.ideals
import data.finsupp
import group_theory.quotient_group
import tactic.tidy
import for_mathlib.ideals
import for_mathlib.linear_ordered_comm_group
universes u₁ u₂ u₃ -- v is used for valuations
namespace valuation
class is_val... |
ffc39ce4ad16367611d1775e2b7a62b428260769 | 57c233acf9386e610d99ed20ef139c5f97504ba3 | /src/linear_algebra/affine_space/combination.lean | 910a7bc3a92ee58cf85dac2f2926e766846fad1f | [
"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 | 42,541 | lean | /-
Copyright (c) 2020 Joseph Myers. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Joseph Myers
-/
import algebra.invertible
import algebra.indicator_function
import linear_algebra.affine_space.affine_map
import linear_algebra.affine_space.affine_subspace
import linear... |
9abb73e9212a980189cf72d5837ecf8bf24bb7e1 | 75db7e3219bba2fbf41bf5b905f34fcb3c6ca3f2 | /library/data/examples/vector.lean | d3d72b5df71ce5d9096c8daaf973a7fe4346e547 | [
"Apache-2.0"
] | permissive | jroesch/lean | 30ef0860fa905d35b9ad6f76de1a4f65c9af6871 | 3de4ec1a6ce9a960feb2a48eeea8b53246fa34f2 | refs/heads/master | 1,586,090,835,348 | 1,455,142,203,000 | 1,455,142,277,000 | 51,536,958 | 1 | 0 | null | 1,455,215,811,000 | 1,455,215,811,000 | null | UTF-8 | Lean | false | false | 13,174 | 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, Leonardo de Moura
This file demonstrates how to encode vectors using indexed inductive families.
In standard library we do not use this approach.
-/
import data.nat... |
96ab5475a64e55d35a4f92c38e9eb28134bf7610 | 592ee40978ac7604005a4e0d35bbc4b467389241 | /Library/generated/mathscheme-lean/RightRack.lean | e2fbcca3acf4453613a56847a5f724d33cd2c148 | [] | no_license | ysharoda/Deriving-Definitions | 3e149e6641fae440badd35ac110a0bd705a49ad2 | dfecb27572022de3d4aa702cae8db19957523a59 | refs/heads/master | 1,679,127,857,700 | 1,615,939,007,000 | 1,615,939,007,000 | 229,785,731 | 4 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 8,505 | 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 RightRack
structure RightRack (A : Type) : Type :=
(rinv : (A → (A → A)))
(linv : (A → (A → A)))
(rightDistributive : (∀ {x y z : A} , (rinv (rinv y z) x... |
5636f23aa9b25af67a38c1eca3a8b44fead25c72 | 9028d228ac200bbefe3a711342514dd4e4458bff | /src/data/complex/exponential.lean | 144fc733d22601777277b59b022d8332715cafe3 | [
"Apache-2.0"
] | permissive | mcncm/mathlib | 8d25099344d9d2bee62822cb9ed43aa3e09fa05e | fde3d78cadeec5ef827b16ae55664ef115e66f57 | refs/heads/master | 1,672,743,316,277 | 1,602,618,514,000 | 1,602,618,514,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 53,845 | lean | /-
Copyright (c) 2018 Chris Hughes. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Chris Hughes, Abhimanyu Pallavi Sudhir
-/
import algebra.geom_sum
import data.nat.choose.sum
import data.complex.basic
/-!
# Exponential, trigonometric and hyperbolic trigonometric funct... |
4dc7d3f73ce28910867627e45b497fb7e46ebcd3 | 88892181780ff536a81e794003fe058062f06758 | /src/xena_challenge/challenge3.lean | 7a8cc2ac72d3d6f325bf6b938dd95926959ba345 | [] | no_license | AtnNn/lean-sandbox | fe2c44280444e8bb8146ab8ac391c82b480c0a2e | 8c68afbdc09213173aef1be195da7a9a86060a97 | refs/heads/master | 1,623,004,395,876 | 1,579,969,507,000 | 1,579,969,507,000 | 146,666,368 | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 906 | lean | import data.real.basic
import lib.attempt
theorem challenge3 :
(2 : ℝ) + 2 ≠ 5 :=
attempt begin
have h : (2 : ℝ) + 2 = 4 := rfl,
rw h,
unfold has_one.one,
sorry
end $
attempt begin
apply (λ x, x),
norm_num,
end $
attempt begin
linarith
end $
attempt begin
-- library_search,
sorry
end $
attempt begin
... |
eb58ef66ff347ffa23f89d30b4985f0d5cacbea1 | 6432ea7a083ff6ba21ea17af9ee47b9c371760f7 | /src/Lean/Compiler/LCNF/Simp/FunDeclInfo.lean | e572e46b306e481bc673fb394b59ed1d3e574b45 | [
"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,462 | lean | /-
Copyright (c) 2022 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Leonardo de Moura
-/
import Lean.Compiler.LCNF.Simp.Basic
namespace Lean.Compiler.LCNF
namespace Simp
/--
Local function usage information used to decide whether it should be ... |
dd160787627911c301ce50106531840c526545b9 | 9b9a16fa2cb737daee6b2785474678b6fa91d6d4 | /src/topology/basic.lean | a1a9478e5d12ca4859ba68af76221c12264f6a11 | [
"Apache-2.0"
] | permissive | johoelzl/mathlib | 253f46daa30b644d011e8e119025b01ad69735c4 | 592e3c7a2dfbd5826919b4605559d35d4d75938f | refs/heads/master | 1,625,657,216,488 | 1,551,374,946,000 | 1,551,374,946,000 | 98,915,829 | 0 | 0 | Apache-2.0 | 1,522,917,267,000 | 1,501,524,499,000 | Lean | UTF-8 | Lean | false | false | 99,813 | 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, Jeremy Avigad
Theory of topological spaces.
Parts of the formalization is based on the books:
N. Bourbaki: General Topology
I. M. James: Topologie... |
1b8f8fd0ee1dd8faf2346bc3330a1c413a48c8f0 | a0e23cfdd129a671bf3154ee1a8a3a72bf4c7940 | /src/Lean/Elab/PreDefinition/Basic.lean | 24375f497d5332da5434a194f04d3843ba29f6b9 | [
"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 | 6,637 | 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.Util.SCC
import Lean.Meta.AbstractNestedProofs
import Lean.Elab.Term
import Lean.Elab.DefView
import Lean.Elab.PreDefinition.MkInhabitant
names... |
77a4c47393964f511cd532b218f33eec8542f6e1 | 4efff1f47634ff19e2f786deadd394270a59ecd2 | /src/control/bitraversable/basic.lean | 9089230c2936dfb5e6a012e84f250974f51b7155 | [
"Apache-2.0"
] | permissive | agjftucker/mathlib | d634cd0d5256b6325e3c55bb7fb2403548371707 | 87fe50de17b00af533f72a102d0adefe4a2285e8 | refs/heads/master | 1,625,378,131,941 | 1,599,166,526,000 | 1,599,166,526,000 | 160,748,509 | 0 | 0 | Apache-2.0 | 1,544,141,789,000 | 1,544,141,789,000 | null | UTF-8 | Lean | false | false | 2,965 | lean | /-
Copyright (c) 2018 Simon Hudon. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Author: Simon Hudon
-/
import control.bifunctor
import control.traversable.basic
/-!
# Bitraversable type class
Type class for traversing bifunctors. The concepts and laws are taken from
<https:... |
17c314b8237934f5c1667be680e92ba9dc449326 | 6432ea7a083ff6ba21ea17af9ee47b9c371760f7 | /tests/pkg/builtin_attr/UserAttr/BlaAttr.lean | a931e061e7e49560743b9585947e5ccd52b872e2 | [
"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 | 188 | lean | import Lean
open Lean
-- initialize discard <| registerTagAttribute `foo ""
initialize registerBuiltinAttribute {
name := `bar,
descr := "",
add := fun _ _ _ => pure ()
}
|
6b8625c2efd94edde0578c7173618c292eb6a644 | 19cc34575500ee2e3d4586c15544632aa07a8e66 | /src/data/set/basic.lean | 9aaa45a52712ed5a2658b57d8282f6637e7a2532 | [
"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 | 89,915 | 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
-/
import logic.unique
import order.boolean_algebra
/-!
# Basic properties of sets
Sets in Lean are homogeneous; all their elements have the same type... |
598665a94722f14348e46be698d36233a938d629 | 8cae430f0a71442d02dbb1cbb14073b31048e4b0 | /src/tactic/simp_rw.lean | ae85407c107b5fb8bf7d785536e3d5b364555f89 | [
"Apache-2.0"
] | permissive | leanprover-community/mathlib | 56a2cadd17ac88caf4ece0a775932fa26327ba0e | 442a83d738cb208d3600056c489be16900ba701d | refs/heads/master | 1,693,584,102,358 | 1,693,471,902,000 | 1,693,471,902,000 | 97,922,418 | 1,595 | 352 | Apache-2.0 | 1,694,693,445,000 | 1,500,624,130,000 | Lean | UTF-8 | Lean | false | false | 2,294 | 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 tactic.core
/-!
# The `simp_rw` tactic
This module defines a tactic `simp_rw` which functions as a mix of `simp` and
`rw`. Like `rw`, it applies each rewrite rule ... |
2bd3687fdf9c14f821a3087bc01563801916a3c0 | 54d7e71c3616d331b2ec3845d31deb08f3ff1dea | /tests/lean/defeq_simp5.lean | 5018144a5b83091dfeaa7909c21f2a3d140af9c1 | [
"Apache-2.0"
] | permissive | pachugupta/lean | 6f3305c4292288311cc4ab4550060b17d49ffb1d | 0d02136a09ac4cf27b5c88361750e38e1f485a1a | refs/heads/master | 1,611,110,653,606 | 1,493,130,117,000 | 1,493,167,649,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 776 | lean | attribute [reducible]
definition nat_has_add2 : has_add nat :=
has_add.mk (λ x y : nat, x + y)
attribute [reducible]
definition nat_has_add3 : nat → has_add nat :=
λ n, has_add.mk (λ x y : nat, x + y)
open tactic
set_option pp.all true
-- Example where instance canonization does not work.
-- This is a different issu... |
c3f5a87e3ddf7facaf11bbaaf2e90bd6f83fb205 | cf39355caa609c0f33405126beee2739aa3cb77e | /tests/lean/run/elab_crash1.lean | defeadab6c4393e6ff4276fe0d5e8d90531c330d | [
"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 | 326 | lean | open expr tactic
meta definition to_expr_target (a : pexpr) : tactic expr :=
do tgt ← target,
to_expr ```((%%a : %%tgt))
example (A : Type) (a : A) : A :=
by do to_expr_target ``(sorry) >>= exact
example (A : Type) (a : A) : A :=
by do refine ``(sorry)
example (a : nat) : nat :=
by do to_expr ``(nat.zero) >>= ex... |
b7e88182bf8f9f7fc6cf28bf3302d35b68cbb725 | df561f413cfe0a88b1056655515399c546ff32a5 | /3-multiplication-world/l5.lean | 7df57462dc3dfbae0e08eeebac96100a3d441433 | [] | no_license | nicholaspun/natural-number-game-solutions | 31d5158415c6f582694680044c5c6469032c2a06 | 1e2aed86d2e76a3f4a275c6d99e795ad30cf6df0 | refs/heads/main | 1,675,123,625,012 | 1,607,633,548,000 | 1,607,633,548,000 | 318,933,860 | 3 | 1 | null | null | null | null | UTF-8 | Lean | false | false | 168 | lean | lemma mul_assoc (a b c : mynat) : (a * b) * c = a * (b * c) :=
begin
induction c with k Pk,
repeat { rw mul_zero },
repeat { rw mul_succ },
rw mul_add,
rw Pk,
refl,
end |
fc9971865a1722709071dd62b96a1568cdab9388 | 31f556cdeb9239ffc2fad8f905e33987ff4feab9 | /stage0/src/Lean/Elab/Tactic/Basic.lean | 369a902b94c010ff875d3bcacb511840c18f76a9 | [
"Apache-2.0",
"LLVM-exception",
"NCSA",
"LGPL-3.0-only",
"LicenseRef-scancode-inner-net-2.0",
"BSD-3-Clause",
"LGPL-2.0-or-later",
"Spencer-94",
"LGPL-2.1-or-later",
"HPND",
"LicenseRef-scancode-pcre",
"ISC",
"LGPL-2.1-only",
"LicenseRef-scancode-other-permissive",
"SunPro",
"CMU-Mach"... | permissive | tobiasgrosser/lean4 | ce0fd9cca0feba1100656679bf41f0bffdbabb71 | ebdbdc10436a4d9d6b66acf78aae7a23f5bd073f | refs/heads/master | 1,673,103,412,948 | 1,664,930,501,000 | 1,664,930,501,000 | 186,870,185 | 0 | 0 | Apache-2.0 | 1,665,129,237,000 | 1,557,939,901,000 | Lean | UTF-8 | Lean | false | false | 15,667 | 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
namespace Lean.Elab
open Meta
/-- Assign `mvarId := sorry` -/
def admitGoal (mvarId : MVarId) : MetaM Unit :=
m... |
1138921b1f33bb39cc122775d48a9e1fabe88ddc | 200b12985a863d01fbbde6abfc9326bb82424a8b | /src/propLogic/Ex001.lean | d7c5848eb8bd8f325170aafd61d5c90eafeab576 | [] | no_license | SvenWille/LeanLogicExercises | 38eacd36733ac48e5a7aacf863c681c9a9a48271 | 2dbc920feadd63bbc50f87e69646c0081db26eba | refs/heads/master | 1,629,676,667,365 | 1,512,161,459,000 | 1,512,161,459,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 181 | lean |
--Proof: a -> a
theorem Ex001_1(a : Prop) : a -> a :=
assume H1 : a,
show a ,from H1
--using tactics
theorem Ex001_2(a : Prop) : a -> a :=
begin
intro H,
exact H
end
|
b9da93a75d69f4540bdce59193669b18c8e9b997 | 6432ea7a083ff6ba21ea17af9ee47b9c371760f7 | /src/Lean/Compiler/LCNF/Simp/InlineProj.lean | a771cf7fb546b64a787ec470011641986059650b | [
"Apache-2.0",
"LLVM-exception",
"NCSA",
"LGPL-3.0-only",
"LicenseRef-scancode-inner-net-2.0",
"BSD-3-Clause",
"LGPL-2.0-or-later",
"Spencer-94",
"LGPL-2.1-or-later",
"HPND",
"LicenseRef-scancode-pcre",
"ISC",
"LGPL-2.1-only",
"LicenseRef-scancode-other-permissive",
"SunPro",
"CMU-Mach"... | permissive | leanprover/lean4 | 4bdf9790294964627eb9be79f5e8f6157780b4cc | f1f9dc0f2f531af3312398999d8b8303fa5f096b | refs/heads/master | 1,693,360,665,786 | 1,693,350,868,000 | 1,693,350,868,000 | 129,571,436 | 2,827 | 311 | Apache-2.0 | 1,694,716,156,000 | 1,523,760,560,000 | Lean | UTF-8 | Lean | false | false | 3,677 | lean | /-
Copyright (c) 2022 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Leonardo de Moura
-/
import Lean.Compiler.LCNF.Simp.SimpM
namespace Lean.Compiler.LCNF
namespace Simp
/--
Auxiliary function for projecting "type class dictionary access".
Tha... |
2c55795ffac5f7836deb2d4900a983833e8b38f7 | d406927ab5617694ec9ea7001f101b7c9e3d9702 | /src/algebra/monoid_algebra/support.lean | cb6909ab073169fc2cb5e0bc98c907e446a421d1 | [
"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 | 5,969 | 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.basic
/-!
# Lemmas about the support of a finitely supported function
-/
universes u₁ u₂ u₃
namespace monoid_algebra
open finset finsu... |
f4e5c4d38f415726da1e6a3874f2d78e3e413741 | a339bc2ac96174381fb610f4b2e1ba42df2be819 | /hott/algebra/trunc_group.hlean | cdd85090a3953989c645f9867c04b9d81599c28a | [
"Apache-2.0"
] | permissive | kalfsvag/lean2 | 25b2dccc07a98e5aa20f9a11229831f9d3edf2e7 | 4d4a0c7c53a9922c5f630f6f8ebdccf7ddef2cc7 | refs/heads/master | 1,610,513,122,164 | 1,483,135,198,000 | 1,483,135,198,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 2,727 | hlean | /-
Copyright (c) 2015 Floris van Doorn. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Floris van Doorn
truncating an ∞-group to a group
-/
import hit.trunc algebra.group
open eq is_trunc trunc
namespace algebra
section
parameters (n : trunc_index) {A : Type} ... |
79797609f8c277762ed73ae2371f1105892b2d01 | 6432ea7a083ff6ba21ea17af9ee47b9c371760f7 | /tests/lean/449.lean | 04e6b81f2b048bf0ee560529fd5373479f0588f4 | [
"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 | 273 | lean | open Nat
theorem mul_comm (m n : Nat) : m * n = n * m := by
induction n with
| zero => simp
| succ n ih =>
have foo : m * n + m = m * n + (succ zero) * m := _
rfl
theorem test (o : x ∨ y) : x := by
cases o with
| inl h => exact h
| inr h => exact _
|
bdd7e461657d5149cf3d956a347de8636dc8da8d | 9dc8cecdf3c4634764a18254e94d43da07142918 | /src/linear_algebra/span.lean | 463c5e021dec63d231234155a266a769c0c2f0d5 | [
"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 | 35,542 | lean | /-
Copyright (c) 2017 Johannes Hölzl. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Johannes Hölzl, Mario Carneiro, Kevin Buzzard, Yury Kudryashov, Frédéric Dupuis,
Heather Macbeth
-/
import linear_algebra.basic
import order.omega_complete_partial_order
/-!
# The s... |
56248d2f8676d897c697fe127be8c6aa8d01bea2 | d406927ab5617694ec9ea7001f101b7c9e3d9702 | /src/algebra/order/group/abs.lean | a105b0dd3f452666feb273f31e50a85f8b8e1437 | [
"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 | 9,890 | lean | /-
Copyright (c) 2016 Jeremy Avigad. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Jeremy Avigad, Leonardo de Moura, Mario Carneiro, Johannes Hölzl
-/
import algebra.abs
import algebra.order.group.order_iso
import order.min_max
/-!
# Absolute values in ordered groups... |
96f35fb6be9f25d64b287b9ff5fd3b3635bd3ceb | 46125763b4dbf50619e8846a1371029346f4c3db | /src/geometry/manifold/basic_smooth_bundle.lean | 224134f08211b19f8afb620f49cec3a312c878ae | [
"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 | 32,882 | lean | /-
Copyright (c) 2019 Sébastien Gouëzel. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Sébastien Gouëzel
-/
import topology.topological_fiber_bundle geometry.manifold.smooth_manifold_with_corners
/-!
# Basic smooth bundles
In general, a smooth bundle is a bundle ove... |
d49d529c75ac69e9a3ac8da2c3aae62fb1b7e7a7 | bb31430994044506fa42fd667e2d556327e18dfe | /src/group_theory/group_action/sub_mul_action.lean | 96abf240857d2d99bbc404bee1a68269b1aff375 | [
"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 | 9,964 | 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.hom.group_action
import algebra.module.basic
import data.set_like.basic
import group_theory.group_action.basic
/-!
# Sets invariant to a `mul_action`
In th... |
150e0f45cd362fc2e638a069deba959d8ecdc3a0 | ad3e8f15221a986da27c99f371922c0b3f5792b6 | /src/week07/solutions/e02_tactics.lean | 83dd731a5e59792943590d63732b4c8ea3549e0b | [] | no_license | VArtem/lean-itmo | a0e1424c8cc4c2de2ac85ab6fd4a12d80e9b85f1 | dc44cd06f9f5b984d051831b3aaa7364e64c2dc4 | refs/heads/main | 1,683,761,214,467 | 1,622,821,295,000 | 1,622,821,295,000 | 357,236,048 | 12 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 2,865 | lean | import tactic
-- Если вы не работали с монадами и do-блоками раньше, почитайте туториал в интернете
-- `tactic α` - функция, работающие в контексте состояния тактики и возвращает α
-- `tactic unit` - ничего не возвращает (или же возвращает `()`)
open tactic
meta def make_nat : tactic ℕ :=
return 42
-- Как использо... |
2e670a832ce57ee853f8a8b14580eb8f1e09bedf | 6432ea7a083ff6ba21ea17af9ee47b9c371760f7 | /tests/compiler/rbmap_library.lean | 1577cab6b7429a9eabb7dee1ef2da038ed3273c1 | [
"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 | 2,300 | lean | import Lean.Data.RBMap
open Lean
def check (b : Bool) : IO Unit := do
unless b do IO.println "ERROR"
def sz {α β : Type} {cmp : α → α → Ordering} (m : RBMap α β cmp) : Nat :=
m.fold (fun sz _ _ => sz+1) 0
def depth {α β : Type} {cmp : α → α → Ordering} (m : RBMap α β cmp) : Nat :=
m.depth Nat.max
def tst1 : IO Unit... |
dca51591bb6efaaec67f130cb8bcd0c51623becd | 2a70b774d16dbdf5a533432ee0ebab6838df0948 | /_target/deps/mathlib/src/ring_theory/int/basic.lean | 17ed9f5c0b190e5b816c71b1bf769aca492d57b2 | [
"Apache-2.0"
] | permissive | hjvromen/lewis | 40b035973df7c77ebf927afab7878c76d05ff758 | 105b675f73630f028ad5d890897a51b3c1146fb0 | refs/heads/master | 1,677,944,636,343 | 1,676,555,301,000 | 1,676,555,301,000 | 327,553,599 | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 12,375 | 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, Aaron Anderson
-/
import data.int.gcd
import ring_theory.multiplicity
import ring_theory.principal_ideal_domain
/-!
# Divisibility over ℕ and ℤ
This ... |
b59023a9dc3596ef399b83b4258c90e0da814110 | 8cae430f0a71442d02dbb1cbb14073b31048e4b0 | /src/analysis/normed/group/basic.lean | 6fe45df80f9c369582cfc766b8fbf55886cd1bc9 | [
"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 | 84,147 | lean | /-
Copyright (c) 2018 Patrick Massot. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Patrick Massot, Johannes Hölzl, Yaël Dillies
-/
import analysis.normed.group.seminorm
import order.liminf_limsup
import topology.algebra.uniform_group
import topology.instances.rat
imp... |
385c545f9394492ae296b6539852d598fb08c9b5 | d406927ab5617694ec9ea7001f101b7c9e3d9702 | /src/set_theory/surreal/dyadic.lean | 74b9f7128fc4c2948b9ff43e9d8d7be2d9f960f6 | [
"Apache-2.0"
] | permissive | alreadydone/mathlib | dc0be621c6c8208c581f5170a8216c5ba6721927 | c982179ec21091d3e102d8a5d9f5fe06c8fafb73 | refs/heads/master | 1,685,523,275,196 | 1,670,184,141,000 | 1,670,184,141,000 | 287,574,545 | 0 | 0 | Apache-2.0 | 1,670,290,714,000 | 1,597,421,623,000 | Lean | UTF-8 | Lean | false | false | 10,084 | lean | /-
Copyright (c) 2021 Apurva Nakade. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Apurva Nakade
-/
import algebra.algebra.basic
import set_theory.game.birthday
import set_theory.surreal.basic
import ring_theory.localization.basic
/-!
# Dyadic numbers
Dyadic numbers ... |
72c2a026a260f8741cf59cce09660b015574471a | ebbdcbd7ddc89a9ef7c3b397b301d5f5272a918f | /qp/p1_categories/c4_topoi.lean | d082ea5373744377bf345de5dfdafee6700b5f9e | [] | no_license | intoverflow/qvr | 34b9ef23604738381ca20b7d622fd0399d88f2dd | 0cfcd33fe4bf8d93851a00cec5bfd21e77105d74 | refs/heads/master | 1,616,591,570,371 | 1,492,575,772,000 | 1,492,575,772,000 | 80,061,627 | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 55 | lean | import .c4_topoi.s1_subobjects
import .c4_topoi.s2_nno
|
bbf685444c9c7ceb2a91dbdf1c585f426efeea00 | 4727251e0cd73359b15b664c3170e5d754078599 | /src/tactic/rcases.lean | e21a0367df6b76aced30ca974fb9cfc74689ed73 | [
"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 | 41,585 | 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
import tactic.core
import tactic.clear
/-!
# Recursive cases (`rcases`) tactic and related tactics
`rcases` is a tactic that will perform `cases`... |
fc2ed3bd4f9984542e2fe7096600097fbcc1c00c | cf39355caa609c0f33405126beee2739aa3cb77e | /tests/lean/inject.lean | 7c3a9fddfa03cfd7c7c4129418c1895d9a584273 | [
"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,015 | lean | open nat
inductive fi : nat → Type
| f0 : ∀ {n}, fi (succ n)
| fs : ∀ {n} (j : fi n), fi (succ n)
namespace fi
def lift {m k : nat} (f : fi m → fi k) : ∀ {n} (i : fi (m + n)), fi (k + n)
| 0 v := f v
| (succ n) f0 := f0
| (succ n) (fs i) := fs (lift i)
set_option pp.implicit true
#check @lift.equat... |
2df3163711652dbe4ba916b7e835202bb4b020b2 | b074a51e20fdb737b2d4c635dd292fc54685e010 | /src/category_theory/natural_isomorphism.lean | 4efc99a6df3e7bbbb5759a4335e4c0564523cdf8 | [
"Apache-2.0"
] | permissive | minchaowu/mathlib | 2daf6ffdb5a56eeca403e894af88bcaaf65aec5e | 879da1cf04c2baa9eaa7bd2472100bc0335e5c73 | refs/heads/master | 1,609,628,676,768 | 1,564,310,105,000 | 1,564,310,105,000 | 99,461,307 | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 5,505 | lean | -- Copyright (c) 2017 Scott Morrison. All rights reserved.
-- Released under Apache 2.0 license as described in the file LICENSE.
-- Authors: Tim Baumann, Stephen Morgan, Scott Morrison, Floris van Doorn
import category_theory.functor_category
import category_theory.isomorphism
open category_theory
universes v₁ v₂ v... |
10e7e56610f5b5ec523cc1cb17ff05c8cb079558 | d406927ab5617694ec9ea7001f101b7c9e3d9702 | /src/category_theory/monoidal/free/basic.lean | dd133c7f02b1baca83f6dea5a473a56f6a67038a | [
"Apache-2.0"
] | permissive | alreadydone/mathlib | dc0be621c6c8208c581f5170a8216c5ba6721927 | c982179ec21091d3e102d8a5d9f5fe06c8fafb73 | refs/heads/master | 1,685,523,275,196 | 1,670,184,141,000 | 1,670,184,141,000 | 287,574,545 | 0 | 0 | Apache-2.0 | 1,670,290,714,000 | 1,597,421,623,000 | Lean | UTF-8 | Lean | false | false | 11,401 | lean | /-
Copyright (c) 2021 Markus Himmel. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Markus Himmel
-/
import category_theory.monoidal.functor
/-!
# The free monoidal category over a type
Given a type `C`, the free monoidal category over `C` has as objects formal expre... |
b6fb1d421f6b68641ca7003c11bbc63edcdbcdca | d29d82a0af640c937e499f6be79fc552eae0aa13 | /src/data/complex/exponential.lean | 8d9d4ceda71afe458e9a12f37b2ac5bc24894790 | [
"Apache-2.0"
] | permissive | AbdulMajeedkhurasani/mathlib | 835f8a5c5cf3075b250b3737172043ab4fa1edf6 | 79bc7323b164aebd000524ebafd198eb0e17f956 | refs/heads/master | 1,688,003,895,660 | 1,627,788,521,000 | 1,627,788,521,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 61,925 | lean | /-
Copyright (c) 2018 Chris Hughes. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Chris Hughes, Abhimanyu Pallavi Sudhir
-/
import algebra.geom_sum
import data.complex.basic
import data.nat.choose.sum
/-!
# Exponential, trigonometric and hyperbolic trigonometric func... |
aca247a2c4b3d5e9e30f6e95f1ef23ddab49d9bf | 297c4ceafbbaed2a59b6215504d09e6bf201a2ee | /kruskal_final/kruskal.lean | e51ebdbf4c2b7cceab527b17206136b1b83e4014 | [] | 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 | 13,080 | lean | import .higman
open nat function prod set fin classical subtype
namespace list
section
-- Suml
variables {A : Type}
definition Suml (f : A → ℕ) : list A → ℕ
| [] := 0
| (a :: ls) := f a + Suml ls
theorem le_add_of_le {a b c : ℕ} : a ≤ b → a ≤ b + c :=
begin
induction c with n ih, intro,super, intro h2,
apply le_... |
641c2e172750d835cab3e143b222bf3bf3ef19a2 | bbecf0f1968d1fba4124103e4f6b55251d08e9c4 | /src/linear_algebra/alternating.lean | 0f4411519a4dfec1215ce205ba5fc1ef5c2d43c6 | [
"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 | 30,259 | lean | /-
Copyright (c) 2020 Zhangir Azerbayev. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Eric Wieser, Zhangir Azerbayev
-/
import linear_algebra.multilinear.tensor_product
import linear_algebra.linear_independent
import group_theory.perm.sign
import group_theory.perm.s... |
735ff6709a3e49896d8b48220e02628db66ce1b4 | 9dd3f3912f7321eb58ee9aa8f21778ad6221f87c | /library/tools/debugger/cli.lean | 743729b360370d2911156140e7a72065ac92e73c | [
"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 | 8,335 | 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
Simple command line interface for debugging Lean programs and tactics.
-/
import tools.debugger.util
namespace debugger
inductive mode
| init | step | run |... |
4d71a211db9455e64d279ab78ffd2ff776cdf78b | 9dd3f3912f7321eb58ee9aa8f21778ad6221f87c | /tests/lean/anc1.lean | 079106b0e4e924fa4682343d640fd946321302aa | [
"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 | 1,298 | lean | check (⟨1, 2⟩ : nat × nat)
check (⟨trivial, trivial⟩ : true ∧ true)
example : true := sorry
check (⟨1, sorry⟩ : Σ' x : nat, x > 0)
open tactic
check show true, from ⟨⟩
check (⟨1, by intro1 >> contradiction⟩ : ∃ x : nat, 1 ≠ 0)
universe variables u v
check λ (A B C : Prop),
assume (Ha : A) (Hb : B) (Hc : C),
s... |
6c81628f44b6b3fe04e980ff4c67bf10b0b65d30 | 9d2e3d5a2e2342a283affd97eead310c3b528a24 | /src/solutions/thursday/afternoon/category_theory/exercise6.lean | 2c378fbb004cb907a64735aada7eec3e9eb47a46 | [] | permissive | Vtec234/lftcm2020 | ad2610ab614beefe44acc5622bb4a7fff9a5ea46 | bbbd4c8162f8c2ef602300ab8fdeca231886375d | refs/heads/master | 1,668,808,098,623 | 1,594,989,081,000 | 1,594,990,079,000 | 280,423,039 | 0 | 0 | MIT | 1,594,990,209,000 | 1,594,990,209,000 | null | UTF-8 | Lean | false | false | 2,068 | lean | import category_theory.limits.shapes.pullbacks
/-!
Thanks to Markus Himmel for suggesting this question.
-/
open category_theory
open category_theory.limits
/-!
Let C be a category, X and Y be objects and f : X ⟶ Y be a morphism. Show that f is an epimorphism
if and only if the diagram
X --f--→ Y
| |
f ... |
96f3c6620c3ecaf6a44aa7d8a2534bc20278928a | 94e33a31faa76775069b071adea97e86e218a8ee | /src/analysis/inner_product_space/l2_space.lean | 3c285c1ebc41a0a8490e670ec3f7924875f3bde3 | [
"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 | 19,365 | lean | /-
Copyright (c) 2022 Heather Macbeth. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Heather Macbeth
-/
import analysis.inner_product_space.projection
import analysis.normed_space.lp_space
/-!
# Hilbert sum of a family of inner product spaces
Given a family `(G : ι ... |
22d4bd4b70ea5e2ba8a5ed57dc5b421d85464fbf | 9dc8cecdf3c4634764a18254e94d43da07142918 | /src/data/real/ennreal.lean | 99a303554d9a8a6788aa92343e51e1d6de9cbc80 | [
"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 | 81,142 | 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, Yury Kudryashov
-/
import data.real.nnreal
/-!
# Extended non-negative reals
We define `ennreal = ℝ≥0∞ := with_top ℝ≥0` to be the type of extended nonnegative real nu... |
0b32b926514bf764fec4c70f5850bc304fcb90e8 | 4d2583807a5ac6caaffd3d7a5f646d61ca85d532 | /src/category_theory/monoidal/Mon_.lean | e8a71d0f6983991cb4dd573225cbf781a623f721 | [
"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 | 9,389 | 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.discrete
import category_theory.limits.shapes.terminal
import algebra.punit_instances
/-!
# The category of monoids in a monoidal cat... |
9713ad8200a01897895046b15bf0092b28ef516e | b7f22e51856f4989b970961f794f1c435f9b8f78 | /tests/lean/634.lean | 8c213d0e2af6fce32ec5288f85fb5d01edaf2dd5 | [
"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 | 303 | lean | open nat
namespace foo
section
parameter (X : Type₁)
definition A {n : ℕ} : Type₁ := X
variable {n : ℕ}
set_option pp.implicit true
check @A n
set_option pp.full_names true
check @foo.A X n
check @A n
set_option pp.full_names false
check @foo.A X n
check @A n
end
end foo
|
ba425c05eb34f2f4b98baff71679edcb9001d64d | 1fbca480c1574e809ae95a3eda58188ff42a5e41 | /src/util/data/subtype.lean | 479144cedeadffc84d49fcf1a71e21450630ba64 | [] | no_license | unitb/lean-lib | 560eea0acf02b1fd4bcaac9986d3d7f1a4290e7e | 439b80e606b4ebe4909a08b1d77f4f5c0ee3dee9 | refs/heads/master | 1,610,706,025,400 | 1,570,144,245,000 | 1,570,144,245,000 | 99,579,229 | 5 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 258 | lean |
universe variables u v
variables {α : Type u}
@[simp]
lemma coe_subtype_eq_self {x : α} {P : α → Prop}
(h : P x)
: ↑ (⟨x, h⟩ : subtype P) = x :=
rfl
@[simp]
lemma coe_eq_subtype_val {P : α → Prop}
(x : subtype P)
: ↑ x = x.val :=
rfl
|
9ca67e1c3a18781d124d0c3d57ad7691d7b4fc2b | 94e33a31faa76775069b071adea97e86e218a8ee | /src/topology/sheaves/sheaf_condition/sites.lean | 0acfebdfea8a7455dcda5911dcd40119fc091b74 | [
"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,133 | lean | /-
Copyright (c) 2021 Justus Springer. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Justus Springer
-/
import category_theory.sites.spaces
import topology.sheaves.sheaf
import category_theory.sites.dense_subsite
/-!
# The sheaf condition in terms of sites.
The th... |
65c776579b279a932ebf6206bb08422b5477e31f | 26bff4ed296b8373c92b6b025f5d60cdf02104b9 | /library/data/num.lean | 6ce40d21fa3dcca90b63a502795d8e370ce12317 | [
"Apache-2.0"
] | permissive | guiquanz/lean | b8a878ea24f237b84b0e6f6be2f300e8bf028229 | 242f8ba0486860e53e257c443e965a82ee342db3 | refs/heads/master | 1,526,680,092,098 | 1,427,492,833,000 | 1,427,493,281,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 17,770 | lean | /-
Copyright (c) 2014 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Module: data.num
Author: Leonardo de Moura
-/
import data.bool tools.helper_tactics
open bool eq.ops decidable helper_tactics
namespace pos_num
theorem succ_not_is_one (a : pos_num) ... |
97cee66b2e64328b1b2435d78e99b7e3d1f4f935 | 6432ea7a083ff6ba21ea17af9ee47b9c371760f7 | /src/Init/Data/Stream.lean | 2eb2fb5143c79d8b419e4930c562f9d0be084c79 | [
"Apache-2.0",
"LLVM-exception",
"NCSA",
"LGPL-3.0-only",
"LicenseRef-scancode-inner-net-2.0",
"BSD-3-Clause",
"LGPL-2.0-or-later",
"Spencer-94",
"LGPL-2.1-or-later",
"HPND",
"LicenseRef-scancode-pcre",
"ISC",
"LGPL-2.1-only",
"LicenseRef-scancode-other-permissive",
"SunPro",
"CMU-Mach"... | permissive | leanprover/lean4 | 4bdf9790294964627eb9be79f5e8f6157780b4cc | f1f9dc0f2f531af3312398999d8b8303fa5f096b | refs/heads/master | 1,693,360,665,786 | 1,693,350,868,000 | 1,693,350,868,000 | 129,571,436 | 2,827 | 311 | Apache-2.0 | 1,694,716,156,000 | 1,523,760,560,000 | Lean | UTF-8 | Lean | false | false | 3,198 | lean | /-
Copyright (c) 2020 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Sebastian Ullrich, Andrew Kent, Leonardo de Moura
-/
prelude
import Init.Data.Array.Subarray
import Init.Data.Range
/-!
Remark: we considered using the following alternative de... |
28fb582ecf2fb5bc196d1ca9fc9ca726ec985b25 | 592ee40978ac7604005a4e0d35bbc4b467389241 | /Library/generated/mathscheme-lean/Carrier.lean | eebad3ee2d665670923d308d7aa39a6d448f83f5 | [] | 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 | 2,950 | 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 Carrier
structure Carrier (A : Type) : Type
open Carrier
structure Sig (AS : Type) : Type
structure Product (A : Type) : Type
structure Hom {A1... |
f117b401fbcbc801c6b00563291e2ea591a5e226 | 5ae26df177f810c5006841e9c73dc56e01b978d7 | /src/ring_theory/algebra.lean | 63693d21384fde37a0ea826c998067750f87bd01 | [
"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 | 19,826 | lean | /-
Copyright (c) 2018 Kenny Lau. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Kenny Lau
Algebra over Commutative Ring (under category)
-/
import data.polynomial data.mv_polynomial
import data.complex.basic
import linear_algebra.tensor_product
import ring_theory.sub... |
bde292321318c7fb2446da9f544af36f7bde703e | 57c233acf9386e610d99ed20ef139c5f97504ba3 | /src/linear_algebra/sesquilinear_form.lean | 2416142748070d7604436c5c047a432ce658f670 | [
"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 | 11,063 | lean | /-
Copyright (c) 2018 Andreas Swerdlow. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Andreas Swerdlow
-/
import algebra.module.linear_map
import linear_algebra.bilinear_map
import linear_algebra.matrix.basis
/-!
# Sesquilinear form
This files provides properties ab... |
999b6907ba4a89263123c448cc0f49692aac9b0d | 35b83be3126daae10419b573c55e1fed009d3ae8 | /_target/deps/mathlib/data/equiv/algebra.lean | 81c51d84080814f987b16ccd41d897276d170a10 | [] | 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 | 1,555 | lean | /-
Copyright (c) 2018 Johannes Hölzl. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Johannes Hölzl
-/
import data.equiv.basic algebra.group
namespace equiv
variables {α : Type*} [group α]
protected def mul_left (a : α) : α ≃ α :=
{ to_fun := λx, a * x,
inv_fun ... |
7c92618a5d0740f16737bb62cf978e105530a838 | 9028d228ac200bbefe3a711342514dd4e4458bff | /src/computability/tm_to_partrec.lean | 972f3effcd50d670dee6af39b51b84d3d7d826c4 | [
"Apache-2.0"
] | permissive | mcncm/mathlib | 8d25099344d9d2bee62822cb9ed43aa3e09fa05e | fde3d78cadeec5ef827b16ae55664ef115e66f57 | refs/heads/master | 1,672,743,316,277 | 1,602,618,514,000 | 1,602,618,514,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 64,504 | lean | /-
Copyright (c) 2020 Mario Carneiro. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Author: Mario Carneiro
-/
import computability.halting
import computability.turing_machine
import data.num.lemmas
/-!
# Modelling partial recursive functions using Turing machines
This file d... |
4a0abe17344560af1edd8b38a18c5ccea26297f8 | a45212b1526d532e6e83c44ddca6a05795113ddc | /src/data/sigma/default.lean | 98ed296c3344033273ad813fa9e1244cda2013e6 | [
"Apache-2.0"
] | permissive | fpvandoorn/mathlib | b21ab4068db079cbb8590b58fda9cc4bc1f35df4 | b3433a51ea8bc07c4159c1073838fc0ee9b8f227 | refs/heads/master | 1,624,791,089,608 | 1,556,715,231,000 | 1,556,715,231,000 | 165,722,980 | 5 | 0 | Apache-2.0 | 1,552,657,455,000 | 1,547,494,646,000 | Lean | UTF-8 | Lean | false | false | 24 | lean | import data.sigma.basic
|
9be1dd987da475dbf75adde76b38f8beb37c4dbd | 206422fb9edabf63def0ed2aa3f489150fb09ccb | /src/analysis/normed_space/multilinear.lean | d2d46d22b4c0b45861f40580981557b050185a1b | [
"Apache-2.0"
] | permissive | hamdysalah1/mathlib | b915f86b2503feeae268de369f1b16932321f097 | 95454452f6b3569bf967d35aab8d852b1ddf8017 | refs/heads/master | 1,677,154,116,545 | 1,611,797,994,000 | 1,611,797,994,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 58,771 | 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 analysis.normed_space.operator_norm
import topology.algebra.multilinear
/-!
# Operator norm on the space of continuous multilinear maps
When `f` is a c... |
c05ffca7a546594bdccf3b9792c64ddd247a8334 | e00ea76a720126cf9f6d732ad6216b5b824d20a7 | /src/computability/partrec_code.lean | b3478e80242c603a309644c83bd2305d7c8a3f8c | [
"Apache-2.0"
] | permissive | vaibhavkarve/mathlib | a574aaf68c0a431a47fa82ce0637f0f769826bfe | 17f8340912468f49bdc30acdb9a9fa02eeb0473a | refs/heads/master | 1,621,263,802,637 | 1,585,399,588,000 | 1,585,399,588,000 | 250,833,447 | 0 | 0 | Apache-2.0 | 1,585,410,341,000 | 1,585,410,341,000 | null | UTF-8 | Lean | false | false | 37,980 | lean | /-
Copyright (c) 2018 Mario Carneiro. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Author: Mario Carneiro
Godel numbering for partial recursive functions.
-/
import computability.partrec
open encodable denumerable
namespace nat.partrec
open nat (mkpair)
theorem rfind' {f}... |
9480cc8250d7480c715cb4ef909d3f0f9f038157 | a0e23cfdd129a671bf3154ee1a8a3a72bf4c7940 | /src/Init/Data/Nat/Basic.lean | 2f115007c83ac8deb7442aa1b5bad12013361360 | [
"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 | 13,676 | lean | /-
Copyright (c) 2014 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Floris van Doorn, Leonardo de Moura
-/
prelude
import Init.SimpLemmas
universe u
namespace Nat
@[specialize] def foldAux {α : Type u} (f : Nat → α → α) (s : Nat) : Nat → α → α... |
2c2b6d86b9a3423b111591705b222e8cc43ae539 | 367134ba5a65885e863bdc4507601606690974c1 | /src/category_theory/sites/sieves.lean | 2043ff7498b635d11898a32f66e73e2298185483 | [
"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 | 14,134 | lean | /-
Copyright (c) 2020 Bhavik Mehta. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Bhavik Mehta, E. W. Ayers
-/
import category_theory.over
import category_theory.limits.shapes.finite_limits
import category_theory.yoneda
import order.complete_lattice
import data.set.l... |
5bcdcd8a26a2edfb5534610fdefd79b73849c8c5 | 6432ea7a083ff6ba21ea17af9ee47b9c371760f7 | /src/Lean/Meta/Eqns.lean | 3f07258d9ded666419d83e12910291c6d7b44cb5 | [
"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,244 | 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
import Lean.Meta.AppBuilder
namespace Lean.Meta
def GetEqnsFn := Name → MetaM (Option (Array Name))
private builtin_initialize get... |
4385b5cebde97b0830c698c1e851f4ccb394c42d | 57c233acf9386e610d99ed20ef139c5f97504ba3 | /src/algebra/lie/solvable.lean | e8978a2402ef80576123f00e13fe08d9f054f5f1 | [
"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,861 | lean | /-
Copyright (c) 2021 Oliver Nash. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Oliver Nash
-/
import algebra.lie.abelian
import algebra.lie.ideal_operations
import order.hom.basic
/-!
# Solvable Lie algebras
Like groups, Lie algebras admit a natural concept of sol... |
7a45042f0f4ed506d75e1c665d7e16211e4f6bfe | 9dc8cecdf3c4634764a18254e94d43da07142918 | /src/group_theory/submonoid/operations.lean | 2aa27c94f47dc3cade38e632675afa244ee6cf90 | [
"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 | 45,103 | 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.group_action.defs
import group_theory.submonoid.basi... |
e7c6a12e9f62360a7c0473f38f1a5e5242d70e13 | a4673261e60b025e2c8c825dfa4ab9108246c32e | /stage0/src/Lean/Elab/Attributes.lean | c669cc30cafdfcd0d10f19c8fcc67e6af1144f11 | [
"Apache-2.0"
] | permissive | jcommelin/lean4 | c02dec0cc32c4bccab009285475f265f17d73228 | 2909313475588cc20ac0436e55548a4502050d0a | refs/heads/master | 1,674,129,550,893 | 1,606,415,348,000 | 1,606,415,348,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 1,752 | 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.Parser.Basic
import Lean.Attributes
import Lean.MonadEnv
namespace Lean.Elab
structure Attribute :=
(name : Name) (args : Sy... |
d8eaf2c89585b1e66c0fef3a9d17812de5d1801e | a45212b1526d532e6e83c44ddca6a05795113ddc | /src/tactic/algebra.lean | 43bfde7560c14e856c15f9ab3a008bda41376875 | [
"Apache-2.0"
] | permissive | fpvandoorn/mathlib | b21ab4068db079cbb8590b58fda9cc4bc1f35df4 | b3433a51ea8bc07c4159c1073838fc0ee9b8f227 | refs/heads/master | 1,624,791,089,608 | 1,556,715,231,000 | 1,556,715,231,000 | 165,722,980 | 5 | 0 | Apache-2.0 | 1,552,657,455,000 | 1,547,494,646,000 | Lean | UTF-8 | Lean | false | false | 1,855 | 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.basic
open lean.parser
namespace tactic
@[user_attribute]
meta def ancestor_attr : user_attribute unit (list name) :=
{ name := `ancestor,
descr := "anc... |
100b3b494c96937b80626a605b7834e6b6399842 | 7cdf3413c097e5d36492d12cdd07030eb991d394 | /src/game/world4/level5.lean | c502d72cf5c70878af3b295d9894022ccfd0a90f | [] | no_license | alreadydone/natural_number_game | 3135b9385a9f43e74cfbf79513fc37e69b99e0b3 | 1a39e693df4f4e871eb449890d3c7715a25c2ec9 | refs/heads/master | 1,599,387,390,105 | 1,573,200,587,000 | 1,573,200,691,000 | 220,397,084 | 0 | 0 | null | 1,573,192,734,000 | 1,573,192,733,000 | null | UTF-8 | Lean | false | false | 441 | lean | import game.world4.level4 -- hide
namespace mynat -- hide
/-
# World 4 : Power World
## Level 5: `pow_add`
-/
/- Lemma
For all naturals $m$, $a$, $b$, we have $a^{m + n} = a ^ m a ^ n$.
-/
lemma pow_add (a m n : mynat) : a ^ (m + n) = a ^ m * a ^ n :=
begin [less_leaky]
induction n with t ht,
rw [add_zero, ... |
e59e0052af0b6e5eb379bbd654197819396b4875 | bb31430994044506fa42fd667e2d556327e18dfe | /src/analysis/inner_product_space/projection.lean | 482ec4b838a5b2922cccf8b3c933b5fbcdf55115 | [
"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 | 58,576 | lean | /-
Copyright (c) 2019 Zhouhang Zhou. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Zhouhang Zhou, Frédéric Dupuis, Heather Macbeth
-/
import analysis.convex.basic
import analysis.inner_product_space.symmetric
import analysis.normed_space.is_R_or_C
/-!
# The orthogona... |
972b3f575971b1be61e196fe4e90b9aa1d11c051 | 618003631150032a5676f229d13a079ac875ff77 | /src/number_theory/sum_two_squares.lean | a833e09a9fef6744657bc0624e1f5d7787c36103 | [
"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 | 786 | lean | /-
Copyright (c) 2019 Chris Hughes. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Author: Chris Hughes
-/
import data.zsqrtd.gaussian_int
/-!
# Sums of two squares
Proof of Fermat's theorem on the sum of two squares. Every prime congruent to 1 mod 4 is the sum
of two squares
... |
a53b8e8a63cc212b546eccb345c26f023c98b0a6 | a45212b1526d532e6e83c44ddca6a05795113ddc | /src/category_theory/instances/CommRing/basic.lean | 6df7f277ebd35dc144659add66e96d7bcc1f01f4 | [
"Apache-2.0"
] | permissive | fpvandoorn/mathlib | b21ab4068db079cbb8590b58fda9cc4bc1f35df4 | b3433a51ea8bc07c4159c1073838fc0ee9b8f227 | refs/heads/master | 1,624,791,089,608 | 1,556,715,231,000 | 1,556,715,231,000 | 165,722,980 | 5 | 0 | Apache-2.0 | 1,552,657,455,000 | 1,547,494,646,000 | Lean | UTF-8 | Lean | false | false | 3,105 | lean | /- Copyright (c) 2018 Scott Morrison. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Scott Morrison, Johannes Hölzl
Introduce CommRing -- the category of commutative rings.
-/
import category_theory.instances.monoids
import algebra.ring
import data.int.basic
univers... |
7e923f2bddecacdd47359d6406086e1da78d48dc | 4b846d8dabdc64e7ea03552bad8f7fa74763fc67 | /tests/lean/run/basic_monitor.lean | 61d943488781e75953eaa351417cc3ca2b879c05 | [
"Apache-2.0"
] | permissive | pacchiano/lean | 9324b33f3ac3b5c5647285160f9f6ea8d0d767dc | fdadada3a970377a6df8afcd629a6f2eab6e84e8 | refs/heads/master | 1,611,357,380,399 | 1,489,870,101,000 | 1,489,870,101,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 299 | lean | meta def basic_monitor : vm_monitor nat :=
{ init := 0, step := λ s, return (trace ("step " ++ s^.to_string) (s+1)) }
run_cmd vm_monitor.register `basic_monitor
set_option debugger true
example (a b : Prop) : a → b → a ∧ b :=
begin
intros,
constructor,
assumption,
assumption
end
|
669f1f3a7dbdcee68148713f23c7aa01d3f0750e | 969dbdfed67fda40a6f5a2b4f8c4a3c7dc01e0fb | /src/category_theory/adjunction/mates.lean | 4edaeb4f8aedef5edfb55325e1a922db002f6ed8 | [
"Apache-2.0"
] | permissive | SAAluthwela/mathlib | 62044349d72dd63983a8500214736aa7779634d3 | 83a4b8b990907291421de54a78988c024dc8a552 | refs/heads/master | 1,679,433,873,417 | 1,615,998,031,000 | 1,615,998,031,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 10,481 | lean | /-
Copyright (c) 2020 Bhavik Mehta. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Author: Bhavik Mehta
-/
import category_theory.adjunction.basic
import category_theory.conj
import category_theory.yoneda
/-!
# Mate of natural transformations
This file establishes the bijecti... |
d5af595553dfd25054ae533b53b21110fbc47f37 | 4727251e0cd73359b15b664c3170e5d754078599 | /src/number_theory/legendre_symbol/gauss_eisenstein_lemmas.lean | be4dcb44bc93b4019ed2981194585ec02e11a489 | [
"Apache-2.0"
] | permissive | Vierkantor/mathlib | 0ea59ac32a3a43c93c44d70f441c4ee810ccceca | 83bc3b9ce9b13910b57bda6b56222495ebd31c2f | refs/heads/master | 1,658,323,012,449 | 1,652,256,003,000 | 1,652,256,003,000 | 209,296,341 | 0 | 1 | Apache-2.0 | 1,568,807,655,000 | 1,568,807,655,000 | null | UTF-8 | Lean | false | false | 13,777 | 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 field_theory.finite.basic
import data.zmod.basic
/-!
# Lemmas of Gauss and Eisenstein
This file contains code for the proof of the Lemmas of Gauss and Eisenstein... |
b82e3ffc406b476d75b709002c3a4aba7f32fa09 | b7f22e51856f4989b970961f794f1c435f9b8f78 | /tests/lean/run/class8.lean | dd8fd8268c963aac9c987e62aa7d5f3e936c9256 | [
"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 | 1,043 | lean | import logic data.prod
open tactic prod
inductive inh [class] (A : Type) : Prop :=
intro : A -> inh A
attribute inh.intro [instance]
theorem inh_elim {A : Type} {B : Prop} (H1 : inh A) (H2 : A → B) : B
:= inh.rec H2 H1
theorem inh_exists {A : Type} {P : A → Prop} (H : ∃x, P x) : inh A
:= obtain w Hw, from H, inh.in... |
10a32d4185c182bd2c3580b07917b1d499eee947 | 82b86ba2ae0d5aed0f01f49c46db5afec0eb2bd7 | /stage0/src/Init/Data/Array.lean | c2a9a1b84f8b829bb06de904189e48a93d3a28d2 | [
"Apache-2.0"
] | permissive | banksonian/lean4 | 3a2e6b0f1eb63aa56ff95b8d07b2f851072d54dc | 78da6b3aa2840693eea354a41e89fc5b212a5011 | refs/heads/master | 1,673,703,624,165 | 1,605,123,551,000 | 1,605,123,551,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 289 | lean | /-
Copyright (c) 2017 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Gabriel Ebner
-/
prelude
import Init.Data.Array.Basic
import Init.Data.Array.QSort
import Init.Data.Array.BinSearch
import Init.Data.Array.Macros
|
e269cfb5014048efa5535a0082b68203f7f9ca7c | d9d511f37a523cd7659d6f573f990e2a0af93c6f | /src/data/ordmap/ordset.lean | ac50c1f974c6279f62e3a16279db533cde8f1cac | [
"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 | 69,880 | 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.ordmap.ordnode
import algebra.ordered_ring
import data.nat.dist
import tactic.linarith
/-!
# Verification of the `ordnode α` datatype
This file proves t... |
b33928e4392b392a282f2bc3d7767b9589bdfdcb | 853df553b1d6ca524e3f0a79aedd32dde5d27ec3 | /src/data/equiv/mul_add.lean | 93d0514e262928b85cd1bcacf7c969408c071461 | [
"Apache-2.0"
] | permissive | DanielFabian/mathlib | efc3a50b5dde303c59eeb6353ef4c35a345d7112 | f520d07eba0c852e96fe26da71d85bf6d40fcc2a | refs/heads/master | 1,668,739,922,971 | 1,595,201,756,000 | 1,595,201,756,000 | 279,469,476 | 0 | 0 | null | 1,594,696,604,000 | 1,594,696,604,000 | null | UTF-8 | Lean | false | false | 13,436 | 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, Callum Sutton, Yury Kudryashov
-/
import data.equiv.basic
import deprecated.group
/-!
# Multiplicative and additive equivs
In this file we define two extensions of `e... |
259160076438e6d9fcc9491370559e9c7103e0ce | 853df553b1d6ca524e3f0a79aedd32dde5d27ec3 | /src/category_theory/equivalence.lean | 220952d2d4fbc82ed86af4d6f3dd6e45dd42ca77 | [
"Apache-2.0"
] | permissive | DanielFabian/mathlib | efc3a50b5dde303c59eeb6353ef4c35a345d7112 | f520d07eba0c852e96fe26da71d85bf6d40fcc2a | refs/heads/master | 1,668,739,922,971 | 1,595,201,756,000 | 1,595,201,756,000 | 279,469,476 | 0 | 0 | null | 1,594,696,604,000 | 1,594,696,604,000 | null | UTF-8 | Lean | false | false | 16,473 | lean | /-
Copyright (c) 2017 Scott Morrison. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Tim Baumann, Stephen Morgan, Scott Morrison, Floris van Doorn
-/
import category_theory.fully_faithful
import category_theory.whiskering
import tactic.slice
namespace category_theory
... |
fb9e40a720b4f76802cae4b78e410faff121282d | a9d0fb7b0e4f802bd3857b803e6c5c23d87fef91 | /tests/lean/inaccessible2.lean | f2f55e80a0a0b1e8fec7bdf05371a95877dab1a3 | [
"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 | 791 | lean |
inductive imf {A B : Type*} (f : A → B) : B → Type*
| mk : ∀ (a : A), imf (f a)
definition inv_1 {A B : Type*} (f : A → B) : ∀ (b : B), imf f b → A
| .(f .a) (imf.mk .f a) := a -- Error inaccessible annotation inside inaccessible annotation
definition inv_2 {A B : Type*} (f : A → B) : ∀ (b : B), imf f b → A
| .(f ... |
c0a3eba8263403911b90b0bae661ff20824a522e | 6094e25ea0b7699e642463b48e51b2ead6ddc23f | /library/init/tactic.lean | 5271777f6b53b9070cf444055d8f163007b05bf6 | [
"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,308 | lean | /-
Copyright (c) 2014 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Author: Leonardo de Moura
This is just a trick to embed the 'tactic language' as a Lean
expression. We should view 'tactic' as automation that when execute
produces a term. tactic.buil... |
606445f79d3d1e426cd2f2d5d353ae762c3b4eb7 | e9dbaaae490bc072444e3021634bf73664003760 | /src/Problems/2018/IMO_2018_P6.lean | b1a111e33ad1e81649a4224a9e0b918e84af4d2b | [
"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 | 468 | lean | import Geo.Geo.Core
namespace Geo
open Analytic Angle Quadrilateral Triangle
def IMO_2018_P6 : Prop :=
∀ (A B C D : Point),
convex (Quadrilateral.mk A B C D) →
ulen (Seg.mk A B) * ulen (Seg.mk C D) = ulen (Seg.mk B C) * ulen (Seg.mk D A) →
∀ (X : Point),
inside X (Quadrilateral.mk A B C D) →
uangle ⟨X, A, B⟩ = uangl... |
821c61b0193531cc7c3740a98d8cf905ed12e278 | 618003631150032a5676f229d13a079ac875ff77 | /src/init_/algebra/norm_num.lean | 46617492bf9a15d88f2f768490e1875bd4f0df33 | [
"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 | 8,873 | lean | /-
Copyright (c) 2016 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Robert Lewis, Leonardo de Moura
-/
import algebra.field
import algebra.ordered_ring
namespace norm_num
universe u
variable {α : Type u}
def add1 [has_add α] [has_one α] (a : α... |
6743305d7c659f442d2752301208d3b00fd47830 | 4b846d8dabdc64e7ea03552bad8f7fa74763fc67 | /library/init/meta/decl_cmds.lean | adf52d4b028cc256d91b50285f2271a37917e0d2 | [
"Apache-2.0"
] | permissive | pacchiano/lean | 9324b33f3ac3b5c5647285160f9f6ea8d0d767dc | fdadada3a970377a6df8afcd629a6f2eab6e84e8 | refs/heads/master | 1,611,357,380,399 | 1,489,870,101,000 | 1,489,870,101,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 2,038 | lean | /-
Copyright (c) 2016 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Leonardo de Moura
-/
prelude
import init.meta.tactic init.meta.rb_map
open tactic
private meta def apply_replacement (replacements : name_map name) (e : expr) : expr :=
e^.repl... |
511c7f1b8765abe4109ba88652d84c44f061eefc | 618003631150032a5676f229d13a079ac875ff77 | /src/data/num/lemmas.lean | 5bcd4b36caa4901f4089bfbf6b7a1f92fa7ccaba | [
"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 | 48,317 | lean | /-
Copyright (c) 2014 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Author: Mario Carneiro
-/
import data.num.bitwise
import data.int.basic
import data.nat.gcd
/-!
# Properties of the binary representation of integers
-/
local attribute [simp] add_asso... |
166f5aeea84a39bdbf81d0e61e2377175a4bc0cf | 4d2583807a5ac6caaffd3d7a5f646d61ca85d532 | /scripts/lint_mathlib.lean | 9ef459bd5498d75bf996e927556e6321a2bb5096 | [
"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 | 3,237 | 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, Gabriel Ebner
-/
import tactic.lint
import system.io -- these are required
import all -- then import everything, to parse the library for failing linters
/-!
# l... |
b39865bb842ace0beb11c509bad804754bdc8339 | 947fa6c38e48771ae886239b4edce6db6e18d0fb | /src/measure_theory/measure/measure_space.lean | 529820cdfca5f3083562c2b6023bfab09595c90e | [
"Apache-2.0"
] | permissive | ramonfmir/mathlib | c5dc8b33155473fab97c38bd3aa6723dc289beaa | 14c52e990c17f5a00c0cc9e09847af16fabbed25 | refs/heads/master | 1,661,979,343,526 | 1,660,830,384,000 | 1,660,830,384,000 | 182,072,989 | 0 | 0 | null | 1,555,585,876,000 | 1,555,585,876,000 | null | UTF-8 | Lean | false | false | 156,890 | 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.null_measurable
import measure_theory.measurable_space
/-!
# Measure spaces
The definition of a measure and a measure ... |
89dce1f5c4dc6ed54f8f889b7fbcaefed5ce6619 | a9d0fb7b0e4f802bd3857b803e6c5c23d87fef91 | /tests/lean/choice_expl.lean | 2a4d97e976fedc9e78975b93c0953f3e03a3f1b8 | [
"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 | 247 | lean | universe variables u
namespace N1
definition pr {A : Type u} (a b : A) := a
end N1
namespace N2
definition pr {A : Type u} (a b : A) := b
end N2
open N1 N2
constant N : Type.{1}
constants a b : N
check @N1.pr
check @N2.pr N a b
check pr a b
|
5fb7626c2d1b71d5268e2b8c8736e55d6bed7119 | 4fa161becb8ce7378a709f5992a594764699e268 | /src/category_theory/limits/shapes/products.lean | 112f5d45569b8818140d0a6f6bb84f6533e14e13 | [
"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 | 3,053 | 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.limits.limits
import category_theory.discrete_category
universes v u
open category_theory
namespace category_theory.limits
variables {β : T... |
5d1f70fe08fe0b786c3f9437403b1d319a078acd | 5d62e434e81e3303af5bef665e46bef75f10b45e | /polynomial_ideal/src/test.lean | 9fa8e196555a1a5b24ffef7336b53cb2066a3e6b | [] | no_license | ChrisHughes24/type_class | 4b49764e9b96b2c7d2b6e4e7827730ca7a64a3b2 | b582b60bdc84b7cd17b4243600088143afddc65c | refs/heads/master | 1,595,404,449,845 | 1,567,951,656,000 | 1,567,951,656,000 | 207,121,926 | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 371 | lean | import data.polynomial ring_theory.localization
variables (α : Type*) [discrete_field α]
variables (I : ideal (polynomial α))
-- `ring_theory.localization` import breaks this
-- https://leanprover.zulipchat.com/#narrow/stream/113488-general/topic/timeout.20when.20working.20with.20ideal.20of.20polynomial.20ring
#check... |
1193042eda58f86c26982402347ceaa3d41abc4d | 22e97a5d648fc451e25a06c668dc03ac7ed7bc25 | /src/data/matrix/pequiv.lean | d8a8d7809c9f0c57cf3bd347b4cccb2ef8b7a391 | [
"Apache-2.0"
] | permissive | keeferrowan/mathlib | f2818da875dbc7780830d09bd4c526b0764a4e50 | aad2dfc40e8e6a7e258287a7c1580318e865817e | refs/heads/master | 1,661,736,426,952 | 1,590,438,032,000 | 1,590,438,032,000 | 266,892,663 | 0 | 0 | Apache-2.0 | 1,590,445,835,000 | 1,590,445,835,000 | null | UTF-8 | Lean | false | false | 5,733 | 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... |
3b75526662c692183a83a960c2415ff00dd7c036 | 4727251e0cd73359b15b664c3170e5d754078599 | /src/category_theory/limits/shapes/kernels.lean | 3a244f923f03c1715157430c4ea9839f9a9fb9b8 | [
"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 | 36,260 | 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.preserves.shapes.zero
/-!
# Kernels and cokernels
In a category with zero morphisms, the kernel of a morphism `f : X ⟶ ... |
2886463f2cdd3dfc9fc77df0f421fa0e0b89a777 | 75db7e3219bba2fbf41bf5b905f34fcb3c6ca3f2 | /hott/init/nat.hlean | 2587f6abf35ee6dcfd7818369542fc752547aa33 | [
"Apache-2.0"
] | permissive | jroesch/lean | 30ef0860fa905d35b9ad6f76de1a4f65c9af6871 | 3de4ec1a6ce9a960feb2a48eeea8b53246fa34f2 | refs/heads/master | 1,586,090,835,348 | 1,455,142,203,000 | 1,455,142,277,000 | 51,536,958 | 1 | 0 | null | 1,455,215,811,000 | 1,455,215,811,000 | null | UTF-8 | Lean | false | false | 9,845 | hlean | /-
Copyright (c) 2014 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Floris van Doorn, Leonardo de Moura
-/
prelude
import init.tactic init.num init.types init.path
open eq eq.ops decidable
open algebra sum
set_option class.force_new true
notati... |
8eb69a2f1d1cbba1dec0b9c2f9f6e2a75ccd1b02 | 02fbe05a45fda5abde7583464416db4366eedfbf | /library/init/control/except.lean | 49689750368f741b73032ff82fedfe451ebb2d59 | [
"Apache-2.0"
] | permissive | jasonrute/lean | cc12807e11f9ac6b01b8951a8bfb9c2eb35a0154 | 4be962c167ca442a0ec5e84472d7ff9f5302788f | refs/heads/master | 1,672,036,664,637 | 1,601,642,826,000 | 1,601,642,826,000 | 260,777,966 | 0 | 0 | Apache-2.0 | 1,588,454,819,000 | 1,588,454,818,000 | null | UTF-8 | Lean | false | false | 5,209 | lean | /-
Copyright (c) 2017 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Jared Roesch, Sebastian Ullrich
The except monad transformer.
-/
prelude
import init.control.alternative init.control.lift
universes u v w
inductive except (ε : Type u) (α : ... |
d0026b6f535382b0f11d413227c7e432bfae9ec6 | 5ae26df177f810c5006841e9c73dc56e01b978d7 | /test/library_search/ordered_ring.lean | 1b9759800a228460dc1d4da64f9ccb68f3b72c43 | [
"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 | 449 | 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 tactic.library_search
import algebra.ordered_ring
/- Turn off trace messages so they don't pollute the test build: -/
set_option trace.silence_library_search ... |
9fdfb4bfb0c664cfe1a714c87a54c86972a7fbbd | fa02ed5a3c9c0adee3c26887a16855e7841c668b | /src/group_theory/submonoid/operations.lean | c9bdf69382309e184387070b50a929e92fd6112e | [
"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 | 30,356 | 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... |
a9083a79b383759d6282f8baa06a3d5df9ebe96a | ea5678cc400c34ff95b661fa26d15024e27ea8cd | /series1.lean | 093d1a790d76c3a56a163ffa054addfb55abd930 | [] | 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 | 23,927 | 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.big_operators data.real.cau_seq tactic.ring algebra.archimedean data.nat.choose analysis.limits .disjoint_finset
open nat is_absolute_value finset
varia... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.