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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
7091598e5cfc90a22eed01d391e94e57eb1b81f9 | c5b07d17b3c9fb19e4b302465d237fd1d988c14f | /src/isos/list.lean | e541fd447e763dfac2ff39b3b44ddb8ea03fe91b | [
"MIT"
] | permissive | skaslev/papers | acaec61602b28c33d6115e53913b2002136aa29b | f15b379f3c43bbd0a37ac7bb75f4278f7e901389 | refs/heads/master | 1,665,505,770,318 | 1,660,378,602,000 | 1,660,378,602,000 | 14,101,547 | 0 | 1 | MIT | 1,595,414,522,000 | 1,383,542,702,000 | Lean | UTF-8 | Lean | false | false | 1,531 | lean | import isos.nat
import isos.vec
namespace list
-- list(x) = 1 + x list(x) = 1/(1-x)
def def_iso {A} : list A ≃ 1 ⊕ A × (list A) :=
⟨λ x, list.rec (sum.inl ()) (λ h t ih, sum.inr (h, t)) x,
λ x, sum.rec (λ y, []) (λ y, y.1 :: y.2) x,
λ x, by induction x; repeat { simp },
λ x, by induction x; { induction x, refl }; {... |
c9417442ad4b6ea0e37af98bd7be4ac9f7c291ef | 07c6143268cfb72beccd1cc35735d424ebcb187b | /src/analysis/complex/basic.lean | b9e3b280b0645f35e65895fd51359c125e32ce7a | [
"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 | 8,437 | lean | /-
Copyright (c) Sébastien Gouëzel. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Sébastien Gouëzel
-/
import analysis.calculus.deriv analysis.normed_space.finite_dimension
/-!
# Normed space structure on `ℂ`.
This file gathers basic facts on complex numbers of an a... |
ba3eb05cecb7b2c55ff96a52b869875770c70499 | e21db629d2e37a833531fdcb0b37ce4d71825408 | /src/mcl/default.lean | 0a91be875835f3c616ba74f0a630cddbee949968 | [] | no_license | fischerman/GPU-transformation-verifier | 614a28cb4606a05a0eb27e8d4eab999f4f5ea60c | 75a5016f05382738ff93ce5859c4cfa47ccb63c1 | refs/heads/master | 1,586,985,789,300 | 1,579,290,514,000 | 1,579,290,514,000 | 165,031,073 | 1 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 82 | lean | import .defs
import .compute_list
import .ts_updates
import .rhl
import .syncablep |
5367272ab8eee0ddfd664afd3b18f8a260176b61 | 432d948a4d3d242fdfb44b81c9e1b1baacd58617 | /src/algebra/homology/image_to_kernel_map.lean | 179e73b50d68d44ba0df27b5da68526466ffef4a | [
"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 | 3,671 | lean | /-
Copyright (c) 2020 Scott Morrison. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Scott Morrison
-/
import category_theory.limits.shapes.images
import category_theory.limits.shapes.kernels
/-!
# The morphism from `image f` to `kernel g` when `f ≫ g = 0`
We define ... |
67036570fc664faa760e2540cb640a6411951a06 | d406927ab5617694ec9ea7001f101b7c9e3d9702 | /src/topology/algebra/module/multilinear.lean | 8bdb55433e7a62821f1b2be1081f1c1db00acd20 | [
"Apache-2.0"
] | permissive | alreadydone/mathlib | dc0be621c6c8208c581f5170a8216c5ba6721927 | c982179ec21091d3e102d8a5d9f5fe06c8fafb73 | refs/heads/master | 1,685,523,275,196 | 1,670,184,141,000 | 1,670,184,141,000 | 287,574,545 | 0 | 0 | Apache-2.0 | 1,670,290,714,000 | 1,597,421,623,000 | Lean | UTF-8 | Lean | false | false | 21,239 | lean | /-
Copyright (c) 2020 Sébastien Gouëzel. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Sébastien Gouëzel
-/
import topology.algebra.module.basic
import linear_algebra.multilinear.basic
/-!
# Continuous multilinear maps
We define continuous multilinear maps as maps f... |
649382469f1a47c08b6877ed92ba3df065800a09 | 4d2583807a5ac6caaffd3d7a5f646d61ca85d532 | /src/ring_theory/valuation/integral.lean | 75171bf7be0ca2467c81897f71920333316917a7 | [
"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 | 2,091 | 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... |
761b81b4bdb53ea30b2c295531e10c264ef59f91 | 92b50235facfbc08dfe7f334827d47281471333b | /library/data/vector.lean | 5d22472f9129f1a65e91bbeddaa864bdaa20aafd | [
"Apache-2.0"
] | permissive | htzh/lean | 24f6ed7510ab637379ec31af406d12584d31792c | d70c79f4e30aafecdfc4a60b5d3512199200ab6e | refs/heads/master | 1,607,677,731,270 | 1,437,089,952,000 | 1,437,089,952,000 | 37,078,816 | 0 | 0 | null | 1,433,780,956,000 | 1,433,780,955,000 | null | UTF-8 | Lean | false | false | 10,515 | lean | /-
Copyright (c) 2014 Floris van Doorn. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Author: Floris van Doorn, Leonardo de Moura
-/
import data.nat data.list data.fin
open nat prod fin
inductive vector (A : Type) : nat → Type :=
| nil {} : vector A zero
| cons : Π {n}, A →... |
10c7c8e485901ec2278208bf083001c743b2167c | 947fa6c38e48771ae886239b4edce6db6e18d0fb | /src/set_theory/game/pgame.lean | 7b893d6bdeefabd507dfbbf659bcd4253affaa5d | [
"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 | 59,755 | lean | /-
Copyright (c) 2019 Mario Carneiro. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Reid Barton, Mario Carneiro, Isabel Longbottom, Scott Morrison
-/
import data.fin.basic
import data.list.basic
import logic.relation
/-!
# Combinatorial (pre-)games.
The basic theory... |
b14d9265e618b378a4f110d0707ab0f67f758324 | 947b78d97130d56365ae2ec264df196ce769371a | /src/Lean/Compiler/ExportAttr.lean | 6ec4b96c4b9fe14e3041f1f4e867f8d1234f7768 | [
"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 | 1,417 | 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.Attributes
namespace Lean
private def isValidCppId (id : String) : Bool :=
let first := id.get 0;
first.isAlpha && (id.toSubstring.drop 1).al... |
195929d1736e4423f52ede3b7e3a741c708ad87b | e00ea76a720126cf9f6d732ad6216b5b824d20a7 | /src/category_theory/limits/shapes/images.lean | 3edd04e2f5869129aa07f0a89c21c25109a81579 | [
"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 | 9,597 | 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.shapes.equalizers
/-!
# Categorical images
We define the categorical image of `f` as a factorisation `f = e ≫ m` throug... |
a7fcb130b9493c13f89b89486dfad2afebbb03a7 | 82e44445c70db0f03e30d7be725775f122d72f3e | /src/number_theory/bernoulli.lean | adcf4e10c37103c4f7cd12310a973acc2bf43f27 | [
"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 | 16,964 | lean | /-
Copyright (c) 2020 Johan Commelin. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Johan Commelin, Kevin Buzzard
-/
import data.rat
import data.fintype.card
import algebra.big_operators.nat_antidiagonal
import ring_theory.power_series.well_known
/-!
# Bernoulli numb... |
5bb130a7fade940319a2351dad9499e902f746f1 | 94637389e03c919023691dcd05bd4411b1034aa5 | /src/assignments/assignment_6/assignment_6.lean | abc6a35bf09c75460fc31ced8cc446e5cdc8ffff | [] | no_license | kevinsullivan/complogic-s21 | 7c4eef2105abad899e46502270d9829d913e8afc | 99039501b770248c8ceb39890be5dfe129dc1082 | refs/heads/master | 1,682,985,669,944 | 1,621,126,241,000 | 1,621,126,241,000 | 335,706,272 | 0 | 38 | null | 1,618,325,669,000 | 1,612,374,118,000 | Lean | UTF-8 | Lean | false | false | 8,981 | lean | import .field_rename
import ...inClassNotes.typeclasses.functor
import ...inClassNotes.typeclasses.algebra
import data.real.basic
/-
Copy this file to where you want to work on
it and then adjust the imports accordingly.
Work through the file following directions
as indicated. Turn in your completed file on
Collab.
-... |
547ddae19183dfa57679d1e5412e903a7cf9a13c | 737dc4b96c97368cb66b925eeea3ab633ec3d702 | /stage0/src/Lean/Expr.lean | ff34fcd682c1c329808f9cdfb0237b0e2933616d | [
"Apache-2.0"
] | permissive | Bioye97/lean4 | 1ace34638efd9913dc5991443777b01a08983289 | bc3900cbb9adda83eed7e6affeaade7cfd07716d | refs/heads/master | 1,690,589,820,211 | 1,631,051,000,000 | 1,631,067,598,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 38,929 | lean | /-
Copyright (c) 2018 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Leonardo de Moura
-/
import Lean.Data.KVMap
import Lean.Level
namespace Lean
inductive Literal where
| natVal (val : Nat)
| strVal (val : String)
deriving Inhabited, BEq... |
254254500786ee1d562360197db5f87db86cacd1 | e61a235b8468b03aee0120bf26ec615c045005d2 | /src/Init/Control/Lift.lean | 64c904f3f3d4026ff83930f9e19561c594874242 | [
"Apache-2.0"
] | permissive | SCKelemen/lean4 | 140dc63a80539f7c61c8e43e1c174d8500ec3230 | e10507e6615ddbef73d67b0b6c7f1e4cecdd82bc | refs/heads/master | 1,660,973,595,917 | 1,590,278,033,000 | 1,590,278,033,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 4,401 | lean | /-
Copyright (c) 2016 Gabriel Ebner. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Gabriel Ebner, Sebastian Ullrich
Classy functions for lifting monadic actions of different shapes.
This theory is roughly modeled after the Haskell 'layers' package https://hackage.ha... |
f07805dc68a4dfdea0c4606629e7a29de490a4f2 | d406927ab5617694ec9ea7001f101b7c9e3d9702 | /src/data/polynomial/div.lean | 247bf23634e7a4e5821d5a7b296b9c9a61e73a8b | [
"Apache-2.0"
] | permissive | alreadydone/mathlib | dc0be621c6c8208c581f5170a8216c5ba6721927 | c982179ec21091d3e102d8a5d9f5fe06c8fafb73 | refs/heads/master | 1,685,523,275,196 | 1,670,184,141,000 | 1,670,184,141,000 | 287,574,545 | 0 | 0 | Apache-2.0 | 1,670,290,714,000 | 1,597,421,623,000 | Lean | UTF-8 | Lean | false | false | 21,425 | 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
-/
import data.polynomial.inductions
import data.polynomial.monic
import ring_theory.multiplicity
/-!
# Division of univaria... |
1d1bb149680db13b22312e289ca90928d3288818 | ad0c7d243dc1bd563419e2767ed42fb323d7beea | /data/complex/basic.lean | d790b8184b56bd4ec8060631bebc5c61143948a0 | [
"Apache-2.0"
] | permissive | sebzim4500/mathlib | e0b5a63b1655f910dee30badf09bd7e191d3cf30 | 6997cafbd3a7325af5cb318561768c316ceb7757 | refs/heads/master | 1,585,549,958,618 | 1,538,221,723,000 | 1,538,221,723,000 | 150,869,076 | 0 | 0 | Apache-2.0 | 1,538,229,323,000 | 1,538,229,323,000 | null | UTF-8 | Lean | false | false | 12,843 | lean | /-
Copyright (c) 2017 Kevin Buzzard. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Kevin Buzzard, Mario Carneiro
The complex numbers, modelled as R^2 in the obvious way.
-/
import data.real.basic tactic.ring algebra.field
structure complex : Type :=
(re : ℝ) (im : ℝ... |
0a3e641bff4f5cd78125c1b2bac25427f4d5f114 | 03338d7688221ff94beea53202aeb7371a960c3b | /src/main.lean | 6d2a48725bd8452b1a1220ebef0aa5f77a9eef47 | [] | no_license | dwarn/nielsen-schreier-lean | 6edd2ae9fdc93e2c6b4dfe35c0fb55e36d6ab5ca | 99fb30c0bf321c651edbb7524101604cf0242ea1 | refs/heads/master | 1,617,993,640,671 | 1,584,787,300,000 | 1,584,787,300,000 | 248,867,596 | 3 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 1,289 | lean | import action group_theory.quotient_group
open quotient_group mul_action
section
parameter {α : Type}
parameters (H : set (free_group α)) [is_subgroup H]
def Q := quotient H
def r : Q := mk 1
lemma r_mk_one : r = mk 1 := rfl
instance mul_act : mul_action (free_group α) Q := mul_action.mul_action H
lemma mul_mk (g... |
620cc31102d38b3247a16e5ca9b45e7167154647 | a0e23cfdd129a671bf3154ee1a8a3a72bf4c7940 | /stage0/src/Init/WF.lean | fb286ffd7ed37ec0473b0c4df02987086bc00929 | [
"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 | 11,155 | lean | /-
Copyright (c) 2014 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Author: Leonardo de Moura
-/
prelude
import Init.SizeOf
import Init.Data.Nat.Basic
universe u v
set_option codegen false
inductive Acc {α : Sort u} (r : α → α → Prop) : α → Prop where... |
a1254acdae119affdae3c49c2a38a548f8172e3a | 0845ae2ca02071debcfd4ac24be871236c01784f | /library/init/lean/elaborator/elabstrategyattrs.lean | a64ebbec5b0ed1118440b029d22cb1f4ceb71011 | [
"Apache-2.0"
] | permissive | GaloisInc/lean4 | 74c267eb0e900bfaa23df8de86039483ecbd60b7 | 228ddd5fdcd98dd4e9c009f425284e86917938aa | refs/heads/master | 1,643,131,356,301 | 1,562,715,572,000 | 1,562,715,572,000 | 192,390,898 | 0 | 0 | null | 1,560,792,750,000 | 1,560,792,749,000 | null | UTF-8 | Lean | false | false | 1,652 | 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
-/
prelude
import init.lean.attributes
namespace Lean
/-
Elaborator strategies available in the Lean3 elaborator.
We want to support a more general approach, ... |
d23c0a7d3dd1724611ed73076ec26b33ce65c976 | bb31430994044506fa42fd667e2d556327e18dfe | /src/analysis/normed_space/operator_norm.lean | 364d681e6c05b8175e309bad56f276ccd597e5e9 | [
"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 | 94,074 | lean | /-
Copyright (c) 2019 Jan-David Salchow. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Jan-David Salchow, Sébastien Gouëzel, Jean Lo
-/
import algebra.algebra.tower
import analysis.asymptotics.asymptotics
import analysis.normed_space.linear_isometry
import topology.al... |
daf67e428f90e22bb1f5efea23abb8677da0b6d0 | 57aec6ee746bc7e3a3dd5e767e53bd95beb82f6d | /stage0/src/Lean/Meta/Tactic/Simp/CongrLemmas.lean | 0748dad76dec8840c94a32194a80a720b2c8166d | [
"Apache-2.0"
] | permissive | collares/lean4 | 861a9269c4592bce49b71059e232ff0bfe4594cc | 52a4f535d853a2c7c7eea5fee8a4fa04c682c1ee | refs/heads/master | 1,691,419,031,324 | 1,618,678,138,000 | 1,618,678,138,000 | 358,989,750 | 0 | 0 | Apache-2.0 | 1,618,696,333,000 | 1,618,696,333,000 | null | UTF-8 | Lean | false | false | 5,178 | 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.ScopedEnvExtension
import Lean.Util.Recognizers
import Lean.Meta.Basic
namespace Lean.Meta
structure CongrLemma where
theoremName : Name
... |
47bb3128cd24ef2dfbc1517960b653d53b582961 | 4efff1f47634ff19e2f786deadd394270a59ecd2 | /src/category_theory/limits/shapes/constructions/equalizers.lean | b1b0ad1fe04c2e36f9ffac7b21b2425b3c4c806f | [
"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 | 2,668 | 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.shapes.equalizers
import category_theory.limits.shapes.binary_products
import category_theory.limits.shapes.pullbacks
/-!
# Constructing eq... |
e343905792ff8ae7acbe8a26738e134597c2ca21 | 4d2583807a5ac6caaffd3d7a5f646d61ca85d532 | /src/topology/algebra/mul_action.lean | ba759bab086d477e9aaa9014ccbfbbffd2c4a3ee | [
"Apache-2.0"
] | permissive | AntoineChambert-Loir/mathlib | 64aabb896129885f12296a799818061bc90da1ff | 07be904260ab6e36a5769680b6012f03a4727134 | refs/heads/master | 1,693,187,631,771 | 1,636,719,886,000 | 1,636,719,886,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 11,957 | 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.algebra.monoid
import algebra.module.prod
import topology.homeomorph
/-!
# Continuous monoid action
In this file we define class `has_continuous_s... |
3df0e174f87fb8bd8f4c7c8ea798efa5dc7f7a09 | 59aed81a2ce7741e690907fc374be338f4f88b6f | /src/math-888/lec-1.lean | e9685e345f4f17998ba00ab9091d1ca7a4f419e6 | [] | no_license | agusakov/math-688-lean | c84d5e1423eb208a0281135f0214b91b30d0ef48 | 67dc27ebff55a74c6b5a1c469ba04e7981d2e550 | refs/heads/main | 1,679,699,340,788 | 1,616,602,782,000 | 1,616,602,782,000 | 332,894,454 | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 2,274 | lean | /- 10 Feb 2020 -/
-- srgs
-- box product
-- hamming graph
-- triangular graph
-- paley graph
import combinatorics.simple_graph.basic
universes u v
variables (V : Type u) {W : Type u}
namespace simple_graph
variables {V}
/-
The box product of `G : simple_graph V` and `H : simple_graph W` is a graph on `V × W` such ... |
8abd824c962ebb6b6318d55904075bf95fe01e48 | 5fbbd711f9bfc21ee168f46a4be146603ece8835 | /lean/natural_number_game/function/3.lean | 421a8cd4f9ebb7c5bce0dbb59fc32763d5d6352a | [
"LicenseRef-scancode-warranty-disclaimer"
] | no_license | goedel-gang/maths | 22596f71e3fde9c088e59931f128a3b5efb73a2c | a20a6f6a8ce800427afd595c598a5ad43da1408d | refs/heads/master | 1,623,055,941,960 | 1,621,599,441,000 | 1,621,599,441,000 | 169,335,840 | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 142 | lean | example (P Q R S T U: Type)
(p : P)
(h : P → Q)
(i : Q → R)
(j : Q → T)
(k : S → T)
(l : T → U)
: U :=
begin
exact l(j(h p)),
end
|
fe916294af3e6eefc56e58a69c2925d2a0e5c844 | 302c785c90d40ad3d6be43d33bc6a558354cc2cf | /src/topology/sheaves/sheaf_condition/unique_gluing.lean | e70dbcf249e3e6f6a71a3d193d84d83c4aa3a105 | [
"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 | 8,437 | lean | /-
Copyright (c) 2021 Justus Springer. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Justus Springer
-/
import topology.sheaves.sheaf
import category_theory.limits.shapes.types
/-!
# The sheaf condition for a type-valued presheaf
We provide an alternative formulatio... |
883bfb4290a3a1b87383be2449228c9a92183534 | b7f22e51856f4989b970961f794f1c435f9b8f78 | /tests/lean/constr_tac_errors.lean | b7328959d49dcec51fc315368cd6ec8d49502083 | [
"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 | 578 | lean | example : nat :=
begin
split -- ERROR
end
example : nat :=
by left
example (a b : Prop) : a → b → a ∧ b :=
begin
intro Ha Hb,
left -- ERROR
end
example (a b : Prop) : a → b → a ∧ b :=
begin
intro Ha Hb,
right -- ERROR
end
example (a b : Prop) : a → b → a ∧ b :=
begin
intro Ha Hb,
existsi Ha, -- weird... |
bdeb78fab6972d5a3709197d1dbfa4035a3c0b32 | 3c693e12637d1cf47effc09ab5e21700d1278e73 | /src/vector_space/example.lean | 51f9c9cf7610f5c74bfea232ec1bde4eac0b7415 | [] | no_license | ImperialCollegeLondon/Example-Lean-Projects | e731664ae046980921a69ccfeb2286674080c5bb | 87b27ba616eaf03f3642000829a481a1932dd08e | refs/heads/master | 1,685,399,670,721 | 1,623,092,696,000 | 1,623,092,696,000 | 275,571,570 | 19 | 1 | null | 1,593,361,524,000 | 1,593,344,124,000 | Lean | UTF-8 | Lean | false | false | 5,641 | lean | -- boilerplate -- ignore for now
import tactic
import linear_algebra.finite_dimensional
open vector_space
open finite_dimensional
open submodule
-- Let's prove that if V is a 9-dimensional vector space, and X and Y are 5-dimensional subspaces
-- then X ∩ Y is non-zero
universes u u'
-- mathlib PR
theorem finite_dim... |
b4ffc1bb74b5a274d9dd40df9f5bab3195fae3ee | aa5a655c05e5359a70646b7154e7cac59f0b4132 | /tests/lean/run/meta2.lean | cf6b1f6c3a5f106606aa775fd0c02fab5da278cc | [
"Apache-2.0"
] | permissive | lambdaxymox/lean4 | ae943c960a42247e06eff25c35338268d07454cb | 278d47c77270664ef29715faab467feac8a0f446 | refs/heads/master | 1,677,891,867,340 | 1,612,500,005,000 | 1,612,500,005,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 19,039 | lean | import Lean.Meta
open Lean
open Lean.Meta
-- set_option trace.Meta true
--set_option trace.Meta.isDefEq.step false
-- set_option trace.Meta.isDefEq.delta false
set_option trace.Meta.debug true
def print (msg : MessageData) : MetaM Unit :=
trace! `Meta.debug msg
def checkM (x : MetaM Bool) : MetaM Unit :=
unless (← x... |
3f5e970c1f6a4a24fa7d697647b695aac101215f | fa02ed5a3c9c0adee3c26887a16855e7841c668b | /src/measure_theory/prod_group.lean | 7da164947ee9d23593df3a3ecf540c4ed899fe3a | [
"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 | 10,787 | lean | /-
Copyright (c) 2021 Floris van Doorn. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Floris van Doorn
-/
import measure_theory.prod
import measure_theory.group
/-!
# Measure theory in the product of groups
In this file we show properties about measure theory in pro... |
47503e95bef98a67fcffb5cda706a6b36f678c6d | 437dc96105f48409c3981d46fb48e57c9ac3a3e4 | /src/measure_theory/bochner_integration.lean | 11febe122fb2d98a5763d3841f1c107da1db3761 | [
"Apache-2.0"
] | permissive | dan-c-k/mathlib | 08efec79bd7481ee6da9cc44c24a653bff4fbe0d | 96efc220f6225bc7a5ed8349900391a33a38cc56 | refs/heads/master | 1,658,082,847,093 | 1,589,013,201,000 | 1,589,013,201,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 55,181 | lean | /-
Copyright (c) 2019 Zhouhang Zhou. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Zhouhang Zhou
-/
import measure_theory.simple_func_dense
import analysis.normed_space.bounded_linear_maps
/-!
# Bochner integral
The Bochner integral extends the definition of the Leb... |
76b2d2cc529e0c83e7ec0a93277b55052fae2ab0 | 8e6cad62ec62c6c348e5faaa3c3f2079012bdd69 | /src/data/real/ennreal.lean | 27ca68a766ae9174b2508f0a19d2e790e6b355a4 | [
"Apache-2.0"
] | permissive | benjamindavidson/mathlib | 8cc81c865aa8e7cf4462245f58d35ae9a56b150d | fad44b9f670670d87c8e25ff9cdf63af87ad731e | refs/heads/master | 1,679,545,578,362 | 1,615,343,014,000 | 1,615,343,014,000 | 312,926,983 | 0 | 0 | Apache-2.0 | 1,615,360,301,000 | 1,605,399,418,000 | Lean | UTF-8 | Lean | false | false | 57,936 | 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, Yury Kudryashov
-/
import data.real.nnreal
import data.set.intervals
/-!
# Extended non-negative reals
We define `ennreal = ℝ≥0∞ := with_no ℝ≥0` to be the type of exte... |
d0d70ff374b434c163920f954fa8be1a7ba09e6d | 8cae430f0a71442d02dbb1cbb14073b31048e4b0 | /src/data/polynomial/coeff.lean | 517a60b716ae3ba6136f82ccd45274070b9a517a | [
"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 | 12,566 | 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
-/
import data.polynomial.basic
import data.finset.nat_antidiagonal
import data.nat.choose.sum
/-!
# Theory of univariate p... |
102ae76d21664c09c95099d37511033640194593 | f1a12d4db0f46eee317d703e3336d33950a2fe7e | /common/dnf.lean | 47a814ea6a26b12e895e32abaf7e95bc6a685a9d | [
"Apache-2.0"
] | permissive | avigad/qelim | bce89b79c717b7649860d41a41a37e37c982624f | b7d22864f1f0a2d21adad0f4fb3fc7ba665f8e60 | refs/heads/master | 1,584,548,938,232 | 1,526,773,708,000 | 1,526,773,708,000 | 134,967,693 | 2 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 4,699 | lean | import .atom
variables {α β : Type}
open atom_type list
/-
Requires : nqfree arg-0
-/
def dnf : fm α → list (list α)
| (fm.true α) := [[]]
| (fm.false α) := []
| (fm.atom a) := [[a]]
| (fm.and p q) := list.map list.append_pair $ list.product (dnf p) (dnf q)
| (fm.or p q) := dnf p ++ dnf q
| (fm.ex _) := []
| (fm.n... |
5068c284466e81463a606568463c123154a0d69d | 4fa161becb8ce7378a709f5992a594764699e268 | /src/algebra/big_operators.lean | ae1cd6a2f72d2ee5eaf6cb3321271d5780ec35b0 | [
"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 | 57,901 | lean | /-
Copyright (c) 2017 Johannes Hölzl. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Johannes Hölzl
-/
import data.finset
import data.nat.enat
import tactic.omega
/-!
# Big operators
In this file we define products and sums indexed by finite sets (specifically, `fin... |
fdece7cff86cd0fd7405e25d75b92d47b3bf2e3a | 206422fb9edabf63def0ed2aa3f489150fb09ccb | /src/ring_theory/polynomial/basic.lean | 0900a2b33496d23eda4d5e02e9e226de53227a86 | [
"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 | 34,406 | lean | /-
Copyright (c) 2019 Kenny Lau. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Kenny Lau
# Ring-theoretic supplement of data.polynomial.
## Main results
* `mv_polynomial.integral_domain`:
If a ring is an integral domain, then so is its polynomial ring over finitel... |
8f1b5bd97bdd22eddcc6e0a756a1949d3d792ecb | 6094e25ea0b7699e642463b48e51b2ead6ddc23f | /library/init/quot.lean | f353844f818f037bc62efb62f3dca5d6fbafee89 | [
"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 | 8,018 | 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
Quotient types.
-/
prelude
import init.sigma init.setoid init.logic
open sigma.ops setoid
constant quot.{l} : Π {A : Type.{l}}, setoid A → Type.{l}
-- Remar... |
a51908cc45e40bddd550e60ba5be1eee4ddbe515 | 3dd1b66af77106badae6edb1c4dea91a146ead30 | /library/hott/tactic.lean | 676ca800e8a1c554e0bc59ef704e5be1bc8078a5 | [
"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 | 2,756 | lean | -- Copyright (c) 2014 Microsoft Corporation. All rights reserved.
-- Released under Apache 2.0 license as described in the file LICENSE.
-- Author: Leonardo de Moura
import logic string num
using string
using num
namespace tactic
-- This is just a trick to embed the 'tactic language' as a
-- Lean expression. We should... |
0ec3aa06868f0688a10854d11f759c1599805fc1 | bbecf0f1968d1fba4124103e4f6b55251d08e9c4 | /src/data/nat/prime.lean | 35b636804b7cd568d2a62d4142539f18544a1b5a | [
"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 | 38,058 | lean | /-
Copyright (c) 2015 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Leonardo de Moura, Jeremy Avigad, Mario Carneiro
-/
import algebra.group_power
import data.list.sort
import data.nat.gcd
import data.nat.sqrt
import tactic.norm_num
import tacti... |
0685596a90835706ad762a9716763f19afcf9343 | 5749d8999a76f3a8fddceca1f6941981e33aaa96 | /src/analysis/calculus/deriv.lean | 016e27fce1959edc8ac1ffcd016e341ac9d5ef5f | [
"Apache-2.0"
] | permissive | jdsalchow/mathlib | 13ab43ef0d0515a17e550b16d09bd14b76125276 | 497e692b946d93906900bb33a51fd243e7649406 | refs/heads/master | 1,585,819,143,348 | 1,580,072,892,000 | 1,580,072,892,000 | 154,287,128 | 0 | 0 | Apache-2.0 | 1,540,281,610,000 | 1,540,281,609,000 | null | UTF-8 | Lean | false | false | 51,256 | 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... |
b4781e96fb50193307fbbed04a03d6f2c08ecf85 | 4efff1f47634ff19e2f786deadd394270a59ecd2 | /src/control/lawful_fix.lean | 52736950e193f3b083c9d36ec7a755e35f7606e1 | [
"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 | 7,872 | lean | /-
Copyright (c) 2020 Simon Hudon. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Author: Simon Hudon
-/
import tactic.apply
import control.fix
import order.omega_complete_partial_order
/-!
# Lawful fixed point operators
This module defines the laws required of a `has_fix` i... |
ae182442aba4c1aaa20363679148ee0462c2fb93 | ae1e94c332e17c7dc7051ce976d5a9eebe7ab8a5 | /stage0/src/Lean/Elab/Print.lean | 8335e4ff260a591ee2b4529643854832e1729584 | [
"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 | 5,588 | 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.Util.FoldConsts
import Lean.Elab.Command
namespace Lean.Elab.Command
private def throwUnknownId (id : Name) : CommandElabM Unit :=
throwErro... |
d61aa357e77c2f099a5903b1ce23b778a4b1ef20 | 4e3bf8e2b29061457a887ac8889e88fa5aa0e34c | /lean/love10_denotational_semantics_homework_solution.lean | 266539253f63d1c325e8a21f06f64ba94526c25c | [] | no_license | mukeshtiwari/logical_verification_2019 | 9f964c067a71f65eb8884743273fbeef99e6503d | 16f62717f55ed5b7b87e03ae0134791a9bef9b9a | refs/heads/master | 1,619,158,844,208 | 1,585,139,500,000 | 1,585,139,500,000 | 249,906,380 | 0 | 0 | null | 1,585,118,728,000 | 1,585,118,727,000 | null | UTF-8 | Lean | false | false | 4,171 | lean | /- LoVe Homework 10: Denotational Semantics -/
import .love10_denotational_semantics_demo
namespace LoVe
/- Denotational semantics are well suited to functional programming. In this
exercise, we will study some representations of functional programs in Lean and
their denotational semantics. -/
/- The `nondet` type ... |
e32a8daafeb48bea1e3d2292c353c59eccf89367 | 9be442d9ec2fcf442516ed6e9e1660aa9071b7bd | /stage0/src/Lean/Compiler/IR/RC.lean | 4071b008cd924b4b197baa58ffeadbe544161771 | [
"Apache-2.0",
"LLVM-exception",
"NCSA",
"LGPL-3.0-only",
"LicenseRef-scancode-inner-net-2.0",
"BSD-3-Clause",
"LGPL-2.0-or-later",
"Spencer-94",
"LGPL-2.1-or-later",
"HPND",
"LicenseRef-scancode-pcre",
"ISC",
"LGPL-2.1-only",
"LicenseRef-scancode-other-permissive",
"SunPro",
"CMU-Mach"... | permissive | EdAyers/lean4 | 57ac632d6b0789cb91fab2170e8c9e40441221bd | 37ba0df5841bde51dbc2329da81ac23d4f6a4de4 | refs/heads/master | 1,676,463,245,298 | 1,660,619,433,000 | 1,660,619,433,000 | 183,433,437 | 1 | 0 | Apache-2.0 | 1,657,612,672,000 | 1,556,196,574,000 | Lean | UTF-8 | Lean | false | false | 12,353 | 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.Runtime
import Lean.Compiler.IR.CompilerM
import Lean.Compiler.IR.LiveVars
namespace Lean.IR.ExplicitRC
/-! Insert explicit RC instructions. So... |
65b18575910d94c4c16d3ed7510737baf5bc323f | 63abd62053d479eae5abf4951554e1064a4c45b4 | /src/category_theory/limits/shapes/wide_pullbacks.lean | b705ca691f469dedbf7dca3a202a9b89b0848dc6 | [
"Apache-2.0"
] | permissive | Lix0120/mathlib | 0020745240315ed0e517cbf32e738d8f9811dd80 | e14c37827456fc6707f31b4d1d16f1f3a3205e91 | refs/heads/master | 1,673,102,855,024 | 1,604,151,044,000 | 1,604,151,044,000 | 308,930,245 | 0 | 0 | Apache-2.0 | 1,604,164,710,000 | 1,604,163,547,000 | null | UTF-8 | Lean | false | false | 5,255 | 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.thin
/-!
# Wide pullbacks
We define the category `wide_pullback_shape`, (resp. `wide_pushout_shape`) which i... |
bd885bc5bf045ab5cfb2f2c3d712cb4155ed2242 | 57fdc8de88f5ea3bfde4325e6ecd13f93a274ab5 | /tactic/ring.lean | 8dca2eb8b751265f7314a1d2e74aede062ef278c | [
"Apache-2.0"
] | permissive | louisanu/mathlib | 11f56f2d40dc792bc05ee2f78ea37d73e98ecbfe | 2bd5e2159d20a8f20d04fc4d382e65eea775ed39 | refs/heads/master | 1,617,706,993,439 | 1,523,163,654,000 | 1,523,163,654,000 | 124,519,997 | 0 | 0 | Apache-2.0 | 1,520,588,283,000 | 1,520,588,283,000 | null | UTF-8 | Lean | false | false | 17,195 | lean | /-
Copyright (c) 2018 Mario Carneiro. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Mario Carneiro
Evaluate expressions in the language of (semi-)rings.
Based on http://www.cs.ru.nl/~freek/courses/tt-2014/read/10.1.1.61.3041.pdf .
-/
import algebra.group_power tactic... |
0919ae6839f8be194c1d69206bff0aacfd9a425b | 57c233acf9386e610d99ed20ef139c5f97504ba3 | /src/topology/homotopy/path.lean | 826750787df561f703b615a3f68685bb76512c94 | [
"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 | 10,483 | 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 topology.homotopy.basic
import topology.path_connected
import analysis.convex.basic
/-!
# Homotopy between paths
In this file, we define a `homotopy` between ... |
40e95a0fc610c169f049ddf02f7580479547ad16 | b147e1312077cdcfea8e6756207b3fa538982e12 | /data/array/lemmas.lean | b2021abdb5075d78be4678e7e9875583a822a628 | [
"Apache-2.0"
] | permissive | SzJS/mathlib | 07836ee708ca27cd18347e1e11ce7dd5afb3e926 | 23a5591fca0d43ee5d49d89f6f0ee07a24a6ca29 | refs/heads/master | 1,584,980,332,064 | 1,532,063,841,000 | 1,532,063,841,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 8,282 | lean | /-
Copyright (c) 2017 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Leonardo de Moura, Mario Carneiro
-/
import data.list.basic data.buffer data.equiv.basic
universes u w
namespace d_array
variables {n : nat} {α : fin n → Type u} {β : Type w}
... |
d96c58def5694f9379e31eef15d69b036c8303cb | 74addaa0e41490cbaf2abd313a764c96df57b05d | /Mathlib/Lean3Lib/init/funext_auto.lean | cb189b830a223299137b050490fb5ed1d5617116 | [] | no_license | AurelienSaue/Mathlib4_auto | f538cfd0980f65a6361eadea39e6fc639e9dae14 | 590df64109b08190abe22358fabc3eae000943f2 | refs/heads/master | 1,683,906,849,776 | 1,622,564,669,000 | 1,622,564,669,000 | 371,723,747 | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 2,056 | lean | /-
Copyright (c) 2015 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Author: Jeremy Avigad
Extensional equality for functions, and a proof of function extensionality from quotients.
-/
import Mathlib.PrePort
import Mathlib.Lean3Lib.init.data.quot
import ... |
74fb9b39895cffd68c19b84af4fde21b66e5f5cb | cf39355caa609c0f33405126beee2739aa3cb77e | /library/init/algebra/classes.lean | 921aeb1209b610901e6a10bfc8e14a05b2a03fcf | [
"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 | 15,181 | 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.logic init.data.ordering.basic
universes u v
/-!
# Unbundled algebra classes
These classes and the `@[algebra]` attribute are part of ... |
66c2bd39d72516076e1811e7757126b06ad13cfb | 4f065978c49388d188224610d9984673079f7d91 | /Zariski.lean | 4f064450931a576eccba5ffe37902b62e5562586 | [] | no_license | kckennylau/Lean | b323103f52706304907adcfaee6f5cb8095d4a33 | 907d0a4d2bd8f23785abd6142ad53d308c54fdcb | refs/heads/master | 1,624,623,720,653 | 1,563,901,820,000 | 1,563,901,820,000 | 109,506,702 | 3 | 1 | null | null | null | null | UTF-8 | Lean | false | false | 5,038 | lean | import analysis.topology.topological_space
noncomputable theory
local attribute [instance] classical.prop_decidable
universe u
section is_prime_ideal
class is_ideal (α : Type u) [comm_ring α] (S : set α) : Prop :=
(zero_mem : (0 : α) ∈ S)
(add_mem : ∀ {x y}, x ∈ S → y ∈ S → x + y ∈ S)
(mul_mem : ∀ {x y}, x ∈ S → x ... |
68ac19515e094d9a62982f669cc974b08c6f72c7 | 8cae430f0a71442d02dbb1cbb14073b31048e4b0 | /src/algebraic_geometry/gluing.lean | 15c3b2525793483379a87a2134a48b2108781da4 | [
"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 | 17,514 | lean | /-
Copyright (c) 2022 Andrew Yang. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Andrew Yang
-/
import algebraic_geometry.presheafed_space.gluing
import algebraic_geometry.open_immersion.Scheme
/-!
# Gluing Schemes
> THIS FILE IS SYNCHRONIZED WITH MATHLIB4.
> Any ch... |
6c16a49a17fdbd4f76d982215098c4dcc7fed31e | f313d4982feee650661f61ed73f0cb6635326350 | /Mathlib/Data/List/Basic.lean | 9094fce03a91d179f7c76979b663f91b71ffc1aa | [
"Apache-2.0"
] | permissive | shingtaklam1324/mathlib4 | 38c6e172eec1385944db5a70a3b5545c924980ee | 50610c343b7065e8eec056d641f859ceed608e69 | refs/heads/master | 1,683,032,333,313 | 1,621,942,699,000 | 1,621,942,699,000 | 371,130,608 | 0 | 0 | Apache-2.0 | 1,622,053,166,000 | 1,622,053,166,000 | null | UTF-8 | Lean | false | false | 3,220 | lean | import Mathlib.Logic.Basic
import Mathlib.Data.Nat.Basic
namespace List
/-- The same as append, but with simpler defeq. (The one in the standard library is more efficient,
because it is implemented in a tail recursive way.) -/
@[simp] def append' : List α → List α → List α
| [], r => r
| a::l, r => a :: append' l r
... |
c359cacb4fdf21937af66d8c3e62f4423a67ae90 | 74addaa0e41490cbaf2abd313a764c96df57b05d | /Mathlib/algebra/opposites_auto.lean | a87f738ce3dda157a8b85981ae9caf9857b4e368 | [] | 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 | 9,785 | 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 Mathlib.PrePort
import Mathlib.Lean3Lib.init.default
import Mathlib.data.opposite
import Mathlib.algebra.field
import Mathlib.group_theory.group_action.defs
import Mathl... |
5190c7c36382fc053d1d51b180596292a9e008ce | 55c7fc2bf55d496ace18cd6f3376e12bb14c8cc5 | /src/data/monoid_algebra.lean | 0962dfe4a649e95f5c92f86dacd55f9195bfefd0 | [
"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 | 27,152 | lean | /-
Copyright (c) 2017 Johannes Hölzl. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Johannes Hölzl, Yury G. Kudryashov, Scott Morrison
-/
import ring_theory.algebra
/-!
# Monoid algebras
When the domain of a `finsupp` has a multiplicative or additive structure, we c... |
d47ed5a73b98fa7e829f3d23b0012c08443b3bbd | cf39355caa609c0f33405126beee2739aa3cb77e | /tests/lean/run/ho.lean | ac2740b4447bb3ad87dbdff844fc7075ecca304e | [
"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 | 189 | lean | inductive star : Type
| z : star
| s : (nat → star) → star
#check @star.rec
#check @star.cases_on
example (f : nat → star) : ¬ star.z = star.s f :=
assume H, star.no_confusion H
|
7a93b8dc43f4636ca926e5e523333b1f228c9499 | d7c0dac4019ec4c77a89fd6d3e672674a3cad8f8 | /Congruence_Manipulation.lean | 53c9a8e159419d71f7ee7162dea7b08a7411c87e | [] | no_license | TudorTitan/Lean_ElementaryNT | 97fb78afaa07822c9ee0f563e263e16536b28638 | e9fa9e1db315fa7aca88666aee9910d5d9d34a11 | refs/heads/master | 1,630,895,651,127 | 1,517,510,995,000 | 1,517,510,995,000 | 108,649,763 | 0 | 1 | null | 1,509,757,816,000 | 1,509,195,975,000 | Lean | UTF-8 | Lean | false | false | 10,536 | lean | -- gcd and div and mod and lt and le are all in core
-- but most of the theorems about them are here
import data.int.basic
import data.int.order
import data.nat.gcd
-- a congruent to b modulo m
def cong (a:int) (b: int) (m: int): Prop := m ∣ a - b
-- p is prime
def is_prime (p:nat): Prop := ∀ x y: int, ↑p ∣ (x*y) → ... |
abe2807762e71b697b3c34313a74f713125642bc | 280e37a1b98242171ef310909eae7a9811cc5303 | /src/DFA.lean | 3a63b554cdb00e3cd5435bfd88e907bbcffb5c9f | [] | no_license | foxthomson/regular | 6655d19258f80272e0740f4f19152e9dc2514d3b | 6c7c691eb226eb0e33a0995b027ba8641f1611bf | refs/heads/master | 1,672,642,114,346 | 1,603,122,446,000 | 1,603,122,446,000 | 300,912,418 | 0 | 1 | null | null | null | null | UTF-8 | Lean | false | false | 626 | lean | import data.fintype.basic
universes u v
variable {α : Type u}
structure DFA (alphabet : Type u) :=
[alphabet_fintype : fintype alphabet]
(state : Type v)
[state_fintype : fintype state]
[state_dec : decidable_eq state]
(step : state → alphabet → state)
(start : state)
(accept_states : finset state)
namespace DFA
i... |
c6a28cdd65d387c4cfe6762759ed151e65889181 | e9dbaaae490bc072444e3021634bf73664003760 | /src/Problems/2001/IMO_2001_P1.lean | b2a34ded97d6513504d5f5a34b4e7c4cd77ee432 | [
"Apache-2.0"
] | permissive | liaofei1128/geometry | 566d8bfe095ce0c0113d36df90635306c60e975b | 3dd128e4eec8008764bb94e18b932f9ffd66e6b3 | refs/heads/master | 1,678,996,510,399 | 1,581,454,543,000 | 1,583,337,839,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 404 | lean | import Geo.Geo.Core
namespace Geo
open Analytic Triangle
def IMO_2001_P1 : Prop :=
∀ (A B C : Point),
acute ⟨A, B, C⟩ →
let O := circumcenter ⟨A, B, C⟩;
let P := foot A ⟨B, C⟩;
-- TODO: notation
(π : ℝ2π).divNat 6 + uangle ⟨A, B, C⟩ ≤ uangle ⟨B, C, A⟩ → -- BCA >= ABC + 30
(π : ℝ2π).divNat 2 > uangle ⟨C, A, B⟩ + uang... |
7edced1b6490cede85121a4b4b26080d73947c0c | 57c233acf9386e610d99ed20ef139c5f97504ba3 | /src/field_theory/galois.lean | 335c6b5266ff8e78f54a647828fd8d77c5d816e2 | [
"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 | 18,317 | lean | /-
Copyright (c) 2020 Thomas Browning, Patrick Lutz. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Thomas Browning, Patrick Lutz
-/
import field_theory.normal
import field_theory.primitive_element
import field_theory.fixed
import ring_theory.power_basis
/-!
# Galois... |
25e4f3e331ef8464d333570ada033b35562bf3d5 | a9d0fb7b0e4f802bd3857b803e6c5c23d87fef91 | /library/data/nat/examples/partial_sum.lean | e5b20f3b73df1418a80ddcc709f9ca58a7d71294 | [
"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,262 | 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
open nat
definition partial_sum : nat → nat
| 0 := 0
| (succ n) := succ n + partial_sum n
example : partial_sum 5 = 15 :=
rfl
examp... |
88927f52d8299aeaa8c61c6e6b7ba67fd62a26a1 | 55c7fc2bf55d496ace18cd6f3376e12bb14c8cc5 | /src/category_theory/products/basic.lean | eaf8958b981f8b9eae459cfbc2fb664b36bb61bf | [
"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 | 5,381 | 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 category_theory.eq_to_hom
namespace category_theory
universes v₁ v₂ v₃ v₄ u₁ u₂ u₃ u₄ -- declare the `v`'s first; see `category_theory.catego... |
cf191970b6bec24576e4a52f030b6ee368c70a79 | 94637389e03c919023691dcd05bd4411b1034aa5 | /src/assignments/assignment_2/assignment_2 answers.lean | b081046a9dc379aa2a6082b08da7badb51d926cf | [] | no_license | kevinsullivan/complogic-s21 | 7c4eef2105abad899e46502270d9829d913e8afc | 99039501b770248c8ceb39890be5dfe129dc1082 | refs/heads/master | 1,682,985,669,944 | 1,621,126,241,000 | 1,621,126,241,000 | 335,706,272 | 0 | 38 | null | 1,618,325,669,000 | 1,612,374,118,000 | Lean | UTF-8 | Lean | false | false | 6,421 | lean | namespace hw2
/-
In this assignment, use Lean's version
of basic data types, e.g., nat, prod α
β, etc. You don't need to import from
our type library.
-/
/-
1.[25 points] Syntax and semantics
Formalize the syntax of the following
language, SalmonTrout, as an inductive
data type definition.
The SalmonTrout langua... |
cd4b48ce5ada0ad2966ce135623612a2ad2ffa23 | e00ea76a720126cf9f6d732ad6216b5b824d20a7 | /src/topology/instances/ennreal.lean | b88781c9beb762d8a857077da5cb80663ab839db | [
"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 | 37,332 | 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
Extended non-negative reals
-/
import topology.instances.nnreal data.real.ennreal
noncomputable theory
open classical set filter metric
open_locale classical
open_locale... |
1b6a43312792024efa2123ae37c2b93d2a8a62d7 | 624f6f2ae8b3b1adc5f8f67a365c51d5126be45a | /stage0/src/Init/Lean/Compiler/InlineAttrs.lean | dff9d02b41c37678e6071c783a0d0a675a39ff4e | [
"Apache-2.0"
] | permissive | mhuisi/lean4 | 28d35a4febc2e251c7f05492e13f3b05d6f9b7af | dda44bc47f3e5d024508060dac2bcb59fd12e4c0 | refs/heads/master | 1,621,225,489,283 | 1,585,142,689,000 | 1,585,142,689,000 | 250,590,438 | 0 | 2 | Apache-2.0 | 1,602,443,220,000 | 1,585,327,814,000 | C | UTF-8 | Lean | false | false | 2,522 | 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
-/
prelude
import Init.Lean.Attributes
import Init.Lean.Compiler.Util
namespace Lean
namespace Compiler
inductive InlineAttributeKind
| inline | noinline | m... |
616411c2aa56ab46d4ff66e68d376341e179440c | 4727251e0cd73359b15b664c3170e5d754078599 | /counterexamples/phillips.lean | e060882cfc7d085e445fb22ffc7ba28ff56cad75 | [
"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 | 28,561 | lean | /-
Copyright (c) 2021 Sébastien Gouëzel. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Sébastien Gouëzel
-/
import analysis.normed_space.hahn_banach
import measure_theory.measure.lebesgue
/-!
# A counterexample on Pettis integrability
There are several theories of i... |
1212fa29c9943e52d2cb47d44e9765a618d3d6c8 | 4727251e0cd73359b15b664c3170e5d754078599 | /src/data/set/intervals/pi.lean | 575d49afb813ccf158cad78f52f6673b9769e680 | [
"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,128 | 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 data.set.intervals.basic
import data.set.lattice
/-!
# Intervals in `pi`-space
In this we prove various simple lemmas about intervals in `Π i, α i`. Closed... |
a21a37870926378928ef972a305a8f6cd59db170 | 9dc8cecdf3c4634764a18254e94d43da07142918 | /src/measure_theory/measure/lebesgue.lean | d853b83c1f69ba580117bdd18450bcf43e50f3de | [
"Apache-2.0"
] | permissive | jcommelin/mathlib | d8456447c36c176e14d96d9e76f39841f69d2d9b | ee8279351a2e434c2852345c51b728d22af5a156 | refs/heads/master | 1,664,782,136,488 | 1,663,638,983,000 | 1,663,638,983,000 | 132,563,656 | 0 | 0 | Apache-2.0 | 1,663,599,929,000 | 1,525,760,539,000 | Lean | UTF-8 | Lean | false | false | 24,970 | 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, Sébastien Gouëzel, Yury Kudryashov
-/
import dynamics.ergodic.measure_preserving
import linear_algebra.determinant
import linear_algebra.matrix.diagonal
import linear_a... |
8772847b6c58fd9dfb173d338fc3742f2f4a54b6 | bbecf0f1968d1fba4124103e4f6b55251d08e9c4 | /src/topology/category/Profinite/default.lean | 1d6314457fb8e2af2638d1786e7d5eb742aecbdf | [
"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 | 11,342 | lean | /-
Copyright (c) 2020 Kevin Buzzard. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Kevin Buzzard, Calle Sönne
-/
import topology.category.CompHaus
import topology.connected
import topology.subset_properties
import topology.locally_constant.basic
import category_theor... |
564121149e7fc57915274fb33a48706db79f14f2 | 8930e38ac0fae2e5e55c28d0577a8e44e2639a6d | /analysis/topology/uniform_space.lean | 858055e7791e5580b1bb4657d6322b5ebc03b10c | [
"Apache-2.0"
] | permissive | SG4316/mathlib | 3d64035d02a97f8556ad9ff249a81a0a51a3321a | a7846022507b531a8ab53b8af8a91953fceafd3a | refs/heads/master | 1,584,869,960,527 | 1,530,718,645,000 | 1,530,724,110,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 77,795 | 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 uniform spaces.
Uniform spaces are a generalization of metric spaces and topological groups. Many concepts directly
generalize to uniform spa... |
0a7992725a5d68938334bbf6f3af9a2da2511a86 | 367134ba5a65885e863bdc4507601606690974c1 | /src/set_theory/zfc.lean | f398645410578b0aa29d5c8a6e8e0997551b91cd | [
"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 | 30,811 | lean | /-
Copyright (c) 2018 Mario Carneiro. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Author: Mario Carneiro
A model of ZFC in Lean.
-/
import data.set.basic
universes u v
/-- The type of `n`-ary functions `α → α → ... → α`. -/
def arity (α : Type u) : nat → Type u
| 0 :=... |
0e757a16fbae7308a9d69dfea3111ba67fbbe5cc | 32025d5c2d6e33ad3b6dd8a3c91e1e838066a7f7 | /tests/lean/run/new_inductive.lean | 011d5666be5860b39b8e1f37705a8fcef56c0acc | [
"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 | 1,898 | lean | universes u v
inductive myList (α : Type u)
| nil : myList
| cons : α → myList → myList
inductive myPair (α : Type u) (β : Type v)
| mk : α → β → myPair
mutual inductive bla, boo (α : Type u) (m : α → Type v)
with bla : Nat → Type (max u v)
| mk₁ (n : Nat) : α → boo n → bla (n+1)
| mk₂ (a : α) : m a → String → bl... |
828ba90e1fd6824431ee57789fa6ede113883ad8 | bd7172a0adbd196790d74626b8d7a799e10641fa | /src/mockingbird.lean | 38eac878951a8157361d995843ca39e4452d3f76 | [] | no_license | jdan/mockingbird.lean | c668b0e93dda82aa7b4fb3167b7a64766fe4520b | 1616f3e94dba3a1fbe501bec25dfdf18e542f67d | refs/heads/main | 1,674,935,768,200 | 1,607,567,196,000 | 1,607,567,196,000 | 320,030,094 | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 2,603 | lean | import tactic
namespace mockingbird
inductive Bird
| Ap : Bird -> Bird -> Bird
/- A * B = Bird.Ap A B -/
instance : has_mul Bird := ⟨Bird.Ap⟩
structure forest : Prop :=
/-
(the composition condition)
For any two birds A and B, there is a bird C such that
for any bird x, Cx = A(Bx)
-/
(comp (A B : ... |
bd7590f889f7cb8ec08396580c2e2c05eb9805b8 | 1437b3495ef9020d5413178aa33c0a625f15f15f | /tests/linarith.lean | 599b23b78a5466022ef117368d176712158f5ca1 | [
"Apache-2.0"
] | permissive | jean002/mathlib | c66bbb2d9fdc9c03ae07f869acac7ddbfce67a30 | dc6c38a765799c99c4d9c8d5207d9e6c9e0e2cfd | refs/heads/master | 1,587,027,806,375 | 1,547,306,358,000 | 1,547,306,358,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 3,025 | lean | import tactic.linarith
example (e b c a v0 v1 : ℚ) (h1 : v0 = 5*a) (h2 : v1 = 3*b) (h3 : v0 + v1 + c = 10) :
v0 + 5 + (v1 - 3) + (c - 2) = 10 :=
by linarith
example (ε : ℚ) (h1 : ε > 0) : ε / 2 + ε / 3 + ε / 7 < ε :=
by linarith
example (x y z : ℚ) (h1 : 2*x < 3*y) (h2 : -4*x + z/2 < 0)
(h3 : 12*y - z < ... |
c09e7fd37626986e8b3b86fff84895b9e9200040 | 9be442d9ec2fcf442516ed6e9e1660aa9071b7bd | /tests/lean/run/structPerfIssue.lean | 16e09c28be4faf297c2efad0ab3818845919ea1f | [
"Apache-2.0",
"LLVM-exception",
"NCSA",
"LGPL-3.0-only",
"LicenseRef-scancode-inner-net-2.0",
"BSD-3-Clause",
"LGPL-2.0-or-later",
"Spencer-94",
"LGPL-2.1-or-later",
"HPND",
"LicenseRef-scancode-pcre",
"ISC",
"LGPL-2.1-only",
"LicenseRef-scancode-other-permissive",
"SunPro",
"CMU-Mach"... | permissive | EdAyers/lean4 | 57ac632d6b0789cb91fab2170e8c9e40441221bd | 37ba0df5841bde51dbc2329da81ac23d4f6a4de4 | refs/heads/master | 1,676,463,245,298 | 1,660,619,433,000 | 1,660,619,433,000 | 183,433,437 | 1 | 0 | Apache-2.0 | 1,657,612,672,000 | 1,556,196,574,000 | Lean | UTF-8 | Lean | false | false | 10,294 | lean | noncomputable section
namespace MWE
universe u v w
inductive Id {A : Type u} : A → A → Type u
| refl {a : A} : Id a a
attribute [eliminator] Id.casesOn
infix:50 (priority := high) " = " => Id
@[matchPattern] abbrev idp {A : Type u} (a : A) : a = a := Id.refl
def Id.symm {A : Type u} {a b : A} (p : a = b) : b = a ... |
3309eb78fcc7e2b32b582e76faa21cb1e07eae63 | 63abd62053d479eae5abf4951554e1064a4c45b4 | /src/ring_theory/ideal/over.lean | 6e1aa03eed1511d94e8f69225fc1252f13843839 | [
"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 | 11,567 | lean | /-
Copyright (c) 2020 Anne Baanen. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Author: Anne Baanen
-/
import ring_theory.algebraic
import ring_theory.localization
/-!
# Ideals over/under ideals
This file concerns ideals lying over other ideals.
Let `f : R →+* S` be a ring... |
f389cf9197fc1e196ec83eb722ec8d00963ce107 | df7bb3acd9623e489e95e85d0bc55590ab0bc393 | /lean/love09_hoare_logic_demo.lean | 342a3c5be51180707287fa9dbdb4050d30363d6c | [] | 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 | 14,734 | lean | import .love08_operational_semantics_demo
/- # LoVe Demo 9: Hoare Logic
We review a second way to specify the semantics of a programming language: Hoare
logic. If operational semantics corresponds to an idealized interpreter,
__Hoare logic__ (also called __axiomatic semantics__) corresponds to a verifier.
Hoare logi... |
8dea5b0c607b250888386aedad9a86513eb63dc4 | 30b012bb72d640ec30c8fdd4c45fdfa67beb012c | /analysis/probability_mass_function.lean | dfad40941fed4d46a6f6c12b4f37443688589a3f | [
"Apache-2.0"
] | permissive | kckennylau/mathlib | 21fb810b701b10d6606d9002a4004f7672262e83 | 47b3477e20ffb5a06588dd3abb01fe0fe3205646 | refs/heads/master | 1,634,976,409,281 | 1,542,042,832,000 | 1,542,319,733,000 | 109,560,458 | 0 | 0 | Apache-2.0 | 1,542,369,208,000 | 1,509,867,494,000 | Lean | UTF-8 | Lean | false | false | 4,763 | 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
Probability mass function -- discrete probability measures
-/
import analysis.nnreal analysis.ennreal analysis.topology.infinite_sum
noncomputable theory
variables {α : ... |
e0268713162f78344ae07d4a81ebb70eda27905e | 46125763b4dbf50619e8846a1371029346f4c3db | /src/algebra/ordered_field.lean | fb8f468100bd207951e51fcc5f8f504f4d7b87b6 | [
"Apache-2.0"
] | permissive | thjread/mathlib | a9d97612cedc2c3101060737233df15abcdb9eb1 | 7cffe2520a5518bba19227a107078d83fa725ddc | refs/heads/master | 1,615,637,696,376 | 1,583,953,063,000 | 1,583,953,063,000 | 246,680,271 | 0 | 0 | Apache-2.0 | 1,583,960,875,000 | 1,583,960,875,000 | null | UTF-8 | Lean | false | false | 9,266 | 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 algebra.ordered_ring algebra.field
section linear_ordered_field
variables {α : Type*} [linear_ordered_field α] {a b c d : α}
lemma div_pos : 0 < a → 0 < b → ... |
6236c206edddbca4ae8e946511e7dbdd5410d915 | a9d0fb7b0e4f802bd3857b803e6c5c23d87fef91 | /hott/types/eq.hlean | bb6f04be5d7bdf131378a4b1396891aa62183876 | [
"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 | 21,500 | hlean | /-
Copyright (c) 2014 Floris van Doorn. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Author: Floris van Doorn
Partially ported from Coq HoTT
Theorems about path types (identity types)
-/
import types.sigma
open eq sigma sigma.ops equiv is_equiv is_trunc
-- TODO: Rename tra... |
9df94165a55f7f96f01707a9cb8b20d41fa3045f | 55c7fc2bf55d496ace18cd6f3376e12bb14c8cc5 | /src/tactic/simps.lean | 8362469f944756c9ce70262fea4280b08fddc824 | [
"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 | 25,054 | 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 tactic.core
/-!
# simps attribute
This file defines the `@[simps]` attribute, to automatically generate simp-lemmas
reducing a definition when projections... |
7a9367058edfe901b879c755e2df3abcedc8a1c7 | d406927ab5617694ec9ea7001f101b7c9e3d9702 | /src/category_theory/abelian/generator.lean | fbde8c6e412c815a4177cf76aece75dbf9595622 | [
"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,423 | lean | /-
Copyright (c) 2022 Markus Himmel. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Markus Himmel
-/
import category_theory.abelian.subobject
import category_theory.limits.essentially_small
import category_theory.preadditive.injective
import category_theory.preadditive... |
c2e1593dab92a8593307b7e7f68419cb4dde7d18 | 80cc5bf14c8ea85ff340d1d747a127dcadeb966f | /src/topology/compacts.lean | 7ed377bf1ced6f7d3d5791bf3315de470fe0da9e | [
"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 | 3,970 | 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 topology.homeomorph
/-!
# Compact sets
## Summary
We define the subtype of compact sets in a topological space.
## Main Definitions
- `closeds α` is th... |
6b11441f84ba945e62f18cc92ba6ea7d97fb1c54 | d406927ab5617694ec9ea7001f101b7c9e3d9702 | /src/group_theory/group_action/group.lean | 916cc6f5542f8f6d869d04f8b05ea2c802c65d00 | [
"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 | 11,005 | lean | /-
Copyright (c) 2018 Chris Hughes. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Chris Hughes
-/
import algebra.hom.aut
import group_theory.group_action.units
/-!
# Group actions applied to various types of group
This file contains lemmas about `smul` on `group_wit... |
b60fe59f62ece922cd547e7996674ee5eb4224a3 | 0d9b0a832bc57849732c5bd008a7a142f7e49656 | /src/sokostate.lean | c67776f7e5fe4c8d2faf3ad499b0522dc2143564 | [] | no_license | mirefek/sokoban.lean | bb9414af67894e4d8ce75f8c8d7031df02d371d0 | 451c92308afb4d3f8e566594b9751286f93b899b | refs/heads/master | 1,681,025,245,267 | 1,618,997,832,000 | 1,618,997,832,000 | 359,491,681 | 10 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 3,683 | lean | import tactic
import .direction
import .list2d
import .boolset2d
import .listdec
structure sokostate :=
(boxes : bset2d)
(storekeeper : ℕ × ℕ)
def sokostate.move (avail : bset2d) (d : direction) (s : sokostate)
: sokostate :=
let sk2 := d.shift s.storekeeper in
if (sk2 ∉ avail) then s else
if (sk2 ∉ s.boxes) ... |
17663a5ac71dedd4240621497cb5f60d5174d02c | b7f22e51856f4989b970961f794f1c435f9b8f78 | /tests/lean/run/eqv_tacs.lean | 54dbe1f86f3d3f66a1f7c4d9f7ce1d231dae07c4 | [
"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 | 602 | lean | open nat
example (a : nat) : a + 0 = a :=
by reflexivity
example (a : Prop) : a ↔ a :=
by reflexivity
example (a b : Prop) : (a ↔ b) → (b ↔ a) :=
by intros; symmetry; assumption
example (a b c : nat) : a = b → b = c → c = a :=
begin
intros,
symmetry,
transitivity b,
repeat assumption
end
example (a b c : P... |
11fb0c9daf42694e51ca1d042b04aa583d6ca71f | 76df16d6c3760cb415f1294caee997cc4736e09b | /rosette-benchmarks-4/jitterbug/jitterbug/lean/src/bv/lemmas.lean | c095e80b137321c7dca5d87369f30a0f3a05d82c | [
"MIT"
] | permissive | uw-unsat/leanette-popl22-artifact | 70409d9cbd8921d794d27b7992bf1d9a4087e9fe | 80fea2519e61b45a283fbf7903acdf6d5528dbe7 | refs/heads/master | 1,681,592,449,670 | 1,637,037,431,000 | 1,637,037,431,000 | 414,331,908 | 6 | 1 | null | null | null | null | UTF-8 | Lean | false | false | 20,866 | lean |
import .basic
import .helper
namespace bv
open nat
open bv.helper
section fin
variable {n : ℕ}
@[simp]
lemma lsb_cons (b : bool) (v : bv n) : (cons b v).lsb = b :=
fin.cons_zero _ _
@[simp]
lemma tail_cons (b : bool) (v : bv n) : (cons b v).tail = v :=
fin.tail_cons _ _
@[simp]
lemma cons_lsb_tail (v : bv (n + 1)... |
81b2aad48adc88eaebeec7a8a7cdb10bc8fe83a2 | 3adda22358e3c0fbae44c6c35fdddbebf9358ef4 | /src/Q4.lean | f1f1a55cbd9c4ac0bd79f4da0468dc7c4683ba94 | [
"Apache-2.0"
] | permissive | ImperialCollegeLondon/M1F-exam-may-2018 | 1539951b055cea5bac915bdb6fa1969e2f323402 | 8b5eca2037d4a14d6cfac3da1858b6c4119216d3 | refs/heads/master | 1,586,895,978,182 | 1,557,175,794,000 | 1,557,175,794,000 | 164,093,611 | 2 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 6,090 | lean | import tactic.norm_num
/-
M1F May exam 2018, question 4.
Solutions by Abhimanyu Pallavi Sudhir,
-/
universe u
local attribute [instance, priority 0] classical.prop_decidable
--QUESTION 4
variable {X : Type u}
variable {Y : Type u}
variable {f : X → Y}
-- Q4(a)(i)
def injectivity (g : X → Y) := ∀ x1 x2 : X, g x1 =... |
e82c6112c12899dd207d010e80cce882a664b58d | 36c7a18fd72e5b57229bd8ba36493daf536a19ce | /library/data/complex.lean | 1531dbb27d4bed9d18f7a8b2ea2433bcf785a781 | [
"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 | 12,990 | lean | /-
Copyright (c) 2015 Jacob Gross. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Jacob Gross, Jeremy Avigad
The complex numbers.
-/
import data.real
open real eq.ops algebra
record complex : Type :=
(re : ℝ) (im : ℝ)
notation `ℂ` := complex
namespace complex
vari... |
d66d678d606265934f2fcb97c74b2b4a2961d63f | 75db7e3219bba2fbf41bf5b905f34fcb3c6ca3f2 | /tests/lean/shadow.lean | 4651afca1d1682c2ce2276041b841826cb56eb5e | [
"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 | 204 | lean | open nat
variable a : nat
-- The variable 'a' in the following definition is not the variable 'a' above
definition tadd : nat → nat → nat
| tadd zero b := b
| tadd (succ a) b := succ (tadd a b)
|
f72559e4d3ee0b56061b7945a55ef11243f3b6bf | 9dd3f3912f7321eb58ee9aa8f21778ad6221f87c | /library/init/meta/relation_tactics.lean | 977db0083eb887b48469c1728d26fd725c164cb3 | [
"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,532 | 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.meta.tactic init.function
namespace tactic
open expr
private meta def relation_tactic (md : transparency) (op_for : environment → name... |
1a427d4eb25293706cd2d3710faccb9a813cb9d3 | ad0c7d243dc1bd563419e2767ed42fb323d7beea | /tactic/basic.lean | 0fbe53f0b2b5ffe2248b56f2e76241687ad46522 | [
"Apache-2.0"
] | permissive | sebzim4500/mathlib | e0b5a63b1655f910dee30badf09bd7e191d3cf30 | 6997cafbd3a7325af5cb318561768c316ceb7757 | refs/heads/master | 1,585,549,958,618 | 1,538,221,723,000 | 1,538,221,723,000 | 150,869,076 | 0 | 0 | Apache-2.0 | 1,538,229,323,000 | 1,538,229,323,000 | null | UTF-8 | Lean | false | false | 18,409 | lean | /-
Copyright (c) 2018 Mario Carneiro. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Mario Carneiro, Simon Hudon, Scott Morrison
-/
import data.dlist.basic category.basic
namespace name
meta def deinternalize_field : name → name
| (name.mk_string s name.anonymous) :=... |
c8b1f172424f8a3878bbaa32c1b41267f63be3b2 | 6432ea7a083ff6ba21ea17af9ee47b9c371760f7 | /src/Lean/Meta/Tactic/Injection.lean | 584df558a38e079a274bcadddc33d7e82c60f3a7 | [
"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 | 5,113 | 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.AppBuilder
import Lean.Meta.MatchUtil
import Lean.Meta.Tactic.Clear
import Lean.Meta.Tactic.Subst
import Lean.Meta.Tactic.Assert
import Lea... |
21d62e972d928edc608e3e34101a37c8c8dcdfed | 500f65bb93c499cd35c3254d894d762208cae042 | /src/category_theory/monoidal/category.lean | 54a0954968c68fb7830c183a9c0772a6e4b969d8 | [
"Apache-2.0"
] | permissive | PatrickMassot/mathlib | c39dc0ff18bbde42f1c93a1642f6e429adad538c | 45df75b3c9da159fe3192fa7f769dfbec0bd6bda | refs/heads/master | 1,623,168,646,390 | 1,566,940,765,000 | 1,566,940,765,000 | 115,220,590 | 0 | 1 | null | 1,514,061,524,000 | 1,514,061,524,000 | null | UTF-8 | Lean | false | false | 16,328 | lean | /-
Copyright (c) 2018 Michael Jendrusch. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Michael Jendrusch, Scott Morrison
-/
import category_theory.products
import category_theory.natural_isomorphism
import tactic.basic
import tactic.slice
open category_theory
univer... |
9752b1db2532a6af4f1c9a1b1e6c57c911d582b2 | 80cc5bf14c8ea85ff340d1d747a127dcadeb966f | /src/group_theory/coset.lean | 9a0b2a4a6f6e0dfd1d176193301ab559a8bb9c9f | [
"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 | 10,790 | lean | /-
Copyright (c) 2018 Mitchell Rowett. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Mitchell Rowett, Scott Morrison
-/
import group_theory.subgroup
open set function
variable {α : Type*}
/-- The left coset `a*s` corresponding to an element `a : α` and a subset `s ... |
fd6fc60beda8d4cd15ed299e198d356d051b134a | 63abd62053d479eae5abf4951554e1064a4c45b4 | /src/category_theory/currying.lean | fe6b87dd721549a836550d1eda968973fbeacadc | [
"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,707 | lean | /-
Copyright (c) 2017 Scott Morrison. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Scott Morrison
-/
import category_theory.products.bifunctor
namespace category_theory
universes v₁ v₂ v₃ u₁ u₂ u₃
variables {C : Type u₁} [category.{v₁} C]
{D : Type u₂} [... |
cf7491b8ec79f85c4ed34bf57bfbbe4bb136dc71 | 8cae430f0a71442d02dbb1cbb14073b31048e4b0 | /src/data/finset/mul_antidiagonal.lean | a03bf9fff06a819a7997190fc2a14ddb26e34589 | [
"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,927 | 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, Yaël Dillies
-/
import data.set.pointwise.basic
import data.set.mul_antidiagonal
/-! # Multiplication antidiagonal as a `finset`.
> THIS FILE IS SYNCHRONIZED WITH... |
d1433b2a3cb077291efb0f0557e62c1ced9401d9 | 2fbe653e4bc441efde5e5d250566e65538709888 | /src/ring_theory/integral_closure.lean | 5bd7f1ce545100ce87946019c4e6aebbf92465dc | [
"Apache-2.0"
] | permissive | aceg00/mathlib | 5e15e79a8af87ff7eb8c17e2629c442ef24e746b | 8786ea6d6d46d6969ac9a869eb818bf100802882 | refs/heads/master | 1,649,202,698,930 | 1,580,924,783,000 | 1,580,924,783,000 | 149,197,272 | 0 | 0 | Apache-2.0 | 1,537,224,208,000 | 1,537,224,207,000 | null | UTF-8 | Lean | false | false | 17,195 | lean | /-
Copyright (c) 2019 Kenny Lau. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Kenny Lau
Integral closure of a subring.
-/
import ring_theory.adjoin linear_algebra.finsupp
universes u v
open_locale classical
open polynomial submodule
section
variables (R : Type u... |
77a7b82b31c42d205f94f4f5f488376254f1eb2c | abbfc359cee49d3c5258b2bbedc2b4d306ec3bdf | /test/examples.lean | bfc729758a49a3d8cbebd984c766318690cc26e8 | [] | no_license | cipher1024/serialean | 565b17241ba7edc4ee564bf0ae175dd15b06a28c | 47881e4a6bc0a62cd68520564610b75f8a4fef2c | refs/heads/master | 1,585,117,575,599 | 1,535,783,976,000 | 1,535,783,976,000 | 143,501,396 | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 1,533 | lean |
import data.serial
open serial serializer
structure point :=
(x y : unsigned)
instance : serial point :=
of_serializer (point.mk <$> ser_field point.x <*> ser_field point.y)
begin
intro,
apply there_and_back_again_seq,
apply there_and_back_again_map,
cases w, refl
end
@[derive serial]
inductive my_sum
| fi... |
070df2cc939ebae670b541fc2d64c872cdb7ba32 | efa51dd2edbbbbd6c34bd0ce436415eb405832e7 | /20170116_POPL/meta/ex2.lean | 769e05f781e0edda868d81404756066524119872 | [
"Apache-2.0"
] | permissive | leanprover/presentations | dd031a05bcb12c8855676c77e52ed84246bd889a | 3ce2d132d299409f1de269fa8e95afa1333d644e | refs/heads/master | 1,688,703,388,796 | 1,686,838,383,000 | 1,687,465,742,000 | 29,750,158 | 12 | 9 | Apache-2.0 | 1,540,211,670,000 | 1,422,042,683,000 | Lean | UTF-8 | Lean | false | false | 2,590 | lean | example (p q : Prop) (hp : p) (hq : q) : p ∧ q ∧ p :=
begin
/- Hover over `apply`, its type is:
tactic.interactive.apply : interactive.types.qexpr0 → tactic unit
Inside begin-end blocks, tactics in the namespace tactic.interactive
have special treatment in the parser. First, we don't need to open
... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.