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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
1bb7c42fa693088bfe0bc9fabaf3715831d5be7d | 8cae430f0a71442d02dbb1cbb14073b31048e4b0 | /src/algebra/ring/commute.lean | 9241b24a54e7e8e81175e37c2ca0ed0edfda8901 | [
"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,318 | lean | /-
Copyright (c) 2014 Jeremy Avigad. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Jeremy Avigad, Leonardo de Moura, Floris van Doorn, Yury Kudryashov, Neil Strickland
-/
import algebra.ring.semiconj
import algebra.ring.units
import algebra.group.commute
/-!
# Semiri... |
e424672ccb51815f5bc8cd0ba17fca365cbf4839 | 6432ea7a083ff6ba21ea17af9ee47b9c371760f7 | /tests/lean/run/level.lean | 241a5ac270bee1a9090e0e21f908c871289f9737 | [
"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 | 275 | lean | import Lean.Level
open Lean
#eval levelZero == levelZero
#eval levelZero == mkLevelSucc levelZero
#eval mkLevelMax (mkLevelSucc levelZero) levelZero == mkLevelSucc levelZero
#eval mkLevelMax (mkLevelSucc levelZero) levelZero == mkLevelMax (mkLevelSucc levelZero) levelZero
|
f12c4aaea105105c5cba390e4f59a65ec0afeefc | aa3f8992ef7806974bc1ffd468baa0c79f4d6643 | /tests/lean/run/class8.lean | c37b209ff416d7cba304967c258418284be69bc0 | [
"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 | 1,070 | lean | import logic data.prod
open tactic prod
inductive inh [class] (A : Type) : Prop :=
intro : A -> inh A
instance inh.intro
theorem inh_elim {A : Type} {B : Prop} (H1 : inh A) (H2 : A → B) : B
:= inh.rec H2 H1
theorem inh_exists {A : Type} {P : A → Prop} (H : ∃x, P x) : inh A
:= obtain w Hw, from H, inh.intro w
theor... |
a2112c32ba626c6f13555228efa2b12369c8d1c2 | 5fbbd711f9bfc21ee168f46a4be146603ece8835 | /lean/natural_number_game/inequality/01.lean | bdf435bf8c63c8eedfd2ac5a71c7625ea308c042 | [
"LicenseRef-scancode-warranty-disclaimer"
] | no_license | goedel-gang/maths | 22596f71e3fde9c088e59931f128a3b5efb73a2c | a20a6f6a8ce800427afd595c598a5ad43da1408d | refs/heads/master | 1,623,055,941,960 | 1,621,599,441,000 | 1,621,599,441,000 | 169,335,840 | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 78 | lean | lemma one_add_le_self (x : mynat) : x ≤ 1 + x :=
begin
use 1,
ring,
end
|
c4a2ab1adcf26311e85759e2a666dd764fd6b98b | 57c233acf9386e610d99ed20ef139c5f97504ba3 | /src/topology/algebra/ordered/extend_from.lean | 9c299f9a5f5aaa0eccb02c4e2f19b1a80b415f87 | [
"Apache-2.0"
] | permissive | robertylewis/mathlib | 3d16e3e6daf5ddde182473e03a1b601d2810952c | 1d13f5b932f5e40a8308e3840f96fc882fae01f0 | refs/heads/master | 1,651,379,945,369 | 1,644,276,960,000 | 1,644,276,960,000 | 98,875,504 | 0 | 0 | Apache-2.0 | 1,644,253,514,000 | 1,501,495,700,000 | Lean | UTF-8 | Lean | false | false | 3,154 | lean | /-
Copyright (c) 2017 Johannes Hölzl. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Johannes Hölzl, Mario Carneiro, Yury Kudryashov
-/
import topology.algebra.ordered.basic
import topology.extend_from
/-!
# Lemmas about `extend_from` in an order topology.
-/
open fi... |
182d71e2f57442a9ef8b440afaec1b2860a7159f | ff5230333a701471f46c57e8c115a073ebaaa448 | /library/init/category/reader.lean | d40a16c11593cf1a7dfbd651202808bae31bed4d | [
"Apache-2.0"
] | permissive | stanford-cs242/lean | f81721d2b5d00bc175f2e58c57b710d465e6c858 | 7bd861261f4a37326dcf8d7a17f1f1f330e4548c | refs/heads/master | 1,600,957,431,849 | 1,576,465,093,000 | 1,576,465,093,000 | 225,779,423 | 0 | 3 | Apache-2.0 | 1,575,433,936,000 | 1,575,433,935,000 | null | UTF-8 | Lean | false | false | 4,990 | lean | /-
Copyright (c) 2017 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Sebastian Ullrich
The reader monad transformer for passing immutable state.
-/
prelude
import init.category.lift init.category.id init.category.alternative init.category.excep... |
5a95164235b5db4ebe06bedc41c794cb3dd4c375 | 592ee40978ac7604005a4e0d35bbc4b467389241 | /Library/generated/mathscheme-lean/PointedOne.lean | 13e9d331cde276fe3a0a68cb07aa03663cfc4264 | [] | no_license | ysharoda/Deriving-Definitions | 3e149e6641fae440badd35ac110a0bd705a49ad2 | dfecb27572022de3d4aa702cae8db19957523a59 | refs/heads/master | 1,679,127,857,700 | 1,615,939,007,000 | 1,615,939,007,000 | 229,785,731 | 4 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 4,119 | lean | import init.data.nat.basic
import init.data.fin.basic
import data.vector
import .Prelude
open Staged
open nat
open fin
open vector
section PointedOne
structure PointedOne (A : Type) : Type :=
(one : A)
open PointedOne
structure Sig (AS : Type) : Type :=
(oneS : AS)
structure Product... |
a6cb00e33f3cf130ad4fe1b01d0726b6dc52aa46 | 6f510b1ed724f95a55b7d26a8dcd13e1264123dd | /src/page04.lean | c7e70cbdced1649c19a07a50e578059458c7acc9 | [] | no_license | jcommelin/oberharmersbach2019 | adaf2e54ba4eff7c178c933978055ff4d6b0593b | d2cdf780a10baa8502a9b0cae01c7efa318649a6 | refs/heads/master | 1,587,558,516,731 | 1,550,558,213,000 | 1,550,558,213,000 | 170,372,753 | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 736 | lean | import data.nat.prime help
open nat
theorem Euclid (n : ℕ) : ∃ p ≥ n, prime p :=
begin
let N := n.fact + 1,
let p := min_fac N,
use_this p,
have p_is_prime : prime p,
apply min_fac_prime,
have key_fact := fact_pos n,
have now : N > 1 := succ_lt_succ key_fact,
apply ne_of_gt,
assumption,
... |
c40372bba4e8be05abb8063a454b37e633028528 | f3849be5d845a1cb97680f0bbbe03b85518312f0 | /library/tools/super/resolution.lean | 69fd1fc555b361f96412173a7c9bed7378404896 | [
"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,246 | lean | /-
Copyright (c) 2016 Gabriel Ebner. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Gabriel Ebner
-/
import .clause .prover_state .utils
open tactic monad
namespace super
variable gt : expr → expr → bool
variables (ac1 ac2 : derived_clause)
variables (c1 c2 : clause)... |
758a2566d92801307ece4a099ce63e21ed2cd1e0 | 4d2583807a5ac6caaffd3d7a5f646d61ca85d532 | /src/ring_theory/flat.lean | ef941cbe81ca2c1fa2624068eb38e0d6d695845b | [
"Apache-2.0"
] | permissive | AntoineChambert-Loir/mathlib | 64aabb896129885f12296a799818061bc90da1ff | 07be904260ab6e36a5769680b6012f03a4727134 | refs/heads/master | 1,693,187,631,771 | 1,636,719,886,000 | 1,636,719,886,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 2,680 | 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 linear_algebra.dimension
import ring_theory.noetherian
import ring_theory.algebra_tower
/-!
# Flat modules
A module `M` over a commutative ring `R` is *flat... |
8088dca31fa4a1bc4d827a54b057bbf1591ae38c | 46ee5dc7248ccc9ee615639c0c003c05f58975cd | /src/tableau.lean | 60f5740d50c7e3923e85ae963476978236814ea1 | [
"Apache-2.0"
] | permissive | m4lvin/tablean | e61d593b4dde6512245192c577edeb36c48f63c0 | 836202612fc2bfacb5545696412e7d27f7704141 | refs/heads/main | 1,685,613,112,076 | 1,676,755,678,000 | 1,676,755,678,000 | 454,064,275 | 8 | 1 | null | null | null | null | UTF-8 | Lean | false | false | 15,262 | lean | -- TABLEAU
import data.finset.basic
import data.finset.pimage
import algebra.big_operators.order
import tactic
import order.well_founded_set
import syntax
import semantics
import setsimp
open formula
open hasLength
-- Definition 9, page 15
-- A set X is closed iff 0 ∈ X or X contains a formula and its negation.
d... |
45df82ca58f6458f410060876c24f141e003f901 | 36938939954e91f23dec66a02728db08a7acfcf9 | /lean4/deps/x86_semantics/src/X86Semantics/SymbolicBackend.lean | b08179388a54e1a81d7a8cbee836ad4c001bf994 | [] | no_license | pnwamk/reopt-vcg | f8b56dd0279392a5e1c6aee721be8138e6b558d3 | c9f9f185fbefc25c36c4b506bbc85fd1a03c3b6d | refs/heads/master | 1,631,145,017,772 | 1,593,549,019,000 | 1,593,549,143,000 | 254,191,418 | 0 | 0 | null | 1,586,377,077,000 | 1,586,377,077,000 | null | UTF-8 | Lean | false | false | 16,358 | lean |
import SMTLIB.Syntax
import X86Semantics.Common
import X86Semantics.BackendAPI
namespace x86
namespace symbolic
axiom I_am_really_sorry3 : ∀(P : Prop), P
open mc_semantics
open mc_semantics.type
open SMT (sort term smtM command IdGen IdGen.empty)
abbrev bitvec (n : Nat) := term (SMT.sort.bitvec n)
def s_bool ... |
7cb4812207e8370b6c0af539f94149e2fe941e0c | a0e23cfdd129a671bf3154ee1a8a3a72bf4c7940 | /tests/lean/run/setOptionTermTactic.lean | 3195f9d55fdcac9c3bb2a338d46b3d7facb72ae1 | [
"Apache-2.0"
] | permissive | WojciechKarpiel/lean4 | 7f89706b8e3c1f942b83a2c91a3a00b05da0e65b | f6e1314fa08293dea66a329e05b6c196a0189163 | refs/heads/master | 1,686,633,402,214 | 1,625,821,189,000 | 1,625,821,258,000 | 384,640,886 | 0 | 0 | Apache-2.0 | 1,625,903,617,000 | 1,625,903,026,000 | null | UTF-8 | Lean | false | false | 263 | lean | def f (x : Nat) : Nat :=
x + (set_option trace.Meta.synthInstance true in 1)
def g (x : Nat) : Nat := 0 + x.succ
theorem ex : f = g := by
simp only [f]
set_option trace.Meta.Tactic.simp true in simp only [Nat.add_succ, g]
simp only [Nat.zero_add]
rfl
|
de3e32d6eab8375857c8c932bbb5048911712b84 | 22e97a5d648fc451e25a06c668dc03ac7ed7bc25 | /src/data/nat/prime.lean | 456650bc80352bcf14dfdab973af897514908fde | [
"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 | 20,616 | 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, Jeremy Avigad, Mario Carneiro
-/
import data.nat.sqrt
import data.nat.gcd
import algebra.group_power
/-!
# Prime numbers
This file deals with prime numbers... |
fd56f3a4e0211877113d2448ab88089872c98646 | a9d0fb7b0e4f802bd3857b803e6c5c23d87fef91 | /tests/lean/run/univ_bug1.lean | 9477828ce04929ee4fd67219bb3a7ea1ea9d9f4a | [
"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,050 | lean | ----------------------------------------------------------------------------------------------------
--- Copyright (c) 2014 Microsoft Corporation. All rights reserved.
--- Released under Apache 2.0 license as described in the file LICENSE.
--- Author: Jeremy Avigad
------------------------------------------------------... |
e43c22c59751712edaa43065a042fa106a1136ae | 8f209eb34c0c4b9b6be5e518ebfc767a38bed79c | /code/src/internal/phi/eval.lean | e51dd62c653fd21f2531ac8bb0e1f18b8bd78e91 | [] | no_license | hediet/masters-thesis | 13e3bcacb6227f25f7ec4691fb78cb0363f2dfb5 | dc40c14cc4ed073673615412f36b4e386ee7aac9 | refs/heads/master | 1,680,591,056,302 | 1,617,710,887,000 | 1,617,710,887,000 | 311,762,038 | 4 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 1,468 | lean | import tactic
import data.bool
import ...definitions
import ..internal_definitions
variable [GuardModule]
open GuardModule
-- TODO rename Φ_ to Φ.
@[simp]
lemma Φ_eval_or { ty1 ty2: Φ } { env: Env }: (ty1.or ty2).eval env = (ty1.eval env) || (ty2.eval env) :=
by simp [Φ.eval]
@[simp]
lemma Φ_eval_and { ty1 ty2: Φ }... |
8db291182f904d814085ea9c7ec98507e30baf82 | 130c49f47783503e462c16b2eff31933442be6ff | /src/Lean/Server/InfoUtils.lean | 487b62e58e66bbd0c61c9c0233fb17638536466d | [
"Apache-2.0"
] | permissive | Hazel-Brown/lean4 | 8aa5860e282435ffc30dcdfccd34006c59d1d39c | 79e6732fc6bbf5af831b76f310f9c488d44e7a16 | refs/heads/master | 1,689,218,208,951 | 1,629,736,869,000 | 1,629,736,896,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 9,142 | lean | /-
Copyright (c) 2021 Wojciech Nawrocki. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Wojciech Nawrocki
-/
import Lean.DocString
import Lean.Elab.InfoTree
import Lean.Util.Sorry
protected structure String.Range where
start : String.Pos
stop : String.Pos
deri... |
92e7ac6d3a4cce8dcf14ebc2f346a3dca04164c5 | e91b0bc0bcf14cf6e1bfc20ad1f00ad7cfa5fa76 | /src/sheaves/sheaf_of_rings.lean | f84acf5e67b941085c083dc061c7d5088dafecc3 | [] | no_license | kckennylau/lean-scheme | b2de50025289a0339d97798466ef777e1899b0f8 | 8dc513ef9606d2988227490e915b7c7e173a2791 | refs/heads/master | 1,587,165,137,978 | 1,548,172,249,000 | 1,548,172,249,000 | 167,025,881 | 0 | 0 | null | 1,548,173,930,000 | 1,548,173,924,000 | Lean | UTF-8 | Lean | false | false | 734 | lean | import sheaves.sheaf_of_types
import sheaves.presheaf_of_rings
universes u
-- A sheaf of rings is essentially a sheaf of types because we assume that the
-- category of commutative rings has limits (proved later). This is tag 0073.
structure sheaf_of_rings (α : Type u) [T : topological_space α] :=
(F : presh... |
8b2a4299c8b167a878a4bc7664a2b3ff095fbf12 | 74addaa0e41490cbaf2abd313a764c96df57b05d | /Mathlib/order/bounds_auto.lean | f3763fea7866d2289c2892e3ccd32527755ce539 | [] | 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 | 37,407 | lean | /-
Copyright (c) 2017 Johannes Hölzl. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Johannes Hölzl, Yury Kudryashov
-/
import Mathlib.PrePort
import Mathlib.Lean3Lib.init.default
import Mathlib.data.set.intervals.basic
import Mathlib.algebra.ordered_group
import Mathl... |
69c9f240ccc966c248f4e0683936e0c2cc3364da | 05f637fa14ac28031cb1ea92086a0f4eb23ff2b1 | /tests/lean/bad8.lean | b85afb4d782f1d704e37ff7a47aed1c09483ed90 | [
"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 | 318 | lean | import Int.
variable list : Type → Type
variable nil {A : Type} : list A
variable cons {A : Type} (head : A) (tail : list A) : list A
variable a : ℤ
variable b : ℤ
variable n : ℕ
variable m : ℕ
definition l1 : list ℤ := cons a (cons b (cons n nil))
definition l2 : list ℤ := cons a (cons n (cons b nil))
|
c8733cb9eb9f631418719b39efe3d3aef65b753e | 4d2583807a5ac6caaffd3d7a5f646d61ca85d532 | /src/tactic/group.lean | c5cff97553b1358bc8be0d4793dcd596515dc648 | [
"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 | 3,690 | lean | /-
Copyright (c) 2020. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Patrick Massot
-/
import tactic.ring
import tactic.doc_commands
/-!
# `group`
Normalizes expressions in the language of groups. The basic idea is to use the simplifier
to put everything into a prod... |
a2826c2f731ffd5c069d29e8ce5047e559e8361b | 4727251e0cd73359b15b664c3170e5d754078599 | /src/category_theory/bicategory/coherence_tactic.lean | 7b65cfecc8849df8ad08c4f780a7a68f66ae9acd | [
"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 | 9,974 | lean | /-
Copyright (c) 2022 Yuma Mizuno. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Yuma Mizuno
-/
import category_theory.bicategory.coherence
/-!
# A `coherence` tactic for bicategories, and `⊗≫` (composition up to associators)
We provide a `coherence` tactic,
which p... |
4eeb84c160cf10eb9434c9718d4aa75797333f61 | 5a8eb1c11f93715e070b588e85f2961065c3714d | /books/theorem-proving-in-lean/ch02-04.lean | 192b8337f8f95bca79e6af6e44c9e6bca704e155 | [
"MIT"
] | permissive | luksamuk/study | 0e19bf99d33e0793127c3d3f8ad3936fbeb36505 | 6a9417e071a8624c4cd9db696c16a3abcc430219 | refs/heads/master | 1,677,960,533,266 | 1,676,234,529,000 | 1,676,234,529,000 | 151,009,060 | 4 | 1 | MIT | 1,676,234,531,000 | 1,538,343,224,000 | C++ | UTF-8 | Lean | false | false | 831 | lean | def foo : (ℕ → ℕ) → ℕ := λ f, f 0
-- Type inference
def foo' := λ f : ℕ → ℕ, f 0
-- Alternative syntax
def foo'' (f : ℕ → ℕ) : ℕ := f 0
def double (x : ℕ) : ℕ := x + x
#check foo
#print foo
#print double
#check double 3
#reduce foo double
-- Anyway, back to book stuff.
def square (x : ℕ) := x * x
#print square
#... |
7faab660c2a79baf270d4c9ee78381fa6d77f653 | d9d511f37a523cd7659d6f573f990e2a0af93c6f | /test/monotonicity.lean | 140f33687da72c0630f3b9f13c8c43472b49856b | [
"Apache-2.0"
] | permissive | hikari0108/mathlib | b7ea2b7350497ab1a0b87a09d093ecc025a50dfa | a9e7d333b0cfd45f13a20f7b96b7d52e19fa2901 | refs/heads/master | 1,690,483,608,260 | 1,631,541,580,000 | 1,631,541,580,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 8,591 | lean | /-
Copyright (c) 2019 Simon Hudon. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Simon Hudon
-/
import tactic.monotonicity
import tactic.norm_num
import algebra.ordered_ring
import measure_theory.measure.lebesgue
import data.list.defs
open list tactic tactic.interact... |
bf5eb9d538d2ac2eb86273d2f8741e1bb9815f3a | 4727251e0cd73359b15b664c3170e5d754078599 | /src/ring_theory/noetherian.lean | b0ae2132bbd0a60390b5bf555d15278288b9f2e1 | [
"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 | 35,133 | lean | /-
Copyright (c) 2018 Mario Carneiro, Kevin Buzzard. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Mario Carneiro, Kevin Buzzard
-/
import group_theory.finiteness
import data.multiset.finset_ops
import algebra.algebra.tower
import order.order_iso_nat
import ring_theor... |
164c8227bfdfd1ed7bfadcdd09b206f34f232943 | 1abd1ed12aa68b375cdef28959f39531c6e95b84 | /src/measure_theory/constructions/borel_space.lean | f55ad07032870ef58f09e13d682a69a950c651ce | [
"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 | 82,806 | lean | /-
Copyright (c) 2017 Johannes Hölzl. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Johannes Hölzl, Yury Kudryashov
-/
import measure_theory.function.ae_measurable_sequence
import analysis.complex.basic
import analysis.normed_space.finite_dimension
import topology.G_d... |
332d9e696a05d3b0e72dde96c4f5e6bde76d21bd | 302c785c90d40ad3d6be43d33bc6a558354cc2cf | /src/data/list/zip.lean | 5ee6a3ac14e0c02ea48bfe7811594d868758d081 | [
"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 | 11,865 | lean | /-
Copyright (c) 2018 Mario Carneiro. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Mario Carneiro, Kenny Lau
-/
import data.list.basic
universes u v w z
variables {α : Type u} {β : Type v} {γ : Type w} {δ : Type z}
open nat
namespace list
/- zip & unzip -/
@[si... |
f3c9f3d5f3051043f3c7ae9a4b9548efe6262654 | 831fec3c0a3b90b41b2550784bd72343802488b6 | /Dockerfile.lean | 294b3150158ad2c0205962a3f1fad8fa357c6350 | [
"MIT"
] | permissive | agmangas/wotemu | 14b9d3f60d0fa33ec8fc0b7da3a08ffb56793766 | 8adf3d57e8b9a85959089d53cc4f7f8a1bc1aeec | refs/heads/master | 1,681,113,104,758 | 1,622,215,465,000 | 1,622,215,465,000 | 269,609,276 | 6 | 1 | MIT | 1,609,862,626,000 | 1,591,355,135,000 | Python | UTF-8 | Lean | false | false | 227 | lean | FROM ubuntu:20.04
ENV PATH_WOTEMU /root/wotemu
ENV WAIT_GATEWAYS 20
WORKDIR ${PATH_WOTEMU}
COPY ./scripts ./scripts
RUN ./scripts/install-image-deps.sh
COPY . .
RUN pip3 install -U .
ENTRYPOINT ["/root/wotemu/entrypoint.sh"] |
4a31d7607290795e95ebfae1541a8b7cb1c3c162 | 82b86ba2ae0d5aed0f01f49c46db5afec0eb2bd7 | /src/Lean/Elab/Inductive.lean | 0061ee5aa47c5f4107986a70583ae06be7cbdb07 | [
"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 | 23,575 | 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.Util.ReplaceLevel
import Lean.Util.ReplaceExpr
import Lean.Util.CollectLevelParams
import Lean.Util.Constructions
import Lean.Elab.Command
impor... |
1060028f8fd7238e343f04907cc100be3d18c50b | aa3f8992ef7806974bc1ffd468baa0c79f4d6643 | /library/data/quotient/basic.lean | b91ad3cea347e37b1b64771f12e3e461b189d21f | [
"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 | 14,029 | lean | -- Copyright (c) 2014 Floris van Doorn. All rights reserved.
-- Released under Apache 2.0 license as described in the file LICENSE.
-- Author: Floris van Doorn
-- Theory data.quotient
-- ====================
import logic tools.tactic data.subtype logic.cast algebra.relation data.prod
import logic.instances
import .ut... |
d2a6d8a5899eb25704694d880fd54242d5e752cf | 8cae430f0a71442d02dbb1cbb14073b31048e4b0 | /src/linear_algebra/free_module/determinant.lean | a9bc68de15a2da00a7bf69a63cfaad6555f8fc41 | [
"Apache-2.0"
] | permissive | leanprover-community/mathlib | 56a2cadd17ac88caf4ece0a775932fa26327ba0e | 442a83d738cb208d3600056c489be16900ba701d | refs/heads/master | 1,693,584,102,358 | 1,693,471,902,000 | 1,693,471,902,000 | 97,922,418 | 1,595 | 352 | Apache-2.0 | 1,694,693,445,000 | 1,500,624,130,000 | Lean | UTF-8 | Lean | false | false | 1,084 | lean | /-
Copyright (c) 2022 Anne Baanen. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Anne Baanen, Alex J. Best
-/
import linear_algebra.determinant
import linear_algebra.free_module.finite.basic
/-!
# Determinants in free (finite) modules
> THIS FILE IS SYNCHRONIZED WI... |
ff4b0bc092ab554719a9291df2b1e6a3e1381b1f | 55c7fc2bf55d496ace18cd6f3376e12bb14c8cc5 | /src/geometry/euclidean.lean | fb92eec8b1acc5b2ae7e4029d2bdded4b50afb09 | [
"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 | 29,400 | 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 analysis.normed_space.real_inner_product
import analysis.normed_space.add_torsor
import linear_algebra.affine_space
import tactic.interval_cases
noncomputable the... |
9b8f0d729ca325c102e71742a488c1b820ebb778 | 947fa6c38e48771ae886239b4edce6db6e18d0fb | /src/topology/algebra/continuous_monoid_hom.lean | 3534df552d49946e7cc842d6e898e435f3547509 | [
"Apache-2.0"
] | permissive | ramonfmir/mathlib | c5dc8b33155473fab97c38bd3aa6723dc289beaa | 14c52e990c17f5a00c0cc9e09847af16fabbed25 | refs/heads/master | 1,661,979,343,526 | 1,660,830,384,000 | 1,660,830,384,000 | 182,072,989 | 0 | 0 | null | 1,555,585,876,000 | 1,555,585,876,000 | null | UTF-8 | Lean | false | false | 11,811 | 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.circle
import topology.continuous_function.algebra
/-!
# Continuous Monoid Homs
This file defines the space of continuous homomorphisms b... |
375d8b512555d274ee3313f7af17098ea0572914 | e37bb385769d6f4ac9931236fd07b708397e086b | /src/library/src_field.lean | 156d881fc71bc41cc266f884e684429788827c2d | [] | no_license | gihanmarasingha/ems_reals | 5f5d5b9d9dfb5a10da465046336d74995132dff6 | 9df527742db69d0a389add44b506538fdb4d0800 | refs/heads/master | 1,675,327,747,064 | 1,608,036,820,000 | 1,608,036,820,000 | 315,825,726 | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 1,696 | lean | namespace mth1001
namespace myreal
section comm_group
class comm_group (R : Type*) :=
(add : R → R → R)
(zero : R)
(neg : R → R)
(add_comm : ∀ a b : R, add a b = add b a)
(add_assoc : ∀ a b c : R, add (add a b) c = add a (add b c))
(add_zero : ∀ a : R, add a zero = a)
(add_inv : ∀ a : R, add a (neg a) = zero)
varia... |
755d44d3d43c470c6cbf2de250b7b6ef08c83058 | 74addaa0e41490cbaf2abd313a764c96df57b05d | /Mathlib/topology/metric_space/gluing_auto.lean | d359c914d7ad1caa026a2b794201ff0b0c03a7c6 | [] | 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 | 13,634 | lean | /-
Copyright (c) 2019 Sébastien Gouëzel. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Gluing metric spaces
Authors: Sébastien Gouëzel
-/
import Mathlib.PrePort
import Mathlib.Lean3Lib.init.default
import Mathlib.topology.metric_space.isometry
import Mathlib.topology.metric_sp... |
edec1d40eebdcde6664e727a9f56bf27b14a67f5 | 8e381650eb2c1c5361be64ff97e47d956bf2ab9f | /src/to_mathlib/localization/localization_tests/localisation_test_1.lean | 05d46bf9c4a294887f24d192b8bfd2b4dd78d32e | [] | 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 | 8,589 | lean | /-
First localization test. R[1/a][1/b] ≅ R[1/ab].
-/
import ring_theory.localization
import to_mathlib.localization.localization_alt
universes u v w
open localization_alt
-- Define localisation on a set of generators.
section localization_on_generators
parameters {A : Type u} {B : Type v} {C : Type w}
parame... |
1a286d1d5c7b17c825324721a7a96e0e6cf625d8 | a0e23cfdd129a671bf3154ee1a8a3a72bf4c7940 | /src/Lean/Meta/FunInfo.lean | 73fd7cf91741e2b59ba461ddee7a24a08eed4712 | [
"Apache-2.0"
] | permissive | WojciechKarpiel/lean4 | 7f89706b8e3c1f942b83a2c91a3a00b05da0e65b | f6e1314fa08293dea66a329e05b6c196a0189163 | refs/heads/master | 1,686,633,402,214 | 1,625,821,189,000 | 1,625,821,258,000 | 384,640,886 | 0 | 0 | Apache-2.0 | 1,625,903,617,000 | 1,625,903,026,000 | null | UTF-8 | Lean | false | false | 3,093 | lean | /-
Copyright (c) 2019 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Leonardo de Moura
-/
import Lean.Meta.Basic
import Lean.Meta.InferType
namespace Lean.Meta
@[inline] private def checkFunInfoCache (fn : Expr) (maxArgs? : Option Nat) (k : Met... |
5d618079b5fe717fe0bfcbafdcf1ae6f42e19fd5 | 8eeb99d0fdf8125f5d39a0ce8631653f588ee817 | /src/measure_theory/set_integral.lean | bd107743dfa76829ceba22dfa874945176797233 | [
"Apache-2.0"
] | permissive | jesse-michael-han/mathlib | a15c58378846011b003669354cbab7062b893cfe | fa6312e4dc971985e6b7708d99a5bc3062485c89 | refs/heads/master | 1,625,200,760,912 | 1,602,081,753,000 | 1,602,081,753,000 | 181,787,230 | 0 | 0 | null | 1,555,460,682,000 | 1,555,460,682,000 | null | UTF-8 | Lean | false | false | 37,293 | 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... |
9fd9868e7612c90720bed5e97035472a55d8043a | 1fbca480c1574e809ae95a3eda58188ff42a5e41 | /src/util/predicate/default.lean | b9939decaf5669bd5c9c425cf03a5c82fc1c33a5 | [] | no_license | unitb/lean-lib | 560eea0acf02b1fd4bcaac9986d3d7f1a4290e7e | 439b80e606b4ebe4909a08b1d77f4f5c0ee3dee9 | refs/heads/master | 1,610,706,025,400 | 1,570,144,245,000 | 1,570,144,245,000 | 99,579,229 | 5 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 30 | lean |
import util.predicate.lemmas
|
85e8ff0afcc4d62b377930b932c312dd034993be | 57c233acf9386e610d99ed20ef139c5f97504ba3 | /src/linear_algebra/matrix/zpow.lean | 893f2023fbeadd6502c91dc832b4e15693f2a58e | [
"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 | 12,118 | lean | /-
Copyright (c) 2021 Yakov Pechersky. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Yakov Pechersky
-/
import linear_algebra.matrix.nonsingular_inverse
/-!
# Integer powers of square matrices
In this file, we define integer power of matrices, relying on
the nonsing... |
942fd39b8e6550ffb5c086c873802288d6c52217 | 57c233acf9386e610d99ed20ef139c5f97504ba3 | /src/analysis/inner_product_space/l2_space.lean | c6383477da95cc2011c476a62363e6d3dafab05e | [
"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 | 19,102 | lean | /-
Copyright (c) 2022 Heather Macbeth. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Heather Macbeth
-/
import analysis.inner_product_space.projection
import analysis.normed_space.lp_space
/-!
# Hilbert sum of a family of inner product spaces
Given a family `(G : ι ... |
063eb7cbbe89e6b15bf051f563e6c5a739fe215c | a0e23cfdd129a671bf3154ee1a8a3a72bf4c7940 | /stage0/src/Lean/Elab/Deriving/Inhabited.lean | 3cd3ae4bf7787097aab389cde2e7e1f904f60ce7 | [
"Apache-2.0"
] | permissive | WojciechKarpiel/lean4 | 7f89706b8e3c1f942b83a2c91a3a00b05da0e65b | f6e1314fa08293dea66a329e05b6c196a0189163 | refs/heads/master | 1,686,633,402,214 | 1,625,821,189,000 | 1,625,821,258,000 | 384,640,886 | 0 | 0 | Apache-2.0 | 1,625,903,617,000 | 1,625,903,026,000 | null | UTF-8 | Lean | false | false | 5,443 | 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.Elab.Deriving.Basic
namespace Lean.Elab
open Command
open Meta
private abbrev IndexSet := Std.RBTree Nat compare
private abbrev LocalInst2Inde... |
8be5d1a69496d0db1e79f5111a782d99429390c8 | 64874bd1010548c7f5a6e3e8902efa63baaff785 | /tests/lean/run/lift.lean | fb38cf48852ec451194725de3463122c35ecbb1d | [
"Apache-2.0"
] | permissive | tjiaqi/lean | 4634d729795c164664d10d093f3545287c76628f | d0ce4cf62f4246b0600c07e074d86e51f2195e30 | refs/heads/master | 1,622,323,796,480 | 1,422,643,069,000 | 1,422,643,069,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 439 | 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 :=
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' :=
induction_on a' (λ a, ... |
32dcc42a9d4ea2122c9dd6d2363b120b05891024 | ef47cc39429c8f578004338bf040c9c309b26766 | /src/for_mathlib/category_theory/natural_isomorphism.lean | 98128b31e79e2d11e30c2b13030c81842c4a6898 | [] | no_license | farmanb/lftcm2020 | 29f1c646437a8f8b00ee2e07c8b663ca04bfa16f | 1948bfaf58e3b340b39cd9b8366aa4f13e5ffa7d | refs/heads/master | 1,669,697,152,764 | 1,595,275,412,000 | 1,595,275,412,000 | 285,654,242 | 0 | 0 | null | 1,596,742,086,000 | 1,596,742,085,000 | null | UTF-8 | Lean | false | false | 1,916 | lean | import category_theory.natural_isomorphism
open category_theory
universes v₁ v₂ u₁ u₂
variables {C : Type u₁} [category.{v₁} C]
variables {D : Type u₂} [category.{v₂} D]
variables (F G : C ⥤ D) (α : F ≅ G)
/-!
Unfortunately we need a separate set of cancellation lemmas for components of natural isomorphisms,
becaus... |
6e58e466ef01aabef1ae6aa0ef7cc6e17e249ce0 | 8cae430f0a71442d02dbb1cbb14073b31048e4b0 | /src/ring_theory/polynomial/cyclotomic/expand.lean | 72a5e238580610ab03fe59e6027ed3acc6707612 | [
"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 | 9,949 | 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 ring_theory.polynomial.cyclotomic.roots
/-!
# Cyclotomic polynomials and `expand`.
> THIS FILE IS SYNCHRONIZED WITH MATHLIB4.
> Any changes to this file r... |
6c82f799280149d0f388846f8b76631d7c316b43 | 74addaa0e41490cbaf2abd313a764c96df57b05d | /Mathlib/data/polynomial/degree/trailing_degree.lean | 7bd3600ec3d7263a9b15b057ff2bc5556240151e | [] | no_license | AurelienSaue/Mathlib4_auto | f538cfd0980f65a6361eadea39e6fc639e9dae14 | 590df64109b08190abe22358fabc3eae000943f2 | refs/heads/master | 1,683,906,849,776 | 1,622,564,669,000 | 1,622,564,669,000 | 371,723,747 | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 11,259 | lean | /-
Copyright (c) 2020 Damiano Testa. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Damiano Testa
-/
import Mathlib.PrePort
import Mathlib.Lean3Lib.init.default
import Mathlib.data.polynomial.degree.definitions
import Mathlib.PostPort
universes u v
namespace Mathlib... |
c4ef3168ab9869d792a25e99b6822504bc101ce2 | 05f637fa14ac28031cb1ea92086a0f4eb23ff2b1 | /tests/lean/lua14.lean | 03127b6062693e1a7fd4c405a3fde6ba02643dda | [
"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 | 402 | lean | import Int.
variables x y z : Int
variable f : Int -> Int -> Int
(*
local t = parse_lean("fun w, f w (f y 0)")
print(t)
assert(t:closed())
local n, d, b = t:fields()
print(b)
assert(not b:closed())
local env = get_environment()
assert(env:find_object("Int"):get_name() == name("Int"))
parse_lean_cmds([[
ev... |
dcac2796f850fef73ce7a8e1533fc246008a33cd | 2fbe653e4bc441efde5e5d250566e65538709888 | /src/logic/function.lean | a665cb2b9d7a01427e69e90f9318b777b449000d | [
"Apache-2.0"
] | permissive | aceg00/mathlib | 5e15e79a8af87ff7eb8c17e2629c442ef24e746b | 8786ea6d6d46d6969ac9a869eb818bf100802882 | refs/heads/master | 1,649,202,698,930 | 1,580,924,783,000 | 1,580,924,783,000 | 149,197,272 | 0 | 0 | Apache-2.0 | 1,537,224,208,000 | 1,537,224,207,000 | null | UTF-8 | Lean | false | false | 11,997 | 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
Miscellaneous function constructions and lemmas.
-/
import logic.basic data.option.defs
universes u v w
namespace function
section
variables {α : Sor... |
674d2541e7d8f112f82dd8825d84b7f2a786156a | 49bd2218ae088932d847f9030c8dbff1c5607bb7 | /src/data/matrix/basic.lean | 65815ea356b0b8c8d47a0cbfa7eef561aa9ad9bf | [
"Apache-2.0"
] | permissive | FredericLeRoux/mathlib | e8f696421dd3e4edc8c7edb3369421c8463d7bac | 3645bf8fb426757e0a20af110d1fdded281d286e | refs/heads/master | 1,607,062,870,732 | 1,578,513,186,000 | 1,578,513,186,000 | 231,653,181 | 0 | 0 | Apache-2.0 | 1,578,080,327,000 | 1,578,080,326,000 | null | UTF-8 | Lean | false | false | 12,043 | lean | /-
Copyright (c) 2018 Ellen Arlt. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Ellen Arlt, Blair Shi, Sean Leather, Mario Carneiro, Johan Commelin
Matrices
-/
import algebra.module algebra.pi_instances
import data.fintype
universes u v
def matrix (m n : Type u) [f... |
2d5d0ce409cd0a7900b09f72528102a212d0f5b8 | 206422fb9edabf63def0ed2aa3f489150fb09ccb | /src/analysis/asymptotics.lean | 8e49807ff93696e64d343d508ca1716dd8e833cd | [
"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 | 55,568 | lean | /-
Copyright (c) 2019 Jeremy Avigad. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Jeremy Avigad, Yury Kudryashov
-/
import analysis.normed_space.basic
import topology.local_homeomorph
/-!
# Asymptotics
We introduce these relations:
* `is_O_with c f g l` : "f is bi... |
481a057653d70ea497110b77512e57280973f8a8 | c055f4b7c29cf1aac2223bd8c1ac8d181a7c6447 | /src/categories/universal/constructions/from_finite_products.lean | 97d5b21e4cda6bbae36ab58e5e1e290f7dfdc75f | [
"Apache-2.0"
] | permissive | rwbarton/lean-category-theory-pr | 77207b6674eeec1e258ec85dea58f3bff8d27065 | 591847d70c6a11c4d5561cd0eaf69b1fe85a70ab | refs/heads/master | 1,584,595,111,303 | 1,528,029,041,000 | 1,528,029,041,000 | 135,919,126 | 0 | 0 | null | 1,528,041,805,000 | 1,528,041,805,000 | null | UTF-8 | Lean | false | false | 2,553 | lean | -- Copyright (c) 2017 Scott Morrison. All rights reserved.
-- Released under Apache 2.0 license as described in the file LICENSE.
-- Authors: Scott Morrison
import categories.universal.instances
import categories.util.Two
open categories
open categories.functor
open categories.isomorphism
open categories.initial
open... |
f5365820543db8e142a2e33222bcbf7d87006d20 | 05f637fa14ac28031cb1ea92086a0f4eb23ff2b1 | /tests/lean/tst3.lean | 29150b07c5e5aa5faad1396bcb7d23e3f7f3b918 | [
"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 | 1,466 | lean | set_option verbose false.
notation 10 if _ then _ : implies.
print environment 1.
print if true then false.
variable a : Bool.
print if true then if a then false.
set_option lean::pp::notation false.
print if true then if a then false.
variable A : Type.
variable f : A -> A -> A -> Bool.
notation 100 _ |- _ ; _ : f.
... |
a180763c7bf53445a1fe00a71c1811985caef06b | 74addaa0e41490cbaf2abd313a764c96df57b05d | /Mathlib/data/matrix/basic.lean | afe92c0db1505a576f2b05efe79827972458b7b9 | [] | 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 | 57,962 | lean | /-
Copyright (c) 2018 Ellen Arlt. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Ellen Arlt, Blair Shi, Sean Leather, Mario Carneiro, Johan Commelin
-/
import Mathlib.PrePort
import Mathlib.Lean3Lib.init.default
import Mathlib.algebra.big_operators.pi
import Mathlib.al... |
c7b71a030165845466d56ba8c0bc6c8f1bb1ec92 | d406927ab5617694ec9ea7001f101b7c9e3d9702 | /src/probability/probability_mass_function/uniform.lean | 2bc42f9c97ed46ce3199aa27550c0d2fc2f90b72 | [
"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 | 7,144 | lean | /-
Copyright (c) 2022 Devon Tuma. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Devon Tuma
-/
import probability.probability_mass_function.constructions
/-!
# Uniform Probability Mass Functions
This file defines a number of uniform `pmf` distributions from various i... |
7f2a01849f92a35927a86ee47c600cf2278a13d6 | 4fa161becb8ce7378a709f5992a594764699e268 | /src/analysis/hofer.lean | bec07cde01507166539c20a77434574eb1aa8d25 | [
"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 | 4,865 | 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
/-!
# Hofer's lemma
This is an elementary lemma about complete metric spaces. It is motivated by an
application to the bubbling-off... |
1c2da2c7c9ecc28aa24de0db5c9923ce8fd3cfcf | fe25de614feb5587799621c41487aaee0d083b08 | /tests/lean/interactive/hover.lean | fb894f1d566927294d531fe1e6af5edfb66e035a | [
"Apache-2.0"
] | permissive | pollend/lean4 | e8469c2f5fb8779b773618c3267883cf21fb9fac | c913886938c4b3b83238a3f99673c6c5a9cec270 | refs/heads/master | 1,687,973,251,481 | 1,628,039,739,000 | 1,628,039,739,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 2,009 | lean | import Lean
example : True := by
apply True.intro
--^ textDocument/hover
example : True := by
simp [True.intro]
--^ textDocument/hover
example (n : Nat) : True := by
match n with
| Nat.zero => _
--^ textDocument/hover
| n + 1 => _
/-- My tactic -/
macro "mytac" o:("only"?) e:term : tactic =... |
6232c60f97c7a9cd1f17668c9e31c5dc51bfe351 | d406927ab5617694ec9ea7001f101b7c9e3d9702 | /src/algebra/order/absolute_value.lean | 6571e26ced82f371fe666a993157f4d34abef4e2 | [
"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 | 10,899 | lean | /-
Copyright (c) 2021 Anne Baanen. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Mario Carneiro, Anne Baanen
-/
import algebra.group_with_zero.units.lemmas
import algebra.order.field.defs
import algebra.order.hom.basic
import algebra.order.ring.abs
import algebra.ring... |
4c781b8b4f1780af63aa13dd45f31ba6a842dafc | d406927ab5617694ec9ea7001f101b7c9e3d9702 | /src/data/list/lex.lean | 5b0471b8b4674396c921a61126cf636389ec75cd | [
"Apache-2.0"
] | permissive | alreadydone/mathlib | dc0be621c6c8208c581f5170a8216c5ba6721927 | c982179ec21091d3e102d8a5d9f5fe06c8fafb73 | refs/heads/master | 1,685,523,275,196 | 1,670,184,141,000 | 1,670,184,141,000 | 287,574,545 | 0 | 0 | Apache-2.0 | 1,670,290,714,000 | 1,597,421,623,000 | Lean | UTF-8 | Lean | false | false | 5,956 | lean | /-
Copyright (c) 2018 Mario Carneiro. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Mario Carneiro
-/
import order.rel_classes
/-!
# Lexicographic ordering of lists.
> THIS FILE IS SYNCHRONIZED WITH MATHLIB4.
> https://github.com/leanprover-community/mathlib4/pull/6... |
07213865e846af210784afcdccf40df9a2084adc | 4727251e0cd73359b15b664c3170e5d754078599 | /src/algebra/order/monoid_lemmas.lean | 4808acd20a01f292bd8cd765e134819f824e8853 | [
"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 | 28,686 | lean | /-
Copyright (c) 2016 Jeremy Avigad. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Jeremy Avigad, Leonardo de Moura, Mario Carneiro, Johannes Hölzl, Damiano Testa,
Yuyang Zhao
-/
import algebra.covariant_and_contravariant
import order.monotone
/-!
# Ordered monoids
... |
52235fd77191a561df6dee3cd87eb2b37cca96e9 | 618003631150032a5676f229d13a079ac875ff77 | /src/topology/topological_fiber_bundle.lean | 107a3fb8fd5333a6dbd2db6c91f36757bc286598 | [
"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 | 24,264 | 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.local_homeomorph
/-!
# Fiber bundles
A topological fiber bundle with fiber `F` over a base `B` is a space projecting on `B` for which the
fibe... |
e24a44a9b7f01a387be732fe58010fef7d65cea1 | 31f556cdeb9239ffc2fad8f905e33987ff4feab9 | /stage0/src/Lean/Elab/PreDefinition/Eqns.lean | 379930652dd8113e0c374e354262d0da0b3ba45d | [
"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 | 16,148 | lean | /-
Copyright (c) 2022 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Leonardo de Moura
-/
import Lean.Meta.Eqns
import Lean.Util.CollectFVars
import Lean.Meta.Tactic.Split
import Lean.Meta.Tactic.Apply
import Lean.Meta.Tactic.Refl
namespace Lean... |
3bc9ac8dc0085aa63135c52a7ee324c192bb9249 | 63abd62053d479eae5abf4951554e1064a4c45b4 | /src/category_theory/monoidal/functorial.lean | 2f4c89ab1eb19196d06c73a6f7c12ac87d0b015d | [
"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 | 3,775 | 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.monoidal.functor
import category_theory.functorial
/-!
# Unbundled lax monoidal functors
## Design considerations
The essential problem I've ... |
bb5c0199353bd971c0262706739b2960f3941834 | 2385ce0e3b60d8dbea33dd439902a2070cca7a24 | /library/init/data/string/basic.lean | 46361f0bc7c664a65f27aada586324722bf706c0 | [
"Apache-2.0"
] | permissive | TehMillhouse/lean | 68d6fdd2fb11a6c65bc28dec308d70f04dad38b4 | 6bbf2fbd8912617e5a973575bab8c383c9c268a1 | refs/heads/master | 1,620,830,893,339 | 1,515,592,479,000 | 1,515,592,997,000 | 116,964,828 | 0 | 0 | null | 1,515,592,734,000 | 1,515,592,734,000 | null | UTF-8 | Lean | false | false | 7,901 | lean | /-
Copyright (c) 2016 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Author: Leonardo de Moura
-/
prelude
import init.data.list.basic
import init.data.char.basic
/- In the VM, strings are implemented using a dynamic array and UTF-8 encoding.
TODO: we... |
d041c9e766ace01c3380e5cbf9f1444f5646e318 | c31182a012eec69da0a1f6c05f42b0f0717d212d | /src/for_mathlib/arrow/split.lean | caaf2d491f11a72923ffc5dfa0e396cdf8f51eca | [] | 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 | 368 | lean | import category_theory.arrow
namespace category_theory
namespace arrow
universes v u
variables {C : Type u} [category.{v} C]
/-- Split arrows. -/
class split (f : arrow C) :=
(σ : f.right ⟶ f.left)
(is_splitting' : σ ≫ f.hom = 𝟙 _ . obviously)
restate_axiom split.is_splitting'
attribute [simp, reassoc] split.is_s... |
eee0e3ef721f555f6dc10ef5b0e4818bdcd7e9bf | 2c096fdfecf64e46ea7bc6ce5521f142b5926864 | /src/Init/Data/Array/Basic.lean | 88e7ce615fc4fa2c8e3577333502c33c4d151b6e | [
"Apache-2.0",
"LLVM-exception",
"NCSA",
"LGPL-3.0-only",
"LicenseRef-scancode-inner-net-2.0",
"BSD-3-Clause",
"LGPL-2.0-or-later",
"Spencer-94",
"LGPL-2.1-or-later",
"HPND",
"LicenseRef-scancode-pcre",
"ISC",
"LGPL-2.1-only",
"LicenseRef-scancode-other-permissive",
"SunPro",
"CMU-Mach"... | permissive | Kha/lean4 | 1005785d2c8797ae266a303968848e5f6ce2fe87 | b99e11346948023cd6c29d248cd8f3e3fb3474cf | refs/heads/master | 1,693,355,498,027 | 1,669,080,461,000 | 1,669,113,138,000 | 184,748,176 | 0 | 0 | Apache-2.0 | 1,665,995,520,000 | 1,556,884,930,000 | Lean | UTF-8 | Lean | false | false | 28,727 | lean | /-
Copyright (c) 2018 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Leonardo de Moura
-/
prelude
import Init.WFTactics
import Init.Data.Nat.Basic
import Init.Data.Fin.Basic
import Init.Data.UInt
import Init.Data.Repr
import Init.Data.ToString.Ba... |
95bed2b521ff90a12e623b6e97470e8fd06f2321 | f618aea02cb4104ad34ecf3b9713065cc0d06103 | /src/analysis/normed_space/bounded_linear_maps.lean | 278a92f8d35b3b433bff43dca070602264c25541 | [
"Apache-2.0"
] | permissive | joehendrix/mathlib | 84b6603f6be88a7e4d62f5b1b0cbb523bb82b9a5 | c15eab34ad754f9ecd738525cb8b5a870e834ddc | refs/heads/master | 1,589,606,591,630 | 1,555,946,393,000 | 1,555,946,393,000 | 182,813,854 | 0 | 0 | null | 1,555,946,309,000 | 1,555,946,308,000 | null | UTF-8 | Lean | false | false | 6,923 | lean | /-
Copyright (c) 2018 Patrick Massot. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Patrick Massot, Johannes Hölzl
Continuous linear functions -- functions between normed vector spaces which are bounded and linear.
-/
import algebra.field
import analysis.normed_space... |
7ef2e69a5ccef67bc206d702a55d3fd6a406335a | 2a70b774d16dbdf5a533432ee0ebab6838df0948 | /_target/deps/mathlib/src/order/omega_complete_partial_order.lean | 8cfb9d070f73d8eb1b2affa2bb8e70d926c6d25e | [
"Apache-2.0"
] | permissive | hjvromen/lewis | 40b035973df7c77ebf927afab7878c76d05ff758 | 105b675f73630f028ad5d890897a51b3c1146fb0 | refs/heads/master | 1,677,944,636,343 | 1,676,555,301,000 | 1,676,555,301,000 | 327,553,599 | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 30,543 | lean | /-
Copyright (c) 2020 Simon Hudon. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Author: Simon Hudon
-/
import data.pfun
import order.preorder_hom
import tactic.wlog
import tactic.monotonicity
/-!
# Omega Complete Partial Orders
An omega-complete partial order is a partial o... |
6c8e55fee91da0148874f57f0acaffa610188e33 | c777c32c8e484e195053731103c5e52af26a25d1 | /src/ring_theory/kaehler.lean | 8e910ef0c965733055f9d4b8720861026a0643c3 | [
"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 | 28,316 | lean | /-
Copyright © 2020 Nicolò Cavalleri. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Nicolò Cavalleri, Andrew Yang
-/
import ring_theory.derivation
import ring_theory.ideal.cotangent
import ring_theory.is_tensor_product
/-!
# The module of kaehler differentials
## M... |
fa965cf04d02e0c2bee41834156e9c42a0db7e28 | d406927ab5617694ec9ea7001f101b7c9e3d9702 | /src/category_theory/limits/essentially_small.lean | 2c04a775c663d802eca96c22078c327dce0c2a94 | [
"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 | 1,536 | lean | /-
Copyright (c) 2022 Markus Himmel. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Markus Himmel
-/
import category_theory.limits.shapes.products
import category_theory.essentially_small
/-!
# Limits over essentially small indexing categories
If `C` has limits of si... |
940100930a65b2a016a410dadd1f04b037ac2d2e | 7cef822f3b952965621309e88eadf618da0c8ae9 | /src/measure_theory/category/Meas.lean | 9c9d5adbe3eb05e2c251cdf6e7900a50fe8c944a | [
"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 | 4,040 | 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
-/
import topology.category.Top.basic
import measure_theory.giry_monad
import category_theory.monad.algebra
/-
* Meas, the category of measurable spaces
Measurable sp... |
f8316f38d68fb2308f8ead5dc0f208417ba6d097 | 3dc4623269159d02a444fe898d33e8c7e7e9461b | /.github/workflows/project_1_a_decrire/projet_A2/A2.lean | 70b3f22e040cb7ecde2ebc74395704b8d69f5db6 | [] | 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 | 735 | lean | import algebra.category.CommRing.basic
import algebra.ring
import tactic
open CommRing
universes v u
structure A2 (R : Type v)[comm_ring R] :=
(a : R)
(b : R)
namespace A2
section
variables {R : Type v} [comm_ring R]
@[ext]lemma ext : ∀ {ζ1 ζ2 : A2 R}, (ζ1.a = ζ2.a) → (ζ1.b = ζ2.b) → ζ1 = ζ2 := λ ζ1 ... |
dde0438ffa64bd629ff9f0345607c7b0121c0b38 | e0f9ba56b7fedc16ef8697f6caeef5898b435143 | /src/algebra/group/with_one.lean | 18b7f1b495d26eb196b187d3e35eed01727546e2 | [
"Apache-2.0"
] | permissive | anrddh/mathlib | 6a374da53c7e3a35cb0298b0cd67824efef362b4 | a4266a01d2dcb10de19369307c986d038c7bb6a6 | refs/heads/master | 1,656,710,827,909 | 1,589,560,456,000 | 1,589,560,456,000 | 264,271,800 | 0 | 0 | Apache-2.0 | 1,589,568,062,000 | 1,589,568,061,000 | null | UTF-8 | Lean | false | false | 7,454 | lean | /-
Copyright (c) 2018 Mario Carneiro. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Mario Carneiro, Johan Commelin
-/
import algebra.group.hom
universes u v
variable {α : Type u}
@[to_additive]
def with_one (α) := option α
namespace with_one
@[to_additive]
instanc... |
d43770a7b0cec7229894e0f148ef77d80f56800f | 4727251e0cd73359b15b664c3170e5d754078599 | /src/tactic/norm_cast.lean | 0e243dd6675b8766ec0998ec88be83f46419b306 | [
"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 | 26,384 | 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... |
b6274001e635105abb7caae76428f95ebdc30c10 | 57c233acf9386e610d99ed20ef139c5f97504ba3 | /src/group_theory/monoid_localization.lean | aed2fcc0c32c5a7eb229fd7245abd259a6e6febc | [
"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 | 64,118 | lean | /-
Copyright (c) 2019 Amelia Livingston. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Amelia Livingston
-/
import group_theory.congruence
import group_theory.submonoid.membership
import algebra.group.units
/-!
# Localizations of commutative monoids
Localizing a com... |
9fa2aeffd1ac1dd74b1a6839aa2b5a4616e51726 | 9028d228ac200bbefe3a711342514dd4e4458bff | /src/data/padics/padic_norm.lean | fbba85321eb20aa49d5d71a74748e6ce9bb02f31 | [
"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 | 25,145 | 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 algebra.gcd_monoid
import algebra.field_power
import ring_theory.multiplicity
import data.real.cau_seq
import tactic.ring_exp
import tactic.basic
/-!
# p-ad... |
a11156d0fceb7930a2b02907510aaaf60a78f9e5 | fa02ed5a3c9c0adee3c26887a16855e7841c668b | /src/measure_theory/l2_space.lean | 9b7e81924cc17677f34cd6ab5db910177dda01cd | [
"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,270 | lean | /-
Copyright (c) 2021 Rémy Degenne. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Rémy Degenne
-/
import analysis.normed_space.inner_product
import measure_theory.set_integral
/-! # `L^2` space
If `E` is an inner product space over `𝕜` (`ℝ` or `ℂ`), then `Lp E 2 μ`... |
1faa59dd0f4799943aa12bacd0a3f811e2bf53b8 | 5e3548e65f2c037cb94cd5524c90c623fbd6d46a | /src_icannos_totilas/aops/2000-JBMO-Problem_1.lean | ca262894f0f2e5122e3ccfd800f897b52c23d741 | [] | no_license | ahayat16/lean_exos | d4f08c30adb601a06511a71b5ffb4d22d12ef77f | 682f2552d5b04a8c8eb9e4ab15f875a91b03845c | refs/heads/main | 1,693,101,073,585 | 1,636,479,336,000 | 1,636,479,336,000 | 415,000,441 | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 151 | lean | import data.real.basic
import data.real.nnreal
theorem JBMO_Problem_1_2000 (x y : nnreal) :
x^3 +y^3 +(x+y)^3 +30*x*y = 2000
→ x+y = 10 := sorry
|
2836a8fa9cf01a057ed8a0bf5dc4a7e2f83d9ac8 | 4d2583807a5ac6caaffd3d7a5f646d61ca85d532 | /src/algebra/lie/semisimple.lean | 5793aef9066149509ad9ff350c29e1fe5b17b0e9 | [
"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 | 4,516 | lean | /-
Copyright (c) 2021 Oliver Nash. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Oliver Nash
-/
import algebra.lie.solvable
/-!
# Semisimple Lie algebras
The famous Cartan-Dynkin-Killing classification of semisimple Lie algebras renders them one of the
most importan... |
f7e3ca8c778761e4fd1d4454bb29119394a37f0b | 94e33a31faa76775069b071adea97e86e218a8ee | /src/ring_theory/polynomial/symmetric.lean | ac4cdcfb9ddbffd8b41ca57ab76a8da8fa3289d9 | [
"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,320 | 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.basic
/-!
# Symmetric P... |
ea3da056fcc70f11c11c1b1d22bd52f098a32198 | 9db059bff49b1090a86ec0050ac6c577eb16ac67 | /src/meetings/sets.lean | f7eaaea75b283bff93d29f5fb1b39074cf17d81d | [] | no_license | fpvandoorn/Harvard-tutoring | d64cd75c4c529009ee562c30e9cb245fe237e760 | a8846c08e32cdc7b91a7e28adfa5d9b2810088b0 | refs/heads/master | 1,680,870,428,641 | 1,617,022,194,000 | 1,617,022,194,000 | 330,297,467 | 1 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 2,796 | lean | import data.set.basic
import data.real.basic
/-
Also see LFTCM 2020 lecture:
https://www.youtube.com/watch?v=qlJrCtYiEkI
-/
/- Sets versus Types
Lean distinguishes different notions of "set" and "containment"
which are often treated as the same in informal mathematics.
Lean math
==== ====
X... |
4a463a911b90bc0bd07622c91c1093d46806d1bb | 08bd4ba4ca87dba1f09d2c96a26f5d65da81f4b4 | /src/Lean/Data/Name.lean | 21b098d19b9580ed7865b183ebe641713b814812 | [
"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",
"Apache-2.0",
"LicenseRef-scancode-other-permissive",
"SunPro",
"CMU-Mach"... | permissive | gebner/lean4 | d51c4922640a52a6f7426536ea669ef18a1d9af5 | 8cd9ce06843c9d42d6d6dc43d3e81e3b49dfc20f | refs/heads/master | 1,685,732,780,391 | 1,672,962,627,000 | 1,673,459,398,000 | 373,307,283 | 0 | 0 | Apache-2.0 | 1,691,316,730,000 | 1,622,669,271,000 | Lean | UTF-8 | Lean | false | false | 4,725 | 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
-/
namespace Lean
instance : Coe String Name := ⟨Name.mkSimple⟩
namespace Name
-- Remark: we export the `Name.hash` to make sure it matches the hash implement... |
ee8f0a8672431f43d2b20058da03e10d3c0e5a46 | b7f22e51856f4989b970961f794f1c435f9b8f78 | /tests/lean/run/796.lean | 59845e29a9c5c43bbfd7824c6b2620e1d23fad33 | [
"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 | 277 | lean | import data.nat
inductive Diff ( n : nat ) : nat -> Type :=
| Base : Diff n n
| Step : Π (m : nat), Diff n (nat.succ m) -> Diff n m
definition checkDiff : Π (n m : nat), Diff n m -> Prop
| n _ (Diff.Base n) := true
| n m (Diff.Step m s) := checkDiff n _ s
print checkDiff
|
b95493482633e1cfcff2c3b1d73bff980ee75616 | f3849be5d845a1cb97680f0bbbe03b85518312f0 | /library/data/vector.lean | 151583bb4db0cb73fdc5f4b7577f3f1776b647a5 | [
"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 | 3,700 | lean | /-
Copyright (c) 2015 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Author: Leonardo de Moura
Tuples are lists of a fixed size.
It is implemented as a subtype.
-/
import data.list
universes u v w
def vector (α : Type u) (n : ℕ) := { l : list α // l.le... |
79f0961307e986606929e1caa09b9a6a1079b5d9 | 26ac254ecb57ffcb886ff709cf018390161a9225 | /src/topology/algebra/module.lean | d04d54cd1b223cb7b40febdc8c2e4e53f094c05f | [
"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 | 41,576 | lean | /-
Copyright (c) 2019 Sébastien Gouëzel. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Jan-David Salchow, Sébastien Gouëzel, Jean Lo, Yury Kudryashov
-/
import topology.algebra.ring
import topology.uniform_space.uniform_embedding
import ring_theory.algebra
import line... |
d5c6e1665645e19b3ead355aa588e92806e5f1be | 55c7fc2bf55d496ace18cd6f3376e12bb14c8cc5 | /src/analysis/normed_space/add_torsor.lean | a68f11189e6de1daefce43f4f38702896e848e18 | [
"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 | 3,934 | 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.add_torsor
import topology.metric_space.isometry
noncomputable theory
/-!
# Torsors of additive normed group actions.
This file defines torsors of addit... |
6dbefb4f2953531f4813933515f937911266c778 | 432d948a4d3d242fdfb44b81c9e1b1baacd58617 | /src/algebra/homology/exact.lean | 3007cc9622f26c4dd876854fd12eaec2fa814e87 | [
"Apache-2.0"
] | permissive | JLimperg/aesop3 | 306cc6570c556568897ed2e508c8869667252e8a | a4a116f650cc7403428e72bd2e2c4cda300fe03f | refs/heads/master | 1,682,884,916,368 | 1,620,320,033,000 | 1,620,320,033,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 5,393 | lean | /-
Copyright (c) 2020 Markus Himmel. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Markus Himmel
-/
import algebra.homology.image_to_kernel_map
/-!
# Exact sequences
In a category with zero morphisms, images, and equalizers we say that `f : A ⟶ B` and `g : B ⟶ C`
ar... |
174e4cf91eeb1d1a9277d0175628319545c2bc73 | a0e23cfdd129a671bf3154ee1a8a3a72bf4c7940 | /stage0/src/Init/Core.lean | e9fc1bb32b64723717ea1f00da7e5212550b3eca | [
"Apache-2.0"
] | permissive | WojciechKarpiel/lean4 | 7f89706b8e3c1f942b83a2c91a3a00b05da0e65b | f6e1314fa08293dea66a329e05b6c196a0189163 | refs/heads/master | 1,686,633,402,214 | 1,625,821,189,000 | 1,625,821,258,000 | 384,640,886 | 0 | 0 | Apache-2.0 | 1,625,903,617,000 | 1,625,903,026,000 | null | UTF-8 | Lean | false | false | 34,949 | 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
notation, basic datatypes and type classes
-/
prelude
import Init.Prelude
import Init.SizeOf
universe u v w
def inline {α : Sort u} (a : α) : α := a
@[inli... |
87588fe5c9020b0a1602614be5671bc53cc292c9 | 5ae26df177f810c5006841e9c73dc56e01b978d7 | /src/data/pnat/basic.lean | 77672a05dcf1975caabb031c18cc85cbcb3c9ac8 | [
"Apache-2.0"
] | permissive | ChrisHughes24/mathlib | 98322577c460bc6b1fe5c21f42ce33ad1c3e5558 | a2a867e827c2a6702beb9efc2b9282bd801d5f9a | refs/heads/master | 1,583,848,251,477 | 1,565,164,247,000 | 1,565,164,247,000 | 129,409,993 | 0 | 1 | Apache-2.0 | 1,565,164,817,000 | 1,523,628,059,000 | Lean | UTF-8 | Lean | false | false | 11,450 | lean | /-
Copyright (c) 2017 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Author: Mario Carneiro, Neil Strickland
-/
import tactic.basic
import data.nat.basic data.nat.prime algebra.group_power
/-- `ℕ+` is the type of positive natural numbers. It is defined ... |
7a61ec30c8f506da53dfa9739061ef3674eeb33c | f68c8823d8ddc719de8a4513815174aa7408ac4a | /lean_resolutions/PUZ131_1.lean | 06eae6a399aeca3d1fae1b77f303469bb792a9ea | [] | no_license | FredsoNerd/tptp-lean-puzzles | e7ea66a0de9aa3cb7cc7480299f01adf885440a6 | 43d4d77524e797a4ac7a62b2cfaf8df08b409815 | refs/heads/master | 1,606,359,611,765 | 1,576,824,274,000 | 1,576,824,274,000 | 228,945,807 | 4 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 2,616 | lean | --------------------------------------------------------------------------------
-- File : PUZ131_1 : TPTP v7.3.0. Released v5.0.0.
-- Domain : Puzzles
-- Problem : Victor teaches Michael
-- Version : Especial.
-- English : Every student is enrolled in at least one course. Every professor
-- teaches... |
fb9bbf3ad55c27ffc3eebc1b1ee7bee6ecce3a83 | 6432ea7a083ff6ba21ea17af9ee47b9c371760f7 | /tests/lean/run/alg.lean | 477e1d267c96142c604acc2f6bea049f3e8aa36a | [
"Apache-2.0",
"LLVM-exception",
"NCSA",
"LGPL-3.0-only",
"LicenseRef-scancode-inner-net-2.0",
"BSD-3-Clause",
"LGPL-2.0-or-later",
"Spencer-94",
"LGPL-2.1-or-later",
"HPND",
"LicenseRef-scancode-pcre",
"ISC",
"LGPL-2.1-only",
"LicenseRef-scancode-other-permissive",
"SunPro",
"CMU-Mach"... | permissive | leanprover/lean4 | 4bdf9790294964627eb9be79f5e8f6157780b4cc | f1f9dc0f2f531af3312398999d8b8303fa5f096b | refs/heads/master | 1,693,360,665,786 | 1,693,350,868,000 | 1,693,350,868,000 | 129,571,436 | 2,827 | 311 | Apache-2.0 | 1,694,716,156,000 | 1,523,760,560,000 | Lean | UTF-8 | Lean | false | false | 2,255 | lean | class Semigroup (α : Type u) extends Mul α where
mul_assoc (a b c : α) : a * b * c = a * (b * c)
export Semigroup (mul_assoc)
class MulComm (α : Type u) extends Mul α where
mul_comm (a b : α) : a * b = b * a
export MulComm (mul_comm)
class CommSemigroup (α : Type u) extends Semigroup α where
mul_comm (a b : ... |
b8a32b041205f33cb7847d3d5cf84accac5767ba | d406927ab5617694ec9ea7001f101b7c9e3d9702 | /src/data/int/order/units.lean | 838e7fc8f63f1f9abcb84560bb85bc0e992db88b | [
"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 | 1,827 | lean | /-
Copyright (c) 2016 Jeremy Avigad. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Jeremy Avigad
-/
import data.int.order.basic
import data.int.units
import algebra.group_power.order
/-!
# Lemmas about units in `ℤ`, which interact with the order structure.
-/
names... |
dee6aaad64c655ed1c6d438508ebe3490b057598 | e00ea76a720126cf9f6d732ad6216b5b824d20a7 | /src/tactic/monotonicity/interactive.lean | a2c1b659fe8b3e7075c44384f4a41e699093ad9d | [
"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 | 23,533 | lean | /-
Copyright (c) 2019 Simon Hudon. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Author: Simon Hudon
-/
import tactic.monotonicity.basic
import category.basic
import category.traversable
import category.traversable.derive
import data.dlist
import logic.basic
import tactic.cor... |
791d5e298b8810b613ff84d6d36e1e9ebf280c8e | 4d2583807a5ac6caaffd3d7a5f646d61ca85d532 | /test/equiv_rw.lean | 0c9b95207546a4c4c05ebb75ce73b2f4e821779b | [
"Apache-2.0"
] | permissive | AntoineChambert-Loir/mathlib | 64aabb896129885f12296a799818061bc90da1ff | 07be904260ab6e36a5769680b6012f03a4727134 | refs/heads/master | 1,693,187,631,771 | 1,636,719,886,000 | 1,636,719,886,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 9,750 | lean | /-
Copyright (c) 2019 Scott Morrison. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Scott Morrison
-/
import tactic.equiv_rw
import control.equiv_functor.instances -- these make equiv_rw more powerful!
-- Uncomment this line to observe the steps of constructing appro... |
e49dc0cc952f5f38974f1ae2829b3318a7dd7883 | 6432ea7a083ff6ba21ea17af9ee47b9c371760f7 | /src/Lean/Compiler/LCNF/ToMono.lean | 963aedde5c429ffab1f205cb3e6a1de98af8830d | [
"Apache-2.0",
"LLVM-exception",
"NCSA",
"LGPL-3.0-only",
"LicenseRef-scancode-inner-net-2.0",
"BSD-3-Clause",
"LGPL-2.0-or-later",
"Spencer-94",
"LGPL-2.1-or-later",
"HPND",
"LicenseRef-scancode-pcre",
"ISC",
"LGPL-2.1-only",
"LicenseRef-scancode-other-permissive",
"SunPro",
"CMU-Mach"... | permissive | leanprover/lean4 | 4bdf9790294964627eb9be79f5e8f6157780b4cc | f1f9dc0f2f531af3312398999d8b8303fa5f096b | refs/heads/master | 1,693,360,665,786 | 1,693,350,868,000 | 1,693,350,868,000 | 129,571,436 | 2,827 | 311 | Apache-2.0 | 1,694,716,156,000 | 1,523,760,560,000 | Lean | UTF-8 | Lean | false | false | 6,000 | lean | /-
Copyright (c) 2022 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Leonardo de Moura
-/
import Lean.Compiler.LCNF.MonoTypes
import Lean.Compiler.LCNF.InferType
namespace Lean.Compiler.LCNF
structure ToMonoM.State where
typeParams : FVarIdSe... |
73049507e782263be50c5ad8832bee2ed53276be | 4d2583807a5ac6caaffd3d7a5f646d61ca85d532 | /src/algebra/category/Module/basic.lean | 3518cd5a99b988ea681f914dd7f58a0630e83d9b | [
"Apache-2.0"
] | permissive | AntoineChambert-Loir/mathlib | 64aabb896129885f12296a799818061bc90da1ff | 07be904260ab6e36a5769680b6012f03a4727134 | refs/heads/master | 1,693,187,631,771 | 1,636,719,886,000 | 1,636,719,886,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 9,780 | lean | /-
Copyright (c) 2019 Robert A. Spencer. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Robert A. Spencer, Markus Himmel
-/
import algebra.category.Group.basic
import category_theory.concrete_category
import category_theory.limits.shapes.kernels
import category_theory.... |
12795693a49b52cf4b0b2d655af98077d25ad813 | 94e33a31faa76775069b071adea97e86e218a8ee | /src/algebra/hom/group_instances.lean | 17ec75f28ff609b2d94623f560b277c39de73f14 | [
"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 | 10,287 | lean | /-
Copyright (c) 2018 Patrick Massot. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Patrick Massot, Kevin Buzzard, Scott Morrison, Johan Commelin, Chris Hughes,
Johannes Hölzl, Yury Kudryashov
-/
import algebra.group_power.basic
/-!
# Instances on spaces of monoid... |
559d126c62899370a3ef44a96573158849738fdf | 8cae430f0a71442d02dbb1cbb14073b31048e4b0 | /src/category_theory/monoidal/transport.lean | d447a53b4ff9cc7f954140681ce121dd846ca6d4 | [
"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 | 9,479 | lean | /-
Copyright (c) 2020 Scott Morrison. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Scott Morrison
-/
import category_theory.monoidal.natural_transformation
/-!
# Transport a monoidal structure along an equivalence.
> THIS FILE IS SYNCHRONIZED WITH MATHLIB4.
> Any c... |
913d113da3ad167c69a480a8ac15f51aff619c71 | c7e0fa0422da099d4b66b195c60455d87facee0d | /seq.lean | a145abbbd063fe2c659a1b4eac609a00dc5c0f3d | [] | no_license | viljamivirolainen/linear | 12d725a90a44ae2760f59e9a9d9dd12aae36300a | dcf28df05e06da1b4fc76bce61b8fa0741300dc8 | refs/heads/master | 1,678,895,327,362 | 1,516,045,398,000 | 1,516,045,398,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 1,804 | lean | import data.stream
import data.vector
-- /Sequences/ of length n with elements in α
def seq (α n) :=
fin n → α
-- Streams (infinite sequences) are a subtype of finite ones (spooky)
/-instance {α : Type u} {n} : has_coe (stream α) (seq α n) :=
⟨λ f, f ∘ fin.val⟩-/
-- Convenient notation for Fⁿ
notation F `^` n := seq... |
ff6b9ae6789284ce9ca23fe51fdd15b1abe7f6e4 | fa02ed5a3c9c0adee3c26887a16855e7841c668b | /src/data/mv_polynomial/expand.lean | ab49cf584889e0ff020ad2771b9dee1c24c0fd8b | [
"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 | 2,821 | lean | /-
Copyright (c) 2020 Johan Commelin. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Johan Commelin, Robert Y. Lewis
-/
import data.mv_polynomial.monad
/-!
## Expand multivariate polynomials
Given a multivariate polynomial `φ`, one may replace every occurence of `X i... |
2b555abae7bd42116889185315a548297c499491 | 74addaa0e41490cbaf2abd313a764c96df57b05d | /Mathlib/Lean3Lib/init/data/char/classes.lean | 461078884304bea1afe592b8b99557b10bbaaf51 | [] | 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 | 3,076 | lean | /-
Copyright (c) 2017 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Author: Gabriel Ebner
-/
import Mathlib.PrePort
import Mathlib.Lean3Lib.init.data.char.basic
import Mathlib.Lean3Lib.init.data.char.lemmas
import Mathlib.Lean3Lib.init.meta.default
impor... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.