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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
1febb72e74321c8c7842af7063e2050cd355f81a | 55c7fc2bf55d496ace18cd6f3376e12bb14c8cc5 | /src/deprecated/subgroup.lean | ba6ad5c7e35e3463118362775afc0f57b492d6b1 | [
"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 | 28,459 | 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, Mitchell Rowett, Scott Morrison, Johan Commelin, Mario Carneiro,
Michael Howes
-/
import group_theory.subgroup
import deprecated.submonoid
open set function
variable... |
1f5466ba91475e68f2a1bbc158396d82c435e6c5 | 6fbf10071e62af7238f2de8f9aa83d55d8763907 | /examples/implication_properties.lean | e26b324c6f3d342f883b6f7cd6c9d434aeb9f0b9 | [] | no_license | HasanMukati/uva-cs-dm-s19 | ee5aad4568a3ca330c2738ed579c30e1308b03b0 | 3e7177682acdb56a2d16914e0344c10335583dcf | refs/heads/master | 1,596,946,213,130 | 1,568,221,949,000 | 1,568,221,949,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 3,969 | lean | axiom em: ∀(P: Prop), P ∨ ¬P
-- Does (A → B) ↔ (¬B → ¬A)?
example: ∀(A B: Prop),
(A → B) ↔ (¬B → ¬A) :=
begin
intros,
split,
-- (A → B) → ¬B → ¬A
assume pf_A_to_B,
assume pf_not_B,
assume pf_A,
have pf_B := pf_A_to_B pf_A,
contradiction,
-- ¬B → ¬A → (A → B)
assume pf_not_B_to_no... |
8ba2f2cc15ead71cee4a2148c9d359f73dfc0e09 | 624f6f2ae8b3b1adc5f8f67a365c51d5126be45a | /tests/lean/run/CoeNew.lean | fe7efaa974537995bdd35cb0e9b252f414cb6c47 | [
"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 | 749 | lean | universes u v w
instance boolToNat : Coe Bool Nat :=
{ coe := fun b => cond b 1 0 }
instance natToBool : Coe Nat Bool :=
{ coe := fun n => match n with
| 0 => false
| _ => true }
structure ConstantFunction (α β : Type) :=
(f : α → β)
(h : ∀ a₁ a₂, f a₁ = f a₂)
instance constantFunctionCoe {α β : Type} : CoeFun ... |
05bb8db7ad8b2b7415aa9c0c0a9a77a93ab46d07 | bdb33f8b7ea65f7705fc342a178508e2722eb851 | /set_theory/ordinal.lean | 30999842d2ecd09cfae154f49adcc11b31207716 | [
"Apache-2.0"
] | permissive | rwbarton/mathlib | 939ae09bf8d6eb1331fc2f7e067d39567e10e33d | c13c5ea701bb1eec057e0a242d9f480a079105e9 | refs/heads/master | 1,584,015,335,862 | 1,524,142,167,000 | 1,524,142,167,000 | 130,614,171 | 0 | 0 | Apache-2.0 | 1,548,902,667,000 | 1,524,437,371,000 | Lean | UTF-8 | Lean | false | false | 117,119 | lean | /-
Copyright (c) 2017 Johannes Hölzl. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Author: Mario Carneiro
Ordinal arithmetic.
Ordinals are defined as equivalences of well-ordered sets by order isomorphism.
-/
import order.order_iso set_theory.cardinal data.sum
noncomputable... |
c2c479f9e8441cb91a39165fc5201a3e7ba127eb | 9dc8cecdf3c4634764a18254e94d43da07142918 | /src/ring_theory/perfection.lean | f2ee9c480787b2da4d1dd10cd11f7f61da697020 | [
"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 | 25,419 | lean | /-
Copyright (c) 2020 Kenny Lau. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Kenny Lau
-/
import algebra.char_p.pi
import algebra.char_p.quotient
import algebra.char_p.subring
import algebra.ring.pi
import analysis.special_functions.pow
import field_theory.perfect_... |
edf0ea33a3dc1a2a96a46deffae1b0d251f30032 | cc060cf567f81c404a13ee79bf21f2e720fa6db0 | /lean/20170403-segfault.lean | 46f4c8cd5e90a2ce8c89ca9e2e526d0b4370c4e3 | [
"Apache-2.0"
] | permissive | semorrison/proof | cf0a8c6957153bdb206fd5d5a762a75958a82bca | 5ee398aa239a379a431190edbb6022b1a0aa2c70 | refs/heads/master | 1,610,414,502,842 | 1,518,696,851,000 | 1,518,696,851,000 | 78,375,937 | 2 | 1 | null | null | null | null | UTF-8 | Lean | false | false | 301 | lean | open list tactic monad expr
meta def induction_on_pairs : tactic unit :=
repeat ( do l ← local_context,
l.reverse.mfor' $ λ h, do
```(prod _ _) ← infer_type h >>= whnf | skip,
induction h [ const_name h ] >> skip )
lemma f ( p : ℕ × ℕ ) : ℕ :=
begin
induction_on_pairs
end |
39e93bd02b7ffb66a5575050153828183d9219f4 | 35677d2df3f081738fa6b08138e03ee36bc33cad | /src/tactic/slice.lean | 800244fafce8e79e9b64795a5f52f4de40f3857b | [
"Apache-2.0"
] | permissive | gebner/mathlib | eab0150cc4f79ec45d2016a8c21750244a2e7ff0 | cc6a6edc397c55118df62831e23bfbd6e6c6b4ab | refs/heads/master | 1,625,574,853,976 | 1,586,712,827,000 | 1,586,712,827,000 | 99,101,412 | 1 | 0 | Apache-2.0 | 1,586,716,389,000 | 1,501,667,958,000 | Lean | UTF-8 | Lean | false | false | 2,953 | 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.category
open category_theory
-- TODO someone might like to generalise this tactic to work with other associative structures.
namespace tact... |
c3e6af922fb8b6a06f50b08b1963816572dd412f | d406927ab5617694ec9ea7001f101b7c9e3d9702 | /src/algebra/tropical/big_operators.lean | ac06a7bf8b82551049e8ca58b3c72a2656f3f10a | [
"Apache-2.0"
] | permissive | alreadydone/mathlib | dc0be621c6c8208c581f5170a8216c5ba6721927 | c982179ec21091d3e102d8a5d9f5fe06c8fafb73 | refs/heads/master | 1,685,523,275,196 | 1,670,184,141,000 | 1,670,184,141,000 | 287,574,545 | 0 | 0 | Apache-2.0 | 1,670,290,714,000 | 1,597,421,623,000 | Lean | UTF-8 | Lean | false | false | 4,752 | 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.big_operators.basic
import data.list.min_max
import algebra.tropical.basic
import order.conditionally_complete_lattice.finset
/-!
# Tropicalization... |
f93f38ec8aa99556773e99cc180850a5f670a12d | f3849be5d845a1cb97680f0bbbe03b85518312f0 | /tests/lean/run/fun.lean | b39685269a249fd3f346643c73c74d29c1a01734 | [
"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 | 320 | lean | open function bool
constant f : num → bool
constant g : num → num
#check f ∘ g ∘ g
#check (id : num → num)
constant h : num → bool → num
#check swap h
#check swap h ff num.zero
#check (swap h ff num.zero : num)
constant f1 : num → num → bool
constant f2 : bool → num
#check (f1 on f2) ff tt
|
822c49ee412b6ede1e11c7c6471f55eb78b73475 | 2eab05920d6eeb06665e1a6df77b3157354316ad | /src/algebra/module/pi.lean | ef330d56da6ea4ac632df479d4fadc1dc7ea73fc | [
"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 | 9,669 | 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 algebra.module.basic
import algebra.regular.smul
import algebra.ring.pi
/-!
# Pi instances for module and multiplicative actions
This file defines ... |
c29a654505833921e1c00890e547aefc80e82f5f | 6432ea7a083ff6ba21ea17af9ee47b9c371760f7 | /src/Lean/Elab/PreDefinition/WF/Rel.lean | 9b872e6592063ab88505f3ffe57e5e0da7b3d0bc | [
"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 | 7,710 | lean | /-
Copyright (c) 2021 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Leonardo de Moura
-/
import Lean.Meta.Tactic.Apply
import Lean.Meta.Tactic.Cases
import Lean.Meta.Tactic.Rename
import Lean.Elab.SyntheticMVars
import Lean.Elab.PreDefinition.Ba... |
fffae036ae8a31681ff310768d30f6925e25f93b | 947fa6c38e48771ae886239b4edce6db6e18d0fb | /src/geometry/manifold/diffeomorph.lean | a1b654d4ce246ade685ac42223733ebcd9cf8f8a | [
"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 | 20,959 | lean | /-
Copyright © 2020 Nicolò Cavalleri. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Nicolò Cavalleri, Yury Kudryashov
-/
import geometry.manifold.cont_mdiff_map
/-!
# Diffeomorphisms
This file implements diffeomorphisms.
## Definitions
* `diffeomorph I I' M M' n`:... |
7569944bf7c8b907029038eb0e362675cd278c45 | a9d0fb7b0e4f802bd3857b803e6c5c23d87fef91 | /hott/algebra/hott.hlean | a4b81d20ebc5989cca74a573f48c24125864a9b1 | [
"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 | 3,134 | hlean | /-
Copyright (c) 2015 Floris van Doorn. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Author: Floris van Doorn
Theorems about algebra specific to HoTT
-/
import .group arity types.pi prop_trunc types.unit .bundled
open equiv eq is_trunc unit
namespace algebra
definition... |
52473672e79d3778cd45efd50ffd699673258e49 | 8cae430f0a71442d02dbb1cbb14073b31048e4b0 | /src/category_theory/triangulated/rotate.lean | 748094c3760710522051d4c5a56a3b331b71c56d | [
"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,669 | lean | /-
Copyright (c) 2021 Luke Kershaw. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Luke Kershaw, Joël Riou
-/
import category_theory.preadditive.additive_functor
import category_theory.triangulated.basic
/-!
# Rotate
> THIS FILE IS SYNCHRONIZED WITH MATHLIB4.
> Any c... |
e5a408735da7e13b905f452ae24df9de651711af | a9d0fb7b0e4f802bd3857b803e6c5c23d87fef91 | /library/theories/measure_theory/extended_real.lean | c2c6748668d6c138616dbf041357779d4a1eeef8 | [
"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 | 15,921 | lean | /-
Copyright (c) 2015 Jacob Gross. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Jacob Gross, Jeremy Avigad
Extended reals.
-/
import data.real
open real eq.ops classical
-- This is a hack, to get around the fact that the top level names are inaccessible when
-- def... |
a68ac8659b9e23730edb6d0217ff2cccdae594d5 | efce24474b28579aba3272fdb77177dc2b11d7aa | /src/homotopy_theory/topological_spaces/cofibrations.lean | 1c4e226139b88fd46fe608f8d81d97388196f911 | [
"Apache-2.0"
] | permissive | rwbarton/lean-homotopy-theory | cff499f24268d60e1c546e7c86c33f58c62888ed | 39e1b4ea1ed1b0eca2f68bc64162dde6a6396dee | refs/heads/lean-3.4.2 | 1,622,711,883,224 | 1,598,550,958,000 | 1,598,550,958,000 | 136,023,667 | 12 | 6 | Apache-2.0 | 1,573,187,573,000 | 1,528,116,262,000 | Lean | UTF-8 | Lean | false | false | 5,248 | lean | import category_theory.isomorphism
import homotopy_theory.formal.cylinder.hep
import .category
import .colimits
import .cylinder
import .interval_endpoints
import .pair
import .pushout_lemmas
open set
open category_theory
open category_theory.category
local notation f ` ∘ `:80 g:80 := g ≫ f
open homotopy_theory.cyl... |
be5dfcfbe53174fc342783153409356a82737f5f | 57c233acf9386e610d99ed20ef139c5f97504ba3 | /src/category_theory/limits/constructions/finite_products_of_binary_products.lean | 8655f5d0cdeb34f3b23a71264cc6786ff42d8f5b | [
"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 | 13,684 | lean | /-
Copyright (c) 2020 Bhavik Mehta. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Bhavik Mehta
-/
import category_theory.limits.preserves.shapes.binary_products
import category_theory.limits.preserves.shapes.products
import category_theory.limits.shapes.binary_product... |
09e56729ddfb569be22d61ba2910b38c133b0016 | 82e44445c70db0f03e30d7be725775f122d72f3e | /src/data/set/function.lean | 6449ca013815f4a830dcf9fcb668052963601f59 | [
"Apache-2.0"
] | permissive | stjordanis/mathlib | 51e286d19140e3788ef2c470bc7b953e4991f0c9 | 2568d41bca08f5d6bf39d915434c8447e21f42ee | refs/heads/master | 1,631,748,053,501 | 1,627,938,886,000 | 1,627,938,886,000 | 228,728,358 | 0 | 0 | Apache-2.0 | 1,576,630,588,000 | 1,576,630,587,000 | null | UTF-8 | Lean | false | false | 37,261 | lean | /-
Copyright (c) 2014 Jeremy Avigad. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Jeremy Avigad, Andrew Zipperer, Haitao Zhang, Minchao Wu, Yury Kudryashov
-/
import data.set.basic
import logic.function.conjugate
/-!
# Functions over sets
## Main definitions
### P... |
be0f742d846e6fc98e28b0b0ca2975e4a704f3f0 | e898bfefd5cb60a60220830c5eba68cab8d02c79 | /uexp/src/uexp/rules/pullAggregateThroughUnion.lean | 16bbd87f82a74647bc1d5ccd0a176f6e2165a927 | [
"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,000 | lean | import ..sql
import ..tactics
import ..u_semiring
import ..extra_constants
import ..cosette_tactics
open Expr
open Proj
open Pred
open SQL
open tree
notation `int` := datatypes.int
theorem rule:
forall ( Γ scm_t scm_account scm_bonus scm_dept scm_emp: Schema) (rel_t: relation scm_t) (rel_account: relation scm_a... |
ed59f6b0d4f39504e409f670fae99818561073d2 | 8d65764a9e5f0923a67fc435eb1a5a1d02fd80e3 | /src/topology/metric_space/basic.lean | 80d1378fb6855eb431042f09257e72c8da4d12c9 | [
"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 | 92,063 | lean | /-
Copyright (c) 2015, 2017 Jeremy Avigad. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Jeremy Avigad, Robert Y. Lewis, Johannes Hölzl, Mario Carneiro, Sébastien Gouëzel
-/
import topology.metric_space.emetric_space
import topology.algebra.ordered.basic
import data.... |
8e96bcc265855ff653b729e031552a7a4dd92384 | 8b9f17008684d796c8022dab552e42f0cb6fb347 | /library/logic/eq.lean | 12db9e237ca381db531345c66a918379726c1182 | [
"Apache-2.0"
] | permissive | chubbymaggie/lean | 0d06ae25f9dd396306fb02190e89422ea94afd7b | d2c7b5c31928c98f545b16420d37842c43b4ae9a | refs/heads/master | 1,611,313,622,901 | 1,430,266,839,000 | 1,430,267,083,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 4,497 | lean | /-
Copyright (c) 2014 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Module: logic.eq
Authors: Leonardo de Moura, Jeremy Avigad, Floris van Doorn
Additional declarations/theorems about equality. See also init.datatypes and init.logic.
-/
open eq.ops
n... |
e5893bb4455ffdb4021f3a07cc4b31b37b109e72 | 94e33a31faa76775069b071adea97e86e218a8ee | /src/analysis/normed_space/add_torsor_bases.lean | 80e0844abce21f02c6f602d6aea398f3c7265e5c | [
"Apache-2.0"
] | permissive | urkud/mathlib | eab80095e1b9f1513bfb7f25b4fa82fa4fd02989 | 6379d39e6b5b279df9715f8011369a301b634e41 | refs/heads/master | 1,658,425,342,662 | 1,658,078,703,000 | 1,658,078,703,000 | 186,910,338 | 0 | 0 | Apache-2.0 | 1,568,512,083,000 | 1,557,958,709,000 | Lean | UTF-8 | Lean | false | false | 7,411 | lean | /-
Copyright (c) 2021 Oliver Nash. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Oliver Nash
-/
import analysis.normed_space.banach
import analysis.normed_space.finite_dimension
import analysis.calculus.affine_map
import analysis.convex.combination
import linear_algeb... |
e250c767933c21291a660bd33b42f1718fa28bff | 4727251e0cd73359b15b664c3170e5d754078599 | /src/linear_algebra/matrix/charpoly/coeff.lean | 023aab0177aa1013ac35d7dc9f387a29a548e846 | [
"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,070 | lean | /-
Copyright (c) 2020 Aaron Anderson, Jalex Stark. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Aaron Anderson, Jalex Stark
-/
import data.polynomial.expand
import linear_algebra.matrix.charpoly.basic
/-!
# Characteristic polynomials
We give methods for computing ... |
04ef21996cdfc76ce55d17ad80d93051f98a828c | b7b549d2cf38ac9d4e49372b7ad4d37f70449409 | /src/LeanLLVM/AST.lean | ed889ebfba879ca39c756661f9da20d367be3876 | [
"Apache-2.0"
] | permissive | GaloisInc/lean-llvm | 7cc196172fe02ff3554edba6cc82f333c30fdc2b | 36e2ec604ae22d8ec1b1b66eca0f8887880db6c6 | refs/heads/master | 1,637,359,020,356 | 1,629,332,114,000 | 1,629,402,464,000 | 146,700,234 | 29 | 1 | Apache-2.0 | 1,631,225,695,000 | 1,535,607,191,000 | Lean | UTF-8 | Lean | false | false | 24,356 | lean | /- A transliteration of llvm-pretty https://github.com/elliottt/llvm-pretty/blob/master/src/Text/LLVM/AST.hs -/
-- import data.bitvec
import Std.Data.RBMap
import Init.Data.String
import Init.Data.Int
open Std (RBMap)
namespace LLVM
-- FIXME
-- def float : Type 0 := sorry
-- def double : Type 0 := sorry
def Strmap ... |
d7d2d66635d96370a9da862032c63579c517d434 | 36938939954e91f23dec66a02728db08a7acfcf9 | /lean/nat/lemmas.lean | 569babeba181f1ae8e698a94eca2fb9493a8f93f | [
"Apache-2.0"
] | permissive | pnwamk/reopt-vcg | f8b56dd0279392a5e1c6aee721be8138e6b558d3 | c9f9f185fbefc25c36c4b506bbc85fd1a03c3b6d | refs/heads/master | 1,631,145,017,772 | 1,593,549,019,000 | 1,593,549,143,000 | 254,191,418 | 0 | 0 | null | 1,586,377,077,000 | 1,586,377,077,000 | null | UTF-8 | Lean | false | false | 8,952 | lean | /-
Copyright (c) 2018 Galois. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Additional lemmas for natural numbers.
This is a work-in-progress, and contains additions to other theories.
-/
import tactic.find
import ..tactic
open nat
lemma lt_one_is_zero {x:ℕ} : x < 1 ↔ x =... |
62ff65194d4eb847c89008ddcb8fc4913b0f5be9 | 92b1c7f0343a6a5cd36bc0f623a7490da3f1e0f3 | /src/stump/stump_pac_lemmas.lean | 890a3f30f13bd5c703db9b588bff317993e23f37 | [
"Apache-2.0"
] | permissive | jtristan/stump-learnable | 717453eb590af16e60c7d3806cc9e66492fab091 | aa3c089f41602efa08d31ef6b41e549456186d57 | refs/heads/master | 1,625,630,634,360 | 1,607,552,106,000 | 1,607,552,106,000 | 218,629,406 | 15 | 2 | null | null | null | null | UTF-8 | Lean | false | false | 4,316 | lean | /-
Copyright © 2019, Oracle and/or its affiliates. All rights reserved.
-/
import .setup_properties
import .algorithm_properties
local attribute [instance] classical.prop_decidable
open set
open measure_theory
open well_founded
namespace stump
variables (μ: probability_measure ℍ) (target: ℍ) (n: ℕ)
lemma partitio... |
7b6096cb4014e4a956da8e5a53fcf82388393876 | 74addaa0e41490cbaf2abd313a764c96df57b05d | /Mathlib/group_theory/solvable.lean | 00f1797ef6af5ebdf2993758ad9d7b64c9e45bb5 | [] | no_license | AurelienSaue/Mathlib4_auto | f538cfd0980f65a6361eadea39e6fc639e9dae14 | 590df64109b08190abe22358fabc3eae000943f2 | refs/heads/master | 1,683,906,849,776 | 1,622,564,669,000 | 1,622,564,669,000 | 371,723,747 | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 9,725 | lean | /-
Copyright (c) 2021 Jordan Brown, Thomas Browning and Patrick Lutz. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Jordan Brown, Thomas Browning and Patrick Lutz
-/
import Mathlib.PrePort
import Mathlib.Lean3Lib.init.default
import Mathlib.group_theory.abelianization... |
d5e86b5974ec4376eea41a9d761a6b23f71963f1 | 4727251e0cd73359b15b664c3170e5d754078599 | /src/set_theory/surreal/dyadic.lean | d41f8e1dbc31ab03571fa0b3e6064a34c47554ac | [
"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 | 9,779 | lean | /-
Copyright (c) 2021 Apurva Nakade. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Apurva Nakade
-/
import algebra.algebra.basic
import ring_theory.localization.away
import set_theory.surreal.basic
/-!
# Dyadic numbers
Dyadic numbers are obtained by localizing ℤ away... |
0f47d35c64a50b71d62a8d5e44c16334c307da44 | 0ce335c3cee4b6a212935fdfd1a5270985454648 | /src/analysis/calculus/times_cont_diff.lean | 4055b6993b62859ff5539a98f041a347ed9fbdf4 | [
"Apache-2.0"
] | permissive | yashen32768/mathlib | 191f6113ccd0ef74091c3f5951ae84c0aa85516f | f54463254784b400da2e33dfa58f94775e3de845 | refs/heads/master | 1,598,060,530,541 | 1,571,523,082,000 | 1,571,523,082,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 36,809 | 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.deriv
/-!
# Higher differentiability
A function is `C^1` on a domain if it is differentiable there, and its derivative is continuous... |
af7e14e0f74135bb12a7fa639ded4d392c8ab802 | 7920bb65c187f9e7065f47e49b3b60ebe8cfe2c1 | /src/part2.lean | aab3516e5572d58e7faa1f5cefc97a6402188d89 | [] | no_license | ADedecker/grifone-3-16 | 3357441687acd8e1d8aa0f3eaeab76d69bd46b62 | d7cb5a58695203dea6a27fb69067e08eb6a82bad | refs/heads/master | 1,679,431,665,551 | 1,616,077,475,000 | 1,616,077,475,000 | 348,148,279 | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 5,158 | lean | import part1
open_locale classical
namespace linear_map
variables {E K : Type*} [field K] [add_comm_group E] [vector_space K E] (f : E →ₗ[K] E)
local notation `k` := f.ker_it
local notation `j` := f.range_it
local notation `𝓚` := f.ker_it_supr
local notation `𝓙` := f.range_it_infi
local notation `r` := f.range_ch... |
ec1d88aa1bce724285a7e1f57c948cc0ee786824 | d406927ab5617694ec9ea7001f101b7c9e3d9702 | /src/data/option/basic.lean | 2a3b9fbd785616c8ab6c2f9b1b17dda9758094d2 | [
"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 | 20,234 | 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.is_empty
import control.traversable.basic
import tactic.basic
/-!
# Option of a type
> THIS FILE IS SYNCHRONIZED WITH MATHLIB4.
> https://github.com/le... |
93a598f43ca2e45f4c45efe574174f6af07facc3 | 5ae26df177f810c5006841e9c73dc56e01b978d7 | /src/linear_algebra/direct_sum_module.lean | 060109f2198e5b21c36707a0949f45a5e0868fa1 | [
"Apache-2.0"
] | permissive | ChrisHughes24/mathlib | 98322577c460bc6b1fe5c21f42ce33ad1c3e5558 | a2a867e827c2a6702beb9efc2b9282bd801d5f9a | refs/heads/master | 1,583,848,251,477 | 1,565,164,247,000 | 1,565,164,247,000 | 129,409,993 | 0 | 1 | Apache-2.0 | 1,565,164,817,000 | 1,523,628,059,000 | Lean | UTF-8 | Lean | false | false | 3,578 | lean | /-
Copyright (c) 2018 Kenny Lau. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Kenny Lau
Direct sum of modules over commutative rings, indexed by a discrete type.
-/
import algebra.direct_sum
import linear_algebra.basic
universes u v w u₁
variables (R : Type u) [r... |
9078fabbd163c777ddd511170ac1192a03fb1aa6 | ddac945a109b79a5c5b9b3b94ecd42f87d9a8e00 | /lean/unique.lean | f75dc69059aed390132e6ac0235b4ac2c76173f4 | [
"LicenseRef-scancode-unknown-license-reference",
"CC0-1.0"
] | permissive | cipher1024/lets-prove-leftpad | f21a2caa0d7d7c7881ebab9e8a8d281e01e2f2f0 | a79d7f5c01817ab519f9b489436667d526e5a968 | refs/heads/master | 1,584,568,854,244 | 1,527,612,383,000 | 1,527,612,383,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 571 | lean |
import data.list.basic
section unique
variables {α : Type*} [decidable_eq α]
def unique : list α → list α
| [] := []
| (x :: xs) :=
if x ∈ xs
then unique xs
else x :: unique xs
lemma mem_unique (x : α) (xs : list α) :
x ∈ unique xs ↔ x ∈ xs :=
begin
induction xs with x' xs ; simp!,
by_cases x'... |
ec4b33911e08282e082ac057b914e518fc018bc5 | 4efff1f47634ff19e2f786deadd394270a59ecd2 | /src/geometry/manifold/mfderiv.lean | 9d3e19dd33e94eb41dcd4725de31693501d6a32a | [
"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 | 65,326 | 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
-/
import geometry.manifold.basic_smooth_bundle
/-!
# The derivative of functions between smooth manifolds
Let `M` and `M'` be two smooth manifolds with corners ... |
991c616653a4cadab13ee1d0547ae490d8bed0f0 | 947b78d97130d56365ae2ec264df196ce769371a | /tests/lean/run/bigop.lean | 7870e2f53431601141915b9874f2ee8baaedd62f | [
"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 | 4,151 | lean | new_frontend
def Seq (α : Type) := List α
def BigBody (β α) := α × (β → β → β) × Bool × β
def applyBig {α β : Type} (body : BigBody β α) (x : β) : β :=
let (_, op, b, v) := body;
if b then op v x else x
def reducebig {α β : Type} (idx : β) (r : Seq α) (body : α → BigBody β α) : β :=
r.foldr (applyBig ∘ body) idx
... |
bb58f9c40cb2bc47389e188fb40b4ae4e233be73 | 618003631150032a5676f229d13a079ac875ff77 | /scripts/lint_mathlib.lean | cc59adc0cca65620a8c0894221f2c679a44e05e6 | [
"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 | 3,212 | lean | /-
Copyright (c) 2020 Robert Y. Lewis. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Author: Robert Y. Lewis, Gabriel Ebner
-/
import tactic.lint
import system.io -- these are required
import all -- then import everything, to parse the library for failing linters
/-!
# li... |
5ce1bb2fa35ef3582615be568fa94b5c4537246d | 32c054a763e4aa96bcb6e8bc87775e0f403a1804 | /src/spec/customlemmas.lean | 2b731fa3557d1c8858a96acd05f96c1308835d94 | [
"LicenseRef-scancode-generic-cla",
"MIT"
] | permissive | Claudiusgonzo/AliveInLean | 7fac3f82722c27acc5551260ea12a36519f6e24e | a21bfb90dee0c6c6e00a955b6de92c631198c5ba | refs/heads/master | 1,635,381,727,801 | 1,555,783,536,000 | 1,555,783,536,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 2,679 | lean | import ..lang
import ..irsem
import ..irsem_exec
import .lemmas_basic
import .lemmas
open irsem_exec
-- a single small-step function
@[simp]
def step := irsem.step irsem_exec
-- a new udiv instruction
@[simp]
def udiv (isz:nat) (name:string) (op1 op2:operand): instruction
:= instruction.binop (ty.int isz) (reg.r n... |
8bfa6c24b4d3de895e5f20be8cb34dca97ccaa71 | b70447c014d9e71cf619ebc9f539b262c19c2e0b | /hott/homotopy/chain_complex.hlean | 055b3a25addf1651740b8424922cfb0ffdb60c0c | [
"Apache-2.0"
] | permissive | ia0/lean2 | c20d8da69657f94b1d161f9590a4c635f8dc87f3 | d86284da630acb78fa5dc3b0b106153c50ffccd0 | refs/heads/master | 1,611,399,322,751 | 1,495,751,007,000 | 1,495,751,007,000 | 93,104,167 | 0 | 0 | null | 1,496,355,488,000 | 1,496,355,487,000 | null | UTF-8 | Lean | false | false | 22,284 | hlean | /-
Copyright (c) 2016 Floris van Doorn. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Floris van Doorn
Chain complexes.
We define chain complexes in a general way as a sequence X of types indexes over an arbitrary type
N with a successor S. There are maps X (S n) → ... |
529beae374e8944c96011c028c3aef3af4112b1b | 6432ea7a083ff6ba21ea17af9ee47b9c371760f7 | /tests/lean/run/654.lean | 4c27eebba6d6d96840a7bded8233e0e8e55424e4 | [
"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 | 8,607 | lean | inductive Foo where
| a | b | c
def f : Foo → Nat
| Foo.a => 10
| Foo.b => 20
| Foo.c => 35
inductive CXCursorKind where
| CXCursor_UnexposedDecl
| CXCursor_StructDecl
| CXCursor_UnionDecl
| CXCursor_ClassDecl
| CXCursor_EnumDecl
| CXCursor_FieldDecl
| CXCursor_EnumConstantDecl
| CXCursor_Func... |
cdeff908781e42328bed42dce47abac790346831 | d9d511f37a523cd7659d6f573f990e2a0af93c6f | /src/algebra/category/Module/abelian.lean | 8fab8898069cff8c200471ca66556bc05b1321a4 | [
"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 | 3,253 | lean | /-
Copyright (c) 2020 Markus Himmel. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Markus Himmel
-/
import algebra.category.Module.kernels
import algebra.category.Module.limits
import category_theory.abelian.exact
/-!
# The category of left R-modules is abelian.
Add... |
9b888f7cc110f883aa6679148a6a9d1b84d306c5 | 4d2583807a5ac6caaffd3d7a5f646d61ca85d532 | /src/analysis/complex/real_deriv.lean | adb7a1b6bc1916e67c99bb04e4672f1fcc3a6b62 | [
"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 | 7,511 | 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.times_cont_diff
import analysis.complex.conformal
import analysis.calculus.conformal.normed_space
/-! # Real differentiabilit... |
be5f50c51eada61532b0043e4099bc2aede074bc | 6432ea7a083ff6ba21ea17af9ee47b9c371760f7 | /tests/lean/run/csimp_type_error.lean | 357c6d17319faa8d51114cff9a5c334e17e1bf72 | [
"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 | 305 | lean |
namespace scratch
inductive type
| bv (w:Nat) : type
open type
def value : type -> Type
| bv w => {n // n < w}
def tester_fails : ∀ {tp : type}, value tp -> Bool
| bv _, v1 => decide (v1.val = 0)
def tester_ok : ∀ {tp : type}, value tp -> Prop
| bv _, v1 => v1.val = 0
end scratch
|
410ff7e2881ab1ffdec8f2d49a337f31ec3675a7 | 4f643cce24b2d005aeeb5004c2316a8d6cc7f3b1 | /src/o_minimal/mono1.lean | 73d10aee4f7e04d71c88cfdd40aa607c82622527 | [] | no_license | rwbarton/lean-omin | da209ed061d64db65a8f7f71f198064986f30eb9 | fd733c6d95ef6f4743aae97de5e15df79877c00e | refs/heads/master | 1,674,408,673,325 | 1,607,343,535,000 | 1,607,343,535,000 | 285,150,399 | 9 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 4,460 | lean | import for_mathlib.finite
import o_minimal.o_minimal
namespace o_minimal
open set
instance {R : Type*} [preorder R] (S : struc R) [is_definable_le S R] [definable_constants S]
(a b : R) : is_definable S (Ioo a b) :=
is_definable.subtype (def_set.Ioo a b)
variables {R : Type*} [DUNLO R]
variables (S : struc R) [o_... |
60786f9d91e79dfa73bdf28a528f2a157633311c | 74addaa0e41490cbaf2abd313a764c96df57b05d | /Mathlib/combinatorics/colex.lean | af58459bd5871bce11bff37870806afca1727c30 | [] | no_license | AurelienSaue/Mathlib4_auto | f538cfd0980f65a6361eadea39e6fc639e9dae14 | 590df64109b08190abe22358fabc3eae000943f2 | refs/heads/master | 1,683,906,849,776 | 1,622,564,669,000 | 1,622,564,669,000 | 371,723,747 | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 9,360 | lean | /-
Copyright (c) 2020 Bhavik Mehta. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Bhavik Mehta, Alena Gusakov
-/
import Mathlib.PrePort
import Mathlib.Lean3Lib.init.default
import Mathlib.data.finset.default
import Mathlib.data.fintype.basic
import Mathlib.algebra.geo... |
d92632c1444f76de7fe27bab4507a5fa2cdca694 | 75db7e3219bba2fbf41bf5b905f34fcb3c6ca3f2 | /tests/lean/bad_structures2.lean | b9c0a20c9541b061b03ff2141a6bef5b3a1d7731 | [
"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 | 416 | lean | structure foo :=
(x : bool)
structure boo :=
(x : nat)
structure bla extends foo, boo
structure boo2 :=
{x : bool}
structure bla extends foo, boo2
structure bla extends foo :=
(x : num)
structure bla extends foo :=
( : num)
structure bla extends foo :=
mk :: y z : num
structure bla2 extends foo renaming y → z
... |
b0d8ffc11c781334af464ff72ed36143339f9b68 | a0e23cfdd129a671bf3154ee1a8a3a72bf4c7940 | /src/Std/Data/RBMap.lean | 866347849da048ef9d15bdb88688e23d7e29c67b | [
"Apache-2.0"
] | permissive | WojciechKarpiel/lean4 | 7f89706b8e3c1f942b83a2c91a3a00b05da0e65b | f6e1314fa08293dea66a329e05b6c196a0189163 | refs/heads/master | 1,686,633,402,214 | 1,625,821,189,000 | 1,625,821,258,000 | 384,640,886 | 0 | 0 | Apache-2.0 | 1,625,903,617,000 | 1,625,903,026,000 | null | UTF-8 | Lean | false | false | 13,786 | 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
universe u v w w'
inductive Rbcolor where
| red | black
inductive RBNode (α : Type u) (β : α → Type v) where
| leaf ... |
6ef98dfc9a2353fd1838111e119ccd90e476cc49 | 618003631150032a5676f229d13a079ac875ff77 | /src/meta/rb_map.lean | 6f908c3c1435c36d1f778549c6c6241e962e697f | [
"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,890 | lean | /-
Copyright (c) 2018 Robert Y. Lewis. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Author: Robert Y. Lewis
-/
import data.option.defs
/-!
# rb_map
This file defines additional operations on native rb_maps and rb_sets.
These structures are defined in core in `init.meta.rb_m... |
914dbd753f7b5880eedba95903c619fc59394d40 | 8cae430f0a71442d02dbb1cbb14073b31048e4b0 | /src/ring_theory/witt_vector/identities.lean | e64810ad66372e2d29fdb2514c2b9d3a2791cd15 | [
"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,695 | 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 ring_theory.witt_vector.frobenius
import ring_theory.witt_vector.verschiebung
import ring_theory.witt_vector.mul_p
/-!
## Identities between operations on th... |
183b7763594aa74bfc9ba7bf98b30e0d9b987797 | 9028d228ac200bbefe3a711342514dd4e4458bff | /src/topology/uniform_space/completion.lean | 0635b6eef783198959e60d040c7d23618f4534ff | [
"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,358 | lean | /-
Copyright (c) 2018 Patrick Massot. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Patrick Massot, Johannes Hölzl
-/
import topology.uniform_space.abstract_completion
/-!
# Hausdorff completions of uniform spaces
The goal is to construct a left-adjoint to the inclu... |
75e8a7d459ce05d41a7d588f08d2faff3f042dfc | d9d511f37a523cd7659d6f573f990e2a0af93c6f | /src/data/polynomial/taylor.lean | b5c43e594e58af35b6bb05830a7743188d313e77 | [
"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 | 3,166 | lean | /-
Copyright (c) 2021 Johan Commelin. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Johan Commelin
-/
import data.polynomial.hasse_deriv
/-!
# Taylor expansions of polynomials
## Main declarations
* `polynomial.taylor`: the Taylor expansion of the polynomial `f` a... |
95d972f023e220783a181eccf62b37944454ae1b | 90bd8c2a52dbaaba588bdab57b155a7ec1532de0 | /src/test2.lean | 6931deeb0318fc82041f20ecacb8284ca47971b5 | [
"Apache-2.0"
] | permissive | shingtaklam1324/alg-top | fd434f1478925a232af45f18f370ee3a22811c54 | 4c88e28df6f0a329f26eab32bae023789193990e | refs/heads/master | 1,689,447,024,947 | 1,630,073,400,000 | 1,630,073,400,000 | 381,528,689 | 2 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 7,985 | lean | /-
Copyright (c) 2018 Patrick Massot. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Patrick Massot, Johannes Hölzl
Theory of topological rings.
-/
import topology.algebra.group
import ring_theory.ideal.basic
import ring_theory.subring
import algebra.ring.prod
/-!
#... |
3c756ce07fd92a9850adc895998908cf2a7725d9 | 8cae430f0a71442d02dbb1cbb14073b31048e4b0 | /src/algebraic_geometry/properties.lean | 7dbae1c65bc70e2e94b73897866d87ff1fe10cb6 | [
"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,169 | lean | /-
Copyright (c) 2021 Andrew Yang. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Andrew Yang
-/
import algebraic_geometry.AffineScheme
import ring_theory.nilpotent
import topology.sheaves.sheaf_condition.sites
import algebra.category.Ring.constructions
import ring_the... |
43514a29b48e2be7bd7af557dabee72e17a1e387 | 076f5040b63237c6dd928c6401329ed5adcb0e44 | /assignments/hw8_intro_proofs_key.lean | eb313186dca3469da9823e1d729af6a87e2f9453 | [] | no_license | kevinsullivan/uva-cs-dm-f19 | 0f123689cf6cb078f263950b18382a7086bf30be | 09a950752884bd7ade4be33e9e89a2c4b1927167 | refs/heads/master | 1,594,771,841,541 | 1,575,853,850,000 | 1,575,853,850,000 | 205,433,890 | 4 | 9 | null | 1,571,592,121,000 | 1,567,188,539,000 | Lean | UTF-8 | Lean | false | false | 19,632 | lean | /-
CS 2102 F19, Homework #8, Predicate Logic & Proofs.
-/
/-
Is this stuff useful?
-- Functional programming is *hot*. Much of
Facebook's Messenger app is written in Reason,
for example, which is just a Java-script like
syntactic sugar on top of OCaml, which you
can now program in.
-- Boolean satisfiability, which i... |
fb0ed5a37ea20470f3f6b8ad68bdd8e0c3e0e50f | bbecf0f1968d1fba4124103e4f6b55251d08e9c4 | /src/category_theory/monoidal/internal/Module.lean | e84034a681860301accb0559f3674ee0196f9078 | [
"Apache-2.0"
] | permissive | waynemunro/mathlib | e3fd4ff49f4cb43d4a8ded59d17be407bc5ee552 | 065a70810b5480d584033f7bbf8e0409480c2118 | refs/heads/master | 1,693,417,182,397 | 1,634,644,781,000 | 1,634,644,781,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 5,320 | 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.category.Module.monoidal
import algebra.category.Algebra.basic
import category_theory.monoidal.Mon_
/-!
# `Mon_ (Module R) ≌ Algebra R`
The category... |
95c1944b60f7fed66e27d7d74d577da9453f3400 | 74addaa0e41490cbaf2abd313a764c96df57b05d | /Mathlib/measure_theory/ess_sup_auto.lean | 72f63ff25d15c70a66a6c8f05baedfeefad68303 | [] | 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,558 | 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 Mathlib.PrePort
import Mathlib.Lean3Lib.init.default
import Mathlib.measure_theory.measure_space
import Mathlib.order.filter.ennreal
import Mathlib.PostPort
unive... |
b656cac30104e504941ca95350db02d61dc58b0f | 6b66bef80b7e8adaed86c183cf24aa8f92f20803 | /LeanTools/CommandLineColors.lean | b043f74aee9b0097beb5b0f76f92a9c6f5a6a07e | [
"MIT"
] | permissive | JasonGross/lean-tools | f5495e6a24061a2f268fd0871c88cb4ece8d3355 | 110f63934b9d8c9088b0a944a38ed975b740a507 | refs/heads/main | 1,679,568,529,028 | 1,616,441,204,000 | 1,616,441,204,000 | 349,493,484 | 1 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 688 | lean | namespace ANSI
def reset : String := "\u0001B[0m"
def black : String := "\u0001B[30m"
def red : String := "\u0001B[31m"
def green : String := "\u0001B[32m"
def yellow : String := "\u0001B[33m"
def blue : String := "\u0001B[34m"
def purple : String := "\u0001B[35m"
def cyan : String := "\u0001B[36m"
def white ... |
89a7cf01553fef1dc7d3d5bad840a4e7e6315499 | 592ee40978ac7604005a4e0d35bbc4b467389241 | /Library/generated/mathscheme-lean/QuasiInverse.lean | 77070c6581dd67193442d53266e32a259b09471c | [] | no_license | ysharoda/Deriving-Definitions | 3e149e6641fae440badd35ac110a0bd705a49ad2 | dfecb27572022de3d4aa702cae8db19957523a59 | refs/heads/master | 1,679,127,857,700 | 1,615,939,007,000 | 1,615,939,007,000 | 229,785,731 | 4 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 8,022 | lean | import init.data.nat.basic
import init.data.fin.basic
import data.vector
import .Prelude
open Staged
open nat
open fin
open vector
section QuasiInverse
structure QuasiInverse (A : Type) : Type :=
(inv : (A → A))
(op : (A → (A → A)))
(quasiInverse_inv_op_e : (∀ {x : A} , (op (op x (inv x)) x)... |
1bd62995b018a76b4b5ac181ddae1fd8ba366d6c | 624f6f2ae8b3b1adc5f8f67a365c51d5126be45a | /tests/lean/run/deriv.lean | f08cf557709db1368cfa0a087bb44e079243bdd2 | [
"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,728 | lean | /- Benchmark for new code generator -/
import Init.System.IO
inductive Expr
| Val : Int → Expr
| Var : String → Expr
| Add : Expr → Expr → Expr
| Mul : Expr → Expr → Expr
| Pow : Expr → Expr → Expr
| Ln : Expr → Expr
open Expr
unsafe def pown : Int → Int → Int
| a, 0 => 1
| a, 1 => a
| a, n =>
let b := pown a (n ... |
e6827c3ea5dc1ad14cafed787bd97538778dd6af | e031d1fbf8353b338e3189e0d9aec3adb5bb0512 | /src/basic.lean | 3d94af1efb1832b2356f86f549c867f96a46434f | [
"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 | 2,240 | lean | import data.set
def op (β α) := (β → α) → α
def π {β α} (i) : op β α :=
λ x, x i
-- Signature
-- F : a set of operation symbols
-- ρ : returns the arity of a given operation symbol
structure signature :=
mk :: (F : Type*) (ρ : F → Type*)
section
parameter (S : signature)
--def F := S.F
-- def ρ := S.ρ
-- Defines... |
a687256f0fb9934055ddaa9a1448d4da727eb3de | 74addaa0e41490cbaf2abd313a764c96df57b05d | /Mathlib/data/ulift_auto.lean | dfe30ece77bde7c831176eab13295268092e869c | [] | 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,915 | lean | /-
Copyright (c) 2018 Scott Morrison. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Scott Morrison, Jannis Limperg
Facts about `ulift` and `plift`.
-/
import Mathlib.PrePort
import Mathlib.Lean3Lib.init.default
import Mathlib.PostPort
universes u v u_1 u_2 u_3
nam... |
439d15ed9f5ff41419da98f416ac8412b0fe0bcf | 8cae430f0a71442d02dbb1cbb14073b31048e4b0 | /src/measure_theory/function/uniform_integrable.lean | 27cf1d4f84a645fbf21e334da650a7ec2c8aa90c | [
"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 | 48,749 | lean | /-
Copyright (c) 2022 Kexing Ying. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Kexing Ying
-/
import measure_theory.function.convergence_in_measure
import measure_theory.function.l1_space
/-!
# Uniform integrability
> THIS FILE IS SYNCHRONIZED WITH MATHLIB4.
> Any... |
08bd7436a52af5a92d6348c693d5b54379a824db | 05f637fa14ac28031cb1ea92086a0f4eb23ff2b1 | /tests/lean/alias3.lean | 52a0ff2c1a7ace687dbb2a0738bc492a1d468568 | [
"Apache-2.0"
] | permissive | codyroux/lean0.1 | 1ce92751d664aacff0529e139083304a7bbc8a71 | 0dc6fb974aa85ed6f305a2f4b10a53a44ee5f0ef | refs/heads/master | 1,610,830,535,062 | 1,402,150,480,000 | 1,402,150,480,000 | 19,588,851 | 2 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 28 | lean | alias A : Bool
alias A : Nat |
f119c77d2a158d46ca7580ec7d1d5a432677dc82 | 6432ea7a083ff6ba21ea17af9ee47b9c371760f7 | /tests/lean/run/contra.lean | 5ffdf894f7bce887a70a508a723b78cbdfb14fc0 | [
"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,156 | lean | theorem ex1 (p : Prop) (h1 : p) (h2 : p → False) : α := by
contradiction
theorem ex2 (p : Prop) (h1 : p) (h2 : ¬ p) : α := by
contradiction
theorem ex3 (p : Prop) (h1 : id p) (h2 : ¬ p) : α := by
contradiction
theorem ex4 (p : Prop) (h1 : id p) (h2 : id (Not p)) : α := by
contradiction
theorem ex5 (h : x+1 ... |
e9d9918013792c8ae1bb0d96f1318ed130f3951a | f5f7e6fae601a5fe3cac7cc3ed353ed781d62419 | /src/analysis/normed_space/deriv.lean | 071b4b3d171c70272bef455c8e1f2553a13649e8 | [
"Apache-2.0"
] | permissive | EdAyers/mathlib | 9ecfb2f14bd6caad748b64c9c131befbff0fb4e0 | ca5d4c1f16f9c451cf7170b10105d0051db79e1b | refs/heads/master | 1,626,189,395,845 | 1,555,284,396,000 | 1,555,284,396,000 | 144,004,030 | 0 | 0 | Apache-2.0 | 1,533,727,664,000 | 1,533,727,663,000 | null | UTF-8 | Lean | false | false | 17,788 | lean | /-
Copyright (c) 2019 Jeremy Avigad. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Author: Jeremy Avigad
The Fréchet derivative.
Let `E` and `F` be normed spaces, and `f : E → F`. Then
`has_fderiv_at_within f f' x s`
says that the function `f' : E → F` is a bounded linea... |
386ebef80edfe3293ba2c502c1204ca2763465ce | 3dd1b66af77106badae6edb1c4dea91a146ead30 | /tests/lean/run/group.lean | 5a19380f5e79fba3dfdda557b5a75caf608a8aae | [
"Apache-2.0"
] | permissive | silky/lean | 79c20c15c93feef47bb659a2cc139b26f3614642 | df8b88dca2f8da1a422cb618cd476ef5be730546 | refs/heads/master | 1,610,737,587,697 | 1,406,574,534,000 | 1,406,574,534,000 | 22,362,176 | 1 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 1,110 | lean | import standard
using num
section
parameter {A : Type}
parameter f : A → A → A
parameter one : A
parameter inv : A → A
infixl `*`:75 := f
postfix `^-1`:100 := inv
definition is_assoc := ∀ a b c, (a*b)*c = a*b*c
definition is_id := ∀ a, a*one = a
definition is_inv := ∀ a, a*a^-1 = one
end
... |
165bed60717bdf3afff3b5280570478f173375b7 | 57c233acf9386e610d99ed20ef139c5f97504ba3 | /src/analysis/calculus/inverse.lean | 199b2d84cfd95b86b28ce1f2818bd0d1c4e95736 | [
"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 | 37,462 | lean | /-
Copyright (c) 2020 Yury Kudryashov. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Yury Kudryashov, Heather Macbeth, Sébastien Gouëzel
-/
import analysis.calculus.times_cont_diff
import tactic.ring_exp
import analysis.normed_space.banach
import topology.local_homeom... |
084c6751afaaeab292f3ed806474b96657daefb4 | 59a4b050600ed7b3d5826a8478db0a9bdc190252 | /src/category_theory/coyoneda.lean | 551d575ef1518f85a0885cdaf6874fe24dee07eb | [] | no_license | rwbarton/lean-category-theory | f720268d800b62a25d69842ca7b5d27822f00652 | 00df814d463406b7a13a56f5dcda67758ba1b419 | refs/heads/master | 1,585,366,296,767 | 1,536,151,349,000 | 1,536,151,349,000 | 147,652,096 | 0 | 0 | null | 1,536,226,960,000 | 1,536,226,960,000 | null | UTF-8 | Lean | false | false | 633 | lean | import .yoneda
universes u₁ v₁
open category_theory
variables (C : Type u₁) [𝒞 : category.{u₁ v₁} C]
include 𝒞
def coyoneda : (Cᵒᵖ) ⥤ (C ⥤ (Type v₁)) :=
{ obj := λ X : C, { obj := λ Y, X ⟶ Y,
map' := λ Y Y' f g, g ≫ f },
map' := λ X X' f, { app := λ Y g, f ≫ g } }
@[simp] lemma coyoneda_obj_o... |
c29169898f2b82502e18dbe6af82fd626a82a6d8 | 57c233acf9386e610d99ed20ef139c5f97504ba3 | /src/algebra/lie/semisimple.lean | c38b3435cfaebd7bb84204a9c63e353d940efa0e | [
"Apache-2.0"
] | permissive | robertylewis/mathlib | 3d16e3e6daf5ddde182473e03a1b601d2810952c | 1d13f5b932f5e40a8308e3840f96fc882fae01f0 | refs/heads/master | 1,651,379,945,369 | 1,644,276,960,000 | 1,644,276,960,000 | 98,875,504 | 0 | 0 | Apache-2.0 | 1,644,253,514,000 | 1,501,495,700,000 | Lean | UTF-8 | Lean | false | false | 4,486 | lean | /-
Copyright (c) 2021 Oliver Nash. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Oliver Nash
-/
import algebra.lie.solvable
/-!
# Semisimple Lie algebras
The famous Cartan-Dynkin-Killing classification of semisimple Lie algebras renders them one of the
most importan... |
be16f342b43f0d6bc8089a08aeea7c328287a24f | ff5230333a701471f46c57e8c115a073ebaaa448 | /library/init/meta/comp_value_tactics.lean | af3617cfb157c02b6d6e8be8578ae2a3c25846b5 | [
"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 | 2,504 | lean | /-
Copyright (c) 2016 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Leonardo de Moura
-/
prelude
import init.meta.tactic init.data.option.basic
meta constant mk_nat_val_ne_proof : expr → expr → option expr
meta constant mk_nat_val_lt_proof : ex... |
ecab57388e89c20a7453f73e0e4b4715e8f9cd0c | 8cae430f0a71442d02dbb1cbb14073b31048e4b0 | /src/order/order_iso_nat.lean | b1221a36b6acfc121dbc30b4381f14ebe4ecf5c8 | [
"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 | 10,588 | lean | /-
Copyright (c) 2017 Mario Carneiro. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Mario Carneiro
-/
import data.nat.lattice
import logic.denumerable
import logic.function.iterate
import order.hom.basic
import tactic.congrm
/-!
# Relation embeddings from the natural... |
970f373080f3fb8ff8843596157fa45668d6534c | 8cae430f0a71442d02dbb1cbb14073b31048e4b0 | /src/algebra/algebra/subalgebra/tower.lean | a66175054ee334461538ac64c4c39b5080c7ca25 | [
"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,517 | lean | /-
Copyright (c) 2020 Kenny Lau. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Kenny Lau, Anne Baanen
-/
import algebra.algebra.subalgebra.basic
import algebra.algebra.tower
/-!
# Subalgebras in towers of algebras
> THIS FILE IS SYNCHRONIZED WITH MATHLIB4.
> Any ch... |
0f5e5cf7f3ee1b538fd115819be6c6677ebe928b | 05f637fa14ac28031cb1ea92086a0f4eb23ff2b1 | /tests/lean/bad6.lean | 1a026d510f6c261259cc46e3e33f2389e850d564 | [
"Apache-2.0"
] | permissive | codyroux/lean0.1 | 1ce92751d664aacff0529e139083304a7bbc8a71 | 0dc6fb974aa85ed6f305a2f4b10a53a44ee5f0ef | refs/heads/master | 1,610,830,535,062 | 1,402,150,480,000 | 1,402,150,480,000 | 19,588,851 | 2 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 148 | lean | import Int.
import Real.
variable f {A : Type} (a : A) : A
variable a : Int
variable b : Real
definition tst : Bool := (fun x y, (f x) > (f y)) a b
|
22dc040c1d470a86fb6c773b3ff10c29559524d3 | 94e33a31faa76775069b071adea97e86e218a8ee | /src/linear_algebra/matrix/transvection.lean | 2e130f81624ba71333de3459c29e6d293cc049ce | [
"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 | 32,910 | lean | /-
Copyright (c) 2021 Sébastien Gouëzel. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Sébastien Gouëzel
-/
import data.matrix.basis
import data.matrix.dmatrix
import linear_algebra.matrix.determinant
import linear_algebra.matrix.trace
import linear_algebra.matrix.rei... |
44c32103a3dd30718b9461b2856c1390021bd887 | 3bdd27ffdff3ffa22d4bb010eba695afcc96bc4a | /src/combinatorics/simplicial_complex/finite.lean | e5307a37937afd293176393548a878a1699da447 | [] | no_license | mmasdeu/brouwerfixedpoint | 684d712c982c6a8b258b4e2c6b2eab923f2f1289 | 548270f79ecf12d7e20a256806ccb9fcf57b87e2 | refs/heads/main | 1,690,539,793,996 | 1,631,801,831,000 | 1,631,801,831,000 | 368,139,809 | 4 | 3 | null | 1,624,453,250,000 | 1,621,246,034,000 | Lean | UTF-8 | Lean | false | false | 4,220 | 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 combinatorics.simplicial_complex.basic
namespace affine
open set
variables {m n : ℕ} {E : Type*} [normed_group E] [normed_space ℝ E] {... |
6b54928997ba07d4a7c4f892b098543f760cfe87 | d406927ab5617694ec9ea7001f101b7c9e3d9702 | /src/order/prime_ideal.lean | d113dabce9f8efc3e88dd9b92c432f2b729c30b1 | [
"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,175 | lean | /-
Copyright (c) 2021 Noam Atar. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Noam Atar
-/
import order.ideal
import order.pfilter
/-!
# Prime ideals
## Main definitions
Throughout this file, `P` is at least a preorder, but some sections require more
structure, su... |
4adbb7ad069cb32d5ad252262bc5e80f45281b1d | 618003631150032a5676f229d13a079ac875ff77 | /src/tactic/transform_decl.lean | dfcf440fca9cd2ac75bbac452837de32416662cb | [
"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 | 1,761 | 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 meta.expr
import meta.rb_map
namespace tactic
private meta def transform_decl_with_prefix_fun_aux (f : name → option name) (pre tgt_pre : name)
(attrs : lis... |
c6f0b0e3f747e78336e8a49ab0e7bf2fdac0bb09 | 36c7a18fd72e5b57229bd8ba36493daf536a19ce | /library/data/set/card.lean | 9dc5fed3168be715cdc69d0a221ca8cdc242e117 | [
"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 | 6,059 | lean | /-
Copyright (c) 2015 Jeremy Avigad. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Author: Jeremy Avigad
Cardinality of finite sets.
-/
import .finite data.finset.card
open nat classical
namespace set
variable {A : Type}
noncomputable definition card (s : set A) := finset.... |
25629d2c6286af7135d929ab59a5042cc157728c | b7f22e51856f4989b970961f794f1c435f9b8f78 | /tests/lean/run/match3.lean | c94bcc047abf6480318c7658fe8bd9fe441e2113 | [
"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 | 1,159 | lean | import data.list
open nat
definition foo (a : nat) : nat :=
match a with
| zero := zero
| succ n := n
end
example : foo 3 = 2 := rfl
open decidable
protected theorem dec_eq : ∀ x y : nat, decidable (x = y)
| dec_eq zero zero := inl rfl
| dec_eq (succ x) zero := inr (λ h, nat.no_confusion h)
| dec_eq z... |
dda3cea7e7ee422583a2fcf83fddc60f4486b470 | 74addaa0e41490cbaf2abd313a764c96df57b05d | /Mathlib/linear_algebra/affine_space/affine_subspace.lean | da945fba536876a24bfd03f925dd7e7e8f3edd26 | [] | 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 | 41,181 | 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 Mathlib.PrePort
import Mathlib.Lean3Lib.init.default
import Mathlib.linear_algebra.affine_space.basic
import Mathlib.linear_algebra.tensor_product
import Mathlib.d... |
9e163ff90817a928adce3ba8ea99ad067f26c8eb | 69d4931b605e11ca61881fc4f66db50a0a875e39 | /src/data/list/rotate.lean | 5d919ffabec1fc3e479b6ef8d04eddb2040b4950 | [
"Apache-2.0"
] | permissive | abentkamp/mathlib | d9a75d291ec09f4637b0f30cc3880ffb07549ee5 | 5360e476391508e092b5a1e5210bd0ed22dc0755 | refs/heads/master | 1,682,382,954,948 | 1,622,106,077,000 | 1,622,106,077,000 | 149,285,665 | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 12,255 | lean | /-
Copyright (c) 2019 Chris Hughes. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Chris Hughes, Yakov Pechersky
-/
import data.list.perm
import data.list.range
universe u
variables {α : Type u}
open nat
namespace list
lemma rotate_mod (l : list α) (n : ℕ) : l.rota... |
d6f997e9db1fc4c1dfbddfc7a5799e4159151eb0 | a047a4718edfa935d17231e9e6ecec8c7b701e05 | /src/category_theory/epi_mono.lean | c3383cb623db79500e769967a9d3b7779a9683c5 | [
"Apache-2.0"
] | permissive | utensil-contrib/mathlib | bae0c9fafe5e2bdb516efc89d6f8c1502ecc9767 | b91909e77e219098a2f8cc031f89d595fe274bd2 | refs/heads/master | 1,668,048,976,965 | 1,592,442,701,000 | 1,592,442,701,000 | 273,197,855 | 0 | 0 | null | 1,592,472,812,000 | 1,592,472,811,000 | null | UTF-8 | Lean | false | false | 6,277 | lean | /-
Copyright (c) 2019 Reid Barton. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Reid Barton, Scott Morrison
Facts about epimorphisms and monomorphisms.
The definitions of `epi` and `mono` are in `category_theory.category`,
since they are used by some lemmas for `is... |
5893e96f7b95eba5f2daf9b9655779829b29d388 | 55c7fc2bf55d496ace18cd6f3376e12bb14c8cc5 | /src/tactic/lint/misc.lean | 7ffbeaa424694f8672592cba26e8dfaa83188d71 | [
"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 | 8,918 | lean | /-
Copyright (c) 2020 Floris van Doorn. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Floris van Doorn, Robert Y. Lewis
-/
import tactic.lint.basic
/-!
# Various linters
This file defines several small linters:
- `ge_or_gt` checks that `>` and `≥` do not occur in ... |
429362deffbdbc3288105fe7f4d5eaeb541f0761 | 2eab05920d6eeb06665e1a6df77b3157354316ad | /src/set_theory/cardinal_ordinal.lean | cdf26be2601e0832c4e555f99dad721408ea31b6 | [
"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 | 38,906 | 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 set_theory.ordinal_arithmetic
import tactic.linarith
import logic.small
/-!
# Cardinals and ordinals
Relationships between... |
8ed3ec2e68d348657b6276ce9127bac34ad8b75b | b7f22e51856f4989b970961f794f1c435f9b8f78 | /tests/lean/run/match_tac2.lean | a09e5d3f8d21a2eb571c9532ecfa494904354777 | [
"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 | 284 | lean | example (a b c : Prop) : a ∧ b ↔ b ∧ a :=
begin
apply iff.intro,
{intro H,
match H with
| and.intro H₁ H₂ := by apply and.intro; repeat assumption
end},
{intro H,
match H with
| and.intro H₁ H₂ := by apply and.intro; repeat assumption
end},
end
|
e7d7b73dd606009013472b24e0bd3e1a6e60f68b | fecda8e6b848337561d6467a1e30cf23176d6ad0 | /src/category_theory/monoidal/functor.lean | c3415ffc44da0f583b38e42f21a119ce3013d275 | [
"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 | 7,346 | 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.category
open category_theory
universes v₁ v₂ v₃ u₁ u₂ u₃
open category_theory.category
open category_theory.... |
216bcfa7aa5f35fe6abcffd7581ddaf2fd3078b0 | bb31430994044506fa42fd667e2d556327e18dfe | /src/order/max.lean | ad59fa0fa0b6fa9e0eb117d7b2d0bcba818dc9f8 | [
"Apache-2.0"
] | permissive | sgouezel/mathlib | 0cb4e5335a2ba189fa7af96d83a377f83270e503 | 00638177efd1b2534fc5269363ebf42a7871df9a | refs/heads/master | 1,674,527,483,042 | 1,673,665,568,000 | 1,673,665,568,000 | 119,598,202 | 0 | 0 | null | 1,517,348,647,000 | 1,517,348,646,000 | null | UTF-8 | Lean | false | false | 12,615 | lean | /-
Copyright (c) 2014 Jeremy Avigad. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Jeremy Avigad, Yury Kudryashov, Yaël Dillies
-/
import order.synonym
/-!
# Minimal/maximal and bottom/top elements
> THIS FILE IS SYNCHRONIZED WITH MATHLIB4.
> Any changes to this fil... |
5047a96d4110daa4b44d5289e99413ccc2b9be2c | b7f22e51856f4989b970961f794f1c435f9b8f78 | /tests/lean/pattern_bug1.lean | dd64d91c1ea4a269b7e942045fd905c17c928416 | [
"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 | 137 | lean | constants {A : Type} (P : A → Prop) (R : A → A → Prop)
definition H [forward] : ∀ a, (: P a :) → ∃ b, R a b := sorry
print H
|
c0e3e1ebc19c8b0d1ea5c9b5fa34bc3aed9edaa7 | d1a52c3f208fa42c41df8278c3d280f075eb020c | /src/Lean/Elab/Deriving/Util.lean | a18464114716f57063db08a67fd7f6a78555fbdf | [
"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 | 5,781 | 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.Parser.Term
import Lean.Elab.Term
namespace Lean.Elab.Deriving
open Meta
def implicitBinderF := Parser.Term.implicitBinder
def instBinderF ... |
787c8682e25ad0157410fd4a1227c970ab5b2f8d | d436468d80b739ba7e06843c4d0d2070e43448e5 | /src/topology/algebra/module.lean | d0d3a964dd0c5bde79822f4b313f653b4dcfd0bc | [
"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 | 10,443 | lean | /-
Copyright (c) 2019 Sébastien Gouëzel. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Jan-David Salchow, Sébastien Gouëzel, Jean Lo
Theory of topological modules and continuous linear maps.
-/
import topology.algebra.ring linear_algebra.basic ring_theory.algebra
o... |
0da6a9cc1c3b7a3a87070bb338d7ca0fd35ec5e3 | cf39355caa609c0f33405126beee2739aa3cb77e | /library/init/data/subtype/instances.lean | c3f8eec17f9398313a6b6d55ee6b5e1c1dbf04af | [
"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 | 379 | 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.meta.mk_dec_eq_instance init.data.subtype.basic
open tactic subtype
universes u
instance {α : Type u} {p : α → Prop} [decidable_eq α] : ... |
17f1268ed1ab31e107ffb707e3c79615a8fe3d5e | 74addaa0e41490cbaf2abd313a764c96df57b05d | /Mathlib/data/int/gcd_auto.lean | a02caa9632bb3a2b4a7d7d9c44ba870bfd34d1ab | [] | 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 | 10,952 | lean | /-
Copyright (c) 2018 Guy Leroy. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Sangwoo Jo (aka Jason), Guy Leroy, Johannes Hölzl, Mario Carneiro
-/
import Mathlib.PrePort
import Mathlib.Lean3Lib.init.default
import Mathlib.data.nat.prime
import Mathlib.PostPort
unive... |
8c75228e05c7906d064484193150a1969ff1d1d9 | 64874bd1010548c7f5a6e3e8902efa63baaff785 | /tests/lean/run/tree_height.lean | 1393abf0f3d0b3da92cb79a7af9bcd394749eef2 | [
"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 | 1,082 | lean | import logic data.nat
open eq.ops nat
inductive tree (A : Type) :=
leaf : A → tree A,
node : tree A → tree A → tree A
namespace tree
definition height {A : Type} (t : tree A) : nat :=
rec_on t
(λ a, zero)
(λ t₁ t₂ h₁ h₂, succ (max h₁ h₂))
definition height_lt {A : Type} : tree A → tree A → Prop :=
inv_image lt ... |
934fe23596b28204f55168a226f5c43137f3e381 | 4d2583807a5ac6caaffd3d7a5f646d61ca85d532 | /src/algebra/monoid_algebra/grading.lean | e0dc6e782473266b37e2f11e5f9f675eebf3c9fd | [
"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 | 3,918 | lean | /-
Copyright (c) 2021 Eric Wieser. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Eric Wieser
-/
import algebra.monoid_algebra.to_direct_sum
import algebra.direct_sum.internal
import linear_algebra.finsupp
/-!
# Internal grading of an `add_monoid_algebra`
In this fil... |
ef0844352c5e2a4b67e5eeb0e2a6293c6f453545 | 32025d5c2d6e33ad3b6dd8a3c91e1e838066a7f7 | /stage0/src/Lean/Elab/DoNotation.lean | e37283888c351b665e611d0708e87c3914eabd39 | [
"Apache-2.0"
] | permissive | walterhu1015/lean4 | b2c71b688975177402758924eaa513475ed6ce72 | 2214d81e84646a905d0b20b032c89caf89c737ad | refs/heads/master | 1,671,342,096,906 | 1,599,695,985,000 | 1,599,695,985,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 8,639 | lean | /-
Copyright (c) 2020 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Leonardo de Moura
-/
import Lean.Elab.Term
import Lean.Elab.Binders
import Lean.Elab.Quotation
namespace Lean
namespace Elab
namespace Term
open Meta
structure ExtractMonadRe... |
870eec18659d40570e2677aa6b5def2e34d5c482 | 205f0fc16279a69ea36e9fd158e3a97b06834ce2 | /src/14.Inductive_Definitions/Data_Types/mybool.lean | f41ff45843a2239172a4eacf052e203af34da123 | [] | no_license | kevinsullivan/cs-dm-lean | b21d3ca1a9b2a0751ba13fcb4e7b258010a5d124 | a06a94e98be77170ca1df486c8189338b16cf6c6 | refs/heads/master | 1,585,948,743,595 | 1,544,339,346,000 | 1,544,339,346,000 | 155,570,767 | 1 | 3 | null | 1,541,540,372,000 | 1,540,995,993,000 | Lean | UTF-8 | Lean | false | false | 4,155 | lean | namespace my_bool
inductive mybool : Type
| mytt : mybool
| myff : mybool
#check mybool.mytt
/-
We declare mybool to be an
inductively defined type:
a value of type, Type.
The set of values of this
type that can be constructed
is defined by the available
constructors.
Here there are just two,
mytt and myff, ... |
a4ae51be602de0fa4107d716c3faec560ec6919c | 4727251e0cd73359b15b664c3170e5d754078599 | /src/topology/category/Profinite/cofiltered_limit.lean | 0888434b684b71f4cccb2e4fb5da33c000484002 | [
"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 | 9,355 | lean | /-
Copyright (c) 2021 Adam Topaz. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Adam Topaz
-/
import topology.category.Profinite
import topology.locally_constant.basic
import topology.discrete_quotient
/-!
# Cofiltered limits of profinite sets.
This file contains so... |
7c4f8a305e5cc9056c32086310b9857d58f949f0 | 367134ba5a65885e863bdc4507601606690974c1 | /src/algebra/geom_sum.lean | 7ace94554e033ecab88b8af8ac6da8cafb441e87 | [
"Apache-2.0"
] | permissive | kodyvajjha/mathlib | 9bead00e90f68269a313f45f5561766cfd8d5cad | b98af5dd79e13a38d84438b850a2e8858ec21284 | refs/heads/master | 1,624,350,366,310 | 1,615,563,062,000 | 1,615,563,062,000 | 162,666,963 | 0 | 0 | Apache-2.0 | 1,545,367,651,000 | 1,545,367,651,000 | null | UTF-8 | Lean | false | false | 12,682 | 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 algebra.group_with_zero.power
import algebra.big_operators.order
import algebra.big_operators.ring
import algebra.big_operators.intervals
/-!
# Partial sum... |
2452f5ce07c625ea66754949f2cb17cb7612adce | a45212b1526d532e6e83c44ddca6a05795113ddc | /src/computability/halting.lean | d3bbda33a847961d4cddd21b18e5bc3e96c4eaf6 | [
"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 | 13,265 | lean | /-
Copyright (c) 2018 Mario Carneiro. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Author: Mario Carneiro
More partial recursive functions using a universal program;
Rice's theorem and the halting problem.
-/
import computability.partrec_code
open encodable denumerable
nam... |
6af8f627eacdb201480d2abc42b1500680fcbfec | c3f2fcd060adfa2ca29f924839d2d925e8f2c685 | /tests/lean/run/tactic26.lean | c6aeca6019b000bb428ea336bf22c2b485f4070d | [
"Apache-2.0"
] | permissive | respu/lean | 6582d19a2f2838a28ecd2b3c6f81c32d07b5341d | 8c76419c60b63d0d9f7bc04ebb0b99812d0ec654 | refs/heads/master | 1,610,882,451,231 | 1,427,747,084,000 | 1,427,747,429,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 734 | lean | import logic data.num
open tactic inhabited
namespace foo
inductive sum (A : Type) (B : Type) : Type :=
| inl : A → sum A B
| inr : B → sum A B
theorem inl_inhabited {A : Type} (B : Type) (H : inhabited A) : inhabited (sum A B)
:= inhabited.destruct H (λ a, inhabited.mk (sum.inl B a))
theorem inr_inhabited (A : Ty... |
ec422b6073d076e6fe6dc9adc4f06fdb19c50e2e | 367134ba5a65885e863bdc4507601606690974c1 | /src/field_theory/finite/basic.lean | 59bb1738a815e934ccdf8bb36f69945d4b80e5a6 | [
"Apache-2.0"
] | permissive | kodyvajjha/mathlib | 9bead00e90f68269a313f45f5561766cfd8d5cad | b98af5dd79e13a38d84438b850a2e8858ec21284 | refs/heads/master | 1,624,350,366,310 | 1,615,563,062,000 | 1,615,563,062,000 | 162,666,963 | 0 | 0 | Apache-2.0 | 1,545,367,651,000 | 1,545,367,651,000 | null | UTF-8 | Lean | false | false | 12,473 | lean | /-
Copyright (c) 2018 Chris Hughes. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Chris Hughes, Joey van Langen, Casper Putz
-/
import tactic.apply_fun
import data.equiv.ring
import data.zmod.basic
import linear_algebra.basis
import ring_theory.integral_domain
import ... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.