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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
b22f6d169b75d2e48bf40401cba70981e2d4da0c | aa3f8992ef7806974bc1ffd468baa0c79f4d6643 | /library/data/num/decl.lean | f27e0e13a111ef053737d459ea41e97c68552b11 | [
"Apache-2.0"
] | permissive | codyroux/lean | 7f8dff750722c5382bdd0a9a9275dc4bb2c58dd3 | 0cca265db19f7296531e339192e9b9bae4a31f8b | refs/heads/master | 1,610,909,964,159 | 1,407,084,399,000 | 1,416,857,075,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 854 | lean | ----------------------------------------------------------------------------------------------------
-- Copyright (c) 2014 Microsoft Corporation. All rights reserved.
-- Released under Apache 2.0 license as described in the file LICENSE.
-- Author: Leonardo de Moura
-----------------------------------------------------... |
702494e0e5e08586a4fbe57b0efcee207e08f12f | a0e23cfdd129a671bf3154ee1a8a3a72bf4c7940 | /stage0/src/Init/Data/Format/Basic.lean | 999480411ca1f5d15a7ca8433a02e67be6b963d4 | [
"Apache-2.0"
] | permissive | WojciechKarpiel/lean4 | 7f89706b8e3c1f942b83a2c91a3a00b05da0e65b | f6e1314fa08293dea66a329e05b6c196a0189163 | refs/heads/master | 1,686,633,402,214 | 1,625,821,189,000 | 1,625,821,258,000 | 384,640,886 | 0 | 0 | Apache-2.0 | 1,625,903,617,000 | 1,625,903,026,000 | null | UTF-8 | Lean | false | false | 7,365 | lean | /-
Copyright (c) 2018 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Author: Leonardo de Moura
-/
prelude
import Init.Control.State
import Init.Data.Int.Basic
import Init.Data.String.Basic
namespace Std
inductive Format.FlattenBehavior where
| allOrNo... |
66c7bd33ae92e5257d80b1acb264e59bf88752db | bb31430994044506fa42fd667e2d556327e18dfe | /src/data/real/ennreal.lean | d7b87d244de5dfa174b4ba37fe2d0aed8d77b00f | [
"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 | 85,996 | 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 data.real.nnreal
import algebra.order.sub.with_top
/-!
# Extended non-negative reals
We define `ennreal = ℝ≥0∞ := with_top ℝ≥0` to be the ty... |
d4778e0019fe74999cc1b405471404836f469cf5 | 43390109ab88557e6090f3245c47479c123ee500 | /src/M1F/problem_bank/0502/Q0502.lean | cf1de6beb301a5282047aeb1b5a05ad4cf759a23 | [
"Apache-2.0"
] | permissive | Ja1941/xena-UROP-2018 | 41f0956519f94d56b8bf6834a8d39473f4923200 | b111fb87f343cf79eca3b886f99ee15c1dd9884b | refs/heads/master | 1,662,355,955,139 | 1,590,577,325,000 | 1,590,577,325,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 144 | lean | import algebra.group_power tactic.norm_num algebra.big_operators
theorem Q2 (n : ℕ) : n ≥ 2 → nat.pow 4 n > nat.pow 3 n + nat.pow 2 n :=
|
0645d14058b2e3ac4427c6634a72736dd1b5c9b0 | e61a235b8468b03aee0120bf26ec615c045005d2 | /stage0/src/Init/Lean/Util/CollectLevelParams.lean | a3e641bbc37fb84a2c888c41c67f4a4ba3004639 | [
"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 | 1,899 | 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.Lean.Expr
namespace Lean
namespace CollectLevelParams
structure State :=
(visitedLevel : LevelSet := {})
(visitedExpr : ExprSet ... |
88d65f710fd2fe814755a3e96cd708b6d97008a2 | 9028d228ac200bbefe3a711342514dd4e4458bff | /src/data/complex/module.lean | e2c7fad75a22338432cb0c376a555beaa194c02f | [
"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 | 2,330 | lean | /-
Copyright (c) 2020 Alexander Bentkamp, Sébastien Gouëzel. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Alexander Bentkamp, Sébastien Gouëzel
-/
import data.complex.basic
import algebra.algebra.basic
/-!
# Complex number as a vector space over `ℝ`
This file conta... |
960bc586374c409f348a4c743cf711168d66f99a | 9be442d9ec2fcf442516ed6e9e1660aa9071b7bd | /stage0/src/Lean/Meta/Tactic/Simp/Types.lean | 891c780459bc834e0e5942900dad002db64eea2a | [
"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 | 2,958 | lean | /-
Copyright (c) 2020 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Leonardo de Moura
-/
import Lean.Meta.AppBuilder
import Lean.Meta.CongrTheorems
import Lean.Meta.Tactic.Simp.SimpTheorems
import Lean.Meta.Tactic.Simp.SimpCongrTheorems
namespa... |
e1c0e956f569693bff83e12b0ed8f6cf088aa029 | 206422fb9edabf63def0ed2aa3f489150fb09ccb | /src/data/string/basic.lean | 9d46de87a762da0e7e144d39290e16a40941c0e2 | [
"Apache-2.0"
] | permissive | hamdysalah1/mathlib | b915f86b2503feeae268de369f1b16932321f097 | 95454452f6b3569bf967d35aab8d852b1ddf8017 | refs/heads/master | 1,677,154,116,545 | 1,611,797,994,000 | 1,611,797,994,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 4,039 | lean | /-
Copyright (c) 2018 Mario Carneiro. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Author: Mario Carneiro
Supplementary theorems about the `string` type.
-/
import data.list.basic
import data.char
namespace string
def ltb : iterator → iterator → bool
| s₁ s₂ := begin
cas... |
2d400d7274cc94b979e76c02011ff1c65bff3649 | 57c233acf9386e610d99ed20ef139c5f97504ba3 | /src/topology/homotopy/basic.lean | 97c1b15bff65a836c9c14e3a087cb35e700f2027 | [
"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 | 19,265 | lean | /-
Copyright (c) 2021 Shing Tak Lam. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Shing Tak Lam
-/
import topology.unit_interval
import topology.algebra.ordered.proj_Icc
import topology.continuous_function.ordered
import topology.compact_open
/-!
# Homotopy between... |
c80a68ce6c7095ee2cbce70a6a2b34bb9e19b957 | 853df553b1d6ca524e3f0a79aedd32dde5d27ec3 | /src/analysis/specific_limits.lean | 01bd40040507db856d2275cdc59f5a923f4264d6 | [
"Apache-2.0"
] | permissive | DanielFabian/mathlib | efc3a50b5dde303c59eeb6353ef4c35a345d7112 | f520d07eba0c852e96fe26da71d85bf6d40fcc2a | refs/heads/master | 1,668,739,922,971 | 1,595,201,756,000 | 1,595,201,756,000 | 279,469,476 | 0 | 0 | null | 1,594,696,604,000 | 1,594,696,604,000 | null | UTF-8 | Lean | false | false | 29,720 | 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 algebra.geom_sum
import topology.instances.ennreal
import tactic.ring_exp
non... |
124c1de013f47639851693a9966c3bf6eabbc805 | 66a6486e19b71391cc438afee5f081a4257564ec | /homotopy/spherical_fibrations.hlean | 8bbb8f068045303d065ff3ff5dc5b84a8013d130 | [
"Apache-2.0"
] | permissive | spiceghello/Spectral | c8ccd1e32d4b6a9132ccee20fcba44b477cd0331 | 20023aa3de27c22ab9f9b4a177f5a1efdec2b19f | refs/heads/master | 1,611,263,374,078 | 1,523,349,717,000 | 1,523,349,717,000 | 92,312,239 | 0 | 0 | null | 1,495,642,470,000 | 1,495,642,470,000 | null | UTF-8 | Lean | false | false | 5,202 | hlean | import homotopy.join homotopy.smash types.nat.hott
open eq equiv trunc function bool join sphere sphere.ops prod
open pointed sigma smash is_trunc nat
namespace spherical_fibrations
/- classifying type of spherical fibrations -/
definition BG (n : ℕ) [is_succ n] : Type₁ :=
Σ(X : Type₀), ∥ X ≃ S (pred n) ∥
d... |
5f6426bbd600e4fb2b2904b5a4f120a93ebd3c27 | 7cef822f3b952965621309e88eadf618da0c8ae9 | /src/tactic/chain.lean | ec3a4fccf8ff6615a81f9f0a9bdd58b2bff77a09 | [
"Apache-2.0"
] | permissive | rmitta/mathlib | 8d90aee30b4db2b013e01f62c33f297d7e64a43d | 883d974b608845bad30ae19e27e33c285200bf84 | refs/heads/master | 1,585,776,832,544 | 1,576,874,096,000 | 1,576,874,096,000 | 153,663,165 | 0 | 2 | Apache-2.0 | 1,544,806,490,000 | 1,539,884,365,000 | Lean | UTF-8 | Lean | false | false | 4,958 | lean | /-
Copyright (c) 2018 Scott Morrison. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Scott Morrison, Mario Carneiro
-/
import tactic.ext
import data.option.defs
open interactive
namespace tactic
/-
This file defines a `chain` tactic, which takes a list of tactics, a... |
1c245cf8fd6676b31c5e07f715db9110559db654 | c2b0bd5aa4b3f4fb8a887fab57c5fc08be03aa01 | /lens.lean | 3b890434a076e2bb554a536a70e13483a7aa3bef | [] | no_license | cipher1024/lambda-calc | f72aa6dedea96fc7831d1898f3150a18baefdf0b | 327eaa12588018c01b2205f3e4e0048de1d97afd | refs/heads/master | 1,625,672,854,392 | 1,507,233,523,000 | 1,507,233,523,000 | 99,383,225 | 4 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 2,206 | lean |
import .applicative
universes u u₀ u₁ u₂ u₃
namespace lenses
def focus (f : Type u₀ → Type u₁) (α : Type u₂) (β : Type u₀) :=
(α → f β)
@[reducible]
def lens_like (f : Type u₀ → Type u₁) (s : Type u₃) (t : Type u₀) (α : Type u₂) (β : Type u₀) :=
focus f α β → focus f s t
@[reducible]
def getting (r : Type u₁) (... |
562f34ac489d386d3086a7a174ed525299d4fefd | d9d511f37a523cd7659d6f573f990e2a0af93c6f | /src/data/real/hyperreal.lean | b0027c782d64b502657a772715f0efdb46bf3e8c | [
"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 | 36,970 | lean | /-
Copyright (c) 2019 Abhimanyu Pallavi Sudhir. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Abhimanyu Pallavi Sudhir
-/
import order.filter.filter_product
import analysis.specific_limits
/-!
# Construction of the hyperreal numbers as an ultraproduct of real sequenc... |
24588c5069b81753d5c7498f7e20ee7fde289be7 | 57c233acf9386e610d99ed20ef139c5f97504ba3 | /src/order/circular.lean | 823316bc3056b10c37bae9e96a7cf7da3b7a32fd | [
"Apache-2.0"
] | permissive | robertylewis/mathlib | 3d16e3e6daf5ddde182473e03a1b601d2810952c | 1d13f5b932f5e40a8308e3840f96fc882fae01f0 | refs/heads/master | 1,651,379,945,369 | 1,644,276,960,000 | 1,644,276,960,000 | 98,875,504 | 0 | 0 | Apache-2.0 | 1,644,253,514,000 | 1,501,495,700,000 | Lean | UTF-8 | Lean | false | false | 15,355 | lean | /-
Copyright (c) 2021 Yaël Dillies. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Yaël Dillies
-/
import data.set.basic
/-!
# Circular order hierarchy
This file defines circular preorders, circular partial orders and circular orders.
## Hierarchy
* A ternary "betw... |
5ac2786114f2c1accc3809d7dfcbce22d692a203 | d1a52c3f208fa42c41df8278c3d280f075eb020c | /tests/lean/run/print_cmd.lean | 860f16d5fdb488b61d99781600b4c2f78fb406ba | [
"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 | 277 | lean |
#print Nat
private def foo (x : Nat) : Nat := x + 1
#print "hello"
#print id
#print propext
#print arbitrary
#print ReaderT.read
#print Prod
#print Prod.mk
#print Nat
#print Nat.succ
#print Nat.rec
#print Nat.casesOn
#print foo
#print Quot.mk
#print Quot.ind
#print Quot.mk
|
6d610ec0a92cb49c9c08cb045430b2e5d40fca54 | 9028d228ac200bbefe3a711342514dd4e4458bff | /src/analysis/normed_space/finite_dimension.lean | b1ba9ff555a989200c740fd9bb1615c0345ee6dd | [
"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 | 18,939 | lean | /-
Copyright (c) 2019 Sébastien Gouëzel. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Sébastien Gouëzel
-/
import analysis.normed_space.operator_norm
import topology.bases
import linear_algebra.finite_dimensional
import tactic.omega
/-!
# Finite dimensional normed s... |
74de012dcab1f018cd2aa2a22d881ee7f94ffdf1 | 36c7a18fd72e5b57229bd8ba36493daf536a19ce | /library/data/pnat.lean | f5da33dd9078a533a3646fdb8e0b6c20802826c2 | [
"Apache-2.0"
] | permissive | YHVHvx/lean | 732bf0fb7a298cd7fe0f15d82f8e248c11db49e9 | 038369533e0136dd395dc252084d3c1853accbf2 | refs/heads/master | 1,610,701,080,210 | 1,449,128,595,000 | 1,449,128,595,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 12,846 | lean | /-
Copyright (c) 2015 Robert Y. Lewis. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Author: Robert Y. Lewis
Basic facts about the positive natural numbers.
Developed primarily for use in the construction of ℝ. For the most part, the only theorems here
are those needed for t... |
9ed5bc8d69b2a9ad4f8890cade3befbb4ec796c4 | 9dc8cecdf3c4634764a18254e94d43da07142918 | /src/category_theory/monoidal/preadditive.lean | 67852e38c4cb31b36517d0d25107392020fcef54 | [
"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 | 8,716 | 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.additive_functor
import category_theory.monoidal.category
/-!
# Preadditive monoidal categories
A monoidal category is `monoidal_... |
a967c1256dd140683dbbd000752c40a1fa918d03 | 947b78d97130d56365ae2ec264df196ce769371a | /tests/lean/sanitizeMacroScopes.lean | 01d31aab5bbc6fa8552c965653a33febb0653010 | [
"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 | 112 | lean | new_frontend
macro "m" x:term : term => `(fun x => $x)
set_option trace.Elab.step true in
#check fun x => m x
|
ef0fe4fd2339ba0b60b7b3cba84ff81f02dcf43b | 9b9a16fa2cb737daee6b2785474678b6fa91d6d4 | /src/data/set/basic.lean | 8e8d1b7bef06f2e77b4eb4214cfbc833356468a4 | [
"Apache-2.0"
] | permissive | johoelzl/mathlib | 253f46daa30b644d011e8e119025b01ad69735c4 | 592e3c7a2dfbd5826919b4605559d35d4d75938f | refs/heads/master | 1,625,657,216,488 | 1,551,374,946,000 | 1,551,374,946,000 | 98,915,829 | 0 | 0 | Apache-2.0 | 1,522,917,267,000 | 1,501,524,499,000 | Lean | UTF-8 | Lean | false | false | 48,334 | lean | /-
Copyright (c) 2014 Jeremy Avigad. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Author: Jeremy Avigad, Leonardo de Moura
-/
import tactic.ext tactic.finish data.subtype tactic.interactive
open function
/- set coercion to a type -/
namespace set
instance {α : Type*} : has_... |
0293533d92884e2e44843f3f0246e160d3353aad | ca1ad81c8733787aba30f7a8d63f418508e12812 | /clfrags/src/hilbert/wr/ki.lean | d66d5e1b2f7932f7c91d0e64f69f786c5c668053 | [] | no_license | greati/hilbert-classical-fragments | 5cdbe07851e979c8a03c621a5efd4d24bbfa333a | 18a21ac6b2e890060eb4ae65752fc0245394d226 | refs/heads/master | 1,591,973,117,184 | 1,573,822,710,000 | 1,573,822,710,000 | 194,334,439 | 2 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 1,101 | lean | import core.connectives
namespace clfrags
namespace hilbert
namespace wr
namespace ki
axiom ki₁ : Π {a b c : Prop}, b → ki a b c → c
axiom ki₂ : Π {a b c : Prop}, a → ki a b (ki a c b)
axiom ki₃ : Π {a b c d e f : Prop},
ki b ... |
f02f906c9732b0b9f74c8512c630f9b29ec86839 | 217bb195841a8be2d1b4edd2084d6b69ccd62f50 | /library/init/lean/elaborator.lean | 69e26a541c9147c24116fc3dc657124f224c5c49 | [
"Apache-2.0"
] | permissive | frank-lesser/lean4 | 717f56c9bacd5bf3a67542d2f5cea721d4743a30 | 79e2abe33f73162f773ea731265e456dbfe822f9 | refs/heads/master | 1,589,741,267,933 | 1,556,424,200,000 | 1,556,424,281,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 42,035 | lean | /-
Copyright (c) 2018 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Author: Sebastian Ullrich
Elaborator for the Lean language: takes commands and produces side effects
-/
prelude
import init.lean.parser.module
import init.lean.expander
import init.lean... |
c7ff9c0c641665f8016b1dbd7c5dfd3a8c8ef8ba | cf39355caa609c0f33405126beee2739aa3cb77e | /tests/lean/fail/example.lean | 8ea5fa9d159b5e895f36a3f3dfa41cec910ad65f | [
"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 | 75 | lean | open tactic expr
example : false := by do exact $ const `does_not_exist []
|
cd66fd35f953c7b8d0f2e997ccbb1b0ba8237e01 | 57c233acf9386e610d99ed20ef139c5f97504ba3 | /src/tactic/noncomm_ring.lean | a6c4a4f7a8ff8dbb405428fedcf9fe56ea14541d | [
"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,335 | lean | /-
Copyright (c) 2020 Oliver Nash. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Scott Morrison, Oliver Nash
-/
import tactic.abel
namespace tactic
namespace interactive
/-- A tactic for simplifying identities in not-necessarily-commutative rings.
An example:
```le... |
45f634273dab5f9833eab2ee9f35e82360e96cae | 82e44445c70db0f03e30d7be725775f122d72f3e | /test/simps.lean | 1c1ea76c7a33ee369beeb6ce8c5666eaef034b8d | [
"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 | 35,919 | lean | import tactic.simps
import algebra.group.hom
universe variables v u w
-- set_option trace.simps.verbose true
-- set_option trace.simps.debug true
-- set_option trace.app_builder true
open function tactic expr
structure equiv (α : Sort*) (β : Sort*) :=
(to_fun : α → β)
(inv_fun : β → α)
(left_inv : left_invers... |
e5ff80244f2b937c6fd2e005c481c3c84fddd355 | 74addaa0e41490cbaf2abd313a764c96df57b05d | /Mathlib/field_theory/intermediate_field_auto.lean | f330f7574774994afadf4e6f47405174072d71fc | [] | no_license | AurelienSaue/Mathlib4_auto | f538cfd0980f65a6361eadea39e6fc639e9dae14 | 590df64109b08190abe22358fabc3eae000943f2 | refs/heads/master | 1,683,906,849,776 | 1,622,564,669,000 | 1,622,564,669,000 | 371,723,747 | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 21,512 | lean | /-
Copyright (c) 2020 Anne Baanen. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Anne Baanen
-/
import Mathlib.PrePort
import Mathlib.Lean3Lib.init.default
import Mathlib.field_theory.subfield
import Mathlib.field_theory.tower
import Mathlib.ring_theory.algebraic
impo... |
a48d2058aefb27850460c9e50e3259c4b491cc9a | 55c7fc2bf55d496ace18cd6f3376e12bb14c8cc5 | /src/measure_theory/simple_func_dense.lean | 4e2961b29778200e8e98961d96b065a33ede5dcb | [
"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 | 14,844 | lean | /-
Copyright (c) 2019 Zhouhang Zhou. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Zhouhang Zhou
-/
import measure_theory.l1_space
/-!
# Density of simple functions
Show that each Borel measurable function can be approximated,
both pointwise and in `L¹` norm, by a s... |
b4a6d9a5cce378ffdc53fa4bf6056e050fe7234d | b70447c014d9e71cf619ebc9f539b262c19c2e0b | /hott/types/trunc.hlean | 77c0e6d2788d6b33bc5c5489bd955a28689d9fab | [
"Apache-2.0"
] | permissive | ia0/lean2 | c20d8da69657f94b1d161f9590a4c635f8dc87f3 | d86284da630acb78fa5dc3b0b106153c50ffccd0 | refs/heads/master | 1,611,399,322,751 | 1,495,751,007,000 | 1,495,751,007,000 | 93,104,167 | 0 | 0 | null | 1,496,355,488,000 | 1,496,355,487,000 | null | UTF-8 | Lean | false | false | 35,017 | hlean | /-
Copyright (c) 2015 Jakob von Raumer. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Floris van Doorn
Properties of trunc_index, is_trunc, trunctype, trunc, and the pointed versions of these
-/
-- NOTE: the fact that (is_trunc n A) is a mere proposition is proved i... |
e53cc3226e617cd1a6c4999a0cccf7bb5c780bbc | 26ac254ecb57ffcb886ff709cf018390161a9225 | /src/analysis/normed_space/basic.lean | 7f024a62b67f55c0cf1b068265acc8c4eb6662ae | [
"Apache-2.0"
] | permissive | eric-wieser/mathlib | 42842584f584359bbe1fc8b88b3ff937c8acd72d | d0df6b81cd0920ad569158c06a3fd5abb9e63301 | refs/heads/master | 1,669,546,404,255 | 1,595,254,668,000 | 1,595,254,668,000 | 281,173,504 | 0 | 0 | Apache-2.0 | 1,595,263,582,000 | 1,595,263,581,000 | null | UTF-8 | Lean | false | false | 51,073 | lean | /-
Copyright (c) 2018 Patrick Massot. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Patrick Massot, Johannes Hölzl
-/
import topology.instances.nnreal
import topology.instances.complex
import topology.algebra.module
import topology.metric_space.antilipschitz
/-!
# No... |
0a0da05418a0eca8747715d29bb799f7e9c29073 | a9d0fb7b0e4f802bd3857b803e6c5c23d87fef91 | /tests/lean/run/lift_nested_rec.lean | 7bdce4497d862dd58df6403c9dddab3b0fdbca56 | [
"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 | 241 | lean |
definition f : nat → (nat × nat) → nat
| 0 m := m.1
| (n+1) m :=
match m with
| (a, b) := (f n (b, a + 1)) + (f n (a, b))
end
check @f._main.equations.eqn_1
check @f._main.equations.eqn_2
check @f._match_1.equations.eqn_1
|
6b2b751597cc5c4488876c858aaafa980ada486e | 9bfad7663303efa7b1cd1bf8a0b91cbb8d9a31a6 | /src/syntax.lean | 7ba8f354b5d0ff1ca1835529be9523df69236cc7 | [] | no_license | iehality/modallogic | 9c61bdeb4ef5798c9bc80d2b39d663c24dadaf2a | b759f418259b2e1b3b7dd8a784069f0eba49907a | refs/heads/main | 1,679,183,622,574 | 1,614,786,343,000 | 1,614,786,343,000 | 343,304,144 | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 792 | lean | inductive formula
| var : ℕ → formula
| bot : formula
| imp : formula → formula → formula
| box : formula → formula
infixr ` →ₘ `:65 := formula.imp
prefix `□`:70 := formula.box
notation `⊥ₘ` := formula.bot
def formula.neg (p : formula) : formula := p →ₘ ⊥ₘ
prefix `¬ₘ`:70 := formula.neg
def formula.and (p q : formula)... |
ee915e0ca97ad0cd6ad9fb3c3e8e8608987835cb | d757fb8bb0d538df3510904d3c09a0da191d06b9 | /sf_nats.lean | 9149ff5b43bb3fb40172059ba92289af1dfd7ff3 | [] | no_license | happy-bracket/lean_playground | 188f64c2a431dec5617c75e33c7a75e475b9c23d | 137b76966001091c445f6f472d27bbe5a8cf5d49 | refs/heads/master | 1,600,889,668,807 | 1,575,375,570,000 | 1,575,375,570,000 | 225,569,694 | 2 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 876 | lean | namespace nat_pg
inductive nat' : Type
| zero : nat'
| succ : nat' → nat'
open nat_pg.nat'
def dec : nat' → nat'
| zero := zero
| (succ n) := n
def inc : nat' → nat' := succ
def plus : nat' → nat' → nat'
| x zero := x
| x (succ y) := plus (inc x) y
def minus : nat' → nat' → nat'
| x zero := x
| zero _ := zero
| (... |
f1314b4e1939cf21353d2c3d3a5e3330c4dfe118 | 54518a41e0f0c03b53f961e37a3ac2fed5cfeaa9 | /src/fol.lean | e97d797686e7c8632427426fc523e4518bd828d6 | [
"Apache-2.0"
] | permissive | cipher1024/flypitch | 9110cbfc99aa2195fe0a903fffc7034cdb00e87c | 357cd9cc344d7b6ea0c1f5d7232956b9ddb39359 | refs/heads/master | 1,598,733,974,743 | 1,572,308,681,000 | 1,572,992,816,000 | 218,170,521 | 0 | 0 | Apache-2.0 | 1,572,308,724,000 | 1,572,308,723,000 | null | UTF-8 | Lean | false | false | 129,177 | lean | /-
Copyright (c) 2019 The Flypitch Project. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Jesse Han, Floris van Doorn
-/
/- A development of first-order logic in Lean.
* The object theory uses classical logic
* We use de Bruijn variables.
* We use a deep embedding o... |
189cba786cb630420cef2c89711f1acdd2b6c559 | 947fa6c38e48771ae886239b4edce6db6e18d0fb | /src/topology/algebra/group.lean | f004a03a18af3f844b15190890c02c5959b12550 | [
"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 | 59,460 | 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 group_theory.group_action.conj_act
import group_theory.group_action.quotient
import order.filter.pointwise
import topology.alge... |
11ff793f4eebabbfae7baa50209b01f061bcb256 | 6432ea7a083ff6ba21ea17af9ee47b9c371760f7 | /doc/examples/NFM2022/nfm13.lean | a78cd872f945e2dcdc8f08e8a9677615360f13f5 | [
"Apache-2.0",
"LLVM-exception",
"NCSA",
"LGPL-3.0-only",
"LicenseRef-scancode-inner-net-2.0",
"BSD-3-Clause",
"LGPL-2.0-or-later",
"Spencer-94",
"LGPL-2.1-or-later",
"HPND",
"LicenseRef-scancode-pcre",
"ISC",
"LGPL-2.1-only",
"LicenseRef-scancode-other-permissive",
"SunPro",
"CMU-Mach"... | permissive | leanprover/lean4 | 4bdf9790294964627eb9be79f5e8f6157780b4cc | f1f9dc0f2f531af3312398999d8b8303fa5f096b | refs/heads/master | 1,693,360,665,786 | 1,693,350,868,000 | 1,693,350,868,000 | 129,571,436 | 2,827 | 311 | Apache-2.0 | 1,694,716,156,000 | 1,523,760,560,000 | Lean | UTF-8 | Lean | false | false | 1,134 | lean | /- Type classes are heavily used in Lean -/
namespace Example
class Mul (α : Type u) where
mul : α → α → α
infixl:70 " * " => Mul.mul
def double [Mul α] (a : α) := a * a
class Semigroup (α : Type u) extends Mul α where
mul_assoc : ∀ a b c : α, (a * b) * c = a * (b * c)
instance : Semigroup Nat where
mul := N... |
9b202beb1a3494e4342a27cc8523cc848aac0591 | d9d511f37a523cd7659d6f573f990e2a0af93c6f | /src/data/polynomial/algebra_map.lean | a0081dbe5d7c308ac7064e44595cf0d40d3dc95a | [
"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 | 11,659 | lean | /-
Copyright (c) 2018 Chris Hughes. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Chris Hughes, Johannes Hölzl, Scott Morrison, Jens Wagemaker
-/
import algebra.algebra.tower
import data.polynomial.eval
/-!
# Theory of univariate polynomials
We show that `polynomial... |
814b5aac54bab915f98202ec7b4dffa9b70a6f66 | 74addaa0e41490cbaf2abd313a764c96df57b05d | /Mathlib/algebra/category/Group/zero_auto.lean | 387f51e7b8f789deae461f4253e758d77e83193f | [] | 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,225 | lean | /-
Copyright (c) 2020 Scott Morrison. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Scott Morrison
-/
import Mathlib.PrePort
import Mathlib.Lean3Lib.init.default
import Mathlib.algebra.category.Group.basic
import Mathlib.category_theory.limits.shapes.zero
import Mathl... |
61efd483373676d741fdc41235147a310942515a | 4727251e0cd73359b15b664c3170e5d754078599 | /src/topology/sets/opens.lean | 8c33856bc9a4d5595825f623d1a2143453f65938 | [
"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 | 9,197 | 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, Floris van Doorn
-/
import order.hom.complete_lattice
import topology.bases
import topology.homeomorph
import topology.continuous_function.basic
/-!
# ... |
862ed773202c230e4f41108703dfee75b8b4a124 | aa2345b30d710f7e75f13157a35845ee6d48c017 | /order/filter.lean | 24858b73d9b6b6467c306c3fd735b0d9d11ebd5b | [
"Apache-2.0"
] | permissive | CohenCyril/mathlib | 5241b20a3fd0ac0133e48e618a5fb7761ca7dcbe | a12d5a192f5923016752f638d19fc1a51610f163 | refs/heads/master | 1,586,031,957,957 | 1,541,432,824,000 | 1,541,432,824,000 | 156,246,337 | 0 | 0 | Apache-2.0 | 1,541,434,514,000 | 1,541,434,513,000 | null | UTF-8 | Lean | false | false | 93,993 | 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
Theory of filters on sets.
-/
import order.galois_connection order.zorn
import data.set.finite data.list
import category.applicative
open lattice set
universes u v w x... |
0b3cb59f8620cdf33d9015f50258332782f67085 | 137c667471a40116a7afd7261f030b30180468c2 | /src/algebra/big_operators/ring.lean | 67c8e496160554e782221deb9db983c7b8801a33 | [
"Apache-2.0"
] | permissive | bragadeesh153/mathlib | 46bf814cfb1eecb34b5d1549b9117dc60f657792 | b577bb2cd1f96eb47031878256856020b76f73cd | refs/heads/master | 1,687,435,188,334 | 1,626,384,207,000 | 1,626,384,207,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 9,430 | 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 algebra.big_operators.basic
import data.finset.pi
import data.finset.powerset
/-!
# Results about big operators with values in a (semi)ring
We prove results... |
80bcfb0a1c3fd9c518d2c1762442c8a76b98eb88 | bbecf0f1968d1fba4124103e4f6b55251d08e9c4 | /src/tactic/converter/interactive.lean | cf06fb68051cbbefe0817eaf9e025fcd1493d9e8 | [
"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 | 4,294 | lean | /-
Copyright (c) 2017 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Lucas Allen, Keeley Hoek, Leonardo de Moura
Converter monad for building simplifiers.
-/
import tactic.core
import tactic.converter.old_conv
namespace old_conv
meta def save_i... |
719d21cba1bc8af8e20e5356de4987e544a1b755 | fa02ed5a3c9c0adee3c26887a16855e7841c668b | /src/algebra/algebra/ordered.lean | e62eeef51ba66b27e45390d5bcd8c62a1f88b437 | [
"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,721 | lean | /-
Copyright (c) 2020 Scott Morrison. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Scott Morrison
-/
import algebra.algebra.basic
import algebra.module.ordered
/-!
# Ordered algebras
An ordered algebra is an ordered semiring, which is an algebra over an ordered co... |
51067923234577e9eef7a929060e56e531fad7a7 | c777c32c8e484e195053731103c5e52af26a25d1 | /src/topology/algebra/module/basic.lean | aafd5fefb87f1b57983bfb706859a38e24a8c1a0 | [
"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 | 93,228 | lean | /-
Copyright (c) 2019 Sébastien Gouëzel. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Jan-David Salchow, Sébastien Gouëzel, Jean Lo, Yury Kudryashov, Frédéric Dupuis,
Heather Macbeth
-/
import topology.algebra.ring.basic
import topology.algebra.mul_action
import to... |
071eb8f503bc751fc1debaf2d4c0751d721a876f | 947b78d97130d56365ae2ec264df196ce769371a | /tests/lean/run/meta2.lean | 077e2ffab612795107946b8b864f868df5f7b93c | [
"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 | 19,875 | lean | import Lean.Meta
new_frontend
open Lean
open Lean.Meta
-- set_option trace.Meta true
--set_option trace.Meta.isDefEq.step false
-- set_option trace.Meta.isDefEq.delta false
set_option trace.Meta.debug true
def print (msg : MessageData) : MetaM Unit :=
trace! `Meta.debug msg
def checkM (x : MetaM Bool) : MetaM Unit :... |
96f10020a49ec0cb9d483267a8ca5cb658bc753b | 6432ea7a083ff6ba21ea17af9ee47b9c371760f7 | /tests/playground/eval2.lean | fd51496fb7f3c561cf3aee11c99aea064db7efeb | [
"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 | 769 | lean | import init.lean.evalconst
open Lean
def someVal := 100
def someVal2 : UInt64 := 302
def someVal3 : Bool := true
def add10 (n : Nat) := n+10
def mul10 (n : Nat) := n*10
def inc (n : Nat) := n+1
unsafe def evalNatFn (fName : Name) (n : Nat) : IO Unit :=
do f ← evalConst (Nat → Nat) fName,
IO.println (f n)
unsafe d... |
c2e1143f7b6e429d992a2b6a3942bf469bc174b7 | 8cae430f0a71442d02dbb1cbb14073b31048e4b0 | /src/tactic/generalizes.lean | 613c5bda40aaf029d6b9683a042e4b6a9eb91c9f | [
"Apache-2.0"
] | permissive | leanprover-community/mathlib | 56a2cadd17ac88caf4ece0a775932fa26327ba0e | 442a83d738cb208d3600056c489be16900ba701d | refs/heads/master | 1,693,584,102,358 | 1,693,471,902,000 | 1,693,471,902,000 | 97,922,418 | 1,595 | 352 | Apache-2.0 | 1,694,693,445,000 | 1,500,624,130,000 | Lean | UTF-8 | Lean | false | false | 8,897 | lean | /-
Copyright (c) 2020 Jannis Limperg. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Jannis Limperg
-/
import tactic.core
/-!
# The `generalizes` tactic
This module defines the `tactic.generalizes'` tactic and its interactive version
`tactic.interactive.generalizes`... |
c4d85f787b9a9dffc819163332d9370080a9a09c | 6ccb5ca9e90a0387f7fd4ee6150c04fa815186c5 | /Lie_theory/src/Algebra/lie_group_algebra.lean | d0a04f7ef8c80c038213f72b030b61e6b13fffc7 | [] | no_license | AnthonyBordg/Geometry_in_Lean | a2d034aed2bc37041eff4bd5f3b0213f08b57e44 | b0f11164e9f695097b5c0e404a0dc429cdc24bb8 | refs/heads/master | 1,677,197,927,686 | 1,612,521,636,000 | 1,612,521,636,000 | 235,324,945 | 0 | 0 | null | 1,610,621,725,000 | 1,579,605,620,000 | Lean | UTF-8 | Lean | false | false | 5,674 | lean | /-
Copyright © 2020 Nicolò Cavalleri. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Author: Nicolò Cavalleri.
-/
import geometry.manifold.tangent_bundle_derivation
import ring_theory.derivation
noncomputable theory
open_locale lie_group manifold
variables {𝕜 : Type*} [non... |
76fde368f9ef9becbc553f7f4d43c58f8441ea2e | 9be442d9ec2fcf442516ed6e9e1660aa9071b7bd | /tests/lean/run/unfoldMany.lean | 0f331aa8184cb60589d1141b4c977721a842fa9b | [
"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 | 107 | lean | def f (x : Nat) := x + 1
def g (x : Nat) := f x + f x
example : g x > 0 := by
unfold g, f
simp_arith
|
fa96a68707ace7bcbc7705c3360409a6681c4a13 | b7f22e51856f4989b970961f794f1c435f9b8f78 | /tests/lean/run/all_goals2.lean | a0a48db868998ffd1bd1cedb69244700e3fd7ae6 | [
"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 | 449 | lean | import data.nat
open nat
attribute nat.add [unfold 2]
attribute nat.rec_on [unfold 2]
infixl `;`:15 := tactic.and_then
namespace tactic
definition then_all (t1 t2 : tactic) : tactic :=
focus (t1 ; all_goals t2)
end tactic
tactic_infixl `;;`:15 := tactic.then_all
open tactic
example (a b c : nat) : (a + 0 = 0 +... |
88bd7b5e775905578b11a282a6d6eecad385c6e6 | d406927ab5617694ec9ea7001f101b7c9e3d9702 | /src/algebra/category/Module/tannaka.lean | fd59fa8f4bab3fa68e1262d5ccc5c9b4c30131b9 | [
"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,328 | lean | /-
Copyright (c) 2022 Scott Morrison. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Scott Morrison
-/
import algebra.category.Module.basic
/-!
# Tannaka duality for rings
A ring `R` is equivalent to
the endomorphisms of the additive forgetful functor `Module R ⥤ Add... |
c1ad8b338d0cc5e55b9371a3960b3572bcdc4dbc | c0807e3249ba126be15fd22370e98ae1a6dac0f0 | /tests/Tests/HashString.lean | bc88f620ae90c8d320151ba5a9923f89d66d4cc8 | [] | no_license | tydeu/lean-blake3 | 1297035629db93e13ffa6a4381f9a0dc496f796f | 26fab13b7d37a7c473bd3aaf8a585c5b44b64839 | refs/heads/main | 1,693,063,372,343 | 1,634,843,383,000 | 1,634,843,383,000 | 419,835,491 | 1 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 206 | lean | import Blake3
open Blake3
def String.toByteArray (s : String) : ByteArray :=
(List.map
(fun c : Char => c.toNat.toUInt8) s.toList).toByteArray
#eval Blake3.version
#eval (hash "hello".toByteArray)
|
07a8d4d592595d9367d2ae51cb1f5afd7c9e430a | 94e33a31faa76775069b071adea97e86e218a8ee | /src/category_theory/limits/constructions/limits_of_products_and_equalizers.lean | 36ff81958f62f9578c4ba3abadabf93245ef6a20 | [
"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,425 | lean | /-
Copyright (c) 2020 Bhavik Mehta. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Bhavik Mehta, Scott Morrison
-/
import category_theory.limits.shapes.equalizers
import category_theory.limits.shapes.finite_products
import category_theory.limits.preserves.shapes.produc... |
e0509a438a0c6bcf1db49f7ae5baae0e339731ef | 9dc8cecdf3c4634764a18254e94d43da07142918 | /src/data/finset/pointwise.lean | 2a2078225347a06834bdee10b4552e88df8faf12 | [
"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 | 48,525 | lean | /-
Copyright (c) 2020 Floris van Doorn. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Floris van Doorn, Yaël Dillies
-/
import data.finset.n_ary
import data.finset.preimage
import data.set.pointwise
/-!
# Pointwise operations of finsets
This file defines pointwise a... |
e5dc239879933e9854b1d2841fe31df54c168584 | 957a80ea22c5abb4f4670b250d55534d9db99108 | /tests/lean/run/class3.lean | 49612f93ae9fbbb7924bc992c9c3d755895c2199 | [
"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 | 218 | lean | open tactic
section
variable {A : Type}
variable {B : Type}
variable Ha : inhabited A
variable Hb : inhabited B
include Ha Hb
theorem tst : inhabited (Prop × A × B) := by apply_instance
end
#print tst
|
67f5b904bba6481012c98e803f0d7c88d9ab6e97 | c09f5945267fd905e23a77be83d9a78580e04a4a | /src/topology/compact_open.lean | b1977e8461c5f169a718f7f8d6e0d4e917929260 | [
"Apache-2.0"
] | permissive | OHIHIYA20/mathlib | 023a6df35355b5b6eb931c404f7dd7535dccfa89 | 1ec0a1f49db97d45e8666a3bf33217ff79ca1d87 | refs/heads/master | 1,587,964,529,965 | 1,551,819,319,000 | 1,551,819,319,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 4,083 | lean | /-
Copyright (c) 2018 Reid Barton. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Reid Barton
Type of continuous maps and the compact-open topology on them.
-/
import topology.constructions tactic.tidy
open set
universes u v w
def continuous_map (α : Type u) (β : ... |
3f28392ae95ece57f706d4acf6a50eef6b569099 | a9d0fb7b0e4f802bd3857b803e6c5c23d87fef91 | /library/init/meta/fun_info.lean | 01697eb335cc2f4daf39d72dbfe1018040616500 | [
"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 | 4,781 | 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.meta.tactic init.meta.format init.function
structure param_info :=
(is_implicit : bool)
(is_inst_implicit : bool)
(is_prop ... |
ef9d8f3cca1d231cb642859ca3176da92dcd8432 | 8cae430f0a71442d02dbb1cbb14073b31048e4b0 | /src/representation_theory/maschke.lean | 6240b8f84dea376ca73653de5ba06d11fe2aad3b | [
"Apache-2.0"
] | permissive | leanprover-community/mathlib | 56a2cadd17ac88caf4ece0a775932fa26327ba0e | 442a83d738cb208d3600056c489be16900ba701d | refs/heads/master | 1,693,584,102,358 | 1,693,471,902,000 | 1,693,471,902,000 | 97,922,418 | 1,595 | 352 | Apache-2.0 | 1,694,693,445,000 | 1,500,624,130,000 | Lean | UTF-8 | Lean | false | false | 6,602 | 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.monoid_algebra.basic
import algebra.char_p.invertible
import linear_algebra.basis
/-!
# Maschke's theorem
> THIS FILE IS SYNCHRONIZED WITH MATHLIB4.
... |
10ff326468a85175e9cfa5f11030a3d8eb8e7244 | 9dd3f3912f7321eb58ee9aa8f21778ad6221f87c | /tests/lean/run/hinst_lemmas1.lean | 42f5e2067da0b7cf40725d2367aec8d65367203b | [
"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 | 313 | lean | run_command
do
tactic.trace "hinst_lemmas example:",
hs ← return $ hinst_lemmas.mk,
h₁ ← hinst_lemma.mk_from_decl `add_zero,
h₂ ← hinst_lemma.mk_from_decl `zero_add,
h₃ ← hinst_lemma.mk_from_decl `add_comm,
hs ← return $ ((hs^.add h₁)^.add h₂)^.add h₃,
hs^.pp >>= tactic.trace
|
8c59ab42e9627fd32789d19553fe4bd84e2788e1 | 6432ea7a083ff6ba21ea17af9ee47b9c371760f7 | /tests/lean/255.lean | fa4b3311b350c1c92c5106e34f9af66be3e48987 | [
"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 | 326 | lean | def x := 1
section
variable (α : Type)
variable (x : α)
notation "A" => id x
#check A
theorem test : A = A := rfl
section
variable (x : Nat)
#check A -- should use shadowed `x`
end
end
#check A -- escaping section variable, should fail
section
variable (x : Nat)
#check A -- should fail
... |
3de3e215623d475ea11e99c004132891a81d9d64 | 097294e9b80f0d9893ac160b9c7219aa135b51b9 | /instructor/identifiers/defnb.lean | d01c697ff64c20045f63406e122235478b572513 | [] | no_license | AbigailCastro17/CS2102-Discrete-Math | cf296251be9418ce90206f5e66bde9163e21abf9 | d741e4d2d6a9b2e0c8380e51706218b8f608cee4 | refs/heads/main | 1,682,891,087,358 | 1,621,401,341,000 | 1,621,401,341,000 | 368,749,959 | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 211 | lean | import algebra.archimedean
-- Bind identifer bool_true to term, tt, for Boolean true
def bool_true := tt
-- Bind the name, a_string, to the string, "I love logic!"
def a_string := "I love logic!"
#check 0 |
b3d78dcf556e54eebdc3fdacb6b76931c43875e1 | dc253be9829b840f15d96d986e0c13520b085033 | /algebra/splice.hlean | 8c6c05d950890413fa445f362056a9a08e61c1b1 | [
"Apache-2.0"
] | permissive | cmu-phil/Spectral | 4ce68e5c1ef2a812ffda5260e9f09f41b85ae0ea | 3b078f5f1de251637decf04bd3fc8aa01930a6b3 | refs/heads/master | 1,685,119,195,535 | 1,684,169,772,000 | 1,684,169,772,000 | 46,450,197 | 42 | 13 | null | 1,505,516,767,000 | 1,447,883,921,000 | Lean | UTF-8 | Lean | false | false | 5,097 | hlean | /-
Copyright (c) 2016 Floris van Doorn. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Floris van Doorn
Given a sequence of LES's, we want to splice them together.
... -> G_{1,k+1} -> G_{1,k} -> ... -> G_{1,1} -> G_{1,0}
... -> G_{2,k+1} -> G_{2,k} -> ... -> G_{2,1} ... |
f07ccdddc22201b305bdcb204102b40eefb59fb0 | 8b9f17008684d796c8022dab552e42f0cb6fb347 | /tests/lean/run/group3.lean | d8c3828aab505d66409f571c6501b8fffbd6096c | [
"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 | 8,234 | 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
-- algebra.group
-- =============
-- Various structures with 1, *, inv, including groups.
import logic.eq
import data.unit data.sigma data.prod... |
67f4273da49339c7a7ad5af20339cd432da722a7 | dd4e652c749fea9ac77e404005cb3470e5f75469 | /src/alex_playground/fun.lean | e9683dc45517dd6a1be838587ba2d2a0914bdaf9 | [] | 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 | 1,753 | lean | import data.finsupp
universe variable u
instance has_zero_Type : has_zero Type :=
{ zero := unit }
def mytype := string →₀ Type
structure varbag (ty : string → Type) :=
(val : Π (v : string), ty v)
def myvarbag : varbag (λ v, if v = "x" then ℕ else unit) :=
varbag.mk begin
intro v,
by_cases v = "x",
simp [h],
exa... |
88b274bc2a44b7fb2d20ce87fb50451420b1b366 | 4d2583807a5ac6caaffd3d7a5f646d61ca85d532 | /src/linear_algebra/tensor_product.lean | ab0b0260d1f6a6dfe030bb3a83f145f2f5880bd3 | [
"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 | 38,384 | lean | /-
Copyright (c) 2018 Kenny Lau. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Kenny Lau, Mario Carneiro
-/
import group_theory.congruence
import linear_algebra.bilinear_map
/-!
# Tensor product of modules over commutative semirings.
This file constructs the tensor... |
ddc825bc42f71c4aa993d50b8bc07bcddb26fb97 | 4bcaca5dc83d49803f72b7b5920b75b6e7d9de2d | /stage0/src/Lean/Attributes.lean | 9b2bcd1c60c904a5a30fe7aae3a7447c1f5ecd84 | [
"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 | 19,469 | 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.Syntax
import Lean.CoreM
import Lean.ResolveName
namespace Lean
inductive AttributeApplicationTime where
| afterTypeChecking | afterCompilat... |
4f6762727aebf72930a5008ead6af34043d9da39 | 32025d5c2d6e33ad3b6dd8a3c91e1e838066a7f7 | /tests/lean/run/newfrontend3.lean | 11a86ff3bd284fead93b83a6d010db02ec4b5770 | [
"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 | 500 | lean | structure S :=
(g {α} : α → α)
def f (h : Nat → (forall {α : Type}, α → α) × Bool) : Nat :=
(h 0).1 1
new_frontend
def tst : Nat :=
f (fun n => (fun x => x, true))
theorem ex : id (Nat → Nat) :=
by {
intro;
assumption
}
def g (i j k : Nat) (a : Array Nat) (h₁ : i < k) (h₂ : k < j) (h₃ : j < a.size) : Nat :=
l... |
f9946129343efaabf5c7e58c2e87f002b5d7d16a | a0e23cfdd129a671bf3154ee1a8a3a72bf4c7940 | /tests/lean/cacheIssue.lean | 21c9ec92d55bd7fd17ca6e6b79b6c121e79c8b21 | [
"Apache-2.0"
] | permissive | WojciechKarpiel/lean4 | 7f89706b8e3c1f942b83a2c91a3a00b05da0e65b | f6e1314fa08293dea66a329e05b6c196a0189163 | refs/heads/master | 1,686,633,402,214 | 1,625,821,189,000 | 1,625,821,258,000 | 384,640,886 | 0 | 0 | Apache-2.0 | 1,625,903,617,000 | 1,625,903,026,000 | null | UTF-8 | Lean | false | false | 327 | lean | structure Foo (A B : Type) := f : Unit -> A
def foo (P) : Foo ((p : P) -> Nat) ({p : P} -> Nat) := ⟨λ _ _ => 0⟩
def bar (P) : Foo ((p : P) -> Nat) ({p : P} -> Int) := ⟨λ _ _ => 0⟩
#check foo Bool
#check (foo Bool).f -- (foo Bool).f : Unit → Bool → Nat
#check (bar Bool).f -- (bar Bool).f : Unit → Bool → Nat
|
74e2733ca7c420b88a4e9c2482b9fe06d8d2f48a | 618003631150032a5676f229d13a079ac875ff77 | /src/data/real/cau_seq.lean | 38792069834f4062fc20d066bab5fa29519e64b4 | [
"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 | 24,859 | 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 algebra.big_operators
/-!
# Cauchy sequences
A basic theory of Cauchy sequences, used in the construction of the reals and p-adic numbers. Where
applicable, ... |
e3700ea7f33dcbdd0e88f745ec0795b64f99feba | 4efff1f47634ff19e2f786deadd394270a59ecd2 | /src/category_theory/types.lean | 498ece5a12fbcb313b837a02a2fc1f27330aa20a | [
"Apache-2.0"
] | permissive | agjftucker/mathlib | d634cd0d5256b6325e3c55bb7fb2403548371707 | 87fe50de17b00af533f72a102d0adefe4a2285e8 | refs/heads/master | 1,625,378,131,941 | 1,599,166,526,000 | 1,599,166,526,000 | 160,748,509 | 0 | 0 | Apache-2.0 | 1,544,141,789,000 | 1,544,141,789,000 | null | UTF-8 | Lean | false | false | 9,764 | 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... |
7be0f62dc64f38046e6486b7e10376c3e44d7df8 | a0e23cfdd129a671bf3154ee1a8a3a72bf4c7940 | /src/Lean/Meta/GeneralizeVars.lean | b5ca3481ff5da8c0b7558e50adbadf8ac4dec73c | [
"Apache-2.0"
] | permissive | WojciechKarpiel/lean4 | 7f89706b8e3c1f942b83a2c91a3a00b05da0e65b | f6e1314fa08293dea66a329e05b6c196a0189163 | refs/heads/master | 1,686,633,402,214 | 1,625,821,189,000 | 1,625,821,258,000 | 384,640,886 | 0 | 0 | Apache-2.0 | 1,625,903,617,000 | 1,625,903,026,000 | null | UTF-8 | Lean | false | false | 2,949 | 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.Basic
import Lean.Util.CollectFVars
namespace Lean.Meta
/--
Add to `forbidden` all a set of `FVarId`s containing `targets` and all vari... |
de23bf39721323832c5adc7428aee6359d145354 | 947b78d97130d56365ae2ec264df196ce769371a | /src/Lean/Elab/PreDefinition/Basic.lean | 7bb66811098274ba42e8069f40ae482962f8aeed | [
"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,647 | lean | /-
Copyright (c) 2020 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Leonardo de Moura
-/
import Lean.Util.SCC
import Lean.Meta.AbstractNestedProofs
import Lean.Elab.Term
import Lean.Elab.DefView
import Lean.Elab.PreDefinition.MkInhabitant
names... |
33b76c192f04f627f91845d5a3936d93413d074a | 57aec6ee746bc7e3a3dd5e767e53bd95beb82f6d | /src/Lean/Meta/Tactic/Replace.lean | 5171638033b276f3ba9ae6a3a4a189d19a35eaa4 | [
"Apache-2.0"
] | permissive | collares/lean4 | 861a9269c4592bce49b71059e232ff0bfe4594cc | 52a4f535d853a2c7c7eea5fee8a4fa04c682c1ee | refs/heads/master | 1,691,419,031,324 | 1,618,678,138,000 | 1,618,678,138,000 | 358,989,750 | 0 | 0 | Apache-2.0 | 1,618,696,333,000 | 1,618,696,333,000 | null | UTF-8 | Lean | false | false | 4,834 | lean | /-
Copyright (c) 2020 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Leonardo de Moura
-/
import Lean.Util.ForEachExpr
import Lean.Meta.AppBuilder
import Lean.Meta.Tactic.Util
import Lean.Meta.Tactic.Revert
import Lean.Meta.Tactic.Intro
import Le... |
774ac7a54242454c4043b3b33a0745f6da1aec25 | 969dbdfed67fda40a6f5a2b4f8c4a3c7dc01e0fb | /src/category_theory/yoneda.lean | 50a56fd8c5a52c278aa5fd088f957a332a916a7c | [
"Apache-2.0"
] | permissive | SAAluthwela/mathlib | 62044349d72dd63983a8500214736aa7779634d3 | 83a4b8b990907291421de54a78988c024dc8a552 | refs/heads/master | 1,679,433,873,417 | 1,615,998,031,000 | 1,615,998,031,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 9,945 | lean | /-
Copyright (c) 2017 Scott Morrison. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Scott Morrison
-/
import category_theory.hom_functor
/-!
# The Yoneda embedding
The Yoneda embedding as a functor `yoneda : C ⥤ (Cᵒᵖ ⥤ Type v₁)`,
along with an instance that it is `f... |
0100707c89112e6fa4cde23a58add4002b0d8355 | 90edd5cdcf93124fe15627f7304069fdce3442dd | /src/Lean/Aesop/BestFirstSearch.lean | dd6f1bcaf1ed7875be93de5f9f6799f4f49e8ef5 | [
"Apache-2.0"
] | permissive | JLimperg/lean4-aesop | 8a9d9cd3ee484a8e67fda2dd9822d76708098712 | 5c4b9a3e05c32f69a4357c3047c274f4b94f9c71 | refs/heads/master | 1,689,415,944,104 | 1,627,383,284,000 | 1,627,383,284,000 | 377,536,770 | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 19,328 | lean | /-
Copyright (c) 2021 Jannis Limperg. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Jannis Limperg, Asta Halkjær From
-/
import Lean.Aesop.Rule
import Lean.Aesop.Tree
import Lean.Aesop.Util
open Lean
open Lean.Meta
open Lean.Elab
open Lean.Elab.Tactic
open Std (Bino... |
1aeb0ca2ff907f29872ec838b0b0766f1f4f46a8 | 8cae430f0a71442d02dbb1cbb14073b31048e4b0 | /src/category_theory/is_connected.lean | 5c24658d6df5774a554bc79fa43c83df825361bf | [
"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 | 15,245 | lean | /-
Copyright (c) 2020 Bhavik Mehta. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Bhavik Mehta, Jakob von Raumer
-/
import data.list.chain
import category_theory.punit
import category_theory.groupoid
import category_theory.category.ulift
/-!
# Connected category
> T... |
07aa623ff73ec37a4de119ae423674d3bbd09bf9 | 2eab05920d6eeb06665e1a6df77b3157354316ad | /src/algebra/category/Group/basic.lean | 3616b50b4566ffa29eeef5a35193f370151e3e18 | [
"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 | 9,886 | lean | /-
Copyright (c) 2018 Johan Commelin. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Johan Commelin
-/
import algebra.category.Mon.basic
import category_theory.endomorphism
/-!
# Category instances for group, add_group, comm_group, and add_comm_group.
We introduce th... |
26928513630068f40194259c0a535b5f907b9264 | b70447c014d9e71cf619ebc9f539b262c19c2e0b | /hott/algebra/homomorphism.hlean | e65b7d2e16a1326a42f0ef08ccec70866ccb7c41 | [
"Apache-2.0"
] | permissive | ia0/lean2 | c20d8da69657f94b1d161f9590a4c635f8dc87f3 | d86284da630acb78fa5dc3b0b106153c50ffccd0 | refs/heads/master | 1,611,399,322,751 | 1,495,751,007,000 | 1,495,751,007,000 | 93,104,167 | 0 | 0 | null | 1,496,355,488,000 | 1,496,355,487,000 | null | UTF-8 | Lean | false | false | 6,158 | hlean | /-
Copyright (c) 2016 Jeremy Avigad. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Author: Jeremy Avigad
Homomorphisms between structures.
-/
import algebra.ring function
open eq function is_trunc
namespace algebra
/- additive structures -/
variables {A B C : Type}
defini... |
a3a4658d4603e8a7d9f635426fe8d9a90cb567f1 | 5749d8999a76f3a8fddceca1f6941981e33aaa96 | /src/field_theory/mv_polynomial.lean | 7b933995b92f21bb84d109fd961b34db24232ce4 | [
"Apache-2.0"
] | permissive | jdsalchow/mathlib | 13ab43ef0d0515a17e550b16d09bd14b76125276 | 497e692b946d93906900bb33a51fd243e7649406 | refs/heads/master | 1,585,819,143,348 | 1,580,072,892,000 | 1,580,072,892,000 | 154,287,128 | 0 | 0 | Apache-2.0 | 1,540,281,610,000 | 1,540,281,609,000 | null | UTF-8 | Lean | false | false | 9,407 | lean | /-
Copyright (c) 2019 Johannes Hölzl. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Author: Johannes Hölzl
Multivariate functions of the form `α^n → α` are isomorphic to multivariate polynomials in
`n` variables.
-/
import linear_algebra.finsupp_vector_space field_theory.fini... |
b1d38dde14aa503add90f451a8056159300cb7d4 | 64874bd1010548c7f5a6e3e8902efa63baaff785 | /library/data/nat/comm_semiring.lean | 2d144166aa0347b68315f497938327aec899c4b0 | [
"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 | 2,432 | lean | /-
Copyright (c) 2014 Floris van Doorn. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Module: data.nat.comm_semiring
Author: Jeremy Avigad
ℕ is a comm_semiring.
-/
import data.nat.basic algebra.binary algebra.ring
open binary
namespace nat
section
open [classes] algebra
... |
5860838cc474b34e8601aa88f672dabd6f7e5bbe | ad0c7d243dc1bd563419e2767ed42fb323d7beea | /linear_algebra/basic.lean | 42255715a6918d2e0d247af1d4ab6b4bf7e0417b | [
"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 | 37,417 | 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
Linear algebra -- classical
This file is inspired by Isabelle/HOL's linear algebra, and hence indirectly by HOL Light.
We define the following concepts:
* `lc α β`: l... |
d364fd77887871c0850f3d0c793e8ae610848638 | c777c32c8e484e195053731103c5e52af26a25d1 | /src/geometry/manifold/cont_mdiff_map.lean | 05bad7919e59830c6e95b84ed00a049e1e18fbf9 | [
"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 | 4,021 | 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.cont_mdiff_mfderiv
import topology.continuous_function.basic
/-!
# Smooth bundled map
In this file we define the type `cont_mdiff_map` o... |
e87bc40efa8fca2568036ed054a9f1c6abc2c7c7 | 74addaa0e41490cbaf2abd313a764c96df57b05d | /Mathlib/data/padics/ring_homs.lean | 788b5ebdc8711ebdd7ad0642a78fcddb677ab13e | [] | 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 | 16,166 | lean | /-
Copyright (c) 2020 Johan Commelin and Robert Y. Lewis. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Johan Commelin and Robert Y. Lewis
-/
import Mathlib.PrePort
import Mathlib.Lean3Lib.init.default
import Mathlib.data.padics.padic_integers
import Mathlib.PostPort
... |
7dcc43625fbbaaa509def2b28aacef32c500c60d | a9d0fb7b0e4f802bd3857b803e6c5c23d87fef91 | /library/init/meta/occurrences.lean | 268fc039899e1f045165f7e95223da2a9cbd0f2f | [
"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 | 1,529 | 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.logic init.to_string init.meta.format
import init.meta.contradiction_tactic init.meta.constructor_tactic
import init.meta.relation_tacti... |
f578c3051c2fa558a66885488dff391948e843de | c777c32c8e484e195053731103c5e52af26a25d1 | /src/measure_theory/measure/giry_monad.lean | 2439ee3104357d260eaf0f5749f6b15d157b1935 | [
"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 | 8,431 | 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.integral.lebesgue
/-!
# The Giry monad
Let X be a measurable space. The collection of all measures on X again
forms a measurable space. This c... |
fe24dd7d26e276f71142c02fd055bf0fd1438dac | d59ced3811c6c828187298fe8f666ed93db5058d | /src/article2.lean | 32fb27390e48a85176489238f0916f88ff33f91d | [] | no_license | mbuceta/conceptual-mathematics-in-lean | d9c589d5fc8bf020cb7593c521321efd253e9790 | 3b8d461253781f93d73e783e7e53f20d1853f622 | refs/heads/master | 1,672,064,199,195 | 1,598,322,322,000 | 1,598,322,322,000 | 289,047,479 | 0 | 0 | null | 1,597,938,702,000 | 1,597,938,701,000 | null | UTF-8 | Lean | false | false | 16,627 | lean | import category_theory.category
import category_theory.isomorphism
import category_theory.types
import data.fintype.basic
import data.real.basic
import magma
open category_theory
section exercises
variables {C: Type*} [category C]
variables (A B D A' B' D' : C)
-- Exercise 1 page 40
example : is_iso(𝟙 A) := {inv ... |
4091034afe0f31839823147a7d9dc4e2862cf018 | f3849be5d845a1cb97680f0bbbe03b85518312f0 | /tests/lean/run/1089.lean | 18b00b932978e04e785d38000e4d84fde41428a3 | [
"Apache-2.0"
] | permissive | bjoeris/lean | 0ed95125d762b17bfcb54dad1f9721f953f92eeb | 4e496b78d5e73545fa4f9a807155113d8e6b0561 | refs/heads/master | 1,611,251,218,281 | 1,495,337,658,000 | 1,495,337,658,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 326 | lean | import system.io
inductive token
| eof : token
| plus : token
| var : string -> token
open token
open option
def to_token : string → option token
| [] := none
| (c :: cs) :=
let t : option token := match c with
| 'x' := some (var "x")
| 'y' := some (var "y")
| '+' := some plus
| _ := none
end i... |
9fb78606848ff17979f76e53dcbb461ba041b632 | 626e312b5c1cb2d88fca108f5933076012633192 | /src/measure_theory/function/continuous_map_dense.lean | dc7ef91cbc446a41d1aa79f149a6fb2b3127be9a | [
"Apache-2.0"
] | permissive | Bioye97/mathlib | 9db2f9ee54418d29dd06996279ba9dc874fd6beb | 782a20a27ee83b523f801ff34efb1a9557085019 | refs/heads/master | 1,690,305,956,488 | 1,631,067,774,000 | 1,631,067,774,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 10,302 | lean | /-
Copyright (c) 2021 Heather Macbeth. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Heather Macbeth
-/
import measure_theory.measure.regular
import measure_theory.function.simple_func_dense
import topology.urysohns_lemma
/-!
# Approximation in Lᵖ by continuous func... |
11c66558967191b44d9154ef47de703504529583 | 94e33a31faa76775069b071adea97e86e218a8ee | /src/linear_algebra/pi_tensor_product.lean | a637590fc86cac998dbee4e953b8ab287946d7ea | [
"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 | 24,348 | lean | /-
Copyright (c) 2020 Frédéric Dupuis. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Frédéric Dupuis, Eric Wieser
-/
import group_theory.congruence
import linear_algebra.multilinear.tensor_product
/-!
# Tensor product of an indexed family of modules over commutative... |
b7a84064e4b2dbc94be8884f5f9af9ba150b400a | d406927ab5617694ec9ea7001f101b7c9e3d9702 | /src/data/list/zip.lean | 7202ba95e15018b720b48d05b36b09e3e4d767d2 | [
"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 | 18,157 | lean | /-
Copyright (c) 2018 Mario Carneiro. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Mario Carneiro, Kenny Lau
-/
import data.list.big_operators.basic
import algebra.order.monoid.min_max
/-!
# zip & unzip
This file provides results about `list.zip_with`, `list.zip` a... |
232411fefde0549e2bcdb7ffa0ba008d638d58d6 | 4bcaca5dc83d49803f72b7b5920b75b6e7d9de2d | /src/Lean/Elab/Level.lean | 77215415f07ea4a0d082960650e04f0fd80e7a72 | [
"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 | 3,298 | lean | /-
Copyright (c) 2019 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Leonardo de Moura
-/
import Lean.Meta.LevelDefEq
import Lean.Elab.Exception
import Lean.Elab.Log
import Lean.Elab.AutoBound
namespace Lean.Elab.Level
structure Context where
... |
a387278aaeedd4efb22b69d783f18561f215ebfe | 75db7e3219bba2fbf41bf5b905f34fcb3c6ca3f2 | /tests/lean/extra/597b.hlean | c7bdb2583ef48b1f0cc563753da15c54dd5c6929 | [
"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 | hlean | open equiv
-- open equiv.ops
constants (A B : Type₀) (f : A ≃ B)
definition foo : A → B := f -- should fail
|
fd8bb18aabecefc06fec52d11d1aaed1c89cb326 | 4727251e0cd73359b15b664c3170e5d754078599 | /src/data/list/sublists.lean | b8cae5900962779a88a9d9c57246334893adddae | [
"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 | 12,209 | lean | /-
Copyright (c) 2019 Mario Carneiro. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Mario Carneiro
-/
import data.list.basic
import data.nat.choose.basic
/-! # sublists
`list.sublists` gives a list of all (not necessarily contiguous) sublists of a list.
This file c... |
faa60a69b3689500f45b97ceabfb13f0b3089d26 | 0845ae2ca02071debcfd4ac24be871236c01784f | /tests/compiler/rbmap.lean | 727a8df358217ab1c7c64a158f5950715ccda434 | [
"Apache-2.0"
] | permissive | GaloisInc/lean4 | 74c267eb0e900bfaa23df8de86039483ecbd60b7 | 228ddd5fdcd98dd4e9c009f425284e86917938aa | refs/heads/master | 1,643,131,356,301 | 1,562,715,572,000 | 1,562,715,572,000 | 192,390,898 | 0 | 0 | null | 1,560,792,750,000 | 1,560,792,749,000 | null | UTF-8 | Lean | false | false | 2,268 | lean | def check (b : Bool) : IO Unit :=
unless b $ IO.println "ERROR"
def sz {α β : Type} {lt : α → α → Bool} (m : RBMap α β lt) : Nat :=
m.fold (fun sz _ _ => sz+1) 0
def depth {α β : Type} {lt : α → α → Bool} (m : RBMap α β lt) : Nat :=
m.depth Nat.max
def tst1 : IO Unit :=
do let Map := RBMap String Nat (fun a b => a <... |
ad4271877ad6b2d123399467e71e205b2f5cbcd0 | bb31430994044506fa42fd667e2d556327e18dfe | /src/algebra/star/self_adjoint.lean | 81aa4b3834f10f517202e60b7c306b4fa85d870a | [
"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 | 14,562 | lean | /-
Copyright (c) 2021 Frédéric Dupuis. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Frédéric Dupuis
-/
import algebra.star.basic
import group_theory.subgroup.basic
/-!
# Self-adjoint, skew-adjoint and normal elements of a star additive group
This file defines `sel... |
2b13d6417148290efed93a58fcd70359a0b110a7 | 63abd62053d479eae5abf4951554e1064a4c45b4 | /src/data/multiset/range.lean | 94bbcc0b9cf176a734df729aec52fd1e38442036 | [
"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 | 1,019 | lean | /-
Copyright (c) 2015 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Author: Mario Carneiro
-/
import data.multiset.basic
import data.list.range
open list nat
namespace multiset
/- range -/
/-- `range n` is the multiset lifted from the list `range n`,... |
f779539588a92c32e786a525636bd38c62550d91 | 947b78d97130d56365ae2ec264df196ce769371a | /src/Lean/LocalContext.lean | 5b8ff7993549d9f4461ce9ba7bb22f5caaccb635 | [
"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 | 14,678 | lean | /-
Copyright (c) 2019 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Leonardo de Moura
-/
import Std.Data.PersistentArray
import Lean.Expr
import Lean.Hygiene
namespace Lean
inductive LocalDecl
| cdecl (index : Nat) (fvarId : FVarId) (userName ... |
203708c8482a50b4e45bbd3983910e4db16d4139 | e514e8b939af519a1d5e9b30a850769d058df4e9 | /src/lib/table.lean | cadcbf3634646e6cbdf301ba1810f40c60674fc7 | [] | no_license | semorrison/lean-rewrite-search | dca317c5a52e170fb6ffc87c5ab767afb5e3e51a | e804b8f2753366b8957be839908230ee73f9e89f | refs/heads/master | 1,624,051,754,485 | 1,614,160,817,000 | 1,614,160,817,000 | 162,660,605 | 0 | 1 | null | null | null | null | UTF-8 | Lean | false | false | 5,293 | lean | import data.list
import .array
universes u v w z
attribute [inline] bool.decidable_eq option.is_some option.is_none list.head
attribute [inline] array.read array.write
def table_ref : Type := ℕ
def table_ref.from_nat (r : ℕ) : table_ref := r
def table_ref.to_nat (r : table_ref) : ℕ := r
def table_ref.to_string (r : ... |
c042ed7dcc1bbffc707188b6635c19cb1fb09a45 | c777c32c8e484e195053731103c5e52af26a25d1 | /src/analysis/normed_space/is_R_or_C.lean | 0b19875c5996e75f8bab0392133e4f0b92a34aff | [
"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 | 3,905 | 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 data.is_R_or_C.basic
import analysis.normed_space.operator_norm
import analysis.normed_space.pointwise
/-!
# Normed spaces over R or C
This file is about results... |
8c19e93c32f75bfd4f0caa12f2b434d9dbcfface | c777c32c8e484e195053731103c5e52af26a25d1 | /src/representation_theory/basic.lean | 9bef318df98bebba881808ff47fd9374bce04990 | [
"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 | 14,279 | lean | /-
Copyright (c) 2022 Antoine Labelle. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Antoine Labelle
-/
import algebra.module.basic
import algebra.module.linear_map
import algebra.monoid_algebra.basic
import linear_algebra.dual
import linear_algebra.contraction
import... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.