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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
46127abfcad617a0b8e60abda921bcea10b931ce | fa02ed5a3c9c0adee3c26887a16855e7841c668b | /src/topology/algebra/group_completion.lean | 0fa768e1f7f963a332621d5a0c5bc7e845ae86d4 | [
"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 | 4,855 | 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
Completion of topological groups:
-/
import topology.uniform_space.completion
import topology.algebra.uniform_group
noncomputable theory
universes u v... |
08240b2bf7b4c87b3dd8fd76e1499373324974c1 | 432d948a4d3d242fdfb44b81c9e1b1baacd58617 | /src/analysis/special_functions/bernstein.lean | 7a79a34846b121583bc1dfcd99ae6eeeb69027af | [
"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 | 13,049 | lean | /-
Copyright (c) 2021 Scott Morrison. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Scott Morrison
-/
import ring_theory.polynomial.bernstein
import topology.continuous_function.compact
import topology.continuous_function.polynomial
import topology.unit_interval
impor... |
cb5b5b7f5abcb0ea68d5e9d87b95e4850131e8be | 367134ba5a65885e863bdc4507601606690974c1 | /src/ring_theory/int/basic.lean | 3b96ba71b5cab2f8449e53218e4de9cd7c0f39be | [
"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 | 12,873 | 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, Jens Wagemaker, Aaron Anderson
-/
import data.int.gcd
import ring_theory.multiplicity
import ring_theory.principal_ideal_domain
/-!
# Divisibility over ℕ and ℤ
This ... |
63ca7241ec8828bd864696da614cf8433ad8bde0 | 74addaa0e41490cbaf2abd313a764c96df57b05d | /Mathlib/Lean3Lib/init/meta/interactive_base_auto.lean | fe9c40a4c61ca4501d6952720de0a4a7b3892a8b | [] | 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 | 867 | 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
-/
import Mathlib.PrePort
import Mathlib.Lean3Lib.init.data.option.basic
import Mathlib.Lean3Lib.init.meta.lean.parser
import Mathlib.Lean3Lib.init.meta.tactic... |
b4f282a29905b96c44dcca6eace4533ff72e3f47 | ff5230333a701471f46c57e8c115a073ebaaa448 | /library/init/data/string/instances.lean | 7221702455ed48ff0899fb57e063271c05d1d8a7 | [
"Apache-2.0"
] | permissive | stanford-cs242/lean | f81721d2b5d00bc175f2e58c57b710d465e6c858 | 7bd861261f4a37326dcf8d7a17f1f1f330e4548c | refs/heads/master | 1,600,957,431,849 | 1,576,465,093,000 | 1,576,465,093,000 | 225,779,423 | 0 | 3 | Apache-2.0 | 1,575,433,936,000 | 1,575,433,935,000 | null | UTF-8 | Lean | false | false | 292 | 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.list.instances
instance string.has_decidable_eq : decidable_eq string :=
by tactic.mk_dec_eq_instance
|
8ae4eed1e7eb9909078afa5a655a64a5643a02ce | 6fbf10071e62af7238f2de8f9aa83d55d8763907 | /examples/induction.lean | c745ef8c2f279de563c2ac4e8c796738fae06a01 | [] | no_license | HasanMukati/uva-cs-dm-s19 | ee5aad4568a3ca330c2738ed579c30e1308b03b0 | 3e7177682acdb56a2d16914e0344c10335583dcf | refs/heads/master | 1,596,946,213,130 | 1,568,221,949,000 | 1,568,221,949,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 13,562 | lean | inductive day : Type
| sunday : day
| monday : day
| tuesday : day
| wednesday : day
| thursday : day
| friday : day
| saturday : day
open day
def tues : day := tuesday
def tom : day → day
| sunday := monday
| monday := tuesday
| tuesday := wednesday
| wednesday := thursday
| thursday := friday
| friday := saturday
... |
04f4f889221f4d8233c1c8f1a73680e089363358 | 0179bcdbf094a112437450a02dc2bdc8b2f921d4 | /fabstract/Cook_S_P_NP/fabstract.lean | db8f0a3bb49c6c4009c8f9fe094c91d7371ced2c | [
"CC-BY-4.0"
] | permissive | haselwarter/formalabstracts | cf0c129fc086526cef1bd65d95c6f95a9a7ec5c8 | eab6d94850308df9f09d23f3a9a2f7b5ac5c6c7a | refs/heads/master | 1,609,515,992,248 | 1,500,418,815,000 | 1,500,418,815,000 | 97,696,544 | 0 | 0 | null | 1,500,455,350,000 | 1,500,455,350,000 | null | UTF-8 | Lean | false | false | 2,606 | lean | import meta_data
.turing_machines
namespace Cook_S_P_NP
/- Definitions of the complexity classes P and NP -/
def NP_computable (f : list bool → list bool) : Prop :=
∃ s n (TM : NTATM s n) (c k : nat),
computes_fn_in_time
TM
(λ i : fin 1 → list bool, f (i 0))
(λ i, c * ((i 0).length^k + 1))
def ... |
289acfbe7a75bcb7c0880301ccec08c2ae59a3b0 | 31f556cdeb9239ffc2fad8f905e33987ff4feab9 | /stage0/src/Lean/Elab/Tactic/Conv/Change.lean | 3930f7a99721f6dc9c2b60c33996444b19ed437b | [
"Apache-2.0",
"LLVM-exception",
"NCSA",
"LGPL-3.0-only",
"LicenseRef-scancode-inner-net-2.0",
"BSD-3-Clause",
"LGPL-2.0-or-later",
"Spencer-94",
"LGPL-2.1-or-later",
"HPND",
"LicenseRef-scancode-pcre",
"ISC",
"LGPL-2.1-only",
"LicenseRef-scancode-other-permissive",
"SunPro",
"CMU-Mach"... | permissive | tobiasgrosser/lean4 | ce0fd9cca0feba1100656679bf41f0bffdbabb71 | ebdbdc10436a4d9d6b66acf78aae7a23f5bd073f | refs/heads/master | 1,673,103,412,948 | 1,664,930,501,000 | 1,664,930,501,000 | 186,870,185 | 0 | 0 | Apache-2.0 | 1,665,129,237,000 | 1,557,939,901,000 | Lean | UTF-8 | Lean | false | false | 897 | 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.Elab.Tactic.ElabTerm
import Lean.Elab.Tactic.Conv.Basic
namespace Lean.Elab.Tactic.Conv
open Meta
@[builtinTactic Lean.Parser.Tactic.Conv.chan... |
ec7a23e2007d6ea38276a8f79e5930186ce51942 | cf39355caa609c0f33405126beee2739aa3cb77e | /tests/lean/run/nested_common_subexpr_issue.lean | 0d132c78f00f2836dee1ba436cfdc85e11b1a8ca | [
"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 | 336 | lean | -- set_option trace.compiler true
def fib_aux : ℕ → ℕ × ℕ
| 0 := (0, 1)
| (n+1) := let p := fib_aux n in (p.2, p.1 + p.2)
def fib (n) := (fib_aux n).2
#eval fib 10000
def fib_aux2 : ℕ → ℕ × ℕ
| 0 := (0, 1)
| (n+1) := let (a, b) := fib_aux2 n in (b, a + b)
def fib2 (n) := (fib_aux2 n).2
#eval fib2 10000
|
296fbcdf9b65803f03ed96f823c57e1764d7531b | d1a52c3f208fa42c41df8278c3d280f075eb020c | /tests/lean/679.lean | d043ecbdbc7cd6032caa346e327520e277e9c075 | [
"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 | 176 | lean | import Lean
open Lean
def encodeDecode [ToJson α] [FromJson α] (x : α) : Except String α := do
let json ← toJson x
fromJson? json
#eval encodeDecode Name.anonymous
|
63efb5be94161daef88cc943d65367cd96645430 | 6b10c15e653d49d146378acda9f3692e9b5b1950 | /examples/logic/unnamed_474.lean | 83cdad07e373e55b741fa812daf8cf0e5ca29ddc | [] | no_license | gebner/mathematics_in_lean | 3cf7f18767208ea6c3307ec3a67c7ac266d8514d | 6d1462bba46d66a9b948fc1aef2714fd265cde0b | refs/heads/master | 1,655,301,945,565 | 1,588,697,505,000 | 1,588,697,505,000 | 261,523,603 | 0 | 0 | null | 1,588,695,611,000 | 1,588,695,610,000 | null | UTF-8 | Lean | false | false | 280 | lean | variables A B C : Prop
-- BEGIN
theorem impl_compose {A B C : Prop} : (A → B) → (B → C) → A → C :=
λ h₁ h₂ h₃, h₂ (h₁ h₃)
example : (A → B) → ¬ B → ¬ A :=
impl_compose
example (h₁ : A → B) (h₂ : ¬ B) : ¬ A :=
impl_compose h₁ h₂
-- END |
b92bb1c541bd44459e81ab5ed59e1761b760bb56 | b00eb947a9c4141624aa8919e94ce6dcd249ed70 | /src/Lean/Elab/Term.lean | 8c9594b8e725620441b7d83a62e0846b9d9ce1a8 | [
"Apache-2.0"
] | permissive | gebner/lean4-old | a4129a041af2d4d12afb3a8d4deedabde727719b | ee51cdfaf63ee313c914d83264f91f414a0e3b6e | refs/heads/master | 1,683,628,606,745 | 1,622,651,300,000 | 1,622,654,405,000 | 142,608,821 | 1 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 73,415 | 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.ResolveName
import Lean.Util.Sorry
import Lean.Util.ReplaceExpr
import Lean.Structure
import Lean.Meta.ExprDefEq
import Lean.Meta.AppBuilder
imp... |
089cc068ebf4397d00517dceb9062779a26ff575 | 12dabd587ce2621d9a4eff9f16e354d02e206c8e | /world07/level03.lean | c16b3eb43229b5ecd7db60b88282033f816420e2 | [] | no_license | abdelq/natural-number-game | a1b5b8f1d52625a7addcefc97c966d3f06a48263 | bbddadc6d2e78ece2e9acd40fa7702ecc2db75c2 | refs/heads/master | 1,668,606,478,691 | 1,594,175,058,000 | 1,594,175,058,000 | 278,673,209 | 0 | 1 | null | null | null | null | UTF-8 | Lean | false | false | 105 | lean | lemma and_trans (P Q R : Prop) : P ∧ Q → Q ∧ R → P ∧ R :=
begin
intros f h,
split,
cc,
cc,
end
|
a78faa52350f306f406a9c06a839a6c307aa1c75 | 46125763b4dbf50619e8846a1371029346f4c3db | /src/tactic/monotonicity/interactive.lean | 71be4ac3169559061f6873e647d828be8a192959 | [
"Apache-2.0"
] | permissive | thjread/mathlib | a9d97612cedc2c3101060737233df15abcdb9eb1 | 7cffe2520a5518bba19227a107078d83fa725ddc | refs/heads/master | 1,615,637,696,376 | 1,583,953,063,000 | 1,583,953,063,000 | 246,680,271 | 0 | 0 | Apache-2.0 | 1,583,960,875,000 | 1,583,960,875,000 | null | UTF-8 | Lean | false | false | 21,859 | lean | /-
Copyright (c) 2019 Simon Hudon. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Author: Simon Hudon
-/
import tactic.monotonicity.basic
import category.basic
import category.traversable
import category.traversable.derive
import data.dlist
import logic.basic
import tactic.cor... |
eefb4c38e867e52d4a88d0e0ca14caa275d56188 | 6094e25ea0b7699e642463b48e51b2ead6ddc23f | /library/init/classical.lean | cbc4e111512dd92269deee8134a275d73e6fc11a | [
"Apache-2.0"
] | permissive | gbaz/lean | a7835c4e3006fbbb079e8f8ffe18aacc45adebfb | a501c308be3acaa50a2c0610ce2e0d71becf8032 | refs/heads/master | 1,611,198,791,433 | 1,451,339,111,000 | 1,451,339,111,000 | 48,713,797 | 0 | 0 | null | 1,451,338,939,000 | 1,451,338,939,000 | null | UTF-8 | Lean | false | false | 6,182 | lean | /-
Copyright (c) 2015 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Leonardo de Moura, Jeremy Avigad
-/
prelude
import init.subtype init.funext
namespace classical
open subtype
/- the axiom -/
-- In the presence of classical logic, we could p... |
cdd0d7f9b13734bcabe1801c3c1dc8075254ebb1 | 9dd3f3912f7321eb58ee9aa8f21778ad6221f87c | /library/init/data/list/instances.lean | 769fb46368f18903168302bbd835d1a022bc44ac | [
"Apache-2.0"
] | permissive | bre7k30/lean | de893411bcfa7b3c5572e61b9e1c52951b310aa4 | 5a924699d076dab1bd5af23a8f910b433e598d7a | refs/heads/master | 1,610,900,145,817 | 1,488,006,845,000 | 1,488,006,845,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 543 | lean | /-
Copyright (c) 2016 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Author: Leonardo de Moura
-/
prelude
import init.category.monad init.category.alternative init.data.list.basic
import init.meta.mk_dec_eq_instance
open list
universes u v
instance : al... |
9c7e08089015899a4735eff05fa68ac2df79baa3 | 3af272061d36e7f3f0521cceaa3a847ed4e03af9 | /src/linear_map_to_matrix.lean | bdf5f9e09884f9ddb72ac7d004dcc59b75452cdb | [] | no_license | semorrison/kbb | fdab0929d21dca880d835081814225a95f946187 | 229bd06e840bc7a7438b8fee6802a4f8024419e3 | refs/heads/master | 1,585,351,834,355 | 1,539,848,241,000 | 1,539,848,241,000 | 147,323,315 | 2 | 1 | null | null | null | null | UTF-8 | Lean | false | false | 443 | lean | import linear_algebra.basic
import .matrices
universes u v w
variables {K : Type u} [field K]
variables {V : Type v} [vector_space K V]
variables {W : Type v} [vector_space K W]
variables {bV : set V} [fintype bV] (hV : is_basis bV)
variables {bW : set W} [fintype bW] (hW : is_basis bW)
include hV hW
noncomputable d... |
e085f474212676b74159e12616f72bba31375481 | 6432ea7a083ff6ba21ea17af9ee47b9c371760f7 | /tests/lean/run/deep1.lean | 26748d10d6b1d2f860d3325bca1d48a40fe79c0a | [
"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 | 471 | lean | partial def recurseM [Monad μ] (curr: α) (action: α -> μ (List α)) : μ PUnit := do
let children ← action curr
children.forM (recurseM · action)
def specificTraverseList : Option Unit := recurseM () (fun _ => some [])
partial def recurseM2 [Monad μ] (curr: α) (action: α -> μ (Array α)) : μ PUnit := do
let childr... |
6d57dc1e18af10f43521e9827382e90257509c65 | 626e312b5c1cb2d88fca108f5933076012633192 | /src/linear_algebra/finite_dimensional.lean | cec762ebcf69eeb3fe8018756ec244de1dd37e83 | [
"Apache-2.0"
] | permissive | Bioye97/mathlib | 9db2f9ee54418d29dd06996279ba9dc874fd6beb | 782a20a27ee83b523f801ff34efb1a9557085019 | refs/heads/master | 1,690,305,956,488 | 1,631,067,774,000 | 1,631,067,774,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 65,658 | 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
import field_theory.finiteness
import linear_algebra.dimension
import ring_theory.principal_ideal_domain
/-!
# Finite dimensional vecto... |
d043ce37e7ce06ec88921af09f118ecf604659ce | 9be442d9ec2fcf442516ed6e9e1660aa9071b7bd | /tests/bench/rbmap.library.lean | 22f8d0cdf6daac9e8aa88b61d6f27e79b73df2c6 | [
"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 | 392 | lean | @[reducible] def Map : Type := RBMap Nat Bool (fun a b => a < b)
def mkMapAux : Nat → Map → Map
| 0, m => m
| n+1, m => mkMapAux n (m.insert n (n % 10 = 0))
def mkMap (n : Nat) :=
mkMapAux n {}
def main (xs : List String) : IO UInt32 :=
let m := mkMap xs.head.toNat;
let v := m.fold (fun (r : Nat) (k : Nat) (v : Bo... |
7638b1cd708ff264980bbf4df83f1486e5d7e0d2 | 43390109ab88557e6090f3245c47479c123ee500 | /src/M1F/problem_bank/0303/Q0303.lean | 06116ee7f8562f15fa03535275c92106ab120e63 | [
"Apache-2.0"
] | permissive | Ja1941/xena-UROP-2018 | 41f0956519f94d56b8bf6834a8d39473f4923200 | b111fb87f343cf79eca3b886f99ee15c1dd9884b | refs/heads/master | 1,662,355,955,139 | 1,590,577,325,000 | 1,590,577,325,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 2,234 | lean | -- some definitions before Q3a
theorem three_not_zero : (3:ℕ) ≠ 0 := by norm_num
theorem two_not_zero : (2:ℕ) ≠ 0 := by norm_num
theorem pow_pos_of_pos (x : fake_reals) (n : ℕ) : (0 < x) → (0 < n) → 0 < x^n :=
begin
intros Hx_pos Hn_pos,
cases n with m,
revert Hn_pos,norm_num,
clear Hn_pos,
induction m with p Hp,
... |
48ffb7367f3dce352e5e095603b98b04a5f2792e | a0e23cfdd129a671bf3154ee1a8a3a72bf4c7940 | /src/Lean/Meta/Tactic/Contradiction.lean | eb6c9f2e524694f3082deaf5f5a2c9497fa21032 | [
"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 | 3,601 | 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.MatchUtil
import Lean.Meta.Tactic.Assumption
import Lean.Meta.Tactic.Cases
namespace Lean.Meta
def elimEmptyInductive (mvarId : MVarId) (... |
fc1da94042e7fd3e4f8692aaac1ef68c23d40d7c | 55c7fc2bf55d496ace18cd6f3376e12bb14c8cc5 | /src/category_theory/natural_transformation.lean | 54a996eaf14d8777566a243bb7324d20ee28970d | [
"Apache-2.0"
] | permissive | dupuisf/mathlib | 62de4ec6544bf3b79086afd27b6529acfaf2c1bb | 8582b06b0a5d06c33ee07d0bdf7c646cae22cf36 | refs/heads/master | 1,669,494,854,016 | 1,595,692,409,000 | 1,595,692,409,000 | 272,046,630 | 0 | 0 | Apache-2.0 | 1,592,066,143,000 | 1,592,066,142,000 | null | UTF-8 | Lean | false | false | 2,825 | 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
Defines natural transformations between functors.
Introduces notations
`τ.app X` for the components of natural transfo... |
db129a636c39cf2e0722c113f5dab281637f079f | 6dc0c8ce7a76229dd81e73ed4474f15f88a9e294 | /src/Lean/Compiler/ImplementedByAttr.lean | fa80ed9c91285e5e6805fe4f6231d2499c74b09c | [
"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 | 1,387 | 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.Attributes
import Lean.MonadEnv
namespace Lean.Compiler
builtin_initialize implementedByAttr : ParametricAttribute Name ← registerParametricAt... |
3e25bc2ee30bcaf2b5685e38c8aedc3a3f5e162b | 9dc8cecdf3c4634764a18254e94d43da07142918 | /src/category_theory/generator.lean | 997fc72f54a32fa23c0fd585f28869ce942d1e7e | [
"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 | 27,411 | 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.balanced
import category_theory.limits.essentially_small
import category_theory.limits.opposites
import category_theory.limits.shapes.zero_morphi... |
4f975526b00fc4b0f50ac02ca2595fcdccf454d9 | 74addaa0e41490cbaf2abd313a764c96df57b05d | /Mathlib/category_theory/limits/cofinal.lean | 500aa8be0c9ba88b477cc59e9e062c6c8f5951ba | [] | 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 | 19,636 | 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 Mathlib.PrePort
import Mathlib.Lean3Lib.init.default
import Mathlib.category_theory.punit
import Mathlib.category_theory.comma
import Mathlib.category_theory.i... |
e5f5a6e391531dc5552d6b81d282f20f1c494725 | fa02ed5a3c9c0adee3c26887a16855e7841c668b | /src/category_theory/adjunction/limits.lean | 68381c7af52b25b8c870ddd741e9f9486f5b7170 | [
"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 | 12,021 | lean | /-
Copyright (c) 2019 Reid Barton. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Reid Barton, Johan Commelin
-/
import category_theory.adjunction.basic
import category_theory.limits.creates
open opposite
namespace category_theory.adjunction
open category_theory
open... |
38c42c5d3899af032c75bc2c53fd7c5b2db2e32b | 9dc8cecdf3c4634764a18254e94d43da07142918 | /src/data/pnat/basic.lean | 231e05a3e7eab5fc493d332e88299026f88699b1 | [
"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 | 16,901 | lean | /-
Copyright (c) 2017 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Mario Carneiro, Neil Strickland
-/
import data.nat.basic
import algebra.order.positive.ring
/-!
# The positive natural numbers
This file defines the type `ℕ+` or `pnat`, the s... |
fd78e5b35df056a2b891afd8da7569a3137cd84b | 9b9a16fa2cb737daee6b2785474678b6fa91d6d4 | /src/data/equiv/basic.lean | 72bba7a197fd2b70f2d2d604f7d39ddd5c3a7566 | [
"Apache-2.0"
] | permissive | johoelzl/mathlib | 253f46daa30b644d011e8e119025b01ad69735c4 | 592e3c7a2dfbd5826919b4605559d35d4d75938f | refs/heads/master | 1,625,657,216,488 | 1,551,374,946,000 | 1,551,374,946,000 | 98,915,829 | 0 | 0 | Apache-2.0 | 1,522,917,267,000 | 1,501,524,499,000 | Lean | UTF-8 | Lean | false | false | 32,223 | lean | /-
Copyright (c) 2015 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Leonardo de Moura, Mario Carneiro
In the standard library we cannot assume the univalence axiom.
We say two types are equivalent if they are isomorphic.
Two equivalent types h... |
ac189bcbb525b4254fd3816fd2427b2c5486ac99 | fa02ed5a3c9c0adee3c26887a16855e7841c668b | /src/analysis/normed_space/banach.lean | 2f662ebc5bc99493c9246858ea991a7080e81ad7 | [
"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 | 16,105 | 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 topology.metric_space.baire
import analysis.normed_space.operator_norm
/-!
# Banach open mapping theorem
This file contains the Banach open mapping the... |
c0dbd642da03820c98a42eff2957a411875bffd2 | 6432ea7a083ff6ba21ea17af9ee47b9c371760f7 | /tests/lean/patvar.lean | 1ed25c3b723bf85f0baf4db71fc8990e97849da9 | [
"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 | 382 | lean | -- set_option trace.Elab true
def myId : List α → List α
| List.nil => List.nil
def constNil : List α → List α
| List.nil => List.nil
| List.cons x y => List.nil
def failing1 : List α → List α
| [] => List.nil
def failing2 : List α → List α
| x => List.nil
| foo.bar => List.nil -- "invalid pattern variable"
def myI... |
7839b70efd93a31d962e27f32b0b73e43834342a | 302c785c90d40ad3d6be43d33bc6a558354cc2cf | /src/category_theory/triangulated/basic.lean | 729bb3c41c613a06d0815a43910d529f488e103c | [
"Apache-2.0"
] | permissive | ilitzroth/mathlib | ea647e67f1fdfd19a0f7bdc5504e8acec6180011 | 5254ef14e3465f6504306132fe3ba9cec9ffff16 | refs/heads/master | 1,680,086,661,182 | 1,617,715,647,000 | 1,617,715,647,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 3,955 | lean | /-
Copyright (c) 2021 Luke Kershaw. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Luke Kershaw
-/
import category_theory.additive.basic
import category_theory.shift
import category_theory.preadditive.additive_functor
/-!
# Triangles
This file contains the definition... |
1c632d6c69cef249cfb9c69c6a88aba91777f771 | c61b91f85121053c627318ad8fcde30dfb8637d2 | /Chapter2/2-2.lean | a360566ca1a7d46055b775218bbe716132993c05 | [] | no_license | robkorn/theorem-proving-in-lean-exercises | 9e2256360eaf6f8df6cdd8fd656e63dfb04c8cdb | 9c51da587105ee047a9db55d52709d881a39be7a | refs/heads/master | 1,585,403,341,988 | 1,540,142,619,000 | 1,540,142,619,000 | 148,431,678 | 2 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 726 | lean | #check nat -- Type
#check bool -- Type
#check nat -> bool -- Type
#check nat × bool -- Type
#check nat -> nat -- ...
#check nat × nat -> nat
#check nat -> nat -> nat
#check nat -> (nat -> nat)
#check nat -> nat -> bool
#check (nat -> nat) -> nat
constants α β : Type
constant F : Type -> Type
constant G : ... |
257aaeec6a5457d56060a7a3bc9dc56b7c893fdf | 08a8ee10652ba4f8592710ceb654b37e951d9082 | /src/hott/init/meta/basic_tactics.lean | 4c024b61afb0be410b116e80e2d05e1c40b57cd0 | [
"Apache-2.0"
] | permissive | felixwellen/hott3 | e9f299c84d30a782a741c40d38741ec024d391fb | 8ac87a2699ab94c23ea7984b4a5fbd5a7052575c | refs/heads/master | 1,619,972,899,098 | 1,509,047,351,000 | 1,518,040,986,000 | 120,676,559 | 0 | 0 | null | 1,518,040,503,000 | 1,518,040,503,000 | null | UTF-8 | Lean | false | false | 7,817 | lean | /-
Copyright (c) 2017 Floris van Doorn. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Floris van Doorn
-/
import ..path0
universes u v w
namespace name
meta def append_postfix : name → string → name
| (mk_string s p) s' := mk_string (s ++ s') p
| x s'... |
a7fd7f3b78e7631be9cc70216476267d687b8dda | bb31430994044506fa42fd667e2d556327e18dfe | /src/data/fintype/lattice.lean | 05e0c778330cf7916e43c5d7b63fec478070f782 | [
"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 | 1,757 | lean | /-
Copyright (c) 2017 Mario Carneiro. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Mario Carneiro
-/
import data.fintype.card
import data.finset.lattice
/-!
# Lemmas relating fintypes and order/lattice structure.
-/
open function
open_locale nat
universes u v
var... |
80c6c4083061db86836eb4b17908710d61b1f10b | 46125763b4dbf50619e8846a1371029346f4c3db | /src/data/set/basic.lean | d40a7d4248937c0d3a7adc4d8f95338695c14176 | [
"Apache-2.0"
] | permissive | thjread/mathlib | a9d97612cedc2c3101060737233df15abcdb9eb1 | 7cffe2520a5518bba19227a107078d83fa725ddc | refs/heads/master | 1,615,637,696,376 | 1,583,953,063,000 | 1,583,953,063,000 | 246,680,271 | 0 | 0 | Apache-2.0 | 1,583,960,875,000 | 1,583,960,875,000 | null | UTF-8 | Lean | false | false | 64,121 | 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
-/
import tactic.basic tactic.finish data.subtype logic.unique
/-!
# Basic properties of sets
Sets in Lean are homogeneous; all their elements have ... |
8cf8f3d6590a1d4080e5aeb0f835bb694181a016 | 4d3f29a7b2eff44af8fd0d3176232e039acb9ee3 | /Mathlib/Mathlib/Init/Algebra/Functions.lean | 215595d6ad66e8857f7a782ba3732438896e67d4 | [] | no_license | marijnheule/lamr | 5fc5d69d326ff92e321242cfd7f72e78d7f99d7e | 28cc4114c7361059bb54f407fa312bf38b48728b | refs/heads/main | 1,689,338,013,620 | 1,630,359,632,000 | 1,630,359,632,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 4,331 | 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.Init.Algebra.Order
universe u
section
variable {α : Type u} [LinearOrder α]
lemma min_le_left (a b : α) : min a b ≤ a :=
... |
19c3025780b5146d8fd6efbd83b7ba6b6e2d9a91 | 5e42295de7f5bcdf224b94603a8ec29b17c2d367 | /datatypes.lean | f8884fd8d809ded4dc544b17a2b160cc5ed2fa94 | [] | no_license | pnmadelaine/lean_polya | 9369e0d87dce773f91383bb58ac6fde0a00a1a40 | 1c62b0b3fa71044b0225ce28030627d251b08ebc | refs/heads/master | 1,590,161,172,243 | 1,515,010,019,000 | 1,515,010,019,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 40,611 | lean | import data.hash_map .rat_additions
def {u} list.bfilter {α : Type u} (p : α → bool) : list α → list α
| [] := []
| (h::t) := if p h then h::list.bfilter t else list.bfilter t
def {u v} list.mfoldl' {m : Type u → Type v} [monad m] {s : Type u} : (s → s → m s) → s → list s → m s
| f s [] := return s
| f s [a] := retur... |
545fd9cefc438f94720def393aac23392edc2f35 | aa3f8992ef7806974bc1ffd468baa0c79f4d6643 | /tests/lean/empty.lean | 8643fed89d41955a51eb647a7433609bab39e105 | [
"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 | 149 | lean | import logic logic.axioms.hilbert
definition v1 : Prop := epsilon (λ x, true)
inductive Empty : Type
definition v2 : Empty := epsilon (λ x, true)
|
31ae5d2e03400e35fdca1a33590334392077c0ef | 1a61aba1b67cddccce19532a9596efe44be4285f | /library/algebra/ordered_field.lean | 35a0109ae2f8316c6be03b93b4d14560b7d46264 | [
"Apache-2.0"
] | permissive | eigengrau/lean | 07986a0f2548688c13ba36231f6cdbee82abf4c6 | f8a773be1112015e2d232661ce616d23f12874d0 | refs/heads/master | 1,610,939,198,566 | 1,441,352,386,000 | 1,441,352,494,000 | 41,903,576 | 0 | 0 | null | 1,441,352,210,000 | 1,441,352,210,000 | null | UTF-8 | Lean | false | false | 19,415 | lean | /-
Copyright (c) 2014 Robert Lewis. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Robert Lewis
-/
import algebra.ordered_ring algebra.field
open eq eq.ops
namespace algebra
structure linear_ordered_field [class] (A : Type) extends linear_ordered_ring A, field A
sec... |
bb13f9524425d491339907ad1788dae421358427 | 88fb7558b0636ec6b181f2a548ac11ad3919f8a5 | /tests/lean/type_error_at_eval_expr.lean | bea4b567a86db52b6217b52bc399cb60c474b71e | [
"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 | 87 | lean | open tactic
run_cmd do
e ← to_expr `([5] : list ℕ),
eval_expr ℕ e,
return ()
|
46d9abacfe72a0f3df1701a0fa216dd11cbd4ca4 | 5d166a16ae129621cb54ca9dde86c275d7d2b483 | /tests/lean/run/basic_monitor.lean | f768fccb92bf1cd1006d9eaac331679b3c0d7a82 | [
"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 | 269 | lean | @[vm_monitor]
meta def basic_monitor : vm_monitor nat :=
{ init := 0, step := λ s, return (trace ("step " ++ s^.to_string) (s+1)) }
set_option debugger true
example (a b : Prop) : a → b → a ∧ b :=
begin
intros,
constructor,
assumption,
assumption
end
|
a8d3a49267165b73f319d2716d9cecab8f0be2e2 | 2eab05920d6eeb06665e1a6df77b3157354316ad | /src/data/pequiv.lean | 38d6fab218d6d5e8e498f0f36de8daa123c0f895 | [
"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 | 13,260 | 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.set.lattice
/-!
# Partial Equivalences
In this file, we define partial equivalences `pequiv`, which are a bijection between a subset of `α`
and a subset of... |
b331aef78e2e045f93bee2214f8ff88b909a30a2 | 34c1747a946aa0941114ffca77a3b7c1e4cfb686 | /src/instances/affine_scheme.lean | 898e41faf54d0ec82c0198dd513983b7ee474e52 | [] | no_license | martrik/lean-scheme | 2b9edd63550c4579a451f793ab289af9fc79a16d | 033dc47192ba4c61e4e771701f5e29f8007e6332 | refs/heads/master | 1,588,866,287,405 | 1,554,922,682,000 | 1,554,922,682,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 941 | lean | /-
An affine scheme is a scheme.
-/
import topology.opens
import spectrum_of_a_ring.spec_locally_ringed_space
import scheme
universe u
open topological_space
variables (R : Type u) [comm_ring R]
-- Spec(R) is a locally ringed space and it covers itself.
def affine_scheme : scheme (Spec R) :=
{ carrier := Spec.... |
28693c88eb56a557aef72ea865ce60b0867c3f3f | 8cae430f0a71442d02dbb1cbb14073b31048e4b0 | /src/field_theory/perfect_closure.lean | fd21739bf06bc725bbd57584b5fba2f8af0c3e5d | [
"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 | 18,087 | 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 algebra.char_p.basic
import algebra.hom.iterate
import algebra.ring.equiv
/-!
# The perfect closure of a field
> THIS FILE IS SYNCHRONIZED WITH MATHLI... |
9f54caae4d4e8a63c4d0b1abe8b0c01d7ab63de4 | c777c32c8e484e195053731103c5e52af26a25d1 | /src/measure_theory/function/ess_sup.lean | 23ecbb3325864a14a0630c48dc1cc7c01656df7e | [
"Apache-2.0"
] | permissive | kbuzzard/mathlib | 2ff9e85dfe2a46f4b291927f983afec17e946eb8 | 58537299e922f9c77df76cb613910914a479c1f7 | refs/heads/master | 1,685,313,702,744 | 1,683,974,212,000 | 1,683,974,212,000 | 128,185,277 | 1 | 0 | null | 1,522,920,600,000 | 1,522,920,600,000 | null | UTF-8 | Lean | false | false | 11,399 | lean | /-
Copyright (c) 2021 Rémy Degenne. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Rémy Degenne
-/
import measure_theory.constructions.borel_space
import order.filter.ennreal
/-!
# Essential supremum and infimum
We define the essential supremum and infimum of a functi... |
8cacdc2fa03bd3786759c3a0aab1d11aa379fbbc | 94e33a31faa76775069b071adea97e86e218a8ee | /src/algebra/direct_sum/decomposition.lean | e302cc8279f8fe36bd826bd0af3e94478951a096 | [
"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 | 7,460 | lean | /-
Copyright (c) 2022 Eric Wieser. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Eric Wieser, Jujian Zhang
-/
import algebra.direct_sum.module
import algebra.module.submodule.basic
/-!
# Decompositions of additive monoids, groups, and modules into direct sums
## Mai... |
c2fd78364dd4e4dd15029e2a1035fc4f5486b7db | 4727251e0cd73359b15b664c3170e5d754078599 | /src/computability/primrec.lean | 7ca8bfeb0e10defea2d72ee3e6eb4b0e79f64005 | [
"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 | 51,914 | lean | /-
Copyright (c) 2018 Mario Carneiro. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Mario Carneiro
-/
import data.list.join
import logic.equiv.list
import logic.function.iterate
/-!
# The primitive recursive functions
The primitive recursive functions are the least ... |
bd8fdd97a6fb3af6f41cf43f2abd820098b52f56 | d9d511f37a523cd7659d6f573f990e2a0af93c6f | /src/measure_theory/integral/set_to_l1.lean | 08a3e1b9a5cac4354d572767b7bf9c6024b30f26 | [
"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 | 27,533 | lean | /-
Copyright (c) 2021 Rémy Degenne. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Zhouhang Zhou, Yury Kudryashov, Sébastien Gouëzel, Rémy Degenne
-/
import measure_theory.function.simple_func_dense
/-!
# Extension of a linear function from indicators to L1
Let `T : ... |
f9ddfb41e7d33b0e4987fafbf890f073e671870e | 4727251e0cd73359b15b664c3170e5d754078599 | /src/topology/algebra/uniform_mul_action.lean | 6ea1087b57641f408b9b84748157e2904362bd88 | [
"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,582 | lean | /-
Copyright (c) 2022 Yury G. Kudryashov. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Yury G. Kudryashov
-/
import topology.algebra.group_completion
/-!
# Multiplicative action on the completion of a uniform space
In this file we define typeclasses `has_uniform_co... |
2ea6bd577ac8c28520aa1774a8145ad9ef79dff9 | cf39355caa609c0f33405126beee2739aa3cb77e | /tests/lean/run/struct_bug2.lean | 8ba53241e44c4c8e5de70e38db5a790089cb8457 | [
"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 | 45 | lean | structure foo :=
(a : ℕ := 42)
(b : a = a)
|
ef33c8b7597c993bb1f0553867dca57ffd53bf9a | dd24e6c3b8dc14dc504f8a906fc04c51e4312e6b | /src/mywork/lecture_1a.lean | 8474e731f1e41cbd755d476e0d2c124328479fd5 | [] | no_license | njeyasingh/CS-2120 | dd781a90dd0645b74e61cee1813483fb7cb4a111 | b3356f665a246f295b3f1e6d61901bfca331810d | refs/heads/main | 1,693,294,711,274 | 1,635,188,659,000 | 1,635,188,659,000 | 399,945,420 | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 19,969 | lean | -- import definitions of real and rational numbers from mathlib
import data.real.basic
namespace cs2120
/-
The first part of this lesson is in the file, lecture_1.md.
Please start there then return-- import definitions of real and rational numbers from mathlib
import data.real.basic
namespace cs2120
/-
The first ... |
dc1903519b681ca2487dfc2975bf67a8a679aeb2 | 4d2583807a5ac6caaffd3d7a5f646d61ca85d532 | /src/data/int/absolute_value.lean | eb18c3abe3dbfbf233e0d302baf9f4d8a533b64b | [
"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 | 1,093 | lean | /-
Copyright (c) 2021 Anne Baanen. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Anne Baanen
-/
import algebra.order.absolute_value
import algebra.algebra.basic
import data.int.cast
import group_theory.group_action.units
/-!
# Absolute values and the integers
This f... |
da5b5efb0ca49fa3b532db93b718fb3f164045c8 | 367134ba5a65885e863bdc4507601606690974c1 | /src/linear_algebra/affine_space/affine_map.lean | 52c978878a63afdb579e117c3053921fa34d97fc | [
"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 | 19,259 | lean | /-
Copyright (c) 2020 Joseph Myers. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Author: Joseph Myers.
-/
import linear_algebra.affine_space.basic
import linear_algebra.tensor_product
import linear_algebra.prod
import linear_algebra.pi
import data.set.intervals.unordered_inte... |
c33872a8021d34c2058d9db04b73be1b8aa4f5aa | 1a9d3677cccdaaccacb163507570e75d34043a38 | /src/week_1/Part_D_relations.lean | ed7ae2d798a17e1d77053239f1c8777b848f55a4 | [
"Apache-2.0"
] | permissive | alreadydone/formalising-mathematics | 687d386a72065795e784e270f5c05ea3948b67dd | 65869362cd7a2ac74dd1a97c7f9471835726570b | refs/heads/master | 1,680,260,936,332 | 1,616,563,371,000 | 1,616,563,371,000 | 348,780,769 | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 9,594 | lean | import tactic
/-!
# Equivalence relations are the same as partitions
In this file we prove that there's a bijection between
the equivalence relations on a type, and the partitions of a type.
Three sections:
1) partitions
2) equivalence classes
3) the proof
## Overview
Say `α` is a type, and `R : α → α → Prop` i... |
65fa5843d70096743747aa954dc2e6260c9b518e | 590f94277ab689acdc713c44e3bbca2e012fc074 | /Sequent Calculus (Lean)/src/promRules.lean | 66b5729ad9ac64c0b501b4e0dc5a1442ab100b76 | [] | no_license | Bpalkmim/iALC | bd3f882ad942c876d65c2d33cb50a36b2f8e5d16 | 9c2982ae916d01d9ebab9d58e0842292ed974876 | refs/heads/master | 1,689,527,062,560 | 1,631,502,537,000 | 1,631,502,537,000 | 108,029,498 | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 676 | lean | -- Regras de promoção de SCiALC.
-- Autor: Bernardo Alkmim
-- bpalkmim@gmail.com
import .basics
namespace promRulesSCiALC
open iALCbasics
constant prom_n {Δ : list Formula} {δ : Formula} (X : Nominal) :
Proof (Sequent Δ δ) → Proof (Sequent (list.map (add_nom X) Δ) (Formula.elemOf X δ))
constant prom_forall {Δ : l... |
840b1bf57e3dc87dc87a2127e86e7edf639f6d4a | d406927ab5617694ec9ea7001f101b7c9e3d9702 | /src/measure_theory/function/ae_measurable_sequence.lean | cef9c24c6810e5eb486dd3d47cd7d238c24b3b11 | [
"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,243 | lean | /-
Copyright (c) 2021 Rémy Degenne. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Rémy Degenne
-/
import measure_theory.measurable_space
/-!
# Sequence of measurable functions associated to a sequence of a.e.-measurable functions
We define here tools to prove state... |
268f73b549eb298450ff60abc1e554b7531f90af | a1179fa077c09acc49e4fbc8d67084ba89ac4f4c | /sublattice/try.lean | dab8090ed125ee4abdae255fbcd1996567e2f28b | [] | no_license | Seeram/Lean-proof-assistant | 11ca0ca0e0446bacdd1773c4c481a3653b2f1074 | e672d46e0e5f39d8de2933ad4f4cac095ca6094f | refs/heads/master | 1,682,754,224,366 | 1,620,959,431,000 | 1,620,959,431,000 | 299,000,950 | 0 | 1 | null | 1,620,680,462,000 | 1,601,200,258,000 | Lean | UTF-8 | Lean | false | false | 3,412 | lean | import algebra.group_with_zero.power
-- Vseobecny subor pre skusanie kdecoho elementarneho v leane
-- definicie
def x:ℕ :=5
-- typ sa da inferovat, netreba ho pisat
def x' := 5
-- funkcia "plna definicia"
def f:ℕ → ℕ := λ x:ℕ , 5+x
-- typova inferencia
def f' := λ x:ℕ , 5+x
def f'' := λ x, 5+x
def fz := λ x... |
54b1d875eea2d5cd0936021979fc4a383dfe5bad | 5fbbd711f9bfc21ee168f46a4be146603ece8835 | /lean/natural_number_game/advanced_multiplication/4.lean | 0c7447725db8a3f698bfc7f1fe7583046b1ba8c8 | [
"LicenseRef-scancode-warranty-disclaimer"
] | no_license | goedel-gang/maths | 22596f71e3fde9c088e59931f128a3b5efb73a2c | a20a6f6a8ce800427afd595c598a5ad43da1408d | refs/heads/master | 1,623,055,941,960 | 1,621,599,441,000 | 1,621,599,441,000 | 169,335,840 | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 991 | lean | theorem mul_left_cancel (a b c : mynat) (ha : a ≠ 0) : a * b = a * c → b = c :=
-- + revert b because the website said so. I still don't /really/ understand
-- what revert is for, ie how you're supposed to spot that you should use
-- it.
-- + I *think* this works because it gives us a hypothesis with "foral... |
6c18b9f6cbea045172cfb3a469b34297f70978c4 | 4727251e0cd73359b15b664c3170e5d754078599 | /src/order/filter/filter_product.lean | 523775e2027463ebdcbacc213b71ca7bee79a877 | [
"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,067 | 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, Yury Kudryashov
-/
import order.filter.ultrafilter
import order.filter.germ
/-!
# Ultraproducts
If `φ` is an ultrafilter, then the space of germs ... |
53ea54c896f195afaf0eac1f69eedbd506b70878 | b7f22e51856f4989b970961f794f1c435f9b8f78 | /library/data/set/finite.lean | 7ac7c6fc637e1a34151d28b8913b09cb2185251f | [
"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 | 8,748 | lean | /-
Copyright (c) 2015 Jeremy Avigad. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Author: Jeremy Avigad
The notion of "finiteness" for sets. This approach is not computational: for example, just because
an element s : set A satsifies finite s doesn't mean that we can com... |
9b6ee84ca96a5b926ef5327ac7f669d5def00853 | 271e26e338b0c14544a889c31c30b39c989f2e0f | /stage0/src/Init/Data/PersistentHashMap/Basic.lean | 151fe3c442abc25e2de53c5b9733af3e1591edbb | [
"Apache-2.0"
] | permissive | dgorokho/lean4 | 805f99b0b60c545b64ac34ab8237a8504f89d7d4 | e949a052bad59b1c7b54a82d24d516a656487d8a | refs/heads/master | 1,607,061,363,851 | 1,578,006,086,000 | 1,578,006,086,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 12,554 | lean | /-
Copyright (c) 2019 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Leonardo de Moura
-/
prelude
import Init.Data.Array
import Init.Data.Hashable
universes u v w w'
namespace PersistentHashMap
inductive Entry (α : Type u) (β : Type v) (σ : Typ... |
512ca7cf1203d51e256d117642e46625ccda8b22 | 969dbdfed67fda40a6f5a2b4f8c4a3c7dc01e0fb | /src/category_theory/subterminal.lean | b71d9444767ea514a5148595bcb171b3f512767d | [
"Apache-2.0"
] | permissive | SAAluthwela/mathlib | 62044349d72dd63983a8500214736aa7779634d3 | 83a4b8b990907291421de54a78988c024dc8a552 | refs/heads/master | 1,679,433,873,417 | 1,615,998,031,000 | 1,615,998,031,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 4,797 | 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.terminal
import category_theory.limits.shapes.binary_products
/-!
# Subterminal objects
Subterminal objects are the objects which c... |
bd99bdf2ab5f2231e9e0844bd6c4e8e80679d885 | b7f22e51856f4989b970961f794f1c435f9b8f78 | /tests/lean/run/361.lean | 6c09a76704481561b3815f7a9f6640ed7d733696 | [
"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 | 109 | lean | variables {P Q R : Prop}
theorem foo (H : P → Q → R) (x : P) : Q → R :=
begin
apply H,
exact x
end
|
48272fbaf155524c7c3bb0668925c5e02cbdb5e5 | 6dc0c8ce7a76229dd81e73ed4474f15f88a9e294 | /stage0/src/Lean/Server/FileWorker.lean | 1310019370cd15d2cb9b57481323ac2964908ae7 | [
"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 | 31,182 | lean | /-
Copyright (c) 2020 Marc Huisinga. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Marc Huisinga, Wojciech Nawrocki
-/
import Init.System.IO
import Std.Data.RBMap
import Lean.Environment
import Lean.PrettyPrinter
import Lean.DeclarationRange
import Lean.Data.Lsp
im... |
ed102fd953fd95ecd84b709103ea095b816dec4b | dd0f5513e11c52db157d2fcc8456d9401a6cd9da | /11_Tactic-Style_Proofs.org.1.lean | 15233cdec9866fc210ed75c16c9454b63a1e1de2 | [] | 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 | 85 | lean | import standard
theorem test (p q : Prop) (Hp : p) (Hq : q) : p ∧ q ∧ p :=
sorry
|
0dbeaae2676f9bc3226f288f18a557e1632ddcc9 | 36c7a18fd72e5b57229bd8ba36493daf536a19ce | /library/theories/group_theory/cyclic.lean | 752dd8150bcee8264bd88b0ce7fe8244360db0f1 | [
"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 | 15,852 | lean | /-
Copyright (c) 2015 Haitao Zhang. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Author : Haitao Zhang
-/
import data algebra.group algebra.group_power .finsubg .hom .perm
open function algebra finset
open eq.ops
namespace group
section cyclic
open nat fin list
local att... |
426be0e6296de682c1bc7559186efc5a970215db | 38bf3fd2bb651ab70511408fcf70e2029e2ba310 | /src/topology/dense_embedding.lean | c33146b65007d37e937f151340eb1841a2242999 | [
"Apache-2.0"
] | permissive | JaredCorduan/mathlib | 130392594844f15dad65a9308c242551bae6cd2e | d5de80376088954d592a59326c14404f538050a1 | refs/heads/master | 1,595,862,206,333 | 1,570,816,457,000 | 1,570,816,457,000 | 209,134,499 | 0 | 0 | Apache-2.0 | 1,568,746,811,000 | 1,568,746,811,000 | null | UTF-8 | Lean | false | false | 10,115 | lean | /-
Copyright (c) 2019 Reid Barton. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Johannes Hölzl, Mario Carneiro, Patrick Massot
-/
import topology.maps topology.separation
/-!
# Dense embeddings
This file defines three properties of functions:
`dense_range f` ... |
22f19a334e86ee9f7f682432bcf935b2e77e739f | 947b78d97130d56365ae2ec264df196ce769371a | /stage0/src/Lean/Compiler/IR/CtorLayout.lean | 0fdf4e7e880e6bb8b0ecba6b37ddd53f407f20bc | [
"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 | 983 | lean | /-
Copyright (c) 2019 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Leonardo de Moura
-/
import Lean.Environment
import Lean.Compiler.IR.Format
namespace Lean
namespace IR
inductive CtorFieldInfo
| irrelevant
| object (i : Nat)
| usize (i : N... |
a6f8076bc94d3b93b592feef51de98ef0df67e23 | 206422fb9edabf63def0ed2aa3f489150fb09ccb | /src/analysis/calculus/deriv.lean | 1777068df2ba07a097128fdfdca5f21787f504d8 | [
"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 | 74,526 | 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... |
3f6b576d6c0c4cf3bd29efd091f800d46a45e08f | 5fbbd711f9bfc21ee168f46a4be146603ece8835 | /lean/natural_number_game/proposition/5.lean | 62d78e9112479847daab5215571cab2edc0b6c99 | [
"LicenseRef-scancode-warranty-disclaimer"
] | no_license | goedel-gang/maths | 22596f71e3fde9c088e59931f128a3b5efb73a2c | a20a6f6a8ce800427afd595c598a5ad43da1408d | refs/heads/master | 1,623,055,941,960 | 1,621,599,441,000 | 1,621,599,441,000 | 169,335,840 | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 77 | lean | example (P Q : Prop) : P → (Q → P) :=
begin
intros p q,
exact p,
end
|
0607ebc8a8eaff920837a7a3877ef26900e1e732 | 75c54c8946bb4203e0aaf196f918424a17b0de99 | /src/set_theory.lean | d355b568bda827d35a5b840893ff8fa0657d899c | [
"Apache-2.0"
] | permissive | urkud/flypitch | 261e2a45f1038130178575406df8aea78255ba77 | 2250f5eda14b6ef9fc3e4e1f4a9ac4005634de5c | refs/heads/master | 1,653,266,469,246 | 1,577,819,679,000 | 1,577,819,679,000 | 259,862,235 | 1 | 0 | Apache-2.0 | 1,588,147,244,000 | 1,588,147,244,000 | null | UTF-8 | Lean | false | false | 34,947 | lean | /-
Copyright (c) 2019 The Flypitch Project. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Jesse Han, Floris van Doorn
-/
import .to_mathlib
/-
note: in comment above cofinality, change sentence with
+ `∀ a, ∃ b ∈ S, ¬(b > a)`. It is defined for all ordinals, but
-/... |
169a180f31d82e6921fb93b1637cf77e7052803b | 6432ea7a083ff6ba21ea17af9ee47b9c371760f7 | /src/Init/Data/Nat/Power2.lean | 5255c0436560933554df51ef0442e929e47376cb | [
"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,718 | lean | /-
Copyright (c) 2022 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.Nat.Linear
namespace Nat
theorem nextPowerOfTwo_dec {n power : Nat} (h₁ : power > 0) (h₂ : power < n) : n - power * 2 < n - power... |
4b9ae9652bd7fcdb0d679a7e7db2a4d85e2d4276 | 4d2583807a5ac6caaffd3d7a5f646d61ca85d532 | /src/algebra/group/defs.lean | 6d6337da490d6afbf08180cb2c1cf771d983d758 | [
"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 | 29,499 | lean | /-
Copyright (c) 2014 Jeremy Avigad. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Jeremy Avigad, Leonardo de Moura, Simon Hudon, Mario Carneiro
-/
import algebra.group.to_additive
import tactic.basic
/-!
# Typeclasses for (semi)groups and monoids
In this file we de... |
0a0fbf409d3316cfffe9c225f37f99d9bcc6ef0b | b561a44b48979a98df50ade0789a21c79ee31288 | /src/Lean/Elab/App.lean | f30ee84a8606491af91d8c928bf605275b55cdaf | [
"Apache-2.0"
] | permissive | 3401ijk/lean4 | 97659c475ebd33a034fed515cb83a85f75ccfb06 | a5b1b8de4f4b038ff752b9e607b721f15a9a4351 | refs/heads/master | 1,693,933,007,651 | 1,636,424,845,000 | 1,636,424,845,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 43,967 | 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.FindMVar
import Lean.Parser.Term
import Lean.Elab.Term
import Lean.Elab.Binders
import Lean.Elab.SyntheticMVars
import Lean.Elab.Arg
names... |
30e05089749fb0e736c75eda5135eccd29a2b9e9 | 55c7fc2bf55d496ace18cd6f3376e12bb14c8cc5 | /src/ring_theory/subsemiring.lean | bcb51309d49b3430463185c5600492d87876a689 | [
"Apache-2.0"
] | permissive | dupuisf/mathlib | 62de4ec6544bf3b79086afd27b6529acfaf2c1bb | 8582b06b0a5d06c33ee07d0bdf7c646cae22cf36 | refs/heads/master | 1,669,494,854,016 | 1,595,692,409,000 | 1,595,692,409,000 | 272,046,630 | 0 | 0 | Apache-2.0 | 1,592,066,143,000 | 1,592,066,142,000 | null | UTF-8 | Lean | false | false | 24,625 | 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 algebra.ring.prod
import group_theory.submonoid
import data.equiv.ring
/-!
# Bundled subsemirings
We define bundled subsemirings and some standard construc... |
db9b9427bdeb2c3d04fa43ad525358a63388f338 | 556aeb81a103e9e0ac4e1fe0ce1bc6e6161c3c5e | /src/starkware/cairo/common/cairo_secp/verification/verification/signature_recover_public_key_unreduced_sqr_soundness.lean | d12178ce65b7e6e98b7a6d29bf7055e00468411f | [] | permissive | starkware-libs/formal-proofs | d6b731604461bf99e6ba820e68acca62a21709e8 | f5fa4ba6a471357fd171175183203d0b437f6527 | refs/heads/master | 1,691,085,444,753 | 1,690,507,386,000 | 1,690,507,386,000 | 410,476,629 | 32 | 9 | Apache-2.0 | 1,690,506,773,000 | 1,632,639,790,000 | Lean | UTF-8 | Lean | false | false | 2,950 | lean | /-
File: signature_recover_public_key_unreduced_sqr_soundness.lean
Autogenerated file.
-/
import starkware.cairo.lean.semantics.soundness.hoare
import .signature_recover_public_key_code
import ..signature_recover_public_key_spec
open tactic
open starkware.cairo.common.cairo_secp.field
open starkware.cairo.common.cair... |
f79a9d1c3e77655946bf915395e64457fef3577e | 80cc5bf14c8ea85ff340d1d747a127dcadeb966f | /test/simps.lean | 993174e6838599fe9f8726b39f12ce3d595b4e52 | [
"Apache-2.0"
] | permissive | lacker/mathlib | f2439c743c4f8eb413ec589430c82d0f73b2d539 | ddf7563ac69d42cfa4a1bfe41db1fed521bd795f | refs/heads/master | 1,671,948,326,773 | 1,601,479,268,000 | 1,601,479,268,000 | 298,686,743 | 0 | 0 | Apache-2.0 | 1,601,070,794,000 | 1,601,070,794,000 | null | UTF-8 | Lean | false | false | 20,517 | lean | import tactic.simps
-- set_option trace.simps.verbose true
-- set_option trace.app_builder true
open function tactic expr
structure equiv (α : Sort*) (β : Sort*) :=
(to_fun : α → β)
(inv_fun : β → α)
(left_inv : left_inverse inv_fun to_fun)
(right_inv : right_inverse inv_fun to_fun)
local infix ` ≃ `:25 := e... |
4508cb012cc58b1e31687875c4962f2ab2234cbc | 1dd482be3f611941db7801003235dc84147ec60a | /src/ring_theory/multiplicity.lean | 1ff9aa3eb3d95637d4e9ac7749bfd94a5a3abb9e | [
"Apache-2.0"
] | permissive | sanderdahmen/mathlib | 479039302bd66434bb5672c2a4cecf8d69981458 | 8f0eae75cd2d8b7a083cf935666fcce4565df076 | refs/heads/master | 1,587,491,322,775 | 1,549,672,060,000 | 1,549,672,060,000 | 169,748,224 | 0 | 0 | Apache-2.0 | 1,549,636,694,000 | 1,549,636,694,000 | null | UTF-8 | Lean | false | false | 14,749 | lean | /-
Copyright (c) 2018 Robert Y. Lewis. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Robert Y. Lewis, Chris Hughes
-/
import data.nat.enat ring_theory.associated
import tactic.converter.interactive
variables {α : Type*}
open nat roption
/-- `multiplicity a b` retur... |
cb0ddeff2107348329e5919cf9d4557faa57fab8 | d1a52c3f208fa42c41df8278c3d280f075eb020c | /stage0/src/Std/Data/PersistentArray.lean | 1c0fa5f7d8f7c01f60bdbda7d257108ef5fb78dc | [
"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 | 14,305 | lean | /-
Copyright (c) 2019 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Leonardo de Moura
-/
universe u v w
namespace Std
inductive PersistentArrayNode (α : Type u) where
| node (cs : Array (PersistentArrayNode α)) : PersistentArrayNode α
| le... |
b00ebb8817d387bfc5c28117723ba936eb3c82c6 | e61a235b8468b03aee0120bf26ec615c045005d2 | /tests/lean/run/tacticExtOverlap.lean | 35a844170ae8c8168d67538ba6467566ffe8c298 | [
"Apache-2.0"
] | permissive | SCKelemen/lean4 | 140dc63a80539f7c61c8e43e1c174d8500ec3230 | e10507e6615ddbef73d67b0b6c7f1e4cecdd82bc | refs/heads/master | 1,660,973,595,917 | 1,590,278,033,000 | 1,590,278,033,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 575 | lean | new_frontend
open Lean
syntax [myintro] "intros" (sepBy ident ",") : tactic
macro_rules [myintro]
| `(tactic| intros $x*) => pure $ Syntax.node `Lean.Parser.Tactic.intros #[Syntax.atom {} "intros", mkNullNode x.getSepElems]
theorem tst1 {p q : Prop} : p → q → p :=
begin
intros h1, h2;
assumption
end
theorem ts... |
632de520d1158870475ea3b70be6fb4f9d3755a2 | 491068d2ad28831e7dade8d6dff871c3e49d9431 | /tests/lean/run/choose_test.lean | 171b870b9daea72bba1a6f03f0ca7d7c5c89dd31 | [
"Apache-2.0"
] | permissive | davidmueller13/lean | 65a3ed141b4088cd0a268e4de80eb6778b21a0e9 | c626e2e3c6f3771e07c32e82ee5b9e030de5b050 | refs/heads/master | 1,611,278,313,401 | 1,444,021,177,000 | 1,444,021,177,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 157 | lean | import data.encodable
open nat encodable
theorem ex : ∃ x, x > 3 :=
exists.intro 6 dec_trivial
reveal ex
eval choose ex
example : choose ex = 4 :=
rfl
|
798d152c1f3eeb205e167ffd49f866bbc391ef47 | 82e44445c70db0f03e30d7be725775f122d72f3e | /src/analysis/normed_space/operator_norm.lean | a5036dfa3f6dbea5c540efe3e301a6ef275bb98b | [
"Apache-2.0"
] | permissive | stjordanis/mathlib | 51e286d19140e3788ef2c470bc7b953e4991f0c9 | 2568d41bca08f5d6bf39d915434c8447e21f42ee | refs/heads/master | 1,631,748,053,501 | 1,627,938,886,000 | 1,627,938,886,000 | 228,728,358 | 0 | 0 | Apache-2.0 | 1,576,630,588,000 | 1,576,630,587,000 | null | UTF-8 | Lean | false | false | 58,258 | lean | /-
Copyright (c) 2019 Jan-David Salchow. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Jan-David Salchow, Sébastien Gouëzel, Jean Lo
-/
import algebra.algebra.tower
import analysis.normed_space.linear_isometry
import analysis.normed_space.riesz_lemma
import data.equiv... |
4ba4f50ad30a29782a1fe62931073d18ed9470b0 | b11468ab3abb22a54747a1a0e6ffff1005799c4d | /lean/src/valid.lean | 9415d54405c89ce95a051c2f87843de4f8d2858e | [
"Apache-2.0",
"MIT"
] | permissive | atkirtland/miniF2F | ddefddc11469053c1d93fe6ffbe7924d1c06f2f6 | 1c4b8bffebdf052260d11d47a5ff96dc7d1fb8db | refs/heads/main | 1,693,440,222,185 | 1,633,522,781,000 | 1,633,522,781,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 48,009 | lean | /-
Copyright (c) 2021 OpenAI. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Kunhao Zheng, Stanislas Polu, David Renshaw, OpenAI GPT-f
-/
import minif2f_import
open_locale big_operators
open_locale real
open_locale nat
open_locale topological_space
theorem amc12a_201... |
faddfe9129a3874e5e0363951a1669dfc1f2a8a1 | d9d511f37a523cd7659d6f573f990e2a0af93c6f | /src/topology/uniform_space/cauchy.lean | 76dee540d94e919f922a1a682fe82b23ffbc4746 | [
"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 | 28,755 | lean | /-
Copyright (c) 2017 Johannes Hölzl. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Johannes Hölzl, Mario Carneiro
-/
import topology.uniform_space.basic
import topology.bases
import data.set.intervals
/-!
# Theory of Cauchy filters in uniform spaces. Complete uniform... |
43af97c0a75e54e0d22f181821beb78508118980 | 8cae430f0a71442d02dbb1cbb14073b31048e4b0 | /src/tactic/norm_num.lean | 27753225ea3bea71a6b90acdb677886155cc1c87 | [
"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 | 70,047 | lean | /-
Copyright (c) 2017 Simon Hudon All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Simon Hudon, Mario Carneiro
-/
import data.rat.cast
import data.rat.meta_defs
import data.int.lemmas
/-!
# `norm_num`
Evaluating arithmetic expressions including `*`, `+`, `-`, `^`, `≤`.... |
51b68dceed592bb50133246277dbcd17f6d24faf | 36c7a18fd72e5b57229bd8ba36493daf536a19ce | /hott/algebra/category/functor/examples.hlean | 8824e06116efad0510733ae9429f368644c29bd2 | [
"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 | 9,773 | hlean | /-
Copyright (c) 2015 Floris van Doorn. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Floris van Doorn
Definition of functors involving at least two different constructions of categories
-/
import ..constructions.functor ..constructions.product ..constructions.oppos... |
5564b2320b537004da3091079c19ba0c162d798a | 432d948a4d3d242fdfb44b81c9e1b1baacd58617 | /src/topology/uniform_space/cauchy.lean | fd8aa6bfebc54abfa497583c0e55c6d021755997 | [
"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 | 27,309 | lean | /-
Copyright (c) 2017 Johannes Hölzl. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Johannes Hölzl, Mario Carneiro
-/
import topology.uniform_space.basic
import topology.bases
import data.set.intervals
/-!
# Theory of Cauchy filters in uniform spaces. Complete uniform... |
3d329b89ebf74eda74970797468f16756448dca3 | 7cef822f3b952965621309e88eadf618da0c8ae9 | /src/order/order_iso.lean | a2dd1781516a48a770185b1d4d67041c73c54a78 | [
"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 | 13,699 | lean | /-
Copyright (c) 2017 Mario Carneiro. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Mario Carneiro
-/
import order.basic logic.embedding data.nat.basic
open function
universes u v w
variables {α : Type*} {β : Type*} {γ : Type*}
{r : α → α → Prop} {s : β → β → Prop... |
53581cebb79b6e7ad8ff56f779a45cffd3422bd7 | 74addaa0e41490cbaf2abd313a764c96df57b05d | /Mathlib/logic/function/iterate.lean | 8d69acb84fdb4449a7672f60a40c5a039e840516 | [] | 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 | 6,427 | lean | /-
Copyright (c) 2020 Yury Kudryashov. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Author: Yury Kudryashov
-/
import Mathlib.PrePort
import Mathlib.Lean3Lib.init.default
import Mathlib.logic.function.conjugate
import Mathlib.PostPort
universes u v
namespace Mathlib
/-!
#... |
50d61d4ebd78909298fb51bba0215dbaf451783f | 437dc96105f48409c3981d46fb48e57c9ac3a3e4 | /src/data/nat/choose.lean | 8b2302b80014be696441b0c722e7f9e3e7de2648 | [
"Apache-2.0"
] | permissive | dan-c-k/mathlib | 08efec79bd7481ee6da9cc44c24a653bff4fbe0d | 96efc220f6225bc7a5ed8349900391a33a38cc56 | refs/heads/master | 1,658,082,847,093 | 1,589,013,201,000 | 1,589,013,201,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 4,259 | lean | /-
Copyright (c) 2018 Chris Hughes. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Chris Hughes, Bhavik Mehta
-/
import algebra.commute
open nat
open_locale big_operators
lemma nat.prime.dvd_choose {p k : ℕ} (hk : 0 < k) (hkp : k < p) (hp : prime p) : p ∣ choose p k... |
c62d4fd65161100b6945ad04a9f406059b7ab3a4 | 947fa6c38e48771ae886239b4edce6db6e18d0fb | /src/ring_theory/algebraic.lean | d43cd89b05fb095bf14729a831950d92d63dab15 | [
"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 | 17,653 | 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 linear_algebra.finite_dimensional
import ring_theory.integral_closure
import data.polynomial.integral_normalization
/-!
# Algebraic elements and algebraic ex... |
4c52bb48ad2c2945d65914b123cf28d9f34e6fc3 | ce6917c5bacabee346655160b74a307b4a5ab620 | /src/ch4/ex0601.lean | 9f26f1fef95f81db519260ac4c510a9a3af5112c | [] | no_license | Ailrun/Theorem_Proving_in_Lean | ae6a23f3c54d62d401314d6a771e8ff8b4132db2 | 2eb1b5caf93c6a5a555c79e9097cf2ba5a66cf68 | refs/heads/master | 1,609,838,270,467 | 1,586,846,743,000 | 1,586,846,743,000 | 240,967,761 | 1 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 618 | lean | variables (α : Type) (p q : α → Prop)
example : (∀ x, p x ∧ q x) ↔ (∀ x, p x) ∧ (∀ x, q x) :=
⟨λ h, ⟨λ x, (h x).left, λ x, (h x).right⟩, λ ⟨hup, huq⟩ x, ⟨hup x, huq x⟩⟩
example : (∀ x, p x → q x) → (∀ x, p x) → (∀ x, q x) :=
assume hpq hp x,
hpq x (hp x)
example : (∀ x, p x) ∨ (∀ x, q x) → ∀ x, p x ∨ q x :=
as... |
acbe3064ea02296be2c35176f98aaa5d174b9a7a | 3dd1b66af77106badae6edb1c4dea91a146ead30 | /tests/lean/t12.lean | 392df1b067863ad5902e35b377bb3e5126ca5d6c | [
"Apache-2.0"
] | permissive | silky/lean | 79c20c15c93feef47bb659a2cc139b26f3614642 | df8b88dca2f8da1a422cb618cd476ef5be730546 | refs/heads/master | 1,610,737,587,697 | 1,406,574,534,000 | 1,406,574,534,000 | 22,362,176 | 1 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 247 | lean | precedence `+` : 65
precedence `*` : 75
variable N : Type.{1}
check λ (f : N -> N -> N) (g : N → N → N) (infix + := f) (infix * := g) (x y : N), x+x*y
variable f : N → N → N
variable a : N
check a+a -- + notation is not available anymore
|
8fa240d496d9fcca386518dcb8403d18e3ffa175 | 0845ae2ca02071debcfd4ac24be871236c01784f | /library/init/lean/syntax.lean | 3260393b9f77b7774ae6cd1092f93be1aa1256fb | [
"Apache-2.0"
] | permissive | GaloisInc/lean4 | 74c267eb0e900bfaa23df8de86039483ecbd60b7 | 228ddd5fdcd98dd4e9c009f425284e86917938aa | refs/heads/master | 1,643,131,356,301 | 1,562,715,572,000 | 1,562,715,572,000 | 192,390,898 | 0 | 0 | null | 1,560,792,750,000 | 1,560,792,749,000 | null | UTF-8 | Lean | false | false | 13,374 | lean | /-
Copyright (c) 2019 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Author: Sebastian Ullrich, Leonardo de Moura
-/
prelude
import init.lean.name init.lean.format init.data.array
namespace Lean
/-- A hygiene marker introduced by a macro expansion. -/
de... |
de65761cc5aab2b84ad3383e2db9fc425fb48134 | 82e44445c70db0f03e30d7be725775f122d72f3e | /src/data/equiv/denumerable.lean | ae53d211e2fb474e86b56eebd15d7c79198a2e5a | [
"Apache-2.0"
] | permissive | stjordanis/mathlib | 51e286d19140e3788ef2c470bc7b953e4991f0c9 | 2568d41bca08f5d6bf39d915434c8447e21f42ee | refs/heads/master | 1,631,748,053,501 | 1,627,938,886,000 | 1,627,938,886,000 | 228,728,358 | 0 | 0 | Apache-2.0 | 1,576,630,588,000 | 1,576,630,587,000 | null | UTF-8 | Lean | false | false | 10,402 | lean | /-
Copyright (c) 2018 Mario Carneiro. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Mario Carneiro
-/
import data.equiv.encodable.basic
import data.sigma
import data.fintype.basic
import data.list.min_max
/-!
# Denumerable types
This file defines denumerable (counta... |
7a7f7e2d500f36d44654cd011ba8db0143f6cd76 | 624f6f2ae8b3b1adc5f8f67a365c51d5126be45a | /src/Init/Lean/Elab/Tactic.lean | 6cbb6b016e45f51ed903ce0feb68551a31563be6 | [
"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 | 409 | 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, Sebastian Ullrich
-/
prelude
import Init.Lean.Elab.Term
import Init.Lean.Elab.Tactic.Basic
import Init.Lean.Elab.Tactic.ElabTerm
import Init.Lean.Elab.Tactic.... |
37065501027dd75e818a1097f34f29619904770b | a9d0fb7b0e4f802bd3857b803e6c5c23d87fef91 | /tests/lean/run/empty_eq.lean | d4a836f38dbfa94b27da7820070e47c2e091502a | [
"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 | 201 | lean | open nat
inductive Fin : nat → Type
| fz : Π n, Fin (succ n)
| fs : Π {n}, Fin n → Fin (succ n)
open Fin
definition case0 {C : Fin 0 → Type} : Π (f : Fin 0), C f
.
print definition case0
|
78d93662c642886eed640ae165ccf06737df9753 | 07c6143268cfb72beccd1cc35735d424ebcb187b | /src/algebra/big_operators.lean | 39fdcee1f7e28a9b9371046eeab1d1834577057b | [
"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 | 45,921 | 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
Some big operators for lists and finite sets.
-/
import tactic.tauto data.list.defs data.finset data.nat.enat
universes u v w
variables {α : Type u} {β : Type v} {γ : ... |
2394ee9f803e043e72593736b398ac624ff4a0fb | 9dc8cecdf3c4634764a18254e94d43da07142918 | /src/algebra/order/lattice_group.lean | 4ddd79c0c4d14ad96fa2157d692e33b02f4c894d | [
"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 | 19,211 | lean | /-
Copyright (c) 2021 Christopher Hoskin. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Christopher Hoskin
-/
import algebra.group_power.basic -- Needed for squares
import algebra.order.group
import tactic.nth_rewrite
/-!
# Lattice ordered groups
Lattice ordered gro... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.