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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
3e484edd8b395bbf776767ab718cf17ff1b37636 | 88fb7558b0636ec6b181f2a548ac11ad3919f8a5 | /tests/lean/qexpr2.lean | 20164d768dea0e61420c92df17066fc9f707dd4d | [
"Apache-2.0"
] | permissive | moritayasuaki/lean | 9f666c323cb6fa1f31ac597d777914aed41e3b7a | ae96ebf6ee953088c235ff7ae0e8c95066ba8001 | refs/heads/master | 1,611,135,440,814 | 1,493,852,869,000 | 1,493,852,869,000 | 90,269,903 | 0 | 0 | null | 1,493,906,291,000 | 1,493,906,291,000 | null | UTF-8 | Lean | false | false | 278 | lean | open tactic
set_option pp.all true
example (a b c : nat) : true :=
by do
x ← to_expr `(_ + b) tt,
trace x, infer_type x >>= trace,
constructor,
-- fill hole with 'c'
get_local `c >>= exact,
trace "------ after instantiate_mvars",
instantiate_mvars x >>= trace
|
24c919020fb69fc07b996d25e6388d8286230ff3 | 900ff83b8a995f83b07c2fa0715d52fa265c4b9e | /library/init/coe.lean | e047928ba6fcb66278872e64c0149270db02cd7c | [
"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 | 7,524 | 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.data.list.basic init.data.subtype.basic init.data.prod
/-! # Coercions and lifts
The elaborator tries to insert coercions automatica... |
87855be85dd48349c783bc373df22abf75c343c8 | 3863d2564418bccb1859e057bf5a4ef240e75fd7 | /library/theories/move.lean | 0126644fd7cfdddeefd5be2a1ba92ff0513e8b6e | [
"Apache-2.0"
] | permissive | JacobGross/lean | 118bbb067ff4d4af48a266face2c7eb9868fa91c | eb26087df940c54337cb807b4bc6d345d1fc1085 | refs/heads/master | 1,582,735,011,532 | 1,462,557,826,000 | 1,462,557,826,000 | 46,451,196 | 0 | 0 | null | 1,462,557,826,000 | 1,447,885,161,000 | C++ | UTF-8 | Lean | false | false | 5,147 | lean | /-
Copyright (c) 2016 Jeremy Avigad. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Temporary file; move in Lean3.
-/
import data.set algebra.order_bigops
import data.finset data.list.sort
-- move to data.set
namespace set
lemma inter_eq_self_of_subset {X : Type} {s t : set... |
b80588922bcb3611324f15aafb739e7bcb01912d | 28be2ab6091504b6ba250b367205fb94d50ab284 | /src/game/world10/level13.lean | 3c698c7c0529a82063e1fe6cf0bae17c60053c1b | [
"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 | 851 | lean | import game.world10.level12 -- hide
namespace mynat -- hide
/-
# Inequality world.
## Level 13: `not_succ_le_self`
Turns out that `¬ P` is *by definition* `P → false`, so you can just
start this one with `intro h` if you like.
## Pro tip:
```
conv begin
to_lhs,
rw hc,
end,
```
is an incantation whi... |
6e52c1b58ab82d2688b25236421c8aa70f0d8842 | 367134ba5a65885e863bdc4507601606690974c1 | /src/data/W.lean | 124b797328251c78e0821b5ee300cd2c79af5bec | [
"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 | 4,365 | lean | /-
Copyright (c) 2019 Jeremy Avigad. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Author: Jeremy Avigad
-/
import data.equiv.list
/-!
# W types
Given `α : Type` and `β : α → Type`, the W type determined by this data, `W_type β`, is the
inductively defined type of trees wher... |
3c0eb209d243022cb069aa356502f9d66f25a919 | b7f22e51856f4989b970961f794f1c435f9b8f78 | /library/logic/examples/propositional/soundness.lean | 867dbbb05083e0d9a2e244b3ac41d8c0ab6346b0 | [
"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,367 | lean | /-
Copyright (c) 2015 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Author: Leonardo de Moura
Define propositional calculus, valuation, provability, validity, prove soundness.
This file is based on Floris van Doorn Coq files.
-/
import data.nat data.l... |
0ab7baaa0cacc56c76148e9f8ee4b1b7fbc07556 | fa02ed5a3c9c0adee3c26887a16855e7841c668b | /src/analysis/normed_space/finite_dimension.lean | 4c42f027b04560ac434c8181c0df7bf2a5b114f0 | [
"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 | 23,836 | 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.normed_space.operator_norm
import analysis.normed_space.add_torsor
import topology.bases
import linear_algebra.finite_dimensional
/-!
# Finite ... |
87a6300cbbd9010c479466a10ccb8256f5ce9e06 | 38ee9024fb5974f555fb578fcf5a5a7b71e669b5 | /Mathlib/Data/Fin/Basic.lean | 087180d64dd0197361179bd00a3f41dd4bab0b73 | [
"Apache-2.0"
] | permissive | denayd/mathlib4 | 750e0dcd106554640a1ac701e51517501a574715 | 7f40a5c514066801ab3c6d431e9f405baa9b9c58 | refs/heads/master | 1,693,743,991,894 | 1,636,618,048,000 | 1,636,618,048,000 | 373,926,241 | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 7,204 | lean | import Mathlib.Data.Nat.Basic
import Mathlib.Algebra.Group.Defs
section Fin
variable {n : Nat}
instance : Zero (Fin n.succ) where
zero := Fin.ofNat 0
@[simp]
lemma Fin.val_zero : (0 : Fin n.succ).val = (0 : Nat) :=
show (Fin.ofNat 0).val = 0 by simp [Fin.ofNat]
instance : One (Fin n.succ) where
one := ⟨1 % n... |
b020aa34dfb49cdca495531d9703aec37a3e9e45 | 69d4931b605e11ca61881fc4f66db50a0a875e39 | /src/measure_theory/arithmetic.lean | 2d0d8e478bca55826af9d3b2f7aeff04c5e9c1a7 | [
"Apache-2.0"
] | permissive | abentkamp/mathlib | d9a75d291ec09f4637b0f30cc3880ffb07549ee5 | 5360e476391508e092b5a1e5210bd0ed22dc0755 | refs/heads/master | 1,682,382,954,948 | 1,622,106,077,000 | 1,622,106,077,000 | 149,285,665 | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 22,335 | lean | /-
Copyright (c) 2021 Yury Kudryashov. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Yury Kudryashov
-/
import measure_theory.measure_space
/-!
# Typeclasses for measurability of operations
In this file we define classes `has_measurable_mul` etc and prove dot-style ... |
8c6761ef8610df6098125408ab7c9aa43c6db326 | 5719a16e23dfc08cdea7a5bf035b81690f307965 | /src/Init/Data/RBMap/Basic.lean | ac3d99dda80f6ca5a3419626e2e8becaef2cb4c0 | [
"Apache-2.0"
] | permissive | postmasters/lean4 | 488b03969a371e1507e1e8a4df9ebf63c7cbe7ac | f3976fc53a883ac7606fc59357d43f4b51016ca7 | refs/heads/master | 1,655,582,707,480 | 1,588,682,595,000 | 1,588,682,595,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 11,739 | 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.Data.Repr
import Init.Data.Option.Basic
universes u v w w'
inductive Rbcolor
| red | black
inductive RBNode (α : Type u) (β : α → Typ... |
ef63a2cfc29f0602e9885da879d19639e005bea2 | 63abd62053d479eae5abf4951554e1064a4c45b4 | /src/topology/continuous_on.lean | 1929affedf5c68cb97289aa6f4d6fd61816383e6 | [
"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 | 35,760 | lean | /-
Copyright (c) 2019 Reid Barton. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Sébastien Gouëzel
-/
import topology.constructions
/-!
# Neighborhoods and continuity relative to a subset
This file defines relative versions
* `nhds_within` of `nhds`
* `co... |
78d07c585e6498dd9bdafda8746540b05e1bdf20 | dd0f5513e11c52db157d2fcc8456d9401a6cd9da | /04_Quantifiers_and_Equality.org.16.lean | 68749d89e75811ca9e65fcfd92ab51af7be9a832 | [] | no_license | cjmazey/lean-tutorial | ba559a49f82aa6c5848b9bf17b7389bf7f4ba645 | 381f61c9fcac56d01d959ae0fa6e376f2c4e3b34 | refs/heads/master | 1,610,286,098,832 | 1,447,124,923,000 | 1,447,124,923,000 | 43,082,433 | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 361 | lean | /- page 53 -/
import standard
import data.nat
open nat eq.ops
example (x y : ℕ) : (x + y) * (x + y) = x * x + y * x + x * y + y * y :=
have H1 : (x + y) * (x + y) = (x + y) * x + (x + y) * y, from !mul.left_distrib,
have H2 : (x + y) * (x + y) = x * x + y * x + (x * y + y * y),
from !mul.right_distrib ▸ !mul.right_di... |
110518dd3ad9d0742b60513533ecd1ac7406b428 | 2a70b774d16dbdf5a533432ee0ebab6838df0948 | /_target/deps/mathlib/src/category_theory/monad/coequalizer.lean | 94d4bf285fc42f20667815336a64733b30d2b345 | [
"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 | 3,839 | lean | /-
Copyright (c) 2020 Bhavik Mehta. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Bhavik Mehta
-/
import category_theory.limits.shapes.reflexive
import category_theory.limits.preserves.shapes.equalizers
import category_theory.limits.preserves.limits
import category_t... |
a5608a8e3c054f7c7c47838055b732eabdefaea3 | d406927ab5617694ec9ea7001f101b7c9e3d9702 | /src/control/fold.lean | ad8ee814af62ef5b29e80c4f12955e99211f9e69 | [
"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 | 13,921 | lean | /-
Copyright (c) 2018 Simon Hudon. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Simon Hudon, Sean Leather
-/
import algebra.group.opposite
import algebra.free_monoid.basic
import control.traversable.instances
import control.traversable.lemmas
import category_theory.e... |
197d07357a6c75298c4a31e6fc393c12e4b6b174 | 0d4c30038160d9c35586ce4dace36fe26a35023b | /src/order/filter/basic.lean | 32e355c070a14665db141bc68cc6c6524b9e0682 | [
"Apache-2.0"
] | permissive | b-mehta/mathlib | b0c8ec929ec638447e4262f7071570d23db52e14 | ce72cde867feabe5bb908cf9e895acc0e11bf1eb | refs/heads/master | 1,599,457,264,781 | 1,586,969,260,000 | 1,586,969,260,000 | 220,672,634 | 0 | 0 | Apache-2.0 | 1,583,944,480,000 | 1,573,317,991,000 | Lean | UTF-8 | Lean | false | false | 110,402 | 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
-/
import order.galois_connection order.zorn order.copy
import data.set.finite
/-! # Theory of filters on sets
## Main definitions
* `filter` : filters... |
735036b9fce5d0056dfadb634306e77ddff4f6c0 | 94637389e03c919023691dcd05bd4411b1034aa5 | /src/inClassNotes/predicate_logic/false.lean | bbadf16fdcc2d36351a31ecc5842c556a6350c1f | [] | 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 | 884 | lean | /-
In Lean, false is a proposition that
is false in the sense that there is
no proof of it. It's an uninhabited
type.
-/
#check false
/-
inductive false : Prop
-/
/-
There's no introduction rule for false
as there are no proofs of it at all.
-/
/-
The elimination rule for false is very
important.
-/
theorem false_... |
a2fbc8f05bd46ffd8a82e00df0e496ee6f703ebe | 74addaa0e41490cbaf2abd313a764c96df57b05d | /Mathlib/topology/category/UniformSpace_auto.lean | ae31fafc9dc16e4d2fa94a5322b34f2c3d566403 | [] | 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 | 7,674 | lean | /-
Copyright (c) 2019 Scott Morrison. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Reid Barton, Patrick Massot, Scott Morrison
-/
import Mathlib.PrePort
import Mathlib.Lean3Lib.init.default
import Mathlib.category_theory.monad.limits
import Mathlib.topology.uniform_s... |
bb6934b2c0adbf84c0cba59e1223540411c002df | 36c7a18fd72e5b57229bd8ba36493daf536a19ce | /hott/types/nat/sub.hlean | 4ffcf9117dcaf2d235d68612c6564f8ad1afd93d | [
"Apache-2.0"
] | permissive | YHVHvx/lean | 732bf0fb7a298cd7fe0f15d82f8e248c11db49e9 | 038369533e0136dd395dc252084d3c1853accbf2 | refs/heads/master | 1,610,701,080,210 | 1,449,128,595,000 | 1,449,128,595,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 17,497 | hlean | /-
Copyright (c) 2014 Floris van Doorn. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Floris van Doorn, Jeremy Avigad
Subtraction on the natural numbers, as well as min, max, and distance.
Ported from standard library
-/
import .order
open core
namespace nat
/- ... |
c1f0a3dd647ddc50f4e7c8aa3602092737469b1c | 6432ea7a083ff6ba21ea17af9ee47b9c371760f7 | /src/Lean/Meta/GetUnfoldableConst.lean | 77c7bee0753d26293196f01607d71d32e9c8f61c | [
"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,909 | 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.Meta.GlobalInstances
namespace Lean.Meta
private def canUnfoldDefault (cfg : Config) (info : ConstantInfo) : CoreM Bool := do
match cfg.tran... |
b24fb08a7838504a1ede0302004797440efd05c6 | 6432ea7a083ff6ba21ea17af9ee47b9c371760f7 | /src/lake/Lake/Util/Sugar.lean | 842c3977f22b3eb6ae6680e7e05de191dd2223b0 | [
"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 | 308 | lean | /-
Copyright (c) 2022 Mac Malone. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Mac Malone
-/
namespace Lake
macro "try " x:term " else " y:term : term =>
``($x <|> $y)
macro "try " x:doSeq " else " y:doSeq : doElem =>
`(doElem| (do $x) <|> (do $y))
|
8b633abad3ab38d4db3c61995968027011dcba6f | 8cae430f0a71442d02dbb1cbb14073b31048e4b0 | /src/order/partition/equipartition.lean | 1a733509f0335c8827abdd7ce25c46a8888f7019 | [
"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,479 | lean | /-
Copyright (c) 2022 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 data.set.equitable
import order.partition.finpartition
/-!
# Finite equipartitions
> THIS FILE IS SYNCHRONIZED WITH MATHLIB4.
> Any c... |
9a17170052dd8f99cdff2c2d3c83e6ce3b08fd49 | 4727251e0cd73359b15b664c3170e5d754078599 | /src/order/filter/at_top_bot.lean | 47bd815c63aa15e49e8a01516a360bea4d4050e9 | [
"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 | 69,374 | 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
import data.set.intervals.disjoint
/-!
# `at_top` and `at_bot` ... |
444b69e306e84072897cbbbd2fa75e0f76fc202f | 2eab05920d6eeb06665e1a6df77b3157354316ad | /src/group_theory/order_of_element.lean | c020e5426f43ee1977d2c7701e887078c6922a72 | [
"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 | 39,459 | 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, Julian Kuelshammer
-/
import algebra.pointwise
import group_theory.coset
import dynamics.periodic_pts
import algebra.iterate_hom
/-!
# Order of an element
This file d... |
6ae29a8c019dd58cc5f6fa2319b6de8db900f6f2 | 7cef822f3b952965621309e88eadf618da0c8ae9 | /src/measure_theory/bochner_integration.lean | 4a4032a74546379361231a8d3060d877f8dcb0c6 | [
"Apache-2.0"
] | permissive | rmitta/mathlib | 8d90aee30b4db2b013e01f62c33f297d7e64a43d | 883d974b608845bad30ae19e27e33c285200bf84 | refs/heads/master | 1,585,776,832,544 | 1,576,874,096,000 | 1,576,874,096,000 | 153,663,165 | 0 | 2 | Apache-2.0 | 1,544,806,490,000 | 1,539,884,365,000 | Lean | UTF-8 | Lean | false | false | 54,210 | lean | /-
Copyright (c) 2019 Zhouhang Zhou. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Zhouhang Zhou
-/
import measure_theory.simple_func_dense
import analysis.normed_space.bounded_linear_maps
/-!
# Bochner integral
The Bochner integral extends the definition of the Le... |
e60ec0c2af64e026202133b37c0ff40c03aa3bc9 | a9d0fb7b0e4f802bd3857b803e6c5c23d87fef91 | /tests/lean/assert_tac3.lean | a41842d4c8429af81f93202b60fc498b9bcd15f4 | [
"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 | 505 | lean | open tactic
definition tst2 (a : nat) : a = a :=
by do
define `x (expr.const `nat []),
rotate 1,
trace_state,
a ← get_local `a,
mk_app `eq.refl [a] >>= exact,
a ← get_local `a,
exact a,
return ()
print tst2
definition tst3 (a b : nat) : a = a :=
by do
define `x (expr.const `nat []),
rot... |
4d4095144729dd9112326231db21001d69e7a5d4 | bb31430994044506fa42fd667e2d556327e18dfe | /src/algebra/lie/basic.lean | c0ca6f43946670aa8af09ca732d37b7a3135c2b5 | [
"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 | 30,928 | lean | /-
Copyright (c) 2019 Oliver Nash. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Oliver Nash
-/
import algebra.module.equiv
import data.bracket
import linear_algebra.basic
import tactic.noncomm_ring
/-!
# Lie algebras
This file defines Lie rings and Lie algebras ove... |
02b61048594b6c59a3e61692f6884c75c225c8e0 | 19cc34575500ee2e3d4586c15544632aa07a8e66 | /src/data/real/hyperreal.lean | 649605232f086d46ce1bb333ccd1930669b5b1cf | [
"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 | 37,200 | lean | /-
Copyright (c) 2019 Abhimanyu Pallavi Sudhir. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Abhimanyu Pallavi Sudhir
-/
import order.filter.filter_product
import analysis.specific_limits
/-!
# Construction of the hyperreal numbers as an ultraproduct of real sequenc... |
32b1877eff89e191b80533ed35bfdb3c36afccab | 9dc8cecdf3c4634764a18254e94d43da07142918 | /src/algebraic_topology/simplicial_set.lean | 36c62806822863bd099f60faa0c451940de4ad1f | [
"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 | 5,242 | lean | /-
Copyright (c) 2021 Scott Morrison. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Johan Commelin, Scott Morrison, Adam Topaz
-/
import algebraic_topology.simplicial_object
import algebraic_topology.topological_simplex
import category_theory.limits.presheaf
import ca... |
9afde996b3b7ea2b71fc658d1942ba4222f1b240 | 57c233acf9386e610d99ed20ef139c5f97504ba3 | /src/measure_theory/measure/stieltjes.lean | c7a1ce41e17a003ef7ab6fac8d235fb176cfe442 | [
"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 | 16,670 | lean | /-
Copyright (c) 2021 Sébastien Gouëzel. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Johannes Hölzl, Yury Kudryashov, Sébastien Gouëzel
-/
import measure_theory.constructions.borel_space
/-!
# Stieltjes measures on the real line
Consider a function `f : ℝ → ℝ` whi... |
a16330dcc90d15c859d43dbd221f00c8579a5ece | d406927ab5617694ec9ea7001f101b7c9e3d9702 | /src/algebra/group/prod.lean | 0e68886b5f7e13dda9501f348b619ff9326914b5 | [
"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 | 22,006 | lean | /-
Copyright (c) 2020 Yury Kudryashov. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Simon Hudon, Patrick Massot, Yury Kudryashov
-/
import algebra.group.opposite
import algebra.group_with_zero.units.basic
import algebra.hom.units
/-!
# Monoid, group etc structures o... |
a9d697e73329b79665a22bc6f397ee99d214483e | a4673261e60b025e2c8c825dfa4ab9108246c32e | /stage0/src/Init/Control/Except.lean | 8fbbb1e11019287baafa68edb49770edac8703fc | [
"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 | 6,632 | lean | /-
Copyright (c) 2017 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Jared Roesch, Sebastian Ullrich
The Except monad transformer.
-/
prelude
import Init.Data.ToString.Basic
import Init.Control.Basic
import Init.Control.Id
universes u v w u'
s... |
18b65a6ec3bfb4edd5d90b271a84db3ab53e2b74 | 5719a16e23dfc08cdea7a5bf035b81690f307965 | /stage0/src/Init/Core.lean | b29f9912842817ff8124229230069085bdfa016d | [
"Apache-2.0"
] | permissive | postmasters/lean4 | 488b03969a371e1507e1e8a4df9ebf63c7cbe7ac | f3976fc53a883ac7606fc59357d43f4b51016ca7 | refs/heads/master | 1,655,582,707,480 | 1,588,682,595,000 | 1,588,682,595,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 64,152 | lean | /-
Copyright (c) 2014 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Leonardo de Moura
notation, basic datatypes and type classes
-/
prelude
notation `Prop` := Sort 0
notation f ` $ `:1 a:0 := f a
/- Logical operations and relations -/
reserv... |
36cc9222f763a23dcaf11a8f3744e100f8a2a407 | b19a1b7dc79c802247fdce4c04708e070863b4d2 | /vars-and-sections.lean | 5f9ea550f068d9bcd2083964bba751273fdb735d | [] | no_license | utanapishtim/promethazine | 99a1e80311fb20251a54ba78a534b23852b88c40 | 08a6f9bd6dd08feb3df8d4697e19ffc8d333b249 | refs/heads/master | 1,653,595,504,487 | 1,480,129,933,000 | 1,480,129,933,000 | 74,801,596 | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 921 | lean | -- tedious
definition compose (A B C : Type) (g : B → C) (f : A → B) (x : A) : C := g (f x)
definition do_twice (A : Type) (h : A → A) (x : A) : A := h (h x)
definition do_thrice (A : Type) (h : A → A) (x : A) : A := h (h (h x))
-- global looking defs, but scoped locally
variables (A B C : Type)
variables (g : B → C... |
a7b69b9492f70475a3f89290ff0ac16335f8ed49 | 6432ea7a083ff6ba21ea17af9ee47b9c371760f7 | /src/Lean/PrettyPrinter/Formatter.lean | da8effa217f0e15a69aca9e2fa33df5267915eeb | [
"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 | 22,379 | lean | /-
Copyright (c) 2020 Sebastian Ullrich. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Sebastian Ullrich
-/
import Lean.CoreM
import Lean.Parser.Extension
import Lean.Parser.StrInterpolation
import Lean.KeyedDeclsAttribute
import Lean.ParserCompiler.Attribute
import L... |
9c1591403097a3b4243b49ac4238dc316171fd5f | ea5678cc400c34ff95b661fa26d15024e27ea8cd | /Analysis Sheet1.lean | 0d8ba73231eaf0a6e9ef33a464120cfb321175e8 | [] | no_license | ChrisHughes24/leanstuff | dca0b5349c3ed893e8792ffbd98cbcadaff20411 | 9efa85f72efaccd1d540385952a6acc18fce8687 | refs/heads/master | 1,654,883,241,759 | 1,652,873,885,000 | 1,652,873,885,000 | 134,599,537 | 1 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 5,727 | lean | import algebra.field analysis.real tactic.norm_num tactic.ring
universe u
noncomputable theory
local attribute [instance, priority 0] classical.prop_decidable
theorem real_lt_swap : ∀ a b : ℝ, a > b ↔ b < a := λ a b, ⟨λ h,h,λ h,h⟩
theorem real_le_swap : ∀ a b : ℝ, a ≥ b ↔ b ≤ a := λ a b, ⟨λ h,h,λ h,h⟩
lemma q_1a (x y... |
c96f798667f7ee322f03781e7d6f073e7521eba0 | 5e3548e65f2c037cb94cd5524c90c623fbd6d46a | /src_icannos_totilas/aops/2007-IMO_Shortlist-A4.lean | 76e9faffbd1d6695fb791021281b3063ad0350c4 | [] | 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 | 170 | lean |
import data.real.basic
import data.real.nnreal
theorem exo (f: nnreal -> nnreal) :
(forall x y, f(x + f y) = f(x+y) + f y)
-> forall x, f x = 2 * x
:=
sorry
|
4c5e04207714f057620386a2ceed9446fd464af0 | 6e41ee3ac9b96e8980a16295cc21f131e731884f | /library/data/int/basic.lean | 1a88a63aad1b037896f10ab6c9a1c78399bd3f0f | [
"Apache-2.0"
] | permissive | EgbertRijke/lean | 3426cfa0e5b3d35d12fc3fd7318b35574cb67dc3 | 4f2e0c6d7fc9274d953cfa1c37ab2f3e799ab183 | refs/heads/master | 1,610,834,871,476 | 1,422,159,801,000 | 1,422,159,801,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 33,220 | lean | /-
Copyright (c) 2014 Floris van Doorn. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Module: int.basic
Authors: Floris van Doorn, Jeremy Avigad
The integers, with addition, multiplication, and subtraction. The representation of the integers is
chosen to compute efficiently.... |
cb2d01bdbbcb2d3d5f9c4176e697cb9cafe8ccb1 | ac2987d8c7832fb4a87edb6bee26141facbb6fa0 | /Mathlib/Algebra/GroupWithZero/Defs.lean | 1d2fa3fe24460e0c2fb711c99e4dfebdb3501a01 | [
"Apache-2.0"
] | permissive | AurelienSaue/mathlib4 | 52204b9bd9d207c922fe0cf3397166728bb6c2e2 | 84271fe0875bafdaa88ac41f1b5a7c18151bd0d5 | refs/heads/master | 1,689,156,096,545 | 1,629,378,840,000 | 1,629,378,840,000 | 389,648,603 | 0 | 0 | Apache-2.0 | 1,627,307,284,000 | 1,627,307,284,000 | null | UTF-8 | Lean | false | false | 546 | lean | import Mathlib.Algebra.Group.Defs
class MonoidWithZero (M₀ : Type u) extends Monoid M₀, Zero M₀ where
zero_mul (a : M₀) : 0 * a = 0
mul_zero (a : M₀) : a * 0 = 0
class GroupWithZero (G₀ : Type u) extends DivInvMonoid G₀, Zero G₀ where
exists_pair_ne : ∃ (x y : G₀), x ≠ y
zero_mul (a : G₀) : 0 * a = 0
mul_ze... |
7faee4c55eef84ed66c5451a7039e82029195cd1 | c1a29ca460720df88ab68dc42d9a1a02e029d505 | /examples/basics/unnamed_1597.lean | 37e8db51ea395a2d224e8384b090d5ba55ed0b84 | [] | no_license | agusakov/mathematics_in_lean | acb5b3d659e4522ae4b4836ea550527f03f6546c | 2539562e4d91c858c73dbecb5b282ce1a7d38b6d | refs/heads/master | 1,665,963,365,241 | 1,592,080,022,000 | 1,592,080,022,000 | 272,078,062 | 0 | 0 | null | 1,592,078,772,000 | 1,592,078,772,000 | null | UTF-8 | Lean | false | false | 119 | lean | import data.nat.gcd
variables w x y z : ℕ
example (h : x ∣ w): x ∣ y * (x * z) + x^2 + w^2 :=
begin
sorry
end |
17b8a99ffd666d1b5a50b177a46a79ef920ff489 | 4fa161becb8ce7378a709f5992a594764699e268 | /src/topology/algebra/uniform_ring.lean | e18c8f1799b9e9c4a322091b1385cff2f27f5b00 | [
"Apache-2.0"
] | permissive | laughinggas/mathlib | e4aa4565ae34e46e834434284cb26bd9d67bc373 | 86dcd5cda7a5017c8b3c8876c89a510a19d49aad | refs/heads/master | 1,669,496,232,688 | 1,592,831,995,000 | 1,592,831,995,000 | 274,155,979 | 0 | 0 | Apache-2.0 | 1,592,835,190,000 | 1,592,835,189,000 | null | UTF-8 | Lean | false | false | 7,424 | lean | /-
Copyright (c) 2018 Patrick Massot. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Patrick Massot, Johannes Hölzl
Theory of topological rings with uniform structure.
-/
import topology.algebra.group_completion
import topology.algebra.ring
open classical set filter ... |
8ea79d00a875fd27f24f3e0b5c02dbdeddbc480d | 57c233acf9386e610d99ed20ef139c5f97504ba3 | /src/linear_algebra/pi.lean | b9b89048e4d5a58f1ed438d05eb1e9a00928b290 | [
"Apache-2.0"
] | permissive | robertylewis/mathlib | 3d16e3e6daf5ddde182473e03a1b601d2810952c | 1d13f5b932f5e40a8308e3840f96fc882fae01f0 | refs/heads/master | 1,651,379,945,369 | 1,644,276,960,000 | 1,644,276,960,000 | 98,875,504 | 0 | 0 | Apache-2.0 | 1,644,253,514,000 | 1,501,495,700,000 | Lean | UTF-8 | Lean | false | false | 18,626 | 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, Kevin Buzzard, Yury Kudryashov, Eric Wieser
-/
import linear_algebra.basic
import data.equiv.fin
/-!
# Pi types of modules
This file defines construct... |
885a7dd8954d579ed31c0a0cdc2b802be031958e | 5d166a16ae129621cb54ca9dde86c275d7d2b483 | /library/init/data/nat/lemmas.lean | c34259893867fd033985ed593d31cf5de3c3977a | [
"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 | 44,635 | lean | /-
Copyright (c) 2016 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Leonardo de Moura, Jeremy Avigad
-/
prelude
import init.data.nat.basic init.data.nat.div init.data.nat.pow init.meta init.algebra.functions
namespace nat
attribute [pre_smt] na... |
0cffe0a62e753ff3443077b0f366d950736651ee | a9d0fb7b0e4f802bd3857b803e6c5c23d87fef91 | /hott/algebra/ordered_group.hlean | 6edcaf54364298dbb076eb4fabec7961071932ef | [
"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 | 32,044 | hlean | /-
Copyright (c) 2014 Jeremy Avigad. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Jeremy Avigad
Partially ordered additive groups, modeled on Isabelle's library. These classes can be refined
if necessary.
-/
import algebra.binary algebra.group algebra.order
open eq ... |
27087931b213070f8fcc48f6b340ccd4d2b5847c | 9028d228ac200bbefe3a711342514dd4e4458bff | /src/order/filter/filter_product.lean | 334d7806f9adb07bca6947e294b6cf3d4f6812a6 | [
"Apache-2.0"
] | permissive | mcncm/mathlib | 8d25099344d9d2bee62822cb9ed43aa3e09fa05e | fde3d78cadeec5ef827b16ae55664ef115e66f57 | refs/heads/master | 1,672,743,316,277 | 1,602,618,514,000 | 1,602,618,514,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 8,290 | lean | /-
Copyright (c) 2019 Abhimanyu Pallavi Sudhir. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Abhimanyu Pallavi Sudhir
-/
import order.filter.ultrafilter
import order.filter.germ
/-!
# Ultraproducts
If `φ` is an ultrafilter, then the space of germs of functions `f :... |
6c4fc27d3860eb56e8aa4c84eca4189e7e470b20 | 432d948a4d3d242fdfb44b81c9e1b1baacd58617 | /src/data/nat/multiplicity.lean | 2638a8c2d23b019c9fa82192c1b2a6d869f53440 | [
"Apache-2.0"
] | permissive | JLimperg/aesop3 | 306cc6570c556568897ed2e508c8869667252e8a | a4a116f650cc7403428e72bd2e2c4cda300fe03f | refs/heads/master | 1,682,884,916,368 | 1,620,320,033,000 | 1,620,320,033,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 11,196 | lean | /-
Copyright (c) 2019 Chris Hughes. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Chris Hughes
-/
import data.nat.bitwise
import data.nat.parity
import data.nat.log
import ring_theory.int.basic
import algebra.big_operators.intervals
/-!
# Natural number multiplicity... |
3076c1956c63a1d21907045d2a175090c1bcda80 | 5e3548e65f2c037cb94cd5524c90c623fbd6d46a | /src_icannos_totilas/aops/2007-iTest-Problem_46.lean | f1af39e1e16991133525fac61b65642c76491ed8 | [] | 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 | 352 | lean |
import data.real.basic
import algebra.floor
theorem exo :
let P (x y z: real) := (
x + y^2 + z^4 = 0
/\ y + z^2 + x^4 = 0
/\ z + x^2 + y^4 = 0
) in
(forall x y z, P x y z ->
let m := floor (x^3 + y^3 + z^3) in
m >= -1
) /\ (exists x y z, P x y z ->
let m := floor (x^3 + y^3 + z^... |
5ea782831634ac5315e7e9e8d97407bd1b3f6446 | 32025d5c2d6e33ad3b6dd8a3c91e1e838066a7f7 | /tests/lean/run/termParserAttr.lean | 8e8f8e7597a9b6210228ddf8e2cea6ab66cc9967 | [
"Apache-2.0"
] | permissive | walterhu1015/lean4 | b2c71b688975177402758924eaa513475ed6ce72 | 2214d81e84646a905d0b20b032c89caf89c737ad | refs/heads/master | 1,671,342,096,906 | 1,599,695,985,000 | 1,599,695,985,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 2,108 | lean | import Lean
open Lean
open Lean.Elab
def run (input : String) (failIff : Bool := true) : CoreM Unit :=
do env ← getEnv;
opts ← getOptions;
(env, messages) ← liftIO $ process input env opts;
messages.toList.forM $ fun msg => liftIO $ IO.println msg;
when (failIff && messages.hasErrors) $ throwError "errors... |
191bc75f369daa43c3d3545841a3ce1006b56767 | 57aec6ee746bc7e3a3dd5e767e53bd95beb82f6d | /tests/lean/run/trace.lean | 87b89119b27b660091d6aabc5da31364b6bdc816 | [
"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 | 1,371 | lean | import Lean.CoreM
open Lean
structure MyState :=
(traceState : TraceState := {})
(s : Nat := 0)
abbrev M := CoreM
def tst1 : M Unit :=
do trace[module] (m!"hello" ++ MessageData.nest 9 (m!"\n" ++ "world"));
trace[module.aux] "another message";
pure ()
def tst2 (b : Bool) : M Unit :=
traceCtx `module... |
48dac59dd20f4f8446d987a93b8d6dafcff5a180 | bbecf0f1968d1fba4124103e4f6b55251d08e9c4 | /src/number_theory/arithmetic_function.lean | 5689d4b81f13b23f0819921a2b1467f6c5999e2e | [
"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 | 32,494 | 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
import algebra.squarefree
import algebra.invertible
/-!
# Arithmetic Functions and Dirichlet Convolut... |
80e97a7de025b709cd598cd6655d1ed0eb6f8e17 | 6dc0c8ce7a76229dd81e73ed4474f15f88a9e294 | /tests/lean/run/extmacro.lean | b700c16ba519755af2f41bd198fa965b96fc1e29 | [
"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 | 458 | lean | macro "ext_tactic" t:tactic "=>" newT:tactic : command => `(macro_rules | `($t) => `($newT))
syntax "trivial" : tactic
ext_tactic trivial => apply Eq.refl
theorem tst1 (x : Nat) : x = x :=
by trivial
-- theorem tst2 (x y : Nat) (h : x = y) : x = y :=
-- by trivial -- fail as expected
ext_tactic trivial => assumpti... |
1d381e1d62f886560371c299be7ea4996b15d0a5 | 6432ea7a083ff6ba21ea17af9ee47b9c371760f7 | /tests/lean/run/wfEqns2.lean | 72c36784efd2e4af007e70d5a4cb4976170cbbdb | [
"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 | 792 | lean | import Lean
open Lean
open Lean.Meta
def tst (declName : Name) : MetaM Unit := do
IO.println (← getUnfoldEqnFor? declName)
mutual
def g (i j : Nat) : Nat :=
if i < 5 then 0 else
match j with
| Nat.zero => 1
| Nat.succ j => h i j
def h (i j : Nat) : Nat :=
match j with
| 0 => g i 0
| Nat.succ j => g i ... |
3ca45248e666159bbc27bee35922482da80b9700 | 8d65764a9e5f0923a67fc435eb1a5a1d02fd80e3 | /src/order/boolean_algebra.lean | a3ce5ff69c2bf08aaf0661c04721ecfab31616e4 | [
"Apache-2.0"
] | permissive | troyjlee/mathlib | e18d4b8026e32062ab9e89bc3b003a5d1cfec3f5 | 45e7eb8447555247246e3fe91c87066506c14875 | refs/heads/master | 1,689,248,035,046 | 1,629,470,528,000 | 1,629,470,528,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 32,748 | 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, Bryan Gin-ge Chen
-/
import order.bounded_lattice
/-!
# (Generalized) Boolean algebras
A Boolean algebra is a bounded distributive lattice with a complement operator. ... |
dbaeee5c59e7a7d8109ca8e8b43ada20799d7ee5 | 4fa161becb8ce7378a709f5992a594764699e268 | /src/category_theory/schur.lean | ef58a89b570b4bf05ede5825b40ccb0c2b2ff5a8 | [
"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 | 1,500 | 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.simple
import category_theory.preadditive
/-!
# Schur's lemma
We prove the part of Schur's Lemma that holds in any preadditive ... |
3c338f2f40a5d11ef3b72f8b4c675ffcbbaa0962 | 968e2f50b755d3048175f176376eff7139e9df70 | /examples/pred_logic/unnamed_116.lean | 7eb2dd1284b3a5b9f88eac4eb756dd67704f9089 | [] | 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 | 105 | lean | def avg (x y : ℤ) : ℤ := (x + y)/2
--BEGIN
def avg' := avg 5
#eval avg' 17 -- This outputs 11.
--END |
cf253e7ea557d93ec058ca98c64216bb241b9144 | 63abd62053d479eae5abf4951554e1064a4c45b4 | /src/data/typevec.lean | e0df5fba46a43acfc6cc2fd40ccacf1f4cd27d68 | [
"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 | 24,438 | lean | /-
Copyright (c) 2018 Jeremy Avigad. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Author: Jeremy Avigad, Mario Carneiro, Simon Hudon
-/
import data.fin2
import logic.function.basic
import tactic.basic
/-!
Tuples of types, and their categorical structure.
Features:
`typeve... |
7965c84ff3b5ce1f2136f1eefa9973b249a93de3 | 74addaa0e41490cbaf2abd313a764c96df57b05d | /Mathlib/analysis/normed_space/basic.lean | 001b08caa6b99cc003619bda7a16fe2fce36506b | [] | 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 | 55,275 | lean | /-
Copyright (c) 2018 Patrick Massot. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Patrick Massot, Johannes Hölzl
-/
import Mathlib.PrePort
import Mathlib.Lean3Lib.init.default
import Mathlib.topology.instances.nnreal
import Mathlib.topology.algebra.module
import Mat... |
dfa83558c2464c3c8705a3b7aea7c083bc990676 | d1a52c3f208fa42c41df8278c3d280f075eb020c | /src/Lean/Meta/Tactic/Cleanup.lean | 5be8a945321ebbc007fda06a53db2b25fb230060 | [
"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,585 | 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.CollectFVars
import Lean.Meta.Tactic.Clear
namespace Lean.Meta
/--
Auxiliary tactic for cleaning the local context. It removes local de... |
e4ac6cc7a839f3e66fc836300af5a6805c6d6e64 | d406927ab5617694ec9ea7001f101b7c9e3d9702 | /src/ring_theory/localization/localization_localization.lean | a21991101fca7ecd070d2a16588bf9414b2d7f7a | [
"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 | 13,058 | lean | /-
Copyright (c) 2018 Kenny Lau. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Kenny Lau, Mario Carneiro, Johan Commelin, Amelia Livingston, Anne Baanen
-/
import ring_theory.localization.at_prime
import ring_theory.localization.basic
import ring_theory.localization.f... |
a04b7186beb8652bac00063d58408da08506baeb | 9dc8cecdf3c4634764a18254e94d43da07142918 | /src/linear_algebra/finite_dimensional.lean | 6cd251e837685c62cdba5b6ea95a7c4b97e19cb6 | [
"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 | 75,928 | lean | /-
Copyright (c) 2019 Chris Hughes. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Chris Hughes
-/
import algebra.algebra.subalgebra.basic
import field_theory.finiteness
/-!
# Finite dimensional vector spaces
Definition and basic properties of finite dimensional vect... |
ec746d679bf756766a877a1a02a8760cec430f37 | d9d511f37a523cd7659d6f573f990e2a0af93c6f | /src/ring_theory/witt_vector/frobenius.lean | 25ed0e06b90bf1d3f2e4e7061dc0e315748ca29b | [
"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 | 13,421 | lean | /-
Copyright (c) 2020 Johan Commelin. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Johan Commelin
-/
import data.nat.multiplicity
import ring_theory.witt_vector.basic
import ring_theory.witt_vector.is_poly
/-!
## The Frobenius operator
If `R` has characteristic `... |
437f94ff2f9cdabed6c27754ae1722a456172a56 | bb31430994044506fa42fd667e2d556327e18dfe | /src/data/nat/cast/field.lean | 8b316e9f7e19c9b4879b53ea3eba5272d81051b8 | [
"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 | 2,420 | lean | /-
Copyright (c) 2014 Mario Carneiro. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Mario Carneiro, Yaël Dillies, Patrick Stevens
-/
import algebra.order.field.basic
import algebra.order.ring.char_zero
import data.nat.cast.basic
/-!
# Cast of naturals into fields
> ... |
8edabbd31712bd6eae7eab78beb7cd08075f98dd | 35677d2df3f081738fa6b08138e03ee36bc33cad | /src/tactic/simpa.lean | 31ca95348b56a16d79e1be10f61827869263144a | [
"Apache-2.0"
] | permissive | gebner/mathlib | eab0150cc4f79ec45d2016a8c21750244a2e7ff0 | cc6a6edc397c55118df62831e23bfbd6e6c6b4ab | refs/heads/master | 1,625,574,853,976 | 1,586,712,827,000 | 1,586,712,827,000 | 99,101,412 | 1 | 0 | Apache-2.0 | 1,586,716,389,000 | 1,501,667,958,000 | Lean | UTF-8 | Lean | false | false | 2,210 | 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 tactic.doc_commands
namespace tactic
namespace interactive
open interactive interactive.types expr lean.parser
local postfix `?`:9001 := optional
/--
This ... |
f6fe164f309225eb094b6cd8622e38ee85508ad4 | 82b86ba2ae0d5aed0f01f49c46db5afec0eb2bd7 | /stage0/src/Lean/Elab/Log.lean | ea611b48acc91a2f550d8ba0aee4bbd270ac1a05 | [
"Apache-2.0"
] | permissive | banksonian/lean4 | 3a2e6b0f1eb63aa56ff95b8d07b2f851072d54dc | 78da6b3aa2840693eea354a41e89fc5b212a5011 | refs/heads/master | 1,673,703,624,165 | 1,605,123,551,000 | 1,605,123,551,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 2,847 | 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.Elab.Util
import Lean.Elab.Exception
namespace Lean.Elab
class MonadLog (m : Type → Type) :=
(getRef : m Syntax)
(getFileMap : m F... |
fdd6ada5cb15dc32db6bd341ec7aebcc52e1ef25 | 618003631150032a5676f229d13a079ac875ff77 | /src/category_theory/types.lean | e9f00a91d6acfed33a31ee5ccf7bd83654c614fe | [
"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 | 9,499 | 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... |
26e2605044057ef7219f89fa46b8343681049d1f | 947fa6c38e48771ae886239b4edce6db6e18d0fb | /src/topology/continuous_function/zero_at_infty.lean | 96c93b4f6a7fd7899aabe0b71934dc6c786f25b9 | [
"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 | 22,541 | lean | /-
Copyright (c) 2022 Jireh Loreaux. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Jireh Loreaux
-/
import topology.continuous_function.bounded
import topology.continuous_function.cocompact_map
/-!
# Continuous functions vanishing at infinity
The type of continuous ... |
70a19527550e1918c857a761d6429047fc6a390a | cf39355caa609c0f33405126beee2739aa3cb77e | /tests/lean/run/socket_client.lean | 9e413636493ade302f78286df9055bd0529688fa | [
"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 | 554 | lean | import system.io
def SECRET : string := "SECRET_DATA"
meta def do_client : io unit :=
do io.proc.sleep 2,
io.run_tactic $ tactic.trace "connect",
sock ← io.net.connect "hello.unix",
io.run_tactic $ tactic.trace "recv",
key ← io.net.recv sock SECRET.length,
io.run_tactic $ tactic.trace key,
if buffer... |
71e8099dd68d6e61219363e3122438d4c4a5dd8b | 83c8119e3298c0bfc53fc195c41a6afb63d01513 | /library/init/meta/environment.lean | fe09982fd3d90f95268b7341c19b64dd95ef24d7 | [
"Apache-2.0"
] | permissive | anfelor/lean | 584b91c4e87a6d95f7630c2a93fb082a87319ed0 | 31cfc2b6bf7d674f3d0f73848b842c9c9869c9f1 | refs/heads/master | 1,610,067,141,310 | 1,585,992,232,000 | 1,585,992,232,000 | 251,683,543 | 0 | 0 | Apache-2.0 | 1,585,676,570,000 | 1,585,676,569,000 | null | UTF-8 | Lean | false | false | 10,052 | lean | /-
Copyright (c) 2016 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Leonardo de Moura
-/
prelude
import init.meta.declaration init.meta.exceptional init.data.option.basic
import init.meta.rb_map
/-- An __environment__ contains all of the declar... |
a5513e48a5a0bf108370475ff3eba94e15c97a6f | b7f22e51856f4989b970961f794f1c435f9b8f78 | /tests/lean/abbrev1.lean | 16547675747d30237513aeba18da9c305c39cdfa | [
"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 | 316 | lean | open nat
abbreviation foo : Π (A : Type), nat := λ a, 2 + 3
definition tst := foo nat
set_option pp.abbreviations false
print definition tst
set_option pp.abbreviations true
print definition tst
abbreviation id2 [parsing_only] {A : Type} (a : A) := a
definition tst1 :nat := id2 10
print definition tst1
|
7c5232ca29a179c12844a89a8e09617d521e1f4e | 729d3dc9e67d120b7d04013f7b77d7a9a31b4a42 | /leantactics.lean | c3f477748e0800064c3c50fafea00f65124df3d8 | [] | no_license | jpablo/coq-lean-cheatsheet | d16dfdea3e0607ca26edad99447ba3e762bfb306 | 69ad5987ec59ee7c9806855b2bb9de73c096c617 | refs/heads/master | 1,681,418,183,657 | 1,619,210,433,000 | 1,619,210,433,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 333 | lean |
inductive threeorfour : nat -> Prop
| isthree : forall (n : nat), n=3 -> threeorfour n
| isfour : forall (n : nat), n=4 -> threeorfour n
/-- Coq Inversion -> Lean cases -/
lemma threeorfour_def : forall n, threeorfour n -> n=3 ∨ n=4 :=
begin
intros,
/-Inversion here-/
cases a,
{ left, assumption},
{ right, assum... |
4c1fdbde0eb6092e966b0b3407296a1215b9403c | fa02ed5a3c9c0adee3c26887a16855e7841c668b | /src/topology/category/Top/open_nhds.lean | 9b1342bc484ff3763c94a514748bbfed6943634c | [
"Apache-2.0"
] | permissive | jjgarzella/mathlib | 96a345378c4e0bf26cf604aed84f90329e4896a2 | 395d8716c3ad03747059d482090e2bb97db612c8 | refs/heads/master | 1,686,480,124,379 | 1,625,163,323,000 | 1,625,163,323,000 | 281,190,421 | 2 | 0 | Apache-2.0 | 1,595,268,170,000 | 1,595,268,169,000 | null | UTF-8 | Lean | false | false | 3,557 | lean | /-
Copyright (c) 2019 Scott Morrison. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Scott Morrison
-/
import topology.category.Top.opens
import category_theory.filtered
open category_theory
open topological_space
open opposite
universe u
variables {X Y : Top.{u}} (... |
03e4a72a0cb592bc7eb0f67b44a27f39707fabc9 | fecda8e6b848337561d6467a1e30cf23176d6ad0 | /src/ring_theory/algebra.lean | 5470b5604e57d09b5d47cebd897548268da71f8b | [
"Apache-2.0"
] | permissive | spolu/mathlib | bacf18c3d2a561d00ecdc9413187729dd1f705ed | 480c92cdfe1cf3c2d083abded87e82162e8814f4 | refs/heads/master | 1,671,684,094,325 | 1,600,736,045,000 | 1,600,736,045,000 | 297,564,749 | 1 | 0 | null | 1,600,758,368,000 | 1,600,758,367,000 | null | UTF-8 | Lean | false | false | 57,278 | lean | /-
Copyright (c) 2018 Kenny Lau. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Kenny Lau, Yury Kudryashov
-/
import data.matrix.basic
import linear_algebra.tensor_product
import ring_theory.subsemiring
import deprecated.subring
/-!
# Algebra over Commutative Semiring... |
9940fd9085cff58edc382cd48b9816551803e53c | cf39355caa609c0f33405126beee2739aa3cb77e | /tests/lean/run/e4.lean | 0619e4b1dd68fe0f26ff498e0762ad0d39c8140c | [
"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 | 667 | lean | prelude
definition Prop := Sort.{0}
definition false : Prop := ∀x : Prop, x
#check false
theorem false.elim (C : Prop) (H : false) : C
:= H C
definition Eq {A : Type} (a b : A)
:= ∀ P : A → Prop, P a → P b
#check Eq
infix `=`:50 := Eq
theorem refl {A : Type} (a : A) : a = a
:= λ P H, H
definition true : Prop
:= ... |
937169378336d0664659a20f3f33e4e5c21d8e6d | 6432ea7a083ff6ba21ea17af9ee47b9c371760f7 | /src/Lean/Meta/ExprLens.lean | a794eaafde03fb51fbf405bf05e1f08377c9ccc2 | [
"Apache-2.0",
"LLVM-exception",
"NCSA",
"LGPL-3.0-only",
"LicenseRef-scancode-inner-net-2.0",
"BSD-3-Clause",
"LGPL-2.0-or-later",
"Spencer-94",
"LGPL-2.1-or-later",
"HPND",
"LicenseRef-scancode-pcre",
"ISC",
"LGPL-2.1-only",
"LicenseRef-scancode-other-permissive",
"SunPro",
"CMU-Mach"... | permissive | leanprover/lean4 | 4bdf9790294964627eb9be79f5e8f6157780b4cc | f1f9dc0f2f531af3312398999d8b8303fa5f096b | refs/heads/master | 1,693,360,665,786 | 1,693,350,868,000 | 1,693,350,868,000 | 129,571,436 | 2,827 | 311 | Apache-2.0 | 1,694,716,156,000 | 1,523,760,560,000 | Lean | UTF-8 | Lean | false | false | 7,870 | lean | /-
Copyright (c) 2022 E.W.Ayers. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: E.W.Ayers
-/
import Lean.Meta.Basic
import Lean.SubExpr
/-!
# Expression Lenses
Functions for manipulating subexpressions using `SubExpr.Pos`.
-/
namespace Lean.Meta
section ExprLens
... |
da2e6771316ee8849bf91ce244e6a408be6f815f | 367134ba5a65885e863bdc4507601606690974c1 | /src/category_theory/products/associator.lean | 89ce847feeaf180e9a48319c20105fb41e54df66 | [
"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 | 1,714 | lean | /-
Copyright (c) 2017 Scott Morrison. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Stephen Morgan, Scott Morrison
-/
import category_theory.products.basic
/-#
The associator functor `((C × D) × E) ⥤ (C × (D × E))` and its inverse form an equivalence.
-/
universes v... |
6305119caf0ea86bbe7d4238202ecaae0ea03742 | 453dcd7c0d1ef170b0843a81d7d8caedc9741dce | /data/nat/basic.lean | 16fc6220259c7f5c1f2078f5b5f05eb170bca556 | [
"Apache-2.0"
] | permissive | amswerdlow/mathlib | 9af77a1f08486d8fa059448ae2d97795bd12ec0c | 27f96e30b9c9bf518341705c99d641c38638dfd0 | refs/heads/master | 1,585,200,953,598 | 1,534,275,532,000 | 1,534,275,532,000 | 144,564,700 | 0 | 0 | null | 1,534,156,197,000 | 1,534,156,197,000 | null | UTF-8 | Lean | false | false | 20,459 | lean | /-
Copyright (c) 2014 Floris van Doorn. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Floris van Doorn, Leonardo de Moura, Jeremy Avigad, Mario Carneiro
Basic operations on the natural numbers.
-/
import logic.basic algebra.order data.option
universe u
namespace na... |
9823ac99f542fb75ed8d11c4c7ebad4022953edc | 9dc8cecdf3c4634764a18254e94d43da07142918 | /src/group_theory/sylow.lean | 279e1f5a5960833895f797fe0a97772328e75607 | [
"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 | 33,609 | lean | /-
Copyright (c) 2018 Chris Hughes. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Chris Hughes, Thomas Browning
-/
import data.nat.factorization.basic
import data.set_like.fintype
import group_theory.group_action.conj_act
import group_theory.p_group
import group_theo... |
d20392d22e2207babe9ec19224f41a2d25cfa41d | d406927ab5617694ec9ea7001f101b7c9e3d9702 | /src/analysis/complex/polynomial.lean | d3a4710d9c9223691792bf54b55536bdaa94423d | [
"Apache-2.0"
] | permissive | alreadydone/mathlib | dc0be621c6c8208c581f5170a8216c5ba6721927 | c982179ec21091d3e102d8a5d9f5fe06c8fafb73 | refs/heads/master | 1,685,523,275,196 | 1,670,184,141,000 | 1,670,184,141,000 | 287,574,545 | 0 | 0 | Apache-2.0 | 1,670,290,714,000 | 1,597,421,623,000 | Lean | UTF-8 | Lean | false | false | 1,300 | lean | /-
Copyright (c) 2019 Chris Hughes All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Chris Hughes, Junyan Xu
-/
import analysis.complex.liouville
import field_theory.is_alg_closed.basic
/-!
# The fundamental theorem of algebra
This file proves that every nonconstant com... |
69140d4c5a484ba67219d7516611e1820ffcc03b | 63abd62053d479eae5abf4951554e1064a4c45b4 | /src/data/nat/fib.lean | f24d8463b506b62ede3ae5b1c334a33e50486543 | [
"Apache-2.0"
] | permissive | Lix0120/mathlib | 0020745240315ed0e517cbf32e738d8f9811dd80 | e14c37827456fc6707f31b4d1d16f1f3a3205e91 | refs/heads/master | 1,673,102,855,024 | 1,604,151,044,000 | 1,604,151,044,000 | 308,930,245 | 0 | 0 | Apache-2.0 | 1,604,164,710,000 | 1,604,163,547,000 | null | UTF-8 | Lean | false | false | 3,307 | lean | /-
Copyright (c) 2019 Kevin Kappelmann. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Kevin Kappelmann
-/
import data.stream.basic
import tactic.norm_num
import tactic.monotonicity
/-!
# The Fibonacci Sequence
## Summary
Definition of the Fibonacci sequence `F₀ = 0,... |
bbd626739fc3848a4d1e46bd7b5c798143ce163a | 74addaa0e41490cbaf2abd313a764c96df57b05d | /Mathlib/data/rat/cast_auto.lean | ec3595d131fc4197ab90c86adf15ae8ed98ed893 | [] | 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 | 8,595 | lean | /-
Copyright (c) 2019 Johannes Hölzl. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Johannes Hölzl, Mario Carneiro
-/
import Mathlib.PrePort
import Mathlib.Lean3Lib.init.default
import Mathlib.data.rat.order
import Mathlib.data.int.char_zero
import Mathlib.PostPort
u... |
4f0d7c67d1034d873e0acb9f20a7d026153c1ad2 | e030b0259b777fedcdf73dd966f3f1556d392178 | /library/init/data/nat/lemmas.lean | 97270240bd78a185564b8352d68d13bcdb89df94 | [
"Apache-2.0"
] | permissive | fgdorais/lean | 17b46a095b70b21fa0790ce74876658dc5faca06 | c3b7c54d7cca7aaa25328f0a5660b6b75fe26055 | refs/heads/master | 1,611,523,590,686 | 1,484,412,902,000 | 1,484,412,902,000 | 38,489,734 | 0 | 0 | null | 1,435,923,380,000 | 1,435,923,379,000 | null | UTF-8 | Lean | false | false | 25,393 | lean | /-
Copyright (c) 2016 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Leonardo de Moura, Jeremy Avigad
-/
prelude
import init.data.nat.basic init.meta init.algebra
namespace nat
attribute [pre_smt] nat_zero_eq_zero
protected lemma zero_add : ∀ n... |
145e116f5ae10aa784fa33ae62c8c557af28c698 | fcf3ffa92a3847189ca669cb18b34ef6b2ec2859 | /src/world7/level10.lean | 9333345b5f6b7b8ede13f4796d3680b1a0e8ee86 | [
"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 | 652 | lean | import world7.level1
import world7.level9
local attribute [instance, priority 10] classical.prop_decidable
lemma contrapositive2 (P Q : Prop) : (¬ Q → ¬ P) → (P → Q) :=
begin
by_cases p : P; by_cases q : Q,
{
intros nqnp p,
exact q,
},
{
intro nqnp,
have np := nqnp q,
... |
a4104c6d623f6714bddff0db5992cf04bda3490d | a9d0fb7b0e4f802bd3857b803e6c5c23d87fef91 | /tests/lean/run/unfold_crash.lean | e70113e22ce10a2136d59f37937dddc64c60d345 | [
"Apache-2.0"
] | permissive | soonhokong/lean-osx | 4a954262c780e404c1369d6c06516161d07fcb40 | 3670278342d2f4faa49d95b46d86642d7875b47c | refs/heads/master | 1,611,410,334,552 | 1,474,425,686,000 | 1,474,425,686,000 | 12,043,103 | 5 | 1 | null | null | null | null | UTF-8 | Lean | false | false | 1,639 | lean | open tactic
-- TODO(Leo): remove the following command.
-- It has been added to avoid a crash in the code generator
noncomputable theory
inductive vector (A : Type) : nat → Type
| nil {} : vector 0
| cons : Π {n}, A -> vector n -> vector (nat.succ n)
definition vmap {A B : Type} (f : A -> B) : Π {n}, vector A n ... |
12f33118dfdcd54ef1007c7c75e4983c48173ba0 | f3849be5d845a1cb97680f0bbbe03b85518312f0 | /library/init/meta/constructor_tactic.lean | d1601fefd7a1e8dabd9b0a5d7471353e1963a36c | [
"Apache-2.0"
] | permissive | bjoeris/lean | 0ed95125d762b17bfcb54dad1f9721f953f92eeb | 4e496b78d5e73545fa4f9a807155113d8e6b0561 | refs/heads/master | 1,611,251,218,281 | 1,495,337,658,000 | 1,495,337,658,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 2,467 | lean | /-
Copyright (c) 2016 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Leonardo de Moura
-/
prelude
import init.meta.tactic init.function
namespace tactic
meta def get_constructors_for (e : expr) : tactic (list name) :=
do env ← get_env,
I ←... |
2bf97380301eb0a8841262fb7e08cccf0290036c | e0f9ba56b7fedc16ef8697f6caeef5898b435143 | /src/algebra/group/default.lean | 64df0d2d28ffd2848a392d374c8458b23ae1466d | [
"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 | 461 | 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, Michael Howes
-/
import algebra.group.type_tags
import algebra.group.conj
import algebra.group.with_one
import algebra.group.anti_hom
import algebra.gr... |
e2555b19ea1e6483c907b28400877a4a7f40d1f0 | 94096349332b0a0e223a22a3917c8f253cd39235 | /src/game/function_world/level1.lean | e66de5564bb047de39068b99312eb2b681590d67 | [] | no_license | robertylewis/natural_number_game | 26156e10ef7b45248549915cc4d1ab3d8c3afc85 | b210c05cd627242f791db1ee3f365ee7829674c9 | refs/heads/master | 1,598,964,725,038 | 1,572,602,236,000 | 1,572,602,236,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 2,987 | lean | -- World name : Function world
/-
If you have beaten Addition World in this game, then you have got
quite good at manipulating equalities in Lean using the `rw` tactic.
But there are plenty of levels later on which will require you
to manipulate functions, and `rw` is not the tool for you here.
To manipulate function... |
c159cf7737985ebb47f203b936d4cafe91b56abf | fa02ed5a3c9c0adee3c26887a16855e7841c668b | /src/order/filter/cofinite.lean | fe01e8b46c3948711171f113a1f1f7215b9327a1 | [
"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 | 6,076 | 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
-/
import order.filter.at_top_bot
/-!
# The cofinite filter
In this file we define
`cofinite`: the filter of sets with finite compleme... |
6ecdf75234abb22386ec8c109530fd3f7d4f0ae8 | d406927ab5617694ec9ea7001f101b7c9e3d9702 | /src/measure_theory/function/floor.lean | 9d1199f835b6536bdb205154efff4d4bed5ad1a0 | [
"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,850 | lean | /-
Copyright (c) 2021 Yury G. Kudryashov. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Yury G. Kudryashov
-/
import measure_theory.constructions.borel_space
/-!
# Measurability of `⌊x⌋` etc
In this file we prove that `int.floor`, `int.ceil`, `int.fract`, `nat.floor... |
371987d18ce5adf501adb002bb1ac056c71dc8bb | 947b78d97130d56365ae2ec264df196ce769371a | /tests/lean/run/implicitTypesRecCoe.lean | ed330fd532319849a15e3b53f8e0033912f71402 | [
"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,227 | lean | new_frontend
unsafe def f (n : Nat) :=
let rec g (x : Nat) :=
if x > 0 then
/- This example relies on the instance `coeId {α} (a : α) : CoeT α a α`,
The type of `g` is not provided. Thus, the expected type is
`?m x` since the elaborator assumes it may depend on `x`.
Thus, the expected type for the add... |
9a00397e523c45c4483f17ce4231adbade889cb6 | 4e0c49ab645d61b5c3e486a1b460db14552914ae | /library/init/meta/simp_tactic.lean | 9ce2d8996d65d473423918dbb942f1a675a3c2a1 | [
"Apache-2.0"
] | permissive | saik2121/lean | 0c733955a9a33270a86d17f4139054c8bd09cff5 | 13007ebb4de63859d9866c19f6e753bbf1852f41 | refs/heads/master | 1,676,215,937,507 | 1,609,762,908,000 | 1,609,762,908,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 27,393 | lean | /-
Copyright (c) 2016 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Leonardo de Moura
-/
prelude
import init.meta.tactic init.meta.attribute init.meta.constructor_tactic
import init.meta.relation_tactics init.meta.occurrences
import init.data.op... |
0e87d028cdbc5ecb7c0a72296cb3d6577a80dd97 | 4727251e0cd73359b15b664c3170e5d754078599 | /src/measure_theory/integral/torus_integral.lean | d4f8f02512a3e59b8acf88bd3f4ea0ed0adb07e4 | [
"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 | 12,271 | lean | /-
Copyright (c) 2022 Cuma Kökmen. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Cuma Kökmen, Yury Kudryashov
-/
import measure_theory.integral.circle_integral
/-!
# Integral over a torus in `ℂⁿ`
In this file we define the integral of a function `f : ℂⁿ → E` over a ... |
3aaf255c8bb69657df0ea85b78236f820119d466 | aa3f8992ef7806974bc1ffd468baa0c79f4d6643 | /tests/lean/run/univ_bug2.lean | 845f60209fdb41d575642fd327cde44122664af3 | [
"Apache-2.0"
] | permissive | codyroux/lean | 7f8dff750722c5382bdd0a9a9275dc4bb2c58dd3 | 0cca265db19f7296531e339192e9b9bae4a31f8b | refs/heads/master | 1,610,909,964,159 | 1,407,084,399,000 | 1,416,857,075,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 1,215 | lean | ----------------------------------------------------------------------------------------------------
--- Copyright (c) 2014 Microsoft Corporation. All rights reserved.
--- Released under Apache 2.0 license as described in the file LICENSE.
--- Author: Jeremy Avigad
------------------------------------------------------... |
c1713e6a1974ac3f83a0b87504aa2ff174e99d2e | 8f22844295dd3def1014f96b39d9ea3c9e64d52c | /chapter3.lean | 4b5de298c5e07dd8b4a2ed175453816529f1869a | [] | no_license | saik2121/Lean-Theorem-Prover | a7719542d9ee1d3b062395d730c577b64f35bc19 | 02f6304d2dd68898ad611b2ea6892c98ed991a6b | refs/heads/main | 1,676,011,323,560 | 1,609,954,593,000 | 1,609,954,593,000 | 326,745,338 | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 2,491 | lean | --Propositions as Types
namespace mine
constant and : Prop -> Prop -> Prop
constant Proof : Prop -> Type
constant implies : Prop → Prop → Prop
constant and_comm : Π p q : Prop, Proof (implies (and p q ) (and q p))
variables p q : Prop
#check and_comm p q
end mine
--Introducing Theorems
constants p q :Prop
theorem t... |
48a79dd7760086a2ca68f8a75c0cbee9f047e55f | 9be442d9ec2fcf442516ed6e9e1660aa9071b7bd | /src/Lean/Data/Json/Basic.lean | 7f99c465438cea5025af1a7a6d60796ef7ffc055 | [
"Apache-2.0",
"LLVM-exception",
"NCSA",
"LGPL-3.0-only",
"LicenseRef-scancode-inner-net-2.0",
"BSD-3-Clause",
"LGPL-2.0-or-later",
"Spencer-94",
"LGPL-2.1-or-later",
"HPND",
"LicenseRef-scancode-pcre",
"ISC",
"LGPL-2.1-only",
"LicenseRef-scancode-other-permissive",
"SunPro",
"CMU-Mach"... | permissive | EdAyers/lean4 | 57ac632d6b0789cb91fab2170e8c9e40441221bd | 37ba0df5841bde51dbc2329da81ac23d4f6a4de4 | refs/heads/master | 1,676,463,245,298 | 1,660,619,433,000 | 1,660,619,433,000 | 183,433,437 | 1 | 0 | Apache-2.0 | 1,657,612,672,000 | 1,556,196,574,000 | Lean | UTF-8 | Lean | false | false | 7,335 | lean | /-
Copyright (c) 2019 Gabriel Ebner. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Gabriel Ebner, Marc Huisinga
-/
import Std.Data.RBTree
namespace Lean
-- mantissa * 10^-exponent
structure JsonNumber where
mantissa : Int
exponent : Nat
deriving DecidableEq
n... |
3aa963cb7f2de3f5daf6f63d99a18a6b765532ed | 07c6143268cfb72beccd1cc35735d424ebcb187b | /src/analysis/analytic/composition.lean | f00539e14e8cdd6f8b35ccd44f9bba1d7892fa95 | [
"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 | 34,923 | lean | /-
Copyright (c) 2020 Sébastien Gouëzel. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Sébastien Gouëzel
-/
import analysis.analytic.basic combinatorics.composition
/-!
# Composition of analytic functions
in this file we prove that the composition of analytic funct... |
8ee5a3b5f4d3831835fa500229545c3fd9cd8978 | 947b78d97130d56365ae2ec264df196ce769371a | /stage0/src/Init/LeanInit.lean | 01a5847d0f7d93443d836face839fdced669dd98 | [
"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 | 31,990 | 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 and Sebastian Ullrich
-/
prelude
import Init.Data.Option.BasicAux
import Init.Data.String.Basic
import Init.Data.Array.Basic
import Init.Data.UInt
import Init.... |
9ff4ba97be8a7cbf84a27bf266fc767835dfcdbe | 69d4931b605e11ca61881fc4f66db50a0a875e39 | /src/linear_algebra/char_poly/coeff.lean | cb0efa56aa245086a07fa9249846062382b0b55b | [
"Apache-2.0"
] | permissive | abentkamp/mathlib | d9a75d291ec09f4637b0f30cc3880ffb07549ee5 | 5360e476391508e092b5a1e5210bd0ed22dc0755 | refs/heads/master | 1,682,382,954,948 | 1,622,106,077,000 | 1,622,106,077,000 | 149,285,665 | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 10,721 | lean | /-
Copyright (c) 2020 Aaron Anderson, Jalex Stark. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Aaron Anderson, Jalex Stark
-/
import algebra.polynomial.big_operators
import data.matrix.char_p
import field_theory.finite.basic
import group_theory.perm.cycles
import l... |
0725c61c728408869b3e475ab23ed619d6cce2bc | d406927ab5617694ec9ea7001f101b7c9e3d9702 | /src/data/set/intervals/ord_connected.lean | 72beaf11b072192af134192138eb4b3ff33ec786 | [
"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,090 | lean | /-
Copyright (c) 2020 Yury G. Kudryashov. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Yury G. Kudryashov
-/
import data.set.intervals.unordered_interval
import data.set.lattice
/-!
# Order-connected sets
We say that a set `s : set α` is `ord_connected` if for all ... |
1fb3adb4c199de10f3e822b1fa42afa6d74bc982 | 57c233acf9386e610d99ed20ef139c5f97504ba3 | /src/algebraic_geometry/ringed_space.lean | 449ce64cd61de2e3057473ccb6496b4de0e04bd3 | [
"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 | 7,002 | lean | /-
Copyright (c) 2021 Justus Springer. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Justus Springer, Andrew Yang
-/
import algebra.category.CommRing.filtered_colimits
import algebraic_geometry.sheafed_space
import topology.sheaves.stalks
import algebra.category.CommR... |
2acd8e1db16a3fde74d25bd434a7d001c1b07e00 | 63abd62053d479eae5abf4951554e1064a4c45b4 | /src/field_theory/chevalley_warning.lean | 0c929cdcb114fb01afdcf59b16165ef8bd9f1191 | [
"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 | 8,471 | 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.mv_polynomial
import field_theory.finite.basic
/-!
# The Chevalley–Warning theorem
This file contains a proof of the Chevalley–Warning theorem.
Through... |
e88c3837294b5735916ad8116b1352c8b199b4a5 | 35b83be3126daae10419b573c55e1fed009d3ae8 | /_target/deps/mathlib/algebra/ring.lean | d24e24c5400b6e0d8a4b5c5db3546be15f9c1a94 | [] | 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 | 10,466 | 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
-/
import algebra.group data.set.basic
universes u v
variable {α : Type u}
section
variable [semiring α]
theorem mul_two (n : α) : ... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.