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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
59386154208ff8aa3496b21d274dee2c7c5d6bfb | b074a51e20fdb737b2d4c635dd292fc54685e010 | /src/data/equiv/algebra.lean | 1bd09188ba98e76b84e294c7ae122af2beaca062 | [
"Apache-2.0"
] | permissive | minchaowu/mathlib | 2daf6ffdb5a56eeca403e894af88bcaaf65aec5e | 879da1cf04c2baa9eaa7bd2472100bc0335e5c73 | refs/heads/master | 1,609,628,676,768 | 1,564,310,105,000 | 1,564,310,105,000 | 99,461,307 | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 11,296 | 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
The role of this file is twofold. In the first part there are theorems of the following
form: if α has a group structure and α ≃ β then β has a group structure, and
sim... |
4af9ac6ffd6ad38a211c43c553db9170d41e97c9 | cf39355caa609c0f33405126beee2739aa3cb77e | /tests/lean/trust0/basic.lean | 4c79436d25d4167773a6ba9ddd6cff91fe2143ee | [
"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 | 4,486 | lean | /-
Copyright (c) 2014 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Floris van Doorn, Leonardo de Moura
-/
prelude
import init.logic
notation `ℕ` := nat
namespace nat
inductive less_than_or_equal (a : ℕ) : ℕ → Prop
| refl : less_than_or_equal... |
44a95c5fa4dfb32a5139d0cf37941710307462fc | 8cae430f0a71442d02dbb1cbb14073b31048e4b0 | /src/algebra/ring/equiv.lean | d68db88abdc0416f51cae26e2736684af0b54b11 | [
"Apache-2.0"
] | permissive | leanprover-community/mathlib | 56a2cadd17ac88caf4ece0a775932fa26327ba0e | 442a83d738cb208d3600056c489be16900ba701d | refs/heads/master | 1,693,584,102,358 | 1,693,471,902,000 | 1,693,471,902,000 | 97,922,418 | 1,595 | 352 | Apache-2.0 | 1,694,693,445,000 | 1,500,624,130,000 | Lean | UTF-8 | Lean | false | false | 24,303 | 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, Callum Sutton, Yury Kudryashov
-/
import algebra.group.opposite
import algebra.hom.ring
import logic.equiv.set
import tactic.assert_exists
/-!
# (Semi)ring equivs
> T... |
5bb3c8dc866e8389a3ad4cf9b4c66489887879e2 | efce24474b28579aba3272fdb77177dc2b11d7aa | /src/homotopy_theory/formal/cofibrations/left_proper.lean | e38f7da03304d3363317511807a4cc833e7cb633 | [
"Apache-2.0"
] | permissive | rwbarton/lean-homotopy-theory | cff499f24268d60e1c546e7c86c33f58c62888ed | 39e1b4ea1ed1b0eca2f68bc64162dde6a6396dee | refs/heads/lean-3.4.2 | 1,622,711,883,224 | 1,598,550,958,000 | 1,598,550,958,000 | 136,023,667 | 12 | 6 | Apache-2.0 | 1,573,187,573,000 | 1,528,116,262,000 | Lean | UTF-8 | Lean | false | false | 984 | lean | import .gluing
universes v u
open category_theory
local notation f ` ∘ `:80 g:80 := g ≫ f
namespace homotopy_theory.cofibrations
open precofibration_category cofibration_category
open homotopy_theory.weak_equivalences
variables {C : Type u} [category.{v} C] [cofibration_category.{v} C]
[has_initial_object.{v} C]
... |
c9251ae802f16cb948ac2509f3d1b9c3a4081428 | 36c7a18fd72e5b57229bd8ba36493daf536a19ce | /library/data/fin.lean | b64a1772f841704760e03fe57b2076dac07e4686 | [
"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 | 18,055 | lean | /-
Copyright (c) 2015 Haitao Zhang. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Haitao Zhang, Leonardo de Moura
Finite ordinal types.
-/
import data.list.basic data.finset.basic data.fintype.card algebra.group data.equiv
open eq.ops nat function list finset fintype... |
8d9187b418eca18b22098e9d1f36f40bc73355f7 | b7f22e51856f4989b970961f794f1c435f9b8f78 | /tests/lean/584b.lean | 0fda05ad5f8d41f7e0e780c313a3b573771f68b0 | [
"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 | 376 | lean | section
variable (A : Type)
section
variables (a b : A)
variable (H : a = b)
definition tst₁ := a
check @tst₁
variable {A}
definition tst₂ := a
check @tst₂ -- A is implicit
lemma symm₂ : b = a := eq.symm H
check @symm₂
end
variable (a : A)
definition tst₃ := a
... |
ebf77c9e24b12de8936490c19f61667985d00641 | 9c2e8d73b5c5932ceb1333265f17febc6a2f0a39 | /src/K/test.lean | e2143a5db5698807aabce6f60dbda36cc8544d94 | [
"MIT"
] | permissive | minchaowu/ModalTab | 2150392108dfdcaffc620ff280a8b55fe13c187f | 9bb0bf17faf0554d907ef7bdd639648742889178 | refs/heads/master | 1,626,266,863,244 | 1,592,056,874,000 | 1,592,056,874,000 | 153,314,364 | 12 | 1 | null | null | null | null | UTF-8 | Lean | false | false | 608 | lean | import .tableau
open fml
-- A simple workaround for fml.iff.
-- Unlike fml.impl, this is really a trusted string-level translation
-- similar to a bash script modifiying the benchmark text.
-- Only k_poly_p and k_poly_n contain iffs.
def fml.iff (φ ψ : fml) := and (impl φ ψ) (impl ψ φ)
def test (ϕ : fml) := fml_is... |
cf8b3f1d43923c4b66d642b125118efcf9d0c507 | 432d948a4d3d242fdfb44b81c9e1b1baacd58617 | /src/linear_algebra/basic.lean | 79e8d96ad7e6a0174d1ad4fa1237137a2f792abf | [
"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 | 104,265 | 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
-/
import algebra.big_operators.pi
import algebra.module.hom
import algebra.module.pi
import algebra.module.prod
import a... |
fbc8bacf46ec2d48d61d6bf8f4b9f0b5b36f1fc1 | 8d65764a9e5f0923a67fc435eb1a5a1d02fd80e3 | /src/algebra/lie/base_change.lean | 955ca5ad8947c3bb5ae1f2fceee912ca3d8ac9de | [
"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 | 5,900 | lean | /-
Copyright (c) 2021 Oliver Nash. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Oliver Nash
-/
import algebra.algebra.restrict_scalars
import algebra.lie.tensor_product
import ring_theory.tensor_product
/-!
# Extension and restriction of scalars for Lie algebras
Li... |
fdd218492a1523b408a53725bed0fb56d5285370 | 968e2f50b755d3048175f176376eff7139e9df70 | /examples/prop_logic_lean_summary/unnamed_448.lean | 0ff9285b6bd7f2248b2e7871918ba52bc7bcbf06 | [] | 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 | 88 | lean | variables p q : Prop
-- BEGIN
example (h : p ↔ q) : p → q :=
iff.elim_left h
-- END |
40dffe3055db8c52753dc60e5d3acd344647dc7e | b7fc5b86b12212bea5542eb2c9d9f0988fd78697 | /src/solutions/tuesday/numbers.lean | d45e9b6610c80f5a2cb3fdd828a5c64084254098 | [] | no_license | stjordanis/lftcm2020 | 3b16591aec853c8546d9c8b69c0bf3f5f3956fee | 1f3485e4dafdc587b451ec5144a1d8d3ec9b411e | refs/heads/master | 1,675,958,865,413 | 1,609,901,722,000 | 1,609,901,722,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 5,029 | lean | import tactic
import data.real.basic
import data.int.gcd
import data.padics
/-!
## Exercises about numbers and casts
-/
/-!
## First exercises
These first examples are just to get you comfortable with
`norm_num`, `norm_cast`, and friends.
-/
example : 12345 < 67890 :=
begin
norm_num
end
example {α : Type} [... |
bcb049674817f0695e9caa03aa852bec1b0fda89 | fffbc47930dc6615e66ece42324ce57a21d5b64b | /src/data/int/basic.lean | 5bfafcc553396a2b354a24f5f61bdc380a25d5c4 | [
"Apache-2.0"
] | permissive | skbaek/mathlib | 3caae8ae413c66862293a95fd2fbada3647b1228 | f25340175631cdc85ad768a262433f968d0d6450 | refs/heads/master | 1,588,130,123,636 | 1,558,287,609,000 | 1,558,287,609,000 | 160,935,713 | 0 | 0 | Apache-2.0 | 1,544,271,146,000 | 1,544,271,146,000 | null | UTF-8 | Lean | false | false | 49,996 | lean | /-
Copyright (c) 2016 Jeremy Avigad. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Jeremy Avigad
The integers, with addition, multiplication, and subtraction.
-/
import data.nat.basic data.list.basic algebra.char_zero algebra.order_functions
open nat
namespace int
... |
923096decc9562f4fd4f8f55a97bd5ad645f973a | d406927ab5617694ec9ea7001f101b7c9e3d9702 | /src/order/minimal.lean | 2a84be94989e8d628005bdc2e3d0fc3656d6185f | [
"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,380 | lean | /-
Copyright (c) 2022 Yaël Dillies. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Yaël Dillies
-/
import order.antichain
import order.upper_lower
/-!
# Minimal/maximal elements of a set
This file defines minimal and maximal of a set with respect to an arbitrary rela... |
5ec345d4c473b482ca18b4f750e0a5495df2886a | 491068d2ad28831e7dade8d6dff871c3e49d9431 | /library/theories/analysis/metric_space.lean | 2b5e35d7ff227c325a7c5057607aa86b0338c48d | [
"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 | 9,594 | lean | /-
Copyright (c) 2015 Jeremy Avigad. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Author: Jeremy Avigad
Metric spaces.
-/
import data.real.division
open real eq.ops classical
structure metric_space [class] (M : Type) : Type :=
(dist : M → M → ℝ)
(dist_self : ∀ x : M, di... |
f71801cb565feef54748564a2ce2ee090d6a36c4 | 624f6f2ae8b3b1adc5f8f67a365c51d5126be45a | /tests/elabissues/structInst.lean | ee8691dc3838a99513b4e279903b531270e8ff94 | [
"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 | 1,466 | lean | namespace Ex1
structure A :=
(x : Nat)
structure B extends A :=
(y : Nat := x + 2) (x := y + 1)
structure C extends B :=
(z : Nat) (x := z + 10)
#check { B . y := 1 } -- works
#check { C . z := 1 } -- doesn't work, expected { z := 1, x := 1 + 10, y := (1 + 10) + 2 }
end Ex1
namespace Ex2
structure A :=
(x : Nat)... |
4f9c3059c73f455397625aa0462b9c4779ca4abc | dd0f5513e11c52db157d2fcc8456d9401a6cd9da | /08_Building_Theories_and_Proofs.org.27.lean | c4bd8e0b85d7bed9e2fd89f8ac88843c624336d5 | [] | 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 | 881 | lean | import standard
import data.int
open int eq.ops
section mod_m
parameter (m : ℤ)
variables (a b c : ℤ)
definition mod_equiv := (m ∣ b - a)
local infix ≡ := mod_equiv
theorem mod_refl : a ≡ a :=
show m ∣ a - a, from (sub_self a)⁻¹ ▸ !dvd_zero
theorem mod_symm (H : a ≡ b) : b ≡ a :=
have H1 : (m ∣ -(b - a)), from iff... |
8bf30accc0d08d72a1ac7141c98b5c77c5651a0e | 48eee836fdb5c613d9a20741c17db44c8e12e61c | /src/util/meta/format.lean | eab01f15e0799eae4baf81c3943df06a87383de6 | [
"Apache-2.0"
] | permissive | fgdorais/lean-universal | 06430443a4abe51e303e602684c2977d1f5c0834 | 9259b0f7fb3aa83a9e0a7a3eaa44c262e42cc9b1 | refs/heads/master | 1,592,479,744,136 | 1,589,473,399,000 | 1,589,473,399,000 | 196,287,552 | 1 | 1 | null | null | null | null | UTF-8 | Lean | false | false | 772 | lean | -- Copyright © 2019 François G. Dorais. All rights reserved.
-- Released under Apache 2.0 license as described in the file LICENSE.
meta def binder_info.to_fmt : binder_info → format → format
| binder_info.default := format.paren
| binder_info.implicit := format.cbrace
| binder_info.inst_implicit := format.sbracket
|... |
1a88dce654b78ff1535c0796dd99858ca228ffe6 | 271e26e338b0c14544a889c31c30b39c989f2e0f | /stage0/src/Init/Lean/Compiler/IR/RC.lean | f5bc2e48265e9db93469fbaeb8b2cc9133e4b581 | [
"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,630 | lean | /-
Copyright (c) 2019 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Leonardo de Moura
-/
prelude
import Init.Lean.Runtime
import Init.Lean.Compiler.IR.CompilerM
import Init.Lean.Compiler.IR.LiveVars
namespace Lean
namespace IR
namespace Explici... |
876ff96aa052a35792e435d724403e5de6ea4a54 | 159fed64bfae88f3b6a6166836d6278f953bcbf9 | /Structure/Generic/Mapped.lean | 15ba7f66e3a1593dc876f044df2457b8c6b8bb66 | [
"MIT"
] | permissive | SReichelt/lean4-experiments | 3e56830c8b2fbe3814eda071c48e3c8810d254a8 | ff55357a01a34a91bf670d712637480089085ee4 | refs/heads/main | 1,683,977,454,907 | 1,622,991,121,000 | 1,622,991,121,000 | 340,765,677 | 2 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 4,575 | lean | #exit
import Structure.Generic.Axioms
open GeneralizedRelation
set_option autoBoundImplicitLocal false
universes u v w
@[reducible] def mapOperation {α : Sort u} {β : Sort v} (op : α → α → β) {ω : Sort w} (m : ω → α) :
ω → ω → β :=
λ a b => op (m a) (m b)
namespace GeneralizedProperty
variable {α : Sor... |
5047ff2ab4d24f326f33ffa24ee276dba2ec8dae | 63abd62053d479eae5abf4951554e1064a4c45b4 | /src/data/padics/hensel.lean | 73c0de648f1740fa71f1a666f079e83b4417f238 | [
"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 | 21,279 | 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
-/
import data.padics.padic_integers
import topology.metric_space.cau_seq_filter
import analysis.specific_limits
import data.polynomial.identities
import topology.alge... |
0807b7be1580277b6ecc55dfdba4fe7714f0d557 | f4bff2062c030df03d65e8b69c88f79b63a359d8 | /kb_solns/sets_level03.lean | 6c0a987a3b6c6420d9aab371902df0feb1c33360 | [
"Apache-2.0"
] | permissive | adastra7470/real-number-game | 776606961f52db0eb824555ed2f8e16f92216ea3 | f9dcb7d9255a79b57e62038228a23346c2dc301b | refs/heads/master | 1,669,221,575,893 | 1,594,669,800,000 | 1,594,669,800,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 1,307 | lean | import game.sets.sets_level02 -- hide
namespace xena -- hide
variable X : Type -- hide
/-
# Chapter 1 : Sets
## Level 3
-/
/-
Now prove that for any two sets $A$ and $B$, $A ∩ B ⊆ A$.
The definition of `x ∈ A ∩ B` is `x ∈ A ∧ x ∈ B`.
This should be similar to the previous exercises.
-/
/- Hint : Hint : Try... |
9aba577d19d4b358eeb192f64751811534c16e3b | 36c7a18fd72e5b57229bd8ba36493daf536a19ce | /library/data/list/basic.lean | d0237c31a0c27b36027539479a037c88bdf38f97 | [
"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 | 29,022 | lean | /-
Copyright (c) 2014 Parikshit Khanna. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Parikshit Khanna, Jeremy Avigad, Leonardo de Moura, Floris van Doorn
Basic properties of lists.
-/
import logic tools.helper_tactics data.nat.order data.nat.sub
open eq.ops helper_t... |
4b7d4cf218654c9710a2fca84694b3005bdd7902 | 74addaa0e41490cbaf2abd313a764c96df57b05d | /Mathlib/group_theory/perm/basic_auto.lean | a8280e808df5d5f7c0c99fdea1c3bc886764a33b | [] | 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,834 | 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
-/
import Mathlib.PrePort
import Mathlib.Lean3Lib.init.default
import Mathlib.data.equiv.basic
import Mathlib.algebra.group.basic
import Mathli... |
49b62252eef958e6a69f4e99f2724e492f88c04f | d406927ab5617694ec9ea7001f101b7c9e3d9702 | /src/category_theory/closed/types.lean | 30614de6280deb568fee208ca5d46ff92364e0fa | [
"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,752 | 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.presheaf
import category_theory.limits.preserves.functor_category
import category_theory.limits.shapes.types
import category_theory.closed.c... |
cfc292997e57e85d9e1541b644d3070e7ecc7c6e | 2a70b774d16dbdf5a533432ee0ebab6838df0948 | /src/sillari.lean | 3abe24ca1202f7e529dce9f1a12e66171c5715a7 | [] | no_license | 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 | 8,736 | lean | /-
Copyright (c) 2021 Huub Vromen. All rights reserved.
Author: Huub Vromen
-/
import modal_logic_multi_agent
variable {indiv : Type}
variable {f : m_frame indiv}
variables {s t u v : f.wo}
variables {A φ ψ γ : f.wo → Prop}
variables i j i1 i2 : indiv
/- Sillari's theory has to represent the two central concepts of... |
21b037b1ef91369d8ef89815e3365dc0f6c6ec59 | 217bb195841a8be2d1b4edd2084d6b69ccd62f50 | /library/init/control/estate.lean | 609f1094ca7033289651e016b17dcac3828e2f22 | [
"Apache-2.0"
] | permissive | frank-lesser/lean4 | 717f56c9bacd5bf3a67542d2f5cea721d4743a30 | 79e2abe33f73162f773ea731265e456dbfe822f9 | refs/heads/master | 1,589,741,267,933 | 1,556,424,200,000 | 1,556,424,281,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 5,247 | 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
The combined Except and State Monad that minimizes the number
of memory allocations using the approach described in the paper
"Counting immutable beans" by Se... |
61a0e3ed31f3e3605faefbd615f1a1da9bb24e46 | 82e44445c70db0f03e30d7be725775f122d72f3e | /src/algebra/direct_sum.lean | 40561e1af3d38522a77784c09caf1fe688f65cfc | [
"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 | 7,249 | lean | /-
Copyright (c) 2019 Kenny Lau. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Kenny Lau
-/
import data.dfinsupp
import group_theory.submonoid.operations
import group_theory.subgroup
/-!
# Direct sum
This file defines the direct sum of abelian groups, indexed by a ... |
9d56509922da5a7780949275a385177123818499 | a9d0fb7b0e4f802bd3857b803e6c5c23d87fef91 | /library/data/rat/basic.lean | 517de29ba6c1bd65b9e1469da97d4bd480c1b8cb | [
"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 | 24,175 | lean | /-
Copyright (c) 2014 Jeremy Avigad. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Author: Jeremy Avigad
The rational numbers as a field generated by the integers, defined as the usual quotient.
-/
import data.int algebra.field
open int quot eq.ops
record prerat : Type :=
(n... |
498dd8b674071f011b09c497d19379505720a2fc | c777c32c8e484e195053731103c5e52af26a25d1 | /src/topology/metric_space/isometric_smul.lean | 01e41594ac879c065678cb4116ee8aa5f64a9147 | [
"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 | 17,109 | lean | /-
Copyright (c) 2022 Yury Kudryashov. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Yury Kudryashov
-/
import topology.metric_space.isometry
/-!
# Group actions by isometries
> THIS FILE IS SYNCHRONIZED WITH MATHLIB4.
> Any changes to this file require a correspond... |
b8f1c02cf821b809b3377c3cf120e777fd5a2271 | d406927ab5617694ec9ea7001f101b7c9e3d9702 | /src/topology/category/Profinite/cofiltered_limit.lean | 001599ef16aa5e406f1c6c1a0398428530c44f00 | [
"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,392 | lean | /-
Copyright (c) 2021 Adam Topaz. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Adam Topaz
-/
import topology.category.Profinite.basic
import topology.locally_constant.basic
import topology.discrete_quotient
/-!
# Cofiltered limits of profinite sets.
This file conta... |
7757ddfb5f29edc91fbe28855b4ea8b5d99dc42d | 26ac254ecb57ffcb886ff709cf018390161a9225 | /src/linear_algebra/finsupp.lean | f3b05084f46cebd9d5b2ecb10d2465043c239d3a | [
"Apache-2.0"
] | permissive | eric-wieser/mathlib | 42842584f584359bbe1fc8b88b3ff937c8acd72d | d0df6b81cd0920ad569158c06a3fd5abb9e63301 | refs/heads/master | 1,669,546,404,255 | 1,595,254,668,000 | 1,595,254,668,000 | 281,173,504 | 0 | 0 | Apache-2.0 | 1,595,263,582,000 | 1,595,263,581,000 | null | UTF-8 | Lean | false | false | 21,425 | lean | /-
Copyright (c) 2019 Johannes Hölzl. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Author: Johannes Hölzl
Linear structures on function with finite support `α →₀ M`.
-/
import data.monoid_algebra
noncomputable theory
open set linear_map submodule
open_locale classical
na... |
38aee4ac837cfaa3f1b0250a73490d43352e34ea | ff911daea4be3499192c228731e7970642099e80 | /src/mywork/lecture_1quiz.lean | 4d5fa9f11d58043e52d1b80570cc37e3ab856e4e | [] | no_license | calvinfsmith/CalvinCS2021 | e578c60a92cc63c0808ada80cb2fa7f0db05eaee | 339368cdc9e13739f2ffe2447c259d4408679f65 | refs/heads/main | 1,689,866,822,104 | 1,630,449,155,000 | 1,630,449,155,000 | 399,946,885 | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 1,261 | lean | /-++++++++++
EXERCISES #1.
Give a quasi-formal English language "proof"
of the proposition that 2 = 2.
Theorem: 2 = 2.
Proof: By the reflexive property of equality (applied to the particular value, 2), it is shown that 2 = 2.
-/
/-++++++++++
EXERCISE #2.
Give, below, a formal statement and proof of
the propositio... |
4e9073f52b01573a5d16795fa3cca6bbb4c677b2 | b7f22e51856f4989b970961f794f1c435f9b8f78 | /tests/lean/acc.lean | 04be04b647ae115f7a6edda1f72aa7494d106328 | [
"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 | 175 | lean | namespace play
inductive acc (A : Type) (R : A → A → Prop) : A → Prop :=
intro : ∀ (x : A), (∀ (y : A), R y x → acc A R y) → acc A R x
check @acc.rec
end play
|
6a04a3f01bdc6deba21ac1244d1292e7363230e3 | 6432ea7a083ff6ba21ea17af9ee47b9c371760f7 | /doc/examples/phoas.lean | c4bb8ac76ceb1cebf9d67ade73fe9c97d73ea82e | [
"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 | 10,539 | lean | /-!
# Parametric Higher-Order Abstract Syntax
In contrast to first-order encodings, higher-order encodings avoid explicit modeling of variable identity.
Instead, the binding constructs of an object language (the language being
formalized) can be represented using the binding constructs of the meta language (the langua... |
1674eb778d87bc5e0dad33db41dd0a4838a90be7 | 33340b3a23ca62ef3c8a7f6a2d4e14c07c6d3354 | /num.lean | f2e7ab7da3dc364631bdd67eade5a3e8a62dd90d | [] | no_license | lclem/cooper | 79554e72ced343c64fed24b2d892d24bf9447dfe | 812afc6b158821f2e7dac9c91d3b6123c7a19faf | refs/heads/master | 1,607,554,257,488 | 1,578,694,133,000 | 1,578,694,133,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 18,431 | lean | import data.num.lemmas data.list.basic .tactics .int
open tactic
def nat.to_num (n : nat) : num := n
def int.to_znum (z : int) : znum := z
def nat.to_znum : nat → znum := int.to_znum ∘ nat.to_int
def num.to_nat (n : num) : nat := n
def znum.to_int (z : znum) : int := z
def znum.to_nat : znum → nat := int.to_nat ∘ znu... |
90dd032da79d2b551eeead9219fb27be1e50d833 | f1a12d4db0f46eee317d703e3336d33950a2fe7e | /common/lnq.lean | e4858fa1e9c04a3540fefeec110c63ab61196991 | [
"Apache-2.0"
] | permissive | avigad/qelim | bce89b79c717b7649860d41a41a37e37c982624f | b7d22864f1f0a2d21adad0f4fb3fc7ba665f8e60 | refs/heads/master | 1,584,548,938,232 | 1,526,773,708,000 | 1,526,773,708,000 | 134,967,693 | 2 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 3,306 | lean | import .nnf .predicates
variables {α β : Type}
def lift_nnf_qe (β) [Hα : atom_type α β] (qe : fm α → fm α) : fm α → fm α
| (p ∧' q) := and_o (lift_nnf_qe p) (lift_nnf_qe q)
| (p ∨' q) := or_o (lift_nnf_qe p) (lift_nnf_qe q)
| (¬' p) := not_o (lift_nnf_qe p)
| (∃' p) := qe (@nnf α β Hα (lift_nnf_qe p))
| p := p
lem... |
b8cb7ea8075d5876eb565929797938ded94f8116 | 74addaa0e41490cbaf2abd313a764c96df57b05d | /Mathlib/topology/tactic.lean | 8537df77f4ee727236e73c4156e95c92f3147ed1 | [] | no_license | AurelienSaue/Mathlib4_auto | f538cfd0980f65a6361eadea39e6fc639e9dae14 | 590df64109b08190abe22358fabc3eae000943f2 | refs/heads/master | 1,683,906,849,776 | 1,622,564,669,000 | 1,622,564,669,000 | 371,723,747 | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 2,197 | lean | /-
Copyright (c) 2020 Reid Barton. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Reid Barton
-/
import Mathlib.PrePort
import Mathlib.Lean3Lib.init.default
import Mathlib.tactic.auto_cases
import Mathlib.tactic.tidy
import Mathlib.tactic.with_local_reducibility
import... |
52e2709be80b3553a2bbde5b570b2c7bf2d8e9dc | 74addaa0e41490cbaf2abd313a764c96df57b05d | /Mathlib/computability/tm_computable_auto.lean | 1f07c9df47314c15d6def42f8e7fde5f1a1ee5ae | [] | no_license | AurelienSaue/Mathlib4_auto | f538cfd0980f65a6361eadea39e6fc639e9dae14 | 590df64109b08190abe22358fabc3eae000943f2 | refs/heads/master | 1,683,906,849,776 | 1,622,564,669,000 | 1,622,564,669,000 | 371,723,747 | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 14,622 | lean | /-
Copyright (c) 2020 Pim Spelier, Daan van Gent. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Pim Spelier, Daan van Gent.
-/
import Mathlib.PrePort
import Mathlib.Lean3Lib.init.default
import Mathlib.computability.encoding
import Mathlib.computability.turing_machine... |
63733e64fbc30e01fd5ff690d42e98a994290686 | 4bddde0d06fbd53be6f23d7f5899998e8f63410b | /src/tactic/iconfig/env.lean | 4b54c209713c452e164792b3cb703a8c351cba34 | [] | no_license | khoek/libiconfig | 4816290a5862af14b07683b3d2663e8e62832ef4 | 6f55c50bc5d852d26ee5ee4c5b52b2cda2a852e5 | refs/heads/master | 1,586,109,683,212 | 1,559,567,916,000 | 1,559,567,916,000 | 157,085,466 | 0 | 1 | null | 1,559,567,917,000 | 1,541,945,134,000 | Lean | UTF-8 | Lean | false | false | 2,713 | lean | import .monad
import .struct
namespace iconfig
open tactic
meta def mk_config_ns (cfgn : name) : name := (`iconfig).append cfgn
meta def assert_config_exists (cfgn : name) : tactic unit := do
e ← get_env,
if e.is_namespace $ mk_config_ns cfgn then skip
else fail format!"There is no config `{cfgn}`"
private m... |
0634258954489da6000bb081a8a7ee00aa51aaa8 | d65db56b17d72b62013ed1f438f74457ad25b140 | /src/lib/logic.lean | 395b1f6c97d5e0abdce17a23aa6cd5e1f5e3fb20 | [] | no_license | swgillespie/proofs | cfa65722fdb4bb7d7910a0856d0cbea8e8b9a3f9 | 168ef7ef33d372ae0ed6ee4ca336137a52b89f8f | refs/heads/master | 1,585,700,692,028 | 1,540,162,775,000 | 1,540,162,775,000 | 152,695,805 | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 667 | lean | namespace logic
open classical
variables {p q : Prop}
theorem not_or : ¬p ∧ ¬q → ¬(p ∨ q)
| ⟨hnp, _⟩ (or.inl hp) := hnp hp
| ⟨_, hnq⟩ (or.inr hq) := hnq hq
theorem not_and : ¬p ∨ ¬q → ¬(p ∧ q)
| (or.inl hnp) ⟨hp, _⟩ := hnp hp
| (or.inr hnq) ⟨_, hq⟩ := hnq hq
theorem or_not : ¬(p ∧ q) → ¬p ∨ ¬q :=
λ h_not_p_and_q,
... |
cf2db1627744801476ced6b1d33b145474f31805 | d9d511f37a523cd7659d6f573f990e2a0af93c6f | /src/ring_theory/fractional_ideal.lean | 16ded70d8dac426f530c79f310f5b3440b9ff74a | [
"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 | 49,417 | lean | /-
Copyright (c) 2020 Anne Baanen. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Anne Baanen, Filippo A. E. Nuccio
-/
import ring_theory.localization
import ring_theory.noetherian
import ring_theory.principal_ideal_domain
import tactic.field_simp
/-!
# Fractional ide... |
126239ddb6768e29a5db3b173f22fc532fe322fc | 38ee9024fb5974f555fb578fcf5a5a7b71e669b5 | /Mathlib/Algebra/GroupWithZero/Defs.lean | bd0294feeb9fe85df4ade9c1d3f344ae9e6e0417 | [
"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 | 539 | 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
export MonoidWithZero (zero_mul mul_zero)
attribute [simp] zero_mul mul_zero
class GroupWithZero (G₀ : Type u) extends DivInvMonoid G₀, MonoidWithZero ... |
c799e20e0cd596c797b17e05ec61a2b7869bf17c | 947b78d97130d56365ae2ec264df196ce769371a | /tests/lean/trust0/basic.lean | bc20fec135e1147bedb6c6e2eb1e28cce8ed5183 | [
"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 | 4,976 | lean | /-
Copyright (c) 2014 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Floris van Doorn, Leonardo de Moura
-/
prelude
import Init.Core
notation `ℕ` := Nat
namespace Nat
inductive lessThanOrEqual (a : ℕ) : ℕ → Prop
| refl {} : lessThanOrEqual a
|... |
500485cdeeb776a5a4045dfa2569bdea520787b9 | ea5678cc400c34ff95b661fa26d15024e27ea8cd | /fintype_perm.lean | 8ed9e7aeb4a17189f68f4999809e5a7482a19763 | [] | 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 | 6,471 | lean | import data.multiset data.equiv.basic data.nat.basic group_theory.perm
open equiv.perm equiv list
variables {α : Type*} {β : Type*} [decidable_eq α]
def thing : list α → list (perm α)
| [] := [1]
| (a :: l) := thing l ++ l.bind (λ b, (thing l).map (λ f, swap a b * f))
@[simp] lemma thing_nil : thing ([] : lis... |
4663cc3d656f9028dab0a8e94da15ee0cddd2f4b | e953c38599905267210b87fb5d82dcc3e52a4214 | /library/algebra/ring_power.lean | b011cc5bbc6853f891f32c7c8f90992239b5d44e | [
"Apache-2.0"
] | permissive | c-cube/lean | 563c1020bff98441c4f8ba60111fef6f6b46e31b | 0fb52a9a139f720be418dafac35104468e293b66 | refs/heads/master | 1,610,753,294,113 | 1,440,451,356,000 | 1,440,499,588,000 | 41,748,334 | 0 | 0 | null | 1,441,122,656,000 | 1,441,122,656,000 | null | UTF-8 | Lean | false | false | 3,664 | lean | /-
Copyright (c) 2015 Jeremy Avigad. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Author: Jeremy Avigad
Properties of the power operation in an ordered ring or field.
(Right now, this file is just a stub. More soon.)
-/
import .group_power .ordered_field
open nat
namespace... |
6fec4499477fd24c4ea11622015f99784dc128a2 | cf39355caa609c0f33405126beee2739aa3cb77e | /tests/lean/run/e16.lean | cdc91345506e05b830eba577fe25e7a2c0099eae | [
"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 | 563 | lean | prelude
inductive nat : Type
| zero : nat
| succ : nat → nat
namespace nat end nat open nat
inductive {u} list (A : Type u) : Type u
| nil {} : list
| cons : A → list → list
namespace list end list open list
#check nil
#check nil.{0}
#check @nil.{0} nat
#check @nil nat
#check cons zero nil
inductive {u} vector (A... |
a3f4c095b7f63c4320125ee1d27180d43ee05601 | b7b549d2cf38ac9d4e49372b7ad4d37f70449409 | /src/LeanLLVM/ClangFFI.lean | 25f8fae14146665db2ab8a61841e25376837b012 | [
"Apache-2.0"
] | permissive | GaloisInc/lean-llvm | 7cc196172fe02ff3554edba6cc82f333c30fdc2b | 36e2ec604ae22d8ec1b1b66eca0f8887880db6c6 | refs/heads/master | 1,637,359,020,356 | 1,629,332,114,000 | 1,629,402,464,000 | 146,700,234 | 29 | 1 | Apache-2.0 | 1,631,225,695,000 | 1,535,607,191,000 | Lean | UTF-8 | Lean | false | false | 969 | lean | import .llvm_ffi
--@[extern 3 cpp "lean_llvm::compileCFile"]
--def compileCFile : LLVMContext → @&String → IO Module := default _
--@[extern 3 cpp "lean_llvm::compileCPPFile"]
--def compileCPPFile : LLVMContext → @&String → IO Module := default _
----------------------------------------------------------------------... |
406c526b86340f3e2705e6c04b2a78d4d80a1332 | d406927ab5617694ec9ea7001f101b7c9e3d9702 | /src/algebra/order/monoid/lemmas.lean | c859da1aaeb10f2ef6c4b53238e87e9c7ee0104b | [
"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 | 47,883 | lean | /-
Copyright (c) 2016 Jeremy Avigad. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Jeremy Avigad, Leonardo de Moura, Mario Carneiro, Johannes Hölzl, Damiano Testa,
Yuyang Zhao
-/
import algebra.covariant_and_contravariant
/-!
# Ordered monoids
> THIS FILE IS SYNCHRO... |
2cff3bb2257697b4fd178c2ef1659ad20af70b7b | 1abd1ed12aa68b375cdef28959f39531c6e95b84 | /src/algebra/associated.lean | 31ba81a741e71da69e4823b0bdd31e2118cebf7f | [
"Apache-2.0"
] | permissive | jumpy4/mathlib | d3829e75173012833e9f15ac16e481e17596de0f | af36f1a35f279f0e5b3c2a77647c6bf2cfd51a13 | refs/heads/master | 1,693,508,842,818 | 1,636,203,271,000 | 1,636,203,271,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 30,671 | 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
-/
import algebra.big_operators.basic
import algebra.divisibility
import algebra.invertible
/-!
# Associated, prime, and irreducible elements.
-/
varia... |
d1c4f5d0dc2e3b90831893db5f994524bd8709ad | 40ad357bbd0d327dd1e3e7f7beb868bd4e5b0a9d | /src/temporal_logic/refinement/default.lean | 990250ffc8b3b364b9253173a3306fed9f6997f2 | [] | no_license | unitb/temporal-logic | 9966424f015976d5997a9ffa30cbd77cc3a9cb1c | accec04d1b09ca841be065511c9e206b725b16e9 | refs/heads/master | 1,633,868,382,769 | 1,541,072,223,000 | 1,541,072,223,000 | 114,790,987 | 5 | 3 | null | null | null | null | UTF-8 | Lean | false | false | 59 | lean | import .simulation
import .one_to_one
import .many_to_many
|
3d746bf4273ab2bea7c711f51f8bc1d32499ecd6 | cf39355caa609c0f33405126beee2739aa3cb77e | /tests/lean/run/elab_bool.lean | 2267e9dc4a1099e50406700306c98aa21bf1fa89 | [
"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 | 116 | lean | variable b : bool
#check if b then tt else ff
#check if b && b then tt else ff
#check if b ∧ b then tt else ff
|
96c95e50a4eea595cca382b160970fb0029393c3 | 0ec6b5eb2131429a4464b8e6c6f09897abba3de1 | /src/topological_group.lean | 717cfd495ec11cc974ddaa1c234949d275f2b98e | [] | no_license | kckennylau/local-langlands-abelian | ba1b86e9d956778cd28ac900ffec02b0f0ba172a | ee22666898357dab800a0432214a22c519ed26a9 | refs/heads/master | 1,584,671,060,846 | 1,545,151,246,000 | 1,545,151,246,000 | 137,111,892 | 8 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 11,899 | lean | import analysis.topology.topological_structures
import analysis.topology.continuity
import analysis.complex
import algebra.pi_instances
import group_theory.quotient_group
universes u v
instance subtype.val.is_group_hom (α : Type u) [group α]
(S : set α) [is_subgroup S] : is_group_hom (subtype.val : S → α) ... |
ce71342cf0413b8d4fe6df573a1b6c76d2af6210 | 4efff1f47634ff19e2f786deadd394270a59ecd2 | /src/category_theory/graded_object.lean | f37c51f33f41ad37edc3ec8b0a5948cbdbc87b07 | [
"Apache-2.0"
] | permissive | agjftucker/mathlib | d634cd0d5256b6325e3c55bb7fb2403548371707 | 87fe50de17b00af533f72a102d0adefe4a2285e8 | refs/heads/master | 1,625,378,131,941 | 1,599,166,526,000 | 1,599,166,526,000 | 160,748,509 | 0 | 0 | Apache-2.0 | 1,544,141,789,000 | 1,544,141,789,000 | null | UTF-8 | Lean | false | false | 6,100 | 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 category_theory.shift
import category_theory.concrete_category
import category_theory.pi.basic
/-!
# The category of graded objects
For any type `β`, a `β`-g... |
610a2feff2a07147e292f51fb5d0345fb7906190 | 624f6f2ae8b3b1adc5f8f67a365c51d5126be45a | /stage0/src/Init/Control/State.lean | 0e60bb45d0cfd04d97b020881421fe75729fbfe6 | [
"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 | 8,588 | 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, Sebastian Ullrich
The State monad transformer.
-/
prelude
import Init.Control.Alternative
import Init.Control.Lift
import Init.Control.Id
import Init.Control... |
e2959a99f6dc15708a90415537d993b155d3bddb | 453dcd7c0d1ef170b0843a81d7d8caedc9741dce | /tests/examples.lean | 6ca5c28d51f4c8a74d709374a7396522a6fe587c | [
"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 | 2,936 | lean | import tactic data.stream.basic data.set.basic data.finset data.multiset
open tactic
universe u
variable {α : Type}
example (s t u : set ℕ) (h : s ⊆ t ∩ u) (h' : u ⊆ s) : u ⊆ s → true :=
begin
dunfold has_subset.subset has_inter.inter at *,
-- trace_state,
intro1, triv
end
example (s t u : set ℕ) (h : s ⊆ t ∩ u... |
a1026b9e009c446e104178eb8d5023dbc7149392 | 302c785c90d40ad3d6be43d33bc6a558354cc2cf | /src/linear_algebra/exterior_algebra.lean | fccdc14b7d611abbc29d223fddfc231f3da6bf39 | [
"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 | 10,208 | lean | /-
Copyright (c) 2020 Adam Topaz. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Zhangir Azerbayev, Adam Topaz, Eric Wieser
-/
import algebra.ring_quot
import linear_algebra.tensor_algebra
import linear_algebra.alternating
import group_theory.perm.sign
/-!
# Exterior... |
0ef15fd016eb91e85fd3d61f14262b66f2ea42e1 | 82b86ba2ae0d5aed0f01f49c46db5afec0eb2bd7 | /src/Lean/Meta/SynthInstance.lean | fd8f58e02eeeac516af48155ad25c374f985b726 | [
"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 | 24,812 | lean | /-
Copyright (c) 2019 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Daniel Selsam, Leonardo de Moura
Type class instance synthesizer using tabled resolution.
-/
import Lean.Meta.Basic
import Lean.Meta.Instances
import Lean.Meta.LevelDefEq
impor... |
0960b7ca1c23b4544a6b76ce11291a874c241e76 | bb31430994044506fa42fd667e2d556327e18dfe | /src/analysis/special_functions/trigonometric/angle.lean | d670c850c3f767be45fb7b4eab621f5797ac90e1 | [
"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 | 35,607 | lean | /-
Copyright (c) 2019 Calle Sönne. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Calle Sönne
-/
import analysis.special_functions.trigonometric.basic
import analysis.normed.group.add_circle
import algebra.char_zero.quotient
import algebra.order.to_interval_mod
import ... |
47afe10a5e2ad949176e63a6128c6c5c70f338cd | 54d7e71c3616d331b2ec3845d31deb08f3ff1dea | /library/init/data/to_string.lean | 49df129bab338c3e1faf204d0c08d1780b4a807f | [
"Apache-2.0"
] | permissive | pachugupta/lean | 6f3305c4292288311cc4ab4550060b17d49ffb1d | 0d02136a09ac4cf27b5c88361750e38e1f485a1a | refs/heads/master | 1,611,110,653,606 | 1,493,130,117,000 | 1,493,167,649,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 3,596 | 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.data.string.basic init.data.bool.basic init.data.subtype.basic
import init.data.unsigned.basic init.data.prod init.data.sum.basic init.da... |
821c591b229858e3700797e29ba08843038accd6 | d31b9f832ff922a603f76cf32e0f3aa822640508 | /tests/induction.lean | de17ec6f4c5ab3334a2215ddaad97545c516ac47 | [
"Apache-2.0"
] | permissive | javra/hott3 | 6e7a9e72a991a2fae32e5764982e521dca617b16 | cd51f2ab2aa48c1246a188f9b525b30f76c3d651 | refs/heads/master | 1,585,819,679,148 | 1,531,232,382,000 | 1,536,682,965,000 | 154,294,022 | 0 | 0 | Apache-2.0 | 1,540,284,376,000 | 1,540,284,375,000 | null | UTF-8 | Lean | false | false | 7,865 | lean | import hott.init
open expr tactic pexpr hott
universes u v
noncomputable theory
axiom sorry' : Π{α : Sort _}, α /- no warnings are generated when using this axiom -/
@[induction] def foo2 {X Y : Type} {P : X × Y → Type} (x : X × Y) (z : Πa b, P ⟨a, b⟩) : P x := sorry'
@[induction] def foo3 {P : ℕ × ℕ → Sort _} (x : ℕ ... |
4b628e84c67a37841a315d9522dcea3e3dbc00e6 | b2e508d02500f1512e1618150413e6be69d9db10 | /src/data/polynomial.lean | a47d0c3947c5c853050c37531168876472702787 | [
"Apache-2.0"
] | permissive | callum-sutton/mathlib | c3788f90216e9cd43eeffcb9f8c9f959b3b01771 | afd623825a3ac6bfbcc675a9b023edad3f069e89 | refs/heads/master | 1,591,371,888,053 | 1,560,990,690,000 | 1,560,990,690,000 | 192,476,045 | 0 | 0 | Apache-2.0 | 1,568,941,843,000 | 1,560,837,965,000 | Lean | UTF-8 | Lean | false | false | 97,985 | lean | /-
Copyright (c) 2018 Chris Hughes. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Chris Hughes, Johannes Hölzl, Jens Wagemaker
Theory of univariate polynomials, represented as `ℕ →₀ α`, where α is a commutative semiring.
-/
import data.finsupp algebra.gcd_domain ring... |
a8b9a5726d22605254931bba5deb3c6e83cbb4fb | 432d948a4d3d242fdfb44b81c9e1b1baacd58617 | /archive/100-theorems-list/83_friendship_graphs.lean | 074e74fb925ba061e3250befddbc03b0098e71dc | [
"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,782 | lean | /-
Copyright (c) 2020 Aaron Anderson. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Aaron Anderson, Jalex Stark, Kyle Miller
-/
import combinatorics.simple_graph.adj_matrix
import linear_algebra.char_poly.coeff
import data.int.modeq
import data.zmod.basic
import tacti... |
076fa17a4e5da5f57dc41e07baa4f7d9c5fa8a16 | 618003631150032a5676f229d13a079ac875ff77 | /test/ring.lean | 202561d410acb51b52ae3228dc0cf53e340a8789 | [
"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 | 2,011 | lean | import tactic.ring
import data.real.basic
example (x y : ℕ) : x + y = y + x := by ring
example (x y : ℕ) : x + y + y = 2 * y + x := by ring
example (x y : ℕ) : x + id y = y + id x := by ring!
example {α} [comm_ring α] (x y : α) : x + y + y - x = 2 * y := by ring
example (x y : ℚ) : x / 2 + x / 2 = x := by ring
example... |
ac96ce1ac5abea3af84e7423f1e74521909d7455 | ba306bac106b8f27befb2a800f4357237f86c760 | /lean/love02_backward_proofs_demo.lean | 1b478643eacb27d6ece15b0e11bb8df7173ae829 | [] | no_license | qyqnl/logical_verification_2020 | 406aa4cc47797501275ea07de5d6f59f01e977d0 | 17dff35b56336acb671ddfb36871f98475bc0b96 | refs/heads/master | 1,672,501,336,112 | 1,603,724,260,000 | 1,603,724,260,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 7,959 | lean | import .love01_definitions_and_statements_demo
/- # LoVe Demo 2: Backward Proofs
A __tactic__ operates on a proof goal and either proves it or creates new
subgoals. Tactics are a __backward__ proof mechanism: They start from the goal
and work towards the available hypotheses and lemmas. -/
set_option pp.beta true
... |
f31e990f12993d206312c9bf99e826b0a4e2e8a6 | 367134ba5a65885e863bdc4507601606690974c1 | /src/tactic/omega/nat/dnf.lean | c88491293b02f441c49813c79e4df7429a0e7035 | [
"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,969 | lean | /-
Copyright (c) 2019 Seul Baek. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Author: Seul Baek
-/
/-
DNF transformation.
-/
import tactic.omega.clause
import tactic.omega.nat.form
namespace omega
namespace nat
open_locale omega.nat
@[simp] def dnf_core : preform → list ... |
c18b59cfbc8d1044cddb94a1c35256c6a1904c12 | 4f643cce24b2d005aeeb5004c2316a8d6cc7f3b1 | /src/o_minimal/sheaf/quantifiers.lean | 8f8b06f7534e304e1fab9e2b722c9a277c3746ec | [] | no_license | rwbarton/lean-omin | da209ed061d64db65a8f7f71f198064986f30eb9 | fd733c6d95ef6f4743aae97de5e15df79877c00e | refs/heads/master | 1,674,408,673,325 | 1,607,343,535,000 | 1,607,343,535,000 | 285,150,399 | 9 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 3,119 | lean | import o_minimal.sheaf.yoneda
-- Lemmas for proving definability of propositions with quantifiers
-- `∀ (x : X), P x`, `∃ (x : X), P x`. Here `X` must be representable.
namespace o_minimal
variables {R : Type*} {S : struc R}
variables {X : Type*} [has_coordinates R X] [definable_rep S X]
lemma definable_forall : de... |
63782a6c70f5cc37cd0d8f19375b22fae4c17797 | 1abd1ed12aa68b375cdef28959f39531c6e95b84 | /src/category_theory/sites/grothendieck.lean | d14120f95278421f48c59fe0cd64dc5510d6ac51 | [
"Apache-2.0"
] | permissive | jumpy4/mathlib | d3829e75173012833e9f15ac16e481e17596de0f | af36f1a35f279f0e5b3c2a77647c6bf2cfd51a13 | refs/heads/master | 1,693,508,842,818 | 1,636,203,271,000 | 1,636,203,271,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 12,761 | lean | /-
Copyright (c) 2020 Bhavik Mehta, E. W. Ayers. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Bhavik Mehta, E. W. Ayers
-/
import category_theory.sites.sieves
import category_theory.limits.shapes.pullbacks
import order.copy
/-!
# Grothendieck topologies
Definition... |
103b7eb16df94504fd979f9a37d3ef2e67e9434a | b2fe74b11b57d362c13326bc5651244f111fa6f4 | /src/group_theory/coset.lean | b959a20f244eb2799552abb78712657153c4b76f | [
"Apache-2.0"
] | permissive | midfield/mathlib | c4db5fa898b5ac8f2f80ae0d00c95eb6f745f4c7 | 775edc615ecec631d65b6180dbcc7bc26c3abc26 | refs/heads/master | 1,675,330,551,921 | 1,608,304,514,000 | 1,608,304,514,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 11,564 | lean | /-
Copyright (c) 2018 Mitchell Rowett. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Mitchell Rowett, Scott Morrison
-/
import group_theory.subgroup
open set function
variable {α : Type*}
/-- The left coset `a*s` corresponding to an element `a : α` and a subset `s ... |
1a2db7ea10f25b5a5c3c71167ba9416fe84dd896 | 4fa118f6209450d4e8d058790e2967337811b2b5 | /src/for_mathlib/primes.lean | daea84799bc97c0fc068fafaab54d0ba1c5ef688 | [
"Apache-2.0"
] | permissive | leanprover-community/lean-perfectoid-spaces | 16ab697a220ed3669bf76311daa8c466382207f7 | 95a6520ce578b30a80b4c36e36ab2d559a842690 | refs/heads/master | 1,639,557,829,139 | 1,638,797,866,000 | 1,638,797,866,000 | 135,769,296 | 96 | 10 | Apache-2.0 | 1,638,797,866,000 | 1,527,892,754,000 | Lean | UTF-8 | Lean | false | false | 205 | lean | import data.nat.prime
import ring_theory.ideals
open nat
instance : has_coe primes ℕ := ⟨subtype.val⟩
instance monoid.prime_pow {α : Type*} [monoid α]: has_pow α primes := ⟨λ x p, x^p.val⟩
|
38efcc11eaa211b2276ed5f975f6f100e7d74888 | 6432ea7a083ff6ba21ea17af9ee47b9c371760f7 | /src/Lean/Compiler/LCNF/Simp/Used.lean | 31d017fd464c8c6fce6e6b8d59745fa73517e062 | [
"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 | 3,055 | 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
-/
import Lean.Compiler.LCNF.Simp.SimpM
namespace Lean.Compiler.LCNF
namespace Simp
/--
Mark `fvarId` as an used free variable.
This is information is used t... |
d40fed12d42c29a6a0b5c76eac7ae749a7e795d7 | 8cae430f0a71442d02dbb1cbb14073b31048e4b0 | /test/lint_unused_haves_suffices.lean | c42c49b642e83d81981442a5c76ffc7129e7b50f | [
"Apache-2.0"
] | permissive | leanprover-community/mathlib | 56a2cadd17ac88caf4ece0a775932fa26327ba0e | 442a83d738cb208d3600056c489be16900ba701d | refs/heads/master | 1,693,584,102,358 | 1,693,471,902,000 | 1,693,471,902,000 | 97,922,418 | 1,595 | 352 | Apache-2.0 | 1,694,693,445,000 | 1,500,624,130,000 | Lean | UTF-8 | Lean | false | false | 3,785 | lean | import tactic.lint
import data.list.basic
import algebra.group_power.basic
open tactic
lemma test_a : true :=
have 1 = 1 := rfl,
trivial
run_cmd do
d ← get_decl ``test_a,
some t ← linter.unused_haves_suffices.test d,
guard $ "unnecessary have".is_prefix_of t
lemma test_b : true :=
have h : 1 = 1 := rfl,
trivia... |
a368cfef2382e14965ed1eea3c68c7be10e369fd | 5412d79aa1dc0b521605c38bef9f0d4557b5a29d | /stage0/src/Lean/Meta/KAbstract.lean | 658f6c6ffea3c6cee27905ca27acc5010815ae05 | [
"Apache-2.0"
] | permissive | smunix/lean4 | a450ec0927dc1c74816a1bf2818bf8600c9fc9bf | 3407202436c141e3243eafbecb4b8720599b970a | refs/heads/master | 1,676,334,875,188 | 1,610,128,510,000 | 1,610,128,521,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 1,783 | lean | /-
Copyright (c) 2020 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Author: Leonardo de Moura
-/
import Lean.Data.Occurrences
import Lean.HeadIndex
import Lean.Meta.ExprDefEq
namespace Lean.Meta
def kabstract {m} [MonadLiftT MetaM m] (e : Expr) (p : Ex... |
4fe5c89defbc91e760c3a5dfdae3a61871768ded | 9be442d9ec2fcf442516ed6e9e1660aa9071b7bd | /stage0/src/Lean/Elab/PreDefinition/Structural/FindRecArg.lean | 9552ef21121c53384d338fd09e665c2516f7a7d8 | [
"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 | 6,597 | 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.PreDefinition.Structural.Basic
namespace Lean.Elab.Structural
open Meta
private def getIndexMinPos (xs : Array Expr) (indices : Array Exp... |
d522b4ef877dc8fb6ec93ca52c6e99f2007bb45a | a047a4718edfa935d17231e9e6ecec8c7b701e05 | /test/group.lean | 08dc69580288365cc6d50f2da305e38f80b2cb77 | [
"Apache-2.0"
] | permissive | utensil-contrib/mathlib | bae0c9fafe5e2bdb516efc89d6f8c1502ecc9767 | b91909e77e219098a2f8cc031f89d595fe274bd2 | refs/heads/master | 1,668,048,976,965 | 1,592,442,701,000 | 1,592,442,701,000 | 273,197,855 | 0 | 0 | null | 1,592,472,812,000 | 1,592,472,811,000 | null | UTF-8 | Lean | false | false | 1,730 | lean | import tactic.group
variables {G : Type} [group G]
example (a b c d : G) : c *(a*b)*(b⁻¹*a⁻¹)*c = c*c :=
by group
example (a b c d : G) : (b*c⁻¹)*c *(a*b)*(b⁻¹*a⁻¹)*c = b*c :=
by group
example (a b c d : G) : c⁻¹*(b*c⁻¹)*c *(a*b)*(b⁻¹*a⁻¹*b⁻¹)*c = 1 :=
by group
def commutator {G} [group G] : G → G → G := λ g h, g... |
fc89dc88d0f00237b7c8690e74e6a2af7abddebc | 77c5b91fae1b966ddd1db969ba37b6f0e4901e88 | /src/data/finset/noncomm_prod.lean | 6c811949911efca4b3df46c96889198c41fbc390 | [
"Apache-2.0"
] | permissive | dexmagic/mathlib | ff48eefc56e2412429b31d4fddd41a976eb287ce | 7a5d15a955a92a90e1d398b2281916b9c41270b2 | refs/heads/master | 1,693,481,322,046 | 1,633,360,193,000 | 1,633,360,193,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 9,502 | lean | /-
Copyright (c) 2021 Yakov Pechersky. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Yakov Pechersky
-/
import algebra.big_operators.basic
/-!
# Products (respectively, sums) over a finset or a multiset.
The regular `finset.prod` and `multiset.prod` require `[comm_... |
0f80a50252b72b219518733e954180285a909a34 | 05f637fa14ac28031cb1ea92086a0f4eb23ff2b1 | /tests/lean/exists6.lean | 0204a8c2bbef98643dcc37c0b84117165af46c62 | [
"Apache-2.0"
] | permissive | codyroux/lean0.1 | 1ce92751d664aacff0529e139083304a7bbc8a71 | 0dc6fb974aa85ed6f305a2f4b10a53a44ee5f0ef | refs/heads/master | 1,610,830,535,062 | 1,402,150,480,000 | 1,402,150,480,000 | 19,588,851 | 2 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 329 | lean | import Int.
variable P : Int -> Int -> Int -> Bool
axiom Ax1 : exists x y z, P x y z
axiom Ax2 : forall x y z, not (P x y z)
theorem T : false :=
exists_elim Ax1 (fun a H1, exists_elim H1 (fun b H2, exists_elim H2 (fun (c : Int) (H3 : P a b c),
let notH3 : not (P a b c) := Ax2 a b c
in absurd H3 ... |
d11346bf90527a0f8e9232d39b47085d83f2de7c | 35677d2df3f081738fa6b08138e03ee36bc33cad | /src/category_theory/limits/shapes/constructions/pullbacks.lean | 919755f4618d09e592984638076201de2cf38096 | [
"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 | 4,065 | lean | /-
Copyright (c) 2020 Markus Himmel. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Markus Himmel
-/
import category_theory.limits.shapes.binary_products
import category_theory.limits.shapes.equalizers
import category_theory.limits.shapes.pullbacks
universes v u
/-!... |
323c05e9d302d26cfe90ba2d9fa10b8e465d83d8 | 6432ea7a083ff6ba21ea17af9ee47b9c371760f7 | /src/Lean/Widget.lean | 9a51cfa25b97f3bb2d6812860ff11f934f6cf517 | [
"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 | 336 | lean | /-
Copyright (c) 2021 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Wojciech Nawrocki
-/
import Lean.Widget.InteractiveCode
import Lean.Widget.InteractiveDiagnostic
import Lean.Widget.InteractiveGoal
import Lean.Widget.TaggedText
import Lean.Wi... |
2c18140bef304813770c75b8d648dc4cdd2256b3 | 969dbdfed67fda40a6f5a2b4f8c4a3c7dc01e0fb | /src/data/set/basic.lean | d6aa380e6e59bb6b777b29c7793cca7372d3d7c1 | [
"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 | 102,600 | 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 logic.unique
import order.boolean_algebra
/-!
# Basic properties of sets
Sets in Lean are homogeneous; all their elements have the same type... |
9c6eaaf1734322b5836829d0584747e38af5676e | 4d2583807a5ac6caaffd3d7a5f646d61ca85d532 | /src/analysis/normed/group/basic.lean | b1ebe5302ffea7db8331532a1dd6282db581cdf9 | [
"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 | 43,272 | 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 order.liminf_limsup
import topology.algebra.uniform_group
import topology.metric_space.algebra
import topology.metric_space.isometry
import top... |
dc6fcb6fe28f344589d1bf4929d0fe6ebd62a722 | 75db7e3219bba2fbf41bf5b905f34fcb3c6ca3f2 | /library/logic/examples/leftinv_of_inj.lean | ac4735670b6773f206d1b3b4ff94ddc4ffcd5a37 | [
"Apache-2.0"
] | permissive | jroesch/lean | 30ef0860fa905d35b9ad6f76de1a4f65c9af6871 | 3de4ec1a6ce9a960feb2a48eeea8b53246fa34f2 | refs/heads/master | 1,586,090,835,348 | 1,455,142,203,000 | 1,455,142,277,000 | 51,536,958 | 1 | 0 | null | 1,455,215,811,000 | 1,455,215,811,000 | null | UTF-8 | Lean | false | false | 1,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
Classical proof that if f is injective, then f has a left inverse (if domain is not empty).
The proof uses the classical axioms: choice and excluded middle.
... |
9b737a6cae5792f6ffe92e6ed55694dfb4915d13 | 80746c6dba6a866de5431094bf9f8f841b043d77 | /src/topology/compact_open.lean | ee838eaa6817aee5c4a34a52f7d89f5d32fb5220 | [
"Apache-2.0"
] | permissive | leanprover-fork/mathlib-backup | 8b5c95c535b148fca858f7e8db75a76252e32987 | 0eb9db6a1a8a605f0cf9e33873d0450f9f0ae9b0 | refs/heads/master | 1,585,156,056,139 | 1,548,864,430,000 | 1,548,864,438,000 | 143,964,213 | 0 | 0 | Apache-2.0 | 1,550,795,966,000 | 1,533,705,322,000 | Lean | UTF-8 | Lean | false | false | 4,074 | lean | /-
Copyright (c) 2018 Reid Barton. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Reid Barton
Type of continuous maps and the compact-open topology on them.
-/
import topology.continuity tactic.tidy
open set
universes u v w
def continuous_map (α : Type u) (β : Typ... |
f5efb0e910fc7e2e8c492e5daf4ea944e2adad0a | 40ad357bbd0d327dd1e3e7f7beb868bd4e5b0a9d | /src/temporal_logic/refinement/many_to_many.lean | 5ab7311ebf65b143a0b9cc65eb2fbe84ee3ce83e | [] | no_license | unitb/temporal-logic | 9966424f015976d5997a9ffa30cbd77cc3a9cb1c | accec04d1b09ca841be065511c9e206b725b16e9 | refs/heads/master | 1,633,868,382,769 | 1,541,072,223,000 | 1,541,072,223,000 | 114,790,987 | 5 | 3 | null | null | null | null | UTF-8 | Lean | false | false | 17,716 | lean | import ..scheduling
import ..fairness
import ..spec
import util.predicate
universe variables u u₀ u₁ u₂ u₃
open predicate nat
local infix ` ≃ `:75 := v_eq
namespace temporal
namespace many_to_many
section
open fairness
parameters {α : Type u} {β : Type u₀} {γ : Type u₁ }
parameters {m₀ : mch (γ×α)} {m₁ : mch (γ×β)... |
ae2c206264d9c05a8ae66f952bd5a13ba1ccf90d | 957a80ea22c5abb4f4670b250d55534d9db99108 | /tests/lean/run/not_bug1.lean | 7b0721cd2f480ef4be7aab898d54451d23cfe3d8 | [
"Apache-2.0"
] | permissive | GaloisInc/lean | aa1e64d604051e602fcf4610061314b9a37ab8cd | f1ec117a24459b59c6ff9e56a1d09d9e9e60a6c0 | refs/heads/master | 1,592,202,909,807 | 1,504,624,387,000 | 1,504,624,387,000 | 75,319,626 | 2 | 1 | Apache-2.0 | 1,539,290,164,000 | 1,480,616,104,000 | C++ | UTF-8 | Lean | false | false | 365 | lean | open bool
constant List : Type.{1}
constant nil : List
constant cons : bool → List → List
infixr `::` := cons
notation `[` l:(foldr `,` (h t, cons h t) nil `]`) := l
#check []
#check [tt]
#check [tt, ff]
#check [tt, ff, ff]
#check tt :: ff :: [tt, ff, ff]
#check tt :: []
constants a b c : bool
#check a :: b :: nil
... |
323fb4bfa38cc4ce203f10b571e88fb7f87229ee | 670b1582ba4780d3b4a49063d5afea44a337bc24 | /src/tptp/simplification_tptp.lean | 957b84ae511da05ef7372f4b1d7ca0770178d616 | [] | no_license | robertylewis/Lean_hammer | 9bd8a75cb6fc76b3387c84f0678ccfd69fa10c88 | 7c8b6235c064fac164cbd389c8d459bd106e09b1 | refs/heads/master | 1,587,608,490,192 | 1,550,228,670,000 | 1,550,228,670,000 | 170,843,813 | 0 | 0 | null | 1,550,225,214,000 | 1,550,225,213,000 | null | UTF-8 | Lean | false | false | 3,203 | lean | import .tptp
import .translation_tptp
--####################
--## Simplification ##
--####################
meta def replace_term_in_list : list axioma → folterm → folterm → list axioma
| (x :: xs) old_term new_term := [⟨x.n, folform.replace_term x.f old_term new_term⟩] ++ (replace_term_in_list xs old_term new_term)
|... |
9521e6d926b3519db0c007cb60f479765156fa44 | a9d0fb7b0e4f802bd3857b803e6c5c23d87fef91 | /tests/lean/run/simplifier_topdown.lean | 60d7d78aa9f853ac7668d9e02315a9c501fe89b9 | [
"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,736 | lean | open tactic
universe l
constants (A : Type.{l}) (f g : A → A) (op : A → A → A) (x y z w b c : A)
infixr `%%` := op
namespace basic
constants (Hf : f x = y)
constants (Hff : f (f x) = z)
attribute Hff Hf [simp]
set_option simplify.topdown true
example : f (f x) = z := by simp
set_option simplify.topdown false
examp... |
69cde175ab278814f19c85995ac8a304f7ecd111 | 947fa6c38e48771ae886239b4edce6db6e18d0fb | /src/data/real/nnreal.lean | c08c191aad4a25ff86797c6a50eae04cc9a03030 | [
"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 | 35,777 | lean | /-
Copyright (c) 2018 Johan Commelin. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Johan Commelin
-/
import algebra.big_operators.ring
import data.real.pointwise
import algebra.indicator_function
import algebra.algebra.basic
import algebra.order.module
import algebra... |
59db17fb87c59112f8c6429c841b9d4e8d1a95fe | 11e28114d9553ecd984ac4819661ffce3068bafe | /src/rule_app.lean | 3fa515b728a19d0d219747c8f03b8b7a3bc8286c | [
"MIT"
] | permissive | EdAyers/lean-subtask | 9a26eb81f0c8576effed4ca94342ae1281445c59 | 04ac5a6c3bc3bfd190af4d6dcce444ddc8914e4b | refs/heads/master | 1,586,516,665,621 | 1,558,701,948,000 | 1,558,701,948,000 | 160,983,035 | 4 | 1 | null | null | null | null | UTF-8 | Lean | false | false | 5,779 | lean | /- Author: E.W.Ayers © 2019 -/
import .util .table .expr_zipper .rule
namespace robot
open tactic robot expr
-- @[derive decidable_eq]
-- meta structure rule2 :=
-- (id : name)
-- (ctxt : telescope)
-- (lhs : expr)
-- (rhs : expr)
-- (type : expr)
-- (pf : expr)
@[derive decidable_eq]
meta structure rule_app :=
(r : ... |
4321fd3edafd57be4f79dd8c0f4a2eeb3d460ab3 | ac49064e8a9a038e07cf5574b4fccd8a70d115c8 | /hott/algebra/ring.hlean | a9242a5d6aa44de6ef8d920211deb6387948c950 | [
"Apache-2.0"
] | permissive | Bolt64/lean2 | 7c75016729569e04a3f403c7a4fc7c1de4377c9d | 75fd8162488214a959dbe3303a185cbbb83f60f9 | refs/heads/master | 1,611,290,445,156 | 1,493,763,922,000 | 1,493,763,922,000 | 81,566,307 | 0 | 0 | null | 1,486,732,167,000 | 1,486,732,167,000 | null | UTF-8 | Lean | false | false | 20,117 | hlean | /-
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
Structures with multiplicative and additive components, including semirings, rings, and fields.
The development is modeled after Isabelle's library.
-/... |
e6f2060e8b68a959d5c3ab8939be6508ddd0ac69 | d406927ab5617694ec9ea7001f101b7c9e3d9702 | /src/data/quot.lean | b2132e6cbeb0cad3a30908ab03894e01265384ea | [
"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 | 28,325 | lean | /-
Copyright (c) 2017 Johannes Hölzl. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Johannes Hölzl
-/
import logic.relator
/-!
# Quotient types
> THIS FILE IS SYNCHRONIZED WITH MATHLIB4.
> https://github.com/leanprover-community/mathlib4/pull/559
> Any changes to th... |
f1255ec1bcf2e0ae30ffa3aa37b62d7d1b4dd215 | b7f22e51856f4989b970961f794f1c435f9b8f78 | /tests/lean/630.lean | 596d2c7c85cc554a0b8fb9caebd6aef037e985a3 | [
"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 | 59 | lean | import data.pnat
open pnat subtype
print pnat
print prod
|
ff28b34fe37d9859bea6ca07fcbbd4605f80d380 | 55c7fc2bf55d496ace18cd6f3376e12bb14c8cc5 | /src/set_theory/ordinal_arithmetic.lean | b8b0bfc05ca476106bd43bc7afed140682509096 | [
"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 | 70,487 | lean | /-
Copyright (c) 2017 Johannes Hölzl. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Author: Mario Carneiro
-/
import set_theory.ordinal
/-!
# Ordinal arithmetic
Ordinals have an addition (corresponding to disjoint union) that turns them into an additive
monoid, and a multipl... |
cb9fc50bc350f6cfd9af37734510644ae07c6035 | 6432ea7a083ff6ba21ea17af9ee47b9c371760f7 | /tests/lean/safeShadowing.lean | f42792b5b2cbb926985197633f19aea79fc39127 | [
"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 | 307 | lean | def f (x x : Nat) :=
match x with
| 0 => x + 1
| Nat.succ _ => x + 2
variable {α : Type}
#check fun (a : α) => a
#check fun {α} (a : α) => a
#check fun (x x : Nat) => x
#print f
set_option pp.safeShadowing false
#check fun {α} (a : α) => a
#check fun (x x : Nat) => x
#print f
|
67b96b05d1cd5897774e50d2b6ca5d88bdbf4f93 | 42c01158c2730cc6ac3e058c1339c18cb90366e2 | /M1S/scratch8.lean | 17e69b791a7b02912a73934ab24a90c830ff91d8 | [] | no_license | ChrisHughes24/xena | c80d94355d0c2ae8deddda9d01e6d31bc21c30ae | 337a0d7c9f0e255e08d6d0a383e303c080c6ec0c | refs/heads/master | 1,631,059,898,392 | 1,511,200,551,000 | 1,511,200,551,000 | 111,468,589 | 1 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 263 | lean | #exit
-- Kevin Buzzard added the #exit because this axiom wasn't compiling so when I build xena this file gives me errors.
import analysis.real
#check @set.ext
axiom set.ext {α: Type} {A B:set α} : (∀(x:α), x ∈ A ↔ x ∈ B) → A = B
#check ℝ = real
|
a938c53e9dbf7272dd3d40d1f88bfc7fcb4ba9fc | e9dbaaae490bc072444e3021634bf73664003760 | /src/Problems/2017/IMO_2017_P4.lean | 3b4dfabdc84760a2084b1acba627de68298dce9d | [
"Apache-2.0"
] | permissive | liaofei1128/geometry | 566d8bfe095ce0c0113d36df90635306c60e975b | 3dd128e4eec8008764bb94e18b932f9ffd66e6b3 | refs/heads/master | 1,678,996,510,399 | 1,581,454,543,000 | 1,583,337,839,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 775 | lean | import Geo.Geo.Core
namespace Geo
open Analytic Circle
/-
Note: A₂ is a placeholder for the second point of intersection b/w Γ and l,
and is not named in the problem
-/
def IMO_2017_P4 : Prop :=
∀ (R S : Point) (Ω : Circle),
on R Ω →
on S Ω →
¬isDiameter R S Ω →
let l := lineTangentAtP Ω R;
∀ (T : Point),
Seg.isMid... |
9b5b6c9da18a2d5b2e0d87c7589bc4201d04aebe | 4727251e0cd73359b15b664c3170e5d754078599 | /src/data/set/countable.lean | 593b5da0df82fccc2894ceba75c62831fdc449fc | [
"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 | 10,537 | lean | /-
Copyright (c) 2017 Johannes Hölzl. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Johannes Hölzl
-/
import data.set.finite
import logic.equiv.list
/-!
# Countable sets
-/
noncomputable theory
open function set encodable
open classical (hiding some)
open_locale cl... |
cbe45519739481a1ddaf9193bf49bea4a8e22e4d | 432d948a4d3d242fdfb44b81c9e1b1baacd58617 | /src/order/fixed_points.lean | 4faa380e45b631e443ed6a443e3abbce83f8bee7 | [
"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 | 8,762 | 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, Kenny Lau
-/
import order.complete_lattice
import dynamics.fixed_points.basic
/-!
# Fixed point construction on complete lattices
-/
universes u v w
variables {α : Ty... |
2f27eaed4a20f00c92f8ab667c06603712387671 | 86f6f4f8d827a196a32bfc646234b73328aeb306 | /examples/logic/unnamed_961.lean | e22cb9d1bceb47cd869eb310a733819df85b36c0 | [] | no_license | jamescheuk91/mathematics_in_lean | 09f1f87d2b0dce53464ff0cbe592c568ff59cf5e | 4452499264e2975bca2f42565c0925506ba5dda3 | refs/heads/master | 1,679,716,410,967 | 1,613,957,947,000 | 1,613,957,947,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 150 | lean | import data.real.basic
open function
-- BEGIN
example {c : ℝ} : surjective (λ x, x + c) :=
begin
intro x,
use x - c,
dsimp, ring
end
-- END |
42229834bf1c7a4fba7332d7b9e60c9d1359fc63 | 82b86ba2ae0d5aed0f01f49c46db5afec0eb2bd7 | /src/Lean/Elab/Tactic/Location.lean | edd16a775e493c32b6394f0b82b7675d6585e92f | [
"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 | 980 | 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
-/
namespace Lean.Elab.Tactic
inductive Location
| wildcard
| target
| localDecls (userNames : Array Name)
/-
Recall that
```
def locationWildcard := p... |
1273ff66559dd166020b18ede4e80cc201d913b0 | 8cae430f0a71442d02dbb1cbb14073b31048e4b0 | /src/algebraic_geometry/structure_sheaf.lean | 1f2848001ed88830651a234f81c92bd4e8ad6fad | [
"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 | 49,267 | lean | /-
Copyright (c) 2020 Scott Morrison. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Johan Commelin, Scott Morrison
-/
import algebraic_geometry.prime_spectrum.basic
import algebra.category.Ring.colimits
import algebra.category.Ring.limits
import topology.sheaves.local... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.