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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
9ff9a0c92caece1c3d60c3694515f89ccc3f15a9 | ce6917c5bacabee346655160b74a307b4a5ab620 | /src/ch5/ex0308.lean | ca75f7b0c3049ec02455f3f5356c42b66e19f1af | [] | no_license | Ailrun/Theorem_Proving_in_Lean | ae6a23f3c54d62d401314d6a771e8ff8b4132db2 | 2eb1b5caf93c6a5a555c79e9097cf2ba5a66cf68 | refs/heads/master | 1,609,838,270,467 | 1,586,846,743,000 | 1,586,846,743,000 | 240,967,761 | 1 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 157 | lean | open nat
example (P : ℕ → Prop) (h₀ : P 0) (h₁ : ∀ n, P (succ n)) (m : ℕ) :
P m :=
begin
cases m with m',
exact h₀,
exact h₁ m'
end
|
6a9a0ac6d7335f7ed0782aa350484af528c3c28c | 649957717d58c43b5d8d200da34bf374293fe739 | /src/analysis/normed_space/basic.lean | b55c3b178fa5a7c16f81b51483b518fcdb50619a | [
"Apache-2.0"
] | permissive | Vtec234/mathlib | b50c7b21edea438df7497e5ed6a45f61527f0370 | fb1848bbbfce46152f58e219dc0712f3289d2b20 | refs/heads/master | 1,592,463,095,113 | 1,562,737,749,000 | 1,562,737,749,000 | 196,202,858 | 0 | 0 | Apache-2.0 | 1,562,762,338,000 | 1,562,762,337,000 | null | UTF-8 | Lean | false | false | 23,907 | lean | /-
Copyright (c) 2018 Patrick Massot. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Normed spaces.
Authors: Patrick Massot, Johannes Hölzl
-/
import algebra.pi_instances
import linear_algebra.basic
import topology.instances.nnreal topology.instances.complex
import topology.a... |
5a5b0fafdcf87b7dd8cdc9c536f947b1358d9118 | e6b8240a90527fd55d42d0ec6649253d5d0bd414 | /src/topology/bounded_continuous_function.lean | 8be326ec8f21a14f17052a6a18e9a845d30cfe7c | [
"Apache-2.0"
] | permissive | mattearnshaw/mathlib | ac90f9fb8168aa642223bea3ffd0286b0cfde44f | d8dc1445cf8a8c74f8df60b9f7a1f5cf10946666 | refs/heads/master | 1,606,308,351,137 | 1,576,594,130,000 | 1,576,594,130,000 | 228,666,195 | 0 | 0 | Apache-2.0 | 1,576,603,094,000 | 1,576,603,093,000 | null | UTF-8 | Lean | false | false | 23,734 | lean | /-
Copyright (c) 2018 Sébastien Gouëzel. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Sébastien Gouëzel, Mario Carneiro
Type of bounded continuous functions taking values in a metric space, with
the uniform distance.
-/
import analysis.normed_space.basic topology.... |
b298ef72a780a482c97f310fde14ce2e8f897521 | 76df16d6c3760cb415f1294caee997cc4736e09b | /lean/src/cs/conc.lean | 4bdba3f78e5380ee37c0d2d6343c5b46717cb4a2 | [
"MIT"
] | permissive | uw-unsat/leanette-popl22-artifact | 70409d9cbd8921d794d27b7992bf1d9a4087e9fe | 80fea2519e61b45a283fbf7903acdf6d5528dbe7 | refs/heads/master | 1,681,592,449,670 | 1,637,037,431,000 | 1,637,037,431,000 | 414,331,908 | 6 | 1 | null | null | null | null | UTF-8 | Lean | false | false | 2,507 | lean | import .sym
section defs
variables
{SymV D O : Type}
(lift : (lang.val D O) → SymV)
def lang.env.lift (e : lang.env D O) : sym.env SymV := e.map lift
def lang.val.to_clos : lang.val D O → option (sym.clos D O SymV)
| (lang.val.clos y x e) := some (sym.clos.mk y x (lang.env.lift lift e))
| _ ... |
69fccdff81e6182e780fa7427b819313b6ca5caa | 947fa6c38e48771ae886239b4edce6db6e18d0fb | /src/analysis/special_functions/log/basic.lean | 8cd71b90ef6fa48cf83cea462982df2d6b26d305 | [
"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 | 12,122 | lean | /-
Copyright (c) 2018 Chris Hughes. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Chris Hughes, Abhimanyu Pallavi Sudhir, Jean Lo, Calle Sönne
-/
import analysis.special_functions.exp
import data.nat.factorization.basic
/-!
# Real logarithm
In this file we define `r... |
307deb170c866dc2edf46469e5ac91c4c00fc64c | 019219cee6f24c05395ca6ccf1365289a9ffdebc | /unique_factorization_domain.lean | a2bfdce296a3ef5b7676fb9d34e7cb2407afb911 | [] | no_license | ChrisHughes24/mason-stother | df79efeb661cefe9ebba05415ca80d005135df4e | a4095993c2f7fc58091f1a1d05459eae17f786b1 | refs/heads/master | 1,584,409,893,766 | 1,523,892,476,000 | 1,523,892,476,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 48,186 | lean | import data.finsupp
import algebra.ring
import .to_finset
import .to_multiset
import associated_quotient
noncomputable theory
local infix ^ := monoid.pow
open classical
local attribute [instance] prop_decidable
universe u
variable {α : Type u}
--Would it have been smart to define units as a type that lives in Prop... |
7ab7e7af1b2ecd5a276024e22e7d71d3d0d58223 | 77c5b91fae1b966ddd1db969ba37b6f0e4901e88 | /src/linear_algebra/affine_space/affine_map.lean | d139a46644e41ce83e4724ce9e85df52bbc26292 | [
"Apache-2.0"
] | permissive | dexmagic/mathlib | ff48eefc56e2412429b31d4fddd41a976eb287ce | 7a5d15a955a92a90e1d398b2281916b9c41270b2 | refs/heads/master | 1,693,481,322,046 | 1,633,360,193,000 | 1,633,360,193,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 20,146 | 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 linear_algebra.affine_space.basic
import linear_algebra.tensor_product
import linear_algebra.prod
import linear_algebra.pi
import data.set.intervals.unordered_inte... |
f21401074cfccd987435fb7ca3548231a45edfd7 | 56af0912bd25910f5caae91d6dd0603b0c032989 | /kb_solutions/conj.lean | 5b26e98a472da817e505aa5f75dd733b69e1855b | [
"Apache-2.0"
] | permissive | isabella232/complex-number-game | ae36e0b1df9761d9df07049ca29c91ae44dbdc2d | 3d767f14041f9002e435bed3a3527fdd297c166d | refs/heads/master | 1,679,305,953,116 | 1,606,397,567,000 | 1,606,397,567,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 2,271 | lean | -- import solutions to level 1
import complex.kb_solutions.I
/-!
# Level 2: Complex conjugation
-/
namespace complex
-- First complete the definition using `complex.mk` or `⟨x, y⟩` notation
/-- The complex conjugate of a complex number -/
def conj (z : ℂ) : ℂ := ⟨re(z), -im(z)⟩
-- Now prove how it interacts wit... |
6b61bd6cdb35e2c941a7210ec94f6969e9adcdd9 | 947b78d97130d56365ae2ec264df196ce769371a | /tests/lean/run/new_compiler.lean | 2db78aeec46b822f245745cb48adfd3764b066a5 | [
"Apache-2.0"
] | permissive | shyamalschandra/lean4 | 27044812be8698f0c79147615b1d5090b9f4b037 | 6e7a883b21eaf62831e8111b251dc9b18f40e604 | refs/heads/master | 1,671,417,126,371 | 1,601,859,995,000 | 1,601,860,020,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 1,754 | lean | new_frontend
universes u v w r s
set_option trace.compiler.stage1 true
-- setOption pp.implicit True
set_option pp.binder_types false
set_option pp.proofs true
def foo (n : Nat) : Nat :=
let x := Nat.zero;
let x1 := Nat.succ x;
let x2 := Nat.succ x1;
let x3 := Nat.succ x2;
let x4 := Nat.succ x3;
let x5 := Nat.succ x... |
cc4b9e2a0a732d75dd58aad5a90bf7777d691a2c | b24beef0a8b1a8e92be756a25aa78e24908b2b14 | /src/exercises_sources/friday/manifolds.lean | 89ff6be9590551246815fe84aa2f2183028648eb | [] | permissive | ChristopheMargerin/lftcm2020 | 14967e74cbe92a7b61d32d8130f32cfa09b5172b | 589180047fa4fdfb3179636db58b0b0320549871 | refs/heads/master | 1,668,536,269,632 | 1,594,891,664,000 | 1,594,891,664,000 | 280,112,730 | 0 | 0 | MIT | 1,594,891,963,000 | 1,594,891,962,000 | null | UTF-8 | Lean | false | false | 19,200 | lean | import for_mathlib.manifolds
noncomputable theory
open_locale manifold classical big_operators
open set
/-! ### Local homeomorphisms
Local homeomorphisms are globally defined maps with a globally defined "inverse", but the only
relevant set is the *source*, which should be mapped homeomorphically to the *target*.
... |
b81956eb15ebd41542b6c5a1ba1ce5dba39a148a | 947b78d97130d56365ae2ec264df196ce769371a | /tests/lean/mutualWithNamespaceMacro.lean | 3d87549a7fe82b07046a46a26566529da09f50c1 | [
"Apache-2.0"
] | permissive | shyamalschandra/lean4 | 27044812be8698f0c79147615b1d5090b9f4b037 | 6e7a883b21eaf62831e8111b251dc9b18f40e604 | refs/heads/master | 1,671,417,126,371 | 1,601,859,995,000 | 1,601,860,020,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 391 | lean | new_frontend
mutual
inductive Foo.Lst (α : Type)
| nil : Lst
| cons : Tree α → Lst α → Lst α
inductive Boo.Tree (α : Type) -- conflicting namespace
| leaf : Tree α
| node : Lst α → Tree α
end
mutual
inductive Foo.Lst (α : Type)
| nil : Lst α
| cons : Tree α → Lst α → Lst α
inductive Foo.Tree (α : Type)
| l... |
4a06b8c65a4f56423f072cfdfef86d5f5fcb37ad | d3aa99b88d7159fbbb8ab10d699374ab7be89e03 | /src/tactic/core.lean | b358ca2bbc21228bd5f0c9e56d4958f802fba71f | [
"Apache-2.0"
] | permissive | mzinkevi/mathlib | 62e0920edaf743f7fc53aaf42a08e372954af298 | c718a22925872db4cb5f64c36ed6e6a07bdf647c | refs/heads/master | 1,599,359,590,404 | 1,573,098,221,000 | 1,573,098,221,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 55,224 | lean | /-
Copyright (c) 2018 Mario Carneiro. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Mario Carneiro, Simon Hudon, Scott Morrison, Keeley Hoek
-/
import data.dlist.basic category.basic meta.expr meta.rb_map data.bool
namespace expr
open tactic
attribute [derive has_re... |
6cfba15ec3894623d79302e2b70a2afe3da9b3f7 | 9dc8cecdf3c4634764a18254e94d43da07142918 | /src/ring_theory/ideal/quotient.lean | 41952cd53bd888107b179626669bd099aaab4e00 | [
"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 | 16,361 | lean | /-
Copyright (c) 2018 Kenny Lau. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Kenny Lau, Chris Hughes, Mario Carneiro, Anne Baanen
-/
import linear_algebra.quotient
import ring_theory.ideal.basic
/-!
# Ideal quotients
This file defines ideal quotients as a special c... |
999ce60038c2597a9633e095f3e491b149b012e7 | 432d948a4d3d242fdfb44b81c9e1b1baacd58617 | /src/topology/algebra/ordered.lean | b03d832105740719c799aca3f3386804d063c5de | [
"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 | 167,636 | 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 tactic.linarith
import tactic.tfae
import algebra.archimedean
import algebra.group.pi
import algebra.ordered_ring
import order... |
2732c8d0a80a986119f056f61ab839540de7e844 | d406927ab5617694ec9ea7001f101b7c9e3d9702 | /src/category_theory/category/preorder.lean | cac31c7f2eea2bbe04b92c0c6fa028a6e73cc513 | [
"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 | 4,475 | lean | /-
Copyright (c) 2017 Scott Morrison. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Stephen Morgan, Scott Morrison, Johannes Hölzl, Reid Barton
-/
import category_theory.equivalence
import order.hom.basic
/-!
# Preorders as categories
We install a category instance... |
9194ae56b251d42748841db10883eddc0f92ec5e | a0e23cfdd129a671bf3154ee1a8a3a72bf4c7940 | /stage0/src/Lean/Meta/Tactic/Simp/SimpLemmas.lean | c2dfc71d72ae053ebd40f749f5b0b8e51af29ec2 | [
"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 | 11,166 | lean | /-
Copyright (c) 2020 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Leonardo de Moura
-/
import Lean.ScopedEnvExtension
import Lean.Util.Recognizers
import Lean.Meta.LevelDefEq
import Lean.Meta.DiscrTree
import Lean.Meta.AppBuilder
import Lean.M... |
36c41fff70ba655a3507938ac539dbb8820ff7dc | 1dd482be3f611941db7801003235dc84147ec60a | /src/algebra/ordered_ring.lean | b840ae67d7da2539e8c0ae6081a50d5141b3b8a8 | [
"Apache-2.0"
] | permissive | sanderdahmen/mathlib | 479039302bd66434bb5672c2a4cecf8d69981458 | 8f0eae75cd2d8b7a083cf935666fcce4565df076 | refs/heads/master | 1,587,491,322,775 | 1,549,672,060,000 | 1,549,672,060,000 | 169,748,224 | 0 | 0 | Apache-2.0 | 1,549,636,694,000 | 1,549,636,694,000 | null | UTF-8 | Lean | false | false | 17,634 | 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 order.basic algebra.order algebra.ordered_group algebra.ring data.nat.cast
universe u
variable {α : Type u}
-- TODO: this is necessary additionally to mul_no... |
4c1eceb9e262291250565f221889aba9d572b26d | 86ee6b815fda4c9a5aa42e17b61336a913552e60 | /src/groupoids/basic.lean | f630bc1c0ad74cbe3027e428dcdcecb04198719a | [
"Apache-2.0"
] | permissive | fgdorais/lean-groupoids | 6487f6d84427a757708fd4e795038ab159cc4f2c | 54d1582f8d6ae642fc818e7672ac1c49fe7733e5 | refs/heads/master | 1,587,778,056,386 | 1,551,055,383,000 | 1,551,055,383,000 | 172,408,995 | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 3,529 | lean | /-
Copyright © 2019 François G. Dorais. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
-/
structure {u v} groupoid_ {α : Type u} (γ : α → α → Sort v) : Sort (max (u+1) v)
structure {u v} groupoid {α : Type u} (γ : α → α → Sort v) extends groupoid_ γ : Sort (max (u+1) v) :=
(id... |
7349087bb3b89a46b1892e0ac7f3375bef8d4282 | bbecf0f1968d1fba4124103e4f6b55251d08e9c4 | /src/topology/category/Top/opens.lean | 3f947bd87c7301186f3e5a8488b69b69cf75dde5 | [
"Apache-2.0"
] | permissive | waynemunro/mathlib | e3fd4ff49f4cb43d4a8ded59d17be407bc5ee552 | 065a70810b5480d584033f7bbf8e0409480c2118 | refs/heads/master | 1,693,417,182,397 | 1,634,644,781,000 | 1,634,644,781,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 7,908 | 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 topology.category.Top.basic
import category_theory.eq_to_hom
import category_theory.category.preorder
/-!
# The category of open sets in a topological space.
... |
5d2e2b8cb8924ec8bb170a68c5de66080487ac96 | d406927ab5617694ec9ea7001f101b7c9e3d9702 | /src/linear_algebra/matrix/sesquilinear_form.lean | 53f690ff9cb04f9afe36624ca8fb1c43c9993aa2 | [
"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 | 28,907 | lean | /-
Copyright (c) 2020 Anne Baanen. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Anne Baanen, Kexing Ying, Moritz Doll
-/
import linear_algebra.finsupp_vector_space
import linear_algebra.matrix.basis
import linear_algebra.matrix.nondegenerate
import linear_algebra.ma... |
59e33c11a1e80c85eeee5c66b7322ef42fbf4af2 | 367134ba5a65885e863bdc4507601606690974c1 | /src/data/pnat/factors.lean | 1000a7bcae72bcafd7158e2f5d08441556fb3a57 | [
"Apache-2.0"
] | permissive | kodyvajjha/mathlib | 9bead00e90f68269a313f45f5561766cfd8d5cad | b98af5dd79e13a38d84438b850a2e8858ec21284 | refs/heads/master | 1,624,350,366,310 | 1,615,563,062,000 | 1,615,563,062,000 | 162,666,963 | 0 | 0 | Apache-2.0 | 1,545,367,651,000 | 1,545,367,651,000 | null | UTF-8 | Lean | false | false | 14,413 | lean | /-
Copyright (c) 2019 Neil Strickland. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Author: Neil Strickland
-/
import data.pnat.prime
import data.multiset.sort
import data.int.gcd
import algebra.group
/-- The type of multisets of prime numbers. Unique factorization
gives a... |
58eaac42a34eeb19eb02a3a0136c5093765ae964 | 74addaa0e41490cbaf2abd313a764c96df57b05d | /Mathlib/algebra/category/Group/Z_Module_equivalence.lean | e9e6c2836494dd13cd03716cefec156ec899340e | [] | 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,813 | lean | /-
Copyright (c) 2020 Scott Morrison. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Scott Morrison
-/
import Mathlib.PrePort
import Mathlib.Lean3Lib.init.default
import Mathlib.algebra.category.Module.basic
import Mathlib.PostPort
universes u
namespace Mathlib
/-!... |
f3daff9a944fc49957ac9322348c00fe0d1b678d | 4d2583807a5ac6caaffd3d7a5f646d61ca85d532 | /src/analysis/normed_space/pi_Lp.lean | 60722c96087cac6d39de90ad02dc5f7ce13acb13 | [
"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 | 15,353 | lean | /-
Copyright (c) 2020 Sébastien Gouëzel. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Sébastien Gouëzel
-/
import analysis.mean_inequalities
/-!
# `L^p` distance on finite products of metric spaces
Given finitely many metric spaces, one can put the max distance on t... |
edbaa4a71eab897afeabc69bc80b656a2ad048dd | 74addaa0e41490cbaf2abd313a764c96df57b05d | /Mathlib/topology/category/Top/limits.lean | 8bf6019900cbdcef6a8dd51056ecb53d008e135c | [] | no_license | AurelienSaue/Mathlib4_auto | f538cfd0980f65a6361eadea39e6fc639e9dae14 | 590df64109b08190abe22358fabc3eae000943f2 | refs/heads/master | 1,683,906,849,776 | 1,622,564,669,000 | 1,622,564,669,000 | 371,723,747 | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 5,853 | lean | /-
Copyright (c) 2017 Scott Morrison. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Patrick Massot, Scott Morrison, Mario Carneiro
-/
import Mathlib.PrePort
import Mathlib.Lean3Lib.init.default
import Mathlib.topology.category.Top.basic
import Mathlib.category_theory.... |
00eb9eb687b27c3c331aeb7d0da8e01d18b694c6 | 41ebf3cb010344adfa84907b3304db00e02db0a6 | /uexp/src/uexp/rules/ex1sigmod92.lean | 6728f37185e82b227acc7afab3ec26e324f69900 | [
"BSD-2-Clause"
] | permissive | ReinierKoops/Cosette | e061b2ba58b26f4eddf4cd052dcf7abd16dfe8fb | eb8dadd06ee05fe7b6b99de431dd7c4faef5cb29 | refs/heads/master | 1,686,483,953,198 | 1,624,293,498,000 | 1,624,293,498,000 | 378,997,885 | 0 | 0 | BSD-2-Clause | 1,624,293,485,000 | 1,624,293,484,000 | null | UTF-8 | Lean | false | false | 3,646 | lean | import ..sql
import ..tactics
import ..u_semiring
import ..extra_constants
import ..meta.cosette_tactics
import ..meta.TDP
open Expr
open Proj
open Pred
open SQL
variables i1 i20 i85 : const datatypes.int
theorem rule :
forall (Γ scm_pur scm_itm scm_itp : Schema)
(rel_pur : relation scm_pur)
... |
4394cbd42cc485d6f5bc3e891b04799ba488d599 | c777c32c8e484e195053731103c5e52af26a25d1 | /src/algebra/category/Module/subobject.lean | ea03103006f3c765478e23d7e4815143e487ddf5 | [
"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 | 3,488 | lean | /-
Copyright (c) 2021 Markus Himmel. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Markus Himmel
-/
import algebra.category.Module.epi_mono
import algebra.category.Module.kernels
import category_theory.subobject.well_powered
import category_theory.subobject.limits
/-... |
edb116be7d96b4157b8af261143b3b9d986b4ea5 | 737dc4b96c97368cb66b925eeea3ab633ec3d702 | /stage0/src/Init/Data/Nat/Basic.lean | ccd4399537bd9eac61a308a38f4248808e58c58e | [
"Apache-2.0"
] | permissive | Bioye97/lean4 | 1ace34638efd9913dc5991443777b01a08983289 | bc3900cbb9adda83eed7e6affeaade7cfd07716d | refs/heads/master | 1,690,589,820,211 | 1,631,051,000,000 | 1,631,067,598,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 14,464 | lean | /-
Copyright (c) 2014 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Floris van Doorn, Leonardo de Moura
-/
prelude
import Init.SimpLemmas
universe u
namespace Nat
@[specialize] def foldAux {α : Type u} (f : Nat → α → α) (s : Nat) : Nat → α → α... |
c869ebb30ad81424e8224c913a78ab830b6edc78 | cf39355caa609c0f33405126beee2739aa3cb77e | /tests/lean/run/eqn_compiler_perf_issue.lean | 87c50af86a21a6701e0a007b508c0a84998af475 | [
"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 | 385 | lean | def mk (a : nat) : nat → list nat
| 0 := []
| (nat.succ n) := a :: mk n
def Sum : list nat → nat → nat
| [] r := r
| (n::ns) r := Sum ns (r + n)
def loop1 : nat → nat → nat
| s 0 := s
| s (nat.succ n) := loop1 (s + (Sum (mk 1 1000000) 0)) n
def loop2 : nat → nat → nat
| 0 s := s
| (nat... |
e473efc02d750bfb0e9a32d33b32682a18dc81fb | 6432ea7a083ff6ba21ea17af9ee47b9c371760f7 | /tests/lean/run/nestedtc.lean | c6e6ebed91488d0b87904c1a1d8c6beaeed5eecf | [
"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 | 1,349 | lean | variable {α : Type}
variable {R : Type}
class Zip (α : Type) -- represents `Zero`
class SMul (R : Type) (α : Type) where
smul : R → α → α
infixr:73 " • " => SMul.smul
class MulAction (R : Type) (β : Type) extends SMul R β
class SMulZeroClass (R α : Type) extends SMul R α where
smul_zero : ∀ r : R, ∀ a : α, r •... |
79882ecbca1fbc12dcbd0d04670cc3fda92b4f1f | 31f556cdeb9239ffc2fad8f905e33987ff4feab9 | /stage0/src/Lean/Elab/PreDefinition/Basic.lean | d4e2fb9784ceb679202c5b97403d66a2b1bbd0f9 | [
"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 | 8,522 | 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.Compiler.NoncomputableAttr
import Lean.Util.CollectLevelParams
import Lean.Meta.AbstractNestedProofs
import Lean.Elab.RecAppSyntax
import Lean.E... |
dbff032de5e7e4846ca82ae5198af247fd7b707c | d406927ab5617694ec9ea7001f101b7c9e3d9702 | /src/algebra/ring/boolean_ring.lean | 53e5f8de7853f493dfda82031157c7422568455d | [
"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 | 15,962 | lean | /-
Copyright (c) 2021 Bryan Gin-ge Chen. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Bryan Gin-ge Chen, Yaël Dillies
-/
import algebra.punit_instances
import tactic.abel
import tactic.ring
import order.hom.lattice
/-!
# Boolean rings
A Boolean ring is a ring where... |
4e4646c1204352aebc9a245c3cff9c4c11a8cec7 | 367134ba5a65885e863bdc4507601606690974c1 | /src/algebra/category/Mon/limits.lean | 3d518f4f0b3987556574e4c6869a47ca017e04ea | [
"Apache-2.0"
] | permissive | kodyvajjha/mathlib | 9bead00e90f68269a313f45f5561766cfd8d5cad | b98af5dd79e13a38d84438b850a2e8858ec21284 | refs/heads/master | 1,624,350,366,310 | 1,615,563,062,000 | 1,615,563,062,000 | 162,666,963 | 0 | 0 | Apache-2.0 | 1,545,367,651,000 | 1,545,367,651,000 | null | UTF-8 | Lean | false | false | 6,633 | 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.group.pi
import algebra.category.Mon.basic
import group_theory.submonoid
import category_theory.limits.types
import category_theory.limits.creates
/-!... |
32bf16bfe2a9e29a1d2307788a4da14866af50da | 8cae430f0a71442d02dbb1cbb14073b31048e4b0 | /src/linear_algebra/free_module/finite/basic.lean | e46f75d83b35e75bf008c5ec3646bd040fede862 | [
"Apache-2.0"
] | permissive | leanprover-community/mathlib | 56a2cadd17ac88caf4ece0a775932fa26327ba0e | 442a83d738cb208d3600056c489be16900ba701d | refs/heads/master | 1,693,584,102,358 | 1,693,471,902,000 | 1,693,471,902,000 | 97,922,418 | 1,595 | 352 | Apache-2.0 | 1,694,693,445,000 | 1,500,624,130,000 | Lean | UTF-8 | Lean | false | false | 2,171 | lean | /-
Copyright (c) 2021 Riccardo Brasca. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Riccardo Brasca
-/
import linear_algebra.dimension
import linear_algebra.free_module.basic
import ring_theory.finiteness
/-!
# Finite and free modules
> THIS FILE IS SYNCHRONIZED W... |
7ee2076a9231fd7e13e279e60c6906047901af31 | 35677d2df3f081738fa6b08138e03ee36bc33cad | /src/topology/metric_space/antilipschitz.lean | 97bec632b15fdd424f28a821fd6d8f828932ca85 | [
"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 | 5,185 | 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`,... |
c62af7f6ccc769e68f90e94de7758f2d40465fb1 | 704c0b4221e71a413a9270e3160af0813f426c91 | /src/simplify.lean | f3b17cb092f25009be2745ed344be9cb8733c442 | [] | no_license | CohenCyril/LP | d39b766199d2176b592ff223f9c00cdcb4d5f76d | 4dca829aa0fe94c0627410b88d9dad54e6ed2c63 | refs/heads/master | 1,596,132,000,357 | 1,568,817,913,000 | 1,568,817,913,000 | 210,310,499 | 0 | 0 | null | 1,569,229,479,000 | 1,569,229,479,000 | null | UTF-8 | Lean | false | false | 49,455 | lean | import simplex
open matrix fintype finset function pequiv partition tableau tableau.termination
variables {m n : ℕ}
local notation `rvec` : 2000 n := matrix (fin 1) (fin n) ℚ
local notation `cvec` : 2000 m := matrix (fin m) (fin 1) ℚ
local infix ` ⬝ `:70 := matrix.mul
local postfix `ᵀ` : 1500 := transpose
@[derive _... |
086129f38c9a5020fc62bab6bbae242d2542feaf | 8d65764a9e5f0923a67fc435eb1a5a1d02fd80e3 | /src/linear_algebra/special_linear_group.lean | 3b69d5fe0ce023afcb07971645db96ef7e539960 | [
"Apache-2.0"
] | permissive | troyjlee/mathlib | e18d4b8026e32062ab9e89bc3b003a5d1cfec3f5 | 45e7eb8447555247246e3fe91c87066506c14875 | refs/heads/master | 1,689,248,035,046 | 1,629,470,528,000 | 1,629,470,528,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 6,112 | lean | /-
Copyright (c) 2020 Anne Baanen. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Anne Baanen
The Special Linear group $SL(n, R)$
-/
import linear_algebra.matrix.nonsingular_inverse
import linear_algebra.matrix.to_lin
/-!
# The Special Linear group $SL(n, R)$
This f... |
226204337e2d612537503894251dabfd62ec012e | b7f22e51856f4989b970961f794f1c435f9b8f78 | /tests/lean/run/local_eqns2.lean | 0271bae6c3c0fac7c650d528d66d33b0b5d498a0 | [
"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 | 513 | lean | open nat
inductive fin : nat → Type :=
| fz : Π n, fin (succ n)
| fs : Π {n}, fin n → fin (succ n)
open fin
definition nz_cases_on {C : Π n, fin (succ n) → Type}
(H₁ : Π n, C n (fz n))
(H₂ : Π n (f : fin n), C n (fs f))
{n : nat}
... |
9d5e8fe14415adc3487ac541c5c3c2c0198c7632 | d406927ab5617694ec9ea7001f101b7c9e3d9702 | /src/data/list/perm.lean | 1dfe6214e7caa93fc3fdb94d4f211d194040e84c | [
"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 | 55,480 | 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.list.dedup
import data.list.lattice
import data.list.permutation
import data.list.zip
import data.list.range
impo... |
c4923f37a9428bc3159a17563662597535ed47a0 | f3849be5d845a1cb97680f0bbbe03b85518312f0 | /tests/lean/noncomputable_bytecode_issue.lean | d9438ca7a85afa22e265440dc82f4551d816d5ed | [
"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 | 111 | lean | constant a : nat
noncomputable meta def ex : tactic expr :=
return `(a)
open tactic
run_cmd ex >> return ()
|
6f4eeaf95cb8ebb6024f0872b58e1bd7eaa8e3d9 | 74addaa0e41490cbaf2abd313a764c96df57b05d | /Mathlib/algebra/category/Algebra/limits_auto.lean | b28f8ee27c7775cc902a55d21a2ab449a852ec61 | [] | 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 | 8,122 | lean | /-
Copyright (c) 2020 Scott Morrison. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Scott Morrison
-/
import Mathlib.PrePort
import Mathlib.Lean3Lib.init.default
import Mathlib.algebra.category.Algebra.basic
import Mathlib.algebra.category.Module.limits
import Mathlib... |
306f911181193b6bb07bf3969d87e8a309d970bf | 957a80ea22c5abb4f4670b250d55534d9db99108 | /tests/lean/run/rw1.lean | cede0eb48013bc187080a2d41c1e392e18ec6d14 | [
"Apache-2.0"
] | permissive | GaloisInc/lean | aa1e64d604051e602fcf4610061314b9a37ab8cd | f1ec117a24459b59c6ff9e56a1d09d9e9e60a6c0 | refs/heads/master | 1,592,202,909,807 | 1,504,624,387,000 | 1,504,624,387,000 | 75,319,626 | 2 | 1 | Apache-2.0 | 1,539,290,164,000 | 1,480,616,104,000 | C++ | UTF-8 | Lean | false | false | 1,652 | lean | namespace Ex1
variables
(f : nat → nat → nat)
(p : nat → nat → Prop)
(h₁ : ∀ a b c, p b c → f a b = a)
(x y z : nat)
(h₂ : p y z)
include f h₁ x y z h₂
open tactic
example : f x y = 0 + x :=
begin
rw [h₁],
/- Resulting goals
... ⊢ x = 0 + x
... ⊢ p y ?m_1
... ⊢ ℕ -- This is ?m_... |
ed831f33129ab08e581c3335e4400c9c27010f7b | 500f65bb93c499cd35c3254d894d762208cae042 | /src/data/fintype.lean | 92343f5293cdc2f2df56b88c6633bc452c249467 | [
"Apache-2.0"
] | permissive | PatrickMassot/mathlib | c39dc0ff18bbde42f1c93a1642f6e429adad538c | 45df75b3c9da159fe3192fa7f769dfbec0bd6bda | refs/heads/master | 1,623,168,646,390 | 1,566,940,765,000 | 1,566,940,765,000 | 115,220,590 | 0 | 1 | null | 1,514,061,524,000 | 1,514,061,524,000 | null | UTF-8 | Lean | false | false | 33,590 | lean | /-
Copyright (c) 2017 Mario Carneiro. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Author: Mario Carneiro
Finite types.
-/
import data.finset algebra.big_operators data.array.lemmas logic.unique
import tactic.wlog
universes u v
variables {α : Type*} {β : Type*} {γ : Type*}
... |
b1f8e6aaae6bde474a93ccb3a624a16e6630465f | 3de1f42c556c29dec35f78b82950d93ee1fe0e39 | /tests/lean/noncomputable_reason.lean | 12fa0151e5365697c6e19e0769f4faa0b85140a8 | [
"Apache-2.0"
] | permissive | anamariasosam/lean | a410ca781afc1117a56686436f48c40f6f5e9306 | 4887d8a30621941c883f208e151e61ab268c006d | refs/heads/master | 1,693,033,022,523 | 1,636,381,977,000 | 1,636,381,977,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 247 | lean | constant foo : ℕ
noncomputable def bar : ℕ := foo
def baz : ℕ := 0
open tactic
run_cmd do
e ← get_env,
trace $ e.decl_noncomputable_reason `foo,
trace $ e.decl_noncomputable_reason `bar,
trace $ e.decl_noncomputable_reason `baz
|
a69dc6cd718eb2b24ccaf6926501c1adf6cc5ea5 | ae1e94c332e17c7dc7051ce976d5a9eebe7ab8a5 | /src/Lean/Elab/Util.lean | f1e48ed229217c8cc87e5ab0aae95d88362395cb | [
"Apache-2.0"
] | permissive | dupuisf/lean4 | d082d13b01243e1de29ae680eefb476961221eef | 6a39c65bd28eb0e28c3870188f348c8914502718 | refs/heads/master | 1,676,948,755,391 | 1,610,665,114,000 | 1,610,665,114,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 7,596 | 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.Util.Trace
import Lean.Parser.Syntax
import Lean.Parser.Extension
import Lean.KeyedDeclsAttribute
import Lean.Elab.Exception
namespace Lean
de... |
3528928b464ce7293cfccb7e9afbe48630749d4a | 8cae430f0a71442d02dbb1cbb14073b31048e4b0 | /src/algebra/big_operators/order.lean | 2573be61bcdb654f1ad7713501c5d45cd6f20ad6 | [
"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 | 28,233 | 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 algebra.order.absolute_value
import algebra.order.ring.with_top
import algebra.big_operators.basic
import data.fintype.card
/-!
# Results about big operators... |
a6976f27bc9ca6acae3a94bb0b00823d391c4b2e | 367134ba5a65885e863bdc4507601606690974c1 | /src/data/polynomial/monic.lean | 6b96744cbe7242901c228df1de6a6045ba9f2b08 | [
"Apache-2.0"
] | permissive | kodyvajjha/mathlib | 9bead00e90f68269a313f45f5561766cfd8d5cad | b98af5dd79e13a38d84438b850a2e8858ec21284 | refs/heads/master | 1,624,350,366,310 | 1,615,563,062,000 | 1,615,563,062,000 | 162,666,963 | 0 | 0 | Apache-2.0 | 1,545,367,651,000 | 1,545,367,651,000 | null | UTF-8 | Lean | false | false | 8,713 | lean | /-
Copyright (c) 2018 Chris Hughes. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Chris Hughes, Johannes Hölzl, Scott Morrison, Jens Wagemaker
-/
import data.polynomial.reverse
import algebra.associated
/-!
# Theory of monic polynomials
We give several tools for pro... |
47ac4669c9c1bf2b25e1363085fbf4a6f22def78 | 8e2026ac8a0660b5a490dfb895599fb445bb77a0 | /library/data/dlist.lean | a9e8415b22cfd3e9b9e168825fac0acc62c752f1 | [
"Apache-2.0"
] | permissive | pcmoritz/lean | 6a8575115a724af933678d829b4f791a0cb55beb | 35eba0107e4cc8a52778259bb5392300267bfc29 | refs/heads/master | 1,607,896,326,092 | 1,490,752,175,000 | 1,490,752,175,000 | 86,612,290 | 0 | 0 | null | 1,490,809,641,000 | 1,490,809,641,000 | null | UTF-8 | Lean | false | false | 4,333 | lean | /-
Copyright (c) 2017 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Author: Leonardo de Moura
-/
universes u
/--
A difference list is a function that, given a list, returns the original
contents of the difference list prepended to the given list.
This s... |
4191d1b052afd4ae1d82275cfa18af1df1f45f59 | 60bf3fa4185ec5075eaea4384181bfbc7e1dc319 | /src/game/series/tempLevel02.lean | 025946a850a142ef09f13d78711e4aafa9d2f724 | [
"Apache-2.0"
] | permissive | anrddh/real-number-game | 660f1127d03a78fd35986c771d65c3132c5f4025 | c708c4e02ec306c657e1ea67862177490db041b0 | refs/heads/master | 1,668,214,277,092 | 1,593,105,075,000 | 1,593,105,075,000 | 264,269,218 | 0 | 0 | null | 1,589,567,264,000 | 1,589,567,264,000 | null | UTF-8 | Lean | false | false | 444 | lean | import game.series.L01defs
variable X : Type --hide
/-
Idea 02: if $\forall n \in \mathbb{N}, a_n \ge 0$,
$\sum a_n$ converges iff partial sums bounded above.
-/
/- Lemma
If $A$ and $B$ are sets of any type $X$, then
$$ A \subseteq A\cup B.$$
-/
theorem subset_union_left (A B : set X) : A ⊆ A ∪ B :=
begin
--ch... |
3322091b7e1637d83ad48460d54ef379ab18e343 | 92b50235facfbc08dfe7f334827d47281471333b | /tests/lean/rw_set3.lean | f4ed6923fccb161416bfae7018e1cd40ee590485 | [
"Apache-2.0"
] | permissive | htzh/lean | 24f6ed7510ab637379ec31af406d12584d31792c | d70c79f4e30aafecdfc4a60b5d3512199200ab6e | refs/heads/master | 1,607,677,731,270 | 1,437,089,952,000 | 1,437,089,952,000 | 37,078,816 | 0 | 0 | null | 1,433,780,956,000 | 1,433,780,955,000 | null | UTF-8 | Lean | false | false | 67 | lean | import data.nat
attribute nat.add.comm [rewrite]
print [rewrite]
|
80dea96251bbd1404f9181d215d625c2e563b350 | 6b45072eb2b3db3ecaace2a7a0241ce81f815787 | /data/fin.lean | de1e5fa75e92245fa9ba89822e87bc2bd5ef576c | [] | no_license | avigad/library_dev | 27b47257382667b5eb7e6476c4f5b0d685dd3ddc | 9d8ac7c7798ca550874e90fed585caad030bbfac | refs/heads/master | 1,610,452,468,791 | 1,500,712,839,000 | 1,500,713,478,000 | 69,311,142 | 1 | 0 | null | 1,474,942,903,000 | 1,474,942,902,000 | null | UTF-8 | Lean | false | false | 1,554 | lean | open fin nat
lemma lt_succ_of_lt {a b : nat} (h : a < b) : a < b + 1 := lt_add_of_lt_of_pos h one_pos
def raise_fin {n : ℕ} (k : fin n) : fin (n + 1) := ⟨val k, lt_succ_of_lt (is_lt k)⟩
lemma eq_of_lt_succ_of_not_lt {a b : ℕ} (h1 : a < b + 1) (h2 : ¬ a < b) : a = b :=
have h3 : a ≤ b, from le_of_lt_succ h1,
or.elim ... |
58c80ae5a9ec17326f18618159d094e66df23c58 | 57c233acf9386e610d99ed20ef139c5f97504ba3 | /src/combinatorics/simple_graph/degree_sum.lean | 332a3840fae66632fb8451ecf94d1cb9330f745c | [
"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 | 8,283 | lean | /-
Copyright (c) 2020 Kyle Miller. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Kyle Miller
-/
import combinatorics.simple_graph.basic
import algebra.big_operators.basic
import data.nat.parity
import data.zmod.parity
/-!
# Degree-sum formula and handshaking lemma
T... |
0062f79f3572b428937212abc3b713098a08b157 | 9dc8cecdf3c4634764a18254e94d43da07142918 | /src/data/fin/vec_notation.lean | a536d9fd64513ca1df25a0f089808d17577fe8c4 | [
"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 | 13,641 | lean | /-
Copyright (c) 2020 Anne Baanen. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Anne Baanen
-/
import data.fin.tuple
import data.list.range
import group_theory.group_action.pi
import meta.univs
/-!
# Matrix and vector notation
This file defines notation for vectors... |
5fa7d4928c9736b132bb1ba6f5a424cc260cec41 | a0e23cfdd129a671bf3154ee1a8a3a72bf4c7940 | /src/Lean/Elab/LetRec.lean | df2ac951d9a6bebf4a1845f7d065808e76ad3117 | [
"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 | 4,908 | 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.Attributes
import Lean.Elab.Binders
import Lean.Elab.DeclModifiers
import Lean.Elab.SyntheticMVars
import Lean.Elab.DeclarationRange
names... |
f8f14191e6362da9047217e13a364cf01125bef5 | 6432ea7a083ff6ba21ea17af9ee47b9c371760f7 | /tests/playground/filemap.lean | c440da6004b671509b7b5af776c834138e2b4216 | [
"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,412 | lean | structure Position :=
(line : Nat := 1)
(column : Nat := 0)
instance : Inhabited Position :=
⟨{}⟩
structure FileMap :=
(source : String)
(positions : Array String.Pos)
(lines : Array Nat)
namespace FileMap
instance : Inhabited FileMap :=
⟨{ source := "", positions := Array.empty, lines := Array.empty }⟩
p... |
6395d5a1a7c9a3ca3b36810e52c9c5310e1f293c | 957a80ea22c5abb4f4670b250d55534d9db99108 | /library/init/meta/well_founded_tactics.lean | 1423e006dedd92eea50f3e4ed30b4bb031dbaa36 | [
"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 | 6,323 | lean | /-
Copyright (c) 2017 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Leonardo de Moura
-/
prelude
import init.meta init.data.sigma.lex init.data.nat.lemmas init.data.list.instances
import init.data.list.qsort
/- TODO(Leo): move this lemma, or de... |
7bf740680b55171fe1e93d4af57b059135a26f21 | 2eab05920d6eeb06665e1a6df77b3157354316ad | /src/algebra/algebra/basic.lean | 843047bce1eac2dc7d6a2459e45712dc51329e33 | [
"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 | 53,371 | lean | /-
Copyright (c) 2018 Kenny Lau. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Kenny Lau, Yury Kudryashov
-/
import algebra.iterate_hom
import data.equiv.ring_aut
import algebra.module.basic
import linear_algebra.basic
import tactic.abel
/-!
# Algebras over commutati... |
927b355e9b930e3be8be85d9c4ee0ee78724aefa | 35677d2df3f081738fa6b08138e03ee36bc33cad | /src/data/rat/floor.lean | 5f8cb16b1e6561415032fb91fcfc49a08503d622 | [
"Apache-2.0"
] | permissive | gebner/mathlib | eab0150cc4f79ec45d2016a8c21750244a2e7ff0 | cc6a6edc397c55118df62831e23bfbd6e6c6b4ab | refs/heads/master | 1,625,574,853,976 | 1,586,712,827,000 | 1,586,712,827,000 | 99,101,412 | 1 | 0 | Apache-2.0 | 1,586,716,389,000 | 1,501,667,958,000 | Lean | UTF-8 | Lean | false | false | 1,049 | lean | /-
Copyright (c) 2019 Johannes Hölzl. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Johannes Hölzl, Mario Carneiro, Kevin Kappelmann
-/
import data.rat.order
import data.rat.cast
import algebra.floor
/-!
# Floor Function for Rational Numbers
## Summary
We define the... |
694516c3d434366ff935974a655b01e3c0b84165 | d9d511f37a523cd7659d6f573f990e2a0af93c6f | /src/field_theory/minpoly.lean | b21060081fc8c529d377ed5175faaeae232475d0 | [
"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 | 16,990 | lean | /-
Copyright (c) 2019 Chris Hughes. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Chris Hughes, Johan Commelin
-/
import data.polynomial.field_division
import ring_theory.integral_closure
import ring_theory.polynomial.gauss_lemma
/-!
# Minimal polynomials
This file ... |
5eaaf97370fffc8d84d348e8b2930365846ee193 | 5d166a16ae129621cb54ca9dde86c275d7d2b483 | /tests/lean/run/auto_quote1.lean | b61fe4358bc64102e86b54fcae3612d08d0efd6f | [
"Apache-2.0"
] | permissive | jcarlson23/lean | b00098763291397e0ac76b37a2dd96bc013bd247 | 8de88701247f54d325edd46c0eed57aeacb64baf | refs/heads/master | 1,611,571,813,719 | 1,497,020,963,000 | 1,497,021,515,000 | 93,882,536 | 1 | 0 | null | 1,497,029,896,000 | 1,497,029,896,000 | null | UTF-8 | Lean | false | false | 2,038 | lean | example (a b c : nat) : a = b → b = c → c = a :=
by {
intros,
apply eq.symm,
apply eq.trans,
assumption,
assumption
}
example (a b c : nat) : a = b → b = c → c = a :=
by intros; apply eq.symm; apply eq.trans; repeat {assumption}
example (p q r : Prop) : p → q → r → p ∧ q ∧ r ∧ p ∧ q :=
by intros; repeat {as... |
60b3f14d4e7c9d03d2386d10cc535482bcb90c51 | 4d2583807a5ac6caaffd3d7a5f646d61ca85d532 | /src/measure_theory/constructions/prod.lean | 9e4aa61261d227d4fe52dea5468902012f0b5b25 | [
"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 | 49,277 | 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.measure.giry_monad
import dynamics.ergodic.measure_preserving
import measure_theory.integral.set_integral
/-!
# The product measure
In thi... |
8cd0cfcc306d12bc36e866a9ef2b99943ed1adcc | a7eef317ddec01b9fc6cfbb876fe7ac00f205ac7 | /src/algebra/homology/chain_complex.lean | 82c36901c34f9b76cdec1c25db9ab4fb6d805423 | [
"Apache-2.0"
] | permissive | kmill/mathlib | ea5a007b67ae4e9e18dd50d31d8aa60f650425ee | 1a419a9fea7b959317eddd556e1bb9639f4dcc05 | refs/heads/master | 1,668,578,197,719 | 1,593,629,163,000 | 1,593,629,163,000 | 276,482,939 | 0 | 0 | null | 1,593,637,960,000 | 1,593,637,959,000 | null | UTF-8 | Lean | false | false | 4,445 | 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.graded_object
import category_theory.differential_object
/-!
# Chain complexes
We define a chain complex in `V` as a differential `ℤ`-graded ... |
f09c4f3d1d5ef1dec487980bad14cfbaa047bed0 | 302c785c90d40ad3d6be43d33bc6a558354cc2cf | /src/logic/function/conjugate.lean | e368e52df32357a5b38065199bdbd5ed4c486262 | [
"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 | 4,309 | 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 logic.function.basic
/-!
# Semiconjugate and commuting maps
We define the following predicates:
* `function.semiconj`: `f : α → β` semiconjugates `ga : α ... |
2fb0ba9a6982fd2021026c803d19d378f7b2e8ea | 618003631150032a5676f229d13a079ac875ff77 | /src/algebra/category/CommRing/basic.lean | a94ccaf667b9fbed46e5a1b269ddf67609686802 | [
"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 | 7,237 | lean | /-
Copyright (c) 2018 Scott Morrison. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Scott Morrison, Johannes Hölzl, Yury Kudryashov
-/
import algebra.category.Group
import data.equiv.ring
/-!
# Category instances for semiring, ring, comm_semiring, and comm_ring.
We ... |
daa8eccf909037f8dec3f0be0bb61cdeca232a17 | 3dc4623269159d02a444fe898d33e8c7e7e9461b | /.github/workflows/geo/src/skeleton.lean | caffe366a3f81ae1020fcb46983bf314c7177c4f | [] | 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 | 4,957 | lean | /- Author: E.W.Ayers
Skeleton category.
This should probably live in full_subcategory.lean
-/
import .pullbacks
import category_theory.full_subcategory
def logic.equivalence := @equivalence
namespace category_theory
universes u v
def is_thin (C : Type u) [𝒞 : category.{v} C] := ∀ {X Y : C}, subsingleton (... |
4f8957da6cd7a80cc397568318eee6f4bbe383d3 | 37a833c924892ee3ecb911484775a6d6ebb8984d | /src/category_theory/tactics/obviously.lean | 3351536f864bc2abb59012cfa370c48a437df24c | [] | no_license | silky/lean-category-theory | 28126e80564a1f99e9c322d86b3f7d750da0afa1 | 0f029a2364975f56ac727d31d867a18c95c22fd8 | refs/heads/master | 1,589,555,811,646 | 1,554,673,665,000 | 1,554,673,665,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 678 | lean | import category_theory.natural_isomorphism
import category_theory.products
import category_theory.types
import category_theory.fully_faithful
import category_theory.yoneda
import category_theory.limits.cones
import category_theory.equivalence
import tactic.tidy
import tactic.rewrite_search
open category_theory
@[sug... |
c0fc7d6c23acecd1df427189f57d8b3c758a2db6 | bb31430994044506fa42fd667e2d556327e18dfe | /src/algebra/algebra/basic.lean | b478de90292dcae05f76b1fa83f507abe0e8ec4f | [
"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 | 30,668 | lean | /-
Copyright (c) 2018 Kenny Lau. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Kenny Lau, Yury Kudryashov
-/
import algebra.module.basic
import algebra.module.ulift
import algebra.ne_zero
import algebra.ring.aut
import algebra.ring.ulift
import algebra.char_zero.lemma... |
23921813ceb2d8b24bc9c2e7e16da9ad69ff302f | cf39355caa609c0f33405126beee2739aa3cb77e | /tests/lean/run/smt_array.lean | 209c0a7b42760cf06b82408c40f2c1cb485274dd | [
"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 | 477 | lean | namespace ex
constant array : Type
constant read : array → nat → nat
constant write : array → nat → nat → array
axiom rw1 : ∀ a i v, read (: write a i v :) i = v
axiom rw2 : ∀ a i j v, i = j ∨ (: read (write a i v) j :) = read a j
attribute [ematch] rw1 rw2
lemma ex3 (a1 a2 a3 a4 a5 : array) (v : nat) :
a2 = write a1... |
2e1001e7aa3e8b8210d4663cf53f5328ef4380e4 | 57c233acf9386e610d99ed20ef139c5f97504ba3 | /src/linear_algebra/dual.lean | e40bce30993f15d63eac9f36a41d67e38e24866f | [
"Apache-2.0"
] | permissive | robertylewis/mathlib | 3d16e3e6daf5ddde182473e03a1b601d2810952c | 1d13f5b932f5e40a8308e3840f96fc882fae01f0 | refs/heads/master | 1,651,379,945,369 | 1,644,276,960,000 | 1,644,276,960,000 | 98,875,504 | 0 | 0 | Apache-2.0 | 1,644,253,514,000 | 1,501,495,700,000 | Lean | UTF-8 | Lean | false | false | 24,983 | lean | /-
Copyright (c) 2019 Johan Commelin. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Johan Commelin, Fabian Glöckle
-/
import linear_algebra.finite_dimensional
import linear_algebra.projection
/-!
# Dual vector spaces
The dual space of an R-module M is the R-module o... |
7e6797afa89afc28310447585456c65e079d4b06 | 618003631150032a5676f229d13a079ac875ff77 | /src/analysis/convex/topology.lean | f8c317e0000a0e771d07a7f1152f706a88f8c368 | [
"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 | 7,627 | lean | /-
Copyright (c) 2020 Yury Kudryashov. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Alexander Bentkamp, Yury Kudriashov
-/
import analysis.convex.basic
import analysis.normed_space.finite_dimension
/-!
# Topological and metric properties of convex sets
We prove the... |
900c1d30f7920a6a8cd2ea29f81f464483670b01 | 367134ba5a65885e863bdc4507601606690974c1 | /src/algebra/ring_quot.lean | 5f9cdf2fcfe8efc0da0a4f55fe3fd3c795a04285 | [
"Apache-2.0"
] | permissive | kodyvajjha/mathlib | 9bead00e90f68269a313f45f5561766cfd8d5cad | b98af5dd79e13a38d84438b850a2e8858ec21284 | refs/heads/master | 1,624,350,366,310 | 1,615,563,062,000 | 1,615,563,062,000 | 162,666,963 | 0 | 0 | Apache-2.0 | 1,545,367,651,000 | 1,545,367,651,000 | null | UTF-8 | Lean | false | false | 12,997 | 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.algebra.basic
import ring_theory.ideal.basic
/-!
# Quotients of non-commutative rings
Unfortunately, ideals have only been developed in the commutati... |
60d81cb7a15a2751ac337d8c301da081d13fd3a0 | 1a61aba1b67cddccce19532a9596efe44be4285f | /hott/init/function.hlean | 1e9b754a1bc861b8ebe91eb91264052e7ef91006 | [
"Apache-2.0"
] | permissive | eigengrau/lean | 07986a0f2548688c13ba36231f6cdbee82abf4c6 | f8a773be1112015e2d232661ce616d23f12874d0 | refs/heads/master | 1,610,939,198,566 | 1,441,352,386,000 | 1,441,352,494,000 | 41,903,576 | 0 | 0 | null | 1,441,352,210,000 | 1,441,352,210,000 | null | UTF-8 | Lean | false | false | 2,034 | hlean | /-
Copyright (c) 2014 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Author: Leonardo de Moura
General operations on functions.
-/
prelude
import init.reserved_notation .types
open prod
namespace function
variables {A B C D E : Type}
definition comp... |
5d67351d410b4a3598c1143c1f60b0b00960b693 | dc253be9829b840f15d96d986e0c13520b085033 | /homology/sphere.hlean | b0daeb6ebba90128aaa21973f5c7eb828e0ac9d7 | [
"Apache-2.0"
] | permissive | cmu-phil/Spectral | 4ce68e5c1ef2a812ffda5260e9f09f41b85ae0ea | 3b078f5f1de251637decf04bd3fc8aa01930a6b3 | refs/heads/master | 1,685,119,195,535 | 1,684,169,772,000 | 1,684,169,772,000 | 46,450,197 | 42 | 13 | null | 1,505,516,767,000 | 1,447,883,921,000 | Lean | UTF-8 | Lean | false | false | 1,319 | hlean | /-
Copyright (c) 2017 Kuen-Bang Hou (Favonia).
Released under Apache 2.0 license as described in the file LICENSE.
Author: Kuen-Bang Hou (Favonia)
-/
import .basic
open eq pointed group algebra circle sphere nat equiv susp
function sphere homology int lift
namespace homology
section
parameter (theory : homo... |
f3c87a57d4fc834fe8f50245f1b3119f822ed198 | 957a80ea22c5abb4f4670b250d55534d9db99108 | /tests/lean/run/exists_intro1.lean | 4745b6a4bd60df9da849a386fc91560dd9f168ec | [
"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 | 735 | lean | example : ∃ x : nat, x = x :=
Exists.intro 0 rfl
example : ∃ x : nat, x = x :=
exists.intro 0 rfl
lemma ex1 : ∃ x : nat, x = x :=
Exists.intro 0 rfl
lemma ex2 : ∃ x : nat, x = x :=
exists.intro 0 rfl
lemma ex3 : ∃ x y : nat, x = y :=
exists.intro 0 (exists.intro 0 rfl)
lemma ex4 : ∃ x y : nat, x = y + 1 :=
exists.... |
6c9cbc95ac3df82b6cbc5adbdecf30ddb55fd54f | 07c76fbd96ea1786cc6392fa834be62643cea420 | /hott/algebra/inf_group_theory.hlean | cbe7b9d891fa89113fd3c3961f072275dbd4051a | [
"Apache-2.0"
] | permissive | fpvandoorn/lean2 | 5a430a153b570bf70dc8526d06f18fc000a60ad9 | 0889cf65b7b3cebfb8831b8731d89c2453dd1e9f | refs/heads/master | 1,592,036,508,364 | 1,545,093,958,000 | 1,545,093,958,000 | 75,436,854 | 0 | 0 | null | 1,480,718,780,000 | 1,480,718,780,000 | null | UTF-8 | Lean | false | false | 15,924 | hlean | /-
Copyright (c) 2018 Floris van Doorn. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Floris van Doorn
-/
import .bundled .homomorphism types.nat.hott
open algebra eq is_equiv equiv pointed function is_trunc nat
universe variable u
namespace group
/- left and r... |
ddc2dafaf775063a5e4d1cd50e2e7afa34c02ad5 | d406927ab5617694ec9ea7001f101b7c9e3d9702 | /src/category_theory/limits/cones.lean | 4ceb2a89461eee9cf9e9dcf6bd06af51bf5b895b | [
"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 | 31,357 | lean | /-
Copyright (c) 2017 Scott Morrison. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Stephen Morgan, Scott Morrison, Floris van Doorn
-/
import category_theory.functor.const
import category_theory.discrete_category
import category_theory.yoneda
import category_theory.f... |
e79e2271a82f164d7e506ea0b981418fc4ef874b | bb31430994044506fa42fd667e2d556327e18dfe | /src/algebra/algebra/prod.lean | 7d24d8b4c08d002b2c8837ec64f9adbbe0240aa9 | [
"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 | 2,492 | lean | /-
Copyright (c) 2018 Kenny Lau. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Kenny Lau, Yury Kudryashov
-/
import algebra.algebra.hom
/-!
# The R-algebra structure on products of R-algebras
The R-algebra structure on `Π i : I, A i` when each `A i` is an R-algebra.... |
9e889eced53921ebdbe805942229723bd1cadcd7 | 35677d2df3f081738fa6b08138e03ee36bc33cad | /archive/cubing_a_cube.lean | 19194764830595dd39ad8493c528ef4910a10205 | [
"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 | 23,014 | lean | /-
Copyright (c) 2019 Floris van Doorn. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Author: Floris van Doorn
-/
import data.real.basic data.set.disjointed data.set.intervals set_theory.cardinal
/-!
Proof that a cube (in dimension n ≥ 3) cannot be cubed:
There does not exist ... |
83a8589404fad6a7ca325686394cf143d02d83ad | 97f752b44fd85ec3f635078a2dd125ddae7a82b6 | /library/algebra/interval.lean | 93836927b7ca5953f1ae1a86a54cc5e514d15d98 | [
"Apache-2.0"
] | permissive | tectronics/lean | ab977ba6be0fcd46047ddbb3c8e16e7c26710701 | f38af35e0616f89c6e9d7e3eb1d48e47ee666efe | refs/heads/master | 1,532,358,526,384 | 1,456,276,623,000 | 1,456,276,623,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 6,539 | lean | /-
Copyright (c) 2015 Jeremy Avigad. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Author: Jeremy Avigad
Notation for intervals and some properties.
The mnemonic: o = open, c = closed, i = infinity. For example, Ioi a b is '(a, ∞).
-/
import .order data.set
open set
namespa... |
ab9161836d52b64a1f9dfa7d65f749458980b1d8 | a4673261e60b025e2c8c825dfa4ab9108246c32e | /stage0/src/Lean/Elab/SyntheticMVars.lean | f98826320ae257a0b168cb48ba29abcaac0edd1d | [
"Apache-2.0"
] | permissive | jcommelin/lean4 | c02dec0cc32c4bccab009285475f265f17d73228 | 2909313475588cc20ac0436e55548a4502050d0a | refs/heads/master | 1,674,129,550,893 | 1,606,415,348,000 | 1,606,415,348,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 14,373 | 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.Util.ForEachExpr
import Lean.Elab.Term
import Lean.Elab.Tactic.Basic
namespace Lean.Elab.Term
open Tactic (TacticM evalTacti... |
879f702c3dec9cabda5397cbdb4825713d3138b2 | 1a1029143fdb66f3e9259ec8f4777b506173125d | /src/test_lean_mathlib.lean | f0fab96d9b0ab779575fea78badff29f6f7fecee | [] | no_license | loganrjmurphy/TMDE | d948672d4b792b38a3c4a6250dc4e5b44f3b43e6 | 2b416af0b2fe3b28bc2a17f2b8c8acc92fc12fd0 | refs/heads/main | 1,689,051,979,701 | 1,629,832,067,000 | 1,629,832,067,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 192 | lean | /-
Am I green?
Look below!
Is import blue?
No red squiggles?
Good to go!
-/
import algebra.add_torsor
/-
Otherwise something's wrong with your lean/mathlib install.
-/
def a := 1
#check ℕ |
d35702951aa7ef9ccbe8310a5d25c28e33ac9fcb | 367134ba5a65885e863bdc4507601606690974c1 | /src/data/fin.lean | edb22474b067b5e53a27c326ca5e6d79ccdd498e | [
"Apache-2.0"
] | permissive | kodyvajjha/mathlib | 9bead00e90f68269a313f45f5561766cfd8d5cad | b98af5dd79e13a38d84438b850a2e8858ec21284 | refs/heads/master | 1,624,350,366,310 | 1,615,563,062,000 | 1,615,563,062,000 | 162,666,963 | 0 | 0 | Apache-2.0 | 1,545,367,651,000 | 1,545,367,651,000 | null | UTF-8 | Lean | false | false | 60,529 | lean | /-
Copyright (c) 2017 Robert Y. Lewis. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Robert Y. Lewis, Keeley Hoek
-/
import data.nat.cast
import tactic.localized
import tactic.apply_fun
import order.rel_iso
/-!
# The finite type with `n` elements
`fin n` is the type... |
c98a839d9e20ce5ac559999b23a0b0a1c03b2871 | 8cae430f0a71442d02dbb1cbb14073b31048e4b0 | /src/measure_theory/function/conditional_expectation/ae_measurable.lean | 2cc7b7b1d1eb78e23a0887c245429f2ce3cf1afb | [
"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 | 33,062 | lean | /-
Copyright (c) 2021 Rémy Degenne. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Rémy Degenne
-/
import measure_theory.function.l2_space
import measure_theory.function.strongly_measurable.lp
/-! # Functions a.e. measurable with respect to a sub-σ-algebra
> THIS FIL... |
4cc2a9feb0556c1e2015908a0f2d4d1fb9ed7cd1 | 947b78d97130d56365ae2ec264df196ce769371a | /stage0/src/Lean/Meta/Tactic/Revert.lean | 3c09876011e6839d7b9a613a32b4732e29c99339 | [
"Apache-2.0"
] | permissive | shyamalschandra/lean4 | 27044812be8698f0c79147615b1d5090b9f4b037 | 6e7a883b21eaf62831e8111b251dc9b18f40e604 | refs/heads/master | 1,671,417,126,371 | 1,601,859,995,000 | 1,601,860,020,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 872 | 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.Tactic.Util
namespace Lean
namespace Meta
def revert (mvarId : MVarId) (fvars : Array FVarId) (preserveOrder : Bool := false) : MetaM (Ar... |
d50dc5445bdb61afa4e5c1d1789a4a650bcf066f | df7bb3acd9623e489e95e85d0bc55590ab0bc393 | /lean/love13_rational_and_real_numbers_exercise_sheet.lean | 60ad85d892e5df199e4edacc2834bcc974285da1 | [] | no_license | MaschavanderMarel/logical_verification_2020 | a41c210b9237c56cb35f6cd399e3ac2fe42e775d | 7d562ef174cc6578ca6013f74db336480470b708 | refs/heads/master | 1,692,144,223,196 | 1,634,661,675,000 | 1,634,661,675,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 1,146 | lean | import .love05_inductive_predicates_demo
import .love13_rational_and_real_numbers_demo
/- # LoVe Exercise 13: Rational and Real Numbers -/
set_option pp.beta true
set_option pp.generalized_field_notation false
namespace LoVe
/- ## Question 1: Rationals
1.1. Prove the following lemma.
Hint: The lemma `fraction.... |
74130352a61c2855cdb2206dce2e19b518adc754 | 35677d2df3f081738fa6b08138e03ee36bc33cad | /src/data/mv_polynomial.lean | 8f7f2f966cae2706f1040c5f746c798d6ea1d637 | [
"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 | 56,656 | 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, Shing Tak Lam
-/
import algebra.ring
import data.finsupp data.polynomial data.equiv.ring data.equiv.fin
import tactic.omega
/-!
# Mult... |
7da9a5db30595687120a967ff4656a48cbf87477 | 7cef822f3b952965621309e88eadf618da0c8ae9 | /src/data/pnat/basic.lean | b5d3ccd00cb9c0f538e4a439c024691c97ede285 | [
"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 | 11,449 | 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 ... |
78057f96948b36324ab83e82e8f56883fd217616 | 1437b3495ef9020d5413178aa33c0a625f15f15f | /analysis/emetric_space.lean | 3c5d7d7bef6c0c49a9eaa58f4dda2aef8dd9b679 | [
"Apache-2.0"
] | permissive | jean002/mathlib | c66bbb2d9fdc9c03ae07f869acac7ddbfce67a30 | dc6c38a765799c99c4d9c8d5207d9e6c9e0e2cfd | refs/heads/master | 1,587,027,806,375 | 1,547,306,358,000 | 1,547,306,358,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 14,257 | lean | /-
Copyright (c) 2015, 2017 Jeremy Avigad. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Extended metric spaces.
Authors: Jeremy Avigad, Robert Y. Lewis, Johannes Hölzl, Mario Carneiro, Sébastien Gouëzel
This file is devoted to the definition and study of `emetric_spaces`, i... |
2a4d88452d7c6f362aed1de3740b2f6279495679 | 0845ae2ca02071debcfd4ac24be871236c01784f | /tests/playground/binsearch.lean | 039084676af352678aaae74cb0536be3619fbe5e | [
"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 | 437 | lean | def mkAssocArray : Nat → Array (Nat × Bool) → Array (Nat × Bool)
| 0 as := as
| (i+1) as := mkAssocArray i (as.push (i, i % 2 == 0))
def main (xs : List String) : IO Unit :=
do
let n := xs.head.toNat,
let as := mkAssocArray n Array.empty,
let as := as.qsort (λ a b, a.1 < b.1),
(2*n).mfor $ λ i, do
let entry := ... |
bddee60a45268c613d10c5b331dce78c973d9594 | 42610cc2e5db9c90269470365e6056df0122eaa0 | /hott/types/default.hlean | 1f2f9b7ae27c6c172b38e40b406c5aaca4963ff0 | [
"Apache-2.0"
] | permissive | tomsib2001/lean | 2ab59bfaebd24a62109f800dcf4a7139ebd73858 | eb639a7d53fb40175bea5c8da86b51d14bb91f76 | refs/heads/master | 1,586,128,387,740 | 1,468,968,950,000 | 1,468,968,950,000 | 61,027,234 | 0 | 0 | null | 1,465,813,585,000 | 1,465,813,585,000 | null | UTF-8 | Lean | false | false | 260 | hlean | /-
Copyright (c) 2015 Floris van Doorn. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Floris van Doorn
-/
import .bool .unit .prod .sigma .pi .arrow .pointed .fiber
import .nat .int
import .eq .equiv .trunc
|
86c3852101147a413595e3487522ee8abaee4922 | 491068d2ad28831e7dade8d6dff871c3e49d9431 | /library/algebra/category/constructions.lean | b60976e691d0077ec98fa7eab27c3723495a1dbb | [
"Apache-2.0"
] | permissive | davidmueller13/lean | 65a3ed141b4088cd0a268e4de80eb6778b21a0e9 | c626e2e3c6f3771e07c32e82ee5b9e030de5b050 | refs/heads/master | 1,611,278,313,401 | 1,444,021,177,000 | 1,444,021,177,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 16,734 | 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
-- This file contains basic constructions on categories, including common categories
import .natural_transformation
import data.unit data.sigma data.prod dat... |
2147ff488360fbda335a1054e5ec922369952017 | d406927ab5617694ec9ea7001f101b7c9e3d9702 | /src/category_theory/shift.lean | 51d671b5b7f8c342c6899b3deba2130e6d856d82 | [
"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 | 18,214 | lean | /-
Copyright (c) 2020 Scott Morrison. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Scott Morrison, Johan Commelin, Andrew Yang
-/
import category_theory.limits.preserves.shapes.zero
import category_theory.monoidal.End
import category_theory.monoidal.discrete
/-!
# S... |
e0c6c6734e1641a6ce65f2f90da0d522c1c6f7d1 | 57fdc8de88f5ea3bfde4325e6ecd13f93a274ab5 | /algebra/group_power.lean | d89db16074aa91b37f1af227a623a0e5af6d1c82 | [
"Apache-2.0"
] | permissive | louisanu/mathlib | 11f56f2d40dc792bc05ee2f78ea37d73e98ecbfe | 2bd5e2159d20a8f20d04fc4d382e65eea775ed39 | refs/heads/master | 1,617,706,993,439 | 1,523,163,654,000 | 1,523,163,654,000 | 124,519,997 | 0 | 0 | Apache-2.0 | 1,520,588,283,000 | 1,520,588,283,000 | null | UTF-8 | Lean | false | false | 16,842 | lean | /-
Copyright (c) 2015 Jeremy Avigad. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Jeremy Avigad, Robert Y. Lewis
The power operation on monoids and groups. We separate this from group, because it depends on
nat, which in turn depends on other parts of algebra.
We h... |
2ce07513541823b91f830909cd80d4091b8aaaa1 | 9dc8cecdf3c4634764a18254e94d43da07142918 | /src/representation_theory/maschke.lean | 38d7d320ee236cbd7b170b1adc89cf790938a708 | [
"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 | 6,356 | 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.monoid_algebra.basic
import algebra.char_p.invertible
import algebra.regular.basic
import linear_algebra.basis
/-!
# Maschke's theorem
We prove **Mas... |
538bfd6e2d4c65bf4170243418536a76087b82dd | a4673261e60b025e2c8c825dfa4ab9108246c32e | /src/Lean/Meta/Tactic/Replace.lean | 241cad9ca213479f889d89cf78347f3da0f898bd | [
"Apache-2.0"
] | permissive | jcommelin/lean4 | c02dec0cc32c4bccab009285475f265f17d73228 | 2909313475588cc20ac0436e55548a4502050d0a | refs/heads/master | 1,674,129,550,893 | 1,606,415,348,000 | 1,606,415,348,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 4,223 | 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.Tactic.Util
import Lean.Meta.Tactic.Revert
import Lean.Meta.Tactic.Intro
import Lean.Meta.Tactic.Clear
import L... |
256bf8c0f41cb14153dc524a3c8ed07b9c389990 | 4f643cce24b2d005aeeb5004c2316a8d6cc7f3b1 | /src/o_minimal/sheaf/pfun.lean | 6a6077bf7b9012c19658465974cae599afd81a16 | [] | no_license | rwbarton/lean-omin | da209ed061d64db65a8f7f71f198064986f30eb9 | fd733c6d95ef6f4743aae97de5e15df79877c00e | refs/heads/master | 1,674,408,673,325 | 1,607,343,535,000 | 1,607,343,535,000 | 285,150,399 | 9 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 7,341 | lean | import data.pfun
import o_minimal.sheaf.covers
section orelse_pure
open_locale classical
noncomputable def roption.orelse_pure {α : Type*} (x : roption α) (y : α) :=
if h : x.dom then x.get h else y
-- TODO: Is this actually useful?
lemma roption.orelse_pure_eq_iff {α : Type*} {x : roption α} {y : α} (z : α) :
x.... |
33726096454f39e667ee977f446a5282f206d94f | a4673261e60b025e2c8c825dfa4ab9108246c32e | /stage0/src/Lean/Class.lean | d7793982cc6e1278b85385b33150c99e2ec44567 | [
"Apache-2.0"
] | permissive | jcommelin/lean4 | c02dec0cc32c4bccab009285475f265f17d73228 | 2909313475588cc20ac0436e55548a4502050d0a | refs/heads/master | 1,674,129,550,893 | 1,606,415,348,000 | 1,606,415,348,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 4,449 | 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.Attributes
namespace Lean
structure ClassEntry :=
(name : Name)
(hasOutParam : Bool)
namespace ClassEntry
def lt (a b : ClassEntry) : Bo... |
908804f5ce3651632d73958aec6cb48cd4a6abb2 | 947b78d97130d56365ae2ec264df196ce769371a | /src/Lean/Meta/AbstractMVars.lean | aae6f89e1b370abb869b7419773e6499c83a09b6 | [
"Apache-2.0"
] | permissive | shyamalschandra/lean4 | 27044812be8698f0c79147615b1d5090b9f4b037 | 6e7a883b21eaf62831e8111b251dc9b18f40e604 | refs/heads/master | 1,671,417,126,371 | 1,601,859,995,000 | 1,601,860,020,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 6,003 | 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
namespace Lean
namespace Meta
structure AbstractMVarsResult :=
(paramNames : Array Name)
(numMVars : Nat)
(expr : Expr)
in... |
a1348ce7d2f58e9efbf1f6b8ae11194a28df50fd | b7f22e51856f4989b970961f794f1c435f9b8f78 | /tests/lean/no_confusion_type.lean | da9ba343120e4377a3881b6e9f1f46e8fe2a532a | [
"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 | 339 | lean | import logic
open nat
inductive vector (A : Type) : nat → Type :=
vnil : vector A zero |
vcons : Π {n : nat}, A → vector A n → vector A (succ n)
check vector.no_confusion_type
constants a1 a2 : num
constants v1 v2 : vector num 2
constant P : Type₁
eval vector.no_confusion_type P (vector.vcons a1 v1) (vector.vco... |
e8d195ddf37a16c3b40acc10f7fe47e847aa36cf | 57aec6ee746bc7e3a3dd5e767e53bd95beb82f6d | /src/Lean/Elab/PreDefinition/Structural.lean | ec56bf6a6433d89002ecdb836424b71219f8a118 | [
"Apache-2.0"
] | permissive | collares/lean4 | 861a9269c4592bce49b71059e232ff0bfe4594cc | 52a4f535d853a2c7c7eea5fee8a4fa04c682c1ee | refs/heads/master | 1,691,419,031,324 | 1,618,678,138,000 | 1,618,678,138,000 | 358,989,750 | 0 | 0 | Apache-2.0 | 1,618,696,333,000 | 1,618,696,333,000 | null | UTF-8 | Lean | false | false | 23,537 | 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.ForEachExpr
import Lean.Meta.ForEachExpr
import Lean.Meta.RecursorInfo
import Lean.Meta.Match.Match
import Lean.Meta.Transform
import Lean.... |
6780b3dbe19866564d7271d42c651f098983aac3 | 947b78d97130d56365ae2ec264df196ce769371a | /tests/lean/run/121.lean | 792d867ad391d496464be97b064afeb2cc0de214 | [
"Apache-2.0"
] | permissive | shyamalschandra/lean4 | 27044812be8698f0c79147615b1d5090b9f4b037 | 6e7a883b21eaf62831e8111b251dc9b18f40e604 | refs/heads/master | 1,671,417,126,371 | 1,601,859,995,000 | 1,601,860,020,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 144 | lean | new_frontend
abbrev DelabM := Id
abbrev Delab := DelabM Nat
example : DelabM Nat := pure 1 -- works
example : Delab := pure 1 -- works
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.