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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
1eb933ad9d7538c38b3f630339e0ce0f7e5af3ff | 7056dcccc8ffc1e6f9f533f3fed8ef16ff9fcc1e | /src/Init/Lean/Elab/Term.lean | 5473ea7767ac65306e1a8399a489a94e4f8870ca | [
"Apache-2.0"
] | permissive | graydon/lean4 | d73f60d0aa60e64e8d15674538bb5921aad5a4d1 | ec9f4b579dc6b4a20407d2735f8ad91de29bfdb5 | refs/heads/master | 1,650,641,753,817 | 1,587,651,832,000 | 1,587,733,896,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 56,665 | lean | /-
Copyright (c) 2019 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Leonardo de Moura
-/
prelude
import Init.Lean.Util.Sorry
import Init.Lean.Structure
import Init.Lean.Meta.ExprDefEq
import Init.Lean.Meta.AppBuilder
import Init.Lean.Meta.SynthI... |
d1d174c38ac545fb11d1793c15e0baa57a7af59d | 61ccc57f9d72048e493dd6969b56ebd7f0a8f9e8 | /src/analysis/normed_space/operator_norm.lean | 14662f080d7863bdcebe0eeadab59806ad9eabb5 | [
"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 | 29,179 | 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... |
b1354ebfa28cd340331093fb2d4d897351284718 | cf39355caa609c0f33405126beee2739aa3cb77e | /tests/lean/elab14.lean | de1d006614bd294db74ed13333405c0b1a921613 | [
"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 | 88 | lean | set_option pp.all true
universe variables u
#check λ (A B : Type u) (a : A) (b : B), a
|
bb389060bb566460e84958d1088e98d7ebe6622c | 437dc96105f48409c3981d46fb48e57c9ac3a3e4 | /src/analysis/analytic/basic.lean | 07389da2df5fbbc51067dd3b3482776235eea008 | [
"Apache-2.0"
] | permissive | dan-c-k/mathlib | 08efec79bd7481ee6da9cc44c24a653bff4fbe0d | 96efc220f6225bc7a5ed8349900391a33a38cc56 | refs/heads/master | 1,658,082,847,093 | 1,589,013,201,000 | 1,589,013,201,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 38,028 | 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
-/
import analysis.calculus.times_cont_diff
import tactic.omega
import analysis.special_functions.pow
/-!
# Analytic functions
A function is analytic in one dime... |
e1c4d2b1c4ac1121a0e8652f50ffc73e8c2dd497 | 36938939954e91f23dec66a02728db08a7acfcf9 | /lean/deps/galois_stdlib/src/galois/data/char.lean | 0da62d2b35e8a9167d6a9760e764538761dbb959 | [
"Apache-2.0"
] | permissive | pnwamk/reopt-vcg | f8b56dd0279392a5e1c6aee721be8138e6b558d3 | c9f9f185fbefc25c36c4b506bbc85fd1a03c3b6d | refs/heads/master | 1,631,145,017,772 | 1,593,549,019,000 | 1,593,549,143,000 | 254,191,418 | 0 | 0 | null | 1,586,377,077,000 | 1,586,377,077,000 | null | UTF-8 | Lean | false | false | 2,751 | lean | import galois.logic
namespace char
/-- Predicate that holds if character is a 7-bit ascii printable character. -/
def is_ascii7_printable (c:char) : Prop := 0x20 ≤ c.val ∧ c.val ≤ 0x7e
local attribute [reducible] is_ascii7_printable
namespace is_ascii7_printable
instance decidable : decidable_pred is_ascii7_printab... |
06bb45eb9cb890085e5817678ccea2229496db11 | a45212b1526d532e6e83c44ddca6a05795113ddc | /src/data/analysis/filter.lean | 85e4cfda48072a093056be4e23562cec87bfb640 | [
"Apache-2.0"
] | permissive | fpvandoorn/mathlib | b21ab4068db079cbb8590b58fda9cc4bc1f35df4 | b3433a51ea8bc07c4159c1073838fc0ee9b8f227 | refs/heads/master | 1,624,791,089,608 | 1,556,715,231,000 | 1,556,715,231,000 | 165,722,980 | 5 | 0 | Apache-2.0 | 1,552,657,455,000 | 1,547,494,646,000 | Lean | UTF-8 | Lean | false | false | 11,830 | 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 filters (experimental).
-/
import order.filter.basic
open set filter
/-- A `cfilter α σ` is a realization of a filter (base) on `α`,
rep... |
006799794615e936396eafd4b76d4e414bed61f8 | c777c32c8e484e195053731103c5e52af26a25d1 | /src/measure_theory/measure/probability_measure.lean | 8e79c08d4f4473201738d4b07d6b25ccb10cc426 | [
"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 | 20,789 | lean | /-
Copyright (c) 2021 Kalle Kytölä. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Kalle Kytölä
-/
import measure_theory.measure.finite_measure
import measure_theory.integral.average
/-!
# Probability measures
This file defines the type of probability measures on a g... |
0518eb2a59bae91ed35d2e697d8dc0b4ee7658c0 | 4727251e0cd73359b15b664c3170e5d754078599 | /src/analysis/special_functions/log/base.lean | 498abcd8cd4506e8daf154d145247b01ea68113f | [
"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 | 11,249 | lean | /-
Copyright (c) 2022 Bolton Bailey. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Bolton Bailey, Chris Hughes, Abhimanyu Pallavi Sudhir, Jean Lo, Calle Sönne
-/
import analysis.special_functions.log.basic
import analysis.special_functions.pow
/-!
# Real logarithm ba... |
74258c7e2bbce645f1f1dbb85a6a212be9fe3b94 | 26ac254ecb57ffcb886ff709cf018390161a9225 | /src/tactic/interactive.lean | 44e04a50824182b2490080536423d8df48089f0b | [
"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 | 43,256 | 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... |
18ba1fc65559c088559c8aeba4efe1a839e44cf5 | d406927ab5617694ec9ea7001f101b7c9e3d9702 | /src/data/fin_enum.lean | 380f6a35cfebf51cbf277ff142e7c7f7d69055ef | [
"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 | 8,814 | lean | /-
Copyright (c) 2019 Simon Hudon. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Simon Hudon
-/
import control.monad.basic
import data.fintype.basic
import data.list.prod_sigma
/-!
Type class for finitely enumerable types. The property is stronger
than `fintype` in t... |
f5fa3938cbb5405c8e5d8c22462e378c8453d36c | 4c630d016e43ace8c5f476a5070a471130c8a411 | /linear_algebra/multivariate_polynomial.lean | ef454f6f705b07b29f625a5e79efa6ab907edc55 | [
"Apache-2.0"
] | permissive | ngamt/mathlib | 9a510c391694dc43eec969914e2a0e20b272d172 | 58909bd424209739a2214961eefaa012fb8a18d2 | refs/heads/master | 1,585,942,993,674 | 1,540,739,585,000 | 1,540,916,815,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 12,437 | 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, Johan Commelin, Mario Carneiro
Multivariate Polynomial
-/
import data.finsupp linear_algebra.basic algebra.ring
open set function finsupp lattice
universes u v w
var... |
0f0bb7c5ba601d744c6a68af598cdc269f585bd2 | 624f6f2ae8b3b1adc5f8f67a365c51d5126be45a | /tests/lean/run/mixedMacroRules.lean | 4ac83abf60736bd279cd3ab1656a3c17ebfd2bad | [
"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 | 192 | lean | new_frontend
syntax term "+!+":65 term:65 : term
syntax term "*!*":70 term:70 : term
macro_rules
| `($a +!+ $b) => `($a + $b)
| `($a *!* $b) => `($a * $b)
#check 10 +!+ 20
#check 10 *!* 20
|
93966df3b1c9d5545cf3fe0b215c3d1b30416f5a | 5ae26df177f810c5006841e9c73dc56e01b978d7 | /src/ring_theory/ideal_operations.lean | 447c620891a089095a166dabb8290b798cdea09a | [
"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 | 25,858 | lean | /-
Copyright (c) 2018 Kenny Lau. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Kenny Lau
More operations on modules and ideals.
-/
import ring_theory.ideals data.nat.choose order.zorn
import linear_algebra.tensor_product
import data.equiv.algebra
import ring_theory.... |
ad74ebfd64733723101c4f09c8631c8806458ea1 | 6432ea7a083ff6ba21ea17af9ee47b9c371760f7 | /src/Lean/Elab/Syntax.lean | 7bba83d4036ff55f6ab9dd4836dd3171554a677f | [
"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 | 18,986 | 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.Elab.Command
import Lean.Parser.Syntax
import Lean.Elab.Util
namespace Lean.Elab.Term
/--
Expand `optional «precedence»` where
«precedence» :=... |
fb19704d8109027e6f93e4a281808a860a564590 | c777c32c8e484e195053731103c5e52af26a25d1 | /src/data/nat/squarefree.lean | 08150e41ae27c497e70aca20768f3d96fadcd7dc | [
"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 | 22,093 | 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 algebra.squarefree
import data.nat.factorization.prime_pow
import data.nat.prime_norm_num
import ring_theory.int.basic
/-!
# Lemmas about squarefreeness of na... |
f3f08fe8bd7b4ccea4067762034e21e2e988ce0c | 8cae430f0a71442d02dbb1cbb14073b31048e4b0 | /src/measure_theory/group/prod.lean | 6e6bd774ca8db40953882e71d0dd26516c6ea5d2 | [
"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 | 22,311 | lean | /-
Copyright (c) 2021 Floris van Doorn. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Floris van Doorn
-/
import measure_theory.constructions.prod.basic
import measure_theory.group.measure
/-!
# Measure theory in the product of groups
> THIS FILE IS SYNCHRONIZED WIT... |
bbd8f213b60cbd5e4ac7ef899889ea213d1ccae3 | 43390109ab88557e6090f3245c47479c123ee500 | /src/M3P14/Problem_sheets/sheet3.lean | e093c388bf176789b3c43638b7053febaf44aa93 | [
"Apache-2.0"
] | permissive | Ja1941/xena-UROP-2018 | 41f0956519f94d56b8bf6834a8d39473f4923200 | b111fb87f343cf79eca3b886f99ee15c1dd9884b | refs/heads/master | 1,662,355,955,139 | 1,590,577,325,000 | 1,590,577,325,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 2,738 | lean | import data.nat.prime data.int.modeq data.complex.basic algebra.euclidean_domain number_theory.pell data.pnat
-- Questions:
structure gaussian_ints :=
(re : ℤ)
(im : ℤ)
-- this is the necessary structure for ℤ[i]
def gaussian_val (x : gaussian_ints) : ℕ := (x.re * x.re + x.im * x.im).nat_abs
-- and this is the valua... |
795eedad2f9593871bbf0e2e91e73de34efe73ec | d9d511f37a523cd7659d6f573f990e2a0af93c6f | /src/measure_theory/measure/haar.lean | ba693863d4dbe4df6327cdcd6e8624c613dd6035 | [
"Apache-2.0"
] | permissive | hikari0108/mathlib | b7ea2b7350497ab1a0b87a09d093ecc025a50dfa | a9e7d333b0cfd45f13a20f7b96b7d52e19fa2901 | refs/heads/master | 1,690,483,608,260 | 1,631,541,580,000 | 1,631,541,580,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 28,209 | lean | /-
Copyright (c) 2020 Floris van Doorn. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Floris van Doorn
-/
import measure_theory.measure.content
import measure_theory.group.prod
/-!
# Haar measure
In this file we prove the existence of Haar measure for a locally comp... |
ccf7d8d67abb53ae606991ef5456921b90e91862 | cc060cf567f81c404a13ee79bf21f2e720fa6db0 | /lean/20170920-example.lean | f5a3b21234808a19d5c34c18e5eabb03a81fd517 | [
"Apache-2.0"
] | permissive | semorrison/proof | cf0a8c6957153bdb206fd5d5a762a75958a82bca | 5ee398aa239a379a431190edbb6022b1a0aa2c70 | refs/heads/master | 1,610,414,502,842 | 1,518,696,851,000 | 1,518,696,851,000 | 78,375,937 | 2 | 1 | null | null | null | null | UTF-8 | Lean | false | false | 1,281 | lean | open nat
def even : ℕ → Prop
| 0 := true
| (succ n) := ¬ (even n)
lemma even_6 : even 6 :=
begin
unfold even,
simp
end
def infinitely_many_even_integers : ∀ n : ℕ, ∃ m ≥ n, even m :=
begin
intro n,
by_cases (even n), -- This doesn't work: we need to show that `even` is decidable.
admit
end
instance parit... |
fd1d0de0b0a0e2a6f8762c27dabe13ff72f79b9b | a7602958ab456501ff85db8cf5553f7bcab201d7 | /Notes/Logic_and_Proof/Chapter4/4.33.lean | 9635035c94f0fe53ae20ff92452e48e0e2196e7a | [] | no_license | enlauren/math-logic | 081e2e737c8afb28dbb337968df95ead47321ba0 | 086b6935543d1841f1db92d0e49add1124054c37 | refs/heads/master | 1,594,506,621,950 | 1,558,634,976,000 | 1,558,634,976,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 1,064 | lean | -- Building Natural Deduction Proofs
-- 4.33 Disjunction
variables A B: Prop
-- The or-introduction rules (to introduce an ∨ from a premise) we use or.inl
-- and or.inr
-- - or.inl keeps the premise as the left ("l") side
-- - or.inr keeps the premise as the right ("r") side
variable h: A
example: A ∨ B := show ... |
889149943997473298f0a3598525717affa6850b | 8b9f17008684d796c8022dab552e42f0cb6fb347 | /library/data/prod.lean | c82a0018bc4ca16909078725e6a77a2ba0d71ddc | [
"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 | 1,649 | lean | /-
Copyright (c) 2014 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Module: data.prod
Author: Leonardo de Moura, Jeremy Avigad
-/
import logic.eq
open inhabited decidable eq.ops
namespace prod
variables {A B : Type} {a₁ a₂ : A} {b₁ b₂ : B} {u : A × B... |
8ba88eac48061085645a301e48c28e57223a6829 | 1d265c7dd8cb3d0e1d645a19fd6157a2084c3921 | /src/lessons/lesson19.lean | 58256103c59b1e5be12c849dab306d17b8c4eee8 | [
"MIT"
] | permissive | hanzhi713/lean-proofs | de432372f220d302be09b5ca4227f8986567e4fd | 4d8356a878645b9ba7cb036f87737f3f1e68ede5 | refs/heads/master | 1,585,580,245,658 | 1,553,646,623,000 | 1,553,646,623,000 | 151,342,188 | 0 | 1 | null | null | null | null | UTF-8 | Lean | false | false | 1,831 | lean | namespace my_bool
inductive mybool : Type
| mytt : mybool
| myff : mybool
/-
We declare mybool to be an
inductively defined type:
a value of type, Type.
The set of values of this
type that can be constructed
is defined by the available
constructors.
Here there are just two,
mytt and myff, neither having
any ... |
4456a1b50e036482147108ce78ff0284071acf08 | cf39355caa609c0f33405126beee2739aa3cb77e | /tests/lean/run/1739.lean | 4d0869a966c5f046f174e7b091029638a9027059 | [
"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 | 136 | lean | inductive type
| bool : type
| fn : list type → type → type
def f : type → nat
| (type.bool) := 0
| (type.fn args rt) := 1
|
9a9eb09fd1914415f8142867280449ad2204e16a | 367134ba5a65885e863bdc4507601606690974c1 | /src/category_theory/sites/pretopology.lean | a41c4b122a7940ab1253b82532e172a0e177c405 | [
"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 | 8,518 | 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 category_theory.sites.grothendieck
/-!
# Grothendieck pretopologies
Definition and lemmas about Grothendieck pretopologies.
A Grothendieck pretopology for a cat... |
4f5bad5053ec6f3ad43a6cbe2fcb30da6589a6fd | 4727251e0cd73359b15b664c3170e5d754078599 | /src/analysis/box_integral/divergence_theorem.lean | 49874fe1621adab8af87cb0cc2087f3bf21241ad | [
"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 | 16,363 | lean | /-
Copyright (c) 2021 Yury Kudryashov. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Yury Kudryashov
-/
import analysis.box_integral.basic
import analysis.box_integral.partition.additive
import analysis.calculus.fderiv
/-!
# Divergence integral for Henstock-Kurzweil ... |
eee0fc846c2d0910de60448371fa9d0bacf3297b | 6e44fda625e48340c6ffc7b1109a9e3b208e5384 | /src/topology/theorems.lean | ff4f274cda9fb6240c22c7769d7eae2929e2a0cb | [] | no_license | JasonKYi/learn_mspaces | 9f998a265b907af6be6a54061637fcf1f6d1ee9d | 54083e81da420d2d362a7024a8c86bea8529fe66 | refs/heads/master | 1,619,008,842,896 | 1,609,897,382,000 | 1,609,897,382,000 | 249,780,600 | 5 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 15,234 | lean | import topology.definitions tactic
/-
A topological space (X, 𝒯) consists of a non-empty set X
together with a collection 𝒯 of subsets of X that satisfy
- ∅ ∈ 𝒯, X ∈ 𝒯
- U, V ∈ 𝒯 → U ∩ V ∈ 𝒯
- Uᵢ ∈ 𝒯 → ⋃ᵢ U ∈ 𝒯
Elements of 𝒯 are called open sets in (X, 𝒯) and 𝒯 is
called a topology on X.
In Lean this i... |
25d4d3cca0d20888a6049514f3c88da18ff554d9 | 4d2583807a5ac6caaffd3d7a5f646d61ca85d532 | /src/algebra/category/Algebra/limits.lean | 78d614a814a2d23898d3e3964bbfcf94bd0eae8e | [
"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 | 4,932 | lean | /-
Copyright (c) 2020 Scott Morrison. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Scott Morrison
-/
import algebra.category.Algebra.basic
import algebra.category.Module.limits
import algebra.category.CommRing.limits
/-!
# The category of R-algebras has all limits
... |
ded70493573930be84ea5ebb3d91ed70f758a714 | 4d2583807a5ac6caaffd3d7a5f646d61ca85d532 | /src/topology/metric_space/kuratowski.lean | 04ac747202eea85fac00d6a4934343b29967ebaa | [
"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 | 4,943 | 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 topology.metric_space.isometry
import topology.continuous_function.bounded
import topology.compacts
/-!
# The Kuratowski embedding
Any separable metric... |
e4100022f656e139e4c02153afef88a748b7b483 | bbecf0f1968d1fba4124103e4f6b55251d08e9c4 | /src/data/list/zip.lean | 13782b9af77d1c7ad61fcafedfd4b4e396686c67 | [
"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 | 14,753 | lean | /-
Copyright (c) 2018 Mario Carneiro. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Mario Carneiro, Kenny Lau
-/
import data.list.basic
/-!
# zip & unzip
This file provides results about `list.zip_with`, `list.zip` and `list.unzip` (definitions are in
core Lean).
`z... |
51d68dedad94b0c29c79eeee67138d416af965ee | 4fa118f6209450d4e8d058790e2967337811b2b5 | /src/for_mathlib/group_with_zero.lean | b3c22b01bbb5577cd5a31350b77ae289490774f0 | [
"Apache-2.0"
] | permissive | leanprover-community/lean-perfectoid-spaces | 16ab697a220ed3669bf76311daa8c466382207f7 | 95a6520ce578b30a80b4c36e36ab2d559a842690 | refs/heads/master | 1,639,557,829,139 | 1,638,797,866,000 | 1,638,797,866,000 | 135,769,296 | 96 | 10 | Apache-2.0 | 1,638,797,866,000 | 1,527,892,754,000 | Lean | UTF-8 | Lean | false | false | 12,929 | lean | import algebra.group.units
import data.equiv.basic
import for_mathlib.with_zero
set_option old_structure_cmd true
/-- A type `α` is a “group with zero” if it is a monoid with zero element (distinct from `1`)
such that every nonzero element is invertible.
The type is required to come with an “inverse” function, and t... |
c32b8c981bc1d50cf87116e0b44484a9f665e89e | 4e3bf8e2b29061457a887ac8889e88fa5aa0e34c | /lean/love05_inductive_predicates_homework_sheet.lean | cbd37193240eba3cd2c27585f39e1856f9ecd6ff | [] | no_license | mukeshtiwari/logical_verification_2019 | 9f964c067a71f65eb8884743273fbeef99e6503d | 16f62717f55ed5b7b87e03ae0134791a9bef9b9a | refs/heads/master | 1,619,158,844,208 | 1,585,139,500,000 | 1,585,139,500,000 | 249,906,380 | 0 | 0 | null | 1,585,118,728,000 | 1,585,118,727,000 | null | UTF-8 | Lean | false | false | 2,740 | lean | /- LoVe Homework 5: Inductive Predicates -/
import .lovelib
namespace LoVe
/- Question 1: Lambda-Terms -/
/- Recall the following type of λ-terms from question 3 of exercise 4. -/
inductive lam : Type
| var : string → lam
| abs : string → lam → lam
| app : lam → lam → lam
export lam (var abs app)
/- 1.1. Define... |
553e661be1b76a092f15c6ba8871d5102d63148b | 6fca17f8d5025f89be1b2d9d15c9e0c4b4900cbf | /src/game/world6/level8.lean | 69996225965b721581f7250caac14efa850618ab | [
"Apache-2.0"
] | permissive | arolihas/natural_number_game | 4f0c93feefec93b8824b2b96adff8b702b8b43ce | 8e4f7b4b42888a3b77429f90cce16292bd288138 | refs/heads/master | 1,621,872,426,808 | 1,586,270,467,000 | 1,586,270,467,000 | 253,648,466 | 0 | 0 | null | 1,586,219,694,000 | 1,586,219,694,000 | null | UTF-8 | Lean | false | false | 1,358 | lean | /- Axiom : not_iff_imp_false (P : Prop) :
¬ P ↔ P → false
-/
lemma not_iff_imp_false (P : Prop) : ¬ P ↔ P → false := iff.rfl -- hide
/-
# Proposition world.
## Level 8 : `(P → Q) → (¬ Q → ¬ P)`
There is a false proposition `false`, with no proof. It is
easy to check that $\lnot Q$ is equivalent to $Q\implies {\tt f... |
73f2046a6e8252d546d2dfd9ca3cf15a433a0177 | 31f556cdeb9239ffc2fad8f905e33987ff4feab9 | /tests/lean/run/lcnf1.lean | fd1bc4e68c2b76c2dba596a282e5399c19751a32 | [
"Apache-2.0",
"LLVM-exception",
"NCSA",
"LGPL-3.0-only",
"LicenseRef-scancode-inner-net-2.0",
"BSD-3-Clause",
"LGPL-2.0-or-later",
"Spencer-94",
"LGPL-2.1-or-later",
"HPND",
"LicenseRef-scancode-pcre",
"ISC",
"LGPL-2.1-only",
"LicenseRef-scancode-other-permissive",
"SunPro",
"CMU-Mach"... | permissive | tobiasgrosser/lean4 | ce0fd9cca0feba1100656679bf41f0bffdbabb71 | ebdbdc10436a4d9d6b66acf78aae7a23f5bd073f | refs/heads/master | 1,673,103,412,948 | 1,664,930,501,000 | 1,664,930,501,000 | 186,870,185 | 0 | 0 | Apache-2.0 | 1,665,129,237,000 | 1,557,939,901,000 | Lean | UTF-8 | Lean | false | false | 2,594 | lean | import Lean
open Lean
#eval Compiler.compile #[``List.map]
#eval Compiler.compile #[``Lean.Elab.Term.synthesizeInstMVarCore]
#eval Compiler.compile #[``Eq.ndrec]
def g1 (x : Nat) (h : Nat = Int) : Int :=
(h ▸ x) + 1
#eval Compiler.compile #[``g1]
def f (h : False) (x : Nat) : Nat :=
(h.rec : Nat → Nat) x
#e... |
e0a0677dd655e551bd010064eec1531230b8d066 | c777c32c8e484e195053731103c5e52af26a25d1 | /src/geometry/euclidean/angle/sphere.lean | 00f153eef699e4e3ed7edf2b6027c6378d4fefd6 | [
"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 | 25,136 | lean | /-
Copyright (c) 2022 Joseph Myers. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Joseph Myers
-/
import geometry.euclidean.angle.oriented.right_angle
import geometry.euclidean.circumcenter
/-!
# Angles in circles and sphere.
This file proves results about angles in... |
3b02c0e66bff2dc827ba73de2214d645e0c59a32 | 4727251e0cd73359b15b664c3170e5d754078599 | /src/analysis/inner_product_space/dual.lean | 38225668822d586df0738451d61f876bb27e30cc | [
"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 | 7,101 | 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 analysis.inner_product_space.projection
import analysis.normed_space.dual
import analysis.normed_space.star.basic
/-!
# The Fréchet-Riesz representation the... |
fe0f879c3af8eb9007de514656b52321a11d04d5 | d9d511f37a523cd7659d6f573f990e2a0af93c6f | /src/linear_algebra/clifford_algebra/equivs.lean | 7192c8c3749e91ea0f79dc5c87aa53d92576895b | [
"Apache-2.0"
] | permissive | hikari0108/mathlib | b7ea2b7350497ab1a0b87a09d093ecc025a50dfa | a9e7d333b0cfd45f13a20f7b96b7d52e19fa2901 | refs/heads/master | 1,690,483,608,260 | 1,631,541,580,000 | 1,631,541,580,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 13,521 | lean | /-
Copyright (c) 2021 Eric Wieser. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Eric Wieser
-/
import algebra.quaternion_basis
import data.complex.module
import linear_algebra.clifford_algebra.basic
import linear_algebra.clifford_algebra.conjugation
/-!
# Other cons... |
7735d30c6293d8177e35564909e2b40d7f0421c5 | 491068d2ad28831e7dade8d6dff871c3e49d9431 | /library/algebra/ring.lean | 5ca55133fe7af182dd3101424d47949f6b64cd81 | [
"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,682 | 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
Structures with multiplicative and additive components, including semirings, rings, and fields.
The development is modeled after Isabelle's library.
-/... |
ffa42e0ebf22a7b6e8eb7f5ba96f5d07c684f018 | 05f637fa14ac28031cb1ea92086a0f4eb23ff2b1 | /tests/lean/single.lean | a9b7eca421863b673c914425a5a14b3008240ab8 | [
"Apache-2.0"
] | permissive | codyroux/lean0.1 | 1ce92751d664aacff0529e139083304a7bbc8a71 | 0dc6fb974aa85ed6f305a2f4b10a53a44ee5f0ef | refs/heads/master | 1,610,830,535,062 | 1,402,150,480,000 | 1,402,150,480,000 | 19,588,851 | 2 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 128 | lean | import Int.
variables a b c : Int.
print a + b + c.
check a + b.
exit.
-- the following line should be executed
check a + true.
|
7e2ecffc6fdd498c016b8182ce758d17894d0dd6 | 9dc8cecdf3c4634764a18254e94d43da07142918 | /src/geometry/euclidean/sphere.lean | b2495efd70e79ca94ed0359f5a08bfcda8dd19c4 | [
"Apache-2.0"
] | permissive | jcommelin/mathlib | d8456447c36c176e14d96d9e76f39841f69d2d9b | ee8279351a2e434c2852345c51b728d22af5a156 | refs/heads/master | 1,664,782,136,488 | 1,663,638,983,000 | 1,663,638,983,000 | 132,563,656 | 0 | 0 | Apache-2.0 | 1,663,599,929,000 | 1,525,760,539,000 | Lean | UTF-8 | Lean | false | false | 8,351 | lean | /-
Copyright (c) 2021 Manuel Candales. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Manuel Candales, Benjamin Davidson
-/
import geometry.euclidean.triangle
/-!
# Spheres
This file proves basic geometrical results about distances and angles
in spheres in real inner... |
c0333aa9f86b1124f5f7f24dd2b8dbe8e3f7fee8 | 6432ea7a083ff6ba21ea17af9ee47b9c371760f7 | /tests/compiler/print_error.lean | fd8be3803a13839840c1f1b94cc5a52ed2d7b033 | [
"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 | 125 | lean | prelude
import Init.System.IO
def main : IO Unit :=
throw $ IO.Error.noFileOrDirectory "file.ext" 13 "this is some context"
|
b7513ad81b4f92a77368bdfb5d4212b04d0a7d09 | 3863d2564418bccb1859e057bf5a4ef240e75fd7 | /hott/homotopy/susp.hlean | ba6417966d3ef50f989f16f31a49011b4f2d0a47 | [
"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 | 10,992 | 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, Ulrik Buchholtz
Declaration of suspension
-/
import hit.pushout types.pointed cubical.square .connectedness
open pushout unit eq equiv
definition susp (A : Type... |
f22576781f4d2f0793e0d898233057beb24c5298 | b815abf92ce063fe0d1fabf5b42da483552aa3e8 | /library/init/data/nat/basic.lean | 129bf8afe8a57e40ba73d909f2df7e6cae95d0ac | [
"Apache-2.0"
] | permissive | yodalee/lean | a368d842df12c63e9f79414ed7bbee805b9001ef | 317989bf9ef6ae1dec7488c2363dbfcdc16e0756 | refs/heads/master | 1,610,551,176,860 | 1,481,430,138,000 | 1,481,646,441,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 4,175 | lean | /-
Copyright (c) 2014 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Floris van Doorn, Leonardo de Moura
-/
prelude
import init.logic init.data.num.basic
notation `ℕ` := nat
namespace nat
inductive less_than (a : ℕ) : ℕ → Prop
| refl : less_th... |
10bf4a19146af12a8637e984d27e563e09981c47 | 74addaa0e41490cbaf2abd313a764c96df57b05d | /Mathlib/data/indicator_function_auto.lean | ca303c923dae42dda4d98f9c7f93cb76f6768863 | [] | no_license | AurelienSaue/Mathlib4_auto | f538cfd0980f65a6361eadea39e6fc639e9dae14 | 590df64109b08190abe22358fabc3eae000943f2 | refs/heads/master | 1,683,906,849,776 | 1,622,564,669,000 | 1,622,564,669,000 | 371,723,747 | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 16,809 | 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 Mathlib.PrePort
import Mathlib.Lean3Lib.init.default
import Mathlib.algebra.group.pi
import Mathlib.group_theory.group_action.default
import Mathlib.data.support... |
ec9a45e7f7fc7a2c1d9fbdff007a9f3796f0972f | 94e33a31faa76775069b071adea97e86e218a8ee | /src/algebra/order/ring.lean | 51813270bcf3bae09918ec1848729a97baf6792a | [
"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 | 75,662 | lean | /-
Copyright (c) 2016 Jeremy Avigad. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Jeremy Avigad, Leonardo de Moura, Mario Carneiro
-/
import algebra.order.group
import algebra.order.sub
import algebra.char_zero.defs
import algebra.hom.ring
import data.set.intervals.b... |
6992cad1195f44fb997db6cd522f771d662354ba | 4bcaca5dc83d49803f72b7b5920b75b6e7d9de2d | /stage0/src/Lean/Server/InfoUtils.lean | a50f534f32b4736543ae8eb9e113ff6efaf92f3b | [
"Apache-2.0"
] | permissive | subfish-zhou/leanprover-zh_CN.github.io | 30b9fba9bd790720bd95764e61ae796697d2f603 | 8b2985d4a3d458ceda9361ac454c28168d920d3f | refs/heads/master | 1,689,709,967,820 | 1,632,503,056,000 | 1,632,503,056,000 | 409,962,097 | 1 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 9,395 | lean | /-
Copyright (c) 2021 Wojciech Nawrocki. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Wojciech Nawrocki
-/
import Lean.DocString
import Lean.Elab.InfoTree
import Lean.Util.Sorry
protected structure String.Range where
start : String.Pos
stop : String.Pos
deri... |
c459b355a73f3fa94f352a279e40960b4ec88d6e | 74addaa0e41490cbaf2abd313a764c96df57b05d | /Mathlib/topology/omega_complete_partial_order_auto.lean | a282761fdf82161ff35abb972086cb00f8608682 | [] | 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,091 | 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.topology.basic
import Mathlib.order.omega_complete_partial_order
import Mathlib.PostPort
universe... |
1899724e2971a9db8510362bcdc9546b67f49737 | 624f6f2ae8b3b1adc5f8f67a365c51d5126be45a | /tests/lean/run/macro.lean | 58610b5666d78eb809f5f853570be43002d1952c | [
"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,192 | lean | new_frontend
abbrev Set (α : Type) := α → Prop
axiom setOf {α : Type} : (α → Prop) → Set α
axiom mem {α : Type} : α → Set α → Prop
axiom univ {α : Type} : Set α
axiom Union {α : Type} : Set (Set α) → Set α
syntax term " ∈ ":100 term:99 : term
macro_rules
| `($x ∈ $s) => `(mem $x $s)
declare_syntax_cat index
syntax... |
02317c8bba80550a118d1c9e2b101ad85baf4e57 | c777c32c8e484e195053731103c5e52af26a25d1 | /src/analysis/inner_product_space/dual.lean | adbbc2ad54936b1fb10949d51a8f766b544aa077 | [
"Apache-2.0"
] | permissive | kbuzzard/mathlib | 2ff9e85dfe2a46f4b291927f983afec17e946eb8 | 58537299e922f9c77df76cb613910914a479c1f7 | refs/heads/master | 1,685,313,702,744 | 1,683,974,212,000 | 1,683,974,212,000 | 128,185,277 | 1 | 0 | null | 1,522,920,600,000 | 1,522,920,600,000 | null | UTF-8 | Lean | false | false | 6,479 | 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 analysis.inner_product_space.projection
import analysis.normed_space.dual
import analysis.normed_space.star.basic
/-!
# The Fréchet-Riesz representation the... |
4b32b99f1f0d00c1984d61ccb3cd0aa52f6316f3 | fa94c6d0fc6f04b86b0d3ca6e6dea9dd87d28bc8 | /conj.lean | 39ddad828ea6dd7b10b2e8b4943ff1bdd2949d08 | [] | no_license | tabsg/complexNoGame | 5e5cc6946b8e1e41023cf4af79f06060f2b355dd | 6d765d2e75e99ccab2dda70f44ff06aa286f5bdd | refs/heads/master | 1,657,040,370,406 | 1,590,094,335,000 | 1,590,094,335,000 | 265,948,577 | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 2,632 | lean | -- import solutions to level 1
import complex.I
/-!
# Level 2: Complex conjugation
-/
namespace complex
-- First complete the definition using `complex.mk` or `⟨x, y⟩` notation
/-- The complex conjugate of a complex number -/
def conj (z : ℂ) : ℂ := ⟨z.re,-z.im⟩
-- Now prove how it interacts with everything e... |
cd9ceb7efb8acd6c18965b6ba40e8af732d5c61a | dd0f5513e11c52db157d2fcc8456d9401a6cd9da | /06_Inductive_Types.org.1.lean | 41b84c3007c505e8108ef85a4046be48556db30f | [] | 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 | 200 | lean | /- page 77 -/
import standard
inductive weekday : Type :=
| sunday : weekday
| monday : weekday
| tuesday : weekday
| wednesday : weekday
| thursday : weekday
| friday : weekday
| saturday : weekday
|
9a687684ba1f546507b5e953407a3deb74d115a7 | 86f6f4f8d827a196a32bfc646234b73328aeb306 | /examples/logic/unnamed_843.lean | 05b9abea3687e982853e64a9d6450c42b65c92e4 | [] | no_license | jamescheuk91/mathematics_in_lean | 09f1f87d2b0dce53464ff0cbe592c568ff59cf5e | 4452499264e2975bca2f42565c0925506ba5dda3 | refs/heads/master | 1,679,716,410,967 | 1,613,957,947,000 | 1,613,957,947,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 368 | lean | import tactic
variables {α : Type*} [comm_ring α]
def sum_of_squares (x : α) := ∃ a b, x = a^2 + b^2
theorem sum_of_squares_mul {x y : α}
(sosx : sum_of_squares x) (sosy : sum_of_squares y) :
sum_of_squares (x * y) :=
begin
rcases sosx with ⟨a, b, xeq⟩,
rcases sosy with ⟨c, d, yeq⟩,
rw [xeq, yeq],
use ... |
5383b02fb2d3db9efe1af3bf1097061915979431 | 82e44445c70db0f03e30d7be725775f122d72f3e | /src/topology/metric_space/lipschitz.lean | f9f9f13f432adb9f43983a27714eb6707ba7ba3c | [
"Apache-2.0"
] | permissive | stjordanis/mathlib | 51e286d19140e3788ef2c470bc7b953e4991f0c9 | 2568d41bca08f5d6bf39d915434c8447e21f42ee | refs/heads/master | 1,631,748,053,501 | 1,627,938,886,000 | 1,627,938,886,000 | 228,728,358 | 0 | 0 | Apache-2.0 | 1,576,630,588,000 | 1,576,630,587,000 | null | UTF-8 | Lean | false | false | 14,540 | lean | /-
Copyright (c) 2018 Rohan Mitta. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Rohan Mitta, Kevin Buzzard, Alistair Tucker, Johannes Hölzl, Yury Kudryashov
-/
import logic.function.iterate
import topology.metric_space.basic
import category_theory.endomorphism
import... |
daf35c8cb5fbfd0b70605000a5970529f10b2b0a | d406927ab5617694ec9ea7001f101b7c9e3d9702 | /src/algebra/star/basic.lean | 9e4be9cab8f6b120afcf0686865e44fb1db711eb | [
"Apache-2.0"
] | permissive | alreadydone/mathlib | dc0be621c6c8208c581f5170a8216c5ba6721927 | c982179ec21091d3e102d8a5d9f5fe06c8fafb73 | refs/heads/master | 1,685,523,275,196 | 1,670,184,141,000 | 1,670,184,141,000 | 287,574,545 | 0 | 0 | Apache-2.0 | 1,670,290,714,000 | 1,597,421,623,000 | Lean | UTF-8 | Lean | false | false | 18,501 | lean | /-
Copyright (c) 2020 Scott Morrison. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Scott Morrison
-/
import algebra.ring.aut
import algebra.ring.comp_typeclasses
import data.rat.cast
import group_theory.group_action.opposite
import data.set_like.basic
/-!
# Star mon... |
5ed65ae2456fb0f34ac343859dc3ae7f68a131b5 | 6772a11d96d69b3f90d6eeaf7f9accddf2a7691d | /monoidal_category.lean | e05ba2faeba2c89634d372f8c8e06d03904a5370 | [] | no_license | lbordowitz/lean-category-theory | 5397361f0f81037d65762da48de2c16ec85a5e4b | 8c59893e44af3804eba4dbc5f7fa5928ed2e0ae6 | refs/heads/master | 1,611,310,752,156 | 1,487,070,172,000 | 1,487,070,172,000 | 82,003,141 | 0 | 0 | null | 1,487,118,553,000 | 1,487,118,553,000 | null | UTF-8 | Lean | false | false | 8,272 | 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
import .functor
import .natural_transformation
import .products
--set_option pp.universes true
open tqft.categories
open tqft.ca... |
f1bdc1f4436ae4eda0c86b39becb8217b2a25ecc | fe84e287c662151bb313504482b218a503b972f3 | /src/combinatorics/stirling.lean | 873a9740289bd98ac1298b04d9e7fe24d7d20fe0 | [] | no_license | NeilStrickland/lean_lib | 91e163f514b829c42fe75636407138b5c75cba83 | 6a9563de93748ace509d9db4302db6cd77d8f92c | refs/heads/master | 1,653,408,198,261 | 1,652,996,419,000 | 1,652,996,419,000 | 181,006,067 | 4 | 1 | null | null | null | null | UTF-8 | Lean | false | false | 1,731 | lean | /-
Copyright (c) 2019 Neil Strickland. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Neil Strickland
This is about the Stirling numbers (of the first and second kinds)
and the Bell numbers, which arise in various places in combinatorics.
The file combinatorics/parti... |
81fd417fbf14639babca70a2b454d9bc9185ba29 | f3a5af2927397cf346ec0e24312bfff077f00425 | /src/game/world9/level3.lean | a318bb51fc0390301d6ede16769f2db76d1f4077 | [
"Apache-2.0"
] | permissive | ImperialCollegeLondon/natural_number_game | 05c39e1586408cfb563d1a12e1085a90726ab655 | f29b6c2884299fc63fdfc81ae5d7daaa3219f9fd | refs/heads/master | 1,688,570,964,990 | 1,636,908,242,000 | 1,636,908,242,000 | 195,403,790 | 277 | 84 | Apache-2.0 | 1,694,547,955,000 | 1,562,328,792,000 | Lean | UTF-8 | Lean | false | false | 608 | lean | import game.world9.level2 -- hide
namespace mynat -- hide
/-
# Advanced Multiplication World
## Level 3: `mul_eq_zero_iff`
Now you have `eq_zero_or_eq_zero_of_mul_eq_zero` this is pretty straightforward.
-/
/- Theorem
$ab = 0$, if and only if at least one of $a$ or $b$ is equal to zero.
-/
theorem mul_eq_zero_iff (... |
14c2cd22b58f2f7d1293a3404216ccf69dca9ec1 | 302c785c90d40ad3d6be43d33bc6a558354cc2cf | /src/algebra/lie/abelian.lean | 6eec34c5b20b930f49a0b46b8f18e72c0f797676 | [
"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 | 7,906 | lean | /-
Copyright (c) 2021 Oliver Nash. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Oliver Nash
-/
import algebra.lie.of_associative
import algebra.lie.ideal_operations
/-!
# Trivial Lie modules and Abelian Lie algebras
The action of a Lie algebra `L` on a module `M` i... |
e3b03e756e3de06a5623b2d82661d1f5f3cf7edc | 88fb7558b0636ec6b181f2a548ac11ad3919f8a5 | /library/init/data/array/basic.lean | 6423d644d3605107cf46220ed50175f88fea6a66 | [
"Apache-2.0"
] | permissive | moritayasuaki/lean | 9f666c323cb6fa1f31ac597d777914aed41e3b7a | ae96ebf6ee953088c235ff7ae0e8c95066ba8001 | refs/heads/master | 1,611,135,440,814 | 1,493,852,869,000 | 1,493,852,869,000 | 90,269,903 | 0 | 0 | null | 1,493,906,291,000 | 1,493,906,291,000 | null | UTF-8 | Lean | false | false | 4,000 | lean | /-
Copyright (c) 2017 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Leonardo de Moura
-/
prelude
import init.data.nat
universes u w
structure array (α : Type u) (n : nat) :=
(data : fin n → α)
def mk_array {α} (n) (v : α) : array α n :=
{data ... |
d847647a9bbd1cde0341b53a3f315b8ac8626970 | 4d2583807a5ac6caaffd3d7a5f646d61ca85d532 | /src/algebra/order/monoid.lean | 6f787214701b893960148da62f791e01aed5f8bc | [
"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 | 40,143 | lean | /-
Copyright (c) 2016 Jeremy Avigad. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Jeremy Avigad, Leonardo de Moura, Mario Carneiro, Johannes Hölzl
-/
import algebra.group.with_one
import algebra.group.type_tags
import algebra.group.prod
import algebra.order.monoid_le... |
f142c126f172c01bbbea131e85b2280f0c8b380e | d406927ab5617694ec9ea7001f101b7c9e3d9702 | /src/data/nat/order/lemmas.lean | 1cb7cc86db405c306e176b2b22bf11350d427035 | [
"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 | 8,739 | 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 data.nat.order.basic
import data.set.basic
import algebra.ring.divisibilit... |
197326b0b11af3e903846c39a25db270daf647b0 | d406927ab5617694ec9ea7001f101b7c9e3d9702 | /src/logic/denumerable.lean | 7d5378d402e0bb8270a1cdb2e569237af5384107 | [
"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,797 | lean | /-
Copyright (c) 2018 Mario Carneiro. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Mario Carneiro
-/
import data.fintype.lattice
import data.list.min_max
import data.nat.order.lemmas
import logic.encodable.basic
/-!
# Denumerable types
This file defines denumerable... |
a4c69495fee63455f729b37b12b9ff805f46a520 | 947b78d97130d56365ae2ec264df196ce769371a | /stage0/src/Lean/Data/Lsp/Communication.lean | a3b5b83061e9bb37589d46b52b0d037d315649ea | [
"Apache-2.0"
] | permissive | shyamalschandra/lean4 | 27044812be8698f0c79147615b1d5090b9f4b037 | 6e7a883b21eaf62831e8111b251dc9b18f40e604 | refs/heads/master | 1,671,417,126,371 | 1,601,859,995,000 | 1,601,860,020,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 2,798 | 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 Init.System.IO
import Lean.Data.JsonRpc
/-! Reading/writing LSP messages from/to IO handles. -/
namespace Lean
namespace Lsp
open IO
open ... |
d0333ebde6c87d668af5d0d665d51f1db195b244 | 26ac254ecb57ffcb886ff709cf018390161a9225 | /src/linear_algebra/multilinear.lean | 4f08f2e06e0750a1aa4397d8a0820af6883bdc2a | [
"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 | 33,840 | 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
-/
import linear_algebra.basic
import tactic.omega
import data.fintype.card
import data.fintype.sort
/-!
# Multilinear maps
We define multilinear maps as maps fr... |
2255372a3d23ef333d2f56f1ebfdf14010cb0a85 | 453dcd7c0d1ef170b0843a81d7d8caedc9741dce | /algebra/group.lean | 0ce86503aebaa65273e1fe7d56d84c85139b4f0f | [
"Apache-2.0"
] | permissive | amswerdlow/mathlib | 9af77a1f08486d8fa059448ae2d97795bd12ec0c | 27f96e30b9c9bf518341705c99d641c38638dfd0 | refs/heads/master | 1,585,200,953,598 | 1,534,275,532,000 | 1,534,275,532,000 | 144,564,700 | 0 | 0 | null | 1,534,156,197,000 | 1,534,156,197,000 | null | UTF-8 | Lean | false | false | 23,610 | 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
Various multiplicative and additive structures.
-/
import tactic.interactive data.option
section pending_1857
/- Transport multiplicative to additive... |
ba5b986c569aa8353362eb7bead50091a3fe4e42 | 934eae675a9d997202bb021816325184e7d694aa | /_notes/Languages/lean/myproject/compile.lean | 8cb0e3507c0586484449b3cc490e140020cbb60e | [] | no_license | philzook58/philzook58.github.io | da78841df4ffd9a19c81e0eab833983d95a64b70 | 76000a5847bd6ee41dff25937ae916835bbcf03f | refs/heads/master | 1,692,951,958,916 | 1,692,631,945,000 | 1,692,631,945,000 | 91,513,884 | 9 | 4 | null | 1,677,330,791,000 | 1,494,977,989,000 | Jupyter Notebook | UTF-8 | Lean | false | false | 1,004 | lean | --def main := IO.println ("hi" ++ "there")
import Lean.Data.HashMap
abbrev Reg : Type := String -- deriving BEq, Hashable, Repr, ToString
def regs : List Reg := List.map (fun n => s!"r{n}")
(List.range 10)
abbrev Var : Type := String -- deriving BEq, Hashable, Repr, ToString
abbre... |
8f428808719f5c33c355a94c1eb27a8a9e76a055 | 9be442d9ec2fcf442516ed6e9e1660aa9071b7bd | /src/Lean/Elab/Tactic/Conv/Pattern.lean | 54c909de6dce7f69c6eb937358e85a7e9ccb0af8 | [
"Apache-2.0",
"LLVM-exception",
"NCSA",
"LGPL-3.0-only",
"LicenseRef-scancode-inner-net-2.0",
"BSD-3-Clause",
"LGPL-2.0-or-later",
"Spencer-94",
"LGPL-2.1-or-later",
"HPND",
"LicenseRef-scancode-pcre",
"ISC",
"LGPL-2.1-only",
"LicenseRef-scancode-other-permissive",
"SunPro",
"CMU-Mach"... | permissive | EdAyers/lean4 | 57ac632d6b0789cb91fab2170e8c9e40441221bd | 37ba0df5841bde51dbc2329da81ac23d4f6a4de4 | refs/heads/master | 1,676,463,245,298 | 1,660,619,433,000 | 1,660,619,433,000 | 183,433,437 | 1 | 0 | Apache-2.0 | 1,657,612,672,000 | 1,556,196,574,000 | Lean | UTF-8 | Lean | false | false | 2,959 | lean | /-
Copyright (c) 2021 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Leonardo de Moura
-/
import Lean.Elab.Tactic.Simp
import Lean.Elab.Tactic.Conv.Basic
import Lean.HeadIndex
namespace Lean.Elab.Tactic.Conv
open Meta
private def getContext : M... |
faeaaf4bd528aa6182b08531a4b549be229bd1de | 86f6f4f8d827a196a32bfc646234b73328aeb306 | /examples/basics/unnamed_1253.lean | cecc4dc83f4ee6e888bd567528d4c5f2d734c2d4 | [] | no_license | jamescheuk91/mathematics_in_lean | 09f1f87d2b0dce53464ff0cbe592c568ff59cf5e | 4452499264e2975bca2f42565c0925506ba5dda3 | refs/heads/master | 1,679,716,410,967 | 1,613,957,947,000 | 1,613,957,947,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 422 | lean | import analysis.special_functions.exp_log
open real
variables a b c d e : ℝ
-- BEGIN
example (h₀ : d ≤ e) : c + exp (a + d) ≤ c + exp (a + e) :=
begin
sorry
end
example : (0 : ℝ) < 1 :=
by norm_num
example (h : a ≤ b) : log (1 + exp a) ≤ log (1 + exp b) :=
begin
have h₀ : 0 < 1 + exp a,
{ sorry },
have h₁ ... |
13fa30002a97f2b54a7ba07992f8031c65e97abe | 432d948a4d3d242fdfb44b81c9e1b1baacd58617 | /src/ring_theory/polynomial/scale_roots.lean | dfacad3f716f1706261897d7317dd480fd59bff1 | [
"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 | 5,346 | lean | /-
Copyright (c) 2020 Anne Baanen. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Anne Baanen, Devon Tuma
-/
import ring_theory.polynomial.basic
import ring_theory.non_zero_divisors
/-!
# Scaling the roots of a polynomial
This file defines `scale_roots p s` for a po... |
1db920d6896b818301b132852dc75fb8035eafff | 9028d228ac200bbefe3a711342514dd4e4458bff | /src/analysis/normed_space/inner_product.lean | 6bfb698cd2fc393acfa7521f281aec28ddd7bda6 | [
"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 | 77,678 | lean | /-
Copyright (c) 2019 Zhouhang Zhou. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Zhouhang Zhou, Sébastien Gouëzel, Frédéric Dupuis
-/
import linear_algebra.bilinear_form
import linear_algebra.sesquilinear_form
import analysis.special_functions.pow
import topology.m... |
c7988110cc05ffbdf6b4e326ba806014300ff8db | 9dc8cecdf3c4634764a18254e94d43da07142918 | /src/measure_theory/measure/haar.lean | 0c07712eb76595032221d687ccec415f7ff819d9 | [
"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 | 38,104 | lean | /-
Copyright (c) 2020 Floris van Doorn. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Floris van Doorn
-/
import measure_theory.measure.content
import measure_theory.group.prod
/-!
# Haar measure
In this file we prove the existence and uniqueness (up to scalar multi... |
70315d02b50baec4db420a072eaeb80e414354fa | 57c233acf9386e610d99ed20ef139c5f97504ba3 | /src/order/compare.lean | 0f57ee001212b28bf5fb216650daeccd552aa5f3 | [
"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 | 7,088 | 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 order.basic
/-!
# Comparison
This file provides basic results about orderings and comparison in linear orders.
## Definitions
* `cmp_le`: An `ordering` fr... |
01c11cdeb2dedcdabfb42eb5a1d8c1e92483341a | 2fbe653e4bc441efde5e5d250566e65538709888 | /src/topology/algebra/infinite_sum.lean | 26a8b28e0cbfb8f30e3ca6934401bdace44c5c91 | [
"Apache-2.0"
] | permissive | aceg00/mathlib | 5e15e79a8af87ff7eb8c17e2629c442ef24e746b | 8786ea6d6d46d6969ac9a869eb818bf100802882 | refs/heads/master | 1,649,202,698,930 | 1,580,924,783,000 | 1,580,924,783,000 | 149,197,272 | 0 | 0 | Apache-2.0 | 1,537,224,208,000 | 1,537,224,207,000 | null | UTF-8 | Lean | false | false | 28,944 | 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
Infinite sum over a topological monoid
This sum is known as unconditionally convergent, as it sums to the same value under all possible
permutations. For Euclidean spa... |
9ea4664c32f98b63de83095ce0a9aa8d91c4f312 | 76ce87faa6bc3c2aa9af5962009e01e04f2a074a | /00_Foundations/00_intro.lean | 16babe317be035c99759ffbf034d069b7749f7ad | [] | no_license | Mnormansell/Discrete-Notes | db423dd9206bbe7080aecb84b4c2d275b758af97 | 61f13b98be590269fc4822be7b47924a6ddc1261 | refs/heads/master | 1,585,412,435,424 | 1,540,919,483,000 | 1,540,919,483,000 | 148,684,638 | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 37,872 | lean | /-
*** MATHEMATICAL LOGIC ***
/- *** Overview *** -/
In this unit you will learned the following concepts, among others:
* mathematical logics as formal systems
* propositions, including their syntax and semantics
* truth judgments
* inference rules, their meaning and notation
* axioms
* proofs as evidence that jus... |
845329901e22b51dacebbb2415407fd783ea7f26 | 0845ae2ca02071debcfd4ac24be871236c01784f | /library/init/data/int/basic.lean | f10bceaa984094afba5e736fbbd3a5786385dcea | [
"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 | 4,469 | lean | /-
Copyright (c) 2016 Jeremy Avigad. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Jeremy Avigad, Leonardo de Moura
The integers, with addition, multiplication, and subtraction.
-/
prelude
import init.data.nat.basic init.data.list init.coe init.data.repr init.data.to... |
9226713ea6f4fd8978d8a06036f112c7137c08f9 | 80162757f50b09d3cad5564907e4c9b00742e045 | /uniform_space.lean | a3e36f18396fbfce15eb1b65d80e4c4a1cab0ab7 | [] | no_license | EdAyers/edlib | cc30d0a54fed347a85b6df6045f68e6b48bc71a3 | 78b8c5d91f023f939c102837d748868e2f3ed27d | refs/heads/master | 1,586,459,758,216 | 1,571,322,179,000 | 1,571,322,179,000 | 160,538,917 | 2 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 1,237 | lean | import .topology
open topology filter
universe u
variables {α : Type u}
def prod.swap {β:Type*} : α × β → β × α
|⟨a,b⟩ := ⟨b,a⟩
def rel.comp {α β γ : Type*} : set (α × β) → set (β × γ) → set (α × γ) := λ R S, {p|∃ b : β, prod.mk p.1 b ∈ R ∧ prod.mk b p.2 ∈ S}
instance : has_inv (set (α × α)) := ⟨λ R, {p| prod.mk p.2 p... |
6237dd307c6fc8d3cc8d75cab36beb6848d02f3f | 856e2e1615a12f95b551ed48fa5b03b245abba44 | /src/field_theory/minimal_polynomial.lean | 96830cda75795c54ef940b94f866b7646f94140f | [
"Apache-2.0"
] | permissive | pimsp/mathlib | 8b77e1ccfab21703ba8fbe65988c7de7765aa0e5 | 913318ca9d6979686996e8d9b5ebf7e74aae1c63 | refs/heads/master | 1,669,812,465,182 | 1,597,133,610,000 | 1,597,133,610,000 | 281,890,685 | 1 | 0 | null | 1,595,491,577,000 | 1,595,491,576,000 | null | UTF-8 | Lean | false | false | 8,777 | lean | /-
Copyright (c) 2019 Chris Hughes. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Chris Hughes, Johan Commelin
-/
import ring_theory.integral_closure
import data.polynomial.field_division
/-!
# Minimal polynomials
This file defines the minimal polynomial of an eleme... |
ac920924f1bf98873393f18beebd3d2eb76c9e3e | d406927ab5617694ec9ea7001f101b7c9e3d9702 | /src/algebra/homology/augment.lean | 6e560d40863e634b95b53bfe48a4246355266971 | [
"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,948 | lean | /-
Copyright (c) 2021 Scott Morrison. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Scott Morrison
-/
import algebra.homology.single
/-!
# Augmentation and truncation of `ℕ`-indexed (co)chain complexes.
-/
noncomputable theory
open category_theory
open category_the... |
2942187edb5566cf261cf82e3112de98f7340a64 | 9dc8cecdf3c4634764a18254e94d43da07142918 | /src/combinatorics/simple_graph/basic.lean | f3c745efcdc0262677c9f95da59b2b9e19ab4271 | [
"Apache-2.0"
] | permissive | jcommelin/mathlib | d8456447c36c176e14d96d9e76f39841f69d2d9b | ee8279351a2e434c2852345c51b728d22af5a156 | refs/heads/master | 1,664,782,136,488 | 1,663,638,983,000 | 1,663,638,983,000 | 132,563,656 | 0 | 0 | Apache-2.0 | 1,663,599,929,000 | 1,525,760,539,000 | Lean | UTF-8 | Lean | false | false | 48,997 | lean | /-
Copyright (c) 2020 Aaron Anderson, Jalex Stark, Kyle Miller. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Aaron Anderson, Jalex Stark, Kyle Miller, Alena Gusakov, Hunter Monroe
-/
import data.rel
import data.set.finite
import data.sym.sym2
/-!
# Simple graphs
Th... |
1cdf6a40a9ea4badcd06ed7e504dfde6620d7e90 | c777c32c8e484e195053731103c5e52af26a25d1 | /src/ring_theory/dedekind_domain/ideal.lean | 53da5873c2207faada579cc3f351040d7b87edc4 | [
"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 | 66,164 | lean | /-
Copyright (c) 2020 Kenji Nakagawa. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Kenji Nakagawa, Anne Baanen, Filippo A. E. Nuccio
-/
import algebra.algebra.subalgebra.pointwise
import algebraic_geometry.prime_spectrum.maximal
import algebraic_geometry.prime_spectr... |
1282f6e5edb8a6036e5941b9ef5cbdb46da339d1 | d9d511f37a523cd7659d6f573f990e2a0af93c6f | /src/linear_algebra/special_linear_group.lean | 432d781d60195e5111dcc5a7e007fac7f95966ac | [
"Apache-2.0"
] | permissive | hikari0108/mathlib | b7ea2b7350497ab1a0b87a09d093ecc025a50dfa | a9e7d333b0cfd45f13a20f7b96b7d52e19fa2901 | refs/heads/master | 1,690,483,608,260 | 1,631,541,580,000 | 1,631,541,580,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 7,060 | lean | /-
Copyright (c) 2020 Anne Baanen. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Anne Baanen
The Special Linear group $SL(n, R)$
-/
import linear_algebra.matrix.nonsingular_inverse
import linear_algebra.matrix.to_lin
/-!
# The Special Linear group $SL(n, R)$
This f... |
0af2174fb0cea565733b6767af2e255eb096ea75 | 4727251e0cd73359b15b664c3170e5d754078599 | /archive/imo/imo2013_q1.lean | 0b6b4680cc77760b24a4d1b94a774b836471bb92 | [
"Apache-2.0"
] | permissive | Vierkantor/mathlib | 0ea59ac32a3a43c93c44d70f441c4ee810ccceca | 83bc3b9ce9b13910b57bda6b56222495ebd31c2f | refs/heads/master | 1,658,323,012,449 | 1,652,256,003,000 | 1,652,256,003,000 | 209,296,341 | 0 | 1 | Apache-2.0 | 1,568,807,655,000 | 1,568,807,655,000 | null | UTF-8 | Lean | false | false | 4,266 | lean | /-
Copyright (c) 2021 David Renshaw. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: David Renshaw
-/
import data.pnat.basic
import data.nat.parity
import algebra.big_operators.pi
import tactic.ring
import tactic.field_simp
/-!
# IMO 2013 Q1
Prove that for any pair o... |
788b07b0cc6a594533bc6640e7eca4a555d8c8fa | de7b3dbc03c2200899ec842ca1e7cba570a04fa1 | /src/sort.lean | 91db444e339498fe55222864aa81f2e3c38d0740 | [] | no_license | robertylewis/relevance_filter | 4c48a0e02bbeef857f9c67b0f7dc8f3acd5b906a | d11544e08c6d3569410e312baf149412b168ebb4 | refs/heads/master | 1,670,019,263,018 | 1,597,851,640,000 | 1,597,851,640,000 | 105,209,556 | 0 | 1 | null | null | null | null | UTF-8 | Lean | false | false | 2,722 | lean | /-
Sorting on arrays.
-/
section quicksort
variables {α : Type} [inhabited α]
(op : α → α → bool)
local infix `<` := op
variable [has_to_format α]
meta def swap {n : ℕ} (A : array n α) (i j : ℕ) : array n α:=
let tmp_j := A.read' j,
tmp_i := A.read' i in
(A.write' j tmp_i).write' i tmp_j
m... |
b9f2ca56d8ba21a52af2df5b8e73346b0c7d5201 | 842b7df4a999c5c50bbd215b8617dd705e43c2e1 | /nat_num_game/src/Advanced_Proposition_World/adv_prop_wrld5.lean | 11b0b3187fb2f47a3e3c5501d3b8e45165107280 | [] | 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 | 140 | lean | lemma iff_trans (P Q R : Prop) : (P ↔ Q) → (Q ↔ R) → (P ↔ R) :=
begin
intro fpq,
intro fqr,
rw fpq,
exact fqr,
end |
da10eeac8131ac7c72547260b79ba7e3898dccd6 | 8cae430f0a71442d02dbb1cbb14073b31048e4b0 | /src/category_theory/limits/shapes/images.lean | f470cbf7092770bbf2a2c1deece56c6504949ad7 | [
"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 | 31,631 | 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.pullbacks
import category_theory.limits.shapes.strong_epi
/-!
# C... |
5c32686a37715db6ade80de85758e8b18317a985 | 3dc4623269159d02a444fe898d33e8c7e7e9461b | /.github/workflows/geo/src/locally_cartesian_closed.lean | f643eb645a0e7a3b6e16a7e2f7a0cd92dc3c5422 | [] | no_license | Or7ando/lean | cc003e6c41048eae7c34aa6bada51c9e9add9e66 | d41169cf4e416a0d42092fb6bdc14131cee9dd15 | refs/heads/master | 1,650,600,589,722 | 1,587,262,906,000 | 1,587,262,906,000 | 255,387,160 | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 13,368 | lean | import category_theory.comma
import category_theory.adjunction.basic
import category_theory.limits.shapes
import category_theory.epi_mono
import cartesian_closed
import pullbacks
import comma
import over
import to_mathlib
/-!
# Properties of the over category.
We say `C` is locally cartesian closed if it has all finit... |
b3f7ab04c4702d0a311acada06e1d51fe481f211 | 618003631150032a5676f229d13a079ac875ff77 | /src/data/vector2.lean | 9677b1f9bca35a03c788897d9bcc5bedc853aa1a | [
"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 | 10,695 | lean | /-
Copyright (c) 2018 Mario Carneiro. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Mario Carneiro
Additional theorems about the `vector` type.
-/
import tactic.tauto
import data.vector
import data.list.nodup
import data.list.of_fn
import control.applicative
univers... |
b033e84ff49066c8e6380c0ff8bc95c3328d2aec | 78630e908e9624a892e24ebdd21260720d29cf55 | /src/logic_first_order/fol_13.lean | 611b6d6c23d6b2514fc5bd3b5a6f3058f50b3ddf | [
"CC0-1.0"
] | permissive | tomasz-lisowski/lean-logic-examples | 84e612466776be0a16c23a0439ff8ef6114ddbe1 | 2b2ccd467b49c3989bf6c92ec0358a8d6ee68c5d | refs/heads/master | 1,683,334,199,431 | 1,621,938,305,000 | 1,621,938,305,000 | 365,041,573 | 1 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 324 | lean | namespace fol_13
variable A : Type
variable P : A → Prop
variable c : A
include c
theorem fol_13 : (∀ x y, P x ∨ P y) → ∃ x, P x :=
assume h1: ∀ x y, P x ∨ P y,
have h2: P c ∨ P c, from h1 c c,
have h3: P c, from or.elim h2
(assume h4: P c,
h4)
(assume h5: P c,
h5),
exists.intro c h3
end fol_13 |
a39c356056c3342dba0a7895a927fa278d3300ea | 856e2e1615a12f95b551ed48fa5b03b245abba44 | /src/tactic/core.lean | e41c769beed866ac90bb63d81eca47102e88cafd | [
"Apache-2.0"
] | permissive | pimsp/mathlib | 8b77e1ccfab21703ba8fbe65988c7de7765aa0e5 | 913318ca9d6979686996e8d9b5ebf7e74aae1c63 | refs/heads/master | 1,669,812,465,182 | 1,597,133,610,000 | 1,597,133,610,000 | 281,890,685 | 1 | 0 | null | 1,595,491,577,000 | 1,595,491,576,000 | null | UTF-8 | Lean | false | false | 84,618 | lean | /-
Copyright (c) 2018 Mario Carneiro. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Mario Carneiro, Simon Hudon, Scott Morrison, Keeley Hoek
-/
import data.dlist.basic
import control.basic
import meta.expr
import meta.rb_map
import data.bool
import tactic.lean_core_do... |
f4041f3b7bde2202c4174ae5602340a64add6e3e | 618003631150032a5676f229d13a079ac875ff77 | /src/data/nat/gcd.lean | e77b91c98fa6c17b239ab20a82e65135879e13ec | [
"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 | 15,703 | 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
Definitions and properties of gcd, lcm, and coprime.
-/
import data.nat.basic
namespace nat
/- gcd -/
theorem gcd_dvd (m n : ℕ) : (gcd m n ∣ m) ∧ (g... |
26e84fdc668dfce2f6ebfab4f43ab09f0e1105bd | 437dc96105f48409c3981d46fb48e57c9ac3a3e4 | /src/set_theory/cofinality.lean | 807b570d1064b42824de21cee0d18244af9b73b2 | [
"Apache-2.0"
] | permissive | dan-c-k/mathlib | 08efec79bd7481ee6da9cc44c24a653bff4fbe0d | 96efc220f6225bc7a5ed8349900391a33a38cc56 | refs/heads/master | 1,658,082,847,093 | 1,589,013,201,000 | 1,589,013,201,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 22,062 | lean | /-
Copyright (c) 2017 Mario Carneiro. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Author: Mario Carneiro
Cofinality on ordinals, regular cardinals.
-/
import set_theory.ordinal
noncomputable theory
open function cardinal set
open_locale classical
universes u v w
variables... |
8393ff8579b03bd61bf5ca5d1b8bebf8ffe7f2e2 | 624f6f2ae8b3b1adc5f8f67a365c51d5126be45a | /stage0/src/Init/Lean/Data/Occurrences.lean | dc111cf5d7c24d08f726441cf941813353149aeb | [
"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 | 818 | lean | /-
Copyright (c) 2020 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Author: Leonardo de Moura
-/
prelude
import Init.Data.Nat
namespace Lean
inductive Occurrences
| all
| pos (idxs : List Nat)
| neg (idxs : List Nat)
namespace Occurrences
instance : ... |
3694d0e6eb3bb3eb829324044ab6b323b265ecd1 | 94637389e03c919023691dcd05bd4411b1034aa5 | /src/inClassNotes/predicate_logic/not.lean | be86ba204b04bbe7c9968f8bb0b38c3fd8803210 | [] | no_license | kevinsullivan/complogic-s21 | 7c4eef2105abad899e46502270d9829d913e8afc | 99039501b770248c8ceb39890be5dfe129dc1082 | refs/heads/master | 1,682,985,669,944 | 1,621,126,241,000 | 1,621,126,241,000 | 335,706,272 | 0 | 38 | null | 1,618,325,669,000 | 1,612,374,118,000 | Lean | UTF-8 | Lean | false | false | 1,613 | lean | /-
If P is a proposition, then so is ¬P.
We judge ¬P to be true when P is false:
when there is no proof of it at all.
-/
#check not
/-
def not (a : Prop) := a → false
prefix `¬` := not
-/
lemma not_false' : ¬ false := λ f, f
/-
For any proposition, P, to prove ¬P,
assume that P is true and show that
that leads to ... |
92c3692251bbad7f393cc4a294db3753afc0d5a9 | 367134ba5a65885e863bdc4507601606690974c1 | /src/algebra/group/to_additive.lean | 95611685760866af24584a6f19fb84a7ec7b432d | [
"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 | 12,774 | lean | /-
Copyright (c) 2017 Mario Carneiro. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Mario Carneiro, Yury Kudryashov.
-/
import tactic.transform_decl
import tactic.algebra
/-!
# Transport multiplicative to additive
This file defines an attribute `to_additive` that ca... |
9bd245a768eaaae757273fe1bffd064d841d8d80 | 69d4931b605e11ca61881fc4f66db50a0a875e39 | /src/representation_theory/maschke.lean | db5e4e9c6bb4f06d286af984916a0d75861641b6 | [
"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 | 6,330 | lean | /-
Copyright (c) 2020 Scott Morrison. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Scott Morrison
-/
import algebra.monoid_algebra
import algebra.char_p.invertible
import linear_algebra.basis
import ring_theory.simple_module
/-!
# Maschke's theorem
We prove Maschke... |
e29684dc603e9e263ae3e5b3d4006993eafa06d1 | d0c6b2ba2af981e9ab0a98f6e169262caad4b9b9 | /stage0/src/Lean/Elab/Term.lean | b0d2ce08a33dffb78e15d4eb0d3702b5287dd459 | [
"Apache-2.0"
] | permissive | fizruk/lean4 | 953b7dcd76e78c17a0743a2c1a918394ab64bbc0 | 545ed50f83c570f772ade4edbe7d38a078cbd761 | refs/heads/master | 1,677,655,987,815 | 1,612,393,885,000 | 1,612,393,885,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 63,270 | 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.ResolveName
import Lean.Util.Sorry
import Lean.Structure
import Lean.Meta.ExprDefEq
import Lean.Meta.AppBuilder
import Lean.Meta.SynthInstance
i... |
6623717d879c2dc8d3317f705762c2f9e2a02bcd | cf39355caa609c0f33405126beee2739aa3cb77e | /tests/lean/run/smt_rsimp.lean | 09d4f39c58d7c171998d854f316dee6b8d0e03a2 | [
"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 | 238 | lean | constant p {α} : α → α → Prop
axiom pax {α} : ∀ n : α, p n n
open tactic
example (s t : list nat) (h : t = s) : p (s ++ []) ([] ++ t) :=
begin [smt]
add_simp_lemmas,
ematch,
rsimp,
guard_target p s s,
apply pax
end
|
a17163dff046f6665200bd159dcdf3e4353d5f7d | 853df553b1d6ca524e3f0a79aedd32dde5d27ec3 | /src/topology/basic.lean | 38ded78952bddc348daf9428304da71bd8a2e96c | [
"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 | 44,319 | 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, Jeremy Avigad
-/
import order.filter.ultrafilter
import order.filter.partial
import order.filter.bases
/-!
# Basic theory of topological spaces.
The m... |
e37fe0a625ada1c2ca4f9b394a17a0791cafaefe | d9d511f37a523cd7659d6f573f990e2a0af93c6f | /src/data/fintype/basic.lean | 8aca8535264d6042e4602e04d9c1d69516371180 | [
"Apache-2.0"
] | permissive | hikari0108/mathlib | b7ea2b7350497ab1a0b87a09d093ecc025a50dfa | a9e7d333b0cfd45f13a20f7b96b7d52e19fa2901 | refs/heads/master | 1,690,483,608,260 | 1,631,541,580,000 | 1,631,541,580,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 76,536 | 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.array.lemmas
import data.finset.pi
import data.finset.powerset
import data.sym.basic
import data.ulift
import group_theory.perm.basic
import order.well_fo... |
e36c41e766ce44afa0cda33b646033e706a3b674 | fa02ed5a3c9c0adee3c26887a16855e7841c668b | /src/data/num/bitwise.lean | 18ede5680c1012d608a472313e7c4e2057f8abc5 | [
"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 | 10,965 | lean | /-
Copyright (c) 2014 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Mario Carneiro
-/
import data.num.basic
import data.bitvec.core
/-!
# Bitwise operations using binary representation of integers
## Definitions
* bitwise operations for `pos_... |
e4283d0aedd0f2295c94ff8a56b411cfa7725525 | d406927ab5617694ec9ea7001f101b7c9e3d9702 | /src/category_theory/extensive.lean | 1c4e5ba13f87cb796a473bf8dd17ce3dd9c36715 | [
"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 | 25,209 | lean | /-
Copyright (c) 2022 Andrew Yang. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Andrew Yang
-/
import category_theory.limits.shapes.comm_sq
import category_theory.limits.shapes.strict_initial
import category_theory.limits.shapes.types
import topology.category.Top.lim... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.