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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
f102ff88f7f952ae5632abe960732ebe66ed6d08 | 5e3548e65f2c037cb94cd5524c90c623fbd6d46a | /src_icannos_totilas/anneaux/cpge_anneaux_9.lean | 3887a3fb9d42140114c919ce4a5abdb47ccea31c | [] | no_license | ahayat16/lean_exos | d4f08c30adb601a06511a71b5ffb4d22d12ef77f | 682f2552d5b04a8c8eb9e4ab15f875a91b03845c | refs/heads/main | 1,693,101,073,585 | 1,636,479,336,000 | 1,636,479,336,000 | 415,000,441 | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 173 | lean | import data.real.sqrt
def E {X : Type} (a : X) (f : X β β) := f a
theorem cpge_anneaux_9 {X : Type} : β a : X, β (g : (X β β) β+* β), (E a) = g := sorry
|
f4902baf736bf73c624d7c2d8da6cc4fb1ed4361 | c31182a012eec69da0a1f6c05f42b0f0717d212d | /src/prop819/completion.lean | 3e4a6ee1e6b9c6c85e43a7f73c595d1e0dfdedff | [] | 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 | 2,956 | lean | import algebra.homology.additive
import locally_constant.Vhat
import normed_group.controlled_exactness
import prop819.strict_complex_iso
noncomputable theory
universes u
variables (C D : cochain_complex SemiNormedGroup.{u} β)
open SemiNormedGroup
/-- The completed cochain complex associated to C. -/
abbreviation c... |
8ce1c312dac6d15dbd9533f9805421731b4a0426 | 6432ea7a083ff6ba21ea17af9ee47b9c371760f7 | /src/Lean/Elab/Quotation.lean | 5b278dc4fdda553e1232b8d224d10f3328d0859c | [
"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 | 34,032 | lean | /-
Copyright (c) 2019 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Sebastian Ullrich
Elaboration of syntax quotations as terms and patterns (in `match_syntax`). See also `./Hygiene.lean` for the basic
hygiene workings and data types. -/
import... |
deec1cb58c3f1e773118588a778c2d78b3b5885e | 94e33a31faa76775069b071adea97e86e218a8ee | /src/order/modular_lattice.lean | 2be73b526f6ca2c82fbb5935c82a3f4717706c48 | [
"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 | 14,749 | lean | /-
Copyright (c) 2020 Aaron Anderson. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Aaron Anderson, YaΓ«l Dillies
-/
import order.cover
import order.lattice_intervals
/-!
# Modular Lattices
This file defines (semi)modular lattices, a kind of lattice useful in algebra... |
0433ebec8641203ba80dc992cb2574f776f05b24 | 75db7e3219bba2fbf41bf5b905f34fcb3c6ca3f2 | /library/theories/group_theory/pgroup.lean | 58d2a26c6d107c7a4f75507685d1f1beb17d4774 | [
"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 | 15,468 | lean | /-
Copyright (c) 2015 Haitao Zhang. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Author : Haitao Zhang
-/
import theories.number_theory.primes data algebra.group algebra.group_power algebra.group_bigops
import .cyclic .finsubg .hom .perm .action
open nat fin list function su... |
9136d593360fd868e449c9a7a63be5c443b2a623 | e953c38599905267210b87fb5d82dcc3e52a4214 | /hott/hit/circle.hlean | d8cfd91aab59d5a3549aae5e10154b4abdbc3553 | [
"Apache-2.0"
] | permissive | c-cube/lean | 563c1020bff98441c4f8ba60111fef6f6b46e31b | 0fb52a9a139f720be418dafac35104468e293b66 | refs/heads/master | 1,610,753,294,113 | 1,440,451,356,000 | 1,440,499,588,000 | 41,748,334 | 0 | 0 | null | 1,441,122,656,000 | 1,441,122,656,000 | null | UTF-8 | Lean | false | false | 9,965 | 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
Declaration of the circle
-/
import .sphere
import types.bool types.int.hott types.equiv
import algebra.fundamental_group algebra.hott
open eq susp bool sphere_in... |
515c11d77b02df91ae907bb4e3bfe1aed2557853 | 6e9cd8d58e550c481a3b45806bd34a3514c6b3e0 | /src/group_theory/submonoid.lean | 9e74647ead01c0b3071e347698811a0d5b58c228 | [
"Apache-2.0"
] | permissive | sflicht/mathlib | 220fd16e463928110e7b0a50bbed7b731979407f | 1b2048d7195314a7e34e06770948ee00f0ac3545 | refs/heads/master | 1,665,934,056,043 | 1,591,373,803,000 | 1,591,373,803,000 | 269,815,267 | 0 | 0 | Apache-2.0 | 1,591,402,068,000 | 1,591,402,067,000 | null | UTF-8 | Lean | false | false | 31,941 | lean | /-
Copyright (c) 2018 Johannes HΓΆlzl. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Johannes HΓΆlzl, Kenny Lau, Johan Commelin, Mario Carneiro, Kevin Buzzard,
Amelia Livingston, Yury Kudryashov
-/
import algebra.big_operators
import algebra.free_monoid
import algebra.g... |
6dcc77d4c925b1dd5e255622dd42653e35a84342 | 9dd3f3912f7321eb58ee9aa8f21778ad6221f87c | /tests/lean/run/smt_not_exists.lean | b010b910744d04ae06761ebc4fd86646f0789046 | [
"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 | 380 | lean | universe variables u
def ex (p q : nat β nat β Prop) (h : β x, p x x β§ q x x) : β x y, p x y :=
begin [smt]
by_contra,
destruct h,
smt_tactic.add_lemmas_from_facts,
ematch
end
print ex
lemma ex2 (p q : nat β nat β Prop) (h : β x, p x x β§ q x x) : β x, p x x :=
begin [smt]
by_contra,
destruct h,
smt_tac... |
10492013f53de3959bdb207bc07dfe4c11761c84 | 4727251e0cd73359b15b664c3170e5d754078599 | /archive/imo/imo2006_q3.lean | b2c2b38fc99f6654c0229d6123cfa8a2aa7363c3 | [
"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 | 5,403 | lean | /-
Copyright (c) 2021 Tian Chen. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Tian Chen
-/
import analysis.special_functions.sqrt
/-!
# IMO 2006 Q3
Determine the least real number $M$ such that
$$
\left| ab(a^2 - b^2) + bc(b^2 - c^2) + ca(c^2 - a^2) \right|
β€ M (a... |
12a33d945df43962997371ff94fa146bceaf27ab | 4727251e0cd73359b15b664c3170e5d754078599 | /archive/imo/imo1962_q4.lean | 42bf061c48fb144d15156703b475c79793a8b6bc | [
"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 | 4,155 | lean | /-
Copyright (c) 2020 Kevin Lacker. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Kevin Lacker, Heather Macbeth
-/
import analysis.special_functions.trigonometric.complex
/-!
# IMO 1962 Q4
Solve the equation `cos x ^ 2 + cos (2 * x) ^ 2 + cos (3 * x) ^ 2 = 1`.
Sin... |
fe10ae088776c845663183cebc9fc119ac338654 | 92b50235facfbc08dfe7f334827d47281471333b | /library/logic/cast.lean | 764ce7311beb16332b8ee840dda4225fff4aec6a | [
"Apache-2.0"
] | permissive | htzh/lean | 24f6ed7510ab637379ec31af406d12584d31792c | d70c79f4e30aafecdfc4a60b5d3512199200ab6e | refs/heads/master | 1,607,677,731,270 | 1,437,089,952,000 | 1,437,089,952,000 | 37,078,816 | 0 | 0 | null | 1,433,780,956,000 | 1,433,780,955,000 | null | UTF-8 | Lean | false | false | 7,733 | 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
Casts and heterogeneous equality. See also init.datatypes and init.logic.
-/
import logic.eq logic.quantifiers
open eq.ops
section
universe variable u
va... |
abfb877af8d18cd264f08dbbfad9fc68c316aaed | fa02ed5a3c9c0adee3c26887a16855e7841c668b | /src/tactic/omega/int/preterm.lean | 0a57c20926ace273d3105a5f969f1bf2b1c9e8d1 | [
"Apache-2.0"
] | permissive | jjgarzella/mathlib | 96a345378c4e0bf26cf604aed84f90329e4896a2 | 395d8716c3ad03747059d482090e2bb97db612c8 | refs/heads/master | 1,686,480,124,379 | 1,625,163,323,000 | 1,625,163,323,000 | 281,190,421 | 2 | 0 | Apache-2.0 | 1,595,268,170,000 | 1,595,268,169,000 | null | UTF-8 | Lean | false | false | 2,815 | lean | /-
Copyright (c) 2019 Seul Baek. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Seul Baek
-/
/-
Linear integer arithmetic terms in pre-normalized form.
-/
import tactic.omega.term
namespace omega
namespace int
/-- The shadow syntax for arithmetic terms. All constan... |
e58ebef37c9b67b1d59e61a3055a8cecb62b8a46 | 9efb19082863e0d533e4a6ef27bf8d1854fce261 | /sphinx/bai2.lean | 17aa558dac1939c585b6c39b81e43ac27fa8e7db | [
"CC-BY-4.0"
] | permissive | mactiendinh/formalabstracts | da3b4761020a98eafdbb08a82494c287e460bce9 | b8a51764d9ba32ba77bcd87a2344be36955b6292 | refs/heads/master | 1,584,615,451,722 | 1,528,359,866,000 | 1,528,359,866,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 584 | lean | #check nat
#check nat β nat
#check Ξ» x : nat , x
#check Type
def identity : β x :β , β := Ξ» x : β , x
#check identity
def identity' (x :β) : β := x
#check identity'
theorem my_first_theorem (x:β ):
identity x =x:= rfl
#print and.left
#print and.right
#print and.intro
theorem and_is_comulative {p q: Pr... |
8e2e42c02b0fb4245d9b9fc2ab7cc43f62505e4c | 618003631150032a5676f229d13a079ac875ff77 | /src/algebra/order_functions.lean | 0263cd42d25a4df750781bd6bd0d417e8cee1e80 | [
"Apache-2.0"
] | permissive | awainverse/mathlib | 939b68c8486df66cfda64d327ad3d9165248c777 | ea76bd8f3ca0a8bf0a166a06a475b10663dec44a | refs/heads/master | 1,659,592,962,036 | 1,590,987,592,000 | 1,590,987,592,000 | 268,436,019 | 1 | 0 | Apache-2.0 | 1,590,990,500,000 | 1,590,990,500,000 | null | UTF-8 | Lean | false | false | 11,515 | 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 algebra.ordered_ring
/-!
# strictly monotone functions, max, min and abs
This file proves basic properties about strictly monotone functions,
maxima and mini... |
b3bd27030fd8be86d628242fba2714b9080703bd | 5883d9218e6f144e20eee6ca1dab8529fa1a97c0 | /src/exp/type.lean | 5c08591d71dc621b99dda4e04c3abb03b1e1c9b4 | [] | no_license | spl/alpha-conversion-is-easy | 0d035bc570e52a6345d4890e4d0c9e3f9b8126c1 | ed937fe85d8495daffd9412a5524c77b9fcda094 | refs/heads/master | 1,607,649,280,020 | 1,517,380,240,000 | 1,517,380,240,000 | 52,174,747 | 4 | 0 | null | 1,456,052,226,000 | 1,456,001,163,000 | Lean | UTF-8 | Lean | false | false | 1,448 | lean | /-
This file contains the `exp` inductive data type.
-/
import vname
namespace acie -----------------------------------------------------------------
variables {V : Type} [decidable_eq V] -- Type of variable names
variables {vs : Type β Type} [vset vs V] -- Type of variable name sets
/-
`exp` is an inductive data... |
ab5ce13308c006091ce4e192abdbb4a49d44c51f | 4fa161becb8ce7378a709f5992a594764699e268 | /src/measure_theory/simple_func_dense.lean | f76f986337c24bfdff82f3fdb610a89a631817fa | [
"Apache-2.0"
] | permissive | laughinggas/mathlib | e4aa4565ae34e46e834434284cb26bd9d67bc373 | 86dcd5cda7a5017c8b3c8876c89a510a19d49aad | refs/heads/master | 1,669,496,232,688 | 1,592,831,995,000 | 1,592,831,995,000 | 274,155,979 | 0 | 0 | Apache-2.0 | 1,592,835,190,000 | 1,592,835,189,000 | null | UTF-8 | Lean | false | false | 14,957 | lean | /-
Copyright (c) 2019 Zhouhang Zhou. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Zhouhang Zhou
-/
import measure_theory.l1_space
/-!
# Density of simple functions
Show that each Borel measurable function can be approximated,
both pointwise and in `LΒΉ` norm, by a s... |
46c062d6085ab86a83cbd3880498fe47f2175318 | c777c32c8e484e195053731103c5e52af26a25d1 | /src/number_theory/bernoulli.lean | b77fb4c73944868a15777fc3378c3e7b7d2438c5 | [
"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 | 16,851 | lean | /-
Copyright (c) 2020 Johan Commelin. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Johan Commelin, Kevin Buzzard
-/
import algebra.big_operators.nat_antidiagonal
import algebra.geom_sum
import data.fintype.big_operators
import ring_theory.power_series.well_known
impo... |
4bf63422d54d60485be0d70bf0abc003c547f1c6 | 2eab05920d6eeb06665e1a6df77b3157354316ad | /src/data/finset/basic.lean | dcb70dde64e5f7f96de1c5a38088d0d23f923587 | [
"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 | 132,054 | lean | /-
Copyright (c) 2015 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Leonardo de Moura, Jeremy Avigad, Minchao Wu, Mario Carneiro
-/
import data.multiset.finset_ops
import tactic.apply
import tactic.monotonicity
import tactic.nth_rewrite
/-!
# F... |
ec81a9c624a0ee984a5913ec6ffd67846e96ed62 | d1a52c3f208fa42c41df8278c3d280f075eb020c | /src/Lean/Meta/DecLevel.lean | e938946ed21fca2067b5eaea0a166e8fbeecd973 | [
"Apache-2.0",
"LLVM-exception",
"NCSA",
"LGPL-3.0-only",
"LicenseRef-scancode-inner-net-2.0",
"BSD-3-Clause",
"LGPL-2.0-or-later",
"Spencer-94",
"LGPL-2.1-or-later",
"HPND",
"LicenseRef-scancode-pcre",
"ISC",
"LGPL-2.1-only",
"LicenseRef-scancode-other-permissive",
"SunPro",
"CMU-Mach"... | permissive | cipher1024/lean4 | 6e1f98bb58e7a92b28f5364eb38a14c8d0aae393 | 69114d3b50806264ef35b57394391c3e738a9822 | refs/heads/master | 1,642,227,983,603 | 1,642,011,696,000 | 1,642,011,696,000 | 228,607,691 | 0 | 0 | Apache-2.0 | 1,576,584,269,000 | 1,576,584,268,000 | null | UTF-8 | Lean | false | false | 2,746 | lean | /-
Copyright (c) 2021 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Leonardo de Moura
-/
import Lean.Meta.Basic
import Lean.Meta.InferType
namespace Lean.Meta
structure DecLevelContext where
/--
If `true`, then `decAux? ?m` returns a fres... |
92de246f46a09eaadc96c82a5a47fcbb68620a43 | bbecf0f1968d1fba4124103e4f6b55251d08e9c4 | /src/tactic/tfae.lean | 85f54bc4cfab226b57389ddc75ae6434c7821608 | [
"Apache-2.0"
] | permissive | waynemunro/mathlib | e3fd4ff49f4cb43d4a8ded59d17be407bc5ee552 | 065a70810b5480d584033f7bbf8e0409480c2118 | refs/heads/master | 1,693,417,182,397 | 1,634,644,781,000 | 1,634,644,781,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 4,978 | lean | /-
Copyright (c) 2018 Johan Commelin. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Johan Commelin, Reid Barton, Simon Hudon
-/
import data.list.tfae
import tactic.scc
/-!
# The Following Are Equivalent (TFAE)
This file provides the tactics `tfae_have` and `tfae_fin... |
f49af3bbfdc8cd74d78ca9999ebbc7c65fd3afe4 | d436468d80b739ba7e06843c4d0d2070e43448e5 | /src/ring_theory/ideals.lean | 9cbbbc33a52909c3552090e4e0edab4cd99b5695 | [
"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 | 18,912 | lean | /-
Copyright (c) 2018 Kenny Lau. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Kenny Lau, Chris Hughes, Mario Carneiro
-/
import algebra.associated linear_algebra.basic order.zorn
universes u v
variables {Ξ± : Type u} {Ξ² : Type v} {a b : Ξ±}
open set function lattice
... |
dbd990e1fb851417df7c14681d5a99c4caad9fbc | 2c096fdfecf64e46ea7bc6ce5521f142b5926864 | /src/Lean/Server/Requests.lean | 43e1eacea00644a1c705d05b0e925a6b8c122cdc | [
"Apache-2.0",
"LLVM-exception",
"NCSA",
"LGPL-3.0-only",
"LicenseRef-scancode-inner-net-2.0",
"BSD-3-Clause",
"LGPL-2.0-or-later",
"Spencer-94",
"LGPL-2.1-or-later",
"HPND",
"LicenseRef-scancode-pcre",
"ISC",
"LGPL-2.1-only",
"LicenseRef-scancode-other-permissive",
"SunPro",
"CMU-Mach"... | permissive | Kha/lean4 | 1005785d2c8797ae266a303968848e5f6ce2fe87 | b99e11346948023cd6c29d248cd8f3e3fb3474cf | refs/heads/master | 1,693,355,498,027 | 1,669,080,461,000 | 1,669,113,138,000 | 184,748,176 | 0 | 0 | Apache-2.0 | 1,665,995,520,000 | 1,556,884,930,000 | Lean | UTF-8 | Lean | false | false | 10,208 | lean | /-
Copyright (c) 2021 Wojciech Nawrocki. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Wojciech Nawrocki, Marc Huisinga
-/
import Lean.DeclarationRange
import Lean.Data.Json
import Lean.Data.Lsp
import Lean.Elab.Command
import Lean.Server.FileSource
import Lean.Ser... |
9752d27944f96c44ba6819cd83e883513b2e2fc8 | 75db7e3219bba2fbf41bf5b905f34fcb3c6ca3f2 | /hott/hit/colimit.hlean | 93a938e16785e3384e8548afc64ad89238603a5e | [
"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 | 7,589 | 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
Definition of general colimits and sequential colimits.
-/
/- definition of a general colimit -/
open eq nat quotient sigma equiv equiv.ops is_trunc
namespace col... |
3a2c5196d291d2b8aee7ee72c19dcb1b2800f649 | 97f752b44fd85ec3f635078a2dd125ddae7a82b6 | /hott/homotopy/wedge.hlean | 1c1bd4d7a7a34e432ae7e8679cc659a066774b56 | [
"Apache-2.0"
] | permissive | tectronics/lean | ab977ba6be0fcd46047ddbb3c8e16e7c26710701 | f38af35e0616f89c6e9d7e3eb1d48e47ee666efe | refs/heads/master | 1,532,358,526,384 | 1,456,276,623,000 | 1,456,276,623,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 2,741 | hlean | /-
Copyright (c) 2016 Jakob von Raumer. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Jakob von Raumer, Ulrik Buchholtz
The Wedge Sum of Two pType Types
-/
import hit.pointed_pushout .connectedness
open eq pushout pointed pType unit
definition pwedge (A B : Type*) ... |
56ab182f6f9cd5d1eb0441dfb8106cab29548a22 | 46125763b4dbf50619e8846a1371029346f4c3db | /src/ring_theory/free_ring.lean | 120aa7e3d664ef7df5ccf7185a6683ea32674ee3 | [
"Apache-2.0"
] | permissive | thjread/mathlib | a9d97612cedc2c3101060737233df15abcdb9eb1 | 7cffe2520a5518bba19227a107078d83fa725ddc | refs/heads/master | 1,615,637,696,376 | 1,583,953,063,000 | 1,583,953,063,000 | 246,680,271 | 0 | 0 | Apache-2.0 | 1,583,960,875,000 | 1,583,960,875,000 | null | UTF-8 | Lean | false | false | 4,004 | lean | /-
Copyright (c) 2019 Kenny Lau. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Kenny Lau, Johan Commelin
-/
import algebra.free_monoid group_theory.free_abelian_group data.equiv.algebra data.polynomial
universes u v
def free_ring (Ξ± : Type u) : Type u :=
free_abeli... |
2552b32a9e2201b837d1636409247a49e1a233b0 | 8d65764a9e5f0923a67fc435eb1a5a1d02fd80e3 | /src/ring_theory/euclidean_domain.lean | 918ac5d5cf82ad7932037312ed066748f4227176 | [
"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 | 2,587 | 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
-/
import ring_theory.coprime
import ring_theory.ideal.basic
/-!
# Lemmas about Euclidean domains
Various about Euclidean domains are proved; all of them... |
4c9d6399ed24bab5b7c840f0529fb2db836d1641 | bdc27058d2df65f1c05b3dd4ff23a30af9332a2b | /src/hilbert_props.lean | f5ca65ab5093c207203ed784dc4bd65dd26f2935 | [] | no_license | bakerjd99/leanteach2020 | 19e3dda4167f7bb8785fe0e2fe762a9c53a9214d | 2160909674f3aec475eabb51df73af7fa1d91c65 | refs/heads/master | 1,668,724,511,289 | 1,594,407,424,000 | 1,594,407,424,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 14,422 | lean | import tactic
import .hilbert
noncomputable theory
open_locale classical
local infix ` β `:55 := C -- \ equiv == equivalence/congruence
local infix `β¬`:56 := Segment.mk -- \ cdot == center-dot
-------------------------------
-- |#Instructions For Hilbert# |
-------------------------------
-- Alex: I copie... |
d8ee34a3c6a9b6f7163701266e50e00ce3f5205a | fa02ed5a3c9c0adee3c26887a16855e7841c668b | /archive/imo/imo2011_q3.lean | c3e5dfc5d83611a2c3eae1095a7e773b3b589375 | [
"Apache-2.0"
] | permissive | jjgarzella/mathlib | 96a345378c4e0bf26cf604aed84f90329e4896a2 | 395d8716c3ad03747059d482090e2bb97db612c8 | refs/heads/master | 1,686,480,124,379 | 1,625,163,323,000 | 1,625,163,323,000 | 281,190,421 | 2 | 0 | Apache-2.0 | 1,595,268,170,000 | 1,595,268,169,000 | null | UTF-8 | Lean | false | false | 2,406 | lean | /-
Copyright (c) 2021 David Renshaw. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: David Renshaw
-/
import data.real.basic
/-!
# IMO 2011 Q3
Let f : β β β be a function that satisfies
f(x + y) β€ y * f(x) + f(f(x))
for all x and y. Prove that f(x) = 0 for all x... |
30a8ce55e721fbc67ef21b7c6e049c9d2464fd33 | 4727251e0cd73359b15b664c3170e5d754078599 | /src/category_theory/abelian/non_preadditive.lean | 3b86071992c8c04dcf3c59e908629d65c41167ac | [
"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 | 17,252 | 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.equalizers
import cat... |
5b2c78130a5721001c5e971e3bdc8427cf2cbdd8 | 63abd62053d479eae5abf4951554e1064a4c45b4 | /src/algebra/field_power.lean | e6cda2f7369e5d6b1ebacf868780ec1305fa1854 | [
"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 | 5,613 | lean | /-
Copyright (c) 2018 Robert Y. Lewis. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Robert Y. Lewis
Integer power operation on fields.
-/
import algebra.group_with_zero_power
import tactic.linarith
universe u
@[simp] lemma ring_hom.map_fpow {K L : Type*} [division... |
a6bc787e2f82a12bf64d8dcb28a8a945d1686452 | 35677d2df3f081738fa6b08138e03ee36bc33cad | /src/data/pfun.lean | 60e1bb8a4aeca5ab8c4cd752eb64b35b68385e06 | [
"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 | 22,620 | lean | /-
Copyright (c) 2017 Mario Carneiro. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Author: Mario Carneiro, Jeremy Avigad
-/
import data.set.basic data.equiv.basic data.rel logic.relator
/-- `roption Ξ±` is the type of "partial values" of type `Ξ±`. It
is similar to `option Ξ±... |
fe40d072cdb309a49ce188e6f97897c2ec46aa89 | 8cb37a089cdb4af3af9d8bf1002b417e407a8e9e | /library/init/data/nat/lemmas.lean | 3db34522d48107b856df6cc039ebba76485289ef | [
"Apache-2.0"
] | permissive | kbuzzard/lean | ae3c3db4bb462d750dbf7419b28bafb3ec983ef7 | ed1788fd674bb8991acffc8fca585ec746711928 | refs/heads/master | 1,620,983,366,617 | 1,618,937,600,000 | 1,618,937,600,000 | 359,886,396 | 1 | 0 | Apache-2.0 | 1,618,936,987,000 | 1,618,936,987,000 | null | UTF-8 | Lean | false | false | 47,801 | lean | /-
Copyright (c) 2016 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Leonardo de Moura, Jeremy Avigad
-/
prelude
import init.data.nat.basic init.data.nat.div init.meta init.algebra.functions
universes u
namespace nat
attribute [pre_smt] nat_zero... |
e94fdee4e06c61d43a55eb7e7278748d51694afc | 4fa118f6209450d4e8d058790e2967337811b2b5 | /src/Huber_ring/basic.lean | 85c85cca16e483c918a3d6f75adc4b5c3a1c91f7 | [
"Apache-2.0"
] | permissive | leanprover-community/lean-perfectoid-spaces | 16ab697a220ed3669bf76311daa8c466382207f7 | 95a6520ce578b30a80b4c36e36ab2d559a842690 | refs/heads/master | 1,639,557,829,139 | 1,638,797,866,000 | 1,638,797,866,000 | 135,769,296 | 96 | 10 | Apache-2.0 | 1,638,797,866,000 | 1,527,892,754,000 | Lean | UTF-8 | Lean | false | false | 4,256 | lean | import topology.algebra.ring
import ring_theory.algebra_operations
import group_theory.subgroup
import power_bounded
import for_mathlib.submodule
import for_mathlib.nonarchimedean.adic_topology
import for_mathlib.open_embeddings
/-!
# Huber rings
Huber rings (called βf-adic ringsβ by Huber and [Wedhorn], but Scholz... |
0aeef94ba1d65e97f98ec4e25e5ee89594fceab0 | 8d65764a9e5f0923a67fc435eb1a5a1d02fd80e3 | /src/analysis/fourier.lean | d893585bf1908f0660dc04293d5d907a02373f04 | [
"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 | 8,216 | 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 measure_theory.function.continuous_map_dense
import measure_theory.function.l2_space
import measure_theory.measure.haar
import analysis.complex.circle
import... |
312b2f12056fb5f42fb807604e177a3ae0de4872 | 33340b3a23ca62ef3c8a7f6a2d4e14c07c6d3354 | /lia/atom.lean | 92515de9e3da71ab3686c6b4063b76274c6fe8f6 | [] | no_license | lclem/cooper | 79554e72ced343c64fed24b2d892d24bf9447dfe | 812afc6b158821f2e7dac9c91d3b6123c7a19faf | refs/heads/master | 1,607,554,257,488 | 1,578,694,133,000 | 1,578,694,133,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 1,358 | lean | import ..num ..dot_prod
open list znum
inductive atom : Type
| le : znum β list znum β atom
| dvd : znum β znum β list znum β atom
| ndvd : znum β znum β list znum β atom
open atom
-- | (i β€' ks) := sorry
-- | (d β£' i ks) := sorry
-- | (d Β¬| i ks) := sorry
notation c `β€'` ks := atom.le c ks
notation d `|'` c := ato... |
e0917f9d0d5e13ab1cc6f21e78dd791f42f4656c | 495c02489c2d6a1db94dfdba71dd800d3cc67df2 | /group_theory/action.lean | 8de9794e564dc4bc6c764bdbef451c4f43647ba5 | [
"Apache-2.0"
] | permissive | leodemoura/leanproved | e0fcbe4f4d72bf0dad9a962ed111b5975cf90712 | de56e0af159dd0c0421733289c76aa79c78a0191 | refs/heads/master | 1,606,822,676,898 | 1,435,711,541,000 | 1,435,711,541,000 | 36,675,856 | 0 | 0 | null | 1,433,178,724,000 | 1,433,178,724,000 | null | UTF-8 | Lean | false | false | 14,130 | lean | /-
Copyright (c) 2015 Haitao Zhang. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Author : Haitao Zhang
-/
import algebra.group data .hom .perm .finsubg
namespace group
open finset algebra function
local attribute perm.f [coercion]
section def
variables {G S : Type} [ambie... |
22addf78214fe9b04089d3e056a43ba6efe5fccd | 80cc5bf14c8ea85ff340d1d747a127dcadeb966f | /src/linear_algebra/dimension.lean | 30f879d56a1d193e9f2276704a36f62cb4dd7d2c | [
"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 | 20,627 | lean | /-
Copyright (c) 2018 Mario Carneiro. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Author: Mario Carneiro, Johannes HΓΆlzl, Sander Dahmen
-/
import linear_algebra.basis
import set_theory.cardinal_ordinal
/-!
# Dimension of modules and vector spaces
## Main definitions
* The... |
4b3a70da88f03405cbddde5f39cca81b2355464b | bdb33f8b7ea65f7705fc342a178508e2722eb851 | /data/multiset.lean | c359be70f9f2df78513fc07556700d15475e2ffc | [
"Apache-2.0"
] | permissive | rwbarton/mathlib | 939ae09bf8d6eb1331fc2f7e067d39567e10e33d | c13c5ea701bb1eec057e0a242d9f480a079105e9 | refs/heads/master | 1,584,015,335,862 | 1,524,142,167,000 | 1,524,142,167,000 | 130,614,171 | 0 | 0 | Apache-2.0 | 1,548,902,667,000 | 1,524,437,371,000 | Lean | UTF-8 | Lean | false | false | 95,900 | lean | /-
Copyright (c) 2015 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Author: Mario Carneiro
Multisets.
-/
import logic.function data.list.basic data.list.perm data.list.sort order.boolean_algebra
algebra.order_functions data.quot algebra.group_pow... |
b464fc28b39302706072e55d173f046b4c29fba3 | 92b50235facfbc08dfe7f334827d47281471333b | /library/classical.lean | fb497f98fe5f00877ff2baac4e739d6ed244ef51 | [
"Apache-2.0"
] | permissive | htzh/lean | 24f6ed7510ab637379ec31af406d12584d31792c | d70c79f4e30aafecdfc4a60b5d3512199200ab6e | refs/heads/master | 1,607,677,731,270 | 1,437,089,952,000 | 1,437,089,952,000 | 37,078,816 | 0 | 0 | null | 1,433,780,956,000 | 1,433,780,955,000 | null | UTF-8 | Lean | false | false | 248 | lean | /-
Copyright (c) 2014 Jeremy Avigad. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Author: Jeremy Avigad
The standard library together with the classical axioms.
-/
import standard logic.axioms.classical
|
032de2710fc77d29fb279958861a67cfab021ecd | 56e5b79a7ab4f2c52e6eb94f76d8100a25273cf3 | /src/evaluation/greedy/baseline.lean | 695aa717f4179d2837af334809a8adcd2b844424 | [
"Apache-2.0"
] | permissive | DyeKuu/lean-tpe-public | 3a9968f286ca182723ef7e7d97e155d8cb6b1e70 | 750ade767ab28037e80b7a80360d213a875038f8 | refs/heads/master | 1,682,842,633,115 | 1,621,330,793,000 | 1,621,330,793,000 | 368,475,816 | 0 | 0 | Apache-2.0 | 1,621,330,745,000 | 1,621,330,744,000 | null | UTF-8 | Lean | false | false | 807 | lean | import evaluation_step
import backends.greedy.baseline
section main
-- use this version for testing using tidy_greedy_proof_search
meta def main : io unit := do {
args β io.cmdline_args,
decls_file β lift_option $ args.nth 0 | io.fail "must supply decls_file as first argument",
dest β lift_option $ args.nth 1 |... |
df27d621b73974760257c12e18c21b410337a1c4 | 2102833783742d9cd20d98b382ecb3af427d8071 | /library/init/meta/expr.lean | 1af8cb045844b36a276fa65bd1f6b3784d920f50 | [
"Apache-2.0"
] | permissive | bryangingechen/lean | b63dd2b7d2ed46c13c6226148691b7d88282e9b2 | ec76117504723667bdc0dda4b93aa1b31536147d | refs/heads/master | 1,592,587,806,769 | 1,568,328,715,000 | 1,568,328,715,000 | 196,801,202 | 0 | 0 | Apache-2.0 | 1,563,085,022,000 | 1,563,085,022,000 | null | UTF-8 | Lean | false | false | 20,983 | lean | /-
Copyright (c) 2016 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Leonardo de Moura
-/
prelude
import init.meta.level init.category.monad init.meta.rb_map
universes u v
open native
/-- Column and line position in a Lean source file. -/
structu... |
daa01db72778a61b956c93499558daff20c7c0c5 | abd85493667895c57a7507870867b28124b3998f | /src/data/real/cardinality.lean | d80b7ff372766984f43058cbd89351c4a353c9fb | [
"Apache-2.0"
] | permissive | pechersky/mathlib | d56eef16bddb0bfc8bc552b05b7270aff5944393 | f1df14c2214ee114c9738e733efd5de174deb95d | refs/heads/master | 1,666,714,392,571 | 1,591,747,567,000 | 1,591,747,567,000 | 270,557,274 | 0 | 0 | Apache-2.0 | 1,591,597,975,000 | 1,591,597,974,000 | null | UTF-8 | Lean | false | false | 4,897 | lean | /-
Copyright (c) 2019 Floris van Doorn. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Floris van Doorn
The cardinality of the reals.
-/
import set_theory.ordinal
import analysis.specific_limits
import data.rat.denumerable
open nat set
noncomputable theory
namespace ... |
1f0a174813b2c671a9a5b03f8ed4d3d75d3e21b0 | 77c5b91fae1b966ddd1db969ba37b6f0e4901e88 | /src/data/list/intervals.lean | db7221f3d85382701b9e6f34d7684b052fc57955 | [
"Apache-2.0"
] | permissive | dexmagic/mathlib | ff48eefc56e2412429b31d4fddd41a976eb287ce | 7a5d15a955a92a90e1d398b2281916b9c41270b2 | refs/heads/master | 1,693,481,322,046 | 1,633,360,193,000 | 1,633,360,193,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 6,951 | 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.list.range
import data.list.bag_inter
/-!
# Intervals in β
This file defines intervals of naturals. `list.Ico m n` is the list of integers greater than ... |
fa853487a502e836426c8ca6639ce32a2420b41c | a5e2e6395319779f21675263bc0e486be5bc03bd | /bench/conv_eval.lean | 3bb8209a9f61190e35777067325d1992d33ee615 | [
"MIT"
] | permissive | AndrasKovacs/smalltt | 10f0ec55fb3f487e9dd21a740fe1a899e0cdb790 | c306f727ba3c92abe6ef75013da5a5dade6b15c8 | refs/heads/master | 1,689,497,785,394 | 1,680,893,106,000 | 1,680,893,106,000 | 112,098,494 | 483 | 26 | MIT | 1,640,720,815,000 | 1,511,713,805,000 | Lean | UTF-8 | Lean | false | false | 4,249 | lean |
set_option maxHeartbeats 10000000000
set_option maxRecDepth 10000000000
universe u v
def CBool := β (B : Type), B β B β B
def ctrue : CBool := Ξ» B t f => t
def cand : CBool β CBool β CBool := Ξ» a b B t f => a B (b B t f) f
def the (A : Type u) (x : A) := x
def CEq {A : Type u}(x y : A) := β (P : A β Type v), P x... |
9658bbe1636ac3b6f0ba9db5278bd2b782a1c972 | 367134ba5a65885e863bdc4507601606690974c1 | /src/set_theory/game/domineering.lean | 67ceaa818dc4e18514744114404ca4f042998e2b | [
"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 | 7,815 | 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 set_theory.game.state
/-!
# Domineering as a combinatorial game.
We define the game of Domineering, played on a chessboard of arbitrary shape
(possibly even ... |
0e38a1a88f38cad4e58f7aca4fdc8adba79b1440 | 9be442d9ec2fcf442516ed6e9e1660aa9071b7bd | /src/Lean/Elab/LetRec.lean | 8367fa68a2626e2e95614b997c19f5a816fbfa8f | [
"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 | 5,038 | 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.Elab.Attributes
import Lean.Elab.Binders
import Lean.Elab.DeclModifiers
import Lean.Elab.SyntheticMVars
import Lean.Elab.DeclarationRange
names... |
fd9ae1ad099749ab20d9f5ce38e3865dc1427a41 | 74addaa0e41490cbaf2abd313a764c96df57b05d | /Mathlib/data/real/golden_ratio.lean | ccc4f579041c5856f6c71a74f1416ba24d391498 | [] | 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 | 4,291 | lean | /-
Copyright (c) 2020 Anatole Dedecker. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Anatole Dedecker, Alexey Soloyev, Junyan Xu
-/
import Mathlib.PrePort
import Mathlib.Lean3Lib.init.default
import Mathlib.data.real.irrational
import Mathlib.data.nat.fib
import Math... |
db9e01dfdb2ff2c6c1a493719e938b2bf0f36bd2 | 74addaa0e41490cbaf2abd313a764c96df57b05d | /Mathlib/Lean3Lib/init/data/quot_auto.lean | 1c8743d56ddc7c8bde29484cca8639db17c2d7ec | [] | 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,663 | lean | /-
Copyright (c) 2015 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Author: Leonardo de Moura
Quotient types.
-/
import Mathlib.PrePort
import Mathlib.Lean3Lib.init.data.sigma.basic
import Mathlib.Lean3Lib.init.logic
import Mathlib.Lean3Lib.init.propext... |
cc3934aaaf05037736d04597478edf9323ddc68a | 6dc0c8ce7a76229dd81e73ed4474f15f88a9e294 | /tests/lean/run/simp6.lean | ad1064a6907cadec35c3d9b6f661fc2f1cb0cc0e | [
"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 | 709 | lean | theorem ex1 (a : Ξ±) (b : List Ξ±) : (a::b = []) = False :=
by simp
theorem ex2 (a : Ξ±) (b : List Ξ±) : (a::b = []) = False :=
by simp
theorem ex3 (x : Nat) : (if Nat.succ x = 0 then 1 else 2) = 2 :=
by simp
theorem ex4 (x : Nat) : (if 10 = 0 then 1 else 2) = 2 :=
by simp
theorem ex5 : (10 = 20) = False :=
b... |
3a96dcbfc17fde14b31412db223b68fbf6e7ea88 | e2fc96178628c7451e998a0db2b73877d0648be5 | /src/classes/context_sensitive/basics/toolbox.lean | 6c185d39d5d80b32d755e2b64c3f1e554146f690 | [
"BSD-2-Clause"
] | permissive | madvorak/grammars | cd324ae19b28f7b8be9c3ad010ef7bf0fabe5df2 | 1447343a45fcb7821070f1e20b57288d437323a6 | refs/heads/main | 1,692,383,644,884 | 1,692,032,429,000 | 1,692,032,429,000 | 453,948,141 | 7 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 1,188 | lean | import classes.context_sensitive.basics.definition
variables {T : Type} {g : CS_grammar T}
/-- The relation `CS_derives` is reflexive. -/
lemma CS_deri_self {w : list (symbol T g.nt)} :
CS_derives g w w :=
relation.refl_trans_gen.refl
lemma CS_deri_of_tran {v w : list (symbol T g.nt)} :
CS_transforms g v w β CS... |
b30008851f7a581f99f286030be1d566ca811c33 | 19cc34575500ee2e3d4586c15544632aa07a8e66 | /src/data/set/lattice.lean | 9a1ebcf79feaf31e881402d6c845507712ff3085 | [
"Apache-2.0"
] | permissive | LibertasSpZ/mathlib | b9fcd46625eb940611adb5e719a4b554138dade6 | 33f7870a49d7cc06d2f3036e22543e6ec5046e68 | refs/heads/master | 1,672,066,539,347 | 1,602,429,158,000 | 1,602,429,158,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 47,545 | 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, Johannes HΓΆlzl, Mario Carneiro
-- QUESTION: can make the first argument in β x β a, ... implicit?
-/
import order.complete_boolean_algebra
import data... |
4392af94def7d61b8acea9ad5473a226a5fc9b88 | fa02ed5a3c9c0adee3c26887a16855e7841c668b | /src/ring_theory/trace.lean | 265094f69eb158c567b79c90c37807ce31f4351d | [
"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 | 5,430 | lean | /-
Copyright (c) 2020 Anne Baanen. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Anne Baanen
-/
import linear_algebra.bilinear_form
import linear_algebra.char_poly.coeff
import linear_algebra.trace
import ring_theory.power_basis
/-!
# Trace for (finite) ring extensi... |
43a1fe93681c38d91e5a201bd13f2463d65732d5 | 57fdc8de88f5ea3bfde4325e6ecd13f93a274ab5 | /data/int/basic.lean | edcb5aa36d9c62b6cc56f7ba7be40e698d4a25d4 | [
"Apache-2.0"
] | permissive | louisanu/mathlib | 11f56f2d40dc792bc05ee2f78ea37d73e98ecbfe | 2bd5e2159d20a8f20d04fc4d382e65eea775ed39 | refs/heads/master | 1,617,706,993,439 | 1,523,163,654,000 | 1,523,163,654,000 | 124,519,997 | 0 | 0 | Apache-2.0 | 1,520,588,283,000 | 1,520,588,283,000 | null | UTF-8 | Lean | false | false | 42,188 | lean | /-
Copyright (c) 2016 Jeremy Avigad. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Jeremy Avigad
The integers, with addition, multiplication, and subtraction.
-/
import data.nat.basic algebra.char_zero algebra.order_functions
open nat
namespace int
instance : inhab... |
6904551ab43ae4e53f1fb380c8a3a506c80fb42f | aa3f8992ef7806974bc1ffd468baa0c79f4d6643 | /tests/lean/run/set.lean | dbbb98d920c81bf48118c884f9b0e66bb788c08c | [
"Apache-2.0"
] | permissive | codyroux/lean | 7f8dff750722c5382bdd0a9a9275dc4bb2c58dd3 | 0cca265db19f7296531e339192e9b9bae4a31f8b | refs/heads/master | 1,610,909,964,159 | 1,407,084,399,000 | 1,416,857,075,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 125 | lean | import standard
using bool
definition set {{T : Type}} := T β bool
infix `β` := Ξ»x A, A x = tt
check 1 β (Ξ» x, tt)
|
6e6b9ab2c4f719a573d37a252c847d32316e9bcd | 367134ba5a65885e863bdc4507601606690974c1 | /src/control/equiv_functor.lean | 1d781d112f6a6f0d9fae2a80a46128b782203b3a | [
"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 | 3,310 | lean | /-
Copyright (c) 2020 Scott Morrison. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Author: Scott Morrison
-/
import category_theory.category
import data.equiv.functor
/-!
# Functions functorial with respect to equivalences
An `equiv_functor` is a function from `Type β Type`... |
6f778c37b7d7acc26c3623e95d6bdd5e5d483515 | 94e33a31faa76775069b071adea97e86e218a8ee | /src/data/nat/totient.lean | faaf415fcbb7fef58114a701ce875b7270f02b03 | [
"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 | 14,472 | 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 algebra.big_operators.basic
import data.nat.prime
import data.zmod.basic
import ring_theory.multiplicity
import data.nat.periodic
import algebra.char_p.two
import ... |
c161ee76659f7f6190e0af4708d6378d102c12b6 | b7f22e51856f4989b970961f794f1c435f9b8f78 | /library/data/set/card.lean | a677fbf438e4e5e5e171fa211288843a6b5940aa | [
"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 | 5,883 | lean | /-
Copyright (c) 2015 Jeremy Avigad. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Author: Jeremy Avigad
Cardinality of finite sets.
-/
import .finite data.finset.card
open nat classical
namespace set
variable {A : Type}
noncomputable definition card (s : set A) := finset.... |
8bb3bcaba29ca9eb211ee74503c12daa8272a7cc | aa3f8992ef7806974bc1ffd468baa0c79f4d6643 | /tests/lean/whnf.lean | 6988f71aafb7020f319bf4ad54520ec2d1c0ce94 | [
"Apache-2.0"
] | permissive | codyroux/lean | 7f8dff750722c5382bdd0a9a9275dc4bb2c58dd3 | 0cca265db19f7296531e339192e9b9bae4a31f8b | refs/heads/master | 1,610,909,964,159 | 1,407,084,399,000 | 1,416,857,075,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 140 | lean | import data.nat
open nat
eval [whnf] (fun x, x + 1) 2
eval (fun x, x + 1) 2
variable a : nat
eval [whnf] a + succ zero
eval a + succ zero
|
e8d3a541cf9792e5cb0f35837c5c766edfce31f4 | 968e2f50b755d3048175f176376eff7139e9df70 | /examples/prop_logic_theory/unnamed_710.lean | 94cb79cd988106550910c928d766683ef9357462 | [] | no_license | gihanmarasingha/mth1001_sphinx | 190a003269ba5e54717b448302a27ca26e31d491 | 05126586cbf5786e521be1ea2ef5b4ba3c44e74a | refs/heads/master | 1,672,913,933,677 | 1,604,516,583,000 | 1,604,516,583,000 | 309,245,750 | 1 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 283 | lean | variables p q r : Prop
-- BEGIN
example : q β (p β q) :=
begin
intro hβ, -- Assume `hβ : q`. It suffices to prove `p β q`.
intro hβ, -- Assume `hβ : p`. It suffices to prove `q`.
show q, from hβ, -- We show `q` by reiteration on `hβ`.
end
-- END |
505f3ebc92d11c5b1d5639fa3d2c20fcfa10759f | fe84e287c662151bb313504482b218a503b972f3 | /src/data/birange.lean | ed134b63d7b3848d53bd7722c9b054337ef20ec7 | [] | 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 | 4,305 | lean | import data.fintype.basic
import tactic.squeeze
variable (n : β)
def birange : Type := { u : β Γ β // u.1 + u.2 = n }
namespace birange
variable {n}
def fst (u : birange n) := u.val.fst
def snd (u : birange n) := u.val.snd
lemma rel (u : birange n) : u.fst + u.snd = n := u.property
@[ext]
lemma ext (uβ uβ : bir... |
75a614b21ee18fa384ce3e6deadb422043ca6afb | 69d4931b605e11ca61881fc4f66db50a0a875e39 | /src/algebra/ring/ulift.lean | 33a6aeb77756a2fa3178d6c7cdf752f7de0770f8 | [
"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 | 2,269 | lean | /-
Copyright (c) 2020 Scott Morrison. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Scott Morrison
-/
import algebra.group.ulift
import data.equiv.ring
/-!
# `ulift` instances for ring
This file defines instances for ring, semiring and related structures on `ulift` ... |
136e7a9ef3c23c7f3b0d430b8268ea7a87e6ab23 | b2fe74b11b57d362c13326bc5651244f111fa6f4 | /src/algebra/ordered_group.lean | 8b95c819ed436d185072dbbf3d7647b0035183e4 | [
"Apache-2.0"
] | permissive | midfield/mathlib | c4db5fa898b5ac8f2f80ae0d00c95eb6f745f4c7 | 775edc615ecec631d65b6180dbcc7bc26c3abc26 | refs/heads/master | 1,675,330,551,921 | 1,608,304,514,000 | 1,608,304,514,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 34,134 | 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
-/
import algebra.ordered_monoid
set_option old_structure_cmd true
/-!
# Ordered groups
This file develops the basics... |
76a38c02dad4b93480959a8f40b90f9a253f408f | f3bade00efffc20399e2ac0a6b2e7726e8f9920e | /examples/lean/group.lean | b113cec92d3c47002bf9ff2f553a6be7aed29ec5 | [
"Apache-2.0"
] | permissive | leanparikshit/lean | 466542d4e183361d28404b3a91412f2df2ead7e2 | 01eda46b69a87c8fe0eb764328eb1f526a587997 | refs/heads/master | 1,610,970,145,234 | 1,400,030,607,000 | 1,400,030,607,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 6,388 | lean | import macros
definition associative {A : (Type U)} (f : A β A β A) := β x y z, f (f x y) z = f x (f y z)
definition is_identity {A : (Type U)} (f : A β A β A) (id : A) := β x, f x id = x
definition inverse_ex {A : (Type U)} (f : A β A β A) (id : A) := β x, β y, f x y = id
universe s β₯ 1
definition group :... |
c3899b0230963ae7177602eb2f51de6b4c6a595b | 74addaa0e41490cbaf2abd313a764c96df57b05d | /Mathlib/order/filter/extr_auto.lean | 98228f25dcfdc3d80f1c2f6023c8e4b55e6b0d51 | [] | no_license | AurelienSaue/Mathlib4_auto | f538cfd0980f65a6361eadea39e6fc639e9dae14 | 590df64109b08190abe22358fabc3eae000943f2 | refs/heads/master | 1,683,906,849,776 | 1,622,564,669,000 | 1,622,564,669,000 | 371,723,747 | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 34,002 | lean | /-
Copyright (c) 2019 Yury Kudryashov. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Yury Kudryashov
-/
import Mathlib.PrePort
import Mathlib.Lean3Lib.init.default
import Mathlib.order.filter.basic
import Mathlib.PostPort
universes u v w x u_1 u_2
namespace Mathlib... |
422652ac6d44621079b52e68cb3bfc23f658adc9 | d0f9af2b0ace5ce352570d61b09019c8ef4a3b96 | /hw6_quiz/propositional.lean | c326486e8011791129204ee8930a5d973a93fde3 | [] | no_license | jngo13/Discrete-Mathematics | 8671540ef2da7c75915d32332dd20c02f001474e | bf674a866e61f60e6e6d128df85fa73819091787 | refs/heads/master | 1,675,615,657,924 | 1,609,142,011,000 | 1,609,142,011,000 | 267,190,341 | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 4,339 | lean |
/-
Propositional logic.
Propositions.
P: Kevin Is at Home.
Q: It's warm outside.
If P and Q are propositions, then so are
- not P
- P and Q
- P or Q
- P implies Q
- etc.
-/
/-
Syntax -- defines set of well formed expressions.
We formalize syntax as an inductive data type.
Expressions are then just values of thi... |
9e46019f022226d847369a8f1721a1fe394ce702 | 74addaa0e41490cbaf2abd313a764c96df57b05d | /Mathlib/order/order_iso_nat_auto.lean | b8c3ac437f8e50ba64e3b143b400f48bedea92a7 | [] | 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,134 | lean | /-
Copyright (c) 2017 Mario Carneiro. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Author: Mario Carneiro
-/
import Mathlib.PrePort
import Mathlib.Lean3Lib.init.default
import Mathlib.data.nat.basic
import Mathlib.order.rel_iso
import Mathlib.logic.function.iterate
import Mat... |
2f7eab9be02b231ea3e7235f2c254036e9fb2c06 | 94e33a31faa76775069b071adea97e86e218a8ee | /src/analysis/convex/strict_convex_space.lean | 293808bc66e2e7ca022d94358ff244be4e71d58a | [
"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 | 14,918 | lean | /-
Copyright (c) 2022 YaΓ«l Dillies. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: YaΓ«l Dillies, Yury Kudryashov
-/
import analysis.convex.strict
import analysis.convex.topology
import analysis.normed_space.ordered
import analysis.normed_space.pointwise
/-!
# Strictly... |
4ddb2a99270afb637c9d687fda10375f89422510 | bcdb337a071a6642a282053e6c285336b9716772 | /Tensor/Has.lean | cc73c25849490c0ba91b8e7281155f8ddcdbf298 | [] | no_license | kovach/lean4-sparse-matrix-test | 87a8b3a0b7785976eccfaf69b0d289940549f446 | be9f6029883c88bf1f7588a0e6d3cde033368809 | refs/heads/master | 1,678,513,001,774 | 1,614,027,522,000 | 1,614,027,522,000 | 341,329,194 | 1 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 280 | lean | -- todo: should have used OfNat?
class HasZero (Ξ± : Type _) where zero : Ξ±
class HasOne (Ξ± : Type _) where one : Ξ±
instance : HasZero Nat where zero := 0
instance : HasOne Nat where one := 1
instance : HasZero Float where zero := 0.0
instance : HasOne Float where one := 1.0 |
eaa9e2baa633226f652f61152c02804b5c7c4715 | 4727251e0cd73359b15b664c3170e5d754078599 | /src/topology/sets/order.lean | a1a05edf4a398e5d824c667d06a7f693c2c7f47d | [
"Apache-2.0"
] | permissive | Vierkantor/mathlib | 0ea59ac32a3a43c93c44d70f441c4ee810ccceca | 83bc3b9ce9b13910b57bda6b56222495ebd31c2f | refs/heads/master | 1,658,323,012,449 | 1,652,256,003,000 | 1,652,256,003,000 | 209,296,341 | 0 | 1 | Apache-2.0 | 1,568,807,655,000 | 1,568,807,655,000 | null | UTF-8 | Lean | false | false | 2,362 | lean | /-
Copyright (c) 2022 YaΓ«l Dillies. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: YaΓ«l Dillies
-/
import order.upper_lower
import topology.sets.closeds
/-!
# Clopen upper sets
In this file we define the type of clopen upper sets.
-/
open set topological_space
vari... |
c4d9c58e1672988ba4962c8a192849522e15ff4e | 8cae430f0a71442d02dbb1cbb14073b31048e4b0 | /src/dynamics/omega_limit.lean | 1f1866f150ec76b1f2e2aebaf6e860b9b405faa2 | [
"Apache-2.0"
] | permissive | leanprover-community/mathlib | 56a2cadd17ac88caf4ece0a775932fa26327ba0e | 442a83d738cb208d3600056c489be16900ba701d | refs/heads/master | 1,693,584,102,358 | 1,693,471,902,000 | 1,693,471,902,000 | 97,922,418 | 1,595 | 352 | Apache-2.0 | 1,694,693,445,000 | 1,500,624,130,000 | Lean | UTF-8 | Lean | false | false | 16,756 | lean | /-
Copyright (c) 2020 Jean Lo. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Jean Lo
-/
import dynamics.flow
/-!
# Ο-limits
> THIS FILE IS SYNCHRONIZED WITH MATHLIB4.
> Any changes to this file require a corresponding PR to mathlib4.
For a function `Ο : Ο β Ξ± β Ξ²` ... |
69d85d3aefa783c9f4caaac70b53a9d05021dea8 | 85485c410781936e7dd6aba0ba77b8a82f76c1d6 | /src/mutation.lean | 92c318053436016c822ab3c95578e62245d632f0 | [] | no_license | yuma-mizuno/lean-cluster-algebra | 5b33657b3cf27c24cab292d4ac62d6e1e5e715b9 | 4a4fb128566305eda2b82aea068157cb43afdf18 | refs/heads/master | 1,689,542,026,900 | 1,630,963,668,000 | 1,630,964,456,000 | 392,828,775 | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 20,995 | lean | import linear_algebra.dual
import algebra.monoid_algebra
import ring_theory.localization
import linear_algebra.bilinear_form
import tactic.basic
import localization
/-!
# Mutations
This file defines mutations as isomorphisms between ambient fields.
A seed mutation is a combinatorial operation on a β€-module `N` given ... |
5937aa9261b770bf935ac0232a51d914d70de9c7 | 690889011852559ee5ac4dfea77092de8c832e7e | /src/data/zsqrtd/gaussian_int.lean | 1d2fa04df40c3528ae5ab012b4fe52f5c2754ed9 | [
"Apache-2.0"
] | permissive | williamdemeo/mathlib | f6df180148f8acc91de9ba5e558976ab40a872c7 | 1fa03c29f9f273203bbffb79d10d31f696b3d317 | refs/heads/master | 1,584,785,260,929 | 1,572,195,914,000 | 1,572,195,913,000 | 138,435,193 | 0 | 0 | Apache-2.0 | 1,529,789,739,000 | 1,529,789,739,000 | null | UTF-8 | Lean | false | false | 7,234 | lean | /-
Copyright (c) 2019 Chris Hughes. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Author: Chris Hughes
The gaussian integers β€[i].
-/
import data.zsqrtd.basic data.complex.basic algebra.euclidean_domain
open zsqrtd complex
@[reducible] def gaussian_int : Type := zsqrtd (-1)... |
9f25cb39c810af72b769c0d70719e863a3b47b20 | c777c32c8e484e195053731103c5e52af26a25d1 | /src/group_theory/exponent.lean | f77a742a263136b727a6fd4673c9b035dfbf2ebe | [
"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 | 12,676 | lean | /-
Copyright (c) 2021 Julian Kuelshammer. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Julian Kuelshammer
-/
import data.zmod.quotient
import group_theory.noncomm_pi_coprod
import group_theory.order_of_element
import algebra.gcd_monoid.finset
import data.nat.factoriz... |
a94ab794b678a2af177d725f175da0ec78204290 | b9a81ebb9de684db509231c4469a7d2c88915808 | /src/super/subsumption.lean | d035b72414850cb6f1b0b6ceed7e59d9442a6d69 | [] | no_license | leanprover/super | 3dd81ce8d9ac3cba20bce55e84833fadb2f5716e | 47b107b4cec8f3b41d72daba9cbda2f9d54025de | refs/heads/master | 1,678,482,996,979 | 1,676,526,367,000 | 1,676,526,367,000 | 92,215,900 | 12 | 6 | null | 1,513,327,539,000 | 1,495,570,640,000 | Lean | UTF-8 | Lean | false | false | 3,432 | lean | /-
Copyright (c) 2017 Gabriel Ebner. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Gabriel Ebner
-/
import .clause .prover_state
open tactic monad native
namespace super
private meta def try_subsume_core : list clause.literal β list clause.literal β tactic unit
| []... |
85297aaa96ae2cc2cdcccbb3584a1d3bd9e6e90c | 74addaa0e41490cbaf2abd313a764c96df57b05d | /Mathlib/order/galois_connection_auto.lean | 848a4d2fb6545409ff1f52ca1db5160da282cb15 | [] | no_license | AurelienSaue/Mathlib4_auto | f538cfd0980f65a6361eadea39e6fc639e9dae14 | 590df64109b08190abe22358fabc3eae000943f2 | refs/heads/master | 1,683,906,849,776 | 1,622,564,669,000 | 1,622,564,669,000 | 371,723,747 | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 29,257 | 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 Mathlib.PrePort
import Mathlib.Lean3Lib.init.default
import Mathlib.order.complete_lattice
import Mathlib.order.rel_iso
import Mathlib.PostPort
universes u v x... |
8b6e39d90f19e506d0b6cfe286e784a2f3dd2dc9 | 6432ea7a083ff6ba21ea17af9ee47b9c371760f7 | /src/Lean/Util/Trace.lean | 17530a4d92d86f3723180b3e5abe9f83e5fb9a67 | [
"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 | 10,590 | lean | /-
Copyright (c) 2018 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Sebastian Ullrich, Leonardo de Moura
-/
import Lean.Exception
/-!
# Trace messages
Trace messages explain to the user what problem Lean solved and what steps it took.
Think of... |
c789eb90250eef4b85da4f9cad71d189d2e2be09 | 3dc4623269159d02a444fe898d33e8c7e7e9461b | /.github/workflows/geo/src/power.lean | 0e5996fc56d50ee2cd92db11dec054b81cfcbab6 | [] | no_license | Or7ando/lean | cc003e6c41048eae7c34aa6bada51c9e9add9e66 | d41169cf4e416a0d42092fb6bdc14131cee9dd15 | refs/heads/master | 1,650,600,589,722 | 1,587,262,906,000 | 1,587,262,906,000 | 255,387,160 | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 36,494 | lean | /-
Copyright (c) 2020 Bhavik Mehta. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Bhavik Mehta
-/
import category_theory.limits.shapes
import category_theory.limits.types
import pullbacks
import to_mathlib
import sub
import subobject_classifier
import binary_products... |
f4f964543a3e7a86e86683dea67ca41900aff38c | d406927ab5617694ec9ea7001f101b7c9e3d9702 | /src/analysis/complex/schwarz.lean | 39c31bbd8930272288f7071647cf20d570fb7b7a | [
"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 | 10,042 | lean | /-
Copyright (c) 2022 Yury G. Kudryashov. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Yury G. Kudryashov
-/
import analysis.complex.abs_max
import analysis.complex.removable_singularity
/-!
# Schwarz lemma
In this file we prove several versions of the Schwarz lemm... |
1b67e05c8bdde55e4eba78f6ba8d32506c5a0639 | 57aec6ee746bc7e3a3dd5e767e53bd95beb82f6d | /stage0/src/Lean/Elab/Inductive.lean | e35c6fc570ca4388c591ef5fc3871475a60c5743 | [
"Apache-2.0"
] | permissive | collares/lean4 | 861a9269c4592bce49b71059e232ff0bfe4594cc | 52a4f535d853a2c7c7eea5fee8a4fa04c682c1ee | refs/heads/master | 1,691,419,031,324 | 1,618,678,138,000 | 1,618,678,138,000 | 358,989,750 | 0 | 0 | Apache-2.0 | 1,618,696,333,000 | 1,618,696,333,000 | null | UTF-8 | Lean | false | false | 24,701 | lean | /-
Copyright (c) 2020 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Leonardo de Moura
-/
import Lean.Util.ReplaceLevel
import Lean.Util.ReplaceExpr
import Lean.Util.CollectLevelParams
import Lean.Util.Constructions
import Lean.Meta.CollectFVars
... |
f6e743c5446f24c8905ab545b95895c3ba5acb3c | 6432ea7a083ff6ba21ea17af9ee47b9c371760f7 | /tests/lean/run/ptrAddr.lean | 0b963244799c16e9369c75c5f302b13837a33ed1 | [
"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 | 465 | lean |
axiom TrustMe {p : Prop} : p
def x := (1, 2)
def y := x
@[noinline] def mk (v : Nat) := (v, v+1)
#eval withPtrAddr x (fun a => dbgTrace (">> " ++ toString a) $ fun _ => 0) TrustMe
#eval withPtrEq x y (fun _ => dbgTrace (">> " ++ toString x ++ " == " ++ toString y) $ fun _ => x == y) TrustMe -- should not print mess... |
0afad5c38f6a1c66030fbce2113f79bd266ec9ea | 64874bd1010548c7f5a6e3e8902efa63baaff785 | /tests/lean/run/eq15.lean | 10671d8b2ea3a09821457a200a6d28757dd50142 | [
"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 | 452 | lean | import data.list
open list
set_option pp.implicit true
definition append : Ξ {A : Type}, list A β list A β list A,
append nil l := l,
append (h :: t) l := h :: (append t l)
theorem append_nil {A : Type} (l : list A) : append nil l = l :=
rfl
theorem append_cons {A : Type} (h : A) (t l : list A) : append (h :: ... |
8053ab9b61bb65d281c41a847c1a8cee06dea3e6 | 2a2864136cf8f2871e86f5fd14e624e3daa8fd24 | /Monads/Applicative.lean | 4dc476eaf48fb4178d8c29fa88310384315b1dae | [
"MIT"
] | permissive | hargoniX/lean-monads | d054ac71a351b7c86f318a477977cc166117b8ec | 2e87ca7ddf394641ea1b16bcbd8c384026d68e2f | refs/heads/main | 1,693,530,528,286 | 1,633,100,386,000 | 1,633,100,386,000 | 412,509,769 | 1 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 4,757 | lean | import Monads.Functor
namespace Monads
/- Applicative functors allow us to apply functions that are already
wrapped withing the functor to other values wrapped withing the functor.
This allows chaining of methods like so: f <$> g <*> h <*> x. -/
class Applicative (f : Type u β Type v) extends Functor f w... |
43d03a918cd36dfb66f98578d183b4b39393ec91 | cf39355caa609c0f33405126beee2739aa3cb77e | /tests/lean/pp_struct.lean | 14ea0caae3ade40a0e68c703a6b1e7abaee06fb6 | [
"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,250 | lean | structure foo :=
(x : nat) (y : nat) (z : bool)
#check let s := {foo . x := let v1 := 10 + 10 + 20 + 30 + 40 + 10 + 20 + 30 + 40 + 50 + 10 + 10, v2 := 10 + 10 + 10 + 10 + 10 + 10 + 10 + 10 + 10 + 10 + 20, v3 := 10 + 10 + 10 + 10 + 10 + 10 + 10 + 10 + 10 + 10 + 20, v4 := 10 + 10 + 10 + 10 + 10 + 10 + 10 + 10 + 10 + 10 ... |
5d7483956fba331dc0ee8dc2c3fea0b8380ae58b | 94e33a31faa76775069b071adea97e86e218a8ee | /src/analysis/convex/cone.lean | 795a445305b492184f7f039c88474dab267c9048 | [
"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 | 25,236 | lean | /-
Copyright (c) 2020 Yury Kudryashov All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Yury Kudryashov, FrΓ©dΓ©ric Dupuis
-/
import analysis.convex.hull
import analysis.inner_product_space.basic
/-!
# Convex cones
In a `π`-module `E`, we define a convex cone as a set `s... |
8bde818b9c7d142c3f8432cac9f87b0b70ce07c7 | 4efff1f47634ff19e2f786deadd394270a59ecd2 | /src/linear_algebra/basic.lean | 297b86398c6814f47cccde92640018204b3996ed | [
"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 | 101,838 | lean | /-
Copyright (c) 2017 Johannes HΓΆlzl. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Johannes HΓΆlzl, Mario Carneiro, Kevin Buzzard, Yury Kudryashov
-/
import algebra.big_operators.pi
import algebra.module.pi
import algebra.module.prod
import algebra.module.submodule
im... |
de3e3d30e720732c086447b6de66dc0c63efd558 | 947b78d97130d56365ae2ec264df196ce769371a | /tests/lean/run/floatarray.lean | 9a648a950a87b65b79962d4d3aa3dae624a80dbd | [
"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 | 272 | lean | new_frontend
def tst : IO Unit :=
do
let bs := [(1 : Float), 2, 3].toFloatArray;
IO.println bs;
let bs := bs.push (4 : Float);
let bs := bs.set! 1 (20 / 3);
IO.println bs;
let bsβ := bs.set! 2 30;
IO.println bsβ;
IO.println bs;
IO.println bs.size;
pure ()
#eval tst
|
0bd7333428a95688435c819b129923169fa3bfe8 | 4d3f29a7b2eff44af8fd0d3176232e039acb9ee3 | /Mathlib/Mathlib/Data/Int/Basic.lean | 7893f8172909920f25306480a458d01cc1efa237 | [] | no_license | marijnheule/lamr | 5fc5d69d326ff92e321242cfd7f72e78d7f99d7e | 28cc4114c7361059bb54f407fa312bf38b48728b | refs/heads/main | 1,689,338,013,620 | 1,630,359,632,000 | 1,630,359,632,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 18,259 | lean | /-
Ported by Deniz Aydin from the lean3 prelude's data/int/basic.lean. Should be in a "prelude"
https://github.com/leanprover-community/lean/blob/master/library/init/data/int/basic.lean
Original file license:
Copyright (c) 2016 Jeremy Avigad. All rights reserved.
Released under Apache 2.0 license as described in t... |
2d07590216e887d1b8f0478a80e66d101988f6e8 | a7602958ab456501ff85db8cf5553f7bcab201d7 | /Notes/Logic_and_Proof/Chapter9/9.12.lean | cdc7ee16aaf1bfce212abd5a67d75106027c1811 | [] | no_license | enlauren/math-logic | 081e2e737c8afb28dbb337968df95ead47321ba0 | 086b6935543d1841f1db92d0e49add1124054c37 | refs/heads/master | 1,594,506,621,950 | 1,558,634,976,000 | 1,558,634,976,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 600 | lean | -- 9.1 ...continued
-- Actually, some of the terms and formulas from the last program are built-in
-- Lean under the `init.data.nat` library(?).
import init.data.nat
open nat
-- Now we have basic infix operations available to us.
constant square: β -> β
constant add: β -> β -> β
constant even: β -> Prop
constant odd... |
7c06c8448e72c9c17ecf2d619fb264d91608bd67 | 7cef822f3b952965621309e88eadf618da0c8ae9 | /src/topology/sheaves/presheaf_of_functions.lean | 68023f648e0b943de2e49d767381217cb4a6c2d8 | [
"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 | 3,671 | 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.sheaves.presheaf
import topology.category.TopCommRing
import category_theory.yoneda
import ring_theory.subring
import topology.algebra.continuous_func... |
5f94f517c0baa9aab7b3a1114e3f328d227aaa8b | fa02ed5a3c9c0adee3c26887a16855e7841c668b | /test/slim_check.lean | d714a1ca82b20ddc5b8e52be37cb8c2734cdbd05 | [
"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 | 6,476 | lean | import tactic.slim_check
import .mk_slim_check_test
example : true :=
begin
have : β i j : β, i < j β j < i,
success_if_fail_with_msg
{ slim_check { random_seed := some 257 } }
"
===================
Found problems!
i := 0
j := 1
guard: 0 < 1 (by construction)
issue: 1 < 0 does not hold
(0 shrinks)
-----------... |
06c813c1e16da1ccd78696a96e8893ae2867bff6 | 74addaa0e41490cbaf2abd313a764c96df57b05d | /Mathlib/data/pnat/prime.lean | 9cd88e8eb748d0c8361b4f971e9e3e510d4eba84 | [] | 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,953 | lean | /-
Copyright (c) 2017 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Author: Mario Carneiro, Neil Strickland
-/
import Mathlib.PrePort
import Mathlib.Lean3Lib.init.default
import Mathlib.data.nat.prime
import Mathlib.data.pnat.basic
import Mathlib.PostPor... |
5f9e8307ac1423c8f7bc6a0a49ba7a0fc851aa74 | cf39355caa609c0f33405126beee2739aa3cb77e | /tests/lean/run/doc_string7b.lean | 88ad5e324d976cc1067d092cf8ab28527ca9c335 | [
"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 | 232 | lean | import .doc_string7a
open tactic
#eval do
ds β olean_doc_strings,
let ds := (do
β¨some fn, dβ© β ds | [],
guard $ fn.backn 17 = "doc_string7a.lean",
d),
trace ds,
guard $ ds = [(β¨1, 0β©, "a"), (β¨2,0β©, "b")] |
282531805aa852665ae83aded5d3accbb75df878 | 93c4ed09750233a3b114256e099d6a03939794b8 | /chapter2.lean | 8d87389785c3ceb1cc8cf54244a1bed02d7d86b0 | [] | no_license | OwenGraves/TaoAnalysis | 1177c5772f3736b007f458b8817f6a25b13b5e77 | 695b149b5decdb6f8e46c883ea112f0a12082548 | refs/heads/master | 1,644,242,117,512 | 1,564,441,707,000 | 1,564,441,707,000 | 98,614,833 | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 20,417 | lean | -- Tao's Analysis I Chapter 2 Results
-- The aim of this project is to adhere as strictly as reasonable
-- to the textbook, sometimes even at the cost of clarity.
-- However, as a result, this project comes close to serving
-- as a fully formalized solutions manual for the textbook.
namespace chapter2
open nat
o... |
8db3aebd17a9b0d67562ca50a2da51edfdcb2dbb | 7da5ceac20aaab989eeb795a4be9639982e7b35a | /src/category_theory/limits2.lean | 1422e616602371960d906480cbf8abb8ff38d982 | [
"MIT"
] | permissive | formalabstracts/formalabstracts | 46c2f1b3a172e62ca6ffeb46fbbdf1705718af49 | b0173da1af45421239d44492eeecd54bf65ee0f6 | refs/heads/master | 1,606,896,370,374 | 1,572,988,776,000 | 1,572,988,776,000 | 96,763,004 | 165 | 28 | null | 1,555,709,319,000 | 1,499,680,948,000 | Lean | UTF-8 | Lean | false | false | 5,636 | lean | import .basic category_theory.limits.limits
universes u uβ uβ v vβ vβ
namespace category_theory
open function
variables {C : Sort uβ} [π : category.{vβ} C]
include π
lemma injective_hom_op (X Y : C) : injective (@has_hom.hom.op _ _ X Y) :=
Ξ» f f' hf, by rw [β@has_hom.hom.unop_op _ _ _ _ f, β@has_hom.hom... |
1c167340514a25f37eb12f43c7421ab45d5a195e | bb31430994044506fa42fd667e2d556327e18dfe | /src/data/int/order/basic.lean | 94841ad2c129768e615e1c44824a8345dbb4ef84 | [
"Apache-2.0"
] | permissive | sgouezel/mathlib | 0cb4e5335a2ba189fa7af96d83a377f83270e503 | 00638177efd1b2534fc5269363ebf42a7871df9a | refs/heads/master | 1,674,527,483,042 | 1,673,665,568,000 | 1,673,665,568,000 | 119,598,202 | 0 | 0 | null | 1,517,348,647,000 | 1,517,348,646,000 | null | UTF-8 | Lean | false | false | 25,500 | lean | /-
Copyright (c) 2016 Jeremy Avigad. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Jeremy Avigad
-/
import data.int.basic
import data.int.cast.basic
import algebra.ring.divisibility
import algebra.order.group.abs
import algebra.order.ring.char_zero
import tactic.asser... |
0c4ac0ba63d9dd23efd3cfcc3d7361b5545fae83 | 55c7fc2bf55d496ace18cd6f3376e12bb14c8cc5 | /src/data/complex/module.lean | 06be9e28e30ec56e5e86b496bec9e878a939348f | [
"Apache-2.0"
] | permissive | dupuisf/mathlib | 62de4ec6544bf3b79086afd27b6529acfaf2c1bb | 8582b06b0a5d06c33ee07d0bdf7c646cae22cf36 | refs/heads/master | 1,669,494,854,016 | 1,595,692,409,000 | 1,595,692,409,000 | 272,046,630 | 0 | 0 | Apache-2.0 | 1,592,066,143,000 | 1,592,066,142,000 | null | UTF-8 | Lean | false | false | 843 | lean | /-
Copyright (c) 2020 Alexander Bentkamp, SΓ©bastien GouΓ«zel. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Alexander Bentkamp, SΓ©bastien GouΓ«zel
-/
import data.complex.basic
import ring_theory.algebra
/-!
This file contains two instance, the fact the β is an β algebra... |
451ae1abc6441018eade17337db96bc8370edde0 | 491068d2ad28831e7dade8d6dff871c3e49d9431 | /library/init/nat.lean | 584d251ade4d6dc89d9b485da615e39a27582f9a | [
"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 | 8,764 | lean | /-
Copyright (c) 2014 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Floris van Doorn, Leonardo de Moura
-/
prelude
import init.wf init.tactic init.num
open eq.ops decidable or
notation `β` := nat
namespace nat
/- basic definitions on natura... |
77b18975a4220bb60558a458b49939da8abca4a8 | 5a5e1bb8063d7934afac91f30aa17c715821040b | /lean3SOS/src/sos.lean | 47e6dddad8fbe684c7e8f3aef6316aede868bf6f | [] | no_license | ramonfmir/leanSOS | 1883392d73710db5c6e291a2abd03a6c5b44a42b | 14b50713dc887f6d408b7b2bce1f8af5bb619958 | refs/heads/main | 1,683,348,826,105 | 1,622,056,982,000 | 1,622,056,982,000 | 341,232,766 | 1 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 4,348 | lean | /-
SOS definition and the SOS tactic.
-/
import system.io
import tactic.ring
import data.real.basic
import data.mv_polynomial.basic
import util.parser lib.poly float.basic
open mv_polynomial poly
open tactic
open lean.parser interactive interactive.types (texpr)
meta def execute (input : string) : tactic string ... |
39746f5647b5d405f8e0b2e51f48fef920f7ea42 | ad0c7d243dc1bd563419e2767ed42fb323d7beea | /linear_algebra/tensor_product.lean | 92a1200b937e248e0f14d5cdccb31c41ede75c22 | [
"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 | 13,263 | lean | /-
Copyright (c) 2018 Kenny Lau. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Kenny Lau
Tensor product of modules over commutative rings.
-/
import group_theory.free_abelian_group
import linear_algebra.linear_map_module
variables {R : Type*} [comm_rin... |
0c9227c4718878ac65ac9845bd4b372133eb79c2 | b147e1312077cdcfea8e6756207b3fa538982e12 | /tactic/norm_num.lean | 4badb342edfb3d7715d4ae85bbf997aa33ed9651 | [
"Apache-2.0"
] | permissive | SzJS/mathlib | 07836ee708ca27cd18347e1e11ce7dd5afb3e926 | 23a5591fca0d43ee5d49d89f6f0ee07a24a6ca29 | refs/heads/master | 1,584,980,332,064 | 1,532,063,841,000 | 1,532,063,841,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 12,216 | 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
Evaluating arithmetic expressions including *, +, -, ^, β€
-/
import algebra.group_power data.rat tactic.interactive
universes u v w
open tactic
namespace ex... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.