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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
901d627bcb173f79a097bc2c39735109d4fa4ff1 | 9dd3f3912f7321eb58ee9aa8f21778ad6221f87c | /library/init/default.lean | ec86e1ba394168793f7433d1caad747266954f3c | [
"Apache-2.0"
] | permissive | bre7k30/lean | de893411bcfa7b3c5572e61b9e1c52951b310aa4 | 5a924699d076dab1bd5af23a8f910b433e598d7a | refs/heads/master | 1,610,900,145,817 | 1,488,006,845,000 | 1,488,006,845,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 567 | lean | /-
Copyright (c) 2014 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Leonardo de Moura
-/
prelude
import init.core init.logic init.category init.data.basic
import init.propext init.cc_lemmas init.funext init.category.combinators init.function ini... |
5873c306ad7222588e571966e59ac1c9900292ed | 86f6f4f8d827a196a32bfc646234b73328aeb306 | /examples/logic/unnamed_2430.lean | 516b3caa82c3278e012aa579ae6af0c946ce67d7 | [] | 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 | 686 | lean | import data.real.basic
def converges_to (s : ℕ → ℝ) (a : ℝ) :=
∀ ε > 0, ∃ N, ∀ n ≥ N, abs (s n - a) < ε
variables {s t : ℕ → ℝ} {a : ℝ}
theorem exists_abs_le_of_converges_to (cs : converges_to s a) :
∃ N b, ∀ n, N ≤ n → abs (s n) < b :=
sorry
-- BEGIN
lemma aux (cs : converges_to s a) (ct : converges_to t 0) :
... |
bd1ab17537e3bebe9ff9365fa5215cb5619c3133 | c8d830ce6c7de4840cf0c892d8b58e7e8df97e37 | /src/common_meta.lean | eef54827d3e5412c443f600938806c43fd18947e | [] | no_license | loganrjmurphy/lean-strategies | 4b8dd54771bb421c929a8bcb93a528ce6c1a70f1 | 020e2a65dc2ab475696dfea5ad8935a0a4085918 | refs/heads/main | 1,682,732,168,860 | 1,614,820,630,000 | 1,614,820,630,000 | 278,458,841 | 3 | 0 | null | 1,613,755,728,000 | 1,594,324,763,000 | Lean | UTF-8 | Lean | false | false | 6,962 | lean | import system.io tactic justification LTS property_catalogue.LTL.patterns
open io list lean.parser tactic interactive.types
open lean.parser (ident)
variable {α : Type}
meta structure PROOF_STATE (α : Type) :=
(init_goal : expr := default expr)
(input : property.input α := default (property.input α))
(input_string ... |
bf5db9f867a1f2a618b7b47417ed7c2bde7790c3 | 853df553b1d6ca524e3f0a79aedd32dde5d27ec3 | /src/geometry/manifold/mfderiv.lean | 5c960d714bba7be4c1ee09caece77c4b2b6b6cc3 | [
"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 | 64,899 | 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 geometry.manifold.basic_smooth_bundle
/-!
# The derivative of functions between smooth manifolds
Let `M` and `M'` be two smooth manifolds with corners ... |
f200e49142fc97a10f2ec359c8771e80ee894a39 | 97c8e5d8aca4afeebb5b335f26a492c53680efc8 | /ground_zero/cubical/path.lean | 3b6a72099b16d297eac57e6339278424b4e3a31c | [] | no_license | jfrancese/lean | cf32f0d8d5520b6f0e9d3987deb95841c553c53c | 06e7efaecce4093d97fb5ecc75479df2ef1dbbdb | refs/heads/master | 1,587,915,151,351 | 1,551,012,140,000 | 1,551,012,140,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 5,039 | lean | import ground_zero.cubical.cubes
open ground_zero.cubical ground_zero.types ground_zero.HITs
open ground_zero.HITs.interval (i₀ i₁ seg)
/-
* Coercions.
* Basic path lemmas: refl, symm, cong, funext...
* Connections.
* Singleton contractibility, J elimination rule.
* PathP.
-/
namespace ground_zero.cubical
... |
88ed768ae10713610955fc168f7c8a55933469c4 | 9028d228ac200bbefe3a711342514dd4e4458bff | /src/linear_algebra/affine_space/basic.lean | df9454ede56490ac5fce0f4230afc941b21c93c8 | [
"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 | 58,380 | 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 algebra.add_torsor
import linear_algebra.tensor_product
noncomputable theory
open_locale big_operators
open_locale classical
/-!
# Affine spaces
This file defin... |
e2eb93279c392ecb8ed32c014cfd4223ddd7a8ab | 4fa161becb8ce7378a709f5992a594764699e268 | /archive/imo1988_q6.lean | 55853c20b6f1e7b24da16ee60507597d71d17c42 | [
"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 | 13,812 | lean | /-
Copyright (c) 2019 Johan Commelin. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Johan Commelin
-/
import data.rat.basic
import tactic
/-!
# IMO1988 Q6 and constant descent Vieta jumping
Question 6 of IMO1988 is somewhat (in)famous. Several expert problem solver... |
fbf5c0cf12fc8871b9ec9c72e28b46a47c11d3cc | a45212b1526d532e6e83c44ddca6a05795113ddc | /src/ring_theory/ideals.lean | a91ee69eeb72b7292df6c4228f1e81c4fa0e3d90 | [
"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 | 14,816 | lean | /-
Copyright (c) 2018 Kenny Lau. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Kenny Lau, Chris Hughes, Mario Carneiro
-/
import algebra.associated linear_algebra.basic order.zorn
universes u v
variables {α : Type u} {β : Type v} [comm_ring α] {a b : α}
open set func... |
473277ba40f533bd6af5bbf8ab788714749197e5 | d406927ab5617694ec9ea7001f101b7c9e3d9702 | /src/topology/metric_space/lipschitz.lean | 724a89cbada3361cfdcf5ad2e430f1eb010f1754 | [
"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 | 29,136 | 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 data.set.intervals.proj_Icc
import topology.algebra.order.field
import... |
f93f76c43b1e5302ec011c7713256951abeee09c | 4d2583807a5ac6caaffd3d7a5f646d61ca85d532 | /src/tactic/interactive_expr.lean | e4fd02b995688fe2ab6c0e6727eb3120093342e1 | [
"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 | 17,544 | lean | /-
Copyright (c) 2020 E.W.Ayers. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: E.W.Ayers
-/
/-!
# Widgets used for tactic state and term-mode goal display
The vscode extension supports the display of interactive widgets.
Default implementation of these widgets are i... |
85a169af7dbe4c9a9937ca51bcc7a7de99d93f0c | 437dc96105f48409c3981d46fb48e57c9ac3a3e4 | /src/group_theory/order_of_element.lean | ed564113349b50a5391d88d90ad28660f5bb9aa9 | [
"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 | 23,808 | lean | /-
Copyright (c) 2018 Johannes Hölzl. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Johannes Hölzl
-/
import group_theory.coset
import data.nat.totient
import data.set.finite
open function
variables {α : Type*} {s : set α} {a a₁ a₂ b c: α}
-- TODO this lemma isn't u... |
feeec80214b340edc269f5f71f2a9fa17f23c32a | 4727251e0cd73359b15b664c3170e5d754078599 | /src/computability/halting.lean | 0f0f670810b6666220055c8ed12ebc2cbf03ef66 | [
"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 | 15,250 | 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 computability.partrec_code
/-!
# Computability theory and the halting problem
A universal partial recursive function, Rice's theorem, and the halting problem... |
1a8c930704ac4536b2d2de9c054dfae98bb7b012 | 8cae430f0a71442d02dbb1cbb14073b31048e4b0 | /src/ring_theory/congruence.lean | 865204133e71c651e1439854065b7614570d1c05 | [
"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 | 11,889 | lean | /-
Copyright (c) 2022 Eric Wieser. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Eric Wieser
-/
import algebra.group_ring_action.basic
import algebra.hom.ring
import algebra.ring.inj_surj
import group_theory.congruence
/-!
# Congruence relations on rings
> THIS FIL... |
a3c0faadbf78c8a12de3199be3e934419ccc81e4 | 8cae430f0a71442d02dbb1cbb14073b31048e4b0 | /src/category_theory/groupoid/vertex_group.lean | d4bbadc7c56150077d3f1ef4f3c2b2171498098e | [
"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 | 2,811 | lean | /-
Copyright (c) 2022 Rémi Bottinelli. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Rémi Bottinelli
-/
import category_theory.groupoid
import category_theory.path_category
import algebra.group.defs
import algebra.hom.group
import algebra.hom.equiv.basic
import combin... |
935eb12b73b00006dd1fd1c7ca54e813dc3f1bb1 | 8cae430f0a71442d02dbb1cbb14073b31048e4b0 | /src/topology/stone_cech.lean | d8f7cc15fb3bcfdecaa150c19459ad058086de75 | [
"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,180 | lean | /-
Copyright (c) 2018 Reid Barton. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Reid Barton
-/
import topology.bases
import topology.dense_embedding
/-! # Stone-Čech compactification
> THIS FILE IS SYNCHRONIZED WITH MATHLIB4.
> Any changes to this file require a co... |
b7608e7dd6caf0376f48a26bad6fe69b247e0938 | 4bcaca5dc83d49803f72b7b5920b75b6e7d9de2d | /src/Lean/Parser/Basic.lean | 677ef83e183e17e3e686399c046338d31d3b5fec | [
"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 | 76,443 | lean | /-
Copyright (c) 2019 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Leonardo de Moura, Sebastian Ullrich
-/
import Lean.Data.Trie
import Lean.Data.Position
import Lean.Syntax
import Lean.ToExpr
import Lean.Environment
import Lean.Attributes
impo... |
7dc2e0c940d50ad7a2281d43a29073c18e625236 | fa02ed5a3c9c0adee3c26887a16855e7841c668b | /src/algebra/regular.lean | 63e4ed4ce88363b4b7f1080c21db430207959c69 | [
"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 | 13,157 | lean | /-
Copyright (c) 2021 Damiano Testa. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Damiano Testa
-/
import algebra.group
import algebra.group_power.basic
import algebra.iterate_hom
/-!
# Regular elements
We introduce left-regular, right-regular and regular elements.... |
54a3b17fc7d1d0848b098387e8448d51dbae95ce | ca1ad81c8733787aba30f7a8d63f418508e12812 | /clfrags/src/hilbert/wr/or_bot.lean | 27076058f0be3dffacd4080a124e5c971dfbaae5 | [] | no_license | greati/hilbert-classical-fragments | 5cdbe07851e979c8a03c621a5efd4d24bbfa333a | 18a21ac6b2e890060eb4ae65752fc0245394d226 | refs/heads/master | 1,591,973,117,184 | 1,573,822,710,000 | 1,573,822,710,000 | 194,334,439 | 2 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 240 | lean | import core.connectives
namespace clfrags
namespace hilbert
namespace wr
namespace or_bot
axiom db₁ : Π {a : Prop}, or a bot → a
end or_bot
end wr
end hilbert
end clfrags
|
d1254676efc68d5e1287cf3e97958fd611271cd3 | ee8cdbabf07f77e7be63a449b8483ce308d37218 | /lean/src/valid/mathd-algebra-116.lean | aea55aa2e389bf75f00f394586f1901ae518b842 | [
"MIT",
"Apache-2.0"
] | permissive | zeta1999/miniF2F | 6d66c75d1c18152e224d07d5eed57624f731d4b7 | c1ba9629559c5273c92ec226894baa0c1ce27861 | refs/heads/main | 1,681,897,460,642 | 1,620,646,361,000 | 1,620,646,361,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 508 | lean | /-
Copyright (c) 2021 OpenAI. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Kunhao Zheng
-/
import tactic.gptf
import data.real.basic
import data.real.sqrt
example (k x: ℝ) (h₀ : x = (13 - real.sqrt 131) / 4) (h₁ : 2 * x ^ 2 - 13 * x + k = 0): k = 19/4 :=
begin
rw ... |
94601f19fc41e44b1e018909a127c3c1d5360b15 | f3bade00efffc20399e2ac0a6b2e7726e8f9920e | /examples/lean/setoid.lean | 928a24b44d436907e9bdeb9079890200f5b0ee80 | [
"Apache-2.0"
] | permissive | leanparikshit/lean | 466542d4e183361d28404b3a91412f2df2ead7e2 | 01eda46b69a87c8fe0eb764328eb1f526a587997 | refs/heads/master | 1,610,970,145,234 | 1,400,030,607,000 | 1,400,030,607,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 3,328 | lean | -- Setoid example/test
import macros
definition reflexive {A : (Type U)} (r : A → A → Bool) := ∀ x, r x x
definition symmetric {A : (Type U)} (r : A → A → Bool) := ∀ x y, r x y → r y x
definition transitive {A : (Type U)} (r : A → A → Bool) := ∀ x y z, r x y → r y z → r x z
-- We need to create a universe smaller tha... |
7e349a8615e1246fe8f4f82f002de4019a28f0f6 | 32025d5c2d6e33ad3b6dd8a3c91e1e838066a7f7 | /tests/lean/run/termparsertest1.lean | 3ad94c1027d10641465cae82ef886f1c0db285b8 | [
"Apache-2.0"
] | permissive | walterhu1015/lean4 | b2c71b688975177402758924eaa513475ed6ce72 | 2214d81e84646a905d0b20b032c89caf89c737ad | refs/heads/master | 1,671,342,096,906 | 1,599,695,985,000 | 1,599,695,985,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 2,680 | lean | import Lean.Parser.Term
open Lean
open Lean.Parser
def testParser (input : String) : IO Unit :=
do
env ← mkEmptyEnvironment;
stx ← IO.ofExcept $ runParserCategory env `term input "<input>";
IO.println stx
def test (is : List String) : IO Unit :=
is.forM $ fun input => do
IO.println input;
testParser input
def te... |
f2f331c6ada997e2074e7d686c63b26829b97d0a | 63abd62053d479eae5abf4951554e1064a4c45b4 | /src/order/filter/basic.lean | 49b4fc7c235c10626fa38a800fe2d02fd9768e0f | [
"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 | 99,231 | 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, Jeremy Avigad
-/
import order.zorn
import order.copy
import data.set.finite
import tactic.monotonicity
/-!
# Theory of filters on sets
## Main definitions
* `filter`... |
3bb1f9452c2ec167a92af65d9703b7174c3c6473 | 8e6cad62ec62c6c348e5faaa3c3f2079012bdd69 | /src/measure_theory/lp_space.lean | dd734709fb3602b1f663b5fff0cf69747fc07430 | [
"Apache-2.0"
] | permissive | benjamindavidson/mathlib | 8cc81c865aa8e7cf4462245f58d35ae9a56b150d | fad44b9f670670d87c8e25ff9cdf63af87ad731e | refs/heads/master | 1,679,545,578,362 | 1,615,343,014,000 | 1,615,343,014,000 | 312,926,983 | 0 | 0 | Apache-2.0 | 1,615,360,301,000 | 1,605,399,418,000 | Lean | UTF-8 | Lean | false | false | 49,474 | lean | /-
Copyright (c) 2020 Rémy Degenne. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Rémy Degenne, Sébastien Gouëzel
-/
import measure_theory.ess_sup
import measure_theory.ae_eq_fun
import analysis.mean_inequalities
/-!
# ℒp space and Lp space
This file describes prope... |
2391b4206349cdba3dfb16954651f37f0db58300 | 7cef822f3b952965621309e88eadf618da0c8ae9 | /src/data/set/function.lean | 30f445019479063e2dffb62a2c3820ac599ccf1c | [
"Apache-2.0"
] | permissive | rmitta/mathlib | 8d90aee30b4db2b013e01f62c33f297d7e64a43d | 883d974b608845bad30ae19e27e33c285200bf84 | refs/heads/master | 1,585,776,832,544 | 1,576,874,096,000 | 1,576,874,096,000 | 153,663,165 | 0 | 2 | Apache-2.0 | 1,544,806,490,000 | 1,539,884,365,000 | Lean | UTF-8 | Lean | false | false | 12,408 | lean | /-
Copyright (c) 2014 Jeremy Avigad. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Author: Jeremy Avigad, Andrew Zipperer, Haitao Zhang, Minchao Wu
Functions over sets.
-/
import data.set.basic logic.function
open function
namespace set
universes u v w x
variables {α : Type ... |
55c184e181c9c95fd03e177a829b3d931034b509 | 9c2e8d73b5c5932ceb1333265f17febc6a2f0a39 | /src/apps/topological_semantics.lean | 943b020c01cf2fa6a5aa7269b7c44d529adcb052 | [
"MIT"
] | permissive | minchaowu/ModalTab | 2150392108dfdcaffc620ff280a8b55fe13c187f | 9bb0bf17faf0554d907ef7bdd639648742889178 | refs/heads/master | 1,626,266,863,244 | 1,592,056,874,000 | 1,592,056,874,000 | 153,314,364 | 12 | 1 | null | null | null | null | UTF-8 | Lean | false | false | 1,051 | lean | import defs topology.basic
open nnf
structure topo_model (α : Type) extends topological_space α :=
(v : ℕ → set α)
(is_alex : ∀s, (∀t∈s, is_open t) → is_open (⋂₀ s))
@[simp] def topo_force {α : Type} (tm : topo_model α) : α → nnf → Prop
| s (var n) := tm.v n s
| s (neg n) := ¬ tm.v n s
| s (and φ ψ) := topo_f... |
a7a5a973c194d82a9e003b4d175b200ddbd85fa2 | e1440579fb0723caf9edf1ed07aee74bbf4f5ce7 | /lean-experiments/stumps-learnable/src/stump/setup_measurable.lean | 952b988dd701ae7a0ae9fe5addc830595e3ccaf0 | [
"Apache-2.0"
] | permissive | palmskog/coq-proba | 1ecc5b7f399894ea14d6094a31a063280a122099 | f73e2780871e2a3dd83b7ce9d3aed19f499f07e5 | refs/heads/master | 1,599,620,504,720 | 1,572,960,008,000 | 1,572,960,008,000 | 221,326,479 | 0 | 0 | Apache-2.0 | 1,573,598,769,000 | 1,573,598,768,000 | null | UTF-8 | Lean | false | false | 11,013 | lean | /-
Copyright © 2019, Oracle and/or its affiliates. All rights reserved.
-/
import .setup_definition .setup_properties
open set
open measure_theory
open probability_measure
open lattice
local attribute [instance] classical.prop_decidable
namespace stump
variables (μ: probability_measure ℍ) (target: ℍ)
lemma is_me... |
990c925b50ff711ffdc3b26283daef793fc60e74 | a4673261e60b025e2c8c825dfa4ab9108246c32e | /tests/lean/run/elab_cmd.lean | 76a2754d5f1a5bb2e4f53b1d858554c9641a5963 | [
"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 | 648 | lean | import Lean
open Lean.Elab.Term
open Lean.Elab.Command
elab "∃'" b:term "," P:term : term => do
let ex ← `(Exists (fun $b => $P));
elabTerm ex none
elab "#check2" b:term : command => do
let cmd ← `(#check $b #check $b);
elabCommand cmd
#check ∃' x, x > 0
#check ∃' (x : UInt32), x > 0
#check2 10
elab "try... |
f0e961ca1e6f41b0cc6f41dba9688c81491bd30e | 9dc8cecdf3c4634764a18254e94d43da07142918 | /src/data/nat/choose/sum.lean | c22b35b937e7c65009024b7a6956c26a5fc88ec7 | [
"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,859 | lean | /-
Copyright (c) 2018 Chris Hughes. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Chris Hughes, Patrick Stevens
-/
import data.nat.choose.basic
import tactic.linarith
import algebra.big_operators.ring
import algebra.big_operators.intervals
import algebra.big_operators... |
487bc6e35e84aaa0375cfd7efdb553d62bc23d72 | 6432ea7a083ff6ba21ea17af9ee47b9c371760f7 | /tests/lean/run/newfrontend1.lean | f7f7279c1fa044e6d7a97619eb9d8f1ae428f1d6 | [
"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 | 8,812 | lean | def x := 1
#check x
variable {α : Type}
def f (a : α) : α :=
a
def tst (xs : List Nat) : Nat :=
xs.foldl (init := 10) (· + ·)
#check tst [1, 2, 3]
#check fun x y : Nat => x + y
#check tst
#check (fun stx => if True then let e := stx; Pure.pure e else Pure.pure stx : Nat → Id Nat)
#check let x : Nat := 1; x
de... |
c48ff1a7b620021b220797081dbb906049857063 | 6dc0c8ce7a76229dd81e73ed4474f15f88a9e294 | /src/Lean/Parser/Command.lean | 7d168337aa9ec0ec04c8029c1f6a4f6b0c51ff04 | [
"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 | 8,110 | lean | /-
Copyright (c) 2019 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Leonardo de Moura, Sebastian Ullrich
-/
import Lean.Parser.Term
import Lean.Parser.Do
namespace Lean
namespace Parser
/--
Syntax quotation for terms and (lists of) commands.... |
e629ae17fe1b47cd61ac77841a3ea5e6b9674afa | b392eb79fb36952401156496daa60628ccb07438 | /MathPort/Translate.lean | 265a37dcdb235c131ce6b4e7e88bcca5ff72ca56 | [
"Apache-2.0"
] | permissive | AurelienSaue/mathportsource | d9eabe74e3ab7774baa6a10a6dc8d4855ff92266 | 1a164e4fff7204c522c1f4ecc5024fd909be3b0b | refs/heads/master | 1,685,214,377,305 | 1,623,621,223,000 | 1,623,621,223,000 | 364,191,042 | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 4,368 | lean | /-
Copyright (c) 2020 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Daniel Selsam
-/
import MathPort.Util
import MathPort.Basic
import MathPort.ActionItem
import MathPort.OldRecursor
import MathPort.Number
import Lean
namespace MathPort
open Le... |
f39920d6a9ddff90b0bc38b0cf547184fe230645 | 2a70b774d16dbdf5a533432ee0ebab6838df0948 | /_target/deps/mathlib/src/data/polynomial/ring_division.lean | 10676ed147e90c2abde2e1dc79c7110b8ca9247d | [
"Apache-2.0"
] | permissive | hjvromen/lewis | 40b035973df7c77ebf927afab7878c76d05ff758 | 105b675f73630f028ad5d890897a51b3c1146fb0 | refs/heads/master | 1,677,944,636,343 | 1,676,555,301,000 | 1,676,555,301,000 | 327,553,599 | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 25,340 | lean | /-
Copyright (c) 2018 Chris Hughes. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Chris Hughes, Johannes Hölzl, Scott Morrison, Jens Wagemaker, Johan Commelin
-/
import data.polynomial.basic
import data.polynomial.div
import data.polynomial.algebra_map
import data.se... |
e37c2e2cdb741db0cac30dd4c8c0f935ea712ac6 | 2c096fdfecf64e46ea7bc6ce5521f142b5926864 | /src/Lean/CoreM.lean | 35c715cf1f03034c14e19fa12e87e74047743b30 | [
"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 | Kha/lean4 | 1005785d2c8797ae266a303968848e5f6ce2fe87 | b99e11346948023cd6c29d248cd8f3e3fb3474cf | refs/heads/master | 1,693,355,498,027 | 1,669,080,461,000 | 1,669,113,138,000 | 184,748,176 | 0 | 0 | Apache-2.0 | 1,665,995,520,000 | 1,556,884,930,000 | Lean | UTF-8 | Lean | false | false | 13,533 | 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.RecDepth
import Lean.Util.Trace
import Lean.Log
import Lean.Eval
import Lean.ResolveName
import Lean.Elab.InfoTree.Types
import Lean.MonadE... |
c307e003a4751a7d9ea257813682c96761f7ca00 | d406927ab5617694ec9ea7001f101b7c9e3d9702 | /src/topology/algebra/module/basic.lean | c05e27069fbd8cb78d346753e9c2e9e6afa801f5 | [
"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 | 92,976 | lean | /-
Copyright (c) 2019 Sébastien Gouëzel. 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, Yury Kudryashov, Frédéric Dupuis,
Heather Macbeth
-/
import topology.algebra.ring
import topology.algebra.mul_action
import topology... |
fcbbc8d849fa6c6af7d2e5b2c44462ab399a3ff9 | 86f6f4f8d827a196a32bfc646234b73328aeb306 | /examples/logic/unnamed_1338.lean | 45ca3d4cfd0f8f9a0cc07dac612b553932d595e0 | [] | 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 | 432 | lean | import data.real.basic
def fn_ub (f : ℝ → ℝ) (a : ℝ) : Prop := ∀ x, f x ≤ a
def fn_has_ub (f : ℝ → ℝ) := ∃ a, fn_ub f a
open_locale classical
variable (f : ℝ → ℝ)
-- BEGIN
example (h : ¬ ∀ a, ∃ x, f x > a) : fn_has_ub f :=
begin
push_neg at h,
exact h
end
example (h : ¬ fn_has_ub f) : ∀ a, ∃ x, f x > a :=
begi... |
d50b15c35d99ccdba2de75afb3582abdcf9edcd9 | 9dd3f3912f7321eb58ee9aa8f21778ad6221f87c | /tests/lean/run/tc_loop.lean | acccff54f62f4fc088b4baa0aee5aff48775cac2 | [
"Apache-2.0"
] | permissive | bre7k30/lean | de893411bcfa7b3c5572e61b9e1c52951b310aa4 | 5a924699d076dab1bd5af23a8f910b433e598d7a | refs/heads/master | 1,610,900,145,817 | 1,488,006,845,000 | 1,488,006,845,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 304 | lean | open tactic
check (do { trace "foo", trace_state } : tactic unit)
axiom Sorry {A : Sort*} : A
check
λ (A : Sort*) (a b c d : A) (H₁ : a = b) (H₂ : c = b) (H₃ : d = c),
have a = c, by do { trace "have-expr...", trace_state, transitivity, assumption, symmetry, assumption },
show a = d, from Sorry
|
6fe33c6f5d716126f193f90320c6418e09886412 | d31b9f832ff922a603f76cf32e0f3aa822640508 | /src/hott/types/pi.lean | eef481e04f00cd2acc57470c73f31b8a5052cb13 | [
"Apache-2.0"
] | permissive | javra/hott3 | 6e7a9e72a991a2fae32e5764982e521dca617b16 | cd51f2ab2aa48c1246a188f9b525b30f76c3d651 | refs/heads/master | 1,585,819,679,148 | 1,531,232,382,000 | 1,536,682,965,000 | 154,294,022 | 0 | 0 | Apache-2.0 | 1,540,284,376,000 | 1,540,284,375,000 | null | UTF-8 | Lean | false | false | 15,038 | lean | /-
Copyright (c) 2014-15 Floris van Doorn. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Author: Floris van Doorn
Partially ported from Coq HoTT
Theorems about pi-types (dependent function spaces)
-/
import .sigma hott.arity hott.cubical.square
universe u
hott_theory
names... |
c31192656a59801e28e066e03f89da0bcb3c6087 | b2e508d02500f1512e1618150413e6be69d9db10 | /src/category_theory/category.lean | bb4b35be50a09a751434635a3b98f8cb09e6190b | [
"Apache-2.0"
] | permissive | callum-sutton/mathlib | c3788f90216e9cd43eeffcb9f8c9f959b3b01771 | afd623825a3ac6bfbcc675a9b023edad3f069e89 | refs/heads/master | 1,591,371,888,053 | 1,560,990,690,000 | 1,560,990,690,000 | 192,476,045 | 0 | 0 | Apache-2.0 | 1,568,941,843,000 | 1,560,837,965,000 | Lean | UTF-8 | Lean | false | false | 6,251 | 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, Johannes Hölzl, Reid Barton
Defines a category, as a typeclass parametrised by the type of objects.
Introduces notations
`X ⟶ Y` for the morphism spa... |
de922724a5a5b5700faf94facdbdd134f1198a04 | d1bbf1801b3dcb214451d48214589f511061da63 | /src/field_theory/separable.lean | a5198d1686198f6dfcd5834df5cefd3f13df74f2 | [
"Apache-2.0"
] | permissive | cheraghchi/mathlib | 5c366f8c4f8e66973b60c37881889da8390cab86 | f29d1c3038422168fbbdb2526abf7c0ff13e86db | refs/heads/master | 1,676,577,831,283 | 1,610,894,638,000 | 1,610,894,638,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 24,931 | lean | /-
Copyright (c) 2020 Kenny Lau. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Kenny Lau.
-/
import algebra.polynomial.big_operators
import field_theory.minpoly
import field_theory.splitting_field
import field_theory.tower
import algebra.squarefree
/-!
# Separable ... |
a7090b1c9859e8a02e0f76e85937ced36e4c371d | 74addaa0e41490cbaf2abd313a764c96df57b05d | /Mathlib/control/monad/cont.lean | 25bdcbad971fa33b64f9a5a60f53a346c968169b | [] | 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 | 11,526 | lean | /-
Copyright (c) 2019 Simon Hudon. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Author: Simon Hudon
Monad encapsulating continuation passing programming style, similar to
Haskell's `Cont`, `ContT` and `MonadCont`:
<http://hackage.haskell.org/package/mtl-2.2.2/docs/Control-Mo... |
ea48e21e3aee987e03a346511ee5a9af1ae479fe | 8eeb99d0fdf8125f5d39a0ce8631653f588ee817 | /src/analysis/calculus/times_cont_diff.lean | 3813f74edb187f73aed3e9d235b9449417c0d65e | [
"Apache-2.0"
] | permissive | jesse-michael-han/mathlib | a15c58378846011b003669354cbab7062b893cfe | fa6312e4dc971985e6b7708d99a5bc3062485c89 | refs/heads/master | 1,625,200,760,912 | 1,602,081,753,000 | 1,602,081,753,000 | 181,787,230 | 0 | 0 | null | 1,555,460,682,000 | 1,555,460,682,000 | null | UTF-8 | Lean | false | false | 121,936 | lean | /-
Copyright (c) 2019 Sébastien Gouëzel. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Sébastien Gouëzel
-/
import analysis.calculus.mean_value
/-!
# Higher differentiability
A function is `C^1` on a domain if it is differentiable there, and its derivative is contin... |
acf495b338821ec71d8694022c1ffcfe32603dfa | 957a80ea22c5abb4f4670b250d55534d9db99108 | /tests/lean/run/smt_tests.lean | c4a4c59ed43f49053f80a2f1998fc422c725cdd8 | [
"Apache-2.0"
] | permissive | GaloisInc/lean | aa1e64d604051e602fcf4610061314b9a37ab8cd | f1ec117a24459b59c6ff9e56a1d09d9e9e60a6c0 | refs/heads/master | 1,592,202,909,807 | 1,504,624,387,000 | 1,504,624,387,000 | 75,319,626 | 2 | 1 | Apache-2.0 | 1,539,290,164,000 | 1,480,616,104,000 | C++ | UTF-8 | Lean | false | false | 1,578 | lean | attribute [pre_smt] add_zero zero_add mul_one one_mul
constant p : nat → nat → Prop
constants a b : nat
constant h : p (a + 1 * b + 0) (a + b)
open tactic smt_tactic
def ex : p (a + b) (a + b) :=
begin [smt]
do {
h ← to_expr ```(h),
t ← infer_type h,
(new_t, he) ← preprocess t, -- use smt_tactic ... |
550ab8a6fa883704c96467f7cac45c4450ebb4cf | d406927ab5617694ec9ea7001f101b7c9e3d9702 | /src/category_theory/lifting_properties/basic.lean | 79a4919486576627290a0e3770a59d95327923fa | [
"Apache-2.0"
] | permissive | alreadydone/mathlib | dc0be621c6c8208c581f5170a8216c5ba6721927 | c982179ec21091d3e102d8a5d9f5fe06c8fafb73 | refs/heads/master | 1,685,523,275,196 | 1,670,184,141,000 | 1,670,184,141,000 | 287,574,545 | 0 | 0 | Apache-2.0 | 1,670,290,714,000 | 1,597,421,623,000 | Lean | UTF-8 | Lean | false | false | 4,462 | lean | /-
Copyright (c) 2021 Jakob Scholbach. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Jakob Scholbach, Joël Riou
-/
import category_theory.comm_sq
/-!
# Lifting properties
This file defines the lifting property of two morphisms in a category and
shows basic propertie... |
949a0915a982b4f937bf46bc52cf131ae484ee58 | c777c32c8e484e195053731103c5e52af26a25d1 | /src/topology/fiber_bundle/constructions.lean | fe7aca58bf792c10eb5fca5eca71108414a3efed | [
"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 | 16,728 | lean | /-
Copyright © 2022 Nicolò Cavalleri. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Nicolò Cavalleri, Sébastien Gouëzel, Heather Macbeth, Floris van Doorn
-/
import topology.fiber_bundle.basic
/-!
# Standard constructions on fiber bundles
This file contains several ... |
f1c4c357603edfa1533aa838b7fefdd4c0075e1b | 74addaa0e41490cbaf2abd313a764c96df57b05d | /Mathlib/tactic/group_auto.lean | bbe1c3185d36441692b4d70463b330bda8654167 | [] | 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,322 | lean | /-
Copyright (c) 2020. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Author: Patrick Massot
-/
import Mathlib.PrePort
import Mathlib.Lean3Lib.init.default
import Mathlib.tactic.ring
import Mathlib.tactic.doc_commands
import Mathlib.PostPort
universes u_1
namespace Mathlib
... |
e5d62ddcbbf38f4eabc5179dfa0f35759f3313c6 | 07c76fbd96ea1786cc6392fa834be62643cea420 | /hott/algebra/category/functor/equivalence.hlean | 664920361da55ab9d7f0e09f168ec63a0137ca1c | [
"Apache-2.0"
] | permissive | fpvandoorn/lean2 | 5a430a153b570bf70dc8526d06f18fc000a60ad9 | 0889cf65b7b3cebfb8831b8731d89c2453dd1e9f | refs/heads/master | 1,592,036,508,364 | 1,545,093,958,000 | 1,545,093,958,000 | 75,436,854 | 0 | 0 | null | 1,480,718,780,000 | 1,480,718,780,000 | null | UTF-8 | Lean | false | false | 18,912 | 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
Functors which are equivalences or isomorphisms
-/
import .adjoint
open eq functor iso prod nat_trans is_equiv equiv is_trunc sigma.ops
namespace category
vari... |
8cc759d2475b655c24d6e31386276346fdd5f4bb | 6432ea7a083ff6ba21ea17af9ee47b9c371760f7 | /tests/lean/interactive/discrsIssue.lean | df05f1ce14dfc89bd24fb6c0bf32fae434aab057 | [
"Apache-2.0",
"LLVM-exception",
"NCSA",
"LGPL-3.0-only",
"LicenseRef-scancode-inner-net-2.0",
"BSD-3-Clause",
"LGPL-2.0-or-later",
"Spencer-94",
"LGPL-2.1-or-later",
"HPND",
"LicenseRef-scancode-pcre",
"ISC",
"LGPL-2.1-only",
"LicenseRef-scancode-other-permissive",
"SunPro",
"CMU-Mach"... | permissive | leanprover/lean4 | 4bdf9790294964627eb9be79f5e8f6157780b4cc | f1f9dc0f2f531af3312398999d8b8303fa5f096b | refs/heads/master | 1,693,360,665,786 | 1,693,350,868,000 | 1,693,350,868,000 | 129,571,436 | 2,827 | 311 | Apache-2.0 | 1,694,716,156,000 | 1,523,760,560,000 | Lean | UTF-8 | Lean | false | false | 1,223 | lean | inductive Expr where
| nat : Nat → Expr
| plus : Expr → Expr → Expr
| bool : Bool → Expr
| and : Expr → Expr → Expr
inductive Ty where
| nat
| bool
deriving DecidableEq
inductive HasType : Expr → Ty → Prop
| nat : HasType (.nat v) .nat
| plus : HasType a .nat → HasType b .nat → HasType (.plus a b... |
05b2867d6c7126a22d2ae82b37328b0ade9c3920 | 618003631150032a5676f229d13a079ac875ff77 | /test/fin_cases.lean | c52ba4afc7852f457e21960ea84af94775d71145 | [
"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 | 2,128 | lean | /-
Copyright (c) 2018 Scott Morrison. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Scott Morrison
-/
import tactic.fin_cases
import data.nat.prime
import group_theory.perm.sign
example (f : ℕ → Prop) (p : fin 3) (h0 : f 0) (h1 : f 1) (h2 : f 2) : f p.val :=
begin
... |
da5c9b43ffe3e6b31fda96c63818b8f4da94546d | e2fc96178628c7451e998a0db2b73877d0648be5 | /test/demo_context_free.lean | e90ebff11dbf1c9551517470870b24d3a9bbf635 | [
"BSD-2-Clause"
] | permissive | madvorak/grammars | cd324ae19b28f7b8be9c3ad010ef7bf0fabe5df2 | 1447343a45fcb7821070f1e20b57288d437323a6 | refs/heads/main | 1,692,383,644,884 | 1,692,032,429,000 | 1,692,032,429,000 | 453,948,141 | 7 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 25,888 | lean | import classes.context_free.basics.toolbox
import utilities.list_utils
import utilities.written_by_others.trim_assoc
private def a_ : fin 3 := 0
private def a : symbol (fin 3) (fin 2) := symbol.terminal a_
private def b_ : fin 3 := 1
private def b : symbol (fin 3) (fin 2) := symbol.terminal b_
private def c_ : fin ... |
f619b329b110662e929c77842a3048a595311737 | 8cae430f0a71442d02dbb1cbb14073b31048e4b0 | /src/tactic/linarith/datatypes.lean | 52bc606a08fb86300508a7128e557fffd3c9f456 | [
"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,798 | lean | /-
Copyright (c) 2020 Robert Y. Lewis. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Robert Y. Lewis
-/
import tactic.linarith.lemmas
import tactic.ring
/-!
# Datatypes for `linarith`
Some of the data structures here are used in multiple parts of the tactic.
We spl... |
77797a2ec3e13b945afb4fb3aa16f28ce3ab207a | ce89339993655da64b6ccb555c837ce6c10f9ef4 | /bluejam/topprover/04.lean | a5b42543ec9c71d3e51176ba55eacf159164e675 | [] | no_license | zeptometer/LearnLean | ef32dc36a22119f18d843f548d0bb42f907bff5d | bb84d5dbe521127ba134d4dbf9559b294a80b9f7 | refs/heads/master | 1,625,710,824,322 | 1,601,382,570,000 | 1,601,382,570,000 | 195,228,870 | 2 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 657 | lean | lemma at_most_two : ∀ (f : bool → bool) b x y z,
x = f b → y = f x → z = f y → z = x :=
begin
intros f b x y z h1 h2 h3,
induction b,
induction x,
rw ←h1 at h2,
rw h2 at h3,
simp [h3],
rw ←h1,
rw h1,
induction y,
assumption,... |
a5e6071c6a8db7e4e09211a662521e0da8e0b1bd | fe25de614feb5587799621c41487aaee0d083b08 | /tests/lean/run/PPTopDownAnalyze.lean | 5ce0fc80c0f979b13be733b3e92a3302d6d402c3 | [
"Apache-2.0"
] | permissive | pollend/lean4 | e8469c2f5fb8779b773618c3267883cf21fb9fac | c913886938c4b3b83238a3f99673c6c5a9cec270 | refs/heads/master | 1,687,973,251,481 | 1,628,039,739,000 | 1,628,039,739,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 11,773 | lean | /-
Copyright (c) 2021 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Daniel Selsam
-/
import Lean
import Std
open Lean Lean.Meta Lean.Elab Lean.Elab.Term Lean.Elab.Command
open Lean.PrettyPrinter
def checkDelab (e : Expr) (tgt? : Option Syntax)... |
687aa135ca36e9b36095c84d2319120745050ab8 | 69d4931b605e11ca61881fc4f66db50a0a875e39 | /src/linear_algebra/free_module.lean | 21c0e3e0861a6a62a3ef1229d5eabd59dbcbf4e2 | [
"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 | 17,782 | 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.basis
import linear_algebra.finsupp_vector_space
import ring_theory.principal_ideal_domain
import ring_theory.finiteness
/-! # Free modules
A free `... |
f14651a09561be05c16ec0aaa697d2d059a03a3f | 55c7fc2bf55d496ace18cd6f3376e12bb14c8cc5 | /src/algebra/group/hom.lean | 61de5aaaf4ccd2f6df08ee4768254690294212fb | [
"Apache-2.0"
] | permissive | dupuisf/mathlib | 62de4ec6544bf3b79086afd27b6529acfaf2c1bb | 8582b06b0a5d06c33ee07d0bdf7c646cae22cf36 | refs/heads/master | 1,669,494,854,016 | 1,595,692,409,000 | 1,595,692,409,000 | 272,046,630 | 0 | 0 | Apache-2.0 | 1,592,066,143,000 | 1,592,066,142,000 | null | UTF-8 | Lean | false | false | 12,484 | 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.commute
/-!
# monoid and group homomorphisms
Th... |
431ecb74bdc17299b5711ee26b180f692944e916 | abd677583c7e4d55daf9487b82da11b7c5498d8d | /src/exp.lean | 7f03a496c1895457267613e68220fb7921b0af83 | [
"Apache-2.0"
] | permissive | jesse-michael-han/embed | e9c346918ad58e03933bdaa057a571c0cc4a7641 | c2fc188328e871e18e0dcb8258c6d0462c70a8c9 | refs/heads/master | 1,584,677,705,005 | 1,528,451,877,000 | 1,528,451,877,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 1,030 | lean | import .list .misc
variable {α : Type }
inductive exp (α : Type) : Type
| bvr : nat → exp
| fvr : nat → exp
| cst : α → exp
| lam : exp → exp
| app : exp → exp → exp
notation `#` n := exp.bvr _ n
notation `&` n := exp.fvr _ n
def seq (α : Type) : Type := (list (exp α)) × (list (exp α))
def proves (Γ Δ : li... |
84617e16e9d35ce17c888d63f4369e3b2cd2687b | 4727251e0cd73359b15b664c3170e5d754078599 | /src/data/set_like/fintype.lean | 1909ca5648ff78ca64653d0a4d6c88f44cdacd03 | [
"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 | 718 | lean | /-
Copyright (c) 2021 . All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Chris Hughes
-/
import data.set_like.basic
import data.fintype.basic
/-!
# Set-like fintype
This file contains a fintype instance for set-like objects such as subgroups. If `set_like A B`
and `fint... |
86dbff56a90b519f659258359daca96db3feab64 | 510e96af568b060ed5858226ad954c258549f143 | /algebra/lattice/complete_lattice_experiment.lean | 0790e663a0a825a112b9354cb395b867a6feab7f | [] | no_license | Shamrock-Frost/library_dev | cb6d1739237d81e17720118f72ba0a6db8a5906b | 0245c71e4931d3aceeacf0aea776454f6ee03c9c | refs/heads/master | 1,609,481,034,595 | 1,500,165,215,000 | 1,500,165,347,000 | 97,350,162 | 0 | 0 | null | 1,500,164,969,000 | 1,500,164,969,000 | null | UTF-8 | Lean | false | false | 25,285 | lean | /-
Copyright (c) 2017 Johannes Hölzl. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Johannes Hölzl
Theory of complete lattices.
-/
import .bounded_lattice_experiment data.set
set_option old_structure_cmd true
universes u v w w₂
variables {α : Type u} {β : Type v} {... |
3144d9ed6ba4a0ba7a710e5ad2e3b6a064051374 | 4727251e0cd73359b15b664c3170e5d754078599 | /src/combinatorics/hales_jewett.lean | bef6e7dab21b86127d36da8c4fe6bd451a91e3b0 | [
"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 | 15,423 | lean | /-
Copyright (c) 2021 David Wärn. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: David Wärn
-/
import data.fintype.basic
import algebra.big_operators.basic
/-!
# The Hales-Jewett theorem
We prove the Hales-Jewett theorem and deduce Van der Waerden's theorem as a coro... |
579d633509e07ba5d9c46129486d7911b75a39ce | 680b0d1592ce164979dab866b232f6fa743f2cc8 | /hott/types/bool.hlean | 4e947756d0d1cd4f8df4de3c18bc07ee605d7555 | [
"Apache-2.0"
] | permissive | syohex/lean | 657428ab520f8277fc18cf04bea2ad200dbae782 | 081ad1212b686780f3ff8a6d0e5f8a1d29a7d8bc | refs/heads/master | 1,611,274,838,635 | 1,452,668,188,000 | 1,452,668,188,000 | 49,562,028 | 0 | 0 | null | 1,452,675,604,000 | 1,452,675,602,000 | null | UTF-8 | Lean | false | false | 4,765 | hlean | /-
Copyright (c) 2014 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Author: Leonardo de Moura, Floris van Doorn
Partially ported from the standard library
-/
open eq eq.ops decidable
namespace bool
local attribute bor [reducible]
local attribute b... |
2606d278d2175376a644c881ed8fab213c487894 | f4bff2062c030df03d65e8b69c88f79b63a359d8 | /src/game/sup_inf/supProdSets.lean | 3fbb463b9974cc311935afc6cbda66ae4eb3f69e | [
"Apache-2.0"
] | permissive | adastra7470/real-number-game | 776606961f52db0eb824555ed2f8e16f92216ea3 | f9dcb7d9255a79b57e62038228a23346c2dc301b | refs/heads/master | 1,669,221,575,893 | 1,594,669,800,000 | 1,594,669,800,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 1,924 | lean | import .lub_prodSets
namespace xena -- hide
/-
# Chapter 3 : Sup and Inf
## Level 10
-/
-- main result in lemma sup_mem_prod_of_sets
-- hide
--def mem_prod_sets (A : set ℝ) (B : set ℝ) := { x : ℝ | ∃ y ∈ A, ∃ z ∈ B, x = y * z}
/-
Intermediary result `zero_in_prod` proved in sets_level08.
Intermediary result `me... |
845c67fea799d1b5139fd01e3e85784c3774d52b | d436468d80b739ba7e06843c4d0d2070e43448e5 | /src/linear_algebra/basis.lean | 39b3847bc1067e773018fd0730f4e54efa552db4 | [
"Apache-2.0"
] | permissive | roro47/mathlib | 761fdc002aef92f77818f3fef06bf6ec6fc1a28e | 80aa7d52537571a2ca62a3fdf71c9533a09422cf | refs/heads/master | 1,599,656,410,625 | 1,573,649,488,000 | 1,573,649,488,000 | 221,452,951 | 0 | 0 | Apache-2.0 | 1,573,647,693,000 | 1,573,647,692,000 | null | UTF-8 | Lean | false | false | 53,096 | 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, Alexander Bentkamp
-/
import linear_algebra.basic linear_algebra.finsupp order.zorn
/-!
# Linear independence and bases
This file defines linear ind... |
e04e260ef67e993d44af632611e0e866a5edfb12 | bbecf0f1968d1fba4124103e4f6b55251d08e9c4 | /src/number_theory/class_number/finite.lean | 1244ed387a64484db6a7555612babda4322c445e | [
"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 | 17,912 | lean | /-
Copyright (c) 2021 Anne Baanen. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Anne Baanen
-/
import linear_algebra.free_module.pid
import linear_algebra.matrix.absolute_value
import number_theory.class_number.admissible_absolute_value
import number_theory.function... |
307446d928049846fecba307a974c342102d4611 | 57c233acf9386e610d99ed20ef139c5f97504ba3 | /src/algebra/quandle.lean | baa05dc737daeef080a51381a803f2398bc5e6de | [
"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 | 24,719 | lean | /-
Copyright (c) 2020 Kyle Miller. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Kyle Miller
-/
import data.zmod.basic
import data.equiv.mul_add
import tactic.group
/-!
# Racks and Quandles
This file defines racks and quandles, algebraic structures for sets
that bij... |
c8701e2fd418c8e9e74e9fb578651b5a114bab5d | 5719a16e23dfc08cdea7a5bf035b81690f307965 | /src/Init/Lean/Parser/Term.lean | 3e0f5593aee38e884d23bcd3aacf83e6f74ed583 | [
"Apache-2.0"
] | permissive | postmasters/lean4 | 488b03969a371e1507e1e8a4df9ebf63c7cbe7ac | f3976fc53a883ac7606fc59357d43f4b51016ca7 | refs/heads/master | 1,655,582,707,480 | 1,588,682,595,000 | 1,588,682,595,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 13,361 | lean | /-
Copyright (c) 2019 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Leonardo de Moura, Sebastian Ullrich
-/
prelude
import Init.Lean.Parser.Parser
import Init.Lean.Parser.Level
namespace Lean
namespace Parser
@[init] def regBuiltinTacticParser... |
e4ebc2d6c33641c97912e33a36997f378b599143 | 35677d2df3f081738fa6b08138e03ee36bc33cad | /src/data/real/cardinality.lean | 01b2b377f62417248aa941859ef6b88c602a13da | [
"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 | 4,890 | 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
The cardinality of the reals.
-/
import data.real.basic set_theory.ordinal analysis.specific_limits data.rat.denumerable
open nat set
noncomputable theory
namespa... |
6e721543c2f71137fa309ac690198c349d89ef80 | d406927ab5617694ec9ea7001f101b7c9e3d9702 | /src/topology/order/hom/esakia.lean | ad18a06dbb155b574834062caeea130dbc13dc4b | [
"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 | 11,487 | lean | /-
Copyright (c) 2022 Yaël Dillies. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Yaël Dillies
-/
import order.hom.bounded
import topology.order.hom.basic
/-!
# Esakia morphisms
This file defines pseudo-epimorphisms and Esakia morphisms.
We use the `fun_like` desig... |
97f025f8eee95df8ffb837a2a03cf96d834b72e9 | bbecf0f1968d1fba4124103e4f6b55251d08e9c4 | /src/topology/path_connected.lean | cb698e7f8079ea761c681899eae1b87374825870 | [
"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 | 36,578 | lean | /-
Copyright (c) 2020 Patrick Massot. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Patrick Massot
-/
import topology.unit_interval
import topology.algebra.ordered.proj_Icc
import topology.continuous_function.basic
/-!
# Path connectedness
## Main definitions
In th... |
c86d969cf807ec9fadcbf8ecd4f6c3b4d29d1925 | 9631e35ca5dd719ccc7d3a57ec322fd93d6a0776 | /src/noneuclidean_maze/solutions/definition.lean | 342c7785b689e243eed64ffd1e14ac9dc90837d8 | [] | 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 | 2,071 | lean | import tactic
/-
WWW
WABCW
WDEFW
WGHIW
WWW
and secret room J
-- start in room A
-- have to find the secret and get to room J
-- W is a temp wall room which we never go into.
Can people write computer programs in Lean which solve
levels like this?
Can people write computer programs in Python which design
levels li... |
acdf330f24182bf1945ca8f96494336bbb541a2d | f3849be5d845a1cb97680f0bbbe03b85518312f0 | /old_library/init/wf.lean | d4845d530ade5118f53df78617d82b02d7b5141f | [
"Apache-2.0"
] | permissive | bjoeris/lean | 0ed95125d762b17bfcb54dad1f9721f953f92eeb | 4e496b78d5e73545fa4f9a807155113d8e6b0561 | refs/heads/master | 1,611,251,218,281 | 1,495,337,658,000 | 1,495,337,658,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 9,307 | 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
-/
prelude
import init.relation init.nat init.prod
universe variables u v
inductive acc {A : Type u} (R : A → A → Prop) : A → Prop
| intro : ∀ x, (∀ y, R y x ... |
85d6a8ebb6a85a2ae0e7d988e207339f4dad79e1 | 8d65764a9e5f0923a67fc435eb1a5a1d02fd80e3 | /src/number_theory/padics/ring_homs.lean | d134deb8712aa3360d21d5d4240aedb727a69946 | [
"Apache-2.0"
] | permissive | troyjlee/mathlib | e18d4b8026e32062ab9e89bc3b003a5d1cfec3f5 | 45e7eb8447555247246e3fe91c87066506c14875 | refs/heads/master | 1,689,248,035,046 | 1,629,470,528,000 | 1,629,470,528,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 24,643 | lean | /-
Copyright (c) 2020 Johan Commelin, Robert Y. Lewis. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Johan Commelin, Robert Y. Lewis
-/
import number_theory.padics.padic_integers
/-!
# Relating `ℤ_[p]` to `zmod (p ^ n)`
In this file we establish connections betwee... |
08375ba0cab992d1046d853f725dae38714f8095 | 4d2583807a5ac6caaffd3d7a5f646d61ca85d532 | /src/tactic/ext.lean | ecfc27cd9ea66d83e2de4ad3517dd660442ed48c | [
"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 | 20,008 | lean | /-
Copyright (c) 2018 Simon Hudon. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Simon Hudon, Jesse Michael Han
-/
import tactic.rcases
import data.sum
import logic.function.basic
universes u₁ u₂
open interactive interactive.types
section ext
open lean.parser nat ta... |
8195c9638100b6f7aede367627c847050b8a7a26 | ce6917c5bacabee346655160b74a307b4a5ab620 | /src/ch4/ex0210.lean | e163f34fd1177747f46719c4582d51a22a8c7c6e | [] | no_license | Ailrun/Theorem_Proving_in_Lean | ae6a23f3c54d62d401314d6a771e8ff8b4132db2 | 2eb1b5caf93c6a5a555c79e9097cf2ba5a66cf68 | refs/heads/master | 1,609,838,270,467 | 1,586,846,743,000 | 1,586,846,743,000 | 240,967,761 | 1 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 569 | lean | variables x y z : ℤ
example (x y z : ℕ) : x * (y + z) = x * y + x * z := mul_add x y z
example (x y z : ℕ) : (x + y) * z = x * z + y * z := add_mul x y z
example (x y z : ℕ) : x + y + z = x + (y + z) := add_assoc x y z
example (x y : ℕ) :
(x + y) * (x + y) = x * x + y * x + x * y + y * y :=
have h1 : (x + y) * (x... |
a34b61ea3e4b7bd2d8ec2e29a3cb026b8322b277 | cf39355caa609c0f33405126beee2739aa3cb77e | /tests/lean/run/cases_bug2.lean | 32d7012e543e1e59370c09d955f28e4011ff22e4 | [
"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 | 89 | lean | open tactic
example (a : nat) : 0 = nat.succ a → false
:= by do h ← intro1, cases h
|
0825a20b0ea2d0269aa38a9fbb6bc4a68697102a | 57c233acf9386e610d99ed20ef139c5f97504ba3 | /src/geometry/manifold/times_cont_mdiff_map.lean | 2829e517c69a9635dbaa7090a8e0266e1e8e7cf3 | [
"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 | 3,949 | lean | /-
Copyright © 2020 Nicolò Cavalleri. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Nicolò Cavalleri
-/
import geometry.manifold.times_cont_mdiff
import topology.continuous_function.basic
/-!
# Smooth bundled map
In this file we define the type `times_cont_mdiff_ma... |
001895a17761fddd5aa15c51e0a92287356de8c4 | 958488bc7f3c2044206e0358e56d7690b6ae696c | /lean/while/Hoare.lean | a239006350531b0823eba588c46dbb3a0332ca26 | [] | no_license | possientis/Prog | a08eec1c1b121c2fd6c70a8ae89e2fbef952adb4 | d4b3debc37610a88e0dac3ac5914903604fd1d1f | refs/heads/master | 1,692,263,717,723 | 1,691,757,179,000 | 1,691,757,179,000 | 40,361,602 | 3 | 0 | null | 1,679,896,438,000 | 1,438,953,859,000 | Coq | UTF-8 | Lean | false | false | 3,728 | lean | import Stmt
import Subst
import BigStep
open Stmt
def Hoare (p:Pred)(e:Stmt)(q:Pred) : Prop :=
∀ (s t:Env), p s → BigStep e s t → q t
lemma skip_intro : ∀ (p:Pred), Hoare p skip p :=
begin
intros p s t H1 H2, cases H2, assumption
end
lemma assign_intro : ∀ (p:Pred) (x:string) (a:AExp),
Hoare (subst x a p) (... |
bf3caf583f505c4627ad38fd5db02f8eddc23ea8 | e030b0259b777fedcdf73dd966f3f1556d392178 | /library/init/meta/simp_tactic.lean | 22b36a6f00c1ef02bcbe1a9c5f893ef3ede3b519 | [
"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 | 13,686 | lean | /-
Copyright (c) 2016 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Leonardo de Moura
-/
prelude
import init.meta.tactic init.meta.attribute init.meta.constructor_tactic
import init.meta.relation_tactics init.meta.occurrences
open tactic
meta ... |
719f1f40ec16196ed4e48195108dcf2e611dc4f3 | 7b89826c26634aa18c0110f1634f73027851edfe | /natural-number-game/src/world01/level01.lean | 39e02d2ecea919125ea0fa07c26e33048a45448d | [
"MIT"
] | permissive | marcofavorito/leanings | b7642344d8c9012a1cec74a804c5884297880c4d | 581b83be66ff4f8dd946fb6a1bb045d2ddf91076 | refs/heads/master | 1,672,310,991,244 | 1,603,031,766,000 | 1,603,031,766,000 | 279,163,004 | 1 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 350 | lean | import mynat.definition -- imports the natural numbers {0,1,2,3,4,...}.
import mynat.add -- imports definition of addition on the natural numbers.
import mynat.mul -- imports definition of multiplication on the natural numbers.
namespace mynat -- hide
lemma example1 (x y z : mynat) : x * y + z = x * y + z :=
begin
... |
5d10b60ed917160095c272fab45dc08c79207692 | 43390109ab88557e6090f3245c47479c123ee500 | /src/M1F/problem_bank/0105/Q0105.lean | 086da0f1007725f6444f36e02f514ec5cb89ee57 | [
"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 | 3,331 | lean | -- ignore this part: we are building the notion of a set
-- go to line 36
inductive zfc : Type
| empty : zfc
| insert : zfc → zfc → zfc
instance : has_emptyc zfc := ⟨zfc.empty⟩
instance : has_insert zfc zfc := ⟨zfc.insert⟩
instance : has_zero zfc := ⟨{}⟩
instance : has_one zfc := ⟨{0}⟩
def succ (a : zfc) : zfc := ... |
53b1da73295148f4022529f3b12d953e2493700e | c3f2fcd060adfa2ca29f924839d2d925e8f2c685 | /tests/lean/run/tactic22.lean | ae413ac8a3e64168664160e355394f161e67700f | [
"Apache-2.0"
] | permissive | respu/lean | 6582d19a2f2838a28ecd2b3c6f81c32d07b5341d | 8c76419c60b63d0d9f7bc04ebb0b99812d0ec654 | refs/heads/master | 1,610,882,451,231 | 1,427,747,084,000 | 1,427,747,429,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 177 | lean | import logic
open tactic
theorem T (a b c d : Prop) (Ha : a) (Hb : b) (Hc : c) (Hd : d) : a ∧ b ∧ c ∧ d
:= by fixpoint (λ f, [apply @and.intro; f | assumption; f | id])
|
4005837f4d423b014b2d668bb74fe306a0a1f86c | 5d166a16ae129621cb54ca9dde86c275d7d2b483 | /leanpkg/leanpkg/manifest.lean | fdf885e0debf37cb7713fbccdc0b8d77c135c24f | [
"Apache-2.0"
] | permissive | jcarlson23/lean | b00098763291397e0ac76b37a2dd96bc013bd247 | 8de88701247f54d325edd46c0eed57aeacb64baf | refs/heads/master | 1,611,571,813,719 | 1,497,020,963,000 | 1,497,021,515,000 | 93,882,536 | 1 | 0 | null | 1,497,029,896,000 | 1,497,029,896,000 | null | UTF-8 | Lean | false | false | 3,472 | lean | /-
Copyright (c) 2017 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Author: Gabriel Ebner
-/
import leanpkg.toml system.io
namespace leanpkg
inductive source
| path (dir_name : string) : source
| git (url rev : string) : source
namespace source
def f... |
7f11befd24177a5d517164b7eada4cbaca2b5acf | 624f6f2ae8b3b1adc5f8f67a365c51d5126be45a | /src/Init/Data/PersistentArray.lean | a30feb7f281340d4539c64b8070ebccf9b84d542 | [
"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 | 211 | lean | /-
Copyright (c) 2019 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Leonardo de Moura
-/
prelude
import Init.Data.PersistentArray.Basic
|
df1ed67bb3e0aa510b7999638cfdc9b5de9fdc38 | bb31430994044506fa42fd667e2d556327e18dfe | /src/ring_theory/polynomial/chebyshev.lean | 8c7094a4cc3d3be1a1a5bf9d6834c3dda94da976 | [
"Apache-2.0"
] | permissive | sgouezel/mathlib | 0cb4e5335a2ba189fa7af96d83a377f83270e503 | 00638177efd1b2534fc5269363ebf42a7871df9a | refs/heads/master | 1,674,527,483,042 | 1,673,665,568,000 | 1,673,665,568,000 | 119,598,202 | 0 | 0 | null | 1,517,348,647,000 | 1,517,348,646,000 | null | UTF-8 | Lean | false | false | 10,851 | lean | /-
Copyright (c) 2020 Johan Commelin. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Johan Commelin, Julian Kuelshammer, Heather Macbeth
-/
import data.polynomial.derivative
import tactic.linear_combination
/-!
# Chebyshev polynomials
The Chebyshev polynomials are tw... |
1c569096db1489bdfa2427b46a20d82f702ba884 | 4d2583807a5ac6caaffd3d7a5f646d61ca85d532 | /src/algebra/char_zero.lean | 03238d7319d7286350ac97d8dd89708c8339386a | [
"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,384 | lean | /-
Copyright (c) 2014 Mario Carneiro. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Mario Carneiro
-/
import data.nat.cast
import data.fintype.basic
import tactic.wlog
/-!
# Characteristic zero
A ring `R` is called of characteristic zero if every natural number `n`... |
4c9b0f834e60fbb28539ef1da90e5ca5e831263e | 35677d2df3f081738fa6b08138e03ee36bc33cad | /src/algebra/punit_instances.lean | e876e9b70d0f470ba8cbb8dcd39675b7d24863aa | [
"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 | 3,438 | lean | /-
Copyright (c) 2019 Kenny Lau. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Kenny Lau
Instances on punit.
-/
import algebra.module
universes u
namespace punit
variables (x y : punit.{u+1}) (s : set punit.{u+1})
@[to_additive add_comm_group]
instance : comm_gro... |
ef82d9cacd4ba9cfcb28493fd84f3ebdfb39d9c1 | 367134ba5a65885e863bdc4507601606690974c1 | /src/data/string/defs.lean | be87de10bc20ca7359d5f76352d0a59a202fb938 | [
"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 | 1,929 | lean | /-
Copyright (c) 2019 Simon Hudon. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Author: Simon Hudon, Keeley Hoek, Floris van Doorn
-/
import data.list.defs
namespace string
/-- `s.split_on c` tokenizes `s : string` on `c : char`. -/
def split_on (s : string) (c : char) : li... |
98405f5e7e5c31054d0c0a475c86ed48047b2d70 | 4727251e0cd73359b15b664c3170e5d754078599 | /src/algebra/order/group.lean | 59766570196d86fe412c56f0f4dfd9409f839519 | [
"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 | 48,477 | 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.abs
import algebra.order.sub
/-!
# Ordered groups
This file develops the basics of ordered groups.
... |
68c62def1ca19ea247c9c8fdf5767a2b9db699b3 | 11e28114d9553ecd984ac4819661ffce3068bafe | /src/policy.lean | b2359b2cef16264b1da3f32f8cfae9b88618f684 | [
"MIT"
] | permissive | EdAyers/lean-subtask | 9a26eb81f0c8576effed4ca94342ae1281445c59 | 04ac5a6c3bc3bfd190af4d6dcce444ddc8914e4b | refs/heads/master | 1,586,516,665,621 | 1,558,701,948,000 | 1,558,701,948,000 | 160,983,035 | 4 | 1 | null | null | null | null | UTF-8 | Lean | false | false | 5,892 | lean | /- Author: E.W.Ayers © 2019 -/
import .M .refine
open expr tactic expr.zipper
namespace robot
meta def is_term : expr → tactic bool := λ e, do
T ← tactic.infer_type e >>= instantiate_mvars,
pure $ expr.is_sort T
def weak : ℕ := 1
def medium : ℕ := 2
def strong : ℕ := 3
meta def requires_nonmeta_variable_that... |
74728ada10601dd6972c0afd49f6466fb6176a87 | 302c785c90d40ad3d6be43d33bc6a558354cc2cf | /src/category_theory/limits/shapes/wide_pullbacks.lean | e7b9f0133b160844cf2e7197bdf4136d3141e35e | [
"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 | 5,261 | 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.limits.has_limits
import category_theory.thin
/-!
# Wide pullbacks
We define the category `wide_pullback_shape`, (resp. `wide_pushout_shape`) whi... |
d0f804132b45e4ecd074a13b87aad0cdbda9c042 | 1a61aba1b67cddccce19532a9596efe44be4285f | /hott/algebra/category/iso.hlean | 23877991a058767d5913dc8fe8c162c4419073d7 | [
"Apache-2.0"
] | permissive | eigengrau/lean | 07986a0f2548688c13ba36231f6cdbee82abf4c6 | f8a773be1112015e2d232661ce616d23f12874d0 | refs/heads/master | 1,610,939,198,566 | 1,441,352,386,000 | 1,441,352,494,000 | 41,903,576 | 0 | 0 | null | 1,441,352,210,000 | 1,441,352,210,000 | null | UTF-8 | Lean | false | false | 14,634 | 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... |
f85a526abc0bf6870b949967bf22dcc36eb757c0 | 5883d9218e6f144e20eee6ca1dab8529fa1a97c0 | /src/aexp/properties.lean | cb76c036711870959147c4aa12aa5010d0d210f2 | [] | no_license | spl/alpha-conversion-is-easy | 0d035bc570e52a6345d4890e4d0c9e3f9b8126c1 | ed937fe85d8495daffd9412a5524c77b9fcda094 | refs/heads/master | 1,607,649,280,020 | 1,517,380,240,000 | 1,517,380,240,000 | 52,174,747 | 4 | 0 | null | 1,456,052,226,000 | 1,456,001,163,000 | Lean | UTF-8 | Lean | false | false | 1,988 | lean | /-
This file contains properties for `aexp`.
-/
import .type
namespace acie -----------------------------------------------------------------
namespace aexp -----------------------------------------------------------------
variables {V : Type} [decidable_eq V] -- Type of variable names
variables {vs : Type → Type}... |
06ca6c27b553b76f578ed12b7c0839051c14fdf8 | 49bd2218ae088932d847f9030c8dbff1c5607bb7 | /src/order/filter/basic.lean | 7c4d8f8bdcbfa6cb1b0f275a896c518126edb8b7 | [
"Apache-2.0"
] | permissive | FredericLeRoux/mathlib | e8f696421dd3e4edc8c7edb3369421c8463d7bac | 3645bf8fb426757e0a20af110d1fdded281d286e | refs/heads/master | 1,607,062,870,732 | 1,578,513,186,000 | 1,578,513,186,000 | 231,653,181 | 0 | 0 | Apache-2.0 | 1,578,080,327,000 | 1,578,080,326,000 | null | UTF-8 | Lean | false | false | 93,440 | 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, Jeremy Avigad
-/
import order.galois_connection order.zorn
import data.set.finite
/-! # Theory of filters on sets
## Main definitions
* `filter` : filter on a set;
*... |
825e6be05233153f8a88ccf39ba96a66a8aa7a79 | 947fa6c38e48771ae886239b4edce6db6e18d0fb | /src/topology/algebra/order/floor.lean | 26adfe819ab00a8d7ae836f56e16274649dcbc38 | [
"Apache-2.0"
] | permissive | ramonfmir/mathlib | c5dc8b33155473fab97c38bd3aa6723dc289beaa | 14c52e990c17f5a00c0cc9e09847af16fabbed25 | refs/heads/master | 1,661,979,343,526 | 1,660,830,384,000 | 1,660,830,384,000 | 182,072,989 | 0 | 0 | null | 1,555,585,876,000 | 1,555,585,876,000 | null | UTF-8 | Lean | false | false | 9,515 | lean | /-
Copyright (c) 2020 Anatole Dedecker. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Anatole Dedecker
-/
import algebra.order.floor
import topology.algebra.order.basic
/-!
# Topological facts about `int.floor`, `int.ceil` and `int.fract`
This file proves statements... |
d8830be333a71969fc52d34eca4451404840de9c | c777c32c8e484e195053731103c5e52af26a25d1 | /src/ring_theory/power_series/basic.lean | 591e43568d3f04b6c8eb6fbf4972e572995a7a91 | [
"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 | 76,594 | lean | /-
Copyright (c) 2019 Johan Commelin. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Johan Commelin, Kenny Lau
-/
import data.finsupp.interval
import data.mv_polynomial.basic
import data.polynomial.algebra_map
import data.polynomial.coeff
import linear_algebra.std_basi... |
03192a388acc8e1df5fe4c80f452cd7eb372c7c4 | bdb33f8b7ea65f7705fc342a178508e2722eb851 | /order/filter.lean | fac57350a0c136d4b84847db60e5389d3f80f15f | [
"Apache-2.0"
] | permissive | rwbarton/mathlib | 939ae09bf8d6eb1331fc2f7e067d39567e10e33d | c13c5ea701bb1eec057e0a242d9f480a079105e9 | refs/heads/master | 1,584,015,335,862 | 1,524,142,167,000 | 1,524,142,167,000 | 130,614,171 | 0 | 0 | Apache-2.0 | 1,548,902,667,000 | 1,524,437,371,000 | Lean | UTF-8 | Lean | false | false | 70,604 | lean | /-
Copyright (c) 2017 Johannes Hölzl. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Johannes Hölzl
Theory of filters on sets.
-/
import order.complete_lattice order.galois_connection data.set data.finset order.zorn
open lattice set
universes u v w x y
open set clas... |
0a4632ebbbf584e1b5fe8597b98737efbaeac5d4 | e0f9ba56b7fedc16ef8697f6caeef5898b435143 | /src/tactic/ring.lean | ab6a7314cfebdbfd8d1f96269991267888d850ed | [
"Apache-2.0"
] | permissive | anrddh/mathlib | 6a374da53c7e3a35cb0298b0cd67824efef362b4 | a4266a01d2dcb10de19369307c986d038c7bb6a6 | refs/heads/master | 1,656,710,827,909 | 1,589,560,456,000 | 1,589,560,456,000 | 264,271,800 | 0 | 0 | Apache-2.0 | 1,589,568,062,000 | 1,589,568,061,000 | null | UTF-8 | Lean | false | false | 28,896 | 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 tactic.norm_num
/-!
# `ring`
Evaluate expressions in the language of commutative (semi)rings.
Based on <http://www.cs.ru.nl/~freek/courses/tt-2014/read/10.1.... |
1cd5d4e7eccbef60d0e24f41a20a288bfca85d3a | 624f6f2ae8b3b1adc5f8f67a365c51d5126be45a | /src/Init/Lean/Compiler/IR/PushProj.lean | 1b6bfb4f94c368852670a90203f8f2e8b87a2f46 | [
"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 | 2,178 | 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.Compiler.IR.Basic
import Init.Lean.Compiler.IR.FreeVars
import Init.Lean.Compiler.IR.NormIds
namespace Lean
namespace IR
partial ... |
18ad1d9c9a6a62ff5485fd7c20aa562a3658d83a | 6432ea7a083ff6ba21ea17af9ee47b9c371760f7 | /tests/lean/doIssue.lean | 3c84a0d74e910a7265ba765f2e9291cce7212239 | [
"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 | 471 | lean | def f (x : Nat) : IO Unit := do
x -- Error
IO.println x
def f' (x : Nat) : IO Unit := do
discard (pure x)
IO.println x
def g (xs : Array Nat) : IO Unit := do
xs.set! 0 1 -- Error
IO.println xs
def g' (xs : Array Nat) : IO Unit := do
discard <| pure (xs.set! 0 1)
IO.println xs
def h (xs : Array Nat) ... |
6d26d0220268edcb77e6eb1cc3c5fbc7ba13fd2f | 2fbe653e4bc441efde5e5d250566e65538709888 | /src/data/fintype.lean | b6d1b76881457deeeb364c60cef1bef76e56eb96 | [
"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 | 37,058 | lean | /-
Copyright (c) 2017 Mario Carneiro. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Author: Mario Carneiro
Finite types.
-/
import data.finset algebra.big_operators data.array.lemmas logic.unique
import tactic.wlog
universes u v
variables {α : Type*} {β : Type*} {γ : Type*}
... |
f56a97038215572e74d7da96c1ba9311e0f46046 | 80746c6dba6a866de5431094bf9f8f841b043d77 | /src/category/functor.lean | c3c6d74faf14514103f4749fe835993f88607c8d | [
"Apache-2.0"
] | permissive | leanprover-fork/mathlib-backup | 8b5c95c535b148fca858f7e8db75a76252e32987 | 0eb9db6a1a8a605f0cf9e33873d0450f9f0ae9b0 | refs/heads/master | 1,585,156,056,139 | 1,548,864,430,000 | 1,548,864,438,000 | 143,964,213 | 0 | 0 | Apache-2.0 | 1,550,795,966,000 | 1,533,705,322,000 | Lean | UTF-8 | Lean | false | false | 4,083 | lean | /-
Copyright (c) 2017 Simon Hudon. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Author: Simon Hudon
Standard identity and composition functors
-/
import tactic.ext tactic.cache category.basic
universe variables u v w
section functor
variables {F : Type u → Type v}
variabl... |
6c88dd39f1fd23559302ad5bd1fa783916eab5fe | 69d4931b605e11ca61881fc4f66db50a0a875e39 | /src/field_theory/algebraic_closure.lean | 7201fcd7b31e5b4ef6a630c043b61164011d46e4 | [
"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 | 15,256 | lean | /-
Copyright (c) 2020 Kenny Lau. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Kenny Lau
-/
import algebra.direct_limit
import field_theory.splitting_field
/-!
# Algebraic Closure
In this file we define the typeclass for algebraically closed fields and algebraic cl... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.