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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
49e49ad0a5f75d4c72b75f18abc9bb96ce27550e | 8d65764a9e5f0923a67fc435eb1a5a1d02fd80e3 | /src/topology/instances/real.lean | 97e01a699d12fa0655a385ddf1162a8db32fa672 | [
"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 | 15,678 | lean | /-
Copyright (c) 2017 Johannes Hölzl. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Johannes Hölzl, Mario Carneiro
-/
import topology.metric_space.basic
import topology.algebra.uniform_group
import topology.algebra.ring
import ring_theory.subring
import group_theory.a... |
1bdcafa8e3ae2e540eff801f8e4d78bb3cb837e2 | d406927ab5617694ec9ea7001f101b7c9e3d9702 | /src/data/real/basic.lean | e6365462ab87173fa2035599a7640030a1848e11 | [
"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 | 27,356 | lean | /-
Copyright (c) 2018 Mario Carneiro. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Mario Carneiro, Floris van Doorn
-/
import algebra.bounds
import algebra.order.archimedean
import algebra.star.basic
import data.real.cau_seq_completion
/-!
# Real numbers from Cauchy... |
9db9268771b806f8c46a2206d6c835b734ea98de | c777c32c8e484e195053731103c5e52af26a25d1 | /src/combinatorics/simple_graph/ends/defs.lean | 3f5c634f5f3d1de29ca2ecbb7799d7639b0ccb71 | [
"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 | 9,505 | lean | /-
Copyright (c) 2022 Anand Rao, Rémi Bottinelli. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Anand Rao, Rémi Bottinelli
-/
import category_theory.cofiltered_system
import combinatorics.simple_graph.connectivity
import data.set_like.basic
/-!
# Ends
This file cont... |
600594bb2785e76f63661f42338bb44cf9acc12d | 1abd1ed12aa68b375cdef28959f39531c6e95b84 | /src/data/equiv/denumerable.lean | b5abfd63f138e5b759aeee4a447554dbffea9714 | [
"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 | 10,541 | lean | /-
Copyright (c) 2018 Mario Carneiro. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Mario Carneiro
-/
import data.equiv.encodable.basic
import data.sigma
import data.fintype.basic
import data.list.min_max
/-!
# Denumerable types
This file defines denumerable (counta... |
82ef11775c1bdb5c1c1acfc844d83765c32fb539 | 1b8f093752ba748c5ca0083afef2959aaa7dace5 | /src/category_theory/representable.lean | 08189a39dd9725c6e9203cb2c703a2505b2f35b8 | [] | no_license | khoek/lean-category-theory | 7ec4cda9cc64a5a4ffeb84712ac7d020dbbba386 | 63dcb598e9270a3e8b56d1769eb4f825a177cd95 | refs/heads/master | 1,585,251,725,759 | 1,539,344,445,000 | 1,539,344,445,000 | 145,281,070 | 0 | 0 | null | 1,534,662,376,000 | 1,534,662,376,000 | null | UTF-8 | Lean | false | false | 259 | lean | import category_theory.coyoneda
namespace category_theory
universes u₁ v₁
variables {C : Type u₁} [𝒞 : category.{u₁ v₁} C]
include 𝒞
class representable (F : C ⥤ (Type v₁)) :=
(c : C)
(Φ : F ≅ ((coyoneda C) c))
end category_theory |
6419f7f2b6d647f68afa85ef990c880bcab19aa2 | a45212b1526d532e6e83c44ddca6a05795113ddc | /src/set_theory/zfc.lean | 27e2dc4ada2be539d150e7d418808c4602ab73e6 | [
"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 | 30,028 | lean | /-
Copyright (c) 2018 Mario Carneiro. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Author: Mario Carneiro
A model of ZFC in Lean.
-/
import data.set.basic
universes u v
/-- The type of `n`-ary functions `α → α → ... → α`. -/
def arity (α : Type u) : nat → Type u
| 0 :=... |
d5cdbcbb5c8f97db4ebeaf4adc5e4fc3d8188193 | 80cc5bf14c8ea85ff340d1d747a127dcadeb966f | /src/analysis/convex/specific_functions.lean | b82bfb81e4374c10d9b17005bd6ebcf2ca272893 | [
"Apache-2.0"
] | permissive | lacker/mathlib | f2439c743c4f8eb413ec589430c82d0f73b2d539 | ddf7563ac69d42cfa4a1bfe41db1fed521bd795f | refs/heads/master | 1,671,948,326,773 | 1,601,479,268,000 | 1,601,479,268,000 | 298,686,743 | 0 | 0 | Apache-2.0 | 1,601,070,794,000 | 1,601,070,794,000 | null | UTF-8 | Lean | false | false | 5,088 | lean | /-
Copyright (c) 2020 Yury Kudryashov. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Yury Kudryashov, Sébastien Gouëzel
-/
import analysis.calculus.mean_value
import data.nat.parity
import analysis.special_functions.pow
/-!
# Collection of convex functions
In this f... |
651ab06f386d0d62b8ab086f091146a48aa34678 | 74addaa0e41490cbaf2abd313a764c96df57b05d | /Mathlib/order/rel_classes_auto.lean | 8d5bd4ff7637b225b6a3aa012a956b6d9da4c06a | [] | 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 | 14,903 | lean | /-
Copyright (c) 2020 Jeremy Avigad. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Jeremy Avigad, Mario Carneiro, Yury G. Kudryashov
-/
import Mathlib.PrePort
import Mathlib.Lean3Lib.init.default
import Mathlib.order.basic
import Mathlib.PostPort
universes u l u_1 v ... |
0ef04377eb2f19b047711cf70e39544717750089 | 05b503addd423dd68145d68b8cde5cd595d74365 | /src/field_theory/finite.lean | 2f87e0b218b33532afc74b2550c76ecbd5d962e0 | [
"Apache-2.0"
] | permissive | aestriplex/mathlib | 77513ff2b176d74a3bec114f33b519069788811d | e2fa8b2b1b732d7c25119229e3cdfba8370cb00f | refs/heads/master | 1,621,969,960,692 | 1,586,279,279,000 | 1,586,279,279,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 7,278 | 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 group_theory.order_of_element data.polynomial data.equiv.ring data.zmod.basic
import algebra.char_p
universes u v
variables {α : Type u} {β : Type v}
open functi... |
d2ace8fdede390bb2dc678a74a4f895833552867 | f57749ca63d6416f807b770f67559503fdb21001 | /library/init/tactic.lean | bd27e819306396bce33efd10f453f2a00718eaed | [
"Apache-2.0"
] | permissive | aliassaf/lean | bd54e85bed07b1ff6f01396551867b2677cbc6ac | f9b069b6a50756588b309b3d716c447004203152 | refs/heads/master | 1,610,982,152,948 | 1,438,916,029,000 | 1,438,916,029,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 6,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
This is just a trick to embed the 'tactic language' as a Lean
expression. We should view 'tactic' as automation that when execute
produces a term. tactic.buil... |
67339bbd6bf5dd4c212ecb43fb412372847ada84 | 63abd62053d479eae5abf4951554e1064a4c45b4 | /src/data/rat/cast.lean | 5a9135386e96b0bc92cfb9b352a35fed223c0e35 | [
"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 | 11,923 | 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.order
import data.int.char_zero
/-!
# Casts for Rational Numbers
## Summary
We define the canonical injection from ℚ into an arbitr... |
d0af11862b4e1d67105d432943a3dc07acd1f10d | f3849be5d845a1cb97680f0bbbe03b85518312f0 | /leanpkg/leanpkg/resolve.lean | f21c2d72da720669cf270462bee1e1435e6f571a | [
"Apache-2.0"
] | permissive | bjoeris/lean | 0ed95125d762b17bfcb54dad1f9721f953f92eeb | 4e496b78d5e73545fa4f9a807155113d8e6b0561 | refs/heads/master | 1,611,251,218,281 | 1,495,337,658,000 | 1,495,337,658,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 3,582 | lean | /-
Copyright (c) 2017 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Author: Gabriel Ebner
-/
import leanpkg.manifest system.io data.hash_map leanpkg.proc
variable [io.interface]
namespace leanpkg
def assignment := hash_map string (λ _, string)
-- TODO(... |
12c1c93fef09d391831c83484fde854cc4fcf141 | e898bfefd5cb60a60220830c5eba68cab8d02c79 | /uexp/src/uexp/rules/pushSemiJoinPastJoinRuleLeft.lean | e2334b9cd0b0b9d32a16be9b4732d24a54f0fd0a | [
"BSD-2-Clause"
] | permissive | kkpapa/Cosette | 9ed09e2dc4c1ecdef815c30b5501f64a7383a2ce | fda8fdbbf0de6c1be9b4104b87bbb06cede46329 | refs/heads/master | 1,584,573,128,049 | 1,526,370,422,000 | 1,526,370,422,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 2,022 | lean | import ..sql
import ..tactics
import ..u_semiring
import ..extra_constants
import ..ucongr
import ..TDP ..canonize
set_option profiler true
open Expr
open Proj
open Pred
open SQL
open tree
notation `int` := datatypes.int
definition rule:
forall ( Γ scm_dept scm_emp: Schema) (rel_dept: relation scm_dept) (rel_... |
20d3d382c0afbc77c1a790139c758f6a232e4da4 | 97c8e5d8aca4afeebb5b335f26a492c53680efc8 | /ground_zero/cubical/cubes.lean | edb424794df8f4cbedbd87a1714573005f032b3e | [] | no_license | jfrancese/lean | cf32f0d8d5520b6f0e9d3987deb95841c553c53c | 06e7efaecce4093d97fb5ecc75479df2ef1dbbdb | refs/heads/master | 1,587,915,151,351 | 1,551,012,140,000 | 1,551,012,140,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 2,205 | lean | import ground_zero.types.product
open ground_zero.HITs ground_zero.types
open ground_zero.HITs.interval (i₀ i₁ seg)
/-
* n-cube.
* Path (1-cube).
* Square (2-cube).
-/
namespace ground_zero.cubical
universes u v w r
inductive binary (α : Sort u) : ℕ → Type u
| leaf {} : α → α → binary 0
| node {n : ℕ} : binary... |
eaf37b1874740cc72834368d5b6c315f2058e031 | 74addaa0e41490cbaf2abd313a764c96df57b05d | /Mathlib/number_theory/primes_congruent_one.lean | 1890cb5a3574c54ceae649ecfe211039a1e00841 | [] | 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,143 | lean | /-
Copyright (c) 2020 Riccardo Brasca. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Author: Riccardo Brasca
-/
import Mathlib.PrePort
import Mathlib.Lean3Lib.init.default
import Mathlib.ring_theory.polynomial.cyclotomic
import Mathlib.topology.algebra.polynomial
import Mathli... |
fa2724b66d5ef9712ffa80c914786b336b98843e | a4673261e60b025e2c8c825dfa4ab9108246c32e | /stage0/src/Lean/Elab/Tactic/Basic.lean | d1c0e8d0bd679d4731f0ca5ad7fbbb2e257e4caa | [
"Apache-2.0"
] | permissive | jcommelin/lean4 | c02dec0cc32c4bccab009285475f265f17d73228 | 2909313475588cc20ac0436e55548a4502050d0a | refs/heads/master | 1,674,129,550,893 | 1,606,415,348,000 | 1,606,415,348,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 16,794 | 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, Sebastian Ullrich
-/
import Lean.Util.CollectMVars
import Lean.Meta.Tactic.Assumption
import Lean.Meta.Tactic.Intro
import Lean.Meta.Tactic.Clear
import Lean.... |
da1e6ab82f2dfb2646e2d50a576209100a421c5c | 624f6f2ae8b3b1adc5f8f67a365c51d5126be45a | /stage0/src/Init/Lean/Meta/Tactic/FVarSubst.lean | 6e645dcba530bf8cdb0928e111ad2df0d0b5cbb7 | [
"Apache-2.0"
] | permissive | mhuisi/lean4 | 28d35a4febc2e251c7f05492e13f3b05d6f9b7af | dda44bc47f3e5d024508060dac2bcb59fd12e4c0 | refs/heads/master | 1,621,225,489,283 | 1,585,142,689,000 | 1,585,142,689,000 | 250,590,438 | 0 | 2 | Apache-2.0 | 1,602,443,220,000 | 1,585,327,814,000 | C | UTF-8 | Lean | false | false | 2,111 | lean | /-
Copyright (c) 2020 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Leonardo de Moura
-/
prelude
import Init.Lean.Expr
import Init.Lean.Util.ReplaceExpr
namespace Lean
namespace Meta
/-
Some tactics substitute hypotheses with new ones.
We t... |
4c102d4a3bf25d7916ef51a18df16cc3242b264b | 556aeb81a103e9e0ac4e1fe0ce1bc6e6161c3c5e | /src/starkware/cairo/common/cairo_secp/verification/verification/signature_recover_public_key_ec_negate_soundness.lean | 2ac5c930677a7b327a51091094e4181dcda7e345 | [] | permissive | starkware-libs/formal-proofs | d6b731604461bf99e6ba820e68acca62a21709e8 | f5fa4ba6a471357fd171175183203d0b437f6527 | refs/heads/master | 1,691,085,444,753 | 1,690,507,386,000 | 1,690,507,386,000 | 410,476,629 | 32 | 9 | Apache-2.0 | 1,690,506,773,000 | 1,632,639,790,000 | Lean | UTF-8 | Lean | false | false | 7,262 | lean | /-
File: signature_recover_public_key_ec_negate_soundness.lean
Autogenerated file.
-/
import starkware.cairo.lean.semantics.soundness.hoare
import .signature_recover_public_key_code
import ..signature_recover_public_key_spec
import .signature_recover_public_key_verify_zero_soundness
import .signature_recover_public_ke... |
eca00d436cde2fbd0bd5929cca0d5447b3647cdd | 4727251e0cd73359b15b664c3170e5d754078599 | /src/ring_theory/int/basic.lean | fbd38916278074d5d29bfbf206796303f510139c | [
"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 | 13,664 | lean | /-
Copyright (c) 2018 Johannes Hölzl. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Johannes Hölzl, Jens Wagemaker, Aaron Anderson
-/
import ring_theory.coprime.basic
import ring_theory.principal_ideal_domain
/-!
# Divisibility over ℕ and ℤ
This file collects result... |
8bc97aa8d1742ac64e2980621113ed70ffdbf75e | 7afc29faca4febb6e5005c20aa4aa5c3df5cf35c | /src/branch.lean | c95f306c58d2a6abeba6c8bc5e368888355ceef3 | [
"MIT"
] | permissive | Piwry/Proof-of-Surreal | ad2883027e275050b43a578c5513ae3fe350515b | 6b92baf2382ac23dd0d700f5c958aa910ad4b754 | refs/heads/master | 1,670,521,185,736 | 1,599,657,591,000 | 1,599,657,591,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 5,784 | lean | import data.list algebra.ring tactic.omega defs single height tactics
lemma branch_son : ∀ t s : bintree, ⟨ t ⟩ → is_son s t → ⟨ s ⟩ :=
begin
intros t,
induction t,
begin intros s H1 H2, cases H2 end, -- single case
repeat { -- left and right cases
begin intros s H1 H2, cases H1, cases H2, assumption end... |
7bc5b3dc329dc6885afff9b59e38e6f24780969b | b7f22e51856f4989b970961f794f1c435f9b8f78 | /tests/lean/run/class6.lean | aae4433695fa90ba03d094ad3f073d7ffdede019 | [
"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 | 327 | lean | import logic data.prod
open prod
inductive t1 : Type :=
mk1 : t1
inductive t2 : Type :=
mk2 : t2
theorem inhabited_t1 : inhabited t1
:= inhabited.mk t1.mk1
theorem inhabited_t2 : inhabited t2
:= inhabited.mk t2.mk2
attribute inhabited_t1 [instance]
attribute inhabited_t2 [instance]
theorem T : inhabited (t1 × t2)... |
bd540c2bf24524877222be7bdd37273d6a7b40b6 | 8cae430f0a71442d02dbb1cbb14073b31048e4b0 | /src/topology/instances/complex.lean | 91ac9ecd0bd554f279ecd28ac4bd7944015e9654 | [
"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 | 4,890 | lean | /-
Copyright (c) 2022 Xavier Roblot. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Xavier Roblot
-/
import analysis.complex.basic
import field_theory.intermediate_field
import topology.algebra.uniform_ring
/-!
# Some results about the topology of ℂ
> THIS FILE IS S... |
c8f05d64866ebecfbf9eb094d782ff59a0d9c175 | d406927ab5617694ec9ea7001f101b7c9e3d9702 | /src/combinatorics/additive/salem_spencer.lean | e7b8bfc1f88362d372f2bbc26aff3b6b6e0e578d | [
"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 | 18,045 | lean | /-
Copyright (c) 2021 Yaël Dillies, Bhavik Mehta. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Yaël Dillies, Bhavik Mehta
-/
import algebra.hom.freiman
import analysis.asymptotics.asymptotics
import analysis.convex.strict_convex_space
/-!
# Salem-Spencer sets and Ro... |
582137929a380caf43a645d05ab8d28d7ff853a0 | 74addaa0e41490cbaf2abd313a764c96df57b05d | /Mathlib/algebra/big_operators/pi_auto.lean | aab129b96bf611dec32bda8b5d906067cd819317 | [] | 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,875 | lean | /-
Copyright (c) 2018 Simon Hudon. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Simon Hudon, Patrick Massot
-/
import Mathlib.PrePort
import Mathlib.Lean3Lib.init.default
import Mathlib.algebra.ring.pi
import Mathlib.algebra.big_operators.basic
import Mathlib.data.fi... |
5db5f14d6e88db13c68f7fe90c52e63f472dee76 | 8cae430f0a71442d02dbb1cbb14073b31048e4b0 | /src/category_theory/monoidal/types/symmetric.lean | c8d88e799b7e7cf538eb271a2ab562acbd399454 | [
"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 | 997 | lean | /-
Copyright (c) 2018 Michael Jendrusch. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Michael Jendrusch, Scott Morrison
-/
import category_theory.monoidal.of_chosen_finite_products.symmetric
import category_theory.monoidal.types.basic
/-!
# The category of types is ... |
fd40b26c530a405af797de893ee29fa6c7b5f874 | 55c7fc2bf55d496ace18cd6f3376e12bb14c8cc5 | /src/ring_theory/polynomial/rational_root.lean | 981d6cea2356b68471e0afb1e291398fcc3d1650 | [
"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 | 9,377 | 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 ring_theory.polynomial.basic
import ring_theory.localization
/-!
# Rational root theorem and integral root theorem
This file contains the rational root theorem an... |
573f34a13d5088fa1744087d0ebdf4908847ac1c | 649957717d58c43b5d8d200da34bf374293fe739 | /src/topology/constructions.lean | fa1dfbcb167ab900453fc03e071f55f99de74bb0 | [
"Apache-2.0"
] | permissive | Vtec234/mathlib | b50c7b21edea438df7497e5ed6a45f61527f0370 | fb1848bbbfce46152f58e219dc0712f3289d2b20 | refs/heads/master | 1,592,463,095,113 | 1,562,737,749,000 | 1,562,737,749,000 | 196,202,858 | 0 | 0 | Apache-2.0 | 1,562,762,338,000 | 1,562,762,337,000 | null | UTF-8 | Lean | false | false | 49,652 | 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
Constructions of new topological spaces from old ones: product, sum, subtype, quotient, list, vector
-/
import topology.maps topology.su... |
a297b5861f61850bd2e0489ef136832b0102328a | d406927ab5617694ec9ea7001f101b7c9e3d9702 | /src/data/finset/sum.lean | 8bf824c2d95c46ee41328c6ca9d30519e840427c | [
"Apache-2.0"
] | permissive | alreadydone/mathlib | dc0be621c6c8208c581f5170a8216c5ba6721927 | c982179ec21091d3e102d8a5d9f5fe06c8fafb73 | refs/heads/master | 1,685,523,275,196 | 1,670,184,141,000 | 1,670,184,141,000 | 287,574,545 | 0 | 0 | Apache-2.0 | 1,670,290,714,000 | 1,597,421,623,000 | Lean | UTF-8 | Lean | false | false | 3,158 | lean | /-
Copyright (c) 2022 Yaël Dillies. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Yaël Dillies
-/
import data.multiset.sum
import data.finset.card
/-!
# Disjoint sum of finsets
This file defines the disjoint sum of two finsets as `finset (α ⊕ β)`. Beware not to conf... |
5caceb555c33f3d7d957558dbf0da084588509a0 | c777c32c8e484e195053731103c5e52af26a25d1 | /src/analysis/complex/real_deriv.lean | f3cf1837f66c25c506b171d0ccec1034680b0233 | [
"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 | 8,155 | lean | /-
Copyright (c) Sébastien Gouëzel. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Sébastien Gouëzel, Yourong Zang
-/
import analysis.calculus.cont_diff
import analysis.complex.conformal
import analysis.calculus.conformal.normed_space
/-! # Real differentiability of c... |
f78b0fed64f0ae02a3c19ca198483cb136e64fab | 0845ae2ca02071debcfd4ac24be871236c01784f | /tests/compiler/thunk.lean | 98d38f2e8e017e1d85055735ecce60142574ecc4 | [
"Apache-2.0"
] | permissive | GaloisInc/lean4 | 74c267eb0e900bfaa23df8de86039483ecbd60b7 | 228ddd5fdcd98dd4e9c009f425284e86917938aa | refs/heads/master | 1,643,131,356,301 | 1,562,715,572,000 | 1,562,715,572,000 | 192,390,898 | 0 | 0 | null | 1,560,792,750,000 | 1,560,792,749,000 | null | UTF-8 | Lean | false | false | 299 | lean | def compute (v : Nat) : Thunk Nat :=
⟨fun _ => let xs := List.replicate 100000 v in xs.foldl Nat.add 0⟩
@[noinline]
def test (t : Thunk Nat) (n : Nat) : Nat :=
n.repeat (fun r => t.get + r) 0
def main (xs : List String) : IO UInt32 :=
IO.println (toString (test (compute 1) 100000)) *>
pure 0
|
1d35eb99cf6e666879f0d8ae57daa3066a90d37a | 75db7e3219bba2fbf41bf5b905f34fcb3c6ca3f2 | /library/data/list/sort.lean | f5d9803b5e054d3d7b6d97465315a2b67aa1d64a | [
"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 | 8,177 | lean | /-
Copyright (c) 2015 Leonardo de Moura. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Leonardo de Moura
Naive sort for lists
-/
import data.list.comb data.list.set data.list.perm data.list.sorted logic.connectives algebra.order
namespace list
open decidable nat
va... |
1d93b0c6c2335253a6029dfc712a8f64572d1320 | 36c7a18fd72e5b57229bd8ba36493daf536a19ce | /tests/lean/simplifier12.lean | b2ccd19e0455657f535d8455821c7db8ad37e69b | [
"Apache-2.0"
] | permissive | YHVHvx/lean | 732bf0fb7a298cd7fe0f15d82f8e248c11db49e9 | 038369533e0136dd395dc252084d3c1853accbf2 | refs/heads/master | 1,610,701,080,210 | 1,449,128,595,000 | 1,449,128,595,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 336 | lean | import algebra.simplifier
open algebra simplifier.som
set_option simplify.max_steps 1000
universe l
constants (T : Type.{l}) (s : algebra.comm_ring T)
constants (x1 x2 x3 x4 : T) (f g : T → T)
attribute s [instance]
#simplify eq simplifier.som 0 x2 + (1 * g x1 + 0 + (f x3 * 3 * 1 * (x2 + 0 + g x1 * 7) * x2 * 1)) + 5 ... |
571ae050e02564e07892a185183b08cd10f4760d | 66a6486e19b71391cc438afee5f081a4257564ec | /algebra/arrow_group.hlean | 3b3a9ed3b736ffc0322242130017f1138e46c096 | [
"Apache-2.0"
] | permissive | spiceghello/Spectral | c8ccd1e32d4b6a9132ccee20fcba44b477cd0331 | 20023aa3de27c22ab9f9b4a177f5a1efdec2b19f | refs/heads/master | 1,611,263,374,078 | 1,523,349,717,000 | 1,523,349,717,000 | 92,312,239 | 0 | 0 | null | 1,495,642,470,000 | 1,495,642,470,000 | null | UTF-8 | Lean | false | false | 12,227 | hlean | /-
Copyright (c) 2016-2017 Floris van Doorn. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Floris van Doorn, Ulrik Buchholtz
Various groups of maps. Most importantly we define a group structure
on trunc 0 (A →* Ω B) and the dependent version trunc 0 (ppi _ _),
which ... |
3a3e48063952ee4fa9da9bcdd762c67be24d0db8 | 6dc0c8ce7a76229dd81e73ed4474f15f88a9e294 | /stage0/src/Lean/Class.lean | ee46210887df1dccd2ead8105a0c9e50c8509791 | [
"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 | 4,386 | lean | /-
Copyright (c) 2019 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Leonardo de Moura
-/
import Lean.Attributes
namespace Lean
structure ClassEntry where
name : Name
hasOutParam : Bool
namespace ClassEntry
def lt (a b : ClassEntry) : Boo... |
f4ce2e50ba648c969489e5ab8d6e5471da164047 | aa5a655c05e5359a70646b7154e7cac59f0b4132 | /stage0/src/Lean/Server/InfoUtils.lean | d01201fc63a0ea6f774941b0fda4d61de8141b76 | [
"Apache-2.0"
] | permissive | lambdaxymox/lean4 | ae943c960a42247e06eff25c35338268d07454cb | 278d47c77270664ef29715faab467feac8a0f446 | refs/heads/master | 1,677,891,867,340 | 1,612,500,005,000 | 1,612,500,005,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 2,661 | lean | /-
Copyright (c) 2021 Wojciech Nawrocki. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Wojciech Nawrocki
-/
import Lean.Elab.InfoTree
import Lean.Util.Sorry
namespace Lean.Elab
/-- Find the deepest node matching `p` in the first subtree which contains a matching no... |
438dac0236621b100e07d1d53c9033c0aa3ff8a1 | 6432ea7a083ff6ba21ea17af9ee47b9c371760f7 | /tests/lean/run/quotInd.lean | f620e29cd78910ea1c70d02f8e9b2ba280f0f6ff | [
"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 | 112 | lean | example (r : α → α → Prop) (q : Quot r) : False := by
induction q using Quot.ind with
| mk x => admit
|
8ae595091355748f5f7cf0a43f0bec416a3c4d73 | 4727251e0cd73359b15b664c3170e5d754078599 | /src/data/mv_polynomial/monad.lean | b681972fda45b20037151f4c6af05436848674be | [
"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 | 13,395 | 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 data.mv_polynomial.rename
/-!
# Monad operations on `mv_polynomial`
This file defines two monadic operations on `mv_polyn... |
34b4f765a3067f8587ed5ac868f055b55cf193dd | 618003631150032a5676f229d13a079ac875ff77 | /src/algebra/ordered_group.lean | e996a9f698e1dac15427dae7e4d8463303570394 | [
"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 | 55,721 | 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.group.units
import algebra.group.with_one
import algebra.group.type_tags
import order.bounded_lattice
... |
a8d4f7dc166bfe27be816e5fa099998ed5c0d619 | e4e5bde6f14c01a8a34267a9d7bb45e137735696 | /src/exercises/logic_and_proof/12.lean | 413664a1b0eeee3c0d00653d2c89e51300ccc386 | [] | no_license | jamesdabbs/proofs | fb5dab6f3c4f3f5f952fca033ec649888ae787c6 | 00baf355b08e7aec00de34208e1b2cb4a8d7b701 | refs/heads/master | 1,645,645,735,797 | 1,569,559,636,000 | 1,569,559,636,000 | 211,238,170 | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 2,340 | lean | /-
Exercises from https://leanprover.github.io/logic_and_proof
Chapter 12. Sets in Lean
-/
import data.set
-- 1
section
variable U : Type
variables A B C : set U
example : ∀ x, x ∈ A ∩ C → x ∈ A ∪ B :=
assume x,
assume : x ∈ A ∩ C,
have x ∈ A, from this.left,
show x ∈ A ∪ B, from or.inl this
exampl... |
46e0c541d08129a4afe1d8506ccf816276b691da | a45212b1526d532e6e83c44ddca6a05795113ddc | /src/category_theory/core.lean | c3b293bd5a00f4960f3dee82e477c3df89eb1c70 | [
"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 | 1,546 | lean | /-
Copyright (c) 2019 Scott Morrison All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Scott Morrison
The core of a category C is the groupoid whose morphisms are all the
isomorphisms of C.
-/
import category_theory.groupoid
import category_theory.whiskering
namespace ... |
06d0aded03d0be851264b9fd30493d8121ebf24f | a9d0fb7b0e4f802bd3857b803e6c5c23d87fef91 | /tests/lean/584b.lean | 53fab513138f3129fc97aaefb4068d728dcb3617 | [
"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 | 398 | lean | section
universe variable u variable (A : Type u)
section
variables (a b : A)
variable (H : a = b)
definition tst₁ := a
check @tst₁
variable {A}
definition tst₂ := a
check @tst₂ -- A is implicit
lemma symm₂ : b = a := eq.symm H
check @symm₂
end
variable (a : A)
de... |
a05fcc217c3299fb4bf8c0ea89fedd713118bfed | 4efff1f47634ff19e2f786deadd394270a59ecd2 | /src/deprecated/group.lean | b4ca9cca0fdfad87479f14096faf684433062445 | [
"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 | 13,045 | lean | /-
Copyright (c) 2019 Yury Kudryashov. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Author: Yury Kudryashov
-/
import algebra.group.type_tags
import algebra.group.units_hom
import algebra.ring.basic
/-!
# Unbundled monoid and group homomorphisms (deprecated)
This file defin... |
c98f108c5a9d4728ff2c961b81bc169e9e1566e4 | 95dcf8dea2baf2b4b0a60d438f27c35ae3dd3990 | /src/category_theory/limits/functor_category.lean | 3859b7cef9b2668731719f33e2ec17525f9d8991 | [
"Apache-2.0"
] | permissive | uniformity1/mathlib | 829341bad9dfa6d6be9adaacb8086a8a492e85a4 | dd0e9bd8f2e5ec267f68e72336f6973311909105 | refs/heads/master | 1,588,592,015,670 | 1,554,219,842,000 | 1,554,219,842,000 | 179,110,702 | 0 | 0 | Apache-2.0 | 1,554,220,076,000 | 1,554,220,076,000 | null | UTF-8 | Lean | false | false | 4,864 | lean | -- Copyright (c) 2018 Scott Morrison. All rights reserved.
-- Released under Apache 2.0 license as described in the file LICENSE.
-- Authors: Scott Morrison
import category_theory.products
import category_theory.limits.preserves
open category_theory category_theory.category
namespace category_theory.limits
universe... |
0c1454d72dd3d394db782037f2335d24e678e42c | 4727251e0cd73359b15b664c3170e5d754078599 | /src/set_theory/game/state.lean | c5520907f7692271a10568074e649ba868efa6be | [
"Apache-2.0"
] | permissive | Vierkantor/mathlib | 0ea59ac32a3a43c93c44d70f441c4ee810ccceca | 83bc3b9ce9b13910b57bda6b56222495ebd31c2f | refs/heads/master | 1,658,323,012,449 | 1,652,256,003,000 | 1,652,256,003,000 | 209,296,341 | 0 | 1 | Apache-2.0 | 1,568,807,655,000 | 1,568,807,655,000 | null | UTF-8 | Lean | false | false | 8,406 | 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.short
/-!
# Games described via "the state of the board".
We provide a simple mechanism for constructing combinatorial (pre-)games, by descri... |
64a4f378cacf5e5dc2aaf6f122a49e4710b0ec84 | 4efff1f47634ff19e2f786deadd394270a59ecd2 | /src/data/nat/basic.lean | ebda4d0276e98b734ff1bcb01580f79edbb3106a | [
"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 | 69,990 | lean | /-
Copyright (c) 2014 Floris van Doorn (c) 2016 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Floris van Doorn, Leonardo de Moura, Jeremy Avigad, Mario Carneiro
-/
import algebra.order_functions
import data.set.basic
/-!
# Basic operations on t... |
9a1e5b496c801c6e3d9dc4e2ff597f448c72be6a | 74addaa0e41490cbaf2abd313a764c96df57b05d | /Mathlib/data/padics/padic_integers_auto.lean | 3d70d5be2904f62673cb172ed8ea64aec66c1722 | [] | no_license | AurelienSaue/Mathlib4_auto | f538cfd0980f65a6361eadea39e6fc639e9dae14 | 590df64109b08190abe22358fabc3eae000943f2 | refs/heads/master | 1,683,906,849,776 | 1,622,564,669,000 | 1,622,564,669,000 | 371,723,747 | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 8,216 | 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, Mario Carneiro, Johan Commelin
-/
import Mathlib.PrePort
import Mathlib.Lean3Lib.init.default
import Mathlib.data.int.modeq
import Mathlib.data.zmod.basic
import Math... |
1916d2ae55dec902ff472670f47b078922c44267 | ee8cdbabf07f77e7be63a449b8483ce308d37218 | /lean/src/valid/mathd-algebra-182.lean | 9b085e0c44104955bca5ca4acd1daec979fc06e9 | [
"MIT",
"Apache-2.0"
] | permissive | zeta1999/miniF2F | 6d66c75d1c18152e224d07d5eed57624f731d4b7 | c1ba9629559c5273c92ec226894baa0c1ce27861 | refs/heads/main | 1,681,897,460,642 | 1,620,646,361,000 | 1,620,646,361,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 244 | lean | /-
Copyright (c) 2021 OpenAI. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Kunhao Zheng
-/
import data.complex.basic
example (y : ℂ) : 7 * ( 3 * y + 2 ) = 21 * y + 14 :=
begin
ring,
end
|
8b67f5ef233a87325f8179978a6880a605832d76 | 57aec6ee746bc7e3a3dd5e767e53bd95beb82f6d | /stage0/src/Lean/Meta/AbstractMVars.lean | 384ff698864cd3b30552f936d9be7950fc3ce7b5 | [
"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 | 5,333 | lean | /-
Copyright (c) 2019 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Leonardo de Moura
-/
import Lean.Meta.Basic
namespace Lean.Meta
structure AbstractMVarsResult where
paramNames : Array Name
numMVars : Nat
expr : Expr
deriving... |
629c1498e04008be34eb1cb008847242e14be777 | 74addaa0e41490cbaf2abd313a764c96df57b05d | /Mathlib/field_theory/normal.lean | 080b1922f9d8647a72eea270beba1b4fe2d09bc0 | [] | 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,456 | 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 Mathlib.PrePort
import Mathlib.Lean3Lib.init.default
import Mathlib.field_theory.minpoly
import Mathlib.field_theory.splitting_field
import Mathlib.field_theory.tower
im... |
695fe01b87a87ea59741ea6a57361617047b181a | 4d2583807a5ac6caaffd3d7a5f646d61ca85d532 | /src/data/polynomial/reverse.lean | da11277484ca589d48231df22af5a91d2111db25 | [
"Apache-2.0"
] | permissive | AntoineChambert-Loir/mathlib | 64aabb896129885f12296a799818061bc90da1ff | 07be904260ab6e36a5769680b6012f03a4727134 | refs/heads/master | 1,693,187,631,771 | 1,636,719,886,000 | 1,636,719,886,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 11,198 | lean | /-
Copyright (c) 2020 Damiano Testa. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Damiano Testa
-/
import data.polynomial.erase_lead
import data.polynomial.eval
/-!
# Reverse of a univariate polynomial
The main definition is `reverse`. Applying `reverse` to a poly... |
33a4666c3c1c46222408cf74d63c731552cefe0c | 74addaa0e41490cbaf2abd313a764c96df57b05d | /Mathlib/tactic/tfae.lean | ddc27f7e767fb412c6a06ebdc83b472763bf2a5d | [] | 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,154 | 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
"The Following Are Equivalent" (tfae) :
Tactic for proving the equivalence of a set of proposition
using various implications between them.
-/... |
b337b3538c3b34e575b84bcbdc0fcb5bd435be80 | dc253be9829b840f15d96d986e0c13520b085033 | /homotopy/realprojective.hlean | 8f1c29e373378f4eb67c28e5f009dac37f3be185 | [
"Apache-2.0"
] | permissive | cmu-phil/Spectral | 4ce68e5c1ef2a812ffda5260e9f09f41b85ae0ea | 3b078f5f1de251637decf04bd3fc8aa01930a6b3 | refs/heads/master | 1,685,119,195,535 | 1,684,169,772,000 | 1,684,169,772,000 | 46,450,197 | 42 | 13 | null | 1,505,516,767,000 | 1,447,883,921,000 | Lean | UTF-8 | Lean | false | false | 8,960 | hlean | -- Based on Buchholtz-Rijke: Real projective spaces in HoTT
-- Author: Ulrik Buchholtz
import homotopy.join
open eq nat susp pointed sigma is_equiv equiv fiber is_trunc trunc
trunc_index is_conn bool unit join pushout
definition of_is_contr (A : Type) : is_contr A → A := @center A
definition sigma_unit_left' [con... |
cb2dcaef4a87ceb72518121f04ca01ce04ae6a3d | a45212b1526d532e6e83c44ddca6a05795113ddc | /src/field_theory/subfield.lean | 33ccad8a8c6dd32ae9cca5d8a11c42286af9d29b | [
"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 | 4,396 | lean | /-
Copyright (c) 2018 Andreas Swerdlow. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Andreas Swerdlow
-/
import ring_theory.subring
variables {F : Type*} [discrete_field F] (S : set F)
class is_subfield extends is_subring S : Prop :=
(inv_mem : ∀ {x : F}, x ≠ 0 → ... |
7bd526e8636d088b50a54c3f5551ab26bb6843ad | 80cc5bf14c8ea85ff340d1d747a127dcadeb966f | /src/data/matrix/basic.lean | 4a189ba60eb026cb610f594abed9fa2e02134080 | [
"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 | 34,008 | lean | /-
Copyright (c) 2018 Ellen Arlt. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Ellen Arlt, Blair Shi, Sean Leather, Mario Carneiro, Johan Commelin
-/
import algebra.big_operators.pi
import algebra.module.pi
import algebra.big_operators.ring
import data.fintype.card
... |
fb1257b73ef15d973f826dfc71564f2280aaa014 | 74addaa0e41490cbaf2abd313a764c96df57b05d | /Mathlib/tactic/nth_rewrite/default_auto.lean | 45104ad017d57b78c6ed9b12dc5509a432869ea9 | [] | 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 | 2,829 | lean | /-
Copyright (c) 2018 Keeley Hoek. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Johan Commelin, Keeley Hoek, Scott Morrison
-/
import Mathlib.PrePort
import Mathlib.Lean3Lib.init.default
import Mathlib.tactic.nth_rewrite.congr
import Mathlib.PostPort
namespace Mathl... |
3ce587f8292f19fa1286825cc75c936f931e2fdc | 57c233acf9386e610d99ed20ef139c5f97504ba3 | /src/data/matrix/block.lean | 44c6939dba1cb46bf1607fac801b966d224bf249 | [
"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 | 15,741 | lean | /-
Copyright (c) 2018 Ellen Arlt. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Ellen Arlt, Blair Shi, Sean Leather, Mario Carneiro, Johan Commelin
-/
import data.matrix.basic
/-!
# Block Matrices
## Main definitions
* `matrix.from_blocks`: build a block matrix out... |
afde6f6cba565edcd63e89a5fe6f9a50f71bcc58 | 4727251e0cd73359b15b664c3170e5d754078599 | /src/algebra/star/chsh.lean | dc060bed3444081888a4a957236353388b7e77df | [
"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 | 10,052 | 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.star.basic
import analysis.special_functions.pow
/-!
# The Clauser-Horne-Shimony-Holt inequality and Tsirelson's inequality.
We establish a version o... |
575a3c0b3105df69a62cf7b9a8a6b50c33dd5854 | e031d1fbf8353b338e3189e0d9aec3adb5bb0512 | /src/polymorphisms.lean | 944ae53ca9bbc67875535bf1af7df9ac58b19e35 | [
"Apache-2.0"
] | permissive | UniversalAlgebra/lean-ualib | e64431a70007a835b1dd933d66be04ffca118601 | ab9cbddbb5bdf1eeac4b0d5994bd6cad2a3665d4 | refs/heads/master | 1,584,931,281,084 | 1,558,364,533,000 | 1,558,364,533,000 | 140,986,567 | 6 | 0 | Apache-2.0 | 1,532,718,578,000 | 1,531,613,794,000 | Lean | UTF-8 | Lean | false | false | 961 | lean | /-polymorphisms.lean
Author: William DeMeo <williamdemeo@gmail.com>
Date: 30 Nov 2018
Copyright (c) 2018 William DeMeo
See LICENSE file: https://github.com/UniversalAlgebra/lean-ualib/blob/master/LICENSE
-/
namespace ualib_polymorphisms
section
parameters {α : Type*} {β : Type*}
-- all unary po... |
f7bc2b8d8aef27468db96fb8620dab67d9b66d5c | d9d511f37a523cd7659d6f573f990e2a0af93c6f | /src/linear_algebra/free_module_pid.lean | 5b4bcfe0a6c0bd3edaf662e8c0f8a0323884642f | [
"Apache-2.0"
] | permissive | hikari0108/mathlib | b7ea2b7350497ab1a0b87a09d093ecc025a50dfa | a9e7d333b0cfd45f13a20f7b96b7d52e19fa2901 | refs/heads/master | 1,690,483,608,260 | 1,631,541,580,000 | 1,631,541,580,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 36,649 | 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.basis
import linear_algebra.finsupp_vector_space
import ring_theory.principal_ideal_domain
import ring_theory.finiteness
/-! # Free modules over PID
... |
07d1d280df7b5cef55c3a4d3e8b3afd8ed413d83 | 9a0b1b3a653ea926b03d1495fef64da1d14b3174 | /tidy/rewrite_search/default.lean | b595bfee788427e6c1b0e457629d8be2a7a8e2c0 | [
"Apache-2.0"
] | permissive | khoek/mathlib-tidy | 8623b27b4e04e7d598164e7eaf248610d58f768b | 866afa6ab597c47f1b72e8fe2b82b97fff5b980f | refs/heads/master | 1,585,598,975,772 | 1,538,659,544,000 | 1,538,659,544,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 361 | lean | -- "init.lean" provides setup wrappers for the rewrite_search core,
-- and the fallback strategy/metric/tracer for the engine.
import .init
-- "tactic.lean" provides the tactics
import .tactic
-- We include the shipped library of strategies, metrics, and tracers.
import .strategy
import .metric
import .tracer
import... |
5bcf42013c8fc934c334f03628c57879149277e5 | e61a235b8468b03aee0120bf26ec615c045005d2 | /src/Init/Data/AssocList.lean | b66edb3ad423e6a6a4c6c84bad15c5a88ec57478 | [
"Apache-2.0"
] | permissive | SCKelemen/lean4 | 140dc63a80539f7c61c8e43e1c174d8500ec3230 | e10507e6615ddbef73d67b0b6c7f1e4cecdd82bc | refs/heads/master | 1,660,973,595,917 | 1,590,278,033,000 | 1,590,278,033,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 1,682 | lean | /-
Copyright (c) 2019 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Author: Leonardo de Moura
-/
prelude
import Init.Control.Id
universes u v w
/- List-like type to avoid extra level of indirection -/
inductive AssocList (α : Type u) (β : Type v)
| nil ... |
7a54abf4e516ec9a22a12f8cc1715ae1227f2ae5 | d9d511f37a523cd7659d6f573f990e2a0af93c6f | /src/order/filter/ultrafilter.lean | 7f9d8d75ed5d662586d26ae19a8af1d66c10e688 | [
"Apache-2.0"
] | permissive | hikari0108/mathlib | b7ea2b7350497ab1a0b87a09d093ecc025a50dfa | a9e7d333b0cfd45f13a20f7b96b7d52e19fa2901 | refs/heads/master | 1,690,483,608,260 | 1,631,541,580,000 | 1,631,541,580,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 12,453 | 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, Jeremy Avigad, Yury Kudryashov
-/
import order.filter.cofinite
/-!
# Ultrafilters
An ultrafilter is a minimal (maximal in the set order) proper filter.
In this file w... |
dcc12b940e606d6e32edd3c74aebbe809e86177c | 8cae430f0a71442d02dbb1cbb14073b31048e4b0 | /src/data/mv_polynomial/expand.lean | 13a0bac69cb504e6cb58bfd4c7b48c7c3cc53972 | [
"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,932 | lean | /-
Copyright (c) 2020 Johan Commelin. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Johan Commelin, Robert Y. Lewis
-/
import data.mv_polynomial.monad
/-!
## Expand multivariate polynomials
> THIS FILE IS SYNCHRONIZED WITH MATHLIB4.
> Any changes to this file requir... |
c722a966eb81121c8a281831d334bfaff2002559 | d9d511f37a523cd7659d6f573f990e2a0af93c6f | /src/data/bool.lean | b9c366d218ec9f5fe2d0ae514ac1805bd1f18336 | [
"Apache-2.0"
] | permissive | hikari0108/mathlib | b7ea2b7350497ab1a0b87a09d093ecc025a50dfa | a9e7d333b0cfd45f13a20f7b96b7d52e19fa2901 | refs/heads/master | 1,690,483,608,260 | 1,631,541,580,000 | 1,631,541,580,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 7,600 | lean | /-
Copyright (c) 2014 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Leonardo de Moura, Jeremy Avigad
-/
/-!
# booleans
This file proves various trivial lemmas about booleans and their
relation to decidable propositions.
## Notations
This fil... |
f0d149d475b8ed9f7f75cf21615ffd0a66913d45 | ebb7367fa8ab324601b5abf705720fd4cc0e8598 | /algebra/arrow_group.hlean | cfaa89efa26a989915502f8d30e561381fd7b88a | [
"Apache-2.0"
] | permissive | radams78/Spectral | 3e34916d9bbd0939ee6a629e36744827ff27bfc2 | c8145341046cfa2b4960ef3cc5a1117d12c43f63 | refs/heads/master | 1,610,421,583,830 | 1,481,232,014,000 | 1,481,232,014,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 2,302 | hlean |
import algebra.group_theory ..move_to_lib
open pi pointed algebra group eq equiv is_trunc
namespace group
/- Group of functions whose codomain is a group -/
definition group_arrow [instance] (A B : Type) [group B] : group (A → B) :=
begin
fapply group.mk,
{ intro f g a, exact f a * g a },
{ apply i... |
20f2b5db701db19f2d3651199a5b2c55ac970696 | fa02ed5a3c9c0adee3c26887a16855e7841c668b | /src/topology/category/Compactum.lean | 1da9be12f3701a6e672e9dcace9f85a49230dfac | [
"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 | 16,522 | lean | /-
Copyright (c) 2020 Adam Topaz. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Adam Topaz
-/
import category_theory.monad.types
import category_theory.monad.limits
import category_theory.equivalence
import topology.category.CompHaus
import data.set.constructions
/-... |
5ffb0a32e7d635895406826d82dc2709725969a7 | 69d4931b605e11ca61881fc4f66db50a0a875e39 | /src/analysis/specific_limits.lean | 2d86705207f5e7f9aa2f9d978f818c69e0cc88fe | [
"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 | 38,651 | lean | /-
Copyright (c) 2017 Johannes Hölzl. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Johannes Hölzl
-/
import algebra.geom_sum
import order.filter.archimedean
import order.iterate
import topology.instances.ennreal
import tactic.ring_exp
import analysis.asymptotics.asym... |
5da5dbd72eb5b817956ee226e4e47f97f3b982e5 | b7f22e51856f4989b970961f794f1c435f9b8f78 | /tests/lean/run/clears_tac.lean | 2f5e6e4b09ad1ca3888ba8297cf1bcde0aa1f999 | [
"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 | 281 | lean | import logic
example {a b c : Prop} : a → b → c → a ∧ b :=
begin
intros [Ha, Hb, Hc],
clears [Hc, c],
apply (and.intro Ha Hb),
end
example {a b c : Prop} : a → b → c → c ∧ b :=
begin
intros [Ha, Hb, Hc],
clears [Ha, a],
apply (and.intro Hc Hb),
end
|
5017f9891411faf740940df83c2db209d7e3e19d | 6432ea7a083ff6ba21ea17af9ee47b9c371760f7 | /tests/lean/run/matchEqs.lean | ab9f46048a7471fd61503668b78507d96ec2e6ea | [
"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 | 613 | lean | import Lean
syntax (name := test) "test%" ident : command
open Lean.Elab
open Lean.Elab.Command
@[command_elab test] def elabTest : CommandElab := fun stx => do
let id ← resolveGlobalConstNoOverloadWithInfo stx[1]
liftTermElabM do
IO.println (repr (← Lean.Meta.Match.getEquationsFor id))
return ()
def f (x ... |
0ac15875a21e1b1f631526ad34e2406bd1aa790b | b3fced0f3ff82d577384fe81653e47df68bb2fa1 | /src/order/filter/basic.lean | 96a8a26c971bf40421ba134c6d55e563e3d772dd | [
"Apache-2.0"
] | permissive | ratmice/mathlib | 93b251ef5df08b6fd55074650ff47fdcc41a4c75 | 3a948a6a4cd5968d60e15ed914b1ad2f4423af8d | refs/heads/master | 1,599,240,104,318 | 1,572,981,183,000 | 1,572,981,183,000 | 219,830,178 | 0 | 0 | Apache-2.0 | 1,572,980,897,000 | 1,572,980,896,000 | null | UTF-8 | Lean | false | false | 82,951 | 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, Jeremy Avigad
Theory of filters on sets.
-/
import order.galois_connection order.zorn
import data.set.finite
open lattice set
universes u v w x y
open_locale classic... |
70e1916c421add122daed80409054ad5b596bcc1 | 8cae430f0a71442d02dbb1cbb14073b31048e4b0 | /src/order/atoms/finite.lean | 1f10d0ff97cba6d208d21bf25544a894a076e73c | [
"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,528 | lean | /-
Copyright (c) 2020 Aaron Anderson. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Aaron Anderson
-/
import data.set.finite
import order.atoms
/-!
# Atoms, Coatoms, Simple Lattices, and Finiteness
> THIS FILE IS SYNCHRONIZED WITH MATHLIB4.
> Any changes to this fil... |
ab91af2668c60febb877c0bd35041b27aa322f24 | 75db7e3219bba2fbf41bf5b905f34fcb3c6ca3f2 | /library/init/nat.lean | f1118138816f46c28620b04193b51539e487dd19 | [
"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 | 9,941 | 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.relation init.tactic init.num
open eq.ops decidable or
notation `ℕ` := nat
namespace nat
protected definition rec_... |
7b400a24b56f6c0dbf43964aacef5db374608433 | 9be442d9ec2fcf442516ed6e9e1660aa9071b7bd | /stage0/src/Lean/Elab/PreDefinition/Basic.lean | bc75208e54ba00060f143187eb43cce6d8cb253b | [
"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 | 8,729 | 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.SCC
import Lean.Compiler.NoncomputableAttr
import Lean.Meta.AbstractNestedProofs
import Lean.Meta.Transform
import Lean.Elab.Term
import Le... |
16b9416dbc2018da66c9a4e713df8af0125e5fa1 | 957a80ea22c5abb4f4670b250d55534d9db99108 | /tests/lean/run/stateT1.lean | 6653ede88bde78a4fc6b63f4295706db9df079dc | [
"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 | 867 | lean | meta definition mytactic (A : Type) := state_t (list nat) tactic A
attribute [instance]
meta definition mytactic_is_monad : monad mytactic :=
@state_t.monad _ _ _
meta definition read_lst : mytactic (list nat) :=
state_t.read
meta definition write_lst : list nat → mytactic unit :=
state_t.write
meta definition foo ... |
ad4ae1a9a4b3468d45045762fdf0c11e2cb5b5a3 | ff5230333a701471f46c57e8c115a073ebaaa448 | /library/init/data/list/instances.lean | 1160eec11d759ddf4d20fcb714eb2259ca161f13 | [
"Apache-2.0"
] | permissive | stanford-cs242/lean | f81721d2b5d00bc175f2e58c57b710d465e6c858 | 7bd861261f4a37326dcf8d7a17f1f1f330e4548c | refs/heads/master | 1,600,957,431,849 | 1,576,465,093,000 | 1,576,465,093,000 | 225,779,423 | 0 | 3 | Apache-2.0 | 1,575,433,936,000 | 1,575,433,935,000 | null | UTF-8 | Lean | false | false | 1,850 | lean | /-
Copyright (c) 2016 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Author: Leonardo de Moura
-/
prelude
import init.data.list.lemmas
import init.meta.mk_dec_eq_instance init.category.lawful
open list
universes u v
local attribute [simp] join list.ret
... |
cd79ce0bd80775ca83c7f4626f4ca11e69bebe43 | ee8cdbabf07f77e7be63a449b8483ce308d37218 | /lean/src/valid/mathd-algebra-13.lean | 7842ff567612416cb89384786b59b2570bf797d0 | [
"MIT",
"Apache-2.0"
] | permissive | zeta1999/miniF2F | 6d66c75d1c18152e224d07d5eed57624f731d4b7 | c1ba9629559c5273c92ec226894baa0c1ce27861 | refs/heads/main | 1,681,897,460,642 | 1,620,646,361,000 | 1,620,646,361,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 308 | lean | /-
Copyright (c) 2021 OpenAI. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Kunhao Zheng
-/
import data.real.basic
example (a b :ℝ) (h₀ : ∀ x, 4 * x / ( x ^ 2 - 8 * x + 15 ) = a / ( x - 3 ) + b / ( x - 5 ) ) : a = -6 ∧ b = 10 :=
begin
sorry
end
|
f801827ff7391ea1061efac679968150282ec153 | f00cc9c04d77f9621aa57d1406d35c522c3ff82c | /library/data/rbtree/find.lean | aef460499dfb5a45f7e3b7ba7a6421f672c8e00f | [
"Apache-2.0"
] | permissive | shonfeder/lean | 444c66a74676d74fb3ef682d88cd0f5c1bf928a5 | 24d5a1592d80cefe86552d96410c51bb07e6d411 | refs/heads/master | 1,619,338,440,905 | 1,512,842,340,000 | 1,512,842,340,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 6,118 | 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 data.rbtree.basic
universe u
namespace rbnode
variables {α : Type u}
@[elab_simple]
lemma find.induction {p : rbnode α → Prop} (lt) [decidable_rel ... |
d49c74c7ff29a17b06077728134812e5c6957c4f | 957a80ea22c5abb4f4670b250d55534d9db99108 | /tests/lean/run/norm_num_tst.lean | 9aa843b4ed85da8658ae685ec1602fb879f2b30f | [
"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 | 9,995 | lean | open tactic
meta def eval_num_tac : tactic unit :=
do t ← target,
(lhs, rhs) ← match_eq t,
(new_lhs, pr1) ← norm_num lhs,
(new_rhs, pr2) ← norm_num rhs,
is_def_eq new_lhs new_rhs,
`[exact eq.trans %%pr1 (eq.symm %%pr2)]
-- nat examples
example : 10 + 2 = 1 + 11 := by eval_num_tac
example : 10 - 1 = 9... |
43dde9439cc763e69df5a01e60c527baefd77b5e | 74addaa0e41490cbaf2abd313a764c96df57b05d | /Mathlib/tactic/omega/nat/form_auto.lean | 559f3b9c9efdf4a31d381072473da9ac7259b8fe | [] | 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 | 2,840 | lean | /-
Copyright (c) 2019 Seul Baek. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Author: Seul Baek
-/
import Mathlib.PrePort
import Mathlib.Lean3Lib.init.default
import Mathlib.tactic.omega.nat.preterm
import Mathlib.PostPort
universes l
namespace Mathlib
/-
Linear natural n... |
97f1489cd8f6ac0aa6c117b33a3c45e6b75a41d2 | 37da0369b6c03e380e057bf680d81e6c9fdf9219 | /hott/algebra/category/constructions/set.hlean | 704496bd5fb0f5c2dc26049685a3db37c6970904 | [
"Apache-2.0"
] | permissive | kodyvajjha/lean2 | 72b120d95c3a1d77f54433fa90c9810e14a931a4 | 227fcad22ab2bc27bb7471be7911075d101ba3f9 | refs/heads/master | 1,627,157,512,295 | 1,501,855,676,000 | 1,504,809,427,000 | 109,317,326 | 0 | 0 | null | 1,509,839,253,000 | 1,509,655,713,000 | C++ | UTF-8 | Lean | false | false | 3,512 | 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, Jakob von Raumer
Category of sets
-/
import ..functor.basic ..category types.equiv types.lift
open eq category equiv iso is_equiv is_trunc function sigma
namesp... |
7f74e47f9c502e2eefb4bc5465c526c7dc267241 | 6432ea7a083ff6ba21ea17af9ee47b9c371760f7 | /src/Lean/Meta/TransparencyMode.lean | 9c947ebb6968a7c761ea487c4d051f9bf166d4a2 | [
"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 | 709 | 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
-/
namespace Lean.Meta
namespace TransparencyMode
def hash : TransparencyMode → UInt64
| all => 7
| default => 11
| reducible => 13
| instanc... |
566e036afe04715725fded8c16350b497f06a2b4 | aa3f8992ef7806974bc1ffd468baa0c79f4d6643 | /tests/lean/run/fun.lean | 04c27f73579d239e0cc6cdddce3581a4376ff0de | [
"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 | 382 | lean | import standard
using function num bool
constant f : num → bool
constant g : num → num
check f ∘ g ∘ g
check typeof id : num → num
check num → num ⟨is_typeof⟩ id
constant h : num → bool → num
check flip h
check flip h ff num.zero
check typeof flip h ff num.zero : num
constant f1 : num → num → bool
constant f2 :... |
2a00d47ffe4eb65a48318da2f81c328d57ba3bf3 | d406927ab5617694ec9ea7001f101b7c9e3d9702 | /src/analysis/ODE/gronwall.lean | 7e1fdf7ee5709d72a8934e17c32ff5dc67bb960a | [
"Apache-2.0"
] | permissive | alreadydone/mathlib | dc0be621c6c8208c581f5170a8216c5ba6721927 | c982179ec21091d3e102d8a5d9f5fe06c8fafb73 | refs/heads/master | 1,685,523,275,196 | 1,670,184,141,000 | 1,670,184,141,000 | 287,574,545 | 0 | 0 | Apache-2.0 | 1,670,290,714,000 | 1,597,421,623,000 | Lean | UTF-8 | Lean | false | false | 13,199 | lean | /-
Copyright (c) 2020 Yury Kudryashov. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Yury Kudryashov
-/
import analysis.special_functions.exp_deriv
/-!
# Grönwall's inequality
The main technical result of this file is the Grönwall-like inequality
`norm_le_gronwall_b... |
7f90ce0b3636b66c93ff36b30db6b5490970b32e | 624f6f2ae8b3b1adc5f8f67a365c51d5126be45a | /tests/playground/lazylist.lean | 428e658391bae0563a34ba0e74680892af3d76f6 | [
"Apache-2.0"
] | permissive | mhuisi/lean4 | 28d35a4febc2e251c7f05492e13f3b05d6f9b7af | dda44bc47f3e5d024508060dac2bcb59fd12e4c0 | refs/heads/master | 1,621,225,489,283 | 1,585,142,689,000 | 1,585,142,689,000 | 250,590,438 | 0 | 2 | Apache-2.0 | 1,602,443,220,000 | 1,585,327,814,000 | C | UTF-8 | Lean | false | false | 5,638 | lean | /-
Copyright (c) 2019 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Author: Leonardo de Moura
-/
universes u v w
inductive LazyList (α : Type u)
| nil {} : LazyList
| cons (hd : α) (tl : LazyList) : LazyList
| delayed (t : Thunk L... |
00af2331bc4517c869a28d70c0c9eccd46981f45 | 74addaa0e41490cbaf2abd313a764c96df57b05d | /Mathlib/linear_algebra/direct_sum/tensor_product.lean | 78e230db0706c469639e3d682289e03ec17b2622 | [] | 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,135 | lean | /-
Copyright (c) 2018 Kenny Lau. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Kenny Lau, Mario Carneiro
-/
import Mathlib.PrePort
import Mathlib.Lean3Lib.init.default
import Mathlib.linear_algebra.tensor_product
import Mathlib.linear_algebra.direct_sum_module
import ... |
b32c2991663bddc397fed68d86d6ee17afffc1a4 | 367134ba5a65885e863bdc4507601606690974c1 | /src/data/multiset/range.lean | 7aba97c2d8e9556d2aa17f97116a44ea93510cce | [
"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 | 1,017 | lean | /-
Copyright (c) 2015 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Author: Mario Carneiro
-/
import data.multiset.basic
import data.list.range
open list nat
namespace multiset
/- range -/
/-- `range n` is the multiset lifted from the list `range n`,... |
7b959c22007d208ef2d2c85ff8a9a5c3ab9cfa3a | 2b2a05a7af89c79da194505bf88205a6c4e05d68 | /src/game/world_04_power.lean | 5e46497c695693d29b5b953e8c6746ebb2886e5e | [] | no_license | lacrosse/natural_number_game | 6401a11a8c965da3903ae6695f84586edf6fac85 | 400179cde1d3fcc9744901dabff98813ba2b544f | refs/heads/master | 1,677,566,006,582 | 1,612,576,917,000 | 1,612,576,917,000 | 335,655,947 | 2 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 1,745 | lean | import game.world_03_multiplication
import mynat.pow
namespace mynat
def two_eq_succ_one : (2 : mynat) = succ 1 := rfl
lemma zero_pow_zero : (0 : mynat) ^ (0 : mynat) = 1 := begin[nat_num_game]
rwa pow_zero,
end
lemma zero_pow_succ (m : mynat) : (0 : mynat) ^ (succ m) = 0 := begin[nat_num_game]
rwa [pow_succ, mul... |
c936a8985e93df54a7b4d48ec12b8dcbb38fbd8b | 4d2583807a5ac6caaffd3d7a5f646d61ca85d532 | /src/order/copy.lean | 879395d5840f6f94c72fd6449f5fb7323b6266da | [
"Apache-2.0"
] | permissive | AntoineChambert-Loir/mathlib | 64aabb896129885f12296a799818061bc90da1ff | 07be904260ab6e36a5769680b6012f03a4727134 | refs/heads/master | 1,693,187,631,771 | 1,636,719,886,000 | 1,636,719,886,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 4,540 | lean | /-
Copyright (c) 2020 Johan Commelin. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Johan Commelin
-/
import order.conditionally_complete_lattice
/-!
# Tooling to make copies of lattice structures
Sometimes it is useful to make a copy of a lattice structure
where on... |
f74a7eab787fc26346a7a8083c53c6f6980dcd50 | 367134ba5a65885e863bdc4507601606690974c1 | /src/analysis/calculus/times_cont_diff.lean | 3f53f9b812b40f353fe0ff8f6d446384a5e5044b | [
"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 | 136,536 | 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.calculus.mean_value
import analysis.calculus.formal_multilinear_series
/-!
# Higher differentiability
A function is `C^1` on a domain if it is... |
0ff964a85bb5460dc291d9ed64aa74aee5903bfa | 957a80ea22c5abb4f4670b250d55534d9db99108 | /library/init/data/nat/default.lean | 148404126c329e0460ffe9aac4d27c0fbbc37e80 | [
"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 | 285 | lean | /-
Copyright (c) 2016 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Leonardo de Moura
-/
prelude
import init.data.nat.basic init.data.nat.div init.data.nat.pow init.data.nat.lemmas
init.data.nat.bitwise
|
79c04180357d31536b7089978c37172dd9acda20 | 302c785c90d40ad3d6be43d33bc6a558354cc2cf | /src/category_theory/limits/shapes/terminal.lean | 1205db8acc85a27796d9f2a0a4b3671a931250bd | [
"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 | 12,432 | lean | /-
Copyright (c) 2019 Scott Morrison. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Scott Morrison, Bhavik Mehta
-/
import category_theory.pempty
import category_theory.limits.has_limits
/-!
# Initial and terminal objects in a category.
## References
* [Stacks: Init... |
d3380347c2bb29e5a7a81144b190273d48ae42aa | 947b78d97130d56365ae2ec264df196ce769371a | /src/Init/Data/List/Instances.lean | 6b190d5c0888b05cb25ef99819834a8e5d60cefc | [
"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 | 471 | lean | /-
Copyright (c) 2016 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Author: Leonardo de Moura
-/
prelude
import Init.Data.List.Basic
import Init.Control.Alternative
import Init.Control.Monad
open List
universes u v
instance : Monad List :=
{ pure := @L... |
7a80802e7221c36b7b65db0a93c337430e1009d7 | d436468d80b739ba7e06843c4d0d2070e43448e5 | /src/ring_theory/principal_ideal_domain.lean | bd0735665daf7c7c46783b445dc2177f14ca08fe | [
"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 | 6,633 | lean | /-
Copyright (c) 2018 Chris Hughes. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Author: Chris Hughes, Morenikeji Neri
-/
import algebra.euclidean_domain
import ring_theory.ideals ring_theory.noetherian ring_theory.unique_factorization_domain
variables {α : Type*}
open set... |
8d37cb213e3e87cc96f150e6d64f2a0608d65bdd | 1abd1ed12aa68b375cdef28959f39531c6e95b84 | /src/measure_theory/integral/set_integral.lean | 3c5ebf15b2136819abf0e88012d878e30f16e8b9 | [
"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 | 44,768 | lean | /-
Copyright (c) 2020 Zhouhang Zhou. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Zhouhang Zhou, Yury Kudryashov
-/
import measure_theory.integral.integrable_on
import measure_theory.integral.bochner
import order.filter.indicator_function
/-!
# Set integral
In this... |
327d960c244844d6cf6811b7912a66cd61e7e237 | 9dc8cecdf3c4634764a18254e94d43da07142918 | /src/data/fin/tuple/basic.lean | 58987a34a94ed6718916c8b6a4b4c0082764f0bf | [
"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 | 27,853 | 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, Yury Kudryashov, Sébastien Gouëzel, Chris Hughes
-/
import data.fin.basic
import data.pi.lex
/-!
# Operation on tuples
We interpret maps `Π i : fin n, α i` as `n`... |
611c5f6750dfc1b914b87822a9f7cf44d3820c4a | 1113d3bf001d9b775cc005a3a53093e65231fe82 | /lean/fizzbuzz.lean | 89cc355eb2caf0fbedfe20943a1a60c23ad814ac | [
"MIT"
] | permissive | 102/fizzbuzz-polyglot | 69465364ae9a8d8038b217da640acb6adbf9bfc3 | 5a8e0ac810ae085bd5585a059a5f25f8856c1e9a | refs/heads/main | 1,672,543,226,891 | 1,602,535,429,000 | 1,602,535,429,000 | 303,451,619 | 0 | 0 | MIT | 1,602,520,474,000 | 1,602,520,474,000 | null | UTF-8 | Lean | false | false | 2,471 | lean | import tactic
import algebra.divisibility
def fizzbuzz (n : ℕ) : string :=
if 15 ∣ n then "FizzBuzz"
else if 3 ∣ n then "Fizz"
else if 5 ∣ n then "Buzz"
else to_string n
lemma both_divisors_must_divide {n a b : ℕ} : a ∣ b -> ¬ a ∣ n -> ¬ b ∣ n :=
begin
intros h₁ h₂ h,
cases exists_eq_mul_left_of_dvd h₁ wi... |
55ef69bcbac7d944b0f27ad8e8f23a21ec1384bc | fcf3ffa92a3847189ca669cb18b34ef6b2ec2859 | /src/polyfill/factorial.lean | 595f88fa40cdd5f8a85cf25e362ccba92d86d272 | [
"Apache-2.0"
] | permissive | nomoid/lean-proofs | 4a80a97888699dee42b092b7b959b22d9aa0c066 | b9f03a24623d1a1d111d6c2bbf53c617e2596d6a | refs/heads/master | 1,674,955,317,080 | 1,607,475,706,000 | 1,607,475,706,000 | 314,104,281 | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 3,758 | 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, Floris van Doorn
-/
/- modified from https://github.com/leanprover-community/mathlib/blob/96a20388edb84fbf87c122ac622423c3dbec8525/src/data/nat/factorial... |
e9d9517f077fbab0d9105061c11cfdc73176dfe4 | ed544fdbb470075305eb2a01b0491ce8a6ba05c8 | /src/certigrad/lemmas.lean | abbc07bdf977a8508b1899092a2f1c047db35415 | [
"Apache-2.0"
] | permissive | gazimahmud/certigrad | d12caa30c6fc3adf9bb1fcd61479af0faad8b6c3 | 38cc6377dbd5025eb074188a1acd02147a92bdba | refs/heads/master | 1,606,977,759,336 | 1,498,686,571,000 | 1,498,686,571,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 40,698 | lean | /-
Copyright (c) 2017 Daniel Selsam. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Author: Daniel Selsam
Miscellaneous lemmas.
-/
import .predicates .tcont .expected_value
namespace certigrad
open list
lemma env_not_has_key_insert {m : env} {ref₁ ref₂ : reference} {x : T re... |
b974bd8ba8a9557cb5c0ac8e55eed9faac4baa20 | 02005f45e00c7ecf2c8ca5db60251bd1e9c860b5 | /src/data/finset/preimage.lean | 972bbff13b4ce7c7df28acc8cbad2a30f57a8663 | [
"Apache-2.0"
] | permissive | anthony2698/mathlib | 03cd69fe5c280b0916f6df2d07c614c8e1efe890 | 407615e05814e98b24b2ff322b14e8e3eb5e5d67 | refs/heads/master | 1,678,792,774,873 | 1,614,371,563,000 | 1,614,371,563,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 5,512 | lean | /-
Copyright (c) 2017 Johannes Hölzl. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Johannes Hölzl, Mario Carneiro
-/
import data.set.finite
import algebra.big_operators.basic
/-!
# Preimage of a `finset` under an injective map.
-/
open set function
open_locale big... |
2d4104816fcde457d6d5c3c20c8baa0a5dc37baa | 8cae430f0a71442d02dbb1cbb14073b31048e4b0 | /src/topology/order/lattice.lean | 4c189d437a7a5846105bc4b3dfb54caf9ceb52c6 | [
"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 | 4,757 | lean | /-
Copyright (c) 2021 Christopher Hoskin. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Christopher Hoskin
-/
import topology.order.basic
import topology.constructions
/-!
# Topological lattices
> THIS FILE IS SYNCHRONIZED WITH MATHLIB4.
> Any changes to this file r... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.