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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
0a2db30e9b50feb1b91799281622d0b2671799ed | fa02ed5a3c9c0adee3c26887a16855e7841c668b | /src/data/real/ereal.lean | 2259863753197b3e18691a14eff5bf252f06bc93 | [
"Apache-2.0"
] | permissive | jjgarzella/mathlib | 96a345378c4e0bf26cf604aed84f90329e4896a2 | 395d8716c3ad03747059d482090e2bb97db612c8 | refs/heads/master | 1,686,480,124,379 | 1,625,163,323,000 | 1,625,163,323,000 | 281,190,421 | 2 | 0 | Apache-2.0 | 1,595,268,170,000 | 1,595,268,169,000 | null | UTF-8 | Lean | false | false | 18,702 | lean | /-
Copyright (c) 2019 Kevin Buzzard. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Kevin Buzzard
-/
import data.real.basic
import data.real.ennreal
/-!
# The extended reals [-∞, ∞].
This file defines `ereal`, the real numbers together with a top and bottom element,
... |
2d38cc6088e97746dc0649eef53adebe7f439133 | fa02ed5a3c9c0adee3c26887a16855e7841c668b | /src/data/finset/fold.lean | 93970566ca4d20072169f3fc4b51d7e4aeaba717 | [
"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 | 6,325 | lean | /-
Copyright (c) 2017 Mario Carneiro. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: 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... |
cd10ee2d1f44df3628b88719af77a725b82b7e89 | 75c54c8946bb4203e0aaf196f918424a17b0de99 | /src/bvm_extras2.lean | d6587e6470864264f462ec6ddc3a487e6c583d81 | [
"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 | 31,659 | lean | import .bvm_extras
open lattice
universe u
local infix ` ⟹ `:65 := lattice.imp
local infix ` ⇔ `:50 := lattice.biimp
local infix `≺`:75 := (λ x y, -(bSet.larger_than x y))
local infix `≼`:75 := (λ x y, bSet.injects_into x y)
namespace bSet
section lemmas
variables {𝔹 : Type u} [nontrivial_complete_boolean_alge... |
20f988e100145f0e21e3ef01f4fbb616548f34ff | d9d511f37a523cd7659d6f573f990e2a0af93c6f | /src/analysis/convex/extrema.lean | 9c65bf40eb1bdcab5c2ef017a91f8e04c588c1f3 | [
"Apache-2.0"
] | permissive | hikari0108/mathlib | b7ea2b7350497ab1a0b87a09d093ecc025a50dfa | a9e7d333b0cfd45f13a20f7b96b7d52e19fa2901 | refs/heads/master | 1,690,483,608,260 | 1,631,541,580,000 | 1,631,541,580,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 5,436 | 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 analysis.convex.basic
import topology.algebra.affine
import topology.local_extr
/-!
# Minima and maxima of convex functions
We show that if a function `f :... |
17fd0f1b0fe0f6daf9ab1dcef480cbae67e07e26 | d406927ab5617694ec9ea7001f101b7c9e3d9702 | /src/order/hom/basic.lean | 40cfa0f1d22713035624d74be01a3aacd778d2ed | [
"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 | 39,220 | 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 logic.equiv.option
import order.rel_iso.basic
import tactic.monotonicity.basic
import tactic.assert_exists
import order.disjoint
/-!
# Order homomorphisms
Th... |
c5338e7a36ac29f7e02b32c142db5dca65de0cbd | d0f9af2b0ace5ce352570d61b09019c8ef4a3b96 | /hw3/dm_prod.lean | 2da11ed5c2ebc93a70de7e2b977b729fe817bd76 | [] | no_license | jngo13/Discrete-Mathematics | 8671540ef2da7c75915d32332dd20c02f001474e | bf674a866e61f60e6e6d128df85fa73819091787 | refs/heads/master | 1,675,615,657,924 | 1,609,142,011,000 | 1,609,142,011,000 | 267,190,341 | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 1,642 | lean | -- Justin Ngo
-- jmn4fms
-- 2/3/20
-- Sullivan 2102-001
/-
1. [30 points]
In class we implemented a polymorphic ordered
pair abstract data type that we called prod_S_T.
In a new file called dm_prod.lean re-implement
this ADT but call it dm_prod. Implement at least
the following functions:
- fst
- snd
- set_fst
- set_... |
4c05b4e766076187d944074314306b5cf3ca237d | c31182a012eec69da0a1f6c05f42b0f0717d212d | /src/system_of_complexes/rescale.lean | 3ee8192a617d7781f5a5b6d19d995da7a2b60c89 | [] | 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 | 8,507 | lean | import system_of_complexes.basic
import rescale.normed_group
/-!
# rescaling norms on a system of complexes
This file defines the `rescale` functor which will take a system of complexes of seminormed groups
and systematically rescale all the norms on all the seminormed groups by a constant factor.
-/
noncomputable t... |
464d877c2722de9b6cf15d9c0355e51930d1ab93 | b32d3853770e6eaf06817a1b8c52064baaed0ef1 | /src/super/utils.lean | 8e37cb69a4171e2844a46a39ef457ac732528d8a | [] | no_license | gebner/super2 | 4d58b7477b6f7d945d5d866502982466db33ab0b | 9bc5256c31750021ab97d6b59b7387773e54b384 | refs/heads/master | 1,635,021,682,021 | 1,634,886,326,000 | 1,634,886,326,000 | 225,600,688 | 4 | 2 | null | 1,598,209,306,000 | 1,575,371,550,000 | Lean | UTF-8 | Lean | false | false | 8,488 | lean | import tactic.core
attribute [inline] or.decidable decidable.to_bool bool.decidable_eq and.decidable
nat.decidable_eq ne.decidable decidable.false implies.decidable option.get_or_else
option.map
meta def format.form (as : list format) : format :=
(format.join (as.intersperse format.line)).paren.group
open native... |
85e459ac531690355e86e452fb4fbad40d482877 | ee8cdbabf07f77e7be63a449b8483ce308d37218 | /lean/src/valid/mathd-numbertheory-110.lean | b041aa3ed6a17fb9d7f5ae62d714efbc83dfd81a | [
"MIT",
"Apache-2.0"
] | 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 | 344 | 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.pnat.basic
import data.real.basic
example (a b : ℕ) (h₀ : 0 < a ∧ 0 < b ∧ b ≤ a) (h₁ : (a + b) % 10 = 2) (h₂ : (2 * a + b) % 10 = 1) : (a - b) % 10 = 6 :=
begin
... |
9de56aedbf925ec43085af1dcf6ab79e9ff97f15 | 94e33a31faa76775069b071adea97e86e218a8ee | /src/analysis/special_functions/complex/arg.lean | 787c96a7bd4cf0ca65b8fb66d080ad8ec8c8f6c8 | [
"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 | 25,842 | 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, Benjamin Davidson
-/
import analysis.special_functions.trigonometric.angle
import analysis.special_functions.trigonometric.i... |
3c0845308430a0ae4748ae2d940da88750f4a069 | 8f0ea954c1cc4f4cda83826954d6186c68fc9536 | /hott/homotopy/wedge.hlean | 0e3b4c28a28a9c5f8338d260d57e15ff151f82e2 | [
"Apache-2.0"
] | permissive | piyush-kurur/lean | fb3cbd339dfa8c70c49559fbea88ac0d3102b8ca | a8db8bc61a0b00379b3d0be8ecaf0d0858dc82ee | refs/heads/master | 1,594,387,140,961 | 1,457,548,608,000 | 1,457,909,538,000 | 53,615,930 | 0 | 0 | null | 1,457,642,939,000 | 1,457,642,939,000 | null | UTF-8 | Lean | false | false | 2,925 | hlean | /-
Copyright (c) 2016 Jakob von Raumer. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Jakob von Raumer, Ulrik Buchholtz
The Wedge Sum of Two pType Types
-/
import hit.pointed_pushout .connectedness
open eq pushout pointed unit trunc_index
definition pwedge (A B : T... |
227259a04a73d12e05d34eb1d0667a4de2d79b10 | 9cb9db9d79fad57d80ca53543dc07efb7c4f3838 | /src/for_mathlib/linear_algebra.lean | 3b9653fdc2a984e84189e70931f53e0af9127415 | [] | no_license | mr-infty/lean-liquid | 3ff89d1f66244b434654c59bdbd6b77cb7de0109 | a8db559073d2101173775ccbd85729d3a4f1ed4d | refs/heads/master | 1,678,465,145,334 | 1,614,565,310,000 | 1,614,565,310,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 487 | lean | import linear_algebra.matrix
namespace matrix
open equiv
variables {m n R : Type*} [fintype m] [fintype n] [semiring R] (M : matrix m n R)
lemma reindex_linear_equiv_sum_empty_symm :
(reindex_linear_equiv (sum_empty _) (sum_empty _)).symm M = from_blocks M 0 0 0 :=
begin
ext (i|i) (j|j),
{ simp only [sum_empty... |
47f382ce68f5be338beac058aa198112ca10afc5 | 74addaa0e41490cbaf2abd313a764c96df57b05d | /Mathlib/data/nat/with_bot_auto.lean | 44c57df1e433d6fdaf25b7901fef8e4a4c8956e9 | [] | 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,026 | 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 Mathlib.PrePort
import Mathlib.Lean3Lib.init.default
import Mathlib.data.nat.basic
import Mathlib.algebra.ordered_group
import Mathlib.PostPort
namespace Mathlib
... |
f053d2813218ef8d89ce7fdd660b774f3aea00e5 | c31182a012eec69da0a1f6c05f42b0f0717d212d | /src/for_mathlib/nnreal.lean | 1f3a9f2593884c50e0fb0e33424ca8806063d611 | [] | 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 | 541 | lean | import data.real.nnreal
open_locale nnreal
-- There doesn't seem to be a real analogue of this one, but probably should be?
lemma nnreal.div_le_div_left_of {a b c : ℝ≥0} (w : 0 < c) (h : c ≤ b) : a / b ≤ a / c :=
begin
rcases a with ⟨a, a_pos⟩,
rcases b with ⟨b, b_pos⟩,
rcases c with ⟨c, c_pos⟩,
change a / b ... |
9feab4ac10f5e53fc21442cb73235d24dacdba0e | 6dc0c8ce7a76229dd81e73ed4474f15f88a9e294 | /tests/lean/run/tactic.lean | 961110454407455a0f1e26acf4c05a4195f51dcc | [
"Apache-2.0"
] | permissive | williamdemeo/lean4 | 72161c58fe65c3ad955d6a3050bb7d37c04c0d54 | 6d00fcf1d6d873e195f9220c668ef9c58e9c4a35 | refs/heads/master | 1,678,305,356,877 | 1,614,708,995,000 | 1,614,708,995,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 464 | lean | import Lean.Meta
open Lean
open Lean.Meta
axiom simple : forall {p q : Prop}, p → q → p
def print (msg : MessageData) : MetaM Unit :=
trace! `Meta.Tactic msg
def tst1 : MetaM Unit := do
let cinfo ← getConstInfo `simple
let mvar ← mkFreshExprSyntheticOpaqueMVar cinfo.type
let mvarId := mvar.mvarId!
let (_, mvarId)... |
d839a2fb088944b243c0e42d3e677b9627b3db85 | d406927ab5617694ec9ea7001f101b7c9e3d9702 | /src/ring_theory/witt_vector/frobenius_fraction_field.lean | d251d81d5ad0b5acdd414728c6724d2095719526 | [
"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,859 | lean | /-
Copyright (c) 2022 Robert Y. Lewis. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Robert Y. Lewis, Heather Macbeth
-/
import data.nat.cast.with_top
import field_theory.is_alg_closed.basic
import ring_theory.witt_vector.discrete_valuation_ring
/-!
# Solving equatio... |
3529d388d1e49a492b43abf3140d14f3aa3e4e35 | 6dc0c8ce7a76229dd81e73ed4474f15f88a9e294 | /src/Lean/Elab/Attributes.lean | 79b928e7b773f22f132169b6d28cb3009af21e16 | [
"Apache-2.0"
] | permissive | williamdemeo/lean4 | 72161c58fe65c3ad955d6a3050bb7d37c04c0d54 | 6d00fcf1d6d873e195f9220c668ef9c58e9c4a35 | refs/heads/master | 1,678,305,356,877 | 1,614,708,995,000 | 1,614,708,995,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 2,874 | lean | /-
Copyright (c) 2020 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Leonardo de Moura, Sebastian Ullrich
-/
import Lean.Parser.Attr
import Lean.Attributes
import Lean.MonadEnv
import Lean.Elab.Util
namespace Lean.Elab
structure Attribute where
... |
febe8d3d43d0cd82112b25915ac23335a111ca0b | aa3f8992ef7806974bc1ffd468baa0c79f4d6643 | /tests/lean/t11.lean | a5af8c29792baa5ffda94bc506cde6ef7387a661 | [
"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 | 380 | lean | constant A : Type.{1}
definition bool : Type.{1} := Type.{0}
constant Exists (P : A → bool) : bool
notation `exists` binders `,` b:(scoped b, Exists b) := b
notation `∃` binders `,` b:(scoped b, Exists b) := b
constant p : A → bool
constant q : A → A → bool
check exists x : A, p x
check ∃ x y : A, q x y
notation `{`... |
e17d7bd266739fe6a1d41eb8facc4142762faf73 | 63abd62053d479eae5abf4951554e1064a4c45b4 | /src/category_theory/skeletal.lean | cd2822c6d7cff2b937f8d49425ec7eed6715d4ca | [
"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 | 7,738 | 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.isomorphism_classes
import category_theory.thin
/-!
# Skeleton of a category
Define skeletal categories as categories in which any two isomorphic... |
54d63e7d3f550784c81e65d0a143037a890f3e9a | c777c32c8e484e195053731103c5e52af26a25d1 | /src/analysis/special_functions/trigonometric/euler_sine_prod.lean | 7fd83358cee8922b13fc4ffafe7bf74172dbad9d | [
"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 | 15,937 | lean | /-
Copyright (c) 2023 David Loeffler. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: David Loeffler
-/
import analysis.special_functions.integrals
import measure_theory.integral.peak_function
/-! # Euler's infinite product for the sine function
This file proves the i... |
e5f4755d35a1aedf6b510f77ccef4f10c38515da | d406927ab5617694ec9ea7001f101b7c9e3d9702 | /src/model_theory/definability.lean | e689a61f60d3aa5c477c70e699f638e6712faaa7 | [
"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,314 | lean | /-
Copyright (c) 2021 Aaron Anderson. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Aaron Anderson
-/
import data.set_like.basic
import model_theory.semantics
/-!
# Definable Sets
This file defines what it means for a set over a first-order structure to be definable.... |
141cabd6ccb18f9355f6edbe8b7f7a32ffc9770f | 63abd62053d479eae5abf4951554e1064a4c45b4 | /src/order/rel_classes.lean | 71f8b654568478334f1672ff28be8fc6b63eebf8 | [
"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 | 13,594 | lean | /-
Copyright (c) 2020 Jeremy Avigad. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Jeremy Avigad, Mario Carneiro, Yury G. Kudryashov
-/
import order.basic
/-!
# Unbundled relation classes
In this file we prove some properties of `is_*` classes defined in `init.algeb... |
a9f11d1cc129a91f880f512d07868fb80a97e48a | ebbdcbd7ddc89a9ef7c3b397b301d5f5272a918f | /qp/p1_categories/c2_limits/s6_stability.lean | 21d06e5d88980ca33af0fa506ab139c305775e5a | [] | no_license | intoverflow/qvr | 34b9ef23604738381ca20b7d622fd0399d88f2dd | 0cfcd33fe4bf8d93851a00cec5bfd21e77105d74 | refs/heads/master | 1,616,591,570,371 | 1,492,575,772,000 | 1,492,575,772,000 | 80,061,627 | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 5,627 | lean | /- -----------------------------------------------------------------------
Stability of limits and colimits.
----------------------------------------------------------------------- -/
import .s1_limits
import .s2_products
import .s3_pullbacks
namespace qp
open stdaux
universe variables ℓ ℓobj ℓhom
/- -----------... |
029f972a15608666664fdc14899fc7d6ade735f6 | b7f22e51856f4989b970961f794f1c435f9b8f78 | /tests/lean/run/t11.lean | 73dd755d8c05586aa69cc7e266bc2e0b9328d49e | [
"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 | 272 | lean | constant A : Type.{1}
constants a b c : A
constant f : A → A → A
check f a b
section
parameters A B : Type
parameters {C D : Type}
parameters [e : A] [d : A]
check A
check B
definition g (a : A) (b : B) (c : C) : A := e
end
check g.{2 1}
constants x y : A
|
902a3f9a28bfa98a9a83cd2918baff32c60d3931 | 94e33a31faa76775069b071adea97e86e218a8ee | /src/topology/paracompact.lean | f045a6edb3fc5769f45a5315228c9200aaa55672 | [
"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 | 15,119 | lean | /-
Copyright (c) 2021 Yury Kudryashov. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Reid Barton, Yury Kudryashov
-/
import topology.subset_properties
import topology.separation
import data.option.basic
/-!
# Paracompact topological spaces
A topological space `X` is... |
3d65aff494538d8fe647fca1300b02c8c18f2d19 | 4727251e0cd73359b15b664c3170e5d754078599 | /src/ring_theory/localization/as_subring.lean | c3457a89f702bd446aeb8abaddeb34812f4b24d5 | [
"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 | 5,255 | lean | /-
Copyright (c) 2022 Adam Topaz. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Adam Topaz, Junyan Xu
-/
import ring_theory.localization.localization_localization
/-!
# Localizations of domains as subalgebras of the fraction field.
Given a domain `A` with fraction ... |
b00e093d3a2a37c0b4bcc7128a0c8ffbea21e4aa | a6f55abce20abcd06e718cb3e5fba7bf8a230fa1 | /topic/vegetable.lean | e94ef98fc8864f1ca0a965ebc179238bab04a883 | [] | no_license | sonna0909/abc | b8a53e906d4d000d1f2347173a1cd4221757fabf | ff7b4c621cdf6d53937f2d1b6def28de2085a2aa | refs/heads/master | 1,599,114,664,248 | 1,573,634,309,000 | 1,573,634,309,000 | 219,406,484 | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 6,591 | lean | [
{
"key": "lettuce",
"title": "Lettuce",
"spelling": "/ˈlet.ɪs/",
"subs": [
{
"key": "lettuce1",
"title": "I hate eating lettuce",
"spelling": ""
}
]
},
{
"key": "corn",
"title": "Corn",
"spelling": "/kɔːn/",
"subs": [
{
"key":... |
7e351c63bd49f8d756a732d91bfb749a3ee5b63b | 958488bc7f3c2044206e0358e56d7690b6ae696c | /lean/choice.lean | 08b6c2c9c8ecd488005e1a482c3a2bf2c2ef1a89 | [] | no_license | possientis/Prog | a08eec1c1b121c2fd6c70a8ae89e2fbef952adb4 | d4b3debc37610a88e0dac3ac5914903604fd1d1f | refs/heads/master | 1,692,263,717,723 | 1,691,757,179,000 | 1,691,757,179,000 | 40,361,602 | 3 | 0 | null | 1,679,896,438,000 | 1,438,953,859,000 | Coq | UTF-8 | Lean | false | false | 1,216 | lean | universe u
class inductive nonempty2 (α : Sort u) : Prop
| intro : α → nonempty2
--#check @nonempty
--#check @nonempty2
lemma L1 : ∀ {α : Type u}, nonempty α ↔ ∃ (x:α), true :=
begin
intros α, split; intros H; cases H with x,
{existsi x, constructor},
{constructor, exact x}
end
axiom choice2 {α : Sort u}... |
22447d6b30db14db3ef25e469245fd124d2f6338 | 82e44445c70db0f03e30d7be725775f122d72f3e | /src/measure_theory/haar_measure.lean | 8f82e78172986f3650c5293fe894ea5bf08b0fc1 | [
"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 | 27,616 | lean | /-
Copyright (c) 2020 Floris van Doorn. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Floris van Doorn
-/
import measure_theory.content
import measure_theory.prod_group
/-!
# Haar measure
In this file we prove the existence of Haar measure for a locally compact Haus... |
0263285a8dce9384b0a36381d87cbfa66926ce36 | 2eab05920d6eeb06665e1a6df77b3157354316ad | /src/tactic/norm_cast.lean | 662b1f9e06cead3b0a1d58dd0e84cfe0697855e7 | [
"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 | 26,391 | lean | /-
Copyright (c) 2019 Paul-Nicolas Madelaine. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Paul-Nicolas Madelaine, Robert Y. Lewis
-/
import tactic.converter.interactive
import tactic.hint
/-!
# A tactic for normalizing casts inside expressions
This tactic normaliz... |
9a7aa1c5d6b002b409a676ceb1cdeefd6b4747db | 097294e9b80f0d9893ac160b9c7219aa135b51b9 | /instructor/objects/nat.lean | dde67352f94d5eb2090348c471b8430494aafe73 | [] | no_license | AbigailCastro17/CS2102-Discrete-Math | cf296251be9418ce90206f5e66bde9163e21abf9 | d741e4d2d6a9b2e0c8380e51706218b8f608cee4 | refs/heads/main | 1,682,891,087,358 | 1,621,401,341,000 | 1,621,401,341,000 | 368,749,959 | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 558 | lean | -- Natural numbers
-- data type
#eval nat.zero
#eval (nat.succ nat.zero)
#eval nat.succ (nat.succ nat.zero)
-- notation
#eval 0
#eval 1
#eval 2
-- operators
#eval nat.add 1 2 -- addition
#eval nat.mul 2 3 -- multiplication
#eval nat.pow 2 3 -- exponentiation
#eval nat.sub 4 1 -- subtraction
#eval nat.div 4... |
e72174ab8a418270c542a9bced034089de6df338 | c45b34bfd44d8607a2e8762c926e3cfaa7436201 | /uexp/src/uexp/rules/mergeJoinFilter.lean | 7a8d97770a5d602f0781f094ba7e15d8668de878 | [
"BSD-2-Clause"
] | permissive | Shamrock-Frost/Cosette | b477c442c07e45082348a145f19ebb35a7f29392 | 24cbc4adebf627f13f5eac878f04ffa20d1209af | refs/heads/master | 1,619,721,304,969 | 1,526,082,841,000 | 1,526,082,841,000 | 121,695,605 | 1 | 0 | null | 1,518,737,210,000 | 1,518,737,210,000 | null | UTF-8 | Lean | false | false | 1,567 | lean | import ..sql
import ..tactics
import ..u_semiring
import ..extra_constants
import ..ucongr
import ..TDP
set_option profiler true
open Expr
open Proj
open Pred
open SQL
open tree
notation `int` := datatypes.int
variable integer_10: const datatypes.int
theorem rule:
forall ( Γ scm_dept scm_emp: Schema) (rel_dept: r... |
41c5824d7345d98d12799a52c4dd61481d7973e9 | 8cae430f0a71442d02dbb1cbb14073b31048e4b0 | /test/fin_cases.lean | eaadb04f31273c2a45489bb2524ff329917647c3 | [
"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,167 | lean | /-
Copyright (c) 2018 Scott Morrison. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Scott Morrison
-/
import data.nat.interval
import data.nat.prime
import group_theory.perm.sign
import tactic.fin_cases
example (f : ℕ → Prop) (p : fin 3) (h0 : f 0) (h1 : f 1) (h2 : f... |
93b1e6dbfb57fbe80b18f8abcd29038ea5a987f1 | 9028d228ac200bbefe3a711342514dd4e4458bff | /src/algebra/continued_fractions/computation/approximations.lean | 5109a9e78b6526b556016d4e23dfb7cfaa2e1bd6 | [
"Apache-2.0"
] | permissive | mcncm/mathlib | 8d25099344d9d2bee62822cb9ed43aa3e09fa05e | fde3d78cadeec5ef827b16ae55664ef115e66f57 | refs/heads/master | 1,672,743,316,277 | 1,602,618,514,000 | 1,602,618,514,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 14,578 | lean | /-
Copyright (c) 2020 Kevin Kappelmann. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Kevin Kappelmann
-/
import algebra.continued_fractions.computation.translations
import algebra.continued_fractions.continuants_recurrence
import algebra.continued_fractions.terminate... |
68bc91bf212f2e3acc4ce971d69bfc18dcda6dcd | bd12a817ba941113eb7fdb7ddf0979d9ed9386a0 | /src/category_theory/instances/CommRing/adjunctions.lean | 481d24ad3182116211c153065eb926c6af330e8c | [
"Apache-2.0"
] | permissive | flypitch/mathlib | 563d9c3356c2885eb6cefaa704d8d86b89b74b15 | 70cd00bc20ad304f2ac0886b2291b44261787607 | refs/heads/master | 1,590,167,818,658 | 1,557,762,121,000 | 1,557,762,121,000 | 186,450,076 | 0 | 0 | Apache-2.0 | 1,557,762,289,000 | 1,557,762,288,000 | null | UTF-8 | Lean | false | false | 2,746 | lean | /- Copyright (c) 2019 Scott Morrison. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Scott Morrison, Johannes Hölzl
Multivariable polynomials on a type is the left adjoint of the
forgetful functor from commutative rings to types.
-/
import category_theory.instances.C... |
da686cbfac21d8e25e198faa048d99318393d1a1 | c777c32c8e484e195053731103c5e52af26a25d1 | /src/analysis/complex/upper_half_plane/topology.lean | c441e99fcfe93c2d0e24fc2545eeacef411bb5f0 | [
"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 | 2,859 | lean | /-
Copyright (c) 2022 Yury G. Kudryashov. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Yury G. Kudryashov
-/
import analysis.complex.upper_half_plane.basic
import analysis.convex.contractible
import analysis.convex.normed
import analysis.convex.complex
import analysi... |
d6f8447e8e2cc13b8aef50064448fa21c88a5550 | bb31430994044506fa42fd667e2d556327e18dfe | /src/algebra/group/basic.lean | 6740b509dae66f2821c84b1bb0355ada13e87f93 | [
"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 | 21,588 | 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, Simon Hudon, Mario Carneiro
-/
import algebra.group.defs
/-!
# Basic lemmas about semigroups, monoids, and groups
> THIS FILE IS SYNCHRONIZED WITH M... |
0ad795589635c1e65c4708654e784da4f0fe2e46 | a6b711a4e8db20755026231f7ed529a9014b2b6d | /ZZ_IGNORE/S17/class-s17/FinalExam/FinalExam.lean | 6a540b924a84d71cde4f77b53e446e3c774ab5b5 | [] | no_license | chaseboettner/cs-dm-1 | b67d4a7e86f56bce59d2af115503769749d423b2 | 80b35f2957ffaa45b8b7a4479a3570a2d6eb4db0 | refs/heads/master | 1,585,367,603,488 | 1,536,235,675,000 | 1,536,235,675,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 4,071 | lean | /-
PART I: LOGIC AND PROOF USING THE LEAN PROVER
This section is worth 20% of the exam grade.
There are five problems and one extra credit
problem.
-/
/- PROBLEM #1
Complete the proof by replacing the "sorry" stub
with code to construct a proof of the proposition.
You may want to start by replacing sorry with a
ho... |
4ee9d3d45d1d49a799322d0f20191f21c17863fa | 57c233acf9386e610d99ed20ef139c5f97504ba3 | /src/analysis/calculus/parametric_interval_integral.lean | f454383ad8c77f735ddfd16dda2695f213c664ae | [
"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 | 6,702 | lean | /-
Copyright (c) 2021 Yury Kudryashov. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Yury Kudryashov
-/
import analysis.calculus.parametric_integral
import measure_theory.integral.interval_integral
/-!
# Derivatives of interval integrals depending on parameters
In t... |
7d9ce01ee037a4b189098deafd8ce5677ff2fb2b | 5756a081670ba9c1d1d3fca7bd47cb4e31beae66 | /Mathport/Syntax/Translate/Tactic/Mathlib/Linarith.lean | b05ae4933eacdb23db078816e02c7f4deb1065f2 | [
"Apache-2.0"
] | permissive | leanprover-community/mathport | 2c9bdc8292168febf59799efdc5451dbf0450d4a | 13051f68064f7638970d39a8fecaede68ffbf9e1 | refs/heads/master | 1,693,841,364,079 | 1,693,813,111,000 | 1,693,813,111,000 | 379,357,010 | 27 | 10 | Apache-2.0 | 1,691,309,132,000 | 1,624,384,521,000 | Lean | UTF-8 | Lean | false | false | 1,946 | lean | /-
Copyright (c) 2021 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Mario Carneiro
-/
import Mathport.Syntax.Translate.Tactic.Basic
import Mathport.Syntax.Translate.Tactic.Lean3
open Lean
namespace Mathport.Translate.Tactic
open AST3 Parser
-... |
9b1e4c038ee28131016e2c16d210e229568b3349 | a9d0fb7b0e4f802bd3857b803e6c5c23d87fef91 | /library/init/sigma.lean | 82961d6349d67738eab10cd11ec511a195ebb9f0 | [
"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 | 881 | lean | /-
Copyright (c) 2014 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Author: Leonardo de Moura, Jeremy Avigad, Floris van Doorn
-/
prelude
import init.datatypes init.num init.wf init.logic
definition dpair := @sigma.mk
notation `Σ` binders `, ` r:(scoped... |
fc1f3926da9395b7848f25b0b6fcc08d1bc6816d | 853df553b1d6ca524e3f0a79aedd32dde5d27ec3 | /src/ring_theory/adjoin_root.lean | 85f73107e904a690d53c76f4612313b84e59b783 | [
"Apache-2.0"
] | permissive | DanielFabian/mathlib | efc3a50b5dde303c59eeb6353ef4c35a345d7112 | f520d07eba0c852e96fe26da71d85bf6d40fcc2a | refs/heads/master | 1,668,739,922,971 | 1,595,201,756,000 | 1,595,201,756,000 | 279,469,476 | 0 | 0 | null | 1,594,696,604,000 | 1,594,696,604,000 | null | UTF-8 | Lean | false | false | 4,940 | lean | /-
Copyright (c) 2018 Mario Carneiro. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Mario Carneiro, Chris Hughes
Adjoining roots of polynomials
-/
import data.polynomial
import ring_theory.adjoin
import ring_theory.principal_ideal_domain
/-!
# Adjoining roots of pol... |
1134a650b266f549b735f35045c20ce85b510b33 | 94e33a31faa76775069b071adea97e86e218a8ee | /src/data/nat/lattice.lean | 9317ef18245566e2117e7d16e84cd8fe071f9586 | [
"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 | 7,260 | 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, Floris van Doorn, Gabriel Ebner, Yury Kudryashov
-/
import data.nat.part_enat
import order.conditionally_complete_lattice
/-!
# Conditionally complete linear order str... |
912e2fb1e5d58fc704872a7ff5330803b3fc8c38 | 94637389e03c919023691dcd05bd4411b1034aa5 | /src/inClassNotes/typeclasses/functor.lean | adf5652419ebf1347060e1d07abe3b6aefa41dde | [] | no_license | kevinsullivan/complogic-s21 | 7c4eef2105abad899e46502270d9829d913e8afc | 99039501b770248c8ceb39890be5dfe129dc1082 | refs/heads/master | 1,682,985,669,944 | 1,621,126,241,000 | 1,621,126,241,000 | 335,706,272 | 0 | 38 | null | 1,618,325,669,000 | 1,612,374,118,000 | Lean | UTF-8 | Lean | false | false | 7,603 | lean | /-
Lean provides the following functor typeclass.
class functor (c : Type u → Type v) : Type :=
(map : Π {α β : Type u}, (α → β) → c α → c β)
Key observation: polymorphic type builders, such
as list α and option α, are of type, Type → Type.
-/
#check @list
#check @option
/-
So reasonable values for (c : Type → ... |
768d558bc0aeb29996c0e14e4b1fa51d31725159 | fa02ed5a3c9c0adee3c26887a16855e7841c668b | /src/topology/algebra/group.lean | a22f00ec3fc5d2510c0a9d6e6b31583dca500cf4 | [
"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 | 28,728 | 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
-/
import order.filter.pointwise
import group_theory.quotient_group
import topology.algebra.monoid
import topology.homeomorph
/-!
# The... |
afd3bee674c039223da53d2d89e70be9a1324fc7 | d406927ab5617694ec9ea7001f101b7c9e3d9702 | /src/algebra/category/Group/preadditive.lean | 04317799f588e0b34b70655922ee74e8feb198d0 | [
"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 | 608 | lean | /-
Copyright (c) 2020 Markus Himmel. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Markus Himmel
-/
import algebra.category.Group.basic
import category_theory.preadditive.basic
/-!
# The category of additive commutative groups is preadditive.
-/
open category_theory... |
7ba1a5ee9acaa1a14f42dbfee7ea3424b5577a60 | 94e33a31faa76775069b071adea97e86e218a8ee | /archive/imo/imo1988_q6.lean | 66f901652cc15c61db50b5aaa117fd40e3eb8468 | [
"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 | 13,863 | lean | /-
Copyright (c) 2019 Johan Commelin. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Johan Commelin
-/
import data.nat.prime
import data.rat.defs
import order.well_founded
import tactic.linarith
/-!
# IMO 1988 Q6 and constant descent Vieta jumping
Question 6 of IMO1... |
a411853920e66b1cf90093f95646931443613f4e | 9dd3f3912f7321eb58ee9aa8f21778ad6221f87c | /tests/lean/run/eval_expr_partial.lean | 0d2a9f0f4b274fb6edc510970f6e3b1fdcb5a6ad | [
"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 | 78 | lean | open tactic
run_command to_expr `(bit0 1) >>= eval_expr nat >>= tactic.trace
|
31639294105d1a5977f5988a7d1c442aad23422f | fa02ed5a3c9c0adee3c26887a16855e7841c668b | /src/data/set/disjointed.lean | 34c9083ef133afae36bc437d2ebd47bfe8052b46 | [
"Apache-2.0"
] | permissive | jjgarzella/mathlib | 96a345378c4e0bf26cf604aed84f90329e4896a2 | 395d8716c3ad03747059d482090e2bb97db612c8 | refs/heads/master | 1,686,480,124,379 | 1,625,163,323,000 | 1,625,163,323,000 | 281,190,421 | 2 | 0 | Apache-2.0 | 1,595,268,170,000 | 1,595,268,169,000 | null | UTF-8 | Lean | false | false | 5,371 | 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
-/
import data.set.lattice
import tactic.wlog
/-!
# Relations holding pairwise and consecutive differences of sets
This file defines pairwise relations and a way to ma... |
0755b9ecb8a9ae48e390cec8e765ad8b32c45d5c | 38bf3fd2bb651ab70511408fcf70e2029e2ba310 | /src/category_theory/limits/shapes/binary_products.lean | 6187c6d6f2ef2e4e92e7f640a7b06aab02bbcf2d | [
"Apache-2.0"
] | permissive | JaredCorduan/mathlib | 130392594844f15dad65a9308c242551bae6cd2e | d5de80376088954d592a59326c14404f538050a1 | refs/heads/master | 1,595,862,206,333 | 1,570,816,457,000 | 1,570,816,457,000 | 209,134,499 | 0 | 0 | Apache-2.0 | 1,568,746,811,000 | 1,568,746,811,000 | null | UTF-8 | Lean | false | false | 7,623 | lean | /-
Copyright (c) 2019 Scott Morrison. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Scott Morrison
-/
import category_theory.limits.shapes.finite_products
import category_theory.limits.shapes.terminal
import category_theory.discrete_category
/-!
# Binary (co)products... |
a2074da94e2aecb469840829b70aa0a4c7637f95 | 8cae430f0a71442d02dbb1cbb14073b31048e4b0 | /src/topology/algebra/star.lean | d05c702d09460f8d89a8bd92b04ac28c047a98fe | [
"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,167 | lean | /-
Copyright (c) 2022 Eric Wieser. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Eric Wieser
-/
import algebra.star.pi
import algebra.star.prod
import topology.algebra.constructions
import topology.continuous_function.basic
/-!
# Continuity of `star`
> THIS FILE IS ... |
f7bc432f54bf043bfe26e3472c079d74bdd5a6e8 | 7cdf3413c097e5d36492d12cdd07030eb991d394 | /world_experiments/world8/level10.lean | fe8a3560dc68a4d3d7f3c6aaec6b4bc259a5bc8e | [] | no_license | alreadydone/natural_number_game | 3135b9385a9f43e74cfbf79513fc37e69b99e0b3 | 1a39e693df4f4e871eb449890d3c7715a25c2ec9 | refs/heads/master | 1,599,387,390,105 | 1,573,200,587,000 | 1,573,200,691,000 | 220,397,084 | 0 | 0 | null | 1,573,192,734,000 | 1,573,192,733,000 | null | UTF-8 | Lean | false | false | 671 | lean | import game.world3.level9andahalf -- hide
import game.world2.level11 -- random import -- succ ne zero -- hide
import game.world2.level13 -- add_left_eq_zero -- hide
namespace mynat -- hide
/-
# Multiplication World
## Level 10: `eq_zero_or_eq_zero_of_mul_eq_zero`
A variant on the previous level.
-/
/- Theorem
If $... |
cf4c2c4d47d68420a785543cd5a0f122111bf6f9 | 302c785c90d40ad3d6be43d33bc6a558354cc2cf | /src/geometry/euclidean/basic.lean | d0a575eb917102196166fb8c8f000a8fa80e0dfe | [
"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 | 45,287 | lean | /-
Copyright (c) 2020 Joseph Myers. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Joseph Myers
-/
import analysis.normed_space.inner_product
import algebra.quadratic_discriminant
import analysis.normed_space.add_torsor
import data.matrix.notation
import linear_algebra... |
9dfe1d67f25b2e51be6766efaad8501f6eb0782e | fa02ed5a3c9c0adee3c26887a16855e7841c668b | /src/category_theory/sites/types.lean | 98968d43ab3b71815bddea2e43a50e51b4440dce | [
"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 | 7,539 | 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 category_theory.sites.canonical
import category_theory.sites.sheaf_of_types
/-!
# Grothendieck Topology and Sheaves on the Category of Types
In this file we define a ... |
f4d55f56ab4d05decd26d5ac070e21cfcab2061e | 07c6143268cfb72beccd1cc35735d424ebcb187b | /src/data/real/nnreal.lean | 1bb44eae3357fd94d9b184d6f7cf7a55ac2d0946 | [
"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 | 25,066 | lean | /-
Copyright (c) 2018 Johan Commelin. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Johan Commelin
Nonnegative real numbers.
-/
import data.real.basic order.lattice algebra.field
noncomputable theory
open_locale classical
/-- Nonnegative real numbers. -/
def nnre... |
12c920082ffbc7b4d9e55f1c86189bfe2bf228d4 | 9be442d9ec2fcf442516ed6e9e1660aa9071b7bd | /src/Lean/Meta/Tactic/Injection.lean | 511e8f1f0b9a2acb3d8e8fda3c0f8929b60272dd | [
"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 | 4,941 | lean | /-
Copyright (c) 2020 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Leonardo de Moura
-/
import Lean.Meta.AppBuilder
import Lean.Meta.MatchUtil
import Lean.Meta.Tactic.Clear
import Lean.Meta.Tactic.Subst
import Lean.Meta.Tactic.Assert
import Lea... |
8744de264ecc69ee5df0ab64e87655760632b228 | 32c054a763e4aa96bcb6e8bc87775e0f403a1804 | /src/spec/freevar.lean | 864a7b168fca2632b9e0a3f3b502f32fd8c1c9ef | [
"LicenseRef-scancode-generic-cla",
"MIT"
] | permissive | Claudiusgonzo/AliveInLean | 7fac3f82722c27acc5551260ea12a36519f6e24e | a21bfb90dee0c6c6e00a955b6de92c631198c5ba | refs/heads/master | 1,635,381,727,801 | 1,555,783,536,000 | 1,555,783,536,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 43,544 | lean | -- Copyright (c) Microsoft Corporation. All rights reserved.
-- Licensed under the MIT license.
import ..smtexpr
import ..bitvector
import ..irsem
import .spec
import .lemmas
import .irstate
import smt2.syntax
import system.io
import init.meta.tactic
import init.meta.interactive
namespace spec
open irsem
def env.ad... |
0265bb95a80e2d7145fd57e8550fc108131d77af | b7f22e51856f4989b970961f794f1c435f9b8f78 | /tests/lean/run/obtain_tac.lean | fff5fd55b14a5d9f6fb4c724d9b1a72851dd8c93 | [
"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 | 132 | lean | example (a b : Prop) : a ∧ b → b ∧ a :=
begin
intro Hab,
obtain Ha Hb, from Hab,
show b ∧ a, from and.intro Hb Ha
end
|
7f891f63b9ff88356358b9b13b451a4094f8864a | 94e33a31faa76775069b071adea97e86e218a8ee | /src/analysis/hofer.lean | f428bb649b91311f8ec604455ac5fba6a92488a1 | [
"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 | 4,602 | lean | /-
Copyright (c) 2020 Patrick Massot. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Patrick Massot
-/
import analysis.specific_limits.basic
/-!
# Hofer's lemma
This is an elementary lemma about complete metric spaces. It is motivated by an
application to the bubblin... |
bd8fefec396066963e8d196aab28fa7905683f13 | 1abd1ed12aa68b375cdef28959f39531c6e95b84 | /src/ring_theory/polynomial/symmetric.lean | b39b8900e6982c85bda17c85d37d67f7eda5ac09 | [
"Apache-2.0"
] | permissive | jumpy4/mathlib | d3829e75173012833e9f15ac16e481e17596de0f | af36f1a35f279f0e5b3c2a77647c6bf2cfd51a13 | refs/heads/master | 1,693,508,842,818 | 1,636,203,271,000 | 1,636,203,271,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 8,172 | lean | /-
Copyright (c) 2020 Hanting Zhang. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Hanting Zhang, Johan Commelin
-/
import data.fintype.card
import data.mv_polynomial.rename
import data.mv_polynomial.comm_ring
import algebra.algebra.subalgebra
/-!
# Symmetric Polynom... |
52af078a542ece01e899af77541f24560ce6e6db | e61a235b8468b03aee0120bf26ec615c045005d2 | /stage0/src/Init/Lean/Util/MonadCache.lean | 9db30b47650ab12a4295ae8a0e956d3374f48917 | [
"Apache-2.0"
] | permissive | SCKelemen/lean4 | 140dc63a80539f7c61c8e43e1c174d8500ec3230 | e10507e6615ddbef73d67b0b6c7f1e4cecdd82bc | refs/heads/master | 1,660,973,595,917 | 1,590,278,033,000 | 1,590,278,033,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 4,919 | 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.Control.Reader
import Init.Control.EState
import Init.Data.HashMap
namespace Lean
/-- Interface for caching results. -/
class MonadCac... |
fa3029caecaabe66a023ba63ca50f1c0253889dc | 3dc4623269159d02a444fe898d33e8c7e7e9461b | /.github/workflows/project_1_a_decrire/foncteur/structure_comax.lean | f82e94fa362917ba3bec2d518cf7416fd370df2a | [] | no_license | Or7ando/lean | cc003e6c41048eae7c34aa6bada51c9e9add9e66 | d41169cf4e416a0d42092fb6bdc14131cee9dd15 | refs/heads/master | 1,650,600,589,722 | 1,587,262,906,000 | 1,587,262,906,000 | 255,387,160 | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 8,158 | lean | import tactic.ring
import tactic.ring_exp
import data.finset
import data.finsupp
import data.nat.choose
import algebra.category.CommRing.basic
import data.fin
import data.finset
open CommRing
open finset
--- Goal : understand the notion of structure with a little exemple !
namespace co_maxi
structure... |
5f5f2693bdfa760d6195cebcba6149aab66d26f7 | c777c32c8e484e195053731103c5e52af26a25d1 | /src/algebraic_geometry/open_immersion.lean | 87d243476e371d239696af651d23b47d888a2b6e | [
"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 | 86,250 | lean | /-
Copyright (c) 2021 Andrew Yang. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Andrew Yang
-/
import algebraic_geometry.presheafed_space.has_colimits
import category_theory.limits.shapes.binary_products
import category_theory.limits.preserves.shapes.pullbacks
import... |
f302508fc2c3fb21fb51da869604b86ecaac3546 | 29cc89d6158dd3b90acbdbcab4d2c7eb9a7dbf0f | /Exercises 7/24_homework_sheet.lean | 737b83240fe94554152cabe9c8e5081eecb1a3e7 | [] | no_license | KjellZijlemaker/Logical_Verification_VU | ced0ba95316a30e3c94ba8eebd58ea004fa6f53b | 4578b93bf1615466996157bb333c84122b201d99 | refs/heads/master | 1,585,966,086,108 | 1,549,187,704,000 | 1,549,187,704,000 | 155,690,284 | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 7,522 | lean | /- Homework 2.4: Functional Programming — Metaprogramming -/
open expr
open tactic
open declaration
/- Question 1: A `safe` tactic -/
/- We develop a tactic that applies all safe introduction and elimination rules for the connectives
and quantifiers exhaustively. A rule is said to be _safe_ if it always gives rise t... |
ffa7971152eeac0e332d35518b51c50fe92b4d15 | 8cae430f0a71442d02dbb1cbb14073b31048e4b0 | /src/data/multiset/basic.lean | f58ff719fad968dc3f44eb2473941d9f25fba270 | [
"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 | 98,072 | lean | /-
Copyright (c) 2015 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Mario Carneiro
-/
import data.set.list
import data.list.perm
/-!
# Multisets
> THIS FILE IS SYNCHRONIZED WITH MATHLIB4.
> Any changes to this file require a corresponding PR t... |
d7d72707648f47727040f71ba335c5ec201a01e0 | 59aed81a2ce7741e690907fc374be338f4f88b6f | /src/math-688/lectures/lec-18.lean | 888f9abc3d41f48d914bd953a88cbaea4649f9b2 | [] | no_license | agusakov/math-688-lean | c84d5e1423eb208a0281135f0214b91b30d0ef48 | 67dc27ebff55a74c6b5a1c469ba04e7981d2e550 | refs/heads/main | 1,679,699,340,788 | 1,616,602,782,000 | 1,616,602,782,000 | 332,894,454 | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 85 | lean | /- 9 Oct 2019 -/
-- equitable partitions
-- quotient matrix
-- characteristic matrix |
04d060ce69569020e57aa4080bf4bef812b9407f | 86f6f4f8d827a196a32bfc646234b73328aeb306 | /examples/logic/unnamed_482.lean | fa182bd41a7e28eaa6e2519fbee9f5e1dccf0e5a | [] | 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 | 265 | lean | variables {α : Type*} (r s t : set α)
example : s ⊆ s :=
by { intros x xs, exact xs }
theorem subset.refl : s ⊆ s := λ x xs, xs
example : r ⊆ s → s ⊆ t → r ⊆ t :=
begin
sorry
end
theorem subset.trans : r ⊆ s → s ⊆ t → r ⊆ t :=
sorry |
e691ade6df12b96cdceae25e1057d1d13b2c937d | b7f22e51856f4989b970961f794f1c435f9b8f78 | /tests/lean/run/blast_cc1.lean | 0abd9f4540ae8cb8946ef7473c861dacadca73d0 | [
"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 | 569 | lean | import data.list
constant f {A : Type} : A → A → A
constant g : nat → nat
set_option blast.strategy "cc"
example (a b c : nat) : a = b → g a == g b :=
by blast
example (a b c : nat) : a = b → c = b → f (f a b) (g c) = f (f c a) (g b) :=
by blast
example (a b c d e x y : nat) : a = b → a = x → b = y → c = d → c = e ... |
b087b5b048de01459de255e865dd6131cdb873ab | 4727251e0cd73359b15b664c3170e5d754078599 | /src/data/num/bitwise.lean | 7f3d7c9324e8f993ae065f3d1b50af721514d202 | [
"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,971 | lean | /-
Copyright (c) 2014 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Mario Carneiro
-/
import data.num.basic
import data.bitvec.core
/-!
# Bitwise operations using binary representation of integers
## Definitions
* bitwise operations for `pos_... |
9cf0b554756f631d6c421b0aefd42e5d4dbc001f | 6e44fda625e48340c6ffc7b1109a9e3b208e5384 | /src/metric_spaces/lattice.lean | 08098a8265882f695e0ac792382331f0a0202be3 | [] | 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 | 1,783 | lean | import metric_spaces.basic
/--
In this file we showed that the `closed_set` form a Galois insertion with
`Closure` being its Galois connection, and with that, we conclude `closed_set`
form a `complete_lattice`.
- `closed_set` is defined to be a closed subset of a metric space
- `Closure` is defined to be a `closed_se... |
c1068f0bce55c0e226e8cd8511f7eca02c9b019f | 618003631150032a5676f229d13a079ac875ff77 | /src/category_theory/limits/shapes/images.lean | c13d4a15a6ec75aedbab95126c3522872a051b29 | [
"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 | 18,931 | lean | /-
Copyright (c) 2019 Scott Morrison. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Scott Morrison, Markus Himmel
-/
import category_theory.limits.shapes.equalizers
import category_theory.limits.shapes.strong_epi
/-!
# Categorical images
We define the categorical im... |
84cce86c513fba9466a4bb466a4b91fbfafcc4b2 | 2eab05920d6eeb06665e1a6df77b3157354316ad | /src/data/list/forall2.lean | 7dae13805a178dea2323c3ce1bb0eda16b42b070 | [
"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 | 13,621 | lean | /-
Copyright (c) 2018 Mario Carneiro. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Mario Carneiro, Johannes Hölzl
-/
import data.list.basic
/-!
# Double universal quantification on a list
This file provides an API for `list.forall₂` (definition in `data.list.defs`)... |
3af4c787ad48f64e5759c8bd5ef7a071d4d8484a | 8cb37a089cdb4af3af9d8bf1002b417e407a8e9e | /tests/lean/run/coe_fn_mvar.lean | 5322fdb0ecdb0f1191ddcec78ee72f357596effd | [
"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 | 1,035 | lean | structure hom (α β : Type*) := (f : α → β)
instance {α β} : has_coe_to_fun (hom α β) := ⟨_, hom.f⟩
def frob {α β} (a : α) : hom β (α × β) := ⟨λ b, (a, b)⟩
-- `(frob 1 : hom ?m_1 (?m_2 × ?m_1))` has metavariables in the type
def foo : ℤ × ℤ := frob 1 2
example : foo = (1, 2) := rfl
-- backport elabissues/Reid1.lean... |
2717487de2889d3c2b03995d0cb3689bf45dd489 | d406927ab5617694ec9ea7001f101b7c9e3d9702 | /src/data/finset/interval.lean | 3f1181ef4939170d58e35b7f2bbc6082a8e0d516 | [
"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,938 | 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
/-!
# Intervals of finsets as finsets
This file provides the `locally_finite_order` instance for `finset α` and calculates the cardina... |
3edf9f1f5ea4a7bedcfbd966c85ffa67b63daa5d | 6432ea7a083ff6ba21ea17af9ee47b9c371760f7 | /src/Init/Hints.lean | e8a2904e63bb280d8ee484f9117a7f6575fbce87 | [
"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 | 371 | 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
-/
prelude
import Init.NotationExtra
/- Hint for making sure `Not p` is definitionally equal to `p → False` even when
`TransparencyMode.reducible` -/
unif_... |
b9284cbeb2f1f0ae517b3655683a958529687573 | 3b15c7b0b62d8ada1399c112ad88a529e6bfa115 | /stage0/src/Lean/Meta/Tactic/Cleanup.lean | a970fb57f3b41f1351d7c732c717658cb8be4ddd | [
"Apache-2.0"
] | permissive | stephenbrady/lean4 | 74bf5cae8a433e9c815708ce96c9e54a5caf2115 | b1bd3fc304d0f7bc6810ec78bfa4c51476d263f9 | refs/heads/master | 1,692,621,473,161 | 1,634,308,743,000 | 1,634,310,749,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 2,563 | 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.Meta.CollectFVars
import Lean.Meta.Tactic.Clear
namespace Lean.Meta
/--
Auxiliary tactic for cleaning the local context. It removes local de... |
4fb1da1446807a690b75555a0d1692e9c403de9e | ac89c256db07448984849346288e0eeffe8b20d0 | /tests/lean/run/simp7.lean | 8e10267936f4759852f6537417bf9de81db79112 | [
"Apache-2.0"
] | permissive | chepinzhang/lean4 | 002cc667f35417a418f0ebc9cb4a44559bb0ccac | 24fe2875c68549b5481f07c57eab4ad4a0ae5305 | refs/heads/master | 1,688,942,838,326 | 1,628,801,942,000 | 1,628,801,995,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 1,404 | lean | def f (x : α) := x
theorem ex1 (a : α) (b : List α) : f (a::b = []) = False :=
by simp [f]
def length : List α → Nat
| [] => 0
| a::as => length as + 1
theorem ex2 (a b c : α) (as : List α) : length (a :: b :: as) > length as := by
simp [length]
apply Nat.lt.step
apply Nat.lt_succ_self
def fact : Nat... |
88d01d11ed636ac58999bb67dde5dcbbf25654a9 | cf39355caa609c0f33405126beee2739aa3cb77e | /tests/lean/no_coe.lean | cca344d3e6ef2799295213023aad8fb8ed59dd58 | [
"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 | 126 | lean | #check if tt then 1 else 0
set_option elaborator.coercions false
#check if tt then 1 else 0 -- Error coercions are disabled
|
c35366d899a5abb32f49520c64464b59996ee9fd | 957a80ea22c5abb4f4670b250d55534d9db99108 | /library/init/meta/name.lean | f146b933758a8a5e7004564aa9a0fcbffc07ddec | [
"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 | 3,401 | lean | /-
Copyright (c) 2016 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Leonardo de Moura
-/
prelude
import init.data.ordering init.coe init.data.to_string
/-- Reflect a C++ name object. The VM replaces it with the C++ implementation. -/
inductive ... |
98319a3115e5e04ee9088966d1e2339d614382a7 | cf39355caa609c0f33405126beee2739aa3cb77e | /tests/lean/run/1253.lean | b3f1543b7a8d4064a2863b9807d58af6b147942d | [
"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 | 471 | lean | open list
lemma induction₂ {α₁ α₂ : Type*} (p : list α₁ → list α₂ → Prop)
(h_base : p [] [])
(h_step : ∀ {xs₁ xs₂}, p xs₁ xs₂ → (∀ x₁ x₂, p (x₁::xs₁) (x₂::xs₂))) :
Π (xs₁ : list α₁) (xs₂ : list α₂) (H_same_len : length xs₁ = length xs₂), p xs₁ xs₂
| [] [] h := h_ba... |
9e8a3ed25f312d1320d13e4a1c920f1fe0360538 | 5756a081670ba9c1d1d3fca7bd47cb4e31beae66 | /Mathport/Syntax/Translate/Tactic/Mathlib/Clear.lean | 142544d2ef6f37612c4c258c1d8e601c28b80b4c | [
"Apache-2.0"
] | permissive | leanprover-community/mathport | 2c9bdc8292168febf59799efdc5451dbf0450d4a | 13051f68064f7638970d39a8fecaede68ffbf9e1 | refs/heads/master | 1,693,841,364,079 | 1,693,813,111,000 | 1,693,813,111,000 | 379,357,010 | 27 | 10 | Apache-2.0 | 1,691,309,132,000 | 1,624,384,521,000 | Lean | UTF-8 | Lean | false | false | 512 | lean | /-
Copyright (c) 2021 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Mario Carneiro
-/
import Mathport.Syntax.Translate.Tactic.Basic
import Mathport.Syntax.Translate.Tactic.Lean3
open Lean
namespace Mathport.Translate.Tactic
open Parser
-- # t... |
6950e3de0abd8c930b6d535b94d07f77dde4b797 | 61ccc57f9d72048e493dd6969b56ebd7f0a8f9e8 | /src/topology/metric_space/antilipschitz.lean | b95a2ca6e4997121acffc973c7bf189945ca1781 | [
"Apache-2.0"
] | permissive | jtristan/mathlib | 375b3c8682975df28f79f53efcb7c88840118467 | 8fa8f175271320d675277a672f59ec53abd62f10 | refs/heads/master | 1,651,072,765,551 | 1,588,255,641,000 | 1,588,255,641,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 5,457 | 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 topology.metric_space.lipschitz
/-!
# Antilipschitz functions
We say that a map `f : α → β` between two (extended) metric spaces is
`antilipschitz_with K`,... |
9bbb82f84bbcfe9984b56b81e69cf20c75efc0f4 | 94e33a31faa76775069b071adea97e86e218a8ee | /src/category_theory/limits/constructions/over/default.lean | 09025a23cc049bc4eb3b804e37d32ed50ab27221 | [
"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 | 2,779 | 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.limits.connected
import category_theory.limits.constructions.over.products
import category_theory.limits.constructio... |
86181798cef04d03b685189306abf790e6546046 | d406927ab5617694ec9ea7001f101b7c9e3d9702 | /src/analysis/asymptotics/specific_asymptotics.lean | ef8af93edbb0a260e69b741969c537b650ab14dd | [
"Apache-2.0"
] | permissive | alreadydone/mathlib | dc0be621c6c8208c581f5170a8216c5ba6721927 | c982179ec21091d3e102d8a5d9f5fe06c8fafb73 | refs/heads/master | 1,685,523,275,196 | 1,670,184,141,000 | 1,670,184,141,000 | 287,574,545 | 0 | 0 | Apache-2.0 | 1,670,290,714,000 | 1,597,421,623,000 | Lean | UTF-8 | Lean | false | false | 6,913 | lean | /-
Copyright (c) 2021 Anatole Dedecker. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Anatole Dedecker
-/
import analysis.normed.order.basic
import analysis.asymptotics.asymptotics
/-!
# A collection of specific asymptotic results
This file contains specific lemmas ... |
699a4481ad6c02dcb8bf8b7def9a175b337ec0a3 | 3dc4623269159d02a444fe898d33e8c7e7e9461b | /.github/workflows/geo/group_objet/group_obj_def.lean | c7ee0a67761d53feea769c8f4c43ddcbbfdf0558 | [] | no_license | Or7ando/lean | cc003e6c41048eae7c34aa6bada51c9e9add9e66 | d41169cf4e416a0d42092fb6bdc14131cee9dd15 | refs/heads/master | 1,650,600,589,722 | 1,587,262,906,000 | 1,587,262,906,000 | 255,387,160 | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 9,768 | lean | import category_theory.limits.limits
import category_theory.limits.shapes
import category_theory.yoneda
import category_theory.opposites
import category_theory.types
import category_theory.limits.types
run_cmd mk_simp_attr `PRODUCT ----- BOF BOF
meta def PRODUCT_CAT : tactic unit :=
`[ try {simp only with PROD... |
3a4b8f2c393435208eaa6235a6110a80a747d365 | a45212b1526d532e6e83c44ddca6a05795113ddc | /src/data/mv_polynomial.lean | 55c7a8b47f75a0b2d83a25312fa33742d1604d1b | [
"Apache-2.0"
] | permissive | fpvandoorn/mathlib | b21ab4068db079cbb8590b58fda9cc4bc1f35df4 | b3433a51ea8bc07c4159c1073838fc0ee9b8f227 | refs/heads/master | 1,624,791,089,608 | 1,556,715,231,000 | 1,556,715,231,000 | 165,722,980 | 5 | 0 | Apache-2.0 | 1,552,657,455,000 | 1,547,494,646,000 | Lean | UTF-8 | Lean | false | false | 29,516 | 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, Johan Commelin, Mario Carneiro
Multivariate Polynomial
-/
import algebra.ring
import data.finsupp data.polynomial data.equiv.algebra
open set function finsupp lattice... |
92769ecc187eb075002fb4a8a9419b97e7562fa6 | b7f22e51856f4989b970961f794f1c435f9b8f78 | /library/theories/number_theory/irrational_roots.lean | ed95e7a714e16e746830bedb09dc4b7bba371f69 | [
"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 | 7,629 | lean | /-
Copyright (c) 2015 Jeremy Avigad. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Author: Jeremy Avigad
A proof that if n > 1 and a > 0, then the nth root of a is irrational, unless a is a perfect nth power.
-/
import data.rat .prime_factorization
open eq.ops
/- First, a te... |
208af555a3422f9c54630981f865e80bb0745c32 | 8cae430f0a71442d02dbb1cbb14073b31048e4b0 | /src/analysis/calculus/fderiv_measurable.lean | d3471ac69dd07e7bd346343e4f6a3884651c2ee8 | [
"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 | 41,149 | 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, Yury Kudryashov
-/
import analysis.calculus.deriv.basic
import measure_theory.constructions.borel_space.continuous_linear_map
import measure_theory.function.stron... |
003b2f71be04ccd44c9a8748852d8dfdd4d43ec3 | 4fa161becb8ce7378a709f5992a594764699e268 | /src/data/padics/padic_norm.lean | b51e129584ca289d1b220260ea03ad3a05c9bef9 | [
"Apache-2.0"
] | permissive | laughinggas/mathlib | e4aa4565ae34e46e834434284cb26bd9d67bc373 | 86dcd5cda7a5017c8b3c8876c89a510a19d49aad | refs/heads/master | 1,669,496,232,688 | 1,592,831,995,000 | 1,592,831,995,000 | 274,155,979 | 0 | 0 | Apache-2.0 | 1,592,835,190,000 | 1,592,835,189,000 | null | UTF-8 | Lean | false | false | 18,611 | lean | /-
Copyright (c) 2018 Robert Y. Lewis. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Robert Y. Lewis
-/
import data.rat
import algebra.gcd_domain
import algebra.field_power
import ring_theory.multiplicity
import data.real.cau_seq
/-!
# p-adic norm
This file defines ... |
b8457237f8e42f16e565b8f79ef8812c5c5c8592 | 9dc8cecdf3c4634764a18254e94d43da07142918 | /src/topology/tietze_extension.lean | 8a5e96357448b03f82157fda00c4c16f233ddf88 | [
"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 | 22,782 | lean | /-
Copyright (c) 2021 Yury G. Kudryashov. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Yury G. Kudryashov
-/
import data.set.intervals.monotone
import topology.algebra.order.monotone_continuity
import topology.urysohns_bounded
/-!
# Tietze extension theorem
In this... |
120f1a844370eb1be3b490c6e12b9e0be196bbb6 | 35677d2df3f081738fa6b08138e03ee36bc33cad | /src/data/nat/basic.lean | 5f2b22ec4c8e0c27a26198d836c5554988982284 | [
"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 | 59,711 | lean | /-
Copyright (c) 2014 Floris van Doorn. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Floris van Doorn, Leonardo de Moura, Jeremy Avigad, Mario Carneiro
-/
import logic.basic algebra.ordered_ring data.option.basic algebra.order_functions
/-!
# Basic operations on the... |
171f62a5872a8bfb296080d1d428934c37c14cd1 | 4efff1f47634ff19e2f786deadd394270a59ecd2 | /src/linear_algebra/affine_space/combination.lean | 146882b11c8a866ec865711e56ed0feb90ad6c88 | [
"Apache-2.0"
] | permissive | agjftucker/mathlib | d634cd0d5256b6325e3c55bb7fb2403548371707 | 87fe50de17b00af533f72a102d0adefe4a2285e8 | refs/heads/master | 1,625,378,131,941 | 1,599,166,526,000 | 1,599,166,526,000 | 160,748,509 | 0 | 0 | Apache-2.0 | 1,544,141,789,000 | 1,544,141,789,000 | null | UTF-8 | Lean | false | false | 30,044 | lean | /-
Copyright (c) 2020 Joseph Myers. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Author: Joseph Myers.
-/
import algebra.invertible
import data.indicator_function
import linear_algebra.affine_space.basic
import linear_algebra.finsupp
noncomputable theory
open_locale big_oper... |
f73e3773b665531365686516842d316d7bf39058 | b00eb947a9c4141624aa8919e94ce6dcd249ed70 | /tests/lean/run/meta7.lean | 9b86b1d6aea8c939d347c2cb6ad7d789fa4d69e6 | [
"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,859 | lean | import Lean.Meta
open Lean
open Lean.Meta
partial def fact : Nat → Nat
| 0 => 1
| n+1 => (n+1)*fact n
set_option trace.Meta.debug true
set_option trace.Meta.check false
def print (msg : MessageData) : MetaM Unit :=
trace[Meta.debug] msg
def checkM (x : MetaM Bool) : MetaM Unit :=
unless (← x) do throwError "chec... |
158d1382ff15a878c56544092bbf72eebe8fd8a5 | 0845ae2ca02071debcfd4ac24be871236c01784f | /library/init/lean/compiler/ir/default.lean | 739b39043cd58683d6ffe2e1ed9c0bf4bbf6f37c | [
"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 | 1,842 | 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.compiler.ir.basic
import init.lean.compiler.ir.format
import init.lean.compiler.ir.compilerm
import init.lean.compiler.ir.pushproj
... |
ddb5d4029cfb9d674276d08090aac0bb02b50148 | a9d0fb7b0e4f802bd3857b803e6c5c23d87fef91 | /library/data/set/finite.lean | 2a01c6c06687bdc9708840ed53ad532ba605594b | [
"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 | 8,856 | lean | /-
Copyright (c) 2015 Jeremy Avigad. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Author: Jeremy Avigad
The notion of "finiteness" for sets. This approach is not computational: for example, just because
an element s : set A satsifies finite s doesn't mean that we can com... |
5d98ad786a1e210cfa9b6b4be650771f7dad25eb | fa02ed5a3c9c0adee3c26887a16855e7841c668b | /src/data/real/golden_ratio.lean | 1f3615465fb26ef1d8608b7a791bfacea37ee3c0 | [
"Apache-2.0"
] | permissive | jjgarzella/mathlib | 96a345378c4e0bf26cf604aed84f90329e4896a2 | 395d8716c3ad03747059d482090e2bb97db612c8 | refs/heads/master | 1,686,480,124,379 | 1,625,163,323,000 | 1,625,163,323,000 | 281,190,421 | 2 | 0 | Apache-2.0 | 1,595,268,170,000 | 1,595,268,169,000 | null | UTF-8 | Lean | false | false | 5,573 | lean | /-
Copyright (c) 2020 Anatole Dedecker. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Anatole Dedecker, Alexey Soloyev, Junyan Xu
-/
import data.real.irrational
import data.nat.fib
import data.matrix.notation
import tactic.ring_exp
import algebra.linear_recurrence
/-... |
29729111d06578a64307c35ec8c05a2e3e9cc688 | 206422fb9edabf63def0ed2aa3f489150fb09ccb | /src/algebra/category/Module/limits.lean | 32a7fb7a96aac7993b04bd0660175b6453609dc0 | [
"Apache-2.0"
] | permissive | hamdysalah1/mathlib | b915f86b2503feeae268de369f1b16932321f097 | 95454452f6b3569bf967d35aab8d852b1ddf8017 | refs/heads/master | 1,677,154,116,545 | 1,611,797,994,000 | 1,611,797,994,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 6,275 | lean | /-
Copyright (c) 2020 Scott Morrison. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Scott Morrison
-/
import algebra.category.Module.basic
import algebra.category.Group.limits
import algebra.direct_limit
/-!
# The category of R-modules has all limits
Further, these ... |
7f9cba81b616f77eaa7725b88ec7c7c38518232c | 4d2583807a5ac6caaffd3d7a5f646d61ca85d532 | /src/field_theory/abel_ruffini.lean | 724a5a46777a808b8f3f8dd8129f415369bff2b8 | [
"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 | 17,327 | lean | /-
Copyright (c) 2020 Thomas Browning and Patrick Lutz. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Thomas Browning, Patrick Lutz
-/
import group_theory.solvable
import field_theory.polynomial_galois_group
import ring_theory.roots_of_unity
/-!
# The Abel-Ruffini T... |
d2d8af823188efd49980b3d2ed24a2d2280ba15e | be5348f86d661459153802318209304b793c0e2a | /src/insertion.lean | 22740f1663c2c93d66f13b98ca3da3d0492fc5c9 | [] | no_license | reglayass/lean-avl | 6b758c7708bdb3316b1b97ada3e3f259b49da58a | c7bffa75d7548e5ff8cdd7d69f5a58499f883df1 | refs/heads/master | 1,692,297,536,477 | 1,633,946,864,000 | 1,633,946,864,000 | 340,881,572 | 4 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 9,737 | lean | import definitions rotations forall_keys tactic.linarith tactic.omega
set_option pp.generalized_field_notation false
universe u
namespace insertion_balanced_lemmas
open btree rotation_lemmas forall_keys_lemmas
variables {α : Type u}
/- Auxilary lemma to show that a previously existing key has the same relation to t... |
412cf9190e79f72a3ccff1037bd03192e71ed8b5 | 55c7fc2bf55d496ace18cd6f3376e12bb14c8cc5 | /src/logic/function/basic.lean | b0a9ccf46b085765d61baf737379f81491dc6652 | [
"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 | 16,131 | 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 logic.basic
import data.option.defs
/-!
# Miscellaneous function constructions and lemmas
-/
universes u v w
namespace function
section
var... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.