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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
2b71c1fd2af1a583d761cbe1763af180115a7154 | 8cae430f0a71442d02dbb1cbb14073b31048e4b0 | /src/data/qpf/multivariate/basic.lean | 3aba3258e6ac91ff209516877e51d245460bfaaf | [
"Apache-2.0"
] | permissive | leanprover-community/mathlib | 56a2cadd17ac88caf4ece0a775932fa26327ba0e | 442a83d738cb208d3600056c489be16900ba701d | refs/heads/master | 1,693,584,102,358 | 1,693,471,902,000 | 1,693,471,902,000 | 97,922,418 | 1,595 | 352 | Apache-2.0 | 1,694,693,445,000 | 1,500,624,130,000 | Lean | UTF-8 | Lean | false | false | 8,867 | lean | /-
Copyright (c) 2018 Jeremy Avigad. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Jeremy Avigad, Simon Hudon
-/
import data.pfunctor.multivariate.basic
/-!
# Multivariate quotients of polynomial functors.
> THIS FILE IS SYNCHRONIZED WITH MATHLIB4.
> Any changes to ... |
68d6cf29a22275ff3ab057bcee1caab7c508a31b | cf39355caa609c0f33405126beee2739aa3cb77e | /tests/lean/eqn_lemma.lean | be3beb1f69254107ef5fd86543627bfd9ae27fe7 | [
"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 | 483 | lean | def foo : ℕ → ℕ
| 0 := 1
| (n+1) := match n with 0 := 2 | _ := 1 end
lemma foo.faux_eqn (n) : foo n = 42 := sorry
open tactic
run_cmd do
e ← get_env,
trace $ e.get_eqn_lemmas_for ``foo,
trace $ e.get_ext_eqn_lemmas_for ``foo,
set_env $ e.add_eqn_lemma ``foo.faux_eqn
#eval do
e ← get_env,
trace $ e.get_eqn_lemmas_for... |
89f00b277ac7f5e97434c46bf899be1fae7d8828 | 947fa6c38e48771ae886239b4edce6db6e18d0fb | /src/data/fin/tuple/basic.lean | cfc60e1bedab6067a9ac0e661daefdeb3c445a1c | [
"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 | 27,857 | lean | /-
Copyright (c) 2019 Floris van Doorn. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Floris van Doorn, Yury Kudryashov, Sébastien Gouëzel, Chris Hughes
-/
import data.fin.basic
import data.pi.lex
/-!
# Operation on tuples
We interpret maps `Π i : fin n, α i` as `n`... |
af41266a3dce937fbbb5f7faecc04caab861560f | cf39355caa609c0f33405126beee2739aa3cb77e | /leanpkg/leanpkg/main.lean | 458aaee75235d7b593523274f0fb2f0eb82e256f | [
"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 | 12,052 | lean | /-
Copyright (c) 2017 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Author: Gabriel Ebner
-/
import leanpkg.resolve leanpkg.git
namespace leanpkg
def write_file (fn : string) (cnts : string) (mode := io.mode.write) : io unit := do
h ← io.mk_file_handle... |
a388c7061abba6f2715b296998127bbca37eecfa | 26ac254ecb57ffcb886ff709cf018390161a9225 | /src/analysis/analytic/basic.lean | f7771db2e91ab4f0d87a87e13a4492472369b1a4 | [
"Apache-2.0"
] | permissive | eric-wieser/mathlib | 42842584f584359bbe1fc8b88b3ff937c8acd72d | d0df6b81cd0920ad569158c06a3fd5abb9e63301 | refs/heads/master | 1,669,546,404,255 | 1,595,254,668,000 | 1,595,254,668,000 | 281,173,504 | 0 | 0 | Apache-2.0 | 1,595,263,582,000 | 1,595,263,581,000 | null | UTF-8 | Lean | false | false | 37,862 | lean | /-
Copyright (c) 2020 Sébastien Gouëzel. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Sébastien Gouëzel
-/
import analysis.calculus.times_cont_diff
import tactic.omega
import analysis.special_functions.pow
/-!
# Analytic functions
A function is analytic in one dime... |
6a367cb66bb822c3eb8544a448657ae6add9dd49 | 4727251e0cd73359b15b664c3170e5d754078599 | /src/set_theory/schroeder_bernstein.lean | 21e5211d3a00301cf3b0a4f0b0a1d4b81c65919f | [
"Apache-2.0"
] | permissive | Vierkantor/mathlib | 0ea59ac32a3a43c93c44d70f441c4ee810ccceca | 83bc3b9ce9b13910b57bda6b56222495ebd31c2f | refs/heads/master | 1,658,323,012,449 | 1,652,256,003,000 | 1,652,256,003,000 | 209,296,341 | 0 | 1 | Apache-2.0 | 1,568,807,655,000 | 1,568,807,655,000 | null | UTF-8 | Lean | false | false | 5,352 | lean | /-
Copyright (c) 2017 Johannes Hölzl. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Johannes Hölzl, Mario Carneiro
-/
import order.fixed_points
import order.zorn
/-!
# Schröder-Bernstein theorem, well-ordering of cardinals
This file proves the Schröder-Bernstein the... |
a690caa518f4e3766d9f6bf7c084036f7ddc31bc | 57c233acf9386e610d99ed20ef139c5f97504ba3 | /src/analysis/calculus/local_extr.lean | 82f432932f2cfbef8f95abdc08c7ee01c1ce5105 | [
"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 | 18,196 | lean | /-
Copyright (c) 2019 Yury Kudryashov. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Yury Kudryashov
-/
import analysis.calculus.deriv
import topology.algebra.ordered.extend_from
import topology.algebra.polynomial
import topology.local_extr
import data.polynomial.fiel... |
2457d2037db924ca663f0ffeb4da806acc8ce6a6 | 624f6f2ae8b3b1adc5f8f67a365c51d5126be45a | /tests/lean/precissues.lean | b2bd418e1238e764c84811417c8f127a21ac4efa | [
"Apache-2.0"
] | permissive | mhuisi/lean4 | 28d35a4febc2e251c7f05492e13f3b05d6f9b7af | dda44bc47f3e5d024508060dac2bcb59fd12e4c0 | refs/heads/master | 1,621,225,489,283 | 1,585,142,689,000 | 1,585,142,689,000 | 250,590,438 | 0 | 2 | Apache-2.0 | 1,602,443,220,000 | 1,585,327,814,000 | C | UTF-8 | Lean | false | false | 555 | lean | new_frontend
#check id fun x => x -- should fail
def f (x : Nat) (g : Nat → Nat) := g x
#check f 1 fun x => x -- should fail
#check f 1 (fun x => x)
#check id have True from ⟨⟩; this -- should fail
#check 1
#check id (have True from ⟨⟩; this)
#check 0 = have Nat from 1; this
#check 0 = let x := 0; x
variables ... |
a6690039a8ef83d4dfc1820867315526b226fbff | 8cae430f0a71442d02dbb1cbb14073b31048e4b0 | /src/ring_theory/localization/module.lean | efdab085b7ee2cbfffa0cd23104fe4ef3fca0f68 | [
"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 | 6,549 | lean | /-
Copyright (c) 2022 Anne Baanen. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Junyan Xu, Anne Baanen
-/
import linear_algebra.basis
import ring_theory.localization.fraction_ring
import ring_theory.localization.integer
/-!
# Modules / vector spaces over localizatio... |
3d096f81b00b6556b3647d5c634c193b7d8641d4 | cf39355caa609c0f33405126beee2739aa3cb77e | /library/init/data/subtype/basic.lean | 8fad6a04feec0074bf20cf9707797e6b58b6aa8d | [
"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 | 916 | lean | /-
Copyright (c) 2014 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Author: Leonardo de Moura, Jeremy Avigad
-/
prelude
import init.logic
open decidable
universes u
namespace subtype
lemma exists_of_subtype {α : Type u} {p : α → Prop} : { x // p x } →... |
078897861eceee57a6d27177dc335d0daf1e9c67 | de4548698671d50981659ecc9f4910de15969d3d | /Metamath.lean | 7273d88b208a76b3e8f49e90e3e6396e16c898b5 | [] | no_license | digama0/mm-lean4 | 7ad17c81853816c6cd4bb97b8abe4bea0fd35ff6 | 6a427edecb851cec04818848a755c0145a5f2e98 | refs/heads/master | 1,688,934,520,262 | 1,687,937,043,000 | 1,687,937,043,000 | 365,257,017 | 15 | 1 | null | null | null | null | UTF-8 | Lean | false | false | 347 | lean | import Metamath.Verify
open Metamath.Verify in
def main (n : List String) : IO UInt32 := do
let db ← check $ n.getD 0 "set.mm"
match db.error? with
| none =>
IO.println s!"verified, {db.objects.size} objects"
pure 0
| some ⟨Error.error pos err, _⟩ =>
IO.println s!"at {pos}: {err}"
pure 1
| so... |
0b3784ae9323b87880de25e32809c7353e198df4 | 4bcaca5dc83d49803f72b7b5920b75b6e7d9de2d | /src/Lean/Server/InfoUtils.lean | 8a809a2c2e31c51e937ad91d1d634fce0886822c | [
"Apache-2.0"
] | permissive | subfish-zhou/leanprover-zh_CN.github.io | 30b9fba9bd790720bd95764e61ae796697d2f603 | 8b2985d4a3d458ceda9361ac454c28168d920d3f | refs/heads/master | 1,689,709,967,820 | 1,632,503,056,000 | 1,632,503,056,000 | 409,962,097 | 1 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 9,432 | lean | /-
Copyright (c) 2021 Wojciech Nawrocki. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Wojciech Nawrocki
-/
import Lean.DocString
import Lean.Elab.InfoTree
import Lean.Util.Sorry
protected structure String.Range where
start : String.Pos
stop : String.Pos
deri... |
6e523063834da0e82e7080c84d72c1715b5898c9 | 5d166a16ae129621cb54ca9dde86c275d7d2b483 | /library/init/category/transformers.lean | f4c273cb5d781d82fdb57fc9da222c81125cb540 | [
"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 | 1,618 | lean | /-
Copyright (c) 2016 Gabriel Ebner. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Gabriel Ebner
-/
prelude
import init.category.state init.function init.coe
namespace monad
class monad_transformer (transformer : ∀m [monad m], Type → Type) :=
(is_monad : ∀m [monad m]... |
485d40f2849dec2fb665b3523c13f05aca6a9cbd | 9dd3f3912f7321eb58ee9aa8f21778ad6221f87c | /tests/lean/eval_expr_error.lean | ceb111fa31ca3dc4315b9544420abf45b9560325 | [
"Apache-2.0"
] | permissive | bre7k30/lean | de893411bcfa7b3c5572e61b9e1c52951b310aa4 | 5a924699d076dab1bd5af23a8f910b433e598d7a | refs/heads/master | 1,610,900,145,817 | 1,488,006,845,000 | 1,488,006,845,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 352 | lean | open tactic
meta def tst1 (A : Type) : tactic unit :=
do a ← to_expr `(0),
v ← eval_expr A a,
return ()
run_command do
a ← to_expr `(nat.add),
v ← eval_expr nat a,
trace v,
return ()
run_command do
a ← to_expr `(λ x : nat, x + 1),
v ← (eval_expr nat a <|> trace "tactic failed" >> return 1),
tr... |
3faf34435fd3173333fd121dbab762f6179273a5 | cf39355caa609c0f33405126beee2739aa3cb77e | /tests/lean/run/t10.lean | 10f2c3b7a8f2b67332fee9eabcfc47d0052a0276 | [
"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 | 111 | lean | set_option pp.colors true
set_option pp.unicode false
#print options
set_option pp.unicode true
#print options
|
52f283e0f5ece79d341ea02853b2eb6538c75a72 | 0845ae2ca02071debcfd4ac24be871236c01784f | /tests/lean/run/csimp_type_error.lean | 403c70b63d5bdf9d2d78cdd2cb61d0d031e219ff | [
"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 | 301 | lean | namespace scratch
inductive type
| bv (w:Nat) : type
open type
def value : type -> Type
| (bv w) := {n // n < w}
def tester_fails : ∀ {tp : type}, value tp -> Bool
| (bv _) v1 := decide (v1.val = 0)
def tester_ok : ∀ {tp : type}, value tp -> Prop
| (bv _) v1 := v1.val = 0
end scratch
|
596e87db22b4b6386addb2a01a2341b217283d8e | 4727251e0cd73359b15b664c3170e5d754078599 | /src/topology/order/lattice.lean | e42a6d380704e9def4bf559b433581dabfca1bf3 | [
"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 | 4,389 | lean | /-
Copyright (c) 2021 Christopher Hoskin. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Christopher Hoskin
-/
import topology.algebra.order.basic
import topology.constructions
/-!
# Topological lattices
In this file we define mixin classes `has_continuous_inf` and `... |
a5a03bf8cbc4f2430fa6060ebb23a08712c12384 | 32025d5c2d6e33ad3b6dd8a3c91e1e838066a7f7 | /tests/lean/string_imp2.lean | 7bfd1d5ebe793462e415068b8a543a9601f247e1 | [
"Apache-2.0"
] | permissive | walterhu1015/lean4 | b2c71b688975177402758924eaa513475ed6ce72 | 2214d81e84646a905d0b20b032c89caf89c737ad | refs/heads/master | 1,671,342,096,906 | 1,599,695,985,000 | 1,599,695,985,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 1,693 | lean | def f (s : String) : String :=
s ++ " " ++ s
def g (s : String) : String :=
s.push ' ' ++ s.push '-'
def h (s : String) : String :=
let it₁ := s.mkIterator;
let it₂ := it₁.next;
it₁.remainingToString ++ "-" ++ it₂.remainingToString
#eval "hello" ++ "hello"
#eval f "hello"
#eval (f "αβ").length
#eval "hello".toList
#... |
156004a238263812f7e47b78d3f1678d49426e71 | 6214e13b31733dc9aeb4833db6a6466005763162 | /src/definitions2.lean | 154789b85549af8acf0672548506d3c5dd6e747f | [] | no_license | joshua0pang/esverify-theory | 272a250445f3aeea49a7e72d1ab58c2da6618bbe | 8565b123c87b0113f83553d7732cd6696c9b5807 | refs/heads/master | 1,585,873,849,081 | 1,527,304,393,000 | 1,527,304,393,000 | 154,901,199 | 1 | 0 | null | 1,540,593,067,000 | 1,540,593,067,000 | null | UTF-8 | Lean | false | false | 27,510 | lean | -- second part of definitions
import .definitions1 .qiaux
-- ################################
-- ### QUANTIFIER INSTANTIATION ###
-- ################################
-- first part is in definitions1.lean
-- the following definitions need some additional lemmas from qiaux.lean to prove termination
-- lift_all(P) ... |
ca3da8937f80b5910ae5866ce35df7e0716e86f6 | 8cae430f0a71442d02dbb1cbb14073b31048e4b0 | /src/combinatorics/additive/energy.lean | cb6bbc075dfa7d9b58b32d68bf84e7c761eaa22a | [
"Apache-2.0"
] | permissive | leanprover-community/mathlib | 56a2cadd17ac88caf4ece0a775932fa26327ba0e | 442a83d738cb208d3600056c489be16900ba701d | refs/heads/master | 1,693,584,102,358 | 1,693,471,902,000 | 1,693,471,902,000 | 97,922,418 | 1,595 | 352 | Apache-2.0 | 1,694,693,445,000 | 1,500,624,130,000 | Lean | UTF-8 | Lean | false | false | 5,297 | lean | /-
Copyright (c) 2022 Yaël Dillies, Ella Yu. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Yaël Dillies, Ella Yu
-/
import data.finset.prod
import data.fintype.prod
/-!
# Additive energy
> THIS FILE IS SYNCHRONIZED WITH MATHLIB4.
> Any changes to this file require a... |
10b5ce091d3a21aca67838da452f95c9f19b42d2 | 7cef822f3b952965621309e88eadf618da0c8ae9 | /src/topology/metric_space/contracting.lean | 7fd5e5418829cab3075601d3a65e58e7c18a8880 | [
"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 | 5,067 | lean | /-
Copyright (c) 2019 Rohan Mitta. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Rohan Mitta, Kevin Buzzard, Alistair Tucker, Johannes Hölzl, Yury Kudryashov
-/
import topology.metric_space.lipschitz analysis.specific_limits
/-!
# Contracting maps
A Lipschitz conti... |
d563e48a5de8d926481240007d8c2fd81d16fdd6 | 737dc4b96c97368cb66b925eeea3ab633ec3d702 | /src/Lean/Parser.lean | 21bc210d21c3e1b1ab67c5d42657d14ba6f7c5ff | [
"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 | 6,674 | 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, Sebastian Ullrich
-/
import Lean.Parser.Basic
import Lean.Parser.Level
import Lean.Parser.Term
import Lean.Parser.Tactic
import Lean.Parser.Command
import Lea... |
0c5c06dc534ab850fc85f49417dd70b344e67375 | 6432ea7a083ff6ba21ea17af9ee47b9c371760f7 | /tests/lean/commandPrefix.lean | 2af64cec430adfa6f1fcc2b130709851f73a7f83 | [
"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 | 37 | lean | #check show Id Unit from do ()
abbr
|
064ed4452cc6b94077d78f294968851727d3dd9e | 57c233acf9386e610d99ed20ef139c5f97504ba3 | /src/ring_theory/jacobson_ideal.lean | 9631d16cc61324bf8ecad34982588d481ad2535a | [
"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,871 | lean | /-
Copyright (c) 2020 Devon Tuma. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Kenny Lau, Devon Tuma
-/
import ring_theory.ideal.quotient
import ring_theory.polynomial.basic
/-!
# Jacobson radical
The Jacobson radical of a ring `R` is defined to be the intersection... |
591a7e8876adc9a7c1d02d108b88b11499510969 | 5fbbd711f9bfc21ee168f46a4be146603ece8835 | /lean/natural_number_game/advanced_multiplication/4_alt.lean | 96810e59e79e2f04f1f67477166c378e9c083d61 | [
"LicenseRef-scancode-warranty-disclaimer"
] | no_license | goedel-gang/maths | 22596f71e3fde9c088e59931f128a3b5efb73a2c | a20a6f6a8ce800427afd595c598a5ad43da1408d | refs/heads/master | 1,623,055,941,960 | 1,621,599,441,000 | 1,621,599,441,000 | 169,335,840 | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 2,422 | lean | theorem mul_left_cancel (a b c : mynat) (ha : a ≠ 0) : a * b = a * c → b = c :=
-- This is a longer proof that uses a little more lean machinery, and puts
-- more stress on my CPU, but to me what this proof is doing makes much more
-- sense:
-- + It first establishes that any two natural numbers have a differen... |
9abb9f05913230096b396211f11ce2c25569311e | 8cae430f0a71442d02dbb1cbb14073b31048e4b0 | /src/analysis/specific_limits/floor_pow.lean | 1c7c1e209188a8d29ab020b92f0b5a9b1f07b312 | [
"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 | 17,773 | lean | /-
Copyright (c) 2022 Sébastien Gouëzel. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Sébastien Gouëzel
-/
import analysis.specific_limits.basic
import analysis.special_functions.pow.real
/-!
# Results on discretized exponentials
> THIS FILE IS SYNCHRONIZED WITH M... |
f1fd0f676f431b8b667b7ac16aa04ba7258c68d0 | 9dd3f3912f7321eb58ee9aa8f21778ad6221f87c | /tests/lean/run/doc_string1.lean | f6f2ebc9778e1a371bee3a51ce727da02d024aca | [
"Apache-2.0"
] | permissive | bre7k30/lean | de893411bcfa7b3c5572e61b9e1c52951b310aa4 | 5a924699d076dab1bd5af23a8f910b433e598d7a | refs/heads/master | 1,610,900,145,817 | 1,488,006,845,000 | 1,488,006,845,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 724 | lean | /--
Documentation for x
```
eval x + x
```
Testing...
-/
def x := 10 + 20
def y := "alo"
open tactic
run_command do
d ← doc_string `x,
trace d
run_command add_doc_string `y "testing simple doc"
run_command do
d ← doc_string `y,
trace d
namespace foo
namespace bla
/--
Documentation for single
... |
c2c4207c0a72c0ad260d85805db4d4f53b0bea3d | 07c6143268cfb72beccd1cc35735d424ebcb187b | /src/ring_theory/algebra.lean | 727179e3645bdc469f88a2917b4b96d634b72f85 | [
"Apache-2.0"
] | permissive | khoek/mathlib | bc49a842910af13a3c372748310e86467d1dc766 | aa55f8b50354b3e11ba64792dcb06cccb2d8ee28 | refs/heads/master | 1,588,232,063,837 | 1,587,304,803,000 | 1,587,304,803,000 | 176,688,517 | 0 | 0 | Apache-2.0 | 1,553,070,585,000 | 1,553,070,585,000 | null | UTF-8 | Lean | false | false | 20,615 | 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 data.complex.basic
import data.matrix.basic
import linear_algebra.tensor_product
import ring_theory.subring
import algebra.commute
/-!
# Algebra over ... |
220d218286352ccfbe997775121094ab122a9fd0 | 05f637fa14ac28031cb1ea92086a0f4eb23ff2b1 | /examples/lean/ex3.lean | 0f0825c071415964779b74b23fc63d453676d39a | [
"Apache-2.0"
] | permissive | codyroux/lean0.1 | 1ce92751d664aacff0529e139083304a7bbc8a71 | 0dc6fb974aa85ed6f305a2f4b10a53a44ee5f0ef | refs/heads/master | 1,610,830,535,062 | 1,402,150,480,000 | 1,402,150,480,000 | 19,588,851 | 2 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 745 | lean | import macros.
theorem my_and_comm (a b : Bool) : (a ∧ b) → (b ∧ a)
:= assume H_ab, and_intro (and_elimr H_ab) (and_eliml H_ab).
theorem my_or_comm (a b : Bool) : (a ∨ b) → (b ∨ a)
:= assume H_ab,
or_elim H_ab
(λ H_a, or_intror b H_a)
(λ H_b, or_introl H_b a).
-- (em a) is the excluded middle... |
5494b9f34b2b53f3023afdb002febd99483809ac | 626e312b5c1cb2d88fca108f5933076012633192 | /src/data/mv_polynomial/basic.lean | c1864e2678a05bcd15b24cfa4a3ed8e827960138 | [
"Apache-2.0"
] | permissive | Bioye97/mathlib | 9db2f9ee54418d29dd06996279ba9dc874fd6beb | 782a20a27ee83b523f801ff34efb1a9557085019 | refs/heads/master | 1,690,305,956,488 | 1,631,067,774,000 | 1,631,067,774,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 37,400 | 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
-/
import data.polynomial.eval
import data.finsupp.antidiagonal
/-!
# Multivariate polynomials
This file defines polynomial rings over... |
d4e54ee9fbe11be1c5dc40d9d2ed0c387eadc31a | d406927ab5617694ec9ea7001f101b7c9e3d9702 | /src/algebra/order/ring/inj_surj.lean | 881bd62bd6718a0d1655ba6ea92e7e35d92d7397 | [
"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 | 12,150 | lean | /-
Copyright (c) 2016 Jeremy Avigad. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Jeremy Avigad, Leonardo de Moura, Mario Carneiro
-/
import algebra.order.ring.defs
import algebra.order.monoid.cancel.basic
import algebra.ring.inj_surj
/-!
# Pulling back ordered ring... |
8d30d033e7815ff44d2617d15dfac50f42ccec87 | d1a52c3f208fa42c41df8278c3d280f075eb020c | /stage0/src/Lean/Meta/InferType.lean | 75b98fa75142c766ddce2a3a65ee9bd384d0d247 | [
"Apache-2.0",
"LLVM-exception",
"NCSA",
"LGPL-3.0-only",
"LicenseRef-scancode-inner-net-2.0",
"BSD-3-Clause",
"LGPL-2.0-or-later",
"Spencer-94",
"LGPL-2.1-or-later",
"HPND",
"LicenseRef-scancode-pcre",
"ISC",
"LGPL-2.1-only",
"LicenseRef-scancode-other-permissive",
"SunPro",
"CMU-Mach"... | permissive | cipher1024/lean4 | 6e1f98bb58e7a92b28f5364eb38a14c8d0aae393 | 69114d3b50806264ef35b57394391c3e738a9822 | refs/heads/master | 1,642,227,983,603 | 1,642,011,696,000 | 1,642,011,696,000 | 228,607,691 | 0 | 0 | Apache-2.0 | 1,576,584,269,000 | 1,576,584,268,000 | null | UTF-8 | Lean | false | false | 17,269 | 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.Data.LBool
import Lean.Meta.Basic
namespace Lean
/-
Auxiliary function for instantiating the loose bound variables in `e` with `args[start:sto... |
42ebfa23295502f748914d4661e9479f60a8be2f | 5c7fe6c4a9d4079b5457ffa5f061797d42a1cd65 | /src/exercises/src_18_inequalities_and_upper_bounds.lean | 8f388f6d9791f131f3ba112a06fc70d5cf9ba02f | [] | no_license | gihanmarasingha/mth1001_tutorial | 8e0817feeb96e7c1bb3bac49b63e3c9a3a329061 | bb277eebd5013766e1418365b91416b406275130 | refs/heads/master | 1,675,008,746,310 | 1,607,993,443,000 | 1,607,993,443,000 | 321,511,270 | 3 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 3,192 | lean | import tactic.linarith
namespace mth1001
section inequalities_and_upper_bounds
/-
At the start of this module, we looked at simple inequalities. We'll extend our study to
consider bounds and greatest bounds.
These considerations will later form the basis of our study of suprema of sets of real numbers.
-/
-- Given... |
d19354e693ed23875642250826b1486e5c55d6c0 | 947b78d97130d56365ae2ec264df196ce769371a | /tests/lean/run/typeclass_diamond.lean | a48898e86240c579733c66318a7d2a7802515281 | [
"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,750 | lean | new_frontend
class Top₁ (n : Nat) : Type := (u : Unit := ())
class Bot₁ (n : Nat) : Type := (u : Unit := ())
class Left₁ (n : Nat) : Type := (u : Unit := ())
class Right₁ (n : Nat) : Type := (u : Unit := ())
instance Bot₁Inst : Bot₁ Nat.zero := {}
instance Left₁ToBot₁ (n : Nat) [Left₁ n] : Bot₁ n := {}
instan... |
dc913da3bc385859591ca19b533923b91e407ef2 | 77c5b91fae1b966ddd1db969ba37b6f0e4901e88 | /src/topology/homeomorph.lean | fa404d27cd7408d4211543621ad5b815b8450e25 | [
"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 | 15,229 | lean | /-
Copyright (c) 2019 Reid Barton. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Johannes Hölzl, Patrick Massot, Sébastien Gouëzel, Zhouhang Zhou, Reid Barton
-/
import topology.dense_embedding
/-!
# Homeomorphisms
This file defines homeomorphisms between two topolo... |
4a2674cceaa4350ffd897df284a03bd0e92a87e9 | 35677d2df3f081738fa6b08138e03ee36bc33cad | /src/tactic/lean_core_docs.lean | 0e85f0cfadbf7d4eb3c4c477bce5932b22f35c2c | [
"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 | 22,843 | lean | /-
Copyright (c) 2020 Kevin Buzzard. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Kevin Buzzard, Bryan Gin-ge Chen, Robert Y. Lewis, Scott Morrison
-/
import tactic.doc_commands
/-!
# Core tactic documentation
This file adds the majority of the interactive tactics... |
9f1371648edf4db4e5b8a7ad4c14d2ac6dd276d2 | 54deab7025df5d2df4573383df7e1e5497b7a2c2 | /order/bounds.lean | 0ffe1f6a133c02cf7a8d7ccc6e50b8384a8cc650 | [
"Apache-2.0"
] | permissive | HGldJ1966/mathlib | f8daac93a5b4ae805cfb0ecebac21a9ce9469009 | c5c5b504b918a6c5e91e372ee29ed754b0513e85 | refs/heads/master | 1,611,340,395,683 | 1,503,040,489,000 | 1,503,040,489,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 5,453 | lean | /-
Copyright (c) 2017 Johannes Hölzl. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Author: Johannes Hölzl
(Least / Greatest) upper / lower bounds
-/
import order.complete_lattice data.set
open set lattice
universes u v w x
variables {α : Type u} {β : Type v} {γ : Type w} {ι... |
504823fb2bea5f9064701410ad53ff6d66422ade | bf35a3ed54de6fced25e870a19cf82da937bdc9e | /src/greet_then_find_hyperplane.lean | 4a514dd4c71af59c975dbee9c370e959d747ee3e | [] | no_license | khoek/klean-demo | cd01e703e1333fd6095ea5349986a614b53383f5 | d572f3ee90589854beb66cb7499a99722c454689 | refs/heads/master | 1,585,083,090,000 | 1,533,310,995,000 | 1,533,310,995,000 | 143,000,189 | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 414 | lean | import system.extras
import .lib
def dim : ℕ := 2
def a_vects : list (array dim ℕ) := [to_array [1, 2], to_array [4, 5]]
def b_vects : list (array dim ℕ) := [to_array [5, 5], to_array [2, 8]]
meta def main : io unit := do
io.print_ln "a",
extras.greet,
n ← pure (extras.find_separating_hyperplane a_vects b... |
bab3dc50b9f09f9e3bc3fd2d29d3718ca3b5e08a | 9dd3f3912f7321eb58ee9aa8f21778ad6221f87c | /tests/lean/634d.lean | 2ce05ff37bee9da37ab82a83cc75b90568224ad4 | [
"Apache-2.0"
] | permissive | bre7k30/lean | de893411bcfa7b3c5572e61b9e1c52951b310aa4 | 5a924699d076dab1bd5af23a8f910b433e598d7a | refs/heads/master | 1,610,900,145,817 | 1,488,006,845,000 | 1,488,006,845,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 418 | lean | section
universe l
definition A {n : ℕ} (t : Sort l) := t
check A
check _root_.A.{1}
set_option pp.universes true
check A
check _root_.A.{1}
end
section
universe l
parameters {B : Sort l}
definition P {n : ℕ} (b : B) := b
check P
check @_root_.P.{1} nat
set_option pp.universes true
check P
... |
8c1a6041ff4fdf9a6512f66f1699586f5fb5769f | d7189ea2ef694124821b033e533f18905b5e87ef | /galois/vector/simplify_eq.lean | 086b9f32c85b3ae2d56b6f3411602c37788628e7 | [
"Apache-2.0"
] | permissive | digama0/lean-protocol-support | eaa7e6f8b8e0d5bbfff1f7f52bfb79a3b11b0f59 | cabfa3abedbdd6fdca6e2da6fbbf91a13ed48dda | refs/heads/master | 1,625,421,450,627 | 1,506,035,462,000 | 1,506,035,462,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 1,422 | lean | /- Defines basic lemmas for equality -/
import data.vector
import ..list.simplify_eq
import ..list.take_drop_lemmas
import ..subtype
universe variables u
namespace vector
variable {α : Type u}
variable {n : ℕ}
local infix `++`:65 := vector.append
theorem cons_eq_cons {n : ℕ} (a b : α) (x y : vector α n)
: a :: x... |
6a45251b54a49fd9c300ce928970f66c8e241e80 | 8cae430f0a71442d02dbb1cbb14073b31048e4b0 | /src/geometry/manifold/charted_space.lean | 9d562746d52521c70a3c5df5de3c3aee484e470b | [
"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 | 51,400 | lean | /-
Copyright (c) 2019 Sébastien Gouëzel. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Sébastien Gouëzel
-/
import topology.local_homeomorph
/-!
# Charted spaces
> THIS FILE IS SYNCHRONIZED WITH MATHLIB4.
> Any changes to this file require a corresponding PR to math... |
ab86119fc42312eba775fd271f0681eebbfd7bed | 618003631150032a5676f229d13a079ac875ff77 | /src/ring_theory/adjoin_root.lean | 6029348823e2a4e41390124370590e3963942a8f | [
"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 | 4,120 | lean | /-
Copyright (c) 2018 Mario Carneiro. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Mario Carneiro, Chris Hughes
Adjoining roots of polynomials
-/
import data.polynomial
import ring_theory.principal_ideal_domain
/-!
# Adjoining roots of polynomials
This file define... |
37a157a0418f9fd3166f8603f6f306a9809fa3a9 | 9be442d9ec2fcf442516ed6e9e1660aa9071b7bd | /tests/playground/termParserAttr.lean | 4219d7823c4363791bd105b3b88e649bebc22182 | [
"Apache-2.0",
"LLVM-exception",
"NCSA",
"LGPL-3.0-only",
"LicenseRef-scancode-inner-net-2.0",
"BSD-3-Clause",
"LGPL-2.0-or-later",
"Spencer-94",
"LGPL-2.1-or-later",
"HPND",
"LicenseRef-scancode-pcre",
"ISC",
"LGPL-2.1-only",
"LicenseRef-scancode-other-permissive",
"SunPro",
"CMU-Mach"... | permissive | EdAyers/lean4 | 57ac632d6b0789cb91fab2170e8c9e40441221bd | 37ba0df5841bde51dbc2329da81ac23d4f6a4de4 | refs/heads/master | 1,676,463,245,298 | 1,660,619,433,000 | 1,660,619,433,000 | 183,433,437 | 1 | 0 | Apache-2.0 | 1,657,612,672,000 | 1,556,196,574,000 | Lean | UTF-8 | Lean | false | false | 1,034 | lean | import Lean
open Lean
open Lean.Elab
def run (input : String) (failIff : Bool := true) : MetaIO Unit :=
do env ← MetaIO.getEnv;
opts ← MetaIO.getOptions;
let (env, messages) := process input env opts;
messages.toList.forM $ fun msg => IO.println msg;
when (failIff && messages.hasErrors) $ throw (IO.userEr... |
5e39b1d102fcf7891dfc8f62a9d3123a238a2257 | 947fa6c38e48771ae886239b4edce6db6e18d0fb | /src/data/nat/totient.lean | ded01f637e46c7a8eaba5c059690382a85ebfc6d | [
"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 | 14,681 | lean | /-
Copyright (c) 2018 Chris Hughes. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Chris Hughes
-/
import algebra.char_p.two
import data.nat.factorization.basic
import data.nat.periodic
import data.zmod.basic
/-!
# Euler's totient function
This file defines [Euler's ... |
acef879c942ae65dce42f0e4786a6eb662e88935 | 367134ba5a65885e863bdc4507601606690974c1 | /src/measure_theory/set_integral.lean | 4ce848c994bafdae8251851b802b996548288fc2 | [
"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 | 44,941 | lean | /-
Copyright (c) 2020 Zhouhang Zhou. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Zhouhang Zhou, Yury Kudryashov
-/
import measure_theory.bochner_integration
import analysis.normed_space.indicator_function
/-!
# Set integral
In this file we prove some properties of... |
f89a49ddff1d9228941d3564fef780cc700c4ad1 | 5883d9218e6f144e20eee6ca1dab8529fa1a97c0 | /src/vrel/inv.lean | c3c3b5b37e3b43dd7f5a7bf737f0f23018dfceb9 | [] | no_license | spl/alpha-conversion-is-easy | 0d035bc570e52a6345d4890e4d0c9e3f9b8126c1 | ed937fe85d8495daffd9412a5524c77b9fcda094 | refs/heads/master | 1,607,649,280,020 | 1,517,380,240,000 | 1,517,380,240,000 | 52,174,747 | 4 | 0 | null | 1,456,052,226,000 | 1,456,001,163,000 | Lean | UTF-8 | Lean | false | false | 1,135 | lean | /-
This file contains declarations related to `vrel` inversion or symmetry.
-/
import .id
namespace acie -----------------------------------------------------------------
namespace vrel -----------------------------------------------------------------
variables {V : Type} [decidable_eq V] -- Type of variable names... |
e6d0088aa3b9d54ab3505f088dc6d6957e6fda76 | 206422fb9edabf63def0ed2aa3f489150fb09ccb | /src/computability/language.lean | 7ca703ebd66f6c0c7926d398ca40daa26384f9f1 | [
"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 | 9,075 | lean | /-
Copyright (c) 2020 Fox Thomson. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Fox Thomson.
-/
import data.finset.basic
/-!
# Languages
This file contains the definition and operations on formal languages over an alphabet. Note strings
are implemented as lists over... |
35661e2b76699bf83ef0a57b02ff8bef54f8d20b | 86f6f4f8d827a196a32bfc646234b73328aeb306 | /examples/logic/unnamed_1583.lean | f02b02a7cb77f521198aa19124b4ccb861be65e5 | [] | no_license | jamescheuk91/mathematics_in_lean | 09f1f87d2b0dce53464ff0cbe592c568ff59cf5e | 4452499264e2975bca2f42565c0925506ba5dda3 | refs/heads/master | 1,679,716,410,967 | 1,613,957,947,000 | 1,613,957,947,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 272 | lean | import data.real.basic
-- BEGIN
example {x y : ℝ} (h : x ≤ y ∧ x ≠ y) : ¬ y ≤ x :=
begin
intro h',
apply h.right,
exact le_antisymm h.left h'
end
example {x y : ℝ} (h : x ≤ y ∧ x ≠ y) : ¬ y ≤ x :=
λ h', h.right (le_antisymm h.left h')
-- END |
bbc04b21ea215624092ce665a9265b03e6587e8a | fecda8e6b848337561d6467a1e30cf23176d6ad0 | /src/ring_theory/discrete_valuation_ring.lean | a9c6d926ddcfcb5c3c9db8a0d54464e8ad7943a3 | [
"Apache-2.0"
] | permissive | spolu/mathlib | bacf18c3d2a561d00ecdc9413187729dd1f705ed | 480c92cdfe1cf3c2d083abded87e82162e8814f4 | refs/heads/master | 1,671,684,094,325 | 1,600,736,045,000 | 1,600,736,045,000 | 297,564,749 | 1 | 0 | null | 1,600,758,368,000 | 1,600,758,367,000 | null | UTF-8 | Lean | false | false | 13,441 | lean | /-
Copyright (c) 2020 Kevin Buzzard. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Kevin Buzzard
-/
import ring_theory.principal_ideal_domain order.conditionally_complete_lattice
import ring_theory.multiplicity
import ring_theory.valuation.basic
import tactic
/-!
# ... |
1032c8da4345b379bf78d83771c0abe43ee4a2d9 | 618003631150032a5676f229d13a079ac875ff77 | /src/category_theory/limits/shapes/biproducts.lean | eae93103cd06ca1f73a764768f11ecc539d88a70 | [
"Apache-2.0"
] | permissive | awainverse/mathlib | 939b68c8486df66cfda64d327ad3d9165248c777 | ea76bd8f3ca0a8bf0a166a06a475b10663dec44a | refs/heads/master | 1,659,592,962,036 | 1,590,987,592,000 | 1,590,987,592,000 | 268,436,019 | 1 | 0 | Apache-2.0 | 1,590,990,500,000 | 1,590,990,500,000 | null | UTF-8 | Lean | false | false | 18,951 | lean | /-
Copyright (c) 2019 Scott Morrison. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Scott Morrison
-/
import category_theory.epi_mono
import category_theory.limits.shapes.binary_products
import category_theory.preadditive
/-!
# Biproducts and binary biproducts
We in... |
02e23ef4c1730cbe11a16b8d7dad972722215b20 | da23b545e1653cafd4ab88b3a42b9115a0b1355f | /src/tidy/injections.lean | 896597dc68d8c31f5421900d44aca4dce843584e | [] | no_license | minchaowu/lean-tidy | 137f5058896e0e81dae84bf8d02b74101d21677a | 2d4c52d66cf07c59f8746e405ba861b4fa0e3835 | refs/heads/master | 1,585,283,406,120 | 1,535,094,033,000 | 1,535,094,033,000 | 145,945,792 | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 330 | lean | -- Copyright (c) 2018 Scott Morrison. All rights reserved.
-- Released under Apache 2.0 license as described in the file LICENSE.
-- Authors: Scott Morrison
import tidy.at_least_one
open tactic
meta def injections_and_clear : tactic unit :=
do l ← local_context,
at_least_one $ l.map $ λ e, injection e >> clear e,
... |
3eb885415266015d7579233da5fc7a02b7294102 | 8cae430f0a71442d02dbb1cbb14073b31048e4b0 | /src/algebra/lie/free.lean | 1823531a53c2aa22e2eb67219b6034cd4af28e1e | [
"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 | 10,992 | lean | /-
Copyright (c) 2021 Oliver Nash. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Oliver Nash
-/
import algebra.lie.of_associative
import algebra.lie.non_unital_non_assoc_algebra
import algebra.lie.universal_enveloping
import algebra.free_non_unital_non_assoc_algebra
... |
4fd1aa77f767e7b75ba24b3959bb28c31ca6067d | 7cef822f3b952965621309e88eadf618da0c8ae9 | /src/topology/uniform_space/basic.lean | 6238326d9b69b490f9972daf4452e9dca039362c | [
"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 | 42,035 | lean | /-
Copyright (c) 2017 Johannes Hölzl. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Johannes Hölzl, Mario Carneiro, Patrick Massot
Theory of uniform spaces.
Uniform spaces are a generalization of metric spaces and topological groups. Many concepts directly
generaliz... |
da61641136bf00fef77247fd415126dd67f8aa59 | 6432ea7a083ff6ba21ea17af9ee47b9c371760f7 | /src/Lean/Elab/Level.lean | 610d44a1416e0c9a9669828db3c6ef420d19c729 | [
"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,373 | 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.Log
import Lean.Parser.Level
import Lean.Elab.Exception
import Lean.Elab.AutoBound
namespace Lean.Elab.Level
structure Context where
options... |
d35e3b01eeab50331a2b365476db2486b23d6146 | d5b53bc87e7f4dda87570c8ef6ee4b4de685f315 | /src/induced_maps.lean | 1c76b49ab79b0d852da105ce7ed34d7b0ff0c99d | [] | no_license | Shenyang1995/M4R | 3bec366fba7262ed29d7f64b4ba7cc978494c022 | a6a3399c4d1935b39a22f64c30f293ef2a32fdeb | refs/heads/master | 1,597,008,096,640 | 1,591,722,931,000 | 1,591,722,931,000 | 214,177,424 | 5 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 2,864 | lean | import cohomology
import G_module.hom
variables {G : Type*} [group G]
variables {M : Type*}[add_comm_group M] [G_module G M]
variables {N : Type*} [add_comm_group N] [G_module G N]
variables {n : ℕ}
def cochain.map (f : M →[G] N) : cochain n G M → cochain n G N :=
λ b c, f (b c)
theorem d_map (f : M →[G] N) (c : coch... |
f896879fcf65cf9fdc22ecca6bd11d5a1432c026 | 6432ea7a083ff6ba21ea17af9ee47b9c371760f7 | /tests/lean/run/1815.lean | 0a0cea29ddb17be3a4f151360ddffc790b5391ff | [
"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 | 284 | lean | variable {α : Type _} [Mul α] [Inhabited α]
abbrev Left (a : α) : α := a * default
abbrev Right (a : α): α := default * a
theorem mul_comm (a b : α) : a * b = b * a := sorry
set_option trace.Meta.Tactic.simp true
example (a : α) : Left a = Right a := by
simp [mul_comm]
|
729e5105c34c23ebf0f4ec529545b6251b09a3c3 | 74addaa0e41490cbaf2abd313a764c96df57b05d | /Mathlib/Lean3Lib/init/meta/mk_has_sizeof_instance_auto.lean | dc7f9842d0e66cad3f6e281451ceef172a1b16c4 | [] | 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 | 466 | lean | /-
Copyright (c) 2016 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Leonardo de Moura
Helper tactic for constructing has_sizeof instance.
-/
import Mathlib.PrePort
import Mathlib.Lean3Lib.init.meta.rec_util
import Mathlib.Lean3Lib.init.meta.con... |
f046795bd8b6fb3d995b7059fa7dfdca1eb647ec | 29cc89d6158dd3b90acbdbcab4d2c7eb9a7dbf0f | /Exercises week 4/21_exercise_sheet.lean | a06e253e68cd9e31b1c637cddb165f8f049dc6f7 | [] | no_license | KjellZijlemaker/Logical_Verification_VU | ced0ba95316a30e3c94ba8eebd58ea004fa6f53b | 4578b93bf1615466996157bb333c84122b201d99 | refs/heads/master | 1,585,966,086,108 | 1,549,187,704,000 | 1,549,187,704,000 | 155,690,284 | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 5,508 | lean | /- Exercise 2.1: Functional Programming — Lists -/
/- Question 1: Counting elements -/
/- 1.1. Define a function `count` that counts the number of occurrences of an element in a list. It
should be similar to `bcount` from the lecture, except that it takes a value `α` instead of a
predicate `α → bool`.
`decidable_eq`... |
281cc2ace70d26e20c808dae65f108ab1b30398d | 43390109ab88557e6090f3245c47479c123ee500 | /src/Topology/Material/Sutherland_Chapter_8.lean | 5e5f8ac0525a9c851749e52b797c732266b54988 | [
"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 | 9,600 | lean | import analysis.topology.continuity
import analysis.topology.topological_space
import analysis.topology.infinite_sum
import analysis.topology.topological_structures
import analysis.topology.uniform_space
import data.equiv.basic
local attribute [instance] classical.prop_decidable
universes u v w
open set filter latt... |
f98dcb4b68255ac7443dadf954f003ecc375f21a | 4d2583807a5ac6caaffd3d7a5f646d61ca85d532 | /src/analysis/normed_space/exponential.lean | 7b45ab0eddfc3c96102edd6514781d97e469baba | [
"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,900 | lean | /-
Copyright (c) 2021 Anatole Dedecker. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Anatole Dedecker
-/
import analysis.specific_limits
import analysis.analytic.basic
import analysis.complex.basic
/-!
# Exponential in a Banach algebra
In this file, we define `exp ... |
149d85a669ba6d37f08518211e29b1efd39a2f74 | 55c7fc2bf55d496ace18cd6f3376e12bb14c8cc5 | /src/category_theory/over.lean | 8ff5e284e5c127967482eb321c2b3bf8a233d357 | [
"Apache-2.0"
] | permissive | dupuisf/mathlib | 62de4ec6544bf3b79086afd27b6529acfaf2c1bb | 8582b06b0a5d06c33ee07d0bdf7c646cae22cf36 | refs/heads/master | 1,669,494,854,016 | 1,595,692,409,000 | 1,595,692,409,000 | 272,046,630 | 0 | 0 | Apache-2.0 | 1,592,066,143,000 | 1,592,066,142,000 | null | UTF-8 | Lean | false | false | 7,721 | lean | /-
Copyright (c) 2019 Johan Commelin. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Johan Commelin
-/
import category_theory.comma
import category_theory.punit
import category_theory.reflect_isomorphisms
/-!
# Over and under categories
Over (and under) categories ar... |
545cde802544b5936ca8ae41458e8c0d72d4457b | 42c01158c2730cc6ac3e058c1339c18cb90366e2 | /M1F/group_projects/rational_powers.lean | 45b34d369e16bfa8b2d0af6f96dd71fab55dc4ba | [] | no_license | ChrisHughes24/xena | c80d94355d0c2ae8deddda9d01e6d31bc21c30ae | 337a0d7c9f0e255e08d6d0a383e303c080c6ec0c | refs/heads/master | 1,631,059,898,392 | 1,511,200,551,000 | 1,511,200,551,000 | 111,468,589 | 1 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 1,927 | lean | -- let's define the real numbers to be a number system which satisfies
-- the basic properties of the real numbers which we will need.
noncomputable theory
constant real : Type
@[instance] constant real_field : linear_ordered_field real
-- This piece of magic means that "real" now behaves a lot like
-- the real numb... |
83e718c4609f05676b9fac20801ea2feebaf5c55 | 302c785c90d40ad3d6be43d33bc6a558354cc2cf | /src/data/complex/basic.lean | ad138d39c1f16f20fd4a559d11b8b2f05bca985e | [
"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 | 26,719 | lean | /-
Copyright (c) 2017 Kevin Buzzard. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Kevin Buzzard, Mario Carneiro
-/
import data.real.sqrt
/-!
# The complex numbers
The complex numbers are modelled as ℝ^2 in the obvious way and it is shown that they form a field
of c... |
ba80306a0a479163742d3b1fb8b0b7f6704d41d6 | 947b78d97130d56365ae2ec264df196ce769371a | /src/Lean/Elab/Tactic/Generalize.lean | bb1923a0a502edb36413bbfebb540a9e3e2f8b5b | [
"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 | 2,795 | 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.Meta.Tactic.Generalize
import Lean.Meta.Check
import Lean.Meta.Tactic.Intro
import Lean.Elab.Tactic.ElabTerm
namespace Lean
... |
216a7a9fb089455a13a61aa06e790833a831a2a2 | d406927ab5617694ec9ea7001f101b7c9e3d9702 | /src/analysis/special_functions/trigonometric/bounds.lean | d0ad2627ea9e4098fff170367aa85d05d01f9d8a | [
"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,377 | lean | /-
Copyright (c) 2022 David Loeffler. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: David Loeffler
-/
import analysis.special_functions.trigonometric.basic
import analysis.special_functions.trigonometric.arctan_deriv
/-!
# Polynomial bounds for trigonometric functions... |
2f5468fabc1a967d5dfc1637c3685113791f6950 | fa02ed5a3c9c0adee3c26887a16855e7841c668b | /src/ring_theory/finiteness.lean | c9e7c23eed13a94e62c9913eb3276abe342c8546 | [
"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 | 33,173 | 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.noetherian
import ring_theory.ideal.operations
import ring_theory.algebra_tower
import group_theory.finiteness
/-!
# Finiteness conditions in com... |
da334b08c33c77c34702308f7003e93b3c21c7be | 4bcaca5dc83d49803f72b7b5920b75b6e7d9de2d | /stage0/src/Lean/Elab/MutualDef.lean | a6e7e96d8c147bec779d23fec0b0cfa1dc6a53c6 | [
"Apache-2.0"
] | permissive | subfish-zhou/leanprover-zh_CN.github.io | 30b9fba9bd790720bd95764e61ae796697d2f603 | 8b2985d4a3d458ceda9361ac454c28168d920d3f | refs/heads/master | 1,689,709,967,820 | 1,632,503,056,000 | 1,632,503,056,000 | 409,962,097 | 1 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 32,868 | 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.Parser.Term
import Lean.Meta.Closure
import Lean.Meta.Check
import Lean.Elab.Command
import Lean.Elab.DefView
import Lean.Elab.PreDefinition
imp... |
80cf226d9b760b7eef430f9434c697ab682176a1 | bb31430994044506fa42fd667e2d556327e18dfe | /src/data/multiset/bind.lean | 031bc820e400e0e3295c7a8f864f94e68c148bb3 | [
"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 | 9,593 | 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 algebra.big_operators.multiset.basic
/-!
# Bind operation for multisets
This file defines a few basic operations on `multiset`, notably the monadic bind.
##... |
e1bfd2e63e19358a04ff61d3f8e1a76683b46cc1 | 4d2583807a5ac6caaffd3d7a5f646d61ca85d532 | /src/topology/bases.lean | 11a0a4ccd903d0655c12a8c280daaf540e1510b8 | [
"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 | 31,556 | lean | /-
Copyright (c) 2017 Johannes Hölzl. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Johannes Hölzl, Mario Carneiro
-/
import topology.continuous_on
import topology.constructions
/-!
# Bases of topologies. Countability axioms.
A topological basis on a topological sp... |
488fafe7d2cbb319a1f5b7e79334f19699fd4575 | 130c49f47783503e462c16b2eff31933442be6ff | /stage0/src/Lean/Parser/Basic.lean | 47ee936c8a649992a7573f35403433bc658aea7d | [
"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 | 76,393 | 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, Sebastian Ullrich
-/
import Lean.Data.Trie
import Lean.Data.Position
import Lean.Syntax
import Lean.ToExpr
import Lean.Environment
import Lean.Attributes
impo... |
7c90c70a4dd9f51835c7d9c7adb5924a6f212233 | 32025d5c2d6e33ad3b6dd8a3c91e1e838066a7f7 | /stage0/src/Lean/Parser/Basic.lean | efa1d8135421de2feec13d000a6b76ab23982939 | [
"Apache-2.0"
] | permissive | walterhu1015/lean4 | b2c71b688975177402758924eaa513475ed6ce72 | 2214d81e84646a905d0b20b032c89caf89c737ad | refs/heads/master | 1,671,342,096,906 | 1,599,695,985,000 | 1,599,695,985,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 62,393 | 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, Sebastian Ullrich
-/
/-!
# Basic Lean parser infrastructure
The Lean parser was developed with the following primary goals in mind:
* flexibility: Lean's g... |
617b6929e3287efd02c00fec27226d826ceb3957 | e953c38599905267210b87fb5d82dcc3e52a4214 | /hott/hit/torus.hlean | 2668855728c322e673c5dd77785de7687c97e627 | [
"Apache-2.0"
] | permissive | c-cube/lean | 563c1020bff98441c4f8ba60111fef6f6b46e31b | 0fb52a9a139f720be418dafac35104468e293b66 | refs/heads/master | 1,610,753,294,113 | 1,440,451,356,000 | 1,440,499,588,000 | 41,748,334 | 0 | 0 | null | 1,441,122,656,000 | 1,441,122,656,000 | null | UTF-8 | Lean | false | false | 3,547 | 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
Declaration of the torus
-/
import .two_quotient
open two_quotient eq bool unit relation
namespace torus
definition torus_R (x y : unit) := bool
local infi... |
d39ab2e8455b9e94e5e21d0440f17850b4305e41 | 6432ea7a083ff6ba21ea17af9ee47b9c371760f7 | /src/Lean/Meta/CasesOn.lean | 7646455f9e2d326e7e3c81eabeef907b0d321c2a | [
"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 | 5,347 | lean | /-
Copyright (c) 2022 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Leonardo de Moura
-/
import Lean.Meta.KAbstract
import Lean.Meta.Check
namespace Lean.Meta
structure CasesOnApp where
declName : Name
us : List Level
param... |
4b6b43b6fc7b5cd7388aec1e9fc7638ef0d2127e | f3a5af2927397cf346ec0e24312bfff077f00425 | /src/game/world10/level5.lean | 0c090d2378aad627d12604a510e14da759ce56aa | [
"Apache-2.0"
] | permissive | ImperialCollegeLondon/natural_number_game | 05c39e1586408cfb563d1a12e1085a90726ab655 | f29b6c2884299fc63fdfc81ae5d7daaa3219f9fd | refs/heads/master | 1,688,570,964,990 | 1,636,908,242,000 | 1,636,908,242,000 | 195,403,790 | 277 | 84 | Apache-2.0 | 1,694,547,955,000 | 1,562,328,792,000 | Lean | UTF-8 | Lean | false | false | 618 | lean | import game.world10.level4 -- hide
namespace mynat -- hide
/-
# Inequality world.
## Level 5: `le_trans`
Another straightforward one.
-/
/- Lemma
≤ is transitive. In other words, if $a\leq b$ and $b\leq c$ then $a\leq c$.
-/
theorem le_trans (a b c : mynat) (hab : a ≤ b) (hbc : b ≤ c) : a ≤ c :=
begin [nat_num... |
199d53e20525db724e856e52c3796f7cae856b34 | 367134ba5a65885e863bdc4507601606690974c1 | /src/algebra/char_p/basic.lean | d61b127560e052b00487ad61ee3cc92437e624f3 | [
"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,201 | lean | /-
Copyright (c) 2018 Kenny Lau. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Author: Kenny Lau, Joey van Langen, Casper Putz
-/
import data.fintype.basic
import data.nat.choose
import data.int.modeq
import algebra.module.basic
import algebra.iterate_hom
import group_theory.... |
524a73111a366a7808c81af114ecba7436bee9fc | 4d2583807a5ac6caaffd3d7a5f646d61ca85d532 | /src/analysis/calculus/fderiv.lean | dc31bbd55f581fd4dceb62baa45a9981d7951152 | [
"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 | 130,235 | lean | /-
Copyright (c) 2019 Jeremy Avigad. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Jeremy Avigad, Sébastien Gouëzel, Yury Kudryashov
-/
import analysis.asymptotics.asymptotic_equivalent
import analysis.calculus.tangent_cone
import analysis.normed_space.bounded_linear_... |
ad11b8c231e0516bdee9a52e44c5a0c017caf042 | 57c233acf9386e610d99ed20ef139c5f97504ba3 | /src/geometry/manifold/algebra/smooth_functions.lean | dbd3907d820440bcfca671f2f756c022f21d9994 | [
"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 | 10,750 | lean | /-
Copyright © 2020 Nicolò Cavalleri. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Nicolò Cavalleri
-/
import geometry.manifold.algebra.structures
/-!
# Algebraic structures over smooth functions
In this file, we define instances of algebraic structures over smoot... |
05c2fe31d66a540f2b557fe6e701c421f0ad21c5 | 4fa161becb8ce7378a709f5992a594764699e268 | /src/topology/algebra/module.lean | 5c97a62e7379e5e81bc2f4c1c898cafbfa94f4c2 | [
"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 | 38,750 | lean | /-
Copyright (c) 2019 Sébastien Gouëzel. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Jan-David Salchow, Sébastien Gouëzel, Jean Lo, Yury Kudryashov
-/
import topology.algebra.ring
import topology.uniform_space.uniform_embedding
import ring_theory.algebra
import line... |
5b321d4e41cacb21a2f5934b8c8878fa5d2acd51 | 74addaa0e41490cbaf2abd313a764c96df57b05d | /Mathlib/data/stream/basic.lean | 2da1070cbaa1b02b6eec1b81309fc56646938743 | [] | 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,136 | lean | /-
Copyright (c) 2020 Gabriel Ebner, Simon Hudon. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Gabriel Ebner, Simon Hudon
-/
import Mathlib.PrePort
import Mathlib.Lean3Lib.init.default
import Mathlib.tactic.ext
import Mathlib.Lean3Lib.data.stream
import Mathlib.data.... |
92ec18b5f81a4dbb2f08d45957ef20d2b9229709 | 55c7fc2bf55d496ace18cd6f3376e12bb14c8cc5 | /src/analysis/special_functions/exp_log.lean | 173245000765e88a9677cb132f416431771252cd | [
"Apache-2.0"
] | permissive | dupuisf/mathlib | 62de4ec6544bf3b79086afd27b6529acfaf2c1bb | 8582b06b0a5d06c33ee07d0bdf7c646cae22cf36 | refs/heads/master | 1,669,494,854,016 | 1,595,692,409,000 | 1,595,692,409,000 | 272,046,630 | 0 | 0 | Apache-2.0 | 1,592,066,143,000 | 1,592,066,142,000 | null | UTF-8 | Lean | false | false | 22,032 | 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 data.complex.exponential
import analysis.complex.basic
import analysis.calculus.mean_value
/-!
# Complex and real... |
f9e02366927344a42ae9d23027efe40b629e9ffd | 9be442d9ec2fcf442516ed6e9e1660aa9071b7bd | /tests/lean/run/dynamic.lean | 0361ed7eba7455d0287f4cd3b3f151b0a3ae45be | [
"Apache-2.0",
"LLVM-exception",
"NCSA",
"LGPL-3.0-only",
"LicenseRef-scancode-inner-net-2.0",
"BSD-3-Clause",
"LGPL-2.0-or-later",
"Spencer-94",
"LGPL-2.1-or-later",
"HPND",
"LicenseRef-scancode-pcre",
"ISC",
"LGPL-2.1-only",
"LicenseRef-scancode-other-permissive",
"SunPro",
"CMU-Mach"... | permissive | EdAyers/lean4 | 57ac632d6b0789cb91fab2170e8c9e40441221bd | 37ba0df5841bde51dbc2329da81ac23d4f6a4de4 | refs/heads/master | 1,676,463,245,298 | 1,660,619,433,000 | 1,660,619,433,000 | 183,433,437 | 1 | 0 | Apache-2.0 | 1,657,612,672,000 | 1,556,196,574,000 | Lean | UTF-8 | Lean | false | false | 288 | lean | import Std
open Std
deriving instance TypeName for Nat
deriving instance TypeName for String
example : (Dynamic.mk 42).get? String = none := by native_decide
example : (Dynamic.mk 42).get? Nat = some 42 := by native_decide
example : (Dynamic.mk 42).typeName = ``Nat := by native_decide
|
337dc2b3476b6c0078e56069f7e1943857bc92fb | 74addaa0e41490cbaf2abd313a764c96df57b05d | /Mathlib/tactic/omega/coeffs.lean | 654538ea9fadd7a033f1e7995ca5965d6790a3a5 | [] | 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,723 | lean | /-
Copyright (c) 2019 Seul Baek. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Author: Seul Baek
-/
import Mathlib.PrePort
import Mathlib.Lean3Lib.init.default
import Mathlib.data.list.func
import Mathlib.tactic.ring
import Mathlib.tactic.omega.misc
import Mathlib.PostPort
na... |
1fd29a302b4859db471226534a04b6c98887d475 | 7cef822f3b952965621309e88eadf618da0c8ae9 | /src/measure_theory/borel_space.lean | e1deb81427daaed5eb2f7c45dd19ad80c4087e32 | [
"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 | 26,050 | 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
Borel (measurable) space -- the smallest σ-algebra generated by open sets
It would be nice to encode this in the topological space type class, i.e. each topological sp... |
b8862b686244d66be17281cac0d87fdbe8fd0c03 | 4b846d8dabdc64e7ea03552bad8f7fa74763fc67 | /library/init/meta/tactic.lean | f8a512b619696d865029041d2b231791c2218d76 | [
"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 | 39,309 | lean | /-
Copyright (c) 2016 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Leonardo de Moura
-/
prelude
import init.function init.data.option.basic init.util
import init.category.combinators init.category.monad init.category.alternative init.category.m... |
f55f8443956e773e1a7766f8cc4c35a3186c43c3 | ba4ad8a778c69640c9cca8e5dcaeb40d4a10fa10 | /lean4/Bin/Main.lean | a25bce5c4257d633a01a27731fe1217aa8fb00ac | [] | no_license | tangentstorm/tangentlabs | 390ac60618bd913b567d20933dab70b84aac7151 | 137adbba6e7c35f8bb54b0786ada6c8c2ff6bc72 | refs/heads/master | 1,693,514,213,127 | 1,692,322,210,000 | 1,692,322,210,000 | 7,815,356 | 33 | 22 | null | 1,433,592,935,000 | 1,359,097,381,000 | Visual Basic | UTF-8 | Lean | false | false | 81 | lean | import Bin
def main : IO Unit :=
IO.println s!"one is: {Bin.succ Bin.B}!"
|
838bea0a0918188d389db79eb51afaaff05f0f82 | 0c1546a496eccfb56620165cad015f88d56190c5 | /tests/lean/run/elab_crash1.lean | bc4d8773b13bd4fbcf4a77c3bebd483e50cef2a1 | [
"Apache-2.0"
] | permissive | Solertis/lean | 491e0939957486f664498fbfb02546e042699958 | 84188c5aa1673fdf37a082b2de8562dddf53df3f | refs/heads/master | 1,610,174,257,606 | 1,486,263,620,000 | 1,486,263,620,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 349 | lean | open expr tactic
meta definition to_expr_target (a : pexpr) : tactic expr :=
do tgt ← target,
to_expr `((%%a : %%tgt))
noncomputable example (A : Type) (a : A) : A :=
by do to_expr_target `(sorry) >>= exact
noncomputable example (A : Type) (a : A) : A :=
by do refine `(sorry)
example (a : nat) : nat :=
by do to_... |
d86f72bd6bba92182c5944b5c1b4bf5fa9dc415b | 491068d2ad28831e7dade8d6dff871c3e49d9431 | /library/data/fin.lean | 78f8f2970eb586960d965b3dd78bcc19dd524e45 | [
"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 | 17,636 | lean | /-
Copyright (c) 2015 Haitao Zhang. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Haitao Zhang, Leonardo de Moura
Finite ordinal types.
-/
import data.list.basic data.finset.basic data.fintype.card algebra.group data.equiv
open eq.ops nat function list finset fintype... |
d8f4e5fa0b8f9615cb432337ea77ce0a1dd10ed6 | d1a52c3f208fa42c41df8278c3d280f075eb020c | /stage0/src/Lean/LocalContext.lean | db26a8c6e5c8e2ea436c474aec08d7417e002841 | [
"Apache-2.0",
"LLVM-exception",
"NCSA",
"LGPL-3.0-only",
"LicenseRef-scancode-inner-net-2.0",
"BSD-3-Clause",
"LGPL-2.0-or-later",
"Spencer-94",
"LGPL-2.1-or-later",
"HPND",
"LicenseRef-scancode-pcre",
"ISC",
"LGPL-2.1-only",
"LicenseRef-scancode-other-permissive",
"SunPro",
"CMU-Mach"... | permissive | cipher1024/lean4 | 6e1f98bb58e7a92b28f5364eb38a14c8d0aae393 | 69114d3b50806264ef35b57394391c3e738a9822 | refs/heads/master | 1,642,227,983,603 | 1,642,011,696,000 | 1,642,011,696,000 | 228,607,691 | 0 | 0 | Apache-2.0 | 1,576,584,269,000 | 1,576,584,268,000 | null | UTF-8 | Lean | false | false | 15,322 | 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 Std.Data.PersistentArray
import Lean.Expr
import Lean.Hygiene
namespace Lean
inductive LocalDecl where
| cdecl (index : Nat) (fvarId : FVarId) (u... |
ad4ad9ea1b8e97cb21fa2c13e5b55cf93e4c0a3e | 77c5b91fae1b966ddd1db969ba37b6f0e4901e88 | /src/geometry/manifold/algebra/monoid.lean | 278d0fc72bd464322b3143b556e85ab03726fd49 | [
"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 | 11,321 | lean | /-
Copyright © 2020 Nicolò Cavalleri. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Nicolò Cavalleri
-/
import geometry.manifold.times_cont_mdiff_map
/-!
# Smooth monoid
A smooth monoid is a monoid that is also a smooth manifold, in which multiplication is a smooth ... |
291ec20c9b338b6e80e915501d714b0206d4781c | 8f209eb34c0c4b9b6be5e518ebfc767a38bed79c | /code/src/internal/Gdt/mark_all_rhss_inactive.lean | b28abcea509c1b0eeaa679f00a101ce8641672f5 | [] | no_license | hediet/masters-thesis | 13e3bcacb6227f25f7ec4691fb78cb0363f2dfb5 | dc40c14cc4ed073673615412f36b4e386ee7aac9 | refs/heads/master | 1,680,591,056,302 | 1,617,710,887,000 | 1,617,710,887,000 | 311,762,038 | 4 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 3,910 | lean | import tactic
import ...definitions
import ..internal_definitions
import ..Ant.main
import .eval
variable [GuardModule]
open GuardModule
@[simp]
lemma Gdt.mark_all_rhss_inactive.inactive_rhss (gdt: Gdt):
gdt.mark_all_rhss_inactive.inactive_rhss = gdt.rhss :=
begin
induction gdt;
try { cases gdt_grd };
... |
35ae5dcb8e97126131d490bbb566f4f4b984c2b0 | 3dd1b66af77106badae6edb1c4dea91a146ead30 | /tests/lean/empty.lean | 8a6c8913f65fdf6a800f874ef86594fe34b25a04 | [
"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 | 136 | lean | import logic hilbert
definition v1 : Prop := epsilon (λ x, true)
inductive Empty : Type
definition v2 : Empty := epsilon (λ x, true)
|
01451e69b9a555040b40c4ccb3f3a0657693ba9d | b7f22e51856f4989b970961f794f1c435f9b8f78 | /tests/lean/run/rewriter18.lean | 14988f547a306881fd2efce47d52b8c1cc2007de | [
"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 | 205 | lean | import algebra.ring
open algebra
definition foo {A : Type} [s : monoid A] (a : A) :=
a * a
example {A : Type} [s : comm_ring A] (a b : A) (H : foo a = a) : a * a = a :=
begin
rewrite [↓foo a, H]
end
|
7046daf31f79d6988dd6102fe32a276bb3907c93 | 74addaa0e41490cbaf2abd313a764c96df57b05d | /Mathlib/topology/metric_space/gluing.lean | 2f82a6a9c57b57e84a258411f71909dc90f8bdaa | [] | no_license | AurelienSaue/Mathlib4_auto | f538cfd0980f65a6361eadea39e6fc639e9dae14 | 590df64109b08190abe22358fabc3eae000943f2 | refs/heads/master | 1,683,906,849,776 | 1,622,564,669,000 | 1,622,564,669,000 | 371,723,747 | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 13,349 | lean | /-
Copyright (c) 2019 Sébastien Gouëzel. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Gluing metric spaces
Authors: Sébastien Gouëzel
-/
import Mathlib.PrePort
import Mathlib.Lean3Lib.init.default
import Mathlib.topology.metric_space.isometry
import Mathlib.topology.metric_sp... |
cf5865a349a8afcc62ed0638a0acb32682abbf17 | 2c41ae31b2b771ad5646ad880201393f5269a7f0 | /Lean/Examples/Parnas/Functional_Decomposition_Changeable.lean | 8b32f7c821d0c231c410ad0f170a59e7234b3475 | [] | no_license | kevinsullivan/Boehm | 926f25bc6f1a8b6bd47d333d936fdfc278228312 | 55208395bff20d48a598b7fa33a4d55a2447a9cf | refs/heads/master | 1,586,127,134,302 | 1,488,252,326,000 | 1,488,252,326,000 | 32,836,930 | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 632 | lean | import Qualities.Satisfactory
import SystemModel.Value
import Examples.Parnas.Functional_Decomposition
definition corpusChangeActionSpec (trigger: kwicAssertion) (agent: kwicStakeholders) (pre post: kwicSystemState): Prop :=
isModular_wrt kwicParameter.corpus pre /\
(trigger = corpusPreState /\ age... |
fe929a6c4001acd613b4e718dfeaf86cf945887e | 1abd1ed12aa68b375cdef28959f39531c6e95b84 | /src/number_theory/arithmetic_function.lean | 83f07c882ea5fa5bb86236bf0404a103c0442f93 | [
"Apache-2.0"
] | permissive | jumpy4/mathlib | d3829e75173012833e9f15ac16e481e17596de0f | af36f1a35f279f0e5b3c2a77647c6bf2cfd51a13 | refs/heads/master | 1,693,508,842,818 | 1,636,203,271,000 | 1,636,203,271,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 32,574 | lean | /-
Copyright (c) 2020 Aaron Anderson. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Aaron Anderson
-/
import algebra.big_operators.ring
import number_theory.divisors
import algebra.squarefree
import algebra.invertible
/-!
# Arithmetic Functions and Dirichlet Convolut... |
115495179cb8fd03de9b1879c0863ff3c81fd7d3 | 9c1ad797ec8a5eddb37d34806c543602d9a6bf70 | /examples/semigroups/dev.lean | 4ff71ff3ddc70010e6fd3faddabcae36c2244b51 | [] | 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 | 1,533 | 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 ...monoidal_categories.braided_monoidal_category
import .monoidal_category_of_semigroups
open tqft.categories.natural_transformation
open ... |
9de35ac710dce7a5c58f6d6ea93a7c9e5d0a69d2 | 367134ba5a65885e863bdc4507601606690974c1 | /src/deprecated/group.lean | da15775f37bbeeaebaad1b2df369fa20c63f5699 | [
"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 | 13,559 | lean | /-
Copyright (c) 2019 Yury Kudryashov. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Author: Yury Kudryashov
-/
import algebra.group.type_tags
import algebra.group.units_hom
import algebra.ring.basic
import data.equiv.mul_add
/-!
# Unbundled monoid and group homomorphisms (de... |
0decd296f5270581ab3497a91a326b1fa70e26da | a76f677b87d42a9470ba3a0a78cfddd3063118e6 | /src/incidence/basic.lean | 8476cd383163f95f18479c07b9b37e98b05981c0 | [] | no_license | Ja1941/hilberts-axioms | 50219c732ad5fa167408432e8c8baae259777a40 | 5b653a92e448b77da41c9893066b641bc4e6b316 | refs/heads/master | 1,693,238,884,856 | 1,635,702,120,000 | 1,635,702,120,000 | 385,546,384 | 9 | 1 | null | null | null | null | UTF-8 | Lean | false | false | 11,716 | lean | /-
Copyright (c) 2021 Tianchen Zhao. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Tianchen Zhao
-/
import set_theory.zfc
/-!
# Incidence geometry
This file defines incidence geometry as a class and proves basic lemmas about
points, lines and collinearity.
## Main ... |
5d74424cd083fa240dcd256d2e145e399f9aa13b | aa3f8992ef7806974bc1ffd468baa0c79f4d6643 | /library/standard/data/string.lean | 298477716620fd6d872c28a4bf03126e0f4df77d | [
"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 | 797 | 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
------------------------------------------------------... |
6b66b2ecb30df43f4969e5dcfb8e0975a650ef82 | 6fbf10071e62af7238f2de8f9aa83d55d8763907 | /hw/hw3b.lean | e0dbe204ebf6120505d7ea2dcfbec60a055d1f15 | [] | no_license | HasanMukati/uva-cs-dm-s19 | ee5aad4568a3ca330c2738ed579c30e1308b03b0 | 3e7177682acdb56a2d16914e0344c10335583dcf | refs/heads/master | 1,596,946,213,130 | 1,568,221,949,000 | 1,568,221,949,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 2,316 | lean | /-
CS 2102 Spring 2019 Homework #3b
The first part of your homework this week is to make
a new copy of the *blank* homework #2 assignment in
your "work" directory, now called "hw3a.lean", then
complete the questions that you did *not* complete
last week. To rename the file after copying it, click
on the file name, hi... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.