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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
852047d935e40b35836758c828661078096174b8 | b70031c8e2c5337b91d7e70f1e0c5f528f7b0e77 | /src/analysis/complex/basic.lean | d3cb0d50054524c44d0584b12b54c2f1e232de2b | [
"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 | 7,848 | lean | /-
Copyright (c) Sébastien Gouëzel. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Sébastien Gouëzel
-/
import analysis.calculus.times_cont_diff
import analysis.normed_space.finite_dimension
/-!
# Normed space structure on `ℂ`.
This file gathers basic facts on comple... |
29d758804758b08a68ffb8135d57ee82716a74a1 | 8e2026ac8a0660b5a490dfb895599fb445bb77a0 | /tests/lean/assertion1.lean | b14428f2367f7d156fbe3adc9f93b8e0832afa3f | [
"Apache-2.0"
] | permissive | pcmoritz/lean | 6a8575115a724af933678d829b4f791a0cb55beb | 35eba0107e4cc8a52778259bb5392300267bfc29 | refs/heads/master | 1,607,896,326,092 | 1,490,752,175,000 | 1,490,752,175,000 | 86,612,290 | 0 | 0 | null | 1,490,809,641,000 | 1,490,809,641,000 | null | UTF-8 | Lean | false | false | 1,266 | lean | universe variables u v
structure Category :=
(Obj : Type u)
(Hom : Obj → Obj → Type v)
universe variables u1 v1 u2 v2
structure Functor (C : Category.{ u1 v1 }) (D : Category.{ u2 v2 }) :=
(onObjects : C^.Obj → D^.Obj)
@[reducible] definition ProductCategory (C : Category) (D : Category) :
Category :=
{... |
a56f9503bdb8b0ac12a6b53f88684f473c9f2761 | 82e44445c70db0f03e30d7be725775f122d72f3e | /archive/100-theorems-list/57_herons_formula.lean | 22d93abc0f33f9bb82697afc34518f3842556329 | [
"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 | 2,835 | lean | /-
Copyright (c) 2021 Matt Kempster. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Matt Kempster
-/
import geometry.euclidean.triangle
import analysis.special_functions.trigonometric
/-!
# Freek № 57: Heron's Formula
This file proves Theorem 57 from the [100 Theorem... |
797b24bacd544216b8e97ef1c37ea59ee06808d4 | 556aeb81a103e9e0ac4e1fe0ce1bc6e6161c3c5e | /src/starkware/cairo/lean/semantics/util.lean | 0c766c6018f16fd6776024fb5fd59b590e90ce77 | [
"Apache-2.0"
] | permissive | starkware-libs/formal-proofs | d6b731604461bf99e6ba820e68acca62a21709e8 | f5fa4ba6a471357fd171175183203d0b437f6527 | refs/heads/master | 1,691,085,444,753 | 1,690,507,386,000 | 1,690,507,386,000 | 410,476,629 | 32 | 9 | Apache-2.0 | 1,690,506,773,000 | 1,632,639,790,000 | Lean | UTF-8 | Lean | false | false | 15,663 | lean | import field_theory.finite.basic
import data.bitvec.basic
import algebra.group_with_zero
import tactic.omega
open_locale big_operators
/-
bool
-/
attribute [simp] bool.to_nat
/-
int
-/
namespace int
lemma abs_le_of_dvd {i j : int} (h : i ∣ j) (h' : 0 < j) : abs i ≤ j :=
int.le_of_dvd h' ((abs_dvd _ _).mpr h)
the... |
351dd733c65cf3f3cce69ee62656b0937af474d1 | 74addaa0e41490cbaf2abd313a764c96df57b05d | /Mathlib/data/hash_map.lean | c8e74a0a1b01b6f572613ca2e799c10f29337fb4 | [] | 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 | 19,355 | lean | /-
Copyright (c) 2017 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Leonardo de Moura, Mario Carneiro
-/
import Mathlib.PrePort
import Mathlib.Lean3Lib.init.default
import Mathlib.data.pnat.basic
import Mathlib.data.list.range
import Mathlib.dat... |
d805969900ab78c51e07fa666a6a5e12ecae685a | 8cae430f0a71442d02dbb1cbb14073b31048e4b0 | /src/data/pfunctor/univariate/M.lean | 3090f1d746cf8521f2376ff444a4e03873755bd4 | [
"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,106 | lean | /-
Copyright (c) 2017 Simon Hudon All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Simon Hudon
-/
import data.pfunctor.univariate.basic
/-!
# M-types
> THIS FILE IS SYNCHRONIZED WITH MATHLIB4.
> Any changes to this file require a corresponding PR to mathlib4.
M types ... |
b051d688f5df28e91d20570029a0bebc7f52e57f | 302c785c90d40ad3d6be43d33bc6a558354cc2cf | /src/category_theory/monad/basic.lean | bf381046a61ad54a8ae02d92fc9abeed3ad4292f | [
"Apache-2.0"
] | permissive | ilitzroth/mathlib | ea647e67f1fdfd19a0f7bdc5504e8acec6180011 | 5254ef14e3465f6504306132fe3ba9cec9ffff16 | refs/heads/master | 1,680,086,661,182 | 1,617,715,647,000 | 1,617,715,647,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 8,306 | 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, Adam Topaz
-/
import category_theory.functor_category
import category_theory.fully_faithful
namespace category_theory
open category
universes v₁ u₁ -- m... |
cc20999345e6f624ae5f833c9ee263fdb6d0dda1 | 4e0d7c3132ce31edc5829849735dd25db406b144 | /lean/love11_logical_foundations_of_mathematics_exercise_sheet.lean | fceab15391ba0ff5d794c806220c80738516b03d | [] | no_license | gonzalgu/logical_verification_2020 | a0013a6c22ea254e9f4d245f2948f0f4d44df4bb | 724d0457dff2c3ff10f9ab2170388f4c5e958b75 | refs/heads/master | 1,660,886,374,533 | 1,589,859,641,000 | 1,589,859,641,000 | 256,069,971 | 0 | 0 | null | 1,586,997,430,000 | 1,586,997,429,000 | null | UTF-8 | Lean | false | false | 3,142 | lean | import .love11_logical_foundations_of_mathematics_demo
/-! # LoVe Exercise 11: Logical Foundations of Mathematics -/
set_option pp.beta true
namespace LoVe
/-! ## Question 1: Vectors as Subtypes
Recall the definition of vectors from the demo: -/
#check vector
/-! The following function adds two lists of integ... |
1d751ec5d127fa4fce362c693f91d9865db4878b | d1a52c3f208fa42c41df8278c3d280f075eb020c | /tests/lean/run/sharecommon.lean | 3e8117d79679a03bea976ff8af7c22207eaa65d3 | [
"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,913 | lean | import Std.ShareCommon
open Std
def check (b : Bool) : ShareCommonT IO Unit := do
unless b do throw $ IO.userError "check failed"
unsafe def tst1 : ShareCommonT IO Unit := do
let x := [1]
let y := [0].map (fun x => x + 1)
check $ ptrAddrUnsafe x != ptrAddrUnsafe y
let x ← shareCommonM x
let y ← shareCommonM y
check $... |
c9c9143f764c78d58fc93101ca95958cd4b5984b | 274748215b6d042f0d9c9a505f9551fa8e0c5f38 | /src/affine_algebraic_set/basic.lean | 3b7def334df27fba4b05b8aecebe96999197e51d | [
"Apache-2.0"
] | permissive | ImperialCollegeLondon/M4P33 | 878ecb515c77d20cc799ff1ebd78f1bf4fd65c12 | 1a179372db71ad6802d11eacbc1f02f327d55f8f | refs/heads/master | 1,607,519,867,193 | 1,583,344,297,000 | 1,583,344,297,000 | 233,316,107 | 59 | 4 | Apache-2.0 | 1,579,285,778,000 | 1,578,788,367,000 | Lean | UTF-8 | Lean | false | false | 4,764 | lean | /-
Copyright (c) 2020 Kevin Buzzard
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Kevin Buzzard, and whoever else wants to join in.
-/
import data.mv_polynomial
-- We want to be able to talk about V ⊆ W if V and W are affine algebraic sets
-- We will need import order.lattice at some po... |
55bae8f4e962bc266628bd34ed48a4e5e90474e4 | 8cae430f0a71442d02dbb1cbb14073b31048e4b0 | /src/geometry/manifold/algebra/smooth_functions.lean | 47e08e8c88e995b8d129001184a345a37951a9ec | [
"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 | 13,489 | lean | /-
Copyright © 2020 Nicolò Cavalleri. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Nicolò Cavalleri
-/
import geometry.manifold.algebra.structures
/-!
# Algebraic structures over smooth functions
> THIS FILE IS SYNCHRONIZED WITH MATHLIB4.
> Any changes to this fil... |
c3a50e1b6cda6b4cbb5a2629461b406d34648a32 | 9028d228ac200bbefe3a711342514dd4e4458bff | /src/measure_theory/giry_monad.lean | 0e16bb4b9a0aa0e95e204b5288ca22dfba99e451 | [
"Apache-2.0"
] | permissive | mcncm/mathlib | 8d25099344d9d2bee62822cb9ed43aa3e09fa05e | fde3d78cadeec5ef827b16ae55664ef115e66f57 | refs/heads/master | 1,672,743,316,277 | 1,602,618,514,000 | 1,602,618,514,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 8,205 | 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
-/
import measure_theory.integration
/-!
# The Giry monad
Let X be a measurable space. The collection of all measures on X again
forms a measurable space. This constru... |
1649e11355bb60bad429f610853c3dbcfc003469 | 5d166a16ae129621cb54ca9dde86c275d7d2b483 | /library/init/meta/transfer.lean | a60883e6b972fec978489218826c8298e0d20bbf | [
"Apache-2.0"
] | permissive | jcarlson23/lean | b00098763291397e0ac76b37a2dd96bc013bd247 | 8de88701247f54d325edd46c0eed57aeacb64baf | refs/heads/master | 1,611,571,813,719 | 1,497,020,963,000 | 1,497,021,515,000 | 93,882,536 | 1 | 0 | null | 1,497,029,896,000 | 1,497,029,896,000 | null | UTF-8 | Lean | false | false | 7,529 | 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 (CMU)
-/
prelude
import init.meta.tactic init.meta.match_tactic init.relator init.meta.mk_dec_eq_instance
import init.data.list.instances
namespace transfer
open tactic ... |
512aee7143e74806a4dd9ca7629a3209a87fc8bb | 7cef822f3b952965621309e88eadf618da0c8ae9 | /src/tactic/tidy.lean | 979ab8907238eb9268a7bc7a27071b46af70efe4 | [
"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 | 3,619 | lean | /-
Copyright (c) 2017 Scott Morrison. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Scott Morrison
-/
import tactic.ext
import tactic.auto_cases
import tactic.chain
import tactic.solve_by_elim
import tactic.interactive
namespace tactic
namespace tidy
meta def tidy_a... |
31443891b1a33b2c5012bd4f83da6781cff8dc75 | cf39355caa609c0f33405126beee2739aa3cb77e | /tests/lean/run/1790.lean | c27e48df951672e448a4af8fa39025069e27ddd7 | [
"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 | 125 | lean | universes u
def foo (α : Type u) : unit → unit
| unit.star := unit.star
def foo2 (α : Type u) : unit → unit
| s := s
|
01505b4a29560f8ed822287c7c8c3d29aa4cf489 | 367134ba5a65885e863bdc4507601606690974c1 | /src/data/quaternion.lean | 8b481c51f1ec1c6d320a01617ae76a219759e5cd | [
"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 | 21,078 | 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 tactic.ring_exp
import algebra.algebra.basic
import algebra.opposites
import data.equiv.ring
/-!
# Quaternions
In this file we define quaternions `ℍ[R]` ov... |
5fd9ce1030eaa7bdd7df5dd2b61b1b927d989610 | 8cae430f0a71442d02dbb1cbb14073b31048e4b0 | /src/measure_theory/function/floor.lean | 1f7c974ad0c6e8ebd3015311b9c0bad162c3d4e0 | [
"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,967 | lean | /-
Copyright (c) 2021 Yury G. Kudryashov. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Yury G. Kudryashov
-/
import measure_theory.constructions.borel_space.basic
/-!
# Measurability of `⌊x⌋` etc
> THIS FILE IS SYNCHRONIZED WITH MATHLIB4.
> Any changes to this file... |
af7b5f9ef481c7df8ded542ab7b74b4683e58625 | fa02ed5a3c9c0adee3c26887a16855e7841c668b | /src/tactic/omega/coeffs.lean | 0042b173025618c928302cb6b1d1f6f15bb66ce0 | [
"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 | 10,614 | lean | /-
Copyright (c) 2019 Seul Baek. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Seul Baek
-/
/-
Non-constant terms of linear constraints are represented
by storing their coefficients in integer lists.
-/
import data.list.func
import tactic.ring
import tactic.omega.mi... |
a5ccaecca026425e425906ad9b354c1c3855de05 | 5bcdf53ae59d93bf05c4a6b7780107f9bba8a987 | /3_InductiveTypes.lean | e7c8b4efb2f68fa902125b01b649be6c915a83e5 | [] | no_license | joshpoll/CPDT-examples-in-Lean | 3241734e80c8507934a9fbf2ddfed9eedc1ed27b | 287aebec9a4a9dc4a07b8e4cc885c81afe400f1a | refs/heads/master | 1,611,267,038,438 | 1,498,610,301,000 | 1,498,610,301,000 | 95,181,904 | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 8,166 | lean | import mini_crush
namespace hide
-- *Introducing Inductive Types
-- **Proof Terms
#check (fun x : ℕ, x)
#check (fun x : true, x)
#check true.intro
#check (λ _ : false, true.intro)
#check (λ x : false, x)
-- **Enumerations
-- unit
inductive unit : Type
| tt
#check unit
#check unit.tt
theorem unit_singleton_ver... |
5a40eb494c1218809b758fee5419ca78e51bef59 | b82c5bb4c3b618c23ba67764bc3e93f4999a1a39 | /src/formal_ml/classical_limit.lean | 7a0e6e72157f6a24703a214503d10035ebdbf455 | [
"Apache-2.0"
] | permissive | nouretienne/formal-ml | 83c4261016955bf9bcb55bd32b4f2621b44163e0 | 40b6da3b6e875f47412d50c7cd97936cb5091a2b | refs/heads/master | 1,671,216,448,724 | 1,600,472,285,000 | 1,600,472,285,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 32,280 | lean | /-
Copyright 2020 Google LLC
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
di... |
10a703814da899d9a3e45c8c86a17053abf25ea9 | bde6690019e9da475b0c91d5a066e0f6681a1179 | /library/standard/equality_test.lean | 4e8afef39720d6bcf711fc76d2abe2074346996e | [
"Apache-2.0"
] | permissive | leodemoura/libraries | ae67d491abc580407aa837d65736d515bec39263 | 14afd47544daa9520ea382d33ba7f6f05c949063 | refs/heads/master | 1,473,601,302,073 | 1,403,713,370,000 | 1,403,713,370,000 | 19,831,525 | 1 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 5,818 | lean | ----------------------------------------------------------------------------------------------------
--
-- playing with the axioms
--
----------------------------------------------------------------------------------------------------
import kernel
import macros
-- the natural axioms for equality, together with refl
... |
d8d53e44e5408e4793d689ea1fcd5fc55c7b4678 | 4d2583807a5ac6caaffd3d7a5f646d61ca85d532 | /src/category_theory/whiskering.lean | 9d6aa2cc71e00cf94a03300cd5b25293f5b1ed24 | [
"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 | 8,128 | lean | /-
Copyright (c) 2018 Scott Morrison. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Scott Morrison
-/
import category_theory.natural_isomorphism
/-!
# Whiskering
Given a functor `F : C ⥤ D` and functors `G H : D ⥤ E` and a natural transformation `α : G ⟶ H`,
we can... |
e7336e035ece0d26486d0d1874d0572af9de9f38 | b7f22e51856f4989b970961f794f1c435f9b8f78 | /tests/lean/run/subst_test2.lean | 1f4e550881756f8905b86fe032937cd00f4f401e | [
"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 | 444 | lean | import data.nat
open nat
structure less_than (n : nat) := (val : nat) (lt : val < n)
namespace less_than
open decidable
set_option pp.beta false
definition less_than.has_decidable_eq [instance] (n : nat) : ∀ (i j : less_than n), decidable (i = j)
| (mk ival ilt) (mk jval jlt) :=
match nat.has_decidable_eq ival jv... |
50087bcf9ab9fa107104e99f8c193413080a0aaa | 4727251e0cd73359b15b664c3170e5d754078599 | /src/set_theory/surreal/basic.lean | 8a2e6482a5bf247b81c286d1c9db1e1805e62920 | [
"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 | 14,188 | lean | /-
Copyright (c) 2019 Mario Carneiro. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Mario Carneiro, Scott Morrison
-/
import set_theory.game.pgame
/-!
# Surreal numbers
The basic theory of surreal numbers, built on top of the theory of combinatorial (pre-)games.
A ... |
9bcd256bbb3ef121351d3e98857a152198f2fb0f | 50b3917f95cf9fe84639812ea0461b38f8f0dbe1 | /canonical_isomorphism/sheaf_canonical.lean | 14a6180a1c878c111c506feb24e93c17f36950ed | [] | 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 | 7,638 | lean | import data.equiv
-- recall the interface for equiv:
-- C : equiv α β;
-- the function is C, the function the other way is C.symm, which is also the equiv the other way
-- and the proofs are C.inverse_apply_apply and C.apply_inverse_apply
universes u v w x
-- category of foos
definition is_foo (α : Type u) : Prop :=... |
3ab1b4860a3987c83554961889136743e3993740 | d26814d9437130e14d6d016c92d8c436b6dc62f3 | /icat.hlean | 772fc39bb9c165e41a4e50af26aa35f008ad06f2 | [] | no_license | jonas-frey/segal | 92fb5a556c164d4e9e864f2da1258be5a6482af8 | 64b4ec62ec5f293b781d5bbfea5a6b0997558c13 | refs/heads/master | 1,594,256,935,764 | 1,566,490,351,000 | 1,566,490,351,000 | 203,831,654 | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 16,130 | hlean | import hit.pushout hit.trunc arity my_prelude prop_join
ifin vector types.sigma
open trunc is_trunc nat pi prod function is_equiv ifin pushout equiv
eq vector sigma prod.ops trunc sigma.ops bool
universe u
definition tpower : Type.{0} → ℕ → Type.{0}
:= begin intros A n, induction n with n R, exact u... |
07dba0cc9f5ce9941c0dd53e3668e3e2b2860134 | 74addaa0e41490cbaf2abd313a764c96df57b05d | /Mathlib/algebra/big_operators/default.lean | 93732f096814c9c164468de4a4f19d9720651a5c | [] | 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 | 417 | lean | import Mathlib.PrePort
import Mathlib.Lean3Lib.init.default
import Mathlib.algebra.big_operators.order
import Mathlib.algebra.big_operators.intervals
import Mathlib.algebra.big_operators.ring
import Mathlib.algebra.big_operators.pi
import Mathlib.algebra.big_operators.finsupp
import Mathlib.algebra.big_operators.nat_an... |
6b09808d26c1d6459cb89563018c23b923804d69 | e61a235b8468b03aee0120bf26ec615c045005d2 | /src/Init/Data/Array/Basic.lean | 9cae7da3277f4d0ebab3634656d0adb8786134f1 | [
"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 | 24,832 | 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.Nat.Basic
import Init.Data.Fin.Basic
import Init.Data.UInt
import Init.Data.Repr
import Init.Data.ToString
import Init.Control.Id
i... |
809e0949723a8c44058dd51b4accaececa62ca46 | fa02ed5a3c9c0adee3c26887a16855e7841c668b | /src/data/nat/enat.lean | 958b4737bb7568b01375ff86f7af7123a8c9268c | [
"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 | 18,816 | 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 data.pfun
import tactic.norm_num
import data.equiv.mul_add
/-!
# Natural numbers with infinity
The natural numbers and an extra `top` element `⊤`.
## Main defin... |
b425fdbf29efa7dba63f2521db939d90bdceb9c2 | 55c7fc2bf55d496ace18cd6f3376e12bb14c8cc5 | /src/topology/basic.lean | a5198c676840ce5829513ba5163a8f2bf4e1dada | [
"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 | 44,265 | 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, Jeremy Avigad
-/
import order.filter.ultrafilter
import order.filter.partial
import order.filter.bases
/-!
# Basic theory of topological spaces.
The m... |
34862e689ee2a16fcbba2dcd831c826f9c910930 | 432d948a4d3d242fdfb44b81c9e1b1baacd58617 | /src/analysis/calculus/lagrange_multipliers.lean | 19499de7a05f145dc7135084a18527353ea8fc1f | [
"Apache-2.0"
] | permissive | JLimperg/aesop3 | 306cc6570c556568897ed2e508c8869667252e8a | a4a116f650cc7403428e72bd2e2c4cda300fe03f | refs/heads/master | 1,682,884,916,368 | 1,620,320,033,000 | 1,620,320,033,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 6,766 | lean | /-
Copyright (c) 2021 Yury Kudryashov. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Yury Kudryashov
-/
import analysis.calculus.local_extr
import analysis.calculus.implicit
/-!
# Lagrange multipliers
In this file we formalize the
[Lagrange multipliers](https://en.w... |
3f911bf149803463c240fd11691b1f99e587168a | 3dd1b66af77106badae6edb1c4dea91a146ead30 | /tests/lean/run/ind5.lean | 77a65d18bd58d5a54e2512d46eb99a8c11632cb3 | [
"Apache-2.0"
] | permissive | silky/lean | 79c20c15c93feef47bb659a2cc139b26f3614642 | df8b88dca2f8da1a422cb618cd476ef5be730546 | refs/heads/master | 1,610,737,587,697 | 1,406,574,534,000 | 1,406,574,534,000 | 22,362,176 | 1 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 191 | lean | definition Prop [inline] : Type.{1} := Type.{0}
inductive or (A B : Prop) : Prop :=
| or_intro_left : A → or A B
| or_intro_right : B → or A B
check or
check or_intro_left
check or_rec |
c46dd0f79fa5e15f15a596702ba70c213a293d80 | e61a235b8468b03aee0120bf26ec615c045005d2 | /stage0/src/Init/Lean/Compiler/IR/Checker.lean | 9a763aa92d3c0c37bd1838c65a241f4b24ceff4a | [
"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,638 | 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
-/
prelude
import Init.Lean.Compiler.IR.CompilerM
import Init.Lean.Compiler.IR.Format
namespace Lean
namespace IR
namespace Checker
structure CheckerContext... |
1075e016c369662a3dbf7af482537bb4ec342de7 | 2eab05920d6eeb06665e1a6df77b3157354316ad | /src/algebra/module/submodule_lattice.lean | 3f1c3acc74c1b4a3d37e34ac82d32030bfa77068 | [
"Apache-2.0"
] | permissive | ayush1801/mathlib | 78949b9f789f488148142221606bf15c02b960d2 | ce164e28f262acbb3de6281b3b03660a9f744e3c | refs/heads/master | 1,692,886,907,941 | 1,635,270,866,000 | 1,635,270,866,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 8,788 | 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, Kevin Buzzard, Yury Kudryashov
-/
import algebra.module.submodule
import algebra.punit_instances
/-!
# The lattice structure on `submodule`s
This file... |
5969b2f58742075cc79c20330ef8dd9560a801f0 | a45212b1526d532e6e83c44ddca6a05795113ddc | /src/tactic/omega/prove_unsats.lean | 12d317591e0a05c45f06fe0f176a0c669b22c2cd | [
"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 | 1,841 | lean | /-
Copyright (c) 2019 Seul Baek. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Author: Seul Baek
A tactic which constructs exprs to discharge
goals of the form `clauses.unsat cs`.
-/
import tactic.omega.find_ees
import tactic.omega.find_scalars
import tactic.omega.lin_comb... |
ac350eaf5f6f63910ca95ab523653d6962e63e6b | 57c233acf9386e610d99ed20ef139c5f97504ba3 | /src/algebra/big_operators/finsupp.lean | 74ff7980abf3870fc2686bc6560464b904f96790 | [
"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,621 | lean | /-
Copyright (c) 2020 Kenny Lau. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Kenny Lau
-/
import data.finsupp.basic
import algebra.big_operators.pi
import algebra.big_operators.ring
/-!
# Big operators for finsupps
This file contains theorems relevant to big oper... |
6c0d86ccc24a44fce8f5b1d4270974fd13d63593 | 4727251e0cd73359b15b664c3170e5d754078599 | /src/ring_theory/polynomial/scale_roots.lean | 5c7d9c18bed7cf5e667e845469e8104227546121 | [
"Apache-2.0"
] | permissive | Vierkantor/mathlib | 0ea59ac32a3a43c93c44d70f441c4ee810ccceca | 83bc3b9ce9b13910b57bda6b56222495ebd31c2f | refs/heads/master | 1,658,323,012,449 | 1,652,256,003,000 | 1,652,256,003,000 | 209,296,341 | 0 | 1 | Apache-2.0 | 1,568,807,655,000 | 1,568,807,655,000 | null | UTF-8 | Lean | false | false | 5,192 | lean | /-
Copyright (c) 2020 Anne Baanen. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Anne Baanen, Devon Tuma
-/
import ring_theory.non_zero_divisors
import data.polynomial.algebra_map
/-!
# Scaling the roots of a polynomial
This file defines `scale_roots p s` for a pol... |
fa866c0ccb46cfb4a2f739dd115b033347b8e567 | 4727251e0cd73359b15b664c3170e5d754078599 | /src/algebra/big_operators/pi.lean | 782beadf6e664412a4ca8e0d7f2675446ba92b96 | [
"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,871 | lean | /-
Copyright (c) 2018 Simon Hudon. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Simon Hudon, Patrick Massot
-/
import algebra.big_operators.basic
import algebra.ring.pi
/-!
# Big operators for Pi Types
This file contains theorems relevant to big operators in binary... |
27b402bddcbe20f6acc508164444c7a2278cec32 | c3f2fcd060adfa2ca29f924839d2d925e8f2c685 | /tests/lean/run/one.lean | fbc8a71ca76dedfda505045d3ea23ca9c329325f | [
"Apache-2.0"
] | permissive | respu/lean | 6582d19a2f2838a28ecd2b3c6f81c32d07b5341d | 8c76419c60b63d0d9f7bc04ebb0b99812d0ec654 | refs/heads/master | 1,610,882,451,231 | 1,427,747,084,000 | 1,427,747,429,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 326 | lean | inductive one.{l} : Type.{max 1 l} :=
unit : one.{l}
set_option pp.universes true
check one
inductive one2.{l} : Type.{max 1 l} :=
unit : one2
check one2
context foo
universe l2
parameter A : Type.{l2}
inductive wrapper.{l} : Type.{max 1 l l2} :=
mk : A → wrapper.{l2 l}
check wrapper
end foo
check wrap... |
3b675c52435417a45edffb33e88440551a71a18c | 95dcf8dea2baf2b4b0a60d438f27c35ae3dd3990 | /src/analysis/specific_limits.lean | 7cc154757c540d76a4847c9361ad60c8cc256fc4 | [
"Apache-2.0"
] | permissive | uniformity1/mathlib | 829341bad9dfa6d6be9adaacb8086a8a492e85a4 | dd0e9bd8f2e5ec267f68e72336f6973311909105 | refs/heads/master | 1,588,592,015,670 | 1,554,219,842,000 | 1,554,219,842,000 | 179,110,702 | 0 | 0 | Apache-2.0 | 1,554,220,076,000 | 1,554,220,076,000 | null | UTF-8 | Lean | false | false | 7,018 | 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
A collection of specific limit computations.
-/
import analysis.normed_space.basic
import topology.instances.ennreal
noncomputable theory
local attribute [instance] cl... |
db08c4fd5ca24d642000bf62c493695ebc1735b6 | 8c02fed42525b65813b55c064afe2484758d6d09 | /src/main.lean | e37a6a6ca20ceced63df73d3266271842310269d | [
"LicenseRef-scancode-generic-cla",
"MIT"
] | permissive | microsoft/AliveInLean | 3eac351a34154efedd3ffc4fe2fa4ec01b219e0d | 4b739dd6e4266b26a045613849df221374119871 | refs/heads/master | 1,691,419,737,939 | 1,689,365,567,000 | 1,689,365,568,000 | 131,156,103 | 23 | 18 | NOASSERTION | 1,660,342,040,000 | 1,524,747,538,000 | Lean | UTF-8 | Lean | false | false | 6,093 | lean | -- Copyright (c) Microsoft Corporation. All rights reserved.
-- Licensed under the MIT license.
import system.io
import system.random
import .freevar
import .langparser
import .lang
import .lang_tostr
import .irsem
import .irsem_smt
import .irsem_exec
import .irtype
import .vcgen
import .verifyopt
import smt2.solvers.... |
902d58fb5eb679de388e29189f7dfddb2f6a5d68 | fa02ed5a3c9c0adee3c26887a16855e7841c668b | /src/category_theory/abelian/pseudoelements.lean | 406c9ea56766c55e136aa74e4749db5ddf8752bb | [
"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 | 18,539 | 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 category_theory.abelian.exact
import category_theory.over
/-!
# Pseudoelements in abelian categories
A *pseudoelement* of an object `X` in an abelian category ... |
c95abb95b48cdecadc1c4a77161e377ba07c4f21 | 94e33a31faa76775069b071adea97e86e218a8ee | /src/model_theory/basic.lean | 4b4bcf682c69b094f18ea0ad55cbff5dd5a5294d | [
"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 | 29,884 | lean | /-
Copyright (c) 2021 Aaron Anderson, Jesse Michael Han, Floris van Doorn. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Aaron Anderson, Jesse Michael Han, Floris van Doorn
-/
import category_theory.concrete_category.bundled
import data.fin.tuple.basic
import data.fin... |
c7a5d40b23c89f3f54edca86ea7d92fea2e1bec7 | 367134ba5a65885e863bdc4507601606690974c1 | /src/measure_theory/lebesgue_measure.lean | ea3d83cd84ab1bf62d1e52ca970ae8aa73939bd9 | [
"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 | 21,984 | 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, Yury Kudryashov
-/
import measure_theory.pi
/-!
# Lebesgue measure on the real line and on `ℝⁿ`
-/
noncomputable theory
open classical set filter
open ennreal (of_rea... |
34f65a12498654ef9cdf3a9efcd3560ad39cd187 | bb31430994044506fa42fd667e2d556327e18dfe | /src/data/set/pointwise/finite.lean | 48814b4e7cc3f6c608bb3072c88479084fa80a0c | [
"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 | 3,749 | 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 data.set.finite
import data.set.pointwise.smul
/-! # Finiteness lemmas for pointwise operations on sets -/
open_locale pointwise
variables... |
f0aacf284ff216d58ea170699c8dc456aedc56e8 | fa02ed5a3c9c0adee3c26887a16855e7841c668b | /src/category_theory/linear/default.lean | 67e77659dc42abb453ad91a6bdb18a02787eec76 | [
"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,322 | 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 category_theory.preadditive
import algebra.module.linear_map
import algebra.invertible
import linear_algebra.basic
import algebra.algebra.basic
/-!
# Linear c... |
0099aa895f5c2beb68006071848c5bc5a8d8b0ce | 4727251e0cd73359b15b664c3170e5d754078599 | /test/abel.lean | 5cb28d799f150775f7fd6dc465bda022f11cc7f7 | [
"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 | 909 | lean | import tactic.abel
variables {α : Type*} {a b : α}
example [add_comm_monoid α] : a + (b + a) = a + a + b := by abel
example [add_comm_group α] : (a + b) - ((b + a) + a) = -a := by abel
example [add_comm_group α] (x : α) : x - 0 = x := by abel
example [add_comm_monoid α] (x : α) : (3 : ℕ) • a = a + (2 : ℕ) • a := by ab... |
ab29e6f6ff33e5d4d27a5053e97aec67e51f7227 | 3446e92e64a5de7ed1f2109cfb024f83cd904c34 | /src/game/world2/level5.lean | 5c482cf36b12cb2556b4596a425f3281851be2b5 | [] | no_license | kckennylau/natural_number_game | 019f4a5f419c9681e65234ecd124c564f9a0a246 | ad8c0adaa725975be8a9f978c8494a39311029be | refs/heads/master | 1,598,784,137,722 | 1,571,905,156,000 | 1,571,905,156,000 | 218,354,686 | 0 | 0 | null | 1,572,373,319,000 | 1,572,373,318,000 | null | UTF-8 | Lean | false | false | 1,482 | lean | import mynat.definition -- hide
import mynat.add -- hide
import game.world2.level4 -- hide
namespace mynat -- hide
/-
# World 2 -- Addition World
## Level 5 -- `succ_eq_add_one`
You have these:
* `zero_ne_succ : ∀ (a : mynat), zero ≠ succ(a)`
* `succ_inj : ∀ a b : mynat, succ(a) = succ(b) → a = b`
* `add_zer... |
3c1be4a33d8eaa4c7888dcff20d1e8df9b07957d | a339bc2ac96174381fb610f4b2e1ba42df2be819 | /hott/cubical/square.hlean | 5079e793802d9f9eebfb0a3763433e4ebc458c86 | [
"Apache-2.0"
] | permissive | kalfsvag/lean2 | 25b2dccc07a98e5aa20f9a11229831f9d3edf2e7 | 4d4a0c7c53a9922c5f630f6f8ebdccf7ddef2cc7 | refs/heads/master | 1,610,513,122,164 | 1,483,135,198,000 | 1,483,135,198,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 30,852 | hlean | /-
Copyright (c) 2015 Floris van Doorn. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Floris van Doorn, Jakob von Raumer
Squares in a type
-/
import types.eq
open eq equiv is_equiv sigma
namespace eq
variables {A B : Type} {a a' a'' a₀₀ a₂₀ a₄₀ a₀₂ a₂₂ a₂₄ a₀₄ a₄... |
8e3e7463ad75304be9d264425f0d61f65b7ef3f8 | 1169362316cbb36a5f4ae286e8419e4e5163f569 | /src/misc/encodable2.lean | 43cf75efe2147fb110c9cf0f6f0bd5c9498fac02 | [] | no_license | fpvandoorn/formal_logic | 21687f7e621fdd9124a06a5b3a5a9c5a6ae40cc6 | adbe6d70399310842525ff05ff97e29f30dd4282 | refs/heads/master | 1,585,666,688,414 | 1,539,046,655,000 | 1,539,046,655,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 4,474 | lean | import data.encodable data.fin
/-
`Wfin α ar` is the type of finitely branching trees with labels from α, where
a node labeled `a` has `ar a` children.
-/
inductive Wfin {α : Type*} (ar : α → ℕ)
| mk (a : α) (f : fin (ar a) → Wfin) : Wfin
namespace Wfin
variables {α : Type*} {ar : α → ℕ}
def depth : Wfin ar → ℕ ... |
c88e45eb1072afc19df36cd82183f6a3b5399c8f | 9dc8cecdf3c4634764a18254e94d43da07142918 | /archive/imo/imo1998_q2.lean | 3c897525b8abeef689ca78b1f3189b00a529f0f4 | [
"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 | 9,518 | 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 data.fintype.basic
import data.int.parity
import algebra.big_operators.order
import tactic.ring
import tactic.noncomm_ring
/-!
# IMO 1998 Q2
In a competition, there... |
73f600c427601e31ec75bd215a3ef5c5368bb093 | 9dd3f3912f7321eb58ee9aa8f21778ad6221f87c | /tests/lean/run/quote1.lean | e4b633f5524b00b9d07b8ccacec8a682f2709bfb | [
"Apache-2.0"
] | permissive | bre7k30/lean | de893411bcfa7b3c5572e61b9e1c52951b310aa4 | 5a924699d076dab1bd5af23a8f910b433e598d7a | refs/heads/master | 1,610,900,145,817 | 1,488,006,845,000 | 1,488,006,845,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 303 | lean | open tactic list
meta definition foo (a : pexpr) : pexpr :=
`(%%a + %%a + %%a + b)
example (a b : nat) : a = a :=
by do
a ← get_local `a,
t1 ← mk_app `add [a, a],
t2 ← to_expr (foo (to_pexpr t1)),
trace t2,
r ← mk_app (`eq.refl) [a],
exact r
private def f := unit
check ``f
|
09b4a196afa89b90640815cbaa1c43ef1b8cdc92 | 63abd62053d479eae5abf4951554e1064a4c45b4 | /src/category_theory/types.lean | d5a418ecfa63aa669c78abc78eb3abb78be3f291 | [
"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 | 10,625 | lean | /-
Copyright (c) 2017 Scott Morrison. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Stephen Morgan, Scott Morrison, Johannes Hölzl
-/
import category_theory.fully_faithful
import data.equiv.basic
/-!
# The category `Type`.
In this section we set up the theory so tha... |
fe05aab8ff7e813653fde01b66c30bc6fa375059 | 69d4931b605e11ca61881fc4f66db50a0a875e39 | /src/data/int/cast.lean | 9e1ccf1dfb07d3118e4ddb2c4fb43268f8941f18 | [
"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 | 10,556 | 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 data.int.basic
import data.nat.cast
open nat
namespace int
/- cast (injection into groups with one) -/
@[simp, push_cast] theorem nat_cast_eq_coe_nat : ∀ n... |
aeb3ef7ec884dab750dc2e4e68b3d7701cf3ec0f | 367134ba5a65885e863bdc4507601606690974c1 | /src/category_theory/sites/sheaf_of_types.lean | 95c8845dd586b97cba627d0093f211bb0dcc2706 | [
"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 | 35,527 | 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... |
7dc1729cfcc34ed66c671bc6b9589ebbc7c00624 | 6b2a480f27775cba4f3ae191b1c1387a29de586e | /group_rep1/matrix_representation_refondation.lean | 4d9303d7ffc3bfd50675bb6f28c7e11bc4b86d60 | [] | no_license | Or7ando/group_representation | a681de2e19d1930a1e1be573d6735a2f0b8356cb | 9b576984f17764ebf26c8caa2a542d248f1b50d2 | refs/heads/master | 1,662,413,107,324 | 1,590,302,389,000 | 1,590,302,389,000 | 258,130,829 | 0 | 1 | null | null | null | null | UTF-8 | Lean | false | false | 2,998 | lean | import linear_algebra.basic
import linear_algebra.basis
open linear_map
open is_basis
universe variables u v w
namespace classical_basis
set_option trace.simplify.rewrite true
variables {G : Type u} {R : Type v} [group G] [comm_ring R]
variables {X : Type w} [fintype X] [decidable_eq X]
/-!
Definition of classic... |
39058b46ad7c4757ac940554141bbe50de25e2d8 | cc5bb0a18c45fa529fc8bf0365b1fbf48464c5a8 | /library/init/meta/tactic.lean | a8031593fd431ca803ba33c8ff61267193fbd932 | [
"Apache-2.0"
] | permissive | mk12/lean | 6bb58b9f3cfe312236b41779478d345399f00918 | 092fc89333160661c4c5a6295f3054cafff4341e | refs/heads/master | 1,609,531,450,083 | 1,501,275,267,000 | 1,501,278,025,000 | 98,760,144 | 0 | 0 | null | 1,501,364,485,000 | 1,501,364,485,000 | null | UTF-8 | Lean | false | false | 47,034 | lean | /-
Copyright (c) 2016 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Leonardo de Moura
-/
prelude
import init.function init.data.option.basic init.util
import init.category.combinators init.category.monad init.category.alternative init.category.m... |
68a6f249cb4552377f3f720d16dac7d2056f0818 | fce460f0bcc5b026e1889739f7cd993d3ad95bbc | /src/first_file.lean | b8190f35d015134c966c1d86654207592ba8566b | [] | no_license | richardsouthwell/leanpractice | bea95ed6142998691409f4eb8c6577a6720de376 | 027f04835e975a1813c324feeec717304f9b065d | refs/heads/master | 1,671,477,356,658 | 1,602,257,419,000 | 1,602,257,419,000 | 302,679,208 | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 146 | lean | import data.real.basic
#check ℝ
#eval 8 + 8
-- https://www.youtube.com/watch?v=b59fpAJ8Mfs&list=PLlF-CfQhukNnxF1S22cNGKyfOrd380NUv&index=7
|
5ecf5500e7ffd5b5840c207bf8a1879a23c3a88d | 8d65764a9e5f0923a67fc435eb1a5a1d02fd80e3 | /src/data/set/lattice.lean | df468db4ae3899674813cdffdccc1928aab172bb | [
"Apache-2.0"
] | permissive | troyjlee/mathlib | e18d4b8026e32062ab9e89bc3b003a5d1cfec3f5 | 45e7eb8447555247246e3fe91c87066506c14875 | refs/heads/master | 1,689,248,035,046 | 1,629,470,528,000 | 1,629,470,528,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 58,944 | lean | /-
Copyright (c) 2014 Jeremy Avigad. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Jeremy Avigad, Leonardo de Moura, Johannes Hölzl, Mario Carneiro
-/
import data.nat.basic
import order.complete_boolean_algebra
import order.directed
import order.galois_connection
/-!... |
e46c48f344a044966679d98c620f01bf4d1a8ddb | c8b4b578b2fe61d500fbca7480e506f6603ea698 | /src/unused/tactic/may_assume.lean | 0d72420fae0e25097a0f7f5c08192720f88d8203 | [] | no_license | leanprover-community/flt-regular | aa7e564f2679dfd2e86015a5a9674a6e1197f7cc | 67fb3e176584bbc03616c221a7be6fa28c5ccd32 | refs/heads/master | 1,692,188,905,751 | 1,691,766,312,000 | 1,691,766,312,000 | 421,021,216 | 19 | 4 | null | 1,694,532,115,000 | 1,635,166,136,000 | Lean | UTF-8 | Lean | false | false | 5,557 | lean | import tactic
import data.nat.basic
import tactic.slim_check
/-
Example:
lemma ex (a b c : ℕ) (hab : a^2 + b^2 < c) : a + b < c :=
begin
may_assume h : a ≤ b,
{
-- state here is
-- (a b c : ℕ) (hab : a^2 + b^2 < c)
-- (this : ∀ (a b c : ℕ) (hab : a^2 + b^2 < c) (h : a ≤ b), a + b < c)
-- ⊢ a + b < c
},... |
a59e9004c0880f21aa616815dbb1e397ca2977d5 | d29d82a0af640c937e499f6be79fc552eae0aa13 | /src/algebra/algebra/subalgebra.lean | 9f116dca50f81f237b9211134c288c007af28637 | [
"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 | 30,581 | lean | /-
Copyright (c) 2018 Kenny Lau. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Kenny Lau, Yury Kudryashov
-/
import algebra.algebra.operations
/-!
# Subalgebras over Commutative Semiring
In this file we define `subalgebra`s and the usual operations on them (`map`, `... |
a840bf473d8c8a39202072e1bfae7389805b4700 | 82e44445c70db0f03e30d7be725775f122d72f3e | /src/data/complex/basic.lean | fa241583bda65096d12c954cc501ba10a8fad198 | [
"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,712 | lean | /-
Copyright (c) 2017 Kevin Buzzard. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Kevin Buzzard, Mario Carneiro
-/
import data.real.sqrt
/-!
# The complex numbers
The complex numbers are modelled as ℝ^2 in the obvious way and it is shown that they form a field
of c... |
6503b7ce34f7cccad7d6680ff609cfc9b49f7cb0 | a9d0fb7b0e4f802bd3857b803e6c5c23d87fef91 | /tests/lean/run/pp_unit.lean | 7da0045fbd277fad2198d3167ce859e8cb39689a | [
"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 | 57 | lean | check unit.star
check ()
set_option pp.all true
check ()
|
e935c0c75da7b1190de57e16c68af9bc3b4fd9c2 | 94e33a31faa76775069b071adea97e86e218a8ee | /src/topology/instances/ennreal.lean | e9ad2a2e5ff23ad13633d59225614acf5e6c1216 | [
"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 | 64,183 | 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 topology.instances.nnreal
import order.liminf_limsup
import topology.metric_space.lipschitz
import topology.algebra.order.monotone_continuity
/-!
# Extended no... |
d4b6aa276d995dc9dfab03c34b8216bc80da3a52 | 74addaa0e41490cbaf2abd313a764c96df57b05d | /Mathlib/data/nat/basic_auto.lean | d8a64d306786fb6deff28ebec383b7ed46024714 | [] | 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 | 59,661 | lean | /-
Copyright (c) 2014 Floris van Doorn (c) 2016 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Floris van Doorn, Leonardo de Moura, Jeremy Avigad, Mario Carneiro
-/
import Mathlib.PrePort
import Mathlib.Lean3Lib.init.default
import Mathlib.algebr... |
54b84d858896fc2e85225af48562e20b012fb2a7 | 82b86ba2ae0d5aed0f01f49c46db5afec0eb2bd7 | /src/Init/Data/Hashable.lean | b34c41c1654d2a514b3e96c61afabad1c7333009 | [
"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 | 787 | lean | /-
Copyright (c) 2016 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Leonardo de Moura
-/
prelude
import Init.Data.UInt
import Init.Data.String
universes u
instance : Hashable Nat := {
hash := fun n => USize.ofNat n
}
instance {α β} [Hashable... |
2ec85ccaaac04eccc9e0f34a954286abccabe45c | 74addaa0e41490cbaf2abd313a764c96df57b05d | /Mathlib/data/list/palindrome_auto.lean | e89bf1499fc482dd7a89191b6d9e38b4ca90b673 | [] | 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,884 | lean | /-
Copyright (c) 2020 Google LLC. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Chris Wong
-/
import Mathlib.PrePort
import Mathlib.Lean3Lib.init.default
import Mathlib.data.list.basic
import Mathlib.PostPort
universes u_1
namespace Mathlib
/-!
# Palindromes
This... |
30ab3e6ffc4b114aaeed541b5da971c7bceb5872 | 4d2583807a5ac6caaffd3d7a5f646d61ca85d532 | /src/category_theory/opposites.lean | d44a4cb43493a0aeeea996ab3a0836e976d7605a | [
"Apache-2.0"
] | permissive | AntoineChambert-Loir/mathlib | 64aabb896129885f12296a799818061bc90da1ff | 07be904260ab6e36a5769680b6012f03a4727134 | refs/heads/master | 1,693,187,631,771 | 1,636,719,886,000 | 1,636,719,886,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 15,695 | 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.types
import category_theory.equivalence
/-!
# Opposite categories
We provide a category instance on `Cᵒᵖ`.
The morphisms `X ... |
a7b33bd0baf28fcc2f140bf22c410bc592aee368 | fa02ed5a3c9c0adee3c26887a16855e7841c668b | /src/ring_theory/polynomial/chebyshev.lean | 2c2439b7f5d151e56b2ab040deb1ae3d08d67d18 | [
"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 | 11,067 | lean | /-
Copyright (c) 2020 Johan Commelin. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Johan Commelin, Julian Kuelshammer, Heather Macbeth
-/
import data.polynomial.derivative
import tactic.ring
/-!
# Chebyshev polynomials
The Chebyshev polynomials are two families of... |
c36b246712972efc33732c3ffeb6fc0b2ad995f6 | 82b86ba2ae0d5aed0f01f49c46db5afec0eb2bd7 | /stage0/src/Lean/Data/Json/Parser.lean | af895eef2d693ab14e6072523c66227222aaf7fe | [
"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 | 7,691 | 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
open Std (RBNode RBNode.singleton RBNode.leaf)
inductive Quickparse.Result (α : Type)
| success (pos : S... |
6e958f5b4631a01a4d0b90af681c2ab2bbda8f29 | 75db7e3219bba2fbf41bf5b905f34fcb3c6ca3f2 | /tests/lean/congr_lemma_bug.lean | 155a135fd5e15c9de9fb0ead908013bff19a0563 | [
"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 | 114 | lean | constant P : Type₁
constant P_sub : subsingleton P
attribute P_sub [instance]
constant q : P → Prop
#congr q
|
42c68edd918b9a988e9e29f20a26c14360498038 | 9dc8cecdf3c4634764a18254e94d43da07142918 | /src/model_theory/elementary_maps.lean | ada6f2c3ce971ad64aca1ff58f934715df423f7b | [
"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 | 14,834 | lean | /-
Copyright (c) 2022 Aaron Anderson. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Aaron Anderson
-/
import data.fintype.basic
import model_theory.substructures
/-!
# Elementary Maps Between First-Order Structures
## Main Definitions
* A `first_order.language.eleme... |
37e10811c5ee070b62b787ad59b5af90f6a90a16 | 9028d228ac200bbefe3a711342514dd4e4458bff | /src/tactic/core.lean | 19090ef48c81ecec419f5f34536d7bc5b99e8792 | [
"Apache-2.0"
] | permissive | mcncm/mathlib | 8d25099344d9d2bee62822cb9ed43aa3e09fa05e | fde3d78cadeec5ef827b16ae55664ef115e66f57 | refs/heads/master | 1,672,743,316,277 | 1,602,618,514,000 | 1,602,618,514,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 89,694 | lean | /-
Copyright (c) 2018 Mario Carneiro. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Mario Carneiro, Simon Hudon, Scott Morrison, Keeley Hoek
-/
import data.dlist.basic
import logic.function.basic
import control.basic
import meta.expr
import meta.rb_map
import data.boo... |
b4dc3c9cf87b7bdd4380cf40801bb5b919838ae6 | 94e33a31faa76775069b071adea97e86e218a8ee | /src/algebra/ring/boolean_ring.lean | c5ab68f32355c1f4f8a80eb396ce2cc5156c63d4 | [
"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 | 15,985 | lean | /-
Copyright (c) 2021 Bryan Gin-ge Chen. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Bryan Gin-ge Chen, Yaël Dillies
-/
import algebra.punit_instances
import order.hom.lattice
import tactic.abel
import tactic.ring
/-!
# Boolean rings
A Boolean ring is a ring where... |
09a1e39bfedc279c5100975b28a1726dac4e9aa3 | 302c785c90d40ad3d6be43d33bc6a558354cc2cf | /src/category_theory/endomorphism.lean | 7c015e20481f3fac5f079cd9915d9d832d16f158 | [
"Apache-2.0"
] | permissive | ilitzroth/mathlib | ea647e67f1fdfd19a0f7bdc5504e8acec6180011 | 5254ef14e3465f6504306132fe3ba9cec9ffff16 | refs/heads/master | 1,680,086,661,182 | 1,617,715,647,000 | 1,617,715,647,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 3,134 | lean | /-
Copyright (c) 2019 Yury Kudryashov. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Yury Kudryashov, Scott Morrison, Simon Hudon
Definition and basic properties of endomorphisms and automorphisms of an object in a category.
-/
import category_theory.groupoid
import ... |
422031cb00bd855fb59b31b25ba8ac69d2c3aac7 | 31f556cdeb9239ffc2fad8f905e33987ff4feab9 | /src/Lean/Elab/PreDefinition/Structural/Eqns.lean | 6eb2de8a50f58ce2f80bbadcdfeda07f4410be0c | [
"Apache-2.0",
"LLVM-exception",
"NCSA",
"LGPL-3.0-only",
"LicenseRef-scancode-inner-net-2.0",
"BSD-3-Clause",
"LGPL-2.0-or-later",
"Spencer-94",
"LGPL-2.1-or-later",
"HPND",
"LicenseRef-scancode-pcre",
"ISC",
"LGPL-2.1-only",
"LicenseRef-scancode-other-permissive",
"SunPro",
"CMU-Mach"... | permissive | tobiasgrosser/lean4 | ce0fd9cca0feba1100656679bf41f0bffdbabb71 | ebdbdc10436a4d9d6b66acf78aae7a23f5bd073f | refs/heads/master | 1,673,103,412,948 | 1,664,930,501,000 | 1,664,930,501,000 | 186,870,185 | 0 | 0 | Apache-2.0 | 1,665,129,237,000 | 1,557,939,901,000 | Lean | UTF-8 | Lean | false | false | 3,914 | lean | /-
Copyright (c) 2021 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Leonardo de Moura
-/
import Lean.Meta.Eqns
import Lean.Meta.Tactic.Split
import Lean.Meta.Tactic.Simp.Main
import Lean.Meta.Tactic.Apply
import Lean.Elab.PreDefinition.Basic
imp... |
f21fc6f5be04808eeda5fa0ba081d6852b926db7 | c45b34bfd44d8607a2e8762c926e3cfaa7436201 | /uexp/src/uexp/rules/cse344.lean | dddeb44175a47fea1403ffb95bd23b8c01ee24d2 | [
"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,465 | lean | import ..sql
import ..tactics
import ..u_semiring
import ..extra_constants
import ..cosette_tactics
open Expr
open Proj
open Pred
open SQL
section
parameter uid : datatype
parameter uname : datatype
parameter size : datatype
parameter city : datatype
parameter pid : datatype
parameter Usr : Schema
parameter usr : ... |
71db31cca3f1bb7c7af1a3ab0dbfd5f5b1d60f67 | 7850aae797be6c31052ce4633d86f5991178d3df | /stage0/src/Lean/Elab/Command.lean | 6a67225a10d691fca29b253a866c9dda4594b38b | [
"Apache-2.0"
] | permissive | miriamgoetze/lean4 | 4dc24d4dbd360cc969713647c2958c6691947d16 | 062cc5d5672250be456a168e9c7b9299a9c69bdb | refs/heads/master | 1,685,865,971,011 | 1,624,107,703,000 | 1,624,107,703,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 28,032 | 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.Parser.Command
import Lean.ResolveName
import Lean.Meta.Reduce
import Lean.Elab.Log
import Lean.Elab.Term
import Lean.Elab.Binders
import Lean.E... |
c203a69dd9ad925ba6573f68314c7543510f3040 | ce6917c5bacabee346655160b74a307b4a5ab620 | /src/ch4/ex0607.lean | e5c8fcf6ec12281bb387cb63a9d620ddf21e0d5f | [] | 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 | 120 | lean | #check sub_self
example (x : ℤ) : x * 0 = 0 :=
by rw [←sub_self (1 : ℤ), mul_sub, mul_one, sub_self, sub_self]
|
790535779496d5473ff01bbe2a98bc8a4af14a66 | c86b74188c4b7a462728b1abd659ab4e5828dd61 | /src/Init/Prelude.lean | e49640f52ab274b45edcad2536306a1281033dbd | [
"Apache-2.0"
] | permissive | cwb96/lean4 | 75e1f92f1ba98bbaa6b34da644b3dfab2ce7bf89 | b48831cda76e64f13dd1c0edde7ba5fb172ed57a | refs/heads/master | 1,686,347,881,407 | 1,624,483,842,000 | 1,624,483,842,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 75,059 | 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
universes u v w
@[inline] def id {α : Sort u} (a : α) : α := a
/- `idRhs` is an auxiliary declaration used to implement "smart unfolding". It is ... |
4d5baf0e7c3e63fec60b97db2d90868a7e229789 | d406927ab5617694ec9ea7001f101b7c9e3d9702 | /src/algebra/order/monoid/prod.lean | e7f0d95f7729e3d3356b2df216f1eb4cd603eda4 | [
"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,481 | lean | /-
Copyright (c) 2016 Jeremy Avigad. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Jeremy Avigad, Leonardo de Moura, Mario Carneiro, Johannes Hölzl
-/
import algebra.group.prod
import algebra.order.monoid.cancel.defs
import algebra.order.monoid.canonical.defs
/-! # P... |
f8705293045ade8290fc8cd1ce2eb0439668e9c3 | fa02ed5a3c9c0adee3c26887a16855e7841c668b | /src/category_theory/pempty.lean | 892f9a461cefaebc4bf2bddd019aeeaf2fa6b5b5 | [
"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,295 | lean | /-
Copyright (c) 2018 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.discrete_category
/-!
# The empty category
Defines a category structure on `pempty`, and the unique functor `pempty ⥤ C` for an... |
675b139ca117714ef31128f66853ac760b0e514a | 6432ea7a083ff6ba21ea17af9ee47b9c371760f7 | /tests/lean/run/compilerTest1.lean | d025ffd96a166b5dadf24a776ddd488b9610ef17 | [
"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 | 207 | lean | import Lean
#eval Lean.Compiler.compile #[``Lean.Elab.Structural.structuralRecursion, ``Lean.Elab.Command.elabStructure, ``Lean.Environment.displayStats, ``Lean.Meta.IndPredBelow.mkBelow, ``unexpandExists]
|
34675eb229e0905510733855a25f92605d0c15b9 | d9d511f37a523cd7659d6f573f990e2a0af93c6f | /src/group_theory/complement.lean | e20a2320602b260c83679a9ff0e2d27710bf7457 | [
"Apache-2.0"
] | permissive | hikari0108/mathlib | b7ea2b7350497ab1a0b87a09d093ecc025a50dfa | a9e7d333b0cfd45f13a20f7b96b7d52e19fa2901 | refs/heads/master | 1,690,483,608,260 | 1,631,541,580,000 | 1,631,541,580,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 16,254 | lean | /-
Copyright (c) 2021 Thomas Browning. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Thomas Browning
-/
import group_theory.group_action
import group_theory.order_of_element
import group_theory.quotient_group
/-!
# Complements
In this file we define the complement ... |
ee3026de3d5a8316e87ab13413aed33b4c836850 | 2a70b774d16dbdf5a533432ee0ebab6838df0948 | /_target/deps/mathlib/src/algebraic_geometry/prime_spectrum.lean | 84136ec7cee67d3cde92011681322f6f1a4e26da | [
"Apache-2.0"
] | permissive | hjvromen/lewis | 40b035973df7c77ebf927afab7878c76d05ff758 | 105b675f73630f028ad5d890897a51b3c1146fb0 | refs/heads/master | 1,677,944,636,343 | 1,676,555,301,000 | 1,676,555,301,000 | 327,553,599 | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 14,252 | 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 topology.opens
import ring_theory.ideal.prod
import linear_algebra.finsupp
import algebra.punit_instances
/-!
# Prime spectrum of a commutative ring
The prim... |
d54f14d6161ed0c140c8f6719e6fc484f943d5eb | 80cc5bf14c8ea85ff340d1d747a127dcadeb966f | /src/category_theory/limits/preserves/basic.lean | 2e66af9883a7ff36b11766623ed77116a939622d | [
"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 | 16,198 | lean | /-
Copyright (c) 2018 Scott Morrison. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Scott Morrison, Reid Barton, Bhavik Mehta
-/
import category_theory.limits.limits
/-!
# Preservation and reflection of (co)limits.
There are various distinct notions of "preserving l... |
ecd7cb03efd01f35aebef73ce5f141ccaad1e5ef | 4727251e0cd73359b15b664c3170e5d754078599 | /src/data/sym/sym2.lean | 2e911abd94b8b1a9d1ef6c131fa38d4a8c06997a | [
"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,984 | lean | /-
Copyright (c) 2020 Kyle Miller All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Kyle Miller
-/
import data.sym.basic
import tactic.linarith
/-!
# The symmetric square
This file defines the symmetric square, which is `α × α` modulo
swapping. This is also known as th... |
bc62a94c390e819ac1200c7fdd61aef6911b57c6 | 36938939954e91f23dec66a02728db08a7acfcf9 | /lean/deps/x86_semantics/src/x86_semantics/buffer_map.lean | ca8ae5028c29c04cf203762d70f63bf13d6f2b7f | [
"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 | 2,208 | lean | /- A map from indexes onto buffers -/
import data.buffer
structure {u v} buffer_map.entry (k : Type u) (val : Type v) : Type (max u v) :=
(start : k)
(value : buffer val)
-- distance here is essentially subtraction. distance k k' < 0 iff k < k'
structure {u v} buffer_map (k : Type u) (val : Type v) (distance :... |
12f2366f24b8e4245bf7016f8d4f175fdf1dde4c | 367134ba5a65885e863bdc4507601606690974c1 | /src/order/order_iso_nat.lean | 7ec8311fd87e03bb4647b1d5e64cc12249a35419 | [
"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 | 5,999 | 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 data.nat.basic
import data.equiv.denumerable
import data.set.finite
import order.rel_iso
import logic.function.iterate
namespace rel_embedding
variables {α : ... |
639e48745c59f0fd3053918e9d0985986659d13d | d436468d80b739ba7e06843c4d0d2070e43448e5 | /src/analysis/asymptotics.lean | 0cd42ba902e742bcffc5b3c04ba92e79cbf6d57a | [
"Apache-2.0"
] | permissive | roro47/mathlib | 761fdc002aef92f77818f3fef06bf6ec6fc1a28e | 80aa7d52537571a2ca62a3fdf71c9533a09422cf | refs/heads/master | 1,599,656,410,625 | 1,573,649,488,000 | 1,573,649,488,000 | 221,452,951 | 0 | 0 | Apache-2.0 | 1,573,647,693,000 | 1,573,647,692,000 | null | UTF-8 | Lean | false | false | 29,388 | lean | /-
Copyright (c) 2019 Jeremy Avigad. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Author: Jeremy Avigad
We introduce these relations:
`is_O f g l` : "f is big O of g along l"
`is_o f g l` : "f is little o of g along l"
Here `l` is any filter on the domain of `f` and `g... |
b1395d69e72d73d114ed9c58f2aae3d10ca4a131 | dd4e652c749fea9ac77e404005cb3470e5f75469 | /src/missing_mathlib/data/list/basic.lean | 1a764964fce3138143249bce8b4e65cae5616e09 | [] | no_license | skbaek/cvx | e32822ad5943541539966a37dee162b0a5495f55 | c50c790c9116f9fac8dfe742903a62bdd7292c15 | refs/heads/master | 1,623,803,010,339 | 1,618,058,958,000 | 1,618,058,958,000 | 176,293,135 | 3 | 2 | null | null | null | null | UTF-8 | Lean | false | false | 793 | lean | import data.list.basic
universe u
theorem list.foldl_map' {α β: Type u} (g : α → β) (f : α → α → α) (f' : β → β → β)
(a : α) (l : list α) (h : ∀ x y, g (f x y) = f' (g x) (g y)) :
g (list.foldl f a l) = list.foldl f' (g a) (l.map g) :=
begin
induction l generalizing a,
{ simp },
{ simp [list.foldl_cons, l... |
0b85a8f5fbe1e1b65bc439f1ea756059d887db16 | bb31430994044506fa42fd667e2d556327e18dfe | /src/topology/uniform_space/basic.lean | 972b23fb70b0262a1a5da640a3e3ad960ab68dfc | [
"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 | 84,286 | lean | /-
Copyright (c) 2017 Johannes Hölzl. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Johannes Hölzl, Mario Carneiro, Patrick Massot
-/
import order.filter.small_sets
import topology.subset_properties
import topology.nhds_set
/-!
# Uniform spaces
Uniform spaces are a ... |
1033a8ded6fa7f338d22a8488b950cf3ff2d2eda | 8cae430f0a71442d02dbb1cbb14073b31048e4b0 | /test/move_add.lean | fa37e265409df4683541bdde29e1f849028d3591 | [
"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,214 | lean | import tactic.move_add
import data.list.of_fn
import algebra.group.pi
variables {R : Type*} [add_comm_semigroup R] {a b c d e f g h : R}
example (e f g : R) (h : a + b + c = d) : b + (a + c) = d :=
begin
success_if_fail_with_msg {move_add [d] at *} "'d' is an unused variable",
move_add at *,
success_if_fail_wit... |
26f4165f2f32eb609ccdd0444f32090d40bc060e | c777c32c8e484e195053731103c5e52af26a25d1 | /src/geometry/euclidean/triangle.lean | 7e8e292c870a9d6fba938328da44215151a9e9ca | [
"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 | 18,131 | lean | /-
Copyright (c) 2020 Joseph Myers. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Joseph Myers, Manuel Candales
-/
import geometry.euclidean.angle.oriented.affine
import geometry.euclidean.angle.unoriented.affine
import tactic.interval_cases
/-!
# Triangles
This fil... |
36f5c717bd088e1b9fd47fd2b9a95609288d3d64 | cf39355caa609c0f33405126beee2739aa3cb77e | /tests/lean/run/ind6.lean | ad1c594e9956b6e4d65cf2b8ba2978ecc446ae1b | [
"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 | 292 | lean | #exit
inductive tree.{u} (A : Type.{u}) : Type.{max u 1} :=
| node : A → forest.{u} A → tree.{u} A
with forest : Type.{max u 1} :=
| nil : forest.{u} A
| cons : tree.{u} A → forest.{u} A → forest.{u} A
#check tree.{1}
#check forest.{1}
#check tree.rec.{1 1}
#check forest.rec.{1 1}
|
7c75f7ffb6f2b89943489c22c3a4e2c2d493f00d | d1a52c3f208fa42c41df8278c3d280f075eb020c | /tests/lean/248.lean | f1816701438c6520a1055010775553b97c997bde | [
"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 | 50 | lean | @[implementedBy foo] constant foo (x : Nat) : Nat
|
552fe000db293ef1518ed6498aa9f3a6a4650ebb | ad0c7d243dc1bd563419e2767ed42fb323d7beea | /data/real/basic.lean | 966442820f3af80f2421994640f471347af647ef | [
"Apache-2.0"
] | permissive | sebzim4500/mathlib | e0b5a63b1655f910dee30badf09bd7e191d3cf30 | 6997cafbd3a7325af5cb318561768c316ceb7757 | refs/heads/master | 1,585,549,958,618 | 1,538,221,723,000 | 1,538,221,723,000 | 150,869,076 | 0 | 0 | Apache-2.0 | 1,538,229,323,000 | 1,538,229,323,000 | null | UTF-8 | Lean | false | false | 26,935 | lean | /-
Copyright (c) 2018 Mario Carneiro. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Mario Carneiro
The (classical) real numbers ℝ. This is a direct construction
from Cauchy sequences.
-/
import order.conditionally_complete_lattice data.real.cau_seq_completion
algeb... |
fd60421813862dd43184db554afc6ea9af5fd45a | 36938939954e91f23dec66a02728db08a7acfcf9 | /lean4/tests/JsonRoundtrip.lean | ec657ecd747313f85a39f736c6a7fd22feb17d04 | [] | no_license | 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 | 1,446 | lean |
import ReoptVCG.Annotations
import Init.Lean.Data.Json
import Init.Lean.Data.Json.FromToJson
import Galois.Init.Json
namespace Test
namespace JsonRoundtrip
-- Parses the contents of the specified file first as a Json object
-- then as a ModuleAnnotation, which is then re-converted into a Json
-- string and reparsed... |
47c07e99d86299ed1200a0e3d9b501551f024dda | 69d4931b605e11ca61881fc4f66db50a0a875e39 | /src/measure_theory/measure_space.lean | 67a56e6208631c1a353e368bf3329db80d99143c | [
"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 | 117,876 | 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 measure_theory.outer_measure
import order.filter.countable_Inter
import data.set.accumulate
/-!
# Measure spaces
Given a measurable space `α`... |
32a55b3e5ce948e8ddb7670679ab369b137f00a4 | bbecf0f1968d1fba4124103e4f6b55251d08e9c4 | /src/measure_theory/measure/measure_space_def.lean | b97720ef68375ed41dfbc1972b1ccefc3f2c275a | [
"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 | 20,433 | 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 measure_theory.measure.outer_measure
import order.filter.countable_Inter
import data.set.accumulate
/-!
# Measure spaces
This file defines me... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.