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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
845fd1e3c9bd0546963bc45560c05575ca52e196 | 54f4ad05b219d444b709f56c2f619dd87d14ec29 | /my_project/src/love04_functional_programming_demo.lean | cc30bf26f31139aab29a95cdb98b07a6d2467ef3 | [] | no_license | yizhou7/learning-lean | 8efcf838c7276e235a81bd291f467fa43ce56e0a | 91fb366c624df6e56e19555b2e482ce767cd8224 | refs/heads/master | 1,675,649,087,737 | 1,609,022,281,000 | 1,609,022,281,000 | 272,072,779 | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 13,055 | lean | import .lovelib
/-! # LoVe Demo 4: Functional Programming
We take a closer look at the basics of typed functional programming: inductive
types, proofs by induction, recursive functions, pattern matching, structures
(records), and type classes. -/
set_option pp.beta true
namespace LoVe
/-! ## Inductive Types
Re... |
ff61782636c28552bdda1ede82a820dd1c4bbe44 | 7cdf3413c097e5d36492d12cdd07030eb991d394 | /src/game/world2/level3.lean | f70684def39b717e0d46b77fc6d911f9d2e51d36 | [] | 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,561 | lean | import mynat.definition -- hide
import mynat.add -- hide
import game.world2.level2 -- hide
namespace mynat -- hide
/-
# World 2 -- addition world
## Level 3 : `succ_add`
## You are equipped with:
* `add_zero (a : mynat) : a + 0 = a`
* `add_succ (a b : mynat) : a + succ(b) = succ(a + b)`
* `zero_add (a : myna... |
508d48c764e983a6515c641270269907f3cc69a4 | b70031c8e2c5337b91d7e70f1e0c5f528f7b0e77 | /src/analysis/normed_space/dual.lean | 1dd9a65011a8d031094bb79bb3d3bf90fbc31abc | [
"Apache-2.0"
] | permissive | molodiuc/mathlib | cae2ba3ef1601c1f42ca0b625c79b061b63fef5b | 98ebe5a6739fbe254f9ee9d401882d4388f91035 | refs/heads/master | 1,674,237,127,059 | 1,606,353,533,000 | 1,606,353,533,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 3,154 | lean | /-
Copyright (c) 2020 Heather Macbeth. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Heather Macbeth
-/
import analysis.normed_space.hahn_banach
/-!
# The topological dual of a normed space
In this file we define the topological dual of a normed space, and the bound... |
a4ac084efe65d9e343bd79036d0bdae5738d19b7 | d5fd73199f5317771f53ea081ee813f40f3a9807 | /src/exercises_sources/friday/manifolds.lean | d3aef3ca620fddcb6abda7ca69b7204de4476989 | [] | permissive | emiljacobsen/lftcm2020 | 083561a6b6bdb3fa0cefb4c32736879e88fd35e3 | 7fbe4caeeed7abff70aec1f693326accc8175370 | refs/heads/master | 1,668,937,949,197 | 1,594,983,308,000 | 1,594,983,308,000 | 280,402,877 | 0 | 0 | MIT | 1,594,983,922,000 | 1,594,983,921,000 | null | UTF-8 | Lean | false | false | 30,911 | lean | import for_mathlib.manifolds
noncomputable theory
open_locale manifold classical big_operators
open set
universe u
/-!
## Reminder on updating the exercises
These instructions are now available at:
https://leanprover-community.github.io/lftcm2020/exercises.html
To get a new copy of the exercises,
run the followi... |
ebea3497ce9eec8943a428218ea70a5fc41af725 | 6432ea7a083ff6ba21ea17af9ee47b9c371760f7 | /tests/lean/run/macro3.lean | d24930519003d343b71c5b39bdb722b67aa3809b | [
"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 | 138 | lean | syntax "call" term:max "(" sepBy1(term, ",") ")" : term
macro_rules
| `(call $f ($args,*)) => `($f $args*)
#check call Nat.add (1+2, 3)
|
76123f859ddd597abab828fb83e0b0e1bc73cabf | 57c233acf9386e610d99ed20ef139c5f97504ba3 | /src/tactic/lint/default.lean | a4e903800ab35ca96fb3fcaa03aae1b2ff38e6cf | [
"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,583 | lean | /-
Copyright (c) 2020 Floris van Doorn. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Floris van Doorn, Robert Y. Lewis, Gabriel Ebner
-/
import tactic.lint.frontend
import tactic.lint.simp
import tactic.lint.type_classes
import tactic.lint.misc
open tactic
add_tact... |
7c4c38b4da94d67cdce749dab0432909235303cd | 66a6486e19b71391cc438afee5f081a4257564ec | /archive/smash_assoc.hlean | 1741bf94641829cc43e7199b5e2a45d2398c8208 | [
"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 | 24,013 | hlean | -- Authors: Floris van Doorn
-- In collaboration with Stefano, Robin
import ..homotopy.smash
open bool pointed eq equiv is_equiv sum bool prod unit circle cofiber prod.ops wedge is_trunc
function red_susp unit sigma
exit
namespace smash
variables {A B C : Type*}
open pushout
definition prod3_of_sum3 [un... |
8512754549c9f067de7bf364367074f1d0e5ee4e | 853df553b1d6ca524e3f0a79aedd32dde5d27ec3 | /src/category_theory/limits/connected.lean | 7ab1f9fa393b8e6546ef7651b142a557d9e0ab26 | [
"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 | 3,712 | 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.pullbacks
import category_theory.limits.shapes.wide_pullbacks
import category_theory.limits.shapes.binary_products
import category_th... |
b6d5d65ea62c330f9fef99a17542be154a057c09 | 80cc5bf14c8ea85ff340d1d747a127dcadeb966f | /src/ring_theory/subsemiring.lean | 3cafdd3366e29904f281eb71bf2fba3ba784c338 | [
"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 | 24,756 | lean | /-
Copyright (c) 2020 Yury Kudryashov All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Yury Kudryashov
-/
import algebra.ring.prod
import group_theory.submonoid
import data.equiv.ring
/-!
# Bundled subsemirings
We define bundled subsemirings and some standard construc... |
1aef83784eba3d3087a2e54f9332c86f9d911841 | 94e33a31faa76775069b071adea97e86e218a8ee | /src/data/finset/powerset.lean | 8e4f0e13f3896e89201d2656d39c65693ce798cb | [
"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 | 11,750 | lean | /-
Copyright (c) 2018 Mario Carneiro. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Mario Carneiro
-/
import data.finset.lattice
/-!
# The powerset of a finset
-/
namespace finset
open function multiset
variables {α : Type*} {s t : finset α}
/-! ### powerset -/
se... |
e8543761e933c544050045ded97f8647cbf276f5 | d31b9f832ff922a603f76cf32e0f3aa822640508 | /src/hott/types/trunc.lean | 53240dfee0905e0b19d39196f961e2dece1ea308 | [
"Apache-2.0"
] | permissive | javra/hott3 | 6e7a9e72a991a2fae32e5764982e521dca617b16 | cd51f2ab2aa48c1246a188f9b525b30f76c3d651 | refs/heads/master | 1,585,819,679,148 | 1,531,232,382,000 | 1,536,682,965,000 | 154,294,022 | 0 | 0 | Apache-2.0 | 1,540,284,376,000 | 1,540,284,375,000 | null | UTF-8 | Lean | false | false | 36,154 | lean | /-
Copyright (c) 2015 Jakob von Raumer. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Floris van Doorn
Properties of trunc_index, is_trunc, trunctype, trunc, and the pointed versions of these
-/
-- NOTE: the fact that (is_trunc n A) is a mere proposition is proved i... |
0107fe87430fe5c63609f543d9b2da29218c44ac | 9dc8cecdf3c4634764a18254e94d43da07142918 | /src/data/int/interval.lean | 88fc2af65081f136fc0732e3912c8f0721fa5c02 | [
"Apache-2.0"
] | permissive | jcommelin/mathlib | d8456447c36c176e14d96d9e76f39841f69d2d9b | ee8279351a2e434c2852345c51b728d22af5a156 | refs/heads/master | 1,664,782,136,488 | 1,663,638,983,000 | 1,663,638,983,000 | 132,563,656 | 0 | 0 | Apache-2.0 | 1,663,599,929,000 | 1,525,760,539,000 | Lean | UTF-8 | Lean | false | false | 6,939 | lean | /-
Copyright (c) 2021 Yaël Dillies. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Yaël Dillies
-/
import data.int.basic
import algebra.char_zero
import order.locally_finite
import data.finset.locally_finite
/-!
# Finite intervals of integers
This file proves that `ℤ... |
1a23d18cd2782638317e81ef1e500e9249a0f089 | 624f6f2ae8b3b1adc5f8f67a365c51d5126be45a | /tests/lean/run/fun.lean | 7810d098c4034acb8d4415d558d5204b9c2721d6 | [
"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 | 376 | lean | open Function Bool
constant f : Nat → Bool := arbitrary _
constant g : Nat → Nat := arbitrary _
#check f ∘ g ∘ g
#check (id : Nat → Nat)
constant h : Nat → Bool → Nat := arbitrary _
#check swap h
#check swap h false Nat.zero
#check (swap h false Nat.zero : Nat)
constant f1 : Nat → Nat → Bool := arbitrary _
cons... |
8eb1756213d2c37e74e5ca87a128a6dcaaa6315c | 9dc8cecdf3c4634764a18254e94d43da07142918 | /src/topology/vector_bundle/basic.lean | a5152e0f1972f9e6aea00cbcf3c1c97217671335 | [
"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 | 49,866 | lean | /-
Copyright © 2020 Nicolò Cavalleri. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Nicolò Cavalleri, Sebastien Gouezel, Heather Macbeth, Patrick Massot, Floris van Doorn
-/
import analysis.normed_space.bounded_linear_maps
import topology.fiber_bundle
/-!
# Topologi... |
893cbf3e9628d980482fcd824c986788bebac203 | 2eab05920d6eeb06665e1a6df77b3157354316ad | /src/tactic/lint/misc.lean | 54fac7a6be0417dd46cf9e51a10f1055ce77eeda | [
"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 | 21,083 | lean | /-
Copyright (c) 2020 Floris van Doorn. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Floris van Doorn, Robert Y. Lewis
-/
import tactic.lint.basic
/-!
# Various linters
This file defines several small linters:
- `ge_or_gt` checks that `>` and `≥` do not occur in ... |
f0f35d6b04d14fd61967ca05185a79ec6e65ed16 | 367134ba5a65885e863bdc4507601606690974c1 | /src/ring_theory/fractional_ideal.lean | a363f9aad63bdeda34bce4fd1f5d49c14e5dfac3 | [
"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 | 39,596 | lean | /-
Copyright (c) 2020 Anne Baanen. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Anne Baanen, Filippo A. E. Nuccio
-/
import ring_theory.localization
import ring_theory.noetherian
import ring_theory.principal_ideal_domain
import tactic.field_simp
/-!
# Fractional ide... |
4f11437e2c37aef45c07f7e5cfc1cb5640c7b7c5 | 9dc8cecdf3c4634764a18254e94d43da07142918 | /src/group_theory/perm/cycle/type.lean | b00aac036a120162d1589e5442837a69108a231b | [
"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 | 28,155 | lean | /-
Copyright (c) 2020 Thomas Browning. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Thomas Browning
-/
import algebra.gcd_monoid.multiset
import combinatorics.partition
import group_theory.perm.cycle.basic
import ring_theory.int.basic
import tactic.linarith
/-!
# C... |
9da5b09108de7a74c8d74b52035e7e70ee3532e6 | b7f22e51856f4989b970961f794f1c435f9b8f78 | /tests/lean/interactive/simple.lean | 00b75a63b8ad399b10c2a5fbcdb131ed8231aaba | [
"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 | 171 | lean | import logic
namespace tst
definition foo {A B : Type} (a : A) (b : B) := a
definition boo {A : Type} (a : A) := foo a a
end tst
definition pr1 {A : Type} (a b : A) := a |
6a006f1876d05c66d96e7b6a1712ac738888f8f1 | d406927ab5617694ec9ea7001f101b7c9e3d9702 | /src/algebra/category/Module/images.lean | 0853e69c1bcb8dadd06706f79666f86cc87dd180 | [
"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,698 | lean | /-
Copyright (c) 2022 Scott Morrison. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Scott Morrison
-/
import algebra.category.Module.abelian
import category_theory.limits.shapes.images
/-!
# The category of R-modules has images.
Note that we don't need to register a... |
b4960c986cc6cddbf6c7f07ecaec1c0f975d5efc | fa02ed5a3c9c0adee3c26887a16855e7841c668b | /src/algebra/order.lean | 711e0e5f7e5e6d87526e4363a9006d4df18d256d | [
"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 | 15,127 | 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 tactic.alias
import tactic.lint
/-!
# Lemmas about inequalities
This file contains some lemmas about `≤`/`≥`/`<`/`>`, and `cmp`.
* We simplify `a ≥ b` and `... |
9845db60fbfa2a52194c9918e5843afc1285ff50 | 4fa161becb8ce7378a709f5992a594764699e268 | /src/deprecated/subgroup.lean | 5e71be92cc960853cc5e0cb3cfb2db73cdd37885 | [
"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 | 28,462 | 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, Mitchell Rowett, Scott Morrison, Johan Commelin, Mario Carneiro,
Michael Howes
-/
import group_theory.subgroup
import deprecated.submonoid
open set function
variable... |
a11c9e8af4176acba0b48447f38c7781a5731634 | a9d0fb7b0e4f802bd3857b803e6c5c23d87fef91 | /tests/lean/run/ind2.lean | a1daa10892ca0705d101f98c4c0f3aa965dc48e4 | [
"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 | 332 | lean | prelude
inductive nat : Type
| zero : nat
| succ : nat → nat
namespace nat end nat open nat
inductive vector (A : Type*) : nat → Type*
| vnil : vector zero
| vcons : Π {n : nat}, A → vector n → vector (succ n)
namespace vector end vector open vector
check vector.{1}
check vnil.{1}
check vcons.{1}
check vector.rec.{1 ... |
2b0ff60d96bd3b3f4e2c6960cf29b4702eeaf82d | fcf3ffa92a3847189ca669cb18b34ef6b2ec2859 | /src/world7/level7.lean | 76647a260ee97ad7bf5e4e3be6314019fc504111 | [
"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 | 191 | lean | lemma or_symm (P Q : Prop) : (P ∨ Q) → (Q ∨ P) :=
begin
intro pq,
cases pq with p q,
{
right,
exact p,
},
{
left,
exact q,
},
end |
70c02d071033279f05fd5421327afcc69d9321e9 | c777c32c8e484e195053731103c5e52af26a25d1 | /src/algebra/lie/classical.lean | 7513bfe0244621b38e9a7d610255b45a254126c3 | [
"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 | 13,304 | lean | /-
Copyright (c) 2020 Oliver Nash. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Oliver Nash
-/
import algebra.invertible
import data.matrix.basis
import data.matrix.dmatrix
import algebra.lie.abelian
import linear_algebra.matrix.trace
import algebra.lie.skew_adjoint
... |
7b2529351beed2e6cbbaaac0a44af61da03a2f29 | 82b86ba2ae0d5aed0f01f49c46db5afec0eb2bd7 | /src/Init/Data/ToString/Macro.lean | 83eda301332b2128223f1400bddbe4246793fc86 | [
"Apache-2.0"
] | permissive | banksonian/lean4 | 3a2e6b0f1eb63aa56ff95b8d07b2f851072d54dc | 78da6b3aa2840693eea354a41e89fc5b212a5011 | refs/heads/master | 1,673,703,624,165 | 1,605,123,551,000 | 1,605,123,551,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 480 | lean | /-
Copyright (c) 2020 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Author: Leonardo de Moura
-/
prelude
import Init.LeanInit
import Init.Data.ToString.Basic
syntax:max "s!" (interpolatedStr term) : term
macro_rules
| `(s! $interpStr) => do
let c... |
472a561183857ad8ecedc0983c4187386dc840ec | 90dc46f8fc146448b862ba6de3e708b9d4194c48 | /src/day01.lean | 7509986cbe371d622f9e2731caa390ba2c7272ed | [] | no_license | dwrensha/advent-of-code-2019 | 9dcdcd61a743229726354f5ef791449bdbbe2ed8 | f1e126afda47b588e28f1389559f2a4d6a3322bf | refs/heads/master | 1,600,746,467,066 | 1,575,508,148,000 | 1,575,508,148,000 | 225,037,851 | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 949 | lean | import system.io data.buffer.parser
open parser
def go {α} (file : string) (p : parser α) (m: α → option string) : io unit :=
do s ← io.fs.read_file file,
sum.inr a ← return $ run p s,
some str ← return $ m a,
trace str (return ())
def parse_number := string.to_nat <$> many_char1 (sat char.is_digit)
def day1 :... |
45a1f4ef48a9d16cf53c21530a22227a554ba3ad | 94e33a31faa76775069b071adea97e86e218a8ee | /src/algebra/ring/ulift.lean | 9d6443f8d8c85a8340c355bda682c63147a50474 | [
"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 | 4,666 | lean | /-
Copyright (c) 2020 Scott Morrison. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Scott Morrison
-/
import algebra.group.ulift
import algebra.ring.equiv
/-!
# `ulift` instances for ring
This file defines instances for ring, semiring and related structures on `ulif... |
95d0aa2bfd30bb6e763679da3d39bb0d7c4ee3ec | 4727251e0cd73359b15b664c3170e5d754078599 | /src/tactic/default.lean | 8b57d53d783f729622035a21e91e19624be49187 | [
"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,170 | lean | /-
This file imports many useful tactics ("the kitchen sink").
You can use `import tactic` at the beginning of your file to get everything.
(Although you may want to strip things down when you're polishing.)
Because this file imports some complicated tactics, it has many transitive dependencies
(which of course may n... |
1f6fba30ec0af4bfc7a86a32a0c70c30f338c167 | 9be442d9ec2fcf442516ed6e9e1660aa9071b7bd | /stage0/src/Lean/Meta/Tactic/Cases.lean | cb26df8f108bdc0d031d3c4e6e9ea1b042cf88ac | [
"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 | 14,347 | 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.AppBuilder
import Lean.Meta.Tactic.Induction
import Lean.Meta.Tactic.Injection
import Lean.Meta.Tactic.Assert
import Lean.Meta.Tactic.Subst... |
f161f220849be59f13503d47fdc62b06bb4bc886 | a4673261e60b025e2c8c825dfa4ab9108246c32e | /tests/lean/run/overloaded.lean | cee631d57b084f8f12c7879ea58830ae4a5e4a30 | [
"Apache-2.0"
] | permissive | jcommelin/lean4 | c02dec0cc32c4bccab009285475f265f17d73228 | 2909313475588cc20ac0436e55548a4502050d0a | refs/heads/master | 1,674,129,550,893 | 1,606,415,348,000 | 1,606,415,348,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 385 | lean |
def A.x : Nat := 10
def B.x : String := "hello"
def f (a : Nat) := a + 1
def g (s : String) := s ++ " world"
open A
open B
#check f x
#check g x
macro "foo!" x:term : term => `($x + 1)
macro "foo!" x:term : term => `($x ++ " world")
#check f (foo! 1)
#check g (foo! "hello")
macro "bla!" : term => `((1 : Nat))
macr... |
69ef13f387a71ac7f860221231c4625602062b81 | b7f22e51856f4989b970961f794f1c435f9b8f78 | /tests/lean/run/cases_bug.lean | 76f4f91c64adc14d4a6a8047f8cf59f73b5192e5 | [
"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 | 135 | lean | import logic.cast
theorem cast_heq₂ : ∀ {A B : Type} (H : A = B) (a : A), cast H a == a
| A A (eq.refl A) a := heq_of_eq !cast_eq
|
e21e542c651861e2932c09277715f3b752ec19e8 | 8cae430f0a71442d02dbb1cbb14073b31048e4b0 | /src/analysis/complex/conformal.lean | 849a4a284010ec1dc3159fcd5a4d4cf80b9cb332 | [
"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 | 5,525 | lean | /-
Copyright (c) 2021 Yourong Zang. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Yourong Zang
-/
import analysis.complex.isometry
import analysis.normed_space.conformal_linear_map
import analysis.normed_space.finite_dimension
/-!
# Conformal maps between complex vec... |
d580705ce9d68313c5f1014fcd13990f2e2d6ea6 | 0c1546a496eccfb56620165cad015f88d56190c5 | /tests/lean/run/pack_unpack3.lean | f5c8c7969b7af42c62e44987802ae8302c863d32 | [
"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 | 1,011 | lean | inductive {u} vec (A : Type u) : nat -> Type u
| vnil : vec 0
| vcons : Pi (n : nat), A -> vec n -> vec (n+1)
inductive {u} tree (A : Type u) : Type u
| leaf : A -> tree
| node : Pi (n : nat), vec (list (list tree)) n -> tree
-- set_option trace.eqn_compiler true
constant {u} P {A : Type u} : tree A → Type
constant ... |
708001003ec46eae5c6c0fc269068f4a60ac6d5e | b00eb947a9c4141624aa8919e94ce6dcd249ed70 | /src/Init/Notation.lean | 205f8335b3e5460a4cbf6c123fa05d171b231bf9 | [
"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 | 14,308 | 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
Notation for operators defined at Prelude.lean
-/
prelude
import Init.Prelude
-- DSL for specifying parser precedences and priorities
namespace Lean.Parser.... |
352c1054b450a448232686a32b46ff9cc4d7965b | d1a52c3f208fa42c41df8278c3d280f075eb020c | /tests/lean/run/fun.lean | 0d059b16fb96bac34f7c587f881fe6b758353594 | [
"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 | 285 | lean | open Function Bool
constant f : Nat → Bool := arbitrary
constant g : Nat → Nat := arbitrary
#check f ∘ g ∘ g
#check (id : Nat → Nat)
constant h : Nat → Bool → Nat := arbitrary
constant f1 : Nat → Nat → Bool := arbitrary
constant f2 : Bool → Nat := arbitrary
|
0fae374ab9d59e8245d5ba38e8ad339b6ca3de2a | 1abd1ed12aa68b375cdef28959f39531c6e95b84 | /src/linear_algebra/linear_pmap.lean | af2b83b66436592b6baf83ebb7011af5c4d9ba0d | [
"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 | 16,713 | lean | /-
Copyright (c) 2020 Yury Kudryashov All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Yury Kudryashov
-/
import linear_algebra.basic
import linear_algebra.prod
/-!
# Partially defined linear maps
A `linear_pmap R E F` is a linear map from a submodule of `E` to `F`. We... |
1c7b2b33acbb8bf726c0e693d5387e9a2ae5b13e | a9fe717b93ccfa4b2e64faeb24f96dfefb390240 | /option.lean | 22563d9d0dd99d15b98b611e20a2b41a7de9dca4 | [] | no_license | skbaek/omega | ab1f4a6daadfc8c855f14c39d9459ab841527141 | 715e384ed14e8eb177a326700066e7c98269e078 | refs/heads/master | 1,588,000,876,352 | 1,552,645,917,000 | 1,552,645,917,000 | 174,442,914 | 1 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 1,843 | lean | import data.option .logic
variables {α β : Type}
open tactic
namespace option
lemma orelse_eq_none_iff {α : Type} {f g : option α} :
((f <|> g) = none) ↔ (f = none ∧ g = none) :=
begin
cases h1 : f; cases h2 : g,
apply iff_of_left_of_right; exact_dec_trivial,
repeat { apply iff_of_not_of_not; exact_dec_trivia... |
0d42b79249ed1ebe71236487b7ca169c5e7d3b5b | 367134ba5a65885e863bdc4507601606690974c1 | /src/category_theory/limits/yoneda.lean | 64b2ef94da4e014d2ff6b530cf7e57592e315a63 | [
"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 | 4,640 | lean | /-
Copyright (c) 2020 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.limits.limits
import category_theory.limits.functor_category
/-!
# Limit properties relating to the (co)yoneda embedding.
We ca... |
9ea2c253041c294514ded2889b4bc357514db266 | a9d0fb7b0e4f802bd3857b803e6c5c23d87fef91 | /hott/algebra/category/constructions/order.hlean | 3e4ca2bf981d4167dbe55ccafc6f49a85c606d29 | [
"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 | 1,113 | hlean | /-
Copyright (c) 2014 Jakob von Raumer. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Author: Jakob von Raumer
Categories of (hprop value) ordered sets.
-/
import ..category algebra.order types.fin
open algebra category is_trunc is_equiv equiv iso
namespace category
sectio... |
87b90c0832b413475030e8afde4f7bf94126f4d8 | 947fa6c38e48771ae886239b4edce6db6e18d0fb | /src/data/polynomial/reverse.lean | c74102003ecfffe816ad7652dddb05f4a360bab4 | [
"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 | 12,944 | lean | /-
Copyright (c) 2020 Damiano Testa. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Damiano Testa
-/
import data.polynomial.degree.trailing_degree
import data.polynomial.erase_lead
import data.polynomial.eval
/-!
# Reverse of a univariate polynomial
The main definiti... |
9ac9bc48b2ffb0d44b4dfc8e5c0dd1a658dd8af1 | 69d4931b605e11ca61881fc4f66db50a0a875e39 | /test/fresh_names.lean | 89dbf28382458b43c163e115fcce720e8046bb78 | [
"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 | 734 | lean | /-
Copyright (c) 2020 Jannis Limperg. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Jannis Limperg
-/
import tactic.fresh_names
open tactic
open native
example (n m o p : ℕ) : true :=
by do
[n, m, o, p] ← [`n, `m, `o, `p].mmap get_local,
[n_uname, m_uname, o_un... |
e36dac8bb77b9af2f9a17018ba1bd34fffdfc4ea | 9dc8cecdf3c4634764a18254e94d43da07142918 | /src/algebra/homology/homology.lean | e53bd485edeacdaec0ef0e52781989c70ff020d7 | [
"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 | 7,415 | lean | /-
Copyright (c) 2021 Scott Morrison. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Scott Morrison
-/
import algebra.homology.image_to_kernel
import algebra.homology.homological_complex
import category_theory.graded_object
/-!
# The homology of a complex
Given `C : ... |
998c05f353388416e9e645032a03a92d2253882b | b7f22e51856f4989b970961f794f1c435f9b8f78 | /tests/lean/run/tree3.lean | 7b38d11f095873bdaaac9deca8547d41c4449aeb | [
"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 | 2,517 | lean | import logic data.prod
open eq.ops prod tactic
inductive tree (A : Type) :=
| leaf : A → tree A
| node : tree A → tree A → tree A
inductive one1.{l} : Type.{max 1 l} :=
star : one1
set_option pp.universes true
namespace tree
namespace manual
section
universe variables l₁ l₂
variable {A : Type.{l₁}}
... |
7c3de052b317d14adbba3cdf1a7c0b0b71f0a603 | 159fed64bfae88f3b6a6166836d6278f953bcbf9 | /Structure/Generic/Instances/Setoid.lean | d1a473321777f3a5ca8a0f754abdc422cedd2282 | [
"MIT"
] | permissive | SReichelt/lean4-experiments | 3e56830c8b2fbe3814eda071c48e3c8810d254a8 | ff55357a01a34a91bf670d712637480089085ee4 | refs/heads/main | 1,683,977,454,907 | 1,622,991,121,000 | 1,622,991,121,000 | 340,765,677 | 2 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 3,701 | lean | import Structure.Generic.Axioms
import Structure.Generic.Instances.Bundled
set_option autoBoundImplicitLocal false
--set_option pp.universes true
universes u
def BundledSetoid := Bundled Setoid
@[reducible] def setoid : Universe := simpleBundledUniverse Setoid
namespace BundledSetoid
instance isSetoid (S : s... |
5bd5dc89464c0dd2e89f010039b6f8861ce1b8bb | 4bcaca5dc83d49803f72b7b5920b75b6e7d9de2d | /src/Lean/Elab/PreDefinition/WF/Main.lean | eb36938d7e017f5793ee7df3ca95de41bf17b30e | [
"Apache-2.0"
] | permissive | subfish-zhou/leanprover-zh_CN.github.io | 30b9fba9bd790720bd95764e61ae796697d2f603 | 8b2985d4a3d458ceda9361ac454c28168d920d3f | refs/heads/master | 1,689,709,967,820 | 1,632,503,056,000 | 1,632,503,056,000 | 409,962,097 | 1 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 1,083 | lean | /-
Copyright (c) 2021 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Leonardo de Moura
-/
import Lean.Elab.PreDefinition.Basic
import Lean.Elab.PreDefinition.WF.TerminationBy
import Lean.Elab.PreDefinition.WF.PackDomain
import Lean.Elab.PreDefini... |
30d64d33f6db45033bf555724ceb96489c120699 | 8cae430f0a71442d02dbb1cbb14073b31048e4b0 | /archive/imo/imo2019_q1.lean | 0226474656c48a12f0765c261580dab2d17976d2 | [
"Apache-2.0"
] | permissive | leanprover-community/mathlib | 56a2cadd17ac88caf4ece0a775932fa26327ba0e | 442a83d738cb208d3600056c489be16900ba701d | refs/heads/master | 1,693,584,102,358 | 1,693,471,902,000 | 1,693,471,902,000 | 97,922,418 | 1,595 | 352 | Apache-2.0 | 1,694,693,445,000 | 1,500,624,130,000 | Lean | UTF-8 | Lean | false | false | 2,010 | lean | /-
Copyright (c) 2020 Kevin Buzzard. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Kevin Buzzard
-/
import tactic.linarith
/-!
# IMO 2019 Q1
> THIS FILE IS SYNCHRONIZED WITH MATHLIB4.
> Any changes to this file require a corresponding PR to mathlib4.
Determine all ... |
7b8128dbab542830664851ae202e0a23e3d32a3d | 17d3c61bf162bf88be633867ed4cb201378a8769 | /tests/lean/run/basic_monitor.lean | 21edc400e23d31ac884f87197abac12b515631b2 | [
"Apache-2.0"
] | permissive | u20024804/lean | 11def01468fb4796fb0da76015855adceac7e311 | d315e424ff17faf6fe096a0a1407b70193009726 | refs/heads/master | 1,611,388,567,561 | 1,485,836,506,000 | 1,485,836,625,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 309 | lean | meta def basic_monitor : vm_monitor nat :=
{ init := 0, step := λ s, return (trace ("step " ++ s^.to_string) (λ u, s+1)) }
run_command vm_monitor.register `basic_monitor
set_option debugger true
example (a b : Prop) : a → b → a ∧ b :=
begin
intros,
constructor,
assumption,
assumption
end
|
9f4fbec5d33eeee88f8531cf58140fd93f68ee89 | 57fdc8de88f5ea3bfde4325e6ecd13f93a274ab5 | /linear_algebra/multivariate_polynomial.lean | 0f1cef5d91848aac506dc5d63121937f4f2dc966 | [
"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 | 9,548 | 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
Multivariate Polynomial
-/
import data.finsupp linear_algebra.basic
noncomputable theory
open classical set function finsupp lattice
local attribute [instance] classic... |
9c975e67fa1a2ead9df5ca7191d535c8a03987da | 9dd3f3912f7321eb58ee9aa8f21778ad6221f87c | /library/init/funext.lean | ef756d2ff093d54e817c180f06be72dba26199e0 | [
"Apache-2.0"
] | permissive | bre7k30/lean | de893411bcfa7b3c5572e61b9e1c52951b310aa4 | 5a924699d076dab1bd5af23a8f910b433e598d7a | refs/heads/master | 1,610,900,145,817 | 1,488,006,845,000 | 1,488,006,845,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 2,125 | lean | /-
Copyright (c) 2015 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Author: Jeremy Avigad
Extensional equality for functions, and a proof of function extensionality from quotients.
-/
prelude
import init.data.quot init.logic
universes u v
namespace fu... |
5494227ba2caa58ad2ca4bb1794dce799ea5e444 | e447aba4f95cefc4e26736a59e4781640deafcc5 | /src/theta_series.lean | 3f6015baaeb10abb43c174c32a9775a48e601ea5 | [
"Unlicense"
] | permissive | Eloitor/four-squares-modular-forms | 45674978910900ac4b773316d2642774ecad3f7e | f1eaa559640b75371149f5fe819869babeb60aa2 | refs/heads/main | 1,677,012,829,783 | 1,611,628,491,000 | 1,611,628,491,000 | 321,801,679 | 2 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 4,647 | lean | -- import data.finset.basic
-- import data.finset.lattice
-- import data.multiset.lattice
-- import topology.compacts
-- import topology.instances.complex
-- import data.int.basic
import data.finset
import tactic
import data.int.basic
/-
Diamond - Shurman
exercise 4.9.2 (a)
-/
/--
For each integer m, we define... |
b7bd832f629f6a1df89f6953ce4dcdee2e64719a | 4d2583807a5ac6caaffd3d7a5f646d61ca85d532 | /src/algebra/divisibility.lean | 392840295c717651e73c735f6b3e6e4db62c6076 | [
"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,679 | lean | /-
Copyright (c) 2014 Jeremy Avigad. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Jeremy Avigad, Leonardo de Moura, Floris van Doorn, Amelia Livingston, Yury Kudryashov,
Neil Strickland, Aaron Anderson
-/
import algebra.group_with_zero
/-!
# Divisibility
This file... |
76e4a77c97b6a9ca145ca3212d7b1b072d6ccf5f | 592ee40978ac7604005a4e0d35bbc4b467389241 | /Library/generated/mathscheme-lean/AddCommMonWithMultMagma.lean | 1e746798d1041e252e90994596c36783a80ad016 | [] | 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 | 11,394 | 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 AddCommMonWithMultMagma
structure AddCommMonWithMultMagma (A : Type) : Type :=
(zero : A)
(plus : (A → (A → A)))
(lunit_zero : (∀ {x : A} , (plus zero x)... |
475463c59a226c5a822454186c1501ada328b773 | 83c8119e3298c0bfc53fc195c41a6afb63d01513 | /library/init/data/string/ops.lean | 321d1c2666d644a4d459748913cb277457358397 | [
"Apache-2.0"
] | permissive | anfelor/lean | 584b91c4e87a6d95f7630c2a93fb082a87319ed0 | 31cfc2b6bf7d674f3d0f73848b842c9c9869c9f1 | refs/heads/master | 1,610,067,141,310 | 1,585,992,232,000 | 1,585,992,232,000 | 251,683,543 | 0 | 0 | Apache-2.0 | 1,585,676,570,000 | 1,585,676,569,000 | null | UTF-8 | Lean | false | false | 1,747 | lean | /-
Copyright (c) 2017 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Sebastian Ullrich
-/
prelude
import init.data.bool.lemmas
import init.data.string.basic
import init.meta.well_founded_tactics
namespace string
namespace iterator
@[simp] lemm... |
4185964131ed78fe3bf5730503677735a1991c8f | 592ee40978ac7604005a4e0d35bbc4b467389241 | /Library/generated/mathscheme-lean/IdempotentUnary.lean | ba103ef119f2f13c32960ba2b5d1d47a4ceb6fc6 | [] | 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 | 5,718 | 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 IdempotentUnary
structure IdempotentUnary (A : Type) : Type :=
(prim : (A → A))
(idempotent_prim : (∀ {x : A} , (prim (prim x)) = (prim x)))
open Idempote... |
5a9c04f6fc851be661de6ea39b2287d7665315d6 | d406927ab5617694ec9ea7001f101b7c9e3d9702 | /archive/imo/imo2001_q2.lean | 9a2ec6f7c208b41470a8a02695f593dffb6dda58 | [
"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,663 | lean | /-
Copyright (c) 2021 Tian Chen. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Tian Chen
-/
import analysis.special_functions.pow
/-!
# IMO 2001 Q2
Let $a$, $b$, $c$ be positive reals. Prove that
$$
\frac{a}{\sqrt{a^2 + 8bc}} +
\frac{b}{\sqrt{b^2 + 8ca}} +
\frac{c}... |
9f5592f827b30f3530b0f063ed82231fa22ac386 | 94637389e03c919023691dcd05bd4411b1034aa5 | /src/zzz_junk/04_type_library_copy/09_list.lean | f4ff29d9f5f237c05fa28fe3afdef87c5a2a6c9c | [] | no_license | kevinsullivan/complogic-s21 | 7c4eef2105abad899e46502270d9829d913e8afc | 99039501b770248c8ceb39890be5dfe129dc1082 | refs/heads/master | 1,682,985,669,944 | 1,621,126,241,000 | 1,621,126,241,000 | 335,706,272 | 0 | 38 | null | 1,618,325,669,000 | 1,612,374,118,000 | Lean | UTF-8 | Lean | false | false | 1,135 | lean | #print nat
namespace hidden
/-
The list α type represents the
set of lists of values of type
α. So "list nat", for example, is
the type of lists that contain
natural numbers. It explains that
such a list is either empty (nil)
or is constructed (cons) from a
single element of type α and a
smaller list (possibly emp... |
b70d334da4395254ace7f6a2db4ff0d1e7ad252b | b19a1b7dc79c802247fdce4c04708e070863b4d2 | /implicits.lean | 435f99bcabda5985228f09ebb33fa82e6e2e1baa | [] | no_license | utanapishtim/promethazine | 99a1e80311fb20251a54ba78a534b23852b88c40 | 08a6f9bd6dd08feb3df8d4697e19ffc8d333b249 | refs/heads/master | 1,653,595,504,487 | 1,480,129,933,000 | 1,480,129,933,000 | 74,801,596 | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 1,824 | lean | /-
-- type parameter left explicit
namespace hide
constant list : Type → Type
namespace list
constant cons : Π A : Type, A → list A → list A
constant nil : Π A : Type, list A
constant append : Π A : Type, list A → list A → list A
end list
end hide
open hide
open hide.list
variable A : Type
variable a : A
varia... |
d0283e43d315502731dcb8f065bf9a51b8dc2127 | e151e9053bfd6d71740066474fc500a087837323 | /src/hott/init/trunc.lean | 7a17bb0606ca34f5cea9b50914cb39fd0d7f69f7 | [
"Apache-2.0"
] | permissive | daniel-carranza/hott3 | 15bac2d90589dbb952ef15e74b2837722491963d | 913811e8a1371d3a5751d7d32ff9dec8aa6815d9 | refs/heads/master | 1,610,091,349,670 | 1,596,222,336,000 | 1,596,222,336,000 | 241,957,822 | 0 | 0 | Apache-2.0 | 1,582,222,839,000 | 1,582,222,838,000 | null | UTF-8 | Lean | false | false | 13,619 | lean | /-
Copyright (c) 2014 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Jeremy Avigad, Floris van Doorn
Definition of is_trunc (n-truncatedness)
Ported from Coq HoTT.
-/
import .equiv .pathover .logic
universes u v l
hott_theory
namespace hott
... |
a32ea568feacdb13e91eca581a01c45893dcc424 | 82b86ba2ae0d5aed0f01f49c46db5afec0eb2bd7 | /src/Lean/Meta/Tactic/Clear.lean | 4fa0f7e3c761771ea89454fb528b645e45e646af | [
"Apache-2.0"
] | permissive | banksonian/lean4 | 3a2e6b0f1eb63aa56ff95b8d07b2f851072d54dc | 78da6b3aa2840693eea354a41e89fc5b212a5011 | refs/heads/master | 1,673,703,624,165 | 1,605,123,551,000 | 1,605,123,551,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 1,471 | 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.Util
namespace Lean.Meta
def clear (mvarId : MVarId) (fvarId : FVarId) : MetaM MVarId :=
withMVarContext mvarId do
checkNotA... |
6515777cdb44c7372e797e8e44478ee31d87f20e | 4727251e0cd73359b15b664c3170e5d754078599 | /src/algebra/regular/basic.lean | 86bd53f1901dead6318b31f3260ec4c57ca7381e | [
"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 | 14,604 | lean | /-
Copyright (c) 2021 Damiano Testa. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Damiano Testa
-/
import algebra.order.monoid_lemmas
import algebra.group_with_zero.basic
import logic.embedding
/-!
# Regular elements
We introduce left-regular, right-regular and reg... |
fdc044afad880a7e5f851a41094cac578e27d7c6 | 8d65764a9e5f0923a67fc435eb1a5a1d02fd80e3 | /src/data/nat/enat.lean | 3e068ca4bca837810ebc866955096a45e1a8cf41 | [
"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 | 18,771 | lean | /-
Copyright (c) 2018 Chris Hughes. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Chris Hughes
-/
import data.pfun
import tactic.norm_num
import data.equiv.mul_add
/-!
# Natural numbers with infinity
The natural numbers and an extra `top` element `⊤`.
## Main defin... |
c2f24414a06f351fec800cd92a8082717693d1c7 | bdb33f8b7ea65f7705fc342a178508e2722eb851 | /linear_algebra/basic.lean | 925fccee6aa01cfe6b4d89f949b0bfc1b0f1bb85 | [
"Apache-2.0"
] | permissive | rwbarton/mathlib | 939ae09bf8d6eb1331fc2f7e067d39567e10e33d | c13c5ea701bb1eec057e0a242d9f480a079105e9 | refs/heads/master | 1,584,015,335,862 | 1,524,142,167,000 | 1,524,142,167,000 | 130,614,171 | 0 | 0 | Apache-2.0 | 1,548,902,667,000 | 1,524,437,371,000 | Lean | UTF-8 | Lean | false | false | 37,223 | 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
Linear algebra -- classical
This file is inspired by Isabelle/HOL's linear algebra, and hence indirectly by HOL Light.
We define the following concepts:
* `lc α β`: l... |
3b0d79ba94ad5a24325a514430e71c6387dace00 | 6432ea7a083ff6ba21ea17af9ee47b9c371760f7 | /src/Lean/Compiler/LCNF/ScopeM.lean | 893af43acd90f3ee51a68a61482d7b018b81fe5a | [
"Apache-2.0",
"LLVM-exception",
"NCSA",
"LGPL-3.0-only",
"LicenseRef-scancode-inner-net-2.0",
"BSD-3-Clause",
"LGPL-2.0-or-later",
"Spencer-94",
"LGPL-2.1-or-later",
"HPND",
"LicenseRef-scancode-pcre",
"ISC",
"LGPL-2.1-only",
"LicenseRef-scancode-other-permissive",
"SunPro",
"CMU-Mach"... | permissive | leanprover/lean4 | 4bdf9790294964627eb9be79f5e8f6157780b4cc | f1f9dc0f2f531af3312398999d8b8303fa5f096b | refs/heads/master | 1,693,360,665,786 | 1,693,350,868,000 | 1,693,350,868,000 | 129,571,436 | 2,827 | 311 | Apache-2.0 | 1,694,716,156,000 | 1,523,760,560,000 | Lean | UTF-8 | Lean | false | false | 1,391 | lean | /-
Copyright (c) 2022 Henrik Böving. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Henrik Böving
-/
import Lean.Compiler.LCNF.CompilerM
namespace Lean.Compiler.LCNF
/--
A general abstraction for the idea of a scope in the compiler.
-/
abbrev ScopeM := StateRefT FVar... |
ee8b3ec7a15831670e00beb3548a02f02e2e6962 | 4727251e0cd73359b15b664c3170e5d754078599 | /test/simp_command.lean | 6601174e96c322ba26169ff9c961b6fdb5f1c8bd | [
"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,489 | lean | import tactic.simp_command
import analysis.special_functions.trigonometric.deriv
/- Turn off trace messages only if the statements are simplified to true: -/
set_option trace.silence_simp_if_true true
/-!
Tests for the #simp command.
-/
#simp 5 - 5 = 0
section arith
def f (x : ℤ) := x + (x - x)
#simp [f] f 3 = 3
... |
90bbdfa54d761d2d6d20f734ee05d999033cb80c | e94d3f31e48d06d252ee7307fe71efe1d500f274 | /hott/types/sigma.hlean | b00fc0645384e99e99bc5daa515441e0f397d1d2 | [
"Apache-2.0"
] | permissive | GallagherCommaJack/lean | e4471240a069d82f97cb361d2bf1a029de3f4256 | 226f8bafeb9baaa5a2ac58000c83d6beb29991e2 | refs/heads/master | 1,610,725,100,482 | 1,459,194,829,000 | 1,459,195,377,000 | 55,377,224 | 0 | 0 | null | 1,459,731,701,000 | 1,459,731,700,000 | null | UTF-8 | Lean | false | false | 19,576 | hlean | /-
Copyright (c) 2014-15 Floris van Doorn. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Author: Floris van Doorn
Partially ported from Coq HoTT
Theorems about sigma-types (dependent sums)
-/
import types.prod
open eq sigma sigma.ops equiv is_equiv function is_trunc sum uni... |
b168bd0cabc5b444ae528f2910e35881475968fc | 31f556cdeb9239ffc2fad8f905e33987ff4feab9 | /tests/lean/run/fieldTypeBug.lean | 51da4426277046d5df1392447409dde5e6a484eb | [
"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 | 718 | lean | import Lean
def HList (αs : List (Type u)) : Type u := αs.foldr Prod.{u, u} PUnit
@[matchPattern] def HList.nil : HList [] := ⟨⟩
@[matchPattern] def HList.cons (a : α) (as : HList αs): HList (α :: αs) := (a, as)
def HList.set {αs : List (Type u)} (as : HList αs) (i : Fin αs.length) (v : αs.get i) : HList αs :=
mat... |
d8dd44d93515d057ec470625932601a5e3801d86 | 8cae430f0a71442d02dbb1cbb14073b31048e4b0 | /src/data/set/pointwise/support.lean | 6d11a9c38352bff15a828822ad8c9e40a667a7d6 | [
"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 | 1,729 | lean | /-
Copyright (c) 2022 Sébastien Gouëzel. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Sébastien Gouëzel
-/
import data.set.pointwise.smul
import algebra.support
/-!
# Support of a function composed with a scalar action
> THIS FILE IS SYNCHRONIZED WITH MATHLIB4.
> A... |
3dda8b0dd7081cc4a0379748a710d26dacfbff1b | 4efff1f47634ff19e2f786deadd394270a59ecd2 | /src/category_theory/concrete_category/basic.lean | f786b9c3ee658da52cced48af755bc951827ab23 | [
"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 | 7,006 | 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, Reid Barton, Sean Leather, Yury Kudryashov
-/
import category_theory.types
import category_theory.full_subcategory
/-!
# Concrete categories
A concret... |
09bfd99aa2483d1dcd661241a564009dda02a775 | 8d65764a9e5f0923a67fc435eb1a5a1d02fd80e3 | /src/ring_theory/int/basic.lean | 8f01d07563fec3d9d274344299411bd0ed814af8 | [
"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 | 14,409 | 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, Jens Wagemaker, Aaron Anderson
-/
import ring_theory.coprime
import ring_theory.unique_factorization_domain
/-!
# Divisibility over ℕ and ℤ
This file collects results... |
eb2522bd0b10a0de400a4b3b4ceebb57f981f6fd | e750538628490a3f5600df1edf4885819c33a4f3 | /Chain-BIRDS/Doctor/D32_update.sql.lean | a7c989967aa3cda48ec7a3e095ac94a749870fd5 | [
"Apache-2.0"
] | permissive | cmli93/Chain-Dejima | 0c054cc8d2d28ebcd6b2f84f8b7ba45e0d88b5cf | 008d2748f0602b7d65bba8a9a86530e0899496ec | refs/heads/master | 1,634,811,960,801 | 1,551,677,784,000 | 1,551,677,784,000 | 173,666,288 | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 2,295 | lean | import logic.basic
import tactic.basic
import tactic.finish
import tactic.interactive
import bx
import super
import smt2
universe u
open int
open auto
local attribute [instance] classical.prop_decidable -- make all prop decidable
theorem disjoint_deltas {d32_doctandresear: string → string → Prop} {d3_doctor: ℤ → stri... |
b80188bf6a91234b3886fd7e06c5ebaec1d87b57 | 4d2583807a5ac6caaffd3d7a5f646d61ca85d532 | /src/ring_theory/localization.lean | a676723831091f47f19c0064a194301c388f8a6a | [
"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 | 83,827 | lean | /-
Copyright (c) 2018 Kenny Lau. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Kenny Lau, Mario Carneiro, Johan Commelin, Amelia Livingston
-/
import data.equiv.ring
import group_theory.monoid_localization
import ring_theory.algebraic
import ring_theory.ideal.local_ri... |
d33527c190faca63ec1a0b2790c3c7e9e956e036 | b7f22e51856f4989b970961f794f1c435f9b8f78 | /tests/lean/run/tactic18.lean | cc1fc0ebec073a4462ff38271903fcbf0aa0358e | [
"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 | 216 | lean | import logic
open tactic
constant A : Type.{1}
constant f : A → A → A
theorem tst {a b c : A} (H1 : a = b) (H2 : b = c) : f a b = f b c
:= by apply (eq.subst H1);
apply (eq.subst H2);
apply eq.refl
|
48ee89e5210d64ba535df44a0f558fe5c2153410 | 2c096fdfecf64e46ea7bc6ce5521f142b5926864 | /src/Lean/Elab/App.lean | 48339fae331f22a457b623eaeacbaa97101271ab | [
"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 | 69,621 | 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.Util.FindMVar
import Lean.Parser.Term
import Lean.Meta.KAbstract
import Lean.Meta.Tactic.ElimInfo
import Lean.Elab.Term
import Lean.Elab.Binders... |
06d259a4231ea75f446f2833551f9996ad1c1c6e | 947b78d97130d56365ae2ec264df196ce769371a | /src/Lean/Meta/AbstractNestedProofs.lean | e543bcbd6e9a18327184eada4b07d982a6bb467e | [
"Apache-2.0"
] | permissive | shyamalschandra/lean4 | 27044812be8698f0c79147615b1d5090b9f4b037 | 6e7a883b21eaf62831e8111b251dc9b18f40e604 | refs/heads/master | 1,671,417,126,371 | 1,601,859,995,000 | 1,601,860,020,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 2,628 | 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.Closure
namespace Lean
namespace Meta
namespace AbstractNestedProofs
def isNonTrivialProof (e : Expr) : MetaM Bool :=
condM (not <$> isPr... |
e273c8184064d25c4ea66a8e18576057e4d3f57e | 42610cc2e5db9c90269470365e6056df0122eaa0 | /hott/types/unit.hlean | 2892c978e8c548f53cc5ee785ddb56e5e81d188b | [
"Apache-2.0"
] | permissive | tomsib2001/lean | 2ab59bfaebd24a62109f800dcf4a7139ebd73858 | eb639a7d53fb40175bea5c8da86b51d14bb91f76 | refs/heads/master | 1,586,128,387,740 | 1,468,968,950,000 | 1,468,968,950,000 | 61,027,234 | 0 | 0 | null | 1,465,813,585,000 | 1,465,813,585,000 | null | UTF-8 | Lean | false | false | 838 | 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
Theorems about the unit type
-/
open equiv option eq pointed is_trunc
namespace unit
protected definition eta : Π(u : unit), ⋆ = u
| eta ⋆ := idp
definiti... |
e98cc7b733e940ea7fbf2f111e80074438662e6f | 2147143742c132ec682aa97d79b470bcd6ff0020 | /src/export_json.lean | 4110828aee896b6d50da453676632512f0b374a9 | [
"Apache-2.0"
] | permissive | polibb/doc-gen | 1970e6e84290a923f4b1255c53cb6b541871e654 | e4765ef3eec2d968760f51248e32672b9c2a2280 | refs/heads/master | 1,688,292,021,876 | 1,628,798,528,000 | 1,628,798,528,000 | 273,043,308 | 1 | 0 | Apache-2.0 | 1,628,706,318,000 | 1,592,416,392,000 | Python | UTF-8 | Lean | false | false | 14,847 | lean | /-
Copyright (c) 2019 Robert Y. Lewis. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Author: Robert Y. Lewis
-/
import tactic.core system.io data.string.defs tactic.interactive data.list.sort
/-!
Used to generate a json file for html docs.
The json file is a list of maps, w... |
54bec432eece5b375e4d13648446bd0414ba6194 | 57c233acf9386e610d99ed20ef139c5f97504ba3 | /src/tactic/generalize_proofs.lean | 3e3c56a1fbfa41234e60c0b2b2de8aa71c715dee | [
"Apache-2.0"
] | permissive | robertylewis/mathlib | 3d16e3e6daf5ddde182473e03a1b601d2810952c | 1d13f5b932f5e40a8308e3840f96fc882fae01f0 | refs/heads/master | 1,651,379,945,369 | 1,644,276,960,000 | 1,644,276,960,000 | 98,875,504 | 0 | 0 | Apache-2.0 | 1,644,253,514,000 | 1,501,495,700,000 | Lean | UTF-8 | Lean | false | false | 3,068 | 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 tactic.doc_commands
/-!
# `generalize_proofs`
A simple tactic to find and replace all occurrences of proof terms in the
context and goal with new variables.
... |
fe65a8b6050a4292d1b161776b88a82444f3daf3 | d406927ab5617694ec9ea7001f101b7c9e3d9702 | /src/data/list/join.lean | 590b5102b8cdaf2151804bddec5571dfe9555222 | [
"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 | 7,348 | lean | /-
Copyright (c) 2017 Mario Carneiro. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Sébastien Gouëzel, Floris van Doorn, Mario Carneiro, Martin Dvorak
-/
import data.list.big_operators.basic
/-!
# Join of a list of lists
This file proves basic properties of `list.jo... |
b8fedd7f5776985e14188bd0b854654be4d8ad1f | c31182a012eec69da0a1f6c05f42b0f0717d212d | /src/for_mathlib/Profinite/compat_discrete_quotient.lean | 90b89c37d9e88f5079699374a80702cb6f6e7b4c | [] | no_license | Ja1941/lean-liquid | fbec3ffc7fc67df1b5ca95b7ee225685ab9ffbdc | 8e80ed0cbdf5145d6814e833a674eaf05a1495c1 | refs/heads/master | 1,689,437,983,362 | 1,628,362,719,000 | 1,628,362,719,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 3,877 | lean | import topology.discrete_quotient
import topology.category.Profinite
import category_theory.arrow
import data.setoid.partition
open category_theory
namespace discrete_quotient
universe u
variables {X Y : Profinite.{u}} (f : X ⟶ Y) (surj : function.surjective f)
/-- The relation defining the largest quotient of f.ri... |
279cffd03c696f4bbc96806162b9aa93ae4876e2 | 69d4931b605e11ca61881fc4f66db50a0a875e39 | /src/linear_algebra/prod.lean | 5572723ab39247b626d4adf2659f0a7091d5d9d1 | [
"Apache-2.0"
] | permissive | abentkamp/mathlib | d9a75d291ec09f4637b0f30cc3880ffb07549ee5 | 5360e476391508e092b5a1e5210bd0ed22dc0755 | refs/heads/master | 1,682,382,954,948 | 1,622,106,077,000 | 1,622,106,077,000 | 149,285,665 | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 15,986 | 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, Kevin Buzzard, Yury Kudryashov, Eric Wieser
-/
import linear_algebra.basic
/-! ### Products of modules
This file defines constructors for linear maps ... |
d710cb9252a0dd8128ae60743b6a572876779cd1 | 94e33a31faa76775069b071adea97e86e218a8ee | /src/data/finite/basic.lean | d5537612fb08f06aa8ec4df651aa4a5e79886acd | [
"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 | 7,506 | lean | /-
Copyright (c) 2022 Kyle Miller. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Kyle Miller
-/
import data.fintype.basic
import data.finite.defs
/-!
# Finite types
In this file we prove some theorems about `finite` and provide some instances. This typeclass is a
`P... |
b1f8a25a109729220d3247e79d3fd1c01da8b421 | aa5a655c05e5359a70646b7154e7cac59f0b4132 | /stage0/src/Init/SimpLemmas.lean | ea4f88bb24e1af9a6d13b5c79835b18ad9a19d1d | [
"Apache-2.0"
] | permissive | lambdaxymox/lean4 | ae943c960a42247e06eff25c35338268d07454cb | 278d47c77270664ef29715faab467feac8a0f446 | refs/heads/master | 1,677,891,867,340 | 1,612,500,005,000 | 1,612,500,005,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 1,266 | lean | /-
Copyright (c) 2021 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Leonardo de Moura
notation, basic datatypes and type classes
-/
prelude
import Init.Core
@[simp] theorem eqSelf (a : α) : (a = a) = True :=
propext <| Iff.intro (fun _ => tr... |
2289a18d9cbbbf4253e1c3b5e6618fe0d74b3f72 | 35960c5b117752aca7e3e7767c0b393e4dbd72a7 | /src/typ/open.lean | 148bf79153dd81091e006e640cb1b586a32e9c15 | [
"Apache-2.0"
] | permissive | spl/tts | 461dc76b83df8db47e4660d0941dc97e6d4fd7d1 | b65298fea68ce47c8ed3ba3dbce71c1a20dd3481 | refs/heads/master | 1,541,049,198,347 | 1,537,967,023,000 | 1,537,967,029,000 | 119,653,145 | 1 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 862 | lean | import .core
namespace tts ------------------------------------------------------------------
namespace typ ------------------------------------------------------------------
variables {V : Type} [_root_.decidable_eq V] -- Type of variable names
open occurs
/-- Open a type with a list of types for bound variables -/... |
3d734839e4db28c8139b3a0cd15d1b044e946506 | 6432ea7a083ff6ba21ea17af9ee47b9c371760f7 | /tests/lean/run/simp4.lean | 19277d45cfa957e38111aa780180824cf420c4db | [
"Apache-2.0",
"LLVM-exception",
"NCSA",
"LGPL-3.0-only",
"LicenseRef-scancode-inner-net-2.0",
"BSD-3-Clause",
"LGPL-2.0-or-later",
"Spencer-94",
"LGPL-2.1-or-later",
"HPND",
"LicenseRef-scancode-pcre",
"ISC",
"LGPL-2.1-only",
"LicenseRef-scancode-other-permissive",
"SunPro",
"CMU-Mach"... | permissive | leanprover/lean4 | 4bdf9790294964627eb9be79f5e8f6157780b4cc | f1f9dc0f2f531af3312398999d8b8303fa5f096b | refs/heads/master | 1,693,360,665,786 | 1,693,350,868,000 | 1,693,350,868,000 | 129,571,436 | 2,827 | 311 | Apache-2.0 | 1,694,716,156,000 | 1,523,760,560,000 | Lean | UTF-8 | Lean | false | false | 1,546 | lean | opaque f : Nat → Nat
opaque q : Nat → Prop
opaque r : Nat → Prop
@[simp] axiom ax1 (p : Prop) : (p ∧ True) ↔ p
@[simp] axiom ax2 (x : Nat) : q (f x)
@[simp] axiom ax3 (x : Nat) : ¬ r (f x)
@[simp] axiom ax4 (p : Prop) : (p ∨ False) ↔ p
theorem ex1 (x : Nat) (h : q x) : q x ∧ q (f x) := by
simp [h]
theorem ex2 (x :... |
1fc04d3913b6b393d50588c0d059a9dc4e0850d8 | 26ac254ecb57ffcb886ff709cf018390161a9225 | /src/topology/local_extr.lean | d70f0f2743f17cba422c3087e76001c754049d67 | [
"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 | 14,836 | lean | /-
Copyright (c) 2019 Yury Kudryashov. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Yury Kudryashov
-/
import order.filter.extr
import topology.continuous_on
/-!
# Local extrema of functions on topological spaces
## Main definitions
This file defines special versi... |
939a23a6425da659b6ec7175e2170a543eaf1571 | 88892181780ff536a81e794003fe058062f06758 | /src/100_theorems/t024.lean | 8ca6d37fe11a443a36f73dcd18723cb8f5763a1f | [] | no_license | AtnNn/lean-sandbox | fe2c44280444e8bb8146ab8ac391c82b480c0a2e | 8c68afbdc09213173aef1be195da7a9a86060a97 | refs/heads/master | 1,623,004,395,876 | 1,579,969,507,000 | 1,579,969,507,000 | 146,666,368 | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 132 | lean | -- import summary
-- The Undecidability of the Continuum Hypothesis
-- theorem t022 : independent ZFC' CH_f := independence_of_CH
|
c7f8acc1638fee7c43b0f75b575d6444e5b3afc6 | d406927ab5617694ec9ea7001f101b7c9e3d9702 | /src/algebra/star/prod.lean | a719f7948a4836c0b0caa49e877288bc6c6b9c79 | [
"Apache-2.0"
] | permissive | alreadydone/mathlib | dc0be621c6c8208c581f5170a8216c5ba6721927 | c982179ec21091d3e102d8a5d9f5fe06c8fafb73 | refs/heads/master | 1,685,523,275,196 | 1,670,184,141,000 | 1,670,184,141,000 | 287,574,545 | 0 | 0 | Apache-2.0 | 1,670,290,714,000 | 1,597,421,623,000 | Lean | UTF-8 | Lean | false | false | 1,874 | lean | /-
Copyright (c) 2022 Eric Wieser. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Eric Wieser
-/
import algebra.star.basic
import algebra.ring.prod
import algebra.module.prod
/-!
# `star` on product types
We put a `has_star` structure on product types that operates e... |
d2d079bd73c117bf5017cba4a323beaaf65fb404 | b7f22e51856f4989b970961f794f1c435f9b8f78 | /tests/lean/hott/ind_tac1.hlean | ceef2aab9a938047b850c433bcd42a11a268d1f5 | [
"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 | 133 | hlean | open eq
set_option pp.universes true
check @homotopy.rec_on
attribute homotopy.rec_on [recursor]
print [recursor] homotopy.rec_on
|
0b173d740ba465c28077523c2ca701c68b5beb9f | df561f413cfe0a88b1056655515399c546ff32a5 | /6-advanced-addition-world/l2.lean | f62ec0c9e05d55c02d48c01d1dc4c2f6b00dbcf1 | [] | no_license | nicholaspun/natural-number-game-solutions | 31d5158415c6f582694680044c5c6469032c2a06 | 1e2aed86d2e76a3f4a275c6d99e795ad30cf6df0 | refs/heads/main | 1,675,123,625,012 | 1,607,633,548,000 | 1,607,633,548,000 | 318,933,860 | 3 | 1 | null | null | null | null | UTF-8 | Lean | false | false | 135 | lean | theorem succ_succ_inj {a b : mynat} (h : succ(succ(a)) = succ(succ(b))) : a = b :=
begin
apply succ_inj,
apply succ_inj,
exact h,
end |
dabfdacf01b0d89be1e28e1b46571ce9a8c19f69 | 07f5f86b00fed90a419ccda4298d8b795a68f657 | /library/init/meta/smt/smt_tactic.lean | 1f6473bb51497a417987be7a44f3a3fa2b5e4d67 | [
"Apache-2.0"
] | permissive | VBaratham/lean | 8ec5c3167b4835cfbcd7f25e2173d61ad9416b3a | 450ca5834c1c35318e4b47d553bb9820c1b3eee7 | refs/heads/master | 1,629,649,471,814 | 1,512,060,373,000 | 1,512,060,469,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 15,310 | 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.category
import init.meta.simp_tactic
import init.meta.smt.congruence_closure
import init.meta.smt.ematch
universe u
run_cmd mk_simp_a... |
d11eb6c7d2983ce38ed7db6d6525e74308bfe2fd | d406927ab5617694ec9ea7001f101b7c9e3d9702 | /src/data/set/function.lean | 759411e0706911f9b1aa2885502f44f704503f8e | [
"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 | 50,943 | lean | /-
Copyright (c) 2014 Jeremy Avigad. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Jeremy Avigad, Andrew Zipperer, Haitao Zhang, Minchao Wu, Yury Kudryashov
-/
import data.set.prod
import logic.function.conjugate
/-!
# Functions over sets
## Main definitions
### Pr... |
bb134d13cf1cde3c045a26d237abfe0053399011 | ad0c7d243dc1bd563419e2767ed42fb323d7beea | /analysis/measure_theory/measure_space.lean | c0767d8e7cc800f831fe5efa7f90f6c1e678a314 | [
"Apache-2.0"
] | permissive | sebzim4500/mathlib | e0b5a63b1655f910dee30badf09bd7e191d3cf30 | 6997cafbd3a7325af5cb318561768c316ceb7757 | refs/heads/master | 1,585,549,958,618 | 1,538,221,723,000 | 1,538,221,723,000 | 150,869,076 | 0 | 0 | Apache-2.0 | 1,538,229,323,000 | 1,538,229,323,000 | null | UTF-8 | Lean | false | false | 25,402 | 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
Measure spaces -- measures
Measures are restricted to a measurable space (associated by the type class `measurable_space`).
This allows us to prove equ... |
188cdd408cf39e53eb023dc852f7cb3301c102fd | 618003631150032a5676f229d13a079ac875ff77 | /src/group_theory/order_of_element.lean | 0f92a91c9f345afcdb52c2f20317695f41a2cc8c | [
"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 | 24,016 | lean | /-
Copyright (c) 2018 Johannes Hölzl. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Johannes Hölzl
-/
import group_theory.coset
import data.nat.totient
import data.set.finite
open function
variables {α : Type*} {s : set α} {a a₁ a₂ b c: α}
-- TODO this lemma isn't u... |
f4c35a7d0b86c8182d9fab72bf9ea2f2fedf4a30 | 8cae430f0a71442d02dbb1cbb14073b31048e4b0 | /src/algebraic_topology/dold_kan/n_reflects_iso.lean | 10541d6b39f98647582c4845b1e96367ba6ca805 | [
"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 | 5,329 | lean | /-
Copyright (c) 2022 Joël Riou. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Joël Riou
-/
import algebraic_topology.dold_kan.functor_n
import algebraic_topology.dold_kan.decomposition
import category_theory.idempotents.homological_complex
import category_theory.ide... |
672c24e4b7764dfd0a30a2865e912b466d459803 | 80cc5bf14c8ea85ff340d1d747a127dcadeb966f | /src/topology/uniform_space/uniform_embedding.lean | c3a58d8506ddf00e587bd182b4e104a970b7ad22 | [
"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 | 19,993 | 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, Sébastien Gouëzel, Patrick Massot
-/
import topology.uniform_space.cauchy
import topology.uniform_space.separation
import topology.dense_embedding
/-!
# Uniform embedd... |
ec651f783a42f6d1479936f5af17795ed25e3c8b | ee8cdbabf07f77e7be63a449b8483ce308d37218 | /lean/src/test/mathd-algebra-141.lean | a30f5b89d3789636906e3d7571a005c67b67558c | [
"MIT",
"Apache-2.0"
] | permissive | zeta1999/miniF2F | 6d66c75d1c18152e224d07d5eed57624f731d4b7 | c1ba9629559c5273c92ec226894baa0c1ce27861 | refs/heads/main | 1,681,897,460,642 | 1,620,646,361,000 | 1,620,646,361,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 355 | lean | /-
Copyright (c) 2021 OpenAI. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Kunhao Zheng
-/
import tactic.gptf
import data.real.basic
import data.real.nnreal
import data.real.sqrt
example (a b : nnreal) (h₁ : (a * b)=180) (h₂ : 2 * (a + b)=54) : nnreal.sqrt (a^2 + b^... |
681c4e800a47a521b8eed514807b0c08998337cf | 8cae430f0a71442d02dbb1cbb14073b31048e4b0 | /src/combinatorics/young/young_diagram.lean | b24cc54c3edab85aa567f11c81d68596803cc1e6 | [
"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 | 16,687 | lean | /-
Copyright (c) 2022 Jake Levinson. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Jake Levinson
-/
import order.upper_lower.basic
import data.finset.preimage
/-!
# Young diagrams
> THIS FILE IS SYNCHRONIZED WITH MATHLIB4.
> Any changes to this file require a corres... |
f9e459c9b5785fae6815615846b75d38757afaf0 | 9c1ad797ec8a5eddb37d34806c543602d9a6bf70 | /examples/types/dev.lean | cbe8dd8de60f078548bcd2ad9f170abd6e81cdc3 | [] | no_license | timjb/lean-category-theory | 816eefc3a0582c22c05f4ee1c57ed04e57c0982f | 12916cce261d08bb8740bc85e0175b75fb2a60f4 | refs/heads/master | 1,611,078,926,765 | 1,492,080,000,000 | 1,492,080,000,000 | 88,348,246 | 0 | 0 | null | 1,492,262,499,000 | 1,492,262,498,000 | null | UTF-8 | Lean | false | false | 2,694 | lean | -- Copyright (c) 2017 Scott Morrison. All rights reserved.
-- Released under Apache 2.0 license as described in the file LICENSE.
-- Authors: Stephen Morgan, Scott Morrison
import ...monoidal_categories.monoidal_category
import ...monoidal_categories.braided_monoidal_category
import .types
namespace tqft.categories.e... |
7b90b6d52badfc7dc88fa2843d5f4e5e574d09fb | 9dc8cecdf3c4634764a18254e94d43da07142918 | /src/algebra/group/opposite.lean | 5a34c0f781951f9f0653b23a6a4e3808eb9434dc | [
"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 | 21,228 | lean | /-
Copyright (c) 2018 Kenny Lau. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Kenny Lau
-/
import algebra.group.inj_surj
import algebra.group.commute
import algebra.hom.equiv
import algebra.opposites
import data.int.cast.defs
/-!
# Group structures on the multiplica... |
cf00b5ae3668368b177ea638cf1b833fb62b13dd | ac1c2a2f522b0fdf854095ba00f882ca849669e7 | /leanpkg/leanpkg/main.lean | 2e4a4a3764a3fa35dc014db8e695c5f7fcb64668 | [
"Apache-2.0"
] | permissive | abliss/lean | b8b336abc8d50dbb0726dcff9dd16793c23bfbe1 | fb24cc99573c153f97a1951ee94bbbdda300b6be | refs/heads/master | 1,611,536,584,520 | 1,497,811,981,000 | 1,497,811,981,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 6,404 | lean | /-
Copyright (c) 2017 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Author: Gabriel Ebner
-/
import leanpkg.resolve
variable [io.interface]
namespace leanpkg
def write_file (fn : string) (cnts : string) (mode := io.mode.write) : io unit := do
h ← io.mk... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.