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
83772f1c303b6e932bba6188e66e71ed845094e0
e00ea76a720126cf9f6d732ad6216b5b824d20a7
/src/data/padics/padic_integers.lean
b5e9dabfcac58714a078babeac2b86c096e9261a
[ "Apache-2.0" ]
permissive
vaibhavkarve/mathlib
a574aaf68c0a431a47fa82ce0637f0f769826bfe
17f8340912468f49bdc30acdb9a9fa02eeb0473a
refs/heads/master
1,621,263,802,637
1,585,399,588,000
1,585,399,588,000
250,833,447
0
0
Apache-2.0
1,585,410,341,000
1,585,410,341,000
null
UTF-8
Lean
false
false
10,731
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, Mario Carneiro -/ import data.int.modeq data.padics.padic_numbers ring_theory.ideals ring_theory.algebra /-! # p-adic integers This file defines the p-adic integer...
bdfc07f89cdc255e5e8a8e211c54f656d9f7552a
74addaa0e41490cbaf2abd313a764c96df57b05d
/Mathlib/data/rat/meta_defs_auto.lean
0967ddb56202f0bc285ee80d0159ac0d02102ea1
[]
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
1,433
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 Mathlib.PrePort import Mathlib.Lean3Lib.init.default import Mathlib.data.rat.basic import Mathlib.tactic.core import Mathlib.PostPort namespace Mathlib /-!...
5432cf923f9f1f8da957d82c087e6a0206195f16
94637389e03c919023691dcd05bd4411b1034aa5
/src/zzz_junk/04_type_library_copy/00_empty.lean
84828f025dc5e1807493500def2a94a528e53645
[]
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
536
lean
namespace hidden /- The empty data type has no values/constructors at all. This fact becomes interesting and useful when one performs a case analysis on values of this type, as there are no cases to consider. -/ inductive empty : Type /- Exercise: Show that you can implement a function, e2n, that takes (assumes it's...
bbdff882a29b0c2e9e1139a486c452a8eec9adcf
fa02ed5a3c9c0adee3c26887a16855e7841c668b
/src/category_theory/limits/constructions/epi_mono.lean
1e39511d238e98e7874c73e154654a6ec19e9314
[ "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
1,459
lean
/- Copyright (c) 2021 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.pullbacks import category_theory.limits.shapes.binary_products import category_theory.limits.preserves.shapes.pullbacks /-! # Relati...
626bf77a1367fac758514bea38e00006ee0d663a
9be442d9ec2fcf442516ed6e9e1660aa9071b7bd
/stage0/src/Lean/Util.lean
e574e39ae6e0c3e843ac495c6a87474286d3ffe5
[ "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
733
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.CollectFVars import Lean.Util.CollectLevelParams import Lean.Util.CollectMVars import Lean.Util.FindMVar import Lean.Util.FindLevelMVar imp...
0c474cf8031bddb0239a6d4441cf3b2b62c67ad4
0533ebfa09b11cf8a29da118dd1b86b94949511e
/src/basic.lean
356166fd3e5ae3643ed9e0f2a77caee1ab0d90ab
[ "MIT" ]
permissive
wudcscheme/Lean-RH
89e9055aac68703876e750c23fb5327979a09822
870f78cc7c0715d03466d1211b0f032b425ec984
refs/heads/main
1,679,188,429,923
1,602,701,790,000
1,602,701,790,000
null
0
0
null
null
null
null
UTF-8
Lean
false
false
37,103
lean
/- ------------------------------------------------------------------------- -| | @project: riemann_hypothesis | | @file: basic.lean | | @author: Brandon H. Gomes and Alex Kontorovich ...
a06416c52233b5c91b7053901d82be5d1b08ac9a
4727251e0cd73359b15b664c3170e5d754078599
/src/set_theory/cardinal/divisibility.lean
0abd61ae6e5bad5ead96eff4c5fd697a8194d378
[ "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
5,181
lean
/- Copyright (c) 2022 Eric Rodriguez. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Eric Rodriguez -/ import algebra.is_prime_pow import set_theory.cardinal.ordinal /-! # Cardinal Divisibility We show basic results about divisibility in the cardinal numbers. This r...
f766b79fb01087ea081685be655af63e580e96a1
cf39355caa609c0f33405126beee2739aa3cb77e
/leanpkg/leanpkg/proc.lean
921e71b2f6f1379efd34550f0e785c9db7b5397f
[ "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
699
lean
/- Copyright (c) 2017 Microsoft Corporation. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Author: Gabriel Ebner -/ import system.io leanpkg.toml open io io.proc namespace leanpkg def exec_cmd (args : io.process.spawn_args) : io unit := do let cmdstr := join " " (args.cmd ::...
0f31ed28893e1940e64dad29ccb06a47a39d5c0d
22e97a5d648fc451e25a06c668dc03ac7ed7bc25
/src/data/complex/module.lean
c984ba2e819abf1180e26b6142c5945853e14ea6
[ "Apache-2.0" ]
permissive
keeferrowan/mathlib
f2818da875dbc7780830d09bd4c526b0764a4e50
aad2dfc40e8e6a7e258287a7c1580318e865817e
refs/heads/master
1,661,736,426,952
1,590,438,032,000
1,590,438,032,000
266,892,663
0
0
Apache-2.0
1,590,445,835,000
1,590,445,835,000
null
UTF-8
Lean
false
false
842
lean
/- Copyright (c) 2020 Alexander Bentkamp, Sébastien Gouëzel. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Alexander Bentkamp, Sébastien Gouëzel -/ import data.complex.basic import ring_theory.algebra /-! This file contains two instance, the fact the ℂ is an ℝ algebra...
32f7a979101d1d118d73bd0125598aa95611a85a
e514e8b939af519a1d5e9b30a850769d058df4e9
/src/lib_unused/interaction_monad.lean
c1ed1290c4bfe604c8ba4abaa44f1768f28b738e
[]
no_license
semorrison/lean-rewrite-search
dca317c5a52e170fb6ffc87c5ab767afb5e3e51a
e804b8f2753366b8957be839908230ee73f9e89f
refs/heads/master
1,624,051,754,485
1,614,160,817,000
1,614,160,817,000
162,660,605
0
1
null
null
null
null
UTF-8
Lean
false
false
725
lean
-- universes u v -- variable {state : Type} -- variables {α : Type u} {β : Type v} -- local notation `m` := interaction_monad state -- meta def interaction_monad_orelse_intercept_safe {α : Type u} (t₁ : m α) (t₂ : option (unit → format) → option pos → m α) (fallback : α) : m α := -- let t₃ : m α := do return fallback ...
ddad4e3b59f59189e3992ea699d98e9c6a16760f
cf39355caa609c0f33405126beee2739aa3cb77e
/tests/lean/run/app_builder_tac1.lean
fd3c0b5cb4300d3ff64df5f5aef2295bb083e647
[ "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
544
lean
open tactic list nat name set_option trace.app_builder true set_option pp.all true meta definition mk_ite (c a b : expr) : tactic expr := mk_mapp `ite [none, some c, none, some a, some b] example (a b : nat) : nat := by do a ← get_local `a, b ← get_local `b, mk_app `has_add.add [a, b] >>= trace, mk...
6d75bbcd908fe33bcde475478db869f5a675bfa2
48eee836fdb5c613d9a20741c17db44c8e12e61c
/src/util/meta/default.lean
4646e25009fbf720941301a6fc64e75b01a6504f
[ "Apache-2.0" ]
permissive
fgdorais/lean-universal
06430443a4abe51e303e602684c2977d1f5c0834
9259b0f7fb3aa83a9e0a7a3eaa44c262e42cc9b1
refs/heads/master
1,592,479,744,136
1,589,473,399,000
1,589,473,399,000
196,287,552
1
1
null
null
null
null
UTF-8
Lean
false
false
259
lean
-- Copyright © 2019 François G. Dorais. All rights reserved. -- Released under Apache 2.0 license as described in the file LICENSE. import .exceptional import .expr import .expr_ctx import .format import .ind_utils import .level import .name import .parser
eace03d560beac775279257eb8b52801de685e16
4efff1f47634ff19e2f786deadd394270a59ecd2
/src/data/holor.lean
cd3e35828d22c69fb53019e824a086d5c7a995d7
[ "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
14,178
lean
/- Copyright (c) 2018 Alexander Bentkamp. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Alexander Bentkamp -/ import algebra.module.pi algebra.big_operators.basic /-! # Basic properties of holors Holors are indexed collections of tensor coefficients. Confusingly, th...
37ae711f99173c2bceac34a1f6289326b8c91e89
01ae0d022f2e2fefdaaa898938c1ac1fbce3b3ab
/categories/universal/universal.lean
3e44d8b55b5b86085810d4aac6cd8937fb651eaa
[]
no_license
PatrickMassot/lean-category-theory
0f56a83464396a253c28a42dece16c93baf8ad74
ef239978e91f2e1c3b8e88b6e9c64c155dc56c99
refs/heads/master
1,629,739,187,316
1,512,422,659,000
1,512,422,659,000
113,098,786
0
0
null
1,512,424,022,000
1,512,424,022,000
null
UTF-8
Lean
false
false
5,796
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 .cones import ..util.hlist import ..util.finite open categories open categories.functor open categories.isomorphism open categories.initia...
ec7cd369f310183b512852cab3a825cfd71fe9e3
d1a52c3f208fa42c41df8278c3d280f075eb020c
/stage0/src/Leanpkg/Resolve.lean
57f76c1b02c79ad9b293478dd3e92b0dd18a9e13
[ "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
3,114
lean
/- Copyright (c) 2017 Microsoft Corporation. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Gabriel Ebner, Sebastian Ullrich -/ import Leanpkg.Manifest import Leanpkg.Proc import Leanpkg.Git open System namespace Leanpkg def Assignment := List (String × FilePath) n...
a01cd568c4061c80863985fc22d9c5f091f47eec
bbecf0f1968d1fba4124103e4f6b55251d08e9c4
/src/order/filter/at_top_bot.lean
e2a9244bc9fb7449866396d702c21b529431ffc0
[ "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
61,673
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...
640691fcb380216e0be613fe53d759ce8d827e4b
367134ba5a65885e863bdc4507601606690974c1
/src/data/nat/cast.lean
278ac9295dfef59ec099b91a93fbd95ec3b5c566
[ "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
10,582
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 algebra.ordered_field import data.nat.basic namespace nat variables {α : Type*} sectio...
18fd6c549d4d65582bcc87536d363aa513c8aea1
c8af905dcd8475f414868d303b2eb0e9d3eb32f9
/src/algebra/half_ring.lean
fee44653d97d19f1d68c697d300947bf4924ff84
[ "BSD-3-Clause" ]
permissive
continuouspi/lean-cpi
81480a13842d67ff5f3698643210d8ed5dd08de4
443bf2cb236feadc45a01387099c236ab2b78237
refs/heads/master
1,650,307,316,582
1,587,033,364,000
1,587,033,364,000
207,499,661
1
0
null
null
null
null
UTF-8
Lean
false
false
453
lean
import algebra.ring universe u /-- Some comm_ring which has a constant "half", where two halves add to 1. -/ class half_ring (α : Type u) extends comm_ring α := (half : α) (one_is_two_halves : 1 = half + half) @[priority 100] instance linear_ordered_field.to_half_ring (α : Type u) [linear_ordered_field α] : half...
82e2996d90f0e7c23111bc324a05206f78e3df5d
d436468d80b739ba7e06843c4d0d2070e43448e5
/src/data/set/lattice.lean
55f9de4ba217a3bdc92038830fae8374334a87e0
[ "Apache-2.0" ]
permissive
roro47/mathlib
761fdc002aef92f77818f3fef06bf6ec6fc1a28e
80aa7d52537571a2ca62a3fdf71c9533a09422cf
refs/heads/master
1,599,656,410,625
1,573,649,488,000
1,573,649,488,000
221,452,951
0
0
Apache-2.0
1,573,647,693,000
1,573,647,692,000
null
UTF-8
Lean
false
false
35,406
lean
/- Copyright (c) 2014 Jeremy Avigad. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Jeremy Avigad, Leonardo de Moura, Johannes Hölzl, Mario Carneiro -- QUESTION: can make the first argument in ∀ x ∈ a, ... implicit? -/ import logic.basic data.set.basic data.equiv.basi...
01cb0fffece6d2e640aa42527f87f9f6d6f470dc
8cae430f0a71442d02dbb1cbb14073b31048e4b0
/src/order/category/omega_complete_partial_order.lean
15b627c09c36761ce0ad0b2636ef671a8cd97771
[ "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,334
lean
/- Copyright (c) 2020 Simon Hudon. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Simon Hudon -/ import order.omega_complete_partial_order import category_theory.limits.shapes.products import category_theory.limits.shapes.equalizers import category_theory.limits.const...
1806f3404fa263716766f1584eea6e7c6c7fc38a
74addaa0e41490cbaf2abd313a764c96df57b05d
/Mathlib/Lean3Lib/init/algebra/functions_auto.lean
8dd631cf334e850fc520b64e82625353e88bdea2
[]
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
4,405
lean
/- Copyright (c) 2016 Microsoft Corporation. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Jeremy Avigad, Leonardo de Moura -/ import Mathlib.PrePort import Mathlib.Lean3Lib.init.algebra.order import Mathlib.Lean3Lib.init.meta.default universes u namespace Mathlib ...
4c0ed602123083ebfc14944680de2cb6ac59ebea
6432ea7a083ff6ba21ea17af9ee47b9c371760f7
/src/Lean/Elab/Inductive.lean
f3d98d0587b2cedffd9fdc80bb8e6bc47b747df7
[ "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
40,101
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.ForEachExprWhere import Lean.Util.ReplaceLevel import Lean.Util.ReplaceExpr import Lean.Util.CollectLevelParams import Lean.Meta.Constructi...
993c9111af8fd42c5d35053c1a8274b90df0e5b9
b7f22e51856f4989b970961f794f1c435f9b8f78
/tests/lean/run/nat_bug4.lean
db3c094f3515a3d2a63711d339cb56beffdbf268
[ "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
489
lean
import logic open eq.ops namespace experiment inductive nat : Type := | zero : nat | succ : nat → nat namespace nat definition add (x y : nat) : nat := nat.rec x (λn r, succ r) y infixl `+` := add definition mul (n m : nat) := nat.rec zero (fun m x, x + n) m infixl `*` := mul axiom mul_succ_right (n m : nat) : n * suc...
33142eb589a5d6aa603a0c63b596619690364378
05b503addd423dd68145d68b8cde5cd595d74365
/src/tactic/equiv_rw.lean
cdb126215d85b48f1c747bc4d6fdc304ca716681
[ "Apache-2.0" ]
permissive
aestriplex/mathlib
77513ff2b176d74a3bec114f33b519069788811d
e2fa8b2b1b732d7c25119229e3cdfba8370cb00f
refs/heads/master
1,621,969,960,692
1,586,279,279,000
1,586,279,279,000
null
0
0
null
null
null
null
UTF-8
Lean
false
false
11,308
lean
/- Copyright (c) 2019 Scott Morrison. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Scott Morrison -/ import category.equiv_functor /-! # The `equiv_rw` tactic transports goals or hypotheses along equivalences. The basic syntax is `equiv_rw e`, where `e : α ≃ β` is ...
346758bf274e65bd34bcd26c08381aa54ad7f414
94e33a31faa76775069b071adea97e86e218a8ee
/src/data/setoid/partition.lean
279e8a17421affc1bdcff102c7f56da18368db16
[ "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
16,769
lean
/- Copyright (c) 2019 Amelia Livingston. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Amelia Livingston, Bryan Gin-ge Chen, Patrick Massot -/ import data.fintype.basic import data.set.finite import data.setoid.basic import order.partition.finpartition /-! # Equival...
6f90d24f46c7baa0506d174f9f71198fee550ed2
efce24474b28579aba3272fdb77177dc2b11d7aa
/src/homotopy_theory/topological_spaces/disk_sphere.lean
4ba24742a59db25356c26d96c5e008cae78f9a75
[ "Apache-2.0" ]
permissive
rwbarton/lean-homotopy-theory
cff499f24268d60e1c546e7c86c33f58c62888ed
39e1b4ea1ed1b0eca2f68bc64162dde6a6396dee
refs/heads/lean-3.4.2
1,622,711,883,224
1,598,550,958,000
1,598,550,958,000
136,023,667
12
6
Apache-2.0
1,573,187,573,000
1,528,116,262,000
Lean
UTF-8
Lean
false
false
1,191
lean
import .pair import .precofibration_category noncomputable theory namespace homotopy_theory.topological_spaces open homotopy_theory.cylinder -- (Provisional?) inductive definition of the disk/sphere pair using cubes. def unit_pair : pair := pair.mk (*) ∅ def disk_sphere_pair (n : ℕ) : pair := nat.rec unit_pair (λ _ ...
4527daf2a021e4bfc4e87e9b7a8694d276216dfb
d406927ab5617694ec9ea7001f101b7c9e3d9702
/src/category_theory/category/PartialFun.lean
bef9af2a87470ef3a9a3a562df0b0d13d96a5e43
[ "Apache-2.0" ]
permissive
alreadydone/mathlib
dc0be621c6c8208c581f5170a8216c5ba6721927
c982179ec21091d3e102d8a5d9f5fe06c8fafb73
refs/heads/master
1,685,523,275,196
1,670,184,141,000
1,670,184,141,000
287,574,545
0
0
Apache-2.0
1,670,290,714,000
1,597,421,623,000
Lean
UTF-8
Lean
false
false
6,376
lean
/- Copyright (c) 2022 Yaël Dillies. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Yaël Dillies -/ import category_theory.category.Pointed import data.pfun /-! # The category of types with partial functions This defines `PartialFun`, the category of types equipped wi...
10662b4f4681196be59d09fc42dc1ef07f4aadc5
d406927ab5617694ec9ea7001f101b7c9e3d9702
/src/data/set/pairwise.lean
251ba470614af63266e82647be2c669fa21deb7a
[ "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
17,116
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 logic.relation import logic.pairwise import data.set.lattice /-! # Relations holding pairwise This file develops pairwise relations and defines pairwise disj...
116eb7b2b0054ac4283a9c54a019ea0d63e0498e
618003631150032a5676f229d13a079ac875ff77
/src/tactic/omega/int/form.lean
32b36b7a6977dd9d358581eb36cb6cd490beac54
[ "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
4,172
lean
/- Copyright (c) 2019 Seul Baek. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Author: Seul Baek Linear integer arithmetic formulas in pre-normalized form. -/ import tactic.omega.int.preterm namespace omega namespace int /-- Intermediate shadow syntax for LNA formulas that ...
66de935fdf03d8122d916ccb315760d5c00a27f5
eb26130db204786b069bd0025a0fc00ed6a75a37
/src/PFA1.lean
f55bc47e7379f5b08f129c05650f7b5a14f3ac6a
[]
no_license
ADedecker/functional-compare
2c8278552a88619e69c7f5fd7c6175f09eff5f7f
1683669a9a1fe81b058d2cc6e000a7144626e80d
refs/heads/master
1,671,063,268,800
1,599,641,367,000
1,599,641,367,000
293,919,218
0
1
null
1,599,641,369,000
1,599,596,672,000
Lean
UTF-8
Lean
false
false
899
lean
-- **Déclaration globale d'une constante** def x := 2 def y := x + 4 -- Attention, par défaut Lean voit *toujours* un entier naturel. -- Pour définir autre chose, il faut spécifier un type def z : ℤ := -4 -- **Déclaration globale d'une fonction** -- Directement : def square (n : ℤ) := n*n -- En utilisant une foncti...
37eb271e61b4e51a658c8cb062f73dd4e1da6873
93b17e1ec33b7fd9fb0d8f958cdc9f2214b131a2
/src/sep/quot.lean
c33c9b56b4c82fd43bb264e04a9eb81d6cc37449
[]
no_license
intoverflow/timesink
93f8535cd504bc128ba1b57ce1eda4efc74e5136
c25be4a2edb866ad0a9a87ee79e209afad6ab303
refs/heads/master
1,620,033,920,087
1,524,995,105,000
1,524,995,105,000
120,576,102
1
0
null
null
null
null
UTF-8
Lean
false
false
661
lean
/- Quotient algebras - -/ import .basic namespace Sep universe ℓ -- Quotient by an ideal def QuotAlg (A : Alg.{ℓ}) {I : Set A} (Iideal : I.Ideal) : Alg := { τ := {a // ¬ a ∈ I} , join := λ x₁ x₂ x₃, A.join x₁.1 x₂.1 x₃.1 , comm := λ x₁ x₂ x₃ H, A.comm H , assoc := λ x₁ x₂ x₃ x₁x₂ x₁x₂x₃ H₁₂ H₁₂₃ ...
2fbc1e687de07e74ec5ead6da6b98bafb6a7aeb1
74addaa0e41490cbaf2abd313a764c96df57b05d
/Mathlib/Lean3Lib/init/funext.lean
e9e166186a652f26081260212b699ccc5476ae32
[]
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,019
lean
/- Copyright (c) 2015 Microsoft Corporation. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Author: Jeremy Avigad Extensional equality for functions, and a proof of function extensionality from quotients. -/ import Mathlib.PrePort import Mathlib.Lean3Lib.init.data.quot import ...
c8912d297cbdf92c155a6366c6f4c85c47c165ac
85a51a7a118db552510ddb311e53e7a8bba7b477
/src/for_mathlib/filter_basic.lean
e9599b1e0d7a96563e372106454d1520045a1ed4
[]
no_license
ADedecker/nonstandard
f0c1cac7482bb0dd48d2f2eb092f5262ff0fa2dc
c32f5e1d87cc9e6410d66cf3080fd8c4a47cf5e4
refs/heads/master
1,686,549,196,023
1,626,129,788,000
1,626,129,788,000
382,594,533
3
0
null
null
null
null
UTF-8
Lean
false
false
465
lean
import order.filter.basic namespace filter lemma eventually.choice {α β : Type*} {r : α → β → Prop} {l : filter α} [l.ne_bot] (h : ∀ᶠ x in l, ∃ y, r x y) : ∃ f : α → β, ∀ᶠ x in l, r x (f x) := begin classical, use (λ x, if hx : ∃ y, r x y then classical.some hx else classical.some (classical.some_...
789ca24cf9b37727c203fc87c61e87c8312b4142
63abd62053d479eae5abf4951554e1064a4c45b4
/src/algebra/category/Module/basic.lean
0cfad71ec2d2cd603eca1952fcd7a2d773e2d76f
[ "Apache-2.0" ]
permissive
Lix0120/mathlib
0020745240315ed0e517cbf32e738d8f9811dd80
e14c37827456fc6707f31b4d1d16f1f3a3205e91
refs/heads/master
1,673,102,855,024
1,604,151,044,000
1,604,151,044,000
308,930,245
0
0
Apache-2.0
1,604,164,710,000
1,604,163,547,000
null
UTF-8
Lean
false
false
5,616
lean
/- Copyright (c) 2019 Robert A. Spencer. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Robert A. Spencer, Markus Himmel -/ import algebra.category.Group.basic import category_theory.concrete_category import category_theory.limits.shapes.kernels import category_theory....
4752a994b90589fb54202cf1ae51ab3ff316f488
b7f22e51856f4989b970961f794f1c435f9b8f78
/tests/lean/run/541a.lean
4cce67376bba434df6298870b9542ce9e9c5d4b0
[ "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
805
lean
import data.list data.nat open nat list eq.ops section variable {Q : Type} definition f : list Q → ℕ -- default if l is empty, else max l | [] := 0 | (h :: t) := f t + 1 theorem f_foo : ∀{l : list Q}, ∀{q : Q}, q ∈ l → f l ≥ 1 | [] := take q, assume Hq, absurd Hq !not_mem_nil | [h] ...
566b3769c0c53785adaa59ed25f8844e9ee1c713
b7f22e51856f4989b970961f794f1c435f9b8f78
/hott/homotopy/hopf.hlean
5300e9c3c39db89b57b4388e72b6d39f731eb977
[ "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
6,787
hlean
/- Copyright (c) 2016 Ulrik Buchholtz and Egbert Rijke. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Ulrik Buchholtz, Egbert Rijke H-spaces and the Hopf construction -/ import types.equiv .wedge .join open eq eq.ops equiv is_equiv is_conn is_trunc trunc susp join ...
28230da916d9df7914f445811e15c2816cc658f6
28be2ab6091504b6ba250b367205fb94d50ab284
/src/game/world8/level5.lean
1e164cc00a0d9c22ce55031745b82a57b7a8db56
[ "Apache-2.0" ]
permissive
postmasters/natural_number_game
87304ac22e5e1c5ac2382d6e523d6914dd67a92d
38a7adcdfdb18c49c87b37831736c8f15300d821
refs/heads/master
1,649,856,819,031
1,586,444,676,000
1,586,444,676,000
255,006,061
0
0
Apache-2.0
1,586,664,599,000
1,586,664,598,000
null
UTF-8
Lean
false
false
954
lean
import mynat.definition -- hide import mynat.add -- hide import game.world8.level4 -- hide namespace mynat -- hide /- # Advanced Addition World ## Level 5: `add_right_cancel` The theorem `add_right_cancel` is the theorem that you can cancel on the left when you're doing addition -- if `a + t = b + t` then `a = b`. ...
1d0f6d29535540f821d4b3ddf3594ddc41f1ae1a
205f0fc16279a69ea36e9fd158e3a97b06834ce2
/src/01_Equality/07_tactics.lean
4ab9649269b1a45cf8d5d4ba499ff8423424a6b2
[]
no_license
kevinsullivan/cs-dm-lean
b21d3ca1a9b2a0751ba13fcb4e7b258010a5d124
a06a94e98be77170ca1df486c8189338b16cf6c6
refs/heads/master
1,585,948,743,595
1,544,339,346,000
1,544,339,346,000
155,570,767
1
3
null
1,541,540,372,000
1,540,995,993,000
Lean
UTF-8
Lean
false
false
3,190
lean
/- We've already seen that we can assert that a proposition is true by defining a variable to have that proposition as its type, and we can prove the proposition by assigning a proof term to the variable. -/ lemma zeqz : 0 = 0 := eq.refl 0 /- Sometimes it's harder to write an exact proof term (here, eq.refl 0). In th...
b3ecb9f49ac670ae9dc2298dd4f1dab582b44021
592ee40978ac7604005a4e0d35bbc4b467389241
/Library/generated/mathscheme-lean/MultGroup.lean
aa1ae2da8fef4938d38cd22ce407041f15395182
[]
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,582
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 MultGroup structure MultGroup (A : Type) : Type := (times : (A → (A → A))) (one : A) (lunit_one : (∀ {x : A} , (times one x) = x)) (runit_one : (∀...
fbe4a7e14463079c2bf19f71f52f80a8065174be
fcf3ffa92a3847189ca669cb18b34ef6b2ec2859
/src/world8/level6.lean
9a8f4831a7f9127d004fd076b44828645de162e6
[ "Apache-2.0" ]
permissive
nomoid/lean-proofs
4a80a97888699dee42b092b7b959b22d9aa0c066
b9f03a24623d1a1d111d6c2bbf53c617e2596d6a
refs/heads/master
1,674,955,317,080
1,607,475,706,000
1,607,475,706,000
314,104,281
0
0
null
null
null
null
UTF-8
Lean
false
false
281
lean
import mynat.definition import mynat.add import world2.level4 import world8.level5 namespace mynat theorem add_left_cancel (a t b : mynat) : t + a = t + b → a = b := begin [nat_num_game] rw add_comm t a, rw add_comm t b, exact add_right_cancel a t b, end end mynat
b29d2a96c55f6b9a8741d1d45adf0c0c4ecd8679
4dbc106f944ae08d9082a937156fe53f8241336c
/src/data/finmap.lean
d979a55fcc495dc4a9a17baba54aa242f7303540
[]
no_license
spl/lean-finmap
feff7ee53811b172531f84b20c02e50c787fe6fc
936d9caeb27631e3c6cf20e972de4837c9fe98fa
refs/heads/master
1,584,501,090,642
1,537,511,660,000
1,537,515,626,000
134,227,269
0
0
null
null
null
null
UTF-8
Lean
false
false
18,204
lean
import data.finset data.multiset.dict data.pfun logic.function local attribute [-simp] sigma.forall sigma.exists universes u v /-- Finite map: a multiset of dependent pairs with no duplicate keys -/ structure finmap (α : Type u) (β : α → Type v) : Type (max u v) := (val : multiset (sigma β)) (nodupkeys : val.nodupke...
182beb9c2d63ec11c04259eb621248e22c1344d3
d406927ab5617694ec9ea7001f101b7c9e3d9702
/src/linear_algebra/matrix/basis.lean
6064a764e2492a504d76111c09dd873f707d9a2c
[ "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
9,889
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, Patrick Massot, Casper Putz, Anne Baanen -/ import linear_algebra.matrix.nonsingular_inverse import linear_algebra.matrix.reindex import linear_algebra.matrix.to_lin /...
f2a566108696d9467a9c2a23d44216f6d664ce84
4727251e0cd73359b15b664c3170e5d754078599
/src/geometry/manifold/cont_mdiff.lean
9839fc53ae3ba91f6ad9b9c528895cb9c32d6372
[ "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
83,343
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 geometry.manifold.mfderiv import geometry.manifold.local_invariant_properties /-! # Smooth functions between smooth manifolds We define `Cⁿ` functions...
7501b4310a984219c08d035352714736d6a7467d
0c1546a496eccfb56620165cad015f88d56190c5
/library/init/algebra/ac.lean
76c644b44904d26c7c9f2055ff44d424f1d34340
[ "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
422
lean
/- Copyright (c) 2016 Microsoft Corporation. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Leonardo de Moura -/ prelude import init.logic universe variables u class is_associative (α : Type u) (op : α → α → α) := (assoc : ∀ a b c, op (op a b) c = op a (op b c)) clas...
50914a4633af85a5c447874165535507517a4004
618003631150032a5676f229d13a079ac875ff77
/src/topology/algebra/infinite_sum.lean
cef208725e4cc2c5b999d2144f759cdb94e01aec
[ "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
35,430
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 Infinite sum over a topological monoid This sum is known as unconditionally convergent, as it sums to the same value under all possible permutations. For Euclidean spa...
470f40430f026099612f90a804ff5f812ac528fd
8cae430f0a71442d02dbb1cbb14073b31048e4b0
/src/analysis/inner_product_space/calculus.lean
74af70e275aee63c43cfde7969e3263e83e953dc
[ "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
15,743
lean
/- Copyright (c) 2020 Yury Kudryashov. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Yury Kudryashov -/ import analysis.inner_product_space.pi_L2 import analysis.special_functions.sqrt /-! # Calculus in inner product spaces > THIS FILE IS SYNCHRONIZED WITH MATHLIB4....
00b543c0cad8a54ba07def01eefb54bc2582d14c
ccb7cdf8ebc2d015a000e8e7904952a36b910425
/src/example.lean
9aba2f52171e92372430ceead8f797fea93b3da8
[]
no_license
cipher1024/lean-pl
f7258bda55606b75e3e39deaf7ce8928ed177d66
829680605ac17e91038d793c0188e9614353ca25
refs/heads/master
1,592,558,951,987
1,565,043,356,000
1,565,043,531,000
196,661,367
1
0
null
null
null
null
UTF-8
Lean
false
false
19,275
lean
import spec namespace examples namespace circular_buffer export memory (ptr) open separation separation.hProp def val := ptr @[reducible] def IO (α : Type) := ST val punit α open function list instance ptr.storable : is_record val ptr := separation.separation.is_record instance tptr.storable {α} : is_record val ...
5b5444fbe13d7b47aa938a2cbe610ccaae7bbc44
5e3548e65f2c037cb94cd5524c90c623fbd6d46a
/src_icannos_totilas/applications_lineaires/cpge_applin_5_b.lean
0cb2ec5250931cdc2d66540bda9e9569fa693fbd
[]
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
404
lean
import algebra.module.linear_map import linear_algebra.basic import data.real.basic theorem cpge_applin_5_b (R : Type*) (M : Type*) (X : Type*) [field R] [add_comm_group M] [module R M] [set X] [add_comm_group (X -> M)] [module R (X -> M)] : ∀ (a : X), ∃ g : linear_map R (X->M) M, ((λf : X -> M, f a) = g ∧ (g.ker....
dab862b06698334f96a956fccb4ee04ffeecc9ce
a0e23cfdd129a671bf3154ee1a8a3a72bf4c7940
/stage0/src/Lean/Elab/Util.lean
3f9d4f7136e5f758e8aa7e741feb010bb405fade
[ "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
7,733
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.Trace import Lean.Parser.Syntax import Lean.Parser.Extension import Lean.KeyedDeclsAttribute import Lean.Elab.Exception namespace Lean de...
f6a444c1abb005367c19f4b25fe0d8e3ce9f9173
5756a081670ba9c1d1d3fca7bd47cb4e31beae66
/Mathport/Syntax/Transform/Tactic.lean
e88f8c225e2bccb57e790b2a0861b44923b14e35
[ "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
5,489
lean
/- Copyright (c) 2021 Microsoft Corporation. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Gabriel Ebner -/ import Mathport.Syntax.Transform.Basic import Lean namespace Mathport namespace Transform open Lean Elab Mathlib.Tactic def trHaveArgs (id : TSyntax ``optBind...
547f957fa84d766a0ecba33d51dd04646e8bed31
737dc4b96c97368cb66b925eeea3ab633ec3d702
/tests/lean/hidingInaccessibleNames.lean
fffa3cbb52643c638884d1b6cb6476a10d3e7563
[ "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
688
lean
def f : (xs : List Nat) → Nat → xs ≠ [] → Nat | [], _, _ => _ | [a,b], _, _ => _ | _, _, _ => _ set_option pp.inaccessibleNames true in def f' : (xs : List Nat) → Nat → xs ≠ [] → Nat | [], _, _ => _ -- TODO: figure out why hyp `Ne (α := List Nat) x✝² []` needs α | [a,b], _, _ => _ | _, _, _ => _ theorem ...
05845c7f64f3971dd3361af9afb9724c8940d325
4e0d7c3132ce31edc5829849735dd25db406b144
/lean/love03_forward_proofs_exercise_sheet.lean
860b8f1c7799615e1cbd140b3b589d65b9752673
[]
no_license
gonzalgu/logical_verification_2020
a0013a6c22ea254e9f4d245f2948f0f4d44df4bb
724d0457dff2c3ff10f9ab2170388f4c5e958b75
refs/heads/master
1,660,886,374,533
1,589,859,641,000
1,589,859,641,000
256,069,971
0
0
null
1,586,997,430,000
1,586,997,429,000
null
UTF-8
Lean
false
false
4,020
lean
import .lovelib /-! # LoVe Exercise 3: Forward Proofs -/ set_option pp.beta true namespace LoVe /-! ## Question 1: Connectives and Quantifiers 1.1. Supply structured proofs of the following lemmas. -/ lemma I (a : Prop) : a → a := assume ha : a, show a, from ha lemma K (a b : Prop) : a → b → b := assume ...
6454a052fa1c1d38917ce7f1dfe5437e5969ccf3
4d2583807a5ac6caaffd3d7a5f646d61ca85d532
/src/linear_algebra/direct_sum/finsupp.lean
e3f7e6ddc13a7798a46aacb4cd1232631c1b0633
[ "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,664
lean
/- Copyright (c) 2019 Johannes Hölzl. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Johannes Hölzl -/ import algebra.direct_sum.finsupp import linear_algebra.finsupp import linear_algebra.direct_sum.tensor_product import data.finsupp.to_dfinsupp /-! # Results on fini...
b7c420d53f9626f14457f8c4138ebb424606260e
5df84495ec6c281df6d26411cc20aac5c941e745
/src/formal_ml/classical.lean
181362b07797273f5e26ca8a8529352828857fb1
[ "Apache-2.0" ]
permissive
eric-wieser/formal-ml
e278df5a8df78aa3947bc8376650419e1b2b0a14
630011d19fdd9539c8d6493a69fe70af5d193590
refs/heads/master
1,681,491,589,256
1,612,642,743,000
1,612,642,743,000
360,114,136
0
0
Apache-2.0
1,618,998,189,000
1,618,998,188,000
null
UTF-8
Lean
false
false
1,151
lean
/- Copyright 2020 Google LLC Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software di...
adb574701eeb221ea6c8058cb70eb7f68e0be9b0
8cae430f0a71442d02dbb1cbb14073b31048e4b0
/src/category_theory/idempotents/karoubi.lean
7913e1a3cc043887b0338d205f0f8b8f2218e887
[ "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
9,332
lean
/- Copyright (c) 2022 Joël Riou. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Joël Riou -/ import category_theory.idempotents.basic import category_theory.preadditive.additive_functor import category_theory.equivalence /-! # The Karoubi envelope of a category > TH...
d807997c055b45b73715e6a67f15cd78f26e577a
8cae430f0a71442d02dbb1cbb14073b31048e4b0
/src/analysis/calculus/deriv/linear.lean
45198e21eb2b0c3af9f9f1bbbdea9ec1007fb90e
[ "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,762
lean
/- Copyright (c) 2019 Gabriel Ebner. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Gabriel Ebner, Yury Kudryashov -/ import analysis.calculus.deriv.basic import analysis.calculus.fderiv.linear /-! # Derivatives of continuous linear maps from the base field > THIS FI...
34cd4c2403d1c0be88970680c6a3f730ef86825b
a047a4718edfa935d17231e9e6ecec8c7b701e05
/src/data/setoid/basic.lean
32be4b9f1fc73b9b40b97842867fdb30c2ecc3c9
[ "Apache-2.0" ]
permissive
utensil-contrib/mathlib
bae0c9fafe5e2bdb516efc89d6f8c1502ecc9767
b91909e77e219098a2f8cc031f89d595fe274bd2
refs/heads/master
1,668,048,976,965
1,592,442,701,000
1,592,442,701,000
273,197,855
0
0
null
1,592,472,812,000
1,592,472,811,000
null
UTF-8
Lean
false
false
16,458
lean
/- Copyright (c) 2019 Amelia Livingston. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Amelia Livingston, Bryan Gin-ge Chen -/ import order.galois_connection /-! # Equivalence relations This file defines the complete lattice of equivalence relations on a type, resul...
efdb80ac52738c085fe156118d7f70b8982eabc0
947fa6c38e48771ae886239b4edce6db6e18d0fb
/src/algebra/lie/submodule.lean
41df037476c8d4b941f3a24714498fbed3f7d8c1
[ "Apache-2.0" ]
permissive
ramonfmir/mathlib
c5dc8b33155473fab97c38bd3aa6723dc289beaa
14c52e990c17f5a00c0cc9e09847af16fabbed25
refs/heads/master
1,661,979,343,526
1,660,830,384,000
1,660,830,384,000
182,072,989
0
0
null
1,555,585,876,000
1,555,585,876,000
null
UTF-8
Lean
false
false
38,419
lean
/- Copyright (c) 2021 Oliver Nash. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Oliver Nash -/ import algebra.lie.subalgebra import ring_theory.noetherian /-! # Lie submodules of a Lie algebra In this file we define Lie submodules and Lie ideals, we construct the l...
a89c44e5afc16c6b2c0a88cb1133e3e2a4218980
8cae430f0a71442d02dbb1cbb14073b31048e4b0
/test/instance_cache.lean
8a2dd531378dbe6957a986e2366fa0a49575dc5c
[ "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,333
lean
import tactic.cache meta def assert_frozen_instances : tactic unit := do frozen ← tactic.frozen_local_instances, when frozen.is_none $ tactic.fail "instances are not frozen" example (α) (a : α) := begin haveI h : inhabited α := ⟨a⟩, assert_frozen_instances, exact (default : α) end example (α) (a : α) := begin ...
c843ec6bd1ff893dd5d2a3968446907ef2e17be7
206422fb9edabf63def0ed2aa3f489150fb09ccb
/src/data/polynomial/degree/definitions.lean
4b8522c523db61e7fb83450e9e972ea66deefb23
[ "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
36,635
lean
/- Copyright (c) 2018 Chris Hughes. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Chris Hughes, Johannes Hölzl, Scott Morrison, Jens Wagemaker -/ import data.polynomial.coeff import data.nat.with_bot /-! # Theory of univariate polynomials The definitions include `de...
5e0ffc95b517a0307396d66c3f587951619bbac2
9dc8cecdf3c4634764a18254e94d43da07142918
/src/ring_theory/polynomial/eisenstein.lean
096d48fa5725161227460809c15e25079f7967b1
[ "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
28,673
lean
/- Copyright (c) 2022 Riccardo Brasca. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Riccardo Brasca -/ import ring_theory.eisenstein_criterion import ring_theory.integrally_closed import ring_theory.norm import ring_theory.polynomial.cyclotomic.basic /-! # Eisenste...
567c5a9598b90ed9789fe5d6d3ce7a0563429655
22e97a5d648fc451e25a06c668dc03ac7ed7bc25
/src/analysis/calculus/inverse.lean
7c16c32bba91a43a5a1b22981c717a45e7b97b9f
[ "Apache-2.0" ]
permissive
keeferrowan/mathlib
f2818da875dbc7780830d09bd4c526b0764a4e50
aad2dfc40e8e6a7e258287a7c1580318e865817e
refs/heads/master
1,661,736,426,952
1,590,438,032,000
1,590,438,032,000
266,892,663
0
0
Apache-2.0
1,590,445,835,000
1,590,445,835,000
null
UTF-8
Lean
false
false
21,344
lean
/- Copyright (c) 2020 Yury Kudryashov. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Yury Kudryashov. -/ import analysis.calculus.deriv import topology.local_homeomorph import topology.metric_space.contracting /-! # Inverse function theorem In this file we prove the...
19a6184b5a42a3b5fe378d0b1975fda351786226
de91c42b87530c3bdcc2b138ef1a3c3d9bee0d41
/expressions/expr_base.lean
4e26a090b8fa4803295869038ae2f886c42b31b9
[]
no_license
kevinsullivan/lang
d3e526ba363dc1ddf5ff1c2f36607d7f891806a7
e9d869bff94fb13ad9262222a6f3c4aafba82d5e
refs/heads/master
1,687,840,064,795
1,628,047,969,000
1,628,047,969,000
282,210,749
0
1
null
1,608,153,830,000
1,595,592,637,000
Lean
UTF-8
Lean
false
false
30
lean
structure var := (nm : string)
5a2f1fda49481cf99ec925ee41ebdae25b8f1d4f
624f6f2ae8b3b1adc5f8f67a365c51d5126be45a
/tests/bench/rbmap4.lean
91770084467a7000aacf0cd6f3d80ede95f74704
[ "Apache-2.0" ]
permissive
mhuisi/lean4
28d35a4febc2e251c7f05492e13f3b05d6f9b7af
dda44bc47f3e5d024508060dac2bcb59fd12e4c0
refs/heads/master
1,621,225,489,283
1,585,142,689,000
1,585,142,689,000
250,590,438
0
2
Apache-2.0
1,602,443,220,000
1,585,327,814,000
C
UTF-8
Lean
false
false
2,845
lean
/- Copyright (c) 2017 Microsoft Corporation. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Leonardo de Moura -/ prelude import init.coe init.data.option.basic init.system.io universes u v w w' inductive color | Red | Black inductive Tree | Leaf {} ...
882985587a8169eca6b51248f26d053bbbaf33e7
4d2583807a5ac6caaffd3d7a5f646d61ca85d532
/src/algebraic_geometry/Scheme.lean
64bd4103cb64943aadee4400a415e4625c9aed32
[ "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,767
lean
/- Copyright (c) 2020 Scott Morrison. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Scott Morrison -/ import algebraic_geometry.Spec /-! # The category of schemes A scheme is a locally ringed space such that every point is contained in some open set where there is a...
5af13a1b1c8a164e1c39b96219bb057793570bb6
8cae430f0a71442d02dbb1cbb14073b31048e4b0
/src/category_theory/monad/limits.lean
31bac6c46e2d7419ebe02d48930812df5d6e46fc
[ "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
15,339
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 import category_theory.limits.shapes.terminal /-! # Limits and colimit...
b1c47d318f4d8c248dbd9d14382c8d130eb203b8
19cc34575500ee2e3d4586c15544632aa07a8e66
/src/number_theory/arithmetic_function.lean
ad3dd53b5c0ab6330c1645177a3eb8df106e5b75
[ "Apache-2.0" ]
permissive
LibertasSpZ/mathlib
b9fcd46625eb940611adb5e719a4b554138dade6
33f7870a49d7cc06d2f3036e22543e6ec5046e68
refs/heads/master
1,672,066,539,347
1,602,429,158,000
1,602,429,158,000
null
0
0
null
null
null
null
UTF-8
Lean
false
false
18,918
lean
/- Copyright (c) 2020 Aaron Anderson. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Aaron Anderson -/ import algebra.big_operators.ring import number_theory.divisors /-! # Arithmetic Functions and Dirichlet Convolution This file defines arithmetic functions, which a...
5e6c8c5d49e5d0586af71efb7fb6d82409035bd0
cf39355caa609c0f33405126beee2739aa3cb77e
/tests/lean/pp_no_proofs.lean
8899794a56a8f189f6a9de05917b447458af6ffa
[ "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
392
lean
-- open nat constants (P : ∀ {t:true}, ℕ → Prop) (P0 : @P trivial 0) (Ps : ∀ {n}, @P trivial n → @P trivial (succ n)) (f : Π {n}, @P trivial n → ℕ) noncomputable definition messy := f (Ps (Ps (Ps (Ps (Ps (Ps P0)))))) #reduce messy set_option pp.proofs false #reduce messy set_option pp.implicit tr...
5abbd85c9b718bd727d6195bafdb2091a37e0fa0
fa02ed5a3c9c0adee3c26887a16855e7841c668b
/src/category_theory/sums/default.lean
bc466880ac5de4a49561acb67a7ac496f70f9758
[ "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
39
lean
import category_theory.sums.associator
4797008664ed6a2bf219edef5e08cf1101ba02f3
367134ba5a65885e863bdc4507601606690974c1
/src/group_theory/group_action/basic.lean
fa82ace2bc3d5f8b1c031ee3de539a77f4b67b9a
[ "Apache-2.0" ]
permissive
kodyvajjha/mathlib
9bead00e90f68269a313f45f5561766cfd8d5cad
b98af5dd79e13a38d84438b850a2e8858ec21284
refs/heads/master
1,624,350,366,310
1,615,563,062,000
1,615,563,062,000
162,666,963
0
0
Apache-2.0
1,545,367,651,000
1,545,367,651,000
null
UTF-8
Lean
false
false
7,617
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.group_action.defs import group_theory.group_action.group import group_theory.coset /-! # Basic properties of group actions -/ universes u v w variab...
aa382f0b3db9f89f56cf382af3e710b9732609d4
4727251e0cd73359b15b664c3170e5d754078599
/src/data/list/lattice.lean
5cc1b81d6474ab8afec94612ebc03896063a0153
[ "Apache-2.0" ]
permissive
Vierkantor/mathlib
0ea59ac32a3a43c93c44d70f441c4ee810ccceca
83bc3b9ce9b13910b57bda6b56222495ebd31c2f
refs/heads/master
1,658,323,012,449
1,652,256,003,000
1,652,256,003,000
209,296,341
0
1
Apache-2.0
1,568,807,655,000
1,568,807,655,000
null
UTF-8
Lean
false
false
11,457
lean
/- Copyright (c) 2014 Parikshit Khanna. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Parikshit Khanna, Jeremy Avigad, Leonardo de Moura, Floris van Doorn, Mario Carneiro, Scott Morrison -/ import data.list.count import data.list.infix /-! # Lattice structure of list...
7d0eda2da7e206e77e723845dc6fc8c14ac3ec01
8cae430f0a71442d02dbb1cbb14073b31048e4b0
/src/linear_algebra/linear_pmap.lean
a20d1d6a41afbf451481deb185e99c8343ddf7b5
[ "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
30,111
lean
/- Copyright (c) 2020 Yury Kudryashov All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Yury Kudryashov, Moritz Doll -/ import linear_algebra.basic import linear_algebra.prod /-! # Partially defined linear maps > THIS FILE IS SYNCHRONIZED WITH MATHLIB4. > Any changes to...
489630bbe0c5357512e190b6b59e6130140c9a46
57aec6ee746bc7e3a3dd5e767e53bd95beb82f6d
/stage0/src/Lean/Meta/InferType.lean
6f8235b51f16973f1b926d96387623f36b3cd761
[ "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
17,260
lean
/- Copyright (c) 2019 Microsoft Corporation. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Leonardo de Moura -/ import Lean.Data.LBool import Lean.Meta.Basic namespace Lean /- Auxiliary function for instantiating the loose bound variables in `e` with `args[start:sto...
77793b4650b86d217ffe3984568e76b9a67b7e4d
92b50235facfbc08dfe7f334827d47281471333b
/tests/lean/run/forest_height.lean
aa9460f6a4595851d8cd59c1debde7a6be5dbb68
[ "Apache-2.0" ]
permissive
htzh/lean
24f6ed7510ab637379ec31af406d12584d31792c
d70c79f4e30aafecdfc4a60b5d3512199200ab6e
refs/heads/master
1,607,677,731,270
1,437,089,952,000
1,437,089,952,000
37,078,816
0
0
null
1,433,780,956,000
1,433,780,955,000
null
UTF-8
Lean
false
false
4,298
lean
import data.nat.basic data.sum data.sigma data.bool open nat sigma inductive tree (A : Type) : Type := | node : A → forest A → tree A with forest : Type := | nil : forest A | cons : tree A → forest A → forest A namespace manual check tree.rec_on definition tree.height {A : Type} (t : tree A) : nat := tree.rec_on t ...
f6ec15693cdbaf4498cdd2f90caf02b163c77a4b
3618c6e11aa822fd542440674dfb9a7b9921dba0
/src/solve.lean
1acda6b507c2cce6c71ac7e29bfe2f1062694cc7
[]
no_license
ChrisHughes24/single_relation
99ceedcc02d236ce46d6c65d72caa669857533c5
057e157a59de6d0e43b50fcb537d66792ec20450
refs/heads/master
1,683,652,062,698
1,683,360,089,000
1,683,360,089,000
279,346,432
0
0
null
null
null
null
UTF-8
Lean
false
false
13,473
lean
import exp_sum_eq_zero import base_case import choose_letters import no_exp_sum_zero import solve_by_subst import no_letters import golf open semidirect_product meta def solve : Π ⦃ι : Type⦄ [decidable_eq ι] (r : free_group ι) (T : set ι) [decidable_pred T], by exactI solver r T := λ ι _ r T _ w, by exactI let ...
3c7610d8c4f25b1e0a5f32faaa9cbbf879080d74
8cd4726d66eec7673bcc0325fed07d5ba5bf17c4
/hw4.lean
424b95da73af3cb2c47a043f41a89a44ac838a72
[]
no_license
justinqcai/CS2102
8c5fddedffa6147fedd4b6ee7d5d39fc21f0ddab
d309f0db3f1df52eb77206ee1e8665a3b49d7a0c
refs/heads/master
1,590,108,991,894
1,557,610,044,000
1,557,610,044,000
186,064,169
0
0
null
null
null
null
UTF-8
Lean
false
false
5,214
lean
/- 0. Read the class notes through Section 3.7, Implication. It is important that you do this before classes next week, as we will move somewhat quickly through a few of these chapters. To complete the rest of this homework, solve the problems given as specified, then save and submit this file. -/ /- 1. Show tha...
b7a26d5fe6d3a13226bf813a1b7dd0b70bad97b4
e0f9ba56b7fedc16ef8697f6caeef5898b435143
/src/algebra/group/basic.lean
2ea391779086364e7bcd9e4b65f8822994450cce
[ "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
9,769
lean
/- Copyright (c) 2014 Jeremy Avigad. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Jeremy Avigad, Simon Hudon, Mario Carneiro -/ import algebra.group.to_additive import logic.function.basic attribute [simp] sub_neg_eq_add /-! # Extra identities for semigroups, monoi...
dce09d43ca47441b50cca58acc8a79ef3d715c53
4727251e0cd73359b15b664c3170e5d754078599
/src/data/finset/sigma.lean
6b24cf5fc1a91c2b1c1ca4bc612eda122a89e159
[ "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
5,822
lean
/- Copyright (c) 2017 Mario Carneiro. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Mario Carneiro, Yaël Dillies, Bhavik Mehta -/ import data.finset.lattice import data.set.sigma /-! # Finite sets in a sigma type This file defines a few `finset` constructions on `Σ ...
f8169f0394b6fd64e6f7d7bc0923d60631a0bf1a
ea11767c9c6a467c4b7710ec6f371c95cfc023fd
/src/monoidal_categories/examples/types/monoidal_category_of_types.lean
dd155d68c86afa0ded0f6203b885b94fb36dc654
[]
no_license
RitaAhmadi/lean-monoidal-categories
68a23f513e902038e44681336b87f659bbc281e0
81f43e1e0d623a96695aa8938951d7422d6d7ba6
refs/heads/master
1,651,458,686,519
1,529,824,613,000
1,529,824,613,000
null
0
0
null
null
null
null
UTF-8
Lean
false
false
686
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 ...braided_monoidal_category import ...monoidal_structure_from_products import categories.types namespace categories.types open categorie...
29c0c840114ae490f6ab00e77cc935cd63c1af39
ebf7140a9ea507409ff4c994124fa36e79b4ae35
/src/hints/category_theory/exercise3/hint6.lean
1e7a339977c0d03f1523ac608c78e1aefc6c890f
[]
no_license
fundou/lftcm2020
3e88d58a92755ea5dd49f19c36239c35286ecf5e
99d11bf3bcd71ffeaef0250caa08ecc46e69b55b
refs/heads/master
1,685,610,799,304
1,624,070,416,000
1,624,070,416,000
null
0
0
null
null
null
null
UTF-8
Lean
false
false
574
lean
import category_theory.equivalence open category_theory variables {C : Type*} [category C] variables {D : Type*} [category D] /-! Let's get started on the second half of the exercise. -/ lemma equiv_preserves_mono {X Y : C} (f : X ⟶ Y) [mono f] (e : C ≌ D) : mono (e.functor.map f) := begin -- Again I've started...
2b11fe978f3f060a4121848b85b5004b5b9d043c
a4673261e60b025e2c8c825dfa4ab9108246c32e
/stage0/src/Lean/ToExpr.lean
fcefb058763d2b3dab9dd503807656dc4ff95102
[ "Apache-2.0" ]
permissive
jcommelin/lean4
c02dec0cc32c4bccab009285475f265f17d73228
2909313475588cc20ac0436e55548a4502050d0a
refs/heads/master
1,674,129,550,893
1,606,415,348,000
1,606,415,348,000
null
0
0
null
null
null
null
UTF-8
Lean
false
false
2,697
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.Expr universe u namespace Lean class ToExpr (α : Type u) := (toExpr : α → Expr) (toTypeExpr : Expr) export ToExpr (toExpr toTypeExpr) in...
79be5ea330d59bb048a3b298a169756d92e6a013
fa02ed5a3c9c0adee3c26887a16855e7841c668b
/src/ring_theory/simple_module.lean
86aa419277002afd04885167f791303b8a9c35a4
[ "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
5,319
lean
/- Copyright (c) 2020 Aaron Anderson. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Aaron Anderson -/ import linear_algebra.basic import order.atoms /-! # Simple Modules ## Main Definitions * `is_simple_module` indicates that a module has no proper submodules (...
8748457a236594403b40367e9b21ea4d6e3b80cd
367134ba5a65885e863bdc4507601606690974c1
/src/topology/metric_space/isometry.lean
8bf04ee6637d2a6b9617575b85dd14a063a56665
[ "Apache-2.0" ]
permissive
kodyvajjha/mathlib
9bead00e90f68269a313f45f5561766cfd8d5cad
b98af5dd79e13a38d84438b850a2e8858ec21284
refs/heads/master
1,624,350,366,310
1,615,563,062,000
1,615,563,062,000
162,666,963
0
0
Apache-2.0
1,545,367,651,000
1,545,367,651,000
null
UTF-8
Lean
false
false
18,952
lean
/- Copyright (c) 2018 Sébastien Gouëzel. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Isometries of emetric and metric spaces Authors: Sébastien Gouëzel -/ import topology.bounded_continuous_function import topology.compacts /-! # Isometries We define isometries, i.e., maps...
1f2224314c8d884eb85d1af35fc1bcf9d23029a3
3f7026ea8bef0825ca0339a275c03b911baef64d
/src/category_theory/natural_isomorphism.lean
7d7eff80d329b4a15888575b313a38a7d4e5aa77
[ "Apache-2.0" ]
permissive
rspencer01/mathlib
b1e3afa5c121362ef0881012cc116513ab09f18c
c7d36292c6b9234dc40143c16288932ae38fdc12
refs/heads/master
1,595,010,346,708
1,567,511,503,000
1,567,511,503,000
206,071,681
0
0
Apache-2.0
1,567,513,643,000
1,567,513,643,000
null
UTF-8
Lean
false
false
5,489
lean
/- Copyright (c) 2017 Scott Morrison. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Tim Baumann, Stephen Morgan, Scott Morrison, Floris van Doorn -/ import category_theory.functor_category import category_theory.isomorphism open category_theory universes v₁ v₂ v₃ v₄...
83bddae3bd8718435758172c6f4ead9b047cbb13
4d2583807a5ac6caaffd3d7a5f646d61ca85d532
/src/deprecated/subgroup.lean
d44481cb736145257a6d548824f11c93364d9a36
[ "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
25,120
lean
/- Copyright (c) 2018 Johannes Hölzl. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Johannes Hölzl, Mitchell Rowett, Scott Morrison, Johan Commelin, Mario Carneiro, Michael Howes -/ import group_theory.subgroup.basic import deprecated.submonoid /-! # Unbundled subgr...
6268cf02f921f3872bc3081ac84411ec2ff600dd
3d1007ef1e9e4040cf016d87cf9e6494be0c29fd
/src/discrete_valuation_ring/basic.lean
da4fdd1bc1d5b3e19df1f9a239665e65dd468b4e
[]
no_license
ImperialCollegeLondon/local-fields
77e535111bb9841bcbea4a45c37a742085366e41
18ae1205b3fddd43b7447c6f090940f07cb2c52b
refs/heads/master
1,609,728,387,873
1,581,629,682,000
1,581,629,682,000
240,342,840
3
1
null
null
null
null
UTF-8
Lean
false
false
264
lean
import ring_theory.principal_ideal_domain /-! Basic theory of DVRs -/ set_option old_structure_cmd true class discrete_valuation_ring (R : Type*) extends principal_ideal_domain R, local_ring R := (exists_nonzero_nonunit : ∃ a : R, a ≠ 0 ∧ ¬ is_unit a)
cecd0769b93204b5894cfabc92bfd82820969844
fa02ed5a3c9c0adee3c26887a16855e7841c668b
/src/data/finset/nat_antidiagonal.lean
bf3d7ca1235b2aaff392cd019c920c374bdcb588
[ "Apache-2.0" ]
permissive
jjgarzella/mathlib
96a345378c4e0bf26cf604aed84f90329e4896a2
395d8716c3ad03747059d482090e2bb97db612c8
refs/heads/master
1,686,480,124,379
1,625,163,323,000
1,625,163,323,000
281,190,421
2
0
Apache-2.0
1,595,268,170,000
1,595,268,169,000
null
UTF-8
Lean
false
false
2,636
lean
/- Copyright (c) 2019 Johan Commelin. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Johan Commelin -/ import data.finset.basic import data.multiset.nat_antidiagonal /-! # Antidiagonals in ℕ × ℕ as finsets This file defines the antidiagonals of ℕ × ℕ as finsets: the ...
3ab4aa8fb32746efe883b9a4a9ebc3fdfb6b5c4d
74addaa0e41490cbaf2abd313a764c96df57b05d
/Mathlib/algebra/lie/classical_auto.lean
400c70e80cc7da48bfbf45dab3dde0d2ab7a4b7c
[]
no_license
AurelienSaue/Mathlib4_auto
f538cfd0980f65a6361eadea39e6fc639e9dae14
590df64109b08190abe22358fabc3eae000943f2
refs/heads/master
1,683,906,849,776
1,622,564,669,000
1,622,564,669,000
371,723,747
0
0
null
null
null
null
UTF-8
Lean
false
false
14,389
lean
/- Copyright (c) 2020 Oliver Nash. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Oliver Nash -/ import Mathlib.PrePort import Mathlib.Lean3Lib.init.default import Mathlib.algebra.invertible import Mathlib.algebra.lie.skew_adjoint import Mathlib.linear_algebra.matrix i...
956ce12ec699e45bda844d42e45afe90ed871338
8cae430f0a71442d02dbb1cbb14073b31048e4b0
/src/category_theory/limits/essentially_small.lean
99b2104c7cefd98553f8e786db89172f00f8615f
[ "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,647
lean
/- Copyright (c) 2022 Markus Himmel. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Markus Himmel -/ import category_theory.limits.shapes.products import category_theory.essentially_small /-! # Limits over essentially small indexing categories > THIS FILE IS SYNCHRON...
d3108fef17dac241cc600a6b720601c0110c0fdf
6b45072eb2b3db3ecaace2a7a0241ce81f815787
/algebra/ring.lean
56d9e242a585aab028ec3e562dade17e25cacda8
[]
no_license
avigad/library_dev
27b47257382667b5eb7e6476c4f5b0d685dd3ddc
9d8ac7c7798ca550874e90fed585caad030bbfac
refs/heads/master
1,610,452,468,791
1,500,712,839,000
1,500,713,478,000
69,311,142
1
0
null
1,474,942,903,000
1,474,942,902,000
null
UTF-8
Lean
false
false
5,932
lean
/- Copyright (c) 2014 Jeremy Avigad. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Jeremy Avigad, Leonardo de Moura, Floris van Doorn -/ open eq universe variable uu variable {A : Type uu} /- ring -/ section variables [ring A] (a b c d e : A) theorem mul_add_e...
ee46a5bb6d1e793b0117a1c90474b7532892290b
c8af905dcd8475f414868d303b2eb0e9d3eb32f9
/src/data/cpi/name.lean
2ca756cee791e0a402e888cd935e909a22c5454d
[ "BSD-3-Clause" ]
permissive
continuouspi/lean-cpi
81480a13842d67ff5f3698643210d8ed5dd08de4
443bf2cb236feadc45a01387099c236ab2b78237
refs/heads/master
1,650,307,316,582
1,587,033,364,000
1,587,033,364,000
207,499,661
1
0
null
null
null
null
UTF-8
Lean
false
false
14,002
lean
/- The definition of environments, contexts and names within the continuous-π calculus. Names are represented as de Bruijn indicies for obvious reasons. We use the same representation of names as [1], indexing them by the context that they exist in. This ensures that names are always well formed, thus avoi...
cc55ac1b1945f671dd90ad3d67db934b07436d3f
4727251e0cd73359b15b664c3170e5d754078599
/src/ring_theory/flat.lean
7e0bae6227572ba4b7774781ea52f054e10d3780
[ "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
2,615
lean
/- Copyright (c) 2020 Johan Commelin. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Johan Commelin -/ import ring_theory.noetherian /-! # Flat modules A module `M` over a commutative ring `R` is *flat* if for all finitely generated ideals `I` of `R`, the canonical ...
760f6a3d490eb4dd0be071cfdf249abb47850a7d
9be442d9ec2fcf442516ed6e9e1660aa9071b7bd
/src/Lean/Elab/Tactic/BuiltinTactic.lean
46f7556064de7bc2651bde591c914632724fa2a0
[ "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
14,239
lean
/- Copyright (c) 2021 Microsoft Corporation. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Leonardo de Moura -/ import Lean.Meta.Tactic.Refl import Lean.Elab.Tactic.Basic import Lean.Elab.Tactic.ElabTerm namespace Lean.Elab.Tactic open Meta open Parser.Tactic @[buil...
ae209082628b2b7d9a9f5551e51fdc6a98def50a
367134ba5a65885e863bdc4507601606690974c1
/src/category_theory/types.lean
ed0d159202683615cd3286ca7652b30d807ff4c3
[ "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
10,666
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, Johannes Hölzl -/ import category_theory.fully_faithful import data.equiv.basic /-! # The category `Type`. In this section we set up the theory so tha...
ca90a82c3ff6e628bfcd399e00610f36f4deae33
6432ea7a083ff6ba21ea17af9ee47b9c371760f7
/tests/lean/run/do_eqv.lean
9c3519386ed36e1fcc2a9e7db3c9f142d3ea608e
[ "Apache-2.0", "LLVM-exception", "NCSA", "LGPL-3.0-only", "LicenseRef-scancode-inner-net-2.0", "BSD-3-Clause", "LGPL-2.0-or-later", "Spencer-94", "LGPL-2.1-or-later", "HPND", "LicenseRef-scancode-pcre", "ISC", "LGPL-2.1-only", "LicenseRef-scancode-other-permissive", "SunPro", "CMU-Mach"...
permissive
leanprover/lean4
4bdf9790294964627eb9be79f5e8f6157780b4cc
f1f9dc0f2f531af3312398999d8b8303fa5f096b
refs/heads/master
1,693,360,665,786
1,693,350,868,000
1,693,350,868,000
129,571,436
2,827
311
Apache-2.0
1,694,716,156,000
1,523,760,560,000
Lean
UTF-8
Lean
false
false
1,692
lean
theorem byCases_Bool_bind [Monad m] (x : m Bool) (f g : Bool → m β) (isTrue : f true = g true) (isFalse : f false = g false) : (x >>= f) = (x >>= g) := by have : f = g := by funext b; cases b <;> assumption rw [this] theorem eq_findM [Monad m] [LawfulMonad m] (p : α → m Bool) (xs : List α) : (do for x in x...
ad1a44a212a63a69aa4cd9b94a724e15a5b1203f
8930e38ac0fae2e5e55c28d0577a8e44e2639a6d
/computability/turing_machine.lean
d0bc3b849ca7a9fc14dc10b6ae6d5c3d1f3095a9
[ "Apache-2.0" ]
permissive
SG4316/mathlib
3d64035d02a97f8556ad9ff249a81a0a51a3321a
a7846022507b531a8ab53b8af8a91953fceafd3a
refs/heads/master
1,584,869,960,527
1,530,718,645,000
1,530,724,110,000
null
0
0
null
null
null
null
UTF-8
Lean
false
false
61,769
lean
/- Copyright (c) 2018 Mario Carneiro. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Author: Mario Carneiro Define a sequence of simple machine languages, starting with Turing machines and working up to more complex lanaguages based on Wang B-machines. -/ import data.finset da...
4f6a3abe75f14704b91c75ac9109811ef5bb6d8a
e5c11e5a7d990ce404047c2bd848eeafac3c0a85
/src/trace.lean
d43dc133dbd7e39a4ed7f9931d50bea1a24d25b9
[ "LPPL-1.3c" ]
permissive
lean-forward/class-number
9ec63c24845e46efc8fa8b15324d0815918292c7
4fccf36d5e0e16accae84c16df77a3839ad964e4
refs/heads/main
1,686,927,014,542
1,624,886,724,000
1,624,886,724,000
327,319,245
2
0
null
null
null
null
UTF-8
Lean
false
false
54,137
lean
/- Copyright (c) 2020 Anne Baanen. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Author: Anne Baanen -/ import order.conditionally_complete_lattice import field_theory.adjoin import field_theory.algebraic_closure import field_theory.galois import field_theory.primitive_elemen...
043b9e97d3c997c0c5ebf3b3373931d95ff1baf6
4950bf76e5ae40ba9f8491647d0b6f228ddce173
/src/analysis/calculus/deriv.lean
1a805cd277099626dbb7b0725d910e7c741cf8df
[ "Apache-2.0" ]
permissive
ntzwq/mathlib
ca50b21079b0a7c6781c34b62199a396dd00cee2
36eec1a98f22df82eaccd354a758ef8576af2a7f
refs/heads/master
1,675,193,391,478
1,607,822,996,000
1,607,822,996,000
null
0
0
null
null
null
null
UTF-8
Lean
false
false
71,663
lean
/- Copyright (c) 2019 Gabriel Ebner. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Gabriel Ebner, Sébastien Gouëzel -/ import analysis.calculus.fderiv import data.polynomial.derivative /-! # One-dimensional derivatives This file defines the derivative of a function...
08836148ec03451884d0467576994ad65b22e2d0
d406927ab5617694ec9ea7001f101b7c9e3d9702
/src/category_theory/idempotents/functor_extension.lean
cd9bdb86f05fcd2dc734b9af09fc0ae9426fc62f
[ "Apache-2.0" ]
permissive
alreadydone/mathlib
dc0be621c6c8208c581f5170a8216c5ba6721927
c982179ec21091d3e102d8a5d9f5fe06c8fafb73
refs/heads/master
1,685,523,275,196
1,670,184,141,000
1,670,184,141,000
287,574,545
0
0
Apache-2.0
1,670,290,714,000
1,597,421,623,000
Lean
UTF-8
Lean
false
false
4,118
lean
/- Copyright (c) 2022 Joël Riou. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Joël Riou -/ import category_theory.idempotents.karoubi /-! # Extension of functors to the idempotent completion In this file, we construct an extension `functor_extension₁` of functors ...
56904e7ed227c1402e9b1cee323f8d3734ddc837
41e069072396dcd54bd9fdadb27cfd35fd07016a
/src/apps/examples.lean
15659d9544c01ff6e6a17861fd49f3df2132bd27
[ "MIT" ]
permissive
semorrison/ModalTab
438ad601bd2631ab9cfe1e61f0d1337a36e2367e
cc94099194a2b69f84eb7a770b7aac711825179f
refs/heads/master
1,585,939,884,891
1,540,961,947,000
1,540,961,947,000
155,500,181
0
0
MIT
1,540,961,175,000
1,540,961,175,000
null
UTF-8
Lean
false
false
358
lean
import .topo_translation ..K.jump open nnf def boom : nnf := dia (and (var 1) (neg 1)) -- #eval is_sat [boom] -- #check tableau [boom] def topo_fact_of (φ : nnf) : psum (∀ (α) (tm : topo_model α) s, ¬ topo_force tm s φ) unit := match tableau [φ] with | node.closed _ h _ := psum.inl $ not_topo_force_of_unsat h | no...