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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
0724b21ebb8b5d5c915aa5a1634fec113fc2b0f2 | 6094e25ea0b7699e642463b48e51b2ead6ddc23f | /tests/lean/run/pquot.lean | 70832738017ac8438b79bb525a8585cc87d3e0f3 | [
"Apache-2.0"
] | permissive | gbaz/lean | a7835c4e3006fbbb079e8f8ffe18aacc45adebfb | a501c308be3acaa50a2c0610ce2e0d71becf8032 | refs/heads/master | 1,611,198,791,433 | 1,451,339,111,000 | 1,451,339,111,000 | 48,713,797 | 0 | 0 | null | 1,451,338,939,000 | 1,451,338,939,000 | null | UTF-8 | Lean | false | false | 5,415 | lean | import logic.cast data.list data.sigma
-- The (pre-)quotient type kernel extension would add the following constants
-- quot, pquot.mk, pquot.eqv and pquot.rec
-- and a computational rule, which we call pquot.comp here.
-- Note that, these constants do not assume the environment contains =
constant pquot.{l} {A : T... |
238e70a2c04eb6eba58376caf6f4d4abb78e54db | 1a61aba1b67cddccce19532a9596efe44be4285f | /hott/hit/refl_quotient.hlean | 9ae2999358222d274bc02b3120f43561795745fc | [
"Apache-2.0"
] | permissive | eigengrau/lean | 07986a0f2548688c13ba36231f6cdbee82abf4c6 | f8a773be1112015e2d232661ce616d23f12874d0 | refs/heads/master | 1,610,939,198,566 | 1,441,352,386,000 | 1,441,352,494,000 | 41,903,576 | 0 | 0 | null | 1,441,352,210,000 | 1,441,352,210,000 | null | UTF-8 | Lean | false | false | 3,403 | 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
Quotient of a reflexive relation
-/
import hit.circle cubical.squareover .two_quotient
open eq simple_two_quotient e_closure
namespace refl_quotient
section
... |
d03a1632a2a04af07dccfe91e819a7823fcae88c | ecea1a568b8a7bdfef1206845f7dc2e62b85b6b3 | /library/init/algebra/ordered_ring.lean | b2e4fb23727665a120c56e2776f3c124d3f071be | [
"Apache-2.0"
] | permissive | ndcroos/lean | b1b6de42ee4d3ded05829373e505e09614d4acdf | 6919d231413705c892eec02bdacd7d7d916524c8 | refs/heads/master | 1,625,911,732,192 | 1,507,549,407,000 | 1,507,549,407,000 | 106,106,359 | 0 | 0 | null | 1,507,388,410,000 | 1,507,388,410,000 | null | UTF-8 | Lean | false | false | 16,340 | lean | /-
Copyright (c) 2016 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Jeremy Avigad, Leonardo de Moura
-/
prelude
import init.algebra.ordered_group init.algebra.ring
/- Make sure instances defined in this file have lower priority than the ones
... |
22860de4b88f2cd85926c7df5a02251cf933a057 | 1fbca480c1574e809ae95a3eda58188ff42a5e41 | /src/util/data/minimum/fin.lean | 6c27a591e4323dc57015d48b4179df19263ee773 | [] | no_license | unitb/lean-lib | 560eea0acf02b1fd4bcaac9986d3d7f1a4290e7e | 439b80e606b4ebe4909a08b1d77f4f5c0ee3dee9 | refs/heads/master | 1,610,706,025,400 | 1,570,144,245,000 | 1,570,144,245,000 | 99,579,229 | 5 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 2,083 | lean |
import util.data.fin
import util.data.minimum.nat
import util.data.set
import util.logic
open nat
namespace fin
section
parameter (n : ℕ)
@[reducible]
def t := fin n.succ
parameter {n}
variables (s : set t)
variables [decidable_pred (λ y : ℕ, y ∈ val <$> s)]
variables [decidable (val <$> s = ∅)]
lemma lt_of_mem_f... |
5c839222466b99cfd088037bd357cf6d8e997444 | cf39355caa609c0f33405126beee2739aa3cb77e | /tests/lean/run/injection_ginductive.lean | 298ca03d44811c778d1444ad808e6430c60de42a | [
"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 | 400 | lean | inductive term
| const (n : string) : term
| app (fn : string) (args : list term) : term
constant p : Prop → Prop
axiom p_ax : ∀ x, p x = x
example (f₁ f₂ : string) (as₁ as₂ : list term) (h : term.app f₁ as₁ = term.app f₂ as₂) : p (as₁ = as₂) :=
begin
injection h,
trace_state,
guard_hyp h_1 : f₁ = f₂,
guard_h... |
03cefedfcd403d2bb6a4690b26eccf67b9c3ee9b | 957a80ea22c5abb4f4670b250d55534d9db99108 | /tests/lean/1293.lean | 8f8b9aa97911f9879e8b4b2bba06b4afbb0a3071 | [
"Apache-2.0"
] | permissive | GaloisInc/lean | aa1e64d604051e602fcf4610061314b9a37ab8cd | f1ec117a24459b59c6ff9e56a1d09d9e9e60a6c0 | refs/heads/master | 1,592,202,909,807 | 1,504,624,387,000 | 1,504,624,387,000 | 75,319,626 | 2 | 1 | Apache-2.0 | 1,539,290,164,000 | 1,480,616,104,000 | C++ | UTF-8 | Lean | false | false | 384 | lean | open expr tactic
example : true := by whnf (var 0) >> return ()
example : true := by whnf (app (var 0) (var 0)) >> return ()
example : true := by head_zeta (var 0) >> return ()
example : true := by unify (var 0) (var 0) >> return ()
example : true := by is_def_eq (var 0) (var 0) >> return ()
example foo trivial :... |
66dbcebcba08f93c81a7986a68db33480791e81b | d406927ab5617694ec9ea7001f101b7c9e3d9702 | /src/data/real/pointwise.lean | f3b74ce52f747e27ace2f15c066787734e84824d | [
"Apache-2.0"
] | permissive | alreadydone/mathlib | dc0be621c6c8208c581f5170a8216c5ba6721927 | c982179ec21091d3e102d8a5d9f5fe06c8fafb73 | refs/heads/master | 1,685,523,275,196 | 1,670,184,141,000 | 1,670,184,141,000 | 287,574,545 | 0 | 0 | Apache-2.0 | 1,670,290,714,000 | 1,597,421,623,000 | Lean | UTF-8 | Lean | false | false | 5,097 | lean | /-
Copyright (c) 2021 Yaël Dillies. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Yaël Dillies, Eric Wieser
-/
import algebra.order.module
import data.real.basic
/-!
# Pointwise operations on sets of reals
This file relates `Inf (a • s)`/`Sup (a • s)` with `a • Inf ... |
756c4e6d9a4439119c310ea91a11490ef921684f | 6432ea7a083ff6ba21ea17af9ee47b9c371760f7 | /src/Lean/Elab/PreDefinition/WF/PackMutual.lean | 4b9919997462085c88c2ba82d8f35308b8ea473c | [
"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 | 8,615 | lean | /-
Copyright (c) 2021 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Leonardo de Moura
-/
import Lean.Meta.Tactic.Cases
import Lean.Elab.PreDefinition.Basic
namespace Lean.Elab.WF
open Meta
/-- Combine different function domains `ds` using `PSu... |
8aaddf056e651efb197ca2a5fef491a694a0f583 | 80746c6dba6a866de5431094bf9f8f841b043d77 | /src/data/nat/cast.lean | 021cea9e216f6ef0e04b1118df7f7571542c3965 | [
"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 | 3,952 | lean | /-
Copyright (c) 2014 Mario Carneiro. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Mario Carneiro
Natural homomorphism from the natural numbers into a monoid with one.
-/
import tactic.interactive algebra.order algebra.ordered_group algebra.ring
namespace nat
varia... |
b75166917b412f729b0365a1e6174bcb162e9766 | d406927ab5617694ec9ea7001f101b7c9e3d9702 | /src/ring_theory/subring/basic.lean | bf784d0fff7fd7b334b566a7d7133dc4f4b5b421 | [
"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 | 47,471 | lean | /-
Copyright (c) 2020 Ashvni Narayanan. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Ashvni Narayanan
-/
import group_theory.subgroup.basic
import ring_theory.subsemiring.basic
/-!
# Subrings
Let `R` be a ring. This file defines the "bundled" subring type `subring... |
a8ec15d6f8eea3f0140901bc581032ceae1c78a4 | 9dc8cecdf3c4634764a18254e94d43da07142918 | /src/analysis/normed_space/finite_dimension.lean | 5b662e08238c3c15b7d559fac8d20687738684f4 | [
"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 | 36,166 | lean | /-
Copyright (c) 2019 Sébastien Gouëzel. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Sébastien Gouëzel
-/
import analysis.asymptotics.asymptotic_equivalent
import analysis.normed_space.affine_isometry
import analysis.normed_space.operator_norm
import analysis.normed... |
f926440ad8bb2b502ad47191da2fcd9e0254e6c5 | f1b175e38ffc5cc1c7c5551a72d0dbaf70786f83 | /set_theory/ordinal.lean | 9ca0185e8cb0d8799c93782d280fe2436cdf5ac5 | [
"Apache-2.0"
] | permissive | mjendrusch/mathlib | df3ae884dd5ce38c7edf452bcbfd3baf4e3a6214 | 5c209edb7eb616a26f64efe3500f2b1ba95b8d55 | refs/heads/master | 1,585,663,284,800 | 1,539,062,055,000 | 1,539,062,055,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 125,250 | lean | /-
Copyright (c) 2017 Johannes Hölzl. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Author: Mario Carneiro
Ordinal arithmetic.
Ordinals are defined as equivalences of well-ordered sets by order isomorphism.
-/
import order.order_iso set_theory.cardinal data.sum
noncomputable... |
f063b1662ec69f641d295dcf3b84b1d2e5011929 | df561f413cfe0a88b1056655515399c546ff32a5 | /4-proposition-world/l2.lean | 76358cac2362e4a4272945bd1239eaf2611a2faa | [] | no_license | nicholaspun/natural-number-game-solutions | 31d5158415c6f582694680044c5c6469032c2a06 | 1e2aed86d2e76a3f4a275c6d99e795ad30cf6df0 | refs/heads/main | 1,675,123,625,012 | 1,607,633,548,000 | 1,607,633,548,000 | 318,933,860 | 3 | 1 | null | null | null | null | UTF-8 | Lean | false | false | 66 | lean | lemma imp_self (P : Prop) : P → P :=
begin
intro p, exact p,
end |
56b4d7fdb76ecbe36413119b45917e8245a3f726 | dc253be9829b840f15d96d986e0c13520b085033 | /spectrum/smash.hlean | 61392ad862a0e436e45668e0c046d408abb04a7b | [
"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 | 1,627 | hlean | import .spectrification ..homotopy.smash_adjoint
open pointed is_equiv equiv eq susp succ_str smash int
namespace spectrum
/- Smash product of a prespectrum and a type -/
definition smash_prespectrum (X : Type*) (Y : prespectrum) : prespectrum :=
prespectrum.mk (λ z, X ∧ Y z) begin
intro n, refine loop_susp_pint... |
341d8370dce722cf733e938cc0fdfbce727c12a8 | 4727251e0cd73359b15b664c3170e5d754078599 | /src/data/multiset/lattice.lean | 6522818600deec2d59841b7f24099c2c4bc7c07e | [
"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,977 | lean | /-
Copyright (c) 2018 Mario Carneiro. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Mario Carneiro
-/
import data.multiset.finset_ops
import data.multiset.fold
/-!
# Lattice operations on multisets
-/
namespace multiset
variables {α : Type*}
/-! ### sup -/
section ... |
e57c2248a5bdb15a1679a48759a2152a6f16a873 | c777c32c8e484e195053731103c5e52af26a25d1 | /src/number_theory/liouville/measure.lean | c7527bdeb75e6df6b5e7bcafd8a3e769ec98c63f | [
"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 | 6,160 | lean | /-
Copyright (c) 2021 Yury G. Kudryashov. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Yury G. Kudryashov
-/
import measure_theory.measure.lebesgue
import number_theory.liouville.residual
import number_theory.liouville.liouville_with
import analysis.p_series
/-!
# V... |
d6a29196d1dfc38588d729e48a863936d9336d96 | 3dd1b66af77106badae6edb1c4dea91a146ead30 | /tests/lean/run/e16.lean | 2484963ec697a82a81b851e91698911ea0fd6120 | [
"Apache-2.0"
] | permissive | silky/lean | 79c20c15c93feef47bb659a2cc139b26f3614642 | df8b88dca2f8da1a422cb618cd476ef5be730546 | refs/heads/master | 1,610,737,587,697 | 1,406,574,534,000 | 1,406,574,534,000 | 22,362,176 | 1 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 565 | lean | inductive nat : Type :=
| zero : nat
| succ : nat → nat
inductive list (A : Type) : Type :=
| nil {} : list A
| cons : A → list A → list A
check nil
check nil.{1}
check @nil.{1} nat
check @nil nat
check cons zero nil
inductive vector (A : Type) : nat → Type :=
| vnil {} : vector A zero
| vcons : forall {n : nat... |
99f9f33cc55564882ee12d979f4e2cde425f5de9 | f20db13587f4dd28a4b1fbd31953afd491691fa0 | /library/data/bitvec.lean | f06a4337d6b3a5d4fd9cd492f2d44b88917e0000 | [
"Apache-2.0"
] | permissive | AHartNtkn/lean | 9a971edfc6857c63edcbf96bea6841b9a84cf916 | 0d83a74b26541421fc1aa33044c35b03759710ed | refs/heads/master | 1,620,592,591,236 | 1,516,749,881,000 | 1,516,749,881,000 | 118,697,288 | 1 | 0 | null | 1,516,759,470,000 | 1,516,759,470,000 | null | UTF-8 | Lean | false | false | 6,697 | lean | /-
Copyright (c) 2015 Joe Hendrix. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Joe Hendrix, Sebastian Ullrich
Basic operations on bitvectors.
This is a work-in-progress, and contains additions to other theories.
-/
import data.vector
@[reducible] def bitvec (n : ... |
df1f4cdea946b5b0eb23d17067f021ddd858d9c3 | 367134ba5a65885e863bdc4507601606690974c1 | /src/control/monad/writer.lean | 2e287dcb512cac84abbfd13863c70475706626e6 | [
"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 | 7,926 | lean | /-
Copyright (c) 2019 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Simon Hudon
The writer monad transformer for passing immutable state.
-/
import control.monad.basic
import algebra.group.basic
universes u v w u₀ u₁ v₀ v₁
structure writer_t ... |
cc3d43f344897be4bf04a08570ab2170b2edfaa1 | 55c7fc2bf55d496ace18cd6f3376e12bb14c8cc5 | /src/category_theory/closed/cartesian.lean | eed6ddc1b4933ba7cc97eb34058477b1bfee6d1f | [
"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 | 16,083 | lean | /-
Copyright (c) 2020 Bhavik Mehta, Edward Ayers, Thomas Read. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Bhavik Mehta, Edward Ayers, Thomas Read
-/
import category_theory.limits.shapes.finite_products
import category_theory.limits.shapes.constructions.preserve_bi... |
2234407cb683c13871c5f4969a732ffde5a48efc | 26ac254ecb57ffcb886ff709cf018390161a9225 | /test/lint.lean | cdeaef73b041c6fcded964769ba8974c65173046 | [
"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 | 4,319 | lean | import tactic.lint
import algebra.ring
def foo1 (n m : ℕ) : ℕ := n + 1
def foo2 (n m : ℕ) : m = m := by refl
lemma foo3 (n m : ℕ) : ℕ := n - m
lemma foo.foo (n m : ℕ) : n ≥ n := le_refl n
instance bar.bar : has_add ℕ := by apply_instance -- we don't check the name of instances
lemma foo.bar (ε > 0) : ε = ε := rfl -- ... |
42870d5750f3971a4ff0615d464590f52c809dce | 6432ea7a083ff6ba21ea17af9ee47b9c371760f7 | /tests/lean/run/renameFixedPrefix.lean | 6862e6c0063f57653185dd52d05c0073fecd0438 | [
"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 | 179 | lean | def f (as : Array Nat) (hsz : as.size > 0) (i : Nat) : Nat :=
if h : i < as.size then
as.get ⟨i, h⟩ + f as hsz (i + 1)
else
0
termination_by f a h i => a.size - i
|
0fdf4e170a1a1a19ffb91f89cb988ef40d6cded3 | 8eeb99d0fdf8125f5d39a0ce8631653f588ee817 | /src/topology/instances/real.lean | 28cbd3b28b6580dcc77cb75d0b82b6fc0731f45c | [
"Apache-2.0"
] | permissive | jesse-michael-han/mathlib | a15c58378846011b003669354cbab7062b893cfe | fa6312e4dc971985e6b7708d99a5bc3062485c89 | refs/heads/master | 1,625,200,760,912 | 1,602,081,753,000 | 1,602,081,753,000 | 181,787,230 | 0 | 0 | null | 1,555,460,682,000 | 1,555,460,682,000 | null | UTF-8 | Lean | false | false | 16,573 | 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.metric_space.basic
import topology.algebra.uniform_group
import topology.algebra.ring
import topology.algebra.continuous_functions
imp... |
5e3616e53c8bb42d9f6869ec13a7f24c74b30cb6 | 4727251e0cd73359b15b664c3170e5d754078599 | /src/linear_algebra/unitary_group.lean | 50b9743daa1ed607fcb38e7ea5f1a05c8ff86a87 | [
"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 | 4,937 | lean | /-
Copyright (c) 2021 Shing Tak Lam. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Shing Tak Lam
-/
import linear_algebra.matrix.to_lin
import linear_algebra.matrix.nonsingular_inverse
import algebra.star.unitary
/-!
# The Unitary Group
This file defines elements of... |
1e16ebc636fe02ab5c86bb0f80b1583511400fe7 | 5ae26df177f810c5006841e9c73dc56e01b978d7 | /src/measure_theory/integration.lean | b0013e458f8a1c01b38006991282bc72f36643eb | [
"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 | 46,155 | lean | /-
Copyright (c) 2018 Mario Carneiro. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Mario Carneiro, Johannes Hölzl
Lebesgue integral on `ennreal`.
We define simple functions and show that each Borel measurable function on `ennreal` can be
approximated by a sequence ... |
974577ba69224be949b9d95a61c512961001238c | 82e44445c70db0f03e30d7be725775f122d72f3e | /src/meta/expr.lean | 2538eb63eb140e0194f5ce3e8b4a8667e3b1af5d | [
"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 | 45,815 | lean | /-
Copyright (c) 2019 Robert Y. Lewis. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Mario Carneiro, Simon Hudon, Scott Morrison, Keeley Hoek, Robert Y. Lewis, Floris van Doorn
-/
import data.string.defs
import data.option.defs
import tactic.derive_inhabited
/-!
# Add... |
e5432bf40f33d8516e64fcac4ba13d5ed6aec741 | 8bc788d9207355e58d488b937277f2a896073409 | /benchmark.lean | 41fedc0faf440905049eeb93db6d744572c891e4 | [
"MIT"
] | permissive | lacker/lean4perf | d48c586f8108eb8239c772b5e9caf40691f58ce1 | 208c5c42743560f0b40faf1f1bf8e0f8ddb4f6f3 | refs/heads/master | 1,676,253,574,499 | 1,609,974,596,000 | 1,609,974,596,000 | 327,435,770 | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 272 | lean | import Std.Data.HashMap
def main (args : List String) : IO Unit := do
let mut map : Std.HashMap String Nat := Std.HashMap.empty
for n in [0:10000000] do
map := map.insert (toString n) n
IO.print "ran "
IO.print (toString map.size)
IO.print " map inserts\n"
|
59f2cee50ecbd4acf337e40c2ea2b08b19a34233 | b7f22e51856f4989b970961f794f1c435f9b8f78 | /library/data/stream.lean | 9b4acacc98184b1d26096daef46ff5c75c7bee44 | [
"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 | 22,584 | lean | /-
Copyright (c) 2015 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Author: Leonardo de Moura
-/
import data.nat data.list data.equiv
open nat function option
definition stream (A : Type) := nat → A
namespace stream
variables {A B C : Type}
definition... |
ef05cc4253ae42a5c5adced8ba5c5306afb281ad | 2f4707593665f4eac651cd5e5b39ea8eabafe0d6 | /src/tactic/easy.lean | c9deaf3a3ac680600caf24dcb9fb5fdb66c90ab9 | [] | no_license | PatrickMassot/lean-differential-topology | 941d2ac639b2c8bcfcbad85fe5ff0a4676d159e9 | 5b020daa5f935140c53408748a9f11ba02e7bf42 | refs/heads/master | 1,543,081,959,510 | 1,536,089,170,000 | 1,536,089,170,000 | 112,875,905 | 12 | 5 | null | 1,520,841,685,000 | 1,512,247,905,000 | Lean | UTF-8 | Lean | false | false | 1,176 | lean | import data.set.basic
meta def easy : tactic unit :=
`[all_goals { try { ext }, try { dsimp at * }, tauto }]
section examples
variables {α : Type*} (a b c : set α) (x : α)
example : a ∩ b ∩ c = c ∩ b ∩ a :=
by easy
example : a ∩ b ∩ a = a ∩ b :=
by easy
example : a ∩ b ∩ (a ∩ c) = a ∩ b ∩ c :=
by easy
example (x... |
d5783c2de2a2a04b8b8b57c4d16a7ae674454936 | 11e28114d9553ecd984ac4819661ffce3068bafe | /src/util.lean | 4936967845ffe7db715bf8d8e7041411c8e2161f | [
"MIT"
] | permissive | EdAyers/lean-subtask | 9a26eb81f0c8576effed4ca94342ae1281445c59 | 04ac5a6c3bc3bfd190af4d6dcce444ddc8914e4b | refs/heads/master | 1,586,516,665,621 | 1,558,701,948,000 | 1,558,701,948,000 | 160,983,035 | 4 | 1 | null | null | null | null | UTF-8 | Lean | false | false | 10,002 | lean | /- Author: E.W.Ayers © 2019 -/
import data.list writer_t
open tactic
/-- Demarcate code as yet to be implemented. -/
meta def notimpl {α} : α := undefined_core "not implemented"
namespace list
universes u v
variables {α : Type u} {β : Type v}
def qsortby {α} (f : α → int) (l : list α) : list α := qsort (λ... |
ab478ad6f2b7c5309966a75d3724f58515e995be | 8cae430f0a71442d02dbb1cbb14073b31048e4b0 | /src/combinatorics/quiver/basic.lean | 245384adb31c455b4543bed7ffb05b66c6b8cc34 | [
"Apache-2.0"
] | permissive | leanprover-community/mathlib | 56a2cadd17ac88caf4ece0a775932fa26327ba0e | 442a83d738cb208d3600056c489be16900ba701d | refs/heads/master | 1,693,584,102,358 | 1,693,471,902,000 | 1,693,471,902,000 | 97,922,418 | 1,595 | 352 | Apache-2.0 | 1,694,693,445,000 | 1,500,624,130,000 | Lean | UTF-8 | Lean | false | false | 4,390 | lean | /-
Copyright (c) 2021 David Wärn. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: David Wärn, Scott Morrison
-/
import data.opposite
/-!
# Quivers
> THIS FILE IS SYNCHRONIZED WITH MATHLIB4.
> Any changes to this file require a corresponding PR to mathlib4.
This modul... |
4040101cee21f91a649a35014a0ccbf2b2802030 | 75db7e3219bba2fbf41bf5b905f34fcb3c6ca3f2 | /hott/homotopy/red_susp.hlean | dd2ec0d811b3991e65d5d2be76817ea0f91167f9 | [
"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 | 2,774 | 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 reduced suspension
-/
import hit.two_quotient types.pointed algebra.e_closure
open simple_two_quotient eq unit pointed e_closure
namespace red... |
b76ca2c1f6d7a38c4b5fe86a009da22eba42ccec | 63abd62053d479eae5abf4951554e1064a4c45b4 | /src/data/real/ereal.lean | 44402e60b7b087680091d224eb3a85782bf8786b | [
"Apache-2.0"
] | permissive | Lix0120/mathlib | 0020745240315ed0e517cbf32e738d8f9811dd80 | e14c37827456fc6707f31b4d1d16f1f3a3205e91 | refs/heads/master | 1,673,102,855,024 | 1,604,151,044,000 | 1,604,151,044,000 | 308,930,245 | 0 | 0 | Apache-2.0 | 1,604,164,710,000 | 1,604,163,547,000 | null | UTF-8 | Lean | false | false | 3,356 | lean | /-
Copyright (c) 2019 Kevin Buzzard. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Kevin Buzzard
-/
import data.real.basic
/-!
# The extended reals [-∞, ∞].
This file defines `ereal`, the real numbers together with a top and bottom element,
referred to as ⊤ and ⊥. I... |
c19e7800f45608a001f257c0986f29cb2dd711ab | bbecf0f1968d1fba4124103e4f6b55251d08e9c4 | /src/order/rel_iso.lean | 16221859b086a9c584f0c74526f7da0d9ff51711 | [
"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 | 34,839 | lean | /-
Copyright (c) 2017 Mario Carneiro. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Mario Carneiro
-/
import algebra.group.defs
import data.equiv.set
import logic.embedding
import order.rel_classes
/-!
# Relation homomorphisms, embeddings, isomorphisms
This file def... |
ca03528ba76685281061fc6ba049d415982a78b8 | 4309b17a35495daf93ecb4abf8a4e7bfd8d4c7d6 | /q4.lean | 1cb1dde76122531da1e11d2cafaad0c7c9f98955 | [] | no_license | lbarrios/lean_rio2016 | 7533184d3f186ba66351d5ca9eb4b0c7fcbb02a2 | eb34c5d9cc1396d08d6641e57308a357ea030d1a | refs/heads/master | 1,610,270,235,983 | 1,456,692,208,000 | 1,456,692,208,000 | 52,373,073 | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 806 | lean | -------------------------------------------------------
-- Question 4. Prove that every relation R
-- which is transitive, symmetric and serial
-- is also reflexive.
-- Replace the 'sorry' placeholder by an actual proof.
-------------------------------------------------------
variable A : Type
variable R : A → A → Pr... |
7b6cf29732d0a3c85b5b3355331ab8ac3f6cbec7 | 74addaa0e41490cbaf2abd313a764c96df57b05d | /Mathlib/Lean3Lib/init/control/applicative.lean | 4cbd5922241dc0bbc8777a225484db614df2129e | [] | 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 | 437 | 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, Sebastian Ullrich
-/
import Mathlib.PrePort
import Mathlib.Lean3Lib.init.control.functor
universes u v l
namespace Mathlib
infixl:60 " <*> " => Mathlib.... |
789f54ceb5a5dc14f92e4e92a2334e609a2fbfc1 | 07c6143268cfb72beccd1cc35735d424ebcb187b | /src/category_theory/limits/cones.lean | d68f1c403fb26a84044ce355e68a1229365104e7 | [
"Apache-2.0"
] | permissive | khoek/mathlib | bc49a842910af13a3c372748310e86467d1dc766 | aa55f8b50354b3e11ba64792dcb06cccb2d8ee28 | refs/heads/master | 1,588,232,063,837 | 1,587,304,803,000 | 1,587,304,803,000 | 176,688,517 | 0 | 0 | Apache-2.0 | 1,553,070,585,000 | 1,553,070,585,000 | null | UTF-8 | Lean | false | false | 13,422 | 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, Floris van Doorn
-/
import category_theory.const
import category_theory.yoneda
import category_theory.equivalence
universes v u u' -- declare the `v`'s... |
74e966060c1ae5fdc0c0794233d4f50ab242b414 | 26ac254ecb57ffcb886ff709cf018390161a9225 | /src/analysis/normed_space/banach.lean | 3a7f442fe46418f752cb675a4c91b765517165c4 | [
"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,058 | 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.baire
import analysis.normed_space.operator_norm
/-!
# Banach open mapping theorem
This file contains the Banach open mapping the... |
31035a4c64d06b2776752cd0de44e1d1fd88bd8f | 8cae430f0a71442d02dbb1cbb14073b31048e4b0 | /src/topology/metric_space/isometry.lean | 0836c9fe2fb95510c71304b99d23edc773d27379 | [
"Apache-2.0"
] | permissive | leanprover-community/mathlib | 56a2cadd17ac88caf4ece0a775932fa26327ba0e | 442a83d738cb208d3600056c489be16900ba701d | refs/heads/master | 1,693,584,102,358 | 1,693,471,902,000 | 1,693,471,902,000 | 97,922,418 | 1,595 | 352 | Apache-2.0 | 1,694,693,445,000 | 1,500,624,130,000 | Lean | UTF-8 | Lean | false | false | 21,132 | lean | /-
Copyright (c) 2018 Sébastien Gouëzel. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Isometries of emetric and metric spaces
Authors: Sébastien Gouëzel
-/
import topology.metric_space.antilipschitz
/-!
# Isometries
> THIS FILE IS SYNCHRONIZED WITH MATHLIB4.
> Any changes t... |
01a4a4a075b93510cf2990abe50886483ebb1920 | 9dc8cecdf3c4634764a18254e94d43da07142918 | /src/logic/encodable/lattice.lean | 08591a50afbb4c28b6b46784ac37b5cb8fbf670b | [
"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 | 1,576 | lean | /-
Copyright (c) 2020 Floris van Doorn. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Floris van Doorn
-/
import data.finset.basic
import data.set.pairwise
import logic.encodable.basic
/-!
# Lattice operations on encodable types
Lemmas about lattice and set operatio... |
6ac054aaf328e8a8734fdcfdf5d69f0e4c53f19f | 74addaa0e41490cbaf2abd313a764c96df57b05d | /Mathlib/ring_theory/derivation_auto.lean | 0e3ce5c3b0d43d903f8ec01210f8a9830a4fb881 | [] | 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 | 12,416 | lean | /-
Copyright © 2020 Nicolò Cavalleri. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Author: Nicolò Cavalleri.
-/
import Mathlib.PrePort
import Mathlib.Lean3Lib.init.default
import Mathlib.algebra.lie.basic
import Mathlib.ring_theory.algebra_tower
import Mathlib.PostPort
unive... |
ea88eb39cfb1d59225ced34ccddf658a6e7ba9df | bdb33f8b7ea65f7705fc342a178508e2722eb851 | /data/set/enumerate.lean | 6a20ca7043910fb186c158f71fb04289f61fd3f8 | [
"Apache-2.0"
] | permissive | rwbarton/mathlib | 939ae09bf8d6eb1331fc2f7e067d39567e10e33d | c13c5ea701bb1eec057e0a242d9f480a079105e9 | refs/heads/master | 1,584,015,335,862 | 1,524,142,167,000 | 1,524,142,167,000 | 130,614,171 | 0 | 0 | Apache-2.0 | 1,548,902,667,000 | 1,524,437,371,000 | Lean | UTF-8 | Lean | false | false | 2,750 | 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
Enumerate elements of a set with a select function.
-/
import data.encodable data.set.finite data.set.lattice logic.function
noncomputable theory
open function set enc... |
bdad055f6c0a6c05491cb1f2c92c690889c4b833 | 8cae430f0a71442d02dbb1cbb14073b31048e4b0 | /archive/wiedijk_100_theorems/cubing_a_cube.lean | f26ce9402eb3dfbbf709fc95775c5198a4a1e2a1 | [
"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,123 | lean | /-
Copyright (c) 2019 Floris van Doorn. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Floris van Doorn
-/
import data.real.basic
import data.set.finite
import data.set.intervals.disjoint
/-!
> THIS FILE IS SYNCHRONIZED WITH MATHLIB4.
> Any changes to this file requir... |
3dde36a501909bbf8909a9cce1b951e5e308bd44 | 9028d228ac200bbefe3a711342514dd4e4458bff | /src/topology/algebra/uniform_ring.lean | 8a0e3a3a85d389841331835f5aa160ceaf833d4c | [
"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 | 7,656 | 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
Theory of topological rings with uniform structure.
-/
import topology.algebra.group_completion
import topology.algebra.ring
open classical set filter ... |
c30f1170294c22ba8bdca3ce50b8203ed1373cbc | 957a80ea22c5abb4f4670b250d55534d9db99108 | /tests/lean/run/level_bug3.lean | d780265f55e09faf8dd985059036960c63d4816d | [
"Apache-2.0"
] | permissive | GaloisInc/lean | aa1e64d604051e602fcf4610061314b9a37ab8cd | f1ec117a24459b59c6ff9e56a1d09d9e9e60a6c0 | refs/heads/master | 1,592,202,909,807 | 1,504,624,387,000 | 1,504,624,387,000 | 75,319,626 | 2 | 1 | Apache-2.0 | 1,539,290,164,000 | 1,480,616,104,000 | C++ | UTF-8 | Lean | false | false | 199 | lean | variables {a r : Type}
definition f a := Πr, (a -> r) -> r
lemma blah2 (sa : f a) (k : (a -> r)) :
sa r k = sa r k :=
sorry
lemma blah3 (sa : f a) (k : (a -> r)) :
sa r k = sa r k :=
rfl
|
58344bfaa4da3ac4ad8a0edc4ffd9ba36d7b7370 | 77c5b91fae1b966ddd1db969ba37b6f0e4901e88 | /src/ring_theory/subsemiring.lean | f1eb39177a76b693c5bf5d04c636711e16655c9f | [
"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 | 34,131 | lean | /-
Copyright (c) 2020 Yury Kudryashov All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Yury Kudryashov
-/
import algebra.ring.prod
import group_theory.submonoid
import group_theory.submonoid.center
import data.equiv.ring
/-!
# Bundled subsemirings
We define bundled su... |
e8dcc4204fac8c0d090b3147aecfe4cde8b80b4c | 00de0c30dd1b090ed139f65c82ea6deb48c3f4c2 | /src/analysis/normed_space/complemented.lean | a7e6786b6ea7da94011f6ff9113bd4af32809deb | [
"Apache-2.0"
] | permissive | paulvanwamelen/mathlib | 4b9c5c19eec71b475f3dd515cd8785f1c8515f26 | 79e296bdc9f83b9447dc1b81730d36f63a99f72d | refs/heads/master | 1,667,766,172,625 | 1,590,239,595,000 | 1,590,239,595,000 | 266,392,625 | 0 | 0 | Apache-2.0 | 1,590,257,277,000 | 1,590,257,277,000 | null | UTF-8 | Lean | false | false | 4,299 | lean | /-
Copyright (c) 2020 Yury Kudryashov. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Author: Yury Kudryashov
-/
import analysis.normed_space.banach
import analysis.normed_space.finite_dimension
/-!
# Complemented subspaces of normed vector spaces
A submodule `p` of a topolog... |
f0364caec6297d649c6116c8cc72b0b18d107261 | 7cef822f3b952965621309e88eadf618da0c8ae9 | /src/tactic/well_founded_tactics.lean | 23a51072c3290b49496cd19525283d0e0a5a0ce0 | [
"Apache-2.0"
] | permissive | rmitta/mathlib | 8d90aee30b4db2b013e01f62c33f297d7e64a43d | 883d974b608845bad30ae19e27e33c285200bf84 | refs/heads/master | 1,585,776,832,544 | 1,576,874,096,000 | 1,576,874,096,000 | 153,663,165 | 0 | 2 | Apache-2.0 | 1,544,806,490,000 | 1,539,884,365,000 | Lean | UTF-8 | Lean | false | false | 1,157 | lean | /-
Copyright (c) 2017 Scott Morrison. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Scott Morrison
-/
/-!
Replacement for the definition of `well_founded_tactics.default_dec_tac` in core.
-/
namespace well_founded_tactics
open tactic
/--
The definition of `default_... |
1f0a54280afaf07bdec3ed22b167a5a33250547e | 367134ba5a65885e863bdc4507601606690974c1 | /src/category_theory/discrete_category.lean | 71c68a25a2bae8d72992e5451119d37b04c1beb8 | [
"Apache-2.0"
] | permissive | kodyvajjha/mathlib | 9bead00e90f68269a313f45f5561766cfd8d5cad | b98af5dd79e13a38d84438b850a2e8858ec21284 | refs/heads/master | 1,624,350,366,310 | 1,615,563,062,000 | 1,615,563,062,000 | 162,666,963 | 0 | 0 | Apache-2.0 | 1,545,367,651,000 | 1,545,367,651,000 | null | UTF-8 | Lean | false | false | 5,142 | 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, Floris van Doorn
-/
import category_theory.eq_to_hom
namespace category_theory
universes v₁ v₂ u₁ u₂ -- declare the `v`'s first; see `category_theory.... |
c65e044fd77dd35398d8ca7ffb4d041c3cbcff3f | 8cae430f0a71442d02dbb1cbb14073b31048e4b0 | /src/data/fintype/list.lean | 2c9201bc56e31131734aaa9820b60c452331d682 | [
"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,014 | lean | /-
Copyright (c) 2021 Yakov Pechersky. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Yakov Pechersky
-/
import data.fintype.basic
import data.finset.powerset
/-!
# Fintype instance for nodup lists
> THIS FILE IS SYNCHRONIZED WITH MATHLIB4.
> Any changes to this fil... |
e914db9925753ad494bd125a0e6ba00b3c691c2a | 8cae430f0a71442d02dbb1cbb14073b31048e4b0 | /src/algebra/category/fgModule/basic.lean | 118a4688f6a662cb6b02b0fc39985875a96b16af | [
"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 | 7,197 | lean | /-
Copyright (c) 2021 Jakob von Raumer. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Jakob von Raumer
-/
import category_theory.monoidal.rigid.basic
import category_theory.monoidal.subcategory
import linear_algebra.coevaluation
import linear_algebra.free_module.finit... |
bd95a6f4cb8f2cfbca69aec189eb4d52ea851f28 | 798dd332c1ad790518589a09bc82459fb12e5156 | /data/multiset.lean | 61351500e81cb8d44f4e35fa7d152f21b475ba29 | [
"Apache-2.0"
] | permissive | tobiasgrosser/mathlib | b040b7eb42d5942206149371cf92c61404de3c31 | 120635628368ec261e031cefc6d30e0304088b03 | refs/heads/master | 1,644,803,442,937 | 1,536,663,752,000 | 1,536,663,907,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 120,962 | lean | /-
Copyright (c) 2015 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Author: Mario Carneiro
Multisets.
-/
import logic.function order.boolean_algebra
data.list.basic data.list.perm data.list.sort data.quot data.string
algebra.order_functions algebra.... |
ec444fb329dfb1b3fcd0e372a6f7c8ab9d1be543 | 6432ea7a083ff6ba21ea17af9ee47b9c371760f7 | /tests/lean/run/binrec.lean | 6933b6473a04caa4826f416ea7e86711fda80680 | [
"Apache-2.0",
"LLVM-exception",
"NCSA",
"LGPL-3.0-only",
"LicenseRef-scancode-inner-net-2.0",
"BSD-3-Clause",
"LGPL-2.0-or-later",
"Spencer-94",
"LGPL-2.1-or-later",
"HPND",
"LicenseRef-scancode-pcre",
"ISC",
"LGPL-2.1-only",
"LicenseRef-scancode-other-permissive",
"SunPro",
"CMU-Mach"... | permissive | leanprover/lean4 | 4bdf9790294964627eb9be79f5e8f6157780b4cc | f1f9dc0f2f531af3312398999d8b8303fa5f096b | refs/heads/master | 1,693,360,665,786 | 1,693,350,868,000 | 1,693,350,868,000 | 129,571,436 | 2,827 | 311 | Apache-2.0 | 1,694,716,156,000 | 1,523,760,560,000 | Lean | UTF-8 | Lean | false | false | 1,773 | lean | def Nat.bit (b : Bool) (n : Nat) : Nat :=
cond b (2*n+1) (2*n)
theorem Nat.bit_div_even (h : n % 2 = 0) : bit false (n / 2) = n := by
simp [bit]
have := Nat.div_add_mod n 2
simp [h] at this
assumption
theorem Nat.bit_div_odd (h : n % 2 ≠ 0) : bit true (n / 2) = n := by
have h : n % 2 = 1 := by
have :=... |
01a79f9b5246b9aa8a5ddbdb3fded782451b7e6e | 97f752b44fd85ec3f635078a2dd125ddae7a82b6 | /hott/types/fin.hlean | d7fa99e8de49688044f556ece40629de8e7f236d | [
"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 | 20,979 | hlean | /-
Copyright (c) 2015 Haitao Zhang. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Haitao Zhang, Leonardo de Moura, Jakob von Raumer
Finite ordinal types.
-/
import types.list algebra.group function logic types.prod types.sum
open eq nat function list equiv is_trunc a... |
abd468b91fe56d541547230c7500639035d84895 | ac29b4b23012b196d8e8e8fd0482054e994814fb | /class group.lean | 35b25b4981deac60ed6091d4a896a529e0091c19 | [] | no_license | laughinggas/Ashvni | ebdcb0ac7486b9d11a0152952da2742246755a5a | 934229f6fd246ce1cd71597ef9a579f4cb9ef0ef | refs/heads/master | 1,672,397,364,924 | 1,602,089,148,000 | 1,602,089,148,000 | 226,743,788 | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 12,500 | lean | import linear_algebra.finite_dimensional
import ring_theory.ideal.basic
import algebra.field
import ring_theory.subring
import ring_theory.integral_closure
import ring_theory.fractional_ideal
import data.rat.basic
import ring_theory.algebra
import ring_theory.algebraic
import field_theory.separable
import fie... |
dd50b7c1e31f87cd2523f3339d70abf9f764956b | 36c7a18fd72e5b57229bd8ba36493daf536a19ce | /library/algebra/group_power.lean | d89d688ba60bad41dc3b4dce2866ac29b3ef3a10 | [
"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 | 8,408 | lean | /-
Copyright (c) 2015 Jeremy Avigad. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Author: Jeremy Avigad
The power operation on monoids and groups. We separate this from group, because it depends on
nat, which in turn depends on other parts of algebra.
We have "pow a n" for ... |
26185f94b27de620bc4c864e5a576b94ee5e1a29 | 367134ba5a65885e863bdc4507601606690974c1 | /src/algebra/continued_fractions/basic.lean | 7e6d22ee62bb5723206ad0b4d4ef9d6d588bb0c5 | [
"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,225 | lean | /-
Copyright (c) 2019 Kevin Kappelmann. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Kevin Kappelmann
-/
import data.seq.seq
import algebra.field
/-!
# Basic Definitions/Theorems for Continued Fractions
## Summary
We define generalised, simple, and regular continue... |
99c14028bade87ca80d76b806561df8b9b9f9eab | f41725a360d902d3c7939fdf81a5acaf0d0467f0 | /src/statements.lean | ebac871c4b5f6203f685fa805290d23d3388e5ce | [] | no_license | pglutz/galois_theory | 978765d82b7586c21fd719b84b21d5eea030b25d | 4561c2c97d4c49377356e1d7a2051dedc87d30ba | refs/heads/master | 1,671,472,063,361 | 1,603,597,360,000 | 1,603,597,360,000 | 281,502,125 | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 1,784 | lean | import field_theory.separable
import field_theory.normal
import field_theory.fixed
import group_theory.group_action
import automorphisms
import primitive_element
variables (F : Type*) [field F] (E : Type*) [field E] [algebra F E]
@[class] def is_galois : Prop := is_separable F E ∧ normal F E
@[class] def fin_galois ... |
c89f36c38669e47c447543d5083bf14c653c57d5 | b7f22e51856f4989b970961f794f1c435f9b8f78 | /tests/lean/run/cast_sorry_bug.lean | 37804762e7c3b2d35fcf5eef4cd90192d06d3933 | [
"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 | 383 | lean | import logic data.nat
open nat
inductive fin : ℕ → Type :=
| zero : Π {n : ℕ}, fin (succ n)
| succ : Π {n : ℕ}, fin n → fin (succ n)
theorem foo (n m : ℕ) (a : fin n) (b : fin m) (H : n = m) : cast (congr_arg fin H) a = b :=
have eq : fin n = fin m, from congr_arg fin H,
have ceq : cast eq a = b, from sorry, -- sorr... |
67ab9a37ae3dafb4dd34ecd92d0020cc38925ed4 | 8b9f17008684d796c8022dab552e42f0cb6fb347 | /hott/types/prod.hlean | ef1e5a200b3d66a1d816db824be0721ba26db6be | [
"Apache-2.0"
] | permissive | chubbymaggie/lean | 0d06ae25f9dd396306fb02190e89422ea94afd7b | d2c7b5c31928c98f545b16420d37842c43b4ae9a | refs/heads/master | 1,611,313,622,901 | 1,430,266,839,000 | 1,430,267,083,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 1,285 | hlean | /-
Copyright (c) 2014 Floris van Doorn. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Module: types.prod
Author: Floris van Doorn
Ported from Coq HoTT
Theorems about products
-/
open eq equiv is_equiv is_trunc prod
variables {A A' B B' C D : Type}
{a a' a'' : A} ... |
c778da13a66a80828578da2a7de2ee84a812c8e8 | 94e33a31faa76775069b071adea97e86e218a8ee | /test/instance_diamonds.lean | 75001714fb61c706ea341b1bcffd13d603561835 | [
"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 | 6,376 | 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.module.pi
import data.polynomial.basic
import group_theory.group_action.prod
import group_theory.group_action.units
import data.complex.module
import ring_t... |
de43e9ff3eb56f90057018e39ce8f443c45ea003 | a2ee6a66690e8da666951cac0c243d42db11f9f3 | /src/linear_algebra/basic.lean | af86e0ced075d55764d4bd120fc0c495b2d33f6a | [
"Apache-2.0"
] | permissive | shyamalschandra/mathlib | 6d414d7c334bf383e764336843f065bd14c44273 | ca679acad147870b2c5087d90fe3550f107dea49 | refs/heads/master | 1,671,730,354,335 | 1,601,883,576,000 | 1,601,883,576,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 106,119 | 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, Kevin Buzzard, Yury Kudryashov
-/
import algebra.big_operators.pi
import algebra.module.pi
import algebra.module.prod
import algebra.module.submodule
im... |
286441be5d6030fdddb1e6192fa660b3cd83afec | 6432ea7a083ff6ba21ea17af9ee47b9c371760f7 | /tests/lean/run/combinatorsAndWF.lean | d8806787cbf0feb87cd1aed58c549c6718615973 | [
"Apache-2.0",
"LLVM-exception",
"NCSA",
"LGPL-3.0-only",
"LicenseRef-scancode-inner-net-2.0",
"BSD-3-Clause",
"LGPL-2.0-or-later",
"Spencer-94",
"LGPL-2.1-or-later",
"HPND",
"LicenseRef-scancode-pcre",
"ISC",
"LGPL-2.1-only",
"LicenseRef-scancode-other-permissive",
"SunPro",
"CMU-Mach"... | permissive | leanprover/lean4 | 4bdf9790294964627eb9be79f5e8f6157780b4cc | f1f9dc0f2f531af3312398999d8b8303fa5f096b | refs/heads/master | 1,693,360,665,786 | 1,693,350,868,000 | 1,693,350,868,000 | 129,571,436 | 2,827 | 311 | Apache-2.0 | 1,694,716,156,000 | 1,523,760,560,000 | Lean | UTF-8 | Lean | false | false | 3,749 | lean | def List.foldl_wf [SizeOf β] (bs : List β) (init : α) (f : α → (b : β) → sizeOf b < sizeOf bs → α) : α :=
go init bs (Nat.le_refl ..)
where
go (a : α) (cs : List β) (h : sizeOf cs ≤ sizeOf bs) : α :=
match cs with
| [] => a
| c :: cs =>
have : sizeOf c < sizeOf (c :: cs) := by simp_arith
-- ... |
ca7ce3808d4e59a4478a0b930d3cc761ad3e22b7 | 74addaa0e41490cbaf2abd313a764c96df57b05d | /Mathlib/Lean3Lib/init/meta/interactive_base.lean | 8c65cde3859e380a03c391bcba83096a7cf9e545 | [] | 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 | 859 | lean | /-
Copyright (c) 2016 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Leonardo de Moura
-/
import Mathlib.PrePort
import Mathlib.Lean3Lib.init.data.option.basic
import Mathlib.Lean3Lib.init.meta.lean.parser
import Mathlib.Lean3Lib.init.meta.tactic... |
cb0d2694e980653dc918bb66a6096fee785a8698 | a9d0fb7b0e4f802bd3857b803e6c5c23d87fef91 | /hott/prop_trunc.hlean | 52b44412b60520fe4af3fd22b5d18d9dab4990d0 | [
"Apache-2.0"
] | permissive | soonhokong/lean-osx | 4a954262c780e404c1369d6c06516161d07fcb40 | 3670278342d2f4faa49d95b46d86642d7875b47c | refs/heads/master | 1,611,410,334,552 | 1,474,425,686,000 | 1,474,425,686,000 | 12,043,103 | 5 | 1 | null | null | null | null | UTF-8 | Lean | false | false | 1,770 | hlean | /-
Copyright (c) 2015 Jakob von Raumer. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Jakob von Raumer, Floris van Doorn
Proof of the theorem that (is_trunc n A) is a mere proposition
We prove this here to avoid circular dependency of files
We want to use this in .eq... |
75b06e4a1d80bfd6ec6056a207df3cc5b19bf909 | 8cae430f0a71442d02dbb1cbb14073b31048e4b0 | /src/category_theory/abelian/basic.lean | c42493076843ba9ef65bcc4f7d1f036e638acfff | [
"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 | 31,585 | lean | /-
Copyright (c) 2020 Markus Himmel. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Markus Himmel, Johan Commelin, Scott Morrison
-/
import category_theory.limits.constructions.pullbacks
import category_theory.preadditive.biproducts
import category_theory.limits.shape... |
05345b3f4b09f311ee1f3abf55156a7462299ef3 | 36c7a18fd72e5b57229bd8ba36493daf536a19ce | /hott/cubical/squareover.hlean | b37c5065c5186ab2b85b67a3d80473149c313944 | [
"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 | 15,653 | 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
Squareovers
-/
import .square
open eq equiv is_equiv equiv.ops
namespace eq
-- we give the argument B explicitly, because Lean would find (λa, B a) by itself, ... |
95182ef43d769110f78b09e73331100016f526c8 | cabd1ea95170493667c024ef2045eb86d981b133 | /src/super/trim.lean | 41c5e5bf2bd24ab51b625f92014d47db481d70b9 | [] | no_license | semorrison/super | 31db4b5aa5ef4c2313dc5803b8c79a95f809815b | 0c6c03ba9c7470f801eb4d055294f424ff090308 | refs/heads/master | 1,630,272,140,541 | 1,511,054,739,000 | 1,511,054,756,000 | 114,317,807 | 0 | 0 | null | 1,513,304,776,000 | 1,513,304,775,000 | null | UTF-8 | Lean | false | false | 1,298 | lean | /-
Copyright (c) 2017 Gabriel Ebner. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Gabriel Ebner
-/
import .utils
open monad expr tactic
namespace super
-- TODO(gabriel): rewrite using conversions
meta def trim : expr → tactic expr
| (app (lam n m d b) arg) :=
if ... |
9cfe9ca7d27ef7ef65dc9c41d76fee8de9125b08 | 74addaa0e41490cbaf2abd313a764c96df57b05d | /Mathlib/data/polynomial/ring_division_auto.lean | 4f565de1d0855cec715c35df85cbdd18143e2458 | [] | 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 | 14,447 | lean | /-
Copyright (c) 2018 Chris Hughes. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Chris Hughes, Johannes Hölzl, Scott Morrison, Jens Wagemaker, Johan Commelin
-/
import Mathlib.PrePort
import Mathlib.Lean3Lib.init.default
import Mathlib.data.polynomial.basic
import Ma... |
46140f5f13e0618c0c7720f2bda391a887bd2a50 | cf39355caa609c0f33405126beee2739aa3cb77e | /tests/lean/eta_bug.lean | 33a1e6124ec9bd5776780bf3d3170b818ce02c35 | [
"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 | 148 | lean | --
#reduce λ (A : Type*) (x y : A) (H₁ : x = y) (H₂ : y = x), eq.trans H₁ H₂
-- Should not reduce to
-- λ (A : Type*) (x y : A), eq.trans
|
9e379d8667468cbfc20faa594f962e96be70d032 | 8cae430f0a71442d02dbb1cbb14073b31048e4b0 | /src/control/bitraversable/basic.lean | 2d9b48ea6a9f739371d9d21df338c274e98757b3 | [
"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 | 3,243 | lean | /-
Copyright (c) 2018 Simon Hudon. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Simon Hudon
-/
import control.bifunctor
import control.traversable.basic
/-!
# Bitraversable type class
> THIS FILE IS SYNCHRONIZED WITH MATHLIB4.
> Any changes to this file require a c... |
de4393ff3443ab2f845b7e57d979d784f7a23a16 | 63abd62053d479eae5abf4951554e1064a4c45b4 | /src/group_theory/congruence.lean | 2d79d43cbc1c3c8052741d21258ce7a215616d58 | [
"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 | 42,941 | 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 ... |
a55181a85b84f27dd2b3956d9bef239861a7d15c | a9d0fb7b0e4f802bd3857b803e6c5c23d87fef91 | /tests/lean/run/simp1.lean | 41933a52dc9996a2c799be67b1fdc4225380e2a5 | [
"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 | 296 | lean | constants (A : Type.{1}) (f : A → A → A) (x y z : A) (g : A → A)
attribute [simp]
lemma foo : f x y = y := sorry
attribute [simp]
lemma bar : g y = z := sorry
open tactic
set_option trace.simplifier.failure true
example : g (f x y) = z := by simp
example : g (f x (f x y)) = z := by simp
|
222f89d09ce64f2aacd63ea76e6710d054bb6540 | bbecf0f1968d1fba4124103e4f6b55251d08e9c4 | /src/analysis/box_integral/basic.lean | 2e4f45315bf32817ab41d186ddfd4278079509ce | [
"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 | 43,290 | 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 analysis.box_integral.partition.filter
import analysis.box_integral.partition.measure
import topology.uniform_space.compact_separated
/-!
# Integrals of Rie... |
b7566759ad1289d09d0b511ad3b75459c381fdf9 | 4727251e0cd73359b15b664c3170e5d754078599 | /src/algebra/category/Mon/limits.lean | 65297a1d52f7cf829f45a383926b50321c00186d | [
"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,478 | 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.Mon.basic
import algebra.group.pi
import category_theory.limits.creates
import category_theory.limits.types
import group_theory.submonoid.oper... |
85f9a030fa0dc69e16e214778b7da7db4bfca215 | 4efff1f47634ff19e2f786deadd394270a59ecd2 | /src/data/list/sigma.lean | 4488388d87fbe4e82d607047302e0384ea4f301f | [
"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 | 24,012 | lean | /-
Copyright (c) 2018 Mario Carneiro. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Mario Carneiro, Sean Leather
Functions on lists of sigma types.
-/
import data.list.perm
import data.list.range
import data.sigma
universes u v
namespace list
variables {α : Type u}... |
d560694e7b46a5e9c146b5de47d7ed69d830d3f2 | d406927ab5617694ec9ea7001f101b7c9e3d9702 | /src/data/set/semiring.lean | 8a9825a30d394fb2fb957998f59dcd882d866958 | [
"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,405 | lean | /-
Copyright (c) 2020 Floris van Doorn. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Floris van Doorn
-/
import data.set.pointwise.smul
/-!
# Sets as a semiring under union
This file defines `set_semiring α`, an alias of `set α`, which we endow with `∪` as addition... |
3b90881e6b46b152e6ca6d8c5c6db410485ae09d | b00eb947a9c4141624aa8919e94ce6dcd249ed70 | /stage0/src/Init/Data/Nat/Basic.lean | 230a30725df5f1649e815b28a203d6bf221d72fe | [
"Apache-2.0"
] | permissive | gebner/lean4-old | a4129a041af2d4d12afb3a8d4deedabde727719b | ee51cdfaf63ee313c914d83264f91f414a0e3b6e | refs/heads/master | 1,683,628,606,745 | 1,622,651,300,000 | 1,622,654,405,000 | 142,608,821 | 1 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 13,677 | lean | /-
Copyright (c) 2014 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Floris van Doorn, Leonardo de Moura
-/
prelude
import Init.SimpLemmas
universes u
namespace Nat
@[specialize] def foldAux {α : Type u} (f : Nat → α → α) (s : Nat) : Nat → α → ... |
04afa702cf046053176f3480b8ffd6859a21b04e | 6dc0c8ce7a76229dd81e73ed4474f15f88a9e294 | /stage0/src/Lean/Elab/BuiltinNotation.lean | 6dc8378a4b84c0db374407c62497e56cb19d7989 | [
"Apache-2.0"
] | permissive | williamdemeo/lean4 | 72161c58fe65c3ad955d6a3050bb7d37c04c0d54 | 6d00fcf1d6d873e195f9220c668ef9c58e9c4a35 | refs/heads/master | 1,678,305,356,877 | 1,614,708,995,000 | 1,614,708,995,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 14,821 | 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 Init.Data.ToString
import Lean.Compiler.BorrowedAnnotation
import Lean.Meta.KAbstract
import Lean.Meta.Transform
import Lean.Elab.Term
import Lean.El... |
fbe5059c95ca8d6678b967126390253414c37ff7 | 9dc8cecdf3c4634764a18254e94d43da07142918 | /src/data/int/succ_pred.lean | 7f67817ce0480b610aaf06e59a4f6f9763077955 | [
"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 | 2,175 | lean | /-
Copyright (c) 2021 Yaël Dillies. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Yaël Dillies
-/
import data.int.basic
import data.nat.succ_pred
/-!
# Successors and predecessors of integers
In this file, we show that `ℤ` is both an archimedean `succ_order` and an ... |
063c89daeaba7106bbb25cca2f9f9e82c360b3cf | 6432ea7a083ff6ba21ea17af9ee47b9c371760f7 | /tests/lean/run/kernel1.lean | 765a3982d881141fe2537b131b4079ca0dd52725 | [
"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 | 803 | lean | import Lean
open Lean
def checkDefEq (a b : Name) : CoreM Unit := do
let env ← getEnv
let a := mkConst a
let b := mkConst b
let r ← ofExceptKernelException (Kernel.isDefEq env {} a b)
IO.println (toString a ++ " =?= " ++ toString b ++ " := " ++ toString r)
def a1 := 100 + 100
def a2 := 200
def a3 := 20
#... |
90e6e14d6c5e199753e020984dc810c8a80a1e1d | 367134ba5a65885e863bdc4507601606690974c1 | /src/algebra/continued_fractions/computation/correctness_terminating.lean | bb19a08b33e97e281f6f3f98b6343589a90a79a0 | [
"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 | 11,835 | lean | /-
Copyright (c) 2020 Kevin Kappelmann. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Kevin Kappelmann
-/
import algebra.continued_fractions.computation.translations
import algebra.continued_fractions.terminated_stable
import algebra.continued_fractions.continuants_re... |
d33ff481c1382cb706ccd8bbfbddd55d5a55b023 | 94e33a31faa76775069b071adea97e86e218a8ee | /src/ring_theory/norm.lean | 0d94b6619a7e92778baa5b396c3d8dd455455238 | [
"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 | 13,065 | lean | /-
Copyright (c) 2021 Anne Baanen. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Anne Baanen
-/
import field_theory.primitive_element
import linear_algebra.determinant
import linear_algebra.finite_dimensional
import linear_algebra.matrix.charpoly.minpoly
import linea... |
fc70dd4ad30e1c94d42565a02eb3d2bfe4f9b1cf | bb31430994044506fa42fd667e2d556327e18dfe | /src/number_theory/fermat4.lean | 38e16e2234eec71560538716ef329d4e1ddf2ff9 | [
"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 | 11,772 | lean | /-
Copyright (c) 2020 Paul van Wamelen. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Paul van Wamelen
-/
import number_theory.pythagorean_triples
import ring_theory.coprime.lemmas
import tactic.linear_combination
/-!
# Fermat's Last Theorem for the case n = 4
There ... |
15e5d632af613f067aac849c1cc158907dba66c1 | bbecf0f1968d1fba4124103e4f6b55251d08e9c4 | /src/analysis/normed_space/banach.lean | 00faf79d731db2a83df5446a5037c242524cd668 | [
"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 | 17,532 | 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.baire
import analysis.normed_space.operator_norm
import analysis.normed_space.affine_isometry
/-!
# Banach open mapping theorem
T... |
b17f8adffd819d504d3b440ad691eb3cad4559ce | 64874bd1010548c7f5a6e3e8902efa63baaff785 | /tests/lean/hott/noc.hlean | 263a5939dd23d076e455e67c507d61f63f60dc2a | [
"Apache-2.0"
] | permissive | tjiaqi/lean | 4634d729795c164664d10d093f3545287c76628f | d0ce4cf62f4246b0600c07e074d86e51f2195e30 | refs/heads/master | 1,622,323,796,480 | 1,422,643,069,000 | 1,422,643,069,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 442 | hlean | set_option pp.beta true
structure foo :=
mk :: (A : Type) (B : A → Type) (a : A) (b : B a)
namespace foo
definition foo.inj₁
{A₁ : Type} {B₁ : A₁ → Type} {a₁ : A₁} {b₁ : B₁ a₁}
{A₂ : Type} {B₂ : A₂ → Type} {a₂ : A₂} {b₂ : B₂ a₂}
(H : foo.mk A₁ B₁ a₁ b₁ = foo.mk A₂ B₂ a₂ b₂)
: A₁ = A₂
:= lift.... |
3b1a6f21b1bcc3069df83a09b5b4e0dffca90618 | c3f2fcd060adfa2ca29f924839d2d925e8f2c685 | /library/data/nat/div.lean | 22ef5d14863af332596dcac46168265973b497c1 | [
"Apache-2.0"
] | permissive | respu/lean | 6582d19a2f2838a28ecd2b3c6f81c32d07b5341d | 8c76419c60b63d0d9f7bc04ebb0b99812d0ec654 | refs/heads/master | 1,610,882,451,231 | 1,427,747,084,000 | 1,427,747,429,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 36,827 | lean | /-
Copyright (c) 2014 Jeremy Avigad. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Module: data.nat.div
Authors: Jeremy Avigad, Leonardo de Moura
Definitions and properties of div, mod, gcd, lcm, coprime. Much of the development follows
Isabelle's library.
-/
import data.na... |
fc6f1c438ae7e116483cfe13355c5effbcb5490d | d642a6b1261b2cbe691e53561ac777b924751b63 | /src/measure_theory/measurable_space.lean | e241a926030f5784f8cf79211f85b5cd8095cec1 | [
"Apache-2.0"
] | permissive | cipher1024/mathlib | fee56b9954e969721715e45fea8bcb95f9dc03fe | d077887141000fefa5a264e30fa57520e9f03522 | refs/heads/master | 1,651,806,490,504 | 1,573,508,694,000 | 1,573,508,694,000 | 107,216,176 | 0 | 0 | Apache-2.0 | 1,647,363,136,000 | 1,508,213,014,000 | Lean | UTF-8 | Lean | false | false | 42,854 | 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
Measurable spaces -- σ-algberas
-/
import data.set.disjointed order.galois_connection data.set.countable
/-!
# Measurable spaces and measurable functio... |
df1e8bc110792007b9a910edf10700375a8d4db4 | e00ea76a720126cf9f6d732ad6216b5b824d20a7 | /src/topology/algebra/monoid.lean | e260f27e8dffe3f6a52a41673e40383254953025 | [
"Apache-2.0"
] | permissive | vaibhavkarve/mathlib | a574aaf68c0a431a47fa82ce0637f0f769826bfe | 17f8340912468f49bdc30acdb9a9fa02eeb0473a | refs/heads/master | 1,621,263,802,637 | 1,585,399,588,000 | 1,585,399,588,000 | 250,833,447 | 0 | 0 | Apache-2.0 | 1,585,410,341,000 | 1,585,410,341,000 | null | UTF-8 | Lean | false | false | 5,702 | 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
Theory of topological monoids.
TODO: generalize `topological_monoid` and `topological_add_monoid` to semigroups, or add a type class
`topological_opera... |
35c6b5781000b5cd9f3b3cacc4db38738b25937a | 74addaa0e41490cbaf2abd313a764c96df57b05d | /Mathlib/Lean3Lib/init/meta/async_tactic.lean | 23ed18d4ea80858bfff7e3a756e29c40ba82b32d | [] | 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 | 303 | lean | /-
Copyright (c) 2017 Gabriel Ebner. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Gabriel Ebner
-/
import Mathlib.PrePort
import Mathlib.Lean3Lib.init.meta.tactic
import Mathlib.Lean3Lib.init.meta.interactive
namespace Mathlib
namespace tactic
|
e93bb740a4f44c6f8af50bf0236aea73b1e26f58 | a9d0fb7b0e4f802bd3857b803e6c5c23d87fef91 | /tests/lean/def_ite_value.lean | 6ec74e2dc9743c846eed375c5bdb28787c68e257 | [
"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 | 297 | lean | set_option eqn_compiler.lemmas false -- TODO(Leo): remove
definition f : string → nat → nat
| "hello world" 1 := 0
| "hello world" _ := 1
| "bye" 1 := 2
| _ _ := 3
vm_eval f "hello world" 1
vm_eval f "hello world" 2
vm_eval f "bye" 1
vm_eval f "bye" 2
vm_eval f "hello" 1
|
b61e12d194b05e087cbea9a03b07d50ebdbf1e7c | bce603343785d07c32cb8b35950aba0b4d9415ae | /lean4/Crypto/Structure.lean | 604c753917947417e826474bc29b81748d10923c | [] | no_license | fpvandoorn/cryptomorphism | db00cf0b12c8fd561a6200eee6a6ff2a023f1228 | d486419ecced54de3db759dae81110be44b7c28b | refs/heads/master | 1,693,198,883,854 | 1,636,562,038,000 | 1,636,562,038,000 | 363,219,330 | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 17,166 | lean | import Lean
import Crypto.Util
open Lean Elab Tactic Meta
namespace Crypto
/-- Return true iff `constName` is the a non-recursive inductive datatype without indices
that has only one constructor. If `includeProp` is false, we also check that the datatype is
not `Prop` or `Sort*` -/
def isVeryStructureLike (env :... |
a28edc0c49631af2894c5a69d4514ff71c6bf304 | 55c7fc2bf55d496ace18cd6f3376e12bb14c8cc5 | /src/topology/uniform_space/basic.lean | b1dd802279e9030a8f2d823a3d2758ac51dde191 | [
"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 | 69,072 | lean | /-
Copyright (c) 2017 Johannes Hölzl. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Johannes Hölzl, Mario Carneiro, Patrick Massot
-/
import order.filter.lift
import topology.separation
/-!
# Uniform spaces
Uniform spaces are a generalization of metric spaces and top... |
270aaa5cd95be2111fcdc7746aa2e9497f60cf1c | 9dc8cecdf3c4634764a18254e94d43da07142918 | /src/algebra/category/Ring/constructions.lean | 784d5c3326f392b445cb6c51b8741b6031a88df5 | [
"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 | 8,992 | 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.limits.shapes.pullbacks
import ring_theory.tensor_product
import algebra.category.Ring.limits
import algebra.category.Ring.colimits
import category_t... |
d32fab9627b736ddbfe6c90b2e26f9b977027743 | 367134ba5a65885e863bdc4507601606690974c1 | /src/analysis/calculus/darboux.lean | af470c8d69fcbc2f84c99084b67f839d60a4dd65 | [
"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 | 4,784 | lean | /-
Copyright (c) 2020 Yury Kudryashov. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Yury Kudryashov
-/
import analysis.calculus.mean_value
/-!
# Darboux's theorem
In this file we prove that the derivative of a differentiable function on an interval takes all
interm... |
2a2400ac0070b2a4ce40933fbc89fcc2e88edac4 | f3be49eddff7edf577d3d3666e314d995f7a6357 | /TBA/Solutions/Exercise2.lean | 0ef4a8f2b91fb123c64fbeb3fc5cccbd59af2985 | [] | no_license | IPDSnelting/tba-2021 | 8b930bcd2f4aae44a2ddc86e72b77f84e6d46e82 | b6390e55b768423d3266969e81d19290129c5914 | refs/heads/master | 1,686,754,693,583 | 1,625,135,602,000 | 1,625,136,365,000 | 355,124,341 | 50 | 7 | null | 1,625,133,762,000 | 1,617,699,824,000 | Lean | UTF-8 | Lean | false | false | 3,897 | lean | section
variable (α : Type) (p q : α → Prop) (r : α → α → Prop)
/- UNIVERSAL QUANTIFICATION -/
-- We can leave off `: α` if Lean can infer it (here via `p`/`q`)
example : (∀ x, p x) → (∀ x, p x → q x) → (∀ x, q x) :=
fun hp hpq x => hpq x (hp x)
-- The reverse direction of the slides example
example : (∀ x, p x ∧... |
3a339026a4e8b4e0f381286fab69e561bb7c587f | 6432ea7a083ff6ba21ea17af9ee47b9c371760f7 | /src/Lean/Elab/Deriving/DecEq.lean | 9e655ccddf0ecef8c8bc93c26da60e8fe3d87558 | [
"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 | 8,142 | 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.Transform
import Lean.Meta.Inductive
import Lean.Elab.Deriving.Basic
import Lean.Elab.Deriving.Util
namespace Lean.Elab.Deriving.DecEq
ope... |
a1d0339b82706e02f348052e502c32d8015c1414 | 8cae430f0a71442d02dbb1cbb14073b31048e4b0 | /src/measure_theory/measure/giry_monad.lean | 54df82819187182c962b2003c8421ccfa66cda1b | [
"Apache-2.0"
] | permissive | leanprover-community/mathlib | 56a2cadd17ac88caf4ece0a775932fa26327ba0e | 442a83d738cb208d3600056c489be16900ba701d | refs/heads/master | 1,693,584,102,358 | 1,693,471,902,000 | 1,693,471,902,000 | 97,922,418 | 1,595 | 352 | Apache-2.0 | 1,694,693,445,000 | 1,500,624,130,000 | Lean | UTF-8 | Lean | false | false | 8,542 | lean | /-
Copyright (c) 2019 Johannes Hölzl. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Johannes Hölzl
-/
import measure_theory.integral.lebesgue
/-!
# The Giry monad
> THIS FILE IS SYNCHRONIZED WITH MATHLIB4.
> Any changes to this file require a corresponding PR to mat... |
b0c9e830453d3d4515d52277f0ac434d10d67e3c | 8cae430f0a71442d02dbb1cbb14073b31048e4b0 | /src/model_theory/definability.lean | b38b5f355e3ba710378f97c7383ab27cff0bacfb | [
"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 | 11,425 | 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 data.set_like.basic
import model_theory.semantics
/-!
# Definable Sets
> THIS FILE IS SYNCHRONIZED WITH MATHLIB4.
> Any changes to this file require a corres... |
acfc32cdebd7c8b48cfe857670d8e3c54dec1f35 | b7f22e51856f4989b970961f794f1c435f9b8f78 | /tests/lean/run/tactic9.lean | 1d365fb966d7691302097ce4a7f854f71a2c46da | [
"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 | 139 | lean | import logic
open tactic
theorem tst {A B : Prop} (H1 : A) (H2 : B) : ((fun x : Prop, x) A) ∧ B ∧ A
:= by repeat (split | assumption)
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.