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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
6512a712cc4e65e397d9a94e6068c6c02dd2b7cc | 8b9f17008684d796c8022dab552e42f0cb6fb347 | /tests/lean/hott/443_b.hlean | d78102bde9026b607a89923e32ba6b33f1cbd8d3 | [
"Apache-2.0"
] | permissive | chubbymaggie/lean | 0d06ae25f9dd396306fb02190e89422ea94afd7b | d2c7b5c31928c98f545b16420d37842c43b4ae9a | refs/heads/master | 1,611,313,622,901 | 1,430,266,839,000 | 1,430,267,083,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 578 | hlean | import algebra.groupoid algebra.group
open eq sigma unit category path_algebra equiv
set_option pp.implicit true
set_option pp.universes true
set_option pp.notation false
section
parameters {D₀ : Type} [C : precategory D₀]
{D₂ : Π ⦃a b c d : D₀⦄ (f : hom a b) (g : hom c d)
(h : hom a c) (i : hom b d), Typ... |
9769d44701973d407280c511e15eb4973fb795e5 | 900ff83b8a995f83b07c2fa0715d52fa265c4b9e | /library/init/data/int/basic.lean | 4ffe5a658b2ef11b7c915c2f91c9d09336f052da | [
"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 | 23,227 | lean | /-
Copyright (c) 2016 Jeremy Avigad. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Jeremy Avigad
The integers, with addition, multiplication, and subtraction.
-/
prelude
import init.data.nat.lemmas init.data.nat.gcd
open nat
/- the type, coercions, and notation -/
... |
0cd93c572af2b385cf4570f1708e487d893e6401 | 1a61aba1b67cddccce19532a9596efe44be4285f | /tests/lean/fold.lean | 4d88f2ea8246a8dc1da9404d8d91a654155d8b72 | [
"Apache-2.0"
] | permissive | eigengrau/lean | 07986a0f2548688c13ba36231f6cdbee82abf4c6 | f8a773be1112015e2d232661ce616d23f12874d0 | refs/heads/master | 1,610,939,198,566 | 1,441,352,386,000 | 1,441,352,494,000 | 41,903,576 | 0 | 0 | null | 1,441,352,210,000 | 1,441,352,210,000 | null | UTF-8 | Lean | false | false | 985 | lean | prelude
definition Prop := Type.{0} inductive true : Prop := intro : true inductive false : Prop constant num : Type
inductive prod (A B : Type) := mk : A → B → prod A B infixl `×`:30 := prod
variables a b c : num
section
local notation `(` t:(foldr `,` (e r, prod.mk e r)) `)` := t
check (a, false, b, true, c)
s... |
b27d81f52f56f92327d9bc743a0ee81b030e1bd7 | 6432ea7a083ff6ba21ea17af9ee47b9c371760f7 | /tests/lean/or_shortcircuit.lean | 9074bf76f326da01be773760089c7eba4a949539 | [
"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 | 430 | lean | @[noinline] def c1 (x : Nat) : Bool :=
dbg_trace "executed c1"
x == 0
@[noinline] def c2 (x : Nat) : Bool :=
dbg_trace "executed c2"
x == 0
@[noinline] def c3 (x : Nat) : Bool :=
dbg_trace "executed c3"
x > 0
@[noinline] def f (x : Nat) := x + 1
def tst (x : Nat) : Nat := Id.run <| do
let x := if !c1 ... |
b609c787a7ac6b80984cd372bd6881123de616e2 | 947b78d97130d56365ae2ec264df196ce769371a | /stage0/src/Lean/Elab/Alias.lean | 3a682f5741f8375c1a8e1ea008aa0cac04a5eeee | [
"Apache-2.0"
] | permissive | shyamalschandra/lean4 | 27044812be8698f0c79147615b1d5090b9f4b037 | 6e7a883b21eaf62831e8111b251dc9b18f40e604 | refs/heads/master | 1,671,417,126,371 | 1,601,859,995,000 | 1,601,860,020,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 1,534 | 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.Environment
namespace Lean
/-!
We use aliases to implement the `export <id> (<id>+)` command.
An `export A (x)` in the namespace `B` produ... |
ff8bba644c20d6fa83e7f81a94cb53cd7f95614a | 4727251e0cd73359b15b664c3170e5d754078599 | /src/geometry/manifold/derivation_bundle.lean | fadbf3a1350f78acce060c94abf001db7cf7289f | [
"Apache-2.0"
] | permissive | Vierkantor/mathlib | 0ea59ac32a3a43c93c44d70f441c4ee810ccceca | 83bc3b9ce9b13910b57bda6b56222495ebd31c2f | refs/heads/master | 1,658,323,012,449 | 1,652,256,003,000 | 1,652,256,003,000 | 209,296,341 | 0 | 1 | Apache-2.0 | 1,568,807,655,000 | 1,568,807,655,000 | null | UTF-8 | Lean | false | false | 6,338 | lean | /-
Copyright © 2020 Nicolò Cavalleri. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Nicolò Cavalleri
-/
import geometry.manifold.algebra.smooth_functions
import ring_theory.derivation
/-!
# Derivation bundle
In this file we define the derivations at a point of a m... |
c12a98e95f408ccc2030a5c5b9fdb90e796aad1c | 4fa118f6209450d4e8d058790e2967337811b2b5 | /src/for_mathlib/uniform_space/group_basis.lean | 9867f02ddd2124febbb200fd1c54a77b6dac5582 | [
"Apache-2.0"
] | permissive | leanprover-community/lean-perfectoid-spaces | 16ab697a220ed3669bf76311daa8c466382207f7 | 95a6520ce578b30a80b4c36e36ab2d559a842690 | refs/heads/master | 1,639,557,829,139 | 1,638,797,866,000 | 1,638,797,866,000 | 135,769,296 | 96 | 10 | Apache-2.0 | 1,638,797,866,000 | 1,527,892,754,000 | Lean | UTF-8 | Lean | false | false | 2,000 | lean | import topology.uniform_space.cauchy
import topology.algebra.uniform_group
import for_mathlib.topological_groups
open filter set
local infixr ` ×ᶠ `:51 := filter.prod
local notation `𝓤` := uniformity
local notation `𝓝` x:70 := nhds x
section
open tactic
meta def clean_step : tactic unit :=
do tgt ← target,
matc... |
9f3fa178cd307df8921de377666606402496253f | 618003631150032a5676f229d13a079ac875ff77 | /test/protec_proj.lean | 5aa0b17890877276505be1bca1e4bdcf41faaad8 | [
"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 | 501 | lean | /-
Copyright (c) 2020 Chris Hughes. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Chris Hughes
-/
import tactic.protected
open tactic
@[protect_proj without baz bar] structure foo : Type :=
(bar : unit) (baz : unit) (qux : unit)
open foo
#check bar
#check foo.qux... |
5fb4c52285fc35cfa67625ca38f27372c30a33d9 | 63abd62053d479eae5abf4951554e1064a4c45b4 | /src/category_theory/monad/limits.lean | fd9670ea2d02b830102b3c4b85717f8cd0ab5626 | [
"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 | 9,990 | lean | /-
Copyright (c) 2019 Scott Morrison. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Scott Morrison, Bhavik Mehta
-/
import category_theory.monad.adjunction
import category_theory.adjunction.limits
namespace category_theory
open category
open category_theory.limits
u... |
d2065e7b071e6f4f9c712ba3a75dff5fd505a1e2 | 947b78d97130d56365ae2ec264df196ce769371a | /tests/lean/matchErrorLocation.lean | f188cbff11dbf22c5055e5571a061f4abce5aaf8 | [
"Apache-2.0"
] | permissive | shyamalschandra/lean4 | 27044812be8698f0c79147615b1d5090b9f4b037 | 6e7a883b21eaf62831e8111b251dc9b18f40e604 | refs/heads/master | 1,671,417,126,371 | 1,601,859,995,000 | 1,601,860,020,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 119 | lean | new_frontend
def head {α} (xs : List α) (h : xs = [] → False) : α :=
match he:xs with
| [] => h he
| x::_ => x
|
4f5bd499bdd1288d81ab6c3bff618f82ee9a8cf8 | 785b41b0993f39cbfa9b02fe0940ce3f2f51a57d | /conf/all6.lean | 64f6081f1f8a10b3bc498768151f8c0dbf6b60b3 | [
"MIT"
] | permissive | loso3000/OpenWrt-DIY-1 | 75b0d70314d703203508218a29acefc3b914d32d | 5858be81ee44199908cbaa1a752b17505c9834e8 | refs/heads/main | 1,690,532,461,283 | 1,631,008,241,000 | 1,631,008,241,000 | 354,817,508 | 1 | 0 | MIT | 1,617,623,493,000 | 1,617,623,492,000 | null | UTF-8 | Lean | false | false | 17,129 | lean | CONFIG_TARGET_x86=y
CONFIG_TARGET_x86_64=y
CONFIG_TARGET_x86_64_DEVICE_generic=y
# 设置固件大小
CONFIG_TARGET_KERNEL_PARTSIZE=64
CONFIG_TARGET_ROOTFS_PARTSIZE=1516
# EFI支持:
CONFIG_GRUB_IMAGES=y
CONFIG_EFI_IMAGES=y
# CONFIG_VMDK_IMAGES is not set
# 不压缩efi
CONFIG_TARGET_ROOTFS_TARGZ=n
# CONFIG_TARGET_IMAGES_GZIP is not set
#... |
940f5e70da2aeaa1c0cd967108cc2c8ac24ec0b0 | 74addaa0e41490cbaf2abd313a764c96df57b05d | /Mathlib/control/traversable/default_auto.lean | b3248a5facd97afec3815d0e5b582a415bbcc503 | [] | 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 | 202 | lean | import Mathlib.PrePort
import Mathlib.Lean3Lib.init.default
import Mathlib.control.traversable.instances
import Mathlib.control.traversable.lemmas
import Mathlib.PostPort
namespace Mathlib
end Mathlib |
ba1a79b014da0d64ac54c470d4016fbc7738208c | 0c1546a496eccfb56620165cad015f88d56190c5 | /library/init/data/nat/basic.lean | fb6d3dbec2dbf15ceb6be9caca27161011d74de2 | [
"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 | 4,377 | lean | /-
Copyright (c) 2014 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Floris van Doorn, Leonardo de Moura
-/
prelude
import init.logic init.data.num.basic
notation `ℕ` := nat
namespace nat
inductive less_than_or_equal (a : ℕ) : ℕ → Prop
| refl ... |
a9a9ab99903559a52ead2f0c1958c1ffa6b67cd2 | 097294e9b80f0d9893ac160b9c7219aa135b51b9 | /instructor/propositional_logic/satisfiability/propositional_logic_syntax_and_semantics.lean | 5340f96e6212f09c692d57531136fd5333812829 | [] | no_license | AbigailCastro17/CS2102-Discrete-Math | cf296251be9418ce90206f5e66bde9163e21abf9 | d741e4d2d6a9b2e0c8380e51706218b8f608cee4 | refs/heads/main | 1,682,891,087,358 | 1,621,401,341,000 | 1,621,401,341,000 | 368,749,959 | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 1,390 | lean |
/-
Syntax, abstract and concrete, and semantics, of propositional logic.
Import this file's definitions use this language and associated tools.
-/
/-
VARIABLES
-/
inductive var : Type
| mk : ℕ → var
/-
ABSTRACT SYNTAX
-/
inductive pExp : Type
| pTrue : pExp
| pFalse : pExp
| pVar : var → pExp
| pNot : pExp → pEx... |
6194d0de4484ecb2054a61fd465465a4807577fa | 82e44445c70db0f03e30d7be725775f122d72f3e | /src/ring_theory/subring.lean | 37840f7ddbc87b94c0cd9740a776e34f2cd32bae | [
"Apache-2.0"
] | permissive | stjordanis/mathlib | 51e286d19140e3788ef2c470bc7b953e4991f0c9 | 2568d41bca08f5d6bf39d915434c8447e21f42ee | refs/heads/master | 1,631,748,053,501 | 1,627,938,886,000 | 1,627,938,886,000 | 228,728,358 | 0 | 0 | Apache-2.0 | 1,576,630,588,000 | 1,576,630,587,000 | null | UTF-8 | Lean | false | false | 36,046 | lean | /-
Copyright (c) 2020 Ashvni Narayanan. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Ashvni Narayanan
-/
import group_theory.subgroup
import ring_theory.subsemiring
/-!
# Subrings
Let `R` be a ring. This file defines the "bundled" subring type `subring R`, a type
... |
c964f9ca6506e8719780921f49c9599fbc2f2b73 | f68c8823d8ddc719de8a4513815174aa7408ac4a | /lean_resolutions/PUZ133=2.lean | df6246eb939c3cfe8a3b0ffdcc338d9c71777ef5 | [] | no_license | FredsoNerd/tptp-lean-puzzles | e7ea66a0de9aa3cb7cc7480299f01adf885440a6 | 43d4d77524e797a4ac7a62b2cfaf8df08b409815 | refs/heads/master | 1,606,359,611,765 | 1,576,824,274,000 | 1,576,824,274,000 | 228,945,807 | 4 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 2,183 | lean | --------------------------------------------------------------------------------
-- File : PUZ133=2 : TPTP v7.3.0. Released v5.0.0.
-- Domain : Puzzles
-- Problem : N queens problem has the variable symmetry property
-- Version : Especial.
-- English :
-- Refs : [Bau08] Baumgartner (2008), Email to G. Sut... |
f20d9c56104d188cf455a23dafcf31fab5a572f3 | 9be442d9ec2fcf442516ed6e9e1660aa9071b7bd | /stage0/src/Lean/Elab/Print.lean | addcb9355949d696517e6d3396bf849f13cdeb70 | [
"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 | 5,984 | lean | /-
Copyright (c) 2020 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Leonardo de Moura
-/
import Lean.Util.FoldConsts
import Lean.Elab.Command
namespace Lean.Elab.Command
private def throwUnknownId (id : Name) : CommandElabM Unit :=
throwErro... |
d586ef6292e2cde2191dab284d30027984ac3965 | d406927ab5617694ec9ea7001f101b7c9e3d9702 | /src/category_theory/monoidal/category.lean | 08f64db141167f26c4f5ce3855b97ad8710599a5 | [
"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 | 20,733 | lean | /-
Copyright (c) 2018 Michael Jendrusch. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Michael Jendrusch, Scott Morrison, Bhavik Mehta, Jakob von Raumer
-/
import category_theory.products.basic
/-!
# Monoidal categories
A monoidal category is a category equipped wit... |
411d41f94e6372423f8daab87bb8ab20933f0db4 | 4bcaca5dc83d49803f72b7b5920b75b6e7d9de2d | /stage0/src/Lean/PrettyPrinter/Delaborator/TopDownAnalyze.lean | f9398e7387bd47a8fc3705bb414e3b2e243d1bc7 | [
"Apache-2.0"
] | permissive | subfish-zhou/leanprover-zh_CN.github.io | 30b9fba9bd790720bd95764e61ae796697d2f603 | 8b2985d4a3d458ceda9361ac454c28168d920d3f | refs/heads/master | 1,689,709,967,820 | 1,632,503,056,000 | 1,632,503,056,000 | 409,962,097 | 1 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 27,418 | lean | /-
Copyright (c) 2021 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Daniel Selsam
-/
import Lean.Meta
import Lean.Util.FindMVar
import Lean.Util.FindLevelMVar
import Lean.Util.CollectLevelParams
import Lean.Util.ReplaceLevel
import Lean.PrettyPr... |
6ae10d639001372d171fd26179397028e05d7fd1 | 491068d2ad28831e7dade8d6dff871c3e49d9431 | /tests/lean/run/mul_zero.lean | 57558b74b47c2cef304cabb78bad1a898696f2bd | [
"Apache-2.0"
] | permissive | davidmueller13/lean | 65a3ed141b4088cd0a268e4de80eb6778b21a0e9 | c626e2e3c6f3771e07c32e82ee5b9e030de5b050 | refs/heads/master | 1,611,278,313,401 | 1,444,021,177,000 | 1,444,021,177,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 85 | lean | import data.nat
open nat
example (x : ℕ) : 0 = x * 0 :=
calc 0 = x * 0 : mul_zero
|
5c5efc7169e4805ad56a21f2b8c908ae9404b0d1 | 4fa161becb8ce7378a709f5992a594764699e268 | /src/algebra/field_power.lean | f23da7af8c9fe51161e3de48d2f72664cdb9748a | [
"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 | 5,540 | lean | /-
Copyright (c) 2018 Robert Y. Lewis. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Robert Y. Lewis
Integer power operation on fields.
-/
import algebra.group_with_zero_power
import tactic.linarith
universe u
@[simp] lemma ring_hom.map_fpow {K L : Type*} [division... |
feeaad1e0dc49aa3573b9dc48a103fa6c0ce789e | 57c233acf9386e610d99ed20ef139c5f97504ba3 | /src/category_theory/sites/cover_lifting.lean | a8b08d32fd6783764748836c8f7b1226d9717595 | [
"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 | 13,244 | lean | /-
Copyright (c) 2021 Andrew Yang. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Andrew Yang
-/
import category_theory.sites.sheaf
import category_theory.limits.kan_extension
import category_theory.sites.cover_preserving
/-!
# Cover-lifting functors between sites.
W... |
64e04ccd55754897f0aca82b67c8647c2ad13f84 | 8cae430f0a71442d02dbb1cbb14073b31048e4b0 | /src/topology/local_extr.lean | 4abf12035b58cc68b8912313039886783657e662 | [
"Apache-2.0"
] | permissive | leanprover-community/mathlib | 56a2cadd17ac88caf4ece0a775932fa26327ba0e | 442a83d738cb208d3600056c489be16900ba701d | refs/heads/master | 1,693,584,102,358 | 1,693,471,902,000 | 1,693,471,902,000 | 97,922,418 | 1,595 | 352 | Apache-2.0 | 1,694,693,445,000 | 1,500,624,130,000 | Lean | UTF-8 | Lean | false | false | 19,920 | 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 order.filter.extr
import topology.continuous_on
/-!
# Local extrema of functions on topological spaces
> THIS FILE IS SYNCHRONIZED WITH MATHLIB4.
> Any cha... |
e39c798ebccad52ae983a07dbb47f0041c9b885b | 57c233acf9386e610d99ed20ef139c5f97504ba3 | /src/order/filter/at_top_bot.lean | aa1b323ad0e0678e803a7c4f8a884977d8864864 | [
"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 | 63,978 | 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, Jeremy Avigad, Yury Kudryashov, Patrick Massot
-/
import order.filter.bases
import data.finset.preimage
/-!
# `at_top` and `at_bot` filters on preorded sets, monoids a... |
db0df227c86f250c928369ed4d65cd56b358c7e6 | 6dc0c8ce7a76229dd81e73ed4474f15f88a9e294 | /stage0/src/Init/Data/Range.lean | d1c9c982ac355529dc5839564c012c8792e892d7 | [
"Apache-2.0"
] | permissive | williamdemeo/lean4 | 72161c58fe65c3ad955d6a3050bb7d37c04c0d54 | 6d00fcf1d6d873e195f9220c668ef9c58e9c4a35 | refs/heads/master | 1,678,305,356,877 | 1,614,708,995,000 | 1,614,708,995,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 2,006 | lean | /-
Copyright (c) 2020 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Leonardo de Moura
-/
prelude
import Init.Meta
import Init.Control.Foldable
namespace Std
-- We put `Range` in `Init` because we want the notation `[i:j]` without importing `St... |
96f7b2d8b2d94509ef26ad3ea1b9994098bacb03 | 491068d2ad28831e7dade8d6dff871c3e49d9431 | /tests/lean/noncomp_error.lean | 8f49f6777b8cd61bbd80294b7d5550d162d0ebf0 | [
"Apache-2.0"
] | permissive | davidmueller13/lean | 65a3ed141b4088cd0a268e4de80eb6778b21a0e9 | c626e2e3c6f3771e07c32e82ee5b9e030de5b050 | refs/heads/master | 1,611,278,313,401 | 1,444,021,177,000 | 1,444,021,177,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 32 | lean | noncomputable definition a := 2
|
4fc0964e86b53caa013444d0a8bd7d563bca9928 | 618003631150032a5676f229d13a079ac875ff77 | /src/data/list/pairwise.lean | 26e327684d71edde53c29332a892e7203f57d1c9 | [
"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 | 14,243 | lean | /-
Copyright (c) 2018 Mario Carneiro. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Mario Carneiro
-/
import data.list.basic
open nat function
universes u v
variables {α : Type u} {β : Type v}
namespace list
/- pairwise relation (generalized no duplicate) -/
mk_... |
44ea61cfd1fb60f69fa6536dae1c92358b4cdfb0 | 35b83be3126daae10419b573c55e1fed009d3ae8 | /src/Amy_Lean_Try/Amy_Complexes.lean | 6b72114838e362866d5cbf47e47d218733e57ea4 | [] | no_license | AHassan1024/Lean_Playground | ccb25b72029d199c0d23d002db2d32a9f2689ebc | a00b004c3a2eb9e3e863c361aa2b115260472414 | refs/heads/master | 1,586,221,905,125 | 1,544,951,310,000 | 1,544,951,310,000 | 157,934,290 | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 2,883 | lean | -- the result of trials by Ameena Hassan, 15th November 2018
import data.real.basic
-- not import data.complex.basic
import tactic.ring
structure complex : Type :=
(re : ℝ) (im : ℝ)
notation `∁` := complex
definition z : ∁ := ⟨5, 6⟩
definition z2: ∁ := {re := 5, im := 6}
--example : z = z2 := rfl
namespace complex... |
5685fb59de7ad84adfb5afc423d2a91b754d09ac | d9d511f37a523cd7659d6f573f990e2a0af93c6f | /src/topology/separation.lean | e039edd7eb19cbc6b53495f1fde2c0e2080c48fa | [
"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 | 57,504 | lean | /-
Copyright (c) 2017 Johannes Hölzl. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Johannes Hölzl, Mario Carneiro
-/
import topology.subset_properties
import topology.connected
/-!
# Separation properties of topological spaces.
This file defines the predicate `sepa... |
c48a76dd7c25aa6d6f2d0dd4c66b4ec48d6e5662 | 74addaa0e41490cbaf2abd313a764c96df57b05d | /Mathlib/measure_theory/outer_measure.lean | a229a20668fa3d0cbb0ea9acde189a680800204f | [] | 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 | 37,330 | 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... |
7073460f919c28c5e7b6c23dd88ebfc4ad824b3f | 74addaa0e41490cbaf2abd313a764c96df57b05d | /Mathlib/topology/bases.lean | 2cf4fef09493be3f1d764b118ba275a9131e4877 | [] | 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 | 10,106 | 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 Mathlib.PrePort
import Mathlib.Lean3Lib.init.default
import Mathlib.topology.continuous_on
import Ma... |
6b5c68e0c77b08dc307dca3260df3476df5a61a9 | fa02ed5a3c9c0adee3c26887a16855e7841c668b | /src/tactic/linarith/elimination.lean | 300e836d268f43cf59fc569093400ed66546921f | [
"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 | 13,999 | lean | /-
Copyright (c) 2020 Robert Y. Lewis. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Robert Y. Lewis
-/
import tactic.linarith.datatypes
/-!
# The Fourier-Motzkin elimination procedure
The Fourier-Motzkin procedure is a variable elimination method for linear inequa... |
08d48cb3da51b678b9bda91654ed076936b6051c | 274261f7150b4ed5f1962f172c9357591be8a2b5 | /src/iso_type.lean | 0a1eae142bf66077b09919fb9689f70249a86918 | [] | no_license | rspencer01/lean_representation_theory | 219ea1edf4b9897b2997226b54473e44e1538b50 | 2eef2b4b39d99d7ce71bec7bbc3dcc2f7586fcb5 | refs/heads/master | 1,588,133,157,029 | 1,571,689,957,000 | 1,571,689,957,000 | 175,835,785 | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 3,216 | lean | import .Module
import .lattices
import logic.function
import .module_trivialities
import ring_theory.algebra
variables {R : Type} [ring R] (M : Module R) (S₁ S₂ : submodule R M)
@[simp]
def is_simple := (¬ is_trivial M) ∧ (∀ (N : submodule R M), N = ⊤ ∨ N = ⊥)
lemma intersection_of_simples_is_left_or_trivial :
(is_... |
cdc6619ddc2ed39a27f950894784485b239e52d7 | 4d2583807a5ac6caaffd3d7a5f646d61ca85d532 | /src/data/mv_polynomial/supported.lean | 6bdbf3475ffce3b423eefdbf28700f1892b736c7 | [
"Apache-2.0"
] | permissive | AntoineChambert-Loir/mathlib | 64aabb896129885f12296a799818061bc90da1ff | 07be904260ab6e36a5769680b6012f03a4727134 | refs/heads/master | 1,693,187,631,771 | 1,636,719,886,000 | 1,636,719,886,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 3,778 | lean | /-
Copyright (c) 2021 Chris Hughes. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Chris Hughes
-/
import ring_theory.adjoin.polynomial
import data.mv_polynomial.variables
/-!
# Polynomials supported by a set of variables
This file contains the definition and lemmas ... |
4935a2cb51423e2b68d7b5539fa985f0737e823a | 2eab05920d6eeb06665e1a6df77b3157354316ad | /src/analysis/calculus/times_cont_diff.lean | 2677073d9472f2ef03c9db3087775f4221cb7cfe | [
"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 | 142,906 | lean | /-
Copyright (c) 2019 Sébastien Gouëzel. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Sébastien Gouëzel
-/
import analysis.calculus.mean_value
import analysis.normed_space.multilinear
import analysis.calculus.formal_multilinear_series
/-!
# Higher differentiability
... |
49a543ef1d871917a8ae5d2f4167e8f20ad53350 | 8cae430f0a71442d02dbb1cbb14073b31048e4b0 | /src/topology/bases.lean | 81f4a211ad817615118a2780ec36493a65d260d0 | [
"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 | 42,196 | lean | /-
Copyright (c) 2017 Johannes Hölzl. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Johannes Hölzl, Mario Carneiro
-/
import topology.constructions
import topology.continuous_on
/-!
# Bases of topologies. Countability axioms.
> THIS FILE IS SYNCHRONIZED WITH MATHLIB... |
c498a487b8c562cf86f6c8b6c46c6ffe5f370b73 | 4727251e0cd73359b15b664c3170e5d754078599 | /src/data/polynomial/expand.lean | c5d4f12bd692db16fe882d9241b0622b7ba6b0a0 | [
"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 | 9,204 | lean | /-
Copyright (c) 2020 Kenny Lau. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Kenny Lau
-/
import ring_theory.polynomial.basic
import ring_theory.ideal.local_ring
import tactic.ring_exp
/-!
# Expand a polynomial by a factor of p, so `∑ aₙ xⁿ` becomes `∑ aₙ xⁿᵖ`.
-/
... |
646587b4084bad0c1ed54eff4179d300ddfa6958 | b7f22e51856f4989b970961f794f1c435f9b8f78 | /tests/lean/run/section3.lean | 0623525d24cf83a9d10a7fc7f5a3ce21de17e6ff | [
"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 | 107 | lean | section
parameter (A : Type)
definition foo := A
theorem bar {X : Type} {A : X} : foo :=
sorry
end
|
5b9cb912d9f0ba7153a25a157884214fde8d8abc | cf39355caa609c0f33405126beee2739aa3cb77e | /tests/lean/run/cc_proj.lean | cf59ee3a4b9169af888d6b4c6943b3801238eae4 | [
"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 | 340 | lean | open tactic
example (a b c d : nat) (f : nat → nat × nat) : (f d).1 ≠ a → f d = (b, c) → b = a → false :=
by cc
def ex (a b c d : nat) (f : nat → nat × nat) : (f d).2 ≠ a → f d = (b, c) → c = a → false :=
by cc
example (a b c : nat) (f : nat → nat) : (f b, c).1 ≠ f a → f b = f c → a = c → false :=
by cc
|
9748d9a559233bc6ee3445142ffc26e645b8eb31 | 4efff1f47634ff19e2f786deadd394270a59ecd2 | /src/category_theory/adjunction/basic.lean | cfe66ba338fb0cdbe7f6c02a70cf541b7fa8c999 | [
"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 | 17,413 | 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, Bhavik Mehta
-/
import category_theory.equivalence
import data.equiv.basic
namespace category_theory
open category
universes v₁ v₂ v₃ u₁ u₂ u₃ -- declare th... |
45005284bd70fbcdd40c0c261eebd6b35b527643 | a45212b1526d532e6e83c44ddca6a05795113ddc | /src/category_theory/limits/preserves.lean | 98142ef0d23437bd158587d018fdf6171ae6caaa | [
"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 | 11,075 | lean | -- Copyright (c) 2018 Scott Morrison. All rights reserved.
-- Released under Apache 2.0 license as described in the file LICENSE.
-- Authors: Scott Morrison, Reid Barton
-- Preservation and reflection of (co)limits.
import category_theory.limits.limits
open category_theory
namespace category_theory.limits
universe... |
d0f0f5a2b88f71482401fb0b591ea2455758362b | 853df553b1d6ca524e3f0a79aedd32dde5d27ec3 | /src/measure_theory/measurable_space.lean | 55b39cc91a8809d4a9bb195ac3ca744476c88d4c | [
"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 | 47,209 | lean | /-
Copyright (c) 2017 Johannes Hölzl. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Johannes Hölzl, Mario Carneiro
Measurable spaces -- σ-algberas
-/
import data.set.disjointed
import data.set.countable
/-!
# Measurable spaces and measurable functions
This file def... |
92aeb1b2e8da11007102808e917672f3b6b0bc72 | 618003631150032a5676f229d13a079ac875ff77 | /src/tactic/monotonicity/default.lean | bf46f602e73a8e0aab09bf93889947f7888345cb | [
"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 | 220 | lean | /-
Copyright (c) 2019 Simon Hudon. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Author: Simon Hudon
-/
import tactic.monotonicity.interactive
import tactic.monotonicity.lemmas
|
9f2be6bcadf9d4e737e6c6777b0ead50413af521 | 6dc0c8ce7a76229dd81e73ed4474f15f88a9e294 | /tests/lean/run/doNotation5.lean | 9735b3fbe9ca281b428a17b6fecf20d80e5d2fcd | [
"Apache-2.0"
] | permissive | williamdemeo/lean4 | 72161c58fe65c3ad955d6a3050bb7d37c04c0d54 | 6d00fcf1d6d873e195f9220c668ef9c58e9c4a35 | refs/heads/master | 1,678,305,356,877 | 1,614,708,995,000 | 1,614,708,995,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 527 | lean |
abbrev M := ExceptT String $ ExceptT Nat $ StateM Nat
def inc (x : Nat) : M Unit := do
if (← get) >= 100 then
throwThe Nat ((← get) + x)
modify (· + x)
def dec (x : Nat) : M Unit := do
if (← get) - x == 0 then
throw "balance is zero"
modify (· - x)
def f (x y : Nat) : M Nat := do
try
inc x
dec y
get
catc... |
fcaa578d4611865b0a98e55190dba728af6c5b52 | 74addaa0e41490cbaf2abd313a764c96df57b05d | /Mathlib/tactic/lint/default_auto.lean | a35ad8798a482188b5c3cebc1869c0c4f9efc99e | [] | 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 | 445 | lean | /-
Copyright (c) 2020 Floris van Doorn. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Floris van Doorn, Robert Y. Lewis, Gabriel Ebner
-/
import Mathlib.PrePort
import Mathlib.Lean3Lib.init.default
import Mathlib.tactic.lint.frontend
import Mathlib.tactic.lint.simp
im... |
03446107e27dcb5d8c67c6b48939a7a76c2c2168 | c777c32c8e484e195053731103c5e52af26a25d1 | /src/analysis/normed_space/exponential.lean | c75855885cbb512abfc611603ae8249c0ebed675 | [
"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 | 27,193 | lean | /-
Copyright (c) 2021 Anatole Dedecker. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Anatole Dedecker, Eric Wieser
-/
import analysis.analytic.basic
import analysis.complex.basic
import analysis.normed.field.infinite_sum
import data.nat.choose.cast
import data.finset... |
3e76d50ba3d0c44c19b446b8728437639b64b382 | 9e90bb7eb4d1bde1805f9eb6187c333fdf09588a | /src/stump/setup_properties.lean | 43a71ff7fe564ad941b80ec6a60eb957d992e306 | [
"Apache-2.0"
] | permissive | alexjbest/stump-learnable | 6311d0c3a1a1a0e65ce83edcbb3b4b7cecabb851 | f8fd812fc646d2ece312ff6ffc2a19848ac76032 | refs/heads/master | 1,659,486,805,691 | 1,590,454,024,000 | 1,590,454,024,000 | 266,173,720 | 0 | 0 | Apache-2.0 | 1,590,169,884,000 | 1,590,169,883,000 | null | UTF-8 | Lean | false | false | 3,580 | lean | /-
Copyright © 2019, Oracle and/or its affiliates. All rights reserved.
-/
import .setup_definition
import ..lib.util
open set
open measure_theory
open probability_measure
local attribute [instance] classical.prop_decidable
namespace stump
variables (μ: probability_measure ℍ) (target: ℍ)
lemma label_correct:
... |
8a5d1219e4462445c2813b33d5dbbbf72b803699 | 6b7c9c6393bac7cb1c64582a1c62597e24f5bb80 | /src/tactic/gptf/gptf.lean | 0e367dcd531ba836f5db67f45d3e0aa5e6a678cb | [
"Apache-2.0"
] | permissive | alreadydone/lean-gptf | 56a7d9cbd9400af72fb143d60c8774b8cfbc09cb | b4ab1eb2da0178f3dcdc49771d9fed6b50e35d98 | refs/heads/master | 1,679,371,993,063 | 1,614,479,778,000 | 1,614,479,778,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 2,396 | lean | import system.io
import tactic
import tactic.gptf.backends.openai
/-! A tactic that will ring up GPT to ask for help solving a goal.
Remember to set the `OPEN_AI_KEY` environment variable.
Eg:
```sh
# ~/.zshenv
export OPEN_AI_KEY="<PUT YOUR SECRET KEY IN HERE>"
```
you may need to relogin to update.
`... |
bc0b8b318a6d264ce469c892f424cec9c3c4a9e3 | 3bdd27ffdff3ffa22d4bb010eba695afcc96bc4a | /src/combinatorics/simplicial_complex/to_move/convex.lean | 2854c85763d91aa56e3d30c29c174001c079ab10 | [] | no_license | mmasdeu/brouwerfixedpoint | 684d712c982c6a8b258b4e2c6b2eab923f2f1289 | 548270f79ecf12d7e20a256806ccb9fcf57b87e2 | refs/heads/main | 1,690,539,793,996 | 1,631,801,831,000 | 1,631,801,831,000 | 368,139,809 | 4 | 3 | null | 1,624,453,250,000 | 1,621,246,034,000 | Lean | UTF-8 | Lean | false | false | 1,700 | lean | /-
Copyright (c) 2021 Yaël Dillies, Bhavik Mehta. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Yaël Dillies, Bhavik Mehta
-/
import analysis.convex.topology
import topology.basic
import order.directed
variables {E : Type*} [add_comm_group E] [module ℝ E] {s X Y : s... |
ac1e9cbf242f1d7a615b84d628e56aaf6164f883 | 74addaa0e41490cbaf2abd313a764c96df57b05d | /Mathlib/deprecated/subring.lean | 735a6901b603b137f7139dc1900e69b8a29b41b7 | [] | 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,516 | lean | /-
Copyright (c) 2018 Johan Commelin. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Johan Commelin
-/
import Mathlib.PrePort
import Mathlib.Lean3Lib.init.default
import Mathlib.deprecated.subgroup
import Mathlib.deprecated.group
import Mathlib.PostPort
universes u l ... |
c7484698a6256c3816a7cd6f9daf9c7ec3e8c556 | d406927ab5617694ec9ea7001f101b7c9e3d9702 | /src/data/real/pi/bounds.lean | e6e665dd2687d6e562df88e3b41ec6b6d4f02734 | [
"Apache-2.0"
] | permissive | alreadydone/mathlib | dc0be621c6c8208c581f5170a8216c5ba6721927 | c982179ec21091d3e102d8a5d9f5fe06c8fafb73 | refs/heads/master | 1,685,523,275,196 | 1,670,184,141,000 | 1,670,184,141,000 | 287,574,545 | 0 | 0 | Apache-2.0 | 1,670,290,714,000 | 1,597,421,623,000 | Lean | UTF-8 | Lean | false | false | 7,787 | lean | /-
Copyright (c) 2019 Floris van Doorn. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Floris van Doorn, Mario Carneiro
-/
import analysis.special_functions.trigonometric.bounds
/-!
# Pi
This file contains lemmas which establish bounds on `real.pi`.
Notably, these in... |
d55bee8f6a12f228907ade53607d8479113e32be | 9be442d9ec2fcf442516ed6e9e1660aa9071b7bd | /tests/lean/run/structInst3.lean | b80d12edc244d2382d14a24ced3a5e44f29665c8 | [
"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 | 598 | lean |
universe u
namespace Ex1
structure A (α : Type u) :=
(x : α) (f : α → α := λ x => x)
structure B (α : Type u) extends A α :=
(y : α := f (f x)) (g : α → α → α := λ x y => f x)
structure C (α : Type u) extends B α :=
(z : α := g x y) (x := f z)
end Ex1
open Ex1
def c1 : C Nat := { x := 1 }
#check { c1 with z :=... |
342f90ae391d62360b4820a82e29cea067689ceb | 30b012bb72d640ec30c8fdd4c45fdfa67beb012c | /number_theory/pell.lean | e1ec32e9337a819b3c2609fe17514b023965ea08 | [
"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 | 62,357 | 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.basic data.nat.prime data.nat.modeq
/-- The ring of integers adjoined with a square root of `d`.
These have the form `a + b √d` where `a b : ℤ`. Th... |
37a4542b822bac58de4c8e3c5c9789d72fa9a65a | 2eab05920d6eeb06665e1a6df77b3157354316ad | /src/group_theory/free_abelian_group_finsupp.lean | efc48541b31a21a8e455a6fc85177cff4a9285b7 | [
"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 | 5,464 | 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 group_theory.free_abelian_group
import data.finsupp.basic
/-!
# Isomorphism between `free_abelian_group X` and `X →₀ ℤ`
In this file we construct the canoni... |
3f1d3e599b54092f45dc22a8875a21380c1c0f91 | 33340b3a23ca62ef3c8a7f6a2d4e14c07c6d3354 | /lia/nnf.lean | 78b5b4beacfe62eb1a125ce20d322b52314592a1 | [] | no_license | lclem/cooper | 79554e72ced343c64fed24b2d892d24bf9447dfe | 812afc6b158821f2e7dac9c91d3b6123c7a19faf | refs/heads/master | 1,607,554,257,488 | 1,578,694,133,000 | 1,578,694,133,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 7,746 | lean | import ..logic .qfree .wf .remove_neg
-- Requires : nqfree arg
-- Ensures : nqfree ret
def push_neg : formula → formula
| ⊤' := ⊥'
| ⊥' := ⊤'
| (A' a) := A' (remove_neg a)
| (¬' p) := ⊥'
| (p ∨' q) := push_neg p ∧' push_neg q
| (p ∧' q) := push_neg p ∨' push_neg q
| (∃' p) := ⊥'
lemma nqfree_push_neg :
∀ {p :... |
f23c90619427f520376940f72963121b125f2ddb | 302c785c90d40ad3d6be43d33bc6a558354cc2cf | /src/category_theory/simple.lean | dca21bd57d54f3c5b8fab84945ad628497590610 | [
"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 | 4,275 | lean | /-
Copyright (c) 2020 Scott Morrison. 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.zero
import category_theory.limits.shapes.kernels
import category_theory.abelian.basic
/-!
# Simple objects
We d... |
199b76866cb557c79d9e6c039d783c61782d207a | 07c6143268cfb72beccd1cc35735d424ebcb187b | /src/measure_theory/set_integral.lean | dc105caec272b74659812172ed192d65e29e324c | [
"Apache-2.0"
] | permissive | khoek/mathlib | bc49a842910af13a3c372748310e86467d1dc766 | aa55f8b50354b3e11ba64792dcb06cccb2d8ee28 | refs/heads/master | 1,588,232,063,837 | 1,587,304,803,000 | 1,587,304,803,000 | 176,688,517 | 0 | 0 | Apache-2.0 | 1,553,070,585,000 | 1,553,070,585,000 | null | UTF-8 | Lean | false | false | 14,974 | 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... |
f98c5de278deaa591f2dc0daeb5ab686d4f6ab08 | 8cae430f0a71442d02dbb1cbb14073b31048e4b0 | /src/category_theory/abelian/injective.lean | 781dbd2ab645b63191256f2fc556bbaa800f33fa | [
"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,614 | lean | /-
Copyright (c) 2022 Jakob von Raumer. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Jakob von Raumer
-/
import category_theory.abelian.exact
import category_theory.preadditive.injective
import category_theory.preadditive.yoneda.limits
import category_theory.preaddi... |
73dae586c89be090146b0cab6c90d5b999c50a00 | 5d166a16ae129621cb54ca9dde86c275d7d2b483 | /tests/lean/run/u_eq_max_u_v.lean | 80bf5e1ca4a7ce3df49af1665adce4bccc48bbd9 | [
"Apache-2.0"
] | permissive | jcarlson23/lean | b00098763291397e0ac76b37a2dd96bc013bd247 | 8de88701247f54d325edd46c0eed57aeacb64baf | refs/heads/master | 1,611,571,813,719 | 1,497,020,963,000 | 1,497,021,515,000 | 93,882,536 | 1 | 0 | null | 1,497,029,896,000 | 1,497,029,896,000 | null | UTF-8 | Lean | false | false | 3,039 | lean | universe variables u v u1 u2 v1 v2
set_option pp.universes true
open smt_tactic
meta def blast : tactic unit := using_smt $ intros >> add_lemmas_from_facts >> repeat_at_most 3 ematch
notation `♮` := by blast
structure semigroup_morphism { α β : Type u } ( s : semigroup α ) ( t: semigroup β ) :=
(map: α → β)
(mul... |
0cbcc9f58f076b65430203918d30172085c170c5 | bbecf0f1968d1fba4124103e4f6b55251d08e9c4 | /src/ring_theory/hahn_series.lean | 6e752eb90545c3c564e5ab18c8172796e0944fff | [
"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 | 56,961 | 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
... |
db890395bca3127264025ccee6415c396e2fe786 | 9be442d9ec2fcf442516ed6e9e1660aa9071b7bd | /tests/lean/run/simp7.lean | d4a503f6db0e416f99069b3e263848c80bf94816 | [
"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 | 1,421 | lean | def f (x : α) := x
theorem ex1 (a : α) (b : List α) : f (a::b = []) = False :=
by simp [f]
def length : List α → Nat
| [] => 0
| a::as => length as + 1
theorem ex2 (a b c : α) (as : List α) : length (a :: b :: as) > length as := by
simp [length]
apply Nat.lt.step
apply Nat.lt_succ_self
def fact : Nat... |
27caa44605f449d8844f0888da105c0d45e86d1d | 7cdf3413c097e5d36492d12cdd07030eb991d394 | /src/game/world2/level1.lean | 37313679d6b18b81f014132723d7f3cb7d299edb | [] | no_license | alreadydone/natural_number_game | 3135b9385a9f43e74cfbf79513fc37e69b99e0b3 | 1a39e693df4f4e871eb449890d3c7715a25c2ec9 | refs/heads/master | 1,599,387,390,105 | 1,573,200,587,000 | 1,573,200,691,000 | 220,397,084 | 0 | 0 | null | 1,573,192,734,000 | 1,573,192,733,000 | null | UTF-8 | Lean | false | false | 7,961 | lean | import mynat.definition -- Imports the natural numbers.
import mynat.add -- imports addition.
namespace mynat -- hide
-- World name : Addition world
/- Axiom : add_zero (a : mynat) :
a + 0 = a
-/
/- Axiom : add_succ (a b : mynat) :
a + succ(b) = succ(a + b)
-/
/- Tactic : induction
If you have a natural number `n :... |
d3655b7d34b05fd8a5de428861401981cb941bdd | bb31430994044506fa42fd667e2d556327e18dfe | /src/analysis/complex/removable_singularity.lean | 8ce0db71f46c43216c3c51129d97b10ec8de0e74 | [
"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 | 9,572 | lean | /-
Copyright (c) 2022 Yury Kudryashov. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Yury Kudryashov
-/
import analysis.calculus.fderiv_analytic
import analysis.asymptotics.specific_asymptotics
import analysis.complex.cauchy_integral
/-!
# Removable singularity theor... |
d54be523afbc7e12380b4ba709cf2d6ec7f15694 | e61a235b8468b03aee0120bf26ec615c045005d2 | /tests/compiler/phashmap3.lean | efbeb6a76bcce42777a00f80af107f4d0d81f2c5 | [
"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 | 1,813 | lean | import Init.Data.PersistentHashMap
import Init.Lean.Data.Format
open Lean PersistentHashMap
abbrev Map := PersistentHashMap Nat Nat
partial def formatMap : Node Nat Nat → Format
| Node.collision keys vals _ => Format.sbracket $
keys.size.fold
(fun i fmt =>
let k := keys.get! i;
let v := vals.get! ... |
74d0f289e3f6e6210d357ce4e8f04ecf09f630c4 | 5178376877966e906d8301a3169ebc83b8185ddb | /src/spec/spec.lean | 7c73b5f56e715c338ff995d5cee7e3cb0fea06ca | [
"LicenseRef-scancode-generic-cla",
"MIT"
] | permissive | aqjune/AliveInLean | 8c436f1897774df37c532e6790c7e503712a7f00 | 7e92791c8bc316ef391c15a9e31dbd2355b6a4d4 | refs/heads/master | 1,584,465,770,747 | 1,549,480,763,000 | 1,549,480,763,000 | 133,785,889 | 0 | 0 | null | 1,526,547,050,000 | 1,526,547,049,000 | null | UTF-8 | Lean | false | false | 12,428 | lean | -- Copyright (c) Microsoft Corporation. All rights reserved.
-- Licensed under the MIT license.
import ..smtexpr
import ..bitvector
import ..irsem
import ..irsem_exec
import ..irsem_smt
import ..freevar
import ..verifyopt
import .lemmas_basic
import smt2.syntax
import smt2.solvers.z3
import system.io
namespace spec
... |
c064cee8c2dc422e6be30703bacb1640bdeeb50a | 94e33a31faa76775069b071adea97e86e218a8ee | /src/data/pfunctor/univariate/basic.lean | e4aeca9a721caca886b8663976b450460413921e | [
"Apache-2.0"
] | permissive | urkud/mathlib | eab80095e1b9f1513bfb7f25b4fa82fa4fd02989 | 6379d39e6b5b279df9715f8011369a301b634e41 | refs/heads/master | 1,658,425,342,662 | 1,658,078,703,000 | 1,658,078,703,000 | 186,910,338 | 0 | 0 | Apache-2.0 | 1,568,512,083,000 | 1,557,958,709,000 | Lean | UTF-8 | Lean | false | false | 6,294 | lean | /-
Copyright (c) 2018 Jeremy Avigad. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Jeremy Avigad
-/
import data.W.basic
/-!
# Polynomial functors
This file defines polynomial functors and the W-type construction as a
polynomial functor. (For the M-type construction... |
0c445da094a45942f434ef1cbc876fb2ca6bba54 | 9c1ad797ec8a5eddb37d34806c543602d9a6bf70 | /examples/categories/cartesian_product_symmetry.lean | 320fef39e62938a302fe90ef177b740d4662de34 | [] | no_license | timjb/lean-category-theory | 816eefc3a0582c22c05f4ee1c57ed04e57c0982f | 12916cce261d08bb8740bc85e0175b75fb2a60f4 | refs/heads/master | 1,611,078,926,765 | 1,492,080,000,000 | 1,492,080,000,000 | 88,348,246 | 0 | 0 | null | 1,492,262,499,000 | 1,492,262,498,000 | null | UTF-8 | Lean | false | false | 854 | lean | -- Copyright (c) 2017 Scott Morrison. All rights reserved.
-- Released under Apache 2.0 license as described in the file LICENSE.
-- Authors: Stephen Morgan, Scott Morrison
import .cartesian_product
open tqft.categories
open tqft.categories.functor
open tqft.categories.products
open tqft.categories.natural_transformat... |
75731eff65dfc573d83bb8e4a04259d65f7a4cc7 | d406927ab5617694ec9ea7001f101b7c9e3d9702 | /src/algebra/star/subalgebra.lean | 8e33aa409a99a1d3755ac01df91845df4ce04726 | [
"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 | 26,476 | lean | /-
Copyright (c) 2022 Scott Morrison. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Scott Morrison, Jireh Loreaux
-/
import algebra.star.star_alg_hom
import algebra.algebra.subalgebra.basic
import algebra.star.pointwise
import algebra.star.module
import ring_theory.ad... |
d65db6484f0f3cff4f7a86e4ffc848db15270ad6 | 0845ae2ca02071debcfd4ac24be871236c01784f | /library/init/lean/compiler/ir/basic.lean | a5ae79bdba560fcc26b02e6aaed82c2cee67ca1d | [
"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 | 23,789 | 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.data.array
import init.lean.name
import init.lean.kvmap
import init.lean.format
import init.lean.compiler.externattr
/-
Implements (exte... |
52ac3993a25d68750ae2300a4109ad73f2cc08dd | 42c01158c2730cc6ac3e058c1339c18cb90366e2 | /M1F/2017-18/Example_Sheet_01/Questions_02_to_4/M1F_sheet01_questions02_to_04.lean | f438abbae8f69828c3b1bdd29f430510ade16381 | [] | no_license | ChrisHughes24/xena | c80d94355d0c2ae8deddda9d01e6d31bc21c30ae | 337a0d7c9f0e255e08d6d0a383e303c080c6ec0c | refs/heads/master | 1,631,059,898,392 | 1,511,200,551,000 | 1,511,200,551,000 | 111,468,589 | 1 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 1,697 | lean | /-
M1F 2017-18 Sheet 1 Question 1
Author : Kevin Buzzard
This file should work with any version of lean -- whether you installed it yourself
or are running the version on https://leanprover.github.io/live/latest/
-/
-- We probably need the "law of the excluded middle" for this question -- every
-- proposition is eith... |
df884b76f6e772621fd574fa01e3a2aae00dc0a2 | 57aec6ee746bc7e3a3dd5e767e53bd95beb82f6d | /tests/lean/run/noindexAnnotation.lean | d8b4692ea0f664e61328fe82d0490f7f37f5ea50 | [
"Apache-2.0"
] | permissive | collares/lean4 | 861a9269c4592bce49b71059e232ff0bfe4594cc | 52a4f535d853a2c7c7eea5fee8a4fa04c682c1ee | refs/heads/master | 1,691,419,031,324 | 1,618,678,138,000 | 1,618,678,138,000 | 358,989,750 | 0 | 0 | Apache-2.0 | 1,618,696,333,000 | 1,618,696,333,000 | null | UTF-8 | Lean | false | false | 321 | lean | structure Fin2 (n : Nat) :=
(val : Nat)
(isLt : Less val n)
protected def Fin2.ofNat {n : Nat} (a : Nat) : Fin2 (Nat.succ n) :=
⟨a % Nat.succ n, Nat.mod_lt _ (Nat.zeroLtSucc _)⟩
instance : OfNat (Fin2 (no_index (n+1))) i where
ofNat := Fin2.ofNat i
def ex1 : Fin2 (9 + 1) :=
0
def ex2 : Fin2 10 :=
0
|
e0af3b20351eb5a3733fd517124ad41c283ab842 | 8e6cad62ec62c6c348e5faaa3c3f2079012bdd69 | /src/ring_theory/multiplicity.lean | ee414847997790074ecc1fa437f63b860e6fd0a1 | [
"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 | 17,448 | lean | /-
Copyright (c) 2018 Robert Y. Lewis. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Robert Y. Lewis, Chris Hughes
-/
import algebra.associated
import algebra.big_operators.basic
import data.nat.enat
/-!
# Multiplicity of a divisor
For a commutative monoid, this fil... |
11ebd74af5b4b2b4a7297d1d79bc6ba35991bfc3 | 97f752b44fd85ec3f635078a2dd125ddae7a82b6 | /library/data/set/filter.lean | d7621eb6823d8892523f9c46d8844b12ff048f28 | [
"Apache-2.0"
] | permissive | tectronics/lean | ab977ba6be0fcd46047ddbb3c8e16e7c26710701 | f38af35e0616f89c6e9d7e3eb1d48e47ee666efe | refs/heads/master | 1,532,358,526,384 | 1,456,276,623,000 | 1,456,276,623,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 21,894 | lean | /-
Copyright (c) 2015 Jeremy Avigad. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Jeremy Avigad, Jacob Gross
Filters, following Hölzl, Immler, and Huffman, "Type classes and filters for mathematical
analysis in Isabelle/HOL".
-/
import data.set.function logic.identi... |
2ed5e3c2f0d8fc9fbf82b124500e4cd0f6712c50 | a9d0fb7b0e4f802bd3857b803e6c5c23d87fef91 | /tests/lean/set_attr1.lean | 0b4e2b7fc8c8ec1a513196042c2173dee0c16d65 | [
"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 | 391 | lean | open tactic
constant f : nat → nat
constant foo : ∀ n, f n = n + 1
constant add_zero : ∀ n, n + 0 = n
definition ex1 (n : nat) : f n + 0 = n + 1 :=
by do
set_basic_attribute `simp `foo,
set_basic_attribute `simp `add_zero,
simp
definition ex2 (n : nat) : f n + 0 = n + 1 :=
by do
unset_attribute `simp `foo,
... |
f3e7c78a9b1881caf427873f5577a1c8d833bc0d | 74addaa0e41490cbaf2abd313a764c96df57b05d | /Mathlib/data/polynomial/degree/trailing_degree_auto.lean | 8ee4a397cce13c6c25ebcccd1d22d8a7c4a5d1c2 | [] | no_license | AurelienSaue/Mathlib4_auto | f538cfd0980f65a6361eadea39e6fc639e9dae14 | 590df64109b08190abe22358fabc3eae000943f2 | refs/heads/master | 1,683,906,849,776 | 1,622,564,669,000 | 1,622,564,669,000 | 371,723,747 | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 11,584 | lean | /-
Copyright (c) 2020 Damiano Testa. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Damiano Testa
-/
import Mathlib.PrePort
import Mathlib.Lean3Lib.init.default
import Mathlib.data.polynomial.degree.definitions
import Mathlib.PostPort
universes u v
namespace Mathlib... |
07b10f7bd17903ab54a3124564e364a46764410e | d642a6b1261b2cbe691e53561ac777b924751b63 | /src/measure_theory/decomposition.lean | 7dd48fafb7ca885666d47e9d9a73514a0ae900b6 | [
"Apache-2.0"
] | permissive | cipher1024/mathlib | fee56b9954e969721715e45fea8bcb95f9dc03fe | d077887141000fefa5a264e30fa57520e9f03522 | refs/heads/master | 1,651,806,490,504 | 1,573,508,694,000 | 1,573,508,694,000 | 107,216,176 | 0 | 0 | Apache-2.0 | 1,647,363,136,000 | 1,508,213,014,000 | Lean | UTF-8 | Lean | false | false | 8,677 | 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
Hahn decomposition theorem
TODO:
* introduce finite measures (into nnreal)
* show general for signed measures (into ℝ)
-/
import measure_theory.measure_space
open set... |
8659658fe8463d7cf47262166750c28f81141d55 | 5756a081670ba9c1d1d3fca7bd47cb4e31beae66 | /Mathport/Syntax/Data4.lean | abb776609be02082ee5f645d1f564e11e745ed12 | [
"Apache-2.0"
] | permissive | leanprover-community/mathport | 2c9bdc8292168febf59799efdc5451dbf0450d4a | 13051f68064f7638970d39a8fecaede68ffbf9e1 | refs/heads/master | 1,693,841,364,079 | 1,693,813,111,000 | 1,693,813,111,000 | 379,357,010 | 27 | 10 | Apache-2.0 | 1,691,309,132,000 | 1,624,384,521,000 | Lean | UTF-8 | Lean | false | false | 337 | lean | /-
Copyright (c) 2021 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Mario Carneiro, Daniel Selsam
-/
import Mathport.Util.Misc
namespace Mathport
open Lean
structure Data4 where
fmt : Format
exprs : HashMap Position Expr
deriving Inhabit... |
03e26c58b3a5a6a9f6d70f005eceab423eccc4a9 | 36938939954e91f23dec66a02728db08a7acfcf9 | /lean/elf.lean | 5fefa802411f5b08bfaeff413db9675024687376 | [
"Apache-2.0"
] | permissive | 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 | 16,582 | lean | /-
This file contains the start of an Elf parser for Lean. It currently has facilities for parsing
Elf
-/
import system.io
import init.category.reader
import init.category.state
import x86_semantics.machine_memory
import x86_semantics.buffer_map
import .file_input
def repeat {α : Type} {m : Type → Type} [applicative ... |
020d6b0bab425a6a18fad06986c4986346f66490 | 74addaa0e41490cbaf2abd313a764c96df57b05d | /Mathlib/tactic/omega/int/form.lean | b75f3a22fb737c96be1ebf105031dd58184297d1 | [] | 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,454 | lean | /-
Copyright (c) 2019 Seul Baek. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Author: Seul Baek
-/
import Mathlib.PrePort
import Mathlib.Lean3Lib.init.default
import Mathlib.tactic.omega.int.preterm
import Mathlib.PostPort
universes l
namespace Mathlib
/-
Linear integer a... |
36a8f951eb7f28249faffaecf18c730c967c4373 | 957a80ea22c5abb4f4670b250d55534d9db99108 | /tests/lean/run/psum_wf_rec.lean | 05bebd8f21f931774ea22af794f123dfc33898e5 | [
"Apache-2.0"
] | permissive | GaloisInc/lean | aa1e64d604051e602fcf4610061314b9a37ab8cd | f1ec117a24459b59c6ff9e56a1d09d9e9e60a6c0 | refs/heads/master | 1,592,202,909,807 | 1,504,624,387,000 | 1,504,624,387,000 | 75,319,626 | 2 | 1 | Apache-2.0 | 1,539,290,164,000 | 1,480,616,104,000 | C++ | UTF-8 | Lean | false | false | 715 | lean | def psum.alt.sizeof {α β} [has_sizeof α] [has_sizeof β] : psum α β → nat
| (psum.inl a) := 2*sizeof a + 2
| (psum.inr b) := 2*sizeof b + 1
def sum_has_sizeof_2 {α β} [has_sizeof α] [has_sizeof β] : has_sizeof (psum α β) :=
⟨psum.alt.sizeof⟩
local attribute [instance] sum_has_sizeof_2
mutual def f, g
with f : ℕ → ℕ
|... |
4b7927621c8fb959966744c9857e31d6be2829f9 | 35b83be3126daae10419b573c55e1fed009d3ae8 | /_target/deps/mathlib/analysis/real.lean | 32c9273d787f66630d7020fa1280adf1dddd854c | [] | no_license | AHassan1024/Lean_Playground | ccb25b72029d199c0d23d002db2d32a9f2689ebc | a00b004c3a2eb9e3e863c361aa2b115260472414 | refs/heads/master | 1,586,221,905,125 | 1,544,951,310,000 | 1,544,951,310,000 | 157,934,290 | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 17,414 | 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
The real numbers ℝ.
They are constructed as the topological completion of ℚ. With the following steps:
(1) prove that ℚ forms a uniform space.
(2) subt... |
7ac1c205073d0d91e7a5c0e35342361be4bce386 | d406927ab5617694ec9ea7001f101b7c9e3d9702 | /src/data/finsupp/fin.lean | a8d468850acddd70ab9fd8335ebf32f4dafbc125 | [
"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,396 | lean | /-
Copyright (c) 2021 Ivan Sadofschi Costa. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Ivan Sadofschi Costa
-/
import data.finsupp.defs
/-!
# `cons` and `tail` for maps `fin n →₀ M`
We interpret maps `fin n →₀ M` as `n`-tuples of elements of `M`,
We define the fo... |
2bbd0c847e51cc77469531cac9a818696d238678 | cf39355caa609c0f33405126beee2739aa3cb77e | /tests/lean/bad_open.lean | b846d30f5d0227fe8876d579f0b96a94e2a123e0 | [
"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 | 11 | lean | open "nat"
|
bf08e3aca70ea126ff50894e968285bc4d0c841e | 9ad8d18fbe5f120c22b5e035bc240f711d2cbd7e | /src/exercises/tactics_list.lean | 4113804009cc3d67f80baed33cdaab553ebae644 | [] | 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 | 11,987 | lean | import tactic.interactive
import tactic.monotonicity
import data.finset
/-
To do: also document derive_handlers
-/
#check tactic.interactive.ac_mono
-- Deduce inequalities using known monotonicity properties of functions
#check tactic.interactive.abstract
-- Tactical to record the argument used as a lemma, as well as... |
d8746d0ed724d5e07ba93e6a34c9a8653640470c | 8cae430f0a71442d02dbb1cbb14073b31048e4b0 | /src/data/finset/card.lean | 98cf0399b0e584af4580ee3f8a88ef813cb7f0f6 | [
"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 | 24,649 | lean | /-
Copyright (c) 2015 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Leonardo de Moura, Jeremy Avigad
-/
import data.finset.image
import tactic.by_contra
/-!
# Cardinality of a finite set
> THIS FILE IS SYNCHRONIZED WITH MATHLIB4.
> Any changes... |
c5d088d1345a7268749b4357b4b40b4406a4f582 | fef48cac17c73db8662678da38fd75888db97560 | /src/point9.lean | 0d4b349e944ebc404309c123140d1c2725ed48bc | [] | no_license | kbuzzard/lean-squares-in-fibonacci | 6c0d924f799d6751e19798bb2530ee602ec7087e | 8cea20e5ce88ab7d17b020932d84d316532a84a8 | refs/heads/master | 1,584,524,504,815 | 1,582,387,156,000 | 1,582,387,156,000 | 134,576,655 | 3 | 1 | null | 1,541,538,497,000 | 1,527,083,406,000 | Lean | UTF-8 | Lean | false | false | 205 | lean | -- 9) Deduce that if m > 2 and u m is a square, then m is a multiple of 12.
import definitions
theorem twelve_dvd_of_fib_square (m : ℕ) :
m > 2 → (∃ d : ℕ, d ^ 2 = fib m) → 12 ∣ m := sorry
|
001d008363f6f7e5fcccce2cb94cf41fd31a8b0f | 569919c7071b4209bdf17284c1b44d9b93c3b136 | /src/solutions/00_first_proofs.lean | 1145309c4671855790aaada3535c682e4d7c4ad2 | [
"Apache-2.0"
] | permissive | dimpase/tutorials | 74f149c4d5b945cd7cd677e4423d644265a7e3bf | cc7d1b2bff39b36907b3a56b446e123d0762a63b | refs/heads/master | 1,668,521,216,072 | 1,593,390,403,000 | 1,593,390,403,000 | 276,760,422 | 0 | 0 | Apache-2.0 | 1,593,730,650,000 | 1,593,730,649,000 | null | UTF-8 | Lean | false | false | 18,035 | lean | /-
This file is intended for Lean beginners. The goal is to demonstrate what it feels like to prove
things using Lean and mathlib. Complicated definitions and theory building are not covered.
Everything is covered again more slowly and with exercises in the next files.
-/
-- We want real numbers and their basic proper... |
389a1c88ab4a78b136d51f94eb213776add0d044 | 206422fb9edabf63def0ed2aa3f489150fb09ccb | /src/measure_theory/bochner_integration.lean | 6deaa5c483febc47226103698561af6cba2f6826 | [
"Apache-2.0"
] | permissive | hamdysalah1/mathlib | b915f86b2503feeae268de369f1b16932321f097 | 95454452f6b3569bf967d35aab8d852b1ddf8017 | refs/heads/master | 1,677,154,116,545 | 1,611,797,994,000 | 1,611,797,994,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 68,602 | lean | /-
Copyright (c) 2019 Zhouhang Zhou. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Zhouhang Zhou, Yury Kudryashov
-/
import measure_theory.simple_func_dense
import analysis.normed_space.bounded_linear_maps
import topology.sequences
/-!
# Bochner integral
The Bochner... |
39da077eeb00144e6045b99d3c5dc3eabb2e9a3c | 2a70b774d16dbdf5a533432ee0ebab6838df0948 | /_target/deps/mathlib/src/linear_algebra/determinant.lean | ce9642b3c4dc1caddef5b9f4655fd0b6de355b92 | [
"Apache-2.0"
] | permissive | hjvromen/lewis | 40b035973df7c77ebf927afab7878c76d05ff758 | 105b675f73630f028ad5d890897a51b3c1146fb0 | refs/heads/master | 1,677,944,636,343 | 1,676,555,301,000 | 1,676,555,301,000 | 327,553,599 | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 12,655 | lean | /-
Copyright (c) 2018 Kenny Lau. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Kenny Lau, Chris Hughes, Tim Baanen
-/
import data.matrix.pequiv
import data.fintype.card
import group_theory.perm.sign
import algebra.algebra.basic
import tactic.ring
import linear_algebra... |
d57c34e9284536535c79c94bb1bfe5495a2ec12d | cf39355caa609c0f33405126beee2739aa3cb77e | /tests/lean/172.lean | 5024fc714b42cfea3fe3b294ceb7a512015c5d57 | [
"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 | 267 | lean | -- see issue: https://github.com/leanprover-community/lean/issues/172
instance its_a_monad : monad option :=
{ pure := λ _, some
, bind := λ α β x f, option.rec_on x option.none f}
#eval @has_bind.bind option (@monad.to_has_bind _ its_a_monad) _ _ (some 4) some |
258e26ae5d583d4ff89ca711ebe8523cc03f190e | 367134ba5a65885e863bdc4507601606690974c1 | /src/analysis/normed_space/dual.lean | 40a99fa39322a1dbcb2fd9ce425241bdf1de7cf9 | [
"Apache-2.0"
] | permissive | kodyvajjha/mathlib | 9bead00e90f68269a313f45f5561766cfd8d5cad | b98af5dd79e13a38d84438b850a2e8858ec21284 | refs/heads/master | 1,624,350,366,310 | 1,615,563,062,000 | 1,615,563,062,000 | 162,666,963 | 0 | 0 | Apache-2.0 | 1,545,367,651,000 | 1,545,367,651,000 | null | UTF-8 | Lean | false | false | 11,850 | lean | /-
Copyright (c) 2020 Heather Macbeth. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Heather Macbeth, Frédéric Dupuis
-/
import analysis.normed_space.hahn_banach
import analysis.normed_space.inner_product
/-!
# The topological dual of a normed space
In this file we ... |
c54f3d8d40c891ae3370b4cc310d8acee252440b | a45212b1526d532e6e83c44ddca6a05795113ddc | /src/data/nat/cast.lean | a368404b6bbfa48a8a90e4caee98f077dbe5a50e | [
"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,099 | lean | /-
Copyright (c) 2014 Mario Carneiro. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Mario Carneiro
Natural homomorphism from the natural numbers into a monoid with one.
-/
import tactic.interactive algebra.order algebra.ordered_group algebra.ring
namespace nat
varia... |
0f08bbba416c953f80e316608e2ae86794005687 | 491068d2ad28831e7dade8d6dff871c3e49d9431 | /tests/lean/run/ppbeta.lean | 1f10bacbcc66b9c3c1f6c9a2cee759b8caabd6c1 | [
"Apache-2.0"
] | permissive | davidmueller13/lean | 65a3ed141b4088cd0a268e4de80eb6778b21a0e9 | c626e2e3c6f3771e07c32e82ee5b9e030de5b050 | refs/heads/master | 1,611,278,313,401 | 1,444,021,177,000 | 1,444,021,177,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 278 | lean | import data.int
open [coercions] int
open [coercions] nat
definition lt (a b : int) := int.le (int.add a 1) b
infix `<` := lt
infixl `+` := int.add
theorem lt_add_succ2 (a : int) (n : nat) : a < a + nat.succ n :=
int.le.intro (show a + 1 + n = a + nat.succ n, from sorry)
|
914b46834aba149ad3197cae064dff51d721773b | 4d3f29a7b2eff44af8fd0d3176232e039acb9ee3 | /LAMR/Util/Propositional/SatSolver.lean | dbfac152cf6a5a250675dd33a99983032330eb0c | [] | no_license | marijnheule/lamr | 5fc5d69d326ff92e321242cfd7f72e78d7f99d7e | 28cc4114c7361059bb54f407fa312bf38b48728b | refs/heads/main | 1,689,338,013,620 | 1,630,359,632,000 | 1,630,359,632,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 6,480 | lean | import LAMR.Util.Propositional.Transformations
import LAMR.Util.Propositional.DRAT
import Std
open Std
open Lean
open List
open Nat
open HashMap
def SNH := HashMap String Nat
def NSH := HashMap Nat String
def HH := SNH × NSH
def litVar : Lit → String
| Lit.pos s => s
| Lit.neg s => s
def addLiteral : HH → Lit → HH
|... |
3e8f96eb84dd3bd45a7b3478e3c91b2d03e5ad9b | 968e2f50b755d3048175f176376eff7139e9df70 | /examples/prop_logic_lean_summary/unnamed_407.lean | 5d7456e50d998ed8ec75bb5af5bbd9311ba35bba | [] | 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 | 257 | lean | variables p q r : Prop
-- BEGIN
example (h₁ : (p ∧ r) ∨ (r ∧ q)) : r :=
or.elim h₁
(assume h₂ : p ∧ r, h₂.right) -- A term-style proof of `p ∧ r → r`
(assume h₂ : r ∧ q, h₂.left) -- A term-style proof of `r ∧ q → r`
-- END |
2231af6dd231d2cb6766d2e2c6ca2cdf365d2610 | 75db7e3219bba2fbf41bf5b905f34fcb3c6ca3f2 | /tests/lean/have1.lean | 30444a01652a3bc3de33fcbd9d0cd64c5818d1eb | [
"Apache-2.0"
] | permissive | jroesch/lean | 30ef0860fa905d35b9ad6f76de1a4f65c9af6871 | 3de4ec1a6ce9a960feb2a48eeea8b53246fa34f2 | refs/heads/master | 1,586,090,835,348 | 1,455,142,203,000 | 1,455,142,277,000 | 51,536,958 | 1 | 0 | null | 1,455,215,811,000 | 1,455,215,811,000 | null | UTF-8 | Lean | false | false | 440 | lean | import logic
open bool eq.ops tactic eq
constants a b c : bool
axiom H1 : a = b
axiom H2 : b = c
check have e1 [visible] : a = b, from H1,
have e2 : a = c, by apply trans; apply e1; apply H2,
have e3 : c = a, from e2⁻¹,
have e4 [visible] : b = a, from e1⁻¹,
have e5 : b = c, from e4 ⬝ e2,
... |
36a99a7a2ea033241ee09beb46ea50711ce3eb1a | a0e23cfdd129a671bf3154ee1a8a3a72bf4c7940 | /stage0/src/Lean/Elab/Term.lean | 0b48144ca334fd711f45153523c8b87363a65630 | [
"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 | 65,971 | 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, Sebastian Ullrich
-/
import Lean.ResolveName
import Lean.Util.Sorry
import Lean.Util.ReplaceExpr
import Lean.Structure
import Lean.Meta.ExprDefEq
import Lean.... |
f6eb1c60a68632fce07e81583ca9494da568b404 | 4d2583807a5ac6caaffd3d7a5f646d61ca85d532 | /src/group_theory/specific_groups/quaternion.lean | cc2948abfd190148b8d0794b8b2330b74cb5110b | [
"Apache-2.0"
] | permissive | AntoineChambert-Loir/mathlib | 64aabb896129885f12296a799818061bc90da1ff | 07be904260ab6e36a5769680b6012f03a4727134 | refs/heads/master | 1,693,187,631,771 | 1,636,719,886,000 | 1,636,719,886,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 8,154 | lean | /-
Copyright (c) 2021 Julian Kuelshammer. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Julian Kuelshammer
-/
import data.zmod.basic
import group_theory.order_of_element
import data.nat.basic
import tactic.interval_cases
import group_theory.specific_groups.dihedral
im... |
176dc9d06f3a2a78abc42e606e8dfd0876d80e09 | d1a52c3f208fa42c41df8278c3d280f075eb020c | /tests/lean/run/balg.lean | 03913e650e267946bd6c9e12c9dc204cdca4f0a8 | [
"Apache-2.0",
"LLVM-exception",
"NCSA",
"LGPL-3.0-only",
"LicenseRef-scancode-inner-net-2.0",
"BSD-3-Clause",
"LGPL-2.0-or-later",
"Spencer-94",
"LGPL-2.1-or-later",
"HPND",
"LicenseRef-scancode-pcre",
"ISC",
"LGPL-2.1-only",
"LicenseRef-scancode-other-permissive",
"SunPro",
"CMU-Mach"... | permissive | cipher1024/lean4 | 6e1f98bb58e7a92b28f5364eb38a14c8d0aae393 | 69114d3b50806264ef35b57394391c3e738a9822 | refs/heads/master | 1,642,227,983,603 | 1,642,011,696,000 | 1,642,011,696,000 | 228,607,691 | 0 | 0 | Apache-2.0 | 1,576,584,269,000 | 1,576,584,268,000 | null | UTF-8 | Lean | false | false | 2,467 | lean | import Lean
universe u
structure Magma where
α : Type u
mul : α → α → α
instance : CoeSort Magma (Type u) where
coe s := s.α
abbrev mul {M : Magma} (a b : M) : M :=
M.mul a b
set_option pp.all true
infixl:70 (priority := high) "*" => mul
structure Semigroup extends Magma where
mul_assoc (a b c : α) :... |
b6402c4f9820cc826a743c9ccebe821ea6c57612 | bbecf0f1968d1fba4124103e4f6b55251d08e9c4 | /src/category_theory/category/Cat.lean | ac6e85b33dc6a17d93348236deb6a977288d2243 | [
"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 | 2,517 | 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.concrete_category
import category_theory.discrete_category
import category_theory.eq_to_hom
/-!
# Category of categories
This file contains... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.