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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
2c8c1791ec1c5b8066df6e5525a7ad2a38ee261e | 947fa6c38e48771ae886239b4edce6db6e18d0fb | /src/logic/basic.lean | 0a712ccba10a8dc61e05afb98813b50d97829f0f | [
"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 | 66,796 | 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
-/
import tactic.doc_commands
import tactic.reserved_notation
/-!
# Basic logic properties
This file is one of the earliest imports in mathlib.
## Im... |
4fc903fdcbacf6553adfcb883b7ba44e5827763e | 8cae430f0a71442d02dbb1cbb14073b31048e4b0 | /src/probability/martingale/convergence.lean | 340f3fba23564d4f8434d78cdc70a3bbd6a50ad3 | [
"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 | 25,579 | lean | /-
Copyright (c) 2022 Kexing Ying. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Kexing Ying
-/
import probability.martingale.upcrossing
import measure_theory.function.uniform_integrable
import measure_theory.constructions.polish
/-!
# Martingale convergence theorem... |
a8682a7f3bf4b890d9164a34b5f1d62667051204 | fe25de614feb5587799621c41487aaee0d083b08 | /stage0/src/Lean/Elab/Quotation.lean | 1687eea006923b6237b5ebea7063cdf33b29c1c0 | [
"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 | 24,833 | lean | /-
Copyright (c) 2019 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Sebastian Ullrich
Elaboration of syntax quotations as terms and patterns (in `match_syntax`). See also `./Hygiene.lean` for the basic
hygiene workings and data types.
-/
import... |
21100b5d3578d729cbe798d2fdf49acff20f8389 | 8cae430f0a71442d02dbb1cbb14073b31048e4b0 | /src/logic/embedding/basic.lean | 06cf19825d7907e053ae648f8dcd2b99b9f11205 | [
"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,040 | 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.prod.pprod
import data.sigma.basic
import data.option.basic
import data.subtype
import logic.equiv.basic
/... |
63e37e78fe04199e24e1b4e469aa8e9f54e9a5ae | d406927ab5617694ec9ea7001f101b7c9e3d9702 | /archive/100-theorems-list/54_konigsberg.lean | 683d7314664dbf85417c74824117de72d82d506d | [
"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 | 2,801 | lean | /-
Copyright (c) 2022 Kyle Miller. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Kyle Miller
-/
import combinatorics.simple_graph.trails
import tactic.derive_fintype
/-!
# The Königsberg bridges problem
We show that a graph that represents the islands and mainlands ... |
7d80fed668b338c6df86be1d1504263053ae91be | 94e33a31faa76775069b071adea97e86e218a8ee | /src/topology/continuous_function/zero_at_infty.lean | 2c019c816e7433df7c667f6c364eb1b67d451201 | [
"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 | 22,496 | lean | /-
Copyright (c) 2022 Jireh Loreaux. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Jireh Loreaux
-/
import topology.continuous_function.bounded
import topology.continuous_function.cocompact_map
/-!
# Continuous functions vanishing at infinity
The type of continuous ... |
7b358d51f9c4dc81b0ae3bcb64eea77694089cc5 | 367134ba5a65885e863bdc4507601606690974c1 | /src/data/real/ereal.lean | c5590e5b6981cf6c50b9579a316950975a95ed42 | [
"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 | 3,359 | lean | /-
Copyright (c) 2019 Kevin Buzzard. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Kevin Buzzard
-/
import data.real.basic
/-!
# The extended reals [-∞, ∞].
This file defines `ereal`, the real numbers together with a top and bottom element,
referred to as ⊤ and ⊥. I... |
5e24d50e272816649433e7f0718cd11b7211f896 | 82e44445c70db0f03e30d7be725775f122d72f3e | /src/linear_algebra/determinant.lean | 04bcc4513a14d4c3b46dcab3cabe5dad51d1c952 | [
"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 | 12,417 | lean | /-
Copyright (c) 2019 Johannes Hölzl. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Johannes Hölzl, Patrick Massot, Casper Putz, Anne Baanen
-/
import linear_algebra.free_module_pid
import linear_algebra.matrix.basis
import linear_algebra.matrix.diagonal
import linear... |
dbcae0b7d4cf2d7b06d3f0b0854caff33d68e0ec | 432d948a4d3d242fdfb44b81c9e1b1baacd58617 | /src/topology/metric_space/gromov_hausdorff_realized.lean | 8d4e36ff93b81faa87e9f187f93769f832f411f7 | [
"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 | 26,254 | lean | /-
Copyright (c) 2019 Sébastien Gouëzel. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Sébastien Gouëzel
Construction of a good coupling between nonempty compact metric spaces, minimizing
their Hausdorff distance. This construction is instrumental to study the Gromov... |
7eaaa7e2649dfde03e3f5751567fea9c497e148f | d406927ab5617694ec9ea7001f101b7c9e3d9702 | /src/measure_theory/constructions/polish.lean | 94562f03a28854059d6668eb44120046309d8432 | [
"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 | 34,610 | 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 topology.metric_space.polish
import measure_theory.constructions.borel_space
/-!
# The Borel sigma-algebra on Polish spaces
We discuss several results ... |
c8f3fb6f4f11840a45517d8902ff28921e26b2e3 | d1a52c3f208fa42c41df8278c3d280f075eb020c | /tests/lean/inductive1.lean | f9d638bbe4a224dcc75270aecde6675c597c3700 | [
"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,927 | lean |
-- Test1
inductive T1 : Nat -- Error, resultant type is not a sort
-- Test2
mutual
inductive T1 : Prop
inductive T2 : Type -- Error resulting universe mismatch
end
-- Test3
universe u v
mutual
inductive T1 (x : Nat) : Type u
inductive T2 (x : Nat) : Nat → Type v -- Error resulting universe mismatch
end
-- T... |
ea03a89316fb05cac0b18ece926b6290dfac43e0 | 4727251e0cd73359b15b664c3170e5d754078599 | /src/ring_theory/witt_vector/defs.lean | 09ca4b5ebfe2fcabf8ce43a9e48226fe0019dd07 | [
"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 | 14,129 | lean | /-
Copyright (c) 2020 Johan Commelin. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Johan Commelin, Robert Y. Lewis
-/
import ring_theory.witt_vector.structure_polynomial
/-!
# Witt vectors
In this file we define the type of `p`-typical Witt vectors and ring operat... |
40e969445b4ff5533f494086c2d14415b5f220de | 302c785c90d40ad3d6be43d33bc6a558354cc2cf | /src/data/polynomial/degree/definitions.lean | 6bcad8756d4ee1ba488b90697f5050b5bf0075af | [
"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,663 | lean | /-
Copyright (c) 2018 Chris Hughes. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Chris Hughes, Johannes Hölzl, Scott Morrison, Jens Wagemaker
-/
import data.polynomial.coeff
import data.nat.with_bot
/-!
# Theory of univariate polynomials
The definitions include
`de... |
e5c63f8a2711168a17ba68c60c5629e2c190b107 | 96e44fc78cabfc9d646dc37d0e756189b6b79181 | /library/init/meta/interactive.lean | 7ca4dd82f6644e5c0f21ee572302f2943f2ee189 | [
"Apache-2.0"
] | permissive | TwoFX/lean | 23c73c10a340f5a381f6abf27a27f53f1fb7e2e3 | 7e3f336714055869690b7309b6bb651fbc67e76e | refs/heads/master | 1,612,504,908,183 | 1,594,641,622,000 | 1,594,641,622,000 | 243,750,847 | 0 | 0 | Apache-2.0 | 1,582,890,661,000 | 1,582,890,661,000 | null | UTF-8 | Lean | false | false | 71,322 | 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, Jannis Limperg
-/
prelude
import init.meta.tactic init.meta.rewrite_tactic init.meta.simp_tactic
import init.meta.smt.congruence_closure init.control.combinat... |
579f5eca31ae6e9d697bbe6b5ed732868d7a6867 | d406927ab5617694ec9ea7001f101b7c9e3d9702 | /src/set_theory/game/nim.lean | 64a8e2d3059891eb9f046c4aeecdcbd5d1bcbfb9 | [
"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 | 15,728 | lean | /-
Copyright (c) 2020 Fox Thomson. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Fox Thomson, Markus Himmel
-/
import data.nat.bitwise
import set_theory.game.birthday
import set_theory.game.impartial
/-!
# Nim and the Sprague-Grundy theorem
This file contains the de... |
17284f4d016182508d7c88c956d43c5b974bd023 | 8cae430f0a71442d02dbb1cbb14073b31048e4b0 | /src/data/finset/preimage.lean | ba9639d06700d1d2a019b12f43d8af1d4103ee6d | [
"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,193 | 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.set.finite
import algebra.big_operators.basic
/-!
# Preimage of a `finset` under an injective map.
> THIS FILE IS SYNCHRONIZED WITH MATH... |
3c0ef3dab26afa3aa28fcdb75ee6a08f7c9af710 | 4727251e0cd73359b15b664c3170e5d754078599 | /src/order/ideal.lean | de3958a8d8b57bd93e426770d8fd07516aff0ef2 | [
"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 | 16,297 | lean | /-
Copyright (c) 2020 David Wärn. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: David Wärn
-/
import logic.encodable.basic
import order.atoms
import order.upper_lower
/-!
# Order ideals, cofinal sets, and the Rasiowa–Sikorski lemma
## Main definitions
Throughout th... |
af2f9cb7b2281193a4faf9b0c910e59f795d3940 | bbecf0f1968d1fba4124103e4f6b55251d08e9c4 | /src/geometry/manifold/bump_function.lean | ce7319a03ac66f0241604d286f4085dfea3b3df1 | [
"Apache-2.0"
] | permissive | waynemunro/mathlib | e3fd4ff49f4cb43d4a8ded59d17be407bc5ee552 | 065a70810b5480d584033f7bbf8e0409480c2118 | refs/heads/master | 1,693,417,182,397 | 1,634,644,781,000 | 1,634,644,781,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 14,458 | 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.calculus.specific_functions
import geometry.manifold.diffeomorph
import geometry.manifold.instances.real
/-!
# Smooth bump functions on a smooth ma... |
80769b50d21b69c0f4f7d941f13e0742431672d1 | 88fb7558b0636ec6b181f2a548ac11ad3919f8a5 | /tests/lean/run/eval_expr_partial.lean | bbdb4ea7b406f88d8df9b3dc0113f04907d6d6d0 | [
"Apache-2.0"
] | permissive | moritayasuaki/lean | 9f666c323cb6fa1f31ac597d777914aed41e3b7a | ae96ebf6ee953088c235ff7ae0e8c95066ba8001 | refs/heads/master | 1,611,135,440,814 | 1,493,852,869,000 | 1,493,852,869,000 | 90,269,903 | 0 | 0 | null | 1,493,906,291,000 | 1,493,906,291,000 | null | UTF-8 | Lean | false | false | 74 | lean | open tactic
run_cmd to_expr `(bit0 1) >>= eval_expr nat >>= tactic.trace
|
dd6af782614da4c1c7234e68838ca6490f1af61b | 74addaa0e41490cbaf2abd313a764c96df57b05d | /Mathlib/category_theory/adjunction/basic_auto.lean | 0f43de2928d20f68518436f4e3cb6c7a5bb72f7f | [] | 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 | 23,669 | lean | /-
Copyright (c) 2019 Reid Barton. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Reid Barton, Johan Commelin, Bhavik Mehta
-/
import Mathlib.PrePort
import Mathlib.Lean3Lib.init.default
import Mathlib.category_theory.equivalence
import Mathlib.data.equiv.basic
import ... |
2ef967e107ba3f88ab29845d2d17d3cbfe4c02dc | 947b78d97130d56365ae2ec264df196ce769371a | /tests/lean/run/def11.lean | 1b9edc43e500a157f2d092ecfaaa3c9a39e2153d | [
"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,271 | lean | new_frontend
inductive Formula
| eqf : Nat → Nat → Formula
| andf : Formula → Formula → Formula
| impf : Formula → Formula → Formula
| notf : Formula → Formula
| orf : Formula → Formula → Formula
| allf : (Nat → Formula) → Formula
namespace Formula
def implies (a b : Prop) : Prop := a → b
def denote : Formula → Pr... |
4d0ec7e56291e1f7cd002569a3d472d2f8f60cbb | 4fa161becb8ce7378a709f5992a594764699e268 | /src/data/complex/exponential.lean | 5c4c099d53046f0bbec26ce880893ff822c489c8 | [
"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 | 49,784 | lean | /-
Copyright (c) 2018 Chris Hughes. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Chris Hughes, Abhimanyu Pallavi Sudhir
-/
import algebra.geom_sum
import data.nat.choose
import data.complex.basic
/-!
# Exponential, trigonometric and hyperbolic trigonometric functions... |
22ade8ff3c7ef988a55658d59e8998f5cd883782 | cf39355caa609c0f33405126beee2739aa3cb77e | /tests/lean/t10.lean | 10803b328a37772c9b03d41bb86f6bae862fe5b1 | [
"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 | 603 | lean | prelude constant N : Type.{1}
definition B : Type.{1} := Type.{0}
constant ite : B → N → N → N
constant and : B → B → B
constant f : N → N
constant p : B
constant q : B
constant x : N
constant y : N
constant z : N
infixr ` ∧ `:25 := and
notation `if ` c ` then ` t:45 ` else ` e:45 := ite c t e
#check if p ∧ q then f x ... |
8aff9641280e1501e8a5ab49bae509157dc7eda5 | 57c233acf9386e610d99ed20ef139c5f97504ba3 | /src/order/category/NonemptyFinLinOrd.lean | 32042b5820beab9d174e4667b3bb31dc6b56c8e6 | [
"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 | 3,382 | lean | /-
Copyright (c) 2020 Johan Commelin. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Johan Commelin
-/
import data.fintype.order
import order.category.LinearOrder
/-!
# Nonempty finite linear orders
This defines `NonemptyFinLinOrd`, the category of nonempty finite li... |
cccf0a674e81a1c33e933bd76571766bcff004fa | e9078bde91465351e1b354b353c9f9d8b8a9c8c2 | /groupoid_quotient.hlean | e039c50e3f87d7960ad4fd6e7b74cb4fc9e7b159 | [
"Apache-2.0"
] | permissive | EgbertRijke/leansnippets | 09fb7a9813477471532fbdd50c99be8d8fe3e6c4 | 1d9a7059784c92c0281fcc7ce66ac7b3619c8661 | refs/heads/master | 1,610,743,957,626 | 1,442,532,603,000 | 1,442,532,603,000 | 41,563,379 | 0 | 0 | null | 1,440,787,514,000 | 1,440,787,514,000 | null | UTF-8 | Lean | false | false | 7,182 | 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
Declaration of the groupoid quotient
-/
import hit.two_quotient algebra.category.groupoid hit.trunc
open two_quotient eq bool unit relation category e_closure is... |
a85e7ba83e94c853315ca79e1ddf5c36399d6ab6 | 6432ea7a083ff6ba21ea17af9ee47b9c371760f7 | /src/Lean/Elab/Tactic/Conv/Change.lean | 385cbf0c63b5805bd9a90cec881e3cb7547c34a5 | [
"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 | 898 | 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.Tactic.ElabTerm
import Lean.Elab.Tactic.Conv.Basic
namespace Lean.Elab.Tactic.Conv
open Meta
@[builtin_tactic Lean.Parser.Tactic.Conv.cha... |
c40d4989ca18c4d0d4e0e2a1c48f659e0fd84e0c | 69d4931b605e11ca61881fc4f66db50a0a875e39 | /src/data/complex/exponential_bounds.lean | 04c64528d33c13abd1f748f20fe80c339d42ef32 | [
"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 | 2,710 | lean | /-
Copyright (c) 2020 Joseph Myers. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Mario Carneiro, Joseph Myers
-/
import data.complex.exponential
import analysis.special_functions.exp_log
import algebra.continued_fractions.computation.approximation_corollaries
/-!
#... |
a9912f4c88c50cd1f006bfb0ad965d7d43189a1e | fecda8e6b848337561d6467a1e30cf23176d6ad0 | /src/number_theory/lucas_lehmer.lean | 0f779b5d9edd5650ca533ceaf8afd2b1733cd487 | [
"Apache-2.0"
] | permissive | spolu/mathlib | bacf18c3d2a561d00ecdc9413187729dd1f705ed | 480c92cdfe1cf3c2d083abded87e82162e8814f4 | refs/heads/master | 1,671,684,094,325 | 1,600,736,045,000 | 1,600,736,045,000 | 297,564,749 | 1 | 0 | null | 1,600,758,368,000 | 1,600,758,367,000 | null | UTF-8 | Lean | false | false | 17,113 | lean | /-
Copyright (c) 2020 Scott Morrison. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Author: Mario Carneiro, Scott Morrison, Ainsley Pahljina
-/
import tactic.ring_exp
import tactic.interval_cases
import data.nat.parity
import data.zmod.basic
import group_theory.order_of_elemen... |
0164a7340c394d5a057e306beeabb5f9465f0fc4 | 46125763b4dbf50619e8846a1371029346f4c3db | /src/analysis/calculus/fderiv.lean | 7c203d6a6f18849e619c4497d00c58400774a962 | [
"Apache-2.0"
] | permissive | thjread/mathlib | a9d97612cedc2c3101060737233df15abcdb9eb1 | 7cffe2520a5518bba19227a107078d83fa725ddc | refs/heads/master | 1,615,637,696,376 | 1,583,953,063,000 | 1,583,953,063,000 | 246,680,271 | 0 | 0 | Apache-2.0 | 1,583,960,875,000 | 1,583,960,875,000 | null | UTF-8 | Lean | false | false | 80,401 | 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.asymptotics analysis.calculus.tangent_cone
/-!
# The Fréchet derivative
Let `E` and `F` be normed spaces, `f : E ... |
f172aae10364f4df5daaa78d8f5d17f99d210d95 | e846540d974f0d04ca0ccd21f55379175fb829a8 | /syntax.lean | 085343fa3aec82748bc3c2868a74bb9afb946ea5 | [] | no_license | minchaowu/proof-theory | a16ecdde168561269c3a7e758348b3e4c34a2adc | e16141ff21750f957b5604e44e32ac7f6f030015 | refs/heads/master | 1,593,035,082,878 | 1,482,281,443,000 | 1,482,281,443,000 | 74,620,325 | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 35,625 | lean | /-
Copyright (c) 2015 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Author: Leonardo de Moura
Modified by Minchao Wu.
Define propositional calculus, valuation, provability, validity, prove soundness, completeness, compactness.
This file is based on F... |
cad5e2b434f7ac7410249f526678e87f47899db7 | b7f22e51856f4989b970961f794f1c435f9b8f78 | /tests/lean/run/ppbeta.lean | f1ee151890f3fd4c11ed97faff7ed235551648e0 | [
"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 | 286 | lean | import data.int
open [coercion] [class] int
open [coercion] nat
definition lt1 (a b : int) := int.le (int.add a 1) b
infix `<` := lt1
infixl `+` := int.add
theorem lt_add_succ2 (a : int) (n : nat) : a < a + nat.succ n :=
int.le.intro (show a + 1 + n = a + nat.succ n, from sorry)
|
d9c3888026d2897fc2236bb908567fb2a16dd6b8 | 4727251e0cd73359b15b664c3170e5d754078599 | /src/category_theory/limits/creates.lean | f2a49827b2e43cab2e7d939ab900d676647010c1 | [
"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 | 25,972 | 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.basic
open category_theory category_theory.limits
noncomputable theory
namespace category_theory
universes w' w v₁ v₂ v₃ u₁ u₂... |
af956ac400d756a7871174b6780445818f088650 | 6dc0c8ce7a76229dd81e73ed4474f15f88a9e294 | /stage0/src/Lean/Exception.lean | c1c502420af41d0d03f88df0b7e5b0c7c5c0eedc | [
"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 | 3,713 | 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.Message
import Lean.InternalExceptionId
import Lean.Data.Options
import Lean.Util.MonadCache
namespace Lean
/- Exception type used in most Lea... |
20b30198c0e35b7ae8fdfec182548d559547ab9b | 80cc5bf14c8ea85ff340d1d747a127dcadeb966f | /src/data/padics/padic_numbers.lean | 9d1bcd2c337784bdc0a9502a020b04c288c98830 | [
"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 | 37,645 | 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... |
60c6e8feb2e924d3959eb5fcd6aed7e465decd82 | a7eef317ddec01b9fc6cfbb876fe7ac00f205ac7 | /src/group_theory/submonoid/operations.lean | 8721d3289eb279a7799fe8759a856c142ea56d4e | [
"Apache-2.0"
] | permissive | kmill/mathlib | ea5a007b67ae4e9e18dd50d31d8aa60f650425ee | 1a419a9fea7b959317eddd556e1bb9639f4dcc05 | refs/heads/master | 1,668,578,197,719 | 1,593,629,163,000 | 1,593,629,163,000 | 276,482,939 | 0 | 0 | null | 1,593,637,960,000 | 1,593,637,959,000 | null | UTF-8 | Lean | false | false | 15,756 | lean | import group_theory.submonoid.basic
import data.equiv.mul_add
import algebra.group.prod
/-!
# 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
* `submonoid.to_add_submonoid`, `s... |
a8b7d946a13874d8eaae63a9060c15148c13755a | 74addaa0e41490cbaf2abd313a764c96df57b05d | /Mathlib/data/set/intervals/infinite_auto.lean | eb1f792b4e2543b1a1dc6157c4e14c3cf995c3f2 | [] | 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,706 | lean | /-
Copyright (c) 2020 Reid Barton. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Reid Barton
-/
import Mathlib.PrePort
import Mathlib.Lean3Lib.init.default
import Mathlib.data.set.finite
import Mathlib.PostPort
universes u_1
namespace Mathlib
/-!
# Infinitude of i... |
00979c53a13288dfbcf589ff9c3e76f979498b66 | e0038484ecdd1beda33e5d88605201533d5f4297 | /Lean/LEAN01.lean | 9f6ac00e5651fa956bc58f9895959ad23fe992a6 | [
"MIT"
] | permissive | Brethland/LEARNING-STUFF | aa2899800117a90ad5b50b5109ee7aa138a51940 | eb2cef0556efb9a4ce11783f8516789ea48cc344 | refs/heads/master | 1,633,628,909,614 | 1,632,827,784,000 | 1,632,827,784,000 | 206,292,930 | 2 | 1 | null | null | null | null | UTF-8 | Lean | false | false | 1,107 | lean | example (A B : Prop) : A ∧ ¬ B → ¬ B ∧ A :=
assume h, and.intro (and.right h) (and.left h)
lemma em (A : Prop) : A ∨ ¬ A :=
show A ∨ ¬ A, from sorry
example : true := trivial
example (A B : Prop) (a : A) (b : B) : A ∧ B :=
show A ∧ B, from and.intro a b
section exercises
variables A B C D : Prop
example : A ∧ (... |
186c219b573288cccbe0cefd0e643a9b951b0e98 | 947fa6c38e48771ae886239b4edce6db6e18d0fb | /src/algebra/monoid_algebra/basic.lean | be59f29d52cd23ddc2630194da08548b3cc05206 | [
"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 | 67,680 | lean | /-
Copyright (c) 2017 Johannes Hölzl. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Johannes Hölzl, Yury G. Kudryashov, Scott Morrison
-/
import algebra.big_operators.finsupp
import algebra.hom.non_unital_alg
import linear_algebra.finsupp
/-!
# Monoid algebras
When ... |
8b0a5d5ee9a8216526d223aae8ec3a5b61cedcdd | 271e26e338b0c14544a889c31c30b39c989f2e0f | /tests/lean/run/frontend1.lean | ef0785b4732853dad5f9cb005ca50338991a3215 | [
"Apache-2.0"
] | permissive | dgorokho/lean4 | 805f99b0b60c545b64ac34ab8237a8504f89d7d4 | e949a052bad59b1c7b54a82d24d516a656487d8a | refs/heads/master | 1,607,061,363,851 | 1,578,006,086,000 | 1,578,006,086,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 5,846 | lean | import Init.Lean.Elab
open Lean
open Lean.Elab
def run (input : String) (failIff : Bool := true) : MetaIO Unit :=
do env ← MetaIO.getEnv;
opts ← MetaIO.getOptions;
let (env, messages) := process input env opts;
messages.forM $ fun msg => IO.println msg;
when (failIff && messages.hasErrors) $ throw (IO.use... |
d017d08ecb48a797fa78ced6446e1de008f4f2bb | 82b86ba2ae0d5aed0f01f49c46db5afec0eb2bd7 | /stage0/src/Lean/Class.lean | d02d7dc640c2137633d5456b20d33c4f3d42813b | [
"Apache-2.0"
] | permissive | banksonian/lean4 | 3a2e6b0f1eb63aa56ff95b8d07b2f851072d54dc | 78da6b3aa2840693eea354a41e89fc5b212a5011 | refs/heads/master | 1,673,703,624,165 | 1,605,123,551,000 | 1,605,123,551,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 6,155 | 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.Attributes
namespace Lean
inductive ClassEntry
| «class» (name : Name) (hasOutParam : Bool)
| «instance» (name : Name) (ofClass : Name)... |
84252fd79f09238c6575f3b5f3d23354e5935d85 | 6b10c15e653d49d146378acda9f3692e9b5b1950 | /examples/logic/unnamed_156.lean | 09fd79c9cfa0c407d73719da77a44903390723cd | [] | no_license | gebner/mathematics_in_lean | 3cf7f18767208ea6c3307ec3a67c7ac266d8514d | 6d1462bba46d66a9b948fc1aef2714fd265cde0b | refs/heads/master | 1,655,301,945,565 | 1,588,697,505,000 | 1,588,697,505,000 | 261,523,603 | 0 | 0 | null | 1,588,695,611,000 | 1,588,695,610,000 | null | UTF-8 | Lean | false | false | 159 | lean | variables A B C : Prop
-- BEGIN
example (h₁ : A → B) (h₂ : B → C) : A → C :=
begin
intro h₃,
apply h₂,
apply h₁,
apply h₃
end
-- END |
e0879b372867d6e0c76063a2138839ae1794a352 | dfbb669f3f58ceb57cb207dcfab5726a07425b03 | /vscode-lean4/test/test-fixtures/simple/lakefile.lean | 1bbccbd9ac562e5f0a14f4c149a8915c003b613c | [
"Apache-2.0"
] | permissive | leanprover/vscode-lean4 | 8bcf7f06867b3c1d42007fe6da863a7a17444dbb | 6ef0bfa668bdeaad0979e6df10551d42fcc01094 | refs/heads/master | 1,692,247,771,767 | 1,691,608,804,000 | 1,691,608,804,000 | 325,845,305 | 64 | 24 | Apache-2.0 | 1,694,176,429,000 | 1,609,435,614,000 | TypeScript | UTF-8 | Lean | false | false | 197 | lean | import Lake
open Lake DSL
package test {
-- add configuration options here
}
lean_lib Test {
-- add library configuration options here
}
@[default_target]
lean_exe test {
root := `Main
}
|
40e1bfee09849fe39ea771892c36c2c4c0cd9c04 | 6dc0c8ce7a76229dd81e73ed4474f15f88a9e294 | /src/Lean/Meta/Match/MatcherInfo.lean | bd99527581dde20d38bf108b675f8d9f6c8ad1ad | [
"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 | 3,942 | 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
namespace Lean.Meta
namespace Match
/--
A "matcher" auxiliary declaration has the following structure:
- `numParams` parameters
- m... |
7920d3d85e05861ac0cbaf61516b6779ceb3d852 | 690889011852559ee5ac4dfea77092de8c832e7e | /src/algebra/big_operators.lean | 0f5f2b2707d9e4634471fd5792a0286320078a5c | [
"Apache-2.0"
] | permissive | williamdemeo/mathlib | f6df180148f8acc91de9ba5e558976ab40a872c7 | 1fa03c29f9f273203bbffb79d10d31f696b3d317 | refs/heads/master | 1,584,785,260,929 | 1,572,195,914,000 | 1,572,195,913,000 | 138,435,193 | 0 | 0 | Apache-2.0 | 1,529,789,739,000 | 1,529,789,739,000 | null | UTF-8 | Lean | false | false | 33,946 | 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
Some big operators for lists and finite sets.
-/
import tactic.tauto data.list.basic data.finset data.nat.enat
import algebra.group algebra.ordered_group algebra.group_... |
dd441bbf453ee4741e6b232f1877c7ac368a2c23 | d406927ab5617694ec9ea7001f101b7c9e3d9702 | /src/group_theory/commutator.lean | a70850a6c160412329c782c6481448d43287ec10 | [
"Apache-2.0"
] | permissive | alreadydone/mathlib | dc0be621c6c8208c581f5170a8216c5ba6721927 | c982179ec21091d3e102d8a5d9f5fe06c8fafb73 | refs/heads/master | 1,685,523,275,196 | 1,670,184,141,000 | 1,670,184,141,000 | 287,574,545 | 0 | 0 | Apache-2.0 | 1,670,290,714,000 | 1,597,421,623,000 | Lean | UTF-8 | Lean | false | false | 9,654 | lean | /-
Copyright (c) 2021 Jordan Brown, Thomas Browning, Patrick Lutz. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Jordan Brown, Thomas Browning, Patrick Lutz
-/
import data.bracket
import group_theory.subgroup.basic
import tactic.group
/-!
# Commutators of Subgroups
... |
d2e118c264fb43c0096000b6b4d5fc36949668e3 | d642a6b1261b2cbe691e53561ac777b924751b63 | /src/topology/uniform_space/completion.lean | 5e40874f04a24d14bcfbe423dc9f0a85c57d8299 | [
"Apache-2.0"
] | permissive | cipher1024/mathlib | fee56b9954e969721715e45fea8bcb95f9dc03fe | d077887141000fefa5a264e30fa57520e9f03522 | refs/heads/master | 1,651,806,490,504 | 1,573,508,694,000 | 1,573,508,694,000 | 107,216,176 | 0 | 0 | Apache-2.0 | 1,647,363,136,000 | 1,508,213,014,000 | Lean | UTF-8 | Lean | false | false | 24,917 | lean | /-
Copyright (c) 2018 Patrick Massot. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Patrick Massot, Johannes Hölzl
Hausdorff completions of uniform spaces.
The goal is to construct a left-adjoint to the inclusion of complete Hausdorff uniform spaces
into all uniform... |
92a80fda05854bf8667c7aee6d729c6c979cb59f | 0c1546a496eccfb56620165cad015f88d56190c5 | /library/init/meta/injection_tactic.lean | 03103a8cf87c8c245a863a93e6926356a528bf27 | [
"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 | 2,000 | lean | /-
Copyright (c) 2016 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Leonardo de Moura
-/
prelude
import init.meta.tactic init.function
namespace tactic
open nat tactic environment expr list
private meta def mk_intro_name : name → list name → n... |
e66727f78a1d219439629608ca05daa96866ec38 | fe84e287c662151bb313504482b218a503b972f3 | /src/data/function_transfer.lean | be2f32465029625e74e6e2c7461b76d6e98b38bd | [] | no_license | NeilStrickland/lean_lib | 91e163f514b829c42fe75636407138b5c75cba83 | 6a9563de93748ace509d9db4302db6cd77d8f92c | refs/heads/master | 1,653,408,198,261 | 1,652,996,419,000 | 1,652,996,419,000 | 181,006,067 | 4 | 1 | null | null | null | null | UTF-8 | Lean | false | false | 1,120 | lean | /-
Copyright (c) 2019 Neil Strickland. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Neil Strickland
The formation of function types `α → β` is functorial with respect
to equivalences of `α` and `β`. This should be placed in some
more general context.
-/
import lo... |
502a7ca8c673d642bc4c7f0666edcee66b7f2d4e | 2c096fdfecf64e46ea7bc6ce5521f142b5926864 | /src/Lean/Parser/Term.lean | 1385f91e89676e1ac243b0f75119237b92e03124 | [
"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 | Kha/lean4 | 1005785d2c8797ae266a303968848e5f6ce2fe87 | b99e11346948023cd6c29d248cd8f3e3fb3474cf | refs/heads/master | 1,693,355,498,027 | 1,669,080,461,000 | 1,669,113,138,000 | 184,748,176 | 0 | 0 | Apache-2.0 | 1,665,995,520,000 | 1,556,884,930,000 | Lean | UTF-8 | Lean | false | false | 31,396 | 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.Attr
import Lean.Parser.Level
namespace Lean
namespace Parser
namespace Command
def commentBody : Parser :=
{ fn := ... |
22e7d674ebb29d249946442b42d11cc832ce5625 | e0b0b1648286e442507eb62344760d5cd8d13f2d | /stage0/src/Init/Meta.lean | 33939a1e12dd9a5cedbf32eeb6fc0895fb67fd15 | [
"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 | 29,953 | 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 and Sebastian Ullrich
Additional goodies for writing macros
-/
prelude
import Init.Data.Array.Basic
namespace Lean
@[extern c inline "lean_box(LEAN_VERSION_... |
8148c8cd0bd4853ca047ce4765e391787add43df | 9dd3f3912f7321eb58ee9aa8f21778ad6221f87c | /tests/lean/1369.lean | a9321855442852aca96ef5b14df64e98eb58df49 | [
"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 | 715 | lean | open nat
open tactic
meta def match_le (e : expr) : tactic (expr × expr) :=
match expr.is_le e with
| (some r) := return r
| none := tactic.fail "expression is not a leq"
end
meta def nat_lit_le : tactic unit := do
(base_e, bound_e) ← tactic.target >>= match_le,
base ← tactic.eval_expr ℕ base_e,
skip
exam... |
5d1cb76f9b5b66f13b11d33fc85bd540e405b862 | dc253be9829b840f15d96d986e0c13520b085033 | /colimit/pushout.hlean | 2c390ce88132de6d896f53873eb621378f0c9f68 | [
"Apache-2.0"
] | permissive | cmu-phil/Spectral | 4ce68e5c1ef2a812ffda5260e9f09f41b85ae0ea | 3b078f5f1de251637decf04bd3fc8aa01930a6b3 | refs/heads/master | 1,685,119,195,535 | 1,684,169,772,000 | 1,684,169,772,000 | 46,450,197 | 42 | 13 | null | 1,505,516,767,000 | 1,447,883,921,000 | Lean | UTF-8 | Lean | false | false | 9,666 | hlean | /-
Suppose we have three sequences A = (Aₙ, fₙ)ₙ, B = (Bₙ, gₙ)ₙ, C = (Cₙ, hₙ)ₙ with natural
transformations like this: B ← A → C. We can take pushouts pointwise and then take the colimit,
or we can take the colimit of each and then pushout. By the 3x3 lemma these are equivalent.
Authors: Floris van Doorn
-/
i... |
05b59e13b1397f14f44554a803b4133f4c54c0b5 | b7f22e51856f4989b970961f794f1c435f9b8f78 | /tests/lean/run/tactic6.lean | 8a12e820f0f2fb289b8fcb4134a59cebf5e910a0 | [
"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 | 137 | lean | import logic
open tactic (renaming id->id_tac)
theorem tst {A B : Prop} (H1 : A) (H2 : B) : id A
:= by unfold id; assumption
check tst
|
f69b68d69aae06e390942fa60e194b1f49129f09 | 64874bd1010548c7f5a6e3e8902efa63baaff785 | /tests/lean/run/nested_begin.lean | 0e352e569f0fdd9e6954007e9ea119b87019d047 | [
"Apache-2.0"
] | permissive | tjiaqi/lean | 4634d729795c164664d10d093f3545287c76628f | d0ce4cf62f4246b0600c07e074d86e51f2195e30 | refs/heads/master | 1,622,323,796,480 | 1,422,643,069,000 | 1,422,643,069,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 1,227 | lean | import logic data.nat.basic
open nat
inductive vector (A : Type) : nat → Type :=
vnil : vector A zero,
vcons : Π {n : nat}, A → vector A n → vector A (succ n)
namespace vector
definition no_confusion2 {A : Type} {n : nat} {P : Type} {v₁ v₂ : vector A n} : v₁ = v₂ → no_confusion_type P v₁ v₂ :=
assume H₁₂ : v₁ = ... |
4da2f8005d17375a9f641887047585cf3efdaa8d | 8cae430f0a71442d02dbb1cbb14073b31048e4b0 | /src/analysis/inner_product_space/basic.lean | 173e0f028210449d9d41effbf713e5864281837f | [
"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 | 96,952 | lean | /-
Copyright (c) 2019 Zhouhang Zhou. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Zhouhang Zhou, Sébastien Gouëzel, Frédéric Dupuis
-/
import algebra.direct_sum.module
import analysis.complex.basic
import analysis.convex.uniform
import analysis.normed_space.completio... |
44234b1d8c45b54953fb5a9266a6ad2fe4b7d444 | 17d3c61bf162bf88be633867ed4cb201378a8769 | /tests/lean/run/simp_partial_app.lean | 20aba2bc57346a25d8a58d22f13d38640fc2af34 | [
"Apache-2.0"
] | permissive | u20024804/lean | 11def01468fb4796fb0da76015855adceac7e311 | d315e424ff17faf6fe096a0a1407b70193009726 | refs/heads/master | 1,611,388,567,561 | 1,485,836,506,000 | 1,485,836,625,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 684 | lean | open tactic
meta def check_expr (p : pexpr) (t : expr) : tactic unit :=
do e ← to_expr p, guard (expr.alpha_eqv t e)
meta def check_target (p : pexpr) : tactic unit :=
do t ← target, check_expr p t
example (a : list nat) : a = [1, 2] → a^.for nat.succ = [2, 3] :=
begin
intros,
simp [list.for, flip],
check_targ... |
44255f533710909c63d05f9cee9d2d902dcd403c | aa3f8992ef7806974bc1ffd468baa0c79f4d6643 | /tests/lean/notation.lean | e8789e886530372bc99ff9faa2f3e3c60d6713c4 | [
"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 | 395 | lean | import logic data.num data.nat.basic
open num
constant b : num
check b + b + b
check true ∧ false ∧ true
check (true ∧ false) ∧ true
check 2 + (2 + 2)
check (2 + 2) + 2
check 1 = (2 + 3)*2
check 2 + 3 * 2 = 3 * 2 + 2
check (true ∨ false) = (true ∨ false) ∧ true
check true ∧ (false ∨ true)
constant A : Type₁
constant a ... |
2d4791d7d2ce76fde214a6eb04c364c862589a18 | 8cae430f0a71442d02dbb1cbb14073b31048e4b0 | /src/topology/instances/int.lean | 7805d4cb8029c02f928b01bdab806583180653f2 | [
"Apache-2.0"
] | permissive | leanprover-community/mathlib | 56a2cadd17ac88caf4ece0a775932fa26327ba0e | 442a83d738cb208d3600056c489be16900ba701d | refs/heads/master | 1,693,584,102,358 | 1,693,471,902,000 | 1,693,471,902,000 | 97,922,418 | 1,595 | 352 | Apache-2.0 | 1,694,693,445,000 | 1,500,624,130,000 | Lean | UTF-8 | Lean | false | false | 2,399 | 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.int.interval
import topology.metric_space.basic
import order.filter.archimedean
/-!
# Topology on the integers
> THIS FILE IS SYNCHRONIZE... |
31114f0f8a69302176f95adbc5fa69e4cf03d81d | fa02ed5a3c9c0adee3c26887a16855e7841c668b | /src/group_theory/perm/support.lean | a3b7f2979a7322a92478053cb207a4bd5ccfb6e6 | [
"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 | 18,957 | lean | /-
Copyright (c) 2018 Chris Hughes. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Chris Hughes, Aaron Anderson, Yakov Pechersky
-/
import data.finset.sort
import data.fintype.basic
import group_theory.perm.basic
/-!
# Support of a permutation
## Main definitions
In... |
c31ce493db4c340ecdcc1b0fd0060a86c1cb1cd3 | a9d0fb7b0e4f802bd3857b803e6c5c23d87fef91 | /tests/lean/run/stateT1.lean | f33b046f6c4cfd57a2c3a9610daac59f9cae8735 | [
"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 | 867 | lean |
meta_definition mytactic (A : Type) := stateT (list nat) tactic A
attribute [instance]
meta_definition mytactic_is_monad : monad mytactic :=
@stateT_is_monad _ _ _
meta_definition read_lst : mytactic (list nat) :=
stateT.read
meta_definition write_lst : list nat → mytactic unit :=
stateT.write
meta_definition foo ... |
ebc2eb6ac50e455765b7633aa7e17109002a1f02 | 17d3c61bf162bf88be633867ed4cb201378a8769 | /tests/lean/run/opt_param_cc.lean | 82742a52316a3b43e1b78af93379b4fa8af48f25 | [
"Apache-2.0"
] | permissive | u20024804/lean | 11def01468fb4796fb0da76015855adceac7e311 | d315e424ff17faf6fe096a0a1407b70193009726 | refs/heads/master | 1,611,388,567,561 | 1,485,836,506,000 | 1,485,836,625,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 706 | lean | def f (a : nat) (b : nat := a) (c : nat := a) :=
a + b + c
lemma ex1 (a a' b c d : nat) (h : b = c) (h2 : a = a') : f a b d = f a' c d :=
by cc
lemma ex2 (a a' b c d : nat) (h : b = c) (h2 : a = a') : f a b d = f a' c d :=
by rw [h, h2]
set_option pp.beta true
set_option pp.all true
lemma ex3 (a a' b c d : nat) (h ... |
90ccdfbb713d9e07276ef9233ea0c72c6f5818b3 | 9dc8cecdf3c4634764a18254e94d43da07142918 | /src/data/list/nodup.lean | 1a77d853637ca5aa08e27a0e87ddba533e92932f | [
"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 | 14,632 | lean | /-
Copyright (c) 2018 Mario Carneiro. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Mario Carneiro, Kenny Lau
-/
import data.list.lattice
import data.list.pairwise
import data.list.forall2
/-!
# Lists with no duplicates
`list.nodup` is defined in `data/list/defs`. I... |
c416925e7f91dd4aff7d13d3b1f0a3ef412b586e | e030b0259b777fedcdf73dd966f3f1556d392178 | /tests/lean/run/mem_nil.lean | 9a4f50996ae4771728a5ff6e2731c97a8658db19 | [
"Apache-2.0"
] | permissive | fgdorais/lean | 17b46a095b70b21fa0790ce74876658dc5faca06 | c3b7c54d7cca7aaa25328f0a5660b6b75fe26055 | refs/heads/master | 1,611,523,590,686 | 1,484,412,902,000 | 1,484,412,902,000 | 38,489,734 | 0 | 0 | null | 1,435,923,380,000 | 1,435,923,379,000 | null | UTF-8 | Lean | false | false | 73 | lean | universe variables u
example {α : Type u} (a : α) : a ∉ [] :=
sorry
|
e3f89fe8a2a37c4a1df69b88e48ca1ba9604b94e | 6432ea7a083ff6ba21ea17af9ee47b9c371760f7 | /tests/lean/run/815.lean | 0105228f4a579046ccce3f185ed4a9aec6e502b1 | [
"Apache-2.0",
"LLVM-exception",
"NCSA",
"LGPL-3.0-only",
"LicenseRef-scancode-inner-net-2.0",
"BSD-3-Clause",
"LGPL-2.0-or-later",
"Spencer-94",
"LGPL-2.1-or-later",
"HPND",
"LicenseRef-scancode-pcre",
"ISC",
"LGPL-2.1-only",
"LicenseRef-scancode-other-permissive",
"SunPro",
"CMU-Mach"... | permissive | leanprover/lean4 | 4bdf9790294964627eb9be79f5e8f6157780b4cc | f1f9dc0f2f531af3312398999d8b8303fa5f096b | refs/heads/master | 1,693,360,665,786 | 1,693,350,868,000 | 1,693,350,868,000 | 129,571,436 | 2,827 | 311 | Apache-2.0 | 1,694,716,156,000 | 1,523,760,560,000 | Lean | UTF-8 | Lean | false | false | 4,137 | lean | def is_smooth {α β} (f : α → β) : Prop := sorry
class IsSmooth {α β} (f : α → β) : Prop where
(proof : is_smooth f)
instance identity : IsSmooth fun a : α => a := sorry
instance const (b : β) : IsSmooth fun a : α => b := sorry
instance swap (f : α → β → γ) [∀ a, IsSmooth (f a)] : IsSmooth (λ b a => f a b) := sorry
... |
4e8d08f3fe034165299cb87e963d4962106bc1ef | 35677d2df3f081738fa6b08138e03ee36bc33cad | /src/order/filter/pointwise.lean | 082b69d85a8952056a335239fdd0c643eeab9541 | [
"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 | 7,567 | 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... |
e7c79b4898578b9c7ec37f84b4b51e76fa1b29d8 | 9dc8cecdf3c4634764a18254e94d43da07142918 | /src/topology/sheaves/sheaf_condition/pairwise_intersections.lean | 75a18fd7b8c1f3ac2e4900fb865922f59ed69b1d | [
"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 | 21,323 | 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 topology.sheaves.sheaf_condition.sites
import category_theory.limits.preserves.basic
import category_theory.category.pairwise
import category_theory.limits.co... |
a16932d71aebc8584ddf1a292a3644eacac9d036 | 6432ea7a083ff6ba21ea17af9ee47b9c371760f7 | /src/Lean/Widget/UserWidget.lean | f4e3354a71394eff6648a0325359a510703ab6cd | [
"Apache-2.0",
"LLVM-exception",
"NCSA",
"LGPL-3.0-only",
"LicenseRef-scancode-inner-net-2.0",
"BSD-3-Clause",
"LGPL-2.0-or-later",
"Spencer-94",
"LGPL-2.1-or-later",
"HPND",
"LicenseRef-scancode-pcre",
"ISC",
"LGPL-2.1-only",
"LicenseRef-scancode-other-permissive",
"SunPro",
"CMU-Mach"... | permissive | leanprover/lean4 | 4bdf9790294964627eb9be79f5e8f6157780b4cc | f1f9dc0f2f531af3312398999d8b8303fa5f096b | refs/heads/master | 1,693,360,665,786 | 1,693,350,868,000 | 1,693,350,868,000 | 129,571,436 | 2,827 | 311 | Apache-2.0 | 1,694,716,156,000 | 1,523,760,560,000 | Lean | UTF-8 | Lean | false | false | 6,755 | lean | /-
Copyright (c) 2022 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: E.W.Ayers
-/
import Lean.Elab.Eval
import Lean.Server.Rpc.RequestHandling
open Lean
namespace Lean.Widget
/-- A custom piece of code that is run on the editor client.
The e... |
ff9ce73ce467d7b95e676f097e3258ac5f9daebb | 8cae430f0a71442d02dbb1cbb14073b31048e4b0 | /src/linear_algebra/free_module/pid.lean | a54dbec23e0bbb64a1c62097903756bdbc65e8b8 | [
"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 | 29,317 | lean | /-
Copyright (c) 2020 Anne Baanen. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Anne Baanen
-/
import linear_algebra.dimension
import linear_algebra.free_module.basic
import ring_theory.principal_ideal_domain
import ring_theory.finiteness
/-! # Free modules over PI... |
e41f529751b51a92c0e30f8e073ca33ea26f1af9 | 4727251e0cd73359b15b664c3170e5d754078599 | /src/topology/continuous_function/polynomial.lean | 56cfe2d42254814be280ed9e6d091dbf7db08e3c | [
"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 | 6,247 | lean | /-
Copyright (c) 2021 Scott Morrison. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Scott Morrison
-/
import topology.algebra.polynomial
import topology.continuous_function.algebra
import topology.continuous_function.compact
import topology.unit_interval
/-!
# Constr... |
ea1bf9cafc331af99a1d3a7828572adee4b5abf0 | 4d2583807a5ac6caaffd3d7a5f646d61ca85d532 | /src/ring_theory/finiteness.lean | 68dfb94f4e6d47c11d089161fb5b14fd732dbd32 | [
"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 | 35,152 | 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 group_theory.finiteness
import ring_theory.algebra_tower
import ring_theory.ideal.quotient
import ring_theory.noetherian
/-!
# Finiteness conditions in commu... |
4d6baeabf097940438fe999173954516a4074bbb | 78630e908e9624a892e24ebdd21260720d29cf55 | /src/logic_propositional/prop_20.lean | fe2efc52720b4ecf766605dee243d7c236a74504 | [
"CC0-1.0"
] | permissive | tomasz-lisowski/lean-logic-examples | 84e612466776be0a16c23a0439ff8ef6114ddbe1 | 2b2ccd467b49c3989bf6c92ec0358a8d6ee68c5d | refs/heads/master | 1,683,334,199,431 | 1,621,938,305,000 | 1,621,938,305,000 | 365,041,573 | 1 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 309 | lean | namespace prop_20
variables P Q : Prop
theorem prop_20 : ¬ ¬ (P ∧ Q) → ¬ ¬ Q :=
assume h1: ¬ ¬ (P ∧ Q),
have h2: P ∧ Q, from (classical.by_contradiction
(assume h2: ¬ (P ∧ Q),
h1 h2)),
assume h3: ¬ Q,
have h4: Q, from and.right h2,
show false, from h3 h4
-- end namespace
end prop_20 |
72edef23cd6006ec9a7b7ebaafa86fe9f6328aa9 | 35677d2df3f081738fa6b08138e03ee36bc33cad | /src/tactic/doc_commands.lean | 93c6a8b3f3ba1348d14e04ce33517ba3bb280149 | [
"Apache-2.0"
] | permissive | gebner/mathlib | eab0150cc4f79ec45d2016a8c21750244a2e7ff0 | cc6a6edc397c55118df62831e23bfbd6e6c6b4ab | refs/heads/master | 1,625,574,853,976 | 1,586,712,827,000 | 1,586,712,827,000 | 99,101,412 | 1 | 0 | Apache-2.0 | 1,586,716,389,000 | 1,501,667,958,000 | Lean | UTF-8 | Lean | false | false | 15,880 | 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 tactic.fix_reflect_string
/-!
# Documentation commands
We generate html documentation from mathlib. It is convenient to collect lists of tactics, commands... |
33a1afd515001f0eb3a2845613be091b98638fec | d1a52c3f208fa42c41df8278c3d280f075eb020c | /src/Lean/Meta/Tactic/Simp/Rewrite.lean | 34aae00e9cefe6e0458499d1c966e326e9f9d3db | [
"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,243 | 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.SynthInstance
import Lean.Meta.Tactic.Simp.Types
namespace Lean.Meta.Simp
def synthesizeArgs (lemmaName : Nam... |
b265f869bf9daf26f5b90a0fd71354bcf8621889 | 3b1abba731363bfec018d9d2cfee7fd90e1dc93c | /definitions.lean | e734c2ba0f7977f131a5e573158d1705e550ae7f | [] | no_license | minchaowu/Ramsey.lean | dcf4e0845cca6dc02ef898f3fd9123c079c5a1a9 | 8ebbead4869bdf3f4788137411c5f36f2e72943a | refs/heads/master | 1,610,462,544,433 | 1,488,596,497,000 | 1,488,596,497,000 | 72,063,527 | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 1,075 | lean | import data.set data.nat standard
open classical set nat decidable
-------- Definitions and Axioms --------
noncomputable theory
definition tuples {A : Type} (S : set A) (n : ℕ) : set (set A) :=
{ T : set A | T ⊆ S ∧ card T = n ∧ finite T}
lemma sub_tuples {A : Type} (S1 S2 : set A) (H : S1 ⊆ S2) (n : ℕ) : tuples ... |
c8dcde8abaee28a5b837a159ec54e77f3dad9be2 | f4e8ebc2be0df6ce96aeff2aea4781e55522cb21 | /src/solutions/00_first_proofs.lean | 35016ccbe09048b8d8e341709e6500fa29b18338 | [
"Apache-2.0"
] | permissive | robertylewis/tutorials | fb8a78d1352405077d4c82c6a04deabb32c1e37b | d3e1ac9ce73b9ed93a20036ce2a354ee923c783e | refs/heads/master | 1,666,261,949,784 | 1,591,464,085,000 | 1,591,464,607,000 | 270,056,466 | 0 | 0 | Apache-2.0 | 1,591,465,315,000 | 1,591,465,314,000 | null | UTF-8 | Lean | false | false | 18,033 | lean | /-
This file is intended for Lean beginners. The goal is to demonstrate what it feels like to prove
things using Lean and mathlib. Complicated definitions and theory building are not covered.
Everything is covered again more slowly and with exercises in the next files.
-/
-- We want real numbers and their basic proper... |
a5b1f07df63738c12fbb36a10022b5b3e8b295f1 | d406927ab5617694ec9ea7001f101b7c9e3d9702 | /src/data/sym/card.lean | ce49ebe29e323dad399bc83eaf461c2167083fbf | [
"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 | 8,795 | lean | /-
Copyright (c) 2021 Yaël Dillies, Bhavik Mehta. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Yaël Dillies, Bhavik Mehta, Huỳnh Trần Khanh, Stuart Presnell
-/
import algebra.big_operators.basic
import data.finset.sym
import data.fintype.sum
/-!
# Stars and bars
In... |
23d9249a8b90998a7736fc8c6dcb26260252b18b | b04a2b9331022307985cb4dee8a75dd804625569 | /hockeystick.lean | 9585c6d3037f27050a6ba87d6c42855dad481456 | [] | no_license | tjhance/lean-project | 558de3b6f88b5b12241ec8d0803027a32eaea13f | c00a01e02ae2fee4e90d48bfd8504d2d45fdb43c | refs/heads/master | 1,588,096,917,016 | 1,556,580,095,000 | 1,556,580,106,000 | 175,465,730 | 3 | 1 | null | null | null | null | UTF-8 | Lean | false | false | 5,200 | lean | import data.nat.choose
import data.set
import data.set.finite
import data.multiset
import data.finset
import data.list
import data.finset algebra.big_operators
import algebra.big_operators
import init.algebra.functions
import algebra.group_power
#eval choose 5 4
#check nat.rec_on
/- Collaboration between
Travis Han... |
855e1ea6811c7b89a462de47312362546653acd6 | 6432ea7a083ff6ba21ea17af9ee47b9c371760f7 | /tests/lean/interactive/lean3HoverIssue.lean | 885a59e73ceba9ad0d8a269526c9189e8c7d0999 | [
"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 | 751 | lean | example (x y : Nat) (h : x = y) : y = x := by exact h.symm
--^ textDocument/hover
--^ textDocument/hover
example (x y : Nat) (h : x = y) : y = x := h.symm
--^ textDocument/... |
702c197ca645d24187ce70507578e5790a67cf10 | d406927ab5617694ec9ea7001f101b7c9e3d9702 | /src/data/num/basic.lean | 3a95ab7f0b8e91c01710894bed1de270189f309b | [
"Apache-2.0"
] | permissive | alreadydone/mathlib | dc0be621c6c8208c581f5170a8216c5ba6721927 | c982179ec21091d3e102d8a5d9f5fe06c8fafb73 | refs/heads/master | 1,685,523,275,196 | 1,670,184,141,000 | 1,670,184,141,000 | 287,574,545 | 0 | 0 | Apache-2.0 | 1,670,290,714,000 | 1,597,421,623,000 | Lean | UTF-8 | Lean | false | false | 16,916 | 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, Mario Carneiro
-/
/-!
# Binary representation of integers using inductive types
> THIS FILE IS SYNCHRONIZED WITH MATHLIB4.
> https://github.com/leanprover-c... |
3324981624928831fbc21045bcd0ede958ccdf0a | 88fb7558b0636ec6b181f2a548ac11ad3919f8a5 | /tests/lean/run/quote1.lean | 655606efbb8a33bfde2a4d9158ea8718fe9bea8e | [
"Apache-2.0"
] | permissive | moritayasuaki/lean | 9f666c323cb6fa1f31ac597d777914aed41e3b7a | ae96ebf6ee953088c235ff7ae0e8c95066ba8001 | refs/heads/master | 1,611,135,440,814 | 1,493,852,869,000 | 1,493,852,869,000 | 90,269,903 | 0 | 0 | null | 1,493,906,291,000 | 1,493,906,291,000 | null | UTF-8 | Lean | false | false | 313 | lean | open tactic list
meta definition foo (a : pexpr) : pexpr :=
`(%%a + %%a + %%a + b)
example (a b : nat) : a = a :=
by do
a ← get_local `a,
t1 ← mk_app ``has_add.add [a, a],
t2 ← to_expr (foo (to_pexpr t1)),
trace t2,
r ← mk_app (`eq.refl) [a],
exact r
private def f := unit
#check ``f
|
9d9dda621c48686d7705aad8f859dc53e0562ac9 | ebb7367fa8ab324601b5abf705720fd4cc0e8598 | /algebra/free_commutative_group.hlean | a4599682dcfae7513aa0988f844cb550fbf4a274 | [
"Apache-2.0"
] | permissive | radams78/Spectral | 3e34916d9bbd0939ee6a629e36744827ff27bfc2 | c8145341046cfa2b4960ef3cc5a1117d12c43f63 | refs/heads/master | 1,610,421,583,830 | 1,481,232,014,000 | 1,481,232,014,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 7,446 | 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, Egbert Rijke
Constructions with groups
-/
import algebra.group_theory hit.set_quotient types.list types.sum .free_group
open eq algebra is_trunc set_quotient rel... |
1fcbf4b83e8edb00aeb993ea33f486c02993c93d | 4727251e0cd73359b15b664c3170e5d754078599 | /src/analysis/normed_space/units.lean | 2115426c1fa3c9cb2222f7b97577ed6c9de8f921 | [
"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 | 12,010 | lean | /-
Copyright (c) 2020 Heather Macbeth. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Heather Macbeth
-/
import analysis.specific_limits.normed
/-!
# The group of units of a complete normed ring
This file contains the basic theory for the group of units (invertible e... |
3fb8dfdddd4f40288b3ec4cc51df8ca351fe2473 | d9d511f37a523cd7659d6f573f990e2a0af93c6f | /src/set_theory/surreal/dyadic.lean | 220a7b15e8a91710337e3fbe514bc000b6d6c61e | [
"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 | 8,467 | lean | /-
Copyright (c) 2021 Apurva Nakade. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Apurva Nakade
-/
import set_theory.surreal.basic
import ring_theory.localization
/-!
# Dyadic numbers
Dyadic numbers are obtained by localizing ℤ away from 2. They are the initial obje... |
73a7348a3d74ab90c9d26791cc891a0b142b3ac2 | 05f637fa14ac28031cb1ea92086a0f4eb23ff2b1 | /tests/lean/leak3.lean | e67141864c9ed1b8644787a72f78d66f7f9991e0 | [
"Apache-2.0"
] | permissive | codyroux/lean0.1 | 1ce92751d664aacff0529e139083304a7bbc8a71 | 0dc6fb974aa85ed6f305a2f4b10a53a44ee5f0ef | refs/heads/master | 1,610,830,535,062 | 1,402,150,480,000 | 1,402,150,480,000 | 19,588,851 | 2 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 14 | lean | print true = a |
b5fe750b5719fbfb7e20bcdd12b8d9483eec8751 | 86f6f4f8d827a196a32bfc646234b73328aeb306 | /examples/logic/unnamed_2051.lean | b3d0c3ad9baf8781517b783c6030867f479d970c | [] | no_license | jamescheuk91/mathematics_in_lean | 09f1f87d2b0dce53464ff0cbe592c568ff59cf5e | 4452499264e2975bca2f42565c0925506ba5dda3 | refs/heads/master | 1,679,716,410,967 | 1,613,957,947,000 | 1,613,957,947,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 165 | lean | import data.real.basic
variables (x y : ℝ)
-- BEGIN
example (h : x^2 = 1) : x = 1 ∨ x = -1 :=
sorry
example (h : x^2 = y^2) : x = y ∨ x = -y :=
sorry
-- END |
d2b3095cc5faaf370436cb27000d5ada6aacc270 | f5f7e6fae601a5fe3cac7cc3ed353ed781d62419 | /src/data/subtype.lean | 3181ec9737b3714d85f4012e70226f14be00be6b | [
"Apache-2.0"
] | permissive | EdAyers/mathlib | 9ecfb2f14bd6caad748b64c9c131befbff0fb4e0 | ca5d4c1f16f9c451cf7170b10105d0051db79e1b | refs/heads/master | 1,626,189,395,845 | 1,555,284,396,000 | 1,555,284,396,000 | 144,004,030 | 0 | 0 | Apache-2.0 | 1,533,727,664,000 | 1,533,727,663,000 | null | UTF-8 | Lean | false | false | 3,102 | 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
-/
-- Lean complains if this section is turned into a namespace
section subtype
variables {α : Sort*} {p : α → Prop}
@[simp] theorem subtype.forall {q : {a // p a} → Pr... |
83d8149df435222ce56acacb6b284502f028171e | 98beff2e97d91a54bdcee52f922c4e1866a6c9b9 | /src/category/element.lean | 8555aa8c3e30dca087258a52817055b016b6cba3 | [] | no_license | b-mehta/topos | c3fc43fb04ba16bae1965ce5c26c6461172e5bc6 | c9032b11789e36038bc841a1e2b486972421b983 | refs/heads/master | 1,629,609,492,867 | 1,609,907,263,000 | 1,609,907,263,000 | 240,943,034 | 43 | 3 | null | 1,598,210,062,000 | 1,581,877,668,000 | Lean | UTF-8 | Lean | false | false | 1,389 | lean | import category_theory.limits.shapes.binary_products
import category_theory.limits.shapes.terminal
import category_theory.limits.limits
import category_theory.limits.types
namespace category_theory
open limits
noncomputable theory
universes v u
variables {C : Type u} [category.{v} C]
variable {Q : C}
section prods
... |
eda4da582aad3cdf46750f9a992868175cb0e2d4 | 57c233acf9386e610d99ed20ef139c5f97504ba3 | /src/data/equiv/list.lean | 1f3b94714553e8f50d60a6df34fc2ed672a6e4d3 | [
"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,094 | lean | /-
Copyright (c) 2018 Mario Carneiro. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Mario Carneiro
-/
import data.equiv.denumerable
import data.finset.sort
/-!
# Equivalences involving `list`-like types
This file defines some additional constructive equivalences usi... |
f394005bded70e3e90eacd0b44e5fdd546f3e0b7 | efa51dd2edbbbbd6c34bd0ce436415eb405832e7 | /20161026_ICTAC_Tutorial/ex13.lean | aa25140bceaf8cb5e78163f3fadc0007e6b5b3a7 | [
"Apache-2.0"
] | permissive | leanprover/presentations | dd031a05bcb12c8855676c77e52ed84246bd889a | 3ce2d132d299409f1de269fa8e95afa1333d644e | refs/heads/master | 1,688,703,388,796 | 1,686,838,383,000 | 1,687,465,742,000 | 29,750,158 | 12 | 9 | Apache-2.0 | 1,540,211,670,000 | 1,422,042,683,000 | Lean | UTF-8 | Lean | false | false | 482 | lean | /- Beta reduction -/
constants A B C : Type
constant f : A → B
constant g : B → C
constant h : A → A
constants (a : A) (b : B)
eval (λ x : A, x) a -- a
eval (λ x : A, b) a -- b
eval (λ x : A, b) (h a) -- b
eval (λ x : A, g (f x)) a -- g (f a)
eval (λ (v : B → C) (u :... |
9e14cee5dbdf44eb3d449e8647b0eb11a9515a0b | b7f22e51856f4989b970961f794f1c435f9b8f78 | /library/algebra/category/functor.lean | d4488cef4bc8cab846bf8f78d443a79ea245db09 | [
"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 | 4,205 | lean | /-
Copyright (c) 2014 Floris van Doorn. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Author: Floris van Doorn
-/
import .basic
import logic.cast
open function
open category eq eq.ops heq
structure functor (C D : Category) : Type :=
(object : C → D)
(morphism : Π⦃a b : C⦄... |
aa865691b709b2985e165c7473c720a8505ea114 | 4d2583807a5ac6caaffd3d7a5f646d61ca85d532 | /src/topology/order/lattice.lean | 29460e9a48f3d3b77700d8d729539da005f67fce | [
"Apache-2.0"
] | permissive | AntoineChambert-Loir/mathlib | 64aabb896129885f12296a799818061bc90da1ff | 07be904260ab6e36a5769680b6012f03a4727134 | refs/heads/master | 1,693,187,631,771 | 1,636,719,886,000 | 1,636,719,886,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 2,873 | lean | /-
Copyright (c) 2021 Christopher Hoskin. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Christopher Hoskin
-/
import topology.basic
import topology.constructions
import topology.algebra.ordered.basic
/-!
# Topological lattices
In this file we define mixin classes `h... |
3a7394e970cd3b4ae4db01a2bc1f78c52a9985bb | cf39355caa609c0f33405126beee2739aa3cb77e | /tests/lean/run/section4.lean | 888ab5d0743208a3f2a193d24805ea0fc9c0b134 | [
"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 | 639 | lean | set_option pp.universes true
set_option pp.implicit true
section
universe k
parameter A : Type
section
universe variable l
universe variable u
parameter B : Type
definition foo (a : A) (b : B) := b
inductive mypair
| mk : A → B → mypair
#print mypair.rec
#check mypair.mk
d... |
819d3c56b84bc31e9e53f0e0edb236e5292f3f90 | 2c41ae31b2b771ad5646ad880201393f5269a7f0 | /Lean/Examples/Parnas/Functional_Decomposition.lean | 122568f9301febdbd95f49caf7a0749ec4a3691e | [] | no_license | kevinsullivan/Boehm | 926f25bc6f1a8b6bd47d333d936fdfc278228312 | 55208395bff20d48a598b7fa33a4d55a2447a9cf | refs/heads/master | 1,586,127,134,302 | 1,488,252,326,000 | 1,488,252,326,000 | 32,836,930 | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 6,146 | lean | import Examples.Parnas.DesignStructure
import SystemModel.System
import Qualities.Changeable
import Examples.Parnas.Shared_Info
set_option eqn_compiler.max_steps 256
inductive kwicParameter | computer | corpus | user
| alph_abs | alph_alg | alph_data
| circ_abs | circ_a... |
27ab9cd99afd71d072a2ce64991af35bc3f46f20 | aa5a655c05e5359a70646b7154e7cac59f0b4132 | /src/Init/Classical.lean | 5000a451cb2567d1653d2070113aa02307a237fe | [
"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 | 5,263 | 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
-/
prelude
import Init.Core
import Init.NotationExtra
universes u v
/- Classical reasoning support -/
namespace Classical
axiom choice {α : Sort u} : Nonem... |
56b3b82569ec93da4eedf034dd1978e831dd34ac | 8cae430f0a71442d02dbb1cbb14073b31048e4b0 | /src/measure_theory/function/jacobian.lean | c7469efe8f991e63206a8806c8922c5b104804c5 | [
"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 | 70,967 | 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.calculus.inverse
import measure_theory.constructions.borel_space.continuous_linear_map
import measure_theory.covering.besicovitch_vector_space
i... |
ae5fa87ffef748e30f44a578fa88477d5b7be2e8 | 02fbe05a45fda5abde7583464416db4366eedfbf | /library/data/buffer.lean | d72e7b72ccd9b20cfb93130d79af39beac7f7360 | [
"Apache-2.0"
] | permissive | jasonrute/lean | cc12807e11f9ac6b01b8951a8bfb9c2eb35a0154 | 4be962c167ca442a0ec5e84472d7ff9f5302788f | refs/heads/master | 1,672,036,664,637 | 1,601,642,826,000 | 1,601,642,826,000 | 260,777,966 | 0 | 0 | Apache-2.0 | 1,588,454,819,000 | 1,588,454,818,000 | null | UTF-8 | Lean | false | false | 4,838 | 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
-/
universes u w
def buffer (α : Type u) := Σ n, array n α
def mk_buffer {α : Type u} : buffer α :=
⟨0, {data := λ i, fin.elim0 i}⟩
def array.to_buffer {α :... |
12f8014f1e37866160f7679d29b29ddc4639b8fd | 59aed81a2ce7741e690907fc374be338f4f88b6f | /src/math-688/lectures/lec-4.lean | 7549697e965fb8c3b2b19299fbe272c63b830942 | [] | no_license | agusakov/math-688-lean | c84d5e1423eb208a0281135f0214b91b30d0ef48 | 67dc27ebff55a74c6b5a1c469ba04e7981d2e550 | refs/heads/main | 1,679,699,340,788 | 1,616,602,782,000 | 1,616,602,782,000 | 332,894,454 | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 55 | lean | /- 6 Sep 2019 -/
-- bipartite graphs, hamiltonian cycle |
3763335c85744c5e4f9bc06c9874e7bc21cc9294 | d406927ab5617694ec9ea7001f101b7c9e3d9702 | /src/algebra/group/with_one/units.lean | 41aff905b5f1f79fe9c87209ca184dfc73995ad4 | [
"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 | 896 | lean | /-
Copyright (c) 2018 Mario Carneiro. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Mario Carneiro, Johan Commelin
-/
import algebra.group.with_one.basic
import algebra.group_with_zero.units.basic
/-!
# Isomorphism between a group and the units of itself adjoined wit... |
02693167e5946427b5a8cb71a5531537f05316e7 | 367134ba5a65885e863bdc4507601606690974c1 | /src/data/polynomial/basic.lean | af0b3cd2baeb21264202756bc8edeedb58c81ab7 | [
"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 | 9,379 | 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 tactic.ring_exp
import tactic.chain
import algebra.monoid_algebra
import data.finset.sort
/-!
# Theory of univaria... |
26e29725e83695e3df64b97f81245534167472a2 | aa5a655c05e5359a70646b7154e7cac59f0b4132 | /src/Lean/Util/ReplaceExpr.lean | 2b708ba758f5ab0b4b484ad56c952fcf01e05792 | [
"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 | 3,004 | lean | /-
Copyright (c) 2020 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Leonardo de Moura
-/
import Lean.Expr
namespace Lean
namespace Expr
namespace ReplaceImpl
abbrev cacheSize : USize := 8192
structure State where
keys : Array Expr -- Re... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.