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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
d2f335ed0ef49e8ea27714bd1e64f601285916e0 | b328e8ebb2ba923140e5137c83f09fa59516b793 | /stage0/src/Lean/Util/Trace.lean | c1e5a416e3e9a90ae27998f7ac0e50a81bfabb7b | [
"Apache-2.0"
] | permissive | DrMaxis/lean4 | a781bcc095511687c56ab060e816fd948553e162 | 5a02c4facc0658aad627cfdcc3db203eac0cb544 | refs/heads/master | 1,677,051,517,055 | 1,611,876,226,000 | 1,611,876,226,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 5,519 | lean | /-
Copyright (c) 2018 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Sebastian Ullrich, Leonardo de Moura
-/
import Lean.Message
import Lean.MonadEnv
universe u
namespace Lean
open Std (PersistentArray)
structure TraceElem where
ref : Syntax... |
6acfe671989f8e112687f8c7bdf5acc495162d2a | fa02ed5a3c9c0adee3c26887a16855e7841c668b | /src/set_theory/game/state.lean | 784d1ee2cc473c2a89382a0c5717aeaea34117e7 | [
"Apache-2.0"
] | permissive | jjgarzella/mathlib | 96a345378c4e0bf26cf604aed84f90329e4896a2 | 395d8716c3ad03747059d482090e2bb97db612c8 | refs/heads/master | 1,686,480,124,379 | 1,625,163,323,000 | 1,625,163,323,000 | 281,190,421 | 2 | 0 | Apache-2.0 | 1,595,268,170,000 | 1,595,268,169,000 | null | UTF-8 | Lean | false | false | 8,424 | 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 set_theory.game.short
/-!
# Games described via "the state of the board".
We provide a simple mechanism for constructing combinatorial (pre-)games, by descri... |
160d55916b783806eb60a6847b952e1582f3d076 | c09f5945267fd905e23a77be83d9a78580e04a4a | /src/topology/stone_cech.lean | 075e80aed0e02f4fadf01dc35ecfe9ccdcc2510d | [
"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 | 10,706 | lean | /-
Copyright (c) 2018 Reid Barton. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Reid Barton
Construction of the Stone-Čech compactification using ultrafilters.
Parts of the formalization are based on "Ultrafilters and Topology"
by Marius Stekelenburg, particularly ... |
062d60dc87700c9a699e9f2132326e9abff21e23 | 8cb37a089cdb4af3af9d8bf1002b417e407a8e9e | /tests/lean/run/sebastien_coe_simp.lean | ff8c24ad43b65c672abc9a6eab4fd59a9ce6b2c8 | [
"Apache-2.0"
] | permissive | kbuzzard/lean | ae3c3db4bb462d750dbf7419b28bafb3ec983ef7 | ed1788fd674bb8991acffc8fca585ec746711928 | refs/heads/master | 1,620,983,366,617 | 1,618,937,600,000 | 1,618,937,600,000 | 359,886,396 | 1 | 0 | Apache-2.0 | 1,618,936,987,000 | 1,618,936,987,000 | null | UTF-8 | Lean | false | false | 541 | lean | variable (α : Type*)
structure my_equiv :=
(to_fun : α → α)
instance : has_coe_to_fun (my_equiv α) := ⟨_, my_equiv.to_fun⟩
def my_equiv1 : my_equiv α :=
{ to_fun := id }
def my_equiv2 : my_equiv α :=
{ to_fun := id }
@[simp] lemma one_eq_two : my_equiv1 α = my_equiv2 α := rfl
lemma other (x : ℕ) : my_equiv1 ℕ (x ... |
97f8a1090988f619a4389b5885165c43191622c5 | 6432ea7a083ff6ba21ea17af9ee47b9c371760f7 | /tests/elabissues/leaky_tmp_metavars2.lean | 519f5beace7d5937645e41818974d330dddd8998 | [
"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 | 2,036 | lean | /-
Here is an example where temporary metavariables from typeclass resolution
could spill into nested typeclass resolution, for which the outer TC succeeds
iff:
1. the inner TC is still called, even with the leaked tmp mvars
2. the inner TC is allowed to assign the leaked tmp mvars
This example will *NOT* work in Lea... |
ee59055fcfe124cea5002bacc7991547a9aa3f90 | 8cae430f0a71442d02dbb1cbb14073b31048e4b0 | /src/data/rat/big_operators.lean | faa9503277d6dbd77b1d918e566f92e7435fbef4 | [
"Apache-2.0"
] | permissive | leanprover-community/mathlib | 56a2cadd17ac88caf4ece0a775932fa26327ba0e | 442a83d738cb208d3600056c489be16900ba701d | refs/heads/master | 1,693,584,102,358 | 1,693,471,902,000 | 1,693,471,902,000 | 97,922,418 | 1,595 | 352 | Apache-2.0 | 1,694,693,445,000 | 1,500,624,130,000 | Lean | UTF-8 | Lean | false | false | 1,491 | 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, Mario Carneiro
-/
import data.rat.cast
import algebra.big_operators.basic
/-! # Casting lemmas for rational numbers involving sums and products
> THIS FILE IS SYNCHRO... |
35847c116141725fd6bc46e1dcd35342437bfb59 | 94e33a31faa76775069b071adea97e86e218a8ee | /src/category_theory/subobject/limits.lean | e880716772f180326c74f6a1cbc231617a2ee561 | [
"Apache-2.0"
] | permissive | urkud/mathlib | eab80095e1b9f1513bfb7f25b4fa82fa4fd02989 | 6379d39e6b5b279df9715f8011369a301b634e41 | refs/heads/master | 1,658,425,342,662 | 1,658,078,703,000 | 1,658,078,703,000 | 186,910,338 | 0 | 0 | Apache-2.0 | 1,568,512,083,000 | 1,557,958,709,000 | Lean | UTF-8 | Lean | false | false | 14,205 | lean | /-
Copyright (c) 2020 Scott Morrison. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Bhavik Mehta, Scott Morrison
-/
import category_theory.subobject.lattice
/-!
# Specific subobjects
We define `equalizer_subobject`, `kernel_subobject` and `image_subobject`, which ar... |
242b386d03bd3afab071a3f7d3e7ffeb77603894 | 4727251e0cd73359b15b664c3170e5d754078599 | /src/topology/sheaves/sheaf_of_functions.lean | 898392538653793b789b33c68a32051747258463 | [
"Apache-2.0"
] | permissive | Vierkantor/mathlib | 0ea59ac32a3a43c93c44d70f441c4ee810ccceca | 83bc3b9ce9b13910b57bda6b56222495ebd31c2f | refs/heads/master | 1,658,323,012,449 | 1,652,256,003,000 | 1,652,256,003,000 | 209,296,341 | 0 | 1 | Apache-2.0 | 1,568,807,655,000 | 1,568,807,655,000 | null | UTF-8 | Lean | false | false | 3,985 | lean | /-
Copyright (c) 2020 Scott Morrison. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Johan Commelin, Scott Morrison
-/
import category_theory.limits.shapes.types
import topology.sheaves.presheaf_of_functions
import topology.sheaves.sheaf_condition.unique_gluing
/-!
# ... |
6f77e54fb4f0cc2f992c065baf487a9718568e17 | bbecf0f1968d1fba4124103e4f6b55251d08e9c4 | /src/number_theory/pell.lean | 1fee2ef79f7f99fb1e698f57492a3b534e569839 | [
"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 | 37,677 | lean | /-
Copyright (c) 2017 Mario Carneiro. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Mario Carneiro
-/
import data.nat.modeq
import number_theory.zsqrtd.basic
/-!
# Pell's equation and Matiyasevic's theorem
This file solves Pell's equation, i.e. integer solutions to... |
a169c9497bb3e888517556010594ef0aec7e733f | 8cae430f0a71442d02dbb1cbb14073b31048e4b0 | /src/category_theory/abelian/images.lean | 84368319191fcfc4dea6acad2528ad218a0f6239 | [
"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,999 | lean | /-
Copyright (c) 2020 Markus Himmel. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Markus Himmel, Scott Morrison
-/
import category_theory.limits.shapes.kernels
/-!
# The abelian image and coimage.
> THIS FILE IS SYNCHRONIZED WITH MATHLIB4.
> Any changes to this fil... |
de8d8eff95e7c970e64585203a3d643cd6f0c642 | 4727251e0cd73359b15b664c3170e5d754078599 | /src/data/zmod/quotient.lean | da2352fce381c41f29ff8f01c94e60c4772f7743 | [
"Apache-2.0"
] | permissive | Vierkantor/mathlib | 0ea59ac32a3a43c93c44d70f441c4ee810ccceca | 83bc3b9ce9b13910b57bda6b56222495ebd31c2f | refs/heads/master | 1,658,323,012,449 | 1,652,256,003,000 | 1,652,256,003,000 | 209,296,341 | 0 | 1 | Apache-2.0 | 1,568,807,655,000 | 1,568,807,655,000 | null | UTF-8 | Lean | false | false | 3,670 | lean | /-
Copyright (c) 2021 Anne Baanen. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Anne Baanen
-/
import data.zmod.basic
import group_theory.quotient_group
import ring_theory.int.basic
/-!
# `zmod n` and quotient groups / rings
This file relates `zmod n` to the quotie... |
6f7dce90d6c159165a63ec981a57c68e7ce413b2 | a9d0fb7b0e4f802bd3857b803e6c5c23d87fef91 | /tests/lean/run/rb_map1.lean | a95d2109a503e77cd2617ffb7bdd1e1e748424c2 | [
"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 | 693 | lean | import system.IO
section
open nat_map
vm_eval size (insert (insert (mk nat) 10 20) 10 21)
meta_definition m := (insert (insert (insert (mk nat) 10 20) 5 50) 10 21)
vm_eval find m 10
vm_eval find m 5
vm_eval find m 8
vm_eval contains m 5
vm_eval contains m 8
open list
meta_definition m2 := of_list [((1:nat), "one"... |
fa5d2a17bbd3e1dc06184b2b8120bc678871b0a4 | 0845ae2ca02071debcfd4ac24be871236c01784f | /library/init/lean/projfns.lean | 9df48487ff3abd00056a17b235b60a2e64bb1a9c | [
"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,525 | 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.environment
namespace Lean
/- Given a structure `S`, Lean automatically creates an auxiliary definition (projection function)
... |
82f296977b792c13f21ca558e393d955ae3b61bc | d406927ab5617694ec9ea7001f101b7c9e3d9702 | /src/data/int/char_zero.lean | 3ce54c05a6f57de6016654cf51683b3b8c1dc5d2 | [
"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 | 1,544 | lean | /-
Copyright (c) 2017 Mario Carneiro. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Mario Carneiro
-/
import data.int.cast.field
/-!
# Injectivity of `int.cast` into characteristic zero rings and fields.
-/
variables {α : Type*}
open nat
namespace int
@[simp]
th... |
f5526bfeb2427d7a9e049fe0a20c3bfc6e8926da | 9be442d9ec2fcf442516ed6e9e1660aa9071b7bd | /src/Lean/Util/Trace.lean | 0830bdf510c68d595257f2178fa1fe6b99b090c1 | [
"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 | 7,327 | lean | /-
Copyright (c) 2018 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Sebastian Ullrich, Leonardo de Moura
-/
import Lean.Message
import Lean.MonadEnv
/-!
# Trace messages
Trace messages explain to the user what problem Lean solved and what step... |
edc9b661b3e0ce70bcf359a3952f8d42883789e8 | a0e23cfdd129a671bf3154ee1a8a3a72bf4c7940 | /src/Std/Data/PersistentArray.lean | 5ff7051e23ef84b956f4a0fa094410245ef9af8f | [
"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 | 13,821 | lean | /-
Copyright (c) 2019 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Leonardo de Moura
-/
universe u v w
namespace Std
inductive PersistentArrayNode (α : Type u) where
| node (cs : Array (PersistentArrayNode α)) : PersistentArrayNode α
| le... |
247fd1a543da345cde855be2dafd5ca04d4ba857 | 6432ea7a083ff6ba21ea17af9ee47b9c371760f7 | /tests/lean/run/typeAscImp.lean | 4322b0e9359ea19e4955886291c0341c425257b3 | [
"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 | 215 | lean | def Ctx := String → Type
abbrev State (Γ : Ctx) := {x : String} → Γ x
opaque p {Γ : Ctx} (s : State Γ) : Prop
theorem ex {Γ : Ctx} (s : State Γ) (h : (a : State Γ) → @p Γ a) : @p Γ s :=
h ‹_›
|
80b38a26e7d01044bb566d31c9f6d31c55bce6e9 | ddf69e0b8ad10bfd251aa1fb492bd92f064768ec | /src/category_theory/limits/cones.lean | c49953c3d640e0b6b698bd7045c23bd13c4122d7 | [
"Apache-2.0"
] | permissive | MaboroshiChan/mathlib | db1c1982df384a2604b19a5e1f5c6464c7c76de1 | 7f74e6b35f6bac86b9218250e83441ac3e17264c | refs/heads/master | 1,671,993,587,476 | 1,601,911,102,000 | 1,601,911,102,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 26,384 | lean | /-
Copyright (c) 2017 Scott Morrison. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Stephen Morgan, Scott Morrison, Floris van Doorn
-/
import category_theory.const
import category_theory.yoneda
import category_theory.reflects_isomorphisms
universes v u u' -- declare... |
2af3ae807c5dda7cb0b5f7078081088c0eba5db1 | e61a235b8468b03aee0120bf26ec615c045005d2 | /tests/lean/ctor_layout.lean | ae61cf7f62f680ee107f3d9f309495da176a37d3 | [
"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 | 632 | lean | import Init.Lean.Compiler.IR
open Lean
open Lean.IR
def tst : IO Unit :=
do env ← importModules [{module := `Init.Lean.Compiler.IR.Basic}];
ctorLayout ← IO.ofExcept $ getCtorLayout env `Lean.IR.Expr.reuse;
ctorLayout.fieldInfo.forM $ fun finfo => IO.println (format finfo);
IO.println "---";
ctorLayout ← IO... |
6762755edbaa2f43dc410c2113b0865dd8f70e7e | a45212b1526d532e6e83c44ddca6a05795113ddc | /src/data/bool.lean | 43d60f361abdde899ceb00942e816ca83db8d194 | [
"Apache-2.0"
] | permissive | fpvandoorn/mathlib | b21ab4068db079cbb8590b58fda9cc4bc1f35df4 | b3433a51ea8bc07c4159c1073838fc0ee9b8f227 | refs/heads/master | 1,624,791,089,608 | 1,556,715,231,000 | 1,556,715,231,000 | 165,722,980 | 5 | 0 | Apache-2.0 | 1,552,657,455,000 | 1,547,494,646,000 | Lean | UTF-8 | Lean | false | false | 4,294 | 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, Jeremy Avigad
-/
namespace bool
@[simp] theorem coe_sort_tt : coe_sort.{1 1} tt = true := eq_true_intro rfl
@[simp] theorem coe_sort_ff : coe_sort.{1 1} ff ... |
3fdaf181d7c44e4d085aee6975e663bf57e12fa5 | 5c5878e769950eabe897ad08485b3ba1a619cea9 | /src/categories/universal/kernels.lean | b20086d2d2e033ca9a16b400c176518d6fde888d | [
"Apache-2.0"
] | permissive | semorrison/lean-category-theory-pr | 39dc2077fcb41b438e61be1685e4cbca298767ed | 7adc8d91835e883db0fe75aa33661bc1480dbe55 | refs/heads/master | 1,583,748,682,010 | 1,535,111,040,000 | 1,535,111,040,000 | 128,731,071 | 1 | 2 | Apache-2.0 | 1,528,069,880,000 | 1,523,258,452,000 | Lean | UTF-8 | Lean | false | false | 3,025 | 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 categories.universal.instances
open category_theory
open category_theory.initial
namespace category_theory.universal
universes u v w
section
variables ... |
8e74d2450837c211de676f99c3a882d810525728 | 9b9a16fa2cb737daee6b2785474678b6fa91d6d4 | /src/category_theory/comma.lean | 58a4e37219426a727dc70c69b5c12d814194d344 | [
"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 | 11,561 | lean | -- Copyright (c) 2018 Scott Morrison. All rights reserved.
-- Released under Apache 2.0 license as described in the file LICENSE.
-- Authors: Scott Morrison, Johan Commelin
import category_theory.types
import category_theory.isomorphism
import category_theory.whiskering
import category_theory.opposites
import category... |
2c041ddab68d88553004d02d07ccfd4849f8fd2b | c777c32c8e484e195053731103c5e52af26a25d1 | /src/geometry/euclidean/angle/oriented/rotation.lean | 890777df7fb5ffe37abc172ad19e918bd9487613 | [
"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 | 20,736 | lean | /-
Copyright (c) 2022 Joseph Myers. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Joseph Myers, Heather Macbeth
-/
import analysis.special_functions.complex.circle
import geometry.euclidean.angle.oriented.basic
/-!
# Rotations by oriented angles.
This file defines r... |
000cf08d89e66dd317aa3f71cc3377ca8d9c3fd1 | 55c7fc2bf55d496ace18cd6f3376e12bb14c8cc5 | /src/topology/sheaves/presheaf_of_functions.lean | 55dfb85181dadaabca68c8dae2a83df23f0378d7 | [
"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 | 3,000 | 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 topology.sheaves.presheaf
import topology.category.TopCommRing
import topology.algebra.continuous_functions
universes v u
open category_theory
open topologic... |
5f2346317bd4b3f81578e564a5f8175ec0d5163f | f083c4ed5d443659f3ed9b43b1ca5bb037ddeb58 | /category/traversable/instances.lean | 690dde012d0362518bba9f8043924a516f5af8db | [
"Apache-2.0"
] | permissive | semorrison/mathlib | 1be6f11086e0d24180fec4b9696d3ec58b439d10 | 20b4143976dad48e664c4847b75a85237dca0a89 | refs/heads/master | 1,583,799,212,170 | 1,535,634,130,000 | 1,535,730,505,000 | 129,076,205 | 0 | 0 | Apache-2.0 | 1,551,697,998,000 | 1,523,442,265,000 | Lean | UTF-8 | Lean | false | false | 5,263 | lean | /-
Copyright (c) 2018 Simon Hudon. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Author: Simon Hudon
Instances of `traversable` for types from the core library
-/
import category.traversable.basic
category.basic
category.functor
category.applicative
uni... |
ce7bb82d58d35bb258109e6a97bf0a200bf8cf05 | 2eab05920d6eeb06665e1a6df77b3157354316ad | /src/measure_theory/constructions/borel_space.lean | 781446f33ff8a810f97ba4868abf3bdbd480dcba | [
"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 | 68,529 | 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 Kudryashov
-/
import measure_theory.function.ae_measurable_sequence
import analysis.complex.basic
import analysis.normed_space.finite_dimension
import topology.G_d... |
3f675aa0dabd8871a5388fc0d32e92d6dd8bf1e2 | cf39355caa609c0f33405126beee2739aa3cb77e | /tests/lean/format_macro.lean | f4906428642764d1cc8c89e3257186f6eab773ab | [
"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 | 404 | lean | #eval to_string $ format!"hi"
#eval to_string $ format! "hi"
#eval to_string $ format!"hi\nhi"
#eval to_string $ format!"{1}+{1}"
#eval to_string $ format!"{1+1}"
#eval to_string $ format!"{{{1+1}}}"
#eval to_string $ format!"a{1}"
#eval to_string $ format!"{1}a"
#eval to_string $ format!"}}"
#check λ α, format!"{α}"
... |
25953cf91654c7f8f0a5ad6755345571756d002f | e0f9ba56b7fedc16ef8697f6caeef5898b435143 | /src/analysis/analytic/basic.lean | 6d1b4182d33215e5e679c3b0a159be4d9c0136dd | [
"Apache-2.0"
] | permissive | anrddh/mathlib | 6a374da53c7e3a35cb0298b0cd67824efef362b4 | a4266a01d2dcb10de19369307c986d038c7bb6a6 | refs/heads/master | 1,656,710,827,909 | 1,589,560,456,000 | 1,589,560,456,000 | 264,271,800 | 0 | 0 | Apache-2.0 | 1,589,568,062,000 | 1,589,568,061,000 | null | UTF-8 | Lean | false | false | 38,036 | 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.times_cont_diff
import tactic.omega
import analysis.special_functions.pow
/-!
# Analytic functions
A function is analytic in one dime... |
b4ed311ff878858bd4a01a6f50710fe854d1c18e | b7f22e51856f4989b970961f794f1c435f9b8f78 | /library/data/finset/basic.lean | 1b2f6a2d4409c9ebd74477aa32497b4c5866d1ca | [
"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 | 28,582 | 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, Jeremy Avigad
Finite sets.
-/
import data.fintype.basic data.nat data.list.perm algebra.binary
open nat quot list subtype binary function eq.ops
open [decl] p... |
10212cfc5a32b218fa03f168d238d500d7a7c788 | 54d7e71c3616d331b2ec3845d31deb08f3ff1dea | /tests/lean/structure_instance_bug2.lean | 58510fb2f36053cc0f681763ce048cef809ebda9 | [
"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 | 213 | lean | def default_smt_pre_config : smt_pre_config := {}
def my_pre_config1 : smt_pre_config :=
{ default_smt_pre_config . zeta := tt }
def my_pre_config2 : smt_pre_config :=
{ default_smt_pre_config with zeta := tt }
|
74860a9af9c86f791144c90a18f3e96ede96f72f | 8cae430f0a71442d02dbb1cbb14073b31048e4b0 | /src/data/fintype/powerset.lean | 00d0d0f68ac524a20b47436ab313b2af559b0866 | [
"Apache-2.0"
] | permissive | leanprover-community/mathlib | 56a2cadd17ac88caf4ece0a775932fa26327ba0e | 442a83d738cb208d3600056c489be16900ba701d | refs/heads/master | 1,693,584,102,358 | 1,693,471,902,000 | 1,693,471,902,000 | 97,922,418 | 1,595 | 352 | Apache-2.0 | 1,694,693,445,000 | 1,500,624,130,000 | Lean | UTF-8 | Lean | false | false | 2,179 | lean | /-
Copyright (c) 2017 Mario Carneiro. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Mario Carneiro
-/
import data.fintype.card
import data.finset.powerset
/-!
# fintype instance for `set α`, when `α` is a fintype
> THIS FILE IS SYNCHRONIZED WITH MATHLIB4.
> Any chan... |
9cbedc33ecf22bb46d06dcc539140638931e5cdc | f98c49f30cbc7120b78f92246f22dedad3f11f62 | /lean/book/Logic_and_Proof/LP_04_Propositional_Logic_in_Lean.lean | e7e0d6d3cd703c2e0c730deef738b7c5069a85b3 | [
"Unlicense"
] | permissive | haroldcarr/learn-haskell-coq-ml-etc | 5a88bbbb0e0f435798ee9cab29d9e9da854174e2 | a7247caa22097573cbfa1e95fa81debeb146c12a | refs/heads/master | 1,683,755,751,897 | 1,682,914,556,000 | 1,682,914,556,000 | 12,350,346 | 36 | 9 | null | null | null | null | UTF-8 | Lean | false | false | 18,894 | lean | ------------------------------------------------------------------------------
-- 4.1 Expressions for Propositions and Proofs
-- Declare variables.
variables A B C D : Prop
-- Check the type of an expression.
#check A ∧ ¬ B → C
-- Declare that a hypothesis is true (in this case A ∨ ¬ B).
-- Any proposition can be vi... |
f4a591437436e478366bce5ba51c41c97eb8088d | fa02ed5a3c9c0adee3c26887a16855e7841c668b | /src/algebra/ordered_group.lean | 5268818f5ea8c3c6447f3e82edb32c46b490e9d8 | [
"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 | 36,485 | lean | /-
Copyright (c) 2016 Jeremy Avigad. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Jeremy Avigad, Leonardo de Moura, Mario Carneiro, Johannes Hölzl
-/
import algebra.ordered_monoid
/-!
# Ordered groups
This file develops the basics of ordered groups.
## Implementat... |
2eae61d86f4c6216a47ca4d2e02b27eccca99bb4 | 130c49f47783503e462c16b2eff31933442be6ff | /src/Lean/MetavarContext.lean | b39a987a567408a4fb20f10ec2fdcabacea1dd79 | [
"Apache-2.0"
] | permissive | Hazel-Brown/lean4 | 8aa5860e282435ffc30dcdfccd34006c59d1d39c | 79e6732fc6bbf5af831b76f310f9c488d44e7a16 | refs/heads/master | 1,689,218,208,951 | 1,629,736,869,000 | 1,629,736,896,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 54,588 | lean | /-
Copyright (c) 2019 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Leonardo de Moura
-/
import Lean.Util.MonadCache
import Lean.LocalContext
namespace Lean
/-
The metavariable context stores metavariable declarations and their
assignments. It... |
8d6324c9d299723397d1e9d76218f7c64a096d00 | 74addaa0e41490cbaf2abd313a764c96df57b05d | /Mathlib/analysis/complex/polynomial.lean | f386d4c8bee15b43573ee3a5b1c65ae2d3cc2489 | [] | 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 | 848 | lean | /-
Copyright (c) 2019 Chris Hughes All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Chris Hughes
-/
import Mathlib.PrePort
import Mathlib.Lean3Lib.init.default
import Mathlib.topology.algebra.polynomial
import Mathlib.analysis.special_functions.pow
import Mathlib.PostPor... |
9a356e5bd4b8e7b9517c0b42b7a7cfeff0031041 | 0845ae2ca02071debcfd4ac24be871236c01784f | /library/init/lean/compiler/ir/expandresetreuse.lean | 5d3ee581ae7c4c623ea935cd5ab41d4e13ac8c70 | [
"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 | 9,569 | 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.control.state
import init.control.reader
import init.lean.compiler.ir.compilerm
import init.lean.compiler.ir.normids
import init.lean.co... |
adab3a71cdabc7ea0caf0c450700929e87f07b73 | 12dabd587ce2621d9a4eff9f16e354d02e206c8e | /world10/level09.lean | 5620950a844723fadebea2d16ba2eeabd6fa811e | [] | no_license | abdelq/natural-number-game | a1b5b8f1d52625a7addcefc97c966d3f06a48263 | bbddadc6d2e78ece2e9acd40fa7702ecc2db75c2 | refs/heads/master | 1,668,606,478,691 | 1,594,175,058,000 | 1,594,175,058,000 | 278,673,209 | 0 | 1 | null | null | null | null | UTF-8 | Lean | false | false | 250 | lean | theorem le_total (a b : mynat) : a ≤ b ∨ b ≤ a :=
begin
revert a,
induction b with d hd,
intro a,
right,
exact zero_le _,
intro a,
cases a,
left,
exact zero_le _,
cases hd a,
left,
exact succ_le_succ _ _ h,
right,
exact succ_le_succ _ _ h,
end
|
2cacae85f93c08a6a662966f34d0872fb81d6976 | 0c1546a496eccfb56620165cad015f88d56190c5 | /library/init/meta/mk_dec_eq_instance.lean | 6d2daf019b772e0edec6324aa285e335c40bf81a | [
"Apache-2.0"
] | permissive | Solertis/lean | 491e0939957486f664498fbfb02546e042699958 | 84188c5aa1673fdf37a082b2de8562dddf53df3f | refs/heads/master | 1,610,174,257,606 | 1,486,263,620,000 | 1,486,263,620,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 5,281 | 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
Helper tactic for showing that a type has decidable equality.
-/
prelude
import init.meta.contradiction_tactic init.meta.constructor_tactic
import init.meta.i... |
3ac0e93ec2b730c18560dfc4c7d2c8b01c51bb54 | 05f637fa14ac28031cb1ea92086a0f4eb23ff2b1 | /tests/lean/simp19.lean | 16b4b83482313f858afa868d12c53048dede2fd6 | [
"Apache-2.0"
] | permissive | codyroux/lean0.1 | 1ce92751d664aacff0529e139083304a7bbc8a71 | 0dc6fb974aa85ed6f305a2f4b10a53a44ee5f0ef | refs/heads/master | 1,610,830,535,062 | 1,402,150,480,000 | 1,402,150,480,000 | 19,588,851 | 2 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 984 | lean | variable vec : Nat → Type
variable concat {n m : Nat} (v : vec n) (w : vec m) : vec (n + m)
infixl 65 ; : concat
axiom concat_assoc {n1 n2 n3 : Nat} (v1 : vec n1) (v2 : vec n2) (v3 : vec n3) :
(v1 ; v2) ; v3 = cast (to_heq (congr2 vec (symm (Nat::add_assoc n1 n2 n3))))
... |
c3c3ac15e61cde53748225781b238ae2acad22b4 | a9d0fb7b0e4f802bd3857b803e6c5c23d87fef91 | /tests/lean/run/private_names.lean | 708623a43c326f0e8862381c4440e48a8e3027aa | [
"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 | 186 | lean | namespace bla
section
private definition foo : inhabited Prop :=
inhabited.mk false
attribute foo [instance, priority 1000]
example : default Prop = false :=
rfl
end
end bla
|
cc05683047e5deaee199024b184e439c30de3e34 | a9d0fb7b0e4f802bd3857b803e6c5c23d87fef91 | /tests/lean/712.lean | 8b899e5661c0397fa09876aec0b28e92cd4b8628 | [
"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 | 455 | lean | reserve infix `~~~`:50
reserve notation `[` a `][` b:10 `]`
section
local infix `~~~` := eq
print notation ~~~
local infix `~~~`:50 := eq
print notation ~~~
local infix `~~~`:100 := eq
infix `~~~`:100 := eq -- FAIL
print notation ~~~
local notation `[` a `][`:10 b:20 `]` := a = b
print notation ][
end
notati... |
d108e23f7dda70376fc28beafeee56bfb32868d8 | 737dc4b96c97368cb66b925eeea3ab633ec3d702 | /src/Init/Notation.lean | 7226f97094a01654884b15c83391ce1690bb30a1 | [
"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 | 19,707 | 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
Notation for operators defined at Prelude.lean
-/
prelude
import Init.Prelude
-- DSL for specifying parser precedences and priorities
namespace Lean.Parser.... |
c1052143d2d3df2117b127319e64d8d58331dd16 | 4727251e0cd73359b15b664c3170e5d754078599 | /src/category_theory/category/Groupoid.lean | 5c4794374cef99c204d694086573bbea9c67bdb3 | [
"Apache-2.0"
] | permissive | Vierkantor/mathlib | 0ea59ac32a3a43c93c44d70f441c4ee810ccceca | 83bc3b9ce9b13910b57bda6b56222495ebd31c2f | refs/heads/master | 1,658,323,012,449 | 1,652,256,003,000 | 1,652,256,003,000 | 209,296,341 | 0 | 1 | Apache-2.0 | 1,568,807,655,000 | 1,568,807,655,000 | null | UTF-8 | Lean | false | false | 3,998 | lean | /-
Copyright (c) 2019 Yury Kudryashov. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Yury Kudryashov
-/
import category_theory.single_obj
import category_theory.limits.shapes.products
import category_theory.pi.basic
import category_theory.limits.is_limit
/-!
# Catego... |
2999bb4a1c7a0c966e37fa1b7c1f09ac54908e90 | 57c233acf9386e610d99ed20ef139c5f97504ba3 | /src/category_theory/is_connected.lean | 651c26884b19f311946ee33961e24717c593526c | [
"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 | 14,284 | 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 data.list.chain
import category_theory.punit
import category_theory.groupoid
/-!
# Connected category
Define a connected category as a _nonempty_ category for wh... |
ff5f8fd0637690da6a3abc864d27d6362ebf7e97 | 037dba89703a79cd4a4aec5e959818147f97635d | /src/2020/relations/equality_nonsense.lean | 68e220ba719a53010b68b8fc2c86b9130cd33eed | [] | no_license | ImperialCollegeLondon/M40001_lean | 3a6a09298da395ab51bc220a535035d45bbe919b | 62a76fa92654c855af2b2fc2bef8e60acd16ccec | refs/heads/master | 1,666,750,403,259 | 1,665,771,117,000 | 1,665,771,117,000 | 209,141,835 | 115 | 12 | null | 1,640,270,596,000 | 1,568,749,174,000 | Lean | UTF-8 | Lean | false | false | 304 | lean | import tactic
variables (α : Type) (x y z : α)
--set_option pp.notation false
example : x = x :=
begin
refl,
end
example : x = y → y = x :=
begin
intro h,
induction h,
refl,
end
example : x = y → y = z → x = z :=
begin
intro hxy,
intro hyz,
induction hxy,
assumption,
end
|
c43922452890c52d6e5214d52142a1828ffd6c86 | 6329dd15b8fd567a4737f2dacd02bd0e8c4b3ae4 | /src/game/world1/level15.lean | 6321dd034967ac66be4b7a89201f1eb5a4095d47 | [
"Apache-2.0"
] | permissive | agusakov/mathematics_in_lean_game | 76e455a688a8826b05160c16c0490b9e3d39f071 | ad45fd42148f2203b973537adec7e8a48677ba2a | refs/heads/master | 1,666,147,402,274 | 1,592,119,137,000 | 1,592,119,137,000 | 272,111,226 | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 565 | lean | import data.real.basic --imports the real numbers
import tactic.maths_in_lean_game -- hide
namespace calculating -- hide
/-
#Calculating
## Level 15: `calc` keyword
Now try proving the same theorem you proved in Level 14,
only this time using a more structured `calc` proof:
-/
variables a b c d : ℝ
/- Lemma : no-s... |
067c33af6ab4049623de1332dbb4b4b5e09fa02f | 271e26e338b0c14544a889c31c30b39c989f2e0f | /tests/lean/run/coroutine.lean | 3f4963860e0405b493a8747b8b45541e1ca339f8 | [
"Apache-2.0"
] | permissive | dgorokho/lean4 | 805f99b0b60c545b64ac34ab8237a8504f89d7d4 | e949a052bad59b1c7b54a82d24d516a656487d8a | refs/heads/master | 1,607,061,363,851 | 1,578,006,086,000 | 1,578,006,086,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 7,514 | lean | universes u v w r s
inductive coroutineResultCore (coroutine : Type (max u v w)) (α : Type u) (δ : Type v) (β : Type w) : Type (max u v w)
| done {} : β → coroutineResultCore
| yielded {} : δ → coroutine → coroutineResultCore
/--
Asymmetric coroutines `coroutine α δ β` takes inputs of Type `α`, yields element... |
131c3f8c3b4214bcf4d6a64db43d5fade699ed4a | 9dc8cecdf3c4634764a18254e94d43da07142918 | /src/linear_algebra/dual.lean | 48f3ddbfe73423c63c58d14707deb47a979315d8 | [
"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 | 30,597 | lean | /-
Copyright (c) 2019 Johan Commelin. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Johan Commelin, Fabian Glöckle
-/
import linear_algebra.finite_dimensional
import linear_algebra.projection
import linear_algebra.sesquilinear_form
import ring_theory.finiteness
import... |
5ac14a46515227c58e5d4a493ace43db0aa79c76 | 618003631150032a5676f229d13a079ac875ff77 | /src/data/array/lemmas.lean | 94662d68cde66a8c138e1a4aa440e0f0c66fe6d3 | [
"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 | 8,896 | 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 control.traversable.equiv
import data.vector2
universes u v w
namespace d_array
variables {n : ℕ} {α : fin n → Type u}
instance [∀... |
86c01e555d8c5f11cc7505ba5e2ac2d15eb9dfa9 | b3fced0f3ff82d577384fe81653e47df68bb2fa1 | /src/data/dfinsupp.lean | 771cc4f59b1914ca5875f1570c2d0e52bf848cf6 | [
"Apache-2.0"
] | permissive | ratmice/mathlib | 93b251ef5df08b6fd55074650ff47fdcc41a4c75 | 3a948a6a4cd5968d60e15ed914b1ad2f4423af8d | refs/heads/master | 1,599,240,104,318 | 1,572,981,183,000 | 1,572,981,183,000 | 219,830,178 | 0 | 0 | Apache-2.0 | 1,572,980,897,000 | 1,572,980,896,000 | null | UTF-8 | Lean | false | false | 32,085 | lean | /-
Copyright (c) 2018 Kenny Lau. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Johannes Hölzl, Kenny Lau
Dependent functions with finite support (see `data/finsupp.lean`).
-/
import data.finset data.set.finite algebra.big_operators algebra.module algebra.pi_instance... |
ae46d21f29a8129b8128ccc01d2247cc43a3924d | aac33c518959cd0633fdc254edbbf27b2f581c31 | /src/category_theory/adjunction.lean | 742a0e2a8a030a97f0bcc4f78ba47c5d09218bbe | [
"Apache-2.0"
] | permissive | digama0/mathlib-ITP2019 | 992c4f9ac02260fca4a14860813c3ecbd5ca1ae6 | 5cbd0362e04e671ef5db1284870592af6950197c | refs/heads/master | 1,588,517,123,478 | 1,554,081,078,000 | 1,554,081,078,000 | 178,686,466 | 2 | 1 | null | null | null | null | UTF-8 | Lean | false | false | 14,339 | lean | /-
Copyright (c) 2019 Reid Barton. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Reid Barton, Johan Commelin
-/
import category_theory.limits.preserves
import category_theory.whiskering
import category_theory.equivalence
namespace category_theory
open category
open ... |
70329e0243bd58fdf96c8c1b109584d93de0ab1f | 4efff1f47634ff19e2f786deadd394270a59ecd2 | /src/data/nat/sqrt.lean | f18b94c7054c6eaf25cca559e1b3bb649fb1981f | [
"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 | 6,995 | 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, Johannes Hölzl, Mario Carneiro
An efficient binary implementation of a (sqrt n) function that
returns s s.t.
s*s ≤ n ≤ s*s + s + s
-/
import data.int.bas... |
be99939b3c33341cd870151441cdfc5ab7305b04 | ea4aee6b11f86433e69bb5e50d0259e056d0ae61 | /src/tidy/tidy.lean | f70512db2e17ad9ad46b07f9068293930ec4195b | [] | no_license | timjb/lean-tidy | e18feff0b7f0aad08c614fb4d34aaf527bf21e20 | e767e259bf76c69edfd4ab8af1b76e6f1ed67f48 | refs/heads/master | 1,624,861,693,182 | 1,504,411,006,000 | 1,504,411,006,000 | 103,740,824 | 0 | 0 | null | 1,505,553,968,000 | 1,505,553,968,000 | null | UTF-8 | Lean | false | false | 6,042 | 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 .force .applicable .congr_assumptions .fsplit .automatic_induction .tidy_attributes .intro_at_least_one
import .monadic_chain
import .smt
import data.list... |
4c93674001bf9a0a5059a7074f348a4c2f6480ef | bf532e3e865883a676110e756f800e0ddeb465be | /analysis/measure_theory/outer_measure.lean | bf8b8e3989a9f42329d385b734f93e797c80d822 | [
"Apache-2.0"
] | permissive | aqjune/mathlib | da42a97d9e6670d2efaa7d2aa53ed3585dafc289 | f7977ff5a6bcf7e5c54eec908364ceb40dafc795 | refs/heads/master | 1,631,213,225,595 | 1,521,089,840,000 | 1,521,089,840,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 18,027 | 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... |
d29a8962e07af37e8fcc570fdfe3e0f4597a4923 | 26ac254ecb57ffcb886ff709cf018390161a9225 | /src/group_theory/perm/sign.lean | d8171d8c1451253c35535c20576f26f5b3b86d0f | [
"Apache-2.0"
] | permissive | eric-wieser/mathlib | 42842584f584359bbe1fc8b88b3ff937c8acd72d | d0df6b81cd0920ad569158c06a3fd5abb9e63301 | refs/heads/master | 1,669,546,404,255 | 1,595,254,668,000 | 1,595,254,668,000 | 281,173,504 | 0 | 0 | Apache-2.0 | 1,595,263,582,000 | 1,595,263,581,000 | null | UTF-8 | Lean | false | false | 32,264 | lean | /-
Copyright (c) 2018 Chris Hughes. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Chris Hughes
-/
import data.fintype.basic
import data.finset.sort
import algebra.group.conj
import algebra.big_operators
universes u v
open equiv function fintype finset
open_locale big... |
1bcf9cccce1157cafa3ffaa97000d20610f7439e | 618003631150032a5676f229d13a079ac875ff77 | /src/algebra/continued_fractions/basic.lean | 8d592235e0f05a3c1391eb985bf9f3072d232612 | [
"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 | 13,322 | lean | /-
Copyright (c) 2019 Kevin Kappelmann. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Kevin Kappelmann
-/
import data.seq.seq
import algebra.field
/-!
# Basic Definitions/Theorems for Continued Fractions
## Summary
We define generalised, simple, and regular continue... |
cf611d7afffc2f8d424721dc1b7a83ba625e17f4 | 5e3548e65f2c037cb94cd5524c90c623fbd6d46a | /src_icannos_totilas/applications_lineaires/cpge_applin_1_a.lean | e870fbec88e219c44f8e71bb67e3574eb54255db | [] | no_license | ahayat16/lean_exos | d4f08c30adb601a06511a71b5ffb4d22d12ef77f | 682f2552d5b04a8c8eb9e4ab15f875a91b03845c | refs/heads/main | 1,693,101,073,585 | 1,636,479,336,000 | 1,636,479,336,000 | 415,000,441 | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 296 | lean | import algebra.module.linear_map
import data.real.basic
def f (x y z : ℝ) : ℝ := x+y+2*z
theorem cpge_applin_1_a [module ℝ (prod ℝ (prod ℝ ℝ))] [E : set (prod ℝ ℝ)]:
∃ g : (linear_map ℝ (prod ℝ (prod ℝ ℝ)) ℝ),
∀ x y z : ℝ , (f x y z) = (g (x, y, z)) := sorry |
9d0349bdde791bd453ecde0f057dbdcce9267b67 | 31f556cdeb9239ffc2fad8f905e33987ff4feab9 | /src/Lean/Elab/Structure.lean | e60d2f575cd95e66d78e41bf9d9de404ba9eac61 | [
"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 | tobiasgrosser/lean4 | ce0fd9cca0feba1100656679bf41f0bffdbabb71 | ebdbdc10436a4d9d6b66acf78aae7a23f5bd073f | refs/heads/master | 1,673,103,412,948 | 1,664,930,501,000 | 1,664,930,501,000 | 186,870,185 | 0 | 0 | Apache-2.0 | 1,665,129,237,000 | 1,557,939,901,000 | Lean | UTF-8 | Lean | false | false | 45,472 | 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.Parser.Command
import Lean.Meta.Closure
import Lean.Meta.SizeOf
import Lean.Meta.Injective
import Lean.Meta.Structure
import Lean.Meta.AppBuilde... |
cd38c7656d3a6d7ee3f2850155f312662402bd68 | 5749d8999a76f3a8fddceca1f6941981e33aaa96 | /src/analysis/asymptotics.lean | 12e588d54d825e8a3186fece089f128b20576ef5 | [
"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 | 40,116 | lean | /-
Copyright (c) 2019 Jeremy Avigad. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Jeremy Avigad, Yury Kudryashov
-/
import analysis.normed_space.basic tactic.alias
/-!
# Asymptotics
We introduce these relations:
* `is_O_with c f g l` : "f is big O of g along l wi... |
d2db54dd6742bdf2022deaf7226445fa8c667b1a | d1bbf1801b3dcb214451d48214589f511061da63 | /src/combinatorics/simple_graph/basic.lean | 7a264a9dc80e4fd0d6a01abb199e537cd35b9419 | [
"Apache-2.0"
] | permissive | cheraghchi/mathlib | 5c366f8c4f8e66973b60c37881889da8390cab86 | f29d1c3038422168fbbdb2526abf7c0ff13e86db | refs/heads/master | 1,676,577,831,283 | 1,610,894,638,000 | 1,610,894,638,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 14,196 | lean | /-
Copyright (c) 2020 Aaron Anderson, Jalex Stark, Kyle Miller. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Author: Aaron Anderson, Jalex Stark, Kyle Miller, Alena Gusakov
-/
import data.fintype.basic
import data.sym2
/-!
# Simple graphs
This module defines simple graphs on... |
d1467a548939bd0ddcf0a10c0b19f182badd6693 | 94637389e03c919023691dcd05bd4411b1034aa5 | /src/zzz_junk/lang/assertion.lean | 898db95aebb05df6e8f1752e7dec730e239f3950 | [] | 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 | 354 | lean | import .imp
-- An assertion is a predicate on system state
def Assertion := env → Prop
-- What it means for program c to satisfy pre/post spec
def satisfies (c : cmd) (pre post : Assertion) :=
∀ (st st' : env),
pre st →
c_sem c st st' →
post st'
-- Hoare triple notation
notation pre {c} post := satisfies c... |
a3a0b95a348bef447a9599d68163a7ff6b54b7f5 | 63abd62053d479eae5abf4951554e1064a4c45b4 | /test/squeeze.lean | 097f39c666ebc65b22299ed1d1084bbed5627120 | [
"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 | 1,351 | lean | import data.nat.basic
import tactic.squeeze
import data.list.perm
namespace tactic
namespace interactive
setup_tactic_parser
/-- version of squeeze_simp that tests whether the output matches the expected output -/
meta def squeeze_simp_test
(key : parse cur_pos)
(slow_and_accurate : parse (tk "?")?)
(use_iota_e... |
636df6a09f2c4b2a16ae1f1a8e14ae8a628a7060 | b00eb947a9c4141624aa8919e94ce6dcd249ed70 | /src/Lean/Meta/LevelDefEq.lean | d6968678a515f13a86def09ed763c9dcd80c72d1 | [
"Apache-2.0"
] | permissive | gebner/lean4-old | a4129a041af2d4d12afb3a8d4deedabde727719b | ee51cdfaf63ee313c914d83264f91f414a0e3b6e | refs/heads/master | 1,683,628,606,745 | 1,622,651,300,000 | 1,622,654,405,000 | 142,608,821 | 1 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 11,174 | lean | /-
Copyright (c) 2019 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Leonardo de Moura
-/
import Lean.Util.CollectMVars
import Lean.Util.ReplaceExpr
import Lean.Meta.Basic
import Lean.Meta.InferType
namespace Lean.Meta
private partial def decAu... |
a14957e565ce2f4970db9ec7ff78d9c09945d2de | bbecf0f1968d1fba4124103e4f6b55251d08e9c4 | /src/topology/algebra/infinite_sum.lean | bb266a8a5917c41fa75b986d31b3e4428a08620a | [
"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 | 58,944 | 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 algebra.big_operators.intervals
import algebra.big_operators.nat_antidiagonal
import data.equiv.encodable.lattice
import topology.algebra.mul_action
import top... |
37548730f000b19fb6b1f5c2eacb1d1916fcaa62 | b9def12ac9858ba514e44c0758ebb4e9b73ae5ed | /src/monoidal_categories_reboot/dagger_category.lean | f0f7d379e61ad05cb67b3ec647c32e24fb6c938f | [
"Apache-2.0"
] | permissive | cipher1024/monoidal-categories-reboot | 5f826017db2f71920336331739a0f84be2f97bf7 | 998f2a0553c22369d922195dc20a20fa7dccc6e5 | refs/heads/master | 1,586,710,273,395 | 1,543,592,573,000 | 1,543,592,573,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 2,272 | lean | -- Copyright (c) 2018 Michael Jendrusch. All rights reserved.
import category_theory.category
import category_theory.functor
import category_theory.products
import category_theory.natural_isomorphism
import category_theory.tactics.obviously -- Give ourselves access to `rewrite_search`
import .slice_tactic
import .brai... |
9579452ab3bcbcdc4daa89afa2cc61b719045d66 | 30b012bb72d640ec30c8fdd4c45fdfa67beb012c | /field_theory/finite.lean | f1f85649d2c551b3eea0d776ac83240d06100a7e | [
"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 | 2,598 | lean | /-
Copyright (c) 2018 Chris Hughes. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Chris Hughes
-/
import group_theory.order_of_element data.nat.totient data.polynomial data.equiv.algebra
universes u v
variables {α : Type u} {β : Type v}
open function finse... |
0e73e4d603e33dc284b28f8813ebeeb47ba4af6a | 74addaa0e41490cbaf2abd313a764c96df57b05d | /Mathlib/category_theory/discrete_category_auto.lean | 935bd5091f316cbf37da41beab1264fbb6390b69 | [] | no_license | AurelienSaue/Mathlib4_auto | f538cfd0980f65a6361eadea39e6fc639e9dae14 | 590df64109b08190abe22358fabc3eae000943f2 | refs/heads/master | 1,683,906,849,776 | 1,622,564,669,000 | 1,622,564,669,000 | 371,723,747 | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 5,825 | lean | /-
Copyright (c) 2017 Scott Morrison. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Stephen Morgan, Scott Morrison, Floris van Doorn
-/
import Mathlib.PrePort
import Mathlib.Lean3Lib.init.default
import Mathlib.category_theory.eq_to_hom
import Mathlib.PostPort
univer... |
0d3cd30b1db2a5cecb9e6cf3eb03523d2f1dff3d | 94e33a31faa76775069b071adea97e86e218a8ee | /src/data/num/lemmas.lean | e37619a4f384467acbf84b43dd55d6477d964f87 | [
"Apache-2.0"
] | permissive | urkud/mathlib | eab80095e1b9f1513bfb7f25b4fa82fa4fd02989 | 6379d39e6b5b279df9715f8011369a301b634e41 | refs/heads/master | 1,658,425,342,662 | 1,658,078,703,000 | 1,658,078,703,000 | 186,910,338 | 0 | 0 | Apache-2.0 | 1,568,512,083,000 | 1,557,958,709,000 | Lean | UTF-8 | Lean | false | false | 53,511 | lean | /-
Copyright (c) 2014 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Mario Carneiro
-/
import data.num.bitwise
import data.int.char_zero
import data.nat.gcd
import data.nat.psub
/-!
# Properties of the binary representation of integers
-/
local... |
eb08f49dd00fd9986675b3c3a41e353ba3ebce6f | c5e5ea6e7fc63b895c31403f68dd2f7255916f14 | /src/export_json.lean | ace35d237f07133ffd61627915ec7be49c1647d3 | [
"Apache-2.0",
"OFL-1.1"
] | permissive | leanprover-community/doc-gen | c974f9d91ef6c1c51bbcf8e4b9cc9aa7cfb72307 | 097cc0926bb86982318cabde7e7cc7d5a4c3a9e4 | refs/heads/master | 1,679,268,657,882 | 1,677,623,140,000 | 1,677,623,140,000 | 223,945,837 | 20 | 20 | Apache-2.0 | 1,693,407,722,000 | 1,574,685,636,000 | Python | UTF-8 | Lean | false | false | 18,957 | lean | /-
Copyright (c) 2019 Robert Y. Lewis. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Author: Robert Y. Lewis
-/
import tactic.core system.io data.string.defs tactic.interactive data.list.sort
/-!
Used to generate a json file for html docs.
The json file is a list of maps, w... |
4893d4422132759066181b8d2a4e41623399ae8f | a0e23cfdd129a671bf3154ee1a8a3a72bf4c7940 | /stage0/src/Lean/Meta/ExprDefEq.lean | 0e41d1e243f9c4e096fa343bd855ebd12e7a76a0 | [
"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 | 58,496 | 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.ProjFns
import Lean.Structure
import Lean.Meta.WHNF
import Lean.Meta.InferType
import Lean.Meta.FunInfo
import Lean.Meta.LevelDefEq
import Lean.... |
b297ef64ce7c3035deef0532a9e6b33aadf6243d | 6e41ee3ac9b96e8980a16295cc21f131e731884f | /hott/algebra/category/basic.hlean | 7c991a26d4fd76d9aa79d106f194f80b131d2df4 | [
"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,319 | hlean | -- Copyright (c) 2014 Jakob von Raumer. All rights reserved.
-- Released under Apache 2.0 license as described in the file LICENSE.
-- Author: Jakob von Raumer
import ..precategory.basic ..precategory.morphism ..precategory.iso
open precategory morphism is_equiv eq truncation nat sigma sigma.ops
-- A category is a p... |
681219a7e56d83a191781c5c65273615c46cdbd5 | 761d983a78bc025071bac14a3facced881cf5e53 | /new_affine/monoid_with_monus.lean | 41d99b2ac53aa9128f5f50f26eadde0baeed66b0 | [] | no_license | rohanrajnair/affine_lib | bcf22ff892cf74ccb36a95bc9b7fff8e0adb2d0d | 83076864245ac547b9d615bc6a23804b1b4a8f70 | refs/heads/master | 1,673,320,928,343 | 1,603,036,653,000 | 1,603,036,653,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 442 | lean | import algebra.group.basic
instance : add_semigroup ℕ := ⟨has_add.add, nat.add_assoc⟩
instance : add_monoid ℕ := ⟨has_add.add, nat.add_assoc, nat.zero, nat.zero_add, nat.add_zero⟩
instance : add_comm_semigroup ℕ := ⟨has_add.add, nat.add_assoc, nat.add_comm⟩
instance : add_comm_monoid ℕ := ⟨has_add.add, nat.add_assoc,... |
3ddb860df660f5727688d2b277c9b693ebb3f557 | b00eb947a9c4141624aa8919e94ce6dcd249ed70 | /src/Lean/Data/Lsp/Extra.lean | 3f41b0ef3ebf782d2e9fb6422531a9a444cebacb | [
"Apache-2.0"
] | permissive | gebner/lean4-old | a4129a041af2d4d12afb3a8d4deedabde727719b | ee51cdfaf63ee313c914d83264f91f414a0e3b6e | refs/heads/master | 1,683,628,606,745 | 1,622,651,300,000 | 1,622,654,405,000 | 142,608,821 | 1 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 1,744 | lean | /-
Copyright (c) 2020 Marc Huisinga. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Marc Huisinga
-/
import Lean.Data.Json
import Lean.Data.JsonRpc
import Lean.Data.Lsp.Basic
/-!
This file contains Lean-specific extensions to LSP.
The following additional packets are... |
5681ee3aa932adf679d90bf8f42276825a08f93d | 8cae430f0a71442d02dbb1cbb14073b31048e4b0 | /src/measure_theory/measure/complex.lean | 3137af7de2b5404ed6406d7e0d7aef91a9bcb1b0 | [
"Apache-2.0"
] | permissive | leanprover-community/mathlib | 56a2cadd17ac88caf4ece0a775932fa26327ba0e | 442a83d738cb208d3600056c489be16900ba701d | refs/heads/master | 1,693,584,102,358 | 1,693,471,902,000 | 1,693,471,902,000 | 97,922,418 | 1,595 | 352 | Apache-2.0 | 1,694,693,445,000 | 1,500,624,130,000 | Lean | UTF-8 | Lean | false | false | 4,567 | lean | /-
Copyright (c) 2021 Kexing Ying. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Kexing Ying
-/
import measure_theory.measure.vector_measure
/-!
# Complex measure
> THIS FILE IS SYNCHRONIZED WITH MATHLIB4.
> Any changes to this file require a corresponding PR to ma... |
2615a6ba4c4e45246b4e68bb7264b6c734ceb27f | 57c233acf9386e610d99ed20ef139c5f97504ba3 | /src/combinatorics/simple_graph/connectivity.lean | c9269b94e62db65cd3acd5635f099050236ba4d4 | [
"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 | 15,189 | lean | /-
Copyright (c) 2021 Kyle Miller. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Kyle Miller
-/
import combinatorics.simple_graph.basic
/-!
# Graph connectivity
In a simple graph,
* A *walk* is a finite sequence of adjacent vertices, and can be
thought of equally... |
de0393b2e5d9e5f93c479c32316298db47e0f311 | 74addaa0e41490cbaf2abd313a764c96df57b05d | /Mathlib/data/string/basic_auto.lean | 3062f32e797af4288aacaf96b33a96ed1dd2019f | [] | 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,604 | lean | /-
Copyright (c) 2018 Mario Carneiro. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Author: Mario Carneiro
Supplementary theorems about the `string` type.
-/
import Mathlib.PrePort
import Mathlib.Lean3Lib.init.default
import Mathlib.data.list.basic
import Mathlib.data.char
im... |
503fe3fda417cc9f9d60aa4428e0f3529008501b | d406927ab5617694ec9ea7001f101b7c9e3d9702 | /src/geometry/euclidean/circumcenter.lean | cfc8ffd975221819015d8f332a4842da29fd53b8 | [
"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 | 40,715 | lean | /-
Copyright (c) 2020 Joseph Myers. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Joseph Myers
-/
import geometry.euclidean.basic
import linear_algebra.affine_space.finite_dimensional
import tactic.derive_fintype
/-!
# Circumcenter and circumradius
This file proves ... |
9a50b77a461edf9fdfbeb16dc91a13bfd0129a10 | 968e2f50b755d3048175f176376eff7139e9df70 | /examples/prop_logic_theory/unnamed_1876.lean | f954a00e3fbe234811faa793c04c01dd442072b5 | [] | 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 | 168 | lean | variables s t : Prop
-- BEGIN
theorem or_of_or (h : s ∨ t) : t ∨ s :=
begin
cases h with h₁ h₂,
{ exact or.inr h₁,},
{ exact or.inl h₂, },
end
-- END |
b4414d1a59103287928561ba49d7554c156693e1 | fa02ed5a3c9c0adee3c26887a16855e7841c668b | /src/topology/category/Profinite/as_limit.lean | 74bb0eca173966c1932e0f566bbe229013b9ee0a | [
"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,300 | lean | /-
Copyright (c) 2021 Adam Topaz. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Calle Sönne, Adam Topaz
-/
import topology.category.Profinite
import topology.discrete_quotient
/-!
# Profinite sets as limits of finite sets.
We show that any profinite set is isomorphi... |
1ce8f623032721fa28aba8976899ccf171c2c738 | 43390109ab88557e6090f3245c47479c123ee500 | /src/M1F/problem_bank/0205/Q0205.lean | 8d0d57a83b095dc5fb5fb39f37f057f0372d6c0c | [
"Apache-2.0"
] | permissive | Ja1941/xena-UROP-2018 | 41f0956519f94d56b8bf6834a8d39473f4923200 | b111fb87f343cf79eca3b886f99ee15c1dd9884b | refs/heads/master | 1,662,355,955,139 | 1,590,577,325,000 | 1,590,577,325,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 136 | lean | import data.real.basic
variables x y : ℝ
theorem Q5a : ∀x, ∃y, x+y=2 := sorry
theorem Q5b : ¬ (∃ y, ∀ x, x+y=2) := sorry
|
969f497c48b9ecb93e9aaf6557d171e43ef5ba23 | d406927ab5617694ec9ea7001f101b7c9e3d9702 | /src/computability/primrec.lean | 65a86d454f31d8f7b80f9047542198b1f05025a9 | [
"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 | 52,122 | 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 logic.equiv.list
import logic.function.iterate
/-!
# The primitive recursive functions
The primitive recursive functions are the least collection of function... |
ae4f5ea639448f9affa3686e789e1b665cb28d9d | 36938939954e91f23dec66a02728db08a7acfcf9 | /lean4/tests/Main.lean | 19d8ea886af34c38d845dd1a805415528a4f015f | [] | 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 | 908 | lean |
import Init.Data.RBMap
import Test.AnnotationParsing
import Test.Hex
import Test.JsonRoundtrip
import Test.LoadElf
import Test.SExp
import Test.SMTExport
namespace Test
def tests : RBMap String (IO UInt32) (λ x y => x < y) :=
RBMap.fromList
[("AnnotationParsing.lean", AnnotationParsing.test),
("Hex.lean", H... |
c5521ae2e9207c6e4f09f4697d2f3a36a087897c | d406927ab5617694ec9ea7001f101b7c9e3d9702 | /src/order/monovary.lean | fab9d802a4108cb26c96b352065f84b587c11d88 | [
"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 | 12,016 | lean | /-
Copyright (c) 2021 Yaël Dillies. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Yaël Dillies
-/
import data.set.basic
/-!
# Monovariance of functions
Two functions *vary together* if a strict change in the first implies a change in the second.
This is in some sen... |
f749d69f0ebdc4069dfcd45a94d63ed2c411a019 | 94e33a31faa76775069b071adea97e86e218a8ee | /src/measure_theory/probability_mass_function/monad.lean | b7cb1ed08a5e5a196b85ea0948619974b2ca1360 | [
"Apache-2.0"
] | permissive | urkud/mathlib | eab80095e1b9f1513bfb7f25b4fa82fa4fd02989 | 6379d39e6b5b279df9715f8011369a301b634e41 | refs/heads/master | 1,658,425,342,662 | 1,658,078,703,000 | 1,658,078,703,000 | 186,910,338 | 0 | 0 | Apache-2.0 | 1,568,512,083,000 | 1,557,958,709,000 | Lean | UTF-8 | Lean | false | false | 14,425 | lean | /-
Copyright (c) 2020 Devon Tuma. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Johannes Hölzl, Devon Tuma
-/
import measure_theory.probability_mass_function.basic
/-!
# Monad Operations for Probability Mass Functions
This file constructs two operations on `pmf` tha... |
048f21f436b7b20e5ed16d32fc502194a6a54548 | 94e33a31faa76775069b071adea97e86e218a8ee | /src/topology/locally_constant/basic.lean | 061d0cad2b9226e24f66ba69a5378033c8658f9d | [
"Apache-2.0"
] | permissive | urkud/mathlib | eab80095e1b9f1513bfb7f25b4fa82fa4fd02989 | 6379d39e6b5b279df9715f8011369a301b634e41 | refs/heads/master | 1,658,425,342,662 | 1,658,078,703,000 | 1,658,078,703,000 | 186,910,338 | 0 | 0 | Apache-2.0 | 1,568,512,083,000 | 1,557,958,709,000 | Lean | UTF-8 | Lean | false | false | 18,062 | lean | /-
Copyright (c) 2021 Johan Commelin. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Johan Commelin
-/
import topology.subset_properties
import topology.connected
import topology.algebra.monoid
import topology.continuous_function.basic
import tactic.tfae
import tactic.... |
c698b5011700f31bcaed52fb35ede41ea2cce7b1 | 9dd3f3912f7321eb58ee9aa8f21778ad6221f87c | /tests/lean/run/pack_unpack3.lean | 16a2b4da9b2352b8ba7cc746187501de21446044 | [
"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 | 997 | lean | inductive {u} vec (A : Type u) : nat -> Type u
| vnil : vec 0
| vcons : Pi (n : nat), A -> vec n -> vec (n+1)
inductive {u} tree (A : Type u) : Type u
| leaf : A -> tree
| node : Pi (n : nat), vec (list (list tree)) n -> tree
-- set_option trace.eqn_compiler true
constant {u} P {A : Type u} : tree A → Type
constant ... |
78a0451e1e0ae4357dc09e2d356e4e35b26fd31a | 57c233acf9386e610d99ed20ef139c5f97504ba3 | /src/probability_theory/integration.lean | 08d0ffff2d9ca0dafe911e17e4d43bacea584cf7 | [
"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 | 6,059 | lean | /-
Copyright (c) 2021 Martin Zinkevich. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Martin Zinkevich
-/
import measure_theory.integral.lebesgue
import probability_theory.independence
/-!
# Integration in Probability Theory
Integration results for independent rando... |
69bd5f731e3568a3d1e405bd05283aa6d97021a0 | 3dc4623269159d02a444fe898d33e8c7e7e9461b | /.github/workflows/geo/src/binary_products.lean | 432ee0e4c08feeef1f1f464fc3963b4eb7638520 | [] | 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 | 1,850 | 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.binary_products
universes v u
open category_theory category_theory.category category_theory.limits
namespace category_theory
vari... |
aa03759ecdda87f15ec787756fac4df2d9fde042 | 592ee40978ac7604005a4e0d35bbc4b467389241 | /Library/generated/mathscheme-lean/LeftBinaryInverse.lean | eea4c7f15d13eadb2b6bf22eb5afcc858e59f574 | [] | no_license | ysharoda/Deriving-Definitions | 3e149e6641fae440badd35ac110a0bd705a49ad2 | dfecb27572022de3d4aa702cae8db19957523a59 | refs/heads/master | 1,679,127,857,700 | 1,615,939,007,000 | 1,615,939,007,000 | 229,785,731 | 4 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 9,084 | lean | import init.data.nat.basic
import init.data.fin.basic
import data.vector
import .Prelude
open Staged
open nat
open fin
open vector
section LeftBinaryInverse
structure LeftBinaryInverse (A : Type) : Type :=
(linv : (A → (A → A)))
(rinv : (A → (A → A)))
(leftInverse : (∀ {x y : A} , (rinv (lin... |
40ab6bab3526049e5163a23b30f38d2a441a711b | 597e185014db6ce8a949dac0322798f11218338b | /src/kruskal_katona.lean | f48223302651a8e546d4187fe7581bcbfb4e4b37 | [] | no_license | b-mehta/lean-experiments | 58ce21c7106dfde163c236175fee30b341ba69ee | 5f0aed189f724ae6f739ec75dcdddcd2687614e1 | refs/heads/master | 1,598,987,002,293 | 1,576,649,380,000 | 1,576,649,380,000 | 219,032,370 | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 12,206 | lean | import data.finset
import data.fin
import data.rat
import data.nat.basic
import data.fintype
import algebra.big_operators
import algebra.group_power
import tactic.omega
import tactic.linarith
open fintype
variables {X : Type*}
variables [fintype X] [decidable_eq X]
variables {r : ℕ}
/-
Define a type for rsets, give... |
b850d944bc3f1ff6b939da03d5764ddd00f8a0b1 | 28b6e1a13d35e9b450f65c001660f4ec4713aa10 | /Search/Heuristic.lean | 15055413f412bad7c0556c485d916126c740d637 | [
"Apache-2.0"
] | permissive | dselsam/search | 14e3af3261a7a70f8e5885db9722b186f96fe1f5 | 67003b859d2228d291a3873af6279c1f61430c64 | refs/heads/master | 1,684,700,794,306 | 1,614,294,810,000 | 1,614,294,810,000 | 339,578,823 | 1 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 405 | lean | /-
Copyright (c) 2020 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Daniel Selsam
Simple best-first-search enumeration
-/
namespace Search
structure Scores : Type where
policy : Array Float
value : Float
deriving Repr
structure Heurist... |
5758e29cb9b805d96a8e8ed1e42a8d1f7e46ec39 | e030b0259b777fedcdf73dd966f3f1556d392178 | /tests/lean/interactive/complete.lean | 38a5d1305232d88a00b078ac5c51795e6768bedf | [
"Apache-2.0"
] | permissive | fgdorais/lean | 17b46a095b70b21fa0790ce74876658dc5faca06 | c3b7c54d7cca7aaa25328f0a5660b6b75fe26055 | refs/heads/master | 1,611,523,590,686 | 1,484,412,902,000 | 1,484,412,902,000 | 38,489,734 | 0 | 0 | null | 1,435,923,380,000 | 1,435,923,379,000 | null | UTF-8 | Lean | false | false | 250 | lean | prelude
inductive foo
example := foo
--^ "command": "complete"
@[reducible]
--^ "command": "complete", "skip_completions": true
example := foo
set_option trace.simplify true
--^ "command": "complete", "skip_completions": true
|
fae1dd01baa5bba6f3ed42d5ad1a6b8e74874e7f | 47181b4ef986292573c77e09fcb116584d37ea8a | /src/for_mathlib/degree.lean | 75c82d9b4a2bea68e5453912164c68ff12c3d96a | [
"MIT"
] | permissive | RaitoBezarius/berkovich-spaces | 87662a2bdb0ac0beed26e3338b221e3f12107b78 | 0a49f75a599bcb20333ec86b301f84411f04f7cf | refs/heads/main | 1,690,520,666,912 | 1,629,328,012,000 | 1,629,328,012,000 | 332,238,095 | 4 | 0 | MIT | 1,629,312,085,000 | 1,611,414,506,000 | Lean | UTF-8 | Lean | false | false | 3,268 | lean | import data.polynomial.basic
import data.polynomial.degree.definitions
lemma polynomial.nat_degree_eq_nat_degree {R} [semiring R] {p q: polynomial R}
(hpq: p.degree = q.degree): p.nat_degree = q.nat_degree :=
begin
apply le_antisymm,
exact polynomial.nat_degree_le_nat_degree (le_of_eq hpq),
exact polynomial.na... |
c1e134950e872f0692afdc92b89e908a440cb5fe | b7f22e51856f4989b970961f794f1c435f9b8f78 | /library/data/num.lean | aee6859ef291d471f2a8ba1765411f8170a7bba3 | [
"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 | 17,905 | 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 data.bool tools.helper_tactics
open bool eq.ops decidable helper_tactics
namespace pos_num
theorem succ_not_is_one (a : pos_num) : is_one (succ a) ... |
b0f038323cacbbbaf356e54b0bcac2e062501b60 | 57c233acf9386e610d99ed20ef139c5f97504ba3 | /src/algebra/punit_instances.lean | 146f01df54c792c30e1b1e0b30ddb66e1d796daf | [
"Apache-2.0"
] | permissive | robertylewis/mathlib | 3d16e3e6daf5ddde182473e03a1b601d2810952c | 1d13f5b932f5e40a8308e3840f96fc882fae01f0 | refs/heads/master | 1,651,379,945,369 | 1,644,276,960,000 | 1,644,276,960,000 | 98,875,504 | 0 | 0 | Apache-2.0 | 1,644,253,514,000 | 1,501,495,700,000 | Lean | UTF-8 | Lean | false | false | 4,461 | lean | /-
Copyright (c) 2019 Kenny Lau. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Kenny Lau
-/
import algebra.module.basic
import algebra.gcd_monoid.basic
import group_theory.group_action.defs
/-!
# Instances on punit
This file collects facts about algebraic structure... |
9ef404b0e1783043b0fbe0dde4ca7da44dfbef7c | 958488bc7f3c2044206e0358e56d7690b6ae696c | /lean/inductive.lean | 5eab5d41f1da8f3c93b83b2b35c2ffe6af728b64 | [] | 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 | 8,479 | lean | open tactic.interactive
inductive WeekDay : Type
| Sunday : WeekDay
| Monday : WeekDay
| Tuesday : WeekDay
| Wednesday : WeekDay
| Thursday : WeekDay
| Friday : WeekDay
| Saturday : WeekDay
--#check @WeekDay.Sunday
open WeekDay
--#check @Sunday
--#check @WeekDay.rec
--#check @WeekDay.rec_on
def numb... |
270d0922bd23910fa883730016c3799d76601232 | 6b10c15e653d49d146378acda9f3692e9b5b1950 | /examples/basic_skills/unnamed_473.lean | e6a9ff95603d7beb21a057fcfa6b639570959e5e | [] | no_license | gebner/mathematics_in_lean | 3cf7f18767208ea6c3307ec3a67c7ac266d8514d | 6d1462bba46d66a9b948fc1aef2714fd265cde0b | refs/heads/master | 1,655,301,945,565 | 1,588,697,505,000 | 1,588,697,505,000 | 261,523,603 | 0 | 0 | null | 1,588,695,611,000 | 1,588,695,610,000 | null | UTF-8 | Lean | false | false | 494 | lean | variables (R : Type*) [comm_ring R]
#check (add_assoc : ∀ a b c : R, a + b + c = a + (b + c))
#check (add_comm : ∀ a b : R, a + b = b + a)
#check (zero_add : ∀ a : R, 0 + a = a)
#check (add_left_neg : ∀ a : R, -a + a = 0)
#check (mul_assoc : ∀ a b c : R, a * b * c = a * (b * c))
#check (mul_one : ∀ a : R, a * 1 = a)
#... |
2dde986541e82202fbc10138422eb47b6e914d20 | 137c667471a40116a7afd7261f030b30180468c2 | /src/analysis/analytic/basic.lean | 9cbcf6fe88f31c9c3aaddad0a3819801bc067dd3 | [
"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 | 49,465 | 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, Yury Kudryashov
-/
import analysis.calculus.formal_multilinear_series
import analysis.specific_limits
/-!
# Analytic functions
A function is analytic in one dim... |
38bde402c5cf4a6b320eba50bd153b6f11b95817 | 1890046a4987fbd27f3f50dbac83f3ce095556d5 | /01_Equality/06_properties.lean | 3533227125b5910db63a0dfc01f2ec77702e7e95 | [] | no_license | kbhuynh/cs-dm | 9f335727d1779f7c3d9e8221a52b4c9c106659ba | 4041bd73618a49ef6870a1a80764e8947e60e768 | refs/heads/master | 1,585,353,017,958 | 1,536,055,215,000 | 1,536,055,215,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 5,032 | lean | /-
HOMEWORK: Read, complete, submit.
We've seen that equality is reflexive.
That is, everything is equal to itself.
It is also symmetric in the sense that
if any value, a, is equal to some other
value, b, i.e., if a = b, then b is also
equal to a, i.e., b = a.
What this means is we have an inference
rule that bot... |
ee68d5fbc1e426bce87d85ce63a1adeb32d06096 | 35677d2df3f081738fa6b08138e03ee36bc33cad | /src/measure_theory/set_integral.lean | ceba7c4f974e695137e42e56693995be2979ce78 | [
"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 | 14,967 | lean | /-
Copyright (c) 2020 Zhouhang Zhou. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Zhouhang Zhou
-/
import measure_theory.bochner_integration
import measure_theory.indicator_function
import measure_theory.lebesgue_measure
/-!
# Set integral
Integrate a function ove... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.