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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
84ba32646b4633cdeaf54d634fddf809dce04acb | da3a76c514d38801bae19e8a9e496dc31f8e5866 | /library/init/meta/smt/ematch.lean | 0d5eb2c7fffec64de72e63c384e0baa31b7fafb9 | [
"Apache-2.0"
] | permissive | cipher1024/lean | 270c1ac5781e6aee12f5c8d720d267563a164beb | f5cbdff8932dd30c6dd8eec68f3059393b4f8b3a | refs/heads/master | 1,611,223,459,029 | 1,487,566,573,000 | 1,487,566,573,000 | 83,356,543 | 0 | 0 | null | 1,488,229,336,000 | 1,488,229,336,000 | null | UTF-8 | Lean | false | false | 7,266 | 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.meta.smt.congruence_closure
import init.meta.attribute init.meta.simp_tactic
open tactic
/- Heuristic instantiation lemma -/
meta const... |
aeabebca205a1dc6dec86b3afa1ca7b1edf7e3d0 | 6432ea7a083ff6ba21ea17af9ee47b9c371760f7 | /tests/lean/interactive/completion6.lean | 3bcf70d9af2a4b54c928227703be2b135ae20ba0 | [
"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 | 335 | lean | structure C where
f1 : Nat
f2 : Bool
b1 : String
structure D extends C where
f3 : Bool
def f (c : D) : IO Unit :=
visit c
where
visit (c : D) : IO Unit :=
let x := c.
--^ textDocument/completion
abbrev E := D
def E.doubleF1 (e : E) :=
e.f1 + e.f1
def g (e : E) :=
e.
--^ textDocum... |
01c7377ce4e62e3087ee61b97c136b1853805ec7 | b7f22e51856f4989b970961f794f1c435f9b8f78 | /tests/lean/run/rewrite12.lean | 2c3251d96f39b4bfe60078ee5da8e74427122524 | [
"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 | 313 | lean | import data.nat
open nat algebra
variables (f : nat → nat → nat → nat) (a b c : nat)
example (H₁ : a = b) (H₂ : f b a b = 0) : f a a a = 0 :=
by rewrite [H₁ at -{2}, H₂]
example (H₁ : a = b) (H₂ : f b a b = 0) (H₃ : c = f a a a) : c = 0 :=
by rewrite [H₁ at H₃ -{2}, H₂ at H₃, H₃]
|
457ef59d35016a9c3b93ff9b128ccb422b48e450 | 57aec6ee746bc7e3a3dd5e767e53bd95beb82f6d | /src/Lean/Data/Name.lean | 5f166d94459ba32403f88d77d8e2b72be3233c1a | [
"Apache-2.0"
] | permissive | collares/lean4 | 861a9269c4592bce49b71059e232ff0bfe4594cc | 52a4f535d853a2c7c7eea5fee8a4fa04c682c1ee | refs/heads/master | 1,691,419,031,324 | 1,618,678,138,000 | 1,618,678,138,000 | 358,989,750 | 0 | 0 | Apache-2.0 | 1,618,696,333,000 | 1,618,696,333,000 | null | UTF-8 | Lean | false | false | 5,228 | 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 ... |
6a02116bcc0c661107b5b3190847d63591ee36f1 | abd85493667895c57a7507870867b28124b3998f | /src/data/complex/exponential.lean | d948adcc3133fca499ee862df3c77b392970ac29 | [
"Apache-2.0"
] | permissive | pechersky/mathlib | d56eef16bddb0bfc8bc552b05b7270aff5944393 | f1df14c2214ee114c9738e733efd5de174deb95d | refs/heads/master | 1,666,714,392,571 | 1,591,747,567,000 | 1,591,747,567,000 | 270,557,274 | 0 | 0 | Apache-2.0 | 1,591,597,975,000 | 1,591,597,974,000 | null | UTF-8 | Lean | false | false | 47,752 | lean | /-
Copyright (c) 2018 Chris Hughes. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Chris Hughes, Abhimanyu Pallavi Sudhir
-/
import algebra.geom_sum
import data.nat.choose
import data.complex.basic
local notation `abs'` := _root_.abs
open is_absolute_value
open_locale... |
9fd6a10dfbc643a4c2edc72f4e3904ede090b336 | b00eb947a9c4141624aa8919e94ce6dcd249ed70 | /tests/lean/StxQuot.lean | 7f749fff832dcdbb2180bb6149ffa8857b74fe71 | [
"Apache-2.0"
] | permissive | gebner/lean4-old | a4129a041af2d4d12afb3a8d4deedabde727719b | ee51cdfaf63ee313c914d83264f91f414a0e3b6e | refs/heads/master | 1,683,628,606,745 | 1,622,651,300,000 | 1,622,654,405,000 | 142,608,821 | 1 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 4,408 | lean | import Lean
open Lean
open Lean.Elab
def run {α} [ToString α] : Unhygienic α → String := toString ∘ Unhygienic.run
#eval run `()
#eval run `(Nat.one)
#eval run `($Syntax.missing)
namespace Lean.Syntax
#eval run `($missing)
#eval run `($(missing))
#eval run `($(id Syntax.missing) + 1)
#eval run $ let id := Syntax.mis... |
c38d0d8d8c67fabe557708a30aad95dfb88e1dd3 | 26ac254ecb57ffcb886ff709cf018390161a9225 | /src/data/polynomial/ring_division.lean | 072004c4612b368ff60f4157706d1563403b5387 | [
"Apache-2.0"
] | permissive | eric-wieser/mathlib | 42842584f584359bbe1fc8b88b3ff937c8acd72d | d0df6b81cd0920ad569158c06a3fd5abb9e63301 | refs/heads/master | 1,669,546,404,255 | 1,595,254,668,000 | 1,595,254,668,000 | 281,173,504 | 0 | 0 | Apache-2.0 | 1,595,263,582,000 | 1,595,263,581,000 | null | UTF-8 | Lean | false | false | 13,794 | 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.div
import tactic.omega
/-!
# Theory of univariate polynomials
This file starts looking like the... |
00b9cc368de335e4983ca591bf213c8b99be32f9 | 57c233acf9386e610d99ed20ef139c5f97504ba3 | /src/number_theory/quadratic_reciprocity.lean | 08cb32c694fa141440ec9b63e9e4580c40b2f60a | [
"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 | 24,998 | 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 field_theory.finite.basic
import data.zmod.basic
import data.nat.parity
/-!
# Quadratic reciprocity.
This file contains results about quadratic residues modulo ... |
021a458c27ff6ec7b583f58a8d082f92b9879467 | 5d166a16ae129621cb54ca9dde86c275d7d2b483 | /tests/lean/run/dsimp_at1.lean | 1e077afe19ef4cdefdcf5610505dae5973f14260 | [
"Apache-2.0"
] | permissive | jcarlson23/lean | b00098763291397e0ac76b37a2dd96bc013bd247 | 8de88701247f54d325edd46c0eed57aeacb64baf | refs/heads/master | 1,611,571,813,719 | 1,497,020,963,000 | 1,497,021,515,000 | 93,882,536 | 1 | 0 | null | 1,497,029,896,000 | 1,497,029,896,000 | null | UTF-8 | Lean | false | false | 305 | lean | open tactic
constants (A : Type.{1}) (x y : A)
noncomputable definition f (z : A) : A := z
@[simp] definition f.def (z:A) : f z = z := rfl
definition foo (z₁ z₂ : A) : f z₁ = f z₂ → z₁ = z₂ :=
by do H ← intro `H,
trace_state,
dsimp_at H,
trace_state,
assumption
|
4e2b7e61be6d3065f55f2c36421a9f0bb91ef353 | 9dc8cecdf3c4634764a18254e94d43da07142918 | /src/category_theory/essential_image.lean | e5cbab18144e608dd0a5cad26434c780695c4844 | [
"Apache-2.0"
] | permissive | jcommelin/mathlib | d8456447c36c176e14d96d9e76f39841f69d2d9b | ee8279351a2e434c2852345c51b728d22af5a156 | refs/heads/master | 1,664,782,136,488 | 1,663,638,983,000 | 1,663,638,983,000 | 132,563,656 | 0 | 0 | Apache-2.0 | 1,663,599,929,000 | 1,525,760,539,000 | Lean | UTF-8 | Lean | false | false | 5,363 | 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.natural_isomorphism
import category_theory.full_subcategory
import data.set.basic
/-!
# Essential image of a functor
The essential image `ess_ima... |
d49d290f58052df733ef1c1e8868763b76dc3c95 | 07c6143268cfb72beccd1cc35735d424ebcb187b | /src/topology/sequences.lean | ace615504da43639bd23f09496d07f358258c2d1 | [
"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 | 8,503 | lean | /-
Copyright (c) 2018 Jan-David Salchow. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Jan-David Salchow, Patrick Massot
-/
import topology.basic
import topology.bases
import topology.subset_properties
/-!
# Sequences in topological spaces
In this file we define se... |
df14bfffe231a728b3b149804e8779df26f6b27a | b7f22e51856f4989b970961f794f1c435f9b8f78 | /tests/lean/run/local_eqns.lean | ff0b07874e0f350a2d1bfdd00c36499648b511ab | [
"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 | 1,538 | lean | import data.nat logic
open bool nat
check
show nat → bool
| 0 := tt
| (n+1) := ff
definition mult : nat → nat → nat :=
have plus : nat → nat → nat
| 0 b := b
| (succ a) b := succ (plus a b),
have mult : nat → nat → nat
| 0 b := 0
| (succ a) b := plus (mult a b) b,
mult
print definition mult
ex... |
c76c1145b6c734e13a33a9dffd82e914e3ba6348 | d406927ab5617694ec9ea7001f101b7c9e3d9702 | /src/data/real/pi/wallis.lean | 0795c52c2b56aa278e3fd54be37b5593197c277f | [
"Apache-2.0"
] | permissive | alreadydone/mathlib | dc0be621c6c8208c581f5170a8216c5ba6721927 | c982179ec21091d3e102d8a5d9f5fe06c8fafb73 | refs/heads/master | 1,685,523,275,196 | 1,670,184,141,000 | 1,670,184,141,000 | 287,574,545 | 0 | 0 | Apache-2.0 | 1,670,290,714,000 | 1,597,421,623,000 | Lean | UTF-8 | Lean | false | false | 3,862 | lean | /-
Copyright (c) 2021 Hanting Zhang. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Hanting Zhang
-/
import analysis.special_functions.integrals
/-! ### The Wallis Product for Pi -/
namespace real
open_locale real topological_space big_operators
open filter finset i... |
f3786c9ae23f2cdfd4025a2ab93c0ba42945c212 | bb31430994044506fa42fd667e2d556327e18dfe | /src/order/partial_sups.lean | 41e97ca76bed38ca07525440464cc62efb77d51e | [
"Apache-2.0"
] | permissive | sgouezel/mathlib | 0cb4e5335a2ba189fa7af96d83a377f83270e503 | 00638177efd1b2534fc5269363ebf42a7871df9a | refs/heads/master | 1,674,527,483,042 | 1,673,665,568,000 | 1,673,665,568,000 | 119,598,202 | 0 | 0 | null | 1,517,348,647,000 | 1,517,348,646,000 | null | UTF-8 | Lean | false | false | 6,842 | lean | /-
Copyright (c) 2021 Scott Morrison. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Scott Morrison
-/
import data.finset.lattice
import order.hom.basic
import order.conditionally_complete_lattice.finset
/-!
# The monotone sequence of partial supremums of a sequence
... |
f66569475db53cf41cdefe5f078a5708ddb5654b | a9d0fb7b0e4f802bd3857b803e6c5c23d87fef91 | /library/logic/examples/leftinv_of_inj.lean | df816efcda115398e0491c242ee99ddaf7315bd9 | [
"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,216 | lean | /-
Copyright (c) 2015 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Leonardo de Moura
Classical proof that if f is injective, then f has a left inverse (if domain is not empty).
The proof uses the classical axioms: choice and excluded middle.
... |
00b74fcd0aa37de52a4c88dd6f99801a6d75e0b4 | 22e97a5d648fc451e25a06c668dc03ac7ed7bc25 | /src/analysis/calculus/iterated_deriv.lean | 1b2b8a9624ac4bb09f4ee1345eb1d63f20fb1e49 | [
"Apache-2.0"
] | permissive | keeferrowan/mathlib | f2818da875dbc7780830d09bd4c526b0764a4e50 | aad2dfc40e8e6a7e258287a7c1580318e865817e | refs/heads/master | 1,661,736,426,952 | 1,590,438,032,000 | 1,590,438,032,000 | 266,892,663 | 0 | 0 | Apache-2.0 | 1,590,445,835,000 | 1,590,445,835,000 | null | UTF-8 | Lean | false | false | 14,715 | 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 analysis.calculus.deriv
import analysis.calculus.times_cont_diff
/-!
# One-dimensional iterated derivatives
We define the `n`-th derivative of a functi... |
8660543d8f062a52622928dc3bdc486c5701aae0 | bb31430994044506fa42fd667e2d556327e18dfe | /src/field_theory/minpoly/default.lean | aa4d2da6465840d0e8fc5c7259c969f11454c977 | [
"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 | 107 | lean | import field_theory.minpoly.basic
import field_theory.minpoly.field
import field_theory.minpoly.gcd_monoid
|
1ad6c18b14d15158c6b3fc7a88734b03d3564151 | 3aad12fe82645d2d3173fbedc2e5c2ba945a4d75 | /src/logic/nursery.lean | 38b11b39f00cbffa72f4083671816f9d525d5172 | [] | no_license | seanpm2001/LeanProver-Community_MathLIB-Nursery | 4f88d539cb18d73a94af983092896b851e6640b5 | 0479b31fa5b4d39f41e89b8584c9f5bf5271e8ec | refs/heads/master | 1,688,730,786,645 | 1,572,070,026,000 | 1,572,070,026,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 143 | lean |
lemma eq_mp_heq :
∀ {α β : Sort*} {a : α} {a' : β} (h₂ : a == a'), (eq.mp (type_eq_of_heq h₂) a) = a'
| α ._ a a' heq.rfl := rfl
|
3a790a4d6f62c8dc557d8620dd7a2691b89084d5 | 63abd62053d479eae5abf4951554e1064a4c45b4 | /src/category_theory/adjunction/basic.lean | 0866be54868db8dfb8457646561d7a67b05b7246 | [
"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 | 17,900 | lean | /-
Copyright (c) 2019 Reid Barton. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Reid Barton, Johan Commelin, Bhavik Mehta
-/
import category_theory.equivalence
import data.equiv.basic
namespace category_theory
open category
universes v₁ v₂ v₃ u₁ u₂ u₃ -- declare th... |
13b26fcbebcf89237f193b08277cf93723c1883e | 4727251e0cd73359b15b664c3170e5d754078599 | /src/data/polynomial/monic.lean | 360d21a747eba47bc7da097b7fca85491cb90a65 | [
"Apache-2.0"
] | permissive | Vierkantor/mathlib | 0ea59ac32a3a43c93c44d70f441c4ee810ccceca | 83bc3b9ce9b13910b57bda6b56222495ebd31c2f | refs/heads/master | 1,658,323,012,449 | 1,652,256,003,000 | 1,652,256,003,000 | 209,296,341 | 0 | 1 | Apache-2.0 | 1,568,807,655,000 | 1,568,807,655,000 | null | UTF-8 | Lean | false | false | 17,525 | 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.associated
import algebra.regular.smul
/-!
# Theory of monic polynomials
W... |
426a0313b358ee4960145ae2b7a72db1aa1c3c1d | 5c7fe6c4a9d4079b5457ffa5f061797d42a1cd65 | /src/exercises/src_28_powerset.lean | ab99d333df418e42bc322888c3a8b3111f62ffd9 | [] | no_license | gihanmarasingha/mth1001_tutorial | 8e0817feeb96e7c1bb3bac49b63e3c9a3a329061 | bb277eebd5013766e1418365b91416b406275130 | refs/heads/master | 1,675,008,746,310 | 1,607,993,443,000 | 1,607,993,443,000 | 321,511,270 | 3 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 2,809 | lean | import data.set
open set
namespace mth1001
variable A : Type*
variables (S T : set A)
#check powerset
#check mem_set_of_eq
#check mem_union_eq
#check subset_def
#check subset_union_left
/-
Type `𝒫` as `\power`
-/
example : (𝒫 S) ∪ (𝒫 T) ⊆ 𝒫 (S ∪ T) :=
begin
-- Using the definition of subset, we must show, `... |
89d56376460d562bd061438472b7ee53e064ba1f | 9dc8cecdf3c4634764a18254e94d43da07142918 | /src/topology/sheaves/stalks.lean | 90f4f1ce8cb0cd558136457e275de7e21d1d0597 | [
"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,503 | lean | /-
Copyright (c) 2019 Scott Morrison. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Scott Morrison, Justus Springer
-/
import topology.category.Top.open_nhds
import topology.sheaves.presheaf
import topology.sheaves.sheaf_condition.unique_gluing
import category_theory.... |
0dc0d8ebcd9ce49c94da815ff64a26d280c8a235 | f68ef9a599ec5575db7b285d4960e63c5d464ccc | /Exercises/Lista 3/HAM-LucasMoschen.lean | 9934b8304e69055c536440628c509a6c060af9fb | [] | no_license | lucasmoschen/discrete-mathematics | a38d5970cc571b0b9d202bf6a43efeb8ed6f66e3 | 0f1945cc5eb094814c926cd6ae4a8b4c5c579a1e | refs/heads/master | 1,677,111,757,003 | 1,611,500,097,000 | 1,611,500,097,000 | 205,903,359 | 1 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 11,858 | lean | -- Considerarei um grafo de 4 vértices A, B, C, D, com arestas AB, BC, AD e BD
-- Veja que um caminho Hamiltoniano possível é D -> A -> B -> C
-- Farei A = 1, B = 2, C = 3, D = 4
-- Logo G = ((1,2),(2,3),(1,4),(2,4))
-- Lembrando que xij é: a i-ésima posição no caminho é ocupada pelo j-ésimo nó.
variables {x11 x12... |
23a50e02a93de4ccf5cac86bca7b124ff5fe2d17 | 4727251e0cd73359b15b664c3170e5d754078599 | /src/analysis/asymptotics/asymptotic_equivalent.lean | 490648229c582697b4daa8e9cdebf687dd72232b | [
"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 | 11,271 | lean | /-
Copyright (c) 2020 Anatole Dedecker. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Anatole Dedecker
-/
import analysis.asymptotics.asymptotics
import analysis.normed_space.ordered
/-!
# Asymptotic equivalence
In this file, we define the relation `is_equivalent l ... |
dcb9b4f6469d2040c0799652a6bde7d0d8a549f8 | 6df8d5ae3acf20ad0d7f0247d2cee1957ef96df1 | /HW/hw9_extra_credit_exam_prep.lean | db17e8dfae44628712ccc61b82d3ec30d9845d4a | [] | no_license | derekjohnsonva/CS2102 | 8ed45daa6658e6121bac0f6691eac6147d08246d | b3f507d4be824a2511838a1054d04fc9aef3304c | refs/heads/master | 1,648,529,162,527 | 1,578,851,859,000 | 1,578,851,859,000 | 233,433,207 | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 9,335 | lean | -- Derek Johnson
namespace hidden -- you can ignore this
/-
1a. Define a polymorphic tree type. A tree of objects of type α
is either empty or it is a value of type α along with two
smaller trees of the same kind. You can call them left and right
respectively.
-/
inductive tree (α : Type) : Type
| empty : t... |
45dd20c835ee2f9531f4241c27779e7d2b26e66f | 31f556cdeb9239ffc2fad8f905e33987ff4feab9 | /src/Lean/Exception.lean | 1a59157ebace82d66048852af763e3c28013aca7 | [
"Apache-2.0",
"LLVM-exception",
"NCSA",
"LGPL-3.0-only",
"LicenseRef-scancode-inner-net-2.0",
"BSD-3-Clause",
"LGPL-2.0-or-later",
"Spencer-94",
"LGPL-2.1-or-later",
"HPND",
"LicenseRef-scancode-pcre",
"ISC",
"LGPL-2.1-only",
"LicenseRef-scancode-other-permissive",
"SunPro",
"CMU-Mach"... | permissive | tobiasgrosser/lean4 | ce0fd9cca0feba1100656679bf41f0bffdbabb71 | ebdbdc10436a4d9d6b66acf78aae7a23f5bd073f | refs/heads/master | 1,673,103,412,948 | 1,664,930,501,000 | 1,664,930,501,000 | 186,870,185 | 0 | 0 | Apache-2.0 | 1,665,129,237,000 | 1,557,939,901,000 | Lean | UTF-8 | Lean | false | false | 6,119 | lean | /-
Copyright (c) 2020 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Leonardo de Moura
-/
import Lean.Message
import Lean.InternalExceptionId
import Lean.Data.Options
import Lean.Util.MonadCache
namespace Lean
/-- Exception type used in most Le... |
59747f63bb6c325d09370b9d386a0bc1d8c758ec | 42610cc2e5db9c90269470365e6056df0122eaa0 | /hott/hit/two_quotient.hlean | d3cda79fbe5f4aa8bfeca828f4059cbaa80d1bf4 | [
"Apache-2.0"
] | permissive | tomsib2001/lean | 2ab59bfaebd24a62109f800dcf4a7139ebd73858 | eb639a7d53fb40175bea5c8da86b51d14bb91f76 | refs/heads/master | 1,586,128,387,740 | 1,468,968,950,000 | 1,468,968,950,000 | 61,027,234 | 0 | 0 | null | 1,465,813,585,000 | 1,465,813,585,000 | null | UTF-8 | Lean | false | false | 31,448 | 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_closur... |
48387bb2e6b7b390f20bf7e4602b1d8cbe4643b8 | 8cae430f0a71442d02dbb1cbb14073b31048e4b0 | /src/tactic/pretty_cases.lean | de91383575a453f6305c48ba92de9a0e62fe0c22 | [
"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,827 | lean | /-
Copyright (c) 2020 Simon Hudon. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Simon Hudon
-/
import tactic.core
/-!
# `pretty_cases` tactic
When using `induction` and `cases`, `pretty_cases` prints a `"Try
this:"` advice that shows how to structure the proof with... |
ab25d3c7f70bc4f19000d68700f043ee6b96e8be | b074a51e20fdb737b2d4c635dd292fc54685e010 | /src/category_theory/types.lean | 55111d77ace5db6c49f768aa197de3a02d98176b | [
"Apache-2.0"
] | permissive | minchaowu/mathlib | 2daf6ffdb5a56eeca403e894af88bcaaf65aec5e | 879da1cf04c2baa9eaa7bd2472100bc0335e5c73 | refs/heads/master | 1,609,628,676,768 | 1,564,310,105,000 | 1,564,310,105,000 | 99,461,307 | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 5,324 | 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, Johannes Hölzl
import category_theory.functor_category
import category_theory.fully_faithful
import data.equiv.basic
namespace category_theory
... |
759cb7d75b8fd699956535b557f8fe5cd0e7dd78 | 4727251e0cd73359b15b664c3170e5d754078599 | /src/data/finset/finsupp.lean | bdff527eeafe475776eb7a17fc55f843a44a1ecc | [
"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,195 | lean | /-
Copyright (c) 2022 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.pointwise
import data.finsupp.indicator
import data.fintype.card
/-!
# Finitely supported product of finsets
This file defines the finitely supported... |
2f3677e30820d77717a5ea62e98def06f8b97222 | 8cb37a089cdb4af3af9d8bf1002b417e407a8e9e | /library/init/default.lean | 4ea5942916608594549d5f1a506d66a60bcdf50b | [
"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 | 613 | 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
-/
prelude
import init.core init.logic init.control init.data.basic init.version
import init.propext init.cc_lemmas init.funext init.control.combinators init.f... |
04532b9b9ec508445ae89a9471a799650f35f3f3 | 74addaa0e41490cbaf2abd313a764c96df57b05d | /Mathlib/linear_algebra/quadratic_form_auto.lean | eed99e3d4325f9d8c48f2f6e789d7f7032af3bd5 | [] | 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 | 25,720 | lean | /-
Copyright (c) 2020 Anne Baanen. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Author: Anne Baanen
-/
import Mathlib.PrePort
import Mathlib.Lean3Lib.init.default
import Mathlib.algebra.invertible
import Mathlib.linear_algebra.bilinear_form
import Mathlib.linear_algebra.deter... |
6c62d5c1898e2cc3b8fc3d951a322faa01712f0c | 5c4b17dae42fab1d4f493f3b52977bffa54fefea | /4.6.6.lean | 32179532b6ad716c29aaf0a222007ce17c87b9d8 | [] | no_license | hyponymous/theorem-proving-in-lean-solutions | 9214cb45cc87347862fd17dfdea79fdf24b9df92 | a95320ae81c90c1b15da04574602cd378794400d | refs/heads/master | 1,585,777,733,214 | 1,541,039,359,000 | 1,541,039,359,000 | 153,676,525 | 2 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 878 | lean | variables (real : Type) [ordered_ring real]
variables (log exp : real → real)
variable log_exp_eq : ∀ x, log (exp x) = x
variable exp_log_eq : ∀ {x}, x > 0 → exp (log x) = x
variable exp_pos : ∀ x, exp x > 0
variable exp_add : ∀ x y, exp (x + y) = exp x * exp y
-- this ensures the assumptions are available i... |
7418529353035f1be10168d1c13206bd8173f79c | 07c76fbd96ea1786cc6392fa834be62643cea420 | /hott/types/fiber.hlean | f8936d03e85ad5745f5714c94b1486c56ff3a4a0 | [
"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 | 21,869 | 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, Mike Shulman
Ported from Coq HoTT
Theorems about fibers
-/
import .sigma .eq .pi cubical.squareover .pointed .eq
open equiv sigma sigma.ops eq pi pointed is_equiv... |
827df1d12d8ac17d4abb632a804ffeceda751e28 | 36c7a18fd72e5b57229bd8ba36493daf536a19ce | /tests/lean/run/blast_cc4.lean | b4bf66ed0c7d7fe4850867629a3dfd2990151e59 | [
"Apache-2.0"
] | permissive | YHVHvx/lean | 732bf0fb7a298cd7fe0f15d82f8e248c11db49e9 | 038369533e0136dd395dc252084d3c1853accbf2 | refs/heads/master | 1,610,701,080,210 | 1,449,128,595,000 | 1,449,128,595,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 233 | lean | open nat
set_option blast.subst false
definition tst
(a₁ a₂ b₁ b₂ c d : nat) :
a₁ = c → a₂ = c →
b₁ = d → d = b₂ →
a₁ + b₁ + a₁ = a₂ + b₂ + c :=
by blast
print tst
|
2e1bb287d2dc1189db6777bf2bd688dc944b1b23 | fa02ed5a3c9c0adee3c26887a16855e7841c668b | /src/data/polynomial/lifts.lean | 8ebebc75e811e32fae29431e6c6e76176d9d2c58 | [
"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,803 | lean | /-
Copyright (c) 2020 Riccardo Brasca. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Riccardo Brasca
-/
import data.polynomial.algebra_map
import algebra.algebra.subalgebra
import algebra.polynomial.big_operators
import data.polynomial.erase_lead
/-!
# Polynomials t... |
cc606135a50d9ec273ed51ab8bc582d9969f4d97 | 97f752b44fd85ec3f635078a2dd125ddae7a82b6 | /library/algebra/ring.lean | 685225875d6e46e9f8621d20393ce944fab97b8e | [
"Apache-2.0"
] | permissive | tectronics/lean | ab977ba6be0fcd46047ddbb3c8e16e7c26710701 | f38af35e0616f89c6e9d7e3eb1d48e47ee666efe | refs/heads/master | 1,532,358,526,384 | 1,456,276,623,000 | 1,456,276,623,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 17,374 | 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
Structures with multiplicative and additive components, including semirings, rings, and fields.
The development is modeled after Isabelle's library.
-/... |
1d848768c5c771e42d8f0b9caf7bbf98ff9f2bf6 | 7cef822f3b952965621309e88eadf618da0c8ae9 | /src/topology/algebra/ordered.lean | 8f27db8ee0bfcadedb7e0ab734f56d0039de20b1 | [
"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 | 61,055 | lean | /-
Copyright (c) 2017 Johannes Hölzl. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Johannes Hölzl, Mario Carneiro
-/
import order.liminf_limsup
import data.set.intervals
import topology.algebra.group
import topology.constructions
/-! # Theory of ordered topology
##... |
b0aaadfa22b071ec4bc7dfc8417c66f2d424d358 | fef48cac17c73db8662678da38fd75888db97560 | /src/for_mathlib/order.lean | 7d68b6d226f9a7faeac462690637d03fb13f81f6 | [] | no_license | kbuzzard/lean-squares-in-fibonacci | 6c0d924f799d6751e19798bb2530ee602ec7087e | 8cea20e5ce88ab7d17b020932d84d316532a84a8 | refs/heads/master | 1,584,524,504,815 | 1,582,387,156,000 | 1,582,387,156,000 | 134,576,655 | 3 | 1 | null | 1,541,538,497,000 | 1,527,083,406,000 | Lean | UTF-8 | Lean | false | false | 5,446 | lean | import data.nat.prime
import data.pnat.basic
import for_mathlib.exactly_divides
open nat
namespace order
section raw_order
variables (p : ℕ) (hp : p > 1)
protected def order_core : Π (n : ℕ), n > 0 → {r // p^r ∣∣ n}
| 0 := λ n_pos, absurd n_pos dec_trivial
| n@(k+1) := λ n_pos,
have n / p < n, from div_lt... |
fce64952f9ff9211dd2088aeaaa08b1443bdc82c | dd0f5513e11c52db157d2fcc8456d9401a6cd9da | /11_Tactic-Style_Proofs.org.27.lean | 5be80356bca02bd5583964e16f8d88e3166eb4d2 | [] | 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 | 363 | lean | import standard
-- BEGIN
variables p q : Prop
example : p ∧ q ↔ q ∧ p :=
begin
apply iff.intro,
begin
intro H,
have Hp : p, from and.left H,
have Hq : q, from and.right H,
apply and.intro,
repeat assumption
end,
begin
intro H,
have Hp : p,
begin
apply and.right,
apply H
end,
have Hq : q, by apply and.left; exact H,
ap... |
46ecc2c259c7e72e8604eab0af7c026c40f2476f | 6432ea7a083ff6ba21ea17af9ee47b9c371760f7 | /tests/lean/run/root.lean | 9eacc12c4b8367db63468534c3b53f8ee50588a8 | [
"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 | 208 | lean | def x := 10
namespace Foo
def x := true
#check x
#check _root_.x
theorem ex1 : x = true := rfl
theorem ex2 : _root_.x = 10 := rfl
end Foo
theorem ex3 : x = 10 := rfl
theorem ex4 : _root_.x = 10 := rfl
|
ff0d964f9a75387d3d411736f5e2fda5165257d0 | 6432ea7a083ff6ba21ea17af9ee47b9c371760f7 | /src/Lean/Elab/BuiltinTerm.lean | 31516619b0f188811f4378864202541989e84122 | [
"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 | 14,556 | lean | /-
Copyright (c) 2021 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Leonardo de Moura
-/
import Lean.Elab.Open
import Lean.Elab.SetOption
import Lean.Elab.Eval
namespace Lean.Elab.Term
open Meta
@[builtin_term_elab «prop»] def elabProp : TermE... |
9ab7edf2ddba29b059a57d3d5da230b5363f32e9 | 367134ba5a65885e863bdc4507601606690974c1 | /src/topology/metric_space/gromov_hausdorff_realized.lean | eb020c3383ddf79a36a14780b6f7b0c67b726f52 | [
"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 | 26,204 | lean | /-
Copyright (c) 2019 Sébastien Gouëzel. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Author: Sébastien Gouëzel
Construction of a good coupling between nonempty compact metric spaces, minimizing
their Hausdorff distance. This construction is instrumental to study the Gromov-... |
faae9f8438f7f07691dcedb8720cc9ea78ee33c5 | 3618c6e11aa822fd542440674dfb9a7b9921dba0 | /src/HNN_normalize_better.lean | db523518c1ba35b5dc911e9f4b3dad3f66815bc1 | [] | no_license | ChrisHughes24/single_relation | 99ceedcc02d236ce46d6c65d72caa669857533c5 | 057e157a59de6d0e43b50fcb537d66792ec20450 | refs/heads/master | 1,683,652,062,698 | 1,683,360,089,000 | 1,683,360,089,000 | 279,346,432 | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 17,036 | lean | import initial
import P
import data.list.min_max
/-!
# HNN normalization for the group_thingy tactic
This file implements the HNN normalization process and proof certificate
generation for the `group_thingy` tactic.
## Main definitions
This file contains the definition `HNN_normalize`, which is the only definition
i... |
dc366c3798607fd1683a266ebe2c3f3d68ea6339 | 4727251e0cd73359b15b664c3170e5d754078599 | /src/measure_theory/card_measurable_space.lean | 2c83c4b6d4f3db8139e2a73842081177554f786f | [
"Apache-2.0"
] | permissive | Vierkantor/mathlib | 0ea59ac32a3a43c93c44d70f441c4ee810ccceca | 83bc3b9ce9b13910b57bda6b56222495ebd31c2f | refs/heads/master | 1,658,323,012,449 | 1,652,256,003,000 | 1,652,256,003,000 | 209,296,341 | 0 | 1 | Apache-2.0 | 1,568,807,655,000 | 1,568,807,655,000 | null | UTF-8 | Lean | false | false | 8,540 | lean | /-
Copyright (c) 2022 Sébastien Gouëzel. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Sébastien Gouëzel, Violeta Hernández Palacios
-/
import measure_theory.measurable_space_def
import set_theory.cardinal.cofinality
import set_theory.cardinal.continuum
/-!
# Cardina... |
ccaf2a2d2ef548ace8322d5fad936922cc54a17a | 07c6143268cfb72beccd1cc35735d424ebcb187b | /src/category_theory/limits/over.lean | 0c619b3321816974a74181b3ee49d5da72adca0c | [
"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 | 10,724 | lean | /-
Copyright (c) 2018 Johan Commelin. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Johan Commelin, Reid Barton, Bhavik Mehta
-/
import category_theory.comma
import category_theory.limits.connected
import category_theory.limits.creates
import category_theory.limits.li... |
928b582dd86cb509aec45ab5116adb4efc496b52 | 57c233acf9386e610d99ed20ef139c5f97504ba3 | /src/topology/algebra/floor_ring.lean | 048182131d8f21907ed47d9400242bf4a6c73728 | [
"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 | 9,572 | lean | /-
Copyright (c) 2020 Anatole Dedecker. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Anatole Dedecker
-/
import algebra.order.floor
import topology.algebra.ordered.basic
/-!
# Topological facts about `int.floor`, `int.ceil` and `int.fract`
This file proves statemen... |
c674185792821490a09531129e1063382f2646e6 | 38ee9024fb5974f555fb578fcf5a5a7b71e669b5 | /Mathlib/Tactic/NoMatch.lean | a14ba2968803b17545aaec85731b57f280a07518 | [
"Apache-2.0"
] | permissive | denayd/mathlib4 | 750e0dcd106554640a1ac701e51517501a574715 | 7f40a5c514066801ab3c6d431e9f405baa9b9c58 | refs/heads/master | 1,693,743,991,894 | 1,636,618,048,000 | 1,636,618,048,000 | 373,926,241 | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 2,243 | lean | /-
Copyright (c) 2021 Mario Carneiro. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Author: Mario Carneiro
-/
import Mathlib.Tactic.OpenPrivate
import Lean
/-
This adds support for the alternative syntax `match x with.` instead of `nomatch x`. It is more
powerful because it s... |
b40e116212100bc415e27cf1356e41470e76f934 | 8ac070e5078ade6d9ca9577e76883158ced4a937 | /Numbers.lean | d869ff466f31ad15c57eb0527533aecc1d98f3a5 | [] | no_license | kbuzzard/Numbers | 2e5cff4c0102e242e30edf47c7d2547c053500f6 | c0166915ee06e901bd46c9168a158c4d139211af | refs/heads/master | 1,679,975,844,345 | 1,617,144,136,000 | 1,617,144,136,000 | 353,096,483 | 2 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 52 | lean | def main : IO Unit :=
IO.println "Hello, world!"
|
4dcb9e8b99dc8c7af68c3640692ade58bd1e75a7 | d1a52c3f208fa42c41df8278c3d280f075eb020c | /src/Init/System/ST.lean | a57aa293f87d912538fd5cc5020eebccbcfd0bed | [
"Apache-2.0",
"LLVM-exception",
"NCSA",
"LGPL-3.0-only",
"LicenseRef-scancode-inner-net-2.0",
"BSD-3-Clause",
"LGPL-2.0-or-later",
"Spencer-94",
"LGPL-2.1-or-later",
"HPND",
"LicenseRef-scancode-pcre",
"ISC",
"LGPL-2.1-only",
"LicenseRef-scancode-other-permissive",
"SunPro",
"CMU-Mach"... | permissive | cipher1024/lean4 | 6e1f98bb58e7a92b28f5364eb38a14c8d0aae393 | 69114d3b50806264ef35b57394391c3e738a9822 | refs/heads/master | 1,642,227,983,603 | 1,642,011,696,000 | 1,642,011,696,000 | 228,607,691 | 0 | 0 | Apache-2.0 | 1,576,584,269,000 | 1,576,584,268,000 | null | UTF-8 | Lean | false | false | 4,413 | lean | /-
Copyright (c) 2020 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Leonardo de Moura
-/
prelude
import Init.Classical
import Init.Control.EState
import Init.Control.Reader
def EST (ε : Type) (σ : Type) : Type → Type := EStateM ε σ
abbrev ST (σ... |
856a7f504698dc7187ce7e7b05cdd756c3630e58 | 4d2583807a5ac6caaffd3d7a5f646d61ca85d532 | /src/linear_algebra/dual.lean | e461e8bb549acac229e96a3340764099355233ef | [
"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 | 24,875 | lean | /-
Copyright (c) 2019 Johan Commelin. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Johan Commelin, Fabian Glöckle
-/
import linear_algebra.finite_dimensional
import linear_algebra.projection
/-!
# Dual vector spaces
The dual space of an R-module M is the R-module o... |
d35d09cea82347ccc3ccc2f4255a951202e1f591 | 74addaa0e41490cbaf2abd313a764c96df57b05d | /Mathlib/topology/uniform_space/pi.lean | a376ae0845e9ffeab095504a3f93a3d437d98bec | [] | 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,043 | 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 Mathlib.PrePort
import Mathlib.Lean3Lib.init.default
import Mathlib.topology.uniform_space.cauchy
import Mathlib.topology.uniform_space.separation
import Mathl... |
1e3654f8d7e950efe638949eaaec4ae47b69f252 | 8e381650eb2c1c5361be64ff97e47d956bf2ab9f | /src/spectrum_of_a_ring/spec_locally_ringed_space.lean | e3caf70efc1e8e2b4c0088c9e9d8c41fa42032c1 | [] | 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 | 286 | lean | import spectrum_of_a_ring.structure_sheaf
import spectrum_of_a_ring.strucutre_sheaf_stalks
universe u
variables (R : Type u) [comm_ring R]
def Spec.locally_ringed_space : locally_ringed_space (Spec R) :=
{ O := structure_sheaf R,
Hstalks := λ P, structure_sheaf.stalk_local P, }
|
92853c1bd52e585668fc596870c2933c978acb5a | f3849be5d845a1cb97680f0bbbe03b85518312f0 | /tests/lean/run/super_examples.lean | ea4d2bc77b6b1fd017238797c90c309ff27a4351 | [
"Apache-2.0"
] | permissive | bjoeris/lean | 0ed95125d762b17bfcb54dad1f9721f953f92eeb | 4e496b78d5e73545fa4f9a807155113d8e6b0561 | refs/heads/master | 1,611,251,218,281 | 1,495,337,658,000 | 1,495,337,658,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 2,933 | lean | import tools.super
open tactic
constant nat_has_dvd : has_dvd nat
attribute [instance] nat_has_dvd
noncomputable def prime (n : ℕ) := ∀d, d ∣ n → d = 1 ∨ d = n
axiom dvd_refl (m : ℕ) : m ∣ m
axiom dvd_mul (m n k : ℕ) : m ∣ n → m ∣ (n*k)
axiom nat_mul_cancel_one (m n : ℕ) : m = m * n → n = 1
example {m n : ℕ} : prim... |
37b0fe55414f92f97c97d83515fb9cd37cf4c5bb | 74addaa0e41490cbaf2abd313a764c96df57b05d | /Mathlib/category_theory/limits/preserves/limits.lean | 6815e38e1b0d12672eccc1dd0dc2d6e79f26d771 | [] | 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 | 5,644 | lean | /-
Copyright (c) 2020 Scott Morrison. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Scott Morrison, Bhavik Mehta
-/
import Mathlib.PrePort
import Mathlib.Lean3Lib.init.default
import Mathlib.category_theory.limits.preserves.basic
import Mathlib.PostPort
universes v u... |
6b035c3c8543b0f631009207116bb5f2439d2fbb | 8cae430f0a71442d02dbb1cbb14073b31048e4b0 | /src/data/finite/basic.lean | b92e642b7944df5bf4259caa278471250846f6e7 | [
"Apache-2.0"
] | permissive | leanprover-community/mathlib | 56a2cadd17ac88caf4ece0a775932fa26327ba0e | 442a83d738cb208d3600056c489be16900ba701d | refs/heads/master | 1,693,584,102,358 | 1,693,471,902,000 | 1,693,471,902,000 | 97,922,418 | 1,595 | 352 | Apache-2.0 | 1,694,693,445,000 | 1,500,624,130,000 | Lean | UTF-8 | Lean | false | false | 5,150 | lean | /-
Copyright (c) 2022 Kyle Miller. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Kyle Miller
-/
import data.fintype.powerset
import data.fintype.prod
import data.fintype.sigma
import data.fintype.sum
import data.fintype.vector
/-!
# Finite types
> THIS FILE IS SYNCH... |
d2fcc47aee76c83181560a0715a211d06d234ff5 | c777c32c8e484e195053731103c5e52af26a25d1 | /src/measure_theory/integral/set_integral.lean | fc4be754323a52f339eb2c639b4f554b5cd925c8 | [
"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 | 63,766 | lean | /-
Copyright (c) 2020 Zhouhang Zhou. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Zhouhang Zhou, Yury Kudryashov
-/
import measure_theory.integral.integrable_on
import measure_theory.integral.bochner
import measure_theory.function.locally_integrable
import order.filt... |
b05f2f47659c61bbe3d1bcfdf7cafc8ce5162982 | 9dd3f3912f7321eb58ee9aa8f21778ad6221f87c | /tests/lean/run/eval_attr_cache.lean | aaf02f48a83cc7ff801278aef022632d09a2b10b | [
"Apache-2.0"
] | permissive | bre7k30/lean | de893411bcfa7b3c5572e61b9e1c52951b310aa4 | 5a924699d076dab1bd5af23a8f910b433e598d7a | refs/heads/master | 1,610,900,145,817 | 1,488,006,845,000 | 1,488,006,845,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 875 | lean | open tactic
meta def list_name.to_expr (n : list name) : tactic expr := to_expr (quote n)
meta def my_attr : caching_user_attribute (name → bool) :=
{ name := "my_attr",
descr := "my attr",
mk_cache := λ ls, do {
els ← list_name.to_expr ls,
c ← to_expr `(λ n : name, (name.cases_on n ff (λ... |
6e1ab5d0654b402bd39dd0e46605c5bd1ebd6f41 | b7f22e51856f4989b970961f794f1c435f9b8f78 | /library/init/measurable.lean | 0352c64585c64321d8b363b7091fc609eb696c70 | [
"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 | 1,380 | 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
Types with a nat-valued complexity measure.
-/
prelude
import init.nat
open nat
inductive measurable [class] (A : Type) :=
mk : (A → nat) → measurable A
def... |
631261b52b2b00827a6c9c383a7ac0a9937f1eef | 74addaa0e41490cbaf2abd313a764c96df57b05d | /Mathlib/topology/instances/real_vector_space_auto.lean | fab9e94fafa61bfe1266ad83630d3d72a5cdc457 | [] | no_license | AurelienSaue/Mathlib4_auto | f538cfd0980f65a6361eadea39e6fc639e9dae14 | 590df64109b08190abe22358fabc3eae000943f2 | refs/heads/master | 1,683,906,849,776 | 1,622,564,669,000 | 1,622,564,669,000 | 371,723,747 | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 1,939 | lean | /-
Copyright (c) 2020 Yury Kudryashov. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Author: Yury Kudryashov
-/
import Mathlib.PrePort
import Mathlib.Lean3Lib.init.default
import Mathlib.topology.algebra.module
import Mathlib.topology.instances.real
import Mathlib.PostPort
un... |
adc12d4f5e71a33042a59b5b43a3fd95eb2a769a | 69d4931b605e11ca61881fc4f66db50a0a875e39 | /src/linear_algebra/basis.lean | 0a515acd22cdd8b370a4e1249e03c6c0f5c2fad2 | [
"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 | 35,064 | 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, Alexander Bentkamp
-/
import algebra.big_operators.finsupp
import data.fintype.card
import linear_algebra.finsupp
import linear_algebra.linear_independe... |
49283cf0db3a4fa920af126e55086d0c9380242f | b7f22e51856f4989b970961f794f1c435f9b8f78 | /tests/lean/run/lift.lean | 9932cc47836660f30a0e0708d445a89cbac587ee | [
"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 | 449 | lean | import data.nat
open nat
inductive lift .{l} (A : Type.{l}) : Type.{l+1} :=
up : A → lift A
namespace lift
definition down {A : Type} (a : lift A) : A :=
lift.rec (λ a, a) a
theorem down_up {A : Type} (a : A) : down (up a) = a :=
rfl
theorem up_down {A : Type} (a' : lift A) : up (down a') = a' :=
lift.induction_on... |
fca8fa33cf022e7e3ba7cdf21a0324d541fa036e | 9be442d9ec2fcf442516ed6e9e1660aa9071b7bd | /src/Lean/Data/Lsp.lean | 12abac02f43be3304db25400429c30d900c628b5 | [
"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 | 571 | 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 Lean.Data.Lsp.Basic
import Lean.Data.Lsp.Capabilities
import Lean.Data.Lsp.Client
import Lean.Data.Lsp.Communication
import Lean.Data.Lsp.Dia... |
d4eb807dde5df1dd35891577256b5cda8490b0e5 | d406927ab5617694ec9ea7001f101b7c9e3d9702 | /src/category_theory/idempotents/karoubi.lean | 86b704ee356f15642f6b162c5ca3ac5e201e30c0 | [
"Apache-2.0"
] | permissive | alreadydone/mathlib | dc0be621c6c8208c581f5170a8216c5ba6721927 | c982179ec21091d3e102d8a5d9f5fe06c8fafb73 | refs/heads/master | 1,685,523,275,196 | 1,670,184,141,000 | 1,670,184,141,000 | 287,574,545 | 0 | 0 | Apache-2.0 | 1,670,290,714,000 | 1,597,421,623,000 | Lean | UTF-8 | Lean | false | false | 8,644 | lean | /-
Copyright (c) 2022 Joël Riou. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Joël Riou
-/
import category_theory.idempotents.basic
import category_theory.preadditive.additive_functor
import category_theory.equivalence
/-!
# The Karoubi envelope of a category
In t... |
7386ed6bfa8fb80cad72197f58cfbe46c3eff788 | 75c54c8946bb4203e0aaf196f918424a17b0de99 | /src/zfc.lean | ff71ce2d22ec9d16aecdc14cfc2105764f6b554c | [
"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 | 21,652 | 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
-/
import .bfol .forcing .forcing_CH
open lattice
open bSet
open fol
local notation h :: t := dvector.cons h t
local notation `[` l:(foldr `, ` (... |
7c59e11d401b280890a2f8a0334700c0d62530b9 | 037dba89703a79cd4a4aec5e959818147f97635d | /src/2020/relations/random_reln_transitive.lean | b8e6aa8ed220747612bd35cf1951840b627fcd61 | [] | no_license | ImperialCollegeLondon/M40001_lean | 3a6a09298da395ab51bc220a535035d45bbe919b | 62a76fa92654c855af2b2fc2bef8e60acd16ccec | refs/heads/master | 1,666,750,403,259 | 1,665,771,117,000 | 1,665,771,117,000 | 209,141,835 | 115 | 12 | null | 1,640,270,596,000 | 1,568,749,174,000 | Lean | UTF-8 | Lean | false | false | 766 | lean | import tactic
-- Let X be the set {A,B,C}
@[derive fintype] inductive X
| A : X
| B : X
| C : X
open X
inductive R : X → X → Prop
| AB : R A B
| AC : R A C
instance : decidable_rel R :=
begin
unfold decidable_rel,
intros a b,
cases a; cases b;
[left, right, right, left, left, left, left, left, left];
exac... |
17dae1a265d13fb84572e9c9fc07eaf85beb79ad | c777c32c8e484e195053731103c5e52af26a25d1 | /src/algebraic_topology/dold_kan/p_infty.lean | b95df628099e377230883df0e59c2c21aff6a597 | [
"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,955 | lean | /-
Copyright (c) 2022 Joël Riou. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Joël Riou
-/
import algebraic_topology.dold_kan.projections
import category_theory.idempotents.functor_categories
import category_theory.idempotents.functor_extension
/-!
# Construction ... |
220c9e6af6ca164b8a790d4b6cc19885465b5912 | e00ea76a720126cf9f6d732ad6216b5b824d20a7 | /src/linear_algebra/basis.lean | 3d3bd86768ee2bc8a5e513ae750da415210f1ee8 | [
"Apache-2.0"
] | permissive | vaibhavkarve/mathlib | a574aaf68c0a431a47fa82ce0637f0f769826bfe | 17f8340912468f49bdc30acdb9a9fa02eeb0473a | refs/heads/master | 1,621,263,802,637 | 1,585,399,588,000 | 1,585,399,588,000 | 250,833,447 | 0 | 0 | Apache-2.0 | 1,585,410,341,000 | 1,585,410,341,000 | null | UTF-8 | Lean | false | false | 53,710 | 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, Alexander Bentkamp
-/
import linear_algebra.basic linear_algebra.finsupp order.zorn
import data.fintype.card
/-!
# Linear independence and bases
Thi... |
676004ed3478ba96c3e3a9c8dc6b521eefd2215e | 302c785c90d40ad3d6be43d33bc6a558354cc2cf | /src/topology/continuous_function/algebra.lean | 69ec92ac4f687ed72e9b062726b808b04e90b82d | [
"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 | 22,070 | lean | /-
Copyright (c) 2019 Scott Morrison. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Scott Morrison, Nicolò Cavalleri
-/
import topology.algebra.module
import topology.continuous_function.basic
import algebra.algebra.subalgebra
/-!
# Algebraic structures over continuo... |
01cd4d1de269b4b6aacdbd2f73c04affff0d691e | 4727251e0cd73359b15b664c3170e5d754078599 | /src/topology/unit_interval.lean | 7a858b6b679e065fd0b620b4bbfab4621b9de19d | [
"Apache-2.0"
] | permissive | Vierkantor/mathlib | 0ea59ac32a3a43c93c44d70f441c4ee810ccceca | 83bc3b9ce9b13910b57bda6b56222495ebd31c2f | refs/heads/master | 1,658,323,012,449 | 1,652,256,003,000 | 1,652,256,003,000 | 209,296,341 | 0 | 1 | Apache-2.0 | 1,568,807,655,000 | 1,568,807,655,000 | null | UTF-8 | Lean | false | false | 6,377 | lean | /-
Copyright (c) 2020 Patrick Massot. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Patrick Massot, Scott Morrison
-/
import topology.instances.real
import topology.algebra.field
import data.set.intervals.proj_Icc
/-!
# The unit interval, as a topological space
Use ... |
8fa8dd90989928fbb33b88860f77ec226ae00405 | 5d166a16ae129621cb54ca9dde86c275d7d2b483 | /tests/lean/format_macro.lean | 25e33ba3f8e04c5c3d03b52d6573fdb6e4bca137 | [
"Apache-2.0"
] | permissive | jcarlson23/lean | b00098763291397e0ac76b37a2dd96bc013bd247 | 8de88701247f54d325edd46c0eed57aeacb64baf | refs/heads/master | 1,611,571,813,719 | 1,497,020,963,000 | 1,497,021,515,000 | 93,882,536 | 1 | 0 | null | 1,497,029,896,000 | 1,497,029,896,000 | null | UTF-8 | Lean | false | false | 294 | lean | #eval format!"hi"
#eval format! "hi"
#eval format!"hi\nhi"
#eval format!"{1}+{1}"
#eval format!"{1+1}"
#eval format!"{{{1+1}}"
#eval format!"a{1}"
#eval format!"{1}a"
#eval format!"}"
#check λ α, format!"{α}"
#eval format!"{"
#eval format!"{}"
#eval format!"{1+}"
#eval sformat!"a{'b'}c"
|
c477dce9c87074edcc5a9a972446149e72d103b1 | 94e33a31faa76775069b071adea97e86e218a8ee | /src/analysis/normed_space/banach.lean | fb75643187b779489e8e64f48a4941ad07447230 | [
"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 | 21,402 | 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 topology.metric_space.baire
import analysis.normed_space.operator_norm
import analysis.normed_space.affine_isometry
/-!
# Banach open mapping theorem
T... |
d93b65e18df0614aa34710414e4ccea306148fac | 57c233acf9386e610d99ed20ef139c5f97504ba3 | /src/analysis/calculus/lhopital.lean | 9aa92fb7a55a21e42a0ac6a97322512337be7383 | [
"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 | 24,851 | lean | /-
Copyright (c) 2020 Anatole Dedecker. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Anatole Dedecker
-/
import analysis.calculus.mean_value
/-!
# L'Hôpital's rule for 0/0 indeterminate forms
In this file, we prove several forms of "L'Hopital's rule" for computing ... |
73fed0128822edfed6e2dba97c8bab3f30e744c8 | 0845ae2ca02071debcfd4ac24be871236c01784f | /library/init/lean/compiler/constfolding.lean | 841625e0471f76c2522c56ca3a03c7911146e272 | [
"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 | 6,883 | 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
-/
prelude
import init.lean.expr init.platform
import init.lean.compiler.util
/- Constant folding for primitives that have special runtime support. -/
namesp... |
cb2d03fd887b2e627e4211779d18d1c5c13b998d | 9be442d9ec2fcf442516ed6e9e1660aa9071b7bd | /stage0/src/Lean/Meta/UnificationHint.lean | 098a977a0d084cd4d1b1867202d0504cf6a94c0e | [
"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 | 5,259 | lean | /-
Copyright (c) 2020 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Leonardo de Moura
-/
import Lean.ScopedEnvExtension
import Lean.Util.Recognizers
import Lean.Meta.DiscrTree
import Lean.Meta.SynthInstance
namespace Lean.Meta
structure Unific... |
ec094762257886c82db90c959032075fe88f4630 | a4673261e60b025e2c8c825dfa4ab9108246c32e | /src/Lean/Compiler/IR/Boxing.lean | 1e923ca99a58bd9a049239275fb91435c3c0858c | [
"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 | 13,241 | 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.ClosedTermCache
import Lean.Compiler.ExternAttr
import Lean.Compiler.IR.Basic
import Lean.Compiler.IR.CompilerM
imp... |
3260bcd109c5657d9ca2b14e7de25f72cce98520 | 82b86ba2ae0d5aed0f01f49c46db5afec0eb2bd7 | /stage0/src/Lean/Meta/Tactic/Induction.lean | e3182050c1013ea3795d0f75fad9a2a759a04faa | [
"Apache-2.0"
] | permissive | banksonian/lean4 | 3a2e6b0f1eb63aa56ff95b8d07b2f851072d54dc | 78da6b3aa2840693eea354a41e89fc5b212a5011 | refs/heads/master | 1,673,703,624,165 | 1,605,123,551,000 | 1,605,123,551,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 11,622 | lean | /-
Copyright (c) 2020 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Leonardo de Moura
-/
import Lean.Meta.RecursorInfo
import Lean.Meta.SynthInstance
import Lean.Meta.Tactic.Util
import Lean.Meta.Tactic.Revert
import Lean.Meta.Tactic.Intro
impor... |
ba89c2e9352e9dd4a5443c0675ffe2c2522e1c73 | 1437b3495ef9020d5413178aa33c0a625f15f15f | /analysis/normed_space.lean | bf505e3f8e0f9b41ec22b400b5c6b1ce0ab07256 | [
"Apache-2.0"
] | permissive | jean002/mathlib | c66bbb2d9fdc9c03ae07f869acac7ddbfce67a30 | dc6c38a765799c99c4d9c8d5207d9e6c9e0e2cfd | refs/heads/master | 1,587,027,806,375 | 1,547,306,358,000 | 1,547,306,358,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 15,897 | lean | /-
Copyright (c) 2018 Patrick Massot. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Normed spaces.
Authors: Patrick Massot, Johannes Hölzl
-/
import algebra.pi_instances
import linear_algebra.basic
import analysis.nnreal
variables {α : Type*} {β : Type*} {γ : Type*} {ι : Typ... |
6b3a5ab18783b67fefd471f49b51d60af2430570 | b328e8ebb2ba923140e5137c83f09fa59516b793 | /stage0/src/Lean/Elab/Match.lean | e20fe28289ee2d708f19f5e222c3d97d1fb5e78c | [
"Apache-2.0"
] | permissive | DrMaxis/lean4 | a781bcc095511687c56ab060e816fd948553e162 | 5a02c4facc0658aad627cfdcc3db203eac0cb544 | refs/heads/master | 1,677,051,517,055 | 1,611,876,226,000 | 1,611,876,226,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 39,511 | lean | /-
Copyright (c) 2020 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Leonardo de Moura
-/
import Lean.Meta.Match.MatchPatternAttr
import Lean.Meta.Match.Match
import Lean.Elab.SyntheticMVars
import Lean.Elab.App
import Lean.Parser.Term
namespace... |
893ffe4ea984deb7299023a2a4d66ac3d1a348ad | 26b290e100179c46233060ff9972c0758106c196 | /src/mini_crush/default.lean | a7bfc50c1b949896c2c7cf20f5f817f8807ae34d | [] | no_license | seanpm2001/LeanProver_Mini_Crush | f95f9e06230b171dd84cc49808f5b2f8378c5e03 | cea4166b1b2970fba47907798e7fe0511e426cfd | refs/heads/master | 1,688,908,222,650 | 1,547,825,246,000 | 1,547,825,246,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 8,780 | 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
We implement a crush-like strategy using simplifier,
SMT gadgets, and robust simplifier.
This is just a demo.
-/
declare_trace mini_crush
namespace mini_cru... |
3b71163541c6593aa093530664125097d695b464 | 4727251e0cd73359b15b664c3170e5d754078599 | /src/data/int/nat_prime.lean | ad6fae2fe0bd1f09613a8ad05cc38022b541434c | [
"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 | 483 | lean | /-
Copyright (c) 2020 Bryan Gin-ge Chen. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Kevin Lacker, Bryan Gin-ge Chen
-/
import data.nat.prime
import data.int.basic
/-!
# Lemmas about nat.prime using `int`s
-/
open nat
namespace int
lemma not_prime_of_int_mul {a b... |
fb476d4d9bb1b50e252466777fb10a5ede97dced | 7571914d3f4d9677288f35ab1a53a2ad70a62bd7 | /library/init/meta/interactive.lean | 6aaa9d327337faacd8b897c974550165de634a47 | [
"Apache-2.0"
] | permissive | picrin/lean-1 | a395fed5287995f09a15a190bb24609919a0727f | b50597228b42a7eaa01bf8cb7a4fb1a98e7a8aab | refs/heads/master | 1,610,757,735,162 | 1,502,008,413,000 | 1,502,008,413,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 41,745 | lean | /-
Copyright (c) 2016 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Leonardo de Moura
-/
prelude
import init.meta.tactic init.meta.rewrite_tactic init.meta.simp_tactic
import init.meta.smt.congruence_closure init.category.combinators
import init... |
b6e05cc382444ecb1c2cc17b6ea28d6446f6d6b3 | 80cc5bf14c8ea85ff340d1d747a127dcadeb966f | /src/data/finset/fold.lean | 73eb9a3ba1ff285334eb245868d8182ec50ea0ce | [
"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 | 5,803 | lean | /-
Copyright (c) 2017 Mario Carneiro. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Author: Mario Carneiro
-/
import data.finset.basic
import data.multiset.fold
/-!
# The fold operation for a commutative associative operation over a finset.
-/
namespace finset
open multiset
... |
3e012bac66bd3a7774b38aaa6747b0bd8b7f4c10 | d406927ab5617694ec9ea7001f101b7c9e3d9702 | /src/order/hom/complete_lattice.lean | d40a85a082fe991004b7f239371e4741e1ac79b9 | [
"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 | 24,988 | lean | /-
Copyright (c) 2022 Yaël Dillies. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Yaël Dillies
-/
import order.complete_lattice
import order.hom.lattice
/-!
# Complete lattice homomorphisms
This file defines frame homorphisms and complete lattice homomorphisms.
We ... |
4260018a68c4f92d460cb1d870b4d6d5296e20a0 | fecda8e6b848337561d6467a1e30cf23176d6ad0 | /src/measure_theory/set_integral.lean | 31caea2aa7f33807511db8bb116666037fe898f0 | [
"Apache-2.0"
] | permissive | spolu/mathlib | bacf18c3d2a561d00ecdc9413187729dd1f705ed | 480c92cdfe1cf3c2d083abded87e82162e8814f4 | refs/heads/master | 1,671,684,094,325 | 1,600,736,045,000 | 1,600,736,045,000 | 297,564,749 | 1 | 0 | null | 1,600,758,368,000 | 1,600,758,367,000 | null | UTF-8 | Lean | false | false | 35,260 | lean | /-
Copyright (c) 2020 Zhouhang Zhou. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Zhouhang Zhou, Yury Kudryashov
-/
import measure_theory.bochner_integration
import analysis.normed_space.indicator_function
/-!
# Set integral
In this file we prove some properties of... |
9673a6e4d1b517e5c2e9483c90d472f1d3b91f16 | 8cae430f0a71442d02dbb1cbb14073b31048e4b0 | /src/combinatorics/simple_graph/acyclic.lean | 5324b67ef9476cef71b440cceec0f1da659ef361 | [
"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 | 4,853 | lean | /-
Copyright (c) 2022 Kyle Miller. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Kyle Miller
-/
import combinatorics.simple_graph.connectivity
/-!
# Acyclic graphs and trees
> THIS FILE IS SYNCHRONIZED WITH MATHLIB4.
> Any changes to this file require a correspondin... |
72d4ce3d61ee0aec74705239588dbfae99ae6343 | d436468d80b739ba7e06843c4d0d2070e43448e5 | /src/group_theory/submonoid.lean | 0051911a88d586804e1bdf7c16d54c9c255109cb | [
"Apache-2.0"
] | permissive | roro47/mathlib | 761fdc002aef92f77818f3fef06bf6ec6fc1a28e | 80aa7d52537571a2ca62a3fdf71c9533a09422cf | refs/heads/master | 1,599,656,410,625 | 1,573,649,488,000 | 1,573,649,488,000 | 221,452,951 | 0 | 0 | Apache-2.0 | 1,573,647,693,000 | 1,573,647,692,000 | null | UTF-8 | Lean | false | false | 42,254 | lean | /-
Copyright (c) 2018 Johannes Hölzl. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Johannes Hölzl, Kenny Lau, Johan Commelin, Mario Carneiro, Kevin Buzzard, Amelia Livingston
-/
import algebra.big_operators
import data.finset
import tactic.subtype_instance
/-!
# Su... |
87386bfc6c4272b747e9abaf7020d3adeb06a2c9 | 1901b51268d21ec7361af7d3534abd9a8fa5cf52 | /src/graph_theory/planar.lean | 19ff655f50d3cee7ef800b45d35ed70adb4df411 | [] | no_license | vbeffara/lean | b9ea4107deeaca6f4da98e5de029b62e4861ab40 | 0004b1d502ac3f4ccd213dbd23589d4c4f9fece8 | refs/heads/main | 1,652,050,034,756 | 1,651,610,858,000 | 1,651,610,858,000 | 225,244,535 | 6 | 1 | null | null | null | null | UTF-8 | Lean | false | false | 1,624 | lean | import tactic
import graph_theory.minor graph_theory.product analysis.complex.basic
namespace simple_graph
def Z : simple_graph ℤ :=
{ adj := λ x y, |x-y| = 1,
symm := λ x y h, by { rw ←h, convert abs_neg _, ring },
loopless := λ x, by simp only [sub_self, abs_zero, zero_ne_one, not_false_iff] }
variables {V V' ... |
982de0f0dd7d4974003d05684b7bb41a552d2ef9 | 05f637fa14ac28031cb1ea92086a0f4eb23ff2b1 | /examples/lean/wf.lean | e798f706cb2eb8c5f559dceb8071268756678e1a | [
"Apache-2.0"
] | permissive | codyroux/lean0.1 | 1ce92751d664aacff0529e139083304a7bbc8a71 | 0dc6fb974aa85ed6f305a2f4b10a53a44ee5f0ef | refs/heads/master | 1,610,830,535,062 | 1,402,150,480,000 | 1,402,150,480,000 | 19,588,851 | 2 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 2,454 | lean | import macros
-- Well-founded relation definition
-- We are essentially saying that a relation R is well-founded
-- if every non-empty "set" P, has a R-minimal element
definition wf {A : (Type U)} (R : A → A → Bool) : Bool
:= ∀ P, (∃ w, P w) → ∃ min, P min ∧ ∀ b, R b min → ¬ P b
-- Well-founded induction theorem
t... |
b6fe0f69dfe5a7646baded7b70312b0b96a26810 | 4727251e0cd73359b15b664c3170e5d754078599 | /src/data/fun_like/basic.lean | 1a315797950823e3d9c4f31662e49c03feb36ebf | [
"Apache-2.0"
] | permissive | Vierkantor/mathlib | 0ea59ac32a3a43c93c44d70f441c4ee810ccceca | 83bc3b9ce9b13910b57bda6b56222495ebd31c2f | refs/heads/master | 1,658,323,012,449 | 1,652,256,003,000 | 1,652,256,003,000 | 209,296,341 | 0 | 1 | Apache-2.0 | 1,568,807,655,000 | 1,568,807,655,000 | null | UTF-8 | Lean | false | false | 6,809 | lean | /-
Copyright (c) 2021 Anne Baanen. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Anne Baanen
-/
import logic.function.basic
import tactic.lint
import tactic.norm_cast
/-!
# Typeclass for a type `F` with an injective map to `A → B`
This typeclass is primarily for us... |
dc5bff5c509fd42d37db123fd6d46a467b4b6db3 | c31182a012eec69da0a1f6c05f42b0f0717d212d | /src/for_mathlib/normed_group_hom.lean | 48e1fd6e4909fcede3621c94fab26b14579d1367 | [] | no_license | Ja1941/lean-liquid | fbec3ffc7fc67df1b5ca95b7ee225685ab9ffbdc | 8e80ed0cbdf5145d6814e833a674eaf05a1495c1 | refs/heads/master | 1,689,437,983,362 | 1,628,362,719,000 | 1,628,362,719,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 4,368 | lean | import analysis.normed_space.normed_group_hom
import analysis.specific_limits
noncomputable theory
open_locale filter topological_space big_operators
open set normed_group_hom uniform_space filter finset
def normed_group_hom.surjective_on_with {G H : Type*} [semi_normed_group G] [semi_normed_group H]
(f : normed_g... |
aae539028999beb9baadff3e66b4167a611117f2 | 491068d2ad28831e7dade8d6dff871c3e49d9431 | /tests/lean/run/occurs_check_bug1.lean | 11fdd9d0d81f15874dd3c924b8c89f33e8c54bef | [
"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 | 478 | lean | import logic data.nat data.prod
open nat prod
open decidable
constant modulo (x : ℕ) (y : ℕ) : ℕ
infixl `mod` := modulo
constant gcd_aux : ℕ × ℕ → ℕ
definition gcd (x y : ℕ) : ℕ := gcd_aux (pair x y)
theorem gcd_def (x y : ℕ) : gcd x y = @ite (y = 0) (nat.has_decidable_eq (pr2 (pair x y)) 0) nat x (gcd y (x mod y)... |
4b0af6506266d0a70367d0082e1b49e8a791ad7d | e00ea76a720126cf9f6d732ad6216b5b824d20a7 | /src/data/seq/wseq.lean | a28b034e48dfd739008e600ddea7ed4637def380 | [
"Apache-2.0"
] | permissive | vaibhavkarve/mathlib | a574aaf68c0a431a47fa82ce0637f0f769826bfe | 17f8340912468f49bdc30acdb9a9fa02eeb0473a | refs/heads/master | 1,621,263,802,637 | 1,585,399,588,000 | 1,585,399,588,000 | 250,833,447 | 0 | 0 | Apache-2.0 | 1,585,410,341,000 | 1,585,410,341,000 | null | UTF-8 | Lean | false | false | 55,116 | lean | /-
Copyright (c) 2017 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Author: Mario Carneiro
-/
import data.seq.seq data.seq.computation data.dlist
universes u v w
/-
coinductive wseq (α : Type u) : Type u
| nil : wseq α
| cons : α → wseq α → wseq α
| thi... |
e2a005b4f1f3a387c25c6583d6dbc7e3b139e19b | 8cae430f0a71442d02dbb1cbb14073b31048e4b0 | /src/data/polynomial/unit_trinomial.lean | 0a3957e21121ef58a87a40e043ada1eeebd78a8c | [
"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 | 16,302 | lean | /-
Copyright (c) 2022 Thomas Browning. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Thomas Browning
-/
import analysis.complex.polynomial
import data.polynomial.mirror
/-!
# Unit Trinomials
> THIS FILE IS SYNCHRONIZED WITH MATHLIB4.
> Any changes to this file requ... |
d06aeee6652f35abc668dc624a4042d0d8d97263 | 4727251e0cd73359b15b664c3170e5d754078599 | /src/category_theory/concrete_category/elementwise.lean | e3a3674edf6024a719fafa4934d721ef2f9ccb10 | [
"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 | 786 | lean | /-
Copyright (c) 2022 Andrew Yang. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Andrew Yang
-/
import tactic.elementwise
import category_theory.limits.has_limits
import category_theory.limits.shapes.kernels
/-!
In this file we provide various simp lemmas in its elem... |
7818696be624d62333c5501c3c2961fb399c27a0 | 491068d2ad28831e7dade8d6dff871c3e49d9431 | /tests/lean/run/div_wf.lean | 9ae7f6bfc1de8625c00445c6e07a84d5c20e1e0b | [
"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 | 1,641 | lean | import data.nat data.prod
open nat well_founded decidable prod eq.ops
-- Auxiliary lemma used to justify recursive call
private definition lt_aux {x y : nat} (H : 0 < y ∧ y ≤ x) : x - y < x :=
and.rec_on H (λ ypos ylex,
sub_lt (lt_of_lt_of_le ypos ylex) ypos)
definition wdiv.F (x : nat) (f : Π x₁, x₁ < x → nat → na... |
85e667d434127a14d6f85e197b3a7c7765400798 | 4bcaca5dc83d49803f72b7b5920b75b6e7d9de2d | /tests/lean/PPRoundtrip.lean | 8482906bfd73704ad396ea833775e0565a8a05ce | [
"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 | 3,290 | lean | import Lean
open Lean
open Lean.Elab
open Lean.Elab.Term
open Lean.Elab.Command
open Std.Format open Std
open Lean.PrettyPrinter
open Lean.PrettyPrinter.Delaborator
open Lean.Meta
def checkM (stx : TermElabM Syntax) (optionsPerPos : OptionsPerPos := {}) : TermElabM Unit := do
let opts ← getOptions
let stx ← stx
let ... |
bd5fa76b3b843ca38455b9bbdb11df741fd94219 | 8cae430f0a71442d02dbb1cbb14073b31048e4b0 | /src/analysis/convex/independent.lean | 146ec06b43de8638ba276b57da6db1516745ea07 | [
"Apache-2.0"
] | permissive | leanprover-community/mathlib | 56a2cadd17ac88caf4ece0a775932fa26327ba0e | 442a83d738cb208d3600056c489be16900ba701d | refs/heads/master | 1,693,584,102,358 | 1,693,471,902,000 | 1,693,471,902,000 | 97,922,418 | 1,595 | 352 | Apache-2.0 | 1,694,693,445,000 | 1,500,624,130,000 | Lean | UTF-8 | Lean | false | false | 8,437 | lean | /-
Copyright (c) 2021 Yaël Dillies, Bhavik Mehta. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Yaël Dillies, Bhavik Mehta
-/
import analysis.convex.combination
import analysis.convex.extreme
/-!
# Convex independence
> THIS FILE IS SYNCHRONIZED WITH MATHLIB4.
> Any... |
ddd4f181da9203e7c01f03d09d2106efbbeafcb7 | 8cae430f0a71442d02dbb1cbb14073b31048e4b0 | /src/category_theory/functor/basic.lean | 8af552edc4983e8f6b5dad9ec71265ee6d383079 | [
"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,954 | 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
-/
import tactic.reassoc_axiom
import category_theory.category.basic
/-!
# Functors
> THIS FILE IS SYNCHRONIZED WITH MATHLIB4.
> Any chang... |
811598cf10d43add03d90e5bd6b923480ad6c37c | fe6a6bdd171ff04b1f2728c050ebe0262fb5f788 | /MdT - Beginning.lean | c3f46c6cc674fb55a46235fc140ab9782693582f | [] | no_license | FeIipeVieira/LogicasFormaisSistemasNormativos | 4a4cc9fe2fa70e7acdc1ff34b81783b6a26a2b6f | c63dd3b15a072779200a12eb6b88a60acf065d70 | refs/heads/master | 1,583,547,325,700 | 1,536,799,298,000 | 1,536,799,298,000 | 127,204,138 | 1 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 2,030 | lean | universe u
inductive movimento: Type
| direita : movimento
| esquerda : movimento
| parado : movimento
structure configuracao : Type := mk ::
(estAtual: int) --
(simboloLer: nat)
(simboloEsc: nat)
(mov: movimento)
(proxEst: int)
def confInvalida: configuracao :=
configuracao.mk 0 0 0 sorry 0
s... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.