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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
683d17b056049d120a23659fe5583045129f2311 | 6432ea7a083ff6ba21ea17af9ee47b9c371760f7 | /tests/pkg/user_ext/lakefile.lean | 2588ea8e195bf331c74e452dad7793c2f9725643 | [
"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 | 86 | lean | import Lake
open System Lake DSL
package user_ext
@[default_target] lean_lib UserExt
|
a562132dca940523070525ee0686b48c64c04ead | 7571914d3f4d9677288f35ab1a53a2ad70a62bd7 | /tests/lean/run/tuple_head_issue.lean | de26fa61c7aed3629ad987c03e52f5e343e1c620 | [
"Apache-2.0"
] | permissive | picrin/lean-1 | a395fed5287995f09a15a190bb24609919a0727f | b50597228b42a7eaa01bf8cb7a4fb1a98e7a8aab | refs/heads/master | 1,610,757,735,162 | 1,502,008,413,000 | 1,502,008,413,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 152 | lean | open nat
universe variables u
variable {α : Type u}
def head (n) : vector α (succ n) → α
| ⟨[], H⟩ := by contradiction
| ⟨a::b, H⟩ := a
|
45b7c7c57494644e2157afd4088c682fbd7e7dfa | 0bebf71b69ba876e3ff052251728b46e79d4f55b | /differential_geometry_in_hott/lean/spheres.lean | c2970b7157661e59f23bfa2771700197763c9a86 | [] | no_license | glangmead/writing | 448f4b3880d5478bc0a511c8d7038ab1cd95e0a6 | 296aa7ebc5c880fe1e1b7a594be67113d8cba677 | refs/heads/master | 1,688,939,782,411 | 1,687,865,154,000 | 1,687,865,154,000 | 212,832,461 | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 6,733 | lean | import geometry.manifold.real_instances
noncomputable theory
variable (n : ℕ)
theorem finset.image_val_univ_eq_range (n : ℕ) : finset.image (λ (x : fin n), x.val) finset.univ = finset.range n :=
begin
ext j, -- sigh
rw [finset.mem_range, finset.mem_image],
split,
rintro ⟨⟨j,hj⟩, _, rfl⟩,
exact hj,
in... |
b1551a6db388f65c2ce68b47565aa7e8b2c9244a | b73bd2854495d87ad5ce4f247cfcd6faa7e71c7e | /src/game/world3/level4.lean | 03fe77181a8d8d6ba9c3b5f462ab3808ed431b52 | [] | no_license | agusakov/category-theory-game | 20db0b26270e0c95a3d5605498570273d72f731d | 652dd7e90ae706643b2a597e2c938403653e167d | refs/heads/master | 1,669,201,216,310 | 1,595,740,057,000 | 1,595,740,057,000 | 280,895,295 | 12 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 997 | lean | import category_theory.category.default
universes v u -- The order in this declaration matters: v often needs to be explicitly specified while u often can be omitted
namespace category_theory
variables (C : Type u) [category.{v} C]
--rewrite this
/-
# Category world
## Level 7: Cancellations
With monomorphisms ... |
11acfbaca33a68d014ba34c1e88ba738e0864e6b | fa02ed5a3c9c0adee3c26887a16855e7841c668b | /src/topology/algebra/ordered/liminf_limsup.lean | 16e954577ba93c0d1593b18e2cd2985a75ee1a33 | [
"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 | 6,248 | 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, Yury Kudryashov
-/
import topology.algebra.ordered.basic
import order.liminf_limsup
/-!
# Lemmas about liminf and limsup in an order topology.
-/
open... |
e75f23aeadcc70fe0a226cfbba68fc994e51f3e3 | 367134ba5a65885e863bdc4507601606690974c1 | /src/data/mv_polynomial/monad.lean | f38e824e42e24705e1cb245f0c21e49d052e472c | [
"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 | 13,426 | lean | /-
Copyright (c) 2020 Johan Commelin and Robert Y. Lewis. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Johan Commelin and Robert Y. Lewis
-/
import data.mv_polynomial.rename
/-!
# Monad operations on `mv_polynomial`
This file defines two monadic operations on `mv... |
d0fe58571bc99b61ecb9792fab5d49db658f4c44 | 4727251e0cd73359b15b664c3170e5d754078599 | /src/algebra/category/Module/abelian.lean | c5bee70e2efed206f62f5d116e959395ec1e7752 | [
"Apache-2.0"
] | permissive | Vierkantor/mathlib | 0ea59ac32a3a43c93c44d70f441c4ee810ccceca | 83bc3b9ce9b13910b57bda6b56222495ebd31c2f | refs/heads/master | 1,658,323,012,449 | 1,652,256,003,000 | 1,652,256,003,000 | 209,296,341 | 0 | 1 | Apache-2.0 | 1,568,807,655,000 | 1,568,807,655,000 | null | UTF-8 | Lean | false | false | 3,302 | lean | /-
Copyright (c) 2020 Markus Himmel. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Markus Himmel
-/
import linear_algebra.isomorphisms
import algebra.category.Module.kernels
import algebra.category.Module.limits
import category_theory.abelian.exact
/-!
# The category... |
013069c54ce1e9cbf4731c2a4919fbd18e33344d | 74addaa0e41490cbaf2abd313a764c96df57b05d | /Mathlib/data/equiv/transfer_instance.lean | 3cfb04ec04e043279380642e7fdf110c0285c483 | [] | no_license | AurelienSaue/Mathlib4_auto | f538cfd0980f65a6361eadea39e6fc639e9dae14 | 590df64109b08190abe22358fabc3eae000943f2 | refs/heads/master | 1,683,906,849,776 | 1,622,564,669,000 | 1,622,564,669,000 | 371,723,747 | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 11,451 | 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 Mathlib.PrePort
import Mathlib.Lean3Lib.init.default
import Mathlib.data.equiv.basic
import Mathlib.algebra.field
import Mathlib.algebra.module.default
import ... |
c325db71578813bb8d1cf4de1c3360da68e518eb | 43390109ab88557e6090f3245c47479c123ee500 | /src/Euclid_old/tarski_5.lean | d05e031beb5e5783e14812d34d95c38ff4cbe5ee | [
"Apache-2.0"
] | permissive | Ja1941/xena-UROP-2018 | 41f0956519f94d56b8bf6834a8d39473f4923200 | b111fb87f343cf79eca3b886f99ee15c1dd9884b | refs/heads/master | 1,662,355,955,139 | 1,590,577,325,000 | 1,590,577,325,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 34,101 | lean | import Euclid.tarski_4
open classical set
namespace Euclidean_plane
variables {point : Type} [Euclidean_plane point]
local attribute [instance] prop_decidable
-- Line Reflections
noncomputable def mid (a b : point) : point := classical.some (eight22 a b)
theorem ten1 (a b : point) : M a (mid a b) b := (classical.so... |
6d70cf9179190ad7d9053a8b8106671be9919d41 | 8cae430f0a71442d02dbb1cbb14073b31048e4b0 | /src/category_theory/bicategory/basic.lean | 890c3299d03af00db5eaa89d58ddf99468ef9362 | [
"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 | 19,748 | lean | /-
Copyright (c) 2021 Yuma Mizuno. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Yuma Mizuno
-/
import category_theory.isomorphism
import tactic.slice
/-!
# Bicategories
> THIS FILE IS SYNCHRONIZED WITH MATHLIB4.
> Any changes to this file require a corresponding PR... |
562b7d1ab11df8e2a7dfb483270e9185bfd931eb | 32025d5c2d6e33ad3b6dd8a3c91e1e838066a7f7 | /src/Lean/Data/Lsp/Diagnostics.lean | b1086d572aef3e0a2ac795fb798ea0f63d79061a | [
"Apache-2.0"
] | permissive | walterhu1015/lean4 | b2c71b688975177402758924eaa513475ed6ce72 | 2214d81e84646a905d0b20b032c89caf89c737ad | refs/heads/master | 1,671,342,096,906 | 1,599,695,985,000 | 1,599,695,985,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 5,081 | lean | /-
Copyright (c) 2020 Marc Huisinga. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Marc Huisinga, Wojciech Nawrocki
-/
import Lean.Data.Json
import Lean.Data.Lsp.Basic
import Lean.Data.Lsp.Utf16
import Lean.Message
/-! Definitions and functionality for emitting dia... |
3b519c09ebaf57e2090c29c9506ed476a1ec8af3 | 4f643cce24b2d005aeeb5004c2316a8d6cc7f3b1 | /omin/def_choice/choice5.lean | ba7724fdf9d9d9b1dcf3cdd97bec55533cb765b2 | [] | no_license | rwbarton/lean-omin | da209ed061d64db65a8f7f71f198064986f30eb9 | fd733c6d95ef6f4743aae97de5e15df79877c00e | refs/heads/master | 1,674,408,673,325 | 1,607,343,535,000 | 1,607,343,535,000 | 285,150,399 | 9 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 5,973 | lean | import o_minimal.sheaf.yoneda
import .choice3
import .choice4
open o_minimal
universe u
variables {R : Type u} [OQM R]
variables {S : struc R} [o_minimal_add S]
-- We need Y and R to live in the same universe to apply `def_graph`.
-- Is this really necessary?
-- jmc: ↑ is now obsolete
variables {Y : Type*} [has_c... |
d94d6a2ef2eca8713d9b3e6c9ef4a93221b2e68a | d406927ab5617694ec9ea7001f101b7c9e3d9702 | /src/topology/metric_space/metric_separated.lean | 8e6bbf6f41d6ccd533fe2eaaac8b3907399a5b89 | [
"Apache-2.0"
] | permissive | alreadydone/mathlib | dc0be621c6c8208c581f5170a8216c5ba6721927 | c982179ec21091d3e102d8a5d9f5fe06c8fafb73 | refs/heads/master | 1,685,523,275,196 | 1,670,184,141,000 | 1,670,184,141,000 | 287,574,545 | 0 | 0 | Apache-2.0 | 1,670,290,714,000 | 1,597,421,623,000 | Lean | UTF-8 | Lean | false | false | 4,449 | lean | /-
Copyright (c) 2021 Yury Kudryashov. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Yury Kudryashov
-/
import topology.metric_space.emetric_space
/-!
# Metric separated pairs of sets
In this file we define the predicate `is_metric_separated`. We say that two sets i... |
89bc1e7c8dcc1a0601dd36f917db60612d755d01 | a9d0fb7b0e4f802bd3857b803e6c5c23d87fef91 | /library/data/fintype/card.lean | c58cff507f48aec6aabf6b12842e313f5e6669f7 | [
"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 | 2,050 | lean | /-
Copyright (c) 2015 Haitao Zhang. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Author: Haitao Zhang
Cardinality for finite types.
-/
import .basic data.list data.finset.card
open eq.ops nat function list finset
namespace fintype
attribute [reducible]
definition card (A :... |
cc7aa415e4a20f0f1e5cad1d90b69366eee404f9 | a7eef317ddec01b9fc6cfbb876fe7ac00f205ac7 | /src/tactic/lint/simp.lean | ff570c793162a8f46acad68c2ed9749ff527ef13 | [
"Apache-2.0"
] | permissive | kmill/mathlib | ea5a007b67ae4e9e18dd50d31d8aa60f650425ee | 1a419a9fea7b959317eddd556e1bb9639f4dcc05 | refs/heads/master | 1,668,578,197,719 | 1,593,629,163,000 | 1,593,629,163,000 | 276,482,939 | 0 | 0 | null | 1,593,637,960,000 | 1,593,637,959,000 | null | UTF-8 | Lean | false | false | 9,352 | lean | /-
Copyright (c) 2020 Gabriel Ebner. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Gabriel Ebner
-/
import tactic.lint.basic
/-!
# Linter for simplification lemmas
This files defines several linters that prevent common mistakes when declaring simp lemmas:
* `simp_... |
13dedab8137f63d83ef51956c19f2f099d3cff74 | 206422fb9edabf63def0ed2aa3f489150fb09ccb | /src/measure_theory/ae_measurable_sequence.lean | bdca277c779dca68926ad5bd1b7e00cb9d81f9df | [
"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 | 6,366 | 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_space
/-!
# Sequence of measurable functions associated to a sequence of a.e.-measurable functions
We define here tools to prove statemen... |
58e23cb7cdb27af48823356eced82a554cef5e27 | a5271082abc327bbe26fc4acdaa885da9582cefa | /src/prop.lean | 572e07b2dad70aaacd44ff5687da5914888f6926 | [
"Apache-2.0"
] | permissive | avigad/embed | 9ee7d104609eeded173ca1e6e7a1925897b1652a | 0e3612028d4039d29d06239ef03bc50576ca0f8b | refs/heads/master | 1,584,548,951,613 | 1,527,883,346,000 | 1,527,883,346,000 | 134,967,973 | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 7,778 | lean | import .exp .print
namespace prop
variable {α : Type}
class is_symb (α : Type) :=
(true : α) (false : α) (not : α)
(and : α) (or : α) (imp : α)
def true [is_symb α] := @exp.cst α (is_symb.true α)
notation `⊤'` := true
def false [is_symb α] := @exp.cst α (is_symb.false α)
notation `⊥'` := false
def not [is_symb ... |
af5fa40a92cd03899fba60c1a28809638266d5d2 | 8d65764a9e5f0923a67fc435eb1a5a1d02fd80e3 | /src/measure_theory/function/continuous_map_dense.lean | 15b69a5dc03822a7b562740fe2ef55db807e2f8a | [
"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 | 10,296 | lean | /-
Copyright (c) 2021 Heather Macbeth. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Heather Macbeth
-/
import measure_theory.measure.regular
import measure_theory.function.simple_func_dense
import topology.urysohns_lemma
/-!
# Approximation in Lᵖ by continuous func... |
13b78b86ea803f44fe51a878f7c03b4a16d3c7f3 | 041929c569a4eeeafb4efdddab8a644f6df383c5 | /src/mazes/gcd_maze/level85.lean | 314be0f455b248d98dd330f82ff4564cfdd0f8b2 | [] | no_license | kbuzzard/xena-maze-game | 30ffbe956762dd6603e74efd823d375649e037c3 | 098454dd6acc4c06beccf52b6547bf4cd99cc581 | refs/heads/master | 1,670,840,300,174 | 1,598,554,198,000 | 1,598,554,198,000 | 290,856,036 | 4 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 656 | lean | -- import the definition of the gcd maze
import mazes.gcd_maze.definition
import data.int.gcd
open maze direction
/-
# Bezout's Theorem Example maze.
You are in a maze of integers, all distinct.
You can go north, south east or west.
North adds 8 to your integer, South subtracts 8.
East adds 5 to your integer, Wes... |
9998e77584d9f050c066e0fde428e0259beca57c | 30b012bb72d640ec30c8fdd4c45fdfa67beb012c | /data/analysis/topology.lean | 4e1527dc374a3a290db3f4039e11ded5dbcdc713 | [
"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 | 8,441 | lean | /-
Copyright (c) 2017 Mario Carneiro. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Mario Carneiro
Computational realization of topological spaces (experimental).
-/
import analysis.topology.topological_space data.analysis.filter
open set
open filter (hiding realizer... |
1b07f66d65fcb8a008485256731c23f8d060867d | 05f637fa14ac28031cb1ea92086a0f4eb23ff2b1 | /tests/lean/simp9.lean | d09fd4588b7fc8692928397d958fbdaac02ef54d | [
"Apache-2.0"
] | permissive | codyroux/lean0.1 | 1ce92751d664aacff0529e139083304a7bbc8a71 | 0dc6fb974aa85ed6f305a2f4b10a53a44ee5f0ef | refs/heads/master | 1,610,830,535,062 | 1,402,150,480,000 | 1,402,150,480,000 | 19,588,851 | 2 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 349 | lean | variables a b c d e f : Nat
rewrite_set simple
add_rewrite Nat::mul_assoc Nat::mul_comm Nat::mul_left_comm Nat::add_assoc Nat::add_comm Nat::add_left_comm
Nat::distributer Nat::distributel : simple
(*
local t = parse_lean("(a + b) * (c + d) * (e + f) * (a + b) * (c + d) * (e + f)")
local t2, pr = simpl... |
725265c9f632cffa9598818befa3e7a0a82afa3a | 6432ea7a083ff6ba21ea17af9ee47b9c371760f7 | /tests/compiler/overflow2.lean | b2cfb8046ac229eabc0cbb60a7e49e8181a0d6b2 | [
"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 | 448 | lean | def longArray (n : Nat := 50000) (xs : Array Char := #[]) : Array Char :=
match n with
| 0 => xs
| n+1 => longArray n (xs.push 'a')
def OverflowFold
{m : Type -> Type}
[inst1: Monad m]
(xs: Array Char) :
StateT Nat m Nat :=
xs.foldlM (fun (len : Nat) (s : Char) =>
match s with
| 'z' => panic "z"
... |
c2a586df3234af69a65e810cee44eb6c1530569d | fd71e7836e9a5d14548f6d3291653cbb6c608dbe | /src/test/slim_check/gen.lean | 1c4d5e0287b56ee0b97bae953db5c9eb45501fb2 | [] | no_license | cipher1024/slim_check | 382c80a98aed105a97eeac84f590a06dca4d8c7d | 5969b7f72e01fdd46f2502ed0cbf69c0699061d4 | refs/heads/master | 1,625,514,334,828 | 1,574,118,572,000 | 1,574,118,572,000 | 101,538,155 | 2 | 1 | null | null | null | null | UTF-8 | Lean | false | false | 2,702 | lean | import test.random
import system.random
import test.slim_check.liftable
universes u v
@[reducible]
def gen (α : Type u) := reader_t (ulift ℕ) rand α
-- namespace gen
-- variables {α β γ : Type u}
-- protected def pure (x : α) : gen α :=
-- λ _, pure x
-- protected def bind (x : gen α) (f : α → gen β) : gen β
-- ... |
1f725f0fb1f56db9df9b0a9fbdb704ade6318b57 | 491068d2ad28831e7dade8d6dff871c3e49d9431 | /tests/lean/run/592.lean | 3b8584da48e4c2a210b259cc4ecdfafc0d7cc6fe | [
"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 | 135 | lean | import data.nat
open nat
definition foo (a b : nat) := a * b
example (a : nat) : foo a 0 = 0 :=
calc a * 0 = 0 : by rewrite mul_zero
|
667f3567cdd45184961d62601e310f467cd42f64 | ee8cdbabf07f77e7be63a449b8483ce308d37218 | /lean/src/test/mathd-algebra-113.lean | d78204a5ce72b488de46dd6cddddea5b15ca4e9d | [
"MIT",
"Apache-2.0"
] | 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 | 247 | 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 : ℝ) : x^2 - 14 * x + 3 ≥ 7^2 - 14 * 7 + 3 :=
begin
sorry
end
|
92b8b2bd8c750c6b0baf9210ffe4f60bfed1b0e1 | 9dc8cecdf3c4634764a18254e94d43da07142918 | /src/category_theory/limits/shapes/kernels.lean | b2a193257f7732d13df32b94a9d0521695763807 | [
"Apache-2.0"
] | permissive | jcommelin/mathlib | d8456447c36c176e14d96d9e76f39841f69d2d9b | ee8279351a2e434c2852345c51b728d22af5a156 | refs/heads/master | 1,664,782,136,488 | 1,663,638,983,000 | 1,663,638,983,000 | 132,563,656 | 0 | 0 | Apache-2.0 | 1,663,599,929,000 | 1,525,760,539,000 | Lean | UTF-8 | Lean | false | false | 37,314 | lean | /-
Copyright (c) 2019 Scott Morrison. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Scott Morrison, Markus Himmel
-/
import category_theory.limits.preserves.shapes.zero
/-!
# Kernels and cokernels
In a category with zero morphisms, the kernel of a morphism `f : X ⟶ ... |
f23e152289793e914ec2f93a5ae8f8486ce4b9be | 77c5b91fae1b966ddd1db969ba37b6f0e4901e88 | /src/analysis/normed_space/dual.lean | 676ad45e51ac31e32df65db96b4105f3f2725959 | [
"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 | 4,050 | lean | /-
Copyright (c) 2020 Heather Macbeth. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Heather Macbeth
-/
import analysis.normed_space.hahn_banach
/-!
# The topological dual of a normed space
In this file we define the topological dual of a normed space, and the bound... |
d070e4ebee635aaeaee3800534b71e59e9e144db | fe6a6bdd171ff04b1f2728c050ebe0262fb5f788 | /compilador.lean | eb4625b6ddcc4cb67806dd22ec33e80f34aca001 | [] | no_license | FeIipeVieira/LogicasFormaisSistemasNormativos | 4a4cc9fe2fa70e7acdc1ff34b81783b6a26a2b6f | c63dd3b15a072779200a12eb6b88a60acf065d70 | refs/heads/master | 1,583,547,325,700 | 1,536,799,298,000 | 1,536,799,298,000 | 127,204,138 | 1 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 1,230 | lean | open nat
namespace hidden
inductive Expr
| ENat : ℕ → Expr
| ESum : Expr → Expr → Expr
| EEq : Expr → Expr → Expr
open Expr
#check EEq (ENat 1) (ENat 1)
inductive RType
| RNat : RType
| RBool : RType
open RType
inductive Typ : Expr → RType → Prop
| tnat : ∀ {n}, Typ (ENat n) RNat
| tplus : ... |
6d41f4f1eac25d3a0fa3ddd19b45e820557e315c | 4fa161becb8ce7378a709f5992a594764699e268 | /src/data/fintype/card.lean | 318726f90aea77844eaf123788d59c0c9fa2c738 | [
"Apache-2.0"
] | permissive | laughinggas/mathlib | e4aa4565ae34e46e834434284cb26bd9d67bc373 | 86dcd5cda7a5017c8b3c8876c89a510a19d49aad | refs/heads/master | 1,669,496,232,688 | 1,592,831,995,000 | 1,592,831,995,000 | 274,155,979 | 0 | 0 | Apache-2.0 | 1,592,835,190,000 | 1,592,835,189,000 | null | UTF-8 | Lean | false | false | 14,887 | lean | /-
Copyright (c) 2017 Mario Carneiro. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Author: Mario Carneiro
-/
import data.fintype.basic
import data.nat.choose
import tactic.ring
/-!
Results about "big operations" over a `fintype`, and consequent
results about cardinalities of... |
8dab9d7a92ee65b01faad3da89994d554d1676b1 | d406927ab5617694ec9ea7001f101b7c9e3d9702 | /src/tactic/linear_combination.lean | 306bfd6ea743995ab06927fbda113d01e4c0e2e3 | [
"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,555 | lean | /-
Copyright (c) 2022 Abby J. Goldberg. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Abby J. Goldberg
-/
import tactic.ring
/-!
# linear_combination Tactic
In this file, the `linear_combination` tactic is created. This tactic, which
works over `ring`s, attempts t... |
1e99989b43b4983343801bc8fe1b75a91253803a | 57c233acf9386e610d99ed20ef139c5f97504ba3 | /src/linear_algebra/quadratic_form/real.lean | 757b98001d69a342a10b9162056e994addb1881e | [
"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,357 | 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... |
ad6c2b5c188713279a452888e51c1614bcd02245 | fa02ed5a3c9c0adee3c26887a16855e7841c668b | /test/monotonicity.lean | acac5cef47471a621b611dfb9da14368994c377d | [
"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 | 8,593 | lean | /-
Copyright (c) 2019 Simon Hudon. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Simon Hudon
-/
import tactic.monotonicity
import tactic.norm_num
import algebra.ordered_ring
import measure_theory.lebesgue_measure
import data.list.defs
open list tactic tactic.interact... |
e7b9a74b57d8aaa48d12857dd753bac721f823f7 | a7eef317ddec01b9fc6cfbb876fe7ac00f205ac7 | /src/ring_theory/subring.lean | 76edb142cc94ca664a7786e06a2a6aae73488471 | [
"Apache-2.0"
] | permissive | kmill/mathlib | ea5a007b67ae4e9e18dd50d31d8aa60f650425ee | 1a419a9fea7b959317eddd556e1bb9639f4dcc05 | refs/heads/master | 1,668,578,197,719 | 1,593,629,163,000 | 1,593,629,163,000 | 276,482,939 | 0 | 0 | null | 1,593,637,960,000 | 1,593,637,959,000 | null | UTF-8 | Lean | false | false | 8,255 | lean | /-
Copyright (c) 2018 Johan Commelin. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Johan Commelin
-/
import deprecated.subgroup
universes u v
open group
variables {R : Type u} [ring R]
section prio
set_option default_priority 100 -- see Note [default priority]
/-... |
39901967c4b1863933ab884d147f08d5ac39eddf | 9c1ad797ec8a5eddb37d34806c543602d9a6bf70 | /universal/comparisons.lean | 1f9a26fb1ce2bf9d31660131f501914b5ab55e1d | [] | 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 | 6,078 | lean | -- Copyright (c) 2017 Scott Morrison. All rights reserved.
-- Released under Apache 2.0 license as described in the file LICENSE.
-- Authors: Stephen Morgan, Scott Morrison
import ..isomorphism
import ..natural_transformation
import ..examples.types.types
import ..equivalence
import .comma_categories
import .universal... |
45b999c469081e6741afac6a1b981ca64362bd38 | 69d4931b605e11ca61881fc4f66db50a0a875e39 | /src/field_theory/finite/polynomial.lean | 8871c3f7ec2ba3d44c6cefb1366d0f2f3e38a01b | [
"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 | 7,714 | 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 field_theory.finite.basic
import field_theory.mv_polynomial
import data.mv_polynomial.expand
import linear_algebra.basic
import linear_algebra.finite_dimensio... |
34257655b60f7d35e4c3489e2d26064ffa402f0d | 63abd62053d479eae5abf4951554e1064a4c45b4 | /src/linear_algebra/direct_sum_module.lean | e61309c37bfbbc56826d1b7980b81318df280fd0 | [
"Apache-2.0"
] | permissive | Lix0120/mathlib | 0020745240315ed0e517cbf32e738d8f9811dd80 | e14c37827456fc6707f31b4d1d16f1f3a3205e91 | refs/heads/master | 1,673,102,855,024 | 1,604,151,044,000 | 1,604,151,044,000 | 308,930,245 | 0 | 0 | Apache-2.0 | 1,604,164,710,000 | 1,604,163,547,000 | null | UTF-8 | Lean | false | false | 4,987 | lean | /-
Copyright (c) 2018 Kenny Lau. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Kenny Lau
Direct sum of modules over commutative rings, indexed by a discrete type.
-/
import algebra.direct_sum
import linear_algebra.basic
/-!
# Direct sum of modules over commutative r... |
87cc0f533e096f2abcba262baf696ad1a08abd63 | 76c77df8a58af24dbf1d75c7012076a42244d728 | /tutorial_src/exercises/02_iff_if_and.lean | 9dcad0803cb95c31a19146f5a40a56a2fb5cbac1 | [] | 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,975 | lean | import data.real.basic
/-
In the previous file, we saw how to rewrite using equalities.
The analogue operation with mathematical statements is rewriting using
equivalences. This is also done using the `rw` tactic.
Lean uses ↔ to denote equivalence instead of ⇔.
In the following exercises we will use the lemma:
sub... |
5ceafae3b0d78304474d9be4caaaea1d99763cd4 | 4d2583807a5ac6caaffd3d7a5f646d61ca85d532 | /src/ring_theory/ideal/operations.lean | df1f2889ee3b85aa69d611475030106efb938ff1 | [
"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 | 74,425 | lean | /-
Copyright (c) 2018 Kenny Lau. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Kenny Lau
-/
import algebra.algebra.operations
import algebra.algebra.tower
import data.equiv.ring
import data.nat.choose.sum
import ring_theory.coprime.lemmas
import ring_theory.ideal.quot... |
8c215116f3412f772fa1468a1570bd2da05139cc | 432d948a4d3d242fdfb44b81c9e1b1baacd58617 | /src/algebraic_topology/simplicial_object.lean | 560ed2b03e80b29a97a1efba8bb114c2e9ac8af5 | [
"Apache-2.0"
] | permissive | JLimperg/aesop3 | 306cc6570c556568897ed2e508c8869667252e8a | a4a116f650cc7403428e72bd2e2c4cda300fe03f | refs/heads/master | 1,682,884,916,368 | 1,620,320,033,000 | 1,620,320,033,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 5,220 | lean | /-
Copyright (c) 2021 Scott Morrison. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Johan Commelin, Scott Morrison, Adam Topaz
-/
import algebraic_topology.simplex_category
import category_theory.category.ulift
import category_theory.limits.functor_category
import cat... |
76bfa7349ff56dfc3f9243248638820cbe215c3e | 9dd3f3912f7321eb58ee9aa8f21778ad6221f87c | /tests/lean/unification_hints1.lean | 2ee01fab04c4de67839a4e8c25fcd346bab0a49d | [
"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 | 1,512 | lean | --
open list nat
namespace toy
constants (A : Type) (f h : A → A) (x y z : A)
attribute [irreducible]
noncomputable definition g (x y : A) : A := f z
#unify (g x y), (f z)
@[unify]
noncomputable definition toy_hint (x y : A) : unification_hint :=
{ pattern := g x y ≟ f z,
constraints := [] }
#unify (g x y), (f z)... |
9f6f077a488f169df058d2b91d42c1ca40e019ff | 4d2583807a5ac6caaffd3d7a5f646d61ca85d532 | /src/geometry/manifold/derivation_bundle.lean | b5843fffa74403d66ff4e2d96a8fbb75d4c00638 | [
"Apache-2.0"
] | permissive | AntoineChambert-Loir/mathlib | 64aabb896129885f12296a799818061bc90da1ff | 07be904260ab6e36a5769680b6012f03a4727134 | refs/heads/master | 1,693,187,631,771 | 1,636,719,886,000 | 1,636,719,886,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 6,348 | lean | /-
Copyright © 2020 Nicolò Cavalleri. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Nicolò Cavalleri
-/
import geometry.manifold.algebra.smooth_functions
import ring_theory.derivation
/-!
# Derivation bundle
In this file we define the derivations at a point of a m... |
72277466cd05b0098c650120d2a2c88e78141c75 | 80cc5bf14c8ea85ff340d1d747a127dcadeb966f | /src/topology/metric_space/gluing.lean | b8a34dd235e2b96eb6882802beaac17a5b371747 | [
"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,831 | lean | /-
Copyright (c) 2019 Sébastien Gouëzel. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Gluing metric spaces
Authors: Sébastien Gouëzel
-/
import topology.metric_space.isometry
import topology.metric_space.premetric_space
/-!
# Metric space gluing
Gluing two metric spaces alo... |
b55503bcea2842c6dd754a56dbb1f1091a113964 | 57c233acf9386e610d99ed20ef139c5f97504ba3 | /src/algebra/category/CommRing/colimits.lean | f4a3b8d687c1ffe478757ff7924c529a1a072cfd | [
"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 | 12,908 | 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 algebra.category.CommRing.basic
import category_theory.limits.has_limits
import category_theory.limits.concrete_category
/-!
# The category of commutative rin... |
448470ef78e563974ce792c2f3cbabe56b5a4ac5 | 80746c6dba6a866de5431094bf9f8f841b043d77 | /src/category_theory/yoneda.lean | e3e94e482c519905f317a537458bbe7036ea62e0 | [
"Apache-2.0"
] | permissive | leanprover-fork/mathlib-backup | 8b5c95c535b148fca858f7e8db75a76252e32987 | 0eb9db6a1a8a605f0cf9e33873d0450f9f0ae9b0 | refs/heads/master | 1,585,156,056,139 | 1,548,864,430,000 | 1,548,864,438,000 | 143,964,213 | 0 | 0 | Apache-2.0 | 1,550,795,966,000 | 1,533,705,322,000 | Lean | UTF-8 | Lean | false | false | 6,505 | lean | -- Copyright (c) 2017 Scott Morrison. All rights reserved.
-- Released under Apache 2.0 license as described in the file LICENSE.
-- Authors: Scott Morrison
/- The Yoneda embedding, as a functor `yoneda : C ⥤ (Cᵒᵖ ⥤ Type v₁)`,
along with an instance that it is `fully_faithful`.
Also the Yoneda lemma, `yoneda_le... |
ba20a54e77756d630a05516e373cf9ecd1a06fdd | 4727251e0cd73359b15b664c3170e5d754078599 | /src/topology/stone_cech.lean | 4f93bb4abf2a2ae31995881e1c832ea65146f348 | [
"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 | 12,075 | lean | /-
Copyright (c) 2018 Reid Barton. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Reid Barton
-/
import topology.bases
import topology.dense_embedding
/-! # Stone-Čech compactification
Construction of the Stone-Čech compactification using ultrafilters.
Parts of the ... |
9f5dee1d9276ad73d014b791c98687f17c7ba378 | dc253be9829b840f15d96d986e0c13520b085033 | /cohomology/basic.hlean | fcaac450d759ccabd2c09e787f4de65bb15b1bbd | [
"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 | 25,586 | hlean | /-
Copyright (c) 2016 Floris van Doorn. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Floris van Doorn, Ulrik Buchholtz
Reduced cohomology of spectra and cohomology theories
-/
import ..spectrum.basic ..algebra.arrow_group ..algebra.product_group ..choice
..h... |
17711b6a09b6a7eca25dee862b8096ef871ccfca | 8e31b9e0d8cec76b5aa1e60a240bbd557d01047c | /scratch/simplexfmatrix.lean | 55be97bd57e695df437b3046b3d3b6d3502989d5 | [] | no_license | ChrisHughes24/LP | 7bdd62cb648461c67246457f3ddcb9518226dd49 | e3ed64c2d1f642696104584e74ae7226d8e916de | refs/heads/master | 1,685,642,642,858 | 1,578,070,602,000 | 1,578,070,602,000 | 195,268,102 | 4 | 3 | null | 1,569,229,518,000 | 1,562,255,287,000 | Lean | UTF-8 | Lean | false | false | 648 | lean | import .simplex_new_pivot .fmatrix
namespace fmatrix
open pequiv simplex
variables {m n : ℕ}
def pivot_element (B : prebasis m n) (A_bar : fmatrix m n) (r : fin m) (s : fin (n - m)) : ℚ :=
A_bar.read r (B.nonbasisg s)
def choose_pivot_row (B : prebasis m n) (A_bar : fmatrix m n) (b_bar : fmatrix m 1)
(c : fmatrix ... |
3e3bfc8bd553322770dd8816beb2a99a25c2ec9f | 2a70b774d16dbdf5a533432ee0ebab6838df0948 | /_target/deps/mathlib/src/combinatorics/simple_graph/basic.lean | 8cf62cbaa9fc07fd7ceea7673e8cb7bb6eeefec8 | [
"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 | 11,305 | lean | /-
Copyright (c) 2020 Aaron Anderson, Jalex Stark, Kyle Miller. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Author: Aaron Anderson, Jalex Stark, Kyle Miller, Alena Gusakov
-/
import data.fintype.basic
import data.sym2
/-!
# Simple graphs
This module defines simple graphs on... |
ca37b4d3ab14ca158e3b283a645ec2b4d25bdaf6 | 4727251e0cd73359b15b664c3170e5d754078599 | /src/analysis/complex/roots_of_unity.lean | 69b5a6ed117238368ecfa2b54833aacd2ac9d531 | [
"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 | 6,998 | 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 analysis.special_functions.complex.log
import ring_theory.roots_of_unity
/-!
# Complex roots of unity
In this file we show that the `n`-th complex roots of u... |
d0231fa40dca6a117531ec8f093aeaa0b0d1de6d | a0e23cfdd129a671bf3154ee1a8a3a72bf4c7940 | /src/Init/Meta.lean | c8b1c66ba923897404217878b008bcc915cb2685 | [
"Apache-2.0"
] | permissive | WojciechKarpiel/lean4 | 7f89706b8e3c1f942b83a2c91a3a00b05da0e65b | f6e1314fa08293dea66a329e05b6c196a0189163 | refs/heads/master | 1,686,633,402,214 | 1,625,821,189,000 | 1,625,821,258,000 | 384,640,886 | 0 | 0 | Apache-2.0 | 1,625,903,617,000 | 1,625,903,026,000 | null | UTF-8 | Lean | false | false | 31,957 | 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 and Sebastian Ullrich
Additional goodies for writing macros
-/
prelude
import Init.Data.Array.Basic
namespace Lean
@[extern c inline "lean_box(LEAN_VERSION_... |
a414fb1164dc6fa88ea76dc20791469d74a40001 | 88892181780ff536a81e794003fe058062f06758 | /src/algorithms/data/array.lean | 1d3f32e9412e6a7d90594f453e864a0ea4553a35 | [] | 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,022 | lean | import tactic.suggest
import lib.attempt
import logic.function
import tactic.interactive
namespace algorithms
structure array (α : Type) := (size : nat) (get : fin size → α)
namespace array
def index {α : Type} (a : array α) := fin a.size
def set {α} (a : array α) (i : a.index) (v : α) : array α :=
mk a.size $ λ j... |
d8e0a4df9e41fea76bc4eb5b3e52fbe31798e20b | 83c8119e3298c0bfc53fc195c41a6afb63d01513 | /library/init/meta/well_founded_tactics.lean | ea247737c0d981c530e2bdc8e7a57607e9973a95 | [
"Apache-2.0"
] | permissive | anfelor/lean | 584b91c4e87a6d95f7630c2a93fb082a87319ed0 | 31cfc2b6bf7d674f3d0f73848b842c9c9869c9f1 | refs/heads/master | 1,610,067,141,310 | 1,585,992,232,000 | 1,585,992,232,000 | 251,683,543 | 0 | 0 | Apache-2.0 | 1,585,676,570,000 | 1,585,676,569,000 | null | UTF-8 | Lean | false | false | 6,560 | 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
-/
prelude
import init.meta init.data.sigma.lex init.data.nat.lemmas init.data.list.instances
import init.data.list.qsort init.data.string.instances
/- TODO(L... |
c4029e838d8ae5ff5cb746f29819c78f651e7541 | 86f6f4f8d827a196a32bfc646234b73328aeb306 | /examples/sets_functions_and_relations/unnamed_881.lean | cdb3bbba13f14acba356a581658dfd73ea584a47 | [] | no_license | jamescheuk91/mathematics_in_lean | 09f1f87d2b0dce53464ff0cbe592c568ff59cf5e | 4452499264e2975bca2f42565c0925506ba5dda3 | refs/heads/master | 1,679,716,410,967 | 1,613,957,947,000 | 1,613,957,947,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 181 | lean | import data.set.function
variables {α β : Type*}
variable f : α → β
variables (s : set α) (t : set β)
-- BEGIN
example : f '' s ⊆ t ↔ s ⊆ f ⁻¹' t :=
sorry
-- END |
c8dbe895d3eaee5867eb9bf813ac5087f6460a0e | 0003047346476c031128723dfd16fe273c6bc605 | /src/data/gaussian_int.lean | 410f54f70cb0eb6897a68bdff105387a1be19551 | [
"Apache-2.0"
] | permissive | ChandanKSingh/mathlib | d2bf4724ccc670bf24915c12c475748281d3fb73 | d60d1616958787ccb9842dc943534f90ea0bab64 | refs/heads/master | 1,588,238,823,679 | 1,552,867,469,000 | 1,552,867,469,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 7,115 | lean | /-
Copyright (c) 2019 Chris Hughes. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Author: Chris Hughes
The gaussian integers ℤ[i].
-/
import number_theory.pell data.complex.basic algebra.euclidean_domain algebra.associated
open zsqrtd complex
@[reducible] def gaussian_int :... |
762a4a038bd25e70d2b52bd81a3a8afd5fa73d8a | ec62863c729b7eedee77b86d974f2c529fa79d25 | /22/b.lean | 4ddbbda064ce04362a6ba4f97abc6f4137e789c1 | [] | no_license | rwbarton/advent-of-lean-4 | 2ac9b17ba708f66051e3d8cd694b0249bc433b65 | 417c7e2718253ba7148c0279fcb251b6fc291477 | refs/heads/main | 1,675,917,092,057 | 1,609,864,581,000 | 1,609,864,581,000 | 317,700,289 | 24 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 1,313 | lean | import Std.Data.HashSet
open Std
def parseInput (input : String) : List Nat × List Nat:=
match input.trim.splitOn "\n\n" with
| [p1, p2] => (((p1.splitOn "\n").drop 1).map String.toNat!, ((p2.splitOn "\n").drop 1).map String.toNat!)
| _ => panic! "invalid parse"
def score (deck : List Nat) : Nat :=
let N := deck.len... |
66ac6790e83604f327767a4ec950d5da04981f81 | 82e44445c70db0f03e30d7be725775f122d72f3e | /src/data/set/intervals/surj_on.lean | 06d760b5d1008f9d848c53b8a3fc97edc21561d7 | [
"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 | 3,977 | lean | /-
Copyright (c) 2020 Heather Macbeth. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Heather Macbeth
-/
import data.set.intervals.basic
import data.set.function
/-!
# Monotone surjective functions are surjective on intervals
A monotone surjective function sends any ... |
aebec01f7e7366873c98b41ccc94b51f7b2b0c68 | 6432ea7a083ff6ba21ea17af9ee47b9c371760f7 | /tests/lean/structInst1.lean | 970d72019174e6a5eb174e3a97777f06adc66a34 | [
"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 | 786 | lean | structure A where
x : Nat
w : Nat
structure B extends A where
y : Nat
structure C extends B where
z : Nat
def f1 (c : C) (a : A) : C :=
{ c with toA := a, x := 0 } -- Error, `toA` and `x` are both updates to field `x`
def f2 (c : C) (a : A) : C :=
{ c with toA := a }
def f3 (c : C) (a : A) : C :=
{ ... |
52ff84076c6c8e284b8c4523595d5a144effec70 | cf39355caa609c0f33405126beee2739aa3cb77e | /tests/lean/run/eq13.lean | 5fdba119f90fe61cdd10eab84f48a2bf364ea372 | [
"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 | 293 | lean | open nat
definition f : nat → nat → nat
| n 0 := 0
| 0 n := 1
| n m := arbitrary nat
theorem f_zero_right : ∀ a, f a 0 = 0
| 0 := rfl
| (succ a) := rfl
theorem f_zero_succ (a : nat) : f 0 (a+1) = 1 :=
rfl
theorem f_succ_succ (a b : nat) : f (a+1) (b+1) = arbitrary nat :=
rfl
|
e3d1263d065447ea8a05900c43baca5df748c8c5 | 302c785c90d40ad3d6be43d33bc6a558354cc2cf | /src/algebra/lie/matrix.lean | 0bc8aef9940a8ae3de45df04d3574e5f2bdb1c0d | [
"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 | 3,355 | lean | /-
Copyright (c) 2021 Oliver Nash. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Oliver Nash
-/
import algebra.lie.of_associative
import linear_algebra.matrix
/-!
# Lie algebras of matrices
An important class of Lie algebras are those arising from the associative al... |
7d0c9e764b4125a9b13b10e69bb571553b7508c3 | bc6b522ca01a7d1eddd58687225d93b4bb90fc65 | /test/simple2.lean | a37f73132cd9f80048bd3c1008b1cd73ea39e18e | [] | no_license | cipher1024/olean-rs | c8fcf0a47570e922be4dfd33b5f3b6ac9571e6f7 | 4707d26177733753ee4195b4b0883b4089e85f11 | refs/heads/master | 1,588,599,805,382 | 1,557,346,494,000 | 1,557,346,494,000 | 179,171,289 | 1 | 0 | null | 1,554,245,858,000 | 1,554,245,858,000 | null | UTF-8 | Lean | false | false | 87 | lean | import system.io
import data.buffer
def main : io unit := io.put_str_ln "hello world"
|
9f1fc13fdfcdf1285430a135d1fa2fb8ede6cbc9 | 947b78d97130d56365ae2ec264df196ce769371a | /tests/lean/run/111.lean | dc2a3636fa5fcce4da35d2cc64ec315238b62893 | [
"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 | 225 | lean | import Lean
new_frontend
open Lean
#check mkNullNode -- Lean.Syntax
#check mkNullNode #[] -- Lean.Syntax
#check @mkNullNode
#check
let f : Array Syntax → Syntax := @mkNullNode;
f #[]
#check let f := @mkNullNode; f #[]
|
8bc02894160fa8ea26076335a929a1d752e0912d | 8cae430f0a71442d02dbb1cbb14073b31048e4b0 | /test/congr.lean | 0a01c11f4cf308aa65c9aeaa92b98e107f1b8d9d | [
"Apache-2.0"
] | permissive | leanprover-community/mathlib | 56a2cadd17ac88caf4ece0a775932fa26327ba0e | 442a83d738cb208d3600056c489be16900ba701d | refs/heads/master | 1,693,584,102,358 | 1,693,471,902,000 | 1,693,471,902,000 | 97,922,418 | 1,595 | 352 | Apache-2.0 | 1,694,693,445,000 | 1,500,624,130,000 | Lean | UTF-8 | Lean | false | false | 2,091 | lean | import algebra.group.defs
import data.subtype
import tactic.congr
section congr
open tactic.interactive
example (c : Prop → Prop → Prop → Prop) (x x' y z z' : Prop)
(h₀ : x ↔ x')
(h₁ : z ↔ z') :
c x y z ↔ c x' y z' :=
begin
congr',
{ guard_target x = x', ext, assumption },
{ guard_target z = z', ext, assu... |
1bcba64cc6b2346e7504bc87df22ef97fc7fdf92 | ae1e94c332e17c7dc7051ce976d5a9eebe7ab8a5 | /stage0/src/Lean/Data/Options.lean | 59342b335ef36b1af228d6c2b987cbb8f50849f0 | [
"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 | 3,871 | lean | /-
Copyright (c) 2018 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Sebastian Ullrich and Leonardo de Moura
-/
import Lean.Data.KVMap
namespace Lean
def Options := KVMap
def Options.empty : Options := {}
instance : Inhabited Options where
... |
4570dfda4e677fcad9da6ef04a8e0eedbc759ea2 | 9dc8cecdf3c4634764a18254e94d43da07142918 | /src/algebra/hom/group_instances.lean | e1b70677df7757f49f49a4a2e6c7a635f1044c8f | [
"Apache-2.0"
] | permissive | jcommelin/mathlib | d8456447c36c176e14d96d9e76f39841f69d2d9b | ee8279351a2e434c2852345c51b728d22af5a156 | refs/heads/master | 1,664,782,136,488 | 1,663,638,983,000 | 1,663,638,983,000 | 132,563,656 | 0 | 0 | Apache-2.0 | 1,663,599,929,000 | 1,525,760,539,000 | Lean | UTF-8 | Lean | false | false | 10,910 | lean | /-
Copyright (c) 2018 Patrick Massot. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Patrick Massot, Kevin Buzzard, Scott Morrison, Johan Commelin, Chris Hughes,
Johannes Hölzl, Yury Kudryashov
-/
import algebra.group_power.basic
/-!
# Instances on spaces of monoid... |
855b67bf5d6616c4062a7ae94163768d502ac510 | 4efff1f47634ff19e2f786deadd394270a59ecd2 | /src/tactic/lint/simp.lean | b26a4d6564ca83be5e5187c33347757fe173c764 | [
"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 | 9,345 | lean | /-
Copyright (c) 2020 Gabriel Ebner. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Gabriel Ebner
-/
import tactic.lint.basic
/-!
# Linter for simplification lemmas
This files defines several linters that prevent common mistakes when declaring simp lemmas:
* `simp_... |
d17c4a7c1d8344ddca05a259ec28324782e4ba93 | d406927ab5617694ec9ea7001f101b7c9e3d9702 | /src/data/real/pi/leibniz.lean | 5ba42465a6d9d00e99c3d9a7156897cb6605bbe6 | [
"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 | 7,656 | lean | /-
Copyright (c) 2020 Benjamin Davidson. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Benjamin Davidson
-/
import analysis.special_functions.trigonometric.arctan_deriv
/-! ### Leibniz's Series for Pi -/
namespace real
open filter set
open_locale classical big_oper... |
0b176d494e1c34421362389805753fc5f6616cac | 55c7fc2bf55d496ace18cd6f3376e12bb14c8cc5 | /src/group_theory/congruence.lean | 8e45c24ad2908d0f8c1e3066d63aceedca599cbc | [
"Apache-2.0"
] | permissive | dupuisf/mathlib | 62de4ec6544bf3b79086afd27b6529acfaf2c1bb | 8582b06b0a5d06c33ee07d0bdf7c646cae22cf36 | refs/heads/master | 1,669,494,854,016 | 1,595,692,409,000 | 1,595,692,409,000 | 272,046,630 | 0 | 0 | Apache-2.0 | 1,592,066,143,000 | 1,592,066,142,000 | null | UTF-8 | Lean | false | false | 42,874 | lean | /-
Copyright (c) 2019 Amelia Livingston. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Amelia Livingston
-/
import data.setoid.basic
import algebra.group.pi
import algebra.group.prod
import data.equiv.mul_add
import group_theory.submonoid.operations
/-!
# Congruence ... |
5464d525db0d99beaae3376c364df3d4d1560ed7 | e953c38599905267210b87fb5d82dcc3e52a4214 | /library/data/real/complete.lean | 23cf3fc7353399976fae96af801218b9dab0c451 | [
"Apache-2.0"
] | permissive | c-cube/lean | 563c1020bff98441c4f8ba60111fef6f6b46e31b | 0fb52a9a139f720be418dafac35104468e293b66 | refs/heads/master | 1,610,753,294,113 | 1,440,451,356,000 | 1,440,499,588,000 | 41,748,334 | 0 | 0 | null | 1,441,122,656,000 | 1,441,122,656,000 | null | UTF-8 | Lean | false | false | 33,691 | lean | /-
Copyright (c) 2015 Robert Y. Lewis. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Author: Robert Y. Lewis
The real numbers, constructed as equivalence classes of Cauchy sequences of rationals.
This construction follows Bishop and Bridges (1985).
At this point, we no longer... |
3a908bab22f02a962e5170f18996229201ce1722 | 6e9cd8d58e550c481a3b45806bd34a3514c6b3e0 | /src/analysis/special_functions/exp_log.lean | 75339936a264d49a381743084fddd53e3392a0f4 | [
"Apache-2.0"
] | permissive | sflicht/mathlib | 220fd16e463928110e7b0a50bbed7b731979407f | 1b2048d7195314a7e34e06770948ee00f0ac3545 | refs/heads/master | 1,665,934,056,043 | 1,591,373,803,000 | 1,591,373,803,000 | 269,815,267 | 0 | 0 | Apache-2.0 | 1,591,402,068,000 | 1,591,402,067,000 | null | UTF-8 | Lean | false | false | 21,845 | 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 data.complex.exponential
import analysis.complex.basic
import analysis.calculus.mean_value
/-!
# Complex and real... |
db9c41beab9f42eace688bfb47a0829fa8bb3656 | 5ae26df177f810c5006841e9c73dc56e01b978d7 | /src/data/seq/computation.lean | 05eb43361fc9417643179c077e9550ae31cdd958 | [
"Apache-2.0"
] | permissive | ChrisHughes24/mathlib | 98322577c460bc6b1fe5c21f42ce33ad1c3e5558 | a2a867e827c2a6702beb9efc2b9282bd801d5f9a | refs/heads/master | 1,583,848,251,477 | 1,565,164,247,000 | 1,565,164,247,000 | 129,409,993 | 0 | 1 | Apache-2.0 | 1,565,164,817,000 | 1,523,628,059,000 | Lean | UTF-8 | Lean | false | false | 37,484 | lean | /-
Copyright (c) 2017 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Author: Mario Carneiro
Coinductive formalization of unbounded computations.
-/
import data.stream logic.relator tactic.basic
universes u v w
/-
coinductive computation (α : Type u) : T... |
e1664096a21c5f7a8ca9f5713f659291ada0a28c | d0f9af2b0ace5ce352570d61b09019c8ef4a3b96 | /hw8/lecture notes/rules_of_reasoning.lean | 109a5d8f12931557ec1f5ebbd08494c8b99972b1 | [] | no_license | jngo13/Discrete-Mathematics | 8671540ef2da7c75915d32332dd20c02f001474e | bf674a866e61f60e6e6d128df85fa73819091787 | refs/heads/master | 1,675,615,657,924 | 1,609,142,011,000 | 1,609,142,011,000 | 267,190,341 | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 3,706 | lean | --import .prop_logic
import .propositional_logic_syntax_and_semantics
open pExp
/-
Here are three propositional variables,
P, Q, and R.
-/
def P := pVar (var.mk 0)
def Q := pVar (var.mk 1)
def R := pVar (var.mk 2)
/-
Below are 20+ formulae in propositional
logic. Your job is to classify each as
valid or not valid... |
ed01502692738eda3a48b059c6dc8a85cc17956d | 49bd2218ae088932d847f9030c8dbff1c5607bb7 | /src/analysis/calculus/deriv.lean | 5a203d9cfef96582ac8ad394888a49d94efbb1c1 | [
"Apache-2.0"
] | permissive | FredericLeRoux/mathlib | e8f696421dd3e4edc8c7edb3369421c8463d7bac | 3645bf8fb426757e0a20af110d1fdded281d286e | refs/heads/master | 1,607,062,870,732 | 1,578,513,186,000 | 1,578,513,186,000 | 231,653,181 | 0 | 0 | Apache-2.0 | 1,578,080,327,000 | 1,578,080,326,000 | null | UTF-8 | Lean | false | false | 46,169 | lean | /-
Copyright (c) 2019 Gabriel Ebner. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Gabriel Ebner, Sébastien Gouëzel
-/
import analysis.calculus.fderiv
/-!
# One-dimensional derivatives
This file defines the derivative of a function `f : 𝕜 → F` where `𝕜` is a
norm... |
a1ac959ebfe4b773040c602284d4b60a467bb95e | 6432ea7a083ff6ba21ea17af9ee47b9c371760f7 | /tests/lean/run/def14.lean | 21866e3ad9af6f8ec9efd92a081a1b6b937d3be0 | [
"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 | 383 | lean |
inductive Formula
| eqf : Nat → Nat → Formula
| impf : Formula → Formula → Formula
def Formula.denote : Formula → Prop
| eqf n1 n2 => n1 = n2
| impf f1 f2 => denote f1 → denote f2
theorem Formula.denote_eqf (n1 n2 : Nat) : denote (eqf n1 n2) = (n1 = n2) :=
rfl
theorem Formula.denote_impf (f1 f2 : Formula) : deno... |
c02df8595d1a18cc65d80df1be86c5fc6e5830f5 | f3849be5d845a1cb97680f0bbbe03b85518312f0 | /library/init/meta/transfer.lean | 4f7ce24bb4785ccafd7aba931e13ad2592992f1a | [
"Apache-2.0"
] | permissive | bjoeris/lean | 0ed95125d762b17bfcb54dad1f9721f953f92eeb | 4e496b78d5e73545fa4f9a807155113d8e6b0561 | refs/heads/master | 1,611,251,218,281 | 1,495,337,658,000 | 1,495,337,658,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 7,619 | lean | /-
Copyright (c) 2017 Johannes Hölzl. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Author: Johannes Hölzl (CMU)
-/
prelude
import init.meta.tactic init.meta.match_tactic init.relator init.meta.mk_dec_eq_instance
import init.data.list.instances
namespace transfer
open tactic ... |
275ccbf53f662b5daad7530312236c8841aa4f9e | 969dbdfed67fda40a6f5a2b4f8c4a3c7dc01e0fb | /src/ring_theory/noetherian.lean | 80a5e2db1ad0a4cc23c29186ef11dc079a6cdefb | [
"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 | 30,430 | lean | /-
Copyright (c) 2018 Mario Carneiro and Kevin Buzzard. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Mario Carneiro, Kevin Buzzard
-/
import algebraic_geometry.prime_spectrum
import data.multiset.finset_ops
import linear_algebra.linear_independent
import order.order_... |
83991f364ae141e1a3cd42d36122184b3ce11dce | a7eef317ddec01b9fc6cfbb876fe7ac00f205ac7 | /src/topology/algebra/uniform_group.lean | 266d60ae4e8358837595772f828f2a81d33154c9 | [
"Apache-2.0"
] | permissive | kmill/mathlib | ea5a007b67ae4e9e18dd50d31d8aa60f650425ee | 1a419a9fea7b959317eddd556e1bb9639f4dcc05 | refs/heads/master | 1,668,578,197,719 | 1,593,629,163,000 | 1,593,629,163,000 | 276,482,939 | 0 | 0 | null | 1,593,637,960,000 | 1,593,637,959,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
-/
import topology.uniform_space.uniform_embedding
import topology.uniform_space.complete_separated
import topology.algebra.group
import tactic.abel
/-!... |
6dc419041440f78db898e8f79e77a6da57819526 | 80cc5bf14c8ea85ff340d1d747a127dcadeb966f | /src/linear_algebra/finite_dimensional.lean | bbe38ceb8fc06ef59311467fce6f22629a9261ac | [
"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 | 47,055 | lean | /-
Copyright (c) 2019 Chris Hughes. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Chris Hughes
-/
import linear_algebra.dimension
import ring_theory.principal_ideal_domain
/-!
# Finite dimensional vector spaces
Definition and basic properties of finite dimensional v... |
0a1ecf04b40901944166f91ae882ff7034ed3453 | fa02ed5a3c9c0adee3c26887a16855e7841c668b | /src/category_theory/category/Quiv.lean | 774f1ec9c4fa48078c7ae285581985ddd55ddcbc | [
"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 | 3,065 | 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.path_category
import category_theory.category.Cat
/-!
# The category of quivers
The category of (bundled) quivers, and the free/forgetful adj... |
a6fb0002c6d1ecdfb54425cf70a3adc41f16e798 | 82b86ba2ae0d5aed0f01f49c46db5afec0eb2bd7 | /src/Lean/Meta/InferType.lean | 2e0632a459bba5d506f8a375afeb1808722f0f93 | [
"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 | 14,787 | 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.Meta
def throwFunctionExpected {α} (f : Expr) : MetaM α :=
throwError! "function expected{i... |
0ed7baf791bed7f3e56081cd27bf6655595ebceb | 367134ba5a65885e863bdc4507601606690974c1 | /src/category_theory/monoidal/End.lean | cc4bbe18d6e7f333bc0ee20786d412cdac45fe21 | [
"Apache-2.0"
] | permissive | kodyvajjha/mathlib | 9bead00e90f68269a313f45f5561766cfd8d5cad | b98af5dd79e13a38d84438b850a2e8858ec21284 | refs/heads/master | 1,624,350,366,310 | 1,615,563,062,000 | 1,615,563,062,000 | 162,666,963 | 0 | 0 | Apache-2.0 | 1,545,367,651,000 | 1,545,367,651,000 | null | UTF-8 | Lean | false | false | 2,515 | 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
/-!
# Endofunctors as a monoidal category.
We give the monoidal category structure on `C ⥤ C`,
and show that when `C` itself... |
17c298c1951abb0afb14190478e9ec957fa1d99a | d406927ab5617694ec9ea7001f101b7c9e3d9702 | /src/ring_theory/valuation/integral.lean | 4969e3647a99a06cc4df1fb6b31adcac9373102c | [
"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 | 2,100 | 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.integrally_closed
import ring_theory.valuation.integers
/-!
# Integral elements over the ring of integers of a valution
The ring of integers is integrally... |
418fcbbbbdb5e65ac7b172e8568ab0ee3adb1607 | 63abd62053d479eae5abf4951554e1064a4c45b4 | /src/group_theory/group_action.lean | ad3d5a85b2233a12ff303de6bd5db4134f5cfb7e | [
"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 | 16,407 | 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 group_theory.coset
universes u v w
variables {α : Type u} {β : Type v} {γ : Type w}
open_locale big_operators
open function
/-- Typeclass for types with a scala... |
b6b186b85cf43933928ee1b6da62a2eec4d85b8a | 97f752b44fd85ec3f635078a2dd125ddae7a82b6 | /library/algebra/ordered_field.lean | d89bf112fcbc574674efb02091c01be9b19e12c0 | [
"Apache-2.0"
] | permissive | tectronics/lean | ab977ba6be0fcd46047ddbb3c8e16e7c26710701 | f38af35e0616f89c6e9d7e3eb1d48e47ee666efe | refs/heads/master | 1,532,358,526,384 | 1,456,276,623,000 | 1,456,276,623,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 22,360 | lean | /-
Copyright (c) 2014 Robert Lewis. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Robert Lewis
-/
import algebra.ordered_ring algebra.field
open eq eq.ops
structure linear_ordered_field [class] (A : Type) extends linear_ordered_ring A, field A
section linear_ordered... |
fd765b8f699c7c44c27a75ec625239acf78affd3 | d1a52c3f208fa42c41df8278c3d280f075eb020c | /src/Init/Prelude.lean | 90f42feaf6f601e19bdb151d0d15d2244aaf2ee6 | [
"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 | 78,823 | lean | /-
Copyright (c) 2020 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Leonardo de Moura
-/
prelude
universe u v w
@[inline] def id {α : Sort u} (a : α) : α := a
@[inline] def Function.comp {α : Sort u} {β : Sort v} {δ : Sort w} (f : β → δ) (g :... |
283ae939dd85c542bf9ab932cac8aea6a3002cb5 | b561a44b48979a98df50ade0789a21c79ee31288 | /src/Lean/Server/FileWorker/RequestHandling.lean | 965b357c06e9d15be033f0ef65b06c474eb689d0 | [
"Apache-2.0"
] | permissive | 3401ijk/lean4 | 97659c475ebd33a034fed515cb83a85f75ccfb06 | a5b1b8de4f4b038ff752b9e607b721f15a9a4351 | refs/heads/master | 1,693,933,007,651 | 1,636,424,845,000 | 1,636,424,845,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 17,617 | lean | /-
Copyright (c) 2021 Wojciech Nawrocki. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Wojciech Nawrocki, Marc Huisinga
-/
import Lean.DeclarationRange
import Lean.Data.Json
import Lean.Data.Lsp
import Lean.Server.FileWorker.Utils
import Lean.Server.Requests
import... |
52437f8c3361f176e54a7d970aa603593a1a358e | 618003631150032a5676f229d13a079ac875ff77 | /src/linear_algebra/bilinear_form.lean | 386470dd8fd7c9a50d1c648d08ca96dae7863ef1 | [
"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 | 24,516 | lean | /-
Copyright (c) 2018 Andreas Swerdlow. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Author: Andreas Swerdlow
-/
import linear_algebra.matrix
import linear_algebra.tensor_product
/-!
# Bilinear form
This file defines a bilinear form over a module. Basic ideas
such as ortho... |
5dbaeb2e2be95862b6ac81c30be76a03b9c9a901 | f5f7e6fae601a5fe3cac7cc3ed353ed781d62419 | /src/category/bitraversable/basic.lean | 22fff327e3935eff1b77f14fa46716406039f441 | [
"Apache-2.0"
] | permissive | EdAyers/mathlib | 9ecfb2f14bd6caad748b64c9c131befbff0fb4e0 | ca5d4c1f16f9c451cf7170b10105d0051db79e1b | refs/heads/master | 1,626,189,395,845 | 1,555,284,396,000 | 1,555,284,396,000 | 144,004,030 | 0 | 0 | Apache-2.0 | 1,533,727,664,000 | 1,533,727,663,000 | null | UTF-8 | Lean | false | false | 2,141 | lean | /-
Copyright (c) 2018 Simon Hudon. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Author: Simon Hudon
Functors with two arguments
-/
import data.sum
category.basic category.functor
category.bifunctor
category.traversable.basic
tactic.basic
univers... |
c8491414914dd9e72bc81ef6282245b2f7850fef | df7bb3acd9623e489e95e85d0bc55590ab0bc393 | /lean/love11_logical_foundations_of_mathematics_homework_sheet.lean | 91e08e69d40428b442a202c450cec4f16525fd26 | [] | no_license | MaschavanderMarel/logical_verification_2020 | a41c210b9237c56cb35f6cd399e3ac2fe42e775d | 7d562ef174cc6578ca6013f74db336480470b708 | refs/heads/master | 1,692,144,223,196 | 1,634,661,675,000 | 1,634,661,675,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 4,122 | lean | import .lovelib
/- # LoVe Homework 11: Logical Foundations of Mathematics
Homework must be done individually. -/
set_option pp.beta true
set_option pp.generalized_field_notation false
namespace LoVe
/- ## Question 1 (9 points): Multisets as a Quotient Type
A multiset (or bag) is a collection of elements that a... |
19892a754ecaab5caf3168c9fced882f6d19b08f | b70031c8e2c5337b91d7e70f1e0c5f528f7b0e77 | /src/category_theory/limits/shapes/constructions/preserve_binary_products.lean | 8e3a325b26ccc2b92f10645ed125dfaccdff5e8b | [
"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 | 3,562 | lean | /-
Copyright (c) 2020 Bhavik Mehta. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Bhavik Mehta
-/
import category_theory.limits.limits
import category_theory.limits.preserves.basic
import category_theory.limits.shapes.binary_products
/-!
Show that a functor `F : C ⥤ ... |
1bc9660c99ae0ea98b30e931e035134d18ec9faf | d29d82a0af640c937e499f6be79fc552eae0aa13 | /src/data/set/lattice.lean | 3c2f775772d18127e1ccdfbb3d434214000cdf71 | [
"Apache-2.0"
] | permissive | AbdulMajeedkhurasani/mathlib | 835f8a5c5cf3075b250b3737172043ab4fa1edf6 | 79bc7323b164aebd000524ebafd198eb0e17f956 | refs/heads/master | 1,688,003,895,660 | 1,627,788,521,000 | 1,627,788,521,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 53,824 | 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, Johannes Hölzl, Mario Carneiro
-- QUESTION: can make the first argument in ∀ x ∈ a, ... implicit?
-/
import order.complete_boolean_algebra
import data... |
3a027cd3120af9eec61db560b6177bb12d4c7872 | 8cae430f0a71442d02dbb1cbb14073b31048e4b0 | /src/analysis/mellin_transform.lean | ac6518d306041b4941b7e41496a6aca2f5dfefb0 | [
"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 | 25,627 | lean | /-
Copyright (c) 2023 David Loeffler. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: David Loeffler
-/
import analysis.special_functions.improper_integrals
import analysis.calculus.parametric_integral
import measure_theory.measure.haar.normed_space
/-! # The Mellin t... |
a1f499ac044e27460a4ffffc6bbe90072137eea8 | bbecf0f1968d1fba4124103e4f6b55251d08e9c4 | /src/algebra/group/to_additive.lean | ebfed29a298dddaebb56470dccf7ec9cfd4e0261 | [
"Apache-2.0"
] | permissive | waynemunro/mathlib | e3fd4ff49f4cb43d4a8ded59d17be407bc5ee552 | 065a70810b5480d584033f7bbf8e0409480c2118 | refs/heads/master | 1,693,417,182,397 | 1,634,644,781,000 | 1,634,644,781,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 25,144 | lean | /-
Copyright (c) 2017 Mario Carneiro. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Mario Carneiro, Yury Kudryashov, Floris van Doorn
-/
import tactic.transform_decl
import tactic.algebra
/-!
# Transport multiplicative to additive
This file defines an attribute `to_... |
3c15210af53d9be641d1e63b1e5e111198fdaa50 | d9ed0fce1c218297bcba93e046cb4e79c83c3af8 | /library/init/util.lean | 4d894b3abe53821feabe3f2343767eeb4c46ce66 | [
"Apache-2.0"
] | permissive | leodemoura/lean_clone | 005c63aa892a6492f2d4741ee3c2cb07a6be9d7f | cc077554b584d39bab55c360bc12a6fe7957afe6 | refs/heads/master | 1,610,506,475,484 | 1,482,348,354,000 | 1,482,348,543,000 | 77,091,586 | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 512 | lean | /-
Copyright (c) 2016 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Leonardo de Moura
-/
prelude
import init.data.string.basic
/- This function has a native implementation that tracks time. -/
def timeit {α : Type} (s : string) (f : unit → α) :... |
abc56a0b2f30f95efb6c676414de6fc566dc4d76 | 947fa6c38e48771ae886239b4edce6db6e18d0fb | /src/algebra/algebra/subalgebra/basic.lean | 890bf221c604bf11c47fb73e72ece7d5539110dc | [
"Apache-2.0"
] | permissive | ramonfmir/mathlib | c5dc8b33155473fab97c38bd3aa6723dc289beaa | 14c52e990c17f5a00c0cc9e09847af16fabbed25 | refs/heads/master | 1,661,979,343,526 | 1,660,830,384,000 | 1,660,830,384,000 | 182,072,989 | 0 | 0 | null | 1,555,585,876,000 | 1,555,585,876,000 | null | UTF-8 | Lean | false | false | 46,202 | lean | /-
Copyright (c) 2018 Kenny Lau. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Kenny Lau, Yury Kudryashov
-/
import algebra.algebra.basic
import data.set.Union_lift
import linear_algebra.finsupp
import ring_theory.ideal.operations
/-!
# Subalgebras over Commutative S... |
4867d69f3dfaf84b2d3cf5903c1f54c6fc4f1cce | bbecf0f1968d1fba4124103e4f6b55251d08e9c4 | /src/algebra/direct_sum/basic.lean | 1fff7998e7e392908041c7e2a8b06e0970ee717c | [
"Apache-2.0"
] | permissive | waynemunro/mathlib | e3fd4ff49f4cb43d4a8ded59d17be407bc5ee552 | 065a70810b5480d584033f7bbf8e0409480c2118 | refs/heads/master | 1,693,417,182,397 | 1,634,644,781,000 | 1,634,644,781,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 7,254 | lean | /-
Copyright (c) 2019 Kenny Lau. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Kenny Lau
-/
import data.dfinsupp
import group_theory.submonoid.operations
import group_theory.subgroup.basic
/-!
# Direct sum
This file defines the direct sum of abelian groups, indexed ... |
652aa4d0488e1585dc41a88765bb4328f62bb237 | e953c38599905267210b87fb5d82dcc3e52a4214 | /library/data/set/basic.lean | 17d3fc6162628dbc587ea8eb8e8669e4e5dd9d56 | [
"Apache-2.0"
] | permissive | c-cube/lean | 563c1020bff98441c4f8ba60111fef6f6b46e31b | 0fb52a9a139f720be418dafac35104468e293b66 | refs/heads/master | 1,610,753,294,113 | 1,440,451,356,000 | 1,440,499,588,000 | 41,748,334 | 0 | 0 | null | 1,441,122,656,000 | 1,441,122,656,000 | null | UTF-8 | Lean | false | false | 10,980 | lean | /-
Copyright (c) 2014 Jeremy Avigad. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Author: Jeremy Avigad, Leonardo de Moura
-/
import logic.connectives logic.identities algebra.binary
open eq.ops binary
definition set [reducible] (X : Type) := X → Prop
namespace set
variabl... |
43a483b0a9d7877cd5401bfee9bef5f9bdf92585 | ff5230333a701471f46c57e8c115a073ebaaa448 | /tests/lean/run/1804a.lean | 3c7cf6933769beb5b3bd9bfaad77e9a011937917 | [
"Apache-2.0"
] | permissive | stanford-cs242/lean | f81721d2b5d00bc175f2e58c57b710d465e6c858 | 7bd861261f4a37326dcf8d7a17f1f1f330e4548c | refs/heads/master | 1,600,957,431,849 | 1,576,465,093,000 | 1,576,465,093,000 | 225,779,423 | 0 | 3 | Apache-2.0 | 1,575,433,936,000 | 1,575,433,935,000 | null | UTF-8 | Lean | false | false | 688 | lean | section
parameter P : match unit.star with
| unit.star := true
end
include P
example : false :=
begin
dsimp [_match_1] at P,
guard_hyp P := true,
admit
end
end
section
parameter P : match unit.star with
| unit.star := true
end
include P
example : false :=
begin
dsimp [_match_1] at P,
guard_hyp P := true,... |
922777a04e987ecbd06e9725a8a7683569516564 | c777c32c8e484e195053731103c5e52af26a25d1 | /src/topology/metric_space/gromov_hausdorff_realized.lean | 0a25b1becc1383adb91eb30e410ce39b9fb0b801 | [
"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 | 26,157 | 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 topology.metric_space.gluing
import topology.metric_space.hausdorff_distance
import topology.continuous_function.bounded
/-!
# The Gromov-Hausdorff dist... |
9ff4ce36d14881c2cb8df9e14b762648f0bd2182 | 69d4931b605e11ca61881fc4f66db50a0a875e39 | /src/tactic/induction.lean | db46e0e5899cf1b343c658cfc17f3b53686ebab3 | [
"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 | 50,876 | lean | /-
Copyright (c) 2020 Jannis Limperg. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Jannis Limperg
-/
import tactic.dependencies
import tactic.fresh_names
import tactic.generalizes
import tactic.has_variable_names
import tactic.unify_equations
/-!
# A better tactic ... |
ca369d2950ec25ab40d180f05eb38d2aa6885b86 | 9b9a16fa2cb737daee6b2785474678b6fa91d6d4 | /src/data/padics/padic_integers.lean | 9a9abfe1fec59361c7d3f3c0fe792fc94a30f93f | [
"Apache-2.0"
] | permissive | johoelzl/mathlib | 253f46daa30b644d011e8e119025b01ad69735c4 | 592e3c7a2dfbd5826919b4605559d35d4d75938f | refs/heads/master | 1,625,657,216,488 | 1,551,374,946,000 | 1,551,374,946,000 | 98,915,829 | 0 | 0 | Apache-2.0 | 1,522,917,267,000 | 1,501,524,499,000 | Lean | UTF-8 | Lean | false | false | 9,316 | 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
Define the p-adic integers ℤ_p as a subtype of ℚ_p. Construct algebraic structures on ℤ_p.
-/
import data.padics.padic_numbers ring_theory.ideals dat... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.