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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
d2961627bd2a5c54232a0cc01dd7fcd350dfe52f | cf39355caa609c0f33405126beee2739aa3cb77e | /tests/lean/run/ind8.lean | fedeb032faa40d028e02ad9313c8c0596cafeaf9 | [
"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 | 336 | lean | inductive Pair1 (A B : Type)
| mk ( ) : A → B → Pair1
#check Pair1.mk
#check Pair1.mk Prop Prop true false
inductive Pair2 {A : Type} (B : A → Type)
| mk ( ) : Π (a : A), B a → Pair2
#check @Pair2.mk
#check Pair2.mk (λx, Prop) true false
inductive Pair3 (A B : Type)
| mk : A → B → Pair3
#check Pair3.mk true fals... |
507b5bdacaf8983ac7c37d6f15dac4711e17bca6 | a76f677b87d42a9470ba3a0a78cfddd3063118e6 | /src/congruence/parallel.lean | baa9641428f58e308eee98dc86b5acc0fecf2776 | [] | no_license | Ja1941/hilberts-axioms | 50219c732ad5fa167408432e8c8baae259777a40 | 5b653a92e448b77da41c9893066b641bc4e6b316 | refs/heads/master | 1,693,238,884,856 | 1,635,702,120,000 | 1,635,702,120,000 | 385,546,384 | 9 | 1 | null | null | null | null | UTF-8 | Lean | false | false | 6,748 | lean | /-
Copyright (c) 2021 Tianchen Zhao. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Tianchen Zhao
-/
import congruence.Elements
/-!
# Parallelism
This file defines how two lines are parallel and proves properties
of parallel lines such as alternative angles.
## Main... |
99524be13ff2b5a7f3a6a132de0b753c27aa9e91 | 9028d228ac200bbefe3a711342514dd4e4458bff | /src/linear_algebra/dual.lean | 72ee1a8423fd98600052aea97482b834c98436d8 | [
"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 | 12,791 | lean | /-
Copyright (c) 2019 Johan Commelin. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Johan Commelin, Fabian Glöckle
-/
import linear_algebra.finite_dimensional
import tactic.apply_fun
noncomputable theory
/-!
# Dual vector spaces
The dual space of an R-module M is th... |
bc68bb6573e2efb798e1afff2cbeb1b7a8d045ea | 6432ea7a083ff6ba21ea17af9ee47b9c371760f7 | /src/Lean/Meta/Tactic/LinearArith.lean | cadcc6067f3804c211b3f738caf40b021d9898a7 | [
"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 | 325 | lean | /-
Copyright (c) 2022 Sebastian Ullrich. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Sebastian Ullrich
-/
import Lean.Meta.Tactic.LinearArith.Solver
import Lean.Meta.Tactic.LinearArith.Nat
import Lean.Meta.Tactic.LinearArith.Main
import Lean.Meta.Tactic.LinearArith.... |
be1bf382d8a51cbfba34dae2c768d96e919aaa8f | 0851884047bb567d19e188e8f1ad959c5ae9c5ce | /src/M1P2/Sheet-7.lean | f0d7d2f00790d2fe4f30d7e1dcb641ef3fb28e55 | [
"Apache-2.0"
] | permissive | yz5216/xena-UROP-2018 | 00d3f71a831324966d40d302544ed2cbbec3fd0f | 5e9da9dc64dc51897677f8b73ab9f94061a8d977 | refs/heads/master | 1,584,922,436,989 | 1,531,487,250,000 | 1,531,487,250,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 1,996 | lean | import data.nat.prime data.nat.basic data.int.modeq
open nat
--sheet 7
-- *1. Suppose that G is a finite group which contains elements of each of the orders 1, 2, . . . , 10. What is the smallest possible value of |G|? Find a group of this size which does have elements of each of these orders.
theorem sheet07_q1:
... |
d50653bff88a4456a1c131d5a7ef2fe87b89db33 | 4d2583807a5ac6caaffd3d7a5f646d61ca85d532 | /src/logic/is_empty.lean | de2594018ec81641600cb6e91e2b367a1060de66 | [
"Apache-2.0"
] | permissive | AntoineChambert-Loir/mathlib | 64aabb896129885f12296a799818061bc90da1ff | 07be904260ab6e36a5769680b6012f03a4727134 | refs/heads/master | 1,693,187,631,771 | 1,636,719,886,000 | 1,636,719,886,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 4,674 | 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 logic.basic
import tactic.protected
/-!
# Types that are empty
In this file we define a typeclass `is_empty`, which expresses that a type has no elements.... |
2ee377cd043b93a0249c45d83b7c7d47dcb3ca4d | 74addaa0e41490cbaf2abd313a764c96df57b05d | /Mathlib/Lean3Lib/init/meta/smt/rsimp_auto.lean | a167eea7ede40587ae6c664e42625c1628a774f5 | [] | 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 | 1,148 | 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
-/
import Mathlib.PrePort
import Mathlib.Lean3Lib.init.meta.smt.smt_tactic
import Mathlib.Lean3Lib.init.meta.fun_info
import Mathlib.Lean3Lib.init.meta.rb_map
... |
8bdb247653227e0d576b8d411b420767cc796203 | b7f22e51856f4989b970961f794f1c435f9b8f78 | /tests/lean/run/eq1.lean | cc0396146c8f52d179096cdac15430306da24701 | [
"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 | 451 | lean | inductive day :=
monday | tuesday | wednesday | thursday | friday | saturday | sunday
open day
definition next_weekday : day → day
| next_weekday monday := tuesday
| next_weekday tuesday := wednesday
| next_weekday wednesday := thursday
| next_weekday thursday := friday
| next_weekday friday := monday
| next... |
62c82b667b67605d220db195d1d6b523a539934a | 74addaa0e41490cbaf2abd313a764c96df57b05d | /Mathlib/algebra/lie/basic.lean | 536ecab02cdb67e157618e9dfe58af0345192a49 | [] | 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 | 112,578 | lean | /-
Copyright (c) 2019 Oliver Nash. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Oliver Nash
-/
import Mathlib.PrePort
import Mathlib.Lean3Lib.init.default
import Mathlib.data.bracket
import Mathlib.algebra.algebra.basic
import Mathlib.linear_algebra.bilinear_form
imp... |
57712cf42695a57436a8cc0e9a0075d1c4340ab2 | 8d65764a9e5f0923a67fc435eb1a5a1d02fd80e3 | /src/algebra/ordered_monoid_lemmas.lean | 7cf18ca39c22bdc1f417a2fd7da3c51b38d74406 | [
"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 | 27,761 | lean | /-
Copyright (c) 2016 Jeremy Avigad. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Jeremy Avigad, Leonardo de Moura, Mario Carneiro, Johannes Hölzl, Damiano Testa
-/
import algebra.covariant_and_contravariant
import order.basic
/-!
# Ordered monoids
This file devel... |
65479b22f49e5b5fa16736e6d03b6599c7f19a30 | fa02ed5a3c9c0adee3c26887a16855e7841c668b | /src/category_theory/abelian/non_preadditive.lean | 22cddc8ee19033c4929d366ab9698bd45e6fac06 | [
"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 | 32,034 | lean | /-
Copyright (c) 2020 Markus Himmel. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Markus Himmel
-/
import category_theory.limits.shapes.finite_products
import category_theory.limits.shapes.kernels
import category_theory.limits.shapes.normal_mono
import category_theor... |
5d89e525e021c87e1bf2a121c59708a990f280a5 | d406927ab5617694ec9ea7001f101b7c9e3d9702 | /src/analysis/inner_product_space/two_dim.lean | 4dc3137d0858225e1cefcd132ee1c63eb46d9aa5 | [
"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 | 26,930 | lean | /-
Copyright (c) 2022 Heather Macbeth. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Heather Macbeth
-/
import analysis.inner_product_space.dual
import analysis.inner_product_space.orientation
import tactic.linear_combination
/-!
# Oriented two-dimensional real inner... |
545c5b12e3b30b1826bf22dcb7e26420ba2928b1 | 2385ce0e3b60d8dbea33dd439902a2070cca7a24 | /tests/lean/run/1804a.lean | da6fbf403955eabd1eaecbad5524082eeb2aa36a | [
"Apache-2.0"
] | permissive | TehMillhouse/lean | 68d6fdd2fb11a6c65bc28dec308d70f04dad38b4 | 6bbf2fbd8912617e5a973575bab8c383c9c268a1 | refs/heads/master | 1,620,830,893,339 | 1,515,592,479,000 | 1,515,592,997,000 | 116,964,828 | 0 | 0 | null | 1,515,592,734,000 | 1,515,592,734,000 | null | UTF-8 | Lean | false | false | 688 | lean | section
parameter P : match unit.star with
| unit.star := true
end
include P
example : false :=
begin
dsimp [_match_1] at P,
guard_hyp P := true,
sorry
end
end
section
parameter P : match unit.star with
| unit.star := true
end
include P
example : false :=
begin
dsimp [_match_1] at P,
guard_hyp P := true,... |
0694e6d39d3339394d77a84a2295b64c80a259fe | 624f6f2ae8b3b1adc5f8f67a365c51d5126be45a | /stage0/src/Init/Data/HashMap.lean | 1c6779cedfca18470118bded785446a8737910e3 | [
"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 | 202 | lean | /-
Copyright (c) 2019 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Author: Leonardo de Moura
-/
prelude
import Init.Data.HashMap.Basic
|
30d19c1d7feb42e483878c182735f14e7dea83bb | ce6917c5bacabee346655160b74a307b4a5ab620 | /src/ch2/ex0207.lean | ad18c6f7b573fcd4400b3580391e5cb5f6ab1bcf | [] | no_license | Ailrun/Theorem_Proving_in_Lean | ae6a23f3c54d62d401314d6a771e8ff8b4132db2 | 2eb1b5caf93c6a5a555c79e9097cf2ba5a66cf68 | refs/heads/master | 1,609,838,270,467 | 1,586,846,743,000 | 1,586,846,743,000 | 240,967,761 | 1 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 27 | lean | #check Type
#check Type 0
|
8661fdf64cc1a70d39dd79a4b398432d26dddd6c | 74addaa0e41490cbaf2abd313a764c96df57b05d | /Mathlib/Lean3Lib/init/meta/comp_value_tactics.lean | 61b74f8870075b9abf762bcbaa38e3f5817635a6 | [] | 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 | 297 | 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
-/
import Mathlib.PrePort
import Mathlib.Lean3Lib.init.meta.tactic
import Mathlib.Lean3Lib.init.data.option.basic
namespace Mathlib
|
8c082029bca39c05b66650edb746876710a5a015 | 8cae430f0a71442d02dbb1cbb14073b31048e4b0 | /src/data/nat/pow.lean | 4b2ac6720c4e647c86a08a364b43f3dcae2fb112 | [
"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 | 7,726 | lean | /-
Copyright (c) 2014 Floris van Doorn (c) 2016 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Floris van Doorn, Leonardo de Moura, Jeremy Avigad, Mario Carneiro
-/
import algebra.group_power.order
/-! # `nat.pow`
> THIS FILE IS SYNCHRONIZED WI... |
03b963dc5bf8e57b0a8f9a7170b46f7caa59f186 | e2c1ee9c02c59b832eb48536755242ce5f9b2c3e | /src/t10.lean | 8b385572a50a30a84cde771fb4f433b8d9c68a14 | [] | no_license | yairgueta/Lean | cb5bb16d81674e8a07f85c9dbeb56dc2f543d4eb | af8a4fa24f76edfdd0dd33f013db194e611e6a86 | refs/heads/master | 1,676,275,529,938 | 1,610,289,661,000 | 1,610,289,661,000 | 328,405,309 | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 1,364 | lean | import tactic
open tactic
/-!
## Exercise 1
Write a `contradiction` tactic.
The tactic should look through the hypotheses in the local context
trying to find two that contradict each other,
i.e. proving `P` and `¬ P` for some proposition `P`.
It should use this contradiction to close the goal.
Bonus: handle `P → false... |
6fe9ed412c86ef5f75aa2e2e7c79c9547d8b2ef1 | 2a70b774d16dbdf5a533432ee0ebab6838df0948 | /_target/deps/mathlib/src/number_theory/quadratic_reciprocity.lean | 5a8d3488911c340fc8c659c6101eb7a5e18789f9 | [
"Apache-2.0"
] | permissive | hjvromen/lewis | 40b035973df7c77ebf927afab7878c76d05ff758 | 105b675f73630f028ad5d890897a51b3c1146fb0 | refs/heads/master | 1,677,944,636,343 | 1,676,555,301,000 | 1,676,555,301,000 | 327,553,599 | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 25,020 | 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 field_theory.finite.basic
import data.zmod.basic
import data.nat.parity
/-!
# Quadratic reciprocity.
This file contains results about quadratic residues modulo ... |
beb8d348d8a94b41e3606e5ccf6e362fcea30a27 | 8cae430f0a71442d02dbb1cbb14073b31048e4b0 | /src/ring_theory/dedekind_domain/integral_closure.lean | 357d4b6ec65e08a2865b8034d679e53d29425ab6 | [
"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 | 13,514 | lean | /-
Copyright (c) 2020 Kenji Nakagawa. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Kenji Nakagawa, Anne Baanen, Filippo A. E. Nuccio
-/
import linear_algebra.free_module.pid
import ring_theory.dedekind_domain.basic
import ring_theory.localization.module
import ring_t... |
3a3ed11f119cf599bcbf5fe49d1b2665a1d5e27e | 0d4c30038160d9c35586ce4dace36fe26a35023b | /src/algebra/lie_algebra.lean | 5f28951990308ae2f74523cad111be3e25a75892 | [
"Apache-2.0"
] | permissive | b-mehta/mathlib | b0c8ec929ec638447e4262f7071570d23db52e14 | ce72cde867feabe5bb908cf9e895acc0e11bf1eb | refs/heads/master | 1,599,457,264,781 | 1,586,969,260,000 | 1,586,969,260,000 | 220,672,634 | 0 | 0 | Apache-2.0 | 1,583,944,480,000 | 1,573,317,991,000 | Lean | UTF-8 | Lean | false | false | 22,697 | lean | /-
Copyright (c) 2019 Oliver Nash. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Oliver Nash
-/
import ring_theory.algebra data.matrix.basic linear_algebra.linear_action
/-!
# Lie algebras
This file defines Lie rings, and Lie algebras over a commutative ring. It sho... |
642ef01da6ba77ec9ec4f85ef39d5f77b662718f | 624f6f2ae8b3b1adc5f8f67a365c51d5126be45a | /stage0/src/Init/Data/Nat.lean | cf7be93c6e838845fae022378fe6f8d85baddf0a | [
"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 | 282 | lean | /-
Copyright (c) 2016 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Leonardo de Moura
-/
prelude
import Init.Data.Nat.Basic
import Init.Data.Nat.Div
import Init.Data.Nat.Bitwise
import Init.Data.Nat.Control
|
fa280efe3bf724ae444b8dc4776766c24ac31beb | 8930e38ac0fae2e5e55c28d0577a8e44e2639a6d | /analysis/ennreal.lean | 8fa4186bc307621c9047a604b44f7018af0bc228 | [
"Apache-2.0"
] | permissive | SG4316/mathlib | 3d64035d02a97f8556ad9ff249a81a0a51a3321a | a7846022507b531a8ab53b8af8a91953fceafd3a | refs/heads/master | 1,584,869,960,527 | 1,530,718,645,000 | 1,530,724,110,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 46,588 | 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
Extended non-negative reals
TODO: base ennreal on nnreal!
-/
import order.bounds algebra.ordered_group analysis.nnreal analysis.topology.infinite_sum
noncomputable theo... |
e816554484890160d9f4bbb351b626d4fc8ee6ed | 6dc0c8ce7a76229dd81e73ed4474f15f88a9e294 | /stage0/src/Lean/Meta.lean | 75be9686fbbc126aa20d0a000000f6e23f442013 | [
"Apache-2.0"
] | permissive | williamdemeo/lean4 | 72161c58fe65c3ad955d6a3050bb7d37c04c0d54 | 6d00fcf1d6d873e195f9220c668ef9c58e9c4a35 | refs/heads/master | 1,678,305,356,877 | 1,614,708,995,000 | 1,614,708,995,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 901 | 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.Meta.Basic
import Lean.Meta.LevelDefEq
import Lean.Meta.WHNF
import Lean.Meta.InferType
import Lean.Meta.FunInfo
import Lean.Meta.ExprDefEq
impo... |
2dacf10c91ad9fe921ab798838cd4e463b865857 | d9d511f37a523cd7659d6f573f990e2a0af93c6f | /src/geometry/euclidean/sphere.lean | a9d1680a5aee6fd9a919d7427ef03069bc56e191 | [
"Apache-2.0"
] | permissive | hikari0108/mathlib | b7ea2b7350497ab1a0b87a09d093ecc025a50dfa | a9e7d333b0cfd45f13a20f7b96b7d52e19fa2901 | refs/heads/master | 1,690,483,608,260 | 1,631,541,580,000 | 1,631,541,580,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 8,399 | lean | /-
Copyright (c) 2021 Manuel Candales. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Manuel Candales, Benjamin Davidson
-/
import geometry.euclidean.triangle
/-!
# Spheres
This file proves basic geometrical results about distances and angles
in spheres in real inner... |
12c72dbd940f17009455cc1607aad38f36cdfef6 | bd57135d92f6f3b771aae7ca08550ff8719ec590 | /src/determinants.lean | 526126e323eb024a35d5164fb5ead4bb68975939 | [] | no_license | simonjwinwood/kbb | 109775572d17fceb93ee2419905bbecff776ebd2 | b5ff345e1022aee40dfda406c1c0631a9bba9c03 | refs/heads/master | 1,585,550,843,265 | 1,537,509,365,000 | 1,537,509,365,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 9,988 | lean | import tactic.tidy
import group_theory.subgroup
import group_theory.perm
import data.finset
import .monoid_stuff
import .matrices
import .Sym
universes u v
lemma finset.prod_mul_right {α} [group α]
{β} [comm_monoid β] {f : α → β} {s : finset α} (x : α) :
s.prod f =
(s.map ⟨λ z, z * x⁻¹, λ _ _, mul_right_cancel⟩... |
aaa132caba39083a60dd965168caee63c49a5542 | 8cae430f0a71442d02dbb1cbb14073b31048e4b0 | /src/algebra/char_p/algebra.lean | 2273ed60cc6eef7c69d5249f89b675565c689f08 | [
"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,188 | lean | /-
Copyright (c) 2021 Jon Eugster. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Jon Eugster, Eric Wieser
-/
import algebra.char_p.basic
import ring_theory.localization.fraction_ring
import algebra.free_algebra
/-!
# Characteristics of algebras
> THIS FILE IS SYNCH... |
59dbaacb6b61aa4d4653628c91714a2539a92eaf | a0e23cfdd129a671bf3154ee1a8a3a72bf4c7940 | /stage0/src/Init/Data/Nat/Bitwise.lean | 4d014d5c09fffc3f381f35eb0759c7688fd04c65 | [
"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 | 1,278 | 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.Nat.Basic
import Init.Data.Nat.Div
import Init.Coe
namespace Nat
partial def bitwise (f : Bool → Bool → Bool) (n m : Nat) : Nat :... |
87aeff80933ecff1a71414d6825c9ddec3932842 | b7f22e51856f4989b970961f794f1c435f9b8f78 | /tests/lean/notation_priority.lean | dd3d098abcfd235d0f8fade956206ae0f03a5da8 | [
"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 | 342 | lean | import data.real
open real int nat
variables a b : nat
variables i j : int
set_option pp.all true
check a + b
check i + j
example : a + b = nat.add a b :=
rfl
example : i + j = int.add i j :=
rfl
open nat real int
example : a + b = nat.add a b :=
rfl
example : i + j = int.add i j :=
rfl
set_option pp.all true
ch... |
a8d02b09850f75d0c613c1f50f9994e5f0fe65a5 | fa02ed5a3c9c0adee3c26887a16855e7841c668b | /src/computability/epsilon_NFA.lean | 90127af4c675dc570710ad8d958af63c7845adb2 | [
"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 | 4,467 | lean | /-
Copyright (c) 2021 Fox Thomson. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Fox Thomson
-/
import computability.NFA
/-!
# Epsilon Nondeterministic Finite Automata
This file contains the definition of an epsilon Nondeterministic Finite Automaton (`ε_NFA`), a sta... |
de92acb6f77584a904e38bc654813453dc83ceea | c465bc191b95d7a9e7544551279b09708d373f58 | /test_v2.lean | 6d081d95fed5788fbb1819b7d487efd15c533e15 | [] | no_license | kevinsullivan/physvm_develop | b7a4149c72a10b3a87894c5db5af9b2ce5885c80 | a57e9c87d4d3fb7548dc6dfae3b932a51fc25b67 | refs/heads/main | 1,692,010,146,359 | 1,633,989,164,000 | 1,633,989,164,000 | 397,360,532 | 0 | 1 | null | null | null | null | UTF-8 | Lean | false | false | 29,167 | lean | import .phys.time.time
import .phys.time_series.geom3d
import .std.time_std
import .std.geom3d_std
noncomputable theory
-- Kevin: See http://petitjeanmichel.free.fr/itoweb.petitjean.symmetry.html
/-
We need to assume a physical interpretation of the data
representing our coordinate system on geom3d. See geom3d_std.l... |
04c6e233159c0696e820ccba35b0a15c8dd43eac | 6432ea7a083ff6ba21ea17af9ee47b9c371760f7 | /tests/lean/matchErrorMsg.lean | c6327bb1d46c8207d79602f798741947ff38fd55 | [
"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 | 78 | lean | def f (x : Nat × Nat) : Nat :=
match x with
| (0, 0) => 1
| (x+1, _) => 2
|
a6a5ce67b4761b31ad1e7519101b50e45aa5c44e | 74addaa0e41490cbaf2abd313a764c96df57b05d | /Mathlib/ring_theory/adjoin_root.lean | 47253c25d6afdf27a26f269dd5d14b1e8d6a61eb | [] | 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 | 8,733 | lean | /-
Copyright (c) 2018 Mario Carneiro. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Mario Carneiro, Chris Hughes
Adjoining roots of polynomials
-/
import Mathlib.PrePort
import Mathlib.Lean3Lib.init.default
import Mathlib.data.polynomial.field_division
import Mathlib... |
5e28849ca67ec105bec5e4079985ae6e23b442b9 | 4efff1f47634ff19e2f786deadd394270a59ecd2 | /src/analysis/normed_space/add_torsor.lean | c6f9a0630657759c65a9318e0faeac34c3467b8c | [
"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 | 4,264 | lean | /-
Copyright (c) 2020 Joseph Myers. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Author: Joseph Myers.
-/
import algebra.add_torsor
import topology.metric_space.isometry
noncomputable theory
/-!
# Torsors of additive normed group actions.
This file defines torsors of addit... |
1510c1cfcc09f5d13b8221fba4925756fe247bce | 94e33a31faa76775069b071adea97e86e218a8ee | /src/analysis/normed_space/hahn_banach/extension.lean | accee48ac378f93211fd171554ee76fab0c364ea | [
"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 | 6,787 | lean | /-
Copyright (c) 2020 Yury Kudryashov All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Yury Kudryashov, Heather Macbeth
-/
import analysis.convex.cone
import analysis.normed_space.is_R_or_C
import analysis.normed_space.extend
/-!
# Extension Hahn-Banach theorem
In this... |
598e4828f10542c664860bbbbb6d9670f302af42 | 74addaa0e41490cbaf2abd313a764c96df57b05d | /Mathlib/ring_theory/valuation/basic_auto.lean | 088b697aab61825036289423c49e621a417f2f98 | [] | 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 | 19,501 | lean | /-
Copyright (c) 2020 Johan Commelin. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Kevin Buzzard, Johan Commelin, Patrick Massot
-/
import Mathlib.PrePort
import Mathlib.Lean3Lib.init.default
import Mathlib.algebra.linear_ordered_comm_group_with_zero
import Mathlib.a... |
fa3ac634e779d7c7c5a4b718a4652b1484a33a2a | 94e33a31faa76775069b071adea97e86e218a8ee | /src/analysis/normed_space/exponential.lean | dfd830406afcd0101a90d464b2ac0f0f4b965a2c | [
"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 | 26,250 | lean | /-
Copyright (c) 2021 Anatole Dedecker. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Anatole Dedecker, Eric Wieser
-/
import analysis.specific_limits.basic
import analysis.analytic.basic
import analysis.complex.basic
import data.nat.choose.cast
import data.finset.non... |
152fac571073d21c91a3c40a3bf0bf3ccddb2fff | 82e44445c70db0f03e30d7be725775f122d72f3e | /src/analysis/normed_space/inner_product.lean | c003be86f4e5faab5a8ed70947f68616239b88f9 | [
"Apache-2.0"
] | permissive | stjordanis/mathlib | 51e286d19140e3788ef2c470bc7b953e4991f0c9 | 2568d41bca08f5d6bf39d915434c8447e21f42ee | refs/heads/master | 1,631,748,053,501 | 1,627,938,886,000 | 1,627,938,886,000 | 228,728,358 | 0 | 0 | Apache-2.0 | 1,576,630,588,000 | 1,576,630,587,000 | null | UTF-8 | Lean | false | false | 125,220 | 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, Heather Macbeth
-/
import analysis.complex.basic
import analysis.normed_space.bounded_linear_maps
import analysis.special_functions.sq... |
8c521c419817cfb246e317977e6f672a77dda88c | 9d2e3d5a2e2342a283affd97eead310c3b528a24 | /src/hints/thursday/afternoon/category_theory/exercise6/hint1.lean | deaea5287e9312bd9f941fcef426b9dd2e6955f4 | [] | permissive | Vtec234/lftcm2020 | ad2610ab614beefe44acc5622bb4a7fff9a5ea46 | bbbd4c8162f8c2ef602300ab8fdeca231886375d | refs/heads/master | 1,668,808,098,623 | 1,594,989,081,000 | 1,594,990,079,000 | 280,423,039 | 0 | 0 | MIT | 1,594,990,209,000 | 1,594,990,209,000 | null | UTF-8 | Lean | false | false | 903 | lean | import category_theory.limits.shapes.pullbacks
/-!
Thanks to Markus Himmel for suggesting this question.
-/
open category_theory
open category_theory.limits
/-!
Let C be a category, X and Y be objects and f : X ⟶ Y be a morphism. Show that f is an epimorphism
if and only if the diagram
X --f--→ Y
| |
f ... |
3b4e0b1e5895137c0e642e933cb56a58f10a4f42 | a4673261e60b025e2c8c825dfa4ab9108246c32e | /stage0/src/Lean/Meta/ForEachExpr.lean | 743436e8f282bd55dae4c20f72859f7bfd72cc25 | [
"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 | 2,245 | 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.Expr
import Lean.Util.MonadCache
import Lean.Meta.Basic
namespace Lean.Meta
namespace ForEachExpr
abbrev M := MonadCacheT Expr Unit MetaM
mut... |
e1394079acf2cb2c73250005d9a60096ef28357f | a339bc2ac96174381fb610f4b2e1ba42df2be819 | /hott/algebra/homotopy_group.hlean | 2347493bf9888a7a49bdbcbae0c020c61998234b | [
"Apache-2.0"
] | permissive | kalfsvag/lean2 | 25b2dccc07a98e5aa20f9a11229831f9d3edf2e7 | 4d4a0c7c53a9922c5f630f6f8ebdccf7ddef2cc7 | refs/heads/master | 1,610,513,122,164 | 1,483,135,198,000 | 1,483,135,198,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 10,545 | 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
homotopy groups of a pointed space
-/
import .trunc_group types.trunc .group_theory types.nat.hott
open nat eq pointed trunc is_trunc algebra group function equiv... |
51bec885a70ff9f5589366771057817e39fd3228 | 624f6f2ae8b3b1adc5f8f67a365c51d5126be45a | /src/Init/Lean/Util/ReplaceExpr.lean | 471f7a4cddfe0a4ef28dbb388056f745d2c30c6b | [
"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 | 3,087 | 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
-/
prelude
import Init.Lean.Expr
namespace Lean
namespace Expr
namespace ReplaceImpl
abbrev cacheSize : USize := 8192
structure State :=
(keys : Array E... |
eff8d62bab3f72d26e38c9ccab80e1f95ea5fa24 | 8cae430f0a71442d02dbb1cbb14073b31048e4b0 | /src/algebra/big_operators/ring.lean | 6a0c5a9dca0dd0b6c3c4cbb803547f3b2dc375f2 | [
"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,114 | lean | /-
Copyright (c) 2017 Johannes Hölzl. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Johannes Hölzl
-/
import algebra.big_operators.basic
import algebra.field.defs
import data.finset.pi
import data.finset.powerset
/-!
# Results about big operators with values in a (s... |
6991c140a0d7817db283cf5bd7c0374481d5ae39 | 957a80ea22c5abb4f4670b250d55534d9db99108 | /tests/lean/run/eval_attr_cache.lean | 93afefb04beb88c624289405a9bd5fea86950848 | [
"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 | 719 | lean | open tactic
@[user_attribute]
meta def my_attr : caching_user_attribute (name → bool) :=
{ name := "my_attr",
descr := "my attr",
mk_cache := λ ls, do {
let c := `(λ n : name, (name.cases_on n ff (λ _ _, to_bool (n ∈ ls)) (λ _ _, ff) : bool)),
eval_expr (name → bool) c
},
dependencies :... |
50d380377bdc94b89556333a02cff807e383d610 | 8d65764a9e5f0923a67fc435eb1a5a1d02fd80e3 | /src/field_theory/separable.lean | 46622868d23bbdd561453f5a1dfe34563d67d890 | [
"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 | 27,388 | lean | /-
Copyright (c) 2020 Kenny Lau. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Kenny Lau
-/
import algebra.polynomial.big_operators
import field_theory.minpoly
import field_theory.splitting_field
import field_theory.tower
import algebra.squarefree
/-!
# Separable p... |
8cff9ccb92740b95d388f863a8aed3cd499d155c | 94e33a31faa76775069b071adea97e86e218a8ee | /src/algebraic_geometry/projective_spectrum/topology.lean | 4425efc12d9dece2df2acbd004e5f234e79b6f87 | [
"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 | 18,868 | lean | /-
Copyright (c) 2020 Jujian Zhang. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Jujian Zhang, Johan Commelin
-/
import topology.category.Top
import ring_theory.graded_algebra.homogeneous_ideal
/-!
# Projective spectrum of a graded ring
The projective spectrum of ... |
b9d90bcff9d90a334e940b98dbef16357ce54af4 | cf39355caa609c0f33405126beee2739aa3cb77e | /library/init/control/reader.lean | fe4b34ff9fe11b2c827329921dbcb9a75a233aa7 | [
"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 | 5,008 | lean | /-
Copyright (c) 2017 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Sebastian Ullrich
The reader monad transformer for passing immutable state.
-/
prelude
import init.control.lift init.control.id init.control.alternative init.control.except
un... |
d1263e66b91923d8aa563a97d67ab99d62c389e9 | c3de33d4701e6113627153fe1103b255e752ed7d | /theories/set_theory.lean | 59fb6f165161c3b1dc289bdb0264cc5f414dffde | [] | no_license | jroesch/library_dev | 77d2b246ff47ab05d55cb9706a37d3de97038388 | 4faa0a45c6aa7eee6e661113c2072b8840bff79b | refs/heads/master | 1,611,281,606,352 | 1,495,661,644,000 | 1,495,661,644,000 | 92,340,430 | 0 | 0 | null | 1,495,663,344,000 | 1,495,663,344,000 | null | UTF-8 | Lean | false | false | 27,875 | lean | import data.set.basic
universes u v
@[simp]
lemma subtype.eta {α : Type u} {p : α → Prop} {a : subtype p} {h : p (a.val)} :
{subtype . val := a.val, property := h} = a :=
by cases a; refl
def arity (α : Type u) : nat → Type u
| 0 := α
| (n+1) := α → arity n
inductive pSet : Type (u+1)
| mk (α : Type u) (A : α... |
21398bac739a495dea4000bbc5dfb8409bc6747a | 4efff1f47634ff19e2f786deadd394270a59ecd2 | /src/topology/sheaves/sheaf_of_functions.lean | 46f6b4c426fce1769e0ebc3bae6f3f24ab3f977c | [
"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,115 | lean | /-
Copyright (c) 2020 Scott Morrison. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Johan Commelin, Scott Morrison
-/
import topology.sheaves.presheaf_of_functions
import topology.sheaves.sheaf
import category_theory.limits.shapes.types
import topology.local_homeomorp... |
daeafbdaea5310f6059bc939016e43b67a0257bb | 947fa6c38e48771ae886239b4edce6db6e18d0fb | /src/order/hom/basic.lean | 5607f8afbb337ceae7504402898d49cac5760b02 | [
"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 | 41,777 | lean | /-
Copyright (c) 2020 Johan Commelin. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Johan Commelin
-/
import logic.equiv.option
import order.rel_iso
import tactic.monotonicity.basic
/-!
# Order homomorphisms
This file defines order homomorphisms, which are bundled m... |
10c45c7ca018014d81aed58fb6b436d848c5f669 | a7dd8b83f933e72c40845fd168dde330f050b1c9 | /src/category_theory/instances/CommRing/limits.lean | c807e1cb1bf3ec5b72ff00c3eec56597e4ad9ed7 | [
"Apache-2.0"
] | permissive | NeilStrickland/mathlib | 10420e92ee5cb7aba1163c9a01dea2f04652ed67 | 3efbd6f6dff0fb9b0946849b43b39948560a1ffe | refs/heads/master | 1,589,043,046,346 | 1,558,938,706,000 | 1,558,938,706,000 | 181,285,984 | 0 | 0 | Apache-2.0 | 1,568,941,848,000 | 1,555,233,833,000 | Lean | UTF-8 | Lean | false | false | 4,107 | lean | -- Copyright (c) 2019 Scott Morrison. All rights reserved.
-- Released under Apache 2.0 license as described in the file LICENSE.
-- Authors: Scott Morrison
import category_theory.instances.CommRing.basic
import category_theory.limits.types
import category_theory.limits.preserves
import ring_theory.subring
import alge... |
6a81aa9af1094dfeb8320474a73683a8c5a75bf2 | 7cef822f3b952965621309e88eadf618da0c8ae9 | /src/data/nat/basic.lean | 0d9a25d629099c3213564c076653a228dafd197b | [
"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 | 55,271 | lean | /-
Copyright (c) 2014 Floris van Doorn. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Floris van Doorn, Leonardo de Moura, Jeremy Avigad, Mario Carneiro
-/
import logic.basic algebra.ordered_ring data.option.basic algebra.order_functions
/-!
# Basic operations on the... |
53219bd63f91e49ea6cf664795d816920f97b755 | 367134ba5a65885e863bdc4507601606690974c1 | /src/analysis/convex/caratheodory.lean | 5c752c7fa6892bdf0d191aaf57e104d25d534e2a | [
"Apache-2.0"
] | permissive | kodyvajjha/mathlib | 9bead00e90f68269a313f45f5561766cfd8d5cad | b98af5dd79e13a38d84438b850a2e8858ec21284 | refs/heads/master | 1,624,350,366,310 | 1,615,563,062,000 | 1,615,563,062,000 | 162,666,963 | 0 | 0 | Apache-2.0 | 1,545,367,651,000 | 1,545,367,651,000 | null | UTF-8 | Lean | false | false | 8,962 | lean | /-
Copyright (c) 2020 Scott Morrison. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Johan Commelin, Scott Morrison
-/
import analysis.convex.basic
import linear_algebra.finite_dimensional
/-!
# Carathéodory's convexity theorem
This file is devoted to proving Carathé... |
7e41fe0523b568d902a4a60c1d07f9918cf56a93 | 74addaa0e41490cbaf2abd313a764c96df57b05d | /Mathlib/topology/algebra/group_with_zero_auto.lean | bac987bfa1a273b2356c1c8f9927e38cce5caffa | [] | 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 | 9,441 | lean | /-
Copyright (c) 2020 Yury G. Kudryashov. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Author: Yury G. Kudryashov
-/
import Mathlib.PrePort
import Mathlib.Lean3Lib.init.default
import Mathlib.topology.algebra.monoid
import Mathlib.algebra.group.pi
import Mathlib.PostPort
uni... |
79a8746f998f9139e56390b5ed5d50010d8191de | cf39355caa609c0f33405126beee2739aa3cb77e | /tests/lean/no_confusion_type.lean | cbcfeae1b93da2e64dcb473f3ca272ea13096b50 | [
"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 | 344 | lean | namespace Ex
open nat
inductive vector (A : Type) : nat → Type
| vnil : vector nat.zero
| vcons : Π {n : nat}, A → vector n → vector (succ n)
#check vector.no_confusion_type
constants a1 a2 : nat
constants v1 v2 : vector nat 2
constant P : Type
#reduce vector.no_confusion_type P (vector.vcons a1 v1) (vector.vco... |
b408b5071e36e47af0130061e6c6fcb99f9f6745 | d436468d80b739ba7e06843c4d0d2070e43448e5 | /src/topology/instances/real.lean | 54852b6ab476bd87006976f5cbe544ef03f1a2ee | [
"Apache-2.0"
] | permissive | roro47/mathlib | 761fdc002aef92f77818f3fef06bf6ec6fc1a28e | 80aa7d52537571a2ca62a3fdf71c9533a09422cf | refs/heads/master | 1,599,656,410,625 | 1,573,649,488,000 | 1,573,649,488,000 | 221,452,951 | 0 | 0 | Apache-2.0 | 1,573,647,693,000 | 1,573,647,692,000 | null | UTF-8 | Lean | false | false | 19,173 | 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
The real numbers ℝ.
They are constructed as the topological completion of ℚ. With the following steps:
(1) prove that ℚ forms a uniform space.
(2) subt... |
faf6fcee3224bed146ffe2210995ab95ef03bd79 | 74addaa0e41490cbaf2abd313a764c96df57b05d | /Mathlib/ring_theory/witt_vector/compare_auto.lean | 1168a2ed7da5b46ff03126a03a9263a5c1a7382e | [] | 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 | 8,344 | lean | /-
Copyright (c) 2020 Johan Commelin. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Johan Commelin, Robert Y. Lewis
-/
import Mathlib.PrePort
import Mathlib.Lean3Lib.init.default
import Mathlib.ring_theory.witt_vector.truncated
import Mathlib.ring_theory.witt_vector.i... |
730fec611808cc4789c95367bc18aa40fcca5869 | 4727251e0cd73359b15b664c3170e5d754078599 | /src/category_theory/sites/dense_subsite.lean | d7498c315fffa972cab2b7e5e04b78a5246c147b | [
"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 | 19,314 | lean | /-
Copyright (c) 2021 Andrew Yang. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Andrew Yang
-/
import category_theory.sites.sheaf
import category_theory.sites.cover_lifting
import category_theory.adjunction.fully_faithful
/-!
# Dense subsites
We define `cover_dense... |
bae33ae27417386c1ec8ded94e54ce0ad6676d81 | 22e97a5d648fc451e25a06c668dc03ac7ed7bc25 | /src/topology/topological_fiber_bundle.lean | 2828b3babf44150b63e707158cac50ea7783707a | [
"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 | 24,281 | 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 topology.local_homeomorph
/-!
# Fiber bundles
A topological fiber bundle with fiber F over a base B is a space projecting on B for which the
fibers are... |
ef3cd6f8bca80934c92b4c28aff193de7d07121f | 4727251e0cd73359b15b664c3170e5d754078599 | /src/data/set/accumulate.lean | 6e7eb323a9778a85b3b6ea079e3738855513f8e7 | [
"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,519 | lean | /-
Copyright (c) 2020 Floris van Doorn. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Floris van Doorn
-/
import data.set.lattice
/-!
# Accumulate
The function `accumulate` takes a set `s` and returns `⋃ y ≤ x, s y`.
-/
variables {α β γ : Type*} {s : α → set β} {t :... |
b961bbbbccacc288faf1d64bfb0c5dcb21d2a71d | 8cae430f0a71442d02dbb1cbb14073b31048e4b0 | /src/data/fintype/array.lean | 134d9d2837d71a4d5b314c28b8a4bbff9a0abbe8 | [
"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 | 654 | 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.fintype.pi
import logic.equiv.array
/-!
# `array n α` is a fintype when `α` is.
> THIS FILE IS SYNCHRONIZED WITH MATHLIB4.
> Any changes to this file re... |
8c229dddeae16fc58e9eaa3e9ab7fd36aade32b1 | 432d948a4d3d242fdfb44b81c9e1b1baacd58617 | /src/data/nat/prime.lean | 3b8e6f089d36cf79ad6afeb6cd05d0dcc5bed546 | [
"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 | 31,191 | 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, Mario Carneiro
-/
import data.nat.sqrt
import data.nat.gcd
import algebra.group_power
import tactic.wlog
import tactic.norm_num
/-!
# Prime n... |
6f68f51068e84da8256166c8fcc59151947a562a | 36c7a18fd72e5b57229bd8ba36493daf536a19ce | /library/algebra/ordered_group.lean | c900ebea2245f330ddabb177f40ab006413c87e0 | [
"Apache-2.0"
] | permissive | YHVHvx/lean | 732bf0fb7a298cd7fe0f15d82f8e248c11db49e9 | 038369533e0136dd395dc252084d3c1853accbf2 | refs/heads/master | 1,610,701,080,210 | 1,449,128,595,000 | 1,449,128,595,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 32,155 | lean | /-
Copyright (c) 2014 Jeremy Avigad. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Jeremy Avigad
Partially ordered additive groups, modeled on Isabelle's library. These classes can be refined
if necessary.
-/
import logic.eq data.unit data.sigma data.prod
import alge... |
95b5e07936b3de30ddd9df2b163d023f51ffeb86 | 69d4931b605e11ca61881fc4f66db50a0a875e39 | /src/ring_theory/algebra_tower.lean | 0e69fa135c063ddce21f8c24e962b3143dc54d4a | [
"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,563 | lean | /-
Copyright (c) 2020 Kenny Lau. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Kenny Lau
-/
import algebra.algebra.tower
import algebra.invertible
import linear_algebra.basis
import ring_theory.adjoin.basic
import ring_theory.polynomial.tower
/-!
# Towers of algebra... |
1fcdca8f52399598af30402b36b8b9e4fba3e3ba | 491068d2ad28831e7dade8d6dff871c3e49d9431 | /tests/lean/run/tt1.lean | c8a30b668398db0eb0fab555320b33b163b89418 | [
"Apache-2.0"
] | permissive | davidmueller13/lean | 65a3ed141b4088cd0a268e4de80eb6778b21a0e9 | c626e2e3c6f3771e07c32e82ee5b9e030de5b050 | refs/heads/master | 1,611,278,313,401 | 1,444,021,177,000 | 1,444,021,177,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 125 | lean | import data.prod data.num logic.quantifiers
open prod
check (true, false, 10)
-- definition a f := f
check fun x, x ∧ x
|
8b3c2b2baf7bc0278873be17e9f4b5e69ff28bfb | 8cae430f0a71442d02dbb1cbb14073b31048e4b0 | /src/data/pequiv.lean | bb10920cf8b6c7c955e748fe3f4808261af32413 | [
"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 | 13,887 | lean | /-
Copyright (c) 2019 Chris Hughes. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Chris Hughes
-/
import data.set.basic
/-!
# Partial Equivalences
> THIS FILE IS SYNCHRONIZED WITH MATHLIB4.
> Any changes to this file require a corresponding PR to mathlib4.
In this... |
d2714262ddd03a4a3901a0f4038e2fc7d9936084 | 6432ea7a083ff6ba21ea17af9ee47b9c371760f7 | /tests/lean/run/elabIte.lean | 8a0413f125e01c370a76472bff8b169c7444d80e | [
"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 | 62 | lean |
def f (x y : Nat) : Option Nat :=
if x > y then x else none
|
ef11fc95245968e871d69380252b5d0a32d9dc94 | 4b846d8dabdc64e7ea03552bad8f7fa74763fc67 | /tests/lean/inaccessible2.lean | 855153b7225a0bc8c6f9ffe081833464fc46b1e6 | [
"Apache-2.0"
] | permissive | pacchiano/lean | 9324b33f3ac3b5c5647285160f9f6ea8d0d767dc | fdadada3a970377a6df8afcd629a6f2eab6e84e8 | refs/heads/master | 1,611,357,380,399 | 1,489,870,101,000 | 1,489,870,101,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 790 | lean | inductive imf {A B : Sort*} (f : A → B) : B → Sort*
| mk : ∀ (a : A), imf (f a)
definition inv_1 {A B : Sort*} (f : A → B) : ∀ (b : B), imf f b → A
| .(f .a) (imf.mk .f a) := a -- Error inaccessible annotation inside inaccessible annotation
definition inv_2 {A B : Sort*} (f : A → B) : ∀ (b : B), imf f b → A
| .(f a... |
7d67d6bb5e9330cf820c589deea42a479cbd70ff | 4d2583807a5ac6caaffd3d7a5f646d61ca85d532 | /src/topology/separation.lean | 22469d19d4ef89ebc00656d26feded65e70f6702 | [
"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 | 61,442 | 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
-/
import topology.subset_properties
import topology.connected
/-!
# Separation properties of topological spaces.
This file defines the predicate `sepa... |
14ee6145a470977cb3662df1682ce8be7ad204e5 | f5f7e6fae601a5fe3cac7cc3ed353ed781d62419 | /src/order/zorn.lean | b1bc534584c57d7e7156a9c971b2a15f5922f455 | [
"Apache-2.0"
] | permissive | EdAyers/mathlib | 9ecfb2f14bd6caad748b64c9c131befbff0fb4e0 | ca5d4c1f16f9c451cf7170b10105d0051db79e1b | refs/heads/master | 1,626,189,395,845 | 1,555,284,396,000 | 1,555,284,396,000 | 144,004,030 | 0 | 0 | Apache-2.0 | 1,533,727,664,000 | 1,533,727,663,000 | null | UTF-8 | Lean | false | false | 11,973 | 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
Zorn's lemmas.
Ported from Isabelle/HOL (written by Jacques D. Fleuriot, Tobias Nipkow, and Christian Sternagel).
-/
import data.set.lattice order.order_iso
noncomputa... |
0dcbd4d0332ba05baf50945d540470c60149a2b0 | d9d511f37a523cd7659d6f573f990e2a0af93c6f | /src/tactic/push_neg.lean | 79f57c6c6113d5d18820b4044f0ce11636ff1698 | [
"Apache-2.0"
] | permissive | hikari0108/mathlib | b7ea2b7350497ab1a0b87a09d093ecc025a50dfa | a9e7d333b0cfd45f13a20f7b96b7d52e19fa2901 | refs/heads/master | 1,690,483,608,260 | 1,631,541,580,000 | 1,631,541,580,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 7,986 | lean | /-
Copyright (c) 2019 Patrick Massot All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Patrick Massot, Simon Hudon
A tactic pushing negations into an expression
-/
import logic.basic
import algebra.order
open tactic expr
namespace push_neg
section
universe u
variable... |
198aca80d32da667942b174adff226a4af6ba810 | 36cfb52a5926b96dc8a44d3b71d2f14a21ef8574 | /sort_benchmarks.lean | e3ce59d8011917f662f0d2fbfe7230edd05b7cb8 | [] | no_license | minchaowu/relevance_filter | b46e3cc166b8225b19fac61b8f9911eeecdd42d8 | 3ae59d297ed5a07bd14749112e520b74209f10fd | refs/heads/master | 1,631,071,413,821 | 1,507,745,131,000 | 1,507,745,131,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 1,125 | lean | import float sort data.list.sort
set_option profiler true
--set_option trace.array.update true
/-
all updates are destructive. I don't know why my array quicksort takes twice the time of list.qsort.
They seem to scale at the same rate.
-/
run_cmd
--let arr := (mk_array 80 (1 : float)).map (λ _, float.ran... |
237351abb311b66264f46a86b82341495c4873a2 | c31182a012eec69da0a1f6c05f42b0f0717d212d | /src/statement.lean | 2b221858e0da321c5b28077e5abe6a2d5b4deeb6 | [] | 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 | 746 | lean | import pseudo_normed_group.system_of_complexes
import Mbar.pseudo_normed_group
import breen_deligne.homotopy
.
open_locale nnreal
open category_theory ProFiltPseuNormGrpWithTinv opposite
variables (r r' : ℝ≥0) [fact (0 < r)] [fact (0 < r')] [fact (r < r')] [fact (r < 1)] [fact (r' < 1)]
variables (BD : breen_delign... |
5b06bd476218b9e0c4eda5e14e56249c6ce55fc7 | a0e23cfdd129a671bf3154ee1a8a3a72bf4c7940 | /stage0/src/Lean/Data/SMap.lean | b92608979bbeda0b3e4da7db16bdf58d2f52af5c | [
"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 | 3,709 | 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 Std.Data.HashMap
import Std.Data.PersistentHashMap
universe u v w w'
namespace Lean
open Std (HashMap PHashMap)
/- Staged map for implementing the... |
eb9842866f16cb21868e7ad64e415c912491dfd0 | d9d511f37a523cd7659d6f573f990e2a0af93c6f | /src/computability/turing_machine.lean | 18da3edca369aef4a2d4006f89a7c4e21dfc6dda | [
"Apache-2.0"
] | permissive | hikari0108/mathlib | b7ea2b7350497ab1a0b87a09d093ecc025a50dfa | a9e7d333b0cfd45f13a20f7b96b7d52e19fa2901 | refs/heads/master | 1,690,483,608,260 | 1,631,541,580,000 | 1,631,541,580,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 109,924 | 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
import data.fintype.basic
import data.pfun
import tactic.apply_fun
import logic.function.iterate
/-!
# Turing machines
This file defines a sequ... |
7d1b4853811d91d7282cb7e68f275e8416af592f | f4bff2062c030df03d65e8b69c88f79b63a359d8 | /src/game/limits/seq_limitProd.lean | ceb04ad0de4b4cc186c8837ec83a06685c6f77b9 | [
"Apache-2.0"
] | permissive | adastra7470/real-number-game | 776606961f52db0eb824555ed2f8e16f92216ea3 | f9dcb7d9255a79b57e62038228a23346c2dc301b | refs/heads/master | 1,669,221,575,893 | 1,594,669,800,000 | 1,594,669,800,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 2,464 | lean | import game.limits.L01defs
import game.limits.seq_limSeqSub
open real
namespace xena -- hide
notation `|` x `|` := abs x -- hide
/-
Use previous results to obtain the limit of a product in the general case.
Work in progress.
-/
/- Lemma
If $\lim_{n \to \infty} a_n = \alpha$ and $\lim_{n \to \infty} b_n = \beta$, t... |
da534023cc1b9581493edc5a89f96a68b9a8a860 | d406927ab5617694ec9ea7001f101b7c9e3d9702 | /src/algebraic_topology/dold_kan/homotopy_equivalence.lean | da71ea0ff73810a43ba163b4365797f12e6f4e4a | [
"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,697 | 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.normalized
/-!
# The normalized Moore complex and the alternating face map complex are homotopy equivalent
In this file, when the categor... |
54525a4afd3ec51714f2d173c62819ccc8f5b483 | 8c95816d6379a6864848d68ce735a5700c1cbbc3 | /src/smt2/attributes.lean | da3b5b6b6abffd29ff547e273e7b63532c63a4f6 | [
"Apache-2.0"
] | permissive | aqjune/smt2_interface | f00ed0a4317d7c9112deb0806c8e89e6512a901e | 598848a7a6fa47520fadcfe1b16891053a296084 | refs/heads/master | 1,631,518,664,718 | 1,524,489,340,000 | 1,524,489,340,000 | 115,204,811 | 0 | 0 | null | 1,514,043,428,000 | 1,514,043,427,000 | null | UTF-8 | Lean | false | false | 193 | lean | meta def smt2_attribute : user_attribute :=
{ name := `smt2,
descr := "Mark a decalartion as part of the gloabl environment of the smt2 tactic" }
run_cmd register_attribute `smt2_attribute
|
20b1c714b85422d716f11a8ccf6aa42c4aec8b1e | 367134ba5a65885e863bdc4507601606690974c1 | /src/data/list/chain.lean | 4432e690c0afd8c8f50e6b8544efd4b5c6f157ef | [
"Apache-2.0"
] | permissive | kodyvajjha/mathlib | 9bead00e90f68269a313f45f5561766cfd8d5cad | b98af5dd79e13a38d84438b850a2e8858ec21284 | refs/heads/master | 1,624,350,366,310 | 1,615,563,062,000 | 1,615,563,062,000 | 162,666,963 | 0 | 0 | Apache-2.0 | 1,545,367,651,000 | 1,545,367,651,000 | null | UTF-8 | Lean | false | false | 12,568 | lean | /-
Copyright (c) 2018 Mario Carneiro. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Mario Carneiro, Kenny Lau, Yury Kudryashov
-/
import data.list.pairwise
import logic.relation
universes u v
open nat
variables {α : Type u} {β : Type v}
namespace list
/- chain re... |
d7c5c20cba01991a7cf04666d2ed47a8cdd0bbd2 | 4d2583807a5ac6caaffd3d7a5f646d61ca85d532 | /src/testing/slim_check/functions.lean | 09873e603ead2454a1b71c5842d459e3b95aeebd | [
"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 | 16,940 | lean | /-
Copyright (c) 2020 Simon Hudon. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Simon Hudon
-/
import data.list.sigma
import testing.slim_check.sampleable
import testing.slim_check.testable
import tactic.pretty_cases
/-!
## `slim_check`: generators for functions
Th... |
6f35af4f945a35bc83006064e3aab109aa9d2df9 | ad0c7d243dc1bd563419e2767ed42fb323d7beea | /algebra/euclidean_domain.lean | 0274873a3676d1c552ea20d8871348b7639d3d08 | [
"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 | 8,297 | lean | /-
Copyright (c) 2018 Louis Carlin. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Louis Carlin, Mario Carneiro
Euclidean domains and Euclidean algorithm (extended to come)
A lot is based on pre-existing code in mathlib for natural number gcds
-/
import data.int.basic... |
26142655f7e427240c3c1a80e4d66203c94b861f | 59a4b050600ed7b3d5826a8478db0a9bdc190252 | /src/category_theory/yoneda.lean | 597e7e884c0d80b67afa3269cbc8b23accfa1078 | [] | no_license | rwbarton/lean-category-theory | f720268d800b62a25d69842ca7b5d27822f00652 | 00df814d463406b7a13a56f5dcda67758ba1b419 | refs/heads/master | 1,585,366,296,767 | 1,536,151,349,000 | 1,536,151,349,000 | 147,652,096 | 0 | 0 | null | 1,536,226,960,000 | 1,536,226,960,000 | null | UTF-8 | Lean | false | false | 3,206 | lean | -- Copyright (c) 2017 Scott Morrison. All rights reserved.
-- Released under Apache 2.0 license as described in the file LICENSE.
-- Authors: Scott Morrison
import category_theory.natural_transformation
import category_theory.opposites
import category_theory.types
import category_theory.embedding
import category_theor... |
8189e6032cc33c706684e08385754d76bbcee4c9 | 64874bd1010548c7f5a6e3e8902efa63baaff785 | /library/logic/identities.lean | cbf8afb63937f10700151b7497752e47900614ce | [
"Apache-2.0"
] | permissive | tjiaqi/lean | 4634d729795c164664d10d093f3545287c76628f | d0ce4cf62f4246b0600c07e074d86e51f2195e30 | refs/heads/master | 1,622,323,796,480 | 1,422,643,069,000 | 1,422,643,069,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 5,445 | lean | /-
Copyright (c) 2014 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Module: logic.identities
Authors: Jeremy Avigad, Leonardo de Moura
Useful logical identities. Since we are not using propositional extensionality, some of the
calculations use the type... |
68a7895f19b53f1d29e2b41a66bce269fb6290f1 | 9dd3f3912f7321eb58ee9aa8f21778ad6221f87c | /tests/lean/run/cases_tac1.lean | 8c329a80c433f55c1e9d1b4ffae2ec9200cf334f | [
"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 | 1,021 | lean | inductive {u} vec (A : Type u) : nat → Type u
| nil : vec 0
| cons : ∀ {n}, A → vec n → vec (n+1)
open tactic nat vec
def head {A : Type*} : ∀ {n : nat}, vec A (n+1) → A
| n (cons h t) := h
def tail {A : Type*} : ∀ {n : nat}, vec A (n+1) → vec A n
| n (cons h t) := t
@[simp] lemma head_cons {A : Type*} {n : nat} (... |
79de72f810b2d0e8d5c6613939af0e08993893f7 | 80b18137872dad7c3df334b9069d70935b4224f3 | /src/data/fintype/intervals.lean | c9e5fdf36087bb0c137a34df23520b16f58f383e | [
"Apache-2.0"
] | permissive | Jack-Pumpkinhead/mathlib | 1bcf5692d355dc397847791c137158f01b407535 | da8b23f907f750528539bffa604875b98717fb93 | refs/heads/master | 1,621,299,949,262 | 1,585,480,767,000 | 1,585,480,767,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 1,617 | lean | /-
Copyright (c) 2019 Scott Morrison. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Scott Morrison
-/
import data.set.intervals
import data.set.finite
import data.fintype
import data.pnat.intervals
/-!
# fintype instances for intervals
We provide `fintype` instances... |
293e54856445cb8323fa567d5174c8a86cfd941f | ee8cdbabf07f77e7be63a449b8483ce308d37218 | /lean/src/valid/mathd-numbertheory-37.lean | 7c106152257ff1be4ec9a28cab8a85d62d5aa1b0 | [
"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 | 275 | 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.nat.basic
example : ( nat.lcm 9999 100001 ) = 90900909 :=
begin
sorry
end
|
a2497ed09c10e3f4151a8c8a8daa97c23e281dd4 | 4727251e0cd73359b15b664c3170e5d754078599 | /src/measure_theory/covering/besicovitch.lean | a88727f55140d8dd48e4195875e59c4fddac9a06 | [
"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 | 60,324 | lean | /-
Copyright (c) 2021 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 measure_theory.covering.differentiation
import measure_theory.covering.vitali_family
import measure_theory.integral.lebesgue
import measure_theory.measur... |
6b890d06ed1fa98771f5a1d7c7f91ca91ccbdfd9 | d406927ab5617694ec9ea7001f101b7c9e3d9702 | /src/algebra/direct_sum/basic.lean | 3ebb86c9613d4d637be185a0838c863af418feed | [
"Apache-2.0"
] | permissive | alreadydone/mathlib | dc0be621c6c8208c581f5170a8216c5ba6721927 | c982179ec21091d3e102d8a5d9f5fe06c8fafb73 | refs/heads/master | 1,685,523,275,196 | 1,670,184,141,000 | 1,670,184,141,000 | 287,574,545 | 0 | 0 | Apache-2.0 | 1,670,290,714,000 | 1,597,421,623,000 | Lean | UTF-8 | Lean | false | false | 11,046 | lean | /-
Copyright (c) 2019 Kenny Lau. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Kenny Lau
-/
import data.dfinsupp.basic
import group_theory.submonoid.operations
/-!
# Direct sum
This file defines the direct sum of abelian groups, indexed by a discrete type.
## Notati... |
fadd3dc650efe807d302ebe8d68c76ff108e2a9c | 0845ae2ca02071debcfd4ac24be871236c01784f | /library/init/lean/compiler/implementedbyattr.lean | 26749baa0ac93911fdd0461f7aee6dbe679976f8 | [
"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,193 | 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.attributes
namespace Lean
namespace Compiler
def mkImplementedByAttr : IO (ParametricAttribute Name) :=
registerParametricAttribu... |
55a73edccec26edb0e92c1343ad19667133d8041 | 6432ea7a083ff6ba21ea17af9ee47b9c371760f7 | /tests/lean/run/printDecls.lean | 6006ce421f608458f1d496bee6ae0fddc9de7ba1 | [
"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 | 834 | lean | import Lean
open Lean
open Lean.Meta
-- Return true if `declName` should be ignored
def shouldIgnore (declName : Name) : Bool :=
declName.isInternal
|| match declName with
| .str _ s => "match_".isPrefixOf s || "proof_".isPrefixOf s || "eq_".isPrefixOf s
| _ => true
-- Print declarations that have the ... |
0453eb6e34a455f7412f2c6ffc39a767b387ba8c | a0e23cfdd129a671bf3154ee1a8a3a72bf4c7940 | /stage0/src/Std/Data/HashSet.lean | 5710ff4e9389475ddc775bb8553dfab8d560140b | [
"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 | 6,118 | lean | /-
Copyright (c) 2019 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Author: Leonardo de Moura
-/
namespace Std
universe u v w
def HashSetBucket (α : Type u) :=
{ b : Array (List α) // b.size > 0 }
def HashSetBucket.update {α : Type u} (data : HashSet... |
be1b93d1b7ed5d3a1ce59048d9387dd00b0831ea | b70031c8e2c5337b91d7e70f1e0c5f528f7b0e77 | /src/data/polynomial/degree/definitions.lean | 954421b208ed34f164569465823ae8418dbe7654 | [
"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 | 36,381 | 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.coeff
import data.nat.with_bot
/-!
# Theory of univariate polynomials
The definitions include
`de... |
bd3718bdf79b2d29cc3235da79731073c3d315f0 | 4727251e0cd73359b15b664c3170e5d754078599 | /src/field_theory/laurent.lean | ac3f52e1a6b894cb4d11a49ab3c3bdf69c668cd9 | [
"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 | 3,699 | lean | /-
Copyright (c) 2022 Yakov Pechersky. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Yakov Pechersky
-/
import data.polynomial.taylor
import field_theory.ratfunc
import ring_theory.laurent_series
/-!
# Laurent expansions of rational functions
## Main declarations
... |
1eb921f77730425852bec24462307842c1c5a427 | 6432ea7a083ff6ba21ea17af9ee47b9c371760f7 | /tests/lean/diamond2.lean | 42cbf3ac98bd86f4c041363d6c2c23a0ded8923c | [
"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 | 737 | lean | structure Bar (α : Type) where
a : α
x : Nat → α
structure Baz (α : Type) where
a : α → α
β : Type
b : α → β
set_option structureDiamondWarning false
structure Foo1 (α : Type) extends Bar (α → α), Baz α
#check Foo1.mk
def f1 (x : Nat) : Foo1 Nat :=
{ a := id
x := (· + ·)
b := fun _ => "" }
str... |
4f087d0218017a311be8a86e88cd466b6b61e99a | 2a70b774d16dbdf5a533432ee0ebab6838df0948 | /src/reasons.lean | 7b846c913db85dd9b36c8f08ce2e12f732412b63 | [] | no_license | hjvromen/lewis | 40b035973df7c77ebf927afab7878c76d05ff758 | 105b675f73630f028ad5d890897a51b3c1146fb0 | refs/heads/master | 1,677,944,636,343 | 1,676,555,301,000 | 1,676,555,301,000 | 327,553,599 | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 4,165 | lean | /-
Copyright (c) 2022 Huub Vromen. All rights reserved.
Author: Huub Vromen
-/
import data.list.basic
/-- Type for individuals -/
variable {indiv : Type}
variables {i j : indiv}
/-- Type for reasons to believe -/
variables {reason : Type} [has_mul reason]
variables {r s t : reason}
/-- These reasons will be used in... |
53addf0381ac9e745647d86d0e14aefdf2bcd3f5 | 200b12985a863d01fbbde6abfc9326bb82424a8b | /src/propLogic/Ex012.lean | 6ee7a70d7ac3130a21fb33603026c759281b2c2b | [] | no_license | SvenWille/LeanLogicExercises | 38eacd36733ac48e5a7aacf863c681c9a9a48271 | 2dbc920feadd63bbc50f87e69646c0081db26eba | refs/heads/master | 1,629,676,667,365 | 1,512,161,459,000 | 1,512,161,459,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 94 | lean |
theorem Ex012(a b : Prop): a → (a ∨ b) :=
assume H1:a,
show a ∨ b, from or.inl H1
|
723eeee6f21c37a3e32085ebdae9ea9e2cb4143e | 64874bd1010548c7f5a6e3e8902efa63baaff785 | /tests/lean/run/fun.lean | a602b6cd052430d4bde9ebae8bd562cbfb5533ee | [
"Apache-2.0"
] | permissive | tjiaqi/lean | 4634d729795c164664d10d093f3545287c76628f | d0ce4cf62f4246b0600c07e074d86e51f2195e30 | refs/heads/master | 1,622,323,796,480 | 1,422,643,069,000 | 1,422,643,069,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 391 | lean | import logic algebra.function
open function bool
constant f : num → bool
constant g : num → num
check f ∘ g ∘ g
check typeof id : num → num
check num → num ⟨is_typeof⟩ id
constant h : num → bool → num
check flip h
check flip h ff num.zero
check typeof flip h ff num.zero : num
constant f1 : num → num → bool
cons... |
cc228c1e332f034dadf07a122e462e089fc97ff1 | 63abd62053d479eae5abf4951554e1064a4c45b4 | /src/data/int/parity.lean | 0a075235ea27eae4b5941a7a7ad250d47190b641 | [
"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 | 3,770 | lean | /-
Copyright (c) 2019 Jeremy Avigad. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Jeremy Avigad
The `even` and `odd` predicates on the integers.
-/
import data.int.modeq
import data.nat.parity
namespace int
@[simp] theorem mod_two_ne_one {n : ℤ} : ¬ n % 2 = 1 ↔ n ... |
4a8988326e0118921c5f486fe918a448ac16812b | 74addaa0e41490cbaf2abd313a764c96df57b05d | /Mathlib/data/rat/order.lean | d463b3e63454f48fb3cce1d176223c3e81010974 | [] | 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 | 7,049 | 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 Mathlib.PrePort
import Mathlib.Lean3Lib.init.default
import Mathlib.data.rat.basic
import Mathlib.PostPort
namespace Mathlib
/-!
# Order for ... |
dd5eb4612987b8764ce26b1cbf9f0b03aa4d49f4 | e00ea76a720126cf9f6d732ad6216b5b824d20a7 | /src/algebra/char_zero.lean | 708c4b8f1d19c27cc2609a0a92a066b378f4d338 | [
"Apache-2.0"
] | permissive | vaibhavkarve/mathlib | a574aaf68c0a431a47fa82ce0637f0f769826bfe | 17f8340912468f49bdc30acdb9a9fa02eeb0473a | refs/heads/master | 1,621,263,802,637 | 1,585,399,588,000 | 1,585,399,588,000 | 250,833,447 | 0 | 0 | Apache-2.0 | 1,585,410,341,000 | 1,585,410,341,000 | null | UTF-8 | Lean | false | false | 3,195 | lean | /-
Copyright (c) 2014 Mario Carneiro. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Mario Carneiro
Natural homomorphism from the natural numbers into a monoid with one.
-/
import data.nat.cast algebra.field tactic.wlog
/-- Typeclass for monoids with characteristic z... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.