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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
66bd49dd888cdaefd51a4f2caea9b3c333d3d88a | 6432ea7a083ff6ba21ea17af9ee47b9c371760f7 | /tests/lean/CompilerElimDeadBranches.lean | 12e190918d1ba73964032acb8878e46d5fc67a98 | [
"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,375 | lean | def someVal (_x : Nat) : Option Nat := some 0
/-
This test demonstrates two things:
1. We eliminate all branches except the some, some one
2. We communicate correctly to the constant folder that the `n` and `m`
are always 0 and can thus collapse the computation.
-/
set_option trace.Compiler.elimDeadBranches true in... |
82b357402976077a0a3e36e7a6100b26819e68b5 | 12ba6fe891179eac82e287c24c8812a046221563 | /src/compressions/UV.lean | 549963efc4354df3dfd74c8624e54c017d78b51a | [] | no_license | b-mehta/combinatorics | eca586b4cb7b5e1fd22ec3288f5a2cb4ed6ce4dd | 2a8b30709d35f124f3fc9baa5652d231389e9f63 | refs/heads/master | 1,653,708,057,336 | 1,626,885,184,000 | 1,626,885,184,000 | 228,850,404 | 19 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 19,035 | 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 data.finset
import data.fintype.basic
import to_mathlib
import basic
import shadows
import colex
/-!
# compressions/UV
UV compressions are immensely useful to p... |
d7f813caebb720839648ab3524b94ac5385c193a | 367134ba5a65885e863bdc4507601606690974c1 | /src/category_theory/limits/shapes/biproducts.lean | cd3e84f323129c7527a118c5e2ba0d77b5d28cb1 | [
"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 | 37,803 | 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.limits.shapes.finite_products
import category_theory.limits.shapes.binary_products
import category_theory.preadditive
/-!
# Biproducts and bin... |
18f0ea7b191376e40773d373414853d15594c8ac | 75db7e3219bba2fbf41bf5b905f34fcb3c6ca3f2 | /tests/lean/congr2.lean | 12820c15edf4d0ef3f00f0267243223323b42ac6 | [
"Apache-2.0"
] | permissive | jroesch/lean | 30ef0860fa905d35b9ad6f76de1a4f65c9af6871 | 3de4ec1a6ce9a960feb2a48eeea8b53246fa34f2 | refs/heads/master | 1,586,090,835,348 | 1,455,142,203,000 | 1,455,142,277,000 | 51,536,958 | 1 | 0 | null | 1,455,215,811,000 | 1,455,215,811,000 | null | UTF-8 | Lean | false | false | 597 | lean | import data.list
#congr @add
#congr @perm
section
variables p : nat β Prop
variables q : nat β nat β Prop
variables f : Ξ (x y : nat), p x β q x y β nat
#congr f
end
constant p : Ξ {A : Type}, A β Prop
constant q : Ξ {A : Type} (n m : A), p n β p m β Prop
constant r : Ξ {A : Type} (n m : A) (Hβ : p n) (Hβ : p m), q... |
357e4a8809c23a374b246a56a4d5273514cb6244 | b7f22e51856f4989b970961f794f1c435f9b8f78 | /tests/lean/ppbug.lean | 1d3cabb762ca798ed7325755355f65ec152479c3 | [
"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 | 50 | lean | set_option pp.metavar_args true
check char.rec_on
|
b77b6125379b71297c53b5eb4fe3baad470ef902 | 947fa6c38e48771ae886239b4edce6db6e18d0fb | /src/topology/algebra/order/liminf_limsup.lean | 75901a2fa3d0ff726dabd63f81813c7e49227841 | [
"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 | 13,542 | lean | /-
Copyright (c) 2017 Johannes HΓΆlzl. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Johannes HΓΆlzl, Mario Carneiro, Yury Kudryashov
-/
import order.liminf_limsup
import topology.algebra.order.basic
/-!
# Lemmas about liminf and limsup in an order topology.
-/
open f... |
0cf05d3b2a24d0b067a63ebd6d643ac709a2037d | 54d7e71c3616d331b2ec3845d31deb08f3ff1dea | /library/init/data/nat/div.lean | cc4cf74c23837c3107395b39e220e6be21ad15ab | [
"Apache-2.0"
] | permissive | pachugupta/lean | 6f3305c4292288311cc4ab4550060b17d49ffb1d | 0d02136a09ac4cf27b5c88361750e38e1f485a1a | refs/heads/master | 1,611,110,653,606 | 1,493,130,117,000 | 1,493,167,649,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 1,176 | 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.wf init.data.nat.basic
namespace nat
private def div_rec_lemma {x y : nat} : 0 < y β§ y β€ x β x - y < x :=
Ξ» h, and.rec (Ξ» ypos ylex, su... |
2cd3775bad85dfc2b6cdcdaa5b648e06aefce75d | 80cc5bf14c8ea85ff340d1d747a127dcadeb966f | /src/algebra/add_torsor.lean | d04276bbfb476fff7fa53bf10bf5aa0ddc6e667b | [
"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 | 14,848 | lean | /-
Copyright (c) 2020 Joseph Myers. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Joseph Myers, Yury Kudryashov.
-/
import algebra.group.prod
import algebra.group.type_tags
import algebra.group.pi
import data.equiv.basic
import data.set.finite
/-!
# Torsors of additi... |
db7e69a1510592ef718778c08c02a683488c6fc2 | 7cef822f3b952965621309e88eadf618da0c8ae9 | /test/omega.lean | 71e9bfc9e50b414167b383285bd2a6586914e380 | [
"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 | 2,861 | lean | /-
Test cases for omega. Most of the examples are from John Harrison's
Handbook of Practical Logic and Automated Reasoning.
-/
import tactic.omega
example (n : β€) : n - 1 β n := by omega
example (x : int) : (x = 5 β¨ x = 7) β 2 < x := by omega
example (x : int) : x β€ -x β x β€ 0 := by omega
example : β x y : int, (x β€ ... |
ba17adac856c8b631e5f0edfdde31f1c31f23950 | 74addaa0e41490cbaf2abd313a764c96df57b05d | /Mathlib/analysis/normed_space/hahn_banach.lean | a8e8fa01b5204e725be4eaa4a0efb4f1ae85a9d8 | [] | no_license | AurelienSaue/Mathlib4_auto | f538cfd0980f65a6361eadea39e6fc639e9dae14 | 590df64109b08190abe22358fabc3eae000943f2 | refs/heads/master | 1,683,906,849,776 | 1,622,564,669,000 | 1,622,564,669,000 | 371,723,747 | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 3,575 | 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 Mathlib.PrePort
import Mathlib.Lean3Lib.init.default
import Mathlib.analysis.normed_space.operator_norm
import Mathlib.analysis.normed_space.... |
d21132a9b00588238a89a8ad0a65ce2fc69151da | cf39355caa609c0f33405126beee2739aa3cb77e | /tests/lean/run/blast_unit.lean | d2599d32811f0fac1681faf05d3297f4ba6359b4 | [
"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 | 6,237 | lean | variables {Aβ Aβ Aβ Aβ Bβ Bβ Bβ Bβ : Prop}
meta def blast : tactic unit :=
using_smt $ return ()
example (b1 : Bβ) (b2 : Bβ) (H : Β¬ Aβ β Β¬ Bβ β¨ Β¬ Bβ) : Aβ := by blast
example (b1 : Bβ) (H : Β¬ Aβ β Β¬ Bβ) : Aβ := by blast
example (b1 : Bβ) (n1 : Β¬ Aβ) (H : Β¬ Aβ β Β¬ Aβ β Β¬ Bβ) : Aβ := by blast
-- H first, all pos
examp... |
aee10cd6f312b0cb3705f68aba97864efcf863ef | b7f22e51856f4989b970961f794f1c435f9b8f78 | /tests/lean/uni_bug1.lean | 4d839b544f66f5967b68b365c729de33d272aea5 | [
"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 | 186 | lean | import data.prod
open nat prod
constant R : nat β nat β Prop
constant f (a b : nat) (H : R a b) : nat
axiom Rtrue (a b : nat) : R a b
check f 1 0 (Rtrue (pr1 (pair 1 (0:nat))) 0)
|
7856f9c0834d1aeca49bfb1e4163965d81e47511 | 35677d2df3f081738fa6b08138e03ee36bc33cad | /src/topology/constructions.lean | ca6b51d16274ce8dcd7f8f890700c16a01ea47ea | [
"Apache-2.0"
] | permissive | gebner/mathlib | eab0150cc4f79ec45d2016a8c21750244a2e7ff0 | cc6a6edc397c55118df62831e23bfbd6e6c6b4ab | refs/heads/master | 1,625,574,853,976 | 1,586,712,827,000 | 1,586,712,827,000 | 99,101,412 | 1 | 0 | Apache-2.0 | 1,586,716,389,000 | 1,501,667,958,000 | Lean | UTF-8 | Lean | false | false | 31,823 | 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, Patrick Massot
-/
import topology.maps
/-!
# Constructions of new topological spaces from old ones
This file constructs products, sums, subtypes and q... |
aed8cc491b2b4d635db5bc658cb459536b6cbde6 | 206422fb9edabf63def0ed2aa3f489150fb09ccb | /src/topology/instances/ennreal.lean | a805391db59321121e6e968f0a461451bf76e24d | [
"Apache-2.0"
] | permissive | hamdysalah1/mathlib | b915f86b2503feeae268de369f1b16932321f097 | 95454452f6b3569bf967d35aab8d852b1ddf8017 | refs/heads/master | 1,677,154,116,545 | 1,611,797,994,000 | 1,611,797,994,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 44,180 | lean | /-
Copyright (c) 2017 Johannes HΓΆlzl. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Author: Johannes HΓΆlzl
-/
import topology.instances.nnreal
/-!
# Extended non-negative reals
-/
noncomputable theory
open classical set filter metric
open_locale classical topological_space e... |
c6d80571343ef4ddc84a2f9c2cdf47b1cb1b8890 | 8461211c55a0962f1c8b2e7537d535b4c68194a2 | /theorem_proving_in_lean/props_and_proofs.lean | 4fc5349fa28ccac9c62839226df2ca626f880dab | [] | no_license | alanhdu/lean-proofs | ba687a3d289c58cce9cf80a66f55bed2cdf4bdfb | a02cb9d0d2b6a6457f35247b89253d727f641531 | refs/heads/master | 1,598,769,649,392 | 1,575,379,585,000 | 1,575,379,585,000 | 218,293,755 | 1 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 5,565 | lean | variables p q r s : Prop
-- commutativity of β§ and β¨
example : p β§ q β q β§ p :=
iff.intro (
assume h : p β§ q,
show q β§ p, from β¨h.right, h.leftβ©
) (
assume h : q β§ p,
show p β§ q, from β¨h.right, h.leftβ©
)
example : p β¨ q β q β¨ p :=
iff.intro (
assume h: p β¨ q,
show q β¨ p, from h.elim or.inr or.i... |
70ad4d5891afdf12e980e82c41590459e7e44e99 | 9dc8cecdf3c4634764a18254e94d43da07142918 | /src/linear_algebra/linear_independent.lean | 06dce2df430b63893a912afdfee6a6d1bf0bfac3 | [
"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 | 57,474 | lean | /-
Copyright (c) 2020 Anne Baanen. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Johannes HΓΆlzl, Mario Carneiro, Alexander Bentkamp, Anne Baanen
-/
import algebra.big_operators.fin
import linear_algebra.finsupp
import linear_algebra.prod
import set_theory.cardinal.bas... |
4669208a2fca9df008ab8f7ea223b4558e681ba4 | 63abd62053d479eae5abf4951554e1064a4c45b4 | /src/category_theory/equivalence.lean | dca8e4ad9054686c03c63596e486a4a4aca8fcd6 | [
"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 | 24,580 | lean | /-
Copyright (c) 2017 Scott Morrison. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Tim Baumann, Stephen Morgan, Scott Morrison, Floris van Doorn
-/
import category_theory.fully_faithful
import category_theory.whiskering
import tactic.slice
/-!
# Equivalence of categ... |
b2919af4c6bb0b64851f5f9d80da326164cba16b | f3a5af2927397cf346ec0e24312bfff077f00425 | /src/game/world5/level9.lean | cd5d47d66a932006a21e630791342d44b4c3704b | [
"Apache-2.0"
] | permissive | ImperialCollegeLondon/natural_number_game | 05c39e1586408cfb563d1a12e1085a90726ab655 | f29b6c2884299fc63fdfc81ae5d7daaa3219f9fd | refs/heads/master | 1,688,570,964,990 | 1,636,908,242,000 | 1,636,908,242,000 | 195,403,790 | 277 | 84 | Apache-2.0 | 1,694,547,955,000 | 1,562,328,792,000 | Lean | UTF-8 | Lean | false | false | 1,151 | lean | /-
# Function world.
## Level 9: a big maze.
I asked around on Zulip and apparently there is not a tactic for this, perhaps because
this level is rather artificial. In world 6 we will see a variant of this example
which can be solved by a tactic. It would be an interesting project to make a tactic
which could solve... |
6db57cf61c3bc46d25ce8cc038e5a7cbf90fe25f | 986c843ca00918283ebed5442e374c3f71aba78b | /src/falso/hyperprover.lean | 5d6a9924e03fbb4a970bba11bcd8b18d4cd62edb | [
"MIT"
] | permissive | mjendrusch/lean-falso | c58b53b1b9e128426688ee2dbbca717fd4a001f5 | bb61d1799785b316c4c8ed3f2ea3d5cf3af50e38 | refs/heads/master | 1,584,498,265,175 | 1,526,857,132,000 | 1,526,857,132,000 | 134,189,252 | 2 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 563 | lean | --
-- The Falso HyperProver in Lean. Why bother with another axiom system?
-- (c) Copyright 2018 Michael Jendrusch
--
-- For details about the copyright, see the file
-- LICENSE, included in this distribution.
--
import init.meta.tactic
namespace falso
-- a minimal implementation of the Falso (TM) system in Lean.
ax... |
ab1c232b583f7e97f00caba15b93e131884cb957 | 6432ea7a083ff6ba21ea17af9ee47b9c371760f7 | /src/Lean/Elab/Tactic/Congr.lean | 4d45e7977a60c735e4afa8279fb0b2b8419968ba | [
"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 | 596 | lean | /-
Copyright (c) 2022 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.Congr
import Lean.Elab.Tactic.Basic
namespace Lean.Elab.Tactic
namespace Lean.Elab.Tactic
@[builtin_tactic Parser.Tactic.congr] de... |
6f49cf65747d7c0c0ae09a582ac914fa26a590b7 | 57c233acf9386e610d99ed20ef139c5f97504ba3 | /src/computability/epsilon_NFA.lean | 79dc25c0d4bfcc3d40f6b27fb2df066d135c0478 | [
"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,455 | 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... |
5f911ab876ba44323c10eaafd4f5f616102d8f16 | a9d0fb7b0e4f802bd3857b803e6c5c23d87fef91 | /tests/lean/run/calc.lean | f47db1384a07696e9ab710397813460b7c825ccd | [
"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 | 356 | lean | namespace foo
constant le : num β num β Prop
axiom le_trans {a b c : num} : le a b β le b c β le a c
attribute le_trans [trans]
infix `<<`:50 := le
end foo
namespace foo
theorem T {a b c d : num} : a << b β b << c β c << d β a << d
:= assume H1 H2 H3,
calc a << b : H1
... << c : H2
... |
a442bc478b64163e01b05f168103f209e8311091 | dd0f5513e11c52db157d2fcc8456d9401a6cd9da | /04_Quantifiers_and_Equality.org.33.lean | 8f96a517e4d4189ed0bdbfd7e2e0a7ee06bcd724 | [] | no_license | cjmazey/lean-tutorial | ba559a49f82aa6c5848b9bf17b7389bf7f4ba645 | 381f61c9fcac56d01d959ae0fa6e376f2c4e3b34 | refs/heads/master | 1,610,286,098,832 | 1,447,124,923,000 | 1,447,124,923,000 | 43,082,433 | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 196 | lean | /- page 60 -/
import standard
definition imp_self (p : Prop) : p β p :=
assume `p`, `p`
print imp_self
definition imp_self2 (p : Prop) : p β p β p :=
assume `p` `p`, `p`
print imp_self2
|
2428abaab099ae6ce9a9967179eaa180cacbe61c | a45212b1526d532e6e83c44ddca6a05795113ddc | /src/data/string.lean | f11df72072b5503f5229f6382f4e4c1adf586417 | [
"Apache-2.0"
] | permissive | fpvandoorn/mathlib | b21ab4068db079cbb8590b58fda9cc4bc1f35df4 | b3433a51ea8bc07c4159c1073838fc0ee9b8f227 | refs/heads/master | 1,624,791,089,608 | 1,556,715,231,000 | 1,556,715,231,000 | 165,722,980 | 5 | 0 | Apache-2.0 | 1,552,657,455,000 | 1,547,494,646,000 | Lean | UTF-8 | Lean | false | false | 2,487 | lean | /-
Copyright (c) 2018 Mario Carneiro. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Author: Mario Carneiro
Supplementary theorems about the `string` type.
-/
import data.list.basic data.char
namespace string
def ltb : iterator β iterator β bool
| sβ sβ := begin
cases sβ.h... |
c199213003a94e70ebb724235f9b46282d6c33a7 | 492a7e27d49633a89f7ce6e1e28f676b062fcbc9 | /src/monoidal_categories_reboot/drinfeld_centre.lean | 18f4d579b2a4cf442e4382ad797a032a514b1052 | [
"Apache-2.0"
] | permissive | semorrison/monoidal-categories-reboot | 9edba30277de48a234b63813cf85b171772ce36f | 48b5f1d535daba4e591672042a298ac36be2e6dd | refs/heads/master | 1,642,472,396,149 | 1,560,587,477,000 | 1,560,587,477,000 | 156,465,626 | 0 | 1 | null | 1,541,549,278,000 | 1,541,549,278,000 | null | UTF-8 | Lean | false | false | 4,129 | lean | import .braided_monoidal_category
import .pseudo_natural_transformation
import category_theory.functor_category
universes v vβ vβ u uβ uβ
open category_theory
namespace category_theory.monoidal
variables {C : Type u} [π : monoidal_category.{v} C]
include π
-- We give two versions, one abstract nonsense, as `(End... |
c8e1252998169c072deb7525cb40fac4a17820fe | 74addaa0e41490cbaf2abd313a764c96df57b05d | /Mathlib/category_theory/limits/preserves/basic_auto.lean | 725e1a7e1bccac4a9c4cde3dc74d2c0ba9e51732 | [] | 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 | 46,685 | lean | /-
Copyright (c) 2018 Scott Morrison. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Scott Morrison, Reid Barton, Bhavik Mehta
-/
import Mathlib.PrePort
import Mathlib.Lean3Lib.init.default
import Mathlib.category_theory.limits.limits
import Mathlib.PostPort
universes... |
7a8199fe4133b31c7459ef590e1766c5ecfeea4b | 75db7e3219bba2fbf41bf5b905f34fcb3c6ca3f2 | /tests/lean/run/class3.lean | 2b3b0f8076fed5d5769f1189ee26e50600df5e95 | [
"Apache-2.0"
] | permissive | jroesch/lean | 30ef0860fa905d35b9ad6f76de1a4f65c9af6871 | 3de4ec1a6ce9a960feb2a48eeea8b53246fa34f2 | refs/heads/master | 1,586,090,835,348 | 1,455,142,203,000 | 1,455,142,277,000 | 51,536,958 | 1 | 0 | null | 1,455,215,811,000 | 1,455,215,811,000 | null | UTF-8 | Lean | false | false | 271 | lean | import logic data.prod
open prod inhabited
section
variable {A : Type}
variable {B : Type}
variable Ha : inhabited A
variable Hb : inhabited B
include Ha Hb
theorem tst : inhabited (Prop Γ A Γ B)
end
reveal tst
(*
print(get_env():find("tst"):value())
*)
|
f502bc88cacd0027c849495f30d4445619b851b1 | c777c32c8e484e195053731103c5e52af26a25d1 | /src/analysis/sum_integral_comparisons.lean | 611b475c6490d20f0c90b6193996326bbff147a1 | [
"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 | 7,040 | lean | /-
Copyright (c) 2022 Kevin H. Wilson. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Kevin H. Wilson
-/
import measure_theory.integral.interval_integral
import data.set.function
import analysis.special_functions.integrals
/-!
# Comparing sums and integrals
## Summar... |
28fd7b5751a5166deb93c181ebccaa0b61fc6ac4 | e00ea76a720126cf9f6d732ad6216b5b824d20a7 | /src/algebra/ring.lean | f08397bdf0ff0fb89b0022ae6f895a8e63ce6ce3 | [
"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 | 28,526 | 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
-/
import algebra.group.with_one
import deprecated.group
import tactic.norm_cast
/-!
# Properties and homomorphis... |
a23e8550ce407e642e4e5582ef3a2c4f20c3a4df | 3aad12fe82645d2d3173fbedc2e5c2ba945a4d75 | /src/tactic/inductive_decl.lean | f73856ab93c7cca2b854846ba807524ff34ed879 | [] | no_license | seanpm2001/LeanProver-Community_MathLIB-Nursery | 4f88d539cb18d73a94af983092896b851e6640b5 | 0479b31fa5b4d39f41e89b8584c9f5bf5271e8ec | refs/heads/master | 1,688,730,786,645 | 1,572,070,026,000 | 1,572,070,026,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 7,212 | lean | /-
Copyright (c) 2018 Simon Hudon. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Author: Simon Hudon
-/
import tactic.nursery
namespace tactic
open expr
@[derive has_reflect]
meta structure type_cnstr :=
(name : name)
(args : list expr)
(result : list expr)
@[derive has_ref... |
1ba6150786cd7b56e5cdb08cd75fefe95aefa6e9 | a9d0fb7b0e4f802bd3857b803e6c5c23d87fef91 | /library/data/sigma.lean | 4f7abd9c0cd12bd6dd0b77429ce9601adc5d5709 | [
"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,831 | lean | /-
Copyright (c) 2014 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Author: Leonardo de Moura, Jeremy Avigad, Floris van Doorn
Sigma types, aka dependent sum.
-/
import logic.cast
open inhabited sigma.ops
namespace sigma
universe variables u v
vari... |
9e870b562166cf16dcb8e7233247e64fa2f97a62 | 1abd1ed12aa68b375cdef28959f39531c6e95b84 | /src/order/symm_diff.lean | b5504aad8a822f5a26558c0f8936d515d4ddcc79 | [
"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 | 9,120 | lean | /-
Copyright (c) 2021 Bryan Gin-ge Chen. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Adam Topaz, Bryan Gin-ge Chen
-/
import order.boolean_algebra
/-!
# Symmetric difference
The symmetric difference or disjunctive union of sets `A` and `B` is the set of elements ... |
4ea8d985f3113dc1bbefcaabf61ff4dff8eaa01e | 57c233acf9386e610d99ed20ef139c5f97504ba3 | /src/ring_theory/artinian.lean | 5f153c27ece09006d143b4bf8a7262f4ad645261 | [
"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 | 17,670 | lean | /-
Copyright (c) 2021 Chris Hughes. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Chris Hughes
-/
import linear_algebra.basic
import linear_algebra.prod
import linear_algebra.pi
import data.set_like.fintype
import linear_algebra.linear_independent
import tactic.linari... |
e7ce99e0487fe7f0c21e2c0a0f9719affcd6165b | 74addaa0e41490cbaf2abd313a764c96df57b05d | /Mathlib/topology/algebra/group.lean | f650ac5b6357f11d2b23050b00610fc63254c189 | [] | 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,680 | 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, Patrick Massot
-/
import Mathlib.PrePort
import Mathlib.Lean3Lib.init.default
import Mathlib.order.filter.pointwise
import Mathlib.group_theory.quotient... |
a1a50bc0c1f7141adb73139ae14f2e7a9f9a2177 | 21871395eaf77834250a3f1b20624be105ae17be | /prelim.lean | e55ea0789de560ad090eaa7bc7ecc3e3a3384c26 | [] | no_license | daniel-carranza/2-adj-lean-workspace | a60a16d99993351a08860575831ec7c5b801c39f | e3e9b99883e5056d2de1856b8adcb2f4625546e6 | refs/heads/master | 1,666,176,695,426 | 1,592,006,470,000 | 1,592,006,470,000 | 271,910,711 | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 1,761 | lean | /-
Authors: Daniel Carranza, Jonathon Chang, Ryan Sandford
Under the supervision of Chris Kapulkin
Some auxiliary lemmas used in adj.lean and two_adj.lean
Last updated: 2020-06-12
-/
import hott.init hott.types.equiv
open hott
hott_theory
universes u v
namespace pi
variable {A : Type u}
va... |
41c8a4bb4dfa45e5a785336cf8e2e7e3b0ce342f | 4727251e0cd73359b15b664c3170e5d754078599 | /src/data/subtype.lean | 7347ff7aa6a5d90ef6519f6219d83a80849f8036 | [
"Apache-2.0"
] | permissive | Vierkantor/mathlib | 0ea59ac32a3a43c93c44d70f441c4ee810ccceca | 83bc3b9ce9b13910b57bda6b56222495ebd31c2f | refs/heads/master | 1,658,323,012,449 | 1,652,256,003,000 | 1,652,256,003,000 | 209,296,341 | 0 | 1 | Apache-2.0 | 1,568,807,655,000 | 1,568,807,655,000 | null | UTF-8 | Lean | false | false | 7,994 | lean | /-
Copyright (c) 2017 Johannes HΓΆlzl. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Johannes HΓΆlzl
-/
import logic.function.basic
import tactic.ext
import tactic.lint
import tactic.simps
/-!
# Subtypes
This file provides basic API for subtypes, which are defined in ... |
41d78bb63f8823498e18902bba70e388909940bc | ce6917c5bacabee346655160b74a307b4a5ab620 | /src/ch5/ex0410.lean | 4c193c8aa8e3d87e20dc9270d3cfb07f9d8a6f74 | [] | 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 | 236 | lean | example (p q r : Prop) : p β§ (q β¨ r) β (p β§ q) β¨ (p β§ r) :=
begin
intro h,
have hp : p := h.left,
have hqr : q β¨ r := h.right,
cases hqr with hq hr,
exact or.inl β¨hp, hqβ©,
exact or.inr β¨hp, hrβ©
end
|
0c9893590326cf70b38982df8648e1effffba814 | 9dc8cecdf3c4634764a18254e94d43da07142918 | /src/ring_theory/tensor_product.lean | f769f1c12deeb9dc77c71ce1006c77f49cbf9ffe | [
"Apache-2.0"
] | permissive | jcommelin/mathlib | d8456447c36c176e14d96d9e76f39841f69d2d9b | ee8279351a2e434c2852345c51b728d22af5a156 | refs/heads/master | 1,664,782,136,488 | 1,663,638,983,000 | 1,663,638,983,000 | 132,563,656 | 0 | 0 | Apache-2.0 | 1,663,599,929,000 | 1,525,760,539,000 | Lean | UTF-8 | Lean | false | false | 36,922 | lean | /-
Copyright (c) 2020 Scott Morrison. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Scott Morrison, Johan Commelin
-/
import linear_algebra.tensor_product_basis
import ring_theory.adjoin.basic
/-!
# The tensor product of R-algebras
Let `R` be a (semi)ring and `A` a... |
54da286d6d542f1386795760be4d8bf993a60726 | ea5678cc400c34ff95b661fa26d15024e27ea8cd | /cycles.lean | b56a9866aa896b2b97eed03b99a481e7c295348f | [] | no_license | ChrisHughes24/leanstuff | dca0b5349c3ed893e8792ffbd98cbcadaff20411 | 9efa85f72efaccd1d540385952a6acc18fce8687 | refs/heads/master | 1,654,883,241,759 | 1,652,873,885,000 | 1,652,873,885,000 | 134,599,537 | 1 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 8,976 | lean | import group_theory.perm group_theory.order_of_element
variables {Ξ± : Type*} [decidable_eq Ξ±]
open finset function
namespace equiv
namespace perm
def disjoint (f g : perm Ξ±) := β x : Ξ±, f x = x β¨ g x = x
def cycle_of_aux (f : perm Ξ±) : Ξ (n : β) (y : Ξ±), list Ξ±
| 0 y := []
| (n+1) y := y :: (cycle_of_aux n (f y)... |
a0cd87f53952f79492e1cc9c51d5beddc4f55dfc | 947b78d97130d56365ae2ec264df196ce769371a | /src/Lean/PrettyPrinter/Parenthesizer.lean | 77a566a09a52fee4852affa084b9ab417449941b | [
"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 | 25,320 | lean | /-
Copyright (c) 2020 Sebastian Ullrich. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Sebastian Ullrich
-/
/-!
The parenthesizer inserts parentheses into a `Syntax` object where syntactically necessary, usually as an intermediary
step between the delaborator and the... |
d73123c29c11814e7e3b4383c5c2d1069d19db8e | 08bd4ba4ca87dba1f09d2c96a26f5d65da81f4b4 | /src/Lean/Util/FindExpr.lean | db6d64896d78b6db5a682957a926e1b7c48ade25 | [
"LLVM-exception",
"NCSA",
"LGPL-3.0-only",
"LicenseRef-scancode-inner-net-2.0",
"BSD-3-Clause",
"LGPL-2.0-or-later",
"Spencer-94",
"LGPL-2.1-or-later",
"HPND",
"LicenseRef-scancode-pcre",
"ISC",
"LGPL-2.1-only",
"Apache-2.0",
"LicenseRef-scancode-other-permissive",
"SunPro",
"CMU-Mach"... | permissive | gebner/lean4 | d51c4922640a52a6f7426536ea669ef18a1d9af5 | 8cd9ce06843c9d42d6d6dc43d3e81e3b49dfc20f | refs/heads/master | 1,685,732,780,391 | 1,672,962,627,000 | 1,673,459,398,000 | 373,307,283 | 0 | 0 | Apache-2.0 | 1,691,316,730,000 | 1,622,669,271,000 | Lean | UTF-8 | Lean | false | false | 3,740 | 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
namespace Lean
namespace Expr
namespace FindImpl
abbrev cacheSize : USize := 8192 - 1
structure State where
keys : Array Expr -- Rema... |
a7abc722c00fafd24d2ffb4f1f6449ccd46603c8 | 82e44445c70db0f03e30d7be725775f122d72f3e | /src/analysis/complex/circle.lean | d7da1c09cd78e16a239046c0ba3c4383f160890f | [
"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 | 3,910 | lean | /-
Copyright (c) 2021 Heather Macbeth. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Heather Macbeth
-/
import analysis.complex.basic
import data.complex.exponential
/-!
# The circle
This file defines `circle` to be the metric sphere (`metric.sphere`) in `β` centred... |
99a2fbd2bc5ef4a7c5c7162b964687e11fff09d0 | d406927ab5617694ec9ea7001f101b7c9e3d9702 | /src/algebra/polynomial/group_ring_action.lean | 35c3dcb56b2c8dff2f997d9e2d9266fe071e09f0 | [
"Apache-2.0"
] | permissive | alreadydone/mathlib | dc0be621c6c8208c581f5170a8216c5ba6721927 | c982179ec21091d3e102d8a5d9f5fe06c8fafb73 | refs/heads/master | 1,685,523,275,196 | 1,670,184,141,000 | 1,670,184,141,000 | 287,574,545 | 0 | 0 | Apache-2.0 | 1,670,290,714,000 | 1,597,421,623,000 | Lean | UTF-8 | Lean | false | false | 4,922 | 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.group_ring_action.basic
import algebra.hom.group_action
import data.polynomial.algebra_map
import data.polynomial.monic
import group_theory.group_action.quotient... |
ce07eaf0f2aa0c327b4e32ff93cb4bb66ac718e4 | 8cae430f0a71442d02dbb1cbb14073b31048e4b0 | /src/analysis/normed_space/star/matrix.lean | 0de74bb3ddbeb2f9c520478a6a8fd791b5702055 | [
"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,585 | lean | /-
Copyright (c) 2022 Hans Parshall. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Hans Parshall
-/
import analysis.matrix
import analysis.normed_space.basic
import data.is_R_or_C.basic
import linear_algebra.unitary_group
/-!
# Unitary matrices
> THIS FILE IS SYNCHR... |
25eb17a8940ebc00e8f91683265d92adc6715a2f | 63abd62053d479eae5abf4951554e1064a4c45b4 | /src/data/set/intervals/basic.lean | 93529d45c3938350dab7695e29ac1f57799e52ec | [
"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 | 37,968 | 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, Patrick Massot, Yury Kudryashov
-/
import algebra.ordered_group
import data.set.basic
/-!
# Intervals
In any preorder `Ξ±`, we define intervals (which ... |
6a1b46b9b2fbc5c57d270e84cb3adbdb826535e6 | 74addaa0e41490cbaf2abd313a764c96df57b05d | /Mathlib/Lean3Lib/data/rbtree/main.lean | 4a4c1e471b5c8be95f7710beed6ecbaf5c50f283 | [] | 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,517 | 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.default
import Mathlib.Lean3Lib.data.rbtree.find
import Mathlib.Lean3Lib.data.rbtree.insert
import Mathl... |
2c93abef48c1bd89b1e6c7b21c4ca83511f028d5 | 94e33a31faa76775069b071adea97e86e218a8ee | /src/algebraic_topology/dold_kan/homotopies.lean | cd8904d0302b505950d13c35f6adf3c6526329a2 | [
"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,876 | 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 algebra.homology.homotopy
import algebraic_topology.dold_kan.notations
/-!
# Construction of homotopies for the Dold-Kan correspondence
TODO (@joelriou) continue add... |
5e20307fe1c35af6fdfa58f1da70d917614babae | d1a52c3f208fa42c41df8278c3d280f075eb020c | /stage0/src/Lean/Parser/Command.lean | fec4f33a7c598d9f94da7d16cf1b09ab604f5bc8 | [
"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 | 12,258 | lean | /-
Copyright (c) 2019 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Leonardo de Moura, Sebastian Ullrich
-/
import Lean.Parser.Term
import Lean.Parser.Do
namespace Lean
namespace Parser
/--
Syntax quotation for terms and (lists of) commands.... |
2c747a4b9a6b7872d79c729850ebafa4564e8617 | 302c785c90d40ad3d6be43d33bc6a558354cc2cf | /src/data/rat/order.lean | 77aa05ef8b54be13071e860218cbaa5934e7f897 | [
"Apache-2.0"
] | permissive | ilitzroth/mathlib | ea647e67f1fdfd19a0f7bdc5504e8acec6180011 | 5254ef14e3465f6504306132fe3ba9cec9ffff16 | refs/heads/master | 1,680,086,661,182 | 1,617,715,647,000 | 1,617,715,647,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 8,615 | lean | /-
Copyright (c) 2019 Johannes HΓΆlzl. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Johannes HΓΆlzl, Mario Carneiro
-/
import data.rat.basic
/-!
# Order for Rational Numbers
## Summary
We define the order on `β`, prove that `β` is a discrete, linearly ordered field,... |
b7a136197f818dfcf5cdc12803326c9eb1b88963 | 80162757f50b09d3cad5564907e4c9b00742e045 | /combo.lean | 8b37ba85a0ffadb19d99578c7a4cf0fbaeb2e291 | [] | no_license | EdAyers/edlib | cc30d0a54fed347a85b6df6045f68e6b48bc71a3 | 78b8c5d91f023f939c102837d748868e2f3ed27d | refs/heads/master | 1,586,459,758,216 | 1,571,322,179,000 | 1,571,322,179,000 | 160,538,917 | 2 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 4,835 | lean | /- Combinatorics on lists. Copied from mathlib. -/
namespace list
universes u v
variables {Ξ± : Type u} {Ξ² : Type v}
inductive perm : list Ξ± β list Ξ± β Prop
|nil {}: perm [] []
|skip {x : Ξ±} {lβ lβ : list Ξ±} : perm lβ lβ β perm (x :: lβ) (x :: lβ)
|swap {x y : Ξ±} {l : list Ξ±} : perm (y::x::l) (x::y::l)
|trans {lβ lβ ... |
81fb51d8c15fa5df3a9259be10f90ed93452bdba | 4727251e0cd73359b15b664c3170e5d754078599 | /src/linear_algebra/basis.lean | b0564cf382f04751baaade19e5e868d9b0ac2536 | [
"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 | 49,160 | lean | /-
Copyright (c) 2017 Johannes HΓΆlzl. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Johannes HΓΆlzl, Mario Carneiro, Alexander Bentkamp
-/
import algebra.big_operators.finsupp
import algebra.big_operators.finprod
import data.fintype.card
import linear_algebra.finsupp
i... |
e75e7ca3d1ad50792008706659ee99b9afac43cc | 2a70b774d16dbdf5a533432ee0ebab6838df0948 | /_target/deps/mathlib/src/tactic/lint/type_classes.lean | d0c7b521723761320454ff7dcc711e691d7b5495 | [
"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 | 17,088 | 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.basic
/-!
# Linters about type classes
This file defines several linters checking the correct usage of type c... |
06577b01368687f49b23a718d58f73a419e1615b | c777c32c8e484e195053731103c5e52af26a25d1 | /src/algebra/ring/boolean_ring.lean | f93c74cd170fc19e90813629b6c6eda5f78f72ed | [
"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 | 15,964 | lean | /-
Copyright (c) 2021 Bryan Gin-ge Chen. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Bryan Gin-ge Chen, YaΓ«l Dillies
-/
import algebra.punit_instances
import tactic.abel
import tactic.ring
import order.hom.lattice
/-!
# Boolean rings
A Boolean ring is a ring where... |
33d6b1a8bbe69e95d1dcce9ebbd79bd7a9d9a84a | 8cd4726d66eec7673bcc0325fed07d5ba5bf17c4 | /practice-exam2.lean | 57b6214a07fce78edcd9ad668c55b30780d6eaf8 | [] | no_license | justinqcai/CS2102 | 8c5fddedffa6147fedd4b6ee7d5d39fc21f0ddab | d309f0db3f1df52eb77206ee1e8665a3b49d7a0c | refs/heads/master | 1,590,108,991,894 | 1,557,610,044,000 | 1,557,610,044,000 | 186,064,169 | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 9,660 | lean |
/-
Conjunctions, disjunctions, implication, iff,
negation
-/
/-
1. Prove that 3 + 3 = 6 and 2 + 6 = 8 implies
that 1 + 1 = 2.
-/
-- answer:
example : 3 + 3 = 6 β§ 2 + 6 = 8 β 1 + 1 = 2 :=
begin
assume ttts,
exact rfl,
end
/-
2. Prove that 2 + 5 = 3 or 9 + 1 = 5 implies
that 2 + 3 = 9.
-/
-- answer:
exampl... |
8871146ce11e1c8696dd4d836cf7928f235f4827 | e38d5e91d30731bef617cc9b6de7f79c34cdce9a | /src/core/kan/coe.lean | 0faf5f2b21364fed2f0317c3db7654133770bce0 | [
"Apache-2.0"
] | permissive | bbentzen/cubicalean | 55e979c303fbf55a81ac46b1000c944b2498be7a | 3b94cd2aefdfc2163c263bd3fc6f2086fef814b5 | refs/heads/master | 1,588,314,875,258 | 1,554,412,699,000 | 1,554,412,699,000 | 177,333,390 | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 348 | lean | /-
Copyright (c) 2019 Bruno Bentzen. All rights reserved.
Released under the Apache License 2.0 (see "License");
Author: Bruno Bentzen
-/
import .basic
universes u
-- coercion for n-dimensional cubes
namespace coe
structure has_coe (A : I β Type) :=
(coe : Ξ i, A i β Ξ j, A j)
(coeq : Ξ i a, coe ... |
a88cfb150e7955dc46bcbcc727f5c6ac05b237e4 | 8cae430f0a71442d02dbb1cbb14073b31048e4b0 | /src/measure_theory/lattice.lean | 24a1453a0d1ae9b554b89c5b9a749a6257fdf977 | [
"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,989 | lean | /-
Copyright (c) 2021 RΓ©my Degenne. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: RΓ©my Degenne
-/
import measure_theory.measure.ae_measurable
/-!
# Typeclasses for measurability of lattice operations
> THIS FILE IS SYNCHRONIZED WITH MATHLIB4.
> Any changes to this ... |
7cf9f1c8568c3a72f592f5e1bb8a4d940f874bbe | 80746c6dba6a866de5431094bf9f8f841b043d77 | /src/category_theory/examples/monoids.lean | cf1c2864b30806d6b5dae000eb03755ec4ab9521 | [
"Apache-2.0"
] | permissive | leanprover-fork/mathlib-backup | 8b5c95c535b148fca858f7e8db75a76252e32987 | 0eb9db6a1a8a605f0cf9e33873d0450f9f0ae9b0 | refs/heads/master | 1,585,156,056,139 | 1,548,864,430,000 | 1,548,864,438,000 | 143,964,213 | 0 | 0 | Apache-2.0 | 1,550,795,966,000 | 1,533,705,322,000 | Lean | UTF-8 | Lean | false | false | 1,739 | lean | /- Copyright (c) 2018 Scott Morrison. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Scott Morrison
Introduce Mon -- the category of monoids.
Currently only the basic setup.
-/
import category_theory.concrete_category
import category_theory.fully_faithful
import cat... |
8fc0f1abf4ecce3b4aacb0fb99c551ea2d92ecec | 9dc8cecdf3c4634764a18254e94d43da07142918 | /src/field_theory/splitting_field.lean | f4522aa6a7dcc13680783ab4589b6423973e2a20 | [
"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 | 39,371 | 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.intermediate_field
import ring_theory.adjoin_root
/-!
# Splitting fields
This file introduces the notion of a splitting field of a polynomial and pr... |
85de35d44a99843c5a13f79c28b9a45eff7bded9 | 63abd62053d479eae5abf4951554e1064a4c45b4 | /test/tactics.lean | 09d52ccfcebe8bda7463d66738170332fbff26ac | [
"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 | 16,297 | lean | /-
Copyright (c) 2018 Simon Hudon. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Simon Hudon, Scott Morrison
-/
import tactic.interactive
import tactic.finish
import tactic.ext
import tactic.lift
import tactic.apply
import tactic.reassoc_axiom
import tactic.tfae
impo... |
374e06e69f5e038abe0bc44f9076ba93bc2e6fcc | 5fbbd711f9bfc21ee168f46a4be146603ece8835 | /lean/natural_number_game/inequality/05.lean | 8d5c90e64b7e0235aa3ffbf69e4aa9e5482060e8 | [
"LicenseRef-scancode-warranty-disclaimer"
] | no_license | goedel-gang/maths | 22596f71e3fde9c088e59931f128a3b5efb73a2c | a20a6f6a8ce800427afd595c598a5ad43da1408d | refs/heads/master | 1,623,055,941,960 | 1,621,599,441,000 | 1,621,599,441,000 | 169,335,840 | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 172 | lean | theorem le_trans (a b c : mynat) (hab : a β€ b) (hbc : b β€ c) : a β€ c :=
begin
cases hab with n hn,
cases hbc with m hm,
use (m + n),
rw [hm, hn],
ring,
end
|
f9cc18fe0e9354c9e62444d737809a078c4fde66 | 5ae26df177f810c5006841e9c73dc56e01b978d7 | /src/algebraic_geometry/presheafed_space.lean | 0a4e7077b5e377fab1fa952cb9f01c5b0cd844a6 | [
"Apache-2.0"
] | permissive | ChrisHughes24/mathlib | 98322577c460bc6b1fe5c21f42ce33ad1c3e5558 | a2a867e827c2a6702beb9efc2b9282bd801d5f9a | refs/heads/master | 1,583,848,251,477 | 1,565,164,247,000 | 1,565,164,247,000 | 129,409,993 | 0 | 1 | Apache-2.0 | 1,565,164,817,000 | 1,523,628,059,000 | Lean | UTF-8 | Lean | false | false | 7,586 | 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 topology.Top.presheaf
/-!
# Presheafed spaces
Introduces the category of topological spaces equipped with a presheaf (taking values in an
arbitrary target ca... |
ab885e9a4474bfab718908d75a44cfd3cfcc1f42 | 8cae430f0a71442d02dbb1cbb14073b31048e4b0 | /src/algebra/monoid_algebra/to_direct_sum.lean | 4a42590b8590554d6bd2895ebf673b25c7b3d705 | [
"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,930 | lean | /-
Copyright (c) 2021 Eric Wieser. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Eric Wieser
-/
import algebra.direct_sum.algebra
import algebra.monoid_algebra.basic
import data.finsupp.to_dfinsupp
/-!
# Conversion between `add_monoid_algebra` and homogenous `direct_... |
1d36a6c262cca0965055174c1e24c7ac866bcb2d | 1446f520c1db37e157b631385707cc28a17a595e | /src/Init/Lean/LocalContext.lean | 40099452dd1ff2fc7e83dd52fabda26c0e4ec244 | [
"Apache-2.0"
] | permissive | bdbabiak/lean4 | cab06b8a2606d99a168dd279efdd404edb4e825a | 3f4d0d78b2ce3ef541cb643bbe21496bd6b057ac | refs/heads/master | 1,615,045,275,530 | 1,583,793,696,000 | 1,583,793,696,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 11,292 | lean | /-
Copyright (c) 2019 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Leonardo de Moura
-/
prelude
import Init.Data.PersistentArray.Basic
import Init.Data.PersistentHashMap.Basic
import Init.Lean.Expr
import Init.Lean.Hygiene
namespace Lean
indu... |
2867ad11108fdd3ce81013dafe878ad941f72aa2 | d406927ab5617694ec9ea7001f101b7c9e3d9702 | /src/combinatorics/quiver/push.lean | 9c3b5c09f217b8b21ef567ac719eb93a513a5d3b | [
"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,536 | lean | /-
Copyright (c) 2022 RΓ©mi Bottinelli. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: RΓ©mi Bottinelli
-/
import combinatorics.quiver.basic
/-!
# Pushing a quiver structure along a map
Given a map `Ο : V β W` and a `quiver` instance on `V`, this files defines a `quive... |
85f68f6c0bc93997fa961cb26693f1a0b62392dd | 4727251e0cd73359b15b664c3170e5d754078599 | /src/ring_theory/witt_vector/init_tail.lean | 1333a32ac7a30db08910e153ba46bb80b8a3619d | [
"Apache-2.0"
] | permissive | Vierkantor/mathlib | 0ea59ac32a3a43c93c44d70f441c4ee810ccceca | 83bc3b9ce9b13910b57bda6b56222495ebd31c2f | refs/heads/master | 1,658,323,012,449 | 1,652,256,003,000 | 1,652,256,003,000 | 209,296,341 | 0 | 1 | Apache-2.0 | 1,568,807,655,000 | 1,568,807,655,000 | null | UTF-8 | Lean | false | false | 7,063 | lean | /-
Copyright (c) 2020 Johan Commelin, Robert Y. Lewis. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Johan Commelin, Robert Y. Lewis
-/
import ring_theory.witt_vector.basic
import ring_theory.witt_vector.is_poly
/-!
# `init` and `tail`
Given a Witt vector `x`, we ... |
31839a322b5d969937c5cd7cffb4fa2266eba374 | 4efff1f47634ff19e2f786deadd394270a59ecd2 | /src/ring_theory/integral_closure.lean | 8b0751537ef7eeca606dfa1b62d8a42d148e0f24 | [
"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 | 16,991 | 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 ring_theory.algebra_tower
import ring_theory.polynomial.scale_roots
/-!
# Integral closure of a subring.
If A is an R-algebra then `a : A` is integral over R if it is ... |
75d8310b2031c488bdb48eca4d41b26e146647fb | 9dc8cecdf3c4634764a18254e94d43da07142918 | /src/topology/metric_space/baire.lean | 56ce034d0a0bac54f9f5f1a627698ec82276cefb | [
"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 | 17,613 | lean | /-
Copyright (c) 2019 SΓ©bastien GouΓ«zel. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: SΓ©bastien GouΓ«zel
-/
import analysis.specific_limits.basic
import order.filter.countable_Inter
import topology.G_delta
/-!
# Baire theorem
In a complete metric space, a countable ... |
0881ea3c58c2d98e49317a6ad2db98db707a0ee3 | 26ac254ecb57ffcb886ff709cf018390161a9225 | /src/algebra/category/Group/colimits.lean | a904e959e314b62ec3251e4c5e0a8b64954a8b67 | [
"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 | 8,539 | 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 algebra.category.Group.basic
import category_theory.limits.limits
import category_theory.limits.concrete_category
/-!
# The category of additive commutative g... |
ba6f3e49166354f809837065d9f6fd9d40d669ba | 32c054a763e4aa96bcb6e8bc87775e0f403a1804 | /src/spec/openprog.lean | a9cd90e56219f27d84d008430ac61169e5b5d0a4 | [
"LicenseRef-scancode-generic-cla",
"MIT"
] | permissive | Claudiusgonzo/AliveInLean | 7fac3f82722c27acc5551260ea12a36519f6e24e | a21bfb90dee0c6c6e00a955b6de92c631198c5ba | refs/heads/master | 1,635,381,727,801 | 1,555,783,536,000 | 1,555,783,536,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 21,953 | lean | -- Copyright (c) Microsoft Corporation. All rights reserved.
-- Licensed under the MIT license.
import ..smtexpr
import ..smtcompile
import ..bitvector
import .spec
import .lemmas
import .irstate
import .freevar
import .equiv
import smt2.syntax
import system.io
import init.meta.tactic
import init.meta.interactive
nam... |
bb73d61c8f0a71aac7a92466232036b425816d24 | d534932ed7c1eba03b537c377a4f8961acd41e99 | /examples/gethostname/lakefile.lean | c0ec5b5f68953a6fbf8c9479b6b27662169705a0 | [
"Apache-2.0"
] | permissive | Adminixtrator/lean4-socket | d7e321d547df6545d0c085d310be8f2c41c44ddb | b313041f2e75f4ad8320ab66d7e2afafd2202318 | refs/heads/main | 1,692,582,696,753 | 1,633,439,398,000 | 1,633,439,523,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 135 | lean | import Lake
open Lake DSL
package gethostname where
dependencies := #[{
name := `socket
src := Source.path "../../lake"
}] |
07103ec5eacb67ad1315aebda66a2301c3746b2d | a9d0fb7b0e4f802bd3857b803e6c5c23d87fef91 | /library/logic/identities.lean | ed2f790a722687672178967afbf192c99c83c081 | [
"Apache-2.0"
] | permissive | soonhokong/lean-osx | 4a954262c780e404c1369d6c06516161d07fcb40 | 3670278342d2f4faa49d95b46d86642d7875b47c | refs/heads/master | 1,611,410,334,552 | 1,474,425,686,000 | 1,474,425,686,000 | 12,043,103 | 5 | 1 | null | null | null | null | UTF-8 | Lean | false | false | 4,347 | lean | /-
Copyright (c) 2014 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Jeremy Avigad, Leonardo de Moura
Useful logical identities. Since we are not using propositional extensionality, some of the
calculations use the type class support provided by... |
89f44822e77737abd03cbda2485ace57e4497998 | 57c233acf9386e610d99ed20ef139c5f97504ba3 | /src/algebra/quaternion_basis.lean | b2cc69d8db73cd2648913303287215677861372d | [
"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 | 6,031 | lean | /-
Copyright (c) 2021 Eric Wieser. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Eric Wieser
-/
import algebra.quaternion
import tactic.ring
/-!
# Basis on a quaternion-like algebra
## Main definitions
* `quaternion_algebra.basis A cβ cβ`: a basis for a subspace of... |
1b690f9113490faa12d4335a32948b475fd28389 | 96338d06deb5f54f351493a71d6ecf6c546089a2 | /priv/Lean/Adjunction.lean | 99f83a45fe7bdaf12a77a3e6e1adf186c78562ec | [] | no_license | silky/exe | 5f9e4eea772d74852a1a2fac57d8d20588282d2b | e81690d6e16f2a83c105cce446011af6ae905b81 | refs/heads/master | 1,609,385,766,412 | 1,472,164,223,000 | 1,472,164,223,000 | 66,610,224 | 1 | 0 | null | 1,472,178,919,000 | 1,472,178,919,000 | null | UTF-8 | Lean | false | false | 5,329 | lean | /- Adjunction -/
import Setoid
import Cat
import Mor
import Functor
set_option pp.universes true
set_option pp.metavar_args false
namespace EXE
namespace Adj
abbreviation TriangleLProp {C D : CatType} (L : DβΆC) (R : CβΆD)
(Ξ· : π βΉ (R β L)) (Ξ΅ : (L β R) βΉ π) : Prop
:= β (X : D), ((Ξ΅ /$$ (L $$ X)... |
4edd5a6174fab62901ce11f7d3d2ef45bf9d4166 | 947fa6c38e48771ae886239b4edce6db6e18d0fb | /src/analysis/normed/field/unit_ball.lean | 3b52ad13ab74aa23aaf22f0687e5f4785a9c9cec | [
"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 | 7,424 | lean | /-
Copyright (c) 2022 Yury Kudryashov. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Yury Kudryashov, Heather Macbeth
-/
import analysis.normed.field.basic
import analysis.normed.group.ball_sphere
/-!
# Algebraic structures on unit balls and spheres
In this file we ... |
906e63226fac5570e9d9f383a95eaf50f608092a | cf39355caa609c0f33405126beee2739aa3cb77e | /tests/lean/interactive/goal_info.lean | 06692eba4574de4fb04c023d7f13edae26278f3e | [
"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 | 1,038 | lean | constant addc {a b : nat} : a + b = b + a
constant addassoc {a b c : nat} : (a + b) + c = a + (b + c)
constant zadd (a : nat) : 0 + a = a
open nat
example : β n m : β, n + m = m + n :=
begin
intros n m,
induction m with m' ih,
--^ "command": "info"
{ change n + 0 = 0 + n, simp [zadd, nat... |
b317105fd3b0f8f52983a8c8cf59cec5b397186d | 9be442d9ec2fcf442516ed6e9e1660aa9071b7bd | /tests/lean/run/909.lean | 64c4220de2792f270b9d0e5b1368dded366c0d0f | [
"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 | 910 | lean | structure Date where
val : Nat
deriving Repr
instance : LE Date := β¨InvImage (Nat.le) Date.valβ©
instance bad (a b : Date) : Decidable (a <= b) :=
if h0 : (a.val <= b.val) then isTrue h0 else isFalse (fun hf => False.elim (h0 hf))
/-
This implementation also fails:
instance (a b : Date) : Decidable (a <= b) :=
... |
eb32d3ce83a8a43ddb21b15fa5b06b4869bec687 | d406927ab5617694ec9ea7001f101b7c9e3d9702 | /test/norm_num.lean | 7752d113a38aa1d356c5747ee3b919f61a71c653 | [
"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 | 14,265 | lean | /-
Copyright (c) 2017 Simon Hudon All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Simon Hudon, Mario Carneiro
-/
import tactic.norm_num
/-!
# Tests for `norm_num` extensions
-/
constant real : Type
notation `β` := real
@[instance] constant real.linear_ordered_ring : ... |
05fd11a3d1881ef22f6d1cd2d4c28472acd94fb7 | 74addaa0e41490cbaf2abd313a764c96df57b05d | /Mathlib/tactic/lint/frontend.lean | 16ee52d97973805aa632edadcd22ae3738a4803c | [] | 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 | 6,202 | 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 Mathlib.PrePort
import Mathlib.Lean3Lib.init.default
import Mathlib.tactic.lint.basic
import Mathlib.PostPort
universes l ... |
09b527a08706f8153bfceed9329590cfbe27e6ee | fe84e287c662151bb313504482b218a503b972f3 | /src/exercises/misc_exercices_1.lean | 872ef1a462aca83e1a54f0cfe7c2ebeeb1b41045 | [] | no_license | NeilStrickland/lean_lib | 91e163f514b829c42fe75636407138b5c75cba83 | 6a9563de93748ace509d9db4302db6cd77d8f92c | refs/heads/master | 1,653,408,198,261 | 1,652,996,419,000 | 1,652,996,419,000 | 181,006,067 | 4 | 1 | null | null | null | null | UTF-8 | Lean | false | false | 12,770 | lean | import algebra.big_operators.basic
import tactic.interactive tactic.ring tactic.fin_cases
/- Exercise 1
Show that for every natural number n, there exists m with m > n
Useful ingredients:
nat.lt_succ_self; the tactics intro, use, apply
-/
lemma exists_greater_a : β (n : β), β (m : β), m > n :=
begin
intro n,
... |
589ec0211cfdc3095c2cc8d1df6d24bd386e3d2d | d1a52c3f208fa42c41df8278c3d280f075eb020c | /src/Lean/Data/Lsp/Workspace.lean | 0324eb30ac63d45ff2309c5b67dab29818bca147 | [
"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 | 486 | lean | /-
Copyright (c) 2020 Wojciech Nawrocki. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Wojciech Nawrocki
-/
import Lean.Data.Lsp.Basic
import Lean.Data.Json
namespace Lean
namespace Lsp
open Json
structure WorkspaceFolder where
uri : DocumentUri
name : String
... |
22250ac652c5617a3f38207336691db507390f21 | b7f22e51856f4989b970961f794f1c435f9b8f78 | /tests/lean/run/coe_issue3.lean | 3030d7c5008ae50093b366a37e8fc620002543b4 | [
"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 | 364 | lean | import data.int data.real
open algebra nat int rat real
example : (1 : β€) * (1 : β€) = (1 : β€) :=
sorry
example : (1 : β€) * 1 = 1 :=
sorry
example : (1 : β) * (1 : β) = (1 : β) :=
sorry
example : (1 : β) * 1 = 1 :=
sorry
variable x : β
variable a : β€
variable n : β
example : x + a + n + 1 = 1 :=
sorry
example : x... |
fb1b911eca789ed2dc2b79396722fc55fea7d24d | 8cae430f0a71442d02dbb1cbb14073b31048e4b0 | /src/algebra/regular/pow.lean | ee2d02d7819ad0654ad94b2e78c05b122ea859fd | [
"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,310 | 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.hom.iterate
import algebra.regular.basic
/-!
# Regular elements
> THIS FILE IS SYNCHRONIZED WITH MATHLIB4.
> Any changes to this file require a corresp... |
280308e729f7634f842b03f5a608bd30c29c5b59 | 2eab05920d6eeb06665e1a6df77b3157354316ad | /src/logic/basic.lean | 31c5949200c388b5f09a272c321c0448907a928d | [
"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 | 61,355 | 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
-/
import tactic.doc_commands
import tactic.reserved_notation
/-!
# Basic logic properties
This file is one of the earliest imports in mathlib.
## Im... |
573c106fb7db890fa1a10df7a0459aaac7cada55 | 1abd1ed12aa68b375cdef28959f39531c6e95b84 | /src/linear_algebra/free_module/finite/rank.lean | 009206e8e2331c4d79191ba157dd6882ff5abcce | [
"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 | 4,972 | lean | /-
Copyright (c) 2021 Riccardo Brasca. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Riccardo Brasca
-/
import linear_algebra.free_module.rank
import linear_algebra.free_module.finite.basic
/-!
# Rank of finite free modules
This is a basic API for the rank of fini... |
19ea3070a2317837e3b355623759fdf62ab7fe14 | 947fa6c38e48771ae886239b4edce6db6e18d0fb | /src/linear_algebra/finite_dimensional.lean | c62ab32f3d842c8992a835f2b25f2b6c4ab01a55 | [
"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 | 75,704 | 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 algebra.algebra.subalgebra.basic
import field_theory.finiteness
/-!
# Finite dimensional vector spaces
Definition and basic properties of finite dimensional vect... |
0e8f56cfd38fef13a2191d0e7addffa323d26122 | ce6917c5bacabee346655160b74a307b4a5ab620 | /src/ch6/ex0301.lean | d92c12727f850cb7453f5968cf84cd72cb8a5951 | [] | 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 | 81 | lean | namespace foo
def bar : β := 1
end foo
open foo
#check bar
#check foo.bar
|
12db88e2c6ad426ac50161576e6266bd31bc223d | d406927ab5617694ec9ea7001f101b7c9e3d9702 | /src/ring_theory/discrete_valuation_ring.lean | b97fe3a6ba47f0545dcd049da977251409d5553f | [
"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 | 17,482 | 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 ring_theory.principal_ideal_domain
import ring_theory.ideal.local_ring
import ring_theory.multiplicity
import ring_theory.valuation.basic
import linear_algebra.... |
8a632fa21f95142b8ab627726d88e53be28ac269 | 130c49f47783503e462c16b2eff31933442be6ff | /stage0/src/Init/Notation.lean | 5855919d4029519959941df4b73b8cf88dbef6ce | [
"Apache-2.0"
] | permissive | Hazel-Brown/lean4 | 8aa5860e282435ffc30dcdfccd34006c59d1d39c | 79e6732fc6bbf5af831b76f310f9c488d44e7a16 | refs/heads/master | 1,689,218,208,951 | 1,629,736,869,000 | 1,629,736,896,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 18,785 | 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.... |
8369db621d0c99cf941d31b2053ea998ae93623a | b7f22e51856f4989b970961f794f1c435f9b8f78 | /tests/lean/ftree.lean | 6f9e887dd898d7968a61b3bfe12c9f68e345ab12 | [
"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 | 785 | lean | inductive list (T : Type) : Type := nil {} : list T | cons : T β list T β list T
namespace explicit
inductive ftree.{lβ lβ} (A : Type.{lβ}) (B : Type.{lβ}) : Type.{max 1 lβ lβ} :=
leafa : A β ftree A B |
leafb : B β ftree A B |
node : (A β ftree A B) β (B β ftree A B) β ftree A B
end explicit
namespace implicit
... |
af1b147b9cb3e633ceec9ff391c7dd0bcc273bb8 | bbecf0f1968d1fba4124103e4f6b55251d08e9c4 | /src/number_theory/bernoulli_polynomials.lean | 3aceaa931375028212bb80c9667a79af7cc8c61b | [
"Apache-2.0"
] | permissive | waynemunro/mathlib | e3fd4ff49f4cb43d4a8ded59d17be407bc5ee552 | 065a70810b5480d584033f7bbf8e0409480c2118 | refs/heads/master | 1,693,417,182,397 | 1,634,644,781,000 | 1,634,644,781,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 7,104 | lean | /-
Copyright (c) 2021 Ashvni Narayanan. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Ashvni Narayanan
-/
import data.nat.choose.cast
import number_theory.bernoulli
/-!
# Bernoulli polynomials
The Bernoulli polynomials (defined here : https://en.wikipedia.org/wiki/B... |
1f3850f97d3ad382b90a57cd19dd1103f38e991f | 1abd1ed12aa68b375cdef28959f39531c6e95b84 | /src/category_theory/limits/preserves/shapes/terminal.lean | de72dd03ed691c5d24dc4b1dc0675ab9ddf59a51 | [
"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 | 4,172 | 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.preserves.limits
import category_theory.limits.shapes.terminal
/-!
# Preserving terminal object
Constructions to relate the notions of pre... |
28c02ed1628bb6fea8c40385e92bdffb9c33b631 | 29cc89d6158dd3b90acbdbcab4d2c7eb9a7dbf0f | /Project/test.lean | dc9faa1dc851ceb4afbac5122fbb1dc20d0f301a | [] | no_license | KjellZijlemaker/Logical_Verification_VU | ced0ba95316a30e3c94ba8eebd58ea004fa6f53b | 4578b93bf1615466996157bb333c84122b201d99 | refs/heads/master | 1,585,966,086,108 | 1,549,187,704,000 | 1,549,187,704,000 | 155,690,284 | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 4,955 | lean | def concat {Ξ± : Type} : list (list Ξ±) β list Ξ±
| [] := []
| (xs :: xss) := xs ++ concat xss
def map {Ξ± Ξ² : Type} (f : Ξ± β Ξ²) : list Ξ± β list Ξ² |
[] := [] |
(x :: xs) := f x :: map xs
def reverse {Ξ±: Type}: list Ξ± β list Ξ±
| [] := []
| (x::xs) := reverse xs ++ [x]
lemma concat_snoc {Ξ± : Type} : β(xs : list Ξ±) ... |
f65afbe815dc456c5e0b5c014058994ec9f5411e | 5e42295de7f5bcdf224b94603a8ec29b17c2d367 | /sum_form.lean | abb652f2349e893c322e322ce4baf5bdfbcc9620 | [] | no_license | pnmadelaine/lean_polya | 9369e0d87dce773f91383bb58ac6fde0a00a1a40 | 1c62b0b3fa71044b0225ce28030627d251b08ebc | refs/heads/master | 1,590,161,172,243 | 1,515,010,019,000 | 1,515,010,019,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 9,781 | lean | import .datatypes .blackboard
-- TODO: maybe more of this can move to datatypes
namespace polya
section sfcd_to_ineq
-- assumes lhs < rhs as exprs. cl*lhs + cr*rhs R 0 ==> ineq_data
private meta def mk_ineq_data_of_lhs_rhs (lhs rhs : expr) (cl cr : β) (c : comp) {s} (pf : sum_form_proof s) :
Ξ£... |
53ac9ae5475e48f3350fa1c6572cf5007ef956d9 | 1136b4d61007050cc632ede270de45a662f8dba4 | /library/init/category/functor.lean | dfcdaae0cb2e58f23595958a28b29d22e8598569 | [
"Apache-2.0"
] | permissive | zk744750315/lean | 7fe895f16cc0ef1869238a01cae903bbd623b4a9 | c17e5b913b2db687ab38f53285326b9dbb2b1b6e | refs/heads/master | 1,618,208,425,413 | 1,521,520,544,000 | 1,521,520,936,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 1,204 | lean | /-
Copyright (c) Luke Nelson and Jared Roesch. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Luke Nelson, Jared Roesch, Sebastian Ullrich, Leonardo de Moura
-/
prelude
import init.core init.function init.meta.name
open function
universes u v
section
set_option auto_p... |
2548c26ed244137629e30a9a2f179b3364b8a533 | 957a80ea22c5abb4f4670b250d55534d9db99108 | /library/init/meta/converter/interactive.lean | fa9e665cd64c5add00f0f6e81f52b6d9a84f90e4 | [
"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 | 5,841 | 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
Converter monad for building simplifiers.
-/
prelude
import init.meta.interactive init.meta.converter.conv
namespace conv
meta def save_info (p : pos) : conv... |
de44b5aadbc047979d033cecb374b16d568865c4 | fa02ed5a3c9c0adee3c26887a16855e7841c668b | /src/data/seq/wseq.lean | 8bcce722ab441bdea6fd814bfca41cc2c5f451e0 | [
"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 | 55,371 | lean | /-
Copyright (c) 2017 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Mario Carneiro
-/
import data.seq.seq
import data.dlist
universes u v w
/-
coinductive wseq (Ξ± : Type u) : Type u
| nil : wseq Ξ±
| cons : Ξ± β wseq Ξ± β wseq Ξ±
| think : wseq Ξ± β... |
617bbb5a8770e17b57d3f18b250dc0b6a9d1cc7a | 4727251e0cd73359b15b664c3170e5d754078599 | /src/category_theory/preadditive/projective.lean | ff2a5cbe534a87062f3d6d1df3fde9d3cf3687c2 | [
"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 | 6,499 | lean | /-
Copyright (c) 2020 Markus Himmel. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Markus Himmel, Scott Morrison
-/
import algebra.homology.exact
import category_theory.types
import category_theory.limits.shapes.biproducts
/-!
# Projective objects and categories with... |
ea126321e7a885cc59312a57883d8cff9c8cebb0 | e481c7ff8466483a1cc4f8f9b020202609da362a | /mathlibtools/decls.lean | eccd074556e39ef3928cbc9751606dcd3318a5c6 | [
"Apache-2.0"
] | permissive | leanprover-community/mathlib-tools | 61b2000d48624c03ff3718ef9492d8dbb6f91b1f | 23f16313a659674570ed5bc25f339be027a0c5b4 | refs/heads/master | 1,693,438,940,126 | 1,693,335,201,000 | 1,693,335,201,000 | 186,169,342 | 33 | 43 | Apache-2.0 | 1,693,335,554,000 | 1,557,599,877,000 | Python | UTF-8 | Lean | false | false | 1,453 | lean | import data.list.sort meta.expr system.io
open tactic declaration environment io io.fs (put_str_ln close)
-- The next instance is there to prevent PyYAML trying to be too smart
meta def my_name_to_string : has_to_string name :=
β¨Ξ» n, "\"" ++ to_string n ++ "\""β©
local attribute [instance] my_name_to_string
meta def... |
698e1469a4557194dc25f3f86345b9c6bc5760e2 | 957a80ea22c5abb4f4670b250d55534d9db99108 | /tests/lean/run/simp_univ_poly.lean | 52e0cea0ac19d3c444d1427f4dfce61711706fc3 | [
"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 | 765 | lean | universes u v
def equinumerous (Ξ± : Type u) (Ξ² : Type v) :=
β f : Ξ± β Ξ², function.bijective f
local infix ` β ` := equinumerous
@[refl] lemma refl {Ξ±} : Ξ± β Ξ± := sorry
@[trans] lemma trans {Ξ± Ξ² Ξ³} :
Ξ± β Ξ² β Ξ² β Ξ³ β Ξ± β Ξ³ := sorry
@[congr] lemma equinumerous.congr_eqn {Ξ± Ξ±' Ξ² Ξ²'} :
Ξ± β Ξ±' β Ξ² β Ξ²' β (Ξ± β Ξ²) ... |
eb3773ac18ac544deb01e61b2a59a4eee40834d0 | 8cae430f0a71442d02dbb1cbb14073b31048e4b0 | /src/linear_algebra/matrix/mv_polynomial.lean | 64a648d3bd5de3400ec704128193ab0a23f3cf86 | [
"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,882 | lean | /-
Copyright (c) 2021 Eric Wieser. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Eric Wieser
-/
import linear_algebra.matrix.determinant
import data.mv_polynomial.basic
import data.mv_polynomial.comm_ring
/-!
# Matrices of multivariate polynomials
> THIS FILE IS SYN... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.