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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
081ff8a654eb1ed7f30cebb21314b3f0ce596ff0 | fe208a542cea7b2d6d7ff79f94d535f6d11d814a | /src/Logic/jasonxu.lean | f6295870d04acb9738c7691b4aaffa2a5a9d0478 | [] | no_license | ImperialCollegeLondon/M1F_room_342_questions | c4b98b14113fe900a7f388762269305faff73e63 | 63de9a6ab9c27a433039dd5530bc9b10b1d227f7 | refs/heads/master | 1,585,807,312,561 | 1,545,232,972,000 | 1,545,232,972,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 2,069 | lean | /- Question 6 on John Britnell's handout
for M1F group project on 18/10/18.
Formalised by Kevin Buzzard, with many
thanks to Gabriel Ebner for showing him
how to do it.
-/
inductive fml
| atom (i : ℕ)
| imp (a b : fml)
| not (a : fml)
open fml
infixr ` →' `:50 := imp -- right associative
prefix `¬' `:4... |
038255099ea3f8eca443ac1e2c2ff1a663067f0b | 2c41ae31b2b771ad5646ad880201393f5269a7f0 | /Lean/Qualities/HumanUsable.lean | aee970a03e1c5a61b3d4e894ef8ec0aaab620941 | [] | no_license | kevinsullivan/Boehm | 926f25bc6f1a8b6bd47d333d936fdfc278228312 | 55208395bff20d48a598b7fa33a4d55a2447a9cf | refs/heads/master | 1,586,127,134,302 | 1,488,252,326,000 | 1,488,252,326,000 | 32,836,930 | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 682 | lean | -- Human Usable
/-
[HumanUsable] is parameterized by an instance of type [SystemType], and it's a sub-attribute to [MissionEffective].
An instance of type [SystemType] is deemed [HumanUsable] if and only if all the requirements are satisfied.
-/
import SystemModel.System
inductive HumanUsable (sys_type: Syst... |
70f919363a0576a07d960386388524af1420146a | d406927ab5617694ec9ea7001f101b7c9e3d9702 | /src/data/matrix/notation.lean | 881c6a1572fc0ec49f3995391d14332ac83c5bee | [
"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 | 15,018 | lean | /-
Copyright (c) 2020 Anne Baanen. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Anne Baanen, Eric Wieser
-/
import data.matrix.basic
import data.fin.vec_notation
import tactic.fin_cases
import algebra.big_operators.fin
/-!
# Matrix and vector notation
This file inc... |
99881b345b4106473cc67e12640808b17944a879 | 0ddf2dd8409bcb923d11603846800bd9699616ea | /chapter2.lean | d136f077b234ee11aadd0d30b857be1aebb8ce76 | [] | no_license | tounaishouta/Lean | 0cbaaa9340e7f8f884504ea170243e07a54f0566 | 1d75311f5506ca2bfd8b7ccec0b7d70c3319d555 | refs/heads/master | 1,610,229,383,935 | 1,459,950,226,000 | 1,459,950,226,000 | 50,836,185 | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 3,135 | lean | import standard
print "\n Pi type in Lean \n"
namespace hide1
constant A : Type
constant B : A → Type
check Π (x : A), B x -- backslash P
check Π x : A, B x -- same as above
check Pi x : A, B x -- same as above
constant C : A → A → Type
check Π x : A, Π y : A, C x y
check Π (x : A) (y : A), C x y -- same as above... |
319a8a0e2e93adf23f9526b6352e626ebed0464c | 8b9f17008684d796c8022dab552e42f0cb6fb347 | /tests/lean/hott/noc_list.hlean | be7ff50f8d19485d401e057fd573a9d16cd24838 | [
"Apache-2.0"
] | permissive | chubbymaggie/lean | 0d06ae25f9dd396306fb02190e89422ea94afd7b | d2c7b5c31928c98f545b16420d37842c43b4ae9a | refs/heads/master | 1,611,313,622,901 | 1,430,266,839,000 | 1,430,267,083,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 663 | hlean | inductive list (A : Type) : Type :=
| nil {} : list A
| cons : A → list A → list A
namespace list
open lift
theorem nil_ne_cons {A : Type} (a : A) (v : list A) : nil ≠ cons a v :=
λ H, down (list.no_confusion H)
theorem cons.inj₁ {A : Type} (a₁ a₂ : A) (v₁ v₂ : list A) : cons a₁ v₁ = cons a₂ v₂ → a₁ = a₂ :... |
3882f97cf77917af578dc21603c8a318d153b514 | cf39355caa609c0f33405126beee2739aa3cb77e | /tests/lean/eqn_proof.lean | 4665ce83fe5205ff4b2df7b1ad784287178a0d62 | [
"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 | 524 | lean | universes u
inductive node (α : Type u)
| leaf : node
| red_node : node → α → node → node
| black_node : node → α → node → node
namespace node
variable {α : Type u}
def balance : node α → α → node α → node α
| (red_node (red_node a x b) y c) k d := red_node (black_node a x b) y (black_node c k d)
| (red_node a x (re... |
62f7e1366d659724b82193cb12e520636f88f617 | bb31430994044506fa42fd667e2d556327e18dfe | /src/measure_theory/integral/layercake.lean | f95873332e60326323b9664860f02f245f109508 | [
"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 | 18,180 | lean | /-
Copyright (c) 2022 Kalle Kytölä. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Kalle Kytölä
-/
import measure_theory.integral.interval_integral
import analysis.special_functions.integrals
/-!
# The layer cake formula / Cavalieri's principle / tail probability form... |
c5187f3691ddafa50724154807fa6893acf522c4 | 69d4931b605e11ca61881fc4f66db50a0a875e39 | /src/group_theory/quotient_group.lean | afd59159175fab51fa52ee58043fbb40b3daee95 | [
"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 | 11,315 | lean | /-
Copyright (c) 2018 Kevin Buzzard, Patrick Massot. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Kevin Buzzard, Patrick Massot
This file is to a certain extent based on `quotient_module.lean` by Johannes Hölzl.
-/
import group_theory.coset
/-!
# Quotients of group... |
6659eb36a2e5ed19aac2c82b8e0841b3433829f4 | 75db7e3219bba2fbf41bf5b905f34fcb3c6ca3f2 | /tests/lean/simplifier1.hlean | 10a757094c9214e8ccec864065d20f753a76e5ea | [
"Apache-2.0"
] | permissive | jroesch/lean | 30ef0860fa905d35b9ad6f76de1a4f65c9af6871 | 3de4ec1a6ce9a960feb2a48eeea8b53246fa34f2 | refs/heads/master | 1,586,090,835,348 | 1,455,142,203,000 | 1,455,142,277,000 | 51,536,958 | 1 | 0 | null | 1,455,215,811,000 | 1,455,215,811,000 | null | UTF-8 | Lean | false | false | 800 | hlean | open nat
-- deeper congruence
universe l
constants (T : Type.{l}) (x1 x2 x3 x4 x5 x6 : T) (f : T → T → T)
constants (f_comm : ∀ x y, f x y = f y x)
(f_l : ∀ x y z, f (f x y) z = f x (f y z))
(f_r : ∀ x y z, f x (f y z) = f y (f x z))
namespace tst
attribute f_comm [simp]
attribute f_l [simp]
attrib... |
1f11f33532a440b4922895d8aa8f3c59f8372982 | eb9357a70318e50e095b58730bebfe0cffee457f | /lean/love09_hoare_logic_demo.lean | 461b697020e82a55f5a4287fbdb382deb7035410 | [] | no_license | Vierkantor/logical_verification_2021 | 7485dd916953131d501760f023d5b30fbb74d36a | 9500b9c194e22a9ab4067321cfed7a1f445afcfc | refs/heads/main | 1,692,560,845,086 | 1,624,721,275,000 | 1,624,721,275,000 | 416,354,079 | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 15,386 | lean | import .love08_operational_semantics_demo
/-! # LoVe Demo 9: Hoare Logic
We review a second way to specify the semantics of a programming language: Hoare
logic. If operational semantics corresponds to an idealized interpreter,
__Hoare logic__ (also called __axiomatic semantics__) corresponds to a verifier.
Hoare log... |
b7571688f6a4b587d5d5a604eec7e13a276c7cc9 | 4d2583807a5ac6caaffd3d7a5f646d61ca85d532 | /src/analysis/normed_space/operator_norm.lean | 56143d72b7e872f4bfe9ddb6e86d2ea6a9f0ff6b | [
"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 | 60,129 | lean | /-
Copyright (c) 2019 Jan-David Salchow. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Jan-David Salchow, Sébastien Gouëzel, Jean Lo
-/
import algebra.algebra.tower
import analysis.normed_space.linear_isometry
import analysis.normed_space.riesz_lemma
/-!
# Operator n... |
94fa1486a3a04eae25dff9af476cf39a5630bf44 | 9631e35ca5dd719ccc7d3a57ec322fd93d6a0776 | /src/example_maze/level.lean | 2518d6d5dbc79d26a08a09a4a46e797cac0710ae | [] | no_license | kbuzzard/maze-game | 123fa47e0262edb6d147178d239a345d847ff147 | 362ab394ae5218c43b24232aaeef08efc0067eab | refs/heads/master | 1,670,131,466,823 | 1,598,546,702,000 | 1,598,546,702,000 | 290,744,081 | 5 | 1 | null | 1,598,546,703,000 | 1,598,523,538,000 | Lean | UTF-8 | Lean | false | false | 833 | lean | -- import the definition of the example maze
import example_maze.definition
/-!
# Example maze.
You are in a maze of twisty passages, all alike!
You can go north, south east or west.
-/
namespace maze
/- Solver remark : there are 5 rooms.
Rooms are called 0,1,2,3,4 . 4 is the exit.
-/
/-- Use n,s,e,w to move... |
285bae285ac13787e261c7135d52eb0bbb553e38 | 9028d228ac200bbefe3a711342514dd4e4458bff | /src/analysis/normed_space/units.lean | 41768732a5f1f97a1cc5a3893748c47d5a809a51 | [
"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 | 11,539 | lean | /-
Copyright (c) 2020 Heather Macbeth. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Heather Macbeth
-/
import analysis.specific_limits
import analysis.asymptotics
/-!
# The group of units of a complete normed ring
This file contains the basic theory for the group o... |
91c58501a116e1008202b0c0f475fd70dbaac3a3 | c3e8fac5ab7ca328e55bccf82a0207a97f96678c | /lean/src/unix.lean | 8d3c2147a0b2c51228ceaba16f51e59cc1e1ac44 | [
"Unlicense"
] | permissive | Rotsor/brainfuck | 941bb33862ce3e9d61f0454db5ca02942f4b5775 | 3e6f30f298b8ba76d0bc71b8b5a47cedaf2f0b97 | refs/heads/master | 1,619,718,778,100 | 1,532,913,653,000 | 1,532,913,653,000 | 121,682,141 | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 10,305 | lean | import .byte
open byte
namespace unix
namespace with_coinduction
inductive step_result (state : Type) : Type
| ask : (byte -> state) -> step_result
| print : byte × state -> step_result
| step : state -> step_result
structure process : Type 1 :=
(state : Type)
(initial_state : state)
(transition... |
95a383c82623aab0781d59ef94375789786f56f3 | b7f22e51856f4989b970961f794f1c435f9b8f78 | /tests/lean/run/section1.lean | aa5f6fb583f014a78faae67856163aa74612d266 | [
"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 | 225 | lean | import logic
open tactic
section
set_option pp.universes true
set_option pp.implicit true
variable {A : Type}
variables {a b : A}
variable H : a = b
variables H1 H2 : b = a
check H1
check H
check H2
end
|
9c6aa2dd38b2926f6f64359c2733566537e8e611 | 9dc8cecdf3c4634764a18254e94d43da07142918 | /src/data/real/irrational.lean | 7e0f0cbe756d44a96c819393f27b0f0e87040ba7 | [
"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 | 17,740 | lean | /-
Copyright (c) 2018 Mario Carneiro. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Mario Carneiro, Abhimanyu Pallavi Sudhir, Jean Lo, Calle Sönne, Yury Kudryashov
-/
import data.real.sqrt
import tactic.interval_cases
import ring_theory.algebraic
import data.rat.sqrt
... |
d40c8fc91f4803ff031c8ec4e810d181d98f695f | 6432ea7a083ff6ba21ea17af9ee47b9c371760f7 | /tests/elabissues/issues3.lean | fd18e610675cb8c52c014fea6e9a2b477a34f7be | [
"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 | 999 | lean | inductive Syntax
| atom : String → Syntax
| node : String → Array Syntax → Syntax
instance coe1 : HasCoe String Syntax := ⟨Syntax.atom⟩
instance coe2 {α} : HasCoe (List α) (Array α) := ⟨List.toArray⟩
def ex10 (s : Syntax) : Syntax :=
Syntax.node "foo" (List.toArray ["boo", s]) -- Works
def ex11 (s : Syntax) :=
[s, "... |
19c7ace17d3ecf4f498767069041d8d74dcb62d5 | 8cae430f0a71442d02dbb1cbb14073b31048e4b0 | /test/cycle.lean | bc3424ef5b4bbc7301b3ee29ea6d673470521b32 | [
"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 | 241 | lean | import data.list.cycle
run_cmd guard ("c[1, 4, 3, 2]" = repr (↑[1, 4, 3, 2] : cycle ℕ))
run_cmd guard ("c[2, 1, 4, 3]" = repr (↑[2, 1, 4, 3] : cycle ℕ))
run_cmd guard ("c[2, 1, 4, -1]" = repr (↑[(2 : ℤ), 1, 4, -1] : cycle ℤ))
|
24546d4ce5201b85d0d9d3abdcef573d39d1de27 | 6432ea7a083ff6ba21ea17af9ee47b9c371760f7 | /src/lake/Lake/Util/Git.lean | 3f36e0a1c413d0cb5a019f33e87fe75f2a8caa61 | [
"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,244 | lean | /-
Copyright (c) 2017 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Gabriel Ebner, Sebastian Ullrich, Mac Malone
-/
import Lake.Util.Proc
import Lake.Util.Lift
open System
namespace Lake
namespace Git
@[noinline] def defaultRemote :=
"origi... |
9f397ad166e8cbccdb5050417d3a8add85f0809e | 0003047346476c031128723dfd16fe273c6bc605 | /src/data/equiv/basic.lean | bcb1f0fd075fd003901ceaf7a7eafbf1f6bbd9df | [
"Apache-2.0"
] | permissive | ChandanKSingh/mathlib | d2bf4724ccc670bf24915c12c475748281d3fb73 | d60d1616958787ccb9842dc943534f90ea0bab64 | refs/heads/master | 1,588,238,823,679 | 1,552,867,469,000 | 1,552,867,469,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 32,826 | 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
In the standard library we cannot assume the univalence axiom.
We say two types are equivalent if they are isomorphic.
Two equivalent types h... |
bd5f2ca8c7bf447782b5cb47ac42a58c40703557 | 362bedae867eb6ce09551bae2bb842b6d5bf13d5 | /src/12_Sets/00_intro.lean | 094047a3752597e6dc65843549477826222943f3 | [] | no_license | QuinnCiccoretti/cs-dm-lean | 66637c14b3601839191bcc5fdb8de8349c726f47 | f7f52cb961c38892b67b88cd3cf394d8c732f587 | refs/heads/master | 1,586,051,294,868 | 1,541,540,312,000 | 1,541,540,312,000 | 156,450,886 | 0 | 0 | null | 1,541,540,041,000 | 1,541,540,041,000 | null | UTF-8 | Lean | false | false | 26,225 | lean | import data.set
open set
/-
Intuitively a set is a collection of objects.
That said, if one is not careful about what
one allows a set to be, paradoxes can arise,
making the logical system inconsistent, and
thus useless. For more details, search for an
explanation of Russell's paradox.
The work needed to repair Rus... |
30fc7701f51662c7f8d530d697da5328932ca39e | 492a7e27d49633a89f7ce6e1e28f676b062fcbc9 | /src/monoidal_categories_reboot/braided_monoidal_category.lean | 6fd15362639bf0d4afd27b3c2fcf3322f5bfc568 | [
"Apache-2.0"
] | permissive | semorrison/monoidal-categories-reboot | 9edba30277de48a234b63813cf85b171772ce36f | 48b5f1d535daba4e591672042a298ac36be2e6dd | refs/heads/master | 1,642,472,396,149 | 1,560,587,477,000 | 1,560,587,477,000 | 156,465,626 | 0 | 1 | null | 1,541,549,278,000 | 1,541,549,278,000 | null | UTF-8 | Lean | false | false | 2,635 | lean | import .monoidal_functor_attributes
open category_theory
open tactic
universes v u v₁ u₁ v₂ u₂
open category_theory.category
open category_theory.functor
open category_theory.prod
open category_theory.nat_iso
namespace category_theory
class braided_monoidal_category (C : Sort u) extends monoidal_category.{v} C :=
-... |
f9a896e443f5ad9526662b8e16edf64e5fb8f939 | 4727251e0cd73359b15b664c3170e5d754078599 | /src/topology/continuous_function/stone_weierstrass.lean | 56e6ef79047e50b90b873028f97b7c66a547ac69 | [
"Apache-2.0"
] | permissive | Vierkantor/mathlib | 0ea59ac32a3a43c93c44d70f441c4ee810ccceca | 83bc3b9ce9b13910b57bda6b56222495ebd31c2f | refs/heads/master | 1,658,323,012,449 | 1,652,256,003,000 | 1,652,256,003,000 | 209,296,341 | 0 | 1 | Apache-2.0 | 1,568,807,655,000 | 1,568,807,655,000 | null | UTF-8 | Lean | false | false | 19,787 | lean | /-
Copyright (c) 2021 Scott Morrison. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Scott Morrison, Heather Macbeth
-/
import topology.continuous_function.weierstrass
import analysis.complex.basic
/-!
# The Stone-Weierstrass theorem
If a subalgebra `A` of `C(X, ℝ)`,... |
7f240ef5228d11b335a0c9abff60bd5c88ef719b | 2eab05920d6eeb06665e1a6df77b3157354316ad | /src/measure_theory/decomposition/jordan.lean | b858fdd426a36f56581147a2cab52bf44416f4b7 | [
"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 | 25,243 | 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.decomposition.signed_hahn
/-!
# Jordan decomposition
This file proves the existence and uniqueness of the Jordan decomposition for signed measures.
... |
3d0927b9e822e55efde27ee0d026fde398628418 | 2f8bf12144551bc7d8087a6320990c4621741f3d | /library/init/control/estate.lean | 7aa2b917bc0676bc07ad3218c47f356561999589 | [
"Apache-2.0"
] | permissive | jesse-michael-han/lean4 | eb63a12960e69823749edceb4f23fd33fa2253ce | fa16920a6a7700cabc567aa629ce4ae2478a2f40 | refs/heads/master | 1,589,935,810,594 | 1,557,177,860,000 | 1,557,177,860,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 5,243 | 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
The combined Except and State Monad that minimizes the number
of memory allocations using the approach described in the paper
"Counting immutable beans" by Se... |
257c093d93297d863c0abc61ae4dc28ba868caf0 | 63abd62053d479eae5abf4951554e1064a4c45b4 | /src/category_theory/comma.lean | 5928c82a3fd632fa5f747c4e32c20443fb016864 | [
"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 | 7,395 | lean | /-
Copyright (c) 2018 Scott Morrison. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Scott Morrison, Johan Commelin, Bhavik Mehta
-/
import category_theory.natural_isomorphism
/-!
# Comma categories
A comma category is a construction in category theory, which builds ... |
380d36de5d6a26085fdc64ec00f26aa09d0b8315 | 130c49f47783503e462c16b2eff31933442be6ff | /stage0/src/Init/Data/List/Basic.lean | ae66a705b2350c8615aefb409d9231ec15097d27 | [
"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 | 12,613 | lean | /-
Copyright (c) 2016 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Author: Leonardo de Moura
-/
prelude
import Init.SimpLemmas
import Init.Data.Nat.Basic
open Decidable List
universe u v w
variable {α : Type u} {β : Type v} {γ : Type w}
namespace Lis... |
ba929eef6ce4bb253b7f211b04c7f6281d379c4f | 36c7a18fd72e5b57229bd8ba36493daf536a19ce | /tests/lean/run/blast_cc3.lean | 74e081e74e6461880c1e1294eb4d535da93446ff | [
"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 | 370 | lean | open nat
set_option blast.subst false
constant f (a b : nat) : a > b → nat
constant g : nat → nat
definition tst
(a₁ a₂ b₁ b₂ c d : nat)
(H₁ : a₁ > b₁)
(H₂ : a₂ > b₂) :
a₁ = c → a₂ = c →
b₁ = d → d = b₂ →
g (g (f a₁ b₁ H₁)) = g (g (f a₂ b₂ H₂)) :=
by blast
print tst
|
3c70cba98f7dccfe1e4de19d9aee2541cd3d1c41 | 8cd4726d66eec7673bcc0325fed07d5ba5bf17c4 | /hw5-exam1-practice.lean | bd8026a52fe4df426a14a31e8fee126a39655333 | [] | no_license | justinqcai/CS2102 | 8c5fddedffa6147fedd4b6ee7d5d39fc21f0ddab | d309f0db3f1df52eb77206ee1e8665a3b49d7a0c | refs/heads/master | 1,590,108,991,894 | 1,557,610,044,000 | 1,557,610,044,000 | 186,064,169 | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 10,501 | lean | /-
Justin Cai, jc5pz
Here is the practice exam. It provides you
with a set of problems illustrative of the
material to be tested. This is a homework
assignment due this coming Thursday. We will
review the questions in class.
Copy this file your "work" directory. Work
on it there. Upload to Collab when done.
Note: An ... |
d703d30cd7903dd166f48f5ec38de438ab69ac11 | b00eb947a9c4141624aa8919e94ce6dcd249ed70 | /src/Lean/Meta/Tactic/Apply.lean | 9423b9ecce2e4bf1d5878b1efdeb230d71238c27 | [
"Apache-2.0"
] | permissive | gebner/lean4-old | a4129a041af2d4d12afb3a8d4deedabde727719b | ee51cdfaf63ee313c914d83264f91f414a0e3b6e | refs/heads/master | 1,683,628,606,745 | 1,622,651,300,000 | 1,622,654,405,000 | 142,608,821 | 1 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 4,644 | lean | /-
Copyright (c) 2020 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Leonardo de Moura
-/
import Lean.Util.FindMVar
import Lean.Meta.ExprDefEq
import Lean.Meta.SynthInstance
import Lean.Meta.CollectMVars
import Lean.Meta.Tactic.Util
namespace Le... |
7ba2ebee031eeae84a32c8999992fef0bf41fa52 | 4fa161becb8ce7378a709f5992a594764699e268 | /src/geometry/euclidean.lean | f454b40700b63ebd9a4b84c88f45b3d3099acc4a | [
"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 | 27,544 | lean | /-
Copyright (c) 2020 Joseph Myers. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Author: Joseph Myers.
-/
import analysis.normed_space.real_inner_product
import analysis.normed_space.add_torsor
import tactic.interval_cases
noncomputable theory
open_locale classical
open_loca... |
2c646a5f5fae730227383534d1972a55d9791f87 | d406927ab5617694ec9ea7001f101b7c9e3d9702 | /src/category_theory/sites/adjunction.lean | 0556200301d8de51d482333207d05f83fa948418 | [
"Apache-2.0"
] | permissive | alreadydone/mathlib | dc0be621c6c8208c581f5170a8216c5ba6721927 | c982179ec21091d3e102d8a5d9f5fe06c8fafb73 | refs/heads/master | 1,685,523,275,196 | 1,670,184,141,000 | 1,670,184,141,000 | 287,574,545 | 0 | 0 | Apache-2.0 | 1,670,290,714,000 | 1,597,421,623,000 | Lean | UTF-8 | Lean | false | false | 5,105 | lean | /-
Copyright (c) 2021 Adam Topaz. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Adam Topaz
-/
import category_theory.adjunction.whiskering
import category_theory.sites.sheafification
import category_theory.sites.whiskering
/-!
In this file, we show that an adjunctio... |
47a25d86313cca2facb3cec30565e3a4df9f586d | d9ed0fce1c218297bcba93e046cb4e79c83c3af8 | /tests/lean/protected_test.lean | e7e93c0c8ecc9df291d652446c1b9d52820c71d7 | [
"Apache-2.0"
] | permissive | leodemoura/lean_clone | 005c63aa892a6492f2d4741ee3c2cb07a6be9d7f | cc077554b584d39bab55c360bc12a6fe7957afe6 | refs/heads/master | 1,610,506,475,484 | 1,482,348,354,000 | 1,482,348,543,000 | 77,091,586 | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 271 | lean | namespace nat
check induction_on -- ERROR
check rec_on -- ERROR
check nat.induction_on
check less_than.rec_on -- OK
check nat.less_than.rec_on
namespace le
check rec_on -- ERROR
check less_than.rec_on
end le
end nat
|
6acdc481a14dd83d5193dd50230f4ad1c9718edd | d257837ee5f268fcb6e9b719129ff77f25de30a0 | /student_contributions/ellen.lean | 119442ef8f1550e737c1545096fdc57f319b1036 | [] | no_license | pirocks/xena | a05a8a7da5d15b1cc28830eb84d370f3d60edbbf | 458a43f36964e5bb7d2d8ea74060d105519e331a | refs/heads/master | 1,620,756,281,811 | 1,516,097,784,000 | 1,516,097,784,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 4,471 | lean | import algebra.big_operators data.set.finite
definition matrix (R: Type) (n m : nat)[ring R] := fin n →( fin m → R )
namespace matrix
definition add ( R : Type) [ring R] {n m: nat }(A:matrix R m n) ( B : matrix R m n): (matrix R m n):=
λ I J, A I J + B I J
--begin
--unfold matrix,
--intros I J,
--exact A I J +... |
3108540111b1c93c6357ed1acf3fe3de4a840eaf | 853df553b1d6ca524e3f0a79aedd32dde5d27ec3 | /src/category_theory/limits/shapes/wide_pullbacks.lean | 18f788c64e1fa7e1341e1c235322ebbbcc8f53b4 | [
"Apache-2.0"
] | permissive | DanielFabian/mathlib | efc3a50b5dde303c59eeb6353ef4c35a345d7112 | f520d07eba0c852e96fe26da71d85bf6d40fcc2a | refs/heads/master | 1,668,739,922,971 | 1,595,201,756,000 | 1,595,201,756,000 | 279,469,476 | 0 | 0 | null | 1,594,696,604,000 | 1,594,696,604,000 | null | UTF-8 | Lean | false | false | 6,914 | 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 data.fintype.basic
import category_theory.limits.limits
import category_theory.sparse
/-!
# Wide pullbacks
We define the category `wide_pullback_shape`, (resp. `... |
b105b47f772a68dd4cfb74f9987764fa2fd0ab1f | 78269ad0b3c342b20786f60690708b6e328132b0 | /src/library_dev/data/list/set.lean | 2a8cbdf0868dcc1b34e716c0da127d87c4db055e | [] | no_license | dselsam/library_dev | e74f46010fee9c7b66eaa704654cad0fcd2eefca | 1b4e34e7fb067ea5211714d6d3ecef5132fc8218 | refs/heads/master | 1,610,372,841,675 | 1,497,014,421,000 | 1,497,014,421,000 | 86,526,137 | 0 | 0 | null | 1,490,752,133,000 | 1,490,752,132,000 | null | UTF-8 | Lean | false | false | 24,377 | lean | /-
Copyright (c) 2015 Leonardo de Moura. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Leonardo de Moura, Jeremy Avigad
Set-like operations on lists.
-/
import ...data.list.basic data.list.comb .basic .comb data.list.set
open nat function decidable
universe variabl... |
9e7349821666e1dcb6fb321d00c8d234b07c204d | 37fa6e77734d3aca013fed5a19c4ee1fe1c38857 | /leanpkg/leanpkg/toml.lean | 3742ddb39e1a7c1eb9c96c76d85ff4f238c0b6c0 | [
"Apache-2.0"
] | permissive | gazimahmud/lean | 8736ac0b0289850b4c7e7600604e2ce9fc8606ad | 08495eef27b33f68dfc681e3bcab23b4771cbf03 | refs/heads/master | 1,611,158,659,846 | 1,498,642,351,000 | 1,498,671,799,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 3,810 | lean | /-
Copyright (c) 2017 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Author: Gabriel Ebner
-/
import data.buffer.parser
-- I'd like to contribute a new naming convention:
-- CamelCase for non-terminals.
def join (sep : string) : list string → string
| [... |
e6c04273c25b75398d1b9ac9b24f98de9c608d30 | 624f6f2ae8b3b1adc5f8f67a365c51d5126be45a | /tests/lean/run/unif_issue.lean | 0f0ec5645fed1abb079a0e2078b731ba1131be80 | [
"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,419 | lean | import Init.Lean
open Lean
#eval toString $
Unhygienic.run $
do a ← `(Nat.one);
let rhs_0 : _ := fun (a : Lean.Syntax) (b : Lean.Syntax) => pure Syntax.missing;
let rhs_1 : _ := fun (_a : _) => pure Lean.Syntax.missing;
let discr_2 : _ := a;
ite (Lean.Syntax.isOfKind discr_2 (Lean.mkNameStr (Lean... |
758cacf8563ce2c8c532cf32c7d8ab366b0cc1df | 4727251e0cd73359b15b664c3170e5d754078599 | /src/linear_algebra/free_module/pid.lean | 5f1726359916bcf4ba632d83a06a2aafb7cb0f21 | [
"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 | 25,504 | lean | /-
Copyright (c) 2020 Anne Baanen. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Anne Baanen
-/
import linear_algebra.dimension
import ring_theory.principal_ideal_domain
import ring_theory.finiteness
/-! # Free modules over PID
A free `R`-module `M` is a module wit... |
1e4e8b962829b30e3b465b7f674bbb9a1a124334 | 626e312b5c1cb2d88fca108f5933076012633192 | /src/analysis/calculus/mean_value.lean | 750cd57d7ff8844e429c257131ca7b1ece100238 | [
"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 | 62,625 | 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
import data.complex.is_R_or_C
/-!
# The mean value inequality and equaliti... |
b69ea3a98510910f462e337b442f3a8006c613cf | 33340b3a23ca62ef3c8a7f6a2d4e14c07c6d3354 | /lia/preformula.lean | 172e08f97e087dcd6b461cc93c435d1b474f741e | [] | 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 | 5,453 | lean | import ..list ..int
open list
inductive preterm_lia : Type
| var : nat → preterm_lia
| cst : int → preterm_lia
| lmul : int → nat → preterm_lia
| rmul : nat → int → preterm_lia
| neg : preterm_lia → preterm_lia
| add : preterm_lia → preterm_lia → preterm_lia
| sub : preterm_lia → preterm_lia → preterm_lia
open ... |
aeb4c1959d4d5081703879077194eb10c0ef97d6 | f5373ccdc976e6390397d9f4220a74c76f706f4a | /src/tools/json.lean | 86270baa96ebd8b0452909568d8841ebd52b6190 | [] | no_license | jasonrute/lean_gym_prototype | fcd91fdc454f9e351bbe258c765f50276407547e | ab29624d14e4e069e15afe0b1d90248b5b394b86 | refs/heads/master | 1,682,628,526,780 | 1,590,539,315,000 | 1,590,539,315,000 | 264,938,525 | 3 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 8,198 | lean | inductive json
| jarray : list json → json
| jobject : list (string × json) → json
| jint : int → json
--| number_float : int → json -- not handling float yet
| jstring : string → json
| jbool : bool → json
| jnull : json
namespace json
/- Using json as a dictionary -/
private meta def get_value_by_key (key : strin... |
37aad3ff5a11d64449335364e1e04402d52463f1 | f083c4ed5d443659f3ed9b43b1ca5bb037ddeb58 | /category_theory/products.lean | b62f82da6855ca77d49eae346e89a09d7cdbb6ce | [
"Apache-2.0"
] | permissive | semorrison/mathlib | 1be6f11086e0d24180fec4b9696d3ec58b439d10 | 20b4143976dad48e664c4847b75a85237dca0a89 | refs/heads/master | 1,583,799,212,170 | 1,535,634,130,000 | 1,535,730,505,000 | 129,076,205 | 0 | 0 | Apache-2.0 | 1,551,697,998,000 | 1,523,442,265,000 | Lean | UTF-8 | Lean | false | false | 5,118 | lean | -- Copyright (c) 2017 Scott Morrison. All rights reserved.
-- Released under Apache 2.0 license as described in the file LICENSE.
-- Authors: Stephen Morgan, Scott Morrison
import category_theory.functor_category
namespace category_theory
universes u₁ v₁ u₂ v₂ u₃ v₃ u₄ v₄
section
variables (C : Type u₁) [𝒞 : categ... |
0c5227ab997039352d7ce495a125f9d6b723ed14 | 61ccc57f9d72048e493dd6969b56ebd7f0a8f9e8 | /src/measure_theory/measure_space.lean | 5775cb57e232ffed3973528f673dc0e5fe24a71e | [
"Apache-2.0"
] | permissive | jtristan/mathlib | 375b3c8682975df28f79f53efcb7c88840118467 | 8fa8f175271320d675277a672f59ec53abd62f10 | refs/heads/master | 1,651,072,765,551 | 1,588,255,641,000 | 1,588,255,641,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 37,976 | lean | /-
Copyright (c) 2017 Johannes Hölzl. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Johannes Hölzl, Mario Carneiro
-/
import measure_theory.outer_measure
/-!
# Measure spaces
Measures are restricted to a measurable space (associated by the type class `measurable_spa... |
afbbe47b1824a91c1d34988298d178370a8cdfcd | d1a52c3f208fa42c41df8278c3d280f075eb020c | /tests/lean/run/binrel.lean | 78459c1354897f9f624889f6cee0c0e7b193d17c | [
"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 | 826 | lean | def ex1 (x y : Nat) (i j : Int) :=
binrel% LT.lt x i
def ex2 (x y : Nat) (i j : Int) :=
binrel% LT.lt i x
def ex3 (x y : Nat) (i j : Int) :=
binrel% LT.lt (i + 1) x
def ex4 (x y : Nat) (i j : Int) :=
binrel% LT.lt i (x + 1)
def ex5 (x y : Nat) (i j : Int) :=
binrel% LT.lt i (x + y)
def ex6 (x y : Nat) (i... |
f951a09b080c1f2c745171a8f8a7bd1f6d307f4f | 8cae430f0a71442d02dbb1cbb14073b31048e4b0 | /src/order/monotone/monovary.lean | d050976376e4161386d72491a60cb65f8dcd5229 | [
"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 | 12,127 | lean | /-
Copyright (c) 2021 Yaël Dillies. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Yaël Dillies
-/
import data.set.image
/-!
# Monovariance of functions
> THIS FILE IS SYNCHRONIZED WITH MATHLIB4.
> Any changes to this file require a corresponding PR to mathlib4.
Two... |
72b79019db1be59eead4311c47fb8fc1e0b9a0bc | d406927ab5617694ec9ea7001f101b7c9e3d9702 | /src/data/zmod/coprime.lean | e1bee15b7c3dafec0a1dc346acf946e0cc458b7f | [
"Apache-2.0"
] | permissive | alreadydone/mathlib | dc0be621c6c8208c581f5170a8216c5ba6721927 | c982179ec21091d3e102d8a5d9f5fe06c8fafb73 | refs/heads/master | 1,685,523,275,196 | 1,670,184,141,000 | 1,670,184,141,000 | 287,574,545 | 0 | 0 | Apache-2.0 | 1,670,290,714,000 | 1,597,421,623,000 | Lean | UTF-8 | Lean | false | false | 1,266 | lean | /-
Copyright (c) 2022 Michael Stoll. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Michael Stoll
-/
import data.zmod.basic
import ring_theory.int.basic
/-!
# Coprimality and vanishing
We show that for prime `p`, the image of an integer `a` in `zmod p` vanishes if an... |
40fda8877c0b3cde6ff9cb3a13a1a7e9065d323e | 6dc0c8ce7a76229dd81e73ed4474f15f88a9e294 | /src/Lean/Compiler/IR/EmitC.lean | de8e70d5dd837478cf8d2b1845427b1e23612628 | [
"Apache-2.0"
] | permissive | williamdemeo/lean4 | 72161c58fe65c3ad955d6a3050bb7d37c04c0d54 | 6d00fcf1d6d873e195f9220c668ef9c58e9c4a35 | refs/heads/master | 1,678,305,356,877 | 1,614,708,995,000 | 1,614,708,995,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 25,163 | 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.Runtime
import Lean.Compiler.NameMangling
import Lean.Compiler.ExportAttr
import Lean.Compiler.InitAttr
import Lean.Compiler.IR.CompilerM
import... |
56a2bded2a113531731c80077a40f9765ea7199b | 94e33a31faa76775069b071adea97e86e218a8ee | /src/topology/metric_space/pi_nat.lean | 126e2cd4a324112403a1a410cb3387bd08d2bf11 | [
"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 | 41,438 | lean | /-
Copyright (c) 2022 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 tactic.ring_exp
import topology.metric_space.hausdorff_distance
/-!
# Topological study of spaces `Π (n : ℕ), E n`
When `E n` are topological spaces, t... |
b96411c29e7ce859ef276b6f2ff027f1a452093c | 0147f2031b9326cd40515c0735bc7b3217048388 | /library/init/meta/environment.lean | 302631e291c36d8ed8fe42bbbd8f7f84e45bbad0 | [
"Apache-2.0"
] | permissive | fpvandoorn/lean | d69aa9b497e6b689d499720ec88c8875744e4e2f | d457329969c7a18854a3cefdb3837306f43c2355 | refs/heads/master | 1,608,866,639,885 | 1,596,723,870,000 | 1,596,723,870,000 | 285,647,903 | 0 | 0 | Apache-2.0 | 1,596,740,075,000 | 1,596,740,074,000 | null | UTF-8 | Lean | false | false | 10,643 | 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.declaration init.meta.exceptional init.data.option.basic
import init.meta.rb_map
/-- An __environment__ contains all of the declar... |
26b6a086c23b51109435ce8a210fde6abcea76b2 | 56af0912bd25910f5caae91d6dd0603b0c032989 | /kb_solutions/basic.lean | fffbcf54286601673cff765cc975491cb29e10d6 | [
"Apache-2.0"
] | permissive | isabella232/complex-number-game | ae36e0b1df9761d9df07049ca29c91ae44dbdc2d | 3d767f14041f9002e435bed3a3527fdd297c166d | refs/heads/master | 1,679,305,953,116 | 1,606,397,567,000 | 1,606,397,567,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 10,998 | lean | /-
Copyright (c) 2020 The Xena project. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Kevin Buzzard.
Thanks: Imperial College London, leanprover-community
-/
-- We will assume that the real numbers are a field.
import data.real.basic
/-!
# The complex numbers
We de... |
6fadac9436223e9c8c6cc16964821c43acf377ed | f10d66a159ce037d07005bd6021cee6bbd6d5ff0 | /to_finset.lean | a7b6edfb5035ef5b701e6043022319cd6ddf81b9 | [] | no_license | johoelzl/mason-stother | 0c78bca183eb729d7f0f93e87ce073bc8cd8808d | 573ecfaada288176462c03c87b80ad05bdab4644 | refs/heads/master | 1,631,751,973,492 | 1,528,923,934,000 | 1,528,923,934,000 | 109,133,224 | 0 | 1 | null | null | null | null | UTF-8 | Lean | false | false | 1,246 | lean | import data.multiset data.finset .to_multiset algebra.big_operators
open classical multiset finset
local attribute [instance] prop_decidable
universe u
variable α : Type u
lemma eq_zero_iff_to_finset_eq_empty {g : multiset α} : g = 0 ↔ g.to_finset = ∅ :=
begin
apply iff.intro,
{
intro h1,
rw finset.ext,... |
8cc0d25d9083d4a7b86f4fda070d78ceba229d2c | 491068d2ad28831e7dade8d6dff871c3e49d9431 | /library/algebra/group_power.lean | fb10d5854eef81ec744a1397bf638ea34c22ac0f | [
"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 | 8,043 | lean | /-
Copyright (c) 2015 Jeremy Avigad. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Author: Jeremy Avigad
The power operation on monoids and groups. We separate this from group, because it depends on
nat, which in turn depends on other parts of algebra.
We have "pow a n" for ... |
3fb90635d7a357878a14d855d306262999578f42 | e0e64c424bf126977aef10e58324934782979062 | /src/wk1/Exercises/sols.lean | fe580c3d222c2eb7728250d354ed2c89c9a68259 | [] | no_license | jamesa9283/LiaLeanTutor | 34e9e133a4f7dd415f02c14c4a62351bb9fd8c21 | c7ac1400f26eb2992f5f1ee0aaafb54b74665072 | refs/heads/master | 1,686,146,337,422 | 1,625,227,392,000 | 1,625,227,392,000 | 373,130,175 | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 433 | lean | section question9
variables A B C : Prop
example (h : C → A ∨ B) : (C ∧ ¬A) → B :=
begin
intro h₁, -- N.B. What happens if you try `split` instead of `intro`?
cases h₁ with h₂ h₃,
have h₄ : A ∨ B, from h h₂, -- What happens if you write `h h₂` instead?
cases h₄ with h₅ h₅, -- Or elimination.
{ exfalso,
... |
9e4723fdd04904e18313871df8984c28b918d432 | a4673261e60b025e2c8c825dfa4ab9108246c32e | /stage0/src/Lean/Meta/Match/CaseArraySizes.lean | 954737fc130e0f83ef4762cd25782efeeb5e08b1 | [
"Apache-2.0"
] | permissive | jcommelin/lean4 | c02dec0cc32c4bccab009285475f265f17d73228 | 2909313475588cc20ac0436e55548a4502050d0a | refs/heads/master | 1,674,129,550,893 | 1,606,415,348,000 | 1,606,415,348,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 3,752 | 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.Tactic.Assert
import Lean.Meta.Match.CaseValues
namespace Lean.Meta
structure CaseArraySizesSubgoal :=
(mvarId : MVarId)
(elems : Ar... |
78f9d4288cbb90637480d6b432eec8e3fe2ac5b1 | 08bd4ba4ca87dba1f09d2c96a26f5d65da81f4b4 | /src/Lean/Util/ReplaceExpr.lean | 853fc717c0cf282f825dcd711c931d3fa8e7ea64 | [
"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",
"Apache-2.0",
"LicenseRef-scancode-other-permissive",
"SunPro",
"CMU-Mach"... | permissive | gebner/lean4 | d51c4922640a52a6f7426536ea669ef18a1d9af5 | 8cd9ce06843c9d42d6d6dc43d3e81e3b49dfc20f | refs/heads/master | 1,685,732,780,391 | 1,672,962,627,000 | 1,673,459,398,000 | 373,307,283 | 0 | 0 | Apache-2.0 | 1,691,316,730,000 | 1,622,669,271,000 | Lean | UTF-8 | Lean | false | false | 3,639 | 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.Expr
namespace Lean
namespace Expr
namespace ReplaceImpl
@[inline] def cacheSize : USize := 8192 - 1
structure Cache where
-- First cacheS... |
1a15e1cc7f0750769f5a30297e59cbe65e736b6c | fa02ed5a3c9c0adee3c26887a16855e7841c668b | /src/algebra/category/Module/projective.lean | e19aeaa60b6b8ceed24bdf5f9b9b7a09b2945dd3 | [
"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 | 2,163 | lean | /-
Copyright (c) 2020 Markus Himmel. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Markus Himmel, Scott Morrison
-/
import category_theory.preadditive.projective
import algebra.category.Module.abelian
import linear_algebra.finsupp_vector_space
import algebra.module.pr... |
c46483a6d882d5d4a895bada43f981f444488a64 | 9dc8cecdf3c4634764a18254e94d43da07142918 | /src/measure_theory/function/ae_measurable_order.lean | db4ba98bf7821fa66ffa585a08da8c6701ba9075 | [
"Apache-2.0"
] | permissive | jcommelin/mathlib | d8456447c36c176e14d96d9e76f39841f69d2d9b | ee8279351a2e434c2852345c51b728d22af5a156 | refs/heads/master | 1,664,782,136,488 | 1,663,638,983,000 | 1,663,638,983,000 | 132,563,656 | 0 | 0 | Apache-2.0 | 1,663,599,929,000 | 1,525,760,539,000 | Lean | UTF-8 | Lean | false | false | 6,233 | lean | /-
Copyright (c) 2021 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 measure_theory.constructions.borel_space
/-!
# Measurability criterion for ennreal-valued functions
Consider a function `f : α → ℝ≥0∞`. If the level se... |
33b5b96ef59f08e2161ac6cedb3933f181b4fbc9 | 74addaa0e41490cbaf2abd313a764c96df57b05d | /Mathlib/tactic/rcases_auto.lean | 94fed1994e1ea887a695d1f32b5c9ce0d8b784c2 | [] | 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 | 20,921 | 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 Mathlib.PrePort
import Mathlib.Lean3Lib.init.default
import Mathlib.Lean3Lib.data.dlist
import Mathlib.tactic.core
import Mathlib.tactic.clear
import Mathlib.P... |
401bc384021018a3beed21116b0876353cd476d1 | 46125763b4dbf50619e8846a1371029346f4c3db | /src/analysis/normed_space/operator_norm.lean | 44438415acfccce4fc2e356f93a40848a15e48a3 | [
"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 | 23,423 | lean | /-
Copyright (c) 2019 Jan-David Salchow. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Jan-David Salchow, Sébastien Gouëzel, Jean Lo
Operator norm on the space of continuous linear maps
Define the operator norm on the space of continuous linear maps between normed s... |
6041d71c8d63d506aa8e0b7b6fd38b357444fe40 | 22e97a5d648fc451e25a06c668dc03ac7ed7bc25 | /src/category_theory/limits/shapes/kernels.lean | 4dba7a68f083fb4d4732d3ef6019e6c0d071dc49 | [
"Apache-2.0"
] | permissive | keeferrowan/mathlib | f2818da875dbc7780830d09bd4c526b0764a4e50 | aad2dfc40e8e6a7e258287a7c1580318e865817e | refs/heads/master | 1,661,736,426,952 | 1,590,438,032,000 | 1,590,438,032,000 | 266,892,663 | 0 | 0 | Apache-2.0 | 1,590,445,835,000 | 1,590,445,835,000 | null | UTF-8 | Lean | false | false | 11,286 | 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.zero
import category_theory.limits.shapes.equalizers
/-!
# Kernels and cokernels
In a category with zero morphis... |
c41be81948f874e8f600eae1aecb0aaaba74fbac | 6dc0c8ce7a76229dd81e73ed4474f15f88a9e294 | /stage0/src/Lean/Meta/Tactic.lean | b293fe7684b0cb19505ff68cff672af43138cd3e | [
"Apache-2.0"
] | permissive | williamdemeo/lean4 | 72161c58fe65c3ad955d6a3050bb7d37c04c0d54 | 6d00fcf1d6d873e195f9220c668ef9c58e9c4a35 | refs/heads/master | 1,678,305,356,877 | 1,614,708,995,000 | 1,614,708,995,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 642 | lean | /-
Copyright (c) 2019 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Leonardo de Moura
-/
import Lean.Meta.Tactic.Intro
import Lean.Meta.Tactic.Assumption
import Lean.Meta.Tactic.Apply
import Lean.Meta.Tactic.Revert
import Lean.Meta.Tactic.Clear
... |
6a4375fc6ecfd291b43d1ec14e5a97596692fb26 | b7f22e51856f4989b970961f794f1c435f9b8f78 | /library/data/option.lean | ada56bb0918f59795ff6c0b3c9e42fa9b585859a | [
"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 | 1,253 | 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
-/
import logic.eq
open eq.ops decidable
namespace option
definition is_none {A : Type} : option A → Prop
| none := true
| (some v) := false
the... |
135a422ad6cfd00a6bda5b6bdcb6fe29d4932b62 | 8cae430f0a71442d02dbb1cbb14073b31048e4b0 | /src/category_theory/sites/left_exact.lean | 7288d49ba382468c9df5637c532d4fc8bdd6b8fa | [
"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,212 | lean | /-
Copyright (c) 2021 Adam Topaz. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Adam Topaz
-/
import category_theory.sites.sheafification
import category_theory.sites.limits
import category_theory.limits.functor_category
import category_theory.limits.filtered_colimit_... |
e8d97edc6abae735e8faafd4ec4aece9728d9c7c | a9d0fb7b0e4f802bd3857b803e6c5c23d87fef91 | /tests/lean/run/444.lean | a3a54fe7e35dd2d626504cf7334ee351e2531303 | [
"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 | 54 | lean | open nat
check succ 1
notation 1 := unit
check succ 1
|
6d42f51d6a2db7ba2472ac7c3ac9693e3b87d386 | 48ee71c79a2d430812d2a0c56d69480c8e22fd71 | /InsideOut/Elaborate.lean | 67ddd504fd14f2c9ae8f256e60ba46dd66f6e52a | [
"MIT"
] | permissive | intsuc/inside-out | a49d08c04f992bdc28607345facd63597db28cab | 5f14d511b8cab8703611d071027311f9967ec3a8 | refs/heads/main | 1,691,829,769,552 | 1,633,103,533,000 | 1,633,103,533,000 | 411,958,950 | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 4,342 | lean | import InsideOut.Syntax
import InsideOut.Error
abbrev Ctx := List (String × Typ)
abbrev App := List Typ
abbrev M := Except Error
mutual
partial def checkOutsideIn (Γ : Ctx) : Exp → Typ → M Typ
| Exp.let x₁ t₂ e₃ e₄, t => do
let t₃ ← checkOutsideIn Γ e₃ t₂
checkOutsideIn ((x₁, t₃) :: Γ) e₄ t
| e@(Exp.ab... |
a25699cb8b449d2bd2c67b861a18e0f2c115d4d2 | 3863d2564418bccb1859e057bf5a4ef240e75fd7 | /hott/algebra/category/iso.hlean | 962291e23aaeada226e4d8f98d89dc9d338f9b99 | [
"Apache-2.0"
] | permissive | JacobGross/lean | 118bbb067ff4d4af48a266face2c7eb9868fa91c | eb26087df940c54337cb807b4bc6d345d1fc1085 | refs/heads/master | 1,582,735,011,532 | 1,462,557,826,000 | 1,462,557,826,000 | 46,451,196 | 0 | 0 | null | 1,462,557,826,000 | 1,447,885,161,000 | C++ | UTF-8 | Lean | false | false | 15,737 | hlean | /-
Copyright (c) 2015 Floris van Doorn. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Author: Floris van Doorn, Jakob von Raumer
-/
import .precategory types.sigma arity
open eq category prod equiv is_equiv sigma sigma.ops is_trunc
namespace iso
structure split_mono [clas... |
5a51841a03029ffbe3653c2f8ee6012afbf2bd5e | 64874bd1010548c7f5a6e3e8902efa63baaff785 | /hott/equiv_precomp.hlean | 067dae56f9dd0cfd79205e65601a1db04580e4a0 | [
"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 | 3,223 | hlean | -- Copyright (c) 2014 Jakob von Raumer. All rights reserved.
-- Released under Apache 2.0 license as described in the file LICENSE.
-- Author: Jakob von Raumer
-- Ported from Coq HoTT
open eq function funext
namespace is_equiv
context
--Precomposition of arbitrary functions with f
definition precomp {A B : Typ... |
a4ddce7977da6aa1e7397041265ad869049334ea | 491068d2ad28831e7dade8d6dff871c3e49d9431 | /hott/algebra/category/limits.hlean | a8d02104c46292a75e0308eda5b85253f2ff036f | [
"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 | 14,210 | hlean | /-
Copyright (c) 2015 Floris van Doorn. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Floris van Doorn
Limits in a category
-/
import .constructions.cone .constructions.discrete .constructions.product
.constructions.finite_cats .category
open is_trunc functo... |
1f3dfa4f2a0a5f38853a549ca15b88cbc7f60ba6 | 80cc5bf14c8ea85ff340d1d747a127dcadeb966f | /src/category_theory/limits/cofinal.lean | 293eef2a3cd86236897ad108d23a5fe7ed4d7211 | [
"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 | 8,921 | lean | /-
Copyright (c) 2020 Scott Morrison. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Scott Morrison
-/
import category_theory.limits.limits
import category_theory.punit
import category_theory.comma
import category_theory.is_connected
/-!
# Cofinal functors
A functor ... |
2f4320c8d371d3b283c35a3988c0579db918755d | dd4e652c749fea9ac77e404005cb3470e5f75469 | /src/list.lean | 89e382600af66d3a88b3d1ffc8c3dcaee1a996b8 | [] | no_license | skbaek/cvx | e32822ad5943541539966a37dee162b0a5495f55 | c50c790c9116f9fac8dfe742903a62bdd7292c15 | refs/heads/master | 1,623,803,010,339 | 1,618,058,958,000 | 1,618,058,958,000 | 176,293,135 | 3 | 2 | null | null | null | null | UTF-8 | Lean | false | false | 4,847 | lean | import data.list.basic .nat
variables {α : Type} {k m n : nat}
{as bs cs : list α}
namespace list
@[simp] def get [has_zero α] : nat → list α → α
| _ [] := (0 : α)
| 0 (i::is) := i
| (n+1) (i::is) := get n is
@[simp] lemma get_nil [has_zero α] {k} : get k [] = (0 : α) :=
begin cases k; refl end
lem... |
9e84617bed1dbe7c91759c1949dd9a231d5e844f | a9d0fb7b0e4f802bd3857b803e6c5c23d87fef91 | /tests/lean/coe2.lean | 0ed74e74bfa301b10cef18f89edda152bf880341 | [
"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 | 858 | lean | set_option pp.coercions false
check if tt then "a" else "b"
/- Remark: in the standard library nat_to_int and int_to_real are has_lift instances
instead of has_coe. -/
constant int : Type
constant real : Type
constant nat_to_int : has_coe nat int
constant int_to_real : has_coe int real
attribute [instance] nat_t... |
08330c084ecec0d383941051bd39bde42f25d327 | c31182a012eec69da0a1f6c05f42b0f0717d212d | /src/for_mathlib/finite_free.lean | 70f1126cf6c13f2e7be7f288b377d20227bb222f | [] | no_license | Ja1941/lean-liquid | fbec3ffc7fc67df1b5ca95b7ee225685ab9ffbdc | 8e80ed0cbdf5145d6814e833a674eaf05a1495c1 | refs/heads/master | 1,689,437,983,362 | 1,628,362,719,000 | 1,628,362,719,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 3,204 | lean | import ring_theory.finiteness
import linear_algebra.free_module
import linear_algebra.dual
open_locale big_operators
variables (R M : Type*) [ring R] [add_comm_group M] [module R M]
lemma module.finite.of_basis {ι : Type*} [fintype ι] (b : basis ι R M) : module.finite R M :=
begin
classical,
refine ⟨⟨finset.univ... |
c0c1c1956270d7092d61c4b1a274e6cd5fc44e7b | 35677d2df3f081738fa6b08138e03ee36bc33cad | /src/algebra/group/hom.lean | 59465aae3c99b0b2bd5d460a6582d990ad360488 | [
"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 | 9,419 | lean | /-
Copyright (c) 2018 Patrick Massot. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Patrick Massot, Kevin Buzzard, Scott Morrison, Johan Commelin, Chris Hughes,
Johannes Hölzl, Yury Kudryashov
-/
import algebra.group.to_additive algebra.group.basic
/-!
# monoid an... |
e56213d4bfc7b226f19b751d459f5523d868160b | 5fbbd711f9bfc21ee168f46a4be146603ece8835 | /lean/natural_number_game/inequality/03.lean | 279bdcef162ce5e60b59a04f1bbbf813ee521a0b | [
"LicenseRef-scancode-warranty-disclaimer"
] | no_license | goedel-gang/maths | 22596f71e3fde9c088e59931f128a3b5efb73a2c | a20a6f6a8ce800427afd595c598a5ad43da1408d | refs/heads/master | 1,623,055,941,960 | 1,621,599,441,000 | 1,621,599,441,000 | 169,335,840 | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 137 | lean | theorem le_succ (a b : mynat) : a ≤ b → a ≤ (succ b) :=
begin
intro h,
cases h with c hc,
use (succ c),
rw hc,
ring,
end
|
e81bf8f7b7071a2ecbf4b03bea39c4959b574ecd | 9028d228ac200bbefe3a711342514dd4e4458bff | /src/algebra/field_power.lean | 1fe445fdb1fb1f7af0eae7dd4ef171ff922d76c3 | [
"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 | 5,636 | 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
Integer power operation on fields.
-/
import algebra.group_with_zero_power
import tactic.linarith
universe u
@[simp] lemma ring_hom.map_fpow {K L : Type*} [division... |
f19d644f56638612d16dc770bee4b1c0874c1c0c | 37da0369b6c03e380e057bf680d81e6c9fdf9219 | /hott/cubical/cube.hlean | 6d476e058d29ee6e7d02f8cd5042628080174d30 | [
"Apache-2.0"
] | permissive | kodyvajjha/lean2 | 72b120d95c3a1d77f54433fa90c9810e14a931a4 | 227fcad22ab2bc27bb7471be7911075d101ba3f9 | refs/heads/master | 1,627,157,512,295 | 1,501,855,676,000 | 1,504,809,427,000 | 109,317,326 | 0 | 0 | null | 1,509,839,253,000 | 1,509,655,713,000 | C++ | UTF-8 | Lean | false | false | 21,579 | hlean | /-
Copyright (c) 2015 Floris van Doorn. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Author: Floris van Doorn, Jakob von Raumer
Cubes
-/
import .square
open equiv is_equiv sigma sigma.ops
namespace eq
inductive cube {A : Type} {a₀₀₀ : A} : Π{a₂₀₀ a₀₂₀ a₂₂₀ a₀₀₂ a₂₀₂ a₀... |
10999dd34041308291b849b8d6c33348663b44ad | 5bf112cf7101c6c6303dc3fd0b3179c860e61e56 | /lean/background/set.lean | a731f4aaf8cff04d2751f0578f77441a7f1ce8b2 | [
"Apache-2.0"
] | permissive | fredfeng/formal-encoding | 7ab645f49a553dfad2af03fcb4289e40fc679759 | 024efcf58672ac6b817caa10dfe8cd9708b07f1b | refs/heads/master | 1,597,236,551,123 | 1,568,832,149,000 | 1,568,832,149,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 149 | lean | namespace IMOGrandChallenge
def Set (X : Type) : Type := X → Prop
def Set.mem {X : Type} (x : X) (s : Set X) : Prop := s x
end IMOGrandChallenge
|
b3461c9fb5e3c9594ab87a7e4f72b8269dd42a39 | b2fe74b11b57d362c13326bc5651244f111fa6f4 | /src/linear_algebra/exterior_algebra.lean | cd3fd078511503ed8b0e927b38cd2a8f31b9d0eb | [
"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 | 7,680 | lean | /-
Copyright (c) 2020 Adam Topaz. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Zhangir Azerbayev, Adam Topaz, Eric Wieser.
-/
import algebra.ring_quot
import linear_algebra.tensor_algebra
import linear_algebra.alternating
import group_theory.perm.sign
/-!
# Exterio... |
8d452bd0e30ffdbe75699d2432aa129ebdee2cf6 | d406927ab5617694ec9ea7001f101b7c9e3d9702 | /src/data/int/dvd/pow.lean | e3e6442322d0291da38dfe8f23851ca82b9644b8 | [
"Apache-2.0"
] | permissive | alreadydone/mathlib | dc0be621c6c8208c581f5170a8216c5ba6721927 | c982179ec21091d3e102d8a5d9f5fe06c8fafb73 | refs/heads/master | 1,685,523,275,196 | 1,670,184,141,000 | 1,670,184,141,000 | 287,574,545 | 0 | 0 | Apache-2.0 | 1,670,290,714,000 | 1,597,421,623,000 | Lean | UTF-8 | Lean | false | false | 1,154 | lean | /-
Copyright (c) 2016 Jeremy Avigad. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Jeremy Avigad
-/
import data.int.dvd.basic
import data.nat.pow
/-!
# Basic lemmas about the divisibility relation in `ℤ` involving powers.
-/
open nat
namespace int
@[simp]
theorem ... |
0232643f0dd8094aaba55c18292a27a4cec782d7 | 9be442d9ec2fcf442516ed6e9e1660aa9071b7bd | /stage0/src/Lean/Data/Lsp/Basic.lean | 1e85a2c082773ece069e63bc510d40c7fbb81a15 | [
"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 | 4,940 | lean | /-
Copyright (c) 2020 Marc Huisinga. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Marc Huisinga, Wojciech Nawrocki
-/
import Lean.Data.Json
import Lean.Data.JsonRpc
/-! Defines most of the 'Basic Structures' in the LSP specification
(https://microsoft.github.io/lan... |
1b550e077745410acfd2854d9568d64676b5d235 | 75bd9c50a345718d735a7533c007cf45f9da9a83 | /src/data/mv_polynomial/monad.lean | d164a92e9e109a946c4c2bda1737fed21b75ec19 | [
"Apache-2.0"
] | permissive | jtbarker/mathlib | a1a3b1ddc16179826260578410746756ef18032c | 392d3e376b44265ef2dedbd92231d3177acc1fd0 | refs/heads/master | 1,671,246,411,096 | 1,600,801,712,000 | 1,600,801,712,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 14,196 | lean | /-
Copyright (c) 2020 Johan Commelin and Robert Y. Lewis. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Johan Commelin and Robert Y. Lewis
-/
import data.mv_polynomial.rename
/-!
# Monad operations on `mv_polynomial`
This file defines two monadic operations on `mv... |
ecf867e676632d18247f53f883e007bcb3038b37 | 47181b4ef986292573c77e09fcb116584d37ea8a | /src/ostrowski.lean | d1b5b2922a25f47d84f79335dc2a1866c8ff180b | [
"MIT"
] | permissive | RaitoBezarius/berkovich-spaces | 87662a2bdb0ac0beed26e3338b221e3f12107b78 | 0a49f75a599bcb20333ec86b301f84411f04f7cf | refs/heads/main | 1,690,520,666,912 | 1,629,328,012,000 | 1,629,328,012,000 | 332,238,095 | 4 | 0 | MIT | 1,629,312,085,000 | 1,611,414,506,000 | Lean | UTF-8 | Lean | false | false | 5,886 | lean | import number_theory.padics.padic_norm
import topology.basic
import data.rat.basic
import data.real.cau_seq
import analysis.special_functions.exp_log
import analysis.special_functions.pow
import topology.metric_space.basic
import topology.homeomorph
import topology.algebra.group_with_zero
import data.nat.prime
import d... |
9eb5325fcc101f42a4f682bcd8aa1cf314473bfe | e07b1aca72e83a272dd59d24c6e0fa246034d774 | /src/tutorials/04_exists.lean | d51bbceb77759af561d1695d10445c1d859c07c6 | [
"Apache-2.0",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | pedrominicz/learn | 637a343bd4f8669d76819ac660a2d2d3e0958710 | b79b802a9846c86c21d4b6f3e17af36e7382f0ef | refs/heads/master | 1,671,746,990,402 | 1,670,778,113,000 | 1,670,778,113,000 | 265,735,177 | 1 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 2,927 | lean | import data.real.basic
import data.int.parity
/-
In this file, we learn how to handle the ∃ quantifier.
In order to prove `∃ x, P x`, we give some x₀ using tactic `use x₀` and
then prove `P x₀`. This x₀ can be an object from the local context
or a more complicated expression.
-/
example : ∃ n : ℕ, 8 = 2*n :=
begin
... |
f9fffe354fd845fb52f16db6f5f2f99b88e9cf3d | cc62cd292c1acc80a10b1c645915b70d2cdee661 | /src/category_theory/tactics/obviously.lean | 8b07685143886bbe0c3843dc8fb698a3d9c336e9 | [] | no_license | RitaAhmadi/lean-category-theory | 4afb881c4b387ee2c8ce706c454fbf9db8897a29 | a27b4ae5eac978e9188d2e867c3d11d9a5b87a9e | refs/heads/master | 1,651,786,183,402 | 1,565,604,314,000 | 1,565,604,314,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 1,061 | lean | 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
import tactic.tidy
import tactic.rewrite_search
import tidy.forwards_reasoni... |
3e4ae8c8442b9e824a739204aa5806d8ab2aa115 | e030b0259b777fedcdf73dd966f3f1556d392178 | /library/init/meta/environment.lean | 24a608d3710c2dd9e00098f4d133d6f3d045a2a5 | [
"Apache-2.0"
] | permissive | fgdorais/lean | 17b46a095b70b21fa0790ce74876658dc5faca06 | c3b7c54d7cca7aaa25328f0a5660b6b75fe26055 | refs/heads/master | 1,611,523,590,686 | 1,484,412,902,000 | 1,484,412,902,000 | 38,489,734 | 0 | 0 | null | 1,435,923,380,000 | 1,435,923,379,000 | null | UTF-8 | Lean | false | false | 4,507 | 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.declaration init.meta.exceptional
meta constant environment : Type
namespace environment
/- Create a standard environment using t... |
14da45a45d7311a0bde414194b2716fb8c0afda3 | a7eef317ddec01b9fc6cfbb876fe7ac00f205ac7 | /src/linear_algebra/finsupp.lean | 8b168f3ff7ef0d46f3d7783b638ce8b6830adb6b | [
"Apache-2.0"
] | permissive | kmill/mathlib | ea5a007b67ae4e9e18dd50d31d8aa60f650425ee | 1a419a9fea7b959317eddd556e1bb9639f4dcc05 | refs/heads/master | 1,668,578,197,719 | 1,593,629,163,000 | 1,593,629,163,000 | 276,482,939 | 0 | 0 | null | 1,593,637,960,000 | 1,593,637,959,000 | null | UTF-8 | Lean | false | false | 21,543 | lean | /-
Copyright (c) 2019 Johannes Hölzl. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Author: Johannes Hölzl
Linear structures on function with finite support `α →₀ M`.
-/
import data.monoid_algebra
noncomputable theory
open set linear_map submodule
open_locale classical
na... |
c22527c9ca0120a6caa308fcf0b79db045f17234 | 1abd1ed12aa68b375cdef28959f39531c6e95b84 | /archive/100-theorems-list/82_cubing_a_cube.lean | 76d11f8bf2fe87ed4aa6b1b2bfbe1d80c75b53ae | [
"Apache-2.0"
] | permissive | jumpy4/mathlib | d3829e75173012833e9f15ac16e481e17596de0f | af36f1a35f279f0e5b3c2a77647c6bf2cfd51a13 | refs/heads/master | 1,693,508,842,818 | 1,636,203,271,000 | 1,636,203,271,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 23,642 | lean | /-
Copyright (c) 2019 Floris van Doorn. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Floris van Doorn
-/
import data.real.basic
import data.set.intervals
import data.set.pairwise
import set_theory.cardinal
/-!
Proof that a cube (in dimension n ≥ 3) cannot be cubed:
T... |
ee6dea40c5562399d470f89f980d179b866a1ec0 | 367134ba5a65885e863bdc4507601606690974c1 | /src/order/conditionally_complete_lattice.lean | 961ed858b64322f5ad177ea9c327880740df444e | [
"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 | 40,759 | lean | /-
Copyright (c) 2018 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.nat.enat
import data.set.intervals.ord_connected
/-!
# Theory of conditionally complete lattices.
A conditionally complete lattice is a lattice in... |
5ec17057de028de218c4d364de4fd0d8525ac9b5 | 618003631150032a5676f229d13a079ac875ff77 | /src/data/dlist/instances.lean | c99c0d5011bfd8fbaae75809a665854f54170cb8 | [
"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 | 753 | lean | /-
Copyright (c) 2018 Simon Hudon. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Simon Hudon
Traversable instance for dlists.
-/
import data.dlist
import control.traversable.equiv
import control.traversable.instances
namespace dlist
variables (α : Type*)
open func... |
c87091b6a0e30585f0ef1aa11b282cb3d23b82e8 | 10834b3de906c60d1989336d7506a00ee5e52c08 | /library/init/algebra/field.lean | 169a543af7c49f2bf7ae660d077cde21f2ed65e2 | [
"Apache-2.0"
] | permissive | Jack-Pumpkinhead/lean | 16657b5ad7f5316f007842fa2426b7f91212eae8 | 81cabd7b5a8f789633639f5fba64b45d31e37259 | refs/heads/master | 1,621,358,983,310 | 1,585,070,616,000 | 1,585,070,616,000 | 251,335,905 | 0 | 0 | Apache-2.0 | 1,585,579,683,000 | 1,585,579,682,000 | null | UTF-8 | Lean | false | false | 12,832 | lean | /-
Copyright (c) 2014 Robert Lewis. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Robert Lewis, Leonardo de Moura
Structures with multiplicative and additive components, including division rings and fields.
The development is modeled after Isabelle's library.
-/
prel... |
0b04f0a255135d8d0c7ec82c8ba181d22f0ab431 | a9d0fb7b0e4f802bd3857b803e6c5c23d87fef91 | /hott/homotopy/interval.hlean | 154511c4eaab4e98635c50eaa76011d91a98eb46 | [
"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 | 3,388 | hlean | /-
Copyright (c) 2015 Floris van Doorn. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Floris van Doorn
Declaration of the interval
-/
import .susp types.eq types.prod cubical.square
open eq susp unit equiv is_trunc nat prod
definition interval : Type₀ := susp unit
... |
38af81a4cacd5fd0264d97bd5be0f29e5e9eee9e | 4d2583807a5ac6caaffd3d7a5f646d61ca85d532 | /src/topology/locally_constant/basic.lean | 1d8461c0280625283257b4898dd35e6cbef525ad | [
"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,319 | lean | /-
Copyright (c) 2021 Johan Commelin. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Johan Commelin
-/
import topology.subset_properties
import topology.connected
import topology.algebra.monoid
import topology.continuous_function.basic
import tactic.tfae
import tactic.... |
8cba4f0af17ed2f424aaa7bc34c071c1102aa5af | a1179fa077c09acc49e4fbc8d67084ba89ac4f4c | /tutorials/src/exercises/03_forall_or.lean | 20f433d9cac246e95730aab14c910bd8d931f5a9 | [] | no_license | Seeram/Lean-proof-assistant | 11ca0ca0e0446bacdd1773c4c481a3653b2f1074 | e672d46e0e5f39d8de2933ad4f4cac095ca6094f | refs/heads/master | 1,682,754,224,366 | 1,620,959,431,000 | 1,620,959,431,000 | 299,000,950 | 0 | 1 | null | 1,620,680,462,000 | 1,601,200,258,000 | Lean | UTF-8 | Lean | false | false | 7,796 | lean | import data.real.basic
import algebra.group.pi
set_option pp.beta true
/-
In this file, we'll learn about the ∀ quantifier, and the disjunction
operator ∨ (logical OR).
Let P be a predicate on a type X. This means for every mathematical
object x with type X, we get a mathematical statement P x.
In Lean, P x has ty... |
179fe45dea4a7368110ef3a401bad7fb6b230f9f | 4fa161becb8ce7378a709f5992a594764699e268 | /src/tactic/suggest.lean | 465a2349007a1241a83b42f97aaf9268f6c32dce | [
"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 | 18,416 | lean | /-
Copyright (c) 2019 Lucas Allen. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Lucas Allen and Scott Morrison
-/
import data.mllist
import tactic.solve_by_elim
/-!
# `suggest` and `library_search`
`suggest` and `library_search` are a pair of tactics for applying l... |
a74217d1d5116d7c09fa75e3d782830cc5bb1f40 | 4d2583807a5ac6caaffd3d7a5f646d61ca85d532 | /src/linear_algebra/matrix/basis.lean | ade2997aee39f975aa756ef2b3b46768cf87b5f1 | [
"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 | 6,944 | lean | /-
Copyright (c) 2019 Johannes Hölzl. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Johannes Hölzl, Patrick Massot, Casper Putz, Anne Baanen
-/
import linear_algebra.matrix.reindex
import linear_algebra.matrix.to_lin
/-!
# Bases and matrices
This file defines the ma... |
859e281e9b0a7dc50843df32372f47703ea48ff3 | 432d948a4d3d242fdfb44b81c9e1b1baacd58617 | /src/analysis/normed_space/normed_group_hom.lean | 5aab26fa9e540f86d54dd8dc7080d815069e6763 | [
"Apache-2.0"
] | permissive | JLimperg/aesop3 | 306cc6570c556568897ed2e508c8869667252e8a | a4a116f650cc7403428e72bd2e2c4cda300fe03f | refs/heads/master | 1,682,884,916,368 | 1,620,320,033,000 | 1,620,320,033,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 21,143 | lean | /-
Copyright (c) 2021 Johan Commelin. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Johan Commelin
-/
import analysis.normed_space.basic
import topology.sequences
import topology.metric_space.isometry
/-!
# Normed groups homomorphisms
This file gathers definitions ... |
606b665fc262efb113cdbdaaf205040442b982eb | ebf7140a9ea507409ff4c994124fa36e79b4ae35 | /src/exercises_sources/friday/analysis.lean | 9e78caeed25f5a91a1fab47c4410b9ca2b30bfd0 | [] | no_license | fundou/lftcm2020 | 3e88d58a92755ea5dd49f19c36239c35286ecf5e | 99d11bf3bcd71ffeaef0250caa08ecc46e69b55b | refs/heads/master | 1,685,610,799,304 | 1,624,070,416,000 | 1,624,070,416,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 4,341 | lean | import analysis.analytic.composition
import analysis.normed_space.inner_product
import topology.metric_space.pi_Lp
import analysis.calculus.iterated_deriv
import analysis.calculus.mean_value
import analysis.calculus.implicit
import measure_theory.bochner_integration
import measure_theory.lebesgue_measure
import linear_... |
4b8cfc7e9d2567012ff803fe4e8015a031dec3cb | 675b8263050a5d74b89ceab381ac81ce70535688 | /src/algebra/field.lean | ffda2d4d1addb2c72e57afed7d2e55f6f1f94cad | [
"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 | 10,133 | lean | /-
Copyright (c) 2014 Robert Lewis. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Robert Lewis, Leonardo de Moura, Johannes Hölzl, Mario Carneiro
-/
import algebra.ring.basic
import algebra.group_with_zero
open set
set_option old_structure_cmd true
universe u
variab... |
14903d97a693c3c2a754b5ee84add077f131a92d | 5ca7b1b12d14c4742e29366312ba2c2ef8201b21 | /src/game/world4/level8.lean | b2a97aa4bc9a593a15514200014cfd3c86071832 | [
"Apache-2.0"
] | permissive | MatthiasHu/natural_number_game | 2e464482ef3001863430b0336133b6697b275ba3 | 2d764f72669ae30861f6a1057fce0257f3e466c4 | refs/heads/master | 1,609,719,110,419 | 1,576,345,737,000 | 1,576,345,737,000 | 240,296,314 | 0 | 0 | Apache-2.0 | 1,581,608,357,000 | 1,581,608,356,000 | null | UTF-8 | Lean | false | false | 2,769 | lean | import game.world4.level7 -- hide
-- incantation for importing ring into framework -- hide
import tactic.ring -- hide
meta def nat_num_game.interactive.ring := tactic.interactive.ring -- hide
namespace mynat -- hide
def two_eq_succ_one : (2 : mynat) = succ 1 := rfl -- hide
/-
# Power World
-/
instance : comm_semiri... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.