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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
a4f4c1bbd98e4a03f3c4a9c66be2b736c085c5c4 | 3dd1b66af77106badae6edb1c4dea91a146ead30 | /tests/lean/t10.lean | 6e111f90266495b6847b7ee076ed82a7f3db77cb | [
"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 | 576 | lean | variable N : Type.{1}
definition B : Type.{1} := Type.{0}
variable ite : B → N → N → N
variable and : B → B → B
variable f : N → N
variable p : B
variable q : B
variable x : N
variable y : N
variable z : N
infixr `∧`:25 := and
notation `if` c `then` t `else` e := ite c t e
check if p ∧ q then f x else y
check if p ∧ q ... |
eac3d35b48b9df357c31a111a93247b38f283823 | 4d2583807a5ac6caaffd3d7a5f646d61ca85d532 | /src/analysis/special_functions/complex/arg.lean | fcdb321350bd29620248b33aece52ab6bd56f089 | [
"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 | 21,644 | 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, Jean Lo, Calle Sönne, Benjamin Davidson
-/
import analysis.special_functions.trigonometric.inverse
/-!
# The argument of a complex number.
We de... |
1dd720524229ebaf1f13a668ca104dd78919bef4 | 6432ea7a083ff6ba21ea17af9ee47b9c371760f7 | /tests/elabissues/typeclasses_with_emetavariables.lean | 1a12542bef6d7a7b7d9c4c07455cf2e1d0ff1e0f | [
"Apache-2.0",
"LLVM-exception",
"NCSA",
"LGPL-3.0-only",
"LicenseRef-scancode-inner-net-2.0",
"BSD-3-Clause",
"LGPL-2.0-or-later",
"Spencer-94",
"LGPL-2.1-or-later",
"HPND",
"LicenseRef-scancode-pcre",
"ISC",
"LGPL-2.1-only",
"LicenseRef-scancode-other-permissive",
"SunPro",
"CMU-Mach"... | permissive | leanprover/lean4 | 4bdf9790294964627eb9be79f5e8f6157780b4cc | f1f9dc0f2f531af3312398999d8b8303fa5f096b | refs/heads/master | 1,693,360,665,786 | 1,693,350,868,000 | 1,693,350,868,000 | 129,571,436 | 2,827 | 311 | Apache-2.0 | 1,694,716,156,000 | 1,523,760,560,000 | Lean | UTF-8 | Lean | false | false | 1,468 | lean | /-
The current plan is to allow typeclass resolution to be triggered when there are still
expression metavariables in the goal.
It will return:
success: it succeeded without needing to unify a regular metavar with anything
fail: it failed without even getting a chance to unify a regular metavar with anything
wait: it... |
d18aa329997f67a57e4ac02e457eaa3e573bf4dc | ce4db867008cc96ee6ea6a34d39c2fa7c6ccb536 | /src/Montrons.lean | 57282b7b7a33427f377e9dc4bc593f39a2de6751 | [] | no_license | PatrickMassot/lean-bavard | ab0ceedd6bab43dc0444903a80b911c5fbfb23c3 | 92a1a8c7ff322e4f575ec709b8c5348990d64f18 | refs/heads/master | 1,679,565,084,665 | 1,616,158,570,000 | 1,616,158,570,000 | 348,144,867 | 1 | 1 | null | null | null | null | UTF-8 | Lean | false | false | 4,860 | lean | import .commun
import .tokens
namespace tactic
setup_tactic_parser
meta def change_head_name (n : name) : tactic unit :=
do tgt ← target,
match tgt with
| (expr.pi old bi t b) := change_core (expr.pi n bi t b) none
| _ := skip
end
@[derive has_reflect]
meta inductive Montrons_args
| but : pexpr → Montr... |
3cb85e58cf600d5a97acf1a709ee30dee51730a9 | d1a52c3f208fa42c41df8278c3d280f075eb020c | /src/Lean/Elab/Macro.lean | c1321de30b5b29696e247ba748a0e1b1b52f20ee | [
"Apache-2.0",
"LLVM-exception",
"NCSA",
"LGPL-3.0-only",
"LicenseRef-scancode-inner-net-2.0",
"BSD-3-Clause",
"LGPL-2.0-or-later",
"Spencer-94",
"LGPL-2.1-or-later",
"HPND",
"LicenseRef-scancode-pcre",
"ISC",
"LGPL-2.1-only",
"LicenseRef-scancode-other-permissive",
"SunPro",
"CMU-Mach"... | permissive | cipher1024/lean4 | 6e1f98bb58e7a92b28f5364eb38a14c8d0aae393 | 69114d3b50806264ef35b57394391c3e738a9822 | refs/heads/master | 1,642,227,983,603 | 1,642,011,696,000 | 1,642,011,696,000 | 228,607,691 | 0 | 0 | Apache-2.0 | 1,576,584,269,000 | 1,576,584,268,000 | null | UTF-8 | Lean | false | false | 1,693 | 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.Elab.MacroArgUtil
namespace Lean.Elab.Command
open Lean.Syntax
open Lean.Parser.Term hiding macroArg
open Lean.Parser.Command
@[builtinMacro L... |
5f517009a80e144f5252275cecf20f670e879311 | fa02ed5a3c9c0adee3c26887a16855e7841c668b | /src/algebra/lie/free.lean | 737898190d191a9ef6d1671829aa9e0a806f9a9b | [
"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 | 10,084 | 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.of_associative
import algebra.lie.non_unital_non_assoc_algebra
import algebra.free_non_unital_non_assoc_algebra
/-!
# Free Lie algebras
Given a commuta... |
2e41638fafb4d8212742963b1bcf796e4763b5ab | 82e44445c70db0f03e30d7be725775f122d72f3e | /src/field_theory/primitive_element.lean | 2b92e13c5f6d18822b466a9f78900f7aef60899c | [
"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 | 8,367 | lean | /-
Copyright (c) 2020 Thomas Browning, Patrick Lutz. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Thomas Browning, Patrick Lutz
-/
import field_theory.adjoin
import field_theory.separable
/-!
# Primitive Element Theorem
In this file we prove the primitive element ... |
3b78906ec49e1cc6af8a31eafc1046fdfc1237a8 | 5749d8999a76f3a8fddceca1f6941981e33aaa96 | /src/linear_algebra/multilinear.lean | 02532f9327f50f000d778877693bbca5249861b1 | [
"Apache-2.0"
] | permissive | jdsalchow/mathlib | 13ab43ef0d0515a17e550b16d09bd14b76125276 | 497e692b946d93906900bb33a51fd243e7649406 | refs/heads/master | 1,585,819,143,348 | 1,580,072,892,000 | 1,580,072,892,000 | 154,287,128 | 0 | 0 | Apache-2.0 | 1,540,281,610,000 | 1,540,281,609,000 | null | UTF-8 | Lean | false | false | 15,893 | 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 linear_algebra.basic
/-!
# Multilinear maps
We define multilinear maps as maps from `Π(i : ι), M₁ i` to `M₂` which are linear in each
coordinate. Here... |
1426a3f8582345a7d3d80e7221b7df141be740dd | d1bbf1801b3dcb214451d48214589f511061da63 | /src/algebra/lie/basic.lean | e322ba6300903a8e10a7b38691d8dc00d0fc34c0 | [
"Apache-2.0"
] | permissive | cheraghchi/mathlib | 5c366f8c4f8e66973b60c37881889da8390cab86 | f29d1c3038422168fbbdb2526abf7c0ff13e86db | refs/heads/master | 1,676,577,831,283 | 1,610,894,638,000 | 1,610,894,638,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 62,925 | lean | /-
Copyright (c) 2019 Oliver Nash. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Oliver Nash
-/
import data.bracket
import algebra.algebra.basic
import linear_algebra.bilinear_form
import linear_algebra.matrix
import tactic.noncomm_ring
/-!
# Lie algebras
This file ... |
6576db7b231fac1f3d50168593161c9e52225e41 | cc62cd292c1acc80a10b1c645915b70d2cdee661 | /src/category_theory/limits/filtered_limits.lean | e8a8d7c80a66e09d3948968f716e506124047c48 | [] | no_license | RitaAhmadi/lean-category-theory | 4afb881c4b387ee2c8ce706c454fbf9db8897a29 | a27b4ae5eac978e9188d2e867c3d11d9a5b87a9e | refs/heads/master | 1,651,786,183,402 | 1,565,604,314,000 | 1,565,604,314,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 551 | lean | -- import category_theory.filtered
-- class has_filtered_limits :=
-- (limit : Π {J : Type v} [𝒥 : small_category J] [filtered.{v v} J] (F : J ⥤ C), cone F)
-- (is_limit : Π {J : Type v} [𝒥 : small_category J] [filtered.{v v} J] (F : J ⥤ C), is_limit (limit F) . obviously)
-- class has_filtered_colimits :=
-- (coli... |
a4463b816a475870678869bc921c3559d0ca1f3c | 9d2e3d5a2e2342a283affd97eead310c3b528a24 | /src/for_mathlib/category_theory/default.lean | beb75af6b6477304072720054c8e9b8f1602f035 | [] | 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 | 149 | lean | import for_mathlib.category_theory.isomorphism
import for_mathlib.category_theory.natural_isomorphism
import for_mathlib.category_theory.equivalence
|
54687903d49cab83257e423ba195d158d20f8f68 | 77c5b91fae1b966ddd1db969ba37b6f0e4901e88 | /src/order/filter/extr.lean | 0ef20295cc18c5ca85360dd9960a32fd9cbc2b23 | [
"Apache-2.0"
] | permissive | dexmagic/mathlib | ff48eefc56e2412429b31d4fddd41a976eb287ce | 7a5d15a955a92a90e1d398b2281916b9c41270b2 | refs/heads/master | 1,693,481,322,046 | 1,633,360,193,000 | 1,633,360,193,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 21,068 | lean | /-
Copyright (c) 2019 Yury Kudryashov. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Yury Kudryashov
-/
import order.filter.basic
/-!
# Minimum and maximum w.r.t. a filter and on a aet
## Main Definitions
This file defines six predicates of the form `is_A_B`, where... |
ada7c51f955cab9ede98e63659f29ff922955262 | c777c32c8e484e195053731103c5e52af26a25d1 | /src/field_theory/separable.lean | af29f7b6c2003719b7b931f6a2aadbd535893d6d | [
"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 | 21,011 | lean | /-
Copyright (c) 2020 Kenny Lau. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Kenny Lau
-/
import algebra.squarefree
import data.polynomial.expand
import data.polynomial.splits
import field_theory.minpoly.field
import ring_theory.power_basis
/-!
# Separable polyno... |
c021bf4cc7bdfef57d73c7331b1fa10a075c59bf | 618003631150032a5676f229d13a079ac875ff77 | /src/analysis/calculus/inverse.lean | f54109e265f8ed39c648da32afc138dc67e7864f | [
"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 | 21,733 | 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 analysis.calculus.deriv
import topology.local_homeomorph
import topology.metric_space.contracting
/-!
# Inverse function theorem
In this file we prove the... |
15aacd4767f6f4bb71ea07944491473e05970f0a | 367134ba5a65885e863bdc4507601606690974c1 | /src/linear_algebra/clifford_algebra/basic.lean | 2c15472d11215659db180a843906d734f0988463 | [
"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,492 | lean | /-
Copyright (c) 2020 Eric Wieser. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Eric Wieser, Utensil Song.
-/
import algebra.ring_quot
import linear_algebra.tensor_algebra
import linear_algebra.exterior_algebra
import linear_algebra.quadratic_form
/-!
# Clifford Al... |
4e88c807aa84186eaeee889afd36aa21cb1ecabd | 1f6fe2f89976b14a4567ab298c35792b21f2e50b | /cohomology/basic.hlean | 4c88433562ef0def4cd9b84777f9dcba8532b67f | [
"Apache-2.0"
] | permissive | jonas-frey/Spectral | e5c1c2f7bcac26aa55f7b1e041a81272a146198d | 72d521091525a4bc9a31cac859840efe9461cf66 | refs/heads/master | 1,610,235,743,345 | 1,505,417,795,000 | 1,505,417,795,000 | 102,653,342 | 0 | 0 | null | 1,504,728,483,000 | 1,504,728,483,000 | null | UTF-8 | Lean | false | false | 17,518 | hlean | /-
Copyright (c) 2016 Floris van Doorn. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Floris van Doorn, Ulrik Buchholtz
Reduced cohomology of spectra and cohomology theories
-/
import ..spectrum.basic ..algebra.arrow_group ..homotopy.fwedge ..choice ..homotopy.pusho... |
0af6138f67322b792f9fdc81d3c911ba55560818 | 8cae430f0a71442d02dbb1cbb14073b31048e4b0 | /src/algebra/gcd_monoid/div.lean | bddd821ee15632d323938bb20a8bfaf82cf9ab73 | [
"Apache-2.0"
] | permissive | leanprover-community/mathlib | 56a2cadd17ac88caf4ece0a775932fa26327ba0e | 442a83d738cb208d3600056c489be16900ba701d | refs/heads/master | 1,693,584,102,358 | 1,693,471,902,000 | 1,693,471,902,000 | 97,922,418 | 1,595 | 352 | Apache-2.0 | 1,694,693,445,000 | 1,500,624,130,000 | Lean | UTF-8 | Lean | false | false | 3,266 | lean | /-
Copyright (c) 2022 Riccardo Brasca. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Riccardo Brasca
-/
import algebra.gcd_monoid.finset
import algebra.gcd_monoid.basic
import ring_theory.int.basic
import ring_theory.polynomial.content
/-!
# Basic results about setwi... |
c25cf756e34e0c211a4a7bb9d1306f171a6d6a14 | d406927ab5617694ec9ea7001f101b7c9e3d9702 | /src/topology/stone_cech.lean | 8f8340bd77ad65e3eadc37cb8cd8c2490a147c6c | [
"Apache-2.0"
] | permissive | alreadydone/mathlib | dc0be621c6c8208c581f5170a8216c5ba6721927 | c982179ec21091d3e102d8a5d9f5fe06c8fafb73 | refs/heads/master | 1,685,523,275,196 | 1,670,184,141,000 | 1,670,184,141,000 | 287,574,545 | 0 | 0 | Apache-2.0 | 1,670,290,714,000 | 1,597,421,623,000 | Lean | UTF-8 | Lean | false | false | 12,078 | lean | /-
Copyright (c) 2018 Reid Barton. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Reid Barton
-/
import topology.bases
import topology.dense_embedding
/-! # Stone-Čech compactification
Construction of the Stone-Čech compactification using ultrafilters.
Parts of the ... |
1c1769b0cf26fbba88360859714498fe618d63ce | 4efff1f47634ff19e2f786deadd394270a59ecd2 | /src/linear_algebra/eigenspace.lean | b74d9d92b1c47c68b5108dc04478542c3f4dacc2 | [
"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 | 14,755 | lean | /-
Copyright (c) 2020 Alexander Bentkamp. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Author: Alexander Bentkamp.
-/
import field_theory.algebraic_closure
import linear_algebra.finsupp
/-!
# Eigenvectors and eigenvalues
This file defines eigenspaces, eigenvalues, and eige... |
612a4e4701b4d6b43270b65731751bd9b09b451b | a9d0fb7b0e4f802bd3857b803e6c5c23d87fef91 | /tests/lean/run/meta_tac2.lean | 5e2401a7d05fa54f515000d84b89c87f66e73b31 | [
"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 | 1,181 | lean | set_option pp.all true
open tactic name list
set_option pp.goal.compact true
set_option pp.binder_types true
set_option pp.delayed_abstraction true
example : ∀ (p : Prop), p → p → p :=
by do
intro_lst [`_, `H1, `H2],
trace_state,
trace_result,
trace "---------",
get_local `H1 >>= revert,
trac... |
cde44cd31aae76add5e5ea6115fafd1821324988 | a9d0fb7b0e4f802bd3857b803e6c5c23d87fef91 | /tests/lean/run/t4.lean | 4723a37fcdef4fd5780d2f6e66f81096ef1e5d7d | [
"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 | 208 | lean | namespace foo
definition {u} f (A : Type u) : Type u := A
check f.{1}
end foo
constant N : Type
section
variable A : Type*
definition g (a : A) (B : Type*) : A := a
check g.{_ 2}
end
check g.{2 3}
|
17ad167f6e721914a559ac1527645241431b545b | 76df16d6c3760cb415f1294caee997cc4736e09b | /lean/src/cs/sym.lean | 66c8c44a7b814e78306651cc1466d12f4f466749 | [
"MIT"
] | permissive | uw-unsat/leanette-popl22-artifact | 70409d9cbd8921d794d27b7992bf1d9a4087e9fe | 80fea2519e61b45a283fbf7903acdf6d5528dbe7 | refs/heads/master | 1,681,592,449,670 | 1,637,037,431,000 | 1,637,037,431,000 | 414,331,908 | 6 | 1 | null | null | null | null | UTF-8 | Lean | false | false | 7,842 | lean | import tactic.basic
import .lang
namespace sym
section eval
structure has_eval (Model SymB SymV SymR : Type) :=
(evalB : Model → SymB → bool)
(evalV : Model → SymV → SymR)
end eval
structure choice (SymB SymV : Type) :=
(guard : SymB)
(value : SymV)
@[reducible] def choices (SymB SymV : Type) := list... |
e6850e9e4e455f2c27fd482884c06662f6ba49a0 | cf39355caa609c0f33405126beee2739aa3cb77e | /tests/lean/run/cont.lean | 6f2b7270572371adaa52508ac5ad913c654893f3 | [
"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 | 3,273 | lean | /-
Copyright (c) 2018 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Sebastian Ullrich
The continuation monad transformer.
-/
import init.control.alternative init.control.combinators init.control.lift
import system.io
universes u v w
/-- An im... |
7aa0cfd333252e835ed5dc4ec3e2826b335cf093 | 63abd62053d479eae5abf4951554e1064a4c45b4 | /src/number_theory/primorial.lean | 155f4d64b61f14f2f8c1c4f81f4fa4ae52e8a04c | [
"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 | 7,338 | lean | /-
Copyright (c) 2020 Patrick Stevens. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Patrick Stevens
-/
import tactic.ring_exp
import data.nat.parity
import data.nat.choose.sum
/-!
# Primorial
This file defines the primorial function (the product of primes less than... |
102e54cdd8bafdf27053bddf71809b743a8e2634 | cbb1957fc3e28e502582c54cbce826d666350eda | /fabstract/Cook_S_P_NP/turing_machines.lean | 141451dc4c893074eb35cba0bc5ee753b9b61254 | [
"CC-BY-4.0"
] | permissive | andrejbauer/formalabstracts | 9040b172da080406448ad1b0260d550122dcad74 | a3b84fd90901ccf4b63eb9f95d4286a8775864d0 | refs/heads/master | 1,609,476,417,918 | 1,501,541,742,000 | 1,501,541,760,000 | 97,241,872 | 1 | 0 | null | 1,500,042,191,000 | 1,500,042,191,000 | null | UTF-8 | Lean | false | false | 3,532 | lean |
inductive direction | left | right
instance : decidable_eq direction := by tactic.mk_dec_eq_instance
local prefix ^ := option
def nondet_turing_machine (state symbol : Type) [decidable_eq state] [decidable_eq symbol] :=
state → ^symbol → state → ^symbol → direction → bool
def turing_machine (state symbol : Type) [d... |
5bb7f3339c54c319ea92f4e75c7e59f0ad4d20bd | 74addaa0e41490cbaf2abd313a764c96df57b05d | /Mathlib/data/seq/seq_auto.lean | 9817f6ec6e69e4b75e9da946bde1224303caa1c7 | [] | 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,224 | 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 Mathlib.PrePort
import Mathlib.Lean3Lib.init.default
import Mathlib.data.list.basic
import Mathlib.Lean3Lib.data.stream
import Mathlib.Lean3Lib.data.lazy_list
i... |
98e5dda324acbad6e687d62ef7ae0621f254635a | ff5230333a701471f46c57e8c115a073ebaaa448 | /library/init/meta/attribute.lean | c1138d5ed5bbf822a5ee8c9ac68b57644a119f22 | [
"Apache-2.0"
] | permissive | stanford-cs242/lean | f81721d2b5d00bc175f2e58c57b710d465e6c858 | 7bd861261f4a37326dcf8d7a17f1f1f330e4548c | refs/heads/master | 1,600,957,431,849 | 1,576,465,093,000 | 1,576,465,093,000 | 225,779,423 | 0 | 3 | Apache-2.0 | 1,575,433,936,000 | 1,575,433,935,000 | null | UTF-8 | Lean | false | false | 5,909 | lean | /-
Copyright (c) 2016 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Sebastian Ullrich
-/
prelude
import init.meta.tactic init.meta.rb_map init.meta.has_reflect init.meta.lean.parser
/-- Get all of the declaration names that have the given attri... |
61748398423caaf8e45b89a22e5fedcf5384b888 | 82e44445c70db0f03e30d7be725775f122d72f3e | /src/topology/sequences.lean | b6e1797a8505dfc3e93d85877acd1a63e74e7e2e | [
"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 | 18,792 | lean | /-
Copyright (c) 2018 Jan-David Salchow. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Jan-David Salchow, Patrick Massot
-/
import topology.subset_properties
import topology.metric_space.basic
/-!
# Sequences in topological spaces
In this file we define sequences in... |
fc949d90070e7b4b716b05ea3025185c97b5c14d | d9d511f37a523cd7659d6f573f990e2a0af93c6f | /src/analysis/analytic/composition.lean | fac705d31839ac0f46deb6beb929bf291caae1c2 | [
"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 | 58,807 | 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, Johan Commelin
-/
import analysis.analytic.basic
import combinatorics.composition
/-!
# Composition of analytic functions
in this file we prove that the composi... |
b5a56a25ba3523fce452566ac394f348ee16f1fe | 7cef822f3b952965621309e88eadf618da0c8ae9 | /src/analysis/complex/basic.lean | 340d1d27ad573d8b4b24a669ee3a907193aab2b8 | [
"Apache-2.0"
] | permissive | rmitta/mathlib | 8d90aee30b4db2b013e01f62c33f297d7e64a43d | 883d974b608845bad30ae19e27e33c285200bf84 | refs/heads/master | 1,585,776,832,544 | 1,576,874,096,000 | 1,576,874,096,000 | 153,663,165 | 0 | 2 | Apache-2.0 | 1,544,806,490,000 | 1,539,884,365,000 | Lean | UTF-8 | Lean | false | false | 8,131 | lean | /-
Copyright (c) Sébastien Gouëzel. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Sébastien Gouëzel
-/
import analysis.calculus.deriv analysis.normed_space.finite_dimension
/-!
# Normed space structure on `ℂ`.
This file gathers basic facts on complex numbers of an a... |
eadb201cac575c140ba9a464a0019f39307fcf22 | cf39355caa609c0f33405126beee2739aa3cb77e | /tests/lean/inductive_cmd_leftover_placeholder_universe.lean | f30a3d2d74027fab236e3291d1829a6cc4fbf256 | [
"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 | 131 | lean | inductive ValueEffect (V : Type) (R : Type → Type) : Type
| Value : V → ValueEffect
| Effect : R (ValueEffect) → ValueEffect
|
280b6de50cacd50406c95d1ac6c92f3472bf3643 | 7cef822f3b952965621309e88eadf618da0c8ae9 | /src/data/rat/cast.lean | 2141bb92076fc4adb2d8cb2b06a48eeaa646271a | [
"Apache-2.0"
] | permissive | rmitta/mathlib | 8d90aee30b4db2b013e01f62c33f297d7e64a43d | 883d974b608845bad30ae19e27e33c285200bf84 | refs/heads/master | 1,585,776,832,544 | 1,576,874,096,000 | 1,576,874,096,000 | 153,663,165 | 0 | 2 | Apache-2.0 | 1,544,806,490,000 | 1,539,884,365,000 | Lean | UTF-8 | Lean | false | false | 11,764 | 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, Mario Carneiro
-/
import data.rat.order
/-!
# Casts for Rational Numbers
## Summary
We define the canonical injection from ℚ into an arbitrary division ring and prove... |
047f19b5f80f517390acb143fefdf05d98bcad1c | 5719a16e23dfc08cdea7a5bf035b81690f307965 | /src/Init/Lean/Elab/ResolveName.lean | 9408588fe8de171860c10a7a6c68198465c0e613 | [
"Apache-2.0"
] | permissive | postmasters/lean4 | 488b03969a371e1507e1e8a4df9ebf63c7cbe7ac | f3976fc53a883ac7606fc59357d43f4b51016ca7 | refs/heads/master | 1,655,582,707,480 | 1,588,682,595,000 | 1,588,682,595,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 5,678 | 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, Sebastian Ullrich
-/
prelude
import Init.Lean.Hygiene
import Init.Lean.Modifiers
import Init.Lean.Elab.Alias
namespace Lean
namespace Elab
inductive OpenDec... |
bfb2db0b272a661fa050717e5fa457bf62626905 | a9d0fb7b0e4f802bd3857b803e6c5c23d87fef91 | /tests/lean/run/ns1.lean | dc17ef8c9e5d97976da5ebc80315f0cde0f8190a | [
"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 | 98 | lean | namespace foo
namespace boo
theorem tst : true := trivial
end boo
end foo
open foo
check boo.tst
|
9d0e4a6a3cc603bdc8710b3d085ffce0b64f1832 | e0e64c424bf126977aef10e58324934782979062 | /src/wk2/exercises/groups2.lean | 0488821f2d34784222a05046cc439b45f6e466be | [] | no_license | jamesa9283/LiaLeanTutor | 34e9e133a4f7dd415f02c14c4a62351bb9fd8c21 | c7ac1400f26eb2992f5f1ee0aaafb54b74665072 | refs/heads/master | 1,686,146,337,422 | 1,625,227,392,000 | 1,625,227,392,000 | 373,130,175 | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 654 | lean | import tactic
import algebra.squarefree
namespace nat
-- this lemma may be useful to you `sq_mul_squarefree_of_pos`
-- in obtain you can use `-` to remove hypothesys
lemma sq_mul_squarefree' (n : ℕ) : ∃ a b : ℕ, b ^ 2 * a = n ∧ squarefree a :=
begin
sorry
end
end nat
namespace finite_groups
variables {G : Type*... |
e9ab016ad8b6f27b9e3404b9dffc7184a4d02651 | 69d4931b605e11ca61881fc4f66db50a0a875e39 | /src/measure_theory/l2_space.lean | 3bcc16b4c57d8bdeaeec30e9528b5d42c98caf14 | [
"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 | 5,726 | lean | /-
Copyright (c) 2021 Rémy Degenne. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Rémy Degenne
-/
import analysis.normed_space.inner_product
import measure_theory.set_integral
/-! # `L^2` space
If `E` is an inner product space over `𝕜` (`ℝ` or `ℂ`), then `Lp E 2 μ`... |
a8c82c8262a8be3d34dae2f4390b7bfdf40f897d | 74addaa0e41490cbaf2abd313a764c96df57b05d | /Mathlib/algebra/group/default_auto.lean | aa24359b98c601db929028f2806511c4596603b0 | [] | 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 | 451 | 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, Michael Howes
-/
import Mathlib.PrePort
import Mathlib.Lean3Lib.init.default
import Mathlib.algebra.group.type_tags
import Mathlib.algebra.group.conj
i... |
f7419bca6cfab74838410d82ba7c456bc08a7cb3 | 5ae26df177f810c5006841e9c73dc56e01b978d7 | /src/tactic/where.lean | badc167e77d065dd3baf7852d148122eb90c9834 | [
"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 | 7,651 | lean | /-
Copyright (c) 2019 Keeley Hoek. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Keeley Hoek
-/
import data.list.defs tactic.core
open lean.parser tactic
namespace where
meta def mk_flag (let_var : option name := none) : lean.parser (name × ℕ) :=
do n ← mk_user_fre... |
1b9c424d7970ec5aa203107d0b85a0a501890e79 | 968e2f50b755d3048175f176376eff7139e9df70 | /examples/pred_logic/unnamed_29.lean | 06e46d1d911862faaf85a2b3f64c4c5cc2ee1130 | [] | no_license | gihanmarasingha/mth1001_sphinx | 190a003269ba5e54717b448302a27ca26e31d491 | 05126586cbf5786e521be1ea2ef5b4ba3c44e74a | refs/heads/master | 1,672,913,933,677 | 1,604,516,583,000 | 1,604,516,583,000 | 309,245,750 | 1 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 53 | lean | variable U : Type* -- This declares `U` to be a type. |
fbc406d0e76e4bde9ae05e149c52f5fe255468ab | fa02ed5a3c9c0adee3c26887a16855e7841c668b | /src/set_theory/lists.lean | c5edb1c6f37370d600486fa88e263bb554f7e6e8 | [
"Apache-2.0"
] | permissive | jjgarzella/mathlib | 96a345378c4e0bf26cf604aed84f90329e4896a2 | 395d8716c3ad03747059d482090e2bb97db612c8 | refs/heads/master | 1,686,480,124,379 | 1,625,163,323,000 | 1,625,163,323,000 | 281,190,421 | 2 | 0 | Apache-2.0 | 1,595,268,170,000 | 1,595,268,169,000 | null | UTF-8 | Lean | false | false | 11,853 | lean | /-
Copyright (c) 2018 Mario Carneiro. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Mario Carneiro
A computable model of hereditarily finite sets with atoms
(ZFA without infinity). This is useful for calculations in naive
set theory.
-/
import data.list.basic
import ... |
805b040aed8d7089e423d090bdb41517499e20aa | 7cef822f3b952965621309e88eadf618da0c8ae9 | /src/order/filter/pointwise.lean | 03d8c6b0cdb3afb01290dbe9a461f99df7a98707 | [
"Apache-2.0"
] | permissive | rmitta/mathlib | 8d90aee30b4db2b013e01f62c33f297d7e64a43d | 883d974b608845bad30ae19e27e33c285200bf84 | refs/heads/master | 1,585,776,832,544 | 1,576,874,096,000 | 1,576,874,096,000 | 153,663,165 | 0 | 2 | Apache-2.0 | 1,544,806,490,000 | 1,539,884,365,000 | Lean | UTF-8 | Lean | false | false | 7,682 | lean | /-
Copyright (c) 2019 Zhouhang Zhou. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Zhouhang Zhou
The pointwise operations on filters have nice properties, such as
• map m (f₁ * f₂) = map m f₁ * map m f₂
• 𝓝 x * 𝓝 y = 𝓝 (x * y)
-/
import algebra.pointwise
imp... |
d5ebd679684474c1349daca3f8ee82bd99a6bce9 | 74addaa0e41490cbaf2abd313a764c96df57b05d | /Mathlib/tactic/basic.lean | 7a0e231cc9c728d982e515e37fbb1d8082b8c10e | [] | no_license | AurelienSaue/Mathlib4_auto | f538cfd0980f65a6361eadea39e6fc639e9dae14 | 590df64109b08190abe22358fabc3eae000943f2 | refs/heads/master | 1,683,906,849,776 | 1,622,564,669,000 | 1,622,564,669,000 | 371,723,747 | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 1,367 | lean | import Mathlib.PrePort
import Mathlib.Lean3Lib.init.default
import Mathlib.tactic.alias
import Mathlib.tactic.clear
import Mathlib.tactic.choose
import Mathlib.tactic.converter.apply_congr
import Mathlib.tactic.congr
import Mathlib.tactic.dec_trivial
import Mathlib.tactic.delta_instance
import Mathlib.tactic.dependenci... |
454196a1b90eafc3b2eaddb0e9382d6eeeacb364 | d406927ab5617694ec9ea7001f101b7c9e3d9702 | /src/dynamics/minimal.lean | 73c2624ad51b14372668d9a64cab3180b970a6ae | [
"Apache-2.0"
] | permissive | alreadydone/mathlib | dc0be621c6c8208c581f5170a8216c5ba6721927 | c982179ec21091d3e102d8a5d9f5fe06c8fafb73 | refs/heads/master | 1,685,523,275,196 | 1,670,184,141,000 | 1,670,184,141,000 | 287,574,545 | 0 | 0 | Apache-2.0 | 1,670,290,714,000 | 1,597,421,623,000 | Lean | UTF-8 | Lean | false | false | 3,936 | lean | /-
Copyright (c) 2021 Yury G. Kudryashov. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Yury G. Kudryashov
-/
import group_theory.group_action.basic
import topology.algebra.const_mul_action
/-!
# Minimal action of a group
In this file we define an action of a monoid... |
4f0df7bc0674e28d4658da731a3d8061716f72b8 | 26ac254ecb57ffcb886ff709cf018390161a9225 | /src/field_theory/mv_polynomial.lean | 39ef7daedd62dc26d26d4e2f919263cd72dae434 | [
"Apache-2.0"
] | permissive | eric-wieser/mathlib | 42842584f584359bbe1fc8b88b3ff937c8acd72d | d0df6b81cd0920ad569158c06a3fd5abb9e63301 | refs/heads/master | 1,669,546,404,255 | 1,595,254,668,000 | 1,595,254,668,000 | 281,173,504 | 0 | 0 | Apache-2.0 | 1,595,263,582,000 | 1,595,263,581,000 | null | UTF-8 | Lean | false | false | 9,312 | lean | /-
Copyright (c) 2019 Johannes Hölzl. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Author: Johannes Hölzl
Multivariate functions of the form `α^n → α` are isomorphic to multivariate polynomials in
`n` variables.
-/
import linear_algebra.finsupp_vector_space
import field_theo... |
86f8bad827038464d6202be668c7d343ed392ac8 | 8e2026ac8a0660b5a490dfb895599fb445bb77a0 | /library/init/algebra/ordered_group.lean | 52b4a75acf4ffb04bd89257375708051b5bcde09 | [
"Apache-2.0"
] | permissive | pcmoritz/lean | 6a8575115a724af933678d829b4f791a0cb55beb | 35eba0107e4cc8a52778259bb5392300267bfc29 | refs/heads/master | 1,607,896,326,092 | 1,490,752,175,000 | 1,490,752,175,000 | 86,612,290 | 0 | 0 | null | 1,490,809,641,000 | 1,490,809,641,000 | null | UTF-8 | Lean | false | false | 20,197 | 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... |
ce0bd9b3011b440a826f7227bfbedd5951166fc6 | 6432ea7a083ff6ba21ea17af9ee47b9c371760f7 | /tests/lean/run/listDecEq.lean | 225e16d5794db076d6df636d1bc7ad96bf64f92e | [
"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 | 776 | lean | -- List decidable equality using `withPtrEqDecEq`
def listDecEqAux {α} [s : DecidableEq α] : ∀ (as bs : List α), Decidable (as = bs)
| [], [] => isTrue rfl
| [], b::bs => isFalse $ fun h => List.noConfusion h
| a::as, [] => isFalse $ fun h => List.noConfusion h
| a::as, b::bs =>
match s a b with
| isTru... |
cf74acf284d644e92d5befb757069381a247ccbb | 8d65764a9e5f0923a67fc435eb1a5a1d02fd80e3 | /src/order/filter/lift.lean | 8773251dba632b8d70626dbf4f9fea008de6d233 | [
"Apache-2.0"
] | permissive | troyjlee/mathlib | e18d4b8026e32062ab9e89bc3b003a5d1cfec3f5 | 45e7eb8447555247246e3fe91c87066506c14875 | refs/heads/master | 1,689,248,035,046 | 1,629,470,528,000 | 1,629,470,528,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 21,959 | lean | /-
Copyright (c) 2019 Johannes Hölzl. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Johannes Hölzl
-/
import order.filter.bases
/-!
# Lift filters along filter and set functions
-/
open set
open_locale classical filter
namespace filter
variables {α : Type*} {β : T... |
2fda75503711335ccde6b7c52d76caeea1aa6dcd | 4d2583807a5ac6caaffd3d7a5f646d61ca85d532 | /src/topology/metric_space/antilipschitz.lean | cd1d0e364075a6d95b63aea017190aa810b43ebd | [
"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,253 | 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 topology.metric_space.lipschitz
import topology.uniform_space.complete_separated
/-!
# Antilipschitz functions
We say that a map `f : α → β` between two (e... |
86384552321e14b96791b93fe272dff6b95752f1 | bb31430994044506fa42fd667e2d556327e18dfe | /src/data/set/intervals/ord_connected.lean | 7dd30593bff4ab5a29d1fcdb409353e814b23f96 | [
"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,115 | 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 data.set.intervals.unordered_interval
import data.set.lattice
/-!
# Order-connected sets
> THIS FILE IS SYNCHRONIZED WITH MATHLIB4.
> Any changes to ... |
7efaeb85702ee9855f4f89fa9390bc9e6844c450 | 26ac254ecb57ffcb886ff709cf018390161a9225 | /src/data/matrix/basic.lean | f7e3a96e04bfd803a8491e8cccfa282b3e3e65cb | [
"Apache-2.0"
] | permissive | eric-wieser/mathlib | 42842584f584359bbe1fc8b88b3ff937c8acd72d | d0df6b81cd0920ad569158c06a3fd5abb9e63301 | refs/heads/master | 1,669,546,404,255 | 1,595,254,668,000 | 1,595,254,668,000 | 281,173,504 | 0 | 0 | Apache-2.0 | 1,595,263,582,000 | 1,595,263,581,000 | null | UTF-8 | Lean | false | false | 26,277 | lean | /-
Copyright (c) 2018 Ellen Arlt. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Ellen Arlt, Blair Shi, Sean Leather, Mario Carneiro, Johan Commelin
-/
import algebra.pi_instances
/-!
# Matrices
-/
universes u v w
open_locale big_operators
@[nolint unused_arguments]
... |
02b2eaa3cbef682d5317709c5170ff5e5f00a39a | fe25de614feb5587799621c41487aaee0d083b08 | /stage0/src/Lean/ImportingFlag.lean | 250bb7c3550979bd3114a3e125ce1a2cad708607 | [
"Apache-2.0"
] | permissive | pollend/lean4 | e8469c2f5fb8779b773618c3267883cf21fb9fac | c913886938c4b3b83238a3f99673c6c5a9cec270 | refs/heads/master | 1,687,973,251,481 | 1,628,039,739,000 | 1,628,039,739,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 636 | 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
-/
namespace Lean
builtin_initialize importingRef : IO.Ref Bool ← IO.mkRef false
/- We say Lean is "initializing" when it is executing `builtin_initialize` d... |
a629c3f52471ff4273628060ae4da0cdd801bec7 | bd12a817ba941113eb7fdb7ddf0979d9ed9386a0 | /src/category_theory/yoneda.lean | e073346275b60476e8bc46a313888b14278b3e8b | [
"Apache-2.0"
] | permissive | flypitch/mathlib | 563d9c3356c2885eb6cefaa704d8d86b89b74b15 | 70cd00bc20ad304f2ac0886b2291b44261787607 | refs/heads/master | 1,590,167,818,658 | 1,557,762,121,000 | 1,557,762,121,000 | 186,450,076 | 0 | 0 | Apache-2.0 | 1,557,762,289,000 | 1,557,762,288,000 | null | UTF-8 | Lean | false | false | 6,844 | lean | -- Copyright (c) 2017 Scott Morrison. All rights reserved.
-- Released under Apache 2.0 license as described in the file LICENSE.
-- Authors: Scott Morrison
/- The Yoneda embedding, as a functor `yoneda : C ⥤ (Cᵒᵖ ⥤ Type v₁)`,
along with an instance that it is `fully_faithful`.
Also the Yoneda lemma, `yoneda_le... |
c7a27bb06d0c11a0c22348e4873d0955727edc50 | 8cae430f0a71442d02dbb1cbb14073b31048e4b0 | /src/topology/metric_space/partition_of_unity.lean | 7088b4bb42ef64bd8cd85d7b9bc8b38efa981190 | [
"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 | 8,302 | lean | /-
Copyright (c) 2022 Yury Kudryashov. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Yury Kudryashov
-/
import topology.metric_space.emetric_paracompact
import analysis.convex.partition_of_unity
/-!
# Lemmas about (e)metric spaces that need partition of unity
> THIS... |
e401122d08a39db3af0feae3390aa19b2960ae86 | cbe4a9b7a82d51d68a3cb3923364dc483fc2e83a | /src/smt/veriT.lean | 5f2ee4fb8bfe479031ffc4bd18419ac25e123dd9 | [] | no_license | holtzermann17/smt-lean | a3ba2c1874b40c1af6fc6471add7f604b5507783 | e1968c933a4ef463acf08b39ea71c34290a9bb5d | refs/heads/master | 1,589,686,418,876 | 1,556,219,457,000 | 1,556,219,457,000 | 183,484,368 | 0 | 0 | null | 1,556,214,961,000 | 1,556,214,961,000 | null | UTF-8 | Lean | false | false | 10,196 | lean |
import tactic.linarith
import smt.basic
namespace smt.veriT
open smt (hiding expr)
inductive proof_step
| input (s : sexpr)
| tmp_LA_pre (s : sexpr) (r : ℕ)
-- * deep_res : deep resolution in formula
-- * true : valid: {true}
-- * false : valid: {(not false)}
-- * and_pos ... |
ba9c97b232578056aaaea1732a49f825d829f66c | 1a61aba1b67cddccce19532a9596efe44be4285f | /hott/cubical/square.hlean | 0b4d24e11c31ec4f1e7bfa242c83b5c597dd6992 | [
"Apache-2.0"
] | permissive | eigengrau/lean | 07986a0f2548688c13ba36231f6cdbee82abf4c6 | f8a773be1112015e2d232661ce616d23f12874d0 | refs/heads/master | 1,610,939,198,566 | 1,441,352,386,000 | 1,441,352,494,000 | 41,903,576 | 0 | 0 | null | 1,441,352,210,000 | 1,441,352,210,000 | null | UTF-8 | Lean | false | false | 24,194 | 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
Squares in a type
-/
import types.eq
open eq equiv is_equiv
namespace eq
variables {A B : Type} {a a' a'' a₀₀ a₂₀ a₄₀ a₀₂ a₂₂ a₂₄ a₀₄ a₄₂ a₄₄ a₁ a₂ a₃ a₄ : A}
... |
8edebdfe155646bb3e223f326dd0233b90abcc48 | 6432ea7a083ff6ba21ea17af9ee47b9c371760f7 | /tests/lean/run/binrelmacros.lean | 82799401a642a3de31756a1f0678278f9bba569a | [
"Apache-2.0",
"LLVM-exception",
"NCSA",
"LGPL-3.0-only",
"LicenseRef-scancode-inner-net-2.0",
"BSD-3-Clause",
"LGPL-2.0-or-later",
"Spencer-94",
"LGPL-2.1-or-later",
"HPND",
"LicenseRef-scancode-pcre",
"ISC",
"LGPL-2.1-only",
"LicenseRef-scancode-other-permissive",
"SunPro",
"CMU-Mach"... | permissive | leanprover/lean4 | 4bdf9790294964627eb9be79f5e8f6157780b4cc | f1f9dc0f2f531af3312398999d8b8303fa5f096b | refs/heads/master | 1,693,360,665,786 | 1,693,350,868,000 | 1,693,350,868,000 | 129,571,436 | 2,827 | 311 | Apache-2.0 | 1,694,716,156,000 | 1,523,760,560,000 | Lean | UTF-8 | Lean | false | false | 1,470 | lean | theorem ex1 : ∀ x : Int, ∃ n : Nat, n > x :=
sorry
theorem ex2 : ∀ x : Int, ∃ n : Nat, x > n :=
sorry
namespace Lt
def ex1 (x y : Nat) (i j : Int) :=
x < i
def ex2 (x y : Nat) (i j : Int) :=
i < x
def ex3 (x y : Nat) (i j : Int) :=
i + 1 < x
def ex4 (x y : Nat) (i j : Int) :=
i < x + 1
def ex5 (x y :... |
103f2ddce49670a9e1a5b32cb1c014b4573cedb3 | d406927ab5617694ec9ea7001f101b7c9e3d9702 | /src/topology/algebra/const_mul_action.lean | 6b253a88bfc34b045fd6fde31e014a0fe0cb17b2 | [
"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 | 20,781 | lean | /-
Copyright (c) 2021 Alex Kontorovich, Heather Macbeth. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Alex Kontorovich, Heather Macbeth
-/
import topology.algebra.constructions
import topology.homeomorph
import group_theory.group_action.basic
import topology.bases
im... |
67cf52152618613b8b6a07802848470c948202dd | 618003631150032a5676f229d13a079ac875ff77 | /src/order/lexicographic.lean | 6271b820a0096da27df1eba2d3778ef8f374b658 | [
"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,599 | lean | /-
Copyright (c) 2019 Scott Morrison. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Author: Scott Morrison, Minchao Wu
Lexicographic preorder / partial_order / linear_order / decidable_linear_order,
for pairs and dependent pairs.
-/
import tactic.basic
universes u v
def lex... |
3977f57950c42056d64060b82867ad2ff1ea4d8b | 0c1546a496eccfb56620165cad015f88d56190c5 | /tests/lean/run/1315b.lean | 8225f0b972c3b0b80b09fdb2b14827d27b69d8c1 | [
"Apache-2.0"
] | permissive | Solertis/lean | 491e0939957486f664498fbfb02546e042699958 | 84188c5aa1673fdf37a082b2de8562dddf53df3f | refs/heads/master | 1,610,174,257,606 | 1,486,263,620,000 | 1,486,263,620,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 1,230 | lean | open nat
def k : ℕ := 0
def fails : Π (n : ℕ) (m : ℕ), ℕ
| 0 m := 0
| (succ n) m :=
match k with
| 0 := 0
| (succ i) :=
let val := m+1 in
match fails n val with
| 0 := 0
| (succ l) := 0
end
end
def test (k : ℕ) : Π (n : ℕ) (m : ℕ), ℕ
| 0 m := 0
| (succ n) m :=
match k with
| 0 := 1
... |
d6763815737df8aa23447fe1147bca18a471c885 | 32317185abf7e7c963f4c67c190aec61af6b3628 | /library/algebra/group_power.lean | 6b11d96277d166b2a4d584ea53fd72a32881eba5 | [
"Apache-2.0"
] | permissive | Andrew-Zipperer-unorganized/lean | 198a2317f21198cd8d26e7085e484b86277f17f7 | dcb35008e1474a0abebe632b1dced120e5f8c009 | refs/heads/master | 1,622,526,520,945 | 1,453,576,559,000 | 1,454,612,842,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 8,377 | lean | /-
Copyright (c) 2015 Jeremy Avigad. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Author: Jeremy Avigad
The power operation on monoids and groups. We separate this from group, because it depends on
nat, which in turn depends on other parts of algebra.
We have "pow a n" for ... |
5b12584cf3d5c1be47e950c3f513553328a7d89f | 80cc5bf14c8ea85ff340d1d747a127dcadeb966f | /src/data/mv_polynomial/pderivative.lean | 201d1e1c23dc8fba78fcb1016329fb92b882b55c | [
"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 | 4,351 | lean | /-
Copyright (c) 2017 Johannes Hölzl. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Shing Tak Lam
-/
import data.mv_polynomial.variables
import algebra.module.basic
import tactic.ring
/-!
# Partial derivatives of polynomials
This file defines the notion of the form... |
c84edd7f72667b1ffe59c756d973a52c86c72e50 | b7f22e51856f4989b970961f794f1c435f9b8f78 | /tests/lean/hott/366.hlean | 1efc92e20c7c46e836e55933e4ba1662bd8b4cb8 | [
"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 | 135 | hlean | open eq
definition foo (A : Type) : Type := Π (a : A), a = a
definition thm : Π (A : Type), foo A :=
begin
intros,
apply idp
end
|
8bc25ee3a718494839985d440108a023171d3d41 | 626e312b5c1cb2d88fca108f5933076012633192 | /src/measure_theory/group/arithmetic.lean | dd47bd4512845ad1d7a9f3da96310fd4c1415fee | [
"Apache-2.0"
] | permissive | Bioye97/mathlib | 9db2f9ee54418d29dd06996279ba9dc874fd6beb | 782a20a27ee83b523f801ff34efb1a9557085019 | refs/heads/master | 1,690,305,956,488 | 1,631,067,774,000 | 1,631,067,774,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 25,531 | lean | /-
Copyright (c) 2021 Yury Kudryashov. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Yury Kudryashov
-/
import measure_theory.measure.measure_space
/-!
# Typeclasses for measurability of operations
In this file we define classes `has_measurable_mul` etc and prove do... |
9529997c314f18f9df25539936ad4a10526c7a37 | a4fc62ff52cb859cadb6cdfa156b33d12a5fcfb1 | /Mandlebrah/Complex.lean | 1b32223f035d82ca870b4ffb4527f3c74a848660 | [] | no_license | chughes87/Mandlebrah | f86b2406422922d7bb0d89a3d28775bd8862e074 | 559d300a9ef3d43832d3b47cffb014abe7649538 | refs/heads/master | 1,692,395,039,560 | 1,632,105,435,000 | 1,632,105,435,000 | 407,995,906 | 6 | 2 | null | 1,632,197,696,000 | 1,632,010,899,000 | Lean | UTF-8 | Lean | false | false | 1,276 | lean | structure Complex where
real: Float
i: Float
deriving Repr
namespace Complex
def add (a b: Complex) : Complex :=
Complex.mk (a.real + b.real) (a.i + b.i)
def mul (a b: Complex) : Complex :=
let real : Float := a.real * b.real
let realComplex : Float := a.real * b.i
let complexReal : Float := a.i * b.re... |
0ace9db0892e2323f00dbcbc7e79eb195961566a | aa3f8992ef7806974bc1ffd468baa0c79f4d6643 | /tests/lean/run/tac1.lean | 58e5d0a0a674654ebbd8a210f6f72330e094cb1e | [
"Apache-2.0"
] | permissive | codyroux/lean | 7f8dff750722c5382bdd0a9a9275dc4bb2c58dd3 | 0cca265db19f7296531e339192e9b9bae4a31f8b | refs/heads/master | 1,610,909,964,159 | 1,407,084,399,000 | 1,416,857,075,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 106 | lean | import tools.tactic logic
open tactic
definition mytac := apply @and.intro; apply @eq.refl
check @mytac
|
c7f89a919a2d764c1a15c698d37292a9735caa4f | 6432ea7a083ff6ba21ea17af9ee47b9c371760f7 | /src/Lean/Meta/Tactic/Refl.lean | f40d595d4dcd26198e2a638e88b0db137e5766f8 | [
"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,571 | 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.Meta.Reduce
import Lean.Meta.Tactic.Util
import Lean.Meta.Tactic.Apply
namespace Lean.Meta
private def useKernel (lhs rhs : Expr) : MetaM Bool... |
9f65768d2521ebf7245dbcac37d1471171e6ec11 | 8cae430f0a71442d02dbb1cbb14073b31048e4b0 | /src/algebra/order/ring/canonical.lean | c9a037c59efd26143eab9bec7453ee8c1598f21a | [
"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,103 | 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.order.ring.defs
import algebra.order.sub.canonical
import group_theory.group_action.defs
/-!
# Canoncially ordered ri... |
bc59405e3dc33c888f29f5c02af50c84f6b8d46d | 22e97a5d648fc451e25a06c668dc03ac7ed7bc25 | /src/data/vector2.lean | e69f2746ffbcb15619f40cc72f58731b4834be54 | [
"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 | 10,288 | lean | /-
Copyright (c) 2018 Mario Carneiro. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Mario Carneiro
Additional theorems about the `vector` type.
-/
import tactic.tauto
import data.vector
import data.list.nodup
import data.list.of_fn
import control.applicative
univers... |
8c543523e25921a3de6f6ad5fb0509c386a05324 | 0c1546a496eccfb56620165cad015f88d56190c5 | /tests/lean/vm_sorry.lean | 707dd3d23daf69eafa2c4f9fad71f4e688e73072 | [
"Apache-2.0"
] | permissive | Solertis/lean | 491e0939957486f664498fbfb02546e042699958 | 84188c5aa1673fdf37a082b2de8562dddf53df3f | refs/heads/master | 1,610,174,257,606 | 1,486,263,620,000 | 1,486,263,620,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 201 | lean | def half_baked : bool → ℕ
| tt := 42
| ff := sorry
vm_eval (half_baked tt)
vm_eval (half_baked ff)
meta def my_partial_fun : bool → ℕ
| tt := 42
| ff := undefined
vm_eval (my_partial_fun ff) |
22f281d24bc1038dd290b372bb906ac42e4f7641 | d9d511f37a523cd7659d6f573f990e2a0af93c6f | /src/data/polynomial/basic.lean | 91cf40c050d5e192fe2bbcfe0597c0b862f82f0c | [
"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 | 25,521 | lean | /-
Copyright (c) 2018 Chris Hughes. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Chris Hughes, Johannes Hölzl, Scott Morrison, Jens Wagemaker
-/
import algebra.monoid_algebra.basic
/-!
# Theory of univariate polynomials
This file defines `polynomial R`, the type of... |
ac4336222b6799e6782c264d2380b923949724bf | fa02ed5a3c9c0adee3c26887a16855e7841c668b | /src/number_theory/basic.lean | 6aebc8a795d51e34d65a9e8285e357e0c9b79626 | [
"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 | 1,422 | 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.ideal.basic
/-!
# Basic results in number theory
This file should contain basic results in number theory. So ... |
4bf5811649e372795117bc419a29d963521493ad | 5e42295de7f5bcdf224b94603a8ec29b17c2d367 | /norm_num.lean | 72d6a9ee78ec50790b31ca39de0583c45d9fe2a3 | [] | no_license | pnmadelaine/lean_polya | 9369e0d87dce773f91383bb58ac6fde0a00a1a40 | 1c62b0b3fa71044b0225ce28030627d251b08ebc | refs/heads/master | 1,590,161,172,243 | 1,515,010,019,000 | 1,515,010,019,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 11,588 | lean | /-
Copyright (c) 2017 Simon Hudon All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Simon Hudon, Mario Carneiro
Evaluating arithmetic expressions including *, +, -, ^, ≤
-/
import algebra.group_power data.rat tactic.interactive data.hash_map
universes u v w
... |
f996a25284ff9108278d3bb275e72f5534c7ef3c | 6432ea7a083ff6ba21ea17af9ee47b9c371760f7 | /tests/elabissues/overload_with_list_coercion.lean | 73665d4629e3131adc86b8a55e695402267ee747 | [
"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,554 | lean | structure Var : Type := (name : String)
instance Var.nameCoe : HasCoe String Var := ⟨Var.mk⟩
structure A : Type := (u : Unit)
structure B : Type := (u : Unit)
def a : A := A.mk ()
def b : B := B.mk ()
def Foo.chalk : A → List Var → Unit := λ _ _ => ()
def Bar.chalk : B → Unit := λ _ => ()
open Foo
open Bar
instanc... |
447b72bede0075ace4f30cc19927b75e509696ee | f1b175e38ffc5cc1c7c5551a72d0dbaf70786f83 | /data/fintype.lean | e0391cee8b2dc8a286af01254bd2dd1e2fa6f5e1 | [
"Apache-2.0"
] | permissive | mjendrusch/mathlib | df3ae884dd5ce38c7edf452bcbfd3baf4e3a6214 | 5c209edb7eb616a26f64efe3500f2b1ba95b8d55 | refs/heads/master | 1,585,663,284,800 | 1,539,062,055,000 | 1,539,062,055,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 26,521 | lean | /-
Copyright (c) 2017 Mario Carneiro. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Author: Mario Carneiro
Finite types.
-/
import data.finset algebra.big_operators data.array.lemmas data.vector2
universes u v
variables {α : Type*} {β : Type*} {γ : Type*}
/-- `fintype α` me... |
35e7d94783046921ca0b851ccfb0ea84d1ac9a04 | a45212b1526d532e6e83c44ddca6a05795113ddc | /src/category_theory/products.lean | afff60cd4358714bd7e539f11293d5c5194d4ddd | [
"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 | 5,817 | lean | -- Copyright (c) 2017 Scott Morrison. All rights reserved.
-- Released under Apache 2.0 license as described in the file LICENSE.
-- Authors: Stephen Morgan, Scott Morrison
import category_theory.functor_category
import category_theory.isomorphism
import tactic.interactive
namespace category_theory
universes v₁ v₂ v... |
91334b0be0908956b0ce63639f3d151fd0e26c04 | 57aec6ee746bc7e3a3dd5e767e53bd95beb82f6d | /stage0/src/Lean/Hygiene.lean | e526295cecd4f06c08bbc901b2ffa73b7091fc80 | [
"Apache-2.0"
] | permissive | collares/lean4 | 861a9269c4592bce49b71059e232ff0bfe4594cc | 52a4f535d853a2c7c7eea5fee8a4fa04c682c1ee | refs/heads/master | 1,691,419,031,324 | 1,618,678,138,000 | 1,618,678,138,000 | 358,989,750 | 0 | 0 | Apache-2.0 | 1,618,696,333,000 | 1,618,696,333,000 | null | UTF-8 | Lean | false | false | 4,845 | lean | /-
Copyright (c) 2019 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Sebastian Ullrich
-/
import Lean.Data.Name
import Lean.Data.Options
import Lean.Data.Format
namespace Lean
/- Remark: `MonadQuotation` class is part of the `Init` package and l... |
28cabe68885bd2e56e1b10334e274048e5cc8482 | 4727251e0cd73359b15b664c3170e5d754078599 | /src/category_theory/adjunction/comma.lean | 866d4189526d399b1e9e797598193faf78286b96 | [
"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 | 5,823 | 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.adjunction.basic
import category_theory.punit
import category_theory.structured_arrow
/-!
# Properties of comma categories relating to adjunctions... |
7d2722fdb1ea04d6afed2f55236e329db115584a | 02005f45e00c7ecf2c8ca5db60251bd1e9c860b5 | /src/number_theory/bernoulli.lean | 477758b040a4f95389cab5ba934772d2534ddfd4 | [
"Apache-2.0"
] | permissive | anthony2698/mathlib | 03cd69fe5c280b0916f6df2d07c614c8e1efe890 | 407615e05814e98b24b2ff322b14e8e3eb5e5d67 | refs/heads/master | 1,678,792,774,873 | 1,614,371,563,000 | 1,614,371,563,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 9,454 | lean | /-
Copyright (c) 2020 Johan Commelin. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Johan Commelin, Kevin Buzzard
-/
import data.rat
import data.fintype.card
import algebra.big_operators.nat_antidiagonal
import ring_theory.power_series.well_known
/-!
# Bernoulli numb... |
0f543ed115023ac2475b6b6649b141589a1deb81 | 302c785c90d40ad3d6be43d33bc6a558354cc2cf | /src/topology/separation.lean | 6dbaac35ae3fad27a1957fdfc597cbd1aa09872d | [
"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 | 43,448 | 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
Separation properties of topological spaces.
-/
import topology.subset_properties
import topology.connected
open set filter
open_locale topological_spa... |
c9564389afb94dad6148a722eeeb389c9a9add6e | 74addaa0e41490cbaf2abd313a764c96df57b05d | /Mathlib/order/directed_auto.lean | 8ba5660b682b02adc1b77b5196688947b9c20e76 | [] | no_license | AurelienSaue/Mathlib4_auto | f538cfd0980f65a6361eadea39e6fc639e9dae14 | 590df64109b08190abe22358fabc3eae000943f2 | refs/heads/master | 1,683,906,849,776 | 1,622,564,669,000 | 1,622,564,669,000 | 371,723,747 | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 3,470 | lean | /-
Copyright (c) 2017 Johannes Hölzl. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Author: Johannes Hölzl
-/
import Mathlib.PrePort
import Mathlib.Lean3Lib.init.default
import Mathlib.order.lattice
import Mathlib.data.set.basic
import Mathlib.PostPort
universes u w v u_1 l
... |
bcb0f4927a116f5c6c93c5cb265f8ac80b50d5ed | 022547453607c6244552158ff25ab3bf17361760 | /src/data/matrix/basic.lean | d486a285f3b39c9f220fe3334cbf5e85cfc0f247 | [
"Apache-2.0"
] | permissive | 1293045656/mathlib | 5f81741a7c1ff1873440ec680b3680bfb6b7b048 | 4709e61525a60189733e72a50e564c58d534bed8 | refs/heads/master | 1,687,010,200,553 | 1,626,245,646,000 | 1,626,245,646,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 46,947 | lean | /-
Copyright (c) 2018 Ellen Arlt. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Ellen Arlt, Blair Shi, Sean Leather, Mario Carneiro, Johan Commelin, Lu-Ming Zhang
-/
import algebra.big_operators.pi
import algebra.module.pi
import algebra.module.linear_map
import algeb... |
8dc806d90f7ab1cf0d60284ac8ebb31c7a9079d6 | 437dc96105f48409c3981d46fb48e57c9ac3a3e4 | /src/topology/metric_space/isometry.lean | b47dec50ebb4c5dcecd22c6745bd3556698ef394 | [
"Apache-2.0"
] | permissive | dan-c-k/mathlib | 08efec79bd7481ee6da9cc44c24a653bff4fbe0d | 96efc220f6225bc7a5ed8349900391a33a38cc56 | refs/heads/master | 1,658,082,847,093 | 1,589,013,201,000 | 1,589,013,201,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 14,815 | lean | /-
Copyright (c) 2018 Sébastien Gouëzel. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Isometries of emetric and metric spaces
Authors: Sébastien Gouëzel
-/
import topology.bounded_continuous_function
import topology.opens
/-!
# Isometries
We define isometries, i.e., maps be... |
77d3d44fce8dc529fd8b022415938685967b13ff | a0e23cfdd129a671bf3154ee1a8a3a72bf4c7940 | /src/Lean/Elab/BuiltinCommand.lean | 60fb54da484bc02737eebbcf3fd995b917136794 | [
"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,533 | 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.Elab.Command
namespace Lean.Elab.Command
private def addScope (isNewNamespace : Bool) (header : String) (newNamespace : Name) : CommandElabM U... |
7acef1287df83b99e5c0fbd5cddecc92d7b02f49 | cc060cf567f81c404a13ee79bf21f2e720fa6db0 | /lean/20170623-problem-with-exact.lean | b1c08d0b4aece5ce9691b7ad618fc3cd6cb24e22 | [
"Apache-2.0"
] | permissive | semorrison/proof | cf0a8c6957153bdb206fd5d5a762a75958a82bca | 5ee398aa239a379a431190edbb6022b1a0aa2c70 | refs/heads/master | 1,610,414,502,842 | 1,518,696,851,000 | 1,518,696,851,000 | 78,375,937 | 2 | 1 | null | null | null | null | UTF-8 | Lean | false | false | 801 | lean | -- Z : Type u,
-- a : Z,
-- _x α : Type u,
-- k : Z → α,
-- g f : α → _x,
-- w : (λ (x : Z), f (k x)) = λ (x : Z), g (k x)
-- ⊢ f (k a) = g (k a)
lemma {u} f
( Z : Type u )
( a : Z )
( α β : Type u )
( k : Z → α )
( g f : α → β )
( w : (λ (x : Z), f (k x)) = λ (x : Z), g (k x) )
: f (k a) = g (k ... |
f02344c90a957e8f89b11ded0bde993627695def | 8cae430f0a71442d02dbb1cbb14073b31048e4b0 | /src/measure_theory/measurable_space.lean | 98a586b1589a6600a9d44c73d918882f43237e32 | [
"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 | 68,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
-/
import data.prod.tprod
import group_theory.coset
import logic.equiv.fin
import measure_theory.measurable_space_def
import order.filter.small_sets
imp... |
c38ab7fea02a5a6ddc7fc0754fce4a81ace3d8cb | 7282d49021d38dacd06c4ce45a48d09627687fe0 | /tests/lean/univ.lean | f956c5ef9ac98ec377a2ea1c02f820d9e1ad4ab5 | [
"Apache-2.0"
] | permissive | steveluc/lean | 5a0b4431acefaf77f15b25bbb49294c2449923ad | 92ba4e8b2d040a799eda7deb8d2a7cdd3e69c496 | refs/heads/master | 1,611,332,256,930 | 1,391,013,244,000 | 1,391,013,244,000 | 16,361,079 | 1 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 1,023 | lean | universe M >= 1
universe U >= M + 1
definition TypeM := (Type M)
universe Z ≥ M+3
(*
local env = get_environment()
assert(env:get_universe_distance("Z", "M") == 3)
assert(not env:get_universe_distance("Z", "U"))
*)
scope
universe Z ≥ U + 10
(*
local env = get_environment()
assert(env:get_universe_distance(... |
b454509fc6ca968fe40629a88d6afc5e231a308a | 8cae430f0a71442d02dbb1cbb14073b31048e4b0 | /src/algebra/group_power/lemmas.lean | c01093f2fd6bf7b9b3d9e5fe90973522432e54ad | [
"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 | 36,100 | lean | /-
Copyright (c) 2015 Jeremy Avigad. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Jeremy Avigad, Robert Y. Lewis
-/
import algebra.invertible
import algebra.group_power.ring
import algebra.order.monoid.with_top
import data.nat.pow
import data.int.cast.lemmas
/-!
# L... |
afed08777aa1acef2e64fab8e5bca6109890d892 | 74addaa0e41490cbaf2abd313a764c96df57b05d | /Mathlib/ring_theory/witt_vector/teichmuller_auto.lean | 05e9a76810d65f9619b9610428d0e90a2b4e312b | [] | no_license | AurelienSaue/Mathlib4_auto | f538cfd0980f65a6361eadea39e6fc639e9dae14 | 590df64109b08190abe22358fabc3eae000943f2 | refs/heads/master | 1,683,906,849,776 | 1,622,564,669,000 | 1,622,564,669,000 | 371,723,747 | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 3,100 | lean | /-
Copyright (c) 2020 Johan Commelin. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Johan Commelin
-/
import Mathlib.PrePort
import Mathlib.Lean3Lib.init.default
import Mathlib.ring_theory.witt_vector.basic
import Mathlib.PostPort
universes u_1 u_2
namespace Mathli... |
a9afebf0fd8e931aa3045ac0aac3986e22893ebf | 4727251e0cd73359b15b664c3170e5d754078599 | /src/logic/embedding.lean | 73664fb25c63a47687a9b6e9928d19d3c0cbdeb8 | [
"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 | 17,858 | 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 data.fun_like.embedding
import data.pprod
import data.set.basic
import data.sigma.basic
import logic.equiv.basic
/-!
# Injective functions
-/
... |
6d6491f8f02a27104e5d420ea3875a8563babaaa | 6dc0c8ce7a76229dd81e73ed4474f15f88a9e294 | /tests/lean/run/matrix.lean | 70779d489310db3303b3d5512a1c98bbcb69b88f | [
"Apache-2.0"
] | permissive | williamdemeo/lean4 | 72161c58fe65c3ad955d6a3050bb7d37c04c0d54 | 6d00fcf1d6d873e195f9220c668ef9c58e9c4a35 | refs/heads/master | 1,678,305,356,877 | 1,614,708,995,000 | 1,614,708,995,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 1,998 | lean | /-
Helper classes for Lean 3 users
-/
class One (α : Type u) where
one : α
instance [OfNat α (natLit! 1)] : One α where
one := 1
instance [One α] : OfNat α (natLit! 1) where
ofNat := One.one
class Zero (α : Type u) where
zero : α
instance [OfNat α (natLit! 0)] : Zero α where
zero := 0
instance [Zero α] :... |
071e35a8f4e2fc6fa69de7dd81b041bb606390de | 6dc0c8ce7a76229dd81e73ed4474f15f88a9e294 | /src/Lean/Parser/Extra.lean | 11ecc64ae349f0c5af432fd913e810af2bca701a | [
"Apache-2.0"
] | permissive | williamdemeo/lean4 | 72161c58fe65c3ad955d6a3050bb7d37c04c0d54 | 6d00fcf1d6d873e195f9220c668ef9c58e9c4a35 | refs/heads/master | 1,678,305,356,877 | 1,614,708,995,000 | 1,614,708,995,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 6,050 | 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, Sebastian Ullrich
-/
import Lean.Parser.Extension
-- necessary for auto-generation
import Lean.PrettyPrinter.Parenthesizer
import Lean.PrettyPrinter.Formatter... |
5e521d9ef2326d32b254090c33b131b9fa08cde4 | 61969344e03ae2921cfb424ba24c3e2cbe5ba93d | /src/classequation.lean | d60bfb98ec75f7c16e1df822076ac3d6c6e0eed5 | [
"Apache-2.0"
] | permissive | cfbolz/lean-classequation | 60e43f61977838cb9ffc01ab996571048a961d66 | 9581c9047fa98a94e4fc06742a9e8e9bd46aba30 | refs/heads/master | 1,670,479,438,234 | 1,598,613,841,000 | 1,598,613,841,000 | 280,915,294 | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 6,455 | lean | import tactic
import data.fintype.basic
import group_theory.subgroup
import group_theory.coset
import group_theory.group_action
import group_theory.order_of_element
open_locale classical
open_locale big_operators
noncomputable theory
section finset
-- goes to data/finset/basic.lean
/-- Two sets are disjoint iff the... |
2a40a202cabbf2b09b9e475ec83c6e89f2d9c1af | 947b78d97130d56365ae2ec264df196ce769371a | /tests/lean/run/mixfix.lean | b2ec9fb46f83c08061d2d0e03d9416a3aa40be3d | [
"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 | 252 | lean | new_frontend
infix:65 " +' " => HasAdd.add
infix:70 " *' " => HasMul.mul
infixr:30 " OR " => Or
prefix:40 "NOT " => Not
theorem ex (a b c d : Nat) (p : Prop) : (NOT p OR a = b*'c +' c*'a OR a = b *' c) = (¬ p ∨ a = b*c + c*a ∨ a = b * c) :=
rfl
|
2e8b703ce91a0948fb46d62bacc4c4f9ddca94bc | fa02ed5a3c9c0adee3c26887a16855e7841c668b | /src/tactic/linarith/lemmas.lean | 48b6aa831421dfd9e5e18d9c9a2773ed4e20bdc0 | [
"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 | 3,803 | lean | /-
Copyright (c) 2020 Robert Y. Lewis. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Robert Y. Lewis
-/
import algebra.ordered_ring
import data.int.basic
import tactic.norm_num
/-!
# Lemmas for `linarith`
This file contains auxiliary lemmas that `linarith` uses to ... |
a361b92d8ed3b9b4c4b0649aad1d2ac73bbf7aec | cf39355caa609c0f33405126beee2739aa3cb77e | /tests/lean/run/tactic_mode_scope_bug.lean | a4c33e87172cfe937ca9a26c99439e29f640efbe | [
"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 | 301 | lean | example (p q : Prop) : p ∧ q → q ∧ p :=
begin
intro h,
have hp : p := h^.left,
have hq : q := h^.right,
exact ⟨hq, hp⟩
end
example (p q : Prop) (hp : q) (hq : p) : p ∧ q → q ∧ p :=
begin
intro h,
have hp : p := h^.left,
have hq : q := h^.right,
exact ⟨hq, hp⟩
end
|
02c7d7042559caa8d9d650c0fcd47848b9ce6f1b | b7f22e51856f4989b970961f794f1c435f9b8f78 | /library/theories/group_theory/basic.lean | abade3c0ab6c4e593770289ca26ec564921e6e06 | [
"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 | 39,807 | lean | /-
Copyright (c) 2016 Andrew Zipperer. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Andrew Zipperer, Jeremy Avigad
Basic group theory: subgroups, homomorphisms on a set, homomorphic images, cosets,
normal cosets and the normalizer, the kernel of a homomorphism, th... |
a70c9342e0c51d01aa4a2626c2004f99ab0df98e | b7f22e51856f4989b970961f794f1c435f9b8f78 | /tests/lean/run/830.lean | b5aeac8c383af9fbb3d26c7e2e1339b09992bd74 | [
"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 | 405 | lean | variable P : Prop
premise HP : P
example : P :=
have H : P, from HP,
H
example : P :=
have H : P, from HP,
show P, from H
example : P :=
have H : P, from HP,
by exact H
example : P :=
have H : P, from HP,
show P, by exact H
example : P :=
have H : P, from HP,
show P, begin exact H end
example : P :=
have H : P, f... |
32d3757600d02f2ebf531f17febeede8575bb8bf | 92b50235facfbc08dfe7f334827d47281471333b | /library/data/real/basic.lean | 5c1b7fb7c5bf28a5fcf3a525ff7dab78e4f6db9a | [
"Apache-2.0"
] | permissive | htzh/lean | 24f6ed7510ab637379ec31af406d12584d31792c | d70c79f4e30aafecdfc4a60b5d3512199200ab6e | refs/heads/master | 1,607,677,731,270 | 1,437,089,952,000 | 1,437,089,952,000 | 37,078,816 | 0 | 0 | null | 1,433,780,956,000 | 1,433,780,955,000 | null | UTF-8 | Lean | false | false | 35,644 | lean | /-
Copyright (c) 2015 Robert Y. Lewis. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Author: Robert Y. Lewis
The real numbers, constructed as equivalence classes of Cauchy sequences of rationals.
This construction follows Bishop and Bridges (1985).
To do:
o Break positive na... |
e332271ccd0a0841acc7d2d646da1a0211f5f535 | 1dd482be3f611941db7801003235dc84147ec60a | /src/ring_theory/noetherian.lean | 3fa73fafaae51a7c8f48453a237b5a94f1e0b8d0 | [
"Apache-2.0"
] | permissive | sanderdahmen/mathlib | 479039302bd66434bb5672c2a4cecf8d69981458 | 8f0eae75cd2d8b7a083cf935666fcce4565df076 | refs/heads/master | 1,587,491,322,775 | 1,549,672,060,000 | 1,549,672,060,000 | 169,748,224 | 0 | 0 | Apache-2.0 | 1,549,636,694,000 | 1,549,636,694,000 | null | UTF-8 | Lean | false | false | 16,906 | lean | /-
Copyright (c) 2018 Mario Carneiro and Kevin Buzzard. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Mario Carneiro, Kevin Buzzard
-/
import data.equiv.algebra
import data.polynomial
import linear_algebra.linear_combination
import ring_theory.ideal_operations
import... |
027dbe1be039e6cdea6c0fc8c05e9fc1cae1df54 | b7f22e51856f4989b970961f794f1c435f9b8f78 | /tests/lean/run/blast_simp4.lean | 0b5d5e89c14de2f6fca70965c9ac6b6a19b751f1 | [
"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 | 311 | lean | import data.nat
open nat
constant f : nat → nat
definition g (a : nat) := a
example (a b : nat) : a + 0 = 0 + g b → f (f b) = f (f a) :=
suppose a + 0 = 0 + g b,
assert a = b, by unfold g at *; simp,
by simp
attribute g [reducible]
example (a b : nat) : a + 0 = 0 + g b → f (f b) = f (f a) :=
by simp
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.