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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
ec4f49f4680edf06390407d2054bf8aa4beb4ec9 | fa02ed5a3c9c0adee3c26887a16855e7841c668b | /src/topology/metric_space/completion.lean | 15c20b610c288162f43f618de05fe5d9b085aa34 | [
"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 | 8,648 | 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.uniform_space.completion
import topology.metric_space.isometry
import topology.instances.real
/-!
# The completion of a metric space
Completio... |
e3ccc24c81349a79d65ca4d22b788ee5cc0aad94 | 367134ba5a65885e863bdc4507601606690974c1 | /src/data/qpf/multivariate/constructions/const.lean | e4a0f2b452770cf96c52b89f12799af5274decca | [
"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 | 1,915 | lean | /-
Copyright (c) 2020 Simon Hudon All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Author: Simon Hudon
-/
import control.functor.multivariate
import data.qpf.multivariate.basic
/-!
# Constant functors are QPFs
Constant functors map every type vectors to the same target type. T... |
229f2a847f13c910c0162a5d13e18e5bdca18007 | 82b86ba2ae0d5aed0f01f49c46db5afec0eb2bd7 | /src/Lean/Meta/Tactic/Subst.lean | 950fb439f2f8c1f6700271db77c3b20de3e06f84 | [
"Apache-2.0"
] | permissive | banksonian/lean4 | 3a2e6b0f1eb63aa56ff95b8d07b2f851072d54dc | 78da6b3aa2840693eea354a41e89fc5b212a5011 | refs/heads/master | 1,673,703,624,165 | 1,605,123,551,000 | 1,605,123,551,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 6,349 | 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.Intro
import Lean... |
26ad1396b9b27561bc54bd168fa32a67bbb8e3f9 | ae1e94c332e17c7dc7051ce976d5a9eebe7ab8a5 | /stage0/src/Lean/Elab/MutualDef.lean | 4d68cccc1e6c8cbe51334261f4181adf9dc331e5 | [
"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 | 28,278 | 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... |
15d128258de4185249a457f6a9076316b59dd2ff | 74addaa0e41490cbaf2abd313a764c96df57b05d | /Mathlib/data/buffer/basic_auto.lean | b3d83ef82bf4fb3585640a87bd80d197dcdb09ca | [] | 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 | 2,111 | lean | /-
Copyright (c) 2018 Simon Hudon. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Simon Hudon
General utility functions for buffers.
-/
import Mathlib.PrePort
import Mathlib.Lean3Lib.init.default
import Mathlib.Lean3Lib.data.buffer
import Mathlib.data.array.lemmas
imp... |
c88dff4f7a5c3ae9d4e926750355f8b42dcdaa2b | f3849be5d845a1cb97680f0bbbe03b85518312f0 | /library/tools/super/clause_ops.lean | 6f42e1742de8df292996a70f3007d148cb0d382e | [
"Apache-2.0"
] | permissive | bjoeris/lean | 0ed95125d762b17bfcb54dad1f9721f953f92eeb | 4e496b78d5e73545fa4f9a807155113d8e6b0561 | refs/heads/master | 1,611,251,218,281 | 1,495,337,658,000 | 1,495,337,658,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 3,378 | lean | /-
Copyright (c) 2016 Gabriel Ebner. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Gabriel Ebner
-/
import .clause
open monad tactic expr
namespace super
local attribute [instance] has_monad_lift_to_has_coe
meta def on_left_at {m} [monad m] (c : clause) (i : ℕ)
... |
f1a975f864ff5319814d031a0d72559f1da43ed7 | 8cae430f0a71442d02dbb1cbb14073b31048e4b0 | /src/topology/metric_space/dilation.lean | d9b8ecdeb9dc626b98f93db27ccc9a90e1eadcd1 | [
"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 | 16,799 | lean | /-
Copyright (c) 2022 Hanting Zhang. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Dilations of emetric and metric spaces
Authors: Hanting Zhang
-/
import topology.metric_space.antilipschitz
import data.fun_like.basic
/-!
# Dilations
> THIS FILE IS SYNCHRONIZED WITH MATHLIB4... |
dfeb16e93de8b07cf0fdff6206779d1296b1893f | 55c7fc2bf55d496ace18cd6f3376e12bb14c8cc5 | /src/algebra/group/inj_surj.lean | bf1fdfa80c2364ce696edef35173dda6c19bd7aa | [
"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 | 10,056 | 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 algebra.group.defs
import logic.function.basic
/-!
# Lifting algebraic data classes along injective/surjective maps
This file provides definitions that are m... |
096347cc46e785367a956ad90638ab1d43fa99b6 | d406927ab5617694ec9ea7001f101b7c9e3d9702 | /src/topology/inseparable.lean | 2ad7c59a4d8d9cd4cf0cd1fe1764c17e765d3e75 | [
"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 | 19,894 | lean | /-
Copyright (c) 2021 Andrew Yang. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Andrew Yang, Yury G. Kudryashov
-/
import topology.continuous_on
import data.setoid.basic
import tactic.tfae
/-!
# Inseparable points in a topological space
In this file we define
* `s... |
44d051ef7af90d17ac286eecd2a6c13b969f79c7 | 6e41ee3ac9b96e8980a16295cc21f131e731884f | /hott/algebra/precategory/functor.hlean | 5b1fc5b3ce4b48f53c122a87c791e79302376de0 | [
"Apache-2.0"
] | permissive | EgbertRijke/lean | 3426cfa0e5b3d35d12fc3fd7318b35574cb67dc3 | 4f2e0c6d7fc9274d953cfa1c37ab2f3e799ab183 | refs/heads/master | 1,610,834,871,476 | 1,422,159,801,000 | 1,422,159,801,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 7,988 | hlean | -- 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, Jakob von Raumer
import .basic types.pi
open function precategory eq prod equiv is_equiv sigma sigma.ops truncation
open pi
structure functor (C D : Precat... |
1462d4403c4cfc07c019b222ee6f5d66dba28204 | 1ef4deeea51820641ddc8460f5b3f901a91a4db2 | /sf/imp.lean | 7535b2a56cacdca4f6c43b593fc57d977b18338c | [
"Apache-2.0"
] | permissive | pnwamk/misc-lean | 6fdafce6297987ba506b20c692fedd77fcf3edd1 | 5b8807cfee8f22ab6f3b2c5d8ea678c02e67825b | refs/heads/master | 1,618,236,715,815 | 1,585,341,762,000 | 1,585,342,291,000 | 249,083,647 | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 11,704 | lean | -- Some simple programming language modeling, using lean4
-- commit 4296e1d83e734b18b4787329e4195569c0518325
-- from Fri Mar 20 18:32:04 2020 -0700
import Init.Data.String
-- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
-- Data definitions
-- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
def Var := String
-- A... |
3d909f497591b186c4fd49c406b61c361d42cdb5 | 4727251e0cd73359b15b664c3170e5d754078599 | /src/group_theory/submonoid/center.lean | 991460494c72574227f89384ca21c635d1969e0c | [
"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 | 1,916 | lean | /-
Copyright (c) 2021 Eric Wieser. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Eric Wieser
-/
import group_theory.submonoid.operations
import group_theory.subsemigroup.center
import data.fintype.basic
/-!
# Centers of monoids
## Main definitions
* `submonoid.cent... |
ea4d25cd93f00cd96908a70adf0fd2a8371f61bc | 35677d2df3f081738fa6b08138e03ee36bc33cad | /src/category_theory/limits/over.lean | a4af1dc5d2fa9e4768c06264ca59e79b468fd219 | [
"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 | 10,443 | lean | /-
Copyright (c) 2018 Johan Commelin. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Johan Commelin, Reid Barton, Bhavik Mehta
-/
import category_theory.comma
import category_theory.limits.preserves
import category_theory.limits.shapes.pullbacks
import category_theory.... |
0e09745974d0f8891ba4cb4bab429067329fcd3b | 8cb37a089cdb4af3af9d8bf1002b417e407a8e9e | /library/init/data/nat/bitwise.lean | 99be49bc987517cf9d25454d11bf513b3b41db8c | [
"Apache-2.0"
] | permissive | kbuzzard/lean | ae3c3db4bb462d750dbf7419b28bafb3ec983ef7 | ed1788fd674bb8991acffc8fca585ec746711928 | refs/heads/master | 1,620,983,366,617 | 1,618,937,600,000 | 1,618,937,600,000 | 359,886,396 | 1 | 0 | Apache-2.0 | 1,618,936,987,000 | 1,618,936,987,000 | null | UTF-8 | Lean | false | false | 10,072 | lean | /-
Copyright (c) 2017 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Author: Mario Carneiro
-/
prelude
import init.data.nat.lemmas init.meta.well_founded_tactics
universe u
namespace nat
def bodd_div2 : ℕ → bool × ℕ
| 0 := (ff, 0)
| (succ n) :=... |
e3a86fd6e4607c33fa1fd4b21aed2286cd4d8625 | 097294e9b80f0d9893ac160b9c7219aa135b51b9 | /instructor/objects/string.lean | 1f4fb17c54eed3df4bf158e7807535dccbe56f50 | [] | no_license | AbigailCastro17/CS2102-Discrete-Math | cf296251be9418ce90206f5e66bde9163e21abf9 | d741e4d2d6a9b2e0c8380e51706218b8f608cee4 | refs/heads/main | 1,682,891,087,358 | 1,621,401,341,000 | 1,621,401,341,000 | 368,749,959 | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 48 | lean | /-
Strings
-/
#eval "Hello, "
#eval "Logic!"
|
df2d8a12fa985fd1d1167ffb45e38f3c36be5975 | 206422fb9edabf63def0ed2aa3f489150fb09ccb | /src/ring_theory/polynomial/chebyshev/basic.lean | 0e6bb13842cf95fe39f76145c52fef2e4ea845f9 | [
"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 | 8,580 | 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.polynomial.chebyshev.defs
import analysis.special_functions.trigonometric
import ring_theory.localization
import data.zmod.basic
import algebra.in... |
2ccb9b45daced19bd59ef5add253f7b581ca16c2 | 57c233acf9386e610d99ed20ef139c5f97504ba3 | /src/category_theory/limits/shapes/pullbacks.lean | 4576f31bfad73509158773c135a5c76e8e295c80 | [
"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 | 83,484 | lean | /-
Copyright (c) 2018 Scott Morrison. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Scott Morrison, Markus Himmel, Bhavik Mehta, Andrew Yang
-/
import category_theory.limits.shapes.wide_pullbacks
import category_theory.limits.shapes.binary_products
/-!
# Pullbacks
W... |
33b1abed8d72945d541a4f70111a6e75045ae8f9 | f083c4ed5d443659f3ed9b43b1ca5bb037ddeb58 | /tactic/ring2.lean | a108fed55b1b62a7b1657f6d9ee33901d31d46c9 | [
"Apache-2.0"
] | permissive | semorrison/mathlib | 1be6f11086e0d24180fec4b9696d3ec58b439d10 | 20b4143976dad48e664c4847b75a85237dca0a89 | refs/heads/master | 1,583,799,212,170 | 1,535,634,130,000 | 1,535,730,505,000 | 129,076,205 | 0 | 0 | Apache-2.0 | 1,551,697,998,000 | 1,523,442,265,000 | Lean | UTF-8 | Lean | false | false | 18,177 | lean | /-
Copyright (c) 2018 Mario Carneiro. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Mario Carneiro
An experimental variant on the `ring` tactic that uses computational
reflection instead of proof generation. Useful for kernel benchmarking.
-/
import tactic.ring data.... |
0ab734012ab64d1f710b8c6b257972e074642ca7 | 78630e908e9624a892e24ebdd21260720d29cf55 | /src/logic_first_order/fol_15_16.lean | 562057b8bfe624c70d62f632910eeb20a5d3084b | [
"CC0-1.0"
] | permissive | tomasz-lisowski/lean-logic-examples | 84e612466776be0a16c23a0439ff8ef6114ddbe1 | 2b2ccd467b49c3989bf6c92ec0358a8d6ee68c5d | refs/heads/master | 1,683,334,199,431 | 1,621,938,305,000 | 1,621,938,305,000 | 365,041,573 | 1 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 764 | lean | namespace fol_15_16
-- Show that reflexivity is sufficient to derive the rules for symmetry and transitivity.
theorem foo {A : Type} {a b c : A} : a = b → c = b → a = c :=
assume h1: a = b,
assume h2: c = b,
show a = c, from
calc
a = b : by rw h1
... = c : by rw ← h2
section
variable A : Type
variables a b... |
2a279554dd1eff689fb604d17a434c6e44211331 | 4727251e0cd73359b15b664c3170e5d754078599 | /src/algebra/char_zero.lean | 86887715e33d78e44b92d1b1a4afeb20bec3ddcb | [
"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 | 7,267 | lean | /-
Copyright (c) 2014 Mario Carneiro. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Mario Carneiro
-/
import data.nat.cast
import data.fintype.basic
import tactic.wlog
/-!
# Characteristic zero
A ring `R` is called of characteristic zero if every natural number `n`... |
9ddcd418fa1f42f0797b5ef666eadb85f8ad47dc | cc62cd292c1acc80a10b1c645915b70d2cdee661 | /src/category_theory/graphs/category.lean | 7e27f7106ca578b53b2f99e5dd930c99c4a927c3 | [] | no_license | RitaAhmadi/lean-category-theory | 4afb881c4b387ee2c8ce706c454fbf9db8897a29 | a27b4ae5eac978e9188d2e867c3d11d9a5b87a9e | refs/heads/master | 1,651,786,183,402 | 1,565,604,314,000 | 1,565,604,314,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 1,237 | lean | -- Copyright (c) 2017 Scott Morrison. All rights reserved.
-- Released under Apache 2.0 license as described in the file LICENSE.
-- Authors: Stephen Morgan and Scott Morrison
import category_theory.category
import category_theory.graphs
namespace category_theory
open category_theory.graphs
universes u v
variable {... |
8b10b9ffc2b85eb4ed8d1fb9f807e147339ef75c | d1a52c3f208fa42c41df8278c3d280f075eb020c | /src/Lean/Elab/Binders.lean | 1c6494f68badd79ba26ca458f531af58dc1f90c4 | [
"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 | 27,751 | 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.Elab.Quotation.Precheck
import Lean.Elab.Term
import Lean.Elab.BindersUtil
import Lean.Parser.Term
namespace Lean.Elab.Term
open Meta
open Lean... |
23c98e0667679e7a25dafeedc0aa6dd48c64f614 | 5584bde9c451ee99730cbf3a8b06e49672e133fe | /src/whatIsALanguage.lean | 7604b9c5ff761bd2250eff8012ce508069408ed5 | [] | no_license | Victor-Pham/complogic-s21 | 400ed583a3644945761bfc16b8cdcbb9bc81c624 | 2de995c20209ad36f25a69b78f1b20394a5473d4 | refs/heads/master | 1,677,319,385,825 | 1,612,464,253,000 | 1,612,464,253,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 1,418 | lean | inductive Syntax : Type
| I
| II
| III
| IV
| V
inductive Semantics : Type
| one
| two
| three
| four
| five
#reduce one -- Defined in Semantics namespace
#reduce Semantics.one -- Access definition in namespace
open Semantics -- Open namespaces
open Syntax
#reduce one -- Now defined in c... |
bcaf040541c64294494aa8bf6f6ff38e18c152da | df561f413cfe0a88b1056655515399c546ff32a5 | /3-function-world/l9.lean | 4ae4402e9eb67a0ae66924b8af6d583d222a2d46 | [] | no_license | nicholaspun/natural-number-game-solutions | 31d5158415c6f582694680044c5c6469032c2a06 | 1e2aed86d2e76a3f4a275c6d99e795ad30cf6df0 | refs/heads/main | 1,675,123,625,012 | 1,607,633,548,000 | 1,607,633,548,000 | 318,933,860 | 3 | 1 | null | null | null | null | UTF-8 | Lean | false | false | 350 | lean | example (A B C D E F G H I J K L : Type)
(f1 : A → B) (f2 : B → E) (f3 : E → D) (f4 : D → A) (f5 : E → F)
(f6 : F → C) (f7 : B → C) (f8 : F → G) (f9 : G → J) (f10 : I → J)
(f11 : J → I) (f12 : I → H) (f13 : E → H) (f14 : H → K) (f15 : I → L)
: A → L :=
begin
intro a,
exact f15 (f11 (f9 (f8 (f5 (f2 (f1 a)))))),
end |
6808bb9f44af8cb12ad2673d5fdf750ea523320d | 957a80ea22c5abb4f4670b250d55534d9db99108 | /tests/lean/run/destruct.lean | 7360c9cadf76db99b924431dde7485fb27cea743 | [
"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 | 946 | lean | universe variables u
inductive Vec (α : Type u) : nat → Type (max 1 u)
| nil : Vec 0
| cons : ∀ {n}, α → Vec n → Vec (nat.succ n)
lemma split {α : Type u} {n : nat} (v : Vec α n) : (v == (Vec.nil α) ∧ n = 0) ∨ ∃ m h (t : Vec α m), v == Vec.cons h t ∧ n = nat.succ m :=
Vec.cases_on v
(or.inl ⟨heq.refl _, rfl⟩)
... |
2b732ca10281581e0a38bb3144d2a6daac66daa4 | 55c7fc2bf55d496ace18cd6f3376e12bb14c8cc5 | /src/number_theory/quadratic_reciprocity.lean | 840064de3ad8db77d99c438c9b96b94231796436 | [
"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 | 25,770 | 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 field_theory.finite
import data.zmod.basic
import data.nat.parity
/-!
# Quadratic reciprocity.
This file contains results about quadratic residues modulo a prim... |
7deb3e6db12a84885be39b10b4b79f7b14c1f31c | 63abd62053d479eae5abf4951554e1064a4c45b4 | /src/category_theory/functorial.lean | 8d1c1b625c0573daad8b0085022cb4a4eb6fa220 | [
"Apache-2.0"
] | permissive | Lix0120/mathlib | 0020745240315ed0e517cbf32e738d8f9811dd80 | e14c37827456fc6707f31b4d1d16f1f3a3205e91 | refs/heads/master | 1,673,102,855,024 | 1,604,151,044,000 | 1,604,151,044,000 | 308,930,245 | 0 | 0 | Apache-2.0 | 1,604,164,710,000 | 1,604,163,547,000 | null | UTF-8 | Lean | false | false | 2,544 | 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.functor
/-!
# Unbundled functors, as a typeclass decorating the object-level function.
-/
namespace category_theory
universes v v₁ v₂ v₃ u u... |
52196610b62a785a7024e3c05bcb260fa06ba490 | 6432ea7a083ff6ba21ea17af9ee47b9c371760f7 | /tests/lean/run/strLitProj.lean | 5c9bcf0125a64723cf1fc397fb631d253c5cc4a1 | [
"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 | 81 | lean | #reduce "".data
example : "".data = [] := rfl
theorem ex : "".data = [] := rfl
|
07e66872c3f6cf0dc4cd6e5db2cc7b3fe34a98b9 | 4d2583807a5ac6caaffd3d7a5f646d61ca85d532 | /archive/imo/imo1972_b2.lean | 81d6444723f3f3d9f7095da2e6ae2a78f3e05f73 | [
"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,335 | lean | /-
Copyright (c) 2020 Ruben Van de Velde, Stanislas Polu. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Ruben Van de Velde, Stanislas Polu
-/
import data.real.basic
import data.set.basic
import analysis.normed_space.basic
/-!
# IMO 1972 B2
Problem: `f` and `g` are ... |
b4a6649fc3259adf53ed499a6b5769e967d5ad11 | 55c7fc2bf55d496ace18cd6f3376e12bb14c8cc5 | /src/topology/uniform_space/complete_separated.lean | 13a3844519483403036658937250d46ec093c60c | [
"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 | 1,353 | 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.uniform_space.cauchy
import topology.uniform_space.separation
import topology.dense_embedding
/-!
# Theory of complete separated uniform spaces... |
aa561bfc70721f10c8681fd0056a93c857ae746a | 80cc5bf14c8ea85ff340d1d747a127dcadeb966f | /src/topology/bounded_continuous_function.lean | a7ff4db404afd01e61704687cb88eb148c175069 | [
"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 | 28,972 | 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.basic
/-!
# Bounded continuous functions
The type of bounded continuous functio... |
f6765e068fc25eef1065b7dde91564a87fb87a67 | 37683ecbb27d7c2037bfd9ad7e06d662f460a005 | /homotopy/pushout.hlean | 844b4e93bdd54cc9389339ce68ed69cf702bc71a | [
"Apache-2.0"
] | permissive | GRSEB9S/Spectral-1 | b2443b09cae7aac1247b1f88c846c532ac802b8e | dd14277e0bfc6270a488eb3b9ec231484065b9d8 | refs/heads/master | 1,631,315,269,407 | 1,522,048,315,000 | 1,522,799,803,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 40,873 | hlean |
import ..algebra.exactness homotopy.cofiber homotopy.wedge homotopy.smash
open eq function is_trunc sigma prod lift is_equiv equiv pointed sum unit bool cofiber
namespace pushout
section
variables {TL BL TR : Type*} {f : TL →* BL} {g : TL →* TR}
{TL' BL' TR' : Type*} {f' : TL' →* BL'} {g' : TL' ... |
55a586fbfb1ee2f76298012ed50666cc2dfed811 | 36c7a18fd72e5b57229bd8ba36493daf536a19ce | /library/theories/analysis/metric_space.lean | e4568b1e916a722337f70fdbd1c46420def9fd28 | [
"Apache-2.0"
] | permissive | YHVHvx/lean | 732bf0fb7a298cd7fe0f15d82f8e248c11db49e9 | 038369533e0136dd395dc252084d3c1853accbf2 | refs/heads/master | 1,610,701,080,210 | 1,449,128,595,000 | 1,449,128,595,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 9,599 | lean | /-
Copyright (c) 2015 Jeremy Avigad. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Author: Jeremy Avigad
Metric spaces.
-/
import data.real.division
open real eq.ops classical algebra
structure metric_space [class] (M : Type) : Type :=
(dist : M → M → ℝ)
(dist_self : ∀ x... |
87e60865ca5c4c6aa0a63c5bc1fb69fc47c5cf10 | 35677d2df3f081738fa6b08138e03ee36bc33cad | /src/category_theory/monad/algebra.lean | 96ab248a5f6895d7329aaa4558a127e85a8ea4bf | [
"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 | 6,371 | lean | /-
Copyright (c) 2019 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.monad.basic
import category_theory.adjunction.basic
/-!
# Eilenberg-Moore (co)algebras for a (co)monad
This file defines Eilenb... |
c55e5dc37e7233129706742ab781d8895716ab18 | 55c7fc2bf55d496ace18cd6f3376e12bb14c8cc5 | /src/topology/order.lean | c62bca08d5e811e17528e1f0d15ec61dc234a0e3 | [
"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 | 27,862 | 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.tactic
/-!
# Ordering on topologies and (co)induced topologies
Topologies on a fixed type `α` are ordered, by reverse inclusion.
Tha... |
053e8873e01b0e8e578675a9bbaee120580caac3 | aa2345b30d710f7e75f13157a35845ee6d48c017 | /category_theory/opposites.lean | 1d12fe24f895286567c7163048d3d690ea0f6887 | [
"Apache-2.0"
] | permissive | CohenCyril/mathlib | 5241b20a3fd0ac0133e48e618a5fb7761ca7dcbe | a12d5a192f5923016752f638d19fc1a51610f163 | refs/heads/master | 1,586,031,957,957 | 1,541,432,824,000 | 1,541,432,824,000 | 156,246,337 | 0 | 0 | Apache-2.0 | 1,541,434,514,000 | 1,541,434,513,000 | null | UTF-8 | Lean | false | false | 1,954 | 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 category_theory.products
import category_theory.types
namespace category_theory
universes u₁ v₁ u₂ v₂
def op (C : Type u₁) : Type u₁ := ... |
48188b70f4976b0ec840b20fd81619801c308309 | a45212b1526d532e6e83c44ddca6a05795113ddc | /src/set_theory/cardinal.lean | 3d0f87550d14eb5672762cef3dd8c689f8eb8780 | [
"Apache-2.0"
] | permissive | fpvandoorn/mathlib | b21ab4068db079cbb8590b58fda9cc4bc1f35df4 | b3433a51ea8bc07c4159c1073838fc0ee9b8f227 | refs/heads/master | 1,624,791,089,608 | 1,556,715,231,000 | 1,556,715,231,000 | 165,722,980 | 5 | 0 | Apache-2.0 | 1,552,657,455,000 | 1,547,494,646,000 | Lean | UTF-8 | Lean | false | false | 30,801 | 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, Mario Carneiro
Cardinal arithmetic.
Cardinals are represented as quotient over equinumerous types.
-/
import data.set.finite data.quot logic.function set_theory.schro... |
0fb3daf1ba1d257c880c806648272d9e8a70035e | 8cae430f0a71442d02dbb1cbb14073b31048e4b0 | /src/category_theory/natural_isomorphism.lean | 7b44dc68f968b20087dde82eef60ba8f47745d79 | [
"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,240 | lean | /-
Copyright (c) 2017 Scott Morrison. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Tim Baumann, Stephen Morgan, Scott Morrison, Floris van Doorn
-/
import category_theory.functor.category
import category_theory.isomorphism
/-!
# Natural isomorphisms
> THIS FILE IS ... |
a77af58044a0f3b85a1b021bf44ea5a4ad73e7ef | b392eb79fb36952401156496daa60628ccb07438 | /MathPort/Rules.lean | bcb07128b2ac09e193f2d1fbad96698da53bbd7f | [
"Apache-2.0"
] | permissive | AurelienSaue/mathportsource | d9eabe74e3ab7774baa6a10a6dc8d4855ff92266 | 1a164e4fff7204c522c1f4ecc5024fd909be3b0b | refs/heads/master | 1,685,214,377,305 | 1,623,621,223,000 | 1,623,621,223,000 | 364,191,042 | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 1,677 | lean | /-
Copyright (c) 2020 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Daniel Selsam, Gabriel Ebner
-/
import MathPort.Util
import MathPort.Basic
import Lean
import Std.Data.HashSet
import Std.Data.HashMap
namespace MathPort
open Lean
open Std (H... |
40a592f331fc1050e9f4115435390238258f7ff3 | 5ae26df177f810c5006841e9c73dc56e01b978d7 | /src/linear_algebra/basis.lean | 4cc8786f0e74e364a1a14d330869886d4acc5c7b | [
"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 | 46,744 | 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, Alexander Bentkamp
Linear independence and basis sets in a module or vector space.
This file is inspired by Isabelle/HOL's linear algebra, and hence i... |
fcdc932f38390ed016b99fe1df4e04765ff40ae7 | fa02ed5a3c9c0adee3c26887a16855e7841c668b | /src/data/fintype/small.lean | 3c08b81c13615e395f54f0ef48e7c2f121c7c583 | [
"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 | 490 | lean | /-
Copyright (c) 2021 Scott Morrison. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Scott Morrison
-/
import data.fintype.basic
import logic.small
/-!
# All finite types are small.
That is, any `α` with `[fintype α]` is equivalent to a type in any universe.
-/
uni... |
eba7336f2e99157db2561676f66fb5bd721a67c5 | 88fb7558b0636ec6b181f2a548ac11ad3919f8a5 | /tests/lean/expr_quote.lean | 0fb1ec9b0c09ebfe1a913deec7bb00d2a7138bbb | [
"Apache-2.0"
] | permissive | moritayasuaki/lean | 9f666c323cb6fa1f31ac597d777914aed41e3b7a | ae96ebf6ee953088c235ff7ae0e8c95066ba8001 | refs/heads/master | 1,611,135,440,814 | 1,493,852,869,000 | 1,493,852,869,000 | 90,269,903 | 0 | 0 | null | 1,493,906,291,000 | 1,493,906,291,000 | null | UTF-8 | Lean | false | false | 143 | lean | meta def f (α a : expr) := ```(@id %%α %%a)
meta def f (α a : expr) := ```(@id (%%α : Type 2) %%a)
set_option pp.universes true
#print f
|
e2ee3d0cb4270fe4b1fbc64823906675d6b23b22 | 969dbdfed67fda40a6f5a2b4f8c4a3c7dc01e0fb | /src/analysis/calculus/tangent_cone.lean | 538f9027d13cf7810781f56525cf0b07ad54cf09 | [
"Apache-2.0"
] | permissive | SAAluthwela/mathlib | 62044349d72dd63983a8500214736aa7779634d3 | 83a4b8b990907291421de54a78988c024dc8a552 | refs/heads/master | 1,679,433,873,417 | 1,615,998,031,000 | 1,615,998,031,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 18,606 | 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 analysis.convex.basic
import analysis.normed_space.bounded_linear_maps
import analysis.specific_limits
/-!
# Tangent cone
In this file, we define two p... |
ef5f5a3828dfc1b44d0ad5183a56139e032a7a7b | 8e31b9e0d8cec76b5aa1e60a240bbd557d01047c | /scratch/fmatrix.lean | 0878ae72ac0de0a0bc158cde461b3cb3eec1bcf0 | [] | no_license | ChrisHughes24/LP | 7bdd62cb648461c67246457f3ddcb9518226dd49 | e3ed64c2d1f642696104584e74ae7226d8e916de | refs/heads/master | 1,685,642,642,858 | 1,578,070,602,000 | 1,578,070,602,000 | 195,268,102 | 4 | 3 | null | 1,569,229,518,000 | 1,562,255,287,000 | Lean | UTF-8 | Lean | false | false | 7,105 | lean | import data.matrix.basic data.array.lemmas data.rat.basic
def fmatrix (m : ℕ) (n : ℕ) := array (m * n) ℚ
namespace fmatrix
variables {l m n : ℕ}
instance : has_add (fmatrix m n) := ⟨array.map₂ (+)⟩
instance : has_zero (fmatrix m n) := ⟨mk_array _ 0⟩
instance : has_neg (fmatrix m n) := ⟨array.map has_neg.neg⟩
lemma... |
47634fe57b8b2cadbed0b939f352fc3992824128 | 46125763b4dbf50619e8846a1371029346f4c3db | /src/order/filter/lift.lean | b502ffb4db2584c6473f0540674e7f2fa441ab29 | [
"Apache-2.0"
] | permissive | thjread/mathlib | a9d97612cedc2c3101060737233df15abcdb9eb1 | 7cffe2520a5518bba19227a107078d83fa725ddc | refs/heads/master | 1,615,637,696,376 | 1,583,953,063,000 | 1,583,953,063,000 | 246,680,271 | 0 | 0 | Apache-2.0 | 1,583,960,875,000 | 1,583,960,875,000 | null | UTF-8 | Lean | false | false | 16,566 | 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
Lift filters along filter and set functions.
-/
import order.filter.basic
open lattice set
open_locale classical
namespace filter
variables {α : Type*} {β : Type*} {... |
68060cd8ad0b11aff5e350ff697d9858c98ba9ef | d1a52c3f208fa42c41df8278c3d280f075eb020c | /stage0/src/Lean/Parser/Term.lean | c4c47dfe6ac08c80e2e3a8dd52e869058c6924e8 | [
"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 | 20,528 | 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.Attr
import Lean.Parser.Level
namespace Lean
namespace Parser
namespace Command
def commentBody : Parser :=
{ fn := ... |
dc4d2e6b67588c8f24c098cfc77e794e04f3c71a | b70031c8e2c5337b91d7e70f1e0c5f528f7b0e77 | /src/algebra/lie/classical.lean | 44d52e5bc4a2111caf462deebb37e4fe66f08f50 | [
"Apache-2.0"
] | permissive | molodiuc/mathlib | cae2ba3ef1601c1f42ca0b625c79b061b63fef5b | 98ebe5a6739fbe254f9ee9d401882d4388f91035 | refs/heads/master | 1,674,237,127,059 | 1,606,353,533,000 | 1,606,353,533,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 13,506 | lean | /-
Copyright (c) 2020 Oliver Nash. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Oliver Nash
-/
import algebra.invertible
import algebra.lie.skew_adjoint
import linear_algebra.matrix
/-!
# Classical Lie algebras
This file is the place to find definitions and basic p... |
4bac7f4bab7459751190ad90c9ad2d5c121e7c7c | 05f637fa14ac28031cb1ea92086a0f4eb23ff2b1 | /tests/lean/unicode.lean | 1c7b9b9b5015ca4b177d7decf26cf181d3175e4b | [
"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 | 202 | lean | print true /\ false
set_option pp::unicode false
print true /\ false
set_option pp::unicode true
set_option lean::pp::notation false
print true /\ false
set_option pp::unicode false
print true /\ false
|
5da40df3b61951702fc0bff437aa26fe5108a6dc | e0f9ba56b7fedc16ef8697f6caeef5898b435143 | /src/topology/metric_space/isometry.lean | 26392d51f8620591e9d23473fd0aa9e032c6a442 | [
"Apache-2.0"
] | permissive | anrddh/mathlib | 6a374da53c7e3a35cb0298b0cd67824efef362b4 | a4266a01d2dcb10de19369307c986d038c7bb6a6 | refs/heads/master | 1,656,710,827,909 | 1,589,560,456,000 | 1,589,560,456,000 | 264,271,800 | 0 | 0 | Apache-2.0 | 1,589,568,062,000 | 1,589,568,061,000 | null | UTF-8 | Lean | false | false | 16,020 | lean | /-
Copyright (c) 2018 Sébastien Gouëzel. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Isometries of emetric and metric spaces
Authors: Sébastien Gouëzel
-/
import topology.bounded_continuous_function
import topology.opens
/-!
# Isometries
We define isometries, i.e., maps be... |
4ad50b736fcc3fc175a48db4551fb204941a2e1c | 74addaa0e41490cbaf2abd313a764c96df57b05d | /Mathlib/category_theory/abelian/non_preadditive.lean | 81a03ceb50a578ac4e736c8bb59ef4d7f9b685ff | [] | 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 | 21,352 | lean | /-
Copyright (c) 2020 Markus Himmel. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Markus Himmel
-/
import Mathlib.PrePort
import Mathlib.Lean3Lib.init.default
import Mathlib.category_theory.limits.shapes.finite_products
import Mathlib.category_theory.limits.shapes.ke... |
adf57352a0b468f809001345761dcd3cf5770da5 | bbecf0f1968d1fba4124103e4f6b55251d08e9c4 | /src/field_theory/splitting_field.lean | 5f12b97c63d6d5e25079b1c5e0b97b17b963ec5b | [
"Apache-2.0"
] | permissive | waynemunro/mathlib | e3fd4ff49f4cb43d4a8ded59d17be407bc5ee552 | 065a70810b5480d584033f7bbf8e0409480c2118 | refs/heads/master | 1,693,417,182,397 | 1,634,644,781,000 | 1,634,644,781,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 37,526 | 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 ring_theory.adjoin_root
import ring_theory.algebra_tower
import ring_theory.algebraic
import ring_theory.polynomial
import field_theory.minpoly
import linear_algeb... |
038a9f02e6962775b3b72758763f5f6a03994f74 | 8cae430f0a71442d02dbb1cbb14073b31048e4b0 | /src/analysis/complex/upper_half_plane/functions_bounded_at_infty.lean | 26d6235065751024b5223a25db33dc7e082df23f | [
"Apache-2.0"
] | permissive | leanprover-community/mathlib | 56a2cadd17ac88caf4ece0a775932fa26327ba0e | 442a83d738cb208d3600056c489be16900ba701d | refs/heads/master | 1,693,584,102,358 | 1,693,471,902,000 | 1,693,471,902,000 | 97,922,418 | 1,595 | 352 | Apache-2.0 | 1,694,693,445,000 | 1,500,624,130,000 | Lean | UTF-8 | Lean | false | false | 3,757 | lean | /-
Copyright (c) 2022 Chris Birkbeck. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Chris Birkbeck, David Loeffler
-/
import algebra.module.submodule.basic
import analysis.complex.upper_half_plane.basic
import order.filter.zero_and_bounded_at_filter
/-!
# Bounded at... |
f85a1b0820a10e1a8b71e659a3bd35abdd7e8c74 | df561f413cfe0a88b1056655515399c546ff32a5 | /1-tutorial-world/l4.lean | a185427021267b6fdbbdb2cfaf8045b3519c8d0e | [] | no_license | nicholaspun/natural-number-game-solutions | 31d5158415c6f582694680044c5c6469032c2a06 | 1e2aed86d2e76a3f4a275c6d99e795ad30cf6df0 | refs/heads/main | 1,675,123,625,012 | 1,607,633,548,000 | 1,607,633,548,000 | 318,933,860 | 3 | 1 | null | null | null | null | UTF-8 | Lean | false | false | 100 | lean | lemma add_succ_zero (a : mynat) : a + succ(0) = succ(a) :=
begin
rw add_succ, rw add_zero, refl,
end |
21ca9432c5578baed5ff93cca70c2eaa5314d9cf | 74addaa0e41490cbaf2abd313a764c96df57b05d | /Mathlib/analysis/normed_space/enorm_auto.lean | 67ec7520af89d57cafd83d437b932e104febe6d6 | [] | 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,145 | lean | /-
Copyright (c) 2020 Yury G. Kudryashov. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Author: Yury G. Kudryashov
-/
import Mathlib.PrePort
import Mathlib.Lean3Lib.init.default
import Mathlib.analysis.normed_space.basic
import Mathlib.PostPort
universes u_1 u_2 l
namespace... |
eac4f6ecd0d25d1c46ab3559f2708d952d7b5874 | 80cc5bf14c8ea85ff340d1d747a127dcadeb966f | /src/topology/uniform_space/separation.lean | 65e3dc30ccc383d6b51708f28353afaefa177914 | [
"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 | 21,541 | 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, Patrick Massot
-/
import topology.uniform_space.basic
import tactic.apply_fun
/-!
# Hausdorff properties of uniform spaces. Separation quotient.
This file studies un... |
60edb8eea1eb593f459cf3ccd1cd1ec1594701e9 | 7c2dd01406c42053207061adb11703dc7ce0b5e5 | /src/solutions/05_sequence_limits.lean | cd797da03ba6e4859c77aa07137f41c8d5629ed5 | [
"Apache-2.0"
] | permissive | leanprover-community/tutorials | 50ec79564cbf2ad1afd1ac43d8ee3c592c2883a8 | 79a6872a755c4ae0c2aca57e1adfdac38b1d8bb1 | refs/heads/master | 1,687,466,144,386 | 1,672,061,276,000 | 1,672,061,276,000 | 189,169,918 | 186 | 81 | Apache-2.0 | 1,686,350,300,000 | 1,559,113,678,000 | Lean | UTF-8 | Lean | false | false | 7,635 | lean | import data.real.basic
import algebra.group.pi
import tuto_lib
notation `|`x`|` := abs x
/-
In this file we manipulate the elementary definition of limits of
sequences of real numbers.
mathlib has a much more general definition of limits, but here
we want to practice using the logical operators and relations
covered... |
fd7ed48bd575178a8ae87e34ec33549db5e2812f | bbecf0f1968d1fba4124103e4f6b55251d08e9c4 | /src/category_theory/sites/sheaf_of_types.lean | 1bba60b570042a634886adcb6de7b343a029e842 | [
"Apache-2.0"
] | permissive | waynemunro/mathlib | e3fd4ff49f4cb43d4a8ded59d17be407bc5ee552 | 065a70810b5480d584033f7bbf8e0409480c2118 | refs/heads/master | 1,693,417,182,397 | 1,634,644,781,000 | 1,634,644,781,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 38,946 | lean | /-
Copyright (c) 2020 Bhavik Mehta. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Bhavik Mehta
-/
import category_theory.sites.pretopology
import category_theory.limits.shapes.types
import category_theory.full_subcategory
/-!
# Sheaves of types on a Grothendieck top... |
4fac48c151d6a35a43891ea9ca95a2c587963e18 | ce6917c5bacabee346655160b74a307b4a5ab620 | /src/ch4/ex0105.lean | 9c207979e96048d1a6f96bb822c2850b29e7857b | [] | no_license | Ailrun/Theorem_Proving_in_Lean | ae6a23f3c54d62d401314d6a771e8ff8b4132db2 | 2eb1b5caf93c6a5a555c79e9097cf2ba5a66cf68 | refs/heads/master | 1,609,838,270,467 | 1,586,846,743,000 | 1,586,846,743,000 | 240,967,761 | 1 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 300 | lean | variables (α : Type) (r : α → α → Prop)
variable refl_r : ∀ x, r x x
variable symm_r : ∀ {x y}, r x y → r y x
variable trans_r : ∀ {x y z}, r x y → r y z → r x z
example (a b c d : α) (hab : r a b) (hcb : r c b) (hcd : r c d) : r a d :=
trans_r (trans_r hab (symm_r hcb)) hcd
|
e32465b2f2b212848749b5c47a2746cc7355276d | 690889011852559ee5ac4dfea77092de8c832e7e | /src/category_theory/sums/basic.lean | a68d6be7cad816a1a259ec03b3dbb2da1c218cc7 | [
"Apache-2.0"
] | permissive | williamdemeo/mathlib | f6df180148f8acc91de9ba5e558976ab40a872c7 | 1fa03c29f9f273203bbffb79d10d31f696b3d317 | refs/heads/master | 1,584,785,260,929 | 1,572,195,914,000 | 1,572,195,913,000 | 138,435,193 | 0 | 0 | Apache-2.0 | 1,529,789,739,000 | 1,529,789,739,000 | null | UTF-8 | Lean | false | false | 5,448 | 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.equivalence
import category_theory.eq_to_hom
/-#
Disjoint unions of categories, functors, and natural transformations.
-/
namespace category_... |
df3fb072b15ba1370dfc3723a0f5f05e877d0e9b | b147e1312077cdcfea8e6756207b3fa538982e12 | /algebra/ring.lean | 1fd021ecfdc1703c45294373b9d987719e3207b1 | [
"Apache-2.0"
] | permissive | SzJS/mathlib | 07836ee708ca27cd18347e1e11ce7dd5afb3e926 | 23a5591fca0d43ee5d49d89f6f0ee07a24a6ca29 | refs/heads/master | 1,584,980,332,064 | 1,532,063,841,000 | 1,532,063,841,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 6,378 | lean | /-
Copyright (c) 2014 Jeremy Avigad. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Jeremy Avigad, Leonardo de Moura, Floris van Doorn
-/
import algebra.group tactic data.set.basic
universes u v
variable {α : Type u}
section
variable [semiring α]
theorem mul_two... |
b6569e0978cf929e973ad27d4dcf8333e5e63400 | 30b012bb72d640ec30c8fdd4c45fdfa67beb012c | /algebra/ordered_ring.lean | e979bb13104b0efcfac9e091e254619e1cfca125 | [
"Apache-2.0"
] | permissive | kckennylau/mathlib | 21fb810b701b10d6606d9002a4004f7672262e83 | 47b3477e20ffb5a06588dd3abb01fe0fe3205646 | refs/heads/master | 1,634,976,409,281 | 1,542,042,832,000 | 1,542,319,733,000 | 109,560,458 | 0 | 0 | Apache-2.0 | 1,542,369,208,000 | 1,509,867,494,000 | Lean | UTF-8 | Lean | false | false | 17,196 | lean | /-
Copyright (c) 2017 Mario Carneiro. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Mario Carneiro
-/
import order.basic algebra.order algebra.ordered_group algebra.ring data.nat.cast
universe u
variable {α : Type u}
-- TODO: this is necessary additionally to mul_no... |
83067d8ee444599f04af225324a147ce7c2bb560 | b70031c8e2c5337b91d7e70f1e0c5f528f7b0e77 | /src/algebra/module/basic.lean | ba54b716622dd4fe904f58d87e274136d29d4d83 | [
"Apache-2.0"
] | permissive | molodiuc/mathlib | cae2ba3ef1601c1f42ca0b625c79b061b63fef5b | 98ebe5a6739fbe254f9ee9d401882d4388f91035 | refs/heads/master | 1,674,237,127,059 | 1,606,353,533,000 | 1,606,353,533,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 16,275 | lean | /-
Copyright (c) 2015 Nathaniel Thomas. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Nathaniel Thomas, Jeremy Avigad, Johannes Hölzl, Mario Carneiro
-/
import algebra.big_operators.basic
import algebra.group.hom
import algebra.ring.basic
import data.rat.cast
import g... |
3a104fac7807789055c5dbc96de61b88288290e8 | 74addaa0e41490cbaf2abd313a764c96df57b05d | /Mathlib/algebra/group/with_one.lean | e2e0c8b5b9f4db23d7d0424b47fdc5127761333b | [] | 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 | 7,505 | lean | /-
Copyright (c) 2018 Mario Carneiro. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Mario Carneiro, Johan Commelin
-/
import Mathlib.PrePort
import Mathlib.Lean3Lib.init.default
import Mathlib.algebra.ring.basic
import Mathlib.data.equiv.basic
import Mathlib.PostPort
... |
c4a20e17640b005066b97aab61488f0cf371e478 | 4727251e0cd73359b15b664c3170e5d754078599 | /src/category_theory/limits/shapes/concrete_category.lean | 9431a5aa1e86f4bbcf64d10cf60afd92cb9726d4 | [
"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 | 576 | 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.limits.shapes.kernels
import category_theory.concrete_category.basic
import category_theory.concrete_category.elementwise
/-!
# Facts about li... |
e76f841f2e30bec73146bb1ccd00d3abd45bdf54 | 9be442d9ec2fcf442516ed6e9e1660aa9071b7bd | /stage0/src/Lean/PrettyPrinter/Delaborator/TopDownAnalyze.lean | 8f1b41081a18a7c22bc2b30b0190237b4722f298 | [
"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 | 27,771 | lean | /-
Copyright (c) 2021 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Daniel Selsam
-/
import Std.Data.RBMap
import Lean.Meta.SynthInstance
import Lean.Util.FindMVar
import Lean.Util.FindLevelMVar
import Lean.Util.CollectLevelParams
import Lean.Ut... |
59dd434023363057257b24206e4576e2d11d0d14 | a4673261e60b025e2c8c825dfa4ab9108246c32e | /tests/lean/run/parseCore.lean | 80334957f82196242f124b6646c90a842dc63ad0 | [
"Apache-2.0"
] | permissive | jcommelin/lean4 | c02dec0cc32c4bccab009285475f265f17d73228 | 2909313475588cc20ac0436e55548a4502050d0a | refs/heads/master | 1,674,129,550,893 | 1,606,415,348,000 | 1,606,415,348,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 338 | lean | #lang lean4
import Lean.Parser
def test : IO Unit :=
if System.Platform.isWindows then
pure () -- TODO investigate why the following doesn't work on Windows
else do
let env ← Lean.mkEmptyEnvironment;
Lean.Parser.parseFile env (System.mkFilePath ["..", "..", "..", "src", "Init", "Prelude.lean"]);
IO.println "do... |
99cde86f4c0eb35910341aa319c9e08906b7589b | 4727251e0cd73359b15b664c3170e5d754078599 | /src/algebra/ring/prod.lean | e3b5c9b826518757e76226457a3b9f018d572b86 | [
"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 | 7,396 | lean | /-
Copyright (c) 2020 Yury Kudryashov. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Johannes Hölzl, Chris Hughes, Mario Carneiro, Yury Kudryashov
-/
import algebra.group.prod
import algebra.ring.basic
import algebra.ring.equiv
/-!
# Semiring, ring etc structures on ... |
b2e256ccf3d024c723ce5349615dedd4a61c08dc | 6065973b1fa7bbacba932011c9e2f32bf7bdd6c1 | /src/order/rel_iso.lean | 6c6ffc8938bbb759e3f087833697fcda7f9894bf | [
"Apache-2.0"
] | permissive | khmacdonald/mathlib | 90a0fa2222369fa69ed2fbfb841b74d2bdfd66cb | 3669cb35c578441812ad30fd967d21a94b6f387e | refs/heads/master | 1,675,863,801,090 | 1,609,761,876,000 | 1,609,761,876,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 30,047 | 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 logic.embedding
import order.rel_classes
import data.set.intervals.basic
open function
universes u v w
variables {α : Type*} {β : Type*} {γ : Type*}
{r : α... |
d4e3e2889847865235ea893211bbc8871f15b115 | 4727251e0cd73359b15b664c3170e5d754078599 | /src/data/mv_polynomial/rename.lean | d4239c2e5f58b0e989121f5fb556b72519f04ea6 | [
"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,924 | 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.mv_polynomial.basic
/-!
# Renaming variables of polynomials
This file establishes the `rename` operation on multivariat... |
60c137ebe6165a4bccd475429950dc05c79b3905 | 2c819623a83d8c53b7282622429e344389ce4030 | /proofs/lib.lean | e15a25fe4727e9d241bd7a783463b3b7379b5fe0 | [] | no_license | uw-unsat/jitsynth | 6bc97dd1ede9da42c0b9313a4766095345493adc | 69529e18d4a8d4dace884bfde91aa26b549523fa | refs/heads/master | 1,653,802,737,129 | 1,588,361,732,000 | 1,588,361,732,000 | 260,513,113 | 14 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 7,476 | lean | import tactic
import tactic.find
import tactic.core
-- Includes structural definitions and assumptions
namespace jitsynth
inductive aparam : Type
| reg : aparam
| bv : ℕ → aparam
inductive cparam : Type
| reg : ℕ → cparam
| bv : ℕ → ℕ → cparam
structure ainstr : Type :=
mk :: (op : ℕ) (F : list aparam)
structure c... |
4185cd996b547eab8788687f002ffff7f9af94af | 82e44445c70db0f03e30d7be725775f122d72f3e | /src/algebra/lie/matrix.lean | b7572a379a5fd6856f3668cfbb2ac11e4128e662 | [
"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 | 3,476 | 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 linear_algebra.matrix.reindex
import linear_algebra.matrix.to_linear_equiv
/-!
# Lie algebras of matrices
An important class of L... |
dc0c273ffb488156a64c863bc4644f097a76b686 | 74addaa0e41490cbaf2abd313a764c96df57b05d | /Mathlib/analysis/seminorm_auto.lean | ebe10c4fa94ca2ce47008f5aceee6041af50c479 | [] | 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 | 7,850 | lean | /-
Copyright (c) 2019 Jean Lo. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Jean Lo
-/
import Mathlib.PrePort
import Mathlib.Lean3Lib.init.default
import Mathlib.algebra.pointwise
import Mathlib.analysis.normed_space.basic
import Mathlib.PostPort
universes u_1 u_2 l... |
86992565fa5698a427ea804c65440fdbee455c36 | 8cae430f0a71442d02dbb1cbb14073b31048e4b0 | /src/category_theory/preadditive/yoneda/limits.lean | ebbec2599df58f7a912835f60f3f1011a6458b5f | [
"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,902 | lean | /-
Copyright (c) 2022 Markus Himmel. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Markus Himmel
-/
import category_theory.preadditive.yoneda.basic
import algebra.category.Module.abelian
/-!
# The Yoneda embedding for preadditive categories preserves limits
> THIS F... |
ab6f4573785ed5a7f1e4970fca2c9c41cccbd256 | a6b711a4e8db20755026231f7ed529a9014b2b6d | /03_Conjunction/00_and.lean | 1c9b5faf8ff247f8c519f24192dc74dd8006ff91 | [] | no_license | chaseboettner/cs-dm-1 | b67d4a7e86f56bce59d2af115503769749d423b2 | 80b35f2957ffaa45b8b7a4479a3570a2d6eb4db0 | refs/heads/master | 1,585,367,603,488 | 1,536,235,675,000 | 1,536,235,675,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 18,587 | lean | /-
Intuitively, if a proposition P is true and a
second proposition Q is true, then the more
complex proposition, "P and Q" is also true.
This proposition is written symbolically as
P ∧ Q. In mathematical logic, we say that
the proposition, P ∧ Q, is the conjunction
of the individual propositions, P and Q.
There's ... |
682ffb1078e6c2e88861d72aae003f33ed1fb1bb | 74addaa0e41490cbaf2abd313a764c96df57b05d | /Mathlib/control/bitraversable/lemmas_auto.lean | be083b2dc2a6e48fc40123e49d6c8480aad6875d | [] | 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 | 4,298 | lean | /-
Copyright (c) 2019 Simon Hudon. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Author(s): Simon Hudon
-/
import Mathlib.PrePort
import Mathlib.Lean3Lib.init.default
import Mathlib.control.bitraversable.basic
import Mathlib.PostPort
universes u l_1 u_1
namespace Mathlib
/... |
0b89ef98544269317a8b31101de5a3ebbe5f9555 | cf39355caa609c0f33405126beee2739aa3cb77e | /tests/lean/run/1609.lean | c80d9ef656e23adc0b060d83038bccf4e68ce63f | [
"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 | 158 | lean | universe variable u
inductive pred : ∀ (X : Type u), list X → Type (u+1)
| foo X (l1 : list X) (l2 : list (option X)) : pred (option X) l2 → pred X l1
|
4a9983d123b1a56195b6a482e7ab21da847655db | fa02ed5a3c9c0adee3c26887a16855e7841c668b | /src/geometry/manifold/instances/units_of_normed_algebra.lean | 09550e6f0f7bbff3dad8f59d2ec1dc85711217c3 | [
"Apache-2.0"
] | permissive | jjgarzella/mathlib | 96a345378c4e0bf26cf604aed84f90329e4896a2 | 395d8716c3ad03747059d482090e2bb97db612c8 | refs/heads/master | 1,686,480,124,379 | 1,625,163,323,000 | 1,625,163,323,000 | 281,190,421 | 2 | 0 | Apache-2.0 | 1,595,268,170,000 | 1,595,268,169,000 | null | UTF-8 | Lean | false | false | 2,527 | lean | /-
Copyright © 2021 Nicolò Cavalleri. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Nicolò Cavalleri, Heather Macbeth
-/
import geometry.manifold.smooth_manifold_with_corners
import analysis.normed_space.units
/-!
# Units of a normed algebra
This file is a stub, co... |
48ae5c3126acaa0160f6a1ce3f63bcec73686f52 | bbecf0f1968d1fba4124103e4f6b55251d08e9c4 | /src/analysis/analytic/basic.lean | 500fe6492ac0c6b14257a8b02a412a681a5e70b5 | [
"Apache-2.0"
] | permissive | waynemunro/mathlib | e3fd4ff49f4cb43d4a8ded59d17be407bc5ee552 | 065a70810b5480d584033f7bbf8e0409480c2118 | refs/heads/master | 1,693,417,182,397 | 1,634,644,781,000 | 1,634,644,781,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 50,599 | lean | /-
Copyright (c) 2020 Sébastien Gouëzel. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Sébastien Gouëzel, Yury Kudryashov
-/
import analysis.calculus.formal_multilinear_series
import data.equiv.fin
/-!
# Analytic functions
A function is analytic in one dimension aro... |
a6753a0fa1e25c0e659f80bbf6f5959c482f784d | 69d4931b605e11ca61881fc4f66db50a0a875e39 | /src/analysis/normed_space/basic.lean | b51783cc84e8207f5cf1e6c9d215d1e86fb80425 | [
"Apache-2.0"
] | permissive | abentkamp/mathlib | d9a75d291ec09f4637b0f30cc3880ffb07549ee5 | 5360e476391508e092b5a1e5210bd0ed22dc0755 | refs/heads/master | 1,682,382,954,948 | 1,622,106,077,000 | 1,622,106,077,000 | 149,285,665 | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 73,758 | 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
-/
import algebra.punit_instances
import topology.instances.nnreal
import topology.algebra.module
import topology.algebra.algebra
import topology.metric_... |
784de03687229b34f58ab6efea9e11ff83be71f6 | b7f22e51856f4989b970961f794f1c435f9b8f78 | /tests/lean/run/nat_bug2.lean | 2edc8f77b20ed0ea93442e252fb3aabd2d750b55 | [
"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 | 716 | lean | import logic
open eq.ops
namespace experiment
inductive nat : Type :=
| zero : nat
| succ : nat → nat
namespace nat
definition plus (x y : nat) : nat
:= nat.rec x (λn r, succ r) y
definition to_nat [coercion] (n : num) : nat
:= num.rec zero (λn, pos_num.rec (succ zero) (λn r, plus r (plus r (succ zero))) (λn r, plus r... |
c8b7276116dbe28f7c8526076bb56231c06eed38 | b7b549d2cf38ac9d4e49372b7ad4d37f70449409 | /src/LeanLLVM/alias_map.lean | d6b8651106be32adca77df89de73c8581f0553b7 | [
"Apache-2.0"
] | permissive | GaloisInc/lean-llvm | 7cc196172fe02ff3554edba6cc82f333c30fdc2b | 36e2ec604ae22d8ec1b1b66eca0f8887880db6c6 | refs/heads/master | 1,637,359,020,356 | 1,629,332,114,000 | 1,629,402,464,000 | 146,700,234 | 29 | 1 | Apache-2.0 | 1,631,225,695,000 | 1,535,607,191,000 | Lean | UTF-8 | Lean | false | false | 8,087 | lean | import data.list
import data.rbmap
import tactic.linarith
import .ast
import .sized
lemma rbmap_insert_lookup_eq {α:Type} {β:Type} {lt:α → α → Prop} [Hdec:decidable_rel lt]
(m:rbmap α β lt)
(k:α) (x:β)
: forall a, cmp_using lt a k = ordering.eq → rbmap.find (rbmap.insert m k x) a = some x
:= sorry
lemma rb... |
5f37dc695df2ebd50b7dc6205c592a59d4cd3f22 | 4727251e0cd73359b15b664c3170e5d754078599 | /src/tactic/omega/int/preterm.lean | 1f86ddf74e3f81ed375a589c8d3f86964b18f34c | [
"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 | 2,799 | lean | /-
Copyright (c) 2019 Seul Baek. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Seul Baek
-/
/-
Linear integer arithmetic terms in pre-normalized form.
-/
import tactic.omega.term
namespace omega
namespace int
/-- The shadow syntax for arithmetic terms. All constan... |
1d2f15f26e8dbc08e0fdfa98a0410ad49d823641 | 750acab0c635b67751bcfec43c5411aa3941c441 | /em.lean | c8b6082c51f9c79fb4e6996318da4c17539d7c04 | [] | no_license | nthomas103/lean_work | 912f8e662cdd73ba97f5d3655ddb8a5d2cd204c9 | 7e9785cae2b60a77b41922fd5d5b159a1fae415c | refs/heads/master | 1,586,739,169,355 | 1,455,759,226,000 | 1,455,759,226,000 | 50,978,095 | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 5,501 | lean | import standard data.matrix theories.group_theory.perm
import theories.group_theory.hom algebra.module
open nat fin real matrix matrix.ops list group_theory finset int
open algebra
section fn_module
variables {R S : Type}
variable [field R]
definition fn_add (f g : S → R) (x : S) := f x + g x
definition ... |
1b9530d7e6b16954b03f5cd07526409fb21110cb | 57aec6ee746bc7e3a3dd5e767e53bd95beb82f6d | /src/Lean/Data/Json/FromToJson.lean | 2461a3852672b395229ba660ec36bf121d29ea10 | [
"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 | 2,058 | lean | /-
Copyright (c) 2019 Gabriel Ebner. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Gabriel Ebner, Marc Huisinga
-/
import Lean.Data.Json.Basic
namespace Lean
universes u
class FromJson (α : Type u) where
fromJson? : Json → Option α
export FromJson (fromJson?)
... |
224272ef8ab6b3d0e909f2c084d142b2bcd2b51e | d9d511f37a523cd7659d6f573f990e2a0af93c6f | /src/analysis/special_functions/integrals.lean | 1da7cd5e134e04fd20bb1561f685504f10e2ea2e | [
"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 | 19,053 | lean | /-
Copyright (c) 2021 Benjamin Davidson. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Benjamin Davidson
-/
import measure_theory.integral.interval_integral
/-!
# Integration of specific interval integrals
This file contains proofs of the integrals of various specif... |
a223d53deb65f19d4c522a4d29ac7db7038f0c6f | 9dc8cecdf3c4634764a18254e94d43da07142918 | /src/data/list/lex.lean | 6b8d9eb1439d75d151555f6f2cf6eedf9a4a8305 | [
"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 | 5,807 | lean | /-
Copyright (c) 2018 Mario Carneiro. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Mario Carneiro
-/
import order.rel_classes
/-!
# Lexicographic ordering of lists.
The lexicographic order on `list α` is defined by `L < M` iff
* `[] < (a :: L)` for any `a` and `L`,... |
143de0d40de13a63898b2c7a8d18ae132bcc75cf | 26bff4ed296b8373c92b6b025f5d60cdf02104b9 | /tests/lean/run/rewrite12.lean | 043bf30d450d8a5eedc306aefc22ad233e65a6ad | [
"Apache-2.0"
] | permissive | guiquanz/lean | b8a878ea24f237b84b0e6f6be2f300e8bf028229 | 242f8ba0486860e53e257c443e965a82ee342db3 | refs/heads/master | 1,526,680,092,098 | 1,427,492,833,000 | 1,427,493,281,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 313 | lean | import data.nat
open nat
variables (f : nat → nat → nat → nat) (a b c : nat)
example (H₁ : a = b) (H₂ : f b a b = 0) : f a a a = 0 :=
by rewrite ⟨H₁ at -{2}, H₂⟩
example (H₁ : a = b) (H₂ : f b a b = 0) (H₃ : c = f a a a) : c = 0 :=
by rewrite ⟨H₁ at H₃ -{2}, H₂ at H₃, H₃⟩
|
0bf17ca8788c08a59738cffe3bee346e5f24d3c8 | a8c03ed21a1bd6fc45901943b79dd6574ea3f0c2 | /inhabited.lean | 11a01929c7525546bbd3ef43f33fdedd998eeb6b | [] | no_license | gebner/resolution.lean | 716c355fbb5204e5c4d0c5a7f3f3cc825892a2bf | c6fafe06fba1cfad73db68f2aa474b29fe892a2b | refs/heads/master | 1,601,111,444,528 | 1,475,256,701,000 | 1,475,256,701,000 | 67,711,151 | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 2,075 | lean | import clause_ops prover_state
open expr tactic monad
meta def nonempty_lookup_left (c : clause) : tactic (list clause) :=
collect_successes $ do l ← c↣get_lits, guard l↣is_neg, return $ do
type ← return l↣formula,
guard ¬type↣has_var,
univ ← infer_univ type,
inst ← mk_instance (app (const ``nonempty [univ]) t... |
18b51d446a02090b4c6bab9b2045fe3e0c84b228 | cf39355caa609c0f33405126beee2739aa3cb77e | /tests/lean/run/using_smt1.lean | d66cfce35b10ae9712af2f026eedc5259f8041cf | [
"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 | 1,285 | lean | open smt_tactic tactic
lemma ex1 (a b c : nat) : a = c → a = b → b = c :=
by using_smt intros
set_option pp.all true
lemma ex2 (a b c : nat) : a > nat.zero → a = c → a = b → b = c :=
by using_smt intros
lemma ex3 (p q r : Prop) : p → q → ¬p → r :=
by using_smt intros
lemma ex4 (a b c : nat) : a > nat.zero → 0 < a ... |
74aea4f8ac83929bc188658c847faa399989efd7 | 592ee40978ac7604005a4e0d35bbc4b467389241 | /Library/generated/mathscheme-lean/InverseSig.lean | 210ed63c81604f9bf0ed92b4834bdc4e4daf6bb9 | [] | no_license | ysharoda/Deriving-Definitions | 3e149e6641fae440badd35ac110a0bd705a49ad2 | dfecb27572022de3d4aa702cae8db19957523a59 | refs/heads/master | 1,679,127,857,700 | 1,615,939,007,000 | 1,615,939,007,000 | 229,785,731 | 4 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 8,373 | lean | import init.data.nat.basic
import init.data.fin.basic
import data.vector
import .Prelude
open Staged
open nat
open fin
open vector
section InverseSig
structure InverseSig (A : Type) : Type :=
(inv : (A → A))
(e : A)
(op : (A → (A → A)))
open InverseSig
structure Sig (AS : Type) : Ty... |
9d040de3b4993e4bc1870df679937e02547bfe7d | 6432ea7a083ff6ba21ea17af9ee47b9c371760f7 | /tests/lean/run/mut_ind_wf.lean | fb01c71a8fa228a49825c9544043baad4d3b3de3 | [
"Apache-2.0",
"LLVM-exception",
"NCSA",
"LGPL-3.0-only",
"LicenseRef-scancode-inner-net-2.0",
"BSD-3-Clause",
"LGPL-2.0-or-later",
"Spencer-94",
"LGPL-2.1-or-later",
"HPND",
"LicenseRef-scancode-pcre",
"ISC",
"LGPL-2.1-only",
"LicenseRef-scancode-other-permissive",
"SunPro",
"CMU-Mach"... | permissive | leanprover/lean4 | 4bdf9790294964627eb9be79f5e8f6157780b4cc | f1f9dc0f2f531af3312398999d8b8303fa5f096b | refs/heads/master | 1,693,360,665,786 | 1,693,350,868,000 | 1,693,350,868,000 | 129,571,436 | 2,827 | 311 | Apache-2.0 | 1,694,716,156,000 | 1,523,760,560,000 | Lean | UTF-8 | Lean | false | false | 1,974 | lean | namespace Mutual
mutual
inductive Tree (α : Type u) where
| node : TreeList α → Tree α
| leaf : α → Tree α
inductive TreeList (α : Type u) where
| nil : TreeList α
| cons : Tree α → TreeList α → TreeList α
end
mutual
def Tree.size : Tree α → Nat
| Tree.node l =>
-- see "TODO: linarith" in Init.WFTactic... |
b120d3215d804e17ec931d5a6ebbebb9a9e96b0f | 1abd1ed12aa68b375cdef28959f39531c6e95b84 | /src/measure_theory/constructions/prod.lean | 18bcd3e810e5a6ca1cc2d7aea0f35c38a701d986 | [
"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 | 48,763 | lean | /-
Copyright (c) 2020 Floris van Doorn. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Floris van Doorn
-/
import measure_theory.measure.giry_monad
import dynamics.ergodic.measure_preserving
import measure_theory.integral.set_integral
/-!
# The product measure
In thi... |
0e1c2857b2babe472c44021f00bdd191e7d7efb7 | 9dc8cecdf3c4634764a18254e94d43da07142918 | /src/analysis/inner_product_space/dual.lean | fbb0a733d61347a98e79520ccdcd7d30ce2e8229 | [
"Apache-2.0"
] | permissive | jcommelin/mathlib | d8456447c36c176e14d96d9e76f39841f69d2d9b | ee8279351a2e434c2852345c51b728d22af5a156 | refs/heads/master | 1,664,782,136,488 | 1,663,638,983,000 | 1,663,638,983,000 | 132,563,656 | 0 | 0 | Apache-2.0 | 1,663,599,929,000 | 1,525,760,539,000 | Lean | UTF-8 | Lean | false | false | 6,585 | 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.inner_product_space.projection
import analysis.normed_space.dual
import analysis.normed_space.star.basic
/-!
# The Fréchet-Riesz representation the... |
2b9d6b4d2edce88a3664fef97fde41b8705c4e3a | 9cb9db9d79fad57d80ca53543dc07efb7c4f3838 | /src/facts/normed_group.lean | 47ecfeb4d4a5858274b84d7b14b3c112a1cab91b | [] | 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 | 198 | lean | import analysis.normed_space.basic
variables {V : Type*} [normed_group V]
-- move this
instance fact_nnnorm_add_le (v w : V) :
fact (nnnorm (v + w) ≤ nnnorm v + nnnorm w) :=
nnnorm_add_le _ _
|
b1afd495cdeec0efa5c159ad3a94b1603aae8093 | a9d0fb7b0e4f802bd3857b803e6c5c23d87fef91 | /hott/algebra/category/iso.hlean | 338a787e7690d997a9598dc5f33c56eb27ef0d72 | [
"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 | 15,735 | 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, Jakob von Raumer
-/
import .precategory types.sigma arity
open eq category prod equiv is_equiv sigma sigma.ops is_trunc
namespace iso
structure split_mono [clas... |
42f18bae44e53cfb5afbf195f1d81e109e574537 | fe25de614feb5587799621c41487aaee0d083b08 | /src/Lean/Elab/Term.lean | a9e952bf66e1da08cc8ef83fc8005396946afeb8 | [
"Apache-2.0"
] | permissive | pollend/lean4 | e8469c2f5fb8779b773618c3267883cf21fb9fac | c913886938c4b3b83238a3f99673c6c5a9cec270 | refs/heads/master | 1,687,973,251,481 | 1,628,039,739,000 | 1,628,039,739,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 64,920 | 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.ResolveName
import Lean.Util.Sorry
import Lean.Util.ReplaceExpr
import Lean.Structure
import Lean.Meta.ExprDefEq
import Lean.... |
64293f88b850a2c7eabf262fb232e02ee34ea1a3 | 4727251e0cd73359b15b664c3170e5d754078599 | /src/data/vector/zip.lean | e47bc9ee582ad8e52263235ea8a178619ccc03e1 | [
"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 | 1,457 | lean | /-
Copyright (c) 2021 Scott Morrison. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Scott Morrison
-/
import data.vector.basic
import data.list.zip
/-!
# The `zip_with` operation on vectors.
-/
namespace vector
section zip_with
variables {α β γ : Type*} {n : ℕ} (f... |
c29eb66693743328859a4a5263e6754b06baa0ff | 77c5b91fae1b966ddd1db969ba37b6f0e4901e88 | /src/order/locally_finite.lean | 2a71fef888958d9665a82909ff3ccd1116148a23 | [
"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 | 18,543 | lean | /-
Copyright (c) 2021 Yaël Dillies. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Yaël Dillies
-/
import data.finset.preimage
/-!
# Locally finite orders
This file defines locally finite orders.
A locally finite order is an order for which all bounded intervals are... |
d3ee94782243be0f302e19198575c5f4663800b5 | 54d7e71c3616d331b2ec3845d31deb08f3ff1dea | /tests/lean/run/decl_olean.lean | b26c2c3b1861e47a9c958b301d402e32aa19cb37 | [
"Apache-2.0"
] | permissive | pachugupta/lean | 6f3305c4292288311cc4ab4550060b17d49ffb1d | 0d02136a09ac4cf27b5c88361750e38e1f485a1a | refs/heads/master | 1,611,110,653,606 | 1,493,130,117,000 | 1,493,167,649,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 524 | lean | open tactic
def g : nat → nat :=
λ n, 0
meta def show_pos (n : name) : command :=
do env ← get_env,
pos ← returnopt (env^.decl_pos n),
olean ← returnopt (env^.decl_olean n) <|> return "current file",
trace $ to_string n ++ " was defined at " ++ olean ++ " : " ++ to_string pos.1 ++ ":" ++ to_string pos.2
... |
6ebf061dfcb9d9d3e4dff99cb28bd24f29ce5191 | d534932ed7c1eba03b537c377a4f8961acd41e99 | /lake/lakefile.lean | 65dab2277e56e0919c4b9a3b108a8a365dde9224 | [
"Apache-2.0"
] | permissive | Adminixtrator/lean4-socket | d7e321d547df6545d0c085d310be8f2c41c44ddb | b313041f2e75f4ad8320ab66d7e2afafd2202318 | refs/heads/main | 1,692,582,696,753 | 1,633,439,398,000 | 1,633,439,523,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 469 | lean | import Lake
open System Lake DSL
def nativeOTarget (pkgDir : FilePath) : FileTarget :=
oFileTarget (pkgDir / "../build/native/native.o") (pkgDir / "../native/native.c" : FilePath) #[] "gcc"
def cLibTarget (pkgDir : FilePath) : FileTarget :=
staticLibTarget (pkgDir / "../build/native/native.a") #[nativeOTarget pkg... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.