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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
a75e3313172d2629e05de0dfdc3730a39104a346 | 02fbe05a45fda5abde7583464416db4366eedfbf | /tests/lean/eformat.lean | 66578fba4c473224ba4a17b8cb26a849de14783a | [
"Apache-2.0"
] | permissive | jasonrute/lean | cc12807e11f9ac6b01b8951a8bfb9c2eb35a0154 | 4be962c167ca442a0ec5e84472d7ff9f5302788f | refs/heads/master | 1,672,036,664,637 | 1,601,642,826,000 | 1,601,642,826,000 | 260,777,966 | 0 | 0 | Apache-2.0 | 1,588,454,819,000 | 1,588,454,818,000 | null | UTF-8 | Lean | false | false | 944 | lean | open tactic
meta def trace_tagged_debug : expr → tactic unit
| e := do
tf ← tactic.pp_tagged e,
f ← tagged_format.m_untag (λ a f, do a ← pp a, pure $ "[" ++ a ++ ": " ++ f ++ "]") tf,
tactic.trace f
meta def trace_tagged_debug_locals : tactic unit := do
cs ← local_context,
cs ← cs.mmap infer_type,
cs.... |
75d3fcb745c76e59fc815828bfa1b6b4b65a78ae | 302c785c90d40ad3d6be43d33bc6a558354cc2cf | /src/order/preorder_hom.lean | ee12ac00811d62f5ca6adddebdcd8949c73892f0 | [
"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 | 7,296 | lean | /-
Copyright (c) 2020 Johan Commelin. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Johan Commelin
# Preorder homomorphisms
Bundled monotone functions, `x ≤ y → f x ≤ f y`.
-/
import logic.function.iterate
import order.basic
import order.bounded_lattice
import order... |
3e594bc05d583ef482871c6ca3096d6a658cd363 | 947fa6c38e48771ae886239b4edce6db6e18d0fb | /src/data/real/cau_seq_completion.lean | 30c208f6672bf2b21fa07114bd98cf5ac116d019 | [
"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 | 12,263 | lean | /-
Copyright (c) 2018 Mario Carneiro. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Mario Carneiro, Robert Y. Lewis
-/
import data.real.cau_seq
/-!
# Cauchy completion
This file generalizes the Cauchy completion of `(ℚ, abs)` to the completion of a commutative ring
... |
5e1a91a6557ec92f32579c77d9dad02690bbdb9a | 9dc8cecdf3c4634764a18254e94d43da07142918 | /src/order/basic.lean | cb0ffdeaba3da5b24856535f1f2f0b42ac0991a5 | [
"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 | 32,968 | lean | /-
Copyright (c) 2014 Jeremy Avigad. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Jeremy Avigad, Mario Carneiro
-/
import data.prod.basic
import data.subtype
/-!
# Basic definitions about `≤` and `<`
This file proves basic results about orders, provides extensive d... |
f95f2b2055909ed4bc2be9e14542a592401942d4 | fa02ed5a3c9c0adee3c26887a16855e7841c668b | /src/data/array/lemmas.lean | 77093fc153a542140847dcfdca8076197e277456 | [
"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 | 9,823 | lean | /-
Copyright (c) 2017 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Leonardo de Moura, Mario Carneiro
-/
import control.traversable.equiv
import data.vector2
universes u v w
namespace d_array
variables {n : ℕ} {α : fin n → Type u}
instance [∀... |
7e8427d1731118cc60075eb3ef4f650a26550626 | 193da933cf42f2f9188bb47e3c973205bc2abc5c | /EXAMS/exam1_autograde.lean | ab8f8d98790c404471d05efea7363b4e767e864f | [] | no_license | pandaman64/cs-dm | aa4e2621c7a19e2dae911bc237c33e02fcb0c7a3 | bfd2f5fd2612472e15bd970c7870b5d0dd73bd1c | refs/heads/master | 1,647,620,340,607 | 1,570,055,187,000 | 1,570,055,187,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 2,917 | lean | import .exam1_key
/- *******
AUTOGRADER
******* -/
def x : nat := 5
-- #1 [5 points]
#check (from_a_eq_b_prove_b_eq_a : ∀ (T : Type) (a b : T), a = b → b = a)
-- #2 [5 points] (check for lambda expression)
#check (from_a_eq_b_prove_b_eq_a' : ∀ (T :Type), ∀ (a b : T), a = b → b = a)
-- #3 [10 points]
#check (t1 : f... |
09b09986d2d3f44ed69bb6badc31a0a093bb8f74 | 3dd1b66af77106badae6edb1c4dea91a146ead30 | /tests/lean/have1.lean | 50e5bbb803aefa53457be2e8b6ae05b71da44cd3 | [
"Apache-2.0"
] | permissive | silky/lean | 79c20c15c93feef47bb659a2cc139b26f3614642 | df8b88dca2f8da1a422cb618cd476ef5be730546 | refs/heads/master | 1,610,737,587,697 | 1,406,574,534,000 | 1,406,574,534,000 | 22,362,176 | 1 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 447 | lean | import logic bool tactic
using bool eq_proofs tactic
variables a b c : bool
axiom H1 : a = b
axiom H2 : b = c
check have e1 [fact] : a = b, from H1,
have e2 : a = c, by apply trans; apply e1; apply H2,
have e3 : c = a, from e2⁻¹,
have e4 [fact] : b = a, from e1⁻¹,
have e5 : b = c, from e4 ⬝ e2... |
06ad80eed78669d76b3e1a8c07ef1a1a23c2fdbe | fa02ed5a3c9c0adee3c26887a16855e7841c668b | /src/analysis/calculus/fderiv_measurable.lean | dae8149408204c55b385636a6c34002395bbf460 | [
"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 | 21,746 | lean | /-
Copyright (c) 2020 Sébastien Gouëzel. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Sébastien Gouëzel, Yury Kudryashov
-/
import analysis.calculus.deriv
import measure_theory.borel_space
/-!
# Derivative is measurable
In this file we prove that the derivative of... |
f6097c9a7071d09605e7c023ac7129c482f350ae | 36c7a18fd72e5b57229bd8ba36493daf536a19ce | /tests/lean/run/blast_cc1.lean | 60f14b5b837b1d6255060f6350c0ead215d09ac6 | [
"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 | 541 | lean | import data.list
constant f {A : Type} : A → A → A
constant g : nat → nat
set_option blast.subst false
example (a b c : nat) : a = b → g a == g b :=
by blast
example (a b c : nat) : a = b → c = b → f (f a b) (g c) = f (f c a) (g b) :=
by blast
example (a b c d e x y : nat) : a = b → a = x → b = y → c = d → c = e → ... |
754a52ba38510347b1552ee003872320042c88e4 | 9dc8cecdf3c4634764a18254e94d43da07142918 | /src/field_theory/krull_topology.lean | ba2447e065658f4d24d8230d584c404baf41cfa4 | [
"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 | 13,215 | lean | /-
Copyright (c) 2022 Sebastian Monnet. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Sebastian Monnet
-/
import field_theory.galois
import topology.algebra.filter_basis
import topology.algebra.open_subgroup
import tactic.by_contra
/-!
# Krull topology
We define th... |
e8d87a23546af1cdd1e0300d75779558f0561041 | 1901b51268d21ec7361af7d3534abd9a8fa5cf52 | /Scratch.lean | af4f938c525632e2691b5a58bde55e16555904a1 | [] | no_license | vbeffara/lean | b9ea4107deeaca6f4da98e5de029b62e4861ab40 | 0004b1d502ac3f4ccd213dbd23589d4c4f9fece8 | refs/heads/main | 1,652,050,034,756 | 1,651,610,858,000 | 1,651,610,858,000 | 225,244,535 | 6 | 1 | null | null | null | null | UTF-8 | Lean | false | false | 5,320 | lean | import tactic data.equiv.basic
open function
lemma setoid.r.symm {V : Type} {S : setoid V} : symmetric S.r :=
λ x y, setoid.symm
def setoid.comp {V : Type} (s : setoid V) (t : setoid (quotient s)) : setoid V :=
let f : V → quotient s := quotient.mk,
g : quotient s → quotient t := quotient.mk
in setoid.ker (g ∘ f)... |
8d22c9338ff763c9ecfb05a360bc318983c7af9a | a9d0fb7b0e4f802bd3857b803e6c5c23d87fef91 | /tests/lean/run/def_complete_bug.lean | 7fe14e656ac36d7cedd94008055434c426ea6423 | [
"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 | 389 | lean |
definition g : list nat → list nat → nat
| [] (y::ys) := y
| [] ys := 0
| (x1::x2::xs) ys := g xs ys
| (x::xs) (y::ys) := g xs ys + y
| (x::xs) [] := g xs []
print g._main.equations.eqn_1
print g._main.equations.eqn_2
print g._main.equations.eqn_3
print g._main.equations.e... |
57af226a3af1286d151b285f6f4644bf6c80770c | c9b68131de1dfe4e7f0ea5749b11e67a774bc839 | /src/step.lean | f1d5541b4090800465ee226917388de32bc1cc25 | [] | no_license | congge666/formal-proofs | 2013f158f310abcfc07c156bb2a5113fb78f7831 | b5f6964d0220c8f89668357f2c08e44861128fe3 | refs/heads/master | 1,691,374,567,671 | 1,632,704,604,000 | 1,632,706,366,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 12,872 | lean | /-
The constraints that govern the one-step machine transition.
-/
import cpu constraints
variables {F : Type*} [field F]
/- from trace_data (indexed by step) -/
variables {off_op0_tilde
off_op1_tilde
off_dst_tilde : F}
variable {f_tilde : tilde_type F}
variables... |
864310d4011420a6b77b6774bcc66051ca284246 | 8cae430f0a71442d02dbb1cbb14073b31048e4b0 | /src/data/int/char_zero.lean | a233cbca4adb6fd33ded24b11ea7a9265e07bfa6 | [
"Apache-2.0"
] | permissive | leanprover-community/mathlib | 56a2cadd17ac88caf4ece0a775932fa26327ba0e | 442a83d738cb208d3600056c489be16900ba701d | refs/heads/master | 1,693,584,102,358 | 1,693,471,902,000 | 1,693,471,902,000 | 97,922,418 | 1,595 | 352 | Apache-2.0 | 1,694,693,445,000 | 1,500,624,130,000 | Lean | UTF-8 | Lean | false | false | 1,913 | lean | /-
Copyright (c) 2017 Mario Carneiro. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Mario Carneiro
-/
import data.int.cast.field
/-!
# Injectivity of `int.cast` into characteristic zero rings and fields.
> THIS FILE IS SYNCHRONIZED WITH MATHLIB4.
> Any changes to th... |
b629941e46a1597c260b63b4d46f256684c1b398 | 74addaa0e41490cbaf2abd313a764c96df57b05d | /Mathlib/Lean3Lib/init/data/nat/gcd_auto.lean | 54e385d6d74533b22c5a93cb0628ec46131d47cb | [] | 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,266 | 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, Mario Carneiro
Definitions and properties of gcd, lcm, and coprime.
-/
import Mathlib.PrePort
import Mathlib.Lean3Lib.init.data.nat.lemmas
import Math... |
6b66700e50f2347b141657f717e1136c423228a3 | 80cc5bf14c8ea85ff340d1d747a127dcadeb966f | /src/order/rel_iso.lean | cc3b6ab71ef36d880c241e8c3c9e7d545fa5d99c | [
"Apache-2.0"
] | permissive | lacker/mathlib | f2439c743c4f8eb413ec589430c82d0f73b2d539 | ddf7563ac69d42cfa4a1bfe41db1fed521bd795f | refs/heads/master | 1,671,948,326,773 | 1,601,479,268,000 | 1,601,479,268,000 | 298,686,743 | 0 | 0 | Apache-2.0 | 1,601,070,794,000 | 1,601,070,794,000 | null | UTF-8 | Lean | false | false | 22,536 | 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 logic.embedding
import order.rel_classes
import data.fin
open function
universes u v w
variables {α : Type*} {β : Type*} {γ : Type*}
{r : α → α → Prop} {s ... |
0e27a10bb03b73f44133f6d70f19d2736f0ebad8 | 57c233acf9386e610d99ed20ef139c5f97504ba3 | /src/tactic/suggest.lean | df7eb90c095cc894c28bcdab39fb71af61d16157 | [
"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 | 22,314 | lean | /-
Copyright (c) 2019 Lucas Allen. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Lucas Allen, Scott Morrison
-/
import data.bool.basic
import data.mllist
import tactic.solve_by_elim
/-!
# `suggest` and `library_search`
`suggest` and `library_search` are a pair of ta... |
9aaab3fe88cf97031d95024de016e98432c309dc | f20db13587f4dd28a4b1fbd31953afd491691fa0 | /library/init/meta/simp_tactic.lean | 05136083c5f5d9b7185d22ec2788e45ef9d4ed35 | [
"Apache-2.0"
] | permissive | AHartNtkn/lean | 9a971edfc6857c63edcbf96bea6841b9a84cf916 | 0d83a74b26541421fc1aa33044c35b03759710ed | refs/heads/master | 1,620,592,591,236 | 1,516,749,881,000 | 1,516,749,881,000 | 118,697,288 | 1 | 0 | null | 1,516,759,470,000 | 1,516,759,470,000 | null | UTF-8 | Lean | false | false | 22,257 | lean | /-
Copyright (c) 2016 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Leonardo de Moura
-/
prelude
import init.meta.tactic init.meta.attribute init.meta.constructor_tactic
import init.meta.relation_tactics init.meta.occurrences
import init.data.op... |
321cc91f128bd7fd388bd7a98c8665ee5a468c97 | 57c233acf9386e610d99ed20ef139c5f97504ba3 | /src/category_theory/category/Groupoid.lean | 45e17e5fdbc6f320bf4f1a4a65732723f26ccf45 | [
"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 | 3,728 | lean | /-
Copyright (c) 2019 Yury Kudryashov. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Yury Kudryashov
-/
import category_theory.single_obj
import category_theory.limits.shapes.products
import category_theory.pi.basic
import category_theory.limits.is_limit
/-!
# Catego... |
3c4c4f35dd17839ba1a82752839cc6368101dc9d | 94ec458bb9c7783744397f9a68d867bd7a765e18 | /src/adjoint.lean | 8dc48418c1f3fee6cd90bc567d0ad07d0e49947d | [] | no_license | myuon/lean-cate | b8fcfd7965a348155152b3fc7d5041b356721945 | 9e71e61c2a09d64b17ab3145ff6dde564387950a | refs/heads/master | 1,611,236,436,038 | 1,462,408,916,000 | 1,462,408,916,000 | 47,414,605 | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 3,070 | lean | import category
import construction
open category functor natrans
open eq eq.ops
open prod
structure adjoint {C D : category} (F : functor C D) (G : functor D C) :=
(adj_nat : Hom[D][F-;-] ⇒ Hom[C][-;G-])
(nat_iso : is_natural_iso adj_nat)
namespace adjoint
notation F `⊣` G := adjoint F G
definition adjuncti... |
d173c78e0c6d8922bb0d9e2f1c04a1ac19cff6cd | 74addaa0e41490cbaf2abd313a764c96df57b05d | /Mathlib/data/polynomial/derivative_auto.lean | e54dcf32ae524ecece8f7cd78453addf0525eefc | [] | 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,111 | lean | /-
Copyright (c) 2018 Chris Hughes. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Chris Hughes, Johannes Hölzl, Scott Morrison, Jens Wagemaker
-/
import Mathlib.PrePort
import Mathlib.Lean3Lib.init.default
import Mathlib.data.polynomial.eval
import Mathlib.PostPort
u... |
05774ecc283616e35cbf2f14e112d76172ce2212 | fa02ed5a3c9c0adee3c26887a16855e7841c668b | /src/number_theory/liouville/liouville_constant.lean | b83cccd69f2c3fbecb8a95a5dce322f4b9bd3ac5 | [
"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 | 8,850 | lean | /-
Copyright (c) 2020 Jujian Zhang. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Damiano Testa, Jujian Zhang
-/
import number_theory.liouville.basic
/-!
# Liouville constants
This file contains a construction of a family of Liouville numbers, indexed by a natural n... |
387880ae5a54bddd7e67cb50a2e9e252d6291ef4 | 367134ba5a65885e863bdc4507601606690974c1 | /src/tactic/slim_check.lean | 9fefe772b1497fa925f97e31b913ec642108e85e | [
"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 | 8,201 | lean | /-
Copyright (c) 2020 Simon Hudon. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Author: Simon Hudon
-/
import testing.slim_check.testable
import testing.slim_check.functions
import data.list.sort
/-!
## Finding counterexamples automatically using `slim_check`
A proposition... |
44b2dbfe952d3d7715d36caf2f0984f3ddcd02a1 | 6dc0c8ce7a76229dd81e73ed4474f15f88a9e294 | /tests/lean/run/patbug.lean | 93cdfadecd3e7de27861c827b35e7d9f1550565b | [
"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 | 201 | lean |
open Lean
def f : Name → Name
| n@(`foo.bla) => n
| _ => Name.anonymous
def tst : IO Unit := do
when (hash `foo.bla != hash (f `foo.bla)) $
throw $ IO.userError "bug"
IO.println "ok"
#eval tst
|
4fd3e6f74b046449e677fcb5b91c8d642c33009e | 5883d9218e6f144e20eee6ca1dab8529fa1a97c0 | /src/db/injection.lean | 55bf29f534882d5a663fe58be878cd68e7f9fd3b | [] | no_license | spl/alpha-conversion-is-easy | 0d035bc570e52a6345d4890e4d0c9e3f9b8126c1 | ed937fe85d8495daffd9412a5524c77b9fcda094 | refs/heads/master | 1,607,649,280,020 | 1,517,380,240,000 | 1,517,380,240,000 | 52,174,747 | 4 | 0 | null | 1,456,052,226,000 | 1,456,001,163,000 | Lean | UTF-8 | Lean | false | false | 7,135 | lean | /-
This file contains the injection of `db` into `exp`.
-/
import .type
import aeq
import data.fin
namespace acie -----------------------------------------------------------------
namespace db -------------------------------------------------------------------
variables {V : Type} [decidable_eq V] -- Type of varia... |
20aa2c6942968655c1d45605c9fb611ce4dde15c | 32025d5c2d6e33ad3b6dd8a3c91e1e838066a7f7 | /tests/lean/run/deriv.lean | 9e05a71a0d0936b880a916b2c996d42f7d4b620f | [
"Apache-2.0"
] | permissive | walterhu1015/lean4 | b2c71b688975177402758924eaa513475ed6ce72 | 2214d81e84646a905d0b20b032c89caf89c737ad | refs/heads/master | 1,671,342,096,906 | 1,599,695,985,000 | 1,599,695,985,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 2,734 | lean | /- Benchmark for new code generator -/
import Init.System.IO
inductive Expr
| Val : Int → Expr
| Var : String → Expr
| Add : Expr → Expr → Expr
| Mul : Expr → Expr → Expr
| Pow : Expr → Expr → Expr
| Ln : Expr → Expr
open Expr
unsafe def pown : Int → Int → Int
| a, 0 => 1
| a, 1 => a
| a, n =>
let b := pown a (n ... |
b5ca4b519d8b98d892a5825828e7504d44cea2f1 | cf39355caa609c0f33405126beee2739aa3cb77e | /tests/lean/run/meta_tac1.lean | 2207e8f60fb77cf0e0bbbbddabfa70aef1ace359 | [
"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 | 641 | lean | set_option pp.all true
open tactic list
set_option pp.goal.compact true
set_option pp.binder_types true
example : ∀ (p : Prop), p → p :=
by do env ← get_env,
trace "testing",
intros,
assumption
example : ∀ (p : Prop), p → p → p :=
by do d ← get_decl $ `nat.add,
trace $ declaration.type d,
... |
e98751ea89078b8f580e4d3a7b0d011a1a80d4d9 | dd0f5513e11c52db157d2fcc8456d9401a6cd9da | /12_Axioms.org.31.lean | 4ce7a9754117279399789cdb98b31d0d76614ef3 | [] | 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 | 349 | lean | import standard
import data.encodable
open encodable subtype
-- BEGIN
check @choose
-- choose : Π {A : Type} {p : A → Prop} [c : encodable A] [d : decidable_pred p], (∃ (x : A), p x) → A
check @choose_spec
-- choose_spec : ∀ {A : Type} {p : A → Prop} [c : encodable A] [d : decidable_pred p] (ex : ∃ (x : A), p x), p (ch... |
3468905ff48cf02990ed2515a8b6a70d618726f2 | 8cb37a089cdb4af3af9d8bf1002b417e407a8e9e | /library/init/wf.lean | eb77e4bc7712e595964c7d351a78d334264c3a78 | [
"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,241 | lean | /-
Copyright (c) 2014 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.nat.basic init.data.prod
universes u v
inductive acc {α : Sort u} (r : α → α → Prop) : α → Prop
| intro (x : α) (h : ∀ y, r y x → ... |
08f346ecfc8700e0d58a087eb298135206ed2ccd | 36c7a18fd72e5b57229bd8ba36493daf536a19ce | /tests/lean/hott/notation_with_nested_tactics.hlean | 97967a67b51f2ea9f7954a56a69fb0e8752aec8f | [
"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 | 345 | hlean | open is_equiv
constants (A B : Type) (f : A → B)
definition H : is_equiv f := sorry
definition loop [instance] [h : is_equiv f] : is_equiv f :=
h
notation `noinstances` t:max := by+ with_options [elaborator.ignore_instances true] (exact t)
example (a : A) : let H' : is_equiv f := H in @(inv f) H' (f a) = a :=
noin... |
7118cc033d83c986cc52b5a619ed94e2147c9761 | bb31430994044506fa42fd667e2d556327e18dfe | /src/data/int/char_zero.lean | 8a6cb00890c84a196223b46b44b42a69c2cec186 | [
"Apache-2.0"
] | permissive | sgouezel/mathlib | 0cb4e5335a2ba189fa7af96d83a377f83270e503 | 00638177efd1b2534fc5269363ebf42a7871df9a | refs/heads/master | 1,674,527,483,042 | 1,673,665,568,000 | 1,673,665,568,000 | 119,598,202 | 0 | 0 | null | 1,517,348,647,000 | 1,517,348,646,000 | null | UTF-8 | Lean | false | false | 1,655 | lean | /-
Copyright (c) 2017 Mario Carneiro. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Mario Carneiro
-/
import data.int.cast.field
/-!
# Injectivity of `int.cast` into characteristic zero rings and fields.
> THIS FILE IS SYNCHRONIZED WITH MATHLIB4.
> Any changes to th... |
dc23662d69fd49d302abd4da7f0e8555e9f8d8b7 | f4bff2062c030df03d65e8b69c88f79b63a359d8 | /src/game/functions/classicContinDef.lean | 398a9acd7dc1c8f9e59ba9e877911ad609d96dff | [
"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 | 2,301 | lean | import data.real.basic
open function
open real
/-
Classic eps-delta definition of continuity.
Use it to prove continuity at one point for a simple function.
To be proved equivalent to topological definition in topology world.
Work in progress.
-/
notation `|` x `|` := abs x
def continuous_at_x (f : ℝ → ℝ) (x : ℝ) :... |
7ffaef603116160ff6bd88563b6d3e76bbd83461 | 74addaa0e41490cbaf2abd313a764c96df57b05d | /Mathlib/topology/tactic_auto.lean | 3d8889c4fb73bde50e945343b4afac932e75924f | [] | 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,208 | 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... |
5769f0952d22ffb2feed3ab5ce963d97a12cc625 | 2cf781335f4a6706b7452ab07ce323201e2e101f | /lean/deps/galois_stdlib/src/galois/data/buffer.lean | cfe01748a2de96e1f3f8bd952c78203247a83f43 | [
"Apache-2.0"
] | permissive | simonjwinwood/reopt-vcg | 697cdd5e68366b5aa3298845eebc34fc97ccfbe2 | 6aca24e759bff4f2230bb58270bac6746c13665e | refs/heads/master | 1,586,353,878,347 | 1,549,667,148,000 | 1,549,667,148,000 | 159,409,828 | 0 | 0 | null | 1,543,358,444,000 | 1,543,358,444,000 | null | UTF-8 | Lean | false | false | 11,953 | lean | /-
Provides a decidable_eq instance for buffer.
-/
import data.buffer.basic -- from mathlib
import galois.data.array
import galois.data.char
import galois.data.nat
namespace buffer
@[simp]
theorem size_append_array {α} {n : nat} (nz : n > 0) (x : buffer α) (y : array n α) (j : nat) (j_lt : j < n)
: buffer.size (buf... |
ae09d20fd3986dc41c7bf865f8a70ec6b7e66777 | 6432ea7a083ff6ba21ea17af9ee47b9c371760f7 | /src/Lean/Compiler/LCNF/Renaming.lean | a72181413d482f11627baf79a99740a52fa71a17 | [
"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 | 2,147 | 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.CompilerM
namespace Lean.Compiler.LCNF
/--
A mapping from free variable id to binder name.
-/
abbrev Renaming := FVarIdMap Name
... |
286c72a7215a86acf5c6fe743b215f28ed257b75 | 57aec6ee746bc7e3a3dd5e767e53bd95beb82f6d | /tests/lean/run/subst.lean | 45c2e1b31036f497cfb9cfcde26f695cce640b12 | [
"Apache-2.0"
] | permissive | collares/lean4 | 861a9269c4592bce49b71059e232ff0bfe4594cc | 52a4f535d853a2c7c7eea5fee8a4fa04c682c1ee | refs/heads/master | 1,691,419,031,324 | 1,618,678,138,000 | 1,618,678,138,000 | 358,989,750 | 0 | 0 | Apache-2.0 | 1,618,696,333,000 | 1,618,696,333,000 | null | UTF-8 | Lean | false | false | 2,263 | lean | universes u
def f1 (n m : Nat) (x : Fin n) (h : n = m) : Fin m :=
h ▸ x
def f2 (n m : Nat) (x : Fin n) (h : m = n) : Fin m :=
h ▸ x
theorem ex1 {α : Sort u} {a b c : α} (h₁ : a = b) (h₂ : b = c) : a = c :=
h₂ ▸ h₁
theorem ex2 {α : Sort u} {a b : α} (h : a = b) : b = a :=
h ▸ rfl
theorem ex3 {α : Sort u} {a b c : α... |
b31a6abcada5f37bee38578becbca13f8fc79658 | d9ed0fce1c218297bcba93e046cb4e79c83c3af8 | /library/init/meta/interactive.lean | ba15f6e42abcdce78c44362ec49d9ac65ec7c1f1 | [
"Apache-2.0"
] | permissive | leodemoura/lean_clone | 005c63aa892a6492f2d4741ee3c2cb07a6be9d7f | cc077554b584d39bab55c360bc12a6fe7957afe6 | refs/heads/master | 1,610,506,475,484 | 1,482,348,354,000 | 1,482,348,543,000 | 77,091,586 | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 15,312 | lean | /-
Copyright (c) 2016 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Leonardo de Moura
-/
prelude
import init.meta.tactic init.meta.rewrite_tactic init.meta.simp_tactic
namespace tactic
namespace interactive
namespace types
/- The parser treats ... |
818e078923f531a17d5ea491fbf369314afde4e9 | 88fb7558b0636ec6b181f2a548ac11ad3919f8a5 | /library/init/meta/transfer.lean | 68d5b0e53a69e2729c3921180099dc04bf026a07 | [
"Apache-2.0"
] | permissive | moritayasuaki/lean | 9f666c323cb6fa1f31ac597d777914aed41e3b7a | ae96ebf6ee953088c235ff7ae0e8c95066ba8001 | refs/heads/master | 1,611,135,440,814 | 1,493,852,869,000 | 1,493,852,869,000 | 90,269,903 | 0 | 0 | null | 1,493,906,291,000 | 1,493,906,291,000 | null | UTF-8 | Lean | false | false | 7,601 | lean | /-
Copyright (c) 2017 Johannes Hölzl. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Author: Johannes Hölzl (CMU)
-/
prelude
import init.meta.tactic init.meta.match_tactic init.relator init.meta.mk_dec_eq_instance
import init.data.list.instances
namespace transfer
open tactic ... |
a6b31ae4b2d5b4a2e159888e35a767b700dd6c6e | 6432ea7a083ff6ba21ea17af9ee47b9c371760f7 | /tests/lean/run/lcnf3.lean | 39082251c9c7bac7cfe7254db1502f40d0903f65 | [
"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 | 393 | lean | import Lean
set_option compiler.checkTypes true
def f1 (x : Option Nat) (y : Nat) : Nat :=
let z := some y
if let (some x, some y) := (x, z) then
x + y
else
0
inductive Ty where
| c1 | c2 | c3 | c4 | c5
def f2 (a b : Ty) (n : Nat) : Nat :=
let x := match a with
| .c1 => 10 * n
| _ => 20 * ... |
3df58176d2d6e54a5d33b65ff3dee6db2c754ca7 | d1a52c3f208fa42c41df8278c3d280f075eb020c | /src/Init/Data/Format/Basic.lean | 3fc386e58c1d2c2c4b2db95f5185fad2067623e5 | [
"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 | 8,669 | lean | /-
Copyright (c) 2018 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Author: Leonardo de Moura
-/
prelude
import Init.Control.State
import Init.Data.Int.Basic
import Init.Data.String.Basic
namespace Std
inductive Format.FlattenBehavior where
| allOrNo... |
bcf7aae763105af229f710c04d0873feaef4bf79 | d1a52c3f208fa42c41df8278c3d280f075eb020c | /src/Init/Fix.lean | 6d219c7cb70aba1b46838b4766309fc950affb0d | [
"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 | 5,912 | 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.UInt
universe u
def bfix1 {α β : Type u} (base : α → β) (rec : (α → β) → α → β) : Nat → α → β
| 0, a => base a
| n+1, a => r... |
75b75e90a57c2e11a05ac95a421dccd2a3dcae3c | b7f22e51856f4989b970961f794f1c435f9b8f78 | /tests/lean/run/unfold_tac_bug1.lean | 91df10d586a388153334248250788fa0ec48315e | [
"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,171 | lean | /-
Copyright (c) 2015 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Author: Leonardo de Moura
Show that tail recursive fib is equal to standard one.
-/
import data.nat
open nat
definition fib : nat → nat
| 0 := 1
| 1 := 1
| (n+2) := fib (n+1) +... |
2d7d7105294135f0cb51a53d91711778337f9c46 | 4727251e0cd73359b15b664c3170e5d754078599 | /counterexamples/cyclotomic_105.lean | 60c3b5b7e56e8cae4da6b44ffe16583b26123793 | [
"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 | 3,962 | lean | /-
Copyright (c) 2021 Riccardo Brasca. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Riccardo Brasca
-/
import ring_theory.polynomial.cyclotomic.basic
/-!
# Not all coefficients of cyclotomic polynomials are -1, 0, or 1
We show that not all coefficients of cyclotom... |
107d8d23cd458a4f369b1c1fec02b4665324a23f | bb31430994044506fa42fd667e2d556327e18dfe | /src/algebra/algebra/bilinear.lean | 9a89ab27b3907d83828d05b13df0e1470b504b4f | [
"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 | 6,340 | lean | /-
Copyright (c) 2018 Kenny Lau. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Kenny Lau, Yury Kudryashov
-/
import algebra.algebra.basic
import algebra.hom.iterate
import algebra.hom.non_unital_alg
import linear_algebra.tensor_product
/-!
# Facts about algebras invo... |
1b7e505edb103b35ff95dab0c4b5a20cc64d3c8d | 6432ea7a083ff6ba21ea17af9ee47b9c371760f7 | /src/Lean/Compiler/LCNF/Simp/Basic.lean | d3a6b11f6dc7052d4484e2bb31e7cf36bcea4015 | [
"Apache-2.0",
"LLVM-exception",
"NCSA",
"LGPL-3.0-only",
"LicenseRef-scancode-inner-net-2.0",
"BSD-3-Clause",
"LGPL-2.0-or-later",
"Spencer-94",
"LGPL-2.1-or-later",
"HPND",
"LicenseRef-scancode-pcre",
"ISC",
"LGPL-2.1-only",
"LicenseRef-scancode-other-permissive",
"SunPro",
"CMU-Mach"... | permissive | leanprover/lean4 | 4bdf9790294964627eb9be79f5e8f6157780b4cc | f1f9dc0f2f531af3312398999d8b8303fa5f096b | refs/heads/master | 1,693,360,665,786 | 1,693,350,868,000 | 1,693,350,868,000 | 129,571,436 | 2,827 | 311 | Apache-2.0 | 1,694,716,156,000 | 1,523,760,560,000 | Lean | UTF-8 | Lean | false | false | 1,161 | 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.Meta.Instances
import Lean.Compiler.InlineAttrs
import Lean.Compiler.Specialize
import Lean.Compiler.LCNF.CompilerM
namespace Lean.Compiler.LCN... |
a6415fcd4c25032bfa16fbb44d74391bba42f946 | 22e97a5d648fc451e25a06c668dc03ac7ed7bc25 | /src/tactic/lint/basic.lean | f0afe011bec6ae99d6fb34d6c1e6d98961f8f9e8 | [
"Apache-2.0"
] | permissive | keeferrowan/mathlib | f2818da875dbc7780830d09bd4c526b0764a4e50 | aad2dfc40e8e6a7e258287a7c1580318e865817e | refs/heads/master | 1,661,736,426,952 | 1,590,438,032,000 | 1,590,438,032,000 | 266,892,663 | 0 | 0 | Apache-2.0 | 1,590,445,835,000 | 1,590,445,835,000 | null | UTF-8 | Lean | false | false | 4,212 | lean | /-
Copyright (c) 2020 Floris van Doorn. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Floris van Doorn, Robert Y. Lewis, Gabriel Ebner
-/
import tactic.core
/-!
# Basic linter types and attributes
This file defines the basic types and attributes used by the linting
... |
fb2e191736ff888734c5054228bac36d37ab3a62 | 947fa6c38e48771ae886239b4edce6db6e18d0fb | /src/topology/compact_open.lean | dc8278b0d546ee2ad21630a02c90ed165021b9cb | [
"Apache-2.0"
] | permissive | ramonfmir/mathlib | c5dc8b33155473fab97c38bd3aa6723dc289beaa | 14c52e990c17f5a00c0cc9e09847af16fabbed25 | refs/heads/master | 1,661,979,343,526 | 1,660,830,384,000 | 1,660,830,384,000 | 182,072,989 | 0 | 0 | null | 1,555,585,876,000 | 1,555,585,876,000 | null | UTF-8 | Lean | false | false | 17,873 | lean | /-
Copyright (c) 2018 Reid Barton. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Reid Barton
-/
import tactic.tidy
import topology.continuous_function.basic
import topology.homeomorph
import topology.subset_properties
import topology.maps
/-!
# The compact-open topol... |
f165b3934c7bb74d53bb6e0e5bc4dc9c833c758b | 4fa161becb8ce7378a709f5992a594764699e268 | /src/data/real/cau_seq.lean | 90eccb51475379f81b603c7f8f166b1ec8fd3140 | [
"Apache-2.0"
] | permissive | laughinggas/mathlib | e4aa4565ae34e46e834434284cb26bd9d67bc373 | 86dcd5cda7a5017c8b3c8876c89a510a19d49aad | refs/heads/master | 1,669,496,232,688 | 1,592,831,995,000 | 1,592,831,995,000 | 274,155,979 | 0 | 0 | Apache-2.0 | 1,592,835,190,000 | 1,592,835,189,000 | null | UTF-8 | Lean | false | false | 25,977 | 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 algebra.big_operators
/-!
# Cauchy sequences
A basic theory of Cauchy sequences, used in the construction of the reals and p-adic numbers. Where
applicable, ... |
824ba1e12fe4cf0979607421ac23e1727ad5f843 | 783d2515a9eae0c5f51daeebdc1bc2cd9a621fd0 | /src/game/world5/level1.lean | 385f02513d5366621a861f78452a1a6ec291d56c | [
"Apache-2.0"
] | permissive | sgouezel/natural_number_game | 5e3a5111dead32119938c085a6e98889006f0fc1 | 100ebb438eccb853791b18f164304f64018661a9 | refs/heads/master | 1,663,860,030,562 | 1,591,432,074,000 | 1,591,432,074,000 | 269,910,198 | 1 | 0 | Apache-2.0 | 1,591,430,040,000 | 1,591,430,039,000 | null | UTF-8 | Lean | false | false | 4,397 | lean | /-
# Function world.
If you have beaten Addition World, then you have got
quite good at manipulating equalities in Lean using the `rw` tactic.
But there are plenty of levels later on which will require you
to manipulate functions, and `rw` is not the tool for you here.
To manipulate functions effectively, we need ... |
9537f3bb73ab9c48049d35aa22ed0f6094b798ae | d406927ab5617694ec9ea7001f101b7c9e3d9702 | /src/topology/algebra/uniform_group.lean | 802b4c71376a999eed0cfa42f4c61bb4acd0fc38 | [
"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 | 42,067 | 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 topology.uniform_space.uniform_convergence
import topology.uniform_space.uniform_embedding
import topology.uniform_space.complete_separated
imp... |
32a1a908528dcd943c5126b34fcb6b35f2217da1 | 4727251e0cd73359b15b664c3170e5d754078599 | /src/order/partial_sups.lean | f059d1997d6d5ea28fd9b185ef67aa92af6659f4 | [
"Apache-2.0"
] | permissive | Vierkantor/mathlib | 0ea59ac32a3a43c93c44d70f441c4ee810ccceca | 83bc3b9ce9b13910b57bda6b56222495ebd31c2f | refs/heads/master | 1,658,323,012,449 | 1,652,256,003,000 | 1,652,256,003,000 | 209,296,341 | 0 | 1 | Apache-2.0 | 1,568,807,655,000 | 1,568,807,655,000 | null | UTF-8 | Lean | false | false | 5,783 | 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 data.finset.lattice
import data.set.pairwise
import order.hom.basic
/-!
# The monotone sequence of partial supremums of a sequence
We define `partial_sups : ... |
0bd3e973f3fa2968db3c81d09815817f0151e442 | d1a52c3f208fa42c41df8278c3d280f075eb020c | /stage0/src/Lean/Meta/Tactic/Assumption.lean | 746f2762d2e327c6968c4461476855ad4bf086b9 | [
"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,014 | lean | /-
Copyright (c) 2019 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Leonardo de Moura
-/
import Lean.Meta.Tactic.Util
namespace Lean.Meta
/-- Return a local declaration whose type is definitionally equal to `type`. -/
def findLocalDeclWithType... |
dbce5eb28bf627c7e08f44664b5ac5dbca946569 | 80cc5bf14c8ea85ff340d1d747a127dcadeb966f | /src/linear_algebra/quadratic_form.lean | bce75c92fa54b9dd281bcbdcd838a4be1d1c2f67 | [
"Apache-2.0"
] | permissive | lacker/mathlib | f2439c743c4f8eb413ec589430c82d0f73b2d539 | ddf7563ac69d42cfa4a1bfe41db1fed521bd795f | refs/heads/master | 1,671,948,326,773 | 1,601,479,268,000 | 1,601,479,268,000 | 298,686,743 | 0 | 0 | Apache-2.0 | 1,601,070,794,000 | 1,601,070,794,000 | null | UTF-8 | Lean | false | false | 20,466 | lean | /-
Copyright (c) 2020 Anne Baanen. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Author: Anne Baanen
-/
import algebra.invertible
import linear_algebra.bilinear_form
import linear_algebra.determinant
import linear_algebra.special_linear_group
/-!
# Quadratic forms
This file... |
a49e08d84937d78df8ce47c090982dd12fd3b0d3 | 8e31b9e0d8cec76b5aa1e60a240bbd557d01047c | /scratch/old_tableau.lean | 1b20ef6e914f78db815554931d99bcb50d60c514 | [] | no_license | ChrisHughes24/LP | 7bdd62cb648461c67246457f3ddcb9518226dd49 | e3ed64c2d1f642696104584e74ae7226d8e916de | refs/heads/master | 1,685,642,642,858 | 1,578,070,602,000 | 1,578,070,602,000 | 195,268,102 | 4 | 3 | null | 1,569,229,518,000 | 1,562,255,287,000 | Lean | UTF-8 | Lean | false | false | 27,054 | lean | import data.matrix.pequiv data.rat.basic tactic.fin_cases data.list.min_max partition
open matrix fintype finset function pequiv
local notation `rvec`:2000 n := matrix (fin 1) (fin n) ℚ
local notation `cvec`:2000 m := matrix (fin m) (fin 1) ℚ
local infix ` ⬝ `:70 := matrix.mul
local postfix `ᵀ` : 1500 := transpose
s... |
34af323cc01ea0a5741674b919c4aada87311c04 | 367134ba5a65885e863bdc4507601606690974c1 | /src/data/rat/basic.lean | 6b96451ddbd96a4a742fa29e7d78e99c50b3c61f | [
"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 | 28,234 | lean | /-
Copyright (c) 2019 Johannes Hölzl. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Johannes Hölzl, Mario Carneiro
-/
import data.equiv.encodable.basic
import algebra.euclidean_domain
import data.nat.gcd
import data.int.cast
/-!
# Basics for the Rational Numbers
## ... |
15e44d20de6fc368bc31f08d0b46227c2ad163be | acc85b4be2c618b11fc7cb3005521ae6858a8d07 | /data/option.lean | 442995558a291b03a387e4742f9f95173350a35c | [
"Apache-2.0"
] | permissive | linpingchuan/mathlib | d49990b236574df2a45d9919ba43c923f693d341 | 5ad8020f67eb13896a41cc7691d072c9331b1f76 | refs/heads/master | 1,626,019,377,808 | 1,508,048,784,000 | 1,508,048,784,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 1,131 | lean | /-
Copyright (c) 2017 Mario Carneiro. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Mario Carneiro
-/
namespace option
instance has_mem {α : Type*} : has_mem α (option α) := ⟨λ a b, b = some a⟩
@[simp] lemma mem_def {α : Type*} {a : α} {b : option α} : a ∈ b ↔ b = ... |
b00365eb714d8b75e6a4ab3a16602d099fdedb3f | 8c02fed42525b65813b55c064afe2484758d6d09 | /src/spec/openprog.lean | 133eeef585072338941c95dc0750e6a1059ca627 | [
"LicenseRef-scancode-generic-cla",
"MIT"
] | permissive | microsoft/AliveInLean | 3eac351a34154efedd3ffc4fe2fa4ec01b219e0d | 4b739dd6e4266b26a045613849df221374119871 | refs/heads/master | 1,691,419,737,939 | 1,689,365,567,000 | 1,689,365,568,000 | 131,156,103 | 23 | 18 | NOASSERTION | 1,660,342,040,000 | 1,524,747,538,000 | Lean | UTF-8 | Lean | false | false | 21,690 | lean | -- Copyright (c) Microsoft Corporation. All rights reserved.
-- Licensed under the MIT license.
import ..smtexpr
import ..smtcompile
import ..bitvector
import .spec
import .lemmas
import .irstate
import .freevar
import .equiv
import smt2.syntax
import system.io
import init.meta.tactic
import init.meta.interactive
nam... |
dfe896c00e64d217cd14cbc275a3744a639100b7 | b7f22e51856f4989b970961f794f1c435f9b8f78 | /library/theories/commutative_algebra/ideal.lean | b1755fc5828811d77964a762f1476401bf8ee45f | [
"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 | 26,046 | lean | /-
Copyright (c) 2016 Marcos Mazari. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Ideals and quotient rings.
Authors: Marcos Mazari, Jeremy Avigad
-/
import data.set algebra.ring theories.move
open function eq.ops algebra set classical
/- TODO: move -/
abbreviation contrap... |
46278b0a7d1ce5690d4784fb7c1db49aca8b8dc8 | fa02ed5a3c9c0adee3c26887a16855e7841c668b | /test/apply_fun.lean | cd5442c44782f704ee825b582a204f3a2d7380f2 | [
"Apache-2.0"
] | permissive | jjgarzella/mathlib | 96a345378c4e0bf26cf604aed84f90329e4896a2 | 395d8716c3ad03747059d482090e2bb97db612c8 | refs/heads/master | 1,686,480,124,379 | 1,625,163,323,000 | 1,625,163,323,000 | 281,190,421 | 2 | 0 | Apache-2.0 | 1,595,268,170,000 | 1,595,268,169,000 | null | UTF-8 | Lean | false | false | 2,290 | lean | import tactic.apply_fun
import data.matrix.basic
open function
example (X Y Z : Type) (f : X → Y) (g : Y → Z) (H : injective $ g ∘ f) :
injective f :=
begin
intros x x' h,
apply_fun g at h,
exact H h
end
example (f : ℕ → ℕ) (a b : ℕ) (monof : monotone f) (h : a ≤ b) : f a ≤ f b :=
begin
apply_fun f at h,
... |
3d36706e41e6120a4540e2169879fa1a7a9b7c1a | 9028d228ac200bbefe3a711342514dd4e4458bff | /src/data/polynomial/field_division.lean | 9dcf370525e68da5bc6f35a540b26e5573d7ea75 | [
"Apache-2.0"
] | permissive | mcncm/mathlib | 8d25099344d9d2bee62822cb9ed43aa3e09fa05e | fde3d78cadeec5ef827b16ae55664ef115e66f57 | refs/heads/master | 1,672,743,316,277 | 1,602,618,514,000 | 1,602,618,514,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 16,370 | lean | /-
Copyright (c) 2018 Chris Hughes. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Chris Hughes, Johannes Hölzl, Scott Morrison, Jens Wagemaker
-/
import data.polynomial.ring_division
import data.polynomial.derivative
import algebra.gcd_monoid
/-!
# Theory of univaria... |
f3982493be900eb509b433bb8ae0d7dfaa2bfbb0 | b7f22e51856f4989b970961f794f1c435f9b8f78 | /tests/lean/run/alias1.lean | 26e4b9705ca36f12007f3e5784eb9f1d1f7713ea | [
"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 | 795 | lean | import logic
namespace N1
constant num : Type.{1}
constant foo : num → num → num
end N1
namespace N2
constant val : Type.{1}
constant foo : val → val → val
end N2
open N1
open N2
constants a b : num
constants x y : val
check foo a b
check foo x y
constant f : num → val
attribute f [coercion]
check foo a ... |
87afcbea61b977f75c3c022e63b6ec1d0c5f6ef4 | b7f22e51856f4989b970961f794f1c435f9b8f78 | /tests/lean/run/coe6.lean | 1247197ce24191b350f0f3f6d3b39b881f77fa8d | [
"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 | 363 | lean | import data.unit
open unit
namespace play
constant int : Type.{1}
constant nat : Type.{1}
constant izero : int
constant nzero : nat
constant isucc : int → int
constant nsucc : nat → nat
definition f [coercion] (a : unit) : int := izero
definition g [coercion] (a : unit) : nat := nzero
set_option pp.coercions true
chec... |
f8d8c2b02ca405d48d615249574f9b79ac03b7ab | fa02ed5a3c9c0adee3c26887a16855e7841c668b | /src/ring_theory/witt_vector/is_poly.lean | 634a9cf93ba03d3edd9f3a2f7f63bb0dc3300a86 | [
"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,408 | lean | /-
Copyright (c) 2020 Johan Commelin. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Johan Commelin, Robert Y. Lewis
-/
import algebra.ring.ulift
import ring_theory.witt_vector.basic
import data.mv_polynomial.funext
/-!
# The `is_poly` predicate
`witt_vector.is_poly... |
912bea8e8a614051ff43007b05edc0f9528795b0 | 367134ba5a65885e863bdc4507601606690974c1 | /archive/100-theorems-list/82_cubing_a_cube.lean | 119dc72e0f0154f81996b218809caff6f1f9acc8 | [
"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 | 23,608 | lean | /-
Copyright (c) 2019 Floris van Doorn. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Author: Floris van Doorn
-/
import data.real.basic
import data.set.disjointed
import data.set.intervals
import set_theory.cardinal
/-!
Proof that a cube (in dimension n ≥ 3) cannot be cubed:
... |
d9920f0fbf9aa9a860db2f05623a19bdb3936cc1 | 5ae26df177f810c5006841e9c73dc56e01b978d7 | /src/category_theory/concrete_category.lean | cccb780033cc4d89c63803b960cb2a931eb86c7d | [
"Apache-2.0"
] | permissive | ChrisHughes24/mathlib | 98322577c460bc6b1fe5c21f42ce33ad1c3e5558 | a2a867e827c2a6702beb9efc2b9282bd801d5f9a | refs/heads/master | 1,583,848,251,477 | 1,565,164,247,000 | 1,565,164,247,000 | 129,409,993 | 0 | 1 | Apache-2.0 | 1,565,164,817,000 | 1,523,628,059,000 | Lean | UTF-8 | Lean | false | false | 3,566 | lean | /-
Copyright (c) 2018 Scott Morrison. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Scott Morrison, Johannes Hölzl, Reid Barton, Sean Leather
Bundled type and structure.
-/
import category_theory.functor
import category_theory.types
universes u v
namespace category... |
28306ce498d59dff3cfb9a0c5217c2cd1b52a224 | 57c233acf9386e610d99ed20ef139c5f97504ba3 | /test/semilinear.lean | 7cb205b93b3cdcbb64ea04174a14fc4a77f690d5 | [
"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 | 1,900 | lean | /-
Copyright (c) 2021 Frédéric Dupuis. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Frédéric Dupuis, Heather Macbeth
-/
import data.equiv.module
import data.real.basic
/-!
# Test file for conjugate linear maps
The implementation of conjugate-linear maps in mathlib ... |
fdab168a84cb489af566aa581d55e6c67e9df461 | d406927ab5617694ec9ea7001f101b7c9e3d9702 | /src/linear_algebra/free_module/pid.lean | 32708f36c3b947c6634768026150eee192b76eed | [
"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,491 | lean | /-
Copyright (c) 2020 Anne Baanen. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Anne Baanen
-/
import linear_algebra.dimension
import ring_theory.principal_ideal_domain
import ring_theory.finiteness
/-! # Free modules over PID
A free `R`-module `M` is a module wit... |
058e5dd7a4cbee61a11de77e2cf0f90d740488d7 | 74addaa0e41490cbaf2abd313a764c96df57b05d | /Mathlib/ring_theory/valuation/integral_auto.lean | dcd06c8d9f31b15965ab0ae1130327c6fe044a43 | [] | 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,070 | lean | /-
Copyright (c) 2020 Kenny Lau. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Kenny Lau
-/
import Mathlib.PrePort
import Mathlib.Lean3Lib.init.default
import Mathlib.ring_theory.integral_closure
import Mathlib.ring_theory.valuation.integers
import Mathlib.PostPort
u... |
e25d203dbb8761dc6fa7149e6da144e74827fe49 | 74addaa0e41490cbaf2abd313a764c96df57b05d | /Mathlib/data/sigma/default.lean | 5bd32fffd003c9da7be1299e6c4bda717a030a82 | [] | 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 | 136 | lean | import Mathlib.PrePort
import Mathlib.Lean3Lib.init.default
import Mathlib.data.sigma.basic
import Mathlib.PostPort
namespace Mathlib
|
a48c9c7f8661ef4cfa2773805d560b60b08ddc90 | caa1512363b76923d0e9cdb716122a5c26c3c6bc | /src/NN.lean | 12b6dbe58e7894ce2b2a20efa19f6efd5f110cf9 | [] | no_license | apurvanakade/cvx | deb20e425ce478159a98e1ffc0d37f9c88a89280 | b47784831339df5a3e45f5cddd84edc545f95808 | refs/heads/master | 1,687,403,288,536 | 1,555,930,740,000 | 1,555,930,740,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 8,538 | lean | import data.rat tactic.norm_num .misc .string
universes u v
variables {α : Type}
def N (α : Type) : Type := nat → α
def NN (α : Type) : Type := nat → nat → α
def N.eq (n : nat) (a b : N α) : Prop :=
∀ j < n, a j = b j
def NN.eq (m n : nat) (A B : NN α) : Prop :=
∀ i < m, ∀ j < n, A i j = B i j
def NN.mul_au... |
d35a9e55777ea157fd3dadef78ab18014b9f3f7a | aa3f8992ef7806974bc1ffd468baa0c79f4d6643 | /tests/lean/run/e7.lean | 13310fd8c6fc21d74add98e731c18bb4478f608a | [
"Apache-2.0"
] | permissive | codyroux/lean | 7f8dff750722c5382bdd0a9a9275dc4bb2c58dd3 | 0cca265db19f7296531e339192e9b9bae4a31f8b | refs/heads/master | 1,610,909,964,159 | 1,407,084,399,000 | 1,416,857,075,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 718 | lean | precedence `+`:65
namespace nat
constant nat : Type.{1}
constant add : nat → nat → nat
infixl + := add
end nat
namespace int
open nat (nat)
constant int : Type.{1}
constant add : int → int → int
infixl + := add
constant of_nat : nat → int
coercion of_nat
end int
open nat
open int
constants n m : n... |
f058043ff84681acd9e7765236a6e388d405b46b | 618003631150032a5676f229d13a079ac875ff77 | /src/topology/metric_space/basic.lean | f9811dd5d9ad7bf3acad324ef61f229f6a08ab40 | [
"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 | 72,963 | lean | /-
Copyright (c) 2015, 2017 Jeremy Avigad. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Metric spaces.
Authors: Jeremy Avigad, Robert Y. Lewis, Johannes Hölzl, Mario Carneiro, Sébastien Gouëzel
Many definitions and theorems expected on metric spaces are already introduced o... |
eacea38cf88ae8ee9be3e39f4381e43ed18c46d4 | d0f9af2b0ace5ce352570d61b09019c8ef4a3b96 | /notes/2020.02.06-product_type_syntax.lean | dc2adbf6caf418a8fa4c496a515c4f3ed7a30959 | [] | no_license | jngo13/Discrete-Mathematics | 8671540ef2da7c75915d32332dd20c02f001474e | bf674a866e61f60e6e6d128df85fa73819091787 | refs/heads/master | 1,675,615,657,924 | 1,609,142,011,000 | 1,609,142,011,000 | 267,190,341 | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 1,582 | lean | /-
We've seen how to write simple product types
and associated funtions.
-/
namespace ex1
inductive prod_nat_nat : Type
| mk : ℕ → ℕ → prod_nat_nat
def fst (p : prod_nat_nat) : ℕ :=
match p with
| prod_nat_nat.mk x y := x
end
def sec (p : prod_nat_nat) : ℕ :=
match p with
| prod_nat_na... |
dbff0ede94ab5eb44c6dded3ad1264f5a06f9a60 | 63abd62053d479eae5abf4951554e1064a4c45b4 | /src/category_theory/sites/pretopology.lean | 95016d715c4f014e3e307c92530f582a4608b46f | [
"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 | 9,168 | 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.sites.grothendieck
/-!
# Grothendieck pretopologies
Definition and lemmas about Grothendieck pretopologies.
A Grothendieck pretopology for a cat... |
a8c7a7d9922fb40be183cfb653fc25cf918974be | b2fe74b11b57d362c13326bc5651244f111fa6f4 | /src/order/basic.lean | aeda3093a915085e5c354baf7a5526f72ce89457 | [
"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 | 22,772 | lean | /-
Copyright (c) 2014 Jeremy Avigad. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Jeremy Avigad, Mario Carneiro
-/
import data.subtype
import data.prod
open function
/-!
# Basic definitions about `≤` and `<`
## Definitions
### Predicates on functions
- `monotone... |
609887c3e000155d19a9ef315f834ee70225edad | 08bd4ba4ca87dba1f09d2c96a26f5d65da81f4b4 | /src/Lean/Parser/Do.lean | 246d528f2d4e729da22bcdf67160ad4b51cf714b | [
"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",
"Apache-2.0",
"LicenseRef-scancode-other-permissive",
"SunPro",
"CMU-Mach"... | permissive | gebner/lean4 | d51c4922640a52a6f7426536ea669ef18a1d9af5 | 8cd9ce06843c9d42d6d6dc43d3e81e3b49dfc20f | refs/heads/master | 1,685,732,780,391 | 1,672,962,627,000 | 1,673,459,398,000 | 373,307,283 | 0 | 0 | Apache-2.0 | 1,691,316,730,000 | 1,622,669,271,000 | Lean | UTF-8 | Lean | false | false | 9,061 | 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.Parser.Term
namespace Lean
namespace Parser
builtin_initialize registerBuiltinParserAttribute `builtin_doElem_parser ``Category.doElem
builtin... |
29a678cd335c13a3c3aa5bc8bb2f04fe9719a2e0 | 9dc8cecdf3c4634764a18254e94d43da07142918 | /src/category_theory/sites/plus.lean | 29e1ccd916a4ded6b2f25e14247b31cc3a7798bc | [
"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 | 11,615 | 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
import category_theory.preadditive.additive_functor
/-!
# The plus construction for presheaves.
This file contains the construction of `... |
2093d514c7bb39e7d6e480720fe3c38946579808 | ae1e94c332e17c7dc7051ce976d5a9eebe7ab8a5 | /stage0/src/Lean/Util/RecDepth.lean | 3fc5319c474c06991982ee5c2e582e75802ea146 | [
"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 | 466 | 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.Data.Options
namespace Lean
def getMaxRecDepth (opts : Options) : Nat :=
opts.getNat `maxRecDepth defaultMaxRecDepth
builtin_initialize
r... |
03d42820ffb8b1b144ff1b4b47db2f8531cc3021 | bbecf0f1968d1fba4124103e4f6b55251d08e9c4 | /src/ring_theory/subring.lean | 519ed77dca89fba0c84c7b1679be746d0f456628 | [
"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 | 39,706 | lean | /-
Copyright (c) 2020 Ashvni Narayanan. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Ashvni Narayanan
-/
import group_theory.subgroup.basic
import ring_theory.subsemiring
/-!
# Subrings
Let `R` be a ring. This file defines the "bundled" subring type `subring R`, a... |
a4edd246221a6cf7fd670ab00c10e73796bed3b9 | ce6917c5bacabee346655160b74a307b4a5ab620 | /src/ch6/ex0201.lean | deb2bfc9195ddd8194db4a0ae9a82dd0492f0232 | [] | no_license | Ailrun/Theorem_Proving_in_Lean | ae6a23f3c54d62d401314d6a771e8ff8b4132db2 | 2eb1b5caf93c6a5a555c79e9097cf2ba5a66cf68 | refs/heads/master | 1,609,838,270,467 | 1,586,846,743,000 | 1,586,846,743,000 | 240,967,761 | 1 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 306 | lean | section
variables x y : ℕ
def double := x + x
#check double y
#check double (2 * x)
theorem t1 : double (x + y) = double x + double y :=
by simp [double, add_left_comm]
#check t1 y
#check t1 (2 * x)
theorem t2 : double (x * y) = double x * y :=
by simp [double, add_mul]
end
|
baceab3b3c14e5d4ceace469c4385ed70181d4ff | d406927ab5617694ec9ea7001f101b7c9e3d9702 | /src/analysis/normed_space/affine_isometry.lean | d95debabb91d5f58cd07ae86237af19e501f5875 | [
"Apache-2.0"
] | permissive | alreadydone/mathlib | dc0be621c6c8208c581f5170a8216c5ba6721927 | c982179ec21091d3e102d8a5d9f5fe06c8fafb73 | refs/heads/master | 1,685,523,275,196 | 1,670,184,141,000 | 1,670,184,141,000 | 287,574,545 | 0 | 0 | Apache-2.0 | 1,670,290,714,000 | 1,597,421,623,000 | Lean | UTF-8 | Lean | false | false | 22,622 | lean | /-
Copyright (c) 2021 Heather Macbeth. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Heather Macbeth
-/
import analysis.normed_space.linear_isometry
import analysis.normed.group.add_torsor
import analysis.normed_space.basic
/-!
# Affine isometries
In this file we de... |
48fb1a7b8e6e91ec6c13344db298db42e348f910 | 9dc8cecdf3c4634764a18254e94d43da07142918 | /src/category_theory/natural_isomorphism.lean | 2c73960fdb04b4d253441fc1cf84251289d8e4d1 | [
"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 | 7,495 | lean | /-
Copyright (c) 2017 Scott Morrison. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Tim Baumann, Stephen Morgan, Scott Morrison, Floris van Doorn
-/
import category_theory.functor.category
import category_theory.isomorphism
/-!
# Natural isomorphisms
For the most pa... |
b0dcb59374aa215629e0b7b910f0e5fa5ef1f9de | 737dc4b96c97368cb66b925eeea3ab633ec3d702 | /stage0/src/Lean/Parser/Term.lean | 64eef68dd374445ed37bfd43f7b51faeab96eaeb | [
"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,870 | 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, Sebastian Ullrich
-/
import Lean.Parser.Attr
import Lean.Parser.Level
namespace Lean
namespace Parser
namespace Command
def commentBody : Parser :=
{ fn := ... |
0fcaafd9d223e76acbd226b14afff2fa80187db7 | 4fa161becb8ce7378a709f5992a594764699e268 | /src/dynamics/circle/rotation_number/translation_number.lean | b8ed29020df4f758859927987ce7c902570c90a3 | [
"Apache-2.0"
] | permissive | laughinggas/mathlib | e4aa4565ae34e46e834434284cb26bd9d67bc373 | 86dcd5cda7a5017c8b3c8876c89a510a19d49aad | refs/heads/master | 1,669,496,232,688 | 1,592,831,995,000 | 1,592,831,995,000 | 274,155,979 | 0 | 0 | Apache-2.0 | 1,592,835,190,000 | 1,592,835,189,000 | null | UTF-8 | Lean | false | false | 28,295 | lean | /-
Copyright (c) 2020 Yury G. Kudryashov. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Author: Yury G. Kudryashov
-/
import analysis.specific_limits
import order.iterate
import algebra.iterate_hom
/-!
# Translation number of a monotone real map that commutes with `x ↦ x + 1`... |
e051e2c9c29b8de904689444ade360c83699608e | 36c7a18fd72e5b57229bd8ba36493daf536a19ce | /tests/lean/run/blast26.lean | 06c399b60a7dcb6a4cb5f521bd4e85951a43c995 | [
"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 | 613 | lean | -- Basic (propositional) forward chaining with disjunctive antecedents and conjunctive conclusions
constants (A B C D E F : Prop)
set_option blast.recursor false
definition lemma1 : B → (A ∨ E → (¬ B) ∧ C) → ¬ (A ∨ E) := by blast
definition lemma2 : ¬ B → (A ∨ E → B ∧ C) → ¬ (A ∨ E) := by blast
definition lemma3 : A →... |
d71bf5bd9e58e4db08de3422d3f7d94d533ce49c | d1a52c3f208fa42c41df8278c3d280f075eb020c | /stage0/src/Lean/Elab/PreDefinition/WF/PackMutual.lean | d2cc4577fe96881ed03d568e5ecac4819f489032 | [
"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 | 6,774 | 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.Basic
namespace Lean.Elab.WF
open Meta
private def getDomains (preDefs : Array PreDefinition) : Array Expr :=
preDefs.map... |
e64382033f02925778365c2b42c61a161e21bb5f | 95dcf8dea2baf2b4b0a60d438f27c35ae3dd3990 | /src/analysis/exponential.lean | f76a587718f847999e3cf38d1062e76be95c26b9 | [
"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 | 60,479 | 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, Jean Lo, Calle Sönne
-/
import topology.instances.complex tactic.linarith data.complex.exponential
group_theory.quotient_group topology.metr... |
37dafc983d6f8888986195f2c5b0f3ba47418740 | 49d1ff3d0fc0688d81e4b505d423e6215881caa6 | /src/quantum.lean | af7889a6ade2c7cd41082f02e9f5f883c6086115 | [] | no_license | jvlmdr/lean-quantum | 813e9453eade9f4ce64c8b473f9f75571df549c4 | 160cabcbd22bf24819b72930f56578e23b109a27 | refs/heads/master | 1,680,342,797,940 | 1,615,047,803,000 | 1,615,049,187,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 4,576 | lean | import matrix
open_locale big_operators
open Matrix
------------------------------------------------------------------------------
-- Matrix helpers for measurement definitions
namespace Matrix
variables {n m : ℕ} (s : Vector n)
/-- Projection operator onto the state `s` (aka "observable").
`proj s` can be read as... |
e11f14b1932d2028122477684f100f680c00e0b3 | 3dd1b66af77106badae6edb1c4dea91a146ead30 | /tests/lean/config.lean | a5c55627c09160503540aae382b28a9b1b2593aa | [
"Apache-2.0"
] | permissive | silky/lean | 79c20c15c93feef47bb659a2cc139b26f3614642 | df8b88dca2f8da1a422cb618cd476ef5be730546 | refs/heads/master | 1,610,737,587,697 | 1,406,574,534,000 | 1,406,574,534,000 | 22,362,176 | 1 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 101 | lean | -- set_option default configuration for tests
set_option pp.colors false
set_option pp.unicode true
|
059276b0f784ffb657754cf174effa28aa52ee11 | 43d840497673d50aaf1058dc851b1edc51d1ab11 | /src/exercises_sources/tuesday/morning.lean | 635e356d5f11f450f26e5174547c40c7cc26beeb | [] | permissive | dhruva-divate/lftcm2020 | 6606bc857204fbfd8ab92812060c0e5114f67e0d | d2e1a31a4ad280eadef1d0ae6a89920b7345c823 | refs/heads/master | 1,668,432,237,346 | 1,594,377,206,000 | 1,594,377,206,000 | 278,630,020 | 0 | 0 | MIT | 1,594,384,713,000 | 1,594,384,712,000 | null | UTF-8 | Lean | false | false | 51 | lean | import tactic
example : true :=
begin
sorry
end
|
59aa87dfee92f9dcd94cf7c8105b106b427320dd | 07c76fbd96ea1786cc6392fa834be62643cea420 | /hott/algebra/ordered_ring.hlean | 2bb0c68e7237579e24683a9fab8e7c3d071f37f1 | [
"Apache-2.0"
] | permissive | fpvandoorn/lean2 | 5a430a153b570bf70dc8526d06f18fc000a60ad9 | 0889cf65b7b3cebfb8831b8731d89c2453dd1e9f | refs/heads/master | 1,592,036,508,364 | 1,545,093,958,000 | 1,545,093,958,000 | 75,436,854 | 0 | 0 | null | 1,480,718,780,000 | 1,480,718,780,000 | null | UTF-8 | Lean | false | false | 30,345 | hlean | /-
Copyright (c) 2014 Jeremy Avigad. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Jeremy Avigad
Here an "ordered_ring" is partially ordered ring, which is ordered with respect to both a weak
order and an associated strict order. Our numeric structures (int, rat, and... |
111714b4e8b0bae68c0fb894bdf73ba3edbb23a9 | 624f6f2ae8b3b1adc5f8f67a365c51d5126be45a | /stage0/src/Init/Control/Monad.lean | c67566b9654c0f81c601df259ea69d2f75efeb3d | [
"Apache-2.0"
] | permissive | mhuisi/lean4 | 28d35a4febc2e251c7f05492e13f3b05d6f9b7af | dda44bc47f3e5d024508060dac2bcb59fd12e4c0 | refs/heads/master | 1,621,225,489,283 | 1,585,142,689,000 | 1,585,142,689,000 | 250,590,438 | 0 | 2 | Apache-2.0 | 1,602,443,220,000 | 1,585,327,814,000 | C | UTF-8 | Lean | false | false | 2,087 | lean | /-
Copyright (c) Luke Nelson and Jared Roesch. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Leonardo de Moura, Luke Nelson, Jared Roesch, Sebastian Ullrich
-/
prelude
import Init.Control.Applicative
import Init.Coe
universes u v w
open Function
class HasBind (m : T... |
890fff6b19e2db53bada075bdf2185ddde043209 | 367134ba5a65885e863bdc4507601606690974c1 | /src/topology/algebra/floor_ring.lean | e780a32dc569377f0e107c42fdadfcbe933a6d72 | [
"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 | 9,281 | lean | /-
Copyright (c) 2020 Anatole Dedecker. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Anatole Dedecker
Basic topological facts (limits and continuity) about `floor`,
`ceil` and `fract` in a `floor_ring`.
-/
import topology.algebra.ordered
import algebra.floor
open s... |
127a4d594e057b67e4df82003eca133d8ff73d0d | 6432ea7a083ff6ba21ea17af9ee47b9c371760f7 | /tests/playground/webserver/Webserver.lean | 4aee963cbbdbd6058056dc46ef7881eb9ad3b5c5 | [
"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 | 5,473 | lean | -- -*- origami-fold-style: triple-braces -*-
import Lean
-- namespace Webserver {{{
namespace Webserver
structure State :=
(verb : String)
(path : String)
(status := "200 OK")
(outHeaders : Array String := #[])
(out : String := "")
(tryNextHandler := false)
abbrev HandlerM := StateT State IO
abbrev Handl... |
a287a329e6ed6ecffc3dd6af857fe8a676bc45bf | df7bb3acd9623e489e95e85d0bc55590ab0bc393 | /lean/love01_definitions_and_statements_exercise_sheet.lean | 242749fe1ebaeb3732804aa54e8432c455fb9c88 | [] | 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 | 4,107 | lean | import .love01_definitions_and_statements_demo
/- # LoVe Exercise 1: Definitions and Statements
Replace the placeholders (e.g., `:= sorry`) with your solutions. -/
set_option pp.beta true
set_option pp.generalized_field_notation false
namespace LoVe
/- ## Question 1: Truncated Subtraction
1.1. Define the funct... |
9ae44c91c86bc8d300c9971ea1fadfc920a5fa22 | 76c77df8a58af24dbf1d75c7012076a42244d728 | /tutorial_src/solutions/tuto_lib.lean | 6cd5914cb44e0467155ff4ea74aab2829c8ab8ab | [] | no_license | kris-brown/theorem_proving_in_lean | 7a7a584ba2c657a35335dc895d49d991c997a0c9 | 774460c21bf857daff158210741bd88d1c8323cd | refs/heads/master | 1,668,278,123,743 | 1,593,445,161,000 | 1,593,445,161,000 | 265,748,924 | 0 | 1 | null | null | null | null | UTF-8 | Lean | false | false | 9,711 | lean | import analysis.specific_limits
import data.int.parity
import algebra.ordered_group
attribute [instance] classical.prop_decidable
/-
Lemmas from that file were hidden in my course, or restating things which
were proved without name in previous files.
-/
notation `|`x`|` := abs x
-- The mathlib version is unusable be... |
90ba08a232b01301c74870dbb9ca703b5aac3a1d | cf39355caa609c0f33405126beee2739aa3cb77e | /tests/lean/run/tc_inout1.lean | 8ffc11b8c6846a3de7a8f97eae95918aa07a13ce | [
"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 | 2,167 | lean | universe variables u v
/-
Type class parameter can be annotated with out_param.
Given (C a_1 ... a_n), we replace a_i with a temporary metavariable ?x_i IF
- Case 1
a_i is an out_param
OR
- Case 2
a_i depends on a_j for j < i, and a_j was replaced with a temporary metavariable ?x_j.
This case is needed to mak... |
05c0294ca1133a4eefc47ae19ff8fb2f5812a627 | b147e1312077cdcfea8e6756207b3fa538982e12 | /data/quot.lean | 323a1dced73900c4be586846e8bfa40e572cb2af | [
"Apache-2.0"
] | permissive | SzJS/mathlib | 07836ee708ca27cd18347e1e11ce7dd5afb3e926 | 23a5591fca0d43ee5d49d89f6f0ee07a24a6ca29 | refs/heads/master | 1,584,980,332,064 | 1,532,063,841,000 | 1,532,063,841,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 6,861 | 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
Quotients -- extends the core library
-/
variables {α : Sort*} {β : Sort*}
namespace quot
variables {ra : α → α → Prop} {rb : β → β → Prop} {φ : quot ra → quot rb → So... |
9face9d8208adb6809e8ea22716248a814a2e019 | 206422fb9edabf63def0ed2aa3f489150fb09ccb | /src/algebraic_geometry/Scheme.lean | 09de5d032c059636c57e50256f9c14617d673be8 | [
"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 | 3,814 | lean | /-
Copyright (c) 2020 Scott Morrison. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Scott Morrison
-/
import algebraic_geometry.Spec
/-!
# The category of schemes
A scheme is a locally ringed space such that every point is contained in some open set
where there is a... |
8bf9c43facfdc435de4f2d3187b26d61c00d1901 | dac4e6671410f506c880986cbb2212dd7f5b3dfd | /folklore/derivatives.lean | 82fb981231691e4c04bba5fa6747b52d4daadd14 | [
"CC-BY-4.0"
] | permissive | thalesant/formalabstracts-2018 | e6ddfe8b3ce5c6f055ddcccf345bf55c41f850c1 | d206dfa32a6b4a84aacc3a5500a144757e6d3454 | refs/heads/master | 1,642,678,879,231 | 1,561,648,713,000 | 1,561,648,713,000 | 97,608,420 | 1 | 0 | null | 1,564,063,995,000 | 1,500,388,250,000 | Lean | UTF-8 | Lean | false | false | 7,179 | lean | /-
Frechet derivatives on Banach space
-/
import --order.filter data.set meta_data data.list data.vector
--topology.metric_space
--algebra.module --data.finset.basic -- .metric
.banach
noncomputable theory
open set filter classical
local attribute [instance] prop_decidable
universes u v w
n... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.