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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
e25e05c32dfd3823c7be6091a8394250cf700c37 | c777c32c8e484e195053731103c5e52af26a25d1 | /src/data/dfinsupp/order.lean | 0c6344b670dda51f6a35cc6f19eb520fd45755fb | [
"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 | 7,855 | lean | /-
Copyright (c) 2021 Yaël Dillies. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Yaël Dillies
-/
import data.dfinsupp.basic
/-!
# Pointwise order on finitely supported dependent functions
> THIS FILE IS SYNCHRONIZED WITH MATHLIB4.
> Any changes to this file require... |
25e75217f4bf487e233fbf5ab0a26b32003547f2 | bb31430994044506fa42fd667e2d556327e18dfe | /src/algebra/cubic_discriminant.lean | e10263ae6e55c7203b0f0a5bf041c906fe223769 | [
"Apache-2.0"
] | permissive | sgouezel/mathlib | 0cb4e5335a2ba189fa7af96d83a377f83270e503 | 00638177efd1b2534fc5269363ebf42a7871df9a | refs/heads/master | 1,674,527,483,042 | 1,673,665,568,000 | 1,673,665,568,000 | 119,598,202 | 0 | 0 | null | 1,517,348,647,000 | 1,517,348,646,000 | null | UTF-8 | Lean | false | false | 17,114 | 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 data.polynomial.splits
/-!
# Cubics and discriminants
This file defines cubic polynomials over a semiring and their discriminants over a... |
e6cd4b1177d913471f581a6043c2d11803918103 | 432d948a4d3d242fdfb44b81c9e1b1baacd58617 | /src/field_theory/splitting_field.lean | 4aeb14d27f1c624c281bfd9b3fc9aa7d4c626297 | [
"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 | 37,493 | lean | /-
Copyright (c) 2018 Chris Hughes. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Chris Hughes
-/
import ring_theory.adjoin_root
import ring_theory.algebra_tower
import ring_theory.algebraic
import ring_theory.polynomial
import field_theory.minpoly
import linear_algeb... |
eae3f3e0956b635361739b76694e2e5b09075893 | 6432ea7a083ff6ba21ea17af9ee47b9c371760f7 | /tests/lean/242.lean | df964c9236d33e7945c5d39d63717ca306cd1fbc | [
"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 | 77 | lean | syntax "0" : term
syntax "'a'" : term
syntax "`a" : term
syntax "\"a" : term
|
70c0324c40b72f9faedbd5ab4001c618bc3faed3 | dc253be9829b840f15d96d986e0c13520b085033 | /algebra/graded.hlean | a346de11357e3af28ba5de87f6c9dcc70a2d566f | [
"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 | 32,025 | hlean | /- Graded (left-) R-modules for a ring R. -/
-- Author: Floris van Doorn
import .left_module .direct_sum .submodule --..heq
open is_trunc algebra eq left_module pointed function equiv is_equiv prod group sigma sigma.ops nat
trunc_index property
namespace left_module
definition graded [reducible] (str : Type) (I :... |
bacbe563f1aa26d6fccf9f086b48ff92fbabf2c1 | 4bddde0d06fbd53be6f23d7f5899998e8f63410b | /src/tactic/iconfig/result.lean | 9dbb8870e9aed6c98cd2b21d3ab80192a4236634 | [] | no_license | khoek/libiconfig | 4816290a5862af14b07683b3d2663e8e62832ef4 | 6f55c50bc5d852d26ee5ee4c5b52b2cda2a852e5 | refs/heads/master | 1,586,109,683,212 | 1,559,567,916,000 | 1,559,567,916,000 | 157,085,466 | 0 | 1 | null | 1,559,567,917,000 | 1,541,945,134,000 | Lean | UTF-8 | Lean | false | false | 7,748 | lean | import data.list
import .types
import .schema
import .monad
import .env
namespace iconfig
meta inductive explained (α : Type)
| ok : α → explained
| bad : format → explained
open explained
meta def explained.to_option {α : Type} : explained α → option α
| (ok a) := some a
| (bad _ _) := none
meta def explained.u... |
93a5444b739399e2e21e1543e043663fdf58e463 | 6094e25ea0b7699e642463b48e51b2ead6ddc23f | /library/algebra/intervals.lean | 0d083eed505e98a252bc5097604164d6960a8fd3 | [
"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 | 1,541 | lean | /-
Copyright (c) 2015 Jeremy Avigad. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Author: Jeremy Avigad
Notation for intervals and some properties.
The mnemonic: o = open, c = closed, u = unbounded. For example, Iou a b is '(a, ∞).
-/
import .order data.set
open set
namesp... |
f1e7e885533e8b2727cff328182a0527083c6e22 | f083c4ed5d443659f3ed9b43b1ca5bb037ddeb58 | /data/quot.lean | a5c6fa676c46a25cf04e3b0a0b0122f21184a5d7 | [
"Apache-2.0"
] | permissive | semorrison/mathlib | 1be6f11086e0d24180fec4b9696d3ec58b439d10 | 20b4143976dad48e664c4847b75a85237dca0a89 | refs/heads/master | 1,583,799,212,170 | 1,535,634,130,000 | 1,535,730,505,000 | 129,076,205 | 0 | 0 | Apache-2.0 | 1,551,697,998,000 | 1,523,442,265,000 | Lean | UTF-8 | Lean | false | false | 9,202 | 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
Quotients -- extends the core library
-/
variables {α : Sort*} {β : Sort*}
namespace quot
variables {ra : α → α → Prop} {rb : β → β → Prop} {φ : quot ra → quot rb → So... |
c7ece6714ad2979fcae44a00ed5ed625d1a2d362 | 7b66d83f3b69dae0a3dfb684d7ebe5e9e3f3c913 | /src/solutions/thursday/afternoon/category_theory/exercise6.lean | d6d06d19939db44725b2683a5163911fd1dbe4d2 | [] | permissive | dpochekutov/lftcm2020 | 58a09e10f0e638075b97884d3c2612eb90296adb | cdfbf1ac089f21058e523db73f2476c9c98ed16a | refs/heads/master | 1,669,226,265,076 | 1,594,629,725,000 | 1,594,629,725,000 | 279,213,346 | 1 | 0 | MIT | 1,594,622,757,000 | 1,594,615,843,000 | null | UTF-8 | Lean | false | false | 1,315 | lean | import algebra.category.Module.basic
import linear_algebra.finite_dimensional
/-!
Every monomorphism in fdVec splits.
This is not-so-secretly an exercise in using the linear algebra library
-/
variables (𝕜 : Type) [field 𝕜]
open category_theory
abbreviation Vec := Module 𝕜
@[derive category]
def fdVec := { V :... |
6dd28dbcfe0312b7a960b5a494908bd840ecff07 | e38e95b38a38a99ecfa1255822e78e4b26f65bb0 | /src/certigrad/aevb/prog.lean | 2e3235ef41757db74266173ecd628de879dbf838 | [
"Apache-2.0"
] | permissive | ColaDrill/certigrad | fefb1be3670adccd3bed2f3faf57507f156fd501 | fe288251f623ac7152e5ce555f1cd9d3a20203c2 | refs/heads/master | 1,593,297,324,250 | 1,499,903,753,000 | 1,499,903,753,000 | 97,075,797 | 1 | 0 | null | 1,499,916,210,000 | 1,499,916,210,000 | null | UTF-8 | Lean | false | false | 1,367 | lean | /-
Copyright (c) 2017 Daniel Selsam. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Author: Daniel Selsam
Certigrad code for a naive variational autoencoder.
-/
import ..program .util
namespace certigrad
namespace aevb
section program
open certigrad.program certigrad.program... |
dd629abb036713b827b9be51549041bfd0e5e963 | 4767244035cdd124e1ce3d0c81128f8929df6163 | /data/set/finite.lean | 53ebfbd346a5c5151a265252eb1805b2a4c83276 | [
"Apache-2.0"
] | permissive | 5HT/mathlib | b941fecacd31a9c5dd0abad58770084b8a1e56b1 | 40fa9ade2f5649569639608db5e621e5fad0cc02 | refs/heads/master | 1,586,978,681,358 | 1,546,681,764,000 | 1,546,681,764,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 15,965 | lean | /-
Copyright (c) 2017 Johannes Hölzl. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Johannes Hölzl, Mario Carneiro
Finite sets.
-/
import data.set.lattice data.nat.basic logic.function
data.fintype
open set lattice function
universes u v w
variables {α : Typ... |
539157fbab1ea7736ab044413393c8978f2b482f | 80cc5bf14c8ea85ff340d1d747a127dcadeb966f | /src/algebra/group_ring_action.lean | 0eac2a0feeb33c6d74f10d7365bda9c621fb600d | [
"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 | 9,289 | 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 group_theory.group_action
import data.equiv.ring
import data.polynomial.monic
/-!
# Group action on rings
This file defines the typeclass of monoid acting on semiring... |
f997cfc3e23a9e53f5f2b46a4c4348eec59e3f50 | f4bff2062c030df03d65e8b69c88f79b63a359d8 | /src/game/limits/seq_lim_add.lean | ee53d007ffbb7ae5fa83deeaea4c4934a21b0d7c | [
"Apache-2.0"
] | permissive | adastra7470/real-number-game | 776606961f52db0eb824555ed2f8e16f92216ea3 | f9dcb7d9255a79b57e62038228a23346c2dc301b | refs/heads/master | 1,669,221,575,893 | 1,594,669,800,000 | 1,594,669,800,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 1,284 | lean | import game.limits.L01defs
import game.sup_inf.GLBprop_if_LUBprop
namespace xena -- hide
notation `|` x `|` := abs x -- hide
/-
Another basic result for working with sequences.
-/
/- Lemma
If $\lim_{n \to \infty} a_n = \alpha$ and $\lim_{n \to \infty} b_n = \beta$, then
$\lim_{n \to \infty} (a_n + b_n) = \alpha +... |
c2c509091b104ef8628eb36ce59837451594dd13 | 2a70b774d16dbdf5a533432ee0ebab6838df0948 | /_target/deps/mathlib/src/algebra/ordered_monoid.lean | 527d71dcf20e417ae93ac4bcf2579ce138a8eb56 | [
"Apache-2.0"
] | permissive | hjvromen/lewis | 40b035973df7c77ebf927afab7878c76d05ff758 | 105b675f73630f028ad5d890897a51b3c1146fb0 | refs/heads/master | 1,677,944,636,343 | 1,676,555,301,000 | 1,676,555,301,000 | 327,553,599 | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 40,428 | lean | /-
Copyright (c) 2016 Jeremy Avigad. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Jeremy Avigad, Leonardo de Moura, Mario Carneiro, Johannes Hölzl
-/
import algebra.group.with_one
import algebra.group.type_tags
import algebra.group.prod
import algebra.order_functions... |
177deb5baeb66833fc46e256b0dfff5067bbc4d7 | 55c7fc2bf55d496ace18cd6f3376e12bb14c8cc5 | /src/analysis/convex/cone.lean | 473f4739302fc27f4f74375d8e25e89faaa595c3 | [
"Apache-2.0"
] | permissive | dupuisf/mathlib | 62de4ec6544bf3b79086afd27b6529acfaf2c1bb | 8582b06b0a5d06c33ee07d0bdf7c646cae22cf36 | refs/heads/master | 1,669,494,854,016 | 1,595,692,409,000 | 1,595,692,409,000 | 272,046,630 | 0 | 0 | Apache-2.0 | 1,592,066,143,000 | 1,592,066,142,000 | null | UTF-8 | Lean | false | false | 18,740 | lean | /-
Copyright (c) 2020 Yury Kudryashov All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Yury Kudryashov
-/
import linear_algebra.linear_pmap
import analysis.convex.basic
import order.zorn
/-!
# Convex cones
In a vector space `E` over `ℝ`, we define a convex cone as a su... |
9cb9c9250dcb1dc112b934b3a058bc35f924a91c | f3a5af2927397cf346ec0e24312bfff077f00425 | /src/game/world10/level17.lean | 9716bfffdc9e012bfdf055e6abf4fcdbe0f3bff8 | [
"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 | 1,395 | lean | import game.world10.level16 -- hide
namespace mynat -- hide
/-
# Inequality world.
## Level 17: definition of `<`
OK so we are going to *define* `a < b` by `a ≤ b ∧ ¬ (b ≤ a)`,
and given `lt_aux_one a b` and `lt_aux_two a b` it should now just
be a few lines to prove `a < b ↔ succ(a) ≤ b`.
-/
definition lt (a b... |
47cbdaf3efd3b1d1afc9d6f5a0e3cc66306bca4e | 4727251e0cd73359b15b664c3170e5d754078599 | /src/topology/metric_space/emetric_space.lean | 7d68879b558f7e854ac03d214b5ff28edd3904ad | [
"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 | 46,663 | lean | /-
Copyright (c) 2015, 2017 Jeremy Avigad. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Jeremy Avigad, Robert Y. Lewis, Johannes Hölzl, Mario Carneiro, Sébastien Gouëzel
-/
import data.nat.interval
import data.real.ennreal
import topology.uniform_space.pi
import topo... |
8e9bc5e52959c82ed041a15175c0f9d7ea96d3e4 | 6e44fda625e48340c6ffc7b1109a9e3b208e5384 | /src/topology/compact.lean | b1c1f975b758782aed31f06fde5ed2e8603f117b | [] | no_license | JasonKYi/learn_mspaces | 9f998a265b907af6be6a54061637fcf1f6d1ee9d | 54083e81da420d2d362a7024a8c86bea8529fe66 | refs/heads/master | 1,619,008,842,896 | 1,609,897,382,000 | 1,609,897,382,000 | 249,780,600 | 5 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 26 | lean | import topology.theorems
|
4bc53f2d4ccec7d950231a151e26a1b7180e36f5 | 86f6f4f8d827a196a32bfc646234b73328aeb306 | /examples/sets_functions_and_relations/unnamed_224.lean | 5bc180e0fdfd8e97c38290b3e144dc7ca8b6d77c | [] | 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 | 531 | lean | import tactic
variable {α : Type*}
variables (s t u : set α)
-- BEGIN
example : s \ t \ u ⊆ s \ (t ∪ u) :=
begin
intros x xstu,
have xs : x ∈ s := xstu.1.1,
have xnt : x ∉ t := xstu.1.2,
have xnu : x ∉ u := xstu.2,
split,
{ exact xs }, dsimp,
intro xtu, -- x ∈ t ∨ x ∈ u
cases xtu with xt xu,
{ show ... |
50a4210df7557cbd5d986445c4e1f6dea3cd7751 | fa02ed5a3c9c0adee3c26887a16855e7841c668b | /src/category_theory/full_subcategory.lean | b97582c47ef78b73ec2747847b787e2d234ca4b5 | [
"Apache-2.0"
] | permissive | jjgarzella/mathlib | 96a345378c4e0bf26cf604aed84f90329e4896a2 | 395d8716c3ad03747059d482090e2bb97db612c8 | refs/heads/master | 1,686,480,124,379 | 1,625,163,323,000 | 1,625,163,323,000 | 281,190,421 | 2 | 0 | Apache-2.0 | 1,595,268,170,000 | 1,595,268,169,000 | null | UTF-8 | Lean | false | false | 3,687 | lean | /-
Copyright (c) 2017 Scott Morrison. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Scott Morrison, Reid Barton
-/
import category_theory.fully_faithful
namespace category_theory
universes v u₁ u₂ -- morphism levels before object levels. See note [category_theory un... |
774df18725f06269f2b1407c5081d6c42a5ba113 | c777c32c8e484e195053731103c5e52af26a25d1 | /src/combinatorics/hall/basic.lean | 93ab54529b959f89ef83512e7c6033a2024d1b59 | [
"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 | 10,162 | lean | /-
Copyright (c) 2021 Alena Gusakov, Bhavik Mehta, Kyle Miller. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Alena Gusakov, Bhavik Mehta, Kyle Miller
-/
import combinatorics.hall.finite
import category_theory.cofiltered_system
import data.rel
/-!
# Hall's Marriage T... |
7e8712923abc938c276e346f1985daf97302c4b0 | 0845ae2ca02071debcfd4ac24be871236c01784f | /tests/lean/repr_issue.lean | 5651e61f14c7225de6119c4462e02e5e06a3df2c | [
"Apache-2.0"
] | permissive | GaloisInc/lean4 | 74c267eb0e900bfaa23df8de86039483ecbd60b7 | 228ddd5fdcd98dd4e9c009f425284e86917938aa | refs/heads/master | 1,643,131,356,301 | 1,562,715,572,000 | 1,562,715,572,000 | 192,390,898 | 0 | 0 | null | 1,560,792,750,000 | 1,560,792,749,000 | null | UTF-8 | Lean | false | false | 628 | lean | def foo {m} [Monad m] [MonadExcept String m] [MonadState (Array Nat) m] : m Nat :=
catch (do modify $ fun (a : Array Nat) => a.set 0 33;
throw "error")
(fun _ => do a ← get; pure $ a.get 0)
def ex₁ : StateT (Array Nat) (ExceptT String Id) Nat :=
foo
def ex₂ : ExceptT String (StateT (Array Nat) Id) Nat... |
df68cd0dd82244610a36a3e19133b15d6467ea86 | a156d865507798f08f46a2f6ca204d9727f4734d | /src/tactic/fattribute.lean | 00a5ad124bafab170ff6c3836da93bf06c4ae213 | [] | no_license | jesse-michael-han/formalabstracts | 4e2fc8c107a3388823ffbd1671dd1e54108ea394 | 63a949de7989f17c791c40e580c3011516af57e0 | refs/heads/master | 1,625,470,495,408 | 1,551,315,841,000 | 1,551,316,547,000 | 136,272,424 | 0 | 0 | null | 1,528,259,798,000 | 1,528,259,798,000 | null | UTF-8 | Lean | false | false | 1,743 | lean | /-
Copyright (c) 2018 Koundinya Vajjha. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Koundinya Vajjha
The fabstract user attribute.
-/
import tactic.metadata
open interactive interactive.types lean.parser tactic native
-- @[user_attribute]
-- meta def fabstract_a... |
5844b149fcfa3950f9dbba685fdc7ea64657513d | fa02ed5a3c9c0adee3c26887a16855e7841c668b | /src/category_theory/limits/creates.lean | c8f4fa4f80c92b0b7846eaa14dcdf0449a3b2eb3 | [
"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 | 21,713 | 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 v u₁ u₂ u₃
variabl... |
d8a842f88b79fecf6738da67e63c580acefe29b2 | 82e44445c70db0f03e30d7be725775f122d72f3e | /src/algebra/category/Mon/adjunctions.lean | 4525e0ad1879c9c393f5faf43fc1950c99373a7f | [
"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 | 2,266 | 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.category.Mon.basic
import algebra.category.Semigroup.basic
import algebra.group.with_one
import algebra.free_monoid
/-!
# Adjunctions regardin... |
ed1bca05ac60115f8e89c46df2f4244cc9b0da3e | 4d2583807a5ac6caaffd3d7a5f646d61ca85d532 | /src/algebra/group_with_zero/defs.lean | 6f53d074b48a6a52e0023e4963040bee2acba71b | [
"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,446 | 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 algebra.group.defs
import logic.nontrivial
/-!
# Typeclasses for groups with an adjoined zero element
This file provides just the typeclass definitions, and ... |
48f28d2f9bbd980c0edc912970ddaf8f576371e3 | 8cb37a089cdb4af3af9d8bf1002b417e407a8e9e | /library/init/data/int/basic.lean | 8501a93ca5bbcb10f259cfb4fc70a56579935791 | [
"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 | 23,205 | lean | /-
Copyright (c) 2016 Jeremy Avigad. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Jeremy Avigad
The integers, with addition, multiplication, and subtraction.
-/
prelude
import init.data.nat.lemmas init.data.nat.gcd
open nat
/- the type, coercions, and notation -/
... |
85380ed6c3d7ed979eb0ab06a3c89abaa6a1dd01 | e38d5e91d30731bef617cc9b6de7f79c34cdce9a | /src/core/path.lean | 970e39b0920a238e6a2b3961dac731484a893f95 | [
"Apache-2.0"
] | permissive | bbentzen/cubicalean | 55e979c303fbf55a81ac46b1000c944b2498be7a | 3b94cd2aefdfc2163c263bd3fc6f2086fef814b5 | refs/heads/master | 1,588,314,875,258 | 1,554,412,699,000 | 1,554,412,699,000 | 177,333,390 | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 6,083 | lean | /-
Copyright (c) 2019 Bruno Bentzen. All rights reserved.
Released under the Apache License 2.0 (see "License");
Author: Bruno Bentzen
-/
import core.kan.hcom
open interval
-- propositional dependent path type (type equality up to propositional equality)
inductive pathdp (A : I → Type) {A0 A1 : Type} (a... |
652518716df09bdc9e7be666bc96411578ef2566 | 4727251e0cd73359b15b664c3170e5d754078599 | /src/ring_theory/roots_of_unity.lean | 68a891d13c2826935bbd685bfb689dd648181b27 | [
"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 | 47,528 | 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.polynomial.ring_division
import tactic.zify
import field_theory.separable
import data.zmod.basic
import ring_theory.integral_domain
import number_theory.... |
164c1ab4fcdd496d644e6e87467c479d983ee1d3 | 3446e92e64a5de7ed1f2109cfb024f83cd904c34 | /src/game/world2/level2.lean | 22f1ab4cc90c3fb541adaf4cc73ad77ba97d37c0 | [] | no_license | kckennylau/natural_number_game | 019f4a5f419c9681e65234ecd124c564f9a0a246 | ad8c0adaa725975be8a9f978c8494a39311029be | refs/heads/master | 1,598,784,137,722 | 1,571,905,156,000 | 1,571,905,156,000 | 218,354,686 | 0 | 0 | null | 1,572,373,319,000 | 1,572,373,318,000 | null | UTF-8 | Lean | false | false | 2,156 | lean | import mynat.definition -- hide
import mynat.add -- hide
import game.world2.level1 -- hide
namespace mynat -- hide
/-
# World 2 -- addition world
## Your theorems so far:
* `zero_ne_succ : ∀ (a : mynat), zero ≠ succ(a)`
* `succ_inj : ∀ a b : mynat, succ(a) = succ(b) → a = b`
* `add_zero : ∀ a : mynat, a + 0 =... |
307da4910aea55b7bcb48a906ec83d206054587d | cc62cd292c1acc80a10b1c645915b70d2cdee661 | /src/category_theory/idempotent_completion.lean | d01a8ad061d410a3c0c2f5247996197a21db6a35 | [] | no_license | RitaAhmadi/lean-category-theory | 4afb881c4b387ee2c8ce706c454fbf9db8897a29 | a27b4ae5eac978e9188d2e867c3d11d9a5b87a9e | refs/heads/master | 1,651,786,183,402 | 1,565,604,314,000 | 1,565,604,314,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 3,645 | lean | -- Copyright (c) 2017 Scott Morrison. All rights reserved.
-- Released under Apache 2.0 license as described in the file LICENSE.
-- Authors: Stephen Morgan, Scott Morrison
import category_theory.tactics.obviously
import category_theory.equivalence
namespace category_theory
universes v₁ v₂ u₁ u₂
structure idempotent... |
763af81526cc1156c50bb7c26bfb96bc0c9c4908 | cf39355caa609c0f33405126beee2739aa3cb77e | /tests/lean/run/lift_nested_rec.lean | 32a3d7eca35fbd59ef4a496edec7fe1cacad4fd5 | [
"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 | 246 | lean | definition f : nat → (nat × nat) → nat
| 0 m := m.1
| (n+1) m :=
match m with
| (a, b) := (f n (b, a + 1)) + (f n (a, b))
end
#check @f._main.equations._eqn_1
#check @f._main.equations._eqn_2
#check @f._match_1.equations._eqn_1
|
f5c4e8812023658e4d1dc4f072def505996063bf | 74addaa0e41490cbaf2abd313a764c96df57b05d | /Mathlib/Lean3Lib/init/data/unsigned/basic_auto.lean | 00e705b1baea5b64edbc65437298ce8d0e5a9aaf | [] | no_license | AurelienSaue/Mathlib4_auto | f538cfd0980f65a6361eadea39e6fc639e9dae14 | 590df64109b08190abe22358fabc3eae000943f2 | refs/heads/master | 1,683,906,849,776 | 1,622,564,669,000 | 1,622,564,669,000 | 371,723,747 | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 2,333 | 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
-/
import Mathlib.PrePort
import Mathlib.Lean3Lib.init.data.fin.basic
namespace Mathlib
def unsigned_sz : ℕ :=
Nat.succ
(bit1
(bit1
(bit1... |
81ef5bc98b74066dec53d5faff4ef1779239383c | 74addaa0e41490cbaf2abd313a764c96df57b05d | /Mathlib/logic/function/basic.lean | d7aff1ac94736415fa9ef38d6c981a8087222e24 | [] | 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 | 26,818 | lean | /-
Copyright (c) 2016 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 Mathlib.PrePort
import Mathlib.Lean3Lib.init.default
import Mathlib.logic.basic
import Mathlib.data.option.defs
import Mathlib.PostPort
univer... |
d7e108207f1795ca451b02cf74aba0d2072189f9 | aa3f8992ef7806974bc1ffd468baa0c79f4d6643 | /tests/lean/bad_structures.lean | 27f0755a58d0b623613d2a9765816b1b3ce2efc9 | [
"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 | 326 | lean | structure prod.{l} (A : Type.{l}) (B : Type.{l}) :=
(pr1 : A) (pr2 : B)
structure prod.{l} (A : Type.{l}) (B : Type.{l}) : Type :=
(pr1 : A) (pr2 : B)
structure prod.{l} (A : Type.{l}) (B : Type.{l}) : Type.{l} :=
(pr1 : A) (pr2 : B)
structure prod.{l} (A : Type.{l}) (B : Type.{l}) : Type.{max 1 l} :=
(pr1 : A) (pr2... |
6e4cbc8675f97c9d397a55a3e7595cde81e6226a | ce6917c5bacabee346655160b74a307b4a5ab620 | /src/ch2/ex0304.lean | 0508e04105a36c9ca7ec0c11ab51fa40e74ff970 | [] | 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 | 150 | lean | constants α β γ : Type
#check λ b : β, λ x : α, x
#check λ (b : β) (x : α), x
#check λ (g : β → γ) (f : α → β) (x : α), g (f x)
|
57b2d2a13cee64852991c4213ed16bdc1fcc2135 | 35677d2df3f081738fa6b08138e03ee36bc33cad | /test/norm_cast.lean | 385c394d96077c524b2580649d73dff7eb222050 | [
"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 | 3,038 | lean | /-
Tests for norm_cast
-/
import tactic.norm_cast
import data.complex.basic -- ℕ, ℤ, ℚ, ℝ, ℂ
import data.zmod.basic
constants (an bn cn dn : ℕ) (az bz cz dz : ℤ) (aq bq cq dq : ℚ)
constants (ar br cr dr : ℝ) (ac bc cc dc : ℂ)
example : (an : ℤ) = bn → an = bn := λ h, by exact_mod_cast h -- by simp
example : an = bn ... |
22cfe190c645dcf556dd510b4a2a539facd0af6a | 947b78d97130d56365ae2ec264df196ce769371a | /tests/lean/match4.lean | 8ce3060fb9511ffccde848900fa5b247349f6055 | [
"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,126 | lean | new_frontend
def f1 (x : Nat × Nat) : Nat :=
match x with
| { fst := x, snd := y } => x - y
#eval f1 (20, 15)
def g1 (h : Nat × Nat × Nat → Nat) : Nat :=
h (1, 2, 3)
def f2 (w : Nat) : Nat :=
g1 fun (x, y, z) => x + y + z + w
#eval f2 10
def g2 (h : Nat × Nat → Nat × Nat → Nat) : Nat :=
h (1, 2) (20, 40)
def f3 ... |
ce0137a9e839a4a45a3d9e36183600aa474e3e6b | 2eab05920d6eeb06665e1a6df77b3157354316ad | /src/topology/algebra/ordered/basic.lean | f59e0470de770e80f1f09aeafaed5d6e0348329b | [
"Apache-2.0"
] | permissive | ayush1801/mathlib | 78949b9f789f488148142221606bf15c02b960d2 | ce164e28f262acbb3de6281b3b03660a9f744e3c | refs/heads/master | 1,692,886,907,941 | 1,635,270,866,000 | 1,635,270,866,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 118,377 | lean | /-
Copyright (c) 2017 Johannes Hölzl. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Johannes Hölzl, Mario Carneiro, Yury Kudryashov
-/
import algebra.group_with_zero.power
import data.set.intervals.pi
import order.filter.interval
import topology.algebra.group
import t... |
928c1e61393dec695f1bd8de1b761f317e8a90a9 | 4727251e0cd73359b15b664c3170e5d754078599 | /src/algebra/hom/group_instances.lean | 9ba4e7a68da68cb15adefa118278d127a27ed2c8 | [
"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 | 10,036 | lean | /-
Copyright (c) 2018 Patrick Massot. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Patrick Massot, Kevin Buzzard, Scott Morrison, Johan Commelin, Chris Hughes,
Johannes Hölzl, Yury Kudryashov
-/
import algebra.group_power.basic
/-!
# Instances on spaces of monoid... |
2461846c80b06f2dd307c98ca14a25009cce6771 | efce24474b28579aba3272fdb77177dc2b11d7aa | /src/category_theory/induced.lean | fe66d3a1d5cf292c108160507dfe5a7b60fcf14d | [
"Apache-2.0"
] | permissive | rwbarton/lean-homotopy-theory | cff499f24268d60e1c546e7c86c33f58c62888ed | 39e1b4ea1ed1b0eca2f68bc64162dde6a6396dee | refs/heads/lean-3.4.2 | 1,622,711,883,224 | 1,598,550,958,000 | 1,598,550,958,000 | 136,023,667 | 12 | 6 | Apache-2.0 | 1,573,187,573,000 | 1,528,116,262,000 | Lean | UTF-8 | Lean | false | false | 1,909 | lean | import category_theory.base
import category_theory.eq_to_hom
import category_theory.groupoid
import category_theory.full_subcategory
universes v x z u u' w w' y y'
local notation f ` ∘ `:80 g:80 := g ≫ f
namespace category_theory
-- TODO: merge with category_theory.full_subcategory
local attribute [simps] induced_... |
017b8484e66c01e7695a1fc567f6076bf912ff00 | 5412d79aa1dc0b521605c38bef9f0d4557b5a29d | /src/Lean/MonadEnv.lean | bc53c7474f4c959c037ced606dd29437438a8e89 | [
"Apache-2.0"
] | permissive | smunix/lean4 | a450ec0927dc1c74816a1bf2818bf8600c9fc9bf | 3407202436c141e3243eafbecb4b8720599b970a | refs/heads/master | 1,676,334,875,188 | 1,610,128,510,000 | 1,610,128,521,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 5,142 | 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.Environment
import Lean.Exception
namespace Lean
def setEnv [MonadEnv m] (env : Environment) : m Unit :=
modifyEnv fun _ => env
def isInduc... |
8f432eb0e683347bc2d3a2f5c5fff1495867ded9 | 8b9f17008684d796c8022dab552e42f0cb6fb347 | /library/init/prod.lean | a29ec3dce0ef4a89e8cc7d538e1330898da57dd7 | [
"Apache-2.0"
] | permissive | chubbymaggie/lean | 0d06ae25f9dd396306fb02190e89422ea94afd7b | d2c7b5c31928c98f545b16420d37842c43b4ae9a | refs/heads/master | 1,611,313,622,901 | 1,430,266,839,000 | 1,430,267,083,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 3,451 | lean | /-
Copyright (c) 2014 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Module: init.prod
Author: Leonardo de Moura, Jeremy Avigad
-/
prelude
import init.num init.wf
definition pair := @prod.mk
notation A × B := prod A B
-- notation for n-ary tuples
notati... |
3e193058c0ba0030238d5c84012377b261fca9c1 | 57c233acf9386e610d99ed20ef139c5f97504ba3 | /src/algebra/quaternion.lean | 8f8e5670a141b6559566ad3faa9e3ad3c7ca5802 | [
"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 | 22,412 | lean | /-
Copyright (c) 2020 Yury Kudryashov. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Yury Kudryashov
-/
import tactic.ring_exp
import algebra.algebra.basic
import algebra.ring.opposite
import data.equiv.ring
/-!
# Quaternions
In this file we define quaternions `ℍ[R]... |
3de35da491641cf518473b26401ffec3e7569740 | ce6917c5bacabee346655160b74a307b4a5ab620 | /src/ch4/ex0104.lean | 2acf07ad9e5f954e2691e01e245a91299dff0af6 | [] | 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 | 240 | lean | universe u
variables (α : Type u) (r : α → α → Prop)
variable trans_r : ∀ {x y z}, r x y → r y z → r x z
variables (a b c : α)
variables (hab : r a b) (hbc : r b c)
#check trans_r
#check trans_r hab
#check trans_r hab hbc
|
867dc2cd44462f3537fd26404c287d312cac3e23 | e91b0bc0bcf14cf6e1bfc20ad1f00ad7cfa5fa76 | /src/sheaves/presheaf_of_types_on_basis.lean | dc4df1e557c9739e0e676e47cfb71eaea391de13 | [] | no_license | kckennylau/lean-scheme | b2de50025289a0339d97798466ef777e1899b0f8 | 8dc513ef9606d2988227490e915b7c7e173a2791 | refs/heads/master | 1,587,165,137,978 | 1,548,172,249,000 | 1,548,172,249,000 | 167,025,881 | 0 | 0 | null | 1,548,173,930,000 | 1,548,173,924,000 | Lean | UTF-8 | Lean | false | false | 2,735 | lean | import topology.basic
universes u v
open topological_space
-- Presheaf of types where we only define sections on basis elements.
structure presheaf_of_types_on_basis (α : Type u) [T : topological_space α]
{B : set (set α)} (HB : is_topological_basis B) :=
(F : Π {U}, U ∈ B → Type v)
(res : ∀ {U V} (BU : U ∈... |
6e8155019af47124fd5322c9ff666ecab3b37a61 | acc85b4be2c618b11fc7cb3005521ae6858a8d07 | /data/set/basic.lean | 26f625b67eb68b40035abd0bbcceb66b7b068fa0 | [
"Apache-2.0"
] | permissive | linpingchuan/mathlib | d49990b236574df2a45d9919ba43c923f693d341 | 5ad8020f67eb13896a41cc7691d072c9331b1f76 | refs/heads/master | 1,626,019,377,808 | 1,508,048,784,000 | 1,508,048,784,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 26,630 | lean | /-
Copyright (c) 2014 Jeremy Avigad. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Author: Jeremy Avigad, Leonardo de Moura
-/
import tactic.finish
namespace set
universes u v w x
variables {α : Type u} {β : Type v} {γ : Type w} {ι : Sort x}
instance : inhabited (set α) := ⟨... |
29044768906382f11760326ef790b23918c57cf6 | 624f6f2ae8b3b1adc5f8f67a365c51d5126be45a | /tests/lean/run/coeSort1.lean | 715aadabad3612c34864665892e72b8bc5cdfd94 | [
"Apache-2.0"
] | permissive | mhuisi/lean4 | 28d35a4febc2e251c7f05492e13f3b05d6f9b7af | dda44bc47f3e5d024508060dac2bcb59fd12e4c0 | refs/heads/master | 1,621,225,489,283 | 1,585,142,689,000 | 1,585,142,689,000 | 250,590,438 | 0 | 2 | Apache-2.0 | 1,602,443,220,000 | 1,585,327,814,000 | C | UTF-8 | Lean | false | false | 285 | lean | new_frontend
universes u
def Below (n : Nat) : Nat → Prop :=
(· < n)
def f {n : Nat} (v : Subtype (Below n)) : Nat :=
v + 1
instance pred2subtype {α : Type u} : CoeSort (α → Prop) (Type u) :=
CoeSort.mk (fun p => Subtype p)
def g {n : Nat} (v : Below n) : Nat :=
v.val + 1
|
d2f44d169c2175dda7a9f673d5a2b1dff6cc0e17 | d406927ab5617694ec9ea7001f101b7c9e3d9702 | /src/data/set/intervals/basic.lean | 1fa228c395e8939c74a157ffe25bd9630816308f | [
"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 | 53,679 | lean | /-
Copyright (c) 2017 Johannes Hölzl. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Johannes Hölzl, Mario Carneiro, Patrick Massot, Yury Kudryashov, Rémy Degenne
-/
import order.min_max
import data.set.prod
/-!
# Intervals
In any preorder `α`, we define intervals (w... |
38301ce4b490d36df0fc1b494f0ec1795f7e852e | cf39355caa609c0f33405126beee2739aa3cb77e | /tests/lean/run/411c.lean | 5aca398ce0a962e1b34fb47a60cfe38b680eabc5 | [
"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 | 144 | lean | def decidable_ball_le (n : ℕ) (P : Π k ≤ n, Prop)
[H : ∀ n h, decidable (P n h)] : decidable (P 0 (nat.zero_le _)) :=
by apply_instance |
e673a7e66901b0a4e047682935493d98cd0a254a | d1bbf1801b3dcb214451d48214589f511061da63 | /src/ring_theory/jacobson.lean | da2527d7ada5f94e57b85d3acd0930d796ff8290 | [
"Apache-2.0"
] | permissive | cheraghchi/mathlib | 5c366f8c4f8e66973b60c37881889da8390cab86 | f29d1c3038422168fbbdb2526abf7c0ff13e86db | refs/heads/master | 1,676,577,831,283 | 1,610,894,638,000 | 1,610,894,638,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 32,503 | lean | /-
Copyright (c) 2020 Devon Tuma. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Devon Tuma
-/
import data.mv_polynomial
import ring_theory.ideal.over
import ring_theory.jacobson_ideal
import ring_theory.localization
/-!
# Jacobson Rings
The following conditions are ... |
376df45b54c8ad30188499c9515ae0436cd38e8a | c777c32c8e484e195053731103c5e52af26a25d1 | /src/analysis/normed_space/star/basic.lean | b19ac63146511a84889b994f45cf444472aa75ce | [
"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 | 10,435 | lean | /-
Copyright (c) 2021 Frédéric Dupuis. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Frédéric Dupuis
-/
import analysis.normed.group.hom
import analysis.normed_space.basic
import analysis.normed_space.linear_isometry
import algebra.star.self_adjoint
import algebra.st... |
a277652a84e2a9d601c3b40863e193716b098ada | 94e33a31faa76775069b071adea97e86e218a8ee | /src/category_theory/limits/creates.lean | 5afd8b5e0267a3e930c60debcd7e37b5431a3518 | [
"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 | 26,177 | 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
/-!
# Creating (co)limits
We say that `F` creates limits of `K` if, given any limit cone `c` for `K ⋙ F`
(i.e. below) we c... |
59ab636bc4adc139fe46a9498efb7831c5918dca | 8b9f17008684d796c8022dab552e42f0cb6fb347 | /hott/arity.hlean | 954e0f6eefda3c1556160c0c450386160d7ab999 | [
"Apache-2.0"
] | permissive | chubbymaggie/lean | 0d06ae25f9dd396306fb02190e89422ea94afd7b | d2c7b5c31928c98f545b16420d37842c43b4ae9a | refs/heads/master | 1,611,313,622,901 | 1,430,266,839,000 | 1,430,267,083,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 7,239 | hlean | /-
Copyright (c) 2014 Floris van Doorn. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Module: init.path
Author: Floris van Doorn
Theorems about functions with multiple arguments
-/
variables {A U V W X Y Z : Type} {B : A → Type} {C : Πa, B a → Type} {D : Πa b, C a b → Type}... |
cadf81e21b49945729b192b36083856966b492b3 | a9d0fb7b0e4f802bd3857b803e6c5c23d87fef91 | /tests/lean/run/unification_hints.lean | 2245d730aa3e41fc1c71c95216e516363399aa76 | [
"Apache-2.0"
] | permissive | soonhokong/lean-osx | 4a954262c780e404c1369d6c06516161d07fcb40 | 3670278342d2f4faa49d95b46d86642d7875b47c | refs/heads/master | 1,611,410,334,552 | 1,474,425,686,000 | 1,474,425,686,000 | 12,043,103 | 5 | 1 | null | null | null | null | UTF-8 | Lean | false | false | 1,031 | lean | open list nat
structure unification_constraint := {A : Type} (lhs : A) (rhs : A)
structure unification_hint := (pattern : unification_constraint) (constraints : list unification_constraint)
namespace toy
constants (A : Type.{1}) (f h : A → A) (x y z : A)
attribute [irreducible]
noncomputable definition g (x y : A) : ... |
63bd5eac3021ca28ff764a890abe75777c17e115 | 0d9b0a832bc57849732c5bd008a7a142f7e49656 | /src/XSokoban_90_l1_sol.lean | 25654492fd1f98a261d0bb9b38783e40a0f14917 | [] | no_license | mirefek/sokoban.lean | bb9414af67894e4d8ce75f8c8d7031df02d371d0 | 451c92308afb4d3f8e566594b9751286f93b899b | refs/heads/master | 1,681,025,245,267 | 1,618,997,832,000 | 1,618,997,832,000 | 359,491,681 | 10 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 6,614 | lean | -- Solution: var/XSokoban_90_l1/solution_253_97.mov
-- Levelset: data/Large Test Suite Sets/XSokoban_90.xsb
-- Level: 1
import .sokolevel
import .show_sokolevel
def XSokoban_90_l1 := sokolevel.from_string "
#####
# #
#$ #
### $##
# $ $ #
### # ## # ... |
ebfbc3afd8f9591c4cca04a1245bfe9c8d5d7533 | 6432ea7a083ff6ba21ea17af9ee47b9c371760f7 | /src/Init/Control/StateRef.lean | 7bbdd8c341cdf77043fb5d7649ab7e7f01b94f0a | [
"Apache-2.0",
"LLVM-exception",
"NCSA",
"LGPL-3.0-only",
"LicenseRef-scancode-inner-net-2.0",
"BSD-3-Clause",
"LGPL-2.0-or-later",
"Spencer-94",
"LGPL-2.1-or-later",
"HPND",
"LicenseRef-scancode-pcre",
"ISC",
"LGPL-2.1-only",
"LicenseRef-scancode-other-permissive",
"SunPro",
"CMU-Mach"... | permissive | leanprover/lean4 | 4bdf9790294964627eb9be79f5e8f6157780b4cc | f1f9dc0f2f531af3312398999d8b8303fa5f096b | refs/heads/master | 1,693,360,665,786 | 1,693,350,868,000 | 1,693,350,868,000 | 129,571,436 | 2,827 | 311 | Apache-2.0 | 1,694,716,156,000 | 1,523,760,560,000 | Lean | UTF-8 | Lean | false | false | 2,590 | lean | /-
Copyright (c) 2020 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Leonardo de Moura, Sebastian Ullrich
The State monad transformer using IO references.
-/
prelude
import Init.System.IO
import Init.Control.State
def StateRefT' (ω : Type) (σ :... |
bce584a2b9908f807e4d4a52fa26e570bc0999ff | 618003631150032a5676f229d13a079ac875ff77 | /src/topology/uniform_space/abstract_completion.lean | e9fc0c1996465429b565a2a43fa6c658261654ce | [
"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 | 11,168 | lean | /-
Copyright (c) 2019 Patrick Massot. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Patrick Massot
-/
import topology.uniform_space.uniform_embedding
/-!
# Abstract theory of Hausdorff completions of uniform spaces
This file characterizes Hausdorff completions of a ... |
2c69646a1f9b1b730905446e06c5291a77e5f4af | 07c6143268cfb72beccd1cc35735d424ebcb187b | /src/data/fintype/card.lean | 7bd0c610795b0f3b894a397e5644843a0af56d15 | [
"Apache-2.0"
] | permissive | khoek/mathlib | bc49a842910af13a3c372748310e86467d1dc766 | aa55f8b50354b3e11ba64792dcb06cccb2d8ee28 | refs/heads/master | 1,588,232,063,837 | 1,587,304,803,000 | 1,587,304,803,000 | 176,688,517 | 0 | 0 | Apache-2.0 | 1,553,070,585,000 | 1,553,070,585,000 | null | UTF-8 | Lean | false | false | 9,594 | lean | /-
Copyright (c) 2017 Mario Carneiro. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Author: Mario Carneiro
-/
import data.fintype.basic algebra.big_operators data.nat.choose tactic.ring
/-!
Results about "big operations" over a `fintype`, and consequent
results about cardina... |
7a9ed35a65dda976e1f85f03890cdaa2cf2379aa | bb31430994044506fa42fd667e2d556327e18dfe | /src/data/list/sort.lean | 86373474b8734db704f38991855c9d12c3e77671 | [
"Apache-2.0"
] | permissive | sgouezel/mathlib | 0cb4e5335a2ba189fa7af96d83a377f83270e503 | 00638177efd1b2534fc5269363ebf42a7871df9a | refs/heads/master | 1,674,527,483,042 | 1,673,665,568,000 | 1,673,665,568,000 | 119,598,202 | 0 | 0 | null | 1,517,348,647,000 | 1,517,348,646,000 | null | UTF-8 | Lean | false | false | 14,792 | lean | /-
Copyright (c) 2016 Jeremy Avigad. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Jeremy Avigad
-/
import data.list.of_fn
import data.list.perm
/-!
# Sorting algorithms on lists
In this file we define `list.sorted r l` to be an alias for `pairwise r l`. This alias ... |
643571da85608dccf6cf90809828625abf797236 | cf39355caa609c0f33405126beee2739aa3cb77e | /tests/lean/noncomputable_reason.lean | a6137c8da2d761c3c646533911d38424a0920e40 | [
"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 | 330 | lean | constant foo : ℕ
noncomputable def bar : ℕ := foo
noncomputable lemma bar' : ℕ := 37
def baz : ℕ := 0
open tactic
run_cmd do
e ← get_env,
trace $ e.decl_noncomputable_reason `foo,
trace $ e.decl_noncomputable_reason `bar,
trace $ e.decl_noncomputable_reason `bar',
trace $ e.decl_noncomputable_reason `baz
|
83c489470aeab7deb4ccfe761560bd58a7215129 | 8cae430f0a71442d02dbb1cbb14073b31048e4b0 | /src/analysis/normed_space/add_torsor.lean | 21887171303ef6cd8a37d44254709079b76dd311 | [
"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,178 | lean | /-
Copyright (c) 2020 Joseph Myers. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Joseph Myers, Yury Kudryashov
-/
import analysis.normed_space.basic
import analysis.normed.group.add_torsor
import linear_algebra.affine_space.midpoint_zero
import linear_algebra.affine_... |
eaf6eb884d8d04f9316c38294aed492423791cdb | 57c233acf9386e610d99ed20ef139c5f97504ba3 | /src/category_theory/groupoid.lean | d94cabd6b9938ca138ffb192d99076f792abae88 | [
"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,385 | lean | /-
Copyright (c) 2018 Reid Barton All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Reid Barton, Scott Morrison, David Wärn
-/
import category_theory.full_subcategory
import category_theory.products.basic
import category_theory.pi.basic
/-!
# Groupoids
We define `groupo... |
9925f7feccbf4a184bf53c86e7b4f7af9642db84 | a7dd8b83f933e72c40845fd168dde330f050b1c9 | /src/category_theory/natural_isomorphism.lean | 1cba3f4dd6cdcb27c177dc827ca5ea802a7d5a5c | [
"Apache-2.0"
] | permissive | NeilStrickland/mathlib | 10420e92ee5cb7aba1163c9a01dea2f04652ed67 | 3efbd6f6dff0fb9b0946849b43b39948560a1ffe | refs/heads/master | 1,589,043,046,346 | 1,558,938,706,000 | 1,558,938,706,000 | 181,285,984 | 0 | 0 | Apache-2.0 | 1,568,941,848,000 | 1,555,233,833,000 | Lean | UTF-8 | Lean | false | false | 5,072 | lean | -- Copyright (c) 2017 Scott Morrison. All rights reserved.
-- Released under Apache 2.0 license as described in the file LICENSE.
-- Authors: Tim Baumann, Stephen Morgan, Scott Morrison, Floris van Doorn
import category_theory.functor_category
import category_theory.isomorphism
open category_theory
universes v₁ v₂ v... |
d036c5afbe2c36d3cb29304b7fd79b9567b1c5e1 | 86f6f4f8d827a196a32bfc646234b73328aeb306 | /examples/logic/unnamed_1776.lean | 955cfd4a714e60d2bec62e9ed73e4aed951b01bb | [] | 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 | 215 | lean | import data.real.basic
-- BEGIN
theorem not_monotone_iff {f : ℝ → ℝ}:
¬ monotone f ↔ ∃ x y, x ≤ y ∧ f x > f y :=
by { rw monotone, push_neg }
example : ¬ monotone (λ x : ℝ, -x) :=
sorry
-- END |
c08f242ba353168880500f0491cd9fd7b491802b | b561a44b48979a98df50ade0789a21c79ee31288 | /src/Lean/Compiler/IR/EmitC.lean | 8d8f445256e159a8a1dfc199e627ae16141cb6e1 | [
"Apache-2.0"
] | permissive | 3401ijk/lean4 | 97659c475ebd33a034fed515cb83a85f75ccfb06 | a5b1b8de4f4b038ff752b9e607b721f15a9a4351 | refs/heads/master | 1,693,933,007,651 | 1,636,424,845,000 | 1,636,424,845,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 25,898 | lean | /-
Copyright (c) 2019 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Leonardo de Moura
-/
import Lean.Runtime
import Lean.Compiler.NameMangling
import Lean.Compiler.ExportAttr
import Lean.Compiler.InitAttr
import Lean.Compiler.IR.CompilerM
import... |
f64602d2bfd552ae71c90344c9232b1d7c112b7b | 799b5de27cebaa6eaa49ff982110d59bbd6c6693 | /mechanized/helper_lemmas.lean | 05a0270fe11777edd8c6f77c25dee3d6e5e7eafc | [
"MIT"
] | permissive | philnguyen/soft-contract | 263efdbc9ca2f35234b03f0d99233a66accda78b | 13e7d99e061509f0a45605508dd1a27a51f4648e | refs/heads/master | 1,625,975,131,435 | 1,617,775,585,000 | 1,617,775,704,000 | 17,326,137 | 33 | 7 | MIT | 1,613,722,535,000 | 1,393,714,126,000 | Racket | UTF-8 | Lean | false | false | 11,535 | lean | import finite_map definitions reduction metafunctions instantiation assumptions
-- This module declares and proves lemmas that are not important but help proving soundness
/-----------------------------------------
-- Shorthand for use in proofs
-----------------------------------------/
lemma in_steps {E E₁' E₂': E... |
4383d58da2a2e627304c712683c99d650968879d | 6432ea7a083ff6ba21ea17af9ee47b9c371760f7 | /src/Lean/Meta/Tactic/AC/Main.lean | 297565c1134db5a9e64079a0ca0902afec5b1a7f | [
"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,150 | lean | /-
Copyright (c) 2022 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Dany Fabian
-/
import Lean.Meta.AppBuilder
import Lean.Meta.Tactic.Refl
import Lean.Meta.Tactic.Simp.Main
import Lean.Elab.Tactic.Rewrite
namespace Lean.Meta.AC
open Lean.Data.... |
5a7bf65cdb0c8d9aaa56fa47da022647aff8054e | 957a80ea22c5abb4f4670b250d55534d9db99108 | /library/init/data/option/instances.lean | b29bfd8123d43de787879b910785876bb8c90396 | [
"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 | 1,711 | 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
-/
prelude
import init.data.option.basic
import init.meta.tactic
universes u v
@[inline] def option.bind {α : Type u} {β : Type v} : option α → (α → option β... |
4eaf5fda0e98684e60f63f74855447e9c4e19746 | ba4794a0deca1d2aaa68914cd285d77880907b5c | /src/game/world3/level8.lean | 12af73c8ae14007f54c6a032f554ef918082a973 | [
"Apache-2.0"
] | permissive | ChrisHughes24/natural_number_game | c7c00aa1f6a95004286fd456ed13cf6e113159ce | 9d09925424da9f6275e6cfe427c8bcf12bb0944f | refs/heads/master | 1,600,715,773,528 | 1,573,910,462,000 | 1,573,910,462,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 1,122 | lean | import game.world3.level7 -- hide
namespace mynat -- hide
/-
# Multiplication World
## Level 8: `mul_comm`
Finally, the boss level of multiplication world. But (assuming you
didn't cheat) you are well-prepared for it -- you have `zero_mul`
and `mul_zero`, as well as `succ_mul` and `mul_succ`. After this
level you ca... |
46eeb41fb3ba31dc00251c475947b8dceaa6771b | b70447c014d9e71cf619ebc9f539b262c19c2e0b | /hott/hit/two_quotient.hlean | 352031bf8550d29641ef95ac3c1bf7e3c38b1baa | [
"Apache-2.0"
] | permissive | ia0/lean2 | c20d8da69657f94b1d161f9590a4c635f8dc87f3 | d86284da630acb78fa5dc3b0b106153c50ffccd0 | refs/heads/master | 1,611,399,322,751 | 1,495,751,007,000 | 1,495,751,007,000 | 93,104,167 | 0 | 0 | null | 1,496,355,488,000 | 1,496,355,487,000 | null | UTF-8 | Lean | false | false | 31,498 | 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
-/
import homotopy.circle eq2 algebra.e_closure cubical.squareover cubical.cube cubical.square2
open quotient eq circle sum sigma equiv function relation e_closu... |
3060b28710dfb8ca2f9f43d53c0572cdef2f9f92 | 6432ea7a083ff6ba21ea17af9ee47b9c371760f7 | /tests/lean/macroResolveName.lean | b269e83a4f51e42f27f241d9d98142277b7c8bbb | [
"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 | 296 | lean | open Lean in
macro "resolveN" x:ident : term =>
return quote (k := `term) (← Macro.resolveNamespace x.getId)
open Lean in #check resolveN Macro
open Lean in
macro "resolve" x:ident : term =>
return quote (k := `term) (← Macro.resolveGlobalName x.getId)
open Nat in #check resolve succ
|
b8f96454424fe5d4e80661d34cd96a672c6461a1 | 63abd62053d479eae5abf4951554e1064a4c45b4 | /src/data/polynomial/basic.lean | 0836a5dee478b67191358adebaee4fee178ce639 | [
"Apache-2.0"
] | permissive | Lix0120/mathlib | 0020745240315ed0e517cbf32e738d8f9811dd80 | e14c37827456fc6707f31b4d1d16f1f3a3205e91 | refs/heads/master | 1,673,102,855,024 | 1,604,151,044,000 | 1,604,151,044,000 | 308,930,245 | 0 | 0 | Apache-2.0 | 1,604,164,710,000 | 1,604,163,547,000 | null | UTF-8 | Lean | false | false | 6,687 | 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... |
b961d71c5b4289051be02b0c1f9ed8184f84c09d | 87a08a8e9b222ec02f3327dca4ae24590c1b3de9 | /src/measure_theory/borel_space.lean | 75339de3d60e9c324df7e375b7661d5783a73fff | [
"Apache-2.0"
] | permissive | naussicaa/mathlib | 86d05223517a39e80920549a8052f9cf0e0b77b8 | 1ef2c2df20cf45c21675d855436228c7ae02d47a | refs/heads/master | 1,592,104,950,080 | 1,562,073,069,000 | 1,562,073,069,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 20,985 | 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
Borel (measurable) space -- the smallest σ-algebra generated by open sets
It would be nice to encode this in the topological space type class, i.e. each topological sp... |
c6982d54c56b0bea9572a175d2af1f15df9e8b2f | 4d2583807a5ac6caaffd3d7a5f646d61ca85d532 | /src/algebra/order/smul.lean | f1e68fcf1a3345387d3aa6574519bfd1b9e947a7 | [
"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 | 8,520 | lean | /-
Copyright (c) 2020 Frédéric Dupuis. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Frédéric Dupuis
-/
import algebra.order.pi
import algebra.smul_with_zero
import group_theory.group_action.group
/-!
# Ordered scalar product
In this file we define
* `ordered_smul... |
be80b69d8df23645159953c9a305ae8a28ac93f8 | 80cc5bf14c8ea85ff340d1d747a127dcadeb966f | /src/algebra/field.lean | 1b391ecb5329810cb78a03cd66492327b99adea0 | [
"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 | 9,580 | 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, Johannes Hölzl, Mario Carneiro
-/
import algebra.ring.basic
import algebra.group_with_zero
open set
set_option old_structure_cmd true
universe u
variab... |
9e6f25c56d8aab2d34eb31bbeea7291beb8c152f | b7f22e51856f4989b970961f794f1c435f9b8f78 | /tests/lean/run/vec_inv.lean | 053de401cadf1e17ea97a6d036305bb5ee4e10d5 | [
"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 | 731 | lean | import data.nat.basic data.empty data.prod
open nat eq.ops prod
inductive vector (T : Type) : ℕ → Type :=
| nil {} : vector T 0
| cons : T → ∀{n}, vector T n → vector T (succ n)
set_option pp.metavar_args true
set_option pp.implicit true
set_option pp.notation false
namespace vector
variables {A B C : Type}
vari... |
8414dcb7ffc2cdde5948c14784a5bc492ded757d | cf39355caa609c0f33405126beee2739aa3cb77e | /tests/lean/1917.lean | 004062d35df50fd92b80ec3614b2d8d0ae6bdab9 | [
"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 | 313 | lean | def foo : ℕ → false
| x :=
match x with
y := let z := y in foo z /- should fail -/
end
meta def foo2 : ℕ → false
| x :=
match x with
y := let z := y in foo2 z /- should work -/
end
def boo : ℕ → ℕ → bool
| 0 m := ff
| (n + 1) m :=
match m with
o := let z := n in boo n (m+1)
end
|
c7e4ae2b0fe6591503c23e4323c06f1c81fa9a0c | ff5230333a701471f46c57e8c115a073ebaaa448 | /tests/lean/run/1728.lean | 775d4688513f19475b4d66eee61691d2ea787c22 | [
"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 | 706 | lean | structure Bijection ( U V : Type ) :=
( morphism : U → V )
( inverse : V → U )
( witness_1 : ∀ u : U, inverse (morphism u) = u )
( witness_2 : ∀ v : V, morphism (inverse v) = v )
class Finite ( α : Type ) :=
( cardinality : nat )
( bijection : Bijection α (fin cardinality) )
lemma empty_exfalso (x : fals... |
8772a0505070dffc7b726ffc185bf4a0e738e628 | 19cc34575500ee2e3d4586c15544632aa07a8e66 | /src/analysis/special_functions/exp_log.lean | 1df543f94f59cb39c9f86a1e671e9800d359ef15 | [
"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 | 23,326 | lean | /-
Copyright (c) 2018 Chris Hughes. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Chris Hughes, Abhimanyu Pallavi Sudhir, Jean Lo, Calle Sönne
-/
import data.complex.exponential
import analysis.complex.basic
import analysis.calculus.mean_value
import measure_theory.bo... |
f55b5a7bc1433fb8a5454335ebad7ad6de134963 | 8cae430f0a71442d02dbb1cbb14073b31048e4b0 | /src/information_theory/hamming.lean | dcda8324f0b196a8e9fb8125c07dd5ccfbefcb6c | [
"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 | 14,246 | lean | /-
Copyright (c) 2022 Wrenna Robson. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Wrenna Robson
-/
import analysis.normed.group.basic
/-!
# Hamming spaces
> THIS FILE IS SYNCHRONIZED WITH MATHLIB4.
> Any changes to this file require a corresponding PR to mathlib4.... |
0bb8151de36730ce474cbec74577709de10aa9bb | 947b78d97130d56365ae2ec264df196ce769371a | /tests/lean/run/spec_issue.lean | 94e4edb10b132bf896099a28af6657751964ca0e | [
"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 | 170 | lean | new_frontend
set_option trace.compiler.ir.result true
def g (ys : List Nat) : IO Nat := do
let x := 0
let (_, x) ← StateT.run (ys.forM fun y => IO.println y) x
pure x
|
b66a0312616b596ee2e15b580dd828616155687b | 4fa118f6209450d4e8d058790e2967337811b2b5 | /src/Tate_ring.lean | 540e51bbbc5232d540d77f96b2f9c16f3e4f67ea | [
"Apache-2.0"
] | permissive | leanprover-community/lean-perfectoid-spaces | 16ab697a220ed3669bf76311daa8c466382207f7 | 95a6520ce578b30a80b4c36e36ab2d559a842690 | refs/heads/master | 1,639,557,829,139 | 1,638,797,866,000 | 1,638,797,866,000 | 135,769,296 | 96 | 10 | Apache-2.0 | 1,638,797,866,000 | 1,527,892,754,000 | Lean | UTF-8 | Lean | false | false | 2,786 | lean | import topology.algebra.ring
import ring_theory.subring
import tactic.linarith
import power_bounded
import Huber_ring.basic
import for_mathlib.topological_rings
/-!
# Tate rings
A Tate ring is a Huber ring that has a topologically nilpotent unit.
Topologically nilpotent units are also called pseudo-uniformizers.
-/
... |
6a9b342455e41f72b570bf3e3768c9c115ef0431 | 8cae430f0a71442d02dbb1cbb14073b31048e4b0 | /src/algebraic_topology/fundamental_groupoid/punit.lean | 83bf875697b5173599ecfd96e6216cf58a22c5d4 | [
"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,298 | lean | /-
Copyright (c) 2022 Praneeth Kolichala. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Praneeth Kolichala
-/
import category_theory.punit
import algebraic_topology.fundamental_groupoid.basic
/-!
# Fundamental groupoid of punit
> THIS FILE IS SYNCHRONIZED WITH MATHL... |
315485595b4b811c1d48cf4399557b176b237883 | 6e36ebd5594a0d512dea8bc6ffe78c71b5b5032d | /src/submissions/hw4.lean | 81cc521a2fbe0a08d1b8542bf2c31f2b170c4822 | [] | no_license | wrw2ztk/cs2120f21 | cdc4b1b4043c8ae8f3c8c3c0e91cdacb2cfddb16 | f55df4c723d3ce989908679f5653e4be669334ae | refs/heads/main | 1,691,764,473,342 | 1,633,707,809,000 | 1,633,707,809,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 8,766 | lean | /-
Wyndham White (working alone)
wrw2ztk
https://github.com/wyndhamv/cs2120f21.git
-/
-- 1
example : 0 ≠ 1 :=
begin
-- ¬ (0 = 1)
-- (0 = 1) → false
assume h,
cases h,
end
-- 2
example : 0 ≠ 0 → 2 = 3 :=
begin
assume h,
have f : false := h (eq.refl 0),
exact false.elim (f),
end
-- 3
example : ∀ (P : Pr... |
ec5b413af879734ad06092ffc760a682b6ee5c7f | 8d65764a9e5f0923a67fc435eb1a5a1d02fd80e3 | /src/analysis/normed_space/finite_dimension.lean | 320438590898e22b472bcc85ccbca796001547a5 | [
"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 | 25,571 | 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 analysis.normed_space.add_torsor
import analysis.normed_space.operator_norm
import analysis.asymptotics.asymptotic_equivalent
import linear_algebra.finit... |
427b83c7642022fd05fd2b075cc5909fc53338b1 | 80cc5bf14c8ea85ff340d1d747a127dcadeb966f | /src/algebra/direct_sum.lean | af7b4c423c3c87c3b01bc20b0711d9b23a2fb4aa | [
"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 | 6,629 | lean | /-
Copyright (c) 2019 Kenny Lau. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Kenny Lau
-/
import data.dfinsupp
/-!
# Direct sum
This file defines the direct sum of abelian groups, indexed by a discrete type.
## Notation
`⨁ i, β i` is the n-ary direct sum `direc... |
18688f3a7b7ab9da0f0b0c7cdb365bb744356bf7 | 88fb7558b0636ec6b181f2a548ac11ad3919f8a5 | /tests/lean/run/1295.lean | b14471c37d625d47a61c2924f487a8f733183826 | [
"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 | 317 | lean | set_option pp.all true
open tactic
example : true := by do
a ← to_expr `((0 : ℕ)), b ← to_expr `(nat.zero),
fail_if_success (unify a b transparency.none),
triv
example (x : ℕ) : true := by do
a ← to_expr `((x + 0 : ℕ)), b ← to_expr `(x + nat.zero),
fail_if_success (unify a b transparency.none),
triv
|
6ca9a10e8d93b18e2a26adc1340eb8a9879ef12f | d406927ab5617694ec9ea7001f101b7c9e3d9702 | /src/data/nat/interval.lean | 2b21651334411af7dd2ae1897772e9a85f06730e | [
"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 | 11,743 | lean | /-
Copyright (c) 2021 Yaël Dillies. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Yaël Dillies
-/
import data.finset.locally_finite
/-!
# Finite intervals of naturals
This file proves that `ℕ` is a `locally_finite_order` and calculates the cardinality of its
interva... |
54072a4853d3d6aba47f1bc54125192fdf859286 | 74addaa0e41490cbaf2abd313a764c96df57b05d | /Mathlib/category_theory/concrete_category/basic.lean | b757129714995912351414b847599f6cd4eb200e | [] | 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 | 7,837 | 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, Yury Kudryashov
-/
import Mathlib.PrePort
import Mathlib.Lean3Lib.init.default
import Mathlib.category_theory.types
import Ma... |
130fe600706f78f4edd358b24e10a0730ab3c2cf | 9c2e8d73b5c5932ceb1333265f17febc6a2f0a39 | /src/KT/semantics.lean | 5c1f1eeaa6784d7f4ef1946d05820595f96d7607 | [
"MIT"
] | permissive | minchaowu/ModalTab | 2150392108dfdcaffc620ff280a8b55fe13c187f | 9bb0bf17faf0554d907ef7bdd639648742889178 | refs/heads/master | 1,626,266,863,244 | 1,592,056,874,000 | 1,592,056,874,000 | 153,314,364 | 12 | 1 | null | null | null | null | UTF-8 | Lean | false | false | 6,970 | lean | import .ops
open subtype nnf model
def unmodal_seqt (Γ : seqt) : list seqt :=
list.map
(λ d,
{main := d :: (unbox (Γ.main ++ Γ.hdld)), hdld := [],
pmain := begin intros v hv φ hsat hin hall, exfalso, apply list.not_mem_nil, exact hin end,
phdld := box_only_nil})
(undia (Γ.main ++ Γ.hdld))
def unmodal_nil_hdld ... |
48b92718e83a74a5952194d9ebcd29c0d29e8563 | 75c54c8946bb4203e0aaf196f918424a17b0de99 | /src/fol.lean | 5defe3c1bbbbbb0510a49d79a6814daeb49a6b8c | [
"Apache-2.0"
] | permissive | urkud/flypitch | 261e2a45f1038130178575406df8aea78255ba77 | 2250f5eda14b6ef9fc3e4e1f4a9ac4005634de5c | refs/heads/master | 1,653,266,469,246 | 1,577,819,679,000 | 1,577,819,679,000 | 259,862,235 | 1 | 0 | Apache-2.0 | 1,588,147,244,000 | 1,588,147,244,000 | null | UTF-8 | Lean | false | false | 129,133 | lean | /-
Copyright (c) 2019 The Flypitch Project. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Jesse Han, Floris van Doorn
-/
/- A development of first-order logic in Lean.
* The object theory uses classical logic
* We use de Bruijn variables.
* We use a deep embedding o... |
f7c173609ebc5041f5f308a70953d7b02b199f2b | 07c76fbd96ea1786cc6392fa834be62643cea420 | /hott/algebra/homomorphism.hlean | 7ae0eb7d2533078bed2ace0256f22cc5047ca7b0 | [
"Apache-2.0"
] | permissive | fpvandoorn/lean2 | 5a430a153b570bf70dc8526d06f18fc000a60ad9 | 0889cf65b7b3cebfb8831b8731d89c2453dd1e9f | refs/heads/master | 1,592,036,508,364 | 1,545,093,958,000 | 1,545,093,958,000 | 75,436,854 | 0 | 0 | null | 1,480,718,780,000 | 1,480,718,780,000 | null | UTF-8 | Lean | false | false | 6,347 | hlean | /-
Copyright (c) 2016 Jeremy Avigad. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Author: Jeremy Avigad
Homomorphisms between structures.
-/
import algebra.ring function
open eq function is_trunc
namespace algebra
/- additive structures -/
variables {A B C : Type}
defini... |
5da2b2eedd5238d2cefe8b302c692e0a98389d6a | 94e33a31faa76775069b071adea97e86e218a8ee | /src/measure_theory/function/lp_space.lean | 1835606eb0307bafd75b8c2e754881cccf3978e9 | [
"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 | 119,245 | lean | /-
Copyright (c) 2020 Rémy Degenne. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Rémy Degenne, Sébastien Gouëzel
-/
import analysis.normed_space.indicator_function
import analysis.normed.group.hom
import measure_theory.function.ess_sup
import measure_theory.function.... |
b95ef09037798e287ff90eee03110562e09c70bb | d642a6b1261b2cbe691e53561ac777b924751b63 | /src/group_theory/free_group.lean | 75604fd46460d6ece3370119bcc72a6350b648bb | [
"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 | 30,843 | lean | /-
Copyright (c) 2018 Kenny Lau. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Kenny Lau
Free groups as a quotient over the reduction relation `a * x * x⁻¹ * b = a * b`.
First we introduce the one step reduction relation
`free_group.red.step`: w * x * x⁻¹ * v ~... |
b8babdd3581d5e700521f49fcbd6ea2a22701ea7 | 95dcf8dea2baf2b4b0a60d438f27c35ae3dd3990 | /src/linear_algebra/basis.lean | e797868573fe6f4968ec7b47c38f056c554e105f | [
"Apache-2.0"
] | permissive | uniformity1/mathlib | 829341bad9dfa6d6be9adaacb8086a8a492e85a4 | dd0e9bd8f2e5ec267f68e72336f6973311909105 | refs/heads/master | 1,588,592,015,670 | 1,554,219,842,000 | 1,554,219,842,000 | 179,110,702 | 0 | 0 | Apache-2.0 | 1,554,220,076,000 | 1,554,220,076,000 | null | UTF-8 | Lean | false | false | 28,527 | 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
Linear independence and basis sets in a module or vector space.
This file is inspired by Isabelle/HOL's linear algebra, and hence indirectly by HOL Lig... |
424fcc0be70aed6378077fef0add7114c67c6334 | 8cae430f0a71442d02dbb1cbb14073b31048e4b0 | /src/number_theory/arithmetic_function.lean | 066d7936becc087a414f4289d5e016823a5dd20c | [
"Apache-2.0"
] | permissive | leanprover-community/mathlib | 56a2cadd17ac88caf4ece0a775932fa26327ba0e | 442a83d738cb208d3600056c489be16900ba701d | refs/heads/master | 1,693,584,102,358 | 1,693,471,902,000 | 1,693,471,902,000 | 97,922,418 | 1,595 | 352 | Apache-2.0 | 1,694,693,445,000 | 1,500,624,130,000 | Lean | UTF-8 | Lean | false | false | 35,921 | lean | /-
Copyright (c) 2020 Aaron Anderson. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Aaron Anderson
-/
import algebra.big_operators.ring
import algebra.module.big_operators
import number_theory.divisors
import data.nat.squarefree
import data.nat.gcd.big_operators
impor... |
dc58603d59c0b5f7e7230eeaa164561becdcb9c7 | 9dc8cecdf3c4634764a18254e94d43da07142918 | /src/group_theory/complement.lean | a9f02a2192708f4e07af2ca4bd409069820370a7 | [
"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 | 24,082 | lean | /-
Copyright (c) 2021 Thomas Browning. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Thomas Browning
-/
import data.zmod.quotient
/-!
# Complements
In this file we define the complement of a subgroup.
## Main definitions
- `is_complement S T` where `S` and `T` ar... |
2a9b91078666dfe9957a202c757c35834d90b02d | 69d4931b605e11ca61881fc4f66db50a0a875e39 | /src/algebra/ring/basic.lean | 5b67c71810967056be4f7b7e59400f512b090e70 | [
"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 | 41,355 | lean | /-
Copyright (c) 2014 Jeremy Avigad. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Jeremy Avigad, Leonardo de Moura, Floris van Doorn, Amelia Livingston, Yury Kudryashov,
Neil Strickland
-/
import algebra.divisibility
import data.set.basic
/-!
# Properties and homomo... |
d8a4aa27b9d165701aaeb222324ca3e3f58e62d5 | ee8cdbabf07f77e7be63a449b8483ce308d37218 | /lean/src/test/algebra-2varlineareq-fp3zeq11-3tfm1m5zeqn68-feqn10-zeq7.lean | fec443b70b4bdd73d0ce56e83a0c548b2588459e | [
"Apache-2.0",
"MIT"
] | permissive | zeta1999/miniF2F | 6d66c75d1c18152e224d07d5eed57624f731d4b7 | c1ba9629559c5273c92ec226894baa0c1ce27861 | refs/heads/main | 1,681,897,460,642 | 1,620,646,361,000 | 1,620,646,361,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 307 | lean | /-
Copyright (c) 2021 OpenAI. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Kunhao Zheng
-/
import data.complex.basic
import data.real.basic
example (f z: ℂ) (h₀ : f + 3*z = 11) (h₁ : 3*(f - 1) - 5*z = -68) : f = -10 ∧ z = 7 :=
begin
sorry
end
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.