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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
d31b8e9a78ce6306129c368eaa0f88bcf3f031a4 | 4efff1f47634ff19e2f786deadd394270a59ecd2 | /src/category_theory/monoidal/internal/functor_category.lean | 1cbe3fe34891cd51a9f274c62f2463e804d25665 | [
"Apache-2.0"
] | permissive | agjftucker/mathlib | d634cd0d5256b6325e3c55bb7fb2403548371707 | 87fe50de17b00af533f72a102d0adefe4a2285e8 | refs/heads/master | 1,625,378,131,941 | 1,599,166,526,000 | 1,599,166,526,000 | 160,748,509 | 0 | 0 | Apache-2.0 | 1,544,141,789,000 | 1,544,141,789,000 | null | UTF-8 | Lean | false | false | 4,243 | 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 category_theory.monoidal.internal
import category_theory.monoidal.functor_category
/-!
# `Mon_ (C ⥤ D) ≌ C ⥤ Mon_ D`
When `D` is a monoidal category,
monoid ... |
4bda48aee6fe9a24ca2cec5ebd05e0b33d855d8b | 75c54c8946bb4203e0aaf196f918424a17b0de99 | /src/language_extension.lean | ec76a9f0586e8de48e4fe700f7dbb4951f63c251 | [
"Apache-2.0"
] | permissive | urkud/flypitch | 261e2a45f1038130178575406df8aea78255ba77 | 2250f5eda14b6ef9fc3e4e1f4a9ac4005634de5c | refs/heads/master | 1,653,266,469,246 | 1,577,819,679,000 | 1,577,819,679,000 | 259,862,235 | 1 | 0 | Apache-2.0 | 1,588,147,244,000 | 1,588,147,244,000 | null | UTF-8 | Lean | false | false | 37,221 | lean | /-
Copyright (c) 2019 The Flypitch Project. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Jesse Han, Floris van Doorn
-/
import .compactness
open set function nat
universe variable u
namespace fol
local notation h :: t := dvector.cons h t
local notation `[` l:(fol... |
a14191a2edd812055e6db526440073b599bab865 | 947b78d97130d56365ae2ec264df196ce769371a | /src/Init/Control/Option.lean | c1b194d112f7be8d60087fdd1b7ae10cd41e02a4 | [
"Apache-2.0"
] | permissive | shyamalschandra/lean4 | 27044812be8698f0c79147615b1d5090b9f4b037 | 6e7a883b21eaf62831e8111b251dc9b18f40e604 | refs/heads/master | 1,671,417,126,371 | 1,601,859,995,000 | 1,601,860,020,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 2,210 | 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, Sebastian Ullrich
-/
prelude
import Init.Control.Alternative
import Init.Control.MonadLift
import Init.Control.Except
universes u v
def OptionT (m : Type u ... |
c1a971d72b6d8967845141a9fe024a2640a0c569 | 367134ba5a65885e863bdc4507601606690974c1 | /src/category_theory/graded_object.lean | 04d8fa65c5f72967f7ff2e65820eae8288d9d6f2 | [
"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 | 6,169 | 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 category_theory.shift
import category_theory.concrete_category
import category_theory.pi.basic
import algebra.group.basic
/-!
# The category of graded objects... |
b52539f1478fb96c468f34dfd915d5b491229115 | b73bd2854495d87ad5ce4f247cfcd6faa7e71c7e | /src/game/world3/level7.lean | 32482ad386bdca3af52dfd896c4f9aa7340bfcac | [] | no_license | agusakov/category-theory-game | 20db0b26270e0c95a3d5605498570273d72f731d | 652dd7e90ae706643b2a597e2c938403653e167d | refs/heads/master | 1,669,201,216,310 | 1,595,740,057,000 | 1,595,740,057,000 | 280,895,295 | 12 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 756 | lean | import category_theory.category.default
universes v u -- The order in this declaration matters: v often needs to be explicitly specified while u often can be omitted
namespace category_theory
variables (C : Type u) [category.{v} C]
--rewrite this
/-
# Category world
## Level 7: Composition of monomorphisms
Now ... |
08c40fc34ac7380a117a368d66f9c0db384797ac | 367134ba5a65885e863bdc4507601606690974c1 | /src/analysis/calculus/extend_deriv.lean | 2797bb139b10cbd2a2087b1d199a50617ecb7557 | [
"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 | 11,070 | 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 tactic.monotonicity
/-!
# Extending differentiability to the boundary
We investigate how differentiable functions i... |
f47b145b0d9596516b91865348bca3c20d555cc6 | 853df553b1d6ca524e3f0a79aedd32dde5d27ec3 | /src/data/set/basic.lean | 1329a042e16ec68068e30b070dbd98dcfc1bae53 | [
"Apache-2.0"
] | permissive | DanielFabian/mathlib | efc3a50b5dde303c59eeb6353ef4c35a345d7112 | f520d07eba0c852e96fe26da71d85bf6d40fcc2a | refs/heads/master | 1,668,739,922,971 | 1,595,201,756,000 | 1,595,201,756,000 | 279,469,476 | 0 | 0 | null | 1,594,696,604,000 | 1,594,696,604,000 | null | UTF-8 | Lean | false | false | 81,055 | 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
-/
import logic.unique
import order.boolean_algebra
/-!
# Basic properties of sets
Sets in Lean are homogeneous; all their elements have the same type... |
6538f4f1c9ce54925ab1bffbba59d679c3e52d96 | 7cef822f3b952965621309e88eadf618da0c8ae9 | /src/data/matrix/pequiv.lean | f1c456749d0b84cc40d324ce13b1edc2fef26988 | [
"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 | 4,847 | lean | /-
Copyright (c) 2019 Chris Hughes. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Chris Hughes
-/
import data.matrix.basic data.pequiv
/-
# partial equivalences for matrices
Using partial equivalences to represent matrices.
This file introduces the function `pequiv.t... |
2f7c958e98ceb0a76b8e7eb4ea5d8c63341ba831 | 74addaa0e41490cbaf2abd313a764c96df57b05d | /Mathlib/topology/opens.lean | 050fc765774d019c3bd792db3dfc789e38fd08c9 | [] | 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,575 | 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, Floris van Doorn
-/
import Mathlib.PrePort
import Mathlib.Lean3Lib.init.default
import Mathlib.topology.bases
import Mathlib.topology.homeomorph
import ... |
0d8aab1504062956f0678f881c3d5733d6c7080e | 8cae430f0a71442d02dbb1cbb14073b31048e4b0 | /src/algebraic_topology/simplicial_set.lean | 1b42fcba597d4ecfe4272421865b726ccc2469d1 | [
"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 | 6,054 | lean | /-
Copyright (c) 2021 Scott Morrison. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Johan Commelin, Scott Morrison, Adam Topaz
-/
import algebraic_topology.simplicial_object
import algebraic_topology.topological_simplex
import category_theory.limits.presheaf
import ca... |
4bc93a0d8276131a78338dac61590b93eb3dee67 | e0e64c424bf126977aef10e58324934782979062 | /src/wk1/Notes/logic.lean | 122e558f2aafd128dbf8170ee0612f1ca604dfdc | [] | no_license | jamesa9283/LiaLeanTutor | 34e9e133a4f7dd415f02c14c4a62351bb9fd8c21 | c7ac1400f26eb2992f5f1ee0aaafb54b74665072 | refs/heads/master | 1,686,146,337,422 | 1,625,227,392,000 | 1,625,227,392,000 | 373,130,175 | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 1,500 | lean | import logic.basic -- Needed for imp_false
section question2
variable R : Prop
variables S T : Prop
variable h : S ∧ T
variable h₁ : S → T
variable h₂ : S
end question2
section question5
variables P Q : Prop
example : ¬P ∨ ¬Q → ¬(P ∧ Q) :=
begin
intros h₁ h₂, -- you can introduce off a ¬
-- have h₃ : P, from ... |
9f88972bff0bc4950631b3ce027a71df85423b7d | d406927ab5617694ec9ea7001f101b7c9e3d9702 | /src/geometry/manifold/algebra/left_invariant_derivation.lean | 0d3851627160c923ff13be40927a9197166a1715 | [
"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 | 8,882 | lean | /-
Copyright © 2020 Nicolò Cavalleri. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Nicolò Cavalleri
-/
import geometry.manifold.derivation_bundle
/-!
# Left invariant derivations
In this file we define the concept of left invariant derivation for a Lie group. The... |
cdf0a954c0e46d0e84ca9925d2fa72ba9956a736 | 57c233acf9386e610d99ed20ef139c5f97504ba3 | /src/algebra/tropical/basic.lean | 0eac2a4aaee2d8e73bea0b007bac6d5bf886b39b | [
"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 | 16,681 | lean | /-
Copyright (c) 2021 Yakov Pechersky. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Yakov Pechersky
-/
import algebra.group_power.order
import algebra.smul_with_zero
/-!
# Tropical algebraic structures
This file defines algebraic structures of the (min-)tropical n... |
dfce1e172464c65e0537493b002599d7bf2a9d9d | d1a52c3f208fa42c41df8278c3d280f075eb020c | /stage0/src/Init/Conv.lean | aa6ec47784dad397bda5e40cb5d6bc03713dc0f3 | [
"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 | 3,130 | lean | /-
Copyright (c) 2021 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Leonardo de Moura
Notation for operators defined at Prelude.lean
-/
prelude
import Init.NotationExtra
namespace Lean.Parser.Tactic.Conv
declare_syntax_cat conv (behavior := b... |
3cd582a2d09d80c44220c3bad9e0500044acfc45 | 63abd62053d479eae5abf4951554e1064a4c45b4 | /src/data/real/conjugate_exponents.lean | 709a3e2320a7e6ca7926ff1ba47ed74ccf32ba7f | [
"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 | 2,989 | lean | /-
Copyright (c) 2020 Sébastien Gouëzel. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Sébastien Gouëzel, Yury Kudryashov
-/
import data.real.basic
/-!
# Real conjugate exponents
`p.is_conjugate_exponent q` registers the fact that the real numbers `p` and `q` are `>... |
5805661255cb6aa3f25e43705eaa05752825dbb6 | 4efff1f47634ff19e2f786deadd394270a59ecd2 | /src/geometry/euclidean/basic.lean | e01c84f7d393313d3f99214a4b5eb04c56f55702 | [
"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 | 36,454 | lean | /-
Copyright (c) 2020 Joseph Myers. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Author: Joseph Myers.
-/
import analysis.normed_space.real_inner_product
import analysis.normed_space.add_torsor
import linear_algebra.affine_space.combination
noncomputable theory
open_locale b... |
fc5aef8aa16cc7fcc7af3215399d7d66248653cb | 8df41d07a6978343ced2879c820c306f8719be4e | /test.lean | 9dd158d19825c6b7a0a442d435baa061eee06efc | [
"MIT"
] | permissive | SimonForgot/lean_files | 2df477d3b488f7df646ea0cee34f7dc04f6f6a92 | d0b7890a0b99fdf3a54329d68ca067a246d21651 | refs/heads/main | 1,679,827,640,639 | 1,616,324,149,000 | 1,616,324,149,000 | 348,355,064 | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 130 | lean | example (P Q R : Type) : (P → (Q → R)) → ((P → Q) → (P → R)) :=
begin
intro f,
intro h,
intro p,
exact f(p)(h(p)),
end |
546302e61190c248f700ae625d3b2f537fbc99fd | b00eb947a9c4141624aa8919e94ce6dcd249ed70 | /src/Std/Data/RBMap.lean | ebeeca1c4c1cad0d62809bc887307caa0aa45889 | [
"Apache-2.0"
] | permissive | gebner/lean4-old | a4129a041af2d4d12afb3a8d4deedabde727719b | ee51cdfaf63ee313c914d83264f91f414a0e3b6e | refs/heads/master | 1,683,628,606,745 | 1,622,651,300,000 | 1,622,654,405,000 | 142,608,821 | 1 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 13,785 | 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
-/
namespace Std
universes u v w w'
inductive Rbcolor where
| red | black
inductive RBNode (α : Type u) (β : α → Type v) where
| leaf ... |
beaec532aa3c5e6f551a9944b877cf18703a122f | 94e33a31faa76775069b071adea97e86e218a8ee | /src/model_theory/satisfiability.lean | cf31df0d3ff2424a4a8ea13e162e054164c71c11 | [
"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 | 23,829 | lean | /-
Copyright (c) 2021 Aaron Anderson. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Aaron Anderson
-/
import model_theory.ultraproducts
import model_theory.bundled
import model_theory.skolem
/-!
# First-Order Satisfiability
This file deals with the satisfiability of ... |
585b68fab5122510c914e68b5a6a0b38b509d849 | fa02ed5a3c9c0adee3c26887a16855e7841c668b | /src/analysis/convex/basic.lean | d6e09e645e422a0b61104f53e6d4e234769124b9 | [
"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 | 68,145 | lean | /-
Copyright (c) 2019 Alexander Bentkamp. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Alexander Bentkamp, Yury Kudriashov
-/
import data.set.intervals.ord_connected
import data.set.intervals.image_preimage
import data.complex.module
import linear_algebra.affine_spac... |
296cc4a318a2a38b5ed33e10a87bffbe727f35de | 57fdc8de88f5ea3bfde4325e6ecd13f93a274ab5 | /algebra/archimedean.lean | 99836e4bb1354e6b73b33b7d1dc73bf3fd6bdf75 | [
"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 | 8,165 | lean | /-
Copyright (c) 2018 Mario Carneiro. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Mario Carneiro
Archimedean groups and fields.
-/
import algebra.group_power data.rat data.int.order
variables {α : Type*}
class floor_ring (α) extends linear_ordered_ring α :=
(floo... |
dcac30d52f248c185a211434202e8141d0fc6fc9 | 0ed3609caf1962115b28aeb010d2bda5f67ddc4c | /src/linear_algebra/basic.lean | 6b52295d7e480377e65b4c1d3c06874c6c3d561d | [
"Apache-2.0"
] | permissive | jonaslippert/mathlib | 82dba29632969e3ed1c153a6454306f6bc9d9037 | 1435a196db69a7886a11e310e8923f3dcf249b81 | refs/heads/master | 1,609,938,673,069 | 1,582,018,388,000 | 1,582,018,388,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 73,567 | 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
-/
import algebra.pi_instances data.finsupp data.equiv.algebra order.order_iso
/-!
# Linear algebra
This file defines the basics of lin... |
f98532e4275383b4077fdad1438d58ce78c3fdfa | 5d166a16ae129621cb54ca9dde86c275d7d2b483 | /library/init/meta/has_reflect.lean | f5b362d98563b0523d1d4658baa2828d6c40db75 | [
"Apache-2.0"
] | permissive | jcarlson23/lean | b00098763291397e0ac76b37a2dd96bc013bd247 | 8de88701247f54d325edd46c0eed57aeacb64baf | refs/heads/master | 1,611,571,813,719 | 1,497,020,963,000 | 1,497,021,515,000 | 93,882,536 | 1 | 0 | null | 1,497,029,896,000 | 1,497,029,896,000 | null | UTF-8 | Lean | false | false | 1,574 | lean | /-
Copyright (c) 2017 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Sebastian Ullrich
-/
prelude
import init.meta.expr init.util
@[reducible] meta def {u} has_reflect (α : Sort u) := Π a : α, reflected a
meta instance bool.reflect : has_reflec... |
836b58ecd3a3dfdb57e6e31734c8410e95c8ae76 | 32da3d0f92cab08875472ef6cacc1931c2b3eafa | /src/measure_theory/integration.lean | 19b98f909e66e04b01ace229725b3357e9395210 | [
"Apache-2.0"
] | permissive | karthiknadig/mathlib | b6073c3748860bfc9a3e55da86afcddba62dc913 | 33a86cfff12d7f200d0010cd03b95e9b69a6c1a5 | refs/heads/master | 1,676,389,371,851 | 1,610,061,127,000 | 1,610,061,127,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 75,464 | lean | /-
Copyright (c) 2018 Mario Carneiro. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Mario Carneiro, Johannes Hölzl
-/
import measure_theory.measure_space
import measure_theory.borel_space
import data.indicator_function
import data.support
/-!
# Lebesgue integral for ... |
592b1816087bdd23ca6d4857e509a832292715f9 | 57c233acf9386e610d99ed20ef139c5f97504ba3 | /src/category_theory/monoidal/category.lean | 8185e66e11dda0cf8c743b2c4a8c2d8d27732652 | [
"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 | 23,626 | 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, Bhavik Mehta, Jakob von Raumer
-/
import category_theory.products.basic
/-!
# Monoidal categories
A monoidal category is a category equipped wit... |
0a95154fdd9f4e77eea1e894823a1c2a49124436 | b7f22e51856f4989b970961f794f1c435f9b8f78 | /tests/lean/unfoldf.lean | 8bb6bea918b4c07162f4c17b0b6876efe1535fff | [
"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 | 484 | lean | open nat
-- definition id [unfold_full] {A : Type} (a : A) := a
definition compose {A B C : Type} (g : B → C) (f : A → B) (a : A) := g (f a)
notation g ∘ f := compose g f
example (a b : nat) (H : a = b) : id a = b :=
begin
esimp,
state,
exact H
end
example (a b : nat) (H : a = b) : (id ∘ id) a = b :=
begin
e... |
a4e6e6e3639bd06ed53c91477433c23b23542510 | d406927ab5617694ec9ea7001f101b7c9e3d9702 | /src/algebra/char_zero/defs.lean | 6f8fd5beb208172594758050882328c73195e52e | [
"Apache-2.0"
] | permissive | alreadydone/mathlib | dc0be621c6c8208c581f5170a8216c5ba6721927 | c982179ec21091d3e102d8a5d9f5fe06c8fafb73 | refs/heads/master | 1,685,523,275,196 | 1,670,184,141,000 | 1,670,184,141,000 | 287,574,545 | 0 | 0 | Apache-2.0 | 1,670,290,714,000 | 1,597,421,623,000 | Lean | UTF-8 | Lean | false | false | 2,918 | lean | /-
Copyright (c) 2014 Mario Carneiro. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Mario Carneiro
-/
import data.int.cast.defs
/-!
# Characteristic zero
> THIS FILE IS SYNCHRONIZED WITH MATHLIB4.
> https://github.com/leanprover-community/mathlib4/pull/661
> Any cha... |
790cf39ce24dd23eeeef4a28dad70b88ac14d800 | 947fa6c38e48771ae886239b4edce6db6e18d0fb | /src/group_theory/perm/cycle/basic.lean | 1e70027498abd8a4c5e0f2cf8f55d576f01038b3 | [
"Apache-2.0"
] | permissive | ramonfmir/mathlib | c5dc8b33155473fab97c38bd3aa6723dc289beaa | 14c52e990c17f5a00c0cc9e09847af16fabbed25 | refs/heads/master | 1,661,979,343,526 | 1,660,830,384,000 | 1,660,830,384,000 | 182,072,989 | 0 | 0 | null | 1,555,585,876,000 | 1,555,585,876,000 | null | UTF-8 | Lean | false | false | 60,156 | lean | /-
Copyright (c) 2019 Chris Hughes. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Chris Hughes
-/
import data.finset.noncomm_prod
import group_theory.perm.sign
import logic.equiv.fintype
/-!
# Cyclic permutations
## Main definitions
In the following, `f : equiv.perm... |
9f2dacd5bfaddc5726af05f606f6dfd8e33dde2f | 57c233acf9386e610d99ed20ef139c5f97504ba3 | /src/combinatorics/double_counting.lean | 8f2eca8468c3e548c1d7139b5965ef21654f65e6 | [
"Apache-2.0"
] | permissive | robertylewis/mathlib | 3d16e3e6daf5ddde182473e03a1b601d2810952c | 1d13f5b932f5e40a8308e3840f96fc882fae01f0 | refs/heads/master | 1,651,379,945,369 | 1,644,276,960,000 | 1,644,276,960,000 | 98,875,504 | 0 | 0 | Apache-2.0 | 1,644,253,514,000 | 1,501,495,700,000 | Lean | UTF-8 | Lean | false | false | 3,536 | 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 algebra.big_operators.order
/-!
# Double countings
This file gathers a few double counting arguments.
## Bipartite graphs
In a bipartite graph (considered as a... |
a8b50b1f57b5b298502b634a8811dabe2809666c | a4673261e60b025e2c8c825dfa4ab9108246c32e | /stage0/src/Lean/PrettyPrinter/Formatter.lean | ef6a69cc967a42192ac6a60c1611ff3a7395f7c7 | [
"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 | 22,135 | lean | /-
Copyright (c) 2020 Sebastian Ullrich. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Sebastian Ullrich
-/
/-!
The formatter turns a `Syntax` tree into a `Format` object, inserting both mandatory whitespace (to separate adjacent
tokens) as well as "pretty" optional ... |
756552eeafa2699fa9b62e76fcb335bb04b39123 | fa02ed5a3c9c0adee3c26887a16855e7841c668b | /src/algebra/group_with_zero/power.lean | 9388cd3c1ef234919f234dce0487704f3363d1a6 | [
"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 | 9,973 | 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 algebra.group_power
/-!
# Powers of elements of groups with an adjoined zero element
In this file we define integer power functions for groups with an adjoin... |
fbd01e69369ce879a96f3f5d6bea0e45931f481a | d406927ab5617694ec9ea7001f101b7c9e3d9702 | /src/computability/epsilon_NFA.lean | 1b81ac03f93908086213adb3506c623596342604 | [
"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 | 6,720 | lean | /-
Copyright (c) 2021 Fox Thomson. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Fox Thomson, Yaël Dillies
-/
import computability.NFA
/-!
# Epsilon Nondeterministic Finite Automata
This file contains the definition of an epsilon Nondeterministic Finite Automaton (`... |
fa93f2164f110187a8bba32379dd0a93d19ec5b2 | 97f752b44fd85ec3f635078a2dd125ddae7a82b6 | /hott/init/trunc.hlean | e0bf90ad8ece400288273a02065d999fe4eaed60 | [
"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 | 13,282 | hlean | /-
Copyright (c) 2014 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Jeremy Avigad, Floris van Doorn
Definition of is_trunc (n-truncatedness)
Ported from Coq HoTT.
-/
prelude
import .nat .logic .equiv .pathover
open eq nat sigma unit sigma.ops... |
fb00d77ef8214f922b4e5f315e1a9f348bc76509 | 6432ea7a083ff6ba21ea17af9ee47b9c371760f7 | /tests/lean/beginEndAsMacro.lean | b06915b4721a16e7e7d26e1f8311e2b165b00f7f | [
"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 | 458 | lean | /- ANCHOR: doc -/
open Lean in
macro "begin " ts:tactic,*,? i:"end" : term => do
-- preserve position of the last token, which is used
-- as the error position in case of an unfinished proof
`(by { $[$ts:tactic]* }%$i)
theorem ex1 (x : Nat) : x + 0 = 0 + x :=
begin
rw [Nat.zero_add],
rw [Nat.add_zero],... |
68f4a08d9a8aee0b65e9c7323c8b7d50295bbb3a | 74addaa0e41490cbaf2abd313a764c96df57b05d | /Mathlib/category_theory/Fintype_auto.lean | 2519136aa37a1ddcb679b8523bbd7cf2af34f19a | [] | 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,677 | lean | /-
Copyright (c) 2020 Adam Topaz. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Bhavik Mehta, Adam Topaz
-/
import Mathlib.PrePort
import Mathlib.Lean3Lib.init.default
import Mathlib.data.fintype.basic
import Mathlib.data.fin
import Mathlib.category_theory.concrete_ca... |
59cce414b4c8765fcc3831bab22cb3f1ed885da0 | 3687dc8685c74a77e27d2ad9bd1237521b1962d7 | /dijkstra.lean | 7c9d86c8a56600f74213556a648b48942fdd89fc | [
"MIT"
] | permissive | jroesch/effects | 7e6020d550e50b43eed2dda71b9d6e5fd03c2e87 | fca06ecdf0f123bf4277029e3430765d6af39b66 | refs/heads/master | 1,610,904,974,722 | 1,476,251,597,000 | 1,476,251,597,000 | 70,456,715 | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 2,093 | lean | constant PURE (T : Type) (wp wlp : (T → Prop) → Prop) : Type
namespace pure
def post (A : Type) := A → Prop
@[reducible] def pre := Prop
def wp (A : Type) := post A → pre
def return_type (A : Type) (x : A) :=
fun (p : post A), p x
end pure
noncomputable def Pure (A : Type) (pre : Prop) (post : A -> Prop)... |
4878709985f32060e36a82245cf44aa030a5b719 | 57c233acf9386e610d99ed20ef139c5f97504ba3 | /src/measure_theory/tactic.lean | 65e1ebb20caa5ed70c35ca3bef99eac1177f5ecf | [
"Apache-2.0"
] | permissive | robertylewis/mathlib | 3d16e3e6daf5ddde182473e03a1b601d2810952c | 1d13f5b932f5e40a8308e3840f96fc882fae01f0 | refs/heads/master | 1,651,379,945,369 | 1,644,276,960,000 | 1,644,276,960,000 | 98,875,504 | 0 | 0 | Apache-2.0 | 1,644,253,514,000 | 1,501,495,700,000 | Lean | UTF-8 | Lean | false | false | 6,412 | lean | /-
Copyright (c) 2021 Rémy Degenne. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Rémy Degenne
-/
import measure_theory.measure.measure_space_def
import tactic.auto_cases
import tactic.tidy
import tactic.with_local_reducibility
/-!
# Tactics for measure theory
Curren... |
53da5b02fa1de99ccb8f0481d7ab0d7523cb2335 | d0f9af2b0ace5ce352570d61b09019c8ef4a3b96 | /hw3/dm_box_test.lean | 6161ece6d0dbc31b3e2c056a207b66c020fc0320 | [] | 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 | 226 | lean | -- Justin Ngo
-- jmn4fms
-- 2/3/20
-- Sullivan 2102-001
import .dm_box
def b1 := dm_box.mk 5
def b2 := dm_box.mk tt
#reduce unbox b1
#reduce unbox b2
#reduce unbox' b1
#reduce unbox' b2
#reduce unbox' b1
#reduce unbox' b2 |
14d2bc427dd73a9fcdb21d4a1033cb9862b554a2 | 02005f45e00c7ecf2c8ca5db60251bd1e9c860b5 | /src/algebra/star/basic.lean | 8c5b1b2840671cca095f16a52e699601f4596d37 | [
"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,336 | 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 tactic.apply_fun
import algebra.ordered_ring
import algebra.big_operators.basic
import data.equiv.ring
/-!
# Star monoids and star rings
We introduce the ba... |
c7100de16db44c12f7c939fdb8c2002864ecc7b6 | 8d65764a9e5f0923a67fc435eb1a5a1d02fd80e3 | /test/monotonicity.lean | 56afe556a09277ff9362aa3abda1e8bf6c00faf7 | [
"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,593 | lean | /-
Copyright (c) 2019 Simon Hudon. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Simon Hudon
-/
import tactic.monotonicity
import tactic.norm_num
import algebra.ordered_ring
import measure_theory.measure.lebesgue
import data.list.defs
open list tactic tactic.interact... |
94a7fc0d8f4719d977940b8c2925da21c4fa5374 | a45212b1526d532e6e83c44ddca6a05795113ddc | /src/category/bitraversable/lemmas.lean | 78c9976d50857dffe6d9112e4db659a9d4dc6e39 | [
"Apache-2.0"
] | permissive | fpvandoorn/mathlib | b21ab4068db079cbb8590b58fda9cc4bc1f35df4 | b3433a51ea8bc07c4159c1073838fc0ee9b8f227 | refs/heads/master | 1,624,791,089,608 | 1,556,715,231,000 | 1,556,715,231,000 | 165,722,980 | 5 | 0 | Apache-2.0 | 1,552,657,455,000 | 1,547,494,646,000 | Lean | UTF-8 | Lean | false | false | 2,662 | lean | import category.bitraversable.basic
universes u
variables {t : Type u → Type u → Type u} [bitraversable t]
variables {β : Type u}
namespace bitraversable
open functor is_lawful_applicative
variables {F G : Type u → Type u}
[applicative F] [applicative G]
@[reducible]
def tfst {α α'} (f : α → F α') : t α β... |
1c625f73958f6b4d896166e1b9679139baf8d452 | 80746c6dba6a866de5431094bf9f8f841b043d77 | /src/category_theory/limits/cones.lean | 7c2bcefd72a3fa8f9b16ef7dcfa19af217c0f6b7 | [
"Apache-2.0"
] | permissive | leanprover-fork/mathlib-backup | 8b5c95c535b148fca858f7e8db75a76252e32987 | 0eb9db6a1a8a605f0cf9e33873d0450f9f0ae9b0 | refs/heads/master | 1,585,156,056,139 | 1,548,864,430,000 | 1,548,864,438,000 | 143,964,213 | 0 | 0 | Apache-2.0 | 1,550,795,966,000 | 1,533,705,322,000 | Lean | UTF-8 | Lean | false | false | 10,592 | lean | -- Copyright (c) 2017 Scott Morrison. All rights reserved.
-- Released under Apache 2.0 license as described in the file LICENSE.
-- Authors: Stephen Morgan, Scott Morrison
import category_theory.natural_isomorphism
import category_theory.whiskering
import category_theory.const
import category_theory.opposites
import ... |
d049df528f369f44b035a6210075a60a70f347ec | d406927ab5617694ec9ea7001f101b7c9e3d9702 | /src/data/polynomial/induction.lean | ff1629c69def6f171b54910958a0ee74def9ad9a | [
"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,082 | lean | /-
Copyright (c) 2018 Chris Hughes. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Chris Hughes, Johannes Hölzl, Scott Morrison, Jens Wagemaker
-/
import ring_theory.ideal.basic
import data.polynomial.basic
/-!
# Induction on polynomials
This file contains lemmas dea... |
866d5ebe62e8049fef85ffac68f68e2bcac7d038 | a45212b1526d532e6e83c44ddca6a05795113ddc | /src/category_theory/instances/CommRing/adjunctions.lean | d9bfb36357707069c8c2e5517f55f9128b81b8b9 | [
"Apache-2.0"
] | permissive | fpvandoorn/mathlib | b21ab4068db079cbb8590b58fda9cc4bc1f35df4 | b3433a51ea8bc07c4159c1073838fc0ee9b8f227 | refs/heads/master | 1,624,791,089,608 | 1,556,715,231,000 | 1,556,715,231,000 | 165,722,980 | 5 | 0 | Apache-2.0 | 1,552,657,455,000 | 1,547,494,646,000 | Lean | UTF-8 | Lean | false | false | 2,552 | lean | /- Copyright (c) 2019 Scott Morrison. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Scott Morrison, Johannes Hölzl
Multivariable polynomials on a type is the left adjoint of the
forgetful functor from commutative rings to types.
-/
import category_theory.instances.C... |
1a3e3d28d39b6fcbc90d197b8c9c6337855c340d | fecda8e6b848337561d6467a1e30cf23176d6ad0 | /src/algebraic_geometry/sheafed_space.lean | 0ec9201d85aa330b35450f761a4bebd3a46c4d49 | [
"Apache-2.0"
] | permissive | spolu/mathlib | bacf18c3d2a561d00ecdc9413187729dd1f705ed | 480c92cdfe1cf3c2d083abded87e82162e8814f4 | refs/heads/master | 1,671,684,094,325 | 1,600,736,045,000 | 1,600,736,045,000 | 297,564,749 | 1 | 0 | null | 1,600,758,368,000 | 1,600,758,367,000 | null | UTF-8 | Lean | false | false | 4,550 | 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 algebraic_geometry.presheafed_space
import topology.sheaves.sheaf
/-!
# Sheafed spaces
Introduces the category of topological spaces equipped with a sheaf (t... |
e898636a0b6c313d2df1207c722047d0c3967609 | 6432ea7a083ff6ba21ea17af9ee47b9c371760f7 | /tests/lean/run/treeNode.lean | 77c9bb009073176ed854e4b462734d31a1d99685 | [
"Apache-2.0",
"LLVM-exception",
"NCSA",
"LGPL-3.0-only",
"LicenseRef-scancode-inner-net-2.0",
"BSD-3-Clause",
"LGPL-2.0-or-later",
"Spencer-94",
"LGPL-2.1-or-later",
"HPND",
"LicenseRef-scancode-pcre",
"ISC",
"LGPL-2.1-only",
"LicenseRef-scancode-other-permissive",
"SunPro",
"CMU-Mach"... | permissive | leanprover/lean4 | 4bdf9790294964627eb9be79f5e8f6157780b4cc | f1f9dc0f2f531af3312398999d8b8303fa5f096b | refs/heads/master | 1,693,360,665,786 | 1,693,350,868,000 | 1,693,350,868,000 | 129,571,436 | 2,827 | 311 | Apache-2.0 | 1,694,716,156,000 | 1,523,760,560,000 | Lean | UTF-8 | Lean | false | false | 1,747 | lean | inductive TreeNode :=
| mkLeaf (name : String) : TreeNode
| mkNode (name : String) (children : List TreeNode) : TreeNode
def treeToList (t : TreeNode) : List String :=
match t with
| .mkLeaf name => [name]
| .mkNode name children => Id.run do
let mut r := [name]
for h : child in children do
-- We will ... |
1a1062e3dc5fb90a4b11c84309922f3cfb9aef54 | 74addaa0e41490cbaf2abd313a764c96df57b05d | /Mathlib/algebra/module/linear_map_auto.lean | 05ca5bff5db2afd7c359a313f705934209528f7f | [] | 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 | 31,859 | lean | /-
Copyright (c) 2020 Anne Baanen. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Nathaniel Thomas, Jeremy Avigad, Johannes Hölzl, Mario Carneiro, Anne Baanen
-/
import Mathlib.PrePort
import Mathlib.Lean3Lib.init.default
import Mathlib.algebra.group.hom
import Mathlib... |
ea1b417aa41f97540f91371f89d501826bd8c5cc | 74a42606b2a618112114eacdd674a7cc28b585c4 | /tpl-sec3.lean | 60498ee0cdba25ec33e552664177e0d0e57bbc5f | [] | no_license | Hodapp87/leanprover_scratch | 8c53ce6d9e666f8f14cb6162c9e9429ebbecbc8c | de347c54ee56c2a05804f80d5f28e98070507236 | refs/heads/master | 1,610,428,204,434 | 1,484,350,758,000 | 1,484,350,758,000 | 77,873,828 | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 8,866 | lean | -- Notes/exercises from:
-- https://leanprover.github.io/theorem_proving_in_lean/index.html
-- Section 3 (Propositions and Proofs)
open classical
variables p q r s : Prop
-- commutativity of ∧ and ∨
example : p ∧ q ↔ q ∧ p :=
iff.intro
-- Written out a little more verbosely so I can test some things:
(assume h... |
8cf04b970736c84edf93d2d2f773867d93b3cc42 | 64874bd1010548c7f5a6e3e8902efa63baaff785 | /tests/lean/run/assert_tac.lean | a5a7045f1c61fb2469502123a1e45de868301d22 | [
"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 | 260 | lean | import logic
variables {A : Type} {a a' : A}
definition to_eq (H : a == a') : a = a' :=
begin
assert (H₁ : ∀ (Ht : A = A), eq.rec_on Ht a = a),
intro Ht,
exact (eq.refl (eq.rec_on Ht a)),
show a = a', from
heq.rec_on H H₁ (eq.refl A)
end
|
2085479494b138d4036af0980dd668522f696613 | 4950bf76e5ae40ba9f8491647d0b6f228ddce173 | /src/algebra/lie/basic.lean | 467c0a15989b30ef9f5bc08d28e53bb158700b02 | [
"Apache-2.0"
] | permissive | ntzwq/mathlib | ca50b21079b0a7c6781c34b62199a396dd00cee2 | 36eec1a98f22df82eaccd354a758ef8576af2a7f | refs/heads/master | 1,675,193,391,478 | 1,607,822,996,000 | 1,607,822,996,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 51,642 | lean | /-
Copyright (c) 2019 Oliver Nash. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Oliver Nash
-/
import algebra.algebra.basic
import linear_algebra.bilinear_form
import linear_algebra.matrix
import tactic.noncomm_ring
/-!
# Lie algebras
This file defines Lie rings, a... |
73531b3ba5d05d90e62a482851f7c35bde014c32 | 18425d4bab0b5e4677ef791d0065e16639493248 | /data/fin/misc.lean | 771cdfed9be897c48fdb591b9aaeffad7473cf38 | [
"MIT"
] | permissive | tizmd/lean-finitary | 5feb94a2474b55c0f23e4b61b9ac42403bf222f7 | 8958fdb3fa3d9fcc304e116fd339448875025e95 | refs/heads/master | 1,611,397,193,043 | 1,497,517,825,000 | 1,497,517,825,000 | 93,048,842 | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 10,691 | lean | import function.bijection data.list.set data.fin
open fin function
namespace fin
protected
lemma le_refl {n} (a : fin n) : a ≤ a := fin.cases_on a (λ a _, nat.le_refl a)
protected
lemma le_trans {n} {a b c : fin n} : a ≤ b → b ≤ c → a ≤ c :=
fin.cases_on a (λ _ _,
fin.cases_on b (λ _ _,
fin.cases_on c (λ _ _,
ass... |
ba199f11a0a04a9b6b2042888006e7366c51134c | 7cef822f3b952965621309e88eadf618da0c8ae9 | /src/measure_theory/measurable_space.lean | 16a69eee12763e7bfb3a8c418c95a9e735f30ed6 | [
"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 | 42,857 | 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
Measurable spaces -- σ-algberas
-/
import data.set.disjointed order.galois_connection data.set.countable
/-!
# Measurable spaces and measurable functio... |
db5bf6282654d10cfae33cae7a54059f91ddb3a2 | d9d511f37a523cd7659d6f573f990e2a0af93c6f | /src/measure_theory/function/ess_sup.lean | b1108a9082ef4a09bdac21826353fd008a7db461 | [
"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 | 5,776 | lean | /-
Copyright (c) 2021 Rémy Degenne. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Rémy Degenne
-/
import measure_theory.measure.measure_space
import order.filter.ennreal
/-!
# Essential supremum and infimum
We define the essential supremum and infimum of a function `... |
067f876ec48791e2aba11d593c0258e2f16f1802 | 6094e25ea0b7699e642463b48e51b2ead6ddc23f | /library/data/finset/card.lean | b716b61420f99cd4b106d408b53e981caf22113b | [
"Apache-2.0"
] | permissive | gbaz/lean | a7835c4e3006fbbb079e8f8ffe18aacc45adebfb | a501c308be3acaa50a2c0610ce2e0d71becf8032 | refs/heads/master | 1,611,198,791,433 | 1,451,339,111,000 | 1,451,339,111,000 | 48,713,797 | 0 | 0 | null | 1,451,338,939,000 | 1,451,338,939,000 | null | UTF-8 | Lean | false | false | 10,423 | lean | /-
Copyright (c) 2015 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Author: Jeremy Avigad
Cardinality calculations for finite sets.
-/
import .to_set .bigops data.set.function data.nat.power
open nat eq.ops
namespace finset
variables {A B : Type}
vari... |
3450cd5e5942ce8b7cd5f7d3a67eac4d8199289b | cf39355caa609c0f33405126beee2739aa3cb77e | /tests/lean/do_match_fail.lean | 4ce087c01485eec98736e6bb8fc1d403a47fcb8c | [
"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 | 460 | lean | open tactic
meta def no_intros : tactic unit :=
do [] ← intros, return ()
example (p q : Prop) : p → q → p :=
begin
no_intros -- Should fail
end
example (p q : Prop) : p → q → p :=
begin
intros,
no_intros, -- Should work
assumption
end
example : list nat :=
do l ← return $ [1, 2, 3],
h::l ← return l,... |
39014112499bd9f837d779fcf118cdf248ba0041 | 159fed64bfae88f3b6a6166836d6278f953bcbf9 | /Structure/Basic.lean | 88d4f8b7c1b78efee52df61d2e6fa2bd2d6ac4cf | [
"MIT"
] | permissive | SReichelt/lean4-experiments | 3e56830c8b2fbe3814eda071c48e3c8810d254a8 | ff55357a01a34a91bf670d712637480089085ee4 | refs/heads/main | 1,683,977,454,907 | 1,622,991,121,000 | 1,622,991,121,000 | 340,765,677 | 2 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 88,103 | lean | -- An abstract formalization of "isomorphism is equality up to relabeling"
-- -------------------------------------------------------------------------
--
-- See `README.md` for more info.
--
-- This file contains the definition of `Structure` as a higher groupoid, along with related concepts, up
-- to a structure of ... |
976e1f9b8dce9065b38ce2b57353a2afaa15148e | fe84e287c662151bb313504482b218a503b972f3 | /src/combinatorics/shift.lean | cd190a82ecc7b6b03eb01fdee28a1fb6368f45e0 | [] | 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 | 6,515 | lean | /-
Copyright (c) 2019 Neil Strickland. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Neil Strickland
-/
import data.fintype.basic
import combinatorics.fibonacci
def nat.succ_emb : ℕ ↪ ℕ :=
⟨nat.succ, λ i j e, nat.succ.inj e⟩
def fin.succ_emb (n : ℕ) : (fin n) ↪... |
b5077e44269b0ed0d6321e98495bdb7589187709 | e9dbaaae490bc072444e3021634bf73664003760 | /src/Problems/2019/IMO_2019_P6.lean | f88937cd7bbfb6d3b4f868cc8e8fa190a39c1cd0 | [
"Apache-2.0"
] | permissive | liaofei1128/geometry | 566d8bfe095ce0c0113d36df90635306c60e975b | 3dd128e4eec8008764bb94e18b932f9ffd66e6b3 | refs/heads/master | 1,678,996,510,399 | 1,581,454,543,000 | 1,583,337,839,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 634 | lean | import Geo.Geo.Core
namespace Geo
open Seg Triangle
def IMO_2019_P6 : Prop :=
∀ (A B C : Point),
acute ⟨A, B, C⟩ →
¬cong ⟨A, B⟩ ⟨A, C⟩ →
let I := incenter ⟨A, B, C⟩;
∀ (D E F : Point),
let ω := incircle ⟨A, B, C⟩;
tangentAt ω (Seg.mk B C) D →
tangentAt ω (Seg.mk C A) E →
tangentAt ω (Seg.mk A B) F →
∀ (P Q R : Point... |
42dfee003c310150d64123f8b0989bda533e2117 | 8cae430f0a71442d02dbb1cbb14073b31048e4b0 | /src/category_theory/idempotents/karoubi_karoubi.lean | f2afef9d26a625588192c0bccb13b811c4b1a9fe | [
"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,915 | lean | /-
Copyright (c) 2022 Joël Riou. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Joël Riou
-/
import category_theory.idempotents.karoubi
/-!
# Idempotence of the Karoubi envelope
> THIS FILE IS SYNCHRONIZED WITH MATHLIB4.
> Any changes to this file require a correspo... |
a358dc4174d2f1cc4b6fb79bc298caef27034ed6 | 947fa6c38e48771ae886239b4edce6db6e18d0fb | /src/order/atoms.lean | a4281d76cac69f5f79920bec0ed27fc80828a5fc | [
"Apache-2.0"
] | permissive | ramonfmir/mathlib | c5dc8b33155473fab97c38bd3aa6723dc289beaa | 14c52e990c17f5a00c0cc9e09847af16fabbed25 | refs/heads/master | 1,661,979,343,526 | 1,660,830,384,000 | 1,660,830,384,000 | 182,072,989 | 0 | 0 | null | 1,555,585,876,000 | 1,555,585,876,000 | null | UTF-8 | Lean | false | false | 26,115 | 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 order.complete_boolean_algebra
import order.cover
import order.modular_lattice
import data.fintype.basic
/-!
# Atoms, Coatoms, and Simple Lattices
This modu... |
0618d0581eef529efe90db1aefe52eef0ea235e7 | 5d166a16ae129621cb54ca9dde86c275d7d2b483 | /tests/lean/run/unfold_issue.lean | aa2cb8dabe6223ee064e42615a5e12f1508f25e3 | [
"Apache-2.0"
] | permissive | jcarlson23/lean | b00098763291397e0ac76b37a2dd96bc013bd247 | 8de88701247f54d325edd46c0eed57aeacb64baf | refs/heads/master | 1,611,571,813,719 | 1,497,020,963,000 | 1,497,021,515,000 | 93,882,536 | 1 | 0 | null | 1,497,029,896,000 | 1,497,029,896,000 | null | UTF-8 | Lean | false | false | 305 | lean | def f : nat → nat → nat
| 0 := λ x, x
| (n+1) := λ x, x + 1
meta def check_expr (p : pexpr) (t : expr) : tactic unit :=
do e ← tactic.to_expr p, guard (t = e)
example (n : nat): f (n+1) n = n + 1 :=
begin
unfold f,
(tactic.target >>= check_expr ```((n + 1 = n + 1))),
reflexivity,
end
|
67936938782a2f5b01f304a319c50b27f46db40a | 4727251e0cd73359b15b664c3170e5d754078599 | /src/data/pprod.lean | 2f91209ec74047ab49e2f87eeb498eff20a874f3 | [
"Apache-2.0"
] | permissive | Vierkantor/mathlib | 0ea59ac32a3a43c93c44d70f441c4ee810ccceca | 83bc3b9ce9b13910b57bda6b56222495ebd31c2f | refs/heads/master | 1,658,323,012,449 | 1,652,256,003,000 | 1,652,256,003,000 | 209,296,341 | 0 | 1 | Apache-2.0 | 1,568,807,655,000 | 1,568,807,655,000 | null | UTF-8 | Lean | false | false | 1,281 | lean | /-
Copyright (c) 2020 Eric Wieser. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Eric Wieser
-/
import logic.basic
/-!
# Extra facts about `pprod`
-/
open function
variables {α β γ δ : Sort*}
namespace pprod
@[simp] lemma mk.eta {p : pprod α β} : pprod.mk p.1 p.2 ... |
53300eaedc3af44f5ffea41a0c0e01f47bebb1f9 | d406927ab5617694ec9ea7001f101b7c9e3d9702 | /src/combinatorics/hales_jewett.lean | 05db18003681cf421ce1a277a7ccae0bcaa2cf42 | [
"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 | 15,503 | lean | /-
Copyright (c) 2021 David Wärn. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: David Wärn
-/
import data.fintype.option
import data.fintype.pi
import data.fintype.sum
import algebra.big_operators.basic
/-!
# The Hales-Jewett theorem
We prove the Hales-Jewett theore... |
cd61f679419abc8cc33a5df5d101dca5793f4c10 | b7f22e51856f4989b970961f794f1c435f9b8f78 | /tests/lean/simplifier6.lean | 5e0f6deb307cf62729758728fdaa8c976dfd8b59 | [
"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 | 651 | lean | /- Basic pi congruence -/
import logic.connectives logic.quantifiers
namespace pi_congr1
constants (p1 q1 p2 q2 p3 q3 : Prop) (H1 : p1 ↔ q1) (H2 : p2 ↔ q2) (H3 : p3 ↔ q3)
attribute forall_congr [congr]
attribute imp_congr [congr]
attribute H1 [simp]
attribute H2 [simp]
attribute H3 [simp]
#simplify iff env 1 p1 -... |
7c6f3b5d28cdb01d225dca838a8bea7aa1888f6a | d9d511f37a523cd7659d6f573f990e2a0af93c6f | /src/measure_theory/function/ae_eq_of_integral.lean | 9caede703e3674a01114c4338ed110e0f9ed2044 | [
"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 | 22,675 | lean | /-
Copyright (c) 2021 Rémy Degenne. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Rémy Degenne
-/
import analysis.normed_space.dual
import measure_theory.function.strongly_measurable
import measure_theory.integral.set_integral
/-! # From equality of integrals to equ... |
f4cbb9ece408dd8b74741ae368d90b3e0405563b | 8cae430f0a71442d02dbb1cbb14073b31048e4b0 | /src/analysis/calculus/uniform_limits_deriv.lean | a5b1a1b9b99a3c799bec2f1bd24e655616e24181 | [
"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 | 30,240 | lean | /-
Copyright (c) 2022 Kevin H. Wilson. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Kevin H. Wilson
-/
import analysis.calculus.mean_value
import analysis.normed_space.is_R_or_C
import order.filter.curry
/-!
# Swapping limits and derivatives via uniform convergence
... |
b3dab591f284dba865ce78d8479058537642380e | 6432ea7a083ff6ba21ea17af9ee47b9c371760f7 | /src/Lean/Elab/Deriving/Hashable.lean | 434d2bfa597ee123a8d4287c9d10cea454ff1294 | [
"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 | 3,725 | lean | /-
Copyright (c) 2021 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Dany Fabian
-/
import Lean.Meta.Inductive
import Lean.Elab.Deriving.Basic
import Lean.Elab.Deriving.Util
namespace Lean.Elab.Deriving.Hashable
open Command
open Lean.Parser.Ter... |
25e246b886458c6d4cdbd0693d5601972d7ad596 | 7b89826c26634aa18c0110f1634f73027851edfe | /logic_and_proof/src/01-01.lean | 91ac3a24a4bd4b1170b4adb585fa9e6326c99bbb | [
"MIT"
] | permissive | marcofavorito/leanings | b7642344d8c9012a1cec74a804c5884297880c4d | 581b83be66ff4f8dd946fb6a1bb045d2ddf91076 | refs/heads/master | 1,672,310,991,244 | 1,603,031,766,000 | 1,603,031,766,000 | 279,163,004 | 1 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 723 | lean | import data.nat.prime
open nat
theorem sqrt_two_irrational {a b : ℕ} (co : gcd a b = 1) :
a^2 ≠ 2 * b^2 :=
assume h : a^2 = 2 * b^2,
have 2 ∣ a^2,
by simp [h],
have 2 ∣ a,
from prime.dvd_of_dvd_pow prime_two this,
exists.elim this $
assume (c : nat) (aeq : a = 2 * c),
have 2 * (2 * c^2) = 2 * b^2,
by simp [eq.... |
386181ffe92dccb74681723ded1ee687b9521de3 | fecda8e6b848337561d6467a1e30cf23176d6ad0 | /src/measure_theory/integration.lean | 0ab312636b37bf3a92d92207a16b46f04e847835 | [
"Apache-2.0"
] | permissive | spolu/mathlib | bacf18c3d2a561d00ecdc9413187729dd1f705ed | 480c92cdfe1cf3c2d083abded87e82162e8814f4 | refs/heads/master | 1,671,684,094,325 | 1,600,736,045,000 | 1,600,736,045,000 | 297,564,749 | 1 | 0 | null | 1,600,758,368,000 | 1,600,758,367,000 | null | UTF-8 | Lean | false | false | 67,792 | lean | /-
Copyright (c) 2018 Mario Carneiro. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Mario Carneiro, Johannes Hölzl
-/
import measure_theory.measure_space
import measure_theory.borel_space
import data.indicator_function
import data.support
/-!
# Lebesgue integral for ... |
3b0f099e725734f37211e8f873ee8edb279a21ef | fa02ed5a3c9c0adee3c26887a16855e7841c668b | /src/tactic/itauto.lean | fcae3746b5b341cc4554bf7b78f26f2fa6d96dec | [
"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 | 25,034 | lean | /-
Copyright (c) 2021 Mario Carneiro. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Mario Carneiro
-/
import tactic.hint
/-!
# Intuitionistic tautology (`itauto`) decision procedure
The `itauto` tactic will prove any intuitionistic tautology. It implements the well... |
704562e0fb5b275c97b60573be42638fc1baa884 | fcf3ffa92a3847189ca669cb18b34ef6b2ec2859 | /src/world1/level4.lean | a26b977fb8c56d590553182b2d8ecdbd589fd52f | [
"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 | 196 | lean | import mynat.definition
import mynat.add
namespace mynat
lemma add_succ_zero (a : mynat) : a + succ(0) = succ(a) :=
begin [nat_num_game]
rw add_succ,
rw add_zero,
refl
end
end mynat |
31f9610412f5a509227cbb6ba66b9eb4ab6c6e34 | 8cae430f0a71442d02dbb1cbb14073b31048e4b0 | /src/topology/algebra/valued_field.lean | 5d61bc738ed66261bd11d9f4a6c61a3e1b16cf71 | [
"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 | 14,728 | lean | /-
Copyright (c) 2021 Patrick Massot. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Patrick Massot
-/
import topology.algebra.valuation
import topology.algebra.with_zero_topology
import topology.algebra.uniform_field
/-!
# Valued fields and their completions
> THIS... |
ae9647da0f6004f5245cd3e44a4692261fc8bd5a | 957a80ea22c5abb4f4670b250d55534d9db99108 | /tests/lean/run/choice_anon_ctor.lean | 242a84f4ea6cbd16b11976c1de3d2e337fe10f73 | [
"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 | 336 | lean | import data.vector
-- constant vector.nil {α} : vector α 0
-- constant vector.cons {α n} : α → vector α n → vector α (nat.succ n)
-- notation a :: b := vector.cons a b
notation `[` l:(foldr `, ` (h t, vector.cons h t) vector.nil `]`) := l
structure author :=
(name : string)
def f : list author := [{name := "it's a m... |
0cfc2bc3a210d12fa25dfe9ad81f5b11c4535f5f | c31182a012eec69da0a1f6c05f42b0f0717d212d | /src/breen_deligne/universal_map.lean | a60e1272376c79b5c327f80ebe9693df0bdc3342 | [] | 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 | 19,457 | lean | import linear_algebra.matrix
import group_theory.free_abelian_group
import algebra.direct_sum
import algebra.big_operators.finsupp
import for_mathlib.free_abelian_group
import for_mathlib.kronecker
import hacks_and_tricks.type_pow
import hacks_and_tricks.by_exactI_hack
/-!
# Breen-Deligne resolutions
Reference:
htt... |
8711bef7341ae77c0b4e2eb4b8d971ef8ad6a8f2 | 9dd3f3912f7321eb58ee9aa8f21778ad6221f87c | /library/init/data/list/lemmas.lean | 22933bb35a9c12170045948fbc9569f55cf6f777 | [
"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 | 14,154 | lean | /-
Copyright (c) 2014 Parikshit Khanna. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Author: Parikshit Khanna, Jeremy Avigad, Leonardo de Moura, Floris van Doorn
-/
prelude
import init.data.list.basic init.function init.meta init.data.nat.lemmas
import init.meta.interactive i... |
247301d8e885c2083695e2a842e46fd5244a1c7f | 2eab05920d6eeb06665e1a6df77b3157354316ad | /src/algebra/pointwise.lean | 90ae6333f9b4edb0865b00da9dd8d3f6a50ceffd | [
"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 | 34,783 | lean | /-
Copyright (c) 2019 Johan Commelin. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Johan Commelin, Floris van Doorn
-/
import algebra.module.basic
import data.set.finite
import group_theory.submonoid.basic
/-!
# Pointwise addition, multiplication, and scalar multipl... |
e03ff86c5abf1e50d5531f22127f259c6568cba0 | a45212b1526d532e6e83c44ddca6a05795113ddc | /src/order/bounds.lean | 0df78b245f2510104c77187278912e31612add13 | [
"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 | 6,650 | 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
(Least / Greatest) upper / lower bounds
-/
import order.complete_lattice
open set lattice
universes u v w x
variables {α : Type u} {β : Type v} {γ : Type w} {ι : Sort x... |
9eb38479fb3bd47182d730b016e7f2b3b9c2b384 | d1a52c3f208fa42c41df8278c3d280f075eb020c | /src/Lean/LoadDynlib.lean | cdcac4dcf2b406bfa3b2b0de4874599ef44fe449 | [
"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 | 493 | lean | /-
Copyright (c) 2021 Mac Malone. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Mac Malone
-/
namespace Lean
/--
Dynamically loads a shared library so that its symbols can be used by
the Lean interpreter (e.g., for interpreting `@[extern]` declarations).
Equivalent ... |
edf8fe1ee77a51266cac2e135cd59fc97de3e98b | fa02ed5a3c9c0adee3c26887a16855e7841c668b | /src/category_theory/limits/preserves/shapes/binary_products.lean | 533588f15825cec8cb12bd041f918d12de65355b | [
"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,409 | 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.binary_products
import category_theory.limits.preserves.basic
/-!
# Preserving binary products
Constructions to relate the notions ... |
c82099ed6a0a0a6c893c9cfe16c811e40c7aa03d | 83c8119e3298c0bfc53fc195c41a6afb63d01513 | /library/init/algebra/field.lean | bacb40a668662a0bba4f6e35d39a3ab01bdac173 | [
"Apache-2.0"
] | permissive | anfelor/lean | 584b91c4e87a6d95f7630c2a93fb082a87319ed0 | 31cfc2b6bf7d674f3d0f73848b842c9c9869c9f1 | refs/heads/master | 1,610,067,141,310 | 1,585,992,232,000 | 1,585,992,232,000 | 251,683,543 | 0 | 0 | Apache-2.0 | 1,585,676,570,000 | 1,585,676,569,000 | null | UTF-8 | Lean | false | false | 12,701 | lean | /-
Copyright (c) 2014 Robert Lewis. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Robert Lewis, Leonardo de Moura
Structures with multiplicative and additive components, including division rings and fields.
The development is modeled after Isabelle's library.
-/
prel... |
27b9dbfba786dbd4cb9530b6d58f39dc2ff7fa09 | 8cae430f0a71442d02dbb1cbb14073b31048e4b0 | /src/data/list/rdrop.lean | 836372335cadcfaeef1308970c391dedcd9f3b36 | [
"Apache-2.0"
] | permissive | leanprover-community/mathlib | 56a2cadd17ac88caf4ece0a775932fa26327ba0e | 442a83d738cb208d3600056c489be16900ba701d | refs/heads/master | 1,693,584,102,358 | 1,693,471,902,000 | 1,693,471,902,000 | 97,922,418 | 1,595 | 352 | Apache-2.0 | 1,694,693,445,000 | 1,500,624,130,000 | Lean | UTF-8 | Lean | false | false | 7,007 | lean | /-
Copyright (c) 2022 Yakov Pechersky. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Yakov Pechersky
-/
import data.list.basic
import data.list.infix
/-!
# Dropping or taking from lists on the right
> THIS FILE IS SYNCHRONIZED WITH MATHLIB4.
> Any changes to this ... |
b2f6e1d45d1f7ecab5dc7b49511916b771125b5d | d406927ab5617694ec9ea7001f101b7c9e3d9702 | /src/category_theory/category/Groupoid.lean | 2d6b843ef1af2095e9dc0d0fa33bbb4c945d0e2f | [
"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,943 | 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 category_theory.single_obj
import category_theory.limits.shapes.products
import category_theory.pi.basic
import category_theory.limits.is_limit
/-!
# Catego... |
4ee2f6d9ddec14589be23e6a0b2e3a378bf21599 | 9dc8cecdf3c4634764a18254e94d43da07142918 | /src/analysis/calculus/local_extr.lean | 5cec762b19290d6d1c6da3c8f6825cf7f87f5208 | [
"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 | 18,206 | 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 analysis.calculus.deriv
import data.polynomial.field_division
import topology.algebra.order.extend_from
import topology.algebra.polynomial
import topology.lo... |
a5aca7f418f8b033ad59ae89a80526280c831cf9 | ff5230333a701471f46c57e8c115a073ebaaa448 | /tests/lean/1862.lean | f6bfab2eb368da0beda433adb7920a4f61528a0c | [
"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 | 125 | lean | variable R : Type
variable [ring R]
example : -(-(1:R)) = 1 :=
begin
trace_state,
exact neg_neg 1,
end
#check - -(1:R)
|
b4f9588aec0c7c4bcc12fa95ee98856b00614767 | fa02ed5a3c9c0adee3c26887a16855e7841c668b | /src/tactic/linarith/frontend.lean | 80feb1ee51be8ffb659bd9d72349c33b0d6b9cc0 | [
"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 | 18,593 | 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
-/
import tactic.linarith.verification
import tactic.linarith.preprocessing
/-!
# `linarith`: solving linear arithmetic goals
`linarith` is a tactic for solving goa... |
29a6667ad8fb5771421f926c7cfa4c13ca85e7a5 | 42610cc2e5db9c90269470365e6056df0122eaa0 | /hott/hit/colimit.hlean | a9d2fd38ef6e18642090de7c03c28f61a5b7b829 | [
"Apache-2.0"
] | permissive | tomsib2001/lean | 2ab59bfaebd24a62109f800dcf4a7139ebd73858 | eb639a7d53fb40175bea5c8da86b51d14bb91f76 | refs/heads/master | 1,586,128,387,740 | 1,468,968,950,000 | 1,468,968,950,000 | 61,027,234 | 0 | 0 | null | 1,465,813,585,000 | 1,465,813,585,000 | null | UTF-8 | Lean | false | false | 7,563 | 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 is_trunc
namespace colimit
secti... |
746a18c1d283e4809f1932c12f7b74883abef685 | 42610cc2e5db9c90269470365e6056df0122eaa0 | /hott/types/trunc.hlean | a67bd7d1122f1750134c7446829c07aaf05f98a7 | [
"Apache-2.0"
] | permissive | tomsib2001/lean | 2ab59bfaebd24a62109f800dcf4a7139ebd73858 | eb639a7d53fb40175bea5c8da86b51d14bb91f76 | refs/heads/master | 1,586,128,387,740 | 1,468,968,950,000 | 1,468,968,950,000 | 61,027,234 | 0 | 0 | null | 1,465,813,585,000 | 1,465,813,585,000 | null | UTF-8 | Lean | false | false | 29,380 | hlean | /-
Copyright (c) 2015 Jakob von Raumer. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Floris van Doorn
Properties of trunc_index, is_trunc, trunctype, trunc, and the pointed versions of these
-/
-- NOTE: the fact that (is_trunc n A) is a mere proposition is proved i... |
3aa032fa93bcf3e35a5c7f36018d04937f571050 | d9d511f37a523cd7659d6f573f990e2a0af93c6f | /src/data/nat/prime.lean | bb3b6b6abbe7af8ea90495bef56a96f30ee55251 | [
"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 | 38,062 | lean | /-
Copyright (c) 2015 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Leonardo de Moura, Jeremy Avigad, Mario Carneiro
-/
import data.nat.sqrt
import data.nat.gcd
import data.list.sort
import algebra.group_power
import tactic.wlog
import tactic.n... |
56502076c60c4153e66f1266b8e771e36ad4c1f2 | 4727251e0cd73359b15b664c3170e5d754078599 | /src/group_theory/commutator.lean | c738ac771c4b2f724fbfe4f0eb8cf40b7931fb0e | [
"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,896 | lean | /-
Copyright (c) 2021 Jordan Brown, Thomas Browning, Patrick Lutz. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Jordan Brown, Thomas Browning, Patrick Lutz
-/
import data.bracket
import group_theory.subgroup.basic
import tactic.group
/-!
# Commutators of Subgroups
... |
c1186dd423e5866dd9902c3f21635ae3ac8984f0 | 57c233acf9386e610d99ed20ef139c5f97504ba3 | /src/data/complex/exponential.lean | 25a0311f3fa603cb6ffff46ea3724620cbfebfef | [
"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 | 66,398 | lean | /-
Copyright (c) 2018 Chris Hughes. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Chris Hughes, Abhimanyu Pallavi Sudhir
-/
import algebra.geom_sum
import data.complex.basic
import data.nat.choose.sum
/-!
# Exponential, trigonometric and hyperbolic trigonometric func... |
de257ac94f534060f5f3f0169d2fc4c53e184b56 | 626e312b5c1cb2d88fca108f5933076012633192 | /src/data/list/alist.lean | 8032208bc9213b663713ff407ec5da9bc1ae4fbc | [
"Apache-2.0"
] | permissive | Bioye97/mathlib | 9db2f9ee54418d29dd06996279ba9dc874fd6beb | 782a20a27ee83b523f801ff34efb1a9557085019 | refs/heads/master | 1,690,305,956,488 | 1,631,067,774,000 | 1,631,067,774,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 11,557 | lean | /-
Copyright (c) 2018 Sean Leather. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Sean Leather, Mario Carneiro
-/
import data.list.sigma
/-!
# Association Lists
This file makes use of the contents of the `data.list.sigma` file to define association lists. These
asso... |
c5de02881c2be5003fb448f522f978feabff1129 | 33340b3a23ca62ef3c8a7f6a2d4e14c07c6d3354 | /lia/sqe.lean | deb3b941381699dfe7d9c5ca408ccdc5ca52a330 | [] | 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 | 5,066 | lean | import .formula .asubst
variables {α β : Type}
open list atom tactic
def formula.atoms : formula → list atom
| ⊤' := []
| ⊥' := []
| (A' a) := [a]
| (¬' p) := p.atoms
| (p ∨' q) := p.atoms ++ q.atoms
| (p ∧' q) := p.atoms ++ q.atoms
| (∃' p) := p.atoms
def head_coeff : atom → znum
| (le i []) := 0
| (le i (... |
24faa1b43759abe7ec2021ca339bddfb62184251 | b7f22e51856f4989b970961f794f1c435f9b8f78 | /tests/lean/pp_all.lean | d6bb290d7d28a9ff661dea82ea238d266dcce698 | [
"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 | 165 | lean | import data.nat
open nat
variables {a : nat}
abbreviation b : num := 2
check (λ x, x) a + of_num b = 10
set_option pp.all true
check (λ x, x) a + of_num b = 10
|
2c661aa0c46fa197a5e15628fdea76d09311c279 | 0845ae2ca02071debcfd4ac24be871236c01784f | /library/init/control/reader.lean | bd5251e5ec0b4396ff8b529679344c43b566a54b | [
"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 | 5,356 | lean | /-
Copyright (c) 2017 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Sebastian Ullrich
The Reader monad transformer for passing immutable State.
-/
prelude
import init.control.lift init.control.id init.control.alternative init.control.except
un... |
c5c5d1f4b89ce308c4a1c38e99006ce984c46ba7 | 9028d228ac200bbefe3a711342514dd4e4458bff | /src/order/rel_iso.lean | a2c4570043ef2162f42101e612ab60dc383e96c6 | [
"Apache-2.0"
] | permissive | mcncm/mathlib | 8d25099344d9d2bee62822cb9ed43aa3e09fa05e | fde3d78cadeec5ef827b16ae55664ef115e66f57 | refs/heads/master | 1,672,743,316,277 | 1,602,618,514,000 | 1,602,618,514,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 23,763 | 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 logic.embedding
import order.rel_classes
import data.fin
open function
universes u v w
variables {α : Type*} {β : Type*} {γ : Type*}
{r : α → α → Prop} {s ... |
a8d27a4eb514819b9eb2f34d6533b519a3d62488 | 618003631150032a5676f229d13a079ac875ff77 | /src/linear_algebra/special_linear_group.lean | dced89db1dc944d2aad5c7576ae14abeaf9a2e2e | [
"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 | 5,688 | lean | /-
Copyright (c) 2020 Anne Baanen. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Author: Anne Baanen.
The Special Linear group $SL(n, R)$
-/
import linear_algebra.matrix
import linear_algebra.nonsingular_inverse
/-!
# The Special Linear group $SL(n, R)$
This file de... |
a76c3fa34d5a6f957bf136b25dbcc757001b9ef2 | 63abd62053d479eae5abf4951554e1064a4c45b4 | /src/control/monad/basic.lean | d861afeea16c90bc012a25d20092f5ad5a3f7de7 | [
"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 | 2,722 | lean | /-
Copyright (c) 2019 Simon Hudon. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Author(s): Simon Hudon
-/
import tactic.basic
import data.equiv.basic
/-!
# Monad
## Attributes
* ext
* functor_norm
* monad_norm
## Implementation Details
Set of rewrite rules and automat... |
e867e642463cf97d29384095f849dfc130db76bf | 690889011852559ee5ac4dfea77092de8c832e7e | /src/algebraic_geometry/stalks.lean | c3867512d12a73dc6b3d7997137c41407c340aae | [
"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 | 1,900 | 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 algebraic_geometry.presheafed_space
import topology.sheaves.stalks
/-!
# Stalks for presheaved spaces
This file lifts constructions of stalks and pushforward... |
c3c015c79413e55839165cecb68c60c1da8f2239 | d1bbf1801b3dcb214451d48214589f511061da63 | /src/data/set/lattice.lean | d06bcba087a1cf42208db30095bb5ffcc946f293 | [
"Apache-2.0"
] | permissive | cheraghchi/mathlib | 5c366f8c4f8e66973b60c37881889da8390cab86 | f29d1c3038422168fbbdb2526abf7c0ff13e86db | refs/heads/master | 1,676,577,831,283 | 1,610,894,638,000 | 1,610,894,638,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 49,785 | 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... |
896335862a10e1da9a22cc09bc877eb70d5ba97e | 206422fb9edabf63def0ed2aa3f489150fb09ccb | /src/topology/homeomorph.lean | bb7797a744381322c53a2729db098a4063bdbe30 | [
"Apache-2.0"
] | permissive | hamdysalah1/mathlib | b915f86b2503feeae268de369f1b16932321f097 | 95454452f6b3569bf967d35aab8d852b1ddf8017 | refs/heads/master | 1,677,154,116,545 | 1,611,797,994,000 | 1,611,797,994,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 11,474 | lean | /-
Copyright (c) 2019 Reid Barton. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Johannes Hölzl, Patrick Massot, Sébastien Gouëzel, Zhouhang Zhou, Reid Barton
-/
import topology.dense_embedding
open set filter
open_locale topological_space
variables {α : Type*} {β :... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.