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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
196af943446dfc0bec791d8152c0ef072cea958d | 9dc8cecdf3c4634764a18254e94d43da07142918 | /src/algebra/order/sub.lean | bf808bdee5ceaec37c738fdf49dbeae8953824dc | [
"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 | 31,754 | lean | /-
Copyright (c) 2021 Floris van Doorn. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Floris van Doorn
-/
import algebra.order.monoid
/-!
# Ordered Subtraction
This file proves lemmas relating (truncated) subtraction with an order. We provide a class
`has_ordered_sub... |
fe077ae87454f7dc7bd28af7a1c8b403ec3ed5cd | d406927ab5617694ec9ea7001f101b7c9e3d9702 | /src/linear_algebra/matrix/pos_def.lean | aa243db83e8a881d1c841d267a3ffc589bda24bb | [
"Apache-2.0"
] | permissive | alreadydone/mathlib | dc0be621c6c8208c581f5170a8216c5ba6721927 | c982179ec21091d3e102d8a5d9f5fe06c8fafb73 | refs/heads/master | 1,685,523,275,196 | 1,670,184,141,000 | 1,670,184,141,000 | 287,574,545 | 0 | 0 | Apache-2.0 | 1,670,290,714,000 | 1,597,421,623,000 | Lean | UTF-8 | Lean | false | false | 5,852 | lean | /-
Copyright (c) 2022 Alexander Bentkamp. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Alexander Bentkamp
-/
import linear_algebra.matrix.spectrum
import linear_algebra.quadratic_form.basic
/-! # Positive Definite Matrices
This file defines positive (semi)definite m... |
3c060beaa73063b0f1e3476ca5c6c2f482f9f4dc | fa02ed5a3c9c0adee3c26887a16855e7841c668b | /src/data/equiv/functor.lean | a840b8da80b7a8487ae02d1e1b1cdb08f8938331 | [
"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,301 | lean | /-
Copyright (c) 2019 Johan Commelin. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Johan Commelin, Simon Hudon, Scott Morrison
-/
import data.equiv.basic
import control.bifunctor
/-!
# Functor and bifunctors can be applied to `equiv`s.
We define
```lean
def functor... |
86c7d7e9cf6a993d6d2b0945f3a4984f68d737f6 | 947fa6c38e48771ae886239b4edce6db6e18d0fb | /src/order/bounded_order.lean | 92f3ecad3af545f02b9b19456331939e45937bdf | [
"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 | 70,275 | lean | /-
Copyright (c) 2017 Johannes Hölzl. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Johannes Hölzl
-/
import data.option.basic
import logic.nontrivial
import order.lattice
import order.max
import tactic.pi_instances
/-!
# ⊤ and ⊥, bounded lattices and variants
This ... |
e022716aea7633fe0bd022744597215f6d17fd06 | 02fbe05a45fda5abde7583464416db4366eedfbf | /tests/lean/list_local_vars.lean | 3364da072e0a54fb96752ccac144afd997c8cbbb | [
"Apache-2.0"
] | permissive | jasonrute/lean | cc12807e11f9ac6b01b8951a8bfb9c2eb35a0154 | 4be962c167ca442a0ec5e84472d7ff9f5302788f | refs/heads/master | 1,672,036,664,637 | 1,601,642,826,000 | 1,601,642,826,000 | 260,777,966 | 0 | 0 | Apache-2.0 | 1,588,454,819,000 | 1,588,454,818,000 | null | UTF-8 | Lean | false | false | 1,992 | lean | -- #exit
open interactive tactic.interactive
namespace tactic.interactive
open lean.parser
meta def tac (ls : parse lean.parser.list_include_var_names) : tactic unit :=
trace ls
open interactive.types
@[user_command]
meta def tac_cmd (_ : parse $ tk "stuff") : lean.parser unit :=
with_local_scope $
do ls ← lean.pars... |
66576dd1c2b85031af86344c603c5d278b30a355 | 57c233acf9386e610d99ed20ef139c5f97504ba3 | /src/tactic/default.lean | b5754b54ac5a6f97697490974ecc9041a0c4df21 | [
"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 | 1,137 | lean | /-
This file imports many useful tactics ("the kitchen sink").
You can use `import tactic` at the beginning of your file to get everything.
(Although you may want to strip things down when you're polishing.)
Because this file imports some complicated tactics, it has many transitive dependencies
(which of course may n... |
8b39e263c3026ac58ab8ef57ac0615b8f092a49c | 74addaa0e41490cbaf2abd313a764c96df57b05d | /Mathlib/group_theory/order_of_element_auto.lean | e11ec2f74fdd0350db1bdd47804ca28941ed653b | [] | 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 | 10,901 | lean | /-
Copyright (c) 2018 Johannes Hölzl. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Johannes Hölzl
-/
import Mathlib.PrePort
import Mathlib.Lean3Lib.init.default
import Mathlib.algebra.big_operators.order
import Mathlib.group_theory.coset
import Mathlib.data.nat.totie... |
d1d60205de66bc582b0948b704b1e8687ccfba9e | 35677d2df3f081738fa6b08138e03ee36bc33cad | /src/category_theory/monoidal/functorial.lean | ce7ff0860b281fdc24befee092adef3a3e65ce60 | [
"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 | 3,804 | lean | /-
Copyright (c) 2019 Scott Morrison. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Scott Morrison
-/
import category_theory.monoidal.functor
import category_theory.functorial
/-!
# Unbundled lax monoidal functors
## Design considerations
The essential problem I've ... |
0167ff383e001eb6e98eea500383221027ca6a0b | b00eb947a9c4141624aa8919e94ce6dcd249ed70 | /stage0/src/Lean/Server/Utils.lean | 6259c5e4ee7533bd3c8720d3006b43a5bb6c4558 | [
"Apache-2.0"
] | permissive | gebner/lean4-old | a4129a041af2d4d12afb3a8d4deedabde727719b | ee51cdfaf63ee313c914d83264f91f414a0e3b6e | refs/heads/master | 1,683,628,606,745 | 1,622,651,300,000 | 1,622,654,405,000 | 142,608,821 | 1 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 4,870 | lean | /-
Copyright (c) 2020 Wojciech Nawrocki. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Wojciech Nawrocki, Marc Huisinga
-/
import Lean.Data.Position
import Lean.Data.Lsp
import Init.System.FilePath
namespace IO
def throwServerError (err : String) : IO α :=
throw ... |
58e9a271d3f61475d8658c28c7796f27e5b928e3 | cf39355caa609c0f33405126beee2739aa3cb77e | /library/init/meta/feature_search.lean | cddf5600e5990a1b3915c2ff3e8b55920f8b0c81 | [
"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 | 3,776 | lean | /-
Copyright (c) 2019 Gabriel Ebner. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Author: Gabriel Ebner
-/
prelude
import init.meta.tactic init.meta.derive init.meta.mk_dec_eq_instance init.meta.float
namespace feature_search
open tactic native
structure feature_cfg :=
(i... |
70a2f83e4f79181ab83762c0e704cbb689a7e30e | 6432ea7a083ff6ba21ea17af9ee47b9c371760f7 | /src/Lean/PrettyPrinter/Delaborator/Basic.lean | 2e1ebeb6ada3a68f1ff2ca672c0925d0d75dd875 | [
"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 | 13,012 | lean | /-
Copyright (c) 2020 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Sebastian Ullrich
-/
import Lean.Elab.Term
import Lean.PrettyPrinter.Delaborator.Options
import Lean.PrettyPrinter.Delaborator.SubExpr
import Lean.PrettyPrinter.Delaborator.TopD... |
edaf23d3f5f62222e150c49990d307c6263d2f86 | 957a80ea22c5abb4f4670b250d55534d9db99108 | /tests/lean/run/empty_set_inside_quotations.lean | 22c935037ac1aa09b9ddfc24c92e1a9571035114 | [
"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 | 404 | lean | constant union_is_assoc {α} : is_associative (set α) (∪)
attribute [instance] union_is_assoc
#check ({} : set nat)
open tactic expr
meta def is_assoc_bin_app : expr → tactic (expr × expr)
| (app (app op a1) a2) := do h ← to_expr ``(is_associative.assoc %%op), return (op, h)
| _ := failed
run_cmd ... |
bdd91db13901c68a3c8f17ede767ed1715b7e2f9 | 6432ea7a083ff6ba21ea17af9ee47b9c371760f7 | /tests/lean/ppExpr.lean | 6385fb6d658f7e42b2ece1fa7900772a3897ef08 | [
"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 | 638 | lean | import Lean
/-! Pretty printing tests for `Expr`s that cannot be generated by parsing+elaborating. -/
open Lean
def test (e : Expr) : MetaM Unit := do
IO.println (← PrettyPrinter.ppExpr e)
-- loose bound variable
#eval test (mkBVar 0)
-- anonymous binder
#eval test (mkLambda Name.anonymous BinderInfo.default (m... |
de296d2d16777049caf3c17960ee248144bf6d04 | 82b86ba2ae0d5aed0f01f49c46db5afec0eb2bd7 | /stage0/src/Init/Data/UInt.lean | 0cecf19817c51eb94eea30dd1180d14a947c57c4 | [
"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 | 11,952 | lean | /-
Copyright (c) 2018 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Leonardo de Moura
-/
prelude
import Init.Data.Fin.Basic
import Init.System.Platform
open Nat
@[extern "lean_uint8_of_nat"]
def UInt8.ofNat (n : @& Nat) : UInt8 := ⟨Fin.ofNat n... |
a47c0f85757af2ba6130005f6f1c520ec83c097c | 4919181312c130f03eed71db8c80aa1cbd140256 | /src/fol.lean | 54baa53aff09be7a8ffff995e6c4e2ba6bca4e7f | [] | no_license | williamdemeo/flypitch | 62143800b790f0a0ffcd338c82b6bf3cd401552b | f73127c3ad36e6c2f074a26518dc333f07c1ab85 | refs/heads/master | 1,587,042,220,139 | 1,547,238,998,000 | 1,547,238,998,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 121,741 | lean | /- A development of first-order logic in Lean.
* The object theory uses classical logic
* We use de Bruijn variables.
* We use a deep embedding of the logic, i.e. the type of terms and formulas is inductively defined.
* There is no well-formedness predicate; all elements of type "term" are well-formed.
-/
import .to_... |
a9d1e8cdd9be435b42a939b04c610d8117678618 | eeee7bfb5e0033ce2c5099a3cf5c87a3c71b1f62 | /src/valuations.lean | 08fb10b0ba38d400c5d1f1898d4d53484deb0f62 | [
"Apache-2.0"
] | permissive | jesse-michael-han/lean-perfectoid-spaces | f0c652bc1a0de64de90bb8c98f26d9579b226a9c | 45b42a5302dca28910ae9c6e3847c025e5ba4180 | refs/heads/master | 1,584,646,248,214 | 1,528,569,065,000 | 1,528,569,065,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 12,333 | lean | import algebra.group_power
--import Kenny_comm_alg.temp
import set_theory.cardinal
import ring_theory.ideals
import for_mathlib.subrel
import for_mathlib.ideals
class linear_ordered_comm_group (α : Type)
extends comm_group α, linear_order α :=
(mul_le_mul_left : ∀ {a b : α}, a ≤ b → ∀ c : α, c * a ≤ c *... |
f967f59b469d20d0c9b8dce67d650ca5b75b311a | 4bcaca5dc83d49803f72b7b5920b75b6e7d9de2d | /stage0/src/Init/Notation.lean | 0266342b147c8ef0ca8cee9a0086492c8e0356e0 | [
"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 | 20,379 | 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
Notation for operators defined at Prelude.lean
-/
prelude
import Init.Prelude
-- DSL for specifying parser precedences and priorities
namespace Lean.Parser.... |
f49c4adee50e5e26d17f52739f06bb403a4ec344 | 9dc8cecdf3c4634764a18254e94d43da07142918 | /src/algebra/module/localized_module.lean | 9a728c1798fc855811ee8ee6526d128c79e217a3 | [
"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 | 15,101 | lean | /-
Copyright (c) 2022 Jujian Zhang. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Andrew Yang, Jujian Zhang
-/
import group_theory.monoid_localization
import ring_theory.localization.basic
/-!
# Localized Module
Given a commutative ring `R`, a multiplicative subset... |
40952c037448d3c21ce61d2e15b9c50a9743ed18 | e38e95b38a38a99ecfa1255822e78e4b26f65bb0 | /src/certigrad/compute_grad.lean | 16b11609a9993deed593d0a505fba97020d63d77 | [
"Apache-2.0"
] | permissive | ColaDrill/certigrad | fefb1be3670adccd3bed2f3faf57507f156fd501 | fe288251f623ac7152e5ce555f1cd9d3a20203c2 | refs/heads/master | 1,593,297,324,250 | 1,499,903,753,000 | 1,499,903,753,000 | 97,075,797 | 1 | 0 | null | 1,499,916,210,000 | 1,499,916,210,000 | null | UTF-8 | Lean | false | false | 4,499 | lean | /-
Copyright (c) 2017 Daniel Selsam. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Author: Daniel Selsam
Stochastic backpropagation.
-/
import .util .tensor .tvec .graph
namespace certigrad
open list
def sum_costs (m : env) (costs : list ID) : ℝ := sumr (map (λ cost, env.ge... |
37de6c51a6c2d5310cd39612a0b1703b918a0d17 | 618003631150032a5676f229d13a079ac875ff77 | /src/group_theory/perm/cycles.lean | 99cd5289872ad7c30392d4045cd50546e7c945c2 | [
"Apache-2.0"
] | permissive | awainverse/mathlib | 939b68c8486df66cfda64d327ad3d9165248c777 | ea76bd8f3ca0a8bf0a166a06a475b10663dec44a | refs/heads/master | 1,659,592,962,036 | 1,590,987,592,000 | 1,590,987,592,000 | 268,436,019 | 1 | 0 | Apache-2.0 | 1,590,990,500,000 | 1,590,990,500,000 | null | UTF-8 | Lean | false | false | 7,469 | lean | /-
Copyright (c) 2019 Chris Hughes. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Chris Hughes
-/
import group_theory.perm.sign
import group_theory.order_of_element
namespace equiv.perm
open equiv function finset
variables {α : Type*} {β : Type*} [decidable_eq α]
de... |
ac35d89550ead505fa60d907d1a200c801ad81df | 6b45072eb2b3db3ecaace2a7a0241ce81f815787 | /data/list/comb.lean | 80a97671506fee1ed487ca51e88e2cd163cea041 | [] | no_license | avigad/library_dev | 27b47257382667b5eb7e6476c4f5b0d685dd3ddc | 9d8ac7c7798ca550874e90fed585caad030bbfac | refs/heads/master | 1,610,452,468,791 | 1,500,712,839,000 | 1,500,713,478,000 | 69,311,142 | 1 | 0 | null | 1,474,942,903,000 | 1,474,942,902,000 | null | UTF-8 | Lean | false | false | 19,936 | lean | /-
Copyright (c) 2015 Leonardo de Moura. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
αuthors: Leonardo de Moura, Haitao Zhang, Floris van Doorn, Jeremy Avigad
List combinators.
-/
-- TODO(Leo): uncomment data.equiv after refactoring
import .basic ..bool data.list.comb --dat... |
8088600cac77fe9c4a7d4035a02c8340989ac142 | e61a235b8468b03aee0120bf26ec615c045005d2 | /stage0/src/Init/ShareCommon.lean | faca73ca5e7c0c4196b2d784e006494fbcc143a9 | [
"Apache-2.0"
] | permissive | SCKelemen/lean4 | 140dc63a80539f7c61c8e43e1c174d8500ec3230 | e10507e6615ddbef73d67b0b6c7f1e4cecdd82bc | refs/heads/master | 1,660,973,595,917 | 1,590,278,033,000 | 1,590,278,033,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 6,470 | 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
-/
prelude
import Init.Util
import Init.Data.HashMap
import Init.Data.HashSet
import Init.Data.PersistentHashSet
import Init.Data.PersistentHashMap
import Init... |
46bfab5187aea5c77d6a9c9f931c2c3c4c6a597b | 8cae430f0a71442d02dbb1cbb14073b31048e4b0 | /src/order/heyting/boundary.lean | e267bffe81795d70985aeb34b550a8d76df64076 | [
"Apache-2.0"
] | permissive | leanprover-community/mathlib | 56a2cadd17ac88caf4ece0a775932fa26327ba0e | 442a83d738cb208d3600056c489be16900ba701d | refs/heads/master | 1,693,584,102,358 | 1,693,471,902,000 | 1,693,471,902,000 | 97,922,418 | 1,595 | 352 | Apache-2.0 | 1,694,693,445,000 | 1,500,624,130,000 | Lean | UTF-8 | Lean | false | false | 4,599 | lean | /-
Copyright (c) 2022 Yaël Dillies. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Yaël Dillies
-/
import order.boolean_algebra
/-!
# Co-Heyting boundary
> THIS FILE IS SYNCHRONIZED WITH MATHLIB4.
> Any changes to this file require a corresponding PR to mathlib4.
Th... |
d5956ba0b4c2dc3cb382511d19aaff6b4380c8a3 | 3bdd27ffdff3ffa22d4bb010eba695afcc96bc4a | /src/combinatorics/simplicial_complex/to_move/set.lean | 728119a29894007c38cca7c6971f0a8233df8d37 | [] | no_license | mmasdeu/brouwerfixedpoint | 684d712c982c6a8b258b4e2c6b2eab923f2f1289 | 548270f79ecf12d7e20a256806ccb9fcf57b87e2 | refs/heads/main | 1,690,539,793,996 | 1,631,801,831,000 | 1,631,801,831,000 | 368,139,809 | 4 | 3 | null | 1,624,453,250,000 | 1,621,246,034,000 | Lean | UTF-8 | Lean | false | false | 1,304 | lean | /-
Copyright (c) 2021 Yaël Dillies, Bhavik Mehta. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Yaël Dillies, Bhavik Mehta
-/
import data.set.lattice
namespace set
variables {α : Type*} {s t : set α}
lemma disjoint_iff_subset_compl_right :
disjoint s t ↔ s ⊆ tᶜ :... |
7dcda55986178058ec54cfb8d9865758bb1e5ac5 | 8f22844295dd3def1014f96b39d9ea3c9e64d52c | /chapter2.lean | e89074167cfaac45d18c8a41a807b367976794b7 | [] | no_license | saik2121/Lean-Theorem-Prover | a7719542d9ee1d3b062395d730c577b64f35bc19 | 02f6304d2dd68898ad611b2ea6892c98ed991a6b | refs/heads/main | 1,676,011,323,560 | 1,609,954,593,000 | 1,609,954,593,000 | 326,745,338 | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 1,022 | lean | -- definitions
--first way of defining
def succesor : ℕ -> ℕ := λ (x: ℕ) , x+5
#reduce succesor 5
def succesor1 (x: ℕ ): ℕ :=x+5
#check succesor1 5
--lamda abstractions
#check λ x:nat,x+5
#check λ (x: ℕ )(y: ℕ ),x+y
--Applying lambda abstarctions as functions
--constants α β : Type
--constant p : α
--constant q... |
42ff928d3010dc2af0e9b051deafa92ad45af9d6 | 35677d2df3f081738fa6b08138e03ee36bc33cad | /src/topology/metric_space/gromov_hausdorff.lean | 727e67aed4cc547ecf0528177d350905db856ae4 | [
"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 | 55,775 | lean | /-
Copyright (c) 2019 Sébastien Gouëzel. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Author: Sébastien Gouëzel
-/
import topology.metric_space.closeds set_theory.cardinal topology.metric_space.gromov_hausdorff_realized
topology.metric_space.completion
/-!
# Gromov-Hausdorf... |
2e45b5aa9e4aa3b3105003805a98ece03fed831c | 366210ee84e5cc86b5ae5d69decefe097bb44783 | /src/bigop.lean | 1319a7213cc0d025916ea941e0b6c01651004c90 | [] | no_license | ChrisHughes24/lean-scratchpad | 016e47c4a2cb51a48f99e3249fe4563f3477f463 | 6cbc455cb7c5403c601a06e3146cd18b6e32a883 | refs/heads/master | 1,583,998,813,691 | 1,524,342,716,000 | 1,524,342,716,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 2,735 | lean | import data.list.basic
import data.nat.prime
open classical
open list
/- The elements being manipulated are of type R, with operation op, with range r ∈ list I, filtered by the predicate P-/
variables {R : Type*} {I : Type*} (op : R → R → R) (nil: R)
(r : list I) (P : I → Prop) [∀ i, decidable $ P i] (F : ... |
1334b2beadca9e9c1f02643ba8853880ad27e615 | a4673261e60b025e2c8c825dfa4ab9108246c32e | /src/Init/Data/Repr.lean | a09c84a149a65a5af9427175ece695bf3548c317 | [
"Apache-2.0"
] | permissive | jcommelin/lean4 | c02dec0cc32c4bccab009285475f265f17d73228 | 2909313475588cc20ac0436e55548a4502050d0a | refs/heads/master | 1,674,129,550,893 | 1,606,415,348,000 | 1,606,415,348,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 4,853 | lean | /-
Copyright (c) 2016 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Author: Leonardo de Moura
-/
prelude
import Init.Data.String.Basic
import Init.Data.UInt
import Init.Data.Nat.Div
import Init.Control.Id
open Sum Subtype Nat
universes u v
class Repr (... |
229035bee5babd91ce8aa22e94c61247e3321fbc | d406927ab5617694ec9ea7001f101b7c9e3d9702 | /src/measure_theory/covering/besicovitch.lean | f0576fecbea213990505ee52b3a63d8bb5a26235 | [
"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 | 60,629 | lean | /-
Copyright (c) 2021 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 measure_theory.covering.differentiation
import measure_theory.covering.vitali_family
import measure_theory.integral.lebesgue
import measure_theory.measur... |
90577c022c62e9d513eb19d541b5f2a1f322dd6f | d406927ab5617694ec9ea7001f101b7c9e3d9702 | /src/ring_theory/graded_algebra/basic.lean | 1e958d27d4ea110dd1976a761dcf4c4d4a991ffd | [
"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,015 | lean | /-
Copyright (c) 2021 Eric Wieser. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Eric Wieser, Kevin Buzzard, Jujian Zhang
-/
import algebra.direct_sum.algebra
import algebra.direct_sum.decomposition
import algebra.direct_sum.internal
import algebra.direct_sum.ring
/-... |
f66cd810b1331a849253889a59918b1114b4352b | d9d511f37a523cd7659d6f573f990e2a0af93c6f | /src/order/filter/cofinite.lean | 64b35cf18d31275808e18f1fb59f2b0e66856a3c | [
"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 | 6,063 | 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, Jeremy Avigad, Yury Kudryashov
-/
import order.filter.at_top_bot
/-!
# The cofinite filter
In this file we define
`cofinite`: the filter of sets with finite compleme... |
b8cadb77edf7e62ac36728b08118593170d7ecd2 | 6432ea7a083ff6ba21ea17af9ee47b9c371760f7 | /tests/lean/diamond1.lean | a5ad162faefa87ed72fc299d14f408cf41136ada | [
"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 | 637 | lean | structure Bar (α : Type) where
a : α
b : Nat → α
structure Baz (α : Type) where
a : α → α
c : Bool → α
d : Nat
set_option structureDiamondWarning false in
structure Foo (α : Type) extends Bar α, Baz α -- Error: parent field type mismatch
set_option structureDiamondWarning false in
structure Foo (α : Type) ... |
13a173391d56258babf9a9d9fab06a0291fe4d24 | 12dabd587ce2621d9a4eff9f16e354d02e206c8e | /world07/level08.lean | 1f3084c037d2f847df5c88e8a2148b5da1e38d20 | [] | no_license | abdelq/natural-number-game | a1b5b8f1d52625a7addcefc97c966d3f06a48263 | bbddadc6d2e78ece2e9acd40fa7702ecc2db75c2 | refs/heads/master | 1,668,606,478,691 | 1,594,175,058,000 | 1,594,175,058,000 | 278,673,209 | 0 | 1 | null | null | null | null | UTF-8 | Lean | false | false | 245 | lean | lemma and_or_distrib_left (P Q R : Prop) : P ∧ (Q ∨ R) ↔ (P ∧ Q) ∨ (P ∧ R) :=
begin
split,
cc,
intro h,
cases h with hpq hpr,
cases hpq with p q,
split,
exact p,
left,
exact q,
cases hpr with p r,
split,
exact p,
right,
exact r,
end
|
51c67e6383975223619808946200eb430ca3db8a | 36938939954e91f23dec66a02728db08a7acfcf9 | /lean/deps/galois_stdlib/src/galois/category/coe1.lean | 746f17949a941c546d391be73dd1b716bfa1b839 | [
"Apache-2.0"
] | permissive | pnwamk/reopt-vcg | f8b56dd0279392a5e1c6aee721be8138e6b558d3 | c9f9f185fbefc25c36c4b506bbc85fd1a03c3b6d | refs/heads/master | 1,631,145,017,772 | 1,593,549,019,000 | 1,593,549,143,000 | 254,191,418 | 0 | 0 | null | 1,586,377,077,000 | 1,586,377,077,000 | null | UTF-8 | Lean | false | false | 609 | lean | universe variables u v w
-- This defines a class for "parameterized" coercisions in which we
-- want to allow coercising `f tp` to some `g tp` while preserving the
-- type `tp`. This allows coercing even when `tp` contains meta variables,
-- and using unification across the coercision.
class has_coe1 {α:Sort w} (f : ... |
c2009f27b5346a1f16f6b860236208fd3bb7ed16 | 38bf3fd2bb651ab70511408fcf70e2029e2ba310 | /src/category_theory/limits/limits.lean | 945bba2e6a721e8f47038a1360594fc70bb06fa5 | [
"Apache-2.0"
] | permissive | JaredCorduan/mathlib | 130392594844f15dad65a9308c242551bae6cd2e | d5de80376088954d592a59326c14404f538050a1 | refs/heads/master | 1,595,862,206,333 | 1,570,816,457,000 | 1,570,816,457,000 | 209,134,499 | 0 | 0 | Apache-2.0 | 1,568,746,811,000 | 1,568,746,811,000 | null | UTF-8 | Lean | false | false | 36,704 | lean | /-
Copyright (c) 2018 Scott Morrison. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Reid Barton, Mario Carneiro, Scott Morrison, Floris van Doorn
-/
import category_theory.whiskering
import category_theory.yoneda
import category_theory.limits.cones
import category_the... |
41b4033e9607a6e49bbbcaa13b79b802128fd6ab | d1a52c3f208fa42c41df8278c3d280f075eb020c | /src/Lean/Elab/Level.lean | 406e7be8d0b41d9b46feeaadce35a7d86eb15c8d | [
"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 | 3,270 | 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.Exception
import Lean.Elab.Log
import Lean.Elab.AutoBound
namespace Lean.Elab.Level
structure Context where
options : Options... |
25a75ee0fbf10472d41c980d5d98a5a999bfd9b7 | fa02ed5a3c9c0adee3c26887a16855e7841c668b | /src/ring_theory/unique_factorization_domain.lean | da99bdf74e1a59f30e6ac5395b7e00ccbf552996 | [
"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 | 50,273 | lean | /-
Copyright (c) 2018 Johannes Hölzl. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Johannes Hölzl, Jens Wagemaker, Aaron Anderson
-/
import algebra.gcd_monoid
import ring_theory.integral_domain
import ring_theory.noetherian
/-!
# Unique factorization
## Main Defi... |
499e674bd17879ccdc03de1d2c938d1d4b264c5d | 8cae430f0a71442d02dbb1cbb14073b31048e4b0 | /src/order/filter/prod.lean | b6dc75e02a0d8b6400cf7912d236fb4bc4e4dc5e | [
"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 | 22,230 | lean | /-
Copyright (c) 2022 Johannes Hölzl. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Johanes Hölzl, Patrick Massot, Yury Kudryashov, Kevin Wilson, Heather Macbeth
-/
import order.filter.basic
/-!
# Product and coproduct filters
> THIS FILE IS SYNCHRONIZED WITH MATHLI... |
3f4f834f4541c88bd4eb5821941e75804f037393 | b70031c8e2c5337b91d7e70f1e0c5f528f7b0e77 | /src/logic/function/basic.lean | 179a7e7ae76aa5ed0f470ccee7bbce858251d6b1 | [
"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 | 21,988 | lean | /-
Copyright (c) 2016 Johannes Hölzl. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Johannes Hölzl, Mario Carneiro
-/
import logic.basic
import data.option.defs
/-!
# Miscellaneous function constructions and lemmas
-/
universes u v w
namespace function
section
var... |
efec89b4334d8ac11fb5f7f68df31dabc3196554 | 8cae430f0a71442d02dbb1cbb14073b31048e4b0 | /src/algebra/ring/prod.lean | 5f5c2da349c5ef518881c9edc2114ed736ccdcef | [
"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 | 11,951 | 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 data.int.cast.prod
import algebra.group.prod
import algebra.ring.equiv
import algebra.order.monoid.prod
/-!
# ... |
ec91afff01f53945938b37dd645d95f1e289334f | 3f1a1d97c03bb24b55a1b9969bb4b3c619491d5a | /library/init/meta/attribute.lean | c25d7189eb8f2465d059823cdea5fbd3100b912e | [
"Apache-2.0"
] | permissive | praveenmunagapati/lean | 00c3b4496cef8e758396005013b9776bb82c4f56 | fc760f57d20e0a486d14bc8a08d89147b60f530c | refs/heads/master | 1,630,692,342,183 | 1,515,626,222,000 | 1,515,626,222,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 3,865 | lean | /-
Copyright (c) 2016 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Sebastian Ullrich
-/
prelude
import init.meta.tactic init.meta.rb_map init.meta.has_reflect init.meta.lean.parser
meta constant attribute.get_instances : name → tactic (list na... |
f242364f81a7bf65e39681fcb4dd968672379f35 | 947b78d97130d56365ae2ec264df196ce769371a | /tests/lean/run/resolveLVal.lean | 548aa3935e53d6cb2ba00ea25dd656d3d604d283 | [
"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 | 281 | lean | new_frontend
namespace Foo
structure A :=
(x : Nat)
def A.doubleX (a : A) :=
2 * a.x
structure B extends A :=
(y : Nat)
def f (b : B) : Nat :=
b.x + b.doubleX
theorem ex1 : { x := 10, y := 0 : B }.doubleX = 20 :=
rfl
theorem ex2 : f { x := 10, y := 0 } = 30 :=
rfl
end Foo
|
94a23751694d9f28aab4283fe00eaed5cead9ae2 | 94e33a31faa76775069b071adea97e86e218a8ee | /src/topology/algebra/order/liminf_limsup.lean | e0af73d6998547b7a0ef06e0258e4c01fa71ab54 | [
"Apache-2.0"
] | permissive | urkud/mathlib | eab80095e1b9f1513bfb7f25b4fa82fa4fd02989 | 6379d39e6b5b279df9715f8011369a301b634e41 | refs/heads/master | 1,658,425,342,662 | 1,658,078,703,000 | 1,658,078,703,000 | 186,910,338 | 0 | 0 | Apache-2.0 | 1,568,512,083,000 | 1,557,958,709,000 | Lean | UTF-8 | Lean | false | false | 8,380 | lean | /-
Copyright (c) 2017 Johannes Hölzl. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Johannes Hölzl, Mario Carneiro, Yury Kudryashov
-/
import order.liminf_limsup
import topology.algebra.order.basic
/-!
# Lemmas about liminf and limsup in an order topology.
-/
open f... |
49c9368f26a2a77632a5192f916972e1f75c2faf | 8b9f17008684d796c8022dab552e42f0cb6fb347 | /library/data/quotient/util.lean | f2d6ef3d6c2d32248deb0ac442b44b99706504c9 | [
"Apache-2.0"
] | permissive | chubbymaggie/lean | 0d06ae25f9dd396306fb02190e89422ea94afd7b | d2c7b5c31928c98f545b16420d37842c43b4ae9a | refs/heads/master | 1,611,313,622,901 | 1,430,266,839,000 | 1,430,267,083,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 7,105 | lean | /-
Copyright (c) 2014 Floris van Doorn. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Module: data.quotient.util
Author: Floris van Doorn
-/
import logic ..prod algebra.relation
import tools.fake_simplifier
open prod eq.ops
open fake_simplifier
namespace quotient
/- auxil... |
f90d89db0533677c7e7d40f027a7fd36565acdd0 | 367134ba5a65885e863bdc4507601606690974c1 | /src/tactic/ring.lean | cd8951a8c48dde1debb0fa9a67630a260abae956 | [
"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 | 29,194 | 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 tactic.norm_num
import data.int.range
/-!
# `ring`
Evaluate expressions in the language of commutative (semi)rings.
Based on <http://www.cs.ru.nl/~freek/cour... |
31a4a0e87823464247f802e53a6dcb868e16459b | 8eeb99d0fdf8125f5d39a0ce8631653f588ee817 | /src/data/matrix/basic.lean | f945d9649954b35405518dead8b170e3010410a2 | [
"Apache-2.0"
] | permissive | jesse-michael-han/mathlib | a15c58378846011b003669354cbab7062b893cfe | fa6312e4dc971985e6b7708d99a5bc3062485c89 | refs/heads/master | 1,625,200,760,912 | 1,602,081,753,000 | 1,602,081,753,000 | 181,787,230 | 0 | 0 | null | 1,555,460,682,000 | 1,555,460,682,000 | null | UTF-8 | Lean | false | false | 36,784 | lean | /-
Copyright (c) 2018 Ellen Arlt. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Ellen Arlt, Blair Shi, Sean Leather, Mario Carneiro, Johan Commelin
-/
import algebra.big_operators.pi
import algebra.module.pi
import algebra.big_operators.ring
import data.fintype.card
... |
a4d5d75899765728c11a912696ec82f30756bcc0 | 8930e38ac0fae2e5e55c28d0577a8e44e2639a6d | /data/finsupp.lean | 7c1774b7dcef280a9b51d2d0a249ea8685ee194d | [
"Apache-2.0"
] | permissive | SG4316/mathlib | 3d64035d02a97f8556ad9ff249a81a0a51a3321a | a7846022507b531a8ab53b8af8a91953fceafd3a | refs/heads/master | 1,584,869,960,527 | 1,530,718,645,000 | 1,530,724,110,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 27,931 | 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
Type of functions with finite support.
Functions with finite support provide the basis for the following concrete instances:
* ℕ →₀ α: Polynomials (where α is a ring... |
8dd11897f3040b0cb2fa18cd180293059e88e7a7 | 75db7e3219bba2fbf41bf5b905f34fcb3c6ca3f2 | /library/data/nat/div.lean | cdb02734c94a4abdf48ff1f75b0cba57b966292b | [
"Apache-2.0"
] | permissive | jroesch/lean | 30ef0860fa905d35b9ad6f76de1a4f65c9af6871 | 3de4ec1a6ce9a960feb2a48eeea8b53246fa34f2 | refs/heads/master | 1,586,090,835,348 | 1,455,142,203,000 | 1,455,142,277,000 | 51,536,958 | 1 | 0 | null | 1,455,215,811,000 | 1,455,215,811,000 | null | UTF-8 | Lean | false | false | 25,696 | 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
Definitions and properties of div and mod. Much of the development follows Isabelle's library.
-/
import data.nat.sub
open eq.ops well_founded decidabl... |
7273fa2457828d19e6a311d98ed1622bb7e3399a | d406927ab5617694ec9ea7001f101b7c9e3d9702 | /src/category_theory/sites/cover_preserving.lean | 27705c8d2d5bbc32025a5bc6bd47e786cb67f113 | [
"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,016 | lean | /-
Copyright (c) 2021 Andrew Yang. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Andrew Yang
-/
import category_theory.sites.limits
import category_theory.functor.flat
import category_theory.limits.preserves.filtered
import category_theory.sites.left_exact
/-!
# Cove... |
967dc6c1b3c29beb2d884e767d567bbf0cef4ec7 | d406927ab5617694ec9ea7001f101b7c9e3d9702 | /src/data/nat/set.lean | 3d64d838105254ce0c8703d137ffb8c08d4fcd75 | [
"Apache-2.0"
] | permissive | alreadydone/mathlib | dc0be621c6c8208c581f5170a8216c5ba6721927 | c982179ec21091d3e102d8a5d9f5fe06c8fafb73 | refs/heads/master | 1,685,523,275,196 | 1,670,184,141,000 | 1,670,184,141,000 | 287,574,545 | 0 | 0 | Apache-2.0 | 1,670,290,714,000 | 1,597,421,623,000 | Lean | UTF-8 | Lean | false | false | 1,163 | lean | /-
Copyright (c) 2020 Yury Kudryashov. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Yury Kudryashov
-/
import data.set.basic
/-!
### Recursion on the natural numbers and `set.range`
-/
namespace nat
section set
open set
theorem zero_union_range_succ : {0} ∪ rang... |
1e1de1dc56ae15c395aa116b6b7835a9c8269fd7 | fa02ed5a3c9c0adee3c26887a16855e7841c668b | /src/category_theory/triangulated/basic.lean | 4f81246058dbeb5aeae79459195f2d1799193fcf | [
"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 | 4,087 | lean | /-
Copyright (c) 2021 Luke Kershaw. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Luke Kershaw
-/
import category_theory.additive.basic
import category_theory.shift
import category_theory.preadditive.additive_functor
/-!
# Triangles
This file contains the definition... |
4359f590062a0c285f0db9b1f39e5e41c414cd80 | 50b3917f95cf9fe84639812ea0461b38f8f0dbe1 | /canonical_isomorphism/equiv_mul_stuck.lean | 26fce88d699ef9e0a7a3745f6cfe0aa0fd40dfc7 | [] | no_license | roro47/xena | 6389bcd7dcf395656a2c85cfc90a4366e9b825bb | 237910190de38d6ff43694ffe3a9b68f79363e6c | refs/heads/master | 1,598,570,061,948 | 1,570,052,567,000 | 1,570,052,567,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 1,903 | lean | universe zfc_u
variables {α β : Type zfc_u}
-- ideas around the concept of α being canonically isomorphic to β
namespace zfc
-- mod of equiv so I can save typing
structure equiv' (α : Type zfc_u) (β : Type zfc_u) :=
(i : α → β)
(j : β → α)
(ij : ∀ (x : α), j (i x) = x)
(ji : ∀ (y : β), i (j y) = y)
-- it's... |
15513df9e611543002968fe5be59d45af7f4d904 | 74addaa0e41490cbaf2abd313a764c96df57b05d | /Mathlib/algebra/lie/direct_sum.lean | d55706ba5b2120f87824181216058bc41163510a | [] | 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,439 | 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 Mathlib.PrePort
import Mathlib.Lean3Lib.init.default
import Mathlib.algebra.lie.basic
import Mathlib.linear_algebra.direct_sum.finsupp
import Mathlib.PostPort
unive... |
d6f29a9f0a256d0a1129dfdf5ae4f64c10383edd | 947b78d97130d56365ae2ec264df196ce769371a | /stage0/src/Lean/Compiler/ExternAttr.lean | 44e9278ce7e1eaeea08373b7cbab24d78763d55e | [
"Apache-2.0"
] | permissive | shyamalschandra/lean4 | 27044812be8698f0c79147615b1d5090b9f4b037 | 6e7a883b21eaf62831e8111b251dc9b18f40e604 | refs/heads/master | 1,671,417,126,371 | 1,601,859,995,000 | 1,601,860,020,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 6,756 | 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.Expr
import Lean.Environment
import Lean.Attributes
import Lean.ProjFns
import Lean.Meta.Basic
namespace Lean
inductive ExternEntry
| adhoc ... |
130a16fc195d4fc7c5c2f47438a8ac03dc714238 | 42610cc2e5db9c90269470365e6056df0122eaa0 | /library/theories/finite_group_theory/action.lean | 4cddf49373681cb997ee8c3c1e648b3917cb27fb | [
"Apache-2.0"
] | permissive | tomsib2001/lean | 2ab59bfaebd24a62109f800dcf4a7139ebd73858 | eb639a7d53fb40175bea5c8da86b51d14bb91f76 | refs/heads/master | 1,586,128,387,740 | 1,468,968,950,000 | 1,468,968,950,000 | 61,027,234 | 0 | 0 | null | 1,465,813,585,000 | 1,465,813,585,000 | null | UTF-8 | Lean | false | false | 25,697 | lean | /-
Copyright (c) 2015 Haitao Zhang. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Author : Haitao Zhang
-/
import algebra.group data .hom .perm .finsubg
namespace group_theory
open finset function
local attribute perm.f [coercion]
private lemma and_left_true {a b : Prop} (... |
f76113a9117d05da1fd4267ed19e5e248885cec5 | 9a0b1b3a653ea926b03d1495fef64da1d14b3174 | /tidy/rewrite_search/core/default.lean | 2c87a1442feb1ddd7575df59d4dea686d526e565 | [
"Apache-2.0"
] | permissive | khoek/mathlib-tidy | 8623b27b4e04e7d598164e7eaf248610d58f768b | 866afa6ab597c47f1b72e8fe2b82b97fff5b980f | refs/heads/master | 1,585,598,975,772 | 1,538,659,544,000 | 1,538,659,544,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 58 | lean | import .types
import .debug
import .engine
import .explain |
e26fcc18d1fd11acec9bbec7c0d986a89b84fece | bb31430994044506fa42fd667e2d556327e18dfe | /src/measure_theory/integral/interval_integral.lean | 925d890f1737644241ee628fef86823f07b90c38 | [
"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 | 141,611 | lean | /-
Copyright (c) 2020 Yury G. Kudryashov. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Yury G. Kudryashov, Patrick Massot, Sébastien Gouëzel
-/
import analysis.normed_space.dual
import data.set.intervals.disjoint
import measure_theory.measure.haar_lebesgue
import mea... |
670e60ee0f952a8499815f3533a805de478709cd | 60bf3fa4185ec5075eaea4384181bfbc7e1dc319 | /src/game/order/level05.lean | 2fc01b53e0a1ddbf74c7f39fe2beef7975afd1ff | [
"Apache-2.0"
] | permissive | anrddh/real-number-game | 660f1127d03a78fd35986c771d65c3132c5f4025 | c708c4e02ec306c657e1ea67862177490db041b0 | refs/heads/master | 1,668,214,277,092 | 1,593,105,075,000 | 1,593,105,075,000 | 264,269,218 | 0 | 0 | null | 1,589,567,264,000 | 1,589,567,264,000 | null | UTF-8 | Lean | false | false | 1,267 | lean | import data.real.basic
import game.order.level04
namespace xena -- hide
/-
# Chapter 2 : Order
## Level 5
Another well-known property of the absolute value.
-/
notation `|` x `|` := abs x -- hide
/- Lemma
For any two real numbers $a$ and $b$, we have that
$$| |a| - |b| | ≤ |a - b|$$.
-/
theorem abs_of_sub_le_abs ... |
f553cff521477e11ab5684e4f4a2513f8be06c95 | 32025d5c2d6e33ad3b6dd8a3c91e1e838066a7f7 | /tests/lean/run/typeclass_loop.lean | 6483f497da41e55e1185981efb5e012140ff980f | [
"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,308 | lean | set_option trace.class_instances true
example (M : Type → Type) [Monad M] : ExceptT Unit (ReaderT Unit (StateT Unit M)) Unit := do
ctx ← read;
pure ()
/-
...
[class_instances] (1) ?x_8 : HasMonadLift
(ReaderT ?x_10
(OptionT
(OptionT
(OptionT
(OptionT
(OptionT
... |
ffddaccb936cdcd73048bf13aea47d315a2e7685 | 74addaa0e41490cbaf2abd313a764c96df57b05d | /Mathlib/data/mv_polynomial/rename_auto.lean | 3556ce0bde4f8425397bbd3097dda564d6306c1f | [] | 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,360 | 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 Mathlib.PrePort
import Mathlib.Lean3Lib.init.default
import Mathlib.data.mv_polynomial.basic
import Mathlib.PostPort
universes... |
bcf74b8a8d789185d04ace8bec2b2ed6fd909154 | 9be442d9ec2fcf442516ed6e9e1660aa9071b7bd | /tests/lean/run/forInElabBug.lean | e2382905559dfcd5e5a4e911a8f84486021dd175 | [
"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 | 381 | lean | import Std
namespace Std.BinomialHeapImp
open Heap
partial def toArrayUnordered' (h : Heap α) : Array α :=
go #[] h
where
go (acc : Array α) : Heap α → Array α
| heap ns => Id.run do
let mut acc := acc
for h₁ : n in ns do
acc := acc.push n.val
for h₂ : h in n.children ... |
9665ea6020d4a450ecf0d230f4e693cb181feb18 | 6432ea7a083ff6ba21ea17af9ee47b9c371760f7 | /tests/lean/run/inductionTacticBug.lean | 9455bc5cfddbdbc603e07b7924510109e492b452 | [
"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 | 175 | lean | def ex {α} : Subsingleton (Squash α) := Subsingleton.intro $ by
intro a b
induction a using Squash.ind
induction b using Squash.ind
apply Quot.sound
exact trivial
|
f575d956baf20ce856b59f7ef5eae79e35984b8b | c777c32c8e484e195053731103c5e52af26a25d1 | /src/measure_theory/function/conditional_expectation/basic.lean | 0cacb74285b495681362c00f16b74c4946eb331a | [
"Apache-2.0"
] | permissive | kbuzzard/mathlib | 2ff9e85dfe2a46f4b291927f983afec17e946eb8 | 58537299e922f9c77df76cb613910914a479c1f7 | refs/heads/master | 1,685,313,702,744 | 1,683,974,212,000 | 1,683,974,212,000 | 128,185,277 | 1 | 0 | null | 1,522,920,600,000 | 1,522,920,600,000 | null | UTF-8 | Lean | false | false | 109,102 | lean | /-
Copyright (c) 2021 Rémy Degenne. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Rémy Degenne
-/
import analysis.inner_product_space.projection
import measure_theory.function.l2_space
import measure_theory.function.ae_eq_of_integral
/-! # Conditional expectation
W... |
e862fa73a701d83d0997bdc67c9f8510372e123b | 64874bd1010548c7f5a6e3e8902efa63baaff785 | /tests/lean/run/ind0.lean | 40ac4b3044dbc0f17172357b756f9cc09672e348 | [
"Apache-2.0"
] | permissive | tjiaqi/lean | 4634d729795c164664d10d093f3545287c76628f | d0ce4cf62f4246b0600c07e074d86e51f2195e30 | refs/heads/master | 1,622,323,796,480 | 1,422,643,069,000 | 1,422,643,069,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 92 | lean | prelude
inductive nat : Type :=
zero : nat,
succ : nat → nat
check nat
check nat.rec.{1}
|
46ad7c0aa471d2163233eaa91dfdb9109ac5880f | 491068d2ad28831e7dade8d6dff871c3e49d9431 | /tests/lean/run/contra1.lean | cd22b35f518cad3077966143a7e1c7859c1043dc | [
"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 | 363 | lean | example (a b : nat) (h : false) : a = b :=
by contradiction
example : ∀ (a b : nat), false → a = b :=
by contradiction
example : ∀ (a b : nat), 0 = 1 → a = b :=
by contradiction
definition id {A : Type} (a : A) := a
example : ∀ (a b : nat), id false → a = b :=
by contradiction
example : ∀ (a b : nat), id (0 = 1) →... |
12843d35f3f63bc572ae9f4379626fe69c8ae296 | 8cae430f0a71442d02dbb1cbb14073b31048e4b0 | /test/local_cache.lean | c8cd34835760559feb76f1894b12cc4b48e54d54 | [
"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,078 | lean | import tactic.local_cache
open tactic
def do_trace : bool := ff
meta def trace_cache_regenerating : tactic unit :=
if do_trace then trace "(test/local_cache): cache regenerating" else skip
namespace block_local
section example_tactic
def TEST_NS_1 : name := `my_tactic
def TEST_NS_2 : name := `my_other_tactic
-- ... |
54dc568886090359a2a4f58927a1fea145fdcff1 | ea5678cc400c34ff95b661fa26d15024e27ea8cd | /PID.lean | 912993cef115e6b995376de68e08e8b4ec92d7b6 | [] | no_license | ChrisHughes24/leanstuff | dca0b5349c3ed893e8792ffbd98cbcadaff20411 | 9efa85f72efaccd1d540385952a6acc18fce8687 | refs/heads/master | 1,654,883,241,759 | 1,652,873,885,000 | 1,652,873,885,000 | 134,599,537 | 1 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 3,730 | lean | import algebra.euclidean_domain ring_theory.ideals
universes u v
variables {α : Type u} {β : Type v} [comm_ring α] {a b : α}
open set function
local attribute [instance] classical.prop_decidable
class is_principal_ideal (S : set α) : Prop :=
(principal : ∃ a : α, S = {x | a ∣ x})
class principal_ideal_domain (α : Ty... |
a42f8a8efe9fc8dd21545cfdb339e5668f5001b2 | 9dc8cecdf3c4634764a18254e94d43da07142918 | /src/measure_theory/measure/regular.lean | 97c39ce5cf98dcaa71d0fcfba7e0cb29e75a8741 | [
"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 | 33,792 | lean | /-
Copyright (c) 2021 Sébastien Gouëzel. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Floris Van Doorn, Yury Kudryashov
-/
import measure_theory.constructions.borel_space
/-!
# Regular measures
A measure is `outer_regular` if the measure of any measurable set `A` ... |
fa29124fe7ef8c6168f29abba33bef4833f7998c | ed27983dd289b3bcad416f0b1927105d6ef19db8 | /src/inClassNotes/type_library/nat_test.lean | 61c3f415238b2b8678e6aa7c2a977d575b924e8a | [] | no_license | liuxin-James/complogic-s21 | 0d55b76dbe25024473d31d98b5b83655c365f811 | 13e03e0114626643b44015c654151fb651603486 | refs/heads/master | 1,681,109,264,463 | 1,618,848,261,000 | 1,618,848,261,000 | 337,599,491 | 0 | 0 | null | 1,613,141,619,000 | 1,612,925,555,000 | null | UTF-8 | Lean | false | false | 5,930 | lean | import .nat
namespace hidden
/-
Finally, nat: a properly inductive
type, where larger values of this
type are constructed using smaller
values *of the same type*.
-/
def n0 := nat.zero
def n1 :=
nat.succ
_
def n2 :=
nat.succ
_
variable n : nat -- assume (n : nat)
#check nat.succ n -- succ ... |
1fd0bbad566f06f6be00b25d672165c51ef18dcd | bbecf0f1968d1fba4124103e4f6b55251d08e9c4 | /src/number_theory/divisors.lean | 74836cc445837b0e467e82db78a18355983f5096 | [
"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 | 12,851 | 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.order
import data.nat.interval
import data.nat.prime
/-!
# Divisor finsets
This file defines sets of divisors of a natural number. This... |
8e067668776fe8e491b81d78c60342616531dc98 | d29d82a0af640c937e499f6be79fc552eae0aa13 | /src/data/nat/gcd.lean | 807839231aca21250d68e9a630f0f18dfc223c9a | [
"Apache-2.0"
] | permissive | AbdulMajeedkhurasani/mathlib | 835f8a5c5cf3075b250b3737172043ab4fa1edf6 | 79bc7323b164aebd000524ebafd198eb0e17f956 | refs/heads/master | 1,688,003,895,660 | 1,627,788,521,000 | 1,627,788,521,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 17,471 | 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
-/
import data.nat.pow
/-!
# Definitions and properties of `gcd`, `lcm`, and `coprime`
-/
namespace nat
/-! ### `gcd` -/
theorem gcd_dvd (m n : ℕ) ... |
2b021f7db95266bd83efcd7f7cb9f47dd16732d9 | cf39355caa609c0f33405126beee2739aa3cb77e | /tests/lean/run/univ_delay_thm_bug.lean | 415ef0b3a6c26cae33a6126d306f38633d32fec1 | [
"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 | 88 | lean | lemma foo : ∀B A : Type _, ∀a:A, a=a :=
let x : ∀A, ∀a:A, a=a := @rfl in λB, x
|
07efc8acaa03eeaf548e672034dafaf1a7705433 | 8cae430f0a71442d02dbb1cbb14073b31048e4b0 | /src/data/int/range.lean | 9bde57f55dfcd54ea4c1bcbf1439f22895bd4d1a | [
"Apache-2.0"
] | permissive | leanprover-community/mathlib | 56a2cadd17ac88caf4ece0a775932fa26327ba0e | 442a83d738cb208d3600056c489be16900ba701d | refs/heads/master | 1,693,584,102,358 | 1,693,471,902,000 | 1,693,471,902,000 | 97,922,418 | 1,595 | 352 | Apache-2.0 | 1,694,693,445,000 | 1,500,624,130,000 | Lean | UTF-8 | Lean | false | false | 2,137 | lean | /-
Copyright (c) 2018 Kenny Lau. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Mario Carneiro, Kenny Lau
-/
import data.list.range
import data.int.order.basic
/-!
# Intervals in ℤ
> THIS FILE IS SYNCHRONIZED WITH MATHLIB4.
> Any changes to this file require a corres... |
c772e17d3fd7d81548222b08d14065845ada3cb9 | 94637389e03c919023691dcd05bd4411b1034aa5 | /src/inClassNotes/type_library/prod.lean | c5f7dbcd3037c75662bf8c9a0de00846763309ec | [] | no_license | kevinsullivan/complogic-s21 | 7c4eef2105abad899e46502270d9829d913e8afc | 99039501b770248c8ceb39890be5dfe129dc1082 | refs/heads/master | 1,682,985,669,944 | 1,621,126,241,000 | 1,621,126,241,000 | 335,706,272 | 0 | 38 | null | 1,618,325,669,000 | 1,612,374,118,000 | Lean | UTF-8 | Lean | false | false | 408 | lean | namespace hidden
/-
The polymorphic type, prod α β, is
the type whose values are ordered
pairs the first elements of which
are of type α and the second elements
of which are of type β.
-/
universe u
structure prod (α β : Type u) : Type u :=
(fst : α) (snd : β)
/-
The names of the fields, fst and snd,
are also use... |
ebfc83aa4b6f81cc21e89290a2f9cc72941ed139 | a7eef317ddec01b9fc6cfbb876fe7ac00f205ac7 | /src/linear_algebra/nonsingular_inverse.lean | 6226ef30518ad0f455b08a03d8f99bfbb1ddfdc0 | [
"Apache-2.0"
] | permissive | kmill/mathlib | ea5a007b67ae4e9e18dd50d31d8aa60f650425ee | 1a419a9fea7b959317eddd556e1bb9639f4dcc05 | refs/heads/master | 1,668,578,197,719 | 1,593,629,163,000 | 1,593,629,163,000 | 276,482,939 | 0 | 0 | null | 1,593,637,960,000 | 1,593,637,959,000 | null | UTF-8 | Lean | false | false | 17,385 | lean | /-
Copyright (c) 2019 Tim Baanen. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Author: Tim Baanen.
-/
import algebra.associated
import linear_algebra.determinant
import tactic.linarith
import tactic.ring_exp
/-!
# Nonsingular inverses
In this file, we define an inverse for ... |
6f697b8e0c2943181d1c0d5b24e14dbb34c989c2 | 5756a081670ba9c1d1d3fca7bd47cb4e31beae66 | /Mathport/Syntax/Transform.lean | 889d7aa9205f16db3b226f3e27943c85e5564989 | [
"Apache-2.0"
] | permissive | leanprover-community/mathport | 2c9bdc8292168febf59799efdc5451dbf0450d4a | 13051f68064f7638970d39a8fecaede68ffbf9e1 | refs/heads/master | 1,693,841,364,079 | 1,693,813,111,000 | 1,693,813,111,000 | 379,357,010 | 27 | 10 | Apache-2.0 | 1,691,309,132,000 | 1,624,384,521,000 | Lean | UTF-8 | Lean | false | false | 478 | lean | /-
Copyright (c) 2021 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Gabriel Ebner
-/
import Mathport.Syntax.Transform.Basic
import Mathport.Syntax.Transform.Declaration
import Mathport.Syntax.Transform.Tactic
import Mathport.Syntax.Transform.Exp... |
0fc1ebfd9a9024e8253336047e5cd69d77202f27 | 63abd62053d479eae5abf4951554e1064a4c45b4 | /src/set_theory/cofinality.lean | b86a31ee45b82abae6207606c565a228b52ebbef | [
"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 | 22,018 | lean | /-
Copyright (c) 2017 Mario Carneiro. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Author: Mario Carneiro
-/
import set_theory.cardinal_ordinal
/-!
# Cofinality on ordinals, regular cardinals
-/
noncomputable theory
open function cardinal set
open_locale classical
universes... |
f1ca999789e00566d3e3433a96740a88b853d2bd | 1fbca480c1574e809ae95a3eda58188ff42a5e41 | /test/tactic/perm.lean | 8f380d1a78b5e02266b2a7d12395c78e93e63ade | [] | no_license | unitb/lean-lib | 560eea0acf02b1fd4bcaac9986d3d7f1a4290e7e | 439b80e606b4ebe4909a08b1d77f4f5c0ee3dee9 | refs/heads/master | 1,610,706,025,400 | 1,570,144,245,000 | 1,570,144,245,000 | 99,579,229 | 5 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 503 | lean |
import util.meta.tactic
example : list.perm [1,2,3] [3,2,1] :=
by { prove_perm }
example : list.perm [1,2,3,4] [3,2,4,1] :=
by { prove_perm }
example : list.perm [1,2,3,4] [3,1,4] :=
by { success_if_fail { prove_perm }, admit }
example : list.perm [1,2,3,4] [3,2,4,5] :=
by { success_if_fail { prove_perm }, admit }... |
db8bd7c94b78d0984e88f175642cb8e469dd41f4 | 82e44445c70db0f03e30d7be725775f122d72f3e | /src/algebra/pointwise.lean | 761ce8dc47a033d6ad9e54e238de7d30bcb42ee3 | [
"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 | 27,423 | lean | /-
Copyright (c) 2019 Johan Commelin. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Johan Commelin, Floris van Doorn
-/
import algebra.module.basic
import data.set.finite
import group_theory.submonoid.basic
/-!
# Pointwise addition, multiplication, and scalar multipl... |
b5acd6da23c25b9baa9cdf0145134f6bd223ab74 | 351a46035517d2a1985619b8cabdf263754d343a | /src/ch4.lean | 2190b7bb82e76b6cf34beeb9e283aed33ce13b27 | [] | no_license | kaychaks/logic_proof | accc212517b613caca92c10db77e6aaf6b7ccfbc | 90f3bf0acbabf558ba2f82dee968255d8bfe2de1 | refs/heads/master | 1,587,001,734,509 | 1,548,235,051,000 | 1,548,235,051,000 | 165,186,786 | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 799 | lean | variables A B C D : Prop
example : A ∧ (A → B) → B :=
assume h,
show B, from h.right h.left
example : A → ¬ (¬ A ∧ B) :=
assume h1 : A,
assume h2: ¬ A ∧ B,
show false, from h2.left h1
example : ¬ (A ∧ B) → (A → ¬ B) :=
λ h1 h2 h3, h1 (⟨ h2 , h3 ⟩)
example (h₁ : A ∨ B) (h₂ : A → C) (h₃ : B → D) : C ∨ D :=
or.elim h... |
23e1a953dd17bb4b4ce4f15acc55c3c6d9b20237 | 4727251e0cd73359b15b664c3170e5d754078599 | /src/algebraic_topology/topological_simplex.lean | abf904e11b970398fc2fa24c295968170f3fdb90 | [
"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 | 3,138 | lean | /-
Copyright (c) 2021 Adam Topaz. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Johan Commelin, Adam Topaz
-/
import algebraic_topology.simplex_category
import topology.category.Top.basic
import topology.instances.nnreal
/-!
# Topological simplices
We define the nat... |
860ceb55b67802451c46590f7f0783d7629f82f1 | fa02ed5a3c9c0adee3c26887a16855e7841c668b | /src/category_theory/reflects_isomorphisms.lean | f418e8d326981c8fc86d500124bd9fb0d8a4c46b | [
"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 | 1,521 | 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.fully_faithful
/-!
# Functors which reflect isomorphisms
A functor `F` reflects isomorphisms if whenever `F.map f` is an isomorphism, `f` was too... |
433216271d181638ad0644284559a94e987382a5 | d9ed0fce1c218297bcba93e046cb4e79c83c3af8 | /library/init/coe.lean | 80016cecff03653751a4e3779e5f6d6a75c2e1d0 | [
"Apache-2.0"
] | permissive | leodemoura/lean_clone | 005c63aa892a6492f2d4741ee3c2cb07a6be9d7f | cc077554b584d39bab55c360bc12a6fe7957afe6 | refs/heads/master | 1,610,506,475,484 | 1,482,348,354,000 | 1,482,348,543,000 | 77,091,586 | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 5,344 | 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
-/
/-
The elaborator tries to insert coercions automatically.
Only instances of has_coe type class are considered in the process.
Lean also provides a "lifti... |
5d3771fc251bab57a926578fac56eba5218814b7 | a81826cfd4fd71c797ea79b8e827b03ccb332c17 | /src/wonky_sq/periodicity.lean | 97ae6a69f0244f6f6e215bef40133c94d236d33a | [
"Apache-2.0"
] | permissive | jamesa9283/Generalised-Trigonometric-Functions-for-Lean | 0a0f4774363c3708be466526935c6d07f4b970f0 | 33775fb8286eacfc17397fe41af9d446cbdd78f3 | refs/heads/master | 1,669,337,232,958 | 1,597,061,947,000 | 1,597,061,947,000 | 276,104,804 | 0 | 0 | null | 1,593,540,795,000 | 1,593,523,262,000 | Lean | UTF-8 | Lean | false | false | 6,460 | lean | import tactic
import data.real.basic data.int.basic init.data.int.basic
import data.complex.exponential
import analysis.special_functions.trigonometric
-- sinm imports
import wonky_sq.basic wonky_sq.addition_formulae
/-!
Here we are going to prove periodicity lemma's like sinm(2π) = 0 or even
sinm(x∓π) = -sin(x) ... |
ec9e42cb55cdf6488d318024e74d04ca786fe2c6 | c45b34bfd44d8607a2e8762c926e3cfaa7436201 | /uexp/src/uexp/rules/aggregateGroupingSetsProjectMerge.lean | 1baa374a67f9197ce9dc4fc0da81b92e2b9d257f | [
"BSD-2-Clause"
] | permissive | Shamrock-Frost/Cosette | b477c442c07e45082348a145f19ebb35a7f29392 | 24cbc4adebf627f13f5eac878f04ffa20d1209af | refs/heads/master | 1,619,721,304,969 | 1,526,082,841,000 | 1,526,082,841,000 | 121,695,605 | 1 | 0 | null | 1,518,737,210,000 | 1,518,737,210,000 | null | UTF-8 | Lean | false | false | 1,055 | lean | import ..extra_constants
import ..sql
import ..u_semiring
import ..cosette_tactics
open SQL
open Proj
open Pred
open Expr
theorem rule :
forall (Γ scm_s : Schema)
(rel_r : relation scm_s)
(s_a : Column datatypes.int scm_s)
(s_b : Column datatypes.int scm_s)
(s_c : Colum... |
ac4492fb685100d2e70e51caba6f8a0c4b251002 | 618003631150032a5676f229d13a079ac875ff77 | /src/data/set/disjointed.lean | 5eacb7966a130c969226c983b37f291ddaf12921 | [
"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 | 3,748 | 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
Disjointed sets
-/
import data.set.lattice
import tactic.wlog
open set classical
open_locale classical
universes u v w x
variables {α : Type u} {β : Type v} {γ : Type ... |
f579aebe615fa49a690ce0be57ff65677dd2039e | 2a73ce8bc0731b170b40e8c9faca9b49d34ba5c6 | /alaoglu.lean | e319087f8d9c06784a4e68e7d080a21ac85312e7 | [] | no_license | kkytola/lean-questions | f383016b7870432807d8f4ced256f7506a59b0ff | 9a7ded8036534575b682e28ddfed4c2f1089959d | refs/heads/main | 1,692,989,428,439 | 1,634,665,853,000 | 1,634,665,853,000 | 353,850,251 | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 22,817 | lean | /-
Copyright (c) 2021 Kalle Kytölä. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Kalle Kytölä
-/
import tactic
import analysis.normed_space.bounded_linear_maps
import analysis.normed_space.weak_dual
import analysis.seminorm
import linear_algebra.affine_space.basic
n... |
d9863ab57879e6c1c72789bb36c91434d3de0487 | 8cae430f0a71442d02dbb1cbb14073b31048e4b0 | /archive/imo/imo2013_q1.lean | 842d2de4c36f59eddbed8f9aaa5dcba74e5588ee | [
"Apache-2.0"
] | permissive | leanprover-community/mathlib | 56a2cadd17ac88caf4ece0a775932fa26327ba0e | 442a83d738cb208d3600056c489be16900ba701d | refs/heads/master | 1,693,584,102,358 | 1,693,471,902,000 | 1,693,471,902,000 | 97,922,418 | 1,595 | 352 | Apache-2.0 | 1,694,693,445,000 | 1,500,624,130,000 | Lean | UTF-8 | Lean | false | false | 4,432 | lean | /-
Copyright (c) 2021 David Renshaw. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: David Renshaw
-/
import data.pnat.basic
import data.nat.parity
import algebra.big_operators.pi
import tactic.ring
import tactic.field_simp
/-!
# IMO 2013 Q1
> THIS FILE IS SYNCHRONIZ... |
bf247c5bf2a9fe229bd1e1512604cd8e5a321144 | e39f04f6ff425fe3b3f5e26a8998b817d1dba80f | /category_theory/yoneda.lean | 8be9f8ece9f10a8cff20244486b294a53de88e49 | [
"Apache-2.0"
] | permissive | kristychoi/mathlib | c504b5e8f84e272ea1d8966693c42de7523bf0ec | 257fd84fe98927ff4a5ffe044f68c4e9d235cc75 | refs/heads/master | 1,586,520,722,896 | 1,544,030,145,000 | 1,544,031,933,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 6,352 | lean | -- Copyright (c) 2017 Scott Morrison. All rights reserved.
-- Released under Apache 2.0 license as described in the file LICENSE.
-- Authors: Scott Morrison
/- The Yoneda embedding, as a functor `yoneda : C ⥤ ((Cᵒᵖ) ⥤ (Type v₁))`,
along with an instance that it is `fully_faithful`.
Also the Yoneda lemma, `yoned... |
9640898584c69496c9b7718508cf47179f97e6b5 | 957a80ea22c5abb4f4670b250d55534d9db99108 | /library/init/relator.lean | f1d8bb20e564e5aa3cc2ff1f061e63e85cbd02de | [
"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 | 2,840 | 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
Relator for functions, pairs, sums, and lists.
-/
prelude
import init.core init.data.basic
namespace relator
universe variables u₁ u₂ v₁ v₂
reserve infixr ` ⇒ `:40
... |
ce8e48076160c6a84736541ed5da9cca8a17e5cb | f7315930643edc12e76c229a742d5446dad77097 | /hott/init/path.hlean | d1dfac72e760ecbcf358e5ffd76c16d4a96607a4 | [
"Apache-2.0"
] | permissive | bmalehorn/lean | 8f77b762a76c59afff7b7403f9eb5fc2c3ce70c1 | 53653c352643751c4b62ff63ec5e555f11dae8eb | refs/heads/master | 1,610,945,684,489 | 1,429,681,220,000 | 1,429,681,449,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 24,364 | hlean | /-
Copyright (c) 2014 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Module: init.path
Authors: Jeremy Avigad, Jakob von Raumer, Floris van Doorn
Ported from Coq HoTT
-/
prelude
import .function .datatypes .relation .tactic
open function eq
/- Path e... |
d5c849f40960b444215c9362b60fab9ec24b5f09 | 3d2a7f1582fe5bae4d0bdc2fe86e997521239a65 | /misc/family1.lean | db18d7701048c11fb1ac29187d121747945ecd86 | [] | no_license | own-pt/common-sense-lean | e4fa643ae010459de3d1bf673be7cbc7062563c9 | f672210aecb4172f5bae265e43e6867397e13b1c | refs/heads/master | 1,622,065,660,261 | 1,589,487,533,000 | 1,589,487,533,000 | 254,167,782 | 3 | 2 | null | 1,589,487,535,000 | 1,586,370,214,000 | Lean | UTF-8 | Lean | false | false | 354 | lean | /-
From adam's serie:
https://www.youtube.com/watch?v=SkruxPmN0kk
https://www.youtube.com/watch?v=nvHatVfiLPU
-/
constants Entity Hominid Human : Type
constant isHominid : Entity → Prop
constant hasHair : Entity → Prop
def isHuman (x : Entity) : Prop := isHominid x ∧ hasHair x
constant hasBirth : { x : Entity ... |
23559791a4d9bd860cbc1af33fa58dc5bb24938e | 7cef822f3b952965621309e88eadf618da0c8ae9 | /src/topology/separation.lean | 09afd5ce5d95ed2d05e7d0d4e9171442e5080921 | [
"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 | 16,770 | 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
Separation properties of topological spaces.
-/
import topology.subset_properties
open set filter lattice
open_locale topological_space
local attribut... |
3535e4cd3b46d6ed783e861c443ac5dbf11a4ba5 | 80d0f8071ea62262937ab36f5887a61735adea09 | /src/certigrad/tgrads.lean | da0099f1c55ce9555ab27020161f7326e6663a6c | [
"Apache-2.0"
] | permissive | wudcscheme/certigrad | 94805fa6a61f993c69a824429a103c9613a65a48 | c9a06e93f1ec58196d6d3b8563b29868d916727f | refs/heads/master | 1,679,386,475,077 | 1,551,651,022,000 | 1,551,651,022,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 31,499 | lean | /-
Copyright (c) 2017 Daniel Selsam. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Author: Daniel Selsam
Properties of gradients.
-/
import .tensor .tfacts .tactics
namespace certigrad
namespace T
open list
-- is_cdifferentiable
axiom is_cdifferentiable_binary {shape : S} ... |
156d0b471f4a175c59357e014a575736353e9b51 | 74addaa0e41490cbaf2abd313a764c96df57b05d | /Mathlib/category_theory/limits/constructions/binary_products_auto.lean | e1a2dd47a2914ee1d5cc8e6021688736e975a8bb | [] | 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,058 | 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 Mathlib.PrePort
import Mathlib.Lean3Lib.init.default
import Mathlib.category_theory.limits.shapes.terminal
import Mathlib.category_theory.limits.shapes.pullbacks
i... |
41395ef6055ab01964980cb98eabccf692c4e2b5 | a4673261e60b025e2c8c825dfa4ab9108246c32e | /stage0/src/Lean/Compiler/IR/ElimDeadBranches.lean | fd0532fef6a7adc38e8b2b3145c27e1edb75dd4d | [
"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 | 10,572 | lean | /-
Copyright (c) 2019 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Leonardo de Moura
-/
import Lean.Compiler.IR.Format
import Lean.Compiler.IR.Basic
import Lean.Compiler.IR.CompilerM
namespace Lean.IR.UnreachableBranches
/-- Value used in the... |
129a50111b0e29dfb94d7a6286fd743c26411d71 | 4727251e0cd73359b15b664c3170e5d754078599 | /src/category_theory/limits/shapes/zero_morphisms.lean | d43911a8b2dae5a94b2a9112c1b503f989b4c9a6 | [
"Apache-2.0"
] | permissive | Vierkantor/mathlib | 0ea59ac32a3a43c93c44d70f441c4ee810ccceca | 83bc3b9ce9b13910b57bda6b56222495ebd31c2f | refs/heads/master | 1,658,323,012,449 | 1,652,256,003,000 | 1,652,256,003,000 | 209,296,341 | 0 | 1 | Apache-2.0 | 1,568,807,655,000 | 1,568,807,655,000 | null | UTF-8 | Lean | false | false | 19,899 | 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.limits.shapes.products
import category_theory.limits.shapes.images
import category_theory.isomorphism_classes
import category_theory.limits.sha... |
94c731bac835367200dbeb1594f4a46c425c55f5 | 38ee9024fb5974f555fb578fcf5a5a7b71e669b5 | /Mathlib/Algebra/Group/Defs.lean | 47ac7822a3a98fdbf8d3d79afc96e19b23467915 | [
"Apache-2.0"
] | permissive | denayd/mathlib4 | 750e0dcd106554640a1ac701e51517501a574715 | 7f40a5c514066801ab3c6d431e9f405baa9b9c58 | refs/heads/master | 1,693,743,991,894 | 1,636,618,048,000 | 1,636,618,048,000 | 373,926,241 | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 12,883 | lean | import Mathlib.Data.Nat.Basic -- *only* for notation ℕ which should be in a "prelude"
import Mathlib.Data.Int.Basic -- *only* for notation ℤ which should be in a "prelude"
import Mathlib.Tactic.Spread
/-!
# Typeclasses for monoids and groups etc
-/
local macro "ofNat_class" Class:ident n:num : command =>
let field ... |
3a8f7a9d0e0a1fe8daeaf41f52bbec2cd846f11e | 8cae430f0a71442d02dbb1cbb14073b31048e4b0 | /src/algebra/ring/ulift.lean | ea974bbd8c39e125cee2e490aaf16de24b99c856 | [
"Apache-2.0"
] | permissive | leanprover-community/mathlib | 56a2cadd17ac88caf4ece0a775932fa26327ba0e | 442a83d738cb208d3600056c489be16900ba701d | refs/heads/master | 1,693,584,102,358 | 1,693,471,902,000 | 1,693,471,902,000 | 97,922,418 | 1,595 | 352 | Apache-2.0 | 1,694,693,445,000 | 1,500,624,130,000 | Lean | UTF-8 | Lean | false | false | 4,386 | lean | /-
Copyright (c) 2020 Scott Morrison. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Scott Morrison
-/
import algebra.group.ulift
import algebra.ring.equiv
/-!
# `ulift` instances for ring
> THIS FILE IS SYNCHRONIZED WITH MATHLIB4.
> Any changes to this file require ... |
6630cd86f5ed9ebce7a8631bc96de27a97481ea6 | 5a5e1bb8063d7934afac91f30aa17c715821040b | /lean3SOS/src/util/parser.lean | 9b93ab5e2aa2906ee94835a110a5d5826b726210 | [] | no_license | ramonfmir/leanSOS | 1883392d73710db5c6e291a2abd03a6c5b44a42b | 14b50713dc887f6d408b7b2bce1f8af5bb619958 | refs/heads/main | 1,683,348,826,105 | 1,622,056,982,000 | 1,622,056,982,000 | 341,232,766 | 1 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 2,370 | lean | import data.matrix.basic
import data.real.basic
import data.mv_polynomial.basic
import tactic.fin_cases
import float.basic
open lean.parser tactic interactive
-- Parsing strings.
private meta def parse_dim_aux : char → ℕ
| '1' := 1
| '2' := 2
| '3' := 3
| '4' := 4
| _ := 0 -- and so on
meta def parse_dim : strin... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.