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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
c42dc73da14c0d246c8e3c7c25a26312bfc927f9 | d9d511f37a523cd7659d6f573f990e2a0af93c6f | /src/group_theory/submonoid/membership.lean | a4e7ba33abd5bddc10a84b54ca8abb618e8cede4 | [
"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 | 14,936 | 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, Kenny Lau, Johan Commelin, Mario Carneiro, Kevin Buzzard,
Amelia Livingston, Yury Kudryashov
-/
import group_theory.submonoid.operations
import algebra.big_operators.ba... |
c1dd9e37fcd0911b195ebe06c267c0a99feb115f | d406927ab5617694ec9ea7001f101b7c9e3d9702 | /src/data/set/intervals/monotone.lean | d81696cf4d8a3d2545ce2766c23d9444874bf685 | [
"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,480 | lean | /-
Copyright (c) 2021 Yury Kudryashov. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Yury Kudryashov
-/
import data.set.intervals.disjoint
import order.conditionally_complete_lattice.basic
import order.succ_pred.basic
import algebra.order.field.basic
import tactic.fie... |
e2fa0955565585a49965539f42b5525dfcab8892 | b70447c014d9e71cf619ebc9f539b262c19c2e0b | /hott/homotopy/vankampen.hlean | 759d9a6ca4596f269feb6dbb9936cc2ecbb9632d | [
"Apache-2.0"
] | permissive | ia0/lean2 | c20d8da69657f94b1d161f9590a4c635f8dc87f3 | d86284da630acb78fa5dc3b0b106153c50ffccd0 | refs/heads/master | 1,611,399,322,751 | 1,495,751,007,000 | 1,495,751,007,000 | 93,104,167 | 0 | 0 | null | 1,496,355,488,000 | 1,496,355,487,000 | null | UTF-8 | Lean | false | false | 14,769 | hlean | /-
Copyright (c) 2016 Floris van Doorn. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Floris van Doorn
-/
import hit.pushout hit.prop_trunc algebra.category.constructions.pushout
algebra.category.constructions.fundamental_groupoid algebra.category.functor.equi... |
1c35006b6aec004d96e6e6936fcf368a4976e1ae | 94e33a31faa76775069b071adea97e86e218a8ee | /src/data/zmod/algebra.lean | d9b2ddac2ee928fc166e343089a97cf3921e272b | [
"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 | 1,087 | lean | /-
Copyright (c) 2021 Johan Commelin. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Johan Commelin
-/
import data.zmod.basic
import algebra.algebra.basic
/-!
# The `zmod n`-algebra structure on rings whose characteristic divides `n`
-/
namespace zmod
variables (R ... |
59612aefe4ef31977c3cb3d7416b6bbe215f364d | aa3f8992ef7806974bc1ffd468baa0c79f4d6643 | /tests/lean/t13.lean | cdf9bdb24f3f5337e40ae8873027d39af08de4dd | [
"Apache-2.0"
] | permissive | codyroux/lean | 7f8dff750722c5382bdd0a9a9275dc4bb2c58dd3 | 0cca265db19f7296531e339192e9b9bae4a31f8b | refs/heads/master | 1,610,909,964,159 | 1,407,084,399,000 | 1,416,857,075,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 319 | lean | constant A : Type.{1}
constant f : A → A → A
constant g : A → A → A
precedence `+` : 65
infixl + := f
infixl + := g
constant a : A
constant b : A
print raw a+b -- + is overloaded
check fun (h : A → A → A)
(infixl + := h), -- Like local declarations, local notation "shadows" global one.
a+b
|
67746ab180aa1cf16a422014e46c5295ef2bc241 | 02005f45e00c7ecf2c8ca5db60251bd1e9c860b5 | /src/analysis/normed_space/bounded_linear_maps.lean | 9ad19528d1e93b5d9b3689b9bd7508b02a221ba4 | [
"Apache-2.0"
] | permissive | anthony2698/mathlib | 03cd69fe5c280b0916f6df2d07c614c8e1efe890 | 407615e05814e98b24b2ff322b14e8e3eb5e5d67 | refs/heads/master | 1,678,792,774,873 | 1,614,371,563,000 | 1,614,371,563,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 20,280 | lean | /-
Copyright (c) 2018 Patrick Massot. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Patrick Massot, Johannes Hölzl
Continuous linear functions -- functions between normed vector spaces which are bounded and linear.
-/
import analysis.normed_space.multilinear
noncomp... |
b08b31c71075ec1801ca6a8dbcf0d75ae59056f7 | dce2ec26258c35f21c8a5318a7a2ed297ddba7c6 | /src/Problems/1_3.lean | 332792523ef0525ef261f4aa209edb9111c23846 | [] | no_license | nedsu/lean-category-theory-pr | c151c4f95d58a2d3b33e8f38ff7734d85d82e5ee | 8d72f4645d83c72d15afaee7a2df781b952417e9 | refs/heads/master | 1,625,444,569,743 | 1,597,056,476,000 | 1,597,056,476,000 | 145,738,350 | 0 | 0 | null | 1,534,957,201,000 | 1,534,957,201,000 | null | UTF-8 | Lean | false | false | 1,178 | lean | import category_theory.isomorphism
import ncategory_theory.Ndefs
open category_theory category_theory.isomorphism category_theory.functor category_theory.Idempotent tactic
--delaration of universes and variables
universes u v u₁ v₁
variables (C : Type u) [𝒞 : category.{v} C]
include 𝒞
namespace Idempotent
--3a Le... |
d168ce93d556b5f776fd47fc8b34544001ac59fd | 55c7fc2bf55d496ace18cd6f3376e12bb14c8cc5 | /src/topology/instances/ennreal.lean | 52535012053b35aaeb6556d1168107175c1581d9 | [
"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 | 39,500 | lean | /-
Copyright (c) 2017 Johannes Hölzl. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Author: Johannes Hölzl
-/
import topology.instances.nnreal
/-!
# Extended non-negative reals
-/
noncomputable theory
open classical set filter metric
open_locale classical
open_locale topologi... |
ca4baba65157b63fc10b38319caf4ac6ed126a73 | 8e2026ac8a0660b5a490dfb895599fb445bb77a0 | /tests/lean/run/untrusted_examples.lean | c7352beedfe5c1d4e3d2281c0aaa8069bbea9e32 | [
"Apache-2.0"
] | permissive | pcmoritz/lean | 6a8575115a724af933678d829b4f791a0cb55beb | 35eba0107e4cc8a52778259bb5392300267bfc29 | refs/heads/master | 1,607,896,326,092 | 1,490,752,175,000 | 1,490,752,175,000 | 86,612,290 | 0 | 0 | null | 1,490,809,641,000 | 1,490,809,641,000 | null | UTF-8 | Lean | false | false | 222 | lean | open tactic
set_option pp.all true
meta example (m1 : tactic nat) (m2 : nat → tactic bool) : true :=
by do
m1 ← get_local `m1,
m2 ← get_local `m2,
b ← mk_app `monad.bind [m1, m2],
trace b,
constructor
|
ab3df820d5ad9dc7ee3d5b320eabd06c3c755d9d | e61a235b8468b03aee0120bf26ec615c045005d2 | /stage0/src/Init/Data/Stack/Basic.lean | 2e217d5870ac691f23b5b7c15ae941048e296acc | [
"Apache-2.0"
] | permissive | SCKelemen/lean4 | 140dc63a80539f7c61c8e43e1c174d8500ec3230 | e10507e6615ddbef73d67b0b6c7f1e4cecdd82bc | refs/heads/master | 1,660,973,595,917 | 1,590,278,033,000 | 1,590,278,033,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 916 | lean | /-
Copyright (c) 2019 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Daniel Selsam
Simple stack API implemented using an array.
-/
prelude
import Init.Data.Array
import Init.Data.Int
universes u v w
structure Stack (α : Type u) :=
(vals : Array... |
d0ad42c71cefb8bfef997fc5489ca9dc8dd36894 | 7cef822f3b952965621309e88eadf618da0c8ae9 | /src/logic/unique.lean | 56c538e3e5dc00da2cdfd3fe17b6f1d786bf66d2 | [
"Apache-2.0"
] | permissive | rmitta/mathlib | 8d90aee30b4db2b013e01f62c33f297d7e64a43d | 883d974b608845bad30ae19e27e33c285200bf84 | refs/heads/master | 1,585,776,832,544 | 1,576,874,096,000 | 1,576,874,096,000 | 153,663,165 | 0 | 2 | Apache-2.0 | 1,544,806,490,000 | 1,539,884,365,000 | Lean | UTF-8 | Lean | false | false | 1,756 | lean | /-
Copyright (c) 2019 Johan Commelin. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Johan Commelin
-/
universes u v w
variables {α : Sort u} {β : Sort v} {γ : Sort w}
structure unique (α : Sort u) extends inhabited α :=
(uniq : ∀ a:α, a = default)
attribute [class... |
4f3dd239b972b64d4b56e948f467162034298898 | 4727251e0cd73359b15b664c3170e5d754078599 | /src/data/set/pairwise.lean | 9cf16e6d3bad8f61d71009b2fc38e3085d65e3ce | [
"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,008 | lean | /-
Copyright (c) 2017 Johannes Hölzl. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Johannes Hölzl
-/
import data.set.lattice
import logic.relation
/-!
# Relations holding pairwise
This file defines pairwise relations and pairwise disjoint indexed sets.
## Main dec... |
b90b2adcdbb78fae95dea68f610320a956d913cb | 206422fb9edabf63def0ed2aa3f489150fb09ccb | /src/topology/local_homeomorph.lean | 8e982805fee1865493920c48bb470df03de437c7 | [
"Apache-2.0"
] | permissive | hamdysalah1/mathlib | b915f86b2503feeae268de369f1b16932321f097 | 95454452f6b3569bf967d35aab8d852b1ddf8017 | refs/heads/master | 1,677,154,116,545 | 1,611,797,994,000 | 1,611,797,994,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 38,255 | lean | /-
Copyright (c) 2019 Sébastien Gouëzel. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Sébastien Gouëzel
-/
import data.equiv.local_equiv
import topology.opens
/-!
# Local homeomorphisms
This file defines homeomorphisms between open subsets of topological spaces. An... |
e971ec8d295d81e36548ae75fcb62aa1966bf355 | 957a80ea22c5abb4f4670b250d55534d9db99108 | /tests/lean/run/quote_bas.lean | 5f822f2a4b7dcb6398eee3ee14f6f1893f1f52be | [
"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 | 2,496 | lean | universes u v w
namespace quote_bas
inductive Expr (V : Type u)
| One {} : Expr
| Var (v : V) : Expr
| Mult (a b : Expr) : Expr
@[reducible] def Value := nat
def Env (V : Type u) := V → Value
open Expr
def evalExpr {V} (vs : Env V) : Expr V → Value
| One := 1
| (Var v) := vs v
| (Mult a ... |
45bc90c2efc217daa510b6668c96f2c4647e15e4 | 8d65764a9e5f0923a67fc435eb1a5a1d02fd80e3 | /src/order/well_founded_set.lean | 293796c2ffdeb3791e688a1d92f9ebbba0b8ccba | [
"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 | 32,985 | lean | /-
Copyright (c) 2021 Aaron Anderson. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Aaron Anderson
-/
import data.set.finite
import order.well_founded
import order.order_iso_nat
import algebra.pointwise
/-!
# Well-founded sets
A well-founded subset of an ordered typ... |
2de922ff21f5d4d41f2f8547452b22de2958d842 | a45212b1526d532e6e83c44ddca6a05795113ddc | /src/tactic/push_neg.lean | 466b8004f7a65d805001b1efedaf9d53b2188735 | [
"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 | 5,347 | lean | /-
Copyright (c) 2019 Patrick Massot All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Author: Patrick Massot, Simon Hudon
A tactic pushing negations into an expression
-/
import tactic.interactive
import algebra.order
open tactic expr
namespace push_neg
section
universe u
... |
6a9ed03ffce64335b5b27c096bfdac9b794c249a | 57c233acf9386e610d99ed20ef139c5f97504ba3 | /src/category_theory/bicategory/natural_transformation.lean | 178f28e78f468f7d32cd02dd9add7d77035adc00 | [
"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 | 10,722 | lean | /-
Copyright (c) 2022 Yuma Mizuno. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Yuma Mizuno
-/
import category_theory.bicategory.functor
/-!
# Oplax natural transformations
Just as there are natural transformations between functors, there are oplax natural transfor... |
300d7ec0480fa1e77fc260aa9fb9cbb78b88a034 | 9dc8cecdf3c4634764a18254e94d43da07142918 | /src/analysis/box_integral/basic.lean | 2e0b1f8b822830dcd67c132a06c59b1cb325f5f2 | [
"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 | 43,289 | 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.partition.filter
import analysis.box_integral.partition.measure
import topology.uniform_space.compact
/-!
# Integrals of Riemann, Hens... |
b782213514cfdfcd5ee12a1756d2f13ec9934aba | fa02ed5a3c9c0adee3c26887a16855e7841c668b | /test/push_neg.lean | 5fe28b034482b1343e4d54c2a652c4ec408cd490 | [
"Apache-2.0"
] | permissive | jjgarzella/mathlib | 96a345378c4e0bf26cf604aed84f90329e4896a2 | 395d8716c3ad03747059d482090e2bb97db612c8 | refs/heads/master | 1,686,480,124,379 | 1,625,163,323,000 | 1,625,163,323,000 | 281,190,421 | 2 | 0 | Apache-2.0 | 1,595,268,170,000 | 1,595,268,169,000 | null | UTF-8 | Lean | false | false | 2,351 | lean | import tactic.push_neg
import data.int.basic
example (h : ∃ p: ℕ, ¬ ∀ n : ℕ, n > p) (h' : ∃ p: ℕ, ¬ ∃ n : ℕ, n < p) : ¬ ∀ n : ℕ, n = 0 :=
begin
push_neg at *,
guard_target_strict ∃ (n : ℕ), n ≠ 0,
guard_hyp_strict h : ∃ (p n : ℕ), n ≤ p,
guard_hyp_strict h' : ∃ (p : ℕ), ∀ (n : ℕ), p ≤ n,
use 1,
end
-- In th... |
3d6c8182c429c0a0e6a655ceab06326c5f67456a | 4d2583807a5ac6caaffd3d7a5f646d61ca85d532 | /archive/100-theorems-list/70_perfect_numbers.lean | 18f60eaed6ac334704fdcb0e7bfabdf026dd66b6 | [
"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,959 | 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 number_theory.arithmetic_function
import number_theory.lucas_lehmer
import algebra.geom_sum
import ring_theory.multiplicity
/-!
# Perfect Numbers
This file ... |
21ca60ab152bdffe45a104a3ddf8a21344a691df | cf39355caa609c0f33405126beee2739aa3cb77e | /tests/lean/run/1718.lean | 075edba5ceda7318756dee10dd533481fbf8cf59 | [
"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 | 313 | lean | theorem my_theorem : ∀ (a b c d : ℕ),
d = c → a = b * c → a = b * d :=
assume a b c d,
assume h₀ : d = c,
assume h₁ : a = b * c,
eq.substr h₀ h₁
example : ∀ (a b c d : ℕ),
d = c → a = b * c → a = b * d :=
assume a b c d, assume h₀ : d = c, assume h₁ : a = b * c,
h₀.substr h₁
|
a7f54f36e5c6da4b24a305b2abefed7ff08dab76 | c1cc0e0109964c513d82364865617b077fbbca41 | /src/basic.lean | c14ab06b8711eb9baac2d640620e33477f179ff5 | [] | no_license | loganrjmurphy/lean-algebra | 314f12a28459d8734200207b4304ce036b0c886d | 474ac0c2714b7c0ad544a90c0d0807b92a0da227 | refs/heads/master | 1,675,055,520,716 | 1,607,564,600,000 | 1,607,564,600,000 | 316,637,587 | 1 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 2,275 | lean | import definitions tactic
universe u
namespace Algebra
namespace group
variables {G : Type u} [group G]
lemma group_nonempty : nonempty G := ⟨0⟩
def is_ident (e : G) : Prop := ∀ g : G, e + g = g ∧ g + e = g
lemma id_unique : ∀ e : G, is_ident e → e = 0 :=
begin
intros e H,
rw is_ident at H, cases H 0 wi... |
4ce327c3b69cac55514ebbe8c494cff21cada256 | 4f065978c49388d188224610d9984673079f7d91 | /zfc_ordinals.lean | 8167e0b74ce9049673affabec5933c276b3fd357 | [] | no_license | kckennylau/Lean | b323103f52706304907adcfaee6f5cb8095d4a33 | 907d0a4d2bd8f23785abd6142ad53d308c54fdcb | refs/heads/master | 1,624,623,720,653 | 1,563,901,820,000 | 1,563,901,820,000 | 109,506,702 | 3 | 1 | null | null | null | null | UTF-8 | Lean | false | false | 11,475 | lean | import set_theory.zfc set_theory.ordinal
universe u
attribute [elab_as_eliminator] well_founded.induction
def Well_order.to_pSet (w : Well_order.{u}) : pSet.{u} :=
pSet.mk w.1 $ well_founded.fix (@is_well_order.wf w.1 w.2 w.3) $ λ x ih,
pSet.mk { y | w.r y x } $ λ p, ih p.1 p.2
theorem Well_order.to_pSet.def (w : W... |
975100d9f1bf534e8afb20cb23a0a6068580e72a | 0845ae2ca02071debcfd4ac24be871236c01784f | /library/init/lean/name.lean | c9396e1eeaf55caf13789897d62db74ceb63cd0a | [
"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 | 7,429 | lean | /-
Copyright (c) 2018 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.string.basic init.coe init.data.uint init.data.tostring
import init.data.hashable init.data.rbmap init.data.rbtree
namespace Lean
i... |
2bd2a416b31cb58ee3cb61cd12d8092a2d88d4e4 | cf39355caa609c0f33405126beee2739aa3cb77e | /tests/lean/run/io_run_tactic.lean | ca2321ee6434928498dcde7bc4174cbc7bc47cbd | [
"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 | 426 | lean | import system.io
open tactic
meta def get_decl_names_with_prefix (p : name) : tactic (list name) :=
do env ← get_env,
return $ env.fold [] $ λ d r,
let n := d.to_name in
if p.is_prefix_of n then n :: r else r
meta def main : io unit :=
do io.put_str "Declarations with prefix 'nat'\n",
ns ← io.run_tac... |
9d637b7f991a043ccf2bd1881051acf651d0bccf | f41725a360d902d3c7939fdf81a5acaf0d0467f0 | /src/automorphisms.lean | f0b1ea6604202537c5833eebc123347a997faf80 | [] | no_license | pglutz/galois_theory | 978765d82b7586c21fd719b84b21d5eea030b25d | 4561c2c97d4c49377356e1d7a2051dedc87d30ba | refs/heads/master | 1,671,472,063,361 | 1,603,597,360,000 | 1,603,597,360,000 | 281,502,125 | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 4,395 | lean | import primitive_element
import field_theory.fixed
import linear_algebra.direct_sum.finsupp
variables (F : Type*) [field F] (E : Type*) [field E] [algebra F E]
instance aut : group (E ≃ₐ[F] E) := {
mul := λ ϕ ψ, ψ.trans ϕ,
mul_assoc := λ ϕ ψ χ, rfl,
one := 1,
one_mul := λ ϕ, by {ext,refl},
mul_one... |
a1d77e30c645873989aa811ef0ddeafaed3ab07b | bdc51328652176125c43c2c9f2d3e4398f127ccb | /src/language.lean | f36b176db7685f04ded5da43d962d796382a5d21 | [] | no_license | atarnoam/lean-automata | d6ca17387b8e0ac6d7c21f12e78d26c237a57cd2 | 46c69ddaa142913b1f43ef57f700f2481cdfba76 | refs/heads/main | 1,678,898,675,345 | 1,614,977,921,000 | 1,614,977,921,000 | 344,927,186 | 6 | 1 | null | null | null | null | UTF-8 | Lean | false | false | 154 | lean | import computability.language
universe u
namespace language
variable {α : Type u}
attribute [derive complete_boolean_algebra] language
end language
|
b90ad54dcc610ab3d22a359b5886bcca5ce37e2e | fa02ed5a3c9c0adee3c26887a16855e7841c668b | /src/order/symm_diff.lean | 795010c83daa5cd9ee91a67d7d7d56ed5c93b971 | [
"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 | 9,217 | lean | /-
Copyright (c) 2021 Bryan Gin-ge Chen. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Adam Topaz, Bryan Gin-ge Chen
-/
import order.boolean_algebra
/-!
# Symmetric difference
The symmetric difference or disjunctive union of sets `A` and `B` is the set of elements ... |
8656c76c4fc42c1b81c6fd900c74e9c2f31d08d4 | c777c32c8e484e195053731103c5e52af26a25d1 | /src/linear_algebra/eigenspace.lean | 1ea0617830ae56e1ab621a6bcd40a857ad011ee5 | [
"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 | 29,245 | lean | /-
Copyright (c) 2020 Alexander Bentkamp. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Alexander Bentkamp
-/
import algebra.algebra.spectrum
import order.hom.basic
import linear_algebra.general_linear_group
/-!
# Eigenvectors and eigenvalues
This file defines eige... |
b918ba67d0cb5d73e92bbb4bc73ad87c55434ff8 | 592ee40978ac7604005a4e0d35bbc4b467389241 | /Library/generated/mathscheme-lean/JoinSemilattice_RingoidSig.lean | 35936c81955ecf1337d52ad6dcc4773c97e59b48 | [] | no_license | ysharoda/Deriving-Definitions | 3e149e6641fae440badd35ac110a0bd705a49ad2 | dfecb27572022de3d4aa702cae8db19957523a59 | refs/heads/master | 1,679,127,857,700 | 1,615,939,007,000 | 1,615,939,007,000 | 229,785,731 | 4 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 10,246 | lean | import init.data.nat.basic
import init.data.fin.basic
import data.vector
import .Prelude
open Staged
open nat
open fin
open vector
section JoinSemilattice_RingoidSig
structure JoinSemilattice_RingoidSig (A : Type) : Type :=
(plus : (A → (A → A)))
(commutative_plus : (∀ {x y : A} , (plus x y) = (plu... |
e29f1ed92a838d6e3ae7aa24c368502e9985dd85 | 3dd1b66af77106badae6edb1c4dea91a146ead30 | /tests/lean/run/nat_bug6.lean | 5c035cda5c885263baed4fb5d050f2e79adb7101 | [
"Apache-2.0"
] | permissive | silky/lean | 79c20c15c93feef47bb659a2cc139b26f3614642 | df8b88dca2f8da1a422cb618cd476ef5be730546 | refs/heads/master | 1,610,737,587,697 | 1,406,574,534,000 | 1,406,574,534,000 | 22,362,176 | 1 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 454 | lean | import logic num
using eq_proofs
inductive nat : Type :=
| zero : nat
| succ : nat → nat
definition add (x y : nat) : nat := nat_rec x (λn r, succ r) y
infixl `+`:65 := add
definition mul (n m : nat) := nat_rec zero (fun m x, x + n) m
infixl `*`:75 := mul
axiom mul_zero_right (n : nat) : n * zero = zero
variable P ... |
fd9b9ce19e765ea235b17774223316decc098c3a | 8b9f17008684d796c8022dab552e42f0cb6fb347 | /library/algebra/category/natural_transformation.lean | 7610c27223f3171c139c704330b81cb12e654cd4 | [
"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 | 2,348 | lean | /-
Copyright (c) 2014 Floris van Doorn. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Module: algebra.category.natural_transformation
Author: Floris van Doorn
-/
import .functor
open category eq eq.ops functor
inductive natural_transformation {C D : Category} (F G : C ⇒ D) ... |
5e1601c8a76dd52b6604c912cdf26f41a2a10b7d | c45b34bfd44d8607a2e8762c926e3cfaa7436201 | /uexp/src/uexp/rules/ex2sigmod92simpl.lean | b194ab79545dac473610a45b8b8ab9a1d3d01731 | [
"BSD-2-Clause"
] | permissive | Shamrock-Frost/Cosette | b477c442c07e45082348a145f19ebb35a7f29392 | 24cbc4adebf627f13f5eac878f04ffa20d1209af | refs/heads/master | 1,619,721,304,969 | 1,526,082,841,000 | 1,526,082,841,000 | 121,695,605 | 1 | 0 | null | 1,518,737,210,000 | 1,518,737,210,000 | null | UTF-8 | Lean | false | false | 1,393 | lean | import ..sql
import ..tactics
import ..u_semiring
import ..extra_constants
import ..cosette_tactics
open Expr
open Proj
open Pred
open SQL
theorem rule :
forall (Γ scm_itm scm_itp : Schema)
(rel_itm : relation scm_itm)
(rel_itp : relation scm_itp)
(itm_itemno : Column datatypes.i... |
72f492f194f07b596638eb67798a14a142892634 | c777c32c8e484e195053731103c5e52af26a25d1 | /src/analysis/normed_space/quaternion_exponential.lean | 4a6786af9568d642e2e99278407d2972bc7ff131 | [
"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 | 5,409 | lean | /-
Copyright (c) 2023 Eric Wieser. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Eric Wieser
-/
import analysis.quaternion
import analysis.normed_space.exponential
import analysis.special_functions.trigonometric.series
/-!
# Lemmas about `exp` on `quaternion`s
This ... |
6c396bb80629032e34da3c058381c84aa854a6cf | e429a7c31201d4c56a2716f77a99c4831967b0de | /decidable_relations.lean | e710bd1a7a5a112e76aa8efcff4092c070a4a412 | [] | no_license | jthickstun/lean | cdb5ee8ec78294167d771a6167c0947419afa9eb | 8254b987f06be1f98ef2e0cc33b7d4655d77dc85 | refs/heads/master | 1,620,156,057,836 | 1,557,865,724,000 | 1,557,865,724,000 | 106,618,304 | 8 | 1 | null | null | null | null | UTF-8 | Lean | false | false | 8,810 | lean | import .definitions
import .nat_extra
import .logic_extra
namespace nt
/-
I don't think we need this, but it's easy enough to prove.
This establishes the connection between the two computable properties.
-/
lemma prime_dichotomy {n : ℕ} (h : n ≠ 0 ∧ n ≠ 1) : is_prime n = tt ↔ is_composite n = ff :=
begin
split; int... |
6f646654512b1bbe861794787da9bcef66667fb8 | 57c233acf9386e610d99ed20ef139c5f97504ba3 | /src/field_theory/polynomial_galois_group.lean | a06b820d82d4cefaef1209a6509437e004239bf0 | [
"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 | 21,908 | lean | /-
Copyright (c) 2020 Thomas Browning, Patrick Lutz. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Thomas Browning, Patrick Lutz
-/
import group_theory.perm.cycle_type
import analysis.complex.polynomial
import field_theory.galois
/-!
# Galois Groups of Polynomials
... |
ac645a15631734f55fe38a6449ea917f2b274df5 | efce24474b28579aba3272fdb77177dc2b11d7aa | /src/homotopy_theory/topological_spaces/pair.lean | ef8bd37d5195e06a12307bd3d72aa1713d4e6570 | [
"Apache-2.0"
] | permissive | rwbarton/lean-homotopy-theory | cff499f24268d60e1c546e7c86c33f58c62888ed | 39e1b4ea1ed1b0eca2f68bc64162dde6a6396dee | refs/heads/lean-3.4.2 | 1,622,711,883,224 | 1,598,550,958,000 | 1,598,550,958,000 | 136,023,667 | 12 | 6 | Apache-2.0 | 1,573,187,573,000 | 1,528,116,262,000 | Lean | UTF-8 | Lean | false | false | 14,327 | lean | import category_theory.colimit_lemmas
import homotopy_theory.formal.cylinder.hep
import .category
import .colimits
import .cylinder
import .homeomorphism
import .inter_union
import .smush
noncomputable theory
open set
open category_theory (hiding preimage_id)
local notation f ` ∘ `:80 g:80 := g ≫ f
namespace homot... |
5ff382ff7eed2475aa5c22b5ffd46f214bdcb62d | d5bef83c55d40cb88f9a01b755c882a93348a847 | /library/init/coe.lean | 2fb3d5c46208831e69ea30323f919d89aab6ee0f | [
"Apache-2.0"
] | permissive | urkud/lean | 587d78216e1f0c7f651566e9e92cf8ade285d58d | 3526539070ea6268df5dd373deeb3ac8b9621952 | refs/heads/master | 1,660,171,634,921 | 1,657,873,466,000 | 1,657,873,466,000 | 249,789,456 | 0 | 0 | Apache-2.0 | 1,585,075,263,000 | 1,585,075,263,000 | null | UTF-8 | Lean | false | false | 7,601 | 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.data.list.basic init.data.subtype.basic init.data.prod
/-! # Coercions and lifts
The elaborator tries to insert coercions automatica... |
7bbea90bcda916bb4eff632b3af4f2bf8dec249b | e0f9ba56b7fedc16ef8697f6caeef5898b435143 | /src/data/pequiv.lean | 480d5cc2f271d909baa2d02f78867f6e8912779c | [
"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 | 11,198 | lean | /-
Copyright (c) 2019 Chris Hughes. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Chris Hughes
-/
import data.set.lattice
universes u v w x
/-- A `pequiv` is a partial equivalence, a representation of a bijection between a subset
of `α` and a subset of `β` -/
stru... |
dd0e3d664c74bde20cf77029c0bee92b4ab60359 | 5ec8f5218a7c8e87dd0d70dc6b715b36d61a8d61 | /lib.lean | 4ff39b6178b356fd7ab477a4c2c158503c97d479 | [] | no_license | mbrodersen/kremlin | f9f2f9dd77b9744fe0ffd5f70d9fa0f1f8bd8cec | d4665929ce9012e93a0b05fc7063b96256bab86f | refs/heads/master | 1,624,057,268,130 | 1,496,957,084,000 | 1,496,957,084,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 7,339 | lean | import algebra.ring data.hash_map data.num.lemmas
instance : has_coe ℕ+ ℕ := ⟨λn, n.1⟩
theorem to_bool_iff (p : Prop) [d : decidable p] : to_bool p ↔ p :=
match d with
| is_true hp := ⟨λh, hp, λ_, rfl⟩
| is_false hnp := ⟨λh, bool.no_confusion h, λhp, absurd hp hnp⟩
end
theorem to_bool_true {p : Prop} [decidable p] :... |
98fe768f8a79f6e7376a67877a2546df6805e99f | 2bafba05c98c1107866b39609d15e849a4ca2bb8 | /src/week_8/ideas/Part_A_G_modules.lean | ee9e298ac9a3e3c2f506ff6231adf1ddeefd6aa4 | [
"Apache-2.0"
] | permissive | ImperialCollegeLondon/formalising-mathematics | b54c83c94b5c315024ff09997fcd6b303892a749 | 7cf1d51c27e2038d2804561d63c74711924044a1 | refs/heads/master | 1,651,267,046,302 | 1,638,888,459,000 | 1,638,888,459,000 | 331,592,375 | 284 | 24 | Apache-2.0 | 1,669,593,705,000 | 1,611,224,849,000 | Lean | UTF-8 | Lean | false | false | 19,342 | lean | -- always import the tactics, we are mathematicians
import tactic
-- import the theory of G-module homomorphisms, for G a group
import algebra.group_action_hom
-- for the theory of sub-G-modules
import group_theory.group_action.sub_mul_action
/-
# Introduction to G-modules in Lean
Let `G` be a group (with group law ... |
748610834da5f29a07535a70bf51cd4bd79ad322 | a9d0fb7b0e4f802bd3857b803e6c5c23d87fef91 | /tests/lean/run/490.lean | 7d963f6d6218f86029112465eaea08217d1176d1 | [
"Apache-2.0"
] | permissive | soonhokong/lean-osx | 4a954262c780e404c1369d6c06516161d07fcb40 | 3670278342d2f4faa49d95b46d86642d7875b47c | refs/heads/master | 1,611,410,334,552 | 1,474,425,686,000 | 1,474,425,686,000 | 12,043,103 | 5 | 1 | null | null | null | null | UTF-8 | Lean | false | false | 116 | lean | structure {u} foo : Type (u+2) :=
(elim : Type u → Type u)
set_option pp.universes true
check foo.elim
check foo
|
bfb09ed85e0c7527d577b6939e1502e7dfafdc2b | 5e3548e65f2c037cb94cd5524c90c623fbd6d46a | /src_icannos_totilas/aops/2001-USAMO-Problem_3.lean | 7f679e228200594ff320a147032617e690847458 | [] | no_license | ahayat16/lean_exos | d4f08c30adb601a06511a71b5ffb4d22d12ef77f | 682f2552d5b04a8c8eb9e4ab15f875a91b03845c | refs/heads/main | 1,693,101,073,585 | 1,636,479,336,000 | 1,636,479,336,000 | 415,000,441 | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 195 | lean | import data.real.basic
import data.real.nnreal
theorem USAMO_Problem_3_2001 (a b c : nnreal) :
a^2 + b^2 + c^2 + a*b*c = 5
→ 0 ≤ a*b+b*c+c*a - a*b*c ∧ a*b+b*c+c*a - a*b*c ≤ 2 := sorry |
83dd0a81b547e8b4f4c6402c613f3e13c2480cdb | 94e33a31faa76775069b071adea97e86e218a8ee | /src/order/boolean_algebra.lean | d57becb7307d8b63ec422005d7f194885f026fe2 | [
"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 | 42,770 | 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, Bryan Gin-ge Chen
-/
import order.bounded_order
/-!
# (Generalized) Boolean algebras
A Boolean algebra is a bounded distributive lattice with a complement operator. Bo... |
6ee5b5c8afaef9fc3925d7ea86397c4b5096149a | 08bd4ba4ca87dba1f09d2c96a26f5d65da81f4b4 | /src/Lean/Elab/Tactic/ElabTerm.lean | 3c1a7f8ad3ea27e11abe0a6b650576bdc657f2ef | [
"LLVM-exception",
"NCSA",
"LGPL-3.0-only",
"LicenseRef-scancode-inner-net-2.0",
"BSD-3-Clause",
"LGPL-2.0-or-later",
"Spencer-94",
"LGPL-2.1-or-later",
"HPND",
"LicenseRef-scancode-pcre",
"ISC",
"LGPL-2.1-only",
"Apache-2.0",
"LicenseRef-scancode-other-permissive",
"SunPro",
"CMU-Mach"... | permissive | gebner/lean4 | d51c4922640a52a6f7426536ea669ef18a1d9af5 | 8cd9ce06843c9d42d6d6dc43d3e81e3b49dfc20f | refs/heads/master | 1,685,732,780,391 | 1,672,962,627,000 | 1,673,459,398,000 | 373,307,283 | 0 | 0 | Apache-2.0 | 1,691,316,730,000 | 1,622,669,271,000 | Lean | UTF-8 | Lean | false | false | 17,466 | lean | /-
Copyright (c) 2020 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Leonardo de Moura
-/
import Lean.Meta.Tactic.Constructor
import Lean.Meta.Tactic.Assert
import Lean.Meta.Tactic.Clear
import Lean.Meta.Tactic.Rename
import Lean.Elab.Tactic.Basi... |
ed5d4b7047e6ede5700618ce6c0862bc3fccc6d7 | b147e1312077cdcfea8e6756207b3fa538982e12 | /order/basic.lean | be07fdb624ee658fc4bb78aec041050099275774 | [
"Apache-2.0"
] | permissive | SzJS/mathlib | 07836ee708ca27cd18347e1e11ce7dd5afb3e926 | 23a5591fca0d43ee5d49d89f6f0ee07a24a6ca29 | refs/heads/master | 1,584,980,332,064 | 1,532,063,841,000 | 1,532,063,841,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 14,569 | lean | /-
Copyright (c) 2014 Jeremy Avigad. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Jeremy Avigad, Mario Carneiro
-/
import tactic.interactive logic.basic data.sum data.set.basic algebra.order
open function
/- TODO: automatic construction of dual definitions / theorem... |
2840427d052115274f4104bd2f19bc2aec5df666 | 618003631150032a5676f229d13a079ac875ff77 | /src/tactic/omega/nat/form.lean | 7a14db21bdbeb4b483f34177d8969e3ff60fde50 | [
"Apache-2.0"
] | permissive | awainverse/mathlib | 939b68c8486df66cfda64d327ad3d9165248c777 | ea76bd8f3ca0a8bf0a166a06a475b10663dec44a | refs/heads/master | 1,659,592,962,036 | 1,590,987,592,000 | 1,590,987,592,000 | 268,436,019 | 1 | 0 | Apache-2.0 | 1,590,990,500,000 | 1,590,990,500,000 | null | UTF-8 | Lean | false | false | 5,769 | lean | /- Copyright (c) 2019 Seul Baek. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Author: Seul Baek
Linear natural number arithmetic preformulas in pre-normalized preform. -/
import tactic.omega.nat.preterm
namespace omega
namespace nat
/-- Intermediate shadow syntax for LNA ... |
787fd62389ac16d02ccc64cb6b51fe7af50f7bca | 556aeb81a103e9e0ac4e1fe0ce1bc6e6161c3c5e | /src/starkware/cairo/common/cairo_secp/verification/verification/signature_recover_public_key_assert_le_soundness.lean | efb9656f9fd225bf6a0946f0b4c5bb2c7883d5c5 | [] | permissive | starkware-libs/formal-proofs | d6b731604461bf99e6ba820e68acca62a21709e8 | f5fa4ba6a471357fd171175183203d0b437f6527 | refs/heads/master | 1,691,085,444,753 | 1,690,507,386,000 | 1,690,507,386,000 | 410,476,629 | 32 | 9 | Apache-2.0 | 1,690,506,773,000 | 1,632,639,790,000 | Lean | UTF-8 | Lean | false | false | 4,199 | lean | /-
File: signature_recover_public_key_assert_le_soundness.lean
Autogenerated file.
-/
import starkware.cairo.lean.semantics.soundness.hoare
import .signature_recover_public_key_code
import ..signature_recover_public_key_spec
import .signature_recover_public_key_assert_nn_soundness
open tactic
open starkware.cairo.com... |
ca680250b500ad8ba6a8629aa8693dea531ffd85 | 302c785c90d40ad3d6be43d33bc6a558354cc2cf | /src/category_theory/subterminal.lean | 856b29724327fbe0d5040dede61082fef6798b59 | [
"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 | 6,166 | 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.shapes.terminal
import category_theory.limits.shapes.binary_products
import category_theory.subobject.basic
/-!
# Subterminal objects
Subt... |
3b6dbc6ac9c986d7aba85d266d2e6aea062834e6 | 35677d2df3f081738fa6b08138e03ee36bc33cad | /src/topology/stone_cech.lean | 65632b03c6bcd76079352bf21baa1db50c7edc32 | [
"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 | 11,303 | 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 topology.dense_embedding
/-! # Stone-Čech compactification
Construction of the Stone-Čech compactification using ultrafilters.
Parts of the formal... |
afa4a4361b3d9b4f55b81d6c1efa14d6271d1594 | 35677d2df3f081738fa6b08138e03ee36bc33cad | /src/logic/function.lean | 4a3c223b0c0deb5a0a987b9b52178db57098062a | [
"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 | 12,331 | lean | /-
Copyright (c) 2016 Johannes Hölzl. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Johannes Hölzl, Mario Carneiro
Miscellaneous function constructions and lemmas.
-/
import logic.basic data.option.defs
universes u v w
namespace function
section
variables {α : Sor... |
1c60dd6f4face38f2942f455e3cbf9b8502c8f5c | a9d0fb7b0e4f802bd3857b803e6c5c23d87fef91 | /library/algebra/relation.lean | 3fd9c70ced6563486005d4a47b1f1c54c6b16c99 | [
"Apache-2.0"
] | permissive | soonhokong/lean-osx | 4a954262c780e404c1369d6c06516161d07fcb40 | 3670278342d2f4faa49d95b46d86642d7875b47c | refs/heads/master | 1,611,410,334,552 | 1,474,425,686,000 | 1,474,425,686,000 | 12,043,103 | 5 | 1 | null | null | null | null | UTF-8 | Lean | false | false | 4,460 | lean | /-
Copyright (c) 2014 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Author: Jeremy Avigad
General properties of relations, and classes for equivalence relations and congruences.
-/
namespace relation
/- properties of binary relations -/
section
var... |
4a2205e16214bb7461b9bf6ceccffbe5247ec9d2 | 74addaa0e41490cbaf2abd313a764c96df57b05d | /Mathlib/analysis/mean_inequalities.lean | a20f353d38f340c8e6ad7f611f5ba177541a1aa5 | [] | 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 | 29,486 | lean | /-
Copyright (c) 2019 Yury Kudryashov. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Yury Kudryashov, Sébastien Gouëzel, Rémy Degenne
-/
import Mathlib.PrePort
import Mathlib.Lean3Lib.init.default
import Mathlib.analysis.convex.specific_functions
import Mathlib.analys... |
83ecbae7e7b6cc2841148389de2313c72e5953ca | cc060cf567f81c404a13ee79bf21f2e720fa6db0 | /lean/20171217-refl.lean | 50dc8672078f6be2b98c7bc290d46ec78d3d9e7a | [
"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 | 2,470 | lean | structure {u v} Category :=
( Obj : Type u )
( Hom : Obj → Obj → Type v )
( identity : Π X : Obj, Hom X X )
( compose : Π { X Y Z : Obj }, Hom X Y → Hom Y Z → Hom X Z )
( left_identity : ∀ { X Y : Obj } (f : Hom X Y), compose (identity X) f = f )
attribute [simp] Category.left_identity
structure {u1 v... |
8103f2ad1a308300f3b6306837774911510e51d3 | 05f637fa14ac28031cb1ea92086a0f4eb23ff2b1 | /src/builtin/lean2cpp.lean | 0da5c219b9a79c5fa289f3d223d08d4f02404b7c | [
"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 | 1,130 | lean | (*
-- Auxiliary script for generating .cpp files that define
-- constants defined in Lean
local env = get_environment()
local num_imports = 0
print('/*')
print('Copyright (c) 2013 Microsoft Corporation. All rights reserved.')
print('Released under Apache 2.0 license as described in the file LICENSE.')
print('*/... |
80be2ea724a5b6a5a1a9b9ceb9823a5467772855 | 4727251e0cd73359b15b664c3170e5d754078599 | /src/category_theory/sites/types.lean | dcbea865d72c18f30ec6d33ac48fe1bd770d16a6 | [
"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,623 | 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 category_theory.sites.canonical
/-!
# Grothendieck Topology and Sheaves on the Category of Types
In this file we define a Grothendieck topology on the category of typ... |
d332ddd9fce1b6b2a7cbb89344ba367968d14293 | 9be442d9ec2fcf442516ed6e9e1660aa9071b7bd | /src/Lean/Server/Requests.lean | cf50ff0ab2b1bf2f94bad5ca04014934d6d6eb78 | [
"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 | 10,018 | lean | /-
Copyright (c) 2021 Wojciech Nawrocki. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Wojciech Nawrocki, Marc Huisinga
-/
import Lean.DeclarationRange
import Lean.Data.Json
import Lean.Data.Lsp
import Lean.Elab.Command
import Lean.Server.FileSource
import Lean.Ser... |
d77ad29fec464728233f566aede5a7e06ddc7f99 | 9dc8cecdf3c4634764a18254e94d43da07142918 | /src/probability/cond_count.lean | 86f1aef08120ef3f00886a89644742a6ae0c1242 | [
"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,779 | lean | /-
Copyright (c) 2022 Kexing Ying. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Kexing Ying, Bhavik Mehta
-/
import probability.conditional_probability
/-!
# Classical probability
The classical formulation of probability states that the probability of an event occu... |
1f1c507346b2bb2ec0eed8a5ff9cf4fc279e47fe | 2eab05920d6eeb06665e1a6df77b3157354316ad | /src/group_theory/perm/fin.lean | ddaedcfaaaa89936bbbe82f4745b4d171e21976c | [
"Apache-2.0"
] | permissive | ayush1801/mathlib | 78949b9f789f488148142221606bf15c02b960d2 | ce164e28f262acbb3de6281b3b03660a9f744e3c | refs/heads/master | 1,692,886,907,941 | 1,635,270,866,000 | 1,635,270,866,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 10,755 | 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 data.equiv.fin
import data.equiv.fintype
import group_theory.perm.option
import group_theory.perm.cycle_type
/-!
# Permutations of `fin n`
-/
open equiv
/-- Permut... |
22233d2e393cb780006d28a93a7b5c02f250cfb5 | cc060cf567f81c404a13ee79bf21f2e720fa6db0 | /lean/20170512-force-tactic-error.lean | 1a439d6cfaa407c9656f64e42da5157c71ae1bb7 | [
"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 | 644 | lean | open tactic
meta def force { α : Type } (t : tactic α) : tactic α :=
do gs ← get_goals,
a ← t,
gs' ← get_goals,
guard (gs ≠ gs') <|> fail "force tactic failed",
return a
namespace tactic.interactive
meta def force (t : itactic) : tactic unit := _root_.force t
end tactic.interactive
set_option... |
dc40cc558f75c346457ae76377a558e74f87bfed | 4d2583807a5ac6caaffd3d7a5f646d61ca85d532 | /src/data/equiv/basic.lean | 773448e82a5b8aa4d95bfaf6feeb0329bc9b1874 | [
"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 | 85,992 | lean | /-
Copyright (c) 2015 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Leonardo de Moura, Mario Carneiro
-/
import data.prod
import data.sum
import data.subtype
import data.sigma.basic
import data.option.basic
import logic.function.basic
import log... |
50bc7a861b3c74612480015131d473634e56a24f | 1abd1ed12aa68b375cdef28959f39531c6e95b84 | /src/measure_theory/function/l1_space.lean | 2dce33d6721a443e1f52b6ab2b3eda874b988b57 | [
"Apache-2.0"
] | permissive | jumpy4/mathlib | d3829e75173012833e9f15ac16e481e17596de0f | af36f1a35f279f0e5b3c2a77647c6bf2cfd51a13 | refs/heads/master | 1,693,508,842,818 | 1,636,203,271,000 | 1,636,203,271,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 41,962 | lean | /-
Copyright (c) 2019 Zhouhang Zhou. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Zhouhang Zhou
-/
import measure_theory.function.lp_space
/-!
# Integrable functions and `L¹` space
In the first part of this file, the predicate `integrable` is defined and basic pro... |
254c3ebfbe989145a291388bad15a063ee884ffa | 649957717d58c43b5d8d200da34bf374293fe739 | /src/algebra/group/hom.lean | 345e1da5dc8e1f4c5ebabef4e901ae0dc35d4238 | [
"Apache-2.0"
] | permissive | Vtec234/mathlib | b50c7b21edea438df7497e5ed6a45f61527f0370 | fb1848bbbfce46152f58e219dc0712f3289d2b20 | refs/heads/master | 1,592,463,095,113 | 1,562,737,749,000 | 1,562,737,749,000 | 196,202,858 | 0 | 0 | Apache-2.0 | 1,562,762,338,000 | 1,562,762,337,000 | null | UTF-8 | Lean | false | false | 7,687 | lean | /-
Copyright (c) 2014 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
Homomorphisms of multiplicative and additive (semi)groups and monoids.
-/
import algebra.gr... |
53cb42acdcf2724a8056960dbab728a368c82b8d | 57fdc8de88f5ea3bfde4325e6ecd13f93a274ab5 | /data/list/basic.lean | 6207a5a68250efc0053f3f1ad62b48cc01c64793 | [
"Apache-2.0"
] | permissive | louisanu/mathlib | 11f56f2d40dc792bc05ee2f78ea37d73e98ecbfe | 2bd5e2159d20a8f20d04fc4d382e65eea775ed39 | refs/heads/master | 1,617,706,993,439 | 1,523,163,654,000 | 1,523,163,654,000 | 124,519,997 | 0 | 0 | Apache-2.0 | 1,520,588,283,000 | 1,520,588,283,000 | null | UTF-8 | Lean | false | false | 126,925 | lean | /-
Copyright (c) 2014 Parikshit Khanna. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Parikshit Khanna, Jeremy Avigad, Leonardo de Moura, Floris van Doorn, Mario Carneiro
Basic properties of lists.
-/
import tactic.interactive algebra.group logic.basic logic.function... |
a95f2acd90b58b001e7a6f85bfab8e1c65cad425 | 4fa161becb8ce7378a709f5992a594764699e268 | /src/data/quot.lean | 5d54bee3e82f1c90477adebdd69ce9b6b888c3b7 | [
"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 | 11,940 | lean | /-
Copyright (c) 2017 Johannes Hölzl. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Johannes Hölzl
-/
import logic.relator
/-!
# Quotients -- extends the core library
-/
variables {α : Sort*} {β : Sort*}
namespace setoid
lemma ext {α : Sort*} :
∀{s t : setoid α}... |
3927c4bd5cfa91579d371f627492033ef860aff4 | 26ac254ecb57ffcb886ff709cf018390161a9225 | /src/order/filter/germ.lean | 24cf741580b4d2bfdf02f2d08c10306ad4452a26 | [
"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 | 21,469 | lean | /-
Copyright (c) 2020 Yury G. Kudryashov. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Yury G. Kudryashov, Abhimanyu Pallavi Sudhir
-/
import order.filter.basic
import algebra.pi_instances
/-!
# Germ of a function at a filter
The germ of a function `f : α → β` at a... |
ebce5a18109837ee4f968f1ea39c80a26de1d0d6 | bb31430994044506fa42fd667e2d556327e18dfe | /src/number_theory/padics/padic_integers.lean | b70cfcbe739567519d672c29c34506d0b61ccfc4 | [
"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 | 21,437 | lean | /-
Copyright (c) 2018 Robert Y. Lewis. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Robert Y. Lewis, Mario Carneiro, Johan Commelin
-/
import number_theory.padics.padic_numbers
import ring_theory.discrete_valuation_ring
import topology.metric_space.cau_seq_filter
/-... |
6fd23382d1e93dffb82f839e2d7e21474fa98d68 | b7f22e51856f4989b970961f794f1c435f9b8f78 | /hott/types/eq.hlean | 8941433ee7e6a72e09a83bd61f849af67ab972b1 | [
"Apache-2.0"
] | permissive | soonhokong/lean | cb8aa01055ffe2af0fb99a16b4cda8463b882cd1 | 38607e3eb57f57f77c0ac114ad169e9e4262e24f | refs/heads/master | 1,611,187,284,081 | 1,450,766,737,000 | 1,476,122,547,000 | 11,513,992 | 2 | 0 | null | 1,401,763,102,000 | 1,374,182,235,000 | C++ | UTF-8 | Lean | false | false | 21,541 | hlean | /-
Copyright (c) 2014 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 path types (identity types)
-/
import types.sigma
open eq sigma sigma.ops equiv is_equiv is_trunc
-- TODO: Rename tra... |
a6061f8408d05d7a6462963dd21251bc8dae0fa2 | 63abd62053d479eae5abf4951554e1064a4c45b4 | /src/algebra/category/Group/adjunctions.lean | 760a446178a9b800c1cc036b30de99ef7d9bf88c | [
"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 | 1,818 | lean | /-
Copyright (c) 2019 Scott Morrison. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Scott Morrison, Johannes Hölzl
-/
import algebra.category.Group.basic
import group_theory.free_abelian_group
/-!
The free abelian group on a type is the left adjoint of the
forgetful ... |
1cdfc7c44af25d1602ba6ce7561347240af17333 | f5f7e6fae601a5fe3cac7cc3ed353ed781d62419 | /src/data/pfun.lean | d6bcfb9718ea7597ced7eaac8ce7cafbe691fa3c | [
"Apache-2.0"
] | permissive | EdAyers/mathlib | 9ecfb2f14bd6caad748b64c9c131befbff0fb4e0 | ca5d4c1f16f9c451cf7170b10105d0051db79e1b | refs/heads/master | 1,626,189,395,845 | 1,555,284,396,000 | 1,555,284,396,000 | 144,004,030 | 0 | 0 | Apache-2.0 | 1,533,727,664,000 | 1,533,727,663,000 | null | UTF-8 | Lean | false | false | 22,189 | lean | /-
Copyright (c) 2017 Mario Carneiro. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Author: Mario Carneiro, Jeremy Avigad
-/
import data.set.basic data.equiv.basic data.rel
/-- `roption α` is the type of "partial values" of type `α`. It
is similar to `option α` except the d... |
44698931eb244729f975290b7869a3dbcf057fad | ac2987d8c7832fb4a87edb6bee26141facbb6fa0 | /Mathlib/Data/UInt.lean | 880425aa4b3e8d4d3a03171054c960f5e0771eff | [
"Apache-2.0"
] | permissive | AurelienSaue/mathlib4 | 52204b9bd9d207c922fe0cf3397166728bb6c2e2 | 84271fe0875bafdaa88ac41f1b5a7c18151bd0d5 | refs/heads/master | 1,689,156,096,545 | 1,629,378,840,000 | 1,629,378,840,000 | 389,648,603 | 0 | 0 | Apache-2.0 | 1,627,307,284,000 | 1,627,307,284,000 | null | UTF-8 | Lean | false | false | 1,094 | lean |
theorem Fin.val_eq_of_lt : a < n.succ → (@Fin.ofNat n a).val = a := Nat.mod_eq_of_lt
theorem UInt32.val_eq_of_lt : a < UInt32.size → (UInt32.ofNat a).val = a := Fin.val_eq_of_lt
namespace UInt8
/-- Is this an uppercase ASCII letter? -/
def isUpper (c : UInt8) : Bool :=
c ≥ 65 && c ≤ 90
/-- Is this a lowercase AS... |
770048ed1a689a298ff9e5614a9b2fa09733f290 | 4727251e0cd73359b15b664c3170e5d754078599 | /src/category_theory/subobject/basic.lean | 5a8913a0d881107277a743dc09d3271893cb2fba | [
"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 | 22,811 | lean | /-
Copyright (c) 2020 Bhavik Mehta. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Bhavik Mehta, Scott Morrison
-/
import category_theory.subobject.mono_over
import category_theory.skeletal
import tactic.elementwise
import tactic.apply_fun
/-!
# Subobjects
We define ... |
0b814ba67444f4b48613202054b24608c2910feb | bbecf0f1968d1fba4124103e4f6b55251d08e9c4 | /src/algebra/category/CommRing/basic.lean | 473fa3c0c10e28ae2fad26b4cd35da0c2ba92883 | [
"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 | 8,701 | lean | /-
Copyright (c) 2018 Scott Morrison. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Scott Morrison, Johannes Hölzl, Yury Kudryashov
-/
import algebra.category.Group.basic
import data.equiv.ring
/-!
# Category instances for semiring, ring, comm_semiring, and comm_ring... |
fe584d6276c90f70fd6df390e2d3d27a737e1b77 | d406927ab5617694ec9ea7001f101b7c9e3d9702 | /src/data/enat/basic.lean | 8c2a1a9271b131053443b81681f8667ba6d27777 | [
"Apache-2.0"
] | permissive | alreadydone/mathlib | dc0be621c6c8208c581f5170a8216c5ba6721927 | c982179ec21091d3e102d8a5d9f5fe06c8fafb73 | refs/heads/master | 1,685,523,275,196 | 1,670,184,141,000 | 1,670,184,141,000 | 287,574,545 | 0 | 0 | Apache-2.0 | 1,670,290,714,000 | 1,597,421,623,000 | Lean | UTF-8 | Lean | false | false | 3,650 | lean | /-
Copyright (c) 2022 Yury Kudryashov. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Yury Kudryashov
-/
import data.nat.lattice
import data.nat.succ_pred
import algebra.char_zero.lemmas
import algebra.order.sub.with_top
import algebra.order.ring.with_top
/-!
# Defini... |
b0a1c515f54c9ec66615a4dee084ca602fa18ee7 | 32da3d0f92cab08875472ef6cacc1931c2b3eafa | /src/topology/algebra/ordered.lean | f3318a5668521029c67c200b87d3ee179460a4ac | [
"Apache-2.0"
] | permissive | karthiknadig/mathlib | b6073c3748860bfc9a3e55da86afcddba62dc913 | 33a86cfff12d7f200d0010cd03b95e9b69a6c1a5 | refs/heads/master | 1,676,389,371,851 | 1,610,061,127,000 | 1,610,061,127,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 150,117 | 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, Yury Kudryashov
-/
import tactic.linarith
import tactic.tfae
import algebra.archimedean
import algebra.group.pi
import algebra.ordered_ring
import order... |
113039a17bc9b46980cd781a4ddfc2e9215383c4 | 0845ae2ca02071debcfd4ac24be871236c01784f | /tests/lean/run/inliner_loop.lean | 07cfc492c36d8d5a70c1804dae672943fcdd564c | [
"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 | 138 | lean | unsafe inductive t
| mk : (t → t) → t
unsafe def loop' : t → t
| (t.mk f) := f (t.mk f)
unsafe def loop : t :=
loop' (t.mk loop')
|
e164d561a0500eb01ce59c61e8123939a132364c | 35677d2df3f081738fa6b08138e03ee36bc33cad | /src/linear_algebra/direct_sum_module.lean | 85ad671c6fe22125f2aec8c795681e7f7e776140 | [
"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,501 | lean | /-
Copyright (c) 2018 Kenny Lau. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Kenny Lau
Direct sum of modules over commutative rings, indexed by a discrete type.
-/
import algebra.direct_sum
import linear_algebra.basic
universes u v w u₁
variables (R : Type u) [r... |
0571db362fa11221e9502fc80b2f8550d951284a | 4727251e0cd73359b15b664c3170e5d754078599 | /src/order/max.lean | e42895c26e56d97a8af4be2d09e35034b3a31c9a | [
"Apache-2.0"
] | permissive | Vierkantor/mathlib | 0ea59ac32a3a43c93c44d70f441c4ee810ccceca | 83bc3b9ce9b13910b57bda6b56222495ebd31c2f | refs/heads/master | 1,658,323,012,449 | 1,652,256,003,000 | 1,652,256,003,000 | 209,296,341 | 0 | 1 | Apache-2.0 | 1,568,807,655,000 | 1,568,807,655,000 | null | UTF-8 | Lean | false | false | 8,577 | lean | /-
Copyright (c) 2014 Jeremy Avigad. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Jeremy Avigad, Yury Kudryashov, Yaël Dillies
-/
import order.synonym
/-!
# Minimal/maximal and bottom/top elements
This file defines predicates for elements to be minimal/maximal or b... |
0ba4fb833b72121b9a235bb2879b06e42f2b49d2 | 4fa161becb8ce7378a709f5992a594764699e268 | /src/tactic/core.lean | 453060f79c53634bc529c1baf316ae25a31e2d41 | [
"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 | 84,300 | 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... |
505965277605bb7cb221fef1a2ce435f5d4445a9 | 4efff1f47634ff19e2f786deadd394270a59ecd2 | /src/measure_theory/interval_integral.lean | b16ebd3e983f4f611923da122fd68a4f50a0d1a9 | [
"Apache-2.0"
] | permissive | agjftucker/mathlib | d634cd0d5256b6325e3c55bb7fb2403548371707 | 87fe50de17b00af533f72a102d0adefe4a2285e8 | refs/heads/master | 1,625,378,131,941 | 1,599,166,526,000 | 1,599,166,526,000 | 160,748,509 | 0 | 0 | Apache-2.0 | 1,544,141,789,000 | 1,544,141,789,000 | null | UTF-8 | Lean | false | false | 61,499 | lean | /-
Copyright (c) 2020 Yury G. Kudryashov. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Author: Yury G. Kudryashov
-/
import measure_theory.set_integral
import measure_theory.lebesgue_measure
import analysis.calculus.deriv
/-!
# Integral over an interval
In this file we defi... |
ea832632ee110747e3d81d916b9d629be492df1b | fcf3ffa92a3847189ca669cb18b34ef6b2ec2859 | /src/world5/level5.lean | 636a35909030ca8b3355bd712fb9859468fb6df5 | [
"Apache-2.0"
] | permissive | nomoid/lean-proofs | 4a80a97888699dee42b092b7b959b22d9aa0c066 | b9f03a24623d1a1d111d6c2bbf53c617e2596d6a | refs/heads/master | 1,674,955,317,080 | 1,607,475,706,000 | 1,607,475,706,000 | 314,104,281 | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 91 | lean | example (P Q : Type) : P → (Q → P) :=
begin
intro p,
intro q,
exact p,
end
|
01ebea2acd24dc70450d6dac828d656910f1128f | 6b2a480f27775cba4f3ae191b1c1387a29de586e | /group_rep_2/Tools/finite_dimensional_lemma.lean | d4c0be66cb450649e9951069ed9022af946ad10b | [] | no_license | Or7ando/group_representation | a681de2e19d1930a1e1be573d6735a2f0b8356cb | 9b576984f17764ebf26c8caa2a542d248f1b50d2 | refs/heads/master | 1,662,413,107,324 | 1,590,302,389,000 | 1,590,302,389,000 | 258,130,829 | 0 | 1 | null | null | null | null | UTF-8 | Lean | false | false | 2,381 | lean | import linear_algebra.basic
import linear_algebra.basis
open linear_map
open is_basis
universe variables u v w
variables {R : Type v} [comm_ring R]
{X : Type w} [fintype X] [decidable_eq X]
open_locale big_operators
/--
change a map by zero outside a `finset s`.
-/
def updapte_with_zero ( φ : X → R... |
7efba6b398000924ff67a913829bab65886e7ebf | 491068d2ad28831e7dade8d6dff871c3e49d9431 | /tests/lean/run/trick.lean | 9588d1987da07bf095dd873683b9aed2b21164a3 | [
"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 | 782 | lean | import logic
definition proj1 (x : num) (y : num) := x
definition One := 1
(*
local num = Const("num")
local m = mk_metavar("m", num)
local proj1 = Const("proj1")
local zero = Const({"num", "zero"})
local one = Const("One")
local t1 = proj1(m, one)
local t2 = proj1(m, zero)
function test_unify(env, m,... |
d35550cda07be7b70055bfab2029038ec3dde678 | d406927ab5617694ec9ea7001f101b7c9e3d9702 | /src/algebra/free_monoid/count.lean | f526f01c6b8612922ce7b293a3489ebdcc3214cc | [
"Apache-2.0"
] | permissive | alreadydone/mathlib | dc0be621c6c8208c581f5170a8216c5ba6721927 | c982179ec21091d3e102d8a5d9f5fe06c8fafb73 | refs/heads/master | 1,685,523,275,196 | 1,670,184,141,000 | 1,670,184,141,000 | 287,574,545 | 0 | 0 | Apache-2.0 | 1,670,290,714,000 | 1,597,421,623,000 | Lean | UTF-8 | Lean | false | false | 2,602 | lean | /-
Copyright (c) 2022 Yury Kudryashov. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Yury Kudryashov
-/
import algebra.free_monoid.basic
import data.list.count
/-!
# `list.count` as a bundled homomorphism
In this file we define `free_monoid.countp`, `free_monoid.cou... |
cc43dbace2dabd6506988e8599c3e7ca93f5640c | 4b846d8dabdc64e7ea03552bad8f7fa74763fc67 | /library/init/algebra/field.lean | eb1dd758bb7a693985e3cffe9429ff6bd6663213 | [
"Apache-2.0"
] | permissive | pacchiano/lean | 9324b33f3ac3b5c5647285160f9f6ea8d0d767dc | fdadada3a970377a6df8afcd629a6f2eab6e84e8 | refs/heads/master | 1,611,357,380,399 | 1,489,870,101,000 | 1,489,870,101,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 18,305 | lean | /-
Copyright (c) 2014 Robert Lewis. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Robert Lewis, Leonardo de Moura
Structures with multiplicative and additive components, including division rings and fields.
The development is modeled after Isabelle's library.
-/
prel... |
ae0bfdd6686d69cb9d746fec35dd14b578cdf973 | 7cef822f3b952965621309e88eadf618da0c8ae9 | /src/tactic/omega/clause.lean | ca673095bc0970b305913e247b9218f2b85fb7a8 | [
"Apache-2.0"
] | permissive | rmitta/mathlib | 8d90aee30b4db2b013e01f62c33f297d7e64a43d | 883d974b608845bad30ae19e27e33c285200bf84 | refs/heads/master | 1,585,776,832,544 | 1,576,874,096,000 | 1,576,874,096,000 | 153,663,165 | 0 | 2 | Apache-2.0 | 1,544,806,490,000 | 1,539,884,365,000 | Lean | UTF-8 | Lean | false | false | 1,615 | lean | /-
Copyright (c) 2019 Seul Baek. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Author: Seul Baek
(([t₁,...tₘ],[s₁,...,sₙ]) : clause) encodes the constraints
0 = ⟦t₁⟧ ∧ ... ∧ 0 = ⟦tₘ⟧ ∧ 0 ≤ ⟦s₁⟧ ∧ ... ∧ 0 ≤ ⟦sₙ⟧, where
⟦t⟧ is the value of (t : term).
-/
import tactic.omega.te... |
e4e032740a04244533194ec8befd43f6c1388e9f | 6432ea7a083ff6ba21ea17af9ee47b9c371760f7 | /tests/lean/run/etaFirst.lean | 1bba0a6a7af9ff23b476d4c8e0548c010cb197ae | [
"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 | 714 | lean | -- The following fails in the old elaborator
-- theorem tst1 : (fun a b => Nat.add a b) = Nat.add :=
-- Eq.refl (fun a b => Nat.add a b)
theorem tst2 : (fun a b => Nat.add a b) = Nat.add :=
Eq.refl (fun a b => Nat.add a b)
theorem tst3 : (fun a b => Nat.add a b) = Nat.add :=
rfl
theorem tst4 : Nat.add = (fun a b =... |
f02930c3a71d5d1d5297428078b51590082d6a3d | 6432ea7a083ff6ba21ea17af9ee47b9c371760f7 | /tests/lean/run/new_inductive.lean | 28db0848a95f89b74366ae77c66d3f32d88e2954 | [
"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 | 2,094 | lean | universe u v
inductive myList (α : Type u)
| nil : myList α
| cons : α → myList α → myList α
inductive myPair (α : Type u) (β : Type v)
| mk : α → β → myPair α β
mutual
variable (α : Type u) (m : α → Type v)
inductive bla : Nat → Type (max u v)
| mk₁ (n : Nat) : α → boo n → bla (n+1)
| mk₂ (a : α) : m a → String ... |
6a7c244a336ee61f57850e531519119097a507e9 | 74addaa0e41490cbaf2abd313a764c96df57b05d | /Mathlib/Lean3Lib/init/data/to_string.lean | f10b78cefe051424a5f3299834bac2703d00803e | [] | 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 | 891 | lean | /-
Copyright (c) 2016 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Author: Leonardo de Moura
-/
import Mathlib.PrePort
import Mathlib.Lean3Lib.init.data.string.basic
import Mathlib.Lean3Lib.init.data.bool.basic
import Mathlib.Lean3Lib.init.data.subtype.... |
8a1c7ed708cbcc774b2db884268650a2fd49e477 | 74addaa0e41490cbaf2abd313a764c96df57b05d | /Mathlib/category_theory/limits/shapes/kernels_auto.lean | 712ee551823677ad9e1d83778c9a80e5dec4edf9 | [] | 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 | 34,809 | 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 Mathlib.PrePort
import Mathlib.Lean3Lib.init.default
import Mathlib.category_theory.limits.shapes.zero
import Mathlib.PostPort
universes v u u'... |
8a1ec9a79f12fd40528a9bb38c029c6c8b45739a | 367134ba5a65885e863bdc4507601606690974c1 | /src/data/nat/bitwise.lean | abcc07942bb244941e5f1acc317758c4441a5e51 | [
"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,553 | lean | /-
Copyright (c) 2020 Markus Himmel. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Markus Himmel
-/
import tactic.linarith
/-!
# Bitwise operations on natural numbers
In the first half of this file, we provide theorems for reasoning about natural numbers from their
... |
2a132b0efcbdcc946dbc33c55ba4000917234d3a | b11468ab3abb22a54747a1a0e6ffff1005799c4d | /lean/src/test.lean | 66f2977c84c2756befd9b21d3e6260572250a81d | [
"Apache-2.0",
"MIT"
] | permissive | atkirtland/miniF2F | ddefddc11469053c1d93fe6ffbe7924d1c06f2f6 | 1c4b8bffebdf052260d11d47a5ff96dc7d1fb8db | refs/heads/main | 1,693,440,222,185 | 1,633,522,781,000 | 1,633,522,781,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 46,252 | lean | /-
Copyright (c) 2021 OpenAI. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Kunhao Zheng, Kudzo Ahegbebu, Stanislas Polu, David Renshaw, OpenAI GPT-f
-/
import minif2f_import
open_locale big_operators
open_locale nat
open_locale real
open_locale rat
theorem mathd_al... |
c5fdb688177bee3a7d02e555a17c62593eaf0a35 | 4727251e0cd73359b15b664c3170e5d754078599 | /archive/imo/imo2001_q6.lean | 1033cecd787ee3855202a51c5105c17c3be5f349 | [
"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 | 1,632 | lean | /-
Copyright (c) 2021 Sara Díaz Real. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Sara Díaz Real
-/
import data.int.basic
import algebra.associated
import tactic.linarith
import tactic.linear_combination
/-!
# IMO 2001 Q6
Let $a$, $b$, $c$, $d$ be integers with $a ... |
562fcbd7092a9d598ad0ef28b0f4d043c8287ddd | 2c443ed3c09d98edcad40e5d286e53bc5a2ae838 | /src/category_theory_stuff/solutions/chapter_1/section_1.lean | b290e8e1ecebee5e15e7c799fbaa967fcb4f8e05 | [] | no_license | agusakov/riehl-solutions | f8be5e0bbd9b4d691cb8a45b6e4f4cc06aaf6c17 | 3cba620de377649e9269c53e17a65cfccd7db651 | refs/heads/master | 1,668,377,179,927 | 1,593,744,143,000 | 1,593,744,143,000 | 275,534,049 | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 4,977 | lean | import category_theory.category -- this transitively imports
-- category_theory.category
-- category_theory.functor
-- category_theory.natural_transformation
import category_theory.isomorphism
import category_theory.groupoid
import tactic
open category_theory
universes v u
variables (C : Type u) [category.{v} C]
--... |
8e65445680a9b19deefcc123ff5b0ce42fdcc254 | 63abd62053d479eae5abf4951554e1064a4c45b4 | /src/algebra/ring/pi.lean | 9bb6eda05e986fa23f6120c02075e461e576efe6 | [
"Apache-2.0"
] | permissive | Lix0120/mathlib | 0020745240315ed0e517cbf32e738d8f9811dd80 | e14c37827456fc6707f31b4d1d16f1f3a3205e91 | refs/heads/master | 1,673,102,855,024 | 1,604,151,044,000 | 1,604,151,044,000 | 308,930,245 | 0 | 0 | Apache-2.0 | 1,604,164,710,000 | 1,604,163,547,000 | null | UTF-8 | Lean | false | false | 2,817 | lean | /-
Copyright (c) 2018 Simon Hudon. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Simon Hudon, Patrick Massot
-/
import tactic.pi_instances
import algebra.group.pi
import algebra.ring.basic
/-!
# Pi instances for ring
This file defines instances for ring, semiring an... |
e0a91654bdb633ea6c1c5722656d0385e701b7c6 | 3dd1b66af77106badae6edb1c4dea91a146ead30 | /tests/lean/run/n2.lean | f7b9bed10220b9684a192d8ec0e515e21e4b8b44 | [
"Apache-2.0"
] | permissive | silky/lean | 79c20c15c93feef47bb659a2cc139b26f3614642 | df8b88dca2f8da1a422cb618cd476ef5be730546 | refs/heads/master | 1,610,737,587,697 | 1,406,574,534,000 | 1,406,574,534,000 | 22,362,176 | 1 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 600 | lean | variable A : Type.{1}
variable a : A
variable g : A → A
variable f : A → A → A
precedence `|` : 0
(*
local f = Const("f")
local g = Const("g")
local bar = name("|")
local rcurly = name("}")
local lcurly = name("{")
function parse_set()
parser.check_token_next(lcurly, "'{' expected")
local s = parser.... |
14e4314dd603c81333255f6f4d15535e2b1cdbd9 | 66a6486e19b71391cc438afee5f081a4257564ec | /algebra/subgroup.hlean | 9af352dc7e29885e37370a386fbc553e5dfd4ffa | [
"Apache-2.0"
] | permissive | spiceghello/Spectral | c8ccd1e32d4b6a9132ccee20fcba44b477cd0331 | 20023aa3de27c22ab9f9b4a177f5a1efdec2b19f | refs/heads/master | 1,611,263,374,078 | 1,523,349,717,000 | 1,523,349,717,000 | 92,312,239 | 0 | 0 | null | 1,495,642,470,000 | 1,495,642,470,000 | null | UTF-8 | Lean | false | false | 21,104 | hlean | /-
Copyright (c) 2015 Egbert Rijke. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Floris van Doorn, Egbert Rijke, Jeremy Avigad
Basic concepts of group theory
-/
import algebra.group_theory ..move_to_lib ..property
open eq algebra is_trunc sigma sigma.ops prod trunc... |
1fd6ca2c2e8634a4d8d9c8216ae8d6e26fbdde62 | aa101d73b1a3173c7ec56de02b96baa8ca64c42e | /src/exercises/01_equality_rewriting.lean | bcc0bed12a6aa7cee3c6b89f11e1aef24639796a | [
"Apache-2.0"
] | permissive | gihanmarasingha/tutorials | b554d4d53866c493c4341dc13e914b01444e95a6 | 56617114ef0f9f7b808476faffd11e22e4380918 | refs/heads/master | 1,671,141,758,153 | 1,599,173,318,000 | 1,599,173,318,000 | 282,405,870 | 0 | 0 | Apache-2.0 | 1,595,666,751,000 | 1,595,666,750,000 | null | UTF-8 | Lean | false | false | 4,831 | lean | import data.real.basic
/-
One of the earliest kind of proofs one encounters while learning mathematics is proving by
a calculation. It may not sound like a proof, but this is actually using lemmas expressing
properties of operations on numbers. It also uses the fundamental property of equality: if two
mathematical ob... |
cee6c8b398854e1cb2a59594cc8c0c176fd542ba | c777c32c8e484e195053731103c5e52af26a25d1 | /src/linear_algebra/matrix/ldl.lean | f346a739ba6b33d10dfc41a7eae282c18d3742bc | [
"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 | 4,650 | lean | /-
Copyright (c) 2022 Alexander Bentkamp. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Alexander Bentkamp
-/
import analysis.inner_product_space.gram_schmidt_ortho
import linear_algebra.matrix.pos_def
/-! # LDL decomposition
This file proves the LDL-decomposition o... |
1557e959954669ba84a1b2673fa075b269e4c769 | 35677d2df3f081738fa6b08138e03ee36bc33cad | /src/data/list/defs.lean | ef9ecb144811e555cf122d536577a8e51dc03fad | [
"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 | 19,805 | lean | /-
Copyright (c) 2014 Parikshit Khanna. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Parikshit Khanna, Jeremy Avigad, Leonardo de Moura, Floris van Doorn, Mario Carneiro
Extra definitions on lists.
-/
import data.option.defs logic.basic tactic.cache
namespace list
... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.