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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
651919f101c0e1d0547f861a89be6e29ae6028be | d1a52c3f208fa42c41df8278c3d280f075eb020c | /tests/leanpkg/user_attr_app/UserAttr.lean | 219093ee95d0e5021e6a9b8aa5ac2fe078f434a9 | [
"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 | 367 | lean | import UserAttr.Tst
open Lean
def tst : MetaM Unit := do
let env ← getEnv
assert! (blaAttr.hasTag env `f)
assert! (blaAttr.hasTag env `g)
assert! !(blaAttr.hasTag env `id)
pure ()
#eval tst
unsafe def main : IO Unit := do
initSearchPath (← Lean.findSysroot?) ["build"]
withImportModules [{ module := `U... |
931e5519f912cdf61401fa185a1335eb39f06f00 | 94e33a31faa76775069b071adea97e86e218a8ee | /src/set_theory/surreal/dyadic.lean | 4a7c24ed6d7b8ea61b1d4bd6bf16e8a44106df01 | [
"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 | 10,061 | 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.game.birthday
import set_theory.surreal.basic
/-!
# Dyadic numbers
Dyadic numbers a... |
b58db1fa1223511b0754d37e25bb2de038a94c65 | 957a80ea22c5abb4f4670b250d55534d9db99108 | /tests/lean/run/prec_max.lean | 1ab6577a04e09dde32d4171e6e96c287e9c0e4cd | [
"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 | 369 | lean | open nat
reserve postfix ⁻¹:(max + 1)
postfix ⁻¹ := eq.symm
constant foo (a b : nat) : a + b = 0
theorem tst1 (a b : nat) : 0 = a + b :=
(foo _ _)⁻¹
constant f {a b : nat} (h1 : 0 = a + b) (h2 : a = b) : a = 0 ∧ b = 0
example (a b : nat) : a = 0 ∧ b = 0 :=
f (foo _ _)⁻¹ sorry
example (a b : nat) : a = 0 ∧ b = 0 ... |
43683891142df31e0037b04879128a19329dc558 | 8cae430f0a71442d02dbb1cbb14073b31048e4b0 | /src/analysis/calculus/deriv/star.lean | 1f75c711e9ad2cd4ada877d5a9df1166529df1e1 | [
"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,429 | lean | /-
Copyright (c) 2023 Eric Wieser. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Eric Wieser
-/
import analysis.calculus.deriv.basic
import analysis.calculus.fderiv.star
/-!
# Star operations on derivatives
> THIS FILE IS SYNCHRONIZED WITH MATHLIB4.
> Any changes to... |
8df12f10a2d1adba69168d23d44201624aab9a5b | f4bff2062c030df03d65e8b69c88f79b63a359d8 | /src/game/functions/bothInjective.lean | 1c34a699552ac2a09a4c6f087906a7f6f4c0f3f8 | [
"Apache-2.0"
] | permissive | adastra7470/real-number-game | 776606961f52db0eb824555ed2f8e16f92216ea3 | f9dcb7d9255a79b57e62038228a23346c2dc301b | refs/heads/master | 1,669,221,575,893 | 1,594,669,800,000 | 1,594,669,800,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 548 | lean | import data.real.basic
open function
/-
# Chapter 6 : Functions
## Level 1
A classical result in composition of functions.
-/
/- Lemma
If $f : X \to Y$ and $g : Y \to Z$ are both injective functions, then
the function resulting from their composition is also injective.
-/
theorem both_injective
(X Y Z : set ℝ... |
4a100cd89ce66820fcddd40e7e18a29a3519e196 | 0ec6b5eb2131429a4464b8e6c6f09897abba3de1 | /src/field_extensions.lean | 511b1f5c36095ba13b836cfa27b84b627ab049f3 | [] | no_license | kckennylau/local-langlands-abelian | ba1b86e9d956778cd28ac900ffec02b0f0ba172a | ee22666898357dab800a0432214a22c519ed26a9 | refs/heads/master | 1,584,671,060,846 | 1,545,151,246,000 | 1,545,151,246,000 | 137,111,892 | 8 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 6,118 | lean | import linear_algebra.dimension
import analysis.topology.topological_structures
import algebra.pi_instances
import field_theory.subfield
import ring_theory.ideal_operations
import .topological_group
import .algebra_tensor
local attribute [instance] classical.prop_decidable
universes u v
set_option eqn_co... |
518a428f18c64b04b89e925bedc2f0fc05f5faa4 | bd12a817ba941113eb7fdb7ddf0979d9ed9386a0 | /src/category_theory/limits/cones.lean | cb3a700dc2581bea2a82ca452782faa416ff2770 | [
"Apache-2.0"
] | permissive | flypitch/mathlib | 563d9c3356c2885eb6cefaa704d8d86b89b74b15 | 70cd00bc20ad304f2ac0886b2291b44261787607 | refs/heads/master | 1,590,167,818,658 | 1,557,762,121,000 | 1,557,762,121,000 | 186,450,076 | 0 | 0 | Apache-2.0 | 1,557,762,289,000 | 1,557,762,288,000 | null | UTF-8 | Lean | false | false | 13,761 | 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.whiskering
import category_theory.const
import category_theory.opposites
import category_theory.yoneda
import category_theo... |
1243071ff68256dde08f192280e9bb173cfbfb91 | 80cc5bf14c8ea85ff340d1d747a127dcadeb966f | /src/data/nat/fact.lean | d82a1573c4ad11c3805f2b2ff910105ec7a16d33 | [
"Apache-2.0"
] | permissive | lacker/mathlib | f2439c743c4f8eb413ec589430c82d0f73b2d539 | ddf7563ac69d42cfa4a1bfe41db1fed521bd795f | refs/heads/master | 1,671,948,326,773 | 1,601,479,268,000 | 1,601,479,268,000 | 298,686,743 | 0 | 0 | Apache-2.0 | 1,601,070,794,000 | 1,601,070,794,000 | null | UTF-8 | Lean | false | false | 2,803 | lean | /-
Copyright (c) 2018 Mario Carneiro. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Mario Carneiro, Chris Hughes, Floris van Doorn
-/
import data.nat.basic
/-!
# The factorial function
-/
namespace nat
variables {m n : ℕ}
/-- `nat.fact n` is the factorial of `n`. -... |
70ca24a89ab75a9df579de9df91bef003871dfd4 | 63abd62053d479eae5abf4951554e1064a4c45b4 | /src/data/complex/basic.lean | c6465d287093b17492d0471b8d0df7ed347a03ca | [
"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 | 20,808 | lean | /-
Copyright (c) 2017 Kevin Buzzard. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Kevin Buzzard, Mario Carneiro
-/
import data.real.basic
open_locale big_operators
/-!
# The complex numbers
The complex numbers are modelled as ℝ^2 in the obvious way.
-/
/-! ### De... |
6a9d0a33768056d5f4bb024bbcbd50405c2d578f | 43390109ab88557e6090f3245c47479c123ee500 | /src/Euclid_old/tarski_6.lean | 1a52def71bec207050a3ee86b833bb8b5422c4ef | [
"Apache-2.0"
] | permissive | Ja1941/xena-UROP-2018 | 41f0956519f94d56b8bf6834a8d39473f4923200 | b111fb87f343cf79eca3b886f99ee15c1dd9884b | refs/heads/master | 1,662,355,955,139 | 1,590,577,325,000 | 1,590,577,325,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 42,450 | lean | import Euclid.tarski_5
open classical set
namespace Euclidean_plane
variables {point : Type} [Euclidean_plane point]
local attribute [instance] prop_decidable
theorem eleven22a {a b c p a' b' c' p' : point} : Bl a (l b p) c → Bl a' (l b' p') c' → eqa a b p a' b' p' →
eqa p b c p' b' c' → eqa a b c a' b' c' :=
begin
... |
b55ff7322eed96db5c62a0a79eb1195ba8d76a25 | 76ce87faa6bc3c2aa9af5962009e01e04f2a074a | /12_Sets/00_intro.lean | 45363e7b7580d715f2fd8a3186b1c9fe8ae5ae60 | [] | no_license | Mnormansell/Discrete-Notes | db423dd9206bbe7080aecb84b4c2d275b758af97 | 61f13b98be590269fc4822be7b47924a6ddc1261 | refs/heads/master | 1,585,412,435,424 | 1,540,919,483,000 | 1,540,919,483,000 | 148,684,638 | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 190 | lean | def e: set nat := { }
def x: set nat := { 1, 2, 3 }
def y: set nat := { 2, 3, 4 }
def z := x ∪ y
def w := x ∩ y
#check false
#check e
#reduce e
#check z
#reduce z
#check w
#reduce w |
e76b84c89d17e7df4e8fbbca76446e396fc45d38 | 74addaa0e41490cbaf2abd313a764c96df57b05d | /Mathlib/linear_algebra/lagrange.lean | f7e819cb12038bbd5eb274e79b72832dda157282 | [] | 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 | 5,380 | lean | /-
Copyright (c) 2020 Kenny Lau. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Author: Kenny Lau.
-/
import Mathlib.PrePort
import Mathlib.Lean3Lib.init.default
import Mathlib.ring_theory.polynomial.default
import Mathlib.algebra.big_operators.basic
import Mathlib.PostPort
un... |
7b0a488739fcefeb5baf7b1c53b4f3ae548dc3dc | d406927ab5617694ec9ea7001f101b7c9e3d9702 | /src/algebra/euclidean_domain/basic.lean | 676b8b96855e826afa4a30bf9a478e6ffec80988 | [
"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 | 9,755 | lean | /-
Copyright (c) 2018 Louis Carlin. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Louis Carlin, Mario Carneiro
-/
import algebra.euclidean_domain.defs
import algebra.ring.divisibility
import algebra.ring.regular
import algebra.group_with_zero.divisibility
/-!
# Lemma... |
f317f79faf67d5370a15d017e5774cf85e1345cb | 64874bd1010548c7f5a6e3e8902efa63baaff785 | /tests/lean/run/class8.lean | 2982e5679fae8693b27539af0d3a52c84bca1748 | [
"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,077 | lean | import logic data.prod
open tactic prod
inductive inh [class] (A : Type) : Prop :=
intro : A -> inh A
attribute inh.intro [instance]
theorem inh_elim {A : Type} {B : Prop} (H1 : inh A) (H2 : A → B) : B
:= inh.rec H2 H1
theorem inh_exists {A : Type} {P : A → Prop} (H : ∃x, P x) : inh A
:= obtain w Hw, from H, inh.in... |
4acb50df3a3c7681ab58e134c6ce537a9e7bd09a | 432d948a4d3d242fdfb44b81c9e1b1baacd58617 | /src/linear_algebra/invariant_basis_number.lean | aef037a4421bc6e812d46c61e9de373f2a483b7d | [
"Apache-2.0"
] | permissive | JLimperg/aesop3 | 306cc6570c556568897ed2e508c8869667252e8a | a4a116f650cc7403428e72bd2e2c4cda300fe03f | refs/heads/master | 1,682,884,916,368 | 1,620,320,033,000 | 1,620,320,033,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 5,606 | 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 linear_algebra.finite_dimensional
import ring_theory.ideal.basic
/-!
# Invariant basis number property
We say that a ring `R` satisfies the invariant basis num... |
d585543a043ad19873761aebb3e65beb14b35b96 | 74addaa0e41490cbaf2abd313a764c96df57b05d | /Mathlib/topology/topological_fiber_bundle.lean | 9d87be93d51e6a9cfe8551cac0ed9459cca29611 | [] | 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 | 26,714 | 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 Mathlib.PrePort
import Mathlib.Lean3Lib.init.default
import Mathlib.topology.local_homeomorph
import Mathlib.PostPort
universes u_2 u_3 u_4 l u_5 u_6 u_... |
d8461d55221491b69e6df59a14f149e41cc23f4e | 8cae430f0a71442d02dbb1cbb14073b31048e4b0 | /src/geometry/manifold/diffeomorph.lean | f7eef23e11ca7f06d5ac55daf419a8d56ecf7ba7 | [
"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 | 21,371 | 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
import geometry.manifold.cont_mdiff_mfderiv
/-!
# Diffeomorphisms
> THIS FILE IS SYNCHRONIZED WITH MATHL... |
43fa9e7d8f62ddac3773f9314974567f2f63f08b | a4673261e60b025e2c8c825dfa4ab9108246c32e | /src/Init/System/ST.lean | 232da595cb9a4534a8acd2c3940516c46a0fe32e | [
"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 | 4,402 | lean | /-
Copyright (c) 2020 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Leonardo de Moura
-/
prelude
import Init.Classical
import Init.Control.EState
import Init.Control.Reader
def EST (ε : Type) (σ : Type) : Type → Type := EStateM ε σ
abbrev ST (σ... |
aa01c2e3bf5517690e140e422cc72629dfa00089 | c31182a012eec69da0a1f6c05f42b0f0717d212d | /src/polyhedral_lattice/quotient.lean | e6d59d17685030ad1be3a5c13fb6082a0a7df2c5 | [] | 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 | 5,598 | lean | import analysis.normed_space.normed_group_quotient
import linear_algebra.free_module_pid
import for_mathlib.finite_free
import polyhedral_lattice.topology
/-!
# Quotients of polyhedral lattices
-/
noncomputable theory
open_locale big_operators
section saturated
-- PR #8137
variables {G G₁ G₂ : Type*} [group G] ... |
5ff3a28a10f39f025c259a76ba7d4868091014f9 | 618003631150032a5676f229d13a079ac875ff77 | /src/data/list/antidiagonal.lean | 3e326027e18de0563422e88b9d0ed3fc0b3bb9b0 | [
"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,631 | lean | /-
Copyright (c) 2019 Johan Commelin. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Johan Commelin
-/
import data.list.range
open list function nat
namespace list
namespace nat
/-- The antidiagonal of a natural number `n` is the list of pairs `(i,j)` such that `i+j... |
129826c3911848b93c78a488037f193a2c91d5f3 | fcf3ffa92a3847189ca669cb18b34ef6b2ec2859 | /src/world7/level5.lean | fbb87faa2203526d9cee099452b007df8f0bc1f0 | [
"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 | 413 | lean | lemma iff_trans (P Q R : Prop) : (P ↔ Q) → (Q ↔ R) → (P ↔ R) :=
begin
intros pq qr,
split,
{
intro p,
apply qr.1,
apply pq.1,
exact p,
},
{
intro r,
apply pq.2,
apply qr.2,
exact r,
},
end
lemma iff_trans_2 (P Q R : Prop) : (P ↔ Q)... |
3130689fdc363f95a84ef9adb625987628ba4459 | 9be442d9ec2fcf442516ed6e9e1660aa9071b7bd | /tests/lean/1007.lean | 2ea5230f4f581c8c36f28401c15397d837dfadc1 | [
"Apache-2.0",
"LLVM-exception",
"NCSA",
"LGPL-3.0-only",
"LicenseRef-scancode-inner-net-2.0",
"BSD-3-Clause",
"LGPL-2.0-or-later",
"Spencer-94",
"LGPL-2.1-or-later",
"HPND",
"LicenseRef-scancode-pcre",
"ISC",
"LGPL-2.1-only",
"LicenseRef-scancode-other-permissive",
"SunPro",
"CMU-Mach"... | permissive | EdAyers/lean4 | 57ac632d6b0789cb91fab2170e8c9e40441221bd | 37ba0df5841bde51dbc2329da81ac23d4f6a4de4 | refs/heads/master | 1,676,463,245,298 | 1,660,619,433,000 | 1,660,619,433,000 | 183,433,437 | 1 | 0 | Apache-2.0 | 1,657,612,672,000 | 1,556,196,574,000 | Lean | UTF-8 | Lean | false | false | 1,860 | lean | class Vec (X : Type u)
class IsLin {X Y} [Vec X] [Vec Y] (f : X → Y)
structure ℝ where
value : Float
instance instFoo1 {X : Type u} {Y : Type v} [Vec X] [Vec Y] : Vec (X × Y) := sorry
instance instProblem {α : Type u} {X : Type v} [Vec X] : Vec (α → X) := sorry
instance (priority := mid+1) instFoo2 : Vec ℝ := sor... |
7f0f447bc598121f77cf0d82d908d8e01ec72900 | 55c7fc2bf55d496ace18cd6f3376e12bb14c8cc5 | /src/data/polynomial/integral_normalization.lean | 2253a36478447fad9b3ff4ce815fe08241c7a1ef | [
"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 | 5,312 | 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 data.polynomial.algebra_map
import data.polynomial.monic
/-!
# Theory of monic polynomials
We define `integral_n... |
3fcc6f58a1738350d245c667e5c005402d479a8a | b7f22e51856f4989b970961f794f1c435f9b8f78 | /library/data/set/basic.lean | 44a6253cc58038358071656859e57856e0d213e9 | [
"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 | 35,917 | lean | /-
Copyright (c) 2014 Jeremy Avigad. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Author: Jeremy Avigad, Leonardo de Moura
-/
import logic.connectives logic.identities algebra.binary
open eq.ops binary function
definition set (X : Type) := X → Prop
namespace set
variable {... |
e3ae01abe7978d8361ee004c6d93121580ecaeb2 | 5fbbd711f9bfc21ee168f46a4be146603ece8835 | /lean/natural_number_game/multiplication/1.lean | 948d4e002b90839327463872bc0bed11022e5f93 | [
"LicenseRef-scancode-warranty-disclaimer"
] | no_license | goedel-gang/maths | 22596f71e3fde9c088e59931f128a3b5efb73a2c | a20a6f6a8ce800427afd595c598a5ad43da1408d | refs/heads/master | 1,623,055,941,960 | 1,621,599,441,000 | 1,621,599,441,000 | 169,335,840 | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 120 | lean | lemma zero_mul (m : mynat) : 0 * m = 0 :=
induction m with n hn,
rwa mul_zero,
rw mul_succ,
rw hn,
simp,
end
|
907c2c01bd6773c4c0de6a007f5f8df5ec281a47 | 6de8ea38e7f58ace8fbf74ba3ad0bf3b3d1d7ab5 | /homework2/Warmup/solutions.lean | b3e76c2817e2ec9587d962ec0876406861f97576 | [] | no_license | KinanBab/CS591K1-Labs | 72f4e2c7d230d4e4f548a343a47bf815272b1f58 | d4569bf99d20c22cd56721024688cda247d1447f | refs/heads/master | 1,587,016,758,873 | 1,558,148,366,000 | 1,558,148,366,000 | 165,329,114 | 5 | 2 | null | 1,550,689,848,000 | 1,547,252,664,000 | TeX | UTF-8 | Lean | false | false | 476 | lean | -- Warmup: first order logic (10 points)
-- Two simple first order logic tautologies, these are true
-- in intuisionistic first order.
-- Part A: 5 points
theorem simple_one (t: Type) (P1 P2: t-> Prop) :
(∀{a: t}, P1 a ∧ P2 a) -> (∀{b: t}, P1 b) :=
begin
-- proof goes here
end
-- Part B: 5 points
theorem simpl... |
61d333f4a8f54b1ad0f46c11c8ba8d2012b48ddd | c777c32c8e484e195053731103c5e52af26a25d1 | /src/measure_theory/measure/measure_space_def.lean | cb8949247984b71ef8348107045af7e7d5178b98 | [
"Apache-2.0"
] | permissive | kbuzzard/mathlib | 2ff9e85dfe2a46f4b291927f983afec17e946eb8 | 58537299e922f9c77df76cb613910914a479c1f7 | refs/heads/master | 1,685,313,702,744 | 1,683,974,212,000 | 1,683,974,212,000 | 128,185,277 | 1 | 0 | null | 1,522,920,600,000 | 1,522,920,600,000 | null | UTF-8 | Lean | false | false | 24,926 | lean | /-
Copyright (c) 2017 Johannes Hölzl. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Johannes Hölzl, Mario Carneiro
-/
import measure_theory.measure.outer_measure
import order.filter.countable_Inter
/-!
# Measure spaces
> THIS FILE IS SYNCHRONIZED WITH MATHLIB4.
> An... |
edff326886b390be6a482dcff03ab734b5ea8636 | fa02ed5a3c9c0adee3c26887a16855e7841c668b | /src/data/set/intervals/infinite.lean | 4ec7fdc2a6ac582abc26dd394813c988e6544baa | [
"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 | 1,935 | lean | /-
Copyright (c) 2020 Reid Barton. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Reid Barton
-/
import data.set.finite
/-!
# Infinitude of intervals
Bounded intervals in dense orders are infinite, as are unbounded intervals
in orders that are unbounded on the approp... |
1b9e5246721f72e0182f1156324ab4cdfb245480 | 82e44445c70db0f03e30d7be725775f122d72f3e | /src/combinatorics/choose/bounds.lean | 4e03c50b670698a27b1670268871a7ab850c2ab2 | [
"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 | 1,232 | lean | /-
Copyright (c) 2021 Yaël Dillies. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Yaël Dillies, Eric Rodriguez
-/
import data.nat.choose.basic
import data.nat.cast
import algebra.group_power.lemmas
/-!
# Inequalities for binomial coefficients
This file proves expon... |
1968266473e9541ae99359444a395d0c2b7a677c | 57aec6ee746bc7e3a3dd5e767e53bd95beb82f6d | /tests/lean/run/struct3.lean | 3879aa5cc3e27095683a0908f3e4bc1e1e3a973b | [
"Apache-2.0"
] | permissive | collares/lean4 | 861a9269c4592bce49b71059e232ff0bfe4594cc | 52a4f535d853a2c7c7eea5fee8a4fa04c682c1ee | refs/heads/master | 1,691,419,031,324 | 1,618,678,138,000 | 1,618,678,138,000 | 358,989,750 | 0 | 0 | Apache-2.0 | 1,618,696,333,000 | 1,618,696,333,000 | null | UTF-8 | Lean | false | false | 1,136 | lean | universes u v
class Bind2 (m : Type u → Type v) where
bind : ∀ {α β : Type u}, m α → (α → m β) → m β
class Monad2 (m : Type u → Type v) extends Applicative m, Bind2 m : Type (max (u+1) v) where
map := fun f x => Bind2.bind x (pure ∘ f)
seq := fun f x => Bind2.bind f fun y => Functor.map y x
seqLeft ... |
89f0bd7656a3a56eb322daf66389911cf3972fdc | cf39355caa609c0f33405126beee2739aa3cb77e | /tests/lean/instance_cache1.lean | 7b8a046aad1d3829abfe75cf787d347d23463f07 | [
"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 | 339 | lean | definition f1 (A : Type*) (a : A) :=
have has_add A, from has_add.mk (λ (a b : A), a),
a + a
definition f2 (A : Type*) (a : A) : has_add A → A :=
λ s, a + a
definition f3 (A : Type*) (a : A) :=
λ s : has_add A, a + a
definition f4 (A : Type*) [has_add A] (a : A) :=
a + a
definition g (A : Type*) (s : has_add A) (a ... |
67b1f188e065666964f7477b78e5c9cb57e68d1b | 685ab3d59bec28c631aabbe80a39f70fb639d38b | /group_isomorphicity.lean | 798cabab349e86a1b0a9d5a95be56c3413882d42 | [] | no_license | 0function/storage | 7ffad46d00dda4c190f1a48ae6b1c23012ef8603 | 1a28fa3019003170c509b0c2badb85bd25319cd5 | refs/heads/master | 1,594,195,514,972 | 1,572,596,352,000 | 1,572,596,352,000 | 203,612,497 | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 22,398 | lean | import group_theory.coset ring_theory.matrix ring_theory.determinant ring_theory.ideals algebra.gcd_domain algebra.euclidean_domain data.int.modeq group_theory.quotient_group data.equiv.algebra group_theory.subgroup
import tactic.ring tactic.fin_cases tactic.tidy
open function quotient_group group is_group_hom set cla... |
fce24b08b1be031a8031bdff73a8286c6b09cc06 | c777c32c8e484e195053731103c5e52af26a25d1 | /src/algebra/lie/weights.lean | a2a68d870af654891951f942f4c146c036470e19 | [
"Apache-2.0"
] | permissive | kbuzzard/mathlib | 2ff9e85dfe2a46f4b291927f983afec17e946eb8 | 58537299e922f9c77df76cb613910914a479c1f7 | refs/heads/master | 1,685,313,702,744 | 1,683,974,212,000 | 1,683,974,212,000 | 128,185,277 | 1 | 0 | null | 1,522,920,600,000 | 1,522,920,600,000 | null | UTF-8 | Lean | false | false | 23,977 | 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.nilpotent
import algebra.lie.tensor_product
import algebra.lie.character
import algebra.lie.engel
import algebra.lie.cartan_subalgebra
import linear_alge... |
4d66d75fd09b34a02b2a01948c79687a7103f240 | 957a80ea22c5abb4f4670b250d55534d9db99108 | /library/init/native/builtin.lean | 04a8c3b82285a061aac6715d1b4667c83c6b80dc | [
"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 | 352 | lean | /-
Copyright (c) 2016 Jared Roesch. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Jared Roesch
-/
prelude
import init.meta.name
inductive builtin
| cfun : name → nat → builtin
| cases : name → nat → builtin
| vm : name → builtin
meta constant native.get_builtin : na... |
c5bb0ee41f16d67c9ae686787d1f3c9c5e6b77b5 | b7f22e51856f4989b970961f794f1c435f9b8f78 | /hott/hit/groupoid_quotient.hlean | 8b421259bb13b28f42dd8ad60623764776a85928 | [
"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 | 9,588 | hlean | /-
Copyright (c) 2015-16 Floris van Doorn. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Floris van Doorn
The groupoid quotient. This is a 1-type which path spaces is the same as the morphisms
a given groupoid. We define it as the 1-truncation of a two quotient.
-/
... |
8937512f3834cce3e65007f5e3c3fb6804d354c8 | 35677d2df3f081738fa6b08138e03ee36bc33cad | /src/data/list/of_fn.lean | b77cbb57bf627b8e0fcab4c5e5ff970b32cabdc9 | [
"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,269 | lean | /-
Copyright (c) 2018 Mario Carneiro. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Mario Carneiro
-/
import data.list.basic
import data.fin
universes u
variables {α : Type u}
open nat
namespace list
/- of_fn -/
theorem length_of_fn_aux {n} (f : fin n → α) :
∀ ... |
6ac941a3e803c2de686bda86c68c98fd9c80f9d9 | 75db7e3219bba2fbf41bf5b905f34fcb3c6ca3f2 | /tests/lean/extra/616b.hlean | 7416663be9a42476d88b61840d4d7c86a03bf481 | [
"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 | 247 | hlean | import .f616a
open eq
definition my_elim {A P : Type} {R : A → A → Type} (Pc : A → P)
(Pp : Π⦃a a' : A⦄ (H : R a a'), Pc a = Pc a') (x : quotient R) : P :=
begin
induction x,
exact (Pc a),
refine (pathover_of_eq (Pp H))
end
|
d46a44d99c0c59e9523a6dc8f69c78ee8ed4b354 | 4fa161becb8ce7378a709f5992a594764699e268 | /src/analysis/convex/basic.lean | 0a8a9c7d2300860ea3badab88efacfc073934985 | [
"Apache-2.0"
] | permissive | laughinggas/mathlib | e4aa4565ae34e46e834434284cb26bd9d67bc373 | 86dcd5cda7a5017c8b3c8876c89a510a19d49aad | refs/heads/master | 1,669,496,232,688 | 1,592,831,995,000 | 1,592,831,995,000 | 274,155,979 | 0 | 0 | Apache-2.0 | 1,592,835,190,000 | 1,592,835,189,000 | null | UTF-8 | Lean | false | false | 39,233 | 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.unordered_interval
import data.set.intervals.image_preimage
import data.complex.module
import algebra.pointwise
/-... |
63b0748f5155424156e0a930b8d742995bc01657 | d406927ab5617694ec9ea7001f101b7c9e3d9702 | /src/category_theory/triangulated/triangulated.lean | 5c78f2f72d905d890ccd3d5658546a10fec23f22 | [
"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,760 | 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.triangulated.pretriangulated
/-!
# Triangulated Categories
This file contains the definition of triangulated categories, which are
pretriangulated cat... |
14e9611dcb389fb7e551411cd1bc9a772e4f03a6 | a4673261e60b025e2c8c825dfa4ab9108246c32e | /stage0/src/Init/Data/Option/Basic.lean | e6b8a837bb7e5a033d7cc0d1339bd39abeb172c1 | [
"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 | 3,043 | lean | /-
Copyright (c) 2014 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Leonardo de Moura
-/
prelude
import Init.Core
import Init.Control.Basic
import Init.Coe
namespace Option
def toMonad [Monad m] [Alternative m] : Option α → m α
| none =>... |
846ae07158b67225a1e0f62eaf0fab0477408123 | 57c233acf9386e610d99ed20ef139c5f97504ba3 | /src/algebra/category/Group/filtered_colimits.lean | ff4eaf71c84da6fc58b95383b118cc8aeaed50dc | [
"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 | 8,303 | lean | /-
Copyright (c) 2021 Justus Springer. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Justus Springer
-/
import algebra.category.Group.basic
import algebra.category.Mon.filtered_colimits
/-!
# The forgetful functor from (commutative) (additive) groups preserves filter... |
478b28e0a9f7c48884d473591fea0a9bd9fe864f | 7cef822f3b952965621309e88eadf618da0c8ae9 | /src/tactic/scc.lean | 00d4bb2f5c7fa9d4395e6294f692c4adba40a878 | [
"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 | 12,837 | lean | /-
Copyright (c) 2018 Simon Hudon All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Simon Hudon
Tactics based on the strongly connected components (SCC) of a graph where
the vertices are propositions and the edges are implications found
in the context.
They are used for... |
d7d84677fd317e19cd1ee0591ea608a6d9a59c56 | e0f9ba56b7fedc16ef8697f6caeef5898b435143 | /src/order/complete_lattice.lean | 9620ee88ec18bf9966cabc78f6d87d5f20936d64 | [
"Apache-2.0"
] | permissive | anrddh/mathlib | 6a374da53c7e3a35cb0298b0cd67824efef362b4 | a4266a01d2dcb10de19369307c986d038c7bb6a6 | refs/heads/master | 1,656,710,827,909 | 1,589,560,456,000 | 1,589,560,456,000 | 264,271,800 | 0 | 0 | Apache-2.0 | 1,589,568,062,000 | 1,589,568,061,000 | null | UTF-8 | Lean | false | false | 35,989 | 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
Theory of complete lattices.
-/
import order.bounds
set_option old_structure_cmd true
open set
universes u v w w₂
variables {α : Type u} {β : Type v} {ι : Sort w} {ι₂... |
200882b46b00bc9126bd16e05cfef98e22cc2a11 | 9dc8cecdf3c4634764a18254e94d43da07142918 | /src/analysis/normed_space/dual.lean | bdd00bb90571dee40ff586cbb1b426627e218414 | [
"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 | 10,345 | lean | /-
Copyright (c) 2020 Heather Macbeth. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Heather Macbeth
-/
import analysis.normed_space.hahn_banach.extension
import analysis.normed_space.is_R_or_C
import analysis.locally_convex.polar
/-!
# The topological dual of a norm... |
a0466cc6ce61344ba5c691aa900ac7f59a5ca592 | 74addaa0e41490cbaf2abd313a764c96df57b05d | /Mathlib/tactic/replacer_auto.lean | 18e7570fbe14eb60c3c5f18f22653749952a1fd9 | [] | no_license | AurelienSaue/Mathlib4_auto | f538cfd0980f65a6361eadea39e6fc639e9dae14 | 590df64109b08190abe22358fabc3eae000943f2 | refs/heads/master | 1,683,906,849,776 | 1,622,564,669,000 | 1,622,564,669,000 | 371,723,747 | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 1,422 | lean | /-
Copyright (c) 2018 Mario Carneiro. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Author: Mario Carneiro
-/
import Mathlib.PrePort
import Mathlib.Lean3Lib.init.default
import Mathlib.tactic.core
import Mathlib.PostPort
namespace Mathlib
/-!
# `def_replacer`
A mechanism fo... |
af051ae3ff91eb376617447d68fcf2d539d2322d | 491068d2ad28831e7dade8d6dff871c3e49d9431 | /tests/lean/param_binder_update.lean | 0fc9079ce8b0b2e61e926cca7f2113e2ce2e79fc | [
"Apache-2.0"
] | permissive | davidmueller13/lean | 65a3ed141b4088cd0a268e4de80eb6778b21a0e9 | c626e2e3c6f3771e07c32e82ee5b9e030de5b050 | refs/heads/master | 1,611,278,313,401 | 1,444,021,177,000 | 1,444,021,177,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 1,120 | lean | section
parameter {A : Type}
parameter A
definition id (a : A) := a
parameter {A}
definition id₂ (a : A) := a
end
check @id
check @id₂
section
parameters {A : Type} {B : Type}
definition foo1 (a : A) (b : B) := a
parameters {A} (B)
definition foo2 (a : A) (b : B) := a
parameters (A) {B}
... |
a9518d55051ca0763beb0009686a5600b083a7bf | 63abd62053d479eae5abf4951554e1064a4c45b4 | /src/analysis/complex/basic.lean | 1acd614eb953e6c2049c236dc53b2ce872df83c8 | [
"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 | 7,780 | 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
-/
import analysis.calculus.deriv
import analysis.normed_space.finite_dimension
/-!
# Normed space structure on `ℂ`.
This file gathers basic facts on complex numbers ... |
85d5732ea04ae18cdd5ed041b2a3e502b21fc56b | 74addaa0e41490cbaf2abd313a764c96df57b05d | /Mathlib/data/nat/cast.lean | b6f21c7803cc6ae8be11c7e646be52d1b0933c2a | [] | 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 | 11,536 | lean | /-
Copyright (c) 2014 Mario Carneiro. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Mario Carneiro
Natural homomorphism from the natural numbers into a monoid with one.
-/
import Mathlib.PrePort
import Mathlib.Lean3Lib.init.default
import Mathlib.algebra.ordered_fiel... |
497489824ffebcf6b110bb0e95f41acc8c78c4d4 | 57aec6ee746bc7e3a3dd5e767e53bd95beb82f6d | /src/Lean/Elab/Tactic/Simp.lean | 1c5ac9d6361da9735fba31093d7374d779fda141 | [
"Apache-2.0"
] | permissive | collares/lean4 | 861a9269c4592bce49b71059e232ff0bfe4594cc | 52a4f535d853a2c7c7eea5fee8a4fa04c682c1ee | refs/heads/master | 1,691,419,031,324 | 1,618,678,138,000 | 1,618,678,138,000 | 358,989,750 | 0 | 0 | Apache-2.0 | 1,618,696,333,000 | 1,618,696,333,000 | null | UTF-8 | Lean | false | false | 6,525 | 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.Meta.Tactic.Simp
import Lean.Elab.Tactic.Basic
import Lean.Elab.Tactic.ElabTerm
import Lean.Elab.Tactic.Location
import Lean.Meta.Tactic.Replace... |
e55bf13e4af7adf2d440ca48f67f376f6ae3dc3a | 55c7fc2bf55d496ace18cd6f3376e12bb14c8cc5 | /src/linear_algebra/nonsingular_inverse.lean | 5989914d1f3ea100b5d3d94653960f21f4209ac3 | [
"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 | 15,864 | lean | /-
Copyright (c) 2019 Tim Baanen. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Author: Tim Baanen.
-/
import algebra.associated
import linear_algebra.determinant
import tactic.linarith
import tactic.ring_exp
/-!
# Nonsingular inverses
In this file, we define an inverse for ... |
26677f7ea44ec78ad514f6b04b03808dcc421ddc | 737dc4b96c97368cb66b925eeea3ab633ec3d702 | /src/Lean/Elab/Binders.lean | 7cbcca74333fe630689731dd71adcd48e7b38c8a | [
"Apache-2.0"
] | permissive | Bioye97/lean4 | 1ace34638efd9913dc5991443777b01a08983289 | bc3900cbb9adda83eed7e6affeaade7cfd07716d | refs/heads/master | 1,690,589,820,211 | 1,631,051,000,000 | 1,631,067,598,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 26,438 | lean | /-
Copyright (c) 2019 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Leonardo de Moura
-/
import Lean.Elab.Quotation.Precheck
import Lean.Elab.Term
import Lean.Elab.BindersUtil
import Lean.Parser.Term
namespace Lean.Elab.Term
open Meta
open Lean... |
a9a303dc63faea027ea536e2ebecdf26d4a56ea4 | 5ae26df177f810c5006841e9c73dc56e01b978d7 | /test/omega.lean | d7a47287bea96dbdd2586bee1331965d81ae0812 | [
"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 | 2,455 | lean | /-
Test cases for omega. Most of the examples are from John Harrison's
Handbook of Practical Logic and Automated Reasoning.
-/
import tactic.omega
example (x : int) : (x = 5 ∨ x = 7) → 2 < x := by omega
example (x : int) : x ≤ -x → x ≤ 0 := by omega
example : ∀ x y : int, (x ≤ 5 ∧ y ≤ 3) → x + y ≤ 8 := by omega
examp... |
751b6dd60b28502659bd356d765fcee68f526044 | 90edd5cdcf93124fe15627f7304069fdce3442dd | /src/Lean/Aesop/Tree.lean | 614a87f24f79ce35d888afcab5c866df7499c7e9 | [
"Apache-2.0"
] | permissive | JLimperg/lean4-aesop | 8a9d9cd3ee484a8e67fda2dd9822d76708098712 | 5c4b9a3e05c32f69a4357c3047c274f4b94f9c71 | refs/heads/master | 1,689,415,944,104 | 1,627,383,284,000 | 1,627,383,284,000 | 377,536,770 | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 14,500 | lean | /-
Copyright (c) 2021 Jannis Limperg. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Jannis Limperg, Asta Halkjær From
-/
import Lean.Aesop.MutAltTree
import Lean.Aesop.Rule
import Lean.Aesop.Util
import Lean.Aesop.Tracing
open Lean
open Lean.Meta
@[inlineIfReduce]
... |
ded09296fe2549d7097ef199b814c0badccd0974 | 30b012bb72d640ec30c8fdd4c45fdfa67beb012c | /analysis/polynomial.lean | 9268da1a412ced12cef5b2afbc03f42e6897ca98 | [
"Apache-2.0"
] | permissive | kckennylau/mathlib | 21fb810b701b10d6606d9002a4004f7672262e83 | 47b3477e20ffb5a06588dd3abb01fe0fe3205646 | refs/heads/master | 1,634,976,409,281 | 1,542,042,832,000 | 1,542,319,733,000 | 109,560,458 | 0 | 0 | Apache-2.0 | 1,542,369,208,000 | 1,509,867,494,000 | Lean | UTF-8 | Lean | false | false | 941 | 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
Analytic facts about polynomials.
-/
import analysis.topology.topological_structures data.polynomial
lemma polynomial.continuous_eval {α} [comm_semiring α] [decidabl... |
f86625a3f0d2290133a7d67f0d4acb823c44f1af | 3f7026ea8bef0825ca0339a275c03b911baef64d | /src/category/bitraversable/instances.lean | 8eaad1beedce81d1b7bad54f740c26ab70d095e7 | [
"Apache-2.0"
] | permissive | rspencer01/mathlib | b1e3afa5c121362ef0881012cc116513ab09f18c | c7d36292c6b9234dc40143c16288932ae38fdc12 | refs/heads/master | 1,595,010,346,708 | 1,567,511,503,000 | 1,567,511,503,000 | 206,071,681 | 0 | 0 | Apache-2.0 | 1,567,513,643,000 | 1,567,513,643,000 | null | UTF-8 | Lean | false | false | 4,435 | 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 category.bitraversable.basic
category.bitraversable.lemmas
category.traversable.lemmas
tactic.solve_by_elim
/-!
# bitraversable instances
#... |
7cb8037cbb619f96ec266a84ca2d7d8b9de79095 | 2eab05920d6eeb06665e1a6df77b3157354316ad | /src/data/nat/cast.lean | 08921a39a59f14d152c168a42ad8d053e1d63654 | [
"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 | 12,253 | 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 algebra.order.field
import data.nat.basic
/-!
# Cast of naturals
This file defines the *canonical* homomorphism from the natural numbers into a type `α` with... |
25ef455140b05367fd243dbbad67806c2a1c716d | 4727251e0cd73359b15b664c3170e5d754078599 | /src/ring_theory/localization/basic.lean | bd6dcb212d57326fcfb031b75c859f3d38f17c5c | [
"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 | 43,693 | lean | /-
Copyright (c) 2018 Kenny Lau. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Kenny Lau, Mario Carneiro, Johan Commelin, Amelia Livingston, Anne Baanen
-/
import algebra.algebra.basic
import algebra.ring.equiv
import group_theory.monoid_localization
import ring_theor... |
6155ea597b6bea62173929c241bb9026d4a19811 | d406927ab5617694ec9ea7001f101b7c9e3d9702 | /src/linear_algebra/affine_space/independent.lean | fa328b91b4a9f5d22f009bc72979f63d15388454 | [
"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 | 36,900 | lean | /-
Copyright (c) 2020 Joseph Myers. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Joseph Myers
-/
import data.finset.sort
import data.fin.vec_notation
import linear_algebra.affine_space.combination
import linear_algebra.affine_space.affine_equiv
import linear_algebra.... |
60d32a4fcbcbc44dd5305a00388b14fc8d37b29b | 08bd4ba4ca87dba1f09d2c96a26f5d65da81f4b4 | /tests/lean/StxQuot.lean | 33954779055554734893d58310bbe9d2a455ee40 | [
"LLVM-exception",
"NCSA",
"LGPL-3.0-only",
"LicenseRef-scancode-inner-net-2.0",
"BSD-3-Clause",
"LGPL-2.0-or-later",
"Spencer-94",
"LGPL-2.1-or-later",
"HPND",
"LicenseRef-scancode-pcre",
"ISC",
"LGPL-2.1-only",
"Apache-2.0",
"LicenseRef-scancode-other-permissive",
"SunPro",
"CMU-Mach"... | permissive | gebner/lean4 | d51c4922640a52a6f7426536ea669ef18a1d9af5 | 8cd9ce06843c9d42d6d6dc43d3e81e3b49dfc20f | refs/heads/master | 1,685,732,780,391 | 1,672,962,627,000 | 1,673,459,398,000 | 373,307,283 | 0 | 0 | Apache-2.0 | 1,691,316,730,000 | 1,622,669,271,000 | Lean | UTF-8 | Lean | false | false | 4,619 | lean | import Lean
open Lean
open Lean.Elab
def run {α} [ToString α] : Unhygienic α → String := toString ∘ Unhygienic.run
#eval run `()
#eval run `(Nat.one)
def miss : TSyntax `term := ⟨Syntax.missing⟩
#eval run `($miss)
namespace Lean.Syntax
#eval run `($miss)
#eval run `($(miss))
#eval run `($(id miss) + 1)
#eval run $ l... |
3ca4843f3dad2c191220a8f121c36ba150691cc3 | 77c5b91fae1b966ddd1db969ba37b6f0e4901e88 | /src/analysis/normed_space/operator_norm.lean | b0aca4575c62f5906b70e330b74ba177d3116cfd | [
"Apache-2.0"
] | permissive | dexmagic/mathlib | ff48eefc56e2412429b31d4fddd41a976eb287ce | 7a5d15a955a92a90e1d398b2281916b9c41270b2 | refs/heads/master | 1,693,481,322,046 | 1,633,360,193,000 | 1,633,360,193,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 59,498 | lean | /-
Copyright (c) 2019 Jan-David Salchow. 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
-/
import algebra.algebra.tower
import analysis.normed_space.linear_isometry
import analysis.normed_space.riesz_lemma
import data.equiv... |
c3fb2cf7137bff03a9d3b864413ff2bb92bf98be | 69d4931b605e11ca61881fc4f66db50a0a875e39 | /src/algebra/ring/pi.lean | 6f44f77929b46597f38f7ea38f2e62f36baefce4 | [
"Apache-2.0"
] | permissive | abentkamp/mathlib | d9a75d291ec09f4637b0f30cc3880ffb07549ee5 | 5360e476391508e092b5a1e5210bd0ed22dc0755 | refs/heads/master | 1,682,382,954,948 | 1,622,106,077,000 | 1,622,106,077,000 | 149,285,665 | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 2,889 | 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 tactic.pi_instances
import algebra.group.pi
import algebra.ring.basic
/-!
# Pi instances for ring
This file defines instances for ring, semiring an... |
a8887b9484e79fb91f3fd4fab3583361adbd2e23 | 35677d2df3f081738fa6b08138e03ee36bc33cad | /src/data/fintype/basic.lean | 3caac8b00f07d84809f297b8c4a1b642267cb77f | [
"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 | 39,398 | lean | /-
Copyright (c) 2017 Mario Carneiro. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Author: Mario Carneiro
Finite types.
-/
import data.finset data.array.lemmas logic.unique
import tactic.wlog
universes u v
variables {α : Type*} {β : Type*} {γ : Type*}
/-- `fintype α` means... |
281f8dadda6673c5b31b1d9f431298bbc19af8e6 | 57c233acf9386e610d99ed20ef139c5f97504ba3 | /src/order/rel_classes.lean | 7d31544d225acead44c82386659024521442ddf7 | [
"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 | 21,989 | lean | /-
Copyright (c) 2020 Jeremy Avigad. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Jeremy Avigad, Mario Carneiro, Yury G. Kudryashov
-/
import order.basic
/-!
# Unbundled relation classes
In this file we prove some properties of `is_*` classes defined in `init.algeb... |
c563f417154e8529b069dec37b794c2730aca282 | acc85b4be2c618b11fc7cb3005521ae6858a8d07 | /data/finset/default.lean | 3b589b29bda6ed4c78316cecdb7b5f76cabc33ab | [
"Apache-2.0"
] | permissive | linpingchuan/mathlib | d49990b236574df2a45d9919ba43c923f693d341 | 5ad8020f67eb13896a41cc7691d072c9331b1f76 | refs/heads/master | 1,626,019,377,808 | 1,508,048,784,000 | 1,508,048,784,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 42 | lean | import data.finset.basic data.finset.fold
|
5187182652543afa0ec97ff106fc6f7cae6d7290 | 02005f45e00c7ecf2c8ca5db60251bd1e9c860b5 | /src/data/vector2.lean | 7ae79801244bc84e34d925a15281759075f5ee0a | [
"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 | 16,306 | lean | /-
Copyright (c) 2018 Mario Carneiro. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Mario Carneiro
-/
import data.vector
import data.list.nodup
import data.list.of_fn
import control.applicative
/-!
# Additional theorems about the `vector` type
This file introduces th... |
0ef98ad90cd0a989480899e4f1d2f74addbd6517 | 4727251e0cd73359b15b664c3170e5d754078599 | /src/combinatorics/colex.lean | 202902e53ffb1a497e40746d99533faee00a0b19 | [
"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 | 14,977 | 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 data.fintype.basic
import algebra.geom_sum
/-!
# Colex
We define the colex ordering for finite sets, and give a couple of important
lemmas and pro... |
5d9dac439e18e58c19903cf48feea354c7ac5c61 | 9b9a16fa2cb737daee6b2785474678b6fa91d6d4 | /src/category_theory/limits/limits.lean | 82e134687d9fe4787d580ef3f3acfbf70ba507d3 | [
"Apache-2.0"
] | permissive | johoelzl/mathlib | 253f46daa30b644d011e8e119025b01ad69735c4 | 592e3c7a2dfbd5826919b4605559d35d4d75938f | refs/heads/master | 1,625,657,216,488 | 1,551,374,946,000 | 1,551,374,946,000 | 98,915,829 | 0 | 0 | Apache-2.0 | 1,522,917,267,000 | 1,501,524,499,000 | Lean | UTF-8 | Lean | false | false | 26,355 | lean | -- Copyright (c) 2018 Scott Morrison. All rights reserved.
-- Released under Apache 2.0 license as described in the file LICENSE.
-- Authors: Reid Barton, Mario Carneiro, Scott Morrison
import category_theory.whiskering
import category_theory.yoneda
import category_theory.limits.cones
open category_theory category_th... |
9fdd3747027c3a3e88135b4c4340965d5dd554f5 | 367134ba5a65885e863bdc4507601606690974c1 | /src/ring_theory/valuation/basic.lean | 7b250c1cb8df10f0f42c25d0310407b94c7dd6a1 | [
"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 | 23,311 | lean | /-
Copyright (c) 2020 Johan Commelin. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Kevin Buzzard, Johan Commelin, Patrick Massot
-/
import algebra.linear_ordered_comm_group_with_zero
import algebra.group_power
import ring_theory.ideal.operations
import algebra.punit... |
b9208d1b10148f19f081c16019786d7a1961b632 | 64874bd1010548c7f5a6e3e8902efa63baaff785 | /tests/lean/run/tactic26.lean | 3530578b565664d6181d4d9249b9111fb4c08a17 | [
"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 | 731 | 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 : Type)... |
ad280cccc6c1fc2ab5c3d8681dd2502199f6d459 | d7189ea2ef694124821b033e533f18905b5e87ef | /galois/bitvec/simplify_eq.lean | f624c43136157a8490425523965f1826dfd4a994 | [
"Apache-2.0"
] | permissive | digama0/lean-protocol-support | eaa7e6f8b8e0d5bbfff1f7f52bfb79a3b11b0f59 | cabfa3abedbdd6fdca6e2da6fbbf91a13ed48dda | refs/heads/master | 1,625,421,450,627 | 1,506,035,462,000 | 1,506,035,462,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 7,136 | lean | /- This module defines lemmas to simplify equalities between literals. -/
import data.bitvec
import ..vector
namespace bitvec
open vector
local infix `++`:65 := vector.append
section adc_lemmas
@[simp]
theorem adc_match_def {n : ℕ} (r : bool × bitvec n) : adc._match_1 r = r^.fst :: r^.snd :=
begin
cases r,
sim... |
3581d60cb9214acb9d9fe656016283e054b7d3fc | 9dc8cecdf3c4634764a18254e94d43da07142918 | /src/ring_theory/jacobson_ideal.lean | 9c39a2caf299f204d78f06667924752c8ab823b0 | [
"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 | 14,823 | lean | /-
Copyright (c) 2020 Devon Tuma. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Kenny Lau, Devon Tuma
-/
import ring_theory.ideal.quotient
import ring_theory.polynomial.basic
/-!
# Jacobson radical
The Jacobson radical of a ring `R` is defined to be the intersection... |
7d4dbd2954c366025c0fc85a223c974d1c4436f9 | 4bcaca5dc83d49803f72b7b5920b75b6e7d9de2d | /src/Lean/Server/FileWorker/RequestHandling.lean | ae5237ad671e32b39c66f48ff0ea60186eef45ac | [
"Apache-2.0"
] | permissive | subfish-zhou/leanprover-zh_CN.github.io | 30b9fba9bd790720bd95764e61ae796697d2f603 | 8b2985d4a3d458ceda9361ac454c28168d920d3f | refs/heads/master | 1,689,709,967,820 | 1,632,503,056,000 | 1,632,503,056,000 | 409,962,097 | 1 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 18,025 | lean | /-
Copyright (c) 2021 Wojciech Nawrocki. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Wojciech Nawrocki, Marc Huisinga
-/
import Lean.DeclarationRange
import Lean.Data.Json
import Lean.Data.Lsp
import Lean.Server.FileWorker.Utils
import Lean.Server.Requests
import... |
c7521e7fa0fc373681618f3cbb4457c368f20026 | 6432ea7a083ff6ba21ea17af9ee47b9c371760f7 | /tests/lean/getElem.lean | 8dbb6d3f9b4f7e5758cf6fb4d1be041b158285c4 | [
"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 | 507 | lean | def f1 (a : Array Nat) (i : Nat) :=
a[i]
def f2 (a : Array Nat) (i : Fin a.size) :=
a[i] -- Ok
def f3 (a : Array Nat) (h : n ≤ a.size) (i : Fin n) :=
a[i] -- Ok
opaque a : Array Nat
opaque n : Nat
axiom n_lt_a_size : n < a.size
def f4 (i : Nat) (h : i < n) :=
have : i < a.size := Nat.lt_trans h n_lt_a_size
... |
77ee229112fb6d4670ceb42195bdfa5f97bb8ad7 | d642a6b1261b2cbe691e53561ac777b924751b63 | /src/order/lattice.lean | b05f1dab94622660f0c80ada709ab92636c39eb0 | [
"Apache-2.0"
] | permissive | cipher1024/mathlib | fee56b9954e969721715e45fea8bcb95f9dc03fe | d077887141000fefa5a264e30fa57520e9f03522 | refs/heads/master | 1,651,806,490,504 | 1,573,508,694,000 | 1,573,508,694,000 | 107,216,176 | 0 | 0 | Apache-2.0 | 1,647,363,136,000 | 1,508,213,014,000 | Lean | UTF-8 | Lean | false | false | 15,521 | 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
Defines the inf/sup (semi)-lattice with optionally top/bot type class hierarchy.
-/
import order.basic
set_option old_structure_cmd true
universes u v w
-- TODO: mo... |
d5f1afabd91f483fcb6d2c568e58699821fd1ca4 | 19cc34575500ee2e3d4586c15544632aa07a8e66 | /src/data/polynomial/monomial.lean | e55951473505259f3f07d65a4e5e48716445664e | [
"Apache-2.0"
] | permissive | LibertasSpZ/mathlib | b9fcd46625eb940611adb5e719a4b554138dade6 | 33f7870a49d7cc06d2f3036e22543e6ec5046e68 | refs/heads/master | 1,672,066,539,347 | 1,602,429,158,000 | 1,602,429,158,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 2,871 | 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 data.polynomial.basic
/-!
# Univariate monomials
Preparatory lemmas for degree_basic.
-/
noncomputable theory
o... |
2a15953172cd0d62a986498abb072f7e935c31a5 | 853df553b1d6ca524e3f0a79aedd32dde5d27ec3 | /src/category_theory/natural_isomorphism.lean | a67bc0122ca1bc08aebe6b49a44a31d4ebaa956a | [
"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 | 4,919 | lean | /-
Copyright (c) 2017 Scott Morrison. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Tim Baumann, Stephen Morgan, Scott Morrison, Floris van Doorn
-/
import category_theory.functor_category
import category_theory.isomorphism
open category_theory
-- declare the `v`'s ... |
bb24ce90e4863099975ea3968892c102ecfbc80a | 6432ea7a083ff6ba21ea17af9ee47b9c371760f7 | /tests/lean/run/111.lean | 35dae94fb9c3bcdaba71e3f2146b8fa1174d78e2 | [
"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 | 213 | lean | import Lean
open Lean
#check mkNullNode -- Lean.Syntax
#check mkNullNode #[] -- Lean.Syntax
#check @mkNullNode
#check
let f : Array Syntax → Syntax := @mkNullNode;
f #[]
#check let f := @mkNullNode; f #[]
|
906365d2663edea0eb80825a1cbb618c3ec2f93c | 3dd1b66af77106badae6edb1c4dea91a146ead30 | /tests/lean/run/goal.lean | 75204634bba04cd24996e7ca18a94cfa12b20331 | [
"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 | 116 | lean | import standard
using tactic
theorem T {a b c d : Prop} (H : a) (H : b) (H : c) (H : d) : a
:= by state; assumption |
4aa465b9f159d2708cb280d445c1ecd9abb2b059 | 7282d49021d38dacd06c4ce45a48d09627687fe0 | /tests/lean/add_assoc.lean | d0f715eaa4afcd4b4799fce4ead1124a27db1f4b | [
"Apache-2.0"
] | permissive | steveluc/lean | 5a0b4431acefaf77f15b25bbb49294c2449923ad | 92ba4e8b2d040a799eda7deb8d2a7cdd3e69c496 | refs/heads/master | 1,611,332,256,930 | 1,391,013,244,000 | 1,391,013,244,000 | 16,361,079 | 1 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 407 | lean | import tactic
using Nat
rewrite_set basic
add_rewrite add_zerol add_succl eq_id : basic
theorem add_assoc (a b c : Nat) : a + (b + c) = (a + b) + c
:= induction_on a
(have 0 + (b + c) = (0 + b) + c : by simp basic)
(λ (n : Nat) (iH : n + (b + c) = (n + b) + c),
have (n + 1) + (b + c) = ((n + 1) + b) +... |
ecefbf74f15441cdc8c92426cd532b49021a5033 | 4950bf76e5ae40ba9f8491647d0b6f228ddce173 | /src/algebra/group/to_additive.lean | ff87a26d7c1776663c3ebba0142033a9d7f26739 | [
"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 | 12,323 | lean | /-
Copyright (c) 2017 Mario Carneiro. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Mario Carneiro, Yury Kudryashov.
-/
import tactic.transform_decl
import tactic.algebra
/-!
# Transport multiplicative to additive
This file defines an attribute `to_additive` that ca... |
8f3e601f2c1e9e0eeb138213bbc52ce98ae04fea | 57c233acf9386e610d99ed20ef139c5f97504ba3 | /src/category_theory/triangulated/basic.lean | e4af0a0f3157860b2c52ceacc0e70352e9078d2a | [
"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,980 | lean | /-
Copyright (c) 2021 Luke Kershaw. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Luke Kershaw
-/
import category_theory.shift
/-!
# Triangles
This file contains the definition of triangles in an additive category with an additive shift.
It also defines morphisms be... |
1ad2e0fe5c2cca77072ea60dd57fefef0c79771d | f68c8823d8ddc719de8a4513815174aa7408ac4a | /lean_resolutions/PUZ139_1.lean | 3faf9014cbcaba4ec7db8b54c8989e125e70acb1 | [] | no_license | FredsoNerd/tptp-lean-puzzles | e7ea66a0de9aa3cb7cc7480299f01adf885440a6 | 43d4d77524e797a4ac7a62b2cfaf8df08b409815 | refs/heads/master | 1,606,359,611,765 | 1,576,824,274,000 | 1,576,824,274,000 | 228,945,807 | 4 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 1,487 | lean | --------------------------------------------------------------------------------
-- File : PUZ139_1 : TPTP v7.3.0. Released v6.1.0.
-- Domain : Puzzles
-- Problem : Caramel vanilla coffee helps people stay awake
-- Version : Especial.
-- English :
-- Refs : [Arh14] Arhami (2010), Email to Geoff Sutcliffe
... |
037e58aba62dbd6946efeed7d134fc1017e26568 | 82e44445c70db0f03e30d7be725775f122d72f3e | /src/algebra/ordered_field.lean | 5ce8c458c9a87e375accdf774496d7307b1cea51 | [
"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 | 27,635 | 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, Mario Carneiro, Floris van Doorn
-/
import algebra.ordered_ring
import algebra.field
import tactic.monotonicity.basic
import algebra.group_power.order
im... |
45e5734ceee768c1f59ca0f8f65139873806020f | b32d3853770e6eaf06817a1b8c52064baaed0ef1 | /src/super/subsume.lean | 73a6f052ff15375a9759e62bffa9b25652d1223a | [] | no_license | gebner/super2 | 4d58b7477b6f7d945d5d866502982466db33ab0b | 9bc5256c31750021ab97d6b59b7387773e54b384 | refs/heads/master | 1,635,021,682,021 | 1,634,886,326,000 | 1,634,886,326,000 | 225,600,688 | 4 | 2 | null | 1,598,209,306,000 | 1,575,371,550,000 | Lean | UTF-8 | Lean | false | false | 1,232 | lean | import super.clause
namespace super
open tactic
private meta def unify_lit (a b : literal) : tactic unit := do
guard $ a.is_pos = b.is_pos,
unify a.formula b.formula transparency.none tt
private meta def try_subsume_core : list literal → list literal → tactic unit
| [] _ := skip
| (head :: small) large := first $
... |
e4c0530f4d9f1a0441c0ab76675011f222494faa | fa02ed5a3c9c0adee3c26887a16855e7841c668b | /src/measure_theory/ae_eq_fun.lean | 8eca8ba7a38287788e3a02fe087a939758553a52 | [
"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 | 20,377 | lean | /-
Copyright (c) 2019 Johannes Hölzl, Zhouhang Zhou. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Johannes Hölzl, Zhouhang Zhou
-/
import measure_theory.integration
import order.filter.germ
import topology.continuous_function.algebra
/-!
# Almost everywhere equal f... |
aa4fed567cd16efa9f7813b6a956066852e8fb7c | 94e33a31faa76775069b071adea97e86e218a8ee | /src/analysis/normed_space/linear_isometry.lean | 9401382d533994000f1e419917f4ed082b39972c | [
"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 | 26,655 | lean | /-
Copyright (c) 2021 Yury Kudryashov. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Yury Kudryashov, Frédéric Dupuis, Heather Macbeth
-/
import analysis.normed.group.basic
import topology.algebra.module.basic
import linear_algebra.basis
/-!
# (Semi-)linear isometrie... |
fd1b314c88d4b560ab0ad8840868cade02b1ce30 | 6b10c15e653d49d146378acda9f3692e9b5b1950 | /examples/logic/unnamed_227.lean | 47541374813ce53b9d7d3e2e3e0fa5e62b5c2580 | [] | no_license | gebner/mathematics_in_lean | 3cf7f18767208ea6c3307ec3a67c7ac266d8514d | 6d1462bba46d66a9b948fc1aef2714fd265cde0b | refs/heads/master | 1,655,301,945,565 | 1,588,697,505,000 | 1,588,697,505,000 | 261,523,603 | 0 | 0 | null | 1,588,695,611,000 | 1,588,695,610,000 | null | UTF-8 | Lean | false | false | 200 | lean | variables A B C : Prop
-- BEGIN
example (h₁ : A → B) (h₂ : B → C) : A → C :=
begin
intro h₃,
have h₄ : B,
{ apply h₁, apply h₃ },
show C,
apply h₂, apply h₄
end
-- END |
fbf7bad307cfef77aba36aded680ff3205d73047 | 624f6f2ae8b3b1adc5f8f67a365c51d5126be45a | /src/Init/Lean/Compiler/IR/Boxing.lean | 0ff72c058ae6c2f521d11964a73f20c5db0d76a0 | [
"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 | 12,974 | lean | /-
Copyright (c) 2019 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Leonardo de Moura
-/
prelude
import Init.Control.EState
import Init.Control.Reader
import Init.Data.AssocList
import Init.Data.Nat
import Init.Lean.Runtime
import Init.Lean.Comp... |
d52aeaefb304a7d8fb5e9506feaf331a898b4691 | fbf512ee44de430e3d3c5869751ad95325c938d7 | /snf.lean | 13dc6d16f078285b6f672c5a95bc8d121680369e | [] | no_license | skbaek/clausify | 4858c9005fb86a5e410bfcaa77524f82d955f655 | d09b071bdcce7577c3fffacd0893b776285b1590 | refs/heads/master | 1,588,360,590,818 | 1,553,553,880,000 | 1,553,553,880,000 | 177,644,542 | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 829 | lean | import .form
variables {α : Type}
namespace form
def skolem_term (k ms) : term :=
list.foldl (λ t1 m, t1 ^* # m) (& k) ms
def snf_core : nat → form → (nat × form)
| k ⊤* := (k, ⊤*)
| k ⊥* := (k, ⊥*)
| k (m ** ts) := (k, m ** ts)
| k (¬* p) := (k, ¬* p)
| k (p ∧* q) :=
let (m, p') := snf_co... |
d7cc03507be3b0397fbe92c136804627aac360a1 | 9dc8cecdf3c4634764a18254e94d43da07142918 | /src/topology/constructions.lean | 757cb51a8ff069a2a70ec7abfdaa7f83441e22f7 | [
"Apache-2.0"
] | permissive | jcommelin/mathlib | d8456447c36c176e14d96d9e76f39841f69d2d9b | ee8279351a2e434c2852345c51b728d22af5a156 | refs/heads/master | 1,664,782,136,488 | 1,663,638,983,000 | 1,663,638,983,000 | 132,563,656 | 0 | 0 | Apache-2.0 | 1,663,599,929,000 | 1,525,760,539,000 | Lean | UTF-8 | Lean | false | false | 57,863 | lean | /-
Copyright (c) 2017 Johannes Hölzl. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Johannes Hölzl, Mario Carneiro, Patrick Massot
-/
import topology.maps
import topology.locally_finite
import order.filter.pi
import data.fin.tuple
/-!
# Constructions of new topologic... |
e09546183d5fd3af377bbc6f31659bca16eb3194 | 4fa161becb8ce7378a709f5992a594764699e268 | /src/analysis/normed_space/multilinear.lean | 61bcb5b13fbce17a5459b841292ea4a0b18c22a9 | [
"Apache-2.0"
] | permissive | laughinggas/mathlib | e4aa4565ae34e46e834434284cb26bd9d67bc373 | 86dcd5cda7a5017c8b3c8876c89a510a19d49aad | refs/heads/master | 1,669,496,232,688 | 1,592,831,995,000 | 1,592,831,995,000 | 274,155,979 | 0 | 0 | Apache-2.0 | 1,592,835,190,000 | 1,592,835,189,000 | null | UTF-8 | Lean | false | false | 54,549 | 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 analysis.normed_space.operator_norm
import topology.algebra.multilinear
/-!
# Operator norm on the space of continuous multilinear maps
When `f` is a c... |
74642199e2db736db43f5a44d322076f11d5f0c1 | d406927ab5617694ec9ea7001f101b7c9e3d9702 | /src/combinatorics/catalan.lean | 177033317785fa24ff405ff597b60f217f684594 | [
"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 | 5,277 | lean | /-
Copyright (c) 2022 Julian Kuelshammer. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Julian Kuelshammer
-/
import data.nat.choose.central
import algebra.big_operators.fin
import algebra.char_zero.lemmas
import tactic.field_simp
import tactic.linear_combination
/-!... |
d11f7195a41355444e2253e0b7624aa27bc128a3 | cf39355caa609c0f33405126beee2739aa3cb77e | /tests/lean/ftree.lean | ea6ab3158c3c14d4c1559614a19cd221843ce248 | [
"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 | 719 | lean | inductive List (T : Sort*) : Sort* | nil {} : List | cons : T → List → List
namespace explicit
inductive {u₁ u₂} ftree (A : Type u₁) (B : Type u₂) : Type (max 1 u₁ u₂)
| leafa : A → ftree
| leafb : B → ftree
| node : (A → ftree) → (B → ftree) → ftree
end explicit
namespace implicit
inductive ftree (A : Type) (B... |
b49258ae6f070eb289a8969d2c16315cdae6ef8f | a9d0fb7b0e4f802bd3857b803e6c5c23d87fef91 | /tests/lean/run/IO1.lean | d8a0b9220dfc2ccf99664dbe8426016ebb852149 | [
"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 | 991 | lean | import system.IO
open list
-- set_option pp.all true
definition main : IO unit :=
do l₁ ← get_line,
l₂ ← get_line,
put_str (l₂ ++ l₁)
-- vm_eval main
-- set_option trace.compiler.code_gen true
vm_eval put_str "hello\n"
print "************************"
definition aux (n : nat) : IO unit :=
do put_str... |
49fab710060ecd42871b0435d328864a1a5b7ebf | 8cae430f0a71442d02dbb1cbb14073b31048e4b0 | /src/order/filter/extr.lean | b13ff1f8939236fef383d23b20c86634e2015bf6 | [
"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 | 22,464 | 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 order.filter.basic
/-!
# Minimum and maximum w.r.t. a filter and on a aet
> THIS FILE IS SYNCHRONIZED WITH MATHLIB4.
> Any changes to this file require a c... |
8c5806a318115232bca373c12a27f9ff85215d89 | 6094e25ea0b7699e642463b48e51b2ead6ddc23f | /library/data/set/map.lean | e39bccdcd902841f41b792ce37b1ecdb21e5fcb1 | [
"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 | 5,916 | lean | /-
Copyright (c) 2014 Jeremy Avigad. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Author: Jeremy Avigad, Andrew Zipperer
Functions between subsets of finite types, bundled with the domain and range.
-/
import data.set.function
open eq.ops
namespace set
record map {X Y : Ty... |
bb1110e891581a81072954b1131c76d8e4027d04 | 842b7df4a999c5c50bbd215b8617dd705e43c2e1 | /nat_num_game/src/Addition_World/add_wrld1.lean | abca70ce196dab8686d396a7e639ca8c9fcd4347 | [] | no_license | Samyak-Surti/LeanCode | 1c245631f74b00057d20483c8ac75916e8643b14 | 944eac3e5f43e2614ed246083b97fbdf24181d83 | refs/heads/master | 1,669,023,730,828 | 1,595,534,784,000 | 1,595,534,784,000 | 282,037,186 | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 135 | lean | variable n : ℕ
lemma zero_add1 : 0 + n = n :=
begin
induction n with d hd,
rw add_zero,
rw nat.add_succ,
rw hd,
end |
3e17c9feb2a54a2e3c0cfffefc49df1d651a2a2f | 74addaa0e41490cbaf2abd313a764c96df57b05d | /Mathlib/geometry/manifold/diffeomorph.lean | 4f9495090654949d24033c02aa374933e4aec3c1 | [] | 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,387 | lean | /-
Copyright © 2020 Nicolò Cavalleri. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Author: Nicolò Cavalleri.
-/
import Mathlib.PrePort
import Mathlib.Lean3Lib.init.default
import Mathlib.geometry.manifold.times_cont_mdiff_map
import Mathlib.PostPort
universes u_1 u_2 u_3 u_5... |
065c4a5a1932dcdd37893b0b5ea0106fb9db37ad | 4727251e0cd73359b15b664c3170e5d754078599 | /src/number_theory/class_number/function_field.lean | 1ee867b982a754b56347bcf9f3b8658cdaae9229 | [
"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,752 | lean | /-
Copyright (c) 2021 Anne Baanen. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Anne Baanen
-/
import number_theory.class_number.admissible_card_pow_degree
import number_theory.class_number.finite
import number_theory.function_field
/-!
# Class numbers of function f... |
eccd31216679777060231036e03061ee771519dd | d29d82a0af640c937e499f6be79fc552eae0aa13 | /src/algebra/ordered_group.lean | 5f8739c4eb5824190310b78ca6d7fb30f395c959 | [
"Apache-2.0"
] | permissive | AbdulMajeedkhurasani/mathlib | 835f8a5c5cf3075b250b3737172043ab4fa1edf6 | 79bc7323b164aebd000524ebafd198eb0e17f956 | refs/heads/master | 1,688,003,895,660 | 1,627,788,521,000 | 1,627,788,521,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 44,917 | lean | /-
Copyright (c) 2016 Jeremy Avigad. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Jeremy Avigad, Leonardo de Moura, Mario Carneiro, Johannes Hölzl
-/
import algebra.ordered_monoid
import order.rel_iso
/-!
# Ordered groups
This file develops the basics of ordered gr... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.