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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
5b989a25716c8d3863fe856a669ea5c9f5cf1ab3 | 947fa6c38e48771ae886239b4edce6db6e18d0fb | /src/category_theory/sites/subsheaf.lean | 70eace616b728c1260f904cfd2eb1ca6987fecba | [
"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 | 15,599 | lean | /-
Copyright (c) 2022 Andrew Yang. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Andrew Yang
-/
import category_theory.elementwise
import category_theory.sites.compatible_sheafification
import category_theory.limits.constructions.epi_mono
import category_theory.adjunc... |
a0772cef3ea55002a0b423dd3f491495eac86268 | 8cae430f0a71442d02dbb1cbb14073b31048e4b0 | /src/ring_theory/valuation/integers.lean | f1e917a727c7ba140a865be79530639916a61256 | [
"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,331 | 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 ring_theory.valuation.basic
/-!
# Ring of integers under a given valuation
> THIS FILE IS SYNCHRONIZED WITH MATHLIB4.
> Any changes to this file require a correspondi... |
1e9d4a7c720afd156374173a4a2d33a0a11018cb | 7453f4f6074a6d5ce92b7bee2b29c409c061fbef | /src/Interpolation/fin_lemmas.lean | 00a73e0caaeee0c82a6a296ecf5e12d9d26e0e6a | [
"Apache-2.0"
] | permissive | stanescuUW/numerical-analysis-with-Lean | b7b26755b8e925279f3afc1caa16b0666fc77ef8 | 98e6974f8b68cc5232ceff40535d776a33444c73 | refs/heads/master | 1,670,371,433,242 | 1,598,204,960,000 | 1,598,204,960,000 | 282,081,575 | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 4,380 | lean | import data.fin
import tactic
-- This does exist in mathlib
lemma fin_zero_le_any_val (n : ℕ) : ∀ i : fin (n + 2), 0 ≤ i :=
begin
intro i,
have j0 : 0 < n + 1 + 1, linarith,
have j0 := @fin.coe_val_of_lt (n+1) 0 j0,
have h3 : 0 ≤ i.val, linarith,
apply fin.le_iff_val_le_val.mpr,
rw ← j0 at h3,
... |
35b41cbc7f92ce628a569bb0db3c627668d2a4fd | 56e5b79a7ab4f2c52e6eb94f76d8100a25273cf3 | /src/tools/all_decls.lean | b076a54bd69d88416a00bffaf98fa2304ae5028b | [
"Apache-2.0"
] | permissive | DyeKuu/lean-tpe-public | 3a9968f286ca182723ef7e7d97e155d8cb6b1e70 | 750ade767ab28037e80b7a80360d213a875038f8 | refs/heads/master | 1,682,842,633,115 | 1,621,330,793,000 | 1,621,330,793,000 | 368,475,816 | 0 | 0 | Apache-2.0 | 1,621,330,745,000 | 1,621,330,744,000 | null | UTF-8 | Lean | false | false | 746 | lean | import ..utils.util
import all
section main
open tactic
meta def main : io unit := do {
args ← io.cmdline_args,
let dest : string := ((args.nth 0).get_or_else "./data/mathlib_decls.log"),
let ignore_decls_fn : environment → declaration → bool :=
(λ e d, declaration.is_auto_or_internal e d || bnot (declarati... |
75e1e4f4dc5d817cb23485acfbbf78756422c285 | 64874bd1010548c7f5a6e3e8902efa63baaff785 | /library/data/subtype.lean | 67967c5defb30d9ea81bc06ea30b216ac61c54a2 | [
"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 | 1,282 | lean | /-
Copyright (c) 2014 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Module: data.subtype
Author: Leonardo de Moura, Jeremy Avigad
-/
open decidable
set_option structure.proj_mk_thm true
structure subtype {A : Type} (P : A → Prop) :=
tag :: (elt_of : ... |
c6c867cc3f77c0ec4f8b00c144910a73611e194f | 9dc8cecdf3c4634764a18254e94d43da07142918 | /src/measure_theory/integral/integral_eq_improper.lean | fe3dcabd1f97e3051bb496ed2b7968006b9e3a34 | [
"Apache-2.0"
] | permissive | jcommelin/mathlib | d8456447c36c176e14d96d9e76f39841f69d2d9b | ee8279351a2e434c2852345c51b728d22af5a156 | refs/heads/master | 1,664,782,136,488 | 1,663,638,983,000 | 1,663,638,983,000 | 132,563,656 | 0 | 0 | Apache-2.0 | 1,663,599,929,000 | 1,525,760,539,000 | Lean | UTF-8 | Lean | false | false | 31,858 | lean | /-
Copyright (c) 2021 Anatole Dedecker. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Anatole Dedecker, Bhavik Mehta
-/
import measure_theory.integral.interval_integral
import order.filter.at_top_bot
/-!
# Links between an integral and its "improper" version
In its ... |
d0b6f0ffb6b0b1b5cd259c0da0f47ab97edf0528 | 31f556cdeb9239ffc2fad8f905e33987ff4feab9 | /stage0/src/Init/Data/Float.lean | ee44c8ec5353e563a75c829cb9ff32ffb63393c2 | [
"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 | 5,747 | 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.Core
import Init.Data.Int.Basic
import Init.Data.ToString.Basic
structure FloatSpec where
float : Type
val : float
lt : floa... |
53d44f46a700f6b3f517593eef3b22dafb6725ea | 624f6f2ae8b3b1adc5f8f67a365c51d5126be45a | /stage0/src/Init/Lean/Parser/Term.lean | c4b150ad97e682904c081493efb8cfd9e6ed52fe | [
"Apache-2.0"
] | permissive | mhuisi/lean4 | 28d35a4febc2e251c7f05492e13f3b05d6f9b7af | dda44bc47f3e5d024508060dac2bcb59fd12e4c0 | refs/heads/master | 1,621,225,489,283 | 1,585,142,689,000 | 1,585,142,689,000 | 250,590,438 | 0 | 2 | Apache-2.0 | 1,602,443,220,000 | 1,585,327,814,000 | C | UTF-8 | Lean | false | false | 13,377 | lean | /-
Copyright (c) 2019 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Leonardo de Moura, Sebastian Ullrich
-/
prelude
import Init.Lean.Parser.Parser
import Init.Lean.Parser.Level
namespace Lean
namespace Parser
@[init] def regBuiltinTacticParser... |
0fd7b50309f8699850a3d6409aee16bc58186487 | d1a52c3f208fa42c41df8278c3d280f075eb020c | /src/Lean/ToExpr.lean | a596974b2f6069a6b951f9630ad0b757bce574a9 | [
"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 | 2,628 | lean | /-
Copyright (c) 2019 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Leonardo de Moura
-/
import Lean.Expr
universe u
namespace Lean
class ToExpr (α : Type u) where
toExpr : α → Expr
toTypeExpr : Expr
export ToExpr (toExpr toTypeExpr)
... |
738bf414c3af634de96b0b354ac6e964ca6b0761 | 9cba98daa30c0804090f963f9024147a50292fa0 | /old/geom3d_stamped_test.lean | 44a932969f0b24c248d0427a883a42063d2a1642 | [] | no_license | kevinsullivan/phys | dcb192f7b3033797541b980f0b4a7e75d84cea1a | ebc2df3779d3605ff7a9b47eeda25c2a551e011f | refs/heads/master | 1,637,490,575,500 | 1,629,899,064,000 | 1,629,899,064,000 | 168,012,884 | 0 | 3 | null | 1,629,644,436,000 | 1,548,699,832,000 | Lean | UTF-8 | Lean | false | false | 3,003 | lean | import .geom3d_series
import tactic.linarith
def ts := time_std_space
def world_fr := geom3d_std_frame
def world := geom3d_std_space
def bl_fr :=
let origin := mk_position3d world 1.000000 2.000000 3.000000 in
let basis0 := mk_displacement3d world 4.000000 3.000000 2.000000 in
let basis1 := mk_displacement3d wor... |
49c7d645f7f226dd619495c2fcd100ee82950093 | ec5a7ae10c533e1b1f4b0bc7713e91ecf829a3eb | /ijcar16/examples/cc23.lean | 2f46104d193c9203cc856da26debd40085e76e36 | [
"MIT"
] | permissive | leanprover/leanprover.github.io | cf248934af7c7e9aeff17cf8df3c12c5e7e73f1a | 071a20d2e059a2c3733e004c681d3949cac3c07a | refs/heads/master | 1,692,621,047,417 | 1,691,396,994,000 | 1,691,396,994,000 | 19,366,263 | 18 | 27 | MIT | 1,693,989,071,000 | 1,399,006,345,000 | Lean | UTF-8 | Lean | false | false | 1,613 | lean | /-
Example/test file for the congruence closure procedure described in the paper:
"Congruence Closure for Intensional Type Theory"
Daniel Selsam and Leonardo de Moura
The tactic `by blast` has been configured in this file to use just
the congruence closure procedure using the command
set_option blast.strategy... |
e2f5558dac5a032ac7c501030160690df794878c | 9be442d9ec2fcf442516ed6e9e1660aa9071b7bd | /tests/lean/traceClassScopes.lean | 4ff8e70f55c7341a852adaadbfe3eb5f82c3f533 | [
"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 | 366 | lean | import Lean
macro "t" t:interpolatedStr(term) : doElem =>
`(Macro.trace[Meta.debug] $t)
macro "tstcmd" : command => do
t "hello"
`(example : Nat := 1)
set_option trace.Meta.debug true in
tstcmd
open Lean Meta
macro "r" r:interpolatedStr(term) : doElem =>
`(trace[Meta.debug] $r)
set_option trace.Meta.debug... |
4893d6f9037a522f0fe138286d6694d03f0c79d4 | 8cae430f0a71442d02dbb1cbb14073b31048e4b0 | /src/probability/conditional_expectation.lean | beedf14825e8f93dc34c4b238fdef7341cd27c73 | [
"Apache-2.0"
] | permissive | leanprover-community/mathlib | 56a2cadd17ac88caf4ece0a775932fa26327ba0e | 442a83d738cb208d3600056c489be16900ba701d | refs/heads/master | 1,693,584,102,358 | 1,693,471,902,000 | 1,693,471,902,000 | 97,922,418 | 1,595 | 352 | Apache-2.0 | 1,694,693,445,000 | 1,500,624,130,000 | Lean | UTF-8 | Lean | false | false | 3,588 | lean | /-
Copyright (c) 2022 Kexing Ying. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Kexing Ying
-/
import probability.notation
import probability.independence.basic
import measure_theory.function.conditional_expectation.basic
/-!
# Probabilistic properties of the condi... |
b54834511c88da8a11ebb8d879c1207d96bdab51 | 9be442d9ec2fcf442516ed6e9e1660aa9071b7bd | /stage0/src/Init/Data/String/Extra.lean | 7999265084353e593f965f47e62ace232d3a79a0 | [
"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,951 | lean | /-
Copyright (c) 2020 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.Except
import Init.Data.ByteArray
import Init.SimpLemmas
import Init.Data.Nat.Linear
import Init.Util
import Init.WFTactics
name... |
5bc2c3a756bdcafca1b9a1c61c47295628a2eccf | cf39355caa609c0f33405126beee2739aa3cb77e | /leanpkg/leanpkg/manifest.lean | e27186eb9d277fd428192b21c3e289cc018219fa | [
"Apache-2.0"
] | permissive | leanprover-community/lean | 12b87f69d92e614daea8bcc9d4de9a9ace089d0e | cce7990ea86a78bdb383e38ed7f9b5ba93c60ce0 | refs/heads/master | 1,687,508,156,644 | 1,684,951,104,000 | 1,684,951,104,000 | 169,960,991 | 457 | 107 | Apache-2.0 | 1,686,744,372,000 | 1,549,790,268,000 | C++ | UTF-8 | Lean | false | false | 3,991 | lean | /-
Copyright (c) 2017 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Author: Gabriel Ebner
-/
import leanpkg.toml leanpkg.lean_version system.io
namespace leanpkg
inductive source
| path (dir_name : string) : source
| git (url rev : string) (branch : op... |
9796d4d07eac2a3896abcc257e5abcb024ef600f | bbecf0f1968d1fba4124103e4f6b55251d08e9c4 | /src/topology/subset_properties.lean | 36361802a48f412b6282b6e8ca2a1f9ab86c32ba | [
"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 | 69,488 | lean | /-
Copyright (c) 2017 Johannes Hölzl. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Johannes Hölzl, Mario Carneiro, Yury Kudryashov
-/
import topology.bases
import data.finset.order
import data.set.accumulate
import tactic.tfae
/-!
# Properties of subsets of topologi... |
c8d09d3009698eb1a488f5d5ef1ad3f04a6f8192 | f5f7e6fae601a5fe3cac7cc3ed353ed781d62419 | /src/category/traversable/equiv.lean | 650e4adcb986de04443901964eb58699f43a1d07 | [
"Apache-2.0"
] | permissive | EdAyers/mathlib | 9ecfb2f14bd6caad748b64c9c131befbff0fb4e0 | ca5d4c1f16f9c451cf7170b10105d0051db79e1b | refs/heads/master | 1,626,189,395,845 | 1,555,284,396,000 | 1,555,284,396,000 | 144,004,030 | 0 | 0 | Apache-2.0 | 1,533,727,664,000 | 1,533,727,663,000 | null | UTF-8 | Lean | false | false | 4,784 | lean | /-
Copyright (c) 2018 Simon Hudon. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Simon Hudon
Transferring `traversable` instances using isomorphisms.
-/
import data.equiv.basic category.traversable.lemmas
universes u
namespace equiv
section functor
parameters {t t... |
c87b8b48298f432d69e55c44666c3cd2b2a4d3df | 94e33a31faa76775069b071adea97e86e218a8ee | /src/data/option/basic.lean | 5c1a3bd8cae1dea089cd0a7fa3bcd0532c7b8800 | [
"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 | 18,680 | lean | /-
Copyright (c) 2017 Mario Carneiro. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Mario Carneiro
-/
import logic.is_empty
import tactic.basic
import logic.relator
/-!
# Option of a type
This file develops the basic theory of option types.
If `α` is a type, then `... |
cc4dc497d6823a6a590965ddbb5ba7413151ed93 | 2a6c509a979150555f6f8a010f76e9398dd01e09 | /src/dyck_words.lean | d8eaa02ba38567a60d2221b8c3efc1ef45783e1a | [] | no_license | VArtem/lean-catalan | fa053f8262b471f45ac7c3706f313ec38c831b72 | 7cf17acf3bdddddf8819dc3ff23774bfaa3f5d92 | refs/heads/main | 1,689,556,449,322 | 1,630,267,370,000 | 1,630,267,370,000 | 400,530,852 | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 3,102 | lean | import catalan
def balance (l : list (fin 2)) : ℤ := (l.count 1 : ℤ) - (l.count 0)
@[simp] lemma balance_def {l} : balance l = (l.count 1 : ℤ) - (l.count 0) := rfl
@[simp] lemma balance_nil : balance [] = 0 :=
by rw [balance, list.count_nil, list.count_nil, sub_self]
structure dyck_word :=
(chars : list (fin 2)... |
f7e095e2da7736c586713336f0fc5edf1b265c73 | 64874bd1010548c7f5a6e3e8902efa63baaff785 | /library/data/int/default.lean | 2571b99c155524dc43bd31748464d43faaa1db4f | [
"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 | 184 | lean | -- Copyright (c) 2014 Microsoft Corporation. All rights reserved.
-- Released under Apache 2.0 license as described in the file LICENSE.
-- Author: Jeremy Avigad
import .basic .order
|
00a8e0001a285bfaedc7cfc2357002fb0ee412bc | 74addaa0e41490cbaf2abd313a764c96df57b05d | /Mathlib/category_theory/limits/preserves/shapes/products_auto.lean | 6f30a41601915ebc80fe518db727e4bf9e8fbdcb | [] | no_license | AurelienSaue/Mathlib4_auto | f538cfd0980f65a6361eadea39e6fc639e9dae14 | 590df64109b08190abe22358fabc3eae000943f2 | refs/heads/master | 1,683,906,849,776 | 1,622,564,669,000 | 1,622,564,669,000 | 371,723,747 | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 5,171 | lean | /-
Copyright (c) 2020 Scott Morrison, Bhavik Mehta. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Scott Morrison, Bhavik Mehta
-/
import Mathlib.PrePort
import Mathlib.Lean3Lib.init.default
import Mathlib.category_theory.limits.shapes.products
import Mathlib.category_... |
ef8121b19423d8eed28f99350bfb0e6ddb243cab | cf39355caa609c0f33405126beee2739aa3cb77e | /tests/lean/utf8.lean | 0763dd872d0ee68baf2888b4029acea1b2d13437 | [
"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 | 135 | lean | --open list
#eval "α₁".length
#eval "α₁ → β₁".length
#eval "∀ α : nat → nat, α 0 ≥ 0".length
#print "------------"
|
df2f4454974c9eb22aa3ee2e9751e92ae53fb861 | 8cae430f0a71442d02dbb1cbb14073b31048e4b0 | /src/analysis/analytic/isolated_zeros.lean | 7759f8579ca8b1f6156ff9cc2be122d498763960 | [
"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 | 9,757 | lean | /-
Copyright (c) 2022 Vincent Beffara. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Vincent Beffara
-/
import analysis.analytic.basic
import analysis.calculus.dslope
import analysis.calculus.fderiv_analytic
import analysis.calculus.formal_multilinear_series
import an... |
acbd0a0895141817877c6c68732c118960671374 | 432d948a4d3d242fdfb44b81c9e1b1baacd58617 | /src/category_theory/groupoid.lean | 04da1c8b3cf57d364163c3207967fc4abaa0266d | [
"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 | 2,704 | lean | /-
Copyright (c) 2018 Reid Barton All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Reid Barton, Scott Morrison, David Wärn
-/
import category_theory.epi_mono
namespace category_theory
universes v v₂ u u₂ -- morphism levels before object levels. See note [category_theor... |
161e5a3f310b7c442f63eaadaedb709b44d2dfe0 | 1abd1ed12aa68b375cdef28959f39531c6e95b84 | /src/topology/algebra/mul_action.lean | c6531aab41b7864ecac7158b238910e45b94558d | [
"Apache-2.0"
] | permissive | jumpy4/mathlib | d3829e75173012833e9f15ac16e481e17596de0f | af36f1a35f279f0e5b3c2a77647c6bf2cfd51a13 | refs/heads/master | 1,693,508,842,818 | 1,636,203,271,000 | 1,636,203,271,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 10,689 | 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 topology.algebra.monoid
import algebra.module.prod
import topology.homeomorph
/-!
# Continuous monoid action
In this file we define class `has_continuous_s... |
e1398d99c6363e2102bad847f9d3b11468db594d | 969dbdfed67fda40a6f5a2b4f8c4a3c7dc01e0fb | /src/algebra/module/basic.lean | 62f46a058a1e7eb0acabbda7b83f623385999221 | [
"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 | 22,032 | lean | /-
Copyright (c) 2015 Nathaniel Thomas. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Nathaniel Thomas, Jeremy Avigad, Johannes Hölzl, Mario Carneiro
-/
import algebra.big_operators.basic
import algebra.group.hom
import group_theory.group_action.group
import algebra.s... |
2f967af7d796b0900964d253e83f34ded5bdb071 | 9be442d9ec2fcf442516ed6e9e1660aa9071b7bd | /src/Init/Control/Id.lean | cb2d23c7621ef48f701d0a6ae760fa72b940b87d | [
"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 | 529 | lean | /-
Copyright (c) 2017 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Sebastian Ullrich
The identity Monad.
-/
prelude
import Init.Core
universe u
def Id (type : Type u) : Type u := type
namespace Id
instance : Monad Id where
pure x := x
... |
cf3787d06442d5eaf68ec90f6d018043d3c98ccc | 54d7e71c3616d331b2ec3845d31deb08f3ff1dea | /library/init/meta/interactive.lean | 3c81a554684ea3ca8a99abb23a7b6a4d4593ec71 | [
"Apache-2.0"
] | permissive | pachugupta/lean | 6f3305c4292288311cc4ab4550060b17d49ffb1d | 0d02136a09ac4cf27b5c88361750e38e1f485a1a | refs/heads/master | 1,611,110,653,606 | 1,493,130,117,000 | 1,493,167,649,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 30,194 | 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.rewrite_tactic init.meta.simp_tactic
import init.meta.smt.congruence_closure init.category.combinators
import init... |
d4539468d0466888c5a8f4e42d699c0ef23f433b | c3f2fcd060adfa2ca29f924839d2d925e8f2c685 | /library/logic/connectives.lean | 2810ff2dfee9b0bc37e03a852614b60907073dfe | [
"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 | 5,989 | lean | /-
Copyright (c) 2014 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Module: logic.connectives
Authors: Jeremy Avigad, Leonardo de Moura
The propositional connectives. See also init.datatypes and init.logic.
-/
variables {a b c d : Prop}
/- implies -/... |
3297149b31e0e3b3d5c7cdda28fc05a0362ffd79 | 206422fb9edabf63def0ed2aa3f489150fb09ccb | /src/field_theory/fixed.lean | bf33b04f002961aaca97ff1ed3427efaaf9a770e | [
"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 | 12,491 | 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 algebra.polynomial.group_ring_action
import deprecated.subfield
import field_theory.normal
import field_theory.separable
import field_theory.tower
import linear_algebra... |
f0fb63643420bd8b620fe533606d74a8835af85f | 4727251e0cd73359b15b664c3170e5d754078599 | /test/simps.lean | 4acea987d25b8e8383fe00fc4cdec2a41c64599e | [
"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 | 35,918 | lean | import algebra.hom.group
import data.sum.basic
import tactic.simps
universes 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 ... |
d3b9af32f750d5e2b361e3f98c064b1fb6860367 | 491068d2ad28831e7dade8d6dff871c3e49d9431 | /hott/homotopy/connectedness.hlean | b6e2bbb1ce1bc3a10ba4c71d6d6eb4c1e9a0b564 | [
"Apache-2.0"
] | permissive | davidmueller13/lean | 65a3ed141b4088cd0a268e4de80eb6778b21a0e9 | c626e2e3c6f3771e07c32e82ee5b9e030de5b050 | refs/heads/master | 1,611,278,313,401 | 1,444,021,177,000 | 1,444,021,177,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 2,150 | hlean | /-
Copyright (c) 2015 Ulrik Buchholtz. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Ulrik Buchholtz
-/
import types.trunc types.arrow_2 types.fiber
open eq is_trunc is_equiv nat equiv trunc function
namespace homotopy
definition is_conn [reducible] (n : trunc_in... |
513ec1081ab7120e4a605c60cc8aa0790adc75bb | 624f6f2ae8b3b1adc5f8f67a365c51d5126be45a | /tests/lean/run/generalize.lean | 77496d063e0e2eeb2708bf27ea59023a49336aae | [
"Apache-2.0"
] | permissive | mhuisi/lean4 | 28d35a4febc2e251c7f05492e13f3b05d6f9b7af | dda44bc47f3e5d024508060dac2bcb59fd12e4c0 | refs/heads/master | 1,621,225,489,283 | 1,585,142,689,000 | 1,585,142,689,000 | 250,590,438 | 0 | 2 | Apache-2.0 | 1,602,443,220,000 | 1,585,327,814,000 | C | UTF-8 | Lean | false | false | 665 | lean | new_frontend
theorem tst0 (x : Nat) : x + 0 = x + 0 :=
begin
generalize x + 0 = y;
exact (Eq.refl y)
end
theorem tst1 (x : Nat) : x + 0 = x + 0 :=
begin
generalize h : x + 0 = y;
exact (Eq.refl y)
end
theorem tst2 (x y w : Nat) (h : y = w) : (x + x) + w = (x + x) + y :=
begin
generalize h' : x + x = z;
... |
86fa8303de1342897712af9ded621a4514555254 | 9ad8d18fbe5f120c22b5e035bc240f711d2cbd7e | /src/undergraduate/MAS114/Semester 1/Q16.lean | 5a0a1ffcd95998c8e229160a1359381ab999b28e | [] | no_license | agusakov/lean_lib | c0e9cc29fc7d2518004e224376adeb5e69b5cc1a | f88d162da2f990b87c4d34f5f46bbca2bbc5948e | refs/heads/master | 1,642,141,461,087 | 1,557,395,798,000 | 1,557,395,798,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 3,612 | lean | import data.real.basic data.fintype algebra.big_operators data.nat.modeq
import tactic.find tactic.squeeze
namespace MAS114
namespace exercises_1
namespace Q16
lemma nat.bodd_even (n : ℕ) : (2 * n).bodd = ff :=
by {rw[nat.bodd_mul,nat.bodd_two,band],}
lemma nat.bodd_odd (n : ℕ) : (2 * n + 1).bodd = tt :=
by {r... |
a0c5879cf3edf8ebd48b0f9dcf8b583bf3e9b0df | d9ed0fce1c218297bcba93e046cb4e79c83c3af8 | /tests/lean/run/super_tests.lean | 7d0c29fae92c1a4607e5b76ea4e6981ad60a4678 | [
"Apache-2.0"
] | permissive | leodemoura/lean_clone | 005c63aa892a6492f2d4741ee3c2cb07a6be9d7f | cc077554b584d39bab55c360bc12a6fe7957afe6 | refs/heads/master | 1,610,506,475,484 | 1,482,348,354,000 | 1,482,348,543,000 | 77,091,586 | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 2,983 | lean | import tools.super
section
open super tactic
example (i : Type) (a b : i) (p : i → Prop) (H : a = b) (Hpa : p a) : true := by do
H ← get_local `H >>= clause.of_classical_proof,
Hpa ← get_local `Hpa >>= clause.of_classical_proof,
a ← get_local `a,
try_sup (λx y, ff) H Hpa 0 0 [0] tt ``super.sup_ltr >>= clause.validate,... |
95d0e3b4734a6cb6444068444a1f55a5d5557185 | c777c32c8e484e195053731103c5e52af26a25d1 | /src/field_theory/chevalley_warning.lean | 3e0de4a8b463ba2a4f4a6a7599d36395d54e3b80 | [
"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 | 9,849 | lean | /-
Copyright (c) 2019 Johan Commelin. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Johan Commelin
-/
import field_theory.finite.basic
/-!
# The Chevalley–Warning theorem
This file contains a proof of the Chevalley–Warning theorem.
Throughout most of this file, `K`... |
06b1b73a2f24c1b2588aa8f4aa16c2c2f5ee4484 | 74addaa0e41490cbaf2abd313a764c96df57b05d | /Mathlib/linear_algebra/affine_space/affine_equiv.lean | 034e8ff08416355908a9eb06fd6aebd88f5a76fd | [] | 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 | 28,562 | lean | /-
Copyright (c) 2020 Yury G. Kudryashov. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Author: Yury G. Kudryashov
-/
import Mathlib.PrePort
import Mathlib.Lean3Lib.init.default
import Mathlib.linear_algebra.affine_space.affine_map
import Mathlib.algebra.invertible
import Math... |
ebf8379e7dbb145c64f737db620e305c8a06ffb9 | f1dc39e1c68f71465c8bf79910c4664d03824751 | /library/init/meta/expr.lean | 452c51562f835d23ae5f027328a99543b45a0cc3 | [
"Apache-2.0"
] | permissive | kckennylau/lean-2 | 6504f45da07bc98b098d726b74130103be25885c | c9a9368bc0fd600d832bd56c5cb2124b8a523ef9 | refs/heads/master | 1,659,140,308,864 | 1,589,361,166,000 | 1,589,361,166,000 | 263,748,786 | 0 | 0 | null | 1,589,405,915,000 | 1,589,405,915,000 | null | UTF-8 | Lean | false | false | 21,843 | 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.level init.control.monad init.meta.rb_map
universes u v
open native
/-- Column and line position in a Lean source file. -/
structur... |
059e67f6e15f71dca3a5a357a82a697b185fffc6 | 041929c569a4eeeafb4efdddab8a644f6df383c5 | /src/mazes/gcd_maze/level_challenge.lean | 18546400e5fe1c0db4ad920e27eb61a44dac6fa0 | [] | no_license | kbuzzard/xena-maze-game | 30ffbe956762dd6603e74efd823d375649e037c3 | 098454dd6acc4c06beccf52b6547bf4cd99cc581 | refs/heads/master | 1,670,840,300,174 | 1,598,554,198,000 | 1,598,554,198,000 | 290,856,036 | 4 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 1,968 | lean | -- import the definition of the gcd maze
import mazes.gcd_maze.definition
import data.int.gcd
open maze direction
/-
# Prove Bezout's Theorem
You are in a maze of integers, all distinct.
You can go north, south east or west.
North adds `a` to your integer, South subtracts `a`.
East adds `b` to your integer, West ... |
6ac84a590746728b89f0da0c0b228b7074ce1f59 | 4727251e0cd73359b15b664c3170e5d754078599 | /archive/imo/imo1981_q3.lean | ea34d76d03bf25a877b304e16002a3f60ab57cee | [
"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 | 6,835 | lean | /-
Copyright (c) 2020 Kevin Lacker. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Kevin Lacker
-/
import data.nat.fib
import tactic.linarith
/-!
# IMO 1981 Q3
Determine the maximum value of `m ^ 2 + n ^ 2`, where `m` and `n` are integers in
`{1, 2, ..., 1981}` and ... |
b88200ee45693516e65f68825294a9eda95258db | 624f6f2ae8b3b1adc5f8f67a365c51d5126be45a | /stage0/src/Init/Lean/Parser/Parser.lean | c8d57d0e058f717ca8691013b6b2325599205d3b | [
"Apache-2.0"
] | permissive | mhuisi/lean4 | 28d35a4febc2e251c7f05492e13f3b05d6f9b7af | dda44bc47f3e5d024508060dac2bcb59fd12e4c0 | refs/heads/master | 1,621,225,489,283 | 1,585,142,689,000 | 1,585,142,689,000 | 250,590,438 | 0 | 2 | Apache-2.0 | 1,602,443,220,000 | 1,585,327,814,000 | C | UTF-8 | Lean | false | false | 78,665 | lean | /-
Copyright (c) 2019 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Leonardo de Moura, Sebastian Ullrich
-/
prelude
import Init.Lean.Data.Trie
import Init.Lean.Data.Position
import Init.Lean.Syntax
import Init.Lean.ToExpr
import Init.Lean.Enviro... |
ded7f4c562014f37ac737532350ab0a376a9154c | aa5a655c05e5359a70646b7154e7cac59f0b4132 | /src/Lean/Data/SMap.lean | 475ac44609360af9b13dd16098cbbe62f29824eb | [
"Apache-2.0"
] | permissive | lambdaxymox/lean4 | ae943c960a42247e06eff25c35338268d07454cb | 278d47c77270664ef29715faab467feac8a0f446 | refs/heads/master | 1,677,891,867,340 | 1,612,500,005,000 | 1,612,500,005,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 3,195 | 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.HashMap
import Std.Data.PersistentHashMap
universes u v w w'
namespace Lean
open Std (HashMap PHashMap)
/- Staged map for implementing th... |
b7cac13e818fcd5547be6d6d7e23c3473a1ad27c | 8e6cad62ec62c6c348e5faaa3c3f2079012bdd69 | /src/ring_theory/polynomial/basic.lean | 2f38cff8ab693d39b2c48a178d268a3fbbfb6505 | [
"Apache-2.0"
] | permissive | benjamindavidson/mathlib | 8cc81c865aa8e7cf4462245f58d35ae9a56b150d | fad44b9f670670d87c8e25ff9cdf63af87ad731e | refs/heads/master | 1,679,545,578,362 | 1,615,343,014,000 | 1,615,343,014,000 | 312,926,983 | 0 | 0 | Apache-2.0 | 1,615,360,301,000 | 1,605,399,418,000 | Lean | UTF-8 | Lean | false | false | 39,476 | lean | /-
Copyright (c) 2019 Kenny Lau. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Kenny Lau
-/
import algebra.char_p.basic
import data.mv_polynomial.comm_ring
import data.mv_polynomial.equiv
import data.polynomial.field_division
import ring_theory.principal_ideal_domain... |
28f6aeb00c61d8667e9733223044a3318eed0bb0 | 43d840497673d50aaf1058dc851b1edc51d1ab11 | /src/solutions/tuesday/afternoon/numbers.lean | 6fcdad79a35e46805882ce86aecf04b7e1d4ce84 | [] | permissive | dhruva-divate/lftcm2020 | 6606bc857204fbfd8ab92812060c0e5114f67e0d | d2e1a31a4ad280eadef1d0ae6a89920b7345c823 | refs/heads/master | 1,668,432,237,346 | 1,594,377,206,000 | 1,594,377,206,000 | 278,630,020 | 0 | 0 | MIT | 1,594,384,713,000 | 1,594,384,712,000 | null | UTF-8 | Lean | false | false | 5,019 | lean | import tactic
import data.real.basic
import data.int.gcd
import data.padics
/-!
## Exercises about numbers and casts
-/
/-!
## First exercises
These first examples are just to get you comfortable with
`norm_num`, `norm_cast`, and friends.
-/
example : 12345 < 67890 :=
begin
norm_num
end
example {α : Type} [... |
102040a3483975a6049fd302f74663c044705668 | 8cae430f0a71442d02dbb1cbb14073b31048e4b0 | /src/ring_theory/witt_vector/defs.lean | c3ba171fd8dfa0ba56ea45eeef9e6a64c9a581e3 | [
"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 | 14,299 | lean | /-
Copyright (c) 2020 Johan Commelin. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Johan Commelin, Robert Y. Lewis
-/
import ring_theory.witt_vector.structure_polynomial
/-!
# Witt vectors
> THIS FILE IS SYNCHRONIZED WITH MATHLIB4.
> Any changes to this file requi... |
567d59d619a5822081eb4de3cec0c9fbaa116708 | 57c233acf9386e610d99ed20ef139c5f97504ba3 | /src/category_theory/opposites.lean | dbb2763524303fce037a9e87082ec2d3ee6f23c3 | [
"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,666 | 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.equivalence
/-!
# Opposite categories
We provide a category instance on `Cᵒᵖ`.
The morphisms `X ⟶ Y` are defined to be the mo... |
5191faf9b692b864cef86cddb19be17e0e0bc952 | 0b3933727d99a2f351f5dbe6e24716bb786a6649 | /src/metastuff.lean | c84e36a0a5cdbc4046687b32ffe76d8a41d7974a | [] | no_license | Vtec234/lean-sesh | 1e770858215279f65aba92b4782b483ab4f09353 | d11d7bb0599406e27d3a4d26242aec13d639ecf7 | refs/heads/master | 1,587,497,515,696 | 1,558,362,223,000 | 1,558,362,223,000 | 169,809,439 | 2 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 635 | lean | /- Meta stuff: attributes, tactics, etc. -/
/-
@[user_attribute]
meta def sop_attr: user_attribute :=
{ name := `sop_form,
descr := "A simplification lemma that brings expressions to a sum-of-products form." } -/
run_cmd mk_simp_attr `sop_form [`simp]
/-
@[user_attribute]
meta def unfold_attr: user_attribute :=
{... |
2cb7ccdc9949b24c98488e8edb0dd04ecb72cb06 | b3fced0f3ff82d577384fe81653e47df68bb2fa1 | /src/data/list/basic.lean | b1bae3415980dcfa6248f56df7d17d928848ddd9 | [
"Apache-2.0"
] | permissive | ratmice/mathlib | 93b251ef5df08b6fd55074650ff47fdcc41a4c75 | 3a948a6a4cd5968d60e15ed914b1ad2f4423af8d | refs/heads/master | 1,599,240,104,318 | 1,572,981,183,000 | 1,572,981,183,000 | 219,830,178 | 0 | 0 | Apache-2.0 | 1,572,980,897,000 | 1,572,980,896,000 | null | UTF-8 | Lean | false | false | 218,611 | lean | /-
Copyright (c) 2014 Parikshit Khanna. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Parikshit Khanna, Jeremy Avigad, Leonardo de Moura, Floris van Doorn, Mario Carneiro
Basic properties of lists.
-/
import
tactic.interactive tactic.mk_iff_of_inductive_prop
logi... |
a7a9b399eace160b8ef33a4a28d13726ba26a25a | 74addaa0e41490cbaf2abd313a764c96df57b05d | /Mathlib/data/bracket.lean | 33c829021778341ce54a4b3de011b7c997136ce6 | [] | 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,554 | lean | /-
Copyright (c) 2021 Patrick Lutz. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Patrick Lutz and Oliver Nash.
-/
import Mathlib.PrePort
import Mathlib.Lean3Lib.init.default
import Mathlib.PostPort
universes u_1 u_2 l
namespace Mathlib
/-!
# Bracket Notation
Thi... |
23e204cbfd75a26a2b90abfc107b680a3eafa316 | 69bc7d0780be17e452d542a93f9599488f1c0c8e | /9-19-2019.lean | d38898a5c9cd16962de2deb7e7628eb7f48fb5c9 | [] | no_license | joek13/cs2102-notes | b7352285b1d1184fae25594f89f5926d74e6d7b4 | 25bb18788641b20af9cf3c429afe1da9b2f5eafb | refs/heads/master | 1,673,461,162,867 | 1,575,561,090,000 | 1,575,561,090,000 | 207,573,549 | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 1,600 | lean | -- Notes 9-19-2019
/-
Abstract data type - a data type accompanied by functions that operate on values of that type
Propositions are true or false.
-/
namespace mylogic
inductive kevin_sullivan_is_daddy : Type
| ttt
| fff
| idk
open kevin_sullivan_is_daddy
def daddy_and : kevin_sullivan_is_daddy → kevin_sullivan_... |
7bc63ce16e6c3a10fdc1980dddb551787b792578 | bb31430994044506fa42fd667e2d556327e18dfe | /src/algebra/order/floor.lean | 498e145f7f46b464aa8a7603dd07f7f57f9d51f7 | [
"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 | 46,767 | lean | /-
Copyright (c) 2018 Mario Carneiro. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Mario Carneiro, Kevin Kappelmann
-/
import data.int.lemmas
import data.set.intervals.group
import data.set.lattice
import tactic.abel
import tactic.linarith
import tactic.positivity
/... |
8f0dbfa33dfb51a481fd31516652c8056ecc31fa | 1446f520c1db37e157b631385707cc28a17a595e | /stage0/src/Init/Util.lean | b71ac3f860f752e85a49973eb35911dd2e7a0ab0 | [
"Apache-2.0"
] | permissive | bdbabiak/lean4 | cab06b8a2606d99a168dd279efdd404edb4e825a | 3f4d0d78b2ce3ef541cb643bbe21496bd6b057ac | refs/heads/master | 1,615,045,275,530 | 1,583,793,696,000 | 1,583,793,696,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 3,136 | 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.Data.String.Basic
import Init.Data.ToString
universes u v
/- debugging helper functions -/
@[neverExtract, extern "lean_dbg_trace"]
def... |
a5e2ea56e516843e076cde43e8c9985e99f967e6 | d9ed0fce1c218297bcba93e046cb4e79c83c3af8 | /library/init/algebra/ring.lean | 9889a368709c97b20aeca363b89c86dea2da93e3 | [
"Apache-2.0"
] | permissive | leodemoura/lean_clone | 005c63aa892a6492f2d4741ee3c2cb07a6be9d7f | cc077554b584d39bab55c360bc12a6fe7957afe6 | refs/heads/master | 1,610,506,475,484 | 1,482,348,354,000 | 1,482,348,543,000 | 77,091,586 | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 8,755 | lean | /-
Copyright (c) 2016 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Jeremy Avigad, Leonardo de Moura
-/
prelude
import init.algebra.group
/- Make sure instances defined in this file have lower priority than the ones
defined for concrete stru... |
6b97e99a93b93f157fbc8c0d2236041c7da3d429 | 8cae430f0a71442d02dbb1cbb14073b31048e4b0 | /src/analysis/complex/basic.lean | 9b8097b45dcf2b96352f6b7f97fee720126e3d36 | [
"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 | 18,384 | 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 data.complex.module
import data.complex.exponential
import data.is_R_or_C.basic
import topology.algebra.infinite_sum.module
import topology.instances.real_vec... |
603682f618fbb92a218bc7f48224efd5feddb649 | 3f7026ea8bef0825ca0339a275c03b911baef64d | /src/data/complex/exponential.lean | 41752c4cd981b81dee30a3ffa88ba34f95319d6a | [
"Apache-2.0"
] | permissive | rspencer01/mathlib | b1e3afa5c121362ef0881012cc116513ab09f18c | c7d36292c6b9234dc40143c16288932ae38fdc12 | refs/heads/master | 1,595,010,346,708 | 1,567,511,503,000 | 1,567,511,503,000 | 206,071,681 | 0 | 0 | Apache-2.0 | 1,567,513,643,000 | 1,567,513,643,000 | null | UTF-8 | Lean | false | false | 46,013 | lean | /-
Copyright (c) 2018 Chris Hughes. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Chris Hughes, Abhimanyu Pallavi Sudhir
-/
import algebra.archimedean
import data.nat.choose data.complex.basic
import tactic.linarith
local attribute [instance, priority 0] classical.pr... |
db6d71962f85db5e0b9b0c9c3abdb55dba742778 | 9ad8d18fbe5f120c22b5e035bc240f711d2cbd7e | /src/undergraduate/MAS114/Semester 1/Q07.lean | fe75b66273338b7ad8d01745b78ab0b43d7958cf | [] | no_license | agusakov/lean_lib | c0e9cc29fc7d2518004e224376adeb5e69b5cc1a | f88d162da2f990b87c4d34f5f46bbca2bbc5948e | refs/heads/master | 1,642,141,461,087 | 1,557,395,798,000 | 1,557,395,798,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 470 | lean | import data.set
namespace MAS114
namespace exercises_1
namespace Q07
local attribute [instance] classical.prop_decidable
lemma L1 (U : Type) (A B : set U) : - (A ∪ B) = (- A) ∩ (- B) :=
by { simp }
lemma L2 (U : Type) (A B : set U) : - (A ∩ B) = (- A) ∪ (- B) :=
begin
ext x,
rw[set.mem_union,set.mem_compl_iff,s... |
f2f7677fc3a864a9be87b60b7e96715d12972619 | 510e96af568b060ed5858226ad954c258549f143 | /data/list/set.lean | bed68793b74b25039257d71998b2f8565dddc8c9 | [] | no_license | Shamrock-Frost/library_dev | cb6d1739237d81e17720118f72ba0a6db8a5906b | 0245c71e4931d3aceeacf0aea776454f6ee03c9c | refs/heads/master | 1,609,481,034,595 | 1,500,165,215,000 | 1,500,165,347,000 | 97,350,162 | 0 | 0 | null | 1,500,164,969,000 | 1,500,164,969,000 | null | UTF-8 | Lean | false | false | 31,879 | lean | /-
Copyright (c) 2015 Leonardo de Moura. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Leonardo de Moura, Jeremy Avigad
Set-like operations on lists.
-/
import data.list.basic data.list.comb .basic .comb
open nat function decidable
universe variables uu vv
variable... |
7499f0dbb7f426bd337575468e2ecb59192a8cb7 | 74addaa0e41490cbaf2abd313a764c96df57b05d | /Mathlib/category_theory/currying_auto.lean | 89d7ee33363e5fc6e6ba766c073172cffaa98826 | [] | no_license | AurelienSaue/Mathlib4_auto | f538cfd0980f65a6361eadea39e6fc639e9dae14 | 590df64109b08190abe22358fabc3eae000943f2 | refs/heads/master | 1,683,906,849,776 | 1,622,564,669,000 | 1,622,564,669,000 | 371,723,747 | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 4,485 | 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 Mathlib.PrePort
import Mathlib.Lean3Lib.init.default
import Mathlib.category_theory.products.bifunctor
import Mathlib.PostPort
universes u₁ u₂ u₃ v₁ v₂ v₃
n... |
d907a661c4f58035ed2f19a2c5324859d218ba65 | a7eef317ddec01b9fc6cfbb876fe7ac00f205ac7 | /src/algebra/add_torsor.lean | b686b0582392b2b6c0a05400dd3bf6ed1cad4e26 | [
"Apache-2.0"
] | permissive | kmill/mathlib | ea5a007b67ae4e9e18dd50d31d8aa60f650425ee | 1a419a9fea7b959317eddd556e1bb9639f4dcc05 | refs/heads/master | 1,668,578,197,719 | 1,593,629,163,000 | 1,593,629,163,000 | 276,482,939 | 0 | 0 | null | 1,593,637,960,000 | 1,593,637,959,000 | null | UTF-8 | Lean | false | false | 12,435 | lean | /-
Copyright (c) 2020 Joseph Myers. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Joseph Myers, Yury Kudryashov.
-/
import algebra.group.prod
import algebra.group.type_tags
import algebra.pi_instances
import data.equiv.basic
/-!
# Torsors of additive group actions
T... |
2d428211ac66c14b5a34a6da097325f64807af87 | 9dc8cecdf3c4634764a18254e94d43da07142918 | /src/analysis/normed_space/banach_steinhaus.lean | be992f565df5c62849ca8ee6053ba82a65d7cee2 | [
"Apache-2.0"
] | permissive | jcommelin/mathlib | d8456447c36c176e14d96d9e76f39841f69d2d9b | ee8279351a2e434c2852345c51b728d22af5a156 | refs/heads/master | 1,664,782,136,488 | 1,663,638,983,000 | 1,663,638,983,000 | 132,563,656 | 0 | 0 | Apache-2.0 | 1,663,599,929,000 | 1,525,760,539,000 | Lean | UTF-8 | Lean | false | false | 6,389 | lean | /-
Copyright (c) 2021 Jireh Loreaux. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Jireh Loreaux
-/
import analysis.normed_space.operator_norm
import topology.metric_space.baire
import topology.algebra.module.basic
/-!
# The Banach-Steinhaus theorem: Uniform Boundedne... |
a00436e2692639f545272a5c44e6f255eb4e4ac3 | 737dc4b96c97368cb66b925eeea3ab633ec3d702 | /src/Init/Data/Nat/Div.lean | ef69149895147a35152afc4dbb689cbeb9eb0a48 | [
"Apache-2.0"
] | permissive | Bioye97/lean4 | 1ace34638efd9913dc5991443777b01a08983289 | bc3900cbb9adda83eed7e6affeaade7cfd07716d | refs/heads/master | 1,690,589,820,211 | 1,631,051,000,000 | 1,631,067,598,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 4,833 | 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.WF
import Init.Data.Nat.Basic
namespace Nat
private def div_rec_lemma {x y : Nat} : 0 < y ∧ y ≤ x → x - y < x :=
fun ⟨ypos, ylex⟩ => ... |
acc6d06e2ccb652350ad82e515a723ed727431cc | 22b1ea9c0e32dd3b69f246615ad2eeb0fc1f0c6d | /esp_metrique.lean | ffcd9fc81514ef3f0ff95194ec51b12b1bf2d81a | [] | no_license | FredericLeRoux/LEAN_ESPACES_METRIQUES | fd8dceb718e9911ec8f23d8a009eadc63dae4867 | ebab6c37d88988a87b4310b0347db98c2245b902 | refs/heads/master | 1,601,209,881,189 | 1,586,336,283,000 | 1,586,336,283,000 | 226,517,402 | 0 | 1 | null | 1,575,726,004,000 | 1,575,725,118,000 | null | UTF-8 | Lean | false | false | 23,378 | lean | import tactic
import data.real.basic
import data.set
------------
-- ESSAIS --
------------
open set
-----------
-- DEBUT --
-----------
/-- Une structure d'espace métrique sur un type X -/
class espace_metrique (X : Type) :=
(dist : X → X → ℝ)
(dist_pos : ∀ x y, dist x y ≥ 0)
(sep : ∀ x y, dist x y = 0 ↔ x = y)
(sy... |
25f2a5a760788f7ae6c766408ff699a9ba321179 | 74addaa0e41490cbaf2abd313a764c96df57b05d | /Mathlib/order/boolean_algebra_auto.lean | 44880931d24ce766d844cfa5ce684b064d4744f9 | [] | 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 | 6,664 | lean | /-
Copyright (c) 2017 Johannes Hölzl. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Johannes Hölzl
Type class hierarchy for Boolean algebras.
-/
import Mathlib.PrePort
import Mathlib.Lean3Lib.init.default
import Mathlib.order.bounded_lattice
import Mathlib.PostPort
... |
7170b89f123b5beb9cb87e28ea56c33c6c3fee03 | dd0f5513e11c52db157d2fcc8456d9401a6cd9da | /02_Dependent_Type_Theory.org.29.lean | 30e77ff8079e0574422144c256bb567ac9a456d5 | [] | no_license | cjmazey/lean-tutorial | ba559a49f82aa6c5848b9bf17b7389bf7f4ba645 | 381f61c9fcac56d01d959ae0fa6e376f2c4e3b34 | refs/heads/master | 1,610,286,098,832 | 1,447,124,923,000 | 1,447,124,923,000 | 43,082,433 | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 211 | lean | /- page 25 -/
import standard
namespace foo
constant A : Type
constant a : A
constant f : A → A
definition fa : A := f a
end foo
check foo.A
check foo.f
namespace foo
definition ffa : A := f (f a)
end foo
|
31d3eb4b3a0c6b89c027aa2c18805f4d640f0ae0 | aa3f8992ef7806974bc1ffd468baa0c79f4d6643 | /tests/lean/run/nat_bug4.lean | e5e575fa110fe5c1d5d9730f26ca149c1e6e0229 | [
"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 | 477 | lean | import standard
using num eq_proofs
inductive nat : Type :=
zero : nat,
succ : nat → nat
namespace nat
definition add (x y : nat) : nat := nat.rec x (λn r, succ r) y
infixl `+` := add
definition mul (n m : nat) := nat.rec zero (fun m x, x + n) m
infixl `*` := mul
axiom mul_succ_right (n m : nat) : n * succ m = n * m ... |
28844cb55ed8d7ab9d24bd3852e2da2757dee18e | 206422fb9edabf63def0ed2aa3f489150fb09ccb | /src/category_theory/filtered.lean | a2fe067eb7cf271d4645e73203383c13cc5873d5 | [
"Apache-2.0"
] | permissive | hamdysalah1/mathlib | b915f86b2503feeae268de369f1b16932321f097 | 95454452f6b3569bf967d35aab8d852b1ddf8017 | refs/heads/master | 1,677,154,116,545 | 1,611,797,994,000 | 1,611,797,994,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 9,793 | lean | /-
Copyright (c) 2019 Reid Barton. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Reid Barton
-/
import category_theory.fin_category
import category_theory.limits.cones
import category_theory.adjunction.basic
import order.bounded_lattice
/-!
# Filtered categories
A c... |
35d1d0a2a28c9d8e15b1d6dc02f4f48fb8ef85ff | aa3f8992ef7806974bc1ffd468baa0c79f4d6643 | /library/logic/examples/instances_test.lean | 54fdc674d468a4f66b4641dfd09b90683c5e1c54 | [
"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 | 1,242 | lean | --- Copyright (c) 2014 Microsoft Corporation. All rights reserved.
--- Released under Apache 2.0 license as described in the file LICENSE.
--- Author: Jeremy Avigad
import ..instances
open relation
open relation.general_operations
open relation.iff_ops
open eq.ops
section
theorem test1 (a b : Prop) (H : a ↔ b) (H1 ... |
4504bf3714030df83f572b2e77128816a1b0c38a | c61b91f85121053c627318ad8fcde30dfb8637d2 | /Chapter2/2-8.lean | 67277fbc1dcf57fcf1c0ab6aec5e9e068fd8c903 | [] | no_license | robkorn/theorem-proving-in-lean-exercises | 9e2256360eaf6f8df6cdd8fd656e63dfb04c8cdb | 9c51da587105ee047a9db55d52709d881a39be7a | refs/heads/master | 1,585,403,341,988 | 1,540,142,619,000 | 1,540,142,619,000 | 148,431,678 | 2 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 844 | lean |
namespace hidden
universe u
constant list : Type u -> Type u
constant cons : Π α : Type u, α → list α → list α
constant nil : Π α : Type u, list α
constant head : Π α : Type u, list α -> α
constant tail : Π α : Type u, list α -> list α
constant append : Π α : Type u, list α -> l... |
f3ec39302cd5948134a21adb1ab589671043d3c6 | 32025d5c2d6e33ad3b6dd8a3c91e1e838066a7f7 | /tests/lean/run/sharecommon.lean | 27b7970d7267fc8607789e09ba39f712daf4dc34 | [
"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 | 3,981 | lean | import Std.ShareCommon
open Std
def check (b : Bool) : ShareCommonT IO Unit :=
unless b $ 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;
x ← shareCommonM x;
y ← shareCommonM y;
check $ ptrAddr... |
a720c4558ef757bd39d613cde9ace73caf32011e | 07c6143268cfb72beccd1cc35735d424ebcb187b | /src/data/list/defs.lean | 4c19ac9d6d81ca8d1aa0f47119197393e4516231 | [
"Apache-2.0"
] | permissive | khoek/mathlib | bc49a842910af13a3c372748310e86467d1dc766 | aa55f8b50354b3e11ba64792dcb06cccb2d8ee28 | refs/heads/master | 1,588,232,063,837 | 1,587,304,803,000 | 1,587,304,803,000 | 176,688,517 | 0 | 0 | Apache-2.0 | 1,553,070,585,000 | 1,553,070,585,000 | null | UTF-8 | Lean | false | false | 19,907 | lean | /-
Copyright (c) 2014 Parikshit Khanna. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Parikshit Khanna, Jeremy Avigad, Leonardo de Moura, Floris van Doorn, Mario Carneiro
Extra definitions on lists.
-/
import data.option.defs logic.basic tactic.cache
namespace list
... |
03d20a78cf79a9adb91ae8fd9dd165402211fc7e | b7f22e51856f4989b970961f794f1c435f9b8f78 | /tests/lean/run/coe7.lean | f98c3d8d037906eb80fa72ea0e645ce14d517de0 | [
"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 | 270 | lean | import logic
namespace experiment
constant nat : Type.{1}
constant int : Type.{1}
constant of_nat : nat → int
attribute of_nat [coercion]
theorem tst (n : nat) : n = n :=
have H : true, from trivial,
calc n = n : eq.refl _
... = n : eq.refl _
end experiment
|
92d0d5e12d0b2ae850a818c326464123df33f2db | c777c32c8e484e195053731103c5e52af26a25d1 | /src/analysis/normed/group/add_torsor.lean | 169615af036edec2be2b1fc5432eaf16cef56082 | [
"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 | 10,178 | lean | /-
Copyright (c) 2020 Joseph Myers. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Joseph Myers, Yury Kudryashov
-/
import analysis.normed.group.basic
import linear_algebra.affine_space.affine_subspace
import linear_algebra.affine_space.midpoint
/-!
# Torsors of addit... |
cd455bb353c4d9f9fa04a31ba791e6e8aa9ed27c | 74addaa0e41490cbaf2abd313a764c96df57b05d | /Mathlib/data/list/forall2_auto.lean | 29d7ed8893358aea851f921f9cb5b78aaa491698 | [] | no_license | AurelienSaue/Mathlib4_auto | f538cfd0980f65a6361eadea39e6fc639e9dae14 | 590df64109b08190abe22358fabc3eae000943f2 | refs/heads/master | 1,683,906,849,776 | 1,622,564,669,000 | 1,622,564,669,000 | 371,723,747 | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 9,076 | lean | /-
Copyright (c) 2018 Mario Carneiro. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Mario Carneiro, Johannes Hölzl
-/
import Mathlib.PrePort
import Mathlib.Lean3Lib.init.default
import Mathlib.data.list.basic
import Mathlib.PostPort
universes u v w z
namespace Math... |
50331bf6ee9e4a7d3321591bb97db23fb9d8011a | 02fbe05a45fda5abde7583464416db4366eedfbf | /library/init/data/int/order.lean | 3659f655f6646a711cbed06f03949e816d3168c3 | [
"Apache-2.0"
] | permissive | jasonrute/lean | cc12807e11f9ac6b01b8951a8bfb9c2eb35a0154 | 4be962c167ca442a0ec5e84472d7ff9f5302788f | refs/heads/master | 1,672,036,664,637 | 1,601,642,826,000 | 1,601,642,826,000 | 260,777,966 | 0 | 0 | Apache-2.0 | 1,588,454,819,000 | 1,588,454,818,000 | null | UTF-8 | Lean | false | false | 36,964 | lean | /-
Copyright (c) 2016 Jeremy Avigad. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Jeremy Avigad
The order relation on the integers.
-/
prelude
import init.data.int.basic init.data.ordering.basic
namespace int
def nonneg (a : ℤ) : Prop := int.cases_on a (assume n, ... |
77d8407a15715138efdfb897e7c55b8228e7debb | d406927ab5617694ec9ea7001f101b7c9e3d9702 | /src/data/nat/choose/central.lean | 10b2f90d9849f338735d72391c6b5f968f06b30d | [
"Apache-2.0"
] | permissive | alreadydone/mathlib | dc0be621c6c8208c581f5170a8216c5ba6721927 | c982179ec21091d3e102d8a5d9f5fe06c8fafb73 | refs/heads/master | 1,685,523,275,196 | 1,670,184,141,000 | 1,670,184,141,000 | 287,574,545 | 0 | 0 | Apache-2.0 | 1,670,290,714,000 | 1,597,421,623,000 | Lean | UTF-8 | Lean | false | false | 5,194 | lean | /-
Copyright (c) 2021 Patrick Stevens. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Patrick Stevens, Thomas Browning
-/
import data.nat.choose.basic
import tactic.linarith
/-!
# Central binomial coefficients
This file proves properties of the central binomial coef... |
50cc9f4b0bb1159055a96bd114a3178ea2ed00b5 | 8d65764a9e5f0923a67fc435eb1a5a1d02fd80e3 | /src/data/nat/totient.lean | 5de8f164eca7080225cdd4b18c4985487173ed7d | [
"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 | 7,740 | lean | /-
Copyright (c) 2018 Chris Hughes. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Chris Hughes
-/
import algebra.big_operators.basic
import data.nat.prime
import data.zmod.basic
/-!
# Euler's totient function
This file defines [Euler's totient function][https://en.w... |
9e8bca2241377d4a8846b4854c09692dece887de | cf39355caa609c0f33405126beee2739aa3cb77e | /tests/lean/run/nested_inductive.lean | b8f9231a561e60be5fd783d5ed3ed3bee0fe3aa5 | [
"Apache-2.0"
] | permissive | leanprover-community/lean | 12b87f69d92e614daea8bcc9d4de9a9ace089d0e | cce7990ea86a78bdb383e38ed7f9b5ba93c60ce0 | refs/heads/master | 1,687,508,156,644 | 1,684,951,104,000 | 1,684,951,104,000 | 169,960,991 | 457 | 107 | Apache-2.0 | 1,686,744,372,000 | 1,549,790,268,000 | C++ | UTF-8 | Lean | false | false | 3,346 | lean | set_option trace.inductive_compiler.nested.define.failure true
set_option max_memory 1000000
inductive {u} vec (A : Type u) : nat -> Type u
| vnil : vec 0
| vcons : Pi (n : nat), A -> vec n -> vec (n+1)
namespace X1
#print "simple"
inductive foo : Type
| mk : list foo -> foo
end X1
namespace X2
#print "with param"
... |
9a2bfb424d7f75741936e0bc831245a73c5d0022 | 46125763b4dbf50619e8846a1371029346f4c3db | /src/tactic/ring.lean | 18041ac82a6dcd626866d0ff8c9a8da360835959 | [
"Apache-2.0"
] | permissive | thjread/mathlib | a9d97612cedc2c3101060737233df15abcdb9eb1 | 7cffe2520a5518bba19227a107078d83fa725ddc | refs/heads/master | 1,615,637,696,376 | 1,583,953,063,000 | 1,583,953,063,000 | 246,680,271 | 0 | 0 | Apache-2.0 | 1,583,960,875,000 | 1,583,960,875,000 | null | UTF-8 | Lean | false | false | 21,461 | lean | /-
Copyright (c) 2018 Mario Carneiro. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Mario Carneiro
Evaluate expressions in the language of commutative (semi)rings.
Based on <http://www.cs.ru.nl/~freek/courses/tt-2014/read/10.1.1.61.3041.pdf> .
-/
import algebra.group... |
e25e32dd9e6d9ebc32b35adea777dd904c29d851 | c777c32c8e484e195053731103c5e52af26a25d1 | /src/group_theory/nielsen_schreier.lean | a54d8f0d7a83b4e63d5edbb7f08a1f4f033f3a6e | [
"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 | 12,152 | lean | /-
Copyright (c) 2021 David Wärn. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: David Wärn
-/
import category_theory.action
import combinatorics.quiver.arborescence
import combinatorics.quiver.connected_component
import group_theory.is_free_group
/-!
# The Nielsen-Sch... |
7819c83ffdee67cab07e60ee14c348dc17bd1983 | 2a70b774d16dbdf5a533432ee0ebab6838df0948 | /_target/deps/mathlib/src/data/fintype/card.lean | 5d97a328669e8a420f12447bfac3d57984308950 | [
"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 | 17,176 | 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.fintype.basic
import algebra.big_operators.ring
/-!
Results about "big operations" over a `fintype`, and consequent
results about cardinalities of certain... |
133b6df05bb1ce805ac8a5e3e66f417642e1b9ee | cf39355caa609c0f33405126beee2739aa3cb77e | /tests/lean/1862.lean | f6fd57a7032ddcda459881e0f2d0efe59beeaa2b | [
"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 | 242 | lean | class test_neg_neg (R : Type) extends has_neg R, has_one R :=
(neg_neg : ∀ r : R, -(-r) = r)
variable R : Type
variable [test_neg_neg R]
example : -(-(1:R)) = 1 :=
begin
trace_state,
exact test_neg_neg.neg_neg 1,
end
#check - -(1:R)
|
ef81d4197b2d388b840815c395ab836515960320 | bdb33f8b7ea65f7705fc342a178508e2722eb851 | /analysis/measure_theory/measure_space.lean | c89fa06f425bc1cfd38fd5c7fe0dc67b4ed8c3d8 | [
"Apache-2.0"
] | permissive | rwbarton/mathlib | 939ae09bf8d6eb1331fc2f7e067d39567e10e33d | c13c5ea701bb1eec057e0a242d9f480a079105e9 | refs/heads/master | 1,584,015,335,862 | 1,524,142,167,000 | 1,524,142,167,000 | 130,614,171 | 0 | 0 | Apache-2.0 | 1,548,902,667,000 | 1,524,437,371,000 | Lean | UTF-8 | Lean | false | false | 21,215 | 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
Measure spaces -- measures
Measures are restricted to a measurable space (associated by the type class `measurable_space`).
This allows us to prove equalities between ... |
6a5a937e86a9c9527b16a00f589a1a30cca5b244 | c777c32c8e484e195053731103c5e52af26a25d1 | /src/data/real/irrational.lean | c2463026fe0192951de0f3541fad06291e2edd69 | [
"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 | 17,771 | lean | /-
Copyright (c) 2018 Mario Carneiro. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Mario Carneiro, Abhimanyu Pallavi Sudhir, Jean Lo, Calle Sönne, Yury Kudryashov
-/
import data.real.sqrt
import tactic.interval_cases
import ring_theory.algebraic
import data.rat.sqrt
... |
7bc03db2270b6935a7b842e4fc19f35e3c13b573 | 6432ea7a083ff6ba21ea17af9ee47b9c371760f7 | /tests/lean/run/heqSubst.lean | ec9aff46895d0750c0190197d272847d91702f48 | [
"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 | 83 | lean | example (f : α → α) (a b : α) (h : HEq a b) : f a = f b := by
subst h
rfl
|
32ddcb0377a2ead447280ea458e591c9cc54c6e0 | d406927ab5617694ec9ea7001f101b7c9e3d9702 | /src/category_theory/subobject/factor_thru.lean | c5f450340f18c37195f13bc004078dc7a3487393 | [
"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 | 7,183 | lean | /-
Copyright (c) 2020 Scott Morrison. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Bhavik Mehta, Scott Morrison
-/
import category_theory.subobject.basic
import category_theory.preadditive.basic
/-!
# Factoring through subobjects
The predicate `h : P.factors f`, fo... |
6d8c5e68d424857367c90bcb49b69832603b1bf0 | 053240c7b02e3f5c5b38443de4838535cf11269c | /.config.lean | 3d8a04445242afe3b11fc2f4d2725f749539f652 | [
"MIT"
] | permissive | MaxWithU/MT1300 | f6604733be3c1ec54d57a122fed540940a426a7c | a3c046286d5f618c0e65ce139ece2f1099e0b517 | refs/heads/main | 1,690,433,774,646 | 1,631,364,172,000 | 1,631,364,172,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 266,817 | lean | # 2021-08-19 ssr plus, passwall
# Automatically generated file; DO NOT EDIT.
# OpenWrt Configuration
#
CONFIG_MODULES=y
CONFIG_HAVE_DOT_CONFIG=y
# CONFIG_TARGET_sunxi is not set
# CONFIG_TARGET_apm821xx is not set
# CONFIG_TARGET_ath25 is not set
# CONFIG_TARGET_ath79 is not set
# CONFIG_TARGET_bcm27xx is not set
# CON... |
1f377735ffef5e234af4e653a5c49e8c8f72f731 | b7f22e51856f4989b970961f794f1c435f9b8f78 | /tests/lean/run/blast_cc12.lean | f9486afcee8ace30debab687035085daf15d8f68 | [
"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 | 596 | lean | set_option blast.strategy "simple"
definition foo1 (a b : nat) (p : Prop) : a = b → (b = a → p) → p :=
by blast
print foo1
definition foo2 (a b c : nat) (p : Prop) : a = b → b = c → (c = a → p) → p :=
by blast
print foo2
definition foo3 (a b c d : nat) (p : Prop) : a ≠ d → (d ≠ a → p) → p :=
by blast
print foo3
... |
bda2a628884701ed0ced8381a41502f0802e930f | 31f556cdeb9239ffc2fad8f905e33987ff4feab9 | /src/Lean/LocalContext.lean | 6d0e2785f46fa5ae7d938408feae5c378610d5f6 | [
"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 | 17,126 | lean | /-
Copyright (c) 2019 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Leonardo de Moura
-/
import Lean.Data.PersistentArray
import Lean.Expr
import Lean.Hygiene
namespace Lean
/-- A declaration for a LocalContext. This is used to register which ... |
176fe8db84b7a436bc0b0e4303e039fbaccaa2c2 | 07c6143268cfb72beccd1cc35735d424ebcb187b | /src/category_theory/limits/shapes/regular_mono.lean | 72cf57b2030f37d543eca0909ca3251d09bd00a7 | [
"Apache-2.0"
] | permissive | khoek/mathlib | bc49a842910af13a3c372748310e86467d1dc766 | aa55f8b50354b3e11ba64792dcb06cccb2d8ee28 | refs/heads/master | 1,588,232,063,837 | 1,587,304,803,000 | 1,587,304,803,000 | 176,688,517 | 0 | 0 | Apache-2.0 | 1,553,070,585,000 | 1,553,070,585,000 | null | UTF-8 | Lean | false | false | 5,528 | 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 category_theory.epi_mono
import category_theory.limits.shapes.kernels
import category_theory.limits.shapes.strong_epi
/-!
# Definitions and basic properties o... |
91a07448aa01a9289cb59ba52f69e01e7c19f22d | e38e95b38a38a99ecfa1255822e78e4b26f65bb0 | /src/certigrad/tvec.lean | 75ca82bd87195882ed133407ac208c5dcbafeaa5 | [
"Apache-2.0"
] | permissive | ColaDrill/certigrad | fefb1be3670adccd3bed2f3faf57507f156fd501 | fe288251f623ac7152e5ce555f1cd9d3a20203c2 | refs/heads/master | 1,593,297,324,250 | 1,499,903,753,000 | 1,499,903,753,000 | 97,075,797 | 1 | 0 | null | 1,499,916,210,000 | 1,499,916,210,000 | null | UTF-8 | Lean | false | false | 3,161 | lean | /-
Copyright (c) 2017 Daniel Selsam. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Author: Daniel Selsam
Properties of dvecs of tensors.
We often want to do algebra manipulations on an entire dvec at a time,
and this file makes it possible to use standard notation when doing... |
3e888c7ce62f13f6a298b40a55acd94377b8b0d1 | fe84e287c662151bb313504482b218a503b972f3 | /src/combinatorics/nat_partitions.lean | e7bd83f43204d85b6b86c947bb658bfa4ab97386 | [] | no_license | NeilStrickland/lean_lib | 91e163f514b829c42fe75636407138b5c75cba83 | 6a9563de93748ace509d9db4302db6cd77d8f92c | refs/heads/master | 1,653,408,198,261 | 1,652,996,419,000 | 1,652,996,419,000 | 181,006,067 | 4 | 1 | null | null | null | null | UTF-8 | Lean | false | false | 9,991 | lean | /-
Copyright (c) 2019 Neil Strickland. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Neil Strickland
(This is part of an attempt to formalise some material from
a basic undergraduate combinatorics course.)
We consider the equation x₀ + ... + xₘ = n,
where the va... |
e2791828596f8e9467dbc879794edcc967805f99 | 4727251e0cd73359b15b664c3170e5d754078599 | /src/topology/uniform_space/compare_reals.lean | 6570bd5fc763ded178112a841cfbfa63c0fe69a8 | [
"Apache-2.0"
] | permissive | Vierkantor/mathlib | 0ea59ac32a3a43c93c44d70f441c4ee810ccceca | 83bc3b9ce9b13910b57bda6b56222495ebd31c2f | refs/heads/master | 1,658,323,012,449 | 1,652,256,003,000 | 1,652,256,003,000 | 209,296,341 | 0 | 1 | Apache-2.0 | 1,568,807,655,000 | 1,568,807,655,000 | null | UTF-8 | Lean | false | false | 4,833 | lean | /-
Copyright (c) 2019 Patrick MAssot. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Patrick Massot
-/
import topology.uniform_space.absolute_value
import topology.instances.real
import topology.instances.rat
import topology.uniform_space.completion
/-!
# Comparison o... |
951c738f8428257d558307e65403b472d39877a5 | e1440579fb0723caf9edf1ed07aee74bbf4f5ce7 | /lean-experiments/stumps-learnable/src/stump/stump_pac_lemmas.lean | 5febc1d1cca66b79b1c1e7f04e79938de28b6f4d | [
"Apache-2.0"
] | permissive | palmskog/coq-proba | 1ecc5b7f399894ea14d6094a31a063280a122099 | f73e2780871e2a3dd83b7ce9d3aed19f499f07e5 | refs/heads/master | 1,599,620,504,720 | 1,572,960,008,000 | 1,572,960,008,000 | 221,326,479 | 0 | 0 | Apache-2.0 | 1,573,598,769,000 | 1,573,598,768,000 | null | UTF-8 | Lean | false | false | 4,826 | lean | /-
Copyright © 2019, Oracle and/or its affiliates. All rights reserved.
-/
import .setup_properties
import .algorithm_properties
local attribute [instance] classical.prop_decidable
open set
open measure_theory
open well_founded
namespace stump
variables (μ: probability_measure ℍ) (target: ℍ) (n: ℕ)
lemma partitio... |
0d950f589ea93925cfe7bbb2be0b12a588388118 | cf39355caa609c0f33405126beee2739aa3cb77e | /tests/lean/run/1703.lean | 68c56b7d4cd30fef0ede00e0b6c5d6f26b54103e | [
"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 | 159 | lean | namespace ns
structure struct :=
(index : ℕ)
end ns
open ns
def foo : struct :=
{ ns.struct . index := 1 }
def foo2 : struct :=
{ struct . index := 1 }
|
d6c99cf2713fd875c0ae95e7e011610c6c7374f6 | d436468d80b739ba7e06843c4d0d2070e43448e5 | /src/data/fintype.lean | edf9043c7f07bb295a95d61adb935476a525c8a2 | [
"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 | 35,075 | lean | /-
Copyright (c) 2017 Mario Carneiro. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Author: Mario Carneiro
Finite types.
-/
import data.finset algebra.big_operators data.array.lemmas logic.unique
import tactic.wlog
universes u v
variables {α : Type*} {β : Type*} {γ : Type*}
... |
a97276f85d43740cd655047260d963435aa6fd8a | 6b2a480f27775cba4f3ae191b1c1387a29de586e | /group_rep_2/basic_definitions/equiv.lean | 0baff08533bec770621f86990124c5d3b0878fab | [] | 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 | 5,569 | lean | import basic_definitions.morphism
universe variables u v w w'
open linear_map
namespace equiv_morphism
variables {G : Type u} [group G]
{R : Type v} [ring R]
{M : Type w} [add_comm_group M] [module R M]
{M' : Type w'} [add_comm_group M'] [module R M']
/--
an equiv`f : ρ ≃ᵣ π` ... |
e05593dcbe5e5fdd999de9fceafecff8c4104123 | d406927ab5617694ec9ea7001f101b7c9e3d9702 | /src/category_theory/isomorphism.lean | fbaca6813a4e69466252bfd81678f9473f523c21 | [
"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 | 16,380 | lean | /-
Copyright (c) 2017 Scott Morrison. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Tim Baumann, Stephen Morgan, Scott Morrison, Floris van Doorn
-/
import category_theory.functor.basic
/-!
# Isomorphisms
> THIS FILE IS SYNCHRONIZED WITH MATHLIB4.
> https://github.c... |
aa6f4da0037a3e06126d2c01daa18c6f57df447d | e07b1aca72e83a272dd59d24c6e0fa246034d774 | /src/surreal/zfc.lean | 1a327340f6e7aeda7bb0dd90b2833bb159e1c3d7 | [] | no_license | pedrominicz/learn | 637a343bd4f8669d76819ac660a2d2d3e0958710 | b79b802a9846c86c21d4b6f3e17af36e7382f0ef | refs/heads/master | 1,671,746,990,402 | 1,670,778,113,000 | 1,670,778,113,000 | 265,735,177 | 1 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 3,385 | lean | import tactic
universe u
inductive pSet : Type (u+1)
| mk : ∀ α : Type u, (α → pSet) → pSet
namespace pSet
def equiv : pSet → pSet → Prop
| (mk α fα) (mk β fβ) :=
(∀ a, ∃ b, equiv (fα a) (fβ b)) ∧ (∀ b, ∃ a, equiv (fα a) (fβ b))
/-
def equiv (x y : pSet) : Prop :=
pSet.rec (λ α z m ⟨β, B⟩, (∀ a, ∃ b, m a (B b)) ∧ ... |
83d81a24af698ca4987dafbd43aaa98f182c4815 | cc060cf567f81c404a13ee79bf21f2e720fa6db0 | /lean/20170425-congruence.lean | 281905f35b3da1f8a143ea8f49392bfe438334fc | [
"Apache-2.0"
] | permissive | semorrison/proof | cf0a8c6957153bdb206fd5d5a762a75958a82bca | 5ee398aa239a379a431190edbb6022b1a0aa2c70 | refs/heads/master | 1,610,414,502,842 | 1,518,696,851,000 | 1,518,696,851,000 | 78,375,937 | 2 | 1 | null | null | null | null | UTF-8 | Lean | false | false | 1,728 | lean | namespace tactic.interactive
open expr tactic
private meta def congr_aux : expr → expr → tactic unit
| (app f₁ a₁) (app f₂ a₂) :=
do apply ``(congr),
swap, reflexivity <|> swap,
congr_aux f₁ f₂
| _ _ := try reflexivity
/-- Given a goal of form `f a1 ... an = f' a1' ... an'`, this tactic breaks i... |
2b396b25347b76fd6091adf421517f94342dbdd7 | dc44027cf56929ab978847c471fbb9d769959991 | /lean-3.4.2-windows/lib/lean/library/init/version.lean | 38c9193194565aeb33387abb4553bd7dcbf449d7 | [] | no_license | PrestonTong/LeanIMP | f8862096d5a354aca011673145bf5ad0e0bbbca4 | bc69a2af202fc0cdf97e924935c920236132866a | refs/heads/master | 1,600,843,830,997 | 1,575,836,133,000 | 1,575,836,133,000 | 225,431,451 | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 331 | lean | prelude
import init.data.nat.basic init.data.string.basic
def lean.version : nat × nat × nat :=
(3, 4, 2)
def lean.githash : string :=
"cbd2b6686ddb566028f5830490fe55c0b3a9a4cb"
def lean.is_release : bool :=
1 ≠ 0
/-- Additional version description like "nightly-2018-03-11" -/
def lean.special_version_desc : string... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.