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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
19c1e6b2899dc73f8a4d36891e225176465506e0 | ad0c7d243dc1bd563419e2767ed42fb323d7beea | /algebra/order.lean | 08bd6cd5d0311cc3ff36079a41148c9a831f544e | [
"Apache-2.0"
] | permissive | sebzim4500/mathlib | e0b5a63b1655f910dee30badf09bd7e191d3cf30 | 6997cafbd3a7325af5cb318561768c316ceb7757 | refs/heads/master | 1,585,549,958,618 | 1,538,221,723,000 | 1,538,221,723,000 | 150,869,076 | 0 | 0 | Apache-2.0 | 1,538,229,323,000 | 1,538,229,323,000 | null | UTF-8 | Lean | false | false | 5,241 | lean | /-
Copyright (c) 2017 Mario Carneiro. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Mario Carneiro
-/
universe u
variables {α : Type u}
lemma not_le_of_lt [preorder α] {a b : α} (h : a < b) : ¬ b ≤ a :=
(le_not_le_of_lt h).right
lemma not_lt_of_le [preorder α] {a b... |
b37266c2f87dfe34257d20af2584ddde7b5c53f8 | 97c8e5d8aca4afeebb5b335f26a492c53680efc8 | /ground_zero/cubical/default.lean | c506b3b90d68b5ac3e49f644408715eedfaee67c | [] | no_license | jfrancese/lean | cf32f0d8d5520b6f0e9d3987deb95841c553c53c | 06e7efaecce4093d97fb5ecc75479df2ef1dbbdb | refs/heads/master | 1,587,915,151,351 | 1,551,012,140,000 | 1,551,012,140,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 31 | lean | import ground_zero.cubical.path |
9d0bf2ccfcaf9b5573ab9062a8e4a66858dcf30a | 8cae430f0a71442d02dbb1cbb14073b31048e4b0 | /src/category_theory/abelian/left_derived.lean | 1b4a39141973b98fb0cadca1de24a50668c9d0f6 | [
"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 | 7,291 | lean | /-
Copyright (c) 2022 Riccardo Brasca. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Riccardo Brasca, Adam Topaz
-/
import category_theory.abelian.homology
import category_theory.functor.left_derived
import category_theory.abelian.projective
import category_theory.li... |
02162474a43ad34fe8ec663f9b92c5b2998548c4 | 2c1ae42b7676ac4a573a53b902feb68be1ea98f7 | /src/inductive.lean | bd94d50afcc9cace558762a49733ddb7043a8f24 | [] | no_license | rodrigogribeiro/lean-tutorial | 67d9793fdfba1ddd418ec5c29c30564ff3f4987a | 564254d582181d08eedf241781ab5a4c9ce8d832 | refs/heads/master | 1,610,252,605,463 | 1,447,618,793,000 | 1,447,618,793,000 | 43,224,821 | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 2,054 | lean |
inductive weekday : Type :=
| sunday : weekday
| monday : weekday
| tuesday : weekday
| wednesday : weekday
| thursday : weekday
| friday : weekday
| saturday : weekday
open weekday
namespace weekday
local abbreviation cases_on := @weekday.cases_on
definition number_of_day (d : weekday) : nat :=
weekday.r... |
a01d794585ee756358206da15035df71c15b65b6 | fa02ed5a3c9c0adee3c26887a16855e7841c668b | /src/analysis/convex/extrema.lean | ee9a15b29e7547b7d234bce021ce19f95bdb3adf | [
"Apache-2.0"
] | permissive | jjgarzella/mathlib | 96a345378c4e0bf26cf604aed84f90329e4896a2 | 395d8716c3ad03747059d482090e2bb97db612c8 | refs/heads/master | 1,686,480,124,379 | 1,625,163,323,000 | 1,625,163,323,000 | 281,190,421 | 2 | 0 | Apache-2.0 | 1,595,268,170,000 | 1,595,268,169,000 | null | UTF-8 | Lean | false | false | 5,419 | lean | /-
Copyright (c) 2020 Frédéric Dupuis. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Frédéric Dupuis
-/
import analysis.calculus.local_extr
import topology.algebra.affine
/-!
# Minima and maxima of convex functions
We show that if a function `f : E → β` is convex, ... |
04a26dda5f36a5b344804f3e3abdde90b85948c3 | 64874bd1010548c7f5a6e3e8902efa63baaff785 | /tests/lean/error_full_names.lean | f3e13c23c76b66118132b1f3fd014af935937a00 | [
"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 | 165 | lean | namespace foo
open nat
inductive nat : Type := zero, foosucc : nat → nat
check 0 + nat.zero --error
end foo
namespace foo
check nat.succ nat.zero --error
end foo
|
96fadeb7b8486016b9b6bee7d6de3ee6a4e03f56 | 0f54cce53cdd7d43dc5b0017dfb0a3eaf09ba18a | /src/simp_loop/monotone_elim.lean | 2e03f005b75642a8d46b71e82a898138a23a026e | [] | no_license | johoelzl/lean-simp-loop | dabc7629b21e319fa0b9c45639c82f9bea57a18a | c1ad8c34be7c6fd323fc5eff5ce337fd23a72e04 | refs/heads/master | 1,618,774,503,904 | 1,525,883,646,000 | 1,525,883,646,000 | 126,789,660 | 1 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 13,021 | 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
Monotone version of 1-point elimination for ∃ (and ∀).
`∃x, t[x, R x a] ~> t[a, rfl]`
with the (reflexive) relation `R`, and `t` is monotone in `R`:
`∀x y, R x y ... |
c6f2a5ccf5f5666604b66d0c44bbc57669171033 | 74addaa0e41490cbaf2abd313a764c96df57b05d | /Mathlib/algebra/group_with_zero/default_auto.lean | 118d489f4fa657600cbe9bd44cc208d619d7e44a | [] | 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 | 160 | lean | import Mathlib.PrePort
import Mathlib.Lean3Lib.init.default
import Mathlib.algebra.group_with_zero.basic
import Mathlib.PostPort
namespace Mathlib
end Mathlib |
77a8f5abf6a1d1af7a250a7d99ad966790df92a8 | 957a80ea22c5abb4f4670b250d55534d9db99108 | /library/init/category/functor.lean | 2a242db99c060d4c140bdd03823a97e655e4b848 | [
"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,066 | lean | /-
Copyright (c) Luke Nelson and Jared Roesch. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Luke Nelson, Jared Roesch, Sebastian Ullrich, Leonardo de Moura
-/
prelude
import init.core init.function init.meta.name
open function
universes u v
section
set_option auto_p... |
8f68ed4367d188524bba98688e7fca4b8a08b1e4 | 4727251e0cd73359b15b664c3170e5d754078599 | /src/order/well_founded_set.lean | 93e24066cdf741caa308278299a3e25e44d214a1 | [
"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,354 | lean | /-
Copyright (c) 2021 Aaron Anderson. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Aaron Anderson
-/
import data.set.pointwise
import order.antichain
import order.order_iso_nat
import order.well_founded
/-!
# Well-founded sets
A well-founded subset of an ordered ty... |
f06b975b2bc2cb5f2f9f08923c92b3d0724ef97a | 0b34fcbb56406e6ace0afd1986262e6f1d37047f | /Lean/TensorFlowModel.lean | ed4c170b264a7c9efb8898e6a65795614430d577 | [] | no_license | DragonLi/exercise | 4315eeb557a8e8d6105f9eeb795a09c03453d0eb | a5de48643c8df04f6f79ca746efb9f969c10eb8c | refs/heads/master | 1,626,276,318,220 | 1,615,186,706,000 | 1,615,186,706,000 | 18,544,224 | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 1,579 | lean | import data.vector
import init.data.array.basic
--import data.fp.basic
namespace TensorFlowModel
definition PosNat := {n:nat // n > 0}
def PosNat.one : PosNat := ⟨ 1 , nat.lt_succ_self _ ⟩
--#print one_as_pos_nat._proof_1
def PosNat.Add (x y:PosNat) : PosNat := ⟨ x.val + y.val , add_pos x.property y.property ⟩
--#p... |
e6d459f45703a1b3193a37df242e79b4be2e746a | 947b78d97130d56365ae2ec264df196ce769371a | /tests/lean/run/doNotation1.lean | 503329aeef621426aaa297eca795a165b2b0c44a | [
"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 | 3,142 | lean | new_frontend
open Lean
def f : IO Nat :=
pure 0
def g (x : Nat) : IO Nat :=
pure (x + 1)
def g1 {α : Type} (x : α) : IO (α × α) :=
pure (x, x)
def g2 (p : Nat × Nat) : Nat :=
p.1
set_option trace.Elab.definition true
def h (x : Nat) : StateT Nat IO Nat := do
let s ← get;
let a ← f; -- liftM inserted here
let... |
0799fab46ead611d6e7832fad23fc726aaff5fa6 | 6432ea7a083ff6ba21ea17af9ee47b9c371760f7 | /tests/lean/eraseSimp.lean | 211b764b7c3f84a748b03de603c756ec24c0ae06 | [
"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 | 677 | lean | theorem foo (n : Nat) : n + n = 2*n := by
rw [Nat.mul_comm, Nat.mul_succ, Nat.mul_succ, Nat.mul_zero, Nat.zero_add]
attribute [-simp] foo -- Error
theorem ex1 {a b : Nat} (h₁ : a = b) : 0 + a = b := by
simp
assumption
section
attribute [-simp] Nat.zero_add
theorem ex2 {a b : Nat} (h₁ : a = b) : 0 + a = b := ... |
dbbfdcc275f89d9e2384d3867919eb18809404f1 | d29d82a0af640c937e499f6be79fc552eae0aa13 | /src/linear_algebra/free_module_pid.lean | e76d70bf61f36b8ba356014491de272349576d88 | [
"Apache-2.0"
] | permissive | AbdulMajeedkhurasani/mathlib | 835f8a5c5cf3075b250b3737172043ab4fa1edf6 | 79bc7323b164aebd000524ebafd198eb0e17f956 | refs/heads/master | 1,688,003,895,660 | 1,627,788,521,000 | 1,627,788,521,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 17,776 | 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 linear_algebra.basis
import linear_algebra.finsupp_vector_space
import ring_theory.principal_ideal_domain
import ring_theory.finiteness
/-! # Free modules over PID
... |
e1a5314bed9d171a839f165290b73356996145b0 | 7da5ceac20aaab989eeb795a4be9639982e7b35a | /src/group_theory/monster.lean | 28465e7410e0a730dcb2ff34c44f7f16bad61492 | [
"MIT"
] | permissive | formalabstracts/formalabstracts | 46c2f1b3a172e62ca6ffeb46fbbdf1705718af49 | b0173da1af45421239d44492eeecd54bf65ee0f6 | refs/heads/master | 1,606,896,370,374 | 1,572,988,776,000 | 1,572,988,776,000 | 96,763,004 | 165 | 28 | null | 1,555,709,319,000 | 1,499,680,948,000 | Lean | UTF-8 | Lean | false | false | 2,140 | lean | import ..data.dvector .presentation
open category_theory (mk_ob)
local notation h :: t := dvector.cons h t
local notation `[` l:(foldr `, ` (h t, dvector.cons h t) dvector.nil `]`) := l
/- The Monster group -/
/- according to: https://mathoverflow.net/questions/142205/presentation-of-the-monster-group
There's a 1... |
288958082f0dfa71d65e5dd7d55d8792c3e0c738 | 57c233acf9386e610d99ed20ef139c5f97504ba3 | /src/set_theory/game/nim.lean | 07450f0bbce84d8983acbe179b001d2c57b4ef16 | [
"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 | 15,318 | lean | /-
Copyright (c) 2020 Fox Thomson. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Fox Thomson, Markus Himmel
-/
import data.nat.bitwise
import set_theory.game.impartial
import set_theory.ordinal_arithmetic
/-!
# Nim and the Sprague-Grundy theorem
This file contains t... |
58eb7b82516489896e0899ebfc9781500dfd20bc | fa02ed5a3c9c0adee3c26887a16855e7841c668b | /src/data/list/of_fn.lean | d9a09e2d012fb2dba31714657bdeff6579ddcfe4 | [
"Apache-2.0"
] | permissive | jjgarzella/mathlib | 96a345378c4e0bf26cf604aed84f90329e4896a2 | 395d8716c3ad03747059d482090e2bb97db612c8 | refs/heads/master | 1,686,480,124,379 | 1,625,163,323,000 | 1,625,163,323,000 | 281,190,421 | 2 | 0 | Apache-2.0 | 1,595,268,170,000 | 1,595,268,169,000 | null | UTF-8 | Lean | false | false | 3,376 | 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 data.list.basic
import data.fin
universes u
variables {α : Type u}
open nat
namespace list
/- of_fn -/
theorem length_of_fn_aux {n} (f : fin n → α) :
∀ ... |
915e30d4205bd4eb9a197aeb181a50a517555aea | f5f7e6fae601a5fe3cac7cc3ed353ed781d62419 | /src/measure_theory/giry_monad.lean | a0492eb50add55dc4dd379cfaa58b870c724963f | [
"Apache-2.0"
] | permissive | EdAyers/mathlib | 9ecfb2f14bd6caad748b64c9c131befbff0fb4e0 | ca5d4c1f16f9c451cf7170b10105d0051db79e1b | refs/heads/master | 1,626,189,395,845 | 1,555,284,396,000 | 1,555,284,396,000 | 144,004,030 | 0 | 0 | Apache-2.0 | 1,533,727,664,000 | 1,533,727,663,000 | null | UTF-8 | Lean | false | false | 6,960 | 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
Giry monad: `measure` is a monad in the category of `measurable_space` and `measurable` functions.
-/
import measure_theory.integration data.sum
noncomputable theory
lo... |
3ebccae171a9723f1cfc089975a5ae1e8cab5d33 | cf39355caa609c0f33405126beee2739aa3cb77e | /tests/lean/frozen_local_instances.lean | ce6817f1c7ee6b51c9aa4d75ba569a259561ae89 | [
"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 | 233 | lean | example (α : Type) [has_add α] [has_mul α] [decidable_eq α] : true :=
begin
(tactic.frozen_local_instances >>= tactic.trace),
tactic.unfreeze_local_instances,
(tactic.frozen_local_instances >>= tactic.trace),
trivial
end
|
32adf00d6742ec34508029246cb1523b005f1605 | 6dc0c8ce7a76229dd81e73ed4474f15f88a9e294 | /stage0/src/Lean/Meta/Tactic/Subst.lean | 4c0a907afc73e0ca1a02a7ffed00e3d4ed9163a0 | [
"Apache-2.0"
] | permissive | williamdemeo/lean4 | 72161c58fe65c3ad955d6a3050bb7d37c04c0d54 | 6d00fcf1d6d873e195f9220c668ef9c58e9c4a35 | refs/heads/master | 1,678,305,356,877 | 1,614,708,995,000 | 1,614,708,995,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 7,981 | lean | /-
Copyright (c) 2020 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Leonardo de Moura
-/
import Lean.Meta.AppBuilder
import Lean.Meta.MatchUtil
import Lean.Meta.Tactic.Util
import Lean.Meta.Tactic.Revert
import Lean.Meta.Tactic.Assert
import Lea... |
a0ca33ab54111172f127e475b05ee9d648275d9e | 83c8119e3298c0bfc53fc195c41a6afb63d01513 | /library/init/algebra/functions.lean | 4de1620e823bb691ae8c83b38e7ebaf702bf3426 | [
"Apache-2.0"
] | permissive | anfelor/lean | 584b91c4e87a6d95f7630c2a93fb082a87319ed0 | 31cfc2b6bf7d674f3d0f73848b842c9c9869c9f1 | refs/heads/master | 1,610,067,141,310 | 1,585,992,232,000 | 1,585,992,232,000 | 251,683,543 | 0 | 0 | Apache-2.0 | 1,585,676,570,000 | 1,585,676,569,000 | null | UTF-8 | Lean | false | false | 17,342 | lean | /-
Copyright (c) 2016 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Jeremy Avigad, Leonardo de Moura
-/
prelude
import init.algebra.ordered_field
universe u
definition min {α : Type u} [decidable_linear_order α] (a b : α) : α := if a ≤ b then ... |
ebb09ea24a2a3076e734d572c820b704763b3b6a | a0e23cfdd129a671bf3154ee1a8a3a72bf4c7940 | /src/Lean/Meta/GetConst.lean | 809828330f480ae224cd7404cd68d2c22ae35229 | [
"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 | 1,415 | 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.Instances
namespace Lean.Meta
private def getDefInfo (info : ConstantInfo) : MetaM (Option ConstantInfo) := do
match (← read).config.tr... |
84e5c71296f2535552833a1fb952181c5b53cd56 | 491068d2ad28831e7dade8d6dff871c3e49d9431 | /hott/algebra/group.hlean | c6cb4a66562d8ed47db19fe4e516e31b571aaf5a | [
"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 | 19,078 | hlean | /-
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
Various multiplicative and additive structures.
Ported from the standard library
-/
import algebra.binary
open eq is_trunc binary -- note: ⁻¹ will b... |
63aa530255cd3930509bef14aa2c6e847b742345 | c777c32c8e484e195053731103c5e52af26a25d1 | /src/ring_theory/subsemiring/basic.lean | f06b9c51eff95dc5ed8fa4788afbb539d909accc | [
"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 | 47,689 | 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 algebra.module.basic
import algebra.ring.equiv
import algebra.ring.prod
import algebra.order.ring.inj_surj
import algebra.group_ring_action.subobjects
import... |
c527e92de53de6da11949fde373c5fc2779dca9a | e06c671a00e35fd4519f2a873357dbe68de8f8fe | /library/unit.lean | f11b85e588ffa5bcebbb2774c6d44722d5803986 | [] | no_license | kevinsullivan/lfp | cf6d17477dfeac6e214773e831cd6b2a63009d0d | 5801f30c61caf6f1a4c7a2e38bd2563bc4b74f03 | refs/heads/master | 1,611,377,645,056 | 1,490,641,032,000 | 1,490,641,032,000 | 86,255,290 | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 98 | lean | namespace cs1
inductive unit : Type
| star : unit
def id (u: unit): unit :=
unit.star
end cs1
|
9aee7da995aa786a8774b28339d4ceb10f0a1582 | 130c49f47783503e462c16b2eff31933442be6ff | /stage0/src/Lean/Util.lean | a2c7c62ea65a69a137e740d73c2e5ce8445fdceb | [
"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 | 710 | 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.CollectFVars
import Lean.Util.CollectLevelParams
import Lean.Util.CollectMVars
import Lean.Util.FindMVar
import Lean.Util.FindLevelMVar
imp... |
40e43ce9fe216dbfc32a627eb38d0db11be55462 | 43390109ab88557e6090f3245c47479c123ee500 | /src/M1F/problem_bank/0304/Q0304.lean | b23571b3903a7ff4d7951ea039167d900e0ee9d1 | [
"Apache-2.0"
] | permissive | Ja1941/xena-UROP-2018 | 41f0956519f94d56b8bf6834a8d39473f4923200 | b111fb87f343cf79eca3b886f99ee15c1dd9884b | refs/heads/master | 1,662,355,955,139 | 1,590,577,325,000 | 1,590,577,325,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 261 | lean | universe u
theorem lt_iff_sub_neg {α : Type} [ordered_comm_group α] {a b : α} :
a - b < 0 ↔ a < b := ⟨lt_of_sub_neg,sub_neg_of_lt⟩
theorem Q4 : { x : ℝ | x ≠ 0 ∧ 3*x + 1/x < 4 } = {x : ℝ | x<0 ∨ ( ((1:ℝ)/3)<x ∧ x<1) } := sorry
|
7731205e6d44b16b287ce4ec859fd20cd96b6a05 | 7cef822f3b952965621309e88eadf618da0c8ae9 | /src/algebra/group/type_tags.lean | b68fe784a4558e6f62426a62e282ba9fba028cf6 | [
"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,532 | lean | /-
Copyright (c) 2018 Mario Carneiro. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Mario Carneiro
Type tags `multiplicative` and `additive` that turn additive structures into multiplicative, and vice versa
-/
import algebra.group.hom
universes u v
variables {α : Ty... |
abd2a673e691954c4e3e3cc47963e03ae21465de | 5ec8f5218a7c8e87dd0d70dc6b715b36d61a8d61 | /archi.lean | 9462155e534e9bd2bf6ed4ad54679bd29a24714a | [] | no_license | mbrodersen/kremlin | f9f2f9dd77b9744fe0ffd5f70d9fa0f1f8bd8cec | d4665929ce9012e93a0b05fc7063b96256bab86f | refs/heads/master | 1,624,057,268,130 | 1,496,957,084,000 | 1,496,957,084,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 130 | lean |
-- Configure here
import .archi.sorry
--import .archi.arm
--import .archi.powerpc
--import .archi.x86_32
--import .archi.x86_64
|
7a70e6a5c2e8fb1b487942f778da5a96a612229f | 947b78d97130d56365ae2ec264df196ce769371a | /tests/lean/string_imp.lean | d7a3a8612600ec03c6e457989ed2d37779332b9d | [
"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 | 352 | lean | new_frontend
#eval ("abc" ++ "cde").length
#eval ("abcd".mkIterator.nextn 2).remainingToString
#eval ("abcd".mkIterator.nextn 10).remainingToString
#eval "αβ".length
#eval "αβcc".mkIterator.pos
#eval "αβcc".mkIterator.next.pos
#eval "αβcc".mkIterator.next.next.pos
#eval "αβcc".mkIterator.next.setCurr 'a'
#eval "αβcd".m... |
f4201355dfcd2f63035ade0eb1e8cf0b0566b273 | 957a80ea22c5abb4f4670b250d55534d9db99108 | /tests/lean/run/simp_lemma_issue.lean | 8ab5da177310c47f61df79b0c583386968265bcf | [
"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 | 348 | lean | universe variables u
def ex {α : Type u} [comm_semiring α] (a : α) : 0 + a = a :=
zero_add a
local attribute [-simp] zero_add add_zero
attribute [simp] ex
example (a b : nat) : 0 + 0 + a = a :=
by simp
local attribute [-ematch] zero_add add_zero
attribute [ematch] ex
example (a b : nat) : 0 + 0 + a = a :=
by using... |
f41b08a9a06b6224bf31259de72677244ac1aec1 | 3dd1b66af77106badae6edb1c4dea91a146ead30 | /tests/lean/run/is_nil.lean | 2a92db72670ea368c0cb5442519c29b1ab5a8f78 | [
"Apache-2.0"
] | permissive | silky/lean | 79c20c15c93feef47bb659a2cc139b26f3614642 | df8b88dca2f8da1a422cb618cd476ef5be730546 | refs/heads/master | 1,610,737,587,697 | 1,406,574,534,000 | 1,406,574,534,000 | 22,362,176 | 1 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 1,293 | lean | import standard
using tactic
inductive list (A : Type) : Type :=
| nil {} : list A
| cons : A → list A → list A
definition is_nil {A : Type} (l : list A) : Prop
:= list_rec true (fun h t r, false) l
theorem is_nil_nil (A : Type) : is_nil (@nil A)
:= eqt_elim (refl true)
theorem cons_ne_nil {A : Type} (a : A) (l :... |
08e7332100ed1fb111bc3ba90fad2cceecf35716 | 4727251e0cd73359b15b664c3170e5d754078599 | /src/algebra/ring_quot.lean | 707b36502dd678218d21031c653c976d9536c3cf | [
"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 | 16,488 | 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.quotient
/-!
# Quotients of non-commutative rings
Unfortunately, ideals have only been developed in the commut... |
56a169d88486f5654080c26ed236b4791857900b | 4efff1f47634ff19e2f786deadd394270a59ecd2 | /src/algebraic_geometry/Spec.lean | 76dd9ab1b5d4fd0821d1b2bdf6429708191dbe26 | [
"Apache-2.0"
] | permissive | agjftucker/mathlib | d634cd0d5256b6325e3c55bb7fb2403548371707 | 87fe50de17b00af533f72a102d0adefe4a2285e8 | refs/heads/master | 1,625,378,131,941 | 1,599,166,526,000 | 1,599,166,526,000 | 160,748,509 | 0 | 0 | Apache-2.0 | 1,544,141,789,000 | 1,544,141,789,000 | null | UTF-8 | Lean | false | false | 965 | 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 algebraic_geometry.locally_ringed_space
import algebraic_geometry.structure_sheaf
/-!
# $Spec R$ as a `SheafedSpace`
We bundle the `structure_sheaf R` constr... |
5f8022708240c45cd0bb22b32fdb8b34c17e1510 | 947b78d97130d56365ae2ec264df196ce769371a | /stage0/src/Lean/Compiler/IR/FreeVars.lean | 279052aabb555e92413c191d56eb23dc3087b210 | [
"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 | 9,331 | 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.Compiler.IR.Basic
namespace Lean
namespace IR
namespace MaxIndex
/- Compute the maximum index `M` used in a declaration.
We `M` to initiali... |
72a805313d4f04f5c5f136a6a891e388e4d99a40 | 4f065978c49388d188224610d9984673079f7d91 | /enough_injectives.lean | a8dcc5ffc5849f5d091e9db81d6e95dd7c31047c | [] | no_license | kckennylau/Lean | b323103f52706304907adcfaee6f5cb8095d4a33 | 907d0a4d2bd8f23785abd6142ad53d308c54fdcb | refs/heads/master | 1,624,623,720,653 | 1,563,901,820,000 | 1,563,901,820,000 | 109,506,702 | 3 | 1 | null | null | null | null | UTF-8 | Lean | false | false | 3,998 | lean | import linear_algebra.linear_map_module data.rat
namespace Q_div_Z
instance Q_div_Z.setoid : setoid ℚ :=
⟨λ x y, ∃ n : ℤ, x-y = n,
λ x, ⟨0, by simp⟩,
λ x y ⟨n, h⟩, ⟨-n, by simp [h.symm]⟩,
λ x y z ⟨m, hm⟩ ⟨n, hn⟩, ⟨m + n, by simp [hm.symm, hn.symm]⟩⟩
end Q_div_Z
def Q_div_Z : Type :=
quotient Q_div_Z.Q_div_Z.seto... |
b4fb1ecb77a1a7434b293796e105f5b78a1f05cf | 33340b3a23ca62ef3c8a7f6a2d4e14c07c6d3354 | /lia/formula.lean | 85c5980e40b89e9d72fd6c385f8a7c1d709656d8 | [] | no_license | lclem/cooper | 79554e72ced343c64fed24b2d892d24bf9447dfe | 812afc6b158821f2e7dac9c91d3b6123c7a19faf | refs/heads/master | 1,607,554,257,488 | 1,578,694,133,000 | 1,578,694,133,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 7,085 | lean | import ..dot_prod ..logic .atom
inductive formula : Type
| true : formula
| false : formula
| atom : atom → formula
| and : formula → formula → formula
| or : formula → formula → formula
| not : formula → formula
| ex : formula → formula
-- | ⊤' := sorry
-- | ⊥' := sorry
-- | (A' a) := sorry
-- | (p ∧' q) :... |
51a6552ea3c8369c1a9cc6f010cd3e202243c447 | 4727251e0cd73359b15b664c3170e5d754078599 | /src/order/compactly_generated.lean | 39d8ad5f48499e71d7af64f17d993588047695f7 | [
"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 | 19,817 | 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 tactic.tfae
import order.atoms
import order.order_iso_nat
import order.sup_indep
import order.zorn
import data.finset.order
/-!
# Compactness properties for complet... |
32beeb85d2a19c5a1a960aa1e4e0030c581f4f9a | 5ae26df177f810c5006841e9c73dc56e01b978d7 | /src/algebra/order.lean | 4130cc5f37c7b22f95147c92ff2d437922545eb2 | [
"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 | 9,155 | lean | /-
Copyright (c) 2017 Mario Carneiro. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Mario Carneiro
-/
universe u
variables {α : Type u}
lemma not_le_of_lt [preorder α] {a b : α} (h : a < b) : ¬ b ≤ a :=
(le_not_le_of_lt h).right
lemma not_lt_of_le [preorder α] {a b... |
14858fe49dc547111a5e1b12d027a5eb4560e538 | a9d0fb7b0e4f802bd3857b803e6c5c23d87fef91 | /library/data/examples/vector.lean | 7a392c666227a78433f1c93c5033c8f1004917e1 | [
"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 | 13,190 | 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, Leonardo de Moura
This file demonstrates how to encode vectors using indexed inductive families.
In standard library we do not use this approach.
-/
import data.nat... |
0390e90d53fce11ef28f99c98c769fb4631c9d7e | 57c233acf9386e610d99ed20ef139c5f97504ba3 | /src/linear_algebra/matrix/polynomial.lean | ffefedc9af8aa677954f596b82c3f04339d6418d | [
"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 | 4,076 | 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 algebra.polynomial.big_operators
import data.polynomial.degree.lemmas
import data.polynomial.eval
import data.polynomial.monic
import linear_algebra.matrix.d... |
18c52384e6b42e173d59b1585f2e5b40c388d166 | 9a0b1b3a653ea926b03d1495fef64da1d14b3174 | /tidy/lib/string.lean | 8f609bf9c888427de3a346804079393fba6feaea | [
"Apache-2.0"
] | permissive | khoek/mathlib-tidy | 8623b27b4e04e7d598164e7eaf248610d58f768b | 866afa6ab597c47f1b72e8fe2b82b97fff5b980f | refs/heads/master | 1,585,598,975,772 | 1,538,659,544,000 | 1,538,659,544,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 315 | lean | import data.buffer
import .list
meta def string.lconcat : list string → string
| [] := ""
| (s :: rest) := s ++ string.lconcat rest
def string.split_on (c : char) (s : string) := (s.to_list.split_on c).map (λ l, l.as_string)
def char_buffer.from_list (l : list char) : char_buffer := buffer.nil.append_list l |
4015c17944d48c2f227a610c25539d1e3c7fefad | aa3f8992ef7806974bc1ffd468baa0c79f4d6643 | /library/data/unit/decl.lean | 2860fbec1aed4f5f41e585e77c0a1064cb66e351 | [
"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 | 263 | lean | -- Copyright (c) 2014 Microsoft Corporation. All rights reserved.
-- Released under Apache 2.0 license as described in the file LICENSE.
-- Author: Leonardo de Moura
inductive unit.{l} : Type.{l} :=
star : unit
namespace unit
notation `⋆` := star
end unit
|
6984432870d6f7dacb5c2cd55edd8c21793ffb39 | 271e26e338b0c14544a889c31c30b39c989f2e0f | /tests/lean/run/expr1.lean | 1c06fac9827fa344fcac5b6ef20180fbadcef3d2 | [
"Apache-2.0"
] | permissive | dgorokho/lean4 | 805f99b0b60c545b64ac34ab8237a8504f89d7d4 | e949a052bad59b1c7b54a82d24d516a656487d8a | refs/heads/master | 1,607,061,363,851 | 1,578,006,086,000 | 1,578,006,086,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 3,881 | lean | import Init.Lean.Expr
open Lean
def tst1 : IO Unit :=
do let f := mkConst `f [];
let a := mkConst `a [];
let b := mkConst `b [];
let t := mkAppN f #[a, b, b];
let as₁ := t.getAppArgs;
let as₂ := t.getAppRevArgs;
IO.println as₁;
IO.println as₂;
unless (as₁.reverse == as₂) $ throw "failed... |
a8e9c8e4d196659c0f5c24e26590529d539fb10c | 74addaa0e41490cbaf2abd313a764c96df57b05d | /Mathlib/ring_theory/polynomial_algebra.lean | cc204f87dbd9740f5230f632f6fa363118a3a9c6 | [] | 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 | 9,564 | 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.ring_theory.matrix_algebra
import Mathlib.data.polynomial.algebra_map
import Mathlib.PostPo... |
5c400ecc79d2a171c4e35be66da0175478bc1bcc | 367134ba5a65885e863bdc4507601606690974c1 | /src/data/set/lattice.lean | 74590a322a25aaf3a7a82225d1017fc4caeb09b3 | [
"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 | 51,602 | 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, Johannes Hölzl, Mario Carneiro
-- QUESTION: can make the first argument in ∀ x ∈ a, ... implicit?
-/
import order.complete_boolean_algebra
import data... |
f0d0612d534e236c789a59eb8056c6e040747f1e | 4bddde0d06fbd53be6f23d7f5899998e8f63410b | /test/struct.lean | f57a8636fff8793bf63e85dcef33ee19fd6054cb | [] | no_license | khoek/libiconfig | 4816290a5862af14b07683b3d2663e8e62832ef4 | 6f55c50bc5d852d26ee5ee4c5b52b2cda2a852e5 | refs/heads/master | 1,586,109,683,212 | 1,559,567,916,000 | 1,559,567,916,000 | 157,085,466 | 0 | 1 | null | 1,559,567,917,000 | 1,541,945,134,000 | Lean | UTF-8 | Lean | false | false | 1,062 | lean | import tactic.iconfig
open tactic
meta structure a_config :=
(max_iterations : ℕ := 500)
(max_discovers : ℕ := 0)
(suggest : list pexpr := [])
(optimal : bool := tt)
(exhaustive : bool := ff)
(inflate_rws : bool := ff)
(trace : bool := ff)
(trace_summary : bool := ff)
(trace_ru... |
ee2249f12d3a5b7f1bb1d1a5119053aeaf4f846e | 57aec6ee746bc7e3a3dd5e767e53bd95beb82f6d | /src/Lean/CoreM.lean | f755ccc7134ded915b2e65c03014522c2b11ea5d | [
"Apache-2.0"
] | permissive | collares/lean4 | 861a9269c4592bce49b71059e232ff0bfe4594cc | 52a4f535d853a2c7c7eea5fee8a4fa04c682c1ee | refs/heads/master | 1,691,419,031,324 | 1,618,678,138,000 | 1,618,678,138,000 | 358,989,750 | 0 | 0 | Apache-2.0 | 1,618,696,333,000 | 1,618,696,333,000 | null | UTF-8 | Lean | false | false | 5,898 | 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.RecDepth
import Lean.Util.Trace
import Lean.Data.Options
import Lean.Environment
import Lean.Exception
import Lean.InternalExceptionId
impo... |
ed437009fc54df637c93142395fc1d750b7400ae | a9d0fb7b0e4f802bd3857b803e6c5c23d87fef91 | /hott/types/unit.hlean | 7ce4d19ffc9f15d5a4e89a129e98f698656ba31a | [
"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 | 696 | 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
Theorems about the unit type
-/
open equiv option eq
namespace unit
protected definition eta : Π(u : unit), ⋆ = u
| eta ⋆ := idp
definition unit_equiv_opt... |
ae555e6b1712ae0d42f3f92c0cb56efdee4c23ec | 5ae26df177f810c5006841e9c73dc56e01b978d7 | /src/topology/algebra/uniform_group.lean | 9c681704f25bb42854c21639f5905f79ac7007e7 | [
"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 | 19,991 | 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
Uniform structure on topological groups:
* `topological_add_group.to_uniform_space` and `topological_add_group_is_uniform` can be used to
construct a... |
94a1dfad5f1d1e17b6c35e3eb96cb242560c5148 | 0d7f5899c0475f9e105a439896d9377f80c0d7c3 | /src/.old/add_rules.lean | 2cfd9c22f0c3f81d9df1d5cef3909a806b63f3d9 | [] | no_license | adamtopaz/UnivAlg | 127038f320e68cdf3efcd0c084c9af02fdb8da3d | 2458d47a6e4fd0525e3a25b07cb7dd518ac173ef | refs/heads/master | 1,670,320,985,286 | 1,597,350,882,000 | 1,597,350,882,000 | 280,585,500 | 4 | 0 | null | 1,597,350,883,000 | 1,595,048,527,000 | Lean | UTF-8 | Lean | false | false | 3,242 | lean | import .lang
namespace ualg
variables {L : lang} (A : ralg L) (R : rules L)
namespace addr
def rel : A → A → Prop := λ x y, ∀ (B : ualg L R) (f : A →% B), f x = f y
def setoid : setoid A := ⟨rel A R,
begin
refine ⟨_,_,_⟩,
{ intros x B g, refl },
{ intros x y h B g, symmetry, apply h },
{ intros x y z h1 h2... |
4936ab72b5e6a7e00fbce335647d7fcb30e9c97a | 7cdf3413c097e5d36492d12cdd07030eb991d394 | /world_experiments/world7/level14.lean | b4ff61621633396f314f512dff6e6e13094ebd3c | [] | no_license | alreadydone/natural_number_game | 3135b9385a9f43e74cfbf79513fc37e69b99e0b3 | 1a39e693df4f4e871eb449890d3c7715a25c2ec9 | refs/heads/master | 1,599,387,390,105 | 1,573,200,587,000 | 1,573,200,691,000 | 220,397,084 | 0 | 0 | null | 1,573,192,734,000 | 1,573,192,733,000 | null | UTF-8 | Lean | false | false | 575 | lean | import mynat.definition -- hide
import mynat.add -- hide
import game.world2.level13 -- hide
namespace mynat -- hide
/-
# World 2 -- Addition World
## Level 14 -- `add_right_eq_zero`
You have
* `add_left_eq_zero (a b : mynat) a + b = 0 → b = 0`
from level 13, so `add_right_eq_zero` shouldn't be too hard.
-/
/-... |
6fee5f39603f5410a863693b99bd0f85c27b1ca7 | fa02ed5a3c9c0adee3c26887a16855e7841c668b | /src/combinatorics/hall.lean | 566334084d007702cfcd34cf7cab29cf99e37587 | [
"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 | 14,793 | lean | /-
Copyright (c) 2021 Alena Gusakov, Bhavik Mehta, Kyle Miller. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Alena Gusakov, Bhavik Mehta, Kyle Miller
-/
import data.fintype.basic
import data.rel
import data.set.finite
/-!
# Hall's Marriage Theorem
Given a list of f... |
e90abc6c9bb628155194f07b7a30368537a76af1 | 57c233acf9386e610d99ed20ef139c5f97504ba3 | /src/category_theory/yoneda.lean | fd914130f3ef81957031c3287917fc70ce35217c | [
"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 | 14,069 | 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 category_theory.hom_functor
import category_theory.currying
import category_theory.products.basic
/-!
# The Yoneda embedding
The Yoneda embedding as a functo... |
60455bbdf623113b667dd9f05168f03a4b1ce38a | 6432ea7a083ff6ba21ea17af9ee47b9c371760f7 | /tests/lean/1279_simplified.lean | a6e1f87f9a90ef376e8d2732026111310a851c28 | [
"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 | 342 | lean | inductive Arrow : Type → Type → Type 1
| id : Arrow a a
| unit : Arrow Unit Unit
| comp : Arrow β γ → Arrow α β → Arrow α γ
deriving Repr
def Arrow.compose (f : Arrow β γ) (g : Arrow α β) : Arrow α γ :=
match f, g with
| id, g => g
| f, id => f
| f, g => comp f g
#eval Arrow.compose Arrow.unit Arrow.i... |
a095ed8bfd8e9d83a6e426175f1829d433eb5bda | 4b846d8dabdc64e7ea03552bad8f7fa74763fc67 | /tests/lean/run/rb_map1.lean | ecd76da2c6dbce6b4a29b6bb107818d03df6adb2 | [
"Apache-2.0"
] | permissive | pacchiano/lean | 9324b33f3ac3b5c5647285160f9f6ea8d0d767dc | fdadada3a970377a6df8afcd629a6f2eab6e84e8 | refs/heads/master | 1,611,357,380,399 | 1,489,870,101,000 | 1,489,870,101,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 668 | lean | import system.io
open io
section
open nat_map
#eval size (insert (insert (mk nat) 10 20) 10 21)
meta definition m := (insert (insert (insert (mk nat) 10 20) 5 50) 10 21)
#eval find m 10
#eval find m 5
#eval find m 8
#eval contains m 5
#eval contains m 8
open list
meta definition m2 := of_list [((1:nat), "one"), (2... |
4bd13a05f40b6c1c401a68f637b146e88f19f78b | 8cae430f0a71442d02dbb1cbb14073b31048e4b0 | /test/library_search/filter.lean | 637aeac5ce371de61f1c1707830daf3a7abc13d2 | [
"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,158 | lean | import order.filter.basic
open filter
/- Turn off trace messages so they don't pollute the test build: -/
set_option trace.silence_library_search true
-- The following fails with a deterministic timeout.
-- example {α β γ : Type*} {A : filter α} {B : filter β} {C : filter γ} {f : α → β} {g : β → γ}
-- (hf : tendst... |
8152dce890215252c6943c24adc703f3ac1abc35 | 4727251e0cd73359b15b664c3170e5d754078599 | /src/data/polynomial/lifts.lean | 52a3a3b89f0798b03403ed09e8b1722f31b8bf16 | [
"Apache-2.0"
] | permissive | Vierkantor/mathlib | 0ea59ac32a3a43c93c44d70f441c4ee810ccceca | 83bc3b9ce9b13910b57bda6b56222495ebd31c2f | refs/heads/master | 1,658,323,012,449 | 1,652,256,003,000 | 1,652,256,003,000 | 209,296,341 | 0 | 1 | Apache-2.0 | 1,568,807,655,000 | 1,568,807,655,000 | null | UTF-8 | Lean | false | false | 10,440 | lean | /-
Copyright (c) 2020 Riccardo Brasca. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Riccardo Brasca
-/
import data.polynomial.algebra_map
import data.polynomial.monic
/-!
# Polynomials that lift
Given semirings `R` and `S` with a morphism `f : R →+* S`, we define a... |
d68045fa4f3443a3ed2f701a6afd07b1322706cb | a0e23cfdd129a671bf3154ee1a8a3a72bf4c7940 | /tests/compiler/partial.lean | d52201249d822846602b4994218db352ad5fa4f8 | [
"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 | 374 | lean |
set_option pp.explicit true
set_option pp.binder_types false
-- set_option trace.compiler.boxed true
partial def contains : String → Char → Nat → Bool
| s, c, i =>
if s.atEnd i then false
else if s.get i == c then true
else contains s c (s.next i)
def main : IO Unit :=
let s1 := "hello";
IO.println (conta... |
5855077fe4013974b19e4dc05e41d5afb4dbd514 | b7fc5b86b12212bea5542eb2c9d9f0988fd78697 | /src/demos/linalg.lean | 9dd02a7c30914878556e71503706a1174eadd30a | [] | no_license | stjordanis/lftcm2020 | 3b16591aec853c8546d9c8b69c0bf3f5f3956fee | 1f3485e4dafdc587b451ec5144a1d8d3ec9b411e | refs/heads/master | 1,675,958,865,413 | 1,609,901,722,000 | 1,609,901,722,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 11,058 | lean | import algebra.module
import analysis.normed_space.inner_product
import data.matrix.notation
import linear_algebra.basic
import linear_algebra.bilinear_form
import linear_algebra.quadratic_form
import linear_algebra.finsupp
import tactic
/-
According to Wikipedia, everyone's favourite reliable source of knowledge,
lin... |
b9ed90f2aefbb22279b1524a0fc3d6442539398e | 6432ea7a083ff6ba21ea17af9ee47b9c371760f7 | /src/Init/Data/Fin/Basic.lean | 5f75b8062f3d239bd8bc17cf20f0bb518e83ffe6 | [
"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 | 3,420 | 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.Nat.Div
import Init.Data.Nat.Bitwise
import Init.Coe
open Nat
namespace Fin
instance coeToNat : CoeOut (Fin n) Nat :=
⟨fun v =>... |
da82335d1fa7bf42a1cb80023b82f849fc4c0929 | fa02ed5a3c9c0adee3c26887a16855e7841c668b | /src/analysis/calculus/implicit.lean | 516859a89928d1220a44395fd7bd866d5208c70d | [
"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 | 20,138 | 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 analysis.calculus.inverse
import analysis.normed_space.complemented
/-!
# Implicit function theorem
We prove three versions of the implicit function theore... |
a4b3701c5f86b9664024c648967a93da3346d121 | b3fced0f3ff82d577384fe81653e47df68bb2fa1 | /src/topology/subset_properties.lean | 546ea80178af85cd49a57db027e21afc399f5104 | [
"Apache-2.0"
] | permissive | ratmice/mathlib | 93b251ef5df08b6fd55074650ff47fdcc41a4c75 | 3a948a6a4cd5968d60e15ed914b1ad2f4423af8d | refs/heads/master | 1,599,240,104,318 | 1,572,981,183,000 | 1,572,981,183,000 | 219,830,178 | 0 | 0 | Apache-2.0 | 1,572,980,897,000 | 1,572,980,896,000 | null | UTF-8 | Lean | false | false | 31,285 | 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
Properties of subsets of topological spaces: compact, clopen, irreducible,
connected, totally disconnected, totally separated.
-/
import topology.const... |
eb1d51b79217b14025e8fcc74e32c945a1500141 | 76c77df8a58af24dbf1d75c7012076a42244d728 | /src/ch5.lean | d7797cfa8a6245b920cf88ff1135bf098e53c5f7 | [] | no_license | kris-brown/theorem_proving_in_lean | 7a7a584ba2c657a35335dc895d49d991c997a0c9 | 774460c21bf857daff158210741bd88d1c8323cd | refs/heads/master | 1,668,278,123,743 | 1,593,445,161,000 | 1,593,445,161,000 | 265,748,924 | 0 | 1 | null | null | null | null | UTF-8 | Lean | false | false | 18,417 | lean | import data.list.basic
-- Section 5.1: Entering tactic mode
namespace s51
theorem test (p q : Prop) (hp : p) (hq : q) : p ∧ q ∧ p :=
begin
apply and.intro,
exact hp,
apply and.intro,
exact hq,
exact hp
end
#print test
-- Shorter version, compound exprs
theorem test2 (p q : ... |
24a888814f7f9288e115743c62142085891d0cdb | 64874bd1010548c7f5a6e3e8902efa63baaff785 | /library/data/nat/sub.lean | f959a784ce72149cad541871eaa31a841f7d52dd | [
"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 | 15,820 | lean | /-
Copyright (c) 2014 Floris van Doorn. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Floris van Doorn, Jeremy Avigad
Module: data.nat.sub
Subtraction on the natural numbers, as well as min, max, and distance.
-/
import .order
import tools.fake_simplifier
open eq.... |
25cd1f2d74620a7625b1c776242be5624c504f17 | 9c1ad797ec8a5eddb37d34806c543602d9a6bf70 | /examples/naturals/naturals_tensor_structure.lean | 484303ce7f5a80905422acdeb190cc217a0f9b4a | [] | no_license | timjb/lean-category-theory | 816eefc3a0582c22c05f4ee1c57ed04e57c0982f | 12916cce261d08bb8740bc85e0175b75fb2a60f4 | refs/heads/master | 1,611,078,926,765 | 1,492,080,000,000 | 1,492,080,000,000 | 88,348,246 | 0 | 0 | null | 1,492,262,499,000 | 1,492,262,498,000 | null | UTF-8 | Lean | false | false | 2,239 | lean | -- Copyright (c) 2017 Scott Morrison. All rights reserved.
-- Released under Apache 2.0 license as described in the file LICENSE.
-- Authors: Stephen Morgan, Scott Morrison
import .naturals
import ...monoidal_categories.monoidal_category
namespace tqft.categories.examples.naturals
open tqft.categories
open tqft.categ... |
15dc9d8f31d47e0f20be8a6ffb51ea0b010af361 | 9cb9db9d79fad57d80ca53543dc07efb7c4f3838 | /src/for_mathlib/add_monoid_hom.lean | 87d39f66703143290f2c394e128739c53de8b877 | [] | no_license | mr-infty/lean-liquid | 3ff89d1f66244b434654c59bdbd6b77cb7de0109 | a8db559073d2101173775ccbd85729d3a4f1ed4d | refs/heads/master | 1,678,465,145,334 | 1,614,565,310,000 | 1,614,565,310,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 3,218 | lean | import algebra.module.pi
import algebra.big_operators
open_locale big_operators
section for_mathlib
@[simp] lemma function.nsmul_apply {X M : Type*} [add_comm_monoid M]
(n : ℕ) (f : X → M) (x : X) :
(n •ℕ f) x = n •ℕ (f x) :=
by rw [nsmul_eq_smul, nsmul_eq_smul, pi.smul_apply]
@[simp, to_additive] lemma monoid_... |
8359b40b6f381e2466227aaa208f201f7e5ff1c1 | b7f22e51856f4989b970961f794f1c435f9b8f78 | /hott/algebra/category/default.hlean | f6fe5206853dc3abe7d5b5581070b61b663f239e | [
"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 | 226 | 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 .category .strict .groupoid .constructions .limits .functor
|
c1d5c7610608daca5e7be3966b7842543613dc22 | cf39355caa609c0f33405126beee2739aa3cb77e | /tests/lean/run/default_field_values1.lean | fd44d100c98408ae7efd4d36b9b30fd82b3cbd4b | [
"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 | 891 | lean | structure foo (α β : Type) :=
(x : α) (f : α → α) (y : β)
structure bla (α β : Type) extends foo α β :=
(z : α := f x)
structure boo (α : Type) extends bla α α :=
(d := f (f x))
#print bla.z._default
#print boo.d._default
lemma ex₁ : {boo . x := 10, f := nat.succ, y := 10}^.z = 11 :=
rfl
lemma ex₂ : {boo . x := 10... |
5bd50265beb365bf51a532c8a405bb3b06d30158 | ae1e94c332e17c7dc7051ce976d5a9eebe7ab8a5 | /tests/lean/run/def2.lean | eeb03360d1d222457cf2bf9a73a94dd17de091ec | [
"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 | 498 | lean |
inductive Vec.{u} (α : Type u) : Nat → Type u
| nil : Vec α 0
| cons : α → {n : Nat} → Vec α n → Vec α (n+1)
open Vec
universes u
variables {α : Type u}
variables (f : α → α → α)
def mapHead1 : {n : Nat} → Vec α n → Vec α n → Vec α n
| _, nil, nil => nil
| _, cons a va, cons b bv => cons (f a b) va
theorem ex1 :... |
18f4daf3b62038237f05d9196226f27e8d643e66 | 7cef822f3b952965621309e88eadf618da0c8ae9 | /src/analysis/calculus/deriv.lean | 0aca23182a79b78b3f792e2c8dda58d1f947a375 | [
"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 | 36,974 | lean | /-
Copyright (c) 2019 Gabriel Ebner. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Gabriel Ebner, Sébastien Gouëzel
-/
import analysis.calculus.fderiv
/-!
# One-dimensional derivatives
This file defines the derivative of a function `f : 𝕜 → F` where `𝕜` is a
norm... |
3609b792dd17d1893a4bf332c514248aba35d963 | 80cc5bf14c8ea85ff340d1d747a127dcadeb966f | /src/measure_theory/simple_func_dense.lean | 0423e1b8c7235f78cb407d6c35e93c4b1fd94d9a | [
"Apache-2.0"
] | permissive | lacker/mathlib | f2439c743c4f8eb413ec589430c82d0f73b2d539 | ddf7563ac69d42cfa4a1bfe41db1fed521bd795f | refs/heads/master | 1,671,948,326,773 | 1,601,479,268,000 | 1,601,479,268,000 | 298,686,743 | 0 | 0 | Apache-2.0 | 1,601,070,794,000 | 1,601,070,794,000 | null | UTF-8 | Lean | false | false | 10,252 | lean | /-
Copyright (c) 2019 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.l1_space
/-!
# Density of simple functions
Show that each Borel measurable function can be approximated,
both pointwise and in ... |
0b2074b135d288f16c5149d45a9e239e4907ee21 | 80cc5bf14c8ea85ff340d1d747a127dcadeb966f | /src/data/multiset/intervals.lean | e933375ac174764800b7be2e2e7e1ca6c33eca98 | [
"Apache-2.0"
] | permissive | lacker/mathlib | f2439c743c4f8eb413ec589430c82d0f73b2d539 | ddf7563ac69d42cfa4a1bfe41db1fed521bd795f | refs/heads/master | 1,671,948,326,773 | 1,601,479,268,000 | 1,601,479,268,000 | 298,686,743 | 0 | 0 | Apache-2.0 | 1,601,070,794,000 | 1,601,070,794,000 | null | UTF-8 | Lean | false | false | 3,607 | 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 data.multiset.nodup
import data.list.intervals
/-!
# Intervals in ℕ as multisets
For now this only covers `Ico n m`, the "closed-open" interval containing `[... |
b6ea34e740b6be7d78613c49addab69e515e89af | ebbdcbd7ddc89a9ef7c3b397b301d5f5272a918f | /qp/p0_stdlib/c1_fin.lean | 77048d2e3358199bdf4ba9c73a09b9dd66bc5982 | [] | no_license | intoverflow/qvr | 34b9ef23604738381ca20b7d622fd0399d88f2dd | 0cfcd33fe4bf8d93851a00cec5bfd21e77105d74 | refs/heads/master | 1,616,591,570,371 | 1,492,575,772,000 | 1,492,575,772,000 | 80,061,627 | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 7,674 | lean | /- -----------------------------------------------------------------------
Facts about (fin n).
----------------------------------------------------------------------- -/
import .c0_misc
namespace qp
namespace stdaux
/-! #brief Helper for showing two fin's are heq.
-/
theorem fin.heq
: ∀ {N₁ N₂ : ℕ}
(ωN ... |
c56e580bf2d7fec5f72902ee367efb9c6b1e183f | 367134ba5a65885e863bdc4507601606690974c1 | /archive/sensitivity.lean | 26293b6d7abff043b5d3282077c53381275ea1e9 | [
"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 | 15,542 | lean | /-
Copyright (c) 2019 Reid Barton, Johan Commelin, Jesse Han, Chris Hughes, Robert Y. Lewis, and
Patrick Massot. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Reid Barton, Johan Commelin, Jesse Han, Chris Hughes, Robert Y. Lewis, and Patrick Massot
-/
import tactic.f... |
4bdf812e8ec9aaadfec247f9ba29b1939552360b | 6432ea7a083ff6ba21ea17af9ee47b9c371760f7 | /tests/lean/run/inlineWithNestedRecIssue.lean | 482c267c5358c1da9fa6417da695633c36fdb1bf | [
"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 | 488 | lean | import Lean
@[inline] private unsafe def mapMonoMImp [Monad m] (as : Array α) (f : α → m α) : m (Array α) :=
go 0 as
where
@[specialize] go (i : Nat) (as : Array α) : m (Array α) := do
if h : i < as.size then
let a := as[i]
let b ← f a
if ptrEq a b then
go (i+1) as
else
... |
d7e200610e25b3009965908fab66c6c8ab8c8d22 | 2a70b774d16dbdf5a533432ee0ebab6838df0948 | /_target/deps/mathlib/src/group_theory/perm/basic.lean | 5f436a42683eddcd781a322bcb9b70e3bca2a4b1 | [
"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 | 8,172 | 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, Mario Carneiro
-/
import data.equiv.basic
import algebra.group.basic
import algebra.group.hom
import algebra.group.pi
import algebra.group.prod
/-!
# The grou... |
84ce03221fbe0efbde05ea25b3e05c3dbe1aeff3 | 206422fb9edabf63def0ed2aa3f489150fb09ccb | /src/analysis/normed_space/inner_product.lean | a08804feb1f410ccb9f69a3075e084910a01907a | [
"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 | 104,888 | lean | /-
Copyright (c) 2019 Zhouhang Zhou. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Zhouhang Zhou, Sébastien Gouëzel, Frédéric Dupuis, Heather Macbeth
-/
import linear_algebra.bilinear_form
import linear_algebra.sesquilinear_form
import topology.metric_space.pi_Lp
imp... |
0a68de50f1e3ddbb6feb1950b76399bd2d91fb48 | 82e44445c70db0f03e30d7be725775f122d72f3e | /src/topology/continuous_function/bounded.lean | a39535daf8550f74aa6d6945a4f21daa86cb3152 | [
"Apache-2.0"
] | permissive | stjordanis/mathlib | 51e286d19140e3788ef2c470bc7b953e4991f0c9 | 2568d41bca08f5d6bf39d915434c8447e21f42ee | refs/heads/master | 1,631,748,053,501 | 1,627,938,886,000 | 1,627,938,886,000 | 228,728,358 | 0 | 0 | Apache-2.0 | 1,576,630,588,000 | 1,576,630,587,000 | null | UTF-8 | Lean | false | false | 38,422 | 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, Yury Kudryashov, Heather Macbeth
-/
import analysis.normed_space.operator_norm
import topology.continuous_function.algebra
/-!
# Bounded continuo... |
7209db2d55466d8a8cd9d3f9b9ae97842262c078 | b7f22e51856f4989b970961f794f1c435f9b8f78 | /library/data/nat/pairing.lean | 0ef8474b6806fd03199faba5e4b22b000a477404 | [
"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 | 3,478 | 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
Elegant pairing function.
-/
import data.nat.sqrt data.nat.div
open prod decidable
namespace nat
definition mkpair (a b : nat) : nat :=
if a < b then b*b + a... |
befc9704eb41640554d033b452233487fb79bcc3 | 64874bd1010548c7f5a6e3e8902efa63baaff785 | /library/data/quotient/basic.lean | 0b80b6d3cc57e9bfc622db37ef861497bd706742 | [
"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 | 14,016 | 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 data.subtype logic.cast algebra.relation data.prod
import logic.instances
import .util
open rela... |
4e0c84e9f57d72708f0d7592649855cd61c95653 | fa02ed5a3c9c0adee3c26887a16855e7841c668b | /src/analysis/complex/roots_of_unity.lean | 4e2fb1fabebd840a479cc0195edf5624279c4271 | [
"Apache-2.0"
] | permissive | jjgarzella/mathlib | 96a345378c4e0bf26cf604aed84f90329e4896a2 | 395d8716c3ad03747059d482090e2bb97db612c8 | refs/heads/master | 1,686,480,124,379 | 1,625,163,323,000 | 1,625,163,323,000 | 281,190,421 | 2 | 0 | Apache-2.0 | 1,595,268,170,000 | 1,595,268,169,000 | null | UTF-8 | Lean | false | false | 3,605 | 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 ring_theory.roots_of_unity
import analysis.special_functions.trigonometric
import analysis.special_functions.pow
/-!
# Complex roots of unity
In this file w... |
c4d29a1aa49182472f73c11347e580b78bb4b899 | 9dc8cecdf3c4634764a18254e94d43da07142918 | /test/norm_num.lean | 849cdc70793bd031ef9e8824d4bd556157cfb3a8 | [
"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,506 | lean | /-
Copyright (c) 2017 Simon Hudon All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Simon Hudon, Mario Carneiro
-/
import tactic.norm_num
/-!
# Tests for `norm_num` extensions
-/
constant real : Type
notation `ℝ` := real
@[instance] constant real.linear_ordered_ring : ... |
985f014e5c13add37bd8b80df9c4580bf4944cbc | 6e36ebd5594a0d512dea8bc6ffe78c71b5b5032d | /src/submissions/practice_1.lean | d7a90359eab402f7dc0b44a53c7f90e766b434ad | [] | no_license | wrw2ztk/cs2120f21 | cdc4b1b4043c8ae8f3c8c3c0e91cdacb2cfddb16 | f55df4c723d3ce989908679f5653e4be669334ae | refs/heads/main | 1,691,764,473,342 | 1,633,707,809,000 | 1,633,707,809,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 6,640 | lean | /-
Wyndham White
wrw2ztk
https://github.com/wyndhamv/cs2120f21.git
-/
/-
EQUALITY
-/
/- #1
Suppose that x, y, z, and w are arbitrary objects of some type,
T; and suppose further that we know (have proofs of the facts)
that x = y, y = z, and w = z. Give a very, very short English
proof of the conjecture that z = ... |
54d7c1cc0265b8fe539f4a35b0322160988d891c | d406927ab5617694ec9ea7001f101b7c9e3d9702 | /src/analysis/normed_space/banach_steinhaus.lean | 4ef0b2647f13eff998a93eb013508e90f8f1bf3a | [
"Apache-2.0"
] | permissive | alreadydone/mathlib | dc0be621c6c8208c581f5170a8216c5ba6721927 | c982179ec21091d3e102d8a5d9f5fe06c8fafb73 | refs/heads/master | 1,685,523,275,196 | 1,670,184,141,000 | 1,670,184,141,000 | 287,574,545 | 0 | 0 | Apache-2.0 | 1,670,290,714,000 | 1,597,421,623,000 | Lean | UTF-8 | Lean | false | false | 6,389 | lean | /-
Copyright (c) 2021 Jireh Loreaux. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Jireh Loreaux
-/
import analysis.normed_space.operator_norm
import topology.metric_space.baire
import topology.algebra.module.basic
/-!
# The Banach-Steinhaus theorem: Uniform Boundedne... |
32c8ef6538e78507e1ede75b8264f52234de4a42 | 80cc5bf14c8ea85ff340d1d747a127dcadeb966f | /src/linear_algebra/finsupp_vector_space.lean | ff507b1a8d1449612444e64ea3ec8b04245eb729 | [
"Apache-2.0"
] | permissive | lacker/mathlib | f2439c743c4f8eb413ec589430c82d0f73b2d539 | ddf7563ac69d42cfa4a1bfe41db1fed521bd795f | refs/heads/master | 1,671,948,326,773 | 1,601,479,268,000 | 1,601,479,268,000 | 298,686,743 | 0 | 0 | Apache-2.0 | 1,601,070,794,000 | 1,601,070,794,000 | null | UTF-8 | Lean | false | false | 7,294 | lean | /-
Copyright (c) 2019 Johannes Hölzl. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Author: Johannes Hölzl
Linear structures on function with finite support `ι →₀ β`.
-/
import data.mv_polynomial
import linear_algebra.dimension
import linear_algebra.direct_sum.finsupp
noncom... |
a6b603a58a5612e5adb24cb769535035bc4a400c | b70447c014d9e71cf619ebc9f539b262c19c2e0b | /hott/types/int/hott.hlean | 9e9df1c02828c6bafc948e0bd7c67fb4656cab0e | [
"Apache-2.0"
] | permissive | ia0/lean2 | c20d8da69657f94b1d161f9590a4c635f8dc87f3 | d86284da630acb78fa5dc3b0b106153c50ffccd0 | refs/heads/master | 1,611,399,322,751 | 1,495,751,007,000 | 1,495,751,007,000 | 93,104,167 | 0 | 0 | null | 1,496,355,488,000 | 1,496,355,487,000 | null | UTF-8 | Lean | false | false | 6,282 | hlean | /-
Copyright (c) 2015 Floris van Doorn. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Author: Floris van Doorn
Theorems about the integers specific to HoTT
-/
import .basic types.eq arity algebra.bundled
open core eq is_equiv equiv algebra is_trunc
open nat (hiding pred)
na... |
58ddc7570cd93332deae1f6878b4536bd65f95b1 | 4fa161becb8ce7378a709f5992a594764699e268 | /src/data/finmap.lean | 8ee1a354f0b27dc086e7d473046483725a5975af | [
"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 | 19,073 | lean | /-
Copyright (c) 2018 Sean Leather. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Sean Leather, Mario Carneiro
-/
import data.list.alist
import data.finset
import data.pfun
/-!
# Finite maps over `multiset`
-/
universes u v w
open list
variables {α : Type u} {β : α →... |
7027c20b4ad20dcf67055d82101e532d697b1386 | 4d2583807a5ac6caaffd3d7a5f646d61ca85d532 | /src/tactic/tidy.lean | 2f24f30706150474143e54a242ec7695f66b331a | [
"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,358 | 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 tactic.auto_cases
import tactic.chain
import tactic.norm_cast
namespace tactic
namespace tidy
/-- Tag interactive tactics (locally) with `[tidy]` to add them... |
0c4382df45b8ce819be8aa94a54d83451d0a741e | fa02ed5a3c9c0adee3c26887a16855e7841c668b | /src/category_theory/limits/preserves/limits.lean | 69250f40e3b6a7f1c5f6d32280b5e84e1908f625 | [
"Apache-2.0"
] | permissive | jjgarzella/mathlib | 96a345378c4e0bf26cf604aed84f90329e4896a2 | 395d8716c3ad03747059d482090e2bb97db612c8 | refs/heads/master | 1,686,480,124,379 | 1,625,163,323,000 | 1,625,163,323,000 | 281,190,421 | 2 | 0 | Apache-2.0 | 1,595,268,170,000 | 1,595,268,169,000 | null | UTF-8 | Lean | false | false | 3,686 | lean | /-
Copyright (c) 2020 Scott Morrison. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Scott Morrison, Bhavik Mehta
-/
import category_theory.limits.preserves.basic
/-!
# Isomorphisms about functors which preserve (co)limits
If `G` preserves limits, and `C` and `D` hav... |
a31bc79cfdfb49b05a1d84bdbaa3d1c542fa86f7 | 4d2583807a5ac6caaffd3d7a5f646d61ca85d532 | /src/algebra/algebra/bilinear.lean | 1408c1aa907f487bfbd68dcda5a4bb6e4788dae6 | [
"Apache-2.0"
] | permissive | AntoineChambert-Loir/mathlib | 64aabb896129885f12296a799818061bc90da1ff | 07be904260ab6e36a5769680b6012f03a4727134 | refs/heads/master | 1,693,187,631,771 | 1,636,719,886,000 | 1,636,719,886,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 5,057 | 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.basic
import linear_algebra.tensor_product
/-!
# Facts about algebras involving bilinear maps and tensor products
We move a few basic ... |
82b924911316e10688a0d7acd0e57d0b3bf5b914 | 8cae430f0a71442d02dbb1cbb14073b31048e4b0 | /src/combinatorics/derangements/exponential.lean | 4bb378f6b312719d09f78bb11b8ccdae9980cb3d | [
"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,994 | lean | /-
Copyright (c) 2021 Henry Swanson. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Henry Swanson, Patrick Massot
-/
import analysis.special_functions.exponential
import combinatorics.derangements.finite
import order.filter.basic
/-!
# Derangement exponential series
... |
297415bed217f1b97101fd90ce7ce895a8adfe6e | ab0adaad39f188556e3c9424418475ec3da0d252 | /src/local/int_cvx.lean | 7029d52d5a4a4370ad2ce5002ce44e7f9066e3bc | [] | no_license | b-mehta/sphere-eversion | 124e41231365ecd71a72eb7c8b9714af2e61e4e5 | 34363b4c6349bf585c3334d5dad38c7b8902bea5 | refs/heads/master | 1,668,601,715,154 | 1,592,337,409,000 | 1,592,337,409,000 | 274,816,682 | 0 | 0 | null | 1,593,053,712,000 | 1,593,053,711,000 | null | UTF-8 | Lean | false | false | 5,974 | lean | import data.real.basic
import linear_algebra.basic
import linear_algebra.finite_dimensional
import category_theory.endomorphism
import topology.algebra.module
import topology.instances.real
import analysis.convex.caratheodory
-- This is intended as a Lean roadmap for the `int_cvx` lemma, currently Lemma 1.5 of loops.t... |
d63f0fb91d9db67d6093ce0f85205e2aa7655526 | 57c233acf9386e610d99ed20ef139c5f97504ba3 | /src/analysis/asymptotics/asymptotic_equivalent.lean | afbafca30e3de21406fbaa98a3e6c04176c1bec3 | [
"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 | 11,008 | lean | /-
Copyright (c) 2020 Anatole Dedecker. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Anatole Dedecker
-/
import analysis.asymptotics.asymptotics
import analysis.normed_space.ordered
/-!
# Asymptotic equivalence
In this file, we define the relation `is_equivalent u ... |
db584250de436d45d721baaeefc1abf4acf84369 | 4727251e0cd73359b15b664c3170e5d754078599 | /src/algebra/opposites.lean | f9e50bdb68f9d2c1c50be7cda08c862a360cfff2 | [
"Apache-2.0"
] | permissive | Vierkantor/mathlib | 0ea59ac32a3a43c93c44d70f441c4ee810ccceca | 83bc3b9ce9b13910b57bda6b56222495ebd31c2f | refs/heads/master | 1,658,323,012,449 | 1,652,256,003,000 | 1,652,256,003,000 | 209,296,341 | 0 | 1 | Apache-2.0 | 1,568,807,655,000 | 1,568,807,655,000 | null | UTF-8 | Lean | false | false | 8,901 | lean | /-
Copyright (c) 2018 Kenny Lau. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Kenny Lau
-/
import algebra.group.defs
import logic.equiv.basic
import logic.nontrivial
/-!
# Multiplicative opposite and algebraic operations on it
In this file we define `mul_opposite α... |
417363077a135171c18e5b17a8f13bf30267cb95 | a9d0fb7b0e4f802bd3857b803e6c5c23d87fef91 | /hott/types/equiv.hlean | a7f122714dedbbded86531476d761059652b6bc8 | [
"Apache-2.0"
] | permissive | soonhokong/lean-osx | 4a954262c780e404c1369d6c06516161d07fcb40 | 3670278342d2f4faa49d95b46d86642d7875b47c | refs/heads/master | 1,611,410,334,552 | 1,474,425,686,000 | 1,474,425,686,000 | 12,043,103 | 5 | 1 | null | null | null | null | UTF-8 | Lean | false | false | 8,354 | hlean | /-
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
Ported from Coq HoTT
Theorems about the types equiv and is_equiv
-/
import .fiber .arrow arity ..prop_trunc
open eq is_trunc sigma sigma.ops pi fiber function equi... |
ed86492ee1168c5b374fccec6c6c928d322eb4e5 | 8cae430f0a71442d02dbb1cbb14073b31048e4b0 | /src/topology/homotopy/basic.lean | cf1216c36bf3a8c70bb9a95672e450536a0a021c | [
"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 | 20,577 | lean | /-
Copyright (c) 2021 Shing Tak Lam. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Shing Tak Lam
-/
import topology.algebra.order.proj_Icc
import topology.continuous_function.ordered
import topology.compact_open
import topology.unit_interval
/-!
# Homotopy between f... |
ab52e2f3dcb1022188fe3c272ab5413ea846e736 | a339bc2ac96174381fb610f4b2e1ba42df2be819 | /hott/eq2.hlean | 1c04066a0442f0b16518c87000717a0e265703a0 | [
"Apache-2.0"
] | permissive | kalfsvag/lean2 | 25b2dccc07a98e5aa20f9a11229831f9d3edf2e7 | 4d4a0c7c53a9922c5f630f6f8ebdccf7ddef2cc7 | refs/heads/master | 1,610,513,122,164 | 1,483,135,198,000 | 1,483,135,198,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 5,026 | hlean | /-
Copyright (c) 2015 Floris van Doorn. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Author: Floris van Doorn
Theorems about 2-dimensional paths
-/
import .cubical.square
open function
namespace eq
variables {A B C : Type} {f : A → B} {a a' a₁ a₂ a₃ a₄ : A} {b b' : B}
... |
b878d746d4d14f41c85b1323af9a79a25831863e | 8e381650eb2c1c5361be64ff97e47d956bf2ab9f | /src/spectrum_of_a_ring/structure_sheaf_locality.lean | 3652677899898af50f6050477df33f1c87297834 | [] | 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 | 4,440 | lean | /-
First argument of the ring lemma.
We show that the map from R[1/f] to R[1/fᵢ] inverts fᵢ/1.
-/
import ring_theory.localization
import to_mathlib.localization.localization_alt
import spectrum_of_a_ring.structure_presheaf
import spectrum_of_a_ring.structure_presheaf_localization
import spectrum_of_a_ring.str... |
6d503f2c64af1c52737d7c9a0d276750fa3cf6a2 | d9d511f37a523cd7659d6f573f990e2a0af93c6f | /src/analysis/normed_space/banach.lean | 56ed519369b746be8d88e092d125fe5df893e4f2 | [
"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 | 17,055 | lean | /-
Copyright (c) 2019 Sébastien Gouëzel. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Sébastien Gouëzel
-/
import topology.metric_space.baire
import analysis.normed_space.operator_norm
/-!
# Banach open mapping theorem
This file contains the Banach open mapping the... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.