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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
35f7e85ccb4827aa3329edb032cf99bf980aec3c | dd0f5513e11c52db157d2fcc8456d9401a6cd9da | /12_Axioms.org.24.lean | c21f8c4da166ebedf8fd602ad06359c918bda0c5 | [] | 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 | 674 | lean | import standard
import logic.eq
open classical eq.ops
section
parameter p : Prop
definition U (x : Prop) : Prop := x = true ∨ p
definition V (x : Prop) : Prop := x = false ∨ p
noncomputable definition u := epsilon U
noncomputable definition v := epsilon V
lemma u_def : U u :=
epsilon_spec (exists.intro true (or.in... |
5e0831f66dc51795dca5851791719c82290e103d | 6dc0c8ce7a76229dd81e73ed4474f15f88a9e294 | /tests/lean/docStr.lean | 5d7d5b1e878da8d2ba440d28b35c8a82ba55a6cd | [
"Apache-2.0"
] | permissive | williamdemeo/lean4 | 72161c58fe65c3ad955d6a3050bb7d37c04c0d54 | 6d00fcf1d6d873e195f9220c668ef9c58e9c4a35 | refs/heads/master | 1,678,305,356,877 | 1,614,708,995,000 | 1,614,708,995,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 2,676 | lean | import Lean
/-- Foo structure is just a test -/
structure Foo where
/-- main name -/ name : String := "hello"
/-- documentation for the second field -/ val : Nat := 0
/-- documenting test axiom -/
axiom myAxiom : Nat
structure Boo (α : Type) where
/-- Boo constructor has a custom name -/
makeBoo ::
/-- B... |
a4c5ac6e67479567a4fc08e0216018aad6916006 | cf39355caa609c0f33405126beee2739aa3cb77e | /tests/lean/run/t3.lean | 4c151017ab68cb60142e7221e6f6dc1bd6d6fbe4 | [
"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 | 361 | lean | prelude
constant int : Type.{1}
constant nat : Type.{1}
namespace int
constant plus : int → int → int
end int
namespace nat
constant plus : nat → nat → nat
end nat
open int nat
constants a b : int
#check plus a b
constant f : int → int → int
constant g : nat → nat → int
notation A `+`:65 B:65 := f A (g B B)
const... |
a6211b39337b66b7f3118a2ad92ff308a104207b | 59a4b050600ed7b3d5826a8478db0a9bdc190252 | /src/category_theory/universal/complete/default.lean | 15a466c2b52fc4f250a9ab65ad5ccd5e265fd60a | [] | no_license | rwbarton/lean-category-theory | f720268d800b62a25d69842ca7b5d27822f00652 | 00df814d463406b7a13a56f5dcda67758ba1b419 | refs/heads/master | 1,585,366,296,767 | 1,536,151,349,000 | 1,536,151,349,000 | 147,652,096 | 0 | 0 | null | 1,536,226,960,000 | 1,536,226,960,000 | null | UTF-8 | Lean | false | false | 1,008 | lean | -- Copyright (c) 2017 Scott Morrison. All rights reserved.
-- Released under Apache 2.0 license as described in the file LICENSE.
-- Authors: Scott Morrison
import category_theory.universal.cones
open category_theory
namespace category_theory.limits
universes u v
variables {C : Type u} [category.{u v} C] {J : Typ... |
7dd5304a506fdc3ff176241ac79038a8e3078019 | b2fe74b11b57d362c13326bc5651244f111fa6f4 | /src/data/complex/exponential.lean | 3e746a01392e5a60c0bf56f7feac41a9f6e826df | [
"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 | 60,450 | lean | /-
Copyright (c) 2018 Chris Hughes. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Chris Hughes, Abhimanyu Pallavi Sudhir
-/
import algebra.geom_sum
import data.nat.choose.sum
import data.complex.basic
/-!
# Exponential, trigonometric and hyperbolic trigonometric funct... |
34db237bb5e2fd7819ffe2764100e668646592d8 | 1abd1ed12aa68b375cdef28959f39531c6e95b84 | /src/measure_theory/integral/interval_integral.lean | 12f491acf92b70564119f8fa0ef08154f4f6ae96 | [
"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 | 124,734 | lean | /-
Copyright (c) 2020 Yury G. Kudryashov. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Yury G. Kudryashov, Patrick Massot, Sébastien Gouëzel
-/
import analysis.calculus.extend_deriv
import analysis.calculus.fderiv_measurable
import analysis.normed_space.dual
import m... |
7962698624114b3c77b2787abc9f66605b8f115e | 74addaa0e41490cbaf2abd313a764c96df57b05d | /Mathlib/category_theory/closed/functor.lean | 82b1442a9e7da6a9439bc72d23d1503b1b7a0f46 | [] | 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,500 | 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 Mathlib.PrePort
import Mathlib.Lean3Lib.init.default
import Mathlib.category_theory.closed.cartesian
import Mathlib.category_theory.limits.preserves.shapes.binary_... |
c18650bf506715852e044a707a700fb0429abfd2 | c8af905dcd8475f414868d303b2eb0e9d3eb32f9 | /src/data/cpi/species/default.lean | d23d37a94ca1060ed4484e556cafcc8f5bae783f | [
"BSD-3-Clause"
] | permissive | continuouspi/lean-cpi | 81480a13842d67ff5f3698643210d8ed5dd08de4 | 443bf2cb236feadc45a01387099c236ab2b78237 | refs/heads/master | 1,650,307,316,582 | 1,587,033,364,000 | 1,587,033,364,000 | 207,499,661 | 1 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 111 | lean | import data.cpi.species.basic
import data.cpi.species.congruence_prime
import data.cpi.species.normalise_prime
|
3eabd529dd9b6ed4319f1bc349643bade50ad480 | 9dd3f3912f7321eb58ee9aa8f21778ad6221f87c | /tests/lean/user_attribute.lean | bf10dcbab9123f02bcc41e173071343bb4511d48 | [
"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 | 866 | lean | definition foo_attr : user_attribute := { name := `foo, descr := "bar" }
run_command attribute.register `foo_attr
attribute [foo] eq.refl
print [foo]
print eq.refl
run_command attribute.get_instances `foo >>= tactic.pp >>= tactic.trace
print "---"
-- compound names
definition foo_baz_attr : user_attribute := ⟨`foo.b... |
b69186f17925107789d0605f04567a4ede992337 | 4727251e0cd73359b15b664c3170e5d754078599 | /src/data/seq/computation.lean | 06bd8c3c010087dc796b1b97766a8d5bb601b48a | [
"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 | 37,961 | lean | /-
Copyright (c) 2017 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Mario Carneiro
Coinductive formalization of unbounded computations.
-/
import tactic.basic
import data.stream.init
import logic.relator
open function
universes u v w
/-
coind... |
86952f6b9c0a784adea4181959a8663c0c0fa50a | 6de8ea38e7f58ace8fbf74ba3ad0bf3b3d1d7ab5 | /homework2/Problem1/solutions.lean | 2de21a5efd8e4dc733bb80db1846d0ee1c537de5 | [] | no_license | KinanBab/CS591K1-Labs | 72f4e2c7d230d4e4f548a343a47bf815272b1f58 | d4569bf99d20c22cd56721024688cda247d1447f | refs/heads/master | 1,587,016,758,873 | 1,558,148,366,000 | 1,558,148,366,000 | 165,329,114 | 5 | 2 | null | 1,550,689,848,000 | 1,547,252,664,000 | TeX | UTF-8 | Lean | false | false | 1,745 | lean | -- Problem 1: filtering elements of a list (30 points)
-- Part A: Implement a filter (5 points)
-- only keeps elements that satisfy the condition F
@[simp] def filter{T} : (T -> bool) -> list T -> list T
-- Implementation goes here
| F l := l
-- Part B: filter and boolean and (5 points)
theorem filter_and (T: Type) ... |
43484578d8bd59dd2514b353031230950df07739 | 947fa6c38e48771ae886239b4edce6db6e18d0fb | /src/algebra/order/monoid_lemmas.lean | 629325700a6f4697104e1a6374fc6a904bedb0e8 | [
"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 | 43,983 | 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
import order.monotone
/-!
# Ordered monoids
... |
b2de1981bad961875063d2c8cc4f628635a394b0 | 8cae430f0a71442d02dbb1cbb14073b31048e4b0 | /src/tactic/apply.lean | 56f20c3d5a5f0daef3692647a53d3fda4de3f679 | [
"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 | 7,907 | lean | /-
Copyright (c) 2019 Simon Hudon. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Simon Hudon
-/
import tactic.core
/-!
This file provides an alternative implementation for `apply` to fix the so-called "apply bug".
The issue arises when the goals is a Π-type -- wheth... |
381267bb6ad895692cb05c10567bc6e7ad1db0a2 | a9d0fb7b0e4f802bd3857b803e6c5c23d87fef91 | /tests/lean/ctxopt.lean | 04e4c6d7b657c3dfe753fd2662b8cbc249757d09 | [
"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 | 78 | lean | --
section
set_option pp.implicit true
check id true
end
check id true
|
04fc5c31adcffbdd59ed43eccc19503e31eebcec | 1437b3495ef9020d5413178aa33c0a625f15f15f | /algebra/pi_instances.lean | d3dcd600b31e3907b19fec4d91b619edc7f61e53 | [
"Apache-2.0"
] | permissive | jean002/mathlib | c66bbb2d9fdc9c03ae07f869acac7ddbfce67a30 | dc6c38a765799c99c4d9c8d5207d9e6c9e0e2cfd | refs/heads/master | 1,587,027,806,375 | 1,547,306,358,000 | 1,547,306,358,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 16,728 | lean | /-
Copyright (c) 2018 Simon Hudon. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Simon Hudon, Patrick Massot
Pi instances for algebraic structures.
-/
import order.basic
import algebra.module algebra.group
import data.finset
import tactic.pi_instances
namespace pi
u... |
23592fd8c14297588013d42064b31fd3d219b276 | cf39355caa609c0f33405126beee2739aa3cb77e | /tests/lean/run/774.lean | 92518303c2a1a2df1577f2577a29d6d5deb2bee2 | [
"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 | 162 | lean | open nat
example : ℕ → ℕ → Prop
| 0 0 := true
| (succ n) 0 := false
| 0 (succ m) := false
| (succ n) (succ m) := _example n m
|
8be6ddf168f4957759b0115fb41ebbf039687dd1 | 206422fb9edabf63def0ed2aa3f489150fb09ccb | /src/algebra/lie/skew_adjoint.lean | c70743c3e33975739f191ec03b63cbedaca7e46d | [
"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 | 6,509 | lean | /-
Copyright (c) 2020 Oliver Nash. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Oliver Nash
-/
import algebra.lie.basic
import linear_algebra.bilinear_form
/-!
# Lie algebras of skew-adjoint endomorphisms of a bilinear form
## Tags
lie algebra, skew-adjoint, bilin... |
85959eea19716dada4a391cbd75be058375e7a0d | bb31430994044506fa42fd667e2d556327e18dfe | /src/ring_theory/principal_ideal_domain.lean | ccf8a7be9eacbf67f08dbaa6d677717e01e6e223 | [
"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 | 16,497 | lean | /-
Copyright (c) 2018 Chris Hughes. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Chris Hughes, Morenikeji Neri
-/
import algebra.euclidean_domain.instances
import ring_theory.unique_factorization_domain
/-!
# Principal ideal rings and principal ideal domains
A prin... |
d972fada8bdce27c7369770db013881931b91b92 | 8cae430f0a71442d02dbb1cbb14073b31048e4b0 | /src/category_theory/sites/plus.lean | b9673ffeb6709a91af3e1a975358b2ede1be1b61 | [
"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 | 11,674 | 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 category_theory.sites.sheaf
/-!
# The plus construction for presheaves.
> THIS FILE IS SYNCHRONIZED WITH MATHLIB4.
> Any changes to this file require a correspondin... |
3e13ae77b2fa1a92e396ca60ac40330725b3a38a | 19cc34575500ee2e3d4586c15544632aa07a8e66 | /src/linear_algebra/finsupp.lean | ecce2b4a5bd340e57003933298e24f9a8b5172d2 | [
"Apache-2.0"
] | permissive | LibertasSpZ/mathlib | b9fcd46625eb940611adb5e719a4b554138dade6 | 33f7870a49d7cc06d2f3036e22543e6ec5046e68 | refs/heads/master | 1,672,066,539,347 | 1,602,429,158,000 | 1,602,429,158,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 20,867 | 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 algebra.monoid_algebra
noncomputable theory
open set linear_map submodule
open_locale classical ... |
9ce6b525777ae193eac5e2bf40350ef7700dc51b | e1da55f4222dac91b940ca052928eaace09762da | /src/prereqs.lean | 91d95d70fabdb8caf170f8a996532399bb5ef7a9 | [] | no_license | b-mehta/regularity-lemma | c5826e22c280d0b073a4e62dba731f4dd3d1b69f | cf26082b0c88fa54276e6fdc3338c15e607c52c6 | refs/heads/master | 1,658,209,524,267 | 1,644,406,456,000 | 1,644,406,456,000 | 457,327,371 | 1 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 5,772 | lean | /-
Copyright (c) 2021 Yaël Dillies, Bhavik Mehta. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Yaël Dillies, Bhavik Mehta
-/
import .mathlib
/-!
# Prerequisites for SRL
-/
open_locale big_operators
open finset fintype function relation
variables {α : Type*}
secti... |
fd4edd3b2930ef666d843c83329f049016c64d25 | 74addaa0e41490cbaf2abd313a764c96df57b05d | /Mathlib/set_theory/game.lean | e11f6ccd920e0c3be1884afef5f0bb480de518cb | [] | 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,321 | lean | /-
Copyright (c) 2019 Mario Carneiro. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Reid Barton, Mario Carneiro, Isabel Longbottom, Scott Morrison
-/
import Mathlib.PrePort
import Mathlib.Lean3Lib.init.default
import Mathlib.set_theory.pgame
import Mathlib.PostPort
u... |
74c83e14496be11055e014567f6e0f365510b5e2 | ba4ad8a778c69640c9cca8e5dcaeb40d4a10fa10 | /lean4/Bin/Lean4DataNumBasic.lean | d203b8d7dee36fb14456242e58be8c6eb3622db1 | [] | no_license | tangentstorm/tangentlabs | 390ac60618bd913b567d20933dab70b84aac7151 | 137adbba6e7c35f8bb54b0786ada6c8c2ff6bc72 | refs/heads/master | 1,693,514,213,127 | 1,692,322,210,000 | 1,692,322,210,000 | 7,815,356 | 33 | 22 | null | 1,433,592,935,000 | 1,359,097,381,000 | Visual Basic | UTF-8 | Lean | false | false | 16,482 | lean | import Mathlib.Algebra.Group.Defs
/-
Copyright (c) 2014 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Leonardo de Moura, Mario Carneiro
-/
/-!
# Binary representation of integers using inductive types
Note: Unlike in Coq, where thi... |
ef319dd0d054af64b33d27f9491849091e86d37b | 137c667471a40116a7afd7261f030b30180468c2 | /src/topology/continuous_function/weierstrass.lean | b2b9565ed1826f447cad31188dd40b4662fc40b1 | [
"Apache-2.0"
] | permissive | bragadeesh153/mathlib | 46bf814cfb1eecb34b5d1549b9117dc60f657792 | b577bb2cd1f96eb47031878256856020b76f73cd | refs/heads/master | 1,687,435,188,334 | 1,626,384,207,000 | 1,626,384,207,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 5,418 | 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 algebra.algebra.subalgebra
import analysis.special_functions.bernstein
/-!
# The Weierstrass approximation theorem for continuous functions on `[a,b]`
We've ... |
a1a15a630b0178abdf99f25e3e0fdcec7ff49745 | 74addaa0e41490cbaf2abd313a764c96df57b05d | /Mathlib/data/buffer/parser/numeral.lean | 1397ecd91bc20649a15aad7dc603d736ab509863 | [] | 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 | 3,624 | lean | /-
Copyright (c) 2020 Yakov Pechersky. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Yakov Pechersky
-/
import Mathlib.PrePort
import Mathlib.Lean3Lib.init.default
import Mathlib.data.fintype.card
import Mathlib.PostPort
namespace Mathlib
/-!
# Numeral parsers
This... |
88181eb5fd07523bf281b52f4aa358efc40a49ba | d450724ba99f5b50b57d244eb41fef9f6789db81 | /src/Submissions/hw4.lean | 2ad0e188601609c3ffce3484653e9a87942ca10a | [] | no_license | jakekauff/CS2120F21 | 4f009adeb4ce4a148442b562196d66cc6c04530c | e69529ec6f5d47a554291c4241a3d8ec4fe8f5ad | refs/heads/main | 1,693,841,880,030 | 1,637,604,848,000 | 1,637,604,848,000 | 399,946,698 | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 6,749 | lean | -- 1
example : 0 ≠ 1 :=
begin
-- ¬ (0 = 1)
-- (0 = 1) → false
assume h,
cases h,
end
-- 2
example : 0 ≠ 0 → 2 = 3 :=
begin
assume h,
have f : false := h (eq.refl 0),
exact false.elim (f),
end
-- 3
example : ∀ (P : Prop), P → ¬¬P :=
begin
assume P,
assume (p : P),
-- ¬¬P
-- ¬P → false
-- (P → ... |
fd5a814055062bbe73304512036ea85efc2f92ea | 74addaa0e41490cbaf2abd313a764c96df57b05d | /Mathlib/data/equiv/encodable/lattice_auto.lean | b6119acc8444870fb1b6a2a21dccb35d621a343e | [] | no_license | AurelienSaue/Mathlib4_auto | f538cfd0980f65a6361eadea39e6fc639e9dae14 | 590df64109b08190abe22358fabc3eae000943f2 | refs/heads/master | 1,683,906,849,776 | 1,622,564,669,000 | 1,622,564,669,000 | 371,723,747 | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 1,920 | lean | /-
Copyright (c) 2020 Floris van Doorn. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Author: Floris van Doorn
-/
import Mathlib.PrePort
import Mathlib.Lean3Lib.init.default
import Mathlib.data.equiv.encodable.basic
import Mathlib.data.finset.basic
import Mathlib.data.set.disj... |
14ee538162fb5689ff0ae80df1d84afc32847672 | d1a52c3f208fa42c41df8278c3d280f075eb020c | /tests/lean/run/specialize1.lean | 85de542b503ab12b85c6e7a87dd67f918f1f586d | [
"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 | 666 | lean | example (x y z : Prop) (f : x → y → z) (xp : x) (yp : y) : z := by
specialize f xp yp
assumption
example (B C : Prop) (f : forall (A : Prop), A → C) (x : B) : C := by
specialize f _ x
exact f
example (B C : Prop) (f : forall {A : Prop}, A → C) (x : B) : C := by
specialize f x
exact f
example (B C : Prop)... |
f63452293e38d09d3aaaa6a8369a6806f2af6575 | f1b175e38ffc5cc1c7c5551a72d0dbaf70786f83 | /algebra/ordered_ring.lean | 20e61ae71c042d3254f2ca4d53533d80e1c8d940 | [
"Apache-2.0"
] | permissive | mjendrusch/mathlib | df3ae884dd5ce38c7edf452bcbfd3baf4e3a6214 | 5c209edb7eb616a26f64efe3500f2b1ba95b8d55 | refs/heads/master | 1,585,663,284,800 | 1,539,062,055,000 | 1,539,062,055,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 15,161 | 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 algebra.order algebra.ordered_group algebra.ring
universe u
variable {α : Type u}
-- TODO: this is necessary additionally to mul_nonneg otherwise... |
ad7867c7ec495e39669849c5be138afcda763689 | fa02ed5a3c9c0adee3c26887a16855e7841c668b | /src/tactic/abel.lean | e108a84616ab8b44f835c36a78e3404ebd42bfe6 | [
"Apache-2.0"
] | permissive | jjgarzella/mathlib | 96a345378c4e0bf26cf604aed84f90329e4896a2 | 395d8716c3ad03747059d482090e2bb97db612c8 | refs/heads/master | 1,686,480,124,379 | 1,625,163,323,000 | 1,625,163,323,000 | 281,190,421 | 2 | 0 | Apache-2.0 | 1,595,268,170,000 | 1,595,268,169,000 | null | UTF-8 | Lean | false | false | 13,509 | lean | /-
Copyright (c) 2018 Mario Carneiro. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Mario Carneiro
-/
import tactic.norm_num
/-!
# The `abel` tactic
Evaluate expressions in the language of additive, commutative monoids and groups.
-/
namespace tactic
namespace ab... |
3f51adf80b3dfb4487162e30d3c8178d8f2be8ee | e58fe8dce8abdb027029831196eef44ecb90a19a | /Imperial/def_ex.lean | 5d1eb51c651ef03993dfb4fbb4ec69a0fc5327a7 | [] | no_license | hieule3004/Imperial | 89fc066eded43cf6015e19f6f83677411013b47c | 829d0d96603ff3e68ede818873db4931b8d854da | refs/heads/master | 1,584,834,346,353 | 1,531,250,018,000 | 1,531,250,018,000 | 139,205,362 | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 2,165 | lean | namespace hidden
def divides (m n : ℕ) : Prop := ∃ k, m * k = n
instance : has_dvd nat := ⟨divides⟩
def even (n : ℕ) : Prop := 2 ∣ n
section user_def
def pow : ℕ → ℕ → ℕ-- [¬ (m = 0 ∧ n = 0)]
| 0 0 := sorry
| _ 0 := 1
| m (nat.succ n) := m * pow m n
end user_def
-- BEGIN
def prime (n : ℕ) : Prop :=
n > 1 ∧ (∀ m ... |
c793da9f3cc386e272cbbac9e726bf34572bb15b | 4d2583807a5ac6caaffd3d7a5f646d61ca85d532 | /src/order/lattice.lean | c6cc3ce3ae7de15fa83205c4d38ed65bbaed8451 | [
"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 | 31,111 | 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 order.monotone
import order.rel_classes
import tactic.simps
import tactic.pi_instances
/-!
# (Semi-)lattices
Semilattices are partially ordered sets with joi... |
17440384f5a7605c7f64d97b4dbfbfb88dea3e82 | b7f22e51856f4989b970961f794f1c435f9b8f78 | /library/algebra/group_power.lean | 35fe8ff491d983771b4165cf3eab0ec0e17e1c84 | [
"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,364 | 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 power operation on monoids and groups. We separate this from group, because it depends on
nat, which in turn depends on other parts of algebra.
We have "pow a n" for ... |
4cec198c4c74987508596724218a835bc087019c | d406927ab5617694ec9ea7001f101b7c9e3d9702 | /src/data/sigma/order.lean | 3e026d226f1c2834a4d90991269802b0283228de | [
"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,643 | lean | /-
Copyright (c) 2021 Yaël Dillies. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Yaël Dillies
-/
import data.sigma.lex
import order.bounded_order
/-!
# Orders on a sigma type
This file defines two orders on a sigma type:
* The disjoint sum of orders. `a` is less `b... |
ab910d89d1962c7c2d1f892542948bf806e35719 | bdb33f8b7ea65f7705fc342a178508e2722eb851 | /analysis/topology/infinite_sum.lean | c73e382304e1489e434e79da3ae581e97899ee51 | [
"Apache-2.0"
] | permissive | rwbarton/mathlib | 939ae09bf8d6eb1331fc2f7e067d39567e10e33d | c13c5ea701bb1eec057e0a242d9f480a079105e9 | refs/heads/master | 1,584,015,335,862 | 1,524,142,167,000 | 1,524,142,167,000 | 130,614,171 | 0 | 0 | Apache-2.0 | 1,548,902,667,000 | 1,524,437,371,000 | Lean | UTF-8 | Lean | false | false | 20,438 | lean | /-
Copyright (c) 2017 Johannes Hölzl. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Johannes Hölzl
Infinite sum over a topological monoid
This sum is known as unconditionally convergent, as it sums to the same value under all possible
permutations. For Euclidean spa... |
de40e56e2c32c4a29f7bf7df7937452ce93b5414 | 8cae430f0a71442d02dbb1cbb14073b31048e4b0 | /src/topology/instances/nnreal.lean | ceb03496d65d4244fc5b756967187fbfc511f34f | [
"Apache-2.0"
] | permissive | leanprover-community/mathlib | 56a2cadd17ac88caf4ece0a775932fa26327ba0e | 442a83d738cb208d3600056c489be16900ba701d | refs/heads/master | 1,693,584,102,358 | 1,693,471,902,000 | 1,693,471,902,000 | 97,922,418 | 1,595 | 352 | Apache-2.0 | 1,694,693,445,000 | 1,500,624,130,000 | Lean | UTF-8 | Lean | false | false | 9,941 | 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 topology.algebra.infinite_sum.order
import topology.algebra.infinite_sum.ring
import topology.instances.real
/-!
# Topology on `ℝ≥0`
> THIS FILE IS SYNCHRONI... |
9d8d5b7f3ddab125a84fdf4078e4fa80463e8940 | 57c233acf9386e610d99ed20ef139c5f97504ba3 | /src/ring_theory/principal_ideal_domain.lean | 8dd56130fa7b35fec31b9cf76a5d03c816137880 | [
"Apache-2.0"
] | permissive | robertylewis/mathlib | 3d16e3e6daf5ddde182473e03a1b601d2810952c | 1d13f5b932f5e40a8308e3840f96fc882fae01f0 | refs/heads/master | 1,651,379,945,369 | 1,644,276,960,000 | 1,644,276,960,000 | 98,875,504 | 0 | 0 | Apache-2.0 | 1,644,253,514,000 | 1,501,495,700,000 | Lean | UTF-8 | Lean | false | false | 15,974 | lean | /-
Copyright (c) 2018 Chris Hughes. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Chris Hughes, Morenikeji Neri
-/
import ring_theory.unique_factorization_domain
/-!
# Principal ideal rings and principal ideal domains
A principal ideal ring (PIR) is a ring in which ... |
5a0df26e6dc3fe98afb025283c958a4d427f9961 | 74addaa0e41490cbaf2abd313a764c96df57b05d | /Mathlib/analysis/quaternion.lean | 31a0dabe9292eccfc82acbbb1a5fc1c51eeb108d | [] | 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 | 3,562 | 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 Mathlib.PrePort
import Mathlib.Lean3Lib.init.default
import Mathlib.data.quaternion
import Mathlib.analysis.normed_space.inner_product
import Mathlib.PostPor... |
6d7cbff22dcaa3094e14861ebff9c8534b9d5fa6 | 1d335ec6ac4181a0a762b12797936770cc9fcef9 | /imperative_DSL/environment.lean | d558c3b64b59c83e47150ad604a9fce2f7d1a08a | [] | no_license | rohanrajnair/lang | dbadcc3997e44245ca84d48dc1733cf09a2605a6 | 3beb4e29d8faa692983a55fa18acb6eb947134e8 | refs/heads/master | 1,672,640,379,424 | 1,597,948,771,000 | 1,597,948,771,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 975 | lean | import ..expressions.classical_geometry
import ..expressions.classical_time
import ..expressions.classical_velocity
import ..expressions.boolean
import ..expressions.classical_acceleration
namespace environment
structure env : Type :=
mk :: (g: lang.classicalGeometry.env)
(t: lang.classicalTime.env)
... |
55dc3f4caf1d2bbc6802badb6affb49eeff0ad4a | 5d166a16ae129621cb54ca9dde86c275d7d2b483 | /library/init/meta/mk_dec_eq_instance.lean | 377bba93d5a331b06c1469bee537fc9ce964c979 | [
"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 | 5,336 | 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
Helper tactic for showing that a type has decidable equality.
-/
prelude
import init.meta.contradiction_tactic init.meta.constructor_tactic
import init.meta.i... |
d71a3904232392129aa535d9ddf2c05ed81d05a1 | 206422fb9edabf63def0ed2aa3f489150fb09ccb | /src/geometry/manifold/charted_space.lean | 5bee52ffc3cc556e17ba0cb4050c9c59e960c666 | [
"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 | 43,598 | 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.local_homeomorph
/-!
# Charted spaces
A smooth manifold is a topological space `M` locally modelled on a euclidean space (or a euclidean
half-... |
879d817097d87be5d7059d9604212d098d413540 | a9d0fb7b0e4f802bd3857b803e6c5c23d87fef91 | /tests/lean/run/meta2.lean | 1cd708e9ed61a808983cde966ead586a0df7dd21 | [
"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 | 213 | lean | import system.IO
meta_definition foo : nat → nat
| a := nat.cases_on a 1 (λ n, foo n + 2)
vm_eval (foo 10)
meta_definition loop : nat → IO unit
| a := do put_str ">> ", put_nat a, put_str "\n", loop (a+1)
|
a71001d7e85773753a8a61045b344a340cde45a6 | 5d166a16ae129621cb54ca9dde86c275d7d2b483 | /library/data/set/basic.lean | fcdb5ebc40b4a27694cb10a6708c749f052ece87 | [
"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 | 2,706 | lean | /-
Copyright (c) 2014 Jeremy Avigad. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Author: Jeremy Avigad, Leonardo de Moura
-/
namespace set
universes u
variable {α : Type u}
lemma ext {a b : set α} (h : ∀ x, x ∈ a ↔ x ∈ b) : a = b :=
funext (take x, propext (h x))
lemma sub... |
9663015440542275aa249bc210ce670f169376df | b7f22e51856f4989b970961f794f1c435f9b8f78 | /tests/lean/run/class_coe.lean | c453df10dd7f846bdff8b8776727c5719326d455 | [
"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 | 1,286 | lean | import data.num
namespace play
constants int nat real : Type.{1}
constant nat_add : nat → nat → nat
constant int_add : int → int → int
constant real_add : real → real → real
inductive add_struct [class] (A : Type) :=
mk : (A → A → A) → add_struct A
definition add {A : Type} {S : add_struct A} (a b : A) : A :=
add_... |
00ceac5e6bc3d9254d398c56b0f6541bb2055267 | 95dcf8dea2baf2b4b0a60d438f27c35ae3dd3990 | /src/algebra/group_power.lean | a6f3337dd995856e034a80c6143dc46f002e3222 | [
"Apache-2.0"
] | permissive | uniformity1/mathlib | 829341bad9dfa6d6be9adaacb8086a8a492e85a4 | dd0e9bd8f2e5ec267f68e72336f6973311909105 | refs/heads/master | 1,588,592,015,670 | 1,554,219,842,000 | 1,554,219,842,000 | 179,110,702 | 0 | 0 | Apache-2.0 | 1,554,220,076,000 | 1,554,220,076,000 | null | UTF-8 | Lean | false | false | 27,314 | lean | /-
Copyright (c) 2015 Jeremy Avigad. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Jeremy Avigad, Robert Y. Lewis
The power operation on monoids and groups. We separate this from group, because it depends on
nat, which in turn depends on other parts of algebra.
We h... |
ec433215ce33bb58cf6d3e4a482aa4c2aaf30e80 | 63abd62053d479eae5abf4951554e1064a4c45b4 | /src/topology/algebra/monoid.lean | 33a6e1f2d8f3ab90e7469f3657667ec71977eb79 | [
"Apache-2.0"
] | permissive | Lix0120/mathlib | 0020745240315ed0e517cbf32e738d8f9811dd80 | e14c37827456fc6707f31b4d1d16f1f3a3205e91 | refs/heads/master | 1,673,102,855,024 | 1,604,151,044,000 | 1,604,151,044,000 | 308,930,245 | 0 | 0 | Apache-2.0 | 1,604,164,710,000 | 1,604,163,547,000 | null | UTF-8 | Lean | false | false | 8,338 | 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.continuous_on
import group_theory.submonoid.basic
import algebra.group.prod
import algebra.pointwise
/-!
# Theory of topological mono... |
99d759cbb1ddff40ed5af255f6ff92627de99bd7 | 4727251e0cd73359b15b664c3170e5d754078599 | /src/measure_theory/function/lp_order.lean | 1d1980e01364656ee9b26810656efd19608983be | [
"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 | 1,910 | 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.function.lp_space
import analysis.normed_space.lattice_ordered_group
/-!
# Order related properties of Lp spaces
### Results
- `Lp E p μ` is an `... |
23f10991b529ced9fea5efc8df4da9b370d8ee3f | 6432ea7a083ff6ba21ea17af9ee47b9c371760f7 | /tests/lean/run/310.lean | 507ce3383d1a5d6ef2ec74aa3da39725c79dd85d | [
"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 | 168 | lean | variable (xs : List Nat)
theorem foo1 : xs = xs := by
induction xs <;> rfl
theorem foo2 : xs = xs := by
cases xs with
| nil => rfl
| cons x xs => rfl
|
cc1f7aed6de614ade38308ee02868b75d03dcd52 | d7189ea2ef694124821b033e533f18905b5e87ef | /galois/sequent/ltl.lean | 77510495808fcd638ae3045bf36c6fe13b8f95b6 | [
"Apache-2.0"
] | permissive | digama0/lean-protocol-support | eaa7e6f8b8e0d5bbfff1f7f52bfb79a3b11b0f59 | cabfa3abedbdd6fdca6e2da6fbbf91a13ed48dda | refs/heads/master | 1,625,421,450,627 | 1,506,035,462,000 | 1,506,035,462,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 6,997 | lean | import .core galois.temporal.temporal order.complete_lattice
universes u
open temporal lattice
namespace sequent
instance subset_complete_lattice {A : Type u} : complete_lattice (subset A)
:= begin
apply lattice.complete_lattice_fun,
end
instance subset_cha {A : Type u} : cha (subset A)
:= begin
constructor, tacti... |
1768822ea97bf8bcb5ff9976e2d23de19e2b2996 | e4e5bde6f14c01a8a34267a9d7bb45e137735696 | /src/exercises/theorem_proving_in_lean/exercises.lean | d4acc29b629bf5dd33a677736c97574e985422a0 | [] | no_license | jamesdabbs/proofs | fb5dab6f3c4f3f5f952fca033ec649888ae787c6 | 00baf355b08e7aec00de34208e1b2cb4a8d7b701 | refs/heads/master | 1,645,645,735,797 | 1,569,559,636,000 | 1,569,559,636,000 | 211,238,170 | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 20,021 | lean | -- Chapter 2
namespace ch2
/-
1. Define the function Do_Twice
-/
def Do_Twice (f: ℕ → ℕ) (n : ℕ) : ℕ := f (f n)
#check Do_Twice
#reduce Do_Twice (λ x, x * 3) 2
/-
2. Define the functions curry and uncurry
-/
def curry (f : ℕ × ℕ → ℕ) (a b : ℕ) : ℕ := f (a, b)
def uncurry (f : ℕ → ℕ → ℕ) (c : ℕ × ℕ) : ℕ := f c.1 c.2... |
4c2294f5d101ff12a9309c59723cfcf71bcdc9ce | 562dafcca9e8bf63ce6217723b51f32e89cdcc80 | /src/super/resolution.lean | 66976fb0e560b34e938fcc630605908214806e75 | [] | no_license | digama0/super | 660801ef3edab2c046d6a01ba9bbce53e41523e8 | 976957fe46128e6ef057bc771f532c27cce5a910 | refs/heads/master | 1,606,987,814,510 | 1,498,621,778,000 | 1,498,621,778,000 | 95,626,306 | 0 | 0 | null | 1,498,621,692,000 | 1,498,621,692,000 | null | UTF-8 | Lean | false | false | 2,246 | lean | /-
Copyright (c) 2017 Gabriel Ebner. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Gabriel Ebner
-/
import .clause .prover_state .utils
open tactic monad
namespace super
variable gt : expr → expr → bool
variables (ac1 ac2 : derived_clause)
variables (c1 c2 : clause)... |
8f7a9cd013a86b45e2797af6f51e5e861f2a5c2e | 491068d2ad28831e7dade8d6dff871c3e49d9431 | /hott/hit/set_quotient.hlean | 15eb1fcb3112999cac130d698a1f5f0a7fc7f3cf | [
"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 | 3,823 | 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
Declaration of set-quotients, i.e. quotient of a mere relation which is then set-truncated.
-/
import .quotient .trunc function
open eq is_trunc trunc quotient eq... |
d6deba3faab941fa5c25607c77c89271189e29ca | 6094e25ea0b7699e642463b48e51b2ead6ddc23f | /library/data/examples/vector.lean | b49b163c15e09212b3059f53db9813b2ee3ec763 | [
"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 | 13,174 | lean | /-
Copyright (c) 2014 Floris van Doorn. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Author: Floris van Doorn, Leonardo de Moura
This file demonstrates how to encode vectors using indexed inductive families.
In standard library we do not use this approach.
-/
import data.nat... |
f76859946769b1e6b37a3966404148c13848d88e | bdb33f8b7ea65f7705fc342a178508e2722eb851 | /data/nat/prime.lean | 0683e724fc0eed269d2e9c5ecc3b210bcfb03148 | [
"Apache-2.0"
] | permissive | rwbarton/mathlib | 939ae09bf8d6eb1331fc2f7e067d39567e10e33d | c13c5ea701bb1eec057e0a242d9f480a079105e9 | refs/heads/master | 1,584,015,335,862 | 1,524,142,167,000 | 1,524,142,167,000 | 130,614,171 | 0 | 0 | Apache-2.0 | 1,548,902,667,000 | 1,524,437,371,000 | Lean | UTF-8 | Lean | false | false | 14,827 | 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, Mario Carneiro
Prime numbers.
-/
import data.nat.sqrt data.nat.gcd data.list.basic data.list.perm
open bool subtype
namespace nat
open decida... |
cbeaab0438b7263a76122bd231a80c2f485a2f4d | 3bd26f8e9c7eeb6ae77ac4ba709b5b3c65b8d7cf | /ack.lean | 9912104b99cb97762299797921d5685189e8012e | [] | no_license | koba-e964/lean-work | afac5677efef6905fce29cac44f36f309c3bcd62 | 6ab0506b9bd4e5a2e1ba6312d4ac6bdaf6ae1594 | refs/heads/master | 1,659,773,150,740 | 1,659,289,453,000 | 1,659,289,453,000 | 100,273,655 | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 9,180 | lean | def ack: nat -> nat -> nat
| 0 n := n + 1
| (m + 1) 0 := ack m 1
| (m + 1) (n + 1) := ack m (ack (m + 1) n)
lemma ack_2nd_lt_val: forall m n, n < ack m n :=
begin
intro m,
induction m with m' ih,
show forall n, n < ack 0 n,
{
intro n,
calc
n < n + 1 : nat.le_refl _
... = ack 0 n : by sim... |
587af80c2219da864227e8c715d9e38a8682c17a | cf39355caa609c0f33405126beee2739aa3cb77e | /tests/lean/emptyc_errors.lean | f667e4d2fc86f729325459ab71abeab55c37bf7e | [
"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 | 600 | lean | theorem {u} not_mem_empty1 {A : Type u} (x : A) : x ∉ (∅ : set A) :=
assume h, h
theorem {u} not_mem_empty2 {A : Type u} (x : A) : x ∉ ∅ := -- ERROR here
assume h, h
theorem {u} not_mem_empty3 {A : Type u} (x : A) : x ∉ (∅ : set A) :=
assume h : x ∈ ∅, h
theorem {u} not_mem_empty4 {A : Type u} (x : A) : x ∉ (∅ : se... |
32b11428d98c79f5a28998ff190b0e10fad03737 | 6432ea7a083ff6ba21ea17af9ee47b9c371760f7 | /src/Lean/Server/References.lean | 44fb928f3cf50eae11b87718aa597907f614c30f | [
"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 | 12,292 | lean | /-
Copyright (c) 2021 Joscha Mennicken. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Joscha Mennicken
-/
import Lean.Data.Lsp.Internal
import Lean.Server.Utils
/-! # Representing collected and deduplicated definitions and usages -/
namespace Lean.Server
open Lsp L... |
3d35e835ca99dcc239ff850a7d502447b512023f | 952248371e69ccae722eb20bfe6815d8641554a8 | /src/datatypes/expr_form.lean | 43a0c7fd19090654afb28e8c6f9c6a8467d413dd | [] | no_license | robertylewis/lean_polya | 5fd079031bf7114449d58d68ccd8c3bed9bcbc97 | 1da14d60a55ad6cd8af8017b1b64990fccb66ab7 | refs/heads/master | 1,647,212,226,179 | 1,558,108,354,000 | 1,558,108,354,000 | 89,933,264 | 1 | 2 | null | 1,560,964,118,000 | 1,493,650,551,000 | Lean | UTF-8 | Lean | false | false | 11,014 | lean | import .comp
namespace polya
open native
meta def sum_form := rb_map expr ℚ
meta def expr_coeff_list_to_expr : list (expr × ℚ) → tactic expr
| [] := return `(0 : ℚ)
| [(e, q)] := tactic.to_expr ``(%%(↑q.reflect : expr)*%%e)
| ((e, q)::t) := do e' ← expr_coeff_list_to_expr t, h ← tactic.to_expr ``(%%(q.reflect : expr... |
8691942353e3d66ee948934fb9743b642ffb82dc | bb31430994044506fa42fd667e2d556327e18dfe | /src/analysis/normed_space/basic.lean | 1d493c820861be0d2222beb5a30e71a95c678dbf | [
"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 | 25,943 | 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 algebra.algebra.pi
import algebra.algebra.restrict_scalars
import analysis.normed.field.basic
import data.real.sqrt
/-!
# Normed spaces
In th... |
f7d45ac09d79707a259d96d290b93aa7cd4059ae | df7bb3acd9623e489e95e85d0bc55590ab0bc393 | /lean/love13_rational_and_real_numbers_demo.lean | d50e97df909f67ad97e69660ac23beec62bdf4af | [] | no_license | MaschavanderMarel/logical_verification_2020 | a41c210b9237c56cb35f6cd399e3ac2fe42e775d | 7d562ef174cc6578ca6013f74db336480470b708 | refs/heads/master | 1,692,144,223,196 | 1,634,661,675,000 | 1,634,661,675,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 13,959 | lean | import .lovelib
/- # LoVe Demo 13: Rational and Real Numbers
We review the construction of `ℚ` and `ℝ` as quotient types.
A procedure to construct types with specific properties:
1. Create a new type that can represent all elements, but not necessarily in a
unique manner.
2. Quotient this representation, equat... |
35be9a9361d51086818d0dd386dee49ae948edb2 | 618003631150032a5676f229d13a079ac875ff77 | /test/lint_simp_var_head.lean | e634961be2b9e224c730c2086b861f06aadc3eea | [
"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 | 589 | lean | import tactic.lint
-- The following simp lemma has the variable `f` as head symbol of the left-hand side:
@[simp] axiom const_zero_eq_zero (f : ℕ → ℕ) (x) : f x = 0
example (f : ℕ → ℕ) : f 42 = 0 :=
begin
-- Hence it doesn't work:
success_if_fail {simp},
-- BTW, rw doesn't work either:
success_if_fail {rw co... |
03f0100f695b01a3163f29141f99853e19f7ebb8 | 8cae430f0a71442d02dbb1cbb14073b31048e4b0 | /src/linear_algebra/clifford_algebra/basic.lean | 45eada9e874ede87d9a6341db2147a650e381ad2 | [
"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 | 13,784 | lean | /-
Copyright (c) 2020 Eric Wieser. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Eric Wieser, Utensil Song
-/
import algebra.ring_quot
import linear_algebra.tensor_algebra.basic
import linear_algebra.quadratic_form.isometry
/-!
# Clifford Algebras
> THIS FILE IS SY... |
75b5782db8f4a2fa5f2e527e7719555955845dae | c3f2fcd060adfa2ca29f924839d2d925e8f2c685 | /tests/lean/hott/apply_class_issue.hlean | 1824583c3b083c6a284541e17d917968887b244a | [
"Apache-2.0"
] | permissive | respu/lean | 6582d19a2f2838a28ecd2b3c6f81c32d07b5341d | 8c76419c60b63d0d9f7bc04ebb0b99812d0ec654 | refs/heads/master | 1,610,882,451,231 | 1,427,747,084,000 | 1,427,747,429,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 305 | hlean | open is_trunc
context
parameters {P : Π(A : Type), A → Type}
definition my_contr {A : Type} [H : is_contr A] (a : A) : P A a := sorry
definition foo2
(A : Type)
(B : A → Type)
(a : A)
(x : B a)
(H : Π (a : A), is_contr (B a)) --(H : is_contr (B a))
: P (B a) x :=
by apply (@my_contr _ _)
end
|
daa37c5d7542fff189a5300f0d705b83c858cc26 | 969dbdfed67fda40a6f5a2b4f8c4a3c7dc01e0fb | /src/category_theory/discrete_category.lean | f246653059dfd64d68d3d81f944a97f2cc60d988 | [
"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 | 5,145 | lean | /-
Copyright (c) 2017 Scott Morrison. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Stephen Morgan, Scott Morrison, Floris van Doorn
-/
import category_theory.eq_to_hom
namespace category_theory
universes v₁ v₂ u₁ u₂ -- declare the `v`'s first; see `category_theory.... |
2035e99bda98d3ef54928f8df79e9d4bebc4363b | ae1e94c332e17c7dc7051ce976d5a9eebe7ab8a5 | /tests/lean/envExtensionSealed.lean | 248f3d72d9044064b1bf722385c6c1a0f25d68fc | [
"Apache-2.0"
] | permissive | dupuisf/lean4 | d082d13b01243e1de29ae680eefb476961221eef | 6a39c65bd28eb0e28c3870188f348c8914502718 | refs/heads/master | 1,676,948,755,391 | 1,610,665,114,000 | 1,610,665,114,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 257 | lean | #lang lean4
import Lean
namespace Lean
def ex1 : CoreM Nat := do
let env ← getEnv
pure $ privateExt.getState env
#eval ex1
def ex2 : CoreM Nat := do
let env ← getEnv
pure $ { privateExt with idx := 3 }.getState env -- Error
-- #eval ex2
end Lean
|
3c2e87fe2b4b0549e5e296913ebdb3141a38bc50 | a19a4fce1e5677f4d20cbfdf60c04b6386ab8210 | /hott/types/prod.hlean | d5140792a75125480ab87c0d13762f7c94d4dc1d | [
"Apache-2.0"
] | permissive | nthomas103/lean | 9c341a316e7d9faa00546462f90a8aa402e17eac | 04eaf184a92606a56e54d0d6c8d59437557263fc | refs/heads/master | 1,586,061,106,806 | 1,454,640,115,000 | 1,454,641,279,000 | 51,127,143 | 0 | 0 | null | 1,454,648,683,000 | 1,454,648,683,000 | null | UTF-8 | Lean | false | false | 8,456 | hlean | /-
Copyright (c) 2014 Floris van Doorn. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Author: Floris van Doorn
Ported from Coq HoTT
Theorems about products
-/
open eq equiv is_equiv is_trunc prod prod.ops unit equiv.ops
variables {A A' B B' C D : Type} {P Q : A → Type}
... |
a71130f100a1dd9f6ef63f41e55a2de4f62948c1 | 4727251e0cd73359b15b664c3170e5d754078599 | /src/analysis/convex/integral.lean | 224b5b0f9c6e4855761c404966046f1503376b02 | [
"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 | 21,864 | lean | /-
Copyright (c) 2020 Yury G. Kudryashov. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Yury G. Kudryashov
-/
import analysis.convex.function
import analysis.convex.strict_convex_space
import measure_theory.function.ae_eq_of_integral
import measure_theory.integral.ave... |
5bd6aa3e600223a53c5ae20d1dea266f6a9f204c | 4727251e0cd73359b15b664c3170e5d754078599 | /src/data/finsupp/pwo.lean | 0334cc2d8fcd6a293d8f537b8c4dfef4f9ae8ee8 | [
"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 | 1,294 | lean | /-
Copyright (c) 2022 Alex J. Best. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Alex J. Best
-/
import data.finsupp.order
import order.well_founded_set
/-!
# Partial well ordering on finsupps
This file contains the fact that finitely supported functions from a fi... |
849a6aca3d1ee6acc54336ac46f292a9361ce3a9 | 35677d2df3f081738fa6b08138e03ee36bc33cad | /src/algebra/module.lean | 5de639beb1be526d750dd3da5f669826d85ddbaf | [
"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 | 24,661 | lean | /-
Copyright (c) 2015 Nathaniel Thomas. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Nathaniel Thomas, Jeremy Avigad, Johannes Hölzl, Mario Carneiro
Modules over a ring.
## Implementation notes
Throughout the `linear_map` section implicit `{}` brackets are often ... |
cc890b4e403b93c67da042b3464aa8d962cf276c | 42610cc2e5db9c90269470365e6056df0122eaa0 | /hott/homotopy/chain_complex.hlean | f77195bbe1afcae3f514f624f8d82ef812cbea9e | [
"Apache-2.0"
] | permissive | tomsib2001/lean | 2ab59bfaebd24a62109f800dcf4a7139ebd73858 | eb639a7d53fb40175bea5c8da86b51d14bb91f76 | refs/heads/master | 1,586,128,387,740 | 1,468,968,950,000 | 1,468,968,950,000 | 61,027,234 | 0 | 0 | null | 1,465,813,585,000 | 1,465,813,585,000 | null | UTF-8 | Lean | false | false | 21,332 | hlean | /-
Copyright (c) 2016 Floris van Doorn. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Floris van Doorn
Chain complexes.
We define chain complexes in a general way as a sequence X of types indexes over an arbitrary type
N with a successor S. There are maps X (S n) → ... |
e81197ec55f60001d45eedf78f6af6e930a55364 | 9dc8cecdf3c4634764a18254e94d43da07142918 | /src/order/compare.lean | 03de3a0ec82acc2033aac26539236aba8cf3acc6 | [
"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 | 8,332 | 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.synonym
/-!
# Comparison
This file provides basic results about orderings and comparison in linear orders.
## Definitions
* `cmp_le`: An `ordering` ... |
7c141d90304a76730ffc0d8357e179526cf854da | 618003631150032a5676f229d13a079ac875ff77 | /src/topology/metric_space/lipschitz.lean | e5c2ccd7b053785a636246fbaa342d5ba67a8460 | [
"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 | 11,375 | lean | /-
Copyright (c) 2018 Rohan Mitta. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Rohan Mitta, Kevin Buzzard, Alistair Tucker, Johannes Hölzl, Yury Kudryashov
-/
import topology.metric_space.basic
import category_theory.endomorphism
import category_theory.types
/-!
# ... |
2bd245626ce9f3a81c2070e1664b61f097e4c6e8 | fa02ed5a3c9c0adee3c26887a16855e7841c668b | /src/computability/halting.lean | 863fa43cf68896dc37fd5e27aa56264c258ff6cd | [
"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 | 14,206 | 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 computability.partrec_code
/-!
# Computability theory and the halting problem
A universal partial recursive function, Rice's theorem, and the halting problem... |
5d17f366acd98f98df91c0a865278a02e5d025b7 | ae1e94c332e17c7dc7051ce976d5a9eebe7ab8a5 | /stage0/src/Lean/MetavarContext.lean | 5ae7d7a634b055fd5de88476f0969c63bb34bd32 | [
"Apache-2.0"
] | permissive | dupuisf/lean4 | d082d13b01243e1de29ae680eefb476961221eef | 6a39c65bd28eb0e28c3870188f348c8914502718 | refs/heads/master | 1,676,948,755,391 | 1,610,665,114,000 | 1,610,665,114,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 51,940 | 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.MonadCache
import Lean.LocalContext
namespace Lean
/-
The metavariable context stores metavariable declarations and their
assignments. It... |
113df8f9a669eff0d835ab67d9c705a68160bba3 | fa02ed5a3c9c0adee3c26887a16855e7841c668b | /src/data/equiv/mul_add.lean | 4701f976cf4a6c1abe28c78fb29c07ef7c68e816 | [
"Apache-2.0"
] | permissive | jjgarzella/mathlib | 96a345378c4e0bf26cf604aed84f90329e4896a2 | 395d8716c3ad03747059d482090e2bb97db612c8 | refs/heads/master | 1,686,480,124,379 | 1,625,163,323,000 | 1,625,163,323,000 | 281,190,421 | 2 | 0 | Apache-2.0 | 1,595,268,170,000 | 1,595,268,169,000 | null | UTF-8 | Lean | false | false | 23,275 | 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.hom
import algebra.group.type_tags
import algebra.group.units_hom
import algebra.group_with_zero
/-!
# Multiplic... |
58322a1db9b86e4c3e4571ec2b5db242015d6ae6 | a45212b1526d532e6e83c44ddca6a05795113ddc | /src/topology/opens.lean | d8385f302131de62566286762521c131058440c0 | [
"Apache-2.0"
] | permissive | fpvandoorn/mathlib | b21ab4068db079cbb8590b58fda9cc4bc1f35df4 | b3433a51ea8bc07c4159c1073838fc0ee9b8f227 | refs/heads/master | 1,624,791,089,608 | 1,556,715,231,000 | 1,556,715,231,000 | 165,722,980 | 5 | 0 | Apache-2.0 | 1,552,657,455,000 | 1,547,494,646,000 | Lean | UTF-8 | Lean | false | false | 5,933 | 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
Subtype of open subsets in a topological space.
-/
import topology.bases topology.subset_properties topology.constructions
open filter lattice
variable... |
aea1f801bdd9278a376cb3791319fbf969d74e92 | e61a235b8468b03aee0120bf26ec615c045005d2 | /stage0/src/Init/Lean/Data/SMap.lean | 8bfc7b7393c4c51f76412b9622215061393ab654 | [
"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 | 3,074 | 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.HashMap
import Init.Data.PersistentHashMap
universes u v w w'
namespace Lean
/- Staged map for implementing the Environment. The ... |
e2b234338ac7b9fa1548107ce85fa8004f21a8ef | 3446e92e64a5de7ed1f2109cfb024f83cd904c34 | /src/game/world3/level11.lean | c14ad0e4e1d65357b8e47da677b34125036256cd | [] | no_license | kckennylau/natural_number_game | 019f4a5f419c9681e65234ecd124c564f9a0a246 | ad8c0adaa725975be8a9f978c8494a39311029be | refs/heads/master | 1,598,784,137,722 | 1,571,905,156,000 | 1,571,905,156,000 | 218,354,686 | 0 | 0 | null | 1,572,373,319,000 | 1,572,373,318,000 | null | UTF-8 | Lean | false | false | 692 | lean | import game.world3.level10 -- hide
import game.world2.level7 -- succ ne zero -- hide
import game.world2.level13 -- add_left_eq_zero -- hide
namespace mynat -- hide
/-
# Multiplication World
## Level 11: `mul_eq_zero_iff`
Now you have `eq_zero_or_eq_zero_of_mul_eq_zero` this is pretty straightforward.
-/
/- Theorem... |
abed4c6324e680c509578550430efcc12acdffdc | 8cae430f0a71442d02dbb1cbb14073b31048e4b0 | /src/geometry/manifold/algebra/left_invariant_derivation.lean | eb5dd7aff269220c0b0f6a6131ebc84e73b27cb4 | [
"Apache-2.0"
] | permissive | leanprover-community/mathlib | 56a2cadd17ac88caf4ece0a775932fa26327ba0e | 442a83d738cb208d3600056c489be16900ba701d | refs/heads/master | 1,693,584,102,358 | 1,693,471,902,000 | 1,693,471,902,000 | 97,922,418 | 1,595 | 352 | Apache-2.0 | 1,694,693,445,000 | 1,500,624,130,000 | Lean | UTF-8 | Lean | false | false | 9,027 | lean | /-
Copyright © 2020 Nicolò Cavalleri. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Nicolò Cavalleri
-/
import ring_theory.derivation.lie
import geometry.manifold.derivation_bundle
/-!
# Left invariant derivations
> THIS FILE IS SYNCHRONIZED WITH MATHLIB4.
> Any c... |
a5a516002316251db5ceb895eb4cffde7a88648f | bbecf0f1968d1fba4124103e4f6b55251d08e9c4 | /src/data/buffer/parser/basic.lean | f441a8aa34eeba30b74f6806c50fdd41a264107b | [
"Apache-2.0"
] | permissive | waynemunro/mathlib | e3fd4ff49f4cb43d4a8ded59d17be407bc5ee552 | 065a70810b5480d584033f7bbf8e0409480c2118 | refs/heads/master | 1,693,417,182,397 | 1,634,644,781,000 | 1,634,644,781,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 110,135 | lean | /-
Copyright (c) 2020 Yakov Pechersky. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Yakov Pechersky
-/
import data.string.basic
import data.buffer.basic
import data.nat.digits
/-!
# Parsers
`parser α` is the type that describes a computation that can ingest a `char... |
2c4f1b1278018debf0a27dcec72a4f48ced0c104 | 947b78d97130d56365ae2ec264df196ce769371a | /tests/lean/run/coeIssues4.lean | b1d1866e73899d882b866fec1f72714b9cb48dbd | [
"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 | 546 | lean | new_frontend
def f : List Int → Bool := fun _ => true
def ex3 : IO Bool := do
let xs ← pure [1, 2, 3];
pure $ f xs -- Works
inductive Expr
| val : Nat → Expr
| app : Expr → Expr → Expr
instance : Coe Nat Expr := ⟨Expr.val⟩
def foo : Expr → Expr := fun e => e
def ex1 : Bool :=
f [1, 2, 3] -- Works
def ex2 : Bool... |
f1f53af8bd427e92c4b19137eb19c8401fd34468 | ff5230333a701471f46c57e8c115a073ebaaa448 | /library/init/core.lean | 0951e7c801f303c20d730943179c876cd48e3215 | [
"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 | 18,662 | lean | /-
Copyright (c) 2014 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Leonardo de Moura
notation, basic datatypes and type classes
-/
prelude
notation `Prop` := Sort 0
notation f ` $ `:1 a:0 := f a
/- Reserving notation. We do this sot that the... |
b071266e9fb5080aea27780a2222bc0cd1a6a43f | 86f6f4f8d827a196a32bfc646234b73328aeb306 | /examples/introduction/unnamed_200.lean | ce119efea13066c2b3504c6191b2c0c805c4d124 | [] | 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 | 336 | lean | import data.nat.parity tactic
open nat
example : ∀ m n : nat, even n → even (m * n) :=
begin
-- say m and n are natural numbers, and assume n=2*k
rintros m n ⟨k, hk⟩,
-- We need to prove m*n is twice a natural. Let's show it's twice m*k.
use m * k,
-- substitute in for n
rw hk,
-- and now it's obvious
... |
3a9b09b208ba9e63f25ae9d970b74297a5d38fb4 | 63abd62053d479eae5abf4951554e1064a4c45b4 | /src/linear_algebra/linear_independent.lean | e6a10f117a5d0bbd52e8393b9fc42a24dcfdaeac | [
"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 | 41,543 | lean | /-
Copyright (c) 2020 Anne Baanen. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Johannes Hölzl, Mario Carneiro, Alexander Bentkamp, Anne Baanen
-/
import linear_algebra.finsupp
import order.zorn
import data.finset.order
import data.equiv.fin
/-!
# Linear independen... |
d2c73190e3a367c1daa2a8ca8234e90f105c6271 | 57fdc8de88f5ea3bfde4325e6ecd13f93a274ab5 | /algebra/ring.lean | 8bf4fec5129c1a76b7f776d6653af12b274eb8f5 | [
"Apache-2.0"
] | permissive | louisanu/mathlib | 11f56f2d40dc792bc05ee2f78ea37d73e98ecbfe | 2bd5e2159d20a8f20d04fc4d382e65eea775ed39 | refs/heads/master | 1,617,706,993,439 | 1,523,163,654,000 | 1,523,163,654,000 | 124,519,997 | 0 | 0 | Apache-2.0 | 1,520,588,283,000 | 1,520,588,283,000 | null | UTF-8 | Lean | false | false | 5,406 | lean | /-
Copyright (c) 2014 Jeremy Avigad. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Jeremy Avigad, Leonardo de Moura, Floris van Doorn
-/
import algebra.group tactic data.set.basic
universes u v
variable {α : Type u}
section
variable [semiring α]
theorem mul_two... |
98e41fa0b60ee06f0105b75e742f4ecf2b0bf8e2 | ce89339993655da64b6ccb555c837ce6c10f9ef4 | /na4zagin3/top-10.lean | 8bac50e668d3ae1b23eab550dc2df587579a1880 | [] | no_license | zeptometer/LearnLean | ef32dc36a22119f18d843f548d0bb42f907bff5d | bb84d5dbe521127ba134d4dbf9559b294a80b9f7 | refs/heads/master | 1,625,710,824,322 | 1,601,382,570,000 | 1,601,382,570,000 | 195,228,870 | 2 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 2,212 | lean | -- LEAN (*
definition prefix_sum : ℕ → list ℕ → list ℕ
| sum [] := [sum]
| sum (head :: tail) := sum :: (prefix_sum (sum + head) tail).
definition plus_list : list ℕ → list ℕ → list ℕ
| [] _ := []
| _ [] := []
| (h1 :: t1) (h2 :: t2) := (h1 + h2) :: plus_list t1 t2.
example : ∀ l1 l2 : list ℕ,
prefix_sum 0 (plus_... |
46782fced1835e886e106fa6c0909e5729b1910b | cf39355caa609c0f33405126beee2739aa3cb77e | /tests/lean/change1.lean | db2d87a9d448e5713be8c7603c72cbf1310ec751 | [
"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 | 542 | lean | open tactic nat expr option
attribute [simp]
lemma succ_eq_add (n : nat) : succ n = n + 1 :=
rfl
example (a b : nat) : a = b → succ (succ a) = succ (b + 1) :=
by do intro `Heq,
trace_state,
s ← simp_lemmas.mk_default,
t' ← target >>= s^.dsimplify,
change t',
trace "---- after change ----... |
f5d26c3df9dcdfcae027bd6f5780a6ce3834a8da | 90edd5cdcf93124fe15627f7304069fdce3442dd | /src/Lean/Aesop/Tracing.lean | 31e19940633b133556fc550348152e064e2d01c3 | [
"Apache-2.0"
] | permissive | JLimperg/lean4-aesop | 8a9d9cd3ee484a8e67fda2dd9822d76708098712 | 5c4b9a3e05c32f69a4357c3047c274f4b94f9c71 | refs/heads/master | 1,689,415,944,104 | 1,627,383,284,000 | 1,627,383,284,000 | 377,536,770 | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 2,173 | lean | /-
Copyright (c) 2021 Jannis Limperg. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Jannis Limperg
-/
-- TODO Instead of tracing, I think we want to construct a couple of big
-- messages at the end: one with the ruleset, one with the final search tree,
-- one with th... |
063d0df51efc5d9e57f071f87b54cbd1bc271a2c | 26ac254ecb57ffcb886ff709cf018390161a9225 | /src/linear_algebra/basis.lean | 5bede4294c0acfa11d3ac7174524733f5c538d09 | [
"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 | 55,051 | 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, Alexander Bentkamp
-/
import linear_algebra.finsupp
import linear_algebra.projection
import order.zorn
import data.fintype.card
/-!
# Linear independe... |
badd9615e6903e50d21c1128f62c41cd0971aac2 | e00ea76a720126cf9f6d732ad6216b5b824d20a7 | /src/category_theory/discrete_category.lean | 151bd774a5e0530b800b4678bb59e0eb3bb624a0 | [
"Apache-2.0"
] | permissive | vaibhavkarve/mathlib | a574aaf68c0a431a47fa82ce0637f0f769826bfe | 17f8340912468f49bdc30acdb9a9fa02eeb0473a | refs/heads/master | 1,621,263,802,637 | 1,585,399,588,000 | 1,585,399,588,000 | 250,833,447 | 0 | 0 | Apache-2.0 | 1,585,410,341,000 | 1,585,410,341,000 | null | UTF-8 | Lean | false | false | 3,191 | lean | /-
Copyright (c) 2017 Scott Morrison. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Stephen Morgan, Scott Morrison, Floris van Doorn
-/
import data.ulift
import data.fintype
import category_theory.opposites category_theory.equivalence
namespace category_theory
unive... |
4addb62692a853cecba6d62b97bf5ae1206b14e9 | d1a52c3f208fa42c41df8278c3d280f075eb020c | /stage0/src/Init/Data/Array/QSort.lean | c7a2c4ae18f67bfc7a0eeafec7eb489a6e11c9df | [
"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 | 1,657 | 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.Basic
namespace Array
-- TODO: remove the [Inhabited α] parameters as soon as we have the tactic framework for automating pr... |
a571525991343310186bc02fcab30485a992408a | 12dabd587ce2621d9a4eff9f16e354d02e206c8e | /world08/level08.lean | 5803b8288c26a614893b905fbda15c2c13c74534 | [] | 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 | 140 | lean | lemma eq_zero_of_add_right_eq_self {a b : mynat} : a + b = a → b = 0 :=
begin
intro h,
apply add_left_cancel a,
rw add_zero,
exact h,
end
|
28c68a08c5bfbc4ca8a1c405340dab412088a927 | 737dc4b96c97368cb66b925eeea3ab633ec3d702 | /stage0/src/Lean/Server/FileWorker/RequestHandling.lean | 1a044207f8fc1d569b9926685e442d06b5c14e3a | [
"Apache-2.0"
] | permissive | Bioye97/lean4 | 1ace34638efd9913dc5991443777b01a08983289 | bc3900cbb9adda83eed7e6affeaade7cfd07716d | refs/heads/master | 1,690,589,820,211 | 1,631,051,000,000 | 1,631,067,598,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 18,031 | lean | /-
Copyright (c) 2021 Wojciech Nawrocki. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Wojciech Nawrocki, Marc Huisinga
-/
import Lean.DeclarationRange
import Lean.Data.Json
import Lean.Data.Lsp
import Lean.Server.FileWorker.Utils
import Lean.Server.Requests
import... |
6e8992f4d3e3c2640ca344671299b7e238648e97 | aa5a655c05e5359a70646b7154e7cac59f0b4132 | /src/Lean/Meta/Match/Match.lean | f188f92f35710e0928295e6edcc411050e7ae532 | [
"Apache-2.0"
] | permissive | lambdaxymox/lean4 | ae943c960a42247e06eff25c35338268d07454cb | 278d47c77270664ef29715faab467feac8a0f446 | refs/heads/master | 1,677,891,867,340 | 1,612,500,005,000 | 1,612,500,005,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 32,216 | lean | /-
Copyright (c) 2020 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Leonardo de Moura
-/
import Lean.Util.CollectLevelParams
import Lean.Util.Recognizers
import Lean.Compiler.ExternAttr
import Lean.Meta.Check
import Lean.Meta.Closure
import Lean... |
eeba1672fd7750932484407d71e841383ee1dbb3 | 947fa6c38e48771ae886239b4edce6db6e18d0fb | /src/analysis/inner_product_space/projection.lean | 57143ef100655fe9340b66d94cf3f684558b17b3 | [
"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 | 56,228 | lean | /-
Copyright (c) 2019 Zhouhang Zhou. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Zhouhang Zhou, Frédéric Dupuis, Heather Macbeth
-/
import analysis.convex.basic
import analysis.inner_product_space.basic
import analysis.normed_space.is_R_or_C
/-!
# The orthogonal pr... |
5b551bd8ebb2c67bf59896bf4969f0d3f6b032f6 | 4efff1f47634ff19e2f786deadd394270a59ecd2 | /src/data/equiv/ring.lean | 80c9da149066cc0fcca9776dd89dd6d90ae59ca1 | [
"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 | 10,304 | 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 data.equiv.mul_add
import algebra.field
import algebra.opposites
/-!
# (Semi)ring equivs
In this file we define extension of ... |
062aa6a9014e63a19b649d1e1759076e24cd3c04 | 626e312b5c1cb2d88fca108f5933076012633192 | /src/group_theory/quotient_group.lean | 0a7257e2573d7ecd69b8d0766b9c55699b0fb218 | [
"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 | 17,401 | lean | /-
Copyright (c) 2018 Kevin Buzzard, Patrick Massot. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Kevin Buzzard, Patrick Massot
This file is to a certain extent based on `quotient_module.lean` by Johannes Hölzl.
-/
import group_theory.coset
/-!
# Quotients of group... |
d2c3608b98841b4c044fef50b6a61d4fd7fea190 | 8cb37a089cdb4af3af9d8bf1002b417e407a8e9e | /library/init/meta/rb_map.lean | aeb9c231188396f6f352511ac5b353c6502cba99 | [
"Apache-2.0"
] | permissive | kbuzzard/lean | ae3c3db4bb462d750dbf7419b28bafb3ec983ef7 | ed1788fd674bb8991acffc8fca585ec746711928 | refs/heads/master | 1,620,983,366,617 | 1,618,937,600,000 | 1,618,937,600,000 | 359,886,396 | 1 | 0 | Apache-2.0 | 1,618,936,987,000 | 1,618,936,987,000 | null | UTF-8 | Lean | false | false | 7,893 | lean | /-
Copyright (c) 2016 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Leonardo de Moura, Jeremy Avigad
-/
prelude
import init.data.ordering.basic init.function init.meta.name init.meta.format init.control.monad
open format
private meta def forma... |
eca5f9c9ec0698de3944b98ea995035b92ecc829 | d1bbf1801b3dcb214451d48214589f511061da63 | /src/analysis/calculus/deriv.lean | ecd28840db6ebeefff65ca57f8ede0a5b95e3615 | [
"Apache-2.0"
] | permissive | cheraghchi/mathlib | 5c366f8c4f8e66973b60c37881889da8390cab86 | f29d1c3038422168fbbdb2526abf7c0ff13e86db | refs/heads/master | 1,676,577,831,283 | 1,610,894,638,000 | 1,610,894,638,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 73,984 | 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... |
216d90b4e7e65862387164e18f28dbd48fdfc075 | 8cae430f0a71442d02dbb1cbb14073b31048e4b0 | /src/category_theory/connected_components.lean | a04a891f964cfaf6b80c98477e79e4fb890036ad | [
"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 | 5,903 | 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 data.list.chain
import category_theory.is_connected
import category_theory.sigma.basic
import category_theory.full_subcategory
/-!
# Connected components of a cat... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.