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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
229070e02d87ce3f7bcb85bf1ddb022e8da1f1f1 | 85d23ae5fcdcd77981feb67549852ff901e8a583 | /cubes_fin.lean | 6acb93c7d847f3cb794d14f78aed04fc33704218 | [] | no_license | javra/cubes | 5b480abcf1a869335a82b4fb5357ec4d16ab56bc | 734bdf71b9086b0ba9ef7dba3ede0c71f10872cc | refs/heads/master | 1,611,513,591,851 | 1,489,495,303,000 | 1,489,495,303,000 | 84,469,571 | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 2,825 | lean | /- THE CUBE CATEGORY ON fiITE SETS -/
import .cubes .fi
open cmonad fi nat
universes u v
def cfi (n : ℕ) := cmonad (fi n)
/- Projecting at the i-th dimension -/
-- TODO generalize this to arbitrary elementary surjections?
def cproj (b : bool) : Π {m}, fi (m + 1) → cmor (fi (m + 1)) (fi m)
| m fi.zero fi.zero ... |
ab5bc8ec0179691978ed6759d00d19e8ac4b7dd1 | 30b012bb72d640ec30c8fdd4c45fdfa67beb012c | /core/default.lean | f46a678ae6f45e6bd718d524c4b864272ba2a63d | [
"Apache-2.0"
] | permissive | kckennylau/mathlib | 21fb810b701b10d6606d9002a4004f7672262e83 | 47b3477e20ffb5a06588dd3abb01fe0fe3205646 | refs/heads/master | 1,634,976,409,281 | 1,542,042,832,000 | 1,542,319,733,000 | 109,560,458 | 0 | 0 | Apache-2.0 | 1,542,369,208,000 | 1,509,867,494,000 | Lean | UTF-8 | Lean | false | false | 23 | lean |
import core.data.list
|
27cad3b0f77e70000c3f6d71747714e3b363492c | 4727251e0cd73359b15b664c3170e5d754078599 | /src/algebra/homology/exact.lean | cb4411a7c6047c1b79bcfca0b23848200c40ba58 | [
"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,656 | lean | /-
Copyright (c) 2020 Markus Himmel. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Markus Himmel
-/
import algebra.homology.image_to_kernel
/-!
# Exact sequences
In a category with zero morphisms, images, and equalizers we say that `f : A ⟶ B` and `g : B ⟶ C`
are ex... |
fb8387dfdc9a008b2e1f4e7cebbfe8b34dd40380 | 8b147c3d61a55005ca839480a4045e69683f7655 | /locally_nameless.lean | 3a1c770a682058adfde4ed70820be3d5b07a1d06 | [] | no_license | dselsam/unrealistic_compiler | ce69efac0d573642b67f44a63eb5f18cdf596b27 | 70514de492a6a1ed705ad247333ae5b3f8455a83 | refs/heads/master | 1,609,483,664,302 | 1,500,654,169,000 | 1,500,654,169,000 | 97,516,326 | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 2,127 | lean | import .atom data.hash_map
namespace locally_nameless
inductive type : Type
| base : type
| arrow : type → type → type
inductive exp : Type
| var_b : ℕ → exp
| var_f : atom → exp
| const : ℕ → exp
| abs : exp → exp
| app : exp → exp → exp
open exp
def subst_exp (v:atom) (s:exp) : exp → exp
| (var_b n) := var... |
020b4c1368f58001b0c46ab8a425796c2ee58361 | 8cae430f0a71442d02dbb1cbb14073b31048e4b0 | /test/omega.lean | 5d0425d193d1169b00df0a149c9d3816a10dfdcd | [
"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,243 | lean | /-
Test cases for omega. Most of the examples are from John Harrison's
Handbook of Practical Logic and Automated Reasoning.
-/
import data.fintype.basic
import tactic.omega
example (n : ℤ) : n - 1 ≠ n := by omega
example (x : int) : (x = 5 ∨ x = 7) → 2 < x := by omega
example (x : int) : x ≤ -x → x ≤ 0 := by omega
ex... |
79436b2bea9a8ca44f4fd86ed1dbecd0c7fc3e69 | 74addaa0e41490cbaf2abd313a764c96df57b05d | /Mathlib/algebra/homology/chain_complex.lean | b158c0fc9bfbe932f73ed2e4172d1ba8f0e37fce | [] | 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,149 | 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.data.int.basic
import Mathlib.category_theory.graded_object
import Mathlib.category_theory.... |
093d0ab60ab4ef1dc7d2ea790f5deecbdfa37380 | 022547453607c6244552158ff25ab3bf17361760 | /src/algebra/indicator_function.lean | 6ccdfdc408fef5d9b9cb7f1fd977351a64fb8522 | [
"Apache-2.0"
] | permissive | 1293045656/mathlib | 5f81741a7c1ff1873440ec680b3680bfb6b7b048 | 4709e61525a60189733e72a50e564c58d534bed8 | refs/heads/master | 1,687,010,200,553 | 1,626,245,646,000 | 1,626,245,646,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 20,169 | lean | /-
Copyright (c) 2020 Zhouhang Zhou. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Zhouhang Zhou
-/
import algebra.group.pi
import group_theory.group_action
import algebra.support
import data.finset.lattice
/-!
# Indicator function
- `indicator (s : set α) (f : α → ... |
95c7df3f64a4c9ff21d8c50f79368092e3bad6f3 | 3f7026ea8bef0825ca0339a275c03b911baef64d | /src/data/set/finite.lean | 5c6623bc191abc08d032d846bc15986b48fb7584 | [
"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 | 21,331 | lean | /-
Copyright (c) 2017 Johannes Hölzl. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Johannes Hölzl, Mario Carneiro
Finite sets.
-/
import logic.function
import data.nat.basic data.fintype data.set.lattice data.set.function
open set lattice function
universes u v w ... |
e990eb16d34860796201138076c3ae797468c270 | 4fa161becb8ce7378a709f5992a594764699e268 | /src/algebra/geom_sum.lean | 8bf0634dd7fab97a3bedcb559c429047bc7848f3 | [
"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 | 7,399 | lean | /-
Copyright (c) 2019 Neil Strickland. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Neil Strickland
Sums of finite geometric series
-/
import algebra.group_with_zero_power
import algebra.big_operators
universe u
variable {α : Type u}
open finset
open_locale big_o... |
287ce30299f34c02a024eb0a3dd77982833c612b | 6432ea7a083ff6ba21ea17af9ee47b9c371760f7 | /src/Lean/Elab/Frontend.lean | 080687cae980970ee19ebde3093170217358d929 | [
"Apache-2.0",
"LLVM-exception",
"NCSA",
"LGPL-3.0-only",
"LicenseRef-scancode-inner-net-2.0",
"BSD-3-Clause",
"LGPL-2.0-or-later",
"Spencer-94",
"LGPL-2.1-or-later",
"HPND",
"LicenseRef-scancode-pcre",
"ISC",
"LGPL-2.1-only",
"LicenseRef-scancode-other-permissive",
"SunPro",
"CMU-Mach"... | permissive | leanprover/lean4 | 4bdf9790294964627eb9be79f5e8f6157780b4cc | f1f9dc0f2f531af3312398999d8b8303fa5f096b | refs/heads/master | 1,693,360,665,786 | 1,693,350,868,000 | 1,693,350,868,000 | 129,571,436 | 2,827 | 311 | Apache-2.0 | 1,694,716,156,000 | 1,523,760,560,000 | Lean | UTF-8 | Lean | false | false | 5,148 | 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.Elab.Import
import Lean.Elab.Command
import Lean.Util.Profile
import Lean.Server.References
namespace Lean.Elab.Frontend
st... |
5c9ca5c1affba1c93059b67128037909e12f5306 | ff5230333a701471f46c57e8c115a073ebaaa448 | /library/init/meta/exceptional.lean | 1edb35b29983f9df70d01bf588a7e49eb9745c95 | [
"Apache-2.0"
] | permissive | stanford-cs242/lean | f81721d2b5d00bc175f2e58c57b710d465e6c858 | 7bd861261f4a37326dcf8d7a17f1f1f330e4548c | refs/heads/master | 1,600,957,431,849 | 1,576,465,093,000 | 1,576,465,093,000 | 225,779,423 | 0 | 3 | Apache-2.0 | 1,575,433,936,000 | 1,575,433,935,000 | null | UTF-8 | Lean | false | false | 1,639 | 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.category.monad init.meta.format init.util
/-
Remark: we use a function that produces a format object as the exception information.
Motiv... |
3f3e05626907afe115905f5cef9f775497a92b95 | 8e381650eb2c1c5361be64ff97e47d956bf2ab9f | /src/sheaves/presheaf_of_rings_extension.lean | 2098f62785644eccb59e354636a9d46000954b9b | [] | no_license | alreadydone/lean-scheme | 04c51ab08eca7ccf6c21344d45d202780fa667af | 52d7624f57415eea27ed4dfa916cd94189221a1c | refs/heads/master | 1,599,418,221,423 | 1,562,248,559,000 | 1,562,248,559,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 9,671 | lean | /-
Presheaf of rings extension.
https://stacks.math.columbia.edu/tag/009N
-/
import to_mathlib.opens
import sheaves.covering.covering
import sheaves.presheaf_of_rings
import sheaves.presheaf_of_rings_on_basis
import sheaves.stalk_of_rings_on_standard_basis
universes u v w
open topological_space
open lattice
ope... |
d231c6765353959445216c4babbf9ae7a8ccca0e | 4bcaca5dc83d49803f72b7b5920b75b6e7d9de2d | /stage0/src/Lean/Server/FileSource.lean | f12bf73ee994b9e71b7e7153b9979e3f3a03b124 | [
"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 | 2,501 | lean | /-
Copyright (c) 2020 Marc Huisinga. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Marc Huisinga
-/
import Lean.Data.Lsp
namespace Lean.Lsp
class FileSource (α : Type) where
fileSource : α → DocumentUri
export FileSource (fileSource)
instance : FileSource Locati... |
11c55a4f957c31d21bc49321dd97baf9e3c36921 | 8d65764a9e5f0923a67fc435eb1a5a1d02fd80e3 | /src/algebra/gcd_monoid/multiset.lean | 26af4c8b20bc9a7d3f9cce778a1181edabc5c9d2 | [
"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 | 5,096 | lean | /-
Copyright (c) 2020 Aaron Anderson. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Aaron Anderson
-/
import data.multiset.lattice
import algebra.gcd_monoid
/-!
# GCD and LCM operations on multisets
## Main definitions
- `multiset.gcd` - the greatest common denomin... |
6e491d0f4fee6f2a607cdf2b16941c7a4b8423c7 | 95a02f25ddbaf30f9e6fdb8043e6fd3c197ea01c | /src/objects.lean | 349009e24290d6eedc9364b2c2116963c01e6b2f | [
"MIT"
] | permissive | praalhans/lean-abs | b23aad54878c06f5a495dfff63260b72d17e9b99 | 5d23eec7234c880f5ebc0d7b831caf55119edef8 | refs/heads/master | 1,587,416,771,564 | 1,575,885,115,000 | 1,575,885,115,000 | 169,097,861 | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 6,271 | lean | /- Copyright 2019 (c) Hans-Dieter Hiep. All rights reserved. Released under MIT license as described in the file LICENSE. -/
import syntax
universe u
open signature list
/- Fix a signature. We consider an interpretation of reference types and data types. Reference types are interpreted as object identities. Each ob... |
7dd75adb57e93b6cd263763b744547a6da62b998 | 8cae430f0a71442d02dbb1cbb14073b31048e4b0 | /src/group_theory/perm/support.lean | 78fa4c4dc079a0cbedd54b9c37f78396e40e94e0 | [
"Apache-2.0"
] | permissive | leanprover-community/mathlib | 56a2cadd17ac88caf4ece0a775932fa26327ba0e | 442a83d738cb208d3600056c489be16900ba701d | refs/heads/master | 1,693,584,102,358 | 1,693,471,902,000 | 1,693,471,902,000 | 97,922,418 | 1,595 | 352 | Apache-2.0 | 1,694,693,445,000 | 1,500,624,130,000 | Lean | UTF-8 | Lean | false | false | 21,064 | 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.card
import data.fintype.basic
import group_theory.perm.basic
/-!
# Support of a permutation
> THIS FILE IS SYNCHRON... |
0b5e06c57f7095cf1e158c346f957f7c1ff69d4a | d9d511f37a523cd7659d6f573f990e2a0af93c6f | /src/data/complex/basic.lean | d214ec8dfc41ae9f6a84a77deb8b66988571eedd | [
"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 | 28,113 | lean | /-
Copyright (c) 2017 Kevin Buzzard. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Kevin Buzzard, Mario Carneiro
-/
import data.real.sqrt
/-!
# The complex numbers
The complex numbers are modelled as ℝ^2 in the obvious way and it is shown that they form a field
of c... |
1b7df030f024ec42b2cddbe134941878668d5194 | 6432ea7a083ff6ba21ea17af9ee47b9c371760f7 | /src/Init/System/FilePath.lean | 80cc352c1936cbcd2105146dcfe40c79354fe542 | [
"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,214 | lean | /-
Copyright (c) 2019 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Leonardo de Moura, Sebastian Ullrich
-/
prelude
import Init.System.Platform
import Init.Data.String.Basic
import Init.Data.Repr
import Init.Data.ToString.Basic
namespace System... |
8d7603f3c4e165c27534d2864ac0eeb4b2a1fc30 | d406927ab5617694ec9ea7001f101b7c9e3d9702 | /src/algebra/order/pi.lean | bc62e3627bcc2ef4829eca184813847eede74779 | [
"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,071 | lean | /-
Copyright (c) 2018 Simon Hudon. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Simon Hudon, Patrick Massot
-/
import algebra.order.ring.defs
import algebra.ring.pi
import tactic.positivity
/-!
# Pi instances for ordered groups and monoids
This file defines instanc... |
d2af3abc5623536d20d045c4b42eec8278a0f9ee | 359199d7253811b032ab92108191da7336eba86e | /src/instructor/lectures/lecture_13.lean | 3e1c9f0a2c79bc13abf166a0db2737982dd5b42c | [] | no_license | arte-et-marte/my_cs2120f21 | 0bc6215cb5018a3b7c90d9d399a173233f587064 | 91609c3609ad81fda895bee8b97cc76813241e17 | refs/heads/main | 1,693,298,928,348 | 1,634,931,202,000 | 1,634,931,202,000 | 399,946,705 | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 9,487 | lean | /-
UPDATE: Test distributed after class on
Monday. Monday will be a review day. The
test is due back Wednesday before class.
In class Wednesday we will have at least
a short quiz to sanity check what you will
have submitted for the test. We reserve the
right to do follow-on in-person testing if
the results indicate a ... |
6069f8b446a054f5f3f4a1632b17c257f1a9c13c | a7602958ab456501ff85db8cf5553f7bcab201d7 | /Notes/Logic_and_Proof/Chapter4/4.21.lean | cf97a0723aaa1fba2bb01d506b0d5f0d32b813af | [] | no_license | enlauren/math-logic | 081e2e737c8afb28dbb337968df95ead47321ba0 | 086b6935543d1841f1db92d0e49add1124054c37 | refs/heads/master | 1,594,506,621,950 | 1,558,634,976,000 | 1,558,634,976,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 496 | lean | -- Introducing "show"
-- "show" can let us provide more information than is _necessary_. It lets us
-- tell the lean parser what exactly we are intending to prove at each substep.
variables A B : Prop
example : A ∧ ¬ B → ¬ B ∧ A :=
assume h : A ∧ ¬ B,
show ¬ B ∧ A, from and.intro (and.right h) (and.left h)
-- For ex... |
52ccf6a29b3f8c956dc121847db8cb3a296d9a1a | 137c667471a40116a7afd7261f030b30180468c2 | /src/algebra/lie/basic.lean | b01518b644c93c254b102bd580fd02fe0edf7100 | [
"Apache-2.0"
] | permissive | bragadeesh153/mathlib | 46bf814cfb1eecb34b5d1549b9117dc60f657792 | b577bb2cd1f96eb47031878256856020b76f73cd | refs/heads/master | 1,687,435,188,334 | 1,626,384,207,000 | 1,626,384,207,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 26,642 | lean | /-
Copyright (c) 2019 Oliver Nash. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Oliver Nash
-/
import data.bracket
import algebra.algebra.basic
import tactic.noncomm_ring
/-!
# Lie algebras
This file defines Lie rings and Lie algebras over a commutative ring togeth... |
b0be8808ebd84ad145939602a32ccc84c0f86e69 | 432d948a4d3d242fdfb44b81c9e1b1baacd58617 | /src/measure_theory/prod_group.lean | 07bad1a7c7f91fa96c9c365cbfdc2f5b5607e9ec | [
"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 | 10,808 | lean | /-
Copyright (c) 2021 Floris van Doorn. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Floris van Doorn
-/
import measure_theory.prod
import measure_theory.group
/-!
# Measure theory in the product of groups
In this file we show properties about measure theory in pro... |
36a8d301363fb10732ad74c9ba8b437cdf362ad4 | 4d2583807a5ac6caaffd3d7a5f646d61ca85d532 | /src/ring_theory/non_zero_divisors.lean | b6401428060401e06f93668c509e8510096e16b8 | [
"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,297 | lean | /-
Copyright (c) 2020 Kenny Lau. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Kenny Lau, Devon Tuma
-/
import group_theory.submonoid.operations
import group_theory.submonoid.membership
/-!
# Non-zero divisors
In this file we define the submonoid `non_zero_divisors... |
82f601e4580492f28492bb6385aa16d08458106d | 367134ba5a65885e863bdc4507601606690974c1 | /src/category_theory/closed/functor.lean | 33c4e63e9fafc41a9b95053abd2bd4b0081e37a3 | [
"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 | 6,515 | 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.closed.cartesian
import category_theory.limits.preserves.shapes.binary_products
import category_theory.adjunction.fully_faithful
/-!
# Cartesian ... |
571d347853eabf8d8a0360a93918f13d15a0bfbc | 86f6f4f8d827a196a32bfc646234b73328aeb306 | /examples/basics/unnamed_1153.lean | 52d1a3eeee2be75ec581419ab3f2556552215d76 | [] | 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 | 200 | lean | import analysis.special_functions.exp_log
open real
variables a b c : ℝ
-- BEGIN
example (h : 1 ≤ a) (h' : b ≤ c) :
2 + a + exp b ≤ 3 * a + exp c :=
by linarith [exp_le_exp.mpr h']
-- END |
895f4cf3a27000cab5988b0677488f2e52b972e0 | 957a80ea22c5abb4f4670b250d55534d9db99108 | /library/init/data/unsigned/basic.lean | 5455772b4b350c92747cb7f1a9a7320d4c4cc34d | [
"Apache-2.0"
] | permissive | GaloisInc/lean | aa1e64d604051e602fcf4610061314b9a37ab8cd | f1ec117a24459b59c6ff9e56a1d09d9e9e60a6c0 | refs/heads/master | 1,592,202,909,807 | 1,504,624,387,000 | 1,504,624,387,000 | 75,319,626 | 2 | 1 | Apache-2.0 | 1,539,290,164,000 | 1,480,616,104,000 | C++ | UTF-8 | Lean | false | false | 865 | 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.data.fin.basic
open nat
def unsigned_sz : nat := succ 4294967295
def unsigned := fin unsigned_sz
namespace unsigned
/- We cannot use ... |
c44969abddfa3350a566e92b4a9a692c03079976 | 856e2e1615a12f95b551ed48fa5b03b245abba44 | /src/data/dfinsupp.lean | 32c24ca6f7cf8ed079f9e4d3d25f3863030fa1ae | [
"Apache-2.0"
] | permissive | pimsp/mathlib | 8b77e1ccfab21703ba8fbe65988c7de7765aa0e5 | 913318ca9d6979686996e8d9b5ebf7e74aae1c63 | refs/heads/master | 1,669,812,465,182 | 1,597,133,610,000 | 1,597,133,610,000 | 281,890,685 | 1 | 0 | null | 1,595,491,577,000 | 1,595,491,576,000 | null | UTF-8 | Lean | false | false | 32,999 | lean | /-
Copyright (c) 2018 Kenny Lau. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Johannes Hölzl, Kenny Lau
-/
import algebra.pi_instances
import data.set.finite
/-!
# Dependent functions with finite support
For a non-dependent version see `data/finsupp.lean`.
-/
univ... |
359674318a528cf458522c5819abc048248a8f43 | 57c233acf9386e610d99ed20ef139c5f97504ba3 | /src/algebra/order/field.lean | 795a5e6f13c5c69bb4ffea7fdee7e93d9efcff8c | [
"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 | 30,081 | lean | /-
Copyright (c) 2014 Robert Lewis. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Robert Lewis, Leonardo de Moura, Mario Carneiro, Floris van Doorn
-/
import algebra.field.basic
import algebra.group_power.order
import algebra.order.ring
import order.bounds
import tact... |
233730fd40ea45d87e0bbc42849c32122bed0c68 | a4673261e60b025e2c8c825dfa4ab9108246c32e | /src/Lean/Compiler/IR/Checker.lean | bce386d275117ae8d6123ca24aa3a22f96d9fa1d | [
"Apache-2.0"
] | permissive | jcommelin/lean4 | c02dec0cc32c4bccab009285475f265f17d73228 | 2909313475588cc20ac0436e55548a4502050d0a | refs/heads/master | 1,674,129,550,893 | 1,606,415,348,000 | 1,606,415,348,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 6,574 | 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.IR.CompilerM
import Lean.Compiler.IR.Format
namespace Lean.IR.Checker
structure CheckerContext :=
(env : Environment)
(localCtx :... |
7cb6fd5ae044019a1a103176012888b079314f38 | 367134ba5a65885e863bdc4507601606690974c1 | /src/data/pfunctor/multivariate/M.lean | 971657065e9c56d5418c495ddc208c4c37f0d0e1 | [
"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 | 11,517 | lean | /-
Copyright (c) 2018 Jeremy Avigad. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Author: Jeremy Avigad, Mario Carneiro, Simon Hudon
-/
import data.pfunctor.univariate
import data.pfunctor.multivariate.basic
/-!
# The M construction as a multivariate polynomial functor.
M t... |
d705a03e75d0ca959d4ca8579a6912ca1389c560 | d406927ab5617694ec9ea7001f101b7c9e3d9702 | /src/data/polynomial/ring_division.lean | ebe34e911d82a0afb3173440ba326864cc8cea6a | [
"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 | 41,536 | 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 algebra.char_zero.infinite
import data.polynomial.algebra_map
import data.polynomial.degree.lemmas
... |
f8a8eb6ba65033fb945110f7b13c88c67b7b1cae | 4fa161becb8ce7378a709f5992a594764699e268 | /src/data/set/intervals/image_preimage.lean | 57b85727314e8b3e8fd347623045f1e149afd973 | [
"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 | 12,310 | lean | /-
Copyright (c) 2020 Yury G. Kudryashov. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Yury G. Kudryashov, Patrick Massot
-/
import data.set.intervals.basic
import data.equiv.mul_add
/-!
# (Pre)images of intervals
In this file we prove a bunch of trivial lemmas lik... |
80975f0e47179b7f5d8f6ebd2fb00944b99470ec | 302c785c90d40ad3d6be43d33bc6a558354cc2cf | /test/equiv_rw.lean | 08909579b78df6c0a67c4c4afcb6c9db5803d802 | [
"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 | 9,419 | lean | /-
Copyright (c) 2019 Scott Morrison. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Scott Morrison
-/
import tactic.equiv_rw
import control.equiv_functor.instances -- these make equiv_rw more powerful!
-- Uncomment this line to observe the steps of constructing appro... |
028ba403b39a7c4d7ebbbcf47381c271a5e33f64 | 6094e25ea0b7699e642463b48e51b2ead6ddc23f | /library/init/logic.lean | 7cdc23c15ae5dd8a3de8ed3a3cd66d0e530c09c0 | [
"Apache-2.0"
] | permissive | gbaz/lean | a7835c4e3006fbbb079e8f8ffe18aacc45adebfb | a501c308be3acaa50a2c0610ce2e0d71becf8032 | refs/heads/master | 1,611,198,791,433 | 1,451,339,111,000 | 1,451,339,111,000 | 48,713,797 | 0 | 0 | null | 1,451,338,939,000 | 1,451,338,939,000 | null | UTF-8 | Lean | false | false | 32,950 | 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, Jeremy Avigad, Floris van Doorn
-/
prelude
import init.datatypes init.reserved_notation init.tactic
definition id [reducible] [unfold_full] {A : Type} (a : A... |
36e3acee469d4ca3071161a54620d163d47d6ad5 | ce6917c5bacabee346655160b74a307b4a5ab620 | /src/ch5/ex0304.lean | f693172e43c7cf33a767b8726610eba340ebcac3 | [] | no_license | Ailrun/Theorem_Proving_in_Lean | ae6a23f3c54d62d401314d6a771e8ff8b4132db2 | 2eb1b5caf93c6a5a555c79e9097cf2ba5a66cf68 | refs/heads/master | 1,609,838,270,467 | 1,586,846,743,000 | 1,586,846,743,000 | 240,967,761 | 1 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 144 | lean | example (p q : ℕ → Prop) : (∃ x, p x) → ∃ x, p x ∨ q x :=
begin
intro h,
cases h with x hpx,
constructor, left, exact hpx
end
|
aaccf89aa4ab20ebeb52fd68847ab51d605dde8f | ae1e94c332e17c7dc7051ce976d5a9eebe7ab8a5 | /stage0/src/Lean/Server/FileWorker.lean | 8d2f0bd24d88098ee66fb18b229568bf67168386 | [
"Apache-2.0"
] | permissive | dupuisf/lean4 | d082d13b01243e1de29ae680eefb476961221eef | 6a39c65bd28eb0e28c3870188f348c8914502718 | refs/heads/master | 1,676,948,755,391 | 1,610,665,114,000 | 1,610,665,114,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 21,649 | lean | /-
Copyright (c) 2020 Marc Huisinga. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Marc Huisinga, Wojciech Nawrocki
-/
import Init.System.IO
import Std.Data.RBMap
import Lean.Environment
import Lean.PrettyPrinter
import Lean.Data.Lsp
import Lean.Data.Json.FromToJso... |
41716e6e96f09886f48da595293f5a105d2527e7 | fa02ed5a3c9c0adee3c26887a16855e7841c668b | /src/tactic/monotonicity/basic.lean | 01f8924d87afb56c5e57715550a299d0481c13a1 | [
"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 | 5,453 | 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 order.bounded_lattice
namespace tactic.interactive
open tactic list
open lean lean.parser interactive
open interactive.types
@[derive inhabited]
structure mono_cfg... |
e3ce8fd6352820b57072259fbca8b85515e04a9e | aa5a655c05e5359a70646b7154e7cac59f0b4132 | /src/Lean/Data/Name.lean | d946794d32a16454240056442a9f751145862cda | [
"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,512 | lean | /-
Copyright (c) 2018 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Author: Leonardo de Moura
-/
import Std.Data.HashSet
import Std.Data.RBMap
import Std.Data.RBTree
namespace Lean
instance : Coe String Name := ⟨Name.mkSimple⟩
namespace Name
@[export ... |
bcee93284ecd33647eb4f153ec3fec2c598f594d | 453dcd7c0d1ef170b0843a81d7d8caedc9741dce | /order/filter.lean | dfe1e4fc1c0d98d838a34ac29b4d93000c367f2b | [
"Apache-2.0"
] | permissive | amswerdlow/mathlib | 9af77a1f08486d8fa059448ae2d97795bd12ec0c | 27f96e30b9c9bf518341705c99d641c38638dfd0 | refs/heads/master | 1,585,200,953,598 | 1,534,275,532,000 | 1,534,275,532,000 | 144,564,700 | 0 | 0 | null | 1,534,156,197,000 | 1,534,156,197,000 | null | UTF-8 | Lean | false | false | 70,811 | 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
Theory of filters on sets.
-/
import order.complete_lattice order.galois_connection data.set data.finset order.zorn
open lattice set
universes u v w x y
open set clas... |
3a4756f161d0d41f433a2cfbb14b1334a614ecc4 | 35677d2df3f081738fa6b08138e03ee36bc33cad | /src/category_theory/concrete_category/bundled.lean | 0c4545ba6aa5411dbc626ae85200ab51575babb7 | [
"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,802 | lean | /-
Copyright (c) 2018 Scott Morrison. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Scott Morrison, Johannes Hölzl, Reid Barton, Sean Leather
Bundled types.
-/
import tactic.doc_commands
/-!
`bundled c` provides a uniform structure for bundling a type equipped with ... |
361b4ebc87ea4b11b0d0667db1d0a961dc9be3f9 | 57c233acf9386e610d99ed20ef139c5f97504ba3 | /src/analysis/inner_product_space/orientation.lean | 1ef0aad32c72a23e3d491652ce9621dec10fd7bd | [
"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 | 2,310 | lean | /-
Copyright (c) 2022 Joseph Myers. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Joseph Myers
-/
import analysis.inner_product_space.projection
import linear_algebra.orientation
/-!
# Orientations of real inner product spaces.
This file provides definitions and pro... |
53b35fc0c01b42d80398ef0a641e9a026aa93b1a | fa02ed5a3c9c0adee3c26887a16855e7841c668b | /src/category_theory/limits/pi.lean | 870d341575665e4f1d7fc853e591605157407763 | [
"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 | 4,505 | lean | /-
Copyright (c) 2020 Scott Morrison. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Scott Morrison
-/
import category_theory.pi.basic
import category_theory.limits.has_limits
/-!
# Limits in the category of indexed families of objects.
Given a functor `F : J ⥤ Π i, ... |
f6a5861509d6f59e4e52814f6c77c0d6188ddfdd | 8cae430f0a71442d02dbb1cbb14073b31048e4b0 | /src/algebra/lie/subalgebra.lean | 7c39d3779ae92eb8ce89edcad0fb39724f649160 | [
"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 | 23,487 | lean | /-
Copyright (c) 2021 Oliver Nash. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Oliver Nash
-/
import algebra.lie.basic
import ring_theory.noetherian
/-!
# Lie subalgebras
> THIS FILE IS SYNCHRONIZED WITH MATHLIB4.
> Any changes to this file require a corresponding... |
6abc6d475de3d0ab1a9d6dd34e489a386f81bcf0 | da23b545e1653cafd4ab88b3a42b9115a0b1355f | /src/tidy/rewrite_search/strategy/default.lean | b7dbd3aac8a0110237d5045fa22b7b86315d155c | [] | no_license | minchaowu/lean-tidy | 137f5058896e0e81dae84bf8d02b74101d21677a | 2d4c52d66cf07c59f8746e405ba861b4fa0e3835 | refs/heads/master | 1,585,283,406,120 | 1,535,094,033,000 | 1,535,094,033,000 | 145,945,792 | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 22 | lean | import .edit_distance
|
b9a6e7756d0a37f966382705379e5fdc4d5cc401 | 8cae430f0a71442d02dbb1cbb14073b31048e4b0 | /test/library_search/nat.lean | 784bf45f9b33084d91107c7b5e579343d5e463e8 | [
"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,473 | lean | /-
Copyright (c) 2018 Scott Morrison. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Scott Morrison
-/
import tactic.suggest
import data.nat.order.basic
namespace test.library_search
/- Turn off trace messages so they don't pollute the test build: -/
set_option trace... |
58fba58a124bfcfd7e00149a45034109fec46588 | 7cef822f3b952965621309e88eadf618da0c8ae9 | /src/ring_theory/algebraic.lean | 7a42f575de9463c91733dcef7adbbcfe0b73b536 | [
"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,435 | 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 ring_theory.integral_closure
/-!
# Algebraic elements and algebraic extensions
An element of an R-algebra is algebraic over R if it is the root of a nonzero... |
4acd8a5f30d0fc961fd24b43149fb4e6e9bf537d | d0f9af2b0ace5ce352570d61b09019c8ef4a3b96 | /hw2/justin_ngo-hw2.lean | d8afb2758145506b94bb577b5740dfd145896236 | [] | no_license | jngo13/Discrete-Mathematics | 8671540ef2da7c75915d32332dd20c02f001474e | bf674a866e61f60e6e6d128df85fa73819091787 | refs/heads/master | 1,675,615,657,924 | 1,609,142,011,000 | 1,609,142,011,000 | 267,190,341 | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 10,478 | lean | -- Justin Ngo
-- jmn4fms
-- 2/3/20
-- Sullivan 2102-001
/-
UVa CS2102/Sullivan, Spring 2020, Homework #2
This homework assignment is due by noon on Tuesday,
Feb 4. Submit your result through the HW#2 tab under
the Assignments category on Collab. Do so by uploading
a completed version of this file.
The goal of this ... |
f76b8bd1a80e0d4319c902336b1e36772d571e1f | 94e33a31faa76775069b071adea97e86e218a8ee | /src/topology/algebra/mul_action.lean | 60959fe853285a376ddb34470ce4638b5680b5dc | [
"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 | 6,763 | 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 topology.algebra.constructions
import group_theory.group_action.prod
import group_theory.group_action.basic
import topology.algebra.const_mul_action
/-!
# C... |
5396b26587852553bd4d3dd4d371bc9a0ad6756b | 3dd1b66af77106badae6edb1c4dea91a146ead30 | /tests/lean/show1.lean | 6827a197a55e706dd22557b6e04781e469d0d4f1 | [
"Apache-2.0"
] | permissive | silky/lean | 79c20c15c93feef47bb659a2cc139b26f3614642 | df8b88dca2f8da1a422cb618cd476ef5be730546 | refs/heads/master | 1,610,737,587,697 | 1,406,574,534,000 | 1,406,574,534,000 | 22,362,176 | 1 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 383 | lean | import logic bool tactic
using bool eq_proofs tactic
variables a b c : bool
axiom H1 : a = b
axiom H2 : b = c
check show a = c, from H1 ⬝ H2
print "------------"
check have e1 [fact] : a = b, from H1,
have e2 : a = c, by apply trans; apply e1; apply H2,
have e3 : c = a, from e2⁻¹,
have e4 [fact] : b... |
53063894ac929d30506933be7afeadb0053b8bab | 4d2583807a5ac6caaffd3d7a5f646d61ca85d532 | /src/data/array/lemmas.lean | 1c2fe5140c3eb15335217bcda215841b3d3f4a66 | [
"Apache-2.0"
] | permissive | AntoineChambert-Loir/mathlib | 64aabb896129885f12296a799818061bc90da1ff | 07be904260ab6e36a5769680b6012f03a4727134 | refs/heads/master | 1,693,187,631,771 | 1,636,719,886,000 | 1,636,719,886,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 9,577 | lean | /-
Copyright (c) 2017 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Leonardo de Moura, Mario Carneiro
-/
import control.traversable.equiv
import data.vector.basic
universes u v w
namespace d_array
variables {n : ℕ} {α : fin n → Type u}
instan... |
2c17ad81964062b97b2543c6a76bc23914a1d2b0 | a8c03ed21a1bd6fc45901943b79dd6574ea3f0c2 | /examples.lean | 31287ed8e2fd29ad7a90d3b790df23dc4dc80c2d | [] | no_license | gebner/resolution.lean | 716c355fbb5204e5c4d0c5a7f3f3cc825892a2bf | c6fafe06fba1cfad73db68f2aa474b29fe892a2b | refs/heads/master | 1,601,111,444,528 | 1,475,256,701,000 | 1,475,256,701,000 | 67,711,151 | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 2,588 | lean | import prover
open tactic
-- set_option trace.resolution true
namespace tactic.interactive
meta def with_lemmas (ls : types.raw_ident_list) : tactic unit := monad.forM' ls $ λl, do
p ← mk_const l,
t ← infer_type p,
n ← get_unused_name p↣get_app_fn↣const_name none,
tactic.assertv n t p
end tactic.interactive
example ... |
d768829903b46ac22addfc011bc0e09e5af4257e | 947fa6c38e48771ae886239b4edce6db6e18d0fb | /src/topology/algebra/module/weak_dual.lean | 122106d3c27f9c7f38d2304be70ead43ac5428b2 | [
"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 | 11,688 | lean | /-
Copyright (c) 2021 Kalle Kytölä. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Kalle Kytölä, Moritz Doll
-/
import topology.algebra.module.basic
/-!
# Weak dual topology
This file defines the weak topology given two vector spaces `E` and `F` over a commutative se... |
271b097959d4f3ff578455b7b45ae1ec8adae8a3 | 48eee836fdb5c613d9a20741c17db44c8e12e61c | /src/algebra/theories/default.lean | 88d589d692bb4f9924bf3ff128a27f2687884a98 | [
"Apache-2.0"
] | permissive | fgdorais/lean-universal | 06430443a4abe51e303e602684c2977d1f5c0834 | 9259b0f7fb3aa83a9e0a7a3eaa44c262e42cc9b1 | refs/heads/master | 1,592,479,744,136 | 1,589,473,399,000 | 1,589,473,399,000 | 196,287,552 | 1 | 1 | null | null | null | null | UTF-8 | Lean | false | false | 257 | lean | -- Copyright © 2019 François G. Dorais. All rights reserved.
-- Released under Apache 2.0 license as described in the file LICENSE.
import .basic
import .group
import .loop
import .magma
import .monoid
import .quasigroup
import .semigroup
import .unital
|
3e5d3eae7f9104d0b1bb6b02c2f0f39718ac8ad5 | a7eef317ddec01b9fc6cfbb876fe7ac00f205ac7 | /src/geometry/manifold/mfderiv.lean | d67527d09fe5178705afe91484143fa88d579eae | [
"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 | 65,051 | lean | /-
Copyright (c) 2020 Sébastien Gouëzel. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Sébastien Gouëzel
-/
import geometry.manifold.basic_smooth_bundle
/-!
# The derivative of functions between smooth manifolds
Let `M` and `M'` be two smooth manifolds with corners ... |
76553c9ad0f03adbbf71e980746f581dab50d95b | 1abd1ed12aa68b375cdef28959f39531c6e95b84 | /src/linear_algebra/dimension.lean | 02f6931b55c76038c9ad38aa9b71c56ec667e422 | [
"Apache-2.0"
] | permissive | jumpy4/mathlib | d3829e75173012833e9f15ac16e481e17596de0f | af36f1a35f279f0e5b3c2a77647c6bf2cfd51a13 | refs/heads/master | 1,693,508,842,818 | 1,636,203,271,000 | 1,636,203,271,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 52,889 | lean | /-
Copyright (c) 2018 Mario Carneiro. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Mario Carneiro, Johannes Hölzl, Sander Dahmen, Scott Morrison
-/
import linear_algebra.dfinsupp
import linear_algebra.std_basis
import linear_algebra.isomorphisms
import set_theory.cof... |
69d038bbe361e76b63c819425ece29cf69daf4b5 | 491068d2ad28831e7dade8d6dff871c3e49d9431 | /library/logic/examples/cont.lean | 67e3322b8a5327a55c2b29a8dd22d07b04ba9258 | [
"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,774 | 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
Formalization of Theorem 1 from the following paper:
"The inconsistency of a Brouwerian continuity
principle with the Curry–Howard interpretation"
by Martín E... |
df81970563af520c68ac422d1afc9dd012d20d42 | d406927ab5617694ec9ea7001f101b7c9e3d9702 | /src/algebraic_geometry/prime_spectrum/maximal.lean | 7af181eb1bfb69ce90759f2c525c7b9cdcb05b1e | [
"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,199 | lean | /-
Copyright (c) 2022 David Kurniadi Angdinata. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: David Kurniadi Angdinata
-/
import algebraic_geometry.prime_spectrum.basic
import ring_theory.localization.as_subring
/-!
# Maximal spectrum of a commutative ring
The maxi... |
c767badd8cb57c625be1bb9c8b8778db72476606 | dd0f5513e11c52db157d2fcc8456d9401a6cd9da | /04_Quantifiers_and_Equality.org.15.lean | d4d9f1815d86904abfc3a020cd7325f8172b6a4e | [] | 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 | 243 | lean | /- page 52 -/
import standard
open eq.ops
-- BEGIN
example (A : Type) (a b : A) (P : A → Prop) (H1 : a = b) (H2 : P a) : P b :=
eq.subst H1 H2
example (A : Type) (a b : A) (P : A → Prop) (H1 : a = b) (H2 : P a) : P b :=
H1 ▸ H2
-- END
|
3b22fbe89e5fdbc93d69299c79bf39e6362154f3 | 8e381650eb2c1c5361be64ff97e47d956bf2ab9f | /src/Kenny/sites/type.lean | fb1d7da080af5da9414b36e07e90f30a5f7e4a70 | [] | no_license | alreadydone/lean-scheme | 04c51ab08eca7ccf6c21344d45d202780fa667af | 52d7624f57415eea27ed4dfa916cd94189221a1c | refs/heads/master | 1,599,418,221,423 | 1,562,248,559,000 | 1,562,248,559,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 949 | lean | import Kenny.sites.basic category_theory.limits.types
universes u v
namespace category_theory
instance has_pullback_Type : has_pullback (Type u) :=
λ F, by apply_instance
instance has_site_Type : has_site (Type u) :=
{ cov := λ α, { S | ∀ x : α, ∃ (f : Σ β, β ⟶ α), ∃ hf : f ∈ S, x ∈ set.range f.2},
iso_mem := λ α... |
44469f62274fadbd313ba38444f8908dfa59c425 | c3e8fac5ab7ca328e55bccf82a0207a97f96678c | /lean/src/brainfuck.lean | 7decdb20dbb1eb7376f5fb0c16d57e73f7cd92df | [
"Unlicense"
] | permissive | Rotsor/brainfuck | 941bb33862ce3e9d61f0454db5ca02942f4b5775 | 3e6f30f298b8ba76d0bc71b8b5a47cedaf2f0b97 | refs/heads/master | 1,619,718,778,100 | 1,532,913,653,000 | 1,532,913,653,000 | 121,682,141 | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 13,388 | lean | import .byte
import .unix
import .ast
import system.io
import .interpreter
import .concrete_syntax
open byte
universes u v
constant brainfuck_interpreter : brainfuck.ast.program
constant is_correct_parse : brainfuck.ast.program -> list byte -> Prop
constant process_equivalent
(process1 : unix.with_coinduction.pro... |
a8363d881582836637846e256a0eff79da37c476 | 6dc0c8ce7a76229dd81e73ed4474f15f88a9e294 | /tests/lean/match1.lean | af3cacd919b23da7422a333ca89816bdbdc47753 | [
"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,519 | lean | --
#print "---- h1"
def h1 (b : Bool) : Nat :=
match b with
| true => 0
| false => 10
#eval h1 false
#print "---- h2"
def h2 (x : List Nat) : Nat :=
match x with
| [x1, x2] => x1 + x2
| x::xs => x
| _ => 0
#eval h2 [1, 2]
#eval h2 [10, 4, 5]
#eval h2 []
#print "---- h3"
def h3 (x : Array Nat) : Nat :... |
aa617b265514775915a3e53ef8695153e4bdcbf5 | 5883d9218e6f144e20eee6ca1dab8529fa1a97c0 | /src/db/subst.lean | 9bd050804023b06bbcf78422ea5538ef22b24996 | [] | no_license | spl/alpha-conversion-is-easy | 0d035bc570e52a6345d4890e4d0c9e3f9b8126c1 | ed937fe85d8495daffd9412a5524c77b9fcda094 | refs/heads/master | 1,607,649,280,020 | 1,517,380,240,000 | 1,517,380,240,000 | 52,174,747 | 4 | 0 | null | 1,456,052,226,000 | 1,456,001,163,000 | Lean | UTF-8 | Lean | false | false | 3,492 | lean | /-
This file contains substitution for `db`.
-/
import .type
import data.fin
namespace nat ------------------------------------------------------------------
variables {m n : ℕ}
def lt_add_pos_right_of_lt (p : m < n) (s : ℕ) : m < n + s :=
match s with
| 0 := p
| (succ s) := lt_trans p $ nat.lt_a... |
678b287172487830967547b4f9bebf9c4fa0af5e | 8cae430f0a71442d02dbb1cbb14073b31048e4b0 | /src/data/finsupp/pwo.lean | 572dbef6e3bc1d4adca18250c301d3e946d922cd | [
"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 | 1,375 | lean | /-
Copyright (c) 2022 Alex J. Best. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Alex J. Best
-/
import data.finsupp.order
import order.well_founded_set
/-!
# Partial well ordering on finsupps
> THIS FILE IS SYNCHRONIZED WITH MATHLIB4.
> Any changes to this file re... |
6da341729f4510b8ed1ed8a775287cd73270500b | 7bc35d4fbdda0c01e9b22a949940ee5cbb9800d0 | /map.lean | cba57340aa51c12904d456776666171d1b4a8141 | [] | no_license | truonghoangle/manifolds | e6c2534dd46579f56ba99a48e2eb7ce51640e7c0 | dcf4815b29ad363ec9712fd00b7756c36cfa7c1c | refs/heads/main | 1,638,501,090,139 | 1,636,918,550,000 | 1,636,918,550,000 | 185,779,631 | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 5,982 | lean | import algebra.module
universes u v w
variables {α : Type u} {β : Type v} {γ : Type w}
local attribute [instance] classical.prop_decidable
namespace map
protected def has_zero [has_zero β] : has_zero (α → β) := ⟨λ x, 0⟩
lemma zero_def [has_zero β] (x:α) : @has_zero.zero _ map.has_zero x = 0 := rfl
protec... |
c48127a4f669b5323b74cdfee136816ddeb544ae | 4727251e0cd73359b15b664c3170e5d754078599 | /src/ring_theory/localization/num_denom.lean | b5727660f5d9171f7127278bebeaa8167f74a98d | [
"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 | 3,993 | lean | /-
Copyright (c) 2018 Kenny Lau. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Kenny Lau, Mario Carneiro, Johan Commelin, Amelia Livingston, Anne Baanen
-/
import ring_theory.localization.fraction_ring
import ring_theory.localization.integer
import ring_theory.unique_... |
939df1cacfa8ef9e6ed44bb27cc8766c87783351 | 77c5b91fae1b966ddd1db969ba37b6f0e4901e88 | /src/linear_algebra/adic_completion.lean | e83c0633bbb73a3c437fec460c6ba6d60864f708 | [
"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 | 10,109 | lean | /-
Copyright (c) 2020 Kenny Lau. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Kenny Lau
-/
import linear_algebra.smodeq
import ring_theory.ideal.operations
import ring_theory.jacobson_ideal
/-!
# Completion of a module with respect to an ideal.
In this file we def... |
e861317a28605bee06443f1081047b624b69cc9d | 8cb37a089cdb4af3af9d8bf1002b417e407a8e9e | /library/system/random.lean | c6e2193bdae570278ef68645846f8e2f18c806e0 | [
"Apache-2.0"
] | permissive | kbuzzard/lean | ae3c3db4bb462d750dbf7419b28bafb3ec983ef7 | ed1788fd674bb8991acffc8fca585ec746711928 | refs/heads/master | 1,620,983,366,617 | 1,618,937,600,000 | 1,618,937,600,000 | 359,886,396 | 1 | 0 | Apache-2.0 | 1,618,936,987,000 | 1,618,936,987,000 | null | UTF-8 | Lean | false | false | 4,113 | lean | /-
Copyright (c) 2018 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Leonardo de Moura
-/
universes u
/-
Basic random number generator support based on the one
available on the Haskell library
-/
/- Interface for random number generators. -/
cl... |
bc743287150846532bd625663b07e4b533b2ba63 | 33340b3a23ca62ef3c8a7f6a2d4e14c07c6d3354 | /dlo/qfree.lean | bdd452ffe8c7a6d604119944791f04f28e76bf4a | [] | no_license | lclem/cooper | 79554e72ced343c64fed24b2d892d24bf9447dfe | 812afc6b158821f2e7dac9c91d3b6123c7a19faf | refs/heads/master | 1,607,554,257,488 | 1,578,694,133,000 | 1,578,694,133,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 2,299 | lean | import .formula
def qfree : formula_dlo → Prop
| formula_dlo.true := true
| formula_dlo.false := true
| (formula_dlo.atom _) := true
| (formula_dlo.not p) := qfree p
| (formula_dlo.or p q) := qfree p /\ qfree q
| (formula_dlo.and p q) := qfree p /\ qfree q
| (formula_dlo.ex p) := false
def nqfree : formula_dlo → Pro... |
fc6055e3d6d74f033bf503a8b3b07fba3029b2fa | 957a80ea22c5abb4f4670b250d55534d9db99108 | /tests/lean/run/doc_string1.lean | 24f8d1efa197b26351f8d832f9d415222dc9d802 | [
"Apache-2.0"
] | permissive | GaloisInc/lean | aa1e64d604051e602fcf4610061314b9a37ab8cd | f1ec117a24459b59c6ff9e56a1d09d9e9e60a6c0 | refs/heads/master | 1,592,202,909,807 | 1,504,624,387,000 | 1,504,624,387,000 | 75,319,626 | 2 | 1 | Apache-2.0 | 1,539,290,164,000 | 1,480,616,104,000 | C++ | UTF-8 | Lean | false | false | 704 | lean | /--
Documentation for x
```
#reduce x + x
```
Testing...
-/
def x := 10 + 20
def y := "alo"
open tactic
run_cmd do
d ← doc_string `x,
trace d
run_cmd add_doc_string `y "testing simple doc"
run_cmd do
d ← doc_string `y,
trace d
namespace foo
namespace bla
/--
Documentation for single
testi... |
0d39629a879d8a726d3cb10e24e75b22e9d1e0da | 8cae430f0a71442d02dbb1cbb14073b31048e4b0 | /src/data/polynomial/monic.lean | e04a1006eb560f5b4c6eff812d32bcef79ab899c | [
"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 | 17,814 | 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.reverse
import algebra.regular.smul
/-!
# Theory of monic polynomials
> THIS FILE IS SYNCHRONIZED... |
1884e34119f88d65d09c61a617fcbaedb3b4baeb | 4efff1f47634ff19e2f786deadd394270a59ecd2 | /src/category_theory/limits/fubini.lean | e682a6e290b10d06f08985ec155b36cda9349199 | [
"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 | 8,146 | lean | /-
Copyright (c) 2020 Scott Morrison. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Scott Morrison
-/
import category_theory.limits.limits
import category_theory.products.basic
import category_theory.currying
/-!
# A Fubini theorem for categorical limits
We prove th... |
11e8f3d59b45426435d2c11b4eb69a56a400544d | fa02ed5a3c9c0adee3c26887a16855e7841c668b | /src/category_theory/sites/sheaf.lean | 3aa38dcce4c4b28f8ed11054d0679ec369ceca57 | [
"Apache-2.0"
] | permissive | jjgarzella/mathlib | 96a345378c4e0bf26cf604aed84f90329e4896a2 | 395d8716c3ad03747059d482090e2bb97db612c8 | refs/heads/master | 1,686,480,124,379 | 1,625,163,323,000 | 1,625,163,323,000 | 281,190,421 | 2 | 0 | Apache-2.0 | 1,595,268,170,000 | 1,595,268,169,000 | null | UTF-8 | Lean | false | false | 10,663 | lean | /-
Copyright (c) 2020 Kevin Buzzard, Bhavik Mehta. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Kevin Buzzard, Bhavik Mehta
-/
import category_theory.sites.sheaf_of_types
import category_theory.limits.yoneda
import category_theory.limits.preserves.shapes.equalizers
... |
5144669d5e7a9462c55f6798b7834ec2420756cb | 453dcd7c0d1ef170b0843a81d7d8caedc9741dce | /category_theory/products.lean | c9e6cd8c5d908e85ffea5d878333b7d59fe2ace7 | [
"Apache-2.0"
] | permissive | amswerdlow/mathlib | 9af77a1f08486d8fa059448ae2d97795bd12ec0c | 27f96e30b9c9bf518341705c99d641c38638dfd0 | refs/heads/master | 1,585,200,953,598 | 1,534,275,532,000 | 1,534,275,532,000 | 144,564,700 | 0 | 0 | null | 1,534,156,197,000 | 1,534,156,197,000 | null | UTF-8 | Lean | false | false | 4,921 | 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 .functor_category
namespace category_theory
universes u₁ v₁ u₂ v₂ u₃ v₃ u₄ v₄
section
variables (C : Type u₁) [category.{u₁ v₁} C] (D : T... |
24b083a748849679efdc193146ee44a1201be5b7 | c777c32c8e484e195053731103c5e52af26a25d1 | /src/analysis/complex/liouville.lean | e297de7e96bd2040a6931df4be7825d0dfaac749 | [
"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 | 5,713 | lean | /-
Copyright (c) 2022 Yury G. Kudryashov. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Yury G. Kudryashov
-/
import analysis.complex.cauchy_integral
import analysis.calculus.fderiv_analytic
import analysis.normed_space.completion
/-!
# Liouville's theorem
In this f... |
e800ee234d50de0c49cee4d4c9d4e602eac9fa47 | a4673261e60b025e2c8c825dfa4ab9108246c32e | /src/Std/Data/PersistentHashSet.lean | 790cd4bd1c79798a633b7bb18b81b6d9a9345a16 | [
"Apache-2.0"
] | permissive | jcommelin/lean4 | c02dec0cc32c4bccab009285475f265f17d73228 | 2909313475588cc20ac0436e55548a4502050d0a | refs/heads/master | 1,674,129,550,893 | 1,606,415,348,000 | 1,606,415,348,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 1,666 | lean | /-
Copyright (c) 2019 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Author: Leonardo de Moura
-/
import Std.Data.PersistentHashMap
namespace Std
universes u v
structure PersistentHashSet (α : Type u) [BEq α] [Hashable α] :=
(set : PersistentHashMap α... |
6d3b6708bb99053890b42fa0bef531ac0c15ca55 | 8cae430f0a71442d02dbb1cbb14073b31048e4b0 | /src/measure_theory/measure/doubling.lean | c306deac59ea1b22986b8f2247c3efd813d1b734 | [
"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,275 | lean | /-
Copyright (c) 2022 Oliver Nash. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Oliver Nash
-/
import analysis.special_functions.log.base
import measure_theory.measure.measure_space_def
/-!
# Uniformly locally doubling measures
> THIS FILE IS SYNCHRONIZED WITH MATH... |
0e9c1f07c4adbe6149a1f4db0296de007c68d5bd | d8820d2c92be8052d13f9c8f8c483a6e15c5f566 | /src/M40001/Sqrt2_not_rational.lean | fdf75a6bb3643abf845faf9549817c4c32bc27b3 | [] | no_license | JasonKYi/M4000x_LEAN_formalisation | 4a19b84f6d0fe2e214485b8532e21cd34996c4b1 | 6e99793f2fcbe88596e27644f430e46aa2a464df | refs/heads/master | 1,599,755,414,708 | 1,589,494,604,000 | 1,589,494,604,000 | 221,759,483 | 8 | 1 | null | 1,589,494,605,000 | 1,573,755,201,000 | Lean | UTF-8 | Lean | false | false | 6,529 | lean | import tactic.ring
import tactic.linarith
import data.rat.basic
import data.rat.cast
/- Section
1.4 An Application
-/
/-
We would like prove that there is no rational number whose square is 2 using the techniques introduced earlier.
-/
def even (a : ℤ) := ∃ b : ℤ, a = 2 * b
def odd (a : ℤ) := ∃ b : ℤ, a = 2 * b + 1... |
e64c804e5b0ef9fc981dd788522a8a7c019bdaea | d406927ab5617694ec9ea7001f101b7c9e3d9702 | /src/algebra/opposites.lean | e4d3e2d8e131485305b3623a4b6c0968bdafcce6 | [
"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,063 | lean | /-
Copyright (c) 2018 Kenny Lau. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Kenny Lau
-/
import algebra.group.defs
import logic.equiv.defs
import logic.nontrivial
/-!
# Multiplicative opposite and algebraic operations on it
> THIS FILE IS SYNCHRONIZED WITH MATHLI... |
30235d21ee14252d9188182747dde460820cd493 | 9be442d9ec2fcf442516ed6e9e1660aa9071b7bd | /src/Init/Data/Fin/Basic.lean | 2e8d65f9502fe5209b0537e91f48c99bc4223f43 | [
"Apache-2.0",
"LLVM-exception",
"NCSA",
"LGPL-3.0-only",
"LicenseRef-scancode-inner-net-2.0",
"BSD-3-Clause",
"LGPL-2.0-or-later",
"Spencer-94",
"LGPL-2.1-or-later",
"HPND",
"LicenseRef-scancode-pcre",
"ISC",
"LGPL-2.1-only",
"LicenseRef-scancode-other-permissive",
"SunPro",
"CMU-Mach"... | permissive | EdAyers/lean4 | 57ac632d6b0789cb91fab2170e8c9e40441221bd | 37ba0df5841bde51dbc2329da81ac23d4f6a4de4 | refs/heads/master | 1,676,463,245,298 | 1,660,619,433,000 | 1,660,619,433,000 | 183,433,437 | 1 | 0 | Apache-2.0 | 1,657,612,672,000 | 1,556,196,574,000 | Lean | UTF-8 | Lean | false | false | 3,421 | lean | /-
Copyright (c) 2016 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Author: Leonardo de Moura
-/
prelude
import Init.Data.Nat.Div
import Init.Data.Nat.Bitwise
import Init.Coe
open Nat
namespace Fin
instance coeToNat {n} : Coe (Fin n) Nat :=
⟨fun v =... |
1ada955d46d8a2ca968d48f3b33a27adbe114b95 | 6432ea7a083ff6ba21ea17af9ee47b9c371760f7 | /tests/lean/run/1155.lean | c0eaf4bbb48cf0f66033b9a42c0d52cf331cb1c6 | [
"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 | 76 | lean | def sacha : Nat :=
let (v, k) := match 0 with
| (n) => (0, 0)
v + k
|
5ea5ccd19fb3e75020cce643fba3512c3176fb5f | 53f7fd7840fe4979de24f9611c89f2ee1b4fc5dc | /src/basic.lean | 3f62fa7d50849949bc35ae732f57bf8f38b908c7 | [] | no_license | cipher1024/search-trees | 6d1925283c6ce47d84bdf41ca40d8317ff2e64d7 | 0e0ea0ee59f0b0499ebad1ef6f34f09ec9666cde | refs/heads/master | 1,673,300,158,759 | 1,603,984,112,000 | 1,603,984,112,000 | 308,132,998 | 1 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 3,027 | lean |
import tactic.default .tactic
universes u v w
namespace two_three
variables (α : Type u) (β : Type v) {γ : Type w}
inductive tree
| leaf (k : α) (v : β)
| node2 (t₀ : tree) (x : α) (t₁ : tree)
| node3 (t₀ : tree) (x : α) (t₁ : tree) (y : α) (t₂ : tree)
open tree nat
variables {α β}
def first : tree α β → α
| (tr... |
ab4d03a9a544d9c081956894affb78c79efed1d6 | b7f22e51856f4989b970961f794f1c435f9b8f78 | /tests/lean/528.lean | c664981331c68c4b2bc11f352e7663af690813f4 | [
"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 | 128 | lean | variables {P : bool → Type} {x : P bool.tt} {y : P bool.ff}
example (b : bool) : P b :=
match b with
| tt := x
| ff := y
end
|
b39c83a4937263ff65e73a82c27c5b8825e21928 | 947b78d97130d56365ae2ec264df196ce769371a | /src/Lean/Meta/DiscrTree.lean | 13c84cb609e6b3bb3a92c1652262917162c78d9b | [
"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 | 14,368 | lean | /-
Copyright (c) 2019 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Leonardo de Moura
-/
import Lean.Meta.Basic
import Lean.Meta.FunInfo
import Lean.Meta.InferType
namespace Lean
namespace Meta
namespace DiscrTree
/-
(Imperfect) discriminati... |
774b6239ad03dccfe343a976a8c9cf3804812e78 | cf39355caa609c0f33405126beee2739aa3cb77e | /tests/lean/run/cases_bug3.lean | c61fbe0a6a1a42cc379bbbb76a39cbdb987dfa1b | [
"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 | 97 | lean | theorem ex {A : Type} : ∀ {a a' : A}, a == a' → a = a'
| a .(a) (heq.refl .(a)) := eq.refl a
|
f81176181092409fcc97fc9da14076bbc7f9bee1 | b794ca1df49bc5a3bd3fd5552eed3bc4f63b8b93 | /src/homework/practice_1.lean | 1c2ab5c3755d79dfed12a6b30ea60e69128a8456 | [] | no_license | akraisinger/cs2120f21 | 8235ac98375e04ffcec504cff5cab7833ee69e54 | 4ef83d7151bb6a284028092aa4f1d509c0eb8237 | refs/heads/main | 1,691,714,771,612 | 1,632,889,465,000 | 1,632,889,465,000 | 399,946,508 | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 5,471 | lean | /-
EQUALITY
-/
/- #1
Suppose that x, y, z, and w are arbitrary objects of some type,
T; and suppose further that we know (have proofs of the facts)
that x = y, y = z, and w = z. Give a very, very short English
proof of the conjecture that z = w. You can use not only the
axioms of equality, but either of the theo... |
cbde158a85bbce93c39e84bbacd99e175c4720d0 | 618003631150032a5676f229d13a079ac875ff77 | /src/tactic/omega/nat/neg_elim.lean | d827e916f3d568778ecf7cf66e864042b9a00848 | [
"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 | 4,191 | lean | /- Copyright (c) 2019 Seul Baek. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Author: Seul Baek
Negation elimination. -/
import tactic.omega.nat.form
namespace omega
namespace nat
open_locale omega.nat
/-- push_neg p returns the result of normalizing ¬ p by
pushing th... |
41614669e35123a9dd440ddf82467e79b88cd5bd | 4d2583807a5ac6caaffd3d7a5f646d61ca85d532 | /src/ring_theory/polynomial/tower.lean | e62b87ba0803ebcbfef7e03abc862e0ae326a5fb | [
"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,594 | lean | /-
Copyright (c) 2020 Kenny Lau. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Kenny Lau
-/
import algebra.algebra.tower
import data.polynomial.algebra_map
/-!
# Algebra towers for polynomial
This file proves some basic results about the algebra tower structure for... |
d1eb7f47cf56747b57ad46be003411032c4950d0 | 8cae430f0a71442d02dbb1cbb14073b31048e4b0 | /src/ring_theory/polynomial/dickson.lean | c6cb3c157b10882da4ed0779f52c96ecb11d9ab9 | [
"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,754 | lean | /-
Copyright (c) 2021 Julian Kuelshammer. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Julian Kuelshammer
-/
import algebra.char_p.invertible
import data.zmod.basic
import ring_theory.localization.fraction_ring
import ring_theory.polynomial.chebyshev
import ring_theo... |
d036006f9340ca23b89059ac6410023d17616990 | 74addaa0e41490cbaf2abd313a764c96df57b05d | /Mathlib/topology/local_homeomorph_auto.lean | 41c33c019d05524546cbb6d2a3d3406f6133fe98 | [] | 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 | 55,936 | lean | /-
Copyright (c) 2019 Sébastien Gouëzel. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Sébastien Gouëzel
-/
import Mathlib.PrePort
import Mathlib.Lean3Lib.init.default
import Mathlib.data.equiv.local_equiv
import Mathlib.topology.opens
import Mathlib.PostPort
univers... |
abbaaa496a4a2a4a4e634b448b5e61cab4b898aa | 35677d2df3f081738fa6b08138e03ee36bc33cad | /src/geometry/manifold/real_instances.lean | 081c4162a377958f3015ecf1f7df28428ae9cfe6 | [
"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 | 14,178 | lean | /-
Copyright (c) 2019 Sébastien Gouëzel. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Sébastien Gouëzel
-/
import geometry.manifold.smooth_manifold_with_corners linear_algebra.finite_dimensional
/-!
# Constructing examples of manifolds over ℝ
We introduce the nece... |
9b74b83197d027147577b3b45f8a39d805152e25 | 4d2583807a5ac6caaffd3d7a5f646d61ca85d532 | /src/order/basic.lean | 2e4beb88e5ccde67edc2f7adc28a8d8ebd0cfca0 | [
"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 | 25,739 | lean | /-
Copyright (c) 2014 Jeremy Avigad. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Jeremy Avigad, Mario Carneiro
-/
import data.prod
import data.subtype
/-!
# Basic definitions about `≤` and `<`
This file proves basic results about orders, provides extensive dot not... |
6b78ff9ac6de18571af9bca5ec9e53fadadf9e3b | 74addaa0e41490cbaf2abd313a764c96df57b05d | /Mathlib/control/functor_auto.lean | 81fcec16b9f418fe1f4d5cb1cfbf98469afab0b9 | [] | 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 | 11,240 | lean | /-
Copyright (c) 2017 Simon Hudon. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Author: Simon Hudon
-/
import Mathlib.PrePort
import Mathlib.Lean3Lib.init.default
import Mathlib.tactic.ext
import Mathlib.tactic.lint.default
import Mathlib.PostPort
universes u v u_1 u_2 u_3 w... |
a70a9140b6c3a5c2ad8ee4178a5e1eddd9735087 | fa02ed5a3c9c0adee3c26887a16855e7841c668b | /src/measure_theory/ess_sup.lean | 21d78a603208c724224c030a37e8a348fcc5b0fb | [
"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 | 5,618 | lean | /-
Copyright (c) 2021 Rémy Degenne. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Rémy Degenne
-/
import measure_theory.measure_space
import order.filter.ennreal
/-!
# Essential supremum and infimum
We define the essential supremum and infimum of a function `f : α → ... |
e3808bb75c141810854a24597f7e70ba3f03ee7c | 19cc34575500ee2e3d4586c15544632aa07a8e66 | /src/field_theory/adjoin.lean | 6b1f1f673559a60686b8dcb4254e57e0ede4cdfc | [
"Apache-2.0"
] | permissive | LibertasSpZ/mathlib | b9fcd46625eb940611adb5e719a4b554138dade6 | 33f7870a49d7cc06d2f3036e22543e6ec5046e68 | refs/heads/master | 1,672,066,539,347 | 1,602,429,158,000 | 1,602,429,158,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 9,999 | lean | /-
Copyright (c) 2020 Thomas Browning and Patrick Lutz. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Thomas Browning and Patrick Lutz
-/
import deprecated.subfield
import field_theory.tower
/-!
# Adjoining Elements to Fields
In this file we introduce the notion of... |
bcda730165a7aaeedbacafae585e98acba70ab79 | cf39355caa609c0f33405126beee2739aa3cb77e | /tests/lean/run/print_inductive.lean | d5bcd043b15e2b6de4a89bbf45fcffaf61e121d4 | [
"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 | 44 | lean | #print inductive nat
#print inductive list
|
bfb7781e6e64cdb24299b2328aae1876a0ee6001 | f1b175e38ffc5cc1c7c5551a72d0dbaf70786f83 | /tactic/interactive.lean | 565e02f1af02817625a3004a0f68f90298388463 | [
"Apache-2.0"
] | permissive | mjendrusch/mathlib | df3ae884dd5ce38c7edf452bcbfd3baf4e3a6214 | 5c209edb7eb616a26f64efe3500f2b1ba95b8d55 | refs/heads/master | 1,585,663,284,800 | 1,539,062,055,000 | 1,539,062,055,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 24,425 | lean | /-
Copyright (c) 2017 Mario Carneiro. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Mario Carneiro, Simon Hudon, Sebastien Gouezel, Scott Morrison
-/
import data.dlist data.dlist.basic data.prod category.basic
tactic.basic tactic.rcases tactic.generalize_proofs
ta... |
17030db53bb95502d943d42a2072fa2585279b4e | fa01e273a2a9f22530e6adb1ed7d4f54bb15c8d7 | /src/N2O/Network/Web/HTTP.lean | 04bf97061bcdcfd377295ca9d709bd7d9cb0b30d | [
"LicenseRef-scancode-mit-taylor-variant",
"LicenseRef-scancode-warranty-disclaimer"
] | permissive | o89/n2o | 4c99afb11fff0a1e3dae6b3bc8a3b7fc42c314ac | 58c1fbf4ef892ed86bdc6b78ec9ca5a403715c2d | refs/heads/master | 1,670,314,676,229 | 1,669,086,375,000 | 1,669,086,375,000 | 200,506,953 | 16 | 6 | null | null | null | null | UTF-8 | Lean | false | false | 519 | lean | import N2O.Network.Internal
@[extern 2 "lean_set_handler"] constant setHandler (handler : WS → Result) : IO Unit
@[extern 1 "lean_stop_server"] constant stopServer : IO Unit
@[extern 3 "lean_run_server"] constant runServer (addr : String) (port : UInt16) : IO Unit
def canonicalHandler (handler : Handler) (socket : WS... |
2432b7117231e924521eefe40b368f37ee96d3f7 | f3a5af2927397cf346ec0e24312bfff077f00425 | /src/game/world10/level10.lean | 20eb6db69d88a03fef8fde3f4ab3f03818eb060a | [
"Apache-2.0"
] | permissive | ImperialCollegeLondon/natural_number_game | 05c39e1586408cfb563d1a12e1085a90726ab655 | f29b6c2884299fc63fdfc81ae5d7daaa3219f9fd | refs/heads/master | 1,688,570,964,990 | 1,636,908,242,000 | 1,636,908,242,000 | 195,403,790 | 277 | 84 | Apache-2.0 | 1,694,547,955,000 | 1,562,328,792,000 | Lean | UTF-8 | Lean | false | false | 330 | lean | import game.world10.level9 -- hide
namespace mynat -- hide
/-
# Inequality world.
## Level 10: `le_succ_self`
Can you find the two-line proof?
-/
/- Lemma
For all naturals $a$, $a\le\operatorname{succ}(a).$
-/
lemma le_succ_self (a : mynat) : a ≤ succ a :=
begin [nat_num_game]
use 1,
refl,
end
end mynat ... |
11d133a4ae8b8cf02e27f27d2687248623466621 | 6432ea7a083ff6ba21ea17af9ee47b9c371760f7 | /tests/lean/run/nestedDo.lean | 5806d98b15bad52579b812bc16256a8cadb9e9e7 | [
"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 | 152 | lean |
def f (x : Nat) : StateM Nat Nat := do
let y ← do
modify (·+1)
let s ← get
pure $ s + x
pure $ y + 1
theorem ex1 : (f 5).run' 2 = 9 :=
rfl
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.