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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
5480cf37c862356fddc85c0016b98b33aefe0e55 | 367134ba5a65885e863bdc4507601606690974c1 | /test/general_recursion.lean | 5a1d17b148397181aeb4d77306a09c1efefc9d74 | [
"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 | 10,707 | lean | /-
Copyright (c) 2020 Simon Hudon. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Author: Simon Hudon
-/
import tactic.norm_num
import tactic.linarith
import tactic.omega
import control.lawful_fix
import order.category.omega_complete_partial_order
import data.nat.basic
univer... |
23d0272f27435b64c5e7facd1eaa088895ab8a9c | 57c233acf9386e610d99ed20ef139c5f97504ba3 | /src/category_theory/equivalence.lean | 28be1b6de041fa4eb3d4099d85712cc9d1d57a7d | [
"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,308 | lean | /-
Copyright (c) 2017 Scott Morrison. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Tim Baumann, Stephen Morgan, Scott Morrison, Floris van Doorn
-/
import category_theory.fully_faithful
import category_theory.full_subcategory
import category_theory.whiskering
import ... |
4b369c2819ed347f27b4f2f4dd3863f99d7646f1 | 5d166a16ae129621cb54ca9dde86c275d7d2b483 | /library/init/native/procedure.lean | 45c0b5184fb2f3dc21881a3679c964fb57e936f1 | [
"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 | 525 | lean | /-
Copyright (c) 2016 Jared Roesch. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Jared Roesch
-/
prelude
import init.meta.name
import init.meta.expr
meta def procedure :=
name × expr
meta def procedure.to_string : procedure → string
| (n, e) := "def " ++ to_stri... |
e24014597f58e45b43bbe76a3aef5ac9a26acbfb | 592ee40978ac7604005a4e0d35bbc4b467389241 | /Library/generated/mathscheme-lean/UnaryDistributes.lean | 4b0cc1a962654ee410ea4c2526c8d04c574c346e | [] | 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 | 8,416 | 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 UnaryDistributes
structure UnaryDistributes (A : Type) : Type :=
(prim : (A → A))
(op : (A → (A → A)))
(distribute_prim_op : (∀ {x y : A} , (prim (op x y... |
0f2c4cc74bb2e0a2bc9cbc2788b151ded9123f04 | 63abd62053d479eae5abf4951554e1064a4c45b4 | /src/data/int/cast.lean | 92721d3fc512b030e55c33476ef5d058170820c7 | [
"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 | 8,258 | lean | /-
Copyright (c) 2017 Mario Carneiro. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Mario Carneiro
-/
import data.int.basic
import data.nat.cast
open nat
namespace int
/- cast (injection into groups with one) -/
@[simp, push_cast] theorem nat_cast_eq_coe_nat : ∀ n... |
5b82dbc7036538309a30bfea826734bdb992fb76 | e21db629d2e37a833531fdcb0b37ce4d71825408 | /src/mcl/syncablep.lean | d0d049b1decaf2ad59e55f8e881b44f7827b4132 | [] | no_license | fischerman/GPU-transformation-verifier | 614a28cb4606a05a0eb27e8d4eab999f4f5ea60c | 75a5016f05382738ff93ce5859c4cfa47ccb63c1 | refs/heads/master | 1,586,985,789,300 | 1,579,290,514,000 | 1,579,290,514,000 | 165,031,073 | 1 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 11,048 | lean | import mcl.defs
import mcl.rhl
import mcl.lemmas
import mcl.compute_list
import mcl.ts_updates
import syncablep
open parlang
open parlang.thread_state
open parlang.state
open mcl
open mcl.rhl
/-- Copies *var* from tlocal of the nth thread into index n of *m* (forall n). Generally used as an assertion language for Hoa... |
e4501a97fa0693abe1963eda8c472c2738ed3108 | fecda8e6b848337561d6467a1e30cf23176d6ad0 | /src/data/finset/basic.lean | b0cf6b3d4cb19a1ec749f127d5fe92c5c268b617 | [
"Apache-2.0"
] | permissive | spolu/mathlib | bacf18c3d2a561d00ecdc9413187729dd1f705ed | 480c92cdfe1cf3c2d083abded87e82162e8814f4 | refs/heads/master | 1,671,684,094,325 | 1,600,736,045,000 | 1,600,736,045,000 | 297,564,749 | 1 | 0 | null | 1,600,758,368,000 | 1,600,758,367,000 | null | UTF-8 | Lean | false | false | 90,446 | 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, Jeremy Avigad, Minchao Wu, Mario Carneiro
-/
import data.multiset.finset_ops
import tactic.monotonicity
import tactic.apply
/-!
# Finite sets
mathlib has se... |
29bf03c7c08b7d7c730565119ead638aab214247 | 69d4931b605e11ca61881fc4f66db50a0a875e39 | /src/category_theory/sites/sheaf.lean | aec549949d1001282f47617b9010c2da788faf47 | [
"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 | 10,617 | lean | /-
Copyright (c) 2020 Kevin Buzzard, Bhavik Mehta. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Kevin Buzzard, Bhavik Mehta
-/
import category_theory.sites.sheaf_of_types
import category_theory.limits.yoneda
import category_theory.limits.preserves.shapes.equalizers
... |
a706352ccfeca0c91b4fffb8dc9ef4df76095236 | 4727251e0cd73359b15b664c3170e5d754078599 | /test/push_neg.lean | 887ab382dd27659547e8058cdff67711921c5d42 | [
"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 | 2,317 | 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... |
32b59e3de4e309b400c6a391e134bce6339ed803 | ea4aee6b11f86433e69bb5e50d0259e056d0ae61 | /src/tidy/force.lean | c19775b167a6993441333b95df191fd52f3680df | [] | no_license | timjb/lean-tidy | e18feff0b7f0aad08c614fb4d34aaf527bf21e20 | e767e259bf76c69edfd4ab8af1b76e6f1ed67f48 | refs/heads/master | 1,624,861,693,182 | 1,504,411,006,000 | 1,504,411,006,000 | 103,740,824 | 0 | 0 | null | 1,505,553,968,000 | 1,505,553,968,000 | null | UTF-8 | Lean | false | false | 505 | lean | -- Copyright (c) 2017 Scott Morrison. All rights reserved.
-- Released under Apache 2.0 license as described in the file LICENSE.
-- Authors: Scott Morrison
open tactic
meta def force { α : Type } (t : tactic α) : tactic α :=
do
goals ← get_goals,
result ← t,
goals' ← get_goals,
guard (goals ≠ ... |
83fe1d0e0a1eefea8dd016114e3c0654b6221594 | 2eab05920d6eeb06665e1a6df77b3157354316ad | /src/ring_theory/trace.lean | 69e9dae1053c11e98a65ab007f61ddd97241ce2a | [
"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 | 16,246 | 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.bilinear_form
import linear_algebra.matrix.charpoly.coeff
import linear_algebra.determinant
import linear_algebra.vandermonde
import linear_algebra.t... |
14fa93d9d3576368167791065a55691b7de96939 | 55c7fc2bf55d496ace18cd6f3376e12bb14c8cc5 | /src/topology/algebra/monoid.lean | a529e063d121080192abb3f6cbe9d3a24cfb5f8a | [
"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 | 6,136 | 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
Theory of topological monoids.
-/
import topology.continuous_on
import group_theory.submonoid.basic
import deprecated.submonoid
open classical set filt... |
94f47d2fac3c27d8a30eeb5a10f6290b053416f2 | f083c4ed5d443659f3ed9b43b1ca5bb037ddeb58 | /analysis/topology/topological_space.lean | 9cc51f7533984ed28bbffbeebddeb0732609f415 | [
"Apache-2.0"
] | permissive | semorrison/mathlib | 1be6f11086e0d24180fec4b9696d3ec58b439d10 | 20b4143976dad48e664c4847b75a85237dca0a89 | refs/heads/master | 1,583,799,212,170 | 1,535,634,130,000 | 1,535,730,505,000 | 129,076,205 | 0 | 0 | Apache-2.0 | 1,551,697,998,000 | 1,523,442,265,000 | Lean | UTF-8 | Lean | false | false | 58,054 | 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
Theory of topological spaces.
Parts of the formalization is based on the books:
N. Bourbaki: General Topology
I. M. James: Topologies and Uniformit... |
190ba0e3db213ac17ccde880b3f47cf58709b8dc | 7cef822f3b952965621309e88eadf618da0c8ae9 | /src/logic/embedding.lean | 78b42038babec5b46ac5b74542e646f94730c61a | [
"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 | 6,438 | 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
Injective functions.
-/
import data.equiv.basic data.option.basic data.subtype
universes u v w x
namespace function
structure embedding (α : Sort*) (... |
cc82ece8a427acc2acdd00713da2a4b875a37f80 | ba4794a0deca1d2aaa68914cd285d77880907b5c | /src/game/world2/level5.lean | d299382ca3286d3bc19c1f8f33e6937af7ff2a46 | [
"Apache-2.0"
] | permissive | ChrisHughes24/natural_number_game | c7c00aa1f6a95004286fd456ed13cf6e113159ce | 9d09925424da9f6275e6cfe427c8bcf12bb0944f | refs/heads/master | 1,600,715,773,528 | 1,573,910,462,000 | 1,573,910,462,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 1,068 | lean | import mynat.definition -- hide
import mynat.add -- hide
import game.world2.level4 -- hide
namespace mynat -- hide
/- Axiom : one_eq_succ_zero
1 = succ(0)
-/
/-
# Addition World
## Level 5: `succ_eq_add_one`
I've just added `one_eq_succ_zero` (a proof of `1 = succ(0)`) to your list of theorems; this is true
by def... |
ffac7411498a495c6827690a634eb856b9022c81 | fffbc47930dc6615e66ece42324ce57a21d5b64b | /src/tactic/interactive.lean | c5ebe161126ab542c88ba44eb73fcb421dff1824 | [
"Apache-2.0"
] | permissive | skbaek/mathlib | 3caae8ae413c66862293a95fd2fbada3647b1228 | f25340175631cdc85ad768a262433f968d0d6450 | refs/heads/master | 1,588,130,123,636 | 1,558,287,609,000 | 1,558,287,609,000 | 160,935,713 | 0 | 0 | Apache-2.0 | 1,544,271,146,000 | 1,544,271,146,000 | null | UTF-8 | Lean | false | false | 22,415 | lean | /-
Copyright (c) 2017 Mario Carneiro. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Mario Carneiro, Simon Hudon, Sebastien Gouezel, Scott Morrison
-/
import tactic.core data.list.defs
open lean
open lean.parser
local postfix `?`:9001 := optional
local postfix *:9001... |
a30969197b76df9e1ffb414d617a7c5def629038 | 32da3d0f92cab08875472ef6cacc1931c2b3eafa | /src/analysis/special_functions/pow.lean | fbb65a3a64face765e5b8b12b325bcc12ec7842d | [
"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 | 61,295 | lean | /-
Copyright (c) 2018 Chris Hughes. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Chris Hughes, Abhimanyu Pallavi Sudhir, Jean Lo, Calle Sönne, Sébastien Gouëzel,
Rémy Degenne
-/
import analysis.special_functions.trigonometric
import analysis.calculus.extend_deriv
... |
8801ac1a295c9346ed112b16f22db85af4d2cbb9 | 57c233acf9386e610d99ed20ef139c5f97504ba3 | /src/measure_theory/group/prod.lean | d14568da744e7f7de1ca719fea72dcdc416c35eb | [
"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 | 11,242 | lean | /-
Copyright (c) 2021 Floris van Doorn. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Floris van Doorn
-/
import measure_theory.constructions.prod
/-!
# Measure theory in the product of groups
In this file we show properties about measure theory in products of topol... |
8f449a11d42e7e66b1127b55981bbd7bbfdf52c9 | 6065973b1fa7bbacba932011c9e2f32bf7bdd6c1 | /src/data/equiv/basic.lean | e35503af7d6e6a8176ccd8999e3ae69c88759566 | [
"Apache-2.0"
] | permissive | khmacdonald/mathlib | 90a0fa2222369fa69ed2fbfb841b74d2bdfd66cb | 3669cb35c578441812ad30fd967d21a94b6f387e | refs/heads/master | 1,675,863,801,090 | 1,609,761,876,000 | 1,609,761,876,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 84,994 | 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.set.function
/-!
# Equivalence between types
In this file we define two types:
* `equiv α β` a.k.a. `α ≃ β`: a bijective map ... |
9bef3cffab2e4e37e05ec65f41283d69e732602f | d406927ab5617694ec9ea7001f101b7c9e3d9702 | /src/category_theory/bicategory/basic.lean | c69c681a711bf28b2e862db7379b9d49674f2f86 | [
"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 | 19,637 | lean | /-
Copyright (c) 2021 Yuma Mizuno. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Yuma Mizuno
-/
import category_theory.isomorphism
import tactic.slice
/-!
# Bicategories
In this file we define typeclass for bicategories.
A bicategory `B` consists of
* objects `a : ... |
be624aa4bbff4f2cc3b279edcb0d7499a5ad1526 | 4727251e0cd73359b15b664c3170e5d754078599 | /src/data/fintype/fin.lean | 6246fedbb11011568426ae0a1c17ab7e1bb863a0 | [
"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,351 | 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 data.fin.basic
import data.fintype.basic
/-!
# The structure of `fintype (fin n)`
This file contains some basic results about the `fintype` instance for `fin`,
espe... |
5fbed85d6ac98e4760ecdfcc2716a21772a83c3f | fe84e287c662151bb313504482b218a503b972f3 | /src/commutative_algebra/book/sec_elements.lean | 074b8b9067ec9152de3a86ae64d31aec12e30e25 | [] | no_license | NeilStrickland/lean_lib | 91e163f514b829c42fe75636407138b5c75cba83 | 6a9563de93748ace509d9db4302db6cd77d8f92c | refs/heads/master | 1,653,408,198,261 | 1,652,996,419,000 | 1,652,996,419,000 | 181,006,067 | 4 | 1 | null | null | null | null | UTF-8 | Lean | false | false | 40,441 | lean | import algebra.ring data.complex.basic data.zmod.basic
import data.nat.prime data.int.gcd data.nat.choose algebra.gcd_monoid.basic data.finsupp
import data.list.min_max data.polynomial
import data.nat.square_free
import ring_theory.integral_domain
import tactic.ring tactic.squeeze
namespace sec_elements
universes u₀ ... |
54db9134b2828128630507aaeb53d231bd18cfa5 | b2fe74b11b57d362c13326bc5651244f111fa6f4 | /src/analysis/normed_space/inner_product.lean | feceecd1f0f11d0c109867a3ff8de36a9b0f74ad | [
"Apache-2.0"
] | permissive | midfield/mathlib | c4db5fa898b5ac8f2f80ae0d00c95eb6f745f4c7 | 775edc615ecec631d65b6180dbcc7bc26c3abc26 | refs/heads/master | 1,675,330,551,921 | 1,608,304,514,000 | 1,608,304,514,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 81,248 | lean | /-
Copyright (c) 2019 Zhouhang Zhou. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Zhouhang Zhou, Sébastien Gouëzel, Frédéric Dupuis
-/
import linear_algebra.bilinear_form
import linear_algebra.sesquilinear_form
import analysis.special_functions.pow
import topology.m... |
d48d1ffcd94359647b48d8a13c04b5facc8efb2a | 432d948a4d3d242fdfb44b81c9e1b1baacd58617 | /src/data/mv_polynomial/variables.lean | 785cc0105cbc8d097075567031331059399af74e | [
"Apache-2.0"
] | permissive | JLimperg/aesop3 | 306cc6570c556568897ed2e508c8869667252e8a | a4a116f650cc7403428e72bd2e2c4cda300fe03f | refs/heads/master | 1,682,884,916,368 | 1,620,320,033,000 | 1,620,320,033,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 23,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, Johan Commelin, Mario Carneiro
-/
import data.mv_polynomial.monad
import data.set.disjointed
/-!
# Degrees and variables of polynomials
This file establishes many re... |
db6da1d88753cd15f11cbbe3184bbb48475c06f5 | 31f556cdeb9239ffc2fad8f905e33987ff4feab9 | /src/Lean/Elab/Match.lean | e0ed3d50d5422780017e5a4667eb9bcf270e2e02 | [
"Apache-2.0",
"LLVM-exception",
"NCSA",
"LGPL-3.0-only",
"LicenseRef-scancode-inner-net-2.0",
"BSD-3-Clause",
"LGPL-2.0-or-later",
"Spencer-94",
"LGPL-2.1-or-later",
"HPND",
"LicenseRef-scancode-pcre",
"ISC",
"LGPL-2.1-only",
"LicenseRef-scancode-other-permissive",
"SunPro",
"CMU-Mach"... | permissive | tobiasgrosser/lean4 | ce0fd9cca0feba1100656679bf41f0bffdbabb71 | ebdbdc10436a4d9d6b66acf78aae7a23f5bd073f | refs/heads/master | 1,673,103,412,948 | 1,664,930,501,000 | 1,664,930,501,000 | 186,870,185 | 0 | 0 | Apache-2.0 | 1,665,129,237,000 | 1,557,939,901,000 | Lean | UTF-8 | Lean | false | false | 58,941 | 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.Match.Match
import Lean.Meta.GeneralizeVars
import Lean.Meta.ForEachExpr
import Lean.Elab.AuxDiscr
import Lean.Elab.BindersUtil
import Lean... |
ceffa6988621e11197f9a300e3d16c767bd90748 | 74addaa0e41490cbaf2abd313a764c96df57b05d | /Mathlib/Lean3Lib/smt/prove.lean | f1677779e10d28be848b7032f5c6fadd6119c098 | [] | 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 | 82 | lean | import Mathlib.PrePort
import Mathlib.Lean3Lib.init.default
namespace Mathlib
|
3dbb1a4cf3ca5ad15c187bce2481ea13117fe2a3 | 439bc6c3e74a118aa51df633b8e1f24415804d86 | /types.lean | 3616b3adb62f8bea592d9ca9132e6ba6dcfd8de2 | [] | no_license | jcommelin/lt2019_slides | 4ca498db02b5187c5778c21b985126d52d260696 | 3234cd92920d3d4321cc2cef78b48e5fa55be413 | refs/heads/master | 1,586,718,101,957 | 1,546,930,855,000 | 1,546,930,855,000 | 162,697,592 | 1 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 136 | lean | instance types : large_category (Type u) :=
{ hom := λ a b, (a → b),
id := λ a, id,
comp := λ _ _ _ f g, g ∘ f }
|
b1d95ed83e1a89ebf2fe2e6ea384773428d2f4ab | 037dba89703a79cd4a4aec5e959818147f97635d | /src/2022/logic/sheet5.lean | 699e8263fcd6570bd1e098e249d7b65475deed1e | [] | no_license | ImperialCollegeLondon/M40001_lean | 3a6a09298da395ab51bc220a535035d45bbe919b | 62a76fa92654c855af2b2fc2bef8e60acd16ccec | refs/heads/master | 1,666,750,403,259 | 1,665,771,117,000 | 1,665,771,117,000 | 209,141,835 | 115 | 12 | null | 1,640,270,596,000 | 1,568,749,174,000 | Lean | UTF-8 | Lean | false | false | 1,414 | lean | /-
Copyright (c) 2022 Kevin Buzzard. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Author : Kevin Buzzard
-/
import tactic -- imports all the Lean tactics
/-!
# Logic in Lean, example sheet 5 : "iff" (`↔`)
We learn about how to manipulate `P ↔ Q` in Lean.
## Tactics
You'... |
e1aab482d85b8e32a9e5e47b60491a66f8efaf82 | bbecf0f1968d1fba4124103e4f6b55251d08e9c4 | /src/computability/DFA.lean | b5006e4745c4545f0b70c091e8ab3d08bc94a493 | [
"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 | 4,621 | lean | /-
Copyright (c) 2020 Fox Thomson. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Fox Thomson
-/
import data.fintype.basic
import computability.language
import tactic.norm_num
/-!
# Deterministic Finite Automata
This file contains the definition of a Deterministic Fi... |
9e37b17783452b0c800df5823d38fee1a0329b1d | 80cc5bf14c8ea85ff340d1d747a127dcadeb966f | /src/ring_theory/derivation.lean | 7a97554d6916f3d79d40a5682a8bf791286486e9 | [
"Apache-2.0"
] | permissive | lacker/mathlib | f2439c743c4f8eb413ec589430c82d0f73b2d539 | ddf7563ac69d42cfa4a1bfe41db1fed521bd795f | refs/heads/master | 1,671,948,326,773 | 1,601,479,268,000 | 1,601,479,268,000 | 298,686,743 | 0 | 0 | Apache-2.0 | 1,601,070,794,000 | 1,601,070,794,000 | null | UTF-8 | Lean | false | false | 8,057 | lean | /-
Copyright © 2020 Nicolò Cavalleri. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Author: Nicolò Cavalleri.
-/
import algebra.lie_algebra
import ring_theory.algebra_tower
/-!
# Derivations
This file defines derivation. A derivation `D` from the `R`-algebra `A` to the `A`-... |
0d4b09df7114a687099c05e59d498e551204a7db | b7f22e51856f4989b970961f794f1c435f9b8f78 | /tests/lean/run/univ1.lean | b4c32cc0073a9c2eafaea03adbb3c8142c788de4 | [
"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 | 650 | lean | import logic
namespace S1
axiom I : Type
definition F (X : Type) : Type := (X → Prop) → Prop
axiom unfoldd.{l} : I.{l} → F I.{l}
axiom foldd.{l} : F I.{l} → I.{l}
axiom iso1 : ∀x, foldd (unfoldd x) = x
end S1
namespace S2
universe u
axiom I : Type.{u}
definition F (X : Type) : Type := (X → Prop) → Prop
axiom unfold... |
455b91854eec813bd13ebf2ce1be79af2cf40a69 | 35677d2df3f081738fa6b08138e03ee36bc33cad | /src/tactic/core.lean | 4935948bd14f8c64b267f9255df39ccc8c1706b1 | [
"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 | 72,673 | 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 category.basic meta.expr meta.rb_map data.bool
tactic.lean_core_docs tactic.derive_inhabited
univ... |
6ecb4e7e4de10356f8c5ad2b4856c0196cc93f14 | 66a6486e19b71391cc438afee5f081a4257564ec | /homotopy/wedge.hlean | 2e306967acd46a33f284ac1505af118eab420765 | [
"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 | 3,171 | hlean | -- Authors: Floris van Doorn
import homotopy.wedge
open wedge pushout eq prod sum pointed equiv is_equiv unit lift bool option
namespace wedge
variable (A : Type*)
variables {A}
definition add_point_of_wedge_pbool [unfold 2]
(x : A ∨ pbool) : A₊ :=
begin
induction x with a b,
{ exact some a },
{ induction... |
9ebded2f496c762b2b650881931dbbd5f0b481af | 302b541ac2e998a523ae04da7673fd0932ded126 | /tests/bench/list.lean | 638b200d0af2750352f9bdcea8b36918a0039d74 | [] | no_license | mattweingarten/lambdapure | 4aeff69e8e3b8e78ea3c0a2b9b61770ef5a689b1 | f920a4ad78e6b1e3651f30bf8445c9105dfa03a8 | refs/heads/master | 1,680,665,168,790 | 1,618,420,180,000 | 1,618,420,180,000 | 310,816,264 | 2 | 1 | null | null | null | null | UTF-8 | Lean | false | false | 648 | lean |
set_option trace.compiler.ir.init true
inductive L
| Nil
| Cons : Nat -> L -> L
open L
instance : Inhabited L := ⟨Nil⟩
def map : (Nat -> Nat) -> L -> L
| f, Nil => Nil
| f, Cons n l => Cons (f n) (map f l)
def add_one (x:Nat) := x + 1
def map_with_one : (Nat -> Nat -> Nat) -> L -> L
| f,Nil =... |
81272adbe3b02624f64dc06d79ec58a9f1f153ee | 4376c25f060c13471bb89cdb12aeac1d53e53876 | /src/espaces-metriques/custom/seq_continuity.lean | d360484ef1526e369fe44886e5a6406f610f0d8f | [
"MIT"
] | permissive | RaitoBezarius/projet-maths-lean | 8fa7df563d64c256561ab71893c523fc1424b85c | 42356e980e021a20c3468f5ca1639fec01bb934f | refs/heads/master | 1,613,002,128,339 | 1,589,289,282,000 | 1,589,289,282,000 | 244,431,534 | 0 | 1 | MIT | 1,584,312,574,000 | 1,583,169,883,000 | TeX | UTF-8 | Lean | false | false | 1,533 | lean | import .defs
import .sequences
open espace_metrique
open_locale classical
section suites
variables {X:Type} [espace_metrique X]
variables {Y:Type} [espace_metrique Y]
variables {Z:Type} [espace_metrique Z]
-- Définir la continuité séquentielle --/
-- f est continue en L si pour tout (x_n) ∈ ℝ^ℕ convergente de limi... |
49ed8f31ec6a94911b820de6786b07e9299b9977 | e21db629d2e37a833531fdcb0b37ce4d71825408 | /src/use_cases/assign_mcl/proof1.lean | 3d46c750dd9667127e21fb1a81fa62220aae38c8 | [] | no_license | fischerman/GPU-transformation-verifier | 614a28cb4606a05a0eb27e8d4eab999f4f5ea60c | 75a5016f05382738ff93ce5859c4cfa47ccb63c1 | refs/heads/master | 1,586,985,789,300 | 1,579,290,514,000 | 1,579,290,514,000 | 165,031,073 | 1 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 24,466 | lean | /- import mcl
import mcl_rhl
import parlang
import syncablep
import use_cases.assign_mcl
import use_cases.assign_mcl.def
open mcl
open mcl.mclk
open mcl.rhl
open parlang
open parlang.state
open parlang.thread_state
open assign_mcl
namespace assign_mcl
namespace proof1
lemma store_access_elim_idx {sig : signature} {n... |
edbf03c3675387d610061940016d4efc8f658a06 | 22e97a5d648fc451e25a06c668dc03ac7ed7bc25 | /src/category_theory/endomorphism.lean | f811a7f36823c751706878194902dd1166e4022f | [
"Apache-2.0"
] | permissive | keeferrowan/mathlib | f2818da875dbc7780830d09bd4c526b0764a4e50 | aad2dfc40e8e6a7e258287a7c1580318e865817e | refs/heads/master | 1,661,736,426,952 | 1,590,438,032,000 | 1,590,438,032,000 | 266,892,663 | 0 | 0 | Apache-2.0 | 1,590,445,835,000 | 1,590,445,835,000 | null | UTF-8 | Lean | false | false | 2,818 | lean | /-
Copyright (c) 2019 Yury Kudryashov. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Yury Kudryashov, Scott Morrison, Simon Hudon
Definition and basic properties of endomorphisms and automorphisms of an object in a category.
-/
import category_theory.category
import ... |
5e3fabf1c67eb4ef1ceab752e215c82d4d6603ae | 74addaa0e41490cbaf2abd313a764c96df57b05d | /Mathlib/data/finmap_auto.lean | 40b46e1231a8c92cce5d5c957ca129ec92555c06 | [] | 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 | 22,736 | lean | /-
Copyright (c) 2018 Sean Leather. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Sean Leather, Mario Carneiro
-/
import Mathlib.PrePort
import Mathlib.Lean3Lib.init.default
import Mathlib.data.list.alist
import Mathlib.data.finset.basic
import Mathlib.data.pfun
impor... |
c7a70f7d16fe4c348d6baebd9cb700988ee0805f | 8e6cad62ec62c6c348e5faaa3c3f2079012bdd69 | /src/data/polynomial/monomial.lean | 2d7df719a3ca894aac2c8765d8948f0bfb6328a1 | [
"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 | 3,116 | 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
-/
import data.polynomial.basic
/-!
# Univariate monomials
Preparatory lemmas for degree_basic.
-/
noncomputable theory
o... |
77a50f20fd2862a1b31e39b82fc8e7d2c70d63f7 | cf39355caa609c0f33405126beee2739aa3cb77e | /tests/lean/escape_id.lean | cd2ac0907207135d7f9e233967b375afedfca8ed | [
"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 | 224 | lean | def «def» := 1
#check «def»
#check def.equations._eqn_1
def «[ ]» := 1
#check «[ ]»
#check «[»
def a.«b.c» := 1
#check a.«b.c»
#check a.b.c
#check «a.b.c»
#check [1].«length»
#check ««»
#check «
»
|
7f071c4309d60823ab1903175434e77b5d879839 | 4727251e0cd73359b15b664c3170e5d754078599 | /src/linear_algebra/affine_space/affine_map.lean | bb3fa4390f21f503a7102745d78f2faa11d07237 | [
"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 | 23,589 | lean | /-
Copyright (c) 2020 Joseph Myers. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Joseph Myers
-/
import algebra.add_torsor
import data.set.intervals.unordered_interval
import linear_algebra.affine_space.basic
import linear_algebra.bilinear_map
import linear_algebra.p... |
3ff09151bd0f968a9e29a5bf83a820ab478eaaac | d1a52c3f208fa42c41df8278c3d280f075eb020c | /tests/bench/rbmap.lean | 6699ad97df7abd97222174edffaf5194b981d92c | [
"Apache-2.0",
"LLVM-exception",
"NCSA",
"LGPL-3.0-only",
"LicenseRef-scancode-inner-net-2.0",
"BSD-3-Clause",
"LGPL-2.0-or-later",
"Spencer-94",
"LGPL-2.1-or-later",
"HPND",
"LicenseRef-scancode-pcre",
"ISC",
"LGPL-2.1-only",
"LicenseRef-scancode-other-permissive",
"SunPro",
"CMU-Mach"... | permissive | cipher1024/lean4 | 6e1f98bb58e7a92b28f5364eb38a14c8d0aae393 | 69114d3b50806264ef35b57394391c3e738a9822 | refs/heads/master | 1,642,227,983,603 | 1,642,011,696,000 | 1,642,011,696,000 | 228,607,691 | 0 | 0 | Apache-2.0 | 1,576,584,269,000 | 1,576,584,268,000 | null | UTF-8 | Lean | false | false | 2,902 | lean | /-
Copyright (c) 2017 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Leonardo de Moura
-/
prelude
import Init.Data.Option.Basic
import Init.Data.List.BasicAux
import Init.Data.String
import Init.System.IO
universe u v w w'
inductive color
| Red... |
1e677b17332b56c96a7b53439144c72b7d4575e2 | d796eac6dc113f68ec6fc0579c13e8eae2bdef6c | /Resources/Code/Category+Theory-Github-Topic/monoidal-categories-reboot/src/monoidal_categories_reboot/rigid_monoidal_category.lean | 6a990e14fe11d5a20f51f161e3da2c7f2b06179c | [
"Apache-2.0"
] | permissive | paddlelaw/functional-discipline-content-cats | 5a7e13e8adedd96b94f66b0b3cbf1847bc86d7f6 | d93b7aa849b343c384cec40c73ee84a9300004e8 | refs/heads/master | 1,675,541,859,508 | 1,607,251,766,000 | 1,607,251,766,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 2,526 | lean | -- Copyright (c) 2018 Michael Jendrusch. All rights reserved.
import .monoidal_category
import .braided_monoidal_category
universes v u
namespace category_theory.monoidal
open monoidal_category
class right_duality {C : Sort u} (A A' : C) [monoidal_category.{v} C] :=
(right_unit : tensor_unit C ⟶ A ⊗ A')
(righ... |
c78d5914a9603deb84a4d4db7b5b946e03479b25 | e38e95b38a38a99ecfa1255822e78e4b26f65bb0 | /src/certigrad/kl.lean | bb800cef0c638f33589174ddbf195d81a8f2568c | [
"Apache-2.0"
] | permissive | ColaDrill/certigrad | fefb1be3670adccd3bed2f3faf57507f156fd501 | fe288251f623ac7152e5ce555f1cd9d3a20203c2 | refs/heads/master | 1,593,297,324,250 | 1,499,903,753,000 | 1,499,903,753,000 | 97,075,797 | 1 | 0 | null | 1,499,916,210,000 | 1,499,916,210,000 | null | UTF-8 | Lean | false | false | 26,965 | lean | /-
Copyright (c) 2017 Daniel Selsam. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Author: Daniel Selsam
Certified graph transformation that integrates out a specific KL divergence term.
-/
import .util .tensor .compute_grad .graph .tactics .predicates .lemmas .env .expected_... |
92895ca26484a09ed45f851fc16e2c0dd3aad82e | 6432ea7a083ff6ba21ea17af9ee47b9c371760f7 | /tests/lean/run/mixfix.lean | 7ec7410ba9664c7ac58a137e0c12d0d20d0d1db3 | [
"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 | 234 | lean |
infix:65 " +' " => Add.add
infix:70 " *' " => Mul.mul
infixr:30 " OR " => Or
prefix:40 "NOT " => Not
theorem ex (a b c d : Nat) (p : Prop) : (NOT p OR a = b*'c +' c*'a OR a = b *' c) = (¬ p ∨ a = b*c + c*a ∨ a = b * c) :=
rfl
|
1d560e31806693e4e2703c78d4aac78d40a52402 | 33340b3a23ca62ef3c8a7f6a2d4e14c07c6d3354 | /dot_prod.lean | 8d69c6bfaa958a98cd7bc2c3d1d183f02530c14a | [] | no_license | lclem/cooper | 79554e72ced343c64fed24b2d892d24bf9447dfe | 812afc6b158821f2e7dac9c91d3b6123c7a19faf | refs/heads/master | 1,607,554,257,488 | 1,578,694,133,000 | 1,578,694,133,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 7,445 | lean | import .list .num
namespace int
open list
def dot_prod : list int → list int → int
| [] [] := 0
| [] (_::_) := 0
| (_::_) [] := 0
| (a1::as1) (a2::as2) :=
(a1 * a2) + dot_prod as1 as2
def map_neg_dot_prod :
∀ {as1 as2 : list int}, dot_prod (map_neg as1) as2 = -(dot_prod as1 as2)
| [] [] := begin simp [map... |
270b63e512601155608b8f665b162467a6e28594 | 4f065978c49388d188224610d9984673079f7d91 | /Sym.lean | 0ef363bfc8f6ce05c992c55b34f81e08e2274e57 | [] | 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 | 37,760 | lean | import data.fintype data.equiv.basic group_theory.subgroup
namespace list
@[simp] lemma length_attach {α} (L : list α) :
L.attach.length = L.length :=
length_pmap
@[simp] lemma nth_le_attach {α} (L : list α) (i) (H : i < L.attach.length) :
(L.attach.nth_le i H).1 = L.nth_le i (length_attach L ▸ H) :=
calc (L.at... |
3bb35cc5eeaefd962f4101fd6b4bc19262f2daa1 | 8cae430f0a71442d02dbb1cbb14073b31048e4b0 | /src/category_theory/adjunction/lifting.lean | d1b70e8462e1a59a07be249eced74e002f0e3dc4 | [
"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,790 | 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.equalizers
import category_theory.limits.shapes.reflexive
import category_theory.monad.adjunction
import category_theory.monad.coequa... |
a299f4e0f871708e97fc7c1f9a35b05c8b35283a | 4727251e0cd73359b15b664c3170e5d754078599 | /src/topology/urysohns_bounded.lean | 1d497be696a06c04ce74854ae581c8c533b3b594 | [
"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 | 2,196 | 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 topology.urysohns_lemma
import topology.continuous_function.bounded
/-!
# Urysohn's lemma for bounded continuous functions
In this file we reformulate Urys... |
0fc40979be1107ef260e4925ad04ce98579fd8dd | 57c233acf9386e610d99ed20ef139c5f97504ba3 | /src/linear_algebra/free_module/rank.lean | d363b6bfd33bb75004ecd93b53bc14f1982629f6 | [
"Apache-2.0"
] | permissive | robertylewis/mathlib | 3d16e3e6daf5ddde182473e03a1b601d2810952c | 1d13f5b932f5e40a8308e3840f96fc882fae01f0 | refs/heads/master | 1,651,379,945,369 | 1,644,276,960,000 | 1,644,276,960,000 | 98,875,504 | 0 | 0 | Apache-2.0 | 1,644,253,514,000 | 1,501,495,700,000 | Lean | UTF-8 | Lean | false | false | 4,981 | lean | /-
Copyright (c) 2021 Riccardo Brasca. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Riccardo Brasca
-/
import linear_algebra.free_module.basic
import linear_algebra.finsupp_vector_space
/-!
# Rank of free modules
This is a basic API for the rank of free modules.
... |
aaa46af23557afd752fc2b1af5e0fdae61c2ea7c | bb31430994044506fa42fd667e2d556327e18dfe | /src/group_theory/group_action/support.lean | bf39f8da16b976aa1a98ca1f162ba8d5fac23939 | [
"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 | 1,657 | 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 data.set.pointwise.smul
/-!
# Support of an element under an action action
Given an action of a group `G` on a type `α`, we say that a set `s : set α` supports a... |
af9848ec416ac3c90d67a120e5a463379a247c37 | 4d2583807a5ac6caaffd3d7a5f646d61ca85d532 | /src/group_theory/finiteness.lean | 3c753586285a88259ce8479a105d932fb20a1465 | [
"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 | 8,284 | lean | /-
Copyright (c) 2021 Riccardo Brasca. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Riccardo Brasca
-/
import data.set.finite
import group_theory.submonoid.operations
import group_theory.subgroup.basic
/-!
# Finitely generated monoids and groups
We define finitely... |
f3dcff515135dd30796679667603bd8261db97a6 | a9d0fb7b0e4f802bd3857b803e6c5c23d87fef91 | /tests/lean/type_class_bug.lean | e7d06a706e0d729fc31cbf0d5f5790ca1abc9d21 | [
"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 | 175 | lean | set_option pp.all true
check
(do {
a : nat ← [1],
return a } : list nat )
check
(do {
a : nat ← [1, 2, 3],
b : nat ← [3, 4],
return (a, b) } : list (nat × nat) )
|
5278b07d8191f07523a0b0ee664366bd6935c773 | 0c1546a496eccfb56620165cad015f88d56190c5 | /library/init/meta/rb_map.lean | dffcc578187ed0c2a717ac3fa8fab6f73d2a20e0 | [
"Apache-2.0"
] | permissive | Solertis/lean | 491e0939957486f664498fbfb02546e042699958 | 84188c5aa1673fdf37a082b2de8562dddf53df3f | refs/heads/master | 1,610,174,257,606 | 1,486,263,620,000 | 1,486,263,620,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 4,848 | 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, Jeremy Avigad
-/
prelude
import init.data.ordering init.function init.meta.name init.meta.format
meta constant {u₁ u₂} rb_map : Type u₁ → Type u₂ → Type (max... |
5d0b5c5f584952e6fc5b2dd83b29933b6eada0c8 | 47181b4ef986292573c77e09fcb116584d37ea8a | /src/for_mathlib/nat_digits.lean | b553ac3006c591f0045802c3825cdb96fc867ea2 | [
"MIT"
] | permissive | RaitoBezarius/berkovich-spaces | 87662a2bdb0ac0beed26e3338b221e3f12107b78 | 0a49f75a599bcb20333ec86b301f84411f04f7cf | refs/heads/main | 1,690,520,666,912 | 1,629,328,012,000 | 1,629,328,012,000 | 332,238,095 | 4 | 0 | MIT | 1,629,312,085,000 | 1,611,414,506,000 | Lean | UTF-8 | Lean | false | false | 1,728 | lean | import data.nat.digits
import .list
lemma of_digits_eq_sum_map_with_index_aux (b : ℕ) (l : list ℕ) :
(list.zip_with ((λ (i a : ℕ), a * b ^ i) ∘ nat.succ) (list.range l.length) l).sum =
b * (list.zip_with (λ i a, a * b ^ i) (list.range l.length) l).sum :=
begin
suffices : list.zip_with (((λ (i a : ℕ), a * b ^ i) ... |
a9391faf174aaf9da1725ae8b8f69a856642b66e | d406927ab5617694ec9ea7001f101b7c9e3d9702 | /src/ring_theory/graded_algebra/homogeneous_ideal.lean | 02156a1661fa2ab8c1415a148686fd91743bb103 | [
"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 | 21,513 | lean | /-
Copyright (c) 2021 Jujian Zhang. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Jujian Zhang, Eric Wieser
-/
import ring_theory.ideal.basic
import ring_theory.ideal.operations
import linear_algebra.finsupp
import ring_theory.graded_algebra.basic
/-!
# Homogeneous id... |
6550cf86ed7f8aa03853c959b9e9ee94d5b667e5 | 076f5040b63237c6dd928c6401329ed5adcb0e44 | /instructor-notes/2019.10.01.Polymorphism/boxed_test.lean | 289ca2f01ef7dcc237818fc8c6477f7bcea50555 | [] | no_license | kevinsullivan/uva-cs-dm-f19 | 0f123689cf6cb078f263950b18382a7086bf30be | 09a950752884bd7ade4be33e9e89a2c4b1927167 | refs/heads/master | 1,594,771,841,541 | 1,575,853,850,000 | 1,575,853,850,000 | 205,433,890 | 4 | 9 | null | 1,571,592,121,000 | 1,567,188,539,000 | Lean | UTF-8 | Lean | false | false | 341 | lean | import .boxed
open boxed_adt
open boxed_adt.boxed
def b1 : boxed nat := box 3
def b2 : boxed bool := box tt
def b3 : boxed string := box "I love polymorphism"
def b1' := box 3
#check b1'
def b2' := box tt
#check b2'
#reduce unbox b1
#reduce unbox b2
#eval unbox b3
#reduce @unbox nat b1
#reduce @unbox bool b2
#e... |
9569ebf2a45e84b64eeaf75fa940bb255cc3ef32 | 9dc8cecdf3c4634764a18254e94d43da07142918 | /src/data/rat/defs.lean | 4d46b52bcd7b980bcc46e72b46fcb127e0190764 | [
"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 | 36,454 | lean | /-
Copyright (c) 2019 Johannes Hölzl. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Johannes Hölzl, Mario Carneiro
-/
import data.int.basic
import data.nat.gcd
import logic.encodable.basic
/-!
# Basics for the Rational Numbers
## Summary
We define a rational number... |
e4300d7d39f21eba277a00af92bf3e18c6fae2e4 | 2c096fdfecf64e46ea7bc6ce5521f142b5926864 | /src/Lean/Parser/Module.lean | b7afc0e118d6bfe6a84ed0ee6dc6e7e42b5e1540 | [
"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 | 5,976 | 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.Message
import Lean.Parser.Command
namespace Lean
namespace Parser
namespace Module
def «prelude» := leading_parser "prelu... |
724053058d14c5c9ce04fe317138e4ffc7b03cda | 9028d228ac200bbefe3a711342514dd4e4458bff | /src/algebra/module/basic.lean | a44a0898d4ef1b43a4f8b68a49c288ed815be83e | [
"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 | 23,438 | lean | /-
Copyright (c) 2015 Nathaniel Thomas. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Nathaniel Thomas, Jeremy Avigad, Johannes Hölzl, Mario Carneiro
-/
import group_theory.group_action
import tactic.nth_rewrite
import algebra.group.hom
/-!
# Modules over a ring
In ... |
86a5c4292de82aa1f232cc54fa10d578a5ff1e4a | e9078bde91465351e1b354b353c9f9d8b8a9c8c2 | /colimit/omega_compact.hlean | 1d081511fb71fc60804ad5625a86bddf25fe2a0b | [
"Apache-2.0"
] | permissive | EgbertRijke/leansnippets | 09fb7a9813477471532fbdd50c99be8d8fe3e6c4 | 1d9a7059784c92c0281fcc7ce66ac7b3619c8661 | refs/heads/master | 1,610,743,957,626 | 1,442,532,603,000 | 1,442,532,603,000 | 41,563,379 | 0 | 0 | null | 1,440,787,514,000 | 1,440,787,514,000 | null | UTF-8 | Lean | false | false | 711 | 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, Egbert Rijke
-/
import .seq_colim
open nat
namespace seq_colim
variables {A : ℕ → Type} [f : seq_diagram A]
variables {n : ℕ} (a : A n)
include f
defin... |
23fdeb2f09fea8ce87041b154bb1f3ce8fd38db9 | d406927ab5617694ec9ea7001f101b7c9e3d9702 | /src/analysis/locally_convex/abs_convex.lean | cfefd68a51df4fc4394db2cd86469d78fe25fe2b | [
"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 | 6,334 | lean | /-
Copyright (c) 2022 Moritz Doll. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Moritz Doll
-/
import analysis.locally_convex.balanced_core_hull
import analysis.locally_convex.with_seminorms
import analysis.convex.gauge
/-!
# Absolutely convex sets
A set is called ... |
1b40b8202edd9906ca283678eed70813d98db62c | 556aeb81a103e9e0ac4e1fe0ce1bc6e6161c3c5e | /src/starkware/cairo/lean/semantics/cpu.lean | a6ff03c38a5e195b20037e9d78736adc9a496962 | [
"Apache-2.0"
] | 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 | 6,713 | lean | /-
Cairo CPU and instructions. Given the memory and the current processor state, this file specifies
the next state relation.
"Undefined" behavior means that it is possible for more than one state to be a valid next state.
When a function has return type `option F`, the value `none` signifies undefined behavior.
Note... |
81e9502e261d31f4ce18cfeb75e0b1222bfc47d1 | 618003631150032a5676f229d13a079ac875ff77 | /src/algebra/field_power.lean | a1e9bb079af8d1ad9720b254b62351dee89ab686 | [
"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,151 | lean | /-
Copyright (c) 2018 Robert Y. Lewis. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Robert Y. Lewis
Integer power operation on fields.
-/
import algebra.group_with_zero_power
import tactic.linarith
universe u
@[simp] lemma ring_hom.map_fpow {K L : Type*} [division... |
ee13b1780fa9d3a1713edca562ebd569471855f2 | 69d4931b605e11ca61881fc4f66db50a0a875e39 | /src/category_theory/limits/shapes/terminal.lean | 05dbf9068685a1745d8eea68695fe306b237f04e | [
"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 | 12,428 | lean | /-
Copyright (c) 2019 Scott Morrison. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Scott Morrison, Bhavik Mehta
-/
import category_theory.pempty
import category_theory.limits.has_limits
/-!
# Initial and terminal objects in a category.
## References
* [Stacks: Init... |
ad6b9349c8c28c0dd5f45be4a76eceb27f9b9c88 | a7602958ab456501ff85db8cf5553f7bcab201d7 | /Notes/Theorem_Proving_in_Lean/Chapter2/2.1.lean | f344108bdec4d385d824d678fb42ccce047bef21 | [] | no_license | enlauren/math-logic | 081e2e737c8afb28dbb337968df95ead47321ba0 | 086b6935543d1841f1db92d0e49add1124054c37 | refs/heads/master | 1,594,506,621,950 | 1,558,634,976,000 | 1,558,634,976,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 1,224 | lean | -- 2.1 Simple Type Theory
constants m n: nat
constant f: ℕ → ℕ -- Function mapping natural nums → natural nums.
-- Function mapping a ℕ to a function that maps ℕs to ℕs.
constant g: ℕ → ℕ → ℕ
-- Defines the type of cartesian product of (ℕ, ℕ).
constant p: ℕ × ℕ
-- Example checks.
#check f (p.1)
#check f (p.2)
#ch... |
0a7dd2a01573bf01d82eae1c5f482c99c257f84f | 6fca17f8d5025f89be1b2d9d15c9e0c4b4900cbf | /src/game/world10/level14.lean | e55e617e4257d67ba71c5465107db969a58231eb | [
"Apache-2.0"
] | permissive | arolihas/natural_number_game | 4f0c93feefec93b8824b2b96adff8b702b8b43ce | 8e4f7b4b42888a3b77429f90cce16292bd288138 | refs/heads/master | 1,621,872,426,808 | 1,586,270,467,000 | 1,586,270,467,000 | 253,648,466 | 0 | 0 | null | 1,586,219,694,000 | 1,586,219,694,000 | null | UTF-8 | Lean | false | false | 730 | lean | import game.world10.level13 -- hide
namespace mynat -- hide
/-
# Inequality world.
## Level 14: `add_le_add_left`
I know these are easy and we've done several already, but this is one
of the axioms for an ordered commutative monoid! The nature of formalising
is that we should formalise all "obvious" lemmas, and th... |
3c336efdf7a1016caaca64e0e4363ec5bfeaa3b3 | 2eab05920d6eeb06665e1a6df77b3157354316ad | /src/data/real/cau_seq.lean | 1f41e66944deab0dbd639408a1f9bc6907e895bc | [
"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 | 23,703 | 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 algebra.order.absolute_value
import algebra.big_operators.order
/-!
# Cauchy sequences
A basic theory of Cauchy sequences, used in the construction of the re... |
baa78e5507c251785762e552453f848c11fbbc1c | 7da5ceac20aaab989eeb795a4be9639982e7b35a | /src/basic.lean | 86267fc9f3e794ef4b76c987cdbe131c338a5966 | [
"MIT"
] | permissive | formalabstracts/formalabstracts | 46c2f1b3a172e62ca6ffeb46fbbdf1705718af49 | b0173da1af45421239d44492eeecd54bf65ee0f6 | refs/heads/master | 1,606,896,370,374 | 1,572,988,776,000 | 1,572,988,776,000 | 96,763,004 | 165 | 28 | null | 1,555,709,319,000 | 1,499,680,948,000 | Lean | UTF-8 | Lean | false | false | 4,810 | lean | /- This file contains various definitions and lemmas which don't fit anywhere else, or when there
is not enough material to make its own file -/
import data.pfun data.set.finite data.nat.enat topology.basic
import tactic.fattribute
universes u v
axiom omitted {P : Prop} : P
notation `ℕ∞` := enat
def is_finite (α ... |
be2f5016a4d8e7b90b83c394217b1c9be331abf1 | cf39355caa609c0f33405126beee2739aa3cb77e | /tests/lean/coe5.lean | 9b63ab79cc036c80bf16a1383d716e2635ed2fce | [
"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 | 302 | lean | open tactic
attribute [instance]
meta def expr_to_app : has_coe_to_fun expr (λ e, expr → expr) :=
⟨expr.app⟩
meta constants f a b : expr
#check f a
#check f a b
#check f a b a
set_option pp.coercions false
#check f a b a
set_option pp.all true
set_option pp.coercions true
#check f a b
|
1187d8ad02bd336f1729cdc12fc2dc2770cd6393 | b00eb947a9c4141624aa8919e94ce6dcd249ed70 | /src/Lean/Meta/ExprDefEq.lean | 5a5799ca4784377d7aae3b3bd41d58a60d35c395 | [
"Apache-2.0"
] | permissive | gebner/lean4-old | a4129a041af2d4d12afb3a8d4deedabde727719b | ee51cdfaf63ee313c914d83264f91f414a0e3b6e | refs/heads/master | 1,683,628,606,745 | 1,622,651,300,000 | 1,622,654,405,000 | 142,608,821 | 1 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 57,720 | lean | /-
Copyright (c) 2019 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Leonardo de Moura
-/
import Lean.ProjFns
import Lean.Meta.WHNF
import Lean.Meta.InferType
import Lean.Meta.FunInfo
import Lean.Meta.LevelDefEq
import Lean.Meta.Check
import Lean... |
a0b593dd3757ebce40f39dc06c14919f9d71cd53 | 624f6f2ae8b3b1adc5f8f67a365c51d5126be45a | /stage0/src/Init/Data/PersistentHashMap/Basic.lean | 0e638f8ac7dbeb1610ba8ffce969e67bbda14f4d | [
"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 | 13,441 | 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.Array
import Init.Data.Hashable
universes u v w w'
namespace PersistentHashMap
inductive Entry (α : Type u) (β : Type v) (σ : Typ... |
39bc1f90de351d0093b17f891fca6aa7ef0831eb | 957a80ea22c5abb4f4670b250d55534d9db99108 | /library/init/data/nat/lemmas.lean | 94f17f0a604f06217dbdc6487357df7c1e583823 | [
"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 | 50,489 | 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, Jeremy Avigad
-/
prelude
import init.data.nat.basic init.data.nat.div init.data.nat.pow init.meta init.algebra.functions
universes u
namespace nat
attribute ... |
b92262cc31cad2fa93eb3f473335cd3dcaf9c3d4 | d406927ab5617694ec9ea7001f101b7c9e3d9702 | /src/algebra/lie/solvable.lean | ec058f075296a61b30a42f06a56e281d4e0ef05b | [
"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 | 13,819 | lean | /-
Copyright (c) 2021 Oliver Nash. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Oliver Nash
-/
import algebra.lie.abelian
import algebra.lie.ideal_operations
import order.hom.basic
/-!
# Solvable Lie algebras
Like groups, Lie algebras admit a natural concept of sol... |
3692461da98662451976c78bdbd8ba31adf68799 | d406927ab5617694ec9ea7001f101b7c9e3d9702 | /src/geometry/manifold/cont_mdiff_map.lean | 73697d2b7a292dee41faaa89e3f6a73ca3457b24 | [
"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,854 | 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.cont_mdiff_mfderiv
import topology.continuous_function.basic
/-!
# Smooth bundled map
In this file we define the type `cont_mdiff_map` o... |
b8a9c088add1f4d2702b0db40dc6116d910d01d9 | 5e3548e65f2c037cb94cd5524c90c623fbd6d46a | /src_icannos_totilas/aops/2020_CAMO_Problem_1.lean | 507b33133eee9168f79681d2c1a1b3078e0217c0 | [] | 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 | 299 | lean | import data.real.basic
import data.real.nnreal
import analysis.special_functions.pow
theorem CAMOProblemsProblem1_2020 (f : nnreal -> nnreal) :
(∀ x y : nnreal, f(x)*f(y)*f(x+y) = f(x)+f(y) - f(x+y)) →
(∃ a : nnreal, (a > 1 ∧ ∀ x : nnreal, f(x) = (a.rpow x -1) / (a.rpow x +1))):= sorry |
5744a151249331f5ac95569ffa7bed0aa4cb8206 | 8cae430f0a71442d02dbb1cbb14073b31048e4b0 | /src/ring_theory/artinian.lean | c64f5903be5761fba5c7f6cefeea41bf49bb8590 | [
"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 | 19,081 | lean | /-
Copyright (c) 2021 Chris Hughes. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Chris Hughes
-/
import ring_theory.nakayama
import data.set_like.fintype
/-!
# Artinian rings and modules
> THIS FILE IS SYNCHRONIZED WITH MATHLIB4.
> Any changes to this file require ... |
4f91596da5906cf939a5c9b73d9ec9e4e08e4ebe | 8cae430f0a71442d02dbb1cbb14073b31048e4b0 | /src/topology/inseparable.lean | 0d8200d603bbf34e10441bdac8c1b521a8496505 | [
"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 | 20,130 | lean | /-
Copyright (c) 2021 Andrew Yang. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Andrew Yang, Yury G. Kudryashov
-/
import topology.continuous_on
import data.setoid.basic
import tactic.tfae
/-!
# Inseparable points in a topological space
> THIS FILE IS SYNCHRONIZED ... |
a8dddf22dd0a029458c2347ec88c1b14bc75eb35 | 55c7fc2bf55d496ace18cd6f3376e12bb14c8cc5 | /src/algebra/group_power.lean | ee802d8fd12a791cff41a2ae727416a214bd14aa | [
"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 | 37,029 | lean | /-
Copyright (c) 2015 Jeremy Avigad. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Jeremy Avigad, Robert Y. Lewis
-/
import algebra.opposites
import data.list.basic
import data.int.cast
import data.equiv.basic
import deprecated.ring
/-!
# Power operations on monoids ... |
bcdc61d314064f4bb4dfaf4077bfbbcff16767ac | 4727251e0cd73359b15b664c3170e5d754078599 | /src/data/mv_polynomial/basic.lean | eff152a5f063bb176ef7e0ab9be73914f8fae7c3 | [
"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,167 | lean | /-
Copyright (c) 2017 Johannes Hölzl. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Johannes Hölzl, Johan Commelin, Mario Carneiro
-/
import ring_theory.adjoin.basic
import data.finsupp.antidiagonal
import algebra.monoid_algebra.basic
import order.symm_diff
/-!
# Mu... |
c48f6c4b9114e64ec83c6d1e490c386f10bf7e07 | a0e23cfdd129a671bf3154ee1a8a3a72bf4c7940 | /src/Lean/Meta/Tactic/Replace.lean | 6d50ac8f760cea79f988c097a2b55a9c3980e0d5 | [
"Apache-2.0"
] | permissive | WojciechKarpiel/lean4 | 7f89706b8e3c1f942b83a2c91a3a00b05da0e65b | f6e1314fa08293dea66a329e05b6c196a0189163 | refs/heads/master | 1,686,633,402,214 | 1,625,821,189,000 | 1,625,821,258,000 | 384,640,886 | 0 | 0 | Apache-2.0 | 1,625,903,617,000 | 1,625,903,026,000 | null | UTF-8 | Lean | false | false | 5,397 | 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.ForEachExpr
import Lean.Meta.AppBuilder
import Lean.Meta.MatchUtil
import Lean.Meta.Tactic.Util
import Lean.Meta.Tactic.Revert
import Lean.... |
76fec54174f5a7fb8c8e93d6da2a9c7767daf45f | aa3f8992ef7806974bc1ffd468baa0c79f4d6643 | /tests/lean/run/beginend3.lean | 01335cd5cdd289be7be5799305682d1d6abfda0b | [
"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 | 285 | lean | import tools.tactic logic
open tactic
theorem foo (A : Type) (a b c : A) : a = b → b = c → a = c ∧ c = a :=
begin
intros (Hab, Hbc),
apply and.intro,
apply eq.trans,
rotate 2,
apply eq.trans,
apply (eq.symm Hbc),
apply (eq.symm Hab),
apply Hab,
apply Hbc,
end
|
492679958ed74eab7152d1e227b7b5e6063ab418 | b9d8165d695e844c92d9d4cdcac7b5ab9efe09f7 | /src/analysis/calculus/tangent_cone.lean | 36e1308f2d06a0702676cfe9ba16bea562506049 | [
"Apache-2.0"
] | permissive | spapinistarkware/mathlib | e917d9c44bf85ef51db18e7a11615959f714efc5 | 0a9a1ff463a1f26e27d7c391eb7f6334f0d90383 | refs/heads/master | 1,606,808,129,547 | 1,577,478,369,000 | 1,577,478,369,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 18,515 | 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.convex analysis.normed_space.bounded_linear_maps analysis.specific_limits
/-!
# Tangent cone
In this file, we define two predicates `unique_d... |
b6625fbaa2d6115f7cc43e4c1298eeacb40d5815 | d9ed0fce1c218297bcba93e046cb4e79c83c3af8 | /library/init/meta/declaration.lean | 7f1c8a582b7b42c7e6d8fdfba7ea5ebe0d4d77b3 | [
"Apache-2.0"
] | permissive | leodemoura/lean_clone | 005c63aa892a6492f2d4741ee3c2cb07a6be9d7f | cc077554b584d39bab55c360bc12a6fe7957afe6 | refs/heads/master | 1,610,506,475,484 | 1,482,348,354,000 | 1,482,348,543,000 | 77,091,586 | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 5,032 | 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.expr init.meta.name init.meta.task
/-
Reducibility hints are used in the convertibility checker.
When trying to solve a constraint... |
43c26c38fbd9bb49ec1739e839bb30650390185d | cf39355caa609c0f33405126beee2739aa3cb77e | /tests/lean/extra/show_goal.lean | a5489e1a3265a18f848c7152a3cc83484bc101a8 | [
"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 | 570 | lean | import data.nat
open nat algebra
example (a b c d : nat) : a + b = 0 → b = 0 → c + 1 + a = 1 → d = c - 1 → d = 0 :=
begin
intro h₁ h₂,
have aeq0 : a = 0, begin
rewrite h₂ at h₁,
exact h₁
end,
intro h₃ h₄,
have deq0 : d = 0, begin
have ceq : c = 0, begin
rewrite aeq0 at h₃,
rewrite add... |
b6d1b0cac7188b9fd08dbf9fb2e5429dac13f151 | 80cc5bf14c8ea85ff340d1d747a127dcadeb966f | /src/representation_theory/maschke.lean | 5d1bb5d276fd4f72fd04fc6d375323ce06216291 | [
"Apache-2.0"
] | permissive | lacker/mathlib | f2439c743c4f8eb413ec589430c82d0f73b2d539 | ddf7563ac69d42cfa4a1bfe41db1fed521bd795f | refs/heads/master | 1,671,948,326,773 | 1,601,479,268,000 | 1,601,479,268,000 | 298,686,743 | 0 | 0 | Apache-2.0 | 1,601,070,794,000 | 1,601,070,794,000 | null | UTF-8 | Lean | false | false | 5,920 | lean | /-
Copyright (c) 2020 Scott Morrison. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Author: Scott Morrison
-/
import data.monoid_algebra
import ring_theory.algebra
import algebra.invertible
import algebra.char_p
import linear_algebra.basis
/-!
# Maschke's theorem
We prove Ma... |
01701e639efb2b644c4aba64c6de99aa72137b69 | 947fa6c38e48771ae886239b4edce6db6e18d0fb | /src/analysis/seminorm.lean | f5c61f465c0e1b9170a94fb8e51f4927cefeecae | [
"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 | 38,759 | lean | /-
Copyright (c) 2019 Jean Lo. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Jean Lo, Yaël Dillies, Moritz Doll
-/
import analysis.locally_convex.basic
import data.real.pointwise
import data.real.sqrt
import topology.algebra.filter_basis
import topology.algebra.module... |
87dc6be04dc40d0bdb07708ce225a9b9acea7e91 | 8b8ab1eba67c5c35b51ab27fcf8151aab660e44d | /src/demo.lean | b4d04778c1b284349876f113640cf58254897961 | [] | no_license | PatrickMassot/lean-scratchpad | ab5e89b69034cc699bf234852822acf74b50f2b9 | 03eec3bfabfc218b79dcbe7c7712bfa024a02625 | refs/heads/master | 1,626,995,046,509 | 1,538,577,853,000 | 1,538,577,853,000 | 115,135,779 | 1 | 2 | null | 1,522,993,992,000 | 1,513,962,994,000 | Lean | UTF-8 | Lean | false | false | 1,816 | lean | import algebra.group
import data.set.basic
import analysis.real
import tactic.norm_num
import .choice
set_option pp.beta true
example (P Q R : Prop) : ((P ∨ Q → R) ∧ P) → R :=
begin
rintro ⟨hyp1, hyp2⟩,
apply hyp1,
left,
assumption,
end
example (P Q R : Prop) : ((P ∨ Q → R) ∧ P) → R :=
by finish
example (X ... |
76936aef2f8de9257a38aae2e6c927ed4ed72fbe | 05f637fa14ac28031cb1ea92086a0f4eb23ff2b1 | /tests/lean/simp20.lean | 4ece305a8eed7aefd35e742f8aae04bef8d19ca4 | [
"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 | 365 | lean | rewrite_set simple
set_option pp::implicit true
universe M >= 1
definition TypeM := (Type M)
variable g : TypeM → TypeM
variable B : Type
variable B' : Type
axiom H : B = B'
add_rewrite H : simple
(*
local t = parse_lean([[ g B ]])
print(t)
print("===>")
local t2, pr = simplify(t, "simple")
print(t2)
print(pr)... |
3dacc32ba9723d304459b1abb220616240c36786 | 0845ae2ca02071debcfd4ac24be871236c01784f | /library/init/control/alternative.lean | 243990110ed6080e941154a67a22a33e5c9c51ef | [
"Apache-2.0"
] | permissive | GaloisInc/lean4 | 74c267eb0e900bfaa23df8de86039483ecbd60b7 | 228ddd5fdcd98dd4e9c009f425284e86917938aa | refs/heads/master | 1,643,131,356,301 | 1,562,715,572,000 | 1,562,715,572,000 | 192,390,898 | 0 | 0 | null | 1,560,792,750,000 | 1,560,792,749,000 | null | UTF-8 | Lean | false | false | 1,284 | lean | /-
Copyright (c) 2016 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Author: Leonardo de Moura
-/
prelude
import init.core init.control.applicative
universes u v
class Alternative (f : Type u → Type v) extends Applicative f : Type (max (u+1) v) :=
(failu... |
68d8ecc728a201b41ea512d46233d98ea5c4d983 | 6432ea7a083ff6ba21ea17af9ee47b9c371760f7 | /src/lake/Lake/Load/Manifest.lean | eb4d87e8373fad1a9c0f91d88bf1341b7abace1f | [
"Apache-2.0",
"LLVM-exception",
"NCSA",
"LGPL-3.0-only",
"LicenseRef-scancode-inner-net-2.0",
"BSD-3-Clause",
"LGPL-2.0-or-later",
"Spencer-94",
"LGPL-2.1-or-later",
"HPND",
"LicenseRef-scancode-pcre",
"ISC",
"LGPL-2.1-only",
"LicenseRef-scancode-other-permissive",
"SunPro",
"CMU-Mach"... | permissive | leanprover/lean4 | 4bdf9790294964627eb9be79f5e8f6157780b4cc | f1f9dc0f2f531af3312398999d8b8303fa5f096b | refs/heads/master | 1,693,360,665,786 | 1,693,350,868,000 | 1,693,350,868,000 | 129,571,436 | 2,827 | 311 | Apache-2.0 | 1,694,716,156,000 | 1,523,760,560,000 | Lean | UTF-8 | Lean | false | false | 4,458 | lean | /-
Copyright (c) 2022 Mac Malone. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Mac Malone, Gabriel Ebner
-/
import Lean.Data.Json
import Lake.Util.Log
open System Lean
namespace Lake
instance [ToJson α] : ToJson (NameMap α) where
toJson m := Json.obj <| m.fold (... |
c0e66b6ada3ecac62dd00d30aac7fbeef034e148 | 853df553b1d6ca524e3f0a79aedd32dde5d27ec3 | /src/category_theory/limits/cones.lean | f1e283db5a8ef4612659e63f61bd70efdc804a85 | [
"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 | 17,031 | 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, Floris van Doorn
-/
import category_theory.const
import category_theory.yoneda
universes v u u' -- declare the `v`'s first; see `category_theory.catego... |
20a13a73d137703b051ceedff0e6d951691e5208 | e24425fbf75189e4b34ef6b29f5f274e70cd5011 | /src/week04.lean | 613878f0b513b1b6602ca9a13267c3cb61fafb16 | [] | no_license | UVM-M52/week04-chuyisun | a654ea18050ca25b2d2865cfcf568c89cde593dd | ed1dafaa43d33e878e71dbdac00535118afd3afc | refs/heads/master | 1,609,225,390,456 | 1,581,527,077,000 | 1,581,527,077,000 | 238,504,390 | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 3,515 | lean | -- Math 52: Week 4
import .utils.int_refl
-- Lakins Definition 1.2.1:
definition is_even (n : ℤ) := ∃ (k : ℤ), n = 2 * k
definition is_odd (n : ℤ) := ∃ (k : ℤ), n = 2 * k + 1
-- Lakins Definition 2.1.1: Let a, b ∈ ℤ.
-- a divides b if there exists n ∈ ℤ such that b = an.
-- We write a ∣ b for "a divides b" and say t... |
e4fd0338f5a9ecd250c68e883b272af1a18e736b | 1446f520c1db37e157b631385707cc28a17a595e | /stage0/src/Init/Lean/Elab/BuiltinNotation.lean | 1a46130d30bcfb0ace41559710c551b60e8439e7 | [
"Apache-2.0"
] | permissive | bdbabiak/lean4 | cab06b8a2606d99a168dd279efdd404edb4e825a | 3f4d0d78b2ce3ef541cb643bbe21496bd6b057ac | refs/heads/master | 1,615,045,275,530 | 1,583,793,696,000 | 1,583,793,696,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 8,613 | 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.Elab.Term
import Init.Lean.Elab.Quotation
namespace Lean
namespace Elab
namespace Term
@[builtinMacro Lean.Parser.Term.dollar] de... |
2b4d64db920e131b245088f92bab48420e36344b | bbecf0f1968d1fba4124103e4f6b55251d08e9c4 | /src/combinatorics/hall/finite.lean | 1924706d8ef03039209b53a0e88506dc7449672d | [
"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 | 11,645 | lean | /-
Copyright (c) 2021 Alena Gusakov, Bhavik Mehta, Kyle Miller. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Alena Gusakov, Bhavik Mehta, Kyle Miller
-/
import data.fintype.basic
import data.rel
import data.set.finite
/-!
# Hall's Marriage Theorem for finite index t... |
baf0c7f4075951a3b5e45b5d9b284e7d4387c718 | bdd56e6eb0f467437e368d613de75299495d4054 | /src/category_theory/limits/shapes/equalizers.lean | fbe98857da3d8a840b1a42b3b71c744dc6d28282 | [] | no_license | truong111000/formalabstracts | 49a04c268ccee136e48e24e9d5dcb6fedea4b53e | 93a89a5c05c6fbc23eb9b914b60dcc353e609cd2 | refs/heads/master | 1,589,551,767,824 | 1,555,708,723,000 | 1,555,708,723,000 | 182,326,292 | 0 | 0 | null | 1,555,708,332,000 | 1,555,708,331,000 | null | UTF-8 | Lean | false | false | 4,846 | 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 .pullbacks basic
open category_theory
namespace category_theory.limits
-- local attribute [tidy] tactic.case_bash
universes u v
@[derive decidable_eq]... |
686e1b3529b9350a505daa8a7d549d0ca15d0f78 | 7cdf3413c097e5d36492d12cdd07030eb991d394 | /src/game/world5/level8.lean | c533aaf73dd96742611d230a70f802d9840140d0 | [] | no_license | alreadydone/natural_number_game | 3135b9385a9f43e74cfbf79513fc37e69b99e0b3 | 1a39e693df4f4e871eb449890d3c7715a25c2ec9 | refs/heads/master | 1,599,387,390,105 | 1,573,200,587,000 | 1,573,200,691,000 | 220,397,084 | 0 | 0 | null | 1,573,192,734,000 | 1,573,192,733,000 | null | UTF-8 | Lean | false | false | 1,772 | lean | /-
# Function world.
## Level 8 : `(P → Q) → ((Q → empty) → (P → empty))`
Level 8 is the same as level 7, except we have replaced the
set $F$ with the empty set $\emptyset$. The same proof will work (after all, our
previous proof worked for all sets, and the empty set is a set).
But note that if you start with `int... |
1e0b85d26d06a11d5b102f9d4fdce5853741da59 | 57c233acf9386e610d99ed20ef139c5f97504ba3 | /src/linear_algebra/free_module/pid.lean | 39cd1c498b6ae2fa8025ca88492af92a0af36d22 | [
"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 | 25,512 | lean | /-
Copyright (c) 2020 Anne Baanen. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Anne Baanen
-/
import linear_algebra.dimension
import ring_theory.principal_ideal_domain
import ring_theory.finiteness
/-! # Free modules over PID
A free `R`-module `M` is a module wit... |
98cf5e8a0118c3c1dc8caa41e4bdae550475e28a | 7c92a46ce39266c13607ecdef7f228688f237182 | /src/for_mathlib/nonarchimedean/basic.lean | d8c78294cf664e98d3f417e9fa08c69129f314f5 | [
"Apache-2.0"
] | permissive | asym57/lean-perfectoid-spaces | 3217d01f6ddc0d13e9fb68651749469750420767 | 359187b429f254a946218af4411d45f08705c83e | refs/heads/master | 1,609,457,937,251 | 1,577,542,616,000 | 1,577,542,675,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 4,094 | lean | import topology.algebra.ring
import ring_theory.algebra
import ring_theory.ideal_operations
import tactic.abel tactic.chain
import for_mathlib.submodule
import for_mathlib.open_embeddings
import for_mathlib.rings
import topology.algebra.open_subgroup
local attribute [instance] set.pointwise_mul_semiring
local attrib... |
dfb2e439b765d6b9a3c6354ac04fa360fbce8a09 | 4727251e0cd73359b15b664c3170e5d754078599 | /src/data/fin_enum.lean | 338b1b1bb5db00c2819bf267e3fd946c7f325f53 | [
"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,850 | lean | /-
Copyright (c) 2019 Simon Hudon. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Simon Hudon
-/
import control.monad.basic
import data.fintype.basic
import data.list.prod_sigma
/-!
Type class for finitely enumerable types. The property is stronger
than `fintype` in t... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.