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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
2b4a65a1a7f4ed16585a11aaa4d54e000b69e540 | a9d0fb7b0e4f802bd3857b803e6c5c23d87fef91 | /hott/algebra/category/functor/basic.hlean | 9a7f6007f729514e243f097bbc4adbfedb91c19a | [
"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 | 12,239 | 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, Jakob von Raumer
-/
import ..iso types.pi
open function category eq prod prod.ops equiv is_equiv sigma sigma.ops is_trunc funext iso pi
structure functor (C D : ... |
b2bc76d5c93f168e648d7acaa3e5601c70db81e2 | 6432ea7a083ff6ba21ea17af9ee47b9c371760f7 | /src/Lean/SubExpr.lean | 0247cc74e411eee979940a8aa1d93cebb4de2acb | [
"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 | 7,937 | lean | /-
Copyright (c) 2021 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Sebastian Ullrich, Daniel Selsam, Wojciech Nawrocki, E.W.Ayers
-/
import Lean.Meta.Basic
import Lean.Data.Json
import Lean.Data.RBMap
namespace Lean
/-- A position of a subexp... |
5c99420c1b382acfd3b445d56a0a6d2b9f2a6952 | 9b9a16fa2cb737daee6b2785474678b6fa91d6d4 | /src/topology/compact_open.lean | 190dede326e543ea77537ec5d4bab7757f61dc96 | [
"Apache-2.0"
] | permissive | johoelzl/mathlib | 253f46daa30b644d011e8e119025b01ad69735c4 | 592e3c7a2dfbd5826919b4605559d35d4d75938f | refs/heads/master | 1,625,657,216,488 | 1,551,374,946,000 | 1,551,374,946,000 | 98,915,829 | 0 | 0 | Apache-2.0 | 1,522,917,267,000 | 1,501,524,499,000 | Lean | UTF-8 | Lean | false | false | 4,080 | lean | /-
Copyright (c) 2018 Reid Barton. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Reid Barton
Type of continuous maps and the compact-open topology on them.
-/
import topology.continuity tactic.tidy
open set
universes u v w
def continuous_map (α : Type u) (β : Typ... |
c5715c100c358fc1d61aa728aaa09f50573bf34d | 4727251e0cd73359b15b664c3170e5d754078599 | /src/algebra/module/algebra.lean | 129e92cffef0424f535822c991831efd87358cae | [
"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 | 901 | lean | /-
Copyright (c) 2022 Scott Morrison. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Scott Morrison
-/
import algebra.module.basic
import algebra.algebra.basic
/-!
# Additional facts about modules over algebras.
-/
namespace linear_map
section restrict_scalars
vari... |
e558bac5bed377659c3316775a138f0ec770ec5e | 74addaa0e41490cbaf2abd313a764c96df57b05d | /Mathlib/data/pfun.lean | 129f7d4cba33fe512e2d91233312edcc22884443 | [] | 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 | 26,888 | lean | /-
Copyright (c) 2017 Mario Carneiro. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Mario Carneiro, Jeremy Avigad, Simon Hudon
-/
import Mathlib.PrePort
import Mathlib.Lean3Lib.init.default
import Mathlib.data.rel
import Mathlib.PostPort
universes u l u_1 u_2 u_3
n... |
ab3904e823673ddbf7273b8b386cb12be86e9cb8 | 32025d5c2d6e33ad3b6dd8a3c91e1e838066a7f7 | /tests/lean/run/structInst2.lean | 1b4113a19d9854f7144ddd8a7e249287a1f8c781 | [
"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,515 | lean | import Init.Control.Option
universes u v
def OptionT2 (m : Type u → Type v) (α : Type u) : Type v :=
m (Option α)
namespace OptionT2
variables {m : Type u → Type v} [Monad m] {α β : Type u}
@[inline] protected def bind (ma : OptionT2 m α) (f : α → OptionT2 m β) : OptionT2 m β :=
(do {
a? ← ma;
match a? wit... |
626053e1681616e0c460e52152c49af118dab9b2 | 2eab05920d6eeb06665e1a6df77b3157354316ad | /src/category_theory/fully_faithful.lean | e30edf1683306a48de803fadcc65f54fd1f526ce | [
"Apache-2.0"
] | permissive | ayush1801/mathlib | 78949b9f789f488148142221606bf15c02b960d2 | ce164e28f262acbb3de6281b3b03660a9f744e3c | refs/heads/master | 1,692,886,907,941 | 1,635,270,866,000 | 1,635,270,866,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 8,677 | lean | /-
Copyright (c) 2018 Scott Morrison. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Scott Morrison
-/
import category_theory.natural_isomorphism
import data.equiv.basic
-- declare the `v`'s first; see `category_theory.category` for an explanation
universes v₁ v₂ v₃ u... |
dc734caac92ba881254ea551704c64c7529e1f03 | d9d511f37a523cd7659d6f573f990e2a0af93c6f | /src/tactic/fin_cases.lean | 07b77225b906791dbd18f17a82dd4e32cf9a29cd | [
"Apache-2.0"
] | permissive | hikari0108/mathlib | b7ea2b7350497ab1a0b87a09d093ecc025a50dfa | a9e7d333b0cfd45f13a20f7b96b7d52e19fa2901 | refs/heads/master | 1,690,483,608,260 | 1,631,541,580,000 | 1,631,541,580,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 4,873 | lean | /-
Copyright (c) 2018 Scott Morrison. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Scott Morrison
Case bashing:
* on `x ∈ A`, for `A : finset α` or `A : list α`, or
* on `x : A`, with `[fintype A]`.
-/
import data.fintype.basic
import tactic.norm_num
namespace tact... |
2d6ceddc2a2a56a4e7930e2477cf87cfd7ed1192 | a726f88081e44db9edfd14d32cfe9c4393ee56a4 | /src/game/intro.lean | 429c19ee4ec137435eb309dc989a1ef77a61248f | [] | no_license | b-mehta/natural_number_game | 80451bf10277adc89a55dbe8581692c36d822462 | 9faf799d0ab48ecbc89b3d70babb65ba64beee3b | refs/heads/master | 1,598,525,389,186 | 1,573,516,674,000 | 1,573,516,674,000 | 217,339,684 | 0 | 0 | null | 1,571,933,100,000 | 1,571,933,099,000 | null | UTF-8 | Lean | false | false | 2,626 | lean | /-
# The Natural Number Game, version 1.09
## By Kevin Buzzard and Mohammad Pedramfar.
# What is this game?
Welcome to the natural number game -- a part-book part-game which shows the power of induction.
Blue nodes on the graph are ones that you are ready to enter. Grey nodes you should stay away
from -- try blue o... |
89ba430d8b32d52e3b03f11a40fc814efcdafb69 | 19cc34575500ee2e3d4586c15544632aa07a8e66 | /src/algebra/group_with_zero.lean | 255ee3fb174e45e477c8590e0ae85ceea5a4f492 | [
"Apache-2.0"
] | permissive | LibertasSpZ/mathlib | b9fcd46625eb940611adb5e719a4b554138dade6 | 33f7870a49d7cc06d2f3036e22543e6ec5046e68 | refs/heads/master | 1,672,066,539,347 | 1,602,429,158,000 | 1,602,429,158,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 38,234 | lean | /-
Copyright (c) 2020 Johan Commelin. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Johan Commelin
-/
import logic.nontrivial
import algebra.group.units_hom
import algebra.group.inj_surj
/-!
# Groups with an adjoined zero element
This file describes structures that ... |
fbdd8f0e7e1e12658630c4258a2153740c6aa299 | 7a097aab717143b13a4a4f8824fe9cfe670a7883 | /src/smt2/solvers/z3.lean | f3fc1c3f31c80b9eb03c85a86a612feccfd275e0 | [
"Apache-2.0"
] | permissive | digama0/smt2_interface | 6b3bbc12cb90bd4bc70b07ca86918c1e9ff4ed97 | cf516ae4142f33adcf4b272758d63fee37ec9f7d | refs/heads/master | 1,611,266,770,453 | 1,498,177,713,000 | 1,498,177,713,000 | 95,167,865 | 0 | 0 | null | 1,498,177,813,000 | 1,498,177,813,000 | null | UTF-8 | Lean | false | false | 693 | lean | import system.io
import data.buffer
open io.proc
structure z3_instance [io.interface] : Type :=
(process : child)
def z3_instance.start [io.interface] : io z3_instance :=
z3_instance.mk <$> io.proc.spawn{
cmd := "z3",
args := ["-smt2", "-in"],
stdin := io.process.stdio.piped,
stdou... |
8c04546776f81e99f5464ee780d34e56d719aa59 | 8b147c3d61a55005ca839480a4045e69683f7655 | /atom.lean | d0e246e25e868a98075922eecd8cc75e4f41b9d7 | [] | no_license | dselsam/unrealistic_compiler | ce69efac0d573642b67f44a63eb5f18cdf596b27 | 70514de492a6a1ed705ad247333ae5b3f8455a83 | refs/heads/master | 1,609,483,664,302 | 1,500,654,169,000 | 1,500,654,169,000 | 97,516,326 | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 332 | lean | structure atom := (id : nat)
namespace atom
instance : decidable_eq atom := by tactic.mk_dec_eq_instance
def fresh_atom_core : list atom → ℕ → atom
| [] next_id := ⟨next_id⟩
| (atom::atoms) next_id := fresh_atom_core atoms (max atom^.id next_id)
def fresh (atoms : list atom) : atom := fresh_atom_core atoms 0
end ato... |
7677dbc2e405c973410f9039a15978eb9fd47bf9 | 7fc0ec5c526f706107537a6e2e34ac4cdf88d232 | /src/misc.lean | 149ec4dc55e624a277e2f0a8365e7a1fc41ce2ad | [
"Apache-2.0"
] | permissive | fpvandoorn/group-representations | 7440a81f2ac9e0d2defa44dc1643c3167f7a2d99 | bd9d72311749187d3bd4f542d5eab83e8341856c | refs/heads/master | 1,684,128,141,684 | 1,623,338,135,000 | 1,623,338,135,000 | 256,117,709 | 0 | 2 | null | null | null | null | UTF-8 | Lean | false | false | 3,298 | lean | /- Copyright (c) 2020 Floris van Doorn. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Michael Douglas, Floris van Doorn
-/
import order.zorn algebra.module
universe variable u
namespace tactic
namespace interactive
setup_tactic_parser
open tactic.interactive
meta d... |
2224c4ab1565aeaa853f3c6e6df94eb97c2f652f | 1cc8cf59a317bf12d71a5a8ed03bfc1948c66f10 | /src/monotone.lean | 1a216b8abc70808636c3c9a4cb204854b3c36563 | [
"Apache-2.0"
] | permissive | kckennylau/M1P1-lean | 1e4fabf513539669f86a439af6844aa078c239ad | c92e524f3e4e7aec5dc09e05fb8923cc9720dd34 | refs/heads/master | 1,587,503,976,663 | 1,549,715,955,000 | 1,549,715,955,000 | 169,875,735 | 1 | 0 | Apache-2.0 | 1,549,722,917,000 | 1,549,722,917,000 | null | UTF-8 | Lean | false | false | 3,858 | lean | import tactic.interactive algebra.order data.finset
universes u v
section monotone
def increasing {α : Type u} [has_le α] {β : Type v} [has_le β] (f : α → β) : Prop :=
∀ x y, x ≤ y → f x ≤ f y
def decreasing {α : Type u} [has_le α] {β : Type v} [has_le β] (f : α → β) : Prop :=
∀ x y, x ≤ y → f y ≤ f x
def strictly... |
05c07adf2da8ed1bc1291210458d11dd9324663b | fa02ed5a3c9c0adee3c26887a16855e7841c668b | /roadmap/topology/paracompact.lean | c7b2b76cec0b00ece7a6775bbd26f5c99d0cceba | [
"Apache-2.0"
] | permissive | jjgarzella/mathlib | 96a345378c4e0bf26cf604aed84f90329e4896a2 | 395d8716c3ad03747059d482090e2bb97db612c8 | refs/heads/master | 1,686,480,124,379 | 1,625,163,323,000 | 1,625,163,323,000 | 281,190,421 | 2 | 0 | Apache-2.0 | 1,595,268,170,000 | 1,595,268,169,000 | null | UTF-8 | Lean | false | false | 3,168 | lean | /-
Copyright (c) 2020 Reid Barton. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Reid Barton
-/
import ..todo
import topology.subset_properties
import topology.separation
import topology.metric_space.basic
/-!
A formal roadmap for basic properties of paracompact spa... |
92e851bbd93564239a9e488f0691ccdf095edc08 | 8e31b9e0d8cec76b5aa1e60a240bbd557d01047c | /src/refinement/array_tableau.lean | 494711b3a3721610a306cd7f6b7ce6f5fd9e5f14 | [] | no_license | ChrisHughes24/LP | 7bdd62cb648461c67246457f3ddcb9518226dd49 | e3ed64c2d1f642696104584e74ae7226d8e916de | refs/heads/master | 1,685,642,642,858 | 1,578,070,602,000 | 1,578,070,602,000 | 195,268,102 | 4 | 3 | null | 1,569,229,518,000 | 1,562,255,287,000 | Lean | UTF-8 | Lean | false | false | 90,499 | lean | import refinement.tableau_class .simplex simplify
structure ftableau (m n : ℕ) extends partition m n : Type :=
(to_array : array (m * (n + 1)) ℚ)
(restricted : finset (fin (m + n)))
(dead : finset (fin n))
variables {m n : ℕ}
def fin.pair (i : fin m) (j : fin n) : fin (m * n) :=
⟨j + n * i,
calc ((j : ℕ) + n... |
60a539cfe9b2e760caf0f35e6caff1de877c10ec | 958488bc7f3c2044206e0358e56d7690b6ae696c | /lean/while/Subst.lean | 6f9797386669adf7abed16911dcb0aab2a3f0eb1 | [] | no_license | possientis/Prog | a08eec1c1b121c2fd6c70a8ae89e2fbef952adb4 | d4b3debc37610a88e0dac3ac5914903604fd1d1f | refs/heads/master | 1,692,263,717,723 | 1,691,757,179,000 | 1,691,757,179,000 | 40,361,602 | 3 | 0 | null | 1,679,896,438,000 | 1,438,953,859,000 | Coq | UTF-8 | Lean | false | false | 136 | lean | import Env
import AExp
def Pred : Type := Env -> Prop
def subst (x:string) (a:AExp)(p:Pred) : Pred :=
λ (s:Env), p (bindVar x a s)
|
1f8f1e26d3e3ca3b7e202311c57a50d4e90dcd8c | 54d7e71c3616d331b2ec3845d31deb08f3ff1dea | /library/init/category/state.lean | 4ab30fb9f20b8fc4439577eb1d30564ee7f1f9f9 | [
"Apache-2.0"
] | permissive | pachugupta/lean | 6f3305c4292288311cc4ab4550060b17d49ffb1d | 0d02136a09ac4cf27b5c88361750e38e1f485a1a | refs/heads/master | 1,611,110,653,606 | 1,493,130,117,000 | 1,493,167,649,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 3,642 | 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.interactive
universes u v
def state (σ α : Type u) : Type u :=
σ → α × σ
section
variables {σ α β : Type u}
@[inline] def state_... |
a16a20e347cc3257fd0098b42c86b3567ca420fb | 302c785c90d40ad3d6be43d33bc6a558354cc2cf | /src/topology/local_homeomorph.lean | 5544abc698d28cc4bef72796849765cd283137bc | [
"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 | 48,926 | 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 data.equiv.local_equiv
import topology.opens
/-!
# Local homeomorphisms
This file defines homeomorphisms between open subsets of topological spaces. An... |
6056fff70a41c906384d2772289dceaeec84483e | 4fa161becb8ce7378a709f5992a594764699e268 | /src/analysis/calculus/specific_functions.lean | b24cea340136dc85e4c9da1c06aa28d86232a9d6 | [
"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 | 7,690 | 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 analysis.calculus.extend_deriv
import analysis.calculus.iterated_deriv
import analysis.special_functions.exp_log
/-!
# Smoothness of specific functions
... |
91304801332cc0c0b5dcbd7d1a0d9b792904ec8e | fa02ed5a3c9c0adee3c26887a16855e7841c668b | /src/algebraic_geometry/presheafed_space/has_colimits.lean | 2698883e4a5f756518202e0e06a5673828e5e147 | [
"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,280 | 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 algebraic_geometry.presheafed_space
import topology.category.Top.limits
import topology.sheaves.limits
import category_theory.limits.concrete_category
/-!
# `... |
5eab69ed0db1c8f14745d14d397391777af94e25 | 3994e03e14a3cbe3858c1098d0ab9ed1113d6666 | /06-formalizacija-dokazov/vaje-imp.lean | 7771df860961e17dec78a9574831487383abef0d | [] | no_license | tadejpetric/tpj-coq | 15f2548ba8f012d9a5b5e0bfb78ab0860d048e96 | dda9fb2e635f9a1302739e34d8692a4252066b76 | refs/heads/master | 1,629,182,614,649 | 1,600,449,570,000 | 1,600,449,570,000 | 222,798,649 | 1 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 6,139 | lean | -- ==================== Syntax ====================
def loc := string
inductive aexp : Type
| Lookup : loc -> aexp
| Int : int -> aexp
| Plus : aexp -> aexp -> aexp
-- | Minus
-- | Times
inductive bexp : Type
| Bool : bool -> bexp
| Equal : aexp -> aexp -> bexp
-- | Less
inductive cmd : Type
| Assign : loc -> ae... |
f4be8f1576e4883bcae6406bd3f707d1985a793a | c2b0bd5aa4b3f4fb8a887fab57c5fc08be03aa01 | /variables/unary.lean | 5ea49f9494c767b082de671772a0dbeca8d95598 | [] | no_license | cipher1024/lambda-calc | f72aa6dedea96fc7831d1898f3150a18baefdf0b | 327eaa12588018c01b2205f3e4e0048de1d97afd | refs/heads/master | 1,625,672,854,392 | 1,507,233,523,000 | 1,507,233,523,000 | 99,383,225 | 4 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 962 | lean |
universes u v
namespace unary
open has_map
inductive var (α : Type u) (n : ℕ) : Type u
| free : α → var
| bound : fin n → var
def var.rec' {α : Type u} {n : ℕ} {r} (x : r) (f : var α n → r) : var α (n+1) → r
| (var.free ._ v) := f (var.free _ v)
| (var.bound ._ ⟨v,h⟩) :=
if h' : v < n
then f (var.bound _ ⟨v... |
843a36f111fff7225ffb0c3d1982eddb7f6d8c6c | 41ebf3cb010344adfa84907b3304db00e02db0a6 | /uexp/src/uexp/rules/pullConstantThroughUnion3.lean | ca56517395ffe875d74654c39daf917481f417f9 | [
"BSD-2-Clause"
] | permissive | ReinierKoops/Cosette | e061b2ba58b26f4eddf4cd052dcf7abd16dfe8fb | eb8dadd06ee05fe7b6b99de431dd7c4faef5cb29 | refs/heads/master | 1,686,483,953,198 | 1,624,293,498,000 | 1,624,293,498,000 | 378,997,885 | 0 | 0 | BSD-2-Clause | 1,624,293,485,000 | 1,624,293,484,000 | null | UTF-8 | Lean | false | false | 2,022 | lean | import ..sql
import ..tactics
import ..u_semiring
import ..extra_constants
import ..meta.UDP
set_option profiler true
open Expr
open Proj
open Pred
open SQL
open tree
notation `int` := datatypes.int
constant integer_2: const int
constant integer_3: const int
theorem Rule: forall (Γ scm_t scm_account scm_bonus s... |
c91c6233c3c55599598e541ec398fdfbed392e60 | f4bff2062c030df03d65e8b69c88f79b63a359d8 | /src/game/sup_inf/rat_complete.lean | 091d43cc4d16e66745f0afaf87175a4f42a294f1 | [
"Apache-2.0"
] | permissive | adastra7470/real-number-game | 776606961f52db0eb824555ed2f8e16f92216ea3 | f9dcb7d9255a79b57e62038228a23346c2dc301b | refs/heads/master | 1,669,221,575,893 | 1,594,669,800,000 | 1,594,669,800,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 2,712 | lean | import game.sup_inf.unbdd_iff
import data.real.basic
namespace xena -- hide
/-
# Chapter 3 : Sup and Inf
## Level 13
This proof will be easy now.
Actually this needs quite some work due to coercions etc.
May need to change definitions.
-/
def bdd (X : set ℝ) := bdd_above X ∧ bdd_below X
def complete (X : set ℝ) :=... |
cf5fef493865703e8367244ce2675d7266b7d1a9 | 9ad8d18fbe5f120c22b5e035bc240f711d2cbd7e | /src/group_theory/action_instances.lean | b74c7707d805e0f4c7f287b88239d3ce820c20c3 | [] | no_license | agusakov/lean_lib | c0e9cc29fc7d2518004e224376adeb5e69b5cc1a | f88d162da2f990b87c4d34f5f46bbca2bbc5948e | refs/heads/master | 1,642,141,461,087 | 1,557,395,798,000 | 1,557,395,798,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 4,912 | lean | /-
Copyright (c) 2019 Neil Strickland. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Neil Strickland
If we have types `X` and `Y` with a left action of a monoid `M`,
then there are also natural actions of `M` on various other types
defined in terms of `X` and/or `Y`,... |
16012d6dd66f74a61a66f29b8fade7d2b3812b2c | d406927ab5617694ec9ea7001f101b7c9e3d9702 | /src/number_theory/modular_forms/slash_invariant_forms.lean | d8218c5060efa819f5ceef9d96bca0d55e217aec | [
"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 | 6,273 | lean | /-
Copyright (c) 2022 Chris Birkbeck. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Chris Birkbeck
-/
import number_theory.modular_forms.slash_actions
/-!
# Slash invariant forms
This file defines functions that are invariant under a `slash_action` which forms the b... |
07fdbbd972efa3304e7b29c4133c0b4fad644e38 | 74addaa0e41490cbaf2abd313a764c96df57b05d | /Mathlib/measure_theory/outer_measure_auto.lean | 01a4cc1689f85ab6e6aa94d9c74591b666670d5e | [] | 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 | 38,824 | 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 Mathlib.PrePort
import Mathlib.Lean3Lib.init.default
import Mathlib.analysis.specific_limits
import Mathlib.measure_theory.measurable_space
imp... |
70ef5bc048dacacf8ef91b8d775bf8869ec5357f | 5ae26df177f810c5006841e9c73dc56e01b978d7 | /src/data/list/defs.lean | a2c0bf66ae7a2bfde881aa7c6f82a67546b521cc | [
"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 | 19,033 | lean | /-
Copyright (c) 2014 Parikshit Khanna. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Parikshit Khanna, Jeremy Avigad, Leonardo de Moura, Floris van Doorn, Mario Carneiro
Extra definitions on lists.
-/
import data.option.defs logic.basic tactic.cache
namespace list
... |
2308caf8bce32b1fd5a1d29c238604063a4fac53 | 6e41ee3ac9b96e8980a16295cc21f131e731884f | /hott/init/relation.hlean | 91e3154824d62b6ad9305c6c347d6d7db19d4bcb | [
"Apache-2.0"
] | permissive | EgbertRijke/lean | 3426cfa0e5b3d35d12fc3fd7318b35574cb67dc3 | 4f2e0c6d7fc9274d953cfa1c37ab2f3e799ab183 | refs/heads/master | 1,610,834,871,476 | 1,422,159,801,000 | 1,422,159,801,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 1,441 | hlean | /-
Copyright (c) 2014 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
-- TODO(Leo): remove duplication between this file and algebra/relation.lean
-- We need some of the following definitions asap wh... |
50437d68e804adfdc3e604302b56653120564173 | bb31430994044506fa42fd667e2d556327e18dfe | /src/number_theory/multiplicity.lean | baaa7f075ecfe801a691fb96046a33bf7af48197 | [
"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 | 17,435 | lean | /-
Copyright (c) 2022 Tian Chen. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Tian Chen, Mantas Bakšys
-/
import algebra.geom_sum
import data.int.parity
import data.zmod.basic
import number_theory.padics.padic_val
/-!
# Multiplicity in Number Theory
This file conta... |
c76bfd194d0b6e0e4109a856fa49be3d443f983a | bdb33f8b7ea65f7705fc342a178508e2722eb851 | /data/pfun.lean | e73a068a2dc62b13493aa95d71958ef1ec5277d6 | [
"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 | 9,156 | lean | /-
Copyright (c) 2017 Mario Carneiro. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Author: Mario Carneiro
-/
import data.set data.set.basic
universes u v w
/-- `roption α` is the type of "partial values" of type `α`. It
is similar to `option α` except the domain condition... |
0bb216df4f399c24a43074b4490eb83cc02fb057 | 3dc4623269159d02a444fe898d33e8c7e7e9461b | /.github/workflows/geo/ideals.lean | 4133c0af96bd4fe90f1de21a64d90d4b7f998cd3 | [] | no_license | Or7ando/lean | cc003e6c41048eae7c34aa6bada51c9e9add9e66 | d41169cf4e416a0d42092fb6bdc14131cee9dd15 | refs/heads/master | 1,650,600,589,722 | 1,587,262,906,000 | 1,587,262,906,000 | 255,387,160 | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 743 | lean | import .global
import ring_theory.ideals
import ring_theory.ideal_operations
universes u
local notation `Ring` := CommRing.{u}
local notation `Set` := Type u
namespace ideal
lemma ideal_id (A : Ring) (I : ideal A) : ideal.map (𝟙 A)I = I :=
begin
have g : set.image (𝟙 A) I = (I : set A),
exact set.image_... |
4d680df5ba920ea9102c1541a5243ba416b493b4 | 4727251e0cd73359b15b664c3170e5d754078599 | /src/tactic/tauto.lean | 006db7de1906fb9ff1c28d904117c4dde980915a | [
"Apache-2.0"
] | permissive | Vierkantor/mathlib | 0ea59ac32a3a43c93c44d70f441c4ee810ccceca | 83bc3b9ce9b13910b57bda6b56222495ebd31c2f | refs/heads/master | 1,658,323,012,449 | 1,652,256,003,000 | 1,652,256,003,000 | 209,296,341 | 0 | 1 | Apache-2.0 | 1,568,807,655,000 | 1,568,807,655,000 | null | UTF-8 | Lean | false | false | 11,532 | 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 tactic.hint
namespace tactic
open expr
open tactic.interactive ( casesm constructor_matching )
/--
find all assumptions of the shape `¬ (p ∧ q)` or `¬ (p ∨ q)` ... |
194b0782fb9d42e909189c15b1eced31a4de003b | 80746c6dba6a866de5431094bf9f8f841b043d77 | /src/analysis/normed_space/basic.lean | 94fa7f20d4c69ed4a4d2151f9f7e1f16ad138a86 | [
"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 | 15,713 | lean | /-
Copyright (c) 2018 Patrick Massot. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Normed spaces.
Authors: Patrick Massot, Johannes Hölzl
-/
import algebra.pi_instances
import linear_algebra.basic
import topology.instances.nnreal
variables {α : Type*} {β : Type*} {γ : Type*... |
02a4766c52ef1d56d7f88cd4653236c88589239d | 64874bd1010548c7f5a6e3e8902efa63baaff785 | /library/data/empty.lean | c3ed868527e649b29902eb698a113b15461449b7 | [
"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 | 1,379 | lean | /-
Copyright (c) 2014 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Module: data.empty
Author: Jeremy Avigad, Floris van Doorn
-/
import logic.cast logic.subsingleton
namespace empty
protected theorem elim (A : Type) (H : empty) : A :=
rec (λe, A)... |
a921e11ff1c892689581882df442cc638c5fec2a | c3f2fcd060adfa2ca29f924839d2d925e8f2c685 | /tests/lean/slow/list_elab2.lean | b06f9817e4aec8f4f0046fcbc3d7b9e8b9ceaac3 | [
"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 | 6,587 | lean | ----------------------------------------------------------------------------------------------------
--- Copyright (c) 2014 Parikshit Khanna. All rights reserved.
--- Released under Apache 2.0 license as described in the file LICENSE.
--- Authors: Parikshit Khanna, Jeremy Avigad
----------------------------------------... |
0ce12c3e597fb7f1d5c19bfb90667c181521f04a | 05b503addd423dd68145d68b8cde5cd595d74365 | /src/topology/algebra/multilinear.lean | c572fe9a896bfae2fe0586ccc1cf3bd3efadb472 | [
"Apache-2.0"
] | permissive | aestriplex/mathlib | 77513ff2b176d74a3bec114f33b519069788811d | e2fa8b2b1b732d7c25119229e3cdfba8370cb00f | refs/heads/master | 1,621,969,960,692 | 1,586,279,279,000 | 1,586,279,279,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 11,887 | 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 linear_algebra.multilinear
/-!
# Continuous multilinear maps
We define continuous multilinear maps as maps from `Π(i : ι), M₁ ... |
99f25fec3fdfb77173e21b76eb5068ac86223d3a | 137c667471a40116a7afd7261f030b30180468c2 | /src/linear_algebra/finsupp.lean | 9ea5750c3175b4eb712b4a5be7317a7154bfb9c3 | [
"Apache-2.0"
] | permissive | bragadeesh153/mathlib | 46bf814cfb1eecb34b5d1549b9117dc60f657792 | b577bb2cd1f96eb47031878256856020b76f73cd | refs/heads/master | 1,687,435,188,334 | 1,626,384,207,000 | 1,626,384,207,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 37,275 | 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 data.finsupp.basic
import linear_algebra.basic
import linear_algebra.pi
/-!
# Properties of the module `α →₀ M`
Given an `R`-module `M`, the `R`-module struc... |
734bdda9362a15d550be5567ece3dcc2bc0bd05a | 367134ba5a65885e863bdc4507601606690974c1 | /src/tactic/omega/eq_elim.lean | de6bc7df3757146c469fd41ac53ff157c95357af | [
"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 | 14,710 | lean | /-
Copyright (c) 2019 Seul Baek. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Author: Seul Baek
-/
/-
Correctness lemmas for equality elimination.
See 5.5 of <http://www.decision-procedures.org/> for details.
-/
import tactic.omega.clause
open list.func
namespace omega
d... |
f11c8e352042a7e45325a9bc6bc7817f2ddb7d2f | ce6917c5bacabee346655160b74a307b4a5ab620 | /src/ch2/ex0405.lean | 58e83104e29c1d2d7ee1894134b9ed9904e26df3 | [] | no_license | Ailrun/Theorem_Proving_in_Lean | ae6a23f3c54d62d401314d6a771e8ff8b4132db2 | 2eb1b5caf93c6a5a555c79e9097cf2ba5a66cf68 | refs/heads/master | 1,609,838,270,467 | 1,586,846,743,000 | 1,586,846,743,000 | 240,967,761 | 1 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 87 | lean | def compose (α β γ : Type) (g : β → γ) (f : α → β) (x : α) : γ := g (f x)
|
5974b92bcbad440ef0de8c11effe5455fc90fdaf | cf39355caa609c0f33405126beee2739aa3cb77e | /tests/lean/right_assoc_dollar.lean | 24d0ee547c4da39fab12bea839d3ef19135b15d1 | [
"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 | 70 | lean | constant f : nat → nat → nat
open nat
#check f $ succ $ 10 + 20
|
820c0686f7c44c363cc4d2846dbfcf2b93a0cbd1 | d406927ab5617694ec9ea7001f101b7c9e3d9702 | /src/ring_theory/finiteness.lean | 5ab0cc4e0c2efb93c009c30d6547677679afc267 | [
"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 | 24,741 | lean | /-
Copyright (c) 2020 Johan Commelin. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Johan Commelin
-/
import algebra.algebra.restrict_scalars
import algebra.algebra.subalgebra.basic
import group_theory.finiteness
import ring_theory.ideal.operations
/-!
# Finiteness ... |
817a643d4be397cf01f668768dda532d34490118 | c777c32c8e484e195053731103c5e52af26a25d1 | /src/measure_theory/function/simple_func_dense_lp.lean | 1853843cf77f6a167aa94cbed9a5d5e7c5d963b1 | [
"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 | 45,486 | lean | /-
Copyright (c) 2022 Zhouhang Zhou. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Zhouhang Zhou, Yury Kudryashov, Heather Macbeth
-/
import measure_theory.function.l1_space
import measure_theory.function.simple_func_dense
/-!
# Density of simple functions
Show that... |
7e03118d9f27b35e78a3f6accb25f36b42d05d30 | 3dc4623269159d02a444fe898d33e8c7e7e9461b | /.github/workflows/project_1_a_decrire/Nouveau dossier/Gm.lean | 783d6e98bcd6d506229aa0c910a4d42c56e964a9 | [] | no_license | Or7ando/lean | cc003e6c41048eae7c34aa6bada51c9e9add9e66 | d41169cf4e416a0d42092fb6bdc14131cee9dd15 | refs/heads/master | 1,650,600,589,722 | 1,587,262,906,000 | 1,587,262,906,000 | 255,387,160 | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 2,819 | lean | import tactic.ring
import tactic.ring
import data.polynomial
import algebra.category.CommRing.basic
open category_theory
open functor
open CommRing
open polynomial
universe u
variable {R : Type u}
structure Gm (R : Type u) [comm_ring R] := --- Object ?
(val : R)
(inv : R)
(val_inv : val * inv = 1)
(inv_val : inv ... |
2f4f1b2a03fd7ca8413532c0bcff5258eb2e69f2 | 8cae430f0a71442d02dbb1cbb14073b31048e4b0 | /src/algebra/ring/comp_typeclasses.lean | 19f4fc328812e829da2a89530a308309276035c9 | [
"Apache-2.0"
] | permissive | leanprover-community/mathlib | 56a2cadd17ac88caf4ece0a775932fa26327ba0e | 442a83d738cb208d3600056c489be16900ba701d | refs/heads/master | 1,693,584,102,358 | 1,693,471,902,000 | 1,693,471,902,000 | 97,922,418 | 1,595 | 352 | Apache-2.0 | 1,694,693,445,000 | 1,500,624,130,000 | Lean | UTF-8 | Lean | false | false | 6,567 | lean | /-
Copyright (c) 2021 Frédéric Dupuis. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Frédéric Dupuis, Heather Macbeth
-/
import algebra.ring.equiv
/-!
# Propositional typeclasses on several ring homs
> THIS FILE IS SYNCHRONIZED WITH MATHLIB4.
> Any changes to this ... |
d3d0310c081e07ecd79c1115cb60c199b04fb4ef | 367134ba5a65885e863bdc4507601606690974c1 | /src/geometry/manifold/instances/sphere.lean | 144470cce09f8697e91af1ca49e69f9a29a8a004 | [
"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 | 18,094 | lean | /-
Copyright (c) 2021 Heather Macbeth. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Heather Macbeth
-/
import geometry.manifold.instances.real
/-!
# Manifold structure on the sphere
This file defines stereographic projection from the sphere in an inner product spac... |
2adf8d77e8ea88e5b426ab27268c04d47fce46ac | 8e6cad62ec62c6c348e5faaa3c3f2079012bdd69 | /src/topology/homeomorph.lean | ae19875db4e7938c05a859a8a39e15fbc73fd947 | [
"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 | 12,740 | lean | /-
Copyright (c) 2019 Reid Barton. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Johannes Hölzl, Patrick Massot, Sébastien Gouëzel, Zhouhang Zhou, Reid Barton
-/
import topology.dense_embedding
open set filter
open_locale topological_space
variables {α : Type*} {β :... |
5d7fc0f88852d4f0f9599f114a9701648e8c9b6c | 6e41ee3ac9b96e8980a16295cc21f131e731884f | /library/algebra/group.lean | c4799896216f57004c6cabd0b6687c04d64a86f4 | [
"Apache-2.0"
] | permissive | EgbertRijke/lean | 3426cfa0e5b3d35d12fc3fd7318b35574cb67dc3 | 4f2e0c6d7fc9274d953cfa1c37ab2f3e799ab183 | refs/heads/master | 1,610,834,871,476 | 1,422,159,801,000 | 1,422,159,801,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 18,242 | lean | /-
Copyright (c) 2014 Jeremy Avigad. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Module: algebra.group
Authors: Jeremy Avigad, Leonardo de Moura
Various multiplicative and additive structures. Partially modeled on Isabelle's library.
-/
import logic.eq data.unit data.sigm... |
1ada8dd5ccab1fd6943bf82ae81ae3314a8f63d2 | c777c32c8e484e195053731103c5e52af26a25d1 | /src/data/hash_map.lean | e9293d372477a1934ee9584b2c2428b73f2fbb72 | [
"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 | 29,557 | 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.array.lemmas
import data.list.join
import data.list.range
import data.list.nodup
import data.pnat.defs
/-!
# Hash maps
Defines... |
1774da59f354f380f214c18b9b2b4cde8f039c9c | cf39355caa609c0f33405126beee2739aa3cb77e | /tests/lean/run/mk_dec_eq1.lean | a26f43311ebebb7fdbd35b01f3328eb9b4c2919d | [
"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 | 933 | lean | open tactic
namespace test
inductive enum1 : Type | ea | eb | ec | ed
instance enum1_dec_eq : decidable_eq enum1 :=
by mk_dec_eq_instance
inductive Expr
| var : nat → Expr
| app : ∀ (n : nat) (e1 : Expr) (e2 : Expr) (e3 : Expr) (e4 : Expr), Expr
| Elet : Expr → Expr
| bla : list nat → Expr
instance Expr_has_de... |
c52ff54d81654bb020ba09569f802e87808c10d8 | 74addaa0e41490cbaf2abd313a764c96df57b05d | /Mathlib/Lean3Lib/init/meta/widget/interactive_expr.lean | 96313b1ac33f52149926f72f78a291289dd74f58 | [] | 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 | 430 | lean | /-
Copyright (c) E.W.Ayers. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Author: E.W.Ayers
-/
import Mathlib.PrePort
import Mathlib.Lean3Lib.init.meta.widget.basic
import Mathlib.Lean3Lib.init.meta.widget.tactic_component
import Mathlib.Lean3Lib.init.meta.tagged_format
impor... |
ae1ceed3c120767c7fd0a0c0402470a70bd3107a | dd0f5513e11c52db157d2fcc8456d9401a6cd9da | /06_Inductive_Types.org.2.lean | 32c30a3373f1084ff3a4fe60c23a4a73d1733c38 | [] | no_license | cjmazey/lean-tutorial | ba559a49f82aa6c5848b9bf17b7389bf7f4ba645 | 381f61c9fcac56d01d959ae0fa6e376f2c4e3b34 | refs/heads/master | 1,610,286,098,832 | 1,447,124,923,000 | 1,447,124,923,000 | 43,082,433 | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 300 | lean | /- page 77 -/
import standard
inductive weekday : Type :=
| sunday : weekday
| monday : weekday
| tuesday : weekday
| wednesday : weekday
| thursday : weekday
| friday : weekday
| saturday : weekday
-- BEGIN
check weekday.sunday
check weekday.monday
open weekday
check sunday
check monday
-- END
|
1bc28cbc0b5178f0f05123832d46d6b50ffdfc02 | fa02ed5a3c9c0adee3c26887a16855e7841c668b | /src/category_theory/sites/pretopology.lean | cd55d72aaa9d90048195f14ab5eb5fd42b71b7ef | [
"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 | 7,243 | 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.sites.grothendieck
/-!
# Grothendieck pretopologies
Definition and lemmas about Grothendieck pretopologies.
A Grothendieck pretopology for a cat... |
e67c1cc3521a9d1174a729fe907efa93a94f7a64 | 6432ea7a083ff6ba21ea17af9ee47b9c371760f7 | /src/lake/Lake/Build/Package.lean | 4ad252cc8275959db5f7b8be0d09f1846ea3b852 | [
"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,205 | lean | /-
Copyright (c) 2022 Mac Malone. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Mac Malone
-/
import Lake.Util.Sugar
import Lake.Build.Common
import Lake.Build.Targets
/-! # Package Facet Builds
Build function definitions for a package's builtin facets.
-/
open Syst... |
dc1ccb871dc024bd2acc0046589117c73fc42bb3 | 6432ea7a083ff6ba21ea17af9ee47b9c371760f7 | /tests/lean/run/492_lean3.lean | 9610cf1648ff1ac74ff24156840d07dc8b9ad4b0 | [
"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 | 761 | lean | class foo (α : Type) : Type := (f : α)
def foo.f' {α : Type} [c : foo α] : α := foo.f
#print foo.f -- def foo.f : {α : Type} → [self : foo α] → α
#print foo.f' -- def foo.f' : {α : Type} → [c : foo α] → α
variable {α : Type} [c : foo α]
#check c.f -- ok
#check c.f' -- ok
structure bar : Prop := (f : ∀ {m : Nat}, m... |
73bb59cbb3ca5dc1aa5186ff380381308c6d66ce | 900ff83b8a995f83b07c2fa0715d52fa265c4b9e | /library/init/data/nat/lemmas.lean | ec4b6a6e82c23505beed9ece3478b87f5786a69b | [
"Apache-2.0"
] | permissive | moritzbuhl/lean | b2ee98197f1c47255c647228c07c830b229ba766 | 89e98b56713c027afdf97ad96abd2d54b35a43d5 | refs/heads/master | 1,688,295,006,616 | 1,627,741,115,000 | 1,627,741,115,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 49,291 | 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, Jeremy Avigad
-/
prelude
import init.data.nat.basic init.data.nat.div init.meta init.algebra.functions
universes u
namespace nat
attribute [pre_smt] nat_zero... |
8eefc4b86a5069dbb6ce35b3dd72329a18dc6223 | 36938939954e91f23dec66a02728db08a7acfcf9 | /lean4/deps/galois_stdlib/src/Galois/Data/Array.lean | 267a94b4c19f7da731c9b8de6d23e2d0e3359fce | [] | no_license | pnwamk/reopt-vcg | f8b56dd0279392a5e1c6aee721be8138e6b558d3 | c9f9f185fbefc25c36c4b506bbc85fd1a03c3b6d | refs/heads/master | 1,631,145,017,772 | 1,593,549,019,000 | 1,593,549,143,000 | 254,191,418 | 0 | 0 | null | 1,586,377,077,000 | 1,586,377,077,000 | null | UTF-8 | Lean | false | false | 549 | lean | namespace Array
section
universe u
variables {α : Type u} [HasLess α] [DecidableRel (HasLess.Less : α → α → Prop)]
partial def ltAux (xs ys : Array α) : Nat → Bool
| n =>
if hxs : n < xs.size then
if hys : n < ys.size then
let xn := xs.get ⟨n, hxs⟩;
let yn := ys.get ⟨n, hys⟩;
if xn < yn then ... |
d2b3130f72f38d768dd7699c4c85b490b73c67d0 | 9dc8cecdf3c4634764a18254e94d43da07142918 | /src/ring_theory/polynomial/cyclotomic/eval.lean | 79c5b3ed040c463a0818a77af6f39df1738c453f | [
"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 | 15,963 | lean | /-
Copyright (c) 2021 Eric Rodriguez. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Eric Rodriguez
-/
import ring_theory.polynomial.cyclotomic.basic
import tactic.by_contra
import topology.algebra.polynomial
import number_theory.padics.padic_val
import analysis.compl... |
fede872b638f322c10a3d2c1e68e1d79e1095495 | ecad13897fdb44984cf1968424224d1750040236 | /lean/lean/examples/example05.elab.lean | 6e5f2f8317bff35709fe08274b86a8718cc08b4d | [] | no_license | MetaBorgCube/sdf3-demo | 4899159b1cfb0a95ae3af325035bbba8a1255477 | e831606d5b404eba75b087916a1162923143b98a | refs/heads/master | 1,609,472,086,310 | 1,553,380,857,000 | 1,553,380,857,000 | 59,577,395 | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 44 | lean | z -> (a : b) -> (c : d) -> e -> (f : H) -> y |
77d39e8362eb7a8b8aee8d264fd00d5989af21dd | a9fe717b93ccfa4b2e64faeb24f96dfefb390240 | /nat/rev.lean | 3e1d3847bf43755b0c95acf9ee3ae8718a263971 | [] | no_license | skbaek/omega | ab1f4a6daadfc8c855f14c39d9459ab841527141 | 715e384ed14e8eb177a326700066e7c98269e078 | refs/heads/master | 1,588,000,876,352 | 1,552,645,917,000 | 1,552,645,917,000 | 174,442,914 | 1 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 1,663 | lean | import ..tactic
open expr tactic
namespace nat
meta def is_form_aux : expr → bool
| `(¬ %% p) := is_form_aux p
| `(%% p ∨ %%q) := is_form_aux p && is_form_aux q
| `(%% p ∧ %%q) := is_form_aux p && is_form_aux q
| `(@eq nat _ _) := true
| `(@has_le.le nat _ _ _) := true
| _... |
4c87e9ec936807d7a085dd6bdb528efedf22144a | 19cc34575500ee2e3d4586c15544632aa07a8e66 | /src/topology/separation.lean | 01dfa1b7a33aa043da0116e968501496b100329d | [
"Apache-2.0"
] | permissive | LibertasSpZ/mathlib | b9fcd46625eb940611adb5e719a4b554138dade6 | 33f7870a49d7cc06d2f3036e22543e6ec5046e68 | refs/heads/master | 1,672,066,539,347 | 1,602,429,158,000 | 1,602,429,158,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 22,654 | 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
Separation properties of topological spaces.
-/
import topology.subset_properties
open set filter
open_locale topological_space filter
local attribute ... |
f6913c9c33c03fd3a71778a55825a8dcc0d24c37 | 968e2f50b755d3048175f176376eff7139e9df70 | /examples/pred_logic/unnamed_449.lean | 24e0697ef45d005e36259e23653b28ec4e152377 | [] | no_license | gihanmarasingha/mth1001_sphinx | 190a003269ba5e54717b448302a27ca26e31d491 | 05126586cbf5786e521be1ea2ef5b4ba3c44e74a | refs/heads/master | 1,672,913,933,677 | 1,604,516,583,000 | 1,604,516,583,000 | 309,245,750 | 1 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 447 | lean | variables (U : Type*) (P Q : U → Prop)
example : (∀ x, P x ∧ Q x) → (∀ y, Q y ∧ P y) :=
begin
intro h, -- Assume `h : ∀ x, P x ∧ Q x`. By `→` intro., it suffices to prove `∀ y, Q y ∧ P y`.
intro u, -- Assume `u : U`. By `∀` intro, it suffices to prove `Q u ∧ P u`.
rw and_comm, -- By commutativity of conjunction... |
d74bc8904676569b41abfd8f347817c187e41d02 | 76df16d6c3760cb415f1294caee997cc4736e09b | /lean/src/op/sym.lean | c49e365d008ead7ea7889e14e9d7acef26fad2e2 | [
"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 | 4,949 | lean | import ..cs.lang
import ..cs.sym
import .lang
import ..lib.dict
namespace op
namespace sym
open sym
open dictionary
section terms
inductive type : Type
| bool : type
| int : type
@[derive decidable_eq]
inductive var : type → Type
| mk : ∀ (t : type), ℕ → var t
@[derive decidable_eq]
inductive lit : type →... |
c26e5c60408232d7294b9f9a8fdd4abe31dfcac5 | d7189ea2ef694124821b033e533f18905b5e87ef | /galois/bool.lean | 1ab2794ced73b28f5d528639b9da72153664820f | [
"Apache-2.0"
] | permissive | digama0/lean-protocol-support | eaa7e6f8b8e0d5bbfff1f7f52bfb79a3b11b0f59 | cabfa3abedbdd6fdca6e2da6fbbf91a13ed48dda | refs/heads/master | 1,625,421,450,627 | 1,506,035,462,000 | 1,506,035,462,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 200 | lean | /- Basic theorems about bool -/
@[simp]
lemma coe_sort_bool_to_equality (b:bool) : @coe_sort _ coe_sort_bool b = (b = tt) :=
begin
cases b,
all_goals { simp [coe_sort, has_coe_to_sort.coe]},
end
|
4c54c640edbe86f53d4707275adb3302f6ff3ebb | 48f4f349e1bb919d14ab7e5921d0cfe825f4c423 | /folklore/gauge_integral.lean | 1c8f0e1ad6725b0ce3d10102cfad1458ee171d0a | [] | no_license | thalesant/formalabstracts-2017 | fdf4ff90d30ab1dcb6d4cf16a068a997ea5ecc80 | c47181342c9e41954aa8d41f5049965b5f332bca | refs/heads/master | 1,584,610,453,925 | 1,528,277,508,000 | 1,528,277,508,000 | 136,299,625 | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 3,122 | lean | -- Kurzweil-Henstock gauge integration in R^n
-- following HOL-Light
import data.set meta_data data.list data.vector
topology.real .complex algebra.big_operators algebra.module
noncomputable theory
open classical
open set vector nat real
local attribute [instance] prop_decidable
universe u
variable { α : Type u }... |
9a68602528b7a267d1901ca499068787bd468e26 | 80cc5bf14c8ea85ff340d1d747a127dcadeb966f | /src/tactic/core.lean | d85a2013ed8e359b390a42a1089a241987b77bdf | [
"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 | 89,540 | 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, Keeley Hoek
-/
import data.dlist.basic
import logic.function.basic
import control.basic
import meta.expr
import meta.rb_map
import data.boo... |
2325a0b241a30db197a2441e14f553907dfe3e80 | 0845ae2ca02071debcfd4ac24be871236c01784f | /library/init/lean/compiler/ir/simpcase.lean | 1c875d0c56321961759d0684bdd86b98f586e566 | [
"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 | 2,075 | 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.compiler.ir.basic
import init.lean.compiler.ir.format
namespace Lean
namespace IR
def ensureHasDefault (alts : Array Alt) : Array... |
b5d69c40f8e227d20d5f9357d73bdcf8342f1e38 | 8cae430f0a71442d02dbb1cbb14073b31048e4b0 | /src/control/fix.lean | aae0456ab23e64936e83c84ccaddfdb29193f6f6 | [
"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,355 | lean | /-
Copyright (c) 2020 Simon Hudon. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Simon Hudon
-/
import data.part
import data.nat.upto
import data.stream.defs
/-!
# Fixed point
> THIS FILE IS SYNCHRONIZED WITH MATHLIB4.
> Any changes to this file require a correspon... |
6a61811e184c77e6346ac69e01edfc10a8a1e173 | 6432ea7a083ff6ba21ea17af9ee47b9c371760f7 | /tests/lean/implicitLambdaIssue.lean | b789cd744b80a0222044fa4dd5c90bdf8faa5e0a | [
"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,242 | lean | class HasMem (α : outParam $ Type u) (β : Type v) where
mem : α → β → Prop
class PartialOrder (P : Type u) extends LE P where
refl (s : P) : s ≤ s
antisymm (s t : P) : s ≤ t → t ≤ s → s = t
trans (s t u : P) : s ≤ t → t ≤ u → s ≤ u
theorem LE.le.trans {P : Type _} [PartialOrder P] {x y z : P} : x ≤ y → y ≤ ... |
679b7a3f8c9f0950c91fa345e360a58d4e40dded | b5d813b41740060da28e55b77c69760b7c52760d | /lean_stuff_2.lean | 112016affa47be12f7f295f362b999d383155ce2 | [] | no_license | ImperialCollegeLondon/SF-solns-zak | 4e85518c5cd4093b995a7593eee8295887e8727e | 7edc4424938e01a6ef4bb518fa8ec1757a2226b1 | refs/heads/master | 1,584,849,829,155 | 1,533,216,269,000 | 1,533,216,269,000 | 139,470,368 | 3 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 5,711 | lean | namespace z
inductive nt: Type
| zero : nt
| succ : nt → nt
definition add_n : nt → nt → nt
| nt.zero x := x
| (nt.succ x) y := nt.succ (add_n x y)
definition product_n : nt → nt → nt
| x (nt.succ nt.zero) := x
| _ nt.zero := nt.zero
| x (nt.succ y) := add_n x (product_n x y)
definition eq_n : nt → nt → bool
| nt.z... |
039294e41dea8719c02d552490af8484dc353783 | 624f6f2ae8b3b1adc5f8f67a365c51d5126be45a | /tmp/new-frontend/parser/combinators.lean | 1a9a801f1dd69c22c74a1f2e565f53a633d3c9f2 | [
"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 | 10,623 | lean | /-
Copyright (c) 2018 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Author: Sebastian Ullrich
Syntax-tree creating Parser Combinators
-/
prelude
import init.lean.parser.basic
import init.data.list.instances
namespace Lean
namespace Parser
namespace Co... |
e54b82bc59e174e668653f66989bfb765419c2a6 | 94637389e03c919023691dcd05bd4411b1034aa5 | /src/inClassNotes/propositions/logical_operators.lean | d55441846c164065252994ee1f98f1a8c98117a0 | [] | 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 | 2,378 | lean | /-
When propositions are represented as types,
...
-/
/-
The proposition, false, is represented as
a empty type. False is a proposition (type)
with no proof (values). It's just like the
empty type we've already seen but it lives
in Sort 0 (Prop) rather than in any of the
Type universes. Again that has consequences
... |
9634d9372587263349a1c55fe1baa4bfa2f47320 | bb31430994044506fa42fd667e2d556327e18dfe | /src/analysis/special_functions/integrals.lean | efd34ff0461cc32d4004f7ee57fc3c2657d7c064 | [
"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 | 25,708 | lean | /-
Copyright (c) 2021 Benjamin Davidson. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Benjamin Davidson
-/
import measure_theory.integral.interval_integral
import analysis.special_functions.trigonometric.arctan_deriv
/-!
# Integration of specific interval integrals
... |
32476a3b92e2d516e598beed66ab456c53f9d177 | 618003631150032a5676f229d13a079ac875ff77 | /src/number_theory/bernoulli.lean | bc8a6d90962763bb39e942950d69008510999b04 | [
"Apache-2.0"
] | permissive | awainverse/mathlib | 939b68c8486df66cfda64d327ad3d9165248c777 | ea76bd8f3ca0a8bf0a166a06a475b10663dec44a | refs/heads/master | 1,659,592,962,036 | 1,590,987,592,000 | 1,590,987,592,000 | 268,436,019 | 1 | 0 | Apache-2.0 | 1,590,990,500,000 | 1,590,990,500,000 | null | UTF-8 | Lean | false | false | 3,000 | lean | /-
Copyright (c) 2020 Johan Commelin. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Johan Commelin
-/
import data.rat
import data.fintype.card
/-!
# Bernoulli numbers
The Bernoulli numbers are a sequence of numbers that frequently show up in number theory.
For exam... |
3ff291f403677bbb2546c79394867b7a3a147764 | c09f5945267fd905e23a77be83d9a78580e04a4a | /src/topology/metric_space/emetric_space.lean | 14f70862a1e74c0f7ae79426ac48e0b933913aa8 | [
"Apache-2.0"
] | permissive | OHIHIYA20/mathlib | 023a6df35355b5b6eb931c404f7dd7535dccfa89 | 1ec0a1f49db97d45e8666a3bf33217ff79ca1d87 | refs/heads/master | 1,587,964,529,965 | 1,551,819,319,000 | 1,551,819,319,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 31,717 | lean | /-
Copyright (c) 2015, 2017 Jeremy Avigad. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Extended metric spaces.
Authors: Jeremy Avigad, Robert Y. Lewis, Johannes Hölzl, Mario Carneiro, Sébastien Gouëzel
This file is devoted to the definition and study of `emetric_spaces`, i... |
545311221c1bdf7fa56407c536bdd8b29455da74 | 6432ea7a083ff6ba21ea17af9ee47b9c371760f7 | /src/Lean/Compiler/IR/UnboxResult.lean | e6c87338d0a891dd3ef306bebf15c3db2dee58d6 | [
"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 | 793 | lean | /-
Copyright (c) 2019 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Leonardo de Moura
-/
import Lean.Data.Format
import Lean.Compiler.IR.Basic
namespace Lean.IR.UnboxResult
builtin_initialize unboxAttr : TagAttribute ←
registerTagAttribute `... |
8a4f4096a39e053045826d134d1390549ebf617f | b7f22e51856f4989b970961f794f1c435f9b8f78 | /tests/lean/run/e7.lean | a6079b30cbe1164a76bd719ea2f7534dc36bcc00 | [
"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 | 736 | lean | prelude
precedence `+`:65
namespace nat
constant nat : Type.{1}
constant add : nat → nat → nat
infixl + := add
end nat
namespace int
open nat (nat)
constant int : Type.{1}
constant add : int → int → int
infixl + := add
constant of_nat : nat → int
attribute of_nat [coercion]
end int
open nat
open int
... |
48c93f7176762d872065437e6da544166bcc4d6c | 853df553b1d6ca524e3f0a79aedd32dde5d27ec3 | /src/topology/metric_space/basic.lean | ca5fe70f53571d86b8277d93afa241ee0e769bad | [
"Apache-2.0"
] | permissive | DanielFabian/mathlib | efc3a50b5dde303c59eeb6353ef4c35a345d7112 | f520d07eba0c852e96fe26da71d85bf6d40fcc2a | refs/heads/master | 1,668,739,922,971 | 1,595,201,756,000 | 1,595,201,756,000 | 279,469,476 | 0 | 0 | null | 1,594,696,604,000 | 1,594,696,604,000 | null | UTF-8 | Lean | false | false | 76,701 | lean | /-
Copyright (c) 2015, 2017 Jeremy Avigad. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Metric spaces.
Authors: Jeremy Avigad, Robert Y. Lewis, Johannes Hölzl, Mario Carneiro, Sébastien Gouëzel
Many definitions and theorems expected on metric spaces are already introduced o... |
80baca311177ea59341c69e8861e978e9c48c63c | 6432ea7a083ff6ba21ea17af9ee47b9c371760f7 | /tests/lean/binop_lazy.lean | 8c72a4a2b7d28b368275ca3167eb792b5031cfd4 | [
"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 | 560 | lean | def f : IO Unit :=
(do IO.println "case 1"; throw (IO.userError "failed"))
<|>
(do IO.println "case 2"; throw (IO.userError "failed"))
<|>
(do IO.println "case 3")
<|>
(let x := dbg_trace "hello"; 1
IO.println x)
#eval f -- should not print hello
instance : Coe (Id Unit) (Id (Array Unit)) where
coe... |
8c12e7809958621115c31faeebbe446014ea75d8 | fa02ed5a3c9c0adee3c26887a16855e7841c668b | /src/tactic/pi_instances.lean | 8ad72138cc829132b485edac3746f4a3dae1b50c | [
"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 | 2,019 | 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 order.basic
/-!
# `pi_instance`
Automation for creating instances of mathematical structures for pi types
-/
namespace tactic
open tactic.interactive
/-- Attempt... |
1c863e3467784e28a6ae8f3bf79cc8849b444a06 | 2eab05920d6eeb06665e1a6df77b3157354316ad | /src/algebra/group/defs.lean | 290e128b09307828bab6ccef438a0d3131562682 | [
"Apache-2.0"
] | permissive | ayush1801/mathlib | 78949b9f789f488148142221606bf15c02b960d2 | ce164e28f262acbb3de6281b3b03660a9f744e3c | refs/heads/master | 1,692,886,907,941 | 1,635,270,866,000 | 1,635,270,866,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 32,662 | lean | /-
Copyright (c) 2014 Jeremy Avigad. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Jeremy Avigad, Leonardo de Moura, Simon Hudon, Mario Carneiro
-/
import algebra.group.to_additive
import tactic.basic
/-!
# Typeclasses for (semi)groups and monoids
In this file we de... |
354d661780866dfc7695923c72a2d4d69dcb2f7b | acc85b4be2c618b11fc7cb3005521ae6858a8d07 | /analysis/measure_theory/outer_measure.lean | fc133528f23cf69c092c7e23e84b5cdd05441045 | [
"Apache-2.0"
] | permissive | linpingchuan/mathlib | d49990b236574df2a45d9919ba43c923f693d341 | 5ad8020f67eb13896a41cc7691d072c9331b1f76 | refs/heads/master | 1,626,019,377,808 | 1,508,048,784,000 | 1,508,048,784,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 13,248 | lean | /-
Copyright (c) 2017 Johannes Hölzl. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Johannes Hölzl
Outer measures -- overapproximations of measures
-/
import data.set order.galois_connection algebra.big_operators
analysis.ennreal analysis.limits
analys... |
a9e01482d006f40503a924fa18fc1d4bb66c09ae | b7f22e51856f4989b970961f794f1c435f9b8f78 | /hott/init/default.hlean | 249cd8376d106c0587b816d0f53f0811f6fc1688 | [
"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 | 944 | hlean | /-
Copyright (c) 2014 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Leonardo de Moura, Jakob von Raumer, Floris van Doorn
-/
prelude
import init.datatypes init.reserved_notation init.tactic init.logic
import init.bool init.num init.relation ini... |
083bdcddc7964d400414df7932763534ee3c827f | c3f2fcd060adfa2ca29f924839d2d925e8f2c685 | /tests/lean/t14.lean | fc566b95f0fb5e38f7bde4865d92ad87b91aa553 | [
"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 | 685 | lean | prelude namespace foo
constant A : Type.{1}
constant a : A
constant x : A
constant c : A
end foo
context
open foo (renaming a->b x->y) (hiding c)
check b
check y
check c -- Error
end
context
open foo (a x)
check a
check x
check c -- Error
end
context
open foo (a x) (hiding c) -- Error
end
... |
265ea04d0541bf5160d8fa673c5afc24edd8f373 | 49bd2218ae088932d847f9030c8dbff1c5607bb7 | /src/topology/bases.lean | fc56052cd9b138acf56e76127518c78507626919 | [
"Apache-2.0"
] | permissive | FredericLeRoux/mathlib | e8f696421dd3e4edc8c7edb3369421c8463d7bac | 3645bf8fb426757e0a20af110d1fdded281d286e | refs/heads/master | 1,607,062,870,732 | 1,578,513,186,000 | 1,578,513,186,000 | 231,653,181 | 0 | 0 | Apache-2.0 | 1,578,080,327,000 | 1,578,080,326,000 | null | UTF-8 | Lean | false | false | 16,300 | 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
Bases of topologies. Countability axioms.
-/
import topology.constructions data.set.countable
open set filter lattice classical
open_locale topologica... |
39c0ed61e0e546d46c7c53a7210e42e5f1a8b861 | 02005f45e00c7ecf2c8ca5db60251bd1e9c860b5 | /src/category_theory/limits/filtered_colimit_commutes_finite_limit.lean | ad6d27873702731ebc878e75792972d30b973de9 | [
"Apache-2.0"
] | permissive | anthony2698/mathlib | 03cd69fe5c280b0916f6df2d07c614c8e1efe890 | 407615e05814e98b24b2ff322b14e8e3eb5e5d67 | refs/heads/master | 1,678,792,774,873 | 1,614,371,563,000 | 1,614,371,563,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 13,451 | 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.colimit_limit
import category_theory.limits.shapes.finite_limits
/-!
# Filtered colimits commute with finite limits.
We show that for ... |
152cd4fd561e94e4bf345213da13b29f89fa80af | 6432ea7a083ff6ba21ea17af9ee47b9c371760f7 | /tests/lean/run/french_quote.lean | 029c834eda803e6ee22e19645b2b30652ded1725 | [
"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 | 393 | lean | theorem ex1 (p q : Prop) : p → q → p ∧ q := by
intros
apply And.intro
exact ‹p›
exact ‹q›
theorem ex2 (p q : Prop) : p → q → p ∧ q :=
fun _ _ => And.intro ‹p› ‹q›
theorem ex3 (p q : Prop) : p → q → p ∧ q :=
fun _ _ => ⟨‹p›, ‹q›⟩
theorem ex4 {a b c : Nat} : a = b → b = c → a = c :=
fun _ _ => Eq.trans ‹... |
76c3d8a69518c9c314fbdab1d9de5d8aa67c9390 | a9fe717b93ccfa4b2e64faeb24f96dfefb390240 | /list.lean | ad31e81b9d8685eede2864f488ea74ea4a908bb2 | [] | no_license | skbaek/omega | ab1f4a6daadfc8c855f14c39d9459ab841527141 | 715e384ed14e8eb177a326700066e7c98269e078 | refs/heads/master | 1,588,000,876,352 | 1,552,645,917,000 | 1,552,645,917,000 | 174,442,914 | 1 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 8,212 | lean | import data.list.basic .nat
import .simp_omega
variables {α β : Type}
namespace list
@[omega] def set [has_zero α] (i) : list α → ℕ → list α
| (j::is) 0 := i::is
| [] 0 := [i]
| (j::is) (k+1) := j::(set is k)
| [] (k+1) := 0::(set ([] : list α) k)
notation as `{` m `↦` a `}` := set a as m
lem... |
4dbff39c365a59df559efbbe609fa50e4d76d30e | fa02ed5a3c9c0adee3c26887a16855e7841c668b | /src/topology/algebra/group_with_zero.lean | 93e1ffa728e2dc71badeb3e1a52cc60589ee427a | [
"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 | 9,604 | lean | /-
Copyright (c) 2020 Yury G. Kudryashov. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Yury G. Kudryashov
-/
import topology.algebra.monoid
import algebra.group.pi
import algebra.group_with_zero.power
import topology.homeomorph
/-!
# Topological group with zero
In ... |
534245971dfa09c37a1141602db2c79bd63167f4 | 432d948a4d3d242fdfb44b81c9e1b1baacd58617 | /src/ring_theory/hahn_series.lean | 8c9be8fb0d31b15a700ff66319e2d7fe952bd38d | [
"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 | 36,021 | 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 order.well_founded_set
import algebra.big_operators.finprod
import ring_theory.valuation.basic
import algebra.module.pi
import ring_theory.power_series.basic
... |
e98e8ef6f6f96c4a407a532b4d69b5bb510543f8 | 7cef822f3b952965621309e88eadf618da0c8ae9 | /src/ring_theory/principal_ideal_domain.lean | 765a4df8007edd5a5f1a96a1565c6d4b53985356 | [
"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 | 6,807 | lean | /-
Copyright (c) 2018 Chris Hughes. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Author: Chris Hughes, Morenikeji Neri
-/
import algebra.euclidean_domain
import ring_theory.ideals ring_theory.noetherian ring_theory.unique_factorization_domain
variables {α : Type*}
open set... |
da9188881643465a5b8f73c1e8035849304f9b9d | d406927ab5617694ec9ea7001f101b7c9e3d9702 | /src/data/nat/cast/field.lean | 8a2bc498cf4df695b778085dc228ad3a4411587a | [
"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,309 | lean | /-
Copyright (c) 2014 Mario Carneiro. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Mario Carneiro, Yaël Dillies, Patrick Stevens
-/
import algebra.order.field.basic
import algebra.order.ring.char_zero
import data.nat.cast.basic
/-!
# Cast of naturals into fields
Th... |
e14d7454bbf22a0d4bc7054abd18494d22c3a072 | cf39355caa609c0f33405126beee2739aa3cb77e | /tests/lean/run/1163.lean | 52837a2cdbf583d6e99fd030a2e21d876370f169 | [
"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 | 220 | lean | inductive {u} Foo : Type → Type (u+1)
| mk : Π (X : Type), Foo X
| wrap : Π (X : Type), Foo X → Foo X
def rig : Π {X : Type}, Foo X → Foo X
| X (Foo.wrap .(X) foo) := foo
| X foo := foo
|
56aa6d89e1cd2ea631e2b46aa0ce5a1dfa0c8608 | 35677d2df3f081738fa6b08138e03ee36bc33cad | /src/category_theory/limits/shapes/binary_products.lean | ad5da48076ba74ad7c0a318792e21ed4b6114042 | [
"Apache-2.0"
] | permissive | gebner/mathlib | eab0150cc4f79ec45d2016a8c21750244a2e7ff0 | cc6a6edc397c55118df62831e23bfbd6e6c6b4ab | refs/heads/master | 1,625,574,853,976 | 1,586,712,827,000 | 1,586,712,827,000 | 99,101,412 | 1 | 0 | Apache-2.0 | 1,586,716,389,000 | 1,501,667,958,000 | Lean | UTF-8 | Lean | false | false | 11,041 | lean | /-
Copyright (c) 2019 Scott Morrison. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Scott Morrison
-/
import category_theory.limits.shapes.finite_products
import category_theory.limits.shapes.terminal
import category_theory.discrete_category
/-!
# Binary (co)products... |
91315d985993ac834d6af4bdad0542187c762588 | 6de8ea38e7f58ace8fbf74ba3ad0bf3b3d1d7ab5 | /solutions2/Problem3/solutions.lean | 0f2c9e89ea121d1504717a5bc020b08ffb0806d2 | [] | no_license | KinanBab/CS591K1-Labs | 72f4e2c7d230d4e4f548a343a47bf815272b1f58 | d4569bf99d20c22cd56721024688cda247d1447f | refs/heads/master | 1,587,016,758,873 | 1,558,148,366,000 | 1,558,148,366,000 | 165,329,114 | 5 | 2 | null | 1,550,689,848,000 | 1,547,252,664,000 | TeX | UTF-8 | Lean | false | false | 3,896 | lean | @[simp] def mylength : (list nat) -> nat
| list.nil := 0
| (list.cons h l') := 1 + mylength l'
-- Problem 3: reversing a list (35 points for full credit, total with all bonuses is 60 points)
-- Part A: implement a reverse functionality (5 points)
-- One of the common ways to reverse an array is to rely
-- on append
... |
89be5a2707d34c327a56e1c690b103ceefb5bbb0 | b7f22e51856f4989b970961f794f1c435f9b8f78 | /tests/lean/run/sub.lean | e9aa63a3d6859a615c93c94ada932e8c4ad1d4a6 | [
"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 | 148 | lean | import data.nat
open nat
notation `{` binders:55 `|` r:(scoped P, subtype P) `}` := r
check { x : nat | x > 0 }
check { (x : nat → nat) | true }
|
c48a1caf32791a19d35c0a02623279e72c22773c | 32025d5c2d6e33ad3b6dd8a3c91e1e838066a7f7 | /tests/lean/run/struct_inst_typed.lean | dcbd2d43c12ecc1151d73ed747ad32b079e57a9e | [
"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 | 199 | lean | #check { fst := 10, snd := 20 : Nat × Nat }
structure S :=
(x : Nat) (y : Bool) (z : String)
#check { x := 10, y := true, z := "hello" : S }
#check { fst := "hello", snd := "world" : Prod _ _ }
|
7150d7da16b53a00538048760a1f839d628578e6 | 737dc4b96c97368cb66b925eeea3ab633ec3d702 | /src/Lean/Meta/GeneralizeVars.lean | 22091d3ce24e030755aacb6d9db038fd90ea0ad6 | [
"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 | 2,973 | 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.Basic
import Lean.Util.CollectFVars
namespace Lean.Meta
/--
Add to `forbidden` all a set of `FVarId`s containing `targets` and all vari... |
2c48956a3f4f3a15467ef2704a3bbf445cc2d88a | d406927ab5617694ec9ea7001f101b7c9e3d9702 | /src/category_theory/preadditive/biproducts.lean | 90d9aa815d9f76576528e6a552a6d7eb1fc75e02 | [
"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 | 46,064 | 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.group.ext
import category_theory.limits.shapes.biproducts
import category_theory.limits.preserves.shapes.binary_products
import category_theory.limits.... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.