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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
79e07acbf2783596da192fcc1e9af0a7ada04b64 | 7cef822f3b952965621309e88eadf618da0c8ae9 | /src/topology/uniform_space/absolute_value.lean | a4635b59fc6ab0af4fe697001e041f255dddf6f6 | [
"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 | 2,938 | lean | /-
Copyright (c) 2019 Patrick Massot. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Patrick Massot
-/
import data.real.cau_seq
import topology.uniform_space.basic
/-!
# Uniform structure induced by an absolute value
We build a uniform space structure on a commutati... |
e7a6a5bcd8da1dad57ab1fe2df0f9ed1c2b8ed9c | 4efff1f47634ff19e2f786deadd394270a59ecd2 | /src/analysis/calculus/times_cont_diff.lean | a648d0a3c225b55920f1066ddb25b33ed4c11645 | [
"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 | 117,114 | lean | /-
Copyright (c) 2019 Sébastien Gouëzel. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Sébastien Gouëzel
-/
import analysis.calculus.mean_value
/-!
# Higher differentiability
A function is `C^1` on a domain if it is differentiable there, and its derivative is contin... |
f30e45d22c831511269d71ad479063f0c7c0980c | 4727251e0cd73359b15b664c3170e5d754078599 | /src/analysis/special_functions/log/deriv.lean | af95ec6e16085a7c60f8d3cffd8fb96c9a428d00 | [
"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 | 11,047 | 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
-/
import analysis.special_functions.log.basic
import analysis.special_functions.exp_deriv
/-!
# Derivative and series expan... |
81cf10b6b75e0cdbd246e42fdec1b531988ca410 | 8cae430f0a71442d02dbb1cbb14073b31048e4b0 | /src/algebra/homology/homology.lean | 348197a115a6842bcf9aa8b5223ff1948dd51388 | [
"Apache-2.0"
] | permissive | leanprover-community/mathlib | 56a2cadd17ac88caf4ece0a775932fa26327ba0e | 442a83d738cb208d3600056c489be16900ba701d | refs/heads/master | 1,693,584,102,358 | 1,693,471,902,000 | 1,693,471,902,000 | 97,922,418 | 1,595 | 352 | Apache-2.0 | 1,694,693,445,000 | 1,500,624,130,000 | Lean | UTF-8 | Lean | false | false | 10,519 | lean | /-
Copyright (c) 2021 Scott Morrison. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Scott Morrison
-/
import algebra.homology.image_to_kernel
import algebra.homology.homological_complex
import category_theory.graded_object
/-!
# The homology of a complex
> THIS FILE... |
6f3dc2bf68562dbc654738e9547d38f0e9225966 | 8cae430f0a71442d02dbb1cbb14073b31048e4b0 | /src/data/fintype/sum.lean | fe14ab22471cc145da291e02b8eb26814673e1d1 | [
"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,421 | lean | /-
Copyright (c) 2017 Mario Carneiro. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Mario Carneiro
-/
import data.fintype.card
import data.finset.sum
import logic.embedding.set
/-!
## Instances
> THIS FILE IS SYNCHRONIZED WITH MATHLIB4.
> Any changes to this file re... |
c9475e8420e43a6ee3731378aa78add9105562df | d26814d9437130e14d6d016c92d8c436b6dc62f3 | /prop_join.hlean | 2b4cab8802fc23c0304be21a684ee18199c4f26b | [] | no_license | jonas-frey/segal | 92fb5a556c164d4e9e864f2da1258be5a6482af8 | 64b4ec62ec5f293b781d5bbfea5a6b0997558c13 | refs/heads/master | 1,594,256,935,764 | 1,566,490,351,000 | 1,566,490,351,000 | 203,831,654 | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 3,776 | hlean | import types.prod types.fin hit.pushout types.fiber homotopy.join
my_prelude types.pullback Spectral.homotopy.pushout
open is_trunc prod nat is_equiv function pushout eq equiv sigma
pullback trunc
infix ` ★ `:40 := join
section pushout_sigma
parameters {A : Type} {B C D : A → Type} (f : Πa, B a → C a) ... |
052c6e37249f9373160b69ace097805e46702896 | ee8cdbabf07f77e7be63a449b8483ce308d37218 | /lean/src/test/mathd-algebra-107.lean | 31bd15d1c0601d45c170e48582ff146c6c1a5bb3 | [
"Apache-2.0",
"MIT"
] | permissive | zeta1999/miniF2F | 6d66c75d1c18152e224d07d5eed57624f731d4b7 | c1ba9629559c5273c92ec226894baa0c1ce27861 | refs/heads/main | 1,681,897,460,642 | 1,620,646,361,000 | 1,620,646,361,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 276 | lean | /-
Copyright (c) 2021 OpenAI. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Kunhao Zheng
-/
import data.real.basic
example (x y : ℝ) (h₀ : x^2 + 8 * x + y^2 - 6 * y = 0) : (x + 4)^2 + (y-3)^2 = 5^2 :=
begin
sorry
end
|
3c6b341514319d230877f2a2b94f1ab2004c2ca0 | 6432ea7a083ff6ba21ea17af9ee47b9c371760f7 | /src/lake/examples/precompile/foo/Foo/Hello.lean | dc9b496a23cba1a37c6f50844522299b4c0f63bd | [
"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 | 143 | lean | @[export hello]
def helloImpl (_ : Unit) := "precompiled world"
@[extern "hello"]
opaque getHello : Unit → String
def hello := getHello ()
|
a9d833d12271936dcee6bc68d75265fb8f232e23 | 28b6e1a13d35e9b450f65c001660f4ec4713aa10 | /Search/NTactic/Examples.lean | 5331281ffbad79ddfb42aa80b9ce30bb2eb1b821 | [
"Apache-2.0"
] | permissive | dselsam/search | 14e3af3261a7a70f8e5885db9722b186f96fe1f5 | 67003b859d2228d291a3873af6279c1f61430c64 | refs/heads/master | 1,684,700,794,306 | 1,614,294,810,000 | 1,614,294,810,000 | 339,578,823 | 1 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 643 | lean | /-
Copyright (c) 2021 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Daniel Selsam
-/
import Search.Inspect.Basic
import Search.NTactic.Basic
import Lean
namespace Search
namespace NTactic
def chooseBoolsDoNothing : NTacticM Unit := do
Lean.M... |
f8d66ab74c9b3b8f263a53cf4f27a3822700682b | 4efff1f47634ff19e2f786deadd394270a59ecd2 | /src/category_theory/limits/shapes/constructions/pullbacks.lean | abf6eced44ca7508b514889e9521ea087d23ac82 | [
"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 | 3,897 | 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 category_theory.limits.shapes.binary_products
import category_theory.limits.shapes.equalizers
import category_theory.limits.shapes.pullbacks
universes v u
/-!
... |
56adeaf5d7ce5848c20fc466c10713aa032d39d8 | 367134ba5a65885e863bdc4507601606690974c1 | /src/category_theory/limits/preserves/shapes/products.lean | 5e5433dc2477c3746b73effd1b5cb61a0474cc5f | [
"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 | 3,542 | lean | /-
Copyright (c) 2020 Scott Morrison, Bhavik Mehta. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Scott Morrison, Bhavik Mehta
-/
import category_theory.limits.shapes.products
import category_theory.limits.preserves.basic
/-!
# Preserving products
Constructions to r... |
13c45645770d5a310da24c0cedec90a2f7753438 | b7f22e51856f4989b970961f794f1c435f9b8f78 | /tests/lean/run/e17.lean | 91691e26f73fb24073d16d8458f828259fbc00a4 | [
"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 | 481 | lean | prelude
inductive nat : Type :=
| zero : nat
| succ : nat → nat
inductive list (A : Type) : Type :=
| nil {} : list A
| cons : A → list A → list A
inductive int : Type :=
| of_nat : nat → int
| neg : nat → int
attribute int.of_nat [coercion]
constants n m : nat
constants i j : int
namespace list end list open lis... |
5cbf32583a75e96fa84e7f74b5af9c750b470b3e | 4f065978c49388d188224610d9984673079f7d91 | /nbg.lean | e09266fab9333fe6d5d59ef617d6388e7ca0fd01 | [] | no_license | kckennylau/Lean | b323103f52706304907adcfaee6f5cb8095d4a33 | 907d0a4d2bd8f23785abd6142ad53d308c54fdcb | refs/heads/master | 1,624,623,720,653 | 1,563,901,820,000 | 1,563,901,820,000 | 109,506,702 | 3 | 1 | null | null | null | null | UTF-8 | Lean | false | false | 31,355 | lean | import tactic.interactive
universes u v
class nbg (α : Type u) (β : Type v) :=
(set_mem_set : α → α → Prop)
(set_mem_class : α → β → Prop)
(set_ext : ∀ x y, (∀ z, set_mem_set z x ↔ set_mem_set z y) → x = y)
(set_pair : α → α → α)
(set_pair_prop : ∀ x y z, set_mem_set z (set_pair x y) ↔ (z = x ∨ z = y))
(set_union : α... |
163dd780dd1007f09908ca4030d05030a0ab9954 | 8cae430f0a71442d02dbb1cbb14073b31048e4b0 | /src/combinatorics/quiver/single_obj.lean | 8fc315d081ef64c056b78c15db4c2102f1118ca6 | [
"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,476 | lean | /-
Copyright (c) 2023 Antoine Labelle. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Antoine Labelle
-/
import combinatorics.quiver.cast
import combinatorics.quiver.symmetric
/-!
# Single-object quiver
> THIS FILE IS SYNCHRONIZED WITH MATHLIB4.
> Any changes to this... |
b27898a1a200373f6023cdd6e600782005e8028c | a45212b1526d532e6e83c44ddca6a05795113ddc | /src/algebra/punit_instances.lean | a0be13f4650a1736b7b80a8edc44bfa046997d94 | [
"Apache-2.0"
] | permissive | fpvandoorn/mathlib | b21ab4068db079cbb8590b58fda9cc4bc1f35df4 | b3433a51ea8bc07c4159c1073838fc0ee9b8f227 | refs/heads/master | 1,624,791,089,608 | 1,556,715,231,000 | 1,556,715,231,000 | 165,722,980 | 5 | 0 | Apache-2.0 | 1,552,657,455,000 | 1,547,494,646,000 | Lean | UTF-8 | Lean | false | false | 3,491 | lean | /-
Copyright (c) 2019 Kenny Lau. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Kenny Lau
Instances on punit.
-/
import algebra.module algebra.group
universes u
open lattice
namespace punit
variables (x y : punit.{u+1}) (s : set punit.{u+1})
instance : comm_ring ... |
4b8a7c0d9b62d36ac6d29511dc24cee1b05880e0 | 7cef822f3b952965621309e88eadf618da0c8ae9 | /test/norm_num.lean | 9e023797312966fbf63be860d79939785f0c966d | [
"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,705 | lean | /-
Copyright (c) 2017 Simon Hudon All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Simon Hudon, Mario Carneiro
Tests for norm_num
-/
import data.real.basic tactic.norm_num
example : 374 + (32 - (2 * 8123) : ℤ) - 61 * 50 = 86 + 32 * 32 - 4 * 5000
∧ 43 ≤ 74 + (33 ... |
146d69c9ecc097a6e2fbe3f4075f82035bd58db4 | de7b3dbc03c2200899ec842ca1e7cba570a04fa1 | /src/util.lean | e86fa13339fe6257ed7e2dcd2b62fb3ab8df0c49 | [] | no_license | robertylewis/relevance_filter | 4c48a0e02bbeef857f9c67b0f7dc8f3acd5b906a | d11544e08c6d3569410e312baf149412b168ebb4 | refs/heads/master | 1,670,019,263,018 | 1,597,851,640,000 | 1,597,851,640,000 | 105,209,556 | 0 | 1 | null | null | null | null | UTF-8 | Lean | false | false | 733 | lean | import data.list
open native
meta def rb_map.find' {α β} [inhabited β] (map : rb_map α β) (a : α) : β :=
match map.find a with
| some b := b
| none := default β
end
meta def declaration.is_defined : declaration → bool
| (declaration.defn _ _ _ _ _ _) := tt
| (declaration.thm _ _ _ _) := tt
| _ := ff
me... |
45fd79ef0e2a8c3b58531458daeb726e65c85b72 | 624f6f2ae8b3b1adc5f8f67a365c51d5126be45a | /tests/lean/run/doNotation1.lean | db561c2daa22fd1ec22d51df5282da5b722e70a8 | [
"Apache-2.0"
] | permissive | mhuisi/lean4 | 28d35a4febc2e251c7f05492e13f3b05d6f9b7af | dda44bc47f3e5d024508060dac2bcb59fd12e4c0 | refs/heads/master | 1,621,225,489,283 | 1,585,142,689,000 | 1,585,142,689,000 | 250,590,438 | 0 | 2 | Apache-2.0 | 1,602,443,220,000 | 1,585,327,814,000 | C | UTF-8 | Lean | false | false | 2,499 | lean | open Lean
partial def expandHash : Syntax → StateT Bool MacroM Syntax
| Syntax.node k args =>
if k == `doHash then do set true; `(←MonadState.get)
else do
args ← args.mapM expandHash;
pure $ Syntax.node k args
| stx => pure stx
@[macro Lean.Parser.Term.do] def expandDo : Macro :=
fun stx => do
(stx, exp... |
baedb061f546307ea84647e001e60b788055604d | d406927ab5617694ec9ea7001f101b7c9e3d9702 | /src/combinatorics/additive/behrend.lean | aa84a203c8664e7b7e4b310d38af523eec207b7e | [
"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 | 22,411 | lean | /-
Copyright (c) 2022 Yaël Dillies, Bhavik Mehta. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Yaël Dillies, Bhavik Mehta
-/
import analysis.inner_product_space.pi_L2
import combinatorics.additive.salem_spencer
import combinatorics.pigeonhole
import data.complex.expo... |
55bc33e6232aaa5809c55c4ddd010f1dea0a2dc6 | 618003631150032a5676f229d13a079ac875ff77 | /test/conv.lean | 8e86f728c8abf1688d7dc99bd554716952d2c80e | [
"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,201 | lean | /-
Copyright (c) 2018 Keeley Hoek. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Keeley Hoek
-/
import tactic.converter.interactive
import tactic.ring
example : 0 + 0 = 0 :=
begin
conv_lhs {erw [add_zero]}
end
example : 0 + 0 = 0 :=
begin
conv_lhs {simp}
end
ex... |
72f3e122cba5c5650d7b8960a3fc6456eb23fe18 | 8d65764a9e5f0923a67fc435eb1a5a1d02fd80e3 | /src/tactic/interactive.lean | ea6b9ace1e97d86c74821c1fb2ca0ae3fcbc2f8e | [
"Apache-2.0"
] | permissive | troyjlee/mathlib | e18d4b8026e32062ab9e89bc3b003a5d1cfec3f5 | 45e7eb8447555247246e3fe91c87066506c14875 | refs/heads/master | 1,689,248,035,046 | 1,629,470,528,000 | 1,629,470,528,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 38,816 | lean | /-
Copyright (c) 2017 Mario Carneiro. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Mario Carneiro, Simon Hudon, Sébastien Gouëzel, Scott Morrison
-/
import tactic.lint
import tactic.dependencies
open lean
open lean.parser
local postfix `?`:9001 := optional
local po... |
0db7aac5d71c31d4f891330e0945ca7ff1724376 | fe84e287c662151bb313504482b218a503b972f3 | /src/data/vector_extra.lean | 4e3a491e0f78d5470e96d9403ea0df60ef64c5ba | [] | no_license | NeilStrickland/lean_lib | 91e163f514b829c42fe75636407138b5c75cba83 | 6a9563de93748ace509d9db4302db6cd77d8f92c | refs/heads/master | 1,653,408,198,261 | 1,652,996,419,000 | 1,652,996,419,000 | 181,006,067 | 4 | 1 | null | null | null | null | UTF-8 | Lean | false | false | 3,907 | lean | import data.vector logic.embedding data.fin.basic data.list.basic
import data.list_extra
namespace vector
open vector
variables {α : Type*} {β : Type*} {n m : ℕ}
lemma head_eq_zeroth : ∀ (v : vector α (n + 1)), v.head = nth v 0
| ⟨list.nil,l_len⟩ := by {cases l_len}
| ⟨_ :: _,_⟩ := rfl
def single (a : α) : vecto... |
1e2d2307cbc4232dda40032acbb0bc876545a469 | 36938939954e91f23dec66a02728db08a7acfcf9 | /lean4/app/VCGBackend.lean | 6c1f7e3ad24508ff463f0ab7c57c022540cbb19c | [] | no_license | pnwamk/reopt-vcg | f8b56dd0279392a5e1c6aee721be8138e6b558d3 | c9f9f185fbefc25c36c4b506bbc85fd1a03c3b6d | refs/heads/master | 1,631,145,017,772 | 1,593,549,019,000 | 1,593,549,143,000 | 254,191,418 | 0 | 0 | null | 1,586,377,077,000 | 1,586,377,077,000 | null | UTF-8 | Lean | false | false | 17,959 | lean |
import SMTLIB.Syntax
import X86Semantics.Common
import X86Semantics.BackendAPI
import DecodeX86.DecodeX86
import Main.Translate -- FIXME: this should be moved elsewhere
import ReoptVCG.Annotations
namespace x86
namespace vcg
axiom I_am_really_sorry4 : ∀(P : Prop), P
open mc_semantics
open mc_semantics.type
op... |
5352b9bb4a6c3b6ede5a312e1c5bad20d2aae90e | 74addaa0e41490cbaf2abd313a764c96df57b05d | /Mathlib/linear_algebra/pi_tensor_product_auto.lean | 3867810b778f8ed51ae5eeae17860cad085f414e | [] | 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 | 19,063 | lean | /-
Copyright (c) 2020 Frédéric Dupuis. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Frédéric Dupuis
-/
import Mathlib.PrePort
import Mathlib.Lean3Lib.init.default
import Mathlib.group_theory.congruence
import Mathlib.linear_algebra.multilinear
import Mathlib.PostPort... |
48449901882a2bf917a7483e7fc7e144eafc782e | 93366ecea09eebeeb0b320567c6f71715434c3f0 | /src/bum/configconverter.lean | 77deea5a3a83c324089ff9a58fb1c83ab5df3505 | [
"LicenseRef-scancode-mit-taylor-variant",
"LicenseRef-scancode-warranty-disclaimer"
] | permissive | o89/bum | 9c1286cedb878c1e14c618e81b33d365f62c8a8a | 18ffb2b46932ba767c50758a93cc99846ef1b46a | refs/heads/master | 1,670,171,693,018 | 1,669,086,393,000 | 1,669,086,393,000 | 205,409,352 | 8 | 6 | null | null | null | null | UTF-8 | Lean | false | false | 3,724 | lean | import bum.auxiliary
import bum.configparser
open System (FilePath)
def getExt (filename : String) : String × String :=
let byDot := filename.splitOn ".";
if byDot.length > 1 then
(String.join byDot.init, byDot.getLast!)
else (filename, "")
def confGetString (s : String) (inh : Option String) :
List Val → Except... |
f244cff9829ed647a52120ced6314d16e7e4956b | 4efff1f47634ff19e2f786deadd394270a59ecd2 | /src/algebra/category/Module/monoidal.lean | d509f2e9c2765c8b05612770ad3ef0d9e46af269 | [
"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 | 5,763 | lean | /-
Copyright (c) 2020 Scott Morrison. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Kevin Buzzard, Scott Morrison
-/
import category_theory.monoidal.category
import algebra.category.Module.basic
import linear_algebra.tensor_product
/-!
# The monoidal category structu... |
ff53cb6591f4a3b7e2a5785a2e916861e70dac68 | a4673261e60b025e2c8c825dfa4ab9108246c32e | /stage0/src/Lean/Meta/AbstractMVars.lean | 646baf36c2963cc960673cefd11c65ad3b641504 | [
"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 | 5,635 | lean | /-
Copyright (c) 2019 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Leonardo de Moura
-/
import Lean.Meta.Basic
namespace Lean.Meta
structure AbstractMVarsResult :=
(paramNames : Array Name)
(numMVars : Nat)
(expr : Expr)
instan... |
a5c55b7d6a53b87e88f7d50bb3dfea25781114d6 | 302c785c90d40ad3d6be43d33bc6a558354cc2cf | /src/category_theory/subobject/well_powered.lean | bd64ebc4c321878f9c7d60651c34e617766ee1fa | [
"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 | 2,162 | lean | /-
Copyright (c) 2021 Scott Morrison. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Scott Morrison
-/
import category_theory.subobject.basic
import category_theory.essentially_small
/-!
# Well-powered categories
A category `(C : Type u) [category.{v} C]` is `[well_p... |
6edf9556a70cea070c6e95efa1bd52c0cccc87e4 | 31f556cdeb9239ffc2fad8f905e33987ff4feab9 | /stage0/src/Lean/Environment.lean | 7767c4b740cae604c4c6a90526a338d8af7a4596 | [
"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 | tobiasgrosser/lean4 | ce0fd9cca0feba1100656679bf41f0bffdbabb71 | ebdbdc10436a4d9d6b66acf78aae7a23f5bd073f | refs/heads/master | 1,673,103,412,948 | 1,664,930,501,000 | 1,664,930,501,000 | 186,870,185 | 0 | 0 | Apache-2.0 | 1,665,129,237,000 | 1,557,939,901,000 | Lean | UTF-8 | Lean | false | false | 39,554 | 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.Data.HashMap
import Lean.ImportingFlag
import Lean.Data.SMap
import Lean.Declaration
import Lean.LocalContext
import Lean.Util.Path
import Lean.... |
1a4f67e621a4210f5bf71484adef846521d03aa6 | 8cae430f0a71442d02dbb1cbb14073b31048e4b0 | /src/topology/category/Top/limits/basic.lean | 9b7985310f6da7ac244a15a265179fd21a5235b9 | [
"Apache-2.0"
] | permissive | leanprover-community/mathlib | 56a2cadd17ac88caf4ece0a775932fa26327ba0e | 442a83d738cb208d3600056c489be16900ba701d | refs/heads/master | 1,693,584,102,358 | 1,693,471,902,000 | 1,693,471,902,000 | 97,922,418 | 1,595 | 352 | Apache-2.0 | 1,694,693,445,000 | 1,500,624,130,000 | Lean | UTF-8 | Lean | false | false | 6,915 | lean | /-
Copyright (c) 2017 Scott Morrison. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Patrick Massot, Scott Morrison, Mario Carneiro, Andrew Yang
-/
import topology.category.Top.basic
import category_theory.limits.concrete_category
/-!
# The category of topological spa... |
cb58c0c20aec51cd581e7e9a0ce3c58bfb6143d7 | 6432ea7a083ff6ba21ea17af9ee47b9c371760f7 | /tests/pkg/frontend/Frontend/Main_with_Import2.lean | c806906421d3bde5f7106b307f941ce8c7f23fb6 | [
"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 | 45 | lean | import Frontend.Main
import Frontend.Import2
|
f4ecdbb7bd3f283a3a37a1e56a1b6455c447cc33 | 57c233acf9386e610d99ed20ef139c5f97504ba3 | /src/algebra/big_operators/associated.lean | 024927f067eaf935f2099c60e9a8e140a7c4ab0a | [
"Apache-2.0"
] | permissive | robertylewis/mathlib | 3d16e3e6daf5ddde182473e03a1b601d2810952c | 1d13f5b932f5e40a8308e3840f96fc882fae01f0 | refs/heads/master | 1,651,379,945,369 | 1,644,276,960,000 | 1,644,276,960,000 | 98,875,504 | 0 | 0 | Apache-2.0 | 1,644,253,514,000 | 1,501,495,700,000 | Lean | UTF-8 | Lean | false | false | 4,746 | lean | /-
Copyright (c) 2018 Johannes Hölzl. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Johannes Hölzl, Jens Wagemaker, Anne Baanen
-/
import algebra.associated
import algebra.big_operators.basic
import data.finsupp.basic
/-!
# Products of associated, prime, and irreduc... |
a3e94c6327743afef7d72787d066630220d510ab | 9be442d9ec2fcf442516ed6e9e1660aa9071b7bd | /tests/lean/interactive/run.lean | f25346d91a9f84ecd45ae658145c7d2c48f5b8c4 | [
"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 | 5,691 | lean | import Lean.Data.Lsp
import Lean.Widget
open Lean
open Lean.Lsp
open Lean.JsonRpc
def word : Parsec String :=
Parsec.many1Chars <| Parsec.digit <|> Parsec.asciiLetter <|> Parsec.pchar '_'
def ident : Parsec Name := do
let head ← word
let xs ← Parsec.many1 (Parsec.pchar '.' *> word)
return xs.foldl Name.mkStr ... |
e6bbb6ca3f961a90bd9c518a7118080f530837b1 | 97c8e5d8aca4afeebb5b335f26a492c53680efc8 | /ground_zero/theorems/mere_eq_lemma.lean | 533f26455813954dba5fe02942d8a7951f6cd85f | [] | no_license | jfrancese/lean | cf32f0d8d5520b6f0e9d3987deb95841c553c53c | 06e7efaecce4093d97fb5ecc75479df2ef1dbbdb | refs/heads/master | 1,587,915,151,351 | 1,551,012,140,000 | 1,551,012,140,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 650 | lean | import ground_zero.HITs.truncation
open ground_zero
namespace ground_zero.mere_eq_lemma
universe u
def to_mere_eq {α β : Sort u} (h : α = β) : ∥α = β :> Sort u∥ :=
begin induction h, apply ground_zero.HITs.truncation.elem, reflexivity end
def from_mere_eq {α β : Sort u} : ∥α = β :> Sort u∥ → α = β :=
HITs.truncation... |
90734fd0a35240ed2e7f5536d4609722c7eadf02 | 2bafba05c98c1107866b39609d15e849a4ca2bb8 | /src/week_4/solutions/Part_B_option.lean | 06d68547792068c8a305805b2a4aa81998ffee10 | [
"Apache-2.0"
] | permissive | ImperialCollegeLondon/formalising-mathematics | b54c83c94b5c315024ff09997fcd6b303892a749 | 7cf1d51c27e2038d2804561d63c74711924044a1 | refs/heads/master | 1,651,267,046,302 | 1,638,888,459,000 | 1,638,888,459,000 | 331,592,375 | 284 | 24 | Apache-2.0 | 1,669,593,705,000 | 1,611,224,849,000 | Lean | UTF-8 | Lean | false | false | 3,450 | lean | import tactic
/-
# Option
Much of this part is optional, if you just want to get to the
topology.
## The definition
If `X : Type` then `option X : Type` is a type with "one more element than `X`".
The disadvantage of type theory over set theory is that distinct types
are always disjoint. So if `x : X` then `x : op... |
c8548393ad43cbb2f181581b60241bed23a8219b | bde6690019e9da475b0c91d5a066e0f6681a1179 | /library/standard/nat2.lean | ec7fd908f55ee2ac87c607157186b66264d9e46d | [
"Apache-2.0"
] | permissive | leodemoura/libraries | ae67d491abc580407aa837d65736d515bec39263 | 14afd47544daa9520ea382d33ba7f6f05c949063 | refs/heads/master | 1,473,601,302,073 | 1,403,713,370,000 | 1,403,713,370,000 | 19,831,525 | 1 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 28,243 | lean | ----------------------------------------------------------------------------------------------------
--- Copyright (c) 2014 Jeremy Avigad. All rights reserved.
--- Released under Apache 2.0 license as described in the file LICENSE.
--- Author: Jeremy Avigad
--------------------------------------------------------------... |
de33db13df7478fe6eca2d4d7a9cb33e9a9130c3 | 6065973b1fa7bbacba932011c9e2f32bf7bdd6c1 | /src/computability/NFA.lean | 6d2604bed8aba61ebe51c6a9b872a9d7f0a2ff10 | [
"Apache-2.0"
] | permissive | khmacdonald/mathlib | 90a0fa2222369fa69ed2fbfb841b74d2bdfd66cb | 3669cb35c578441812ad30fd967d21a94b6f387e | refs/heads/master | 1,675,863,801,090 | 1,609,761,876,000 | 1,609,761,876,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 3,796 | lean | /-
Copyright (c) 2020 Fox Thomson. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Fox Thomson
-/
import data.fintype.basic
import computability.DFA
/-!
# Nondeterministic Finite Automata
This file contains the definition of a Nondeterministic Finite Automaton (NFA), ... |
9f6c2bc5efb817eb1fcf446d94bc61e74a5e2f0c | 8cae430f0a71442d02dbb1cbb14073b31048e4b0 | /src/algebra/hom/embedding.lean | 77d654ca6187992e9f48d280c91dcb15ae0a2660 | [
"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 | 1,488 | 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.group.defs
import logic.embedding.basic
/-!
# The embedding of a cancellative semigroup into itself by multiplication by a fixed element.
> THIS FILE I... |
881ad1de70981acbc55a19da23bc463721191266 | f02b05b665ad2d2cd970e93758a98d57f310a822 | /src/tactic/tcache/serial.lean | a0610bf103f8e0608b806e737cb5b7a3db94afe9 | [] | no_license | khoek/leancache | b0ed5d2a9a2e87f58d4ad27343d957a9cd49ce5f | 5c8329f7b647b8d82966ab180c4473b20d1f249c | refs/heads/master | 1,585,344,140,717 | 1,549,094,327,000 | 1,549,094,327,000 | 147,138,187 | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 6,582 | lean | import data.option.defs
import .common
universe u
open string
def string.iterator.continue (i : iterator) : char × iterator :=
let c := i.curr in (c, i.next)
namespace name
meta def serialise (n : name) : string := sformat!"{n}`"
meta def deserialise_core_aux : iterator → string → name → name × iterator
| i s p :... |
83ce7851b41ad30a354b4bb10647fd28afebd6ce | ba4794a0deca1d2aaa68914cd285d77880907b5c | /src/game/world2/level6.lean | abf704a8408006f781094c4d8551742b13871d07 | [
"Apache-2.0"
] | permissive | ChrisHughes24/natural_number_game | c7c00aa1f6a95004286fd456ed13cf6e113159ce | 9d09925424da9f6275e6cfe427c8bcf12bb0944f | refs/heads/master | 1,600,715,773,528 | 1,573,910,462,000 | 1,573,910,462,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 4,931 | lean | import mynat.definition -- hide
import mynat.add -- hide
import game.world2.level5 -- hide
import tactic.ring -- hide
namespace mynat -- hide
/-
# Addition World
## Level 6: `add_right_comm`
Lean sometimes writes `a + b + c`. What does it mean? The convention is
that if there are no brackets displayed in an addit... |
e5ffe893375cbe341a8f85191acc4f7d65c309c4 | a45212b1526d532e6e83c44ddca6a05795113ddc | /src/data/set/function.lean | 7842479cc8f4ab3964373b6876a4fff7446ac632 | [
"Apache-2.0"
] | permissive | fpvandoorn/mathlib | b21ab4068db079cbb8590b58fda9cc4bc1f35df4 | b3433a51ea8bc07c4159c1073838fc0ee9b8f227 | refs/heads/master | 1,624,791,089,608 | 1,556,715,231,000 | 1,556,715,231,000 | 165,722,980 | 5 | 0 | Apache-2.0 | 1,552,657,455,000 | 1,547,494,646,000 | Lean | UTF-8 | Lean | false | false | 12,080 | 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, Haitao Zhang, Minchao Wu
Functions over sets.
-/
import data.set.basic logic.function
open function
namespace set
universes u v w x
variables {α : Type ... |
a0f1e7a9f31ebd2aa123839791c4a0be30c72e45 | c777c32c8e484e195053731103c5e52af26a25d1 | /src/measure_theory/measure/haar_of_inner.lean | 0923810fae711f62900dac8c815fee02f05d1799 | [
"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 | 2,960 | lean | /-
Copyright (c) 2022 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.inner_product_space.orientation
import measure_theory.measure.haar_lebesgue
/-!
# Volume forms and measures on inner product spaces
A volume f... |
24a51c413a6a8ddaf6ffc8439cd2021c21245664 | dfbd4b284cc03e870b12af5532c592e0ad8d02f1 | /M1F/2017-18/Example_Sheet_01/Question_07/M1F_sheet01_question07.lean | 5485f26562589dbbabcf657060ebc3b93739d1fa | [] | no_license | Shamrock-Frost/xena | 7a1e27df933f9321584e6256c0319e5a1afb9a38 | 9eb0c2c23363b963a2ebb2ea5bb37cc7dd602b1a | refs/heads/master | 1,626,672,528,677 | 1,509,140,744,000 | 1,509,140,744,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 590 | lean | import analysis.real
-- real numbers live in here in Lean 3.3.0 mathlib
-- NB you need mathlib installed to get this working.
-- of_rat is the injection from the rationals to the reals.
def A : set ℝ := { x | x^2 < 3}
def B : set ℝ := {x | (∃ y : ℤ, x = of_rat y) ∧ x^2 < 3}
def C : set ℝ := {x | x^3 < 3}
theorem part... |
8f2dd08206374ff5b544d38190b7e7379c3e47c3 | 206422fb9edabf63def0ed2aa3f489150fb09ccb | /src/category_theory/limits/over.lean | 8d249e6523eb1e002d90d575a5c16c69c40aa6ee | [
"Apache-2.0"
] | permissive | hamdysalah1/mathlib | b915f86b2503feeae268de369f1b16932321f097 | 95454452f6b3569bf967d35aab8d852b1ddf8017 | refs/heads/master | 1,677,154,116,545 | 1,611,797,994,000 | 1,611,797,994,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 5,079 | lean | /-
Copyright (c) 2018 Johan Commelin. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Johan Commelin, Reid Barton, Bhavik Mehta
-/
import category_theory.over
import category_theory.limits.preserves.basic
import category_theory.limits.creates
/-!
# Limits and colimits ... |
b4b0ff4c2ebbeb418b4351b2b01fcc0dbac67d16 | cf39355caa609c0f33405126beee2739aa3cb77e | /tests/lean/run/proj_unify.lean | af8827129e35ea5fe5e25d290948de4a81b743f2 | [
"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 | 1,723 | lean | open tactic
-- Unify (prod.fst ?m) with (prod.fst (1,2))
example : true :=
by do
type ← to_expr ``(nat × nat),
m₁ ← mk_meta_var type,
t₁ ← mk_app ``prod.fst [m₁],
t₂ ← to_expr ``(prod.fst (1, 2)),
unify t₁ t₂,
constructor
-- Unify (prod.fst (?m, 2)) with (prod.fst (3, 1))
example : true :=
by do
... |
c0c154ae739f2b16dc440f223b8b77debd204198 | 367134ba5a65885e863bdc4507601606690974c1 | /src/category_theory/monoidal/natural_transformation.lean | c54a1f8f74939a2126f4d820047d76c1cdbfcb42 | [
"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 | 5,028 | lean | /-
Copyright (c) 2020 Scott Morrison. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Scott Morrison
-/
import category_theory.monoidal.functor
import category_theory.full_subcategory
/-!
# Monoidal natural transformations
Natural transformations between (lax) monoida... |
8e6cdda077c820fca9b07cbc5d7841e624b6170f | ef39146fd8dfb387869d11b95feaab74afb75032 | /lambda-calculus/src/lambda.lean | 374315eec1bdbad9482aa5372a1a34f0b93861d5 | [] | no_license | reubenrowe/lean-experiments | a8192520dccd4a311cb4e47ec34b529cfe0b1a4b | 368760f0e49b674e124f95b18d2879b10ce7ff72 | refs/heads/master | 1,598,468,214,530 | 1,575,240,218,000 | 1,575,240,218,000 | 217,110,245 | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 29,144 | lean | import data.equiv.denumerable
import tactic.split_ifs
import tactic.suggest
set_option trace.eqn_compiler.elim_match true
set_option trace.check true
set_option trace.simplify true
set_option trace.simplify.rewrite true
-- set_option trace.simp_lemmas true
-- set_option trace.class_instances true
local notation `‹` ... |
c47aa1b21c3dd6c5c5ee1d52537311220a408cb4 | f20db13587f4dd28a4b1fbd31953afd491691fa0 | /tests/lean/run/tactic_io.lean | 69f39f75b288d913d20bda564684642dfd07e520 | [
"Apache-2.0"
] | permissive | AHartNtkn/lean | 9a971edfc6857c63edcbf96bea6841b9a84cf916 | 0d83a74b26541421fc1aa33044c35b03759710ed | refs/heads/master | 1,620,592,591,236 | 1,516,749,881,000 | 1,516,749,881,000 | 118,697,288 | 1 | 0 | null | 1,516,759,470,000 | 1,516,759,470,000 | null | UTF-8 | Lean | false | false | 223 | lean | import system.io
section
def tst_io : io string :=
do b ← io.fs.read_file "tactic_io.lean",
return b^.to_string
end
open tactic
meta def tac : tactic unit :=
do s ← tactic.run_io @tst_io,
trace s
run_cmd tac
|
cd79d6a1490f10369b5874d53d6c117f6abb2556 | 1437b3495ef9020d5413178aa33c0a625f15f15f | /linear_algebra/direct_sum_module.lean | 92d9ac98a23f9e7603c405ad831e9cecdaa79e34 | [
"Apache-2.0"
] | permissive | jean002/mathlib | c66bbb2d9fdc9c03ae07f869acac7ddbfce67a30 | dc6c38a765799c99c4d9c8d5207d9e6c9e0e2cfd | refs/heads/master | 1,587,027,806,375 | 1,547,306,358,000 | 1,547,306,358,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 5,705 | lean | /-
Copyright (c) 2018 Kenny Lau. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Kenny Lau
Direct sum of modules over commutative rings, indexed by a discrete type.
-/
import linear_algebra.basic
import algebra.pi_instances
import data.dfinsupp
universes u v w u₁
va... |
824c90be6c27c9184a84ca95e3c7dd34152f86b2 | 69d4931b605e11ca61881fc4f66db50a0a875e39 | /src/data/mv_polynomial/equiv.lean | ec8af1584f272f5956f332cd429a90df1e0b0ca1 | [
"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 | 13,096 | 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, Johan Commelin, Mario Carneiro
-/
import data.mv_polynomial.rename
import data.equiv.fin
import data.polynomial.algebra_map
/-!
# Equivalences between polynomial ring... |
78c1705bf5cabccedf1a5173666b2c50d3c39fe6 | 4d2583807a5ac6caaffd3d7a5f646d61ca85d532 | /src/linear_algebra/quadratic_form/real.lean | c305f4602b3dc76ebf4b9a4d67d00abcef77fe4a | [
"Apache-2.0"
] | permissive | AntoineChambert-Loir/mathlib | 64aabb896129885f12296a799818061bc90da1ff | 07be904260ab6e36a5769680b6012f03a4727134 | refs/heads/master | 1,693,187,631,771 | 1,636,719,886,000 | 1,636,719,886,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 4,361 | lean | /-
Copyright (c) 2020 Anne Baanen. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Anne Baanen, Kexing Ying, Eric Wieser
-/
import linear_algebra.quadratic_form.basic
import analysis.special_functions.pow
import data.real.sign
/-!
# Real quadratic forms
Sylvester's la... |
cdd9537de2371a48340b2afa5696be834ac8fd37 | 22e97a5d648fc451e25a06c668dc03ac7ed7bc25 | /src/topology/algebra/uniform_group.lean | 90bb6d93c07a97e3e661ced3f692994606ab03ca | [
"Apache-2.0"
] | permissive | keeferrowan/mathlib | f2818da875dbc7780830d09bd4c526b0764a4e50 | aad2dfc40e8e6a7e258287a7c1580318e865817e | refs/heads/master | 1,661,736,426,952 | 1,590,438,032,000 | 1,590,438,032,000 | 266,892,663 | 0 | 0 | Apache-2.0 | 1,590,445,835,000 | 1,590,445,835,000 | null | UTF-8 | Lean | false | false | 19,595 | lean | /-
Copyright (c) 2018 Patrick Massot. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Patrick Massot, Johannes Hölzl
Uniform structure on topological groups:
* `topological_add_group.to_uniform_space` and `topological_add_group_is_uniform` can be used to
construct a... |
c57608fdd36821cafd97ad14ac6cde7ac596014b | 9c1ad797ec8a5eddb37d34806c543602d9a6bf70 | /universal/types.lean | d516f5ecd5cc5052e5f78d800d6e2bd97bb3ae09 | [] | no_license | timjb/lean-category-theory | 816eefc3a0582c22c05f4ee1c57ed04e57c0982f | 12916cce261d08bb8740bc85e0175b75fb2a60f4 | refs/heads/master | 1,611,078,926,765 | 1,492,080,000,000 | 1,492,080,000,000 | 88,348,246 | 0 | 0 | null | 1,492,262,499,000 | 1,492,262,498,000 | null | UTF-8 | Lean | false | false | 2,273 | lean | import ..examples.types.types
import .universal
open tqft.categories.universal
open tqft.categories.isomorphism
open tqft.categories.examples.types
definition {u} Types_has_FiniteCoproducts : has_FiniteCoproducts CategoryOfTypes.{u} :=
{
initial_object := {
object := ulift empty,
morphisms := λ t, λ x, matc... |
4410c62ba7a3be712d1d7c6445794e1c3772a94c | 82b86ba2ae0d5aed0f01f49c46db5afec0eb2bd7 | /tests/lean/run/catchThe.lean | f4ce6cdddcc9354332d8e250a1aeca103741daaf | [
"Apache-2.0"
] | permissive | banksonian/lean4 | 3a2e6b0f1eb63aa56ff95b8d07b2f851072d54dc | 78da6b3aa2840693eea354a41e89fc5b212a5011 | refs/heads/master | 1,673,703,624,165 | 1,605,123,551,000 | 1,605,123,551,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 822 | lean | import Lean.Meta
open Lean
open Lean.Meta
universes u v w
abbrev M := ExceptT String $ MetaM
def testM {α} [BEq α] [ToString α] (x : M α) (expected : α) : MetaM Unit := do
let r ← x;
match r with
| Except.ok a => unless a == expected do throwError msg!"unexpected result {a}"
| Except.error e => throwError msg!"... |
675b97661f00a3fe6e146fc40d49d2c03ab4b071 | 8cae430f0a71442d02dbb1cbb14073b31048e4b0 | /src/category_theory/monoidal/of_chosen_finite_products/symmetric.lean | a7e27822045b56f22c81a9652fbca67c8d9493f7 | [
"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,264 | lean | /-
Copyright (c) 2019 Scott Morrison. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Scott Morrison, Simon Hudon
-/
import category_theory.monoidal.braided
import category_theory.monoidal.of_chosen_finite_products.basic
/-!
# The symmetric monoidal structure on a cate... |
9635d27970d249ce3785dc4aabaad9e118ec766a | fa02ed5a3c9c0adee3c26887a16855e7841c668b | /src/tactic/fix_reflect_string.lean | 45039bb0bd7392560b49710a52606f607245d956 | [
"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,546 | lean | /-
Copyright (c) 2020 Gabriel Ebner. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Gabriel Ebner
-/
/-!
# Workaround for stack overflows with `has_reflect string`
The default `has_reflect string` instance in Lean only work for strings up to
few thousand characters.... |
9b2fd8de36ddeccf247517ccc8bfeb3107175a9f | dd0f5513e11c52db157d2fcc8456d9401a6cd9da | /03_Propositions_and_Proofs.org.24.lean | 75fb95b3ab8e7a63bd94477a21a367998c681a63 | [] | 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 | 179 | lean | /- page 41 -/
import standard
variables p q : Prop
-- BEGIN
example (Hpq : p → q) (Hnq : ¬q) : ¬p :=
not.intro
(assume Hp : p,
show false, from not.elim Hnq (Hpq Hp))
-- END
|
c4663a1875572ebf16638855915f329ae638b7a1 | 6432ea7a083ff6ba21ea17af9ee47b9c371760f7 | /tests/lean/run/1017.lean | 544234472d8edf49bab9e580eee94e07ae8cb1ef | [
"Apache-2.0",
"LLVM-exception",
"NCSA",
"LGPL-3.0-only",
"LicenseRef-scancode-inner-net-2.0",
"BSD-3-Clause",
"LGPL-2.0-or-later",
"Spencer-94",
"LGPL-2.1-or-later",
"HPND",
"LicenseRef-scancode-pcre",
"ISC",
"LGPL-2.1-only",
"LicenseRef-scancode-other-permissive",
"SunPro",
"CMU-Mach"... | permissive | leanprover/lean4 | 4bdf9790294964627eb9be79f5e8f6157780b4cc | f1f9dc0f2f531af3312398999d8b8303fa5f096b | refs/heads/master | 1,693,360,665,786 | 1,693,350,868,000 | 1,693,350,868,000 | 129,571,436 | 2,827 | 311 | Apache-2.0 | 1,694,716,156,000 | 1,523,760,560,000 | Lean | UTF-8 | Lean | false | false | 1,442 | lean | namespace Stream
variable [Stream ρ τ] (s : ρ)
def take (s : ρ) : Nat → List τ × ρ
| 0 => ([], s)
| n+1 =>
match next? s with
| none => ([], s)
| some (x,rest) =>
let (L,rest) := take rest n
(x::L, rest)
def isEmpty : Bool :=
Option.isNone (next? s)
def lengthBoundedBy (n : Nat) : Prop :=
isEmpty ... |
0e22b3f2e4b14d7a74cac810092c2ba81dff8f84 | 80cc5bf14c8ea85ff340d1d747a127dcadeb966f | /src/data/nat/prime.lean | 2103d54b470bf64d69bd3d8e9b48f6cb883f5efc | [
"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 | 23,247 | lean | /-
Copyright (c) 2015 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Leonardo de Moura, Jeremy Avigad, Mario Carneiro
-/
import data.nat.sqrt
import data.nat.gcd
import algebra.group_power
import tactic.wlog
/-!
# Prime numbers
This file deals... |
7faa799923711260f5e2c2501af9f2285dfc0f89 | 0851884047bb567d19e188e8f1ad959c5ae9c5ce | /src/M1P2/sheet-5.lean | 1b9a8fb14499ec0a29b8a08f2664097b2d726720 | [
"Apache-2.0"
] | permissive | yz5216/xena-UROP-2018 | 00d3f71a831324966d40d302544ed2cbbec3fd0f | 5e9da9dc64dc51897677f8b73ab9f94061a8d977 | refs/heads/master | 1,584,922,436,989 | 1,531,487,250,000 | 1,531,487,250,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 923 | lean | import group_theory.subgroup data.set.basic algebra.group data.equiv
-- sheet 5
variables {G : Type*} [group G]
variables (H K : set G)
variables [is_subgroup H] [is_subgroup K]
-- 3. Let G be a group with subgroups H and K.
-- (a) Prove that H ∩ K is a subgroup of G.
theorem sheet05_q3a: is_subgroup(H ∩ K) := sorry... |
aded5b9dd1b6a5770a896007614d9db6ae31a040 | d406927ab5617694ec9ea7001f101b7c9e3d9702 | /src/data/rat/cast.lean | eba360aac6d30ccfa032a4af06528e0f47fae4c7 | [
"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 | 14,772 | lean | /-
Copyright (c) 2019 Johannes Hölzl. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Johannes Hölzl, Mario Carneiro
-/
import data.rat.order
import data.rat.lemmas
import data.int.char_zero
import algebra.group_with_zero.power
import algebra.field.opposite
import algeb... |
6d0c37932bc7413af14e3a263e9155bb2d3c245d | cf39355caa609c0f33405126beee2739aa3cb77e | /tests/lean/run/meta_env1.lean | bb10a1abaca9b60aa26c1d4a0393122e30ee0780 | [
"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 | 2,050 | lean | open list
meta definition e := environment.mk_std 0
definition hints := reducibility_hints.regular 10 tt
#eval environment.trust_lvl e
#eval (environment.add e (declaration.defn `foo []
(expr.sort (level.succ (level.zero)))
(e... |
38d35607b5c10528667087d4d4d76d8446c83d4b | 2a70b774d16dbdf5a533432ee0ebab6838df0948 | /_target/deps/mathlib/src/geometry/euclidean/monge_point.lean | bc1d26ccda66914038c065d690a41e3a5fe3c760 | [
"Apache-2.0"
] | permissive | hjvromen/lewis | 40b035973df7c77ebf927afab7878c76d05ff758 | 105b675f73630f028ad5d890897a51b3c1146fb0 | refs/heads/master | 1,677,944,636,343 | 1,676,555,301,000 | 1,676,555,301,000 | 327,553,599 | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 38,563 | lean | /-
Copyright (c) 2020 Joseph Myers. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Author: Joseph Myers.
-/
import geometry.euclidean.circumcenter
noncomputable theory
open_locale big_operators
open_locale classical
open_locale real
open_locale real_inner_product_space
/-!
# ... |
a868d0aa43864ed369ee94c31f98c3d955a0f59d | e9dbaaae490bc072444e3021634bf73664003760 | /src/Background/Set.lean | d5f53db2aeb3c99c340884a1be99e938b156ef6b | [
"Apache-2.0"
] | permissive | liaofei1128/geometry | 566d8bfe095ce0c0113d36df90635306c60e975b | 3dd128e4eec8008764bb94e18b932f9ffd66e6b3 | refs/heads/master | 1,678,996,510,399 | 1,581,454,543,000 | 1,583,337,839,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 336 | lean | import Geo.Background.Real
def Set (X : Type) : Type := X → Prop
--def Set.mem {X : Type} (x : X) (s : Set X) : Prop := s x
--def Set.nonEmpty {X : Type} (s : Set X) : Prop := Exists (λ x => s.mem x)
axiom Set.finiteCard {X : Type} : Set X → Option Nat
axiom Set.min {X : Type} (s : Set X) (H : Exists s) (opt : X → ℝ≥)... |
e060d5e15fd359ce62e1aa320b72b75e43da10d9 | 57c233acf9386e610d99ed20ef139c5f97504ba3 | /src/data/matrix/hadamard.lean | 6361991da570f7e412d2243a75e1ad9fcc309636 | [
"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,401 | lean | /-
Copyright (c) 2021 Lu-Ming Zhang. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Lu-Ming Zhang
-/
import linear_algebra.matrix.trace
/-!
# Hadamard product of matrices
This file defines the Hadamard product `matrix.hadamard`
and contains basic properties about the... |
1bede9265e818995c975fca4c7323c7a7dd04c52 | 94e33a31faa76775069b071adea97e86e218a8ee | /src/number_theory/padics/hensel.lean | f0d7e079859284c9a54f068f8ffffd12168e8e76 | [
"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 | 20,529 | lean | /-
Copyright (c) 2018 Robert Y. Lewis. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Robert Y. Lewis
-/
import analysis.specific_limits.basic
import data.polynomial.identities
import number_theory.padics.padic_integers
import topology.algebra.polynomial
import topolog... |
c44e6f0dc377da8a05d2678adc74457008e48b97 | 8cae430f0a71442d02dbb1cbb14073b31048e4b0 | /src/measure_theory/category/Meas.lean | bfbecf24eff6500ab7160763523617820df78cfd | [
"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,529 | lean | /-
Copyright (c) 2018 Johannes Hölzl. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Johannes Hölzl
-/
import measure_theory.measure.giry_monad
import category_theory.concrete_category.unbundled_hom
import category_theory.monad.algebra
import topology.category.Top.basi... |
427b47525639f3af2d481a2d87f3683c42195063 | 57c233acf9386e610d99ed20ef139c5f97504ba3 | /src/tactic/alias.lean | f4df7817a84150e5a631f1fbd06433ce1081b8ba | [
"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 | 5,518 | lean | /-
Copyright (c) 2017 Mario Carneiro. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Mario Carneiro
-/
import data.buffer.parser
import tactic.core
/-!
# The `alias` command
This file defines an `alias` command, which can be used to create copies
of a theorem or defi... |
fbd3e421c5f53b25107a77083b86e7b901ab3421 | 6432ea7a083ff6ba21ea17af9ee47b9c371760f7 | /src/Lean/Elab/Open.lean | d47bdb33e6fe1015876a9df195dc7902332842f9 | [
"Apache-2.0",
"LLVM-exception",
"NCSA",
"LGPL-3.0-only",
"LicenseRef-scancode-inner-net-2.0",
"BSD-3-Clause",
"LGPL-2.0-or-later",
"Spencer-94",
"LGPL-2.1-or-later",
"HPND",
"LicenseRef-scancode-pcre",
"ISC",
"LGPL-2.1-only",
"LicenseRef-scancode-other-permissive",
"SunPro",
"CMU-Mach"... | permissive | leanprover/lean4 | 4bdf9790294964627eb9be79f5e8f6157780b4cc | f1f9dc0f2f531af3312398999d8b8303fa5f096b | refs/heads/master | 1,693,360,665,786 | 1,693,350,868,000 | 1,693,350,868,000 | 129,571,436 | 2,827 | 311 | Apache-2.0 | 1,694,716,156,000 | 1,523,760,560,000 | Lean | UTF-8 | Lean | false | false | 3,601 | lean | /-
Copyright (c) 2021 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Leonardo de Moura
-/
import Lean.Log
import Lean.Elab.Util
namespace Lean.Elab
namespace OpenDecl
variable [Monad m] [STWorld IO.RealWorld m] [MonadEnv m]
variable [MonadExcep... |
c5fad8a0130a1003c21620bfcf23eeb168cc6f14 | acc85b4be2c618b11fc7cb3005521ae6858a8d07 | /algebra/ordered_ring.lean | 863730af2388c18bbcc41a3272b0a696acd8734d | [
"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 | 7,409 | lean | /-
Copyright (c) 2017 Mario Carneiro. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Mario Carneiro
-/
import order algebra.order algebra.ordered_group algebra.ring
universe u
variable {α : Type u}
section linear_ordered_semiring
variable [linear_ordered_semiring α]
... |
63ca032cda710388d22909ae9b1cabd996610bb8 | 969dbdfed67fda40a6f5a2b4f8c4a3c7dc01e0fb | /src/geometry/euclidean/triangle.lean | de8982f92d3533737de4087418e07c685863311c | [
"Apache-2.0"
] | permissive | SAAluthwela/mathlib | 62044349d72dd63983a8500214736aa7779634d3 | 83a4b8b990907291421de54a78988c024dc8a552 | refs/heads/master | 1,679,433,873,417 | 1,615,998,031,000 | 1,615,998,031,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 17,005 | lean | /-
Copyright (c) 2020 Joseph Myers. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Author: Joseph Myers.
-/
import geometry.euclidean.basic
import tactic.interval_cases
noncomputable theory
open_locale big_operators
open_locale classical
open_locale real
open_locale real_inner... |
fd7b1d6b4a158bc5b424fda5088503fc96644211 | 367134ba5a65885e863bdc4507601606690974c1 | /archive/arithcc.lean | 95cca2a4f964f0007ade145b1b4253a6fe4abad6 | [
"Apache-2.0"
] | permissive | kodyvajjha/mathlib | 9bead00e90f68269a313f45f5561766cfd8d5cad | b98af5dd79e13a38d84438b850a2e8858ec21284 | refs/heads/master | 1,624,350,366,310 | 1,615,563,062,000 | 1,615,563,062,000 | 162,666,963 | 0 | 0 | Apache-2.0 | 1,545,367,651,000 | 1,545,367,651,000 | null | UTF-8 | Lean | false | false | 12,198 | lean | /-
Copyright (c) 2020 Xi Wang. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Author: Xi Wang.
-/
import tactic.basic
/-!
# A compiler for arithmetic expressions
A formalization of the correctness of a compiler from arithmetic expressions to machine language
described by McC... |
dd14b3103817fb45e03a71810c6650619d3d78aa | d406927ab5617694ec9ea7001f101b7c9e3d9702 | /src/topology/sheaves/sheaf_condition/pairwise_intersections.lean | 56368c81bbc3fe68eed663fe9505559d582d87b7 | [
"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 | 16,919 | 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 topology.sheaves.sheaf_condition.opens_le_cover
import category_theory.limits.final
import category_theory.limits.preserves.basic
import category_theory.categ... |
2c0d5afb874d516f5f4d839292ccfe7e0dc084a9 | 4727251e0cd73359b15b664c3170e5d754078599 | /src/measure_theory/covering/differentiation.lean | 85b3575e833fcf2338184700b5a72e3b55d35798 | [
"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 | 42,155 | 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 measure_theory.covering.vitali_family
import measure_theory.measure.regular
import measure_theory.function.ae_measurable_order
import measure_theory.inte... |
22b4bc6ce9ecfb2518c8c2ae5d361a38e2f66b3b | 8cae430f0a71442d02dbb1cbb14073b31048e4b0 | /src/algebra/order/zero_le_one.lean | 08714be379a77eb8dd6530b319ad8ec80e9c6371 | [
"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 | 1,417 | 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 order.basic
import algebra.ne_zero
/-!
# Typeclass expressing `0 ≤ 1`.
> THIS FILE IS SYNCHRONIZED WITH MATH... |
3b1d05e1bc7b05db2e860742c4c067ddac0ebfcc | 4efff1f47634ff19e2f786deadd394270a59ecd2 | /src/ring_theory/power_series.lean | 0fe9141783144f6fd51a01c63889b33f051f977c | [
"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 | 57,559 | lean | /-
Copyright (c) 2019 Johan Commelin. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Johan Commelin, Kenny Lau
-/
import data.mv_polynomial
import ring_theory.ideal.operations
import ring_theory.multiplicity
import tactic.linarith
/-!
# Formal power series
This file ... |
1589b7fe65e229c74bd3b22e4f0582647d64196f | cf39355caa609c0f33405126beee2739aa3cb77e | /tests/lean/run/struc_names.lean | 9e35e71d5f317885752efb5c218b8d56f57c5077 | [
"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 | 165 | lean | namespace foo
class structA :=
mk :: (a : nat)
class structB extends structA :=
mk :: (b : nat)
#check @structA.a
#check @structB.to_structA
end foo
|
778e429e57e7cd38b155644a3e6615f366567516 | 74addaa0e41490cbaf2abd313a764c96df57b05d | /Mathlib/data/equiv/mul_add_aut.lean | f35e57d7be3032ef62ad0b3b74664919a897179d | [] | 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,447 | lean | /-
Copyright (c) 2018 Johannes Hölzl. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Johannes Hölzl, Callum Sutton, Yury Kudryashov
-/
import Mathlib.PrePort
import Mathlib.Lean3Lib.init.default
import Mathlib.data.equiv.mul_add
import Mathlib.group_theory.perm.basic
i... |
d6d9016a45032f1582b4a4480dd4d99774bd1410 | ec5a7ae10c533e1b1f4b0bc7713e91ecf829a3eb | /ijcar16/examples/cc26.lean | 1c8817172fc82f6acb7d412eff71d69071d42f80 | [
"MIT"
] | permissive | leanprover/leanprover.github.io | cf248934af7c7e9aeff17cf8df3c12c5e7e73f1a | 071a20d2e059a2c3733e004c681d3949cac3c07a | refs/heads/master | 1,692,621,047,417 | 1,691,396,994,000 | 1,691,396,994,000 | 19,366,263 | 18 | 27 | MIT | 1,693,989,071,000 | 1,399,006,345,000 | Lean | UTF-8 | Lean | false | false | 837 | lean | /-
Example/test file for the congruence closure procedure described in the paper:
"Congruence Closure for Intensional Type Theory"
Daniel Selsam and Leonardo de Moura
The tactic `by blast` has been configured in this file to use just
the congruence closure procedure using the command
set_option blast.strategy... |
e0a6da1542eb81954fe36ed178bc24b9af5f4519 | dd0f5513e11c52db157d2fcc8456d9401a6cd9da | /02_Dependent_Type_Theory.org.24.lean | d0c2f7a30ea73b79116b3b4f607160ccb0a8610d | [] | 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 | 267 | lean | /- page 22 -/
import standard
variables (A B C : Type)
variables (g : B → C) (f : A → B) (h : A → A)
variable x : A
definition compose := g (f x)
definition do_twice := h (h x)
definition do_thrice := h (h (h x))
print compose
print do_twice
print do_thrice
|
cb5de4578569122e4037d02cc0226f022cd9374c | 737dc4b96c97368cb66b925eeea3ab633ec3d702 | /src/Lean/Elab/Tactic/Rewrite.lean | 293f771a6517303661d7de900164c57a12aacb86 | [
"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 | 3,437 | 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.Rewrite
import Lean.Meta.Tactic.Replace
import Lean.Elab.Tactic.Basic
import Lean.Elab.Tactic.ElabTerm
import Lean.Elab.Tactic.Locat... |
8b838060c3618331e98b7560abf3b1e0de499415 | 48f4f349e1bb919d14ab7e5921d0cfe825f4c423 | /folklore/real_axiom.lean | 9f7a2b4ac08b2a2c2717bd16c970f85430a1cf4d | [] | no_license | thalesant/formalabstracts-2017 | fdf4ff90d30ab1dcb6d4cf16a068a997ea5ecc80 | c47181342c9e41954aa8d41f5049965b5f332bca | refs/heads/master | 1,584,610,453,925 | 1,528,277,508,000 | 1,528,277,508,000 | 136,299,625 | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 5,642 | lean | /-
axiomatic development of the complete ordered field
of real numbers in classical logic.
At some point this should be replaced with an actual
construction.
T.Hales, July 15, 2017
-/
import meta_data data.list
noncomputable theory
namespace real_axiom
open classical nat int list
local attribute [instance] prop_d... |
cedc1c276a7f0aa98fc235e0766654a58f3fa8d1 | 367134ba5a65885e863bdc4507601606690974c1 | /src/algebra/monoid_algebra.lean | fa2258f0064e68bfdb9f918a07e2f7df24913ef1 | [
"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 | 40,971 | 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, Yury G. Kudryashov, Scott Morrison
-/
import algebra.algebra.basic
import linear_algebra.finsupp
/-!
# Monoid algebras
When the domain of a `finsupp` has a multiplica... |
cd0719cbd4abd2eb6d44e59c499fcd5377587fa6 | 6b45072eb2b3db3ecaace2a7a0241ce81f815787 | /data/list/basic.lean | 76d49fc1afc9d18992d7910f8bb6ec9362fcc0b3 | [] | no_license | avigad/library_dev | 27b47257382667b5eb7e6476c4f5b0d685dd3ddc | 9d8ac7c7798ca550874e90fed585caad030bbfac | refs/heads/master | 1,610,452,468,791 | 1,500,712,839,000 | 1,500,713,478,000 | 69,311,142 | 1 | 0 | null | 1,474,942,903,000 | 1,474,942,902,000 | null | UTF-8 | Lean | false | false | 12,582 | 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
Basic properties of lists.
-/
import logic.basic ..nat.basic
open function nat
namespace list
universe variable... |
63938b66c85a4fe32a53150abd03d8debc9ff6af | 74addaa0e41490cbaf2abd313a764c96df57b05d | /Mathlib/order/order_dual.lean | 1fe8ad80c112fdd9ca2929c4413a114b0520fc66 | [] | 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,924 | lean | /-
Copyright (c) 2020 Johan Commelin, Damiano Testa. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Johan Commelin, Damiano Testa
-/
import Mathlib.PrePort
import Mathlib.Lean3Lib.init.default
import Mathlib.order.basic
import Mathlib.data.equiv.basic
import Mathlib.Po... |
361d2704f73b246ba6e7d5bc7bc1f080ec8d02c2 | cf39355caa609c0f33405126beee2739aa3cb77e | /tests/lean/run/simp_eta.lean | 738376f7fefb91262436c24001ce2d445e5ce2fc | [
"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 | 231 | lean | example (f g : nat → nat) (h : f = g) : (λ x, f x) = g :=
begin
simp,
guard_target f = g,
exact h
end
example (f g : nat → nat) (h : f = g) : (λ x, f x) = g :=
begin
fail_if_success {simp {eta := ff}},
exact h
end
|
e199e34232bbe55e45a76ddbdc92947b19aa08ae | 6432ea7a083ff6ba21ea17af9ee47b9c371760f7 | /tests/lean/309.lean | 25731caf505435b742a5a969980bd164b7682e02 | [
"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 | 75 | lean | example : False := _
example : True := trivial
example : True := trivial
|
b0745590568c83d083088d53e1622e07f21b74b5 | b70031c8e2c5337b91d7e70f1e0c5f528f7b0e77 | /src/logic/relation.lean | 3865bd5c73b22adde0dbfe4239ac5f4e4ba5fb68 | [
"Apache-2.0"
] | permissive | molodiuc/mathlib | cae2ba3ef1601c1f42ca0b625c79b061b63fef5b | 98ebe5a6739fbe254f9ee9d401882d4388f91035 | refs/heads/master | 1,674,237,127,059 | 1,606,353,533,000 | 1,606,353,533,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 13,888 | lean | /-
Copyright (c) 2018 Johannes Hölzl. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Johannes Hölzl
Transitive reflexive as well as reflexive closure of relations.
-/
import tactic.basic
variables {α : Type*} {β : Type*} {γ : Type*} {δ : Type*}
namespace relation
s... |
2220a3a019f88d3c7d1c079666c95b733a5eb5f3 | 82b86ba2ae0d5aed0f01f49c46db5afec0eb2bd7 | /src/Init/Control/Except.lean | 8a7a5f84313e832fe1c7d83698c41bba96774c10 | [
"Apache-2.0"
] | permissive | banksonian/lean4 | 3a2e6b0f1eb63aa56ff95b8d07b2f851072d54dc | 78da6b3aa2840693eea354a41e89fc5b212a5011 | refs/heads/master | 1,673,703,624,165 | 1,605,123,551,000 | 1,605,123,551,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 6,680 | lean | /-
Copyright (c) 2017 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Jared Roesch, Sebastian Ullrich
The Except monad transformer.
-/
prelude
import Init.Data.ToString.Basic
import Init.Control.Basic
import Init.Control.Id
universes u v w u'
s... |
525318829903c1417d120d7cd5b8898961702a64 | a45212b1526d532e6e83c44ddca6a05795113ddc | /test/linarith.lean | 90fe8775ae0f6a3045cbfff1936bd3a29ffe7bb1 | [
"Apache-2.0"
] | permissive | fpvandoorn/mathlib | b21ab4068db079cbb8590b58fda9cc4bc1f35df4 | b3433a51ea8bc07c4159c1073838fc0ee9b8f227 | refs/heads/master | 1,624,791,089,608 | 1,556,715,231,000 | 1,556,715,231,000 | 165,722,980 | 5 | 0 | Apache-2.0 | 1,552,657,455,000 | 1,547,494,646,000 | Lean | UTF-8 | Lean | false | false | 3,924 | lean | import tactic.linarith
example (e b c a v0 v1 : ℚ) (h1 : v0 = 5*a) (h2 : v1 = 3*b) (h3 : v0 + v1 + c = 10) :
v0 + 5 + (v1 - 3) + (c - 2) = 10 :=
by linarith
example (ε : ℚ) (h1 : ε > 0) : ε / 2 + ε / 3 + ε / 7 < ε :=
by linarith
example (x y z : ℚ) (h1 : 2*x < 3*y) (h2 : -4*x + z/2 < 0)
(h3 : 12*y - z < ... |
8bdbb6c10f95070e12466ebacc99549c5c073349 | fc086f79b20cf002d6f34b023749998408e94fbf | /src/tidy/if_then_else.lean | 22e7e5220a95a0cc7cfe531031a5a0c4c91b8464 | [] | no_license | semorrison/lean-tidy | f039460136b898fb282f75efedd92f2d5c5d90f8 | 6c1d46de6cff05e1c2c4c9692af812bca3e13b6c | refs/heads/master | 1,624,461,332,392 | 1,559,655,744,000 | 1,559,655,744,000 | 96,569,994 | 9 | 4 | null | 1,538,287,895,000 | 1,499,455,306,000 | Lean | UTF-8 | Lean | false | false | 614 | lean | -- Copyright (c) 2017 Scott Morrison. All rights reserved.
-- Released under Apache 2.0 license as described in the file LICENSE.
-- Authors: Scott Morrison
open tactic
def if_then_else { α β : Type } { m : Type → Type } [monad m] [has_orelse m] ( i : m α ) ( t e : m β ) : m β :=
do r ← (i >> pure tt) <|> pure ff,
... |
6e6a4ba1b8375d76c35de96b1e3a9aa631e5c744 | d1bbf1801b3dcb214451d48214589f511061da63 | /src/field_theory/primitive_element.lean | 0a3e3ac9ad47cd740c29e7de5e68e722099c5cc7 | [
"Apache-2.0"
] | permissive | cheraghchi/mathlib | 5c366f8c4f8e66973b60c37881889da8390cab86 | f29d1c3038422168fbbdb2526abf7c0ff13e86db | refs/heads/master | 1,676,577,831,283 | 1,610,894,638,000 | 1,610,894,638,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 7,792 | lean | /-
Copyright (c) 2020 Thomas Browning and Patrick Lutz. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Thomas Browning and Patrick Lutz
-/
import field_theory.adjoin
import field_theory.separable
/-!
# Primitive Element Theorem
In this file we prove the primitive el... |
f270cba7175981b4af493d5ac7e7a6942d9668f6 | 74addaa0e41490cbaf2abd313a764c96df57b05d | /Mathlib/algebraic_geometry/stalks_auto.lean | db68c8475faca6f38365ffbf50e3356776fbaa16 | [] | 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,535 | lean | /-
Copyright (c) 2019 Scott Morrison. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Scott Morrison
-/
import Mathlib.PrePort
import Mathlib.Lean3Lib.init.default
import Mathlib.algebraic_geometry.presheafed_space
import Mathlib.topology.sheaves.stalks
import Mathlib.P... |
14f873ecb73d8607420258952da49712822de6a0 | dc253be9829b840f15d96d986e0c13520b085033 | /pointed_cubes.hlean | 6735771463d8a70ace45818156323307f6b4a187 | [
"Apache-2.0"
] | permissive | cmu-phil/Spectral | 4ce68e5c1ef2a812ffda5260e9f09f41b85ae0ea | 3b078f5f1de251637decf04bd3fc8aa01930a6b3 | refs/heads/master | 1,685,119,195,535 | 1,684,169,772,000 | 1,684,169,772,000 | 46,450,197 | 42 | 13 | null | 1,505,516,767,000 | 1,447,883,921,000 | Lean | UTF-8 | Lean | false | false | 7,873 | hlean | /-
Copyright (c) 2017 Egbert Rijke. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Egbert Rijke
-/
/-
The goal of this file is to extend the library of pointed types and pointed maps to support the library of prespectra
-/
import types.pointed2 .pointed_pi
open eq... |
6694176bc9bd0fd1508cff623cac9003e248594e | 6432ea7a083ff6ba21ea17af9ee47b9c371760f7 | /tests/lean/unexpandersNamespaces.lean | 14e23a23aaef3b3b0c3ccfb5f4fef9b71b796560 | [
"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 | 229 | lean | namespace Foo
abbrev List (α : Type u) : Type := Unit
def List.nil {α : Type u} : List α := ()
def List.cons {α : Type u} (x : α) (xs : List α) : List α := ()
#check @List.nil Unit
#check @_root_.List.nil Unit
end Foo
|
cc2ff1241fe8f3c65c0787f8e4d44341a4c929a1 | 9a0b1b3a653ea926b03d1495fef64da1d14b3174 | /tidy/rewrite_search/metric/default.lean | 87403b5ff80754ca0ee84a376f9c5cda196dfb18 | [
"Apache-2.0"
] | permissive | khoek/mathlib-tidy | 8623b27b4e04e7d598164e7eaf248610d58f768b | 866afa6ab597c47f1b72e8fe2b82b97fff5b980f | refs/heads/master | 1,585,598,975,772 | 1,538,659,544,000 | 1,538,659,544,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 88 | lean | import .edit_distance
import .edit_distance_cm
import .edit_distance_svm
import .trivial |
3fa0bcb249b2876e72d1ef9cd4a777f319e4e72d | 3d2a7f1582fe5bae4d0bdc2fe86e997521239a65 | /spatial-reasoning/spatial-reasoning-problem-11.lean | db844fec75c1c72f0870bd1bf809de65db1ba644 | [] | no_license | own-pt/common-sense-lean | e4fa643ae010459de3d1bf673be7cbc7062563c9 | f672210aecb4172f5bae265e43e6867397e13b1c | refs/heads/master | 1,622,065,660,261 | 1,589,487,533,000 | 1,589,487,533,000 | 254,167,782 | 3 | 2 | null | 1,589,487,535,000 | 1,586,370,214,000 | Lean | UTF-8 | Lean | false | false | 168 | lean | /- Spatial Reasoning Problem 11 -/
/- It can be found at: SpatialQs.txt -/
/- (11) John is carrying a box.
There is a book on the box.
What is John carrying? -/
|
0a0fd6d1788fdadb309ae9f3d150e0c9695b14f2 | cf39355caa609c0f33405126beee2739aa3cb77e | /tests/lean/1292.lean | 7ef0bf342c625a12a2879c2b54e3662083c95413 | [
"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 | 111 | lean | def fn (n : nat) : nat :=
match n with
#exit
theorem thm : true := begin end
example : has_add nat := sorry
|
f24fd5edb7b4d2cd6a3bf28aad301eebcae32ac2 | d436468d80b739ba7e06843c4d0d2070e43448e5 | /src/algebra/continued_fractions/basic.lean | 74fe844e2e2b61d9b52ed5d831aba18253a99c27 | [
"Apache-2.0"
] | permissive | roro47/mathlib | 761fdc002aef92f77818f3fef06bf6ec6fc1a28e | 80aa7d52537571a2ca62a3fdf71c9533a09422cf | refs/heads/master | 1,599,656,410,625 | 1,573,649,488,000 | 1,573,649,488,000 | 221,452,951 | 0 | 0 | Apache-2.0 | 1,573,647,693,000 | 1,573,647,692,000 | null | UTF-8 | Lean | false | false | 12,610 | lean | /-
Copyright (c) 2019 Kevin Kappelmann. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Kevin Kappelmann
-/
import data.seq.seq
/-!
# Basic Definitions/Theorems for Continued Fractions
## Summary
We define generalised, simple, and regular continued fractions and funct... |
f66369da4478280a15cd27d82ae83fe8f5829289 | e030b0259b777fedcdf73dd966f3f1556d392178 | /library/init/algebra/ordered_ring.lean | 4061376e8a2f6b3efd0f2c20f954e67c749666b2 | [
"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,710 | lean | /-
Copyright (c) 2016 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Jeremy Avigad, Leonardo de Moura
-/
prelude
import init.algebra.ordered_group init.algebra.ring
/- Make sure instances defined in this file have lower priority than the ones
... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.