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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
9a9dd0441df676569df85829893fe1c958632507 | 74addaa0e41490cbaf2abd313a764c96df57b05d | /Mathlib/category_theory/category/Cat.lean | 5494837c721a13db23af91263afef6307984be30 | [] | no_license | AurelienSaue/Mathlib4_auto | f538cfd0980f65a6361eadea39e6fc639e9dae14 | 590df64109b08190abe22358fabc3eae000943f2 | refs/heads/master | 1,683,906,849,776 | 1,622,564,669,000 | 1,622,564,669,000 | 371,723,747 | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 2,426 | lean | /-
Copyright (c) 2019 Yury Kudryashov. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Yury Kudryashov
-/
import Mathlib.PrePort
import Mathlib.Lean3Lib.init.default
import Mathlib.category_theory.concrete_category.default
import Mathlib.category_theory.discrete_categor... |
2035f1936fad780da98c71fbd243c8bf20b9e7f4 | 74addaa0e41490cbaf2abd313a764c96df57b05d | /Mathlib/data/polynomial/denoms_clearable_auto.lean | d8460df044a24e39f10f3b50bad3be01f1a870ad | [] | no_license | AurelienSaue/Mathlib4_auto | f538cfd0980f65a6361eadea39e6fc639e9dae14 | 590df64109b08190abe22358fabc3eae000943f2 | refs/heads/master | 1,683,906,849,776 | 1,622,564,669,000 | 1,622,564,669,000 | 371,723,747 | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 2,944 | lean | /-
Copyright (c) 2020 Damiano Testa. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Damiano Testa
-/
import Mathlib.PrePort
import Mathlib.Lean3Lib.init.default
import Mathlib.data.polynomial.erase_lead
import Mathlib.PostPort
universes u_1 u_2
namespace Mathlib
/-... |
3e6859066920df241c6f3ee2b8ab889b4ec43906 | dd4e652c749fea9ac77e404005cb3470e5f75469 | /src/one_by_one_matrix.lean | 34ae6d8f894b6a19da22efb3c366e54c6effc50c | [] | no_license | skbaek/cvx | e32822ad5943541539966a37dee162b0a5495f55 | c50c790c9116f9fac8dfe742903a62bdd7292c15 | refs/heads/master | 1,623,803,010,339 | 1,618,058,958,000 | 1,618,058,958,000 | 176,293,135 | 3 | 2 | null | null | null | null | UTF-8 | Lean | false | false | 1,253 | lean | import .mat
-- TODO: move
lemma fin.eq_zero_fin1 (i : fin 1) : i = 0 :=
begin
rw fin.eq_iff_veq,
apply nat.eq_zero_of_le_zero (nat.le_of_lt_succ i.2)
end
namespace one_by_one_matrix
/-
def coe {α : Type*} : (matrix (fin 1) (fin 1) α) → α := λ A, A 0 0
instance coe_instance (α : Type*) : has_coe (matrix (fin 1) (... |
cc4551fabf09eb04f47e90b5ffc5ecfb5f0cac44 | f1b175e38ffc5cc1c7c5551a72d0dbaf70786f83 | /algebra/group.lean | 790c98b66d8ef8337b2a74b2093b03dda7e6dd27 | [
"Apache-2.0"
] | permissive | mjendrusch/mathlib | df3ae884dd5ce38c7edf452bcbfd3baf4e3a6214 | 5c209edb7eb616a26f64efe3500f2b1ba95b8d55 | refs/heads/master | 1,585,663,284,800 | 1,539,062,055,000 | 1,539,062,055,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 26,782 | lean | /-
Copyright (c) 2014 Jeremy Avigad. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Jeremy Avigad, Leonardo de Moura
Various multiplicative and additive structures.
-/
import tactic.interactive data.option
section pending_1857
/- Transport multiplicative to additive... |
6a520a02621fa46eab7b8c22839286c16cff09e7 | 618003631150032a5676f229d13a079ac875ff77 | /src/measure_theory/lebesgue_measure.lean | fb0127b90ff55a1721ed912d509ff4cc2c18ab63 | [
"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 | 12,254 | 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
Lebesgue measure on the real line
-/
import measure_theory.measure_space
import measure_theory.borel_space
noncomputable theory
open classical set filter
open nnreal (o... |
300078b1151c24158292be16ddf8157343b88fe4 | 74addaa0e41490cbaf2abd313a764c96df57b05d | /Mathlib/group_theory/archimedean_auto.lean | 0c64810b96d8c137d7bcf43ee39ba774b7d36e88 | [] | no_license | AurelienSaue/Mathlib4_auto | f538cfd0980f65a6361eadea39e6fc639e9dae14 | 590df64109b08190abe22358fabc3eae000943f2 | refs/heads/master | 1,683,906,849,776 | 1,622,564,669,000 | 1,622,564,669,000 | 371,723,747 | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 2,098 | lean | /-
Copyright (c) 2020 Heather Macbeth, Patrick Massot. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Heather Macbeth, Patrick Massot
-/
import Mathlib.PrePort
import Mathlib.Lean3Lib.init.default
import Mathlib.group_theory.subgroup
import Mathlib.algebra.archimedean
... |
38941336f499c32530147c715242198446a82858 | 63abd62053d479eae5abf4951554e1064a4c45b4 | /src/tactic/ring_exp.lean | 6d076b526409034a9ede963fe2b4409411e574cb | [
"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 | 56,181 | lean | /-
Copyright (c) 2019 Tim Baanen. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Author: Tim Baanen.
Solve equations in commutative (semi)rings with exponents.
-/
import tactic.norm_num
import control.traversable.basic
/-!
# `ring_exp` tactic
A tactic for solving equations i... |
03ef9474925d9336263060eecd077530c7b176e1 | 63abd62053d479eae5abf4951554e1064a4c45b4 | /src/algebra/lie/universal_enveloping.lean | 5e393221611aa6b8c7bf1bdeebae4c59901f7628 | [
"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 | 4,709 | lean | /-
Copyright (c) 2020 Oliver Nash. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Oliver Nash
-/
import algebra.lie.basic
import algebra.ring_quot
import linear_algebra.tensor_algebra
/-!
# Universal enveloping algebra
Given a commutative ring `R` and a Lie algebra `... |
7374c68f8fe9738cdc809201bc24a433b733825a | 618003631150032a5676f229d13a079ac875ff77 | /src/data/list/basic.lean | 727e564db2e978876e1ac2ef6f09ca323c8a20e5 | [
"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 | 154,468 | lean | /-
Copyright (c) 2014 Parikshit Khanna. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Parikshit Khanna, Jeremy Avigad, Leonardo de Moura, Floris van Doorn, Mario Carneiro
-/
import algebra.group
import deprecated.group
import data.nat.basic
/-!
# Basic properties of ... |
836f04a2832c15ac94557382f5b2e2b374333735 | 63abd62053d479eae5abf4951554e1064a4c45b4 | /src/category_theory/limits/colimit_limit.lean | b1d32734fa1c3797a9d83a0c8de4f0693df5f306 | [
"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 | 3,377 | lean | /-
Copyright (c) 2020 Scott Morrison. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Scott Morrison
-/
import category_theory.limits.types
import category_theory.currying
/-!
# The morphism comparing a colimit of limits with the corresponding limit of colimits.
For `... |
9f6a731e7813147f42ea007fa27a3df8dc89cf9e | 8cae430f0a71442d02dbb1cbb14073b31048e4b0 | /src/analysis/convex/cone/basic.lean | 3feb656d347f0211c3cb34e03ee3320aef3a4aeb | [
"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 | 29,613 | lean | /-
Copyright (c) 2020 Yury Kudryashov. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Yury Kudryashov, Frédéric Dupuis
-/
import analysis.convex.hull
import data.real.basic
import linear_algebra.linear_pmap
/-!
# Convex cones
> THIS FILE IS SYNCHRONIZED WITH MATHLIB4... |
77d36d98c5692461611eabb1fe60e2f375a740fe | 8e6cad62ec62c6c348e5faaa3c3f2079012bdd69 | /src/data/matrix/basic.lean | dbaa30f51bcb1b27044036fee9ae4ebf143c61e2 | [
"Apache-2.0"
] | permissive | benjamindavidson/mathlib | 8cc81c865aa8e7cf4462245f58d35ae9a56b150d | fad44b9f670670d87c8e25ff9cdf63af87ad731e | refs/heads/master | 1,679,545,578,362 | 1,615,343,014,000 | 1,615,343,014,000 | 312,926,983 | 0 | 0 | Apache-2.0 | 1,615,360,301,000 | 1,605,399,418,000 | Lean | UTF-8 | Lean | false | false | 42,559 | lean | /-
Copyright (c) 2018 Ellen Arlt. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Ellen Arlt, Blair Shi, Sean Leather, Mario Carneiro, Johan Commelin
-/
import algebra.big_operators.pi
import algebra.module.pi
import algebra.module.linear_map
import algebra.big_operator... |
5804c3b4a66b1ec06d45dc58ad5f859edd4e25aa | f57749ca63d6416f807b770f67559503fdb21001 | /library/init/relation.lean | 672e4d0f088cac6a60afcdbba721f0cd845e6f2b | [
"Apache-2.0"
] | permissive | aliassaf/lean | bd54e85bed07b1ff6f01396551867b2677cbc6ac | f9b069b6a50756588b309b3d716c447004203152 | refs/heads/master | 1,610,982,152,948 | 1,438,916,029,000 | 1,438,916,029,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 1,659 | lean | /-
Copyright (c) 2014 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Module init.relation
Authors: Leonardo de Moura
-/
prelude
import init.logic
-- TODO(Leo): remove duplication between this file and algebra/relation.lean
-- We need some of the followi... |
17cfa2d4541110a71efad8f6394ca71b439f3559 | 8cae430f0a71442d02dbb1cbb14073b31048e4b0 | /src/ring_theory/localization/num_denom.lean | 1b1ff85f10758528578432c160c2c74d415ab07a | [
"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,080 | 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 ring_theory.localization.fraction_ring
import ring_theory.localization.integer
import ring_theory.unique_... |
97d91fe5776437a2ca15e08e4e324bc9a1f0f5b0 | c31182a012eec69da0a1f6c05f42b0f0717d212d | /src/Mbar/basic.lean | e54bc8bb2612b3e0a425be9917036ef809b1854d | [] | 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 | 17,736 | lean | import data.real.basic
import algebra.big_operators.basic
import topology.algebra.infinite_sum
import data.finset.basic
import data.equiv.basic
import analysis.normed_space.basic
import analysis.specific_limits
import data.equiv.basic
import Mbar.bounded
import pseudo_normed_group.basic
import for_mathlib.tsum
/-!
... |
53c5f53adcce7701e041c3b64c4a5ad34b3cd333 | 9be442d9ec2fcf442516ed6e9e1660aa9071b7bd | /tests/lean/unexpander.lean | 02f385f95244066748952b79ad8ef691753dd325 | [
"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 | 326 | lean | open Lean PrettyPrinter
namespace ns
inductive Foo | mk: Foo
@[appUnexpander Foo.mk]
def unexpadFoo : Lean.PrettyPrinter.Unexpander | `($x) => `(unexpand)
def foo := Foo.mk
#print foo
@[appUnexpander ns.Foo.mk]
def unexpadFoo' : Lean.PrettyPrinter.Unexpander | `($x) => `(unexpand)
def bar := ns.Foo.mk
#print bar
e... |
64a21a8db2897c2db426135069b45baadf36b363 | 8cae430f0a71442d02dbb1cbb14073b31048e4b0 | /src/data/rat/meta_defs.lean | fbd4c5ce8cb09c1ff06455a06723bfa503a5e148 | [
"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 | 5,586 | lean | /-
Copyright (c) 2019 Robert Y. Lewis . All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Robert Y. Lewis
-/
import data.rat.defs
import tactic.core
/-!
# Meta operations on ℚ
This file defines functions for dealing with rational numbers as expressions.
They are not de... |
33646bda4173292bde90b29ae87207776de74a3c | 4727251e0cd73359b15b664c3170e5d754078599 | /src/algebra/regular/smul.lean | b45087acf3d3afca7a7798c7f80be605f8a089ed | [
"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 | 7,840 | lean | /-
Copyright (c) 2021 Damiano Testa. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Damiano Testa
-/
import algebra.smul_with_zero
import algebra.regular.basic
/-!
# Action of regular elements on a module
We introduce `M`-regular elements, in the context of an `R`-mo... |
d5a396374c39011916c921ce9041a696e1e81407 | 302c785c90d40ad3d6be43d33bc6a558354cc2cf | /src/algebra/group/units.lean | a0e1279b185574445361421f590fe6986f9a96ae | [
"Apache-2.0"
] | permissive | ilitzroth/mathlib | ea647e67f1fdfd19a0f7bdc5504e8acec6180011 | 5254ef14e3465f6504306132fe3ba9cec9ffff16 | refs/heads/master | 1,680,086,661,182 | 1,617,715,647,000 | 1,617,715,647,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 13,027 | lean | /-
Copyright (c) 2017 Kenny Lau. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Kenny Lau, Mario Carneiro, Johannes Hölzl, Chris Hughes, Jens Wagemaker
-/
import algebra.group.basic
import logic.nontrivial
/-!
# Units (i.e., invertible elements) of a multiplicative mo... |
448e1a851987846684ef128fa76efe07fd350fef | 9dd3f3912f7321eb58ee9aa8f21778ad6221f87c | /tests/lean/1293.lean | 19c364817c3e9ce22ec92524c8a1fdf91d61d154 | [
"Apache-2.0"
] | permissive | bre7k30/lean | de893411bcfa7b3c5572e61b9e1c52951b310aa4 | 5a924699d076dab1bd5af23a8f910b433e598d7a | refs/heads/master | 1,610,900,145,817 | 1,488,006,845,000 | 1,488,006,845,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 378 | lean | open expr tactic
example : true := by whnf (var 0) >> return ()
example : true := by whnf (app (var 0) (var 0)) >> return ()
example : true := by zeta (var 0) >> return ()
example : true := by unify (var 0) (var 0) >> return ()
example : true := by is_def_eq (var 0) (var 0) >> return ()
example foo trivial := by ... |
773bbc528eb9f1f74583477627b21059fc66ef68 | cf39355caa609c0f33405126beee2739aa3cb77e | /tests/lean/run/1623.lean | c5590950aee70c901f5f8a2f11695062936f541e | [
"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 | 158 | lean | section
parameters {A : Type} (R : list A → Prop)
structure foo (x : list A) : Prop := (bar : R x)
structure bar (x : Type)
structure baz extends bar A
end
|
65218af1342c882f2467baf9134f4c72fcfff0a0 | 74addaa0e41490cbaf2abd313a764c96df57b05d | /Mathlib/Lean3Lib/init/meta/constructor_tactic.lean | 148ff300f41eedc256798a3b9de958249c2a8408 | [] | 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 | 366 | 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
-/
import Mathlib.PrePort
import Mathlib.Lean3Lib.init.meta.tactic
import Mathlib.Lean3Lib.init.function
namespace Mathlib
namespace tactic
/- Return tar... |
c931d380bd528af78d563a12743ccb9855770192 | 64874bd1010548c7f5a6e3e8902efa63baaff785 | /tests/lean/run/vector2.lean | 287e9c0cc37131e61e7fdd082cc32c3605987e30 | [
"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 | 379 | lean | import logic data.nat.basic
open nat
inductive vector (A : Type) : nat → Type :=
vnil : vector A zero,
vcons : Π {n : nat}, A → vector A n → vector A (succ n)
namespace vector
theorem vcons.inj₁ {A : Type} {n : nat} (a₁ a₂ : A) (v₁ v₂ : vector A n) : vcons a₁ v₁ = vcons a₂ v₂ → a₁ = a₂ :=
assume h, no_confusion ... |
3f0989bfccca5e0b1fdc7dc5810394cfd4349cff | 5c7fe6c4a9d4079b5457ffa5f061797d42a1cd65 | /src/exercises/src_15_negating_quantifiers.lean | 10c44cac1a856bebea3e8c605fc2b30603642b5f | [] | no_license | gihanmarasingha/mth1001_tutorial | 8e0817feeb96e7c1bb3bac49b63e3c9a3a329061 | bb277eebd5013766e1418365b91416b406275130 | refs/heads/master | 1,675,008,746,310 | 1,607,993,443,000 | 1,607,993,443,000 | 321,511,270 | 3 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 1,662 | lean | import tactic.linarith
namespace mth1001
section negating_quantifiers
/-
We *can* deal with negated quantified statements using `intro`, as we did before for other
negated statements.
-/
-- Exercise 081:
-- Finish the proof below using `specialize` and `linarith`.
-- *Note*, `linarith` can prove `false` if there i... |
cf89dc0938db427aed56789e1ea94a1e64733af8 | d642a6b1261b2cbe691e53561ac777b924751b63 | /src/tactic/ext.lean | 1d6e1a62f586d7206f57bd7e929c10163a0b9a40 | [
"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 | 9,282 | lean | /-
Copyright (c) 2018 Simon Hudon. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Simon Hudon
-/
import tactic.rcases data.list.defs data.prod data.sum
universes u₁ u₂
open interactive interactive.types
open lean.parser nat tactic
/--
`derive_struct_ext_lemma n` gene... |
93930b9195d055241185e1d1b92a9c9faf4adbd8 | 4d2583807a5ac6caaffd3d7a5f646d61ca85d532 | /src/linear_algebra/matrix/transvection.lean | 380e89a252cd1c253d1e95acc737f1678431b8ac | [
"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 | 33,163 | 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 linear_algebra.matrix.determinant
import linear_algebra.matrix.trace
import linear_algebra.matrix.reindex
import tactic.field_simp
import data.matrix.bas... |
42a87710702adec38262b67d327d6259a7c6bf7b | dd0f5513e11c52db157d2fcc8456d9401a6cd9da | /07_Induction_and_Recursion.org.15.lean | a0b1362815440aae63b19b77cb6cd7e383e1c8cd | [] | no_license | cjmazey/lean-tutorial | ba559a49f82aa6c5848b9bf17b7389bf7f4ba645 | 381f61c9fcac56d01d959ae0fa6e376f2c4e3b34 | refs/heads/master | 1,610,286,098,832 | 1,447,124,923,000 | 1,447,124,923,000 | 43,082,433 | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 156 | lean | /- page 105 -/
import standard
open nat
-- BEGIN
definition f : nat → nat → nat
| f 0 y := 1
| f x 0 := 2
| f (x+1) (y+1) := 3
-- END
|
72319a2f943bc27c1ef769fbc8babb2a9e7de952 | d406927ab5617694ec9ea7001f101b7c9e3d9702 | /src/algebra/group/with_one/basic.lean | 08b23c3badf5a48aa620090c426d5f315c3b77ad | [
"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,167 | lean | /-
Copyright (c) 2018 Mario Carneiro. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Mario Carneiro, Johan Commelin
-/
import algebra.group.with_one.defs
import algebra.hom.equiv.basic
/-!
# More operations on `with_one` and `with_zero`
This file defines various bund... |
f89759fd33ace5edaa02dd161cccf84b449b18ba | 4d2583807a5ac6caaffd3d7a5f646d61ca85d532 | /src/topology/algebra/weak_dual_topology.lean | 6c7bc8b971b69ab40df619e3493f18ec2b656faa | [
"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 | 6,777 | lean | /-
Copyright (c) 2021 Kalle Kytölä. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Kalle Kytölä
-/
import topology.algebra.module
/-!
# Weak dual topology
This file defines the weak-* topology on duals of suitable topological modules `E` over suitable
topological sem... |
7b47c98e8c8b3cb2df50ba47417f1a0388df27b1 | d7189ea2ef694124821b033e533f18905b5e87ef | /galois/arith/ext.lean | 824e6e5a6249bff90b57ac3c9e5d9e04c5f9f065 | [
"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 | 3,530 | lean | import galois.tactic
inductive ext (A : Type) : Type
| inj {} : A → ext
| inf {} : ext
| neg_inf {} : ext
namespace ext
section
parameters (A : Type) [decidable_linear_order A]
def le : ext A → ext A → Prop
| neg_inf _ := true
| _ inf := true
| (inj _) neg_inf := false
| (inj x) (inj y) := x ≤ y
... |
80863a95567c705cb2ff03aa43494a744e905fbf | ebf7140a9ea507409ff4c994124fa36e79b4ae35 | /src/exercises_sources/thursday/groups_rings_fields.lean | 3ae3d3edba3cf809b085d3ce94297aebe2ff172b | [] | no_license | fundou/lftcm2020 | 3e88d58a92755ea5dd49f19c36239c35286ecf5e | 99d11bf3bcd71ffeaef0250caa08ecc46e69b55b | refs/heads/master | 1,685,610,799,304 | 1,624,070,416,000 | 1,624,070,416,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 9,398 | lean | import linear_algebra.finite_dimensional
import ring_theory.algebraic
import data.zmod.basic
import data.real.basic
import tactic
/-!
```
____
/ ___|_ __ ___ _ _ _ __ ___
| | _| '__/ _ \| | | | '_ \/ __|
| |_| | | | (_) | |_| | |_) \__ \_
\____|_| \___/ \__,_| .__/|___( )
|_| |/
... |
7460123428ffabf43322b84071a9cad6f5d1dad4 | 74addaa0e41490cbaf2abd313a764c96df57b05d | /Mathlib/ring_theory/integral_domain_auto.lean | c0c5922439b2e49ae5adc0ea0db38b2f4000e9c0 | [] | no_license | AurelienSaue/Mathlib4_auto | f538cfd0980f65a6361eadea39e6fc639e9dae14 | 590df64109b08190abe22358fabc3eae000943f2 | refs/heads/master | 1,683,906,849,776 | 1,622,564,669,000 | 1,622,564,669,000 | 371,723,747 | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 3,546 | lean | /-
Copyright (c) 2020 Johan Commelin. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Johan Commelin, Chris Hughes
-/
import Mathlib.PrePort
import Mathlib.Lean3Lib.init.default
import Mathlib.data.fintype.card
import Mathlib.data.polynomial.ring_division
import Mathlib... |
dbb254c85fc74375bed1f023004af7cb98fd5203 | 556aeb81a103e9e0ac4e1fe0ce1bc6e6161c3c5e | /src/starkware/cairo/common/cairo_secp/verification/verification/signature_recover_public_key_fast_ec_add_soundness.lean | ea5a6c209f45f8a296fd880563d9f108778868e7 | [] | permissive | starkware-libs/formal-proofs | d6b731604461bf99e6ba820e68acca62a21709e8 | f5fa4ba6a471357fd171175183203d0b437f6527 | refs/heads/master | 1,691,085,444,753 | 1,690,507,386,000 | 1,690,507,386,000 | 410,476,629 | 32 | 9 | Apache-2.0 | 1,690,506,773,000 | 1,632,639,790,000 | Lean | UTF-8 | Lean | false | false | 44,345 | lean | /-
File: signature_recover_public_key_fast_ec_add_soundness.lean
Autogenerated file.
-/
import starkware.cairo.lean.semantics.soundness.hoare
import .signature_recover_public_key_code
import ..signature_recover_public_key_spec
import .signature_recover_public_key_unreduced_sqr_soundness
import .signature_recover_publi... |
4b968098e7c98f87dcbd3eaa851eb3ff07edfa7e | 9dc8cecdf3c4634764a18254e94d43da07142918 | /src/number_theory/class_number/finite.lean | 332cfe561384c1078728de2f22d64b36c7ea5720 | [
"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 | 17,765 | 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 analysis.special_functions.pow
import linear_algebra.free_module.pid
import linear_algebra.matrix.absolute_value
import number_theory.class_number.admissible_absolu... |
fb194602c008bea23574d131e0caebd0f10687fa | e030b0259b777fedcdf73dd966f3f1556d392178 | /library/init/algebra/field.lean | ccf8f200cedb69f191acb62398e8145dc43f873f | [
"Apache-2.0"
] | permissive | fgdorais/lean | 17b46a095b70b21fa0790ce74876658dc5faca06 | c3b7c54d7cca7aaa25328f0a5660b6b75fe26055 | refs/heads/master | 1,611,523,590,686 | 1,484,412,902,000 | 1,484,412,902,000 | 38,489,734 | 0 | 0 | null | 1,435,923,380,000 | 1,435,923,379,000 | null | UTF-8 | Lean | false | false | 18,244 | lean | /-
Copyright (c) 2014 Robert Lewis. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Robert Lewis, Leonardo de Moura
Structures with multiplicative and additive components, including division rings and fields.
The development is modeled after Isabelle's library.
-/
prel... |
91e1001d610d58c051366b7e8db15415091a2578 | a0e23cfdd129a671bf3154ee1a8a3a72bf4c7940 | /tests/lean/revertlet.lean | 882e9a3e676088bf864a67049f91686fc28ad6a5 | [
"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 | 153 | lean | theorem ex (n : Nat) (h : n = 0) : 0 + n = 0 := by
let m := n + 1
let v := m + 1
have : v = n + 2 := rfl
traceState
subst h
traceState
rfl
|
b8b03982c0ea986b5fd551b32a9c3b8f5789cbd3 | 3f7026ea8bef0825ca0339a275c03b911baef64d | /src/tactic/default.lean | 3e8e99f272ee53c019d742f0109571bda9b0b3e0 | [
"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 | 832 | lean | /-
This file imports many useful tactics ("the kitchen sink").
You can use `import tactic` at the beginning of your file to get everything.
(Although you may want to strip things down when you're polishing.)
Because this file imports some complicated tactics, it has many transitive dependencies
(which of course may n... |
975458d2dbcf1b8dbc9d7cf52634ea980839a925 | 57c233acf9386e610d99ed20ef139c5f97504ba3 | /src/order/lattice.lean | f7b1afa3db4c92c02610c1ba190459be003882ea | [
"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 | 36,518 | lean | /-
Copyright (c) 2017 Johannes Hölzl. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Johannes Hölzl
-/
import order.monotone
import order.rel_classes
import tactic.simps
import tactic.pi_instances
/-!
# (Semi-)lattices
Semilattices are partially ordered sets with joi... |
1ae183d4d9f250f57292e1dfd6d9bd2ec8dd99fc | 8cae430f0a71442d02dbb1cbb14073b31048e4b0 | /src/tactic/explode.lean | 4307de7d5ced615b1ed74edd0c2d43017223f1ee | [
"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 | 9,383 | lean | /-
Copyright (c) 2018 Mario Carneiro. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Mario Carneiro, Minchao Wu
-/
import meta.rb_map
import tactic.core
/-!
# `#explode` command
Displays a proof term in a line by line format somewhat akin to a Fitch style
proof or the... |
f9b2e09a2e35fe4e85a5d9eb3d1c3d5bff87dc55 | 302c785c90d40ad3d6be43d33bc6a558354cc2cf | /src/measure_theory/ae_eq_fun.lean | 8d0d3fb7ba56e7412a4b2886707fa6679ce52b48 | [
"Apache-2.0"
] | permissive | ilitzroth/mathlib | ea647e67f1fdfd19a0f7bdc5504e8acec6180011 | 5254ef14e3465f6504306132fe3ba9cec9ffff16 | refs/heads/master | 1,680,086,661,182 | 1,617,715,647,000 | 1,617,715,647,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 20,401 | 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... |
864f4137a67995061899c4930d69065b28d33aac | 59b654f4ee2fef898a3487dc03554a569051b63a | /src/old/generic_cube_graph.lean | 72058cd72d17dfccccadd2b4cb423ea665f4b672 | [] | no_license | gunpinyo/twisted_cube_formalisation | 180c9157478b66ec2b11ca47c8ff998a3e978a88 | f78206ac495e84bd43a9b820fa10b6c94722e0ec | refs/heads/master | 1,624,501,222,992 | 1,607,081,624,000 | 1,607,081,624,000 | 166,885,106 | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 19,707 | lean | import graph
section
variable tw : bool
variable G : graph
def prism_graph.nodes := bool × G.nodes
def prism_graph.edges := (bool × G.edges) ⊕ G.nodes
def prism_graph.srctrg (b : bool) : prism_graph.edges G → prism_graph.nodes G
| (sum.inl (b', e)) := (b', G.srctrg (bxor (band b' tw) b) e)
| (sum.inr v... |
9ed5d7f0a5fab8e519a7e73a6a7d3875a68ace58 | 94637389e03c919023691dcd05bd4411b1034aa5 | /src/inClassNotes/final/imp.lean | caeef0e3215083e71f7d127a5e678132120f8441 | [] | no_license | kevinsullivan/complogic-s21 | 7c4eef2105abad899e46502270d9829d913e8afc | 99039501b770248c8ceb39890be5dfe129dc1082 | refs/heads/master | 1,682,985,669,944 | 1,621,126,241,000 | 1,621,126,241,000 | 335,706,272 | 0 | 38 | null | 1,618,325,669,000 | 1,612,374,118,000 | Lean | UTF-8 | Lean | false | false | 3,005 | lean | import .arith_expr
import .bool_expr
/-
Syntax of our little language (OLL).
OLL supports mutable variables and
values of types arithmetic (bool) and
arithmetic (nat). It has an assignment
command for each of these two types.
It also supports sequential composition
of smaller programs into larger ones.
-/
inductive ... |
919c70ca6a77e2a2eb7d02c59210c1b948e41034 | 55c7fc2bf55d496ace18cd6f3376e12bb14c8cc5 | /src/ring_theory/valuation/basic.lean | c2e61a27fa121806a7dd9b0a568babe8cb72c60b | [
"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 | 14,493 | 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 ring_theory.s... |
205a813e7dbdc48022fa2e25a7d4c4c47adaf22e | 69d4931b605e11ca61881fc4f66db50a0a875e39 | /src/algebra/group_power/lemmas.lean | 34d7bfe326083946cd2e0e82c14044f41710ebd6 | [
"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 | 32,819 | lean | /-
Copyright (c) 2015 Jeremy Avigad. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Jeremy Avigad, Robert Y. Lewis
-/
import algebra.group_power.basic
import algebra.invertible
import algebra.opposites
import data.list.basic
import data.int.cast
import data.equiv.basic... |
1471d6c20d8f1803536121adc5094005a7e6e2e7 | 88fb7558b0636ec6b181f2a548ac11ad3919f8a5 | /library/tools/super/clause.lean | a7180232884c910c0f1725cefa8f59685a612501 | [
"Apache-2.0"
] | permissive | moritayasuaki/lean | 9f666c323cb6fa1f31ac597d777914aed41e3b7a | ae96ebf6ee953088c235ff7ae0e8c95066ba8001 | refs/heads/master | 1,611,135,440,814 | 1,493,852,869,000 | 1,493,852,869,000 | 90,269,903 | 0 | 0 | null | 1,493,906,291,000 | 1,493,906,291,000 | null | UTF-8 | Lean | false | false | 8,662 | lean | /-
Copyright (c) 2016 Gabriel Ebner. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Gabriel Ebner
-/
import init.meta.tactic .utils .trim
open expr list tactic monad decidable
namespace super
meta def is_local_not (local_false : expr) (e : expr) : option expr :=
matc... |
a79ff831cf3a672e62fdb388d9b148f0edb7f753 | 7282d49021d38dacd06c4ce45a48d09627687fe0 | /tests/lean/eq3.lean | a8c4741ae415676ca3d529047742f048a8ff7109 | [
"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 | 199 | lean | import heq
variable Vector : Nat -> Type
variable n : Nat
variable v1 : Vector n
variable v2 : Vector (n + 0)
variable v3 : Vector (0 + n)
axiom H1 : v1 == v2
axiom H2 : v2 == v3
check htrans H1 H2
|
bc4f924e5b06c12cccd9664de641f7b430578c0f | 77c5b91fae1b966ddd1db969ba37b6f0e4901e88 | /src/number_theory/arithmetic_function.lean | 0019a5e08fb337dd6ef6ff1226c05d5bfe2a7db9 | [
"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 | 32,509 | lean | /-
Copyright (c) 2020 Aaron Anderson. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Aaron Anderson
-/
import algebra.big_operators.ring
import number_theory.divisors
import algebra.squarefree
import algebra.invertible
/-!
# Arithmetic Functions and Dirichlet Convolut... |
eb84c9ef7d5438f25de4d5ad0d864bfc7bce86af | f618aea02cb4104ad34ecf3b9713065cc0d06103 | /src/analysis/normed_space/basic.lean | af715c62849e4f71ee23c197d3275313057b0c8f | [
"Apache-2.0"
] | permissive | joehendrix/mathlib | 84b6603f6be88a7e4d62f5b1b0cbb523bb82b9a5 | c15eab34ad754f9ecd738525cb8b5a870e834ddc | refs/heads/master | 1,589,606,591,630 | 1,555,946,393,000 | 1,555,946,393,000 | 182,813,854 | 0 | 0 | null | 1,555,946,309,000 | 1,555,946,308,000 | null | UTF-8 | Lean | false | false | 24,570 | lean | /-
Copyright (c) 2018 Patrick Massot. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Normed spaces.
Authors: Patrick Massot, Johannes Hölzl
-/
import algebra.pi_instances
import linear_algebra.basic
import topology.instances.nnreal topology.instances.complex
variables {α : Ty... |
60da68fecd5d19d6398a0087dc735a9933d655cc | d406927ab5617694ec9ea7001f101b7c9e3d9702 | /src/category_theory/triangulated/rotate.lean | 4e5f57120189f02c8972bc7f84ec054edcbe4a45 | [
"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 | 12,157 | 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.preadditive.additive_functor
import category_theory.triangulated.basic
/-!
# Rotate
This file adds the ability to rotate triangles and triangle m... |
61b52020b753fa7283760824292452ea01bcb61d | 9dc8cecdf3c4634764a18254e94d43da07142918 | /src/algebra/algebra/tower.lean | 7416808106c253283dd70a459d7f3f7dfd5d00ae | [
"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,049 | 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.algebra.subalgebra.basic
import algebra.algebra.bilinear
/-!
# Towers of algebras
In this file we prove basic facts about towers of algebra.
An algebra tower... |
5c420b4cd5950df06f20ae36386cfea5da0bb8cb | a9d0fb7b0e4f802bd3857b803e6c5c23d87fef91 | /tests/lean/univ_vars.lean | 92f4c7848d4772775fb05c78ee9e7d845d320dc6 | [
"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 | 417 | lean | --
set_option pp.universes true
universe u
variable A : Type.{u}
definition id1 (a : A) : A := a
check @id1
variable B : Type
definition id2 (a : B) : B := a
check @id2
universe variable k
variable C : Type.{k}
definition id3 (a : C) := a
check @id3
universe variables l m
variable A₁ : Type.{l}
variable A₂ : Ty... |
7807d566378b4ac62403746a47365885208ce2f4 | 9b9a16fa2cb737daee6b2785474678b6fa91d6d4 | /src/analysis/exponential.lean | 812ff22b73e39f7de2fee4b8df9b3a38b1c6ce55 | [
"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 | 57,799 | lean | /-
Copyright (c) 2018 Chris Hughes. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Chris Hughes, Abhimanyu Pallavi Sudhir, Jean Lo
-/
import topology.instances.complex tactic.linarith data.complex.exponential group_theory.quotient_group
open finset filter metri... |
1c3753f233768c3d5e0e720ea9f46cdb0d558ad0 | a9d0fb7b0e4f802bd3857b803e6c5c23d87fef91 | /tests/lean/defeq_simp_lemmas2.lean | 99f04490efe485b29c052fd7a2459c34c2ea2376 | [
"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 | 1,436 | lean | namespace foo
universe l
constants (A : Type.{l})
noncomputable definition q (x : A) := x
noncomputable definition h (x : A) : A := q x
noncomputable definition g (x y : A) := h y
noncomputable definition f (x y z : A) := g (g x y) z
noncomputable definition d (x y z w : A) := f (f x y z) (f y z w) (f x w z)
attribut... |
2246d3338f1ae1bca2bb3868731008d41851d5fd | b7f22e51856f4989b970961f794f1c435f9b8f78 | /tests/lean/run/blast_simp3.lean | cbbb6b549ea785754bd2a7bee14137d6990c9fcd | [
"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 | 152 | lean | example (A : Type₁) (a₁ a₂ : A) : a₁ = a₂ →
(λ (B : Type₁) (f : A → B), f a₁) = (λ (B : Type₁) (f : A → B), f a₂) :=
by simp
|
5c902de533afbf13815e118117d5f3c0ada38649 | 84c325c9a58de83324b777adc78ac188ecdbceae | /src/util/io.lean | 08fd78324f372bbf87b5a84a30ea04a227814e63 | [
"Apache-2.0"
] | permissive | brando90/lean-gym | 0c3b433dac9c1a1079623721cdb3307a0981d86b | f4a94fcf54f8729be416ebdca82097d95a6f1c39 | refs/heads/main | 1,683,583,589,195 | 1,622,558,076,000 | 1,622,558,076,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 1,146 | lean | /-
Copyright (c) 2021 OpenAI. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Author(s): Stanislas Polu
Helper functions to work with the io monad.
-/
import system.io
import tactic.gptf.utils.util
section io
open interaction_monad interaction_monad.result
namespace io
/-- v... |
9d994db1d9b32698e419d119ed303467bbfcc657 | 9dc8cecdf3c4634764a18254e94d43da07142918 | /src/geometry/manifold/cont_mdiff.lean | 4b7650eb57e3d001f015e3658516759fe710487e | [
"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 | 93,542 | 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.mfderiv
import geometry.manifold.local_invariant_properties
/-!
# Smooth functions between smooth manifolds
We define `Cⁿ` functions... |
6d68220135e630aa35821453eb4387d8361bb5f8 | 57c233acf9386e610d99ed20ef139c5f97504ba3 | /src/linear_algebra/orientation.lean | ebc1425acc5d6dc7554b75860afeac820e11038d | [
"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 | 28,617 | lean | /-
Copyright (c) 2021 Joseph Myers. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Joseph Myers
-/
import linear_algebra.determinant
/-!
# Orientations of modules and rays in modules
This file defines rays in modules and orientations of modules.
## Main definitions
... |
367f42e9b91474ba2ff5d661bc560a83df572c5e | 853df553b1d6ca524e3f0a79aedd32dde5d27ec3 | /src/order/filter/ultrafilter.lean | 8e860e8031ae709b692706d978f172aff87be1e4 | [
"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 | 12,716 | lean | /-
Copyright (c) 2017 Johannes Hölzl. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Johannes Hölzl, Jeremy Avigad
-/
import order.filter.cofinite
/-!
# Ultrafilters
An ultrafilter is a minimal (maximal in the set order) proper filter.
In this file we define
* `is_u... |
4e78a92a97f11c548c6ac242dc02ed710655c4cb | 02005f45e00c7ecf2c8ca5db60251bd1e9c860b5 | /src/data/nat/choose/dvd.lean | 6278e650fd7ca51760a33b736465ff9bc538f751 | [
"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 | 1,957 | lean | /-
Copyright (c) 2018 Chris Hughes. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Chris Hughes, Patrick Stevens
-/
import data.nat.choose.basic
import data.nat.prime
import data.rat.floor
/-!
# Divisibility properties of binomial coefficients
-/
namespace nat
namespa... |
fbaa8a7f1b27b645523f45c24eccccb3b32e115c | d406927ab5617694ec9ea7001f101b7c9e3d9702 | /src/order/symm_diff.lean | 401c9105dc451cab8b3e0d801ca21d6d68011cc1 | [
"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 | 23,517 | lean | /-
Copyright (c) 2021 Bryan Gin-ge Chen. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Adam Topaz, Bryan Gin-ge Chen, Yaël Dillies
-/
import order.boolean_algebra
import logic.equiv.basic
/-!
# Symmetric difference and bi-implication
This file defines the symmetric... |
98a6501f985d14ad754e5c4f9a9368ff1573c288 | 367134ba5a65885e863bdc4507601606690974c1 | /src/topology/algebra/continuous_functions.lean | f34ccf6863545fac2756fbae7f18ad3d8207cc43 | [
"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 | 14,533 | lean | /-
Copyright (c) 2019 Scott Morrison. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Scott Morrison, Nicolò Cavalleri
-/
import topology.algebra.module
import topology.continuous_map
/-!
# Algebraic structures over continuous functions
In this file we define instance... |
aba15b6761c5b6e2b371b83122fa461f1e49f035 | 137c667471a40116a7afd7261f030b30180468c2 | /src/analysis/calculus/parametric_integral.lean | 5db27ab9e8b4c20c1a918bfe17c0b94dcd38822f | [
"Apache-2.0"
] | permissive | bragadeesh153/mathlib | 46bf814cfb1eecb34b5d1549b9117dc60f657792 | b577bb2cd1f96eb47031878256856020b76f73cd | refs/heads/master | 1,687,435,188,334 | 1,626,384,207,000 | 1,626,384,207,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 14,753 | lean | /-
Copyright (c) 2021 Patrick Massot. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Patrick Massot
-/
import measure_theory.set_integral
import analysis.calculus.mean_value
/-!
# Derivatives of integrals depending on parameters
A parametric integral is a function wi... |
857c645646756f477b6fc798e412424a132f009f | 4727251e0cd73359b15b664c3170e5d754078599 | /src/control/equiv_functor.lean | 5305c7e0136e6eeea1926d4cb72e975b9167c9e7 | [
"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 | 3,278 | 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 logic.equiv.basic
/-!
# Functions functorial with respect to equivalences
An `equiv_functor` is a function from `Type → Type` equipped with the additional da... |
a699b1f3224a99d922115306c3ce73d521982f5e | 6432ea7a083ff6ba21ea17af9ee47b9c371760f7 | /tests/lean/run/229.lean | 3653a727c507b02b3f4a5c7113ade338868f68bc | [
"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 | 693 | lean | def f1 (xs : Option (Array Nat)) : Nat :=
match xs with
| some #[x, y] => x
| _ => 0
def f2 (xs : Option (Array Nat)) : Nat :=
match xs with
| some #[0, y] => y
| some #[x+1, y] => x
| _ => 0
theorem ex1 : f2 (some #[0, 2]) = 2 := rfl
theorem ex2 : f2 (some #[10, 2]) = 9 := rfl
def f3 ... |
44ea99810bb9747211d773ac91b0797bd54893b9 | 8b9f17008684d796c8022dab552e42f0cb6fb347 | /tests/lean/run/class2.lean | 434df42a9b4a33670f4ea3c1d0a9d172f893bcfc | [
"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 | 190 | lean | import logic data.prod data.num
open prod nonempty inhabited
theorem H {A B : Type} (H1 : inhabited A) : inhabited (Prop × A × (B → num))
:= _
(*
print(get_env():find("H"):value())
*)
|
5c618172708ab285589bc17ae5877fc7648334bf | d406927ab5617694ec9ea7001f101b7c9e3d9702 | /src/order/extension/well.lean | 76c290e56f5d060990c7e3228c661a6967b4f236 | [
"Apache-2.0"
] | permissive | alreadydone/mathlib | dc0be621c6c8208c581f5170a8216c5ba6721927 | c982179ec21091d3e102d8a5d9f5fe06c8fafb73 | refs/heads/master | 1,685,523,275,196 | 1,670,184,141,000 | 1,670,184,141,000 | 287,574,545 | 0 | 0 | Apache-2.0 | 1,670,290,714,000 | 1,597,421,623,000 | Lean | UTF-8 | Lean | false | false | 3,271 | lean | /-
Copyright (c) 2022 Yaël Dillies, Junyan Xu. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Yaël Dillies, Junyan Xu
-/
import data.prod.lex
import set_theory.ordinal.arithmetic
/-!
# Extend a well-founded order to a well-order
This file constructs a well-order (lin... |
f2845a6a773adcdf0308533a214b3aadb121e7f8 | fe25de614feb5587799621c41487aaee0d083b08 | /src/Lean/Elab/App.lean | 920273258df72f12ec9c055b952eed2d3d34e5d4 | [
"Apache-2.0"
] | permissive | pollend/lean4 | e8469c2f5fb8779b773618c3267883cf21fb9fac | c913886938c4b3b83238a3f99673c6c5a9cec270 | refs/heads/master | 1,687,973,251,481 | 1,628,039,739,000 | 1,628,039,739,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 43,019 | 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.Util.FindMVar
import Lean.Parser.Term
import Lean.Elab.Term
import Lean.Elab.Binders
import Lean.Elab.SyntheticMVars
import Lean.Elab.Arg
names... |
e9cb7a8ed1ff03d2b0aded6ed26648137264d91b | 8cae430f0a71442d02dbb1cbb14073b31048e4b0 | /src/linear_algebra/projective_space/basic.lean | 78593079ab34d81fa6826a13271c1891dce3dd90 | [
"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 | 8,164 | lean | /-
Copyright (c) 2022 Adam Topaz. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Adam Topaz
-/
import linear_algebra.finite_dimensional
/-!
# Projective Spaces
> THIS FILE IS SYNCHRONIZED WITH MATHLIB4.
> Any changes to this file require a corresponding PR to mathli... |
8b7c1b9f199e893bc2b2546398815fe9d75b0c2a | 7cef822f3b952965621309e88eadf618da0c8ae9 | /src/category_theory/groupoid.lean | ef96cfba620bd4eacb370bc8c616354474528f61 | [
"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 | 1,573 | lean | /-
Copyright (c) 2018 Reid Barton All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Reid Barton
-/
import category_theory.category
import category_theory.isomorphism
import data.equiv.basic
namespace category_theory
universes v u -- declare the `v`'s first; see `catego... |
1d555ab0b70a0beeba080c60cd116c5bc2e0d7cc | cf39355caa609c0f33405126beee2739aa3cb77e | /tests/lean/sec_param_pp2.lean | 770b29f4d9459291704ed3025cd0cbfab7b24d35 | [
"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 | 234 | lean | section
parameters {A : Type} (a : A)
section
parameters {B : Type} (b : B)
variable f : A → B → A
definition id2 := f a b
#check id2
set_option pp.universes true
#check id2
end
#check id2
end
#check id2
|
70928715ed1667410f7cf3c054071b0161c179f9 | cf39355caa609c0f33405126beee2739aa3cb77e | /tests/lean/widget/widget5.lean | b89c06dd821ddf3e07b0dd26dbbd2c2ef5116550 | [
"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 | 99 | lean | open tactic widget
#html (component.pure $ λ _, [h "p" [attr.style [("color", "blue")]] ["hi"]])
|
2f43701c23c6f01eb5b9b54bc7c2959890c1d6b5 | 82e44445c70db0f03e30d7be725775f122d72f3e | /src/algebra/homology/exact.lean | 086f111614d16a078455a57155f0e88de83991a3 | [
"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 | 9,617 | 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.homology.image_to_kernel
/-!
# Exact sequences
In a category with zero morphisms, images, and equalizers we say that `f : A ⟶ B` and `g : B ⟶ C`
are ex... |
48bf3d3a4657e6f8d975f7f97f3664b189c4f2d2 | 453dcd7c0d1ef170b0843a81d7d8caedc9741dce | /data/int/basic.lean | 2b2bd2ca4acd78c8bdcb7804e5528776f5c2f1b5 | [
"Apache-2.0"
] | permissive | amswerdlow/mathlib | 9af77a1f08486d8fa059448ae2d97795bd12ec0c | 27f96e30b9c9bf518341705c99d641c38638dfd0 | refs/heads/master | 1,585,200,953,598 | 1,534,275,532,000 | 1,534,275,532,000 | 144,564,700 | 0 | 0 | null | 1,534,156,197,000 | 1,534,156,197,000 | null | UTF-8 | Lean | false | false | 43,279 | lean | /-
Copyright (c) 2016 Jeremy Avigad. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Jeremy Avigad
The integers, with addition, multiplication, and subtraction.
-/
import data.nat.basic algebra.char_zero algebra.order_functions
open nat
namespace int
instance : inhab... |
7ca935bc2134d2cd0bd27633dc47510f8d701ec5 | 77c5b91fae1b966ddd1db969ba37b6f0e4901e88 | /src/algebra/order/ring.lean | cb5de550c1e54a068ca0e95d9e980c16be56ab77 | [
"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 | 68,748 | 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
-/
import algebra.invertible
import algebra.order.group
import algebra.order.sub
import data.set.intervals.basic
/-!
# Ordered rings an... |
040850485a0ec07caa91f2c8207172874de61f9c | acc85b4be2c618b11fc7cb3005521ae6858a8d07 | /data/finset/basic.lean | 0b7c23172100571daecd5a62108425d23ae822c8 | [
"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 | 28,120 | lean | /-
Copyright (c) 2015 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Author: Leonardo de Moura, Jeremy Avigad, Minchao Wu, Mario Carneiro
Finite sets.
-/
import data.list.basic data.list.perm order.boolean_algebra algebra.functions
open list subtype nat ... |
e77f92f0c7e6b1898a4c2631107366e2a4ee7d46 | 624f6f2ae8b3b1adc5f8f67a365c51d5126be45a | /src/Init/Lean/Parser/Module.lean | d8924f4180b8271e4f4bf5f3fdae6fbfe5883de6 | [
"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 | 4,770 | 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, Sebastian Ullrich
-/
prelude
import Init.Lean.Message
import Init.Lean.Parser.Command
namespace Lean
namespace Parser
namespace Module
def «prelude» := par... |
0f778e86141250a2dabfc9ca0b8fb3509b8928d2 | 92e157ec9825b5e4597a6d715a8928703bc8e3b2 | /src/mywork/lecture_5.lean | ac4ff3e32781912ce3c4d2fad961d23062f1cab2 | [] | no_license | exb3dg/cs2120f21 | 9e566bc508762573c023d3e70f83cb839c199ec8 | 319b8bf0d63bf96437bf17970ce0198d0b3525cd | refs/heads/main | 1,692,970,909,568 | 1,634,584,540,000 | 1,634,584,540,000 | 399,947,025 | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 2,420 | lean | /-
INTRODUCTION and ELIMINATION RULES
-/
/-
For ∀ x, P x (every x has property P)
- introduction rule: assume arbitrary x, then show P x
- elimination rule: *apply* a proof of ∀ x, P x, as a
kind of function to a specific value of x, say k, to
produce a proof of P k.
-/
theorem silly : ∀ (n : ℕ), true :=
be... |
8b15866f655e2f325a80d6d7d5219fe01cd55937 | 9dc8cecdf3c4634764a18254e94d43da07142918 | /src/linear_algebra/affine_space/affine_map.lean | 878eb6c3a187e0ccd20357257d1bcec7908aa273 | [
"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 | 24,067 | 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 algebra.add_torsor
import data.set.intervals.unordered_interval
import linear_algebra.affine_space.basic
import linear_algebra.bilinear_map
import linear_algebra.p... |
07991f9c895f38914321fa3a183d0895bec88abe | c777c32c8e484e195053731103c5e52af26a25d1 | /src/analysis/special_functions/trigonometric/arctan.lean | 10ce7f424c9fcaaa5bc4ffd2455bfa5c9aeb4b22 | [
"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 | 7,968 | lean | /-
Copyright (c) 2018 Chris Hughes. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Chris Hughes, Abhimanyu Pallavi Sudhir, Jean Lo, Calle Sönne, Benjamin Davidson
-/
import analysis.special_functions.trigonometric.complex
/-!
# The `arctan` function.
Inequalities, de... |
75bd964a78bf8bc6737d92984e2628f8510e03ed | 367134ba5a65885e863bdc4507601606690974c1 | /src/group_theory/perm/subgroup.lean | ef0d70cae526760db29b4db65c8ddb704815f9fa | [
"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 | 2,617 | lean | /-
Copyright (c) 2020 Eric Wieser. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Eric Wieser
-/
import group_theory.perm.basic
import data.fintype.basic
import group_theory.subgroup
/-!
# Lemmas about subgroups within the permutations (self-equivalences) of a type `α`... |
672cbab43759b09537d9f8dea2071d689fcccc70 | e898bfefd5cb60a60220830c5eba68cab8d02c79 | /uexp/src/uexp/rules/decorrelateExists.lean | 8869aaec24fbc9c112f3e523c13efce8f1e08c8d | [
"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 | 1,626 | lean | import ..sql
import ..tactics
import ..u_semiring
import ..cosette_lemmas
import ..extra_constants
import ..TDP
import ..cosette_tactics
open Expr
open Proj
open Pred
open SQL
variable i : const datatypes.int
theorem rule :
forall (Γ scm_emp : Schema)
(rel_emp : relation scm_emp)
(emp_empn... |
99ae0c5793f222d08a205070be0ef24af52006b1 | df7bb3acd9623e489e95e85d0bc55590ab0bc393 | /lean/love11_logical_foundations_of_mathematics_exercise_solution.lean | 474f39fb2c8d19969f14b1bce5fd146e5106d450 | [] | no_license | MaschavanderMarel/logical_verification_2020 | a41c210b9237c56cb35f6cd399e3ac2fe42e775d | 7d562ef174cc6578ca6013f74db336480470b708 | refs/heads/master | 1,692,144,223,196 | 1,634,661,675,000 | 1,634,661,675,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 2,860 | lean | import .love11_logical_foundations_of_mathematics_demo
/- # LoVe Exercise 11: Logical Foundations of Mathematics -/
set_option pp.beta true
set_option pp.generalized_field_notation false
namespace LoVe
/- ## Question 1: Vectors as Subtypes
Recall the definition of vectors from the demo: -/
#check vector
/- Th... |
ddac99be788ef3a6b8fa4e0de98736c46d6e44b4 | 856e2e1615a12f95b551ed48fa5b03b245abba44 | /src/linear_algebra/direct_sum/tensor_product.lean | 060e60bace54a08435cfdf293d418c69390da1f1 | [
"Apache-2.0"
] | permissive | pimsp/mathlib | 8b77e1ccfab21703ba8fbe65988c7de7765aa0e5 | 913318ca9d6979686996e8d9b5ebf7e74aae1c63 | refs/heads/master | 1,669,812,465,182 | 1,597,133,610,000 | 1,597,133,610,000 | 281,890,685 | 1 | 0 | null | 1,595,491,577,000 | 1,595,491,576,000 | null | UTF-8 | Lean | false | false | 2,262 | lean | /-
Copyright (c) 2018 Kenny Lau. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Kenny Lau, Mario Carneiro
-/
import linear_algebra.tensor_product
import linear_algebra.direct_sum_module
section ring
namespace tensor_product
open_locale tensor_product
open linear_map... |
b00461034c4e7b0661b5eb00c8dc540aa7dfdc38 | 42610cc2e5db9c90269470365e6056df0122eaa0 | /library/theories/group_theory/basic.lean | b1bfe3d165f8c7a0dc7a52b06c16fd9600731d3d | [
"Apache-2.0"
] | permissive | tomsib2001/lean | 2ab59bfaebd24a62109f800dcf4a7139ebd73858 | eb639a7d53fb40175bea5c8da86b51d14bb91f76 | refs/heads/master | 1,586,128,387,740 | 1,468,968,950,000 | 1,468,968,950,000 | 61,027,234 | 0 | 0 | null | 1,465,813,585,000 | 1,465,813,585,000 | null | UTF-8 | Lean | false | false | 39,831 | lean | /-
Copyright (c) 2016 Andrew Zipperer. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Andrew Zipperer, Jeremy Avigad
Basic group theory: subgroups, homomorphisms on a set, homomorphic images, cosets,
normal cosets and the normalizer, the kernel of a homomorphism, th... |
c9bc885797e4040f894e301745e266764708292d | 9be442d9ec2fcf442516ed6e9e1660aa9071b7bd | /doc/examples/bintree.lean | 9b9236638874f0c10132b7c421a64ce2868c5da4 | [
"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 | 10,900 | lean | /-!
# Binary Search Trees
If the type of keys can be totally ordered -- that is, it supports a well-behaved `≤` comparison --
then maps can be implemented with binary search trees (BSTs). Insert and lookup operations on BSTs take time
proportional to the height of the tree. If the tree is balanced, the operations ther... |
cdee1f0e3566594dac29a44c9cc224dcbe059573 | 680b0d1592ce164979dab866b232f6fa743f2cc8 | /hott/types/pointed.hlean | 02caf0818275c4a84849fcf86c856be74ca55105 | [
"Apache-2.0"
] | permissive | syohex/lean | 657428ab520f8277fc18cf04bea2ad200dbae782 | 081ad1212b686780f3ff8a6d0e5f8a1d29a7d8bc | refs/heads/master | 1,611,274,838,635 | 1,452,668,188,000 | 1,452,668,188,000 | 49,562,028 | 0 | 0 | null | 1,452,675,604,000 | 1,452,675,602,000 | null | UTF-8 | Lean | false | false | 12,082 | hlean | /-
Copyright (c) 2014 Jakob von Raumer. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Jakob von Raumer, Floris van Doorn
Ported from Coq HoTT
-/
import arity .eq .bool .unit .sigma .nat.basic
open is_trunc eq prod sigma nat equiv option is_equiv bool unit algebra
s... |
98780f9bfc742b3780493082f4c9ed8e8d475dae | 4727251e0cd73359b15b664c3170e5d754078599 | /src/ring_theory/fractional_ideal.lean | 630cce4cc9454786d275027ba56efbad7771efac | [
"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 | 51,881 | lean | /-
Copyright (c) 2020 Anne Baanen. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Anne Baanen, Filippo A. E. Nuccio
-/
import algebra.big_operators.finprod
import ring_theory.integral_closure
import ring_theory.localization.integer
import ring_theory.localization.submo... |
a42e09701a7ffa92b7acc52bc1572d9af1625576 | 59a4b050600ed7b3d5826a8478db0a9bdc190252 | /src/category_theory/functor_categories/whiskering.lean | 40cbd4fd5baea3eeb25e324d4f267b14cd403744 | [] | 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 | 2,069 | 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.functor_category
import category_theory.tactics.obviously
namespace category_theory
universes u₁ v₁ u₂ v₂ u₃ v₃
section
variables (C : T... |
616837991e583cd1a43b66da80f4049a48af1874 | bbecf0f1968d1fba4124103e4f6b55251d08e9c4 | /src/linear_algebra/matrix/trace.lean | fa68bafdb405f71d4b86b9557c57812579516a68 | [
"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 | 2,350 | lean | /-
Copyright (c) 2019 Johannes Hölzl. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Johannes Hölzl, Patrick Massot, Casper Putz, Anne Baanen
-/
import data.matrix.basic
/-!
# Trace of a matrix
This file defines the trace of a matrix, the linear map
sending a matrix ... |
2738462435f96905d853485ebdc200f6c2b3e9af | 9d2e3d5a2e2342a283affd97eead310c3b528a24 | /src/solutions/friday/manifolds.lean | 216ffc21d0b4f46307b1f7c54537e618ca8d2672 | [] | permissive | Vtec234/lftcm2020 | ad2610ab614beefe44acc5622bb4a7fff9a5ea46 | bbbd4c8162f8c2ef602300ab8fdeca231886375d | refs/heads/master | 1,668,808,098,623 | 1,594,989,081,000 | 1,594,990,079,000 | 280,423,039 | 0 | 0 | MIT | 1,594,990,209,000 | 1,594,990,209,000 | null | UTF-8 | Lean | false | false | 41,871 | lean | import for_mathlib.manifolds
noncomputable theory
open_locale manifold classical big_operators
open set
universe u
/-!
## Reminder on updating the exercises
These instructions are now available at:
https://leanprover-community.github.io/lftcm2020/exercises.html
To get a new copy of the exercises,
run the followi... |
d534899f9a62fc998c3efb871d49019daafc85ff | fa02ed5a3c9c0adee3c26887a16855e7841c668b | /src/category_theory/limits/punit.lean | 95732e70d9e95a0ba30cdce54a8b8cd1d4a240c5 | [
"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,365 | lean | /-
Copyright (c) 2020 Scott Morrison. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Scott Morrison
-/
import category_theory.punit
import category_theory.limits.has_limits
/-!
# `discrete punit` has limits and colimits
Mostly for the sake of constructing trivial ex... |
a4e80a7d0873203812091d84d87bf6438f95d791 | 55c7fc2bf55d496ace18cd6f3376e12bb14c8cc5 | /src/category_theory/adjunction/limits.lean | 3a9b1825092a83f65660c79559d7256d0f1af35c | [
"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,528 | lean | /-
Copyright (c) 2019 Reid Barton. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Reid Barton, Johan Commelin
-/
import category_theory.adjunction.basic
import category_theory.limits.creates
open opposite
namespace category_theory.adjunction
open category_theory
open... |
9856670910c0312fb37447c2f07e6abaefc1b417 | 1446f520c1db37e157b631385707cc28a17a595e | /tests/compiler/closure_bug6.lean | a3f8ac43f2e85b31fde056c3207cf2d2c215299c | [
"Apache-2.0"
] | permissive | bdbabiak/lean4 | cab06b8a2606d99a168dd279efdd404edb4e825a | 3f4d0d78b2ce3ef541cb643bbe21496bd6b057ac | refs/heads/master | 1,615,045,275,530 | 1,583,793,696,000 | 1,583,793,696,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 509 | lean | def f (x : Nat) : Nat × (Nat → String) :=
let x1 := x + 1;
let x2 := x + 2;
let x3 := x + 3;
let x4 := x + 4;
let x5 := x + 5;
let x6 := x + 6;
let x7 := x + 7;
let x8 := x + 8;
let x9 := x + 9;
let x10 := x + 10;
let x11 := x + 11;
let x12 := x + 12;
let x13 := x + 13;
let x14 := x + 14;
let x15 := x + 15;
let x16 := ... |
77790b6a1c3e047c999ee1b6e482295bca3ed8f8 | 6432ea7a083ff6ba21ea17af9ee47b9c371760f7 | /tests/lean/run/909.lean | f2955ed52c67504d5e3401ddf6775f3735b445ec | [
"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 | 942 | lean | structure Date where
val : Nat
deriving Repr
instance : LE Date := ⟨InvImage (Nat.le) Date.val⟩
instance bad (a b : Date) : Decidable (a <= b) :=
if h0 : (a.val <= b.val) then isTrue h0 else isFalse (fun hf => False.elim (h0 hf))
instance : Min Date := minOfLe
/-
This implementation also fails:
instance (a b : ... |
2dfe4d73409deed5cda1ff207ffba4c3be7afbf0 | 7cef822f3b952965621309e88eadf618da0c8ae9 | /src/data/fin.lean | dcd83e481c1a5264d62f09d592dff43f7c63c930 | [
"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 | 14,243 | lean | /-
Copyright (c) 2017 Robert Y. Lewis. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Robert Y. Lewis, Keeley Hoek
More about finite numbers.
-/
import data.nat.basic
open fin nat function
/-- `fin 0` is empty -/
def fin_zero_elim {C : Sort*} : fin 0 → C :=
λ x, fal... |
38b8630c7a0078b12d535a8a1e51f43ca0314b6b | 86f6f4f8d827a196a32bfc646234b73328aeb306 | /examples/basics/unnamed_1989.lean | bfde4eaf49fc9102e8dad5986e460ceefbda72a9 | [] | no_license | jamescheuk91/mathematics_in_lean | 09f1f87d2b0dce53464ff0cbe592c568ff59cf5e | 4452499264e2975bca2f42565c0925506ba5dda3 | refs/heads/master | 1,679,716,410,967 | 1,613,957,947,000 | 1,613,957,947,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 162 | lean | import algebra.ordered_ring
variables {R : Type*} [ordered_ring R]
variables a b c : R
-- BEGIN
#check (mul_nonneg : 0 ≤ a → 0 ≤ b → 0 ≤ a * b)
-- END |
a769fd1752ed4c42bbedced0999ded24928de69a | b5d813b41740060da28e55b77c69760b7c52760d | /lean_stuff_4.lean | 37d6c77a4bd5090cb7e4e165cf62826225731712 | [] | no_license | ImperialCollegeLondon/SF-solns-zak | 4e85518c5cd4093b995a7593eee8295887e8727e | 7edc4424938e01a6ef4bb518fa8ec1757a2226b1 | refs/heads/master | 1,584,849,829,155 | 1,533,216,269,000 | 1,533,216,269,000 | 139,470,368 | 3 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 5,278 | lean |
namespace z3
inductive List (α : Type)
| emp {} : List
| ap : α → List → List
open List
notation {} := emp
notation x :: y := ap x y
definition append : Π {α:Type}, List α → List α → List α
| α emp L := L
| α (x::L₁) L₂ := x::(append L₁ L₂)
definition repeat : Π {α:Type}, α → ℕ → List α
| α _ 0 := emp
| α x ... |
2b7542f9d6b81a1d3cbc60118c45df7f9fde59b5 | 88fb7558b0636ec6b181f2a548ac11ad3919f8a5 | /tests/lean/pp_shadowed_const.lean | 2acd96fe6ae72f528f9c70274d6649bbf8280912 | [
"Apache-2.0"
] | permissive | moritayasuaki/lean | 9f666c323cb6fa1f31ac597d777914aed41e3b7a | ae96ebf6ee953088c235ff7ae0e8c95066ba8001 | refs/heads/master | 1,611,135,440,814 | 1,493,852,869,000 | 1,493,852,869,000 | 90,269,903 | 0 | 0 | null | 1,493,906,291,000 | 1,493,906,291,000 | null | UTF-8 | Lean | false | false | 102 | lean | def f : Π (x : nat) (b : bool), bool = bool := λ bool, _
def g (heq : 1 == 1) := heq.symm
#print g
|
1c6047ef4334e960da94be5b240ce68e7110c0cf | 4efff1f47634ff19e2f786deadd394270a59ecd2 | /src/data/fin.lean | 4d0420556ce9ba7aefba3020b1748b9975d087bb | [
"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 | 39,333 | lean | /-
Copyright (c) 2017 Robert Y. Lewis. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Robert Y. Lewis, Keeley Hoek
-/
import data.nat.cast
import tactic.localized
import logic.embedding
/-!
# The finite type with `n` elements
`fin n` is the type whose elements are nat... |
5387a69ed59c40e92f5915073dc564e35501d9d8 | fa02ed5a3c9c0adee3c26887a16855e7841c668b | /src/set_theory/ordinal.lean | 1f3503a7c2fbfa66928d1cff39c286506cc4eb5a | [
"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 | 56,660 | lean | /-
Copyright (c) 2017 Johannes Hölzl. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Mario Carneiro, Floris van Doorn
-/
import set_theory.cardinal
/-!
# Ordinals
Ordinals are defined as equivalences of well-ordered sets under order isomorphism. They are endowed
with... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.