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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
5341c2672f5b22302ebcd66f42ef9da0a0f368f2 | 3618c6e11aa822fd542440674dfb9a7b9921dba0 | /scratch/pre.lean | 38de0d77e07407f42933b073623dbd193a1c2037 | [] | no_license | ChrisHughes24/single_relation | 99ceedcc02d236ce46d6c65d72caa669857533c5 | 057e157a59de6d0e43b50fcb537d66792ec20450 | refs/heads/master | 1,683,652,062,698 | 1,683,360,089,000 | 1,683,360,089,000 | 279,346,432 | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 26,467 | lean | import data.list.chain
import data.sigma.basic
variables {ι : Type*} {M : ι → Type*} {G : ι → Type*} {N : Type*}
variables [Π i, monoid (M i)] [Π i, group (G i)] [monoid N]
open list function
namespace coprod.pre
def reduced (l : list (Σ i, M i)) : Prop :=
l.chain' (λ a b, a.1 ≠ b.1) ∧ ∀ a : Σ i, M i, a ∈ l → a.2 ≠... |
5ec7075f95dcafb51dcfde384d8fa2c156503096 | 1fbca480c1574e809ae95a3eda58188ff42a5e41 | /src/util/meta/expr.lean | b4b04034eaf96f15936aa411992e988a6bdbcba5 | [] | 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 | 402 | lean |
universes u v
section expr
open expr
meta def expr.is_mvar : expr → bool
| (expr.mvar _ _ _) := tt
| _ := ff
meta def expr.list_meta_vars (e : expr) : list expr :=
e.fold [] (λ e' _ es, if expr.is_mvar e' ∧ ¬ e' ∈ es then e' :: es else es)
meta def expr.list_const (e : expr) : list expr :=
e.fold [] (λ e' _ es, ... |
e8f41e3d635df03ea0a066d444f78adb02254597 | d406927ab5617694ec9ea7001f101b7c9e3d9702 | /src/topology/algebra/order/basic.lean | bbc2f2d8c34d46755a945345eaf7524772cfc127 | [
"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 | 125,431 | 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, Yury Kudryashov
-/
import data.set.intervals.pi
import data.set.pointwise.interval
import order.filter.interval
import topology.algebra.group.basic
impo... |
7be0fc8fb9180255b6876d06c4601891561762c1 | ae1e94c332e17c7dc7051ce976d5a9eebe7ab8a5 | /stage0/src/Lean/Util/ForEachExpr.lean | bcf36bdb13216425af41ccbcfeb1c2a37e8c5b7a | [
"Apache-2.0"
] | permissive | dupuisf/lean4 | d082d13b01243e1de29ae680eefb476961221eef | 6a39c65bd28eb0e28c3870188f348c8914502718 | refs/heads/master | 1,676,948,755,391 | 1,610,665,114,000 | 1,610,665,114,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 1,477 | 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.Expr
import Lean.Util.MonadCache
namespace Lean
/-
Remark: we cannot use the caching trick used at `FindExpr` and `ReplaceExpr` because they
ma... |
72ed41fe8b5eb47eebf579392ecb35d7c444dba4 | 69d4931b605e11ca61881fc4f66db50a0a875e39 | /src/data/fintype/basic.lean | 53ec211529c2a7ef4a0971ce41002f4f76f7fe3c | [
"Apache-2.0"
] | permissive | abentkamp/mathlib | d9a75d291ec09f4637b0f30cc3880ffb07549ee5 | 5360e476391508e092b5a1e5210bd0ed22dc0755 | refs/heads/master | 1,682,382,954,948 | 1,622,106,077,000 | 1,622,106,077,000 | 149,285,665 | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 65,502 | lean | /-
Copyright (c) 2017 Mario Carneiro. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Mario Carneiro
Finite types.
-/
import tactic.wlog
import data.finset.powerset
import data.finset.lattice
import data.finset.pi
import data.array.lemmas
import order.well_founded
impo... |
aef2d9cbf1200de2d7a9b6168881086d0d546628 | 9dc8cecdf3c4634764a18254e94d43da07142918 | /src/data/polynomial/cardinal.lean | 37ca4523974275fbf7ebb42a030e01b89ac3c2a6 | [
"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 | 965 | lean | /-
Copyright (c) 2021 Chris Hughes, Junyan Xu. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Chris Hughes, Junyan Xu
-/
import data.polynomial.basic
import set_theory.cardinal.ordinal
/-!
# Cardinality of Polynomial Ring
The reuslt in this file is that the cardinalit... |
7be1785c83469cdc4b1dfc47c1a79106982d7e25 | 55c7fc2bf55d496ace18cd6f3376e12bb14c8cc5 | /src/number_theory/basic.lean | c5672d40ddf000b1212436a90001b1bc5fe3d972 | [
"Apache-2.0"
] | permissive | dupuisf/mathlib | 62de4ec6544bf3b79086afd27b6529acfaf2c1bb | 8582b06b0a5d06c33ee07d0bdf7c646cae22cf36 | refs/heads/master | 1,669,494,854,016 | 1,595,692,409,000 | 1,595,692,409,000 | 272,046,630 | 0 | 0 | Apache-2.0 | 1,592,066,143,000 | 1,592,066,142,000 | null | UTF-8 | Lean | false | false | 1,000 | lean | /-
Copyright (c) 2020 Johan Commelin. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Johan Commelin, Kenny Lau
-/
import algebra.geom_sum
import ring_theory.ideals
section
open ideal ideal.quotient
lemma dvd_sub_pow_of_dvd_sub {R : Type*} [comm_ring R] {p : ℕ}
{a... |
e68e5a6c17a1ab723b4d21311eebe28c85957929 | f3849be5d845a1cb97680f0bbbe03b85518312f0 | /library/init/meta/injection_tactic.lean | 67af809462d70f67d9eada03d74d598e3552e0ad | [
"Apache-2.0"
] | permissive | bjoeris/lean | 0ed95125d762b17bfcb54dad1f9721f953f92eeb | 4e496b78d5e73545fa4f9a807155113d8e6b0561 | refs/heads/master | 1,611,251,218,281 | 1,495,337,658,000 | 1,495,337,658,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 1,744 | 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.function
namespace tactic
open nat tactic environment expr list
private meta def at_end₂ (e₁ e₂ : expr) : ℕ → tactic ... |
1626f6400409c7f397a91a15ea2d526dc893f0a9 | e06c671a00e35fd4519f2a873357dbe68de8f8fe | /library/unitTest.lean | 89bf3d983e13bf06cbf5317aa22c102f9bc233d8 | [] | no_license | kevinsullivan/lfp | cf6d17477dfeac6e214773e831cd6b2a63009d0d | 5801f30c61caf6f1a4c7a2e38bd2563bc4b74f03 | refs/heads/master | 1,611,377,645,056 | 1,490,641,032,000 | 1,490,641,032,000 | 86,255,290 | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 64 | lean | import unit
namespace cs1
def u: unit := id unit.star
end cs1 |
ca5820ea3babc889b4b0ec50942abb7694bd4641 | 3f7026ea8bef0825ca0339a275c03b911baef64d | /src/order/conditionally_complete_lattice.lean | 7cc9b7954b8f7a68c346cea4a679fd4f4b06b91a | [
"Apache-2.0"
] | permissive | rspencer01/mathlib | b1e3afa5c121362ef0881012cc116513ab09f18c | c7d36292c6b9234dc40143c16288932ae38fdc12 | refs/heads/master | 1,595,010,346,708 | 1,567,511,503,000 | 1,567,511,503,000 | 206,071,681 | 0 | 0 | Apache-2.0 | 1,567,513,643,000 | 1,567,513,643,000 | null | UTF-8 | Lean | false | false | 34,926 | lean | /-
Copyright (c) 2018 Sébastien Gouëzel. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Sébastien Gouëzel
Adapted from the corresponding theory for complete lattices.
Theory of conditionally complete lattices.
A conditionally complete lattice is a lattice in which ev... |
2056ad419bb1c70232d39ba5bb0a2a3a885cb5e0 | 5ae26df177f810c5006841e9c73dc56e01b978d7 | /src/category_theory/types.lean | f1a84f0caa188f0895be5e7761e121fc66cdf0bc | [
"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 | 5,320 | 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, Johannes Hölzl
-/
import category_theory.functor_category
import category_theory.fully_faithful
import data.equiv.basic
namespace category_theory
univ... |
25ffcd7f7c4d424f18414dcf6071853cc97f1740 | 9be442d9ec2fcf442516ed6e9e1660aa9071b7bd | /stage0/src/Lean/Meta/DiscrTreeTypes.lean | 5300aa4d77506e127c466f3a1c435613de666db1 | [
"Apache-2.0",
"LLVM-exception",
"NCSA",
"LGPL-3.0-only",
"LicenseRef-scancode-inner-net-2.0",
"BSD-3-Clause",
"LGPL-2.0-or-later",
"Spencer-94",
"LGPL-2.1-or-later",
"HPND",
"LicenseRef-scancode-pcre",
"ISC",
"LGPL-2.1-only",
"LicenseRef-scancode-other-permissive",
"SunPro",
"CMU-Mach"... | permissive | EdAyers/lean4 | 57ac632d6b0789cb91fab2170e8c9e40441221bd | 37ba0df5841bde51dbc2329da81ac23d4f6a4de4 | refs/heads/master | 1,676,463,245,298 | 1,660,619,433,000 | 1,660,619,433,000 | 183,433,437 | 1 | 0 | Apache-2.0 | 1,657,612,672,000 | 1,556,196,574,000 | Lean | UTF-8 | Lean | false | false | 1,189 | 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.Expr
namespace Lean.Meta
/-! See file `DiscrTree.lean` for the actual implementation and documentation. -/
namespace DiscrTree
inductive Key... |
632f684d24b54f1de0cbe2f70d6ff703dbd9fea1 | 367134ba5a65885e863bdc4507601606690974c1 | /src/data/nat/sqrt.lean | 8d0e75eb4067c2de00dbc010564410fa4e23638b | [
"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 | 7,786 | 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, Johannes Hölzl, Mario Carneiro
-/
import data.int.basic
/-!
# Square root of natural numbers
An efficient binary implementation of a (`sqrt n`) function that... |
d5f58e76799e643d30e17573a4f0427ba8d51010 | 8cae430f0a71442d02dbb1cbb14073b31048e4b0 | /src/topology/algebra/order/archimedean.lean | 33cdf711c7c1532d89199fae1e231856dc4c8f6b | [
"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 | 961 | lean | /-
Copyright (c) 2022 Yury G. Kudryashov. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Yury G. Kudryashov
-/
import topology.order.basic
import algebra.order.archimedean
/-!
# Rational numbers are dense in a linear ordered archimedean field
> THIS FILE IS SYNCHRONI... |
8b9b8f70060e6d1c000defe095b16d6c84c640c4 | 5df84495ec6c281df6d26411cc20aac5c941e745 | /src/formal_ml/monotone_class.lean | bfa30b0cc636c78cabd9f52bda0aa33c21a3797d | [
"Apache-2.0"
] | permissive | eric-wieser/formal-ml | e278df5a8df78aa3947bc8376650419e1b2b0a14 | 630011d19fdd9539c8d6493a69fe70af5d193590 | refs/heads/master | 1,681,491,589,256 | 1,612,642,743,000 | 1,612,642,743,000 | 360,114,136 | 0 | 0 | Apache-2.0 | 1,618,998,189,000 | 1,618,998,188,000 | null | UTF-8 | Lean | false | false | 25,670 | lean | /-
Copyright 2021 Google LLC
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
di... |
3a9a0d101300fd7221aa9de060181027eb72ba1b | a9d0fb7b0e4f802bd3857b803e6c5c23d87fef91 | /hott/cubical/square2.hlean | 96e4356a68dbd578135dbf442373bae307946f3f | [
"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,835 | 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
Coherence conditions for operations on squares
-/
import .square
open equiv
namespace eq
variables {A B C : Type} {a a' a'' a₀₀ a₂₀ a₄₀ a₀₂ a₂₂ a₂₄ a₀₄ a₄₂ a₄₄... |
1751688bd4331666de5296f4b2557a142075a4a3 | 947b78d97130d56365ae2ec264df196ce769371a | /tests/plugin/SnakeLinter.lean | 6be20fad34e097144ff5ca53f1a9018738fc0dbc | [
"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 | 329 | lean | import Lean
open Lean
def oh_no : Nat := 0
def snakeLinter : Linter :=
fun env n stx =>
-- TODO(Sebastian): return actual message with position from syntax tree
if n.toString.contains '_' then throw $ IO.userError "SNAKES!!"
else pure MessageLog.empty
@[init]
def registerSnakeLinter : IO Unit :=
addLinter sna... |
69a90689186c343610d7a81a2bab8e4e00afd7ab | 2a70b774d16dbdf5a533432ee0ebab6838df0948 | /_target/deps/mathlib/src/measure_theory/set_integral.lean | a6e73eafe6f71787f73d897ac850b9e35265f831 | [
"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 | 46,019 | lean | /-
Copyright (c) 2020 Zhouhang Zhou. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Zhouhang Zhou, Yury Kudryashov
-/
import measure_theory.bochner_integration
import analysis.normed_space.indicator_function
/-!
# Set integral
In this file we prove some properties of... |
80e49bd36752a01b0c32bd0245a700a45cfa7d3c | 8cae430f0a71442d02dbb1cbb14073b31048e4b0 | /src/analysis/convex/basic.lean | d1520b6a6ab74526909fa0dbc9b95ac2de0d5300 | [
"Apache-2.0"
] | permissive | leanprover-community/mathlib | 56a2cadd17ac88caf4ece0a775932fa26327ba0e | 442a83d738cb208d3600056c489be16900ba701d | refs/heads/master | 1,693,584,102,358 | 1,693,471,902,000 | 1,693,471,902,000 | 97,922,418 | 1,595 | 352 | Apache-2.0 | 1,694,693,445,000 | 1,500,624,130,000 | Lean | UTF-8 | Lean | false | false | 22,935 | lean | /-
Copyright (c) 2019 Alexander Bentkamp. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Alexander Bentkamp, Yury Kudriashov, Yaël Dillies
-/
import algebra.order.module
import analysis.convex.star
import linear_algebra.affine_space.affine_subspace
/-!
# Convex sets a... |
e4fddfa5cd3cbaaeb3e0d73fee1e31fa45679d81 | 4d2583807a5ac6caaffd3d7a5f646d61ca85d532 | /src/data/complex/exponential.lean | 1fbcbadfb9831a7a6466c7d0a5ced07fa31540e8 | [
"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 | 63,548 | 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... |
6b7d81f07dfb042a1669a9da14d296c54c47bc1a | 85a51a7a118db552510ddb311e53e7a8bba7b477 | /src/draft.lean | 233366be347a161e6e3ff9642b17f6cf07730f32 | [] | no_license | ADedecker/nonstandard | f0c1cac7482bb0dd48d2f2eb092f5262ff0fa2dc | c32f5e1d87cc9e6410d66cf3080fd8c4a47cf5e4 | refs/heads/master | 1,686,549,196,023 | 1,626,129,788,000 | 1,626,129,788,000 | 382,594,533 | 3 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 2,067 | lean | import data.real.hyperreal
import complements.filter_product
import transfer_tactic
open filter function
namespace filter.germ
section examples
local notation `𝓗` := hyperfilter ℕ
example : (∀ (x : ℝ), ∃ y, y ≤ x) ↔ (∀ (x : ℝ*), ∃ y, y ≤ x) :=
by transfer
example : (∃ (x : ℝ), ∀ y, y ≤ x) ↔ (∃ (x : ℝ*), ∀ y, y ≤... |
1cb054c3317f7fbdb6b5453672c9dcd7f88ddafb | 82e44445c70db0f03e30d7be725775f122d72f3e | /src/ring_theory/subsemiring.lean | 02601b4b42164bebfd6e72bae0fb0e49e14ad47e | [
"Apache-2.0"
] | permissive | stjordanis/mathlib | 51e286d19140e3788ef2c470bc7b953e4991f0c9 | 2568d41bca08f5d6bf39d915434c8447e21f42ee | refs/heads/master | 1,631,748,053,501 | 1,627,938,886,000 | 1,627,938,886,000 | 228,728,358 | 0 | 0 | Apache-2.0 | 1,576,630,588,000 | 1,576,630,587,000 | null | UTF-8 | Lean | false | false | 32,221 | lean | /-
Copyright (c) 2020 Yury Kudryashov All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Yury Kudryashov
-/
import algebra.ring.prod
import group_theory.submonoid
import data.equiv.ring
/-!
# Bundled subsemirings
We define bundled subsemirings and some standard construc... |
6d71bb62b0b9209d66c0d3d5261484ee90d18442 | 8cae430f0a71442d02dbb1cbb14073b31048e4b0 | /src/analysis/convex/integral.lean | 11d6ab7a757419686bfa7664e7bc24c060ea34ba | [
"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 | 21,879 | lean | /-
Copyright (c) 2020 Yury G. Kudryashov. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Yury G. Kudryashov
-/
import analysis.convex.function
import analysis.convex.strict_convex_space
import measure_theory.function.ae_eq_of_integral
import measure_theory.integral.ave... |
d1083e2e93ea61b89ee2ed9f9e150c90f90644bd | 302c785c90d40ad3d6be43d33bc6a558354cc2cf | /src/group_theory/group_action/defs.lean | 2c96e761edfe551e84404bb985450c06fc8748cf | [
"Apache-2.0"
] | permissive | ilitzroth/mathlib | ea647e67f1fdfd19a0f7bdc5504e8acec6180011 | 5254ef14e3465f6504306132fe3ba9cec9ffff16 | refs/heads/master | 1,680,086,661,182 | 1,617,715,647,000 | 1,617,715,647,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 11,900 | lean | /-
Copyright (c) 2018 Chris Hughes. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Chris Hughes, Yury Kudryashov
-/
import data.equiv.basic
import algebra.group.defs
import algebra.group.hom
import logic.embedding
/-!
# Definitions of group actions
This file defines ... |
b29aa78942c15ad31dd7ecf8072edc6f88d7fb11 | 54d7e71c3616d331b2ec3845d31deb08f3ff1dea | /library/init/data/string/basic.lean | 16940093ecb7ce85c11e1738fdf56917fec0fbef | [
"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 | 1,498 | lean | /-
Copyright (c) 2016 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Author: Leonardo de Moura
-/
prelude
import init.data.list.basic
import init.data.char.basic
def string := list char
namespace string
@[pattern] def empty : string := list.nil
instanc... |
0d718b2872fd5e00c4e877e41e2801601296e7ec | 57c233acf9386e610d99ed20ef139c5f97504ba3 | /src/data/dfinsupp/basic.lean | 46e32583eac6e99b6c9d6fae0d1d2e941a38a0ed | [
"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 | 66,684 | lean | /-
Copyright (c) 2018 Kenny Lau. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Johannes Hölzl, Kenny Lau
-/
import algebra.module.pi
import algebra.module.linear_map
import algebra.big_operators.basic
import data.set.finite
import group_theory.submonoid.membership
/-... |
6941c7e6582db857f980fbe4db381ae1e71acc0f | 8cae430f0a71442d02dbb1cbb14073b31048e4b0 | /src/topology/constructions.lean | 381b14ffe7d47290501019a6b0dbea256fd5e356 | [
"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 | 60,207 | lean | /-
Copyright (c) 2017 Johannes Hölzl. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Johannes Hölzl, Mario Carneiro, Patrick Massot
-/
import topology.maps
import order.filter.pi
/-!
# Constructions of new topological spaces from old ones
> THIS FILE IS SYNCHRONIZED ... |
33675258d4d2bacad22ee81ed0ba8e94cfbb750b | 94e33a31faa76775069b071adea97e86e218a8ee | /src/topology/algebra/continuous_monoid_hom.lean | c559c4a63205791d07a980848eaaae0606db5f5a | [
"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 | 11,708 | lean | /-
Copyright (c) 2022 Thomas Browning. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Thomas Browning
-/
import analysis.complex.circle
import topology.continuous_function.algebra
/-!
# Continuous Monoid Homs
This file defines the space of continuous homomorphisms b... |
c4ce77f4cb6789eefde407fcfb26ad94155440c7 | 4727251e0cd73359b15b664c3170e5d754078599 | /src/tactic/lift.lean | b17f0c1548ab6d73f74864fa419429078ab8e21a | [
"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,721 | lean | /-
Copyright (c) 2019 Floris van Doorn. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Floris van Doorn
-/
import tactic.rcases
/-!
# lift tactic
This file defines the `lift` tactic, allowing the user to lift elements from one type to another
under a specified conditi... |
dec004ea924b3b27f2dac6f9b78bc4a96382ab23 | 4d2583807a5ac6caaffd3d7a5f646d61ca85d532 | /test/fin_cases.lean | 9bea50de02267831c5a68a8e972854750e83c95c | [
"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 | 2,320 | 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 data.nat.interval
import data.nat.prime
import group_theory.perm.sign
import tactic.fin_cases
example (f : ℕ → Prop) (p : fin 3) (h0 : f 0) (h1 : f 1) (h2 : f... |
0d032c0add07bf7a7cadada5a374734f7e9ce724 | 8cae430f0a71442d02dbb1cbb14073b31048e4b0 | /src/data/finsupp/alist.lean | fd8e54be5a929e55e713828eb295150b92d7d979 | [
"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 | 4,051 | lean | /-
Copyright (c) 2022 Violeta Hernández. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Violeta Hernández
-/
import data.finsupp.basic
import data.list.alist
/-!
# Connections between `finsupp` and `alist`
> THIS FILE IS SYNCHRONIZED WITH MATHLIB4.
> Any changes to t... |
3a04b48f7cb6bcfb660b388321dc591fd614d0a3 | 42610cc2e5db9c90269470365e6056df0122eaa0 | /hott/homotopy/connectedness.hlean | 8b53233c86631d7f97d4a929f651ef03f7c52ecc | [
"Apache-2.0"
] | permissive | tomsib2001/lean | 2ab59bfaebd24a62109f800dcf4a7139ebd73858 | eb639a7d53fb40175bea5c8da86b51d14bb91f76 | refs/heads/master | 1,586,128,387,740 | 1,468,968,950,000 | 1,468,968,950,000 | 61,027,234 | 0 | 0 | null | 1,465,813,585,000 | 1,465,813,585,000 | null | UTF-8 | Lean | false | false | 12,207 | hlean | /-
Copyright (c) 2015 Ulrik Buchholtz. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Ulrik Buchholtz, Floris van Doorn
-/
import types.trunc types.arrow_2 types.lift
open eq is_trunc is_equiv nat equiv trunc function fiber funext pi
namespace is_conn
definition i... |
08d7676ce1417e9235374f0b63eaea668da448d5 | 63abd62053d479eae5abf4951554e1064a4c45b4 | /src/group_theory/abelianization.lean | fdf02a91b80f8e3f8e49f987f0c7cd5a10b82ac0 | [
"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 | 2,633 | lean | /-
Copyright (c) 2018 Kenny Lau. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Kenny Lau, Michael Howes
The functor Grp → Ab which is the left adjoint
of the forgetful functor Ab → Grp.
-/
import group_theory.quotient_group
import tactic.group
universes u v
-- let... |
b87bb0b9d1e398cc9bffdcedc596e64e182af97b | 2eab05920d6eeb06665e1a6df77b3157354316ad | /src/group_theory/quotient_group.lean | b36c97d522519c745832b26eda293601da06f896 | [
"Apache-2.0"
] | permissive | ayush1801/mathlib | 78949b9f789f488148142221606bf15c02b960d2 | ce164e28f262acbb3de6281b3b03660a9f744e3c | refs/heads/master | 1,692,886,907,941 | 1,635,270,866,000 | 1,635,270,866,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 18,170 | lean | /-
Copyright (c) 2018 Kevin Buzzard, Patrick Massot. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Kevin Buzzard, Patrick Massot
This file is to a certain extent based on `quotient_module.lean` by Johannes Hölzl.
-/
import group_theory.coset
import data.setoid.basic
... |
88849e104e63df76bf1e9d3f46e21e3dfa5d2f4d | c777c32c8e484e195053731103c5e52af26a25d1 | /src/analysis/schwartz_space.lean | ccfc4a366a59ebbd8c80501dc08954cf4117711d | [
"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 | 25,904 | lean | /-
Copyright (c) 2022 Moritz Doll. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Moritz Doll
-/
import analysis.calculus.cont_diff
import analysis.calculus.iterated_deriv
import analysis.locally_convex.with_seminorms
import topology.algebra.uniform_filter_basis
impor... |
6a6369bd64197d80c6e1abdfa658df64c357fc42 | b7f22e51856f4989b970961f794f1c435f9b8f78 | /tests/lean/run/uni_issue1.lean | 992289dba2627fac09d3f840fa343869cadafee4 | [
"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 | 171 | lean | import logic
namespace experiment
inductive nat : Type :=
| zero : nat
| succ : nat → nat
definition is_zero (n : nat)
:= nat.rec true (λ n r, false) n
end experiment
|
3c1628d6d4e3d1417139f944a96603bae86ffea5 | 367134ba5a65885e863bdc4507601606690974c1 | /src/algebra/group/defs.lean | bdee9367f618f88037d40b76dd304b63a82b8034 | [
"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 | 17,026 | lean | /-
Copyright (c) 2014 Jeremy Avigad. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Jeremy Avigad, Leonardo de Moura, Simon Hudon, Mario Carneiro
-/
import algebra.group.to_additive
import tactic.basic
/-!
# Typeclasses for (semi)groups and monoid
In this file we def... |
3646220bae0fa8b795f07af4898a5fce991252b7 | b815abf92ce063fe0d1fabf5b42da483552aa3e8 | /library/init/data/to_string.lean | f588597c4b1a920fd16b0b068d94478d6024dd47 | [
"Apache-2.0"
] | permissive | yodalee/lean | a368d842df12c63e9f79414ed7bbee805b9001ef | 317989bf9ef6ae1dec7488c2363dbfcdc16e0756 | refs/heads/master | 1,610,551,176,860 | 1,481,430,138,000 | 1,481,646,441,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 3,099 | 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.string.basic init.data.bool.basic init.data.subtype.basic
import init.data.unsigned init.data.prod init.data.sum.basic
open sum subt... |
3a3a4f54bac227cde34de2a5784663f42ad6e6d9 | 8cae430f0a71442d02dbb1cbb14073b31048e4b0 | /src/data/rbmap/default.lean | 135919abb855833d5ddc42c5424f1a77af18f5d9 | [
"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 | 15,054 | 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 data.rbmap.basic
import data.rbtree.main
universes u v
namespace rbmap
variables {α : Type u} {β : Type v} {lt : α → α → Prop}
/- Auxiliary instan... |
a060f7da42d3b1dec5ce13c995466e689a581844 | cf39355caa609c0f33405126beee2739aa3cb77e | /tests/lean/param.lean | 0bc0e0aaebb25e8c8b3d698da940f5b1594d9592 | [
"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 | 502 | lean | --
definition foo1 (a b c) := a + b + (c:nat)
definition foo2 (a : nat) (b c) := a + b + c
definition foo3 (a b) (c : nat) := a + b + c
definition foo4 (a b c : nat) := a + b + c
definition foo5 (a b c) : nat := a + b + c
definition foo6 {a b c} : nat := a + b + c
-- definition foo7 a b c : nat := a + b + c -- E... |
30d184e9b740b4cbf5d77b8747307eb064812ab5 | e00ea76a720126cf9f6d732ad6216b5b824d20a7 | /src/group_theory/group_action.lean | b850b35f95c76476d787625a313702e9b3e0f522 | [
"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 | 7,929 | 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 data.set.finite group_theory.coset
universes u v w
variables {α : Type u} {β : Type v} {γ : Type w}
/-- Typeclass for types with a scalar multiplication operatio... |
c74714db0e8ec63b0ab1ed3d54f32a332d0abe57 | d406927ab5617694ec9ea7001f101b7c9e3d9702 | /src/data/dfinsupp/ne_locus.lean | 3d50a0f83d23a2bbc09faeac8012873503806b26 | [
"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,840 | lean | /-
Copyright (c) 2022 Junyan Xu. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Damiano Testa, Junyan Xu
-/
import data.dfinsupp.basic
/-!
# Locus of unequal values of finitely supported dependent functions
Let `N : α → Type*` be a type family, assume that `N a` has ... |
a928a2295edea4ed732ec7872e0ebafc5f04ae7f | a9d0fb7b0e4f802bd3857b803e6c5c23d87fef91 | /tests/lean/local_notation_bug2.lean | 747dd72ad818ee8df53538c102943dee47dfd8f1 | [
"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 | 146 | lean | open nat
section
parameters (b : ℕ)
definition add_b (n : ℕ) := n + b
local postfix `%%`:max := add_b
end
eval 5%% -- Error, unexpected token
|
8083f29caa36dd6cd7f6ffb449beb20f307464ee | 74addaa0e41490cbaf2abd313a764c96df57b05d | /Mathlib/number_theory/arithmetic_function.lean | 556fc0b8d8d4834f27dff0fe34bbe68723a4f495 | [] | 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 | 20,978 | lean | /-
Copyright (c) 2020 Aaron Anderson. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Aaron Anderson
-/
import Mathlib.PrePort
import Mathlib.Lean3Lib.init.default
import Mathlib.algebra.big_operators.ring
import Mathlib.number_theory.divisors
import Mathlib.algebra.squ... |
9120ee6f555d61cf0cd949e32bc5115b57cbcff5 | 80cc5bf14c8ea85ff340d1d747a127dcadeb966f | /src/data/multiset/finset_ops.lean | 2d02c3ba1872e378f372fa0c3c6b138f0926fbef | [
"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 | 8,734 | lean | /-
Copyright (c) 2017 Mario Carneiro. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Author: Mario Carneiro
-/
import data.multiset.erase_dup
/-!
# Preparations for defining operations on `finset`.
The operations here ignore multiplicities,
and preparatory for defining the co... |
5a1936673d83f1d20dcce21cc0e26790ae74fc9b | 3dd1b66af77106badae6edb1c4dea91a146ead30 | /tests/lean/run/tactic30.lean | 3b745e483a485355b86a5b83945e0c1da381a5eb | [
"Apache-2.0"
] | permissive | silky/lean | 79c20c15c93feef47bb659a2cc139b26f3614642 | df8b88dca2f8da1a422cb618cd476ef5be730546 | refs/heads/master | 1,610,737,587,697 | 1,406,574,534,000 | 1,406,574,534,000 | 22,362,176 | 1 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 280 | lean | import standard
using tactic
section
set_option pp.universes true
set_option pp.implicit true
parameter {A : Type}
parameters {a b : A}
parameter H : a = b
theorem test : a = b ∧ a = a
:= including H, by apply and_intro; assumption; apply refl
end
check @test |
d31dd17f9cf6e815232fd4600c3dd6544d40c272 | 41ebf3cb010344adfa84907b3304db00e02db0a6 | /uexp/src/uexp/rules/pullConstantThroughUnion.lean | 46115cc29ba6889a4e7496c16c9c7f88ade1fc58 | [
"BSD-2-Clause"
] | permissive | ReinierKoops/Cosette | e061b2ba58b26f4eddf4cd052dcf7abd16dfe8fb | eb8dadd06ee05fe7b6b99de431dd7c4faef5cb29 | refs/heads/master | 1,686,483,953,198 | 1,624,293,498,000 | 1,624,293,498,000 | 378,997,885 | 0 | 0 | BSD-2-Clause | 1,624,293,485,000 | 1,624,293,484,000 | null | UTF-8 | Lean | false | false | 1,361 | lean | import ..sql
import ..tactics
import ..u_semiring
import ..extra_constants
import ..meta.ucongr
import ..meta.TDP
import ..meta.UDP
set_option profiler true
open Expr
open Proj
open Pred
open SQL
open tree
notation `int` := datatypes.int
constant integer_2 : const int
theorem rule:
forall ( Γ scm_emp: Schema)... |
3181c6a6fd59040ebb041f4bf49bbffd93cc81c1 | d406927ab5617694ec9ea7001f101b7c9e3d9702 | /src/topology/algebra/order/compact.lean | 2286eeec194fdadecdddf91962476a7941af0c73 | [
"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 | 19,181 | lean | /-
Copyright (c) 2021 Patrick Massot. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Patrick Massot, Yury Kudryashov
-/
import topology.algebra.order.intermediate_value
import topology.local_extr
/-!
# Compactness of a closed interval
In this file we prove that a clo... |
8ccf0652ea122775aa6ba8e103b55fbd47c0f8b9 | 94e33a31faa76775069b071adea97e86e218a8ee | /src/linear_algebra/affine_space/finite_dimensional.lean | ec31a1f70fd5fbda9f33fcde08f53cfe158916c7 | [
"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 | 16,349 | 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 linear_algebra.affine_space.independent
import linear_algebra.finite_dimensional
/-!
# Finite-dimensional subspaces of affine spaces.
This file provides a few re... |
42e5af19ff167e33e1c6db33faadc0298b1231cb | d406927ab5617694ec9ea7001f101b7c9e3d9702 | /src/data/finset/pointwise.lean | 39742d7c1d47dd9635dab7e4e5442a4eb1fe5891 | [
"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 | 49,453 | lean | /-
Copyright (c) 2020 Floris van Doorn. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Floris van Doorn, Yaël Dillies
-/
import data.finset.n_ary
import data.finset.preimage
import data.set.pointwise.smul
/-!
# Pointwise operations of finsets
This file defines pointw... |
833509d27285137e2bcc67724410894d023a51ce | 5ee26964f602030578ef0159d46145dd2e357ba5 | /src/continuous_valuations.lean | b24095b03359cc2796aec730d4fbaf6d284a5dc7 | [
"Apache-2.0"
] | permissive | fpvandoorn/lean-perfectoid-spaces | 569b4006fdfe491ca8b58dd817bb56138ada761f | 06cec51438b168837fc6e9268945735037fd1db6 | refs/heads/master | 1,590,154,571,918 | 1,557,685,392,000 | 1,557,685,392,000 | 186,363,547 | 0 | 0 | Apache-2.0 | 1,557,730,933,000 | 1,557,730,933,000 | null | UTF-8 | Lean | false | false | 6,370 | lean | import topology.algebra.ring
import valuation_spectrum
import valuation.topology -- for valuation top on K_v
import for_mathlib.nonarchimedean.basic -- continuous_of_continuous_at_zero
universes u u₀ u₁ u₂ u₃
namespace valuation
variables {R : Type u₀} [comm_ring R] [topological_space R] [topological_ring R]
variabl... |
5eaef05faaab6d269581f7dadba34a880b2ab12e | 6432ea7a083ff6ba21ea17af9ee47b9c371760f7 | /src/Lean/Compiler/LCNF/Level.lean | cd4984d80e4e7dcb4ca5bdca85f396f43627ad71 | [
"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,342 | 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.Util.CollectLevelParams
import Lean.Compiler.LCNF.Basic
namespace Lean.Compiler.LCNF
/-!
# Universe level utilities for the code generator
-/
... |
35f4cd7b725693ac6f7d21f79b6516ab5317ec9d | 8b9f17008684d796c8022dab552e42f0cb6fb347 | /library/data/list/default.lean | 762151a70bd1851107c1c215e5fe5e1049718570 | [
"Apache-2.0"
] | permissive | chubbymaggie/lean | 0d06ae25f9dd396306fb02190e89422ea94afd7b | d2c7b5c31928c98f545b16420d37842c43b4ae9a | refs/heads/master | 1,611,313,622,901 | 1,430,266,839,000 | 1,430,267,083,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 270 | lean | -- Copyright (c) 2014 Microsoft Corporation. All rights reserved.
-- Released under Apache 2.0 license as described in the file LICENSE.
-- Author: Jeremy Avigad
import data.list.basic data.list.comb data.list.set data.list.perm
import data.list.bigop data.list.as_type
|
a5a48cdb6a7c743be8f27d882b6028fec820382e | f47872278edfa65030d6cd0604480581b09ae4b5 | /src/ordered/basic.lean | 246b845c1f6e63b5e1bc22c97d308a7d6ef690a9 | [
"MIT"
] | permissive | ocornoc/geodude | c822c494d9ed5d6dd2efa434cbaa5e0e42c22691 | e63c87db67f1686c902e9bcd1863e74e1a29457f | refs/heads/master | 1,681,951,483,388 | 1,620,592,363,000 | 1,620,595,412,000 | 287,442,904 | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 10,074 | lean | /-
Copyright 2020 Grayson Burton
License available in the LICENSE file.
-/
import data.set tactic .between .convex .dimality
open_locale cardinal
section
universe u
/-- For any set `S`, `S₁` and `S₂` form a dependent bipartition of `S` iff
their union `S₁ ∪ S₂ = S` and there is no point in one that is betwee... |
6caaef49153aaf8f794a9fc804c638ea285ac5cc | 6432ea7a083ff6ba21ea17af9ee47b9c371760f7 | /tests/lean/run/tryHeuristicPerfIssue.lean | 8f173d566c9891ccd4a3ad11e5d154eb4b827727 | [
"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 | 14,483 | lean | class L1 (α : Type u) where
add : α → α → α
addc1 : ∀ (x y : α), @Add.add α ⟨add⟩ x y = @Add.add α ⟨add⟩ y x
instance L1.toAdd [inst : L1 α] : Add α := { inst with }
class L2 (α : Type u) where
add : α → α → α
addc1 : ∀ (x y : α), @Add.add α ⟨add⟩ x y = @Add.add α ⟨add⟩ y x
addc2 : ∀ (x y : α), @Add.a... |
90b446d9448cc03a10090027ed7e8e85c5154379 | 48eee836fdb5c613d9a20741c17db44c8e12e61c | /src/algebra/theories/loop.lean | 8aa00834ca097c59d2a7e165f84190ff2468feac | [
"Apache-2.0"
] | permissive | fgdorais/lean-universal | 06430443a4abe51e303e602684c2977d1f5c0834 | 9259b0f7fb3aa83a9e0a7a3eaa44c262e42cc9b1 | refs/heads/master | 1,592,479,744,136 | 1,589,473,399,000 | 1,589,473,399,000 | 196,287,552 | 1 | 1 | null | null | null | null | UTF-8 | Lean | false | false | 1,768 | lean | -- Copyright © 2019 François G. Dorais. All rights reserved.
-- Released under Apache 2.0 license as described in the file LICENSE.
import .basic
import .unital
import .quasigroup
set_option default_priority 0
namespace algebra
signature loop (α : Type*) :=
(op : α → α → α)
(ldiv : α → α → α)
(rdiv : α → α → α)
(id... |
8a7d3e676be4d8fbb82e61cbd2f1253ffa5dc3e0 | 8cae430f0a71442d02dbb1cbb14073b31048e4b0 | /src/tactic/positivity.lean | bec4bfd4a8cb8d7ea2d75cf74c9da1dec0ec0cbc | [
"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 | 35,471 | lean | /-
Copyright (c) 2022 Mario Carneiro, Heather Macbeth. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Mario Carneiro, Heather Macbeth, Yaël Dillies
-/
import tactic.norm_num
import algebra.order.field.power
import algebra.order.hom.basic
import data.nat.factorial.basic... |
794ceddc5d25227862cdc8bef6fc2dd7afab37dd | 0d107d7abd6ae235d586830f8e09b1b30e7eef0b | /src/google_interview/Preloaded.lean | 22876e612dce5402672ca4f512baa36c928af301 | [] | no_license | ukikagi/codewars-lean | 6b9a83ebbb159e7eebf8551b745a1c4d450e747f | 1912f2a4e25e917abfce70d65c0469cfac19dc93 | refs/heads/master | 1,672,948,190,244 | 1,603,361,004,000 | 1,603,795,841,000 | 303,746,208 | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 278 | lean | universes u
inductive mytree (A : Type u) : Type u
| leaf : A → mytree
| branch : A → mytree → mytree → mytree
def flip_mytree {A : Type u} : mytree A → mytree A
| t@(mytree.leaf _) := t
| (mytree.branch a l r) := mytree.branch a (flip_mytree r) (flip_mytree l)
|
85369a92f7b87bdea4dd30eedb93723debd947a7 | 302c785c90d40ad3d6be43d33bc6a558354cc2cf | /src/data/nat/log.lean | 50b06d6d57fd9ce8ef0e307f2c02f30b8d0384d9 | [
"Apache-2.0"
] | permissive | ilitzroth/mathlib | ea647e67f1fdfd19a0f7bdc5504e8acec6180011 | 5254ef14e3465f6504306132fe3ba9cec9ffff16 | refs/heads/master | 1,680,086,661,182 | 1,617,715,647,000 | 1,617,715,647,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 3,452 | lean | /-
Copyright (c) 2020 Simon Hudon. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Simon Hudon
-/
import data.nat.basic
/-!
# Natural number logarithm
This file defines `log b n`, the logarithm of `n` with base `b`, to be the largest `k` such that
`b ^ k ≤ n`.
-/
name... |
791fbfc40817cec026a8776d8d0f5a377cb2c2d4 | a9fe717b93ccfa4b2e64faeb24f96dfefb390240 | /nat/preterm.lean | 0474aa99665286898fb8cf3f13b6a2be739322c8 | [] | no_license | skbaek/omega | ab1f4a6daadfc8c855f14c39d9459ab841527141 | 715e384ed14e8eb177a326700066e7c98269e078 | refs/heads/master | 1,588,000,876,352 | 1,552,645,917,000 | 1,552,645,917,000 | 174,442,914 | 1 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 3,106 | lean | import ..simp_omega ..term ..logic ..option ..nat
open tactic
namespace nat
@[derive has_reflect, derive decidable_eq]
inductive preterm : Type
| cst : nat → preterm
| var : nat → nat → preterm
| add : preterm → preterm → preterm
| sub : preterm → preterm → preterm
notation `&` k := preterm.cst k
infix `**` : 3... |
4f856859c303fffa6a46a3f34e98729425bda62a | 07c6143268cfb72beccd1cc35735d424ebcb187b | /src/data/equiv/basic.lean | b6fa006b7c03a3d9b1ae8dad12707e0cb6f816ad | [
"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 | 51,782 | 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, Mario Carneiro
In the standard library we cannot assume the univalence axiom.
We say two types are equivalent if they are isomorphic.
Two equivalent types h... |
1f3f8cc8f6f94b9eb78f811b397369a09e8d8394 | 8cae430f0a71442d02dbb1cbb14073b31048e4b0 | /src/linear_algebra/matrix/trace.lean | b46f3b834f19bc083b5d39021763ed3ab692f739 | [
"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 | 4,582 | 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, Patrick Massot, Casper Putz, Anne Baanen
-/
import data.matrix.basic
/-!
# Trace of a matrix
> THIS FILE IS SYNCHRONIZED WITH MATHLIB4.
> Any changes to this file req... |
bd6d60d6170b294944be510200a7a8a8d1d127ef | 83bd3c3824dd952c0fef702bace6c34c78226af8 | /library/init/core.lean | 320431aae3db4df973a1aead7e58db3213825314 | [
"Apache-2.0"
] | permissive | heruix/lean | cb0767295dc8cdfa2892601f04d3954606e81e03 | 39270fd46f49fecb30649f5ec527da7bbd4cdb13 | refs/heads/master | 1,611,580,745,403 | 1,519,814,958,000 | 1,519,843,130,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 17,450 | lean | /-
Copyright (c) 2014 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Leonardo de Moura
notation, basic datatypes and type classes
-/
prelude
notation `Prop` := Sort 0
notation f ` $ `:1 a:0 := f a
/- Logical operations and relations -/
reserv... |
89483f2a32c31cfc40d8518b184828b5b386e293 | cf39355caa609c0f33405126beee2739aa3cb77e | /tests/lean/run/def_brec3.lean | 30e8bba41c0ddd5588450e89b3388ac2a4093abd | [
"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 | 509 | lean | open nat
inductive bv : nat → Type
| nil : bv 0
| cons : ∀ (n) (hd : bool) (tl : bv n), bv (succ n)
open bv
variable (f : bool → bool → bool)
definition map2 : ∀ {n}, bv n → bv n → bv n
| .(0) nil nil := nil
| .(n+1) (cons n b1 v1) (cons .(n) b2 v2) := cons n (f b1 b2) (map2 v1 v2)
exam... |
f46b2bc7533beae4d711d273a4279d6e397c96a8 | 6432ea7a083ff6ba21ea17af9ee47b9c371760f7 | /tests/lean/run/prioDSL.lean | c05ae32ad07344e9b0905e3044cb8219716da519 | [
"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 | 483 | lean | macro "foo!" x:term:max : term => `($x - 1)
theorem ex1 : foo! 10 = 9 := rfl
macro (priority := high) "foo! " x:term:max : term => `($x + 1)
theorem ex2 : foo! 10 = 11 := rfl
macro (priority := low) "foo! " x:term:max : term => `($x * 2)
theorem ex3 : foo! 10 = 11 := rfl
macro (priority := high+1) "foo! " x:term:... |
87ba7b85cd6bd4ae46477e8e5ae3d75607b7af36 | 35b83be3126daae10419b573c55e1fed009d3ae8 | /_target/deps/mathlib/algebra/pi_instances.lean | 6f774ad6e8fe3b6c1a5100e43e01f2cc9acb034d | [] | 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 | 13,689 | lean | /-
Copyright (c) 2018 Simon Hudon. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Simon Hudon, Patrick Massot
Pi instances for algebraic structures.
-/
import order.basic
import algebra.module algebra.group
import data.finset
import tactic.pi_instances
namespace pi
u... |
8d704e56fcc087bc5e4b8c179c5bfff3a72b1907 | 957a80ea22c5abb4f4670b250d55534d9db99108 | /library/init/algebra/ordered_group.lean | fe53d1f5ae6893e85b6e8a7a4a884e293247aecc | [
"Apache-2.0"
] | permissive | GaloisInc/lean | aa1e64d604051e602fcf4610061314b9a37ab8cd | f1ec117a24459b59c6ff9e56a1d09d9e9e60a6c0 | refs/heads/master | 1,592,202,909,807 | 1,504,624,387,000 | 1,504,624,387,000 | 75,319,626 | 2 | 1 | Apache-2.0 | 1,539,290,164,000 | 1,480,616,104,000 | C++ | UTF-8 | Lean | false | false | 20,148 | lean | /-
Copyright (c) 2016 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Jeremy Avigad, Leonardo de Moura
-/
prelude
import init.algebra.order init.algebra.group
/- Make sure instances defined in this file have lower priority than the ones
define... |
d4bf49acc1fc8187cc6c47aa3037b0609414c647 | ae1e94c332e17c7dc7051ce976d5a9eebe7ab8a5 | /src/Lean/Compiler/IR/Boxing.lean | 93d80601cc29332711d799b928e3b58cc15d83eb | [
"Apache-2.0"
] | permissive | dupuisf/lean4 | d082d13b01243e1de29ae680eefb476961221eef | 6a39c65bd28eb0e28c3870188f348c8914502718 | refs/heads/master | 1,676,948,755,391 | 1,610,665,114,000 | 1,610,665,114,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 13,229 | 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.Runtime
import Lean.Compiler.ClosedTermCache
import Lean.Compiler.ExternAttr
import Lean.Compiler.IR.Basic
import Lean.Compiler.IR.CompilerM
imp... |
63b266fd55148cc5cd5ecc372169aad1204ec5dd | 35677d2df3f081738fa6b08138e03ee36bc33cad | /src/linear_algebra/nonsingular_inverse.lean | 7d4c50312626f9b697dc773c5f6b865434d29800 | [
"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 | 15,773 | lean | /-
Copyright (c) 2019 Tim Baanen. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Author: Tim Baanen.
Inverses for nonsingular square matrices.
-/
import algebra.associated
import algebra.big_operators
import data.matrix.basic
import linear_algebra.determinant
import ta... |
fab5d2e4256db71753419fb4f69b4d56ad2f37f1 | bb31430994044506fa42fd667e2d556327e18dfe | /src/data/multiset/fintype.lean | 83b15e8cb94ad24db46df77729abbca243462f6f | [
"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,229 | lean | /-
Copyright (c) 2022 Kyle Miller. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Kyle Miller
-/
import algebra.big_operators.basic
import data.fintype.card
import data.prod.lex
/-!
# Multiset coercion to type
This module defines a `has_coe_to_sort` instance for mult... |
d1e88dfcfdcad4afd2bfcccb6ffe6fb15ff654fb | 74addaa0e41490cbaf2abd313a764c96df57b05d | /Mathlib/algebra/group/conj.lean | 9f16b86f1cbcc526dc04e8a2c318d04f98302529 | [] | 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 | 2,077 | lean | /-
Copyright (c) 2018 Patrick Massot. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Patrick Massot, Chris Hughes, Michael Howes
-/
import Mathlib.PrePort
import Mathlib.Lean3Lib.init.default
import Mathlib.algebra.group.hom
import Mathlib.data.equiv.mul_add_aut
impor... |
88a7e964adced75489697b6f7aabc7ca6645f5cf | acc85b4be2c618b11fc7cb3005521ae6858a8d07 | /data/array/lemmas.lean | 8f88715f7a0b802f7188428de9b836f8b38b9ce6 | [
"Apache-2.0"
] | permissive | linpingchuan/mathlib | d49990b236574df2a45d9919ba43c923f693d341 | 5ad8020f67eb13896a41cc7691d072c9331b1f76 | refs/heads/master | 1,626,019,377,808 | 1,508,048,784,000 | 1,508,048,784,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 6,575 | 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, Mario Carneiro
-/
import data.list.basic data.buffer
universes u w
namespace array
variables {α : Type u} {β : Type w} {n : nat}
protected def ext : ∀ {a b... |
7cb5564de5034fdebf8b6bcb4b88ea1a4331c9a1 | 74addaa0e41490cbaf2abd313a764c96df57b05d | /Mathlib/algebra/lie/skew_adjoint.lean | 1d3fd17309627bfc406d65770825c4c60623da6e | [] | 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 | 6,569 | lean | /-
Copyright (c) 2020 Oliver Nash. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Oliver Nash
-/
import Mathlib.PrePort
import Mathlib.Lean3Lib.init.default
import Mathlib.algebra.lie.basic
import Mathlib.linear_algebra.bilinear_form
import Mathlib.PostPort
universes ... |
d2657dabc3c9acc61443f01a7896b4dfa5f1ddf1 | 8cae430f0a71442d02dbb1cbb14073b31048e4b0 | /src/topology/uniform_space/uniform_convergence.lean | 04ea04de1256cfc842f3f2f23adf844e43d07980 | [
"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 | 49,958 | 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 topology.separation
import topology.uniform_space.basic
import topology.uniform_space.cauchy
/-!
# Uniform convergence
> THIS FILE IS SYNCHRONIZED WITH... |
78273c2b4de05dee7b16e9d6863bf331a609dd79 | c777c32c8e484e195053731103c5e52af26a25d1 | /src/linear_algebra/tensor_algebra/to_tensor_power.lean | 5d619d69bba0b4e5cf5e6d9b3449497a7b7f9534 | [
"Apache-2.0"
] | permissive | kbuzzard/mathlib | 2ff9e85dfe2a46f4b291927f983afec17e946eb8 | 58537299e922f9c77df76cb613910914a479c1f7 | refs/heads/master | 1,685,313,702,744 | 1,683,974,212,000 | 1,683,974,212,000 | 128,185,277 | 1 | 0 | null | 1,522,920,600,000 | 1,522,920,600,000 | null | UTF-8 | Lean | false | false | 6,727 | lean | /-
Copyright (c) 2021 Eric Wieser. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Eric Wieser
-/
import linear_algebra.tensor_algebra.basic
import linear_algebra.tensor_power
/-!
# Tensor algebras as direct sums of tensor powers
In this file we show that `tensor_algeb... |
bbf827f3226d06d0c3d81b62a3998b6725e325b9 | 4d2583807a5ac6caaffd3d7a5f646d61ca85d532 | /src/category_theory/monoidal/rigid.lean | 80602b4fcfc5d2dd242d060f9b84458c4380096b | [
"Apache-2.0"
] | permissive | AntoineChambert-Loir/mathlib | 64aabb896129885f12296a799818061bc90da1ff | 07be904260ab6e36a5769680b6012f03a4727134 | refs/heads/master | 1,693,187,631,771 | 1,636,719,886,000 | 1,636,719,886,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 11,859 | lean | /-
Copyright (c) 2021 Jakob von Raumer. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Jakob von Raumer
-/
import category_theory.monoidal.category
/-!
# Rigid (autonomous) monoidal categories
This file defines rigid (autonomous) monoidal categories and the necessa... |
62b0181d58d90e74a911125c5ab6e23c51673c8d | 49d1ff3d0fc0688d81e4b505d423e6215881caa6 | /src/measurement.lean | fa0c133a49e7541bcea30be4ba8eff7e62e0eafa | [] | no_license | jvlmdr/lean-quantum | 813e9453eade9f4ce64c8b473f9f75571df549c4 | 160cabcbd22bf24819b72930f56578e23b109a27 | refs/heads/master | 1,680,342,797,940 | 1,615,047,803,000 | 1,615,049,187,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 10,673 | lean | import quantum_lemmas
open Matrix
open quantum
open_locale big_operators
------------------------------------------------------------------------------
-- Generalized measurement
section generalized_measurement
variables {n : ℕ}
variables (M : fin n → Square n) -- a set of measurement operators
variables (s : Vector... |
bac7c4e84f653d6be7b225d63432dc9d15124c47 | 82b86ba2ae0d5aed0f01f49c46db5afec0eb2bd7 | /src/Lean/Meta/AbstractMVars.lean | 35c416349a564a0f5a67b014fb91b6735d163ce0 | [
"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 | 5,637 | 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.Meta.Basic
namespace Lean.Meta
structure AbstractMVarsResult :=
(paramNames : Array Name)
(numMVars : Nat)
(expr : Expr)
instan... |
f7ade789537a4d745713700aace7d9b0d95c92c3 | f083c4ed5d443659f3ed9b43b1ca5bb037ddeb58 | /data/set/finite.lean | 34b8ba65d2f2ee88a0a561946ddabd515212790b | [
"Apache-2.0"
] | permissive | semorrison/mathlib | 1be6f11086e0d24180fec4b9696d3ec58b439d10 | 20b4143976dad48e664c4847b75a85237dca0a89 | refs/heads/master | 1,583,799,212,170 | 1,535,634,130,000 | 1,535,730,505,000 | 129,076,205 | 0 | 0 | Apache-2.0 | 1,551,697,998,000 | 1,523,442,265,000 | Lean | UTF-8 | Lean | false | false | 11,838 | 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
Finite sets.
-/
import data.set.lattice data.nat.basic logic.function
data.fintype
open set lattice function
universes u v w
variables {α : Typ... |
5dac5ed8aed8c305fcd25a582b6eef047e981834 | d406927ab5617694ec9ea7001f101b7c9e3d9702 | /src/data/list/sublists.lean | b778a4eaa153c8c2586a361aec46d7a9604acdf6 | [
"Apache-2.0"
] | permissive | alreadydone/mathlib | dc0be621c6c8208c581f5170a8216c5ba6721927 | c982179ec21091d3e102d8a5d9f5fe06c8fafb73 | refs/heads/master | 1,685,523,275,196 | 1,670,184,141,000 | 1,670,184,141,000 | 287,574,545 | 0 | 0 | Apache-2.0 | 1,670,290,714,000 | 1,597,421,623,000 | Lean | UTF-8 | Lean | false | false | 16,956 | lean | /-
Copyright (c) 2019 Mario Carneiro. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Mario Carneiro
-/
import data.nat.choose.basic
import data.list.perm
/-! # sublists
`list.sublists` gives a list of all (not necessarily contiguous) sublists of a list.
This file co... |
d228b0bb6e937475cca4adcd62608e901f444ef6 | d406927ab5617694ec9ea7001f101b7c9e3d9702 | /src/order/rel_classes.lean | 44a54cd1d1586d62830febf918fb6634da6da281 | [
"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 | 29,085 | lean | /-
Copyright (c) 2020 Jeremy Avigad. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Jeremy Avigad, Mario Carneiro, Yury G. Kudryashov
-/
import order.basic
import logic.is_empty
/-!
# Unbundled relation classes
> THIS FILE IS SYNCHRONIZED WITH MATHLIB4.
> https://git... |
7bf12d26269dc08d41ca75f3afecc6758dbe993c | d9d511f37a523cd7659d6f573f990e2a0af93c6f | /src/topology/compact_open.lean | eef6ac83d5c517e8d6c94c84f615d3da599edfb8 | [
"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 | 11,358 | lean | /-
Copyright (c) 2018 Reid Barton. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Reid Barton
Type of continuous maps and the compact-open topology on them.
-/
import topology.subset_properties
import topology.continuous_function.basic
import topology.homeomorph
impor... |
226d503f0cf1025d063a8b768277f374c5e970d1 | 3c9dc4ea6cc92e02634ef557110bde9eae393338 | /stage0/src/Lean/Elab/DeclarationRange.lean | 8d2093df72356d25facaaaf7be76c07e98466a43 | [
"Apache-2.0"
] | permissive | shingtaklam1324/lean4 | 3d7efe0c8743a4e33d3c6f4adbe1300df2e71492 | 351285a2e8ad0cef37af05851cfabf31edfb5970 | refs/heads/master | 1,676,827,679,740 | 1,610,462,623,000 | 1,610,552,340,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 2,381 | 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.DeclarationRange
import Lean.Elab.Log
namespace Lean.Elab
def getDeclarationRange [Monad m] [MonadFileMap m] (stx : Syntax) : m DeclarationRan... |
6c10cd9b2108fb72e9272c8295e4f45177eabdeb | d406927ab5617694ec9ea7001f101b7c9e3d9702 | /src/geometry/manifold/algebra/smooth_functions.lean | fe18fe42b2c32f7fd901ac3f2c714d2d24c60278 | [
"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,333 | lean | /-
Copyright © 2020 Nicolò Cavalleri. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Nicolò Cavalleri
-/
import geometry.manifold.algebra.structures
/-!
# Algebraic structures over smooth functions
In this file, we define instances of algebraic structures over smoot... |
87d0650ad48c8845cc133742dec38238c1962c77 | 8cae430f0a71442d02dbb1cbb14073b31048e4b0 | /src/category_theory/limits/shapes/disjoint_coproduct.lean | 7e7ab8b99c895a5f4e4de6b86e345cbfde9c83b4 | [
"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,345 | lean | /-
Copyright (c) 2021 Bhavik Mehta. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Bhavik Mehta
-/
import category_theory.limits.shapes.binary_products
import category_theory.limits.shapes.pullbacks
/-!
# Disjoint coproducts
> THIS FILE IS SYNCHRONIZED WITH MATHLIB4.... |
f4ad01b9e3f5bb6f8edabd51be16fa96853ff7c2 | d450724ba99f5b50b57d244eb41fef9f6789db81 | /src/mywork/lectures/lecture_15.lean | a695fc014737030d1799e3dd24c5fad8dd3c8c21 | [] | no_license | jakekauff/CS2120F21 | 4f009adeb4ce4a148442b562196d66cc6c04530c | e69529ec6f5d47a554291c4241a3d8ec4fe8f5ad | refs/heads/main | 1,693,841,880,030 | 1,637,604,848,000 | 1,637,604,848,000 | 399,946,698 | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 5,776 | lean | /-
This lecture extends what you have learned
by introducing the concept that existential
quantification is an "information hiding"
abstraction mechanism. To build a proof
of ∃ x, P x, you have to give a specific
value for x; but when you eliminate from
a proof of ∃ x, P x, all you get is some
arbitrary but specific ... |
f3ab3e493b98c42df0f1bc52dfcd321cf768322b | 4d2583807a5ac6caaffd3d7a5f646d61ca85d532 | /src/algebra/gcd_monoid/multiset.lean | ad43821ece8882cc5061c11fca2f5e7e40ce1544 | [
"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 | 5,182 | lean | /-
Copyright (c) 2020 Aaron Anderson. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Aaron Anderson
-/
import algebra.gcd_monoid.basic
import data.multiset.lattice
/-!
# GCD and LCM operations on multisets
## Main definitions
- `multiset.gcd` - the greatest common d... |
55e1dc389899286830d532dbc75446880fc41e42 | 8cae430f0a71442d02dbb1cbb14073b31048e4b0 | /src/category_theory/grothendieck.lean | 35512dd11a57a591c816c32fa1426175dc4f2119 | [
"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,654 | 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.category.Cat
import category_theory.elements
/-!
# The Grothendieck construction
> THIS FILE IS SYNCHRONIZED WITH MATHLIB4.
> Any changes to ... |
dbc56e627fe3bfd7a4cc8ac8f5bf7d36c8e166e8 | 32025d5c2d6e33ad3b6dd8a3c91e1e838066a7f7 | /tests/lean/macroscopes.lean | baa18943b0137804aaf6aca9c209fcd5778afc45 | [
"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 | 1,120 | lean | open Lean
def check (b : Bool) : IO Unit :=
unless b $ throw $ IO.userError "check failed"
def test1 : IO Unit := do
let x := `x;
let x := addMacroScope `main x 1;
IO.println $ x;
let v := extractMacroScopes x;
let x := { v with name := `y }.review;
IO.println $ x;
let v := extractMacroScopes x;
let x := { v with nam... |
1708e4e982397972ffd1952dfd23b11f7a33b490 | 097294e9b80f0d9893ac160b9c7219aa135b51b9 | /instructor/types/nat/dm_list.lean | f832b241cc8e85b1dfe6ec4244a02fdcc9b12d05 | [] | no_license | AbigailCastro17/CS2102-Discrete-Math | cf296251be9418ce90206f5e66bde9163e21abf9 | d741e4d2d6a9b2e0c8380e51706218b8f608cee4 | refs/heads/main | 1,682,891,087,358 | 1,621,401,341,000 | 1,621,401,341,000 | 368,749,959 | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 1,250 | lean | inductive dm_list (α : Type) : Type
| nil {} : dm_list
| cons (h : α) (t : dm_list) : dm_list
def l0 := @dm_list.nil bool
def l1 := dm_list.cons
tt
l0
def l2 := dm_list.cons
ff
(
dm_list.cons
tt
dm_list.nil
... |
0ab55bbbb09475ae29e3f51ebc717ffbce9b78be | 3434f05df84d8335b6bc46ffd22c8e9c90ba093c | /blog/code/2022-01-26-peano_axioms_lean/peano.lean | 97169c0c5f77da450b3b7c54cbc0c2b1d82c2938 | [] | no_license | kunigami/kunigami.github.io | d3058f132ed305e10d47c36587d428bb3718f127 | 6970151977b428635b16501f74652e5c764428f2 | refs/heads/master | 1,691,638,246,509 | 1,691,263,235,000 | 1,691,263,235,000 | 18,582,971 | 13 | 13 | null | 1,664,211,056,000 | 1,397,011,712,000 | CSS | UTF-8 | Lean | false | false | 1,649 | lean | namespace sandbox
@[derive decidable_eq]
inductive Nat
| zero : Nat
| succ (n : Nat) : Nat
open Nat
------------------
-- Peano Axioms --
------------------
-- 1) 0 is a natural number
instance : has_zero Nat := ⟨zero⟩
axiom zero_is_nat : zero = 0
-- 2) reflexive: equality is reflexive
axiom reflexive (n ... |
c7598d86566d0bd5bd0471d94c87a9bbd22e0e60 | d1a52c3f208fa42c41df8278c3d280f075eb020c | /tests/lean/conv1.lean | 66f3166ee20a2525421b578367917d2699aa03ff | [
"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 | 2,730 | lean | set_option pp.analyze false
def p (x y : Nat) := x = y
example (x y : Nat) : p (x + y) (y + x + 0) := by
conv =>
whnf
congr
. skip
. whnf; skip
trace_state
rw [Nat.add_comm]
rfl
example (x y : Nat) : p (x + y) (y + x + 0) := by
conv =>
whnf
rhs
whnf
trace_state
rw [Nat.add_c... |
1b1dc13ac4886d5344c0eb0b4bd32027a89fac01 | 26b8b0964ca8e1c2e203585ba5940f83fe05e48a | /src/tidy/rewrite_all.lean | fdbd390e38f837e72721c85e3b9f8e5009581c97 | [] | no_license | jcommelin/lean-tidy | ef3cd32a3804221d93f0dff9e180bb2c52f4b143 | 9cecf497e90db64b5ea140ad6ae1603976dcd402 | refs/heads/master | 1,585,129,919,276 | 1,533,512,680,000 | 1,533,512,680,000 | 143,677,361 | 0 | 0 | null | 1,616,803,481,000 | 1,533,530,576,000 | Lean | UTF-8 | Lean | false | false | 9,133 | 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 data.list
import .pretty_print
open tactic
open interactive
open interactive.types
open expr
open lean
open lean.parser
meta def lock_tactic_state {α} (t... |
77c0eb943fa1a38ddd6931ad1ec8ed54e8e854c6 | 26b290e100179c46233060ff9972c0758106c196 | /src/mini_crush/nano_crush.lean | 53d94a0a2685495af260f4a9835288e8bfa3d0cc | [] | no_license | seanpm2001/LeanProver_Mini_Crush | f95f9e06230b171dd84cc49808f5b2f8378c5e03 | cea4166b1b2970fba47907798e7fe0511e426cfd | refs/heads/master | 1,688,908,222,650 | 1,547,825,246,000 | 1,547,825,246,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 3,886 | 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
We implement a crush-like strategy using simplifier,
SMT gadgets, and robust simplifier.
This is just a demo.
-/
namespace nano_crush
open tactic
meta def s... |
3d2748444a7c758e49a0ae45f34eebfee5e1551a | 1fbca480c1574e809ae95a3eda58188ff42a5e41 | /src/util/algebra/group.lean | 1f663dedfe1ff9148f195f594f7876a80458c7c5 | [] | 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 | 856 | lean |
import data.nat.basic
import data.nat.modeq
import util.data.nat
import algebra.group_power
import tactic.find
open nat
-- lemma mod_mod (n m : ℕ)
-- : n % m % m = n % m :=
-- sorry
@[simp]
lemma mod_add_mod (n m p : ℕ)
: (n % p + m) % p = (n + m) % p :=
by apply int.coe_nat_inj ; simp
@[simp]
lemma add_mod_mod (n ... |
fa452ea62d0393d4399095b5fe2b85aa1518a051 | 57c233acf9386e610d99ed20ef139c5f97504ba3 | /src/linear_algebra/invariant_basis_number.lean | d92e838b12857b7a79be3ae9f506070696bc2483 | [
"Apache-2.0"
] | permissive | robertylewis/mathlib | 3d16e3e6daf5ddde182473e03a1b601d2810952c | 1d13f5b932f5e40a8308e3840f96fc882fae01f0 | refs/heads/master | 1,651,379,945,369 | 1,644,276,960,000 | 1,644,276,960,000 | 98,875,504 | 0 | 0 | Apache-2.0 | 1,644,253,514,000 | 1,501,495,700,000 | Lean | UTF-8 | Lean | false | false | 12,252 | lean | /-
Copyright (c) 2020 Markus Himmel. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Markus Himmel, Scott Morrison
-/
import ring_theory.ideal.quotient
import ring_theory.principal_ideal_domain
/-!
# Invariant basis number property
We say that a ring `R` satisfies the... |
4c4507c15c42ee253a94625a47fd87a5bf2a4703 | 6065973b1fa7bbacba932011c9e2f32bf7bdd6c1 | /src/algebra/ordered_ring.lean | f70f68bc02ab10f74851b40ee856c73699dd9ad3 | [
"Apache-2.0"
] | permissive | khmacdonald/mathlib | 90a0fa2222369fa69ed2fbfb841b74d2bdfd66cb | 3669cb35c578441812ad30fd967d21a94b6f387e | refs/heads/master | 1,675,863,801,090 | 1,609,761,876,000 | 1,609,761,876,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 42,004 | 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
-/
import algebra.ordered_group
import data.set.intervals.basic
set_option old_structure_cmd true
universe u
variable {α : Type u}
/-... |
4dd81b803f77bd047d45cfb4de0b21ef29c9e40f | 4efff1f47634ff19e2f786deadd394270a59ecd2 | /src/data/num/lemmas.lean | a7053f3a078d9bc3abc94560bcf11328d47ff4a2 | [
"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 | 48,635 | 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.char_zero
import data.nat.gcd
/-!
# Properties of the binary representation of integers
-/
local attribute [simp] add_... |
3407a829a09ca9da78b85abc99df10c0c189be13 | d6124c8dbe5661dcc5b8c9da0a56fbf1f0480ad6 | /Papyrus/IR/Types.lean | 85d571cf2542495b86b686f61651abc90765bf60 | [
"Apache-2.0"
] | permissive | xubaiw/lean4-papyrus | c3fbbf8ba162eb5f210155ae4e20feb2d32c8182 | 02e82973a5badda26fc0f9fd15b3d37e2eb309e0 | refs/heads/master | 1,691,425,756,824 | 1,632,122,825,000 | 1,632,123,075,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 13,716 | lean | import Papyrus.IR.Type
import Papyrus.IR.TypeBases
import Papyrus.IR.AddressSpace
namespace Papyrus
--------------------------------------------------------------------------------
-- # Special Types
--------------------------------------------------------------------------------
/-- An empty type. -/
abbrev voidTyp... |
bd5f735e9ad2f9869e5d1ba9aadbcc1844d5bb06 | 22e97a5d648fc451e25a06c668dc03ac7ed7bc25 | /src/algebra/geom_sum.lean | a6c60fe6821d4ce6f0b746159727f0ec301f1758 | [
"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 | 7,424 | lean | /-
Copyright (c) 2019 Neil Strickland. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Neil Strickland
Sums of finite geometric series
-/
import algebra.commute
import algebra.group_with_zero_power
universe u
variable {α : Type u}
open finset
open_locale big_operato... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.