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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
e3d39a61a2b026035c43b2473c31709d29ec6e3f | cf39355caa609c0f33405126beee2739aa3cb77e | /tests/lean/run/type_equations.lean | 45529bce7b3971d1386b82e3f1e149069580dd42 | [
"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 | 1,582 | lean | open nat
inductive Expr
| zero : Expr
| one : Expr
| add : Expr → Expr → Expr
namespace Expr
inductive direct_subterm : Expr → Expr → Prop
| add_1 : ∀ e₁ e₂ : Expr, direct_subterm e₁ (add e₁ e₂)
| add_2 : ∀ e₁ e₂ : Expr, direct_subterm e₂ (add e₁ e₂)
theorem direct_subterm_wf : well_founded direct_subterm :=
begi... |
1bc1ff6512c0721913523d3b5e93f9cf483a486e | 26b8b0964ca8e1c2e203585ba5940f83fe05e48a | /src/tidy/congr_struct.lean | 3013260d118c30122ba99b17e7aa72f2018599eb | [] | 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 | 3,288 | lean | -- Copyright (c) 2017 Scott Morrison. All rights reserved.
-- Released under Apache 2.0 license as described in the file LICENSE.
-- Authors: Scott Morrison
import .applicable
open tactic
namespace tactic
open expr
/-- Given a fully applied structure type `ty` with fields `f1`...`fn`, synthesize the proof
... |
9b1a37bbbea16c8e2832491353a55e35e7e740d0 | cf39355caa609c0f33405126beee2739aa3cb77e | /tests/lean/print_meta.lean | 9fda7678f55975abc05364878c6401f7168edd5b | [
"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 | 20 | lean | #print tactic.intro
|
87be2cb8db72dba8e27cce81a8448760d55720d0 | 302c785c90d40ad3d6be43d33bc6a558354cc2cf | /src/data/padics/padic_numbers.lean | c8ff40e5667e47073f9e8e595c1846430b1301a0 | [
"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 | 38,158 | lean | /-
Copyright (c) 2018 Robert Y. Lewis. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Robert Y. Lewis
-/
import data.padics.padic_norm
import analysis.normed_space.basic
/-!
# p-adic numbers
This file defines the p-adic numbers (rationals) `ℚ_p` as
the completion of... |
0aeb21ef394d5fdf8e90b62b3b8e2c7fd8407f21 | 4727251e0cd73359b15b664c3170e5d754078599 | /src/category_theory/limits/constructions/finite_products_of_binary_products.lean | d0d2128b0e85603e6f5048d7c59f92b866573f3f | [
"Apache-2.0"
] | permissive | Vierkantor/mathlib | 0ea59ac32a3a43c93c44d70f441c4ee810ccceca | 83bc3b9ce9b13910b57bda6b56222495ebd31c2f | refs/heads/master | 1,658,323,012,449 | 1,652,256,003,000 | 1,652,256,003,000 | 209,296,341 | 0 | 1 | Apache-2.0 | 1,568,807,655,000 | 1,568,807,655,000 | null | UTF-8 | Lean | false | false | 13,685 | lean | /-
Copyright (c) 2020 Bhavik Mehta. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Bhavik Mehta
-/
import category_theory.limits.preserves.shapes.binary_products
import category_theory.limits.preserves.shapes.products
import category_theory.limits.shapes.binary_product... |
6048bb9a95638c33fff470f3c5c222cd0ff557d8 | 5aaed23ab7202c675981a8ecc309d1f3ea53fa63 | /src/2012_q3.lean | 666c343dd28856b9481cc8f12dd2099adfc79772 | [] | no_license | jalex-stark/mathcamp-QQuiz-lean | d1cedba0ae1ff078022c6b9f6e5090b97ee4cc27 | fd17c0cfe6c7a0b2f283cf33bed1403279c8e04a | refs/heads/master | 1,668,476,432,896 | 1,594,602,972,000 | 1,594,602,972,000 | 279,175,371 | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 2,369 | lean | import tactic
import data.nat.modeq
noncomputable theory
open_locale classical
-- Let p be an odd prime.
variables {p : ℕ} [fact p.prime]
-- A group of p campers sit around a circle,
-- and are labeled with the integers 1,2,...,p in clockwise order.
-- The camper with label 1 yells out the number 1.
-- The camp... |
1d4a4a282e2fcde3ac1ec33a410b17a52427da56 | 4fa161becb8ce7378a709f5992a594764699e268 | /src/analysis/calculus/fderiv.lean | 4094b71f7ccb695171686fa567f53030ecdf564d | [
"Apache-2.0"
] | permissive | laughinggas/mathlib | e4aa4565ae34e46e834434284cb26bd9d67bc373 | 86dcd5cda7a5017c8b3c8876c89a510a19d49aad | refs/heads/master | 1,669,496,232,688 | 1,592,831,995,000 | 1,592,831,995,000 | 274,155,979 | 0 | 0 | Apache-2.0 | 1,592,835,190,000 | 1,592,835,189,000 | null | UTF-8 | Lean | false | false | 102,513 | lean | /-
Copyright (c) 2019 Jeremy Avigad. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Jeremy Avigad, Sébastien Gouëzel, Yury Kudryashov
-/
import analysis.calculus.tangent_cone
/-!
# The Fréchet derivative
Let `E` and `F` be normed spaces, `f : E → F`, and `f' : E →L[�... |
20bc2359e71bd58ed0c3571780feb8351467a568 | 246309748072bf9f8da313401699689ebbecd94d | /src/group_theory/submonoid/operations.lean | 391406e374baf765ada903c896d272d9660656bc | [
"Apache-2.0"
] | permissive | YJMD/mathlib | b703a641e5f32a996f7842f7c0043bab2b462ee2 | 7310eab9fa8c1b1229dca42682f1fa6bfb7dbbf9 | refs/heads/master | 1,670,714,479,314 | 1,599,035,445,000 | 1,599,035,445,000 | 292,279,930 | 0 | 0 | null | 1,599,050,561,000 | 1,599,050,560,000 | null | UTF-8 | Lean | false | false | 19,727 | lean | import group_theory.submonoid.basic
import data.equiv.mul_add
import algebra.group.prod
import algebra.group.inj_surj
/-!
# Operations on `submonoid`s
In this file we define various operations on `submonoid`s and `monoid_hom`s.
## Main definitions
### Conversion between multiplicative and additive definitions
* `s... |
20de416589c8cae7429d31ffa42375343b4adc73 | e0b0b1648286e442507eb62344760d5cd8d13f2d | /stage0/src/Lean/Elab/Match.lean | 1f93e5a1c5f3e42f5675d55eab15d7e1f3cdbb26 | [
"Apache-2.0"
] | permissive | MULXCODE/lean4 | 743ed389e05e26e09c6a11d24607ad5a697db39b | 4675817a9e89824eca37192364cd47a4027c6437 | refs/heads/master | 1,682,231,879,857 | 1,620,423,501,000 | 1,620,423,501,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 53,114 | lean | /-
Copyright (c) 2020 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Leonardo de Moura
-/
import Lean.Util.CollectFVars
import Lean.Meta.Match.MatchPatternAttr
import Lean.Meta.Match.Match
import Lean.Meta.SortLocalDecls
import Lean.Meta.Generali... |
dd2112a21644b36b8e4afcbcae3076a4f20c99de | 0845ae2ca02071debcfd4ac24be871236c01784f | /tests/compiler/strictOrSimp.lean | bccd4f1a2b6b0d05a24bfbd8f63083c635278b54 | [
"Apache-2.0"
] | permissive | GaloisInc/lean4 | 74c267eb0e900bfaa23df8de86039483ecbd60b7 | 228ddd5fdcd98dd4e9c009f425284e86917938aa | refs/heads/master | 1,643,131,356,301 | 1,562,715,572,000 | 1,562,715,572,000 | 192,390,898 | 0 | 0 | null | 1,560,792,750,000 | 1,560,792,749,000 | null | UTF-8 | Lean | false | false | 223 | lean | partial def spin : Nat → Bool
| n := spin (n)
@[inline] def C : Nat := 0
def f (b : Nat) :=
if strictOr (C == 0) (spin b) then "hello"
else "world"
def main (xs : List String) : IO Unit :=
IO.println (f xs.head.toNat)
|
5e151eece9cea8c2d6b66c93a637beef7ab732e6 | 74addaa0e41490cbaf2abd313a764c96df57b05d | /Mathlib/ring_theory/polynomial/scale_roots_auto.lean | e58b3fe18f36cbdc311b34d214067930a6d523c3 | [] | 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,692 | lean | /-
Copyright (c) 2020 Anne Baanen. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Anne Baanen, Devon Tuma
-/
import Mathlib.PrePort
import Mathlib.Lean3Lib.init.default
import Mathlib.ring_theory.polynomial.basic
import Mathlib.ring_theory.non_zero_divisors
import Math... |
528feaab3d678bb4d1eab85c7a865a4465b6d505 | 3863d2564418bccb1859e057bf5a4ef240e75fd7 | /hott/types/univ.hlean | f60e2fdc0e4ca2b6989d54cfab339893c213c75a | [
"Apache-2.0"
] | permissive | JacobGross/lean | 118bbb067ff4d4af48a266face2c7eb9868fa91c | eb26087df940c54337cb807b4bc6d345d1fc1085 | refs/heads/master | 1,582,735,011,532 | 1,462,557,826,000 | 1,462,557,826,000 | 46,451,196 | 0 | 0 | null | 1,462,557,826,000 | 1,447,885,161,000 | C++ | UTF-8 | Lean | false | false | 4,920 | 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
Theorems about the universe
-/
-- see also init.ua
import .bool .trunc .lift .pullback
open is_trunc bool lift unit eq pi equiv sum sigma fiber prod pullback is_e... |
fa7ea32d23ae2d1c61f93385f37bcc6bb94f52c8 | e514e8b939af519a1d5e9b30a850769d058df4e9 | /src/tactic/rewrite_search/tracer/default.lean | 9a34db99c5b6293c85e5cdb3bd6bd57cbd8dada7 | [] | no_license | semorrison/lean-rewrite-search | dca317c5a52e170fb6ffc87c5ab767afb5e3e51a | e804b8f2753366b8957be839908230ee73f9e89f | refs/heads/master | 1,624,051,754,485 | 1,614,160,817,000 | 1,614,160,817,000 | 162,660,605 | 0 | 1 | null | null | null | null | UTF-8 | Lean | false | false | 26 | lean | import .unit
import .graph |
31b7ad23e2f7697ee5a5c5e3b6aaed8225e1d279 | 8cae430f0a71442d02dbb1cbb14073b31048e4b0 | /src/control/lawful_fix.lean | 0c1a46d66ca99e262ba55a6e0ff07c8face6ca95 | [
"Apache-2.0"
] | permissive | leanprover-community/mathlib | 56a2cadd17ac88caf4ece0a775932fa26327ba0e | 442a83d738cb208d3600056c489be16900ba701d | refs/heads/master | 1,693,584,102,358 | 1,693,471,902,000 | 1,693,471,902,000 | 97,922,418 | 1,595 | 352 | Apache-2.0 | 1,694,693,445,000 | 1,500,624,130,000 | Lean | UTF-8 | Lean | false | false | 7,808 | 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.stream.init
import tactic.apply
import control.fix
import order.omega_complete_partial_order
/-!
# Lawful fixed point operators
> THIS FILE IS SYNCHRONIZED WI... |
d0456aee0395a3481387850f3aa17c9c9052e5f3 | 75db7e3219bba2fbf41bf5b905f34fcb3c6ca3f2 | /hott/init/default.hlean | f083de41e7594ff8fe8f2805b375a65b1177f492 | [
"Apache-2.0"
] | permissive | jroesch/lean | 30ef0860fa905d35b9ad6f76de1a4f65c9af6871 | 3de4ec1a6ce9a960feb2a48eeea8b53246fa34f2 | refs/heads/master | 1,586,090,835,348 | 1,455,142,203,000 | 1,455,142,277,000 | 51,536,958 | 1 | 0 | null | 1,455,215,811,000 | 1,455,215,811,000 | null | UTF-8 | Lean | false | false | 973 | hlean | /-
Copyright (c) 2014 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Leonardo de Moura, Jakob von Raumer, Floris van Doorn
-/
prelude
import init.datatypes init.reserved_notation init.tactic init.logic
import init.bool init.num init.relation ini... |
cfb37a732f164c274b634fb3adad9bf45e652276 | 3f7026ea8bef0825ca0339a275c03b911baef64d | /test/examples.lean | 5861909dc73d8d531dfe683f70c9556c6b5ff150 | [
"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 | 4,801 | lean | import tactic data.stream.basic data.set.basic data.finset data.multiset
category.traversable.derive
open tactic
universe u
variable {α : Type}
example (s t u : set ℕ) (h : s ⊆ t ∩ u) (h' : u ⊆ s) : u ⊆ s → true :=
begin
dunfold has_subset.subset has_inter.inter at *,
-- trace_state,
intro1, triv
end
ex... |
e37548cbaeb3fa88fcbe219fd045920e2ee9303b | fa02ed5a3c9c0adee3c26887a16855e7841c668b | /src/geometry/manifold/algebra/structures.lean | 6cf64d15133c59813513d369442ed56fcf678012 | [
"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 | 2,754 | 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.lie_group
/-!
# Smooth structures
In this file we define smooth structures that build on Lie groups. We prefer using the term smo... |
043ada1cd4bf2ee97d3d11ed64441324fa738581 | 57c233acf9386e610d99ed20ef139c5f97504ba3 | /src/category_theory/subobject/mono_over.lean | 8e33233d2b6e53735f325c6ce6e19d274347c7bb | [
"Apache-2.0"
] | permissive | robertylewis/mathlib | 3d16e3e6daf5ddde182473e03a1b601d2810952c | 1d13f5b932f5e40a8308e3840f96fc882fae01f0 | refs/heads/master | 1,651,379,945,369 | 1,644,276,960,000 | 1,644,276,960,000 | 98,875,504 | 0 | 0 | Apache-2.0 | 1,644,253,514,000 | 1,501,495,700,000 | Lean | UTF-8 | Lean | false | false | 13,488 | lean | /-
Copyright (c) 2020 Bhavik Mehta. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Bhavik Mehta, Scott Morrison
-/
import category_theory.currying
import category_theory.limits.over
import category_theory.limits.shapes.images
import category_theory.adjunction.reflectiv... |
ff9c8424866cc3da6a2c6c97b0d1384fab9853bd | 9dc8cecdf3c4634764a18254e94d43da07142918 | /src/analysis/locally_convex/with_seminorms.lean | 6afbaf2ddc9d28c46775e2fd6a3af0596abad34d | [
"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 | 20,571 | lean | /-
Copyright (c) 2022 Moritz Doll. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Moritz Doll, Anatole Dedecker
-/
import analysis.seminorm
import analysis.locally_convex.bounded
/-!
# Topology induced by a family of seminorms
## Main definitions
* `seminorm_family... |
e0dfef8c4b22112134efe173d1fdac9b4993e7eb | c777c32c8e484e195053731103c5e52af26a25d1 | /src/field_theory/krull_topology.lean | 0901d5e87b26ae24dcc14cc06abf6db55bec7379 | [
"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 | 13,096 | lean | /-
Copyright (c) 2022 Sebastian Monnet. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Sebastian Monnet
-/
import field_theory.galois
import topology.algebra.filter_basis
import topology.algebra.open_subgroup
import tactic.by_contra
/-!
# Krull topology
We define th... |
c3557b8970aefaae0e62bd073f83852d88fd9d86 | 77c5b91fae1b966ddd1db969ba37b6f0e4901e88 | /src/data/polynomial/ring_division.lean | 1290e691633f7e52069179cdd6da56891f1d25f4 | [
"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 | 27,849 | 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, Johan Commelin
-/
import data.polynomial.algebra_map
import data.polynomial.degree.lemmas
import data.polynomial.div
/-!
# ... |
49dca3745d952123be40d893f53ca008c9883d64 | 8d65764a9e5f0923a67fc435eb1a5a1d02fd80e3 | /src/order/filter/bases.lean | 2e9640e39be985f1353b228c3e8512a4aaedc38c | [
"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 | 37,160 | lean | /-
Copyright (c) 2020 Yury Kudryashov. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Yury Kudryashov, Johannes Hölzl, Mario Carneiro, Patrick Massot
-/
import order.filter.basic
import data.set.countable
/-!
# Filter bases
A filter basis `B : filter_basis α` on a ty... |
d8fdb71c0a11a91aab1a9b4d92ff6214798f78f7 | a45212b1526d532e6e83c44ddca6a05795113ddc | /src/analysis/normed_space/deriv.lean | 80fc8b49f9e94b7a1b0aac299ace64097ad2bf29 | [
"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 | 14,819 | lean | /-
Copyright (c) 2019 Jeremy Avigad. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Author: Jeremy Avigad
The Fréchet derivative.
Let `E` and `F` be normed spaces, `f : E → F`, and `f' : E →L[k] F` a
bounded k-linear map. Then
`has_fderiv_at_within f f' x s`
says that `f`... |
c825d299c46e0121a3fbc7f415342463a13e84d5 | 5ee26964f602030578ef0159d46145dd2e357ba5 | /src/r_o_d_completion.lean | 3de1a4cfded067bde186eabff61bfd99ba58ccfc | [
"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 | 10,255 | lean | -- rational open data completion stuff.
-- In this file we show that r_o_d_completion r := A<T/s>
-- satisfies the property that if v in D(T1,s1) ⊂ D(T2,s2) then
-- the maps A<Ti/si> - > K_v-hat commute with the restriction map.
-- We then, assuming D(T,s) are a basis for Spa(A), show that
-- we can get maps O_X(U) -... |
fd0b502433f0c992bae8262d7dba33c99c3649ae | 7cef822f3b952965621309e88eadf618da0c8ae9 | /src/order/boolean_algebra.lean | 06e487b50dbc4dcc17f38e62c5a793a5d891454c | [
"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 | 3,820 | 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
Type class hierarchy for Boolean algebras.
-/
import order.bounded_lattice
set_option old_structure_cmd true
namespace lattice
universes u
variables {α : Type u} {w x ... |
1b530666f49cf9b14f73cebe76dda3a265f182fa | 55c7fc2bf55d496ace18cd6f3376e12bb14c8cc5 | /src/data/finset/fold.lean | fb2d29741216e5ee0b44eea354885c2e0da15f45 | [
"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 | 5,402 | 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.finset.basic
import data.multiset.fold
/-!
# The fold operation for a commutative associative operation over a finset.
-/
namespace finset
open multiset
... |
d8df0dc18b639a7db8da9f13f1017fcc6bf2a683 | 947b78d97130d56365ae2ec264df196ce769371a | /src/Lean/InternalExceptionId.lean | 49a78026ab9f511a91a3bc982d0edab93c45f659 | [
"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 | 1,258 | 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
-/
namespace Lean
structure InternalExceptionId :=
(idx : Nat := 0)
instance : Inhabited InternalExceptionId := ⟨{}⟩
instance : HasBeq InternalExceptionId :=... |
69a20826614bd6d15d65cc01af451b031ff081e7 | 680b0d1592ce164979dab866b232f6fa743f2cc8 | /library/data/list/sort.lean | 0584a8fe96470c2fe2623b8911ee98436bc5665f | [
"Apache-2.0"
] | permissive | syohex/lean | 657428ab520f8277fc18cf04bea2ad200dbae782 | 081ad1212b686780f3ff8a6d0e5f8a1d29a7d8bc | refs/heads/master | 1,611,274,838,635 | 1,452,668,188,000 | 1,452,668,188,000 | 49,562,028 | 0 | 0 | null | 1,452,675,604,000 | 1,452,675,602,000 | null | UTF-8 | Lean | false | false | 7,579 | lean | /-
Copyright (c) 2015 Leonardo de Moura. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Leonardo de Moura
Naive sort for lists
-/
import data.list.comb data.list.set data.list.perm data.list.sorted logic.connectives algebra.order
namespace list
open decidable nat
va... |
c57835732cf077901ace1d2b1f06b0fce53aeed9 | a0e23cfdd129a671bf3154ee1a8a3a72bf4c7940 | /src/Lean/Meta/UnificationHint.lean | 5c17aa6722996e1ab8723f180c2c9bdd3d0160d4 | [
"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 | 5,407 | 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.ScopedEnvExtension
import Lean.Util.Recognizers
import Lean.Meta.DiscrTree
import Lean.Meta.LevelDefEq
import Lean.Meta.SynthInstance
namespace... |
c03b6d8b7eed72e6f58dec947702e383bb21286a | 8b9f17008684d796c8022dab552e42f0cb6fb347 | /hott/hit/trunc.hlean | 3bf63c008838c4799cc8623c601e5044643a5d54 | [
"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 | 680 | hlean | /-
Copyright (c) 2015 Floris van Doorn. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Module: hit.trunc
Authors: Floris van Doorn
n-truncation of types.
Ported from Coq HoTT
-/
/- The hit n-truncation is primitive, declared in init.hit. -/
import types.sigma
open is_trun... |
0a5346a0a4525921c31fe260f1f37654fc44645e | 8cae430f0a71442d02dbb1cbb14073b31048e4b0 | /src/analysis/special_functions/exp.lean | 24a73fee4cb2afbd51e507db935eecfe78a47964 | [
"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,244 | 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
-/
import analysis.asymptotics.theta
import analysis.complex.basic
import analysis.specific_limits.normed
/-!
# Complex and ... |
5ddbf1e147b4d92442da61ec078353c50d52678b | 2eab05920d6eeb06665e1a6df77b3157354316ad | /src/algebra/group_power/basic.lean | 0a03c45def955e7044aef88fdf25b58ab1b9712a | [
"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 | 17,613 | 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 data.nat.basic
import tactic.monotonicity.basic
import group_theory.group_action.defs
/-!
# Power operations on monoids and groups
The power o... |
921bf53901f366b594d6bf932355528f5be2b8c9 | 3cb7d30bb276fa1e8fe9ca7b979f53cbfafb2dbb | /leanpkg/leanpkg/resolve.lean | 9e88343532dc2c8bf7c167900d73e03074d99979 | [
"Apache-2.0"
] | permissive | andrejtokarcik/lean | e4148f69d020385c4fc07662b77792681b26c4d9 | ceacfa7445953cbc8860ddabc55407430a9ca5c3 | refs/heads/master | 1,584,800,445,031 | 1,529,598,225,000 | 1,529,598,469,000 | 138,652,902 | 0 | 0 | Apache-2.0 | 1,529,962,767,000 | 1,529,962,767,000 | null | UTF-8 | Lean | false | false | 3,843 | lean | /-
Copyright (c) 2017 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Author: Gabriel Ebner
-/
import leanpkg.manifest system.io leanpkg.proc leanpkg.git
namespace leanpkg
def assignment := list (string × string)
namespace assignment
def empty : assignm... |
fa8c2d3b632416fe8f84e260c98971bbcea6c82e | a45212b1526d532e6e83c44ddca6a05795113ddc | /src/data/semiquot.lean | eade815ccb6ae2a669950217a6228feba6fc4c2c | [
"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 | 6,935 | 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 data type for semiquotients, which are classically equivalent to
nonempty sets, but are useful for programming; the idea is that
a semiquotient set `S` represents som... |
b2880926dfbf3e361a65275f433074eade22ab5d | 94637389e03c919023691dcd05bd4411b1034aa5 | /src/inClassNotes/type_library/nat.lean | 98dd41e06d4e2ea2c52ba4ff6d9e457173d82f53 | [] | no_license | kevinsullivan/complogic-s21 | 7c4eef2105abad899e46502270d9829d913e8afc | 99039501b770248c8ceb39890be5dfe129dc1082 | refs/heads/master | 1,682,985,669,944 | 1,621,126,241,000 | 1,621,126,241,000 | 335,706,272 | 0 | 38 | null | 1,618,325,669,000 | 1,612,374,118,000 | Lean | UTF-8 | Lean | false | false | 91 | lean | namespace hidden
inductive nat : Type
| zero : nat
| succ (n' : nat) : nat
end hidden |
f2703ac4b90f698f462d09001d33949905ba1fb4 | 9dc8cecdf3c4634764a18254e94d43da07142918 | /src/analysis/normed_space/riesz_lemma.lean | ac4c101c7b26d05b90685677699163703f45ed77 | [
"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 | 5,374 | lean | /-
Copyright (c) 2019 Jean Lo. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Jean Lo, Yury Kudryashov
-/
import analysis.normed_space.basic
import topology.metric_space.hausdorff_distance
/-!
# Applications of the Hausdorff distance in normed spaces
Riesz's lemma, s... |
93b8f831432ba588f1bfde8281d53d0cb607c883 | 8cae430f0a71442d02dbb1cbb14073b31048e4b0 | /src/data/list/count.lean | 5660878757f146a920ad63f7538c11eb5b12dce8 | [
"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 | 10,131 | lean | /-
Copyright (c) 2014 Parikshit Khanna. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Parikshit Khanna, Jeremy Avigad, Leonardo de Moura, Floris van Doorn, Mario Carneiro
-/
import data.list.big_operators.basic
/-!
# Counting in lists
> THIS FILE IS SYNCHRONIZED WIT... |
25c9820cc21605045e9f1b8d820a70e8731dd6fa | a9fe717b93ccfa4b2e64faeb24f96dfefb390240 | /eqelim.lean | ae8da261f5d9ecba7fdab6eb0d732152a8ed2926 | [] | 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,429 | lean | import .ee .int
variables {α β : Type}
open tactic
meta structure ee_state :=
(eqs : list term)
(les : list term)
(ees : list ee)
@[reducible] meta def eqelim := state_t ee_state tactic
meta def abort {α : Type} : eqelim α := ⟨λ x, failed⟩
private meta def mk_eqelim_state (eqs les : list term) : ... |
d0eb8c9de93b9e61b3d0dee765f450dbd78637f6 | 618003631150032a5676f229d13a079ac875ff77 | /src/category_theory/discrete_category.lean | b31d74023d41fb448b41101c5e082f5a62663379 | [
"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 | 3,125 | 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, Floris van Doorn
-/
import data.ulift
import data.fintype.basic
import category_theory.opposites
namespace category_theory
universes v₁ v₂ u₁ u₂ -- de... |
a8044bdf3cec96ab5b4199351f2db2dda0db3eef | d406927ab5617694ec9ea7001f101b7c9e3d9702 | /src/analysis/box_integral/partition/basic.lean | 1dbd30f876aa90e2608337d59abdeb0a2cf0c0e6 | [
"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,243 | lean | /-
Copyright (c) 2021 Yury Kudryashov. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Yury Kudryashov
-/
import analysis.box_integral.box.basic
/-!
# Partitions of rectangular boxes in `ℝⁿ`
In this file we define (pre)partitions of rectangular boxes in `ℝⁿ`. A parti... |
bf02f39c69eece55e427e74766c1fa1810a2f576 | d1a52c3f208fa42c41df8278c3d280f075eb020c | /src/Lean/Meta/Tactic/ElimInfo.lean | bb4dcc2c7ed3c2359d69e27e0024b174fa1f9d3e | [
"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 | 3,820 | lean | /-
Copyright (c) 2020 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Leonardo de Moura
-/
import Lean.Meta.Basic
import Lean.Meta.Check
namespace Lean.Meta
structure ElimAltInfo where
name : Name
numFields : Nat
deriving Repr
struct... |
022faca9c4099f1fc58749ed0088edac0b720f0b | 22e97a5d648fc451e25a06c668dc03ac7ed7bc25 | /src/ring_theory/principal_ideal_domain.lean | a4554f8ebb45baa9d1edfc20e1b13d28f62b6573 | [
"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,437 | lean | /-
Copyright (c) 2018 Chris Hughes. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Author: Chris Hughes, Morenikeji Neri
-/
import ring_theory.noetherian
import ring_theory.unique_factorization_domain
universes u v
variables {R : Type u} {M : Type v}
open set function
open su... |
dde50996c024354008bfd57bf8d48e8fa060bf7b | bb31430994044506fa42fd667e2d556327e18dfe | /src/linear_algebra/isomorphisms.lean | b77b3abdc038bf395a233a9b39bc458aaaecdb71 | [
"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 | 6,401 | lean | /-
Copyright (c) 2017 Johannes Hölzl. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Johannes Hölzl, Mario Carneiro, Kevin Buzzard, Yury Kudryashov
-/
import linear_algebra.quotient
/-!
# Isomorphism theorems for modules.
* The Noether's first, second, and third isom... |
c65a8f694fa3bd6fa8c4ee0d1d4123d90b845204 | 947fa6c38e48771ae886239b4edce6db6e18d0fb | /src/topology/metric_space/polish.lean | d30db5f66922496d15001a66f6a87090269fea23 | [
"Apache-2.0"
] | permissive | ramonfmir/mathlib | c5dc8b33155473fab97c38bd3aa6723dc289beaa | 14c52e990c17f5a00c0cc9e09847af16fabbed25 | refs/heads/master | 1,661,979,343,526 | 1,660,830,384,000 | 1,660,830,384,000 | 182,072,989 | 0 | 0 | null | 1,555,585,876,000 | 1,555,585,876,000 | null | UTF-8 | Lean | false | false | 22,571 | lean | /-
Copyright (c) 2022 Sébastien Gouëzel. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Sébastien Gouëzel
-/
import analysis.normed_space.basic
import topology.metric_space.pi_nat
import topology.metric_space.isometry
import topology.metric_space.gluing
/-!
# Polish s... |
65eea59da7e339f685343384c9c4165161cfabd6 | 35677d2df3f081738fa6b08138e03ee36bc33cad | /src/tactic/show_term.lean | 5bed2854c91545ee0c3b46668d060aa8f9ced606 | [
"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 | 1,213 | 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 tactic.core
import tactic.tauto
open tactic
namespace tactic.interactive
/--
`show_term { tac }` runs the tactic `tac`,
and then prints the term that was co... |
013389e7ebf4c714571fa43b253662f6b0483490 | 31f556cdeb9239ffc2fad8f905e33987ff4feab9 | /src/Init/Core.lean | 9b2117be7012bcf023ca745fe7c92d0e2d6e7b78 | [
"Apache-2.0",
"LLVM-exception",
"NCSA",
"LGPL-3.0-only",
"LicenseRef-scancode-inner-net-2.0",
"BSD-3-Clause",
"LGPL-2.0-or-later",
"Spencer-94",
"LGPL-2.1-or-later",
"HPND",
"LicenseRef-scancode-pcre",
"ISC",
"LGPL-2.1-only",
"LicenseRef-scancode-other-permissive",
"SunPro",
"CMU-Mach"... | permissive | tobiasgrosser/lean4 | ce0fd9cca0feba1100656679bf41f0bffdbabb71 | ebdbdc10436a4d9d6b66acf78aae7a23f5bd073f | refs/heads/master | 1,673,103,412,948 | 1,664,930,501,000 | 1,664,930,501,000 | 186,870,185 | 0 | 0 | Apache-2.0 | 1,665,129,237,000 | 1,557,939,901,000 | Lean | UTF-8 | Lean | false | false | 65,557 | 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
import Init.Prelude
import Init.SizeOf
set_option linter.missingDocs true -- keep it documented
univers... |
e34bd29dc59895edd51213c4c4d4f3c746a05342 | 5412d79aa1dc0b521605c38bef9f0d4557b5a29d | /stage0/src/Lean/Meta/Tactic/Simp/Types.lean | df8105609cfc47578ef3d033b421320b9f491714 | [
"Apache-2.0"
] | permissive | smunix/lean4 | a450ec0927dc1c74816a1bf2818bf8600c9fc9bf | 3407202436c141e3243eafbecb4b8720599b970a | refs/heads/master | 1,676,334,875,188 | 1,610,128,510,000 | 1,610,128,521,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 2,077 | lean | /-
Copyright (c) 2020 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Leonardo de Moura
-/
import Lean.Meta.AppBuilder
import Lean.Meta.Tactic.Simp.SimpLemmas
namespace Lean.Meta
namespace Simp
structure Result where
expr : Expr
proof? : O... |
d5fff81d210c192b77854b67ade00ed00f407300 | 8cae430f0a71442d02dbb1cbb14073b31048e4b0 | /test/monotonicity/test_cases.lean | 16d174d8b2e0d39cb77dfcacfc8422d2586792f6 | [
"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,396 | lean | /-
Copyright (c) 2019 Simon Hudon. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Simon Hudon
-/
import data.nat.basic
import data.list.basic
import tactic.monotonicity.interactive
open list tactic tactic.interactive
meta class elaborable (α : Type) (β : out_param Ty... |
262fe093a518a62ffeefd13d8f5a90e6811fa1b6 | d406927ab5617694ec9ea7001f101b7c9e3d9702 | /src/category_theory/limits/constructions/over/products.lean | cfd8ca68c6ec87515e40ab757f32516d49e36617 | [
"Apache-2.0"
] | permissive | alreadydone/mathlib | dc0be621c6c8208c581f5170a8216c5ba6721927 | c982179ec21091d3e102d8a5d9f5fe06c8fafb73 | refs/heads/master | 1,685,523,275,196 | 1,670,184,141,000 | 1,670,184,141,000 | 287,574,545 | 0 | 0 | Apache-2.0 | 1,670,290,714,000 | 1,597,421,623,000 | Lean | UTF-8 | Lean | false | false | 6,255 | lean | /-
Copyright (c) 2018 Johan Commelin. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Johan Commelin, Reid Barton, Bhavik Mehta
-/
import category_theory.over
import category_theory.limits.shapes.pullbacks
import category_theory.limits.shapes.wide_pullbacks
import categ... |
6303331ceb5fb4d541f8669b203e3abe28ce38f0 | 4d2583807a5ac6caaffd3d7a5f646d61ca85d532 | /src/group_theory/perm/cycle_type.lean | 3c6b01e64c0ade94838125d63816038d1aa0b91f | [
"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 | 26,326 | lean | /-
Copyright (c) 2020 Thomas Browning. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Thomas Browning
-/
import algebra.gcd_monoid.multiset
import combinatorics.partition
import group_theory.perm.cycles
import ring_theory.int.basic
import tactic.linarith
/-!
# Cycle ... |
ae6cd803fe3b0cb62f82764509a39f3d0e4d5fd3 | 626e312b5c1cb2d88fca108f5933076012633192 | /src/ring_theory/dedekind_domain.lean | 4a07319214a2a6a5f564f31ec32e70004cbf015d | [
"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 | 39,981 | lean | /-
Copyright (c) 2020 Kenji Nakagawa. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Kenji Nakagawa, Anne Baanen, Filippo A. E. Nuccio
-/
import ring_theory.discrete_valuation_ring
import ring_theory.fractional_ideal
import ring_theory.ideal.over
import ring_theory.int... |
e1dbdda5a362db9b110ee30d7c96c7e6d87f1197 | 74addaa0e41490cbaf2abd313a764c96df57b05d | /Mathlib/set_theory/lists_auto.lean | 901ef53b81e72fc3cbcefb304761bfac07a78457 | [] | 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 | 8,332 | lean | /-
Copyright (c) 2018 Mario Carneiro. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Author: Mario Carneiro
A computable model of hereditarily finite sets with atoms
(ZFA without infinity). This is useful for calculations in naive
set theory.
-/
import Mathlib.PrePort
import M... |
936e7871f1fc3a4c1cf7175bb7bd5a4199a6286c | 947b78d97130d56365ae2ec264df196ce769371a | /tests/lean/run/constantCompilerBug.lean | 1ab5b8f4e00764cc9c90a38bd9f4f2f14e176f56 | [
"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 | 268 | lean | import Lean
new_frontend
open Lean
open Lean.Parser
def regBlaParserAttribute : IO Unit :=
registerBuiltinDynamicParserAttribute (mkNameSimple "blaParser") (mkNameSimple "bla")
@[inline] def parser : Parser :=
categoryParser (mkNameSimple "bla") 0
#check @parser
|
2b07ac5a99c9ae5940c2a20a117ce5dd783d6c10 | 4bcaca5dc83d49803f72b7b5920b75b6e7d9de2d | /stage0/src/Lean/Compiler.lean | dde2963667f18c21146d256842e496594e33e5a3 | [
"Apache-2.0"
] | permissive | subfish-zhou/leanprover-zh_CN.github.io | 30b9fba9bd790720bd95764e61ae796697d2f603 | 8b2985d4a3d458ceda9361ac454c28168d920d3f | refs/heads/master | 1,689,709,967,820 | 1,632,503,056,000 | 1,632,503,056,000 | 409,962,097 | 1 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 464 | 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.Compiler.InlineAttrs
import Lean.Compiler.Specialize
import Lean.Compiler.ConstFolding
import Lean.Compiler.ClosedTermCache
import Lean.Compiler... |
ea88c4f2746a3e432a52e65c8d807d91e344936a | 5d166a16ae129621cb54ca9dde86c275d7d2b483 | /tests/lean/run/apply_auto_opt.lean | d8109bc1d0eb85524ee699a3848a2af96c87b462 | [
"Apache-2.0"
] | permissive | jcarlson23/lean | b00098763291397e0ac76b37a2dd96bc013bd247 | 8de88701247f54d325edd46c0eed57aeacb64baf | refs/heads/master | 1,611,571,813,719 | 1,497,020,963,000 | 1,497,021,515,000 | 93,882,536 | 1 | 0 | null | 1,497,029,896,000 | 1,497,029,896,000 | null | UTF-8 | Lean | false | false | 328 | lean | def p (a : nat) (b := tt) : nat :=
a + cond b 1 2
def q (a b : nat) (h : a ≠ b . tactic.contradiction) : nat :=
a + b
def val1 : nat :=
begin
apply @p,
exact 2,
apply_opt_param
end
example : val1 = 3 :=
rfl
def val2 : nat :=
begin
fapply @q,
exact 1,
exact 0,
apply_auto_param
end
example : val2 = 1 :... |
b6bf2badff9ec72fb1039aa4260e0cc844a631b2 | b7f22e51856f4989b970961f794f1c435f9b8f78 | /library/data/fin.lean | fd8ed505d6380e26aa16eb860e0229ede8fe7bc2 | [
"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 | 18,506 | lean | /-
Copyright (c) 2015 Haitao Zhang. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Haitao Zhang, Leonardo de Moura
Finite ordinal types.
-/
import data.list.basic data.finset.basic data.fintype.card algebra.group data.equiv
open eq.ops nat function list finset fintype... |
ffe54e76abde70e5cbc0710c701d32c257a665d0 | 9dd3f3912f7321eb58ee9aa8f21778ad6221f87c | /tests/lean/run/lift2.lean | c045e507e97993f27bd3d041226e04a83fd48319 | [
"Apache-2.0"
] | permissive | bre7k30/lean | de893411bcfa7b3c5572e61b9e1c52951b310aa4 | 5a924699d076dab1bd5af23a8f910b433e598d7a | refs/heads/master | 1,610,900,145,817 | 1,488,006,845,000 | 1,488,006,845,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 288 | lean | namespace test
inductive {u₁ u₂} lift (A : Type u₁) : Type (max 1 u₁ u₂)
| inj : A → lift
set_option pp.universes true
variables (A : Type 3) (B : Type 1)
check A = lift.{1 3} B
universe variables u
variables (C : Type (u+2)) (D : Type u)
check C = lift.{u u+2} D
end test
|
792f9ff7fff20c5382dbdde6789ddaf0ffa6c32f | aa5a655c05e5359a70646b7154e7cac59f0b4132 | /src/Lean/Meta/Check.lean | 868bea313b2bbfff8f43138d6049ec139cbdd40b | [
"Apache-2.0"
] | permissive | lambdaxymox/lean4 | ae943c960a42247e06eff25c35338268d07454cb | 278d47c77270664ef29715faab467feac8a0f446 | refs/heads/master | 1,677,891,867,340 | 1,612,500,005,000 | 1,612,500,005,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 6,212 | 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.InferType
import Lean.Meta.LevelDefEq
/-
This is not the Kernel type checker, but an auxiliary method for checking
whether terms produced ... |
808437e668defa6b2edd9e6ebffe5a17e47bd557 | 947b78d97130d56365ae2ec264df196ce769371a | /src/Init/Data/Int/Basic.lean | 530bc983329d44443b3ea7275f6d7d6285871579 | [
"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 | 4,596 | 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
The integers, with addition, multiplication, and subtraction.
-/
prelude
import Init.Data.Nat.Basic
import Init.Data.List
import Init.Data.Repr
import ... |
1501d0841b4cd014e09e1257e423801a60f28e0c | a9d0fb7b0e4f802bd3857b803e6c5c23d87fef91 | /library/init/combinator.lean | cfcd1535bbb90e8dd3cd3170ba11987de269181e | [
"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 | 492 | 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
/- Combinator calculus -/
namespace combinator
universe variables u₁ u₂ u₃
definition I {A : Type u₁} (a : A) := a
definition K {A : Type u₁} {B : T... |
8d32ed51d17201dbbcde1fa6628ccfa381551267 | 74addaa0e41490cbaf2abd313a764c96df57b05d | /Mathlib/tactic/auto_cases_auto.lean | 8759d7be80bb7fc0f75c64c56019ffb842c054b3 | [] | 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 | 432 | lean | /-
Copyright (c) 2017 Scott Morrison. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Keeley Hoek, Scott Morrison
-/
import Mathlib.PrePort
import Mathlib.Lean3Lib.init.default
import Mathlib.tactic.hint
import Mathlib.PostPort
namespace Mathlib
namespace tactic
nam... |
6daeabac8bab1e2eb44070a16a6b1dfd2ea7d202 | 4d2583807a5ac6caaffd3d7a5f646d61ca85d532 | /archive/imo/imo2008_q4.lean | ae03758ea597da3150c01ea527014b285b4c97eb | [
"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,555 | lean | /-
Copyright (c) 2021 Manuel Candales. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Manuel Candales
-/
import data.real.basic
import data.real.sqrt
import data.real.nnreal
/-!
# IMO 2008 Q4
Find all functions `f : (0,∞) → (0,∞)` (so, `f` is a function from the posit... |
673187022a0799ffd853e0e383223fe54aceec5c | 097294e9b80f0d9893ac160b9c7219aa135b51b9 | /instructor/identifiers/2020-01-23-notes-002.lean | 1b1815534f894b5a09de3576d7119e0766a99be8 | [] | 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,189 | lean | def pop := prod.mk
(prod.mk 2 tt)
(prod.mk "Hello" 3)
#eval prod.mk
(prod.mk 2 tt)
(prod.mk "Hello" 3)
#eval pop
-- Oops. Immutable. So this won't work.
def pop := prod.mk
(prod.mk 2 tt)
(prod.mk "Hello" 3)
/-
Big conversation about muta... |
a518ce7de0360cbd26fa79b8cf2989e85a5b4dc8 | 6432ea7a083ff6ba21ea17af9ee47b9c371760f7 | /tests/lean/run/972.lean | f84f6574c379fe9de677b0bd99433cd4e4b4c893 | [
"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 | 851 | lean | class Semigroup (M : Type u) extends Mul M where
mul_assoc (a b c : M) : (a * b) * c = a * (b * c)
export Semigroup (mul_assoc)
class CommSemigroup (M : Type u) extends Semigroup M where
mul_comm (a b : M) : a * b = b * a
export CommSemigroup (mul_comm)
class Monoid (M : Type u) extends Semigroup M, OfNat M 1 whe... |
eb47811f5de0fc899322fc9e313f6e69132b7fd5 | 54f4ad05b219d444b709f56c2f619dd87d14ec29 | /my_project/src/love02_backward_proofs_demo.lean | c7be2326669c35d6b235296ddf2bf8f702996db5 | [] | no_license | yizhou7/learning-lean | 8efcf838c7276e235a81bd291f467fa43ce56e0a | 91fb366c624df6e56e19555b2e482ce767cd8224 | refs/heads/master | 1,675,649,087,737 | 1,609,022,281,000 | 1,609,022,281,000 | 272,072,779 | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 7,740 | lean | import .love01_definitions_and_statements_demo
/-! # LoVe Demo 2: Backward Proofs
A __tactic__ operates on a proof goal and either proves it or creates new
subgoals. Tactics are a __backward__ proof mechanism: They start from the goal
and work towards the available hypotheses and lemmas. -/
set_option pp.beta true... |
32cd312fae10bf112eea82ccb68d58b7f5d71822 | a9d0fb7b0e4f802bd3857b803e6c5c23d87fef91 | /tests/lean/634c.lean | 32ae348a7781502773f28210585bd10f52bcc40a | [
"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 | 937 | lean | open nat
section
parameter (X : Type)
definition A {n : ℕ} : Type := X
definition B : Type := X
variable {n : ℕ}
check @A n
check _root_.A nat
check _root_.A (X × B)
check @_root_.A (X × B) 10
check @_root_.A (_root_.B (@_root_.A X n)) n
check @_root_.A (@_root_.B (@_root_.A nat n)) n
set_option ... |
4900be08b149621cda4675c870e38a0b9ef1bf27 | 0c1546a496eccfb56620165cad015f88d56190c5 | /tests/lean/run/unfold_crash.lean | ab00a3ef76f79443b0eedc89b9b68632b224601c | [
"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,641 | lean | open tactic
-- TODO(Leo): remove the following command.
-- It has been added to avoid a crash in the code generator
noncomputable theory
inductive vector (A : Type) : nat → Type
| nil {} : vector 0
| cons : Π {n}, A -> vector n -> vector (nat.succ n)
definition vmap {A B : Type} (f : A -> B) : Π {n}, vector A n ... |
e796af0adb6d583516d0165f387b188892817459 | dd0f5513e11c52db157d2fcc8456d9401a6cd9da | /10_Structures_and_Records.org.14.lean | dbeb91c5893457939f02dbfc700c770a85fa245b | [] | no_license | cjmazey/lean-tutorial | ba559a49f82aa6c5848b9bf17b7389bf7f4ba645 | 381f61c9fcac56d01d959ae0fa6e376f2c4e3b34 | refs/heads/master | 1,610,286,098,832 | 1,447,124,923,000 | 1,447,124,923,000 | 43,082,433 | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 606 | lean | import standard
open num structure point (A : Type) :=
mk :: (x : A) (y : A)
inductive color :=
red | green | blue
structure color_point (A : Type) extends point A :=
mk :: (c : color)
-- BEGIN
definition x_plus_y (p : point num) :=
point.x p + point.y p
definition green_point : color_point num :=
{| color_point, x ... |
306d4fe9f6b0e504008e16eca98e1f452ef05829 | bb31430994044506fa42fd667e2d556327e18dfe | /src/data/list/defs.lean | b20ef680b6575e54ea64c385599b339730cf6ab2 | [
"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 | 41,607 | lean | /-
Copyright (c) 2014 Parikshit Khanna. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Parikshit Khanna, Jeremy Avigad, Leonardo de Moura, Floris van Doorn, Mario Carneiro
-/
import logic.basic
import tactic.cache
import data.rbmap.basic
import data.rbtree.default_lt
/... |
9365db051fc6761b60d12e1498eb3e0c8cebb9b6 | 367134ba5a65885e863bdc4507601606690974c1 | /src/algebra/field_power.lean | cb78fd34547b3f298a1ea9b58e26d76aa7000757 | [
"Apache-2.0"
] | permissive | kodyvajjha/mathlib | 9bead00e90f68269a313f45f5561766cfd8d5cad | b98af5dd79e13a38d84438b850a2e8858ec21284 | refs/heads/master | 1,624,350,366,310 | 1,615,563,062,000 | 1,615,563,062,000 | 162,666,963 | 0 | 0 | Apache-2.0 | 1,545,367,651,000 | 1,545,367,651,000 | null | UTF-8 | Lean | false | false | 5,834 | lean | /-
Copyright (c) 2018 Robert Y. Lewis. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Robert Y. Lewis
-/
import algebra.group_with_zero.power
import tactic.linarith
/-!
# Integer power operation on fields and division rings
This file collects basic facts about the op... |
7640c7ebb55c68d179aab4babfbaf2618cff6e9e | 76ce87faa6bc3c2aa9af5962009e01e04f2a074a | /06_Negation/00_intro.lean | b9fa3b7ba2b3aa61ca80f4caee0cfbabb7ed132d | [] | no_license | Mnormansell/Discrete-Notes | db423dd9206bbe7080aecb84b4c2d275b758af97 | 61f13b98be590269fc4822be7b47924a6ddc1261 | refs/heads/master | 1,585,412,435,424 | 1,540,919,483,000 | 1,540,919,483,000 | 148,684,638 | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 21,581 | lean | /-
* proposition built using ¬
* the formal meaning of ¬
* proofs of inequalities, ¬a=b
* disjointness of constructors
* strategy: proof by negation
* inference rule: modus tollens
* principle: non-contradiction
* rule: negation elimination
* axiom: excluded middle
* classical vs constructive logic
* double-negatio... |
b4e747a1ac5c52c3e99db9fdf32d28a04edcf20b | 5fbbd711f9bfc21ee168f46a4be146603ece8835 | /lean/natural_number_game/multiplication/4.lean | 30be0d86965e220604adf03df5d9abcb9c007139 | [
"LicenseRef-scancode-warranty-disclaimer"
] | no_license | goedel-gang/maths | 22596f71e3fde9c088e59931f128a3b5efb73a2c | a20a6f6a8ce800427afd595c598a5ad43da1408d | refs/heads/master | 1,623,055,941,960 | 1,621,599,441,000 | 1,621,599,441,000 | 169,335,840 | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 172 | lean | lemma mul_add (t a b : mynat) : t * (a + b) = t * a + t * b :=
induction a with n hn,
rw mul_zero,
simp,
rw succ_add,
repeat {rw mul_succ},
rw hn,
simp,
end
|
ae50a0da9c12f7fb39bfa1e6a28b96d672d8ae90 | 8cae430f0a71442d02dbb1cbb14073b31048e4b0 | /src/geometry/manifold/whitney_embedding.lean | c47bcd133c47e9b2dd3cb05d1da9289946c3314c | [
"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 | 6,508 | 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 geometry.manifold.diffeomorph
import geometry.manifold.instances.real
import geometry.manifold.partition_of_unity
/-!
# Whitney embedding theorem
> T... |
d72435189689a93cb85b59c5b012286c587db244 | 4727251e0cd73359b15b664c3170e5d754078599 | /src/data/rbtree/basic.lean | a9b4f43579a2e1d71b85931319fb33b5ab4a6f22 | [
"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 | 8,831 | 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 tactic.interactive
import data.rbtree.init
universe u
meta def tactic.interactive.blast_disjs : tactic unit :=
`[cases_type* or]
namespace rbnode
... |
9e83f240d95abb586674e19c05dadf6924c1a034 | 9845f9502cdf644282e3a34b74fa995fc33d6752 | /REDUNDANCY[VS].lean | 35dc8ae5e042aa2a40feadd01cf3bb60fdb50f48 | [] | no_license | Robilsu/Theorem-of-Branch-Redundancy | cc430d761dade4bb723c88a2a8709b7e47081171 | 918803bc047f2340e0f01d470939d077f7acefce | refs/heads/main | 1,691,744,940,519 | 1,632,346,370,000 | 1,632,346,370,000 | 365,813,983 | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 90,516 | lean | reserve prefix `#` : 9999 -- #_
reserve infix ` >> ` : 1000 -- _ >> _
/- Useful Properties -/
namespace use
universes u v
/- Proofs from L∃∀N's library regarding negation, conjunction, and disjunction -/
lemma Not_Or {a b : Prop} : ¬ a → ¬ b → ¬ (a ∨ b)
| hna hnb (or.inl ha) := absurd ha hna
| hna hnb... |
d2acf3436c8dc62b59887b2d545fe22c382c8f83 | aa3f8992ef7806974bc1ffd468baa0c79f4d6643 | /library/standard/logic/axioms/default.lean | 0c549c5059442526c779b7a0b2f078f6ec17e226 | [
"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 | 492 | lean | ----------------------------------------------------------------------------------------------------
--- Copyright (c) 2014 Microsoft Corporation. All rights reserved.
--- Released under Apache 2.0 license as described in the file LICENSE.
--- Author: Jeremy Avigad
------------------------------------------------------... |
43ac74245b348d7c2924efe651574afbd8309c59 | d1a52c3f208fa42c41df8278c3d280f075eb020c | /src/Lean/Elab/DeclModifiers.lean | 0aac7f80f5e13731118d5e4250fa931872740b9a | [
"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 | 8,033 | lean | /-
Copyright (c) 2020 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Leonardo de Moura, Sebastian Ullrich
-/
import Lean.Modifiers
import Lean.DocString
import Lean.Structure
import Lean.Elab.Attributes
import Lean.Elab.Exception
import Lean.Elab... |
2cab21f8effbfc14543d7bf5fb515600e9b80645 | b7b549d2cf38ac9d4e49372b7ad4d37f70449409 | /src/LeanLLVM/ORCTest.lean | 8e6906aae8d65d6b5de7e8aa196417525a0e3c36 | [
"Apache-2.0"
] | permissive | GaloisInc/lean-llvm | 7cc196172fe02ff3554edba6cc82f333c30fdc2b | 36e2ec604ae22d8ec1b1b66eca0f8887880db6c6 | refs/heads/master | 1,637,359,020,356 | 1,629,332,114,000 | 1,629,402,464,000 | 146,700,234 | 29 | 1 | Apache-2.0 | 1,631,225,695,000 | 1,535,607,191,000 | Lean | UTF-8 | Lean | false | false | 657 | lean | import .llvm_ffi
import .clang_ffi
def main (xs : List String) : IO UInt32 := do
llvm.ffi.initNativeFns;
s ← llvm.ffi.newCompilerSession (llvm.ffi.newTriple (llvm.ffi.processTriple Unit.unit));
let args := [xs.head,
"-stdlib=libc++",
"-fcxx-exceptions",
"-I/Users/jhen... |
f614f274e556d104976ff82dd88e7b9212be9bd1 | aa3f8992ef7806974bc1ffd468baa0c79f4d6643 | /tests/lean/proj.lean | 1fcd06a86ebd0f435c42230f2fba5cb096f6a293 | [
"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 | 468 | lean | import logic data.nat.basic
inductive vector (T : Type) : nat → Type :=
nil {} : vector T nat.zero,
cons : T → ∀{n}, vector T n → vector T (nat.succ n)
#projections or
#projections and
#projections eq.refl
#projections eq
#projections vector
inductive point :=
mk : nat → nat → point
#projections point :: x y z
... |
50f43cc408f4ff8453fdbde0e84bf92cf476af54 | d436468d80b739ba7e06843c4d0d2070e43448e5 | /src/category_theory/isomorphism.lean | 07fbae06f644127885a67aa679b363ee2e7e411f | [
"Apache-2.0"
] | permissive | roro47/mathlib | 761fdc002aef92f77818f3fef06bf6ec6fc1a28e | 80aa7d52537571a2ca62a3fdf71c9533a09422cf | refs/heads/master | 1,599,656,410,625 | 1,573,649,488,000 | 1,573,649,488,000 | 221,452,951 | 0 | 0 | Apache-2.0 | 1,573,647,693,000 | 1,573,647,692,000 | null | UTF-8 | Lean | false | false | 10,394 | lean | /-
Copyright (c) 2017 Scott Morrison. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Tim Baumann, Stephen Morgan, Scott Morrison, Floris van Doorn
-/
import category_theory.functor
import tactic.reassoc_axiom
/-!
# Isomorphisms
This file defines isomorphisms between ... |
e6baa7a866c011be369c02b1416756f011c0c4c2 | 9dc8cecdf3c4634764a18254e94d43da07142918 | /src/tactic/core.lean | 7524e2a649cc3e6caa25c95a8c9f1de3e8aa7310 | [
"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 | 99,472 | lean | /-
Copyright (c) 2018 Mario Carneiro. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Mario Carneiro, Simon Hudon, Scott Morrison, Keeley Hoek
-/
import control.basic
import data.dlist.basic
import meta.expr
import system.io
import tactic.binder_matching
import tactic.i... |
7d9396d77f52b9c9df65a7c2102741680891975c | 92b13ae5cb04d78dd215ae736d93f5353e0e8e87 | /broken/pretty.lean | 8cbe532d30b46f0f1f061f66f260acf8c2c8dfe8 | [] | no_license | jroesch/exp-compiler | f2dec4f17e769e7f3b41429c41ece1f004a3f209 | 6efd4512c80df947361bdada12415bc166db5e7f | refs/heads/master | 1,585,267,520,150 | 1,469,047,597,000 | 1,469,047,597,000 | 63,471,055 | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 121 | lean | inductive doc :=
| nil
| append : doc -> doc -> doc
| nest : nat -> doc
| text : string -> doc
| line : doc
| doc : doc
|
3f8c335b910c662d1f5b33087e5cee90bc6d1ff2 | 74addaa0e41490cbaf2abd313a764c96df57b05d | /Mathlib/category_theory/category/pairwise_auto.lean | d48367e4b53589a985cb478c9e4d73e6ed4d91ad | [] | no_license | AurelienSaue/Mathlib4_auto | f538cfd0980f65a6361eadea39e6fc639e9dae14 | 590df64109b08190abe22358fabc3eae000943f2 | refs/heads/master | 1,683,906,849,776 | 1,622,564,669,000 | 1,622,564,669,000 | 371,723,747 | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 4,240 | 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 Mathlib.PrePort
import Mathlib.Lean3Lib.init.default
import Mathlib.category_theory.limits.preserves.basic
import Mathlib.category_theory.limits.lattice
import... |
36d0415354722b7338c770ec6cf5fcfabf5e31d0 | e6b8240a90527fd55d42d0ec6649253d5d0bd414 | /src/category_theory/limits/preserves.lean | 07cde04a38c73ae99b079237d63506b09160598f | [
"Apache-2.0"
] | permissive | mattearnshaw/mathlib | ac90f9fb8168aa642223bea3ffd0286b0cfde44f | d8dc1445cf8a8c74f8df60b9f7a1f5cf10946666 | refs/heads/master | 1,606,308,351,137 | 1,576,594,130,000 | 1,576,594,130,000 | 228,666,195 | 0 | 0 | Apache-2.0 | 1,576,603,094,000 | 1,576,603,093,000 | null | UTF-8 | Lean | false | false | 10,851 | lean | /-
Copyright (c) 2018 Scott Morrison. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Scott Morrison, Reid Barton
-/
import category_theory.limits.limits
/-!
# Preservation and reflection of (co)limits.
-/
open category_theory
namespace category_theory.limits
univer... |
6af158678fb8bfa507dd6bea29220869ba3087ba | aa3f8992ef7806974bc1ffd468baa0c79f4d6643 | /library/data/sigma/default.lean | ae9f0b096e9e1b9b6d9d636bb56236a864a13b86 | [
"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 | 252 | lean | -- Copyright (c) 2014 Microsoft Corporation. All rights reserved.
-- Released under Apache 2.0 license as described in the file LICENSE.
-- Author: Leonardo de Moura, Jeremy Avigad, Floris van Doorn
import data.sigma.decl data.sigma.thms data.sigma.wf
|
1cf31c3dfddb2f1f19d095926e2d8efea3214c61 | 5d166a16ae129621cb54ca9dde86c275d7d2b483 | /tests/lean/run/overload2.lean | 633601e96c489727e57a03a6c9ffbadc79d2a019 | [
"Apache-2.0"
] | permissive | jcarlson23/lean | b00098763291397e0ac76b37a2dd96bc013bd247 | 8de88701247f54d325edd46c0eed57aeacb64baf | refs/heads/master | 1,611,571,813,719 | 1,497,020,963,000 | 1,497,021,515,000 | 93,882,536 | 1 | 0 | null | 1,497,029,896,000 | 1,497,029,896,000 | null | UTF-8 | Lean | false | false | 745 | lean | import standard
inductive F2 : Type
| O : F2
| I : F2
namespace F2
definition add : F2 → F2 → F2
| O O := O
| O I := I
| I O := I
| I I := O
infix + := F2.add
end F2
open F2 nat
#reduce (1 : nat) + 1
#reduce (1 : nat) + (1 : nat)
example : true :=
begin
assert H : (1 : nat) + (1 : nat) = 2,
reflexivity,
cons... |
444785b76f97a75684da2eadd45aca8e2f8713c2 | 432d948a4d3d242fdfb44b81c9e1b1baacd58617 | /src/algebra/ordered_monoid.lean | a30337d72c7756c0b196cfd2ac6fd6e97b77ea9f | [
"Apache-2.0"
] | permissive | JLimperg/aesop3 | 306cc6570c556568897ed2e508c8869667252e8a | a4a116f650cc7403428e72bd2e2c4cda300fe03f | refs/heads/master | 1,682,884,916,368 | 1,620,320,033,000 | 1,620,320,033,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 48,656 | lean | /-
Copyright (c) 2016 Jeremy Avigad. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Jeremy Avigad, Leonardo de Moura, Mario Carneiro, Johannes Hölzl
-/
import algebra.group.with_one
import algebra.group.type_tags
import algebra.group.prod
import algebra.order_functions... |
7c6ce604a1ac46659be1b4cd3f9a899f88cb3067 | 94e33a31faa76775069b071adea97e86e218a8ee | /src/analysis/calculus/deriv.lean | ea118f7898554192e33a53b33785c2df40aa8dda | [
"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 | 91,850 | lean | /-
Copyright (c) 2019 Gabriel Ebner. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Gabriel Ebner, Sébastien Gouëzel
-/
import analysis.calculus.fderiv
import data.polynomial.derivative
import linear_algebra.affine_space.slope
/-!
# One-dimensional derivatives
This ... |
382de026b55f2e97ff19e895cf92bdbdd2e9203f | 8cae430f0a71442d02dbb1cbb14073b31048e4b0 | /src/category_theory/limits/preserves/shapes/pullbacks.lean | 0c24c8404924c0f3263417e4ed9b9ebb0b7e60b5 | [
"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 | 11,093 | lean | /-
Copyright (c) 2020 Bhavik Mehta. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Bhavik Mehta, Andrew Yang
-/
import category_theory.limits.shapes.pullbacks
import category_theory.limits.preserves.basic
/-!
# Preserving pullbacks
> THIS FILE IS SYNCHRONIZED WITH MA... |
bc9b725b424308c60af97190501d359e01691a35 | cf39355caa609c0f33405126beee2739aa3cb77e | /library/init/meta/match_tactic.lean | cf6761c1d256a8a39b4395c7997f0960f27f587b | [
"Apache-2.0"
] | permissive | leanprover-community/lean | 12b87f69d92e614daea8bcc9d4de9a9ace089d0e | cce7990ea86a78bdb383e38ed7f9b5ba93c60ce0 | refs/heads/master | 1,687,508,156,644 | 1,684,951,104,000 | 1,684,951,104,000 | 169,960,991 | 457 | 107 | Apache-2.0 | 1,686,744,372,000 | 1,549,790,268,000 | C++ | UTF-8 | Lean | false | false | 5,679 | 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.interactive_base init.function
namespace tactic
/-- A pattern is an expression `target` containing temporary metavariables.
A patt... |
5889eaf75ed1e1171e8d0a462ccd2af87855bcbd | de91c42b87530c3bdcc2b138ef1a3c3d9bee0d41 | /old/override/hertzOverride.lean | 04b43ffb339d3057c4f1973f6d6b8b8406c35bf6 | [] | no_license | kevinsullivan/lang | d3e526ba363dc1ddf5ff1c2f36607d7f891806a7 | e9d869bff94fb13ad9262222a6f3c4aafba82d5e | refs/heads/master | 1,687,840,064,795 | 1,628,047,969,000 | 1,628,047,969,000 | 282,210,749 | 0 | 1 | null | 1,608,153,830,000 | 1,595,592,637,000 | Lean | UTF-8 | Lean | false | false | 726 | lean | import ..imperative_DSL.environment
import ..eval.hertzEval
open lang.classicalHertz
def assignHertzSpace : environment.env → lang.classicalHertz.spaceVar → lang.classicalHertz.spaceExpr → environment.env
| i v e :=
{
h:={sp := (λ r,
if (spaceVarEq v r)
then (classicalHertz... |
9f54757e5c6d594ee1d113e890a227f115c8e821 | ce89339993655da64b6ccb555c837ce6c10f9ef4 | /na4zagin3/top-13.lean | 7fd304f822632f260aa4232be7f8f45551156dc7 | [] | no_license | zeptometer/LearnLean | ef32dc36a22119f18d843f548d0bb42f907bff5d | bb84d5dbe521127ba134d4dbf9559b294a80b9f7 | refs/heads/master | 1,625,710,824,322 | 1,601,382,570,000 | 1,601,382,570,000 | 195,228,870 | 2 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 451 | lean | def injective1 (f : nat -> nat) : Prop :=
forall m n, f m = f n -> m = n.
def injective2 (f : nat -> nat) : Prop :=
forall m n, m ≠ n -> f m ≠ f n.
example : ∀ f, injective1 f ↔ injective2 f :=
begin
intro f,
unfold injective1,
unfold injective2,
split; intros HI m n H,
intros Hinv,
apply H,
a... |
094cdd4d387cc84f6cbea05483bea8f62512c2f5 | 367134ba5a65885e863bdc4507601606690974c1 | /src/tactic/transport.lean | fae9706f826d40d5af9d31f1b28ce1c592af997c | [
"Apache-2.0"
] | permissive | kodyvajjha/mathlib | 9bead00e90f68269a313f45f5561766cfd8d5cad | b98af5dd79e13a38d84438b850a2e8858ec21284 | refs/heads/master | 1,624,350,366,310 | 1,615,563,062,000 | 1,615,563,062,000 | 162,666,963 | 0 | 0 | Apache-2.0 | 1,545,367,651,000 | 1,545,367,651,000 | null | UTF-8 | Lean | false | false | 5,572 | lean | /-
Copyright (c) 2020 Scott Morrison. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Gabriel Ebner, Simon Hudon, Scott Morrison
-/
import tactic.equiv_rw
/-!
## The `transport` tactic
`transport` attempts to move an `s : S α` expression across an equivalence `e : α ≃... |
bbcc6ac37c63c6a5023fe645a7b30f20cf3e1f72 | 8cae430f0a71442d02dbb1cbb14073b31048e4b0 | /src/linear_algebra/affine_space/combination.lean | 119e009c1ea41ebdee83a63d759b689589df5c48 | [
"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 | 55,646 | lean | /-
Copyright (c) 2020 Joseph Myers. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Joseph Myers
-/
import algebra.invertible
import algebra.indicator_function
import algebra.module.big_operators
import data.fintype.big_operators
import linear_algebra.affine_space.affin... |
c4e2c9b95df2d5d3a9a24c9017ae80271b6ab989 | 491068d2ad28831e7dade8d6dff871c3e49d9431 | /hott/algebra/category/constructions/sum.hlean | 20601b8157371412f299ff7fe079b0ad490a6e38 | [
"Apache-2.0"
] | permissive | davidmueller13/lean | 65a3ed141b4088cd0a268e4de80eb6778b21a0e9 | c626e2e3c6f3771e07c32e82ee5b9e030de5b050 | refs/heads/master | 1,611,278,313,401 | 1,444,021,177,000 | 1,444,021,177,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 2,870 | hlean | /-
Copyright (c) 2015 Floris van Doorn. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Floris van Doorn, Jakob von Raumer
Functor product precategory and (TODO) category
-/
import ..category ..functor types.sum
open eq sum is_trunc functor lift
namespace category
... |
045c32ca3d5d821e330ce7806060f8f8b939284c | 4efff1f47634ff19e2f786deadd394270a59ecd2 | /archive/imo1988_q6.lean | f0a41e3f5b38c979f77d2444234b1a56dc8d47e9 | [
"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 | 13,794 | lean | /-
Copyright (c) 2019 Johan Commelin. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Johan Commelin
-/
import data.rat.basic
import tactic
/-!
# IMO1988 Q6 and constant descent Vieta jumping
Question 6 of IMO1988 is somewhat (in)famous. Several expert problem solver... |
85644240377d3bbd7e23573f6166a96c4e516d8d | dd0f5513e11c52db157d2fcc8456d9401a6cd9da | /10_Structures_and_Records.org.5.lean | e032a013326e2b0e79089c87ff8ec882ef74a0e0 | [] | no_license | cjmazey/lean-tutorial | ba559a49f82aa6c5848b9bf17b7389bf7f4ba645 | 381f61c9fcac56d01d959ae0fa6e376f2c4e3b34 | refs/heads/master | 1,610,286,098,832 | 1,447,124,923,000 | 1,447,124,923,000 | 43,082,433 | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 131 | lean | import standard
namespace hide
-- BEGIN
structure prod (A : Type) (B : Type) :=
(pr1 : A) (pr2 : B)
check prod.mk
-- END
end hide
|
322d87a15a2baefa89c3eb942fd80cb67e6fc9df | d406927ab5617694ec9ea7001f101b7c9e3d9702 | /src/category_theory/sites/compatible_sheafification.lean | d9b682b87047a2d40080653b47b128f1c6f8c426 | [
"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,833 | lean | /-
Copyright (c) 2021 Adam Topaz. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Adam Topaz
-/
import category_theory.sites.compatible_plus
import category_theory.sites.sheafification
/-!
In this file, we prove that sheafification is compatible with functors which
pr... |
f894a4152e6748231718cf43e198d9a4a858372a | 9c1ad797ec8a5eddb37d34806c543602d9a6bf70 | /examples/types/monoidal_category_of_types.lean | 65a5d935029fb5a36e63529217f98bab773728d1 | [] | no_license | timjb/lean-category-theory | 816eefc3a0582c22c05f4ee1c57ed04e57c0982f | 12916cce261d08bb8740bc85e0175b75fb2a60f4 | refs/heads/master | 1,611,078,926,765 | 1,492,080,000,000 | 1,492,080,000,000 | 88,348,246 | 0 | 0 | null | 1,492,262,499,000 | 1,492,262,498,000 | null | UTF-8 | Lean | false | false | 2,231 | 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 ...monoidal_categories.monoidal_category
import ...monoidal_categories.braided_monoidal_category
import .types
namespace tqft.categories.e... |
7d45a465ca2c8732f41646f9b494412c7e70cb1c | b7f22e51856f4989b970961f794f1c435f9b8f78 | /tests/lean/abbrev2.lean | 3b996a1fb358e03fca885359b302e825efa225e0 | [
"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 | 431 | lean | open nat
namespace bla
local abbreviation foo : nat := 10 + 1
definition tst : nat := foo
print definition tst
end bla
-- abbreviation is gone
print definition bla.tst
check bla.foo
open bla
check foo
print definition tst
namespace bla2
abbreviation foo2 : nat := 1
definition tst2 : nat := foo2
print d... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.