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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
32a79ca67b1681b4a9a5a329329628ecef8ac780 | cf39355caa609c0f33405126beee2739aa3cb77e | /tests/lean/1760.lean | 4399bcf006a52e16ef9bd0a017744ed6f274b14d | [
"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 | 122 | lean | section
parameter big_type : Type 1
parameter x : big_type
parameter f {A : Type} : A → bool
def foo : bool := f x
end
|
027d6df176a8ea798c713d9c85506621b6f36cab | d406927ab5617694ec9ea7001f101b7c9e3d9702 | /src/topology/fiber_bundle/trivialization.lean | 5efdcb77912b004af48ea9439f07f890ecb13b3a | [
"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 | 31,315 | lean | /-
Copyright (c) 2019 Sébastien Gouëzel. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Sébastien Gouëzel
-/
import data.bundle
import topology.algebra.order.field
import topology.local_homeomorph
/-!
# Trivializations
## Main definitions
### Basic definitions
* `t... |
f99e59863b0b4d1f873ade349869c21026a5fdd6 | 3dd1b66af77106badae6edb1c4dea91a146ead30 | /tests/lean/t9.lean | c43d1d457315bc44a9412d807c8d01f136fb8e75 | [
"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 | 380 | lean | precedence `+` : 65
precedence `*` : 75
precedence `=` : 50
precedence `≃` : 50
variable N : Type.{1}
variable a : N
variable b : N
variable add : N → N → N
variable mul : N → N → N
namespace foo
infixl + := add
infixl * := mul
check a+b*a
end
-- Notation is not avaiable outside the namespace
check a+b*a
namespac... |
8f6f6df05825e52ba531a3b5872354a32cd5e73f | 6432ea7a083ff6ba21ea17af9ee47b9c371760f7 | /tests/lean/csimpAttrAppend.lean | 4c6754757943519f96063c22636dfa83b1f07f68 | [
"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 | 98 | lean | set_option trace.compiler.ir.init true
def f (as bs cs : List Nat) : List Nat :=
as ++ bs ++ cs
|
34c38c8a1f2c4699ba19ea9992c065cb18440acb | 26ac254ecb57ffcb886ff709cf018390161a9225 | /src/set_theory/ordinal.lean | 1bdf007746952444cd08a85628b14d1477c3ee60 | [
"Apache-2.0"
] | permissive | eric-wieser/mathlib | 42842584f584359bbe1fc8b88b3ff937c8acd72d | d0df6b81cd0920ad569158c06a3fd5abb9e63301 | refs/heads/master | 1,669,546,404,255 | 1,595,254,668,000 | 1,595,254,668,000 | 281,173,504 | 0 | 0 | Apache-2.0 | 1,595,263,582,000 | 1,595,263,581,000 | null | UTF-8 | Lean | false | false | 147,440 | 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
import tactic.omega
/-!
# Ordinal arithmetic
Ordinals are defined as equivalences of well-ordered sets by order isomorphism.
-/
noncomput... |
008e4bd79a0bb4e4af8dd4917981f4d250a86165 | 6432ea7a083ff6ba21ea17af9ee47b9c371760f7 | /tests/simpperf/pre3000.lean | 65fa5212c0ff3038312f95476f138d63870c5803 | [
"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 | 262,530 | lean | axiom f (x : Prop) : Prop
axiom g0 (x : Prop) : Prop
axiom g1 (x : Prop) : Prop
axiom g2 (x : Prop) : Prop
axiom g3 (x : Prop) : Prop
axiom g4 (x : Prop) : Prop
axiom g5 (x : Prop) : Prop
axiom g6 (x : Prop) : Prop
axiom g7 (x : Prop) : Prop
axiom g8 (x : Prop) : Prop
axiom g9 (x : Prop) : Prop
axiom g10 (x : Prop) : P... |
abf6243a1af34ab9468365b4e1d8f412c7da41b6 | bdb33f8b7ea65f7705fc342a178508e2722eb851 | /data/analysis/topology.lean | 63ecb3015265123b89825b8dbf70bb792fdb250e | [
"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 | 8,440 | lean | /-
Copyright (c) 2017 Mario Carneiro. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Mario Carneiro
Computational realization of topological spaces (experimental).
-/
import analysis.topology.topological_space data.analysis.filter
open set
open filter (hiding realizer... |
33b028b1be31e87581b4c75d23605505233edbed | 6ad8da447296224074f89883744bc6a4752b6ea3 | /TestPkg1.lean | cf62532b342493c0f1d045dcca1bf1fb96c5a1e1 | [] | no_license | Kha/testpkg1 | e2cec4151b2aac878e97a7e7b77a06096d681f30 | ba955dd1023013686e4c5a7ed78344b7a5891e6a | refs/heads/master | 1,674,396,169,083 | 1,606,925,138,000 | 1,606,925,138,000 | 317,916,288 | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 23 | lean | def subject := "world"
|
731081e2bfae3697ae42cd46f3e1e7db9bb2ac3b | 57aec6ee746bc7e3a3dd5e767e53bd95beb82f6d | /src/Lean/Server/FileSource.lean | 755f49127cd93602f57edd8cc23191a6d25781d2 | [
"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 | 2,827 | lean | /-
Copyright (c) 2020 Marc Huisinga. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Marc Huisinga
-/
import Lean.Data.Lsp
namespace Lean
namespace Lsp
class FileSource (α : Type) where
fileSource : α → DocumentUri
export FileSource (fileSource)
instance Location.... |
2870de284fb98a3633e0ac1458a668eb89c62029 | 159fed64bfae88f3b6a6166836d6278f953bcbf9 | /Structure/Generic/Lemmas/CategoryTheoryLemmas.lean | 20367e11c98690451146a96dfb1eeef76e9e2910 | [
"MIT"
] | permissive | SReichelt/lean4-experiments | 3e56830c8b2fbe3814eda071c48e3c8810d254a8 | ff55357a01a34a91bf670d712637480089085ee4 | refs/heads/main | 1,683,977,454,907 | 1,622,991,121,000 | 1,622,991,121,000 | 340,765,677 | 2 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 17,081 | lean | #exit
import Structure.Generic.Axioms
import Structure.Generic.DerivedFunctors
import mathlib4_experiments.Data.Equiv.Basic
open GeneralizedRelation
set_option autoBoundImplicitLocal false
universes u v w
namespace GeneralizedProperty
def ConstProp (α : Sort u) {V : Universe} {β : V} (c : β) : GeneralizedP... |
f64d7908f2b39df83217f673cdbee8729dbf6f87 | e16d4df4c2baa34ab203178cea2c27905a3b63d3 | /src/day3.lean | f7920f625b49e52b7055e2dd6987857d1fcb3687 | [] | no_license | jembishop/advent-of-code-2020 | ea29eecb7f1d676dc1fd34b1a66efdbd23248aec | 32fd5bc28e7c178277e85dc034b55fce6dd4afce | refs/heads/main | 1,675,354,147,711 | 1,608,705,139,000 | 1,608,705,139,000 | 317,705,877 | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 1,754 | lean | import system.io
import data.vector
import data.zmod.basic
import utils
open io
open list
def tree_p : char → option bool
| '#' := some true
| '.' := some false
| _ := none
def WIDTH : ℕ := 31
def tree_line := vector bool WIDTH
def parse_line : string → option tree_line
| s := do
let mapped : list (op... |
62032b87d182b5ed8feb9b9c0bff5ee83a97c709 | 74addaa0e41490cbaf2abd313a764c96df57b05d | /Mathlib/Lean3Lib/init/data/option/basic_auto.lean | 72c250333bfbcb1344394157602606a8984f29fd | [] | 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 | 2,764 | 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
-/
import Mathlib.PrePort
import Mathlib.Lean3Lib.init.logic
import Mathlib.Lean3Lib.init.control.monad
import Mathlib.Lean3Lib.init.control.alternative
unive... |
e52dfc6f4197e29c6c494c824bbaf5e73d6e4b23 | d406927ab5617694ec9ea7001f101b7c9e3d9702 | /src/data/nat/order/basic.lean | bf22ba6b30e1ba32b6cc0207ef1c79f86784a144 | [
"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 | 23,738 | lean | /-
Copyright (c) 2014 Floris van Doorn (c) 2016 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Floris van Doorn, Leonardo de Moura, Jeremy Avigad, Mario Carneiro
-/
import algebra.order.ring.canonical
import data.nat.basic
/-!
# The natural numb... |
6c13c149342e0a94487b2483fa60537858b63cb8 | 74addaa0e41490cbaf2abd313a764c96df57b05d | /Mathlib/tactic/fin_cases_auto.lean | 6289fdb610b1c0e02a529cd0da8382be95e2b836 | [] | 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,652 | lean | /-
Copyright (c) 2018 Scott Morrison. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Author: Scott Morrison
Case bashing:
* on `x ∈ A`, for `A : finset α` or `A : list α`, or
* on `x : A`, with `[fintype A]`.
-/
import Mathlib.PrePort
import Mathlib.Lean3Lib.init.default
impor... |
52f169ff56cba75db4c6b4cfcce0d564ac85a52d | fa02ed5a3c9c0adee3c26887a16855e7841c668b | /src/data/nat/pairing.lean | 8fad07d48f584cd8f71cac25e26088923a903f6b | [
"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,316 | 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.nat.sqrt
import data.set.lattice
/-!
# Naturals pairing function
This file defines a pairing function for the naturals as fol... |
c56eded3ac755185dd11d5f36fd19b3400538a3c | 74addaa0e41490cbaf2abd313a764c96df57b05d | /Mathlib/ring_theory/polynomial/default.lean | c8fd4bbc3c6e863c9d832564544a3d932f2b9c3e | [] | 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 | 148 | lean | import Mathlib.PrePort
import Mathlib.Lean3Lib.init.default
import Mathlib.ring_theory.polynomial.basic
import Mathlib.PostPort
namespace Mathlib
|
c865d905300159a087a5a82801a2865303bcfba1 | cf39355caa609c0f33405126beee2739aa3cb77e | /tests/lean/run/IO3.lean | 5b279d218e2a6492aac8a96dd2663d6879cdcaa1 | [
"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 | 218 | lean | import system.io
open io
def main : io unit :=
do { l ← get_line,
if l = "hello" then
put_str "you have typed hello\n"
else
do {put_str "you did not type hello\n", put_str "-----------\n"} }
|
7cb05ec7ae2c981ae6d6f092c6f98f728a5bd7b5 | 958488bc7f3c2044206e0358e56d7690b6ae696c | /lean/structure.lean | d1e544dd3c5d9f6998af7dcf20e546d863dab705 | [] | no_license | possientis/Prog | a08eec1c1b121c2fd6c70a8ae89e2fbef952adb4 | d4b3debc37610a88e0dac3ac5914903604fd1d1f | refs/heads/master | 1,692,263,717,723 | 1,691,757,179,000 | 1,691,757,179,000 | 40,361,602 | 3 | 0 | null | 1,679,896,438,000 | 1,438,953,859,000 | Coq | UTF-8 | Lean | false | false | 1,964 | lean | structure Point (α : Type) :=
mk :: (x : α) (y : α)
--#check Point
--#check @Point.rec_on
--#check @Point.x
--#check @Point.y
--#print prefix Point
--#reduce Point.x (Point.mk 10 20)
--#reduce Point.y (Point.mk 10 20)
open Point
example (α : Type) (a b : α) : x (mk a b) = a := rfl
example (α : Type) (a b : α) : x ... |
a644318324445da416e2343a4063af4e170517a0 | d406927ab5617694ec9ea7001f101b7c9e3d9702 | /src/algebra/gcd_monoid/div.lean | 2c7616974c314378584138ec950d900dd5eb05d8 | [
"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 | 3,155 | lean | /-
Copyright (c) 2022 Riccardo Brasca. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Riccardo Brasca
-/
import algebra.gcd_monoid.finset
import algebra.gcd_monoid.basic
import ring_theory.int.basic
import ring_theory.polynomial.content
/-!
# Basic results about setwi... |
7c4026a7f448b9758fa46049279c7da447174f35 | 6432ea7a083ff6ba21ea17af9ee47b9c371760f7 | /tests/lean/run/2074.lean | 7d81ea356c701b2e3b581f64905ca0ec5777f806 | [
"Apache-2.0",
"LLVM-exception",
"NCSA",
"LGPL-3.0-only",
"LicenseRef-scancode-inner-net-2.0",
"BSD-3-Clause",
"LGPL-2.0-or-later",
"Spencer-94",
"LGPL-2.1-or-later",
"HPND",
"LicenseRef-scancode-pcre",
"ISC",
"LGPL-2.1-only",
"LicenseRef-scancode-other-permissive",
"SunPro",
"CMU-Mach"... | permissive | leanprover/lean4 | 4bdf9790294964627eb9be79f5e8f6157780b4cc | f1f9dc0f2f531af3312398999d8b8303fa5f096b | refs/heads/master | 1,693,360,665,786 | 1,693,350,868,000 | 1,693,350,868,000 | 129,571,436 | 2,827 | 311 | Apache-2.0 | 1,694,716,156,000 | 1,523,760,560,000 | Lean | UTF-8 | Lean | false | false | 1,963 | lean | class NonUnitalNonAssocSemiring (α : Type u)
class NonUnitalSemiring (α : Type u) extends NonUnitalNonAssocSemiring α
class Semiring (α : Type u) extends NonUnitalSemiring α
class NonUnitalCommSemiring (α : Type u) extends NonUnitalSemiring α
class CommSemiring (R : Type u) extends Semiring R
class NonUnitalNonAss... |
8a03dda41bbdc41d4a2e33ed00aa973b61d6875b | bbecf0f1968d1fba4124103e4f6b55251d08e9c4 | /src/algebra/lie/classical.lean | cf92304dcce18dbc09f277b8731f1333b63b8816 | [
"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 | 13,718 | lean | /-
Copyright (c) 2020 Oliver Nash. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Oliver Nash
-/
import algebra.invertible
import algebra.lie.skew_adjoint
import algebra.lie.abelian
import linear_algebra.matrix.trace
import linear_algebra.matrix.transvection
import dat... |
0aae9f14b489d062347be180e99dd772a9663701 | fcf3ffa92a3847189ca669cb18b34ef6b2ec2859 | /src/world6/level6.lean | ece67728cfdb4ae577d1b7873fea1faf872c8d14 | [
"Apache-2.0"
] | permissive | nomoid/lean-proofs | 4a80a97888699dee42b092b7b959b22d9aa0c066 | b9f03a24623d1a1d111d6c2bbf53c617e2596d6a | refs/heads/master | 1,674,955,317,080 | 1,607,475,706,000 | 1,607,475,706,000 | 314,104,281 | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 214 | lean | example (P Q R : Type) : (P → (Q → R)) → ((P → Q) → (P → R)) :=
begin
intro f,
intro g,
intro p,
apply f,
{
exact p,
},
{
apply g,
exact p,
}
end
|
cfc1d48717589c0dcb703b984f1c75bf8361f35c | 130c49f47783503e462c16b2eff31933442be6ff | /stage0/src/Lean/Data/Parsec.lean | b7ab019d02c3558d8b06bfddccc5b510618b4fe6 | [
"Apache-2.0"
] | permissive | Hazel-Brown/lean4 | 8aa5860e282435ffc30dcdfccd34006c59d1d39c | 79e6732fc6bbf5af831b76f310f9c488d44e7a16 | refs/heads/master | 1,689,218,208,951 | 1,629,736,869,000 | 1,629,736,896,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 4,240 | lean |
/-
Copyright (c) 2021 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Author: Dany Fabian
-/
namespace Lean
namespace Parsec
inductive ParseResult (α : Type) where
| success (pos : String.Iterator) (res : α)
| error (pos : String.Iterator) (err : St... |
945586962e919681250dff7fab5660a6dcf5b429 | 0a354201ce5d10ac9334623ab4426a02ba66d8d2 | /src/obviously.lean | 9118ac6b3b372416ccf0ed902f8c21ba15381db0 | [] | no_license | khoek/leancache-example | e09c85d88013968ccab9f01855aa2b7805031f96 | 5c55bb5a792c6a711ab12e6e6d2c7118d99a936c | refs/heads/master | 1,587,379,301,297 | 1,549,096,088,000 | 1,549,096,088,000 | 168,796,024 | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 584 | lean | import tidy.tidy
import tactic.tcache
import category_theory.natural_isomorphism
import category_theory.products
import category_theory.types
import category_theory.fully_faithful
import category_theory.yoneda
import category_theory.limits.cones
import category_theory.equivalence
open category_theory
suggestion cate... |
67c9ee78abc7efa646cef04c13a9ec7ce9a48256 | efce24474b28579aba3272fdb77177dc2b11d7aa | /src/homotopy_theory/formal/weak_equivalences/definitions.lean | 40a223fea3c7730d062d5e8dd34e930e474d164f | [
"Apache-2.0"
] | permissive | rwbarton/lean-homotopy-theory | cff499f24268d60e1c546e7c86c33f58c62888ed | 39e1b4ea1ed1b0eca2f68bc64162dde6a6396dee | refs/heads/lean-3.4.2 | 1,622,711,883,224 | 1,598,550,958,000 | 1,598,550,958,000 | 136,023,667 | 12 | 6 | Apache-2.0 | 1,573,187,573,000 | 1,528,116,262,000 | Lean | UTF-8 | Lean | false | false | 5,963 | lean | import category_theory.base
import category_theory.replete
open category_theory
open category_theory.category
local notation f ` ∘ `:80 g:80 := g ≫ f
universes v u
namespace homotopy_theory.weak_equivalences
class has_weak_equivalences (C : Type u) [category C] :=
(is_weq : Π ⦃a b : C⦄, (a ⟶ b) → Prop)
def is_weq ... |
4aa99ec36b4e92473bba9ba7dca6e6077b8f04fc | 842b7df4a999c5c50bbd215b8617dd705e43c2e1 | /nat_num_game/src/Advanced_Proposition_World/adv_prop_wrld10.lean | 786c97f260adc5ec237269da749f7c8a5189d35a | [] | no_license | Samyak-Surti/LeanCode | 1c245631f74b00057d20483c8ac75916e8643b14 | 944eac3e5f43e2614ed246083b97fbdf24181d83 | refs/heads/master | 1,669,023,730,828 | 1,595,534,784,000 | 1,595,534,784,000 | 282,037,186 | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 84 | lean | lemma contrapositive2 (P Q : Prop) : (¬ Q → ¬ P) → (P → Q) :=
begin
end |
b0ac38d42dc2f0934c5884d98a52f7dcbaa999f0 | ec62863c729b7eedee77b86d974f2c529fa79d25 | /9/b.lean | 5092e80e6ceec7e6857b061ad4ea3a85d32d1226 | [] | no_license | rwbarton/advent-of-lean-4 | 2ac9b17ba708f66051e3d8cd694b0249bc433b65 | 417c7e2718253ba7148c0279fcb251b6fc291477 | refs/heads/main | 1,675,917,092,057 | 1,609,864,581,000 | 1,609,864,581,000 | 317,700,289 | 24 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 1,006 | lean | def bufSize : Nat := 25
def isPairSum (xs : List Nat) (y : Nat) : Bool := do
for x₁ in xs do
for x₂ in xs do
if x₁ ≠ x₂ && x₁ + x₂ == y then return true
return false
def firstBad (xs : List Nat) : Nat := do
let mut old := xs.take bufSize
for x in xs.drop bufSize do
if ! isPairSum old x then return x
old := ... |
aca7ac2a73c74185f73ef8cb707d0f0634275316 | 95dcf8dea2baf2b4b0a60d438f27c35ae3dd3990 | /src/ring_theory/algebra_operations.lean | 2dea6076c7c2a5bf185b3c5c15b9652b16722903 | [
"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 | 5,086 | lean | /-
Copyright (c) 2019 Kenny Lau. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Kenny Lau
Multiplication of submodules of an algebra.
-/
import ring_theory.algebra ring_theory.noetherian
universes u v
open lattice submodule
namespace algebra
variables {R : Type u... |
fecb9b063f72e0a6b0c54df8c6d94843ca106f61 | c86b74188c4b7a462728b1abd659ab4e5828dd61 | /src/Lean/Elab/Command.lean | 950cbe45c8b32de629f3e1e2a513904b5a782ba5 | [
"Apache-2.0"
] | permissive | cwb96/lean4 | 75e1f92f1ba98bbaa6b34da644b3dfab2ce7bf89 | b48831cda76e64f13dd1c0edde7ba5fb172ed57a | refs/heads/master | 1,686,347,881,407 | 1,624,483,842,000 | 1,624,483,842,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 27,832 | lean | /-
Copyright (c) 2019 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Leonardo de Moura
-/
import Lean.Parser.Command
import Lean.ResolveName
import Lean.Meta.Reduce
import Lean.Elab.Log
import Lean.Elab.Term
import Lean.Elab.Binders
import Lean.E... |
145de59f151e7c04c8b66d34078a36cdc5d83d08 | 8cae430f0a71442d02dbb1cbb14073b31048e4b0 | /src/data/set/intervals/instances.lean | b70ae02eee13ed425041dee9bd4860cac544b28a | [
"Apache-2.0"
] | permissive | leanprover-community/mathlib | 56a2cadd17ac88caf4ece0a775932fa26327ba0e | 442a83d738cb208d3600056c489be16900ba701d | refs/heads/master | 1,693,584,102,358 | 1,693,471,902,000 | 1,693,471,902,000 | 97,922,418 | 1,595 | 352 | Apache-2.0 | 1,694,693,445,000 | 1,500,624,130,000 | Lean | UTF-8 | Lean | false | false | 10,162 | lean | /-
Copyright (c) 2022 Stuart Presnell. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Stuart Presnell, Eric Wieser, Yaël Dillies, Patrick Massot, Scott Morrison
-/
import algebra.group_power.order
import algebra.ring.regular
/-!
# Algebraic instances for unit interval... |
dd7e931e781a848b882b3fdb03e2dc5327c7b2fc | 9dc8cecdf3c4634764a18254e94d43da07142918 | /src/linear_algebra/orientation.lean | bb3a10db1967210b6ccae8fe53280261385e142e | [
"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 | 11,638 | lean | /-
Copyright (c) 2021 Joseph Myers. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Joseph Myers
-/
import linear_algebra.ray
import linear_algebra.determinant
/-!
# Orientations of modules
This file defines orientations of modules.
## Main definitions
* `orientatio... |
fb1f78f7b160309ba8c11aa5c4ddf8491b600bc6 | c777c32c8e484e195053731103c5e52af26a25d1 | /src/analysis/special_functions/trigonometric/arctan_deriv.lean | d36c11cf4d688d1a4bcdb20c54d1ec85fa564c6a | [
"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 | 7,614 | 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, Jean Lo, Calle Sönne, Benjamin Davidson
-/
import analysis.special_functions.trigonometric.arctan
import analysis.special_functions.trigonometric.... |
e40db65e5ef000f28916c37fd3688e0ed413d8e2 | e2fc96178628c7451e998a0db2b73877d0648be5 | /src/classes/unrestricted/closure_properties/star.lean | eeea5f8edb7f91d397915c6935d0eec0ccbd1e83 | [
"BSD-2-Clause"
] | permissive | madvorak/grammars | cd324ae19b28f7b8be9c3ad010ef7bf0fabe5df2 | 1447343a45fcb7821070f1e20b57288d437323a6 | refs/heads/main | 1,692,383,644,884 | 1,692,032,429,000 | 1,692,032,429,000 | 453,948,141 | 7 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 119,971 | lean | import classes.unrestricted.basics.lifting
import classes.unrestricted.closure_properties.concatenation
import utilities.written_by_others.trim_assoc
-- new nonterminal type
private def nn (N : Type) : Type :=
N ⊕ fin 3
-- new symbol type
private def ns (T N : Type) : Type :=
symbol T (nn N)
variables {T : Type}
... |
26de8b66620979f04d129883763cac33bededa52 | 6432ea7a083ff6ba21ea17af9ee47b9c371760f7 | /src/Lean/Elab/Command.lean | 4cb79e5c5db0e3c3c1bea4772006661a8bf6d4fd | [
"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 | 21,333 | lean | /-
Copyright (c) 2019 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Leonardo de Moura
-/
import Lean.Elab.Binders
import Lean.Elab.SyntheticMVars
namespace Lean.Elab.Command
structure Scope where
header : String
opts : Opti... |
2ffd578f3aa8605a22db9ecb3fa97160ff7ab550 | a6f55abce20abcd06e718cb3e5fba7bf8a230fa1 | /topic/animal.lean | 776c7d39e0737be0dbf2a2d572c46f1eb3e130aa | [] | no_license | sonna0909/abc | b8a53e906d4d000d1f2347173a1cd4221757fabf | ff7b4c621cdf6d53937f2d1b6def28de2085a2aa | refs/heads/master | 1,599,114,664,248 | 1,573,634,309,000 | 1,573,634,309,000 | 219,406,484 | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 6,987 | lean | [
{
"key": "chicken",
"title": "Chicken",
"spelling": "/'tʃikin/",
"subs": [
{
"key": "chicken1",
"title": "This is the chicken",
"spelling": ""
}
]
},
{
"key": "duck",
"title": "Duck",
"spelling": "/dʌk/",
"subs": [
{
"key": "d... |
b35d1d01f58c1b67a6930fd831b5e3d10884c925 | dc06cc9775d64d571bf4778459ec6fde1f344116 | /src/set_theory/ordinal.lean | 6225820dc4de4ac3393069ae762141953c33e245 | [
"Apache-2.0"
] | permissive | mgubi/mathlib | 8c1ea39035776ad52cf189a7af8cc0eee7dea373 | 7c09ed5eec8434176fbc493e0115555ccc4c8f99 | refs/heads/master | 1,642,222,572,514 | 1,563,782,424,000 | 1,563,782,424,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 128,820 | 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
Ordinal arithmetic.
Ordinals are defined as equivalences of well-ordered sets by order isomorphism.
-/
import order.order_iso set_theory.cardinal data.sum
noncomputable... |
9f3da44c83495cf2fd61035cd038b5ee85a2a076 | 07c6143268cfb72beccd1cc35735d424ebcb187b | /src/category_theory/eq_to_hom.lean | ef2c344a6ecd998930077a018380180960bd50ea | [
"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 | 2,771 | 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
-/
import category_theory.isomorphism
import category_theory.functor_category
import category_theory.opposites
import tactic.reassoc_axiom
universes v v' u u'... |
fb4b2500c015730f74f960e45c02ece1d601de60 | 618003631150032a5676f229d13a079ac875ff77 | /src/topology/uniform_space/cauchy.lean | d6b196657f3e111fcf36b31096ef76119506e9d2 | [
"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 | 25,052 | 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 topology.uniform_space.basic
import topology.bases
import data.set.intervals
/-!
# Theory of Cauchy filters in uniform spaces. Complete uniform... |
bfafb4c0036e76f44a70a056ac7936e6add3c8be | dd0f5513e11c52db157d2fcc8456d9401a6cd9da | /03_Propositions_and_Proofs.org.34.lean | 34476435ec808bd748ff3e9a08d7d9fa931b0b41 | [] | 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 | 168 | lean | /- page 43 -/
import standard
open classical
variable p : Prop
-- BEGIN
example (H : ¬¬p) : p :=
by_cases
(assume H1 : p, H1)
(assume H1 : ¬p, absurd H1 H)
-- END
|
d4eb990673e24b0079241fad2ddbdd7263774dd6 | 74addaa0e41490cbaf2abd313a764c96df57b05d | /Mathlib/data/mv_polynomial/funext.lean | 980409a8de1e93d6ae148d49641fd0294cdc0a2c | [] | 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,461 | 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 Mathlib.PrePort
import Mathlib.Lean3Lib.init.default
import Mathlib.data.polynomial.ring_division
import Mathlib.data.mv_polynomial.rename
import Mathlib.ring_... |
f15d01d9e373b3b61d76921c58d2245d79d8fd65 | 55c7fc2bf55d496ace18cd6f3376e12bb14c8cc5 | /src/algebra/category/CommRing/limits.lean | 36b3bc76c5ff9ae8714e26e8eaffceaece3def75 | [
"Apache-2.0"
] | permissive | dupuisf/mathlib | 62de4ec6544bf3b79086afd27b6529acfaf2c1bb | 8582b06b0a5d06c33ee07d0bdf7c646cae22cf36 | refs/heads/master | 1,669,494,854,016 | 1,595,692,409,000 | 1,595,692,409,000 | 272,046,630 | 0 | 0 | Apache-2.0 | 1,592,066,143,000 | 1,592,066,142,000 | null | UTF-8 | Lean | false | false | 4,844 | 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 algebra.category.CommRing.basic
import ring_theory.subring
import algebra.ring.pi
/-!
# The category of commutative rings has all limits
Further, these limit... |
dc7a3af9dd67afdbdbf148b65341ee7891d5d521 | 9ad8d18fbe5f120c22b5e035bc240f711d2cbd7e | /src/undergraduate/MAS114/Semester 1/Q21.lean | b7d9c783fefcddd18fd6ae6d92b5890532fa0bff | [] | 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 | 4,012 | lean | import algebra.ring algebra.group_power data.zmod.basic data.nat.prime
import data.finset algebra.big_operators
import tactic.ring tactic.linarith
namespace MAS114
namespace exercises_1
namespace Q21
def u (n : ℕ) : ℕ := 2 ^ n
def a (n : ℕ) : ℕ := 2 ^ (u n) + 1
lemma u_ge_1 (n : ℕ) : u n ≥ 1 :=
by {
let e := @na... |
871a2ad3e2d61d2c1e123f1bf6f69a6084d32a00 | bbecf0f1968d1fba4124103e4f6b55251d08e9c4 | /src/analysis/special_functions/exp_log.lean | da746bd2a6090d4968dbe5d98d32da992f8be858 | [
"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 | 38,027 | 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, Jean Lo, Calle Sönne
-/
import analysis.calculus.inverse
import analysis.complex.real_deriv
import data.complex.exponential
/-!
# Complex and rea... |
c752162d67af11464354034cca192b488bca3bb7 | 302c785c90d40ad3d6be43d33bc6a558354cc2cf | /src/algebra/module/basic.lean | ac4e619b6c51623dafd858b6a387ac69634ac42f | [
"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 | 22,299 | 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... |
2ba632bfb251dfb231499694136bf0957c54f95f | 8cae430f0a71442d02dbb1cbb14073b31048e4b0 | /src/tactic/noncomm_ring.lean | ff3e62df78bec45f9fa0d7b3cb3ce4625706a7e2 | [
"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 | 1,295 | lean | /-
Copyright (c) 2020 Oliver Nash. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Scott Morrison, Oliver Nash
-/
import tactic.abel
namespace tactic
namespace interactive
/-- A tactic for simplifying identities in not-necessarily-commutative rings.
An example:
```le... |
f7dc5fc544267daa01b14b086fcb0a0608022403 | 74addaa0e41490cbaf2abd313a764c96df57b05d | /Mathlib/category_theory/concrete_category/bundled_hom.lean | 8a4a02d426827277068f58b865c04f4f4ce1c6e8 | [] | 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,675 | lean | /-
Copyright (c) 2019 Scott Morrison. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Scott Morrison, Yury Kudryashov
-/
import Mathlib.PrePort
import Mathlib.Lean3Lib.init.default
import Mathlib.category_theory.concrete_category.basic
import Mathlib.category_theory.con... |
9a5de25c8aa9310db780b1252c24875520a3fbdf | 38ee9024fb5974f555fb578fcf5a5a7b71e669b5 | /Mathlib/Data/Nat/Gcd.lean | aefc7890ad8238ed0fe2db82a3c15d822a0fae87 | [
"Apache-2.0"
] | permissive | denayd/mathlib4 | 750e0dcd106554640a1ac701e51517501a574715 | 7f40a5c514066801ab3c6d431e9f405baa9b9c58 | refs/heads/master | 1,693,743,991,894 | 1,636,618,048,000 | 1,636,618,048,000 | 373,926,241 | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 20,261 | lean | /-
Copyright (c) 2014 Jeremy Avigad. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Jeremy Avigad, Leonardo de Moura
-/
import Mathlib.Data.Nat.Basic
import Mathlib.Init.Dvd
/-!
# Definitions and properties of `gcd`, `lcm`, and `coprime`
-/
namespace Nat
--- TODO a... |
c43e5c3be23a02e2b9bf195c860434592bce3d59 | 957a80ea22c5abb4f4670b250d55534d9db99108 | /tests/lean/nested_match.lean | fe951a969d1f103c3536ced9d5f157676a48de7a | [
"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 | 415 | lean | namespace ex1
def f : ℕ → ℕ
| n :=
(match n with
| 0 := 0
| (m+1) := f m
end) + 1
def g : ℕ → ℕ
| n :=
(match n, rfl : ∀ m, m = n → ℕ with
| 0, h := 0
| (m+1), h :=
have m < n, begin rw [←h], apply nat.lt_succ_self end,
g m
end) + 1
end ex1
namespace ex2
mutual def f, g
with f : ℕ → ℕ
... |
efcae6975f1a70b571531c90dc0e7a114b7cbd3f | 63abd62053d479eae5abf4951554e1064a4c45b4 | /src/tactic/monotonicity/lemmas.lean | af69a7e7573e4ed2f9f9f93b29997a6893add9ca | [
"Apache-2.0"
] | permissive | Lix0120/mathlib | 0020745240315ed0e517cbf32e738d8f9811dd80 | e14c37827456fc6707f31b4d1d16f1f3a3205e91 | refs/heads/master | 1,673,102,855,024 | 1,604,151,044,000 | 1,604,151,044,000 | 308,930,245 | 0 | 0 | Apache-2.0 | 1,604,164,710,000 | 1,604,163,547,000 | null | UTF-8 | Lean | false | false | 2,212 | lean | /-
Copyright (c) 2019 Simon Hudon. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Author: Simon Hudon
-/
import tactic.monotonicity.basic
import data.set.lattice
import order.bounds
variables {α : Type*}
@[mono]
lemma mul_mono_nonneg {x y z : α} [ordered_semiring α]
(h' : 0... |
a7966f1a4d566d98a733ccca5b59ccf405f1a750 | 35677d2df3f081738fa6b08138e03ee36bc33cad | /src/data/set/intervals/unordered_interval.lean | 2afbdc0b413db0459f040aa62588d6d7b521165a | [
"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,116 | lean | /-
Copyright (c) 2020 Zhouhang Zhou. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Zhouhang Zhou
-/
import data.set.intervals.basic order.bounds
/-!
# Intervals without endpoints ordering
In any decidable linear order `α`, we define the set of elements lying betwee... |
28b2b4fde3dd1812c1997e8ed06a3ddcf14973cf | d436468d80b739ba7e06843c4d0d2070e43448e5 | /src/analysis/complex/polynomial.lean | ae450b7853d6200e5077ac66ad8d0a93d287cb8b | [
"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 | 6,020 | lean | /-
Copyright (c) 2019 Chris Hughes All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Chris Hughes
-/
import data.polynomial topology.algebra.polynomial analysis.complex.exponential
open complex polynomial metric filter is_absolute_value set lattice
namespace complex
le... |
53e3cf18dc1fd50de45937dfdde8e7936f04779d | a9d0fb7b0e4f802bd3857b803e6c5c23d87fef91 | /library/init/meta/default.lean | 170483c4657bafb4da0a8aa28240321bc0de7210 | [
"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 | 796 | 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.name init.meta.options init.meta.format init.meta.rb_map
import init.meta.level init.meta.expr init.meta.environment init.meta.attr... |
f05521624e508a013967ad08f37ca560e5f144ef | 947fa6c38e48771ae886239b4edce6db6e18d0fb | /src/analysis/special_functions/exp.lean | 16febaeed988ddb3b3f1163f18203358adf1504e | [
"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,137 | 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, Jean Lo, Calle Sönne
-/
import analysis.complex.basic
import data.complex.exponential
import analysis.asymptotics.theta
/-!
# Complex and real ex... |
251d1a784ca79fe7bced38d10f4d55a0b5840084 | 8cae430f0a71442d02dbb1cbb14073b31048e4b0 | /src/geometry/manifold/cont_mdiff_mfderiv.lean | 89abe55046496ddb3206a8e702f9273ea14ba691 | [
"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 | 33,650 | lean | /-
Copyright (c) 2020 Sébastien Gouëzel. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Sébastien Gouëzel, Floris van Doorn
-/
import geometry.manifold.mfderiv
import geometry.manifold.cont_mdiff_map
/-!
### Interactions between differentiability, smoothness and manif... |
894776d6c000b6052c8f4f860bea0e10260118ba | 94e33a31faa76775069b071adea97e86e218a8ee | /src/data/complex/is_R_or_C.lean | 98b22ac51b55f9a4eb78a1b61a2771fb24805eb9 | [
"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 | 36,844 | lean | /-
Copyright (c) 2020 Frédéric Dupuis. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Frédéric Dupuis
-/
import data.real.sqrt
import field_theory.tower
import analysis.normed_space.finite_dimension
import analysis.normed_space.star.basic
/-!
# `is_R_or_C`: a typeclas... |
6b458c4dca9f606fccb87832d85d27c3ea8a4316 | b2fe74b11b57d362c13326bc5651244f111fa6f4 | /src/data/list/chain.lean | 5f9f170b0599b74525fe7c5fcca4fe0ad2812523 | [
"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 | 11,197 | lean | /-
Copyright (c) 2018 Mario Carneiro. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Mario Carneiro, Kenny Lau, Yury Kudryashov
-/
import data.list.pairwise
import logic.relation
universes u v
open nat
variables {α : Type u} {β : Type v}
namespace list
/- chain re... |
c1e3663a205da377e5180fc5b1e1d1ce2bbae8ea | 5ae26df177f810c5006841e9c73dc56e01b978d7 | /src/topology/instances/complex.lean | b55e2f817cc3329c634dd1ca7868045d1f975081 | [
"Apache-2.0"
] | permissive | ChrisHughes24/mathlib | 98322577c460bc6b1fe5c21f42ce33ad1c3e5558 | a2a867e827c2a6702beb9efc2b9282bd801d5f9a | refs/heads/master | 1,583,848,251,477 | 1,565,164,247,000 | 1,565,164,247,000 | 129,409,993 | 0 | 1 | Apache-2.0 | 1,565,164,817,000 | 1,523,628,059,000 | Lean | UTF-8 | Lean | false | false | 6,008 | lean | /-
Copyright (c) 2018 Mario Carneiro. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Author: Mario Carneiro
Topology of the complex numbers.
-/
import data.complex.basic topology.metric_space.basic topology.instances.real
noncomputable theory
open filter metric
namespace com... |
ba2bca84fa25a966abf5884782da7be3bca319e7 | d7189ea2ef694124821b033e533f18905b5e87ef | /galois/sum.lean | cb773c8c8e9a9f839bd5047212698412341346d5 | [
"Apache-2.0"
] | permissive | digama0/lean-protocol-support | eaa7e6f8b8e0d5bbfff1f7f52bfb79a3b11b0f59 | cabfa3abedbdd6fdca6e2da6fbbf91a13ed48dda | refs/heads/master | 1,625,421,450,627 | 1,506,035,462,000 | 1,506,035,462,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 1,495 | lean | def sum.left {a b} : a ⊕ b → option a
| (sum.inl a) := option.some a
| (sum.inr b) := option.none
def sum.right {a b} : a ⊕ b → option b
| (sum.inl a) := option.none
| (sum.inr b) := option.some b
def sum.fmap {c a b} : (a → b) → c ⊕ a → c ⊕ b
| f (sum.inl e) := sum.inl e
| f (sum.inr v) := sum.inr (f v)
def sum.bin... |
f3d2613c6e5f4e255982ae12f1431dd8812df28c | 74addaa0e41490cbaf2abd313a764c96df57b05d | /Mathlib/tactic/slim_check.lean | 4f113362deb405f666b3210425c24ceb745ea490 | [] | 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 | 3,753 | lean | /-
Copyright (c) 2020 Simon Hudon. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Author: Simon Hudon
-/
import Mathlib.PrePort
import Mathlib.Lean3Lib.init.default
import Mathlib.testing.slim_check.testable
import Mathlib.testing.slim_check.functions
import Mathlib.data.list.s... |
b37f895ed1c2fc41b952f4a46e53ff1261fb1021 | cf39355caa609c0f33405126beee2739aa3cb77e | /tests/lean/run/cases_crash1.lean | 544c864ffc8f3b12288c326d02813a0f05b8db79 | [
"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 | 362 | lean | open tactic
axiom Sorry : ∀ A : Type, A
inductive Enum : Type | ea | eb | ec | ed
attribute [instance]
noncomputable definition Enum_dec_eq : decidable_eq Enum :=
by do a ← intro `a, cases a,
b ← intro `b, cases b,
right >> reflexivity,
try (do left, h ← intro `H, cases h),
repeat $ intros >> ... |
ba1c7e1d066090277fe55cf7317745f0b45f12f7 | e0f9ba56b7fedc16ef8697f6caeef5898b435143 | /src/ring_theory/integral_domain.lean | 1790c47f1d53487c257e44231299ff78a51885b7 | [
"Apache-2.0"
] | permissive | anrddh/mathlib | 6a374da53c7e3a35cb0298b0cd67824efef362b4 | a4266a01d2dcb10de19369307c986d038c7bb6a6 | refs/heads/master | 1,656,710,827,909 | 1,589,560,456,000 | 1,589,560,456,000 | 264,271,800 | 0 | 0 | Apache-2.0 | 1,589,568,062,000 | 1,589,568,061,000 | null | UTF-8 | Lean | false | false | 5,250 | lean | /-
Copyright (c) 2020 Johan Commelin. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Johan Commelin, Chris Hughes
-/
import data.fintype.card
import data.polynomial
import group_theory.order_of_element
import algebra.geom_sum
/-!
# Integral domains
-/
section
open ... |
a060e45b52a36901b92bcac77c58adac37f069d2 | e00ea76a720126cf9f6d732ad6216b5b824d20a7 | /src/tactic/interactive.lean | b9e3508914416e328539fc27b6dceacd211b5e34 | [
"Apache-2.0"
] | permissive | vaibhavkarve/mathlib | a574aaf68c0a431a47fa82ce0637f0f769826bfe | 17f8340912468f49bdc30acdb9a9fa02eeb0473a | refs/heads/master | 1,621,263,802,637 | 1,585,399,588,000 | 1,585,399,588,000 | 250,833,447 | 0 | 0 | Apache-2.0 | 1,585,410,341,000 | 1,585,410,341,000 | null | UTF-8 | Lean | false | false | 41,805 | lean |
/-
Copyright (c) 2017 Mario Carneiro. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Mario Carneiro, Simon Hudon, Sebastien Gouezel, Scott Morrison
-/
import tactic.lint
open lean
open lean.parser
local postfix `?`:9001 := optional
local postfix *:9001 := many
name... |
ae6542e7a40e5d8b5a7ce871c451defac2f7bbfc | 367134ba5a65885e863bdc4507601606690974c1 | /src/set_theory/game.lean | 33f822ce6f1d849d0a84e07c978af9b273475c51 | [
"Apache-2.0"
] | permissive | kodyvajjha/mathlib | 9bead00e90f68269a313f45f5561766cfd8d5cad | b98af5dd79e13a38d84438b850a2e8858ec21284 | refs/heads/master | 1,624,350,366,310 | 1,615,563,062,000 | 1,615,563,062,000 | 162,666,963 | 0 | 0 | Apache-2.0 | 1,545,367,651,000 | 1,545,367,651,000 | null | UTF-8 | Lean | false | false | 5,400 | lean | /-
Copyright (c) 2019 Mario Carneiro. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Reid Barton, Mario Carneiro, Isabel Longbottom, Scott Morrison
-/
import set_theory.pgame
/-!
# Combinatorial games.
In this file we define the quotient of pre-games by the equivalen... |
00653243bf7e89b391dcda019b6bf48234486c3f | bbecf0f1968d1fba4124103e4f6b55251d08e9c4 | /src/data/polynomial/cancel_leads.lean | e21c1ea1b923bc684e502c660933fe12db9dd52d | [
"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 | 2,947 | lean | /-
Copyright (c) 2020 Aaron Anderson. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Aaron Anderson
-/
import data.polynomial.degree.definitions
/-!
# Cancel the leading terms of two polynomials
## Definition
* `cancel_leads p q`: the polynomial formed by multiplyin... |
abb32cfbc75d1136a83cd04785a48f3e216ae8ee | cf39355caa609c0f33405126beee2739aa3cb77e | /tests/lean/run/395a.lean | af0d530f2c7f7639c1e4cedbd63ada17df0adfb0 | [
"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 | 431 | lean | lemma test (h : true) : true → true :=
λ h, trivial
lemma test' (h : 0 = 0) : true → true :=
λ h, trivial
meta def mk_test : tactic unit :=
do
e ← tactic.to_expr ``(test trivial),
tactic.to_expr ``(%%e trivial) >>= tactic.exact
meta def mk_test' : tactic unit :=
do
e ← tactic.to_expr ``(test' rfl),
tactic.to... |
23ef99ede57f0e5889abc46cb33d367865f6d9da | 74addaa0e41490cbaf2abd313a764c96df57b05d | /Mathlib/Lean3Lib/init/cc_lemmas.lean | a6ba2c574f8d8068aa4475f25288b65d2887b532 | [] | 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,210 | 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
-/
import Mathlib.PrePort
import Mathlib.Lean3Lib.init.propext
import Mathlib.Lean3Lib.init.classical
universes u
namespace Mathlib
/- Lemmas use by the ... |
42cca942305aafdf2e7fe0813b9b81d7ccf09841 | 74addaa0e41490cbaf2abd313a764c96df57b05d | /Mathlib/tactic/linarith/datatypes_auto.lean | a51ebd86f8bd58fed55091c06b3a03c670913267 | [] | 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,776 | lean | /-
Copyright (c) 2020 Robert Y. Lewis. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Robert Y. Lewis
-/
import Mathlib.PrePort
import Mathlib.Lean3Lib.init.default
import Mathlib.meta.rb_map
import Mathlib.tactic.ring
import Mathlib.tactic.linarith.lemmas
import Mathl... |
97dde8d8e9f76fafd48903be2b8c6aa523f814d9 | d406927ab5617694ec9ea7001f101b7c9e3d9702 | /src/ring_theory/polynomial_algebra.lean | 323fb6f7d9f6f52930eeee14fb181cfaa95aee2a | [
"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 | 10,459 | 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 ring_theory.matrix_algebra
import data.polynomial.algebra_map
import data.matrix.basis
import data.matrix.dmatrix
/-!
# Algebra isomorphism between matrices o... |
f7950b3ee0b7be46e5dab244c2ea719e8bea908b | 74addaa0e41490cbaf2abd313a764c96df57b05d | /Mathlib/Lean3Lib/init/meta/match_tactic_auto.lean | aa3e41d5ea238b073fbdba9cc42d4de4e55fd092 | [] | 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,222 | 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
-/
import Mathlib.PrePort
import Mathlib.Lean3Lib.init.meta.interactive_base
import Mathlib.Lean3Lib.init.function
namespace Mathlib
namespace tactic
/-- A... |
d0931b27d3347ff1c2e5e9d5ee2bbcfb7411f47b | 4d2583807a5ac6caaffd3d7a5f646d61ca85d532 | /src/topology/sequences.lean | 1109f75deb634ccd1816a525758b0b9e95959c73 | [
"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 | 18,387 | lean | /-
Copyright (c) 2018 Jan-David Salchow. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Jan-David Salchow, Patrick Massot
-/
import topology.subset_properties
import topology.metric_space.basic
/-!
# Sequences in topological spaces
In this file we define sequences in... |
f950c559d7e7062427c2256ddbad49f577c3e2ee | a9d0fb7b0e4f802bd3857b803e6c5c23d87fef91 | /tests/lean/run/match_convoy2.lean | a3670a53eada278457361cd28ae80d4674bbbfea | [
"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 | 302 | lean |
inductive vec (A : Type) : nat → Type
| nil {} : vec nat.zero
| cons : ∀ {n}, A → vec n → vec (nat.succ n)
open vec
definition boo (n : nat) (v : vec bool n) : vec bool n :=
match n, v : ∀ (n : _), vec bool n → _ with
| 0, nil := nil
| n+1, cons a v := cons (bool.bnot a) v
end
|
a974796ccd45093e97722a7cce1e940729f60e10 | d406927ab5617694ec9ea7001f101b7c9e3d9702 | /src/topology/continuous_function/t0_sierpinski.lean | 6c3b386264580334e99a832ef092ede7fc0eb9e2 | [
"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 | 2,326 | lean | /-
Copyright (c) 2022 Ivan Sadofschi Costa. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Ivan Sadofschi Costa
-/
import topology.order
import topology.sets.opens
import topology.continuous_function.basic
/-!
# Any T0 space embeds in a product of copies of the Sierpi... |
452f2e353a2d4360fdeb1bffbcfe51c9e99275b8 | 7cef822f3b952965621309e88eadf618da0c8ae9 | /src/tactic/transport.lean | cf6500cb51aab27127a4cb7b98084e287ffe9f06 | [
"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 | 1,081 | lean | import meta.expr meta.rb_map
namespace tactic
private meta def transport_with_prefix_fun_aux (f : name → option name) (pre tgt_pre : name)
(attrs : list name) :
name → command :=
λ src,
do
let tgt := src.map_prefix (λ n, if n = pre then some tgt_pre else none),
(get_decl tgt >> skip) <|>
do
decl ← get_d... |
bb83761969dc647f755b75a7af1c81efd7e4beae | 952248371e69ccae722eb20bfe6815d8641554a8 | /test/normalizer.lean | 1b294120f1d3d3aff9efcee43bb68f85838f7000 | [] | no_license | robertylewis/lean_polya | 5fd079031bf7114449d58d68ccd8c3bed9bcbc97 | 1da14d60a55ad6cd8af8017b1b64990fccb66ab7 | refs/heads/master | 1,647,212,226,179 | 1,558,108,354,000 | 1,558,108,354,000 | 89,933,264 | 1 | 2 | null | 1,560,964,118,000 | 1,493,650,551,000 | Lean | UTF-8 | Lean | false | false | 290 | lean | import normalizer
open polya
constants a b c u v w z y x: ℚ
private meta def test_on (e : expr) := (do
t ← expr.to_term e,
st ← term.canonize t,
tactic.trace st
)
run_cmd test_on `(1*a + 3*(b + c) + 5*b)
run_cmd test_on `((1*u + (2* (1* v ^ 2 + 23*1) ^ 3) + 1*z) ^ 3)
|
cee1ac0f7935be0234f8bb9477a344b0a36d8d60 | ac2987d8c7832fb4a87edb6bee26141facbb6fa0 | /Mathlib/Tactic/SudoSetOption.lean | a420e3791b4b5198d6ca1da49077cf02e733bcc8 | [
"Apache-2.0"
] | permissive | AurelienSaue/mathlib4 | 52204b9bd9d207c922fe0cf3397166728bb6c2e2 | 84271fe0875bafdaa88ac41f1b5a7c18151bd0d5 | refs/heads/master | 1,689,156,096,545 | 1,629,378,840,000 | 1,629,378,840,000 | 389,648,603 | 0 | 0 | Apache-2.0 | 1,627,307,284,000 | 1,627,307,284,000 | null | UTF-8 | Lean | false | false | 1,655 | lean | /-
Copyright (c) 2021 Gabriel Ebner. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Gabriel Ebner
-/
import Lean
open Lean Elab
private def setOption [Monad m] [MonadError m]
(name val : Syntax) (opts : Options) : m Options := do
let val ← match val with
| ... |
6e1d3d185912b74f67a07d3827e411d11c072e10 | 82b86ba2ae0d5aed0f01f49c46db5afec0eb2bd7 | /src/Std/Data/HashSet.lean | b8482cd1a39f32ec2a939f0a558c2e063373bc1c | [
"Apache-2.0"
] | permissive | banksonian/lean4 | 3a2e6b0f1eb63aa56ff95b8d07b2f851072d54dc | 78da6b3aa2840693eea354a41e89fc5b212a5011 | refs/heads/master | 1,673,703,624,165 | 1,605,123,551,000 | 1,605,123,551,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 6,060 | lean | /-
Copyright (c) 2019 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Author: Leonardo de Moura
-/
namespace Std
universes u v w
def HashSetBucket (α : Type u) :=
{ b : Array (List α) // b.size > 0 }
def HashSetBucket.update {α : Type u} (data : HashSe... |
426464680fc63491bb83d32ff0b2cb802ebc75cf | 3d2a7f1582fe5bae4d0bdc2fe86e997521239a65 | /misc/bs2.lean | 8edbdc3ac3f70a7f0405a7afd4ab445d0be5a01d | [] | no_license | own-pt/common-sense-lean | e4fa643ae010459de3d1bf673be7cbc7062563c9 | f672210aecb4172f5bae265e43e6867397e13b1c | refs/heads/master | 1,622,065,660,261 | 1,589,487,533,000 | 1,589,487,533,000 | 254,167,782 | 3 | 2 | null | 1,589,487,535,000 | 1,586,370,214,000 | Lean | UTF-8 | Lean | false | false | 10,441 | lean | /-
The problem is originally presented in:
A. Pease, G. Sutcliffe, N. Siegel, and S. Trac, “Large Theory
Reasoning with SUMO at CASC,” pp. 1–8, Jul. 2009.
Here we present the natural deduction proof in Lean.
-/
import bs_test
-- some initial tests
lemma VertebrateAnimal : ∀ (x : U), ins x Vertebrate → ins x Animal :... |
d7233c896600f4ab62866e09cd0bd98cbb0563b1 | 37a833c924892ee3ecb911484775a6d6ebb8984d | /src/category_theory/examples/graphs.lean | 2f651f01cea1e7cc1b027267a0f3709dd8b6da1a | [] | no_license | silky/lean-category-theory | 28126e80564a1f99e9c322d86b3f7d750da0afa1 | 0f029a2364975f56ac727d31d867a18c95c22fd8 | refs/heads/master | 1,589,555,811,646 | 1,554,673,665,000 | 1,554,673,665,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 1,272 | lean | -- Copyright (c) 2017 Scott Morrison. All rights reserved.
-- Released under Apache 2.0 license as described in the file LICENSE.
-- Authors: Scott Morrison
import category_theory.category
import category_theory.graphs
open category_theory
open category_theory.graphs
namespace category_theory.examples.graphs
univer... |
d7aea61afdf2866486e4b419367b6ef9cd9bdd11 | 4727251e0cd73359b15b664c3170e5d754078599 | /src/category_theory/idempotents/karoubi.lean | 40f9de580a7cc247feff7673db7435b8721ed2c4 | [
"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 | 8,853 | lean | /-
Copyright (c) 2022 Joël Riou. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Joël Riou
-/
import category_theory.idempotents.basic
import category_theory.preadditive.additive_functor
import category_theory.equivalence
/-!
# The Karoubi envelope of a category
In t... |
5a8dc3133efe140d5898f8c9b4698082e803d245 | 69d4931b605e11ca61881fc4f66db50a0a875e39 | /src/linear_algebra/affine_space/finite_dimensional.lean | dd3c7c0ccc254cb5d72dd63253ba35af1179aeb5 | [
"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 | 16,088 | lean | /-
Copyright (c) 2020 Joseph Myers. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Joseph Myers
-/
import linear_algebra.affine_space.independent
import linear_algebra.finite_dimensional
/-!
# Finite-dimensional subspaces of affine spaces.
This file provides a few re... |
897c8ac2fba72c50945f9f0d50945bd864e5e636 | 54d7e71c3616d331b2ec3845d31deb08f3ff1dea | /library/data/bitvec.lean | c1c19e2429266e6aaf2e72055e075652a9b447ca | [
"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 | 6,548 | lean | /-
Copyright (c) 2015 Joe Hendrix. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Joe Hendrix, Sebastian Ullrich
Basic operations on bitvectors.
This is a work-in-progress, and contains additions to other theories.
-/
import data.vector
@[reducible] def bitvec (n : ... |
f8e53c6faf90bf105fa42f310b05ae93d9749c5c | fa02ed5a3c9c0adee3c26887a16855e7841c668b | /test/lift.lean | b723c733c57650867c3086c25701c85ec9e2c26d | [
"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 | 3,485 | lean | import tactic.lift
import data.set.basic
import data.int.basic
/-! Some tests of the `lift` tactic. -/
example (n m k x z u : ℤ) (hn : 0 < n) (hk : 0 ≤ k + n) (hu : 0 ≤ u)
(h : k + n = 2 + x) (f : false) :
k + n = m + x :=
begin
lift n to ℕ using le_of_lt hn,
guard_target (k + ↑n = m + x), guard_hyp hn : (0... |
7169f74dd0d12a9d79a2ce41222cbd776c77f75a | fa02ed5a3c9c0adee3c26887a16855e7841c668b | /src/ring_theory/polynomial/vieta.lean | 90a2d6188c9f8b89770b0301a6e0907e8970445b | [
"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,420 | lean | /-
Copyright (c) 2020 Hanting Zhang. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Hanting Zhang
-/
import ring_theory.polynomial.symmetric
/-!
# Vieta's Formula
The main result is `vieta.prod_X_add_C_eq_sum_esymm`, which shows that the product of linear terms
`λ + ... |
ae0eab2de486c4daba992dbbf1d33320a3f105c3 | 82b86ba2ae0d5aed0f01f49c46db5afec0eb2bd7 | /tests/lean/run/def12.lean | d3d731eea820f4721a5ab04e185188529a6b6cc7 | [
"Apache-2.0"
] | permissive | banksonian/lean4 | 3a2e6b0f1eb63aa56ff95b8d07b2f851072d54dc | 78da6b3aa2840693eea354a41e89fc5b212a5011 | refs/heads/master | 1,673,703,624,165 | 1,605,123,551,000 | 1,605,123,551,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 1,107 | lean |
def diag : Bool → Bool → Bool → Nat
| b, true, false => 1
| false, b, true => 2
| true, false, b => 3
| b1, b2, b3 => arbitrary Nat
theorem diag1 (a : Bool) : diag a true false = 1 :=
match a with
| true => rfl
| false => rfl
theorem diag2 (a : Bool) : diag false a true = 2 :=
by cases a; exact rfl; exact rfl
... |
e99b9efb3b2bcdede0e768ff367756194b613727 | 64874bd1010548c7f5a6e3e8902efa63baaff785 | /tests/lean/hott/cases.hlean | bfad630b20597263698d232967aed33c23916435 | [
"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 | 476 | hlean | open nat
inductive vec (A : Type) : nat → Type :=
nil {} : vec A zero,
cons : Π {n}, A → vec A n → vec A (succ n)
namespace vec
variables {A B C : Type}
variables {n m : nat}
notation a :: b := cons a b
protected definition destruct (v : vec A (succ n)) {P : Π {n : nat}, vec A (succ n) → Type}
... |
e892dbe49b33aa90b29ad711cf423c2226581668 | fa02ed5a3c9c0adee3c26887a16855e7841c668b | /src/data/pi.lean | a7bbe4b0801d254ad3c0fb734b753ad44ef2da1b | [
"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 | 3,858 | lean | /-
Copyright (c) 2020 Eric Wieser. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Simon Hudon, Patrick Massot, Eric Wieser
-/
import tactic.split_ifs
import tactic.simpa
import tactic.congr
import algebra.group.to_additive
/-!
# Instances and theorems on pi types
This... |
eafa5d3bcded7696e2f8a53b654db7361ec9f0a3 | 0845ae2ca02071debcfd4ac24be871236c01784f | /tests/playground/termparsertest1.lean | 3604e79ef663a53c42bc36af56587a2a4624e088 | [
"Apache-2.0"
] | permissive | GaloisInc/lean4 | 74c267eb0e900bfaa23df8de86039483ecbd60b7 | 228ddd5fdcd98dd4e9c009f425284e86917938aa | refs/heads/master | 1,643,131,356,301 | 1,562,715,572,000 | 1,562,715,572,000 | 192,390,898 | 0 | 0 | null | 1,560,792,750,000 | 1,560,792,749,000 | null | UTF-8 | Lean | false | false | 1,929 | lean | import init.lean.parser.term
open Lean
open Lean.Parser
def testParser (input : String) : IO Unit :=
do
env ← mkEmptyEnvironment;
termPTables ← builtinTermParsingTable.get;
stx ← IO.ofExcept $ runParser env termPTables input "<input>" "expr";
IO.println stx
def test (is : List String) : IO Unit :=
is.mfor $ fun input... |
9791479a50f49d60ff55145068d53cdd8a366184 | a76f677b87d42a9470ba3a0a78cfddd3063118e6 | /src/order/angle.lean | a4da26b034228c962386dd3d6291f6c719c8150e | [] | no_license | Ja1941/hilberts-axioms | 50219c732ad5fa167408432e8c8baae259777a40 | 5b653a92e448b77da41c9893066b641bc4e6b316 | refs/heads/master | 1,693,238,884,856 | 1,635,702,120,000 | 1,635,702,120,000 | 385,546,384 | 9 | 1 | null | null | null | null | UTF-8 | Lean | false | false | 30,123 | lean | /-
Copyright (c) 2021 Tianchen Zhao. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Tianchen Zhao
-/
import order.sidedness
/-!
# Ray and angle
This file defines rays and angles using `same_side_pt` and insidedness of an angle,
and then proves some important theorems... |
2273259e73fba664374ddce4ecbd0573e4acf8d2 | 57c233acf9386e610d99ed20ef139c5f97504ba3 | /src/category_theory/abelian/basic.lean | 1507c7ceae2d2212b6b2a177fc96086ef8736460 | [
"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 | 26,148 | 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.limits.constructions.pullbacks
import category_theory.limits.shapes.biproducts
import category_theory.limits.shapes.images
import category_theor... |
beb0671c9d6dfc10e19e0480b20347caee7ea05a | 46ee5dc7248ccc9ee615639c0c003c05f58975cd | /src/tableau-examples.lean | 68f9cd998babdd076a53a5a5c0353cdf02f7b040 | [
"Apache-2.0"
] | permissive | m4lvin/tablean | e61d593b4dde6512245192c577edeb36c48f63c0 | 836202612fc2bfacb5545696412e7d27f7704141 | refs/heads/main | 1,685,613,112,076 | 1,676,755,678,000 | 1,676,755,678,000 | 454,064,275 | 8 | 1 | null | null | null | null | UTF-8 | Lean | false | false | 4,586 | lean | -- TABLEAU-EXAMPLES
import syntax
import tableau
lemma noBot : provable (~ ⊥) :=
begin
apply provable.byTableau,
apply closedTableau.loc,
swap 2,
{
apply localTableau.byLocalRule (localRule.neg (finset.mem_singleton.mpr (refl (~~⊥)))),
intros β inB,
rw finset.sdiff_self at inB,
rw finset.empty... |
e551d1014358a369b19003ea6e64d0e493388e9b | 74addaa0e41490cbaf2abd313a764c96df57b05d | /Mathlib/category_theory/adjunction/mates_auto.lean | 6d2aa68015c798e3c81c67e0de2d223f896e7a73 | [] | 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 | 12,215 | lean | /-
Copyright (c) 2020 Bhavik Mehta. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Author: Bhavik Mehta
-/
import Mathlib.PrePort
import Mathlib.Lean3Lib.init.default
import Mathlib.category_theory.adjunction.basic
import Mathlib.category_theory.conj
import Mathlib.category_the... |
a640b293baf1a662bffbbd2df166e42f63047a96 | 367134ba5a65885e863bdc4507601606690974c1 | /src/data/fp/basic.lean | 613875501a11a2923864e60191ed55fdb0ba6c4e | [
"Apache-2.0"
] | permissive | kodyvajjha/mathlib | 9bead00e90f68269a313f45f5561766cfd8d5cad | b98af5dd79e13a38d84438b850a2e8858ec21284 | refs/heads/master | 1,624,350,366,310 | 1,615,563,062,000 | 1,615,563,062,000 | 162,666,963 | 0 | 0 | Apache-2.0 | 1,545,367,651,000 | 1,545,367,651,000 | null | UTF-8 | Lean | false | false | 6,367 | 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... |
96fd8018a97352a38b4508a60e4ac4f4d0d571b0 | b328e8ebb2ba923140e5137c83f09fa59516b793 | /src/Lean/Meta/Tactic/Cases.lean | 0044e02f93f166a7b04e886a794f48a54d79f4a0 | [
"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 | 14,617 | lean | /-
Copyright (c) 2020 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Leonardo de Moura
-/
import Lean.Meta.AppBuilder
import Lean.Meta.Tactic.Induction
import Lean.Meta.Tactic.Injection
import Lean.Meta.Tactic.Assert
import Lean.Meta.Tactic.Subst... |
bb40d36338afd7afe68c0a9ef59dc92983f0f369 | 03bd658c402412f41d3026d1040ee8ca8c0fc579 | /src/MITM.lean | 6b92b0d4ba0359fea7f6744d39dd2dd5190c4d9a | [] | no_license | ImperialCollegeLondon/dots_and_boxes | c205f6dbad8af9625f56715e4d1bed96b0ac1022 | f7bd0b1603674a657170c5395adb717c4f670220 | refs/heads/master | 1,663,752,058,476 | 1,591,438,614,000 | 1,591,438,614,000 | 139,707,103 | 2 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 25,498 | lean | import game.modify.basic game.value
open game
open list
/-- the values of two games, that differ in exactly one component by at most d
d, differ by at most d-/
theorem MITM (G1 G2 : game 2) (d : ℤ) (p : game.modify G1 G2 d):
abs(G1.value - G2.value) ≤ d :=
begin
revert G1,
revert G2,
-- induction on size of... |
6df4df55db8295b02ceea7dde006cc6a938e0795 | 4fa161becb8ce7378a709f5992a594764699e268 | /src/category_theory/limits/shapes/images.lean | d7dde43ae577c22a915e8d6f1fe684bece61da00 | [
"Apache-2.0"
] | permissive | laughinggas/mathlib | e4aa4565ae34e46e834434284cb26bd9d67bc373 | 86dcd5cda7a5017c8b3c8876c89a510a19d49aad | refs/heads/master | 1,669,496,232,688 | 1,592,831,995,000 | 1,592,831,995,000 | 274,155,979 | 0 | 0 | Apache-2.0 | 1,592,835,190,000 | 1,592,835,189,000 | null | UTF-8 | Lean | false | false | 19,098 | lean | /-
Copyright (c) 2019 Scott Morrison. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Scott Morrison, Markus Himmel
-/
import category_theory.limits.shapes.equalizers
import category_theory.limits.shapes.strong_epi
/-!
# Categorical images
We define the categorical im... |
10d334a47eb7986a69eabaa335009838e6595ca0 | ae1e94c332e17c7dc7051ce976d5a9eebe7ab8a5 | /stage0/src/Lean/Compiler/IR/ResetReuse.lean | eeb998f4e486a7acdcd3b73a314514e1934a6cbc | [
"Apache-2.0"
] | permissive | dupuisf/lean4 | d082d13b01243e1de29ae680eefb476961221eef | 6a39c65bd28eb0e28c3870188f348c8914502718 | refs/heads/master | 1,676,948,755,391 | 1,610,665,114,000 | 1,610,665,114,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 6,198 | lean | /-
Copyright (c) 2019 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Leonardo de Moura
-/
import Lean.Compiler.IR.Basic
import Lean.Compiler.IR.LiveVars
import Lean.Compiler.IR.Format
namespace Lean.IR.ResetReuse
/- Remark: the insertResetReuse ... |
f9358ffbe5584942d8ee853958fc348d6c9c3468 | 57c233acf9386e610d99ed20ef139c5f97504ba3 | /src/data/finset/option.lean | 9463ca34bc409470d16f7fbc982928ad767fc2a6 | [
"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 | 4,379 | lean | /-
Copyright (c) 2021 Yury Kudryashov. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Yury Kudryashov, Mario Carneiro, Sean Leather
-/
import data.finset.card
import order.hom.basic
/-!
# Finite sets in `option α`
In this file we define
* `option.to_finset`: constru... |
b164c73f43f23bb7c5d8960a40e67e110aa8fc84 | ea11767c9c6a467c4b7710ec6f371c95cfc023fd | /src/monoidal_categories/enriched/default.lean | 1a24adfdfefb68524a056750c35a100a645d443c | [] | no_license | RitaAhmadi/lean-monoidal-categories | 68a23f513e902038e44681336b87f659bbc281e0 | 81f43e1e0d623a96695aa8938951d7422d6d7ba6 | refs/heads/master | 1,651,458,686,519 | 1,529,824,613,000 | 1,529,824,613,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 1,145 | lean | import ..monoidal_category
import categories.types
open categories
open categories.monoidal_category
universes u₁ v₁
class enriched_category (C : Type u₁) extends category.{u₁ v₁} C :=
(V : Type (v₁+1))
[𝒱 : monoidal_category V]
(F : V ↝ (Type v₁)) -- needs to be a monoidal functor
(enriched_hom : C → C → V... |
9f05f29c711601810e2b96c5906ac3e0f133a6ad | 83c8119e3298c0bfc53fc195c41a6afb63d01513 | /tests/lean/run/local_attribute.lean | cf36cce450b9fb85a1d17583eb0d1d9613ff9629 | [
"Apache-2.0"
] | permissive | anfelor/lean | 584b91c4e87a6d95f7630c2a93fb082a87319ed0 | 31cfc2b6bf7d674f3d0f73848b842c9c9869c9f1 | refs/heads/master | 1,610,067,141,310 | 1,585,992,232,000 | 1,585,992,232,000 | 251,683,543 | 0 | 0 | Apache-2.0 | 1,585,676,570,000 | 1,585,676,569,000 | null | UTF-8 | Lean | false | false | 238 | lean |
local attribute [instance, priority 0] classical.prop_decidable
open tactic
run_cmd do
(p,_) ← has_attribute `instance ``nat.monoid,
guard p,
(p,_) ← has_attribute `instance ``classical.prop_decidable,
guard (¬ p),
skip
|
03971d805c5aaf50d2da11c59f95fed0405eeee0 | 9e47285bdd500b89455fd905c20aabcd3af1a5cf | /ak_compat.lean | 0c74a00f0056a3c4db7cbca14ba74a52c1db3126 | [] | no_license | akreuzer/feteke-lean | d4ec120e3e7dab9d36681499b239f0e57eb18349 | d030101b3ab2aa4155c2aa1a84021e833da3a497 | refs/heads/master | 1,610,987,214,936 | 1,490,906,196,000 | 1,490,906,196,000 | 86,744,981 | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 1,763 | lean | import theories.analysis.real_limit
import standard
namespace ak_compat
open classical nat real analysis
/- These are definition from an old version of lean2.
We reintroduce them here to fix a regression.
-/
noncomputable definition converges_to_seq (X : ℕ → ℝ) (y : ℝ) : Prop :=
∀ ⦃ε : ℝ⦄, ε > 0 → ∃ ⦃N : ℕ⦄, ∀ ... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.