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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
4d4f5cf293ef74581bd25c5450baf734b98d240f | 367134ba5a65885e863bdc4507601606690974c1 | /src/data/nat/totient.lean | 39aa4c8bf7f9b729d251c1db610a3405e9f4f5b8 | [
"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,699 | lean | /-
Copyright (c) 2018 Chris Hughes. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Chris Hughes
-/
import algebra.big_operators.basic
open finset
open_locale big_operators
namespace nat
/-- Euler's totient function. This counts the number of positive integers less t... |
9f150b87366c8dcbaa0dc44011525b8d609ae7d8 | d1a52c3f208fa42c41df8278c3d280f075eb020c | /src/Lean/Meta/GeneralizeTelescope.lean | a023ebefc852120f48c0813f8a6097ee7ffe306e | [
"Apache-2.0",
"LLVM-exception",
"NCSA",
"LGPL-3.0-only",
"LicenseRef-scancode-inner-net-2.0",
"BSD-3-Clause",
"LGPL-2.0-or-later",
"Spencer-94",
"LGPL-2.1-or-later",
"HPND",
"LicenseRef-scancode-pcre",
"ISC",
"LGPL-2.1-only",
"LicenseRef-scancode-other-permissive",
"SunPro",
"CMU-Mach"... | permissive | cipher1024/lean4 | 6e1f98bb58e7a92b28f5364eb38a14c8d0aae393 | 69114d3b50806264ef35b57394391c3e738a9822 | refs/heads/master | 1,642,227,983,603 | 1,642,011,696,000 | 1,642,011,696,000 | 228,607,691 | 0 | 0 | Apache-2.0 | 1,576,584,269,000 | 1,576,584,268,000 | null | UTF-8 | Lean | false | false | 3,886 | 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.KAbstract
import Lean.Meta.Check
namespace Lean.Meta
namespace GeneralizeTelescope
structure Entry where
expr : Expr
type : E... |
e2b483cb84f23b11d5dee6bdb746d22c362e0553 | 4727251e0cd73359b15b664c3170e5d754078599 | /src/tactic/norm_num.lean | 66472527140b0310a8cf496e98dd5894c7c5e51c | [
"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 | 69,135 | 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
-/
import data.rat.cast
import data.rat.meta_defs
/-!
# `norm_num`
Evaluating arithmetic expressions including `*`, `+`, `-`, `^`, `≤`.
-/
universes u v w
n... |
b9ce54182fc0b5c749d86161c889d90ee364e83f | 4767244035cdd124e1ce3d0c81128f8929df6163 | /group_theory/subgroup.lean | ec5caa0969b5def003530fd5a6c46a10117836ea | [
"Apache-2.0"
] | permissive | 5HT/mathlib | b941fecacd31a9c5dd0abad58770084b8a1e56b1 | 40fa9ade2f5649569639608db5e621e5fad0cc02 | refs/heads/master | 1,586,978,681,358 | 1,546,681,764,000 | 1,546,681,764,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 19,708 | lean | /-
Copyright (c) 2018 Johannes Hölzl. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Johannes Hölzl, Mitchell Rowett, Scott Morrison, Johan Commelin, Mario Carneiro
-/
import group_theory.submonoid
open set function
variables {α : Type*} {β : Type*} {a a₁ a₂ b c: α}
... |
3ead8c737caa30be6b4bb1d45e072f090b18ea08 | 74addaa0e41490cbaf2abd313a764c96df57b05d | /Mathlib/tactic/slim_check_auto.lean | b9760bc4dbaf230d3e996a56d2f4fa2dbb9c05ca | [] | 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,764 | lean | /-
Copyright (c) 2020 Simon Hudon. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Author: Simon Hudon
-/
import Mathlib.PrePort
import Mathlib.Lean3Lib.init.default
import Mathlib.testing.slim_check.testable
import Mathlib.testing.slim_check.functions
import Mathlib.data.list.s... |
fa0e044acdec20df9c3c11e763d2e25e675610a5 | 36c7a18fd72e5b57229bd8ba36493daf536a19ce | /hott/types/int/hott.hlean | c79d5fa96128ed6c57deab98d4b7eef8e79a83bc | [
"Apache-2.0"
] | permissive | YHVHvx/lean | 732bf0fb7a298cd7fe0f15d82f8e248c11db49e9 | 038369533e0136dd395dc252084d3c1853accbf2 | refs/heads/master | 1,610,701,080,210 | 1,449,128,595,000 | 1,449,128,595,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 5,537 | hlean | /-
Copyright (c) 2015 Floris van Doorn. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Author: Floris van Doorn
Theorems about the integers specific to HoTT
-/
import .basic types.eq arity
open core eq is_equiv equiv equiv.ops
open nat (hiding pred)
namespace int
section
... |
f934c24b2ad34af5a3b5271ab3dbeddc23d20b01 | 3b15c7b0b62d8ada1399c112ad88a529e6bfa115 | /stage0/src/Init/NotationExtra.lean | dbf41b35a19fa73ab000e12860b1dd97bf578a43 | [
"Apache-2.0"
] | permissive | stephenbrady/lean4 | 74bf5cae8a433e9c815708ce96c9e54a5caf2115 | b1bd3fc304d0f7bc6810ec78bfa4c51476d263f9 | refs/heads/master | 1,692,621,473,161 | 1,634,308,743,000 | 1,634,310,749,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 8,338 | 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
Extra notation that depends on Init/Meta
-/
prelude
import Init.Meta
import Init.Data.Array.Subarray
import Init.Data.ToString
namespace Lean
syntax "Macro.t... |
3d617f7f05f34034d1ee97116f38c9cc03ffe85a | 5d166a16ae129621cb54ca9dde86c275d7d2b483 | /library/data/hash_map.lean | c6fa5bdfb5ccc3126d02a6c18291aeb22827e4d1 | [
"Apache-2.0"
] | permissive | jcarlson23/lean | b00098763291397e0ac76b37a2dd96bc013bd247 | 8de88701247f54d325edd46c0eed57aeacb64baf | refs/heads/master | 1,611,571,813,719 | 1,497,020,963,000 | 1,497,021,515,000 | 93,882,536 | 1 | 0 | null | 1,497,029,896,000 | 1,497,029,896,000 | null | UTF-8 | Lean | false | false | 35,270 | lean | /-
Copyright (c) 2017 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Leonardo de Moura, Mario Carneiro
-/
import data.list.set data.list.comb init.data.array data.pnat
universes u v w
def bucket_array (α : Type u) (β : α → Type v) (n : ℕ+) :=
a... |
1a0b87be9d18aef17d2ee5697d67589120187313 | fa02ed5a3c9c0adee3c26887a16855e7841c668b | /test/zify.lean | e3d80696f2c1001a6258efe0b367dc84bc82b5b2 | [
"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 | 752 | lean | import tactic.zify
example (a b c x y z : ℕ) (h : ¬ x*y*z < 0) (h2 : (c : ℤ) < a + 3 * b) : a + 3*b > c :=
begin
zify at h ⊢,
guard_hyp h : ¬↑x * ↑y * ↑z < (0 : ℤ),
guard_target ↑c < (↑a : ℤ) + 3 * ↑b,
exact h2
end
example (a b : ℕ) (h : (a : ℤ) ≤ b) : a ≤ b :=
begin
zify,
guard_target (a : ℤ) ≤ b,
exac... |
d820d3b11236f5d6ee7850b560ca323b5668e052 | 9028d228ac200bbefe3a711342514dd4e4458bff | /src/ring_theory/polynomial/rational_root.lean | 348be044c69fc3423e465fbaa38a7c8a14aba1b4 | [
"Apache-2.0"
] | permissive | mcncm/mathlib | 8d25099344d9d2bee62822cb9ed43aa3e09fa05e | fde3d78cadeec5ef827b16ae55664ef115e66f57 | refs/heads/master | 1,672,743,316,277 | 1,602,618,514,000 | 1,602,618,514,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 4,998 | lean | /-
Copyright (c) 2020 Anne Baanen. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Anne Baanen
-/
import ring_theory.polynomial.scale_roots
import ring_theory.localization
/-!
# Rational root theorem and integral root theorem
This file contains the rational root theo... |
0ebcc573bcd502d248956e8e6d86e68208e69e16 | 2a70b774d16dbdf5a533432ee0ebab6838df0948 | /_target/deps/mathlib/src/data/polynomial/erase_lead.lean | 680b5464fba032728eaffa02e8252a05c5961e7e | [
"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 | 5,589 | 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 data.polynomial.degree
import data.polynomial.degree.trailing_degree
/-!
# Erase the leading term of a univariate polynomial
## Definition
* `erase_lead f`: t... |
4bce4fff82239c77e8595fac7722c02f304ddd21 | 7cef822f3b952965621309e88eadf618da0c8ae9 | /src/data/padics/padic_integers.lean | dc49403852efda1f28cefbaf167ecef668bcd0c5 | [
"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 | 10,683 | 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, Mario Carneiro
-/
import data.int.modeq data.padics.padic_numbers ring_theory.ideals ring_theory.algebra
/-!
# p-adic integers
This file defines the p-adic integer... |
3adc2cd0ff4e6c16aa321604d3bfcccb9e37c5a3 | 56e5b79a7ab4f2c52e6eb94f76d8100a25273cf3 | /src/tactic_state.lean | 5944f89f209e6e8fa43dbb9dceb71b7eb71be886 | [
"Apache-2.0"
] | permissive | DyeKuu/lean-tpe-public | 3a9968f286ca182723ef7e7d97e155d8cb6b1e70 | 750ade767ab28037e80b7a80360d213a875038f8 | refs/heads/master | 1,682,842,633,115 | 1,621,330,793,000 | 1,621,330,793,000 | 368,475,816 | 0 | 0 | Apache-2.0 | 1,621,330,745,000 | 1,621,330,744,000 | null | UTF-8 | Lean | false | false | 25,683 | lean | import system.io
import utils
open tactic.unsafe
universes u v w
-- tools and help functions
-- def option.mmap {m : Type u → Type v} [monad m] {α : Type w} {β : Type u} (f : α → m β) : option α → m (option β)
-- | none := return none
-- | (some x) := do x' ← f x, return (some x')
def list.last_option {α : Ty... |
a2472ab1839051cb6bd6c11f3033e9274e53bfd9 | 6432ea7a083ff6ba21ea17af9ee47b9c371760f7 | /tests/lean/run/lcnfCheckIssue.lean | d963d7096ecbee716866471f1b8f87a9762078f5 | [
"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 | 364 | lean | import Lean
abbrev Sequence (α : Type) := List α
def bigop (init : β) (seq : Sequence α) (op : β → β → β) (f : α → Bool × β) : β := Id.run do
let mut result := init
for a in seq do
let (ok, b) := f a
if ok then
result := op result b
return result
set_option trace.Compiler.result true
#eval Lean.C... |
337c9803add54c354b539b3ed0eea0b5b3ab2c23 | 8cae430f0a71442d02dbb1cbb14073b31048e4b0 | /src/group_theory/commutator.lean | 5c21d23e5f311a3a421452a623825c0d623af94f | [
"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,766 | lean | /-
Copyright (c) 2021 Jordan Brown, Thomas Browning, Patrick Lutz. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Jordan Brown, Thomas Browning, Patrick Lutz
-/
import data.bracket
import group_theory.subgroup.finite
import tactic.group
/-!
# Commutators of Subgroups... |
933e886d1a7e056abf6a90c38848f170fad4558a | acc85b4be2c618b11fc7cb3005521ae6858a8d07 | /order/filter.lean | 00bfeade8d2e738e09933fbed1919aa263df0a9a | [
"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 | 68,464 | lean | /-
Copyright (c) 2017 Johannes Hölzl. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Johannes Hölzl
Theory of filters on sets.
-/
import order.complete_lattice order.galois_connection data.set data.finset order.zorn
open lattice set
universes u v w x y
open set clas... |
00d242a31722df920c372b9fd08655d34c4b82f7 | 57c233acf9386e610d99ed20ef139c5f97504ba3 | /src/topology/order.lean | bd6fc6d82cdd79960281d7e5edbec4eb9885560f | [
"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,838 | lean | /-
Copyright (c) 2017 Johannes Hölzl. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Johannes Hölzl, Mario Carneiro
-/
import topology.tactic
/-!
# Ordering on topologies and (co)induced topologies
Topologies on a fixed type `α` are ordered, by reverse inclusion.
Tha... |
6cc1e2ea02b5af0e43d3a1b8e8876bdf0996deab | 57c233acf9386e610d99ed20ef139c5f97504ba3 | /src/probability_theory/independence.lean | 751db8ca4bff293a5ee43beeb5401f5c98503cb6 | [
"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 | 17,224 | lean | /-
Copyright (c) 2021 Rémy Degenne. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Rémy Degenne
-/
import algebra.big_operators.intervals
import measure_theory.measure.measure_space
import measure_theory.pi_system
/-!
# Independence of sets of sets and measure spaces ... |
bc4f5a8c1994a4193588a096a59fab96f738915b | 26ac254ecb57ffcb886ff709cf018390161a9225 | /src/ring_theory/algebra_tower.lean | cc4c756c17eaf588b96faf90be518a9ddbc9fe9c | [
"Apache-2.0"
] | permissive | eric-wieser/mathlib | 42842584f584359bbe1fc8b88b3ff937c8acd72d | d0df6b81cd0920ad569158c06a3fd5abb9e63301 | refs/heads/master | 1,669,546,404,255 | 1,595,254,668,000 | 1,595,254,668,000 | 281,173,504 | 0 | 0 | Apache-2.0 | 1,595,263,582,000 | 1,595,263,581,000 | null | UTF-8 | Lean | false | false | 12,186 | 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 ring_theory.adjoin
/-!
# Towers of algebras
We set up the basic theory of algebra towers.
The typeclass `is_algebra_tower R S A` expresses that `A` is an `S`-algebra,... |
bb29cd58a8a5459cd96331a44b066059fc13edc8 | 3b15c7b0b62d8ada1399c112ad88a529e6bfa115 | /src/Lean/Widget/InteractiveCode.lean | d5d31cd2c822d83eac8a33c1520505e3bcfc3881 | [
"Apache-2.0"
] | permissive | stephenbrady/lean4 | 74bf5cae8a433e9c815708ce96c9e54a5caf2115 | b1bd3fc304d0f7bc6810ec78bfa4c51476d263f9 | refs/heads/master | 1,692,621,473,161 | 1,634,308,743,000 | 1,634,310,749,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 4,872 | lean | /-
Copyright (c) 2021 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Wojciech Nawrocki
-/
import Lean.PrettyPrinter
import Lean.Server.Rpc.Basic
import Lean.Widget.TaggedText
/-! RPC infrastructure for storing and formatting code fragments, in ... |
4e35df690fa5236d7480dc8f113c99a1398e371f | ac076ebc286fa9b7a67171f6cd11eb98b263d6ef | /src/induction.lean | d98c5afa039a06106aec5957056db620683a0d93 | [] | no_license | Shamrock-Frost/jordan-holder | e891e489d00f8ff9e29c47b3083f22cac7804efb | bab3daccd70a4f3c5b25731b899a2cd72d7b8376 | refs/heads/master | 1,594,962,465,041 | 1,576,197,432,000 | 1,576,197,432,000 | 205,951,913 | 1 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 5,475 | lean | import group_theory.subgroup
import group_theory.quotient_group
import group_theory.category
open category_theory
local attribute [instance] classical.prop_decidable
lemma fintype.card_of_removed {α} [fintype α] (a : α)
: fintype.card { x : α // x ≠ a } = nat.pred (fintype.card α) :=
begin
transitivity finset.car... |
f7b309a856a8ace66a8fed357e8800d9cc258d13 | 12dabd587ce2621d9a4eff9f16e354d02e206c8e | /world01/level03.lean | d859e5c4c257242cd818692356865d014f62f981 | [] | no_license | abdelq/natural-number-game | a1b5b8f1d52625a7addcefc97c966d3f06a48263 | bbddadc6d2e78ece2e9acd40fa7702ecc2db75c2 | refs/heads/master | 1,668,606,478,691 | 1,594,175,058,000 | 1,594,175,058,000 | 278,673,209 | 0 | 1 | null | null | null | null | UTF-8 | Lean | false | false | 126 | lean | import mynat.definition
lemma example3 (a b : mynat) (h : succ a = b) : succ(succ(a)) = succ(b) :=
begin
rw ← h,
refl,
end
|
a6eda5dbb6829cfa8e5296f7e7a40e49064e3d6a | d406927ab5617694ec9ea7001f101b7c9e3d9702 | /src/algebra/graded_monoid.lean | 9aae3d0e47614cb009e7c560a015eddf4c658b13 | [
"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 | 21,998 | lean | /-
Copyright (c) 2021 Eric Wieser. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Eric Wieser
-/
import algebra.group.inj_surj
import data.list.big_operators.basic
import data.list.range
import group_theory.group_action.defs
import group_theory.submonoid.basic
import d... |
64901a486f265831bbf76250c29616450a94fcaf | 856e2e1615a12f95b551ed48fa5b03b245abba44 | /src/algebra/pi_instances.lean | 21b71230521b045c5459d612a2f795808ae24803 | [
"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 | 19,257 | lean | /-
Copyright (c) 2018 Simon Hudon. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Simon Hudon, Patrick Massot
-/
import algebra.module
import ring_theory.subring
import ring_theory.prod
import data.fintype.basic
open_locale big_operators
/-!
# Pi instances for algebr... |
dbf632634672411e4a2bcd801780db1f33dd0047 | 4727251e0cd73359b15b664c3170e5d754078599 | /src/category_theory/sites/cover_lifting.lean | 6e3eb8f8408672d1f5a6febfb75f426f8b066922 | [
"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 | 13,246 | lean | /-
Copyright (c) 2021 Andrew Yang. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Andrew Yang
-/
import category_theory.sites.sheaf
import category_theory.limits.kan_extension
import category_theory.sites.cover_preserving
/-!
# Cover-lifting functors between sites.
W... |
aff9fcbee2eea8fd7a36071add05d37242051238 | 8cae430f0a71442d02dbb1cbb14073b31048e4b0 | /src/ring_theory/finite_type.lean | b0c17406ed9b7feac63cfd5c1e0cb5beacc54125 | [
"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 | 23,915 | lean | /-
Copyright (c) 2020 Johan Commelin. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Johan Commelin
-/
import group_theory.finiteness
import ring_theory.adjoin.tower
import ring_theory.finiteness
import ring_theory.noetherian
/-!
# Finiteness conditions in commutativ... |
ef8ccf06e2d87e79bda8a5534821e1a37a853515 | 9028d228ac200bbefe3a711342514dd4e4458bff | /src/data/int/gcd.lean | aeefef899096aaeb70246162e3d8d2caece3071e | [
"Apache-2.0"
] | permissive | mcncm/mathlib | 8d25099344d9d2bee62822cb9ed43aa3e09fa05e | fde3d78cadeec5ef827b16ae55664ef115e66f57 | refs/heads/master | 1,672,743,316,277 | 1,602,618,514,000 | 1,602,618,514,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 5,846 | lean | /-
Copyright (c) 2018 Guy Leroy. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Sangwoo Jo (aka Jason), Guy Leroy, Johannes Hölzl, Mario Carneiro
-/
import data.nat.prime
/-!
# Extended GCD and divisibility over ℤ
## Main definitions
* Given `x y : ℕ`, `xgcd x y` com... |
68c7b9c7ced555da04238e6b0f40bb1bd10812c3 | 63abd62053d479eae5abf4951554e1064a4c45b4 | /src/representation_theory/maschke.lean | 40119877a15446b9953d1c407a2d453103de731a | [
"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 | 5,901 | lean | /-
Copyright (c) 2020 Scott Morrison. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Author: Scott Morrison
-/
import algebra.monoid_algebra
import algebra.invertible
import algebra.char_p
import linear_algebra.basis
/-!
# Maschke's theorem
We prove Maschke's theorem for fini... |
0f7d9caf69a133f1c25a3768cad25009675dcf36 | 853df553b1d6ca524e3f0a79aedd32dde5d27ec3 | /src/data/qpf/univariate/basic.lean | fcce2259c843fe503caa453c46d192e345c72e92 | [
"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 | 20,555 | lean | /-
Copyright (c) 2018 Jeremy Avigad. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Author: Jeremy Avigad
-/
import data.pfunctor.univariate
/-!
# Quotients of Polynomial Functors
We assume the following:
`P` : a polynomial functor
`W` : its W-type
`M` : its M-type
`F... |
8e37396b1d368df3f3deda986ff1164c732e70ff | 30b012bb72d640ec30c8fdd4c45fdfa67beb012c | /order/complete_lattice.lean | ae38ecbfc8824aab5a395757ca91a71236acd2b4 | [
"Apache-2.0"
] | permissive | kckennylau/mathlib | 21fb810b701b10d6606d9002a4004f7672262e83 | 47b3477e20ffb5a06588dd3abb01fe0fe3205646 | refs/heads/master | 1,634,976,409,281 | 1,542,042,832,000 | 1,542,319,733,000 | 109,560,458 | 0 | 0 | Apache-2.0 | 1,542,369,208,000 | 1,509,867,494,000 | Lean | UTF-8 | Lean | false | false | 30,750 | lean | /-
Copyright (c) 2017 Johannes Hölzl. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Johannes Hölzl
Theory of complete lattices.
-/
import order.bounded_lattice data.set.basic tactic.pi_instances
set_option old_structure_cmd true
open set
namespace lattice
universes... |
55f850ab7f15a1ac96386411d7f5f610ee56032a | 2a70b774d16dbdf5a533432ee0ebab6838df0948 | /_target/deps/mathlib/src/topology/category/CompHaus.lean | 64347d5560ed7bdd525ff0c8e75d66b800e02581 | [
"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 | 1,740 | lean | /-
Copyright (c) 2020 Adam Topaz. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Adam Topaz
-/
import topology.category.Top
/-!
# The category of Compact Hausdorff Spaces
We construct the category of compact Hausdorff spaces.
The type of compact Hausdorff spaces is... |
4ba7466e062a6c4800d16188df883bb25ffb9bb0 | 947b78d97130d56365ae2ec264df196ce769371a | /tests/lean/run/patbug.lean | d5e07c85dc6fb5b50b364b0f9441604695860165 | [
"Apache-2.0"
] | permissive | shyamalschandra/lean4 | 27044812be8698f0c79147615b1d5090b9f4b037 | 6e7a883b21eaf62831e8111b251dc9b18f40e604 | refs/heads/master | 1,671,417,126,371 | 1,601,859,995,000 | 1,601,860,020,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 213 | lean | new_frontend
open Lean
def f : Name → Name
| n@(`foo.bla) => n
| _ => Name.anonymous
def tst : IO Unit := do
when (hash `foo.bla != hash (f `foo.bla)) $
throw $ IO.userError "bug"
IO.println "ok"
#eval tst
|
f503618e6dd6334f405127f5bdb3330060a65dba | 6432ea7a083ff6ba21ea17af9ee47b9c371760f7 | /tests/lean/run/Reid1.lean | 4d71c55276818db458933177eeb09e9e03b68340 | [
"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 | 689 | lean |
structure ConstantFunction (α β : Type) :=
(f : α → β)
(h : ∀ a₁ a₂, f a₁ = f a₂)
instance constFunCoe {α β : Type} : CoeFun (ConstantFunction α β) (fun _ => α → β) :=
{ coe := fun c => c.f }
def myFun {α : Type} : ConstantFunction α (Option α) :=
{ f := fun a => none,
h := fun a₁ a₂ => rfl }
def myFun' (α : Typ... |
c27300ec044c22b094f9cee9574c237c8cd60322 | 037dba89703a79cd4a4aec5e959818147f97635d | /src/2020/sets/canonical.lean | ff79002f36e916aed997925ef0ffd66000daee75 | [] | no_license | ImperialCollegeLondon/M40001_lean | 3a6a09298da395ab51bc220a535035d45bbe919b | 62a76fa92654c855af2b2fc2bef8e60acd16ccec | refs/heads/master | 1,666,750,403,259 | 1,665,771,117,000 | 1,665,771,117,000 | 209,141,835 | 115 | 12 | null | 1,640,270,596,000 | 1,568,749,174,000 | Lean | UTF-8 | Lean | false | false | 850 | lean | import tactic
/- Let α be a fixed ground set, which is a type.
There is a bijection between
(a) the type `α → Prop` whose terms
are functions from `α` to `Prop`, and
(b) the type `set α`, whose terms
are subsets of α.
-/
def canonical (α : Type) : (α → Prop) ≃ (set α) :=
{ to_fun :=
-- c... |
9275fb58978aafe541b94948597cb69e766e17df | 4efff1f47634ff19e2f786deadd394270a59ecd2 | /src/category_theory/abelian/basic.lean | 4c8c3c155fa864dc12a9579480a3814d53b33c73 | [
"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 | 22,103 | 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.constructions.pullbacks
import category_theory.limits.shapes.regular_mono
import category_theory.limits.shapes.biproducts
import c... |
acab900a68e7c876669702d79954c0c3f72dc83d | 8cb37a089cdb4af3af9d8bf1002b417e407a8e9e | /tests/lean/well_founded_tactics.lean | 576d65eaca4e8f62b686f55ddf3e26af3a95f9da | [
"Apache-2.0"
] | permissive | kbuzzard/lean | ae3c3db4bb462d750dbf7419b28bafb3ec983ef7 | ed1788fd674bb8991acffc8fca585ec746711928 | refs/heads/master | 1,620,983,366,617 | 1,618,937,600,000 | 1,618,937,600,000 | 359,886,396 | 1 | 0 | Apache-2.0 | 1,618,936,987,000 | 1,618,936,987,000 | null | UTF-8 | Lean | false | false | 255 | lean | variables {α : Type} {lt : α → α → Prop} [decidable_rel lt]
def merge : list α → list α → list α
| [] l' := l'
| l [] := l
| (a :: l) (b :: l') := if lt a b then a :: merge l (b :: l') else b :: merge (a :: l) l'
|
ccd59376780dc4069152290d4dfa1ff91db91a39 | 4d2583807a5ac6caaffd3d7a5f646d61ca85d532 | /src/algebra/regular/basic.lean | f0b5e342e48cd80ab56ad1855b8de216141135ae | [
"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 | 11,590 | 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.order.monoid_lemmas
import algebra.group_with_zero.basic
import logic.embedding
/-!
# Regular elements
We introduce left-regular, right-regular and reg... |
851dae6884a45d2614f9b2a6f66e616e4a19cfc6 | cf39355caa609c0f33405126beee2739aa3cb77e | /tests/lean/run/have4.lean | 8b1fc7cee09210323aa9d49bf03241b78929d62a | [
"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 | 217 | lean | prelude
definition Prop : Type.{1} := Type.{0}
constants a b c : Prop
axiom Ha : a
axiom Hb : b
axiom Hc : c
#check
have H1 : a, from Ha,
have H2 : a, from H1,
have H3 : a, from H2,
have H4 : a, from H3,
H4
|
4d3d5fd155430ad5b51b2943cfac7b2a912c81c3 | 37da0369b6c03e380e057bf680d81e6c9fdf9219 | /hott/homotopy/interval.hlean | d8df97ae0be12dd11865bf99f321914f821c9639 | [
"Apache-2.0"
] | permissive | kodyvajjha/lean2 | 72b120d95c3a1d77f54433fa90c9810e14a931a4 | 227fcad22ab2bc27bb7471be7911075d101ba3f9 | refs/heads/master | 1,627,157,512,295 | 1,501,855,676,000 | 1,504,809,427,000 | 109,317,326 | 0 | 0 | null | 1,509,839,253,000 | 1,509,655,713,000 | C++ | UTF-8 | Lean | false | false | 3,471 | hlean | /-
Copyright (c) 2015 Floris van Doorn. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Floris van Doorn
Declaration of the interval
-/
import .susp types.eq types.prod cubical.square
open eq susp unit equiv is_trunc nat prod pointed
definition interval : Type₀ := su... |
787e298eb9524b224e2f5437d0fb12962265ca3b | 9be442d9ec2fcf442516ed6e9e1660aa9071b7bd | /tests/lean/run/calc.lean | c4fa26cedac8e1808e8e569b0eddabe984df9341 | [
"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 | 496 | lean | variable (t1 t2 t3 t4 : Nat)
variable (pf12 : t1 = t2) (pf23 : t2 = t3) (pf34 : t3 = t4)
theorem foo : t1 = t4 :=
calc
t1 = t2 := pf12
_ = t3 := pf23
_ = t4 := pf34
variable (t5 : Nat)
variable (pf23' : t2 < t3) (pf45' : t4 < t5)
instance [LT α] : Trans (α := α) (· < ·) (· < ·) (· < ·) where
trans ... |
a9b2eb90d4b093268a48e50a1028241cc4eda861 | 94e33a31faa76775069b071adea97e86e218a8ee | /src/algebra/gcd_monoid/basic.lean | 28ce75282b94fea927c2705b8bcf2a96f564c5fd | [
"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 | 48,956 | 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
-/
import algebra.associated
import algebra.group_power.lemmas
/-!
# Monoids with normalization functions, `gcd`, and `lcm`
This file defines extra st... |
0985122535fc1008144f303d8b959f08b480e3e3 | ae1e94c332e17c7dc7051ce976d5a9eebe7ab8a5 | /tests/lean/run/meta2.lean | 7c2c6933a59f4ffe247dc8fe7456ad667b432730 | [
"Apache-2.0"
] | permissive | dupuisf/lean4 | d082d13b01243e1de29ae680eefb476961221eef | 6a39c65bd28eb0e28c3870188f348c8914502718 | refs/heads/master | 1,676,948,755,391 | 1,610,665,114,000 | 1,610,665,114,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 19,079 | lean | #lang lean4
import Lean.Meta
open Lean
open Lean.Meta
-- set_option trace.Meta true
--set_option trace.Meta.isDefEq.step false
-- set_option trace.Meta.isDefEq.delta false
set_option trace.Meta.debug true
def print (msg : MessageData) : MetaM Unit :=
trace! `Meta.debug msg
def checkM (x : MetaM Bool) : MetaM Unit :=... |
81b4d490de8cea404677b9055f0033a21f497c0e | 302c785c90d40ad3d6be43d33bc6a558354cc2cf | /src/category_theory/limits/cofinal.lean | b3f4ceade9f2a02728795fc59690a6e8eee1a3b3 | [
"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 | 16,433 | 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.structured_arrow
import category_theory.is_connected
import category_theory.limits.yoneda
import category_theory.l... |
5e5cedf8d55782fb91c74507aa1c14a9ee46f6ab | 35677d2df3f081738fa6b08138e03ee36bc33cad | /src/data/padics/hensel.lean | 78095015831dc5dbdf920ba43dc7f7b4e4c97fe6 | [
"Apache-2.0"
] | permissive | gebner/mathlib | eab0150cc4f79ec45d2016a8c21750244a2e7ff0 | cc6a6edc397c55118df62831e23bfbd6e6c6b4ab | refs/heads/master | 1,625,574,853,976 | 1,586,712,827,000 | 1,586,712,827,000 | 99,101,412 | 1 | 0 | Apache-2.0 | 1,586,716,389,000 | 1,501,667,958,000 | Lean | UTF-8 | Lean | false | false | 21,453 | 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 data.padics.padic_integers data.polynomial topology.metric_space.cau_seq_filter
import analysis.specific_limits topology.algebra.polynomial
/-!
# Hensel's ... |
4ab3b8e7367c304a408b1a43588602c1397cef9d | c31182a012eec69da0a1f6c05f42b0f0717d212d | /src/locally_constant/analysis.lean | 54df267caaeb9564319083fe2fb0202968deacb2 | [] | 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 | 11,306 | lean | import topology.locally_constant.algebra
import analysis.normed_space.normed_group_hom
import for_mathlib.normed_group_hom
/-!
# Analysis of locally constant maps
This file defines the normed group of locally constant maps from a compact topological
space into a normed group (with the sup norm).
## Main constructio... |
5f585abaa015650c247f6c5384b106b90b8d7b23 | d436468d80b739ba7e06843c4d0d2070e43448e5 | /src/category/bitraversable/lemmas.lean | f93a76e729baa13713acdb690f2921b5672c65c7 | [
"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 | 3,325 | lean | /-
Copyright (c) 2019 Simon Hudon. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Author(s): Simon Hudon
-/
import category.bitraversable.basic
/-!
# Bitraversable Lemmas
## Main definitions
* tfst - traverse on first functor argument
* tsnd - traverse on second functor ... |
bd1f33ca0b66b2bfacc07f62c55eecb3d2560290 | 5ec8f5218a7c8e87dd0d70dc6b715b36d61a8d61 | /maps.lean | 4c12e4c07aab8f6742591e01bb2821de0803bc6a | [] | no_license | mbrodersen/kremlin | f9f2f9dd77b9744fe0ffd5f70d9fa0f1f8bd8cec | d4665929ce9012e93a0b05fc7063b96256bab86f | refs/heads/master | 1,624,057,268,130 | 1,496,957,084,000 | 1,496,957,084,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 3,749 | lean | import data.hash_map .lib
namespace maps
def prev_append : pos_num → pos_num → pos_num
| pos_num.one j := j
| (pos_num.bit1 i') j := prev_append i' (pos_num.bit1 j)
| (pos_num.bit0 i') j := prev_append i' (pos_num.bit0 j)
def prev (i : pos_num) : pos_num :=
prev_append i pos_num.one
inductive PTree (A : Type) : Typ... |
ddc880eba785b210da9f4cb0be07ba00856a3c07 | 57fdc8de88f5ea3bfde4325e6ecd13f93a274ab5 | /data/num/basic.lean | ad732ad92afd203f9fb2d300e35956ae5a791757 | [
"Apache-2.0"
] | permissive | louisanu/mathlib | 11f56f2d40dc792bc05ee2f78ea37d73e98ecbfe | 2bd5e2159d20a8f20d04fc4d382e65eea775ed39 | refs/heads/master | 1,617,706,993,439 | 1,523,163,654,000 | 1,523,163,654,000 | 124,519,997 | 0 | 0 | Apache-2.0 | 1,520,588,283,000 | 1,520,588,283,000 | null | UTF-8 | Lean | false | false | 13,797 | lean | /-
Copyright (c) 2014 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Leonardo de Moura, Mario Carneiro
Binary representation of integers using inductive types.
Note: Unlike in Coq, where this representation is preferred because of
the reliance ... |
23d81f07f6fcc458e7d063c334bc35c7ca25bf72 | 35677d2df3f081738fa6b08138e03ee36bc33cad | /src/algebra/category/Group/limits.lean | 44800c7aba3d04b0c94b9468f29512a7cbdfe050 | [
"Apache-2.0"
] | permissive | gebner/mathlib | eab0150cc4f79ec45d2016a8c21750244a2e7ff0 | cc6a6edc397c55118df62831e23bfbd6e6c6b4ab | refs/heads/master | 1,625,574,853,976 | 1,586,712,827,000 | 1,586,712,827,000 | 99,101,412 | 1 | 0 | Apache-2.0 | 1,586,716,389,000 | 1,501,667,958,000 | Lean | UTF-8 | Lean | false | false | 4,292 | lean | /-
Copyright (c) 2020 Scott Morrison. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Scott Morrison
-/
import algebra.category.Group.basic
import category_theory.limits.types
import category_theory.limits.preserves
import algebra.pi_instances
/-!
# The category of abe... |
045a5178d7c15b48359b2ae3fe94048247a0381a | 947b78d97130d56365ae2ec264df196ce769371a | /src/Lean/Meta/InferType.lean | 71606cc9185ad1a560cef0a0245be09f4331a619 | [
"Apache-2.0"
] | permissive | shyamalschandra/lean4 | 27044812be8698f0c79147615b1d5090b9f4b037 | 6e7a883b21eaf62831e8111b251dc9b18f40e604 | refs/heads/master | 1,671,417,126,371 | 1,601,859,995,000 | 1,601,860,020,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 14,718 | 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.LBool
import Lean.Meta.Basic
namespace Lean
namespace Meta
def throwFunctionExpected {α} (f : Expr) : MetaM α :=
throwError $ "function e... |
85dd1c1ea630bba546a8cadb90640fcbe0feff74 | 4d2583807a5ac6caaffd3d7a5f646d61ca85d532 | /src/field_theory/normal.lean | 8dd85311f3a716b3f1bc130e2cabc9c68951227f | [
"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 | 15,418 | lean | /-
Copyright (c) 2020 Kenny Lau. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Kenny Lau, Thomas Browning, Patrick Lutz
-/
import field_theory.adjoin
import field_theory.tower
import group_theory.solvable
import ring_theory.power_basis
/-!
# Normal field extensions
... |
834b75c7dbe40182bb0a1daed332545ca426525f | 737dc4b96c97368cb66b925eeea3ab633ec3d702 | /src/Lean/Elab/Util.lean | 40c6f701977ccd6b5ff8466cb5c2bd61d6823c20 | [
"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 | 7,740 | 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.Trace
import Lean.Parser.Syntax
import Lean.Parser.Extension
import Lean.KeyedDeclsAttribute
import Lean.Elab.Exception
namespace Lean
de... |
f482d968996733a84c72518403150271d83f30da | 7da5ceac20aaab989eeb795a4be9639982e7b35a | /src/category_theory/limits/shapes/pullbacks.lean | 56d00fc3c51fa678fefdcf7b2730b45a2c1a361e | [
"MIT"
] | permissive | formalabstracts/formalabstracts | 46c2f1b3a172e62ca6ffeb46fbbdf1705718af49 | b0173da1af45421239d44492eeecd54bf65ee0f6 | refs/heads/master | 1,606,896,370,374 | 1,572,988,776,000 | 1,572,988,776,000 | 96,763,004 | 165 | 28 | null | 1,555,709,319,000 | 1,499,680,948,000 | Lean | UTF-8 | Lean | false | false | 6,993 | 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.eq_to_hom
import category_theory.limits.cones
import ...basic
open category_theory
namespace category_theory.limits
universes v u
local... |
d9d05eadcefd70287baf98290b09ebdf66e061b6 | ed27983dd289b3bcad416f0b1927105d6ef19db8 | /src/inClassNotes/higherOrderFunctions/composeTest.lean | 7378aa578a2e9e105bd4effc49088a453adc2bf6 | [] | no_license | liuxin-James/complogic-s21 | 0d55b76dbe25024473d31d98b5b83655c365f811 | 13e03e0114626643b44015c654151fb651603486 | refs/heads/master | 1,681,109,264,463 | 1,618,848,261,000 | 1,618,848,261,000 | 337,599,491 | 0 | 0 | null | 1,613,141,619,000 | 1,612,925,555,000 | null | UTF-8 | Lean | false | false | 4,614 | lean | /-
Let's build up to notion of
higher-order functions.
-/
namespace hidden
-- Increment functions
def inc (n : nat) := n + 1
def sqr (n : nat) := n * n
def incThenSqr (n : nat) := sqr (inc n)
/-
36 <-- sqr <-- inc <-- 5
Think of data flowing right to left
through a composition of functions:
given n (on the righ... |
f7ae0b36b424e10ba368275ef13968175bac129e | cf39355caa609c0f33405126beee2739aa3cb77e | /tests/lean/run/sec_var.lean | d4ab3b30e45a36b1d7326b3947f0b6a699468e0a | [
"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 | 545 | lean | section
parameter A : Type
definition foo : ∀ ⦃ a b : A ⦄, a = b → a = b :=
assume a b H, H
variable a : A
set_option pp.implicit true
#check foo (eq.refl a)
#check foo
#check foo = (λ (a b : A) (H : a = b), H)
end
#check foo = (λ (A : Type) (a b : A) (H : a = b), H)
section
variable A : Type
def... |
a7d486b6e62b0a52e225be248d9e70b4da246350 | 8cae430f0a71442d02dbb1cbb14073b31048e4b0 | /src/order/category/HeytAlg.lean | bc4663ab9a5eace53fcb86cae5fee906bca9cdc1 | [
"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,863 | lean | /-
Copyright (c) 2022 Yaël Dillies. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Yaël Dillies
-/
import order.category.BddDistLat
import order.heyting.hom
/-!
# The category of Heyting algebras
> THIS FILE IS SYNCHRONIZED WITH MATHLIB4.
> Any changes to this file r... |
78dc46085c51d1135e9b1cd4e266861b89694dd8 | 491068d2ad28831e7dade8d6dff871c3e49d9431 | /tests/lean/run/print_poly.lean | 3cdfe4193aa2b01b2e38f1f4115810cd9b56239f | [
"Apache-2.0"
] | permissive | davidmueller13/lean | 65a3ed141b4088cd0a268e4de80eb6778b21a0e9 | c626e2e3c6f3771e07c32e82ee5b9e030de5b050 | refs/heads/master | 1,611,278,313,401 | 1,444,021,177,000 | 1,444,021,177,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 263 | lean | import data.nat
open nat
print pp.max_depth
print +
print -
print nat
print nat.zero
print nat.add
print nat.rec
print classical.em
print quot.lift
print nat.of_num
print nat.add.assoc
section
parameter {A : Type}
variable {a : A}
print A
print a
end
|
8fd75b9a255f8ed4e00c6c31e75606603e33b848 | fa02ed5a3c9c0adee3c26887a16855e7841c668b | /src/tactic/scc.lean | b8be135fbdd2c9a66a75223099fbc9a30e0a662c | [
"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 | 13,493 | lean | /-
Copyright (c) 2018 Simon Hudon All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Simon Hudon
Tactics based on the strongly connected components (SCC) of a graph where
the vertices are propositions and the edges are implications found
in the context.
They are used for... |
a7d442d583d179a0418b81bce8e141677acdc319 | 4727251e0cd73359b15b664c3170e5d754078599 | /src/ring_theory/laurent_series.lean | a4b55ca32c77af5d95c1497ee133c8db92184729 | [
"Apache-2.0"
] | permissive | Vierkantor/mathlib | 0ea59ac32a3a43c93c44d70f441c4ee810ccceca | 83bc3b9ce9b13910b57bda6b56222495ebd31c2f | refs/heads/master | 1,658,323,012,449 | 1,652,256,003,000 | 1,652,256,003,000 | 209,296,341 | 0 | 1 | Apache-2.0 | 1,568,807,655,000 | 1,568,807,655,000 | null | UTF-8 | Lean | false | false | 8,474 | lean | /-
Copyright (c) 2021 Aaron Anderson. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Aaron Anderson
-/
import ring_theory.hahn_series
import ring_theory.localization.fraction_ring
/-!
# Laurent Series
## Main Definitions
* Defines `laurent_series` as an abbreviation ... |
ac1d7e672de96741227a203d00c437c676325606 | c055f4b7c29cf1aac2223bd8c1ac8d181a7c6447 | /src/categories/natural_transformation.lean | 261e1e5f47af81d0f969a6ac389c2226698b9078 | [
"Apache-2.0"
] | permissive | rwbarton/lean-category-theory-pr | 77207b6674eeec1e258ec85dea58f3bff8d27065 | 591847d70c6a11c4d5561cd0eaf69b1fe85a70ab | refs/heads/master | 1,584,595,111,303 | 1,528,029,041,000 | 1,528,029,041,000 | 135,919,126 | 0 | 0 | null | 1,528,041,805,000 | 1,528,041,805,000 | null | UTF-8 | Lean | false | false | 4,744 | lean | -- Copyright (c) 2017 Scott Morrison. All rights reserved.
-- Released under Apache 2.0 license as described in the file LICENSE.
-- Authors: Tim Baumann, Stephen Morgan, Scott Morrison
import .functor
open categories
open categories.functor
namespace categories.natural_transformation
universes u₁ v₁ u₂ v₂ u₃ v₃
s... |
5d9525eb6af3ed2895572e280ad10ff6e54e7abb | 9be442d9ec2fcf442516ed6e9e1660aa9071b7bd | /src/Lean/Elab/Command.lean | 1aeb013859686216919984c1cb4d7928516cb4f6 | [
"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 | 20,910 | 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.Log
import Lean.Parser.Command
import Lean.ResolveName
import Lean.Meta.Reduce
import Lean.Elab.Term
import Lean.Elab.Tactic.Cache
import Lean.E... |
89011ba7496c8b252cc102a42600baf1e42ce84a | 59a4b050600ed7b3d5826a8478db0a9bdc190252 | /src/category_theory/locally_ringed.lean | 006e6bbc3df83eecd9e4ea66ce6d891ab39dc71b | [] | 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 | 760 | lean | import category_theory.sheaves
import category_theory.examples.rings.universal
universes v
open category_theory.examples
open category_theory.limits
variables (α : Type v) [topological_space α]
def structure_sheaf := sheaf.{v+1 v} α CommRing
structure ringed_space :=
(𝒪 : structure_sheaf α)
structure locally_ri... |
38f7af734c84937f91828552fca3dc62da86a346 | 74addaa0e41490cbaf2abd313a764c96df57b05d | /Mathlib/tactic/omega/lin_comb.lean | fd2aa9a80148979517d3cdb185833a187cb3330e | [] | no_license | AurelienSaue/Mathlib4_auto | f538cfd0980f65a6361eadea39e6fc639e9dae14 | 590df64109b08190abe22358fabc3eae000943f2 | refs/heads/master | 1,683,906,849,776 | 1,622,564,669,000 | 1,622,564,669,000 | 371,723,747 | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 1,480 | lean | /-
Copyright (c) 2019 Seul Baek. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Author: Seul Baek
-/
import Mathlib.PrePort
import Mathlib.Lean3Lib.init.default
import Mathlib.tactic.omega.clause
import Mathlib.PostPort
namespace Mathlib
/-
Linear combination of constraints.
... |
69d7025f54948371fd26784e134ac868e5f3b9cc | 5883d9218e6f144e20eee6ca1dab8529fa1a97c0 | /src/aexp/category.lean | 662d38734faabbf2a1502ae287869a728ef24160 | [] | no_license | spl/alpha-conversion-is-easy | 0d035bc570e52a6345d4890e4d0c9e3f9b8126c1 | ed937fe85d8495daffd9412a5524c77b9fcda094 | refs/heads/master | 1,607,649,280,020 | 1,517,380,240,000 | 1,517,380,240,000 | 52,174,747 | 4 | 0 | null | 1,456,052,226,000 | 1,456,001,163,000 | Lean | UTF-8 | Lean | false | false | 823 | lean | /-
This file contains the proof that `aexp` is a `category`.
-/
import .properties
import data.category
namespace acie -----------------------------------------------------------------
namespace aexp -----------------------------------------------------------------
variables {V : Type} [decidable_eq V] -- Type of ... |
fced22e216c43a837997df486f04cac45cd2f3ac | 76c77df8a58af24dbf1d75c7012076a42244d728 | /src/ch3.lean | 50d635bd0bc9a3d2ddb09ff039fff1c89b0229bd | [] | no_license | kris-brown/theorem_proving_in_lean | 7a7a584ba2c657a35335dc895d49d991c997a0c9 | 774460c21bf857daff158210741bd88d1c8323cd | refs/heads/master | 1,668,278,123,743 | 1,593,445,161,000 | 1,593,445,161,000 | 265,748,924 | 0 | 1 | null | null | null | null | UTF-8 | Lean | false | false | 14,262 | lean | -- Section 3.1: Propositions as Types
namespace s31
constant and : Prop → Prop → Prop
constant or : Prop → Prop → Prop
constant not : Prop → Prop
constant implies : Prop → Prop → Prop
variables p q r A B: Prop
#check and p q -- Prop
#check or (and p q) r -... |
a99da3a7f053fa6b75426eaa84642b85c326a04e | da23b545e1653cafd4ab88b3a42b9115a0b1355f | /src/tidy/rewrite_search/strategy/edit_distance.lean | f356889f8aa522a6fb59079b31106c3fb830ee2b | [] | no_license | minchaowu/lean-tidy | 137f5058896e0e81dae84bf8d02b74101d21677a | 2d4c52d66cf07c59f8746e405ba861b4fa0e3835 | refs/heads/master | 1,585,283,406,120 | 1,535,094,033,000 | 1,535,094,033,000 | 145,945,792 | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 2,711 | lean | import tidy.rewrite_search.engine
open tidy.rewrite_search
open tidy.rewrite_search.bound_progress
namespace tidy.rewrite_search.strategy.edit_distance
variables {α : Type} [decidable_eq α]
@[derive decidable_eq]
structure ed_partial :=
(prefix_length : ℕ)
(suffix : list string)
(distances : list ℕ) -- di... |
4ce25901c78a571fdee43cd4a79f3a3512d0491f | 8cae430f0a71442d02dbb1cbb14073b31048e4b0 | /archive/miu_language/decision_suf.lean | 8625a706de47b11c9559688366f874498fc8b61b | [
"Apache-2.0"
] | permissive | leanprover-community/mathlib | 56a2cadd17ac88caf4ece0a775932fa26327ba0e | 442a83d738cb208d3600056c489be16900ba701d | refs/heads/master | 1,693,584,102,358 | 1,693,471,902,000 | 1,693,471,902,000 | 97,922,418 | 1,595 | 352 | Apache-2.0 | 1,694,693,445,000 | 1,500,624,130,000 | Lean | UTF-8 | Lean | false | false | 14,629 | lean | /-
Copyright (c) 2020 Gihan Marasingha. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Gihan Marasingha
-/
import .decision_nec
import tactic.linarith
/-!
# Decision procedure - sufficient condition and decidability
> THIS FILE IS SYNCHRONIZED WITH MATHLIB4.
> Any ch... |
c2479cd163de88e8979119cca17beb69be5af29f | a45212b1526d532e6e83c44ddca6a05795113ddc | /src/data/char.lean | 94a651de537d4a65fe75681d2c32dbf357c7b7a3 | [
"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 | 652 | lean | /-
Copyright (c) 2018 Mario Carneiro. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Author: Mario Carneiro
Supplementary theorems about the `char` type.
-/
instance : decidable_linear_order char :=
{ le_refl := λ a, @le_refl ℕ _ _,
le_trans := λ a b c, @le_trans ℕ _ _ _ _,... |
9e3e3e104ff4d5cc69fb9bedca81a6e0513e867b | 30b012bb72d640ec30c8fdd4c45fdfa67beb012c | /data/padics/padic_norm.lean | 549ed84975fbaf3e0addba145b90f35240ec306f | [
"Apache-2.0"
] | permissive | kckennylau/mathlib | 21fb810b701b10d6606d9002a4004f7672262e83 | 47b3477e20ffb5a06588dd3abb01fe0fe3205646 | refs/heads/master | 1,634,976,409,281 | 1,542,042,832,000 | 1,542,319,733,000 | 109,560,458 | 0 | 0 | Apache-2.0 | 1,542,369,208,000 | 1,509,867,494,000 | Lean | UTF-8 | Lean | false | false | 20,631 | 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
Define the p-adic valuation on ℤ and ℚ, and the p-adic norm on ℚ
-/
import data.rat data.int.gcd algebra.field_power
import tactic.wlog tactic.ring
universe u
open ... |
1f2ee642e47e5babcc6c326eb3e4f9cb09df5f8a | 63abd62053d479eae5abf4951554e1064a4c45b4 | /src/linear_algebra/tensor_product.lean | 3abae6c67a113ee754b51de59a9ea6ff6f711fff | [
"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 | 24,134 | 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 group_theory.congruence
import linear_algebra.basic
/-!
# Tensor product of semimodules over commutative semirings.
This file constructs the tensor pr... |
d347f7bed4856678d2c78ba7bf527bafe8da707a | 9be442d9ec2fcf442516ed6e9e1660aa9071b7bd | /stage0/src/Lean/Util/FindExpr.lean | f43a29305cb681bceb99bb1971b4a5f189343732 | [
"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 | 3,734 | 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.Expr
namespace Lean
namespace Expr
namespace FindImpl
abbrev cacheSize : USize := 8192
structure State where
keys : Array Expr -- Remark: ... |
d04d5f4afcb62e2e2b90f4dc521fdeba781802bd | b7f22e51856f4989b970961f794f1c435f9b8f78 | /tests/lean/run/679b.lean | c43356af981f4d616026c3c4e414db2eb05dfe63 | [
"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 | 420 | lean | import data.finset
open bool nat list finset
definition fset [class] (A : Type) := finset A
definition fin_nat [instance] : fset nat :=
to_finset [0]
definition fin_bool [instance] : fset bool :=
to_finset [tt, ff]
definition tst (A : Type) [s : fset A] : finset A :=
s
example : tst nat = to_finset [0] :=
rfl
exa... |
dc9c3884611171346ae96f5a64ffdf637cf9543f | 82e44445c70db0f03e30d7be725775f122d72f3e | /src/data/list/perm.lean | 682e49f9c5cfa7124a63e8e4d70aa1e40943728f | [
"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 | 43,358 | 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.list.bag_inter
import data.list.erase_dup
import data.list.zip
import logic.relation
/-!
# List permutations
-/
... |
f702101c206d39417fdd9c04ed98999571ff2914 | 076f5040b63237c6dd928c6401329ed5adcb0e44 | /assignments/hw7_bool_sat/hw7_sat.lean | 2ba6864ae3cc48e35f9fd2312475b64de2b48155 | [] | no_license | kevinsullivan/uva-cs-dm-f19 | 0f123689cf6cb078f263950b18382a7086bf30be | 09a950752884bd7ade4be33e9e89a2c4b1927167 | refs/heads/master | 1,594,771,841,541 | 1,575,853,850,000 | 1,575,853,850,000 | 205,433,890 | 4 | 9 | null | 1,571,592,121,000 | 1,567,188,539,000 | Lean | UTF-8 | Lean | false | false | 5,744 | lean | import .prop_logic
import .bool_sat
open prop_logic
open prop_logic.var
open prop_logic.pExp
/-
An example: The 0th, 1st, and
2nd bits from the right in 100,
the binary numeral for decimal
4, are 0, 0, and 1, respectively.
-/
#eval mth_bit_from_right_in_n 2 4
/-
#1. Write and evaluate expressions
(using eval) t... |
58321025244efa2e3d858ede2d50d3ccc7a58932 | 9dd3f3912f7321eb58ee9aa8f21778ad6221f87c | /tests/lean/run/nested_common_subexpr_issue.lean | a824c9ae64752e4a00d0183571e7f339f31e3e9f | [
"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 | 336 | lean | -- set_option trace.compiler true
def fib_aux : ℕ → ℕ × ℕ
| 0 := (0, 1)
| (n+1) := let p := fib_aux n in (p.2, p.1 + p.2)
def fib n := (fib_aux n).2
vm_eval fib 10000
def fib_aux2 : ℕ → ℕ × ℕ
| 0 := (0, 1)
| (n+1) := let (a, b) := fib_aux2 n in (b, a + b)
def fib2 n := (fib_aux2 n).2
vm_eval fib2 10000
|
9e5e7f3084c95a640ec92022df1feaa7fd1d65cf | efce24474b28579aba3272fdb77177dc2b11d7aa | /src/homotopy_theory/topological_spaces/category.lean | 1c56251798315499bd9f11691447c7738f24be49 | [
"Apache-2.0"
] | permissive | rwbarton/lean-homotopy-theory | cff499f24268d60e1c546e7c86c33f58c62888ed | 39e1b4ea1ed1b0eca2f68bc64162dde6a6396dee | refs/heads/lean-3.4.2 | 1,622,711,883,224 | 1,598,550,958,000 | 1,598,550,958,000 | 136,023,667 | 12 | 6 | Apache-2.0 | 1,573,187,573,000 | 1,528,116,262,000 | Lean | UTF-8 | Lean | false | false | 2,830 | lean | import topology.maps
import category_theory.base
import category_theory.functor_category
import topology.category.Top.basic
open category_theory
universe u
namespace homotopy_theory.topological_spaces
namespace Top
local notation `Top` := Top.{u}
protected def mk_ob (α : Type u) [t : topological_space α] : Top :=... |
acfa5d50fe985010644a6774dd21305f4d0aa864 | a047a4718edfa935d17231e9e6ecec8c7b701e05 | /src/data/finmap.lean | 06dea05e27a8c5c06f3b6663745d1178c09a396f | [
"Apache-2.0"
] | permissive | utensil-contrib/mathlib | bae0c9fafe5e2bdb516efc89d6f8c1502ecc9767 | b91909e77e219098a2f8cc031f89d595fe274bd2 | refs/heads/master | 1,668,048,976,965 | 1,592,442,701,000 | 1,592,442,701,000 | 273,197,855 | 0 | 0 | null | 1,592,472,812,000 | 1,592,472,811,000 | null | UTF-8 | Lean | false | false | 18,199 | lean | /-
Copyright (c) 2018 Sean Leather. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Sean Leather, Mario Carneiro
Finite maps over `multiset`.
-/
import data.list.alist
import data.finset
import data.pfun
universes u v w
open list
variables {α : Type u} {β : α → Type v... |
b53be9c04190228d1f457d27d58ae66a7c9c8c2a | 77c5b91fae1b966ddd1db969ba37b6f0e4901e88 | /src/measure_theory/function/ess_sup.lean | 8a406a9281bd9ca1447f19e790e17cfb17958801 | [
"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 | 7,325 | lean | /-
Copyright (c) 2021 Rémy Degenne. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Rémy Degenne
-/
import measure_theory.measure.measure_space
import order.filter.ennreal
/-!
# Essential supremum and infimum
We define the essential supremum and infimum of a function `... |
d794aff7ef2be193ac6e60fad8ca2a4508413005 | 5df84495ec6c281df6d26411cc20aac5c941e745 | /src/formal_ml/prod_probability_space.lean | 5be05e91034fd43bfb93adf2d7ab48118d1ae3c1 | [
"Apache-2.0"
] | permissive | eric-wieser/formal-ml | e278df5a8df78aa3947bc8376650419e1b2b0a14 | 630011d19fdd9539c8d6493a69fe70af5d193590 | refs/heads/master | 1,681,491,589,256 | 1,612,642,743,000 | 1,612,642,743,000 | 360,114,136 | 0 | 0 | Apache-2.0 | 1,618,998,189,000 | 1,618,998,188,000 | null | UTF-8 | Lean | false | false | 18,125 | lean | /-
Copyright 2021 Google LLC
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
di... |
dd79c8e049b3fda50cada0b2c7a5883a5be9b3f9 | a9d0fb7b0e4f802bd3857b803e6c5c23d87fef91 | /tests/lean/run/sub.lean | bcb2b0539e9cf0fab0bf4d3dbd805124a1d32dd6 | [
"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 | 126 | lean | notation `{` binders:55 ` \ ` r:(scoped P, subtype P) `}` := r
check { x : nat \ x > 0 }
check { (x : nat → nat) \ true }
|
0f29a39fd6f1227025fb66e014d6d7682c856fe8 | bb31430994044506fa42fd667e2d556327e18dfe | /src/field_theory/finite/basic.lean | d75cbf123359130ad442bec237177f6defdbe927 | [
"Apache-2.0"
] | permissive | sgouezel/mathlib | 0cb4e5335a2ba189fa7af96d83a377f83270e503 | 00638177efd1b2534fc5269363ebf42a7871df9a | refs/heads/master | 1,674,527,483,042 | 1,673,665,568,000 | 1,673,665,568,000 | 119,598,202 | 0 | 0 | null | 1,517,348,647,000 | 1,517,348,646,000 | null | UTF-8 | Lean | false | false | 20,525 | lean | /-
Copyright (c) 2018 Chris Hughes. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Chris Hughes, Joey van Langen, Casper Putz
-/
import field_theory.separable
import field_theory.splitting_field
import ring_theory.integral_domain
import tactic.apply_fun
/-!
# Finite f... |
a5b0e0e36dfd9174b2d22932db5551b6275f3498 | 02005f45e00c7ecf2c8ca5db60251bd1e9c860b5 | /src/order/filter/cofinite.lean | 55a4f5b50f768fc76f7a3a2c5c844604828d7a71 | [
"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 | 3,133 | 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, Yury Kudryashov
-/
import order.filter.at_top_bot
/-!
# The cofinite filter
In this file we define
`cofinite`: the filter of sets with finite compleme... |
e82cd7a34f0d2bd2ef7a612e6a8dbd6b7e171477 | 88892181780ff536a81e794003fe058062f06758 | /src/lib/tactics.lean | 156fcb3a980dc96e2bba4fcd69bdda3ab92fb7f2 | [] | no_license | AtnNn/lean-sandbox | fe2c44280444e8bb8146ab8ac391c82b480c0a2e | 8c68afbdc09213173aef1be195da7a9a86060a97 | refs/heads/master | 1,623,004,395,876 | 1,579,969,507,000 | 1,579,969,507,000 | 146,666,368 | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 1,385 | lean | import tactic.ring
import tactic.finish
import tactic.interactive
import tactic.find
import tactic.tidy
import tactic.well_founded_tactics
import lib.tactic.dmatch
open lean
open lean.parser
namespace tactic
namespace interactive
open interactive interactive.types expr
-- `let_eq h : x = v` is like `generalize h : v... |
7aaf6c307c7d72f1d14214cce69b42cea2053b44 | 94e33a31faa76775069b071adea97e86e218a8ee | /src/topology/sheaves/sheaf_condition/opens_le_cover.lean | da501d97c8057a6b836424d344b5a15cbf544d46 | [
"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 | 14,002 | 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.presheaf
import category_theory.limits.final
import topology.sheaves.sheaf_condition.pairwise_intersections
/-!
# Another version of the shea... |
d87f019ddab3b96ab81a638d3fafd9b442986aac | 4727251e0cd73359b15b664c3170e5d754078599 | /src/data/nat/with_bot.lean | 46172cf2b36479cd779da75b732c49b75e6191ba | [
"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 | 2,322 | lean | /-
Copyright (c) 2018 Chris Hughes. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Chris Hughes
-/
import data.nat.basic
import algebra.order.group
/-!
# `with_bot ℕ`
Lemmas about the type of natural numbers with a bottom element adjoined.
-/
namespace nat
lemma with... |
22068464aea3e5fde22bba66d6c5346ef6755e6b | cf39355caa609c0f33405126beee2739aa3cb77e | /tests/lean/run/do_match_else.lean | be8e843a34b8f22a96df6529cf9983eab18c90a6 | [
"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 | 571 | lean | open tactic
set_option pp.all true
meta def app2 (f a b : expr) :=
expr.app (expr.app f a) b
example (a b c x y : nat) (H : nat.add (nat.add x y) y = 0) : true :=
by do
a ← get_local `a, b ← get_local `b, c ← get_local `c,
H ← get_local `H >>= infer_type,
(lhs, rhs) ← match_eq H,
nat_add : expr ← mk_const `n... |
e1e8bdf7cbd8cbeaa3a4d1d6bbb3e03811b35ad8 | 624f6f2ae8b3b1adc5f8f67a365c51d5126be45a | /tests/lean/run/frontend1.lean | 3ab4afc61ba8adaa14b451c7c75cb25d5d225154 | [
"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 | 7,310 | lean | import Init.Lean.Elab
open Lean
open Lean.Elab
def run (input : String) (failIff : Bool := true) : MetaIO Unit :=
do env ← MetaIO.getEnv;
opts ← MetaIO.getOptions;
(env, messages) ← liftM $ process input env opts;
messages.forM $ fun msg => IO.println msg;
when (failIff && messages.hasErrors) $ throw (IO.... |
3153563a51fdee5b2b1ed563bba2a8b4042dd1cc | 74addaa0e41490cbaf2abd313a764c96df57b05d | /Mathlib/algebra/lie/universal_enveloping_auto.lean | bad252c330a1526cc745b92305054eaeb3101bc5 | [] | 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,640 | 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 Mathlib.PrePort
import Mathlib.Lean3Lib.init.default
import Mathlib.algebra.lie.basic
import Mathlib.algebra.ring_quot
import Mathlib.linear_algebra.tensor_algebra
i... |
4e4716b52cd39d719bb6d7266f9b85451bf8c5e9 | 40ad357bbd0d327dd1e3e7f7beb868bd4e5b0a9d | /src/temporal_logic/fairness.lean | 1dca9a52d2c7f4a3ece3fa55bf2947a682e6bf78 | [] | no_license | unitb/temporal-logic | 9966424f015976d5997a9ffa30cbd77cc3a9cb1c | accec04d1b09ca841be065511c9e206b725b16e9 | refs/heads/master | 1,633,868,382,769 | 1,541,072,223,000 | 1,541,072,223,000 | 114,790,987 | 5 | 3 | null | null | null | null | UTF-8 | Lean | false | false | 5,476 | lean | -- import temporal_logic.tactic
import temporal_logic.lemmas
universes u u₀ u₁
open predicate temporal
namespace temporal
namespace fairness
section defs
variables p q A : cpred
def wf : cpred :=
◇◻p ⟶ ◻◇A
def sf : cpred :=
◻◇p ⟶ ◻◇A
def sched : cpred :=
◇◻p ⟶ ◻◇q ⟶ ◻◇(p ⋀ q ⋀ A)
instance persistent_sched : pe... |
851254f4f7870e6d4694a84d5b641d87a0f0d46a | a9d0fb7b0e4f802bd3857b803e6c5c23d87fef91 | /tests/lean/whnf_core1.lean | 8ab3497314dc39f09beffbcca3988feebaf88850 | [
"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 | 327 | lean | open tactic
definition f (a : nat) := a + 2
attribute [reducible]
definition g (a : nat) := a + 2
example (a : nat) : true :=
by do
to_expr `(f a) >>= whnf >>= trace,
to_expr `(g a) >>= whnf >>= trace,
to_expr `(f a) >>= whnf_core reducible >>= trace,
to_expr `(g a) >>= whnf_core reducible >>= trace,
const... |
d6438513888d0811ca99701b76ff196da861cec3 | 13d50f9487a2afddb5e1ae1bbe68f7870f70e79a | /ExportParser.lean | 4a5772fa02384f80257f706b56569dede79987fd | [] | no_license | gebner/lean4-mathlib-import | 09a09d9cc30738bcc253e919ab3485e13b8f992d | 719c0558dfa9c4ec201aa40f4786d5f1c1e4bd1e | refs/heads/master | 1,649,553,984,859 | 1,584,121,837,000 | 1,584,121,837,000 | 238,557,672 | 4 | 1 | null | null | null | null | UTF-8 | Lean | false | false | 4,053 | lean | -- new_frontend
import Init.Lean
open Lean
namespace Array
partial def write {α} [Inhabited α] : ∀ (arr : Array α) (i : Nat) (x : α), Array α
| arr, i, x =>
if i = arr.size then
arr.push x
else if i > arr.size then
write (arr.push (Inhabited.default _)) i x
else
arr.set! i x
end Array
namespace List
def spl... |
cb216d509eaef32f8ad079bb218c677b434a9af8 | 4727251e0cd73359b15b664c3170e5d754078599 | /src/algebra/group/commute.lean | aea715cf91e11dc9eac7ce720d281e5c7a73f76b | [
"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,599 | lean | /-
Copyright (c) 2019 Neil Strickland. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Neil Strickland, Yury Kudryashov
-/
import algebra.group.semiconj
/-!
# Commuting pairs of elements in monoids
We define the predicate `commute a b := a * b = b * a` and provide som... |
a6171a5c22b02f959587a502b76e4549aa293028 | b70031c8e2c5337b91d7e70f1e0c5f528f7b0e77 | /src/data/multiset/basic.lean | 3b09c50d59c4d59a149fb16840faca505fc90f8f | [
"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 | 87,429 | lean | /-
Copyright (c) 2015 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Author: Mario Carneiro
-/
import data.list.perm
import algebra.group_power
/-!
# Multisets
These are implemented as the quotient of a list by permutations.
## Notation
We define the ... |
cdd6526859c15b00a5ec7b62f7826be1c4273bd9 | 75db7e3219bba2fbf41bf5b905f34fcb3c6ca3f2 | /library/algebra/group.lean | 75b2d5b453be3c709905de6e71f89c84c71d797e | [
"Apache-2.0"
] | permissive | jroesch/lean | 30ef0860fa905d35b9ad6f76de1a4f65c9af6871 | 3de4ec1a6ce9a960feb2a48eeea8b53246fa34f2 | refs/heads/master | 1,586,090,835,348 | 1,455,142,203,000 | 1,455,142,277,000 | 51,536,958 | 1 | 0 | null | 1,455,215,811,000 | 1,455,215,811,000 | null | UTF-8 | Lean | false | false | 21,667 | 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. Partially modeled on Isabelle's library.
-/
import logic.eq data.unit data.sigma data.prod
import alge... |
4954dfbb6a709a4971056c3e80bd2d5133901c22 | 6432ea7a083ff6ba21ea17af9ee47b9c371760f7 | /src/Lean/Server/Rpc.lean | d4d6c0ab0ca918792d06c9496140a766f7362858 | [
"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 | 265 | lean | /-
Copyright (c) 2021 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Wojciech Nawrocki
-/
import Lean.Server.Rpc.Basic
import Lean.Server.Rpc.Deriving
import Lean.Server.Rpc.RequestHandling
|
1f62aa9217fe7bd48352b51254c7aa55ec6bc16c | 8cae430f0a71442d02dbb1cbb14073b31048e4b0 | /src/topology/algebra/infinite_sum/basic.lean | 69334b3838d575a1633f47b7aa64c9fd236ae2cf | [
"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 | 59,291 | 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 data.nat.parity
import logic.encodable.lattice
import topology.algebra.uniform_group
import topology.algebra.star
/-!
# Infinite sum over a topological monoid... |
83cf85f2ebd473fb3b156ba4e49aa151b694cd88 | e30ff3aabdac29f8ea40ad76887544d0f9be9018 | /ircbot/bitvec.lean | a3f582fc70932dac7d550f45f566ee7c46c33f84 | [] | no_license | forked-from-1kasper/leanbot | bdef0efa3e4d0eb75b06c1707fb4e35086bb57fa | c61c8c7fdad7b05877e0d232719ce23d2999557f | refs/heads/master | 1,651,846,081,986 | 1,646,404,009,000 | 1,646,404,009,000 | 127,132,795 | 12 | 1 | null | 1,605,183,650,000 | 1,522,237,998,000 | Lean | UTF-8 | Lean | false | false | 494 | lean | import data.vector
def bitvec := vector bool
def {u} vector.singleton {α : Type u} : α → vector α 1 :=
λ b, ⟨[b], rfl⟩
namespace bitvec
def of_nat : Π (n : ℕ), nat → bitvec n
| 0 x := vector.nil
| (n + 1) x := vector.append (of_nat n (x / 2))
(vector.singleton (t... |
29f0b0eeee141f6ab84e416578c8c8005d1dcbb7 | 6432ea7a083ff6ba21ea17af9ee47b9c371760f7 | /tests/lean/run/localNameResolutionWithProj.lean | d15d59d7fbfcd0adbcf035a3174a03afeb9bb4ad | [
"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 | 252 | lean |
macro "foo!" x:term : term => `(let xs := $x; xs.succ + xs)
def f1 (x : Nat) : Nat :=
foo! x+1
theorem ex1 (x : Nat) : f1 x = Nat.succ (x+1) + (x + 1) :=
rfl
def f2 (xs : Nat) : Nat :=
foo! xs
theorem ex2 (x : Nat) : f2 x = Nat.succ x + x :=
rfl
|
836290339f86c8a7be2c3e4151eb7065b481f3d2 | 74addaa0e41490cbaf2abd313a764c96df57b05d | /Mathlib/tactic/delta_instance_auto.lean | 48913f6f3a78f19c2c5d8a595da9359f27bcbee2 | [] | 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 | 788 | lean | /-
Copyright (c) 2019 Rob Lewis. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Rob Lewis
-/
import Mathlib.PrePort
import Mathlib.Lean3Lib.init.default
import Mathlib.tactic.simp_result
import Mathlib.PostPort
namespace Mathlib
namespace tactic
/--
`delta_instance... |
c3846b293fffb9665a8a6541d2fdf124ea972fb9 | 30b012bb72d640ec30c8fdd4c45fdfa67beb012c | /tactic/chain.lean | 337d9c490415a670dd807408a379048d6ac0732a | [
"Apache-2.0"
] | permissive | kckennylau/mathlib | 21fb810b701b10d6606d9002a4004f7672262e83 | 47b3477e20ffb5a06588dd3abb01fe0fe3205646 | refs/heads/master | 1,634,976,409,281 | 1,542,042,832,000 | 1,542,319,733,000 | 109,560,458 | 0 | 0 | Apache-2.0 | 1,542,369,208,000 | 1,509,867,494,000 | Lean | UTF-8 | Lean | false | false | 4,958 | lean | -- Copyright (c) 2018 Scott Morrison. All rights reserved.
-- Released under Apache 2.0 license as described in the file LICENSE.
-- Authors: Scott Morrison, Mario Carneiro
import tactic
import data.option
open interactive
namespace tactic
/-
This file defines a `chain` tactic, which takes a list of tactics, and ex... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.