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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
e0ef9163b33897d063e8e07a6a673584bf5f0473 | 35677d2df3f081738fa6b08138e03ee36bc33cad | /src/category/monad/writer.lean | 346b3d4dafeefc680b6cd50b2276f66790d8c1ef | [
"Apache-2.0"
] | permissive | gebner/mathlib | eab0150cc4f79ec45d2016a8c21750244a2e7ff0 | cc6a6edc397c55118df62831e23bfbd6e6c6b4ab | refs/heads/master | 1,625,574,853,976 | 1,586,712,827,000 | 1,586,712,827,000 | 99,101,412 | 1 | 0 | Apache-2.0 | 1,586,716,389,000 | 1,501,667,958,000 | Lean | UTF-8 | Lean | false | false | 7,359 | lean |
/-
Copyright (c) 2019 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Simon Hudon
The writer monad transformer for passing immutable state.
-/
import tactic.basic category.monad.basic
universes u v w
structure writer_t (ω : Type u) (m : Type u... |
ca7952bafb03a92bfaf128014e029ac76700695a | 675b8263050a5d74b89ceab381ac81ce70535688 | /src/analysis/calculus/mean_value.lean | 4745fa82a70afd72fdb54ab21c7c450e071536e9 | [
"Apache-2.0"
] | permissive | vozor/mathlib | 5921f55235ff60c05f4a48a90d616ea167068adf | f7e728ad8a6ebf90291df2a4d2f9255a6576b529 | refs/heads/master | 1,675,607,702,231 | 1,609,023,279,000 | 1,609,023,279,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 53,536 | 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, Yury Kudryashov
-/
import analysis.calculus.local_extr
import analysis.convex.topology
/-!
# The mean value inequality and equalities
In this file we prove the ... |
7d86dfa7acd94b11af632c61d00816415fb589a6 | 6432ea7a083ff6ba21ea17af9ee47b9c371760f7 | /src/lake/Lake/Util/Compare.lean | a1259644420c8c67c1f1e5ec49b7c10f7bdbcb39 | [
"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 | 4,140 | lean | /-
Copyright (c) 2022 Mac Malone. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Mac Malone
-/
namespace Lake
/--
Proof that the equality of a compare function corresponds
to propositional equality.
-/
class EqOfCmp (α : Type u) (cmp : α → α → Ordering) where
eq_of... |
a1c38cd6142cc0a77add17ece08ea40fa438f586 | 618003631150032a5676f229d13a079ac875ff77 | /src/meta/expr_lens.lean | f853e452f7e957b29277f7694ebbca8d58e81481 | [
"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 | 5,753 | lean | /-
Copyright (c) 2020 Keeley Hoek. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Johan Commelin, Keeley Hoek, Scott Morrison
-/
import meta.expr
/-!
# A lens for zoming into nested `expr` applications
A "lens" for looking into the subterms of an expression, tracking ... |
d567ad0dd622175aef9bb788fe75b2334296b789 | 4d2583807a5ac6caaffd3d7a5f646d61ca85d532 | /archive/imo/imo1994_q1.lean | 9181ff40233b26472ffa30fa3b7d93d4a640b0a6 | [
"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 | 3,937 | lean | /-
Copyright (c) 2021 Antoine Labelle. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Antoine Labelle
-/
import algebra.big_operators.basic
import algebra.big_operators.order
import data.fintype.card
import data.finset.sort
import data.fin.interval
import tactic.linari... |
3d3fd6c1dedd0568c706c473cc85de06b6616374 | f5f7e6fae601a5fe3cac7cc3ed353ed781d62419 | /src/data/zsqrtd/gaussian_int.lean | 77eafd6c8548eaf68f0377630e429cca4310bc4f | [
"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 | 7,114 | lean | /-
Copyright (c) 2019 Chris Hughes. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Author: Chris Hughes
The gaussian integers ℤ[i].
-/
import data.zsqrtd.basic data.complex.basic algebra.euclidean_domain algebra.associated
open zsqrtd complex
@[reducible] def gaussian_int : ... |
5dffcd65ad50f821a33ebda9faf72e6bfa2fde7f | fe25de614feb5587799621c41487aaee0d083b08 | /src/Lean/PrettyPrinter/Delaborator/SubExpr.lean | 2c969c8f120200f31563abe47ed71e1d8e6c5ddd | [
"Apache-2.0"
] | permissive | pollend/lean4 | e8469c2f5fb8779b773618c3267883cf21fb9fac | c913886938c4b3b83238a3f99673c6c5a9cec270 | refs/heads/master | 1,687,973,251,481 | 1,628,039,739,000 | 1,628,039,739,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 3,487 | lean | /-
Copyright (c) 2021 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Daniel Selsam
-/
/-!
This file defines utilities for `MetaM` computations to traverse subexpressions
of an expression in sync with the `Nat` "position" values that refers to th... |
ceab33e7582eb3b6ae4b1043fb56baf49de51b36 | d6aa76a731f5d0a2c72a62729e52996fe8ac81b3 | /src/double_counting.lean | 80b0eb86519ab7c410aec26593f8d2680c63e6b4 | [] | no_license | jalex-stark/friendship-theorem | 88d30d3f4b17cc275a1a4bbc747eeb41f9e1b7a1 | d0e823b0b298c3fcfffe885cd6d2064a5757ef27 | refs/heads/master | 1,668,993,481,235 | 1,595,108,750,000 | 1,595,108,777,000 | 270,936,124 | 1 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 11,198 | lean | import data.fintype.basic data.finset data.prod algebra.big_operators
import tactic
open_locale classical
noncomputable theory
@[ext] structure bigraph (α β:Type*):=
(A: finset α)
(B: finset β)
(E:α → β → Prop)
variables {α :Type*} {β :Type*}
def uncurried (G:bigraph α β):(α × β) → Prop:=
function.uncurry (G.E... |
e93c7ccd6fdfd30887c19779578dc822e2a7a391 | 2eab05920d6eeb06665e1a6df77b3157354316ad | /src/group_theory/sylow.lean | d39e2ef52a22468c396f3bead18a424f4ddf009c | [
"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 | 19,435 | lean | /-
Copyright (c) 2018 Chris Hughes. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Chris Hughes, Thomas Browning
-/
import group_theory.group_action.conj_act
import group_theory.p_group
/-!
# Sylow theorems
The Sylow theorems are the following results for every fini... |
94a37776caab2cc333998b34ec3939269ad03e74 | d1a52c3f208fa42c41df8278c3d280f075eb020c | /src/Init/Data/Float.lean | 6743d7675aa00802fe3366f39e22bca5aef230c2 | [
"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 | 4,346 | 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... |
d8f15b7ac3729e057111749c4ae6d0c8c803526e | 302c785c90d40ad3d6be43d33bc6a558354cc2cf | /src/algebra/lie/subalgebra.lean | 736379c01d60b6f6ec7550af4884f0e545dff216 | [
"Apache-2.0"
] | permissive | ilitzroth/mathlib | ea647e67f1fdfd19a0f7bdc5504e8acec6180011 | 5254ef14e3465f6504306132fe3ba9cec9ffff16 | refs/heads/master | 1,680,086,661,182 | 1,617,715,647,000 | 1,617,715,647,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 19,186 | lean | /-
Copyright (c) 2021 Oliver Nash. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Oliver Nash
-/
import algebra.lie.basic
import ring_theory.noetherian
/-!
# Lie subalgebras
This file defines Lie subalgebras of a Lie algebra and provides basic related definitions and... |
a65df056f4e273e5255f242fbf9be1e05db672e8 | 35677d2df3f081738fa6b08138e03ee36bc33cad | /src/order/complete_lattice.lean | 8c85d842295db635295a3d84eb8b6cccc8c56af3 | [
"Apache-2.0"
] | permissive | gebner/mathlib | eab0150cc4f79ec45d2016a8c21750244a2e7ff0 | cc6a6edc397c55118df62831e23bfbd6e6c6b4ab | refs/heads/master | 1,625,574,853,976 | 1,586,712,827,000 | 1,586,712,827,000 | 99,101,412 | 1 | 0 | Apache-2.0 | 1,586,716,389,000 | 1,501,667,958,000 | Lean | UTF-8 | Lean | false | false | 34,841 | 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 complete lattices.
-/
import order.bounded_lattice order.bounds data.set.basic tactic.pi_instances tactic.alias
set_option old_structure_cmd true
open set
u... |
50b59a6b8454a1afbd61cc40a975e79aef1fc84b | b328e8ebb2ba923140e5137c83f09fa59516b793 | /tests/lean/PPRoundtrip.lean | 08741e892884e8636284ac538bee2b9403fb5560 | [
"Apache-2.0"
] | permissive | DrMaxis/lean4 | a781bcc095511687c56ab060e816fd948553e162 | 5a02c4facc0658aad627cfdcc3db203eac0cb544 | refs/heads/master | 1,677,051,517,055 | 1,611,876,226,000 | 1,611,876,226,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 2,929 | lean | import Lean
open Lean
open Lean.Elab
open Lean.Elab.Term
open Lean.Elab.Command
open Std.Format open Std
open Lean.PrettyPrinter
open Lean.Meta
def checkM (stx : TermElabM Syntax) (optionsPerPos : OptionsPerPos := {}) : TermElabM Unit := do
let opts ← getOptions
let stx ← stx
let e ← elabTermAndSynthesize stx none <... |
26df6a7145c349dfed1f66a47ddf7124fe38e803 | 6432ea7a083ff6ba21ea17af9ee47b9c371760f7 | /tests/lean/inductionMutual.lean | a63b51913644a464547a71bbae6a6a04a99320be | [
"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 | 178 | lean | mutual
inductive A : Type
| a : A
inductive B : Type
| b : B
end
example (x : PSigma fun (a : A) => True) : A := by
cases x with | mk x₁ x₂ => ?_
induction x₁
done
|
2685dec4de0d83949d8ca737f2087576a663d59f | bd12a817ba941113eb7fdb7ddf0979d9ed9386a0 | /src/data/fin.lean | e4cb01914898e966a7dcd6796241446433c71989 | [
"Apache-2.0"
] | permissive | flypitch/mathlib | 563d9c3356c2885eb6cefaa704d8d86b89b74b15 | 70cd00bc20ad304f2ac0886b2291b44261787607 | refs/heads/master | 1,590,167,818,658 | 1,557,762,121,000 | 1,557,762,121,000 | 186,450,076 | 0 | 0 | Apache-2.0 | 1,557,762,289,000 | 1,557,762,288,000 | null | UTF-8 | Lean | false | false | 7,457 | lean | /-
Copyright (c) 2017 Robert Y. Lewis. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Robert Y. Lewis, Keeley Hoek
More about finite numbers.
-/
import data.nat.basic
open fin nat
/-- `fin 0` is empty -/
def fin_zero_elim {C : Sort*} : fin 0 → C :=
λ x, false.elim $... |
0c098cb32f9fd129ebd2d1b2ef165d0bb6dfe68d | aa3f8992ef7806974bc1ffd468baa0c79f4d6643 | /tests/lean/run/e16.lean | 9cc1134d776a99f3eee2d8d2f1749d3571f7ddb0 | [
"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 | 661 | lean | inductive nat : Type :=
zero : nat,
succ : nat → nat
namespace nat end nat open nat
inductive list (A : Type) : Type :=
nil {} : list A,
cons : A → list A → list A
namespace list end list open list
check nil
check nil.{1}
check @nil.{1} nat
check @nil nat
check cons zero nil
inductive vector (A : Type) : nat → Ty... |
ae65298c1a95e4cd0b107971e27c00a1bce8d4d5 | bb31430994044506fa42fd667e2d556327e18dfe | /src/algebra/order/monoid/canonical/defs.lean | ffe6d64547c337303f22260ae6b8f763f528d75c | [
"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 | 10,279 | lean | /-
Copyright (c) 2016 Jeremy Avigad. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Jeremy Avigad, Leonardo de Moura, Mario Carneiro, Johannes Hölzl
-/
import order.bounded_order
import order.min_max
import algebra.ne_zero
import algebra.order.monoid.defs
/-!
# Canoni... |
9c708d1de76e18f9f7fb5c90b29e70de3d625372 | 4727251e0cd73359b15b664c3170e5d754078599 | /src/category_theory/adjunction/adjoint_functor_theorems.lean | 370acdc8ad9b7c1dfaf72cb6ba9b677074a8ac42 | [
"Apache-2.0"
] | permissive | Vierkantor/mathlib | 0ea59ac32a3a43c93c44d70f441c4ee810ccceca | 83bc3b9ce9b13910b57bda6b56222495ebd31c2f | refs/heads/master | 1,658,323,012,449 | 1,652,256,003,000 | 1,652,256,003,000 | 209,296,341 | 0 | 1 | Apache-2.0 | 1,568,807,655,000 | 1,568,807,655,000 | null | UTF-8 | Lean | false | false | 3,617 | lean | /-
Copyright (c) 2021 Bhavik Mehta. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Bhavik Mehta
-/
import category_theory.adjunction.basic
import category_theory.adjunction.comma
import category_theory.limits.constructions.weakly_initial
import category_theory.limits.p... |
b75915de213e898965f434e48ba44417a921eb35 | f57749ca63d6416f807b770f67559503fdb21001 | /library/data/real/complete.lean | 062d3c55385bcf904e4b251ec7a6b08f4fecd69c | [
"Apache-2.0"
] | permissive | aliassaf/lean | bd54e85bed07b1ff6f01396551867b2677cbc6ac | f9b069b6a50756588b309b3d716c447004203152 | refs/heads/master | 1,610,982,152,948 | 1,438,916,029,000 | 1,438,916,029,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 33,728 | 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
The real numbers, constructed as equivalence classes of Cauchy sequences of rationals.
This construction follows Bishop and Bridges (1985).
At this point, we no longer... |
1a2a4a318be24aa6522a69d28a83491e582c5b47 | 7cef822f3b952965621309e88eadf618da0c8ae9 | /src/data/num/basic.lean | 5716699b678e29aee0558e9369f0c30ae86d0778 | [
"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 | 17,290 | lean | /-
Copyright (c) 2014 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Leonardo de Moura, Mario Carneiro
Binary representation of integers using inductive types.
Note: Unlike in Coq, where this representation is preferred because of
the reliance ... |
b0e74c9c3a13382f87809ad6df973de77a43c0c7 | f3a5af2927397cf346ec0e24312bfff077f00425 | /src/game/world4/level5.lean | d83bebc4c56b908eb50f43bfba2058bbaf15a2d0 | [
"Apache-2.0"
] | permissive | ImperialCollegeLondon/natural_number_game | 05c39e1586408cfb563d1a12e1085a90726ab655 | f29b6c2884299fc63fdfc81ae5d7daaa3219f9fd | refs/heads/master | 1,688,570,964,990 | 1,636,908,242,000 | 1,636,908,242,000 | 195,403,790 | 277 | 84 | Apache-2.0 | 1,694,547,955,000 | 1,562,328,792,000 | Lean | UTF-8 | Lean | false | false | 433 | lean | import game.world4.level4 -- hide
namespace mynat -- hide
/-
# Power World
## Level 5: `pow_add`
-/
/- Lemma
For all naturals $a$, $m$, $n$, we have $a^{m + n} = a ^ m a ^ n$.
-/
lemma pow_add (a m n : mynat) : a ^ (m + n) = a ^ m * a ^ n :=
begin [nat_num_game]
induction n with t ht,
rw [add_zero, pow_zero... |
0fd04fca284779a1ea8fd641b099114ce2950782 | 74addaa0e41490cbaf2abd313a764c96df57b05d | /Mathlib/category_theory/limits/shapes/split_coequalizer_auto.lean | 9043a5c3af38cc6703f0c16f8653296247e2c889 | [] | 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,894 | lean | /-
Copyright (c) 2020 Bhavik Mehta. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Bhavik Mehta
-/
import Mathlib.PrePort
import Mathlib.Lean3Lib.init.default
import Mathlib.category_theory.limits.shapes.equalizers
import Mathlib.PostPort
universes v u l u₂
namespac... |
5b8c749c0fbc972474b1789f1e6123ebc52319e5 | 947b78d97130d56365ae2ec264df196ce769371a | /tests/lean/run/def1.lean | 4d3f904df20a35a603c6009fafc16c1637c9b0c1 | [
"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 | 443 | lean | new_frontend
inductive BV : Nat → Type
| nil : BV 0
| cons : (n : Nat) → (hd : Bool) → (tl : BV n) → BV (Nat.succ n)
open BV
def h : {n : Nat} → BV n.succ.succ → Bool
| _, cons (Nat.succ (Nat.succ m)) b v => b
| _, cons (Nat.succ Nat.zero) b v => not b
theorem ex1 (m : Nat) (b : Bool) (v : BV m.succ.succ) : h ... |
b16e14436dee9b73c5bc023bc017746af30369bc | 74addaa0e41490cbaf2abd313a764c96df57b05d | /Mathlib/data/set/finite.lean | b2fce2e6108cefc920a60a830b05c1ff0a118403 | [] | 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 | 24,768 | lean | /-
Copyright (c) 2017 Johannes Hölzl. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Johannes Hölzl, Mario Carneiro
-/
import Mathlib.PrePort
import Mathlib.Lean3Lib.init.default
import Mathlib.data.fintype.basic
import Mathlib.PostPort
universes u u_1 v u_2 x u_3
n... |
615df2f9dfa578bf42b6df97cd1798f3bf53e4f3 | bf3de31b5bab2d2f45db036440db572bf35564cf | /src/lib/util.lean | 184506e38c10a5cb620eb0ab41ffd41186df5c34 | [
"Apache-2.0"
] | permissive | ml-lab/stump-learnable | 60920c57e3238801ab97487497de026b0f843fd5 | c1156b36eb34f1a21c377d0b0644c1ea7e22686b | refs/heads/master | 1,599,132,375,763 | 1,572,478,931,000 | 1,572,478,931,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 10,003 | lean | /-
Copyright © 2019, Oracle and/or its affiliates. All rights reserved.
-/
import data.set
import analysis.complex.exponential
import ..lib.dvector
import ..lib.basic
import topology.constructions
local attribute [instance] classical.prop_decidable
open nnreal real ennreal set lattice
open topological_space
open m... |
b4cc6f8b18096e0b3227208814c33d8bed149241 | 7cef822f3b952965621309e88eadf618da0c8ae9 | /src/logic/basic.lean | 62746913418d0638a777592ca71fd90ed23e09a8 | [
"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 | 30,509 | lean | /-
Copyright (c) 2016 Jeremy Avigad. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Jeremy Avigad, Leonardo de Moura
-/
import tactic.library_note
/-!
# Basic logic properties
This file is one of the earliest imports in mathlib.
## Implementation notes
Theorems th... |
c06e2b53942f87fc3ee007ea4864a891fc067ec5 | 35677d2df3f081738fa6b08138e03ee36bc33cad | /src/data/nat/cast.lean | f76881e2186e5a6f81fd0918d203a170e41bd8ca | [
"Apache-2.0"
] | permissive | gebner/mathlib | eab0150cc4f79ec45d2016a8c21750244a2e7ff0 | cc6a6edc397c55118df62831e23bfbd6e6c6b4ab | refs/heads/master | 1,625,574,853,976 | 1,586,712,827,000 | 1,586,712,827,000 | 99,101,412 | 1 | 0 | Apache-2.0 | 1,586,716,389,000 | 1,501,667,958,000 | Lean | UTF-8 | Lean | false | false | 5,265 | lean | /-
Copyright (c) 2014 Mario Carneiro. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Mario Carneiro
Natural homomorphism from the natural numbers into a monoid with one.
-/
import tactic.interactive algebra.order algebra.ordered_group algebra.ring
import tactic.norm_c... |
cb5854ea013d644a755dba2de2b752ff9ba76104 | 9dd3f3912f7321eb58ee9aa8f21778ad6221f87c | /library/init/meta/vm.lean | 8c98d571ef4d8b82109be0c347da8b99417977ae | [
"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 | 6,510 | 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.data.option.basic
import init.meta.mk_dec_eq_instance
meta constant vm_obj : Type
inductive vm_obj_kind
| simple | co... |
740cea727efc22304f53329ac2d93cf820887d65 | 46125763b4dbf50619e8846a1371029346f4c3db | /src/analysis/normed_space/banach.lean | c614fc0b8051496f3f0ac65a40a4e3cc121331ab | [
"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 | 10,933 | 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
Banach spaces, i.e., complete vector spaces.
This file contains the Banach open mapping theorem, i.e., the fact that a bijective
bounded linear map between Banac... |
ac65e8570e631fdb0f4ea2625e840449b172e955 | 3dd1b66af77106badae6edb1c4dea91a146ead30 | /tests/lean/run/uni.lean | 5f6d9af1a977e315794a0fb2ffebc4ae1ede8c01 | [
"Apache-2.0"
] | permissive | silky/lean | 79c20c15c93feef47bb659a2cc139b26f3614642 | df8b88dca2f8da1a422cb618cd476ef5be730546 | refs/heads/master | 1,610,737,587,697 | 1,406,574,534,000 | 1,406,574,534,000 | 22,362,176 | 1 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 1,305 | lean | import logic
inductive nat : Type :=
| zero : nat
| succ : nat → nat
check @nat_rec
(*
local env = get_env()
local nat_rec = Const("nat_rec", {1})
local nat = Const("nat")
local n = Local("n", nat)
local C = Fun(n, Prop)
local p = Local("p", Prop)
local ff = Const("false")
local tt ... |
8b138883a622da2d6ed39a5b3490762b78d08d5e | 4d2583807a5ac6caaffd3d7a5f646d61ca85d532 | /src/group_theory/perm/basic.lean | d9bf15ce9bac209e4699f275a5876a824869eec8 | [
"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 | 16,280 | lean | /-
Copyright (c) 2015 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Leonardo de Moura, Mario Carneiro
-/
import algebra.group.pi
import algebra.group_power
/-!
# The group of permutations (self-equivalences) of a type `α`
This file defines the... |
852fc5fa7a8e58df0e349ba968faba3a45bbde57 | 7a0854479980a89e813e3c93d127f09a8e2c3a7e | /src/group/theorems.lean | 06e1f898a2ea779b45b56512cd42236994fa2a04 | [] | no_license | cfbolz/group-theory-game | 020e382df58bf9a510dce38304f27400e4ef0b80 | b5282ce72a2a22e9ba1b48cee432ff3d77496040 | refs/heads/master | 1,668,643,052,237 | 1,594,820,769,000 | 1,594,820,769,000 | 279,899,736 | 0 | 0 | null | 1,594,825,474,000 | 1,594,825,473,000 | null | UTF-8 | Lean | false | false | 5,816 | lean | import tactic
import group.definitions
/-
class group (G : Type) extends has_group_notation G :=
(mul_assoc : ∀ (a b c : G), a * b * c = a * (b * c))
(one_mul : ∀ (a : G), 1 * a = a)
(mul_left_inv : ∀ (a : G), a⁻¹ * a = 1)
-/
-- This entire project takes place in the mygroup namespace
namespace mygroup
/- Our first ... |
343cf908e1de4117fc6e4f5320fbf15cd663af81 | 359199d7253811b032ab92108191da7336eba86e | /src/mywork/9.24.2021 Notes.lean | a9ebd12bb52abcf88bfccc0cee942c28536389a8 | [] | no_license | arte-et-marte/my_cs2120f21 | 0bc6215cb5018a3b7c90d9d399a173233f587064 | 91609c3609ad81fda895bee8b97cc76813241e17 | refs/heads/main | 1,693,298,928,348 | 1,634,931,202,000 | 1,634,931,202,000 | 399,946,705 | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 2,244 | lean | /-
Logical Connectives:
-- =:
---- Intro: Reflexivity of equality
---- Elim: Substitutability
-- ∧:
---- Intro: And intro
-- ∨:
-- ∀:
---- Intro: assume, then show rest
---- Elim: apply
-- →:
-- ¬:
---- Intro: show P → false (assume we have a proof of false, then exact it)
---- Elim: ?
-- ↔:
---- Intro: 1
---- Elim: 2... |
9436c23f65500079b7be930afed1f0e3bd93f62b | 02005f45e00c7ecf2c8ca5db60251bd1e9c860b5 | /src/topology/instances/ennreal.lean | 7e6e487e317886701e82624128f1148a4baee31c | [
"Apache-2.0"
] | permissive | anthony2698/mathlib | 03cd69fe5c280b0916f6df2d07c614c8e1efe890 | 407615e05814e98b24b2ff322b14e8e3eb5e5d67 | refs/heads/master | 1,678,792,774,873 | 1,614,371,563,000 | 1,614,371,563,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 46,442 | 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
-/
import topology.instances.nnreal
/-!
# Extended non-negative reals
-/
noncomputable theory
open classical set filter metric
open_locale classical topological_space e... |
0220cfe66e65fe92612718147252ec9f0504c0bd | 57aec6ee746bc7e3a3dd5e767e53bd95beb82f6d | /stage0/src/Lean/Server/Snapshots.lean | cea14928a4dbd8e3fc6a2888e27b038a6cbf1f23 | [
"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 | 5,279 | lean | /-
Copyright (c) 2020 Wojciech Nawrocki. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Wojciech Nawrocki
-/
import Init.System.IO
import Lean.Elab.Frontend
/-! One can think of this module as being a partial reimplementation
of Lean.Elab.Frontend which also stores ... |
15547fe1a1c81f8f3dd01a6f643c68eb7b05ef62 | 7cef822f3b952965621309e88eadf618da0c8ae9 | /src/algebra/category/Mon/basic.lean | 1339012d4d5a1d35477ded3cd050a9dac3fe29d2 | [
"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 | 6,600 | lean | /-
Copyright (c) 2018 Scott Morrison. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Scott Morrison
-/
import category_theory.concrete_category
import algebra.group
import data.equiv.algebra
/-!
# Category instances for monoid, add_monoid, comm_monoid, and add_comm_m... |
01a675a4755d4bb1afc43a9f2db8bf9bce8147af | fa02ed5a3c9c0adee3c26887a16855e7841c668b | /src/data/fp/basic.lean | bba4c432b06d56d0501204b6600f0f490301e68c | [
"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 | 6,370 | lean | /-
Copyright (c) 2017 Mario Carneiro. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Mario Carneiro
-/
import data.rat
import data.semiquot
/-!
# Implementation of floating-point numbers (experimental).
-/
def int.shift2 (a b : ℕ) : ℤ → ℕ × ℕ
| (int.of_nat e) := (a.sh... |
3478b294ca75f8e38303636b68731753c17237ff | 1fbca480c1574e809ae95a3eda58188ff42a5e41 | /test/data/norm_num.lean | 82b7dc6f97dd96611ad37be576082050a9e96a0c | [] | no_license | unitb/lean-lib | 560eea0acf02b1fd4bcaac9986d3d7f1a4290e7e | 439b80e606b4ebe4909a08b1d77f4f5c0ee3dee9 | refs/heads/master | 1,610,706,025,400 | 1,570,144,245,000 | 1,570,144,245,000 | 99,579,229 | 5 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 919 | lean |
import tactic.norm_num
example : 374 + (32 - (2 * 8123) : ℤ) - 61 * 50 = 86 + 32 * 32 - 4 * 5000
∧ 43 ≤ 74 + (33 : ℤ) :=
by { norm_num }
example : (1103 : ℤ) ≤ (2102 : ℤ) :=
by { norm_num }
example : (11047462383473829263 : ℤ) ≤ (21048574677772382462 : ℤ) :=
by { norm_num, }
example : (210485742382937847263... |
500b671e695035c60438f6226690e1bf6c7c4292 | 36c7a18fd72e5b57229bd8ba36493daf536a19ce | /tests/lean/simplifier17.lean | 45472598a9d8d288072976f37d9546531868c7ad | [
"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 | 432 | lean | import algebra.ring algebra.numeral
open algebra
universe l
constants (A : Type.{l}) (s : comm_ring A) (x : A)
attribute s [instance]
set_option simplify.numerals true
#simplify eq env 0 (1:A)
#simplify eq env 0 (1:A) + 1
#simplify eq env 0 (1:A) + 1 + 1
#simplify eq env 0 (1:A) + 2 + 1
#simplify eq env 0 (1:A) + 2 *... |
68f752309372367a3fbe1a8ee9898919c9ea7b2a | d406927ab5617694ec9ea7001f101b7c9e3d9702 | /src/ring_theory/subring/pointwise.lean | f5882efd1fd8f2ee8a45f2a55e7840f2bf2b0f95 | [
"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 | 4,802 | lean | /-
Copyright (c) 2021 Eric Wieser. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Eric Wieser
-/
import ring_theory.subring.basic
import group_theory.subgroup.pointwise
import ring_theory.subsemiring.pointwise
import data.set.pointwise.basic
/-! # Pointwise instances ... |
952df0e761457c53279d1e8c966e384b540e5715 | 626e312b5c1cb2d88fca108f5933076012633192 | /src/group_theory/p_group.lean | 329f0f67700c706d14c79be88c1d4589f7ef8276 | [
"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 | 3,710 | lean | /-
Copyright (c) 2018 . All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Chris Hughes
-/
import group_theory.perm.cycle_type
/-!
# p-groups
This file contains a proof that if `G` is a `p`-group acting on a finite set `α`,
then the number of fixed points of the action ... |
30f30ae39714aee717bd7b5a65dea0091f2cc77f | b2fe74b11b57d362c13326bc5651244f111fa6f4 | /src/linear_algebra/tensor_algebra.lean | ec6e74100878f3192d05cd1e8e2d69437404a476 | [
"Apache-2.0"
] | permissive | midfield/mathlib | c4db5fa898b5ac8f2f80ae0d00c95eb6f745f4c7 | 775edc615ecec631d65b6180dbcc7bc26c3abc26 | refs/heads/master | 1,675,330,551,921 | 1,608,304,514,000 | 1,608,304,514,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 4,871 | lean | /-
Copyright (c) 2020 Adam Topaz. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Author: Adam Topaz.
-/
import algebra.free_algebra
import algebra.ring_quot
/-!
# Tensor Algebras
Given a commutative semiring `R`, and an `R`-module `M`, we construct the tensor algebra of `M`.
... |
d05d6122421f823a874ba1a98e3c2382334ca214 | 8d69f921382803e3e61f45f8f560274efa192dec | /groups.lean | d6cc2d5b2518e76d8539e1d7dc6f23b70aa4d988 | [] | no_license | Shamrock-Frost/lean | 970ace48de834f869610d165dbdb7670bbe17a92 | 4b7f7d99d1a81279cdccab58ec4654f75b69b13f | refs/heads/master | 1,626,204,585,296 | 1,508,222,227,000 | 1,508,222,227,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 3,622 | lean | namespace group_theory
universe u
--
-- Definitions and basic properties
--
class Magma (α : Type u) :=
(mul : α → α → α)
infix * := Magma.mul
class Group (α : Type u) extends Magma α :=
(associativity : ∀ a b c : α, a * (b * c) = (a * b) * c)
(e : α)
(left_identity : ∀ g : α, e * g = g)
(inv : α → α)
(left_inverse... |
4954bd51e25131d18e9544d95b9b283e2f6ef6d0 | d406927ab5617694ec9ea7001f101b7c9e3d9702 | /src/category_theory/closed/cartesian.lean | 848aeeb9213a2e762614494163d8de467d426139 | [
"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 | 14,122 | lean | /-
Copyright (c) 2020 Bhavik Mehta, Edward Ayers, Thomas Read. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Bhavik Mehta, Edward Ayers, Thomas Read
-/
import category_theory.epi_mono
import category_theory.limits.shapes.finite_products
import category_theory.monoida... |
9988a2baa1ecf5d132e2e512342c7e07806800ed | 80cc5bf14c8ea85ff340d1d747a127dcadeb966f | /src/set_theory/ordinal.lean | 0fe69951d39ef7b5bf44550cd818208fff711e3f | [
"Apache-2.0"
] | permissive | lacker/mathlib | f2439c743c4f8eb413ec589430c82d0f73b2d539 | ddf7563ac69d42cfa4a1bfe41db1fed521bd795f | refs/heads/master | 1,671,948,326,773 | 1,601,479,268,000 | 1,601,479,268,000 | 298,686,743 | 0 | 0 | Apache-2.0 | 1,601,070,794,000 | 1,601,070,794,000 | null | UTF-8 | Lean | false | false | 56,618 | lean | /-
Copyright (c) 2017 Johannes Hölzl. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Author: Mario Carneiro
-/
import set_theory.cardinal
/-!
# Ordinals
Ordinals are defined as equivalences of well-ordered sets under order isomorphism. They are endowed
with a total order, whe... |
32f7fe86db8d5f90e045feacecc69dc3d0875138 | 4d2583807a5ac6caaffd3d7a5f646d61ca85d532 | /src/algebra/big_operators/order.lean | d75dbe0e7a0fc6b006d8c12685ce898c72429111 | [
"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 | 22,726 | 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.order.absolute_value
import algebra.big_operators.basic
/-!
# Results about big operators with values in an ordered algebraic structure.
Mostly mono... |
17aba8f61a05768533fdd8789b4207b1c8825035 | 69d4931b605e11ca61881fc4f66db50a0a875e39 | /src/geometry/euclidean/basic.lean | 304683d3eff6543ff4c543b2958e0c096a4d8995 | [
"Apache-2.0"
] | permissive | abentkamp/mathlib | d9a75d291ec09f4637b0f30cc3880ffb07549ee5 | 5360e476391508e092b5a1e5210bd0ed22dc0755 | refs/heads/master | 1,682,382,954,948 | 1,622,106,077,000 | 1,622,106,077,000 | 149,285,665 | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 54,923 | lean | /-
Copyright (c) 2020 Joseph Myers. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Joseph Myers, Manuel Candales
-/
import analysis.normed_space.inner_product
import algebra.quadratic_discriminant
import analysis.normed_space.add_torsor
import data.matrix.notation
impo... |
d040dd16dcd9b9b77067fbe84087f539e897e2c7 | 491068d2ad28831e7dade8d6dff871c3e49d9431 | /library/data/nat/sub.lean | 36837dc92dcb22ba923f16ed4aa621570801bd71 | [
"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 | 18,880 | lean | /-
Copyright (c) 2014 Floris van Doorn. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Floris van Doorn, Jeremy Avigad
Subtraction on the natural numbers, as well as min, max, and distance.
-/
import .order
open eq.ops
namespace nat
/- subtraction -/
theorem sub_ze... |
f8dc745e5a49c996cadef5bf2e6a673068971b35 | 8cae430f0a71442d02dbb1cbb14073b31048e4b0 | /src/measure_theory/measure/with_density_vector_measure.lean | 20d61de0cff09df30b2136227e45c67315b2b89d | [
"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,733 | lean | /-
Copyright (c) 2021 Kexing Ying. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Kexing Ying
-/
import measure_theory.measure.vector_measure
import measure_theory.function.ae_eq_of_integral
/-!
# Vector measure defined by an integral
> THIS FILE IS SYNCHRONIZED WIT... |
5d0598f8b79bade445bff1241e68c4f60d90c940 | 9028d228ac200bbefe3a711342514dd4e4458bff | /src/group_theory/perm/sign.lean | cf2f52cc6de62f2eb7759c91b52e8cb67b687102 | [
"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 | 38,016 | lean | /-
Copyright (c) 2018 Chris Hughes. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Chris Hughes
-/
import data.fintype.basic
import data.finset.sort
import algebra.group.conj
import algebra.big_operators.basic
universes u v
open equiv function fintype finset
open_loca... |
43d03cb7c3d4e3ed908a82f889cf6963dc99d68e | 94e33a31faa76775069b071adea97e86e218a8ee | /src/measure_theory/constructions/prod.lean | b022a56081e0778df473924272656a965969c36b | [
"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 | 55,404 | lean | /-
Copyright (c) 2020 Floris van Doorn. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Floris van Doorn
-/
import measure_theory.measure.giry_monad
import dynamics.ergodic.measure_preserving
import measure_theory.integral.set_integral
import measure_theory.measure.open... |
df8bf218d41d143d8324d19af8295273db13466e | ce6917c5bacabee346655160b74a307b4a5ab620 | /src/ch4/ex0308.lean | 8a3899a129d3d8cc5be97bf883b5c3e4325f23c5 | [] | no_license | Ailrun/Theorem_Proving_in_Lean | ae6a23f3c54d62d401314d6a771e8ff8b4132db2 | 2eb1b5caf93c6a5a555c79e9097cf2ba5a66cf68 | refs/heads/master | 1,609,838,270,467 | 1,586,846,743,000 | 1,586,846,743,000 | 240,967,761 | 1 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 373 | lean | example (x y : ℕ) : (x + y) * (x + y) = x * x + y * x + x * y + y * y :=
by rw [mul_add, add_mul, add_mul, ←add_assoc]
example (x y : ℕ) : (x + y) * (x + y) = x * x + y * x + x * y + y * y :=
by simp [mul_add, add_mul, add_left_comm]
-- lean 3.6 removes simp attributes from add_left_comm
-- i.e., now it is require... |
2b304578d18daeaf50c8333f41a9aebf6063883c | 74addaa0e41490cbaf2abd313a764c96df57b05d | /Mathlib/data/semiquot.lean | fc99300f413530affc0bb2e1ec0d976f12710d96 | [] | 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,682 | lean | /-
Copyright (c) 2018 Mario Carneiro. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Mario Carneiro
A data type for semiquotients, which are classically equivalent to
nonempty sets, but are useful for programming; the idea is that
a semiquotient set `S` represents som... |
c297a7c8da9bc439eb2c28b0a4fbaefad03f2ea5 | 2eab05920d6eeb06665e1a6df77b3157354316ad | /src/analysis/inner_product_space/projection.lean | fac055c850dd04b6f3a765f74169884a73e9d72f | [
"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 | 48,531 | lean | /-
Copyright (c) 2019 Zhouhang Zhou. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Zhouhang Zhou, Frédéric Dupuis, Heather Macbeth
-/
import analysis.inner_product_space.basic
import analysis.convex.basic
/-!
# The orthogonal projection
Given a nonempty complete sub... |
8ff0b76fafef0df379a73aa5e2778acaba7acdec | 7a0854479980a89e813e3c93d127f09a8e2c3a7e | /src/orbit/random.lean | a9fb38addd2bba4257a96782618e3ea3f410d757 | [] | no_license | cfbolz/group-theory-game | 020e382df58bf9a510dce38304f27400e4ef0b80 | b5282ce72a2a22e9ba1b48cee432ff3d77496040 | refs/heads/master | 1,668,643,052,237 | 1,594,820,769,000 | 1,594,820,769,000 | 279,899,736 | 0 | 0 | null | 1,594,825,474,000 | 1,594,825,473,000 | null | UTF-8 | Lean | false | false | 16,361 | lean | import group_theory.subgroup data.fintype.basic
import tactic -- remove once library_search bug is fixed
noncomputable theory
open set classical
local attribute [instance] prop_decidable
structure partition (S : Type*) :=
(blocks : set (set S))
(nonempty : ∀ block ∈ blocks, block ≠ ∅)
(covers : univ = ⋃ (s ∈ blocks... |
74d0fa472f9a69ec578235b58948780ee72eb5dd | 624f6f2ae8b3b1adc5f8f67a365c51d5126be45a | /src/Init/Lean/Hygiene.lean | f53af9a54ee6386fcc203a2670015c5f3fb5a174 | [
"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 | 1,769 | lean | /-
Copyright (c) 2019 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Sebastian Ullrich
-/
prelude
import Init.Control
import Init.LeanInit
import Init.Lean.Syntax
namespace Lean
/- Remark: `MonadQuotation` class is part of the `Init` package and... |
9fcf11a2b43c7e9318c3ad79ea59c4f831f26a9f | 42610cc2e5db9c90269470365e6056df0122eaa0 | /library/theories/finite_group_theory/extra_hom.lean | d3064c2907f7ef3a1a3088a53a4ad1953fbbabf1 | [
"Apache-2.0"
] | permissive | tomsib2001/lean | 2ab59bfaebd24a62109f800dcf4a7139ebd73858 | eb639a7d53fb40175bea5c8da86b51d14bb91f76 | refs/heads/master | 1,586,128,387,740 | 1,468,968,950,000 | 1,468,968,950,000 | 61,027,234 | 0 | 0 | null | 1,465,813,585,000 | 1,465,813,585,000 | null | UTF-8 | Lean | false | false | 10,122 | lean | import data algebra.group data.set theories.finite_group_theory.subgroup
import theories.finite_group_theory.hom theories.finite_group_theory.subgroup
import theories.finite_group_theory.extra_subgroup
import theories.finite_group_theory.finsubg
namespace group_theory
open set group_theory group_theory.ops binary
ope... |
f3839368ee6dfee426004a73d14e00ac07bbdf3a | 5756a081670ba9c1d1d3fca7bd47cb4e31beae66 | /Mathport/Syntax/Translate/Basic.lean | f6a405a32a82a64e05ed4b38e0b79e3c2bf21f90 | [
"Apache-2.0"
] | permissive | leanprover-community/mathport | 2c9bdc8292168febf59799efdc5451dbf0450d4a | 13051f68064f7638970d39a8fecaede68ffbf9e1 | refs/heads/master | 1,693,841,364,079 | 1,693,813,111,000 | 1,693,813,111,000 | 379,357,010 | 27 | 10 | Apache-2.0 | 1,691,309,132,000 | 1,624,384,521,000 | Lean | UTF-8 | Lean | false | false | 28,263 | lean | /-
Copyright (c) 2021 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Mario Carneiro, Daniel Selsam
-/
import Mathport.Bridge.Config
import Mathport.Syntax.Data4
import Mathport.Syntax.Translate.Notation
import Mathport.Syntax.Translate.Attributes... |
28ff8c7efc6e3dd346fc238e5e4c378aac32105a | 302c785c90d40ad3d6be43d33bc6a558354cc2cf | /src/algebra/group_with_zero/power.lean | 922e8936e80ea5b8d69331b4c20c9a246ecb4c3f | [
"Apache-2.0"
] | permissive | ilitzroth/mathlib | ea647e67f1fdfd19a0f7bdc5504e8acec6180011 | 5254ef14e3465f6504306132fe3ba9cec9ffff16 | refs/heads/master | 1,680,086,661,182 | 1,617,715,647,000 | 1,617,715,647,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 9,490 | lean | /-
Copyright (c) 2020 Johan Commelin. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Johan Commelin
-/
import algebra.group_power
/-!
# Powers of elements of groups with an adjoined zero element
In this file we define integer power functions for groups with an adjoin... |
8bc6635ea3e7168fdf26c22874952fe0bf7e8138 | 57c233acf9386e610d99ed20ef139c5f97504ba3 | /src/group_theory/perm/basic.lean | ad2cf23c063a24ffb329b92bde6733df819a1cca | [
"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 | 16,318 | lean | /-
Copyright (c) 2015 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Leonardo de Moura, Mario Carneiro
-/
import algebra.group.pi
import algebra.group_power.lemmas
/-!
# The group of permutations (self-equivalences) of a type `α`
This file defi... |
da045b02cf30106a7607f7bd5686a458e25b1649 | 9c1ad797ec8a5eddb37d34806c543602d9a6bf70 | /n_ary_category.lean | 6699f0747fd6ffc249380d74ce2b5a58f4277f2f | [] | no_license | timjb/lean-category-theory | 816eefc3a0582c22c05f4ee1c57ed04e57c0982f | 12916cce261d08bb8740bc85e0175b75fb2a60f4 | refs/heads/master | 1,611,078,926,765 | 1,492,080,000,000 | 1,492,080,000,000 | 88,348,246 | 0 | 0 | null | 1,492,262,499,000 | 1,492,262,498,000 | null | UTF-8 | Lean | false | false | 4,574 | 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 .tactics
import .graph
import .category
open tqft.categories.graph
namespace tqft.categories.n_ary
@[reducible] definition {u v} compos... |
d165f6e5d3f2c4de60b8de398e856429d8342c0d | 9dc8cecdf3c4634764a18254e94d43da07142918 | /src/data/sym/sym2.lean | 399d63b1713b7245b1d9057932b86a449117eead | [
"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 | 21,754 | lean | /-
Copyright (c) 2020 Kyle Miller All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Kyle Miller
-/
import data.sym.basic
import tactic.linarith
/-!
# The symmetric square
This file defines the symmetric square, which is `α × α` modulo
swapping. This is also known as th... |
34c425430d05414fd1c99c1548a5d19ef2ea5b11 | cf39355caa609c0f33405126beee2739aa3cb77e | /tests/lean/run/dep_coe_to_fn2.lean | 10f4c35434f657301dfeaac17c1ed2731ad6757d | [
"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 | 228 | lean | universe variables u v
structure Func :=
(A : Type u) (B : A → Type v) (fn : Π a, B a → B a)
instance F_to_fn : has_coe_to_fun Func _ :=
{ coe := λ f, f^.fn }
variables (f : Func) (a : f^.A) (b : f^.B a)
#check (f a b)
|
b8adbf762b0160dc091a5f2544ad3a81593150d4 | e9dbaaae490bc072444e3021634bf73664003760 | /src/Problems/2014/IMO_2014_P4.lean | 88f42686c5b42b3868a899bc5dc561b6740ceba6 | [
"Apache-2.0"
] | permissive | liaofei1128/geometry | 566d8bfe095ce0c0113d36df90635306c60e975b | 3dd128e4eec8008764bb94e18b932f9ffd66e6b3 | refs/heads/master | 1,678,996,510,399 | 1,581,454,543,000 | 1,583,337,839,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 537 | lean | import Geo.Geo.Core
namespace Geo
open Angle Triangle
def IMO_2014_P4 : Prop :=
∀ (A B C P Q : Point),
acute ⟨A, B, C⟩ →
on P (Seg.mk B C) →
on Q (Seg.mk B C) →
uangle ⟨P, A, B⟩ = uangle ⟨B, C, A⟩ →
uangle ⟨C, A, Q⟩ = uangle ⟨A, B, C⟩ →
∀ (M N : Point),
on M (Line.mk A P) →
on N (Line.mk A Q) →
Seg.isMidpoint P ⟨A, ... |
7e872787b3786dd4ec0de24da10053e537e361f9 | c777c32c8e484e195053731103c5e52af26a25d1 | /src/logic/equiv/defs.lean | abb46c6753b6c1187301215007689623ba91ac75 | [
"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 | 35,293 | lean | /-
Copyright (c) 2015 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Leonardo de Moura, Mario Carneiro
-/
import data.fun_like.equiv
import logic.unique
/-!
# Equivalence between types
> THIS FILE IS SYNCHRONIZED WITH MATHLIB4.
> Any changes to... |
6c436c529823cb056ad14603d877bd50cc42330c | b70447c014d9e71cf619ebc9f539b262c19c2e0b | /hott/types/pi.hlean | 74b19ef7c5d2116428c12b631f7352dffef5a56f | [
"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 | 14,040 | hlean | /-
Copyright (c) 2014-15 Floris van Doorn. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Author: Floris van Doorn
Partially ported from Coq HoTT
Theorems about pi-types (dependent function spaces)
-/
import types.sigma arity cubical.square
open eq equiv is_equiv funext sigm... |
9ab0aaa505e6a0be01dd17b876c93aa8f2b0c63d | 86f6f4f8d827a196a32bfc646234b73328aeb306 | /examples/sets_functions_and_relations/unnamed_285.lean | 4ab45a053d4a503fabaea0c9832577c3c72d563d | [] | no_license | jamescheuk91/mathematics_in_lean | 09f1f87d2b0dce53464ff0cbe592c568ff59cf5e | 4452499264e2975bca2f42565c0925506ba5dda3 | refs/heads/master | 1,679,716,410,967 | 1,613,957,947,000 | 1,613,957,947,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 268 | lean | import tactic
open set
variable {α : Type*}
variables (s t u : set α)
-- BEGIN
example : s ∩ t = t ∩ s :=
begin
ext x,
simp only [mem_inter_eq],
split,
{ rintros ⟨xs, xt⟩, exact ⟨xt, xs⟩ },
rintros ⟨xt, xs⟩, exact ⟨xs, xt⟩
end
-- END |
5da828c34e8623e79b6c7a5dd4d28548d51a6114 | c777c32c8e484e195053731103c5e52af26a25d1 | /src/analysis/calculus/parametric_interval_integral.lean | 807cd3f5df161d54e9bfa766508648b1f48006ae | [
"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 | 6,485 | lean | /-
Copyright (c) 2021 Yury Kudryashov. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Yury Kudryashov
-/
import analysis.calculus.parametric_integral
import measure_theory.integral.interval_integral
/-!
# Derivatives of interval integrals depending on parameters
In t... |
bc0806b16692d0aaeccc772bb823c19b0978bdea | acc85b4be2c618b11fc7cb3005521ae6858a8d07 | /order/lattice.lean | 8a9b7ce118dd33d9f44715114a6e40a78bb06d8f | [
"Apache-2.0"
] | permissive | linpingchuan/mathlib | d49990b236574df2a45d9919ba43c923f693d341 | 5ad8020f67eb13896a41cc7691d072c9331b1f76 | refs/heads/master | 1,626,019,377,808 | 1,508,048,784,000 | 1,508,048,784,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 9,057 | 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
Defines the inf/sup (semi)-lattice with optionally top/bot type class hierarchy.
-/
import order.basic tactic.finish
open auto
set_option old_structure_cmd true
univ... |
04375a936a1f1e72a5ba8675bfc23b07967c0c0a | b7f22e51856f4989b970961f794f1c435f9b8f78 | /tests/lean/run/rewriter14.lean | d7494de6b63fbfc63195cb712f9fde19c43e35db | [
"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 | 222 | lean | import data.nat
open nat
definition f [unfold 2] (x y z : nat) : nat :=
x + y + z
attribute of_num [unfold 1]
example (x y : nat) (H1 : f x 0 0 = 0) : x = 0 :=
begin
rewrite [↑f at H1, 4>nat.add_zero at H1, H1]
end
|
50702c4109a7c3f7abfdb649fb4df3bdccf90a99 | 6065973b1fa7bbacba932011c9e2f32bf7bdd6c1 | /src/algebra/algebra/subalgebra.lean | 27556b29779f5caa2057158e5e510b2c2c1a43a8 | [
"Apache-2.0"
] | permissive | khmacdonald/mathlib | 90a0fa2222369fa69ed2fbfb841b74d2bdfd66cb | 3669cb35c578441812ad30fd967d21a94b6f387e | refs/heads/master | 1,675,863,801,090 | 1,609,761,876,000 | 1,609,761,876,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 18,846 | lean | /-
Copyright (c) 2018 Kenny Lau. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Kenny Lau, Yury Kudryashov
-/
import algebra.algebra.operations
/-!
# Subalgebras over Commutative Semiring
In this file we define `subalgebra`s and the usual operations on them (`map`, `... |
c38c52f114a7985a3152118fd3ec93e4432cc2dc | 57c233acf9386e610d99ed20ef139c5f97504ba3 | /src/data/ulift.lean | e5705f739e95c5478841016d9e585d332f32ca12 | [
"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,691 | 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 data.equiv.basic
/-!
# Extra lemmas about `ulift` and `plift`
In this file we provide `subsingleton`, `unique`, `decidable_eq`, and `is_empty` instances fo... |
91c1f4149994a6da55bcdfeaf7f5d6569dfbbd40 | 0c1546a496eccfb56620165cad015f88d56190c5 | /library/init/meta/smt/interactive.lean | e63005ddcb06aa143d981c6ff3ca018612515508 | [
"Apache-2.0"
] | permissive | Solertis/lean | 491e0939957486f664498fbfb02546e042699958 | 84188c5aa1673fdf37a082b2de8562dddf53df3f | refs/heads/master | 1,610,174,257,606 | 1,486,263,620,000 | 1,486,263,620,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 9,592 | lean | /-
Copyright (c) 2017 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Leonardo de Moura
-/
prelude
import init.meta.smt.smt_tactic init.meta.interactive
namespace smt_tactic
meta def save_info (line : nat) (col : nat) : smt_tactic unit :=
do (ss,... |
38c7244142758ce43b35d114b138fc8314336b85 | a9d0fb7b0e4f802bd3857b803e6c5c23d87fef91 | /library/data/prod.lean | f30944a8128cda24b6c13da11bca56a8367b9fdf | [
"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,060 | 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, Jeremy Avigad
-/
import logic.eq
open inhabited decidable
namespace prod
variables {A B : Type} {a₁ a₂ : A} {b₁ b₂ : B} {u : A × B}
theorem pair_eq : a₁ ... |
1f1d18b58da6816d40116f05436b677734129f99 | c3f2fcd060adfa2ca29f924839d2d925e8f2c685 | /tests/lean/run/tactic7.lean | ae8152331c65b523ef0e4b7556b55216ef579612 | [
"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 | 328 | lean | import logic
open tactic
theorem tst {A B : Prop} (H1 : A) (H2 : B) : A ∧ B ∧ A
:= by apply and.intro; state; assumption; apply and.intro; !assumption
check tst
theorem tst2 {A B : Prop} (H1 : A) (H2 : B) : A ∧ B ∧ A
:= by repeat ([apply @and.intro | assumption] ; trace "STEP"; state; trace "----------")
check tst2
|
ea1161454ac9841e8410feb989c6d7a094aa472c | 07c6143268cfb72beccd1cc35735d424ebcb187b | /src/algebra/lie_algebra.lean | e84af0432c09acb13710abb5c77517581f4af8d7 | [
"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 | 23,418 | lean | /-
Copyright (c) 2019 Oliver Nash. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Oliver Nash
-/
import ring_theory.algebra data.matrix.basic linear_algebra.linear_action
/-!
# Lie algebras
This file defines Lie rings, and Lie algebras over a commutative ring. It sho... |
0d665069b3db557e976a08d023f8ea01b977ea5d | 95dcf8dea2baf2b4b0a60d438f27c35ae3dd3990 | /src/linear_algebra/dimension.lean | c9727effb46ebb6a469a456de27d1562d7502464 | [
"Apache-2.0"
] | permissive | uniformity1/mathlib | 829341bad9dfa6d6be9adaacb8086a8a492e85a4 | dd0e9bd8f2e5ec267f68e72336f6973311909105 | refs/heads/master | 1,588,592,015,670 | 1,554,219,842,000 | 1,554,219,842,000 | 179,110,702 | 0 | 0 | Apache-2.0 | 1,554,220,076,000 | 1,554,220,076,000 | null | UTF-8 | Lean | false | false | 13,599 | lean | /-
Copyright (c) 2018 Mario Carneiro. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Author: Mario Carneiro, Johannes Hölzl, Sander Dahmen
Dimension of modules and vector spaces.
-/
import linear_algebra.basis
import set_theory.ordinal
noncomputable theory
local attribute [in... |
d5b7a7e91aebdf319ad1c5322fff5e2a1275695f | d436468d80b739ba7e06843c4d0d2070e43448e5 | /src/category/bitraversable/instances.lean | c1f310d423c07237b9cfd347ea01d45e7b92a6ed | [
"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 | 4,428 | lean | /-
Copyright (c) 2019 Simon Hudon. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Author(s): Simon Hudon
-/
import category.bitraversable.basic
category.bitraversable.lemmas
category.traversable.lemmas
tactic.solve_by_elim
/-!
# bitraversable instances
#... |
10bca4cc7077f6e5ea48b2469c39090fc94001f1 | 57aec6ee746bc7e3a3dd5e767e53bd95beb82f6d | /src/Lean/Meta/SizeOf.lean | 1780df462426b96bb2c125f5ca4a72f9b005ed46 | [
"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 | 21,984 | 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.AppBuilder
import Lean.Meta.Instances
namespace Lean.Meta
/-- Create `SizeOf` local instances for applicable parameters, and execute `k` ... |
17f6c8c3929fb227871993a9bdeb54a7fa891fdc | fa02ed5a3c9c0adee3c26887a16855e7841c668b | /src/topology/continuous_function/polynomial.lean | 1c069f3fb54be31eaae9a4d0682336193f21f9fc | [
"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 | 6,294 | 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 topology.algebra.polynomial
import topology.continuous_function.algebra
import topology.continuous_function.compact
import topology.unit_interval
/-!
# Constr... |
8194df8905c4889e0f4333fbd0ebe269125546e3 | 9dc8cecdf3c4634764a18254e94d43da07142918 | /src/category_theory/morphism_property.lean | 31947a267b336150b04ab6e7a7d56832fc553a73 | [
"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,743 | 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.limits.shapes.pullbacks
import category_theory.arrow
import category_theory.limits.shapes.comm_sq
/-!
# Properties of morphisms
We provide the basi... |
a7e354ecfac6d4d39fb3ad5f28db5dd77b7aa461 | 618003631150032a5676f229d13a079ac875ff77 | /src/category_theory/category/Rel.lean | 284a0706f0c13d3c7900a193b998e3230aaebbba | [
"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 | 851 | lean | /-
Copyright (c) 2019 Scott Morrison. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Scott Morrison
-/
import category_theory.category
/-!
The category of types with binary relations as morphisms.
-/
namespace category_theory
universe u
/-- A type synonym for `Type... |
f7a58cd083dc975adc3ff18e162c51742e3b7350 | 77c5b91fae1b966ddd1db969ba37b6f0e4901e88 | /src/ring_theory/multiplicity.lean | 251b724829c5b3fdd2a5cd3a7bae7d8620ae6cfd | [
"Apache-2.0"
] | permissive | dexmagic/mathlib | ff48eefc56e2412429b31d4fddd41a976eb287ce | 7a5d15a955a92a90e1d398b2281916b9c41270b2 | refs/heads/master | 1,693,481,322,046 | 1,633,360,193,000 | 1,633,360,193,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 19,683 | lean | /-
Copyright (c) 2018 Robert Y. Lewis. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Robert Y. Lewis, Chris Hughes
-/
import algebra.associated
import algebra.big_operators.basic
import ring_theory.valuation.basic
/-!
# Multiplicity of a divisor
For a commutative mo... |
e6f7312bc5e914440036b8b2e2a45ce4a970843b | fa02ed5a3c9c0adee3c26887a16855e7841c668b | /src/topology/tactic.lean | 1a0d27b66f46625177b65e8f82eb39e69f585211 | [
"Apache-2.0"
] | permissive | jjgarzella/mathlib | 96a345378c4e0bf26cf604aed84f90329e4896a2 | 395d8716c3ad03747059d482090e2bb97db612c8 | refs/heads/master | 1,686,480,124,379 | 1,625,163,323,000 | 1,625,163,323,000 | 281,190,421 | 2 | 0 | Apache-2.0 | 1,595,268,170,000 | 1,595,268,169,000 | null | UTF-8 | Lean | false | false | 4,156 | lean | /-
Copyright (c) 2020 Reid Barton. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Reid Barton
-/
import tactic.auto_cases
import tactic.tidy
import tactic.with_local_reducibility
import tactic.show_term
import topology.basic
/-!
# Tactics for topology
Currently we hav... |
75bd58b95990d0c2a6f2251985a71cddc46b109a | 8cae430f0a71442d02dbb1cbb14073b31048e4b0 | /src/algebra/order/chebyshev.lean | 619b8b6c0d5edbef990626be96fc61005712257e | [
"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,448 | lean | /-
Copyright (c) 2023 Mantas Bakšys, Yaël Dillies. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Mantas Bakšys, Yaël Dillies
-/
import algebra.big_operators.order
import algebra.order.rearrangement
import group_theory.perm.cycle.basic
/-!
# Chebyshev's sum inequality... |
30ecbba6ac12559ff93343ababaf1450e90c96df | a9d0fb7b0e4f802bd3857b803e6c5c23d87fef91 | /tests/lean/run/priority_test.lean | e6ed54f99d7f8b06ea2ddb401a11664a607a2f19 | [
"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 | 345 | lean | open nat
structure [class] foo :=
(a : nat) (b : nat)
attribute [instance, priority std.priority.default+1]
definition i1 : foo :=
foo.mk 1 1
attribute [instance]
definition i2 : foo :=
foo.mk 2 2
example : foo.a = 1 :=
rfl
attribute [instance, priority std.priority.default+2]
definition i3 : foo :=
foo.mk 3 3
ex... |
d004af27077640dd5bb2051b633aac45312e1bee | 4d2583807a5ac6caaffd3d7a5f646d61ca85d532 | /src/category_theory/arrow.lean | e16d527a60bb741948d092461508b8fe06019621 | [
"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 | 10,002 | lean | /-
Copyright (c) 2020 Markus Himmel. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Markus Himmel
-/
import category_theory.comma
/-!
# The category of arrows
The category of arrows, with morphisms commutative squares.
We set this up as a specialization of the comma ... |
a0c447a884079d55f0ce2cd620c4bce0ac807686 | 74addaa0e41490cbaf2abd313a764c96df57b05d | /Mathlib/algebra/homology/chain_complex_auto.lean | 8cfd30ccfc6ef7fe7b1987b74449c3bbfbc96c03 | [] | 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,290 | 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.data.int.basic
import Mathlib.category_theory.graded_object
import Mathlib.category_theory.... |
27870ae8ed56d5e47565a8cb4dcce0febce2957c | 74addaa0e41490cbaf2abd313a764c96df57b05d | /Mathlib/category_theory/limits/shapes/products.lean | 90558bcc1caa2bb457d3658ef43e4407664f755d | [] | 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 | 8,662 | lean | /-
Copyright (c) 2018 Scott Morrison. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Scott Morrison, Bhavik Mehta
-/
import Mathlib.PrePort
import Mathlib.Lean3Lib.init.default
import Mathlib.category_theory.limits.limits
import Mathlib.category_theory.discrete_categor... |
788234664518a724c7b382fae17562aed99e090f | 74addaa0e41490cbaf2abd313a764c96df57b05d | /Mathlib/linear_algebra/clifford_algebra.lean | 96df40f5d048928c2a1044fe557819ed55aeace7 | [] | no_license | AurelienSaue/Mathlib4_auto | f538cfd0980f65a6361eadea39e6fc639e9dae14 | 590df64109b08190abe22358fabc3eae000943f2 | refs/heads/master | 1,683,906,849,776 | 1,622,564,669,000 | 1,622,564,669,000 | 371,723,747 | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 7,462 | lean | /-
Copyright (c) 2020 Eric Wieser. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Eric Wieser, Utensil Song.
-/
import Mathlib.PrePort
import Mathlib.Lean3Lib.init.default
import Mathlib.algebra.ring_quot
import Mathlib.linear_algebra.tensor_algebra
import Mathlib.line... |
9c48b4bbee297654ad073b675977dc20078d64e4 | e4a7c8ab8b68ca0e53d2c21397320ea590fa01c6 | /src/data/polya/field/pform.lean | dc01a26c8b22c6128ae47ccc2e15f6fb604328b6 | [] | no_license | lean-forward/field | 3ff5dc5f43de40f35481b375f8c871cd0a07c766 | 7e2127ad485aec25e58a1b9c82a6bb74a599467a | refs/heads/master | 1,590,947,010,909 | 1,563,811,881,000 | 1,563,811,881,000 | 190,415,651 | 1 | 0 | null | 1,563,643,371,000 | 1,559,746,688,000 | Lean | UTF-8 | Lean | false | false | 6,563 | lean | import .basic
namespace polya.field
namespace nterm
namespace pform
variables {α : Type} [discrete_field α]
variables {γ : Type} [const_space γ]
variables [morph γ α] {ρ : dict α}
instance : has_coe (option (nterm γ)) (nterm γ) := ⟨λ x, x.get_or_else (const 1)⟩
private lemma eval_none : eval ρ ((none : option (nt... |
d5b4b7130b76dc523974c8be3bc220249463fd04 | 618003631150032a5676f229d13a079ac875ff77 | /src/deprecated/group.lean | a7df9ac4f891be8a7d5c780a458f5947607cc962 | [
"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 | 12,512 | lean | /-
Copyright (c) 2019 Yury Kudryashov. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Author: Yury Kudryashov
-/
import algebra.group.type_tags
import algebra.group.units_hom
import algebra.ring
/-!
# Unbundled monoid and group homomorphisms (deprecated)
This file defines typ... |
777d29abac17d5b2be9dcd25a08cd6df6e670051 | cabd1ea95170493667c024ef2045eb86d981b133 | /src/super/splitting.lean | adf8f68d03f1ba092728d73726ae6773e86a8a67 | [] | no_license | semorrison/super | 31db4b5aa5ef4c2313dc5803b8c79a95f809815b | 0c6c03ba9c7470f801eb4d055294f424ff090308 | refs/heads/master | 1,630,272,140,541 | 1,511,054,739,000 | 1,511,054,756,000 | 114,317,807 | 0 | 0 | null | 1,513,304,776,000 | 1,513,304,775,000 | null | UTF-8 | Lean | false | false | 2,667 | lean | /-
Copyright (c) 2017 Gabriel Ebner. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Gabriel Ebner
-/
import .prover_state
open monad expr list tactic
namespace super
private meta def find_components : list expr → list (list (expr × ℕ)) → list (list (expr × ℕ))
| (e::... |
0cfbb434390357539671f267e22787e264aac615 | d1a52c3f208fa42c41df8278c3d280f075eb020c | /src/Lean/Expr.lean | 11b77283f8605d8bda374d9eb197c310f39bea0f | [
"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 | 40,385 | lean | /-
Copyright (c) 2018 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Leonardo de Moura
-/
import Lean.Data.KVMap
import Lean.Level
namespace Lean
inductive Literal where
| natVal (val : Nat)
| strVal (val : String)
deriving Inhabited, BEq... |
34990271fb91d46a1ca15d444ebdfa05e0d1f6e0 | 957a80ea22c5abb4f4670b250d55534d9db99108 | /tests/lean/run/lst64.lean | 8a2a7a16659dc5c1d094db6dac6b2098663d4706 | [
"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 | 5,605 | lean | def mylist : list ℕ :=
#[
0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31
,0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31
,0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31
,0,1,2,3,4,5,6,7,8,9,10,11,12,13,... |
d35dddc1c56bc54bbd6c37c9305d00ed124f43cf | d450724ba99f5b50b57d244eb41fef9f6789db81 | /src/mywork/lectures/lecture_17.lean | a48850e2108b07dc9db3eb6b735d771e57270b8a | [] | no_license | jakekauff/CS2120F21 | 4f009adeb4ce4a148442b562196d66cc6c04530c | e69529ec6f5d47a554291c4241a3d8ec4fe8f5ad | refs/heads/main | 1,693,841,880,030 | 1,637,604,848,000 | 1,637,604,848,000 | 399,946,698 | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 4,854 | lean | import data.set
/-
We formally define two predicates on
natural numbers.
-/
def ev (n : ℕ) : Prop := n % 2 = 0
def od (n : ℕ) : Prop := ¬ ev n
/-
We now formally represent some sets.
Bear in mind that we represent a set
as a predicate, applicable to a value
of the member type, and "reducing to"
a proposition, possib... |
c05e31501b1c8e3c5b500c03472772d580cea5e3 | 9be442d9ec2fcf442516ed6e9e1660aa9071b7bd | /tests/lean/run/arthur2.lean | 9d6580f2f4e0e3f23334b6375eee8cd966fa8011 | [
"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 | 15,690 | lean | import Std
inductive NEList (α : Type)
| uno : α → NEList α
| cons : α → NEList α → NEList α
def NEList.contains [BEq α] : NEList α → α → Bool
| uno a, x => a == x
| cons a as, x => a == x || as.contains x
def NEList.noDup [BEq α] : NEList α → Bool
| uno a => true
| cons a as => ¬as.contains a &... |
32b68f00dbd199da409fe567597fe562ea3c1a13 | 33340b3a23ca62ef3c8a7f6a2d4e14c07c6d3354 | /equiv.lean | 39579ed9451c76289f613d30281e4e2542ffcb0e | [] | no_license | lclem/cooper | 79554e72ced343c64fed24b2d892d24bf9447dfe | 812afc6b158821f2e7dac9c91d3b6123c7a19faf | refs/heads/master | 1,607,554,257,488 | 1,578,694,133,000 | 1,578,694,133,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 2,425 | lean | import data.list.basic
variables {α β : Type}
namespace list
def equiv (l1 l2 : list α) := l1 ⊆ l2 ∧ l2 ⊆ l1
notation l1 `≃` l2 := equiv l1 l2
def equiv.refl {l : list α} : l ≃ l :=
and.intro (subset.refl _) (subset.refl _)
def equiv.symm {as1 as2 : list α} : (as1 ≃ as2) → (as2 ≃ as1) :=
begin
intro h, cases h... |
4ab11eab2f09f50a7af4779083f86b09b0084eca | 6fca17f8d5025f89be1b2d9d15c9e0c4b4900cbf | /src/game/world7/level6.lean | 928762c1937ff4e8aef799454e1ca529fff99a06 | [
"Apache-2.0"
] | permissive | arolihas/natural_number_game | 4f0c93feefec93b8824b2b96adff8b702b8b43ce | 8e4f7b4b42888a3b77429f90cce16292bd288138 | refs/heads/master | 1,621,872,426,808 | 1,586,270,467,000 | 1,586,270,467,000 | 253,648,466 | 0 | 0 | null | 1,586,219,694,000 | 1,586,219,694,000 | null | UTF-8 | Lean | false | false | 1,162 | lean | import game.world7.level5 -- hide
/-
# Advanced proposition world.
## Level 6: Or, and the `left` and `right` tactics.
`P ∨ Q` means "$P$ or $Q$". So to prove it, you
need to choose one of `P` or `Q`, and prove that one.
If `⊢ P ∨ Q` is your goal, then `left` changes this
goal to `⊢ P`, and `right` changes it to `⊢... |
172735dae7e28e9a9b80f87bb8c5be7564dc48a0 | bce603343785d07c32cb8b35950aba0b4d9415ae | /lean3/src/declaration_graph.lean | 96b5f29ecaa5a4b839053cbe5a71c3a2da22fee3 | [] | no_license | fpvandoorn/cryptomorphism | db00cf0b12c8fd561a6200eee6a6ff2a023f1228 | d486419ecced54de3db759dae81110be44b7c28b | refs/heads/master | 1,693,198,883,854 | 1,636,562,038,000 | 1,636,562,038,000 | 363,219,330 | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 6,423 | lean | import tactic
import all
/-!
Some functions for getting a graph of all classes/structures in mathlib.
-/
open tactic declaration environment native
namespace string
/-- `take s n` returns the first `n` characters of `s`. -/
meta def take (s : string) (n : ℕ) : string :=
(s.mk_iterator.nextn n).prev_to_string
end stri... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.